From fb234a49df7e97ca5cdfc578455344286aaf454d Mon Sep 17 00:00:00 2001 From: devleejb <52884648+devleejb@users.noreply.github.com> Date: Fri, 28 Jun 2024 12:44:51 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20yorkie-t?= =?UTF-8?q?eam/codepair@d663741678461fe393a24cd20e6c58b5b4d719c5=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/{index-KyVFrqgd.js => index-Hd6qy378.js} | 12 ++++++------ index.html | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) rename assets/{index-KyVFrqgd.js => index-Hd6qy378.js} (99%) diff --git a/assets/index-KyVFrqgd.js b/assets/index-Hd6qy378.js similarity index 99% rename from assets/index-KyVFrqgd.js rename to assets/index-Hd6qy378.js index 6a0cb5e4..4e8bbf5b 100644 --- a/assets/index-KyVFrqgd.js +++ b/assets/index-Hd6qy378.js @@ -1,4 +1,4 @@ -var cTe=Object.defineProperty;var dTe=(e,t,n)=>t in e?cTe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var fTe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ks=(e,t,n)=>(dTe(e,typeof t!="symbol"?t+"":t,n),n),Y7=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var Fe=(e,t,n)=>(Y7(e,t,"read from private field"),n?n.call(e):t.get(e)),Tn=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},sn=(e,t,n,r)=>(Y7(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var XA=(e,t,n,r)=>({set _(i){sn(e,t,i,n)},get _(){return Fe(e,t,r)}}),fr=(e,t,n)=>(Y7(e,t,"access private method"),n);var jCt=fTe((n_t,W5)=>{(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="23d9b946-69b7-4e27-a6cf-aa1428565067",e._sentryDebugIdIdentifier="sentry-dbid-23d9b946-69b7-4e27-a6cf-aa1428565067")}catch{}})();function goe(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var hTe=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};hTe.SENTRY_RELEASE={id:"b26ed6920704336225dbc1265a5b65d5cbefb88c"};(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var Th=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function pTe(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var boe={exports:{}},JI={},yoe={exports:{}},Ur={};/** +var cTe=Object.defineProperty;var dTe=(e,t,n)=>t in e?cTe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var fTe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var Ks=(e,t,n)=>(dTe(e,typeof t!="symbol"?t+"":t,n),n),Y7=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var Fe=(e,t,n)=>(Y7(e,t,"read from private field"),n?n.call(e):t.get(e)),Tn=(e,t,n)=>{if(t.has(e))throw TypeError("Cannot add the same private member more than once");t instanceof WeakSet?t.add(e):t.set(e,n)},sn=(e,t,n,r)=>(Y7(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var XA=(e,t,n,r)=>({set _(i){sn(e,t,i,n)},get _(){return Fe(e,t,r)}}),fr=(e,t,n)=>(Y7(e,t,"access private method"),n);var jCt=fTe((n_t,W5)=>{(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="edd6ca96-1855-4951-b332-c188124a8e9a",e._sentryDebugIdIdentifier="sentry-dbid-edd6ca96-1855-4951-b332-c188124a8e9a")}catch{}})();function goe(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var hTe=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};hTe.SENTRY_RELEASE={id:"d663741678461fe393a24cd20e6c58b5b4d719c5"};(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var Th=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cf(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function pTe(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var boe={exports:{}},JI={},yoe={exports:{}},Ur={};/** * @license React * react.production.min.js * @@ -266,10 +266,10 @@ Event: ${N0(e)}. Url: ${OI(e)}`),!0)}function GKe(e,t){return e.type||!t||!t.length?!1:JKe(e).some(n=>bC(n,t))}function ZKe(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?bC(n,t):!1}function XKe(e,t){if(!t||!t.length)return!1;const n=OI(e);return n?bC(n,t):!1}function KKe(e,t){if(!t||!t.length)return!0;const n=OI(e);return n?bC(n,t):!0}function JKe(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),Wn&&t.length===0&&Mt.error(`Could not extract message for event ${N0(e)}`),t}function eJe(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function tJe(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function OI(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?tJe(t):null}catch{return Wn&&Mt.error(`Cannot extract url for event ${N0(e)}`),null}}let Rre;const Uge="FunctionToString",Ire=new WeakMap,nJe=()=>({name:Uge,setupOnce(){Rre=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=Jj(this),n=Ire.has(mo())&&t!==void 0?t:this;return Rre.apply(n,e)}}catch{}},setup(e){Ire.set(e,!0)}}),zge=nJe;Yg(Uge,zge);const va=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,li=ui;function rJe(){li&&li.document?li.document.addEventListener("visibilitychange",()=>{const e=wE();if(li.document.hidden&&e){const t="cancelled",{op:n,status:r}=ml(e);va&&Mt.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):va&&Mt.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const sH=(e,t,n)=>{let r,i;return a=>{t.value>=0&&(a||n)&&(i=t.value-(r||0),(i||r===void 0)&&(r=t.value,t.delta=i,e(t)))}},iJe=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,aJe=()=>{const e=li.performance.timing,t=li.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},jge=()=>li.__WEB_VITALS_POLYFILL__?li.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||aJe()):li.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Hge=()=>{const e=jge();return e&&e.activationStart||0},oH=(e,t)=>{const n=jge();let r="navigate";return n&&(li.document.prerendering||Hge()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:iJe(),navigationType:r}},VN=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{t(i.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},WN=(e,t)=>{const n=r=>{(r.type==="pagehide"||li.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},sJe=e=>{const t=oH("CLS",0);let n,r=0,i=[];const a=o=>{o.forEach(l=>{if(!l.hadRecentInput){const c=i[0],d=i[i.length-1];r&&i.length!==0&&l.startTime-d.startTime<1e3&&l.startTime-c.startTime<5e3?(r+=l.value,i.push(l)):(r=l.value,i=[l]),r>t.value&&(t.value=r,t.entries=i,n&&n())}})},s=VN("layout-shift",a);if(s){n=sH(e,t);const o=()=>{a(s.takeRecords()),n(!0)};return WN(o),o}};let w5=-1;const oJe=()=>li.document.visibilityState==="hidden"&&!li.document.prerendering?0:1/0,lJe=()=>{WN(({timeStamp:e})=>{w5=e},!0)},lH=()=>(w5<0&&(w5=oJe(),lJe()),{get firstHiddenTime(){return w5}}),uJe=e=>{const t=lH(),n=oH("FID");let r;const i=o=>{o.startTime{o.forEach(i)},s=VN("first-input",a);r=sH(e,n),s&&WN(()=>{a(s.takeRecords()),s.disconnect()},!0)},Dre={},cJe=e=>{const t=lH(),n=oH("LCP");let r;const i=s=>{const o=s[s.length-1];if(o){const l=Math.max(o.startTime-Hge(),0);l{Dre[n.id]||(i(a.takeRecords()),a.disconnect(),Dre[n.id]=!0,r(!0))};return["keydown","click"].forEach(o=>{addEventListener(o,s,{once:!0,capture:!0})}),WN(s,!0),s}},R2={},SI={};let Vge,Wge,Qge;function dJe(e,t=!1){return cH("cls",e,pJe,Vge,t)}function fJe(e,t=!1){return cH("lcp",e,gJe,Qge,t)}function hJe(e){return cH("fid",e,mJe,Wge)}function uH(e,t){return Yge(e,t),SI[e]||(bJe(e),SI[e]=!0),qge(e,t)}function QN(e,t){const n=R2[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(i){va&&Mt.error(`Error while triggering instrumentation handler. Type: ${e} Name: ${bm(r)} -Error:`,i)}}function pJe(){return sJe(e=>{QN("cls",{metric:e}),Vge=e})}function mJe(){return uJe(e=>{QN("fid",{metric:e}),Wge=e})}function gJe(){return cJe(e=>{QN("lcp",{metric:e}),Qge=e})}function cH(e,t,n,r,i=!1){Yge(e,t);let a;return SI[e]||(a=n(),SI[e]=!0),r&&t({metric:r}),qge(e,t,i?a:void 0)}function bJe(e){const t={};e==="event"&&(t.durationThreshold=0),VN(e,n=>{QN(e,{entries:n})},t)}function Yge(e,t){R2[e]=R2[e]||[],R2[e].push(t)}function qge(e,t,n){return()=>{n&&n();const r=R2[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function AM(e){return typeof e=="number"&&isFinite(e)}function YS(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const yJe=2147483647;function ps(e){return e/1e3}function Gge(){return li&&li.addEventListener&&li.performance}let Nre=0,za={},mh,I2;function vJe(){const e=Gge();if(e&&Xh){e.mark&&li.performance.mark("sentry-tracing-init");const t=TJe(),n=EJe(),r=wJe();return()=>{t(),n(),r()}}return()=>{}}function OJe(){uH("longtask",({entries:e})=>{for(const t of e){const n=wE();if(!n)return;const r=ps(Xh+t.startTime),i=ps(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i})}})}function SJe(){uH("event",({entries:e})=>{for(const t of e){const n=wE();if(!n)return;if(t.name==="click"){const r=ps(Xh+t.startTime),i=ps(t.duration),a={description:Jx(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i},s=J0e(t.target);s&&(a.attributes={"ui.component_name":s}),n.startChild(a)}}})}function EJe(){return dJe(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(va&&Mt.log("[Measurements] Adding CLS"),za.cls={value:e.value,unit:""},I2=t)},!0)}function wJe(){return fJe(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(va&&Mt.log("[Measurements] Adding LCP"),za.lcp={value:e.value,unit:"millisecond"},mh=t)},!0)}function TJe(){return hJe(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=ps(Xh),r=ps(t.startTime);va&&Mt.log("[Measurements] Adding FID"),za.fid={value:e.value,unit:"millisecond"},za["mark.fid"]={value:n+r,unit:"second"}})}function xJe(e){const t=Gge();if(!t||!li.performance.getEntries||!Xh)return;va&&Mt.log("[Tracing] Adding & adjusting spans using Performance API");const n=ps(Xh),r=t.getEntries();let i,a;const{op:s,start_timestamp:o}=ml(e);if(r.slice(Nre).forEach(l=>{const c=ps(l.startTime),d=ps(l.duration);if(!(e.op==="navigation"&&o&&n+c{if(!za[c]||!o||n>=o)return;const d=za[c].value,h=n+ps(d),p=Math.abs((h-o)*1e3),b=p-d;va&&Mt.log(`[Measurements] Normalized ${c} from ${d} to ${p} (${b})`),za[c].value=p});const l=za["mark.fid"];l&&za.fid&&(YS(e,{description:"first input delay",endTimestamp:l.value+ps(za.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:l.value}),delete za["mark.fid"]),"fcp"in za||delete za.cls,Object.keys(za).forEach(c=>{SKe(c,za[c].value,za[c].unit)}),IJe(e)}mh=void 0,I2=void 0,za={}}function kJe(e,t,n,r,i){const a=i+n,s=a+r;return YS(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a}),a}function CJe(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{o3(e,t,r,n)}),o3(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),o3(e,t,"fetch",n,"cache","domainLookupStart"),o3(e,t,"domainLookup",n,"DNS"),_Je(e,t,n)}function o3(e,t,n,r,i,a){const s=a?t[a]:t[`${n}End`],o=t[`${n}Start`];!o||!s||YS(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+ps(o),endTimestamp:r+ps(s)})}function _Je(e,t,n){t.responseEnd&&(YS(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+ps(t.requestStart),endTimestamp:n+ps(t.responseEnd)}),YS(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+ps(t.responseStart),endTimestamp:n+ps(t.responseEnd)}))}function AJe(e,t,n,r,i,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=S5(n),o={};RM(o,t,"transferSize","http.response_transfer_size"),RM(o,t,"encodedBodySize","http.response_content_length"),RM(o,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(o["url.scheme"]=s.protocol.split(":").pop()),s.host&&(o["server.address"]=s.host),o["url.same_origin"]=n.includes(li.location.origin);const l=a+r,c=l+i;YS(e,{description:n.replace(li.location.origin,""),endTimestamp:c,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:o})}function RJe(e){const t=li.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),AM(n.rtt)&&(za["connection.rtt"]={value:n.rtt,unit:"millisecond"})),AM(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),AM(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function IJe(e){mh&&(va&&Mt.log("[Measurements] Adding LCP Data"),mh.element&&e.setTag("lcp.element",Jx(mh.element)),mh.id&&e.setTag("lcp.id",mh.id),mh.url&&e.setTag("lcp.url",mh.url.trim().slice(0,200)),e.setTag("lcp.size",mh.size)),I2&&I2.sources&&(va&&Mt.log("[Measurements] Adding CLS Data"),I2.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,Jx(t.node))))}function RM(e,t,n,r){const i=t[n];i!=null&&i0&&p.setAttribute("http.response_content_length",v)}}else e.error&&p.setStatus("internal_error");p.end(),delete r[h]}return}const s=_m(),o=mo(),{method:l,url:c}=e.fetchData,d=a?Dge({name:`${l} ${c}`,onlyIfParent:!0,attributes:{url:c,type:"fetch","http.method":l,[OO]:i},op:"http.client"}):void 0;if(d&&(e.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d),n(e.fetchData.url)&&o){const h=e.args[0];e.args[1]=e.args[1]||{};const p=e.args[1];p.headers=PJe(h,o,s,p,d)}return d}function PJe(e,t,n,r,i){const a=i||n.getSpan(),s=dy(),{traceId:o,spanId:l,sampled:c,dsc:d}={...s.getPropagationContext(),...n.getPropagationContext()},h=a?UN(a):nH(o,l,c),p=mge(d||(a?nk(a):jN(o,t,n))),b=r.headers||(typeof Request<"u"&&gm(e,Request)?e.headers:void 0);if(b)if(typeof Headers<"u"&&gm(b,Headers)){const v=new Headers(b);return v.append("sentry-trace",h),p&&v.append(PF,p),v}else if(Array.isArray(b)){const v=[...b,["sentry-trace",h]];return p&&v.push([PF,p]),v}else{const v="baggage"in b?b.baggage:void 0,S=[];return Array.isArray(v)?S.push(...v):v&&S.push(v),p&&S.push(p),{...b,"sentry-trace":h,baggage:S.length>0?S.join(","):void 0}}else return{"sentry-trace":h,baggage:p}}const BF=["localhost",/^\/(?!\/)/],UF={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:BF,tracePropagationTargets:BF};function MJe(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s}={traceFetch:UF.traceFetch,traceXHR:UF.traceXHR,...e},o=typeof a=="function"?a:d=>!0,l=d=>BJe(d,r||i),c={};t&&lge(d=>{const h=NJe(d,o,l,c);s&&h&&Pre(h)}),n&&dge(d=>{const h=UJe(d,o,l,c);s&&h&&Pre(h)})}function LJe(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function Pre(e){const{url:t}=ml(e).data||{};if(!t||typeof t!="string")return;const n=uH("resource",({entries:r})=>{r.forEach(i=>{LJe(i)&&i.name.endsWith(t)&&(FJe(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function $Je(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function dh(e=0){return((Xh||performance.timeOrigin)+e)/1e3}function FJe(e){const{name:t,version:n}=$Je(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Xh?[...r,["http.request.redirect_start",dh(e.redirectStart)],["http.request.fetch_start",dh(e.fetchStart)],["http.request.domain_lookup_start",dh(e.domainLookupStart)],["http.request.domain_lookup_end",dh(e.domainLookupEnd)],["http.request.connect_start",dh(e.connectStart)],["http.request.secure_connection_start",dh(e.secureConnectionStart)],["http.request.connection_end",dh(e.connectEnd)],["http.request.request_start",dh(e.requestStart)],["http.request.response_start",dh(e.responseStart)],["http.request.response_end",dh(e.responseEnd)]]:r}function BJe(e,t){return bC(e,t||BF)}function UJe(e,t,n,r){const i=e.xhr,a=i&&i[yO];if(!HN()||!i||i.__sentry_own_request__||!a)return;const s=t(a.url);if(e.endTimestamp&&s){const h=i.__sentry_xhr_span_id__;if(!h)return;const p=r[h];p&&a.status_code!==void 0&&(aH(p,a.status_code),p.end(),delete r[h]);return}const o=_m(),l=dy(),c=s?Dge({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,url:a.url,[OO]:"auto.http.browser"},op:"http.client"}):void 0;c&&(i.__sentry_xhr_span_id__=c.spanContext().spanId,r[i.__sentry_xhr_span_id__]=c);const d=mo();if(i.setRequestHeader&&n(a.url)&&d){const{traceId:h,spanId:p,sampled:b,dsc:v}={...l.getPropagationContext(),...o.getPropagationContext()},S=c?UN(c):nH(h,p,b),w=mge(v||(c?nk(c):jN(h,d,o)));zJe(i,S,w)}return c}function zJe(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(PF,n)}catch{}}function jJe(e,t=!0,n=!0){if(!li||!li.location){va&&Mt.warn("Could not initialize routing instrumentation due to invalid location");return}let r=li.location.href,i;t&&(i=e({name:li.location.pathname,startTimestamp:Xh?Xh/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&eH(({to:a,from:s})=>{if(s===void 0&&r&&r.indexOf(a)!==-1){r=void 0;return}s!==a&&(r=void 0,i&&(va&&Mt.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.end()),i=e({name:li.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const HJe="BrowserTracing",VJe={...E5,markBackgroundTransactions:!0,routingInstrumentation:jJe,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...UF};class WJe{constructor(t){this.name=HJe,this._hasSetTracePropagationTargets=!1,yKe(),va&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...VJe,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=vJe(),this.options.enableLongTask&&OJe(),this.options._experiments.enableInteractions&&SJe()}setupOnce(t,n){this._getCurrentHub=n;const i=n().getClient(),a=i&&i.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:o,startTransactionOnPageLoad:l,markBackgroundTransactions:c,traceFetch:d,traceXHR:h,shouldCreateSpanForRequest:p,enableHTTPTimings:b,_experiments:v}=this.options,S=a&&a.tracePropagationTargets,w=S||this.options.tracePropagationTargets;va&&this._hasSetTracePropagationTargets&&S&&Mt.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(T=>{const x=this._createRouteTransaction(T);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(x,T,n),x},l,o),c&&rJe(),v.enableInteractions&&this._registerInteractionListener(),MJe({traceFetch:d,traceXHR:h,tracePropagationTargets:w,shouldCreateSpanForRequest:p,enableHTTPTimings:b})}_createRouteTransaction(t){if(!this._getCurrentHub){va&&Mt.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:a,heartbeatInterval:s}=this.options,o=t.op==="pageload";let l;if(o){const b=o?Mre("sentry-trace"):"",v=o?Mre("baggage"):void 0,{traceparentData:S,dynamicSamplingContext:w}=EXe(b,v);l={...t,...S,metadata:{...t.metadata,dynamicSamplingContext:S&&!w?{}:w},trimEnd:!0}}else l={...t,trimEnd:!0};const c=typeof r=="function"?r(l):l,d=c===void 0?{...l,sampled:!1}:c;d.metadata=d.name!==l.name?{...d.metadata,source:"custom"}:d.metadata,this._latestRouteName=d.name,this._latestRouteSource=QJe(d),d.sampled===!1&&va&&Mt.log(`[Tracing] Will not send ${d.op} transaction because of beforeNavigate.`),va&&Mt.log(`[Tracing] Starting ${d.op} transaction on scope`);const{location:h}=li,p=xre(n,d,i,a,!0,{location:h},s,o);return o&&(li.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(li.document.readyState)&&p.sendAutoFinishSignal()}),["interactive","complete"].includes(li.document.readyState)&&p.sendAutoFinishSignal()),p.registerBeforeFinishCallback(b=>{this._collectWebVitals(),xJe(b)}),p}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:r,finalTimeout:i,heartbeatInterval:a}=this.options,s="ui.action.click",o=wE();if(o&&o.op&&["navigation","pageload"].includes(o.op)){va&&Mt.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){va&&Mt.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){va&&Mt.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const l=this._getCurrentHub(),{location:c}=li,d={name:this._latestRouteName,op:s,trimEnd:!0,data:{[VO]:this._latestRouteSource||"url"}};t=xre(l,d,r,i,!0,{location:c},a)};["click"].forEach(r=>{addEventListener(r,n,{once:!1,capture:!0})})}}function Mre(e){const t=AZe(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function QJe(e){const t=e.attributes&&e.attributes[VO],n=e.data&&e.data[VO],r=e.metadata&&e.metadata.source;return t||n||r}const hi=ui;let zF=0;function Zge(){return zF>0}function YJe(){zF++,setTimeout(()=>{zF--})}function qS(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(Jj(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const a=i.map(s=>qS(s,t));return e.apply(this,a)}catch(a){throw YJe(),KXe(s=>{s.addEventProcessor(o=>(t.mechanism&&(CF(o,void 0,void 0),tk(o,t.mechanism)),o.extra={...o.extra,arguments:i},o)),ZXe(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}tge(r,e),ek(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const qp=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Xge(e,t){const n=dH(e,t),r={type:t&&t.name,value:XJe(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function qJe(e,t,n,r){const i=mo(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:LN(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:eet(t,{isUnhandledRejection:r})}]},extra:{__serialized__:fge(t,a)}};if(n){const o=dH(e,n);o.length&&(s.exception.values[0].stacktrace={frames:o})}return s}function IM(e,t){return{exception:{values:[Xge(e,t)]}}}function dH(e,t){const n=t.stacktrace||t.stack||"",r=ZJe(t);try{return e(n,r)}catch{}return[]}const GJe=/Minified React error #\d+;/i;function ZJe(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(GJe.test(e.message))return 1}return 0}function XJe(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function KJe(e,t,n,r){const i=n&&n.syntheticException||void 0,a=fH(e,t,i,r);return tk(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),QS(a)}function JJe(e,t,n="info",r,i){const a=r&&r.syntheticException||void 0,s=jF(e,t,a,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),QS(s)}function fH(e,t,n,r,i){let a;if(Gj(t)&&t.error)return IM(e,t.error);if(ere(t)||vZe(t)){const s=t;if("stack"in t)a=IM(e,t);else{const o=s.name||(ere(s)?"DOMError":"DOMException"),l=s.message?`${o}: ${s.message}`:o;a=jF(e,l,n,r),CF(a,l)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return G0e(t)?IM(e,t):WS(t)||LN(t)?(a=qJe(e,t,n,i),tk(a,{synthetic:!0}),a):(a=jF(e,t,n,r),CF(a,`${t}`,void 0),tk(a,{synthetic:!0}),a)}function jF(e,t,n,r){const i={};if(r&&n){const a=dH(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]})}if(Zj(t)){const{__sentry_template_string__:a,__sentry_template_values__:s}=t;return i.logentry={message:a,params:s},i}return i.message=t,i}function eet(e,{isUnhandledRejection:t}){const n=FZe(e),r=t?"promise rejection":"exception";return Gj(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:LN(e)?`Event \`${tet(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function tet(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function net(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:yC(r)}},a=ret(e);return EE(i,[a])}function ret(e){return[{type:"user_report"},e]}class iet extends $Ke{constructor(t){const n=hi.SENTRY_SDK_SOURCE||sXe();$ge(t,"browser",["browser"],n),super(t),t.sendClientReports&&hi.document&&hi.document.addEventListener("visibilitychange",()=>{hi.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return KJe(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return JJe(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){qp&&Mt.warn("SDK not enabled, will not capture user feedback.");return}const n=net(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){qp&&Mt.log("No outcomes to send");return}if(!this._dsn){qp&&Mt.log("No dsn provided, will not send outcomes");return}qp&&Mt.log("Sending outcomes:",t);const n=AXe(t,this._options.tunnel&&yC(this._dsn));this._sendEnvelope(n)}}let JT;function aet(){if(JT)return JT;if(IF(hi.fetch))return JT=hi.fetch.bind(hi);const e=hi.document;let t=hi.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){qp&&Mt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return JT=t.bind(hi)}function set(){JT=void 0}function oet(e,t=aet()){let n=0,r=0;function i(a){const s=a.body.length;n+=s,r++;const o={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,o).then(l=>(n-=s,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return set(),n-=s,r--,tH(l)}}return Lge(e,i)}const uet=4;function cet(e){function t(n){return new Ju((r,i)=>{const a=new XMLHttpRequest;a.onerror=i,a.onreadystatechange=()=>{a.readyState===uet&&r({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&a.setRequestHeader(s,e.headers[s]);a.send(n.body)})}return Lge(e,t)}const YN="?",det=30,fet=40,het=50;function hH(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const pet=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,met=/\((\S*)(?::(\d+))(?::(\d+))\)/,get=e=>{const t=pet.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const a=met.exec(t[2]);a&&(t[2]=a[1],t[3]=a[2],t[4]=a[3])}const[r,i]=Kge(t[1]||YN,t[2]);return hH(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},bet=[det,get],yet=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,vet=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Oet=e=>{const t=yet.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=vet.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],i=t[1]||YN;return[i,r]=Kge(i,r),hH(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Eet=[het,Oet],wet=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Tet=e=>{const t=wet.exec(e);return t?hH(t[2],t[1]||YN,+t[3],t[4]?+t[4]:void 0):void 0},xet=[fet,Tet],ket=[bet,Eet,xet],Cet=ige(...ket),Kge=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:YN,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},l3=1024,Jge="Breadcrumbs",_et=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Jge,setupOnce(){},setup(n){t.console&&jZe(Iet(n)),t.dom&&WZe(Ret(n,t.dom)),t.xhr&&dge(Det(n)),t.fetch&&lge(Net(n)),t.history&&eH(Pet(n)),t.sentry&&n.on&&n.on("beforeSendEvent",Aet(n))}}},e1e=_et;Yg(Jge,e1e);function Aet(e){return function(n){mo()===e&&ny({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:N0(n)},{event:n})}}function Ret(e,t){return function(r){if(mo()!==e)return;let i,a,s=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>l3&&(qp&&Mt.warn(`\`dom.maxStringLength\` cannot exceed ${l3}, but a value of ${o} was configured. Sentry will use ${l3} instead.`),o=l3),typeof s=="string"&&(s=[s]);try{const c=r.event,d=Met(c)?c.target:c;i=Jx(d,{keyAttrs:s,maxStringLength:o}),a=J0e(d)}catch{i=""}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};a&&(l.data={"ui.component_name":a}),ny(l,{event:r.event,name:r.name,global:r.global})}}function Iet(e){return function(n){if(mo()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:pXe(n.level),message:tre(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${tre(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;ny(r,{input:n.args,level:n.level})}}function Det(e){return function(n){if(mo()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,a=n.xhr[yO];if(!r||!i||!a)return;const{method:s,url:o,status_code:l,body:c}=a,d={method:s,url:o,status_code:l},h={xhr:n.xhr,input:c,startTimestamp:r,endTimestamp:i};ny({category:"xhr",data:d,type:"http"},h)}}function Net(e){return function(n){if(mo()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};ny({category:"fetch",data:a,level:"error",type:"http"},s)}else{const a=n.response,s={...n.fetchData,status_code:a&&a.status},o={input:n.args,response:a,startTimestamp:r,endTimestamp:i};ny({category:"fetch",data:s,type:"http"},o)}}}function Pet(e){return function(n){if(mo()!==e)return;let r=n.from,i=n.to;const a=S5(hi.location.href);let s=r?S5(r):void 0;const o=S5(i);(!s||!s.path)&&(s=a),a.protocol===o.protocol&&a.host===o.host&&(i=o.relative),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),ny({category:"navigation",data:{from:r,to:i}})}}function Met(e){return!!e&&!!e.target}const t1e="Dedupe",Let=()=>{let e;return{name:t1e,setupOnce(){},processEvent(t){if(t.type)return t;try{if($et(t,e))return qp&&Mt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},n1e=Let;Yg(t1e,n1e);function $et(e,t){return t?!!(Fet(e,t)||Bet(e,t)):!1}function Fet(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!i1e(e,t)||!r1e(e,t))}function Bet(e,t){const n=Lre(t),r=Lre(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!i1e(e,t)||!r1e(e,t))}function r1e(e,t){let n=$re(e),r=$re(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:a1e,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(zet(n),Fre("onerror")),t.onunhandledrejection&&(jet(n),Fre("onunhandledrejection"))}}},s1e=Uet;Yg(a1e,s1e);function zet(e){uge(t=>{const{stackParser:n,attachStacktrace:r}=l1e();if(mo()!==e||Zge())return;const{msg:i,url:a,line:s,column:o,error:l}=t,c=l===void 0&&Qh(i)?Wet(i,a,s,o):o1e(fH(n,l||i,void 0,r,!1),a,s,o);c.level="error",Sge(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function jet(e){cge(t=>{const{stackParser:n,attachStacktrace:r}=l1e();if(mo()!==e||Zge())return;const i=Het(t),a=Xj(i)?Vet(i):fH(n,i,void 0,r,!0);a.level="error",Sge(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Het(e){if(Xj(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function Vet(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Wet(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=Gj(e)?e.message:e,s="Error";const o=a.match(i);return o&&(s=o[1],a=o[2]),o1e({exception:{values:[{type:s,value:a}]}},t,n,r)}function o1e(e,t,n,r){const i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},l=o.frames=o.frames||[],c=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,h=Qh(t)&&t.length>0?t:_Ze();return l.length===0&&l.push({colno:c,filename:h,function:"?",in_app:!0,lineno:d}),e}function Fre(e){qp&&Mt.log(`Global Handler attached: ${e}`)}function l1e(){const e=mo();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const u1e="HttpContext",Qet=()=>({name:u1e,setupOnce(){},preprocessEvent(e){if(!hi.navigator&&!hi.location&&!hi.document)return;const t=e.request&&e.request.url||hi.location&&hi.location.href,{referrer:n}=hi.document||{},{userAgent:r}=hi.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:i};e.request=a}}),c1e=Qet;Yg(u1e,c1e);const Yet="cause",qet=5,d1e="LinkedErrors",Get=(e={})=>{const t=e.limit||qet,n=e.key||Yet;return{name:d1e,setupOnce(){},preprocessEvent(r,i,a){const s=a.getOptions();TZe(Xge,s.stackParser,s.maxValueLength,n,t,r,i)}}},f1e=Get;Yg(d1e,f1e);const Zet=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],h1e="TryCatch",Xet=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:h1e,setupOnce(){t.setTimeout&&co(hi,"setTimeout",Bre),t.setInterval&&co(hi,"setInterval",Bre),t.requestAnimationFrame&&co(hi,"requestAnimationFrame",Ket),t.XMLHttpRequest&&"XMLHttpRequest"in hi&&co(XMLHttpRequest.prototype,"send",Jet);const n=t.eventTarget;n&&(Array.isArray(n)?n:Zet).forEach(ett)}}},p1e=Xet;Yg(h1e,p1e);function Bre(e){return function(...t){const n=t[0];return t[0]=qS(n,{mechanism:{data:{function:bm(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Ket(e){return function(t){return e.apply(this,[qS(t,{mechanism:{data:{function:"requestAnimationFrame",handler:bm(e)},handled:!1,type:"instrument"}})])}}function Jet(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&co(n,i,function(a){const s={mechanism:{data:{function:i,handler:bm(a)},handled:!1,type:"instrument"}},o=Jj(a);return o&&(s.mechanism.data.handler=bm(o)),qS(a,s)})}),e.apply(this,t)}}function ett(e){const t=hi,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(co(n,"addEventListener",function(r){return function(i,a,s){try{typeof a.handleEvent=="function"&&(a.handleEvent=qS(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:bm(a),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,qS(a,{mechanism:{data:{function:"addEventListener",handler:bm(a),target:e},handled:!1,type:"instrument"}}),s])}}),co(n,"removeEventListener",function(r){return function(i,a,s){const o=a;try{const l=o&&o.__sentry_wrapped__;l&&r.call(this,i,l,s)}catch{}return r.call(this,i,o,s)}}))}const ttt=[Bge(),zge(),p1e(),e1e(),s1e(),f1e(),n1e(),c1e()];function ntt(e){return[...ttt]}function rtt(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=ntt()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),hi.SENTRY_RELEASE&&hi.SENTRY_RELEASE.id&&(e.release=hi.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:UZe(e.stackParser||Cet),integrations:IKe(e),transport:e.transport||(oge()?oet:cet)};UKe(iet,t),e.autoSessionTracking&&itt()}function itt(){if(typeof hi.document>"u"){qp&&Mt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}yre({ignoreDuration:!0}),vre(),eH(({from:e,to:t})=>{e!==void 0&&e!==t&&(yre({ignoreDuration:!0}),vre())})}function att(e){const t={...e};$ge(t,"react"),rtt(t)}const stt={"routing.instrumentation":"react-router-v6"};function ott(e,t,n,r,i,a){return(s,o=!0,l=!0)=>{const c=hi&&hi.location&&hi.location.pathname;o&&c&&s({name:c,op:"pageload",origin:"auto.pageload.react.reactrouterv6",tags:stt,metadata:{source:"url"}})}}class ltt{constructor(t,n){Ks(this,"doc");Ks(this,"client");this.doc=t,this.client=n}}const pH=wn.define({combine(e){return e[e.length-1]}});Rf.define();class utt{constructor(t){Ks(this,"view");Ks(this,"conf");Ks(this,"_doc");this.view=t,this.conf=t.state.facet(pH),this._doc=this.conf.doc,this._doc.subscribe(n=>{if(n.type!=="snapshot")return;const r=this._doc.getRoot().content;t.dispatch({changes:{from:0,to:t.state.doc.length,insert:r.toString()},annotations:[Ls.remote.of(!0)]})}),this._doc.update(n=>{n.content||(n.content=new gI.Text)}),this._doc.subscribe("$.content",n=>{if(n.type!=="remote-change")return;const{operations:r}=n.value;r.forEach(i=>{if(i.type==="edit"){const a=[{from:Math.max(0,i.from),to:Math.max(0,i.to),insert:i.value.content}];t.dispatch({changes:a,annotations:[Ls.remote.of(!0)]})}})})}update(t){if(t.docChanged){for(const r of t.transactions){if(!["select","input","delete","move","undo","redo"].some(s=>r.isUserEvent(s))||r.annotation(Ls.remote))continue;let a=0;r.changes.iterChanges((s,o,l,c,d)=>{const h=d.toJSON().join(` -`);this._doc.update(p=>{p.content.edit(s+a,o+a,h)}),a+=h.length-(o-s)})}if(!(this.view.state.doc.toString()===this._doc.getRoot().content.toString())){const r=`YorkieSyncPlugin: Failed to sync the document - CM: ${this.view.state.doc.toString()} - Yorkie: ${this._doc.getRoot().content.toString()}`;console.error(r),XXe(r)}}}}const ctt=Ta.fromClass(utt);class dtt{constructor(t,n){this.left=t,this.right=n}}const Sb=(e,t)=>new dtt(e,t),ftt=(e,t)=>e.forEach(n=>t(n.left,n.right)),ip=typeof document<"u"?document:{},htt=e=>ip.createElement(e),ptt=()=>ip.createDocumentFragment(),mtt=e=>ip.createTextNode(e);typeof DOMParser<"u"&&new DOMParser;const gtt=(e,t)=>(ftt(t,(n,r)=>{r===!1?e.removeAttribute(n):r===!0?e.setAttribute(n,""):e.setAttribute(n,r)}),e),btt=e=>{const t=ptt();for(let n=0;n(m1e(e,btt(t)),e),T5=(e,t=[],n=[])=>ytt(gtt(htt(e),t),n),u3=mtt,m1e=(e,t)=>e.appendChild(t);ip.ELEMENT_NODE;ip.TEXT_NODE;ip.CDATA_SECTION_NODE;ip.COMMENT_NODE;ip.DOCUMENT_NODE;ip.DOCUMENT_TYPE_NODE;ip.DOCUMENT_FRAGMENT_NODE;var EI={exports:{}};/** +Error:`,i)}}function pJe(){return sJe(e=>{QN("cls",{metric:e}),Vge=e})}function mJe(){return uJe(e=>{QN("fid",{metric:e}),Wge=e})}function gJe(){return cJe(e=>{QN("lcp",{metric:e}),Qge=e})}function cH(e,t,n,r,i=!1){Yge(e,t);let a;return SI[e]||(a=n(),SI[e]=!0),r&&t({metric:r}),qge(e,t,i?a:void 0)}function bJe(e){const t={};e==="event"&&(t.durationThreshold=0),VN(e,n=>{QN(e,{entries:n})},t)}function Yge(e,t){R2[e]=R2[e]||[],R2[e].push(t)}function qge(e,t,n){return()=>{n&&n();const r=R2[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function AM(e){return typeof e=="number"&&isFinite(e)}function YS(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const yJe=2147483647;function ps(e){return e/1e3}function Gge(){return li&&li.addEventListener&&li.performance}let Nre=0,za={},mh,I2;function vJe(){const e=Gge();if(e&&Xh){e.mark&&li.performance.mark("sentry-tracing-init");const t=TJe(),n=EJe(),r=wJe();return()=>{t(),n(),r()}}return()=>{}}function OJe(){uH("longtask",({entries:e})=>{for(const t of e){const n=wE();if(!n)return;const r=ps(Xh+t.startTime),i=ps(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i})}})}function SJe(){uH("event",({entries:e})=>{for(const t of e){const n=wE();if(!n)return;if(t.name==="click"){const r=ps(Xh+t.startTime),i=ps(t.duration),a={description:Jx(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i},s=J0e(t.target);s&&(a.attributes={"ui.component_name":s}),n.startChild(a)}}})}function EJe(){return dJe(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(va&&Mt.log("[Measurements] Adding CLS"),za.cls={value:e.value,unit:""},I2=t)},!0)}function wJe(){return fJe(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(va&&Mt.log("[Measurements] Adding LCP"),za.lcp={value:e.value,unit:"millisecond"},mh=t)},!0)}function TJe(){return hJe(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=ps(Xh),r=ps(t.startTime);va&&Mt.log("[Measurements] Adding FID"),za.fid={value:e.value,unit:"millisecond"},za["mark.fid"]={value:n+r,unit:"second"}})}function xJe(e){const t=Gge();if(!t||!li.performance.getEntries||!Xh)return;va&&Mt.log("[Tracing] Adding & adjusting spans using Performance API");const n=ps(Xh),r=t.getEntries();let i,a;const{op:s,start_timestamp:o}=ml(e);if(r.slice(Nre).forEach(l=>{const c=ps(l.startTime),d=ps(l.duration);if(!(e.op==="navigation"&&o&&n+c{if(!za[c]||!o||n>=o)return;const d=za[c].value,h=n+ps(d),p=Math.abs((h-o)*1e3),b=p-d;va&&Mt.log(`[Measurements] Normalized ${c} from ${d} to ${p} (${b})`),za[c].value=p});const l=za["mark.fid"];l&&za.fid&&(YS(e,{description:"first input delay",endTimestamp:l.value+ps(za.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:l.value}),delete za["mark.fid"]),"fcp"in za||delete za.cls,Object.keys(za).forEach(c=>{SKe(c,za[c].value,za[c].unit)}),IJe(e)}mh=void 0,I2=void 0,za={}}function kJe(e,t,n,r,i){const a=i+n,s=a+r;return YS(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a}),a}function CJe(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{o3(e,t,r,n)}),o3(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),o3(e,t,"fetch",n,"cache","domainLookupStart"),o3(e,t,"domainLookup",n,"DNS"),_Je(e,t,n)}function o3(e,t,n,r,i,a){const s=a?t[a]:t[`${n}End`],o=t[`${n}Start`];!o||!s||YS(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+ps(o),endTimestamp:r+ps(s)})}function _Je(e,t,n){t.responseEnd&&(YS(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+ps(t.requestStart),endTimestamp:n+ps(t.responseEnd)}),YS(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+ps(t.responseStart),endTimestamp:n+ps(t.responseEnd)}))}function AJe(e,t,n,r,i,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=S5(n),o={};RM(o,t,"transferSize","http.response_transfer_size"),RM(o,t,"encodedBodySize","http.response_content_length"),RM(o,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(o["url.scheme"]=s.protocol.split(":").pop()),s.host&&(o["server.address"]=s.host),o["url.same_origin"]=n.includes(li.location.origin);const l=a+r,c=l+i;YS(e,{description:n.replace(li.location.origin,""),endTimestamp:c,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:o})}function RJe(e){const t=li.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),AM(n.rtt)&&(za["connection.rtt"]={value:n.rtt,unit:"millisecond"})),AM(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),AM(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function IJe(e){mh&&(va&&Mt.log("[Measurements] Adding LCP Data"),mh.element&&e.setTag("lcp.element",Jx(mh.element)),mh.id&&e.setTag("lcp.id",mh.id),mh.url&&e.setTag("lcp.url",mh.url.trim().slice(0,200)),e.setTag("lcp.size",mh.size)),I2&&I2.sources&&(va&&Mt.log("[Measurements] Adding CLS Data"),I2.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,Jx(t.node))))}function RM(e,t,n,r){const i=t[n];i!=null&&i0&&p.setAttribute("http.response_content_length",v)}}else e.error&&p.setStatus("internal_error");p.end(),delete r[h]}return}const s=_m(),o=mo(),{method:l,url:c}=e.fetchData,d=a?Dge({name:`${l} ${c}`,onlyIfParent:!0,attributes:{url:c,type:"fetch","http.method":l,[OO]:i},op:"http.client"}):void 0;if(d&&(e.fetchData.__span=d.spanContext().spanId,r[d.spanContext().spanId]=d),n(e.fetchData.url)&&o){const h=e.args[0];e.args[1]=e.args[1]||{};const p=e.args[1];p.headers=PJe(h,o,s,p,d)}return d}function PJe(e,t,n,r,i){const a=i||n.getSpan(),s=dy(),{traceId:o,spanId:l,sampled:c,dsc:d}={...s.getPropagationContext(),...n.getPropagationContext()},h=a?UN(a):nH(o,l,c),p=mge(d||(a?nk(a):jN(o,t,n))),b=r.headers||(typeof Request<"u"&&gm(e,Request)?e.headers:void 0);if(b)if(typeof Headers<"u"&&gm(b,Headers)){const v=new Headers(b);return v.append("sentry-trace",h),p&&v.append(PF,p),v}else if(Array.isArray(b)){const v=[...b,["sentry-trace",h]];return p&&v.push([PF,p]),v}else{const v="baggage"in b?b.baggage:void 0,S=[];return Array.isArray(v)?S.push(...v):v&&S.push(v),p&&S.push(p),{...b,"sentry-trace":h,baggage:S.length>0?S.join(","):void 0}}else return{"sentry-trace":h,baggage:p}}const BF=["localhost",/^\/(?!\/)/],UF={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:BF,tracePropagationTargets:BF};function MJe(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s}={traceFetch:UF.traceFetch,traceXHR:UF.traceXHR,...e},o=typeof a=="function"?a:d=>!0,l=d=>BJe(d,r||i),c={};t&&lge(d=>{const h=NJe(d,o,l,c);s&&h&&Pre(h)}),n&&dge(d=>{const h=UJe(d,o,l,c);s&&h&&Pre(h)})}function LJe(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function Pre(e){const{url:t}=ml(e).data||{};if(!t||typeof t!="string")return;const n=uH("resource",({entries:r})=>{r.forEach(i=>{LJe(i)&&i.name.endsWith(t)&&(FJe(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function $Je(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function dh(e=0){return((Xh||performance.timeOrigin)+e)/1e3}function FJe(e){const{name:t,version:n}=$Je(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Xh?[...r,["http.request.redirect_start",dh(e.redirectStart)],["http.request.fetch_start",dh(e.fetchStart)],["http.request.domain_lookup_start",dh(e.domainLookupStart)],["http.request.domain_lookup_end",dh(e.domainLookupEnd)],["http.request.connect_start",dh(e.connectStart)],["http.request.secure_connection_start",dh(e.secureConnectionStart)],["http.request.connection_end",dh(e.connectEnd)],["http.request.request_start",dh(e.requestStart)],["http.request.response_start",dh(e.responseStart)],["http.request.response_end",dh(e.responseEnd)]]:r}function BJe(e,t){return bC(e,t||BF)}function UJe(e,t,n,r){const i=e.xhr,a=i&&i[yO];if(!HN()||!i||i.__sentry_own_request__||!a)return;const s=t(a.url);if(e.endTimestamp&&s){const h=i.__sentry_xhr_span_id__;if(!h)return;const p=r[h];p&&a.status_code!==void 0&&(aH(p,a.status_code),p.end(),delete r[h]);return}const o=_m(),l=dy(),c=s?Dge({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,url:a.url,[OO]:"auto.http.browser"},op:"http.client"}):void 0;c&&(i.__sentry_xhr_span_id__=c.spanContext().spanId,r[i.__sentry_xhr_span_id__]=c);const d=mo();if(i.setRequestHeader&&n(a.url)&&d){const{traceId:h,spanId:p,sampled:b,dsc:v}={...l.getPropagationContext(),...o.getPropagationContext()},S=c?UN(c):nH(h,p,b),w=mge(v||(c?nk(c):jN(h,d,o)));zJe(i,S,w)}return c}function zJe(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(PF,n)}catch{}}function jJe(e,t=!0,n=!0){if(!li||!li.location){va&&Mt.warn("Could not initialize routing instrumentation due to invalid location");return}let r=li.location.href,i;t&&(i=e({name:li.location.pathname,startTimestamp:Xh?Xh/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&eH(({to:a,from:s})=>{if(s===void 0&&r&&r.indexOf(a)!==-1){r=void 0;return}s!==a&&(r=void 0,i&&(va&&Mt.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.end()),i=e({name:li.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const HJe="BrowserTracing",VJe={...E5,markBackgroundTransactions:!0,routingInstrumentation:jJe,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...UF};class WJe{constructor(t){this.name=HJe,this._hasSetTracePropagationTargets=!1,yKe(),va&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...VJe,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=vJe(),this.options.enableLongTask&&OJe(),this.options._experiments.enableInteractions&&SJe()}setupOnce(t,n){this._getCurrentHub=n;const i=n().getClient(),a=i&&i.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:o,startTransactionOnPageLoad:l,markBackgroundTransactions:c,traceFetch:d,traceXHR:h,shouldCreateSpanForRequest:p,enableHTTPTimings:b,_experiments:v}=this.options,S=a&&a.tracePropagationTargets,w=S||this.options.tracePropagationTargets;va&&this._hasSetTracePropagationTargets&&S&&Mt.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(T=>{const x=this._createRouteTransaction(T);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(x,T,n),x},l,o),c&&rJe(),v.enableInteractions&&this._registerInteractionListener(),MJe({traceFetch:d,traceXHR:h,tracePropagationTargets:w,shouldCreateSpanForRequest:p,enableHTTPTimings:b})}_createRouteTransaction(t){if(!this._getCurrentHub){va&&Mt.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:a,heartbeatInterval:s}=this.options,o=t.op==="pageload";let l;if(o){const b=o?Mre("sentry-trace"):"",v=o?Mre("baggage"):void 0,{traceparentData:S,dynamicSamplingContext:w}=EXe(b,v);l={...t,...S,metadata:{...t.metadata,dynamicSamplingContext:S&&!w?{}:w},trimEnd:!0}}else l={...t,trimEnd:!0};const c=typeof r=="function"?r(l):l,d=c===void 0?{...l,sampled:!1}:c;d.metadata=d.name!==l.name?{...d.metadata,source:"custom"}:d.metadata,this._latestRouteName=d.name,this._latestRouteSource=QJe(d),d.sampled===!1&&va&&Mt.log(`[Tracing] Will not send ${d.op} transaction because of beforeNavigate.`),va&&Mt.log(`[Tracing] Starting ${d.op} transaction on scope`);const{location:h}=li,p=xre(n,d,i,a,!0,{location:h},s,o);return o&&(li.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(li.document.readyState)&&p.sendAutoFinishSignal()}),["interactive","complete"].includes(li.document.readyState)&&p.sendAutoFinishSignal()),p.registerBeforeFinishCallback(b=>{this._collectWebVitals(),xJe(b)}),p}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:r,finalTimeout:i,heartbeatInterval:a}=this.options,s="ui.action.click",o=wE();if(o&&o.op&&["navigation","pageload"].includes(o.op)){va&&Mt.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){va&&Mt.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){va&&Mt.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const l=this._getCurrentHub(),{location:c}=li,d={name:this._latestRouteName,op:s,trimEnd:!0,data:{[VO]:this._latestRouteSource||"url"}};t=xre(l,d,r,i,!0,{location:c},a)};["click"].forEach(r=>{addEventListener(r,n,{once:!1,capture:!0})})}}function Mre(e){const t=AZe(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function QJe(e){const t=e.attributes&&e.attributes[VO],n=e.data&&e.data[VO],r=e.metadata&&e.metadata.source;return t||n||r}const hi=ui;let zF=0;function Zge(){return zF>0}function YJe(){zF++,setTimeout(()=>{zF--})}function qS(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(Jj(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const a=i.map(s=>qS(s,t));return e.apply(this,a)}catch(a){throw YJe(),KXe(s=>{s.addEventProcessor(o=>(t.mechanism&&(CF(o,void 0,void 0),tk(o,t.mechanism)),o.extra={...o.extra,arguments:i},o)),ZXe(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}tge(r,e),ek(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const qp=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Xge(e,t){const n=dH(e,t),r={type:t&&t.name,value:XJe(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function qJe(e,t,n,r){const i=mo(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:LN(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:eet(t,{isUnhandledRejection:r})}]},extra:{__serialized__:fge(t,a)}};if(n){const o=dH(e,n);o.length&&(s.exception.values[0].stacktrace={frames:o})}return s}function IM(e,t){return{exception:{values:[Xge(e,t)]}}}function dH(e,t){const n=t.stacktrace||t.stack||"",r=ZJe(t);try{return e(n,r)}catch{}return[]}const GJe=/Minified React error #\d+;/i;function ZJe(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(GJe.test(e.message))return 1}return 0}function XJe(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function KJe(e,t,n,r){const i=n&&n.syntheticException||void 0,a=fH(e,t,i,r);return tk(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),QS(a)}function JJe(e,t,n="info",r,i){const a=r&&r.syntheticException||void 0,s=jF(e,t,a,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),QS(s)}function fH(e,t,n,r,i){let a;if(Gj(t)&&t.error)return IM(e,t.error);if(ere(t)||vZe(t)){const s=t;if("stack"in t)a=IM(e,t);else{const o=s.name||(ere(s)?"DOMError":"DOMException"),l=s.message?`${o}: ${s.message}`:o;a=jF(e,l,n,r),CF(a,l)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return G0e(t)?IM(e,t):WS(t)||LN(t)?(a=qJe(e,t,n,i),tk(a,{synthetic:!0}),a):(a=jF(e,t,n,r),CF(a,`${t}`,void 0),tk(a,{synthetic:!0}),a)}function jF(e,t,n,r){const i={};if(r&&n){const a=dH(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]})}if(Zj(t)){const{__sentry_template_string__:a,__sentry_template_values__:s}=t;return i.logentry={message:a,params:s},i}return i.message=t,i}function eet(e,{isUnhandledRejection:t}){const n=FZe(e),r=t?"promise rejection":"exception";return Gj(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:LN(e)?`Event \`${tet(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function tet(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function net(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:yC(r)}},a=ret(e);return EE(i,[a])}function ret(e){return[{type:"user_report"},e]}class iet extends $Ke{constructor(t){const n=hi.SENTRY_SDK_SOURCE||sXe();$ge(t,"browser",["browser"],n),super(t),t.sendClientReports&&hi.document&&hi.document.addEventListener("visibilitychange",()=>{hi.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return KJe(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return JJe(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){qp&&Mt.warn("SDK not enabled, will not capture user feedback.");return}const n=net(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){qp&&Mt.log("No outcomes to send");return}if(!this._dsn){qp&&Mt.log("No dsn provided, will not send outcomes");return}qp&&Mt.log("Sending outcomes:",t);const n=AXe(t,this._options.tunnel&&yC(this._dsn));this._sendEnvelope(n)}}let JT;function aet(){if(JT)return JT;if(IF(hi.fetch))return JT=hi.fetch.bind(hi);const e=hi.document;let t=hi.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){qp&&Mt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return JT=t.bind(hi)}function set(){JT=void 0}function oet(e,t=aet()){let n=0,r=0;function i(a){const s=a.body.length;n+=s,r++;const o={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,o).then(l=>(n-=s,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return set(),n-=s,r--,tH(l)}}return Lge(e,i)}const uet=4;function cet(e){function t(n){return new Ju((r,i)=>{const a=new XMLHttpRequest;a.onerror=i,a.onreadystatechange=()=>{a.readyState===uet&&r({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&a.setRequestHeader(s,e.headers[s]);a.send(n.body)})}return Lge(e,t)}const YN="?",det=30,fet=40,het=50;function hH(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const pet=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,met=/\((\S*)(?::(\d+))(?::(\d+))\)/,get=e=>{const t=pet.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const a=met.exec(t[2]);a&&(t[2]=a[1],t[3]=a[2],t[4]=a[3])}const[r,i]=Kge(t[1]||YN,t[2]);return hH(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},bet=[det,get],yet=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,vet=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Oet=e=>{const t=yet.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=vet.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],i=t[1]||YN;return[i,r]=Kge(i,r),hH(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},Eet=[het,Oet],wet=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Tet=e=>{const t=wet.exec(e);return t?hH(t[2],t[1]||YN,+t[3],t[4]?+t[4]:void 0):void 0},xet=[fet,Tet],ket=[bet,Eet,xet],Cet=ige(...ket),Kge=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:YN,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},l3=1024,Jge="Breadcrumbs",_et=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Jge,setupOnce(){},setup(n){t.console&&jZe(Iet(n)),t.dom&&WZe(Ret(n,t.dom)),t.xhr&&dge(Det(n)),t.fetch&&lge(Net(n)),t.history&&eH(Pet(n)),t.sentry&&n.on&&n.on("beforeSendEvent",Aet(n))}}},e1e=_et;Yg(Jge,e1e);function Aet(e){return function(n){mo()===e&&ny({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:N0(n)},{event:n})}}function Ret(e,t){return function(r){if(mo()!==e)return;let i,a,s=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>l3&&(qp&&Mt.warn(`\`dom.maxStringLength\` cannot exceed ${l3}, but a value of ${o} was configured. Sentry will use ${l3} instead.`),o=l3),typeof s=="string"&&(s=[s]);try{const c=r.event,d=Met(c)?c.target:c;i=Jx(d,{keyAttrs:s,maxStringLength:o}),a=J0e(d)}catch{i=""}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};a&&(l.data={"ui.component_name":a}),ny(l,{event:r.event,name:r.name,global:r.global})}}function Iet(e){return function(n){if(mo()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:pXe(n.level),message:tre(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${tre(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;ny(r,{input:n.args,level:n.level})}}function Det(e){return function(n){if(mo()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,a=n.xhr[yO];if(!r||!i||!a)return;const{method:s,url:o,status_code:l,body:c}=a,d={method:s,url:o,status_code:l},h={xhr:n.xhr,input:c,startTimestamp:r,endTimestamp:i};ny({category:"xhr",data:d,type:"http"},h)}}function Net(e){return function(n){if(mo()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};ny({category:"fetch",data:a,level:"error",type:"http"},s)}else{const a=n.response,s={...n.fetchData,status_code:a&&a.status},o={input:n.args,response:a,startTimestamp:r,endTimestamp:i};ny({category:"fetch",data:s,type:"http"},o)}}}function Pet(e){return function(n){if(mo()!==e)return;let r=n.from,i=n.to;const a=S5(hi.location.href);let s=r?S5(r):void 0;const o=S5(i);(!s||!s.path)&&(s=a),a.protocol===o.protocol&&a.host===o.host&&(i=o.relative),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),ny({category:"navigation",data:{from:r,to:i}})}}function Met(e){return!!e&&!!e.target}const t1e="Dedupe",Let=()=>{let e;return{name:t1e,setupOnce(){},processEvent(t){if(t.type)return t;try{if($et(t,e))return qp&&Mt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},n1e=Let;Yg(t1e,n1e);function $et(e,t){return t?!!(Fet(e,t)||Bet(e,t)):!1}function Fet(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!i1e(e,t)||!r1e(e,t))}function Bet(e,t){const n=Lre(t),r=Lre(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!i1e(e,t)||!r1e(e,t))}function r1e(e,t){let n=$re(e),r=$re(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:a1e,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(zet(n),Fre("onerror")),t.onunhandledrejection&&(jet(n),Fre("onunhandledrejection"))}}},s1e=Uet;Yg(a1e,s1e);function zet(e){uge(t=>{const{stackParser:n,attachStacktrace:r}=l1e();if(mo()!==e||Zge())return;const{msg:i,url:a,line:s,column:o,error:l}=t,c=l===void 0&&Qh(i)?Wet(i,a,s,o):o1e(fH(n,l||i,void 0,r,!1),a,s,o);c.level="error",Sge(c,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function jet(e){cge(t=>{const{stackParser:n,attachStacktrace:r}=l1e();if(mo()!==e||Zge())return;const i=Het(t),a=Xj(i)?Vet(i):fH(n,i,void 0,r,!0);a.level="error",Sge(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Het(e){if(Xj(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function Vet(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Wet(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=Gj(e)?e.message:e,s="Error";const o=a.match(i);return o&&(s=o[1],a=o[2]),o1e({exception:{values:[{type:s,value:a}]}},t,n,r)}function o1e(e,t,n,r){const i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},l=o.frames=o.frames||[],c=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,h=Qh(t)&&t.length>0?t:_Ze();return l.length===0&&l.push({colno:c,filename:h,function:"?",in_app:!0,lineno:d}),e}function Fre(e){qp&&Mt.log(`Global Handler attached: ${e}`)}function l1e(){const e=mo();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const u1e="HttpContext",Qet=()=>({name:u1e,setupOnce(){},preprocessEvent(e){if(!hi.navigator&&!hi.location&&!hi.document)return;const t=e.request&&e.request.url||hi.location&&hi.location.href,{referrer:n}=hi.document||{},{userAgent:r}=hi.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:i};e.request=a}}),c1e=Qet;Yg(u1e,c1e);const Yet="cause",qet=5,d1e="LinkedErrors",Get=(e={})=>{const t=e.limit||qet,n=e.key||Yet;return{name:d1e,setupOnce(){},preprocessEvent(r,i,a){const s=a.getOptions();TZe(Xge,s.stackParser,s.maxValueLength,n,t,r,i)}}},f1e=Get;Yg(d1e,f1e);const Zet=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],h1e="TryCatch",Xet=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:h1e,setupOnce(){t.setTimeout&&co(hi,"setTimeout",Bre),t.setInterval&&co(hi,"setInterval",Bre),t.requestAnimationFrame&&co(hi,"requestAnimationFrame",Ket),t.XMLHttpRequest&&"XMLHttpRequest"in hi&&co(XMLHttpRequest.prototype,"send",Jet);const n=t.eventTarget;n&&(Array.isArray(n)?n:Zet).forEach(ett)}}},p1e=Xet;Yg(h1e,p1e);function Bre(e){return function(...t){const n=t[0];return t[0]=qS(n,{mechanism:{data:{function:bm(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Ket(e){return function(t){return e.apply(this,[qS(t,{mechanism:{data:{function:"requestAnimationFrame",handler:bm(e)},handled:!1,type:"instrument"}})])}}function Jet(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&co(n,i,function(a){const s={mechanism:{data:{function:i,handler:bm(a)},handled:!1,type:"instrument"}},o=Jj(a);return o&&(s.mechanism.data.handler=bm(o)),qS(a,s)})}),e.apply(this,t)}}function ett(e){const t=hi,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(co(n,"addEventListener",function(r){return function(i,a,s){try{typeof a.handleEvent=="function"&&(a.handleEvent=qS(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:bm(a),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,qS(a,{mechanism:{data:{function:"addEventListener",handler:bm(a),target:e},handled:!1,type:"instrument"}}),s])}}),co(n,"removeEventListener",function(r){return function(i,a,s){const o=a;try{const l=o&&o.__sentry_wrapped__;l&&r.call(this,i,l,s)}catch{}return r.call(this,i,o,s)}}))}const ttt=[Bge(),zge(),p1e(),e1e(),s1e(),f1e(),n1e(),c1e()];function ntt(e){return[...ttt]}function rtt(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=ntt()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),hi.SENTRY_RELEASE&&hi.SENTRY_RELEASE.id&&(e.release=hi.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:UZe(e.stackParser||Cet),integrations:IKe(e),transport:e.transport||(oge()?oet:cet)};UKe(iet,t),e.autoSessionTracking&&itt()}function itt(){if(typeof hi.document>"u"){qp&&Mt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}yre({ignoreDuration:!0}),vre(),eH(({from:e,to:t})=>{e!==void 0&&e!==t&&(yre({ignoreDuration:!0}),vre())})}function att(e){const t={...e};$ge(t,"react"),rtt(t)}const stt={"routing.instrumentation":"react-router-v6"};function ott(e,t,n,r,i,a){return(s,o=!0,l=!0)=>{const c=hi&&hi.location&&hi.location.pathname;o&&c&&s({name:c,op:"pageload",origin:"auto.pageload.react.reactrouterv6",tags:stt,metadata:{source:"url"}})}}class ltt{constructor(t,n){Ks(this,"doc");Ks(this,"client");this.doc=t,this.client=n}}const pH=wn.define({combine(e){return e[e.length-1]}});Rf.define();class utt{constructor(t){Ks(this,"view");Ks(this,"conf");Ks(this,"_doc");this.view=t,this.conf=t.state.facet(pH),this._doc=this.conf.doc,this._doc.subscribe(n=>{if(n.type!=="snapshot")return;const r=this._doc.getRoot().content;t.dispatch({changes:{from:0,to:t.state.doc.length,insert:r.toString()},annotations:[Ls.remote.of(!0)]})}),this._doc.update(n=>{n.content||(n.content=new gI.Text)}),this._doc.subscribe("$.content",n=>{if(n.type!=="remote-change")return;const{operations:r}=n.value;r.forEach(i=>{if(i.type==="edit"){const a=[{from:Math.max(0,i.from),to:Math.max(0,i.to),insert:i.value.content}];t.dispatch({changes:a,annotations:[Ls.remote.of(!0)]})}})})}update(t){if(t.docChanged){for(const r of t.transactions){if(!["select","input","delete","move","undo","redo"].some(s=>r.isUserEvent(s))||r.annotation(Ls.remote))continue;let a=0;this._doc.update(s=>{r.changes.iterChanges((o,l,c,d,h)=>{const p=h.toJSON().join(` +`);s.content.edit(o+a,l+a,p),a+=p.length-(l-o)})})}if(!(this.view.state.doc.toString()===this._doc.getRoot().content.toString())){const r=`YorkieSyncPlugin: Failed to sync the document +CM: ${this.view.state.doc.toString()} +Yorkie: ${this._doc.getRoot().content.toString()}`;console.error(r),XXe(r)}}}}const ctt=Ta.fromClass(utt);class dtt{constructor(t,n){this.left=t,this.right=n}}const Sb=(e,t)=>new dtt(e,t),ftt=(e,t)=>e.forEach(n=>t(n.left,n.right)),ip=typeof document<"u"?document:{},htt=e=>ip.createElement(e),ptt=()=>ip.createDocumentFragment(),mtt=e=>ip.createTextNode(e);typeof DOMParser<"u"&&new DOMParser;const gtt=(e,t)=>(ftt(t,(n,r)=>{r===!1?e.removeAttribute(n):r===!0?e.setAttribute(n,""):e.setAttribute(n,r)}),e),btt=e=>{const t=ptt();for(let n=0;n(m1e(e,btt(t)),e),T5=(e,t=[],n=[])=>ytt(gtt(htt(e),t),n),u3=mtt,m1e=(e,t)=>e.appendChild(t);ip.ELEMENT_NODE;ip.TEXT_NODE;ip.CDATA_SECTION_NODE;ip.COMMENT_NODE;ip.DOCUMENT_NODE;ip.DOCUMENT_TYPE_NODE;ip.DOCUMENT_FRAGMENT_NODE;var EI={exports:{}};/** * @license * Lodash * Copyright OpenJS Foundation and other contributors @@ -619,7 +619,7 @@ l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12, 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},oEt=function(t){return gn.createElement(yg,Object.assign({},t),gn.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12A10,10 0 0,0 12,2Z`}))},P3={fontSize:20,marginInlineEnd:8},lEt={default:void 0,success:gn.createElement(iEt,{style:P3}),warning:gn.createElement(aEt,{style:P3}),error:gn.createElement(sEt,{style:P3}),info:gn.createElement(oEt,{style:P3})};function q2(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var a=arguments.length,s=new Array(a),o=0;o .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},_L=16,K1="SnackbarContainer",rf={root:K1+"-root",rootDense:K1+"-rootDense",top:K1+"-top",bottom:K1+"-bottom",left:K1+"-left",right:K1+"-right",center:K1+"-center"},hEt=Ne("div")(function(e){var t,n,r,i,a,s,o=e.theme;return s={},s["&."+rf.root]=(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:o.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t[CL.container]={pointerEvents:"all"},t[CL.wrapper]={padding:Dp.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+Dp.view.default*2+"px)",t[o.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - "+_L*2+"px)"},t),s["&."+rf.rootDense]=(n={},n[CL.wrapper]={padding:Dp.snackbar.dense+"px 0px"},n),s["&."+rf.top]={top:Dp.view.default-Dp.snackbar.default,flexDirection:"column"},s["&."+rf.bottom]={bottom:Dp.view.default-Dp.snackbar.default,flexDirection:"column-reverse"},s["&."+rf.left]=(r={left:Dp.view.default},r[o.breakpoints.up("sm")]={alignItems:"flex-start"},r[o.breakpoints.down("sm")]={left:_L+"px"},r),s["&."+rf.right]=(i={right:Dp.view.default},i[o.breakpoints.up("sm")]={alignItems:"flex-end"},i[o.breakpoints.down("sm")]={right:_L+"px"},i),s["&."+rf.center]=(a={left:"50%",transform:"translateX(-50%)"},a[o.breakpoints.up("sm")]={alignItems:"center"},a),s}),pEt=function(t){var n=t.className,r=t.anchorOrigin,i=t.dense,a=hg(t,["className","anchorOrigin","dense"]),s=pk(rf[r.vertical],rf[r.horizontal],rf.root,n,i&&rf.rootDense);return gn.createElement(hEt,Object.assign({className:s},a))},mEt=gn.memo(pEt),gEt=function(e){GSt(t,e);function t(r){var i;return i=e.call(this,r)||this,i.enqueueSnackbar=function(a,s){s===void 0&&(s={});var o=s,l=o.key,c=o.preventDuplicate,d=hg(o,["key","preventDuplicate"]),h=N3(l),p=h?l:new Date().getTime()+Math.random(),b=JSt(d,i.props,wb),v=Yi({key:p},d,{message:a,open:!0,entered:!1,requestClose:!1,variant:b("variant"),anchorOrigin:b("anchorOrigin"),autoHideDuration:b("autoHideDuration")});return d.persist&&(v.autoHideDuration=void 0),i.setState(function(S){if(c===void 0&&i.props.preventDuplicate||c){var w=function(C){return h?C.key===l:C.message===a},T=S.queue.findIndex(w)>-1,x=S.snacks.findIndex(w)>-1;if(T||x)return S}return i.handleDisplaySnack(Yi({},S,{queue:[].concat(S.queue,[v])}))}),p},i.handleDisplaySnack=function(a){var s=a.snacks;return s.length>=i.maxSnack?i.handleDismissOldest(a):i.processQueue(a)},i.processQueue=function(a){var s=a.queue,o=a.snacks;return s.length>0?Yi({},a,{snacks:[].concat(o,[s[0]]),queue:s.slice(1,s.length)}):a},i.handleDismissOldest=function(a){if(a.snacks.some(function(d){return!d.open||d.requestClose}))return a;var s=!1,o=!1,l=a.snacks.reduce(function(d,h){return d+(h.open&&h.persist?1:0)},0);l===i.maxSnack&&(o=!0);var c=a.snacks.map(function(d){return!s&&(!d.persist||o)?(s=!0,d.entered?(d.onClose&&d.onClose(null,P0.MAXSNACK,d.key),i.props.onClose&&i.props.onClose(null,P0.MAXSNACK,d.key),Yi({},d,{open:!1})):Yi({},d,{requestClose:!0})):Yi({},d)});return Yi({},a,{snacks:c})},i.handleEnteredSnack=function(a,s,o){if(!N3(o))throw new Error("handleEnteredSnack Cannot be called with undefined key");i.setState(function(l){var c=l.snacks;return{snacks:c.map(function(d){return d.key===o?Yi({},d,{entered:!0}):Yi({},d)})}})},i.handleCloseSnack=function(a,s,o){if(i.props.onClose&&i.props.onClose(a,s,o),s!==P0.CLICKAWAY){var l=o===void 0;i.setState(function(c){var d=c.snacks,h=c.queue;return{snacks:d.map(function(p){return!l&&p.key!==o?Yi({},p):p.entered?Yi({},p,{open:!1}):Yi({},p,{requestClose:!0})}),queue:h.filter(function(p){return p.key!==o})}})}},i.closeSnackbar=function(a){var s=i.state.snacks.find(function(o){return o.key===a});N3(a)&&s&&s.onClose&&s.onClose(null,P0.INSTRUCTED,a),i.handleCloseSnack(null,P0.INSTRUCTED,a)},i.handleExitedSnack=function(a,s,o){var l=s||o;if(!N3(l))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(c){var d=i.processQueue(Yi({},c,{snacks:c.snacks.filter(function(h){return h.key!==l})}));return d.queue.length===0?d:i.handleDismissOldest(d)})},i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(zse(i)),closeSnackbar:i.closeSnackbar.bind(zse(i))}},i}var n=t.prototype;return n.render=function(){var i=this,a=this.state.contextValue,s=this.props,o=s.iconVariant,l=s.dense,c=l===void 0?wb.dense:l,d=s.hideIconVariant,h=d===void 0?wb.hideIconVariant:d,p=s.domRoot,b=s.children,v=s.classes,S=v===void 0?{}:v,w=hg(s,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),T=this.state.snacks.reduce(function(k,C){var I,_=XSt(C.anchorOrigin),A=k[_]||[];return Yi({},k,(I={},I[_]=[].concat(A,[C]),I))},{}),x=Object.keys(T).map(function(k){var C=T[k];return gn.createElement(mEt,{key:k,dense:c,anchorOrigin:C[0].anchorOrigin,className:pk(S.containerRoot,S[L5.toContainerAnchorOrigin(k)])},C.map(function(I){return gn.createElement(fEt,Object.assign({},w,{key:I.key,snack:I,dense:c,iconVariant:o,hideIconVariant:h,classes:KSt(S),onClose:i.handleCloseSnack,onExited:q2([i.handleExitedSnack,i.props.onExited]),onEntered:q2([i.handleEnteredSnack,i.props.onEntered])}))}))});return gn.createElement(ySe.Provider,{value:a},b,p?ly.createPortal(x,p):x)},qSt(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||wb.maxSnack}}]),t}(N.Component),B6=function(){return N.useContext(ySe)};function bEt(e){const{title:t,feature:n,onClose:r}=e,i=ji(),a=EC(),s=Ki(fE),{data:o,memoryKey:l,isLoading:c,isComplete:d,mutateAsync:h}=QSt(n),{data:p,isLoading:b,isComplete:v,mutateAsync:S}=YSt(l),[w,T]=N.useState(""),x=document.getElementById(mH),k=N.useMemo(()=>c||b,[c,b]),C=N.useMemo(()=>d||v,[d,v]),I=N.useMemo(()=>p||o,[o,p]),{enqueueSnackbar:_}=B6(),A=N.useRef(null),U=pOe(),{reset:F,formState:M}=U;N.useEffect(()=>{M.isSubmitSuccessful&&F({content:""})},[M.isSubmitSuccessful,F]),N.useEffect(()=>{T((x==null?void 0:x.getAttribute("content"))??"")},[x]),N.useEffect(()=>{w&&h(w)},[w,h]),N.useEffect(()=>{I&&A.current&&A.current.scrollTo({behavior:"smooth",top:A.current.scrollHeight})},[I]);const V=async()=>{I&&(await wy.write(I),_("URL Copied!",{variant:"success"}))},Q=async()=>{S("Recreate the last statement with a paraphrase or adjust it slightly to better suit the user's input.")},X=W=>{S(W.content)},Y=(W=!1)=>{var ye,te;if(!s.cmView)return;const ee=s.cmView.state.selection.main;let J=Math.min(ee.to,ee.from);const K=Math.max(ee.to,ee.from);let ne=I;W||(J=K,ne=` -${ne}`);const j=W?J:J+1,Ce=J+ne.length;(ye=s.cmView)==null||ye.dispatch({changes:{from:J,to:K,insert:ne},selection:{anchor:j,head:Ce}}),(te=s.doc)==null||te.update((ve,Se)=>{ve.content.edit(J,K,ne),Se.set({selection:ve.content.indexRangeToPosRange([j,Ce])})}),r()};return D.jsxs(hr,{gap:4,children:[D.jsx($s,{bgcolor:i.palette.background.paper,p:1,borderRadius:2,border:1,children:D.jsx(Ar,{children:t})}),k&&D.jsx(xm,{sx:{marginX:"auto"}}),D.jsx($s,{ref:A,sx:{height:350,overflow:"auto"},children:!k&&D.jsx(Iye,{source:pB(I||""),wrapperElement:{"data-color-mode":a}})}),D.jsxs(hr,{gap:2,children:[D.jsx(um,{in:C,children:D.jsxs(hr,{direction:"row",justifyContent:"flex-end",gap:1,children:[D.jsx(lo,{variant:"outlined",onClick:Q,children:D.jsx(Zve,{fontSize:"small"})}),D.jsx(lo,{variant:"outlined",onClick:V,children:D.jsx(R6,{fontSize:"small"})}),D.jsx(lo,{variant:"outlined",onClick:()=>Y(),children:"Insert below"}),D.jsx(lo,{variant:"contained",onClick:()=>Y(!0),children:"Replace"})]})}),D.jsx(Af,{children:D.jsx(GC,{defaultValues:{content:""},formContext:U,onSuccess:X,children:D.jsx(hr,{gap:4,alignItems:"flex-end",children:D.jsx(F6,{variant:"outlined",name:"content",placeholder:"Tell Yorkie what to do next",required:!0,fullWidth:!0,disabled:!C,size:"small",InputProps:{startAdornment:D.jsx(Ex,{position:"start",children:D.jsx("img",{src:"/yorkie.png",height:20})}),endAdornment:D.jsx(um,{in:C,children:D.jsx(Ex,{position:"end",children:D.jsx($a,{type:"submit",edge:"end",children:D.jsx(gSe,{})})})})}})})})})]})]})}function yEt(e){const{onCloseIntelligence:t,...n}=e,r=()=>{var a;(a=n==null?void 0:n.onClose)==null||a.call(n,new Event("Close Modal"),"escapeKeyDown")},i=()=>{t(),r()};return D.jsx(Ug,{disableAutoFocus:!0,...n,children:D.jsx(po,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4},children:D.jsxs(hr,{gap:4,children:[D.jsxs(hr,{alignItems:"center",gap:1,children:[D.jsx("img",{src:"/yorkie.png",alt:"yorkie",width:60}),D.jsxs(Ar,{variant:"h6",align:"center",children:["Do you want to discard",D.jsx("br",{}),"the Yorkie response?"]})]}),D.jsxs(hr,{direction:"row",gap:1,justifyContent:"center",children:[D.jsx(lo,{variant:"outlined",onClick:i,children:"Discard"}),D.jsx(lo,{variant:"contained",onClick:r,children:"Cancel"})]})]})})})}function vEt(e){const{onClose:t}=e,n=ji(),r=Ki(fE),i=N.useRef(null),[a,s]=N.useState(null),[o,l]=N.useState(null),[c,d]=N.useState(),[h,p]=N.useState(!1),b=N.useRef(null),v=N.useMemo(()=>r.cmView.contentDOM.getBoundingClientRect().width-12,[r.cmView]);N.useEffect(()=>{if(i.current)return d(i.current),()=>{d(void 0)}},[]);const S=(T,x)=>{l(T),s(x)},w=()=>{p(T=>!T)};return D.jsxs($s,{sx:{position:"absolute",mt:1},children:[D.jsx("span",{ref:i,style:{marginTop:4}}),D.jsx(uN,{open:!!c,anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:w,children:D.jsx(kz,{ref:b,sx:{boxShadow:n.shadows[11],borderRadius:2,width:v,padding:2},children:o&&a?D.jsx(bEt,{title:a,feature:o,onClose:t}):D.jsx(Pgt,{onSelectFeature:S})})}),D.jsx(yEt,{open:h,onCloseIntelligence:t,onClose:w})]})}function OEt(){const e=ji(),[t,n]=N.useState(!1),[r,i]=N.useState(null),[a,s]=N.useState(null),[o,l]=N.useState(null);Gq(()=>{l(r)},500,[r]),N.useEffect(()=>{document.addEventListener("selectionchange",function(){const d=document.getElementById(b1e),h=document.getElementById(mH);i(d),s(h),d||(n(!1),l(null))})},[]);const c=()=>{n(d=>!d)};if(!(!o||!a))return D.jsxs(D.Fragment,{children:[D.jsx(sE,{open:!!o,anchorEl:o,placement:"top-start",transition:!0,children:({TransitionProps:d})=>D.jsx(um,{...d,children:D.jsx(kz,{sx:{boxShadow:e.shadows[11],borderRadius:2,mb:1},children:D.jsx($ce,{sx:{paddingX:1.3,paddingY:.3},onClick:c,children:D.jsxs(hr,{direction:"row",alignItems:"center",gap:1,children:[D.jsx("img",{src:"/yorkie.png",height:20}),D.jsx(Ar,{variant:"subtitle1",children:"Yorkie Intelligence"})]})})})})}),t&&ly.createPortal(D.jsx(vEt,{onClose:c}),a)]})}function SEt(){var o;const e=Cd(),t=Hg(),n=Ki(ej),{data:r}=aj(t.workspaceSlug),{data:i}=cUe(r==null?void 0:r.id,t.documentId),{doc:a,client:s}=Hve(i==null?void 0:i.yorkieDocumentId,(o=n.data)==null?void 0:o.nickname);return N.useEffect(()=>{if(!(!a||!s))return e(PR(a)),e(MR(s)),()=>{e(PR(null)),e(MR(null))}},[e,s,a]),D.jsxs($s,{height:"calc(100% - 64px)",children:[D.jsx(Pve,{}),D.jsx(OEt,{})]})}function EEt(){return D.jsx(hr,{sx:{flexGrow:1,height:"100vh"},children:D.jsx(Bz,{})})}function wEt(){const e=Cd(),t=ep(),[n]=Uz();return N.useEffect(()=>{const r=n.get("token");if(!r){t("/");return}e(qq(r))},[e,t,n]),D.jsx($s,{})}var kG={},TEt=ha;Object.defineProperty(kG,"__esModule",{value:!0});var OSe=kG.default=void 0,xEt=TEt(pa()),kEt=D;OSe=kG.default=(0,xEt.default)((0,kEt.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var CG={},CEt=ha;Object.defineProperty(CG,"__esModule",{value:!0});var SSe=CG.default=void 0,_Et=CEt(pa()),AEt=D;SSe=CG.default=(0,_Et.default)((0,AEt.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout");var _G={},REt=ha;Object.defineProperty(_G,"__esModule",{value:!0});var AG=_G.default=void 0,IEt=REt(pa()),DEt=D;AG=_G.default=(0,IEt.default)((0,DEt.jsx)("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode");var RG={},NEt=ha;Object.defineProperty(RG,"__esModule",{value:!0});var IG=RG.default=void 0,PEt=NEt(pa()),MEt=D;IG=RG.default=(0,PEt.default)((0,MEt.jsx)("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode");function LEt(e){const t=Cd(),n=EC(),r=()=>{t(qq(null)),t(r$(null))},i=()=>{t(qde(n=="light"?"dark":"light"))};return D.jsx(uN,{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...e,children:D.jsxs(uE,{children:[D.jsxs(cm,{onClick:i,children:[D.jsx(wx,{children:n==="light"?D.jsx(IG,{}):D.jsx(AG,{})}),D.jsx(Og,{children:"Appearance"})]}),D.jsxs(cm,{onClick:r,children:[D.jsx(wx,{children:D.jsx(SSe,{fontSize:"small"})}),D.jsx(Og,{children:"Logout"})]})]})})}var DG={},$Et=ha;Object.defineProperty(DG,"__esModule",{value:!0});var ESe=DG.default=void 0,FEt=$Et(pa()),Wse=D;ESe=DG.default=(0,FEt.default)([(0,Wse.jsx)("path",{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},"0"),(0,Wse.jsx)("path",{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},"1")],"KeyboardDoubleArrowLeft");var NG={},BEt=ha;Object.defineProperty(NG,"__esModule",{value:!0});var wSe=NG.default=void 0,UEt=BEt(pa()),Qse=D;wSe=NG.default=(0,UEt.default)([(0,Qse.jsx)("path",{d:"M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6z"},"0"),(0,Qse.jsx)("path",{d:"m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z"},"1")],"KeyboardDoubleArrowRight");function TSe(e){return D.jsx(yg,{...e,children:D.jsxs("svg",{width:"40",height:"38",viewBox:"0 0 40 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:30,height:30},children:[D.jsx("path",{d:"M11.8574 11.4048L18.8525 21.4507C19.2947 22.086 20.1683 22.2423 20.8036 21.8001C20.9398 21.7052 21.0581 21.5869 21.153 21.4507L28.148 11.4048C29.0327 10.1343 28.7198 8.3872 27.4495 7.5027C26.9794 7.17549 26.4205 7 25.8477 7H14.1577C12.6095 7 11.3545 8.25503 11.3545 9.80322C11.3547 10.3758 11.5302 10.9347 11.8574 11.4048Z",fill:"#514C49"}),D.jsx("path",{d:"M22.8637 29.5446C23.3612 29.8283 23.9338 29.9528 24.5042 29.9014L37.2991 28.7469C38.3271 28.6542 39.0851 27.7457 38.9924 26.7178C38.9876 26.6636 38.9803 26.6096 38.9706 26.556C38.5862 24.4114 37.8296 22.3507 36.7352 20.4668C35.6407 18.5829 34.2255 16.9048 32.5532 15.5085C31.761 14.8471 30.5825 14.953 29.9211 15.7455C29.8862 15.7872 29.8532 15.8305 29.8219 15.8752L22.4807 26.418C22.1535 26.888 21.978 27.4469 21.978 28.0198V27.9849C21.978 28.3055 22.0604 28.6208 22.2176 28.9002C22.3826 29.1751 22.6155 29.4029 22.8942 29.5617",fill:"#FDC433"}),D.jsx("path",{d:"M17.8492 28.7605C17.6844 29.097 17.4222 29.376 17.0969 29.5616L17.1365 29.539C16.6391 29.8227 16.0665 29.9472 15.4961 29.8959L2.70114 28.7414C2.64694 28.7365 2.59295 28.7293 2.53935 28.7196C1.52348 28.5375 0.847507 27.5663 1.02965 26.5505C1.41407 24.4057 2.17064 22.3451 3.26489 20.4611C4.35914 18.577 5.77455 16.8993 7.44706 15.5028C7.48877 15.4679 7.53208 15.4349 7.57681 15.4037C8.42384 14.8139 9.58841 15.0225 10.1784 15.8695L17.5196 26.4124C17.8468 26.8825 18.0223 27.4414 18.0223 28.0142V27.9685C18.0223 28.343 17.9096 28.7091 17.6991 29.019",fill:"#FDC433"})]})})}const zEt=Ne(gce,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),...t&&{width:`calc(100% - ${XO}px)`,marginLeft:`${XO}px`,transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}}));function jEt(e){var p,b;const{open:t,onDrawerOpen:n}=e,r=ji(),i=ep(),a=Ki(ej),s=Ki(aC),[o,l]=N.useState(null),c=v=>{l(v.currentTarget)},d=()=>{l(null)},h=()=>{var v;i(`/${(v=s.data)==null?void 0:v.slug}`)};return D.jsxs(zEt,{position:"fixed",open:t,children:[D.jsx(cde,{children:D.jsxs(hr,{width:"100%",direction:"row-reverse",justifyContent:"space-between",alignItems:"center",children:[D.jsx($a,{onClick:c,children:D.jsx(xz,{children:(b=(p=a.data)==null?void 0:p.nickname)==null?void 0:b.charAt(0)})}),D.jsxs(hr,{direction:"row",children:[D.jsx($a,{color:"inherit","aria-label":"open drawer",onClick:n,edge:"start",sx:{mr:2},children:t?r.direction==="ltr"?D.jsx(ESe,{}):D.jsx(wSe,{}):D.jsx(OSe,{})}),D.jsx($a,{onClick:h,children:D.jsx(TSe,{})})]})]})}),D.jsx(LEt,{open:!!o,anchorEl:o,onClose:d})]})}var PG={},HEt=ha;Object.defineProperty(PG,"__esModule",{value:!0});var xSe=PG.default=void 0,VEt=HEt(pa()),WEt=D;xSe=PG.default=(0,VEt.default)((0,WEt.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var MG={},QEt=ha;Object.defineProperty(MG,"__esModule",{value:!0});var kSe=MG.default=void 0,YEt=QEt(pa()),qEt=D;kSe=MG.default=(0,YEt.default)((0,qEt.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");class mk extends N.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let t=!1;const n={get passive(){t=!0}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n)}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(t){const n=this.props.getScrollParent&&this.props.getScrollParent();return n??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let n=window;this.props.useWindow===!1&&(n=t),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}scrollListener(){const t=this.scrollComponent,n=window,r=this.getParentElement(t);let i;if(this.props.useWindow){const a=document.documentElement||document.body.parentNode||document.body,s=n.pageYOffset!==void 0?n.pageYOffset:a.scrollTop;this.props.isReverse?i=s:i=this.calculateOffset(t,s)}else this.props.isReverse?i=r.scrollTop:i=t.scrollHeight-r.scrollTop-r.clientHeight;i{this.scrollComponent=T,d&&d(T)};const w=[n];return i&&(o?s?w.unshift(o):w.push(o):this.defaultLoader&&(s?w.unshift(this.defaultLoader):w.push(this.defaultLoader))),gn.createElement(r,S,w)}}Ks(mk,"propTypes",{children:G.node.isRequired,element:G.node,hasMore:G.bool,initialLoad:G.bool,isReverse:G.bool,loader:G.node,loadMore:G.func.isRequired,pageStart:G.number,ref:G.func,getScrollParent:G.func,threshold:G.number,useCapture:G.bool,useWindow:G.bool}),Ks(mk,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var LG={},GEt=ha;Object.defineProperty(LG,"__esModule",{value:!0});var CSe=LG.default=void 0,ZEt=GEt(pa()),XEt=D;CSe=LG.default=(0,ZEt.default)((0,XEt.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var $G={},KEt=ha;Object.defineProperty($G,"__esModule",{value:!0});var U6=$G.default=void 0,JEt=KEt(pa()),ewt=D;U6=$G.default=(0,JEt.default)((0,ewt.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");var FG={},twt=ha;Object.defineProperty(FG,"__esModule",{value:!0});var z6=FG.default=void 0,nwt=twt(pa()),rwt=D;z6=FG.default=(0,nwt.default)((0,rwt.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const iwt=e=>["check","name-conflict",e],_Se=e=>iC({queryKey:iwt(e||""),enabled:!!e,queryFn:async()=>(await Ir.post("/check/name-conflict",{name:e})).data});function ASe(e){const{title:t,onSuccess:n,enableConflictCheck:r,...i}=e,[a,s]=N.useState(""),[o,l]=N.useState(""),{data:c}=_Se(o),d=N.useMemo(()=>c!=null&&c.conflict?"Already Exists":null,[c==null?void 0:c.conflict]);Gq(()=>{l(a)},500,[a]);const h=()=>{var v;(v=i==null?void 0:i.onClose)==null||v.call(i,new Event("Close Modal"),"escapeKeyDown")},p=async v=>{await n(v),h()},b=v=>{r&&s(v.target.value)};return D.jsx(Ug,{disableAutoFocus:!0,...i,children:D.jsxs(po,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[D.jsx($a,{sx:{position:"absolute",top:28,right:28},onClick:h,children:D.jsx(z6,{})}),D.jsxs(hr,{gap:4,children:[D.jsxs(Ar,{variant:"h5",children:["Create New ",t]}),D.jsx(Af,{children:D.jsx(GC,{defaultValues:{title:""},onSuccess:p,children:D.jsxs(hr,{gap:4,alignItems:"flex-end",children:[D.jsx(F6,{variant:"standard",name:"title",label:`Title of New ${t}`,required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:b,error:!!d,helperText:d}),D.jsx(lo,{type:"submit",variant:"contained",size:"large",disabled:!!d,children:"OK"})]})})})]})]})})}function awt(e){const{width:t,...n}=e,r=ep(),i=Hg(),{data:a,hasNextPage:s,fetchNextPage:o}=gUe(),{mutateAsync:l}=bUe(),c=N.useMemo(()=>(a==null?void 0:a.pages.reduce((w,T)=>w.concat(T.workspaces),[]))??[],[a==null?void 0:a.pages]),[d,h]=N.useState(!1),p=w=>{r(`/${w}`)},b=w=>{var T;i.workspaceSlug!==w&&(p(w),(T=n==null?void 0:n.onClose)==null||T.call(n,new Event("Close Popover"),"backdropClick"))},v=()=>{var w;h(T=>!T),n.open&&((w=n==null?void 0:n.onClose)==null||w.call(n,new Event("Close Popover"),"backdropClick"))},S=async w=>{const T=await l(w);p(T.slug)};return D.jsxs(D.Fragment,{children:[D.jsx(uN,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...n,children:D.jsxs(uE,{sx:{width:t},children:[D.jsx($s,{style:{maxHeight:300,overflow:"auto"},children:D.jsx(mk,{pageStart:0,loadMore:()=>o(),hasMore:s,loader:D.jsx($s,{className:"loader",children:D.jsx(xm,{size:"sm"})},0),useWindow:!1,children:c.map(w=>D.jsxs(cm,{onClick:()=>b(w.slug),children:[D.jsx(Og,{primaryTypographyProps:{noWrap:!0,variant:"body2"},children:w.title}),i.workspaceSlug===w.slug&&D.jsx(Az,{children:D.jsx(CSe,{fontSize:"small"})})]},w.id))})}),D.jsx(Yb,{}),D.jsxs(cm,{onClick:v,children:[D.jsx(wx,{children:D.jsx(U6,{fontSize:"small"})}),D.jsx(Og,{children:"Create Workspace"})]})]})}),D.jsx(ASe,{open:d,title:"Workspace",onClose:v,onSuccess:S,enableConflictCheck:!0})]})}var BG={},swt=ha;Object.defineProperty(BG,"__esModule",{value:!0});var RSe=BG.default=void 0,owt=swt(pa()),lwt=D;RSe=BG.default=(0,owt.default)((0,lwt.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People");function uwt(e){var p;const{open:t}=e,n=jg(),r=Hg(),i=ep(),a=Ki(aC),[s,o]=N.useState(null),l=N.useMemo(()=>n.pathname.split("/")[2]??"main",[n.pathname]),c=b=>{o(b.currentTarget)},d=()=>{o(null)},h=()=>{i(`/${r.workspaceSlug}/member`)};return D.jsxs(ENe,{sx:{width:XO,flexShrink:0,"& .MuiDrawer-paper":{width:XO,boxSizing:"border-box"}},variant:"persistent",anchor:"left",open:t,children:[D.jsx(ISe,{children:D.jsxs(B9,{disablePadding:!0,children:[D.jsxs(nJ,{onClick:c,children:[D.jsx(Og,{primary:(p=a.data)==null?void 0:p.title,primaryTypographyProps:{variant:"subtitle1",noWrap:!0}}),D.jsx(Az,{children:D.jsx($a,{children:s?D.jsx(kSe,{}):D.jsx(xSe,{})})})]}),D.jsx(awt,{open:!!s,anchorEl:s,onClose:d,width:XO-32})]})}),D.jsx(Yb,{}),D.jsx(B9,{disablePadding:!0,children:D.jsxs(nJ,{onClick:h,selected:l==="member",children:[D.jsx(wx,{children:D.jsx(RSe,{})}),D.jsx(Og,{primary:"Members"})]})})]})}const XO=282,cwt=Ne("main",{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({flexGrow:1,paddingLeft:e.spacing(3),paddingRight:e.spacing(3),paddingTop:e.spacing(3),transition:e.transitions.create("margin",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),marginLeft:`-${XO}px`,...t&&{transition:e.transitions.create("margin",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen}),marginLeft:0}})),ISe=Ne("div")(({theme:e})=>({display:"flex",alignItems:"center",padding:e.spacing(0,1),...e.mixins.toolbar,justifyContent:"flex-end"}));function dwt(){const{drawerOpen:e}=Ki(Yz),t=Cd(),n=()=>{t(aFe(!e))};return D.jsxs($s,{sx:{display:"flex"},children:[D.jsx(jEt,{open:e,onDrawerOpen:n}),D.jsx(uwt,{open:e}),D.jsxs(cwt,{open:e,children:[D.jsx(ISe,{}),D.jsx(Bz,{})]})]})}const UG=gn.createContext({isLoading:!0,isLoggedIn:!1}),fwt=e=>{var a;const{children:t}=e,{isLoggedIn:n}=N.useContext(UG),r=jg(),i=Ki(ej);return n?D.jsx(Fz,{to:`/${(a=i.data)==null?void 0:a.lastWorkspaceSlug}`,state:{from:r},replace:!0}):t},hwt=e=>{const{children:t}=e,{isLoggedIn:n,isLoading:r}=N.useContext(UG),i=jg();return r?D.jsx(Gk,{open:!0,children:D.jsx(xm,{color:"inherit"})}):n?t:D.jsx(Fz,{to:"/",state:{from:i},replace:!0})};//! moment.js +${ne}`);const j=W?J:J+1,Ce=J+ne.length;(ye=s.doc)==null||ye.update((ve,Se)=>{ve.content.edit(J,K,ne),Se.set({selection:ve.content.indexRangeToPosRange([j,Ce])})}),(te=s.cmView)==null||te.dispatch({changes:{from:J,to:K,insert:ne},selection:{anchor:j,head:Ce}}),r()};return D.jsxs(hr,{gap:4,children:[D.jsx($s,{bgcolor:i.palette.background.paper,p:1,borderRadius:2,border:1,children:D.jsx(Ar,{children:t})}),k&&D.jsx(xm,{sx:{marginX:"auto"}}),D.jsx($s,{ref:A,sx:{height:350,overflow:"auto"},children:!k&&D.jsx(Iye,{source:pB(I||""),wrapperElement:{"data-color-mode":a}})}),D.jsxs(hr,{gap:2,children:[D.jsx(um,{in:C,children:D.jsxs(hr,{direction:"row",justifyContent:"flex-end",gap:1,children:[D.jsx(lo,{variant:"outlined",onClick:Q,children:D.jsx(Zve,{fontSize:"small"})}),D.jsx(lo,{variant:"outlined",onClick:V,children:D.jsx(R6,{fontSize:"small"})}),D.jsx(lo,{variant:"outlined",onClick:()=>Y(),children:"Insert below"}),D.jsx(lo,{variant:"contained",onClick:()=>Y(!0),children:"Replace"})]})}),D.jsx(Af,{children:D.jsx(GC,{defaultValues:{content:""},formContext:U,onSuccess:X,children:D.jsx(hr,{gap:4,alignItems:"flex-end",children:D.jsx(F6,{variant:"outlined",name:"content",placeholder:"Tell Yorkie what to do next",required:!0,fullWidth:!0,disabled:!C,size:"small",InputProps:{startAdornment:D.jsx(Ex,{position:"start",children:D.jsx("img",{src:"/yorkie.png",height:20})}),endAdornment:D.jsx(um,{in:C,children:D.jsx(Ex,{position:"end",children:D.jsx($a,{type:"submit",edge:"end",children:D.jsx(gSe,{})})})})}})})})})]})]})}function yEt(e){const{onCloseIntelligence:t,...n}=e,r=()=>{var a;(a=n==null?void 0:n.onClose)==null||a.call(n,new Event("Close Modal"),"escapeKeyDown")},i=()=>{t(),r()};return D.jsx(Ug,{disableAutoFocus:!0,...n,children:D.jsx(po,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4},children:D.jsxs(hr,{gap:4,children:[D.jsxs(hr,{alignItems:"center",gap:1,children:[D.jsx("img",{src:"/yorkie.png",alt:"yorkie",width:60}),D.jsxs(Ar,{variant:"h6",align:"center",children:["Do you want to discard",D.jsx("br",{}),"the Yorkie response?"]})]}),D.jsxs(hr,{direction:"row",gap:1,justifyContent:"center",children:[D.jsx(lo,{variant:"outlined",onClick:i,children:"Discard"}),D.jsx(lo,{variant:"contained",onClick:r,children:"Cancel"})]})]})})})}function vEt(e){const{onClose:t}=e,n=ji(),r=Ki(fE),i=N.useRef(null),[a,s]=N.useState(null),[o,l]=N.useState(null),[c,d]=N.useState(),[h,p]=N.useState(!1),b=N.useRef(null),v=N.useMemo(()=>r.cmView.contentDOM.getBoundingClientRect().width-12,[r.cmView]);N.useEffect(()=>{if(i.current)return d(i.current),()=>{d(void 0)}},[]);const S=(T,x)=>{l(T),s(x)},w=()=>{p(T=>!T)};return D.jsxs($s,{sx:{position:"absolute",mt:1},children:[D.jsx("span",{ref:i,style:{marginTop:4}}),D.jsx(uN,{open:!!c,anchorEl:c,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:w,children:D.jsx(kz,{ref:b,sx:{boxShadow:n.shadows[11],borderRadius:2,width:v,padding:2},children:o&&a?D.jsx(bEt,{title:a,feature:o,onClose:t}):D.jsx(Pgt,{onSelectFeature:S})})}),D.jsx(yEt,{open:h,onCloseIntelligence:t,onClose:w})]})}function OEt(){const e=ji(),[t,n]=N.useState(!1),[r,i]=N.useState(null),[a,s]=N.useState(null),[o,l]=N.useState(null);Gq(()=>{l(r)},500,[r]),N.useEffect(()=>{document.addEventListener("selectionchange",function(){const d=document.getElementById(b1e),h=document.getElementById(mH);i(d),s(h),d||(n(!1),l(null))})},[]);const c=()=>{n(d=>!d)};if(!(!o||!a))return D.jsxs(D.Fragment,{children:[D.jsx(sE,{open:!!o,anchorEl:o,placement:"top-start",transition:!0,children:({TransitionProps:d})=>D.jsx(um,{...d,children:D.jsx(kz,{sx:{boxShadow:e.shadows[11],borderRadius:2,mb:1},children:D.jsx($ce,{sx:{paddingX:1.3,paddingY:.3},onClick:c,children:D.jsxs(hr,{direction:"row",alignItems:"center",gap:1,children:[D.jsx("img",{src:"/yorkie.png",height:20}),D.jsx(Ar,{variant:"subtitle1",children:"Yorkie Intelligence"})]})})})})}),t&&ly.createPortal(D.jsx(vEt,{onClose:c}),a)]})}function SEt(){var o;const e=Cd(),t=Hg(),n=Ki(ej),{data:r}=aj(t.workspaceSlug),{data:i}=cUe(r==null?void 0:r.id,t.documentId),{doc:a,client:s}=Hve(i==null?void 0:i.yorkieDocumentId,(o=n.data)==null?void 0:o.nickname);return N.useEffect(()=>{if(!(!a||!s))return e(PR(a)),e(MR(s)),()=>{e(PR(null)),e(MR(null))}},[e,s,a]),D.jsxs($s,{height:"calc(100% - 64px)",children:[D.jsx(Pve,{}),D.jsx(OEt,{})]})}function EEt(){return D.jsx(hr,{sx:{flexGrow:1,height:"100vh"},children:D.jsx(Bz,{})})}function wEt(){const e=Cd(),t=ep(),[n]=Uz();return N.useEffect(()=>{const r=n.get("token");if(!r){t("/");return}e(qq(r))},[e,t,n]),D.jsx($s,{})}var kG={},TEt=ha;Object.defineProperty(kG,"__esModule",{value:!0});var OSe=kG.default=void 0,xEt=TEt(pa()),kEt=D;OSe=kG.default=(0,xEt.default)((0,kEt.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var CG={},CEt=ha;Object.defineProperty(CG,"__esModule",{value:!0});var SSe=CG.default=void 0,_Et=CEt(pa()),AEt=D;SSe=CG.default=(0,_Et.default)((0,AEt.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout");var _G={},REt=ha;Object.defineProperty(_G,"__esModule",{value:!0});var AG=_G.default=void 0,IEt=REt(pa()),DEt=D;AG=_G.default=(0,IEt.default)((0,DEt.jsx)("path",{d:"M12 3c-4.97 0-9 4.03-9 9s4.03 9 9 9 9-4.03 9-9c0-.46-.04-.92-.1-1.36-.98 1.37-2.58 2.26-4.4 2.26-2.98 0-5.4-2.42-5.4-5.4 0-1.81.89-3.42 2.26-4.4-.44-.06-.9-.1-1.36-.1"}),"DarkMode");var RG={},NEt=ha;Object.defineProperty(RG,"__esModule",{value:!0});var IG=RG.default=void 0,PEt=NEt(pa()),MEt=D;IG=RG.default=(0,PEt.default)((0,MEt.jsx)("path",{d:"M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5M2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1m18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1M11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1m0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1M5.99 4.58c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0s.39-1.03 0-1.41zm12.37 12.37c-.39-.39-1.03-.39-1.41 0-.39.39-.39 1.03 0 1.41l1.06 1.06c.39.39 1.03.39 1.41 0 .39-.39.39-1.03 0-1.41zm1.06-10.96c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0zM7.05 18.36c.39-.39.39-1.03 0-1.41-.39-.39-1.03-.39-1.41 0l-1.06 1.06c-.39.39-.39 1.03 0 1.41s1.03.39 1.41 0z"}),"LightMode");function LEt(e){const t=Cd(),n=EC(),r=()=>{t(qq(null)),t(r$(null))},i=()=>{t(qde(n=="light"?"dark":"light"))};return D.jsx(uN,{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...e,children:D.jsxs(uE,{children:[D.jsxs(cm,{onClick:i,children:[D.jsx(wx,{children:n==="light"?D.jsx(IG,{}):D.jsx(AG,{})}),D.jsx(Og,{children:"Appearance"})]}),D.jsxs(cm,{onClick:r,children:[D.jsx(wx,{children:D.jsx(SSe,{fontSize:"small"})}),D.jsx(Og,{children:"Logout"})]})]})})}var DG={},$Et=ha;Object.defineProperty(DG,"__esModule",{value:!0});var ESe=DG.default=void 0,FEt=$Et(pa()),Wse=D;ESe=DG.default=(0,FEt.default)([(0,Wse.jsx)("path",{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},"0"),(0,Wse.jsx)("path",{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},"1")],"KeyboardDoubleArrowLeft");var NG={},BEt=ha;Object.defineProperty(NG,"__esModule",{value:!0});var wSe=NG.default=void 0,UEt=BEt(pa()),Qse=D;wSe=NG.default=(0,UEt.default)([(0,Qse.jsx)("path",{d:"M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6z"},"0"),(0,Qse.jsx)("path",{d:"m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z"},"1")],"KeyboardDoubleArrowRight");function TSe(e){return D.jsx(yg,{...e,children:D.jsxs("svg",{width:"40",height:"38",viewBox:"0 0 40 38",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{width:30,height:30},children:[D.jsx("path",{d:"M11.8574 11.4048L18.8525 21.4507C19.2947 22.086 20.1683 22.2423 20.8036 21.8001C20.9398 21.7052 21.0581 21.5869 21.153 21.4507L28.148 11.4048C29.0327 10.1343 28.7198 8.3872 27.4495 7.5027C26.9794 7.17549 26.4205 7 25.8477 7H14.1577C12.6095 7 11.3545 8.25503 11.3545 9.80322C11.3547 10.3758 11.5302 10.9347 11.8574 11.4048Z",fill:"#514C49"}),D.jsx("path",{d:"M22.8637 29.5446C23.3612 29.8283 23.9338 29.9528 24.5042 29.9014L37.2991 28.7469C38.3271 28.6542 39.0851 27.7457 38.9924 26.7178C38.9876 26.6636 38.9803 26.6096 38.9706 26.556C38.5862 24.4114 37.8296 22.3507 36.7352 20.4668C35.6407 18.5829 34.2255 16.9048 32.5532 15.5085C31.761 14.8471 30.5825 14.953 29.9211 15.7455C29.8862 15.7872 29.8532 15.8305 29.8219 15.8752L22.4807 26.418C22.1535 26.888 21.978 27.4469 21.978 28.0198V27.9849C21.978 28.3055 22.0604 28.6208 22.2176 28.9002C22.3826 29.1751 22.6155 29.4029 22.8942 29.5617",fill:"#FDC433"}),D.jsx("path",{d:"M17.8492 28.7605C17.6844 29.097 17.4222 29.376 17.0969 29.5616L17.1365 29.539C16.6391 29.8227 16.0665 29.9472 15.4961 29.8959L2.70114 28.7414C2.64694 28.7365 2.59295 28.7293 2.53935 28.7196C1.52348 28.5375 0.847507 27.5663 1.02965 26.5505C1.41407 24.4057 2.17064 22.3451 3.26489 20.4611C4.35914 18.577 5.77455 16.8993 7.44706 15.5028C7.48877 15.4679 7.53208 15.4349 7.57681 15.4037C8.42384 14.8139 9.58841 15.0225 10.1784 15.8695L17.5196 26.4124C17.8468 26.8825 18.0223 27.4414 18.0223 28.0142V27.9685C18.0223 28.343 17.9096 28.7091 17.6991 29.019",fill:"#FDC433"})]})})}const zEt=Ne(gce,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),...t&&{width:`calc(100% - ${XO}px)`,marginLeft:`${XO}px`,transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}}));function jEt(e){var p,b;const{open:t,onDrawerOpen:n}=e,r=ji(),i=ep(),a=Ki(ej),s=Ki(aC),[o,l]=N.useState(null),c=v=>{l(v.currentTarget)},d=()=>{l(null)},h=()=>{var v;i(`/${(v=s.data)==null?void 0:v.slug}`)};return D.jsxs(zEt,{position:"fixed",open:t,children:[D.jsx(cde,{children:D.jsxs(hr,{width:"100%",direction:"row-reverse",justifyContent:"space-between",alignItems:"center",children:[D.jsx($a,{onClick:c,children:D.jsx(xz,{children:(b=(p=a.data)==null?void 0:p.nickname)==null?void 0:b.charAt(0)})}),D.jsxs(hr,{direction:"row",children:[D.jsx($a,{color:"inherit","aria-label":"open drawer",onClick:n,edge:"start",sx:{mr:2},children:t?r.direction==="ltr"?D.jsx(ESe,{}):D.jsx(wSe,{}):D.jsx(OSe,{})}),D.jsx($a,{onClick:h,children:D.jsx(TSe,{})})]})]})}),D.jsx(LEt,{open:!!o,anchorEl:o,onClose:d})]})}var PG={},HEt=ha;Object.defineProperty(PG,"__esModule",{value:!0});var xSe=PG.default=void 0,VEt=HEt(pa()),WEt=D;xSe=PG.default=(0,VEt.default)((0,WEt.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var MG={},QEt=ha;Object.defineProperty(MG,"__esModule",{value:!0});var kSe=MG.default=void 0,YEt=QEt(pa()),qEt=D;kSe=MG.default=(0,YEt.default)((0,qEt.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");class mk extends N.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let t=!1;const n={get passive(){t=!0}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n)}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(t){const n=this.props.getScrollParent&&this.props.getScrollParent();return n??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let n=window;this.props.useWindow===!1&&(n=t),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}scrollListener(){const t=this.scrollComponent,n=window,r=this.getParentElement(t);let i;if(this.props.useWindow){const a=document.documentElement||document.body.parentNode||document.body,s=n.pageYOffset!==void 0?n.pageYOffset:a.scrollTop;this.props.isReverse?i=s:i=this.calculateOffset(t,s)}else this.props.isReverse?i=r.scrollTop:i=t.scrollHeight-r.scrollTop-r.clientHeight;i{this.scrollComponent=T,d&&d(T)};const w=[n];return i&&(o?s?w.unshift(o):w.push(o):this.defaultLoader&&(s?w.unshift(this.defaultLoader):w.push(this.defaultLoader))),gn.createElement(r,S,w)}}Ks(mk,"propTypes",{children:G.node.isRequired,element:G.node,hasMore:G.bool,initialLoad:G.bool,isReverse:G.bool,loader:G.node,loadMore:G.func.isRequired,pageStart:G.number,ref:G.func,getScrollParent:G.func,threshold:G.number,useCapture:G.bool,useWindow:G.bool}),Ks(mk,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var LG={},GEt=ha;Object.defineProperty(LG,"__esModule",{value:!0});var CSe=LG.default=void 0,ZEt=GEt(pa()),XEt=D;CSe=LG.default=(0,ZEt.default)((0,XEt.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var $G={},KEt=ha;Object.defineProperty($G,"__esModule",{value:!0});var U6=$G.default=void 0,JEt=KEt(pa()),ewt=D;U6=$G.default=(0,JEt.default)((0,ewt.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");var FG={},twt=ha;Object.defineProperty(FG,"__esModule",{value:!0});var z6=FG.default=void 0,nwt=twt(pa()),rwt=D;z6=FG.default=(0,nwt.default)((0,rwt.jsx)("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"}),"Close");const iwt=e=>["check","name-conflict",e],_Se=e=>iC({queryKey:iwt(e||""),enabled:!!e,queryFn:async()=>(await Ir.post("/check/name-conflict",{name:e})).data});function ASe(e){const{title:t,onSuccess:n,enableConflictCheck:r,...i}=e,[a,s]=N.useState(""),[o,l]=N.useState(""),{data:c}=_Se(o),d=N.useMemo(()=>c!=null&&c.conflict?"Already Exists":null,[c==null?void 0:c.conflict]);Gq(()=>{l(a)},500,[a]);const h=()=>{var v;(v=i==null?void 0:i.onClose)==null||v.call(i,new Event("Close Modal"),"escapeKeyDown")},p=async v=>{await n(v),h()},b=v=>{r&&s(v.target.value)};return D.jsx(Ug,{disableAutoFocus:!0,...i,children:D.jsxs(po,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[D.jsx($a,{sx:{position:"absolute",top:28,right:28},onClick:h,children:D.jsx(z6,{})}),D.jsxs(hr,{gap:4,children:[D.jsxs(Ar,{variant:"h5",children:["Create New ",t]}),D.jsx(Af,{children:D.jsx(GC,{defaultValues:{title:""},onSuccess:p,children:D.jsxs(hr,{gap:4,alignItems:"flex-end",children:[D.jsx(F6,{variant:"standard",name:"title",label:`Title of New ${t}`,required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:b,error:!!d,helperText:d}),D.jsx(lo,{type:"submit",variant:"contained",size:"large",disabled:!!d,children:"OK"})]})})})]})]})})}function awt(e){const{width:t,...n}=e,r=ep(),i=Hg(),{data:a,hasNextPage:s,fetchNextPage:o}=gUe(),{mutateAsync:l}=bUe(),c=N.useMemo(()=>(a==null?void 0:a.pages.reduce((w,T)=>w.concat(T.workspaces),[]))??[],[a==null?void 0:a.pages]),[d,h]=N.useState(!1),p=w=>{r(`/${w}`)},b=w=>{var T;i.workspaceSlug!==w&&(p(w),(T=n==null?void 0:n.onClose)==null||T.call(n,new Event("Close Popover"),"backdropClick"))},v=()=>{var w;h(T=>!T),n.open&&((w=n==null?void 0:n.onClose)==null||w.call(n,new Event("Close Popover"),"backdropClick"))},S=async w=>{const T=await l(w);p(T.slug)};return D.jsxs(D.Fragment,{children:[D.jsx(uN,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...n,children:D.jsxs(uE,{sx:{width:t},children:[D.jsx($s,{style:{maxHeight:300,overflow:"auto"},children:D.jsx(mk,{pageStart:0,loadMore:()=>o(),hasMore:s,loader:D.jsx($s,{className:"loader",children:D.jsx(xm,{size:"sm"})},0),useWindow:!1,children:c.map(w=>D.jsxs(cm,{onClick:()=>b(w.slug),children:[D.jsx(Og,{primaryTypographyProps:{noWrap:!0,variant:"body2"},children:w.title}),i.workspaceSlug===w.slug&&D.jsx(Az,{children:D.jsx(CSe,{fontSize:"small"})})]},w.id))})}),D.jsx(Yb,{}),D.jsxs(cm,{onClick:v,children:[D.jsx(wx,{children:D.jsx(U6,{fontSize:"small"})}),D.jsx(Og,{children:"Create Workspace"})]})]})}),D.jsx(ASe,{open:d,title:"Workspace",onClose:v,onSuccess:S,enableConflictCheck:!0})]})}var BG={},swt=ha;Object.defineProperty(BG,"__esModule",{value:!0});var RSe=BG.default=void 0,owt=swt(pa()),lwt=D;RSe=BG.default=(0,owt.default)((0,lwt.jsx)("path",{d:"M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3m-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3m0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5m8 0c-.29 0-.62.02-.97.05 1.16.84 1.97 1.97 1.97 3.45V19h6v-2.5c0-2.33-4.67-3.5-7-3.5"}),"People");function uwt(e){var p;const{open:t}=e,n=jg(),r=Hg(),i=ep(),a=Ki(aC),[s,o]=N.useState(null),l=N.useMemo(()=>n.pathname.split("/")[2]??"main",[n.pathname]),c=b=>{o(b.currentTarget)},d=()=>{o(null)},h=()=>{i(`/${r.workspaceSlug}/member`)};return D.jsxs(ENe,{sx:{width:XO,flexShrink:0,"& .MuiDrawer-paper":{width:XO,boxSizing:"border-box"}},variant:"persistent",anchor:"left",open:t,children:[D.jsx(ISe,{children:D.jsxs(B9,{disablePadding:!0,children:[D.jsxs(nJ,{onClick:c,children:[D.jsx(Og,{primary:(p=a.data)==null?void 0:p.title,primaryTypographyProps:{variant:"subtitle1",noWrap:!0}}),D.jsx(Az,{children:D.jsx($a,{children:s?D.jsx(kSe,{}):D.jsx(xSe,{})})})]}),D.jsx(awt,{open:!!s,anchorEl:s,onClose:d,width:XO-32})]})}),D.jsx(Yb,{}),D.jsx(B9,{disablePadding:!0,children:D.jsxs(nJ,{onClick:h,selected:l==="member",children:[D.jsx(wx,{children:D.jsx(RSe,{})}),D.jsx(Og,{primary:"Members"})]})})]})}const XO=282,cwt=Ne("main",{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({flexGrow:1,paddingLeft:e.spacing(3),paddingRight:e.spacing(3),paddingTop:e.spacing(3),transition:e.transitions.create("margin",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),marginLeft:`-${XO}px`,...t&&{transition:e.transitions.create("margin",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen}),marginLeft:0}})),ISe=Ne("div")(({theme:e})=>({display:"flex",alignItems:"center",padding:e.spacing(0,1),...e.mixins.toolbar,justifyContent:"flex-end"}));function dwt(){const{drawerOpen:e}=Ki(Yz),t=Cd(),n=()=>{t(aFe(!e))};return D.jsxs($s,{sx:{display:"flex"},children:[D.jsx(jEt,{open:e,onDrawerOpen:n}),D.jsx(uwt,{open:e}),D.jsxs(cwt,{open:e,children:[D.jsx(ISe,{}),D.jsx(Bz,{})]})]})}const UG=gn.createContext({isLoading:!0,isLoggedIn:!1}),fwt=e=>{var a;const{children:t}=e,{isLoggedIn:n}=N.useContext(UG),r=jg(),i=Ki(ej);return n?D.jsx(Fz,{to:`/${(a=i.data)==null?void 0:a.lastWorkspaceSlug}`,state:{from:r},replace:!0}):t},hwt=e=>{const{children:t}=e,{isLoggedIn:n,isLoading:r}=N.useContext(UG),i=jg();return r?D.jsx(Gk,{open:!0,children:D.jsx(xm,{color:"inherit"})}):n?t:D.jsx(Fz,{to:"/",state:{from:i},replace:!0})};//! moment.js //! version : 2.30.1 //! authors : Tim Wood, Iskren Chernev, Moment.js contributors //! license : MIT diff --git a/index.html b/index.html index 880611a9..b0d26cdb 100644 --- a/index.html +++ b/index.html @@ -39,7 +39,7 @@ })(window.location); - +