diff --git a/web_main/themes/custom/mathallo/assets/dist/main.js b/web_main/themes/custom/mathallo/assets/dist/main.js index 7e67333..61d6d22 100644 --- a/web_main/themes/custom/mathallo/assets/dist/main.js +++ b/web_main/themes/custom/mathallo/assets/dist/main.js @@ -1,36 +1,59 @@ -function xr(a){if(a===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return a}function sa(a,e){a.prototype=Object.create(e.prototype),a.prototype.constructor=a,a.__proto__=e}/*! +const xl=["activate","mount"];const kl=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,wh=/(?:^|[-_])(\w)/g,xh=e=>e.replace(wh,t=>t.toUpperCase()).replace(/[-_]/g,""),kh="",Qo="",Ch=(e,t)=>e.repeat(t),Ki=(e,t)=>{if(!e)return Qo;if(e.$root===e)return kh;if(!e.$options)return Qo;const n=e.$options;let r=n.name||n._componentTag||n.__name;const i=n.__file;if(!r&&i){const s=i.match(/([^/\\]+)\.vue$/);s&&(r=s[1])}return(r?`<${xh(r)}>`:Qo)+(i&&t!==!1?` at ${i}`:"")},Oh=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const r=t[t.length-1];if(r.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[r,n],n=0)}t.push(e),e=e.$parent}return` + +found in + +${t.map((r,i)=>`${(i===0?"---> ":Ch(" ",5+i*2))+(Array.isArray(r)?`${Ki(r[0])}... (${r[1]} recursive calls)`:Ki(r))}`).join(` +`)}`}return` + +(found in ${Ki(e)})`},N=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,nt=globalThis,So="11.17.0";function mr(){return Pi(nt),nt}function Pi(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||"11.17.0",t[So]=t["11.17.0"]||{}}function Fo(e,t,n=nt){const r=n.__SENTRY__=n.__SENTRY__||{},i=r[So]=r["11.17.0"]||{};return i[e]||(i[e]=t())}const Cl=["debug","info","warn","error","log","assert","trace"],Rh="Sentry Logger ",bo={};function En(e){if(!("console"in nt))return e();const t=nt.console,n={},r=Object.keys(bo);r.forEach(i=>{const s=bo[i];n[i]=t[i],t[i]=s});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function Ih(){Pc().enabled=!0}function Ph(){Pc().enabled=!1}function Ol(){return Pc().enabled}function Ah(...e){Ic("log",...e)}function Dh(...e){Ic("warn",...e)}function Mh(...e){Ic("error",...e)}function Ic(e,...t){N&&Ol()&&En(()=>{nt.console[e](`${Rh}[${e}]:`,...t)})}function Pc(){return N?Fo("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const M={enable:Ih,disable:Ph,isEnabled:Ol,log:Ah,warn:Dh,error:Mh},Rl=50,gi="?",Cu=/\(error: (.*)\)/,Ou=/captureMessage|captureException/;function Il(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{const s=[],o=n.split(` +`);for(let a=r;a1024&&(c=c.slice(0,1024));const u=Cu.test(c)?c.replace(Cu,"$1"):c;if(!u.includes("Error: ")){for(const f of t){const l=f(u);if(l){s.push(l);break}}if(s.length>=Rl+i)break}}return Lh(s.slice(i))}}function Nh(e){return Array.isArray(e)?Il(...e):e}function Lh(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(zs(t).function||"")&&t.pop(),t.reverse(),Ou.test(zs(t).function||"")&&(t.pop(),Ou.test(zs(t).function||"")&&t.pop()),t.slice(0,Rl).map(n=>({...n,filename:n.filename||zs(t).filename,function:n.function||"?"}))}function zs(e){return e[e.length-1]||{}}const Zo="";function lr(e){try{return!e||typeof e!="function"?Zo:e.name||Zo}catch{return Zo}}function Ru(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}const zi={},Iu={};function qr(e,t){return zi[e]=zi[e]||[],zi[e].push(t),()=>{const n=zi[e];if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}}function Gr(e,t){if(!Iu[e]){Iu[e]=!0;try{t()}catch(n){N&&M.error(`Error while instrumenting ${e}`,n)}}}function bn(e,t){const n=e&&zi[e];if(n)for(const r of n)try{r(t)}catch(i){N&&M.error(`Error while triggering instrumentation handler. +Type: ${e} +Name: ${lr(r)} +Error:`,i)}}let ta=null;function $h(e){const t="error";qr(t,e),Gr(t,Fh)}function Fh(){ta=nt.onerror,nt.onerror=function(e,t,n,r,i){return bn("error",{column:r,error:i,line:n,msg:e,url:t}),ta?ta.apply(this,arguments):!1},nt.onerror.__SENTRY_INSTRUMENTED__=!0}let ea=null;function Bh(e){const t="unhandledrejection";qr(t,e),Gr(t,zh)}function zh(){ea=nt.onunhandledrejection,nt.onunhandledrejection=function(e){return bn("unhandledrejection",e),ea?ea.apply(this,arguments):!0},nt.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const Pl=Object.prototype.toString;function Dn(e){switch(Pl.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Dc(e,Error)}}function Ai(e,t){return Pl.call(e)===`[object ${t}]`}function Al(e){return Ai(e,"ErrorEvent")}function Pu(e){return Ai(e,"DOMError")}function Uh(e){return Ai(e,"DOMException")}function Yn(e){return Ai(e,"String")}function Ac(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Xr(e){return e===null||Ac(e)||typeof e!="object"&&typeof e!="function"}function xs(e){return Ai(e,"Object")}function Bo(e){return typeof e=="object"&&e!==null}function zo(e){return typeof Event<"u"&&Dc(e,Event)}function Hh(e){return Ai(e,"RegExp")}function ks(e){return!!(e!=null&&e.then&&typeof e.then=="function")}function Dc(e,t){try{return e instanceof t}catch{return!1}}function Dl(e){return typeof Request<"u"&&Dc(e,Request)}function Ze(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const i=n(r);typeof i=="function"&&Ml(i,r);try{e[t]=i}catch{N&&M.log(`Failed to replace method "${String(t)}" in object`,e)}}function ze(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{N&&M.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function Ml(e,t){try{e.prototype=t.prototype=t.prototype||{},ze(e,"__sentry_original__",t)}catch{}}function Mc(e){return e.__sentry_original__}function Nl(e){if(Dn(e))return{message:e.message,name:e.name,stack:e.stack,...Au(e)};if(zo(e)){const{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...Au(e)}}return e}function Au(e){return Bo(e)?Object.fromEntries(Object.entries(e)):{}}function Wh(e){const t=Object.keys(Nl(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}let Zr;function mi(e){if(Zr!==void 0)return Zr?Zr(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=nt;return t in n&&typeof n[t]=="function"?(Zr=n[t],Zr(e)):(Zr=null,e())}function Nc(){return mi(()=>Math.random())}function yr(){return mi(()=>Date.now())}const Yh=Symbol.for("sentry.skipNormalization"),Vh=Symbol.for("sentry.overrideNormalizationDepth");function jh(e){return!!e[Yh]}function qh(e){const t=e[Vh];return typeof t=="number"?t:void 0}let Ra;function Ll(e){Ra=e}function Bn(e,t=100,n=1/0){try{return Ia("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${$l(r)})`}}}function $l(e){try{return String(e)}catch{return"unknown error"}}function Fl(e,t=3,n=102400){const r=Bn(e,t);return Kh(r)>n?Fl(e,t-1,n):r}function Ia(e,t,n=1/0,r=1/0,i=Jh()){const[s,o]=i;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=Lc(e,t);if(!a.startsWith("[object "))return a;if(jh(t))return t;const c=qh(t),u=c!==void 0?c:n;if(u===0)return a.replace("object ","");if(s(t))return"[Circular ~]";const f=t;if(f&&typeof f.toJSON=="function")try{return Ia("",f.toJSON(),u-1,r,i)}catch{}const l=Array.isArray(t)?[]:{};let d=0;const p=Nl(t);for(const _ in p){if(!Object.prototype.hasOwnProperty.call(p,_))continue;if(d>=r){l[_]="[MaxProperties ~]";break}const h=p[_];l[_]=Ia(_,h,u-1,r,i),d++}return o(t),l}function Lc(e,t){try{if(Ra){const n=Ra(t);if(n)return n}return typeof global<"u"&&t===global?"[Global]":typeof t=="number"&&!Number.isFinite(t)?`[${t}]`:typeof t=="function"?`[Function: ${lr(t)}]`:typeof t=="symbol"?`[${String(t)}]`:typeof t=="bigint"?`[BigInt: ${String(t)}]`:`[object ${Gh(t)}]`}catch(n){return`**non-serializable** (${$l(n)})`}}function Gh(e){const t=Object.getPrototypeOf(e);return t!=null&&t.constructor?t.constructor.name:"null prototype"}function Xh(e){return~-encodeURI(e).split(/%..|./).length}function Kh(e){return Xh(JSON.stringify(e))}function Jh(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function Qh(e,t="[unserializable]"){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return typeof t=="function"?t(e):t}}function Pa(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Zh(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;re.randomUUID()).replace(/-/g,"")}catch{}return na||(na="10000000100040008000100000000000"),na.replace(/[018]/g,t=>(t^(e_()&15)>>t/4).toString(16))}function Bl(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}function Rr(e){const{message:t,event_id:n}=e;if(t)return t;const r=Bl(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function Aa(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],s=i[0]=i[0]||{};s.value||(s.value=t||""),s.type||(s.type="Error")}function ui(e,t){const n=Bl(e);n&&zl(n,t)}function n_(e,t){var i;const n=(i=e.exception)==null?void 0:i.values,r=(n==null?void 0:n.find(s=>{var o;return((o=s.mechanism)==null?void 0:o.exception_id)===0}))??(n==null?void 0:n[0]);r&&zl(r,t)}function zl(e,t){const n={type:"generic",handled:!0},r=e.mechanism;e.mechanism={...n,...r,...t},t&&"data"in t&&(e.mechanism.data={...r==null?void 0:r.data,...t.data})}function Du(e){if(r_(e))return!0;try{ze(e,"__sentry_captured__",!0)}catch{}return!1}function r_(e){try{return e.__sentry_captured__}catch{}}const $c=1e3,i_=1e3,s_=100;function Os(){return yr()/$c}let Tr=[];function o_(){const{performance:e}=nt;if(!(e!=null&&e.now)||!e.timeOrigin)return e!=null&&e.now&&(Tr=[{from:0,origin:yr()-mi(()=>e.now())}]),Os;let t=e.timeOrigin;Tr=[{from:0,origin:t}];let n=!0,r=0;return()=>mi(()=>{const i=e.now(),s=Date.now();return Math.abs(t+i-s)>i_&&(t=s-i,n?Tr=[{from:0,origin:t}]:(Tr.push({from:r,origin:t}),Tr.length>s_&&Tr.splice(1,1))),n=!1,r=i,(t+i)/$c})}function Mu(){const{performance:e}=nt;return e!=null&&e.now?mi(()=>e.now()):void 0}let Nu,ra=!1;function a_(e,t=e){const n=c_(t);return n==null?void 0:(n+e)/$c}function pe(){return(Nu??(Nu=o_()))()}function c_(e=0){ra||(ra=!0,Promise.resolve().then(()=>{ra=!1}),pe());let t;for(const n of Tr){if(t&&n.from>e)break;t=n}return t==null?void 0:t.origin}function u_(e){const t=pe(),n={sid:dn(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>l_(n)};return e&&yi(n,e),n}function yi(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||pe(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:dn()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function f_(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),yi(e,n)}function l_(e){return{sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}}}function Rs(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=Rs(r[i],t[i],n-1));return r}function Fc(){return dn()}function Uo(){return dn().substring(16)}const d_=100;var Br=class Da{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},ze(this,"refs",{}),this._propagationContext={traceId:Fc(),sampleRand:Nc()}}clone(){const t=new Da;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,t.refs={...this.refs},t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&yi(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,{tags:r,attributes:i,extra:s,user:o,contexts:a,level:c,fingerprint:u=[],propagationContext:f,conversationId:l}=(n instanceof Da?n.getScopeData():xs(n)?t:void 0)||{};return this._tags={...this._tags,...r},this._attributes={...this._attributes,...i},this._extra={...this._extra,...s},this._contexts={...this._contexts,...a},o&&Object.keys(o).length&&(this._user=o),c&&(this._level=c),u.length&&(this._fingerprint=u),f&&(this._propagationContext=f),l&&(this._conversationId=l),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:d_;if(r<=0)return this;const i={timestamp:Os(),...t,message:t.message?Pa(t.message,2048):t.message};return this._breadcrumbs.push(i),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r)),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Rs(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=(n==null?void 0:n.event_id)||dn();if(!this._client)return N&&M.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=(r==null?void 0:r.event_id)||dn();if(!this._client)return N&&M.warn("No client configured on scope - will not capture message!"),i;const s=(r==null?void 0:r.syntheticException)??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:s,...r,event_id:i},this),i}captureEvent(t,n){const r=t.event_id||(n==null?void 0:n.event_id)||dn();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(N&&M.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}};function p_(){return Fo("defaultCurrentScope",()=>new Br)}function h_(){return Fo("defaultIsolationScope",()=>new Br)}const Ma="__SENTRY_SUPPRESS_TRACING__",Lu=e=>e instanceof Promise&&!e[Ul],Ul=Symbol("chained PromiseLike"),__=(e,t,n)=>{const r=e.then(i=>(t(i),i),i=>{throw n(i),i});return Lu(r)&&Lu(e)?r:g_(e,r)},g_=(e,t)=>{if(!t)return e;let n=!1;for(const r in e){if(r in t)continue;n=!0;const i=e[r];typeof i=="function"?Object.defineProperty(t,r,{value:(...s)=>i.apply(e,s),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[Ul]:!0}),t};var m_=class{constructor(e,t){let n;e?n=e:n=new Br;let r;t?r=t:r=new Br,this._stack=[{scope:n}],this._isolationScope=r}withScope(e){const t=this._pushScope();let n;try{n=e(t)}catch(r){throw this._popScope(),r}return ks(n)?__(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function Si(){const e=mr(),t=Pi(e);return t.stack=t.stack||new m_(p_(),h_())}function Hl(e){return Si().withScope(e)}function y_(e,t){const n=Si();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function $u(e){return Si().withScope(()=>e(Si().getIsolationScope()))}function S_(){return{suppressTracing:b_,withIsolationScope:$u,withScope:Hl,withSetScope:y_,withSetIsolationScope:(e,t)=>$u(t),getCurrentScope:()=>Si().getScope(),getIsolationScope:()=>Si().getIsolationScope()}}function b_(e){return Hl(t=>{t.setSDKProcessingMetadata({[Ma]:!0});const n=e();return t.setSDKProcessingMetadata({[Ma]:void 0}),n})}function Is(e){const t=Pi(e);return t.acs?t.acs:S_()}function v_(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.keys(e).includes("value")}function E_(e,t){const{value:n,unit:r}=v_(e)?e:{value:e,unit:void 0},i=T_(n),s=r&&typeof r=="string"?{unit:r}:{};if(i)return{...i,...s};if(!t||t==="skip-undefined"&&n===void 0)return;let o="";try{o=JSON.stringify(n)??""}catch{}return{value:o,type:"string",...s}}function Fu(e,t=!1){const n={};for(const[r,i]of Object.entries(e??{})){const s=E_(i,t);s&&(n[r]=s)}return n}function Bu(e){var n;if(!e)return 0;let t=0;for(const[r,i]of Object.entries(e)){t+=r.length*2,t+=i.type.length*2,t+=(((n=i.unit)==null?void 0:n.length)??0)*2;const s=i.value;Array.isArray(s)?t+=zu(s[0])*s.length:Xr(s)?t+=zu(s):t+=100}return t}function zu(e){return typeof e=="string"?e.length*2:typeof e=="boolean"?4:typeof e=="number"?8:0}function T_(e){if(Array.isArray(e))return{value:e,type:"array"};const t=typeof e=="string"?"string":typeof e=="boolean"?"boolean":typeof e=="number"&&!Number.isNaN(e)?Number.isInteger(e)?"integer":"double":null;if(t)return{value:e,type:t}}function Wl(){var e,t;return(t=(e=Pi(mr())).externalPropagationContextProvider)==null?void 0:t.call(e)}function Ue(){const e=mr();return Is(e).getCurrentScope()}function Gn(){const e=mr();return Is(e).getIsolationScope()}function w_(){return Fo("globalScope",()=>new Br)}function Bc(...e){const t=mr(),n=Is(t);if(e.length===2){const[r,i]=e;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(e[0])}function ht(){return Ue().getClient()}function Yl(e){const t=Wl();if(t)return{trace_id:t.traceId,span_id:t.spanId};const{traceId:n,parentSpanId:r,propagationSpanId:i}=e.getPropagationContext(),s={trace_id:n,span_id:i||Uo()};return r&&(s.parent_span_id=r),s}const x_="sentry.sample_rate",k_="sentry.measurement_unit",C_="sentry.measurement_value",Na="sentry.custom_span_name",O_=["ok","deadline_exceeded","unauthenticated","permission_denied","not_found","resource_exhausted","invalid_argument","unimplemented","unavailable","internal_error","unknown_error","cancelled","already_exists","failed_precondition","aborted","out_of_range","data_loss"],R_="angular.version",I_="culture.calendar",Vl="culture.locale",jl="culture.timezone",P_="gen_ai.conversation.id",A_="http.request.header",D_="http.response.body.size",M_="http.response.status_code",N_="react.version",Uu="sentry.description",L_="sentry.environment",zc="sentry.exclusive_time",$_="sentry.is_localhost",dr="sentry.op",ds="sentry.origin",F_="sentry.profiler_id",Ho="sentry.profile_id",B_="sentry.release",z_="sentry.sdk.integrations",U_="sentry.sdk.name",H_="sentry.sdk.version",W_="sentry.segment.id",La="sentry.segment.name",bi="sentry.segment.name.source",Y_="sentry.status.message",V_="sentry.trace_lifecycle",j_="state.type",Hu="ui.component_name",q_="url.full",G_="user_agent.original",X_="user.email",K_="user.id",J_="user.ip_address",Q_="user.name";function Z_(e){return e!=="ok"&&O_.includes(e)}function ql(e){try{const t=nt.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function Gl(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}const Xl="_sentryScope",Kl="_sentryIsolationScope",tg=Symbol.for("sentry.tracerProviderSpan");function ps(e,t,n){e&&(ze(e,Kl,ql(n)),ze(e,Xl,t))}function ar(e){const t=e;return{scope:t[Xl],isolationScope:Gl(t[Kl])}}function Jl(e){return e[tg]===!0}function eg(e){const t=ng(e);if(!t)return;const n=Object.entries(t).reduce((r,[i,s])=>{if(i.startsWith("sentry-")){const o=i.slice(7);r[o]=s}return r},{});if(Object.keys(n).length>0)return n}function ng(e){if(!(!e||!Yn(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=Wu(n);return Object.entries(r).forEach(([i,s])=>{t[i]=s}),t},{}):Wu(e)}function Wu(e){return e.split(",").map(t=>{const n=t.indexOf("=");return n===-1?[]:[t.slice(0,n),t.slice(n+1)].map(r=>{try{return decodeURIComponent(r.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}const rg=/^o(\d+)\./,ig=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function sg(e){return e==="http"||e==="https"}function Ps(e,t=!1){const{host:n,path:r,pass:i,port:s,projectId:o,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&i?`:${i}`:""}@${n}${s?`:${s}`:""}/${r&&`${r}/`}${o}`}function og(e){const t=ig.exec(e);if(!t){En(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",s="",o="",a=""]=t.slice(1);let c="",u=a;const f=u.split("/");if(f.length>1&&(c=f.slice(0,-1).join("/"),u=f.pop()),u){const l=u.match(/^\d+/);l&&(u=l[0])}return Ql({host:s,pass:i,path:c,projectId:u,port:o,protocol:n,publicKey:r})}function Ql(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function ag(e){if(!N)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(i=>e[i]?!1:(M.error(`Invalid Sentry Dsn: ${i} missing`),!0))?!1:n.match(/^\d+$/)?sg(r)?t&&isNaN(parseInt(t,10))?(M.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(M.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(M.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function cg(e){var t;return(t=e.match(rg))==null?void 0:t[1]}function ug(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=cg(n)),r}function Uc(e){const t=typeof e=="string"?og(e):Ql(e);if(!(!t||!ag(t)))return t}function Hc(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const $a="span";function fg(e,t){t?e.refs[$a]=ql(t):delete e.refs[$a]}function lg(e){return Gl(e.refs[$a])}function dg(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:s,status:o,origin:a,links:c}=vn(e);return{parent_span_id:s,span_id:t,trace_id:n,data:r,op:i,status:o,origin:a,links:c}}function pg(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:vn(e).parent_span_id,s=ar(e).scope;return{parent_span_id:i,span_id:r?(s==null?void 0:s.getPropagationContext().propagationSpanId)||Uo():t,trace_id:n}}function Zl(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...i},attributes:s})=>({span_id:t,trace_id:n,sampled:r===1,attributes:s,...i}))}function td(e){if(e!=null&&e.length)return e.map(({context:{spanId:t,traceId:n,traceFlags:r},attributes:i})=>({span_id:t,trace_id:n,sampled:r===1,attributes:i}))}function zr(e){return typeof e=="number"?Yu(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Yu(e.getTime()):pe()}function Yu(e){return e>9999999999?e/1e3:e}function hg(e){return typeof e!="number"?zr(e):e<1e12?a_(e)??pe():e/1e3}function vn(e){if(id(e))return e.getStaticSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(rd(e)){const{attributes:r,startTime:i,name:s,endTime:o,status:a,links:c}=e;return{span_id:t,trace_id:n,data:r,description:s,parent_span_id:ed(e),start_timestamp:zr(i),timestamp:zr(o)||void 0,status:sd(a),op:r[dr],origin:r[ds],links:Zl(c)}}return{span_id:t,trace_id:n,start_timestamp:0,status:"ok",data:{}}}function vo(e){if(id(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(rd(e)){const{attributes:r,startTime:i,name:s,endTime:o,status:a,links:c}=e;return{name:s,span_id:t,trace_id:n,parent_span_id:ed(e),start_timestamp:zr(i),end_timestamp:zr(o)||void 0,is_segment:hs(e),status:Wc(a),attributes:od(r,a),links:td(c)}}return{span_id:t,trace_id:n,start_timestamp:0,name:"",status:"ok",is_segment:hs(e),attributes:{}}}function ed(e){var t;return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?(t=e.parentSpanContext)==null?void 0:t.spanId:void 0}function nd(e){var t;return{...e,end_timestamp:e.end_timestamp??e.start_timestamp,attributes:Fu(e.attributes),links:(t=e.links)==null?void 0:t.map(n=>({...n,attributes:Fu(n.attributes)}))}}function rd(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function id(e){return typeof e.getSpanJSON=="function"}function Kr(e){const{traceFlags:t}=e.spanContext();return t===1}function sd(e){return!e||e.code===0||e.code===1?"ok":e.message&&Z_(e.message)?e.message:"internal_error"}function Wc(e){return!e||e.code===1||e.code===0||e.message==="cancelled"?"ok":"error"}function od(e,t){const n=Wc(t)==="error"?t==null?void 0:t.message:void 0;return{...n&&{[Y_]:n},...e}}const Qi="_sentryChildSpans",Fa="_sentryRootSpan";function so(e,t){const n=e[Fa]||e;ze(t,Fa,n),t.setAttribute(bi,void 0),Kr(e)&&(!e.isRecording()&&!n.isRecording()||(e[Qi]?e[Qi].add(t):ze(e,Qi,new Set([t]))))}function _g(e){const t=new Set;function n(r){if(!t.has(r)&&Kr(r)){t.add(r);const i=r[Qi]?Array.from(r[Qi]):[];for(const s of i)n(s)}}return n(e),Array.from(t)}const Di=Wo;function Wo(e){return e[Fa]||e}function hs(e){return e===Wo(e)}function Yc(e){const t=mr(),n=Is(t);return n.getActiveSpan?n.getActiveSpan(e):lg(e||Ue())}function gg(e,t){hs(e)&&e.setAttribute(bi,t)}function _s(e){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||((n=ht())==null?void 0:n.getOptions());return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function Vu(e){M.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function Ba(e,t){if(!(t!=null&&t.length))return!1;for(const n of t){if(Sg(n)){if(e.description&&Ji(e.description,n))return N&&Vu(e),!0;continue}const r=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!r)continue;const i=n.name?e.description&&Ji(e.description,n.name):!0,s=n.op?e.op&&Ji(e.op,n.op):!0,o=n.attributes?Object.entries(n.attributes).every(([a,c])=>{var u;return mg((u=e.attributes)==null?void 0:u[a],c)}):!0;if(i&&s&&o)return N&&Vu(e),!0}return!1}function mg(e,t){return typeof e=="string"&&(typeof t=="string"||t instanceof RegExp)?Ji(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e===t}function yg(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const i of e)i.parent_span_id===r&&(i.parent_span_id=n)}function Sg(e){return typeof e=="string"||e instanceof RegExp}const ju=[];function bg(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function vg(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const i=n(t);r=Array.isArray(i)?i:[i]}else r=t;return bg(r)}function Eg(e,t){const n={};return t.forEach(r=>{r!=null&&r.beforeSetup&&r.beforeSetup(e)}),t.forEach(r=>{r&&ad(e,r,n)}),n}function qu(e,t){for(const n of t)n!=null&&n.afterAllSetup&&n.afterAllSetup(e)}function ad(e,t,n){if(n[t.name]){N&&M.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!ju.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),ju.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,s)=>r(i,s,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((s,o)=>r(s,o,e),{id:t.name});e.addEventProcessor(i)}["processSpan","processSegmentSpan"].forEach(r=>{const i=t[r];typeof i=="function"&&e.on(r,s=>i.call(t,s,e))}),N&&M.log(`Integration installed: ${t.name}`)}function We(e){return(...t)=>{const n=xs(t[0])?{...t[0]}:t[0],r=e(...t);return r._options=n,r}}const Tg="production",cd=Symbol.for("sentry.nonRecordingSpan");var Eo=class{constructor(e={}){this._traceId=e.traceId||Fc(),this._spanId=e.spanId||Uo(),this.dropReason=e.dropReason,ze(this,cd,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:0}}end(e){}setAttribute(e,t){return this}setAttributes(e){return this}setStatus(e){return this}updateName(e){return this}isRecording(){return!1}addEvent(e,t,n){return this}addLink(e){return this}addLinks(e){return this}recordException(e,t){}};function za(e){return!!e&&e[cd]===!0}const ud="_frozenDsc";function To(e,t){ze(e,ud,t)}function fd(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||"production",release:n.release,public_key:r,trace_id:e,org_id:ug(t)};return t.emit("createDsc",i),i}function ld(e,t){if(Wl())return;const n=t.getPropagationContext();return n.dsc||fd(n.traceId,e)}function Ur(e){var g;const t=ht();if(!t)return{};const n=Di(e),r=vn(n),i=r.data,s=n.spanContext().traceState,o=(s==null?void 0:s.get("sentry.sample_rate"))??i["sentry.sample_rate"]??i["sentry.previous_trace_sample_rate"];function a(v){return(typeof o=="number"||typeof o=="string")&&(v.sample_rate=`${o}`),v}const c=n[ud];if(c)return a(c);const u=za(n),f=u&&n.dropReason==="ignored";if(u&&(!_s(t.getOptions())||f)){const v=ar(n).scope,T=v&&ld(t,v);if(T){const k={...T};return f&&(k.sampled="false"),a(k)}}const l=s==null?void 0:s.get("sentry.dsc"),d=l&&eg(l);if(d)return a(d);const p=fd(e.spanContext().traceId,t),_=i[bi],h=r.description;if(_!=="url"&&h&&(p.transaction=h),_s()){const v=(g=ar(n).scope)==null?void 0:g.getPropagationContext(),T=Kr(n);p.sampled=String(T),p.sample_rand=(s==null?void 0:s.get("sentry.sample_rand"))??(v==null?void 0:v.sampleRand.toString()),o==null&&typeof(v==null?void 0:v.sampled)=="boolean"&&(p.sample_rate=T?"1":"0")}return a(p),t.emit("createDsc",p,n),p}function wg(e,t){const{fingerprint:n,breadcrumbs:r,sdkProcessingMetadata:i}=t;xg(e,t),Rg(e,n),kg(e,r),Cg(e,i)}function Gu(e,t){const{extra:n,tags:r,attributes:i,user:s,contexts:o,level:a,sdkProcessingMetadata:c,breadcrumbs:u,fingerprint:f,eventProcessors:l,attachments:d,propagationContext:p,transactionName:_}=t;Li(e,"extra",n),Li(e,"tags",r),Li(e,"attributes",i),Li(e,"user",s),Li(e,"contexts",o),e.sdkProcessingMetadata=Rs(e.sdkProcessingMetadata,c,2),a&&(e.level=a),_&&(e.transactionName=_),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),f.length&&(e.fingerprint=[...e.fingerprint,...f]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),d.length&&(e.attachments=[...e.attachments,...d]),e.propagationContext={...e.propagationContext,...p}}function Li(e,t,n){e[t]=Rs(e[t],n,1)}function Yo(e,t){const n=w_().getScopeData();return e&&Gu(n,e.getScopeData()),t&&Gu(n,t.getScopeData()),n}function xg(e,t){const{extra:n,tags:r,user:i,contexts:s,level:o,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(i).length&&(e.user={...i,...e.user}),Object.keys(s).length&&(e.contexts={...s,...e.contexts}),o&&(e.level=o),a&&e.type!=="transaction"&&(e.transaction=a)}function kg(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Cg(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Og(e,t){e.contexts={trace:pg(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:Ur(t),...e.sdkProcessingMetadata};const n=Di(t),r=vn(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function Rg(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function vi(e,t,n){let r;try{r=t()}catch(i){return Xu(e,i,n)}return ks(r)?r.then(void 0,i=>Xu(e,i,n)):r}function Xu(e,t,n){return N&&M.error(e,t),n(t)}function Vo(e){return!!e&&typeof e=="function"&&"_static"in e&&!!e._static}function wo(e,t){return vi(N?"The `beforeSendSpan` callback threw an error, sending the span unmodified:":"",()=>t(e),()=>e)||e}function dd(e){const t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp,status:!e.status||e.status==="ok"||e.status==="cancelled"?"ok":"error",is_segment:!1,attributes:{...e.data},links:e.links};return nd(t)}function Ig(e){const t={},{response:n,profile:r,cloud_resource:i,culture:s,state:o}=e;if(n&&(n.status_code!=null&&(t[M_]=n.status_code),n.body_size!=null&&(t[D_]=n.body_size)),r&&(r.profile_id&&(t[Ho]=r.profile_id),r.profiler_id&&(t[F_]=r.profiler_id)),i)for(const[u,f]of Object.entries(i))f!=null&&(t[u]=f);s&&(s.locale&&(t[Vl]=s.locale),s.timezone&&(t[jl]=s.timezone)),o!=null&&o.state&&typeof o.state.type=="string"&&(t[j_]=o.state.type);const a=e.angular;if(a){const u=a.version;(typeof u=="string"||typeof u=="number")&&(t[R_]=u)}const c=e.react;if(c){const u=c.version;(typeof u=="string"||typeof u=="number")&&(t[N_]=u)}return t}function pd(e,t){const n=vo(e);n.attributes&&delete n.attributes[Na];const r=Wo(e),i=vo(r),{isolationScope:s,scope:o}=ar(e),a=Yo(s,o);Dg(n,i,t,a),t.emit("preprocessSpan",n),n.is_segment&&(To(r,Ur(r)),Pg(n,a),Ag(n,t),t.emit("processSegmentSpan",n)),t.emit("processSpan",n);const{beforeSendSpan:c,traceLifecycle:u}=t.getOptions(),f=u!=="static"&&c&&!Vo(c)?wo(n,c):n;return{...nd(f),_segmentSpan:r,_segmentNameAtCapture:i.name}}function Pg(e,t){As(e,Ig(t.contexts))}function As(e,t){const n=e.attributes??(e.attributes={});Object.entries(t).forEach(([r,i])=>{i!=null&&!(r in n)&&(n[r]=i)})}function Ag(e,t){const n=t.getIntegrationNames();n.length&&As(e,{[z_]:n})}function hd(e,t,n,r=!0){var a,c,u,f,l,d;const i=t.getSdkMetadata(),{release:s,environment:o}=t.getOptions();return{[V_]:"stream",[La]:e.name,[W_]:e.span_id,[U_]:(a=i==null?void 0:i.sdk)==null?void 0:a.name,[H_]:(c=i==null?void 0:i.sdk)==null?void 0:c.version,[B_]:s,[L_]:o||"production",[K_]:(u=n.user)==null?void 0:u.id,[X_]:(f=n.user)==null?void 0:f.email,[J_]:(l=n.user)==null?void 0:l.ip_address,[Q_]:(d=n.user)==null?void 0:d.username,...r?n.attributes:void 0}}function Dg(e,t,n,r){As(e,hd(t,n,r))}function Mg(e,t,n){const r=vn(e),i=Wo(e),s=vo(i),{isolationScope:o,scope:a}=ar(e),c=hd(s,t,Yo(o,a),!1);Object.entries(c).forEach(([f,l])=>{l!=null&&!(f in r.data)&&(r.data[f]=l)});const u=wo(r,n);return dd(u)}function Jr(e){return e.getOptions().traceLifecycle==="stream"}function Vc(e){return typeof e=="object"&&typeof e.unref=="function"&&e.unref(),e}function Ds(e,t=[]){return[e,t]}function Ku(e,t){const[n,r]=e;return[n,[...r,t]]}function Ua(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function Ng(e,t){return Ua(e,(n,r)=>t.includes(r))}function Ha(e){const t=Pi(nt);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function Lg(e){const[t,n]=e;let r=JSON.stringify(t);function i(s){typeof r=="string"?r=typeof s=="string"?r+s:[Ha(r),s]:r.push(typeof s=="string"?Ha(s):s)}for(const s of n){const[o,a]=s;if(i(` +${JSON.stringify(o)} +`),typeof a=="string"||a instanceof Uint8Array)i(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(Bn(a))}i(c)}}return typeof r=="string"?r:$g(r)}function $g(e){const t=e.reduce((i,s)=>i+s.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function Fg(e){const t=typeof e.data=="string"?Ha(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const _d={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",metric:"trace_metric"};function Bg(e){return e in _d}function Ju(e){return Bg(e)?_d[e]:e}function jc(e){if(!(e!=null&&e.sdk))return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function zg(e,t,n,r){var s;const i=(s=e.sdkProcessingMetadata)==null?void 0:s.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(yr()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Ps(r)},...i&&{trace:i}}}function Wa(e){return e==="replay_event"?"replay":e||"error"}function Ug(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Hg(){/*! __SENTRY_SDK_SOURCE__ */return"npm"}function Wg(){return!Ug()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function gd(){return typeof window<"u"&&(!Wg()||Yg())}function Yg(){var e;return((e=nt.process)==null?void 0:e.type)==="renderer"}function Ya(e,t,n){const r=n.getOptions(),i=n.getDsn(),s=r.tunnel,o=jc(r._metadata),a={sent_at:new Date(yr()).toISOString(),...Vg(t)&&{trace:t},...o&&{sdk:o},...!!s&&i&&{dsn:Ps(i)}};return Ds(a,[md(e,n)])}function md(e,t){const n=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:e.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,ingest_settings:gd()?{infer_ip:n,infer_user_agent:n}:void 0,items:e}]}function Vg(e){return!!e.trace_id&&!!e.public_key}function jg(e){var n;let t=156;if(t+=e.name.length*2,t+=Bu(e.attributes),e.links&&e.links.length>0){const r=(n=e.links[0])==null?void 0:n.attributes,i=100+(r?Bu(r):0);t+=i*e.links.length}return t}const Qu=1e3,qg=5e6;var Gg=class{constructor(e,t){this._traceBuckets=new Map,this._client=e;const{maxSpanLimit:n,flushInterval:r,maxTraceWeightInBytes:i}=t??{};this._maxSpanLimit=n&&n>0&&n<=Qu?n:Qu,this._flushInterval=r&&r>0?r:5e3,this._maxTraceWeight=i&&i>0?i:qg,this._client.on("flush",()=>{this.drain()}),this._client.on("close",()=>{this._traceBuckets.forEach(s=>{clearTimeout(s.timeout)}),this._traceBuckets.clear()})}add(e){const t=e.trace_id;let n=this._traceBuckets.get(t);n||(n={spans:new Set,size:0,timeout:Vc(setTimeout(()=>{this.flush(t)},this._flushInterval))},this._traceBuckets.set(t,n)),n.spans.add(e),n.size+=jg(e),(n.spans.size>=this._maxSpanLimit||n.size>=this._maxTraceWeight)&&this.flush(t)}drain(){this._traceBuckets.size&&(N&&M.log(`Flushing span tree map with ${this._traceBuckets.size} traces`),this._traceBuckets.forEach((e,t)=>{this.flush(t)}))}flush(e){var u;const t=this._traceBuckets.get(e);if(!t)return;if(!t.spans.size){this._removeTrace(e);return}const n=Array.from(t.spans),r=(u=n[0])==null?void 0:u._segmentSpan;if(!r){N&&M.warn("No segment span reference found on span JSON, cannot compute DSC"),this._removeTrace(e);return}const i=Ur(r);To(r,i);const s=new Map,o=f=>{let l=s.get(f);return l===void 0&&(l=vo(f).name,s.set(f,l)),l},a=n.map(f=>{const{_segmentSpan:l,_segmentNameAtCapture:d,...p}=f;return Xg(p,d,()=>o(l)),p}),c=Ya(a,i,this._client);N&&M.log(`Sending span envelope for trace ${e} with ${a.length} spans`),this._client.sendEnvelope(c).then(null,f=>{N&&M.error("Error while sending streamed span envelope:",f)}),this._removeTrace(e)}_removeTrace(e){const t=this._traceBuckets.get(e);t&&clearTimeout(t.timeout),this._traceBuckets.delete(e)}};function Xg(e,t,n){const r=e.attributes[La];if(t===void 0||(r==null?void 0:r.value)!==t)return;const i=n();i!==t&&(e.attributes[La]={...r,value:i})}const Kg="SpanStreaming",Jg=We((e={})=>{const t=e.flushOnSegmentEnd??!0;return{name:Kg,setup(n){if(!Jr(n)){N&&M.log('[SpanStreaming] `traceLifecycle` is "static", skipping setup.');return}const r=new Gg(n);n.on("afterSpanEnd",i=>{Kr(i)&&r.add(pd(i,n))}),n.on("flushTraceSpans",i=>{r.flush(i)}),t&&n.on("afterSegmentSpanEnd",i=>{const s=i.spanContext().traceId;Vc(setTimeout(()=>{r.flush(s)},500))})}}}),Qg=new WeakMap;function Zg(e){return Xr(e)?void 0:e}function tm(e,t,n){var o;const r=Zg(t.originalException),i=r&&Qg.get(r);if(!i)return;const s=(o=e.contexts)==null?void 0:o.trace;((s==null?void 0:s.trace_id)??(n&&Yl(n).trace_id))===i.trace_id&&(e.contexts={...e.contexts,trace:{...s,...i}})}function em(e){if(!N)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=vn(e),{spanId:i}=e.spanContext(),s=Kr(e),o=Di(e),a=o===e,c=`[Tracing] Starting ${s?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&u.push(`parent ID: ${r}`),!a){const{op:f,description:l}=vn(o);u.push(`root ID: ${o.spanContext().spanId}`),f&&u.push(`root op: ${f}`),l&&u.push(`root description: ${l}`)}M.log(`${c} + ${u.join(` + `)}`)}function nm(e){if(!N)return;const{description:t="< unknown name >",op:n="< unknown op >"}=vn(e),{spanId:r}=e.spanContext(),i=`[Tracing] Finishing "${n}" ${Di(e)===e?"root ":""}span "${t}" with ID ${r}`;M.log(i)}function rm(e,t,n){if(!_s(e))return[!1];const r=im(e,t);if(!r)return[!1,void 0,void 0,"callback_error"];const[i,s]=r,o=Hc(i);if(o===void 0)return N&&M.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!o)return N&&M.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,o,s];const a=n[n({...t,inheritOrSampleWith:s=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):s}),!0],()=>{});if(i)return i}if(t.parentSampled!==void 0)return[t.parentSampled];if(typeof r<"u")return[r,!0]}function Zu(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},i=r[k_],s=r[C_];typeof i=="string"&&typeof s=="number"&&(t[n.name]={value:s,unit:i})}),t}function tf(){return Pi(mr()).segmentSpanCaptureStrategy}const Us=1e3;var qc=class{constructor(e={}){this._traceId=e.traceId||Fc(),this._spanId=e.spanId||Uo(),e.startTimestamp?this._startTime=e.startTimestamp:(this._startTime=pe(),this._startPerformanceNow=Mu()),this._links=e.links,this._attributes={},this.setAttributes({[ds]:"manual",[dr]:e.op,...e.attributes}),this._name=e.name,e.parentSpanId&&(this._parentSpanId=e.parentSpanId),"sampled"in e&&(this._sampled=e.sampled),this._events=[],this._isStandaloneSpan=e.isStandalone}addLink(e){return this._frozen?this:(this._links?this._links.push(e):this._links=[e],this)}addLinks(e){return this._frozen?this:(this._links?this._links.push(...e):this._links=e,this)}recordException(e,t){}spanContext(){const{_spanId:e,_traceId:t,_sampled:n}=this;return{spanId:e,traceId:t,traceFlags:n?1:0}}setAttribute(e,t){return this._frozen?this:e===bi&&t!==void 0&&!hs(this)?(N&&M.warn("[Tracing] Ignoring name source on a child span: this attribute is only valid on the root span."),this):(t===void 0?delete this._attributes[e]:this._attributes[e]=t,this)}setAttributes(e){return Object.keys(e).forEach(t=>this.setAttribute(t,e[t])),this}updateStartTime(e){this._frozen||(this._startTime=ia(this,e),this._startPerformanceNow=void 0)}setStatus(e){return this._frozen?this:(this._status=e,this)}updateName(e){return this._frozen?this:(this._name=e,gg(this,"custom"),this)}end(e){this._endTime||(this._endTime=e==null?this._getEndTimeFromDuration():ia(this,e),nm(this),this._onSpanEnded(),this._frozen=Jl(this))}getStaticSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[dr],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:sd(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[ds],profile_id:this._attributes[Ho],exclusive_time:this._attributes[zc],measurements:Zu(this._events),links:Zl(this._links)}}getSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime,is_segment:hs(this),status:Wc(this._status),attributes:od(this._attributes,this._status),links:td(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(e,t,n){if(this._frozen)return this;N&&M.log("[Tracing] Adding an event to span:",e);const r=ef(t)?t:n||void 0,i=ef(t)?{}:t||{},s={name:e,time:ia(this,r),attributes:i};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}_getEndTimeFromDuration(){const e=Mu();return this._startPerformanceNow==null||e==null?pe():this._startTime+(e-this._startPerformanceNow)/1e3}_onSpanEnded(){const e=ht();if(e==null||e.emit("spanEnd",this),this._isStandaloneSpan){if(!e)return;if(this._sampled){om(this,e);return}N&&M.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled.");return}e==null||e.emit("afterSpanEnd",this);const t=Di(this);if(t!==this){const i=tf();if(i){const s=ar(this).scope||Ue();i.onChildSpanEnded(this,t,o=>this._convertSpanToTransaction(o),s)}return}if(e&&Jr(e)){e.emit("afterSegmentSpanEnd",this);return}const n=ar(this).scope||Ue(),r=tf();if(r)r.onSegmentSpanEnded(i=>this._convertSpanToTransaction(i),n);else{const i=this._convertSpanToTransaction();i&&n.captureEvent(i)}}_convertSpanToTransaction(e={}){var l,d,p,_;if(!nf(vn(this)))return;this._name||(N&&M.warn("Transaction has no name, falling back to ``."),this._name="");const{scope:t,isolationScope:n}=ar(this),r=(l=t==null?void 0:t.getScopeData().sdkProcessingMetadata)==null?void 0:l.normalizedRequest;if(this._sampled!==!0)return;(d=e.onSpanCaptured)==null||d.call(e,this);const i=[];let s=0;for(const h of _g(this)){if(h===this||sm(h)||(p=e.isSpanAlreadyCaptured)!=null&&p.call(e,h))continue;const g=vn(h);if(!nf(g)){e.onSpanCaptured||s++;continue}(_=e.onSpanCaptured)==null||_.call(e,h),i.push(g)}const o=(t==null?void 0:t.getClient())||ht();s&&(o==null||o.recordDroppedEvent("invalid","span",s)),i.length>Us&&(o==null||o.recordDroppedEvent("buffer_overflow","span",i.length-Us));const a=this._attributes[bi];delete this._attributes[Na];let c=!1;i.forEach(h=>{var g;delete h.data[Na],(g=h.op)!=null&&g.startsWith("gen_ai.")&&(c=!0)});const u={contexts:{trace:dg(this)},spans:i.length>Us?i.sort((h,g)=>h.start_timestamp-g.start_timestamp).slice(0,Us):i,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:t,capturedSpanIsolationScope:n,dynamicSamplingContext:Ur(this),hasGenAiSpans:c},request:r,...a&&{transaction_info:{source:a}}},f=Zu(this._events);return f&&Object.keys(f).length&&(N&&M.log("[Measurements] Adding measurements to transaction event",JSON.stringify(f,void 0,2)),u.measurements=f),u}};function ia(e,t){return Jl(e)?hg(t):zr(t)}function ef(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function nf(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function sm(e){return e instanceof qc&&e.isStandaloneSpan()}function om(e,t){const{beforeSendSpan:n,traceLifecycle:r}=t.getOptions();if(r==="static"&&Vo(n)){const c=Mg(e,t,n),u=Ur(e);t.sendEnvelope(Ya([c],u,t));return}const{_segmentSpan:i,_segmentNameAtCapture:s,...o}=pd(e,t),a=Ur(i);t.sendEnvelope(Ya([o],a,t))}function am(e){const t=lm(e),{forceTransaction:n,parentSpan:r,scope:i}=e;return(i?s=>Bc(i,s):r!==void 0?s=>cm(r,s):s=>s())(()=>{const s=Ue(),o=pm(i??s,r),a=ht();return e.onlyIfParent&&!o?um(s,a):fm({parentSpan:o,spanArguments:t,forceTransaction:n,scope:s})})}function cm(e,t){const n=yd();return n.withActiveSpan?n.withActiveSpan(e,t):Bc(r=>(fg(r,e||void 0),t(r)))}function Gc(e=Ue()){const t=yd();return t.isTracingSuppressed?t.isTracingSuppressed(e):e.getScopeData().sdkProcessingMetadata[Ma]===!0}function um(e,t){t==null||t.recordDroppedEvent("no_parent_span","span");const n=new Eo({dropReason:"no_parent_span",traceId:e.getPropagationContext().traceId});return ps(n,e,Gn()),n}function fm({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){var f;const i=Gn(),s={scope:r,parentSpan:e};(f=ht())==null||f.emit("prepareSpanScope",s);const{scope:o,parentSpan:a}=s;if(!_s()){const l=o.getPropagationContext(),d=a?a.spanContext().traceId:l.traceId,p=new Eo({traceId:d});return a&&!n&&so(a,p),ps(p,o,i),p}const c=ht();if(hm(c,t)){Gc(o)||c==null||c.recordDroppedEvent("ignored","span");const l=new Eo({dropReason:"ignored",traceId:(a==null?void 0:a.spanContext().traceId)??o.getPropagationContext().traceId});return a&&!n&&so(a,l),ps(l,o,i),l}let u;if(a&&!n)u=dm(a,o,t,i),so(a,u);else if(a){const l=Ur(a),{traceId:d,spanId:p}=a.spanContext(),_=Kr(a);u=rf({traceId:d,parentSpanId:p,...t},o,i,_),To(u,l)}else{const{traceId:l,dsc:d,parentSpanId:p,sampled:_}=o.getPropagationContext();u=rf({traceId:l,parentSpanId:p,...t},o,i,_),d&&To(u,d)}return em(u),u}function lm(e){var n;const t={isStandalone:(n=e.experimental)==null?void 0:n.standalone,...e};if(e.op&&(t.attributes={[dr]:e.op,...e.attributes}),e.startTime){const r={...t};return r.startTimestamp=zr(e.startTime),delete r.startTime,r}return t}function yd(){const e=mr();return Is(e)}function rf(e,t,n,r){var v;const i=ht(),s=(i==null?void 0:i.getOptions())||{},{name:o=""}=e,a={spanAttributes:{...e.attributes},spanName:o,parentSampled:r};i==null||i.emit("beforeSampling",a,{decision:!1});const c=a.parentSampled??r,u=a.spanAttributes,f=t.getPropagationContext(),l=Gc(t),[d,p,_,h]=l?[!1]:rm(s,{name:o,parentSampled:c,attributes:u,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:Hc((v=f.dsc)==null?void 0:v.sample_rate)},f.sampleRand),g=new qc({...e,attributes:{[bi]:"custom",[x_]:p!==void 0&&_?p:void 0,...u},sampled:d});if(!d&&i&&!l){N&&M.log("[Tracing] Discarding root span because its trace was not chosen to be sampled.");const T=h||"sample_rate";!Jr(i)&&!e.isStandalone&&i.recordDroppedEvent(T,"transaction"),i.recordDroppedEvent(T,"span")}return ps(g,t,n),i&&i.emit("spanStart",g),g}function dm(e,t,n,r){const{spanId:i,traceId:s}=e.spanContext(),o=Gc(t),a=o?!1:Kr(e),c=a?new qc({...n,parentSpanId:i,traceId:s,sampled:a}):new Eo({traceId:s});so(e,c),ps(c,t,r);const u=ht();return u&&(za(c)&&(za(e)&&e.dropReason?(c.dropReason=e.dropReason,u.recordDroppedEvent(e.dropReason,"span")):o||(c.dropReason="sample_rate",u.recordDroppedEvent("sample_rate","span"))),u.emit("spanStart",c)),c}function pm(e,t){if(t)return t;if(t===null)return;const n=Yc(e);if(!n)return;const r=ht();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?Di(n):n}function hm(e,t){var r;const n=e==null?void 0:e.getOptions().ignoreSpans;return!e||!Jr(e)||!(n!=null&&n.length)?!1:Ba({description:t.name||"",op:((r=t.attributes)==null?void 0:r[dr])||t.op,attributes:t.attributes},n)}const sf=new WeakSet;function _m(e=ht()){!e||sf.has(e)||!Jr(e)||(sf.add(e),e.addIntegration(Jg()))}function of(e){return _m(),am(e)}const gm="ui.render",sa="ui.mount",mm="ui.update",af="ui.unmount",oa="Component mount",ym="Component update",Sm="Component render",cf="Component unmount";function bm(e,t){var r,i,s,o;if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...((r=e.sdk)==null?void 0:r.integrations)||[],...t.integrations||[]],packages:[...((i=e.sdk)==null?void 0:i.packages)||[],...t.packages||[]],settings:(s=e.sdk)!=null&&s.settings||t.settings?{...(o=e.sdk)==null?void 0:o.settings,...t.settings}:void 0},e}function vm(e,t,n,r){const i=jc(n),s={sent_at:new Date(yr()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Ps(t)}},o="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return Ds(s,[o])}function Em(e,t,n,r){const i=jc(n),s=e.type&&e.type!=="replay_event"?e.type:"event";bm(e,n==null?void 0:n.sdk);const o=zg(e,i,r,t);return delete e.sdkProcessingMetadata,Ds(o,[[{type:s},e]])}const Sd="[Filtered]",Tm=["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","sid","identity","set-cookie","cookie"];function wm(e,t){return t.some(n=>e.includes(n))}function bd(e,t,n){if(t===!1)return!0;const r=e.toLowerCase();if(wm(r,Tm))return!0;if(t===!0)return!1;const i=("deny"in t?t.deny:t.allow).some(s=>r.includes(s.toLowerCase()));return"deny"in t?i:!i}function Va(e,t,n){if(t===!1)return{};const r={};for(const i of Object.keys(e))r[i]=bd(i,t)?Sd:e[i];return r}const aa=0,uf=1,ff=2;function Ms(e){return new vd(t=>{t(e)})}function Xc(e){return new vd((t,n)=>{n(e)})}var vd=class ja{constructor(t){this._state=aa,this._handlers=[],this._runExecutor(t)}then(t,n){return new ja((r,i)=>{this._handlers.push([!1,s=>{if(!t)r(s);else try{r(t(s))}catch(o){i(o)}},s=>{if(!n)i(s);else try{r(n(s))}catch(o){i(o)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new ja((n,r)=>{let i,s;return this.then(o=>{s=!1,i=o,t&&t()},o=>{s=!0,i=o,t&&t()}).then(()=>{if(s){r(i);return}n(i)})})}_executeHandlers(){if(this._state===aa)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===uf&&n[1](this._value),this._state===ff&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(s,o)=>{if(this._state===aa){if(ks(o)){o.then(r,i);return}this._state=s,this._value=o,this._executeHandlers()}},r=s=>{n(uf,s)},i=s=>{n(ff,s)};try{t(r,i)}catch(s){i(s)}}};function xm(e,t,n,r=0,i){try{const s=qa(t,n,e,r,i);return ks(s)?s:Ms(s)}catch(s){return Xc(s)}}function qa(e,t,n,r,i){const s=n[r];if(!e||!s)return e;const o=`Event processor "${s.id||"?"}"`;let a=!1;const c=vi(N?`${o} threw an error, dropping event:`:"",()=>s({...e},t),()=>(a=!0,null));return N&&c===null&&M.log(`${o} dropped event`),ks(c)?c.then(u=>u?qa(u,t,n,r+1,i):(i==null||i(a?"callback_error":"event_processor"),null)):c?qa(c,t,n,r+1,i):(i==null||i(a?"callback_error":"event_processor"),null)}let $n,lf,df,Jn;function km(e){const t=nt._sentryDebugIds,n=nt._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(Jn&&r.length===lf&&i.length===df)return Jn;lf=r.length,df=i.length,Jn={},$n||($n={});const s=(o,a)=>{var c;for(const u of o){const f=a[u],l=$n==null?void 0:$n[u];if(l&&Jn&&f)Jn[l[0]]=f,$n&&($n[u]=[l[0],f]);else if(f){const d=e(u);for(let p=d.length-1;p>=0;p--){const _=(c=d[p])==null?void 0:c.filename;if(_&&Jn&&$n){Jn[_]=f,$n[u]=[_,f];break}}}}};return t&&s(r,t),n&&s(i,n),Jn}function Ga(e){var t;return((t=e.data)==null?void 0:t.__sentry__)===!0}function Ed(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n!=null&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function Cm(e,t,n,r,i,s){var T;const{normalizeDepth:o=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||dn(),timestamp:t.timestamp||Os()},u=n.integrations||e.integrations.map(k=>k.name);Om(c,e),Pm(c,u),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&Rm(c,e.stackParser);const f=Dm(r,n.captureContext);n.mechanism&&n_(c,n.mechanism);const l=i?i.getEventProcessors():[],d=Yo(s,f),p=[...n.attachments||[],...d.attachments];p.length&&(n.attachments=p),wg(c,d);const _=Yc(f);_&&Og(c,_),tm(c,n,f);const h=[...l,...d.eventProcessors],g=t.type==="transaction",v=((T=t.spans)==null?void 0:T.length)||0;return(Ga(n)?Ms(c):xm(h,c,n,0,k=>{i&&(i.recordDroppedEvent(k,Wa(t.type)),g&&i.recordDroppedEvent(k,"span",1+v))})).then(k=>{var m;if(!k)return null;if(g&&i){const b=v-(((m=k.spans)==null?void 0:m.length)||0);b>0&&i.recordDroppedEvent("event_processor","span",b)}return Im(k),typeof o=="number"&&o>0?Am(k,o,a):k})}function Om(e,t){var a,c;const{environment:n,release:r,dist:i,maxValueLength:s}=t;e.environment=e.environment||n||"production",!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);const o=e.request;o!=null&&o.url&&s&&(o.url=Pa(o.url,s)),s&&((c=(a=e.exception)==null?void 0:a.values)==null||c.forEach(u=>{u.value&&(u.value=Pa(u.value,s))}))}function Rm(e,t){var r,i;const n=km(t);(i=(r=e.exception)==null?void 0:r.values)==null||i.forEach(s=>{var o,a;(a=(o=s.stacktrace)==null?void 0:o.frames)==null||a.forEach(c=>{c.filename&&(c.debug_id=n[c.filename])})})}function Im(e){var r,i;const t={};if((i=(r=e.exception)==null?void 0:r.values)==null||i.forEach(s=>{var o,a;(a=(o=s.stacktrace)==null?void 0:o.frames)==null||a.forEach(c=>{c.debug_id&&(c.abs_path?t[c.abs_path]=c.debug_id:c.filename&&(t[c.filename]=c.debug_id),delete c.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([s,o])=>{n.push({type:"sourcemap",code_file:s,debug_id:o})})}function Pm(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Am(e,t,n){var i,s;if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(o=>({...o,...o.data&&{data:Bn(o.data,t,n)}}))},...e.user&&{user:Bn(e.user,t,n)},...e.contexts&&{contexts:Bn(e.contexts,t,n)},...e.extra&&{extra:Bn(e.extra,t,n)}};return(i=e.contexts)!=null&&i.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Bn(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(o=>({...o,...o.data&&{data:Bn(o.data,t,n)}}))),(s=e.contexts)!=null&&s.flags&&r.contexts&&(r.contexts.flags=Bn(e.contexts.flags,3,n)),r}function Dm(e,t){if(!t)return e;const n=e?e.clone():new Br;return n.update(t),n}function Mm(e){if(e)return Nm(e)?{captureContext:e}:$m(e)?{captureContext:e}:e}function Nm(e){return e instanceof Br||typeof e=="function"}const Lm=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function $m(e){return Object.keys(e).some(t=>Lm.includes(t))}function Td(e,t){return Ue().captureException(e,Mm(t))}function wd(e,t){return Ue().captureEvent(e,t)}function pf(e){var o,a;const t=Gn(),{user:n}=Yo(t,Ue());let r=(o=nt.navigator)==null?void 0:o.userAgent;if(r){const c=((a=ht())==null?void 0:a.getDataCollectionOptions().httpHeaders.request)??!0;r=Va({"User-Agent":r},c)["User-Agent"]}const i=u_({user:n,userAgent:r,...e}),s=t.getSession();return(s==null?void 0:s.status)==="ok"&&yi(s,{status:"exited"}),xd(),t.setSession(i),i}function xd(){const e=Gn(),t=Ue().getSession()||e.getSession();t&&f_(t),kd(),e.setSession()}function kd(){const e=Gn(),t=ht(),n=e.getSession();n&&t&&t.captureSession(n)}function ca(e=!1){if(e){xd();return}kd()}function Fm(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Bm(e){return`${Fm(e)}${e.projectId}/envelope/`}function zm(e,t){const n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Um(e,t,n){return t||`${Bm(e)}?${zm(e,n)}`}function Hm(e,t){var i,s,o;if(e.type!=="transaction"||!((i=e.spans)!=null&&i.length)||!((s=e.sdkProcessingMetadata)!=null&&s.hasGenAiSpans)||Jr(t))return;const n=[],r=[];for(const a of e.spans)(o=a.op)!=null&&o.startsWith("gen_ai.")?n.push(dd(a)):r.push(a);if(n.length!==0)return e.spans=r,md(n,t)}const Kc=Symbol.for("SentryBufferFullError");function Jc(e=100){const t=new Set;function n(){return t.sizer(a),()=>r(a)),a}function s(o){if(!t.size)return Ms(!0);const a=Promise.allSettled(Array.from(t)).then(()=>!0);if(!o)return a;const c=[a,new Promise(u=>Vc(setTimeout(()=>u(!1),o)))];return Promise.race(c)}return{get $(){return Array.from(t)},add:i,drain:s}}const Wm=6e4;function Ym(e,t=yr()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Wm:r-t}function Vm(e,t){return e[t]||e.all||0}function jm(e,t,n=yr()){return Vm(e,t)>n}function qm(e,t,n=yr()){const r={...e};return Gm(t,n,(i,s)=>{r[i]=Math.max(r[i]||0,s)}),r}function Gm({statusCode:e,headers:t},n,r){const i=t==null?void 0:t["x-sentry-rate-limits"],s=t==null?void 0:t["retry-after"];if(i)for(const o of i.trim().split(",")){const[a,c,,,u]=o.split(":",5),f=parseInt(a,10),l=(isNaN(f)?60:f)*1e3;if(!c)r("all",n+l);else for(const d of c.split(";"))d==="metric_bucket"?(!u||u.split(";").includes("custom"))&&r(d,n+l):r(d,n+l)}else s?r("all",n+Ym(s,n)):e===429&&r("all",n+6e4)}function Xm(e,t,n=Jc(e.bufferSize||64)){let r={};const i=a=>n.drain(a);function s(a,[c,u],f){var d;const l=Ju(f);f==="transaction"&&e.recordDroppedEvent(a,"span",(((d=u.spans)==null?void 0:d.length)??0)+1),e.recordDroppedEvent(a,l,typeof c.item_count=="number"?c.item_count:1)}function o(a){const c=[];if(Ua(a,(d,p)=>{jm(r,Ju(p))?s("ratelimit_backoff",d,p):c.push(d)}),c.length===0)return Promise.resolve({});const u=Ds(a[0],c),f=d=>{if(Ng(u,["client_report"])){N&&M.warn(`Dropping client report. Will not send outcomes (reason: ${d}).`);return}Ua(u,(p,_)=>{s(d,p,_)})},l=()=>t({body:Lg(u)}).then(d=>d.statusCode===413?(N&&M.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),f("send_error"),d):(N&&d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&M.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=qm(r,d),d),d=>{throw f("network_error"),N&&M.error("Encountered error running transport request:",d),d});return n.add(l).then(d=>d,d=>{if(d===Kc)return N&&M.error("Skipped sending event because buffer is full."),f("queue_overflow"),Promise.resolve({});throw d})}return{send:o,flush:i}}function Km(e,t,n){const r=[{type:"client_report"},{timestamp:Os(),discarded_events:e}];return Ds(t?{dsn:t}:{},[r])}function Jm(e){var u;const{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:s,data:o,op:a,links:c}=((u=e.contexts)==null?void 0:u.trace)??{};return{data:o??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i??"ok",timestamp:e.timestamp,trace_id:t??"",origin:s,links:c,profile_id:o==null?void 0:o[Ho],exclusive_time:o==null?void 0:o[zc],measurements:e.measurements,is_segment:!0}}function Qm(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,links:e.links,data:{...e.data,...e.profile_id&&{[Ho]:e.profile_id},...e.exclusive_time&&{[zc]:e.exclusive_time}}}},measurements:e.measurements}}function Zm(e){var t;e.traceLifecycle!=="stream"||!(e.beforeSendTransaction||(t=e.ignoreTransactions)!=null&&t.length)||En(()=>{console.warn("[Sentry] `beforeSendTransaction` and `ignoreTransactions` are ignored with `traceLifecycle: 'stream'` (enabled by default). Use `beforeSendSpan` and `ignoreSpans` instead, or set `traceLifecycle: 'static'`.")})}const le={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},mcp:{inputs:!0,outputs:!0},databaseQueryData:!0,queues:!0,stackFrameVariables:!0,frameContextLines:5};function t0(e){return typeof e=="boolean"||"allow"in e||"deny"in e}function e0(e){return e===void 0?{...le.httpHeaders}:t0(e)?{request:e,response:e}:{request:e.request??le.httpHeaders.request,response:e.response??le.httpHeaders.response}}function n0(e){var n,r,i,s,o,a;const t=e.dataCollection??{};return{userInfo:t.userInfo??le.userInfo,cookies:t.cookies??le.cookies,httpHeaders:e0(t.httpHeaders),httpBodies:t.httpBodies??le.httpBodies,urlQueryParams:t.urlQueryParams??le.urlQueryParams,graphQL:{document:((n=t.graphQL)==null?void 0:n.document)??le.graphQL.document,variables:((r=t.graphQL)==null?void 0:r.variables)??le.graphQL.variables},genAI:{inputs:((i=t.genAI)==null?void 0:i.inputs)??le.genAI.inputs,outputs:((s=t.genAI)==null?void 0:s.outputs)??le.genAI.outputs},mcp:{inputs:((o=t.mcp)==null?void 0:o.inputs)??le.mcp.inputs,outputs:((a=t.mcp)==null?void 0:a.outputs)??le.mcp.outputs},databaseQueryData:t.databaseQueryData??le.databaseQueryData,queues:t.queues??le.queues,stackFrameVariables:t.stackFrameVariables??le.stackFrameVariables,frameContextLines:t.frameContextLines??le.frameContextLines}}const hf="Not capturing exception because it's already been captured.",_f="Discarded session because of missing or non-string release",Cd=Symbol.for("SentryInternalError"),Od=Symbol.for("SentryDoNotSendEventError"),Rd=Symbol.for("SentryClosedClient");function r0(e){return Rd in e}function gf(e){return{message:e,[Cd]:!0}}function Xa(e){return{message:e,[Od]:!0}}function mf(e){return Xa(`Discarding event because it's not included in the random sample (sampling rate = ${e})`)}function yf(e){return Bo(e)&&Cd in e}function Sf(e){return Bo(e)&&Od in e}var i0=class{constructor(e){var r;this._options={attachStacktrace:!0,...e,traceLifecycle:e.traceLifecycle==="static"?"static":"stream"},this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=Jc(((r=e.transportOptions)==null?void 0:r.bufferSize)??64),this._dataCollection=n0(e),this._unhandledSessionStatus="crashed",this._attachStacktraceIsDefault=e.attachStacktrace===void 0,e.dsn?this._dsn=Uc(e.dsn):N&&M.warn("No DSN provided, client will not send events.");const{beforeSendSpan:t,traceLifecycle:n}=this._options;if(N&&t&&Vo(t)!==(n==="static")&&En(()=>{console.warn(`Ignoring \`beforeSendSpan\`: ${n==="static"?"wrap it with":"remove"} \`Sentry.withStaticSpan\` to use it with \`traceLifecycle: "${n}"\`.`)}),this._dsn){const i=Um(this._dsn,e.tunnel,e._metadata?e._metadata.sdk:void 0);this._transport=e.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...e.transportOptions,url:i})}}captureException(e,t,n){const r=dn();if(Du(e))return N&&M.log(hf),r;const i={event_id:r,...t};return this._process(()=>this.eventFromException(e,i).then(s=>this._captureEvent(s,i,n)).then(s=>s),"error"),i.event_id}captureMessage(e,t,n,r){const i={event_id:dn(),...n},s=Ac(e)?e:String(e),o=Xr(e),a=o?this.eventFromMessage(s,t,i).then(c=>(c.exception&&this._attachStacktraceIsDefault&&(c.sdkProcessingMetadata={...c.sdkProcessingMetadata,hasDefaultSyntheticStacktrace:!0}),c)):this.eventFromException(e,i);return this._process(()=>a.then(c=>this._captureEvent(c,i,r)),o?"unknown":"error"),i.event_id}captureEvent(e,t,n){const r=dn();if(t!=null&&t.originalException&&Du(t.originalException))return N&&M.log(hf),r;const i={event_id:r,...t},s=e.sdkProcessingMetadata||{},o=s.capturedSpanScope,a=s.capturedSpanIsolationScope,c=Wa(e.type);return this._process(()=>this._captureEvent(e,i,o||n,a),c),i.event_id}captureSession(e){this.sendSession(e),yi(e,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(e){const t=this._transport;if(this.emit("flush"),!t)return!0;const n=await this._isClientDoneProcessing(e),r=await t.flush(e);return n&&r}async close(e){Object.defineProperty(this,Rd,{value:!0});const t=await this.flush(e);return this.getOptions().enabled=!1,this.emit("close"),t}getEventProcessors(){return this._eventProcessors}addEventProcessor(e){this._eventProcessors.push(e)}init(){(this._isEnabled()||this._options.integrations.some(({name:e})=>e.startsWith("Spotlight")))&&(this._setupIntegrations(),Zm(this._options))}getIntegrationByName(e){return this._integrations[e]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(e){const t=this._integrations[e.name];!t&&e.beforeSetup&&e.beforeSetup(this),ad(this,e,this._integrations),t||qu(this,[e])}sendEvent(e,t={}){this.emit("beforeSendEvent",e,t);const n=Hm(e,this);let r=Em(e,this._dsn,this._options._metadata,this._options.tunnel);if(!Ga(t))for(const i of t.attachments||[])r=Ku(r,Fg(i));n&&(r=Ku(r,n)),this.sendEnvelope(r).then(i=>this.emit("afterSendEvent",e,i))}sendSession(e){const{release:t,environment:n=Tg}=this._options;if("aggregates"in e){const i=e.attrs||{};if(!i.release&&!t){N&&M.warn(_f);return}i.release=i.release||t,i.environment=i.environment||n,e.attrs=i}else{if(!e.release&&!t){N&&M.warn(_f);return}e.release=e.release||t,e.environment=e.environment||n}this.emit("beforeSendSession",e);const r=vm(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(r)}recordDroppedEvent(e,t,n=1){if(this._options.sendClientReports){const r=`${e}:${t}`;N&&M.log(`Recording outcome: "${r}"${n>1?` (${n} times)`:""}`),this._outcomes[r]=(this._outcomes[r]||0)+n}}on(e,t){const n=this._hooks[e]=this._hooks[e]||new Set,r=(...i)=>t(...i);return n.add(r),()=>{n.delete(r)}}emit(e,...t){const n=this._hooks[e];n&&n.forEach(r=>r(...t))}async sendEnvelope(e){if(this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport)try{const t=await this._transport.send(e);return this.emit("afterEnvelope",e),t}catch(t){return N&&M.error("Error while sending envelope:",t),{}}return N&&M.error("Transport disabled"),{}}registerCleanup(e){}dispose(){}_setupIntegrations(){const{integrations:e}=this._options;this._integrations=Eg(this,e),qu(this,e)}_updateSessionFromEvent(e,t){var o,a;let n=t.level==="fatal",r=!1;const i=(o=t.exception)==null?void 0:o.values;if(i){r=!0,n=!1;for(const c of i)if(((a=c.mechanism)==null?void 0:a.handled)===!1){n=!0;break}}const s=e.status==="ok";(s&&e.errors===0||s&&n)&&(yi(e,{...n&&{status:this._unhandledSessionStatus},errors:e.errors||Number(r||n)}),this.captureSession(e))}async _isClientDoneProcessing(e){let t=0;for(;!e||tsetTimeout(n,1)),!this._numProcessing)return!0;t++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(e,t,n,r){const i=this.getOptions(),s=this.getIntegrationNames();return!t.integrations&&s.length&&(t.integrations=s),this.emit("preprocessEvent",e,t),e.type||r.setLastEventId(e.event_id||t.event_id),Cm(i,e,t,n,this,r).then(o=>{var a;return o===null||(this.emit("postprocessEvent",o,t),o.contexts={trace:{...(a=o.contexts)==null?void 0:a.trace,...Yl(n)},...o.contexts},o.sdkProcessingMetadata={dynamicSamplingContext:ld(this,n),...o.sdkProcessingMetadata}),o})}_captureEvent(e,t={},n=Ue(),r=Gn()){return N&&Ka(e)&&M.log(`Captured error event \`${Ed(e)[0]||""}\``),this._processEvent(e,t,n,r).then(i=>i.event_id,i=>{N&&(Sf(i)?M.log(i.message):yf(i)?M.warn(i.message):M.warn(i))})}_processEvent(e,t,n,r){const i=this.getOptions(),{sampleRate:s}=i,o=Id(e),a=Ka(e),c=`before send for type \`${e.type||"error"}\``;let u="before_send",f=0;const l=typeof s>"u"?void 0:Hc(s),d=a&&typeof l=="number"&&Nc()>l,p=Wa(e.type);let _=0;const h=n.getSession()||r.getSession();return d&&(h==null?void 0:h.status)!=="ok"?(this.recordDroppedEvent("sample_rate","error"),Xc(mf(s))):this._prepareEvent(e,t,n,r).then(g=>{var v;if(g===null)throw Xa("An event processor returned `null`, will not send event.");return _=((v=g.spans)==null?void 0:v.length)||0,Ga(t)?g:s0(i,g,t,T=>{u=T},T=>{f=T})}).then(g=>{var T;if(f&&this.recordDroppedEvent("ignored","span",f),!xs(g)||g===null)throw this.recordDroppedEvent(u,p),o&&this.recordDroppedEvent(u,"span",1+_-f),g!==null?gf(`${c} must return \`null\` or a valid event.`):Xa(`${u==="ignored"?"Transaction matched `ignoreSpans`":`${c} ${u==="callback_error"?"threw an error":"returned `null`"}`}, will not send event.`);if(a&&h&&this._updateSessionFromEvent(h,g),d)throw this.recordDroppedEvent("sample_rate","error"),mf(s);if(o){const k=_-f-(((T=g.spans)==null?void 0:T.length)||0);k>0&&this.recordDroppedEvent("before_send","span",k)}const v=g.transaction_info;if(o&&v&&g.transaction!==e.transaction){const k="custom";g.transaction_info={...v,source:k}}return this.sendEvent(g,t),g}).then(null,g=>{throw Sf(g)||yf(g)?g:(this.captureException(g,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:g}),gf(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. +Reason: ${g}`))})}_process(e,t){this._numProcessing++,this._promiseBuffer.add(e).then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n===Kc&&this.recordDroppedEvent("queue_overflow",t),n))}_clearOutcomes(){const e=this._outcomes;return this._outcomes={},Object.entries(e).map(([t,n])=>{const[r,i]=t.split(":");return{reason:r,category:i,quantity:n}})}_flushOutcomes(){N&&M.log("Flushing outcomes...");const e=this._clearOutcomes();if(e.length===0){N&&M.log("No outcomes to send");return}if(!this._dsn){N&&M.log("No dsn provided, will not send outcomes");return}N&&M.log("Sending outcomes:",e);const t=Km(e,this._options.tunnel&&Ps(this._dsn));this.sendEnvelope(t)}};function s0(e,t,n,r,i){const{beforeSend:s,ignoreSpans:o,beforeSendTransaction:a}=e,c=Vo(e.beforeSendSpan)&&e.beforeSendSpan;let u=t;if(Ka(u)&&s){const f=u;return vi(N?"The `beforeSend` callback threw an error, dropping the event:":"",()=>s(f,n),()=>(r("callback_error"),null))}if(Id(u)){if(c||o){const f=Jm(u);if(o!=null&&o.length&&Ba({description:f.description,op:f.op,attributes:f.data},o))return r("ignored"),null;if(c){const l=wo(f,c);u=Rs(t,Qm(l))}if(u.spans){const l=[],d=u.spans;for(const p of d){if(o!=null&&o.length&&Ba({description:p.description,op:p.op,attributes:p.data},o)){yg(d,p);continue}c?l.push(wo(p,c)):l.push(p)}i(d.length-l.length),u.spans=l}}if(a)return vi(N?"The `beforeSendTransaction` callback threw an error, dropping the event:":"",()=>a(u,n),()=>(r("callback_error"),null))}return u}function Ka(e){return e.type===void 0}function Id(e){return e.type==="transaction"}function o0(e,t){t.debug===!0&&(N?M.enable():En(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),a0(),Ue().update(t.initialScope);const n=new e(t);return c0(n),n.init(),n}function a0(){const e=ht();e&&!r0(e)&&En(()=>{console.warn("[Sentry] `Sentry.init()` was called more than once. The new client replaces the active client, but the active client is not closed, so state from both can mix. Call `Sentry.init()` only once, or call `await Sentry.close()` before you call it again.")})}function c0(e){Ue().setClient(e)}function Pd(e,t){const n=e.indexOf("="),r=n===-1?e:e.slice(0,n),i=new URLSearchParams(`${r}=`).keys().next().value;return i!==void 0&&bd(i,t)?`${r}=${Sd}`:e}function u0(e,t){if(!(!e||t===!1))return e.split("&").map(n=>Pd(n,t)).join("&")}function f0(e,t){if(!e||t===!1)return;const n=e.indexOf("?");return`${n===-1?"":e.slice(0,n+1)}${(n===-1?e:e.slice(n+1)).split("&").map(r=>r.includes("=")?Pd(r,t):r).join("&")}`}function l0(e,t){const n=e.indexOf("#"),r=n===-1?e:e.slice(0,n),i=n===-1?void 0:e.slice(n+1),s=r.indexOf("?");let o=r;if(s!==-1){const c=u0(r.slice(s+1),t);o=`${r.slice(0,s)}${c?`?${c}`:""}`}const a=i===void 0?void 0:f0(i,t);return a?`${o}#${a}`:o}function d0(e){var t;return((t=e??ht())==null?void 0:t.getDataCollectionOptions().urlQueryParams)??!0}function Ei(e,t){return e===void 0?void 0:l0(e,d0(t))}const p0="thismessage:/";function h0(e){return"isRelative"in e}function Ad(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=t??(n?p0:void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;const i=new URL(e,r);return n?{isRelative:n,pathname:i.pathname,search:i.search,hash:i.hash}:i}catch{}}function ua(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function _0(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",i=e.includes(";base64,"),s=e.indexOf(",");let o="";if(t&&s!==-1){const a=e.slice(s+1);o=a.length>10?`${a.slice(0,10)}... [truncated]`:a}return`data:${r}${i?",base64":""}${o?`,${o}`:""}`}return e}function g0(e){let t=2166136261;for(let n=0;n>>0).toString(36)}function m0(e){var n;const t=e?Uc(e):(n=ht())==null?void 0:n.getDsn();return t?`/${g0(Ps(t))}`:void 0}function y0(e){const t=(e!=null&&e.startsWith("./")?e.slice(1):e??"").replace(/\/$/,"");return!t||t.startsWith("/")?t:`/${t}`}function S0(e){var t;"aggregates"in e?((t=e.attrs)==null?void 0:t.ip_address)===void 0&&(e.attrs={...e.attrs,ip_address:"{{auto}}"}):e.ipAddress===void 0&&(e.ipAddress="{{auto}}")}function Dd(e){return Array.from(new Set(e))}function Md(e){var r;if((r=e._metadata)!=null&&r.optionsSetByUser)return e;const{integrations:t}=e,n={...e._metadata,optionsSetByUser:Object.keys(e).filter(i=>i!=="_metadata").sort()};return Array.isArray(t)&&(n.integrationsSetByUser=Dd(t.map(i=>i.name))),{...e,_metadata:n,...typeof t=="function"&&{integrations:i=>{const s=new Set(i),o=t(i),a=Array.isArray(o)?o:[o],c=new Set,u=new Set;for(const l of a)c.add(l.name),!s.has(l)&&!l.isDefaultInstance&&u.add(l.name);const f=new Set;for(const l of s)c.has(l.name)||f.add(l.name);return n.integrationsSetByUser=Array.from(u),f.size&&(n.removedDefaultIntegrations=Array.from(f).sort()),a}}}}function Nd(e,t,n=[t],r="npm"){const i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(s=>({name:`${r}:@sentry/${s}`,version:So})),i.version=So)}const b0="sentry-release",v0=100;function Hr(e,t){const n=ht(),r=Gn();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:s=v0}=n.getOptions();if(s<=0)return;const o={timestamp:Os(),...e},a=i?vi(N?"The `beforeBreadcrumb` callback threw an error, dropping the breadcrumb:":"",()=>En(()=>i(o,t)),()=>null):o;a!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",a,t),r.addBreadcrumb(a,s))}const E0="FunctionToString",bf=new WeakMap,T0=()=>({name:E0,setupOnce(){const e=Function.prototype.toString,t=Function.prototype.call.bind(e),n=Function.prototype.call.bind(Object.prototype.hasOwnProperty);try{Function.prototype.toString=function(){let r;try{bf.has(ht())&&n(this,"__sentry_original__")&&(r=Mc(this))}catch{}return t(r??this)}}catch{}},setup(e){bf.set(e,!0)}}),w0=We(T0),x0=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/Java exception was raised during method invocation$/,/Java object is gone$/],k0="EventFilters",C0=We((e={})=>{let t;return{name:k0,setup(n){t=vf(e,n.getOptions())},processEvent(n,r,i){return t||(t=vf(e,i.getOptions())),O0(n,t)?null:n}}});function vf(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:x0],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function O0(e,t){if(e.type){if(e.type==="transaction"&&I0(e,t.ignoreTransactions))return N&&M.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. +Event: ${Rr(e)}`),!0}else{if(R0(e,t.ignoreErrors))return N&&M.warn(`Event dropped due to being matched by \`ignoreErrors\` option. +Event: ${Rr(e)}`),!0;if(M0(e))return N&&M.warn(`Event dropped due to not having an error message, error type or stacktrace. +Event: ${Rr(e)}`),!0;if(P0(e,t.denyUrls))return N&&M.warn(`Event dropped due to being matched by \`denyUrls\` option. +Event: ${Rr(e)}. +Url: ${xo(e)}`),!0;if(!A0(e,t.allowUrls))return N&&M.warn(`Event dropped due to not being matched by \`allowUrls\` option. +Event: ${Rr(e)}. +Url: ${xo(e)}`),!0}return!1}function R0(e,t){return t!=null&&t.length?Ed(e).some(n=>Cs(n,t)):!1}function I0(e,t){if(!(t!=null&&t.length))return!1;const n=e.transaction;return n?Cs(n,t):!1}function P0(e,t){if(!(t!=null&&t.length))return!1;const n=xo(e);return n?Cs(n,t):!1}function A0(e,t){if(!(t!=null&&t.length))return!0;const n=xo(e);return n?Cs(n,t):!0}function D0(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 xo(e){var t,n,r;try{const i=(r=(n=[...((t=e.exception)==null?void 0:t.values)??[]].reverse().find(s=>{var o,a,c;return((o=s.mechanism)==null?void 0:o.parent_id)===void 0&&((c=(a=s.stacktrace)==null?void 0:a.frames)==null?void 0:c.length)}))==null?void 0:n.stacktrace)==null?void 0:r.frames;return i?D0(i):null}catch{return N&&M.error(`Cannot extract url for event ${Rr(e)}`),null}}function M0(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)!=null&&n.length?!e.message&&!e.exception.values.some(r=>r.stacktrace||r.type&&r.type!=="Error"||r.value):!1}function N0(e,t,n,r,i,s){var a;if(!((a=i.exception)!=null&&a.values)||!s||!Dn(s.originalException))return;const o=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;o&&(i.exception.values=oo(e,t,r,s.originalException,n,i.exception.values,o,0))}function oo(e,t,n,r,i,s,o,a){if(s.length>=n+1)return s;let c=[...s];if(Dn(r[i])){fa(o,a,r);const u=e(t,r[i]),f=c.length;la(u,i,f,a),c=oo(e,t,n,r[i],i,[u,...c],u,f)}return Ld(r)&&r.errors.forEach((u,f)=>{if(c.length{const f=r[u];if(c.length{for(const t of e)ko.delete(t)}}const Tf=new Set;function U0(){"console"in nt&&Cl.forEach(function(e){Tf.has(e)||!(e in nt.console)||(Tf.add(e),Ze(nt.console,e,function(t){return bo[e]=t,function(...n){const r=n[0],i=bo[e],s=ko.size&&typeof r=="string"&&Cs(r,ko);s||bn("console",{args:n,level:e}),(!s||N&&M.isEnabled())&&(i==null||i.apply(nt.console,n))}}))})}function H0(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const W0="Dedupe",Y0=()=>{let e;return{name:W0,processEvent(t){if(t.type)return t;try{if(j0(t,e))return N&&M.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},V0=We(Y0);function j0(e,t){return t?!!(q0(e,t)||G0(e,t)):!1}function q0(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Fd(e,t)||!$d(e,t))}function G0(e,t){const n=wf(t),r=wf(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Fd(e,t)||!$d(e,t))}function $d(e,t){const n=Ru(e),r=Ru(t);if(!n||!r)return!n&&!r;if(r.length!==n.length)return!1;for(let i=0;i{const t=new Set(e.levels||Cl);return{name:X0,setup(n){const r=B0(({args:i,level:s})=>{ht()!==n||!t.has(s)||J0(s,i)});if(n.registerCleanup(r),e.filter){const i=z0(e.filter);n.registerCleanup(i)}}}});function J0(e,t){const n={category:"console",data:{arguments:t,logger:"console"},level:H0(e),message:xf(t)};if(e==="assert")if(t[0]===!1){const r=t.slice(1);n.message=r.length>0?`Assertion failed: ${xf(r)}`:"Assertion failed",n.data.arguments=r}else return;Hr(n,{input:t,level:e})}function xf(e){return"util"in nt&&typeof nt.util.format=="function"?nt.util.format(...e):Zh(e," ")}const Q0="ConversationId",Z0=()=>({name:Q0,setup(e){e.on("spanStart",t=>{const n=Ue().getScopeData(),r=Gn().getScopeData(),i=n.conversationId||r.conversationId;if(i){const{op:s,data:o,description:a}=vn(t);if(!(s!=null&&s.startsWith("gen_ai."))&&!o["ai.operationId"]&&!(a!=null&&a.startsWith("ai.")))return;t.setAttribute(P_,i)}})}}),ty=We(Z0),Ja=nt;function ey(){if(!("fetch"in Ja))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function Qa(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function ny(){var n;if(typeof EdgeRuntime=="string")return!0;if(!ey())return!1;if(Qa(Ja.fetch))return!0;let e=!1;const t=Ja.document;if(t&&typeof t.createElement=="function")try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),(n=r.contentWindow)!=null&&n.fetch&&(e=Qa(r.contentWindow.fetch)),t.head.removeChild(r)}catch(r){N&&M.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e}function ry(e){const t="fetch",n=qr(t,e);return Gr(t,()=>iy()),n}function iy(e){gd()&&!ny()||Ze(nt,"fetch",function(t){return new Proxy(t,{apply(n,r,i){const s=new Error,{method:o,url:a}=sy(i),c={args:i,fetchData:{method:o,url:a},startTimestamp:pe()*1e3,virtualError:s,headers:oy(i)};return bn("fetch",{...c}),Reflect.apply(n,nt,i).then(async u=>(bn("fetch",{...c,endTimestamp:pe()*1e3,response:u}),u),u=>{var l,d;bn("fetch",{...c,endTimestamp:pe()*1e3,error:u}),Dn(u)&&u.stack===void 0&&(u.stack=s.stack,ze(u,"framesToPop",1));const f=((l=ht())==null?void 0:l.getOptions().enhanceFetchErrorMessages)??"always";if(f!==!1&&Dn(u)&&u.name==="TypeError"&&(u.message==="Failed to fetch"||u.message==="Load failed"||u.message==="NetworkError when attempting to fetch resource."))try{const p=new URL(c.fetchData.url,(d=nt.location)==null?void 0:d.href).host;p&&(f==="always"?u.message=`${u.message} (${p})`:ze(u,"__sentry_fetch_url_host__",p))}catch{}throw u})}})})}function ao(e,t){return Bo(e)&&!!e[t]}function kf(e){return typeof e=="string"?e:e?ao(e,"url")?e.url:e.toString?e.toString():"":""}function sy(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:kf(n),method:ao(r,"method")?String(r.method).toUpperCase():Dl(n)&&ao(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:kf(t),method:ao(t,"method")?String(t.method).toUpperCase():"GET"}}function oy(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(Dl(t))return new Headers(t.headers)}catch{}}function Bd(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const ay=(e,t)=>{const{errorHandler:n}=e.config;e.config.errorHandler=(r,i,s)=>{var a;const o={componentName:Ki(i,!1),lifecycleHook:s,trace:i?Oh(i):""};if((t==null?void 0:t.attachProps)!==!1&&i&&((a=i.$options)!=null&&a.propsData?o.propsData=i.$options.propsData:i.$props&&(o.propsData=i.$props)),setTimeout(()=>{Td(r,{captureContext:{contexts:{vue:o}},mechanism:{handled:!!n,type:"auto.function.vue.error_handler"}})}),typeof n=="function"&&e.config.errorHandler)n.call(e,r,i,s);else throw r}},Cf=new WeakSet;function cy(){const e={$props:{}};return e.$root=e,e}function uy(e,t){if(Cf.has(e))return;const n=e,r=n.mount;if(typeof r!="function")return;const i=cy();Cf.add(e);const s=t;n.mount=function(...o){var a,c;(a=s.beforeMount)==null||a.call(i);try{return r.apply(this,o)}finally{(c=s.mounted)==null||c.call(i)}}}const Za=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ct=nt,fy=80,wr={};try{typeof Node<"u"&&(wr.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),typeof Element<"u"&&(wr.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,wr.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,wr.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,wr.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<"u"&&(wr.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function Zn(e,t,n){const r=wr[t];if(r)try{return r.call(e,n)}catch{}const i=e[t];return typeof i=="function"?i.call(e,n):i}function zd(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let s=0,o=0;const a=" > ",c=3;let u;const f=Array.isArray(t)?t:t.keyAttrs,l=Array.isArray(t)?void 0:t.maskAttributeFn,d=!Array.isArray(t)&&t.maxStringLength||fy;for(;n&&s++1&&o+i.length*c+u.length>=d));)i.push(u),o+=u.length,n=Zn(n,"parentNode");return i.reverse().join(a)}catch{return""}}function ly(e,t,n){const r=[],i=Zn(e,"tagName");if(!i)return"";if(typeof HTMLElement<"u"&&e instanceof HTMLElement){const o=Zn(e,"dataset");if(o){if(o.sentryComponent)return n?n("data-sentry-component",o.sentryComponent,e):o.sentryComponent;if(o.sentryElement)return n?n("data-sentry-element",o.sentryElement,e):o.sentryElement}}r.push(i.toLowerCase());const s=t!=null&&t.length?t.filter(o=>Zn(e,"getAttribute",o)).map(o=>[o,Zn(e,"getAttribute",o)]):null;if(s!=null&&s.length)s.forEach(([o,a])=>{r.push(`[${o}="${n&&a?n(o,a,e):a}"]`)});else{const o=Zn(e,"id");o&&r.push(`#${n?n("id",o,e):o}`);const a=Zn(e,"className");if(a&&Yn(a)){const c=(n?n("class",a,e):a).split(/\s+/);for(const u of c)r.push(`.${u}`)}}for(const o of["aria-label","type","name","title","alt"]){const a=Zn(e,"getAttribute",o);a&&r.push(`[${o}="${n?n(o,a,e):a}"]`)}return r.join("")}function dy(e,t,n){Ct.document&&Ct.addEventListener(e,t,n)}function py(e,t,n){Ct.document&&Ct.removeEventListener(e,t,n)}const hy=e=>{var n;const t=Ct.requestIdleCallback||Ct.setTimeout;if(((n=Ct.document)==null?void 0:n.visibilityState)==="hidden")e();else{let r=!1;const i=()=>{r||(e(),r=!0)};dy("visibilitychange",i,{once:!0,capture:!0}),t(()=>{i(),py("visibilitychange",i,{capture:!0})})}};function _y(e,t=5){if(!nt.HTMLElement)return null;let n=e;for(let r=0;r{const t=my(Ns());return t&&e(t)}}}function my(e){return e?Ad(e,Ns()||void 0):void 0}const yy=1e3;let Of,tc,ec;function Rf(e){return typeof e=="boolean"?e:!!(e!=null&&e.capture)}function Sy(e){const t="dom";qr(t,e),Gr(t,by)}function by(){if(!Ct.document)return;const e=bn.bind(null,"dom"),t=If(e,!0);Ct.document.addEventListener("click",t,!1),Ct.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{var i,s;const r=(i=Ct[n])==null?void 0:i.prototype;(s=r==null?void 0:r.hasOwnProperty)!=null&&s.call(r,"addEventListener")&&(Ze(r,"addEventListener",function(o){return function(a,c,u){if((a==="click"||a=="keypress")&&c)try{const f=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},l=f[a]=f[a]||{captureListeners:new WeakSet,bubbleListeners:new WeakSet,listenerCount:0},d=Rf(u);if(!l.handler){const _=If(e);l.handler=_,l.capture=d,o.call(this,a,_,l.capture)}const p=l[d?"captureListeners":"bubbleListeners"];p.has(c)||(typeof u=="object"&&(u!=null&&u.once||u!=null&&u.signal)?l.sticky=!0:(p.add(c),l.listenerCount++))}catch{}return o.call(this,a,c,u)}}),Ze(r,"removeEventListener",function(o){return function(a,c,u){if((a==="click"||a=="keypress")&&c)try{const f=this.__sentry_instrumentation_handlers__||{},l=f[a];l!=null&&l[Rf(u)?"captureListeners":"bubbleListeners"].delete(c)&&(!--l.listenerCount&&!l.sticky&&(o.call(this,a,l.handler,l.capture),l.handler=void 0,delete f[a]),Object.keys(f).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return o.call(this,a,c,u)}}))})}function vy(e){if(e.type!==tc)return!1;try{if(!e.target||e.target._sentryId!==ec)return!1}catch{}return!0}function Ey(e,t){return e!=="keypress"?!1:t!=null&&t.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function If(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Ty(n);if(Ey(n.type,r))return;ze(n,"_sentryCaptured",!0),r&&!r._sentryId&&ze(r,"_sentryId",dn());const i=n.type==="keypress"?"input":n.type;vy(n)||(e({event:n,name:i,global:t}),tc=n.type,ec=r?r._sentryId:void 0),clearTimeout(Of),Of=Ct.setTimeout(()=>{ec=void 0,tc=void 0},yy)}}function Ty(e){try{return e.target}catch{return null}}let Hs;function wy(){return"history"in Ct&&!!Ct.history}function Yd(e){const t="history";qr(t,e),Gr(t,xy)}function xy(){if(Ct.addEventListener("popstate",()=>{const t=Ct.location.href,n=Hs;Hs=t,n!==t&&bn("history",{from:n,to:t})}),!wy())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const i=Hs,s=ky(String(r));if(Hs=s,i===s)return t.apply(this,n);bn("history",{from:i,to:s})}return t.apply(this,n)}}Ze(Ct.history,"pushState",e),Ze(Ct.history,"replaceState",e)}function ky(e){try{return new URL(e,Ct.location.origin).toString()}catch{return e}}const co={};function Cy(e){const t=co[e];if(t)return t;let n=Ct[e];if(Qa(n))return co[e]=n.bind(Ct);const r=Ct.document;if(r&&typeof r.createElement=="function")try{const i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);const s=i.contentWindow;s!=null&&s[e]&&(n=s[e]),r.head.removeChild(i)}catch(i){Za&&M.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return n&&(co[e]=n.bind(Ct))}function Oy(e){co[e]=void 0}const Ui="__sentry_xhr_v3__";function Ry(e){const t="xhr";qr(t,e),Gr(t,Iy)}function Iy(){if(!Ct.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){let i=new Error;const s=pe()*1e3,o=Yn(r[0])?r[0].toUpperCase():void 0,a=Py(r[1]);if(!o||a===void 0)return t.apply(n,r);n[Ui]={method:o,url:a,request_headers:{}},o==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const c=()=>{const u=n[Ui];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const f={endTimestamp:pe()*1e3,startTimestamp:s,xhr:n,virtualError:i};bn("xhr",f),i=void 0,n.removeEventListener("readystatechange",c)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,f,l){return c(),u.apply(f,l)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,f,l){const[d,p]=l,_=f[Ui];return _&&Yn(d)&&Yn(p)&&(_.request_headers[d.toLowerCase()]=p),u.apply(f,l)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const i=n[Ui];if(!i)return t.apply(n,r);r[0]!==void 0&&(i.body=r[0]);const s={startTimestamp:pe()*1e3,xhr:n};return bn("xhr",s),t.apply(n,r)}})}function Py(e){if(Yn(e))return e;try{return e.toString()}catch{}}function Ay(e){if(typeof Element>"u")return!1;try{return e instanceof Element}catch{return!1}}const pt=nt;let nc=0;const Pf=[];function Vd(e){if(nc>0)return!0;const t=e?Pf.findIndex(n=>Dy(n,e)):-1;return t===-1?!1:(Pf.splice(t,1),!0)}function Dy(e,t){return e.msg===t.msg&&e.url===t.url&&e.line===t.line&&e.column===t.column}function My(){nc++,setTimeout(()=>{nc--})}function Ti(e,t={}){function n(i){return typeof i=="function"}if(!n(e))return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){const i=e.__sentry_wrapped__;return typeof i=="function"?i:e}if(Mc(e))return e}catch{return e}const r=function(...i){nt._sentryWrappedDepth=(nt._sentryWrappedDepth||0)+1;try{const s=i.map(o=>Ti(o,t));return e.apply(this,s)}catch(s){throw My(),Bc(o=>{o.addEventProcessor(a=>(t.mechanism&&(Aa(a,void 0),ui(a,t.mechanism)),a.extra={...a.extra,arguments:i},a)),Td(s)}),s}finally{nt._sentryWrappedDepth=(nt._sentryWrappedDepth||0)-1}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}Ml(r,e),ze(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function Af(e){const t=Ns(),{referrer:n}=pt.document||{},{userAgent:r}=pt.navigator||{};return{url:t,headers:{...n&&{Referer:Ei(n,e)},...r&&{"User-Agent":r}}}}function Qc(e,t){const n=jo(e,t),r={type:By(t),value:zy(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Ny(e,t,n,r){var c;const i=(c=ht())==null?void 0:c.getOptions().normalizeDepth,s=Vy(t),o={__serialized__:Fl(t,i)};if(s)return{exception:{values:[Qc(e,s)]},extra:o};const a={exception:{values:[{type:zo(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Wy(t,{isUnhandledRejection:r})}]},extra:o};if(n){const u=jo(e,n);u.length&&(a.exception.values[0].stacktrace={frames:u})}return a}function da(e,t){return{exception:{values:[Qc(e,t)]}}}function jo(e,t){const n=t.stacktrace||t.stack||"",r=$y(t),i=Fy(t);try{return e(n,r,i)}catch{}return[]}const Ly=/Minified React error #\d+;/i;function $y(e){return e&&Ly.test(e.message)?1:0}function Fy(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function jd(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function By(e){const t=e==null?void 0:e.name;return!t&&jd(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function zy(e){const t=e==null?void 0:e.message;return jd(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?Ef(t.error):Ef(e):"No error message"}function Uy(e,t,n,r){const i=Zc(e,t,(n==null?void 0:n.syntheticException)||void 0,r);return ui(i),i.level="error",n!=null&&n.event_id&&(i.event_id=n.event_id),Ms(i)}function Hy(e,t,n="info",r,i){const s=rc(e,t,(r==null?void 0:r.syntheticException)||void 0,i);return s.level=n,r!=null&&r.event_id&&(s.event_id=r.event_id),Ms(s)}function Zc(e,t,n,r,i){var a,c;let s;if(Al(t)&&t.error)return da(e,t.error);if(Pu(t)||Uh(t)){const u=t;if("stack"in t){s=da(e,t);const f=(c=(a=s.exception)==null?void 0:a.values)==null?void 0:c[0];if(r&&n&&f&&!f.stacktrace){const l=jo(e,n);l.length&&(f.stacktrace={frames:l},ui(s,{synthetic:!0}))}}else{const f=u.name||(Pu(u)?"DOMError":"DOMException"),l=u.message?`${f}: ${u.message}`:f;s=rc(e,l,n,r),Aa(s,l)}return s}if(Dn(t))return da(e,t);if(xs(t)||zo(t))return s=Ny(e,t,n,i),ui(s,{synthetic:!0}),s;const o=String(t);return s=rc(e,o,n,r),Aa(s,o),ui(s,{synthetic:!0}),s}function rc(e,t,n,r){const i={};if(r&&n){const s=jo(e,n);s.length&&(i.exception={values:[{value:t,stacktrace:{frames:s}}]}),ui(i,{synthetic:!0})}if(Ac(t)){const{__sentry_template_string__:s,__sentry_template_values__:o}=t;return i.logentry={message:s,params:o},i}return i.message=t,i}function Wy(e,{isUnhandledRejection:t}){const n=Wh(e),r=t?"promise rejection":"exception";return Al(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:zo(e)?`Event \`${Yy(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Yy(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Vy(e){return Object.values(e).find(Dn)}const Ls=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function qd(e){const{tunnel:t,dsn:n,transportOptions:r}=e;if(!t)return{tunnel:t,transportOptions:r};if(typeof t=="string")return{tunnel:t,transportOptions:jy(t)?Df(r):r};const i=t===!0?{}:t,s=n&&Uc(n),o=i.path??(s&&m0(s));if(!o)return{tunnel:void 0,transportOptions:r};const a=`${y0(i.basePath)}${o}${i.trailingSlash?"/":""}`;return Ls&&M.log(`Tunneling events to "${a}"`),{tunnel:a,transportOptions:Df(r)}}function Df(e){return{...e,headers:{"Content-Type":"application/x-sentry-envelope",...e==null?void 0:e.headers}}}function jy(e){var n,r;const t=Ad(e,(n=pt.location)==null?void 0:n.href);return t?h0(t)||t.origin===((r=pt.location)==null?void 0:r.origin):!1}var qy=class extends i0{constructor(e){var a;const t=Gy({...e,...qd(e)}),n=pt.SENTRY_SDK_SOURCE||Hg();Nd(t,"browser",["browser"],n),super(t),t.routeProvider&&Hd(t.routeProvider,this),this._unhandledSessionStatus="unhandled";const{userInfo:r}=this.getDataCollectionOptions();(a=t._metadata)!=null&&a.sdk&&(t._metadata.sdk.settings={infer_ip:r?"auto":"never",...t._metadata.sdk.settings});const{sendClientReports:i}=this._options,s=()=>{pe()},o=[[pt.document,"visibilitychange",()=>{s(),pt.document.visibilityState==="hidden"&&(i&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}],[pt.document,"freeze",s],[pt.document,"resume",s],[pt,"pagehide",s],[pt,"pageshow",s]];o.forEach(([c,u,f])=>{var l;return(l=c==null?void 0:c.addEventListener)==null?void 0:l.call(c,u,f)}),this.on("close",()=>o.forEach(([c,u,f])=>{var l;return(l=c==null?void 0:c.removeEventListener)==null?void 0:l.call(c,u,f)})),r&&this.on("beforeSendSession",S0)}eventFromException(e,t){return Uy(this._options.stackParser,e,t,this._options.attachStacktrace)}eventFromMessage(e,t="info",n){return Hy(this._options.stackParser,e,t,n,this._options.attachStacktrace)}_prepareEvent(e,t,n,r){return e.platform=e.platform||"javascript",super._prepareEvent(e,t,n,r)}};function Gy(e){return{sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e,release:e.release??Xy()}}function Xy(){var e;return typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:Ky()??((e=pt.SENTRY_RELEASE)==null?void 0:e.id)}function Ky(){var e,t,n;return((n=(t=(e=pt.document)==null?void 0:e.querySelector)==null?void 0:t.call(e,`meta[name="${b0}"]`))==null?void 0:n.getAttribute("content"))||void 0}const Jy=40;function Qy(e,t=Cy("fetch")){let n=0,r=0;async function i(s){const o=s.body.length;n+=o,r++;const a={body:s.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const c=await t(e.url,a);return{statusCode:c.status,headers:{"x-sentry-rate-limits":c.headers.get("X-Sentry-Rate-Limits"),"retry-after":c.headers.get("Retry-After")}}}catch(c){throw Oy("fetch"),c}finally{n-=o,r--}}return Xm(e,i,Jc(e.bufferSize||Jy))}const Zy=30,tS=50;function ic(e,t,n,r){const i={filename:e,function:t===""?gi:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const eS=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,nS=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?![^(]*\) )(?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,rS=/\((\S*)(?::(\d+))(?::(\d+))\)/,iS=/at (.+?) ?\(data:(.+?),/,sS=e=>{var i;const t=e.match(iS);if(t)return{filename:``,function:t[1]};const n=eS.exec(e);if(n){const[,s,o,a]=n;return ic(s,gi,+o,+a)}const r=nS.exec(e);if(r){if(((i=r[2])==null?void 0:i.indexOf("eval"))===0){const a=rS.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}const[s,o]=Gd(r[1]||gi,r[2]);return ic(o,s,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},oS=[Zy,sS],aS=/^\s*(.*?)(?:\(([^()]*)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,cS=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,uS=e=>{const t=aS.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const i=cS.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let n=t[3],r=t[1]||gi;return[r,n]=Gd(r,n),ic(n,r,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},fS=[tS,uS],lS=[oS,fS],dS=Il(...lS),Gd=(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]:gi,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},Ws=1024,pS="Breadcrumbs",hS=(e={})=>{const t={dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:pS,setup(n){t.dom&&Sy(mS(n,t.dom)),t.xhr&&Ry(yS(n)),t.fetch&&ry(SS(n)),t.history&&Yd(bS(n)),t.sentry&&n.on("beforeSendEvent",gS(n))}}},_S=We(hS);function gS(e){return function(n){ht()===e&&Hr({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:Rr(n)},{event:n})}}function mS(e,t){return function(r){if(ht()!==e)return;let i,s,o=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Ws&&(Ls&&M.warn(`\`dom.maxStringLength\` cannot exceed ${Ws}, but a value of ${a} was configured. Sentry will use ${Ws} instead.`),a=Ws),typeof o=="string"&&(o=[o]);try{const u=r.event,f=vS(u)?u.target:u;i=zd(f,{keyAttrs:o,maxStringLength:a}),s=_y(f)}catch{i=""}if(i.length===0)return;const c={category:`ui.${r.name}`,message:i};s&&(c.data={"ui.component_name":s}),Hr(c,{event:r.event,name:r.name,global:r.global})}}function yS(e){return function(n){if(ht()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,s=n.xhr[Ui];if(!r||!i||!s)return;const{method:o,url:a,status_code:c,body:u}=s,f={method:o,url:sc(a,e),status_code:c},l={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:i},d={category:"xhr",data:f,type:"http",level:Bd(c)};e.emit("beforeOutgoingRequestBreadcrumb",d,l),Hr(d,l)}}function SS(e){return function(n){if(ht()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i},o={category:"fetch",data:{...n.fetchData,url:sc(n.fetchData.url,e)},level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",o,s),Hr(o,s)}else{const s=n.response,o={...n.fetchData,url:sc(n.fetchData.url,e),status_code:s==null?void 0:s.status},a={input:n.args,response:s,startTimestamp:r,endTimestamp:i},c={category:"fetch",data:o,type:"http",level:Bd(o.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,a),Hr(c,a)}}}function bS(e){return function(n){if(ht()!==e)return;let r=n.from,i=n.to;const s=ua(pt.location.href);let o=r?ua(r):void 0;const a=ua(i);o!=null&&o.path||(o=s),s.protocol===a.protocol&&s.host===a.host&&(i=a.relative),s.protocol===o.protocol&&s.host===o.host&&(r=o.relative),Hr({category:"navigation",data:{from:Ei(r),to:Ei(i)}})}}function sc(e,t){var r;const n=e===""?(r=pt.location)==null?void 0:r.href:void 0;return Ei(n?n.split("#")[0]??"":e,t)}function vS(e){return!!e&&!!e.target}const ES="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDBRequest,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),TS="BrowserApiErrors",wS=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:TS,setupOnce(){t.setTimeout&&Ze(pt,"setTimeout",Mf),t.setInterval&&Ze(pt,"setInterval",Mf),t.requestAnimationFrame&&Ze(pt,"requestAnimationFrame",kS),t.XMLHttpRequest&&"XMLHttpRequest"in pt&&Ze(XMLHttpRequest.prototype,"send",CS);const n=t.eventTarget;n&&(Array.isArray(n)?n:ES).forEach(r=>OS(r,t))}}},xS=We(wS);function Mf(e){return function(...t){const n=t[0];return t[0]=Ti(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${lr(e)}`}}),e.apply(this,t)}}function kS(e){return function(t){return e.apply(this,[Ti(t,{mechanism:{data:{handler:lr(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function CS(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(r=>{r in n&&typeof n[r]=="function"&&Ze(n,r,function(i){const s={mechanism:{data:{handler:lr(i)},handled:!1,type:`auto.browser.browserapierrors.xhr.${r}`}},o=Mc(i);return o&&(s.mechanism.data.handler=lr(o)),Ti(i,s)})}),e.apply(this,t)}}function OS(e,t){var r,i;const n=(r=pt[e])==null?void 0:r.prototype;(i=n==null?void 0:n.hasOwnProperty)!=null&&i.call(n,"addEventListener")&&(Ze(n,"addEventListener",function(s){return function(o,a,c){try{RS(a)&&(a.handleEvent=Ti(a.handleEvent,{mechanism:{data:{handler:lr(a),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&IS(this,o,a),s.apply(this,[o,Ti(a,{mechanism:{data:{handler:lr(a),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),c])}}),Ze(n,"removeEventListener",function(s){return function(o,a,c){try{if(Object.prototype.hasOwnProperty.call(a,"__sentry_wrapped__")){const u=a.__sentry_wrapped__;u&&s.call(this,o,u,c)}}catch{}return s.call(this,o,a,c)}}))}function RS(e){return typeof e.handleEvent=="function"}function IS(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const PS=We((e={})=>{const t=e.lifecycle??"page";return{name:"BrowserSession",setupOnce(){if(typeof pt.document>"u"){Ls&&M.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}pf({ignoreDuration:!0});let n=!1;hy(()=>{n||(ca(),n=!0)});const r=Gn();let i=r.getUser();r.addScopeListener(s=>{const o=s.getUser();((i==null?void 0:i.id)!==(o==null?void 0:o.id)||(i==null?void 0:i.ip_address)!==(o==null?void 0:o.ip_address))&&(i=o,n&&ca())}),t==="route"&&Yd(({from:s,to:o})=>{s!==o&&(pf({ignoreDuration:!0}),ca(),n=!0)})}}}),AS="CultureContext",DS=()=>({name:AS,preprocessEvent(e){var n;const t=Nf();t&&(e.contexts={...e.contexts,culture:{...t,...(n=e.contexts)==null?void 0:n.culture}})},processSegmentSpan(e){const t=Nf();t&&As(e,{[Vl]:t.locale,[jl]:t.timezone,[I_]:t.calendar})}}),MS=We(DS);function Nf(){try{const e=pt.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}const NS="GlobalHandlers",LS=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:NS,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(FS(n),Lf("onerror")),t.onunhandledrejection&&(BS(n),Lf("onunhandledrejection"))}}},$S=We(LS);function FS(e){$h(t=>{const{stackParser:n,attachStacktrace:r}=Xd();if(ht()!==e||Vd(t))return;const{msg:i,url:s,line:o,column:a,error:c}=t,u=HS(Zc(n,c||i,void 0,r,!1),s,o,a);u.level="error",wd(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function BS(e){Bh(t=>{const{stackParser:n,attachStacktrace:r}=Xd();if(ht()!==e||Vd())return;const i=zS(t),s=Xr(i)?US(i):Zc(n,i,void 0,r,!0);s.level="error",wd(s,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function zS(e){if(Xr(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch{}return e}function US(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function HS(e,t,n,r){const i=e.exception=e.exception||{},s=i.values=i.values||[],o=s[0]=s[0]||{},a=o.stacktrace=o.stacktrace||{},c=a.frames=a.frames||[];return c.length===0&&c.push({colno:r,lineno:n,filename:WS(t)??Ns(),function:gi,in_app:!0}),e}function Lf(e){Ls&&M.log(`Global Handler attached: ${e}`)}function Xd(){var e;return((e=ht())==null?void 0:e.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function WS(e){if(!(!Yn(e)||e.length===0))return e.startsWith("data:")?`<${_0(e,!1)}>`:e}const YS=We(()=>({name:"HttpContext",preprocessEvent(e,t,n){var c;if(!pt.navigator&&!pt.location&&!pt.document)return;const{url:r,headers:i}=Af(n),s=n.getDataCollectionOptions().httpHeaders.request,o=Object.entries(((c=e.request)==null?void 0:c.headers)??{}).filter(([u])=>!(u in i)),a={...Va(i,s),...Object.fromEntries(o)};e.request={url:Ei(r,n),...e.request,...Object.keys(a).length>0?{headers:a}:{headers:void 0}}},processSpan(e,t){var a;if(!pt.navigator&&!pt.location&&!pt.document)return;const n=Af(t),r=Va(n.headers,t.getDataCollectionOptions().httpHeaders.request),i=r.Referer,{hostname:s,protocol:o}=pt.location||{};As(e,{[G_]:r["User-Agent"],[$_]:o==="file:"||s==="localhost"||s==="127.0.0.1"||s==="[::1]"||!!(s!=null&&s.endsWith(".localhost")),...e.is_segment&&{[q_]:((a=e.attributes)==null?void 0:a[dr])!=="http.client"?Ei(n.url):void 0,[`${A_}.referer`]:i?[i]:void 0}})}})),VS="cause",jS=5,qS="LinkedErrors",GS=(e={})=>{const t=e.limit||jS,n=e.key||VS;return{name:qS,preprocessEvent(r,i,s){const o=s.getOptions();N0(Qc,o.stackParser,n,t,r,i)}}},XS=We(GS),KS=/^HTML(\w*)Element$/;function Kd(e){if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(Ay(e)){const t=JS(e);if(KS.test(t))return`[HTMLElement: ${zd(e)}]`}}function JS(e){const t=Object.getPrototypeOf(e);return t!=null&&t.constructor?t.constructor.name:"null prototype"}function QS(){return ZS()?(Ls&&En(()=>{console.error("[Sentry] You cannot use Sentry.init() in a browser extension, see: https://docs.sentry.io/platforms/javascript/best-practices/browser-extensions/")}),!0):!1}function ZS(){var n,r;if(typeof pt.window>"u")return!1;const e=pt;if(e.nw||!((r=(n=e.chrome||e.browser)==null?void 0:n.runtime)!=null&&r.id))return!1;const t=Ns();return!(pt===pt.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(t))}function Jd(e){return[C0(),w0(),ty(),xS(),_S(),K0(),$S(),XS(),V0(),YS(),MS(),PS()]}function tb(e={}){const t=Md(e),n=!t.skipBrowserExtensionCheck&&QS();let r=t.defaultIntegrations==null?Jd():t.defaultIntegrations;const i=vg({integrations:t.integrations,defaultIntegrations:r}),s={...t,...qd(t),enabled:n?!1:t.enabled,stackParser:Nh(t.stackParser||dS),integrations:i,transport:t.transport||Qy};return Ll(Kd),o0(qy,s)}function eb(e){return gy(t=>{var s,o;const n=e(),r=(s=n==null?void 0:n.resolve)==null?void 0:s.call(n,ib(n,t));if(!r)return;const i="matched"in r?r:r.route;return(o=i.matched[i.matched.length-1])==null?void 0:o.path})}function nb(e){var t,n,r;return(r=(n=(t=Array.isArray(e)?e[0]:e)==null?void 0:t.config)==null?void 0:n.globalProperties)==null?void 0:r.$router}function rb(e){let t;return e.mixin({beforeCreate(){t=t||this.$options.router}}),()=>t}function ib(e,{pathname:t,search:n,hash:r}){var o,a,c;const i=((a=(o=e.options)==null?void 0:o.history)==null?void 0:a.base)??((c=e.history)==null?void 0:c.base)??"",s=i.indexOf("#");if(s>-1||e.mode==="hash"){const u=s>-1?i.slice(s):"#",f=r.slice(r.startsWith(u)?u.length:1);return f.startsWith("/")?f:`/${f}`}return`${i&&t.toLowerCase().startsWith(i.toLowerCase())?t.slice(i.length)||"/":t}${n}${r}`}const sb={activate:sa,create:sa,mount:sa,update:mm,unmount:af,destroy:af},ob={activate:oa,create:oa,mount:oa,update:ym,unmount:cf,destroy:cf},ab={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function pa(e,t,n){const r=e.$root;r.$_sentryRootComponentSpanActivity=t,r.$_sentryRootComponentSpanTimer||Qd(r,t,n)}function Qd(e,t,n){e.$_sentryRootComponentSpanTimer=setTimeout(()=>{e.$_sentryRootComponentSpanTimer=void 0;const r=e.$_sentryRootComponentSpanActivity??t;if(r>t){Qd(e,r,(r-t)*1e3);return}e.$_sentryRootComponentSpan&&(e.$_sentryRootComponentSpan.end(r),e.$_sentryRootComponentSpan=void 0)},n)}function cb(e,t){function n(r){return r.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,"$1")}return e.some(r=>n(t)===n(r))}const ub=(e={})=>{const t=Dd((e.hooks||[]).concat(xl)),n={},r=e.timeout||2e3;for(const i of t){const s=ab[i];if(!s){kl&&M.warn(`Unknown hook: ${i}`);continue}for(const o of s)n[o]=function(){var h,g;const a=this.$root===this,c=ht(),u=!!c&&Jr(c),f=Ki(this,!1),l=((h=f.match(/^<([^\s]*)>(?: at [^\s]*)?$/))==null?void 0:h[1])??f,d=l==="Anonymous"?void 0:l;if(a){const v="Application Render";this.$_sentryRootComponentSpan=this.$_sentryRootComponentSpan||of({name:u?d||Sm:v,attributes:{[dr]:gm,[ds]:"auto.ui.vue",[Hu]:d||void 0,...u&&{[Uu]:v}},onlyIfParent:!0}),pa(this,pe(),r)}if(!(a||(Array.isArray(e.trackComponents)?cb(e.trackComponents,f):e.trackComponents))){pa(this,pe(),r);return}this.$_sentryComponentSpans=this.$_sentryComponentSpans||{};const p=o===s[0],_=((g=this.$root)==null?void 0:g.$_sentryRootComponentSpan)||Yc();if(p){if(_){const v=this.$_sentryComponentSpans[i];v&&v.end();const T=`Vue ${f}`;this.$_sentryComponentSpans[i]=of({name:u?d||ob[i]:T,attributes:{[dr]:sb[i],[ds]:"auto.ui.vue",[Hu]:d||void 0,...u&&{[Uu]:T}},onlyIfParent:!0})}}else{const v=this.$_sentryComponentSpans[i];if(!v)return;v.end(),pa(this,pe(),r)}}}return n},fb={Vue:nt.Vue,attachProps:!0,attachErrorHandler:!0,tracingOptions:{hooks:xl,timeout:2e3,trackComponents:!1}},lb="Vue",db=We((e={})=>({name:lb,setup(t){const n={...fb,...t.getOptions(),...e};if(!n.Vue&&!n.app){En(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured. Update your `Sentry.init` call with an appropriate config option: `app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}if(!Wd(t)){const{app:r,Vue:i}=n,s=r?()=>nb(r):rb(i);Hd(eb(s),t)}n.app?(Array.isArray(n.app)?n.app:[n.app]).forEach(r=>$f(r,n)):n.Vue&&$f(n.Vue,n)}})),$f=(e,t)=>{var n;if(kl&&((n=e._instance)==null?void 0:n.isMounted)===!0&&En(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),t.attachErrorHandler&&ay(e,t),_s(t)){const r=ub(t.tracingOptions);e.mixin(r),pb(e,r)||(uy(e,r),hb(e,t.tracingOptions))}};function pb(e,t){var r;const n=(r=e._context)==null?void 0:r.mixins;return!n||n.includes(t)}function hb(e,t){const n=t==null?void 0:t.trackComponents;if(!(n===!0||Array.isArray(n)&&n.length>0))return;const r="$nuxt"in e?"Set `vue: { optionsApi: true }` in your `nuxt.config.ts`.":"Set `__VUE_OPTIONS_API__` to `true` in the `define` config of your bundler.";En(()=>{console.warn(`[@sentry/vue]: The Vue Options API is disabled (\`__VUE_OPTIONS_API__: false\`). Sentry still records the \`Application Render\` and root component mount spans, but component tracking (\`trackComponents\`) needs the Options API. ${r}`)})}function _b(e){return!!(typeof e=="object"&&e&&(e.__isVue||e._isVue))}function gb(e){return!!(typeof e=="object"&&(e!=null&&e.__v_isVNode))}function mb(e){return _b(e)?"[VueViewModel]":gb(e)?"[VueVNode]":Kd(e)}function yb(e={}){const t={defaultIntegrations:[...Jd(),db()],...Md(e)};Nd(t,"vue");const n=tb(t);return Ll(mb),n}function zn(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Zd(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,e.__proto__=t}/*! * GSAP 3.14.1 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com -*/var Ht={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},Pi={duration:.5,overwrite:!1,delay:0},Hs,ot,Se,Zt=1e8,ve=1/Zt,xs=Math.PI*2,El=xs/4,Rl=0,oa=Math.sqrt,Dl=Math.cos,Al=Math.sin,tt=function(e){return typeof e=="string"},Ae=function(e){return typeof e=="function"},Cr=function(e){return typeof e=="number"},Ws=function(e){return typeof e>"u"},mr=function(e){return typeof e=="object"},Mt=function(e){return e!==!1},Us=function(){return typeof window<"u"},vn=function(e){return Ae(e)||tt(e)},aa=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},gt=Array.isArray,Fl=/random\([^)]+\)/g,zl=/,\s*/g,yo=/(?:-?\.?\d|\.)+/gi,la=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,mi=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ss=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,ua=/[+-]=-?[.\d]+/,Ll=/[^,'"\[\]\s]+/gi,Il=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Oe,fr,bs,qs,Wt={},Vn={},fa,ca=function(e){return(Vn=Mi(e,Wt))&&Dt},Gs=function(e,r){return console.warn("Invalid property",e,"set to",r,"Missing plugin? gsap.registerPlugin()")},an=function(e,r){return!r&&console.warn(e)},ha=function(e,r){return e&&(Wt[e]=r)&&Vn&&(Vn[e]=r)||Wt},ln=function(){return 0},Nl={suppressEvents:!0,isStart:!0,kill:!1},Fn={suppressEvents:!0,kill:!1},Bl={suppressEvents:!0},Ks={},Ir=[],ws={},da,Nt={},os={},vo=30,zn=[],Qs="",Zs=function(e){var r=e[0],t,i;if(mr(r)||Ae(r)||(e=[e]),!(t=(r._gsap||{}).harness)){for(i=zn.length;i--&&!zn[i].targetTest(r););t=zn[i]}for(i=e.length;i--;)e[i]&&(e[i]._gsap||(e[i]._gsap=new Ia(e[i],t)))||e.splice(i,1);return e},ei=function(e){return e._gsap||Zs(jt(e))[0]._gsap},_a=function(e,r,t){return(t=e[r])&&Ae(t)?e[r]():Ws(t)&&e.getAttribute&&e.getAttribute(r)||t},Ot=function(e,r){return(e=e.split(",")).forEach(r)||e},Le=function(e){return Math.round(e*1e5)/1e5||0},Me=function(e){return Math.round(e*1e7)/1e7||0},bi=function(e,r){var t=r.charAt(0),i=parseFloat(r.substr(2));return e=parseFloat(e),t==="+"?e+i:t==="-"?e-i:t==="*"?e*i:e/i},Yl=function(e,r){for(var t=r.length,i=0;e.indexOf(r[i])<0&&++io;)s=s._prev;return s?(r._next=s._next,s._next=r):(r._next=e[t],e[t]=r),r._next?r._next._prev=r:e[i]=r,r._prev=s,r.parent=r._dp=e,r},es=function(e,r,t,i){t===void 0&&(t="_first"),i===void 0&&(i="_last");var n=r._prev,s=r._next;n?n._next=s:e[t]===r&&(e[t]=s),s?s._prev=n:e[i]===r&&(e[i]=n),r._next=r._prev=r.parent=null},Yr=function(e,r){e.parent&&(!r||e.parent.autoRemoveChildren)&&e.parent.remove&&e.parent.remove(e),e._act=0},ti=function(e,r){if(e&&(!r||r._end>e._dur||r._start<0))for(var t=e;t;)t._dirty=1,t=t.parent;return e},Vl=function(e){for(var r=e.parent;r&&r.parent;)r._dirty=1,r.totalDuration(),r=r.parent;return e},Ts=function(e,r,t,i){return e._startAt&&(ot?e._startAt.revert(Fn):e.vars.immediateRender&&!e.vars.autoRevert||e._startAt.render(r,!0,i))},Hl=function a(e){return!e||e._ts&&a(e.parent)},bo=function(e){return e._repeat?Oi(e._tTime,e=e.duration()+e._rDelay)*e:0},Oi=function(e,r){var t=Math.floor(e=Me(e/r));return e&&t===e?t-1:t},Un=function(e,r){return(e-r._start)*r._ts+(r._ts>=0?0:r._dirty?r.totalDuration():r._tDur)},ts=function(e){return e._end=Me(e._start+(e._tDur/Math.abs(e._ts||e._rts||ve)||0))},rs=function(e,r){var t=e._dp;return t&&t.smoothChildTiming&&e._ts&&(e._start=Me(t._time-(e._ts>0?r/e._ts:((e._dirty?e.totalDuration():e._tDur)-r)/-e._ts)),ts(e),t._dirty||ti(t,e)),e},va=function(e,r){var t;if((r._time||!r._dur&&r._initted||r._startve)&&r.render(t,!0)),ti(e,r)._dp&&e._initted&&e._time>=e._dur&&e._ts){if(e._dur=0&&t.totalTime(t._tTime),t=t._dp;e._zTime=-ve}},dr=function(e,r,t,i){return r.parent&&Yr(r),r._start=Me((Cr(t)?t:t||e!==Oe?Gt(e,t,r):e._time)+r._delay),r._end=Me(r._start+(r.totalDuration()/Math.abs(r.timeScale())||0)),ya(e,r,"_first","_last",e._sort?"_start":0),Ss(r)||(e._recent=r),i||va(e,r),e._ts<0&&rs(e,e._tTime),e},xa=function(e,r){return(Wt.ScrollTrigger||Gs("scrollTrigger",r))&&Wt.ScrollTrigger.create(r,e)},ba=function(e,r,t,i,n){if(eo(e,r,n),!e._initted)return 1;if(!t&&e._pt&&!ot&&(e._dur&&e.vars.lazy!==!1||!e._dur&&e.vars.lazy)&&da!==Yt.frame)return Ir.push(e),e._lazy=[n,i],1},Wl=function a(e){var r=e.parent;return r&&r._ts&&r._initted&&!r._lock&&(r.rawTime()<0||a(r))},Ss=function(e){var r=e.data;return r==="isFromStart"||r==="isStart"},Ul=function(e,r,t,i){var n=e.ratio,s=r<0||!r&&(!e._start&&Wl(e)&&!(!e._initted&&Ss(e))||(e._ts<0||e._dp._ts<0)&&!Ss(e))?0:1,o=e._rDelay,l=0,u,f,d;if(o&&e._repeat&&(l=gn(0,e._tDur,r),f=Oi(l,o),e._yoyo&&f&1&&(s=1-s),f!==Oi(e._tTime,o)&&(n=1-s,e.vars.repeatRefresh&&e._initted&&e.invalidate())),s!==n||ot||i||e._zTime===ve||!r&&e._zTime){if(!e._initted&&ba(e,r,i,t,l))return;for(d=e._zTime,e._zTime=r||(t?ve:0),t||(t=r&&!d),e.ratio=s,e._from&&(s=1-s),e._time=0,e._tTime=l,u=e._pt;u;)u.r(s,u.d),u=u._next;r<0&&Ts(e,r,t,!0),e._onUpdate&&!t&&Xt(e,"onUpdate"),l&&e._repeat&&!t&&e.parent&&Xt(e,"onRepeat"),(r>=e._tDur||r<0)&&e.ratio===s&&(s&&Yr(e,1),!t&&!ot&&(Xt(e,s?"onComplete":"onReverseComplete",!0),e._prom&&e._prom()))}else e._zTime||(e._zTime=r)},ql=function(e,r,t){var i;if(t>r)for(i=e._first;i&&i._start<=t;){if(i.data==="isPause"&&i._start>r)return i;i=i._next}else for(i=e._last;i&&i._start>=t;){if(i.data==="isPause"&&i._start0&&!i&&rs(e,e._tTime=e._tDur*o),e.parent&&ts(e),t||ti(e.parent,e),e},wo=function(e){return e instanceof St?ti(e):Ei(e,e._dur)},Gl={_start:0,endTime:ln,totalDuration:ln},Gt=function a(e,r,t){var i=e.labels,n=e._recent||Gl,s=e.duration()>=Zt?n.endTime(!1):e._dur,o,l,u;return tt(r)&&(isNaN(r)||r in i)?(l=r.charAt(0),u=r.substr(-1)==="%",o=r.indexOf("="),l==="<"||l===">"?(o>=0&&(r=r.replace(/=/,"")),(l==="<"?n._start:n.endTime(n._repeat>=0))+(parseFloat(r.substr(1))||0)*(u?(o<0?n:t).totalDuration()/100:1)):o<0?(r in i||(i[r]=s),i[r]):(l=parseFloat(r.charAt(o-1)+r.substr(o+1)),u&&t&&(l=l/100*(gt(t)?t[0]:t).totalDuration()),o>1?a(e,r.substr(0,o-1),t)+l:s+l)):r==null?s:+r},Gi=function(e,r,t){var i=Cr(r[1]),n=(i?2:1)+(e<2?0:1),s=r[n],o,l;if(i&&(s.duration=r[1]),s.parent=t,e){for(o=s,l=t;l&&!("immediateRender"in o);)o=l.vars.defaults||{},l=Mt(l.vars.inherit)&&l.parent;s.immediateRender=Mt(o.immediateRender),e<2?s.runBackwards=1:s.startAt=r[n-1]}return new $e(r[0],s,r[n+1])},Hr=function(e,r){return e||e===0?r(e):r},gn=function(e,r,t){return tr?r:t},_t=function(e,r){return!tt(e)||!(r=Il.exec(e))?"":r[1]},Kl=function(e,r,t){return Hr(t,function(i){return gn(e,r,i)})},Cs=[].slice,wa=function(e,r){return e&&mr(e)&&"length"in e&&(!r&&!e.length||e.length-1 in e&&mr(e[0]))&&!e.nodeType&&e!==fr},Ql=function(e,r,t){return t===void 0&&(t=[]),e.forEach(function(i){var n;return tt(i)&&!r||wa(i,1)?(n=t).push.apply(n,jt(i)):t.push(i)})||t},jt=function(e,r,t){return Se&&!r&&Se.selector?Se.selector(e):tt(e)&&!t&&(bs||!Ri())?Cs.call((r||qs).querySelectorAll(e),0):gt(e)?Ql(e,t):wa(e)?Cs.call(e,0):e?[e]:[]},ks=function(e){return e=jt(e)[0]||an("Invalid scope")||{},function(r){var t=e.current||e.nativeElement||e;return jt(r,t.querySelectorAll?t:t===e?an("Invalid scope")||qs.createElement("div"):e)}},Ta=function(e){return e.sort(function(){return .5-Math.random()})},Sa=function(e){if(Ae(e))return e;var r=mr(e)?e:{each:e},t=ri(r.ease),i=r.from||0,n=parseFloat(r.base)||0,s={},o=i>0&&i<1,l=isNaN(i)||o,u=r.axis,f=i,d=i;return tt(i)?f=d={center:.5,edges:.5,end:1}[i]||0:!o&&l&&(f=i[0],d=i[1]),function(_,c,p){var h=(p||r).length,y=s[h],C,S,O,g,b,T,x,k,P;if(!y){if(P=r.grid==="auto"?0:(r.grid||[1,Zt])[1],!P){for(x=-Zt;x<(x=p[P++].getBoundingClientRect().left)&&Px&&(x=b),bh?h-1:u?u==="y"?h/P:P:Math.max(P,h/P))||0)*(i==="edges"?-1:1),y.b=h<0?n-h:n,y.u=_t(r.amount||r.each)||0,t=t&&h<0?Fa(t):t}return h=(y[_]-y.min)/y.max||0,Me(y.b+(t?t(h):h)*y.v)+y.u}},Ps=function(e){var r=Math.pow(10,((e+"").split(".")[1]||"").length);return function(t){var i=Me(Math.round(parseFloat(t)/e)*e*r);return(i-i%1)/r+(Cr(t)?0:_t(t))}},Ca=function(e,r){var t=gt(e),i,n;return!t&&mr(e)&&(i=t=e.radius||Zt,e.values?(e=jt(e.values),(n=!Cr(e[0]))&&(i*=i)):e=Ps(e.increment)),Hr(r,t?Ae(e)?function(s){return n=e(s),Math.abs(n-s)<=i?n:s}:function(s){for(var o=parseFloat(n?s.x:s),l=parseFloat(n?s.y:0),u=Zt,f=0,d=e.length,_,c;d--;)n?(_=e[d].x-o,c=e[d].y-l,_=_*_+c*c):_=Math.abs(e[d]-o),_i?n-s:s)})},un=function(e){return e.replace(Fl,function(r){var t=r.indexOf("[")+1,i=r.substring(t||7,t?r.indexOf("]"):r.length-1).split(zl);return ka(t?i:+i[0],t?0:+i[1],+i[2]||1e-5)})},Ma=function(e,r,t,i,n){var s=r-e,o=i-t;return Hr(n,function(l){return t+((l-e)/s*o||0)})},ru=function a(e,r,t,i){var n=isNaN(e+r)?0:function(c){return(1-c)*e+c*r};if(!n){var s=tt(e),o={},l,u,f,d,_;if(t===!0&&(i=1)&&(t=null),s)e={p:e},r={p:r};else if(gt(e)&&!gt(r)){for(f=[],d=e.length,_=d-2,u=1;u(o=Math.abs(o))&&(l=s,n=o);return l},Xt=function(e,r,t){var i=e.vars,n=i[r],s=Se,o=e._ctx,l,u,f;if(n)return l=i[r+"Params"],u=i.callbackScope||e,t&&Ir.length&&Hn(),o&&(Se=o),f=l?n.apply(u,l):n.call(u),Se=s,f},Bi=function(e){return Yr(e),e.scrollTrigger&&e.scrollTrigger.kill(!!ot),e.progress()<1&&Xt(e,"onInterrupt"),e},yi,Oa=[],Ea=function(e){if(e)if(e=!e.name&&e.default||e,Us()||e.headless){var r=e.name,t=Ae(e),i=r&&!t&&e.init?function(){this._props=[]}:e,n={init:ln,render:io,add:Js,kill:yu,modifier:mu,rawVars:0},s={targetTest:0,get:0,getSetter:ro,aliases:{},register:0};if(Ri(),e!==i){if(Nt[r])return;Ut(i,Ut(Wn(e,n),s)),Mi(i.prototype,Mi(n,Wn(e,s))),Nt[i.prop=r]=i,e.targetTest&&(zn.push(i),Ks[r]=1),r=(r==="css"?"CSS":r.charAt(0).toUpperCase()+r.substr(1))+"Plugin"}ha(r,i),e.register&&e.register(Dt,i,Et)}else Oa.push(e)},ye=255,Yi={aqua:[0,ye,ye],lime:[0,ye,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,ye],navy:[0,0,128],white:[ye,ye,ye],olive:[128,128,0],yellow:[ye,ye,0],orange:[ye,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[ye,0,0],pink:[ye,192,203],cyan:[0,ye,ye],transparent:[ye,ye,ye,0]},as=function(e,r,t){return e+=e<0?1:e>1?-1:0,(e*6<1?r+(t-r)*e*6:e<.5?t:e*3<2?r+(t-r)*(2/3-e)*6:r)*ye+.5|0},Ra=function(e,r,t){var i=e?Cr(e)?[e>>16,e>>8&ye,e&ye]:0:Yi.black,n,s,o,l,u,f,d,_,c,p;if(!i){if(e.substr(-1)===","&&(e=e.substr(0,e.length-1)),Yi[e])i=Yi[e];else if(e.charAt(0)==="#"){if(e.length<6&&(n=e.charAt(1),s=e.charAt(2),o=e.charAt(3),e="#"+n+n+s+s+o+o+(e.length===5?e.charAt(4)+e.charAt(4):"")),e.length===9)return i=parseInt(e.substr(1,6),16),[i>>16,i>>8&ye,i&ye,parseInt(e.substr(7),16)/255];e=parseInt(e.substr(1),16),i=[e>>16,e>>8&ye,e&ye]}else if(e.substr(0,3)==="hsl"){if(i=p=e.match(yo),!r)l=+i[0]%360/360,u=+i[1]/100,f=+i[2]/100,s=f<=.5?f*(u+1):f+u-f*u,n=f*2-s,i.length>3&&(i[3]*=1),i[0]=as(l+1/3,n,s),i[1]=as(l,n,s),i[2]=as(l-1/3,n,s);else if(~e.indexOf("="))return i=e.match(la),t&&i.length<4&&(i[3]=1),i}else i=e.match(yo)||Yi.transparent;i=i.map(Number)}return r&&!p&&(n=i[0]/ye,s=i[1]/ye,o=i[2]/ye,d=Math.max(n,s,o),_=Math.min(n,s,o),f=(d+_)/2,d===_?l=u=0:(c=d-_,u=f>.5?c/(2-d-_):c/(d+_),l=d===n?(s-o)/c+(se||C<0)&&(t+=C-r),i+=C,b=i-t,O=b-s,(O>0||S)&&(T=++d.frame,_=b-d.time*1e3,d.time=b=b/1e3,s+=O+(O>=n?4:n-O),g=1),S||(l=u(h)),g)for(c=0;c=C&&c--},_listeners:o},d}(),Ri=function(){return!fn&&Yt.wake()},ue={},nu=/^[\d.\-M][\d.\-,\s]/,su=/["']/g,ou=function(e){for(var r={},t=e.substr(1,e.length-3).split(":"),i=t[0],n=1,s=t.length,o,l,u;n1&&t.config?t.config.apply(null,~e.indexOf("{")?[ou(r[1])]:au(e).split(",").map(ga)):ue._CE&&nu.test(e)?ue._CE("",e):t},Fa=function(e){return function(r){return 1-e(1-r)}},za=function a(e,r){for(var t=e._first,i;t;)t instanceof St?a(t,r):t.vars.yoyoEase&&(!t._yoyo||!t._repeat)&&t._yoyo!==r&&(t.timeline?a(t.timeline,r):(i=t._ease,t._ease=t._yEase,t._yEase=i,t._yoyo=r)),t=t._next},ri=function(e,r){return e&&(Ae(e)?e:ue[e]||lu(e))||r},ci=function(e,r,t,i){t===void 0&&(t=function(l){return 1-r(1-l)}),i===void 0&&(i=function(l){return l<.5?r(l*2)/2:1-r((1-l)*2)/2});var n={easeIn:r,easeOut:t,easeInOut:i},s;return Ot(e,function(o){ue[o]=Wt[o]=n,ue[s=o.toLowerCase()]=t;for(var l in n)ue[s+(l==="easeIn"?".in":l==="easeOut"?".out":".inOut")]=ue[o+"."+l]=n[l]}),n},La=function(e){return function(r){return r<.5?(1-e(1-r*2))/2:.5+e((r-.5)*2)/2}},ls=function a(e,r,t){var i=r>=1?r:1,n=(t||(e?.3:.45))/(r<1?r:1),s=n/xs*(Math.asin(1/i)||0),o=function(f){return f===1?1:i*Math.pow(2,-10*f)*Al((f-s)*n)+1},l=e==="out"?o:e==="in"?function(u){return 1-o(1-u)}:La(o);return n=xs/n,l.config=function(u,f){return a(e,u,f)},l},us=function a(e,r){r===void 0&&(r=1.70158);var t=function(s){return s?--s*s*((r+1)*s+r)+1:0},i=e==="out"?t:e==="in"?function(n){return 1-t(1-n)}:La(t);return i.config=function(n){return a(e,n)},i};Ot("Linear,Quad,Cubic,Quart,Quint,Strong",function(a,e){var r=e<5?e+1:e;ci(a+",Power"+(r-1),e?function(t){return Math.pow(t,r)}:function(t){return t},function(t){return 1-Math.pow(1-t,r)},function(t){return t<.5?Math.pow(t*2,r)/2:1-Math.pow((1-t)*2,r)/2})});ue.Linear.easeNone=ue.none=ue.Linear.easeIn;ci("Elastic",ls("in"),ls("out"),ls());(function(a,e){var r=1/e,t=2*r,i=2.5*r,n=function(o){return o0?t+(t+this._rDelay)*this._repeat:t):this.totalDuration()&&this._dur},e.totalDuration=function(t){return arguments.length?(this._dirty=0,Ei(this,this._repeat<0?t:(t-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},e.totalTime=function(t,i){if(Ri(),!arguments.length)return this._tTime;var n=this._dp;if(n&&n.smoothChildTiming&&this._ts){for(rs(this,t),!n._dp||n.parent||va(n,this);n&&n.parent;)n.parent._time!==n._start+(n._ts>=0?n._tTime/n._ts:(n.totalDuration()-n._tTime)/-n._ts)&&n.totalTime(n._tTime,!0),n=n.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&t0||!this._tDur&&!t)&&dr(this._dp,this,this._start-this._delay)}return(this._tTime!==t||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===ve||!this._initted&&this._dur&&t||!t&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=t),pa(this,t,i)),this},e.time=function(t,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),t+bo(this))%(this._dur+this._rDelay)||(t?this._dur:0),i):this._time},e.totalProgress=function(t,i){return arguments.length?this.totalTime(this.totalDuration()*t,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},e.progress=function(t,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-t:t)+bo(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},e.iteration=function(t,i){var n=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(t-1)*n,i):this._repeat?Oi(this._tTime,n)+1:1},e.timeScale=function(t,i){if(!arguments.length)return this._rts===-ve?0:this._rts;if(this._rts===t)return this;var n=this.parent&&this._ts?Un(this.parent._time,this):this._tTime;return this._rts=+t||0,this._ts=this._ps||t===-ve?0:this._rts,this.totalTime(gn(-Math.abs(this._delay),this.totalDuration(),n),i!==!1),ts(this),Vl(this)},e.paused=function(t){return arguments.length?(this._ps!==t&&(this._ps=t,t?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Ri(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==ve&&(this._tTime-=ve)))),this):this._ps},e.startTime=function(t){if(arguments.length){this._start=Me(t);var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&dr(i,this,this._start-this._delay),this}return this._start},e.endTime=function(t){return this._start+(Mt(t)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},e.rawTime=function(t){var i=this.parent||this._dp;return i?t&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Un(i.rawTime(t),this):this._tTime:this._tTime},e.revert=function(t){t===void 0&&(t=Bl);var i=ot;return ot=t,js(this)&&(this.timeline&&this.timeline.revert(t),this.totalTime(-.01,t.suppressEvents)),this.data!=="nested"&&t.kill!==!1&&this.kill(),ot=i,this},e.globalTime=function(t){for(var i=this,n=arguments.length?t:i.rawTime();i;)n=i._start+n/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(t):n},e.repeat=function(t){return arguments.length?(this._repeat=t===1/0?-2:t,wo(this)):this._repeat===-2?1/0:this._repeat},e.repeatDelay=function(t){if(arguments.length){var i=this._time;return this._rDelay=t,wo(this),i?this.time(i):this}return this._rDelay},e.yoyo=function(t){return arguments.length?(this._yoyo=t,this):this._yoyo},e.seek=function(t,i){return this.totalTime(Gt(this,t),Mt(i))},e.restart=function(t,i){return this.play().totalTime(t?-this._delay:0,Mt(i)),this._dur||(this._zTime=-ve),this},e.play=function(t,i){return t!=null&&this.seek(t,i),this.reversed(!1).paused(!1)},e.reverse=function(t,i){return t!=null&&this.seek(t||this.totalDuration(),i),this.reversed(!0).paused(!1)},e.pause=function(t,i){return t!=null&&this.seek(t,i),this.paused(!0)},e.resume=function(){return this.paused(!1)},e.reversed=function(t){return arguments.length?(!!t!==this.reversed()&&this.timeScale(-this._rts||(t?-ve:0)),this):this._rts<0},e.invalidate=function(){return this._initted=this._act=0,this._zTime=-ve,this},e.isActive=function(){var t=this.parent||this._dp,i=this._start,n;return!!(!t||this._ts&&this._initted&&t.isActive()&&(n=t.rawTime(!0))>=i&&n1?(i?(s[t]=i,n&&(s[t+"Params"]=n),t==="onUpdate"&&(this._onUpdate=i)):delete s[t],this):s[t]},e.then=function(t){var i=this,n=i._prom;return new Promise(function(s){var o=Ae(t)?t:ma,l=function(){var f=i.then;i.then=null,n&&n(),Ae(o)&&(o=o(i))&&(o.then||o===i)&&(i.then=f),s(o),i.then=f};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?l():i._prom=l})},e.kill=function(){Bi(this)},a}();Ut(cn.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-ve,_prom:0,_ps:!1,_rts:1});var St=function(a){sa(e,a);function e(t,i){var n;return t===void 0&&(t={}),n=a.call(this,t)||this,n.labels={},n.smoothChildTiming=!!t.smoothChildTiming,n.autoRemoveChildren=!!t.autoRemoveChildren,n._sort=Mt(t.sortChildren),Oe&&dr(t.parent||Oe,xr(n),i),t.reversed&&n.reverse(),t.paused&&n.paused(!0),t.scrollTrigger&&xa(xr(n),t.scrollTrigger),n}var r=e.prototype;return r.to=function(i,n,s){return Gi(0,arguments,this),this},r.from=function(i,n,s){return Gi(1,arguments,this),this},r.fromTo=function(i,n,s,o){return Gi(2,arguments,this),this},r.set=function(i,n,s){return n.duration=0,n.parent=this,qi(n).repeatDelay||(n.repeat=0),n.immediateRender=!!n.immediateRender,new $e(i,n,Gt(this,s),1),this},r.call=function(i,n,s){return dr(this,$e.delayedCall(0,i,n),s)},r.staggerTo=function(i,n,s,o,l,u,f){return s.duration=n,s.stagger=s.stagger||o,s.onComplete=u,s.onCompleteParams=f,s.parent=this,new $e(i,s,Gt(this,l)),this},r.staggerFrom=function(i,n,s,o,l,u,f){return s.runBackwards=1,qi(s).immediateRender=Mt(s.immediateRender),this.staggerTo(i,n,s,o,l,u,f)},r.staggerFromTo=function(i,n,s,o,l,u,f,d){return o.startAt=s,qi(o).immediateRender=Mt(o.immediateRender),this.staggerTo(i,n,o,l,u,f,d)},r.render=function(i,n,s){var o=this._time,l=this._dirty?this.totalDuration():this._tDur,u=this._dur,f=i<=0?0:Me(i),d=this._zTime<0!=i<0&&(this._initted||!u),_,c,p,h,y,C,S,O,g,b,T,x;if(this!==Oe&&f>l&&i>=0&&(f=l),f!==this._tTime||s||d){if(o!==this._time&&u&&(f+=this._time-o,i+=this._time-o),_=f,g=this._start,O=this._ts,C=!O,d&&(u||(o=this._zTime),(i||!n)&&(this._zTime=i)),this._repeat){if(T=this._yoyo,y=u+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(y*100+i,n,s);if(_=Me(f%y),f===l?(h=this._repeat,_=u):(b=Me(f/y),h=~~b,h&&h===b&&(_=u,h--),_>u&&(_=u)),b=Oi(this._tTime,y),!o&&this._tTime&&b!==h&&this._tTime-b*y-this._dur<=0&&(b=h),T&&h&1&&(_=u-_,x=1),h!==b&&!this._lock){var k=T&&b&1,P=k===(T&&h&1);if(h=o&&i>=0)for(c=this._first;c;){if(p=c._next,(c._act||_>=c._start)&&c._ts&&S!==c){if(c.parent!==this)return this.render(i,n,s);if(c.render(c._ts>0?(_-c._start)*c._ts:(c._dirty?c.totalDuration():c._tDur)+(_-c._start)*c._ts,n,s),_!==this._time||!this._ts&&!C){S=0,p&&(f+=this._zTime=-ve);break}}c=p}else{c=this._last;for(var M=i<0?i:_;c;){if(p=c._prev,(c._act||M<=c._end)&&c._ts&&S!==c){if(c.parent!==this)return this.render(i,n,s);if(c.render(c._ts>0?(M-c._start)*c._ts:(c._dirty?c.totalDuration():c._tDur)+(M-c._start)*c._ts,n,s||ot&&js(c)),_!==this._time||!this._ts&&!C){S=0,p&&(f+=this._zTime=M?-ve:ve);break}}c=p}}if(S&&!n&&(this.pause(),S.render(_>=o?0:-ve)._zTime=_>=o?1:-1,this._ts))return this._start=g,ts(this),this.render(i,n,s);this._onUpdate&&!n&&Xt(this,"onUpdate",!0),(f===l&&this._tTime>=this.totalDuration()||!f&&o)&&(g===this._start||Math.abs(O)!==Math.abs(this._ts))&&(this._lock||((i||!u)&&(f===l&&this._ts>0||!f&&this._ts<0)&&Yr(this,1),!n&&!(i<0&&!o)&&(f||o||!l)&&(Xt(this,f===l&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(f0)&&this._prom())))}return this},r.add=function(i,n){var s=this;if(Cr(n)||(n=Gt(this,n,i)),!(i instanceof cn)){if(gt(i))return i.forEach(function(o){return s.add(o,n)}),this;if(tt(i))return this.addLabel(i,n);if(Ae(i))i=$e.delayedCall(0,i);else return this}return this!==i?dr(this,i,n):this},r.getChildren=function(i,n,s,o){i===void 0&&(i=!0),n===void 0&&(n=!0),s===void 0&&(s=!0),o===void 0&&(o=-Zt);for(var l=[],u=this._first;u;)u._start>=o&&(u instanceof $e?n&&l.push(u):(s&&l.push(u),i&&l.push.apply(l,u.getChildren(!0,n,s)))),u=u._next;return l},r.getById=function(i){for(var n=this.getChildren(1,1,1),s=n.length;s--;)if(n[s].vars.id===i)return n[s]},r.remove=function(i){return tt(i)?this.removeLabel(i):Ae(i)?this.killTweensOf(i):(i.parent===this&&es(this,i),i===this._recent&&(this._recent=this._last),ti(this))},r.totalTime=function(i,n){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Me(Yt.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),a.prototype.totalTime.call(this,i,n),this._forcing=0,this):this._tTime},r.addLabel=function(i,n){return this.labels[i]=Gt(this,n),this},r.removeLabel=function(i){return delete this.labels[i],this},r.addPause=function(i,n,s){var o=$e.delayedCall(0,n||ln,s);return o.data="isPause",this._hasPause=1,dr(this,o,Gt(this,i))},r.removePause=function(i){var n=this._first;for(i=Gt(this,i);n;)n._start===i&&n.data==="isPause"&&Yr(n),n=n._next},r.killTweensOf=function(i,n,s){for(var o=this.getTweensOf(i,s),l=o.length;l--;)Dr!==o[l]&&o[l].kill(i,n);return this},r.getTweensOf=function(i,n){for(var s=[],o=jt(i),l=this._first,u=Cr(n),f;l;)l instanceof $e?Yl(l._targets,o)&&(u?(!Dr||l._initted&&l._ts)&&l.globalTime(0)<=n&&l.globalTime(l.totalDuration())>n:!n||l.isActive())&&s.push(l):(f=l.getTweensOf(o,n)).length&&s.push.apply(s,f),l=l._next;return s},r.tweenTo=function(i,n){n=n||{};var s=this,o=Gt(s,i),l=n,u=l.startAt,f=l.onStart,d=l.onStartParams,_=l.immediateRender,c,p=$e.to(s,Ut({ease:n.ease||"none",lazy:!1,immediateRender:!1,time:o,overwrite:"auto",duration:n.duration||Math.abs((o-(u&&"time"in u?u.time:s._time))/s.timeScale())||ve,onStart:function(){if(s.pause(),!c){var y=n.duration||Math.abs((o-(u&&"time"in u?u.time:s._time))/s.timeScale());p._dur!==y&&Ei(p,y,0,1).render(p._time,!0,!0),c=1}f&&f.apply(p,d||[])}},n));return _?p.render(0):p},r.tweenFromTo=function(i,n,s){return this.tweenTo(n,Ut({startAt:{time:Gt(this,i)}},s))},r.recent=function(){return this._recent},r.nextLabel=function(i){return i===void 0&&(i=this._time),To(this,Gt(this,i))},r.previousLabel=function(i){return i===void 0&&(i=this._time),To(this,Gt(this,i),1)},r.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+ve)},r.shiftChildren=function(i,n,s){s===void 0&&(s=0);var o=this._first,l=this.labels,u;for(i=Me(i);o;)o._start>=s&&(o._start+=i,o._end+=i),o=o._next;if(n)for(u in l)l[u]>=s&&(l[u]+=i);return ti(this)},r.invalidate=function(i){var n=this._first;for(this._lock=0;n;)n.invalidate(i),n=n._next;return a.prototype.invalidate.call(this,i)},r.clear=function(i){i===void 0&&(i=!0);for(var n=this._first,s;n;)s=n._next,this.remove(n),n=s;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),ti(this)},r.totalDuration=function(i){var n=0,s=this,o=s._last,l=Zt,u,f,d;if(arguments.length)return s.timeScale((s._repeat<0?s.duration():s.totalDuration())/(s.reversed()?-i:i));if(s._dirty){for(d=s.parent;o;)u=o._prev,o._dirty&&o.totalDuration(),f=o._start,f>l&&s._sort&&o._ts&&!s._lock?(s._lock=1,dr(s,o,f-o._delay,1)._lock=0):l=f,f<0&&o._ts&&(n-=f,(!d&&!s._dp||d&&d.smoothChildTiming)&&(s._start+=Me(f/s._ts),s._time-=f,s._tTime-=f),s.shiftChildren(-f,!1,-1/0),l=0),o._end>n&&o._ts&&(n=o._end),o=u;Ei(s,s===Oe&&s._time>n?s._time:n,1,1),s._dirty=0}return s._tDur},e.updateRoot=function(i){if(Oe._ts&&(pa(Oe,Un(i,Oe)),da=Yt.frame),Yt.frame>=vo){vo+=Ht.autoSleep||120;var n=Oe._first;if((!n||!n._ts)&&Ht.autoSleep&&Yt._listeners.length<2){for(;n&&!n._ts;)n=n._next;n||Yt.sleep()}}},e}(cn);Ut(St.prototype,{_lock:0,_hasPause:0,_forcing:0});var uu=function(e,r,t,i,n,s,o){var l=new Et(this._pt,e,r,0,1,Va,null,n),u=0,f=0,d,_,c,p,h,y,C,S;for(l.b=t,l.e=i,t+="",i+="",(C=~i.indexOf("random("))&&(i=un(i)),s&&(S=[t,i],s(S,e,r),t=S[0],i=S[1]),_=t.match(ss)||[];d=ss.exec(i);)p=d[0],h=i.substring(u,d.index),c?c=(c+1)%5:h.substr(-5)==="rgba("&&(c=1),p!==_[f++]&&(y=parseFloat(_[f-1])||0,l._pt={_next:l._pt,p:h||f===1?h:",",s:y,c:p.charAt(1)==="="?bi(y,p)-y:parseFloat(p)-y,m:c&&c<4?Math.round:0},u=ss.lastIndex);return l.c=u")}),g.duration();else{T={};for(k in p)k==="ease"||k==="easeEach"||du(k,p[k],T,p.easeEach);for(k in T)for(Y=T[k].sort(function(W,N){return W.t-N.t}),E=0,b=0;bl-ve&&!f?l:iu&&(_=u)),C=this._yoyo&&p&1,C&&(g=this._yEase,_=u-_),y=Oi(this._tTime,h),_===o&&!s&&this._initted&&p===y)return this._tTime=d,this;p!==y&&(O&&this._yEase&&za(O,C),this.vars.repeatRefresh&&!C&&!this._lock&&_!==h&&this._initted&&(this._lock=s=1,this.render(Me(h*p),!0).invalidate()._lock=0))}if(!this._initted){if(ba(this,f?i:_,s,n,d))return this._tTime=0,this;if(o!==this._time&&!(s&&this.vars.repeatRefresh&&p!==y))return this;if(u!==this._dur)return this.render(i,n,s)}if(this._tTime=d,this._time=_,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=S=(g||this._ease)(_/u),this._from&&(this.ratio=S=1-S),!o&&d&&!n&&!y&&(Xt(this,"onStart"),this._tTime!==d))return this;for(c=this._pt;c;)c.r(S,c.d),c=c._next;O&&O.render(i<0?i:O._dur*O._ease(_/this._dur),n,s)||this._startAt&&(this._zTime=i),this._onUpdate&&!n&&(f&&Ts(this,i,n,s),Xt(this,"onUpdate")),this._repeat&&p!==y&&this.vars.onRepeat&&!n&&this.parent&&Xt(this,"onRepeat"),(d===this._tDur||!d)&&this._tTime===d&&(f&&!this._onUpdate&&Ts(this,i,!0,!0),(i||!u)&&(d===this._tDur&&this._ts>0||!d&&this._ts<0)&&Yr(this,1),!n&&!(f&&!o)&&(d||o||C)&&(Xt(this,d===l?"onComplete":"onReverseComplete",!0),this._prom&&!(d0)&&this._prom()))}return this},r.targets=function(){return this._targets},r.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),a.prototype.invalidate.call(this,i)},r.resetTo=function(i,n,s,o,l){fn||Yt.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||eo(this,u),f=this._ease(u/this._dur),cu(this,i,n,s,o,f,u,l)?this.resetTo(i,n,s,o,1):(rs(this,0),this.parent||ya(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},r.kill=function(i,n){if(n===void 0&&(n="all"),!i&&(!n||n==="all"))return this._lazy=this._pt=0,this.parent?Bi(this):this.scrollTrigger&&this.scrollTrigger.kill(!!ot),this;if(this.timeline){var s=this.timeline.totalDuration();return this.timeline.killTweensOf(i,n,Dr&&Dr.vars.overwrite!==!0)._first||Bi(this),this.parent&&s!==this.timeline.totalDuration()&&Ei(this,this._dur*this.timeline._tDur/s,0,1),this}var o=this._targets,l=i?jt(i):o,u=this._ptLookup,f=this._pt,d,_,c,p,h,y,C;if((!n||n==="all")&&Xl(o,l))return n==="all"&&(this._pt=0),Bi(this);for(d=this._op=this._op||[],n!=="all"&&(tt(n)&&(h={},Ot(n,function(S){return h[S]=1}),n=h),n=hu(o,n)),C=o.length;C--;)if(~l.indexOf(o[C])){_=u[C],n==="all"?(d[C]=n,p=_,c={}):(c=d[C]=d[C]||{},p=n);for(h in p)y=_&&_[h],y&&((!("kill"in y.d)||y.d.kill(h)===!0)&&es(this,y,"_pt"),delete _[h]),c!=="all"&&(c[h]=1)}return this._initted&&!this._pt&&f&&Bi(this),this},e.to=function(i,n){return new e(i,n,arguments[2])},e.from=function(i,n){return Gi(1,arguments)},e.delayedCall=function(i,n,s,o){return new e(n,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:n,onReverseComplete:n,onCompleteParams:s,onReverseCompleteParams:s,callbackScope:o})},e.fromTo=function(i,n,s){return Gi(2,arguments)},e.set=function(i,n){return n.duration=0,n.repeatDelay||(n.repeat=0),new e(i,n)},e.killTweensOf=function(i,n,s){return Oe.killTweensOf(i,n,s)},e}(cn);Ut($e.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});Ot("staggerTo,staggerFrom,staggerFromTo",function(a){$e[a]=function(){var e=new St,r=Cs.call(arguments,0);return r.splice(a==="staggerFromTo"?5:4,0,0),e[a].apply(e,r)}});var to=function(e,r,t){return e[r]=t},$a=function(e,r,t){return e[r](t)},_u=function(e,r,t,i){return e[r](i.fp,t)},pu=function(e,r,t){return e.setAttribute(r,t)},ro=function(e,r){return Ae(e[r])?$a:Ws(e[r])&&e.setAttribute?pu:to},Xa=function(e,r){return r.set(r.t,r.p,Math.round((r.s+r.c*e)*1e6)/1e6,r)},gu=function(e,r){return r.set(r.t,r.p,!!(r.s+r.c*e),r)},Va=function(e,r){var t=r._pt,i="";if(!e&&r.b)i=r.b;else if(e===1&&r.e)i=r.e;else{for(;t;)i=t.p+(t.m?t.m(t.s+t.c*e):Math.round((t.s+t.c*e)*1e4)/1e4)+i,t=t._next;i+=r.c}r.set(r.t,r.p,i,r)},io=function(e,r){for(var t=r._pt;t;)t.r(e,t.d),t=t._next},mu=function(e,r,t,i){for(var n=this._pt,s;n;)s=n._next,n.p===i&&n.modifier(e,r,t),n=s},yu=function(e){for(var r=this._pt,t,i;r;)i=r._next,r.p===e&&!r.op||r.op===e?es(this,r,"_pt"):r.dep||(t=1),r=i;return!t},vu=function(e,r,t,i){i.mSet(e,r,i.m.call(i.tween,t,i.mt),i)},Ha=function(e){for(var r=e._pt,t,i,n,s;r;){for(t=r._next,i=n;i&&i.pr>r.pr;)i=i._next;(r._prev=i?i._prev:s)?r._prev._next=r:n=r,(r._next=i)?i._prev=r:s=r,r=t}e._pt=n},Et=function(){function a(r,t,i,n,s,o,l,u,f){this.t=t,this.s=n,this.c=s,this.p=i,this.r=o||Xa,this.d=l||this,this.set=u||to,this.pr=f||0,this._next=r,r&&(r._prev=this)}var e=a.prototype;return e.modifier=function(t,i,n){this.mSet=this.mSet||this.set,this.set=vu,this.m=t,this.mt=n,this.tween=i},a}();Ot(Qs+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(a){return Ks[a]=1});Wt.TweenMax=Wt.TweenLite=$e;Wt.TimelineLite=Wt.TimelineMax=St;Oe=new St({sortChildren:!1,defaults:Pi,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});Ht.stringFilter=Aa;var ii=[],Ln={},xu=[],Co=0,bu=0,fs=function(e){return(Ln[e]||xu).map(function(r){return r()})},Os=function(){var e=Date.now(),r=[];e-Co>2&&(fs("matchMediaInit"),ii.forEach(function(t){var i=t.queries,n=t.conditions,s,o,l,u;for(o in i)s=fr.matchMedia(i[o]).matches,s&&(l=1),s!==n[o]&&(n[o]=s,u=1);u&&(t.revert(),l&&r.push(t))}),fs("matchMediaRevert"),r.forEach(function(t){return t.onMatch(t,function(i){return t.add(null,i)})}),Co=e,fs("matchMedia"))},Wa=function(){function a(r,t){this.selector=t&&ks(t),this.data=[],this._r=[],this.isReverted=!1,this.id=bu++,r&&this.add(r)}var e=a.prototype;return e.add=function(t,i,n){Ae(t)&&(n=i,i=t,t=Ae);var s=this,o=function(){var u=Se,f=s.selector,d;return u&&u!==s&&u.data.push(s),n&&(s.selector=ks(n)),Se=s,d=i.apply(s,arguments),Ae(d)&&s._r.push(d),Se=u,s.selector=f,s.isReverted=!1,d};return s.last=o,t===Ae?o(s,function(l){return s.add(null,l)}):t?s[t]=o:o},e.ignore=function(t){var i=Se;Se=null,t(this),Se=i},e.getTweens=function(){var t=[];return this.data.forEach(function(i){return i instanceof a?t.push.apply(t,i.getTweens()):i instanceof $e&&!(i.parent&&i.parent.data==="nested")&&t.push(i)}),t},e.clear=function(){this._r.length=this.data.length=0},e.kill=function(t,i){var n=this;if(t?function(){for(var o=n.getTweens(),l=n.data.length,u;l--;)u=n.data[l],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(f){return o.splice(o.indexOf(f),1)}));for(o.map(function(f){return{g:f._dur||f._delay||f._sat&&!f._sat.vars.immediateRender?f.globalTime(0):-1/0,t:f}}).sort(function(f,d){return d.g-f.g||-1/0}).forEach(function(f){return f.t.revert(t)}),l=n.data.length;l--;)u=n.data[l],u instanceof St?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof $e)&&u.revert&&u.revert(t);n._r.forEach(function(f){return f(t,n)}),n.isReverted=!0}():this.data.forEach(function(o){return o.kill&&o.kill()}),this.clear(),i)for(var s=ii.length;s--;)ii[s].id===this.id&&ii.splice(s,1)},e.revert=function(t){this.kill(t||{})},a}(),wu=function(){function a(r){this.contexts=[],this.scope=r,Se&&Se.data.push(this)}var e=a.prototype;return e.add=function(t,i,n){mr(t)||(t={matches:t});var s=new Wa(0,n||this.scope),o=s.conditions={},l,u,f;Se&&!s.selector&&(s.selector=Se.selector),this.contexts.push(s),i=s.add("onMatch",i),s.queries=t;for(u in t)u==="all"?f=1:(l=fr.matchMedia(t[u]),l&&(ii.indexOf(s)<0&&ii.push(s),(o[u]=l.matches)&&(f=1),l.addListener?l.addListener(Os):l.addEventListener("change",Os)));return f&&i(s,function(d){return s.add(null,d)}),this},e.revert=function(t){this.kill(t||{})},e.kill=function(t){this.contexts.forEach(function(i){return i.kill(t,!0)})},a}(),qn={registerPlugin:function(){for(var e=arguments.length,r=new Array(e),t=0;t1){var i=e.map(function(f){return Dt.quickSetter(f,r,t)}),n=i.length;return function(f){for(var d=n;d--;)i[d](f)}}e=e[0]||{};var s=Nt[r],o=ei(e),l=o.harness&&(o.harness.aliases||{})[r]||r,u=s?function(f){var d=new s;yi._pt=0,d.init(e,t?f+t:f,yi,0,[e]),d.render(1,d),yi._pt&&io(1,yi)}:o.set(e,l);return s?u:function(f){return u(e,l,t?f+t:f,o,1)}},quickTo:function(e,r,t){var i,n=Dt.to(e,Ut((i={},i[r]="+=0.1",i.paused=!0,i.stagger=0,i),t||{})),s=function(l,u,f){return n.resetTo(r,l,u,f)};return s.tween=n,s},isTweening:function(e){return Oe.getTweensOf(e,!0).length>0},defaults:function(e){return e&&e.ease&&(e.ease=ri(e.ease,Pi.ease)),xo(Pi,e||{})},config:function(e){return xo(Ht,e||{})},registerEffect:function(e){var r=e.name,t=e.effect,i=e.plugins,n=e.defaults,s=e.extendTimeline;(i||"").split(",").forEach(function(o){return o&&!Nt[o]&&!Wt[o]&&an(r+" effect requires "+o+" plugin.")}),os[r]=function(o,l,u){return t(jt(o),Ut(l||{},n),u)},s&&(St.prototype[r]=function(o,l,u){return this.add(os[r](o,mr(l)?l:(u=l)&&{},this),u)})},registerEase:function(e,r){ue[e]=ri(r)},parseEase:function(e,r){return arguments.length?ri(e,r):ue},getById:function(e){return Oe.getById(e)},exportRoot:function(e,r){e===void 0&&(e={});var t=new St(e),i,n;for(t.smoothChildTiming=Mt(e.smoothChildTiming),Oe.remove(t),t._dp=0,t._time=t._tTime=Oe._time,i=Oe._first;i;)n=i._next,(r||!(!i._dur&&i instanceof $e&&i.vars.onComplete===i._targets[0]))&&dr(t,i,i._start-i._delay),i=n;return dr(Oe,t,0),t},context:function(e,r){return e?new Wa(e,r):Se},matchMedia:function(e){return new wu(e)},matchMediaRefresh:function(){return ii.forEach(function(e){var r=e.conditions,t,i;for(i in r)r[i]&&(r[i]=!1,t=1);t&&e.revert()})||Os()},addEventListener:function(e,r){var t=Ln[e]||(Ln[e]=[]);~t.indexOf(r)||t.push(r)},removeEventListener:function(e,r){var t=Ln[e],i=t&&t.indexOf(r);i>=0&&t.splice(i,1)},utils:{wrap:eu,wrapYoyo:tu,distribute:Sa,random:ka,snap:Ca,normalize:Jl,getUnit:_t,clamp:Kl,splitColor:Ra,toArray:jt,selector:ks,mapRange:Ma,pipe:Zl,unitize:jl,interpolate:ru,shuffle:Ta},install:ca,effects:os,ticker:Yt,updateRoot:St.updateRoot,plugins:Nt,globalTimeline:Oe,core:{PropTween:Et,globals:ha,Tween:$e,Timeline:St,Animation:cn,getCache:ei,_removeLinkedListItem:es,reverting:function(){return ot},context:function(e){return e&&Se&&(Se.data.push(e),e._ctx=Se),Se},suppressOverwrites:function(e){return Hs=e}}};Ot("to,from,fromTo,delayedCall,set,killTweensOf",function(a){return qn[a]=$e[a]});Yt.add(St.updateRoot);yi=qn.to({},{duration:0});var Tu=function(e,r){for(var t=e._pt;t&&t.p!==r&&t.op!==r&&t.fp!==r;)t=t._next;return t},Su=function(e,r){var t=e._targets,i,n,s;for(i in r)for(n=t.length;n--;)s=e._ptLookup[n][i],s&&(s=s.d)&&(s._pt&&(s=Tu(s,i)),s&&s.modifier&&s.modifier(r[i],e,t[n],i))},cs=function(e,r){return{name:e,headless:1,rawVars:1,init:function(i,n,s){s._onInit=function(o){var l,u;if(tt(n)&&(l={},Ot(n,function(f){return l[f]=1}),n=l),r){l={};for(u in n)l[u]=r(n[u]);n=l}Su(o,n)}}}},Dt=qn.registerPlugin({name:"attr",init:function(e,r,t,i,n){var s,o,l;this.tween=t;for(s in r)l=e.getAttribute(s)||"",o=this.add(e,"setAttribute",(l||0)+"",r[s],i,n,0,0,s),o.op=s,o.b=l,this._props.push(s)},render:function(e,r){for(var t=r._pt;t;)ot?t.set(t.t,t.p,t.b,t):t.r(e,t.d),t=t._next}},{name:"endArray",headless:1,init:function(e,r){for(var t=r.length;t--;)this.add(e,t,e[t]||0,r[t],0,0,0,0,0,1)}},cs("roundProps",Ps),cs("modifiers"),cs("snap",Ca))||qn;$e.version=St.version=Dt.version="3.14.1";fa=1;Us()&&Ri();ue.Power0;ue.Power1;ue.Power2;ue.Power3;ue.Power4;ue.Linear;ue.Quad;ue.Cubic;ue.Quart;ue.Quint;ue.Strong;ue.Elastic;ue.Back;ue.SteppedEase;ue.Bounce;ue.Sine;ue.Expo;ue.Circ;/*! +*/var nn={autoSleep:120,force3D:"auto",nullTargetWarn:1,units:{lineHeight:""}},wi={duration:.5,overwrite:!1,delay:0},tu,he,It,fn=1e8,wt=1/fn,oc=Math.PI*2,Sb=oc/4,bb=0,tp=Math.sqrt,vb=Math.cos,Eb=Math.sin,ae=function(t){return typeof t=="string"},Bt=function(t){return typeof t=="function"},jn=function(t){return typeof t=="number"},eu=function(t){return typeof t>"u"},Nn=function(t){return typeof t=="object"},Le=function(t){return t!==!1},nu=function(){return typeof window<"u"},Ys=function(t){return Bt(t)||ae(t)},ep=typeof ArrayBuffer=="function"&&ArrayBuffer.isView||function(){},we=Array.isArray,Tb=/random\([^)]+\)/g,wb=/,\s*/g,Ff=/(?:-?\.?\d|\.)+/gi,np=/[-+=.]*\d+[.e\-+]*\d*[e\-+]*\d*/g,si=/[-+=.]*\d+[.e-]*\d*[a-z%]*/g,ha=/[-+=.]*\d+\.?\d*(?:e-|e\+)?\d*/gi,rp=/[+-]=-?[.\d]+/,xb=/[^,'"\[\]\s]+/gi,kb=/^[+\-=e\s\d]*\d+[.\d]*([a-z]*|%)\s*$/i,Nt,Cn,ac,ru,rn={},Co={},ip,sp=function(t){return(Co=xi(t,rn))&&He},iu=function(t,n){return console.warn("Invalid property",t,"set to",n,"Missing plugin? gsap.registerPlugin()")},gs=function(t,n){return!n&&console.warn(t)},op=function(t,n){return t&&(rn[t]=n)&&Co&&(Co[t]=n)||rn},ms=function(){return 0},Cb={suppressEvents:!0,isStart:!0,kill:!1},uo={suppressEvents:!0,kill:!1},Ob={suppressEvents:!0},su={},cr=[],cc={},ap,Xe={},_a={},Bf=30,fo=[],ou="",au=function(t){var n=t[0],r,i;if(Nn(n)||Bt(n)||(t=[t]),!(r=(n._gsap||{}).harness)){for(i=fo.length;i--&&!fo[i].targetTest(n););r=fo[i]}for(i=t.length;i--;)t[i]&&(t[i]._gsap||(t[i]._gsap=new Pp(t[i],r)))||t.splice(i,1);return t},Ar=function(t){return t._gsap||au(ln(t))[0]._gsap},cp=function(t,n,r){return(r=t[n])&&Bt(r)?t[n]():eu(r)&&t.getAttribute&&t.getAttribute(n)||r},$e=function(t,n){return(t=t.split(",")).forEach(n)||t},Ht=function(t){return Math.round(t*1e5)/1e5||0},Mt=function(t){return Math.round(t*1e7)/1e7||0},fi=function(t,n){var r=n.charAt(0),i=parseFloat(n.substr(2));return t=parseFloat(t),r==="+"?t+i:r==="-"?t-i:r==="*"?t*i:t/i},Rb=function(t,n){for(var r=n.length,i=0;t.indexOf(n[i])<0&&++ia;)o=o._prev;return o?(n._next=o._next,o._next=n):(n._next=t[r],t[r]=n),n._next?n._next._prev=n:t[i]=n,n._prev=o,n.parent=n._dp=t,n},qo=function(t,n,r,i){r===void 0&&(r="_first"),i===void 0&&(i="_last");var s=n._prev,o=n._next;s?s._next=o:t[r]===n&&(t[r]=o),o?o._prev=s:t[i]===n&&(t[i]=s),n._next=n._prev=n.parent=null},pr=function(t,n){t.parent&&(!n||t.parent.autoRemoveChildren)&&t.parent.remove&&t.parent.remove(t),t._act=0},Dr=function(t,n){if(t&&(!n||n._end>t._dur||n._start<0))for(var r=t;r;)r._dirty=1,r=r.parent;return t},Ab=function(t){for(var n=t.parent;n&&n.parent;)n._dirty=1,n.totalDuration(),n=n.parent;return t},uc=function(t,n,r,i){return t._startAt&&(he?t._startAt.revert(uo):t.vars.immediateRender&&!t.vars.autoRevert||t._startAt.render(n,!0,i))},Db=function e(t){return!t||t._ts&&e(t.parent)},Uf=function(t){return t._repeat?ki(t._tTime,t=t.duration()+t._rDelay)*t:0},ki=function(t,n){var r=Math.floor(t=Mt(t/n));return t&&r===t?r-1:r},Io=function(t,n){return(t-n._start)*n._ts+(n._ts>=0?0:n._dirty?n.totalDuration():n._tDur)},Go=function(t){return t._end=Mt(t._start+(t._tDur/Math.abs(t._ts||t._rts||wt)||0))},Xo=function(t,n){var r=t._dp;return r&&r.smoothChildTiming&&t._ts&&(t._start=Mt(r._time-(t._ts>0?n/t._ts:((t._dirty?t.totalDuration():t._tDur)-n)/-t._ts)),Go(t),r._dirty||Dr(r,t)),t},pp=function(t,n){var r;if((n._time||!n._dur&&n._initted||n._startwt)&&n.render(r,!0)),Dr(t,n)._dp&&t._initted&&t._time>=t._dur&&t._ts){if(t._dur=0&&r.totalTime(r._tTime),r=r._dp;t._zTime=-wt}},In=function(t,n,r,i){return n.parent&&pr(n),n._start=Mt((jn(r)?r:r||t!==Nt?an(t,r,n):t._time)+n._delay),n._end=Mt(n._start+(n.totalDuration()/Math.abs(n.timeScale())||0)),dp(t,n,"_first","_last",t._sort?"_start":0),fc(n)||(t._recent=n),i||pp(t,n),t._ts<0&&Xo(t,t._tTime),t},hp=function(t,n){return(rn.ScrollTrigger||iu("scrollTrigger",n))&&rn.ScrollTrigger.create(n,t)},_p=function(t,n,r,i,s){if(fu(t,n,s),!t._initted)return 1;if(!r&&t._pt&&!he&&(t._dur&&t.vars.lazy!==!1||!t._dur&&t.vars.lazy)&&ap!==Je.frame)return cr.push(t),t._lazy=[s,i],1},Mb=function e(t){var n=t.parent;return n&&n._ts&&n._initted&&!n._lock&&(n.rawTime()<0||e(n))},fc=function(t){var n=t.data;return n==="isFromStart"||n==="isStart"},Nb=function(t,n,r,i){var s=t.ratio,o=n<0||!n&&(!t._start&&Mb(t)&&!(!t._initted&&fc(t))||(t._ts<0||t._dp._ts<0)&&!fc(t))?0:1,a=t._rDelay,c=0,u,f,l;if(a&&t._repeat&&(c=$s(0,t._tDur,n),f=ki(c,a),t._yoyo&&f&1&&(o=1-o),f!==ki(t._tTime,a)&&(s=1-o,t.vars.repeatRefresh&&t._initted&&t.invalidate())),o!==s||he||i||t._zTime===wt||!n&&t._zTime){if(!t._initted&&_p(t,n,i,r,c))return;for(l=t._zTime,t._zTime=n||(r?wt:0),r||(r=n&&!l),t.ratio=o,t._from&&(o=1-o),t._time=0,t._tTime=c,u=t._pt;u;)u.r(o,u.d),u=u._next;n<0&&uc(t,n,r,!0),t._onUpdate&&!r&&tn(t,"onUpdate"),c&&t._repeat&&!r&&t.parent&&tn(t,"onRepeat"),(n>=t._tDur||n<0)&&t.ratio===o&&(o&&pr(t,1),!r&&!he&&(tn(t,o?"onComplete":"onReverseComplete",!0),t._prom&&t._prom()))}else t._zTime||(t._zTime=n)},Lb=function(t,n,r){var i;if(r>n)for(i=t._first;i&&i._start<=r;){if(i.data==="isPause"&&i._start>n)return i;i=i._next}else for(i=t._last;i&&i._start>=r;){if(i.data==="isPause"&&i._start0&&!i&&Xo(t,t._tTime=t._tDur*a),t.parent&&Go(t),r||Dr(t.parent,t),t},Hf=function(t){return t instanceof Ae?Dr(t):Ci(t,t._dur)},$b={_start:0,endTime:ms,totalDuration:ms},an=function e(t,n,r){var i=t.labels,s=t._recent||$b,o=t.duration()>=fn?s.endTime(!1):t._dur,a,c,u;return ae(n)&&(isNaN(n)||n in i)?(c=n.charAt(0),u=n.substr(-1)==="%",a=n.indexOf("="),c==="<"||c===">"?(a>=0&&(n=n.replace(/=/,"")),(c==="<"?s._start:s.endTime(s._repeat>=0))+(parseFloat(n.substr(1))||0)*(u?(a<0?s:r).totalDuration()/100:1)):a<0?(n in i||(i[n]=o),i[n]):(c=parseFloat(n.charAt(a-1)+n.substr(a+1)),u&&r&&(c=c/100*(we(r)?r[0]:r).totalDuration()),a>1?e(t,n.substr(0,a-1),r)+c:o+c)):n==null?o:+n},ts=function(t,n,r){var i=jn(n[1]),s=(i?2:1)+(t<2?0:1),o=n[s],a,c;if(i&&(o.duration=n[1]),o.parent=r,t){for(a=o,c=r;c&&!("immediateRender"in a);)a=c.vars.defaults||{},c=Le(c.vars.inherit)&&c.parent;o.immediateRender=Le(a.immediateRender),t<2?o.runBackwards=1:o.startAt=n[s-1]}return new qt(n[0],o,n[s+1])},Sr=function(t,n){return t||t===0?n(t):n},$s=function(t,n,r){return rn?n:r},Ee=function(t,n){return!ae(t)||!(n=kb.exec(t))?"":n[1]},Fb=function(t,n,r){return Sr(r,function(i){return $s(t,n,i)})},lc=[].slice,gp=function(t,n){return t&&Nn(t)&&"length"in t&&(!n&&!t.length||t.length-1 in t&&Nn(t[0]))&&!t.nodeType&&t!==Cn},Bb=function(t,n,r){return r===void 0&&(r=[]),t.forEach(function(i){var s;return ae(i)&&!n||gp(i,1)?(s=r).push.apply(s,ln(i)):r.push(i)})||r},ln=function(t,n,r){return It&&!n&&It.selector?It.selector(t):ae(t)&&!r&&(ac||!Oi())?lc.call((n||ru).querySelectorAll(t),0):we(t)?Bb(t,r):gp(t)?lc.call(t,0):t?[t]:[]},dc=function(t){return t=ln(t)[0]||gs("Invalid scope")||{},function(n){var r=t.current||t.nativeElement||t;return ln(n,r.querySelectorAll?r:r===t?gs("Invalid scope")||ru.createElement("div"):t)}},mp=function(t){return t.sort(function(){return .5-Math.random()})},yp=function(t){if(Bt(t))return t;var n=Nn(t)?t:{each:t},r=Mr(n.ease),i=n.from||0,s=parseFloat(n.base)||0,o={},a=i>0&&i<1,c=isNaN(i)||a,u=n.axis,f=i,l=i;return ae(i)?f=l={center:.5,edges:.5,end:1}[i]||0:!a&&c&&(f=i[0],l=i[1]),function(d,p,_){var h=(_||n).length,g=o[h],v,T,k,m,b,x,E,C,O;if(!g){if(O=n.grid==="auto"?0:(n.grid||[1,fn])[1],!O){for(E=-fn;E<(E=_[O++].getBoundingClientRect().left)&&OE&&(E=b),bh?h-1:u?u==="y"?h/O:O:Math.max(O,h/O))||0)*(i==="edges"?-1:1),g.b=h<0?s-h:s,g.u=Ee(n.amount||n.each)||0,r=r&&h<0?Op(r):r}return h=(g[d]-g.min)/g.max||0,Mt(g.b+(r?r(h):h)*g.v)+g.u}},pc=function(t){var n=Math.pow(10,((t+"").split(".")[1]||"").length);return function(r){var i=Mt(Math.round(parseFloat(r)/t)*t*n);return(i-i%1)/n+(jn(r)?0:Ee(r))}},Sp=function(t,n){var r=we(t),i,s;return!r&&Nn(t)&&(i=r=t.radius||fn,t.values?(t=ln(t.values),(s=!jn(t[0]))&&(i*=i)):t=pc(t.increment)),Sr(n,r?Bt(t)?function(o){return s=t(o),Math.abs(s-o)<=i?s:o}:function(o){for(var a=parseFloat(s?o.x:o),c=parseFloat(s?o.y:0),u=fn,f=0,l=t.length,d,p;l--;)s?(d=t[l].x-a,p=t[l].y-c,d=d*d+p*p):d=Math.abs(t[l]-a),di?s-o:o)})},ys=function(t){return t.replace(Tb,function(n){var r=n.indexOf("[")+1,i=n.substring(r||7,r?n.indexOf("]"):n.length-1).split(wb);return bp(r?i:+i[0],r?0:+i[1],+i[2]||1e-5)})},Ep=function(t,n,r,i,s){var o=n-t,a=i-r;return Sr(s,function(c){return r+((c-t)/o*a||0)})},Vb=function e(t,n,r,i){var s=isNaN(t+n)?0:function(p){return(1-p)*t+p*n};if(!s){var o=ae(t),a={},c,u,f,l,d;if(r===!0&&(i=1)&&(r=null),o)t={p:t},n={p:n};else if(we(t)&&!we(n)){for(f=[],l=t.length,d=l-2,u=1;u(a=Math.abs(a))&&(c=o,s=a);return c},tn=function(t,n,r){var i=t.vars,s=i[n],o=It,a=t._ctx,c,u,f;if(s)return c=i[n+"Params"],u=i.callbackScope||t,r&&cr.length&&Oo(),a&&(It=a),f=c?s.apply(u,c):s.call(u),It=o,f},Hi=function(t){return pr(t),t.scrollTrigger&&t.scrollTrigger.kill(!!he),t.progress()<1&&tn(t,"onInterrupt"),t},oi,Tp=[],wp=function(t){if(t)if(t=!t.name&&t.default||t,nu()||t.headless){var n=t.name,r=Bt(t),i=n&&!r&&t.init?function(){this._props=[]}:t,s={init:ms,render:pu,add:uu,kill:av,modifier:ov,rawVars:0},o={targetTest:0,get:0,getSetter:du,aliases:{},register:0};if(Oi(),t!==i){if(Xe[n])return;sn(i,sn(Ro(t,s),o)),xi(i.prototype,xi(s,Ro(t,o))),Xe[i.prop=n]=i,t.targetTest&&(fo.push(i),su[n]=1),n=(n==="css"?"CSS":n.charAt(0).toUpperCase()+n.substr(1))+"Plugin"}op(n,i),t.register&&t.register(He,i,Fe)}else Tp.push(t)},Tt=255,Wi={aqua:[0,Tt,Tt],lime:[0,Tt,0],silver:[192,192,192],black:[0,0,0],maroon:[128,0,0],teal:[0,128,128],blue:[0,0,Tt],navy:[0,0,128],white:[Tt,Tt,Tt],olive:[128,128,0],yellow:[Tt,Tt,0],orange:[Tt,165,0],gray:[128,128,128],purple:[128,0,128],green:[0,128,0],red:[Tt,0,0],pink:[Tt,192,203],cyan:[0,Tt,Tt],transparent:[Tt,Tt,Tt,0]},ga=function(t,n,r){return t+=t<0?1:t>1?-1:0,(t*6<1?n+(r-n)*t*6:t<.5?r:t*3<2?n+(r-n)*(2/3-t)*6:n)*Tt+.5|0},xp=function(t,n,r){var i=t?jn(t)?[t>>16,t>>8&Tt,t&Tt]:0:Wi.black,s,o,a,c,u,f,l,d,p,_;if(!i){if(t.substr(-1)===","&&(t=t.substr(0,t.length-1)),Wi[t])i=Wi[t];else if(t.charAt(0)==="#"){if(t.length<6&&(s=t.charAt(1),o=t.charAt(2),a=t.charAt(3),t="#"+s+s+o+o+a+a+(t.length===5?t.charAt(4)+t.charAt(4):"")),t.length===9)return i=parseInt(t.substr(1,6),16),[i>>16,i>>8&Tt,i&Tt,parseInt(t.substr(7),16)/255];t=parseInt(t.substr(1),16),i=[t>>16,t>>8&Tt,t&Tt]}else if(t.substr(0,3)==="hsl"){if(i=_=t.match(Ff),!n)c=+i[0]%360/360,u=+i[1]/100,f=+i[2]/100,o=f<=.5?f*(u+1):f+u-f*u,s=f*2-o,i.length>3&&(i[3]*=1),i[0]=ga(c+1/3,s,o),i[1]=ga(c,s,o),i[2]=ga(c-1/3,s,o);else if(~t.indexOf("="))return i=t.match(np),r&&i.length<4&&(i[3]=1),i}else i=t.match(Ff)||Wi.transparent;i=i.map(Number)}return n&&!_&&(s=i[0]/Tt,o=i[1]/Tt,a=i[2]/Tt,l=Math.max(s,o,a),d=Math.min(s,o,a),f=(l+d)/2,l===d?c=u=0:(p=l-d,u=f>.5?p/(2-l-d):p/(l+d),c=l===s?(o-a)/p+(ot||v<0)&&(r+=v-n),i+=v,b=i-r,k=b-o,(k>0||T)&&(x=++l.frame,d=b-l.time*1e3,l.time=b=b/1e3,o+=k+(k>=s?4:s-k),m=1),T||(c=u(h)),m)for(p=0;p=v&&p--},_listeners:a},l}(),Oi=function(){return!Ss&&Je.wake()},dt={},qb=/^[\d.\-M][\d.\-,\s]/,Gb=/["']/g,Xb=function(t){for(var n={},r=t.substr(1,t.length-3).split(":"),i=r[0],s=1,o=r.length,a,c,u;s1&&r.config?r.config.apply(null,~t.indexOf("{")?[Xb(n[1])]:Kb(t).split(",").map(fp)):dt._CE&&qb.test(t)?dt._CE("",t):r},Op=function(t){return function(n){return 1-t(1-n)}},Rp=function e(t,n){for(var r=t._first,i;r;)r instanceof Ae?e(r,n):r.vars.yoyoEase&&(!r._yoyo||!r._repeat)&&r._yoyo!==n&&(r.timeline?e(r.timeline,n):(i=r._ease,r._ease=r._yEase,r._yEase=i,r._yoyo=n)),r=r._next},Mr=function(t,n){return t&&(Bt(t)?t:dt[t]||Jb(t))||n},Qr=function(t,n,r,i){r===void 0&&(r=function(c){return 1-n(1-c)}),i===void 0&&(i=function(c){return c<.5?n(c*2)/2:1-n((1-c)*2)/2});var s={easeIn:n,easeOut:r,easeInOut:i},o;return $e(t,function(a){dt[a]=rn[a]=s,dt[o=a.toLowerCase()]=r;for(var c in s)dt[o+(c==="easeIn"?".in":c==="easeOut"?".out":".inOut")]=dt[a+"."+c]=s[c]}),s},Ip=function(t){return function(n){return n<.5?(1-t(1-n*2))/2:.5+t((n-.5)*2)/2}},ma=function e(t,n,r){var i=n>=1?n:1,s=(r||(t?.3:.45))/(n<1?n:1),o=s/oc*(Math.asin(1/i)||0),a=function(f){return f===1?1:i*Math.pow(2,-10*f)*Eb((f-o)*s)+1},c=t==="out"?a:t==="in"?function(u){return 1-a(1-u)}:Ip(a);return s=oc/s,c.config=function(u,f){return e(t,u,f)},c},ya=function e(t,n){n===void 0&&(n=1.70158);var r=function(o){return o?--o*o*((n+1)*o+n)+1:0},i=t==="out"?r:t==="in"?function(s){return 1-r(1-s)}:Ip(r);return i.config=function(s){return e(t,s)},i};$e("Linear,Quad,Cubic,Quart,Quint,Strong",function(e,t){var n=t<5?t+1:t;Qr(e+",Power"+(n-1),t?function(r){return Math.pow(r,n)}:function(r){return r},function(r){return 1-Math.pow(1-r,n)},function(r){return r<.5?Math.pow(r*2,n)/2:1-Math.pow((1-r)*2,n)/2})});dt.Linear.easeNone=dt.none=dt.Linear.easeIn;Qr("Elastic",ma("in"),ma("out"),ma());(function(e,t){var n=1/t,r=2*n,i=2.5*n,s=function(a){return a0?r+(r+this._rDelay)*this._repeat:r):this.totalDuration()&&this._dur},t.totalDuration=function(r){return arguments.length?(this._dirty=0,Ci(this,this._repeat<0?r:(r-this._repeat*this._rDelay)/(this._repeat+1))):this._tDur},t.totalTime=function(r,i){if(Oi(),!arguments.length)return this._tTime;var s=this._dp;if(s&&s.smoothChildTiming&&this._ts){for(Xo(this,r),!s._dp||s.parent||pp(s,this);s&&s.parent;)s.parent._time!==s._start+(s._ts>=0?s._tTime/s._ts:(s.totalDuration()-s._tTime)/-s._ts)&&s.totalTime(s._tTime,!0),s=s.parent;!this.parent&&this._dp.autoRemoveChildren&&(this._ts>0&&r0||!this._tDur&&!r)&&In(this._dp,this,this._start-this._delay)}return(this._tTime!==r||!this._dur&&!i||this._initted&&Math.abs(this._zTime)===wt||!this._initted&&this._dur&&r||!r&&!this._initted&&(this.add||this._ptLookup))&&(this._ts||(this._pTime=r),up(this,r,i)),this},t.time=function(r,i){return arguments.length?this.totalTime(Math.min(this.totalDuration(),r+Uf(this))%(this._dur+this._rDelay)||(r?this._dur:0),i):this._time},t.totalProgress=function(r,i){return arguments.length?this.totalTime(this.totalDuration()*r,i):this.totalDuration()?Math.min(1,this._tTime/this._tDur):this.rawTime()>=0&&this._initted?1:0},t.progress=function(r,i){return arguments.length?this.totalTime(this.duration()*(this._yoyo&&!(this.iteration()&1)?1-r:r)+Uf(this),i):this.duration()?Math.min(1,this._time/this._dur):this.rawTime()>0?1:0},t.iteration=function(r,i){var s=this.duration()+this._rDelay;return arguments.length?this.totalTime(this._time+(r-1)*s,i):this._repeat?ki(this._tTime,s)+1:1},t.timeScale=function(r,i){if(!arguments.length)return this._rts===-wt?0:this._rts;if(this._rts===r)return this;var s=this.parent&&this._ts?Io(this.parent._time,this):this._tTime;return this._rts=+r||0,this._ts=this._ps||r===-wt?0:this._rts,this.totalTime($s(-Math.abs(this._delay),this.totalDuration(),s),i!==!1),Go(this),Ab(this)},t.paused=function(r){return arguments.length?(this._ps!==r&&(this._ps=r,r?(this._pTime=this._tTime||Math.max(-this._delay,this.rawTime()),this._ts=this._act=0):(Oi(),this._ts=this._rts,this.totalTime(this.parent&&!this.parent.smoothChildTiming?this.rawTime():this._tTime||this._pTime,this.progress()===1&&Math.abs(this._zTime)!==wt&&(this._tTime-=wt)))),this):this._ps},t.startTime=function(r){if(arguments.length){this._start=Mt(r);var i=this.parent||this._dp;return i&&(i._sort||!this.parent)&&In(i,this,this._start-this._delay),this}return this._start},t.endTime=function(r){return this._start+(Le(r)?this.totalDuration():this.duration())/Math.abs(this._ts||1)},t.rawTime=function(r){var i=this.parent||this._dp;return i?r&&(!this._ts||this._repeat&&this._time&&this.totalProgress()<1)?this._tTime%(this._dur+this._rDelay):this._ts?Io(i.rawTime(r),this):this._tTime:this._tTime},t.revert=function(r){r===void 0&&(r=Ob);var i=he;return he=r,cu(this)&&(this.timeline&&this.timeline.revert(r),this.totalTime(-.01,r.suppressEvents)),this.data!=="nested"&&r.kill!==!1&&this.kill(),he=i,this},t.globalTime=function(r){for(var i=this,s=arguments.length?r:i.rawTime();i;)s=i._start+s/(Math.abs(i._ts)||1),i=i._dp;return!this.parent&&this._sat?this._sat.globalTime(r):s},t.repeat=function(r){return arguments.length?(this._repeat=r===1/0?-2:r,Hf(this)):this._repeat===-2?1/0:this._repeat},t.repeatDelay=function(r){if(arguments.length){var i=this._time;return this._rDelay=r,Hf(this),i?this.time(i):this}return this._rDelay},t.yoyo=function(r){return arguments.length?(this._yoyo=r,this):this._yoyo},t.seek=function(r,i){return this.totalTime(an(this,r),Le(i))},t.restart=function(r,i){return this.play().totalTime(r?-this._delay:0,Le(i)),this._dur||(this._zTime=-wt),this},t.play=function(r,i){return r!=null&&this.seek(r,i),this.reversed(!1).paused(!1)},t.reverse=function(r,i){return r!=null&&this.seek(r||this.totalDuration(),i),this.reversed(!0).paused(!1)},t.pause=function(r,i){return r!=null&&this.seek(r,i),this.paused(!0)},t.resume=function(){return this.paused(!1)},t.reversed=function(r){return arguments.length?(!!r!==this.reversed()&&this.timeScale(-this._rts||(r?-wt:0)),this):this._rts<0},t.invalidate=function(){return this._initted=this._act=0,this._zTime=-wt,this},t.isActive=function(){var r=this.parent||this._dp,i=this._start,s;return!!(!r||this._ts&&this._initted&&r.isActive()&&(s=r.rawTime(!0))>=i&&s1?(i?(o[r]=i,s&&(o[r+"Params"]=s),r==="onUpdate"&&(this._onUpdate=i)):delete o[r],this):o[r]},t.then=function(r){var i=this,s=i._prom;return new Promise(function(o){var a=Bt(r)?r:lp,c=function(){var f=i.then;i.then=null,s&&s(),Bt(a)&&(a=a(i))&&(a.then||a===i)&&(i.then=f),o(a),i.then=f};i._initted&&i.totalProgress()===1&&i._ts>=0||!i._tTime&&i._ts<0?c():i._prom=c})},t.kill=function(){Hi(this)},e}();sn(bs.prototype,{_time:0,_start:0,_end:0,_tTime:0,_tDur:0,_dirty:0,_repeat:0,_yoyo:!1,parent:null,_initted:!1,_rDelay:0,_ts:1,_dp:0,ratio:0,_zTime:-wt,_prom:0,_ps:!1,_rts:1});var Ae=function(e){Zd(t,e);function t(r,i){var s;return r===void 0&&(r={}),s=e.call(this,r)||this,s.labels={},s.smoothChildTiming=!!r.smoothChildTiming,s.autoRemoveChildren=!!r.autoRemoveChildren,s._sort=Le(r.sortChildren),Nt&&In(r.parent||Nt,zn(s),i),r.reversed&&s.reverse(),r.paused&&s.paused(!0),r.scrollTrigger&&hp(zn(s),r.scrollTrigger),s}var n=t.prototype;return n.to=function(i,s,o){return ts(0,arguments,this),this},n.from=function(i,s,o){return ts(1,arguments,this),this},n.fromTo=function(i,s,o,a){return ts(2,arguments,this),this},n.set=function(i,s,o){return s.duration=0,s.parent=this,Zi(s).repeatDelay||(s.repeat=0),s.immediateRender=!!s.immediateRender,new qt(i,s,an(this,o),1),this},n.call=function(i,s,o){return In(this,qt.delayedCall(0,i,s),o)},n.staggerTo=function(i,s,o,a,c,u,f){return o.duration=s,o.stagger=o.stagger||a,o.onComplete=u,o.onCompleteParams=f,o.parent=this,new qt(i,o,an(this,c)),this},n.staggerFrom=function(i,s,o,a,c,u,f){return o.runBackwards=1,Zi(o).immediateRender=Le(o.immediateRender),this.staggerTo(i,s,o,a,c,u,f)},n.staggerFromTo=function(i,s,o,a,c,u,f,l){return a.startAt=o,Zi(a).immediateRender=Le(a.immediateRender),this.staggerTo(i,s,a,c,u,f,l)},n.render=function(i,s,o){var a=this._time,c=this._dirty?this.totalDuration():this._tDur,u=this._dur,f=i<=0?0:Mt(i),l=this._zTime<0!=i<0&&(this._initted||!u),d,p,_,h,g,v,T,k,m,b,x,E;if(this!==Nt&&f>c&&i>=0&&(f=c),f!==this._tTime||o||l){if(a!==this._time&&u&&(f+=this._time-a,i+=this._time-a),d=f,m=this._start,k=this._ts,v=!k,l&&(u||(a=this._zTime),(i||!s)&&(this._zTime=i)),this._repeat){if(x=this._yoyo,g=u+this._rDelay,this._repeat<-1&&i<0)return this.totalTime(g*100+i,s,o);if(d=Mt(f%g),f===c?(h=this._repeat,d=u):(b=Mt(f/g),h=~~b,h&&h===b&&(d=u,h--),d>u&&(d=u)),b=ki(this._tTime,g),!a&&this._tTime&&b!==h&&this._tTime-b*g-this._dur<=0&&(b=h),x&&h&1&&(d=u-d,E=1),h!==b&&!this._lock){var C=x&&b&1,O=C===(x&&h&1);if(h=a&&i>=0)for(p=this._first;p;){if(_=p._next,(p._act||d>=p._start)&&p._ts&&T!==p){if(p.parent!==this)return this.render(i,s,o);if(p.render(p._ts>0?(d-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(d-p._start)*p._ts,s,o),d!==this._time||!this._ts&&!v){T=0,_&&(f+=this._zTime=-wt);break}}p=_}else{p=this._last;for(var R=i<0?i:d;p;){if(_=p._prev,(p._act||R<=p._end)&&p._ts&&T!==p){if(p.parent!==this)return this.render(i,s,o);if(p.render(p._ts>0?(R-p._start)*p._ts:(p._dirty?p.totalDuration():p._tDur)+(R-p._start)*p._ts,s,o||he&&cu(p)),d!==this._time||!this._ts&&!v){T=0,_&&(f+=this._zTime=R?-wt:wt);break}}p=_}}if(T&&!s&&(this.pause(),T.render(d>=a?0:-wt)._zTime=d>=a?1:-1,this._ts))return this._start=m,Go(this),this.render(i,s,o);this._onUpdate&&!s&&tn(this,"onUpdate",!0),(f===c&&this._tTime>=this.totalDuration()||!f&&a)&&(m===this._start||Math.abs(k)!==Math.abs(this._ts))&&(this._lock||((i||!u)&&(f===c&&this._ts>0||!f&&this._ts<0)&&pr(this,1),!s&&!(i<0&&!a)&&(f||a||!c)&&(tn(this,f===c&&i>=0?"onComplete":"onReverseComplete",!0),this._prom&&!(f0)&&this._prom())))}return this},n.add=function(i,s){var o=this;if(jn(s)||(s=an(this,s,i)),!(i instanceof bs)){if(we(i))return i.forEach(function(a){return o.add(a,s)}),this;if(ae(i))return this.addLabel(i,s);if(Bt(i))i=qt.delayedCall(0,i);else return this}return this!==i?In(this,i,s):this},n.getChildren=function(i,s,o,a){i===void 0&&(i=!0),s===void 0&&(s=!0),o===void 0&&(o=!0),a===void 0&&(a=-fn);for(var c=[],u=this._first;u;)u._start>=a&&(u instanceof qt?s&&c.push(u):(o&&c.push(u),i&&c.push.apply(c,u.getChildren(!0,s,o)))),u=u._next;return c},n.getById=function(i){for(var s=this.getChildren(1,1,1),o=s.length;o--;)if(s[o].vars.id===i)return s[o]},n.remove=function(i){return ae(i)?this.removeLabel(i):Bt(i)?this.killTweensOf(i):(i.parent===this&&qo(this,i),i===this._recent&&(this._recent=this._last),Dr(this))},n.totalTime=function(i,s){return arguments.length?(this._forcing=1,!this._dp&&this._ts&&(this._start=Mt(Je.time-(this._ts>0?i/this._ts:(this.totalDuration()-i)/-this._ts))),e.prototype.totalTime.call(this,i,s),this._forcing=0,this):this._tTime},n.addLabel=function(i,s){return this.labels[i]=an(this,s),this},n.removeLabel=function(i){return delete this.labels[i],this},n.addPause=function(i,s,o){var a=qt.delayedCall(0,s||ms,o);return a.data="isPause",this._hasPause=1,In(this,a,an(this,i))},n.removePause=function(i){var s=this._first;for(i=an(this,i);s;)s._start===i&&s.data==="isPause"&&pr(s),s=s._next},n.killTweensOf=function(i,s,o){for(var a=this.getTweensOf(i,o),c=a.length;c--;)nr!==a[c]&&a[c].kill(i,s);return this},n.getTweensOf=function(i,s){for(var o=[],a=ln(i),c=this._first,u=jn(s),f;c;)c instanceof qt?Rb(c._targets,a)&&(u?(!nr||c._initted&&c._ts)&&c.globalTime(0)<=s&&c.globalTime(c.totalDuration())>s:!s||c.isActive())&&o.push(c):(f=c.getTweensOf(a,s)).length&&o.push.apply(o,f),c=c._next;return o},n.tweenTo=function(i,s){s=s||{};var o=this,a=an(o,i),c=s,u=c.startAt,f=c.onStart,l=c.onStartParams,d=c.immediateRender,p,_=qt.to(o,sn({ease:s.ease||"none",lazy:!1,immediateRender:!1,time:a,overwrite:"auto",duration:s.duration||Math.abs((a-(u&&"time"in u?u.time:o._time))/o.timeScale())||wt,onStart:function(){if(o.pause(),!p){var g=s.duration||Math.abs((a-(u&&"time"in u?u.time:o._time))/o.timeScale());_._dur!==g&&Ci(_,g,0,1).render(_._time,!0,!0),p=1}f&&f.apply(_,l||[])}},s));return d?_.render(0):_},n.tweenFromTo=function(i,s,o){return this.tweenTo(s,sn({startAt:{time:an(this,i)}},o))},n.recent=function(){return this._recent},n.nextLabel=function(i){return i===void 0&&(i=this._time),Wf(this,an(this,i))},n.previousLabel=function(i){return i===void 0&&(i=this._time),Wf(this,an(this,i),1)},n.currentLabel=function(i){return arguments.length?this.seek(i,!0):this.previousLabel(this._time+wt)},n.shiftChildren=function(i,s,o){o===void 0&&(o=0);var a=this._first,c=this.labels,u;for(i=Mt(i);a;)a._start>=o&&(a._start+=i,a._end+=i),a=a._next;if(s)for(u in c)c[u]>=o&&(c[u]+=i);return Dr(this)},n.invalidate=function(i){var s=this._first;for(this._lock=0;s;)s.invalidate(i),s=s._next;return e.prototype.invalidate.call(this,i)},n.clear=function(i){i===void 0&&(i=!0);for(var s=this._first,o;s;)o=s._next,this.remove(s),s=o;return this._dp&&(this._time=this._tTime=this._pTime=0),i&&(this.labels={}),Dr(this)},n.totalDuration=function(i){var s=0,o=this,a=o._last,c=fn,u,f,l;if(arguments.length)return o.timeScale((o._repeat<0?o.duration():o.totalDuration())/(o.reversed()?-i:i));if(o._dirty){for(l=o.parent;a;)u=a._prev,a._dirty&&a.totalDuration(),f=a._start,f>c&&o._sort&&a._ts&&!o._lock?(o._lock=1,In(o,a,f-a._delay,1)._lock=0):c=f,f<0&&a._ts&&(s-=f,(!l&&!o._dp||l&&l.smoothChildTiming)&&(o._start+=Mt(f/o._ts),o._time-=f,o._tTime-=f),o.shiftChildren(-f,!1,-1/0),c=0),a._end>s&&a._ts&&(s=a._end),a=u;Ci(o,o===Nt&&o._time>s?o._time:s,1,1),o._dirty=0}return o._tDur},t.updateRoot=function(i){if(Nt._ts&&(up(Nt,Io(i,Nt)),ap=Je.frame),Je.frame>=Bf){Bf+=nn.autoSleep||120;var s=Nt._first;if((!s||!s._ts)&&nn.autoSleep&&Je._listeners.length<2){for(;s&&!s._ts;)s=s._next;s||Je.sleep()}}},t}(bs);sn(Ae.prototype,{_lock:0,_hasPause:0,_forcing:0});var Qb=function(t,n,r,i,s,o,a){var c=new Fe(this._pt,t,n,0,1,$p,null,s),u=0,f=0,l,d,p,_,h,g,v,T;for(c.b=r,c.e=i,r+="",i+="",(v=~i.indexOf("random("))&&(i=ys(i)),o&&(T=[r,i],o(T,t,n),r=T[0],i=T[1]),d=r.match(ha)||[];l=ha.exec(i);)_=l[0],h=i.substring(u,l.index),p?p=(p+1)%5:h.substr(-5)==="rgba("&&(p=1),_!==d[f++]&&(g=parseFloat(d[f-1])||0,c._pt={_next:c._pt,p:h||f===1?h:",",s:g,c:_.charAt(1)==="="?fi(g,_)-g:parseFloat(_)-g,m:p&&p<4?Math.round:0},u=ha.lastIndex);return c.c=u")}),m.duration();else{x={};for(C in _)C==="ease"||C==="easeEach"||nv(C,_[C],x,_.easeEach);for(C in x)for(H=x[C].sort(function(q,z){return q.t-z.t}),I=0,b=0;bc-wt&&!f?c:iu&&(d=u)),v=this._yoyo&&_&1,v&&(m=this._yEase,d=u-d),g=ki(this._tTime,h),d===a&&!o&&this._initted&&_===g)return this._tTime=l,this;_!==g&&(k&&this._yEase&&Rp(k,v),this.vars.repeatRefresh&&!v&&!this._lock&&d!==h&&this._initted&&(this._lock=o=1,this.render(Mt(h*_),!0).invalidate()._lock=0))}if(!this._initted){if(_p(this,f?i:d,o,s,l))return this._tTime=0,this;if(a!==this._time&&!(o&&this.vars.repeatRefresh&&_!==g))return this;if(u!==this._dur)return this.render(i,s,o)}if(this._tTime=l,this._time=d,!this._act&&this._ts&&(this._act=1,this._lazy=0),this.ratio=T=(m||this._ease)(d/u),this._from&&(this.ratio=T=1-T),!a&&l&&!s&&!g&&(tn(this,"onStart"),this._tTime!==l))return this;for(p=this._pt;p;)p.r(T,p.d),p=p._next;k&&k.render(i<0?i:k._dur*k._ease(d/this._dur),s,o)||this._startAt&&(this._zTime=i),this._onUpdate&&!s&&(f&&uc(this,i,s,o),tn(this,"onUpdate")),this._repeat&&_!==g&&this.vars.onRepeat&&!s&&this.parent&&tn(this,"onRepeat"),(l===this._tDur||!l)&&this._tTime===l&&(f&&!this._onUpdate&&uc(this,i,!0,!0),(i||!u)&&(l===this._tDur&&this._ts>0||!l&&this._ts<0)&&pr(this,1),!s&&!(f&&!a)&&(l||a||v)&&(tn(this,l===c?"onComplete":"onReverseComplete",!0),this._prom&&!(l0)&&this._prom()))}return this},n.targets=function(){return this._targets},n.invalidate=function(i){return(!i||!this.vars.runBackwards)&&(this._startAt=0),this._pt=this._op=this._onUpdate=this._lazy=this.ratio=0,this._ptLookup=[],this.timeline&&this.timeline.invalidate(i),e.prototype.invalidate.call(this,i)},n.resetTo=function(i,s,o,a,c){Ss||Je.wake(),this._ts||this.play();var u=Math.min(this._dur,(this._dp._time-this._start)*this._ts),f;return this._initted||fu(this,u),f=this._ease(u/this._dur),tv(this,i,s,o,a,f,u,c)?this.resetTo(i,s,o,a,1):(Xo(this,0),this.parent||dp(this._dp,this,"_first","_last",this._dp._sort?"_start":0),this.render(0))},n.kill=function(i,s){if(s===void 0&&(s="all"),!i&&(!s||s==="all"))return this._lazy=this._pt=0,this.parent?Hi(this):this.scrollTrigger&&this.scrollTrigger.kill(!!he),this;if(this.timeline){var o=this.timeline.totalDuration();return this.timeline.killTweensOf(i,s,nr&&nr.vars.overwrite!==!0)._first||Hi(this),this.parent&&o!==this.timeline.totalDuration()&&Ci(this,this._dur*this.timeline._tDur/o,0,1),this}var a=this._targets,c=i?ln(i):a,u=this._ptLookup,f=this._pt,l,d,p,_,h,g,v;if((!s||s==="all")&&Pb(a,c))return s==="all"&&(this._pt=0),Hi(this);for(l=this._op=this._op||[],s!=="all"&&(ae(s)&&(h={},$e(s,function(T){return h[T]=1}),s=h),s=ev(a,s)),v=a.length;v--;)if(~c.indexOf(a[v])){d=u[v],s==="all"?(l[v]=s,_=d,p={}):(p=l[v]=l[v]||{},_=s);for(h in _)g=d&&d[h],g&&((!("kill"in g.d)||g.d.kill(h)===!0)&&qo(this,g,"_pt"),delete d[h]),p!=="all"&&(p[h]=1)}return this._initted&&!this._pt&&f&&Hi(this),this},t.to=function(i,s){return new t(i,s,arguments[2])},t.from=function(i,s){return ts(1,arguments)},t.delayedCall=function(i,s,o,a){return new t(s,0,{immediateRender:!1,lazy:!1,overwrite:!1,delay:i,onComplete:s,onReverseComplete:s,onCompleteParams:o,onReverseCompleteParams:o,callbackScope:a})},t.fromTo=function(i,s,o){return ts(2,arguments)},t.set=function(i,s){return s.duration=0,s.repeatDelay||(s.repeat=0),new t(i,s)},t.killTweensOf=function(i,s,o){return Nt.killTweensOf(i,s,o)},t}(bs);sn(qt.prototype,{_targets:[],_lazy:0,_startAt:0,_op:0,_onInit:0});$e("staggerTo,staggerFrom,staggerFromTo",function(e){qt[e]=function(){var t=new Ae,n=lc.call(arguments,0);return n.splice(e==="staggerFromTo"?5:4,0,0),t[e].apply(t,n)}});var lu=function(t,n,r){return t[n]=r},Np=function(t,n,r){return t[n](r)},rv=function(t,n,r,i){return t[n](i.fp,r)},iv=function(t,n,r){return t.setAttribute(n,r)},du=function(t,n){return Bt(t[n])?Np:eu(t[n])&&t.setAttribute?iv:lu},Lp=function(t,n){return n.set(n.t,n.p,Math.round((n.s+n.c*t)*1e6)/1e6,n)},sv=function(t,n){return n.set(n.t,n.p,!!(n.s+n.c*t),n)},$p=function(t,n){var r=n._pt,i="";if(!t&&n.b)i=n.b;else if(t===1&&n.e)i=n.e;else{for(;r;)i=r.p+(r.m?r.m(r.s+r.c*t):Math.round((r.s+r.c*t)*1e4)/1e4)+i,r=r._next;i+=n.c}n.set(n.t,n.p,i,n)},pu=function(t,n){for(var r=n._pt;r;)r.r(t,r.d),r=r._next},ov=function(t,n,r,i){for(var s=this._pt,o;s;)o=s._next,s.p===i&&s.modifier(t,n,r),s=o},av=function(t){for(var n=this._pt,r,i;n;)i=n._next,n.p===t&&!n.op||n.op===t?qo(this,n,"_pt"):n.dep||(r=1),n=i;return!r},cv=function(t,n,r,i){i.mSet(t,n,i.m.call(i.tween,r,i.mt),i)},Fp=function(t){for(var n=t._pt,r,i,s,o;n;){for(r=n._next,i=s;i&&i.pr>n.pr;)i=i._next;(n._prev=i?i._prev:o)?n._prev._next=n:s=n,(n._next=i)?i._prev=n:o=n,n=r}t._pt=s},Fe=function(){function e(n,r,i,s,o,a,c,u,f){this.t=r,this.s=s,this.c=o,this.p=i,this.r=a||Lp,this.d=c||this,this.set=u||lu,this.pr=f||0,this._next=n,n&&(n._prev=this)}var t=e.prototype;return t.modifier=function(r,i,s){this.mSet=this.mSet||this.set,this.set=cv,this.m=r,this.mt=s,this.tween=i},e}();$e(ou+"parent,duration,ease,delay,overwrite,runBackwards,startAt,yoyo,immediateRender,repeat,repeatDelay,data,paused,reversed,lazy,callbackScope,stringFilter,id,yoyoEase,stagger,inherit,repeatRefresh,keyframes,autoRevert,scrollTrigger",function(e){return su[e]=1});rn.TweenMax=rn.TweenLite=qt;rn.TimelineLite=rn.TimelineMax=Ae;Nt=new Ae({sortChildren:!1,defaults:wi,autoRemoveChildren:!0,id:"root",smoothChildTiming:!0});nn.stringFilter=Cp;var Nr=[],lo={},uv=[],Vf=0,fv=0,Sa=function(t){return(lo[t]||uv).map(function(n){return n()})},_c=function(){var t=Date.now(),n=[];t-Vf>2&&(Sa("matchMediaInit"),Nr.forEach(function(r){var i=r.queries,s=r.conditions,o,a,c,u;for(a in i)o=Cn.matchMedia(i[a]).matches,o&&(c=1),o!==s[a]&&(s[a]=o,u=1);u&&(r.revert(),c&&n.push(r))}),Sa("matchMediaRevert"),n.forEach(function(r){return r.onMatch(r,function(i){return r.add(null,i)})}),Vf=t,Sa("matchMedia"))},Bp=function(){function e(n,r){this.selector=r&&dc(r),this.data=[],this._r=[],this.isReverted=!1,this.id=fv++,n&&this.add(n)}var t=e.prototype;return t.add=function(r,i,s){Bt(r)&&(s=i,i=r,r=Bt);var o=this,a=function(){var u=It,f=o.selector,l;return u&&u!==o&&u.data.push(o),s&&(o.selector=dc(s)),It=o,l=i.apply(o,arguments),Bt(l)&&o._r.push(l),It=u,o.selector=f,o.isReverted=!1,l};return o.last=a,r===Bt?a(o,function(c){return o.add(null,c)}):r?o[r]=a:a},t.ignore=function(r){var i=It;It=null,r(this),It=i},t.getTweens=function(){var r=[];return this.data.forEach(function(i){return i instanceof e?r.push.apply(r,i.getTweens()):i instanceof qt&&!(i.parent&&i.parent.data==="nested")&&r.push(i)}),r},t.clear=function(){this._r.length=this.data.length=0},t.kill=function(r,i){var s=this;if(r?function(){for(var a=s.getTweens(),c=s.data.length,u;c--;)u=s.data[c],u.data==="isFlip"&&(u.revert(),u.getChildren(!0,!0,!1).forEach(function(f){return a.splice(a.indexOf(f),1)}));for(a.map(function(f){return{g:f._dur||f._delay||f._sat&&!f._sat.vars.immediateRender?f.globalTime(0):-1/0,t:f}}).sort(function(f,l){return l.g-f.g||-1/0}).forEach(function(f){return f.t.revert(r)}),c=s.data.length;c--;)u=s.data[c],u instanceof Ae?u.data!=="nested"&&(u.scrollTrigger&&u.scrollTrigger.revert(),u.kill()):!(u instanceof qt)&&u.revert&&u.revert(r);s._r.forEach(function(f){return f(r,s)}),s.isReverted=!0}():this.data.forEach(function(a){return a.kill&&a.kill()}),this.clear(),i)for(var o=Nr.length;o--;)Nr[o].id===this.id&&Nr.splice(o,1)},t.revert=function(r){this.kill(r||{})},e}(),lv=function(){function e(n){this.contexts=[],this.scope=n,It&&It.data.push(this)}var t=e.prototype;return t.add=function(r,i,s){Nn(r)||(r={matches:r});var o=new Bp(0,s||this.scope),a=o.conditions={},c,u,f;It&&!o.selector&&(o.selector=It.selector),this.contexts.push(o),i=o.add("onMatch",i),o.queries=r;for(u in r)u==="all"?f=1:(c=Cn.matchMedia(r[u]),c&&(Nr.indexOf(o)<0&&Nr.push(o),(a[u]=c.matches)&&(f=1),c.addListener?c.addListener(_c):c.addEventListener("change",_c)));return f&&i(o,function(l){return o.add(null,l)}),this},t.revert=function(r){this.kill(r||{})},t.kill=function(r){this.contexts.forEach(function(i){return i.kill(r,!0)})},e}(),Po={registerPlugin:function(){for(var t=arguments.length,n=new Array(t),r=0;r1){var i=t.map(function(f){return He.quickSetter(f,n,r)}),s=i.length;return function(f){for(var l=s;l--;)i[l](f)}}t=t[0]||{};var o=Xe[n],a=Ar(t),c=a.harness&&(a.harness.aliases||{})[n]||n,u=o?function(f){var l=new o;oi._pt=0,l.init(t,r?f+r:f,oi,0,[t]),l.render(1,l),oi._pt&&pu(1,oi)}:a.set(t,c);return o?u:function(f){return u(t,c,r?f+r:f,a,1)}},quickTo:function(t,n,r){var i,s=He.to(t,sn((i={},i[n]="+=0.1",i.paused=!0,i.stagger=0,i),r||{})),o=function(c,u,f){return s.resetTo(n,c,u,f)};return o.tween=s,o},isTweening:function(t){return Nt.getTweensOf(t,!0).length>0},defaults:function(t){return t&&t.ease&&(t.ease=Mr(t.ease,wi.ease)),zf(wi,t||{})},config:function(t){return zf(nn,t||{})},registerEffect:function(t){var n=t.name,r=t.effect,i=t.plugins,s=t.defaults,o=t.extendTimeline;(i||"").split(",").forEach(function(a){return a&&!Xe[a]&&!rn[a]&&gs(n+" effect requires "+a+" plugin.")}),_a[n]=function(a,c,u){return r(ln(a),sn(c||{},s),u)},o&&(Ae.prototype[n]=function(a,c,u){return this.add(_a[n](a,Nn(c)?c:(u=c)&&{},this),u)})},registerEase:function(t,n){dt[t]=Mr(n)},parseEase:function(t,n){return arguments.length?Mr(t,n):dt},getById:function(t){return Nt.getById(t)},exportRoot:function(t,n){t===void 0&&(t={});var r=new Ae(t),i,s;for(r.smoothChildTiming=Le(t.smoothChildTiming),Nt.remove(r),r._dp=0,r._time=r._tTime=Nt._time,i=Nt._first;i;)s=i._next,(n||!(!i._dur&&i instanceof qt&&i.vars.onComplete===i._targets[0]))&&In(r,i,i._start-i._delay),i=s;return In(Nt,r,0),r},context:function(t,n){return t?new Bp(t,n):It},matchMedia:function(t){return new lv(t)},matchMediaRefresh:function(){return Nr.forEach(function(t){var n=t.conditions,r,i;for(i in n)n[i]&&(n[i]=!1,r=1);r&&t.revert()})||_c()},addEventListener:function(t,n){var r=lo[t]||(lo[t]=[]);~r.indexOf(n)||r.push(n)},removeEventListener:function(t,n){var r=lo[t],i=r&&r.indexOf(n);i>=0&&r.splice(i,1)},utils:{wrap:Wb,wrapYoyo:Yb,distribute:yp,random:bp,snap:Sp,normalize:Hb,getUnit:Ee,clamp:Fb,splitColor:xp,toArray:ln,selector:dc,mapRange:Ep,pipe:zb,unitize:Ub,interpolate:Vb,shuffle:mp},install:sp,effects:_a,ticker:Je,updateRoot:Ae.updateRoot,plugins:Xe,globalTimeline:Nt,core:{PropTween:Fe,globals:op,Tween:qt,Timeline:Ae,Animation:bs,getCache:Ar,_removeLinkedListItem:qo,reverting:function(){return he},context:function(t){return t&&It&&(It.data.push(t),t._ctx=It),It},suppressOverwrites:function(t){return tu=t}}};$e("to,from,fromTo,delayedCall,set,killTweensOf",function(e){return Po[e]=qt[e]});Je.add(Ae.updateRoot);oi=Po.to({},{duration:0});var dv=function(t,n){for(var r=t._pt;r&&r.p!==n&&r.op!==n&&r.fp!==n;)r=r._next;return r},pv=function(t,n){var r=t._targets,i,s,o;for(i in n)for(s=r.length;s--;)o=t._ptLookup[s][i],o&&(o=o.d)&&(o._pt&&(o=dv(o,i)),o&&o.modifier&&o.modifier(n[i],t,r[s],i))},ba=function(t,n){return{name:t,headless:1,rawVars:1,init:function(i,s,o){o._onInit=function(a){var c,u;if(ae(s)&&(c={},$e(s,function(f){return c[f]=1}),s=c),n){c={};for(u in s)c[u]=n(s[u]);s=c}pv(a,s)}}}},He=Po.registerPlugin({name:"attr",init:function(t,n,r,i,s){var o,a,c;this.tween=r;for(o in n)c=t.getAttribute(o)||"",a=this.add(t,"setAttribute",(c||0)+"",n[o],i,s,0,0,o),a.op=o,a.b=c,this._props.push(o)},render:function(t,n){for(var r=n._pt;r;)he?r.set(r.t,r.p,r.b,r):r.r(t,r.d),r=r._next}},{name:"endArray",headless:1,init:function(t,n){for(var r=n.length;r--;)this.add(t,r,t[r]||0,n[r],0,0,0,0,0,1)}},ba("roundProps",pc),ba("modifiers"),ba("snap",Sp))||Po;qt.version=Ae.version=He.version="3.14.1";ip=1;nu()&&Oi();dt.Power0;dt.Power1;dt.Power2;dt.Power3;dt.Power4;dt.Linear;dt.Quad;dt.Cubic;dt.Quart;dt.Quint;dt.Strong;dt.Elastic;dt.Back;dt.SteppedEase;dt.Bounce;dt.Sine;dt.Expo;dt.Circ;/*! * CSSPlugin 3.14.1 * https://gsap.com * * Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com -*/var ko,Ar,wi,no,jr,Po,so,Cu=function(){return typeof window<"u"},kr={},Gr=180/Math.PI,Ti=Math.PI/180,hi=Math.atan2,Mo=1e8,oo=/([A-Z])/g,ku=/(left|right|width|margin|padding|x)/i,Pu=/[\s,\(]\S/,_r={autoAlpha:"opacity,visibility",scale:"scaleX,scaleY",alpha:"opacity"},Es=function(e,r){return r.set(r.t,r.p,Math.round((r.s+r.c*e)*1e4)/1e4+r.u,r)},Mu=function(e,r){return r.set(r.t,r.p,e===1?r.e:Math.round((r.s+r.c*e)*1e4)/1e4+r.u,r)},Ou=function(e,r){return r.set(r.t,r.p,e?Math.round((r.s+r.c*e)*1e4)/1e4+r.u:r.b,r)},Eu=function(e,r){return r.set(r.t,r.p,e===1?r.e:e?Math.round((r.s+r.c*e)*1e4)/1e4+r.u:r.b,r)},Ru=function(e,r){var t=r.s+r.c*e;r.set(r.t,r.p,~~(t+(t<0?-.5:.5))+r.u,r)},Ua=function(e,r){return r.set(r.t,r.p,e?r.e:r.b,r)},qa=function(e,r){return r.set(r.t,r.p,e!==1?r.b:r.e,r)},Du=function(e,r,t){return e.style[r]=t},Au=function(e,r,t){return e.style.setProperty(r,t)},Fu=function(e,r,t){return e._gsap[r]=t},zu=function(e,r,t){return e._gsap.scaleX=e._gsap.scaleY=t},Lu=function(e,r,t,i,n){var s=e._gsap;s.scaleX=s.scaleY=t,s.renderTransform(n,s)},Iu=function(e,r,t,i,n){var s=e._gsap;s[r]=t,s.renderTransform(n,s)},Ee="transform",Rt=Ee+"Origin",Nu=function a(e,r){var t=this,i=this.target,n=i.style,s=i._gsap;if(e in kr&&n){if(this.tfm=this.tfm||{},e!=="transform")e=_r[e]||e,~e.indexOf(",")?e.split(",").forEach(function(o){return t.tfm[o]=br(i,o)}):this.tfm[e]=s.x?s[e]:br(i,e),e===Rt&&(this.tfm.zOrigin=s.zOrigin);else return _r.transform.split(",").forEach(function(o){return a.call(t,o,r)});if(this.props.indexOf(Ee)>=0)return;s.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Rt,r,"")),e=Ee}(n||r)&&this.props.push(e,r,n[e])},Ga=function(e){e.translate&&(e.removeProperty("translate"),e.removeProperty("scale"),e.removeProperty("rotate"))},Bu=function(){var e=this.props,r=this.target,t=r.style,i=r._gsap,n,s;for(n=0;n=0?Oo[s]:"")+e},Ds=function(){Cu()&&window.document&&(ko=window,Ar=ko.document,wi=Ar.documentElement,jr=Rs("div")||{style:{}},Rs("div"),Ee=Di(Ee),Rt=Ee+"Origin",jr.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Qa=!!Di("perspective"),so=Dt.core.reverting,no=1)},Eo=function(e){var r=e.ownerSVGElement,t=Rs("svg",r&&r.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=e.cloneNode(!0),n;i.style.display="block",t.appendChild(i),wi.appendChild(t);try{n=i.getBBox()}catch{}return t.removeChild(i),wi.removeChild(t),n},Ro=function(e,r){for(var t=r.length;t--;)if(e.hasAttribute(r[t]))return e.getAttribute(r[t])},Za=function(e){var r,t;try{r=e.getBBox()}catch{r=Eo(e),t=1}return r&&(r.width||r.height)||t||(r=Eo(e)),r&&!r.width&&!r.x&&!r.y?{x:+Ro(e,["x","cx","x1"])||0,y:+Ro(e,["y","cy","y1"])||0,width:0,height:0}:r},ja=function(e){return!!(e.getCTM&&(!e.parentNode||e.ownerSVGElement)&&Za(e))},$r=function(e,r){if(r){var t=e.style,i;r in kr&&r!==Rt&&(r=Ee),t.removeProperty?(i=r.substr(0,2),(i==="ms"||r.substr(0,6)==="webkit")&&(r="-"+r),t.removeProperty(i==="--"?r:r.replace(oo,"-$1").toLowerCase())):t.removeAttribute(r)}},Fr=function(e,r,t,i,n,s){var o=new Et(e._pt,r,t,0,1,s?qa:Ua);return e._pt=o,o.b=i,o.e=n,e._props.push(t),o},Do={deg:1,rad:1,turn:1},Yu={grid:1,flex:1},Xr=function a(e,r,t,i){var n=parseFloat(t)||0,s=(t+"").trim().substr((n+"").length)||"px",o=jr.style,l=ku.test(r),u=e.tagName.toLowerCase()==="svg",f=(u?"client":"offset")+(l?"Width":"Height"),d=100,_=i==="px",c=i==="%",p,h,y,C;if(i===s||!n||Do[i]||Do[s])return n;if(s!=="px"&&!_&&(n=a(e,r,t,"px")),C=e.getCTM&&ja(e),(c||s==="%")&&(kr[r]||~r.indexOf("adius")))return p=C?e.getBBox()[l?"width":"height"]:e[f],Le(c?n/p*d:n/100*p);if(o[l?"width":"height"]=d+(_?s:i),h=i!=="rem"&&~r.indexOf("adius")||i==="em"&&e.appendChild&&!u?e:e.parentNode,C&&(h=(e.ownerSVGElement||{}).parentNode),(!h||h===Ar||!h.appendChild)&&(h=Ar.body),y=h._gsap,y&&c&&y.width&&l&&y.time===Yt.time&&!y.uncache)return Le(n/y.width*d);if(c&&(r==="height"||r==="width")){var S=e.style[r];e.style[r]=d+i,p=e[f],S?e.style[r]=S:$r(e,r)}else(c||s==="%")&&!Yu[Vt(h,"display")]&&(o.position=Vt(e,"position")),h===e&&(o.position="static"),h.appendChild(jr),p=jr[f],h.removeChild(jr),o.position="absolute";return l&&c&&(y=ei(h),y.time=Yt.time,y.width=h[f]),Le(_?p*n/d:p&&n?d/p*n:0)},br=function(e,r,t,i){var n;return no||Ds(),r in _r&&r!=="transform"&&(r=_r[r],~r.indexOf(",")&&(r=r.split(",")[0])),kr[r]&&r!=="transform"?(n=dn(e,i),n=r!=="transformOrigin"?n[r]:n.svg?n.origin:Kn(Vt(e,Rt))+" "+n.zOrigin+"px"):(n=e.style[r],(!n||n==="auto"||i||~(n+"").indexOf("calc("))&&(n=Gn[r]&&Gn[r](e,r,t)||Vt(e,r)||_a(e,r)||(r==="opacity"?1:0))),t&&!~(n+"").trim().indexOf(" ")?Xr(e,r,n,t)+t:n},$u=function(e,r,t,i){if(!t||t==="none"){var n=Di(r,e,1),s=n&&Vt(e,n,1);s&&s!==t?(r=n,t=s):r==="borderColor"&&(t=Vt(e,"borderTopColor"))}var o=new Et(this._pt,e.style,r,0,1,Va),l=0,u=0,f,d,_,c,p,h,y,C,S,O,g,b;if(o.b=t,o.e=i,t+="",i+="",i.substring(0,6)==="var(--"&&(i=Vt(e,i.substring(4,i.indexOf(")")))),i==="auto"&&(h=e.style[r],e.style[r]=i,i=Vt(e,r)||i,h?e.style[r]=h:$r(e,r)),f=[t,i],Aa(f),t=f[0],i=f[1],_=t.match(mi)||[],b=i.match(mi)||[],b.length){for(;d=mi.exec(i);)y=d[0],S=i.substring(l,d.index),p?p=(p+1)%5:(S.substr(-5)==="rgba("||S.substr(-5)==="hsla(")&&(p=1),y!==(h=_[u++]||"")&&(c=parseFloat(h)||0,g=h.substr((c+"").length),y.charAt(1)==="="&&(y=bi(c,y)+g),C=parseFloat(y),O=y.substr((C+"").length),l=mi.lastIndex-O.length,O||(O=O||Ht.units[r]||g,l===i.length&&(i+=O,o.e+=O)),g!==O&&(c=Xr(e,r,h,O)||0),o._pt={_next:o._pt,p:S||u===1?S:",",s:c,c:C-c,m:p&&p<4||r==="zIndex"?Math.round:0});o.c=l-1;)o=n[u],kr[o]&&(l=1,o=o==="transformOrigin"?Rt:Ee),$r(t,o);l&&($r(t,Ee),s&&(s.svg&&t.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",dn(t,1),s.uncache=1,Ga(i)))}},Gn={clearProps:function(e,r,t,i,n){if(n.data!=="isFromStart"){var s=e._pt=new Et(e._pt,r,t,0,0,Vu);return s.u=i,s.pr=-10,s.tween=n,e._props.push(t),1}}},hn=[1,0,0,1,0,0],Ja={},el=function(e){return e==="matrix(1, 0, 0, 1, 0, 0)"||e==="none"||!e},Fo=function(e){var r=Vt(e,Ee);return el(r)?hn:r.substr(7).match(la).map(Le)},ao=function(e,r){var t=e._gsap||ei(e),i=e.style,n=Fo(e),s,o,l,u;return t.svg&&e.getAttribute("transform")?(l=e.transform.baseVal.consolidate().matrix,n=[l.a,l.b,l.c,l.d,l.e,l.f],n.join(",")==="1,0,0,1,0,0"?hn:n):(n===hn&&!e.offsetParent&&e!==wi&&!t.svg&&(l=i.display,i.display="block",s=e.parentNode,(!s||!e.offsetParent&&!e.getBoundingClientRect().width)&&(u=1,o=e.nextElementSibling,wi.appendChild(e)),n=Fo(e),l?i.display=l:$r(e,"display"),u&&(o?s.insertBefore(e,o):s?s.appendChild(e):wi.removeChild(e))),r&&n.length>6?[n[0],n[1],n[4],n[5],n[12],n[13]]:n)},As=function(e,r,t,i,n,s){var o=e._gsap,l=n||ao(e,!0),u=o.xOrigin||0,f=o.yOrigin||0,d=o.xOffset||0,_=o.yOffset||0,c=l[0],p=l[1],h=l[2],y=l[3],C=l[4],S=l[5],O=r.split(" "),g=parseFloat(O[0])||0,b=parseFloat(O[1])||0,T,x,k,P;t?l!==hn&&(x=c*y-p*h)&&(k=g*(y/x)+b*(-h/x)+(h*S-y*C)/x,P=g*(-p/x)+b*(c/x)-(c*S-p*C)/x,g=k,b=P):(T=Za(e),g=T.x+(~O[0].indexOf("%")?g/100*T.width:g),b=T.y+(~(O[1]||O[0]).indexOf("%")?b/100*T.height:b)),i||i!==!1&&o.smooth?(C=g-u,S=b-f,o.xOffset=d+(C*c+S*h)-C,o.yOffset=_+(C*p+S*y)-S):o.xOffset=o.yOffset=0,o.xOrigin=g,o.yOrigin=b,o.smooth=!!i,o.origin=r,o.originIsAbsolute=!!t,e.style[Rt]="0px 0px",s&&(Fr(s,o,"xOrigin",u,g),Fr(s,o,"yOrigin",f,b),Fr(s,o,"xOffset",d,o.xOffset),Fr(s,o,"yOffset",_,o.yOffset)),e.setAttribute("data-svg-origin",g+" "+b)},dn=function(e,r){var t=e._gsap||new Ia(e);if("x"in t&&!r&&!t.uncache)return t;var i=e.style,n=t.scaleX<0,s="px",o="deg",l=getComputedStyle(e),u=Vt(e,Rt)||"0",f,d,_,c,p,h,y,C,S,O,g,b,T,x,k,P,M,L,E,Y,I,Z,W,N,ee,Q,m,he,Ne,at,ge,Re;return f=d=_=h=y=C=S=O=g=0,c=p=1,t.svg=!!(e.getCTM&&ja(e)),l.translate&&((l.translate!=="none"||l.scale!=="none"||l.rotate!=="none")&&(i[Ee]=(l.translate!=="none"?"translate3d("+(l.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(l.rotate!=="none"?"rotate("+l.rotate+") ":"")+(l.scale!=="none"?"scale("+l.scale.split(" ").join(",")+") ":"")+(l[Ee]!=="none"?l[Ee]:"")),i.scale=i.rotate=i.translate="none"),x=ao(e,t.svg),t.svg&&(t.uncache?(ee=e.getBBox(),u=t.xOrigin-ee.x+"px "+(t.yOrigin-ee.y)+"px",N=""):N=!r&&e.getAttribute("data-svg-origin"),As(e,N||u,!!N||t.originIsAbsolute,t.smooth!==!1,x)),b=t.xOrigin||0,T=t.yOrigin||0,x!==hn&&(L=x[0],E=x[1],Y=x[2],I=x[3],f=Z=x[4],d=W=x[5],x.length===6?(c=Math.sqrt(L*L+E*E),p=Math.sqrt(I*I+Y*Y),h=L||E?hi(E,L)*Gr:0,S=Y||I?hi(Y,I)*Gr+h:0,S&&(p*=Math.abs(Math.cos(S*Ti))),t.svg&&(f-=b-(b*L+T*Y),d-=T-(b*E+T*I))):(Re=x[6],at=x[7],m=x[8],he=x[9],Ne=x[10],ge=x[11],f=x[12],d=x[13],_=x[14],k=hi(Re,Ne),y=k*Gr,k&&(P=Math.cos(-k),M=Math.sin(-k),N=Z*P+m*M,ee=W*P+he*M,Q=Re*P+Ne*M,m=Z*-M+m*P,he=W*-M+he*P,Ne=Re*-M+Ne*P,ge=at*-M+ge*P,Z=N,W=ee,Re=Q),k=hi(-Y,Ne),C=k*Gr,k&&(P=Math.cos(-k),M=Math.sin(-k),N=L*P-m*M,ee=E*P-he*M,Q=Y*P-Ne*M,ge=I*M+ge*P,L=N,E=ee,Y=Q),k=hi(E,L),h=k*Gr,k&&(P=Math.cos(k),M=Math.sin(k),N=L*P+E*M,ee=Z*P+W*M,E=E*P-L*M,W=W*P-Z*M,L=N,Z=ee),y&&Math.abs(y)+Math.abs(h)>359.9&&(y=h=0,C=180-C),c=Le(Math.sqrt(L*L+E*E+Y*Y)),p=Le(Math.sqrt(W*W+Re*Re)),k=hi(Z,W),S=Math.abs(k)>2e-4?k*Gr:0,g=ge?1/(ge<0?-ge:ge):0),t.svg&&(N=e.getAttribute("transform"),t.forceCSS=e.setAttribute("transform","")||!el(Vt(e,Ee)),N&&e.setAttribute("transform",N))),Math.abs(S)>90&&Math.abs(S)<270&&(n?(c*=-1,S+=h<=0?180:-180,h+=h<=0?180:-180):(p*=-1,S+=S<=0?180:-180)),r=r||t.uncache,t.x=f-((t.xPercent=f&&(!r&&t.xPercent||(Math.round(e.offsetWidth/2)===Math.round(-f)?-50:0)))?e.offsetWidth*t.xPercent/100:0)+s,t.y=d-((t.yPercent=d&&(!r&&t.yPercent||(Math.round(e.offsetHeight/2)===Math.round(-d)?-50:0)))?e.offsetHeight*t.yPercent/100:0)+s,t.z=_+s,t.scaleX=Le(c),t.scaleY=Le(p),t.rotation=Le(h)+o,t.rotationX=Le(y)+o,t.rotationY=Le(C)+o,t.skewX=S+o,t.skewY=O+o,t.transformPerspective=g+s,(t.zOrigin=parseFloat(u.split(" ")[2])||!r&&t.zOrigin||0)&&(i[Rt]=Kn(u)),t.xOffset=t.yOffset=0,t.force3D=Ht.force3D,t.renderTransform=t.svg?Wu:Qa?tl:Hu,t.uncache=0,t},Kn=function(e){return(e=e.split(" "))[0]+" "+e[1]},hs=function(e,r,t){var i=_t(r);return Le(parseFloat(r)+parseFloat(Xr(e,"x",t+"px",i)))+i},Hu=function(e,r){r.z="0px",r.rotationY=r.rotationX="0deg",r.force3D=0,tl(e,r)},Ur="0deg",Li="0px",qr=") ",tl=function(e,r){var t=r||this,i=t.xPercent,n=t.yPercent,s=t.x,o=t.y,l=t.z,u=t.rotation,f=t.rotationY,d=t.rotationX,_=t.skewX,c=t.skewY,p=t.scaleX,h=t.scaleY,y=t.transformPerspective,C=t.force3D,S=t.target,O=t.zOrigin,g="",b=C==="auto"&&e&&e!==1||C===!0;if(O&&(d!==Ur||f!==Ur)){var T=parseFloat(f)*Ti,x=Math.sin(T),k=Math.cos(T),P;T=parseFloat(d)*Ti,P=Math.cos(T),s=hs(S,s,x*P*-O),o=hs(S,o,-Math.sin(T)*-O),l=hs(S,l,k*P*-O+O)}y!==Li&&(g+="perspective("+y+qr),(i||n)&&(g+="translate("+i+"%, "+n+"%) "),(b||s!==Li||o!==Li||l!==Li)&&(g+=l!==Li||b?"translate3d("+s+", "+o+", "+l+") ":"translate("+s+", "+o+qr),u!==Ur&&(g+="rotate("+u+qr),f!==Ur&&(g+="rotateY("+f+qr),d!==Ur&&(g+="rotateX("+d+qr),(_!==Ur||c!==Ur)&&(g+="skew("+_+", "+c+qr),(p!==1||h!==1)&&(g+="scale("+p+", "+h+qr),S.style[Ee]=g||"translate(0, 0)"},Wu=function(e,r){var t=r||this,i=t.xPercent,n=t.yPercent,s=t.x,o=t.y,l=t.rotation,u=t.skewX,f=t.skewY,d=t.scaleX,_=t.scaleY,c=t.target,p=t.xOrigin,h=t.yOrigin,y=t.xOffset,C=t.yOffset,S=t.forceCSS,O=parseFloat(s),g=parseFloat(o),b,T,x,k,P;l=parseFloat(l),u=parseFloat(u),f=parseFloat(f),f&&(f=parseFloat(f),u+=f,l+=f),l||u?(l*=Ti,u*=Ti,b=Math.cos(l)*d,T=Math.sin(l)*d,x=Math.sin(l-u)*-_,k=Math.cos(l-u)*_,u&&(f*=Ti,P=Math.tan(u-f),P=Math.sqrt(1+P*P),x*=P,k*=P,f&&(P=Math.tan(f),P=Math.sqrt(1+P*P),b*=P,T*=P)),b=Le(b),T=Le(T),x=Le(x),k=Le(k)):(b=d,k=_,T=x=0),(O&&!~(s+"").indexOf("px")||g&&!~(o+"").indexOf("px"))&&(O=Xr(c,"x",s,"px"),g=Xr(c,"y",o,"px")),(p||h||y||C)&&(O=Le(O+p-(p*b+h*x)+y),g=Le(g+h-(p*T+h*k)+C)),(i||n)&&(P=c.getBBox(),O=Le(O+i/100*P.width),g=Le(g+n/100*P.height)),P="matrix("+b+","+T+","+x+","+k+","+O+","+g+")",c.setAttribute("transform",P),S&&(c.style[Ee]=P)},Uu=function(e,r,t,i,n){var s=360,o=tt(n),l=parseFloat(n)*(o&&~n.indexOf("rad")?Gr:1),u=l-i,f=i+u+"deg",d,_;return o&&(d=n.split("_")[1],d==="short"&&(u%=s,u!==u%(s/2)&&(u+=u<0?s:-s)),d==="cw"&&u<0?u=(u+s*Mo)%s-~~(u/s)*s:d==="ccw"&&u>0&&(u=(u-s*Mo)%s-~~(u/s)*s)),e._pt=_=new Et(e._pt,r,t,i,u,Mu),_.e=f,_.u="deg",e._props.push(t),_},zo=function(e,r){for(var t in r)e[t]=r[t];return e},qu=function(e,r,t){var i=zo({},t._gsap),n="perspective,force3D,transformOrigin,svgOrigin",s=t.style,o,l,u,f,d,_,c,p;i.svg?(u=t.getAttribute("transform"),t.setAttribute("transform",""),s[Ee]=r,o=dn(t,1),$r(t,Ee),t.setAttribute("transform",u)):(u=getComputedStyle(t)[Ee],s[Ee]=r,o=dn(t,1),s[Ee]=u);for(l in kr)u=i[l],f=o[l],u!==f&&n.indexOf(l)<0&&(c=_t(u),p=_t(f),d=c!==p?Xr(t,l,u,p):parseFloat(u),_=parseFloat(f),e._pt=new Et(e._pt,o,l,d,_-d,Es),e._pt.u=p||0,e._props.push(l));zo(o,i)};Ot("padding,margin,Width,Radius",function(a,e){var r="Top",t="Right",i="Bottom",n="Left",s=(e<3?[r,t,i,n]:[r+n,r+t,i+t,i+n]).map(function(o){return e<2?a+o:"border"+o+a});Gn[e>1?"border"+a:a]=function(o,l,u,f,d){var _,c;if(arguments.length<4)return _=s.map(function(p){return br(o,p,u)}),c=_.join(" "),c.split(_[0]).length===5?_[0]:c;_=(f+"").split(" "),c={},s.forEach(function(p,h){return c[p]=_[h]=_[h]||_[(h-1)/2|0]}),o.init(l,c,d)}});var rl={name:"css",register:Ds,targetTest:function(e){return e.style&&e.nodeType},init:function(e,r,t,i,n){var s=this._props,o=e.style,l=t.vars.startAt,u,f,d,_,c,p,h,y,C,S,O,g,b,T,x,k,P;no||Ds(),this.styles=this.styles||Ka(e),k=this.styles.props,this.tween=t;for(h in r)if(h!=="autoRound"&&(f=r[h],!(Nt[h]&&Na(h,r,t,i,e,n)))){if(c=typeof f,p=Gn[h],c==="function"&&(f=f.call(t,i,e,n),c=typeof f),c==="string"&&~f.indexOf("random(")&&(f=un(f)),p)p(this,e,h,f,t)&&(x=1);else if(h.substr(0,2)==="--")u=(getComputedStyle(e).getPropertyValue(h)+"").trim(),f+="",Nr.lastIndex=0,Nr.test(u)||(y=_t(u),C=_t(f),C?y!==C&&(u=Xr(e,h,u,C)+C):y&&(f+=y)),this.add(o,"setProperty",u,f,i,n,0,0,h),s.push(h),k.push(h,0,o[h]);else if(c!=="undefined"){if(l&&h in l?(u=typeof l[h]=="function"?l[h].call(t,i,e,n):l[h],tt(u)&&~u.indexOf("random(")&&(u=un(u)),_t(u+"")||u==="auto"||(u+=Ht.units[h]||_t(br(e,h))||""),(u+"").charAt(1)==="="&&(u=br(e,h))):u=br(e,h),_=parseFloat(u),S=c==="string"&&f.charAt(1)==="="&&f.substr(0,2),S&&(f=f.substr(2)),d=parseFloat(f),h in _r&&(h==="autoAlpha"&&(_===1&&br(e,"visibility")==="hidden"&&d&&(_=0),k.push("visibility",0,o.visibility),Fr(this,o,"visibility",_?"inherit":"hidden",d?"inherit":"hidden",!d)),h!=="scale"&&h!=="transform"&&(h=_r[h],~h.indexOf(",")&&(h=h.split(",")[0]))),O=h in kr,O){if(this.styles.save(h),P=f,c==="string"&&f.substring(0,6)==="var(--"){if(f=Vt(e,f.substring(4,f.indexOf(")"))),f.substring(0,5)==="calc("){var M=e.style.perspective;e.style.perspective=f,f=Vt(e,"perspective"),M?e.style.perspective=M:$r(e,"perspective")}d=parseFloat(f)}if(g||(b=e._gsap,b.renderTransform&&!r.parseTransform||dn(e,r.parseTransform),T=r.smoothOrigin!==!1&&b.smooth,g=this._pt=new Et(this._pt,o,Ee,0,1,b.renderTransform,b,0,-1),g.dep=1),h==="scale")this._pt=new Et(this._pt,b,"scaleY",b.scaleY,(S?bi(b.scaleY,S+d):d)-b.scaleY||0,Es),this._pt.u=0,s.push("scaleY",h),h+="X";else if(h==="transformOrigin"){k.push(Rt,0,o[Rt]),f=Xu(f),b.svg?As(e,f,0,T,0,this):(C=parseFloat(f.split(" ")[2])||0,C!==b.zOrigin&&Fr(this,b,"zOrigin",b.zOrigin,C),Fr(this,o,h,Kn(u),Kn(f)));continue}else if(h==="svgOrigin"){As(e,f,1,T,0,this);continue}else if(h in Ja){Uu(this,b,h,_,S?bi(_,S+f):f);continue}else if(h==="smoothOrigin"){Fr(this,b,"smooth",b.smooth,f);continue}else if(h==="force3D"){b[h]=f;continue}else if(h==="transform"){qu(this,f,e);continue}}else h in o||(h=Di(h)||h);if(O||(d||d===0)&&(_||_===0)&&!Pu.test(f)&&h in o)y=(u+"").substr((_+"").length),d||(d=0),C=_t(f)||(h in Ht.units?Ht.units[h]:y),y!==C&&(_=Xr(e,h,u,C)),this._pt=new Et(this._pt,O?b:o,h,_,(S?bi(_,S+d):d)-_,!O&&(C==="px"||h==="zIndex")&&r.autoRound!==!1?Ru:Es),this._pt.u=C||0,O&&P!==f?(this._pt.b=u,this._pt.e=P,this._pt.r=Eu):y!==C&&C!=="%"&&(this._pt.b=u,this._pt.r=Ou);else if(h in o)$u.call(this,e,h,u,S?S+f:f);else if(h in e)this.add(e,h,u||e[h],S?S+f:f,i,n);else if(h!=="parseTransform"){Gs(h,f);continue}O||(h in o?k.push(h,0,o[h]):typeof e[h]=="function"?k.push(h,2,e[h]()):k.push(h,1,u||e[h])),s.push(h)}}x&&Ha(this)},render:function(e,r){if(r.tween._time||!so())for(var t=r._pt;t;)t.r(e,t.d),t=t._next;else r.styles.revert()},get:br,aliases:_r,getSetter:function(e,r,t){var i=_r[r];return i&&i.indexOf(",")<0&&(r=i),r in kr&&r!==Rt&&(e._gsap.x||br(e,"x"))?t&&Po===t?r==="scale"?zu:Fu:(Po=t||{})&&(r==="scale"?Lu:Iu):e.style&&!Ws(e.style[r])?Du:~r.indexOf("-")?Au:ro(e,r)},core:{_removeProperty:$r,_getMatrix:ao}};Dt.utils.checkPrefix=Di;Dt.core.getStyleSaver=Ka;(function(a,e,r,t){var i=Ot(a+","+e+","+r,function(n){kr[n]=1});Ot(e,function(n){Ht.units[n]="deg",Ja[n]=1}),_r[i[13]]=a+","+e,Ot(t,function(n){var s=n.split(":");_r[s[1]]=i[s[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");Ot("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(a){Ht.units[a]="px"});Dt.registerPlugin(rl);var vi=Dt.registerPlugin(rl)||Dt;vi.core.Tween;function Gu(a,e){for(var r=0;r=0)return;o.svg&&(this.svgo=i.getAttribute("data-svg-origin"),this.props.push(Be,n,"")),t=Lt}(s||n)&&this.props.push(t,n,s[t])},Hp=function(t){t.translate&&(t.removeProperty("translate"),t.removeProperty("scale"),t.removeProperty("rotate"))},Ov=function(){var t=this.props,n=this.target,r=n.style,i=n._gsap,s,o;for(s=0;s=0?Xf[o]:"")+t},yc=function(){hv()&&window.document&&(jf=window,rr=jf.document,li=rr.documentElement,Ir=mc("div")||{style:{}},mc("div"),Lt=Ri(Lt),Be=Lt+"Origin",Ir.style.cssText="border-width:0;line-height:0;position:absolute;padding:0",Yp=!!Ri("perspective"),_u=He.core.reverting,hu=1)},Kf=function(t){var n=t.ownerSVGElement,r=mc("svg",n&&n.getAttribute("xmlns")||"http://www.w3.org/2000/svg"),i=t.cloneNode(!0),s;i.style.display="block",r.appendChild(i),li.appendChild(r);try{s=i.getBBox()}catch{}return r.removeChild(i),li.removeChild(r),s},Jf=function(t,n){for(var r=n.length;r--;)if(t.hasAttribute(n[r]))return t.getAttribute(n[r])},Vp=function(t){var n,r;try{n=t.getBBox()}catch{n=Kf(t),r=1}return n&&(n.width||n.height)||r||(n=Kf(t)),n&&!n.width&&!n.x&&!n.y?{x:+Jf(t,["x","cx","x1"])||0,y:+Jf(t,["y","cy","y1"])||0,width:0,height:0}:n},jp=function(t){return!!(t.getCTM&&(!t.parentNode||t.ownerSVGElement)&&Vp(t))},hr=function(t,n){if(n){var r=t.style,i;n in qn&&n!==Be&&(n=Lt),r.removeProperty?(i=n.substr(0,2),(i==="ms"||n.substr(0,6)==="webkit")&&(n="-"+n),r.removeProperty(i==="--"?n:n.replace(gu,"-$1").toLowerCase())):r.removeAttribute(n)}},ir=function(t,n,r,i,s,o){var a=new Fe(t._pt,n,r,0,1,o?Up:zp);return t._pt=a,a.b=i,a.e=s,t._props.push(r),a},Qf={deg:1,rad:1,turn:1},Rv={grid:1,flex:1},_r=function e(t,n,r,i){var s=parseFloat(r)||0,o=(r+"").trim().substr((s+"").length)||"px",a=Ir.style,c=_v.test(n),u=t.tagName.toLowerCase()==="svg",f=(u?"client":"offset")+(c?"Width":"Height"),l=100,d=i==="px",p=i==="%",_,h,g,v;if(i===o||!s||Qf[i]||Qf[o])return s;if(o!=="px"&&!d&&(s=e(t,n,r,"px")),v=t.getCTM&&jp(t),(p||o==="%")&&(qn[n]||~n.indexOf("adius")))return _=v?t.getBBox()[c?"width":"height"]:t[f],Ht(p?s/_*l:s/100*_);if(a[c?"width":"height"]=l+(d?o:i),h=i!=="rem"&&~n.indexOf("adius")||i==="em"&&t.appendChild&&!u?t:t.parentNode,v&&(h=(t.ownerSVGElement||{}).parentNode),(!h||h===rr||!h.appendChild)&&(h=rr.body),g=h._gsap,g&&p&&g.width&&c&&g.time===Je.time&&!g.uncache)return Ht(s/g.width*l);if(p&&(n==="height"||n==="width")){var T=t.style[n];t.style[n]=l+i,_=t[f],T?t.style[n]=T:hr(t,n)}else(p||o==="%")&&!Rv[en(h,"display")]&&(a.position=en(t,"position")),h===t&&(a.position="static"),h.appendChild(Ir),_=Ir[f],h.removeChild(Ir),a.position="absolute";return c&&p&&(g=Ar(h),g.time=Je.time,g.width=h[f]),Ht(d?_*s/l:_&&s?l/_*s:0)},Un=function(t,n,r,i){var s;return hu||yc(),n in Pn&&n!=="transform"&&(n=Pn[n],~n.indexOf(",")&&(n=n.split(",")[0])),qn[n]&&n!=="transform"?(s=Es(t,i),s=n!=="transformOrigin"?s[n]:s.svg?s.origin:Do(en(t,Be))+" "+s.zOrigin+"px"):(s=t.style[n],(!s||s==="auto"||i||~(s+"").indexOf("calc("))&&(s=Ao[n]&&Ao[n](t,n,r)||en(t,n)||cp(t,n)||(n==="opacity"?1:0))),r&&!~(s+"").trim().indexOf(" ")?_r(t,n,s,r)+r:s},Iv=function(t,n,r,i){if(!r||r==="none"){var s=Ri(n,t,1),o=s&&en(t,s,1);o&&o!==r?(n=s,r=o):n==="borderColor"&&(r=en(t,"borderTopColor"))}var a=new Fe(this._pt,t.style,n,0,1,$p),c=0,u=0,f,l,d,p,_,h,g,v,T,k,m,b;if(a.b=r,a.e=i,r+="",i+="",i.substring(0,6)==="var(--"&&(i=en(t,i.substring(4,i.indexOf(")")))),i==="auto"&&(h=t.style[n],t.style[n]=i,i=en(t,n)||i,h?t.style[n]=h:hr(t,n)),f=[r,i],Cp(f),r=f[0],i=f[1],d=r.match(si)||[],b=i.match(si)||[],b.length){for(;l=si.exec(i);)g=l[0],T=i.substring(c,l.index),_?_=(_+1)%5:(T.substr(-5)==="rgba("||T.substr(-5)==="hsla(")&&(_=1),g!==(h=d[u++]||"")&&(p=parseFloat(h)||0,m=h.substr((p+"").length),g.charAt(1)==="="&&(g=fi(p,g)+m),v=parseFloat(g),k=g.substr((v+"").length),c=si.lastIndex-k.length,k||(k=k||nn.units[n]||m,c===i.length&&(i+=k,a.e+=k)),m!==k&&(p=_r(t,n,h,k)||0),a._pt={_next:a._pt,p:T||u===1?T:",",s:p,c:v-p,m:_&&_<4||n==="zIndex"?Math.round:0});a.c=c-1;)a=s[u],qn[a]&&(c=1,a=a==="transformOrigin"?Be:Lt),hr(r,a);c&&(hr(r,Lt),o&&(o.svg&&r.removeAttribute("transform"),i.scale=i.rotate=i.translate="none",Es(r,1),o.uncache=1,Hp(i)))}},Ao={clearProps:function(t,n,r,i,s){if(s.data!=="isFromStart"){var o=t._pt=new Fe(t._pt,n,r,0,0,Av);return o.u=i,o.pr=-10,o.tween=s,t._props.push(r),1}}},vs=[1,0,0,1,0,0],qp={},Gp=function(t){return t==="matrix(1, 0, 0, 1, 0, 0)"||t==="none"||!t},tl=function(t){var n=en(t,Lt);return Gp(n)?vs:n.substr(7).match(np).map(Ht)},mu=function(t,n){var r=t._gsap||Ar(t),i=t.style,s=tl(t),o,a,c,u;return r.svg&&t.getAttribute("transform")?(c=t.transform.baseVal.consolidate().matrix,s=[c.a,c.b,c.c,c.d,c.e,c.f],s.join(",")==="1,0,0,1,0,0"?vs:s):(s===vs&&!t.offsetParent&&t!==li&&!r.svg&&(c=i.display,i.display="block",o=t.parentNode,(!o||!t.offsetParent&&!t.getBoundingClientRect().width)&&(u=1,a=t.nextElementSibling,li.appendChild(t)),s=tl(t),c?i.display=c:hr(t,"display"),u&&(a?o.insertBefore(t,a):o?o.appendChild(t):li.removeChild(t))),n&&s.length>6?[s[0],s[1],s[4],s[5],s[12],s[13]]:s)},Sc=function(t,n,r,i,s,o){var a=t._gsap,c=s||mu(t,!0),u=a.xOrigin||0,f=a.yOrigin||0,l=a.xOffset||0,d=a.yOffset||0,p=c[0],_=c[1],h=c[2],g=c[3],v=c[4],T=c[5],k=n.split(" "),m=parseFloat(k[0])||0,b=parseFloat(k[1])||0,x,E,C,O;r?c!==vs&&(E=p*g-_*h)&&(C=m*(g/E)+b*(-h/E)+(h*T-g*v)/E,O=m*(-_/E)+b*(p/E)-(p*T-_*v)/E,m=C,b=O):(x=Vp(t),m=x.x+(~k[0].indexOf("%")?m/100*x.width:m),b=x.y+(~(k[1]||k[0]).indexOf("%")?b/100*x.height:b)),i||i!==!1&&a.smooth?(v=m-u,T=b-f,a.xOffset=l+(v*p+T*h)-v,a.yOffset=d+(v*_+T*g)-T):a.xOffset=a.yOffset=0,a.xOrigin=m,a.yOrigin=b,a.smooth=!!i,a.origin=n,a.originIsAbsolute=!!r,t.style[Be]="0px 0px",o&&(ir(o,a,"xOrigin",u,m),ir(o,a,"yOrigin",f,b),ir(o,a,"xOffset",l,a.xOffset),ir(o,a,"yOffset",d,a.yOffset)),t.setAttribute("data-svg-origin",m+" "+b)},Es=function(t,n){var r=t._gsap||new Pp(t);if("x"in r&&!n&&!r.uncache)return r;var i=t.style,s=r.scaleX<0,o="px",a="deg",c=getComputedStyle(t),u=en(t,Be)||"0",f,l,d,p,_,h,g,v,T,k,m,b,x,E,C,O,R,F,I,H,B,Z,q,z,rt,Q,y,mt,Yt,_e,vt,$t;return f=l=d=h=g=v=T=k=m=0,p=_=1,r.svg=!!(t.getCTM&&jp(t)),c.translate&&((c.translate!=="none"||c.scale!=="none"||c.rotate!=="none")&&(i[Lt]=(c.translate!=="none"?"translate3d("+(c.translate+" 0 0").split(" ").slice(0,3).join(", ")+") ":"")+(c.rotate!=="none"?"rotate("+c.rotate+") ":"")+(c.scale!=="none"?"scale("+c.scale.split(" ").join(",")+") ":"")+(c[Lt]!=="none"?c[Lt]:"")),i.scale=i.rotate=i.translate="none"),E=mu(t,r.svg),r.svg&&(r.uncache?(rt=t.getBBox(),u=r.xOrigin-rt.x+"px "+(r.yOrigin-rt.y)+"px",z=""):z=!n&&t.getAttribute("data-svg-origin"),Sc(t,z||u,!!z||r.originIsAbsolute,r.smooth!==!1,E)),b=r.xOrigin||0,x=r.yOrigin||0,E!==vs&&(F=E[0],I=E[1],H=E[2],B=E[3],f=Z=E[4],l=q=E[5],E.length===6?(p=Math.sqrt(F*F+I*I),_=Math.sqrt(B*B+H*H),h=F||I?ti(I,F)*xr:0,T=H||B?ti(H,B)*xr+h:0,T&&(_*=Math.abs(Math.cos(T*di))),r.svg&&(f-=b-(b*F+x*H),l-=x-(b*I+x*B))):($t=E[6],_e=E[7],y=E[8],mt=E[9],Yt=E[10],vt=E[11],f=E[12],l=E[13],d=E[14],C=ti($t,Yt),g=C*xr,C&&(O=Math.cos(-C),R=Math.sin(-C),z=Z*O+y*R,rt=q*O+mt*R,Q=$t*O+Yt*R,y=Z*-R+y*O,mt=q*-R+mt*O,Yt=$t*-R+Yt*O,vt=_e*-R+vt*O,Z=z,q=rt,$t=Q),C=ti(-H,Yt),v=C*xr,C&&(O=Math.cos(-C),R=Math.sin(-C),z=F*O-y*R,rt=I*O-mt*R,Q=H*O-Yt*R,vt=B*R+vt*O,F=z,I=rt,H=Q),C=ti(I,F),h=C*xr,C&&(O=Math.cos(C),R=Math.sin(C),z=F*O+I*R,rt=Z*O+q*R,I=I*O-F*R,q=q*O-Z*R,F=z,Z=rt),g&&Math.abs(g)+Math.abs(h)>359.9&&(g=h=0,v=180-v),p=Ht(Math.sqrt(F*F+I*I+H*H)),_=Ht(Math.sqrt(q*q+$t*$t)),C=ti(Z,q),T=Math.abs(C)>2e-4?C*xr:0,m=vt?1/(vt<0?-vt:vt):0),r.svg&&(z=t.getAttribute("transform"),r.forceCSS=t.setAttribute("transform","")||!Gp(en(t,Lt)),z&&t.setAttribute("transform",z))),Math.abs(T)>90&&Math.abs(T)<270&&(s?(p*=-1,T+=h<=0?180:-180,h+=h<=0?180:-180):(_*=-1,T+=T<=0?180:-180)),n=n||r.uncache,r.x=f-((r.xPercent=f&&(!n&&r.xPercent||(Math.round(t.offsetWidth/2)===Math.round(-f)?-50:0)))?t.offsetWidth*r.xPercent/100:0)+o,r.y=l-((r.yPercent=l&&(!n&&r.yPercent||(Math.round(t.offsetHeight/2)===Math.round(-l)?-50:0)))?t.offsetHeight*r.yPercent/100:0)+o,r.z=d+o,r.scaleX=Ht(p),r.scaleY=Ht(_),r.rotation=Ht(h)+a,r.rotationX=Ht(g)+a,r.rotationY=Ht(v)+a,r.skewX=T+a,r.skewY=k+a,r.transformPerspective=m+o,(r.zOrigin=parseFloat(u.split(" ")[2])||!n&&r.zOrigin||0)&&(i[Be]=Do(u)),r.xOffset=r.yOffset=0,r.force3D=nn.force3D,r.renderTransform=r.svg?Mv:Yp?Xp:Dv,r.uncache=0,r},Do=function(t){return(t=t.split(" "))[0]+" "+t[1]},va=function(t,n,r){var i=Ee(n);return Ht(parseFloat(n)+parseFloat(_r(t,"x",r+"px",i)))+i},Dv=function(t,n){n.z="0px",n.rotationY=n.rotationX="0deg",n.force3D=0,Xp(t,n)},vr="0deg",$i="0px",Er=") ",Xp=function(t,n){var r=n||this,i=r.xPercent,s=r.yPercent,o=r.x,a=r.y,c=r.z,u=r.rotation,f=r.rotationY,l=r.rotationX,d=r.skewX,p=r.skewY,_=r.scaleX,h=r.scaleY,g=r.transformPerspective,v=r.force3D,T=r.target,k=r.zOrigin,m="",b=v==="auto"&&t&&t!==1||v===!0;if(k&&(l!==vr||f!==vr)){var x=parseFloat(f)*di,E=Math.sin(x),C=Math.cos(x),O;x=parseFloat(l)*di,O=Math.cos(x),o=va(T,o,E*O*-k),a=va(T,a,-Math.sin(x)*-k),c=va(T,c,C*O*-k+k)}g!==$i&&(m+="perspective("+g+Er),(i||s)&&(m+="translate("+i+"%, "+s+"%) "),(b||o!==$i||a!==$i||c!==$i)&&(m+=c!==$i||b?"translate3d("+o+", "+a+", "+c+") ":"translate("+o+", "+a+Er),u!==vr&&(m+="rotate("+u+Er),f!==vr&&(m+="rotateY("+f+Er),l!==vr&&(m+="rotateX("+l+Er),(d!==vr||p!==vr)&&(m+="skew("+d+", "+p+Er),(_!==1||h!==1)&&(m+="scale("+_+", "+h+Er),T.style[Lt]=m||"translate(0, 0)"},Mv=function(t,n){var r=n||this,i=r.xPercent,s=r.yPercent,o=r.x,a=r.y,c=r.rotation,u=r.skewX,f=r.skewY,l=r.scaleX,d=r.scaleY,p=r.target,_=r.xOrigin,h=r.yOrigin,g=r.xOffset,v=r.yOffset,T=r.forceCSS,k=parseFloat(o),m=parseFloat(a),b,x,E,C,O;c=parseFloat(c),u=parseFloat(u),f=parseFloat(f),f&&(f=parseFloat(f),u+=f,c+=f),c||u?(c*=di,u*=di,b=Math.cos(c)*l,x=Math.sin(c)*l,E=Math.sin(c-u)*-d,C=Math.cos(c-u)*d,u&&(f*=di,O=Math.tan(u-f),O=Math.sqrt(1+O*O),E*=O,C*=O,f&&(O=Math.tan(f),O=Math.sqrt(1+O*O),b*=O,x*=O)),b=Ht(b),x=Ht(x),E=Ht(E),C=Ht(C)):(b=l,C=d,x=E=0),(k&&!~(o+"").indexOf("px")||m&&!~(a+"").indexOf("px"))&&(k=_r(p,"x",o,"px"),m=_r(p,"y",a,"px")),(_||h||g||v)&&(k=Ht(k+_-(_*b+h*E)+g),m=Ht(m+h-(_*x+h*C)+v)),(i||s)&&(O=p.getBBox(),k=Ht(k+i/100*O.width),m=Ht(m+s/100*O.height)),O="matrix("+b+","+x+","+E+","+C+","+k+","+m+")",p.setAttribute("transform",O),T&&(p.style[Lt]=O)},Nv=function(t,n,r,i,s){var o=360,a=ae(s),c=parseFloat(s)*(a&&~s.indexOf("rad")?xr:1),u=c-i,f=i+u+"deg",l,d;return a&&(l=s.split("_")[1],l==="short"&&(u%=o,u!==u%(o/2)&&(u+=u<0?o:-o)),l==="cw"&&u<0?u=(u+o*Gf)%o-~~(u/o)*o:l==="ccw"&&u>0&&(u=(u-o*Gf)%o-~~(u/o)*o)),t._pt=d=new Fe(t._pt,n,r,i,u,mv),d.e=f,d.u="deg",t._props.push(r),d},el=function(t,n){for(var r in n)t[r]=n[r];return t},Lv=function(t,n,r){var i=el({},r._gsap),s="perspective,force3D,transformOrigin,svgOrigin",o=r.style,a,c,u,f,l,d,p,_;i.svg?(u=r.getAttribute("transform"),r.setAttribute("transform",""),o[Lt]=n,a=Es(r,1),hr(r,Lt),r.setAttribute("transform",u)):(u=getComputedStyle(r)[Lt],o[Lt]=n,a=Es(r,1),o[Lt]=u);for(c in qn)u=i[c],f=a[c],u!==f&&s.indexOf(c)<0&&(p=Ee(u),_=Ee(f),l=p!==_?_r(r,c,u,_):parseFloat(u),d=parseFloat(f),t._pt=new Fe(t._pt,a,c,l,d-l,gc),t._pt.u=_||0,t._props.push(c));el(a,i)};$e("padding,margin,Width,Radius",function(e,t){var n="Top",r="Right",i="Bottom",s="Left",o=(t<3?[n,r,i,s]:[n+s,n+r,i+r,i+s]).map(function(a){return t<2?e+a:"border"+a+e});Ao[t>1?"border"+e:e]=function(a,c,u,f,l){var d,p;if(arguments.length<4)return d=o.map(function(_){return Un(a,_,u)}),p=d.join(" "),p.split(d[0]).length===5?d[0]:p;d=(f+"").split(" "),p={},o.forEach(function(_,h){return p[_]=d[h]=d[h]||d[(h-1)/2|0]}),a.init(c,p,l)}});var Kp={name:"css",register:yc,targetTest:function(t){return t.style&&t.nodeType},init:function(t,n,r,i,s){var o=this._props,a=t.style,c=r.vars.startAt,u,f,l,d,p,_,h,g,v,T,k,m,b,x,E,C,O;hu||yc(),this.styles=this.styles||Wp(t),C=this.styles.props,this.tween=r;for(h in n)if(h!=="autoRound"&&(f=n[h],!(Xe[h]&&Ap(h,n,r,i,t,s)))){if(p=typeof f,_=Ao[h],p==="function"&&(f=f.call(r,i,t,s),p=typeof f),p==="string"&&~f.indexOf("random(")&&(f=ys(f)),_)_(this,t,h,f,r)&&(E=1);else if(h.substr(0,2)==="--")u=(getComputedStyle(t).getPropertyValue(h)+"").trim(),f+="",ur.lastIndex=0,ur.test(u)||(g=Ee(u),v=Ee(f),v?g!==v&&(u=_r(t,h,u,v)+v):g&&(f+=g)),this.add(a,"setProperty",u,f,i,s,0,0,h),o.push(h),C.push(h,0,a[h]);else if(p!=="undefined"){if(c&&h in c?(u=typeof c[h]=="function"?c[h].call(r,i,t,s):c[h],ae(u)&&~u.indexOf("random(")&&(u=ys(u)),Ee(u+"")||u==="auto"||(u+=nn.units[h]||Ee(Un(t,h))||""),(u+"").charAt(1)==="="&&(u=Un(t,h))):u=Un(t,h),d=parseFloat(u),T=p==="string"&&f.charAt(1)==="="&&f.substr(0,2),T&&(f=f.substr(2)),l=parseFloat(f),h in Pn&&(h==="autoAlpha"&&(d===1&&Un(t,"visibility")==="hidden"&&l&&(d=0),C.push("visibility",0,a.visibility),ir(this,a,"visibility",d?"inherit":"hidden",l?"inherit":"hidden",!l)),h!=="scale"&&h!=="transform"&&(h=Pn[h],~h.indexOf(",")&&(h=h.split(",")[0]))),k=h in qn,k){if(this.styles.save(h),O=f,p==="string"&&f.substring(0,6)==="var(--"){if(f=en(t,f.substring(4,f.indexOf(")"))),f.substring(0,5)==="calc("){var R=t.style.perspective;t.style.perspective=f,f=en(t,"perspective"),R?t.style.perspective=R:hr(t,"perspective")}l=parseFloat(f)}if(m||(b=t._gsap,b.renderTransform&&!n.parseTransform||Es(t,n.parseTransform),x=n.smoothOrigin!==!1&&b.smooth,m=this._pt=new Fe(this._pt,a,Lt,0,1,b.renderTransform,b,0,-1),m.dep=1),h==="scale")this._pt=new Fe(this._pt,b,"scaleY",b.scaleY,(T?fi(b.scaleY,T+l):l)-b.scaleY||0,gc),this._pt.u=0,o.push("scaleY",h),h+="X";else if(h==="transformOrigin"){C.push(Be,0,a[Be]),f=Pv(f),b.svg?Sc(t,f,0,x,0,this):(v=parseFloat(f.split(" ")[2])||0,v!==b.zOrigin&&ir(this,b,"zOrigin",b.zOrigin,v),ir(this,a,h,Do(u),Do(f)));continue}else if(h==="svgOrigin"){Sc(t,f,1,x,0,this);continue}else if(h in qp){Nv(this,b,h,d,T?fi(d,T+f):f);continue}else if(h==="smoothOrigin"){ir(this,b,"smooth",b.smooth,f);continue}else if(h==="force3D"){b[h]=f;continue}else if(h==="transform"){Lv(this,f,t);continue}}else h in a||(h=Ri(h)||h);if(k||(l||l===0)&&(d||d===0)&&!gv.test(f)&&h in a)g=(u+"").substr((d+"").length),l||(l=0),v=Ee(f)||(h in nn.units?nn.units[h]:g),g!==v&&(d=_r(t,h,u,v)),this._pt=new Fe(this._pt,k?b:a,h,d,(T?fi(d,T+l):l)-d,!k&&(v==="px"||h==="zIndex")&&n.autoRound!==!1?bv:gc),this._pt.u=v||0,k&&O!==f?(this._pt.b=u,this._pt.e=O,this._pt.r=Sv):g!==v&&v!=="%"&&(this._pt.b=u,this._pt.r=yv);else if(h in a)Iv.call(this,t,h,u,T?T+f:f);else if(h in t)this.add(t,h,u||t[h],T?T+f:f,i,s);else if(h!=="parseTransform"){iu(h,f);continue}k||(h in a?C.push(h,0,a[h]):typeof t[h]=="function"?C.push(h,2,t[h]()):C.push(h,1,u||t[h])),o.push(h)}}E&&Fp(this)},render:function(t,n){if(n.tween._time||!_u())for(var r=n._pt;r;)r.r(t,r.d),r=r._next;else n.styles.revert()},get:Un,aliases:Pn,getSetter:function(t,n,r){var i=Pn[n];return i&&i.indexOf(",")<0&&(n=i),n in qn&&n!==Be&&(t._gsap.x||Un(t,"x"))?r&&qf===r?n==="scale"?wv:Tv:(qf=r||{})&&(n==="scale"?xv:kv):t.style&&!eu(t.style[n])?vv:~n.indexOf("-")?Ev:du(t,n)},core:{_removeProperty:hr,_getMatrix:mu}};He.utils.checkPrefix=Ri;He.core.getStyleSaver=Wp;(function(e,t,n,r){var i=$e(e+","+t+","+n,function(s){qn[s]=1});$e(t,function(s){nn.units[s]="deg",qp[s]=1}),Pn[i[13]]=e+","+t,$e(r,function(s){var o=s.split(":");Pn[o[1]]=i[o[0]]})})("x,y,z,scale,scaleX,scaleY,xPercent,yPercent","rotation,rotationX,rotationY,skewX,skewY","transform,transformOrigin,svgOrigin,force3D,smoothOrigin,transformPerspective","0:translateX,1:translateY,2:translateZ,8:rotate,8:rotationZ,8:rotateZ,9:rotateX,10:rotateY");$e("x,y,z,top,right,bottom,left,width,height,fontSize,padding,margin,perspective",function(e){nn.units[e]="px"});He.registerPlugin(Kp);var ai=He.registerPlugin(Kp)||He;ai.core.Tween;function $v(e,t){for(var n=0;nl?(n=i,i=p,o=s,s=y):t?i+=p:i=n+(p-n)/(y-o)*(s-o)},d=function(){n=i=t?0:i,o=s=0},_=function(p){var h=o,y=n,C=Zi();return(p||p===0)&&p!==i&&f(p),s===o||C-o>u?0:(i+(t?y:-y))/((t?C:s)-h)*1e3};return{update:f,reset:d,getVelocity:_}},Ii=function(e,r){return r&&!e._gsapAllow&&e.preventDefault(),e.changedTouches?e.changedTouches[0]:e},Lo=function(e){var r=Math.max.apply(Math,e),t=Math.min.apply(Math,e);return Math.abs(r)>=Math.abs(t)?r:t},ll=function(){Qi=st.core.globals().ScrollTrigger,Qi&&Qi.core&&Qu()},ul=function(e){return st=e||ol(),!In&&st&&typeof document<"u"&&document.body&&($t=window,zr=document,Lr=zr.documentElement,Si=zr.body,nl=[$t,zr,Lr,Si],st.utils.clamp,sl=st.core.context||function(){},Kr="onpointerenter"in Si?"pointer":"mouse",il=Ie.isTouch=$t.matchMedia&&$t.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in $t||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,sr=Ie.eventTypes=("ontouchstart"in Lr?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in Lr?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return al=0},500),ll(),In=1),In};Ct.op=qe;ne.cache=0;var Ie=function(){function a(r){this.init(r)}var e=a.prototype;return e.init=function(t){In||ul(st)||console.warn("Please gsap.registerPlugin(Observer)"),Qi||ll();var i=t.tolerance,n=t.dragMinimum,s=t.type,o=t.target,l=t.lineHeight,u=t.debounce,f=t.preventDefault,d=t.onStop,_=t.onStopDelay,c=t.ignore,p=t.wheelSpeed,h=t.event,y=t.onDragStart,C=t.onDragEnd,S=t.onDrag,O=t.onPress,g=t.onRelease,b=t.onRight,T=t.onLeft,x=t.onUp,k=t.onDown,P=t.onChangeX,M=t.onChangeY,L=t.onChange,E=t.onToggleX,Y=t.onToggleY,I=t.onHover,Z=t.onHoverEnd,W=t.onMove,N=t.ignoreCheck,ee=t.isNormalizer,Q=t.onGestureStart,m=t.onGestureEnd,he=t.onWheel,Ne=t.onEnable,at=t.onDisable,ge=t.onClick,Re=t.scrollSpeed,Xe=t.capture,Ce=t.allowClicks,Ge=t.lockAxis,Ke=t.onLockAxis;this.target=o=Pt(o)||Lr,this.vars=t,c&&(c=st.utils.toArray(c)),i=i||1e-9,n=n||0,p=p||1,Re=Re||1,s=s||"wheel,touch,pointer",u=u!==!1,l||(l=parseFloat($t.getComputedStyle(Si).lineHeight)||22);var er,Qe,Ve,ae,ke,rt,mt,w=this,lt=0,D=0,v=t.passive||!f&&t.passive!==!1,R=Vr(o,Ct),B=Vr(o,qe),V=R(),q=B(),re=~s.indexOf("touch")&&!~s.indexOf("pointer")&&sr[0]==="pointerdown",Fe=ji(o),j=o.ownerDocument||zr,xe=[0,0,0],fe=[0,0,0],oe=0,He=function(){return oe=Zi()},z=function(X,ce){return(w.event=X)&&c&&Zu(X.target,c)||ce&&re&&X.pointerType!=="touch"||N&&N(X,ce)},Pr=function(){w._vx.reset(),w._vy.reset(),Qe.pause(),d&&d(w)},kt=function(){var X=w.deltaX=Lo(xe),ce=w.deltaY=Lo(fe),A=Math.abs(X)>=i,G=Math.abs(ce)>=i;L&&(A||G)&&L(w,X,ce,xe,fe),A&&(b&&w.deltaX>0&&b(w),T&&w.deltaX<0&&T(w),P&&P(w),E&&w.deltaX<0!=lt<0&&E(w),lt=w.deltaX,xe[0]=xe[1]=xe[2]=0),G&&(k&&w.deltaY>0&&k(w),x&&w.deltaY<0&&x(w),M&&M(w),Y&&w.deltaY<0!=D<0&&Y(w),D=w.deltaY,fe[0]=fe[1]=fe[2]=0),(ae||Ve)&&(W&&W(w),Ve&&(y&&Ve===1&&y(w),S&&S(w),Ve=0),ae=!1),rt&&!(rt=!1)&&Ke&&Ke(w),ke&&(he(w),ke=!1),er=0},At=function(X,ce,A){xe[A]+=X,fe[A]+=ce,w._vx.update(X),w._vy.update(ce),u?er||(er=requestAnimationFrame(kt)):kt()},yr=function(X,ce){Ge&&!mt&&(w.axis=mt=Math.abs(X)>Math.abs(ce)?"x":"y",rt=!0),mt!=="y"&&(xe[2]+=X,w._vx.update(X,!0)),mt!=="x"&&(fe[2]+=ce,w._vy.update(ce,!0)),u?er||(er=requestAnimationFrame(kt)):kt()},qt=function(X){if(!z(X,1)){X=Ii(X,f);var ce=X.clientX,A=X.clientY,G=ce-w.x,$=A-w.y,K=w.isDragging;w.x=ce,w.y=A,(K||(G||$)&&(Math.abs(w.startX-ce)>=n||Math.abs(w.startY-A)>=n))&&(Ve||(Ve=K?2:1),K||(w.isDragging=!0),yr(G,$))}},tr=w.onPress=function(H){z(H,1)||H&&H.button||(w.axis=mt=null,Qe.pause(),w.isPressed=!0,H=Ii(H),lt=D=0,w.startX=w.x=H.clientX,w.startY=w.y=H.clientY,w._vx.reset(),w._vy.reset(),vt(ee?o:j,sr[1],qt,v,!0),w.deltaX=w.deltaY=0,O&&O(w))},U=w.onRelease=function(H){if(!z(H,1)){yt(ee?o:j,sr[1],qt,!0);var X=!isNaN(w.y-w.startY),ce=w.isDragging,A=ce&&(Math.abs(w.x-w.startX)>3||Math.abs(w.y-w.startY)>3),G=Ii(H);!A&&X&&(w._vx.reset(),w._vy.reset(),f&&Ce&&st.delayedCall(.08,function(){if(Zi()-oe>300&&!H.defaultPrevented){if(H.target.click)H.target.click();else if(j.createEvent){var $=j.createEvent("MouseEvents");$.initMouseEvent("click",!0,!0,$t,1,G.screenX,G.screenY,G.clientX,G.clientY,!1,!1,!1,!1,0,null),H.target.dispatchEvent($)}}})),w.isDragging=w.isGesturing=w.isPressed=!1,d&&ce&&!ee&&Qe.restart(!0),Ve&&kt(),C&&ce&&C(w),g&&g(w,A)}},or=function(X){return X.touches&&X.touches.length>1&&(w.isGesturing=!0)&&Q(X,w.isDragging)},Ze=function(){return(w.isGesturing=!1)||m(w)},de=function(X){if(!z(X)){var ce=R(),A=B();At((ce-V)*Re,(A-q)*Re,1),V=ce,q=A,d&&Qe.restart(!0)}},we=function(X){if(!z(X)){X=Ii(X,f),he&&(ke=!0);var ce=(X.deltaMode===1?l:X.deltaMode===2?$t.innerHeight:1)*p;At(X.deltaX*ce,X.deltaY*ce,0),d&&!ee&&Qe.restart(!0)}},Ft=function(X){if(!z(X)){var ce=X.clientX,A=X.clientY,G=ce-w.x,$=A-w.y;w.x=ce,w.y=A,ae=!0,d&&Qe.restart(!0),(G||$)&&yr(G,$)}},rr=function(X){w.event=X,I(w)},Be=function(X){w.event=X,Z(w)},ir=function(X){return z(X)||Ii(X,f)&&ge(w)};Qe=w._dc=st.delayedCall(_||.25,Pr).pause(),w.deltaX=w.deltaY=0,w._vx=Ls(0,50,!0),w._vy=Ls(0,50,!0),w.scrollX=R,w.scrollY=B,w.isDragging=w.isGesturing=w.isPressed=!1,sl(this),w.enable=function(H){return w.isEnabled||(vt(Fe?j:o,"scroll",zs),s.indexOf("scroll")>=0&&vt(Fe?j:o,"scroll",de,v,Xe),s.indexOf("wheel")>=0&&vt(o,"wheel",we,v,Xe),(s.indexOf("touch")>=0&&il||s.indexOf("pointer")>=0)&&(vt(o,sr[0],tr,v,Xe),vt(j,sr[2],U),vt(j,sr[3],U),Ce&&vt(o,"click",He,!0,!0),ge&&vt(o,"click",ir),Q&&vt(j,"gesturestart",or),m&&vt(j,"gestureend",Ze),I&&vt(o,Kr+"enter",rr),Z&&vt(o,Kr+"leave",Be),W&&vt(o,Kr+"move",Ft)),w.isEnabled=!0,w.isDragging=w.isGesturing=w.isPressed=ae=Ve=!1,w._vx.reset(),w._vy.reset(),V=R(),q=B(),H&&H.type&&tr(H),Ne&&Ne(w)),w},w.disable=function(){w.isEnabled&&(xi.filter(function(H){return H!==w&&ji(H.target)}).length||yt(Fe?j:o,"scroll",zs),w.isPressed&&(w._vx.reset(),w._vy.reset(),yt(ee?o:j,sr[1],qt,!0)),yt(Fe?j:o,"scroll",de,Xe),yt(o,"wheel",we,Xe),yt(o,sr[0],tr,Xe),yt(j,sr[2],U),yt(j,sr[3],U),yt(o,"click",He,!0),yt(o,"click",ir),yt(j,"gesturestart",or),yt(j,"gestureend",Ze),yt(o,Kr+"enter",rr),yt(o,Kr+"leave",Be),yt(o,Kr+"move",Ft),w.isEnabled=w.isPressed=w.isDragging=!1,at&&at(w))},w.kill=w.revert=function(){w.disable();var H=xi.indexOf(w);H>=0&&xi.splice(H,1),Tr===w&&(Tr=0)},xi.push(w),ee&&ji(o)&&(Tr=w),w.enable(h)},Ku(a,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),a}();Ie.version="3.14.1";Ie.create=function(a){return new Ie(a)};Ie.register=ul;Ie.getAll=function(){return xi.slice()};Ie.getById=function(a){return xi.filter(function(e){return e.vars.id===a})[0]};ol()&&st.registerPlugin(Ie);/*! +*/var de,po,Qe,sr,or,pi,Jp,kr,ns,Qp,Wn,Sn,Zp,th=function(){return de||typeof window<"u"&&(de=window.gsap)&&de.registerPlugin&&de},eh=1,ci=[],at=[],Mn=[],rs=Date.now,bc=function(t,n){return n},Bv=function(){var t=ns.core,n=t.bridge||{},r=t._scrollers,i=t._proxies;r.push.apply(r,at),i.push.apply(i,Mn),at=r,Mn=i,bc=function(o,a){return n[o](a)}},fr=function(t,n){return~Mn.indexOf(t)&&Mn[Mn.indexOf(t)+1][n]},is=function(t){return!!~Qp.indexOf(t)},Ce=function(t,n,r,i,s){return t.addEventListener(n,r,{passive:i!==!1,capture:!!s})},ke=function(t,n,r,i){return t.removeEventListener(n,r,!!i)},Vs="scrollLeft",js="scrollTop",vc=function(){return Wn&&Wn.isPressed||at.cache++},Mo=function(t,n){var r=function i(s){if(s||s===0){eh&&(Qe.history.scrollRestoration="manual");var o=Wn&&Wn.isPressed;s=i.v=Math.round(s)||(Wn&&Wn.iOS?1:0),t(s),i.cacheID=at.cache,o&&bc("ss",s)}else(n||at.cache!==i.cacheID||bc("ref"))&&(i.cacheID=at.cache,i.v=t());return i.v+i.offset};return r.offset=0,t&&r},De={s:Vs,p:"left",p2:"Left",os:"right",os2:"Right",d:"width",d2:"Width",a:"x",sc:Mo(function(e){return arguments.length?Qe.scrollTo(e,Zt.sc()):Qe.pageXOffset||sr[Vs]||or[Vs]||pi[Vs]||0})},Zt={s:js,p:"top",p2:"Top",os:"bottom",os2:"Bottom",d:"height",d2:"Height",a:"y",op:De,sc:Mo(function(e){return arguments.length?Qe.scrollTo(De.sc(),e):Qe.pageYOffset||sr[js]||or[js]||pi[js]||0})},Ne=function(t,n){return(n&&n._ctx&&n._ctx.selector||de.utils.toArray)(t)[0]||(typeof t=="string"&&de.config().nullTargetWarn!==!1?console.warn("Element not found:",t):null)},zv=function(t,n){for(var r=n.length;r--;)if(n[r]===t||n[r].contains(t))return!0;return!1},gr=function(t,n){var r=n.s,i=n.sc;is(t)&&(t=sr.scrollingElement||or);var s=at.indexOf(t),o=i===Zt.sc?1:2;!~s&&(s=at.push(t)-1),at[s+o]||Ce(t,"scroll",vc);var a=at[s+o],c=a||(at[s+o]=Mo(fr(t,r),!0)||(is(t)?i:Mo(function(u){return arguments.length?t[r]=u:t[r]})));return c.target=t,a||(c.smooth=de.getProperty(t,"scrollBehavior")==="smooth"),c},Ec=function(t,n,r){var i=t,s=t,o=rs(),a=o,c=n||50,u=Math.max(500,c*3),f=function(_,h){var g=rs();h||g-o>c?(s=i,i=_,a=o,o=g):r?i+=_:i=s+(_-s)/(g-a)*(o-a)},l=function(){s=i=r?0:i,a=o=0},d=function(_){var h=a,g=s,v=rs();return(_||_===0)&&_!==i&&f(_),o===a||v-a>u?0:(i+(r?g:-g))/((r?v:o)-h)*1e3};return{update:f,reset:l,getVelocity:d}},Fi=function(t,n){return n&&!t._gsapAllow&&t.preventDefault(),t.changedTouches?t.changedTouches[0]:t},nl=function(t){var n=Math.max.apply(Math,t),r=Math.min.apply(Math,t);return Math.abs(n)>=Math.abs(r)?n:r},nh=function(){ns=de.core.globals().ScrollTrigger,ns&&ns.core&&Bv()},rh=function(t){return de=t||th(),!po&&de&&typeof document<"u"&&document.body&&(Qe=window,sr=document,or=sr.documentElement,pi=sr.body,Qp=[Qe,sr,or,pi],de.utils.clamp,Zp=de.core.context||function(){},kr="onpointerenter"in pi?"pointer":"mouse",Jp=Wt.isTouch=Qe.matchMedia&&Qe.matchMedia("(hover: none), (pointer: coarse)").matches?1:"ontouchstart"in Qe||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0?2:0,Sn=Wt.eventTypes=("ontouchstart"in or?"touchstart,touchmove,touchcancel,touchend":"onpointerdown"in or?"pointerdown,pointermove,pointercancel,pointerup":"mousedown,mousemove,mouseup,mouseup").split(","),setTimeout(function(){return eh=0},500),nh(),po=1),po};De.op=Zt;at.cache=0;var Wt=function(){function e(n){this.init(n)}var t=e.prototype;return t.init=function(r){po||rh(de)||console.warn("Please gsap.registerPlugin(Observer)"),ns||nh();var i=r.tolerance,s=r.dragMinimum,o=r.type,a=r.target,c=r.lineHeight,u=r.debounce,f=r.preventDefault,l=r.onStop,d=r.onStopDelay,p=r.ignore,_=r.wheelSpeed,h=r.event,g=r.onDragStart,v=r.onDragEnd,T=r.onDrag,k=r.onPress,m=r.onRelease,b=r.onRight,x=r.onLeft,E=r.onUp,C=r.onDown,O=r.onChangeX,R=r.onChangeY,F=r.onChange,I=r.onToggleX,H=r.onToggleY,B=r.onHover,Z=r.onHoverEnd,q=r.onMove,z=r.ignoreCheck,rt=r.isNormalizer,Q=r.onGestureStart,y=r.onGestureEnd,mt=r.onWheel,Yt=r.onEnable,_e=r.onDisable,vt=r.onClick,$t=r.scrollSpeed,Gt=r.capture,Pt=r.allowClicks,te=r.lockAxis,ee=r.onLockAxis;this.target=a=Ne(a)||or,this.vars=r,p&&(p=de.utils.toArray(p)),i=i||1e-9,s=s||0,_=_||1,$t=$t||1,o=o||"wheel,touch,pointer",u=u!==!1,c||(c=parseFloat(Qe.getComputedStyle(pi).lineHeight)||22);var hn,ne,Xt,ft,At,ce,xe,w=this,ge=0,A=0,S=r.passive||!f&&r.passive!==!1,P=gr(a,De),U=gr(a,Zt),V=P(),X=U(),st=~o.indexOf("touch")&&!~o.indexOf("pointer")&&Sn[0]==="pointerdown",zt=is(a),tt=a.ownerDocument||sr,xt=[0,0,0],_t=[0,0,0],ut=0,Kt=function(){return ut=rs()},$=function(Y,gt){return(w.event=Y)&&p&&zv(Y.target,p)||gt&&st&&Y.pointerType!=="touch"||z&&z(Y,gt)},Xn=function(){w._vx.reset(),w._vy.reset(),ne.pause(),l&&l(w)},Me=function(){var Y=w.deltaX=nl(xt),gt=w.deltaY=nl(_t),D=Math.abs(Y)>=i,K=Math.abs(gt)>=i;F&&(D||K)&&F(w,Y,gt,xt,_t),D&&(b&&w.deltaX>0&&b(w),x&&w.deltaX<0&&x(w),O&&O(w),I&&w.deltaX<0!=ge<0&&I(w),ge=w.deltaX,xt[0]=xt[1]=xt[2]=0),K&&(C&&w.deltaY>0&&C(w),E&&w.deltaY<0&&E(w),R&&R(w),H&&w.deltaY<0!=A<0&&H(w),A=w.deltaY,_t[0]=_t[1]=_t[2]=0),(ft||Xt)&&(q&&q(w),Xt&&(g&&Xt===1&&g(w),T&&T(w),Xt=0),ft=!1),ce&&!(ce=!1)&&ee&&ee(w),At&&(mt(w),At=!1),hn=0},Ye=function(Y,gt,D){xt[D]+=Y,_t[D]+=gt,w._vx.update(Y),w._vy.update(gt),u?hn||(hn=requestAnimationFrame(Me)):Me()},Ln=function(Y,gt){te&&!xe&&(w.axis=xe=Math.abs(Y)>Math.abs(gt)?"x":"y",ce=!0),xe!=="y"&&(xt[2]+=Y,w._vx.update(Y,!0)),xe!=="x"&&(_t[2]+=gt,w._vy.update(gt,!0)),u?hn||(hn=requestAnimationFrame(Me)):Me()},on=function(Y){if(!$(Y,1)){Y=Fi(Y,f);var gt=Y.clientX,D=Y.clientY,K=gt-w.x,W=D-w.y,J=w.isDragging;w.x=gt,w.y=D,(J||(K||W)&&(Math.abs(w.startX-gt)>=s||Math.abs(w.startY-D)>=s))&&(Xt||(Xt=J?2:1),J||(w.isDragging=!0),Ln(K,W))}},_n=w.onPress=function(j){$(j,1)||j&&j.button||(w.axis=xe=null,ne.pause(),w.isPressed=!0,j=Fi(j),ge=A=0,w.startX=w.x=j.clientX,w.startY=w.y=j.clientY,w._vx.reset(),w._vy.reset(),Ce(rt?a:tt,Sn[1],on,S,!0),w.deltaX=w.deltaY=0,k&&k(w))},G=w.onRelease=function(j){if(!$(j,1)){ke(rt?a:tt,Sn[1],on,!0);var Y=!isNaN(w.y-w.startY),gt=w.isDragging,D=gt&&(Math.abs(w.x-w.startX)>3||Math.abs(w.y-w.startY)>3),K=Fi(j);!D&&Y&&(w._vx.reset(),w._vy.reset(),f&&Pt&&de.delayedCall(.08,function(){if(rs()-ut>300&&!j.defaultPrevented){if(j.target.click)j.target.click();else if(tt.createEvent){var W=tt.createEvent("MouseEvents");W.initMouseEvent("click",!0,!0,Qe,1,K.screenX,K.screenY,K.clientX,K.clientY,!1,!1,!1,!1,0,null),j.target.dispatchEvent(W)}}})),w.isDragging=w.isGesturing=w.isPressed=!1,l&>&&!rt&&ne.restart(!0),Xt&&Me(),v&>&&v(w),m&&m(w,D)}},Tn=function(Y){return Y.touches&&Y.touches.length>1&&(w.isGesturing=!0)&&Q(Y,w.isDragging)},re=function(){return(w.isGesturing=!1)||y(w)},yt=function(Y){if(!$(Y)){var gt=P(),D=U();Ye((gt-V)*$t,(D-X)*$t,1),V=gt,X=D,l&&ne.restart(!0)}},Ot=function(Y){if(!$(Y)){Y=Fi(Y,f),mt&&(At=!0);var gt=(Y.deltaMode===1?c:Y.deltaMode===2?Qe.innerHeight:1)*_;Ye(Y.deltaX*gt,Y.deltaY*gt,0),l&&!rt&&ne.restart(!0)}},Ve=function(Y){if(!$(Y)){var gt=Y.clientX,D=Y.clientY,K=gt-w.x,W=D-w.y;w.x=gt,w.y=D,ft=!0,l&&ne.restart(!0),(K||W)&&Ln(K,W)}},gn=function(Y){w.event=Y,B(w)},Vt=function(Y){w.event=Y,Z(w)},mn=function(Y){return $(Y)||Fi(Y,f)&&vt(w)};ne=w._dc=de.delayedCall(d||.25,Xn).pause(),w.deltaX=w.deltaY=0,w._vx=Ec(0,50,!0),w._vy=Ec(0,50,!0),w.scrollX=P,w.scrollY=U,w.isDragging=w.isGesturing=w.isPressed=!1,Zp(this),w.enable=function(j){return w.isEnabled||(Ce(zt?tt:a,"scroll",vc),o.indexOf("scroll")>=0&&Ce(zt?tt:a,"scroll",yt,S,Gt),o.indexOf("wheel")>=0&&Ce(a,"wheel",Ot,S,Gt),(o.indexOf("touch")>=0&&Jp||o.indexOf("pointer")>=0)&&(Ce(a,Sn[0],_n,S,Gt),Ce(tt,Sn[2],G),Ce(tt,Sn[3],G),Pt&&Ce(a,"click",Kt,!0,!0),vt&&Ce(a,"click",mn),Q&&Ce(tt,"gesturestart",Tn),y&&Ce(tt,"gestureend",re),B&&Ce(a,kr+"enter",gn),Z&&Ce(a,kr+"leave",Vt),q&&Ce(a,kr+"move",Ve)),w.isEnabled=!0,w.isDragging=w.isGesturing=w.isPressed=ft=Xt=!1,w._vx.reset(),w._vy.reset(),V=P(),X=U(),j&&j.type&&_n(j),Yt&&Yt(w)),w},w.disable=function(){w.isEnabled&&(ci.filter(function(j){return j!==w&&is(j.target)}).length||ke(zt?tt:a,"scroll",vc),w.isPressed&&(w._vx.reset(),w._vy.reset(),ke(rt?a:tt,Sn[1],on,!0)),ke(zt?tt:a,"scroll",yt,Gt),ke(a,"wheel",Ot,Gt),ke(a,Sn[0],_n,Gt),ke(tt,Sn[2],G),ke(tt,Sn[3],G),ke(a,"click",Kt,!0),ke(a,"click",mn),ke(tt,"gesturestart",Tn),ke(tt,"gestureend",re),ke(a,kr+"enter",gn),ke(a,kr+"leave",Vt),ke(a,kr+"move",Ve),w.isEnabled=w.isPressed=w.isDragging=!1,_e&&_e(w))},w.kill=w.revert=function(){w.disable();var j=ci.indexOf(w);j>=0&&ci.splice(j,1),Wn===w&&(Wn=0)},ci.push(w),rt&&is(a)&&(Wn=w),w.enable(h)},Fv(e,[{key:"velocityX",get:function(){return this._vx.getVelocity()}},{key:"velocityY",get:function(){return this._vy.getVelocity()}}]),e}();Wt.version="3.14.1";Wt.create=function(e){return new Wt(e)};Wt.register=rh;Wt.getAll=function(){return ci.slice()};Wt.getById=function(e){return ci.filter(function(t){return t.vars.id===e})[0]};th()&&de.registerPlugin(Wt);/*! * ScrollTrigger 3.14.1 * https://gsap.com * * @license Copyright 2008-2025, GreenSock. All rights reserved. * Subject to the terms at https://gsap.com/standard-license * @author: Jack Doyle, jack@greensock.com -*/var F,pi,ie,be,Bt,pe,lo,Zn,_n,Ji,$i,wn,ht,is,Is,wt,Io,No,gi,fl,ds,cl,bt,Ns,hl,dl,Er,Bs,uo,Ci,fo,en,Ys,_s,Tn=1,dt=Date.now,ps=dt(),Jt=0,Xi=0,Bo=function(e,r,t){var i=It(e)&&(e.substr(0,6)==="clamp("||e.indexOf("max")>-1);return t["_"+r+"Clamp"]=i,i?e.substr(6,e.length-7):e},Yo=function(e,r){return r&&(!It(e)||e.substr(0,6)!=="clamp(")?"clamp("+e+")":e},ju=function a(){return Xi&&requestAnimationFrame(a)},$o=function(){return is=1},Xo=function(){return is=0},cr=function(e){return e},Vi=function(e){return Math.round(e*1e5)/1e5||0},_l=function(){return typeof window<"u"},pl=function(){return F||_l()&&(F=window.gsap)&&F.registerPlugin&&F},ai=function(e){return!!~lo.indexOf(e)},gl=function(e){return(e==="Height"?fo:ie["inner"+e])||Bt["client"+e]||pe["client"+e]},ml=function(e){return Br(e,"getBoundingClientRect")||(ai(e)?function(){return Xn.width=ie.innerWidth,Xn.height=fo,Xn}:function(){return wr(e)})},Ju=function(e,r,t){var i=t.d,n=t.d2,s=t.a;return(s=Br(e,"getBoundingClientRect"))?function(){return s()[i]}:function(){return(r?gl(n):e["client"+n])||0}},ef=function(e,r){return!r||~gr.indexOf(e)?ml(e):function(){return Xn}},pr=function(e,r){var t=r.s,i=r.d2,n=r.d,s=r.a;return Math.max(0,(t="scroll"+i)&&(s=Br(e,t))?s()-ml(e)()[n]:ai(e)?(Bt[t]||pe[t])-gl(i):e[t]-e["offset"+i])},Sn=function(e,r){for(var t=0;t0){for(i-=s,o=0;o=i)return t[o];return t[o-1]}else for(o=t.length,i+=s;o--;)if(t[o]<=i)return t[o];return t[0]}:function(i,n,s){s===void 0&&(s=.001);var o=r(i);return!n||Math.abs(o-i)t&&(i*=r/100),e=e.substr(0,t-1)),e=i+(e in Jn?Jn[e]*r:~e.indexOf("%")?parseFloat(e)*r/100:parseFloat(e)||0)}return e},Mn=function(e,r,t,i,n,s,o,l){var u=n.startColor,f=n.endColor,d=n.fontSize,_=n.indent,c=n.fontWeight,p=be.createElement("div"),h=ai(t)||Br(t,"pinType")==="fixed",y=e.indexOf("scroller")!==-1,C=h?pe:t,S=e.indexOf("start")!==-1,O=S?u:f,g="border-color:"+O+";font-size:"+d+";color:"+O+";font-weight:"+c+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return g+="position:"+((y||l)&&h?"fixed;":"absolute;"),(y||l||!h)&&(g+=(i===qe?co:ho)+":"+(s+parseFloat(_))+"px;"),o&&(g+="box-sizing:border-box;text-align:left;width:"+o.offsetWidth+"px;"),p._isStart=S,p.setAttribute("class","gsap-marker-"+e+(r?" marker-"+r:"")),p.style.cssText=g,p.innerText=r||r===0?e+"-"+r:e,C.children[0]?C.insertBefore(p,C.children[0]):C.appendChild(p),p._offset=p["offset"+i.op.d2],Bn(p,0,i,S),p},Bn=function(e,r,t,i){var n={display:"block"},s=t[i?"os2":"p2"],o=t[i?"p2":"os2"];e._isFlipped=i,n[t.a+"Percent"]=i?-100:0,n[t.a]=i?"1px":0,n["border"+s+Ai]=1,n["border"+o+Ai]=0,n[t.p]=r+"px",F.set(e,n)},te=[],$s={},pn,Wo=function(){return dt()-Jt>34&&(pn||(pn=requestAnimationFrame(Sr)))},_i=function(){(!bt||!bt.isPressed||bt.startX>pe.clientWidth)&&(ne.cache++,bt?pn||(pn=requestAnimationFrame(Sr)):Sr(),Jt||ui("scrollStart"),Jt=dt())},ms=function(){dl=ie.innerWidth,hl=ie.innerHeight},Wi=function(e){ne.cache++,(e===!0||!ht&&!cl&&!be.fullscreenElement&&!be.webkitFullscreenElement&&(!Ns||dl!==ie.innerWidth||Math.abs(ie.innerHeight-hl)>ie.innerHeight*.25))&&Zn.restart(!0)},li={},sf=[],bl=function a(){return Je(se,"scrollEnd",a)||Jr(!0)},ui=function(e){return li[e]&&li[e].map(function(r){return r()})||sf},Lt=[],wl=function(e){for(var r=0;rn,o=i._startClamp&&i.start>=n;(s||o)&&i.setPositions(o?n-1:i.start,s?Math.max(o?n:i.start+1,n):i.end,!0)}),qo(!1),Ys=0,t.forEach(function(i){return i&&i.render&&i.render(-1)}),ne.forEach(function(i){pt(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),Sl(uo,1),Zn.pause(),oi++,Tt=2,Sr(2),te.forEach(function(i){return pt(i.vars.onRefresh)&&i.vars.onRefresh(i)}),Tt=se.isRefreshing=!1,ui("refresh")},Xs=0,Yn=1,on,Sr=function(e){if(e===2||!Tt&&!en){se.isUpdating=!0,on&&on.update(0);var r=te.length,t=dt(),i=t-ps>=50,n=r&&te[0].scroll();if(Yn=Xs>n?-1:1,Tt||(Xs=n),i&&(Jt&&!is&&t-Jt>200&&(Jt=0,ui("scrollEnd")),$i=ps,ps=t),Yn<0){for(wt=r;wt-- >0;)te[wt]&&te[wt].update(0,i);Yn=1}else for(wt=0;wt20),t-=t-T}if(p&&(l[p]=e||-.001,e<0&&(e=0)),s){var k=e+t,P=s._isStart;y="scroll"+i.d2,Bn(s,k,i,P&&k>20||!P&&(d?Math.max(pe[y],Bt[y]):s.parentNode[y])<=k+1),d&&(u=wr(o),d&&(s.style[i.op.p]=u[i.op.p]-i.op.m-s._offset+Ue))}return c&&S&&(y=wr(S),c.seek(_),C=wr(S),c._caScrollDist=y[i.p]-C[i.p],e=e/c._caScrollDist*_),c&&c.seek(h),c?e:Math.round(e)},ff=/(webkit|moz|length|cssText|inset)/i,Ko=function(e,r,t,i){if(e.parentNode!==r){var n=e.style,s,o;if(r===pe){e._stOrig=n.cssText,o=Qt(e);for(s in o)!+s&&!ff.test(s)&&o[s]&&typeof n[s]=="string"&&s!=="0"&&(n[s]=o[s]);n.top=t,n.left=i}else n.cssText=e._stOrig;F.core.getCache(e).uncache=1,r.appendChild(e)}},kl=function(e,r,t){var i=r,n=i;return function(s){var o=Math.round(e());return o!==i&&o!==n&&Math.abs(o-i)>3&&Math.abs(o-n)>3&&(s=o,t&&t()),n=i,i=Math.round(s),i}},En=function(e,r,t){var i={};i[r.p]="+="+t,F.set(e,i)},Qo=function(e,r){var t=Vr(e,r),i="_scroll"+r.p2,n=function s(o,l,u,f,d){var _=s.tween,c=l.onComplete,p={};u=u||t();var h=kl(t,u,function(){_.kill(),s.tween=0});return d=f&&d||0,f=f||o-u,_&&_.kill(),l[i]=o,l.inherit=!1,l.modifiers=p,p[i]=function(){return h(u+f*_.ratio+d*_.ratio*_.ratio)},l.onUpdate=function(){ne.cache++,s.tween&&Sr()},l.onComplete=function(){s.tween=0,c&&c.call(_)},_=s.tween=F.to(e,l),_};return e[i]=t,t.wheelHandler=function(){return n.tween&&n.tween.kill()&&(n.tween=0)},et(e,"wheel",t.wheelHandler),se.isTouch&&et(e,"touchmove",t.wheelHandler),n},se=function(){function a(r,t){pi||a.register(F)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),Bs(this),this.init(r,t)}var e=a.prototype;return e.init=function(t,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Xi){this.update=this.refresh=this.kill=cr;return}t=Vo(It(t)||Hi(t)||t.nodeType?{trigger:t}:t,Pn);var n=t,s=n.onUpdate,o=n.toggleClass,l=n.id,u=n.onToggle,f=n.onRefresh,d=n.scrub,_=n.trigger,c=n.pin,p=n.pinSpacing,h=n.invalidateOnRefresh,y=n.anticipatePin,C=n.onScrubComplete,S=n.onSnapComplete,O=n.once,g=n.snap,b=n.pinReparent,T=n.pinSpacer,x=n.containerAnimation,k=n.fastScrollEnd,P=n.preventOverlaps,M=t.horizontal||t.containerAnimation&&t.horizontal!==!1?Ct:qe,L=!d&&d!==0,E=Pt(t.scroller||ie),Y=F.core.getCache(E),I=ai(E),Z=("pinType"in t?t.pinType:Br(E,"pinType")||I&&"fixed")==="fixed",W=[t.onEnter,t.onLeave,t.onEnterBack,t.onLeaveBack],N=L&&t.toggleActions.split(" "),ee="markers"in t?t.markers:Pn.markers,Q=I?0:parseFloat(Qt(E)["border"+M.p2+Ai])||0,m=this,he=t.onRefreshInit&&function(){return t.onRefreshInit(m)},Ne=Ju(E,I,M),at=ef(E,I),ge=0,Re=0,Xe=0,Ce=Vr(E,M),Ge,Ke,er,Qe,Ve,ae,ke,rt,mt,w,lt,D,v,R,B,V,q,re,Fe,j,xe,fe,oe,He,z,Pr,kt,At,yr,qt,tr,U,or,Ze,de,we,Ft,rr,Be;if(m._startClamp=m._endClamp=!1,m._dir=M,y*=45,m.scroller=E,m.scroll=x?x.time.bind(x):Ce,Qe=Ce(),m.vars=t,i=i||t.animation,"refreshPriority"in t&&(fl=1,t.refreshPriority===-9999&&(on=m)),Y.tweenScroll=Y.tweenScroll||{top:Qo(E,qe),left:Qo(E,Ct)},m.tweenTo=Ge=Y.tweenScroll[M.p],m.scrubDuration=function(A){or=Hi(A)&&A,or?U?U.duration(A):U=F.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:or,paused:!0,onComplete:function(){return C&&C(m)}}):(U&&U.progress(1).kill(),U=0)},i&&(i.vars.lazy=!1,i._initted&&!m.isReverted||i.vars.immediateRender!==!1&&t.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),m.animation=i.pause(),i.scrollTrigger=m,m.scrubDuration(d),qt=0,l||(l=i.vars.id)),g&&((!Qr(g)||g.push)&&(g={snapTo:g}),"scrollBehavior"in pe.style&&F.set(I?[pe,Bt]:E,{scrollBehavior:"auto"}),ne.forEach(function(A){return pt(A)&&A.target===(I?be.scrollingElement||Bt:E)&&(A.smooth=!1)}),er=pt(g.snapTo)?g.snapTo:g.snapTo==="labels"?rf(i):g.snapTo==="labelsDirectional"?nf(i):g.directional!==!1?function(A,G){return po(g.snapTo)(A,dt()-Re<500?0:G.direction)}:F.utils.snap(g.snapTo),Ze=g.duration||{min:.1,max:2},Ze=Qr(Ze)?Ji(Ze.min,Ze.max):Ji(Ze,Ze),de=F.delayedCall(g.delay||or/2||.1,function(){var A=Ce(),G=dt()-Re<500,$=Ge.tween;if((G||Math.abs(m.getVelocity())<10)&&!$&&!is&&ge!==A){var K=(A-ae)/R,je=i&&!L?i.totalProgress():K,le=G?0:(je-tr)/(dt()-$i)*1e3||0,ze=F.utils.clamp(-K,1-K,di(le/2)*le/.185),ut=K+(g.inertia===!1?0:ze),De,Te,me=g,nr=me.onStart,Pe=me.onInterrupt,zt=me.onComplete;if(De=er(ut,m),Hi(De)||(De=ut),Te=Math.max(0,Math.round(ae+De*R)),A<=ke&&A>=ae&&Te!==A){if($&&!$._initted&&$.data<=di(Te-A))return;g.inertia===!1&&(ze=De-K),Ge(Te,{duration:Ze(di(Math.max(di(ut-je),di(De-je))*.185/le/.05||0)),ease:g.ease||"power3",data:di(Te-A),onInterrupt:function(){return de.restart(!0)&&Pe&&Pe(m)},onComplete:function(){m.update(),ge=Ce(),i&&!L&&(U?U.resetTo("totalProgress",De,i._tTime/i._tDur):i.progress(De)),qt=tr=i&&!L?i.totalProgress():m.progress,S&&S(m),zt&&zt(m)}},A,ze*R,Te-A-ze*R),nr&&nr(m,Ge.tween)}}else m.isActive&&ge!==A&&de.restart(!0)}).pause()),l&&($s[l]=m),_=m.trigger=Pt(_||c!==!0&&c),Be=_&&_._gsap&&_._gsap.stRevert,Be&&(Be=Be(m)),c=c===!0?_:Pt(c),It(o)&&(o={targets:_,className:o}),c&&(p===!1||p===Kt||(p=!p&&c.parentNode&&c.parentNode.style&&Qt(c.parentNode).display==="flex"?!1:Ye),m.pin=c,Ke=F.core.getCache(c),Ke.spacer?B=Ke.pinState:(T&&(T=Pt(T),T&&!T.nodeType&&(T=T.current||T.nativeElement),Ke.spacerIsNative=!!T,T&&(Ke.spacerState=On(T))),Ke.spacer=re=T||be.createElement("div"),re.classList.add("pin-spacer"),l&&re.classList.add("pin-spacer-"+l),Ke.pinState=B=On(c)),t.force3D!==!1&&F.set(c,{force3D:!0}),m.spacer=re=Ke.spacer,yr=Qt(c),He=yr[p+M.os2],j=F.getProperty(c),xe=F.quickSetter(c,M.a,Ue),ys(c,re,yr),q=On(c)),ee){D=Qr(ee)?Vo(ee,Ho):Ho,w=Mn("scroller-start",l,E,M,D,0),lt=Mn("scroller-end",l,E,M,D,0,w),Fe=w["offset"+M.op.d2];var ir=Pt(Br(E,"content")||E);rt=this.markerStart=Mn("start",l,ir,M,D,Fe,0,x),mt=this.markerEnd=Mn("end",l,ir,M,D,Fe,0,x),x&&(rr=F.quickSetter([rt,mt],M.a,Ue)),!Z&&!(gr.length&&Br(E,"fixedMarkers")===!0)&&(tf(I?pe:E),F.set([w,lt],{force3D:!0}),Pr=F.quickSetter(w,M.a,Ue),At=F.quickSetter(lt,M.a,Ue))}if(x){var H=x.vars.onUpdate,X=x.vars.onUpdateParams;x.eventCallback("onUpdate",function(){m.update(0,0,1),H&&H.apply(x,X||[])})}if(m.previous=function(){return te[te.indexOf(m)-1]},m.next=function(){return te[te.indexOf(m)+1]},m.revert=function(A,G){if(!G)return m.kill(!0);var $=A!==!1||!m.enabled,K=ht;$!==m.isReverted&&($&&(we=Math.max(Ce(),m.scroll.rec||0),Xe=m.progress,Ft=i&&i.progress()),rt&&[rt,mt,w,lt].forEach(function(je){return je.style.display=$?"none":"block"}),$&&(ht=m,m.update($)),c&&(!b||!m.isActive)&&($?af(c,re,B):ys(c,re,Qt(c),z)),$||m.update($),ht=K,m.isReverted=$)},m.refresh=function(A,G,$,K){if(!((ht||!m.enabled)&&!G)){if(c&&A&&Jt){et(a,"scrollEnd",bl);return}!Tt&&he&&he(m),ht=m,Ge.tween&&!$&&(Ge.tween.kill(),Ge.tween=0),U&&U.pause(),h&&i&&(i.revert({kill:!1}).invalidate(),i.getChildren?i.getChildren(!0,!0,!1).forEach(function(Mr){return Mr.vars.immediateRender&&Mr.render(0,!0,!0)}):i.vars.immediateRender&&i.render(0,!0,!0)),m.isReverted||m.revert(!0,!0),m._subPinOffset=!1;var je=Ne(),le=at(),ze=x?x.duration():pr(E,M),ut=R<=.01||!R,De=0,Te=K||0,me=Qr($)?$.end:t.end,nr=t.endTrigger||_,Pe=Qr($)?$.start:t.start||(t.start===0||!_?0:c?"0 0":"0 100%"),zt=m.pinnedContainer=t.pinnedContainer&&Pt(t.pinnedContainer,m),ar=_&&Math.max(0,te.indexOf(m))||0,it=ar,nt,ft,Wr,mn,ct,We,lr,ns,mo,Fi,ur,zi,yn;for(ee&&Qr($)&&(zi=F.getProperty(w,M.p),yn=F.getProperty(lt,M.p));it-- >0;)We=te[it],We.end||We.refresh(0,1)||(ht=m),lr=We.pin,lr&&(lr===_||lr===c||lr===zt)&&!We.isReverted&&(Fi||(Fi=[]),Fi.unshift(We),We.revert(!0,!0)),We!==te[it]&&(ar--,it--);for(pt(Pe)&&(Pe=Pe(m)),Pe=Bo(Pe,"start",m),ae=Go(Pe,_,je,M,Ce(),rt,w,m,le,Q,Z,ze,x,m._startClamp&&"_startClamp")||(c?-.001:0),pt(me)&&(me=me(m)),It(me)&&!me.indexOf("+=")&&(~me.indexOf(" ")?me=(It(Pe)?Pe.split(" ")[0]:"")+me:(De=Nn(me.substr(2),je),me=It(Pe)?Pe:(x?F.utils.mapRange(0,x.duration(),x.scrollTrigger.start,x.scrollTrigger.end,ae):ae)+De,nr=_)),me=Bo(me,"end",m),ke=Math.max(ae,Go(me||(nr?"100% 0":ze),nr,je,M,Ce()+De,mt,lt,m,le,Q,Z,ze,x,m._endClamp&&"_endClamp"))||-.001,De=0,it=ar;it--;)We=te[it]||{},lr=We.pin,lr&&We.start-We._pinPush<=ae&&!x&&We.end>0&&(nt=We.end-(m._startClamp?Math.max(0,We.start):We.start),(lr===_&&We.start-We._pinPush=pr(E,M)))nt=Qt(c),mn=M===qe,Wr=Ce(),fe=parseFloat(j(M.a))+Te,!ze&&ke>1&&(ur=(I?be.scrollingElement||Bt:E).style,ur={style:ur,value:ur["overflow"+M.a.toUpperCase()]},I&&Qt(pe)["overflow"+M.a.toUpperCase()]!=="scroll"&&(ur.style["overflow"+M.a.toUpperCase()]="scroll")),ys(c,re,nt),q=On(c),ft=wr(c,!0),ns=Z&&Vr(E,mn?Ct:qe)(),p?(z=[p+M.os2,R+Te+Ue],z.t=re,it=p===Ye?jn(c,M)+R+Te:0,it&&(z.push(M.d,it+Ue),re.style.flexBasis!=="auto"&&(re.style.flexBasis=it+Ue)),ki(z),zt&&te.forEach(function(Mr){Mr.pin===zt&&Mr.vars.pinSpacing!==!1&&(Mr._subPinOffset=!0)}),Z&&Ce(we)):(it=jn(c,M),it&&re.style.flexBasis!=="auto"&&(re.style.flexBasis=it+Ue)),Z&&(ct={top:ft.top+(mn?Wr-ae:ns)+Ue,left:ft.left+(mn?ns:Wr-ae)+Ue,boxSizing:"border-box",position:"fixed"},ct[ni]=ct["max"+Ai]=Math.ceil(ft.width)+Ue,ct[si]=ct["max"+_o]=Math.ceil(ft.height)+Ue,ct[Kt]=ct[Kt+nn]=ct[Kt+tn]=ct[Kt+sn]=ct[Kt+rn]="0",ct[Ye]=nt[Ye],ct[Ye+nn]=nt[Ye+nn],ct[Ye+tn]=nt[Ye+tn],ct[Ye+sn]=nt[Ye+sn],ct[Ye+rn]=nt[Ye+rn],V=uf(B,ct,b),Tt&&Ce(0)),i?(mo=i._initted,ds(1),i.render(i.duration(),!0,!0),oe=j(M.a)-fe+R+Te,kt=Math.abs(R-oe)>1,Z&&kt&&V.splice(V.length-2,2),i.render(0,!0,!0),mo||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),ds(0)):oe=R,ur&&(ur.value?ur.style["overflow"+M.a.toUpperCase()]=ur.value:ur.style.removeProperty("overflow-"+M.a));else if(_&&Ce()&&!x)for(ft=_.parentNode;ft&&ft!==pe;)ft._pinOffset&&(ae-=ft._pinOffset,ke-=ft._pinOffset),ft=ft.parentNode;Fi&&Fi.forEach(function(Mr){return Mr.revert(!1,!0)}),m.start=ae,m.end=ke,Qe=Ve=Tt?we:Ce(),!x&&!Tt&&(Qe0?te.slice(0,G).reverse():te.slice(G+1);return(It(A)?$.filter(function(K){return K.vars.preventOverlaps===A}):$).filter(function(K){return m.direction>0?K.end<=ae:K.start>=ke})},m.update=function(A,G,$){if(!(x&&!$&&!A)){var K=Tt===!0?we:m.scroll(),je=A?0:(K-ae)/R,le=je<0?0:je>1?1:je||0,ze=m.progress,ut,De,Te,me,nr,Pe,zt,ar;if(G&&(Ve=Qe,Qe=x?Ce():K,g&&(tr=qt,qt=i&&!L?i.totalProgress():le)),y&&c&&!ht&&!Tn&&Jt&&(!le&&aeK+(K-Ve)/(dt()-$i)*y&&(le=.9999)),le!==ze&&m.enabled){if(ut=m.isActive=!!le&&le<1,De=!!ze&&ze<1,Pe=ut!==De,nr=Pe||!!le!=!!ze,m.direction=le>ze?1:-1,m.progress=le,nr&&!ht&&(Te=le&&!ze?0:le===1?1:ze===1?2:3,L&&(me=!Pe&&N[Te+1]!=="none"&&N[Te+1]||N[Te],ar=i&&(me==="complete"||me==="reset"||me in i))),P&&(Pe||ar)&&(ar||d||!i)&&(pt(P)?P(m):m.getTrailing(P).forEach(function(Wr){return Wr.endAnimation()})),L||(U&&!ht&&!Tn?(U._dp._time-U._start!==U._time&&U.render(U._dp._time-U._start),U.resetTo?U.resetTo("totalProgress",le,i._tTime/i._tDur):(U.vars.totalProgress=le,U.invalidate().restart())):i&&i.totalProgress(le,!!(ht&&(Re||A)))),c){if(A&&p&&(re.style[p+M.os2]=He),!Z)xe(Vi(fe+oe*le));else if(nr){if(zt=!A&&le>ze&&ke+1>K&&K+1>=pr(E,M),b)if(!A&&(ut||zt)){var it=wr(c,!0),nt=K-ae;Ko(c,pe,it.top+(M===qe?nt:0)+Ue,it.left+(M===qe?0:nt)+Ue)}else Ko(c,re);ki(ut||zt?V:q),kt&&le<1&&ut||xe(fe+(le===1&&!zt?oe:0))}}g&&!Ge.tween&&!ht&&!Tn&&de.restart(!0),o&&(Pe||O&&le&&(le<1||!_s))&&_n(o.targets).forEach(function(Wr){return Wr.classList[ut||O?"add":"remove"](o.className)}),s&&!L&&!A&&s(m),nr&&!ht?(L&&(ar&&(me==="complete"?i.pause().totalProgress(1):me==="reset"?i.restart(!0).pause():me==="restart"?i.restart(!0):i[me]()),s&&s(m)),(Pe||!_s)&&(u&&Pe&&gs(m,u),W[Te]&&gs(m,W[Te]),O&&(le===1?m.kill(!1,1):W[Te]=0),Pe||(Te=le===1?1:3,W[Te]&&gs(m,W[Te]))),k&&!ut&&Math.abs(m.getVelocity())>(Hi(k)?k:2500)&&(Ni(m.callbackAnimation),U?U.progress(1):Ni(i,me==="reverse"?1:!le,1))):L&&s&&!ht&&s(m)}if(At){var ft=x?K/x.duration()*(x._caScrollDist||0):K;Pr(ft+(w._isFlipped?1:0)),At(ft)}rr&&rr(-K/x.duration()*(x._caScrollDist||0))}},m.enable=function(A,G){m.enabled||(m.enabled=!0,et(E,"resize",Wi),I||et(E,"scroll",_i),he&&et(a,"refreshInit",he),A!==!1&&(m.progress=Xe=0,Qe=Ve=ge=Ce()),G!==!1&&m.refresh())},m.getTween=function(A){return A&&Ge?Ge.tween:U},m.setPositions=function(A,G,$,K){if(x){var je=x.scrollTrigger,le=x.duration(),ze=je.end-je.start;A=je.start+ze*A/le,G=je.start+ze*G/le}m.refresh(!1,!1,{start:Yo(A,$&&!!m._startClamp),end:Yo(G,$&&!!m._endClamp)},K),m.update()},m.adjustPinSpacing=function(A){if(z&&A){var G=z.indexOf(M.d)+1;z[G]=parseFloat(z[G])+A+Ue,z[1]=parseFloat(z[1])+A+Ue,ki(z)}},m.disable=function(A,G){if(A!==!1&&m.revert(!0,!0),m.enabled&&(m.enabled=m.isActive=!1,G||U&&U.pause(),we=0,Ke&&(Ke.uncache=1),he&&Je(a,"refreshInit",he),de&&(de.pause(),Ge.tween&&Ge.tween.kill()&&(Ge.tween=0)),!I)){for(var $=te.length;$--;)if(te[$].scroller===E&&te[$]!==m)return;Je(E,"resize",Wi),I||Je(E,"scroll",_i)}},m.kill=function(A,G){m.disable(A,G),U&&!G&&U.kill(),l&&delete $s[l];var $=te.indexOf(m);$>=0&&te.splice($,1),$===wt&&Yn>0&&wt--,$=0,te.forEach(function(K){return K.scroller===m.scroller&&($=1)}),$||Tt||(m.scroll.rec=0),i&&(i.scrollTrigger=null,A&&i.revert({kill:!1}),G||i.kill()),rt&&[rt,mt,w,lt].forEach(function(K){return K.parentNode&&K.parentNode.removeChild(K)}),on===m&&(on=0),c&&(Ke&&(Ke.uncache=1),$=0,te.forEach(function(K){return K.pin===c&&$++}),$||(Ke.spacer=0)),t.onKill&&t.onKill(m)},te.push(m),m.enable(!1,!1),Be&&Be(m),i&&i.add&&!R){var ce=m.update;m.update=function(){m.update=ce,ne.cache++,ae||ke||m.refresh()},F.delayedCall(.01,m.update),R=.01,ae=ke=0}else m.refresh();c&&of()},a.register=function(t){return pi||(F=t||pl(),_l()&&window.document&&a.enable(),pi=Xi),pi},a.defaults=function(t){if(t)for(var i in t)Pn[i]=t[i];return Pn},a.disable=function(t,i){Xi=0,te.forEach(function(s){return s[i?"kill":"disable"](t)}),Je(ie,"wheel",_i),Je(be,"scroll",_i),clearInterval(wn),Je(be,"touchcancel",cr),Je(pe,"touchstart",cr),Cn(Je,be,"pointerdown,touchstart,mousedown",$o),Cn(Je,be,"pointerup,touchend,mouseup",Xo),Zn.kill(),Sn(Je);for(var n=0;n0&&s.left+o0&&s.top+o=0&&Lt.splice(r,5),Lt.push(e,e.style.cssText,e.getBBox&&e.getAttribute("transform"),F.core.getCache(e),Bs())}}):Lt};se.revert=function(a,e){return go(!a,e)};se.create=function(a,e){return new se(a,e)};se.refresh=function(a){return a?Wi(!0):(pi||se.register())&&Jr(!0)};se.update=function(a){return++ne.cache&&Sr(a===!0?2:0)};se.clearScrollMemory=Sl;se.maxScroll=function(a,e){return pr(a,e?Ct:qe)};se.getScrollFunc=function(a,e){return Vr(Pt(a),e?Ct:qe)};se.getById=function(a){return $s[a]};se.getAll=function(){return te.filter(function(a){return a.vars.id!=="ScrollSmoother"})};se.isScrolling=function(){return!!Jt};se.snapDirectional=po;se.addEventListener=function(a,e){var r=li[a]||(li[a]=[]);~r.indexOf(e)||r.push(e)};se.removeEventListener=function(a,e){var r=li[a],t=r&&r.indexOf(e);t>=0&&r.splice(t,1)};se.batch=function(a,e){var r=[],t={},i=e.interval||.016,n=e.batchMax||1e9,s=function(u,f){var d=[],_=[],c=F.delayedCall(i,function(){f(d,_),d=[],_=[]}).pause();return function(p){d.length||c.restart(!0),d.push(p.trigger),_.push(p),n<=d.length&&c.progress(1)}},o;for(o in e)t[o]=o.substr(0,2)==="on"&&pt(e[o])&&o!=="onRefreshInit"?s(o,e[o]):e[o];return pt(n)&&(n=n(),et(se,"refresh",function(){return n=e.batchMax()})),_n(a).forEach(function(l){var u={};for(o in t)u[o]=t[o];u.trigger=l,r.push(se.create(u))}),r};var Zo=function(e,r,t,i){return r>i?e(i):r<0&&e(0),t>i?(i-r)/(t-r):t<0?r/(r-t):1},vs=function a(e,r){r===!0?e.style.removeProperty("touch-action"):e.style.touchAction=r===!0?"auto":r?"pan-"+r+(Ie.isTouch?" pinch-zoom":""):"none",e===Bt&&a(pe,r)},Rn={auto:1,scroll:1},cf=function(e){var r=e.event,t=e.target,i=e.axis,n=(r.changedTouches?r.changedTouches[0]:r).target,s=n._gsap||F.core.getCache(n),o=dt(),l;if(!s._isScrollT||o-s._isScrollT>2e3){for(;n&&n!==pe&&(n.scrollHeight<=n.clientHeight&&n.scrollWidth<=n.clientWidth||!(Rn[(l=Qt(n)).overflowY]||Rn[l.overflowX]));)n=n.parentNode;s._isScroll=n&&n!==t&&!ai(n)&&(Rn[(l=Qt(n)).overflowY]||Rn[l.overflowX]),s._isScrollT=o}(s._isScroll||i==="x")&&(r.stopPropagation(),r._gsapAllow=!0)},Pl=function(e,r,t,i){return Ie.create({target:e,capture:!0,debounce:!1,lockAxis:!0,type:r,onWheel:i=i&&cf,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return t&&et(be,Ie.eventTypes[0],Jo,!1,!0)},onDisable:function(){return Je(be,Ie.eventTypes[0],Jo,!0)}})},hf=/(input|label|select|textarea)/i,jo,Jo=function(e){var r=hf.test(e.target.tagName);(r||jo)&&(e._gsapAllow=!0,jo=r)},df=function(e){Qr(e)||(e={}),e.preventDefault=e.isNormalizer=e.allowClicks=!0,e.type||(e.type="wheel,touch"),e.debounce=!!e.debounce,e.id=e.id||"normalizer";var r=e,t=r.normalizeScrollX,i=r.momentum,n=r.allowNestedScroll,s=r.onRelease,o,l,u=Pt(e.target)||Bt,f=F.core.globals().ScrollSmoother,d=f&&f.get(),_=Er&&(e.content&&Pt(e.content)||d&&e.content!==!1&&!d.smooth()&&d.content()),c=Vr(u,qe),p=Vr(u,Ct),h=1,y=(Ie.isTouch&&ie.visualViewport?ie.visualViewport.scale*ie.visualViewport.width:ie.outerWidth)/ie.innerWidth,C=0,S=pt(i)?function(){return i(o)}:function(){return i||2.8},O,g,b=Pl(u,e.type,!0,n),T=function(){return g=!1},x=cr,k=cr,P=function(){l=pr(u,qe),k=Ji(Er?1:0,l),t&&(x=Ji(0,pr(u,Ct))),O=oi},M=function(){_._gsap.y=Vi(parseFloat(_._gsap.y)+c.offset)+"px",_.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(_._gsap.y)+", 0, 1)",c.offset=c.cacheID=0},L=function(){if(g){requestAnimationFrame(T);var ee=Vi(o.deltaY/2),Q=k(c.v-ee);if(_&&Q!==c.v+c.offset){c.offset=Q-c.v;var m=Vi((parseFloat(_&&_._gsap.y)||0)-c.offset);_.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+m+", 0, 1)",_._gsap.y=m+"px",c.cacheID=ne.cache,Sr()}return!0}c.offset&&M(),g=!0},E,Y,I,Z,W=function(){P(),E.isActive()&&E.vars.scrollY>l&&(c()>l?E.progress(1)&&c(l):E.resetTo("scrollY",l))};return _&&F.set(_,{y:"+=0"}),e.ignoreCheck=function(N){return Er&&N.type==="touchmove"&&L()||h>1.05&&N.type!=="touchstart"||o.isGesturing||N.touches&&N.touches.length>1},e.onPress=function(){g=!1;var N=h;h=Vi((ie.visualViewport&&ie.visualViewport.scale||1)/y),E.pause(),N!==h&&vs(u,h>1.01?!0:t?!1:"x"),Y=p(),I=c(),P(),O=oi},e.onRelease=e.onGestureStart=function(N,ee){if(c.offset&&M(),!ee)Z.restart(!0);else{ne.cache++;var Q=S(),m,he;t&&(m=p(),he=m+Q*.05*-N.velocityX/.227,Q*=Zo(p,m,he,pr(u,Ct)),E.vars.scrollX=x(he)),m=c(),he=m+Q*.05*-N.velocityY/.227,Q*=Zo(c,m,he,pr(u,qe)),E.vars.scrollY=k(he),E.invalidate().duration(Q).play(.01),(Er&&E.vars.scrollY>=l||m>=l-1)&&F.to({},{onUpdate:W,duration:Q})}s&&s(N)},e.onWheel=function(){E._ts&&E.pause(),dt()-C>1e3&&(O=0,C=dt())},e.onChange=function(N,ee,Q,m,he){if(oi!==O&&P(),ee&&t&&p(x(m[2]===ee?Y+(N.startX-N.x):p()+ee-m[1])),Q){c.offset&&M();var Ne=he[2]===Q,at=Ne?I+N.startY-N.y:c()+Q-he[1],ge=k(at);Ne&&at!==ge&&(I+=ge-at),c(ge)}(Q||ee)&&Sr()},e.onEnable=function(){vs(u,t?!1:"x"),se.addEventListener("refresh",W),et(ie,"resize",W),c.smooth&&(c.target.style.scrollBehavior="auto",c.smooth=p.smooth=!1),b.enable()},e.onDisable=function(){vs(u,!0),Je(ie,"resize",W),se.removeEventListener("refresh",W),b.kill()},e.lockAxis=e.lockAxis!==!1,o=new Ie(e),o.iOS=Er,Er&&!c()&&c(1),Er&&F.ticker.add(cr),Z=o._dc,E=F.to(o,{ease:"power4",paused:!0,inherit:!1,scrollX:t?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:kl(c,c(),function(){return E.pause()})},onUpdate:Sr,onComplete:Z.vars.onComplete}),o};se.sort=function(a){if(pt(a))return te.sort(a);var e=ie.pageYOffset||0;return se.getAll().forEach(function(r){return r._sortY=r.trigger?e+r.trigger.getBoundingClientRect().top:r.start+ie.innerHeight}),te.sort(a||function(r,t){return(r.vars.refreshPriority||0)*-1e6+(r.vars.containerAnimation?1e6:r._sortY)-((t.vars.containerAnimation?1e6:t._sortY)+(t.vars.refreshPriority||0)*-1e6)})};se.observe=function(a){return new Ie(a)};se.normalizeScroll=function(a){if(typeof a>"u")return bt;if(a===!0&&bt)return bt.enable();if(a===!1){bt&&bt.kill(),bt=a;return}var e=a instanceof Ie?a:df(a);return bt&&bt.target===e.target&&bt.kill(),ai(e.target)&&(bt=e),e};se.core={_getVelocityProp:Ls,_inputObserver:Pl,_scrollers:ne,_proxies:gr,bridge:{ss:function(){Jt||ui("scrollStart"),Jt=dt()},ref:function(){return ht}}};pl()&&F.registerPlugin(se);function _f(a,e){for(var r=0;r-1);return r["_"+n+"Clamp"]=i,i?t.substr(6,t.length-7):t},ol=function(t,n){return n&&(!Ge(t)||t.substr(0,6)!=="clamp(")?"clamp("+t+")":t},Uv=function e(){return Vi&&requestAnimationFrame(e)},al=function(){return Ko=1},cl=function(){return Ko=0},On=function(t){return t},ji=function(t){return Math.round(t*1e5)/1e5||0},ch=function(){return typeof window<"u"},uh=function(){return L||ch()&&(L=window.gsap)&&L.registerPlugin&&L},Wr=function(t){return!!~yu.indexOf(t)},fh=function(t){return(t==="Height"?bu:ot["inner"+t])||Ke["client"+t]||bt["client"+t]},lh=function(t){return fr(t,"getBoundingClientRect")||(Wr(t)?function(){return yo.width=ot.innerWidth,yo.height=bu,yo}:function(){return Hn(t)})},Hv=function(t,n,r){var i=r.d,s=r.d2,o=r.a;return(o=fr(t,"getBoundingClientRect"))?function(){return o()[i]}:function(){return(n?fh(s):t["client"+s])||0}},Wv=function(t,n){return!n||~Mn.indexOf(t)?lh(t):function(){return yo}},An=function(t,n){var r=n.s,i=n.d2,s=n.d,o=n.a;return Math.max(0,(r="scroll"+i)&&(o=fr(t,r))?o()-lh(t)()[s]:Wr(t)?(Ke[r]||bt[r])-fh(i):t[r]-t["offset"+i])},Xs=function(t,n){for(var r=0;r0){for(i-=o,a=0;a=i)return r[a];return r[a-1]}else for(a=r.length,i+=o;a--;)if(r[a]<=i)return r[a];return r[0]}:function(i,s,o){o===void 0&&(o=.001);var a=n(i);return!s||Math.abs(a-i)r&&(i*=n/100),t=t.substr(0,r-1)),t=i+(t in $o?$o[t]*n:~t.indexOf("%")?parseFloat(t)*n/100:parseFloat(t)||0)}return t},Zs=function(t,n,r,i,s,o,a,c){var u=s.startColor,f=s.endColor,l=s.fontSize,d=s.indent,p=s.fontWeight,_=kt.createElement("div"),h=Wr(r)||fr(r,"pinType")==="fixed",g=t.indexOf("scroller")!==-1,v=h?bt:r,T=t.indexOf("start")!==-1,k=T?u:f,m="border-color:"+k+";font-size:"+l+";color:"+k+";font-weight:"+p+";pointer-events:none;white-space:nowrap;font-family:sans-serif,Arial;z-index:1000;padding:4px 8px;border-width:0;border-style:solid;";return m+="position:"+((g||c)&&h?"fixed;":"absolute;"),(g||c||!h)&&(m+=(i===Zt?vu:Eu)+":"+(o+parseFloat(d))+"px;"),a&&(m+="box-sizing:border-box;text-align:left;width:"+a.offsetWidth+"px;"),_._isStart=T,_.setAttribute("class","gsap-marker-"+t+(n?" marker-"+n:"")),_.style.cssText=m,_.innerText=n||n===0?t+"-"+n:t,v.children[0]?v.insertBefore(_,v.children[0]):v.appendChild(_),_._offset=_["offset"+i.op.d2],_o(_,0,i,T),_},_o=function(t,n,r,i){var s={display:"block"},o=r[i?"os2":"p2"],a=r[i?"p2":"os2"];t._isFlipped=i,s[r.a+"Percent"]=i?-100:0,s[r.a]=i?"1px":0,s["border"+o+Ii]=1,s["border"+a+Ii]=0,s[r.p]=n+"px",L.set(t,s)},it=[],Cc={},ws,ll=function(){return ve()-pn>34&&(ws||(ws=requestAnimationFrame(Vn)))},ni=function(){(!Re||!Re.isPressed||Re.startX>bt.clientWidth)&&(at.cache++,Re?ws||(ws=requestAnimationFrame(Vn)):Vn(),pn||Vr("scrollStart"),pn=ve())},ka=function(){ah=ot.innerWidth,oh=ot.innerHeight},Gi=function(t){at.cache++,(t===!0||!be&&!sh&&!kt.fullscreenElement&&!kt.webkitFullscreenElement&&(!wc||ah!==ot.innerWidth||Math.abs(ot.innerHeight-oh)>ot.innerHeight*.25))&&No.restart(!0)},Yr={},qv=[],_h=function e(){return se(ct,"scrollEnd",e)||Pr(!0)},Vr=function(t){return Yr[t]&&Yr[t].map(function(n){return n()})||qv},qe=[],gh=function(t){for(var n=0;ns,a=i._startClamp&&i.start>=s;(o||a)&&i.setPositions(a?s-1:i.start,o?Math.max(a?s:i.start+1,s):i.end,!0)}),pl(!1),kc=0,r.forEach(function(i){return i&&i.render&&i.render(-1)}),at.forEach(function(i){Te(i)&&(i.smooth&&requestAnimationFrame(function(){return i.target.style.scrollBehavior="smooth"}),i.rec&&i(i.rec))}),yh(Su,1),No.pause(),Fr++,Pe=2,Vn(2),it.forEach(function(i){return Te(i.vars.onRefresh)&&i.vars.onRefresh(i)}),Pe=ct.isRefreshing=!1,Vr("refresh")},Oc=0,go=1,ls,Vn=function(t){if(t===2||!Pe&&!os){ct.isUpdating=!0,ls&&ls.update(0);var n=it.length,r=ve(),i=r-wa>=50,s=n&&it[0].scroll();if(go=Oc>s?-1:1,Pe||(Oc=s),i&&(pn&&!Ko&&r-pn>200&&(pn=0,Vr("scrollEnd")),Yi=wa,wa=r),go<0){for(Ie=n;Ie-- >0;)it[Ie]&&it[Ie].update(0,i);go=1}else for(Ie=0;Ie20),r-=r-x}if(_&&(c[_]=t||-.001,t<0&&(t=0)),o){var C=t+r,O=o._isStart;g="scroll"+i.d2,_o(o,C,i,O&&C>20||!O&&(l?Math.max(bt[g],Ke[g]):o.parentNode[g])<=C+1),l&&(u=Hn(a),l&&(o.style[i.op.p]=u[i.op.p]-i.op.m-o._offset+Qt))}return p&&T&&(g=Hn(T),p.seek(d),v=Hn(T),p._caScrollDist=g[i.p]-v[i.p],t=t/p._caScrollDist*d),p&&p.seek(h),p?t:Math.round(t)},Qv=/(webkit|moz|length|cssText|inset)/i,_l=function(t,n,r,i){if(t.parentNode!==n){var s=t.style,o,a;if(n===bt){t._stOrig=s.cssText,a=un(t);for(o in a)!+o&&!Qv.test(o)&&a[o]&&typeof s[o]=="string"&&o!=="0"&&(s[o]=a[o]);s.top=r,s.left=i}else s.cssText=t._stOrig;L.core.getCache(t).uncache=1,n.appendChild(t)}},bh=function(t,n,r){var i=n,s=i;return function(o){var a=Math.round(t());return a!==i&&a!==s&&Math.abs(a-i)>3&&Math.abs(a-s)>3&&(o=a,r&&r()),s=i,i=Math.round(o),i}},eo=function(t,n,r){var i={};i[n.p]="+="+r,L.set(t,i)},gl=function(t,n){var r=gr(t,n),i="_scroll"+n.p2,s=function o(a,c,u,f,l){var d=o.tween,p=c.onComplete,_={};u=u||r();var h=bh(r,u,function(){d.kill(),o.tween=0});return l=f&&l||0,f=f||a-u,d&&d.kill(),c[i]=a,c.inherit=!1,c.modifiers=_,_[i]=function(){return h(u+f*d.ratio+l*d.ratio*d.ratio)},c.onUpdate=function(){at.cache++,o.tween&&Vn()},c.onComplete=function(){o.tween=0,p&&p.call(d)},d=o.tween=L.to(t,c),d};return t[i]=r,r.wheelHandler=function(){return s.tween&&s.tween.kill()&&(s.tween=0)},oe(t,"wheel",r.wheelHandler),ct.isTouch&&oe(t,"touchmove",r.wheelHandler),s},ct=function(){function e(n,r){ri||e.register(L)||console.warn("Please gsap.registerPlugin(ScrollTrigger)"),xc(this),this.init(n,r)}var t=e.prototype;return t.init=function(r,i){if(this.progress=this.start=0,this.vars&&this.kill(!0,!0),!Vi){this.update=this.refresh=this.kill=On;return}r=ul(Ge(r)||qi(r)||r.nodeType?{trigger:r}:r,Qs);var s=r,o=s.onUpdate,a=s.toggleClass,c=s.id,u=s.onToggle,f=s.onRefresh,l=s.scrub,d=s.trigger,p=s.pin,_=s.pinSpacing,h=s.invalidateOnRefresh,g=s.anticipatePin,v=s.onScrubComplete,T=s.onSnapComplete,k=s.once,m=s.snap,b=s.pinReparent,x=s.pinSpacer,E=s.containerAnimation,C=s.fastScrollEnd,O=s.preventOverlaps,R=r.horizontal||r.containerAnimation&&r.horizontal!==!1?De:Zt,F=!l&&l!==0,I=Ne(r.scroller||ot),H=L.core.getCache(I),B=Wr(I),Z=("pinType"in r?r.pinType:fr(I,"pinType")||B&&"fixed")==="fixed",q=[r.onEnter,r.onLeave,r.onEnterBack,r.onLeaveBack],z=F&&r.toggleActions.split(" "),rt="markers"in r?r.markers:Qs.markers,Q=B?0:parseFloat(un(I)["border"+R.p2+Ii])||0,y=this,mt=r.onRefreshInit&&function(){return r.onRefreshInit(y)},Yt=Hv(I,B,R),_e=Wv(I,B),vt=0,$t=0,Gt=0,Pt=gr(I,R),te,ee,hn,ne,Xt,ft,At,ce,xe,w,ge,A,S,P,U,V,X,st,zt,tt,xt,_t,ut,Kt,$,Xn,Me,Ye,Ln,on,_n,G,Tn,re,yt,Ot,Ve,gn,Vt;if(y._startClamp=y._endClamp=!1,y._dir=R,g*=45,y.scroller=I,y.scroll=E?E.time.bind(E):Pt,ne=Pt(),y.vars=r,i=i||r.animation,"refreshPriority"in r&&(ih=1,r.refreshPriority===-9999&&(ls=y)),H.tweenScroll=H.tweenScroll||{top:gl(I,Zt),left:gl(I,De)},y.tweenTo=te=H.tweenScroll[R.p],y.scrubDuration=function(D){Tn=qi(D)&&D,Tn?G?G.duration(D):G=L.to(i,{ease:"expo",totalProgress:"+=0",inherit:!1,duration:Tn,paused:!0,onComplete:function(){return v&&v(y)}}):(G&&G.progress(1).kill(),G=0)},i&&(i.vars.lazy=!1,i._initted&&!y.isReverted||i.vars.immediateRender!==!1&&r.immediateRender!==!1&&i.duration()&&i.render(0,!0,!0),y.animation=i.pause(),i.scrollTrigger=y,y.scrubDuration(l),on=0,c||(c=i.vars.id)),m&&((!Cr(m)||m.push)&&(m={snapTo:m}),"scrollBehavior"in bt.style&&L.set(B?[bt,Ke]:I,{scrollBehavior:"auto"}),at.forEach(function(D){return Te(D)&&D.target===(B?kt.scrollingElement||Ke:I)&&(D.smooth=!1)}),hn=Te(m.snapTo)?m.snapTo:m.snapTo==="labels"?Vv(i):m.snapTo==="labelsDirectional"?jv(i):m.directional!==!1?function(D,K){return wu(m.snapTo)(D,ve()-$t<500?0:K.direction)}:L.utils.snap(m.snapTo),re=m.duration||{min:.1,max:2},re=Cr(re)?ss(re.min,re.max):ss(re,re),yt=L.delayedCall(m.delay||Tn/2||.1,function(){var D=Pt(),K=ve()-$t<500,W=te.tween;if((K||Math.abs(y.getVelocity())<10)&&!W&&!Ko&&vt!==D){var J=(D-ft)/P,ie=i&&!F?i.totalProgress():J,lt=K?0:(ie-_n)/(ve()-Yi)*1e3||0,Ut=L.utils.clamp(-J,1-J,ei(lt/2)*lt/.185),me=J+(m.inertia===!1?0:Ut),Ft,Rt,Et=m,yn=Et.onStart,Dt=Et.onInterrupt,je=Et.onComplete;if(Ft=hn(me,y),qi(Ft)||(Ft=me),Rt=Math.max(0,Math.round(ft+Ft*P)),D<=At&&D>=ft&&Rt!==D){if(W&&!W._initted&&W.data<=ei(Rt-D))return;m.inertia===!1&&(Ut=Ft-J),te(Rt,{duration:re(ei(Math.max(ei(me-ie),ei(Ft-ie))*.185/lt/.05||0)),ease:m.ease||"power3",data:ei(Rt-D),onInterrupt:function(){return yt.restart(!0)&&Dt&&Dt(y)},onComplete:function(){y.update(),vt=Pt(),i&&!F&&(G?G.resetTo("totalProgress",Ft,i._tTime/i._tDur):i.progress(Ft)),on=_n=i&&!F?i.totalProgress():y.progress,T&&T(y),je&&je(y)}},D,Ut*P,Rt-D-Ut*P),yn&&yn(y,te.tween)}}else y.isActive&&vt!==D&&yt.restart(!0)}).pause()),c&&(Cc[c]=y),d=y.trigger=Ne(d||p!==!0&&p),Vt=d&&d._gsap&&d._gsap.stRevert,Vt&&(Vt=Vt(y)),p=p===!0?d:Ne(p),Ge(a)&&(a={targets:d,className:a}),p&&(_===!1||_===cn||(_=!_&&p.parentNode&&p.parentNode.style&&un(p.parentNode).display==="flex"?!1:jt),y.pin=p,ee=L.core.getCache(p),ee.spacer?U=ee.pinState:(x&&(x=Ne(x),x&&!x.nodeType&&(x=x.current||x.nativeElement),ee.spacerIsNative=!!x,x&&(ee.spacerState=to(x))),ee.spacer=st=x||kt.createElement("div"),st.classList.add("pin-spacer"),c&&st.classList.add("pin-spacer-"+c),ee.pinState=U=to(p)),r.force3D!==!1&&L.set(p,{force3D:!0}),y.spacer=st=ee.spacer,Ln=un(p),Kt=Ln[_+R.os2],tt=L.getProperty(p),xt=L.quickSetter(p,R.a,Qt),Ca(p,st,Ln),X=to(p)),rt){A=Cr(rt)?ul(rt,fl):fl,w=Zs("scroller-start",c,I,R,A,0),ge=Zs("scroller-end",c,I,R,A,0,w),zt=w["offset"+R.op.d2];var mn=Ne(fr(I,"content")||I);ce=this.markerStart=Zs("start",c,mn,R,A,zt,0,E),xe=this.markerEnd=Zs("end",c,mn,R,A,zt,0,E),E&&(gn=L.quickSetter([ce,xe],R.a,Qt)),!Z&&!(Mn.length&&fr(I,"fixedMarkers")===!0)&&(Yv(B?bt:I),L.set([w,ge],{force3D:!0}),Xn=L.quickSetter(w,R.a,Qt),Ye=L.quickSetter(ge,R.a,Qt))}if(E){var j=E.vars.onUpdate,Y=E.vars.onUpdateParams;E.eventCallback("onUpdate",function(){y.update(0,0,1),j&&j.apply(E,Y||[])})}if(y.previous=function(){return it[it.indexOf(y)-1]},y.next=function(){return it[it.indexOf(y)+1]},y.revert=function(D,K){if(!K)return y.kill(!0);var W=D!==!1||!y.enabled,J=be;W!==y.isReverted&&(W&&(Ot=Math.max(Pt(),y.scroll.rec||0),Gt=y.progress,Ve=i&&i.progress()),ce&&[ce,xe,w,ge].forEach(function(ie){return ie.style.display=W?"none":"block"}),W&&(be=y,y.update(W)),p&&(!b||!y.isActive)&&(W?Xv(p,st,U):Ca(p,st,un(p),$)),W||y.update(W),be=J,y.isReverted=W)},y.refresh=function(D,K,W,J){if(!((be||!y.enabled)&&!K)){if(p&&D&&pn){oe(e,"scrollEnd",_h);return}!Pe&&mt&&mt(y),be=y,te.tween&&!W&&(te.tween.kill(),te.tween=0),G&&G.pause(),h&&i&&(i.revert({kill:!1}).invalidate(),i.getChildren?i.getChildren(!0,!0,!1).forEach(function(Kn){return Kn.vars.immediateRender&&Kn.render(0,!0,!0)}):i.vars.immediateRender&&i.render(0,!0,!0)),y.isReverted||y.revert(!0,!0),y._subPinOffset=!1;var ie=Yt(),lt=_e(),Ut=E?E.duration():An(I,R),me=P<=.01||!P,Ft=0,Rt=J||0,Et=Cr(W)?W.end:r.end,yn=r.endTrigger||d,Dt=Cr(W)?W.start:r.start||(r.start===0||!d?0:p?"0 0":"0 100%"),je=y.pinnedContainer=r.pinnedContainer&&Ne(r.pinnedContainer,y),wn=d&&Math.max(0,it.indexOf(y))||0,ue=wn,fe,ye,br,Fs,Se,Jt,xn,Jo,ku,Mi,kn,Ni,Bs;for(rt&&Cr(W)&&(Ni=L.getProperty(w,R.p),Bs=L.getProperty(ge,R.p));ue-- >0;)Jt=it[ue],Jt.end||Jt.refresh(0,1)||(be=y),xn=Jt.pin,xn&&(xn===d||xn===p||xn===je)&&!Jt.isReverted&&(Mi||(Mi=[]),Mi.unshift(Jt),Jt.revert(!0,!0)),Jt!==it[ue]&&(wn--,ue--);for(Te(Dt)&&(Dt=Dt(y)),Dt=sl(Dt,"start",y),ft=hl(Dt,d,ie,R,Pt(),ce,w,y,lt,Q,Z,Ut,E,y._startClamp&&"_startClamp")||(p?-.001:0),Te(Et)&&(Et=Et(y)),Ge(Et)&&!Et.indexOf("+=")&&(~Et.indexOf(" ")?Et=(Ge(Dt)?Dt.split(" ")[0]:"")+Et:(Ft=ho(Et.substr(2),ie),Et=Ge(Dt)?Dt:(E?L.utils.mapRange(0,E.duration(),E.scrollTrigger.start,E.scrollTrigger.end,ft):ft)+Ft,yn=d)),Et=sl(Et,"end",y),At=Math.max(ft,hl(Et||(yn?"100% 0":Ut),yn,ie,R,Pt()+Ft,xe,ge,y,lt,Q,Z,Ut,E,y._endClamp&&"_endClamp"))||-.001,Ft=0,ue=wn;ue--;)Jt=it[ue]||{},xn=Jt.pin,xn&&Jt.start-Jt._pinPush<=ft&&!E&&Jt.end>0&&(fe=Jt.end-(y._startClamp?Math.max(0,Jt.start):Jt.start),(xn===d&&Jt.start-Jt._pinPush=An(I,R)))fe=un(p),Fs=R===Zt,br=Pt(),_t=parseFloat(tt(R.a))+Rt,!Ut&&At>1&&(kn=(B?kt.scrollingElement||Ke:I).style,kn={style:kn,value:kn["overflow"+R.a.toUpperCase()]},B&&un(bt)["overflow"+R.a.toUpperCase()]!=="scroll"&&(kn.style["overflow"+R.a.toUpperCase()]="scroll")),Ca(p,st,fe),X=to(p),ye=Hn(p,!0),Jo=Z&&gr(I,Fs?De:Zt)(),_?($=[_+R.os2,P+Rt+Qt],$.t=st,ue=_===jt?Lo(p,R)+P+Rt:0,ue&&($.push(R.d,ue+Qt),st.style.flexBasis!=="auto"&&(st.style.flexBasis=ue+Qt)),_i($),je&&it.forEach(function(Kn){Kn.pin===je&&Kn.vars.pinSpacing!==!1&&(Kn._subPinOffset=!0)}),Z&&Pt(Ot)):(ue=Lo(p,R),ue&&st.style.flexBasis!=="auto"&&(st.style.flexBasis=ue+Qt)),Z&&(Se={top:ye.top+(Fs?br-ft:Jo)+Qt,left:ye.left+(Fs?Jo:br-ft)+Qt,boxSizing:"border-box",position:"fixed"},Se[Lr]=Se["max"+Ii]=Math.ceil(ye.width)+Qt,Se[$r]=Se["max"+Tu]=Math.ceil(ye.height)+Qt,Se[cn]=Se[cn+us]=Se[cn+as]=Se[cn+fs]=Se[cn+cs]="0",Se[jt]=fe[jt],Se[jt+us]=fe[jt+us],Se[jt+as]=fe[jt+as],Se[jt+fs]=fe[jt+fs],Se[jt+cs]=fe[jt+cs],V=Jv(U,Se,b),Pe&&Pt(0)),i?(ku=i._initted,Ea(1),i.render(i.duration(),!0,!0),ut=tt(R.a)-_t+P+Rt,Me=Math.abs(P-ut)>1,Z&&Me&&V.splice(V.length-2,2),i.render(0,!0,!0),ku||i.invalidate(!0),i.parent||i.totalTime(i.totalTime()),Ea(0)):ut=P,kn&&(kn.value?kn.style["overflow"+R.a.toUpperCase()]=kn.value:kn.style.removeProperty("overflow-"+R.a));else if(d&&Pt()&&!E)for(ye=d.parentNode;ye&&ye!==bt;)ye._pinOffset&&(ft-=ye._pinOffset,At-=ye._pinOffset),ye=ye.parentNode;Mi&&Mi.forEach(function(Kn){return Kn.revert(!1,!0)}),y.start=ft,y.end=At,ne=Xt=Pe?Ot:Pt(),!E&&!Pe&&(ne0?it.slice(0,K).reverse():it.slice(K+1);return(Ge(D)?W.filter(function(J){return J.vars.preventOverlaps===D}):W).filter(function(J){return y.direction>0?J.end<=ft:J.start>=At})},y.update=function(D,K,W){if(!(E&&!W&&!D)){var J=Pe===!0?Ot:y.scroll(),ie=D?0:(J-ft)/P,lt=ie<0?0:ie>1?1:ie||0,Ut=y.progress,me,Ft,Rt,Et,yn,Dt,je,wn;if(K&&(Xt=ne,ne=E?Pt():J,m&&(_n=on,on=i&&!F?i.totalProgress():lt)),g&&p&&!be&&!Gs&&pn&&(!lt&&ftJ+(J-Xt)/(ve()-Yi)*g&&(lt=.9999)),lt!==Ut&&y.enabled){if(me=y.isActive=!!lt&<<1,Ft=!!Ut&&Ut<1,Dt=me!==Ft,yn=Dt||!!lt!=!!Ut,y.direction=lt>Ut?1:-1,y.progress=lt,yn&&!be&&(Rt=lt&&!Ut?0:lt===1?1:Ut===1?2:3,F&&(Et=!Dt&&z[Rt+1]!=="none"&&z[Rt+1]||z[Rt],wn=i&&(Et==="complete"||Et==="reset"||Et in i))),O&&(Dt||wn)&&(wn||l||!i)&&(Te(O)?O(y):y.getTrailing(O).forEach(function(br){return br.endAnimation()})),F||(G&&!be&&!Gs?(G._dp._time-G._start!==G._time&&G.render(G._dp._time-G._start),G.resetTo?G.resetTo("totalProgress",lt,i._tTime/i._tDur):(G.vars.totalProgress=lt,G.invalidate().restart())):i&&i.totalProgress(lt,!!(be&&($t||D)))),p){if(D&&_&&(st.style[_+R.os2]=Kt),!Z)xt(ji(_t+ut*lt));else if(yn){if(je=!D&<>Ut&&At+1>J&&J+1>=An(I,R),b)if(!D&&(me||je)){var ue=Hn(p,!0),fe=J-ft;_l(p,bt,ue.top+(R===Zt?fe:0)+Qt,ue.left+(R===Zt?0:fe)+Qt)}else _l(p,st);_i(me||je?V:X),Me&<<1&&me||xt(_t+(lt===1&&!je?ut:0))}}m&&!te.tween&&!be&&!Gs&&yt.restart(!0),a&&(Dt||k&<&&(lt<1||!Ta))&&Ts(a.targets).forEach(function(br){return br.classList[me||k?"add":"remove"](a.className)}),o&&!F&&!D&&o(y),yn&&!be?(F&&(wn&&(Et==="complete"?i.pause().totalProgress(1):Et==="reset"?i.restart(!0).pause():Et==="restart"?i.restart(!0):i[Et]()),o&&o(y)),(Dt||!Ta)&&(u&&Dt&&xa(y,u),q[Rt]&&xa(y,q[Rt]),k&&(lt===1?y.kill(!1,1):q[Rt]=0),Dt||(Rt=lt===1?1:3,q[Rt]&&xa(y,q[Rt]))),C&&!me&&Math.abs(y.getVelocity())>(qi(C)?C:2500)&&(Bi(y.callbackAnimation),G?G.progress(1):Bi(i,Et==="reverse"?1:!lt,1))):F&&o&&!be&&o(y)}if(Ye){var ye=E?J/E.duration()*(E._caScrollDist||0):J;Xn(ye+(w._isFlipped?1:0)),Ye(ye)}gn&&gn(-J/E.duration()*(E._caScrollDist||0))}},y.enable=function(D,K){y.enabled||(y.enabled=!0,oe(I,"resize",Gi),B||oe(I,"scroll",ni),mt&&oe(e,"refreshInit",mt),D!==!1&&(y.progress=Gt=0,ne=Xt=vt=Pt()),K!==!1&&y.refresh())},y.getTween=function(D){return D&&te?te.tween:G},y.setPositions=function(D,K,W,J){if(E){var ie=E.scrollTrigger,lt=E.duration(),Ut=ie.end-ie.start;D=ie.start+Ut*D/lt,K=ie.start+Ut*K/lt}y.refresh(!1,!1,{start:ol(D,W&&!!y._startClamp),end:ol(K,W&&!!y._endClamp)},J),y.update()},y.adjustPinSpacing=function(D){if($&&D){var K=$.indexOf(R.d)+1;$[K]=parseFloat($[K])+D+Qt,$[1]=parseFloat($[1])+D+Qt,_i($)}},y.disable=function(D,K){if(D!==!1&&y.revert(!0,!0),y.enabled&&(y.enabled=y.isActive=!1,K||G&&G.pause(),Ot=0,ee&&(ee.uncache=1),mt&&se(e,"refreshInit",mt),yt&&(yt.pause(),te.tween&&te.tween.kill()&&(te.tween=0)),!B)){for(var W=it.length;W--;)if(it[W].scroller===I&&it[W]!==y)return;se(I,"resize",Gi),B||se(I,"scroll",ni)}},y.kill=function(D,K){y.disable(D,K),G&&!K&&G.kill(),c&&delete Cc[c];var W=it.indexOf(y);W>=0&&it.splice(W,1),W===Ie&&go>0&&Ie--,W=0,it.forEach(function(J){return J.scroller===y.scroller&&(W=1)}),W||Pe||(y.scroll.rec=0),i&&(i.scrollTrigger=null,D&&i.revert({kill:!1}),K||i.kill()),ce&&[ce,xe,w,ge].forEach(function(J){return J.parentNode&&J.parentNode.removeChild(J)}),ls===y&&(ls=0),p&&(ee&&(ee.uncache=1),W=0,it.forEach(function(J){return J.pin===p&&W++}),W||(ee.spacer=0)),r.onKill&&r.onKill(y)},it.push(y),y.enable(!1,!1),Vt&&Vt(y),i&&i.add&&!P){var gt=y.update;y.update=function(){y.update=gt,at.cache++,ft||At||y.refresh()},L.delayedCall(.01,y.update),P=.01,ft=At=0}else y.refresh();p&&Gv()},e.register=function(r){return ri||(L=r||uh(),ch()&&window.document&&e.enable(),ri=Vi),ri},e.defaults=function(r){if(r)for(var i in r)Qs[i]=r[i];return Qs},e.disable=function(r,i){Vi=0,it.forEach(function(o){return o[i?"kill":"disable"](r)}),se(ot,"wheel",ni),se(kt,"scroll",ni),clearInterval(qs),se(kt,"touchcancel",On),se(bt,"touchstart",On),Ks(se,kt,"pointerdown,touchstart,mousedown",al),Ks(se,kt,"pointerup,touchend,mouseup",cl),No.kill(),Xs(se);for(var s=0;s0&&o.left+a0&&o.top+a=0&&qe.splice(n,5),qe.push(t,t.style.cssText,t.getBBox&&t.getAttribute("transform"),L.core.getCache(t),xc())}}):qe};ct.revert=function(e,t){return xu(!e,t)};ct.create=function(e,t){return new ct(e,t)};ct.refresh=function(e){return e?Gi(!0):(ri||ct.register())&&Pr(!0)};ct.update=function(e){return++at.cache&&Vn(e===!0?2:0)};ct.clearScrollMemory=yh;ct.maxScroll=function(e,t){return An(e,t?De:Zt)};ct.getScrollFunc=function(e,t){return gr(Ne(e),t?De:Zt)};ct.getById=function(e){return Cc[e]};ct.getAll=function(){return it.filter(function(e){return e.vars.id!=="ScrollSmoother"})};ct.isScrolling=function(){return!!pn};ct.snapDirectional=wu;ct.addEventListener=function(e,t){var n=Yr[e]||(Yr[e]=[]);~n.indexOf(t)||n.push(t)};ct.removeEventListener=function(e,t){var n=Yr[e],r=n&&n.indexOf(t);r>=0&&n.splice(r,1)};ct.batch=function(e,t){var n=[],r={},i=t.interval||.016,s=t.batchMax||1e9,o=function(u,f){var l=[],d=[],p=L.delayedCall(i,function(){f(l,d),l=[],d=[]}).pause();return function(_){l.length||p.restart(!0),l.push(_.trigger),d.push(_),s<=l.length&&p.progress(1)}},a;for(a in t)r[a]=a.substr(0,2)==="on"&&Te(t[a])&&a!=="onRefreshInit"?o(a,t[a]):t[a];return Te(s)&&(s=s(),oe(ct,"refresh",function(){return s=t.batchMax()})),Ts(e).forEach(function(c){var u={};for(a in r)u[a]=r[a];u.trigger=c,n.push(ct.create(u))}),n};var ml=function(t,n,r,i){return n>i?t(i):n<0&&t(0),r>i?(i-n)/(r-n):r<0?n/(n-r):1},Oa=function e(t,n){n===!0?t.style.removeProperty("touch-action"):t.style.touchAction=n===!0?"auto":n?"pan-"+n+(Wt.isTouch?" pinch-zoom":""):"none",t===Ke&&e(bt,n)},no={auto:1,scroll:1},Zv=function(t){var n=t.event,r=t.target,i=t.axis,s=(n.changedTouches?n.changedTouches[0]:n).target,o=s._gsap||L.core.getCache(s),a=ve(),c;if(!o._isScrollT||a-o._isScrollT>2e3){for(;s&&s!==bt&&(s.scrollHeight<=s.clientHeight&&s.scrollWidth<=s.clientWidth||!(no[(c=un(s)).overflowY]||no[c.overflowX]));)s=s.parentNode;o._isScroll=s&&s!==r&&!Wr(s)&&(no[(c=un(s)).overflowY]||no[c.overflowX]),o._isScrollT=a}(o._isScroll||i==="x")&&(n.stopPropagation(),n._gsapAllow=!0)},vh=function(t,n,r,i){return Wt.create({target:t,capture:!0,debounce:!1,lockAxis:!0,type:n,onWheel:i=i&&Zv,onPress:i,onDrag:i,onScroll:i,onEnable:function(){return r&&oe(kt,Wt.eventTypes[0],Sl,!1,!0)},onDisable:function(){return se(kt,Wt.eventTypes[0],Sl,!0)}})},tE=/(input|label|select|textarea)/i,yl,Sl=function(t){var n=tE.test(t.target.tagName);(n||yl)&&(t._gsapAllow=!0,yl=n)},eE=function(t){Cr(t)||(t={}),t.preventDefault=t.isNormalizer=t.allowClicks=!0,t.type||(t.type="wheel,touch"),t.debounce=!!t.debounce,t.id=t.id||"normalizer";var n=t,r=n.normalizeScrollX,i=n.momentum,s=n.allowNestedScroll,o=n.onRelease,a,c,u=Ne(t.target)||Ke,f=L.core.globals().ScrollSmoother,l=f&&f.get(),d=tr&&(t.content&&Ne(t.content)||l&&t.content!==!1&&!l.smooth()&&l.content()),p=gr(u,Zt),_=gr(u,De),h=1,g=(Wt.isTouch&&ot.visualViewport?ot.visualViewport.scale*ot.visualViewport.width:ot.outerWidth)/ot.innerWidth,v=0,T=Te(i)?function(){return i(a)}:function(){return i||2.8},k,m,b=vh(u,t.type,!0,s),x=function(){return m=!1},E=On,C=On,O=function(){c=An(u,Zt),C=ss(tr?1:0,c),r&&(E=ss(0,An(u,De))),k=Fr},R=function(){d._gsap.y=ji(parseFloat(d._gsap.y)+p.offset)+"px",d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+parseFloat(d._gsap.y)+", 0, 1)",p.offset=p.cacheID=0},F=function(){if(m){requestAnimationFrame(x);var rt=ji(a.deltaY/2),Q=C(p.v-rt);if(d&&Q!==p.v+p.offset){p.offset=Q-p.v;var y=ji((parseFloat(d&&d._gsap.y)||0)-p.offset);d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+y+", 0, 1)",d._gsap.y=y+"px",p.cacheID=at.cache,Vn()}return!0}p.offset&&R(),m=!0},I,H,B,Z,q=function(){O(),I.isActive()&&I.vars.scrollY>c&&(p()>c?I.progress(1)&&p(c):I.resetTo("scrollY",c))};return d&&L.set(d,{y:"+=0"}),t.ignoreCheck=function(z){return tr&&z.type==="touchmove"&&F()||h>1.05&&z.type!=="touchstart"||a.isGesturing||z.touches&&z.touches.length>1},t.onPress=function(){m=!1;var z=h;h=ji((ot.visualViewport&&ot.visualViewport.scale||1)/g),I.pause(),z!==h&&Oa(u,h>1.01?!0:r?!1:"x"),H=_(),B=p(),O(),k=Fr},t.onRelease=t.onGestureStart=function(z,rt){if(p.offset&&R(),!rt)Z.restart(!0);else{at.cache++;var Q=T(),y,mt;r&&(y=_(),mt=y+Q*.05*-z.velocityX/.227,Q*=ml(_,y,mt,An(u,De)),I.vars.scrollX=E(mt)),y=p(),mt=y+Q*.05*-z.velocityY/.227,Q*=ml(p,y,mt,An(u,Zt)),I.vars.scrollY=C(mt),I.invalidate().duration(Q).play(.01),(tr&&I.vars.scrollY>=c||y>=c-1)&&L.to({},{onUpdate:q,duration:Q})}o&&o(z)},t.onWheel=function(){I._ts&&I.pause(),ve()-v>1e3&&(k=0,v=ve())},t.onChange=function(z,rt,Q,y,mt){if(Fr!==k&&O(),rt&&r&&_(E(y[2]===rt?H+(z.startX-z.x):_()+rt-y[1])),Q){p.offset&&R();var Yt=mt[2]===Q,_e=Yt?B+z.startY-z.y:p()+Q-mt[1],vt=C(_e);Yt&&_e!==vt&&(B+=vt-_e),p(vt)}(Q||rt)&&Vn()},t.onEnable=function(){Oa(u,r?!1:"x"),ct.addEventListener("refresh",q),oe(ot,"resize",q),p.smooth&&(p.target.style.scrollBehavior="auto",p.smooth=_.smooth=!1),b.enable()},t.onDisable=function(){Oa(u,!0),se(ot,"resize",q),ct.removeEventListener("refresh",q),b.kill()},t.lockAxis=t.lockAxis!==!1,a=new Wt(t),a.iOS=tr,tr&&!p()&&p(1),tr&&L.ticker.add(On),Z=a._dc,I=L.to(a,{ease:"power4",paused:!0,inherit:!1,scrollX:r?"+=0.1":"+=0",scrollY:"+=0.1",modifiers:{scrollY:bh(p,p(),function(){return I.pause()})},onUpdate:Vn,onComplete:Z.vars.onComplete}),a};ct.sort=function(e){if(Te(e))return it.sort(e);var t=ot.pageYOffset||0;return ct.getAll().forEach(function(n){return n._sortY=n.trigger?t+n.trigger.getBoundingClientRect().top:n.start+ot.innerHeight}),it.sort(e||function(n,r){return(n.vars.refreshPriority||0)*-1e6+(n.vars.containerAnimation?1e6:n._sortY)-((r.vars.containerAnimation?1e6:r._sortY)+(r.vars.refreshPriority||0)*-1e6)})};ct.observe=function(e){return new Wt(e)};ct.normalizeScroll=function(e){if(typeof e>"u")return Re;if(e===!0&&Re)return Re.enable();if(e===!1){Re&&Re.kill(),Re=e;return}var t=e instanceof Wt?e:eE(e);return Re&&Re.target===t.target&&Re.kill(),Wr(t.target)&&(Re=t),t};ct.core={_getVelocityProp:Ec,_inputObserver:vh,_scrollers:at,_proxies:Mn,bridge:{ss:function(){pn||Vr("scrollStart"),pn=ve()},ref:function(){return be}}};uh()&&L.registerPlugin(ct);function nE(e,t){for(var n=0;nMath.abs(o)?s:o)/(1-r),u=-l*r,f,d;return l>0&&(f=n.height/(xt.innerHeight+n.height),d=f===.5?n.height*2:Math.min(n.height,Math.abs(-l*f/(2*f-1)))*2*(r||1),u+=r?-d*r:-d/2,l+=d),{change:l,offset:u}},yf=function(e){var r=Rr.querySelector(".ScrollSmoother-wrapper");return r||(r=Rr.createElement("div"),r.classList.add("ScrollSmoother-wrapper"),e.parentNode.insertBefore(r,e),r.appendChild(e)),r},fi=function(){function a(e){var r=this;Dn||a.register(_e)||console.warn("Please gsap.registerPlugin(ScrollSmoother)"),e=this.vars=e||{},hr&&hr.kill(),hr=this,ia(this);var t=e,i=t.smoothTouch,n=t.onUpdate,s=t.onStop,o=t.smooth,l=t.onFocusIn,u=t.normalizeScroll,f=t.wholePixels,d,_,c,p,h,y,C,S,O,g,b,T,x,k,P=this,M=e.effectsPrefix||"",L=J.getScrollFunc(xt),E=J.isTouch===1?i===!0?.8:parseFloat(i)||0:o===0||o===!1?0:parseFloat(o)||.8,Y=E&&+e.speed||1,I=0,Z=0,W=1,N=ta(0),ee=function(){return N.update(-I)},Q={y:0},m=function(){return d.style.overflow="visible"},he,Ne=function(v){v.update();var R=v.getTween();R&&(R.pause(),R._time=R._dur,R._tTime=R._tDur),he=!1,v.animation.progress(v.progress,!0)},at=function(v,R){(v!==I&&!g||R)&&(f&&(v=Math.round(v)),E&&(d.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+v+", 0, 1)",d._gsap.y=v+"px"),Z=v-I,I=v,J.isUpdating||a.isRefreshing||J.update())},ge=function(v){return arguments.length?(v<0&&(v=0),Q.y=-v,he=!0,g?I=-v:at(-v),J.isRefreshing?p.update():L(v/Y),this):-I},Re=typeof ResizeObserver<"u"&&e.autoResize!==!1&&new ResizeObserver(function(){if(!J.isRefreshing){var D=Or(_)*Y;D<-I&&ge(D),na.restart(!0)}}),Xe,Ce=function(v){_.scrollTop=0,!(v.target.contains&&v.target.contains(_)||l&&l(r,v)===!1)&&(J.isInViewport(v.target)||v.target===Xe||r.scrollTo(v.target,!1,"center center"),Xe=v.target)},Ge=function(v,R){if(v0?j+(oe-fe):Ge(oe,v),z.setPositions(j,xe,!0,(z._startClamp?Math.max(0,j):j)-fe),z.markerStart&&q.push(_e.quickSetter([z.markerStart,z.markerEnd],"y","px")),z.pin&&z.end>0&&!B)){if(re=z.end-z.start,Fe=v._startClamp&&z.start<0,Fe){if(v.start>0){v.setPositions(0,v.end+(v._startNative-v.start),!0),D(v,R);return}re+=z.start,V.offset=-z.start}V.push({start:z.start,nativeStart:fe,end:z.end,distance:re,trig:z}),v.setPositions(v.start,v.end+(Fe?-z.start:re),!0)}},er=function(v,R){h.forEach(function(B){return Ke(B,v,R)})},Qe=function(){Ui=Rr.documentElement,vr=Rr.body,m(),requestAnimationFrame(m),h&&(J.getAll().forEach(function(v){v._startNative=v.start,v._endNative=v.end}),h.forEach(function(v){var R=v._startClamp||v.start,B=v.autoSpeed?Math.min(Or(),v.end):R+Math.abs((v.end-R)/v.ratio),V=B-v.end;if(R-=V/2,B-=V/2,R>B){var q=R;R=B,B=q}v._startClamp&&R<0?(B=v.ratio<0?Or():v.end/v.ratio,V=B-v.end,R=0):(v.ratio<0||v._endClamp&&B>=Or())&&(B=Or(),R=v.ratio<0||v.ratio>1?0:B-(B-v.start)/v.ratio,V=(B-R)*v.ratio-(v.end-v.start)),v.offset=V||1e-4,v.pins.length=v.pins.offset=0,v.setPositions(R,B,!0)}),er(J.sort())),N.reset()},Ve=function(){return J.addEventListener("refresh",Qe)},ae=function(){return h&&h.forEach(function(v){return v.vars.onRefresh(v)})},ke=function(){return h&&h.forEach(function(v){return v.vars.onRefreshInit(v)}),ae},rt=function(v,R,B,V){return function(){var q=typeof R=="function"?R(B,V):R;q||q===0||(q=V.getAttribute("data-"+M+v)||(v==="speed"?1:0)),V.setAttribute("data-"+M+v,q);var re=(q+"").substr(0,6)==="clamp(";return{clamp:re,value:re?q.substr(6,q.length-7):q}}},mt=function(v,R,B,V,q){q=(typeof q=="function"?q(V,v):q)||0;var re=rt("speed",R,V,v),Fe=rt("lag",B,V,v),j=_e.getProperty(v,"y"),xe=v._gsap,fe,oe,He,z,Pr,kt,At=[],yr=function(){R=re(),B=parseFloat(Fe().value),fe=parseFloat(R.value)||1,He=R.value==="auto",Pr=He||oe&&oe._startClamp&&oe.start<=0||At.offset?0:oe&&oe._endClamp&&oe.end===Or()?1:.5,z&&z.kill(),z=B&&_e.to(v,{ease:An,overwrite:!1,y:"+=0",duration:B}),oe&&(oe.ratio=fe,oe.autoSpeed=He)},qt=function(){xe.y=j+"px",xe.renderTransform(1),yr()},tr=[],U=0,or=function(de){if(He){qt();var we=mf(v,ea(0,1,-de.start/(de.end-de.start)));U=we.change,kt=we.offset}else kt=At.offset||0,U=(de.end-de.start-kt)*(1-fe);At.forEach(function(Ft){return U-=Ft.distance*(1-fe)}),de.offset=U||.001,de.vars.onUpdate(de),z&&z.progress(1)};return yr(),(fe!==1||He||z)&&(oe=J.create({trigger:He?v.parentNode:v,start:function(){return R.clamp?"clamp(top bottom+="+q+")":"top bottom+="+q},end:function(){return R.value<0?"max":R.clamp?"clamp(bottom top-="+q+")":"bottom top-="+q},scroller:_,scrub:!0,refreshPriority:-999,onRefreshInit:qt,onRefresh:or,onKill:function(de){var we=h.indexOf(de);we>=0&&h.splice(we,1),qt()},onUpdate:function(de){var we=j+U*(de.progress-Pr),Ft=At.length,rr=0,Be,ir,H;if(de.offset){if(Ft){for(ir=-I,H=de.end;Ft--;){if(Be=At[Ft],Be.trig.isActive||ir>=Be.start&&ir<=Be.end){z&&(Be.trig.progress+=Be.trig.direction<0?.001:-.001,Be.trig.update(0,0,1),z.resetTo("y",parseFloat(xe.y),-Z,!0),W&&z.progress(1));return}ir>Be.end&&(rr+=Be.distance),H-=Be.distance}we=j+rr+U*((_e.utils.clamp(de.start,de.end,ir)-de.start-rr)/(H-de.start)-Pr)}tr.length&&!He&&tr.forEach(function(X){return X(we-rr)}),we=gf(we+kt),z?(z.resetTo("y",we,-Z,!0),W&&z.progress(1)):(xe.y=we+"px",xe.renderTransform(1))}}}),or(oe),_e.core.getCache(oe.trigger).stRevert=ke,oe.startY=j,oe.pins=At,oe.markers=tr,oe.ratio=fe,oe.autoSpeed=He,v.style.willChange="transform"),oe};Ve(),J.addEventListener("killAll",Ve),_e.delayedCall(.5,function(){return W=0}),this.scrollTop=ge,this.scrollTo=function(D,v,R){var B=_e.utils.clamp(0,Or(),isNaN(D)?r.offset(D,R,!!v&&!g):+D);v?g?_e.to(r,{duration:E,scrollTop:B,overwrite:"auto",ease:An}):L(B):ge(B)},this.offset=function(D,v,R){D=Zr(D)[0];var B=D.style.cssText,V=J.create({trigger:D,start:v||"top top"}),q;return h&&(W?J.refresh():er([V],!0)),q=V.start/(R?Y:1),V.kill(!1),D.style.cssText=B,_e.core.getCache(D).uncache=1,q};function w(){return c=d.clientHeight,d.style.overflow="visible",vr.style.height=xt.innerHeight+(c-xt.innerHeight)/Y+"px",c-xt.innerHeight}this.content=function(D){if(arguments.length){var v=Zr(D||"#smooth-content")[0]||console.warn("ScrollSmoother needs a valid content element.")||vr.children[0];return v!==d&&(d=v,O=d.getAttribute("style")||"",Re&&Re.observe(d),_e.set(d,{overflow:"visible",width:"100%",boxSizing:"border-box",y:"+=0"}),E||_e.set(d,{clearProps:"transform"})),this}return d},this.wrapper=function(D){return arguments.length?(_=Zr(D||"#smooth-wrapper")[0]||yf(d),S=_.getAttribute("style")||"",w(),_e.set(_,E?{overflow:"hidden",position:"fixed",height:"100%",width:"100%",top:0,left:0,right:0,bottom:0}:{overflow:"visible",position:"relative",width:"100%",height:"auto",top:"auto",bottom:"auto",left:"auto",right:"auto"}),this):_},this.effects=function(D,v){var R;if(h||(h=[]),!D)return h.slice(0);D=Zr(D),D.forEach(function(fe){for(var oe=h.length;oe--;)h[oe].trigger===fe&&h[oe].kill()}),v=v||{};var B=v,V=B.speed,q=B.lag,re=B.effectsPadding,Fe=[],j,xe;for(j=0;jB._dp._time,T=I,Q.y=0,E&&(J.isTouch===1&&(_.style.position="absolute"),_.scrollTop=0,J.isTouch===1&&(_.style.position="fixed"))}},onRefresh:function(v){v.animation.invalidate(),Q.y=0,v.setPositions(v.start,w()/Y),x||Ne(v),Q.y=-L()*Y,at(Q.y),W||(x&&(he=!1),v.animation.progress(_e.utils.clamp(0,1,T/Y/-v.end))),x&&(v.progress-=.001,v.update()),a.isRefreshing=!1},id:"ScrollSmoother",scroller:xt,invalidateOnRefresh:!0,start:0,refreshPriority:-9999,end:function(){return w()/Y},onScrubComplete:function(){N.reset(),s&&s(r)},scrub:E||!0}),this.smooth=function(D){return arguments.length&&(E=D||0,Y=E&&+e.speed||1,p.scrubDuration(D)),p.getTween()?p.getTween().duration():0},p.getTween()&&(p.getTween().vars.ease=e.ease||An),this.scrollTrigger=p,e.effects&&this.effects(e.effects===!0?"[data-"+M+"speed], [data-"+M+"lag]":e.effects,{effectsPadding:e.effectsPadding,refresh:!1}),e.sections&&this.sections(e.sections===!0?"[data-section]":e.sections),lt.forEach(function(D){D.vars.scroller=_,D.revert(!1,!0),D.init(D.vars,D.animation)}),this.paused=function(D,v){return arguments.length?(!!g!==D&&(D?(p.getTween()&&p.getTween().pause(),L(-I/Y),N.reset(),b=J.normalizeScroll(),b&&b.disable(),g=J.observe({preventDefault:!0,type:"wheel,touch,scroll",debounce:!1,allowClicks:!0,onChangeY:function(){return ge(-I)}}),g.nested=ra(Ui,"wheel,touch,scroll",!0,v!==!1)):(g.nested.kill(),g.kill(),g=0,b&&b.enable(),p.progress=(-I/Y-p.start)/(p.end-p.start),Ne(p))),this):!!g},this.kill=this.revert=function(){r.paused(!1),Ne(p),p.kill();for(var D=(h||[]).concat(y||[]),v=D.length;v--;)D[v].kill();J.scrollerProxy(_),J.removeEventListener("killAll",Ve),J.removeEventListener("refresh",Qe),_.style.cssText=S,d.style.cssText=O;var R=J.defaults({});R&&R.scroller===_&&J.defaults({scroller:xt}),r.normalizer&&J.normalizeScroll(!1),clearInterval(C),hr=null,Re&&Re.disconnect(),vr.style.removeProperty("height"),xt.removeEventListener("focusin",Ce)},this.refresh=function(D,v){return p.refresh(D,v)},u&&(this.normalizer=J.normalizeScroll(u===!0?{debounce:!0,content:!E&&d}:u)),J.config(e),"scrollBehavior"in xt.getComputedStyle(vr)&&_e.set([vr,Ui],{scrollBehavior:"auto"}),xt.addEventListener("focusin",Ce),C=setInterval(ee,250),Rr.readyState==="loading"||requestAnimationFrame(function(){return J.refresh()})}return a.register=function(r){return Dn||(_e=r||Ol(),Ml()&&window.document&&(xt=window,Rr=document,Ui=Rr.documentElement,vr=Rr.body),_e&&(Zr=_e.utils.toArray,ea=_e.utils.clamp,An=_e.parseEase("expo"),ia=_e.core.context||function(){},J=_e.core.globals().ScrollTrigger,_e.core.globals("ScrollSmoother",a),vr&&J&&(na=_e.delayedCall(.2,function(){return J.isRefreshing||hr&&hr.refresh()}).pause(),ta=J.core._getVelocityProp,ra=J.core._inputObserver,a.refresh=J.refresh,Dn=1))),Dn},pf(a,[{key:"progress",get:function(){return this.scrollTrigger?this.scrollTrigger.animation._time/100:0}}]),a}();fi.version="3.14.1";fi.create=function(a){return hr&&a&&hr.content()===Zr(a.content)[0]?hr:new fi(a)};fi.get=function(){return hr};Ol()&&_e.registerPlugin(fi);vi.registerPlugin(se,fi);(function(a,e){(function(){e.path.isFront,console.log("drupalSettings",e);const t=["pyramide","prct","infinite","pi","supeg","cone","croissant","cube","diamant","cylindre"];let i=[],n=null;function s(){console.log("MathalloTheme init()"),o(),l(),f(),d(),p(),y()}function o(){document.getElementById("burger-btn").parentElement.addEventListener("click",function(b){this.firstElementChild.toggleAttribute("opened"),this.firstElementChild.nextElementSibling.toggleAttribute("opened")})}function l(){let g=document.getElementById("partie-principes-pratique");if(g){let b=g.getElementsByClassName("field-card");for(const T of b)T.addEventListener("mousemove",function(x){for(const k of this.parentElement.children)k.classList.add("back-card"),k.classList.remove("front-card");this.classList.add("front-card"),this.classList.remove("back-card")})}}function u(){i.forEach(({card:g,forme:b,formepos:T})=>{b.style.top=`${g.offsetTop+T.top}px`,b.style.left=`${g.offsetLeft+T.left}px`})}function f(){let g=document.querySelectorAll('article[role="home-presentation"] p'),b=[];for(const T of g){let x=Math.round(Math.random()*(t.length-1));for(;b.includes(x);)x=Math.round(Math.random()*(t.length-1));b.push(x),T.classList.add(`forme-${t[x]}`)}}async function d(){const g=document.querySelector('main[role="main"] > .layout-content > .wrapper');let b=document.querySelectorAll('article[role="home-presentation"], .field-card, .node-type-chapitre, .node-type-partie'),T=[],x=1;for(const k of b){let P={card:k},M=Math.round(Math.random()*(t.length-1));for(;T.includes(M);)M=Math.round(Math.random()*(t.length-1));T.push(M);let L=await c(k,M);g.prepend(L),P.forme=L,P.formepos={left:L.offsetLeft-k.offsetLeft,top:L.offsetTop-k.offsetTop},i.push(P),_(k,L,x),x*=-1}window.addEventListener("resize",u)}function _(g,b,T){vi.timeline({scrollTrigger:{trigger:g,start:"top bottom",end:"bottom top",scrub:!0,ease:"power4.out",snap:!1}}).from(g.children,{opacity:.4},0).to(g.children,{opacity:1},.5).to(g.children,{opacity:.4},.7).from(g,{translateX:`${200*T}px`,translateY:`${100*T}px`},0).to(g,{translateX:"0",translateY:"0"},.5),vi.to(b.querySelector("svg"),{scrollTrigger:{trigger:b,start:"top bottom",end:"bottom top",scrub:!0,ease:"power4.out"},rotation:Math.random()>.5?45:-45,skewX:Math.random()>.5?10:-10}),vi.timeline({scrollTrigger:{trigger:g,start:"top center",end:"bottom center",scrub:!0,markers:!1}}).to(b.querySelector("svg"),{stroke:"#f661e2",duration:.1},.3).to(b.querySelector("svg"),{stroke:"#1642bc",duration:.1},.7)}async function c(g,b){let T=document.createElement("div");T.classList.add("bg-forme");const k=await(await fetch(`/themes/custom/mathallo/assets/img/formes/bordure/${t[b]}.svg`)).text();T.innerHTML=k;const P=T.querySelector("svg");let M=200+Math.random()*300;P.getAttribute("width"),T.style.width=T.style.height=`${M}px`,P.setAttribute("width",M),P.setAttribute("height",M);let L=g.offsetTop+g.clientHeight/2-M/2;g.clientHeight<300&&(L=Math.random()>.5?g.offsetTop-M/2:g.offsetTop+g.clientHeight-M/2),T.style.top=`${L}px`;let E=20+Math.random()*20;return g.classList.contains("field-principes-reflexion")||g.classList.contains("field-ressources")?T.style.left=`${g.offsetLeft-M+E}px`:g.classList.contains("field-en-pratique")||g.classList.contains("field-plus-loin")?T.style.left=`${g.offsetLeft+g.clientWidth-E}px`:T.style.left=Math.random()>.5?`${g.offsetLeft-M+E}px`:`${g.offsetLeft+g.clientWidth-E}px`,T}function p(){n=fi.create({smooth:3,effects:!0,smoothTouch:.1,wrapper:'main[role="main"]',content:'main[role="main"]>.layout-content',onUpdate:h}),console.log("smoother",n),vi.to("#parallax-bg",{y:(g,b)=>-(se.maxScroll(window)*1.2),ease:"none",scrollTrigger:{trigger:'main[role="main"] > .layout-content > .wrapper',start:"top bottom",end:"bottom top",scrub:!0,invalidateOnRefresh:!0}})}function h(g){}function y(){let g=document.querySelectorAll(".footnote__citation"),b=[];for(const T of g){console.log("fn",T);let x=Math.round(Math.random()*(t.length-1));for(;b.includes(x);)x=Math.round(Math.random()*(t.length-1));b.push(x),T.querySelector("span.footnote-link").classList.add(`forme-${t[x]}`),T.addEventListener("click",C)}}function C(g){g.preventDefault(),g.stopPropagation(),console.log("onClickFN, event:",g);let b=g.currentTarget,T=b.offsetParent;O();let x=document.createElement("div");x.classList.add("fn-modale"),T.append(x),x.innerHTML=b.querySelector(".footnote-content").innerHTML;let k=20,P=T.clientWidth*2/3,M=window.innerHeight*.3;x.style.maxWidth=`${P}px`,x.style.maxHeight=`${M}px`,x.style.overflowY="auto";let L=x.offsetWidth,E=x.offsetHeight,Y=b.offsetLeft,I=b.offsetTop,Z=b.offsetWidth,W=b.offsetHeight,N=T.clientWidth,ee=T.clientHeight,Q,m;Y+Z/2>N/2?(Q=Y-L-k,QN-k&&(Q=N-L-k)),I+W/2>ee/2?(m=I-E-k,mee-k&&(m=ee-E-k)),x.style.left=`${Q}px`,x.style.top=`${m}px`,x.classList.add("visible"),T.addEventListener("click",S)}function S(g){console.log("onClickFNParent, event:",g),O(),g.target.removeEventListener("click",S)}function O(){let g=document.querySelectorAll("div.fn-modale");for(const b of g)b.remove()}s()})()})(Drupal,drupalSettings); +*/var St,ro,Oe,er,Xi,Fn,Or,bl,et,Rn,io,vl,El,Tl,wl,Eh=function(){return typeof window<"u"},Th=function(){return St||Eh()&&(St=window.gsap)&&St.registerPlugin&&St},iE=function(t){return Math.round(t*1e5)/1e5||0},Qn=function(t){return et.maxScroll(t||Oe)},sE=function(t,n){var r=t.parentNode||Xi,i=t.getBoundingClientRect(),s=r.getBoundingClientRect(),o=s.top-i.top,a=s.bottom-i.bottom,c=(Math.abs(o)>Math.abs(a)?o:a)/(1-n),u=-c*n,f,l;return c>0&&(f=s.height/(Oe.innerHeight+s.height),l=f===.5?s.height*2:Math.min(s.height,Math.abs(-c*f/(2*f-1)))*2*(n||1),u+=n?-l*n:-l/2,c+=l),{change:c,offset:u}},oE=function(t){var n=er.querySelector(".ScrollSmoother-wrapper");return n||(n=er.createElement("div"),n.classList.add("ScrollSmoother-wrapper"),t.parentNode.insertBefore(n,t),n.appendChild(t)),n},jr=function(){function e(t){var n=this;ro||e.register(St)||console.warn("Please gsap.registerPlugin(ScrollSmoother)"),t=this.vars=t||{},Rn&&Rn.kill(),Rn=this,Tl(this);var r=t,i=r.smoothTouch,s=r.onUpdate,o=r.onStop,a=r.smooth,c=r.onFocusIn,u=r.normalizeScroll,f=r.wholePixels,l,d,p,_,h,g,v,T,k,m,b,x,E,C,O=this,R=t.effectsPrefix||"",F=et.getScrollFunc(Oe),I=et.isTouch===1?i===!0?.8:parseFloat(i)||0:a===0||a===!1?0:parseFloat(a)||.8,H=I&&+t.speed||1,B=0,Z=0,q=1,z=vl(0),rt=function(){return z.update(-B)},Q={y:0},y=function(){return l.style.overflow="visible"},mt,Yt=function(S){S.update();var P=S.getTween();P&&(P.pause(),P._time=P._dur,P._tTime=P._tDur),mt=!1,S.animation.progress(S.progress,!0)},_e=function(S,P){(S!==B&&!m||P)&&(f&&(S=Math.round(S)),I&&(l.style.transform="matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, "+S+", 0, 1)",l._gsap.y=S+"px"),Z=S-B,B=S,et.isUpdating||e.isRefreshing||et.update())},vt=function(S){return arguments.length?(S<0&&(S=0),Q.y=-S,mt=!0,m?B=-S:_e(-S),et.isRefreshing?_.update():F(S/H),this):-B},$t=typeof ResizeObserver<"u"&&t.autoResize!==!1&&new ResizeObserver(function(){if(!et.isRefreshing){var A=Qn(d)*H;A<-B&&vt(A),wl.restart(!0)}}),Gt,Pt=function(S){d.scrollTop=0,!(S.target.contains&&S.target.contains(d)||c&&c(n,S)===!1)&&(et.isInViewport(S.target)||S.target===Gt||n.scrollTo(S.target,!1,"center center"),Gt=S.target)},te=function(S,P){if(S0?tt+(ut-_t):te(ut,S),$.setPositions(tt,xt,!0,($._startClamp?Math.max(0,tt):tt)-_t),$.markerStart&&X.push(St.quickSetter([$.markerStart,$.markerEnd],"y","px")),$.pin&&$.end>0&&!U)){if(st=$.end-$.start,zt=S._startClamp&&$.start<0,zt){if(S.start>0){S.setPositions(0,S.end+(S._startNative-S.start),!0),A(S,P);return}st+=$.start,V.offset=-$.start}V.push({start:$.start,nativeStart:_t,end:$.end,distance:st,trig:$}),S.setPositions(S.start,S.end+(zt?-$.start:st),!0)}},hn=function(S,P){h.forEach(function(U){return ee(U,S,P)})},ne=function(){Xi=er.documentElement,Fn=er.body,y(),requestAnimationFrame(y),h&&(et.getAll().forEach(function(S){S._startNative=S.start,S._endNative=S.end}),h.forEach(function(S){var P=S._startClamp||S.start,U=S.autoSpeed?Math.min(Qn(),S.end):P+Math.abs((S.end-P)/S.ratio),V=U-S.end;if(P-=V/2,U-=V/2,P>U){var X=P;P=U,U=X}S._startClamp&&P<0?(U=S.ratio<0?Qn():S.end/S.ratio,V=U-S.end,P=0):(S.ratio<0||S._endClamp&&U>=Qn())&&(U=Qn(),P=S.ratio<0||S.ratio>1?0:U-(U-S.start)/S.ratio,V=(U-P)*S.ratio-(S.end-S.start)),S.offset=V||1e-4,S.pins.length=S.pins.offset=0,S.setPositions(P,U,!0)}),hn(et.sort())),z.reset()},Xt=function(){return et.addEventListener("refresh",ne)},ft=function(){return h&&h.forEach(function(S){return S.vars.onRefresh(S)})},At=function(){return h&&h.forEach(function(S){return S.vars.onRefreshInit(S)}),ft},ce=function(S,P,U,V){return function(){var X=typeof P=="function"?P(U,V):P;X||X===0||(X=V.getAttribute("data-"+R+S)||(S==="speed"?1:0)),V.setAttribute("data-"+R+S,X);var st=(X+"").substr(0,6)==="clamp(";return{clamp:st,value:st?X.substr(6,X.length-7):X}}},xe=function(S,P,U,V,X){X=(typeof X=="function"?X(V,S):X)||0;var st=ce("speed",P,V,S),zt=ce("lag",U,V,S),tt=St.getProperty(S,"y"),xt=S._gsap,_t,ut,Kt,$,Xn,Me,Ye=[],Ln=function(){P=st(),U=parseFloat(zt().value),_t=parseFloat(P.value)||1,Kt=P.value==="auto",Xn=Kt||ut&&ut._startClamp&&ut.start<=0||Ye.offset?0:ut&&ut._endClamp&&ut.end===Qn()?1:.5,$&&$.kill(),$=U&&St.to(S,{ease:io,overwrite:!1,y:"+=0",duration:U}),ut&&(ut.ratio=_t,ut.autoSpeed=Kt)},on=function(){xt.y=tt+"px",xt.renderTransform(1),Ln()},_n=[],G=0,Tn=function(yt){if(Kt){on();var Ot=sE(S,bl(0,1,-yt.start/(yt.end-yt.start)));G=Ot.change,Me=Ot.offset}else Me=Ye.offset||0,G=(yt.end-yt.start-Me)*(1-_t);Ye.forEach(function(Ve){return G-=Ve.distance*(1-_t)}),yt.offset=G||.001,yt.vars.onUpdate(yt),$&&$.progress(1)};return Ln(),(_t!==1||Kt||$)&&(ut=et.create({trigger:Kt?S.parentNode:S,start:function(){return P.clamp?"clamp(top bottom+="+X+")":"top bottom+="+X},end:function(){return P.value<0?"max":P.clamp?"clamp(bottom top-="+X+")":"bottom top-="+X},scroller:d,scrub:!0,refreshPriority:-999,onRefreshInit:on,onRefresh:Tn,onKill:function(yt){var Ot=h.indexOf(yt);Ot>=0&&h.splice(Ot,1),on()},onUpdate:function(yt){var Ot=tt+G*(yt.progress-Xn),Ve=Ye.length,gn=0,Vt,mn,j;if(yt.offset){if(Ve){for(mn=-B,j=yt.end;Ve--;){if(Vt=Ye[Ve],Vt.trig.isActive||mn>=Vt.start&&mn<=Vt.end){$&&(Vt.trig.progress+=Vt.trig.direction<0?.001:-.001,Vt.trig.update(0,0,1),$.resetTo("y",parseFloat(xt.y),-Z,!0),q&&$.progress(1));return}mn>Vt.end&&(gn+=Vt.distance),j-=Vt.distance}Ot=tt+gn+G*((St.utils.clamp(yt.start,yt.end,mn)-yt.start-gn)/(j-yt.start)-Xn)}_n.length&&!Kt&&_n.forEach(function(Y){return Y(Ot-gn)}),Ot=iE(Ot+Me),$?($.resetTo("y",Ot,-Z,!0),q&&$.progress(1)):(xt.y=Ot+"px",xt.renderTransform(1))}}}),Tn(ut),St.core.getCache(ut.trigger).stRevert=At,ut.startY=tt,ut.pins=Ye,ut.markers=_n,ut.ratio=_t,ut.autoSpeed=Kt,S.style.willChange="transform"),ut};Xt(),et.addEventListener("killAll",Xt),St.delayedCall(.5,function(){return q=0}),this.scrollTop=vt,this.scrollTo=function(A,S,P){var U=St.utils.clamp(0,Qn(),isNaN(A)?n.offset(A,P,!!S&&!m):+A);S?m?St.to(n,{duration:I,scrollTop:U,overwrite:"auto",ease:io}):F(U):vt(U)},this.offset=function(A,S,P){A=Or(A)[0];var U=A.style.cssText,V=et.create({trigger:A,start:S||"top top"}),X;return h&&(q?et.refresh():hn([V],!0)),X=V.start/(P?H:1),V.kill(!1),A.style.cssText=U,St.core.getCache(A).uncache=1,X};function w(){return p=l.clientHeight,l.style.overflow="visible",Fn.style.height=Oe.innerHeight+(p-Oe.innerHeight)/H+"px",p-Oe.innerHeight}this.content=function(A){if(arguments.length){var S=Or(A||"#smooth-content")[0]||console.warn("ScrollSmoother needs a valid content element.")||Fn.children[0];return S!==l&&(l=S,k=l.getAttribute("style")||"",$t&&$t.observe(l),St.set(l,{overflow:"visible",width:"100%",boxSizing:"border-box",y:"+=0"}),I||St.set(l,{clearProps:"transform"})),this}return l},this.wrapper=function(A){return arguments.length?(d=Or(A||"#smooth-wrapper")[0]||oE(l),T=d.getAttribute("style")||"",w(),St.set(d,I?{overflow:"hidden",position:"fixed",height:"100%",width:"100%",top:0,left:0,right:0,bottom:0}:{overflow:"visible",position:"relative",width:"100%",height:"auto",top:"auto",bottom:"auto",left:"auto",right:"auto"}),this):d},this.effects=function(A,S){var P;if(h||(h=[]),!A)return h.slice(0);A=Or(A),A.forEach(function(_t){for(var ut=h.length;ut--;)h[ut].trigger===_t&&h[ut].kill()}),S=S||{};var U=S,V=U.speed,X=U.lag,st=U.effectsPadding,zt=[],tt,xt;for(tt=0;ttU._dp._time,x=B,Q.y=0,I&&(et.isTouch===1&&(d.style.position="absolute"),d.scrollTop=0,et.isTouch===1&&(d.style.position="fixed"))}},onRefresh:function(S){S.animation.invalidate(),Q.y=0,S.setPositions(S.start,w()/H),E||Yt(S),Q.y=-F()*H,_e(Q.y),q||(E&&(mt=!1),S.animation.progress(St.utils.clamp(0,1,x/H/-S.end))),E&&(S.progress-=.001,S.update()),e.isRefreshing=!1},id:"ScrollSmoother",scroller:Oe,invalidateOnRefresh:!0,start:0,refreshPriority:-9999,end:function(){return w()/H},onScrubComplete:function(){z.reset(),o&&o(n)},scrub:I||!0}),this.smooth=function(A){return arguments.length&&(I=A||0,H=I&&+t.speed||1,_.scrubDuration(A)),_.getTween()?_.getTween().duration():0},_.getTween()&&(_.getTween().vars.ease=t.ease||io),this.scrollTrigger=_,t.effects&&this.effects(t.effects===!0?"[data-"+R+"speed], [data-"+R+"lag]":t.effects,{effectsPadding:t.effectsPadding,refresh:!1}),t.sections&&this.sections(t.sections===!0?"[data-section]":t.sections),ge.forEach(function(A){A.vars.scroller=d,A.revert(!1,!0),A.init(A.vars,A.animation)}),this.paused=function(A,S){return arguments.length?(!!m!==A&&(A?(_.getTween()&&_.getTween().pause(),F(-B/H),z.reset(),b=et.normalizeScroll(),b&&b.disable(),m=et.observe({preventDefault:!0,type:"wheel,touch,scroll",debounce:!1,allowClicks:!0,onChangeY:function(){return vt(-B)}}),m.nested=El(Xi,"wheel,touch,scroll",!0,S!==!1)):(m.nested.kill(),m.kill(),m=0,b&&b.enable(),_.progress=(-B/H-_.start)/(_.end-_.start),Yt(_))),this):!!m},this.kill=this.revert=function(){n.paused(!1),Yt(_),_.kill();for(var A=(h||[]).concat(g||[]),S=A.length;S--;)A[S].kill();et.scrollerProxy(d),et.removeEventListener("killAll",Xt),et.removeEventListener("refresh",ne),d.style.cssText=T,l.style.cssText=k;var P=et.defaults({});P&&P.scroller===d&&et.defaults({scroller:Oe}),n.normalizer&&et.normalizeScroll(!1),clearInterval(v),Rn=null,$t&&$t.disconnect(),Fn.style.removeProperty("height"),Oe.removeEventListener("focusin",Pt)},this.refresh=function(A,S){return _.refresh(A,S)},u&&(this.normalizer=et.normalizeScroll(u===!0?{debounce:!0,content:!I&&l}:u)),et.config(t),"scrollBehavior"in Oe.getComputedStyle(Fn)&&St.set([Fn,Xi],{scrollBehavior:"auto"}),Oe.addEventListener("focusin",Pt),v=setInterval(rt,250),er.readyState==="loading"||requestAnimationFrame(function(){return et.refresh()})}return e.register=function(n){return ro||(St=n||Th(),Eh()&&window.document&&(Oe=window,er=document,Xi=er.documentElement,Fn=er.body),St&&(Or=St.utils.toArray,bl=St.utils.clamp,io=St.parseEase("expo"),Tl=St.core.context||function(){},et=St.core.globals().ScrollTrigger,St.core.globals("ScrollSmoother",e),Fn&&et&&(wl=St.delayedCall(.2,function(){return et.isRefreshing||Rn&&Rn.refresh()}).pause(),vl=et.core._getVelocityProp,El=et.core._inputObserver,e.refresh=et.refresh,ro=1))),ro},rE(e,[{key:"progress",get:function(){return this.scrollTrigger?this.scrollTrigger.animation._time/100:0}}]),e}();jr.version="3.14.1";jr.create=function(e){return Rn&&e&&Rn.content()===Or(e.content)[0]?Rn:new jr(e)};jr.get=function(){return Rn};Th()&&St.registerPlugin(jr);const aE="https://98577840dda94253bdbb8f2812974a09@glitchtip.figli.io/2";yb({dsn:aE,environment:/^(dev\.|.*\.localhost$|localhost$)/.test(window.location.hostname)?"development":"production",sendDefaultPii:!1});ai.registerPlugin(ct,jr);(function(e,t){(function(){t.path.isFront,console.log("drupalSettings",t);const r=["pyramide","prct","infinite","pi","supeg","cone","croissant","cube","diamant","cylindre"];let i=[],s=null;function o(){console.log("MathalloTheme init()"),a(),c(),f(),l(),_(),g()}function a(){document.getElementById("burger-btn").parentElement.addEventListener("click",function(b){this.firstElementChild.toggleAttribute("opened"),this.firstElementChild.nextElementSibling.toggleAttribute("opened")})}function c(){let m=document.getElementById("partie-principes-pratique");if(m){let b=m.getElementsByClassName("field-card");for(const x of b)x.addEventListener("mousemove",function(E){for(const C of this.parentElement.children)C.classList.add("back-card"),C.classList.remove("front-card");this.classList.add("front-card"),this.classList.remove("back-card")})}}function u(){i.forEach(({card:m,forme:b,formepos:x})=>{b.style.top=`${m.offsetTop+x.top}px`,b.style.left=`${m.offsetLeft+x.left}px`})}function f(){let m=document.querySelectorAll('article[role="home-presentation"] p'),b=[];for(const x of m){let E=Math.round(Math.random()*(r.length-1));for(;b.includes(E);)E=Math.round(Math.random()*(r.length-1));b.push(E),x.classList.add(`forme-${r[E]}`)}}async function l(){const m=document.querySelector('main[role="main"] > .layout-content > .wrapper');let b=document.querySelectorAll('article[role="home-presentation"], .field-card, .node-type-chapitre, .node-type-partie'),x=[],E=1;for(const C of b){let O={card:C},R=Math.round(Math.random()*(r.length-1));for(;x.includes(R);)R=Math.round(Math.random()*(r.length-1));x.push(R);let F=await p(C,R);m.prepend(F),O.forme=F,O.formepos={left:F.offsetLeft-C.offsetLeft,top:F.offsetTop-C.offsetTop},i.push(O),d(C,F,E),E*=-1}window.addEventListener("resize",u)}function d(m,b,x){ai.timeline({scrollTrigger:{trigger:m,start:"top bottom",end:"bottom top",scrub:!0,ease:"power4.out",snap:!1}}).from(m.children,{opacity:.4},0).to(m.children,{opacity:1},.5).to(m.children,{opacity:.4},.7).from(m,{translateX:`${200*x}px`,translateY:`${100*x}px`},0).to(m,{translateX:"0",translateY:"0"},.5),ai.to(b.querySelector("svg"),{scrollTrigger:{trigger:b,start:"top bottom",end:"bottom top",scrub:!0,ease:"power4.out"},rotation:Math.random()>.5?45:-45,skewX:Math.random()>.5?10:-10}),ai.timeline({scrollTrigger:{trigger:m,start:"top center",end:"bottom center",scrub:!0,markers:!1}}).to(b.querySelector("svg"),{stroke:"#f661e2",duration:.1},.3).to(b.querySelector("svg"),{stroke:"#1642bc",duration:.1},.7)}async function p(m,b){let x=document.createElement("div");x.classList.add("bg-forme");const C=await(await fetch(`/themes/custom/mathallo/assets/img/formes/bordure/${r[b]}.svg`)).text();x.innerHTML=C;const O=x.querySelector("svg");let R=200+Math.random()*300;O.getAttribute("width"),x.style.width=x.style.height=`${R}px`,O.setAttribute("width",R),O.setAttribute("height",R);let F=m.offsetTop+m.clientHeight/2-R/2;m.clientHeight<300&&(F=Math.random()>.5?m.offsetTop-R/2:m.offsetTop+m.clientHeight-R/2),x.style.top=`${F}px`;let I=20+Math.random()*20;return m.classList.contains("field-principes-reflexion")||m.classList.contains("field-ressources")?x.style.left=`${m.offsetLeft-R+I}px`:m.classList.contains("field-en-pratique")||m.classList.contains("field-plus-loin")?x.style.left=`${m.offsetLeft+m.clientWidth-I}px`:x.style.left=Math.random()>.5?`${m.offsetLeft-R+I}px`:`${m.offsetLeft+m.clientWidth-I}px`,x}function _(){s=jr.create({smooth:3,effects:!0,smoothTouch:.1,wrapper:'main[role="main"]',content:'main[role="main"]>.layout-content',onUpdate:h}),console.log("smoother",s),ai.to("#parallax-bg",{y:(m,b)=>-(ct.maxScroll(window)*1.2),ease:"none",scrollTrigger:{trigger:'main[role="main"] > .layout-content > .wrapper',start:"top bottom",end:"bottom top",scrub:!0,invalidateOnRefresh:!0}})}function h(m){}function g(){let m=document.querySelectorAll(".footnote__citation"),b=[];for(const x of m){console.log("fn",x);let E=Math.round(Math.random()*(r.length-1));for(;b.includes(E);)E=Math.round(Math.random()*(r.length-1));b.push(E),x.querySelector("span.footnote-link").classList.add(`forme-${r[E]}`),x.addEventListener("click",v)}}function v(m){m.preventDefault(),m.stopPropagation(),console.log("onClickFN, event:",m);let b=m.currentTarget,x=b.offsetParent;k();let E=document.createElement("div");E.classList.add("fn-modale"),x.append(E),E.innerHTML=b.querySelector(".footnote-content").innerHTML;let C=20,O=x.clientWidth*2/3,R=window.innerHeight*.3;E.style.maxWidth=`${O}px`,E.style.maxHeight=`${R}px`,E.style.overflowY="auto";let F=E.offsetWidth,I=E.offsetHeight,H=b.offsetLeft,B=b.offsetTop,Z=b.offsetWidth,q=b.offsetHeight,z=x.clientWidth,rt=x.clientHeight,Q,y;H+Z/2>z/2?(Q=H-F-C,Qz-C&&(Q=z-F-C)),B+q/2>rt/2?(y=B-I-C,yrt-C&&(y=rt-I-C)),E.style.left=`${Q}px`,E.style.top=`${y}px`,E.classList.add("visible"),x.addEventListener("click",T)}function T(m){console.log("onClickFNParent, event:",m),k(),m.target.removeEventListener("click",T)}function k(){let m=document.querySelectorAll("div.fn-modale");for(const b of m)b.remove()}o()})()})(Drupal,drupalSettings); diff --git a/web_main/themes/custom/mathallo/assets/js/main.js b/web_main/themes/custom/mathallo/assets/js/main.js index 7a94ebc..6c070ce 100644 --- a/web_main/themes/custom/mathallo/assets/js/main.js +++ b/web_main/themes/custom/mathallo/assets/js/main.js @@ -1,5 +1,23 @@ // import { createApp } from 'vue' +import * as Sentry from '@sentry/vue' import '../scss/main.scss' + +// --------------------------------------------------------------------------- +// GlitchTip (compatible Sentry) — projet « mathallo » sur glitchtip.figli.io. +// La DSN est une clé publique (client key) : pas un secret, elle est embarquée +// dans le bundle front comme dans toute intégration Sentry JS. +// Événements envoyés : erreurs JS non capturées, rejets de promesses, et +// (si l'app Vue est réactivée) erreurs Vue via errorHandler. +// --------------------------------------------------------------------------- +const SENTRY_DSN = 'https://98577840dda94253bdbb8f2812974a09@glitchtip.figli.io/2' + +Sentry.init({ + dsn: SENTRY_DSN, + environment: /^(dev\.|.*\.localhost$|localhost$)/.test(window.location.hostname) + ? 'development' + : 'production', + sendDefaultPii: false, +}) // import Content from './vuejs/Content.vue' // import REST from './api/rest-axios' diff --git a/web_main/themes/custom/mathallo/package-lock.json b/web_main/themes/custom/mathallo/package-lock.json index 5ef6995..7aeb0df 100644 --- a/web_main/themes/custom/mathallo/package-lock.json +++ b/web_main/themes/custom/mathallo/package-lock.json @@ -8,6 +8,7 @@ "name": "mathallo", "version": "0.0.0", "dependencies": { + "@sentry/vue": "^11.17.0", "axios": "^1.7.2", "gsap": "^3.14.1", "vue": "^3.4.29" @@ -651,6 +652,123 @@ "win32" ] }, + "node_modules/@sentry/browser": { + "version": "11.17.0", + "resolved": "https://registry.npmjs.org/@sentry/browser/-/browser-11.17.0.tgz", + "integrity": "sha512-6zxDfbpb2qgsgiAIkgRx+QuF3EFowEHEwf1tcx2WSrbn8VJ2ViUN4OUOFpB525vJaiOou2MwOxbw80FBQpOkvA==", + "license": "MIT", + "dependencies": { + "@sentry/browser-utils": "11.17.0", + "@sentry/conventions": "^0.35.0", + "@sentry/core": "11.17.0", + "@sentry/feedback": "11.17.0", + "@sentry/replay": "11.17.0", + "@sentry/replay-canvas": "11.17.0" + }, + "engines": { + "node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0" + } + }, + "node_modules/@sentry/browser-utils": { + "version": "11.17.0", + "resolved": "https://registry.npmjs.org/@sentry/browser-utils/-/browser-utils-11.17.0.tgz", + "integrity": "sha512-+0JIKG68z7ziTiCbtgX0H6jsUNvEruyforiQ3rOebW9k52j6RK2X6vlcDByPMzQW/w/AI2WryswnYU4sCL+xBA==", + "license": "MIT", + "dependencies": { + "@sentry/conventions": "^0.35.0", + "@sentry/core": "11.17.0", + "web-vitals": "^6.2.3" + }, + "engines": { + "node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0" + } + }, + "node_modules/@sentry/conventions": { + "version": "0.35.0", + "resolved": "https://registry.npmjs.org/@sentry/conventions/-/conventions-0.35.0.tgz", + "integrity": "sha512-bq2ecu6zaBni0gG5bHN9cY7fmUsOW49ntjGZ6VA69PVAa1Uk1NvgF1SdTGoVC0zkqQKziTnxzOs9KuuVlpb26w==", + "license": "MIT", + "engines": { + "node": ">=14" + } + }, + "node_modules/@sentry/core": { + "version": "11.17.0", + "resolved": "https://registry.npmjs.org/@sentry/core/-/core-11.17.0.tgz", + "integrity": "sha512-Tf9XOBEMeGdZZNaCBzFTk1lN/q9gzSnWtnNRZW9IYtokM99VVfx4wTWVeg6qZ++c6mNybmhUbltnN7b87RqOwQ==", + "license": "MIT", + "dependencies": { + "@sentry/conventions": "^0.35.0" + }, + "engines": { + "node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0" + } + }, + "node_modules/@sentry/feedback": { + "version": "11.17.0", + "resolved": "https://registry.npmjs.org/@sentry/feedback/-/feedback-11.17.0.tgz", + "integrity": "sha512-hLAZZYzWOs8Bc44QyxNzqd5o3/9bM0oV8n9G66qtqOGyxFLgeuwb6LLUeqmnY5tom6unkjSnKtKRIthk+M3KkQ==", + "license": "MIT", + "dependencies": { + "@sentry/core": "11.17.0" + }, + "engines": { + "node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0" + } + }, + "node_modules/@sentry/replay": { + "version": "11.17.0", + "resolved": "https://registry.npmjs.org/@sentry/replay/-/replay-11.17.0.tgz", + "integrity": "sha512-TUunibV0YUkcoVNRBPbY171n4yDn6OqZjzmDqWyZfl7vBchnglslwj4CkBaHyQfZJMfytx5Uput6vlqnfkLJCw==", + "license": "MIT", + "dependencies": { + "@sentry/browser-utils": "11.17.0", + "@sentry/core": "11.17.0" + }, + "engines": { + "node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0" + } + }, + "node_modules/@sentry/replay-canvas": { + "version": "11.17.0", + "resolved": "https://registry.npmjs.org/@sentry/replay-canvas/-/replay-canvas-11.17.0.tgz", + "integrity": "sha512-pyYzfa+OogDMlh5QWWkaNGXzdbuPXsFhRtiJrcry/9xFsZXESS9FgoaJQgmxjD0TRQKgsRA3oTso4hmnw7rf2g==", + "license": "MIT", + "dependencies": { + "@sentry/core": "11.17.0", + "@sentry/replay": "11.17.0" + }, + "engines": { + "node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0" + } + }, + "node_modules/@sentry/vue": { + "version": "11.17.0", + "resolved": "https://registry.npmjs.org/@sentry/vue/-/vue-11.17.0.tgz", + "integrity": "sha512-i3jXEUIpVhMycR/bpOLu6C/kovxel9aJ1hYgGNJHANiWDqRGokMIpWab97XZ93MlTrUfOfEW0NyElD6Kxg8owQ==", + "license": "MIT", + "dependencies": { + "@sentry/browser": "11.17.0", + "@sentry/conventions": "^0.35.0", + "@sentry/core": "11.17.0" + }, + "engines": { + "node": ">=20.19.0 <22.0.0 || >=22.12.0 <23.0.0 || >=23.2.0" + }, + "peerDependencies": { + "@tanstack/vue-router": "^1.64.0", + "pinia": "2.x || 3.x || 4.x", + "vue": "2.x || 3.x" + }, + "peerDependenciesMeta": { + "@tanstack/vue-router": { + "optional": true + }, + "pinia": { + "optional": true + } + } + }, "node_modules/@types/estree": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz", @@ -1348,6 +1466,12 @@ "optional": true } } + }, + "node_modules/web-vitals": { + "version": "6.2.3", + "resolved": "https://registry.npmjs.org/web-vitals/-/web-vitals-6.2.3.tgz", + "integrity": "sha512-Dmy+vdO1UPMqXiAtZSNayhl4f794Bxfd94W4HIj2HlYtczEQfEOon969memlcpcHrTuOKLa5baFjX7WbgmOq+A==", + "license": "Apache-2.0" } } } diff --git a/web_main/themes/custom/mathallo/package.json b/web_main/themes/custom/mathallo/package.json index d9362f0..13323e6 100644 --- a/web_main/themes/custom/mathallo/package.json +++ b/web_main/themes/custom/mathallo/package.json @@ -9,6 +9,7 @@ "preview": "vite preview" }, "dependencies": { + "@sentry/vue": "^11.17.0", "axios": "^1.7.2", "gsap": "^3.14.1", "vue": "^3.4.29"