vendor: 20,226 bytes, lines 1-5
1var tr=!1,nr=!1,Fe=[],rr=-1;function Xc(e){Kc(e)}function Kc(e){Fe.includes(e)||Fe.push(e),Zc()}function Jc(e){let t=Fe.indexOf(e);t!==-1&&t>rr&&Fe.splice(t,1)}function Zc(){!nr&&!tr&&(tr=!0,queueMicrotask(Qc))}function Qc(){tr=!1,nr=!0;for(let e=0;e<Fe.length;e++)Fe[e](),rr=e;Fe.length=0,rr=-1,nr=!1}var nt,je,rt,bi,or=!0;function eu(e){or=!1,e(),or=!0}function tu(e){nt=e.reactive,rt=e.release,je=t=>e.effect(t,{scheduler:n=>{or?Xc(n):n()}}),bi=e.raw}function ai(e){je=e}function nu(e){let t=()=>{};return[r=>{let o=je(r);return e._x_effects||(e._x_effects=new Set,e._x_runEffects=()=>{e._x_effects.forEach(i=>i())}),e._x_effects.add(o),t=()=>{o!==void 0&&(e._x_effects.delete(o),rt(o))},o},()=>{t()}]}function xi(e,t){let n=!0,r,o=je(()=>{let i=e();JSON.stringify(i),n?r=i:queueMicrotask(()=>{t(i,r),r=i}),n=!1});return()=>rt(o)}var vi=[],Ti=[],Ii=[];function ru(e){Ii.push(e)}function Er(e,t){typeof t=="function"?(e._x_cleanups||(e._x_cleanups=[]),e._x_cleanups.push(t)):(t=e,Ti.push(t))}function Ai(e){vi.push(e)}function wi(e,t,n){e._x_attributeCleanups||(e._x_attributeCleanups={}),e._x_attributeCleanups[t]||(e._x_attributeCleanups[t]=[]),e._x_attributeCleanups[t].push(n)}function Ci(e,t){e._x_attributeCleanups&&Object.entries(e._x_attributeCleanups).forEach(([n,r])=>{(t===void 0||t.includes(n))&&(r.forEach(o=>o()),delete e._x_attributeCleanups[n])})}function ou(e){var t,n;for((t=e._x_effects)==null||t.forEach(Jc);(n=e._x_cleanups)!=null&&n.length;)e._x_cleanups.pop()()}var yr=new MutationObserver(vr),Sr=!1;function br(){yr.observe(document,{subtree:!0,childList:!0,attributes:!0,attributeOldValue:!0}),Sr=!0}function Ri(){iu(),yr.disconnect(),Sr=!1}var _t=[];function iu(){let e=yr.takeRecords();_t.push(()=>e.length>0&&vr(e));let t=_t.length;queueMicrotask(()=>{if(_t.length===t)for(;_t.length>0;)_t.shift()()})}function R(e){if(!Sr)return e();Ri();let t=e();return br(),t}var xr=!1,Qt=[];function su(){xr=!0}function au(){xr=!1,vr(Qt),Qt=[]}function vr(e){if(xr){Qt=Qt.concat(e);return}let t=[],n=new Set,r=new Map,o=new Map;for(let i=0;i<e.length;i++)if(!e[i].target._x_ignoreMutationObserver&&(e[i].type==="childList"&&(e[i].removedNodes.forEach(s=>{s.nodeType===1&&s._x_marker&&n.add(s)}),e[i].addedNodes.forEach(s=>{if(s.nodeType===1){if(n.has(s)){n.delete(s);return}s._x_marker||t.push(s)}})),e[i].type==="attributes")){let s=e[i].target,a=e[i].attributeName,c=e[i].oldValue,u=()=>{r.has(s)||r.set(s,[]),r.get(s).push({name:a,value:s.getAttribute(a)})},l=()=>{o.has(s)||o.set(s,[]),o.get(s).push(a)};s.hasAttribute(a)&&c===null?u():s.hasAttribute(a)?(l(),u()):l()}o.forEach((i,s)=>{Ci(s,i)}),r.forEach((i,s)=>{vi.forEach(a=>a(s,i))});for(let i of n)t.some(s=>s.contains(i))||Ti.forEach(s=>s(i));for(let i of t)i.isConnected&&Ii.forEach(s=>s(i));t=null,n=null,r=null,o=null}function Ni(e){return It(et(e))}function Tt(e,t,n){return e._x_dataStack=[t,...et(n||e)],()=>{e._x_dataStack=e._x_dataStack.filter(r=>r!==t)}}function et(e){return e._x_dataStack?e._x_dataStack:typeof ShadowRoot=="function"&&e instanceof ShadowRoot?et(e.host):e.parentNode?et(e.parentNode):[]}function It(e){return new Proxy({objects:e},cu)}var cu={ownKeys({objects:e}){return Array.from(new Set(e.flatMap(t=>Object.keys(t))))},has({objects:e},t){return t==Symbol.unscopables?!1:e.some(n=>Object.prototype.hasOwnProperty.call(n,t)||Reflect.has(n,t))},get({objects:e},t,n){return t=="toJSON"?uu:Reflect.get(e.find(r=>Reflect.has(r,t))||{},t,n)},set({objects:e},t,n,r){let o=e.find(s=>Object.prototype.hasOwnProperty.call(s,t))||e[e.length-1],i=Object.getOwnPropertyDescriptor(o,t);return i!=null&&i.set&&(i!=null&&i.get)?i.set.call(r,n)||!0:Reflect.set(o,t,n)}};function uu(){return Reflect.ownKeys(this).reduce((t,n)=>(t[n]=Reflect.get(this,n),t),{})}function Oi(e){let t=r=>typeof r=="object"&&!Array.isArray(r)&&r!==null,n=(r,o="")=>{Object.entries(Object.getOwnPropertyDescriptors(r)).forEach(([i,{value:s,enumerable:a}])=>{if(a===!1||s===void 0||typeof s=="object"&&s!==null&&s.__v_skip)return;let c=o===""?i:`${o}.${i}`;typeof s=="object"&&s!==null&&s._x_interceptor?r[i]=s.initialize(e,c,i):t(s)&&s!==r&&!(s instanceof Element)&&n(s,c)})};return n(e)}function Li(e,t=()=>{}){let n={initialValue:void 0,_x_interceptor:!0,initialize(r,o,i){return e(this.initialValue,()=>lu(r,o),s=>ir(r,o,s),o,i)}};return t(n),r=>{if(typeof r=="object"&&r!==null&&r._x_interceptor){let o=n.initialize.bind(n);n.initialize=(i,s,a)=>{let c=r.initialize(i,s,a);return n.initialValue=c,o(i,s,a)}}else n.initialValue=r;return n}}function lu(e,t){return t.split(".").reduce((n,r)=>n[r],e)}function ir(e,t,n){if(typeof t=="string"&&(t=t.split(".")),t.length===1)e[t[0]]=n;else{if(t.length===0)throw error;return e[t[0]]||(e[t[0]]={}),ir(e[t[0]],t.slice(1),n)}}var Di={};function te(e,t){Di[e]=t}function sr(e,t){let n=fu(t);return Object.entries(Di).forEach(([r,o])=>{Object.defineProperty(e,`$${r}`,{get(){return o(t,n)},enumerable:!1})}),e}function fu(e){let[t,n]=Bi(e),r={interceptor:Li,...t};return Er(e,n),r}function du(e,t,n,...r){try{return n(...r)}catch(o){vt(o,e,t)}}function vt(e,t,n=void 0){e=Object.assign(e!=null?e:{message:"No error message given."},{el:t,expression:n}),console.warn(`Alpine Expression Error: ${e.message} 2 3${n?'Expression: "'+n+`" 4 5`:""}`,t),setTimeout(()=>{throw e},0)}var Jt=!0;function Mi(e){let t=Jt;Jt=!1;let n=e();return Jt=t,n}function Be(e,t,n={}){let r;return B(e,t)(o=>r=o,n),r}function B(...e){return ki(...e)}var ki=Pi;function pu(e){ki=e}function Pi(e,t){let n={};sr(n,e);let r=[n,...et(e)],o=typeof t=="function"?mu(r,t):hu(r,t,e);return du.bind(null,e,t,o)}function mu(e,t){return(n=()=>{},{scope:r={},params:o=[],context:i}={})=>{let s=t.apply(It([r,...e]),o);en(n,s)}}var Kn={};function gu(e,t){if(Kn[e])return Kn[e];let n=Object.getPrototypeOf(async function(){}).constructor,r=/^[\n\s]*if.*\(.*\)/.test(e.trim())||/^(let|const)\s/.test(e.trim())?`(async()=>{ ${e} })()`:e,i=(()=>{try{let s=new n(["__self","scope"],`with (scope) { __self.result = ${r} }; __self.finished = true; return __self.result;`);return Object.defineProperty(s,"name",{value:`[Alpine] ${e}`}),s}catch(s){return vt(s,t,e),Promise.resolve()}})();return Kn[e]=i,i}function hu(e,t,n){let r=gu(t,n);return(o=()=>{},{scope:i={},params:s=[],context:a}={})=>{r.result=void 0,r.finished=!1;let c=It([i,...e]);if(typeof r=="function"){let u=r.call(a,r,c).catch(l=>vt(l,n,t));r.finished?(en(o,r.result,c,s,n),r.result=void 0):u.then(l=>{en(o,l,c,s,n)}).catch(l=>vt(l,n,t)).finally(()=>r.result=void 0)}}}function en(e,t,n,r,o){if(Jt&&typeof t=="function"){let i=t.apply(n,r);i instanceof Promise?i.then(s=>en(e,s,n,r)).catch(s=>vt(s,o,t)):e(i)}else typeof t=="object"&&t instanceof Promise?t.then(i=>e(i)):e(t)}var Tr="x-";function ot(e=""){return Tr+e}function _u(e){Tr=e}var tn={};function O(e,t){return tn[e]=t,{before(n){if(!tn[n]){console.warn(String.raw`Cannot find directive \`${n}\`. \`${e}\` will use the default order of execution`);return}let r=He.indexOf(n);He.splice(r>=0?r:He.indexOf("DEFAULT"),0,e)}}}function Eu(e){return Object.keys(tn).includes(e)}function Ir(e,t,n){if(t=Array.from(t),e._x_virtualDirectives){let i=Object.entries(e._x_virtualDirectives).map(([a,c])=>({name:a,value:c})),s=Hi(i);i=i.map(a=>s.find(c=>c.name===a.name)?{name:`x-bind:${a.name}`,value:`"${a.value}"`}:a),t=t.concat(i)}let r={};return t.map(qi((i,s)=>r[i]=s)).filter(Vi).map(bu(r,n)).sort(xu).map(i=>Su(e,i))}function Hi(e){return Array.from(e).map(qi()).filter(t=>!Vi(t))}var ar=!1,St=new Map,Fi=Symbol();function yu(e){ar=!0;let t=Symbol();Fi=t,St.set(t,[]);let n=()=>{for(;St.get(t).length;)St.get(t).shift()();St.delete(t)},r=()=>{ar=!1,n()};e(n),r()}function Bi(e){let t=[],n=a=>t.push(a),[r,o]=nu(e);return t.push(o),[{Alpine:At,effect:r,cleanup:n,evaluateLater:B.bind(B,e),evaluate:Be.bind(Be,e)},()=>t.forEach(a=>a())]}function Su(e,t){let n=()=>{},r=tn[t.type]||n,[o,i]=Bi(e);wi(e,t.original,i);let s=()=>{e._x_ignore||e._x_ignoreSelf||(r.inline&&r.inline(e,t,o),r=r.bind(r,e,t,o),ar?St.get(Fi).push(r):r())};return s.runCleanups=i,s}var Ui=(e,t)=>({name:n,value:r})=>(n.startsWith(e)&&(n=n.replace(e,t)),{name:n,value:r}),$i=e=>e;function qi(e=()=>{}){return({name:t,value:n})=>{let{name:r,value:o}=ji.reduce((i,s)=>s(i),{name:t,value:n});return r!==t&&e(r,t),{name:r,value:o}}}var ji=[];function Ar(e){ji.push(e)}function Vi({name:e}){return Wi().test(e)}var Wi=()=>new RegExp(`^${Tr}([^:^.]+)\\b`);function bu(e,t){return({name:n,value:r})=>{let o=n.match(Wi()),i=n.match(/:([a-zA-Z0-9\-_:]+)/),s=n.match(/\.[^.\]]+(?=[^\]]*$)/g)||[],a=t||e[n]||n;return{type:o?o[1]:null,value:i?i[1]:null,modifiers:s.map(c=>c.replace(".","")),expression:r,original:a}}}var cr="DEFAULT",He=["ignore","ref","data","id","anchor","bind","init","for","model","modelable","transition","show","if",cr,"teleport"];function xu(e,t){let n=He.indexOf(e.type)===-1?cr:e.type,r=He.indexOf(t.type)===-1?cr:t.type;return He.indexOf(n)-He.indexOf(r)}function bt(e,t,n={}){e.dispatchEvent(new CustomEvent(t,{detail:n,bubbles:!0,composed:!0,cancelable:!0}))}function qe(e,t){if(typeof ShadowRoot=="function"&&e instanceof ShadowRoot){Array.from(e.children).forEach(o=>qe(o,t));return}let n=!1;if(t(e,()=>n=!0),n)return;let r=e.firstElementChild;for(;r;)qe(r,t,!1),r=r.nextElementSibling}function Y(e,...t){console.warn(`Alpine Warning: ${e}`,...t)}var ci=!1;function vu(){ci&&Y("Alpine has already been initialized on this page. Calling Alpine.start() more than once can cause problems."),ci=!0,document.body||Y("Unable to initialize. Trying to load Alpine before `<body>` is available. Did you forget to add `defer` in Alpine's `<script>` tag?"),bt(document,"alpine:init"),bt(document,"alpine:initializing"),br(),ru(t=>_e(t,qe)),Er(t=>st(t)),Ai((t,n)=>{Ir(t,n).forEach(r=>r())});let e=t=>!rn(t.parentElement,!0);Array.from(document.querySelectorAll(Yi().join(","))).filter(e).forEach(t=>{_e(t)}),bt(document,"alpine:initialized"),setTimeout(()=>{wu()})}var wr=[],Gi=[];function zi(){return wr.map(e=>e())}function Yi(){return wr.concat(Gi).map(e=>e())}function Xi(e){wr.push(e)}function Ki(e){Gi.push(e)}function rn(e,t=!1){return it(e,n=>{if((t?Yi():zi()).some(o=>n.matches(o)))return!0})}function it(e,t){if(e){if(t(e))return e;if(e._x_teleportBack&&(e=e._x_teleportBack),!!e.parentElement)return it(e.parentElement,t)}}function Tu(e){return zi().some(t=>e.matches(t))}var Ji=[];function Iu(e){Ji.push(e)}var Au=1;function _e(e,t=qe,n=()=>{}){it(e,r=>r._x_ignore)||yu(()=>{t(e,(r,o)=>{r._x_marker||(n(r,o),Ji.forEach(i=>i(r,o)),Ir(r,r.attributes).forEach(i=>i()),r._x_ignore||(r._x_marker=Au++),r._x_ignore&&o())})})}function st(e,t=qe){t(e,n=>{ou(n),Ci(n),delete n._x_marker})}function wu(){[["ui","dialog",["[x-dialog], [x-popover]"]],["anchor","anchor",["[x-anchor]"]],["sort","sort",["[x-sort]"]]].forEach(([t,n,r])=>{Eu(n)||r.some(o=>{if(document.querySelector(o))return Y(`found "${o}", but missing ${t} plugin`),!0})})}var ur=[],Cr=!1;function Rr(e=()=>{}){return queueMicrotask(()=>{Cr||setTimeout(()=>{lr()})}),new Promise(t=>{ur.push(()=>{e(),t()})})}function lr(){for(Cr=!1;ur.length;)ur.shift()()}function Cu(){Cr=!0}function Nr(e,t){return Array.isArray(t)?ui(e,t.join(" ")):typeof t=="object"&&t!==null?Ru(e,t):typeof t=="function"?Nr(e,t()):ui(e,t)}function ui(e,t){let n=i=>i.split(" ").filter(Boolean),r=i=>i.split(" ").filter(s=>!e.classList.contains(s)).filter(Boolean),o=i=>(e.classList.add(...i),()=>{e.classList.remove(...i)});return t=t===!0?t="":t||"",o(r(t))}function Ru(e,t){let n=a=>a.split(" ").filter(Boolean),r=Object.entries(t).flatMap(([a,c])=>c?n(a):!1).filter(Boolean),o=Object.entries(t).flatMap(([a,c])=>c?!1:n(a)).filter(Boolean),i=[],s=[];return o.forEach(a=>{e.classList.contains(a)&&(e.classList.remove(a),s.push(a))}),r.forEach(a=>{e.classList.contains(a)||(e.classList.add(a),i.push(a))}),()=>{s.forEach(a=>e.classList.add(a)),i.forEach(a=>e.classList.remove(a))}}function on(e,t){return typeof t=="object"&&t!==null?Nu(e,t):Ou(e,t)}function Nu(e,t){let n={};return Object.entries(t).forEach(([r,o])=>{n[r]=e.style[r],r.startsWith("--")||(r=Lu(r)),e.style.setProperty(r,o)}),setTimeout(()=>{e.style.length===0&&e.removeAttribute("style")}),()=>{on(e,n)}}function Ou(e,t){let n=e.getAttribute("style",t);return e.setAttribute("style",t),()=>{e.setAttribute("style",n||"")}}function Lu(e){return e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function fr(e,t=()=>{}){let n=!1;return function(){n?t.apply(this,arguments):(n=!0,e.apply(this,arguments))}}O("transition",(e,{value:t,modifiers:n,expression:r},{evaluate:o})=>{typeof r=="function"&&(r=o(r)),r!==!1&&(!r||typeof r=="boolean"?Mu(e,n,t):Du(e,r,t))});function Du(e,t,n){Zi(e,Nr,""),{enter:o=>{e._x_transition.enter.during=o},"enter-start":o=>{e._x_transition.enter.start=o},"enter-end":o=>{e._x_transition.enter.end=o},leave:o=>{e._x_transition.leave.during=o},"leave-start":o=>{e._x_transition.leave.start=o},"leave-end":o=>{e._x_transition.leave.end=o}}[n](t)}function Mu(e,t,n){Zi(e,on);let r=!t.includes("in")&&!t.includes("out")&&!n,o=r||t.includes("in")||["enter"].includes(n),i=r||t.includes("out")||["leave"].includes(n);t.includes("in")&&!r&&(t=t.filter((E,y)=>y<t.indexOf("out"))),t.includes("out")&&!r&&(t=t.filter((E,y)=>y>t.indexOf("out")));let s=!t.includes("opacity")&&!t.includes("scale"),a=s||t.includes("opacity"),c=s||t.includes("scale"),u=a?0:1,l=c?Et(t,"scale",95)/100:1,f=Et(t,"delay",0)/1e3,d=Et(t,"origin","center"),p="opacity, transform",g=Et(t,"duration",150)/1e3,x=Et(t,"duration",75)/1e3,m="cubic-bezier(0.4, 0.0, 0.2, 1)";o&&(e._x_transition.enter.during={transformOrigin:d,transitionDelay:`${f}s`,transitionProperty:p,transitionDuration:`${g}s`,transitionTimingFunction:m},e._x_transition.enter.start={opacity:u,transform:`scale(${l})`},e._x_transition.enter.end={opacity:1,transform:"scale(1)"}),i&&(e._x_transition.leave.during={transformOrigin:d,transitionDelay:`${f}s`,transitionProperty:p,transitionDuration:`${x}s`,transitionTimingFunction:m},e._x_transition.leave.start={opacity:1,transform:"scale(1)"},e._x_transition.leave.end={opacity:u,transform:`scale(${l})`})}function Zi(e,t,n={}){e._x_transition||(e._x_transition={enter:{during:n,start:n,end:n},leave:{during:n,start:n,end:n},in(r=()=>{},o=()=>{}){dr(e,t,{during:this.enter.during,start:this.enter.start,end:this.enter.end},r,o)},out(r=()=>{},o=()=>{}){dr(e,t,{during:this.leave.during,start:this.leave.start,end:this.leave.end},r,o)}})}window.Element.prototype._x_toggleAndCascadeWithTransitions=function(e,t,n,r){let o=document.visibilityState==="visible"?requestAnimationFrame:setTimeout,i=()=>o(n);if(t){e._x_transition&&(e._x_transition.enter||e._x_transition.leave)?e._x_transition.enter&&(Object.entries(e._x_transition.enter.during).length||Object.entries(e._x_transition.enter.start).length||Object.entries(e._x_transition.enter.end).length)?e._x_transition.in(n):i():e._x_transition?e._x_transition.in(n):i();return}e._x_hidePromise=e._x_transition?new Promise((s,a)=>{e._x_transition.out(()=>{},()=>s(r)),e._x_transitioning&&e._x_transitioning.beforeCancel(()=>a({isFromCancelledTransition:!0}))}):Promise.resolve(r),queueMicrotask(()=>{let s=Qi(e);s?(s._x_hideChildren||(s._x_hideChildren=[]),s._x_hideChildren.push(e)):o(()=>{let a=c=>{let u=Promise.all([c._x_hidePromise,...(c._x_hideChildren||[]).map(a)]).then(([l])=>l==null?void 0:l());return delete c._x_hidePromise,delete c._x_hideChildren,u};a(e).catch(c=>{if(!c.isFromCancelledTransition)throw c})})})};function Qi(e){let t=e.parentNode;if(t)return t._x_hidePromise?t:Qi(t)}function dr(e,t,{during:n,start:r,end:o}={},i=()=>{},s=()=>{}){if(e._x_transitioning&&e._x_transitioning.cancel(),Object.keys(n).length===0&&Object.keys(r).length===0&&Object.keys(o).length===0){i(),s();return}let a,c,u;ku(e,{start(){a=t(e,r)},during(){c=t(e,n)},before:i,end(){a(),u=t(e,o)},after:s,cleanup(){c(),u()}})}function ku(e,t){let n,r,o,i=fr(()=>{R(()=>{n=!0,r||t.before(),o||(t.end(),lr()),t.after(),e.isConnected&&t.cleanup(),delete e._x_transitioning})});e._x_transitioning={beforeCancels:[],beforeCancel(s){this.beforeCancels.push(s)},cancel:fr(function(){for(;this.beforeCancels.length;)this.beforeCancels.shift()();i()}),finish:i},R(()=>{t.start(),t.during()}),Cu(),requestAnimationFrame(()=>{if(n)return;let s=Number(getComputedStyle(e).transitionDuration.replace(/,.*/,"").replace("s",""))*1e3,a=Number(getComputedStyle(e).transitionDelay.replace(/,.*/,"").replace("s",""))*1e3;s===0&&(s=Number(getComputedStyle(e).animationDuration.replace("s",""))*1e3),R(()=>{t.before()}),r=!0,requestAnimationFrame(()=>{n||(R(()=>{t.end()}),lr(),setTimeout(e._x_transitioning.finish,s+a),o=!0)})})}function Et(e,t,n){if(e.indexOf(t)===-1)return n;let r=e[e.indexOf(t)+1];if(!r||t==="scale"&&isNaN(r))return n;if(t==="duration"||t==="delay"){let o=r.match(/([0-9]+)ms/);if(o)return o[1]}return t==="origin"&&["top","right","left","center","bottom"].includes(e[e.indexOf(t)+2])?[r,e[e.indexOf(t)+2]].join(" "):r}var ve=!1;function Ie(e,t=()=>{}){return(...n)=>ve?t(...n):e(...n)}function Pu(e){return(...t)=>ve&&e(...t)}var es=[];function sn(e){es.push(e)}function Hu(e,t){es.forEach(n=>n(e,t)),ve=!0,ts(()=>{_e(t,(n,r)=>{r(n,()=>{})})}),ve=!1}var pr=!1;function Fu(e,t){t._x_dataStack||(t._x_dataStack=e._x_dataStack),ve=!0,pr=!0,ts(()=>{Bu(t)}),ve=!1,pr=!1}function Bu(e){let t=!1;_e(e,(r,o)=>{qe(r,(i,s)=>{if(t&&Tu(i))return s();t=!0,o(i,s)})})}function ts(e){let t=je;ai((n,r)=>{let o=t(n);return rt(o),()=>{}}),e(),ai(t)}function ns(e,t,n,r=[]){switch(e._x_bindings||(e._x_bindings=nt({})),e._x_bindings[t]=n,t=r.includes("camel")?zu(t):t,t){case"value":Uu(e,n);break;case"style":qu(e,n);break;case"class":$u(e,n);break;case"selected":case"checked":ju(e,t,n);break;default:rs(e,t,n);break}}function Uu(e,t){if(ss(e))e.attributes.value===void 0&&(e.value=t),window.fromModel&&(typeof t=="boolean"?e.checked=Zt(e.value)===t:e.checked=li(e.value,t));else if(Or(e))Number.isInteger(t)?e.value=t:!Array.isArray(t)&&typeof t!="boolean"&&![null,void 0].includes(t)?e.value=String(t):Array.isArray(t)?e.checked=t.some(n=>li(n,e.value)):e.checked=!!t;else if(e.tagName==="SELECT")Gu(e,t);else{if(e.value===t)return;e.value=t===void 0?"":t}}function $u(e,t){e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedClasses=Nr(e,t)}function qu(e,t){e._x_undoAddedStyles&&e._x_undoAddedStyles(),e._x_undoAddedStyles=on(e,t)}function ju(e,t,n){rs(e,t,n),Wu(e,t,n)}function rs(e,t,n){[null,void 0,!1].includes(n)&&Xu(t)?e.removeAttribute(t):(os(t)&&(n=t),Vu(e,t,n))}function Vu(e,t,n){e.getAttribute(t)!=n&&e.setAttribute(t,n)}function Wu(e,t,n){e[t]!==n&&(e[t]=n)}function Gu(e,t){let n=[].concat(t).map(r=>r+"");Array.from(e.options).forEach(r=>{r.selected=n.includes(r.value)})}function zu(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function li(e,t){return e==t}function Zt(e){return[1,"1","true","on","yes",!0].includes(e)?!0:[0,"0","false","off","no",!1].includes(e)?!1:e?!!e:null}var Yu=new Set(["allowfullscreen","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","inert","ismap","itemscope","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected","shadowrootclonable","shadowrootdelegatesfocus","shadowrootserializable"]);function os(e){return Yu.has(e)}function Xu(e){return!["aria-pressed","aria-checked","aria-expanded","aria-selected"].includes(e)}function Ku(e,t,n){return e._x_bindings&&e._x_bindings[t]!==void 0?e._x_bindings[t]:is(e,t,n)}function Ju(e,t,n,r=!0){if(e._x_bindings&&e._x_bindings[t]!==void 0)return e._x_bindings[t];if(e._x_inlineBindings&&e._x_inlineBindings[t]!==void 0){let o=e._x_inlineBindings[t];return o.extract=r,Mi(()=>Be(e,o.expression))}return is(e,t,n)}function is(e,t,n){let r=e.getAttribute(t);return r===null?typeof n=="function"?n():n:r===""?!0:os(t)?!![t,"true"].includes(r):r}function Or(e){return e.type==="checkbox"||e.localName==="ui-checkbox"||e.localName==="ui-switch"}function ss(e){return e.type==="radio"||e.localName==="ui-radio"}function as(e,t){let n;return function(){let r=this,o=arguments,i=function(){n=null,e.apply(r,o)};clearTimeout(n),n=setTimeout(i,t)}}function cs(e,t){let n;return function(){let r=this,o=arguments;
5n||(e.apply(r,o),n=!0,setTimeout(()=>n=!1,t))}}function us({get:e,set:t},{get:n,set:r}){let o=!0,i,s,a=je(()=>{let c=e(),u=n();if(o)r(Jn(c)),o=!1;else{let l=JSON.stringify(c),f=JSON.stringify(u);l!==i?r(Jn(c)):l!==f&&t(Jn(u))}i=JSON.stringify(e()),s=JSON.stringify(n())});return()=>{rt(a)}}function Jn(e){return typeof e=="object"?JSON.parse(JSON.stringify(e)):e}function Zu(e){(Array.isArray(e)?e:[e]).forEach(n=>n(At))}var Pe={},fi=!1;function Qu(e,t){if(fi||(Pe=nt(Pe),fi=!0),t===void 0)return Pe[e];Pe[e]=t,Oi(Pe[e]),typeof t=="object"&&t!==null&&t.hasOwnProperty("init")&&typeof t.init=="function"&&Pe[e].init()}function el(){return Pe}var ls={};function tl(e,t){let n=typeof t!="function"?()=>t:t;return e instanceof Element?fs(e,n()):(ls[e]=n,()=>{})}function nl(e){return Object.entries(ls).forEach(([t,n])=>{Object.defineProperty(e,t,{get(){return(...r)=>n(...r)}})}),e}function fs(e,t,n){let r=[];for(;r.length;)r.pop()();let o=Object.entries(t).map(([s,a])=>({name:s,value:a})),i=Hi(o);return o=o.map(s=>i.find(a=>a.name===s.name)?{name:`x-bind:${s.name}`,value:`"${s.value}"`}:s),Ir(e,o,n).map(s=>{r.push(s.runCleanups),s()}),()=>{for(;r.length;)r.pop()()}}var ds={};function rl(e,t){ds[e]=t}function ol(e,t){return Object.entries(ds).forEach(([n,r])=>{Object.defineProperty(e,n,{get(){return(...o)=>r.bind(t)(...o)},enumerable:!1})}),e}var il={get reactive(){return nt},get release(){return rt},get effect(){return je},get raw(){return bi},version:"3.15.0",flushAndStopDeferringMutations:au,dontAutoEvaluateFunctions:Mi,disableEffectScheduling:eu,startObservingMutations:br,stopObservingMutations:Ri,setReactivityEngine:tu,onAttributeRemoved:wi,onAttributesAdded:Ai,closestDataStack:et,skipDuringClone:Ie,onlyDuringClone:Pu,addRootSelector:Xi,addInitSelector:Ki,interceptClone:sn,addScopeToNode:Tt,deferMutations:su,mapAttributes:Ar,evaluateLater:B,interceptInit:Iu,setEvaluator:pu,mergeProxies:It,extractProp:Ju,findClosest:it,onElRemoved:Er,closestRoot:rn,destroyTree:st,interceptor:Li,transition:dr,setStyles:on,mutateDom:R,directive:O,entangle:us,throttle:cs,debounce:as,evaluate:Be,initTree:_e,nextTick:Rr,prefixed:ot,prefix:_u,plugin:Zu,magic:te,store:Qu,start:vu,clone:Fu,cloneNode:Hu,bound:Ku,$data:Ni,watch:xi,walk:qe,data:rl,bind:tl},At=il;function ps(e,t){let n=Object.create(null),r=e.split(",");for(let o=0;o<r.length;o++)n[r[o]]=!0;return t?o=>!!n[o.toLowerCase()]:o=>!!n[o]}var sl="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",km=ps(sl+",async,autofocus,autoplay,controls,default,defer,disabled,hidden,loop,open,required,reversed,scoped,seamless,checked,muted,multiple,selected"),al=Object.freeze({}),Pm=Object.freeze([]),cl=Object.prototype.hasOwnProperty,an=(e,t)=>cl.call(e,t),Ue=Array.isArray,xt=e=>ms(e)==="[object Map]",ul=e=>typeof e=="string",Lr=e=>typeof e=="symbol",cn=e=>e!==null&&typeof e=="object",ll=Object.prototype.toString,ms=e=>ll.call(e),gs=e=>ms(e).slice(8,-1),Dr=e=>ul(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,un=e=>{let t=Object.create(null);return n=>t[n]||(t[n]=e(n))},fl=/-(\w)/g,Hm=un(e=>e.replace(fl,(t,n)=>n?n.toUpperCase():"")),dl=/\B([A-Z])/g,Fm=un(e=>e.replace(dl,"-$1").toLowerCase()),hs=un(e=>e.charAt(0).toUpperCase()+e.slice(1)),Bm=un(e=>e?`on${hs(e)}`:""),_s=(e,t)=>e!==t&&(e===e||t===t),mr=new WeakMap,yt=[],se,$e=Symbol("iterate"),gr=Symbol("Map key iterate");function pl(e){return e&&e._isEffect===!0}function ml(e,t=al){pl(e)&&(e=e.raw);let n=_l(e,t);return t.lazy||n(),n}function gl(e){e.active&&(Es(e),e.options.onStop&&e.options.onStop(),e.active=!1)}var hl=0;function _l(e,t){let n=function(){if(!n.active)return e();if(!yt.includes(n)){Es(n);try{return yl(),yt.push(n),se=n,e()}finally{yt.pop(),ys(),se=yt[yt.length-1]}}};return n.id=hl++,n.allowRecurse=!!t.allowRecurse,n._isEffect=!0,n.active=!0,n.raw=e,n.deps=[],n.options=t,n}function Es(e){let{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}var tt=!0,Mr=[];function El(){Mr.push(tt),tt=!1}function yl(){Mr.push(tt),tt=!0}function ys(){let e=Mr.pop();tt=e===void 0?!0:e}function ee(e,t,n){if(!tt||se===void 0)return;let r=mr.get(e);r||mr.set(e,r=new Map);let o=r.get(n);o||r.set(n,o=new Set),o.has(se)||(o.add(se),se.deps.push(o),se.options.onTrack&&se.options.onTrack({effect:se,target:e,type:t,key:n}))}function Te(e,t,n,r,o,i){let s=mr.get(e);if(!s)return;let a=new Set,c=l=>{l&&l.forEach(f=>{(f!==se||f.allowRecurse)&&a.add(f)})};if(t==="clear")s.forEach(c);else if(n==="length"&&Ue(e))s.forEach((l,f)=>{(f==="length"||f>=r)&&c(l)});else switch(n!==void 0&&c(s.get(n)),t){case"add":Ue(e)?Dr(n)&&c(s.get("length")):(c(s.get($e)),xt(e)&&c(s.get(gr)));break;case"delete":Ue(e)||(c(s.get($e)),xt(e)&&c(s.get(gr)));break;case"set":xt(e)&&c(s.get($e));break}let u=l=>{l.options.onTrigger&&l.options.onTrigger({effect:l,target:e,key:n,type:t,newValue:r,oldValue:o,oldTarget:i}),l.options.scheduler?l.options.scheduler(l):l()};a.forEach(u)}var Sl=ps("__proto__,__v_isRef,__isVue"),Ss=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(Lr)),bl=bs(),xl=bs(!0),di=vl();function vl(){let e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){let r=w(this);for(let i=0,s=this.length;i<s;i++)ee(r,"get",i+"");let o=r[t](...n);return o===-1||o===!1?r[t](...n.map(w)):o}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){El();let r=w(this)[t].apply(this,n);return ys(),r}}),e}
5function bs(e=!1,t=!1){return function(r,o,i){if(o==="__v_isReactive")return!e;if(o==="__v_isReadonly")return e;if(o==="__v_raw"&&i===(e?t?Bl:Is:t?Fl:Ts).get(r))return r;let s=Ue(r);if(!e&&s&&an(di,o))return Reflect.get(di,o,i);let a=Reflect.get(r,o,i);return(Lr(o)?Ss.has(o):Sl(o))||(e||ee(r,"get",o),t)?a:hr(a)?!s||!Dr(o)?a.value:a:cn(a)?e?As(a):Fr(a):a}}var Tl=Il();function Il(e=!1){return function(n,r,o,i){let s=n[r];if(!e&&(o=w(o),s=w(s),!Ue(n)&&hr(s)&&!hr(o)))return s.value=o,!0;let a=Ue(n)&&Dr(r)?Number(r)<n.length:an(n,r),c=Reflect.set(n,r,o,i);return n===w(i)&&(a?_s(o,s)&&Te(n,"set",r,o,s):Te(n,"add",r,o)),c}}function Al(e,t){let n=an(e,t),r=e[t],o=Reflect.deleteProperty(e,t);return o&&n&&Te(e,"delete",t,void 0,r),o}function wl(e,t){let n=Reflect.has(e,t);return(!Lr(t)||!Ss.has(t))&&ee(e,"has",t),n}function Cl(e){return ee(e,"iterate",Ue(e)?"length":$e),Reflect.ownKeys(e)}var Rl={get:bl,set:Tl,deleteProperty:Al,has:wl,ownKeys:Cl},Nl={get:xl,set(e,t){return console.warn(`Set operation on key "${String(t)}" failed: target is readonly.`,e),!0},deleteProperty(e,t){return console.warn(`Delete operation on key "${String(t)}" failed: target is readonly.`,e),!0}},kr=e=>cn(e)?Fr(e):e,Pr=e=>cn(e)?As(e):e,Hr=e=>e,ln=e=>Reflect.getPrototypeOf(e);function Gt(e,t,n=!1,r=!1){e=e.__v_raw;let o=w(e),i=w(t);t!==i&&!n&&ee(o,"get",t),!n&&ee(o,"get",i);let{has:s}=ln(o),a=r?Hr:n?Pr:kr;if(s.call(o,t))return a(e.get(t));if(s.call(o,i))return a(e.get(i));e!==o&&e.get(t)}function zt(e,t=!1){let n=this.__v_raw,r=w(n),o=w(e);return e!==o&&!t&&ee(r,"has",e),!t&&ee(r,"has",o),e===o?n.has(e):n.has(e)||n.has(o)}function Yt(e,t=!1){return e=e.__v_raw,!t&&ee(w(e),"iterate",$e),Reflect.get(e,"size",e)}function pi(e){e=w(e);let t=w(this);return ln(t).has.call(t,e)||(t.add(e),Te(t,"add",e,e)),this}function mi(e,t){t=w(t);let n=w(this),{has:r,get:o}=ln(n),i=r.call(n,e);i?vs(n,r,e):(e=w(e),i=r.call(n,e));let s=o.call(n,e);return n.set(e,t),i?_s(t,s)&&Te(n,"set",e,t,s):Te(n,"add",e,t),this}function gi(e){let t=w(this),{has:n,get:r}=ln(t),o=n.call(t,e);o?vs(t,n,e):(e=w(e),o=n.call(t,e));let i=r?r.call(t,e):void 0,s=t.delete(e);return o&&Te(t,"delete",e,void 0,i),s}function hi(){let e=w(this),t=e.size!==0,n=xt(e)?new Map(e):new Set(e),r=e.clear();return t&&Te(e,"clear",void 0,void 0,n),r}function Xt(e,t){return function(r,o){let i=this,s=i.__v_raw,a=w(s),c=t?Hr:e?Pr:kr;return!e&&ee(a,"iterate",$e),s.forEach((u,l)=>r.call(o,c(u),c(l),i))}}function Kt(e,t,n){return function(...r){let o=this.__v_raw,i=w(o),s=xt(i),a=e==="entries"||e===Symbol.iterator&&s,c=e==="keys"&&s,u=o[e](...r),l=n?Hr:t?Pr:kr;return!t&&ee(i,"iterate",c?gr:$e),{next(){let{value:f,done:d}=u.next();return d?{value:f,done:d}:{value:a?[l(f[0]),l(f[1])]:l(f),done:d}},[Symbol.iterator](){return this}}}}function xe(e){return function(...t){{let n=t[0]?`on key "${t[0]}" `:"";console.warn(`${hs(e)} operation ${n}failed: target is readonly.`,w(this))}return e==="delete"?!1:this}}function Ol(){let e={get(i){return Gt(this,i)},get size(){return Yt(this)},has:zt,add:pi,set:mi,delete:gi,clear:hi,forEach:Xt(!1,!1)},t={get(i){return Gt(this,i,!1,!0)},get size(){return Yt(this)},has:zt,add:pi,set:mi,delete:gi,clear:hi,forEach:Xt(!1,!0)},n={get(i){return Gt(this,i,!0)},get size(){return Yt(this,!0)},has(i){return zt.call(this,i,!0)},add:xe("add"),set:xe("set"),delete:xe("delete"),clear:xe("clear"),forEach:Xt(!0,!1)},r={get(i){return Gt(this,i,!0,!0)},get size(){return Yt(this,!0)},has(i){return zt.call(this,i,!0)},add:xe("add"),set:xe("set"),delete:xe("delete"),clear:xe("clear"),forEach:Xt(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(i=>{e[i]=Kt(i,!1,!1),n[i]=Kt(i,!0,!1),t[i]=Kt(i,!1,!0),r[i]=Kt(i,!0,!0)}),[e,n,t,r]}var[Ll,Dl,Ml,kl]=Ol();function xs(e,t){let n=t?e?kl:Ml:e?Dl:Ll;return(r,o,i)=>o==="__v_isReactive"?!e:o==="__v_isReadonly"?e:o==="__v_raw"?r:Reflect.get(an(n,o)&&o in r?n:r,o,i)}var Pl={get:xs(!1,!1)},Hl={get:xs(!0,!1)};function vs(e,t,n){let r=w(n);if(r!==n&&t.call(e,r)){let o=gs(e);console.warn(`Reactive ${o} contains both the raw and reactive versions of the same object${o==="Map"?" as keys":""}, which can lead to inconsistencies. Avoid differentiating between the raw and reactive versions of an object and only use the reactive version if possible.`)}}var Ts=new WeakMap,Fl=new WeakMap,Is=new WeakMap,Bl=new WeakMap;function Ul(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function $l(e){return e.__v_skip||!Object.isExtensible(e)?0:Ul(gs(e))}function Fr(e){return e&&e.__v_isReadonly?e:ws(e,!1,Rl,Pl,Ts)}function As(e){return ws(e,!0,Nl,Hl,Is)}function ws(e,t,n,r,o){if(!cn(e))return console.warn(`value cannot be made reactive: ${String(e)}`),e;if(e.__v_raw&&!(t&&e.__v_isReactive))return e;let i=o.get(e);if(i)return i;let s=$l(e);if(s===0)return e;let a=new Proxy(e,s===2?r:n);return o.set(e,a),a}function w(e){return e&&w(e.__v_raw)||e}function hr(e){return!!(e&&e.__v_isRef===!0)}te("nextTick",()=>Rr);te("dispatch",e=>bt.bind(bt,e));te("watch",(e,{evaluateLater:t,cleanup:n})=>(r,o)=>{let i=t(r),a=xi(()=>{let c;return i(u=>c=u),c},o);n(a)});te("store",el);te("data",e=>Ni(e));te("root",e=>rn(e));te("refs",e=>(e._x_refs_proxy||(e._x_refs_proxy=It(ql(e))),e._x_refs_proxy));function ql(e){let t=[];return it(e,n=>
vendor: 9,857 bytes, line 5
5{n._x_refs&&t.push(n._x_refs)}),t}var Zn={};function Cs(e){return Zn[e]||(Zn[e]=0),++Zn[e]}function jl(e,t){return it(e,n=>{if(n._x_ids&&n._x_ids[t])return!0})}function Vl(e,t){e._x_ids||(e._x_ids={}),e._x_ids[t]||(e._x_ids[t]=Cs(t))}te("id",(e,{cleanup:t})=>(n,r=null)=>{let o=`${n}${r?`-${r}`:""}`;return Wl(e,o,t,()=>{let i=jl(e,n),s=i?i._x_ids[n]:Cs(n);return r?`${n}-${s}-${r}`:`${n}-${s}`})});sn((e,t)=>{e._x_id&&(t._x_id=e._x_id)});function Wl(e,t,n,r){if(e._x_id||(e._x_id={}),e._x_id[t])return e._x_id[t];let o=r();return e._x_id[t]=o,n(()=>{delete e._x_id[t]}),o}te("el",e=>e);Rs("Focus","focus","focus");Rs("Persist","persist","persist");function Rs(e,t,n){te(t,r=>Y(`You can't use [$${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}O("modelable",(e,{expression:t},{effect:n,evaluateLater:r,cleanup:o})=>{let i=r(t),s=()=>{let l;return i(f=>l=f),l},a=r(`${t} = __placeholder`),c=l=>a(()=>{},{scope:{__placeholder:l}}),u=s();c(u),queueMicrotask(()=>{if(!e._x_model)return;e._x_removeModelListeners.default();let l=e._x_model.get,f=e._x_model.set,d=us({get(){return l()},set(p){f(p)}},{get(){return s()},set(p){c(p)}});o(d)})});O("teleport",(e,{modifiers:t,expression:n},{cleanup:r})=>{e.tagName.toLowerCase()!=="template"&&Y("x-teleport can only be used on a <template> tag",e);let o=_i(n),i=e.content.cloneNode(!0).firstElementChild;e._x_teleport=i,i._x_teleportBack=e,e.setAttribute("data-teleport-template",!0),i.setAttribute("data-teleport-target",!0),e._x_forwardEvents&&e._x_forwardEvents.forEach(a=>{i.addEventListener(a,c=>{c.stopPropagation(),e.dispatchEvent(new c.constructor(c.type,c))})}),Tt(i,{},e);let s=(a,c,u)=>{u.includes("prepend")?c.parentNode.insertBefore(a,c):u.includes("append")?c.parentNode.insertBefore(a,c.nextSibling):c.appendChild(a)};R(()=>{s(i,o,t),Ie(()=>{_e(i)})()}),e._x_teleportPutBack=()=>{let a=_i(n);R(()=>{s(e._x_teleport,a,t)})},r(()=>R(()=>{i.remove(),st(i)}))});var Gl=document.createElement("div");function _i(e){let t=Ie(()=>document.querySelector(e),()=>Gl)();return t||Y(`Cannot find x-teleport element for selector: "${e}"`),t}var Ns=()=>{};Ns.inline=(e,{modifiers:t},{cleanup:n})=>{t.includes("self")?e._x_ignoreSelf=!0:e._x_ignore=!0,n(()=>{t.includes("self")?delete e._x_ignoreSelf:delete e._x_ignore})};O("ignore",Ns);O("effect",Ie((e,{expression:t},{effect:n})=>{n(B(e,t))}));function _r(e,t,n,r){let o=e,i=c=>r(c),s={},a=(c,u)=>l=>u(c,l);if(n.includes("dot")&&(t=zl(t)),n.includes("camel")&&(t=Yl(t)),n.includes("passive")&&(s.passive=!0),n.includes("capture")&&(s.capture=!0),n.includes("window")&&(o=window),n.includes("document")&&(o=document),n.includes("debounce")){let c=n[n.indexOf("debounce")+1]||"invalid-wait",u=nn(c.split("ms")[0])?Number(c.split("ms")[0]):250;i=as(i,u)}if(n.includes("throttle")){let c=n[n.indexOf("throttle")+1]||"invalid-wait",u=nn(c.split("ms")[0])?Number(c.split("ms")[0]):250;i=cs(i,u)}return n.includes("prevent")&&(i=a(i,(c,u)=>{u.preventDefault(),c(u)})),n.includes("stop")&&(i=a(i,(c,u)=>{u.stopPropagation(),c(u)})),n.includes("once")&&(i=a(i,(c,u)=>{c(u),o.removeEventListener(t,i,s)})),(n.includes("away")||n.includes("outside"))&&(o=document,i=a(i,(c,u)=>{e.contains(u.target)||u.target.isConnected!==!1&&(e.offsetWidth<1&&e.offsetHeight<1||e._x_isShown!==!1&&c(u))})),n.includes("self")&&(i=a(i,(c,u)=>{u.target===e&&c(u)})),(Kl(t)||Os(t))&&(i=a(i,(c,u)=>{Jl(u,n)||c(u)})),o.addEventListener(t,i,s),()=>{o.removeEventListener(t,i,s)}}function zl(e){return e.replace(/-/g,".")}function Yl(e){return e.toLowerCase().replace(/-(\w)/g,(t,n)=>n.toUpperCase())}function nn(e){return!Array.isArray(e)&&!isNaN(e)}function Xl(e){return[" ","_"].includes(e)?e:e.replace(/([a-z])([A-Z])/g,"$1-$2").replace(/[_\s]/,"-").toLowerCase()}function Kl(e){return["keydown","keyup"].includes(e)}function Os(e){return["contextmenu","click","mouse"].some(t=>e.includes(t))}function Jl(e,t){let n=t.filter(i=>!["window","document","prevent","stop","once","capture","self","away","outside","passive","preserve-scroll"].includes(i));if(n.includes("debounce")){let i=n.indexOf("debounce");n.splice(i,nn((n[i+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.includes("throttle")){let i=n.indexOf("throttle");n.splice(i,nn((n[i+1]||"invalid-wait").split("ms")[0])?2:1)}if(n.length===0||n.length===1&&Ei(e.key).includes(n[0]))return!1;let o=["ctrl","shift","alt","meta","cmd","super"].filter(i=>n.includes(i));return n=n.filter(i=>!o.includes(i)),!(o.length>0&&o.filter(s=>((s==="cmd"||s==="super")&&(s="meta"),e[`${s}Key`])).length===o.length&&(Os(e.type)||Ei(e.key).includes(n[0])))}function Ei(e){if(!e)return[];e=Xl(e);let t={ctrl:"control",slash:"/",space:" ",spacebar:" ",cmd:"meta",esc:"escape",up:"arrow-up",down:"arrow-down",left:"arrow-left",right:"arrow-right",period:".",comma:",",equal:"=",minus:"-",underscore:"_"};return t[e]=e,Object.keys(t).map(n=>{if(t[n]===e)return n}).filter(n=>n)}O("model",(e,{modifiers:t,expression:n},{effect:r,cleanup:o})=>{let i=e;t.includes("parent")&&(i=e.parentNode);let s=B(i,n),a;typeof n=="string"?a=B(i,`${n} = __placeholder`):typeof n=="function"&&typeof n()=="string"?a=B(i,`${n()} = __placeholder`):a=()=>{};let c=()=>{let d;return s(p=>d=p),yi(d)?d.get():d},u=d=>{let p;s(g=>p=g),yi(p)?p.set(d):a(()=>{},{scope:{__placeholder:d}})};typeof n=="string"&&e.type==="radio"&&R(()=>{e.hasAttribute("name")||e.setAttribute("name",n)});let l=e.tagName.toLowerCase()==="select"||["checkbox","radio"].includes(e.type)||t.includes("lazy")?"change":"input",f=ve?()=>{}:_r(e,l,t,d=>{u(Qn(e,t,d,c()))});if(t.includes("fill")&&([void 0,null,""].includes(c())||Or(e)&&Array.isArray(c())||e.tagName.toLowerCase()==="select"&&e.multiple)&&u(Qn(e,t,{target:e},c())),e._x_removeModelListeners||(e._x_removeModelListeners={}),e._x_removeModelListeners.default=f,o(()=>e._x_removeModelListeners.default()),e.form){let d=_r(e.form,"reset",[],p=>{Rr(()=>e._x_model&&e._x_model.set(Qn(e,t,{target:e},c())))});o(()=>d())}e._x_model={get(){return c()},set(d){u(d)}},e._x_forceModelUpdate=d=>{d===void 0&&typeof n=="string"&&n.match(/\./)&&(d=""),window.fromModel=!0,R(()=>ns(e,"value",d)),delete window.fromModel},r(()=>{let d=c();t.includes("unintrusive")&&document.activeElement.isSameNode(e)||e._x_forceModelUpdate(d)})});function Qn(e,t,n,r){return R(()=>{if(n instanceof CustomEvent&&n.detail!==void 0)return n.detail!==null&&n.detail!==void 0?n.detail:n.target.value;if(Or(e))if(Array.isArray(r)){let o=null;return t.includes("number")?o=er(n.target.value):t.includes("boolean")?o=Zt(n.target.value):o=n.target.value,n.target.checked?r.includes(o)?r:r.concat([o]):r.filter(i=>!Zl(i,o))}else return n.target.checked;else{if(e.tagName.toLowerCase()==="select"&&e.multiple)return t.includes("number")?Array.from(n.target.selectedOptions).map(o=>{let i=o.value||o.text;return er(i)}):t.includes("boolean")?Array.from(n.target.selectedOptions).map(o=>{let i=o.value||o.text;return Zt(i)}):Array.from(n.target.selectedOptions).map(o=>o.value||o.text);{let o;return ss(e)?n.target.checked?o=n.target.value:o=r:o=n.target.value,t.includes("number")?er(o):t.includes("boolean")?Zt(o):t.includes("trim")?o.trim():o}}})}function er(e){let t=e?parseFloat(e):null;return Ql(t)?t:e}function Zl(e,t){return e==t}function Ql(e){return!Array.isArray(e)&&!isNaN(e)}function yi(e){return e!==null&&typeof e=="object"&&typeof e.get=="function"&&typeof e.set=="function"}O("cloak",e=>queueMicrotask(()=>R(()=>e.removeAttribute(ot("cloak")))));Ki(()=>`[${ot("init")}]`);O("init",Ie((e,{expression:t},{evaluate:n})=>typeof t=="string"?!!t.trim()&&n(t,{},!1):n(t,{},!1)));O("text",(e,{expression:t},{effect:n,evaluateLater:r})=>{let o=r(t);n(()=>{o(i=>{R(()=>{e.textContent=i})})})});O("html",(e,{expression:t},{effect:n,evaluateLater:r})=>{let o=r(t);n(()=>{o(i=>{R(()=>{e.innerHTML=i,e._x_ignoreSelf=!0,_e(e),delete e._x_ignoreSelf})})})});Ar(Ui(":",$i(ot("bind:"))));var Ls=(e,{value:t,modifiers:n,expression:r,original:o},{effect:i,cleanup:s})=>{if(!t){let c={};nl(c),B(e,r)(l=>{fs(e,l,o)},{scope:c});return}if(t==="key")return ef(e,r);if(e._x_inlineBindings&&e._x_inlineBindings[t]&&e._x_inlineBindings[t].extract)return;let a=B(e,r);i(()=>a(c=>{c===void 0&&typeof r=="string"&&r.match(/\./)&&(c=""),R(()=>ns(e,t,c,n))})),s(()=>{e._x_undoAddedClasses&&e._x_undoAddedClasses(),e._x_undoAddedStyles&&e._x_undoAddedStyles()})};Ls.inline=(e,{value:t,modifiers:n,expression:r})=>{t&&(e._x_inlineBindings||(e._x_inlineBindings={}),e._x_inlineBindings[t]={expression:r,extract:!1})};O("bind",Ls);function ef(e,t){e._x_keyExpression=t}Xi(()=>`[${ot("data")}]`);O("data",(e,{expression:t},{cleanup:n})=>{if(tf(e))return;t=t===""?"{}":t;let r={};sr(r,e);let o={};ol(o,r);let i=Be(e,t,{scope:o});(i===void 0||i===!0)&&(i={}),sr(i,e);let s=nt(i);Oi(s);let a=Tt(e,s);s.init&&Be(e,s.init),n(()=>{s.destroy&&Be(e,s.destroy),a()})});sn((e,t)=>{e._x_dataStack&&(t._x_dataStack=e._x_dataStack,t.setAttribute("data-has-alpine-state",!0))});function tf(e){return ve?pr?!0:e.hasAttribute("data-has-alpine-state"):!1}O("show",(e,{modifiers:t,expression:n},{effect:r})=>{let o=B(e,n);e._x_doHide||(e._x_doHide=()=>{R(()=>{e.style.setProperty("display","none",t.includes("important")?"important":void 0)})}),e._x_doShow||(e._x_doShow=()=>{R(()=>{e.style.length===1&&e.style.display==="none"?e.removeAttribute("style"):e.style.removeProperty("display")})});let i=()=>{e._x_doHide(),e._x_isShown=!1},s=()=>{e._x_doShow(),e._x_isShown=!0},a=()=>setTimeout(s),c=fr(f=>f?s():i(),f=>{typeof e._x_toggleAndCascadeWithTransitions=="function"?e._x_toggleAndCascadeWithTransitions(e,f,s,i):f?a():i()}),u,l=!0;r(()=>o(f=>{!l&&f===u||(t.includes("immediate")&&(f?a():i()),c(f),u=f,l=!1)}))});O("for",(e,{expression:t},{effect:n,cleanup:r})=>{let o=rf(t),i=B(e,o.items),s=B(e,e._x_keyExpression||"index");e._x_prevKeys=[],e._x_lookup={},n(()=>nf(e,o,i,s)),r(()=>
5{Object.values(e._x_lookup).forEach(a=>R(()=>{st(a),a.remove()})),delete e._x_prevKeys,delete e._x_lookup})});function nf(e,t,n,r){let o=s=>typeof s=="object"&&!Array.isArray(s),i=e;n(s=>{of(s)&&s>=0&&(s=Array.from(Array(s).keys(),m=>m+1)),s===void 0&&(s=[]);let a=e._x_lookup,c=e._x_prevKeys,u=[],l=[];if(o(s))s=Object.entries(s).map(([m,E])=>{let y=Si(t,E,m,s);r(v=>{l.includes(v)&&Y("Duplicate key on x-for",e),l.push(v)},{scope:{index:m,...y}}),u.push(y)});else for(let m=0;m<s.length;m++){let E=Si(t,s[m],m,s);r(y=>{l.includes(y)&&Y("Duplicate key on x-for",e),l.push(y)},{scope:{index:m,...E}}),u.push(E)}let f=[],d=[],p=[],g=[];for(let m=0;m<c.length;m++){let E=c[m];l.indexOf(E)===-1&&p.push(E)}c=c.filter(m=>!p.includes(m));let x="template";for(let m=0;m<l.length;m++){let E=l[m],y=c.indexOf(E);if(y===-1)c.splice(m,0,E),f.push([x,m]);else if(y!==m){let v=c.splice(m,1)[0],T=c.splice(y-1,1)[0];c.splice(m,0,T),c.splice(y,0,v),d.push([v,T])}else g.push(E);x=E}for(let m=0;m<p.length;m++){let E=p[m];E in a&&(R(()=>{st(a[E]),a[E].remove()}),delete a[E])}for(let m=0;m<d.length;m++){let[E,y]=d[m],v=a[E],T=a[y],Z=document.createElement("div");R(()=>{T||Y('x-for ":key" is undefined or invalid',i,y,a),T.after(Z),v.after(T),T._x_currentIfEl&&T.after(T._x_currentIfEl),Z.before(v),v._x_currentIfEl&&v.after(v._x_currentIfEl),Z.remove()}),T._x_refreshXForScope(u[l.indexOf(y)])}for(let m=0;m<f.length;m++){let[E,y]=f[m],v=E==="template"?i:a[E];v._x_currentIfEl&&(v=v._x_currentIfEl);let T=u[y],Z=l[y],Q=document.importNode(i.content,!0).firstElementChild,b=nt(T);Tt(Q,b,i),Q._x_refreshXForScope=N=>
5{Object.entries(N).forEach(([H,ie])=>{b[H]=ie})},R(()=>{v.after(Q),Ie(()=>_e(Q))()}),typeof Z=="object"&&Y("x-for key cannot be an object, it must be a string or an integer",i),a[Z]=Q}for(let m=0;m<g.length;m++)a[g[m]]._x_refreshXForScope(u[l.indexOf(g[m])]);i._x_prevKeys=l})}function rf(e){let t=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,n=/^\s*\(|\)\s*$/g,r=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,o=e.match(r);if(!o)return;let i={};i.items=o[2].trim();let s=o[1].replace(n,"").trim(),a=s.match(t);return a?(i.item=s.replace(t,"").trim(),i.index=a[1].trim(),a[2]&&(i.collection=a[2].trim())):i.item=s,i}function Si(e,t,n,r){let o={};return/^\[.*\]$/.test(e.item)&&Array.isArray(t)?e.item.replace("[","").replace("]","").split(",").map(s=>s.trim()).forEach((s,a)=>{o[s]=t[a]}):/^\{.*\}$/.test(e.item)&&!Array.isArray(t)&&typeof t=="object"?e.item.replace("{","").replace("}","").split(",").map(s=>s.trim()).forEach(s=>{o[s]=t[s]}):o[e.item]=t,e.index&&(o[e.index]=n),e.collection&&(o[e.collection]=r),o}function of(e){return!Array.isArray(e)&&!isNaN(e)}function Ds(){}Ds.inline=(e,{expression:t},{cleanup:n})=>{let r=rn(e);r._x_refs||(r._x_refs={}),r._x_refs[t]=e,n(()=>delete r._x_refs[t])};O("ref",Ds);O("if",(e,{expression:t},{effect:n,cleanup:r})=>{e.tagName.toLowerCase()!=="template"&&Y("x-if can only be used on a <template> tag",e);let o=B(e,t),i=()=>{if(e._x_currentIfEl)return e._x_currentIfEl;let a=e.content.cloneNode(!0).firstElementChild;return Tt(a,{},e),R(()=>{e.after(a),Ie(()=>_e(a))()}),e._x_currentIfEl=a,e._x_undoIf=()=>{R(()=>{st(a),a.remove()}),delete e._x_currentIfEl},a},s=()=>{e._x_undoIf&&(e._x_undoIf(),delete e._x_undoIf)};n(()=>o(a=>{a?i():s()})),r(()=>e._x_undoIf&&e._x_undoIf())});O("id",(e,{expression:t},{evaluate:n})=>{n(t).forEach(o=>Vl(e,o))});sn((e,t)=>{e._x_ids&&(t._x_ids=e._x_ids)});Ar(Ui("@",$i(ot("on:"))));O("on",Ie((e,{value:t,modifiers:n,expression:r},{cleanup:o})=>{let i=r?B(e,r):()=>{};e.tagName.toLowerCase()==="template"&&(e._x_forwardEvents||(e._x_forwardEvents=[]),e._x_forwardEvents.includes(t)||e._x_forwardEvents.push(t));let s=_r(e,t,n,a=>{i(()=>{},{scope:{$event:a},params:[a]})});o(()=>s())}));fn("Collapse","collapse","collapse");fn("Intersect","intersect","intersect");fn("Focus","trap","focus");fn("Mask","mask","mask");function fn(e,t,n){O(t,r=>Y(`You can't use [x-${t}] without first installing the "${e}" plugin here: https://alpinejs.dev/plugins/${n}`,r))}At.setEvaluator(Pi);At.setReactivityEngine({reactive:Fr,effect:ml,release:gl,raw:w});var sf=At,at=sf;var af=(function(){"use strict";let htmx={onLoad:null,process:null,on:null,off:null,trigger:null,ajax:null,find:null,findAll:null,closest:null,values:function(e,t){return getInputValues(e,t||"post").values},remove:null,addClass:null,removeClass:null,toggleClass:null,takeClass:null,swap:null,defineExtension:null,removeExtension:null,logAll:null,logNone:null,logger:null,config:{historyEnabled:!0,historyCacheSize:10,refreshOnHistoryMiss:!1,defaultSwapStyle:"innerHTML",defaultSwapDelay:0,defaultSettleDelay:20,includeIndicatorStyles:!0,indicatorClass:"htmx-indicator",requestClass:"htmx-request",addedClass:"htmx-added",settlingClass:"htmx-settling",swappingClass:"htmx-swapping",allowEval:!0,allowScriptTags:!0,inlineScriptNonce:"",inlineStyleNonce:"",attributesToSettle:["class","style","width","height"],withCredentials:!1,timeout:0,wsReconnectDelay:"full-jitter",wsBinaryType:"blob",disableSelector:"[hx-disable], [data-hx-disable]",scrollBehavior:"instant",defaultFocusScroll:!1,getCacheBusterParam:!1,globalViewTransitions:!1,methodsThatUseUrlParams:["get","delete"],selfRequestsOnly:!0,ignoreTitle:!1,scrollIntoViewOnBoost:!0,triggerSpecsCache:null,disableInheritance:!1,responseHandling:[{code:"204",swap:!1},{code:"[23]..",swap:!0},{code:"[45]..",swap:!1,error:!0}],allowNestedOobSwaps:!0,historyRestoreAsHxRequest:!0,reportValidityOfForms:!1},parseInterval:null,location,_:null,version:"2.0.7"};htmx.onLoad=onLoadHelper,htmx.process=processNode,htmx.on=addEventListenerImpl,htmx.off=removeEventListenerImpl,htmx.trigger=triggerEvent,htmx.ajax=ajaxHelper,htmx.find=find,htmx.findAll=findAll,htmx.closest=closest,htmx.remove=removeElement,htmx.addClass=addClassToElement,htmx.removeClass=removeClassFromElement,htmx.toggleClass=toggleClassOnElement,htmx.takeClass=takeClassForElement,htmx.swap=swap,htmx.defineExtension=defineExtension,htmx.removeExtension=removeExtension,htmx.logAll=logAll,htmx.logNone=logNone,htmx.parseInterval=parseInterval,htmx._=internalEval;let internalAPI={addTriggerHandler,bodyContains,canAccessLocalStorage,findThisElement,filterValues,swap,hasAttribute,getAttributeValue,getClosestAttributeValue,getClosestMatch,getExpressionVars,getHeaders,getInputValues,getInternalData,getSwapSpecification,getTriggerSpecs,getTarget,makeFragment,mergeObjects,makeSettleInfo,oobSwap,querySelectorExt,settleImmediately,shouldCancel,triggerEvent,triggerErrorEvent,withExtensions},VERBS=["get","post","put","delete","patch"],VERB_SELECTOR=VERBS.map(function(e){return"[hx-"+e+"], [data-hx-"+e+"]"}).join(", ");function parseInterval(e){if(e==null)return;let t=NaN;return e.slice(-2)=="ms"?t=parseFloat(e.slice(0,-2)):e.slice(-1)=="s"?t=parseFloat(e.slice(0,-1))*1e3:e.slice(-1)=="m"?t=parseFloat(e.slice(0,-1))*1e3*60:t=parseFloat(e),isNaN(t)?void 0:t}function getRawAttribute(e,t){return e instanceof Element&&e.getAttribute(t)}function hasAttribute(e,t){return!!e.hasAttribute&&(e.hasAttribute(t)||e.hasAttribute("data-"+t))}function getAttributeValue(e,t){return getRawAttribute(e,t)||getRawAttribute(e,"data-"+t)}function parentElt(e){let t=e.parentElement;return!t&&e.parentNode instanceof ShadowRoot?e.parentNode:t}function getDocument(){return document}function getRootNode(e,t){return e.getRootNode?e.getRootNode({composed:t}):getDocument()}function getClosestMatch(e,t){for(;e&&!t(e);)e=parentElt(e);return e||null}function getAttributeValueWithDisinheritance(e,t,n){let r=getAttributeValue(t,n),o=getAttributeValue(t,"hx-disinherit");var i=getAttributeValue(t,"hx-inherit");if(e!==t){if(htmx.config.disableInheritance)return i&&(i==="*"||i.split(" ").indexOf(n)>=0)?r:null;if(o&&(o==="*"||o.split(" ").indexOf(n)>=0))return"unset"}return r}function getClosestAttributeValue(e,t){let n=null;if(getClosestMatch(e,function(r){return!!(n=getAttributeValueWithDisinheritance(e,asElement(r),t))}),n!=="unset")return n}function matches(e,t){return e instanceof Element&&e.matches(t)}function getStartTag(e){let n=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i.exec(e);
5return n?n[1].toLowerCase():""}function parseHTML(e){return new DOMParser().parseFromString(e,"text/html")}function takeChildrenFor(e,t){for(;t.childNodes.length>0;)e.append(t.childNodes[0])}function duplicateScript(e){let t=getDocument().createElement("script");return forEach(e.attributes,function(n){t.setAttribute(n.name,n.value)}),t.textContent=e.textContent,t.async=!1,htmx.config.inlineScriptNonce&&(t.nonce=htmx.config.inlineScriptNonce),t}function isJavaScriptScriptNode(e){return e.matches("script")&&(e.type==="text/javascript"||e.type==="module"||e.type==="")}function normalizeScriptTags(e){Array.from(e.querySelectorAll("script")).forEach(t=>{if(isJavaScriptScriptNode(t)){let n=duplicateScript(t),r=t.parentNode;try{r.insertBefore(n,t)}catch(o){logError(o)}finally{t.remove()}}})}function makeFragment(e){let t=e.replace(/<head(\s[^>]*)?>[\s\S]*?<\/head>/i,""),n=getStartTag(t),r;if(n==="html"){r=new DocumentFragment;let i=parseHTML(e);takeChildrenFor(r,i.body),r.title=i.title}else if(n==="body"){r=new DocumentFragment;let i=parseHTML(t);takeChildrenFor(r,i.body),r.title=i.title}else{let i=parseHTML('<body><template class="internal-htmx-wrapper">'+t+"</template></body>");r=i.querySelector("template").content,r.title=i.title;var o=r.querySelector("title");o&&o.parentNode===r&&(o.remove(),r.title=o.innerText)}return r&&(htmx.config.allowScriptTags?normalizeScriptTags(r):r.querySelectorAll("script").forEach(i=>i.remove())),r}function maybeCall(e){e&&e()}function isType(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"}function isFunction(e){return typeof e=="function"}function isRawObject(e){return isType(e,"Object")}function getInternalData(e){let t="htmx-internal-data",n=e[t];return n||(n=e[t]={}),n}function toArray(e){let t=[];if(e)for(let n=0;n<e.length;n++)t.push(e[n]);return t}function forEach(e,t){if(e)for(let n=0;n<e.length;n++)t(e[n])}function isScrolledIntoView(e){let t=e.getBoundingClientRect(),n=t.top,r=t.bottom;return n<window.innerHeight&&r>=0}function bodyContains(e){return e.getRootNode({composed:!0})===document}function splitOnWhitespace(e){return e.trim().split(/\s+/)}function mergeObjects(e,t){for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function parseJSON(e){try{return JSON.parse(e)}catch(t){return logError(t),null}}function canAccessLocalStorage(){let e="htmx:sessionStorageTest";try{return sessionStorage.setItem(e,e),sessionStorage.removeItem(e),!0}catch{return!1}}function normalizePath(e){let t=new URL(e,"http://x");return t&&(e=t.pathname+t.search),e!="/"&&(e=e.replace(/\/+$/,"")),e}function internalEval(str){return maybeEval(getDocument().body,function(){return eval(str)})}function onLoadHelper(e){return htmx.on("htmx:load",function(n){e(n.detail.elt)})}function logAll(){htmx.logger=function(e,t,n){console&&console.log(t,e,n)}}function logNone(){htmx.logger=null}function find(e,t){return typeof e!="string"?e.querySelector(t):find(getDocument(),e)}function findAll(e,t){return typeof e!="string"?e.querySelectorAll(t):findAll(getDocument(),e)}function getWindow(){return window}function removeElement(e,t){e=resolveTarget(e),t?getWindow().setTimeout(function(){removeElement(e),e=null},t):parentElt(e).removeChild(e)}function asElement(e){return e instanceof Element?e:null}function asHtmlElement(e){return e instanceof HTMLElement?e:null}function asString(e){return typeof e=="string"?e:null}function asParentNode(e){return e instanceof Element||e instanceof Document||e instanceof DocumentFragment?e:null}function addClassToElement(e,t,n){e=asElement(resolveTarget(e)),e&&(n?getWindow().setTimeout(function(){addClassToElement(e,t),e=null},n):e.classList&&e.classList.add(t))}function removeClassFromElement(e,t,n){let r=asElement(resolveTarget(e));r&&(n?getWindow().setTimeout(function(){removeClassFromElement(r,t),r=null},n):r.classList&&(r.classList.remove(t),r.classList.length===0&&r.removeAttribute("class")))}function toggleClassOnElement(e,t){e=resolveTarget(e),e.classList.toggle(t)}function takeClassForElement(e,t){e=resolveTarget(e),forEach(e.parentElement.children,function(n){removeClassFromElement(n,t)}),addClassToElement(asElement(e),t)}function closest(e,t){return e=asElement(resolveTarget(e)),e?e.closest(t):null}function startsWith(e,t){return e.substring(0,t.length)===t}function endsWith(e,t){return e.substring(e.length-t.length)===t}function normalizeSelector(e){let t=e.trim();return startsWith(t,"<")&&endsWith(t,"/>")?t.substring(1,t.length-2):t}function querySelectorAllExt(e,t,n){if(t.indexOf("global ")===0)return querySelectorAllExt(e,t.slice(7),!0);e=resolveTarget(e);let r=[];{let s=0,a=0;for(let c=0;c<t.length;c++){let u=t[c];if(u===","&&s===0){r.push(t.substring(a,c)),a=c+1;continue}u==="<"?s++:u==="/"&&c<t.length-1&&t[c+1]===">"&&s--}a<t.length&&r.push(t.substring(a))}let o=[],i=[];for(;r.length>0;){let s=normalizeSelector(r.shift()),a;
5s.indexOf("closest ")===0?a=closest(asElement(e),normalizeSelector(s.slice(8))):s.indexOf("find ")===0?a=find(asParentNode(e),normalizeSelector(s.slice(5))):s==="next"||s==="nextElementSibling"?a=asElement(e).nextElementSibling:s.indexOf("next ")===0?a=scanForwardQuery(e,normalizeSelector(s.slice(5)),!!n):s==="previous"||s==="previousElementSibling"?a=asElement(e).previousElementSibling:s.indexOf("previous ")===0?a=scanBackwardsQuery(e,normalizeSelector(s.slice(9)),!!n):s==="document"?a=document:s==="window"?a=window:s==="body"?a=document.body:s==="root"?a=getRootNode(e,!!n):s==="host"?a=e.getRootNode().host:i.push(s),a&&o.push(a)}if(i.length>0){let s=i.join(","),a=asParentNode(getRootNode(e,!!n));o.push(...toArray(a.querySelectorAll(s)))}return o}var scanForwardQuery=function(e,t,n){let r=asParentNode(getRootNode(e,n)).querySelectorAll(t);for(let o=0;o<r.length;o++){let i=r[o];if(i.compareDocumentPosition(e)===Node.DOCUMENT_POSITION_PRECEDING)return i}},scanBackwardsQuery=function(e,t,n){let r=asParentNode(getRootNode(e,n)).querySelectorAll(t);for(let o=r.length-1;o>=0;o--){let i=r[o];if(i.compareDocumentPosition(e)===Node.DOCUMENT_POSITION_FOLLOWING)return i}};function querySelectorExt(e,t){return typeof e!="string"?querySelectorAllExt(e,t)[0]:querySelectorAllExt(getDocument().body,e)[0]}function resolveTarget(e,t){return typeof e=="string"?find(asParentNode(t)||document,e):e}function processEventArgs(e,t,n,r){return isFunction(t)?{target:getDocument().body,event:asString(e),listener:t,options:n}:{target:resolveTarget(e),event:asString(t),listener:n,options:r}}function addEventListenerImpl(e,t,n,r){return ready(function(){let i=processEventArgs(e,t,n,r);i.target.addEventListener(i.event,i.listener,i.options)}),isFunction(t)?t:n}function removeEventListenerImpl(e,t,n){return ready(function(){let r=processEventArgs(e,t,n);r.target.removeEventListener(r.event,r.listener)}),isFunction(t)?t:n}
5let DUMMY_ELT=getDocument().createElement("output");function findAttributeTargets(e,t){let n=getClosestAttributeValue(e,t);if(n){if(n==="this")return[findThisElement(e,t)];{let r=querySelectorAllExt(e,n);if(/(^|,)(\s*)inherit(\s*)($|,)/.test(n)){let i=asElement(getClosestMatch(e,function(s){return s!==e&&hasAttribute(asElement(s),t)}));i&&r.push(...findAttributeTargets(i,t))}return r.length===0?(logError('The selector "'+n+'" on '+t+" returned no matches!"),[DUMMY_ELT]):r}}}function findThisElement(e,t){return asElement(getClosestMatch(e,function(n){return getAttributeValue(asElement(n),t)!=null}))}function getTarget(e){let t=getClosestAttributeValue(e,"hx-target");return t?t==="this"?findThisElement(e,"hx-target"):querySelectorExt(e,t):getInternalData(e).boosted?getDocument().body:e}function shouldSettleAttribute(e){return htmx.config.attributesToSettle.includes(e)}function cloneAttributes(e,t){forEach(Array.from(e.attributes),function(n){!t.hasAttribute(n.name)&&shouldSettleAttribute(n.name)&&e.removeAttribute(n.name)}
5),forEach(t.attributes,function(n){shouldSettleAttribute(n.name)&&e.setAttribute(n.name,n.value)})}function isInlineSwap(e,t){let n=getExtensions(t);for(let r=0;r<n.length;r++){let o=n[r];try{if(o.isInlineSwap(e))return!0}catch(i){logError(i)}}return e==="outerHTML"}function oobSwap(e,t,n,r){r=r||getDocument();let o="#"+CSS.escape(getRawAttribute(t,"id")),i="outerHTML";e==="true"||(e.indexOf(":")>0?(i=e.substring(0,e.indexOf(":")),o=e.substring(e.indexOf(":")+1)):i=e),t.removeAttribute("hx-swap-oob"),t.removeAttribute("data-hx-swap-oob");let s=querySelectorAllExt(r,o,!1);return s.length?(forEach(s,function(a){let c,u=t.cloneNode(!0);c=getDocument().createDocumentFragment(),c.appendChild(u),isInlineSwap(i,a)||(c=asParentNode(u));let l={shouldSwap:!0,target:a,fragment:c};triggerEvent(a,"htmx:oobBeforeSwap",l)&&(a=l.target,l.shouldSwap&&(handlePreservedElements(c),swapWithStyle(i,a,a,c,n),restorePreservedElements()),forEach(n.elts,function(f){triggerEvent(f,"htmx:oobAfterSwap",l)}))}),t.parentNode.removeChild(t)):(t.parentNode.removeChild(t),triggerErrorEvent(getDocument().body,"htmx:oobErrorNoTarget",{content:t})),e}function restorePreservedElements(){let e=find("#--htmx-preserve-pantry--");if(e){for(let t of[...e.children]){let n=find("#"+t.id);n.parentNode.moveBefore(t,n),n.remove()}e.remove()}}function handlePreservedElements(e){forEach(findAll(e,"[hx-preserve], [data-hx-preserve]"),function(t){let n=getAttributeValue(t,"id"),r=getDocument().getElementById(n);if(r!=null)if(t.moveBefore){let o=find("#--htmx-preserve-pantry--");o==null&&(getDocument().body.insertAdjacentHTML("afterend","<div id='--htmx-preserve-pantry--'></div>"),o=find("#--htmx-preserve-pantry--")),o.moveBefore(r,null)}else t.parentNode.replaceChild(r,t)})}function handleAttributes(e,t,n){forEach(t.querySelectorAll("[id]"),function(r){let o=getRawAttribute(r,"id");if(o&&o.length>0){let i=o.replace("'","\\'"),s=r.tagName.replace(":","\\:"),a=asParentNode(e),c=a&&a.querySelector(s+"[id='"+i+"']");if(c&&c!==a){let u=r.cloneNode();cloneAttributes(r,c),n.tasks.push(function(){cloneAttributes(r,u)})}}})}function makeAjaxLoadTask(e){return function(){removeClassFromElement(e,htmx.config.addedClass),processNode(asElement(e)),processFocus(asParentNode(e)),triggerEvent(e,"htmx:load")}}function processFocus(e){let t="[autofocus]",n=asHtmlElement(matches(e,t)?e:e.querySelector(t));n!=null&&n.focus()}function insertNodesBefore(e,t,n,r){for(handleAttributes(e,n,r);n.childNodes.length>0;){let o=n.firstChild;addClassToElement(asElement(o),htmx.config.addedClass),e.insertBefore(o,t),o.nodeType!==Node.TEXT_NODE&&o.nodeType!==Node.COMMENT_NODE&&r.tasks.push(makeAjaxLoadTask(o))}}function stringHash(e,t){let n=0;for(;n<e.length;)t=(t<<5)-t+e.charCodeAt(n++)|0;return t}function attributeHash(e){let t=0;for(let n=0;n<e.attributes.length;n++){let r=e.attributes[n];r.value&&(t=stringHash(r.name,t),t=stringHash(r.value,t))}return t}function deInitOnHandlers(e){let t=getInternalData(e);if(t.onHandlers){for(let n=0;n<t.onHandlers.length;n++){let r=t.onHandlers[n];removeEventListenerImpl(e,r.event,r.listener)}delete t.onHandlers}}function deInitNode(e){let t=getInternalData(e);t.timeout&&clearTimeout(t.timeout),t.listenerInfos&&forEach(t.listenerInfos,function(n){n.on&&removeEventListenerImpl(n.on,n.trigger,n.listener)}),deInitOnHandlers(e),forEach(Object.keys(t),function(n){n!=="firstInitCompleted"&&delete t[n]})}function cleanUpElement(e){triggerEvent(e,"htmx:beforeCleanupElement"),deInitNode(e),forEach(e.children,function(t){cleanUpElement(t)})}function swapOuterHTML(e,t,n){if(e.tagName==="BODY")return swapInnerHTML(e,t,n);let r,o=e.previousSibling,i=parentElt(e);if(i){for(insertNodesBefore(i,e,t,n),o==null?r=i.firstChild:r=o.nextSibling,n.elts=n.elts.filter(function(s){return s!==e});r&&r!==e;)r instanceof Element&&n.elts.push(r),r=r.nextSibling;cleanUpElement(e),e.remove()}}function swapAfterBegin(e,t,n){return insertNodesBefore(e,e.firstChild,t,n)}function swapBeforeBegin(e,t,n){return insertNodesBefore(parentElt(e),e,t,n)}function swapBeforeEnd(e,t,n){return insertNodesBefore(e,null,t,n)}
5function swapAfterEnd(e,t,n){return insertNodesBefore(parentElt(e),e.nextSibling,t,n)}function swapDelete(e){cleanUpElement(e);let t=parentElt(e);if(t)return t.removeChild(e)}function swapInnerHTML(e,t,n){let r=e.firstChild;if(insertNodesBefore(e,r,t,n),r){for(;r.nextSibling;)cleanUpElement(r.nextSibling),e.removeChild(r.nextSibling);cleanUpElement(r),e.removeChild(r)}}function swapWithStyle(e,t,n,r,o){switch(e){case"none":return;case"outerHTML":swapOuterHTML(n,r,o);return;case"afterbegin":swapAfterBegin(n,r,o);return;case"beforebegin":swapBeforeBegin(n,r,o);return;case"beforeend":swapBeforeEnd(n,r,o);return;case"afterend":swapAfterEnd(n,r,o);return;case"delete":swapDelete(n);return;default:var i=getExtensions(t);for(let s=0;s<i.length;s++){let a=i[s];try{let c=a.handleSwap(e,n,r,o);if(c){if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];l.nodeType!==Node.TEXT_NODE&&l.nodeType!==Node.COMMENT_NODE&&o.tasks.push(makeAjaxLoadTask(l))}return}}catch(c){logError(c)}}e==="innerHTML"?swapInnerHTML(n,r,o):swapWithStyle(htmx.config.defaultSwapStyle,t,n,r,o)}}function findAndSwapOobElements(e,t,n){var r=findAll(e,"[hx-swap-oob], [data-hx-swap-oob]");return forEach(r,function(o){if(htmx.config.allowNestedOobSwaps||o.parentElement===null){let i=getAttributeValue(o,"hx-swap-oob");i!=null&&oobSwap(i,o,t,n)}else o.removeAttribute("hx-swap-oob"),o.removeAttribute("data-hx-swap-oob")}),r.length>0}function swap(e,t,n,r){r||(r={});let o=null,i=null,s=function(){maybeCall(r.beforeSwapCallback),e=resolveTarget(e);let u=r.contextElement?getRootNode(r.contextElement,!1):getDocument(),l=document.activeElement,f={};f={elt:l,start:l?l.selectionStart:null,end:l?l.selectionEnd:null};let d=makeSettleInfo(e);if(n.swapStyle==="textContent")e.textContent=t;else{let g=makeFragment(t);if(d.title=r.title||g.title,r.historyRequest&&(g=g.querySelector("[hx-history-elt],[data-hx-history-elt]")||g),r.selectOOB){let x=r.selectOOB.split(",");for(let m=0;m<x.length;m++){let E=x[m].split(":",2),y=E[0].trim();y.indexOf("#")===0&&(y=y.substring(1));let v=E[1]||"true",T=g.querySelector("#"+y);T&&oobSwap(v,T,d,u)}}if(findAndSwapOobElements(g,d,u),forEach(findAll(g,"template"),function(x){x.content&&findAndSwapOobElements(x.content,d,u)&&x.remove()}),r.select){let x=getDocument().createDocumentFragment();forEach(g.querySelectorAll(r.select),function(m){x.appendChild(m)}),g=x}handlePreservedElements(g),swapWithStyle(n.swapStyle,r.contextElement,e,g,d),restorePreservedElements()}if(f.elt&&!bodyContains(f.elt)&&getRawAttribute(f.elt,"id")){let g=document.getElementById(getRawAttribute(f.elt,"id")),x={preventScroll:n.focusScroll!==void 0?!n.focusScroll:!htmx.config.defaultFocusScroll};if(g){if(f.start&&g.setSelectionRange)try{g.setSelectionRange(f.start,f.end)}catch{}g.focus(x)}}e.classList.remove(htmx.config.swappingClass),forEach(d.elts,function(g){g.classList&&g.classList.add(htmx.config.settlingClass),triggerEvent(g,"htmx:afterSwap",r.eventInfo)}),maybeCall(r.afterSwapCallback),n.ignoreTitle||handleTitle(d.title);let p=function(){if(forEach(d.tasks,function(g){g.call()}),forEach(d.elts,function(g){g.classList&&g.classList.remove(htmx.config.settlingClass),triggerEvent(g,"htmx:afterSettle",r.eventInfo)}),r.anchor){let g=asElement(resolveTarget("#"+r.anchor));g&&g.scrollIntoView({block:"start",behavior:"auto"})}updateScrollState(d.elts,n),maybeCall(r.afterSettleCallback),maybeCall(o)};n.settleDelay>0?getWindow().setTimeout(p,n.settleDelay):p()},a=htmx.config.globalViewTransitions;n.hasOwnProperty("transition")&&(a=n.transition);let c=r.contextElement||getDocument();if(a&&triggerEvent(c,"htmx:beforeTransition",r.eventInfo)&&typeof Promise!="undefined"&&document.startViewTransition){let u=new Promise(function(f,d){o=f,i=d}),l=s;s=function(){document.startViewTransition(function(){return l(),u})}}try{n!=null&&n.swapDelay&&n.swapDelay>0?getWindow().setTimeout(s,n.swapDelay):s()}catch(u){throw triggerErrorEvent(c,"htmx:swapError",r.eventInfo),maybeCall(i),u}}function handleTriggerHeader(e,t,n){let r=e.getResponseHeader(t);if(r.indexOf("{")===0){let o=parseJSON(r);for(let i in o)if(o.hasOwnProperty(i)){let s=o[i];isRawObject(s)?n=s.target!==void 0?s.target:n:s={value:s},triggerEvent(n,i,s)}}else{let o=r.split(",");for(let i=0;i<o.length;i++)triggerEvent(n,o[i].trim(),[])}}let WHITESPACE=/\s/,WHITESPACE_OR_COMMA=/[\s,]/,SYMBOL_START=/[_$a-zA-Z]/,SYMBOL_CONT=/[_$a-zA-Z0-9]/,STRINGISH_START=['"',"'","/"],NOT_WHITESPACE=/[^\s]/,COMBINED_SELECTOR_START=/[{(]/,COMBINED_SELECTOR_END=/[})]/;function tokenizeString(e){let t=[],n=0;for(;n<e.length;){if(SYMBOL_START.exec(e.charAt(n))){for(var r=n;SYMBOL_CONT.exec(e.charAt(n+1));)n++;t.push(e.substring(r,n+1))}else if(STRINGISH_START.indexOf(e.charAt(n))!==-1){let o=e.charAt(n);var r=n;for(n++;n<e.length&&e.charAt(n)!==o;)e.charAt(n)==="\\"&&n++,n++;t.push(e.substring(r,n+1))}else{let o=e.charAt(n);t.push(o)}n++}return t}function isPossibleRelativeReference(e,t,n){return SYMBOL_START.exec(e.charAt(0))&&e!=="true"&&e!=="false"&&e!=="this"&&e!==n&&t!=="."}function maybeGenerateConditional(e,t,n){if(t[0]==="["){t.shift();let r=1,o=" return (function("+n+"){ return (",i=null;for(;t.length>0;){let s=t[0];if(s==="]"){if(r--,r===0){i===null&&(o=o+"true"),t.shift(),o+=")})";try{let a=maybeEval(e,function(){return Function(o)()},function(){return!0});return a.source=o,a}catch(a){return triggerErrorEvent(getDocument().body,"htmx:syntax:error",{error:a,source:o}),null}}}else s==="["&&r++;isPossibleRelativeReference(s,i,n)?o+="(("+n+"."+s+") ? ("+n+"."+s+") : (window."+s+"))":o=o+s,i=t.shift()}}}function consumeUntil(e,t){let n="";for(;e.length>0&&!t.test(e[0]);)n+=e.shift();return n}function consumeCSSSelector(e){let t;return e.length>0&&COMBINED_SELECTOR_START.test(e[0])?(e.shift(),t=consumeUntil(e,COMBINED_SELECTOR_END).trim(),e.shift()):t=consumeUntil(e,WHITESPACE_OR_COMMA),t}let INPUT_SELECTOR="input, textarea, select";function parseAndCacheTrigger(e,t,n){let r=[],o=tokenizeString(t);do{consumeUntil(o,NOT_WHITESPACE);let a=o.length,c=consumeUntil(o,/[,\[\s]/);if(c!=="")if(c==="every"){let u={trigger:"every"};consumeUntil(o,NOT_WHITESPACE),u.pollInterval=parseInterval(consumeUntil(o,/[,\[\s]/)),consumeUntil(o,NOT_WHITESPACE);var i=maybeGenerateConditional(e,o,"event");
5i&&(u.eventFilter=i),r.push(u)}else{let u={trigger:c};var i=maybeGenerateConditional(e,o,"event");for(i&&(u.eventFilter=i),consumeUntil(o,NOT_WHITESPACE);o.length>0&&o[0]!==",";){let f=o.shift();if(f==="changed")u.changed=!0;else if(f==="once")u.once=!0;else if(f==="consume")u.consume=!0;else if(f==="delay"&&o[0]===":")o.shift(),u.delay=parseInterval(consumeUntil(o,WHITESPACE_OR_COMMA));else if(f==="from"&&o[0]===":"){if(o.shift(),COMBINED_SELECTOR_START.test(o[0]))var s=consumeCSSSelector(o);else{var s=consumeUntil(o,WHITESPACE_OR_COMMA);if(s==="closest"||s==="find"||s==="next"||s==="previous"){o.shift();let p=consumeCSSSelector(o);p.length>0&&(s+=" "+p)}}u.from=s}else f==="target"&&o[0]===":"?(o.shift(),u.target=consumeCSSSelector(o)):f==="throttle"&&o[0]===":"?(o.shift(),u.throttle=parseInterval(consumeUntil(o,WHITESPACE_OR_COMMA))):f==="queue"&&o[0]===":"?(o.shift(),u.queue=consumeUntil(o,WHITESPACE_OR_COMMA)):f==="root"&&o[0]===":"?(o.shift(),u[f]=consumeCSSSelector(o)):f==="threshold"&&o[0]===":"?(o.shift(),u[f]=consumeUntil(o,WHITESPACE_OR_COMMA)):triggerErrorEvent(e,"htmx:syntax:error",{token:o.shift()});consumeUntil(o,NOT_WHITESPACE)}r.push(u)}o.length===a&&triggerErrorEvent(e,"htmx:syntax:error",{token:o.shift()}),consumeUntil(o,NOT_WHITESPACE)}while(o[0]===","&&o.shift());return n&&(n[t]=r),r}function getTriggerSpecs(e){let t=getAttributeValue(e,"hx-trigger"),n=[];if(t){let r=htmx.config.triggerSpecsCache;n=r&&r[t]||parseAndCacheTrigger(e,t,r)}return n.length>0?n:matches(e,"form")?[{trigger:"submit"}]:matches(e,'input[type="button"], input[type="submit"]')?[{trigger:"click"}]:matches(e,INPUT_SELECTOR)?[{trigger:"change"}]:[{trigger:"click"}]}function cancelPolling(e){getInternalData(e).cancelled=!0}function processPolling(e,t,n){let r=getInternalData(e);r.timeout=getWindow().setTimeout(function(){bodyContains(e)&&r.cancelled!==!0&&(maybeFilterEvent(n,e,makeEvent("hx:poll:trigger",{triggerSpec:n,target:e}))||t(e),processPolling(e,t,n))},n.pollInterval)}function isLocalLink(e){return location.hostname===e.hostname&&getRawAttribute(e,"href")&&getRawAttribute(e,"href").indexOf("#")!==0}function eltIsDisabled(e){return closest(e,htmx.config.disableSelector)}function boostElement(e,t,n){if(e instanceof HTMLAnchorElement&&isLocalLink(e)&&(e.target===""||e.target==="_self")||e.tagName==="FORM"&&String(getRawAttribute(e,"method")).toLowerCase()!=="dialog"){t.boosted=!0;let r,o;if(e.tagName==="A")r="get",o=getRawAttribute(e,"href");else{let i=getRawAttribute(e,"method");r=i?i.toLowerCase():"get",o=getRawAttribute(e,"action"),(o==null||o==="")&&(o=location.href),r==="get"&&o.includes("?")&&(o=o.replace(/\?[^#]+/,""))}n.forEach(function(i){addEventListener(e,function(s,a){let c=asElement(s);if(eltIsDisabled(c)){cleanUpElement(c);return}issueAjaxRequest(r,o,c,a)},t,i,!0)})}}function shouldCancel(e,t){if(e.type==="submit"&&t.tagName==="FORM")return!0;if(e.type==="click"){let n=t.closest('input[type="submit"], button');if(n&&n.form&&n.type==="submit")return!0;let r=t.closest("a"),o=/^#.+/;if(r&&r.href&&!o.test(r.getAttribute("href")))return!0}return!1}function ignoreBoostedAnchorCtrlClick(e,t){return getInternalData(e).boosted&&e instanceof HTMLAnchorElement&&t.type==="click"&&(t.ctrlKey||t.metaKey)}function maybeFilterEvent(e,t,n){let r=e.eventFilter;if(r)try{return r.call(t,n)!==!0}catch(o){let i=r.source;return triggerErrorEvent(getDocument().body,"htmx:eventFilter:error",{error:o,source:i}),!0}return!1}function addEventListener(e,t,n,r,o){let i=getInternalData(e),s;r.from?s=querySelectorAllExt(e,r.from):s=[e],r.changed&&("lastValue"in i||(i.lastValue=new WeakMap),s.forEach(function(a){i.lastValue.has(r)||i.lastValue.set(r,new WeakMap),i.lastValue.get(r).set(a,a.value)})),forEach(s,function(a){let c=function(u){if(!bodyContains(e)){a.removeEventListener(r.trigger,c);return}if(ignoreBoostedAnchorCtrlClick(e,u)||((o||shouldCancel(u,a))&&u.preventDefault(),maybeFilterEvent(r,e,u)))return;let l=getInternalData(u);if(l.triggerSpec=r,l.handledFor==null&&(l.handledFor=[]),l.handledFor.indexOf(e)<0){if(l.handledFor.push(e),r.consume&&u.stopPropagation(),r.target&&u.target&&!matches(asElement(u.target),r.target))return;if(r.once){if(i.triggeredOnce)return;i.triggeredOnce=!0}if(r.changed){let f=u.target,d=f.value,p=i.lastValue.get(r);if(p.has(f)&&p.get(f)===d)return;p.set(f,d)}if(i.delayed&&clearTimeout(i.delayed),i.throttle)return;r.throttle>0?i.throttle||(triggerEvent(e,"htmx:trigger"),t(e,u),i.throttle=getWindow().setTimeout(function(){i.throttle=null},r.throttle)):r.delay>0?i.delayed=getWindow().setTimeout(function(){triggerEvent(e,"htmx:trigger"),t(e,u)},r.delay):(triggerEvent(e,"htmx:trigger"),t(e,u))}};n.listenerInfos==null&&(n.listenerInfos=[]),n.listenerInfos.push({trigger:r.trigger,listener:c,on:a}),a.addEventListener(r.trigger,c)})}let windowIsScrolling=!1,scrollHandler=null;function initScrollHandler(){scrollHandler||(scrollHandler=function(){windowIsScrolling=!0},window.addEventListener("scroll",scrollHandler),window.addEventListener("resize",scrollHandler),setInterval(function(){windowIsScrolling&&(windowIsScrolling=!1,forEach(getDocument().querySelectorAll("[hx-trigger*='revealed'],[data-hx-trigger*='revealed']"),function(e){maybeReveal(e)}))},200))}function maybeReveal(e){!hasAttribute(e,"data-hx-revealed")&&isScrolledIntoView(e)&&(e.setAttribute("data-hx-revealed","true"),getInternalData(e).initHash?triggerEvent(e,"revealed"):e.addEventListener("htmx:afterProcessNode",function(){triggerEvent(e,"revealed")},{once:!0}))}function loadImmediately(e,t,n,r){let o=function(){n.loaded||(n.loaded=!0,triggerEvent(e,"htmx:trigger"),t(e))};r>0?getWindow().setTimeout(o,r):o()}function processVerbs(e,t,n){let r=!1;
5return forEach(VERBS,function(o){if(hasAttribute(e,"hx-"+o)){let i=getAttributeValue(e,"hx-"+o);r=!0,t.path=i,t.verb=o,n.forEach(function(s){addTriggerHandler(e,s,t,function(a,c){let u=asElement(a);if(eltIsDisabled(u)){cleanUpElement(u);return}issueAjaxRequest(o,i,u,c)})})}}),r}function addTriggerHandler(e,t,n,r){if(t.trigger==="revealed")initScrollHandler(),addEventListener(e,r,n,t),maybeReveal(asElement(e));else if(t.trigger==="intersect"){let o={};t.root&&(o.root=querySelectorExt(e,t.root)),t.threshold&&(o.threshold=parseFloat(t.threshold)),new IntersectionObserver(function(s){for(let a=0;a<s.length;a++)if(s[a].isIntersecting){triggerEvent(e,"intersect");break}},o).observe(asElement(e)),addEventListener(asElement(e),r,n,t)}else!n.firstInitCompleted&&t.trigger==="load"?maybeFilterEvent(t,e,makeEvent("load",{elt:e}))||loadImmediately(asElement(e),r,n,t.delay):t.pollInterval>0?(n.polling=!0,processPolling(asElement(e),r,t)):addEventListener(e,r,n,t)}function shouldProcessHxOn(e){let t=asElement(e);if(!t)return!1;let n=t.attributes;for(let r=0;r<n.length;r++){let o=n[r].name;if(startsWith(o,"hx-on:")||startsWith(o,"data-hx-on:")||startsWith(o,"hx-on-")||startsWith(o,"data-hx-on-"))return!0}return!1}let HX_ON_QUERY=new XPathEvaluator().createExpression('.//*[@*[ starts-with(name(), "hx-on:") or starts-with(name(), "data-hx-on:") or starts-with(name(), "hx-on-") or starts-with(name(), "data-hx-on-") ]]');function processHXOnRoot(e,t){shouldProcessHxOn(e)&&t.push(asElement(e));let n=HX_ON_QUERY.evaluate(e),r=null;for(;r=n.iterateNext();)t.push(asElement(r))}function findHxOnWildcardElements(e){let t=[];if(e instanceof DocumentFragment)for(let n of e.childNodes)processHXOnRoot(n,t);else processHXOnRoot(e,t);return t}function findElementsToProcess(e){if(e.querySelectorAll){let n=", [hx-boost] a, [data-hx-boost] a, a[hx-boost], a[data-hx-boost]",r=[];for(let i in extensions){let s=extensions[i];if(s.getSelectors){var t=s.getSelectors();t&&r.push(t)}}return e.querySelectorAll(VERB_SELECTOR+n+", form, [type='submit'], [hx-ext], [data-hx-ext], [hx-trigger], [data-hx-trigger]"+r.flat().map(i=>", "+i).join(""))}else return[]}function maybeSetLastButtonClicked(e){let t=getTargetButton(e.target),n=getRelatedFormData(e);n&&(n.lastButtonClicked=t)}function maybeUnsetLastButtonClicked(e){let t=getRelatedFormData(e);t&&(t.lastButtonClicked=null)}function getTargetButton(e){return closest(asElement(e),"button, input[type='submit']")}function getRelatedForm(e){return e.form||closest(e,"form")}function getRelatedFormData(e){let t=getTargetButton(e.target);if(!t)return;let n=getRelatedForm(t);if(n)return getInternalData(n)}function initButtonTracking(e){e.addEventListener("click",maybeSetLastButtonClicked),e.addEventListener("focusin",maybeSetLastButtonClicked),e.addEventListener("focusout",maybeUnsetLastButtonClicked)}function addHxOnEventHandler(e,t,n){let r=getInternalData(e);Array.isArray(r.onHandlers)||(r.onHandlers=[]);let o,i=function(s){maybeEval(e,function(){eltIsDisabled(e)||(o||(o=new Function("event",n)),o.call(e,s))})};e.addEventListener(t,i),r.onHandlers.push({event:t,listener:i})}function processHxOnWildcard(e){deInitOnHandlers(e);for(let t=0;t<e.attributes.length;t++){let n=e.attributes[t].name,r=e.attributes[t].value;if(startsWith(n,"hx-on")||startsWith(n,"data-hx-on")){let o=n.indexOf("-on")+3,i=n.slice(o,o+1);if(i==="-"||i===":"){let s=n.slice(o+1);startsWith(s,":")?s="htmx"+s:startsWith(s,"-")?s="htmx:"+s.slice(1):startsWith(s,"htmx-")&&(s="htmx:"+s.slice(5)),addHxOnEventHandler(e,s,r)}}}}function initNode(e){triggerEvent(e,"htmx:beforeProcessNode");let t=getInternalData(e),n=getTriggerSpecs(e);processVerbs(e,t,n)||(getClosestAttributeValue(e,"hx-boost")==="true"?boostElement(e,t,n):hasAttribute(e,"hx-trigger")&&n.forEach(function(o){addTriggerHandler(e,o,t,function(){})})),(e.tagName==="FORM"||getRawAttribute(e,"type")==="submit"&&hasAttribute(e,"form"))&&initButtonTracking(e),t.firstInitCompleted=!0,triggerEvent(e,"htmx:afterProcessNode")}function maybeDeInitAndHash(e){if(!(e instanceof Element))return!1;let t=getInternalData(e),n=attributeHash(e);return t.initHash!==n?(deInitNode(e),t.initHash=n,!0):!1}function processNode(e){if(e=resolveTarget(e),eltIsDisabled(e)){cleanUpElement(e);return}let t=[];maybeDeInitAndHash(e)&&t.push(e),forEach(findElementsToProcess(e),function(n){if(eltIsDisabled(n)){cleanUpElement(n);return}maybeDeInitAndHash(n)&&t.push(n)}
5),forEach(findHxOnWildcardElements(e),processHxOnWildcard),forEach(t,initNode)}function kebabEventName(e){return e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}function makeEvent(e,t){return new CustomEvent(e,{bubbles:!0,cancelable:!0,composed:!0,detail:t})}function triggerErrorEvent(e,t,n){triggerEvent(e,t,mergeObjects({error:t},n))}function ignoreEventForLogging(e){return e==="htmx:afterProcessNode"}function withExtensions(e,t,n){forEach(getExtensions(e,[],n),function(r){try{t(r)}catch(o){logError(o)}})}function logError(e){console.error(e)}function triggerEvent(e,t,n){e=resolveTarget(e),n==null&&(n={}),n.elt=e;let r=makeEvent(t,n);htmx.logger&&!ignoreEventForLogging(t)&&htmx.logger(e,t,n),n.error&&(logError(n.error),triggerEvent(e,"htmx:error",{errorInfo:n}));let o=e.dispatchEvent(r),i=kebabEventName(t);if(o&&i!==t){let s=makeEvent(i,r.detail);o=o&&e.dispatchEvent(s)}return withExtensions(asElement(e),function(s){o=o&&s.onEvent(t,r)!==!1&&!r.defaultPrevented}),o}let currentPathForHistory=location.pathname+location.search;function setCurrentPathForHistory(e){currentPathForHistory=e,canAccessLocalStorage()&&sessionStorage.setItem("htmx-current-path-for-history",e)}function getHistoryElement(){return getDocument().querySelector("[hx-history-elt],[data-hx-history-elt]")||getDocument().body}function saveToHistoryCache(e,t){if(!canAccessLocalStorage())return;let n=cleanInnerHtmlForHistory(t),r=getDocument().title,o=window.scrollY;if(htmx.config.historyCacheSize<=0){sessionStorage.removeItem("htmx-history-cache");return}e=normalizePath(e);let i=parseJSON(sessionStorage.getItem("htmx-history-cache"))||[];for(let a=0;a<i.length;a++)if(i[a].url===e){i.splice(a,1);break}let s={url:e,content:n,title:r,scroll:o};for(triggerEvent(getDocument().body,"htmx:historyItemCreated",{item:s,cache:i}),i.push(s);i.length>htmx.config.historyCacheSize;)i.shift();for(;i.length>0;)try{sessionStorage.setItem("htmx-history-cache",JSON.stringify(i));break}catch(a){triggerErrorEvent(getDocument().body,"htmx:historyCacheError",{cause:a,cache:i}),i.shift()}}function getCachedHistory(e){if(!canAccessLocalStorage())return null;e=normalizePath(e);let t=parseJSON(sessionStorage.getItem("htmx-history-cache"))||[];for(let n=0;n<t.length;n++)if(t[n].url===e)return t[n];return null}function cleanInnerHtmlForHistory(e){let t=htmx.config.requestClass,n=e.cloneNode(!0);return forEach(findAll(n,"."+t),function(r){removeClassFromElement(r,t)}),forEach(findAll(n,"[data-disabled-by-htmx]"),function(r){r.removeAttribute("disabled")}),n.innerHTML}function saveCurrentPageToHistory(){let e=getHistoryElement(),t=currentPathForHistory;canAccessLocalStorage()&&(t=sessionStorage.getItem("htmx-current-path-for-history")),t=t||location.pathname+location.search,getDocument().querySelector('[hx-history="false" i],[data-hx-history="false" i]')||(triggerEvent(getDocument().body,"htmx:beforeHistorySave",{path:t,historyElt:e}),saveToHistoryCache(t,e)),htmx.config.historyEnabled&&history.replaceState({htmx:!0},getDocument().title,location.href)}function pushUrlIntoHistory(e){htmx.config.getCacheBusterParam&&(e=e.replace(/org\.htmx\.cache-buster=[^&]*&?/,""),(endsWith(e,"&")||endsWith(e,"?"))&&(e=e.slice(0,-1))),htmx.config.historyEnabled&&history.pushState({htmx:!0},"",e),setCurrentPathForHistory(e)}function replaceUrlInHistory(e){htmx.config.historyEnabled&&history.replaceState({htmx:!0},"",e),setCurrentPathForHistory(e)}function settleImmediately(e){forEach(e,function(t){t.call(void 0)})}function loadHistoryFromServer(e){let t=new XMLHttpRequest,n={swapStyle:"innerHTML",swapDelay:0,settleDelay:0},r={path:e,xhr:t,historyElt:getHistoryElement(),swapSpec:n};t.open("GET",e,!0),htmx.config.historyRestoreAsHxRequest&&t.setRequestHeader("HX-Request","true"),t.setRequestHeader("HX-History-Restore-Request","true"),t.setRequestHeader("HX-Current-URL",location.href),t.onload=function(){this.status>=200&&this.status<400?(r.response=this.response,triggerEvent(getDocument().body,"htmx:historyCacheMissLoad",r),swap(r.historyElt,r.response,n,{contextElement:r.historyElt,historyRequest:!0}),setCurrentPathForHistory(r.path),triggerEvent(getDocument().body,"htmx:historyRestore",{path:e,cacheMiss:!0,serverResponse:r.response})):triggerErrorEvent(getDocument().body,"htmx:historyCacheMissLoadError",r)},triggerEvent(getDocument().body,"htmx:historyCacheMiss",r)&&t.send()}function restoreHistory(e){saveCurrentPageToHistory(),e=e||location.pathname+location.search;
5let t=getCachedHistory(e);if(t){let n={swapStyle:"innerHTML",swapDelay:0,settleDelay:0,scroll:t.scroll},r={path:e,item:t,historyElt:getHistoryElement(),swapSpec:n};triggerEvent(getDocument().body,"htmx:historyCacheHit",r)&&(swap(r.historyElt,t.content,n,{contextElement:r.historyElt,title:t.title}),setCurrentPathForHistory(r.path),triggerEvent(getDocument().body,"htmx:historyRestore",r))}else htmx.config.refreshOnHistoryMiss?htmx.location.reload(!0):loadHistoryFromServer(e)}function addRequestIndicatorClasses(e){let t=findAttributeTargets(e,"hx-indicator");return t==null&&(t=[e]),forEach(t,function(n){let r=getInternalData(n);r.requestCount=(r.requestCount||0)+1,n.classList.add.call(n.classList,htmx.config.requestClass)}),t}function disableElements(e){let t=findAttributeTargets(e,"hx-disabled-elt");return t==null&&(t=[]),forEach(t,function(n){let r=getInternalData(n);r.requestCount=(r.requestCount||0)+1,n.setAttribute("disabled",""),n.setAttribute("data-disabled-by-htmx","")}),t}function removeRequestIndicators(e,t){forEach(e.concat(t),function(n){let r=getInternalData(n);r.requestCount=(r.requestCount||1)-1}
5),forEach(e,function(n){getInternalData(n).requestCount===0&&n.classList.remove.call(n.classList,htmx.config.requestClass)}),forEach(t,function(n){getInternalData(n).requestCount===0&&(n.removeAttribute("disabled"),n.removeAttribute("data-disabled-by-htmx"))})}function haveSeenNode(e,t){for(let n=0;n<e.length;n++)if(e[n].isSameNode(t))return!0;return!1}function shouldInclude(e){let t=e;return t.name===""||t.name==null||t.disabled||closest(t,"fieldset[disabled]")||t.type==="button"||t.type==="submit"||t.tagName==="image"||t.tagName==="reset"||t.tagName==="file"?!1:t.type==="checkbox"||t.type==="radio"?t.checked:!0}function addValueToFormData(e,t,n){e!=null&&t!=null&&(Array.isArray(t)?t.forEach(function(r){n.append(e,r)}):n.append(e,t))}function removeValueFromFormData(e,t,n){if(e!=null&&t!=null){let r=n.getAll(e);Array.isArray(t)?r=r.filter(o=>t.indexOf(o)<0):r=r.filter(o=>o!==t),n.delete(e),forEach(r,o=>n.append(e,o))}}function getValueFromInput(e){return e instanceof HTMLSelectElement&&e.multiple?toArray(e.querySelectorAll("option:checked")).map(function(t){return t.value}):e instanceof HTMLInputElement&&e.files?toArray(e.files):e.value}function processInputValue(e,t,n,r,o){if(!(r==null||haveSeenNode(e,r))){if(e.push(r),shouldInclude(r)){let i=getRawAttribute(r,"name");addValueToFormData(i,getValueFromInput(r),t),o&&validateElement(r,n)}r instanceof HTMLFormElement&&(forEach(r.elements,function(i){e.indexOf(i)>=0?removeValueFromFormData(i.name,getValueFromInput(i),t):e.push(i),o&&validateElement(i,n)}),new FormData(r).forEach(function(i,s){i instanceof File&&i.name===""||addValueToFormData(s,i,t)}))}}function validateElement(e,t){let n=e;n.willValidate&&(triggerEvent(n,"htmx:validation:validate"),n.checkValidity()||(triggerEvent(n,"htmx:validation:failed",{message:n.validationMessage,validity:n.validity})&&!t.length&&htmx.config.reportValidityOfForms&&n.reportValidity(),t.push({elt:n,message:n.validationMessage,validity:n.validity})))}function overrideFormData(e,t){for(let n of t.keys())e.delete(n);return t.forEach(function(n,r){e.append(r,n)}),e}function getInputValues(e,t){let n=[],r=new FormData,o=new FormData,i=[],s=getInternalData(e);s.lastButtonClicked&&!bodyContains(s.lastButtonClicked)&&(s.lastButtonClicked=null);let a=e instanceof HTMLFormElement&&e.noValidate!==!0||getAttributeValue(e,"hx-validate")==="true";if(s.lastButtonClicked&&(a=a&&s.lastButtonClicked.formNoValidate!==!0),t!=="get"&&processInputValue(n,o,i,getRelatedForm(e),a),processInputValue(n,r,i,e,a),s.lastButtonClicked||e.tagName==="BUTTON"||e.tagName==="INPUT"&&getRawAttribute(e,"type")==="submit"){let u=s.lastButtonClicked||e,l=getRawAttribute(u,"name");addValueToFormData(l,u.value,o)}let c=findAttributeTargets(e,"hx-include");return forEach(c,function(u){processInputValue(n,r,i,asElement(u),a),matches(u,"form")||forEach(asParentNode(u).querySelectorAll(INPUT_SELECTOR),function(l){processInputValue(n,r,i,l,a)})}),overrideFormData(r,o),{errors:i,formData:r,values:formDataProxy(r)}}function appendParam(e,t,n){e!==""&&(e+="&"),String(n)==="[object Object]"&&(n=JSON.stringify(n));let r=encodeURIComponent(n);return e+=encodeURIComponent(t)+"="+r,e}function urlEncode(e){e=formDataFromObject(e);let t="";return e.forEach(function(n,r){t=appendParam(t,r,n)}),t}function getHeaders(e,t,n){let r={"HX-Request":"true","HX-Trigger":getRawAttribute(e,"id"),"HX-Trigger-Name":getRawAttribute(e,"name"),"HX-Target":getAttributeValue(t,"id"),"HX-Current-URL":location.href};return getValuesForElement(e,"hx-headers",!1,r),n!==void 0&&(r["HX-Prompt"]=n),getInternalData(e).boosted&&(r["HX-Boosted"]="true"),r}function filterValues(e,t){let n=getClosestAttributeValue(t,"hx-params");if(n){if(n==="none")return new FormData;if(n==="*")return e;if(n.indexOf("not ")===0)return forEach(n.slice(4).split(","),function(r){r=r.trim(),e.delete(r)}),e;{let r=new FormData;return forEach(n.split(","),function(o){o=o.trim(),e.has(o)&&e.getAll(o).forEach(function(i){r.append(o,i)})}),r}}else return e}function isAnchorLink(e){return!!getRawAttribute(e,"href")&&getRawAttribute(e,"href").indexOf("#")>=0}function getSwapSpecification(e,t){let n=t||getClosestAttributeValue(e,"hx-swap"),r={
5swapStyle:getInternalData(e).boosted?"innerHTML":htmx.config.defaultSwapStyle,swapDelay:htmx.config.defaultSwapDelay,settleDelay:htmx.config.defaultSettleDelay};if(htmx.config.scrollIntoViewOnBoost&&getInternalData(e).boosted&&!isAnchorLink(e)&&(r.show="top"),n){let s=splitOnWhitespace(n);if(s.length>0)for(let a=0;a<s.length;a++){let c=s[a];if(c.indexOf("swap:")===0)r.swapDelay=parseInterval(c.slice(5));else if(c.indexOf("settle:")===0)r.settleDelay=parseInterval(c.slice(7));else if(c.indexOf("transition:")===0)r.transition=c.slice(11)==="true";else if(c.indexOf("ignoreTitle:")===0)r.ignoreTitle=c.slice(12)==="true";else if(c.indexOf("scroll:")===0){var o=c.slice(7).split(":");let l=o.pop();var i=o.length>0?o.join(":"):null;r.scroll=l,r.scrollTarget=i}else if(c.indexOf("show:")===0){var o=c.slice(5).split(":");let f=o.pop();var i=o.length>0?o.join(":"):null;r.show=f,r.showTarget=i}else if(c.indexOf("focus-scroll:")===0){let u=c.slice(13);r.focusScroll=u=="true"}else a==0?r.swapStyle=c:logError("Unknown modifier in hx-swap: "+c)}}return r}function usesFormData(e){return getClosestAttributeValue(e,"hx-encoding")==="multipart/form-data"||matches(e,"form")&&getRawAttribute(e,"enctype")==="multipart/form-data"}function encodeParamsForBody(e,t,n){let r=null;return withExtensions(t,function(o){r==null&&(r=o.encodeParameters(e,n,t))}),r!=null?r:usesFormData(t)?overrideFormData(new FormData,formDataFromObject(n)):urlEncode(n)}function makeSettleInfo(e){return{tasks:[],elts:[e]}}function updateScrollState(e,t){let n=e[0],r=e[e.length-1];if(t.scroll){var o=null;t.scrollTarget&&(o=asElement(querySelectorExt(n,t.scrollTarget))),t.scroll==="top"&&(n||o)&&(o=o||n,o.scrollTop=0),t.scroll==="bottom"&&(r||o)&&(o=o||r,o.scrollTop=o.scrollHeight),typeof t.scroll=="number"&&getWindow().setTimeout(function(){window.scrollTo(0,t.scroll)},0)}if(t.show){var o=null;if(t.showTarget){let s=t.showTarget;t.showTarget==="window"&&(s="body"),o=asElement(querySelectorExt(n,s))}t.show==="top"&&(n||o)&&(o=o||n,o.scrollIntoView({block:"start",behavior:htmx.config.scrollBehavior})),t.show==="bottom"&&(r||o)&&(o=o||r,o.scrollIntoView({block:"end",behavior:htmx.config.scrollBehavior}))}}function getValuesForElement(e,t,n,r,o){if(r==null&&(r={}),e==null)return r;let i=getAttributeValue(e,t);if(i){let s=i.trim(),a=n;if(s==="unset")return null;s.indexOf("javascript:")===0?(s=s.slice(11),a=!0):s.indexOf("js:")===0&&(s=s.slice(3),a=!0),s.indexOf("{")!==0&&(s="{"+s+"}");let c;a?c=maybeEval(e,function(){return o?Function("event","return ("+s+")").call(e,o):Function("return ("+s+")").call(e)},{}):c=parseJSON(s);for(let u in c)c.hasOwnProperty(u)&&r[u]==null&&(r[u]=c[u])}return getValuesForElement(asElement(parentElt(e)),t,n,r,o)}function maybeEval(e,t,n){return htmx.config.allowEval?t():(triggerErrorEvent(e,"htmx:evalDisallowedError"),n)}function getHXVarsForElement(e,t,n){return getValuesForElement(e,"hx-vars",!0,n,t)}function getHXValsForElement(e,t,n){return getValuesForElement(e,"hx-vals",!1,n,t)}function getExpressionVars(e,t){return mergeObjects(getHXVarsForElement(e,t),getHXValsForElement(e,t))}function safelySetHeaderValue(e,t,n){if(n!==null)try{e.setRequestHeader(t,n)}catch{e.setRequestHeader(t,encodeURIComponent(n)),e.setRequestHeader(t+"-URI-AutoEncoded","true")}}function getPathFromResponse(e){if(e.responseURL)try{let t=new URL(e.responseURL);return t.pathname+t.search}catch{triggerErrorEvent(getDocument().body,"htmx:badResponseUrl",{url:e.responseURL})}}function hasHeader(e,t){return t.test(e.getAllResponseHeaders())}function ajaxHelper(e,t,n){if(e=e.toLowerCase(),n){if(n instanceof Element||typeof n=="string")return issueAjaxRequest(e,t,null,null,{targetOverride:resolveTarget(n)||DUMMY_ELT,returnPromise:!0});{let r=resolveTarget(n.target);return(n.target&&!r||n.source&&!r&&!resolveTarget(n.source))&&(r=DUMMY_ELT),issueAjaxRequest(e,t,resolveTarget(n.source),n.event,{handler:n.handler,headers:n.headers,values:n.values,targetOverride:r,
5swapOverride:n.swap,select:n.select,returnPromise:!0})}}else return issueAjaxRequest(e,t,null,null,{returnPromise:!0})}function hierarchyForElt(e){let t=[];for(;e;)t.push(e),e=e.parentElement;return t}function verifyPath(e,t,n){let r=new URL(t,location.protocol!=="about:"?location.href:window.origin),i=(location.protocol!=="about:"?location.origin:window.origin)===r.origin;return htmx.config.selfRequestsOnly&&!i?!1:triggerEvent(e,"htmx:validateUrl",mergeObjects({url:r,sameHost:i},n))}function formDataFromObject(e){if(e instanceof FormData)return e;let t=new FormData;for(let n in e)e.hasOwnProperty(n)&&(e[n]&&typeof e[n].forEach=="function"?e[n].forEach(function(r){t.append(n,r)}):typeof e[n]=="object"&&!(e[n]instanceof Blob)?t.append(n,JSON.stringify(e[n])):t.append(n,e[n]));return t}function formDataArrayProxy(e,t,n){return new Proxy(n,{get:function(r,o){return typeof o=="number"?r[o]:o==="length"?r.length:o==="push"?function(i){r.push(i),e.append(t,i)}:typeof r[o]=="function"?function(){r[o].apply(r,arguments),e.delete(t),r.forEach(function(i){e.append(t,i)})}:r[o]&&r[o].length===1?r[o][0]:r[o]},set:function(r,o,i){return r[o]=i,e.delete(t),r.forEach(function(s){e.append(t,s)}),!0}})}function formDataProxy(e){return new Proxy(e,{get:function(t,n){if(typeof n=="symbol"){let o=Reflect.get(t,n);return typeof o=="function"?function(){return o.apply(e,arguments)}:o}if(n==="toJSON")return()=>Object.fromEntries(e);if(n in t&&typeof t[n]=="function")return function(){return e[n].apply(e,arguments)};let r=e.getAll(n);if(r.length!==0)return r.length===1?r[0]:formDataArrayProxy(t,n,r)},set:function(t,n,r){return typeof n!="string"?!1:(t.delete(n),r&&typeof r.forEach=="function"?r.forEach(function(o){t.append(n,o)}):typeof r=="object"&&!(r instanceof Blob)?t.append(n,JSON.stringify(r)):t.append(n,r),!0)},deleteProperty:function(t,n){return typeof n=="string"&&t.delete(n),!0},ownKeys:function(t){return Reflect.ownKeys(Object.fromEntries(t))},getOwnPropertyDescriptor:function(t,n){return Reflect.getOwnPropertyDescriptor(Object.fromEntries(t),n)}})}function issueAjaxRequest(e,t,n,r,o,i){let s=null,a=null;if(o=o!=null?o:{},o.returnPromise&&typeof Promise!="undefined")var c=new Promise(function(I,L){s=I,a=L});n==null&&(n=getDocument().body);let u=o.handler||handleAjaxResponse,l=o.select||null;if(!bodyContains(n))return maybeCall(s),c;let f=o.targetOverride||asElement(getTarget(n));if(f==null||f==DUMMY_ELT)return triggerErrorEvent(n,"htmx:targetError",{target:getClosestAttributeValue(n,"hx-target")}),maybeCall(a),c;let d=getInternalData(n),p=d.lastButtonClicked;if(p){let I=getRawAttribute(p,"formaction");I!=null&&(t=I);let L=getRawAttribute(p,"formmethod");if(L!=null)if(VERBS.includes(L.toLowerCase()))e=L;else return maybeCall(s),c}let g=getClosestAttributeValue(n,"hx-confirm");if(i===void 0&&triggerEvent(n,"htmx:confirm",{target:f,elt:n,path:t,verb:e,triggeringEvent:r,etc:o,issueRequest:function(he){return issueAjaxRequest(e,t,n,r,o,!!he)},question:g})===!1)return maybeCall(s),c;let x=n,m=getClosestAttributeValue(n,"hx-sync"),E=null,y=!1;if(m){let I=m.split(":"),L=I[0].trim();if(L==="this"?x=findThisElement(n,"hx-sync"):x=asElement(querySelectorExt(n,L)),m=(I[1]||"drop").trim(),d=getInternalData(x),m==="drop"&&d.xhr&&d.abortable!==!0)return maybeCall(s),c;if(m==="abort"){if(d.xhr)return maybeCall(s),c;y=!0}else m==="replace"?triggerEvent(x,"htmx:abort"):m.indexOf("queue")===0&&(E=(m.split(" ")[1]||"last").trim())}if(d.xhr)if(d.abortable)triggerEvent(x,"htmx:abort");else{if(E==null){if(r){let I=getInternalData(r);I&&I.triggerSpec&&I.triggerSpec.queue&&(E=I.triggerSpec.queue)}E==null&&(E="last")}return d.queuedRequests==null&&(d.queuedRequests=[]),E==="first"&&d.queuedRequests.length===0?d.queuedRequests.push(function(){issueAjaxRequest(e,t,n,r,o)}):E==="all"?d.queuedRequests.push(function(){issueAjaxRequest(e,t,n,r,o)}):E==="last"&&(d.queuedRequests=[],d.queuedRequests.push(function(){issueAjaxRequest(e,t,n,r,o)})),maybeCall(s),c}let v=new XMLHttpRequest;d.xhr=v,d.abortable=y;let T=function(){d.xhr=null,d.abortable=!1,d.queuedRequests!=null&&d.queuedRequests.length>0&&d.queuedRequests.shift()()},Z=getClosestAttributeValue(n,"hx-prompt");if(Z){var Q=prompt(Z);if(Q===null||!triggerEvent(n,"htmx:prompt",{prompt:Q,target:f}))return maybeCall(s),T(),c}if(g&&!i&&!confirm(g))return maybeCall(s),T(),c;let b=getHeaders(n,f,Q);e!=="get"&&!usesFormData(n)&&(b["Content-Type"]="application/x-www-form-urlencoded"),o.headers&&(b=mergeObjects(b,o.headers));let N=getInputValues(n,e),H=N.errors,ie=N.formData;o.values&&overrideFormData(ie,formDataFromObject(o.values));let Gc=formDataFromObject(getExpressionVars(n,r)),zn=overrideFormData(ie,Gc),ke=filterValues(zn,n);htmx.config.getCacheBusterParam&&e==="get"&&ke.set("org.htmx.cache-buster",getRawAttribute(f,"id")||"true"),(t==null||t==="")&&(t=location.href);let Yn=getValuesForElement(n,"hx-request"),ii=getInternalData(n).boosted,jt=htmx.config.methodsThatUseUrlParams.indexOf(e)>=0,W={boosted:ii,useUrlParams:jt,formData:ke,parameters:formDataProxy(ke),unfilteredFormData:zn,unfilteredParameters:formDataProxy(zn),headers:b,elt:n,target:f,verb:e,errors:H,withCredentials:o.credentials||Yn.credentials||htmx.config.withCredentials,timeout:o.timeout||Yn.timeout||htmx.config.timeout,path:t,triggeringEvent:r};
5if(!triggerEvent(n,"htmx:configRequest",W))return maybeCall(s),T(),c;if(t=W.path,e=W.verb,b=W.headers,ke=formDataFromObject(W.parameters),H=W.errors,jt=W.useUrlParams,H&&H.length>0)return triggerEvent(n,"htmx:validation:halted",W),maybeCall(s),T(),c;let si=t.split("#"),zc=si[0],Xn=si[1],ge=t;if(jt&&(ge=zc,!ke.keys().next().done&&(ge.indexOf("?")<0?ge+="?":ge+="&",ge+=urlEncode(ke),Xn&&(ge+="#"+Xn))),!verifyPath(n,ge,W))return triggerErrorEvent(n,"htmx:invalidPath",W),maybeCall(a),T(),c;if(v.open(e.toUpperCase(),ge,!0),v.overrideMimeType("text/html"),v.withCredentials=W.withCredentials,v.timeout=W.timeout,!Yn.noHeaders){for(let I in b)if(b.hasOwnProperty(I)){let L=b[I];safelySetHeaderValue(v,I,L)}}let F={xhr:v,target:f,requestConfig:W,etc:o,boosted:ii,select:l,pathInfo:{requestPath:t,finalRequestPath:ge,responsePath:null,anchor:Xn}};if(v.onload=function(){try{let I=hierarchyForElt(n);if(F.pathInfo.responsePath=getPathFromResponse(v),u(n,F),F.keepIndicators!==!0&&removeRequestIndicators(Vt,Wt),triggerEvent(n,"htmx:afterRequest",F),triggerEvent(n,"htmx:afterOnLoad",F),!bodyContains(n)){let L=null;for(;I.length>0&&L==null;){let he=I.shift();bodyContains(he)&&(L=he)}L&&(triggerEvent(L,"htmx:afterRequest",F),triggerEvent(L,"htmx:afterOnLoad",F))}maybeCall(s)}catch(I){throw triggerErrorEvent(n,"htmx:onLoadError",mergeObjects({error:I},F)),I}finally{T()}},v.onerror=function(){removeRequestIndicators(Vt,Wt),triggerErrorEvent(n,"htmx:afterRequest",F),triggerErrorEvent(n,"htmx:sendError",F),maybeCall(a),T()},v.onabort=function(){removeRequestIndicators(Vt,Wt),triggerErrorEvent(n,"htmx:afterRequest",F),triggerErrorEvent(n,"htmx:sendAbort",F),maybeCall(a),T()},v.ontimeout=function(){removeRequestIndicators(Vt,Wt),triggerErrorEvent(n,"htmx:afterRequest",F),triggerErrorEvent(n,"htmx:timeout",F),maybeCall(a),T()},!triggerEvent(n,"htmx:beforeRequest",F))return maybeCall(s),T(),c;var Vt=addRequestIndicatorClasses(n),Wt=disableElements(n);forEach(["loadstart","loadend","progress","abort"],function(I){forEach([v,v.upload],function(L){L.addEventListener(I,function(he){triggerEvent(n,"htmx:xhr:"+I,{lengthComputable:he.lengthComputable,loaded:he.loaded,total:he.total})})})}),triggerEvent(n,"htmx:beforeSend",F);let Yc=jt?null:encodeParamsForBody(v,n,ke);return v.send(Yc),c}function determineHistoryUpdates(e,t){let n=t.xhr,r=null,o=null;if(hasHeader(n,/HX-Push:/i)?(r=n.getResponseHeader("HX-Push"),o="push"):hasHeader(n,/HX-Push-Url:/i)?(r=n.getResponseHeader("HX-Push-Url"),o="push"):hasHeader(n,/HX-Replace-Url:/i)&&(r=n.getResponseHeader("HX-Replace-Url"),o="replace"),r)return r==="false"?{}:{type:o,path:r};let i=t.pathInfo.finalRequestPath,s=t.pathInfo.responsePath,a=getClosestAttributeValue(e,"hx-push-url"),c=getClosestAttributeValue(e,"hx-replace-url"),u=getInternalData(e).boosted,l=null,f=null;return a?(l="push",f=a):c?(l="replace",f=c):u&&(l="push",f=s||i),f?f==="false"?{}:(f==="true"&&(f=s||i),t.pathInfo.anchor&&f.indexOf("#")===-1&&(f=f+"#"+t.pathInfo.anchor),{type:l,path:f}):{}}function codeMatches(e,t){var n=new RegExp(e.code);return n.test(t.toString(10))}function resolveResponseHandling(e){for(var t=0;t<htmx.config.responseHandling.length;t++){var n=htmx.config.responseHandling[t];if(codeMatches(n,e.status))return n}return{swap:!1}}function handleTitle(e){if(e){let t=find("title");t?t.textContent=e:window.document.title=e}}function resolveRetarget(e,t){if(t==="this")return e;let n=asElement(querySelectorExt(e,t));if(n==null)throw triggerErrorEvent(e,"htmx:targetError",{target:t}),new Error(`Invalid re-target ${t}`);return n}function handleAjaxResponse(e,t){let n=t.xhr,r=t.target,o=t.etc,i=t.select;if(!triggerEvent(e,"htmx:beforeOnLoad",t))return;if(hasHeader(n,/HX-Trigger:/i)&&handleTriggerHeader(n,"HX-Trigger",e),hasHeader(n,/HX-Location:/i)){saveCurrentPageToHistory();let y=n.getResponseHeader("HX-Location");var s;y.indexOf("{")===0&&(s=parseJSON(y),y=s.path,delete s.path),ajaxHelper("get",y,s).then(function(){pushUrlIntoHistory(y)});return}let a=hasHeader(n,/HX-Refresh:/i)&&n.getResponseHeader("HX-Refresh")==="true";if(hasHeader(n,/HX-Redirect:/i)){t.keepIndicators=!0,htmx.location.href=n.getResponseHeader("HX-Redirect"),a&&htmx.location.reload();return}if(a){t.keepIndicators=!0,htmx.location.reload();return}let c=determineHistoryUpdates(e,t),u=resolveResponseHandling(n),l=u.swap,f=!!u.error,d=htmx.config.ignoreTitle||u.ignoreTitle,p=u.select;u.target&&(t.target=resolveRetarget(e,u.target));var g=o.swapOverride;g==null&&u.swapOverride&&(g=u.swapOverride),hasHeader(n,/HX-Retarget:/i)&&(t.target=resolveRetarget(e,n.getResponseHeader("HX-Retarget"))),hasHeader(n,/HX-Reswap:/i)&&(g=n.getResponseHeader("HX-Reswap"));var x=n.response,m=mergeObjects({shouldSwap:l,serverResponse:x,isError:f,ignoreTitle:d,selectOverride:p,swapOverride:g},t);if(!(u.event&&!triggerEvent(r,u.event,m))&&triggerEvent(r,"htmx:beforeSwap",m)){if(r=m.target,x=m.serverResponse,f=m.isError,d=m.ignoreTitle,p=m.selectOverride,g=m.swapOverride,t.target=r,t.failed=f,t.successful=!f,m.shouldSwap){n.status===286&&cancelPolling(e),withExtensions(e,function(T){x=T.transformResponse(x,n,e)}),c.type&&saveCurrentPageToHistory();var E=getSwapSpecification(e,g);E.hasOwnProperty("ignoreTitle")||(E.ignoreTitle=d),r.classList.add(htmx.config.swappingClass),i&&(p=i),hasHeader(n,/HX-Reselect:/i)&&(p=n.getResponseHeader("HX-Reselect"));let y=getClosestAttributeValue(e,"hx-select-oob"),v=getClosestAttributeValue(e,"hx-select");
5swap(r,x,E,{select:p==="unset"?null:p||v,selectOOB:y,eventInfo:t,anchor:t.pathInfo.anchor,contextElement:e,afterSwapCallback:function(){if(hasHeader(n,/HX-Trigger-After-Swap:/i)){let T=e;bodyContains(e)||(T=getDocument().body),handleTriggerHeader(n,"HX-Trigger-After-Swap",T)}},afterSettleCallback:function(){if(hasHeader(n,/HX-Trigger-After-Settle:/i)){let T=e;bodyContains(e)||(T=getDocument().body),handleTriggerHeader(n,"HX-Trigger-After-Settle",T)}},beforeSwapCallback:function(){c.type&&(triggerEvent(getDocument().body,"htmx:beforeHistoryUpdate",mergeObjects({history:c},t)),c.type==="push"?(pushUrlIntoHistory(c.path),triggerEvent(getDocument().body,"htmx:pushedIntoHistory",{path:c.path})):(replaceUrlInHistory(c.path),triggerEvent(getDocument().body,"htmx:replacedInHistory",{path:c.path})))}})}f&&triggerErrorEvent(e,"htmx:responseError",mergeObjects({error:"Response Status Error Code "+n.status+" from "+t.pathInfo.requestPath},t))}}let extensions={};function extensionBase(){return{init:function(e){return null},getSelectors:function(){return null},onEvent:function(e,t){return!0},transformResponse:function(e,t,n){return e},isInlineSwap:function(e){return!1},handleSwap:function(e,t,n,r){return!1},encodeParameters:function(e,t,n){return null}}}function defineExtension(e,t){t.init&&t.init(internalAPI),extensions[e]=mergeObjects(extensionBase(),t)}function removeExtension(e){delete extensions[e]}function getExtensions(e,t,n){if(t==null&&(t=[]),e==null)return t;n==null&&(n=[]);let r=getAttributeValue(e,"hx-ext");return r&&forEach(r.split(","),function(o){if(o=o.replace(/ /g,""),o.slice(0,7)=="ignore:"){n.push(o.slice(7));return}if(n.indexOf(o)<0){let i=extensions[o];i&&t.indexOf(i)<0&&t.push(i)}}),getExtensions(asElement(parentElt(e)),t,n)}var isReady=!1;getDocument().addEventListener("DOMContentLoaded",function(){isReady=!0});function ready(e){isReady||getDocument().readyState==="complete"?e():getDocument().addEventListener("DOMContentLoaded",e)}function insertIndicatorStyles(){if(htmx.config.includeIndicatorStyles!==!1){let e=htmx.config.inlineStyleNonce?` nonce="${htmx.config.inlineStyleNonce}"`:"",t=htmx.config.indicatorClass,n=htmx.config.requestClass;getDocument().head.insertAdjacentHTML("beforeend",`<style${e}>.${t}{opacity:0;visibility: hidden} .${n} .${t}, .${n}.${t}{opacity:1;visibility: visible;transition: opacity 200ms ease-in}</style>`)}}function getMetaConfig(){let e=getDocument().querySelector('meta[name="htmx-config"]');return e?parseJSON(e.content):null}function mergeMetaConfig(){let e=getMetaConfig();e&&(htmx.config=mergeObjects(htmx.config,e))}return ready(function(){mergeMetaConfig(),insertIndicatorStyles();let e=getDocument().body;processNode(e);let t=getDocument().querySelectorAll("[hx-trigger='restored'],[data-hx-trigger='restored']");e.addEventListener("htmx:abort",function(r){let o=r.target,i=getInternalData(o);i&&i.xhr&&i.xhr.abort()});let n=window.onpopstate?window.onpopstate.bind(window):null;window.onpopstate=function(r){r.state&&r.state.htmx?(restoreHistory(),forEach(t,function(o){triggerEvent(o,"htmx:restored",{document:getDocument(),triggerEvent})})):n&&n(r)},getWindow().setTimeout(function(){triggerEvent(e,"htmx:load",{}),e=null},0)}),htmx})(),Ae=af;var _=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;var S=globalThis;var ae="10.20.0";function Ve(){return We(S),S}function We(e){let t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||ae,t[ae]=t[ae]||{}}function ne(e,t,n=S){let r=n.__SENTRY__=n.__SENTRY__||{},o=r[ae]=r[ae]||{};return o[e]||(o[e]=t())}var Br=["debug","info","warn","error","log","assert","trace"],cf="Sentry Logger ",ct={};function X(e){if(!("console"in S))return e();let t=S.console,n={},r=Object.keys(ct);r.forEach(o=>{let i=ct[o];n[o]=t[o],t[o]=i});try{return e()}finally{r.forEach(o=>{t[o]=n[o]})}}function uf(){$r().enabled=!0}function lf(){$r().enabled=!1}function Ms(){return $r().enabled}function ff(...e){Ur("log",...e)}function df(...e){Ur("warn",...e)}function pf(...e){Ur("error",...e)}function Ur(e,...t){_&&Ms()&&X(()=>{S.console[e](`${cf}[${e}]:`,...t)})}function $r(){return _?ne("loggerSettings",()=>({enabled:!1})):{enabled:!1}}var h={enable:uf,disable:lf,isEnabled:Ms,log:ff,warn:df,error:pf};var ks=/\(error: (.*)\)/,Ps=/captureMessage|captureException/;function pn(...e){let t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,o=0)=>{let i=[],s=n.split(` 6`);for(let a=r;a<s.length;a++){let c=s[a];c.length>1024&&(c=c.slice(0,1024));let u=ks.test(c)?c.replace(ks,"$1"):c;if(!u.match(/\S*Error: /)){for(let l of t){let f=l(u);if(f){i.push(f);break}}if(i.length>=50+o)break}}return Hs(i.slice(o))}}function jr(e){return Array.isArray(e)?pn(...e):e}function Hs(e){if(!e.length)return[];let t=Array.from(e);return/sentryWrapped/.test(dn(t).function||"")&&t.pop(),t.reverse(),Ps.test(dn(t).function||"")&&(t.pop(),Ps.test(dn(t).function||"")&&t.pop()),t.slice(0,50).map(n=>({...n,filename:n.filename||dn(t).filename,function:n.function||"?"}))}function dn(e){return e[e.length-1]||{}}var qr="<anonymous>";function K(e){try{return!e||typeof e!="function"?qr:e.name||qr}catch{return qr}}function mn(e){let t=e.exception;if(t){let n=[];
6try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}var gn={},Fs={};function U(e,t){gn[e]=gn[e]||[],gn[e].push(t)}function $(e,t){if(!Fs[e]){Fs[e]=!0;try{t()}catch(n){_&&h.error(`Error while instrumenting ${e}`,n)}}}function D(e,t){let n=e&&gn[e];if(n)for(let r of n)try{r(t)}catch(o){_&&h.error(`Error while triggering instrumentation handler. 7Type: ${e} 8Name: ${K(r)} 9Error:`,o)}}var Vr=null;function Wr(e){let t="error";U(t,e),$(t,mf)}function mf(){Vr=S.onerror,S.onerror=function(e,t,n,r,o){return D("error",{column:r,error:o,line:n,msg:e,url:t}),Vr?Vr.apply(this,arguments):!1},S.onerror.__SENTRY_INSTRUMENTED__=!0}var Gr=null;function zr(e){let t="unhandledrejection";U(t,e),$(t,gf)}function gf(){Gr=S.onunhandledrejection,S.onunhandledrejection=function(e){return D("unhandledrejection",e),Gr?Gr.apply(this,arguments):!0},S.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}var Bs=Object.prototype.toString;function Ge(e){switch(Bs.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return re(e,Error)}}function ut(e,t){return Bs.call(e)===`[object ${t}]`}function hn(e){return ut(e,"ErrorEvent")}function _n(e){return ut(e,"DOMError")}function Yr(e){return ut(e,"DOMException")}function q(e){return ut(e,"String")}function lt(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function we(e){return e===null||lt(e)||typeof e!="object"&&typeof e!="function"}function Ee(e){return ut(e,"Object")}function ze(e){return typeof Event!="undefined"&&re(e,Event)}function Xr(e){return typeof Element!="undefined"&&re(e,Element)}function Kr(e){return ut(e,"RegExp")}function ce(e){return!!(e!=null&&e.then&&typeof e.then=="function")}function Jr(e){return Ee(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function re(e,t){try{return e instanceof t}catch{return!1}}function wt(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function Us(e){return typeof Request!="undefined"&&re(e,Request)}var Zr=S,hf=80;function Ct(e,t={}){if(!e)return"<unknown>";try{let n=e,r=5,o=[],i=0,s=0,a=" > ",c=a.length,u,l=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||hf;
9for(;n&&i++<r&&(u=_f(n,l),!(u==="html"||i>1&&s+o.length*c+u.length>=f));)o.push(u),s+=u.length,n=n.parentNode;return o.reverse().join(a)}catch{return"<unknown>"}}function _f(e,t){let n=e,r=[];if(!(n!=null&&n.tagName))return"";if(Zr.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());let o=t!=null&&t.length?t.filter(s=>n.getAttribute(s)).map(s=>[s,n.getAttribute(s)]):null;if(o!=null&&o.length)o.forEach(s=>{r.push(`[${s[0]}="${s[1]}"]`)});else{n.id&&r.push(`#${n.id}`);let s=n.className;if(s&&q(s)){let a=s.split(/\s+/);for(let c of a)r.push(`.${c}`)}}let i=["aria-label","type","name","title","alt"];for(let s of i){let a=n.getAttribute(s);a&&r.push(`[${s}="${a}"]`)}return r.join("")}function Ye(){try{return Zr.document.location.href}catch{return""}}function Qr(e){if(!Zr.HTMLElement)return null;let t=e,n=5;for(let r=0;r<n;r++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}function Ce(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function En(e,t){if(!Array.isArray(e))return"";let n=[];for(let r=0;r<e.length;r++){let o=e[r];try{wt(o)?n.push("[VueViewModel]"):n.push(String(o))}catch{n.push("[value cannot be serialized]")}}return n.join(t)}function ft(e,t,n=!1){return q(e)?Kr(t)?t.test(e):q(t)?n?e===t:e.includes(t):!1:!1}function dt(e,t=[],n=!1){return t.some(r=>ft(e,r,n))}function M(e,t,n){if(!(t in e))return;let r=e[t];if(typeof r!="function")return;let o=n(r);typeof o=="function"&&yn(o,r);try{e[t]=o}catch{_&&h.log(`Failed to replace method "${t}" in object`,e)}}function G(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{_&&h.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function yn(e,t){try{let n=t.prototype||{};e.prototype=t.prototype=n,G(e,"__sentry_original__",t)}catch{}}function Xe(e){return e.__sentry_original__}function Sn(e){if(Ge(e))return{message:e.message,name:e.name,stack:e.stack,...qs(e)};if(ze(e)){let t={type:e.type,target:$s(e.target),currentTarget:$s(e.currentTarget),...qs(e)};return typeof CustomEvent!="undefined"&&re(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function $s(e){try{return Xr(e)?Ct(e):Object.prototype.toString.call(e)}catch{return"<unknown>"}}function qs(e){if(typeof e=="object"&&e!==null){let t={};for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function eo(e,t=40){let n=Object.keys(Sn(e));n.sort();let r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return Ce(r,t);for(let o=n.length;o>0;o--){let i=n.slice(0,o).join(", ");if(!(i.length>t))return o===n.length?i:Ce(i,t)}return""}function Ef(){let e=S;return e.crypto||e.msCrypto}function k(e=Ef()){let t=()=>Math.random()*16;try{if(e!=null&&e.randomUUID)return e.randomUUID().replace(/-/g,"");e!=null&&e.getRandomValues&&(t=()=>{let n=new Uint8Array(1);return e.getRandomValues(n),n[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,n=>(n^(t()&15)>>n/4).toString(16))}function js(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}function ue(e){let{message:t,event_id:n}=e;if(t)return t;let r=js(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function pt(e,t,n){let r=e.exception=e.exception||{},o=r.values=r.values||[],i=o[0]=o[0]||{};i.value||(i.value=t||""),i.type||(i.type=n||"Error")}function le(e,t){let n=js(e);if(!n)return;let r={type:"generic",handled:!0},o=n.mechanism;if(n.mechanism={...r,...o,...t},t&&"data"in t){let i={...o==null?void 0:o.data,...t.data};n.mechanism.data=i}}function bn(e){if(yf(e))return!0;try{G(e,"__sentry_captured__",!0)}catch{}return!1}function yf(e){try{return e.__sentry_captured__}catch{}}var Vs=1e3;function fe(){return Date.now()/Vs}function Sf(){let{performance:e}=S;if(!(e!=null&&e.now)||!e.timeOrigin)return fe;let t=e.timeOrigin;return()=>(t+e.now())/Vs}var xn;function j(){return(xn!=null?xn:xn=Sf())()}function Ws(e){let t=j(),n={sid:k(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>bf(n)};return e&&ye(n,e),n}function ye(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||j(),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:k()),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{let n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),t
9ypeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Gs(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),ye(e,n)}function bf(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 Re(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;let r={...e};for(let o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=Re(r[o],t[o],n-1));return r}function to(){return k()}function vn(){return k().substring(16)}var no="_sentrySpan";function ro(e,t){t?G(e,no,t):delete e[no]}function oo(e){return e[no]}var xf=100,V=class e{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:to(),sampleRand:Math.random()}}clone(){let t=new e;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},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,ro(t,oo(this)),t}setClient(t){this._client=t}setLastEventId(t){this._lastEventId=t}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&ye(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},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;let n=typeof t=="function"?t(this):t,r=n instanceof e?n.getScopeData():Ee(n)?t:void 0,{tags:o,extra:i,user:s,contexts:a,level:c,fingerprint:u=[],propagationContext:l}=r||{};return this._tags={...this._tags,...o},this._extra={...this._extra,...i},this._contexts={...this._contexts,...a},s&&Object.keys(s).length&&(this._user=s),c&&(this._level=c),u.length&&(this._fingerprint=u),l&&(this._propagationContext=l),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,ro(this,void 0),this._attachments=[],this.setPropagationContext({traceId:to(),sampleRand:Math.random()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){var i;let r=typeof n=="number"?n:xf;if(r<=0)return this;let o={timestamp:fe(),...t,message:t.message?Ce(t.message,2048):t.message};return this._breadcrumbs.push(o),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),(i=this._client)==null||i.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:oo(this)}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=Re(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){let r=(n==null?void 0:n.event_id)||k();if(!this._client)return _&&h.warn("No client configured on scope - will not capture exception!"),r;let o=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:o,...n,event_id:r},this),r}captureMessage(t,n,r){let o=(r==null?void 0:r.event_id)||k();if(!this._client)return _&&h.warn("No client configured on scope - will not capture message!"),o;let i=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:i,...r,event_id:o},this),o}captureEvent(t,n){let r=(n==null?void 0:n.event_id)||k();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(_&&h.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEac
9h(t=>{t(this)}),this._notifyingListeners=!1)}};function zs(){return ne("defaultCurrentScope",()=>new V)}function Ys(){return ne("defaultIsolationScope",()=>new V)}var io=class{constructor(t,n){let r;t?r=t:r=new V;let o;n?o=n:o=new V,this._stack=[{scope:r}],this._isolationScope=o}withScope(t){let n=this._pushScope(),r;try{r=t(n)}catch(o){throw this._popScope(),o}return ce(r)?r.then(o=>(this._popScope(),o),o=>{throw this._popScope(),o}):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}};function mt(){let e=Ve(),t=We(e);return t.stack=t.stack||new io(zs(),Ys())}function vf(e){return mt().withScope(e)}function Tf(e,t){let n=mt();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function Xs(e){return mt().withScope(()=>e(mt().getIsolationScope()))}function Ks(){return{withIsolationScope:Xs,withScope:vf,withSetScope:Tf,withSetIsolationScope:(e,t)=>Xs(t),getCurrentScope:()=>mt().getScope(),getIsolationScope:()=>mt().getIsolationScope()}}function Tn(e){let t=We(e);return t.acs?t.acs:Ks()}function z(){let e=Ve();return Tn(e).getCurrentScope()}function de(){let e=Ve();return Tn(e).getIsolationScope()}function In(){return ne("globalScope",()=>new V)}function An(...e){let t=Ve(),n=Tn(t);if(e.length===2){let[r,o]=e;return r?n.withSetScope(r,o):n.withScope(o)}return n.withScope(e[0])}function C(){return z().getClient()}function so(e){let t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:o}=t,i={trace_id:n,span_id:o||vn()};return r&&(i.parent_span_id=r),i}var wn="sentry.source",ao="sentry.sample_rate",Js="sentry.previous_trace_sample_rate",co="sentry.op",uo="sentry.origin";var lo="sentry.profile_id",fo="sentry.exclusive_time";var If="_sentryScope",Af="_sentryIsolationScope";function wf(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}function Cn(e){let t=e;return{scope:t[If],isolationScope:wf(t[Af])}}var Cf="sentry-",Rf=/^sentry-/;function Qs(e){let t=Nf(e);if(!t)return;let n=Object.entries(t).reduce((r,[o,i])=>{if(o.match(Rf)){let s=o.slice(Cf.length);r[s]=i}return r},{});if(Object.keys(n).length>0)return n}function Nf(e){if(!(!e||!q(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{let r=Zs(n);return Object.entries(r).forEach(([o,i])=>{t[o]=i}),t},{}):Zs(e)}function Zs(e){return e.split(",").map(t=>{let n=t.indexOf("=");if(n===-1)return[];let r=t.slice(0,n),o=t.slice(n+1);return[r,o].map(i=>{try{return decodeURIComponent(i.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}var Of=/^o(\d+)\./,Lf=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function Df(e){return e==="http"||e==="https"}function pe(e,t=!1){let{host:n,path:r,pass:o,port:i,projectId:s,protocol:a,publicKey:c}=e;return`${a}://${c}${t&&o?`:${o}`:""}@${n}${i?`:${i}`:""}/${r&&`${r}/`}${s}`}function Mf(e){let t=Lf.exec(e);if(!t){X(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}let[n,r,o="",i="",s="",a=""]=t.slice(1),c="",u=a,l=u.split("/");if(l.length>1&&(c=l.slice(0,-1).join("/"),u=l.pop()),u){let f=u.match(/^\d+/);f&&(u=f[0])}return ea({host:i,pass:o,path:c,projectId:u,port:s,protocol:n,publicKey:r})}function ea(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function kf(e){if(!_)return!0;let{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(h.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?Df(r)?t&&isNaN(parseInt(t,10))?(h.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(h.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(h.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function Pf(e){let t=e.match(Of);return t==null?void 0:t[1]}function ta(e){let t=e.getOptions(),{host:n}=e.getDsn()||{},r;return t.orgId?r=String(t.orgId):n&&(r=Pf(n)),r}function na(e){let t=typeof e=="string"?Mf(e):ea(e);if(!(!t||!kf(t)))return t}function ra(e){if(typeof e=="boolean")return Number(e);let t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}var aa=1,oa=!1;function ca(e){let{spanId:t,traceId:n,isRemote:r}=e.spanContext(),o=r?t:gt(e).parent_span_id,i=Cn(e).scope,s=r?(i==null?void 0:i.getPropagationContext().propagationSpanId)||vn():t;return{parent_span_id:o,span_id:s,trace_id:n}}function Hf(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...o},attributes:i})=>({span_id:t,trace_id:n,sampled:r===aa,attributes:i,...o}))}function ia(e){return typeof e=="number"?sa(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?sa(e.getTime()):j()}function sa(e){return e>9999999999?e/1e3:e}function gt(e){var r;if(Bf(e))return e.getSpanJSON();let{spanId:t,traceId:n}=e.spanContext();if(Ff(e)){let{attributes:o,startTime:i,name:s,endTime:a,status:c,links:u}=e,l="parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?(r=e.parentSpanContext)==null?void 0:r.spanId:void 0;return{span_id:t,trace_id:n,data:o,description:s,parent_span_id:l,start_timestamp:ia(i),timestamp:ia(a)||void 0,status:Uf(c),op:o[co],origin:o[uo],links:Hf(u)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Ff(e){let t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function Bf(e){return typeof e.getSpanJSON=="function"}function ua(e){let{traceFlags:t}=e.spanContext();return t===aa}function Uf(e){if(!(!e||e.code===0))return e.code===1?"ok":e.message||"unknown_error"}var $f="_sentryRootSpan";function Rt(e){return e[$f]||e}function po(){oa||(X(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),oa=!0)}function la(e){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let t=e||((n=C())==null?void 0:n.getOptions());return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function fa(e){h.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function mo(e,t){if(!(t!=null&&t.length)||!e.description)return!1;for(let n of t){if(qf(n)){if(ft(e.description,n))return _&&fa(e),!0;continue}if(!n.name&&!n.op)continue;let r=n.name?ft(e.description,n.name):!0,o=n.op?e.op&&ft(e.op,n.op):!0;if(r&&o)return _&&fa(e),!0}return!1}function da(e,t){let n=t.parent_span_id,r=t.span_id;if(n)for(let o of e)o.parent_span_id===r&&(o.parent_span_id=n)}function qf(e){return typeof e=="string"||e instanceof RegExp}var ht="production";var jf="_frozenDsc";function pa(e,t){let n=t.getOptions(),{publicKey:r}=t.getDsn()||{},o={environment:n.environment||ht,release:n.release,public_key:r,trace_id:e,org_id:ta(t)};return t.emit("createDsc",o),o}function ma(e,t){let n=t.getPropagationContext();return n.dsc||pa(n.traceId,e)}function ga(e){var g,x,m,E;let t=C();if(!t)return{};let n=Rt(e),r=gt(n),o=r.data,i=n.spanContext().traceState,s=(x=(g=i==null?void 0:i.get("sentry.sample_rate"))!=null?g:o[ao])!=null?x:o[Js];function a(y){return(typeof s=="number"||typeof s=="string")&&(y.sample_rate=`${s}`),y}let c=n[jf];if(c)return a(c);let u=i==null?void 0:i.get("sentry.dsc"),l=u&&Qs(u);if(l)return a(l);let f=pa(e.spanContext().traceId,t),d=o[wn],p=r.description;return d!=="url"&&p&&(f.transaction=p),la()&&(f.sampled=String(ua(n)),f.sample_rand=(E=i==null?void 0:i.get("sentry.sample_rand"))!=null?E:(m=Cn(n).scope)==null?void 0:m.getPropagationContext().sampleRand.toString()),a(f),t.emit("createDsc",f,n),f}function J(e,t=100,n=1/0){try{return go("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function Rn(e,t=3,n=100*1024){let r=J(e,t);return zf(r)>n?Rn(e,t-1,n):r}function go(e,t,n=1/0,r=1/0,o=Yf()){let[i,s]=o;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;let a=Vf(e,t);if(!a.startsWith("[object "))return a;
9if(t.__sentry_skip_normalization__)return t;let c=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(c===0)return a.replace("object ","");if(i(t))return"[Circular ~]";let u=t;if(u&&typeof u.toJSON=="function")try{let p=u.toJSON();return go("",p,c-1,r,o)}catch{}let l=Array.isArray(t)?[]:{},f=0,d=Sn(t);for(let p in d){if(!Object.prototype.hasOwnProperty.call(d,p))continue;if(f>=r){l[p]="[MaxProperties ~]";break}let g=d[p];l[p]=go(p,g,c-1,r,o),f++}return s(t),l}function Vf(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global!="undefined"&&t===global)return"[Global]";if(typeof window!="undefined"&&t===window)return"[Window]";if(typeof document!="undefined"&&t===document)return"[Document]";if(wt(t))return"[VueViewModel]";if(Jr(t))return"[SyntheticEvent]";if(typeof t=="number"&&!Number.isFinite(t))return`[${t}]`;if(typeof t=="function")return`[Function: ${K(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;let n=Wf(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Wf(e){let t=Object.getPrototypeOf(e);return t!=null&&t.constructor?t.constructor.name:"null prototype"}function Gf(e){return~-encodeURI(e).split(/%..|./).length}function zf(e){return Gf(JSON.stringify(e))}function Yf(){let 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 oe(e,t=[]){return[e,t]}function ha(e,t){let[n,r]=e;return[n,[...r,t]]}function _o(e,t){let n=e[1];for(let r of n){let o=r[0].type;if(t(r,o))return!0}return!1}function ho(e){let t=We(S);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function _a(e){let[t,n]=e,r=JSON.stringify(t);function o(i){typeof r=="string"?r=typeof i=="string"?r+i:[ho(r),i]:r.push(typeof i=="string"?ho(i):i)}for(let i of n){let[s,a]=i;if(o(` 10${JSON.stringify(s)} 11`),typeof a=="string"||a instanceof Uint8Array)o(a);else{let c;try{c=JSON.stringify(a)}catch{c=JSON.stringify(J(a))}o(c)}}return typeof r=="string"?r:Xf(r)}function Xf(e){let t=e.reduce((o,i)=>o+i.length,0),n=new Uint8Array(t),r=0;for(let o of e)n.set(o,r),r+=o.length;return n}function Ea(e){let t=typeof e.data=="string"?ho(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}var Kf={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",raw_security:"security",log:"log_item",metric:"metric",trace_metric:"metric"};function Eo(e){return Kf[e]}function yo(e){if(!(e!=null&&e.sdk))return;let{name:t,version:n}=e.sdk;return{name:t,version:n}}function ya(e,t,n,r){var i;let o=(i=e.sdkProcessingMetadata)==null?void 0:i.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:pe(r)},...o&&{trace:o}}}function Jf(e,t){var r,o,i,s;if(!t)return e;let 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:[...((o=e.sdk)==null?void 0:o.packages)||[],...t.packages||[]],settings:(i=e.sdk)!=null&&i.settings||t.settings?{...(s=e.sdk)==null?void 0:s.settings,...t.settings}:void 0},e}function Sa(e,t,n,r){let o=yo(n),i={sent_at:new Date().toISOString(),...o&&{sdk:o},...!!r&&t&&{dsn:pe(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return oe(i,[s])}function ba(e,t,n,r){let o=yo(n),i=e.type&&e.type!=="replay_event"?e.type:"event";Jf(e,n==null?void 0:n.sdk);let s=ya(e,o,r,t);return delete e.sdkProcessingMetadata,oe(s,[[{type:i},e]])}var So=0,xa=1,va=2;function Ne(e){return new Nt(t=>{t(e)})}function Ke(e){return new Nt((t,n)=>{n(e)})}var Nt=class e{constructor(t){this._state=So,this._handlers=[],this._runExecutor(t)}then(t,n){return new e((r,o)=>{this._handlers.push([!1,i=>
11{if(!t)r(i);else try{r(t(i))}catch(s){o(s)}},i=>{if(!n)o(i);else try{r(n(i))}catch(s){o(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new e((n,r)=>{let o,i;return this.then(s=>{i=!1,o=s,t&&t()},s=>{i=!0,o=s,t&&t()}).then(()=>{if(i){r(o);return}n(o)})})}_executeHandlers(){if(this._state===So)return;let t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===xa&&n[1](this._value),this._state===va&&n[2](this._value),n[0]=!0)})}_runExecutor(t){let n=(i,s)=>{if(this._state===So){if(ce(s)){s.then(r,o);return}this._state=i,this._value=s,this._executeHandlers()}},r=i=>{n(xa,i)},o=i=>{n(va,i)};try{t(r,o)}catch(i){o(i)}}};function Ta(e,t,n,r=0){try{let o=bo(t,n,e,r);return ce(o)?o:Ne(o)}catch(o){return Ke(o)}}function bo(e,t,n,r){let o=n[r];if(!e||!o)return e;let i=o({...e},t);return _&&i===null&&h.log(`Event processor "${o.id||"?"}" dropped event`),ce(i)?i.then(s=>bo(s,t,n,r+1)):bo(i,t,n,r+1)}function Ia(e,t){let{fingerprint:n,span:r,breadcrumbs:o,sdkProcessingMetadata:i}=t;Zf(e,t),r&&td(e,r),nd(e,n),Qf(e,o),ed(e,i)}function xo(e,t){let{extra:n,tags:r,user:o,contexts:i,level:s,sdkProcessingMetadata:a,breadcrumbs:c,fingerprint:u,eventProcessors:l,attachments:f,propagationContext:d,transactionName:p,span:g}=t;Nn(e,"extra",n),Nn(e,"tags",r),Nn(e,"user",o),Nn(e,"contexts",i),e.sdkProcessingMetadata=Re(e.sdkProcessingMetadata,a,2),s&&(e.level=s),p&&(e.transactionName=p),g&&(e.span=g),c.length&&(e.breadcrumbs=[...e.breadcrumbs,...c]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),l.length&&(e.eventProcessors=[...e.eventProcessors,...l]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...d}}function Nn(e,t,n){e[t]=Re(e[t],n,1)}function Zf(e,t){let{extra:n,tags:r,user:o,contexts:i,level:s,transactionName:a}=t;Object.keys(n).length&&(e.extra={...n,...e.extra}),Object.keys(r).length&&(e.tags={...r,...e.tags}),Object.keys(o).length&&(e.user={...o,...e.user}),Object.keys(i).length&&(e.contexts={...i,...e.contexts}),s&&(e.level=s),a&&e.type!=="transaction"&&(e.transaction=a)}function Qf(e,t){let n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function ed(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function td(e,t){e.contexts={trace:ca(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:ga(t),...e.sdkProcessingMetadata};let n=Rt(t),r=gt(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function nd(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}var Se,Aa,wa,Oe;function Ca(e){let t=S._sentryDebugIds,n=S._debugIds;if(!t&&!n)return{};let r=t?Object.keys(t):[],o=n?Object.keys(n):[];if(Oe&&r.length===Aa&&o.length===wa)return Oe;Aa=r.length,wa=o.length,Oe={},Se||(Se={});let i=(s,a)=>{for(let c of s){let u=a[c],l=Se==null?void 0:Se[c];if(l&&Oe&&u)Oe[l[0]]=u,Se&&(Se[c]=[l[0],u]);else if(u){let f=e(c);for(let d=f.length-1;d>=0;d--){let p=f[d],g=p==null?void 0:p.filename;if(g&&Oe&&Se){Oe[g]=u,Se[c]=[g,u];break}}}}};return t&&i(r,t),n&&i(o,n),Oe}function Ra(e,t,n,r,o,i){let{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,c={...t,event_id:t.event_id||n.event_id||k(),timestamp:t.timestamp||fe()},u=n.integrations||e.integrations.map(m=>m.name);rd(c,e),sd(c,u),o&&o.emit("applyFrameMetadata",t),t.type===void 0&&od(c,e.stackParser);let l=cd(r,n.captureContext);n.mechanism&&le(c,n.mechanism);let f=o?o.getEventProcessors():[],d=In().getScopeData();if(i){let m=i.getScopeData();xo(d,m)}if(l){let m=l.getScopeData();xo(d,m)}let p=[...n.attachments||[],...d.attachments];p.length&&(n.attachments=p),Ia(c,d);let g=[...f,...d.eventProcessors];return Ta(g,c,n).then(m=>(m&&id(m),typeof s=="number"&&s>0?ad(m,s,a):m))}function rd(e,t){let{environment:n,release:r,dist:o,maxValueLength:i=250}=t;e.environment=e.environment||n||ht,!e.release&&r&&(e.release=r),!e.dist&&o&&(e.dist=o);let s=e.request;s!=null&&s.url&&(s.url=Ce(s.url,i))}function od(e,t){var r,o;let n=Ca(t);(o=(r=e.exception)==null?void 0:r.values)==null||o.forEach(i=>
11{var s,a;(a=(s=i.stacktrace)==null?void 0:s.frames)==null||a.forEach(c=>{c.filename&&(c.debug_id=n[c.filename])})})}function id(e){var r,o;let t={};if((o=(r=e.exception)==null?void 0:r.values)==null||o.forEach(i=>{var s,a;(a=(s=i.stacktrace)==null?void 0:s.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||[];let n=e.debug_meta.images;Object.entries(t).forEach(([i,s])=>{n.push({type:"sourcemap",code_file:i,debug_id:s})})}function sd(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function ad(e,t,n){var o,i;if(!e)return null;let r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:J(s.data,t,n)}}))},...e.user&&{user:J(e.user,t,n)},...e.contexts&&{contexts:J(e.contexts,t,n)},...e.extra&&{extra:J(e.extra,t,n)}};return(o=e.contexts)!=null&&o.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=J(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:J(s.data,t,n)}}))),(i=e.contexts)!=null&&i.flags&&r.contexts&&(r.contexts.flags=J(e.contexts.flags,3,n)),r}function cd(e,t){if(!t)return e;let n=e?e.clone():new V;return n.update(t),n}function Na(e){if(e)return ud(e)?{captureContext:e}:fd(e)?{captureContext:e}:e}function ud(e){return e instanceof V||typeof e=="function"}var ld=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function fd(e){return Object.keys(e).some(t=>ld.includes(t))}function Je(e,t){return z().captureException(e,Na(t))}function Ot(e,t){return z().captureEvent(e,t)}function Lt(e){let t=de(),n=z(),{userAgent:r}=S.navigator||{},o=Ws({user:n.getUser()||t.getUser(),...r&&{userAgent:r},...e}),i=t.getSession();return(i==null?void 0:i.status)==="ok"&&ye(i,{status:"exited"}),On(),t.setSession(o),o}function On(){let e=de(),n=z().getSession()||e.getSession();n&&Gs(n),La(),e.setSession()}function La(){let e=de(),t=C(),n=e.getSession();n&&t&&t.captureSession(n)}function Dt(e=!1){if(e){On();return}La()}var dd="7";function pd(e){let t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function md(e){return`${pd(e)}${e.projectId}/envelope/`}function gd(e,t){let n={sentry_version:dd};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function Da(e,t,n){return t||`${md(e)}?${gd(e,n)}`}var Ma=[];function hd(e){let t={};return e.forEach(n=>{let{name:r}=n,o=t[r];o&&!o.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function vo(e){let t=e.defaultIntegrations||[],n=e.integrations;t.forEach(o=>{o.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){let o=n(t);r=Array.isArray(o)?o:[o]}else r=t;return hd(r)}function ka(e,t){let n={};return t.forEach(r=>{r&&Io(e,r,n)}),n}function To(e,t){for(let n of t)n!=null&&n.afterAllSetup&&n.afterAllSetup(e)}function Io(e,t,n){if(n[t.name]){_&&h.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Ma.indexOf(t.name)===-1&&typeof t.setupOnce=="function"&&(t.setupOnce(),Ma.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){let r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(o,i)=>r(o,i,e))}if(typeof t.processEvent=="function"){let r=t.processEvent.bind(t),o=Object.assign((i,s)=>r(i,s,e),{id:t.name});e.addEventProcessor(o)}_&&h.log(`Integration installed: ${t.name}`)}function _d(e){return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{items:e}]}function Pa(e,t,n,r){let o={};return t!=null&&t.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=pe(r)),oe(o,[_d(e)])}function Mt(e,t){var i;let n=(i=t!=null?t:Ed(e))!=null?i:[];if(n.length===0)return;let r=e.getOptions(),o=Pa(n,r._metadata,r.tunnel,e.getDsn());Ha().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(o)}function Ed(e){return Ha().get(e)}function Ha(){return ne("clientToLogBufferMap",()=>new WeakMap)}function yd(e){return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{items:e}]}function Fa(e,t,n,r){let o={};return t!=null&&t.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}
11),n&&r&&(o.dsn=pe(r)),oe(o,[yd(e)])}function kt(e,t){var i;let n=(i=t!=null?t:Sd(e))!=null?i:[];if(n.length===0)return;let r=e.getOptions(),o=Fa(n,r._metadata,r.tunnel,e.getDsn());Ba().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(o)}function Sd(e){return Ba().get(e)}function Ba(){return ne("clientToMetricBufferMap",()=>new WeakMap)}function Ua(e,t,n){let r=[{type:"client_report"},{timestamp:n||fe(),discarded_events:e}];return oe(t?{dsn:t}:{},[r])}function Ln(e){let t=[];e.message&&t.push(e.message);try{let 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 $a(e){var c,u,l;let{trace_id:t,parent_span_id:n,span_id:r,status:o,origin:i,data:s,op:a}=(u=(c=e.contexts)==null?void 0:c.trace)!=null?u:{};return{data:s!=null?s:{},description:e.transaction,op:a,parent_span_id:n,span_id:r!=null?r:"",start_timestamp:(l=e.start_timestamp)!=null?l:0,status:o,timestamp:e.timestamp,trace_id:t!=null?t:"",origin:i,profile_id:s==null?void 0:s[lo],exclusive_time:s==null?void 0:s[fo],measurements:e.measurements,is_segment:!0}}function qa(e){return{type:"transaction",timestamp:e.timestamp,start_timestamp:e.start_timestamp,transaction:e.description,contexts:{trace:{trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,op:e.op,status:e.status,origin:e.origin,data:{...e.data,...e.profile_id&&{[lo]:e.profile_id},...e.exclusive_time&&{[fo]:e.exclusive_time}}}},measurements:e.measurements}}var ja="Not capturing exception because it's already been captured.",Va="Discarded session because of missing or non-string release",Xa=Symbol.for("SentryInternalError"),Ka=Symbol.for("SentryDoNotSendEventError"),bd=5e3;function Dn(e){return{message:e,[Xa]:!0}}function Ao(e){return{message:e,[Ka]:!0}}function Wa(e){return!!e&&typeof e=="object"&&Xa in e}function Ga(e){return!!e&&typeof e=="object"&&Ka in e}function za(e,t,n,r,o){let i=0,s;e.on(n,()=>{i=0,clearTimeout(s)}),e.on(t,a=>{i+=r(a),i>=8e5?o(e):(clearTimeout(s),s=setTimeout(()=>{o(e)},bd))}),e.on("flush",()=>{o(e)})}var Pt=class{constructor(t){var n;if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=na(t.dsn):_&&h.warn("No DSN provided, client will not send events."),this._dsn){let r=Da(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:r})}this._options.enableLogs&&za(this,"afterCaptureLog","flushLogs",Id,Mt),(n=this._options._experiments)!=null&&n.enableMetrics&&za(this,"afterCaptureMetric","flushMetrics",Td,kt)}captureException(t,n,r){let o=k();if(bn(t))return _&&h.log(ja),o;let i={event_id:o,...n};return this._process(this.eventFromException(t,i).then(s=>this._captureEvent(s,i,r))),i.event_id}captureMessage(t,n,r,o){let i={event_id:k(),...r},s=lt(t)?t:String(t),a=we(t)?this.eventFromMessage(s,n,i):this.eventFromException(t,i);return this._process(a.then(c=>this._captureEvent(c,i,o))),i.event_id}captureEvent(t,n,r){let o=k();if(n!=null&&n.originalException&&bn(n.originalException))return _&&h.log(ja),o;let i={event_id:o,...n},s=t.sdkProcessingMetadata||{},a=s.capturedSpanScope,c=s.capturedSpanIsolationScope;return this._process(this._captureEvent(t,i,a||r,c)),i.event_id}captureSession(t){this.sendSession(t),ye(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){let n=this._transport;if(!n)return!0;this.emit("flush");let r=await this._isClientDoneProcessing(t),o=await n.flush(t);return r&&o}async close(t){let n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}addIntegration(t){let n=this._integrations[t.name];Io(this,t,this._integrations),n||To(this,[t])}sendEvent(t,n={}
11){this.emit("beforeSendEvent",t,n);let r=ba(t,this._dsn,this._options._metadata,this._options.tunnel);for(let o of n.attachments||[])r=ha(r,Ea(o));this.sendEnvelope(r).then(o=>this.emit("afterSendEvent",t,o))}sendSession(t){let{release:n,environment:r=ht}=this._options;if("aggregates"in t){let i=t.attrs||{};if(!i.release&&!n){_&&h.warn(Va);return}i.release=i.release||n,i.environment=i.environment||r,t.attrs=i}else{if(!t.release&&!n){_&&h.warn(Va);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);let o=Sa(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(o)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){let o=`${t}:${n}`;_&&h.log(`Recording outcome: "${o}"${r>1?` (${r} times)`:""}`),this._outcomes[o]=(this._outcomes[o]||0)+r}}on(t,n){let r=this._hooks[t]=this._hooks[t]||new Set,o=(...i)=>n(...i);return r.add(o),()=>{r.delete(o)}}emit(t,...n){let r=this._hooks[t];r&&r.forEach(o=>o(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return _&&h.error("Error while sending envelope:",n),{}}return _&&h.error("Transport disabled"),{}}_setupIntegrations(){let{integrations:t}=this._options;this._integrations=ka(this,t),To(this,t)}_updateSessionFromEvent(t,n){var c;let r=n.level==="fatal",o=!1,i=(c=n.exception)==null?void 0:c.values;if(i){o=!0;for(let u of i){let l=u.mechanism;if((l==null?void 0:l.handled)===!1){r=!0;break}}}let s=t.status==="ok";(s&&t.errors===0||s&&r)&&(ye(t,{...r&&{status:"crashed"},errors:t.errors||Number(o||r)}),this.captureSession(t))}async _isClientDoneProcessing(t){let n=0;for(;!t||n<t;){if(await new Promise(r=>setTimeout(r,1)),!this._numProcessing)return!0;n++}return!1}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,o){let i=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&(s!=null&&s.length)&&(n.integrations=s),this.emit("preprocessEvent",t,n),t.type||o.setLastEventId(t.event_id||n.event_id),Ra(i,t,n,r,this,o).then(a=>{if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts={trace:so(r),...a.contexts};let c=ma(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:c,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r=z(),o=de()){return _&&wo(t)&&h.log(`Captured error event \`${Ln(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,o).then(i=>i.event_id,i=>{_&&(Ga(i)?h.log(i.message):Wa(i)?h.warn(i.message):h.warn(i))})}_processEvent(t,n,r,o){let i=this.getOptions(),{sampleRate:s}=i,a=Ja(t),c=wo(t),u=t.type||"error",l=`before send for type \`${u}\``,f=typeof s=="undefined"?void 0:ra(s);if(c&&typeof f=="number"&&Math.random()>f)return this.recordDroppedEvent("sample_rate","error"),Ke(Ao(`Discarding event because it's not included in the random sample (sampling rate = ${s})`));let d=u==="replay_event"?"replay":u;return this._prepareEvent(t,n,r,o).then(p=>{if(p===null)throw this.recordDroppedEvent("event_processor",d),Ao("An event processor returned `null`, will not send event.");if(n.data&&n.data.__sentry__===!0)return p;let x=vd(this,i,p,n);return xd(x,l)}).then(p=>{var m;if(p===null){if(this.recordDroppedEvent("before_send",d),a){let y=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",y)}throw Ao(`${l} returned \`null\`, will not send event.`)}let g=r.getSession()||o.getSession();if(c&&g&&this._updateSessionFromEvent(g,p),a){let E=((m=p.sdkProcessingMetadata)==null?void 0:m.spanCountBeforeProcessing)||0,y=p.spans?p.spans.length:0,v=E-y;v>0&&this.recordDroppedEvent("before_send","span",v)}let x=p.transaction_info;if(a&&x&&p.transaction!==t.transaction){let E="custom";p.transaction_info={...x,source:E}}return this.sendEvent(p,n),p}).then(null,p=>{throw Ga(p)||Wa(p)?p:(this.captureException(p,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:p}
11),Dn(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 12Reason: ${p}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_clearOutcomes(){let t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{let[o,i]=n.split(":");return{reason:o,category:i,quantity:r}})}_flushOutcomes(){_&&h.log("Flushing outcomes...");let t=this._clearOutcomes();if(t.length===0){_&&h.log("No outcomes to send");return}if(!this._dsn){_&&h.log("No dsn provided, will not send outcomes");return}_&&h.log("Sending outcomes:",t);let n=Ua(t,this._options.tunnel&&pe(this._dsn));this.sendEnvelope(n)}};function xd(e,t){let n=`${t} must return \`null\` or a valid event.`;if(ce(e))return e.then(r=>{if(!Ee(r)&&r!==null)throw Dn(n);return r},r=>{throw Dn(`${t} rejected with ${r}`)});if(!Ee(e)&&e!==null)throw Dn(n);return e}function vd(e,t,n,r){let{beforeSend:o,beforeSendTransaction:i,beforeSendSpan:s,ignoreSpans:a}=t,c=n;if(wo(c)&&o)return o(c,r);if(Ja(c)){if(s||a){let u=$a(c);if(a!=null&&a.length&&mo(u,a))return null;if(s){let l=s(u);l?c=Re(n,qa(l)):po()}if(c.spans){let l=[],f=c.spans;for(let p of f){if(a!=null&&a.length&&mo(p,a)){da(f,p);continue}if(s){let g=s(p);g?l.push(g):(po(),l.push(p))}else l.push(p)}let d=c.spans.length-l.length;d&&e.recordDroppedEvent("before_send","span",d),c.spans=l}}if(i){if(c.spans){let u=c.spans.length;c.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return i(c,r)}}return c}function wo(e){return e.type===void 0}function Ja(e){return e.type==="transaction"}function Td(e){let t=0;return e.name&&(t+=e.name.length*2),typeof e.value=="string"?t+=e.value.length*2:t+=8,t+Za(e.attributes)}function Id(e){let t=0;return e.message&&(t+=e.message.length*2),t+Za(e.attributes)}function Za(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*Ya(n[0]):we(n)?t+=Ya(n):t+=100}),t}function Ya(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function Co(e,t){t.debug===!0&&(_?h.enable():X(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),z().update(t.initialScope);let r=new e(t);return Ro(r),r.init(),r}function Ro(e){z().setClient(e)}var No=Symbol.for("SentryBufferFullError");function Qa(e=100){let t=new Set;function n(){return t.size<e}function r(s){t.delete(s)}function o(s){if(!n())return Ke(No);let a=s();return t.add(a),a.then(()=>r(a),()=>r(a)),a}function i(s){if(!t.size)return Ne(!0);
12let a=Promise.allSettled(Array.from(t)).then(()=>!0);if(!s)return a;let c=[a,new Promise(u=>setTimeout(()=>u(!1),s))];return Promise.race(c)}return{get $(){return Array.from(t)},add:o,drain:i}}function Ad(e,t=Date.now()){let n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;let r=Date.parse(`${e}`);return isNaN(r)?6e4:r-t}function wd(e,t){return e[t]||e.all||0}function ec(e,t,n=Date.now()){return wd(e,t)>n}function tc(e,{statusCode:t,headers:n},r=Date.now()){let o={...e},i=n==null?void 0:n["x-sentry-rate-limits"],s=n==null?void 0:n["retry-after"];if(i)for(let a of i.trim().split(",")){let[c,u,,,l]=a.split(":",5),f=parseInt(c,10),d=(isNaN(f)?60:f)*1e3;if(!u)o.all=r+d;else for(let p of u.split(";"))p==="metric_bucket"?(!l||l.split(";").includes("custom"))&&(o[p]=r+d):o[p]=r+d}else s?o.all=r+Ad(s,r):t===429&&(o.all=r+60*1e3);return o}var Cd=64;function Mn(e,t,n=Qa(e.bufferSize||Cd)){let r={},o=s=>n.drain(s);function i(s){let a=[];if(_o(s,(f,d)=>{let p=Eo(d);ec(r,p)?e.recordDroppedEvent("ratelimit_backoff",p):a.push(f)}),a.length===0)return Promise.resolve({});let c=oe(s[0],a),u=f=>{_o(c,(d,p)=>{e.recordDroppedEvent(f,Eo(p))})},l=()=>t({body:_a(c)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&_&&h.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=tc(r,f),f),f=>{throw u("network_error"),_&&h.error("Encountered error running transport request:",f),f});return n.add(l).then(f=>f,f=>{if(f===No)return _&&h.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw f})}return{send:i,flush:o}}function Ht(e){if(!e)return{};let t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};let 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 Oo(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 Lo(e,t,n=[t],r="npm"){let o=e._metadata||{};o.sdk||(o.sdk={name:`sentry.javascript.${t}`,packages:n.map(i=>({name:`${r}:@sentry/${i}`,version:ae})),version:ae}),e._metadata=o}var Rd=100;function me(e,t){let n=C(),r=de();if(!n)return;let{beforeBreadcrumb:o=null,maxBreadcrumbs:i=Rd}=n.getOptions();if(i<=0)return;let a={timestamp:fe(),...e},c=o?X(()=>o(a,t)):a;c!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,i))}var nc,Nd="FunctionToString",rc=new WeakMap,Od=(()=>({name:Nd,setupOnce(){nc=Function.prototype.toString;try{Function.prototype.toString=function(...e){let t=Xe(this),n=rc.has(C())&&t!==void 0?t:this;return nc.apply(n,e)}}catch{}},setup(e){rc.set(e,!0)}})),kn=Od;var Ld=[/^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. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/,/^Java exception was raised during method invocation$/],Dd="EventFilters",Do=(e={})=>{let t;return{name:Dd,setup(n){let r=n.getOptions();t=oc(e,r)},processEvent(n,r,o){if(!t){let i=o.getOptions();t=oc(e,i)}return Md(n,t)?null:n}}},Hn=((e={})=>({...Do(e),name:"InboundFilters"}));function oc(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:Ld],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Md(e,t){if(e.type){if(e.type==="transaction"&&Pd(e,t.ignoreTransactions))return _&&h.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 13Event: ${ue(e)}`),!0}else{if(kd(e,t.ignoreErrors))return _&&h.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 14Event: ${ue(e)}`),!0;if(Ud(e))return _&&h.warn(`Event dropped due to not having an error message, error type or stacktrace. 15Event: ${ue(e)}`),!0;if(Hd(e,t.denyUrls))return _&&h.warn(`Event dropped due to being matched by \`denyUrls\` option. 16Event: ${ue(e)}. 17Url: ${Pn(e)}`),!0;if(!Fd(e,t.allowUrls))return _&&h.warn(`Event dropped due to not being matched by \`allowUrls\` option. 18Event: ${ue(e)}. 19Url: ${Pn(e)}`),!0}return!1}function kd(e,t){return t!=null&&t.length?Ln(e).some(n=>dt(n,t)):!1}function Pd(e,t){if(!(t!=null&&t.length))return!1;let n=e.transaction;return n?dt(n,t):!1}function Hd(e,t){if(!(t!=null&&t.length))return!1;let n=Pn(e);return n?dt(n,t):!1}function Fd(e,t){if(!(t!=null&&t.length))return!0;let n=Pn(e);return n?dt(n,t):!0}function Bd(e=[]){for(let t=e.length-1;t>=0;t--){let n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Pn(e){var t,n,r;try{let o=[...(n=(t=e.exception)==null?void 0:t.values)!=null?n:[]].reverse().find(s=>{var a,c,u;return((a=s.mechanism)==null?void 0:a.parent_id)===void 0&&((u=(c=s.stacktrace)==null?void 0:c.frames)==null?void 0:u.length)}),i=(r=o==null?void 0:o.stacktrace)==null?void 0:r.frames;return i?Bd(i):null}catch{return _&&h.error(`Cannot extract url for event ${ue(e)}`),null}}function Ud(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 ko(e,t,n,r,o,i){var a;if(!((a=o.exception)!=null&&a.values)||!i||!re(i.originalException,Error))return;let s=o.exception.values.length>0?o.exception.values[o.exception.values.length-1]:void 0;s&&(o.exception.values=Mo(e,t,r,i.originalException,n,o.exception.values,s,0))}function Mo(e,t,n,r,o,i,s,a){if(i.length>=n+1)return i;let c=[...i];if(re(r[o],Error)){ic(s,a);let u=e(t,r[o]),l=c.length;sc(u,o,l,a),c=Mo(e,t,n,r[o],o,[u,...c],u,l)}
19return Array.isArray(r.errors)&&r.errors.forEach((u,l)=>{if(re(u,Error)){ic(s,a);let f=e(t,u),d=c.length;sc(f,`errors[${l}]`,d,a),c=Mo(e,t,n,u,o,[f,...c],f,d)}}),c}function ic(e,t){e.mechanism={handled:!0,type:"auto.core.linked_errors",...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function sc(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Po(e){let t="console";U(t,e),$(t,$d)}function $d(){"console"in S&&Br.forEach(function(e){e in S.console&&M(S.console,e,function(t){return ct[e]=t,function(...n){D("console",{args:n,level:e});let o=ct[e];o==null||o.apply(S.console,n)}})})}function Ho(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}var qd="Dedupe",jd=(()=>{let e;return{name:qd,processEvent(t){if(t.type)return t;try{if(Vd(t,e))return _&&h.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}}),Fn=jd;function Vd(e,t){return t?!!(Wd(e,t)||Gd(e,t)):!1}function Wd(e,t){let n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!uc(e,t)||!cc(e,t))}function Gd(e,t){let n=ac(t),r=ac(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!uc(e,t)||!cc(e,t))}function cc(e,t){let n=mn(e),r=mn(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let o=0;o<r.length;o++){let i=r[o],s=n[o];if(i.filename!==s.filename||i.lineno!==s.lineno||i.colno!==s.colno||i.function!==s.function)return!1}return!0}function uc(e,t){let n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;n=n,r=r;try{return n.join("")===r.join("")}catch{return!1}}function ac(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}function Bn(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}var Ft=S;function Fo(){return"history"in Ft&&!!Ft.history}function zd(){if(!("fetch"in Ft))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function Bt(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function Bo(){var n;if(typeof EdgeRuntime=="string")return!0;if(!zd())return!1;if(Bt(Ft.fetch))return!0;let e=!1,t=Ft.document;if(t&&typeof t.createElement=="function")try{let r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),(n=r.contentWindow)!=null&&n.fetch&&(e=Bt(r.contentWindow.fetch)),t.head.removeChild(r)}catch(r){_&&h.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e}function $o(e,t){let n="fetch";U(n,e),$(n,()=>Yd(void 0,t))}function Yd(e,t=!1){t&&!Bo()||M(S,"fetch",function(n){return function(...r){let o=new Error,{method:i,url:s}=Xd(r),a={args:r,fetchData:{method:i,url:s},startTimestamp:j()*1e3,virtualError:o,headers:Kd(r)};return e||D("fetch",{...a}),n.apply(S,r).then(async c=>(e?e(c):D("fetch",{...a,endTimestamp:j()*1e3,response:c}),c),c=>{if(D("fetch",{...a,endTimestamp:j()*1e3,error:c}),Ge(c)&&c.stack===void 0&&(c.stack=o.stack,G(c,"framesToPop",1)),c instanceof TypeError&&(c.message==="Failed to fetch"||c.message==="Load failed"||c.message==="NetworkError when attempting to fetch resource."))try{let u=new URL(a.fetchData.url);c.message=`${c.message} (${u.host})`}catch{}throw c})}})}function Uo(e,t){return!!e&&typeof e=="object"&&!!e[t]}function lc(e){return typeof e=="string"?e:e?Uo(e,"url")?e.url:e.toString?e.toString():"":""}function Xd(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){let[n,r]=e;return{url:lc(n),method:Uo(r,"method")?String(r.method).toUpperCase():"GET"}}let t=e[0];return{url:lc(t),method:Uo(t,"method")?String(t.method).toUpperCase():"GET"}}function Kd(e){let[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(Us(t))return new Headers(t.headers)}catch{}}function qo(){return"npm"}var A=S,jo=0;function Vo(){return jo>0}function fp(){jo++,setTimeout(()=>{jo--})}function Ze(e,t={}){function n(o){return typeof o=="function"}if(!n(e))return e;try{let o=e.__sentry_wrapped__;if(o)return typeof o=="function"?o:e;if(Xe(e))return e}catch{return e}let r=function(...o){try{let i=o.map(s=>Ze(s,t));return e.apply(this,i)}catch(i){throw fp(),An(s=>{s.addEventProcessor(a=>(t.mechanism&&(pt(a,void 0,void 0),le(a,t.mechanism)),a.extra={...a.extra,arguments:o},a)),Je(i)}),i}};try{for(let o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=e[o])}catch{}yn(r,e),G(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function fc(){let e=Ye(),{referrer:t}=A.document||{},{userAgent:n}=A.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}function Un(e,t){let n=zo(e,t),r={type:hp(t),value:_p(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function dp(e,t,n,r){let o=C(),i=o==null?void 0:o.getOptions().normalizeDepth,s=Sp(t),a={__serialized__:Rn(t,i)};if(s)return{exception:{values:[Un(e,s)]},extra:a};let c={exception:{values:[{type:ze(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Ep(t,{isUnhandledRejection:r})}]},extra:a};if(n){let u=zo(e,n);u.length&&(c.exception.values[0].stacktrace={frames:u})}return c}function Wo(e,t){return{exception:{values:[Un(e,t)]}}}function zo(e,t){let n=t.stacktrace||t.stack||"",r=mp(t),o=gp(t);try{return e(n,r,o)}catch{}return[]}var pp=/Minified React error #\d+;/i;function mp(e){return e&&pp.test(e.message)?1:0}function gp(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function dc(e){return typeof WebAssembly!="undefined"&&typeof WebAssembly.Exception!="undefined"?e instanceof WebAssembly.Exception:!1}function hp(e){let t=e==null?void 0:e.name;return!t&&dc(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function _p(e){let t=e==null?void 0:e.message;return dc(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function pc(e,t,n,r){let o=(n==null?void 0:n.syntheticException)||void 0,i=$n(e,t,o,r);return le(i),i.level="error",n!=null&&n.event_id&&(i.event_id=n.event_id),Ne(i)}function mc(e,t,n="info",r,o){let i=(r==null?void 0:r.syntheticException)||void 0,s=Go(e,t,i,o);return s.level=n,r!=null&&r.event_id&&(s.event_id=r.event_id),Ne(s)}function $n(e,t,n,r,o){let i;if(hn(t)&&t.error)return Wo(e,t.error);if(_n(t)||Yr(t)){let s=t;if("stack"in t)i=Wo(e,t);else{let a=s.name||(_n(s)?"DOMError":"DOMException"),c=s.message?`${a}: ${s.message}`:a;i=Go(e,c,n,r),pt(i,c)}return"code"in s&&(i.tags={...i.tags,"DOMException.code":`${s.code}`}),i}return Ge(t)?Wo(e,t):Ee(t)||ze(t)?(i=dp(e,t,n,o),le(i,{synthetic:!0}),i):(i=Go(e,t,n,r),pt(i,`${t}`,void 0),le(i,{synthetic:!0}),i)}function Go(e,t,n,r){let o={};if(r&&n){let i=zo(e,n);i.length&&(o.exception={values:[{value:t,stacktrace:{frames:i}}]}
19),le(o,{synthetic:!0})}if(lt(t)){let{__sentry_template_string__:i,__sentry_template_values__:s}=t;return o.logentry={message:i,params:s},o}return o.message=t,o}function Ep(e,{isUnhandledRejection:t}){let n=eo(e),r=t?"promise rejection":"exception";return hn(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:ze(e)?`Event \`${yp(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function yp(e){try{let t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Sp(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)){let n=e[t];if(n instanceof Error)return n}}var qn=class extends Pt{constructor(t){var c;let n=bp(t),r=A.SENTRY_SDK_SOURCE||qo();Lo(n,"browser",["browser"],r),(c=n._metadata)!=null&&c.sdk&&(n._metadata.sdk.settings={infer_ip:n.sendDefaultPii?"auto":"never",...n._metadata.sdk.settings}),super(n);let{sendDefaultPii:o,sendClientReports:i,enableLogs:s,_experiments:a}=this._options;A.document&&(i||s||a!=null&&a.enableMetrics)&&A.document.addEventListener("visibilitychange",()=>{A.document.visibilityState==="hidden"&&(i&&this._flushOutcomes(),s&&Mt(this),a!=null&&a.enableMetrics&&kt(this))}),o&&this.on("beforeSendSession",Oo)}eventFromException(t,n){return pc(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return mc(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,o){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,o)}};function bp(e){var t;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(t=A.SENTRY_RELEASE)==null?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}var gc=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;var P=S;var xp=1e3,hc,Yo,Xo;function Ko(e){U("dom",e),$("dom",vp)}function vp(){if(!P.document)return;let e=D.bind(null,"dom"),t=_c(e,!0);P.document.addEventListener("click",t,!1),P.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{var i,s;let o=(i=P[n])==null?void 0:i.prototype;(s=o==null?void 0:o.hasOwnProperty)!=null&&s.call(o,"addEventListener")&&(M(o,"addEventListener",function(a){return function(c,u,l){if(c==="click"||c=="keypress")try{let f=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},d=f[c]=f[c]||{refCount:0};if(!d.handler){let p=_c(e);d.handler=p,a.call(this,c,p,l)}d.refCount++}catch{}return a.call(this,c,u,l)}}),M(o,"removeEventListener",function(a){return function(c,u,l){if(c==="click"||c=="keypress")try{let f=this.__sentry_instrumentation_handlers__||{},d=f[c];d&&(d.refCount--,d.refCount<=0&&(a.call(this,c,d.handler,l),d.handler=void 0,delete f[c]),Object.keys(f).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return a.call(this,c,u,l)}}))})}function Tp(e){if(e.type!==Yo)return!1;try{if(!e.target||e.target._sentryId!==Xo)return!1}catch{}return!0}function Ip(e,t){return e!=="keypress"?!1:t!=null&&t.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function _c(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;let r=Ap(n);if(Ip(n.type,r))return;G(n,"_sentryCaptured",!0),r&&!r._sentryId&&G(r,"_sentryId",k());let o=n.type==="keypress"?"input":n.type;Tp(n)||(e({event:n,name:o,global:t}),Yo=n.type,Xo=r?r._sentryId:void 0),clearTimeout(hc),hc=P.setTimeout(()=>{Xo=void 0,Yo=void 0},xp)}}function Ap(e){try{return e.target}catch{return null}}var jn;function $t(e){let t="history";U(t,e),$(t,wp)}function wp(){if(P.addEventListener("popstate",()=>{let t=P.location.href,n=jn;if(jn=t,n===t)return;D("history",{from:n,to:t})}),!Fo())return;function e(t){return function(...n){let r=n.length>2?n[2]:void 0;if(r){let o=jn,i=Cp(String(r));if(jn=i,o===i)return t.apply(this,n);D("history",{from:o,to:i})}return t.apply(this,n)}}M(P.history,"pushState",e),M(P.history,"replaceState",e)}function Cp(e){try{return new URL(e,P.location.origin).toString()}catch{return e}}var Vn={};function Jo(e){let t=Vn[e];if(t)return t;let n=P[e];if(Bt(n))return Vn[e]=n.bind(P);let r=P.document;if(r&&typeof r.createElement=="function")try{let o=r.createElement("iframe");o.hidden=!0,r.head.appendChild(o);let i=o.contentWindow;i!=null&&i[e]&&(n=i[e]),r.head.removeChild(o)}catch(o){gc&&h.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,o)}return n&&(Vn[e]=n.bind(P))}function Zo(e){Vn[e]=void 0}var Qe="__sentry_xhr_v3__";function Qo(e){U("xhr",e),$("xhr",Rp)}function Rp(){if(!P.XMLHttpRequest)return;let e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){let o=new Error,i=j()*1e3,s=q(r[0])?r[0].toUpperCase():void 0,a=Np(r[1]);if(!s||!a)return t.apply(n,r);
19n[Qe]={method:s,url:a,request_headers:{}},s==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);let c=()=>{let u=n[Qe];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}let l={endTimestamp:j()*1e3,startTimestamp:i,xhr:n,virtualError:o};D("xhr",l)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,l,f){return c(),u.apply(l,f)}}):n.addEventListener("readystatechange",c),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,l,f){let[d,p]=f,g=l[Qe];return g&&q(d)&&q(p)&&(g.request_headers[d.toLowerCase()]=p),u.apply(l,f)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){let o=n[Qe];if(!o)return t.apply(n,r);r[0]!==void 0&&(o.body=r[0]);let i={startTimestamp:j()*1e3,xhr:n};return D("xhr",i),t.apply(n,r)}})}function Np(e){if(q(e))return e;try{return e.toString()}catch{}}function Ec(e,t=Jo("fetch")){let n=0,r=0;async function o(i){let s=i.body.length;n+=s,r++;let a={body:i.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{let 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 Zo("fetch"),c}finally{n-=s,r--}}return Mn(e,o)}var Op=30;var Lp=50;function ei(e,t,n,r){let o={filename:e,function:t==="<anonymous>"?"?":t,in_app:!0};return n!==void 0&&(o.lineno=n),r!==void 0&&(o.colno=r),o}var Dp=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Mp=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,kp=/\((\S*)(?::(\d+))(?::(\d+))\)/,Pp=/at (.+?) ?\(data:(.+?),/,Hp=e=>{let t=e.match(Pp);if(t)return{filename:`<data:${t[2]}>`,function:t[1]};let n=Dp.exec(e);if(n){let[,o,i,s]=n;return ei(o,"?",+i,+s)}let r=Mp.exec(e);if(r){if(r[2]&&r[2].indexOf("eval")===0){let a=kp.exec(r[2]);a&&(r[2]=a[1],r[3]=a[2],r[4]=a[3])}let[i,s]=Sc(r[1]||"?",r[2]);return ei(s,i,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},Fp=[Op,Hp],Bp=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Up=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,$p=e=>{let t=Bp.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){let i=Up.exec(t[3]);i&&(t[1]=t[1]||"eval",t[3]=i[1],t[4]=i[2],t[5]="")}let r=t[3],o=t[1]||"?";return[o,r]=Sc(o,r),ei(r,o,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},qp=[Lp,$p];var jp=[Fp,qp],yc=pn(...jp),Sc=(e,t)=>{let n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:"?",n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};var De=typeof __SENTRY_DEBUG__=="undefined"||__SENTRY_DEBUG__;var Wn=1024,Vp="Breadcrumbs",Wp=((e={})=>{let t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Vp,setup(n){t.console&&Po(Yp(n)),t.dom&&Ko(zp(n,t.dom)),t.xhr&&Qo(Xp(n)),t.fetch&&$o(Kp(n)),t.history&&$t(Jp(n)),t.sentry&&n.on("beforeSendEvent",Gp(n))}}}),bc=Wp;function Gp(e){return function(n){C()===e&&me({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:ue(n)},{event:n})}}function zp(e,t){return function(r){if(C()!==e)return;let o,i,s=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Wn&&(De&&h.warn(`\`dom.maxStringLength\` cannot exceed ${Wn}, but a value of ${a} was configured. Sentry will use ${Wn} instead.`),a=Wn),typeof s=="string"&&(s=[s]);try{let u=r.event,l=Zp(u)?u.target:u;o=Ct(l,{keyAttrs:s,maxStringLength:a}),i=Qr(l)}catch{o="<unknown>"}if(o.length===0)return;let c={category:`ui.${r.name}`,message:o};i&&(c.data={"ui.component_name":i}),me(c,{event:r.event,name:r.name,global:r.global})}}function Yp(e){return function(n){if(C()!==e)return;let r={category:"console",data:{arguments:n.args,logger:"console"},level:Ho(n.level),message:En(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${En(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;me(r,{input:n.args,level:n.level})}}function Xp(e){return function(n){if(C()!==e)return;let{startTimestamp:r,endTimestamp:o}=n,i=n.xhr[Qe];if(!r||!o||!i)return;let{method:s,url:a,status_code:c,body:u}=i,l={method:s,url:a,status_code:c},f={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:o},d={category:"xhr",data:l,type:"http",level:Bn(c)};e.emit("beforeOutgoingRequestBreadcrumb",d,f),me(d,f)}}function Kp(e){return function(n){if(C()!==e)return;let{startTimestamp:r,endTimestamp:o}=n;
19if(o&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.fetchData.method,n.fetchData.url,n.error){let i=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:o},a={category:"fetch",data:i,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",a,s),me(a,s)}else{let i=n.response,s={...n.fetchData,status_code:i==null?void 0:i.status};n.fetchData.request_body_size,n.fetchData.response_body_size,i==null||i.status;let a={input:n.args,response:i,startTimestamp:r,endTimestamp:o},c={category:"fetch",data:s,type:"http",level:Bn(s.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",c,a),me(c,a)}}}function Jp(e){return function(n){if(C()!==e)return;let r=n.from,o=n.to,i=Ht(A.location.href),s=r?Ht(r):void 0,a=Ht(o);s!=null&&s.path||(s=i),i.protocol===a.protocol&&i.host===a.host&&(o=a.relative),i.protocol===s.protocol&&i.host===s.host&&(r=s.relative),me({category:"navigation",data:{from:r,to:o}})}}function Zp(e){return!!e&&!!e.target}var Qp=["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"],em="BrowserApiErrors",tm=((e={})=>{let t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:em,setupOnce(){t.setTimeout&&M(A,"setTimeout",xc),t.setInterval&&M(A,"setInterval",xc),t.requestAnimationFrame&&M(A,"requestAnimationFrame",nm),t.XMLHttpRequest&&"XMLHttpRequest"in A&&M(XMLHttpRequest.prototype,"send",rm);let n=t.eventTarget;n&&(Array.isArray(n)?n:Qp).forEach(o=>om(o,t))}}}),vc=tm;function xc(e){return function(...t){let n=t[0];return t[0]=Ze(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${K(e)}`}}),e.apply(this,t)}}function nm(e){return function(t){return e.apply(this,[Ze(t,{mechanism:{data:{handler:K(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function rm(e){return function(...t){let n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(o=>{o in n&&typeof n[o]=="function"&&M(n,o,function(i){let s={mechanism:{data:{handler:K(i)},handled:!1,type:`auto.browser.browserapierrors.xhr.${o}`}},a=Xe(i);return a&&(s.mechanism.data.handler=K(a)),Ze(i,s)})}),e.apply(this,t)}}function om(e,t){var o,i;let r=(o=A[e])==null?void 0:o.prototype;(i=r==null?void 0:r.hasOwnProperty)!=null&&i.call(r,"addEventListener")&&(M(r,"addEventListener",function(s){return function(a,c,u){try{im(c)&&(c.handleEvent=Ze(c.handleEvent,{mechanism:{data:{handler:K(c),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&sm(this,a,c),s.apply(this,[a,Ze(c,{mechanism:{data:{handler:K(c),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),u])}}),M(r,"removeEventListener",function(s){return function(a,c,u){try{let l=c.__sentry_wrapped__;l&&s.call(this,a,l,u)}catch{}return s.call(this,a,c,u)}}))}function im(e){return typeof e.handleEvent=="function"}function sm(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}var Tc=()=>({name:"BrowserSession",setupOnce(){if(typeof A.document=="undefined"){De&&h.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}Lt({ignoreDuration:!0}),Dt(),$t(({from:e,to:t})=>{e!==void 0&&e!==t&&(Lt({ignoreDuration:!0}),Dt())})}});var am="GlobalHandlers",cm=((e={})=>{let t={onerror:!0,onunhandledrejection:!0,...e};return{name:am,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(um(n),Ic("onerror")),t.onunhandledrejection&&(lm(n),Ic("onunhandledrejection"))}}}),Ac=cm;function um(e){Wr(t=>{let{stackParser:n,attachStacktrace:r}=wc();if(C()!==e||Vo())return;let{msg:o,url:i,line:s,column:a,error:c}=t,u=pm($n(n,c||o,void 0,r,!1),i,s,a);u.level="error",Ot(u,{originalException:c,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function lm(e){zr(t=>{let{stackParser:n,attachStacktrace:r}=wc();if(C()!==e||Vo())return;let o=fm(t),i=we(o)?dm(o):$n(n,o,void 0,r,!0);i.level="error",Ot(i,{originalException:o,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function fm(e){if(we(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 dm(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function pm(e,t,n,r){var d;let o=e.exception=e.exception||{},i=o.values=o.values||[],s=i[0]=i[0]||{},a=s.stacktrace=s.stacktrace||{},c=a.frames=a.frames||[],u=r,l=n,f=(d=mm(t))!=null?d:Ye();
19return c.length===0&&c.push({colno:u,filename:f,function:"?",in_app:!0,lineno:l}),e}function Ic(e){De&&h.log(`Global Handler attached: ${e}`)}function wc(){let e=C();return(e==null?void 0:e.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function mm(e){if(!(!q(e)||e.length===0)){if(e.startsWith("data:")){let t=e.match(/^data:([^;]+)/),n=t?t[1]:"text/javascript",r=e.includes("base64,");return`<data:${n}${r?",base64":""}>`}return e.slice(0,1024)}}var Cc=()=>({name:"HttpContext",preprocessEvent(e){var r;if(!A.navigator&&!A.location&&!A.document)return;let t=fc(),n={...t.headers,...(r=e.request)==null?void 0:r.headers};e.request={...t,...e.request,headers:n}}});var gm="cause",hm=5,_m="LinkedErrors",Em=((e={})=>{let t=e.limit||hm,n=e.key||gm;return{name:_m,preprocessEvent(r,o,i){let s=i.getOptions();ko(Un,s.stackParser,n,t,r,o)}}}),Rc=Em;function Nc(){return ym()?(De&&X(()=>{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 ym(){var i;if(typeof A.window=="undefined")return!1;let e=A;if(e.nw)return!1;let t=e.chrome||e.browser;if(!((i=t==null?void 0:t.runtime)!=null&&i.id))return!1;let n=Ye(),r=["chrome-extension","moz-extension","ms-browser-extension","safari-web-extension"];return!(A===A.top&&r.some(s=>n.startsWith(`${s}://`)))}function Oc(e){return[Hn(),kn(),vc(),bc(),Ac(),Rc(),Fn(),Cc(),Tc()]}function ti(e={}){let t=!e.skipBrowserExtensionCheck&&Nc(),n={...e,enabled:t?!1:e.enabled,stackParser:jr(e.stackParser||yc),integrations:vo({integrations:e.integrations,defaultIntegrations:e.defaultIntegrations==null?Oc():e.defaultIntegrations}),transport:e.transport||Ec};return Co(qn,n)}function ni(){if(typeof document=="undefined")return;let e=document.querySelectorAll("[data-delete-modal]");e.length&&e.forEach(t=>{if(!t||t.dataset.deleteBound==="true")return;let n=t.getAttribute("data-delete-modal");if(!n)return;let r=`[data-delete-trigger="${n}"]`,o=t.querySelector("[data-delete-confirm]"),i=t.querySelector("[data-delete-form]"),s=t.querySelectorAll("[data-delete-close]"),a=t.querySelector("[data-delete-name]"),c=t.querySelector("[data-delete-email]"),u=t.querySelector("[data-delete-error]"),l=t.querySelector("[data-delete-backdrop]"),f="",d="post",p="",g=null,x=null,m=b=>{b.key==="Escape"&&(b.preventDefault(),y())},E=b=>{x=document.activeElement,g=b,f=b.getAttribute("data-delete-url")||"",d=(b.getAttribute("data-delete-method")||"post").toLowerCase(),d=d==="get"?"get":"post",p=(b.getAttribute("data-delete-mode")||"").toLowerCase();let N=b.getAttribute("data-delete-name")||"this item",H=b.getAttribute("data-delete-email")||"\u2014";a&&(a.textContent=N),c&&(c.textContent=H),T(),i&&(i.setAttribute("action",f),i.setAttribute("method",d==="get"?"get":"post")),o&&(o.disabled=!f),t.classList.remove("hidden"),t.setAttribute("aria-hidden","false"),document.body.classList.add("overflow-hidden"),document.addEventListener("keydown",m),window.requestAnimationFrame(()=>{o&&o.focus()})},y=()=>{t.classList.add("hidden"),t.setAttribute("aria-hidden","true"),document.body.classList.remove("overflow-hidden"),document.removeEventListener("keydown",m),f="",d="post",p="",g=null,T(),i&&(i.removeAttribute("action"),i.setAttribute("method","post")),o&&(o.disabled=!1),x&&typeof x.focus=="function"&&x.focus()},v=b=>{u&&(u.textContent=b,u.classList.remove("hidden"))},T=()=>{u&&(u.textContent="",u.classList.add("hidden"))},Z=async()=>{let b=i.getAttribute("action")||"",N=g;o&&(o.disabled=!0);try{let H=await fetch(b,{method:"POST",body:new URLSearchParams(new FormData(i)),headers:{Accept:"application/json"},credentials:"same-origin"}),ie=await H.json().catch(()=>({}));if(!H.ok)throw new Error(ie.error||"Delete failed");y(),document.dispatchEvent(new CustomEvent("delete-modal:success",{detail:{url:b,trigger:N,payload:ie}}))}catch(H){v(H.message||"Delete failed"),o&&(o.disabled=!1)}},Q=b=>{b.dataset.deleteTriggerBound!=="true"&&(b.dataset.deleteTriggerBound="true",b.addEventListener("click",N=>{N.preventDefault(),E(b)}))};document.querySelectorAll(r).forEach(Q),document.addEventListener("click",b=>{var H,ie;let N=(ie=(H=b.target)==null?void 0:H.closest)==null?void 0:ie.call(H,r);!N||N.dataset.deleteTriggerBound==="true"||(b.preventDefault(),E(N))}
19),s.forEach(b=>{b.addEventListener("click",N=>{N.preventDefault(),y()})}),l&&l.addEventListener("click",b=>{b.preventDefault(),y()}),t.addEventListener("click",b=>{b.target===t&&y()}),i&&i.addEventListener("submit",b=>{let N=i.getAttribute("action")||"";if(!N||!N.includes("/delete")){b.preventDefault(),y(),console.warn("Delete modal: Form action invalid or missing. Expected delete URL, got:",N);return}p==="fetch"&&(b.preventDefault(),Z())}),t.dataset.deleteBound="true"})}var Lc=new Set,Gn=null;function Dc(e){if(!e)return!1;try{let t=new URL(e,window.location.origin);return t.origin!==window.location.origin||Lc.has(t.pathname)||t.pathname===window.location.pathname||e.startsWith("#")?!1:t.protocol.startsWith("http")}catch{return!1}}function Mc(e){if(!Dc(e))return;let t=new URL(e,window.location.origin);Lc.add(t.pathname);let n=document.createElement("link");n.rel="prefetch",n.href=e,n.as="document",document.head.appendChild(n)}function bm(e){if(!(e.target instanceof Element))return;let t=e.target.closest("a[href]");if(!t)return;let n=t.getAttribute("href");t.hasAttribute("hx-boost")&&t.getAttribute("hx-boost")==="false"||t.hasAttribute("hx-post")||t.hasAttribute("hx-delete")||t.hasAttribute("hx-put")||t.hasAttribute("download")||t.getAttribute("target")!=="_blank"&&Dc(n)&&(Gn=setTimeout(()=>{Mc(n)},65))}function xm(){Gn&&(clearTimeout(Gn),Gn=null)}function kc(){document.addEventListener("mouseenter",bm,{capture:!0,passive:!0}),document.addEventListener("mouseleave",xm,{capture:!0,passive:!0}),document.addEventListener("focusin",e=>{if(!(e.target instanceof Element))return;let t=e.target.closest("a[href]");if(t){let n=t.getAttribute("href");Mc(n)}},{passive:!0})}function Pc(){var c;if(((c=document.querySelector('meta[name="app-env"]'))==null?void 0:c.getAttribute("content"))!=="development")return;let t=[],n=console.log.bind(console),r=console.warn.bind(console),o=console.error.bind(console),i=console.info.bind(console);function s(u,l){let f=l.map(d=>{try{return typeof d=="object"?JSON.stringify(d):String(d)}catch{return String(d)}}).join(" ");t.push({level:u,message:f,time:new Date().toISOString()}),t.length>=50&&a()}console.log=(...u)=>{n(...u),s("log",u)},console.warn=(...u)=>{r(...u),s("warn",u)},console.error=(...u)=>{o(...u),s("error",u)},console.info=(...u)=>{i(...u),s("info",u)};function a(){if(t.length===0)return;let u=t.splice(0,t.length);fetch("/dev/logs",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify(u),keepalive:!0}).catch(()=>{})}setInterval(a,2e3),window.addEventListener("beforeunload",a)}var vm=/address|authorization|customer|email|invoice|key|license|name|password|provider|reference|secret|session|subscription|ticket|token|transaction|user/i,Hc=!1;function Tm(e,t={}){try{let n=Bc(e),r=window.umami;if(!n||typeof(r==null?void 0:r.track)!="function")return!1;let o=Am(t);return Object.keys(o).length>0?r.track(n,o):r.track(n),!0}catch{return!1}}function Fc(e=document){Hc||(Hc=!0,e.addEventListener("click",t=>{let n=t.target;if(!(n instanceof Element))return;let r=n.closest("[data-track-event]");if(!r)return;let o=r.dataset.trackEvent||"";Tm(o,Im(r))},{capture:!0}))}function Im(e){let t={};for(let[n,r]of Object.entries(e.dataset)){if(!n.startsWith("trackProp")||r===void 0)continue;let o=n.replace(/^trackProp/,"").replace(/[A-Z]/g,(i,s)=>`${s===0?"":"_"}${i.toLowerCase()}`);o&&(t[o]=r)}return t}function Bc(e){return e.trim().toLowerCase().replace(/[^a-z0-9_-]+/g,"_").replace(/_+/g,"_").replace(/^_+|_+$/g,"").slice(0,50)}function Am(e){let t={};for(let[n,r]of Object.entries(e)){if(Object.keys(t).length>=50)break;let o=Bc(n);if(!o||vm.test(o))continue;let i=wm(r);i!==null&&(t[o]=i)}return t}function wm(e){if(typeof e=="string"){let t=e.trim();return!t||t.includes("@")||t.includes("://")||t.toLowerCase().startsWith("bearer ")?null:t.slice(0,500)}return typeof e=="number"&&Number.isFinite(e)?Math.round(e*1e4)/1e4:typeof e=="boolean"?e:null}function qt(e){var t,n;return(n=(t=document.querySelector(`meta[name="${e}"]`))==null?void 0:t.getAttribute("content"))!=null?n:null}var Uc=qt("sentry-dsn");Uc&&ti({dsn:Uc,tunnel:qt("sentry-tunnel")||void 0,environment:qt("sentry-env")||"production",release:qt("sentry-release")||void 0,integrations:[],tracesSampleRate:0,replaysSessionSampleRate:0,replaysOnErrorSampleRate:0,ignoreErrors:[/window\.ethereum/i,/\bethereum\b.*selectedAddress/i,/__firefox__/i,/can't find variable: __firefox__/i],beforeSend(e){return e!=null&&e.level&&!["warning","error","fatal"].includes(e.level)?null:e},beforeBreadcrumb(e){return!(e!=null&&e.level)||!["warning","error","fatal"].includes(e.level)?null:e}});
19var qc="tb-theme",jc="tb-admin-rail-open",Me=typeof window!="undefined"?window.localStorage:null,be=typeof document!="undefined"?document:null;function ri(e){if(!be)return;let t=be.body;t&&t.setAttribute("data-theme",e),be.documentElement.dataset.theme=e,be.documentElement.style.colorScheme=e==="dark"?"dark":"light",be.documentElement.style.backgroundColor=e==="dark"?"#08090d":"#f6f7f9"}function Cm(){var e;return Me&&(e=Me.getItem(qc))!=null?e:"light"}function Rm(e){Me&&Me.setItem(qc,e)}function $c(){if(!Me)return!0;let e=Me.getItem(jc);return e===null?!0:e==="true"}function Nm(e){Me&&Me.setItem(jc,e?"true":"false")}function Om(){return window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches}function oi(){let e=Cm();return e||(Om()?"dark":"light")}typeof window!="undefined"&&ri(oi());function Lm(){let e={theme:oi(),pageId:"",userRole:"",adminRailOpen:$c(),lastScrollY:0,scrollHandler:null,resizeHandler:null,headerState:"top",headerHeight:0,headerPositioningClass:"",headerTransform:"position: relative; opacity: 1;",storyEndEl:null,mobileOpen:!1,init(t={}){var n,r,o;e.pageId=(r=(n=t.page)!=null?n:t.pageId)!=null?r:"",e.userRole=(o=t.userRole)!=null?o:"",e.theme=oi(),e.adminRailOpen=$c(),e.lastScrollY=window.scrollY||0,ri(e.theme),e.headerState="top",e.updateHeaderDisplay(),setTimeout(()=>{e.updateHeaderPosition()},100),e.scrollHandler&&window.removeEventListener("scroll",e.scrollHandler),e.resizeHandler&&window.removeEventListener("resize",e.resizeHandler),e.scrollHandler=()=>{let i=window.scrollY||0,s=i-e.lastScrollY;e.updateHeaderScroll(i,s),e.lastScrollY=i},e.resizeHandler=()=>{e.headerState="top",e.updateHeaderDisplay(),setTimeout(()=>{e.updateHeaderPosition()},50)},window.addEventListener("scroll",e.scrollHandler,{passive:!0}),window.addEventListener("resize",e.resizeHandler,{passive:!0})},updateHeaderPosition(){let t=be==null?void 0:be.querySelector(".site-header");if(!t)return;e.headerHeight=t.offsetHeight;let n=be.querySelectorAll("[data-story-stop]");e.storyEndEl=n.length?n[n.length-1]:null},isInStory(){return!!e.storyEndEl&&e.storyEndEl.getBoundingClientRect().bottom>0},updateHeaderScroll(t,n){if(e.headerHeight===0&&(e.updateHeaderPosition(),e.headerHeight===0))return;let r=t>e.headerHeight,o=e.headerState;r?e.isInStory()?o="hidden":n<0?o="revealed":n>0&&(o="hidden"):o="top",o!==e.headerState&&(e.headerState=o,e.updateHeaderDisplay())},updateHeaderDisplay(){let t=typeof at!="undefined"&&at.store("frame")||e;t.headerPositioningClass="",e.headerState==="revealed"?t.headerTransform="position: fixed; top: 0; left: 0; right: 0; width: 100%; transform: translateY(0); opacity: 1;":e.headerState==="hidden"?t.headerTransform="position: fixed; top: 0; left: 0; right: 0; width: 100%; transform: translateY(-100%); opacity: 0; pointer-events: none;":t.headerTransform="position: relative; transform: none; opacity: 1;"},toggleTheme(){e.theme=e.theme==="dark"?"light":"dark",Rm(e.theme),ri(e.theme)},setAdminRailOpen(t){e.adminRailOpen=!!t,Nm(e.adminRailOpen)}};return e}window.Alpine=at;at.store("frame",Lm());var Dm=typeof queueMicrotask=="function"?queueMicrotask:e=>setTimeout(e,0);Dm(()=>{at.start()});window.htmx=Ae;Ae.config.scrollIntoViewOnBoost=!1;Ae.on("htmx:configRequest",e=>{var n;e.detail.headers["X-Requested-With"]="XMLHttpRequest";let t=(n=document.querySelector('meta[name="csrf-token"]'))==null?void 0:n.getAttribute("content");t&&(e.detail.headers["X-CSRF-Token"]=t)});qt("sentry-dsn")&&(Ae.on("htmx:responseError",e=>{var n;let t=e.detail.xhr;Je(new Error("HTMX Request Failed"),{extra:{url:t.responseURL,status:t.status,statusText:t.statusText,target:(n=e.detail.target)==null?void 0:n.tagName},tags:{error_type:"htmx_response_error"}})}),Ae.on("htmx:sendError",e=>{var t,n;Je(new Error("HTMX Network Error"),{extra:{url:((t=e.detail.xhr)==null?void 0:t.responseURL)||"unknown",target:(n=e.detail.target)==null?void 0:n.tagName},tags:{error_type:"htmx_network_error"}})}));function Mm(){let e=document.querySelector("[data-cap-invalid]");e&&(e.classList.add("cap-widget-wrapper--attention"),e.scrollIntoView({behavior:"smooth",block:"center"}))}function Vc(e=document){e.querySelectorAll("a[href]:not([target])").forEach(n=>{let r=n.getAttribute("href");if(!r)return;let o;try{o=new URL(r,window.location.href)}catch{return}if(o.protocol!=="http:"&&o.protocol!=="https:"||o.host===window.location.host)return;n.target="_blank";
19let i=(n.getAttribute("rel")||"").split(/\s+/).filter(Boolean);for(let s of["noopener","noreferrer"])i.includes(s)||i.push(s);n.setAttribute("rel",i.join(" "))})}document.addEventListener("DOMContentLoaded",()=>{ni(),Fc(),kc(),Mm(),Vc()});Ae.on("htmx:afterSwap",e=>{var t,n;ni(),Vc((n=(t=e.detail)==null?void 0:t.target)!=null?n:document)});Ae.on("htmx:beforeSwap",e=>{var n;((n=e.detail.xhr)==null?void 0:n.status)===422&&(e.detail.shouldSwap=!0,e.detail.isError=!1)});Pc();document.addEventListener("alpine:init",()=>{Alpine.data("docsTableOfContents",()=>({activeId:"",init(){this.setupScrollSpy()},setupScrollSpy(){let e=document.querySelectorAll(".docs-article__body h1[id], .docs-article__body h2[id], .docs-article__body h3[id], .docs-article__body h4[id]");if(e.length===0)return;let t=new IntersectionObserver(n=>{n.forEach(r=>{r.isIntersecting&&(this.activeId=r.target.id)})},{rootMargin:"-100px 0px -66%",threshold:1});e.forEach(n=>{t.observe(n)})}})),Alpine.data("docsSearch",e=>({action:e||"/docs/search",query:"",results:[],loading:!1,showResults:!1,init(){this.syncQueryFromURL()},syncQueryFromURL(){if(typeof window=="undefined")return;let t=new URLSearchParams(window.location.search||"");t.has("q")?this.query=t.get("q")||"":this.query="",this.query.trim()||(this.results=[],this.showResults=!1)},async performSearch(){if(this.query.trim().length<2){this.results=[],this.showResults=!1;return}this.loading=!0;try{let n=await(await fetch(`${this.action}?q=${encodeURIComponent(this.query)}`)).json(),r=n.Results||n.results||[];this.results=r.map(o=>({ID:o.ID||o.id||"",Title:o.Title||o.title||"",HighlightSnippet:o.HighlightSnippet||o.highlightSnippet||o.Description||o.description||"",URL:o.URL||o.url||""})),this.showResults=this.results.length>0||this.query.trim().length>=2}catch(t){console.error("Search failed:",t),this.results=[],this.showResults=!1}finally{this.loading=!1}},clearSearch(){this.query="",this.results=[],this.showResults=!1},selectResult(t){!t||!t.URL||(window.location.href=t.URL)}})),Alpine.data("docsSorter",()=>({open:!1,current:"title-asc",label:"Title A-Z",labels:{"title-asc":"Title A-Z","title-desc":"Title Z-A","date-desc":"Newest","date-asc":"Oldest"},sortBy(e){if(this.current===e){this.open=!1;return}this.current=e,this.label=this.labels[e],this.open=!1,this.performSort(e)},performSort(e){let t=this.$refs.list;if(!t)return;let n=Array.from(t.querySelectorAll(".docs-content-card"));n.length!==0&&(n.sort((r,o)=>{if(e==="title-asc"||e==="title-desc"){let i=(r.dataset.title||"").toLowerCase(),s=(o.dataset.title||"").toLowerCase(),a=i.localeCompare(s);return e==="title-asc"?a:-a}if(e==="date-asc"||e==="date-desc"){let i=new Date(r.dataset.date||0),s=new Date(o.dataset.date||0),a=i-s;return e==="date-asc"?a:-a}return 0}),n.forEach(r=>t.appendChild(r)))}}))});document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll(".docs-article__body pre").forEach(t=>{let n=document.createElement("button");n.className="docs-code-copy",n.type="button",n.setAttribute("aria-label","Copy code"),n.title="Copy code",n.innerHTML=` 20 <svg width="16" height="16" viewBox="0 0 16 16" fill="none"> 21 <path d="M5 4V3a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-1" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/> 22 <rect x="1" y="5" width="10" height="10" rx="2" stroke="currentColor" stroke-width="1.5"/> 23 </svg> 24 <span>Copy</span> 25 `,n.addEventListener("click",async()=>{let o=t.querySelector("code"),i=o?o.textContent:t.textContent;try{await navigator.clipboard.writeText(i),n.innerHTML=` 26 <svg width="16" height="16" viewBox="0 0 16 16" fill="none"> 27 <path d="M13 4L6 11l-3-3" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/> 28 </svg> 29 <span>Copied!</span> 30 `,n.setAttribute("aria-label","Copied"),n.title="Copied",n.classList.add("docs-code-copy--success"),setTimeout(()=>{n.innerHTML=`
31 <svg width="16" height="16" viewBox="0 0 16 16" fill="none"> 32 <path d="M5 4V3a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v6a2 2 0 0 1-2 2h-1" stroke="currentColor" stroke-width="1.5" stroke-linecap="round"/> 33 <rect x="1" y="5" width="10" height="10" rx="2" stroke="currentColor" stroke-width="1.5"/> 34 </svg> 35 <span>Copy</span> 36 `,n.setAttribute("aria-label","Copy code"),n.title="Copy code",n.classList.remove("docs-code-copy--success")},2e3)}catch(s){console.error("Failed to copy code:",s)}});let r=document.createElement("div");r.className="docs-code-block",t.parentNode.insertBefore(r,t),r.appendChild(t),r.appendChild(n)})});document.addEventListener("DOMContentLoaded",()=>{let e=document.querySelector(".docs-sidebar");if(!e)return;let t=document.createElement("button");if(t.className="docs-mobile-menu-button",t.setAttribute("aria-label","Toggle navigation"),t.innerHTML=` 37 <svg width="24" height="24" viewBox="0 0 24 24" fill="none"> 38 <path d="M3 12h18M3 6h18M3 18h18" stroke="currentColor" stroke-width="2" stroke-linecap="round"/> 39 </svg> 40 `,window.innerWidth<=768){let r=document.querySelector(".docs-layout");r&&r.insertBefore(t,r.firstChild)}t.addEventListener("click",()=>{e.classList.toggle("docs-sidebar--open"),document.body.classList.toggle("docs-sidebar-open")}),document.addEventListener("click",r=>{e.classList.contains("docs-sidebar--open")&&!e.contains(r.target)&&!t.contains(r.target)&&(e.classList.remove("docs-sidebar--open"),document.body.classList.remove("docs-sidebar-open"))}),e.querySelectorAll(".docs-nav__doc-link").forEach(r=>{r.addEventListener("click",()=>{e.classList.remove("docs-sidebar--open"),document.body.classList.remove("docs-sidebar-open")})})});document.addEventListener("DOMContentLoaded",()=>{document.querySelectorAll('a[href^="#"]').forEach(t=>{t.addEventListener("click",n=>{let r=t.getAttribute("href");if(r==="#")return;let o=document.querySelector(r);if(o){n.preventDefault();let s=o.getBoundingClientRect().top+window.pageYOffset-100;window.scrollTo({top:s,behavior:"smooth"}),history.pushState(null,null,r)}})})});document.addEventListener("keydown",e=>{if(e.key==="/"&&!["INPUT","TEXTAREA"].includes(e.target.tagName)){e.preventDefault();let t=document.querySelector(".docs-search__input");t&&t.focus()}if(e.key==="Escape"){let t=document.querySelector(".docs-sidebar");t&&t.classList.contains("docs-sidebar--open")&&(t.classList.remove("docs-sidebar--open"),document.body.classList.remove("docs-sidebar-open"));let n=document.querySelector(".docs-search__input");n&&document.activeElement===n&&n.blur()}});var Wc=document.createElement("style");Wc.textContent=` 41 .docs-code-block { 42 position: relative; 43 } 44 45 .docs-code-copy { 46 position: absolute; 47 top: 0.45rem; 48 right: 0.45rem; 49 display: inline-grid; 50 align-items: center; 51 justify-content: center; 52 width: 1.9rem; 53 height: 1.9rem; 54 padding: 0; 55 background: var(--surface-base); 56 border: 1px solid var(--border-soft); 57 border-radius: 6px; 58 color: var(--text-secondary); 59 font-size: 0; 60 font-family: var(--font-sans); 61 cursor: pointer; 62 box-shadow: 0 6px 16px -12px rgba(0, 0, 0, 0.55); 63 transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease; 64 z-index: 10; 65 } 66 67 .docs-code-copy svg { 68 width: 0.9rem; 69 height: 0.9rem; 70 } 71 72 .docs-code-copy span { 73 position: absolute; 74 width: 1px; 75 height: 1px; 76 margin: -1px; 77 overflow: hidden; 78 clip: rect(0 0 0 0); 79 white-space: nowrap; 80 } 81 82 .docs-code-copy:hover { 83 background: var(--surface-muted); 84 border-color: var(--border-strong); 85 color: var(--text-primary); 86 transform: translateY(-1px); 87 } 88 89 .docs-code-copy--success { 90 background: rgba(56, 189, 248, 0.15); 91 border-color: var(--accent-solid); 92 color: var(--accent-solid); 93 } 94 95 .docs-mobile-menu-button { 96 display: none; 97 position: fixed; 98 bottom: 1.5rem; 99 left: 1.5rem; 100 width: 3.5rem; 101 height: 3.5rem; 102 align-items: center; 103 justify-content: center; 104 background: var(--surface-base); 105 border: 1px solid var(--border-strong); 106 border-radius: 50%; 107 color: var(--text-primary); 108 cursor: pointer; 109 box-shadow: var(--shadow-elevated); 110 z-index: 90; 111 transition: all 0.2s ease; 112 } 113 114 .docs-mobile-menu-button:hover { 115 background: var(--surface-muted); 116 transform: scale(1.05); 117 } 118 119 .docs-mobile-menu-button:active { 120 transform: scale(0.95); 121 } 122 123 @media (max-width: 768px) { 124 .docs-mobile-menu-button { 125 display: flex; 126 } 127 128 body.docs-sidebar-open { 129 overflow: hidden; 130 } 131 } 132`;document.head.appendChild(Wc);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.