1var jV=Object.defineProperty;var WV=(e,t,n)=>t in e?jV(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var ve=(e,t,n)=>(WV(e,typeof t!="symbol"?t+"":t,n),n);(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};e.SENTRY_RELEASE={id:"[email protected]"};var t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="37fa0cb2-31ae-44fc-902b-8bcd57b9cc2a",e._sentryDebugIdIdentifier="sentry-dbid-37fa0cb2-31ae-44fc-902b-8bcd57b9cc2a")}catch{}})();function GV(e,t){for(var n=0;n<t.length;n++){const r=t[n];if(typeof r!="string"&&!Array.isArray(r)){for(const i in r)if(i!=="default"&&!(i in e)){const o=Object.getOwnPropertyDescriptor(r,i);o&&Object.defineProperty(e,i,o.get?o:{enumerable:!0,get:()=>r[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}function $g(e,t){const n=Object.create(null),r=e.split(",");for(let i=0;i<r.length;i++)n[r[i]]=!0;return t?i=>!!n[i.toLowerCase()]:i=>!!n[i]}const Ut={},Uu=[],Yi=()=>{},zV=()=>!1,qV=/^on[^a-z]/,lp=e=>qV.test(e),PS=e=>e.startsWith("onUpdate:"),on=Object.assign,OS=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},KV=Object.prototype.hasOwnProperty,Ot=(e,t)=>KV.call(e,t),De=Array.isArray,ju=e=>Dc(e)==="[object Map]",$l=e=>Dc(e)==="[object Set]",hT=e=>Dc(e)==="[object Date]",XV=e=>Dc(e)==="[object RegExp]",lt=e=>typeof e=="function",yn=e=>typeof e=="string",If=e=>typeof e=="symbol",jt=e=>e!==null&&typeof e=="object",$S=e=>jt(e)&<(e.then)&<(e.catch),jM=Object.prototype.toString,Dc=e=>jM.call(e),ZV=e=>Dc(e).slice(8,-1),WM=e=>Dc(e)==="[object Object]",NS=e=>yn(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,qd=$g(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ng=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},YV=/-(\w)/g,jr=Ng(e=>e.replace(YV,(t,n)=>n?n.toUpperCase():"")),JV=/\B([A-Z])/g,Si=Ng(e=>e.replace(JV,"-$1").toLowerCase()),up=Ng(e=>e.charAt(0).toUpperCase()+e.slice(1)),Kd=Ng(e=>e?`on${up(e)}`:""),rc=(e,t)=>!Object.is(e,t),Wu=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},lv=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},uv=e=>{const t=parseFloat(e);return isNaN(t)?e:t},cv=e=>{const t=yn(e)?Number(e):NaN;return isNaN(t)?e:t};let mT;const Rb=()=>mT||(mT=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}),QV="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt,console",eF=$g(QV);function vt(e){if(De(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],i=yn(r)?iF(r):vt(r);if(i)for(const o in i)t[o]=i[o]}return t}else{if(yn(e))return e;if(jt(e))return e}}const tF=/;(?![^(]*\))/g,nF=/:([^]+)/,rF=/\/\*[^]*?\*\//g;function iF(e){const t={};return e.replace(rF,"").split(tF).forEach(n=>{if(n){const r=n.split(nF);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ie(e){let t="";if(yn(e))t=e;else if(De(e))for(let n=0;n<e.length;n++){const r=Ie(e[n]);r&&(t+=r+" ")}else if(jt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function oF(e){if(!e)return null;let{class:t,style:n}=e;return t&&!yn(t)&&(e.class=Ie(t)),n&&(e.style=vt(n)),e}const sF="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",aF=$g(sF);function GM(e){return!!e||e===""}function lF(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=ca(e[r],t[r]);return n}function ca(e,t){if(e===t)return!0;let n=hT(e),r=hT(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=If(e),r=If(t),n||r)return e===t;if(n=De(e),r=De(t),n||r)return n&&r?lF(e,t):!1;if(n=jt(e),r=jt(t),n||r){if(!n||!r)return!1;const i=Object.keys(e).length,o=Object.keys(t).length;if(i!==o)return!1;for(const s in e){const a=e.hasOwnProperty(s),l=t.hasOwnProperty(s);if(a&&!l||!a&&l||!ca(e[s],t[s]))return!1}}return String(e)===String(t)}function Hg(e,t){return e.findIndex(n=>ca(n,t))}const he=e=>yn(e)?e:e==null?"":De(e)||jt(e)&&(e.toString===jM||!lt(e.toString))?JSON.stringify(e,zM,2):String(e),zM=(e,t)=>t&&t.__v_isRef?zM(e,t.value):ju(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,i])=>(n[`${r} =>`]=i,n),{})}:$l(t)?{[`Set(${t.size})`]:[...t.values()]}:jt(t)&&!De(t)&&!WM(t)?String(t):t;let ei;class HS{constructor(t=!1){this.detached=t,this._active=!0,this.effects=[],this.cleanups=[],this.parent=ei,!t&&ei&&(this.index=(ei.scopes||(ei.scopes=[])).push(this)-1)}get active(){return this._active}run(t){if(this._active){const n=ei;try{return ei=this,t()}finally{ei=n}}}on(){ei=this}off(){ei=this.parent}stop(t){if(this._active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(!this.detached&&this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.parent=void 0,this._active=!1}}}function Dg(e){return new HS(e)}function qM(e,t=ei){t&&t.active&&t.effects.push(e)}function DS(){return ei}function KM(e){ei&&ei.cleanups.push(e)}const VS=e=>{const t=new Set(e);return t.w=0,t.n=0,t},XM=e=>(e.w&da)>0,ZM=e=>(e.n&da)>0,uF=({deps:e})=>
1{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=da},cF=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const i=t[r];XM(i)&&!ZM(i)?i.delete(e):t[n++]=i,i.w&=~da,i.n&=~da}t.length=n}},dv=new WeakMap;let Ld=0,da=1;const Pb=30;let qi;const rl=Symbol(""),Ob=Symbol("");class cp{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,qM(this,r)}run(){if(!this.active)return this.fn();let t=qi,n=ra;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=qi,qi=this,ra=!0,da=1<<++Ld,Ld<=Pb?uF(this):vT(this),this.fn()}finally{Ld<=Pb&&cF(this),da=1<<--Ld,qi=this.parent,ra=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){qi===this?this.deferStop=!0:this.active&&(vT(this),this.onStop&&this.onStop(),this.active=!1)}}function vT(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function dF(e,t){e.effect&&(e=e.effect.fn);const n=new cp(e);t&&(on(n,t),t.scope&&qM(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function fF(e){e.effect.stop()}let ra=!0;const YM=[];function Vc(){YM.push(ra),ra=!1}function Fc(){const e=YM.pop();ra=e===void 0?!0:e}function Gr(e,t,n){if(ra&&qi){let r=dv.get(e);r||dv.set(e,r=new Map);let i=r.get(n);i||r.set(n,i=VS()),JM(i)}}function JM(e,t){let n=!1;Ld<=Pb?ZM(e)||(e.n|=da,n=!XM(e)):n=!e.has(qi),n&&(e.add(qi),qi.deps.push(e))}function gs(e,t,n,r,i,o){const s=dv.get(e);if(!s)return;let a=[];if(t==="clear")a=[...s.values()];else if(n==="length"&&De(e)){const l=Number(r);s.forEach((u,c)=>{(c==="length"||c>=l)&&a.push(u)})}else switch(n!==void 0&&a.push(s.get(n)),t){case"add":De(e)?NS(n)&&a.push(s.get("length")):(a.push(s.get(rl)),ju(e)&&a.push(s.get(Ob)));break;case"delete":De(e)||(a.push(s.get(rl)),ju(e)&&a.push(s.get(Ob)));break;case"set":ju(e)&&a.push(s.get(rl));break}if(a.length===1)a[0]&&$b(a[0]);else{const l=[];for(const u of a)u&&l.push(...u);$b(VS(l))}}function $b(e,t){const n=De(e)?e:[...e];for(const r of n)r.computed&&gT(r);for(const r of n)r.computed||gT(r)}function gT(e,t){(e!==qi||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}function pF(e,t){var n;return(n=dv.get(e))==null?void 0:n.get(t)}const hF=$g("__proto__,__v_isRef,__isVue"),QM=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(If)),mF=Vg(),vF=Vg(!1,!0),gF=Vg(!0),yF=Vg(!0,!0),yT=bF();function bF(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=St(this);for(let o=0,s=this.length;o<s;o++)Gr(r,"get",o+"");const i=r[t](...n);return i===-1||i===!1?r[t](...n.map(St)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Vc();const r=St(this)[t].apply(this,n);return Fc(),r}}),e}function _F(e){const t=St(this);return Gr(t,"has",e),t.hasOwnProperty(e)}function Vg(e=!1,t=!1){return function(r,i,o){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&o===(e?t?s4:o4:t?i4:r4).get(r))return r;const s=De(r);if(!e){if(s&&Ot(yT,i))return Reflect.get(yT,i,o);if(i==="hasOwnProperty")return _F}const a=Reflect.get(r,i,o);return(If(i)?QM.has(i):hF(i))||(e||Gr(r,"get",i),t)?a:qt(a)?s&&NS(i)?a:a.value:jt(a)?e?BS(a):mr(a):a}}const SF=e4(),EF=e4(!0);function e4(e=!1){return function(n,r,i,o){let s=n[r];if(ml(s)&&qt(s)&&!qt(i))return!1;if(!e&&(!xf(i)&&!ml(i)&&(s=St(s),i=St(i)),!De(n)&&qt(s)&&!qt(i)))return s.value=i,!0;const a=De(n)&&NS(r)?Number(r)<n.length:Ot(n,r),l=Reflect.set(n,r,i,o);return n===St(o)&&(a?rc(i,s)&&gs(n,"set",r,i):gs(n,"add",r,i)),l}}function CF(e,t){const n=Ot(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&gs(e,"delete",t,void 0),r}function wF(e,t){const n=Reflect.has(e,t);return(!If(t)||!QM.has(t))&&Gr(e,"has",t),n}function TF(e){return Gr(e,"iterate",De(e)?"length":rl),Reflect.ownKeys(e)}const t4={get:mF,set:SF,deleteProperty:CF,has:wF,ownKeys:TF},n4={get:gF,set(e,t){return!0},deleteProperty(e,t){return!0}},AF=on({},t4,{get:vF,set:EF}),IF=on({},n4,{get:yF}),FS=e=>e,Fg=e=>Reflect.getPrototypeOf(e);function sh(e,t,n=!1,r=!1){e=e.__v_raw;const i=St(e),o=St(t);n||(t!==o&&Gr(i,"get",t),Gr(i,"get",o));const{has:s}=Fg(i),a=r?FS:n?jS:Lf;if(s.call(i,t))return a(e.get(t));if(s.call(i,o))return a(e.get(o));e!==i&&e.get(t)}function ah(e,t=!1){const n=this.__v_raw,r=St(n),i=St(e);return t||(e!==i&&Gr(r,"has",e),Gr(r,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function lh(e,t=!1){return e=e.__v_raw,!t&&Gr(St(e),"iterate",rl),Reflect.get(e,"size",e)}function bT(e){e=St(e);const t=St(this);return Fg(t).has.call(t,e)||(t.add(e),gs(t,"add",e,e)),this}function _T(e,t){t=St(t);const n=St(this),{has:r,get:i}=Fg(n);let o=r.call(n,e);o||(e=St(e),o=r.call(n,e));
1const s=i.call(n,e);return n.set(e,t),o?rc(t,s)&&gs(n,"set",e,t):gs(n,"add",e,t),this}function ST(e){const t=St(this),{has:n,get:r}=Fg(t);let i=n.call(t,e);i||(e=St(e),i=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return i&&gs(t,"delete",e,void 0),o}function ET(){const e=St(this),t=e.size!==0,n=e.clear();return t&&gs(e,"clear",void 0,void 0),n}function uh(e,t){return function(r,i){const o=this,s=o.__v_raw,a=St(s),l=t?FS:e?jS:Lf;return!e&&Gr(a,"iterate",rl),s.forEach((u,c)=>r.call(i,l(u),l(c),o))}}function ch(e,t,n){return function(...r){const i=this.__v_raw,o=St(i),s=ju(o),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=i[e](...r),c=n?FS:t?jS:Lf;return!t&&Gr(o,"iterate",l?Ob:rl),{next(){const{value:d,done:f}=u.next();return f?{value:d,done:f}:{value:a?[c(d[0]),c(d[1])]:c(d),done:f}},[Symbol.iterator](){return this}}}}function Os(e){return function(...t){return e==="delete"?!1:this}}function xF(){const e={get(o){return sh(this,o)},get size(){return lh(this)},has:ah,add:bT,set:_T,delete:ST,clear:ET,forEach:uh(!1,!1)},t={get(o){return sh(this,o,!1,!0)},get size(){return lh(this)},has:ah,add:bT,set:_T,delete:ST,clear:ET,forEach:uh(!1,!0)},n={get(o){return sh(this,o,!0)},get size(){return lh(this,!0)},has(o){return ah.call(this,o,!0)},add:Os("add"),set:Os("set"),delete:Os("delete"),clear:Os("clear"),forEach:uh(!0,!1)}
1,r={get(o){return sh(this,o,!0,!0)},get size(){return lh(this,!0)},has(o){return ah.call(this,o,!0)},add:Os("add"),set:Os("set"),delete:Os("delete"),clear:Os("clear"),forEach:uh(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=ch(o,!1,!1),n[o]=ch(o,!0,!1),t[o]=ch(o,!1,!0),r[o]=ch(o,!0,!0)}),[e,n,t,r]}const[LF,kF,MF,RF]=xF();function Bg(e,t){const n=t?e?RF:MF:e?kF:LF;return(r,i,o)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?r:Reflect.get(Ot(n,i)&&i in r?n:r,i,o)}const PF={get:Bg(!1,!1)},OF={get:Bg(!1,!0)},$F={get:Bg(!0,!1)},NF={get:Bg(!0,!0)},r4=new WeakMap,i4=new WeakMap,o4=new WeakMap,s4=new WeakMap;function HF(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function DF(e){return e.__v_skip||!Object.isExtensible(e)?0:HF(ZV(e))}function mr(e){return ml(e)?e:Ug(e,!1,t4,PF,r4)}function a4(e){return Ug(e,!1,AF,OF,i4)}function BS(e){return Ug(e,!0,n4,$F,o4)}function VF(e){return Ug(e,!0,IF,NF,s4)}function Ug(e,t,n,r,i){if(!jt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=i.get(e);if(o)return o;const s=DF(e);if(s===0)return e;const a=new Proxy(e,s===2?r:n);return i.set(e,a),a}function Ti(e){return ml(e)?Ti(e.__v_raw):!!(e&&e.__v_isReactive)}function ml(e){return!!(e&&e.__v_isReadonly)}function xf(e){return!!(e&&e.__v_isShallow)}function US(e){return Ti(e)||ml(e)}function St(e){const t=e&&e.__v_raw;return t?St(t):e}function Nl(e){return lv(e,"__v_skip",!0),e}const Lf=e=>jt(e)?mr(e):e,jS=e=>jt(e)?BS(e):e;function WS(e){ra&&qi&&(e=St(e),JM(e.dep||(e.dep=VS())))}function jg(e,t){e=St(e);const n=e.dep;n&&$b(n)}function qt(e){return!!(e&&e.__v_isRef===!0)}function ie(e){return u4(e,!1)}function l4(e){return u4(e,!0)}function u4(e,t){return qt(e)?e:new FF(e,t)}class FF{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:St(t),this._value=n?t:Lf(t)}get value(){return WS(this),this._value}set value(t){const n=this.__v_isShallow||xf(t)||ml(t);t=n?t:St(t),rc(t,this._rawValue)&&(this._rawValue=t,this._value=n?t:Lf(t),jg(this))}}function kd(e){jg(e)}function Ee(e){return qt(e)?e.value:e}function il(e){return lt(e)?e():Ee(e)}const BF={get:(e,t,n)=>Ee(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const i=e[t];return qt(i)&&!qt(n)?(i.value=n,!0):Reflect.set(e,t,n,r)}};function kf(e){return Ti(e)?e:new Proxy(e,BF)}class UF{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>WS(this),()=>jg(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function jF(e){return new UF(e)}function c4(e){const t=De(e)?new Array(e.length):{};for(const n in e)t[n]=d4(e,n);return t}class WF{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return pF(St(this._object),this._key)}}class GF{constructor(t){this._getter=t,this.__v_isRef=!0,this.__v_isReadonly=!0}get value(){return this._getter()}}function Bc(e,t,n){return qt(e)?e:lt(e)?new GF(e):jt(e)&&arguments.length>1?d4(e,t,n):ie(e)}function d4(e,t,n){const r=e[t];return qt(r)?r:new WF(e,t,n)}class zF{constructor(t,n,r,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this.__v_isReadonly=!1,this._dirty=!0,this.effect=new cp(t,()=>{this._dirty||(this._dirty=!0,jg(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=r}get value(){const t=St(this);return WS(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function qF(e,t,n=!1){let r,i;const o=lt(e);return o?(r=e,i=Yi):(r=e.get,i=e.set),new zF(r,i,o||!i,n)}function KF(e,...t){}function XF(e,t){}function ls(e,t,n,r){let i;try{i=r?e(...r):e()}catch(o){Hl(o,t,n)}return i}function si(e,t,n,r){if(lt(e)){const o=ls(e,t,n,r);return o&&$S(o)&&o.catch(s=>{Hl(s,t,n)}),o}const i=[];for(let o=0;o<e.length;o++)i.push(si(e[o],t,n,r));return i}function Hl(e,t,n,r=!0){const i=t?t.vnode:null;if(t){let o=t.parent;const s=t.proxy,a=n;for(;o;){const u=o.ec;if(u){for(let c=0;c<u.length;c++)if(u[c](e,s,a)===!1)return}o=o.parent}const l=t.appContext.config.errorHandler;if(l){ls(l,null,10,[e,s,a]);return}}ZF(e,n,i,r)}function ZF(e,t,n,r=!0){console.error(e)}let Mf=!1,Nb=!1;const pr=[];let Co=0;const Gu=[];let ts=null,Ga=0;const f4=Promise.resolve();let GS=null;function Lt(e){const t=GS||f4;return e?t.then(this?e.bind(this):e):t}function YF(e){let t=Co+1,n=pr.length;for(;t<n;){const r=t+n>>>1;Rf(pr[r])<e?t=r+1:n=r}return t}function Wg(e){(!pr.length||!pr.includes(e,Mf&&e.allowRecurse?Co+1:Co))&&(e.id==null?pr.push(e):pr.splice(YF(e.id),0,e),p4())}function p4(){!Mf&&!Nb&&(Nb=!0,GS=f4.then(h4))}function JF(e){const t=pr.indexOf(e);t>Co&&pr.splice(t,1)}
1function zS(e){De(e)?Gu.push(...e):(!ts||!ts.includes(e,e.allowRecurse?Ga+1:Ga))&&Gu.push(e),p4()}function CT(e,t=Mf?Co+1:0){for(;t<pr.length;t++){const n=pr[t];n&&n.pre&&(pr.splice(t,1),t--,n())}}function fv(e){if(Gu.length){const t=[...new Set(Gu)];if(Gu.length=0,ts){ts.push(...t);return}for(ts=t,ts.sort((n,r)=>Rf(n)-Rf(r)),Ga=0;Ga<ts.length;Ga++)ts[Ga]();ts=null,Ga=0}}const Rf=e=>e.id==null?1/0:e.id,QF=(e,t)=>{const n=Rf(e)-Rf(t);if(n===0){if(e.pre&&!t.pre)return-1;if(t.pre&&!e.pre)return 1}return n};function h4(e){Nb=!1,Mf=!0,pr.sort(QF);const t=Yi;try{for(Co=0;Co<pr.length;Co++){const n=pr[Co];n&&n.active!==!1&&ls(n,null,14)}}finally{Co=0,pr.length=0,fv(),Mf=!1,GS=null,(pr.length||Gu.length)&&h4()}}let Cu,dh=[];function m4(e,t){var n,r;Cu=e,Cu?(Cu.enabled=!0,dh.forEach(({event:i,args:o})=>Cu.emit(i,...o)),dh=[]):typeof window<"u"&&window.HTMLElement&&!((r=(n=window.navigator)==null?void 0:n.userAgent)!=null&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{m4(o,t)}),setTimeout(()=>{Cu||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,dh=[])},3e3)):dh=[]}function eB(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||Ut;let i=n;const o=t.startsWith("update:"),s=o&&t.slice(7);if(s&&s in r){const c=`${s==="modelValue"?"model":s}Modifiers`,{number:d,trim:f}=r[c]||Ut;f&&(i=n.map(p=>yn(p)?p.trim():p)),d&&(i=n.map(uv))}let a,l=r[a=Kd(t)]||r[a=Kd(jr(t))];!l&&o&&(l=r[a=Kd(Si(t))]),l&&si(l,e,6,i);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,si(u,e,6,i)}}function v4(e,t,n=!1){const r=t.emitsCache,i=r.get(e);if(i!==void 0)return i;const o=e.emits;let s={},a=!1;if(!lt(e)){const l=u=>{const c=v4(u,t,!0);c&&(a=!0,on(s,c))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(jt(e)&&r.set(e,null),null):(De(o)?o.forEach(l=>s[l]=null):on(s,o),jt(e)&&r.set(e,s),s)}function Gg(e,t){return!e||!lp(t)?!1:(t=t.slice(2).replace(/Once$/,""),Ot(e,t[0].toLowerCase()+t.slice(1))||Ot(e,Si(t))||Ot(e,t))}let Zn=null,zg=null;function Pf(e){const t=Zn;return Zn=e,zg=e&&e.type.__scopeId||null,t}function qS(e){zg=e}function KS(){zg=null}const tB=e=>pe;function pe(e,t=Zn,n){if(!t||e._n)return e;const r=(...i)=>{r._d&&jb(-1);const o=Pf(t);let s;
vendor: 4,726 bytes, line 1
1try{s=e(...i)}finally{Pf(o),r._d&&jb(1)}return s};return r._n=!0,r._c=!0,r._d=!0,r}function fm(e){const{type:t,vnode:n,proxy:r,withProxy:i,props:o,propsOptions:[s],slots:a,attrs:l,emit:u,render:c,renderCache:d,data:f,setupState:p,ctx:h,inheritAttrs:m}=e;let v,g;const y=Pf(e);try{if(n.shapeFlag&4){const b=i||r;v=ii(c.call(b,b,d,o,p,f,h)),g=l}else{const b=t;v=ii(b.length>1?b(o,{attrs:l,slots:a,emit:u}):b(o,null)),g=t.props?l:rB(l)}}catch(b){Yd.length=0,Hl(b,e,1),v=ae(vr)}let _=v;if(g&&m!==!1){const b=Object.keys(g),{shapeFlag:S}=_;b.length&&S&7&&(s&&b.some(PS)&&(g=iB(g,s)),_=Mi(_,g))}return n.dirs&&(_=Mi(_),_.dirs=_.dirs?_.dirs.concat(n.dirs):n.dirs),n.transition&&(_.transition=n.transition),v=_,Pf(y),v}function nB(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(bs(r)){if(r.type!==vr||r.children==="v-if"){if(t)return;t=r}}else return}return t}const rB=e=>{let t;for(const n in e)(n==="class"||n==="style"||lp(n))&&((t||(t={}))[n]=e[n]);return t},iB=(e,t)=>{const n={};for(const r in e)(!PS(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function oB(e,t,n){const{props:r,children:i,component:o}=e,{props:s,children:a,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?wT(r,s,u):!!s;if(l&8){const c=t.dynamicProps;for(let d=0;d<c.length;d++){const f=c[d];if(s[f]!==r[f]&&!Gg(u,f))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:r===s?!1:r?s?wT(r,s,u):!0:!!s;return!1}function wT(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let i=0;i<r.length;i++){const o=r[i];if(t[o]!==e[o]&&!Gg(n,o))return!0}return!1}function XS({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const g4=e=>e.__isSuspense,sB={name:"Suspense",__isSuspense:!0,process(e,t,n,r,i,o,s,a,l,u){e==null?lB(t,n,r,i,o,s,a,l,u):uB(e,t,n,r,i,s,a,l,u)},hydrate:cB,create:ZS,normalize:dB},aB=sB;function Of(e,t){const n=e.props&&e.props[t];lt(n)&&n()}function lB(e,t,n,r,i,o,s,a,l){const{p:u,o:{createElement:c}}=l,d=c("div"),f=e.suspense=ZS(e,i,r,t,d,n,o,s,a,l);u(null,f.pendingBranch=e.ssContent,d,null,r,f,o,s),f.deps>0?(Of(e,"onPending"),Of(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,s),zu(f,e.ssFallback)):f.resolve(!1,!0)}function uB(e,t,n,r,i,o,s,a,{p:l,um:u,o:{createElement:c}}){const d=t.suspense=e.suspense;d.vnode=t,t.el=e.el;const f=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:m,isInFallback:v,isHydrating:g}=d;if(m)d.pendingBranch=f,Ki(f,m)?(l(m,f,d.hiddenContainer,null,i,d,o,s,a),d.deps<=0?d.resolve():v&&(l(h,p,n,r,i,null,o,s,a),zu(d,p))):(d.pendingId++,g?(d.isHydrating=!1,d.activeBranch=m):u(m,i,d),d.deps=0,d.effects.length=0,d.hiddenContainer=c("div"),v?(l(null,f,d.hiddenContainer,null,i,d,o,s,a),d.deps<=0?d.resolve():(l(h,p,n,r,i,null,o,s,a),zu(d,p))):h&&Ki(f,h)?(l(h,f,n,r,i,d,o,s,a),d.resolve(!0)):(l(null,f,d.hiddenContainer,null,i,d,o,s,a),d.deps<=0&&d.resolve()));else if(h&&Ki(f,h))l(h,f,n,r,i,d,o,s,a),zu(d,f);else if(Of(t,"onPending"),d.pendingBranch=f,d.pendingId++,l(null,f,d.hiddenContainer,null,i,d,o,s,a),d.deps<=0)d.resolve();else{const{timeout:y,pendingId:_}=d;y>0?setTimeout(()=>{d.pendingId===_&&d.fallback(p)},y):y===0&&d.fallback(p)}}function ZS(e,t,n,r,i,o,s,a,l,u,c=!1){const{p:d,m:f,um:p,n:h,o:{parentNode:m,remove:v}}=u;let g;const y=fB(e);y&&t!=null&&t.pendingBranch&&(g=t.pendingId,t.deps++);const _=e.props?cv(e.props.timeout):void 0,b={vnode:e,parent:t,parentComponent:n,isSVG:s,container:r,hiddenContainer:i,anchor:o,deps:0,pendingId:0,timeout:typeof _=="number"?_:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:c,isUnmounted:!1,effects:[],resolve(S=!1,C=!1){const{vnode:E,activeBranch:w,pendingBranch:T,pendingId:A,effects:L,parentComponent:x,container:k}=b;if(b.isHydrating)b.isHydrating=!1;else if(!S){const P=w&&T.transition&&T.transition.mode==="out-in";P&&(w.transition.afterLeave=()=>{A===b.pendingId&&f(T,k,H,0)});let{anchor:H}=b;w&&(H=h(w),p(w,x,b,!0)),P||f(T,k,H,0)}zu(b,T),b.pendingBranch=null,b.isInFallback=!1;let M=b.parent,z=!1;for(;M;){if(M.pendingBranch){M.effects.push(...L),z=!0;break}M=M.parent}z||zS(L),b.effects=[],y&&t&&t.pendingBranch&&g===t.pendingId&&(t.deps--,t.deps===0&&!C&&t.resolve()),Of(E,"onResolve")},fallback(S){if(!b.pendingBranch)return;const{vnode:C,activeBranch:E,parentComponent:w,container:T,isSVG:A}=b;Of(C,"onFallback");const L=h(E),x=()=>{b.isInFallback&&(d(null,S,T,L,w,null,A,a,l),zu(b,S))},k=S.transition&&S.transition.mode==="out-in";k&&(E.transition.afterLeave=x),b.isInFallback=!0,p(E,w,null,!0),k||x()},move(S,C,E){b.activeBranch&&f(b.activeBranch,S,C,E),b.container=S},next(){return b.activeBranch&&h(b.activeBranch)},registerDep(S,C){const E=!!b.pendingBranch;E&&b.deps++;const w=S.vnode.el;
1S.asyncDep.catch(T=>{Hl(T,S,0)}).then(T=>{if(S.isUnmounted||b.isUnmounted||b.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:A}=S;Wb(S,T,!1),w&&(A.el=w);const L=!w&&S.subTree.el;C(S,A,m(w||S.subTree.el),w?null:h(S.subTree),b,s,l),L&&v(L),XS(S,A.el),E&&--b.deps===0&&b.resolve()})},unmount(S,C){b.isUnmounted=!0,b.activeBranch&&p(b.activeBranch,n,S,C),b.pendingBranch&&p(b.pendingBranch,n,S,C)}};return b}function cB(e,t,n,r,i,o,s,a,l){const u=t.suspense=ZS(t,r,n,e.parentNode,document.createElement("div"),null,i,o,s,a,!0),c=l(e,u.pendingBranch=t.ssContent,n,u,o,s);return u.deps===0&&u.resolve(!1,!0),c}function dB(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=TT(r?n.default:n),e.ssFallback=r?TT(n.fallback):ae(vr)}function TT(e){let t;if(lt(e)){const n=yl&&e._c;n&&(e._d=!1,I()),e=e(),n&&(e._d=!0,t=Ur,G4())}return De(e)&&(e=nB(e)),e=ii(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function y4(e,t){t&&t.pendingBranch?De(e)?t.effects.push(...e):t.effects.push(e):zS(e)}function zu(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,i=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=i,XS(r,i))}function fB(e){var t;return((t=e.props)==null?void 0:t.suspensible)!=null&&e.props.suspensible!==!1}function bi(e,t){return dp(e,null,t)}function b4(e,t){return dp(e,null,{flush:"post"})}function pB(e,t){return dp(e,null,{flush:"sync"})}const fh={};function ut(e,t,n){return dp(e,t,n)}function dp(e,t,{immediate:n,deep:r,flush:i,onTrack:o,onTrigger:s}=Ut){var a;const l=DS()===((a=Bn)==null?void 0:a.scope)?Bn:null;let u,c=!1,d=!1;if(qt(e)?(u=()=>e.value,c=xf(e)):Ti(e)?(u=()=>e,r=!0):De(e)?(d=!0,c=e.some(b=>Ti(b)||xf(b)),u=()=>e.map(b=>{if(qt(b))return b.value;if(Ti(b))return Za(b);if(lt(b))return ls(b,l,2)})):lt(e)?t?u=()=>ls(e,l,2):u=()=>{if(!(l&&l.isUnmounted))return f&&f(),si(e,l,3,[p])}:u=Yi,t&&r){const b=u;u=()=>Za(b())}let f,p=b=>{f=y.onStop=()=>{ls(b,l,4)}},h;if(oc)if(p=Yi,t?n&&si(t,l,3,[u(),d?[]:void 0,p]):u(),i==="sync"){const b=tR();h=b.__watcherHandles||(b.__watcherHandles=[])}else return Yi;let m=d?new Array(e.length).fill(fh):fh;const v=()=>{if(y.active)if(t){const b=y.run();(r||c||(d?b.some((S,C)=>rc(S,m[C])):rc(b,m)))&&(f&&f(),si(t,l,3,[b,m===fh?void 0:d&&m[0]===fh?[]:m,p]),m=b)}else y.run()};v.allowRecurse=!!t;let g;i==="sync"?g=v:i==="post"?g=()=>Qn(v,l&&l.suspense):(v.pre=!0,l&&(v.id=l.uid),g=()=>Wg(v));const y=new cp(u,g);t?n?v():m=y.run():i==="post"?Qn(y.run.bind(y),l&&l.suspense):y.run();const _=()=>{y.stop(),l&&l.scope&&OS(l.scope.effects,y)};return h&&h.push(_),_}function hB(e,t,n){const r=this.proxy,i=yn(e)?e.includes(".")?_4(r,e):()=>r[e]:e.bind(r,r);let o;lt(t)?o=t:(o=t.handler,n=t);const s=Bn;fa(this);const a=dp(i,o.bind(r),n);return s?fa(s):ia(),a}function _4(e,t){const n=t.split(".");return()=>{let r=e;for(let i=0;i<n.length&&r;i++)r=r[n[i]];return r}}function Za(e,t){if(!jt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),qt(e))Za(e.value,t);else if(De(e))for(let n=0;n<e.length;n++)Za(e[n],t);else if($l(e)||ju(e))e.forEach(n=>{Za(n,t)});else if(WM(e))for(const n in e)Za(e[n],t);return e}function kn(e,t){const n=Zn;if(n===null)return e;const r=Yg(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[s,a,l,u=Ut]=t[o];s&&(lt(s)&&(s={mounted:s,updated:s}),s.deep&&Za(a),i.push({dir:s,instance:r,value:a,oldValue:void 0,arg:l,modifiers:u}))}return e}function So(e,t,n,r){const i=e.dirs,o=t&&t.dirs;for(let s=0;s<i.length;s++){const a=i[s];o&&(a.oldValue=o[s].value);let l=a.dir[r];l&&(Vc(),si(l,n,8,[e.el,a,e,t]),Fc())}}function YS(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return $n(()=>{e.isMounted=!0}),Dl(()=>{e.isUnmounting=!0}),e}const hi=[Function,Array],JS={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:hi,onEnter:hi,onAfterEnter:hi,onEnterCancelled:hi,onBeforeLeave:hi,onLeave:hi,onAfterLeave:hi,onLeaveCancelled:hi,onBeforeAppear:hi,onAppear:hi,onAfterAppear:hi,onAppearCancelled:hi},mB={name:"BaseTransition",props:JS,setup(e,{slots:t}){const n=fi(),r=YS();let i;return()=>{const o=t.default&&qg(t.default(),!0);if(!o||!o.length)return;let s=o[0];if(o.length>1){for(const m of o)if(m.type!==vr){s=m;break}}const a=St(e),{mode:l}=a;if(r.isLeaving)return x0(s);const u=AT(s);if(!u)return x0(s);const c=ic(u,a,r,n);vl(u,c);const d=n.subTree,f=d&&AT(d);let p=!1;const{getTransitionKey:h}=u.type;if(h){const m=h();i===void 0?i=m:m!==i&&(i=m,p=!0)}if(f&&f.type!==vr&&(!Ki(u,f)||p)){const m=ic(f,a,r,n);if(vl(f,m),l==="out-in")return r.isLeaving=!0,m.afterLeave=()=>{r.isLeaving=!1,n.update.active!==!1&&n.update()},x0(s);l==="in-out"&&u.type!==vr&&(m.delayLeave=(v,g,y)=>{const _=E4(r,f);_[String(f.key)]=f,v._leaveCb=()=>{g(),v._leaveCb=void 0,delete c.delayedLeave},c.delayedLeave=y})}return s}}},S4=mB;
vendor: 15,911 bytes, line 1
1function E4(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function ic(e,t,n,r){const{appear:i,mode:o,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:c,onBeforeLeave:d,onLeave:f,onAfterLeave:p,onLeaveCancelled:h,onBeforeAppear:m,onAppear:v,onAfterAppear:g,onAppearCancelled:y}=t,_=String(e.key),b=E4(n,e),S=(w,T)=>{w&&si(w,r,9,T)},C=(w,T)=>{const A=T[1];S(w,T),De(w)?w.every(L=>L.length<=1)&&A():w.length<=1&&A()},E={mode:o,persisted:s,beforeEnter(w){let T=a;if(!n.isMounted)if(i)T=m||a;else return;w._leaveCb&&w._leaveCb(!0);const A=b[_];A&&Ki(e,A)&&A.el._leaveCb&&A.el._leaveCb(),S(T,[w])},enter(w){let T=l,A=u,L=c;if(!n.isMounted)if(i)T=v||l,A=g||u,L=y||c;else return;let x=!1;const k=w._enterCb=M=>{x||(x=!0,M?S(L,[w]):S(A,[w]),E.delayedLeave&&E.delayedLeave(),w._enterCb=void 0)};T?C(T,[w,k]):k()},leave(w,T){const A=String(e.key);if(w._enterCb&&w._enterCb(!0),n.isUnmounting)return T();S(d,[w]);let L=!1;const x=w._leaveCb=k=>{L||(L=!0,T(),k?S(h,[w]):S(p,[w]),w._leaveCb=void 0,b[A]===e&&delete b[A])};b[A]=e,f?C(f,[w,x]):x()},clone(w){return ic(w,t,n,r)}};return E}function x0(e){if(fp(e))return e=Mi(e),e.children=null,e}function AT(e){return fp(e)?e.children?e.children[0]:void 0:e}function vl(e,t){e.shapeFlag&6&&e.component?vl(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function qg(e,t=!1,n){let r=[],i=0;for(let o=0;o<e.length;o++){let s=e[o];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:o);s.type===Je?(s.patchFlag&128&&i++,r=r.concat(qg(s.children,t,a))):(t||s.type!==vr)&&r.push(a!=null?Mi(s,{key:a}):s)}if(i>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}function Qe(e,t){return lt(e)?(()=>on({name:e.name},t,{setup:e}))():e}const ol=e=>!!e.type.__asyncLoader;function ln(e){lt(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:i=200,timeout:o,suspensible:s=!0,onError:a}=e;let l=null,u,c=0;const d=()=>(c++,l=null,f()),f=()=>{let p;return l||(p=l=t().catch(h=>{if(h=h instanceof Error?h:new Error(String(h)),a)return new Promise((m,v)=>{a(h,()=>m(d()),()=>v(h),c+1)});throw h}).then(h=>p!==l&&l?l:(h&&(h.__esModule||h[Symbol.toStringTag]==="Module")&&(h=h.default),u=h,h)))};return Qe({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return u},setup(){const p=Bn;if(u)return()=>L0(u,p);const h=y=>{l=null,Hl(y,p,13,!r)};if(s&&p.suspense||oc)return f().then(y=>()=>L0(y,p)).catch(y=>(h(y),()=>r?ae(r,{error:y}):null));const m=ie(!1),v=ie(),g=ie(!!i);return i&&setTimeout(()=>{g.value=!1},i),o!=null&&setTimeout(()=>{if(!m.value&&!v.value){const y=new Error(`Async component timed out after ${o}ms.`);h(y),v.value=y}},o),f().then(()=>{m.value=!0,p.parent&&fp(p.parent.vnode)&&Wg(p.parent.update)}).catch(y=>{h(y),v.value=y}),()=>{if(m.value&&u)return L0(u,p);if(v.value&&r)return ae(r,{error:v.value});if(n&&!g.value)return ae(n)}}})}function L0(e,t){const{ref:n,props:r,children:i,ce:o}=t.vnode,s=ae(e,r,i);return s.ref=n,s.ce=o,delete t.vnode.ce,s}const fp=e=>e.type.__isKeepAlive,vB={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=fi(),r=n.ctx;if(!r.renderer)return()=>{const y=t.default&&t.default();return y&&y.length===1?y[0]:y};const i=new Map,o=new Set;let s=null;const a=n.suspense,{renderer:{p:l,m:u,um:c,o:{createElement:d}}}=r,f=d("div");r.activate=(y,_,b,S,C)=>{const E=y.component;u(y,_,b,0,a),l(E.vnode,y,_,b,E,a,S,y.slotScopeIds,C),Qn(()=>{E.isDeactivated=!1,E.a&&Wu(E.a);const w=y.props&&y.props.onVnodeMounted;w&&Hr(w,E.parent,y)},a)},r.deactivate=y=>{const _=y.component;u(y,f,null,1,a),Qn(()=>{_.da&&Wu(_.da);const b=y.props&&y.props.onVnodeUnmounted;b&&Hr(b,_.parent,y),_.isDeactivated=!0},a)};function p(y){k0(y),c(y,n,a,!0)}function h(y){i.forEach((_,b)=>{const S=zb(_.type);S&&(!y||!y(S))&&m(b)})}function m(y){const _=i.get(y);!s||!Ki(_,s)?p(_):s&&k0(s),i.delete(y),o.delete(y)}ut(()=>[e.include,e.exclude],([y,_])=>{y&&h(b=>Md(y,b)),_&&h(b=>!Md(_,b))},{flush:"post",deep:!0});let v=null;const g=()=>{v!=null&&i.set(v,M0(n.subTree))};return $n(g),Xg(g),Dl(()=>{i.forEach(y=>{const{subTree:_,suspense:b}=n,S=M0(_);if(y.type===S.type&&y.key===S.key){k0(S);const C=S.component.da;C&&Qn(C,b);return}p(y)})}),()=>{if(v=null,!t.default)return null;const y=t.default(),_=y[0];if(y.length>1)return s=null,y;if(!bs(_)||!(_.shapeFlag&4)&&!(_.shapeFlag&128))return s=null,_;let b=M0(_);const S=b.type,C=zb(ol(b)?b.type.__asyncResolved||{}:S),{include:E,exclude:w,max:T}=e;if(E&&(!C||!Md(E,C))||w&&C&&Md(w,C))return s=b,_;const A=b.key==null?S:b.key,L=i.get(A);return b.el&&(b=Mi(b),_.shapeFlag&128&&(_.ssContent=b)),v=A,L?(b.el=L.el,b.component=L.component,b.transition&&vl(b,b.transition),b.shapeFlag|=512,o.delete(A),o.add(A)):(o.add(A),T&&o.size>parseInt(T,10)&&m(o.values().next().value)),b.shapeFlag|=256,s=b,g4(_.type)?_:b}}},gB=vB;function Md(e,t){return De(e)?e.some(n=>Md(n,t)):yn(e)?e.split(",").includes(t):XV(e)?e.test(t):!1}function pp(e,t){C4(e,"a",t)}function hp(e,t){C4(e,"da",t)}function C4(e,t,n=Bn){const r=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(Kg(t,r,n),n){let i=n.parent;for(;i&&i.parent;)fp(i.parent.vnode)&&yB(r,t,n,i),i=i.parent}}function yB(e,t,n,r){const i=Kg(t,e,r,!0);Rn(()=>{OS(r[t],i)},n)}function k0(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function M0(e){return e.shapeFlag&128?e.ssContent:e}function Kg(e,t,n=Bn,r=!1){if(n){const i=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Vc(),fa(n);const a=si(t,n,e,s);return ia(),Fc(),a});return r?i.unshift(o):i.push(o),o}}const Is=e=>(t,n=Bn)=>(!oc||e==="sp")&&Kg(e,(...r)=>t(...r),n),w4=Is("bm"),$n=Is("m"),T4=Is("bu"),Xg=Is("u"),Dl=Is("bum"),Rn=Is("um"),QS=Is("sp"),A4=Is("rtg"),I4=Is("rtc");function x4(e,t=Bn){Kg("ec",e,t)}const eE="components",bB="directives";function Uc(e,t){return nE(eE,e,!0,t)||e}const L4=Symbol.for("v-ndc");function tE(e){return yn(e)?nE(eE,e,!1)||e:e||L4}function jc(e){return nE(bB,e)}function nE(e,t,n=!0,r=!1){const i=Zn||Bn;if(i){const o=i.type;if(e===eE){const a=zb(o,!1);if(a&&(a===t||a===jr(t)||a===up(jr(t))))return o}const s=IT(i[e]||o[e],t)||IT(i.appContext[e],t);return!s&&r?o:s}}function IT(e,t){return e&&(e[t]||e[jr(t)]||e[up(jr(t))])}function Dt(e,t,n,r){let i;const o=n&&n[r];if(De(e)||yn(e)){i=new Array(e.length);for(let s=0,a=e.length;s<a;s++)i[s]=t(e[s],s,void 0,o&&o[s])}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,o&&o[s])}else if(jt(e))if(e[Symbol.iterator])i=Array.from(e,(s,a)=>t(s,a,void 0,o&&o[a]));else{const s=Object.keys(e);i=new Array(s.length);for(let a=0,l=s.length;a<l;a++){const u=s[a];i[a]=t(e[u],u,a,o&&o[a])}}else i=[];return n&&(n[r]=i),i}function k4(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(De(r))for(let i=0;i<r.length;i++)e[r[i].name]=r[i].fn;else r&&(e[r.name]=r.key?(...i)=>{const o=r.fn(...i);return o&&(o.key=r.key),o}:r.fn)}return e}function ge(e,t,n={},r,i){if(Zn.isCE||Zn.parent&&ol(Zn.parent)&&Zn.parent.isCE)return t!=="default"&&(n.name=t),ae("slot",n,r&&r());let o=e[t];o&&o._c&&(o._d=!1),I();const s=o&&M4(o(n)),a=Se(Je,{key:n.key||s&&s.key||`_${t}`},s||(r?r():[]),s&&e._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function M4(e){return e.some(t=>bs(t)?!(t.type===vr||t.type===Je&&!M4(t.children)):!0)?e:null}function _B(e,t){const n={};for(const r in e)n[t&&/[A-Z]/.test(r)?`on:${r}`:Kd(r)]=e[r];return n}const Hb=e=>e?Z4(e)?Yg(e)||e.proxy:Hb(e.parent):null,Xd=on(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>Hb(e.parent),$root:e=>Hb(e.root),$emit:e=>e.emit,$options:e=>oE(e),$forceUpdate:e=>e.f||(e.f=()=>Wg(e.update)),$nextTick:e=>e.n||(e.n=Lt.bind(e.proxy)),$watch:e=>hB.bind(e)}),R0=(e,t)=>e!==Ut&&!e.__isScriptSetup&&Ot(e,t),Db={get({_:e},t){const{ctx:n,setupState:r,data:i,props:o,accessCache:s,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const p=s[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return i[t];case 4:return n[t];case 3:return o[t]}else{if(R0(r,t))return s[t]=1,r[t];if(i!==Ut&&Ot(i,t))return s[t]=2,i[t];if((u=e.propsOptions[0])&&Ot(u,t))return s[t]=3,o[t];if(n!==Ut&&Ot(n,t))return s[t]=4,n[t];Vb&&(s[t]=0)}}const c=Xd[t];let d,f;if(c)return t==="$attrs"&&Gr(e,"get",t),c(e);if((d=a.__cssModules)&&(d=d[t]))return d;if(n!==Ut&&Ot(n,t))return s[t]=4,n[t];if(f=l.config.globalProperties,Ot(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:i,ctx:o}=e;return R0(i,t)?(i[t]=n,!0):r!==Ut&&Ot(r,t)?(r[t]=n,!0):Ot(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:i,propsOptions:o}},s){let a;return!!n[s]||e!==Ut&&Ot(e,s)||R0(t,s)||(a=o[0])&&Ot(a,s)||Ot(r,s)||Ot(Xd,s)||Ot(i.config.globalProperties,s)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Ot(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},SB=on({},Db,{get(e,t){if(t!==Symbol.unscopables)return Db.get(e,t,e)},has(e,t){return t[0]!=="_"&&!eF(t)}});function EB(){return null}function CB(){return null}function wB(e){}function TB(e){}function AB(){return null}function IB(){}function xB(e,t){return null}function rE(){return R4().slots}function iE(){return R4().attrs}function LB(e,t,n){const r=fi();if(n&&n.local){const i=ie(e[t]);return ut(()=>e[t],o=>i.value=o),ut(i,o=>{o!==e[t]&&r.emit(`update:${t}`,o)}),i}else return{__v_isRef:!0,get value(){return e[t]},set value(i){r.emit(`update:${t}`,i)}}}function R4(){const e=fi();return e.setupContext||(e.setupContext=Q4(e))}function $f(e){return De(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}function kB(e,t){const n=$f(e);for(const r in t){if(r.startsWith("__skip"))continue;let i=n[r];i?De(i)||lt(i)?i=n[r]={type:i,default:t[r]}:i.default=t[r]:i===null&&(i=n[r]={default:t[r]}),i&&t[`__skip_${r}`]&&(i.skipFactory=!0)}return n}function MB(e,t){return!e||!t?e||t:De(e)&&De(t)?e.concat(t):on({},$f(e),$f(t))}function RB(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function PB(e){const t=fi();let n=e();return ia(),$S(n)&&(n=n.catch(r=>{throw fa(t),r})),[n,()=>fa(t)]}let Vb=!0;function OB(e){const t=oE(e),n=e.proxy,r=e.ctx;Vb=!1,t.beforeCreate&&xT(t.beforeCreate,e,"bc");const{data:i,computed:o,methods:s,watch:a,provide:l,inject:u,created:c,beforeMount:d,mounted:f,beforeUpdate:p,updated:h,activated:m,deactivated:v,beforeDestroy:g,beforeUnmount:y,destroyed:_,unmounted:b,render:S,renderTracked:C,renderTriggered:E,errorCaptured:w,serverPrefetch:T,expose:A,inheritAttrs:L,components:x,directives:k,filters:M}=t;if(u&&$B(u,r,null),s)for(const H in s){const q=s[H];lt(q)&&(r[H]=q.bind(n))}if(i){const H=i.call(n,n);jt(H)&&(e.data=mr(H))}if(Vb=!0,o)for(const H in o){const q=o[H],de=lt(q)?q.bind(n,n):lt(q.get)?q.get.bind(n,n):Yi,se=!lt(q)&<(q.set)?q.set.bind(n):Yi,W=fe({get:de,set:se});Object.defineProperty(r,H,{enumerable:!0,configurable:!0,get:()=>W.value,set:V=>W.value=V})}if(a)for(const H in a)P4(a[H],r,n,H);if(l){const H=lt(l)?l.call(n):l;Reflect.ownKeys(H).forEach(q=>{Ji(q,H[q])})}c&&xT(c,e,"c");function P(H,q){De(q)?q.forEach(de=>H(de.bind(n))):q&&H(q.bind(n))}if(P(w4,d),P($n,f),P(T4,p),P(Xg,h),P(pp,m),P(hp,v),P(x4,w),P(I4,C),P(A4,E),P(Dl,y),P(Rn,b),P(QS,T),De(A))if(A.length){const H=e.exposed||(e.exposed={});A.forEach(q=>{Object.defineProperty(H,q,{get:()=>n[q],set:de=>n[q]=de})})}else e.exposed||(e.exposed={});S&&e.render===Yi&&(e.render=S),L!=null&&(e.inheritAttrs=L),x&&(e.components=x),k&&(e.directives=k)}function $B(e,t,n=Yi){De(e)&&(e=Fb(e));for(const r in e){const i=e[r];let o;jt(i)?"default"in i?o=kt(i.from||r,i.default,!0):o=kt(i.from||r):o=kt(i),qt(o)?Object.defineProperty(t,r,{enumerable:!0,configurable:!0,get:()=>o.value,set:s=>o.value=s}):t[r]=o}}function xT(e,t,n){si(De(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function P4(e,t,n,r){const i=r.includes(".")?_4(n,r):()=>n[r];if(yn(e)){const o=t[e];lt(o)&&ut(i,o)}else if(lt(e))ut(i,e.bind(n));else if(jt(e))if(De(e))e.forEach(o=>P4(o,t,n,r));else{const o=lt(e.handler)?e.handler.bind(n):t[e.handler];lt(o)&&ut(i,o,e)}}function oE(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:i,optionsCache:o,config:{optionMergeStrategies:s}}=e.appContext,a=o.get(t);let l;return a?l=a:!i.length&&!n&&!r?l=t:(l={},i.length&&i.forEach(u=>pv(l,u,s,!0)),pv(l,t,s)),jt(t)&&o.set(t,l),l}function pv(e,t,n,r=!1){const{mixins:i,extends:o}=t;o&&pv(e,o,n,!0),i&&i.forEach(s=>pv(e,s,n,!0));for(const s in t)if(!(r&&s==="expose")){const a=NB[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const NB={data:LT,props:kT,emits:kT,methods:Rd,computed:Rd,beforeCreate:br,created:br,beforeMount:br,mounted:br,beforeUpdate:br,updated:br,beforeDestroy:br,beforeUnmount:br,destroyed:br,unmounted:br,activated:br,deactivated:br,errorCaptured:br,serverPrefetch:br,components:Rd,directives:Rd,watch:DB,provide:LT,inject:HB};function LT(e,t){return t?e?function(){return on(lt(e)?e.call(this,this):e,lt(t)?t.call(this,this):t)}:t:e}function HB(e,t){return Rd(Fb(e),Fb(t))}function Fb(e){if(De(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function br(e,t){return e?[...new Set([].concat(e,t))]:t}function Rd(e,t){return e?on(Object.create(null),e,t):t}function kT(e,t){return e?De(e)&&De(t)?[...new Set([...e,...t])]:on(Object.create(null),$f(e),$f(t??{})):t}function DB(e,t){if(!e)return t;if(!t)return e;const n=on(Object.create(null),e);for(const r in t)n[r]=br(e[r],t[r]);return n}function O4(){return{app:null,config:{isNativeTag:zV,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let VB=0;function FB(e,t){return function(r,i=null){lt(r)||(r=on({},r)),i!=null&&!jt(i)&&(i=null);const o=O4(),s=new Set;let a=!1;const l=o.app={_uid:VB++,_component:r,_props:i,_container:null,_context:o,_instance:null,version:cE,get config(){return o.config},set config(u){},use(u,...c){return s.has(u)||(u&<(u.install)?(s.add(u),u.install(l,...c)):lt(u)&&(s.add(u),u(l,...c))),l},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),l},component(u,c){return c?(o.components[u]=c,l):o.components[u]},directive(u,c){return c?(o.directives[u]=c,l):o.directives[u]},mount(u,c,d){if(!a){const f=ae(r,i);return f.appContext=o,c&&t?t(f,u):e(f,u,d),a=!0,l._container=u,u.__vue_app__=l,Yg(f.component)||f.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,c){return o.provides[u]=c,l},runWithContext(u){Nf=l;try{return u()}finally{Nf=null}}};return l}}let Nf=null;function Ji(e,t){if(Bn){let n=Bn.provides;const r=Bn.parent&&Bn.parent.provides;r===n&&(n=Bn.provides=Object.create(r)),n[e]=t}}function kt(e,t,n=!1){const r=Bn||Zn;if(r||Nf){const i=r?r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides:Nf._context.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&<(t)?t.call(r&&r.proxy):t}}function $4(){return!!(Bn||Zn||Nf)}function BB(e,t,n,r=!1){const i={},o={};lv(o,Zg,1),e.propsDefaults=Object.create(null),N4(e,t,i,o);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=r?i:a4(i):e.type.props?e.props=i:e.props=o,e.attrs=o}function UB(e,t,n,r){const{props:i,attrs:o,vnode:{patchFlag:s}}=e,a=St(i),[l]=e.propsOptions;let u=!1;if((r||s>0)&&!(s&16)){if(s&8){const c=e.vnode.dynamicProps;for(let d=0;d<c.length;d++){let f=c[d];if(Gg(e.emitsOptions,f))continue;const p=t[f];if(l)if(Ot(o,f))p!==o[f]&&(o[f]=p,u=!0);else{const h=jr(f);i[h]=Bb(l,a,h,p,e,!1)}else p!==o[f]&&(o[f]=p,u=!0)}}}else{N4(e,t,i,o)&&(u=!0);let c;
1for(const d in a)(!t||!Ot(t,d)&&((c=Si(d))===d||!Ot(t,c)))&&(l?n&&(n[d]!==void 0||n[c]!==void 0)&&(i[d]=Bb(l,a,d,void 0,e,!0)):delete i[d]);if(o!==a)for(const d in o)(!t||!Ot(t,d))&&(delete o[d],u=!0)}u&&gs(e,"set","$attrs")}function N4(e,t,n,r){const[i,o]=e.propsOptions;let s=!1,a;if(t)for(let l in t){if(qd(l))continue;const u=t[l];let c;i&&Ot(i,c=jr(l))?!o||!o.includes(c)?n[c]=u:(a||(a={}))[c]=u:Gg(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,s=!0)}if(o){const l=St(n),u=a||Ut;for(let c=0;c<o.length;c++){const d=o[c];n[d]=Bb(i,l,d,u[d],e,!Ot(u,d))}}return s}function Bb(e,t,n,r,i,o){const s=e[n];if(s!=null){const a=Ot(s,"default");if(a&&r===void 0){const l=s.default;if(s.type!==Function&&!s.skipFactory&<(l)){const{propsDefaults:u}=i;n in u?r=u[n]:(fa(i),r=u[n]=l.call(null,t),ia())}else r=l}s[0]&&(o&&!a?r=!1:s[1]&&(r===""||r===Si(n))&&(r=!0))}return r}function H4(e,t,n=!1){const r=t.propsCache,i=r.get(e);if(i)return i;const o=e.props,s={},a=[];let l=!1;if(!lt(e)){const c=d=>{l=!0;const[f,p]=H4(d,t,!0);on(s,f),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}if(!o&&!l)return jt(e)&&r.set(e,Uu),Uu;if(De(o))for(let c=0;c<o.length;c++){const d=jr(o[c]);MT(d)&&(s[d]=Ut)}else if(o)for(const c in o){const d=jr(c);if(MT(d)){const f=o[c],p=s[d]=De(f)||lt(f)?{type:f}:on({},f);if(p){const h=OT(Boolean,p.type),m=OT(String,p.type);p[0]=h>-1,p[1]=m<0||h<m,(h>-1||Ot(p,"default"))&&a.push(d)}}}const u=[s,a];return jt(e)&&r.set(e,u),u}function MT(e){return e[0]!=="$"}function RT(e){const t=e&&e.toString().match(/^\s*(function|class) (\w+)/);return t?t[2]:e===null?"null":""}function PT(e,t){return RT(e)===RT(t)}function OT(e,t){return De(t)?t.findIndex(n=>PT(n,e)):lt(t)&&PT(t,e)?0:-1}const D4=e=>e[0]==="_"||e==="$stable",sE=e=>De(e)?e.map(ii):[ii(e)],jB=(e,t,n)=>{if(t._n)return t;const r=pe((...i)=>sE(t(...i)),n);return r._c=!1,r},V4=(e,t,n)=>{const r=e._ctx;for(const i in e){if(D4(i))continue;const o=e[i];if(lt(o))t[i]=jB(i,o,r);else if(o!=null){const s=sE(o);t[i]=()=>s}}},F4=(e,t)=>{const n=sE(t);e.slots.default=()=>n},WB=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=St(t),lv(t,"_",n)):V4(t,e.slots={})}else e.slots={},t&&F4(e,t);lv(e.slots,Zg,1)},GB=(e,t,n)=>{const{vnode:r,slots:i}=e;let o=!0,s=Ut;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:(on(i,t),!n&&a===1&&delete i._):(o=!t.$stable,V4(t,i)),s=t}else t&&(F4(e,t),s={default:1});if(o)for(const a in i)!D4(a)&&!(a in s)&&delete i[a]};function hv(e,t,n,r,i=!1){if(De(e)){e.forEach((f,p)=>hv(f,t&&(De(t)?t[p]:t),n,r,i));return}if(ol(r)&&!i)return;const o=r.shapeFlag&4?Yg(r.component)||r.component.proxy:r.el,s=i?null:o,{i:a,r:l}=e,u=t&&t.r,c=a.refs===Ut?a.refs={}:a.refs,d=a.setupState;if(u!=null&&u!==l&&(yn(u)?(c[u]=null,Ot(d,u)&&(d[u]=null)):qt(u)&&(u.value=null)),lt(l))ls(l,a,12,[s,c]);else{const f=yn(l),p=qt(l);if(f||p){const h=()=>{if(e.f){const m=f?Ot(d,l)?d[l]:c[l]:l.value;i?De(m)&&OS(m,o):De(m)?m.includes(o)||m.push(o):f?(c[l]=[o],Ot(d,l)&&(d[l]=c[l])):(l.value=[o],e.k&&(c[e.k]=l.value))}else f?(c[l]=s,Ot(d,l)&&(d[l]=s)):p&&(l.value=s,e.k&&(c[e.k]=s))};s?(h.id=-1,Qn(h,n)):h()}}}let $s=!1;const ph=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",hh=e=>e.nodeType===8;function zB(e){const{mt:t,p:n,o:{patchProp:r,createText:i,nextSibling:o,parentNode:s,remove:a,insert:l,createComment:u}}=e,c=(g,y)=>{if(!y.hasChildNodes()){n(null,g,y),fv(),y._vnode=g;return}$s=!1,d(y.firstChild,g,null,null,null),fv(),y._vnode=g,$s&&console.error("Hydration completed but contains mismatches.")},d=(g,y,_,b,S,C=!1)=>{const E=hh(g)&&g.data==="[",w=()=>m(g,y,_,b,S,E),{type:T,ref:A,shapeFlag:L,patchFlag:x}=y;let k=g.nodeType;y.el=g,x===-2&&(C=!1,y.dynamicChildren=null);let M=null;switch(T){case gl:k!==3?y.children===""?(l(y.el=i(""),s(g),g),M=g):M=w():(g.data!==y.children&&($s=!0,g.data=y.children),M=o(g));break;case vr:k!==8||E?M=w():M=o(g);break;case sl:if(E&&(g=o(g),k=g.nodeType),k===1||k===3){M=g;const z=!y.children.length;for(let P=0;P<y.staticCount;P++)z&&(y.children+=M.nodeType===1?M.outerHTML:M.data),P===y.staticCount-1&&(y.anch
1or=M),M=o(M);return E?o(M):M}else w();break;case Je:E?M=h(g,y,_,b,S,C):M=w();break;default:if(L&1)k!==1||y.type.toLowerCase()!==g.tagName.toLowerCase()?M=w():M=f(g,y,_,b,S,C);else if(L&6){y.slotScopeIds=S;const z=s(g);if(t(y,z,null,_,b,ph(z),C),M=E?v(g):o(g),M&&hh(M)&&M.data==="teleport end"&&(M=o(M)),ol(y)){let P;E?(P=ae(Je),P.anchor=M?M.previousSibling:z.lastChild):P=g.nodeType===3?_t(""):ae("div"),P.el=g,y.component.subTree=P}}else L&64?k!==8?M=w():M=y.type.hydrate(g,y,_,b,S,C,e,p):L&128&&(M=y.type.hydrate(g,y,_,b,ph(s(g)),S,C,e,d))}return A!=null&&hv(A,null,b,y),M},f=(g,y,_,b,S,C)=>{C=C||!!y.dynamicChildren;const{type:E,props:w,patchFlag:T,shapeFlag:A,dirs:L}=y,x=E==="input"&&L||E==="option";if(x||T!==-1){if(L&&So(y,null,_,"created"),w)if(x||!C||T&48)for(const M in w)(x&&M.endsWith("value")||lp(M)&&!qd(M))&&r(g,M,null,w[M],!1,void 0,_);else w.onClick&&r(g,"onClick",null,w.onClick,!1,void 0,_);let k;if((k=w&&w.onVnodeBeforeMount)&&Hr(k,_,y),L&&So(y,null,_,"beforeMount"),((k=w&&w.onVnodeMounted)||L)&&y4(()=>{k&&Hr(k,_,y),L&&So(y,null,_,"mounted")},b),A&16&&!(w&&(w.innerHTML||w.textContent))){let M=p(g.firstChild,y,g,_,b,S,C);for(;M;){$s=!0;const z=M;M=M.nextSibling,a(z)}}else A&8&&g.textContent!==y.children&&($s=!0,g.textContent=y.children)}return g.nextSibling},p=(g,y,_,b,S,C,E)=>{E=E||!!y.dynamicChildren;const w=y.children,T=w.length;for(let A=0;A<T;A++){const L=E?w[A]:w[A]=ii(w[A]);if(g)g=d(g,L,b,S,C,E);else{if(L.type===gl&&!L.children)continue;$s=!0,n(null,L,_,null,b,S,ph(_),C)}}return g},h=(g,y,_,b,S,C)=>{const{slotScopeIds:E}=y;E&&(S=S?S.concat(E):E);const w=s(g),T=p(o(g),y,w,_,b,S,C);return T&&hh(T)&&T.data==="]"?o(y.anchor=T):($s=!0,l(y.anchor=u("]"),w,T),T)},m=(g,y,_,b,S,C)=>{if($s=!0,y.el=null,C){const T=v(g);for(;;){const A=o(g);if(A&&A!==T)a(A);else break}}const E=o(g),w=s(g);return a(g),n(null,y,w,E,_,b,ph(w),S),E},v=g=>{let y=0;for(;g;)if(g=o(g),g&&hh(g)&&(g.data==="["&&y++,g.data==="]")){if(y===0)return o(g);y--}return g};return[c,d]}const Qn=y4;function B4(e){return j4(e)}function U4(e){return j4(e,zB)}function j4(e,t){const n=Rb();n.__VUE__=!0;const{insert:r,remove:i,patchProp:o,createElement:s,createText:a,createComment:l,setText:u,setElementText:c,parentNode:d,nextSibling:f,setScopeId:p=Yi,insertStaticContent:h}=e,m=($,U,ee,ce=null,me=null,Ce=null,xe=!1,Ae=null,te=!!U.dynamicChildren)=>{if($===U)return;$&&!Ki($,U)&&(ce=re($),V($,me,Ce,!0),$=null),U.patchFlag===-2&&(te=!1,U.dynamicChildren=null);const{type:le,ref:ye,shapeFlag:D}=U;switch(le){case gl:v($,U,ee,ce);break;case vr:g($,U,ee,ce);break;case sl:$==null&&y(U,ee,ce,xe);break;case Je:x($,U,ee,ce,me,Ce,xe,Ae,te);break;default:D&1?S($,U,ee,ce,me,Ce,xe,Ae,te):D&6?k($,U,ee,ce,me,Ce,xe,Ae,te):(D&64||D&128)&&le.process($,U,ee,ce,me,Ce,xe,Ae,te,Le)}ye!=null&&me&&hv(ye,$&&$.ref,Ce,U||$,!U)},v=($,U,ee,ce)=>{if($==null)r(U.el=a(U.children),ee,ce);else{const me=U.el=$.el;U.children!==$.children&&u(me,U.children)}},g=($,U,ee,ce)=>{$==null?r(U.el=l(U.children||""),ee,ce):U.el=$.el},y=($,U,ee,ce)=>{[$.el,$.anchor]=h($.children,U,ee,ce,$.el,$.anchor)},_=({el:$,anchor:U},ee,ce)=>{let me;for(;$&&$!==U;)me=f($),r($,ee,ce),$=me;r(U,ee,ce)},b=({el:$,anchor:U})=>{let ee;for(;$&&$!==U;)ee=f($),i($),$=ee;i(U)},S=($,U,ee,ce,me,Ce,xe,Ae,te)=>{xe=xe||U.type==="svg",$==null?C(U,ee,ce,me,Ce,xe,Ae,te):T($,U,me,Ce,xe,Ae,te)},C=($,U,ee,ce,me,Ce,xe,Ae)=>{let te,le;const{type:ye,props:D,shapeFlag:j,transition:Z,dirs:_e}=$;if(te=$.el=s($.type,Ce,D&&D.is,D),j&8?c(te,$.children):j&16&&w($.children,te,null,ce,me,Ce&&ye!=="foreignObject",xe,Ae),_e&&So($,null,ce,"created"),E(te,$,$.scopeId,xe,ce),D){for(const Xe in D)Xe!=="value"&&!qd(Xe)&&o(te,Xe,null,D[Xe],Ce,$.children,ce,me,Q);"value"in D&&o(te,"value",null,D.value),(le=D.onVnodeBeforeMount)&&Hr(le,ce,$)}_e&&So($,null,ce,"beforeMount");const Te=(!me||me&&!me.pendingBranch)&&Z&&!Z.persisted;Te&&Z.beforeEnter(te),r(te,U,ee),((le=D&&D.onVnodeMounted)||Te||_e)&&Qn(()=>{le&&Hr(le,ce,$),Te&&Z.enter(te),_e&&So($,null,ce,"mounted")},me)},E=($,U,ee,ce,me)=>{if(ee&&p($,ee),ce)for(let Ce=0;Ce<ce.length;Ce++)p($,ce[Ce]);if(me){let Ce=me.subTree;if(U===Ce){const xe=me.vnode;E($,xe,xe.scopeId,xe.slotScopeIds,me.parent)}}},w=($,U,ee,ce,me,Ce,xe,Ae,te=0)=>{for(let le=te;le<$.length;le++){const ye=$[le]=Ae?Us($[le]):ii($[le]);m(null,ye,U,ee,ce,me,Ce,xe,Ae)}},T=($,U,ee,ce,me,Ce,xe)=>{const Ae=U.el=$.el;let{patchFlag:te,dynamicChildren:le,dirs:ye}=U;te|=$.patchFlag&16;const D=$.props||Ut,j=U.props||Ut;let Z;ee&&Ra(ee,!1),(Z=j.onVnodeBeforeUpdate)&&Hr(Z,ee,U,$),ye&&So(U,$,ee,"beforeUpdate"),ee&&Ra(ee,!0);const _e=me&&U.type!=="foreignObject";if(le?A($.dynamicChildren,le,Ae,ee,ce,_e,Ce):xe||q($,U,Ae,null,ee,ce,_e,Ce,!1),te>0){if(te&16)L(Ae,U,D,j,ee,ce,me);else if(te&2&&D.class!==j.class&&o(Ae,"class",null,j.class,me),te&4&&o(Ae,"style",D.style,j.style,me),te&8){const Te=U.dynamicProps;for(let Xe=0;Xe<Te.length;Xe++){const N=Te[Xe],G=D[N],J=j[N];(J!==G||N==="value")&&o(Ae,N,G,J,me,$.children,ee,ce,Q)}}te&1&&$.children!==U.children&&c(Ae,U.children)}else!xe&&le==null&&L(Ae,U,D,j,ee,ce,me);((Z=j.onVnodeUpdated)||ye)&&Qn(()=>
vendor: 5,177 bytes, line 1
1{Z&&Hr(Z,ee,U,$),ye&&So(U,$,ee,"updated")},ce)},A=($,U,ee,ce,me,Ce,xe)=>{for(let Ae=0;Ae<U.length;Ae++){const te=$[Ae],le=U[Ae],ye=te.el&&(te.type===Je||!Ki(te,le)||te.shapeFlag&70)?d(te.el):ee;m(te,le,ye,null,ce,me,Ce,xe,!0)}},L=($,U,ee,ce,me,Ce,xe)=>{if(ee!==ce){if(ee!==Ut)for(const Ae in ee)!qd(Ae)&&!(Ae in ce)&&o($,Ae,ee[Ae],null,xe,U.children,me,Ce,Q);for(const Ae in ce){if(qd(Ae))continue;const te=ce[Ae],le=ee[Ae];te!==le&&Ae!=="value"&&o($,Ae,le,te,xe,U.children,me,Ce,Q)}"value"in ce&&o($,"value",ee.value,ce.value)}},x=($,U,ee,ce,me,Ce,xe,Ae,te)=>{const le=U.el=$?$.el:a(""),ye=U.anchor=$?$.anchor:a("");let{patchFlag:D,dynamicChildren:j,slotScopeIds:Z}=U;Z&&(Ae=Ae?Ae.concat(Z):Z),$==null?(r(le,ee,ce),r(ye,ee,ce),w(U.children,ee,ye,me,Ce,xe,Ae,te)):D>0&&D&64&&j&&$.dynamicChildren?(A($.dynamicChildren,j,ee,me,Ce,xe,Ae),(U.key!=null||me&&U===me.subTree)&&aE($,U,!0)):q($,U,ee,ye,me,Ce,xe,Ae,te)},k=($,U,ee,ce,me,Ce,xe,Ae,te)=>{U.slotScopeIds=Ae,$==null?U.shapeFlag&512?me.ctx.activate(U,ee,ce,xe,te):M(U,ee,ce,me,Ce,xe,te):z($,U,te)},M=($,U,ee,ce,me,Ce,xe)=>{const Ae=$.component=X4($,ce,me);if(fp($)&&(Ae.ctx.renderer=Le),Y4(Ae),Ae.asyncDep){if(me&&me.registerDep(Ae,P),!$.el){const te=Ae.subTree=ae(vr);g(null,te,U,ee)}return}P(Ae,$,U,ee,me,Ce,xe)},z=($,U,ee)=>{const ce=U.component=$.component;if(oB($,U,ee))if(ce.asyncDep&&!ce.asyncResolved){H(ce,U,ee);return}else ce.next=U,JF(ce.update),ce.update();else U.el=$.el,ce.vnode=U},P=($,U,ee,ce,me,Ce,xe)=>{const Ae=()=>{if($.isMounted){let{next:ye,bu:D,u:j,parent:Z,vnode:_e}=$,Te=ye,Xe;Ra($,!1),ye?(ye.el=_e.el,H($,ye,xe)):ye=_e,D&&Wu(D),(Xe=ye.props&&ye.props.onVnodeBeforeUpdate)&&Hr(Xe,Z,ye,_e),Ra($,!0);const N=fm($),G=$.subTree;$.subTree=N,m(G,N,d(G.el),re(G),$,me,Ce),ye.el=N.el,Te===null&&XS($,N.el),j&&Qn(j,me),(Xe=ye.props&&ye.props.onVnodeUpdated)&&Qn(()=>Hr(Xe,Z,ye,_e),me)}else{let ye;const{el:D,props:j}=U,{bm:Z,m:_e,parent:Te}=$,Xe=ol(U);if(Ra($,!1),Z&&Wu(Z),!Xe&&(ye=j&&j.onVnodeBeforeMount)&&Hr(ye,Te,U),Ra($,!0),D&&He){const N=()=>{$.subTree=fm($),He(D,$.subTree,$,me,null)};Xe?U.type.__asyncLoader().then(()=>!$.isUnmounted&&N()):N()}else{const N=$.subTree=fm($);m(null,N,ee,ce,$,me,Ce),U.el=N.el}if(_e&&Qn(_e,me),!Xe&&(ye=j&&j.onVnodeMounted)){const N=U;Qn(()=>Hr(ye,Te,N),me)}(U.shapeFlag&256||Te&&ol(Te.vnode)&&Te.vnode.shapeFlag&256)&&$.a&&Qn($.a,me),$.isMounted=!0,U=ee=ce=null}},te=$.effect=new cp(Ae,()=>Wg(le),$.scope),le=$.update=()=>te.run();le.id=$.uid,Ra($,!0),le()},H=($,U,ee)=>{U.component=$;const ce=$.vnode.props;$.vnode=U,$.next=null,UB($,U.props,ce,ee),GB($,U.children,ee),Vc(),CT(),Fc()},q=($,U,ee,ce,me,Ce,xe,Ae,te=!1)=>{const le=$&&$.children,ye=$?$.shapeFlag:0,D=U.children,{patchFlag:j,shapeFlag:Z}=U;if(j>0){if(j&128){se(le,D,ee,ce,me,Ce,xe,Ae,te);return}else if(j&256){de(le,D,ee,ce,me,Ce,xe,Ae,te);return}}Z&8?(ye&16&&Q(le,me,Ce),D!==le&&c(ee,D)):ye&16?Z&16?se(le,D,ee,ce,me,Ce,xe,Ae,te):Q(le,me,Ce,!0):(ye&8&&c(ee,""),Z&16&&w(D,ee,ce,me,Ce,xe,Ae,te))},de=($,U,ee,ce,me,Ce,xe,Ae,te)=>{$=$||Uu,U=U||Uu;const le=$.length,ye=U.length,D=Math.min(le,ye);let j;for(j=0;j<D;j++){const Z=U[j]=te?Us(U[j]):ii(U[j]);m($[j],Z,ee,null,me,Ce,xe,Ae,te)}le>ye?Q($,me,Ce,!0,!1,D):w(U,ee,ce,me,Ce,xe,Ae,te,D)},se=($,U,ee,ce,me,Ce,xe,Ae,te)=>{let le=0;const ye=U.length;let D=$.length-1,j=ye-1;for(;le<=D&&le<=j;){const Z=$[le],_e=U[le]=te?Us(U[le]):ii(U[le]);if(Ki(Z,_e))m(Z,_e,ee,null,me,Ce,xe,Ae,te);else break;le++}for(;le<=D&&le<=j;){const Z=$[D],_e=U[j]=te?Us(U[j]):ii(U[j]);if(Ki(Z,_e))m(Z,_e,ee,null,me,Ce,xe,Ae,te);else break;D--,j--}if(le>D){if(le<=j){const Z=j+1,_e=Z<ye?U[Z].el:ce;for(;le<=j;)m(null,U[le]=te?Us(U[le]):ii(U[le]),ee,_e,me,Ce,xe,Ae,te),le++}}else if(le>j)for(;le<=D;)V($[le],me,Ce,!0),le++;else{const Z=le,_e=le,Te=new Map;for(le=_e;le<=j;le++){const We=U[le]=te?Us(U[le]):ii(U[le]);We.key!=null&&Te.set(We.key,le)}let Xe,N=0;const G=j-_e+1;let J=!1,we=0;const ke=new Array(G);for(le=0;le<G;le++)ke[le]=0;for(le=Z;le<=D;le++){const We=$[le];if(N>=G){V(We,me,Ce,!0);continue}let ht;if(We.key!=null)ht=Te.get(We.key);else for(Xe=_e;Xe<=j;Xe++)if(ke[Xe-_e]===0&&Ki(We,U[Xe])){ht=Xe;break}ht===void 0?V(We,me,Ce,!0):(ke[ht-_e]=le+1,ht>=we?we=ht:J=!0,m(We,U[ht],ee,null,me,Ce,xe,Ae,te),N++)}const Ze=J?qB(ke):Uu;for(Xe=Ze.length-1,le=G-1;le>=0;le--){const We=_e+le,ht=U[We],hn=We+1<ye?U[We+1].el:ce;ke[le]===0?m(null,ht,ee,hn,me,Ce,xe,Ae,te):J&&(Xe<0||le!==Ze[Xe]?W(ht,ee,hn,2):Xe--)}}},W=($,U,ee,ce,me=null)=>{const{el:Ce,type:xe,transition:Ae,children:te,shapeFlag:le}=$;if(le&6){W($.component.subTree,U,ee,ce);return}if(le&128){$.suspense.move(U,ee,ce);return}if(le&64){xe.move($,U,ee,Le);return}if(xe===Je){r(Ce,U,ee);for(let D=0;D<te.length;D++)W(te[D],U,ee,ce);r($.anchor,U,ee);return}if(xe===sl){_($,U,ee);return}if(ce!==2&&le&1&&Ae)if(ce===0)Ae.beforeEnter(Ce),r(Ce,U,ee),Qn(()=>Ae.enter(Ce),me);else{const{leave:D,delayLeave:j,afterLeave:Z}=Ae,_e=()=>r(Ce,U,ee),Te=()=>{D(Ce,()=>{_e(),Z&&Z()})};j?j(Ce,_e,Te):Te()}else r(Ce,U,ee)},V=($,U,ee,ce=!1,me=!1)=>{const{type:Ce,props:xe,ref:Ae,children:te,dynamicChildren:le,shapeFlag:ye,patchFlag:D,dirs:j}=$;if(Ae!=null&&hv(Ae,null,ee,$,!0),ye&256){U.ctx.deactivate($);return}const Z=ye&1&&j,_e=!ol($);let Te;
1if(_e&&(Te=xe&&xe.onVnodeBeforeUnmount)&&Hr(Te,U,$),ye&6)F($.component,ee,ce);else{if(ye&128){$.suspense.unmount(ee,ce);return}Z&&So($,null,U,"beforeUnmount"),ye&64?$.type.remove($,U,ee,me,Le,ce):le&&(Ce!==Je||D>0&&D&64)?Q(le,U,ee,!1,!0):(Ce===Je&&D&384||!me&&ye&16)&&Q(te,U,ee),ce&&B($)}(_e&&(Te=xe&&xe.onVnodeUnmounted)||Z)&&Qn(()=>{Te&&Hr(Te,U,$),Z&&So($,null,U,"unmounted")},ee)},B=$=>{const{type:U,el:ee,anchor:ce,transition:me}=$;if(U===Je){Y(ee,ce);return}if(U===sl){b($);return}const Ce=()=>{i(ee),me&&!me.persisted&&me.afterLeave&&me.afterLeave()};if($.shapeFlag&1&&me&&!me.persisted){const{leave:xe,delayLeave:Ae}=me,te=()=>xe(ee,Ce);Ae?Ae($.el,Ce,te):te()}else Ce()},Y=($,U)=>{let ee;for(;$!==U;)ee=f($),i($),$=ee;i(U)},F=($,U,ee)=>{const{bum:ce,scope:me,update:Ce,subTree:xe,um:Ae}=$;ce&&Wu(ce),me.stop(),Ce&&(Ce.active=!1,V(xe,$,U,ee)),Ae&&Qn(Ae,U),Qn(()=>{$.isUnmounted=!0},U),U&&U.pendingBranch&&!U.isUnmounted&&$.asyncDep&&!$.asyncResolved&&$.suspenseId===U.pendingId&&(U.deps--,U.deps===0&&U.resolve())},Q=($,U,ee,ce=!1,me=!1,Ce=0)=>{for(let xe=Ce;xe<$.length;xe++)V($[xe],U,ee,ce,me)},re=$=>$.shapeFlag&6?re($.component.subTree):$.shapeFlag&128?$.suspense.next():f($.anchor||$.el),be=($,U,ee)=>{$==null?U._vnode&&V(U._vnode,null,null,!0):m(U._vnode||null,$,U,null,null,null,ee),CT(),fv(),U._vnode=$},Le={p:m,um:V,m:W,r:B,mt:M,mc:w,pc:q,pbc:A,n:re,o:e};let Me,He;return t&&([Me,He]=t(Le)),{render:be,hydrate:Me,createApp:FB(be,Me)}}function Ra({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function aE(e,t,n=!1){const r=e.children,i=t.children;if(De(r)&&De(i))for(let o=0;o<r.length;o++){const s=r[o];let a=i[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[o]=Us(i[o]),a.el=s.el),n||aE(s,a)),a.type===gl&&(a.el=s.el)}}function qB(e){const t=e.slice(),n=[0];let r,i,o,s,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(i=n[n.length-1],e[i]<u){t[r]=i,n.push(r);continue}for(o=0,s=n.length-1;o<s;)a=o+s>>1,e[n[a]]<u?o=a+1:s=a;u<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,s=n[o-1];o-- >0;)n[o]=s,s=t[s];return n}const KB=e=>e.__isTeleport,Zd=e=>e&&(e.disabled||e.disabled===""),$T=e=>typeof SVGElement<"u"&&e instanceof SVGElement,Ub=(e,t)=>{const n=e&&e.to;return yn(n)?t?t(n):null:n},XB={__isTeleport:!0,process(e,t,n,r,i,o,s,a,l,u){const{mc:c,pc:d,pbc:f,o:{insert:p,querySelector:h,createText:m,createComment:v}}=u,g=Zd(t.props);let{shapeFlag:y,children:_,dynamicChildren:b}=t;if(e==null){const S=t.el=m(""),C=t.anchor=m("");p(S,n,r),p(C,n,r);const E=t.target=Ub(t.props,h),w=t.targetAnchor=m("");E&&(p(w,E),s=s||$T(E));const T=(A,L)=>{y&16&&c(_,A,L,i,o,s,a,l)};g?T(n,C):E&&T(E,w)}else{t.el=e.el;const S=t.anchor=e.anchor,C=t.target=e.target,E=t.targetAnchor=e.targetAnchor,w=Zd(e.props),T=w?n:C,A=w?S:E;if(s=s||$T(C),b?(f(e.dynamicChildren,b,T,i,o,s,a),aE(e,t,!0)):l||d(e,t,T,A,i,o,s,a,!1),g)w||mh(t,n,S,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const L=t.target=Ub(t.props,h);L&&mh(t,L,null,u,0)}else w&&mh(t,C,E,u,1)}W4(t)},remove(e,t,n,r,{um:i,o:{remove:o}},s){const{shapeFlag:a,children:l,anchor:u,targetAnchor:c,target:d,props:f}=e;if(d&&o(c),(s||!Zd(f))&&(o(u),a&16))for(let p=0;p<l.length;p++){const h=l[p];i(h,t,n,!0,!!h.dynamicChildren)}},move:mh,hydrate:ZB};function mh(e,t,n,{o:{insert:r},m:i},o=2){o===0&&r(e.targetAnchor,t,n);const{el:s,anchor:a,shapeFlag:l,children:u,props:c}=e,d=o===2;if(d&&r(s,t,n),(!d||Zd(c))&&l&16)for(let f=0;f<u.length;f++)i(u[f],t,n,2);d&&r(a,t,n)}function ZB(e,t,n,r,i,o,{o:{nextSibling:s,parentNode:a,querySelector:l}},u){const c=t.target=Ub(t.props,l);if(c){const d=c._lpa||c.firstChild;if(t.shapeFlag&16)if(Zd(t.props))t.anchor=u(s(e),t,a(e),n,r,i,o),t.targetAnchor=d;else{t.anchor=s(e);let f=d;for(;f;)if(f=s(f),f&&f.nodeType===8&&f.data==="teleport anchor"){t.targetAnchor=f,c._lpa=t.targetAnchor&&s(t.targetAnchor);break}u(d,t,c,n,r,i,o)}W4(t)}return t.anchor&&s(t.anchor)}const ys=XB;function W4(e){const t=e.ctx;if(t&&t.ut){let n=e.children[0].el;for(;n!==e.targetAnchor;)n.nodeType===1&&n.setAttribute("data-v-owner",t.uid),n=n.nextSibling;t.ut()}}
vendor: 4,118 bytes, line 1
1const Je=Symbol.for("v-fgt"),gl=Symbol.for("v-txt"),vr=Symbol.for("v-cmt"),sl=Symbol.for("v-stc"),Yd=[];let Ur=null;function I(e=!1){Yd.push(Ur=e?null:[])}function G4(){Yd.pop(),Ur=Yd[Yd.length-1]||null}let yl=1;function jb(e){yl+=e}function z4(e){return e.dynamicChildren=yl>0?Ur||Uu:null,G4(),yl>0&&Ur&&Ur.push(e),e}function R(e,t,n,r,i,o){return z4(O(e,t,n,r,i,o,!0))}function Se(e,t,n,r,i){return z4(ae(e,t,n,r,i,!0))}function bs(e){return e?e.__v_isVNode===!0:!1}function Ki(e,t){return e.type===t.type&&e.key===t.key}function YB(e){}const Zg="__vInternal",q4=({key:e})=>e??null,pm=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?yn(e)||qt(e)||lt(e)?{i:Zn,r:e,k:t,f:!!n}:e:null);function O(e,t=null,n=null,r=0,i=null,o=e===Je?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&q4(t),ref:t&&pm(t),scopeId:zg,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:i,dynamicChildren:null,appContext:null,ctx:Zn};return a?(lE(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=yn(n)?8:16),yl>0&&!s&&Ur&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&Ur.push(l),l}const ae=JB;function JB(e,t=null,n=null,r=0,i=null,o=!1){if((!e||e===L4)&&(e=vr),bs(e)){const a=Mi(e,t,!0);return n&&lE(a,n),yl>0&&!o&&Ur&&(a.shapeFlag&6?Ur[Ur.indexOf(e)]=a:Ur.push(a)),a.patchFlag|=-2,a}if(sU(e)&&(e=e.__vccOpts),t){t=K4(t);let{class:a,style:l}=t;a&&!yn(a)&&(t.class=Ie(a)),jt(l)&&(US(l)&&!De(l)&&(l=on({},l)),t.style=vt(l))}const s=yn(e)?1:g4(e)?128:KB(e)?64:jt(e)?4:lt(e)?2:0;return O(e,t,n,r,i,s,o,!0)}function K4(e){return e?US(e)||Zg in e?on({},e):e:null}function Mi(e,t,n=!1){const{props:r,ref:i,patchFlag:o,children:s}=e,a=t?Un(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&q4(a),ref:t&&t.ref?n&&i?De(i)?i.concat(pm(t)):[i,pm(t)]:pm(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Je?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Mi(e.ssContent),ssFallback:e.ssFallback&&Mi(e.ssFallback),el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce}}function _t(e=" ",t=0){return ae(gl,null,e,t)}function QB(e,t){const n=ae(sl,null,e);return n.staticCount=t,n}function K(e="",t=!1){return t?(I(),Se(vr,null,e)):ae(vr,null,e)}function ii(e){return e==null||typeof e=="boolean"?ae(vr):De(e)?ae(Je,null,e.slice()):typeof e=="object"?Us(e):ae(gl,null,String(e))}function Us(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Mi(e)}function lE(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(De(t))n=16;else if(typeof t=="object")if(r&65){const i=t.default;i&&(i._c&&(i._d=!1),lE(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(Zg in t)?t._ctx=Zn:i===3&&Zn&&(Zn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else lt(t)?(t={default:t,_ctx:Zn},n=32):(t=String(t),r&64?(n=16,t=[_t(t)]):n=8);e.children=t,e.shapeFlag|=n}function Un(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const i in r)if(i==="class")t.class!==r.class&&(t.class=Ie([t.class,r.class]));else if(i==="style")t.style=vt([t.style,r.style]);else if(lp(i)){const o=t[i],s=r[i];s&&o!==s&&!(De(o)&&o.includes(s))&&(t[i]=o?[].concat(o,s):s)}else i!==""&&(t[i]=r[i])}return t}function Hr(e,t,n,r=null){si(e,t,7,[n,r])}const eU=O4();let tU=0;function X4(e,t,n){const r=e.type,i=(t?t.appContext:e.appContext)||eU,o={uid:tU++,vnode:e,type:r,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new HS(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:H4(r,i),emitsOptions:v4(r,i),emit:null,emitted:null,propsDefaults:Ut,inheritAttrs:r.inheritAttrs,ctx:Ut,data:Ut,props:Ut,attrs:Ut,
1slots:Ut,refs:Ut,setupState:Ut,setupContext:null,attrsProxy:null,slotsProxy:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=eB.bind(null,o),e.ce&&e.ce(o),o}let Bn=null;const fi=()=>Bn||Zn;let uE,nu,NT="__VUE_INSTANCE_SETTERS__";(nu=Rb()[NT])||(nu=Rb()[NT]=[]),nu.push(e=>Bn=e),uE=e=>{nu.length>1?nu.forEach(t=>t(e)):nu[0](e)};const fa=e=>{uE(e),e.scope.on()},ia=()=>{Bn&&Bn.scope.off(),uE(null)};function Z4(e){return e.vnode.shapeFlag&4}let oc=!1;function Y4(e,t=!1){oc=t;const{props:n,children:r}=e.vnode,i=Z4(e);BB(e,n,i,t),WB(e,r);const o=i?nU(e,t):void 0;return oc=!1,o}function nU(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Nl(new Proxy(e.ctx,Db));const{setup:r}=n;if(r){const i=e.setupContext=r.length>1?Q4(e):null;fa(e),Vc();const o=ls(r,e,0,[e.props,i]);if(Fc(),ia(),$S(o)){if(o.then(ia,ia),t)return o.then(s=>{Wb(e,s,t)}).catch(s=>{Hl(s,e,0)});e.asyncDep=o}else Wb(e,o,t)}else J4(e,t)}function Wb(e,t,n){lt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:jt(t)&&(e.setupState=kf(t)),J4(e,n)}let mv,Gb;function rU(e){mv=e,Gb=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,SB))}}const iU=()=>!mv;function J4(e,t,n){const r=e.type;if(!e.render){if(!t&&mv&&!r.render){const i=r.template||oE(e).template;if(i){const{isCustomElement:o,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,u=on(on({isCustomElement:o,delimiters:a},s),l);r.render=mv(i,u)}}e.render=r.render||Yi,Gb&&Gb(e)}fa(e),Vc(),OB(e),Fc(),ia()}function oU(e){return e.attrsProxy||(e.attrsProxy=new Proxy(e.attrs,{get(t,n){return Gr(e,"get","$attrs"),t[n]}}))}function Q4(e){const t=n=>{e.exposed=n||{}};return{get attrs(){return oU(e)},slots:e.slots,emit:e.emit,expose:t}}function Yg(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(kf(Nl(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Xd)return Xd[n](e)},has(t,n){return n in t||n in Xd}}))}function zb(e,t=!0){return lt(e)?e.displayName||e.name:e.name||t&&e.__name}function sU(e){return lt(e)&&"__vccOpts"in e}const fe=(e,t)=>qF(e,t,oc);function io(e,t,n){const r=arguments.length;return r===2?jt(t)&&!De(t)?bs(t)?ae(e,null,[t]):ae(e,t):ae(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&bs(n)&&(n=[n]),ae(e,t,n))}const eR=Symbol.for("v-scx"),tR=()=>kt(eR);function aU(){}function lU(e,t,n,r){const i=n[r];if(i&&nR(i,e))return i;const o=t();return o.memo=e.slice(),n[r]=o}function nR(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(rc(n[r],t[r]))return!1;return yl>0&&Ur&&Ur.push(e),!0}const cE="3.3.4",uU={createComponentInstance:X4,setupComponent:Y4,renderComponentRoot:fm,setCurrentRenderingInstance:Pf,isVNode:bs,normalizeVNode:ii},cU=uU,dU=null,fU=null,pU="http://www.w3.org/2000/svg",za=typeof document<"u"?document:null,HT=za&&za.createElement("template"),hU={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const i=t?za.createElementNS(pU,e):za.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&i.setAttribute("multiple",r.multiple),i},createText:e=>za.createTextNode(e),createComment:e=>za.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>
1{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>za.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,r,i,o){const s=n?n.previousSibling:t.lastChild;if(i&&(i===o||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===o||!(i=i.nextSibling)););else{HT.innerHTML=r?`<svg>${e}</svg>`:e;const a=HT.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function mU(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function vU(e,t,n){const r=e.style,i=yn(n);if(n&&!i){if(t&&!yn(t))for(const o in t)n[o]==null&&qb(r,o,"");for(const o in n)qb(r,o,n[o])}else{const o=r.display;i?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const DT=/\s*!important$/;function qb(e,t,n){if(De(n))n.forEach(r=>qb(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=gU(e,t);DT.test(n)?e.setProperty(Si(r),n.replace(DT,""),"important"):e[r]=n}}const VT=["Webkit","Moz","ms"],P0={};function gU(e,t){const n=P0[t];if(n)return n;let r=jr(t);if(r!=="filter"&&r in e)return P0[t]=r;r=up(r);for(let i=0;i<VT.length;i++){const o=VT[i]+r;if(o in e)return P0[t]=o}return t}const FT="http://www.w3.org/1999/xlink";function yU(e,t,n,r,i){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(FT,t.slice(6,t.length)):e.setAttributeNS(FT,t,n);else{const o=aF(t);n==null||o&&!GM(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function bU(e,t,n,r,i,o,s){if(t==="innerHTML"||t==="textContent"){r&&s(r,
1i,o),e[t]=n??"";return}const a=e.tagName;if(t==="value"&&a!=="PROGRESS"&&!a.includes("-")){e._value=n;const u=a==="OPTION"?e.getAttribute("value"):e.value,c=n??"";u!==c&&(e.value=c),n==null&&e.removeAttribute(t);return}let l=!1;if(n===""||n==null){const u=typeof e[t];u==="boolean"?n=GM(n):n==null&&u==="string"?(n="",l=!0):u==="number"&&(n=0,l=!0)}try{e[t]=n}catch{}l&&e.removeAttribute(t)}function is(e,t,n,r){e.addEventListener(t,n,r)}function _U(e,t,n,r){e.removeEventListener(t,n,r)}function SU(e,t,n,r,i=null){const o=e._vei||(e._vei={}),s=o[t];if(r&&s)s.value=r;else{const[a,l]=EU(t);if(r){const u=o[t]=TU(r,i);is(e,a,u,l)}else s&&(_U(e,a,s,l),o[t]=void 0)}}const BT=/(?:Once|Passive|Capture)$/;function EU(e){let t;if(BT.test(e)){t={};let r;for(;r=e.match(BT);)e=e.slice(0,e.length-r[0].length),t[r[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Si(e.slice(2)),t]}let O0=0;const CU=Promise.resolve(),wU=()=>O0||(CU.then(()=>O0=0),O0=Date.now());function TU(e,t){const n=r=>{if(!r._vts)r._vts=Date.now();else if(r._vts<=n.attached)return;si(AU(r,n.value),t,5,[r])};return n.value=e,n.attached=wU(),n}function AU(e,t){if(De(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>i=>!i._stopped&&r&&r(i))}else return t}const UT=/^on[a-z]/,IU=(e,t,n,r,i=!1,o,s,a,l)=>{t==="class"?mU(e,r,i):t==="style"?vU(e,n,r):lp(t)?PS(t)||SU(e,t,n,r,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):xU(e,t,r,i))?bU(e,t,r,o,s,a,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),yU(e,t,r,i))};function xU(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&UT.test(t)&<(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||UT.test(t)&&yn(n)?!1:t in e}function rR(e,t){const n=Qe(e);class r extends Jg{constructor(o){super(n,o,t)}}return r.def=n,r}const LU=e=>rR(e,gR),kU=typeof HTMLElement<"u"?HTMLElement:class{};class Jg extends kU{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):(this.attachShadow({mode:"open"}),this._def.__asyncLoader||this._resolveProps(this._def))}connectedCallback(){this._connected=!0,this._instance||(this._resolved?this._update():this._resolveDef())}disconnectedCallback(){this._connected=!1,Lt(()=>{this._connected||(Zb(null,this.shadowRoot),this._instance=null)})}_resolveDef(){this._resolved=!0;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);new MutationObserver(r=>{for(const i of r)this._setAttr(i.attributeName)}).observe(this,{attributes:!0});const t=(r,i=!1)=>{const{props:o,styles:s}=r;let a;if(o&&!De(o))for(const l in o){const u=o[l];(u===Number||u&&u.type===Number)&&(l in this._props&&(this._props[l]=cv(this._props[l])),(a||(a=Object.create(null)))[jr(l)]=!0)}this._numberProps=a,i&&this._resolveProps(r),this._applyStyles(s),this._update()},n=this._def.__asyncLoader;n?n().then(r=>t(r,!0)):t(this._def)}_resolveProps(t){const{props:n}=t,r=De(n)?n:Object.keys(n||{});for(const i of Object.keys(this))i[0]!=="_"&&r.includes(i)&&this._setProp(i,this[i],!0,!1);for(const i of r.map(jr))Object.defineProperty(this,i,{get(){return this._getProp(i)},set(o){this._setProp(i,o)}})}_setAttr(t){let n=this.getAttribute(t);const r=jr(t);this._numberProps&&this._numberProps[r]&&(n=cv(n)),this._setProp(r,n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,i=!0){n!==this._props[t]&&(this._props[t]=n,i&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(Si(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(Si(t),n+""):n||this.removeAttribute(Si(t))))}_update(){Zb(this._createVNode(),this.shadowRoot)}_createVNode(){const t=ae(this._def,on({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0;const r=(o,s)=>{this.dispatchEvent(new CustomEvent(o,{detail:s}))};n.emit=(o,...s)=>{r(o,s),Si(o)!==o&&r(Si(o),s)};let i=this;for(;i=i&&(i.parentNode||i.host);)if(i instanceof Jg){n.parent=i._instance,n.provides=i._instance.provides;break}}),t}
vendor: 4,419 bytes, line 1
1_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function MU(e="$style"){{const t=fi();if(!t)return Ut;const n=t.type.__cssModules;if(!n)return Ut;const r=n[e];return r||Ut}}function RU(e){const t=fi();if(!t)return;const n=t.ut=(i=e(t.proxy))=>{Array.from(document.querySelectorAll(`[data-v-owner="${t.uid}"]`)).forEach(o=>Xb(o,i))},r=()=>{const i=e(t.proxy);Kb(t.subTree,i),n(i)};b4(r),$n(()=>{const i=new MutationObserver(r);i.observe(t.subTree.el.parentNode,{childList:!0}),Rn(()=>i.disconnect())})}function Kb(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Kb(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Xb(e.el,t);else if(e.type===Je)e.children.forEach(n=>Kb(n,t));else if(e.type===sl){let{el:n,anchor:r}=e;for(;n&&(Xb(n,t),n!==r);)n=n.nextSibling}}function Xb(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const Ns="transition",dd="animation",Wc=(e,{slots:t})=>io(S4,oR(e),t);Wc.displayName="Transition";const iR={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},PU=Wc.props=on({},JS,iR),Pa=(e,t=[])=>{De(e)?e.forEach(n=>n(...t)):e&&e(...t)},jT=e=>e?De(e)?e.some(t=>t.length>1):e.length>1:!1;function oR(e){const t={};for(const x in e)x in iR||(t[x]=e[x]);if(e.css===!1)return t;const{name:n="v",type:r,duration:i,enterFromClass:o=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=s,appearToClass:c=a,leaveFromClass:d=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,h=OU(i),m=h&&h[0],v=h&&h[1],{onBeforeEnter:g,onEnter:y,onEnterCancelled:_,onLeave:b,onLeaveCancelled:S,onBeforeAppear:C=g,onAppear:E=y,onAppearCancelled:w=_}=t,T=(x,k,M)=>{Vs(x,k?c:a),Vs(x,k?u:s),M&&M()},A=(x,k)=>{x._isLeaving=!1,Vs(x,d),Vs(x,p),Vs(x,f),k&&k()},L=x=>(k,M)=>{const z=x?E:y,P=()=>T(k,x,M);Pa(z,[k,P]),WT(()=>{Vs(k,x?l:o),Yo(k,x?c:a),jT(z)||GT(k,r,m,P)})};return on(t,{onBeforeEnter(x){Pa(g,[x]),Yo(x,o),Yo(x,s)},onBeforeAppear(x){Pa(C,[x]),Yo(x,l),Yo(x,u)},onEnter:L(!1),onAppear:L(!0),onLeave(x,k){x._isLeaving=!0;const M=()=>A(x,k);Yo(x,d),aR(),Yo(x,f),WT(()=>{x._isLeaving&&(Vs(x,d),Yo(x,p),jT(b)||GT(x,r,v,M))}),Pa(b,[x,M])},onEnterCancelled(x){T(x,!1),Pa(_,[x])},onAppearCancelled(x){T(x,!0),Pa(w,[x])},onLeaveCancelled(x){A(x),Pa(S,[x])}})}function OU(e){if(e==null)return null;if(jt(e))return[$0(e.enter),$0(e.leave)];{const t=$0(e);return[t,t]}}function $0(e){return cv(e)}function Yo(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Vs(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function WT(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let $U=0;function GT(e,t,n,r){const i=e._endId=++$U,o=()=>{i===e._endId&&r()};if(n)return setTimeout(o,n);const{type:s,timeout:a,propCount:l}=sR(e,t);if(!s)return r();const u=s+"end";let c=0;const d=()=>{e.removeEventListener(u,f),o()},f=p=>{p.target===e&&++c>=l&&d()};setTimeout(()=>{c<l&&d()},a+1),e.addEventListener(u,f)}function sR(e,t){const n=window.getComputedStyle(e),r=h=>(n[h]||"").split(", "),i=r(`${Ns}Delay`),o=r(`${Ns}Duration`),s=zT(i,o),a=r(`${dd}Delay`),l=r(`${dd}Duration`),u=zT(a,l);let c=null,d=0,f=0;t===Ns?s>0&&(c=Ns,d=s,f=o.length):t===dd?u>0&&(c=dd,d=u,f=l.length):(d=Math.max(s,u),c=d>0?s>u?Ns:dd:null,f=c?c===Ns?o.length:l.length:0);const p=c===Ns&&/\b(transform|all)(,|$)/.test(r(`${Ns}Property`).toString());return{type:c,timeout:d,propCount:f,hasTransform:p}}function zT(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>qT(n)+qT(e[r])))}function qT(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function aR(){return document.body.offsetHeight}const lR=new WeakMap,uR=new WeakMap,cR={name:"TransitionGroup",props:on({},PU,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=fi(),r=YS();let i,o;return Xg(()=>{if(!i.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!BU(i[0].el,n.vnode.el,s))return;
1i.forEach(DU),i.forEach(VU);const a=i.filter(FU);aR(),a.forEach(l=>{const u=l.el,c=u.style;Yo(u,s),c.transform=c.webkitTransform=c.transitionDuration="";const d=u._moveCb=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",d),u._moveCb=null,Vs(u,s))};u.addEventListener("transitionend",d)})}),()=>{const s=St(e),a=oR(s);let l=s.tag||Je;i=o,o=t.default?qg(t.default()):[];for(let u=0;u<o.length;u++){const c=o[u];c.key!=null&&vl(c,ic(c,a,r,n))}if(i)for(let u=0;u<i.length;u++){const c=i[u];vl(c,ic(c,a,r,n)),lR.set(c,c.el.getBoundingClientRect())}return ae(l,null,o)}}},NU=e=>delete e.mode;cR.props;const HU=cR;function DU(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function VU(e){uR.set(e,e.el.getBoundingClientRect())}function FU(e){const t=lR.get(e),n=uR.get(e),r=t.left-n.left,i=t.top-n.top;if(r||i){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${i}px)`,o.transitionDuration="0s",e}}function BU(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(s=>{s.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(s=>s&&r.classList.add(s)),r.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(r);const{hasTransform:o}=sR(r);return i.removeChild(r),o}const pa=e=>{const t=e.props["onUpdate:modelValue"]||!1;return De(t)?n=>Wu(t,n):t};function UU(e){e.target.composing=!0}function KT(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const bl={created(e,{modifiers:{lazy:t,trim:n,number:r}},i){e._assign=pa(i);const o=r||i.props&&i.props.type==="number";is(e,t?"change":"input",s=>{if(s.target.composing)return;let a=e.value;n&&(a=a.trim()),o&&(a=uv(a)),e._assign(a)}),n&&is(e,"change",()=>{e.value=e.value.trim()}),t||(is(e,"compositionstart",UU),is(e,"compositionend",KT),is(e,"change",KT))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:i}},o){if(e._assign=pa(o),e.composing||document.activeElement===e&&e.type!=="range"&&(n||r&&e.value.trim()===t||(i||e.type==="number")&&uv(e.value)===t))return;const s=t??"";e.value!==s&&(e.value=s)}},dE={deep:!0,created(e,t,n){e._assign=pa(n),is(e,"change",()=>{const r=e._modelValue,i=sc(e),o=e.checked,s=e._assign;if(De(r)){const a=Hg(r,i),l=a!==-1;if(o&&!l)s(r.concat(i));else if(!o&&l){const u=[...r];u.splice(a,1),s(u)}}else if($l(r)){const a=new Set(r);o?a.add(i):a.delete(i),s(a)}else s(fR(e,o))})},mounted:XT,beforeUpdate(e,t,n){e._assign=pa(n),XT(e,t,n)}};function XT(e,{value:t,oldValue:n},r){e._modelValue=t,De(t)?e.checked=Hg(t,r.props.value)>-1:$l(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=ca(t,fR(e,!0)))}const fE={created(e,{value:t},n){e.checked=ca(t,n.props.value),e._assign=pa(n),is(e,"change",()=>{e._assign(sc(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=pa(r),t!==n&&(e.checked=ca(t,r.props.value))}},dR={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const i=$l(t);is(e,"change",()=>{const o=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?uv(sc(s)):sc(s));e._assign(e.multiple?i?new Set(o):o:o[0])}),e._assign=pa(r)},mounted(e,{value:t}){ZT(e,t)},beforeUpdate(e,t,n){e._assign=pa(n)},updated(e,{value:t}){ZT(e,t)}};function ZT(e,t){const n=e.multiple;if(!(n&&!De(t)&&!$l(t))){for(let r=0,i=e.options.length;r<i;r++){const o=e.options[r],s=sc(o);if(n)De(t)?o.selected=Hg(t,s)>-1:o.selected=t.has(s);else if(ca(sc(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function sc(e){return"_value"in e?e._value:e.value}function fR(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Qg={created(e,t,n){vh(e,t,n,null,"created")},mounted(e,t,n){vh(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){vh(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){vh(e,t,n,r,"updated")}};function pR(e,t){switch(e){case"SELECT":return dR;case"TEXTAREA":return bl;default:switch(t){case"checkbox":return dE;case"radio":return fE;default:return bl}}}function vh(e,t,n,r,i){const s=pR(e.tagName,n.props&&n.props.type)[i];s&&s(e,t,n,r)}function jU(){bl.getSSRProps=({value:e})=>({value:e}),fE.getSSRProps=({value:e},t)=>{if(t.props&&ca(t.props.value,e))return{checked:!0}},dE.getSSRProps=({value:e},t)=>{if(De(e)){if(t.props&&Hg(e,t.props.value)>-1)return{checked:!0}}else if($l(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Qg.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=pR(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const WU=["ctrl","shift","alt","meta"],GU={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>
1WU.some(n=>e[`${n}Key`]&&!t.includes(n))},tt=(e,t)=>(n,...r)=>{for(let i=0;i<t.length;i++){const o=GU[t[i]];if(o&&o(n,t))return}return e(n,...r)},zU={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Ar=(e,t)=>n=>{if(!("key"in n))return;const r=Si(n.key);if(t.some(i=>i===r||zU[i]===r))return e(n)},Ci={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):fd(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),fd(e,!0),r.enter(e)):r.leave(e,()=>{fd(e,!1)}):fd(e,t))},beforeUnmount(e,{value:t}){fd(e,t)}};function fd(e,t){e.style.display=t?e._vod:"none"}function qU(){Ci.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const hR=on({patchProp:IU},hU);let Jd,YT=!1;function mR(){return Jd||(Jd=B4(hR))}function vR(){return Jd=YT?Jd:U4(hR),YT=!0,Jd}const Zb=(...e)=>{mR().render(...e)},gR=(...e)=>{vR().hydrate(...e)},KU=(...e)=>{const t=mR().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=yR(r);if(!i)return;const o=t._component;!lt(o)&&!o.render&&!o.template&&(o.template=i.innerHTML),i.innerHTML="";const s=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t},XU=(...e)=>{const t=vR().createApp(...e),{mount:n}=t;return t.mount=r=>{const i=yR(r);if(i)return n(i,!0,i instanceof SVGElement)},t};function yR(e){return yn(e)?document.querySelector(e):e}let JT=!1;const ZU=()=>{JT||(JT=!0,jU(),qU())},YU=()=>{},JU=Object.freeze(Object.defineProperty({__proto__:null,BaseTransition:S4,BaseTransitionPropsValidators:JS,Comment:vr,EffectScope:HS,Fragment:Je,KeepAlive:gB,ReactiveEffect:cp,Static:sl,Suspense:aB,Teleport:ys,Text:gl,Transition:Wc,TransitionGroup:HU,VueElement:Jg,assertNumber:XF,callWithAsyncErrorHandling:si,callWithErrorHandling:ls,camelize:jr,capitalize:up,cloneVNode:Mi,compatUtils:fU,compile:YU,computed:fe,createApp:KU,createBlock:Se,createCommentVNode:K,createElementBlock:R,createElementVNode:O,createHydrationRenderer:U4,createPropsRestProxy:RB,createRenderer:B4,createSSRApp:XU,createSlots:k4,createStaticVNode:QB,createTextVNode:_t,createVNode:ae,customRef:jF,defineAsyncComponent:ln,defineComponent:Qe,defineCustomElement:rR,defineEmits:CB,defineExpose:wB,defineModel:IB,defineOptions:TB,defineProps:EB,defineSSRCustomElement:LU,defineSlots:AB,get devtools(){return Cu},effect:dF,effectScope:Dg,getCurrentInstance:fi,getCurrentScope:DS,getTransitionRawChildren:qg,guardReactiveProps:K4,h:io,handleError:Hl,hasInjectionContext:$4,hydrate:gR,initCustomFormatter:aU,initDirectivesForSSR:ZU,inject:kt,isMemoSame:nR,isProxy:US,isReactive:Ti,isReadonly:ml,isRef:qt,isRuntimeOnly:iU,isShallow:xf,isVNode:bs,markRaw:Nl,mergeDefaults:kB,mergeModels:MB,mergeProps:Un,nextTick:Lt,normalizeClass:Ie,normalizeProps:oF,normalizeStyle:vt,onActivated:pp,onBeforeMount:w4,onBeforeUnmount:Dl,onBeforeUpdate:T4,onDeactivated:hp,onErrorCaptured:x4,onMounted:$n,onRenderTracked:I4,onRenderTriggered:A4,onScopeDispose:KM,onServerPrefetch:QS,onUnmounted:Rn,onUpdated:Xg,openBlock:I,popScopeId:KS,provide:Ji,proxyRefs:kf,pushScopeId:qS,queuePostFlushCb:zS,reactive:mr,readonly:BS,ref:ie,registerRuntimeCompiler:rU,render:Zb,renderList:Dt,render
1Slot:ge,resolveComponent:Uc,resolveDirective:jc,resolveDynamicComponent:tE,resolveFilter:dU,resolveTransitionHooks:ic,setBlockTracking:jb,setDevtoolsHook:m4,setTransitionHooks:vl,shallowReactive:a4,shallowReadonly:VF,shallowRef:l4,ssrContextKey:eR,ssrUtils:cU,stop:fF,toDisplayString:he,toHandlerKey:Kd,toHandlers:_B,toRaw:St,toRef:Bc,toRefs:c4,toValue:il,transformVNodeArgs:YB,triggerRef:kd,unref:Ee,useAttrs:iE,useCssModule:MU,useCssVars:RU,useModel:LB,useSSRContext:tR,useSlots:rE,useTransitionState:YS,vModelCheckbox:dE,vModelDynamic:Qg,vModelRadio:fE,vModelSelect:dR,vModelText:bl,vShow:Ci,version:cE,warn:KF,watch:ut,watchEffect:bi,watchPostEffect:b4,watchSyncEffect:pB,withAsyncContext:PB,withCtx:pe,withDefaults:xB,withDirectives:kn,withKeys:Ar,withMemo:lU,withModifiers:tt,withScopeId:tB},Symbol.toStringTag,{value:"Module"}));var zi=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Gc(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function pE(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var QU={},Yb={},hE={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.assertIsGtmId=e.GTM_ID_PATTERN=void 0,e.GTM_ID_PATTERN=/^GTM-[0-9A-Z]+$/;function t(n){if(typeof n!="string"||!e.GTM_ID_PATTERN.exec(n)){const r=String(n).toUpperCase().replace(/.*-|[^0-9A-Z]/g,""),i=r.length===0?"":` Did you mean 'GTM-${r}'?`;throw new Error(`'${n}' is not a valid GTM-ID (${e.GTM_ID_PATTERN}).${i}`)}}e.assertIsGtmId=t})(hE);var e1={},_l={};
1Object.defineProperty(_l,"__esModule",{value:!0});_l.hasScript=_l.loadScript=void 0;function ej(e,t){var n,r,i,o,s;const a=document,l=a.createElement("script"),u=p=>{var h;(h=t.onReady)===null||h===void 0||h.call(t,{id:e,script:l}),l.removeEventListener("load",u)};if(l.addEventListener("load",u),window.dataLayer=(n=window.dataLayer)!==null&&n!==void 0?n:[],(r=window.dataLayer)===null||r===void 0||r.push({event:"gtm.js","gtm.start":new Date().getTime()}),!e)return l;l.async=!t.defer,l.defer=!!(t.defer||t.compatibility),t.nonce&&(l.nonce=t.nonce);const c=new URLSearchParams({id:e,...(i=t.queryParams)!==null&&i!==void 0?i:{}}),d=(o=t.source)!==null&&o!==void 0?o:"https://www.googletagmanager.com/gtm.js";l.src=`${d}?${c}`;const f=(s=t.parentElement)!==null&&s!==void 0?s:a.body;if(typeof(f==null?void 0:f.appendChild)!="function")throw new Error("parentElement must be a DOM element");return f.appendChild(l),l}_l.loadScript=ej;function tj(e="https://www.googletagmanager.com/gtm.js"){return Array.from(document.getElementsByTagName("script")).some(t=>t.src.includes(e))}_l.hasScript=tj;Object.defineProperty(e1,"__esModule",{value:!0});e1.GtmSupport=void 0;const N0=hE,gh=_l;class nj{constructor(t){if(this.scriptElements=[],this.isInBrowserContext=()=>typeof window<"u",Array.isArray(t.id))for(const n of t.id)typeof n=="string"?(0,N0.assertIsGtmId)(n):(0,N0.assertIsGtmId)(n.id);else(0,N0.assertIsGtmId)(t.id);this.id=t.id,this.options={enabled:!0,debug:!1,loadScript:!0,defer:!1,compatibility:!1,...t},delete this.options.id}enabled(){var t;return(t=this.options.enabled)!==null&&t!==void 0?t:!0}enable(t=!0,n){if(this.options.enabled=t,this.isInBrowserContext()&&t&&!(0,gh.hasScript)(n)&&this.options.loadScript)if(Array.isArray(this.id))this.id.forEach(r=>{let i;typeof r=="string"?i=(0,gh.loadScript)(r,{...this.options}):i=(0,gh.loadScript)(r.id,{...this.options,queryParams:r.queryParams}),this.scriptElements.push(i)});else{const r=(0,gh.loadScript)(this.id,{...this.options});this.scriptElements.push(r)}}debugEnabled(){var t;return(t=this.options.debug)!==null&&t!==void 0?t:!1}debug(t){this.options.debug=t}dataLayer(){var t;return this.isInBrowserContext()&&this.options.enabled?window.dataLayer=(t=window.dataLayer)!==null&&t!==void 0?t:[]:!1}trackView(t,n,r={}){var i,o,s;const a=this.isInBrowserContext()&&((i=this.options.enabled)!==null&&i!==void 0?i:!1);this.options.debug&&console.log(`[GTM-Support${a?"":"(disabled)"}]: Dispatching TrackView`,{screenName:t,path:n}),a&&(window.dataLayer=(o=window.dataLayer)!==null&&o!==void 0?o:[]).push({...r,event:(s=this.options.trackViewEventProperty)!==null&&s!==void 0?s:"content-view","content-name":n,"content-view-name":t})}trackEvent({event:t,category:n=null,action:r=null,label:i=null,value:o=null,noninteraction:s=!1,...a}={}){var l,u;const c=this.isInBrowserContext()&&((l=this.options.enabled)!==null&&l!==void 0?l:!1);this.options.debug&&console.log(`[GTM-Support${c?"":"(disabled)"}]: Dispatching event`,{event:t,category:n,action:r,label:i,value:o,...a}),c&&(window.dataLayer=(u=window.dataLayer)!==null&&u!==void 0?u:[]).push({event:t??"interaction",target:n,action:r,"target-properties":i,value:o,"interaction-type":s,...a})}}e1.GtmSupport=nj;(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.loadScript=e.hasScript=e.GtmSupport=e.GTM_ID_PATTERN=e.assertIsGtmId=void 0;var t=hE;Object.defineProperty(e,"assertIsGtmId",{enumerable:!0,get:function(){return t.assertIsGtmId}}),Object.defineProperty(e,"GTM_ID_PATTERN",{enumerable:!0,get:function(){return t.GTM_ID_PATTERN}});var n=e1;Object.defineProperty(e,"GtmSupport",{enumerable:!0,get:function(){return n.GtmSupport}});var r=_l;Object.defineProperty(e,"hasScript",{enumerable:!0,get:function(){return r.hasScript}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return r.loadScript}})})(Yb);const bR=pE(JU);/*! 2 * vue-router v4.0.16 3 * (c) 2022 Eduardo San Martin Morote 4 * @license MIT 5 */const _R=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",zc=e=>_R?Symbol(e):"_vr_"+e,t1=zc("rvlm"),Jb=zc("rvd"),mp=zc("r"),n1=zc("rl"),vv=zc("rvl"),wu=typeof window<"u";
5function rj(e){return e.__esModule||_R&&e[Symbol.toStringTag]==="Module"}const Wt=Object.assign;function H0(e,t){const n={};for(const r in t){const i=t[r];n[r]=Array.isArray(i)?i.map(e):e(i)}return n}const Qd=()=>{},ij=/\/$/,oj=e=>e.replace(ij,"");function D0(e,t,n="/"){let r,i={},o="",s="";const a=t.indexOf("?"),l=t.indexOf("#",a>-1?a:0);return a>-1&&(r=t.slice(0,a),o=t.slice(a+1,l>-1?l:t.length),i=e(o)),l>-1&&(r=r||t.slice(0,l),s=t.slice(l,t.length)),r=uj(r??t,n),{fullPath:r+(o&&"?")+o+s,path:r,query:i,hash:s}}function sj(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function QT(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function aj(e,t,n){const r=t.matched.length-1,i=n.matched.length-1;return r>-1&&r===i&&ac(t.matched[r],n.matched[i])&&SR(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function ac(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function SR(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!lj(e[n],t[n]))return!1;return!0}function lj(e,t){return Array.isArray(e)?eA(e,t):Array.isArray(t)?eA(t,e):e===t}function eA(e,t){return Array.isArray(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function uj(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let i=n.length-1,o,s;for(o=0;o<r.length;o++)if(s=r[o],!(i===1||s==="."))if(s==="..")i--;else break;return n.slice(0,i).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var lc;(function(e){e.pop="pop",e.push="push"})(lc||(lc={}));var al;(function(e){e.back="back",e.forward="forward",e.unknown=""})(al||(al={}));const V0="";function ER(e){if(!e)if(wu){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),oj(e)}const cj=/^[^#]+#/;function CR(e,t){return e.replace(cj,"#")+t}function dj(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const r1=()=>({left:window.pageXOffset,top:window.pageYOffset});function fj(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=dj(i,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function tA(e,t){return(history.state?history.state.position-t:-1)+e}const Qb=new Map;function pj(e,t){Qb.set(e,t)}function hj(e){const t=Qb.get(e);return Qb.delete(e),t}let mj=()=>location.protocol+"//"+location.host;function wR(e,t){const{pathname:n,search:r,hash:i}=t,o=e.indexOf("#");if(o>-1){let a=i.includes(e.slice(o))?e.slice(o).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),QT(l,"")}return QT(n,e)+r+i}function vj(e,t,n,r){let i=[],o=[],s=null;const a=({state:f})=>{const p=wR(e,location),h=n.value,m=t.value;let v=0;if(f){if(n.value=p,t.value=f,s&&s===h){s=null;return}v=m?f.position-m.position:0}else r(p);i.forEach(g=>{g(n.value,h,{delta:v,type:lc.pop,direction:v?v>0?al.forward:al.back:al.unknown})})};function l(){s=n.value}function u(f){i.push(f);const p=()=>{const h=i.indexOf(f);h>-1&&i.splice(h,1)};return o.push(p),p}function c(){const{history:f}=window;f.state&&f.replaceState(Wt({},f.state,{scroll:r1()}),"")}function d(){for(const f of o)f();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",c)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",c),{pauseListeners:l,listen:u,destroy:d}}function nA(e,t,n,r=!1,i=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:i?r1():null}}function gj(e){const{history:t,location:n}=window,r={value:wR(e,n)},i={value:t.state};i.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,c){const d=e.indexOf("#"),f=d>-1?(n.host&&document.querySelector("base")?e:e.slice(d))+l:mj()+e+l;try{t[c?"replaceState":"pushState"](u,"",f),i.value=u}catch(p){console.error(p),n[c?"replace":"assign"](f)}}function s(l,u){const c=Wt({},t.state,nA(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});o(l,c,!0),r.value=l}function a(l,u){const c=Wt({},i.value,t.state,{forward:l,scroll:r1()});o(c.current,c,!0);const d=Wt({},nA(r.value,l,null),{position:c.position+1},u);o(l,d,!1),r.value=l}return{location:r,state:i,push:a,replace:s}}function TR(e){e=ER(e);const t=gj(e),n=vj(e,t.state,t.location,t.replace);function r(o,s=!0){s||n.pauseListeners(),history.go(o)}const i=Wt({location:"",base:e,go:r,createHref:CR.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function yj(e=""){let t=[],n=[V0],r=0;e=ER(e);function i(a){r++,r===n.length||n.splice(r),n.push(a)}function o(a,l,{direction:u,delta:c}){const d={direction:u,delta:c,type:lc.pop};for(const f of t)f(a,l,d)}const s={location:V0,state:{},base:e,createHref:CR.bind(null,e),replace(a){n.splice(r--,1),i(a)},push(a,l){i(a)},listen(a){return t.push(a),()=>{const l=t.indexOf(a);l>-1&&t.splice(l,1)}},destroy(){t=[],n=[V0],r=0},go(a,l=!0){const u=this.location,c=a<0?al.back:al.forward;r=Math.max(0,Math.min(r+a,n.length-1)),l&&o(this.location,u,{direction:c,delta:a})}};return Object.defineProperty(s,"location",{enumerable:!0,get:()=>n[r]}),s}function bj(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),TR(e)}function _j(e){return typeof e=="string"||e&&typeof e=="object"}function AR(e){return typeof e=="string"||typeof e=="symbol"}const Jo={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},IR=zc("nf");var e_;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(e_||(e_={}));function uc(e,t){return Wt(new Error,{type:e,[IR]:!0},t)}function Qo(e,t){return e instanceof Error&&IR in e&&(t==null||!!(e.type&t))}const rA="[^/]+?",Sj={sensitive:!1,strict:!1,start:!0,end:!0},Ej=/[.+*?^${}()[\]/\\]/g;function Cj(e,t){const n=Wt({},Sj,t),r=[];let i=n.start?"^":"";const o=[];for(const u of e){const c=u.length?[]:[90];n.strict&&!u.length&&(i+="/");for(let d=0;d<u.length;d++){const f=u[d];let p=40+(n.sensitive?.25:0);if(f.type===0)d||(i+="/"),i+=f.value.replace(Ej,"\\$&"),p+=40;else if(f.type===1){const{value:h,repeatable:m,optional:v,regexp:g}=f;o.push({name:h,repeatable:m,optional:v});const y=g||rA;if(y!==rA){p+=10;try{new RegExp(`(${y})`)}catch(b){throw new Error(`Invalid custom RegExp for param "${h}" (${y}): `+b.message)}}let _=m?`((?:${y}
5)(?:/(?:${y}))*)`:`(${y})`;d||(_=v&&u.length<2?`(?:/${_})`:"/"+_),v&&(_+="?"),i+=_,p+=20,v&&(p+=-8),m&&(p+=-20),y===".*"&&(p+=-50)}c.push(p)}r.push(c)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const s=new RegExp(i,n.sensitive?"":"i");function a(u){const c=u.match(s),d={};if(!c)return null;for(let f=1;f<c.length;f++){const p=c[f]||"",h=o[f-1];d[h.name]=p&&h.repeatable?p.split("/"):p}return d}function l(u){let c="",d=!1;for(const f of e){(!d||!c.endsWith("/"))&&(c+="/"),d=!1;for(const p of f)if(p.type===0)c+=p.value;else if(p.type===1){const{value:h,repeatable:m,optional:v}=p,g=h in u?u[h]:"";if(Array.isArray(g)&&!m)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const y=Array.isArray(g)?g.join("/"):g;if(!y)if(v)f.length<2&&e.length>1&&(c.endsWith("/")?c=c.slice(0,-1):d=!0);else throw new Error(`Missing required param "${h}"`);c+=y}}return c}return{re:s,score:r,keys:o,parse:a,stringify:l}}function wj(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function Tj(e,t){let n=0;const r=e.score,i=t.score;for(;n<r.length&&n<i.length;){const o=wj(r[n],i[n]);if(o)return o;n++}if(Math.abs(i.length-r.length)===1){if(iA(r))return 1;if(iA(i))return-1}return i.length-r.length}function iA(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Aj={type:0,value:""},Ij=/[a-zA-Z0-9_]/;function xj(e){if(!e)return[[]];if(e==="/")return[[Aj]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${u}": ${p}`)}let n=0,r=n;const i=[];let o;function s(){o&&i.push(o),o=[]}let a=0,l,u="",c="";function d(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:c,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(u&&d(),s()):l===":"?(d(),n=1):f();break;case 4:f(),n=r;break;case 1:l==="("?n=2:Ij.test(l)?f():(d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?c[c.length-1]=="\\"?c=c.slice(0,-1)+l:n=3:c+=l;break;case 3:d(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,c="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),d(),s(),i}function Lj(e,t,n){const r=Cj(xj(e.path),n),i=Wt(r,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function xR(e,t){const n=[],r=new Map;t=sA({strict:!1,end:!0,sensitive:!1},t);function i(c){return r.get(c)}function o(c,d,f){const p=!f,h=Mj(c);h.aliasOf=f&&f.record;const m=sA(t,c),v=[h];if("alias"in c){const _=typeof c.alias=="string"?[c.alias]:c.alias;for(const b of _)v.push(Wt({},h,{components:f?f.record.components:h.components,path:b,aliasOf:f?f.record:h}))}let g,y;for(const _ of v){const{path:b}=_;if(d&&b[0]!=="/"){const S=d.record.path,C=S[S.length-1]==="/"?"":"/";_.path=d.record.path+(b&&C+b)}if(g=Lj(_,d,m),f?f.alias.push(g):(y=y||g,y!==g&&y.alias.push(g),p&&c.name&&!oA(g)&&s(c.name)),"children"in h){const S=h.children;for(let C=0;C<S.length;C++)o(S[C],g,f&&f.children[C])}f=f||g,l(g)}return y?()=>{s(y)}:Qd}function s(c){if(AR(c)){const d=r.get(c);d&&(r.delete(c),n.splice(n.indexOf(d),1),d.children.forEach(s),d.alias.forEach(s))}else{const d=n.indexOf(c);d>-1&&(n.splice(d,1),c.record.name&&r.delete(c.record.name),c.children.forEach(s),c.alias.forEach(s))}}function a(){return n}function l(c){let d=0;for(;d<n.length&&Tj(c,n[d])>=0&&(c.record.path!==n[d].record.path||!LR(c,n[d]));)d++;n.splice(d,0,c),c.record.name&&!oA(c)&&r.set(c.record.name,c)}function u(c,d){let f,p={},h,m;if("name"in c&&c.name){if(f=r.get(c.name),!f)throw uc(1,{location:c});m=f.record.name,p=Wt(kj(d.params,f.keys.filter(y=>!y.optional).map(y=>y.name)),c.params),h=f.stringify(p)}else if("path"in c)h=c.path,f=n.find(y=>y.re.test(h)),f&&(p=f.parse(h),m=f.record.name);else{if(f=d.name?r.get(d.name):n.find(y=>y.re.test(d.path)),!f)throw uc(1,{location:c,currentLocation:d});m=f.record.name,p=Wt({},d.params,c.params),h=f.stringify(p)}const v=[];let g=f;for(;g;)v.unshift(g.record),g=g.parent;return{name:m,path:h,params:p,matched:v,meta:Pj(v)}}return e.forEach(c=>o(c)),{addRoute:o,resolve:u,removeRoute:s,getRoutes:a,getRecordMatcher:i}}function kj(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function Mj(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:Rj(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function Rj(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function oA(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Pj(e){return e.reduce((t,n)=>Wt(t,n.meta),{})}function sA(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function LR(e,t){return t.children.some(n=>n===e||LR(e,n))}const kR=/#/g,Oj=/&/g,$j=/\//g,Nj=/=/g,Hj=/\?/g,MR=/\+/g,Dj=/%5B/g,Vj=/%5D/g,RR=/%5E/g,Fj=/%60/g,PR=/%7B/g,Bj=/%7C/g,OR=/%
vendor: 9,274 bytes, line 5
57D/g,Uj=/%20/g;function mE(e){return encodeURI(""+e).replace(Bj,"|").replace(Dj,"[").replace(Vj,"]")}function jj(e){return mE(e).replace(PR,"{").replace(OR,"}").replace(RR,"^")}function t_(e){return mE(e).replace(MR,"%2B").replace(Uj,"+").replace(kR,"%23").replace(Oj,"%26").replace(Fj,"`").replace(PR,"{").replace(OR,"}").replace(RR,"^")}function Wj(e){return t_(e).replace(Nj,"%3D")}function Gj(e){return mE(e).replace(kR,"%23").replace(Hj,"%3F")}function zj(e){return e==null?"":Gj(e).replace($j,"%2F")}function gv(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function $R(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<r.length;++i){const o=r[i].replace(MR," "),s=o.indexOf("="),a=gv(s<0?o:o.slice(0,s)),l=s<0?null:gv(o.slice(s+1));if(a in t){let u=t[a];Array.isArray(u)||(u=t[a]=[u]),u.push(l)}else t[a]=l}return t}function n_(e){let t="";for(let n in e){const r=e[n];if(n=Wj(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Array.isArray(r)?r.map(o=>o&&t_(o)):[r&&t_(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function qj(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Array.isArray(r)?r.map(i=>i==null?null:""+i):r==null?r:""+r)}return t}function pd(){let e=[];function t(r){return e.push(r),()=>{const i=e.indexOf(r);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function NR(e,t,n){const r=()=>{e[t].delete(n)};Rn(r),hp(r),pp(()=>{e[t].add(n)}),e[t].add(n)}function Kj(e){const t=kt(t1,{}).value;t&&NR(t,"leaveGuards",e)}function Xj(e){const t=kt(t1,{}).value;t&&NR(t,"updateGuards",e)}function js(e,t,n,r,i){const o=r&&(r.enterCallbacks[i]=r.enterCallbacks[i]||[]);return()=>new Promise((s,a)=>{const l=d=>{d===!1?a(uc(4,{from:n,to:t})):d instanceof Error?a(d):_j(d)?a(uc(2,{from:t,to:d})):(o&&r.enterCallbacks[i]===o&&typeof d=="function"&&o.push(d),s())},u=e.call(r&&r.instances[i],t,n,l);let c=Promise.resolve(u);e.length<3&&(c=c.then(l)),c.catch(d=>a(d))})}function F0(e,t,n,r){const i=[];for(const o of e)for(const s in o.components){let a=o.components[s];if(!(t!=="beforeRouteEnter"&&!o.instances[s]))if(Zj(a)){const u=(a.__vccOpts||a)[t];u&&i.push(js(u,n,r,o,s))}else{let l=a();i.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${o.path}"`));const c=rj(u)?u.default:u;o.components[s]=c;const f=(c.__vccOpts||c)[t];return f&&js(f,n,r,o,s)()}))}}return i}function Zj(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function r_(e){const t=kt(mp),n=kt(n1),r=fe(()=>t.resolve(Ee(e.to))),i=fe(()=>{const{matched:l}=r.value,{length:u}=l,c=l[u-1],d=n.matched;if(!c||!d.length)return-1;const f=d.findIndex(ac.bind(null,c));if(f>-1)return f;const p=aA(l[u-2]);return u>1&&aA(c)===p&&d[d.length-1].path!==p?d.findIndex(ac.bind(null,l[u-2])):f}),o=fe(()=>i.value>-1&&Qj(n.params,r.value.params)),s=fe(()=>i.value>-1&&i.value===n.matched.length-1&&SR(n.params,r.value.params));function a(l={}){return Jj(l)?t[Ee(e.replace)?"replace":"push"](Ee(e.to)).catch(Qd):Promise.resolve()}return{route:r,href:fe(()=>r.value.href),isActive:o,isExactActive:s,navigate:a}}const Yj=Qe({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:r_,setup(e,{slots:t}){const n=mr(r_(e)),{options:r}=kt(mp),i=fe(()=>({[lA(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[lA(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:io("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},o)}}}),HR=Yj;function Jj(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function Qj(e,t){for(const n in t){const r=t[n],i=e[n];if(typeof r=="string"){if(r!==i)return!1}else if(!Array.isArray(i)||i.length!==r.length||r.some((o,s)=>o!==i[s]))return!1}return!0}function aA(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const lA=(e,t,n)=>e??t??n,eW=Qe({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=kt(vv),i=fe(()=>e.route||r.value),o=kt(Jb,0),s=fe(()=>i.value.matched[o]);Ji(Jb,o+1),Ji(t1,s),Ji(vv,i);const a=ie();return ut(()=>[a.value,s.value,e.name],([l,u,c],[d,f,p])=>{u&&(u.instances[c]=l,f&&f!==u&&l&&l===d&&(u.leaveGuards.size||(u.leaveGuards=f.leaveGuards),u.updateGuards.size||(u.updateGuards=f.updateGuards))),l&&u&&(!f||!ac(u,f)||!d)&&(u.enterCallbacks[c]||[]).forEach(h=>h(l))},{flush:"post"}),()=>{const l=i.value,u=s.value,c=u&&u.components[e.name],d=e.name;if(!c)return uA(n.default,{Component:c,route:l});const f=u.props[e.name],p=f?f===!0?l.params:typeof f=="function"?f(l):f:null,m=io(c,Wt({},p,t,{onVnodeUnmounted:v=>{v.component.isUnmounted&&(u.instances[d]=null)},ref:a}));return uA(n.default,{Component:m,route:l})||m}}});function uA(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const DR=eW;function tW(e){const t=xR(e.routes,e),n=e.parseQuery||$R,r=e.stringifyQuery||n_,i=e.history,o=pd(),s=pd(),a=pd(),l=l4(Jo);let u=Jo;wu&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const c=H0.bind(null,F=>""+F),d=H0.bind(null,zj),f=H0.bind(null,gv);function p(F,Q){let re,be;return AR(F)?(re=t.getRecordMatcher(F),be=Q):be=F,t.addRoute(be,re)}function h(F){const Q=t.getRecordMatcher(F);Q&&t.removeRoute(Q)}function m(){return t.getRoutes().map(F=>F.record)}function v(F){return!!t.getRecordMatcher(F)}function g(F,Q){if(Q=Wt({},Q||l.value),typeof F=="string"){const $=D0(n,F,Q.path),U=t.resolve({path:$.path},Q),ee=i.createHref($.fullPath);return Wt($,U,{params:f(U.params),hash:gv($.hash),redirectedFrom:void 0,href:ee})}let re;if("path"in F)re=Wt({},F,{path:D0(n,F.path,Q.path).path});else{const $=Wt({},F.params);for(const U in $)$[U]==null&&delete $[U];re=Wt({},F,{params:d(F.params)}),Q.params=d(Q.params)}const be=t.resolve(re,Q),Le=F.hash||"";be.params=c(f(be.params));const Me=sj(r,Wt({},F,{hash:jj(Le),path:be.path})),He=i.createHref(Me);return Wt({fullPath:Me,hash:Le,query:r===n_?qj(F.query):F.query||{}},be,{redirectedFrom:void 0,href:He})}function y(F){return typeof F=="string"?D0(n,F,l.value.path):Wt({},F)}function _(F,Q){if(u!==F)return uc(8,{from:Q,to:F})}function b(F){return E(F)}function S(F){return b(Wt(y(F),{replace:!0}))}function C(F){const Q=F.matched[F.matched.length-1];if(Q&&Q.redirect){const{redirect:re}=Q;let be=typeof re=="function"?re(F):re;return typeof be=="string"&&(be=be.includes("?")||be.includes("#")?be=y(be):{path:be},be.params={}),Wt({query:F.query,hash:F.hash,params:F.params},be)}}function E(F,Q){const re=u=g(F),be=l.value,Le=F.state,Me=F.force,He=F.replace===!0,$=C(re);if($)return E(Wt(y($),{state:Le,force:Me,replace:He}),Q||re);const U=re;U.redirectedFrom=Q;let ee;return!Me&&aj(r,be,re)&&(ee=uc(16,{to:U,from:be}),se(be,be,!0,!1)),(ee?Promise.resolve(ee):T(U,be)).catch(ce=>Qo(ce)?Qo(ce,2)?ce:de(ce):H(ce,U,be)).then(ce=>{if(ce){if(Qo(ce,2))return E(Wt(y(ce.to),{state:Le,force:Me,replace:He}),Q||U)}else ce=L(U,be,!0,He,Le);return A(U,be,ce),ce})}function w(F,Q){const re=_(F,Q);return re?Promise.reject(re):Promise.resolve()}function T(F,Q){let re;const[be,Le,Me]=nW(F,Q);re=F0(be.reverse(),"beforeRouteLeave",F,Q);for(const $ of be)$.leaveGuards.forEach(U=>{re.push(js(U,F,Q))});const He=w.bind(null,F,Q);return re.push(He),ru(re).then(()=>{re=[];for(const $ of o.list())re.push(js($,F,Q));return re.push(He),ru(re)}).then(()=>{re=F0(Le,"beforeRouteUpdate",F,Q);for(const $ of Le)$.updateGuards.forEach(U=>{re.push(js(U,F,Q))});return re.push(He),ru(re)}).then(()=>{re=[];for(const $ of F.matched)if($.beforeEnter&&!Q.matched.includes($))if(Array.isArray($.beforeEnter))for(const U of $.beforeEnter)re.push(js(U,F,Q));else re.push(js($.beforeEnter,F,Q));return re.push(He),ru(re)}).then(()=>(F.matched.forEach($=>$.enterCallbacks={}),re=F0(Me,"beforeRouteEnter",F,Q),re.push(He),ru(re))).then(()=>{re=[];for(const $ of s.list())re.push(js($,F,Q));return re.push(He),ru(re)}).catch($=>Qo($,8)?$:Promise.reject($))}function A(F,Q,re){for(const be of a.list())be(F,Q,re)}function L(F,Q,re,be,Le){const Me=_(F,Q);if(Me)return Me;const He=Q===Jo,$=wu?history.state:{};re&&(be||He?i.replace(F.fullPath,Wt({scroll:He&&$&&$.scroll},Le)):i.push(F.fullPath,Le)),l.value=F,se(F,Q,re,He),de()}let x;function k(){x||(x=i.listen((F,Q,re)=>{const be=g(F),Le=C(be);if(Le){E(Wt(Le,{replace:!0}),be).catch(Qd);return}u=be;const Me=l.value;wu&&pj(tA(Me.fullPath,re.delta),r1()),T(be,Me).catch(He=>Qo(He,12)?He:Qo(He,2)?(E(He.to,be).then($=>{Qo($,20)&&!re.delta&&re.type===lc.pop&&i.go(-1,!1)}).catch(Qd),Promise.reject()):(re.delta&&i.go(-re.delta,!1),H(He,be,Me))).then(He=>{He=He||L(be,Me,!1),He&&(re.delta?i.go(-re.delta,!1):re.type===lc.pop&&Qo(He,20)&&i.go(-1,!1)),A(be,Me,He)}).catch(Qd)}
5))}let M=pd(),z=pd(),P;function H(F,Q,re){de(F);const be=z.list();return be.length?be.forEach(Le=>Le(F,Q,re)):console.error(F),Promise.reject(F)}function q(){return P&&l.value!==Jo?Promise.resolve():new Promise((F,Q)=>{M.add([F,Q])})}function de(F){return P||(P=!F,k(),M.list().forEach(([Q,re])=>F?re(F):Q()),M.reset()),F}function se(F,Q,re,be){const{scrollBehavior:Le}=e;if(!wu||!Le)return Promise.resolve();const Me=!re&&hj(tA(F.fullPath,0))||(be||!re)&&history.state&&history.state.scroll||null;return Lt().then(()=>Le(F,Q,Me)).then(He=>He&&fj(He)).catch(He=>H(He,F,Q))}const W=F=>i.go(F);let V;const B=new Set;return{currentRoute:l,addRoute:p,removeRoute:h,hasRoute:v,getRoutes:m,resolve:g,options:e,push:b,replace:S,go:W,back:()=>W(-1),forward:()=>W(1),beforeEach:o.add,beforeResolve:s.add,afterEach:a.add,onError:z.add,isReady:q,install(F){const Q=this;F.component("RouterLink",HR),F.component("RouterView",DR),F.config.globalProperties.$router=Q,Object.defineProperty(F.config.globalProperties,"$route",{enumerable:!0,get:()=>Ee(l)}),wu&&!V&&l.value===Jo&&(V=!0,b(i.location).catch(Le=>{}));const re={};for(const Le in Jo)re[Le]=fe(()=>l.value[Le]);F.provide(mp,Q),F.provide(n1,mr(re)),F.provide(vv,l);const be=F.unmount;B.add(F),F.unmount=function(){B.delete(F),B.size<1&&(u=Jo,x&&x(),x=null,l.value=Jo,V=!1,P=!1),be()}}}}function ru(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function nW(e,t){const n=[],r=[],i=[],o=Math.max(t.matched.length,e.matched.length);for(let s=0;s<o;s++){const a=t.matched[s];a&&(e.matched.find(u=>ac(u,a))?r.push(a):n.push(a));const l=e.matched[s];l&&(t.matched.find(u=>ac(u,l))||i.push(l))}return[n,r,i]}function rW(){return kt(mp)}function iW(){return kt(n1)}const oW=Object.freeze(Object.defineProperty({__proto__:null,get NavigationFailureType(){return e_},RouterLink:HR,RouterView:DR,START_LOCATION:Jo,createMemoryHistory:yj,createRouter:tW,createRouterMatcher:xR,createWebHashHistory:bj,createWebHistory:TR,isNavigationFailure:Qo,matchedRouteKey:t1,onBeforeRouteLeave:Kj,onBeforeRouteUpdate:Xj,parseQuery:$R,routeLocationKey:n1,routerKey:mp,routerViewLocationKey:vv,stringifyQuery:n_,useLink:r_,useRoute:iW,useRouter:rW,viewDepthKey:Jb},Symbol.toStringTag,{value:"Module"})),sW=pE(oW);(function(e){var t=zi&&zi.__assign||function(){return t=Object.assign||function(p){for(var h,m=1,v=arguments.length;m<v;m++){h=arguments[m];for(var g in h)Object.prototype.hasOwnProperty.call(h,g)&&(p[g]=h[g])}return p},t.apply(this,arguments)},n=zi&&zi.__awaiter||function(p,h,m,v){function g(y){return y instanceof m?y:new m(function(_){_(y)})}return new(m||(m=Promise))(function(y,_){function b(E){try{C(v.next(E))}catch(w){_(w)}}function S(E){try{C(v.throw(E))}catch(w){_(w)}}function C(E){E.done?y(E.value):g(E.value).then(b,S)}C((v=v.apply(p,h||[])).next())})},r=zi&&zi.__generator||function(p,h){var m={label:0,sent:function(){if(y[0]&1)throw y[1];return y[1]},trys:[],ops:[]},v,g,y,_;return _={next:b(0),throw:b(1),return:b(2)},typeof Symbol=="function"&&(_[Symbol.iterator]=function(){return this}),_;function b(C){return function(E){return S([C,E])}}function S(C){if(v)throw new TypeError("Generator is already executing.");for(;m;)try{if(v=1,g&&(y=C[0]&2?g.return:C[0]?g.throw||((y=g.return)&&y.call(g),0):g.next)&&!(y=y.call(g,C[1])).done)return y;switch(g=0,y&&(C=[C[0]&2,y.value]),C[0]){case 0:case 1:y=C;break;case 4:return m.label++,{value:C[1],done:!1};case 5:m.label++,g=C[1],C=[0];continue;case 7:C=m.ops.pop(),m.trys.pop();continue;default:if(y=m.trys,!(y=y.length>0&&y[y.length-1])&&(C[0]===6||C[0]===2)){m=0;continue}if(C[0]===3&&(!y||C[1]>y[0]&&C[1]<y[3])){m.label=C[1];break}if(C[0]===6&&m.label<y[1]){m.label=y[1],y=C;break}if(y&&m.label<y[2]){m.label=y[2],m.ops.push(C);break}y[2]&&m.ops.pop(),m.trys.pop();continue}C=h.call(p,m)}catch(E){C=[6,E],g=0}finally{v=y=0}if(C[0]&5)throw C[1];return{value:C[0]?C[1]:void 0,done:!0}}};Object.defineProperty(e,"__esModule",{value:!0}),e.useGtm=e.GtmPlugin=e.loadScript=e.hasScript=e.GtmSupport=e.assertIsGtmId=e.createGtm=void 0;var i=Yb;Object.defineProperty(e,"GtmPlugin",{enumerable:!0,get:function(){return i.GtmSupport}});var o=bR,s;function a(p,h){h===void 0&&(h={id:""}),h=t({trackOnNextTick:!1},h),s=new i.GtmSupport(h),p.config.globalProperties.$gtm=s,s.isInBrowserContext()&&(h.vueRouter&&l(p,h.vueRouter,h.ignoredViews,h.trackOnNextTick,h.vueRouterAdditionalEventData),s.options.enabled&&s.options.loadScript&&(Array.isArray(h.id)?h.id.forEac
5h(function(m){if(typeof m=="string")(0,i.loadScript)(m,h);else{var v=t({},h);m.queryParams!=null&&(v.queryParams=t(t({},v.queryParams),m.queryParams)),(0,i.loadScript)(m.id,v)}}):(0,i.loadScript)(h.id,h))),p.provide("gtm",h)}function l(p,h,m,v,g){return m===void 0&&(m=[]),g===void 0&&(g=function(){return{}}),n(this,void 0,void 0,function(){var y,_=this;return r(this,function(b){switch(b.label){case 0:return b.trys.push([0,2,,3]),[4,Promise.resolve().then(function(){return sW})];case 1:return y=b.sent(),[3,3];case 2:return b.sent(),console.warn("[VueGtm]: You tried to register 'vueRouter' for vue-gtm, but 'vue-router' was not found."),[2];case 3:return h.afterEach(function(S,C,E){return n(_,void 0,void 0,function(){var w,T,A,L,x,k,M,z,P;return r(this,function(H){switch(H.label){case 0:return typeof S.name!="string"||Array.isArray(m)&&m.includes(S.name)||typeof m=="function"&&m(S,C)?[2]:(w=S.meta&&typeof S.meta.gtm=="string"&&S.meta.gtm?S.meta.gtm:S.name,y.isNavigationFailure(E,y.NavigationFailureType.aborted)?s!=null&&s.debugEnabled()&&console.log("[VueGtm]: '".concat(w,"' not tracked due to navigation aborted")):y.isNavigationFailure(E,y.NavigationFailureType.cancelled)&&s!=null&&s.debugEnabled()&&console.log("[VueGtm]: '".concat(w,"' not tracked due to navigation cancelled")),A=[{}],[4,g(S,C)]);case 1:return T=t.apply(void 0,[t.apply(void 0,A.concat([H.sent()])),(k=S.meta)===null||k===void 0?void 0:k.gtmAdditionalEventData]),L=(P=(z=(M=h.options)===null||M===void 0?void 0:M.history)===null||z===void 0?void 0:z.base)!==null&&P!==void 0?P:"",x=L,x.endsWith("/")||(x+="/"),x+=S.fullPath.startsWith("/")?S.fullPath.substr(1):S.fullPath,v?(0,o.nextTick)(function(){s==null||s.trackView(w,x,T)}):s==null||s.trackView(w,x,T),[2]}})})}),[2]}})})}function u(p){return{install:function(h){return a(h,p)}}}e.createGtm=u;var c={install:a},d=Yb;Object.defineProperty(e,"assertIsGtmId",{enumerable:!0,get:function(){return d.assertIsGtmId}}),Object.defineProperty(e,"GtmSupport",{enumerable:!0,get:function(){return d.GtmSupport}}),Object.defineProperty(e,"hasScript",{enumerable:!0,get:function(){return d.hasScript}}),Object.defineProperty(e,"loadScript",{enumerable:!0,get:function(){return d.loadScript}}),e.default=c;function f(){return s}e.useGtm=f})(QU);const aW=new Set(["title","titleTemplate","script","style","noscript"]),hm=new Set(["base","meta","link","style","script","noscript"]),lW=new Set(["title","titleTemplate","templateParams","base","htmlAttrs","bodyAttrs","meta","link","style","script","noscript"]),uW=new Set(["base","title","titleTemplate","bodyAttrs","htmlAttrs","templateParams"]),VR=new Set(["tagPosition","tagPriority","tagDuplicateStrategy","children","innerHTML","textContent","processTemplateParams"]),cW=typeof window<"u";function yv(e){let t=9;for(let n=0;n<e.length;)t=Math.imul(t^e.charCodeAt(n++),9**9);return((t^t>>>9)+65536).toString(16).substring(1,8).toLowerCase()}function i_(e){if(e._h)return e._h;if(e._d)return yv(e._d);let t=`${e.tag}:${e.textContent||e.innerHTML||""}:`;for(const n in e.props)t+=`${n}:${String(e.props[n])},`;return yv(t)}function dW(e,t){return e instanceof Promise?e.then(t):t(e)}function o_(e,t,n,r){const i=r||BR(typeof t=="object"&&typeof t!="function"&&!(t instanceof Promise)?{...t}:{[e==="script"||e==="noscript"||e==="style"?"innerHTML":"textContent"]:t},e==="templateParams"||e==="titleTemplate");if(i instanceof Promise)return i.then(s=>o_(e,t,n,s));const o={tag:e,props:i};for(const s of VR){const a=o.props[s]!==void 0?o.props[s]:n[s];a!==void 0&&((!(s==="innerHTML"||s==="textContent"||s==="children")||aW.has(o.tag))&&(o[s==="children"?"innerHTML":s]=a),delete o.props[s])}return o.props.body&&(o.tagPosition="bodyClose",delete o.props.body),o.tag==="script"&&typeof o.innerHTML=="object"&&(o.innerHTML=JSON.stringify(o.innerHTML),o.props.type=o.props.type||"application/json"),Array.isArray(o.props.content)?o.props.content.map(s=>({...o,props:{...o.props,content:s}})):o}function fW(e,t){var r;const n=e==="class"?" ":";";return t&&typeof t=="object"&&!Array.isArray(t)&&(t=Object.entries(t).filter(([,i])=>i).map(([i,o])=>e==="style"?`${i}:${o}`:i)),(r=String(Array.isArray(t)?t.join(n):t))==null?void 0:r.split(n).filter(i=>!!i.trim()).join(n)}function FR(e,t,n,r){for(let i=r;i<n.length;i+=1){const o=n[i];if(o==="class"||o==="style"){e[o]=fW(o,e[o]);continue}if(e[o]instanceof Promise)return e[o].then(s=>(e[o]=s,FR(e,t,n,i)));if(!t&&!VR.has(o)){const s=String(e[o]),a=o.startsWith("data-");s==="true"||s===""?e[o]=a?"true":!0:e[o]||(a&&s==="false"?e[o]="false":delete e[o])}}}function BR(e,t=!1){const n=FR(e,t,Object.keys(e),0);return n instanceof Promise?n.then(()=>e):e}const pW=10;function UR(e,t,n){for(let r=n;r<t.length;r+=1){const i=t[r];
5if(i instanceof Promise)return i.then(o=>(t[r]=o,UR(e,t,r)));Array.isArray(i)?e.push(...i):e.push(i)}}function hW(e){const t=[],n=e.resolvedInput;for(const i in n){if(!Object.prototype.hasOwnProperty.call(n,i))continue;const o=n[i];if(!(o===void 0||!lW.has(i))){if(Array.isArray(o)){for(const s of o)t.push(o_(i,s,e));continue}t.push(o_(i,o,e))}}if(t.length===0)return[];const r=[];return dW(UR(r,t,0),()=>r.map((i,o)=>(i._e=e._i,e.mode&&(i._m=e.mode),i._p=(e._i<<pW)+o,i)))}const cA=new Set(["onload","onerror","onabort","onprogress","onloadstart"]),dA={base:-10,title:10},fA={critical:-80,high:-10,low:20};function bv(e){const t=e.tagPriority;if(typeof t=="number")return t;let n=100;return e.tag==="meta"?e.props["http-equiv"]==="content-security-policy"?n=-30:e.props.charset?n=-20:e.props.name==="viewport"&&(n=-15):e.tag==="link"&&e.props.rel==="preconnect"?n=20:e.tag in dA&&(n=dA[e.tag]),t&&t in fA?n+fA[t]:n}const mW=[{prefix:"before:",offset:-1},{prefix:"after:",offset:1}],vW=["name","property","http-equiv"];function jR(e){const{props:t,tag:n}=e;if(uW.has(n))return n;if(n==="link"&&t.rel==="canonical")return"canonical";if(t.charset)return"charset";if(t.id)return`${n}:id:${t.id}`;for(const r of vW)if(t[r]!==void 0)return`${n}:${r}:${t[r]}`;return!1}const Ws="%separator";function gW(e,t,n=!1){var i;let r;if(t==="s"||t==="pageTitle")r=e.pageTitle;else if(t.includes(".")){const o=t.indexOf(".");r=(i=e[t.substring(0,o)])==null?void 0:i[t.substring(o+1)]}else r=e[t];if(r!==void 0)return n?(r||"").replace(/"/g,'\\"'):r||""}const yW=new RegExp(`${Ws}(?:\\s*${Ws})*`,"g");function yh(e,t,n,r=!1){if(typeof e!="string"||!e.includes("%"))return e;let i=e;try{i=decodeURI(e)}catch{}const o=i.match(/%\w+(?:\.\w+)?/g);if(!o)return e;const s=e.includes(Ws);return e=e.replace(/%\w+(?:\.\w+)?/g,a=>{if(a===Ws||!o.includes(a))return a;const l=gW(t,a.slice(1),r);return l!==void 0?l:a}).trim(),s&&(e.endsWith(Ws)&&(e=e.slice(0,-Ws.length)),e.startsWith(Ws)&&(e=e.slice(Ws.length)),e=e.replace(yW,n).trim()),e}function pA(e,t){return e==null?t||null:typeof e=="function"?e(t):e}async function bW(e,t={}){const n=t.document||e.resolvedOptions.document;if(!n||!e.dirty)return;const r={shouldRender:!0,tags:[]};if(await e.hooks.callHook("dom:beforeRender",r),!!r.shouldRender)return e._domUpdatePromise||(e._domUpdatePromise=new Promise(async i=>{var d;const o=(await e.resolveTags()).map(f=>({tag:f,id:hm.has(f.tag)?i_(f):f.tag,shouldRender:!0}));let s=e._dom;if(!s){s={elMap:{htmlAttrs:n.documentElement,bodyAttrs:n.body}};const f=new Set;for(const p of["body","head"]){const h=(d=n[p])==null?void 0:d.children;for(const m of h){const v=m.tagName.toLowerCase();if(!hm.has(v))continue;const g={tag:v,props:await BR(m.getAttributeNames().reduce((S,C)=>({...S,[C]:m.getAttribute(C)}),{})),innerHTML:m.innerHTML},y=jR(g);let _=y,b=1;for(;_&&f.has(_);)_=`${y}:${b++}`;_&&(g._d=_,f.add(_)),s.elMap[m.getAttribute("data-hid")||i_(g)]=m}}}s.pendingSideEffects={...s.sideEffects},s.sideEffects={};function a(f,p,h){const m=`${f}:${p}`;s.sideEffects[m]=h,delete s.pendingSideEffects[m]}function l({id:f,$el:p,tag:h}){const m=h.tag.endsWith("Attrs");if(s.elMap[f]=p,m||(h.textContent&&h.textContent!==p.textContent&&(p.textContent=h.textContent),h.innerHTML&&h.innerHTML!==p.innerHTML&&(p.innerHTML=h.innerHTML),a(f,"el",()=>{var v;(v=s.elMap[f])==null||v.remove(),delete s.elMap[f]})),h._eventHandlers)for(const v in h._eventHandlers)Object.prototype.hasOwnProperty.call(h._eventHandlers,v)&&p.getAttribute(`data-${v}`)!==""&&((h.tag==="bodyAttrs"?n.defaultView:p).addEventListener(v.substring(2),h._eventHandlers[v].bind(p)),p.setAttribute(`data-${v}`,""));for(const v in h.props){if(!Object.prototype.hasOwnProperty.call(h.props,v))continue;const g=h.props[v],y=`attr:${v}`;if(v==="class"){if(!g)continue;for(const _ of g.split(" "))m&&a(f,`${y}:${_}`,()=>p.classList.remove(_)),!p.classList.contains(_)&&p.classList.add(_)}else if(v==="style"){if(!g)continue;for(const _ of g.split(";")){const b=_.indexOf(":"),S=_.substring(0,b).trim(),C=_.substring(b+1).trim();a(f,`${y}:${S}`,()=>{p.style.removeProperty(S)}),p.style.setProperty(S,C)}}else p.getAttribute(v)!==g&&p.setAttribute(v,g===!0?"":String(g)),m&&a(f,y,()=>p.removeAttribute(v))}}const u=[],c={bodyClose:void 0,bodyOpen:void 0,head:void 0};for(const f of o){const{tag:p,shouldRender:h,id:m}=f;if(h){if(p.tag==="title"){n.title=p.textContent;continue}f.$el=f.$el||s.elMap[m],f.$el?l(f):hm.has(p.tag)&&u.push(f)}}for(const f of u){const p=f.tag.tagPosition||"head";f.$el=n.createElement(f.tag.tag),l(f),c[p]=c[p]||n.createDocumentFragment(),c[p].appendChild(f.$el)}for(const f of o)await e.hooks.callHook("dom:renderTag",f,n,a);c.head&&n.head.appendChild(c.head),c.bodyOpen&&n.body.insertBefore(c.bodyOpen,n.body.firstChild),c.bodyClose&&n.body.appendChild(c.bodyClose);for(const f in s.pendingSideEffects)s.pendingSideEffects[f]();e._dom=s,await e.hooks.callHook("dom:rendered",{renders:o}),i()}).finally(()=>{e._domUpdatePromise=void 0,e.dirty=!1})),e._domUpdatePromise}function _W(e,t={}){const n=t.delayFn||(r=>setTimeout(r,10));return e._domDebouncedUpdatePromise=e._domDebouncedUpdatePromise||new Promise(r=>n(()=>bW(e,t).then(()=>{delete e._domDebouncedUpdatePromise,r()})))}function SW(e){return t=>{var r,i;const n=((i=(r=t.resolvedOptions.document)==null?void 0:r.head.querySelector('script[id="unhead:payload"]'))==null?void 0:i.innerHTML)||!1;
5return n&&t.push(JSON.parse(n)),{mode:"client",hooks:{"entries:updated":o=>{_W(o,e)}}}}}function s_(e,t={},n){for(const r in e){const i=e[r],o=n?`${n}:${r}`:r;typeof i=="object"&&i!==null?s_(i,t,o):typeof i=="function"&&(t[o]=i)}return t}const EW={run:e=>e()},CW=()=>EW,WR=typeof console.createTask<"u"?console.createTask:CW;function wW(e,t){const n=t.shift(),r=WR(n);return e.reduce((i,o)=>i.then(()=>r.run(()=>o(...t))),Promise.resolve())}function TW(e,t){const n=t.shift(),r=WR(n);return Promise.all(e.map(i=>r.run(()=>i(...t))))}function B0(e,t){for(const n of[...e])n(t)}class AW{constructor(){this._hooks={},this._before=void 0,this._after=void 0,this._deprecatedMessages=void 0,this._deprecatedHooks={},this.hook=this.hook.bind(this),this.callHook=this.callHook.bind(this),this.callHookWith=this.callHookWith.bind(this)}hook(t,n,r={}){if(!t||typeof n!="function")return()=>{};const i=t;let o;for(;this._deprecatedHooks[t];)o=this._deprecatedHooks[t],t=o.to;if(o&&!r.allowDeprecated){let s=o.message;s||(s=`${i} hook has been deprecated`+(o.to?`, please use ${o.to}`:"")),this._deprecatedMessages||(this._deprecatedMessages=new Set),this._deprecatedMessages.has(s)||(console.warn(s),this._deprecatedMessages.add(s))}if(!n.name)try{Object.defineProperty(n,"name",{get:()=>"_"+t.replace(/\W+/g,"_")+"_hook_cb",configurable:!0})}catch{}return this._hooks[t]=this._hooks[t]||[],this._hooks[t].push(n),()=>{n&&(this.removeHook(t,n),n=void 0)}}hookOnce(t,n){let r,i=(...o)=>(typeof r=="function"&&r(),r=void 0,i=void 0,n(...o));return r=this.hook(t,i),r}removeHook(t,n){if(this._hooks[t]){const r=this._hooks[t].indexOf(n);r!==-1&&this._hooks[t].splice(r,1),this._hooks[t].length===0&&delete this._hooks[t]}}deprecateHook(t,n){this._deprecatedHooks[t]=typeof n=="string"?{to:n}:n;const r=this._hooks[t]||[];delete this._hooks[t];for(const i of r)this.hook(t,i)}deprecateHooks(t){Object.assign(this._deprecatedHooks,t);for(const n in t)this.deprecateHook(n,t[n])}addHooks(t){const n=s_(t),r=Object.keys(n).map(i=>this.hook(i,n[i]));return()=>{for(const i of r.splice(0,r.length))i()}}removeHooks(t){const n=s_(t);for(const r in n)this.removeHook(r,n[r])}removeAllHooks(){for(const t in this._hooks)delete this._hooks[t]}callHook(t,...n){return n.unshift(t),this.callHookWith(wW,t,...n)}callHookParallel(t,...n){return n.unshift(t),this.callHookWith(TW,t,...n)}callHookWith(t,n,...r){const i=this._before||this._after?{name:n,args:r,context:{}}:void 0;this._before&&B0(this._before,i);const o=t(n in this._hooks?[...this._hooks[n]]:[],r);return o instanceof Promise?o.finally(()=>{this._after&&i&&B0(this._after,i)}):(this._after&&i&&B0(this._after,i),o)}beforeEach(t){return this._before=this._before||[],this._before.push(t),()=>{if(this._before!==void 0){const n=this._before.indexOf(t);n!==-1&&this._before.splice(n,1)}}}afterEach(t){return this._after=this._after||[],this._after.push(t),()=>{if(this._after!==void 0){const n=this._after.indexOf(t);n!==-1&&this._after.splice(n,1)}}}}function IW(){return new AW}const xW=new Set(["templateParams","htmlAttrs","bodyAttrs"]),LW={hooks:{"tag:normalise":({tag:e})=>{e.props.hid&&(e.key=e.props.hid,delete e.props.hid),e.props.vmid&&(e.key=e.props.vmid,delete e.props.vmid),e.props.key&&(e.key=e.props.key,delete e.props.key);const t=jR(e);t&&!t.startsWith("meta:og:")&&!t.startsWith("meta:twitter:")&&delete e.key;const n=t||(e.key?`${e.tag}:${e.key}`:!1);n&&(e._d=n)},"tags:resolve":e=>{const t=Object.create(null);for(const r of e.tags){const i=(r.key?`${r.tag}:${r.key}`:r._d)||i_(r),o=t[i];if(o){let a=r==null?void 0:r.tagDuplicateStrategy;if(!a&&xW.has(r.tag)&&(a="merge"),a==="merge"){const l=o.props;l.style&&r.props.style&&(l.style[l.style.length-1]!==";"&&(l.style+=";"),r.props.style=`${l.style} ${r.props.style}`),l.class&&r.props.class?r.props.class=`${l.class} ${r.props.class}`:l.class&&(r.props.class=l.class),t[i].props={...l,...r.props};continue}else if(r._e===o._e){o._duped=o._duped||[],r._d=`${o._d}:${o._duped.length+1}`,o._duped.push(r);continue}else if(bv(r)>bv(o))continue}if(!(r.innerHTML||r.textContent||Object.keys(r.props).length!==0)&&hm.has(r.tag)){delete t[i];continue}t[i]=r}const n=[];for(const r in t){const i=t[r],o=i._duped;n.push(i),o&&(delete i._duped,n.push(...o))}e.tags=n,e.tags=e.tags.filter(r=>!(r.tag==="meta"&&(r.props.name||r.props.property)&&!r.props.content))}}},kW=new Set(["script","link","bodyAttrs"]),MW=e=>({hooks:{"tags:resolve":t=>{for(const n of t.tags){if(!kW.has(n.tag))continue;const r=n.props;for(const i in r){if(i[0]!=="o"||i[1]!=="n"||!Object.prototype.hasOwnProperty.call(r,i))continue;const o=r[i];typeof o=="function"&&(e.ssr&&cA.has(i)?r[i]=`this.dataset.${i}fired = true`:delete r[i],n._eventHandlers=n._eventHandlers||{},n._eventHandlers[i]=o)}e.ssr&&n._eventHandlers&&(n.props.src||n.props.href)&&(n.key=n.key||yv(n.props.src||n.props.href))}},"dom:renderTag":({$el:t,tag:n})=>{var i,o;const r=t==null?void 0:t.dataset;if(r)for(const s in r){if(!s.endsWith("fired"))continue;const a=s.slice(0,-5);cA.has(a)&&((o=(i=n._eventHandlers)==null?void 0:i[a])==null||o.call(t,new Event(a.substring(2))))}}}}),RW=new Set(["link","style","script","noscript"]),PW={hooks:{"tag:normalise":({tag:e})=>{e.key&&RW.has(e.tag)&&(e.props["data-hid"]=e._h=yv(e.key))}}},OW={mode:"server",hooks:{"tags:beforeResolve":e=>{const t={};let n=!1;for(const r of e.tags)r._m!=="server"||r.tag!=="titleTemplate"&&r.tag!=="templateParams"&&r.tag!=="title"||(t[r.tag]=r.tag==="title"||r.tag==="titleTemplate"?r.textContent:r.props,n=!0);n&&e.tags.push({tag:"script",innerHTML:JSON.stringify(t),props:{id:"unhead:payload",type:"application/json"}})}}},$W={hooks:{"tags:resolve":e=>{var t;for(const n of e.tags)if(typeof n.tagPriority=="string")for(const{prefix:r,offset:i}of mW){if(!n.tagPriority.startsWith(r))continue;const o=n.tagPriority.substring(r.length),s=(t=e.tags.find(a=>a._d===o))==null?void 0:t._p;if(s!==void 0){n._p=s+i;break}}e.tags.sort((n,r)=>{const i=bv(n),o=bv(r);return i<o?-1:i>o?1:n._p-r._p})}}},NW={meta:"content",link:"href",htmlAttrs:"lang"},HW=["innerHTML","textContent"],DW=e=>({hooks:{"tags:resolve":t=>{var s;const{tags:n}=t;let r;for(let a=0;a<n.length;a+=1)n[a].tag==="templateParams"&&(r=t.tags.splice(a,1)[0].props,a-=1);const i=r||{},o=i.separator||"|";delete i.separator,i.pageTitle=yh(i.pageTitle||((s=n.find(a=>a.tag==="title"))==null?void 0:s.textContent)||"",i,o);for(const a of n){if(a.processTemplateParams===!1)continue;const l=NW[a.tag];if(l&&typeof a.props[l]=="string")a.props[l]=yh(a.props[l],i,o);else if(a.processTemplateParams||a.tag==="titleTemplate"||a.tag==="title")for(const u of HW)typeof a[u]=="string"&&(a[u]=yh(a[u],i,o,a.tag==="script"&&a.props.type.endsWith("json")))}e._templateParams=i,e._separator=o},"tags:afterResolve":({tags:t})=>{let n;for(let r=0;r<t.length;r+=1){const i=t[r];
5i.tag==="title"&&i.processTemplateParams!==!1&&(n=i)}n!=null&&n.textContent&&(n.textContent=yh(n.textContent,e._templateParams,e._separator))}}}),VW={hooks:{"tags:resolve":e=>{const{tags:t}=e;let n,r;for(let i=0;i<t.length;i+=1){const o=t[i];o.tag==="title"?n=o:o.tag==="titleTemplate"&&(r=o)}if(r&&n){const i=pA(r.textContent,n.textContent);i!==null?n.textContent=i||n.textContent:e.tags.splice(e.tags.indexOf(n),1)}else if(r){const i=pA(r.textContent);i!==null&&(r.textContent=i,r.tag="title",r=void 0)}r&&e.tags.splice(e.tags.indexOf(r),1)}}},FW={hooks:{"tags:afterResolve":e=>{for(const t of e.tags)typeof t.innerHTML=="string"&&(t.innerHTML&&(t.props.type==="application/ld+json"||t.props.type==="application/json")?t.innerHTML=t.innerHTML.replace(/</g,"\\u003C"):t.innerHTML=t.innerHTML.replace(new RegExp(`</${t.tag}`,"g"),`<\\/${t.tag}`))}}};let GR;function BW(e={}){const t=UW(e);return t.use(SW()),GR=t}function hA(e,t){return!e||e==="server"&&t||e==="client"&&!t}function UW(e={}){const t=IW();t.addHooks(e.hooks||{}),e.document=e.document||(cW?document:void 0);const n=!e.document,r=()=>{a.dirty=!0,t.callHook("entries:updated",a)};let i=0,o=[];const s=[],a={plugins:s,dirty:!1,resolvedOptions:e,hooks:t,headEntries(){return o},use(l){const u=typeof l=="function"?l(a):l;(!u.key||!s.some(c=>c.key===u.key))&&(s.push(u),hA(u.mode,n)&&t.addHooks(u.hooks||{}))},push(l,u){u==null||delete u.head;const c={_i:i++,input:l,...u};return hA(c.mode,n)&&(o.push(c),r()),{dispose(){o=o.filter(d=>d._i!==c._i),r()},patch(d){for(const f of o)f._i===c._i&&(f.input=c.input=d);r()}}},async resolveTags(){const l={tags:[],entries:[...o]};await t.callHook("entries:resolve",l);for(const u of l.entries){const c=u.resolvedInput||u.input;if(u.resolvedInput=await(u.transform?u.transform(c):c),u.resolvedInput)for(const d of await hW(u)){const f={tag:d,entry:u,resolvedOptions:a.resolvedOptions};await t.callHook("tag:normalise",f),l.tags.push(f.tag)}}return await t.callHook("tags:beforeResolve",l),await t.callHook("tags:resolve",l),await t.callHook("tags:afterResolve",l),l.tags},ssr:n};return[LW,OW,MW,PW,$W,DW,VW,FW,...(e==null?void 0:e.plugins)||[]].forEach(l=>a.use(l)),a.hooks.callHook("init",a),a}function jW(){return GR}const WW=cE[0]==="3";function GW(e){return typeof e=="function"?e():Ee(e)}function _v(e){if(e instanceof Promise||e instanceof Date||e instanceof RegExp)return e;const t=GW(e);if(!e||!t)return t;if(Array.isArray(t))return t.map(n=>_v(n));if(typeof t=="object"){const n={};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(r==="titleTemplate"||r[0]==="o"&&r[1]==="n"){n[r]=Ee(t[r]);continue}n[r]=_v(t[r])}return n}return t}const zW={hooks:{"entries:resolve":e=>{for(const t of e.entries)t.resolvedInput=_v(t.input)}}},zR="usehead";function qW(e){return{install(n){WW&&(n.config.globalProperties.$unhead=e,n.config.globalProperties.$head=e,n.provide(zR,e))}}.install}function pHe(e={}){e.domDelayFn=e.domDelayFn||(n=>Lt(()=>setTimeout(()=>n(),0)));const t=BW(e);return t.use(zW),t.install=qW(t),t}const mA=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},vA="__unhead_injection_handler__";function KW(){if(vA in mA)return mA[vA]();const e=kt(zR);return e||jW()}function XW(e,t={}){const n=t.head||KW();if(n)return n.ssr?n.push(e,t):ZW(n,e,t)}function ZW(e,t,n={}){const r=ie(!1),i=ie({});bi(()=>{i.value=r.value?{}:_v(t)});const o=e.push(i.value,n);return ut(i,a=>{o.patch(a)}),fi()&&(Dl(()=>{o.dispose()}),hp(()=>{r.value=!0}),pp(()=>{r.value=!1})),o}var qR={exports:{}};function vE(){}vE.prototype={on:function(e,t,n){var r=this.e||(this.e={});return(r[e]||(r[e]=[])).push({fn:t,ctx:n}),this},once:function(e,t,n){var r=this;function i(){r.off(e,i),t.apply(n,arguments)}return i._=t,this.on(e,i,n)},emit:function(e){var t=[].slice.call(arguments,1),n=((this.e||(this.e={}))[e]||[]).slice(),r=0,i=n.length;for(r;r<i;r++)n[r].fn.apply(n[r].ctx,t);return this},off:function(e,t){var n=this.e||(this.e={}),r=n[e],i=[];if(r&&t)for(var o=0,s=r.length;o<s;o++)r[o].fn!==t&&r[o].fn._!==t&&i.push(r[o]);return i.length?n[e]=i:delete n[e],this}};qR.exports=vE;var hHe=qR.exports.TinyEmitter=vE,hd={red:{50:"#ffebee",100:"#ffcdd2",200:"#ef9a9a",300:"#e57373",400:"#ef5350",500:"#f44336",600:"#e53935",700:"#d32f2f",800:"#c62828",900:"#b71c1c",A100:"#ff8a80",A200:"#ff5252",A400:"#ff1744",A700:"#d50000",darkText:[50,100,200,300,"A100"]},pink:{50:"#fce4ec",100:"#f8bbd0",200:"#f48fb1",300:"#f06292",400:"#ec407a",500:"#e91e63",600:"#d81b60",700:"#c2185b",800:"#ad1457",900:"#880e4f",A100:"#ff80ab",A200:"#ff4081",A400:"#f50057",A700:"#c51162",darkText:[50,100,200,"A100"]},purple:{50:"#f3e5f5",100:"#e1bee7",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",600:"#8e24aa",700:"#7b1fa2",800:"#6a1b9a",900:"#4a148c",A100:"#ea80fc",A200:"#e040fb",A400:"#d500f9",A700:"#aa00ff",darkText:[50,100,200,"A100"]},"deep-purple":{50:"#ede7f6",100:"#d1c4e9",200:"#b39ddb",300:"#9575cd",400:"#7e57c2",500:"#673ab7",600:"#5e35b1",700:"#512da8",800:"#4527a0",900:"#311b92",A100:"#b388ff",A200:"#7c4dff",A400:"#651fff",A700:"#6200ea",darkText:[50,100,200,"A100"]},indigo:{50:"#e8eaf6",100:"#c5cae9",200:"#9fa8da",300:"#7986cb",400:"#5c6bc0",500:"#3f51b5",600:"#3949ab",700:"#303f9f",800:"#283593",900:"#1a237e",A100:"#8c9eff",A200:"#536dfe",A400:"#3d5afe",A700:"#304ffe",darkText:[50,100,200,"A100"]},blue:{50:"#e3f2fd",100:"#bbdefb",200:"#90caf9",300:"#64b5f6",400:"#42a5f5",500:"#2196f3",600:"#1e88e5",700:"#1976d2",800:"#1565c0",900:"#0d47a1",A100:"#82b1ff",A200:"#448aff",A400:"#2979ff",A700:"#2962ff",darkText:[50,100,200,300,400,"A100"]},"light-blue":{50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea",darkText:[50,100,200,300,400,500,"A100","A200","A300"]},cyan:{50:"#e0f7fa",100:"#b2ebf2",200:"#80deea",300:"#4dd0e1",400:"#26c6da",500:"#00bcd4",600:"#00acc1",700:"#0097a7",800:"#00838f",900:"#006064",A100:"#84ffff",A200:"#18ffff",A400:"#00e5ff",A700:"#00b8d4",darkText:[50,100,200,300,400,500,600,"A100","A200","A300","A400"]},teal:{50:"#e0f2f1",100:"#b2dfdb",200:"#80cbc4",300:"#4db6ac",400:"#26a69a",500:"#009688",600:"#00897b",700:"#00796b",800:"#00695c",900:"#004d40",A100:"#a7ffeb",A200:"#64ffda",A400:"#1de9b6",A700:"#00bfa5",darkText:[50,100,200,300,400,"A100","A200","A300","A400"]},green:{50:"#e8f5e9",100:"#c8e6c9",200:"#a5d6a7",300:"#81c784",400:"#66bb6a",500:"#4caf50",600:"#43a047",700:"#388e3c",800:"#2e7d32",900:"#1b5e20",A100:"#b9f6ca",A200:"#69f0ae",A400:"#00e676",A700:"#00c853",darkText:[50,100,200,300,400,500,"A100","A200","A300","A400"]},"light-green":{50:"#f1f8e9",100:"#dcedc8",200:"#c5e1a5",300:"#aed581",400:"#9ccc65",500:"#8bc34a",600:"#7cb342",700:"#689f38",800:"#558b2f",900:"#33691e",A100:"#ccff90",A200:"#b2ff59",A400:"#76ff03",A700:"#64dd17",darkText:[50,100,200,300,400,500,600,"A100","A200","A300","A400"]},lime:{50:"#f9fbe7",100:"#f0f4c3",200:"#e6ee9c",300:"#dce775",400:"#d4e157",500:"#cddc39",600:"#c0ca33",700:"#afb42b",800:"#9e9d24",900:"#827717",A100:"#f4ff81",A200:"#eeff41",A400:"#c6ff00",A700:"#aeea00",darkText:[50,100,200,300,400,500,600,700,800,"A100","A200","A300","A400"]},yellow:{50:"#fffde7",100:"#fff9c4",200:"#fff59d",300:"#fff176",400:"#ffee58",500:"#ffeb3b",600:"#fdd835",700:"#fbc02d",800:"#f9a825",900:"#f57f17",A100:"#ffff8d",A200:"#ffff00",A400:"#ffea00",A700:"#ffd600",darkText:[50,100,200,300,400,500,600,700,800,900,"A100","A200","A300","A400"]},amber:{50:"#fff8e1",100:"#ffecb3",200:"#ffe082",300:"#ffd54f",400:"#ffca28",500:"#ffc107",600:"#ffb300",700:"#ffa000",800:"#ff8f00",900:"#ff6f00",A100:"#ffe57f",A200:"#ffd740",A400:"#ffc400",A700:"#ffab00",darkText:[50,100,200,300,400,500,600,700,800,900,"A100","A200","A300","A400"]},orange:{50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00",darkText:[50,100,200,300,400,500,600,700,"A100","A200","A300","A400"]},"deep-orange":{50:"#fbe9e7",100:"#ffccbc",200:"#ffab91",300:"#ff8a65",400:"#ff7043",500:"#ff5722",600:"#f4511e",700:"#e64a19",800:"#d84315",900:"#bf360c",A100:"#ff9e80",A200:"#ff6e40",A400:"#ff3d00",A700:"#dd2c00",darkText:[50,100,200,300,400,"A100","A200"]}
5,brown:{50:"#efebe9",100:"#d7ccc8",200:"#bcaaa4",300:"#a1887f",400:"#8d6e63",500:"#795548",600:"#6d4c41",700:"#5d4037",800:"#4e342e",900:"#3e2723",A100:"#d7ccc8",A200:"#bcaaa4",A400:"#8d6e63",A700:"#5d4037",darkText:[50,100,200,"A100","A200","A300","A400"]},grey:{50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#fff",A200:"#000000",A400:"#303030",A700:"#616161",darkText:[50,100,200,300,400,500,"A100"]},"blue-grey":{50:"#eceff1",100:"#cfd8dc",200:"#b0bec5",300:"#90a4ae",400:"#78909c",500:"#607d8b",600:"#546e7a",700:"#455a64",800:"#37474f",900:"#263238",A100:"#cfd8dc",A200:"#b0bec5",A400:"#78909c",A700:"#455a64",darkText:[50,100,200,300,"A100","A200","A300","A400"]},white:{50:"#fff",100:"#fff",200:"#fff",300:"#fff",400:"#fff",500:"#fff",600:"#fff",700:"#fff",800:"#fff",900:"#fff",A100:"#fff",A200:"#fff",A400:"#fff",A700:"#fff",darkText:[50,100,200,300,400,500,600,700,800,900,"A100","A200","A300","A400"]},black:{50:"#000",100:"#000",200:"#000",300:"#000",400:"#000",500:"#000",600:"#000",700:"#000",800:"#000",900:"#000",A100:"#000",A200:"#000",A400:"#000",A700:"#000",darkText:[]},"studio-blue":{50:"#00acc1",100:"#00acc1",200:"#00acc1",300:"#00acc1",400:"#00acc1",500:"#00acc1",600:"#00acc1",700:"#00acc1",800:"#00acc1",900:"#00acc1",A100:"#00acc1",A200:"#00acc1",A400:"#00acc1",A700:"#00acc1",darkText:[50,100,200,300,"A100"]}};function YW(e){let t="",n="",r="",i=e.toString().match(/^#?(([0-9a-zA-Z]{3}){1,3})$/);if(!i)throw new Error("Invalid color"+e);if(e=i[1],e.length===6)t=parseInt(e.substring(0,2),16),n=parseInt(e.substring(2,4),16),r=parseInt(e.substring(4,6),16);else if(e.length===3){let o=e.substring(0,1),s=e.substring(1,2),a=e.substring(2,3);t=parseInt(o+o,16),n=parseInt(s+s,16),r=parseInt(a+a,16)}return`${t}, ${n}, ${r}`}var bh;function JW(e,t){t===void 0&&(t=!1);var n=e.CSS,r=bh;if(typeof bh=="boolean"&&!t)return bh;var i=n&&typeof n.supports=="function";if(!i)return!1;var o=n.supports("--css-vars","yes"),s=n.supports("(--css-vars: yes)")&&n.supports("color","#00000000");return r=o||s,t||(bh=r),r}function QW(e,t,n){if(!e)return{x:0,y:0};var r=t.x,i=t.y,o=r+n.left,s=i+n.top,a,l;if(e.type==="touchstart"){var u=e;a=u.changedTouches[0].pageX-o,l=u.changedTouches[0].pageY-s}else{var c=e;a=c.pageX-o,l=c.pageY-s}return{x:a,y:l}}var a_=function(e,t){return a_=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},a_(e,t)};function Vt(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");a_(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var ne=function(){return ne=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ne.apply(this,arguments)};function Sv(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ve(e,t,n,r){var i=arguments.length,o=i<3?t:r===null?r=Object.getOwnPropertyDescriptor(t,n):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,n,r);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(i<3?s(o):i>3?s(t,n,o):s(t,n))||o);return i>3&&o&&Object.defineProperty(t,n,o),o}function ue(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?o(c.value):i(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}function oe(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Ge(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);
vendor: 5,627 bytes, lines 5-47
5if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ne(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function Fe(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}function qu(e){return this instanceof qu?(this.v=e,this):new qu(e)}function eG(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),i,o=[];return i=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),i[Symbol.asyncIterator]=function(){return this},i;function s(p){return function(h){return Promise.resolve(h).then(p,d)}}function a(p,h){r[p]&&(i[p]=function(m){return new Promise(function(v,g){o.push([p,m,v,g])>1||l(p,m)})},h&&(i[p]=h(i[p])))}function l(p,h){try{u(r[p](h))}catch(m){f(o[0][3],m)}}function u(p){p.value instanceof qu?Promise.resolve(p.value.v).then(c,d):f(o[0][2],p)}function c(p){l("next",p)}function d(p){l("throw",p)}function f(p,h){p(h),o.shift(),o.length&&l(o[0][0],o[0][1])}}function tG(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Ge=="function"?Ge(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(o){n[o]=e[o]&&function(s){return new Promise(function(a,l){s=e[o](s),i(a,l,s.done,s.value)})}}function i(o,s,a,l){Promise.resolve(l).then(function(u){o({value:u,done:a})},s)}}/** 6 * @license 7 * Copyright 2016 Google Inc. 8 * 9 * Permission is hereby granted, free of charge, to any person obtaining a copy 10 * of this software and associated documentation files (the "Software"), to deal 11 * in the Software without restriction, including without limitation the rights 12 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 13 * copies of the Software, and to permit persons to whom the Software is 14 * furnished to do so, subject to the following conditions: 15 * 16 * The above copyright notice and this permission notice shall be included in 17 * all copies or substantial portions of the Software. 18 * 19 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 20 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 21 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 22 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 23 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 24 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 25 * THE SOFTWARE. 26 */var KR=function(){function e(t){t===void 0&&(t={}),this.adapter=t}return Object.defineProperty(e,"cssClasses",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"strings",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"numbers",{get:function(){return{}},enumerable:!1,configurable:!0}),Object.defineProperty(e,"defaultAdapter",{get:function(){return{}},enumerable:!1,configurable:!0}),e.prototype.init=function(){},e.prototype.destroy=function(){},e}();/** 27 * @license 28 * Copyright 2016 Google Inc. 29 * 30 * Permission is hereby granted, free of charge, to any person obtaining a copy 31 * of this software and associated documentation files (the "Software"), to deal 32 * in the Software without restriction, including without limitation the rights 33 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 34 * copies of the Software, and to permit persons to whom the Software is 35 * furnished to do so, subject to the following conditions: 36 * 37 * The above copyright notice and this permission notice shall be included in 38 * all copies or substantial portions of the Software. 39 * 40 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 41 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 42 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 43 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 44 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 45 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 46 * THE SOFTWARE. 47 */var nG=function(){function e(t,n){for(var r=[],i=2;i<arguments.length;i++)r[i-2]=arguments[i];this.root=t,this.initialize.apply(this,Fe([],Ne(r))),this.foundation=n===void 0?this.getDefaultFoundation():n,this.foundation.init(),this.initialSyncWithDOM()}return e.attachTo=function(t){return new e(t,new KR({}))},e.prototype.initialize=function(){},e.prototype.getDefaultFoundation=function(){throw new Error("Subclasses must override getDefaultFoundation to return a properly configured foundation class")},e.prototype.initialSyncWithDOM=function(){},e.prototype.destroy=function(){this.foundation.destroy()},e.prototype.listen=function(t,n,r){this.root.addEventListener(t,n,r)},e.prototype.unlisten=function(t,n,r){this.root.removeEventListener(t,n,r)},e.prototype.emit=function(t,n,r){r===void 0&&(r=!1);var i;typeof CustomEvent=="function"?i=new CustomEvent(t,{bubbles:r,detail
47:n}):(i=document.createEvent("CustomEvent"),i.initCustomEvent(t,r,!1,n)),this.root.dispatchEvent(i)},e}();/** 48 * @license 49 * Copyright 2019 Google Inc. 50 * 51 * Permission is hereby granted, free of charge, to any person obtaining a copy 52 * of this software and associated documentation files (the "Software"), to deal 53 * in the Software without restriction, including without limitation the rights 54 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 55 * copies of the Software, and to permit persons to whom the Software is 56 * furnished to do so, subject to the following conditions: 57 * 58 * The above copyright notice and this permission notice shall be included in 59 * all copies or substantial portions of the Software. 60 * 61 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 62 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 63 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 64 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 65 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 66 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 67 * THE SOFTWARE. 68 */function _h(e){return e===void 0&&(e=window),rG(e)?{passive:!0}:!1}function rG(e){e===void 0&&(e=window);var t=!1;try{var n={get passive(){return t=!0,!1}},r=function(){};e.document.addEventListener("test",r,n),e.document.removeEventListener("test",r,n)}catch{t=!1}return t}/** 69 * @license 70 * Copyright 2018 Google Inc. 71 * 72 * Permission is hereby granted, free of charge, to any person obtaining a copy 73 * of this software and associated documentation files (the "Software"), to deal 74 * in the Software without restriction, including without limitation the rights 75 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 76 * copies of the Software, and to permit persons to whom the Software is 77 * furnished to do so, subject to the following conditions: 78 * 79 * The above copyright notice and this permission notice shall be included in 80 * all copies or substantial portions of the Software. 81 * 82 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 83 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 84 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 85 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 86 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 87 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 88 * THE SOFTWARE. 89 */function iG(e,t){var n=e.matches||e.webkitMatchesSelector||e.msMatchesSelector;return n.call(e,t)}/** 90 * @license 91 * Copyright 2016 Google Inc. 92 * 93 * Permission is hereby granted, free of charge, to any person obtaining a copy 94 * of this software and associated documentation files (the "Software"), to deal 95 * in the Software without restriction, including without limitation the rights 96 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 97 * copies of the Software, and to permit persons to whom the Software is 98 * furnished to do so, subject to the following conditions: 99 * 100 * The above copyright notice and this permission notice shall be included in 101 * all copies or substantial portions of the Software. 102 * 103 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 104 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 105 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 106 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 107 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 108 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 109 * THE SOFTWARE. 110 */var oG={BG_FOCUSED:"mdc-ripple-upgraded--background-focused",FG_ACTIVATION:"mdc-ripple-upgraded--foreground-activation",FG_DEACTIVATION:"mdc-ripple-upgraded--foreground-deactivation",ROOT:"mdc-ripple-upgraded",UNBOUNDED:"mdc-ripple-upgraded--unbounded"},sG={VAR_FG_SCALE:"--mdc-ripple-fg-scale",VAR_FG_SIZE:"--mdc-ripple-fg-size",VAR_FG_TRANSLATE_END:"--mdc-ripple-fg-translate-end",VAR_FG_TRANSLATE_START:"--mdc-ripple-fg-translate-start",VAR_LEFT:"--mdc-ripple-left",VAR_TOP:"--mdc-ripple-top"},gA={DEACTIVATION_TIMEOUT_MS:225,FG_DEACTIVATION_MS:150,INITIAL_ORIGIN_SCALE:.6,PADDING:10,TAP_DELAY_MS:300};/** 111 * @license 112 * Copyright 2016 Google Inc. 113 * 114 * Permission is hereby granted, free of charge, to any person obtaining a copy 115 * of this software and associated documentation files (the "Software"), to deal 116 * in the Software without restriction, including without limitation the rights 117 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 118 * copies of the Software, and to permit persons to whom the Software is 119 * furnished to do so, subject to the following conditions: 120 * 121 * The above copyright notice and this permission notice shall be included in 122 * all copies or substantial portions of the Software. 123 * 124 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 125 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 126 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 127 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 128 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 129 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 130 * THE SOFTWARE. 131 */var yA=["touchstart","pointerdown","mousedown","keydown"],bA=["touchend","pointerup","mouseup","contextmenu"],Sh=[],aG=function(e){Vt(t,e);function t(n){var r=e.call(this,ne(ne({},t.defaultAdapter),n))||this;return r.activationAnimationHasEnded=!1,r.activationTimer=0,r.fgDeactivationRemovalTimer=0,r.fgScale="0",r.frame={width:0,height:0},r.initialSize=0,r.layoutFrame=0,r.maxRadius=0,r.unboundedCoords={left:0,top:0},r.activationState=r.defaultActivationState(),r.activationTimerCallback=function(){r.activationAnimationHasEnded=!0,r.runDeactivationUXLogicIfReady()},r.activateHandler=function(i){r.activateImpl(i)},r.deactivateHandler=function(){r.deactivateImpl()},r.focusHandler=function(){r.handleFocus()},r.blurHandler=function(){r.handleBlur()},r.resizeHandler=function(){r.layout()},r}
vendor: 4,735 bytes, line 131
131return Object.defineProperty(t,"cssClasses",{get:function(){return oG},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return sG},enumerable:!1,configurable:!0}),Object.defineProperty(t,"numbers",{get:function(){return gA},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},browserSupportsCssVars:function(){return!0},computeBoundingRect:function(){return{top:0,right:0,bottom:0,left:0,width:0,height:0}},containsEventTarget:function(){return!0},deregisterDocumentInteractionHandler:function(){},deregisterInteractionHandler:function(){},deregisterResizeHandler:function(){},getWindowPageOffset:function(){return{x:0,y:0}},isSurfaceActive:function(){return!0},isSurfaceDisabled:function(){return!0},isUnbounded:function(){return!0},registerDocumentInteractionHandler:function(){},registerInteractionHandler:function(){},registerResizeHandler:function(){},removeClass:function(){},updateCssVariable:function(){}}},enumerable:!1,configurable:!0}),t.prototype.init=function(){var n=this,r=this.supportsPressRipple();if(this.registerRootHandlers(r),r){var i=t.cssClasses,o=i.ROOT,s=i.UNBOUNDED;requestAnimationFrame(function(){n.adapter.addClass(o),n.adapter.isUnbounded()&&(n.adapter.addClass(s),n.layoutInternal())})}},t.prototype.destroy=function(){var n=this;if(this.supportsPressRipple()){this.activationTimer&&(clearTimeout(this.activationTimer),this.activationTimer=0,this.adapter.removeClass(t.cssClasses.FG_ACTIVATION)),this.fgDeactivationRemovalTimer&&(clearTimeout(this.fgDeactivationRemovalTimer),this.fgDeactivationRemovalTimer=0,this.adapter.removeClass(t.cssClasses.FG_DEACTIVATION));var r=t.cssClasses,i=r.ROOT,o=r.UNBOUNDED;requestAnimationFrame(function(){n.adapter.removeClass(i),n.adapter.removeClass(o),n.removeCssVars()})}this.deregisterRootHandlers(),this.deregisterDeactivationHandlers()},t.prototype.activate=function(n){this.activateImpl(n)},t.prototype.deactivate=function(){this.deactivateImpl()},t.prototype.layout=function(){var n=this;this.layoutFrame&&cancelAnimationFrame(this.layoutFrame),this.layoutFrame=requestAnimationFrame(function(){n.layoutInternal(),n.layoutFrame=0})},t.prototype.setUnbounded=function(n){var r=t.cssClasses.UNBOUNDED;n?this.adapter.addClass(r):this.adapter.removeClass(r)},t.prototype.handleFocus=function(){var n=this;requestAnimationFrame(function(){return n.adapter.addClass(t.cssClasses.BG_FOCUSED)})},t.prototype.handleBlur=function(){var n=this;requestAnimationFrame(function(){return n.adapter.removeClass(t.cssClasses.BG_FOCUSED)})},t.prototype.supportsPressRipple=function(){return this.adapter.browserSupportsCssVars()},t.prototype.defaultActivationState=function(){return{activationEvent:void 0,hasDeactivationUXRun:!1,isActivated:!1,isProgrammatic:!1,wasActivatedByPointer:!1,wasElementMadeActive:!1}},t.prototype.registerRootHandlers=function(n){var r,i;if(n){try{for(var o=Ge(yA),s=o.next();!s.done;s=o.next()){var a=s.value;this.adapter.registerInteractionHandler(a,this.activateHandler)}}catch(l){r={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}this.adapter.isUnbounded()&&this.adapter.registerResizeHandler(this.resizeHandler)}this.adapter.registerInteractionHandler("focus",this.focusHandler),this.adapter.registerInteractionHandler("blur",this.blurHandler)},t.prototype.registerDeactivationHandlers=function(n){var r,i;if(n.type==="keydown")this.adapter.registerInteractionHandler("keyup",this.deactivateHandler);else try{for(var o=Ge(bA),s=o.next();!s.done;s=o.next()){var a=s.value;this.adapter.registerDocumentInteractionHandler(a,this.deactivateHandler)}}catch(l){r={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}},t.prototype.deregisterRootHandlers=function(){var n,r;try{for(var i=Ge(yA),o=i.next();!o.done;o=i.next()){var s=o.value;this.adapter.deregisterInteractionHandler(s,this.activateHandler)}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}this.adapter.deregisterInteractionHandler("focus",this.focusHandler),this.adapter.deregisterInteractionHandler("blur",this.blurHandler),this.adapter.isUnbounded()&&this.adapter.deregisterResizeHandler(this.resizeHandler)},t.prototype.deregisterDeactivationHandlers=function(){var n,r;this.adapter.deregisterInteractionHandler("keyup",this.deactivateHandler);try{for(var i=Ge(bA),o=i.next();!o.done;o=i.next()){var s=o.value;this.adapter.deregisterDocumentInteractionHandler(s,this.deactivateHandler)}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},t.prototype.removeCssVars=function(){var n=this,r=t.strings,i=Object.keys(r);
131i.forEach(function(o){o.indexOf("VAR_")===0&&n.adapter.updateCssVariable(r[o],null)})},t.prototype.activateImpl=function(n){var r=this;if(!this.adapter.isSurfaceDisabled()){var i=this.activationState;if(!i.isActivated){var o=this.previousActivationEvent,s=o&&n!==void 0&&o.type!==n.type;if(!s){i.isActivated=!0,i.isProgrammatic=n===void 0,i.activationEvent=n,i.wasActivatedByPointer=i.isProgrammatic?!1:n!==void 0&&(n.type==="mousedown"||n.type==="touchstart"||n.type==="pointerdown");var a=n!==void 0&&Sh.length>0&&Sh.some(function(l){return r.adapter.containsEventTarget(l)});if(a){this.resetActivationState();return}n!==void 0&&(Sh.push(n.target),this.registerDeactivationHandlers(n)),i.wasElementMadeActive=this.checkElementMadeActive(n),i.wasElementMadeActive&&this.animateActivation(),requestAnimationFrame(function(){Sh=[],!i.wasElementMadeActive&&n!==void 0&&(n.key===" "||n.keyCode===32)&&(i.wasElementMadeActive=r.checkElementMadeActive(n),i.wasElementMadeActive&&r.animateActivation()),i.wasElementMadeActive||(r.activationState=r.defaultActivationState())})}}}},t.prototype.checkElementMadeActive=function(n){return n!==void 0&&n.type==="keydown"?this.adapter.isSurfaceActive():!0},t.prototype.animateActivation=function(){var n=this,r=t.strings,i=r.VAR_FG_TRANSLATE_START,o=r.VAR_FG_TRANSLATE_END,s=t.cssClasses,a=s.FG_DEACTIVATION,l=s.FG_ACTIVATION,u=t.numbers.DEACTIVATION_TIMEOUT_MS;this.layoutInternal();var c="",d="";if(!this.adapter.isUnbounded()){var f=this.getFgTranslationCoordinates(),p=f.startPoint,h=f.endPoint;c=p.x+"px, "+p.y+"px",d=h.x+"px, "+h.y+"px"}this.adapter.updateCssVariable(i,c),this.adapter.updateCssVariable(o,d),clearTimeout(this.activationTimer),clearTimeout(this.fgDeactivationRemovalTimer),this.rmBoundedActivationClasses(),this.adapter.removeClass(a),this.adapter.computeBoundingRect(),this.adapter.addClass(l),this.activationTimer=setTimeout(function(){n.activationTimerCallback()},u)},t.prototype.getFgTranslationCoordinates=function(){var n=this.activationState,r=n.activationEvent,i=n.wasActivatedByPointer,o;i?o=QW(r,this.adapter.getWindowPageOffset(),this.adapter.computeBoundingRect()):o={x:this.frame.width/2,y:this.frame.height/2},o={x:o.x-this.initialSize/2,y:o.y-this.initialSize/2};var s={x:this.frame.width/2-this.initialSize/2,y:this.frame.height/2-this.initialSize/2};return{startPoint:o,endPoint:s}},t.prototype.runDeactivationUXLogicIfReady=function(){var n=this,r=t.cssClasses.FG_DEACTIVATION,i=this.activationState,o=i.hasDeactivationUXRun,s=i.isActivated,a=o||!s;a&&this.activationAnimationHasEnded&&(this.rmBoundedActivationClasses(),this.adapter.addClass(r),this.fgDeactivationRemovalTimer=setTimeout(function(){n.adapter.removeClass(r)},gA.FG_DEACTIVATION_MS))},t.prototype.rmBoundedActivationClasses=function(){var n=t.cssClasses.FG_ACTIVATION;this.adapter.removeClass(n),this.activationAnimationHasEnded=!1,this.adapter.computeBoundingRect()},t.prototype.resetActivationState=function(){var n=this;this.previousActivationEvent=this.activationState.activationEvent,this.activationState=this.defaultActivationState(),setTimeout(function(){return n.previousActivationEvent=void 0},t.numbers.TAP_DELAY_MS)},t.prototype.deactivateImpl=function(){var n=this,r=this.activationState;if(r.isActivated){var i=ne({},r);r.isProgrammatic?(requestAnimationFrame(function(){n.animateDeactivation(i)}),this.resetActivationState()):(this.deregisterDeactivationHandlers(),requestAnimationFrame(function(){n.activationState.hasDeactivationUXRun=!0,n.animateDeactivation(i),n.resetActivationState()}))}},t.prototype.animateDeactivation=function(n){var r=n.wasActivatedByPointer,i=n.wasElementMadeActive;(r||i)&&this.runDeactivationUXLogicIfReady()},t.prototype.layoutInternal=function(){var n=this;this.frame=this.adapter.computeBoundingRect();var r=Math.max(this.frame.height,this.frame.width),i=function(){var s=Math.sqrt(Math.pow(n.frame.width,2)+Math.pow(n.frame.height,2));return s+t.numbers.PADDING};this.maxRadius=this.adapter.isUnbounded()?r:i();var o=Math.floor(r*t.numbers.INITIAL_ORIGIN_SCALE);this.adapter.isUnbounded()&&o%2!==0?this.initialSize=o-1:this.initialSize=o,this.fgScale=""+this.maxRadius/this.initialSize,this.updateLayoutCssVars()},t.prototype.updateLayoutCssVars=function(){var n=t.strings,r=n.VAR_FG_SIZE,i=n.VAR_LEFT,o=n.VAR_TOP,s=n.VAR_FG_SCALE;this.adapter.updateCssVariable(r,this.initialSize+"px"),this.adapter.updateCssVariable(s,this.fgScale),this.adapter.isUnbounded()&&(this.unboundedCoords={left:Math.round(this.frame.width/2-this.initialSize/2),top:Math.round(this.frame.height/2-this.initialSize/2)},this.adapter.updateCssVariable(i,this.unboundedCoords.left+"px"),this.adapter.updateCssVariable(o,this.unboundedCoords.top+"px"))},t}(KR);/** 132 * @license 133 * Copyright 2016 Google Inc. 134 * 135 * Permission is hereby granted, free of charge, to any person obtaining a copy 136 * of this software and associated documentation files (the "Software"), to deal 137 * in the Software without restriction, including without limitation the rights 138 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 139 * copies of the Software, and to permit persons to whom the Software is 140 * furnished to do so, subject to the following conditions: 141 * 142 * The above copyright notice and this permission notice shall be included in 143 * all copies or substantial portions of the Software. 144 * 145 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 146 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 147 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 148 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 149 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 150 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 151 * THE SOFTWARE. 152 */var lG=function(e){Vt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.disabled=!1,n}return t.attachTo=function(n,r){r===void 0&&(r={isUnbounded:void 0});var i=new t(n);return r.isUnbounded!==void 0&&(i.unbounded=r.isUnbounded),i},t.createAdapter=function(n){return{addClass:function(r){return n.root.classList.add(r)},browserSupportsCssVars:function(){return JW(window)},computeBoundingRect:function(){return n.root.getBoundingClientRect()},containsEventTarget:function(r){return n.root.contains(r)},deregisterDocumentInteractionHandler:function(r,i){return document.documentElement.removeEventListener(r,i,_h())},deregisterInteractionHandler:function(r,i){return n.root.removeEventListener(r,i,_h())},deregisterResizeHandler:function(r){return window.removeEventListener("resize",r)},getWindowPageOffset:function(){return{x:window.pageXOffset,y:window.pageYOffset}},isSurfaceActive:function(){return iG(n.root,":active")},isSurfaceDisabled:function(){return!!n.disabled},isUnbounded:function(){return!!n.unbounded},registerDocumentInteractionHandler:function(r,i){return document.documentElement.addEventListener(r,i,_h())},registerInteractionHandler:function(r,i){return n.root.addEventListener(r,i,_h())},registerResizeHandler:function(r){return window.addEventListener("resize",r)},removeClass:function(r){return n.root.classList.remove(r)},updateCssVariable:function(r,i){return n.root.style.setProperty(r,i)}}},Object.defineProperty(t.prototype,"unbounded",{get:function(){return!!this.isUnbounded}
152,set:function(n){this.isUnbounded=!!n,this.setUnbounded()},enumerable:!1,configurable:!0}),t.prototype.activate=function(){this.foundation.activate()},t.prototype.deactivate=function(){this.foundation.deactivate()},t.prototype.layout=function(){this.foundation.layout()},t.prototype.getDefaultFoundation=function(){return new aG(t.createAdapter(this))},t.prototype.initialSyncWithDOM=function(){var n=this.root;this.isUnbounded="mdcRippleIsUnbounded"in n.dataset},t.prototype.setUnbounded=function(){this.foundation.setUnbounded(!!this.isUnbounded)},t}(nG);const uG={mounted(e,t){if(t.value!==!0){const n=new lG(e);e.rippleHander=n}},beforeUnmount(e){e.rippleHandler&&e.rippleHander.destroy()}},cG=(e,t)=>{var n=0;const r=new ResizeObserver(i=>{!Array.isArray(i)||!i.length||(n&&window.cancelAnimationFrame(n),n=requestAnimationFrame(()=>{const o=i[0];n=0,t({width:Math.round(o.contentRect.width),height:Math.round(o.contentRect.height)})}))});return r.observe(e),()=>{r.unobserve(e)}},dG={mounted(e,t){typeof t.value=="function"&&(e._observerHandler=cG(e,t.value))},beforeUnmount(e){e._observerHandler&&(e._observerHandler(),delete e._observerHandler)}},mm={primary:"indigo",accent:"pink",background:"white",warn:"deep-orange"},fG={logoBranded:"/src/assets/logo-branded-default.png",logoBrandedDark:"/src/assets/logo-branded-default-dark.png",backgroundDrawerBranded:"/src/assets/background-drawer-default.svg",backgroundDrawerBrandedDark:"/src/assets/background-drawer-dark-default.svg"};class _A{constructor(t,n,r){ve(this,"name");ve(this,"spec");ve(this,"app");this.name=t,this.spec=n,this.app=r,this.updateStyleElement()}getAsset(t){return(this.spec.assets||fG)[t]}getColor(t,n,r,i){let o,s=+r==0?500:r;if(t=t.toLowerCase(),this.spec[t]?typeof this.spec[t]=="string"?o=hd[this.spec[t]]:(o=hd[this.spec[t].color]||hd[mm[t]],s=+r==0?this.spec[t].hue:r):o=hd[mm[t]],n==="color"){let l=hd[this.spec[t]];return!s&&!l&&(t==="accent"?s="A200":t==="background"&&(s=50)),i?YW(o[s]):o[s]}let a=o.darkText.indexOf(s)>=0;return this.spec[t]&&typeof this.spec[t]!="string"&&this.spec[t].textColor&&(this.spec[t].textColor==="black"?a=!0:this.spec[t].textColor==="white"&&(a=!1)),a?i?"0, 0, 0":"rgba(0, 0, 0, .9)":i?"255, 255, 255":"rgba(255, 255, 255, .87)"}getStyles(){const t=Object.keys(mm).reduce((n,r)=>(["color","contrast"].forEach(i=>{n[`--md-${r}-${i}`]=this.getColor(r,i,"",!1),n[`--md-${r}-${i}-rgb`]=this.getColor(r,i,"",!0)}),["500"].forEach(i=>{n[`--md-${r}-color-${i}`]=this.getColor(r,"color",i,!1),n[`--md-${r}-color-${i}-rgb`]=this.getColor(r,"color",i,!0)}),["200","400","600","800"].forEach(i=>{n[`--md-${r}-color-${i}`]=this.getColor(r,"color",i,!1)}),n),{});return[{type:"accent",color:"contrast",hue:"A100"},{type:"accent",color:"color",hue:"A100"}].forEach(n=>{t[`--md-${n.type}-${n.color}-${n.hue}`]=this.getColor(n.type,n.color,n.hue,!1),t[`--md-${n.type}-${n.color}-${n.hue}-rgb`]=this.getColor(n.type,n.color,n.hue,!0)}),t}updateStyleElement(){const t=this.getStyles(),n=Object.keys(t).map(i=>`${i}: ${t[i]};`).join(""),r=`.md-theme-${this.name}{ ${n} }`;this.app.config.globalProperties.$head.push({style:[{children:r}]})}}class mHe{constructor(){ve(this,"app");ve(this,"themes",{default:mm});ve(this,"default","default")}registerTheme(t,n){typeof t=="string"?this.themes[t]=new _A(t,n,this.app):Object.keys(t).forEach(r=>this.themes[r]=new _A(r,t[r],this.app))}getDefaultTheme(){return this.default}setDefaultTheme(t){this.themes[t]&&(this.default=t),this.app.config.globalProperties.$head.push({bodyAttrs:{class:this.getThemeClass(this.default)}})}getTheme(t){return this.themes[t||this.default]||this.themes[this.default]}getThemeClass(t){return t?`md-theme md-theme-${t}`:"md-theme"}install(t){t.provide("$material",this),t.directive("md-ripple",uG),t.directive("resize-observer",dG),this.app=t}}function pG(){this.__data__=[],this.size=0}function i1(e,t){return e===t||e!==e&&t!==t}function o1(e,t){for(var n=e.length;n--;)if(i1(e[n][0],t))return n;return-1}var hG=Array.prototype,mG=hG.splice;function vG(e){var t=this.__data__,n=o1(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():mG.call(t,n,1),--this.size,!0}function gG(e){var t=this.__data__,n=o1(t,e);return n<0?void 0:t[n][1]}function yG(e){return o1(this.__data__,e)>-1}function bG(e,t){var n=this.__data__,r=o1(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}function xs(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}xs.prototype.clear=pG;xs.prototype.delete=vG;xs.prototype.get=gG;xs.prototype.has=yG;xs.prototype.set=bG;function _G(){this.__data__=new xs,this.size=0}function SG(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function EG(e){return this.__data__.get(e)}function CG(e){return this.__data__.has(e)}var wG=typeof global=="object"&&global&&global.Object===Object&&global;const XR=wG;var TG=typeof self=="object"&&self&&self.Object===Object&&self,AG=XR||TG||Function("return this")();const co=AG;var IG=co.Symbol;const Ri=IG;var ZR=Object.prototype,xG=ZR.hasOwnProperty,LG=ZR.toString,md=Ri?Ri.toStringTag:void 0;function kG(e){var t=xG.call(e,md),n=e[md];try{e[md]=void 0;var r=!0}catch{}var i=LG.call(e);return r&&(t?e[md]=n:delete e[md]),i}var MG=Object.prototype,RG=MG.toString;function PG(e){return RG.call(e)}
vendor: 5,210 bytes, line 152
152var OG="[object Null]",$G="[object Undefined]",SA=Ri?Ri.toStringTag:void 0;function fo(e){return e==null?e===void 0?$G:OG:SA&&SA in Object(e)?kG(e):PG(e)}function ui(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var NG="[object AsyncFunction]",HG="[object Function]",DG="[object GeneratorFunction]",VG="[object Proxy]";function YR(e){if(!ui(e))return!1;var t=fo(e);return t==HG||t==DG||t==NG||t==VG}var FG=co["__core-js_shared__"];const U0=FG;var EA=function(){var e=/[^.]+$/.exec(U0&&U0.keys&&U0.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function BG(e){return!!EA&&EA in e}var UG=Function.prototype,jG=UG.toString;function Vl(e){if(e!=null){try{return jG.call(e)}catch{}try{return e+""}catch{}}return""}var WG=/[\\^$.*+?()[\]{}|]/g,GG=/^\[object .+?Constructor\]$/,zG=Function.prototype,qG=Object.prototype,KG=zG.toString,XG=qG.hasOwnProperty,ZG=RegExp("^"+KG.call(XG).replace(WG,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function YG(e){if(!ui(e)||BG(e))return!1;var t=YR(e)?ZG:GG;return t.test(Vl(e))}function JG(e,t){return e==null?void 0:e[t]}function Fl(e,t){var n=JG(e,t);return YG(n)?n:void 0}var QG=Fl(co,"Map");const Hf=QG;var ez=Fl(Object,"create");const Df=ez;function tz(){this.__data__=Df?Df(null):{},this.size=0}function nz(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var rz="__lodash_hash_undefined__",iz=Object.prototype,oz=iz.hasOwnProperty;function sz(e){var t=this.__data__;if(Df){var n=t[e];return n===rz?void 0:n}return oz.call(t,e)?t[e]:void 0}var az=Object.prototype,lz=az.hasOwnProperty;function uz(e){var t=this.__data__;return Df?t[e]!==void 0:lz.call(t,e)}var cz="__lodash_hash_undefined__";function dz(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Df&&t===void 0?cz:t,this}function Sl(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Sl.prototype.clear=tz;Sl.prototype.delete=nz;Sl.prototype.get=sz;Sl.prototype.has=uz;Sl.prototype.set=dz;function fz(){this.size=0,this.__data__={hash:new Sl,map:new(Hf||xs),string:new Sl}}function pz(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function s1(e,t){var n=e.__data__;return pz(t)?n[typeof t=="string"?"string":"hash"]:n.map}function hz(e){var t=s1(this,e).delete(e);return this.size-=t?1:0,t}function mz(e){return s1(this,e).get(e)}function vz(e){return s1(this,e).has(e)}function gz(e,t){var n=s1(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}function Ls(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Ls.prototype.clear=fz;Ls.prototype.delete=hz;Ls.prototype.get=mz;Ls.prototype.has=vz;Ls.prototype.set=gz;var yz=200;function bz(e,t){var n=this.__data__;if(n instanceof xs){var r=n.__data__;if(!Hf||r.length<yz-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Ls(r)}return n.set(e,t),this.size=n.size,this}function Ao(e){var t=this.__data__=new xs(e);this.size=t.size}Ao.prototype.clear=_G;Ao.prototype.delete=SG;Ao.prototype.get=EG;Ao.prototype.has=CG;Ao.prototype.set=bz;var _z="__lodash_hash_undefined__";function Sz(e){return this.__data__.set(e,_z),this}function Ez(e){return this.__data__.has(e)}function Ev(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Ls;++t<n;)this.add(e[t])}Ev.prototype.add=Ev.prototype.push=Sz;Ev.prototype.has=Ez;function Cz(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}function wz(e,t){return e.has(t)}var Tz=1,Az=2;function JR(e,t,n,r,i,o){var s=n&Tz,a=e.length,l=t.length;if(a!=l&&!(s&&l>a))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=n&Az?new Ev:void 0;for(o.set(e,t),o.set(t,e);++d<a;){var h=e[d],m=t[d];if(r)var v=s?r(m,h,d,t,e,o):r(h,m,d,e,t,o);if(v!==void 0){if(v)continue;f=!1;break}if(p){if(!Cz(t,function(g,y){if(!wz(p,y)&&(h===g||i(h,g,n,r,o)))return p.push(y)})){f=!1;break}}else if(!(h===m||i(h,m,n,r,o))){f=!1;break}}return o.delete(e),o.delete(t),f}var Iz=co.Uint8Array;const Cv=Iz;function xz(e){var t=-1,n=Array(e.size);return e.forEach(function(r,i){n[++t]=[i,r]}),n}function Lz(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var kz=1,Mz=2,Rz="[object Boolean]",Pz="[object Date]",Oz="[object Error]",$z="[object Map]",Nz="[object Number]",Hz="[object RegExp]",Dz="[object Set]",Vz="[object String]",Fz="[object Symbol]",Bz="[object ArrayBuffer]",Uz="[object DataView]",CA=Ri?Ri.prototype:void 0,j0=CA?CA.valueOf:void 0;function jz(e,t,n,r,i,o,s){switch(n){case Uz:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Bz:return!(e.byteLength!=t.byteLength||!o(new Cv(e),new Cv(t)));case Rz:case Pz:case Nz:return i1(+e,+t);case Oz:return e.name==t.name&&e.message==t.message;case Hz:case Vz:return e==t+"";case $z:var a=xz;case Dz:var l=r&kz;if(a||(a=Lz),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;r|=Mz,s.set(e,t);var c=JR(a(e),a(t),r,i,o,s);return s.delete(e),c;case Fz:if(j0)return j0.call(e)==j0.call(t)}return!1}function gE(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}var Wz=Array.isArray;const Pi=Wz;
vendor: 5,042 bytes, line 152
152function QR(e,t,n){var r=t(e);return Pi(e)?r:gE(r,n(e))}function Gz(e,t){for(var n=-1,r=e==null?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}function eP(){return[]}var zz=Object.prototype,qz=zz.propertyIsEnumerable,wA=Object.getOwnPropertySymbols,Kz=wA?function(e){return e==null?[]:(e=Object(e),Gz(wA(e),function(t){return qz.call(e,t)}))}:eP;const yE=Kz;function Xz(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function ci(e){return e!=null&&typeof e=="object"}var Zz="[object Arguments]";function TA(e){return ci(e)&&fo(e)==Zz}var tP=Object.prototype,Yz=tP.hasOwnProperty,Jz=tP.propertyIsEnumerable,Qz=TA(function(){return arguments}())?TA:function(e){return ci(e)&&Yz.call(e,"callee")&&!Jz.call(e,"callee")};const bE=Qz;function eq(){return!1}var nP=typeof exports=="object"&&exports&&!exports.nodeType&&exports,AA=nP&&typeof module=="object"&&module&&!module.nodeType&&module,tq=AA&&AA.exports===nP,IA=tq?co.Buffer:void 0,nq=IA?IA.isBuffer:void 0,rq=nq||eq;const wv=rq;var iq=9007199254740991,oq=/^(?:0|[1-9]\d*)$/;function _E(e,t){var n=typeof e;return t=t??iq,!!t&&(n=="number"||n!="symbol"&&oq.test(e))&&e>-1&&e%1==0&&e<t}var sq=9007199254740991;function SE(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=sq}var aq="[object Arguments]",lq="[object Array]",uq="[object Boolean]",cq="[object Date]",dq="[object Error]",fq="[object Function]",pq="[object Map]",hq="[object Number]",mq="[object Object]",vq="[object RegExp]",gq="[object Set]",yq="[object String]",bq="[object WeakMap]",_q="[object ArrayBuffer]",Sq="[object DataView]",Eq="[object Float32Array]",Cq="[object Float64Array]",wq="[object Int8Array]",Tq="[object Int16Array]",Aq="[object Int32Array]",Iq="[object Uint8Array]",xq="[object Uint8ClampedArray]",Lq="[object Uint16Array]",kq="[object Uint32Array]",cn={};cn[Eq]=cn[Cq]=cn[wq]=cn[Tq]=cn[Aq]=cn[Iq]=cn[xq]=cn[Lq]=cn[kq]=!0;cn[aq]=cn[lq]=cn[_q]=cn[uq]=cn[Sq]=cn[cq]=cn[dq]=cn[fq]=cn[pq]=cn[hq]=cn[mq]=cn[vq]=cn[gq]=cn[yq]=cn[bq]=!1;function Mq(e){return ci(e)&&SE(e.length)&&!!cn[fo(e)]}function a1(e){return function(t){return e(t)}}var rP=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ef=rP&&typeof module=="object"&&module&&!module.nodeType&&module,Rq=ef&&ef.exports===rP,W0=Rq&&XR.process,Pq=function(){try{var e=ef&&ef.require&&ef.require("util").types;return e||W0&&W0.binding&&W0.binding("util")}catch{}}();const ha=Pq;var xA=ha&&ha.isTypedArray,Oq=xA?a1(xA):Mq;const iP=Oq;var $q=Object.prototype,Nq=$q.hasOwnProperty;function oP(e,t){var n=Pi(e),r=!n&&bE(e),i=!n&&!r&&wv(e),o=!n&&!r&&!i&&iP(e),s=n||r||i||o,a=s?Xz(e.length,String):[],l=a.length;for(var u in e)(t||Nq.call(e,u))&&!(s&&(u=="length"||i&&(u=="offset"||u=="parent")||o&&(u=="buffer"||u=="byteLength"||u=="byteOffset")||_E(u,l)))&&a.push(u);return a}var Hq=Object.prototype;function l1(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Hq;return e===n}function sP(e,t){return function(n){return e(t(n))}}var Dq=sP(Object.keys,Object);const Vq=Dq;var Fq=Object.prototype,Bq=Fq.hasOwnProperty;function Uq(e){if(!l1(e))return Vq(e);var t=[];for(var n in Object(e))Bq.call(e,n)&&n!="constructor"&&t.push(n);return t}function u1(e){return e!=null&&SE(e.length)&&!YR(e)}function vp(e){return u1(e)?oP(e):Uq(e)}function l_(e){return QR(e,vp,yE)}var jq=1,Wq=Object.prototype,Gq=Wq.hasOwnProperty;function zq(e,t,n,r,i,o){var s=n&jq,a=l_(e),l=a.length,u=l_(t),c=u.length;if(l!=c&&!s)return!1;for(var d=l;d--;){var f=a[d];if(!(s?f in t:Gq.call(t,f)))return!1}var p=o.get(e),h=o.get(t);if(p&&h)return p==t&&h==e;var m=!0;o.set(e,t),o.set(t,e);for(var v=s;++d<l;){f=a[d];var g=e[f],y=t[f];if(r)var _=s?r(y,g,f,t,e,o):r(g,y,f,e,t,o);if(!(_===void 0?g===y||i(g,y,n,r,o):_)){m=!1;break}v||(v=f=="constructor")}if(m&&!v){var b=e.constructor,S=t.constructor;b!=S&&"constructor"in e&&"constructor"in t&&!(typeof b=="function"&&b instanceof b&&typeof S=="function"&&S instanceof S)&&(m=!1)}return o.delete(e),o.delete(t),m}var qq=Fl(co,"DataView");const u_=qq;var Kq=Fl(co,"Promise");const c_=Kq;var Xq=Fl(co,"Set");const d_=Xq;var Zq=Fl(co,"WeakMap");const f_=Zq;var LA="[object Map]",Yq="[object Object]",kA="[object Promise]",MA="[object Set]",RA="[object WeakMap]",PA="[object DataView]",Jq=Vl(u_),Qq=Vl(Hf),eK=Vl(c_),tK=Vl(d_),nK=Vl(f_),Ba=fo;(u_&&Ba(new u_(new ArrayBuffer(1)))!=PA||Hf&&Ba(new Hf)!=LA||c_&&Ba(c_.resolve())!=kA||d_&&Ba(new d_)!=MA||f_&&Ba(new f_)!=RA)&&(Ba=function(e){var t=fo(e),n=t==Yq?e.constructor:void 0,r=n?Vl(n):"";if(r)switch(r){case Jq:return PA;case Qq:return LA;case eK:return kA;case tK:return MA;case nK:return RA}return t});const Vf=Ba;var rK=1,OA="[object Arguments]",$A="[object Array]",Eh="[object Object]",iK=Object.prototype,NA=iK.hasOwnProperty;function oK(e,t,n,r,i,o){var s=Pi(e),a=Pi(t),l=s?$A:Vf(e),u=a?$A:Vf(t);l=l==OA?Eh:l,u=u==OA?Eh:u;var c=l==Eh,d=u==Eh,f=l==u;if(f&&wv(e)){if(!wv(t))return!1;s=!0,c=!1}if(f&&!c)return o||(o=new Ao),s||iP(e)?JR(e,t,n,r,i,o):jz(e,t,l,n,r,i,o);if(!(n&rK)){var p=c&&NA.call(e,"__wrapped__"),h=d&&NA.call(t,"__wrapped__");
152if(p||h){var m=p?e.value():e,v=h?t.value():t;return o||(o=new Ao),i(m,v,n,r,o)}}return f?(o||(o=new Ao),zq(e,t,n,r,i,o)):!1}function c1(e,t,n,r,i){return e===t?!0:e==null||t==null||!ci(e)&&!ci(t)?e!==e&&t!==t:oK(e,t,n,r,c1,i)}function sK(e,t){return c1(e,t)}function aK(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}var lK=function(){try{var e=Fl(Object,"defineProperty");return e({},"",{}),e}catch{}}();const Tv=lK;function aP(e,t,n){t=="__proto__"&&Tv?Tv(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var uK=Object.prototype,cK=uK.hasOwnProperty;function EE(e,t,n){var r=e[t];(!(cK.call(e,t)&&i1(r,n))||n===void 0&&!(t in e))&&aP(e,t,n)}function qc(e,t,n,r){var i=!n;n||(n={});for(var o=-1,s=t.length;++o<s;){var a=t[o],l=r?r(n[a],e[a],a,n,e):void 0;l===void 0&&(l=e[a]),i?aP(n,a,l):EE(n,a,l)}return n}function dK(e,t){return e&&qc(t,vp(t),e)}function fK(e){var t=[];if(e!=null)for(var n in Object(e))t.push(n);return t}var pK=Object.prototype,hK=pK.hasOwnProperty;function mK(e){if(!ui(e))return fK(e);var t=l1(e),n=[];for(var r in e)r=="constructor"&&(t||!hK.call(e,r))||n.push(r);return n}function CE(e){return u1(e)?oP(e,!0):mK(e)}function vK(e,t){return e&&qc(t,CE(t),e)}var lP=typeof exports=="object"&&exports&&!exports.nodeType&&exports,HA=lP&&typeof module=="object"&&module&&!module.nodeType&&module,gK=HA&&HA.exports===lP,DA=gK?co.Buffer:void 0,VA=DA?DA.allocUnsafe:void 0;function yK(e,t){if(t)return e.slice();var n=e.length,r=VA?VA(n):new e.constructor(n);return e.copy(r),r}function bK(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}function _K(e,t){return qc(e,yE(e),t)}var SK=sP(Object.getPrototypeOf,Object);const wE=SK;var EK=Object.getOwnPropertySymbols,CK=EK?function(e){for(var t=[];e;)gE(t,yE(e)),e=wE(e);return t}:eP;const uP=CK;function wK(e,t){return qc(e,uP(e),t)}function cP(e){return QR(e,CE,uP)}var TK=Object.prototype,AK=TK.hasOwnProperty;function IK(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]=="string"&&AK.call(e,"index")&&(n.index=e.index,n.input=e.input),n}function TE(e){var t=new e.constructor(e.byteLength);return new Cv(t).set(new Cv(e)),t}function xK(e,t){var n=t?TE(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}var LK=/\w*$/;function kK(e){var t=new e.constructor(e.source,LK.exec(e));return t.lastIndex=e.lastIndex,t}var FA=Ri?Ri.prototype:void 0,BA=FA?FA.valueOf:void 0;function MK(e){return BA?Object(BA.call(e)):{}}function RK(e,t){var n=t?TE(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}var PK="[object Boolean]",OK="[object Date]",$K="[object Map]",NK="[object Number]",HK="[object RegExp]",DK="[object Set]",VK="[object String]",FK="[object Symbol]",BK="[object ArrayBuffer]",UK="[object DataView]",jK="[object Float32Array]",WK="[object Float64Array]",GK="[object Int8Array]",zK="[object Int16Array]",qK="[object Int32Array]",KK="[object Uint8Array]",XK="[object Uint8ClampedArray]",ZK="[object Uint16Array]",YK="[object Uint32Array]";function JK(e,t,n){var r=e.constructor;switch(t){case BK:return TE(e);case PK:case OK:return new r(+e);case UK:return xK(e,n);case jK:case WK:case GK:case zK:case qK:case KK:case XK:case ZK:case YK:return RK(e,n);case $K:return new r;case NK:case VK:return new r(e);case HK:return kK(e);case DK:return new r;case FK:return MK(e)}}var UA=Object.create,QK=function(){function e(){}return function(t){if(!ui(t))return{};if(UA)return UA(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const eX=QK;function tX(e){return typeof e.constructor=="function"&&!l1(e)?eX(wE(e)):{}}var nX="[object Map]";function rX(e){return ci(e)&&Vf(e)==nX}var jA=ha&&ha.isMap,iX=jA?a1(jA):rX;const oX=iX;var sX="[object Set]";function aX(e){return ci(e)&&Vf(e)==sX}var WA=ha&&ha.isSet,lX=WA?a1(WA):aX;const uX=lX;var cX=1,dX=2,fX=4,dP="[object Arguments]",pX="[object Array]",hX="[object Boolean]",mX="[object Date]",vX="[object Error]",fP="[object Function]",gX="[object GeneratorFunction]",yX="[object Map]",bX="[object Number]",pP="[object Object]",_X="[object RegExp]",SX="[object Set]",EX="[object String]",CX="[object Symbol]",wX="[object WeakMap]",TX="[object ArrayBuffer]",AX="[object DataView]",IX="[object Float32Array]",xX="[object Float64Array
152]",LX="[object Int8Array]",kX="[object Int16Array]",MX="[object Int32Array]",RX="[object Uint8Array]",PX="[object Uint8ClampedArray]",OX="[object Uint16Array]",$X="[object Uint32Array]",Qt={};Qt[dP]=Qt[pX]=Qt[TX]=Qt[AX]=Qt[hX]=Qt[mX]=Qt[IX]=Qt[xX]=Qt[LX]=Qt[kX]=Qt[MX]=Qt[yX]=Qt[bX]=Qt[pP]=Qt[_X]=Qt[SX]=Qt[EX]=Qt[CX]=Qt[RX]=Qt[PX]=Qt[OX]=Qt[$X]=!0;Qt[vX]=Qt[fP]=Qt[wX]=!1;function Ku(e,t,n,r,i,o){var s,a=t&cX,l=t&dX,u=t&fX;if(n&&(s=i?n(e,r,i,o):n(e)),s!==void 0)return s;if(!ui(e))return e;var c=Pi(e);if(c){if(s=IK(e),!a)return bK(e,s)}else{var d=Vf(e),f=d==fP||d==gX;if(wv(e))return yK(e,a);if(d==pP||d==dP||f&&!i){if(s=l||f?{}:tX(e),!a)return l?wK(e,vK(s,e)):_K(e,dK(s,e))}else{if(!Qt[d])return i?e:{};s=JK(e,d,a)}}o||(o=new Ao);var p=o.get(e);if(p)return p;o.set(e,s),uX(e)?e.forEach(function(v){s.add(Ku(v,t,n,v,e,o))}):oX(e)&&e.forEach(function(v,g){s.set(g,Ku(v,t,n,g,e,o))});var h=u?l?cP:l_:l?CE:vp,m=c?void 0:h(e);return aK(m||e,function(v,g){m&&(g=v,v=e[g]),EE(s,g,Ku(v,t,n,g,e,o))}),s}var NX=1,HX=4;function vHe(e){return Ku(e,NX|HX)}const Uo=typeof globalThis.window<"u",Bl=Uo?globalThis.window:BX(),ti=Bl.document,oa=Bl.navigator,DX=Uo?globalThis.sessionStorage:hP(),VX=Uo?globalThis.localStorage:hP(),Av=Uo&&(/ip(hone|od|ad)/i.test(oa.userAgent)||/Mac/i.test(oa.userAgent)&&oa.maxTouchPoints>1);var VM;const p_=Uo&&(Av||((VM=oa.userAgentData)==null?void 0:VM.mobile)||/(android|webOS|mobile|BlackBerry|Opera Mini)/i.test(oa.userAgent)),AE=719;function hP(){return{length:0,getItem:e=>null,key:e=>null,removeItem:e=>null,clear:()=>{},setItem:e=>{}}}function FX(){const e={body:{},location:{hash:"",host:"",hostname:"voice123.com",href:"",origin:"",pathname:"",protocol:"",search:"",replace:t=>{}}};return e.createElement=()=>({children:[],childNodes:[],style:{},querySelector(t){return null},setAttribute(){},getElementsByTagName(){return[]}}),e}function BX(){const e=FX(),t={location:e.location,navigator:{userAgent:""},document:e};return t.addEventListener=()=>{},t.removeEventListener=()=>{},t}const UX=()=>Bl.innerWidth<=AE;function jX(){return fe(()=>Bl.innerWidth<AE)}function h_(e){if(!Uo)return;const t=/(iPhone)/i.test(oa.userAgent)&&!!oa.userAgent.match(/Version\/[\d\.]+.*Safari/),n=ti.body;if(e){if(n.style.overflow="hidden",t){const r=ti.body.scrollTop||ti.documentElement.scrollTop;n.style.position="fixed",n.style.top=`-${r}px`}}else if(n.style.overflow="scroll",t){const r=n.style.top!=="0"?Math.abs(parseInt(n.style.top.replace("px",""),10)):0;n.style.top="",n.style.position="",n.scrollTop=r}}const gHe=Object.freeze(Object.defineProperty({__proto__:null,MOBILE_WIDTH:AE,document:ti,ios:Av,isBrowser:Uo,isUnderMobileWidth:UX,isUnderMobileWidthSetup:jX,localStorage:VX,mobile:p_,navigator:oa,sessionStorage:DX,toggleBodyScroll:h_,window:Bl},Symbol.toStringTag,{value:"Module"})),lr=class lr{constructor(){ve(this,"message","Changes you made may not be saved.");ve(this,"discardCallback",()=>{});Uo&&(window.onbeforeunload=()=>{if(lr.pending())return this.message})}static getInstance(){return lr.instance}addForm(t){lr.forms.indexOf(t)===-1&&lr.forms.push(t)}removeForm(t){const n=lr.forms.indexOf(t);n>-1&&lr.forms.splice(n)}checkForm(t){return lr.forms.includes(t)}static pendingForms(){return lr.forms}static pending(){return lr.forms.length>0}guard(){return(t,n,r)=>{const{dialog:i,"simple-dialog":o}=t.query,{dialog:s,"simple-dialog":a}=n.query;if(!(i!==s||o!==a)&&lr.pending())if(confirm(this.message))lr.forms=[],this.discardCallback(),r();else return!1;else r()}}onDiscard(t){this.discardCallback=t}};ve(lr,"instance",new lr),ve(lr,"forms",[]);let m_=lr;const iu=m_.getInstance(),d1=Symbol("DIALOG_MANAGER");function WX(e){const t=[],n=[],r=p=>p.query.dialog,i=p=>p.query["simple-dialog"],o=p=>p.hash?p.hash.substring(1):void 0,s=(p,h)=>{e.runWithContext(()=>{const m=kt("eventBus");n.includes(h)||n.push(h),t.includes(h)&&(t.splice(t.indexOf(h),1),m.emit(p,h))})},a=p=>{n.includes(p)&&n.splice(n.indexOf(p),1)},l=p=>{s("md-dialog--sync",p)},u=p=>{s("tdl-fullscreendialog--sync",p)},c=(p,h)=>m=>{const g=(h||o)(m);n.includes(g)||t.push(g),e.runWithContext(()=>{const y=kt("eventBus");Lt(()=>{y.emit(p,g)})})},d=p=>c("tdl-fullscreendialog--sync",p),f=p=>c("md-dialog--sync",p);e.provide(d1,{setupSyncMdDialogGuard:f,setupSyncDialogGuard:d,registerFullScreenDialog:u,registerMdDialog:l,unRegisterDialog:a,simpleQueryExtractor:i,queryExtractor:r})}const yHe=Object.freeze(Object.defineProperty({__proto__:null,DIALOG_MANAGER_SYMBOL:d1,install:WX},Symbol.toStringTag,{value:"Module"}));function GX(){return mP().__VUE_DEVTOOLS_GLOBAL_HOOK__}function mP(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const zX=typeof Proxy=="function",qX="devtools-plugin:setup",KX="plugin:settings:set";let ou,v_;function XX(){var e;return ou!==void 0||(typeof window<"u"&&window.performance?(ou=!0,v_=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(ou=!0,v_=globalThis.perf_hooks.performance):ou=!1),ou}function ZX(){return XX()?v_.now():Date.now()}class YX{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const s in t.settings){const a=t.settings[s];r[s]=a.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let o=Object.assign({},r);try{const s=localStorage.getItem(i),a=JSON.parse(s);Object.assign(o,a)}catch{}this.fallbacks={getSettings(){return o},setSettings(s){try{localStorage.setItem(i,JSON.stringify(s))}catch{}o=s},now(){return ZX()}},n&&n.on(KX,(s,a)=>{s===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(s,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(s,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(u=>{this.targetQueue.push({method:a,args:l,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function JX(e,t){const n=e,r=mP(),i=GX(),o=zX&&n.enableEarlyProxy;if(i&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))i.emit(qX,e,t);else{const s=o?new YX(n,i):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:s}),s&&t(s.proxiedTarget)}}/*! 153 * vuex v4.1.0 154 * (c) 2022 Evan You 155 * @license MIT 156 */var vP="store";function bHe(e){return e===void 0&&(e=null),kt(e!==null?e:vP)}function Kc(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function gP(e){return e!==null&&typeof e=="object"}function QX(e){return e&&typeof e.then=="function"}function eZ(e,t){return function(){return e(t)}}function yP(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function bP(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;f1(e,n,[],e._modules.root,!0),IE(e,n,t)}function IE(e,t,n){var r=e._state,i=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,s={},a={},l=Dg(!0);l.run(function(){Kc(o,function(u,c){s[c]=eZ(u,e),a[c]=fe(function(){return s[c]()}),Object.defineProperty(e.getters,c,{get:function(){return a[c].value},enumerable:!0})})}),e._state=mr({data:t}),e._scope=l,e.strict&&oZ(e),r&&n&&e._withCommit(function(){r.data=null}),i&&i.stop()}function f1(e,t,n,r,i){var o=!n.length,s=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=r),!o&&!i){var a=xE(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){a[l]=r.state})}var u=r.context=tZ(e,s,n);r.forEachMutation(function(c,d){var f=s+d;nZ(e,f,c,u)}),r.forEachAction(function(c,d){var f=c.root?d:s+d,p=c.handler||c;rZ(e,f,p,u)}),r.forEachGetter(function(c,d){var f=s+d;iZ(e,f,c,u)}),r.forEachChild(function(c,d){f1(e,t,n.concat(d),c,i)})}
156function tZ(e,t,n){var r=t==="",i={dispatch:r?e.dispatch:function(o,s,a){var l=Iv(o,s,a),u=l.payload,c=l.options,d=l.type;return(!c||!c.root)&&(d=t+d),e.dispatch(d,u)},commit:r?e.commit:function(o,s,a){var l=Iv(o,s,a),u=l.payload,c=l.options,d=l.type;(!c||!c.root)&&(d=t+d),e.commit(d,u,c)}};return Object.defineProperties(i,{getters:{get:r?function(){return e.getters}:function(){return _P(e,t)}},state:{get:function(){return xE(e.state,n)}}}),i}function _P(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,r)===t){var o=i.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function nZ(e,t,n,r){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(s){n.call(e,r.state,s)})}function rZ(e,t,n,r){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(s){var a=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},s);return QX(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):a})}function iZ(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(o){return n(r.state,r.getters,o.state,o.getters)})}function oZ(e){ut(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function xE(e,t){return t.reduce(function(n,r){return n[r]},e)}function Iv(e,t,n){return gP(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var sZ="vuex bindings",GA="vuex:mutations",G0="vuex:actions",su="vuex",aZ=0;function lZ(e,t){JX({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[sZ]},function(n){n.addTimelineLayer({id:GA,label:"Vuex Mutations",color:zA}),n.addTimelineLayer({id:G0,label:"Vuex Actions",color:zA}),n.addInspector({id:su,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(r){if(r.app===e&&r.inspectorId===su)if(r.filter){var i=[];wP(i,t._modules.root,r.filter,""),r.rootNodes=i}else r.rootNodes=[CP(t._modules.root,"")]}),n.on.getInspectorState(function(r){if(r.app===e&&r.inspectorId===su){var i=r.nodeId;_P(t,i),r.state=dZ(pZ(t._modules,i),i==="root"?t.getters:t._makeLocalGettersCache,i)}}),n.on.editInspectorState(function(r){if(r.app===e&&r.inspectorId===su){var i=r.nodeId,o=r.path;i!=="root"&&(o=i.split("/").filter(Boolean).concat(o)),t._withCommit(function(){r.set(t._state.data,o,r.state.value)})}}),t.subscribe(function(r,i){var o={};r.payload&&(o.payload=r.payload),o.state=i,n.notifyComponentUpdate(),n.sendInspectorTree(su),n.sendInspectorState(su),n.addTimelineEvent({layerId:GA,event:{time:Date.now(),title:r.type,data:o}})}),t.subscribeAction({before:function(r,i){var o={};r.payload&&(o.payload=r.payload),r._id=aZ++,r._time=Date.now(),o.state=i,n.addTimelineEvent({layerId:G0,event:{time:r._time,title:r.type,groupId:r._id,subtitle:"start",data:o}})},after:function(r,i){var o={},s=Date.now()-r._time;o.duration={_custom:{type:"duration",display:s+"ms",tooltip:"Action duration",value:s}},r.payload&&(o.payload=r.payload),o.state=i,n.addTimelineEvent({layerId:G0,event:{time:Date.now(),title:r.type,groupId:r._id,subtitle:"end",data:o}})}})})}var zA=8702998,uZ=6710886,cZ=16777215,SP={label:"namespaced",textColor:cZ,backgroundColor:uZ};function EP(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function CP(e,t){return{id:t||"root",label:EP(t),tags:e.namespaced?[SP]:[],children:Object.keys(e._children).map(function(n){return CP(e._children[n],t+n+"/")})}}function wP(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[SP]:[]}),Object.keys(t._children).forEach(function(i){wP(e,t._children[i],n,r+i+"/")})}function dZ(e,t,n){t=n==="root"?t:t[n];var r=Object.keys(t),i={state:Object.keys(e.state).map(function(s){return{key:s,editable:!0,value:e.state[s]}})};if(r.length){var o=fZ(t);i.getters=Object.keys(o).map(function(s){return{key:s.endsWith("/")?EP(s):s,editable:!1,value:g_(function(){return o[s]})}})}return i}function fZ(e){var t={};return Object.keys(e).forEach(function(n){var r=n.split("/");if(r.length>1){var i=t,o=r.pop();r.forEach(function(s){i[s]||(i[s]={_custom:{value:{},display:s,tooltip:"Module",abstract:!0}}),i=i[s]._custom.value}),i[o]=g_(function(){return e[n]})}else t[n]=g_(function(){return e[n]})}),t}function pZ(e,t){var n=t.split("/").filter(function(r){return r});return n.reduce(function(r,i,o){var s=r[i];if(!s)throw new Error('Missing module "'+i+'" for path "'+t+'".');return o===n.length-1?s:s._children},t==="root"?e:e.root._children)}function g_(e){try{return e()}catch(t){return t}}var po=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=(typeof r=="function"?r():r)||{}},TP={namespaced:{configurable:!0}};TP.namespaced.get=function(){return!!this._rawModule.namespaced};po.prototype.addChild=function(t,n){this._children[t]=n};po.prototype.removeChild=function(t){delete this._children[t]};po.prototype.getChild=function(t){return this._children[t]};po.prototype.hasChild=function(t){return t in this._children};po.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};po.prototype.forEachChild=function(t){Kc(this._children,t)};po.prototype.forEachGetter=function(t){this._rawModule.getters&&Kc(this._rawModule.getters,t)};po.prototype.forEachAction=function(t){this._rawModule.actions&&Kc(this._rawModule.actions,t)};po.prototype.forEachMutation=function(t){this._rawModule.mutations&&Kc(this._rawModule.mutations,t)};Object.defineProperties(po.prototype,TP);var Ul=function(t){this.register([],t,!1)};Ul.prototype.get=function(t){return t.reduce(function(n,r){return n.getChild(r)},this.root)};Ul.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(r,i){return n=n.getChild(i),r+(n.namespaced?i+"/":"")},"")};Ul.prototype.update=function(t){AP([],this.root,t)};Ul.prototype.register=function(t,n,r){var i=this;r===void 0&&(r=!0);var o=new po(n,r);if(t.length===0)this.root=o;else{var s=this.get(t.slice(0,-1));s.addChild(t[t.length-1],o)}n.modules&&Kc(n.modules,function(a,l){i.register(t.concat(l),a,r)})};Ul.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1],i=n.getChild(r);i&&i.runtime&&n.removeChild(r)};Ul.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1];return n?n.hasChild(r):!1};function AP(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return;AP(e.concat(r),t.getChild(r),n.modules[r])}}function _He(e){return new Kr(e)}var Kr=function(t){var n=this;t===void 0&&(t={});var r=t.plugins;r===void 0&&(r=[]);var i=t.strict;i===void 0&&(i=!1);var o=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Ul(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=o;var s=this,a=this,l=a.dispatch,u=a.commit;this.dispatch=function(f,p){return l.call(s,f,p)},this.commit=function(f,p,h){return u.call(s,f,p,h)},this.strict=i;var c=this._modules.root.state;f1(this,c,[],this._modules.root),IE(this,c),r.forEach(function(d){return d(n)})},LE={state:{configurable:!0}};Kr.prototype.install=function(t,n){t.provide(n||vP,this),t.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:!1;r&&lZ(t,this)};LE.state.get=function(){return this._state.data};LE.state.set=function(e){};Kr.prototype.commit=function(t,n,r){var i=this,o=Iv(t,n,r),s=o.type,a=o.payload,l={type:s,payload:a},u=this._mutations[s];u&&(this._withCommit(function(){u.forEach(function(d){d(a)})}
156),this._subscribers.slice().forEach(function(c){return c(l,i.state)}))};Kr.prototype.dispatch=function(t,n){var r=this,i=Iv(t,n),o=i.type,s=i.payload,a={type:o,payload:s},l=this._actions[o];if(l){try{this._actionSubscribers.slice().filter(function(c){return c.before}).forEach(function(c){return c.before(a,r.state)})}catch{}var u=l.length>1?Promise.all(l.map(function(c){return c(s)})):l[0](s);return new Promise(function(c,d){u.then(function(f){try{r._actionSubscribers.filter(function(p){return p.after}).forEach(function(p){return p.after(a,r.state)})}catch{}c(f)},function(f){try{r._actionSubscribers.filter(function(p){return p.error}).forEach(function(p){return p.error(a,r.state,f)})}catch{}d(f)})})}};Kr.prototype.subscribe=function(t,n){return yP(t,this._subscribers,n)};Kr.prototype.subscribeAction=function(t,n){var r=typeof t=="function"?{before:t}:t;return yP(r,this._actionSubscribers,n)};Kr.prototype.watch=function(t,n,r){var i=this;return ut(function(){return t(i.state,i.getters)},n,Object.assign({},r))};Kr.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};Kr.prototype.registerModule=function(t,n,r){r===void 0&&(r={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),f1(this,this.state,t,this._modules.get(t),r.preserveState),IE(this,this.state)};Kr.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var r=xE(n.state,t.slice(0,-1));delete r[t[t.length-1]]}),bP(this)};Kr.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};Kr.prototype.hotUpdate=function(t){this._modules.update(t),bP(this,!0)};Kr.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(Kr.prototype,LE);var hZ=xP(function(e,t){var n={};return IP(t).forEach(function(r){var i=r.key,o=r.val;o=e+o,n[i]=function(){if(!(e&&!LP(this.$store,"mapGetters",e)))return this.$store.getters[o]},n[i].vuex=!0}),n}),mZ=xP(function(e,t){var n={};return IP(t).forEach(function(r){var i=r.key,o=r.val;n[i]=function(){for(var a=[],l=arguments.length;l--;)a[l]=arguments[l];var u=this.$store.dispatch;if(e){var c=LP(this.$store,"mapActions",e);if(!c)return;u=c.context.dispatch}return typeof o=="function"?o.apply(this,[u].concat(a)):u.apply(this.$store,[o].concat(a))}}),n});function IP(e){return vZ(e)?Array.isArray(e)?e.map(function(t){return{key:t,val:t}}):Object.keys(e).map(function(t){return{key:t,val:e[t]}}):[]}function vZ(e){return Array.isArray(e)||gP(e)}function xP(e){return function(t,n){return typeof t!="string"?(n=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,n)}}function LP(e,t,n){var r=e._modulesNamespaceMap[n];return r}var gZ="M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,14C16.42,14 20,15.79 20,18V20H4V18C4,15.79 7.58,14 12,14Z",yZ="M12,19.2C9.5,19.2 7.29,17.92 6,16C6.03,14 10,12.9 12,12.9C14,12.9 17.97,14 18,16C16.71,17.92 14.5,19.2 12,19.2M12,5A3,3 0 0,1 15,8A3,3 0 0,1 12,11A3,3 0 0,1 9,8A3,3 0 0,1 12,5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z",SHe="M12,5.5A3.5,3.5 0 0,1 15.5,9A3.5,3.5 0 0,1 12,12.5A3.5,3.5 0 0,1 8.5,9A3.5,3.5 0 0,1 12,5.5M5,8C5.56,8 6.08,8.15 6.53,8.42C6.38,9.85 6.8,11.27 7.66,12.38C7.16,13.34 6.16,14 5,14A3,3 0 0,1 2,11A3,3 0 0,1 5,8M19,8A3,3 0 0,1 22,11A3,3 0 0,1 19,14C17.84,14 16.84,13.34 16.34,12.38C17.2,11.27 17.62,9.85 17.47,8.42C17.92,8.15 18.44,8 19,8M5.5,18.25C5.5,16.18 8.41,14.5 12,14.5C15.59,14.5 18.5,16.18 18.5,18.25V20H5.5V18.25M0,20V18.5C0,17.11 1.89,15.94 4.45,15.6C3.86,16.28 3.5,17.22 3.5,18.25V20H0M24,20H20.5V18.25C20.5,17.22 20.14,16.28 19.55,15.6C22.11,15.94 24,17.11 24,18.5V20Z",EHe="M12,5A3.5,3.5 0 0,0 8.5,8.5A3.5,3.5 0 0,0 12,12A3.5,3.5 0 0,0 15.5,8.5A3.5,3.5 0 0,0 12,5M12,7A1.5,1.5 0 0,1 13.5,8.5A1.5,1.5 0 0,1 12,10A1.5,1.5 0 0,1 10.5,8.5A1.5,1.5 0 0,1 12,7M5.5,8A2.5,2.5 0 0,0 3,10.5C3,11.44 3.53,12.25 4.29,12.68C4.65,12.88 5.06,13 5.5,13C5.94,13 6.35,12.88 6.71,12.68C7.08,12.47 7.39,12.17 7.62,11.81C6.89,10.86 6.5,9.7 6.5,8.5C6.5,8.41 6.5,8.31 6.5,8.22C6.2,8.08 5.86,8 5.5,8M18.5,8C18.14,8 17.8,8.08 17.5,8.22C17.5,8.31 17.5,8.41 17.5,8.5C17.5,9.7 17.11,10.86 16.38,11.81C16.5,12 16.63,12.15 16.78,12.3C16.94,12.45 17.1,12.58 17.29,12.68C17.65,12.88 18.06,13 18.5,13C18.94,13 19.35,12.88 19.71,12.68C20.47,12.25 21,11.44 21,10.5A2.5,2.5 0 0,0 18.5,8M12,14C9.66,14 5,15.17 5,17.5V19H19V17.5C19,15.17 14.34,14 12,14M4.71,14.55C2.78,14.78 0,15.76 0,17.5V19H3V17.07C3,16.06 3.69,15.22 4.71,14.55M19.29,14.55C20.31,15.22 21,16.06 21,17.07V19H24V17.5C24,15.76 21.22,14.78 19.29,14.55M12,16C13.53,16 15.24,16.5 16.23,17H7.77C8.76,16.5 10.47,16 12,16Z",CHe="M12,15C7.58,15 4,16.79 4,19V21H20V19C20,16.79 16.42,15 12,15M8,9A4,4 0 0,0 12,13A4,4 0 0,0 16,9M11.5,2C11.2,2 11,2.21 11,2.5V5.5H10V3C10,3 7.75,3.86 7.75,6.75C7.75,6.75 7,6.89 7,8H17C16.95,6.89 16.25,6.75 16.25,6.75C16.25,3.86 14,3 14,3V5.5H13V2.5C13,2.21 12.81,2 12.5,2H11.5Z",wHe="M16 17V19H2V17S2 13 9 13 16 17 16 17M12.5 7.5A3.5 3.5 0 1 0 9 11A3.5 3.5 0 0 0 12.5 7.5M15.94 13A5.32 5.32 0 0 1 18 17V19H22V17S22 13.37 15.94 13M15 4A3.39 3.39 0 0 0 13.07 4.59A5 5 0 0 1 13.07 10.41A3.39 3.39 0 0 0 15 11A3.5 3.5 0 0 0 15 4Z",THe="M11,14C12,14 13.05,14.16 14.2,14.44C13.39,15.31 13,16.33 13,17.5C13,18.39 13.25,19.23 13.78,20H3V18C3,16.81 3.91,15.85 5.74,15.12C7.57,14.38 9.33,14 11,14M11,12C9.92,12 9,11.61 8.18,10.83C7.38,10.05 7,9.11 7,8C7,6.92 7.38,6 8.18,5.18C9,4.38 9.92,4 11,4C12.11,4 13.05,4.38 13.83,5.18C14.61,6 15,6.92 15,8C15,9.11 14.61,10.05 13.83,10.83C13.05,11.61 12.11,12 11,12M18.5,10H20L22,10V12H20V17.5A2.5,2.5 0 0,1 17.5,20A2.5,2.5 0 0,1 15,17.5A2.5,2.5 0 0,1 17.5,15C17.86,15 18.19,15.07 18.5,15.21V10Z",AHe="M12,4A4,4 0 0,1 16,8A4,4 0 0,1 12,12A4,4 0 0,1 8,8A4,4 0 0,1 12,4M12,6A2,2 0 0,0 10,8A2,2 0 0,0 12,10A2,2 0 0,0 14,8A2,2 0 0,0 12,6
156M12,13C14.67,13 20,14.33 20,17V20H4V17C4,14.33 9.33,13 12,13M12,14.9C9.03,14.9 5.9,16.36 5.9,17V18.1H18.1V17C18.1,16.36 14.97,14.9 12,14.9Z",IHe="M9,5A4,4 0 0,1 13,9A4,4 0 0,1 9,13A4,4 0 0,1 5,9A4,4 0 0,1 9,5M9,15C11.67,15 17,16.34 17,19V21H1V19C1,16.34 6.33,15 9,15M16.76,5.36C18.78,7.56 18.78,10.61 16.76,12.63L15.08,10.94C15.92,9.76 15.92,8.23 15.08,7.05L16.76,5.36M20.07,2C24,6.05 23.97,12.11 20.07,16L18.44,14.37C21.21,11.19 21.21,6.65 18.44,3.63L20.07,2Z",xHe="M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",LHe="M13,13H11V7H13M13,17H11V15H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",bZ="M11,15H13V17H11V15M11,7H13V13H11V7M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20Z",kHe="M23,12L20.56,9.22L20.9,5.54L17.29,4.72L15.4,1.54L12,3L8.6,1.54L6.71,4.72L3.1,5.53L3.44,9.21L1,12L3.44,14.78L3.1,18.47L6.71,19.29L8.6,22.47L12,21L15.4,22.46L17.29,19.28L20.9,18.46L20.56,14.78L23,12M13,17H11V15H13V17M13,13H11V7H13V13Z",MHe="M13 13H11V7H13M11 15H13V17H11M15.73 3H8.27L3 8.27V15.73L8.27 21H15.73L21 15.73V8.27L15.73 3Z",RHe="M4 22H2V2H4V22M22 7H6V10H22V7M16 14H6V17H16V14Z",PHe="M21 2H3C1.9 2 1 2.9 1 4V20C1 21.1 1.9 22 3 22H21C22.1 22 23 21.1 23 20V4C23 2.9 22.1 2 21 2M21 20H3V6H21V20Z",OHe="M16,20H20V16H16M16,14H20V10H16M10,8H14V4H10M16,8H20V4H16M10,14H14V10H10M4,14H8V10H4M4,20H8V16H4M10,20H14V16H10M4,8H8V4H4V8Z",$He="M3 3H21V7H3V3M4 21V8H20V21H4M14 14V11H10V14H7L12 19L17 14H14Z",NHe="M19.92,12.08L12,20L4.08,12.08L5.5,10.67L11,16.17V2H13V16.17L18.5,10.66L19.92,12.08M12,20H2V22H22V20H12Z",HHe="M4.08,11.92L12,4L19.92,11.92L18.5,13.33L13,7.83V22H11V7.83L5.5,13.33L4.08,11.92M12,4H22V2H2V4H12Z",_Z="M20,11V13H8L13.5,18.5L12.08,19.92L4.16,12L12.08,4.08L13.5,5.5L8,11H20Z",DHe="M20 16L14.5 21.5L13.08 20.09L16.17 17H10.5C6.91 17 4 14.09 4 10.5V4H6V10.5C6 13 8 15 10.5 15H16.17L13.09 11.91L14.5 10.5L20 16Z",VHe="M13,20H11V8L5.5,13.5L4.08,12.08L12,4.16L19.92,12.08L18.5,13.5L13,8V20Z",SZ="M12,15C12.81,15 13.5,14.7 14.11,14.11C14.7,13.5 15,12.81 15,12C15,11.19 14.7,10.5 14.11,9.89C13.5,9.3 12.81,9 12,9C11.19,9 10.5,9.3 9.89,9.89C9.3,10.5 9,11.19 9,12C9,12.81 9.3,13.5 9.89,14.11C10.5,14.7 11.19,15 12,15M12,2C14.75,2 17.1,3 19.05,4.95C21,6.9 22,9.25 22,12V13.45C22,14.45 21.65,15.3 21,16C20.3,16.67 19.5,17 18.5,17C17.3,17 16.31,16.5 15.56,15.5C14.56,16.5 13.38,17 12,17C10.63,17 9.45,16.5 8.46,15.54C7.5,14.55 7,13.38 7,12C7,10.63 7.5,9.45 8.46,8.46C9.45,7.5 10.63,7 12,7C13.38,7 14.55,7.5 15.54,8.46C16.5,9.45 17,10.63 17,12V13.45C17,13.86 17.16,14.22 17.46,14.53C17.76,14.84 18.11,15 18.5,15C18.92,15 19.27,14.84 19.57,14.53C19.87,14.22 20,13.86 20,13.45V12C20,9.81 19.23,7.93 17.65,6.35C16.07,4.77 14.19,4 12,4C9.81,4 7.93,4.77 6.35,6.35C4.77,7.93 4,9.81 4,12C4,14.19 4.77,16.07 6.35,17.65C7.93,19.23 9.81,20 12,20H17V22H12C9.25,22 6.9,21 4.95,19.05C3,17.1 2,14.75 2,12C2,9.25 3,6.9 4.95,4.95C6.9,3 9.25,2 12,2Z",FHe="M7.5,5.6L5,7L6.4,4.5L5,2L7.5,3.4L10,2L8.6,4.5L10,7L7.5,5.6M19.5,15.4L22,14L20.6,16.5L22,19L19.5,17.6L17,19L18.4,16.5L17,14L19.5,15.4M22,2L20.6,4.5L22,7L19.5,5.6L17,7L18.4,4.5L17,2L19.5,3.4L22,2M13.34,12.78L15.78,10.34L13.66,8.22L11.22,10.66L13.34,12.78M14.37,7.29L16.71,9.63C17.1,10 17.1,10.65 16.71,11.04L5.04,22.71C4.65,23.1 4,23.1 3.63,22.71L1.29,20.37C0.9,20 0.9,19.35 1.29,18.96L12.96,7.29C13.35,6.9 14,6.9 14.37,7.29Z",BHe="M17,14H19V17H22V19H19V22H17V19H14V17H17V14M11.5,1L21,6V8H2V6L11.5,1M16,10H19V12.08L18,12C17.3,12 16.63,12.12 16,12.34V10M2,22V19H12.08C12.27,20.14 12.79,21.17 13.53,22H2M10,10H13V14.68C12.54,15.37 12.22,16.15 12.08,17H10V10M4,10H7V17H4V10Z",UHe="M21,19V20H3V19L5,17V11C5,7.9 7.03,5.17 10,4.29C10,4.19 10,4.1 10,4A2,2 0 0,1 12,2A2,2 0 0,1 14,4C14,4.1 14,4.19 14,4.29C16.97,5.17 19,7.9 19,11V17L21,19M14,21A2,2 0 0,1 12,23A2,2 0 0,1 10,21",jHe="M20.84,22.73L18.11,20H3V19L5,17V11C5,9.86 5.29,8.73 5.83,7.72L1.11,3L2.39,1.73L22.11,21.46L20.84,22.73M19,15.8V11C19,7.9 16.97,5.17 14,4.29C14,4.19 14,4.1 14,4A2,2 0 0,0 12,2A2,2 0 0,0 10,4C10,4.1 10,4.19 10,4.29C9.39,4.47 8.8,4.74 8.26,5.09L19,15.8M12,23A2,2 0 0,0 14,21H10A2,2 0 0,0 12,23Z",WHe="M10 21H14C14 22.1 13.1 23 12 23S10 22.1 10 21M21 19V20H3V19L5 17V11C5 7.9 7 5.2 10 4.3V4C10 2.9 10.9 2 12 2S14 2.9 14 4V4.3C17 5.2 19 7.9 19 11V17L21 19M17 11C17 8.2 14.8 6 12 6S7 8.2 7 11V18H17V11Z",GHe="M12,0A12,12 0 0,1 24,12A12,12 0 0,1 12,24A12,12 0 0,1 0,12A12,12 0 0,1 12,0M12,2A10,10 0 0,0 2,12C2,14.4 2.85,16.6 4.26,18.33L18.33,4.26C16.6,2.85 14.4,2 12,2M12,22A10,10 0 0,0 22,12C22,9.6 21.15,7.4 19.74,5.67L5.67,19.74C7.4,21.15 9.6,22 12,22Z",zHe="M10,2H14A2,2 0 0,1 16,4V6H20A2,2 0 0,1 22,8V19A2,2 0 0,1 20,21H4C2.89,21 2,20.1 2,19V8C2,6.89 2.89,6 4,6H8V4C8,2.89 8.89,2 10,2M14,6V4H10V6H14Z",qHe="M20,6C20.58,6 21.05,6.2 21.42,6.59C21.8,7 22,7.45 22,8V19C22,19.55 21.8,20 21.42,20.41C21.05,20.8 20.58,21 20,21H4C3.42,21 2.95,20.8 2.58,20.41C2.2,20 2,19.55 2,19V8C2,7.45 2.2,7 2.58,6.59C2.95,6.2 3.42,6 4,6H8V4C8,3.42 8.2,2.95 8.58,2.58C8.95,2.2 9.42,2 10,2H14C14.58,2 15.05,2.2 15.42,2.58C15.8,2.95 16,3.42 16,4V6H20M4,8V19H20V8H4M14,6V4H10V6H14Z",KHe="M10 16V15H3L3 19C3 20.11 3.89 21 5 21H19C20.11 21 21 20.11 21 19V15H14V16H10M20 7H16V5L14 3H10L8 5V7H4C2.9 7 2 7.9 2 9V12C2 13.11 2.89 14 4 14H10V12H14V14H20C21.1 14 22 13.1 22 12V9C22 7.9 21.1 7 20 7M14 7H10V5H14V7Z",XHe="M12,8H4A2,2 0 0,0 2,10V14A2,2 0 0,0 4,16H5V20A1,1 0 0,0 6,21H8A1,1 0 0,0 9,20V16H12L17,20V4L12,8M21.5,12C21.5,13.71 20.54,15.26 19,16V8C20.53,8.75 21.5,10.3 21.5,12Z",ZHe="M12,8H4A2,2 0 0,0 2,10V14A2,2 0 0,0 4,16H5V20A1,1 0 0,0 6,21H8A1,1 0 0,0 9,20V16H12L17,20V4L12,8M15,15.6L13,14H4V10H13L15,8.4V15.6M2
1561.5,12C21.5,13.71 20.54,15.26 19,16V8C20.53,8.75 21.5,10.3 21.5,12Z",YHe="M19,19H5V8H19M16,1V3H8V1H6V3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3H18V1M17,12H12V17H17V12Z",JHe="M15,13H16.5V15.82L18.94,17.23L18.19,18.53L15,16.69V13M19,8H5V19H9.67C9.24,18.09 9,17.07 9,16A7,7 0 0,1 16,9C17.07,9 18.09,9.24 19,9.67V8M5,21C3.89,21 3,20.1 3,19V5C3,3.89 3.89,3 5,3H6V1H8V3H16V1H18V3H19A2,2 0 0,1 21,5V11.1C22.24,12.36 23,14.09 23,16A7,7 0 0,1 16,23C14.09,23 12.36,22.24 11.1,21H5M16,11.15A4.85,4.85 0 0,0 11.15,16C11.15,18.68 13.32,20.85 16,20.85A4.85,4.85 0 0,0 20.85,16C20.85,13.32 18.68,11.15 16,11.15Z",QHe="M6 1V3H5C3.89 3 3 3.89 3 5V19C3 20.1 3.89 21 5 21H11.1C12.36 22.24 14.09 23 16 23C19.87 23 23 19.87 23 16C23 14.09 22.24 12.36 21 11.1V5C21 3.9 20.11 3 19 3H18V1H16V3H8V1M5 5H19V7H5M5 9H19V9.67C18.09 9.24 17.07 9 16 9C12.13 9 9 12.13 9 16C9 17.07 9.24 18.09 9.67 19H5M16 11.15C18.68 11.15 20.85 13.32 20.85 16C20.85 18.68 18.68 20.85 16 20.85C13.32 20.85 11.15 18.68 11.15 16C11.15 13.32 13.32 11.15 16 11.15M15 13V16.69L18.19 18.53L18.94 17.23L16.5 15.82V13Z",eDe="M7 11H9V13H7V11M21 5V19C21 20.11 20.11 21 19 21H5C3.89 21 3 20.1 3 19V5C3 3.9 3.9 3 5 3H6V1H8V3H16V1H18V3H19C20.11 3 21 3.9 21 5M5 7H19V5H5V7M19 19V9H5V19H19M15 13V11H17V13H15M11 13V11H13V13H11M7 15H9V17H7V15M15 17V15H17V17H15M11 17V15H13V17H11Z",tDe="M12 12H17V17H12V12M19 3H18V1H16V3H8V1H6V3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3M19 5V7H5V5H19M5 19V9H19V19H5Z",nDe="M9,10H7V12H9V10M13,10H11V12H13V10M17,10H15V12H17V10M19,3H18V1H16V3H8V1H6V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3M19,19H5V8H19V19Z",rDe="M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z",iDe="M2,3H22C23.05,3 24,3.95 24,5V19C24,20.05 23.05,21 22,21H2C0.95,21 0,20.05 0,19V5C0,3.95 0.95,3 2,3M14,6V7H22V6H14M14,8V9H21.5L22,9V8H14M14,10V11H21V10H14M8,13.91C6,13.91 2,15 2,17V18H14V17C14,15 10,13.91 8,13.91M8,6A3,3 0 0,0 5,9A3,3 0 0,0 8,12A3,3 0 0,0 11,9A3,3 0 0,0 8,6Z",oDe="M17,18A2,2 0 0,1 19,20A2,2 0 0,1 17,22C15.89,22 15,21.1 15,20C15,18.89 15.89,18 17,18M1,2H4.27L5.21,4H20A1,1 0 0,1 21,5C21,5.17 20.95,5.34 20.88,5.5L17.3,11.97C16.96,12.58 16.3,13 15.55,13H8.1L7.2,14.63L7.17,14.75A0.25,0.25 0 0,0 7.42,15H19V17H7C5.89,17 5,16.1 5,15C5,14.65 5.09,14.32 5.24,14.04L6.6,11.59L3,4H1V2M7,18A2,2 0 0,1 9,20A2,2 0 0,1 7,22C5.89,22 5,21.1 5,20C5,18.89 5.89,18 7,18M16,11L18.78,6H6.14L8.5,11H16Z",sDe="M3,6H21V18H3V6M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M7,8A2,2 0 0,1 5,10V14A2,2 0 0,1 7,16H17A2,2 0 0,1 19,14V10A2,2 0 0,1 17,8H7Z",aDe="M2,5H22V20H2V5M20,18V7H4V18H20M17,8A2,2 0 0,0 19,10V15A2,2 0 0,0 17,17H7A2,2 0 0,0 5,15V10A2,2 0 0,0 7,8H17M17,13V12C17,10.9 16.33,10 15.5,10C14.67,10 14,10.9 14,12V13C14,14.1 14.67,15 15.5,15C16.33,15 17,14.1 17,13M15.5,11A0.5,0.5 0 0,1 16,11.5V13.5A0.5,0.5 0 0,1 15.5,14A0.5,0.5 0 0,1 15,13.5V11.5A0.5,0.5 0 0,1 15.5,11M13,13V12C13,10.9 12.33,10 11.5,10C10.67,10 10,10.9 10,12V13C10,14.1 10.67,15 11.5,15C12.33,15 13,14.1 13,13M11.5,11A0.5,0.5 0 0,1 12,11.5V13.5A0.5,0.5 0 0,1 11.5,14A0.5,0.5 0 0,1 11,13.5V11.5A0.5,0.5 0 0,1 11.5,11M8,15H9V10H8L7,10.5V11.5L8,11V15Z",EZ="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",lDe="M0.41,13.41L6,19L7.41,17.58L1.83,12M22.24,5.58L11.66,16.17L7.5,12L6.07,13.41L11.66,19L23.66,7M18,7L16.59,5.58L10.24,11.93L11.66,13.34L18,7Z",uDe="M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 10.59L10 14.17L17.59 6.58L19 8L10 17Z",cDe="M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M12 20C7.59 20 4 16.41 4 12S7.59 4 12 4 20 7.59 20 12 16.41 20 12 20M16.59 7.58L10 14.17L7.41 11.59L6 13L10 17L18 9L16.59 7.58Z",dDe="M23 12L20.6 9.2L20.9 5.5L17.3 4.7L15.4 1.5L12 3L8.6 1.5L6.7 4.7L3.1 5.5L3.4 9.2L1 12L3.4 14.8L3.1 18.5L6.7 19.3L8.6 22.5L12 21L15.4 22.5L17.3 19.3L20.9 18.5L20.6 14.8L23 12M18.7 16.9L16 17.5L14.6 19.9L12 18.8L9.4 19.9L8
15617.5L5.3 16.9L5.5 14.1L3.7 12L5.5 9.9L5.3 7.1L8 6.5L9.4 4.1L12 5.2L14.6 4.1L16 6.5L18.7 7.1L18.5 9.9L20.3 12L18.5 14.1L18.7 16.9M16.6 7.6L18 9L10 17L6 13L7.4 11.6L10 14.2L16.6 7.6Z",fDe="M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3M19,5V19H5V5H19Z",pDe="M10,17L5,12L6.41,10.58L10,14.17L17.59,6.58L19,8M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z",hDe="M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2,4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z",CZ="M7.41,18.41L6,17L12,11L18,17L16.59,18.41L12,13.83L7.41,18.41M7.41,12.41L6,11L12,5L18,11L16.59,12.41L12,7.83L7.41,12.41Z",p1="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",gp="M15.41,16.58L10.83,12L15.41,7.41L14,6L8,12L14,18L15.41,16.58Z",jl="M8.59,16.58L13.17,12L8.59,7.41L10,6L16,12L10,18L8.59,16.58Z",mDe="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",wZ="M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",vDe="M10,17L6,13L7.41,11.59L10,14.17L16.59,7.58L18,9M12,3A1,1 0 0,1 13,4A1,1 0 0,1 12,5A1,1 0 0,1 11,4A1,1 0 0,1 12,3M19,3H14.82C14.4,1.84 13.3,1 12,1C10.7,1 9.6,1.84 9.18,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3Z",gDe="M12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22C6.47,22 2,17.5 2,12A10,10 0 0,1 12,2M12.5,7V12.25L17,14.92L16.25,16.15L11,13V7H12.5Z",yDe="M12 20C16.4 20 20 16.4 20 12S16.4 4 12 4 4 7.6 4 12 7.6 20 12 20M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22C6.5 22 2 17.5 2 12C2 6.5 6.5 2 12 2M17 11.5V13H11V7H12.5V11.5H17Z",El="M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z",kP="M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2,6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12,13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z",bDe="M8.27,3L3,8.27V15.73L8.27,21H15.73L21,15.73V8.27L15.73,3M8.41,7L12,10.59L15.59,7L17,8.41L13.41,12L17,15.59L15.59,17L12,13.41L8.41,17L7,15.59L10.59,12L7,8.41",_De="M19.8 22.6L17.15 20H6.5Q4.2 20 2.6 18.4T1 14.5Q1 12.58 2.19 11.08 3.38 9.57 5.25 9.15 5.33 8.95 5.4 8.76 5.5 8.57 5.55 8.35L1.4 4.2L2.8 2.8L21.2 21.2M6.5 18H15.15L7.1 9.95Q7.05 10.23 7.03 10.5 7 10.73 7 11H6.5Q5.05 11 4.03 12.03 3 13.05 3 14.5 3 15.95 4.03 17 5.05 18 6.5 18M11.13 14M21.6 18.75L20.15 17.35Q20.58 17 20.79 16.54 21 16.08 21 15.5 21 14.45 20.27 13.73 19.55 13 18.5 13H17V11Q17 8.93 15.54 7.46 14.08 6 12 6 11.33 6 10.7 6.16 10.07 6.33 9.5 6.68L8.05 5.23Q8.93 4.63 9.91 4.31 10.9 4 12 4 14.93 4 16.96 6.04 19 8.07 19 11 20.73 11.2 21.86 12.5 23 13.78 23 15.5 23 16.5 22.63 17.31 22.25 18.15 21.6 18.75M14.83 12.03Z",SDe="M14.6,16.6L19.2,12L14.6,7.4L16,6L22,12L16,18L14.6,16.6M9.4,16.6L4.8,12L9.4,7.4L8,6L2,12L8,18L9.4,16.6Z",EDe="M12,15.5A3.5,3.5 0 0,1 8.5,12A3.5,3.5 0 0,1 12,8.5A3.5,3.5 0 0,1 15.5,12A3.5,3.5 0 0,1 12,15.5M19.43,12.97C19.47,12.65 19.5,12.33 19.5,12C19.5,11.67 19.47,11.34 19.43,11L21.54,9.37C21.73,9.22 21.78,8.95 21.66,8.73L19.66,5.27C19.54,5.05 19.27,4.96 19.05,5.05L16.56,6.05C16.04,5.66 15.5,5.32 14.87,5.07L14.5,2.42C14.46,2.18 14.25,2 14,2H10C9.75,2 9.54,2.18 9.5,2.42L9.13,5.07C8.5,5.32 7.96,5.66 7.44,6.05L4.95,5.05C4.73,4.96 4.46,5.05 4.34,5.27L2.34,8.73C2.21,8.95 2.27,9.22 2.46,9.37L4.57,11C4.53,11.34 4.5,11.67 4.5,12C4.5,12.33 4.53,12.65 4.57,12.97L2.46,14.63C2.27,14.78 2.21,15.05 2.34,15.27L4.34,18.73C4.46,18.95 4.73,19.03 4.95,18.95L7.44,17.94C7.96,18.34 8.5,18.68 9.13,18.93L9.5,21.58C9.54,21.82 9.75,22 10,22H14C14.25,22 14.46,21.82 14.5,21.58L14.87,18.93C15.5,18.67 16.04,18.34 16.56,17.94L19.05,18.95C19.27,19.03 19.54,18.95 19.66,18.73L21.66,15.27C21.78,15.05 21.73,14.78 21.54,14.63L19.43,12.97Z",CDe="M9 14H2V16H9V19L13 15L9 11V14M15 13V10H22V8H15V5L11 9L15 13Z",wDe="M7.97,16L5,19C4.67,19.3 4.23,19.5 3.75,19.5A1.75,1.75 0 0,1 2,17.75V17.5L3,10.12C3.21,7.81 5.14,6 7.5,6H16.5C18.86,6 20.79,7.81 21,10.12L22,17.5V17.75A1.75,1.75 0 0,1 20.25,19.5C19.77,19.5 19.33,19.3 19,19L16.03,16H7.97M7,8V10H5V11H7V13H8V11H10V10H8V8H7M16.5,8A0.75,0.75 0 0,0 15.75,8.75A0.75,0.75 0 0,0 16.5,9.5A0.75,0.75 0 0,0 17.25,8.75A0.75,0.75 0 0,0 16.5,8M14.75,9.75A0.75,0.75 0 0,0 14,10.5A0.75,0.75 0 0,0 14.75,11.25A0.75,0.75 0 0,0 15.5,10.5A0.75,0.75 0 0,0 14.75,9.75M18.25,9.75A0.75,0.75 0 0,0 17.5,10.5A0.75,0.75 0 0,0 18.25,11.25A0.75,0.75 0 0,0 19,10.5A0.75,0.75 0 0,0 18.25,9.75M16.5,11.5A0.75,0.75 0 0,0 15.75,12.25A0.75,0.75 0 0,0 16.5,13A0.75,0.75 0 0,0 17.25,12.25A0.75,0.75 0 0,0 16.5,11.5Z",TDe="M20 4H4A2 2 0 0 0 2 6V18A2 2 0 0 0 4 20H20A2 2 0 0 0 22 18V6A2 2 0 0 0 20 4M20 11H4V8H20Z",ADe="M21 9V6H7V9H21M21 3A2 2 0 0 1 23 5V15A2 2 0 0 1 21 17H7A2 2 0 0 1 5 15V5A2 2 0 0 1 7 3H21M3 19H18V21H3A2 2 0 0 1 1 19V8H3Z",IDe="M20,8H4V6H20M20,18H4V12H20M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z",xDe="M7,15H9C9,16.08 10.37,17 12,17C13.63,17 15,16.08 15,15C15,13.9 13.96,13.5 11.76,
15612.97C9.64,12.44 7,11.78 7,9C7,7.21 8.47,5.69 10.5,5.18V3H13.5V5.18C15.53,5.69 17,7.21 17,9H15C15,7.92 13.63,7 12,7C10.37,7 9,7.92 9,9C9,10.1 10.04,10.5 12.24,11.03C14.36,11.56 17,12.22 17,15C17,16.79 15.53,18.31 13.5,18.82V21H10.5V18.82C8.47,18.31 7,16.79 7,15Z",LDe="M3,4.27L4.28,3L21,19.72L19.73,21L16.06,17.33C15.44,18 14.54,18.55 13.5,18.82V21H10.5V18.82C8.47,18.31 7,16.79 7,15H9C9,16.08 10.37,17 12,17C13.13,17 14.14,16.56 14.65,15.92L11.68,12.95C9.58,12.42 7,11.75 7,9C7,8.77 7,8.55 7.07,8.34L3,4.27M10.5,5.18V3H13.5V5.18C15.53,5.69 17,7.21 17,9H15C15,7.92 13.63,7 12,7C11.63,7 11.28,7.05 10.95,7.13L9.4,5.58L10.5,5.18Z",Pd="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",kDe="M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19M8.46,11.88L9.87,10.47L12,12.59L14.12,10.47L15.53,11.88L13.41,14L15.53,16.12L14.12,17.53L12,15.41L9.88,17.53L8.47,16.12L10.59,14L8.46,11.88M15.5,4L14.5,3H9.5L8.5,4H5V6H19V4H15.5Z",MDe="M14,14H16L12,10L8,14H10V18H14V14M6,7H18V19C18,19.5 17.8,20 17.39,20.39C17,20.8 16.5,21 16,21H8C7.5,21 7,20.8 6.61,20.39C6.2,20 6,19.5 6,19V7M19,4V6H5V4H8.5L9.5,3H14.5L15.5,4H19Z",RDe="M6,2L2,8L12,22L22,8L18,2H6Z",PDe="M18,2H6L2,8L12,22L22,8L18,2M4.43,8L7.07,4H16.93L19.57,8L12,18.56L4.43,8Z",ODe="M16,9H19L14,16M10,9H14L12,17M5,9H8L10,16M15,4H17L19,7H16M11,4H13L14,7H10M7,4H9L8,7H5M6,2L2,8L12,22L22,8L18,2H6Z",xv="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",$De="M5,20H19V18H5M19,9H15V3H9V9H5L12,16L19,9Z",NDe="M17.9,17.39C17.64,16.59 16.89,16 16,16H15V13A1,1 0 0,0 14,12H8V10H10A1,1 0 0,0 11,9V7H13A2,2 0 0,0 15,5V4.59C17.93,5.77 20,8.64 20,12C20,14.08 19.2,15.97 17.9,17.39M11,19.93C7.05,19.44 4,16.08 4,12C4,11.38 4.08,10.78 4.21,10.21L9,15V16A2,2 0 0,0 11,18M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",TZ="M20,8L12,13L4,8V6L12,11L20,6M20,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V6C22,4.89 21.1,4 20,4Z",HDe="M18 8L10 13L2 8V6L10 11L18 6M18 4H2C.9 4 0 4.9 0 6V18C0 19.1 .9 20 2 20H18C19.1 20 20 19.1 20 18V6C20 4.9 19.1 4 18 4M24 7H22V13H24V7M24 15H22V17H24V15Z",DDe="M4,8L12,13L20,8V8L12,3L4,8V8M22,8V18A2,2 0 0,1 20,20H4A2,2 0 0,1 2,18V8C2,7.27 2.39,6.64 2.97,6.29L12,0.64L21.03,6.29C21.61,6.64 22,7.27 22,8Z",VDe="M21.03 6.29L12 .64L2.97 6.29C2.39 6.64 2 7.27 2 8V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V8C22 7.27 21.61 6.64 21.03 6.29M20 18H4V10L12 15L20 10V18M12 13L4 8L12 3L20 8L12 13Z",AZ="M22 6C22 4.9 21.1 4 20 4H4C2.9 4 2 4.9 2 6V18C2 19.1 2.9 20 4 20H20C21.1 20 22 19.1 22 18V6M20 6L12 11L4 6H20M20 18H4V8L12 13L20 8V18Z",IZ="M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9M12,17A5,5 0 0,1 7,12A5,5 0 0,1 12,7A5,5 0 0,1 17,12A5,5 0 0,1 12,17M12,4.5C7,4.5 2.73,7.61 1,12C2.73,16.39 7,19.5 12,19.5C17,19.5 21.27,16.39 23,12C21.27,7.61 17,4.5 12,4.5Z",xZ="M11.83,9L15,12.16C15,12.11 15,12.05 15,12A3,3 0 0,0 12,9C11.94,9 11.89,9 11.83,9M7.53,9.8L9.08,11.35C9.03,11.56 9,11.77 9,12A3,3 0 0,0 12,15C12.22,15 12.44,14.97 12.65,14.92L14.2,16.47C13.53,16.8 12.79,17 12,17A5,5 0 0,1 7,12C7,11.21 7.2,10.47 7.53,9.8M2,4.27L4.28,6.55L4.73,7C3.08,8.3 1.78,10 1,12C2.73,16.39 7,19.5 12,19.5C13.55,19.5 15.03,19.2 16.38,18.66L16.81,19.08L19.73,22L21,20.73L3.27,3M12,7A5,5 0 0,1 17,12C17,12.64 16.87,13.26 16.64,13.82L19.57,16.75C21.07,15.5 22.27,13.86 23,12C21.27,7.61 17,4.5 12,4.5C10.6,4.5 9.26,4.75 8,5.2L10.17,7.35C10.74,7.13 11.35,7 12,7Z",FDe="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z",BDe="M12,9A3,3 0 0,1 15,12A3,3 0 0,1 12,15A3,3 0 0,1 9,12A3,3 0 0,1 12,9M12,4.5C17,4.5 21.27,7.61 23,12C21.27,16.39 17,19.5 12,19.5C7,19.5 2.73,16.39 1,12C2.73,7.61 7,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C15.76,17.5 19.17,15.36 20.82,12C19.17,8.64 15.76,6.5 12,6.5C8.24,6.5 4.83,8.64 3.18,12Z",UDe="M10.25,13A1.25,1.25 0 0,1 9,14.25A1.25,1.25 0 0,1 7.75,13A1.25,1.25 0 0,1 9,11.75A1.25,1.25 0 0,1 10.25,13M15,11.75A1.25,1.25 0 0,0 13.75,13A1.25,1.25 0 0,0 15,14.25A1.25,1.25 0 0,0 16.25,13A1.25,1.25 0 0,0 15,11.75M22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12M10.66,4.12C12.06,6.44 14.6,8 17.5,8C17.96,8 18.41,7.95 18.84,7.88C17.44,5.56 14.9,4 12,4C11.54,4 11.09,4.05 10.66,4.12M4.42,9.47C6.13,8.5 7.45,6.92 8.08,5.03C6.37,
1566 5.05,7.58 4.42,9.47M20,12C20,11.22 19.88,10.47 19.67,9.76C18.97,9.91 18.25,10 17.5,10C14.37,10 11.58,8.56 9.74,6.31C8.69,8.87 6.6,10.88 4,11.86C4,11.9 4,11.95 4,12C4,16.41 7.59,20 12,20C16.41,20 20,16.41 20,12Z",LZ="M12 2.04C6.5 2.04 2 6.53 2 12.06C2 17.06 5.66 21.21 10.44 21.96V14.96H7.9V12.06H10.44V9.85C10.44 7.34 11.93 5.96 14.22 5.96C15.31 5.96 16.45 6.15 16.45 6.15V8.62H15.19C13.95 8.62 13.56 9.39 13.56 10.18V12.06H16.34L15.89 14.96H13.56V21.96A10 10 0 0 0 22 12.06C22 6.53 17.5 2.04 12 2.04Z",jDe="M13,6V18L21.5,12M4,18L12.5,12L4,6V18Z",MP="M10,12V22H8V14H6V12H10M18,14V20C18,21.11 17.11,22 16,22H14A2,2 0 0,1 12,20V14A2,2 0 0,1 14,12H16C17.11,12 18,12.9 18,14M14,14V20H16V14H14M11.5,3C14.15,3 16.55,4 18.4,5.6L21,3V10H14L16.62,7.38C15.23,6.22 13.46,5.5 11.5,5.5C7.96,5.5 4.95,7.81 3.9,11L1.53,10.22C2.92,6.03 6.85,3 11.5,3Z",WDe="M20 17H22V15H20V17M20 7V13H22V7M4 2C2.89 2 2 2.89 2 4V20C2 21.11 2.89 22 4 22H16C17.11 22 18 21.11 18 20V8L12 2M11 3.5L16.5 9H11Z",GDe="M13,9H18.5L13,3.5V9M6,2H14L20,8V20A2,2 0 0,1 18,22H6C4.89,22 4,21.1 4,20V4C4,2.89 4.89,2 6,2M15,18V16H6V18H15M18,14V12H6V14H18Z",zDe="M6,2C4.89,2 4,2.89 4,4V20A2,2 0 0,0 6,22H10V20.09L12.09,18H6V16H14.09L16.09,14H6V12H18.09L20,10.09V8L14,2H6M13,3.5L18.5,9H13V3.5M20.15,13C20,13 19.86,13.05 19.75,13.16L18.73,14.18L20.82,16.26L21.84,15.25C22.05,15.03 22.05,14.67 21.84,14.46L20.54,13.16C20.43,13.05 20.29,13 20.15,13M18.14,14.77L12,20.92V23H14.08L20.23,16.85L18.14,14.77Z",qDe="M18 13C16.6 13 15.2 14.1 15.2 15.5V17C14.6 17 14 17.6 14 18.2V21.7C14 22.4 14.6 23 15.2 23H20.7C21.4 23 22 22.4 22 21.8V18.3C22 17.6 21.4 17 20.8 17V15.5C20.8 14.1 19.4 13 18 13M18 14.2C18.8 14.2 19.5 14.7 19.5 15.5V17H16.5V15.5C16.5 14.7 17.2 14.2 18 14.2M6 2C4.9 2 4 2.9 4 4V20C4 21.1 4.9 22 6 22H12V18.2C12 17.2 12.4 16.5 13 16C13.1 15.9 13.2 15.9 13.2 15.8V15.5C13.2 12.8 15.6 11 18 11C18.7 11 19.4 11.2 20 11.4V8L14 2H6M13 3.5L18.5 9H13V3.5Z",KDe="M22 18.3V21.8C22 22.4 21.4 23 20.7 23H15.2C14.6 23 14 22.4 14 21.7V18.2C14 17.6 14.6 17 15.2 17V14.5C15.2 13.1 16.6 12 18 12S20.8 13.1 20.8 14.5V15H19.5V14.5C19.5 13.7 18.8 13.2 18 13.2S16.5 13.7 16.5 14.5V17H20.8C21.4 17 22 17.6 22 18.3M6 2C4.9 2 4 2.9 4 4V20C4 21.1 4.9 22 6 22H12V18.2C12 17.2 12.4 16.5 13 16C13.1 15.9 13.2 15.9 13.2 15.8V14.5C13.2 11.8 15.6 10 18 10C18.7 10 19.4 10.2 20 10.4V8L14 2H6M13 3.5L18.5 9H13V3.5Z",XDe="M14,17H18V14L23,18.5L18,23V20H14V17M13,9H18.5L13,3.5V9M6,2H14L20,8V12.34C19.37,12.12 18.7,12 18,12A6,6 0 0,0 12,18C12,19.54 12.58,20.94 13.53,22H6C4.89,22 4,21.1 4,20V4A2,2 0 0,1 6,2Z",ZDe="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M13,13H11V18A2,2 0 0,1 9,20A2,2 0 0,1 7,18A2,2 0 0,1 9,16C9.4,16 9.7,16.1 10,16.3V11H13V13M13,9V3.5L18.5,9H13Z",YDe="M19 3H5C3.9 3 3 3.9 3 5V19C3 20.1 3.9 21 5 21H19C20.1 21 21 20.1 21 19V5C21 3.9 20.1 3 19 3M9.5 11.5C9.5 12.3 8.8 13 8 13H7V15H5.5V9H8C8.8 9 9.5 9.7 9.5 10.5V11.5M14.5 13.5C14.5 14.3 13.8 15 13 15H10.5V9H13C13.8 9 14.5 9.7 14.5 10.5V13.5M18.5 10.5H17V11.5H18.5V13H17V15H15.5V9H18.5V10.5M12 10.5H13V13.5H12V10.5M7 10.5H8V11.5H7V10.5Z",JDe="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H13C12.59,21.75 12.2,21.44 11.86,21.1C11.53,20.77 11.25,20.4 11,20H6V4H13V9H18V10.18C18.71,10.34 19.39,10.61 20,11V8L14,2M20.31,18.9C21.64,16.79 21,14 18.91,12.68C16.8,11.35 14,12 12.69,14.08C11.35,16.19 12,18.97 14.09,20.3C15.55,21.23 17.41,21.23 18.88,20.32L22,23.39L23.39,22L20.31,18.9M16.5,19A2.5,2.5 0 0,1 14,16.5A2.5,2.5 0 0,1 16.5,14A2.5,2.5 0 0,1 19,16.5A2.5,2.5 0 0,1 16.5,19Z",QDe="M3,3H9V7H3V3M15,10H21V14H15V10M15,17H21V21H15V17M13,13H7V18H13V20H7L5,20V9H7V11H13V13Z",eVe="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M15.2,20H13.8L12,13.2L10.2,20H8.8L6.6,11H8.1L9.5,17.8L11.3,11H12.6L14.4,17.8L15.8,11H17.3L15.2,20M13,9V3.5L18.5,9H13Z",tVe="M18,9H16V7H18M18,13H16V11H18M18,17H16V15H18M8,9H6V7H8M8,13H6V11H8M8,17H6V15H8M18,3V5H16V3H8V5H6V3H4V21H6V19H8V21H16V19H18V21H20V3H18Z",nVe="M6,13H18V11H6M3,6V8H21V6M10,18H14V16H10V18Z",rVe="M17.81,4.47C17.73,4.47 17.65,4.45 17.58,4.41C15.66,3.42 14,3 12,3C10.03,3 8.15,3.47 6.44,4.41C6.2,4.54 5.9,4.45 5.76,4.21C5.63,3.97 5.72,3.66 5.96,3.53C7.82,2.5 9.86,2 12,2C14.14,2 16,2.47 18.04,3.5C18.29,3.65 18.38,3.95 18.25,4.19C18.16,4.37 18,4.47 17.81,4.47M3.5,9.72C3.4,9.72 3.3,9.69 3.21,9.63C3,9.47 2.93,9.16 3.09,8.93C4.08,7.53 5.34,6.43 6.84,5.66C10,4.04 14,4.03 17.15,5.65C18.65,6.42 19.91,7.5 20.9,8.9C21.06,9.12 21,9.44 20.78,9.6C20.55,9.76 20.24,9.71 20.08,9.5C19.18,8.22 18.04,7.23 16.69,6.54C13.82,5.07 10.15,5.07 7.29,6.55C5.93,7.25 4.79,8.25 3.89,9.5C3.81,9.65 3.66,9.72 3.5,9.72M9.75,21.79C9.62,21.79 9.5,21.74 9.4,21.64C8.53,20.77 8.06,20.21 7.39,19C6.7,17.77 6.34,16.27 6.34,14.66C6.34,11.69 8.88,9.27 12,9.27C15.12,9.27 17.66,11.69 17.66,14.66A0.5,0.5 0 0,1 17.16,15.16A0.5,0.5 0 0,1 16.66,14.66C16.66,12.24 14.57,10.27 12,10.27C9.43,10.27 7.34,12.24 7.34,14.66C7.34,16.1 7.66,17.43 8.27,18.5C8.91,19.66 9.35,20.15 10.12,20.93C10.31,21.13
15610.31,21.44 10.12,21.64C10,21.74 9.88,21.79 9.75,21.79M16.92,19.94C15.73,19.94 14.68,19.64 13.82,19.05C12.33,18.04 11.44,16.4 11.44,14.66A0.5,0.5 0 0,1 11.94,14.16A0.5,0.5 0 0,1 12.44,14.66C12.44,16.07 13.16,17.4 14.38,18.22C15.09,18.7 15.92,18.93 16.92,18.93C17.16,18.93 17.56,18.9 17.96,18.83C18.23,18.78 18.5,18.96 18.54,19.24C18.59,19.5 18.41,19.77 18.13,19.82C17.56,19.93 17.06,19.94 16.92,19.94M14.91,22C14.87,22 14.82,22 14.78,22C13.19,21.54 12.15,20.95 11.06,19.88C9.66,18.5 8.89,16.64 8.89,14.66C8.89,13.04 10.27,11.72 11.97,11.72C13.67,11.72 15.05,13.04 15.05,14.66C15.05,15.73 16,16.6 17.13,16.6C18.28,16.6 19.21,15.73 19.21,14.66C19.21,10.89 15.96,7.83 11.96,7.83C9.12,7.83 6.5,9.41 5.35,11.86C4.96,12.67 4.76,13.62 4.76,14.66C4.76,15.44 4.83,16.67 5.43,18.27C5.53,18.53 5.4,18.82 5.14,18.91C4.88,19 4.59,18.87 4.5,18.62C4,17.31 3.77,16 3.77,14.66C3.77,13.46 4,12.37 4.45,11.42C5.78,8.63 8.73,6.82 11.96,6.82C16.5,6.82 20.21,10.33 20.21,14.65C20.21,16.27 18.83,17.59 17.13,17.59C15.43,17.59 14.05,16.27 14.05,14.65C14.05,13.58 13.12,12.71 11.97,12.71C10.82,12.71 9.89,13.58 9.89,14.65C9.89,16.36 10.55,17.96 11.76,19.16C12.71,20.1 13.62,20.62 15.03,21C15.3,21.08 15.45,21.36 15.38,21.62C15.33,21.85 15.12,22 14.91,22Z",iVe="M14.4,6L14,4H5V21H7V14H12.6L13,16H20V6H14.4Z",oVe="M12.36,6L12.76,8H18V14H14.64L14.24,12H7V6H12.36M14,4H5V21H7V14H12.6L13,16H20V6H14.4",sVe="M6,3A1,1 0 0,1 7,4V4.88C8.06,4.44 9.5,4 11,4C14,4 14,6 16,6C19,6 20,4 20,4V12C20,12 19,14 16,14C13,14 13,12 11,12C8,12 7,14 7,14V21H5V4A1,1 0 0,1 6,3Z",aVe="M20,18H4V8H20M20,6H12L10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6Z",lVe="M3,3H21V5H3V3M3,7H15V9H3V7M3,11H21V13H3V11M3,15H15V17H3V15M3,19H21V21H3V19Z",uVe="M7,13V11H21V13H7M7,19V17H21V19H7M7,7V5H21V7H7M3,8V5H2V4H4V8H3M2,17V16H5V20H2V19H4V18.5H3V17.5H4V17H2M4.25,10A0.75,0.75 0 0,1 5,10.75C5,10.95 4.92,11.14 4.79,11.27L3.12,13H5V14H2V13.08L4,11H2V10H4.25Z",cVe="M14,17H17L19,13V7H13V13H16M6,17H9L11,13V7H5V13H8L6,17Z",dVe="M17,12V3A1,1 0 0,0 16,2H3A1,1 0 0,0 2,3V17L6,13H16A1,1 0 0,0 17,12M21,6H19V15H6V17A1,1 0 0,0 7,18H18L22,22V7A1,1 0 0,0 21,6Z",kZ="M5,5H10V7H7V10H5V5M14,5H19V10H17V7H14V5M17,14H19V19H14V17H17V14M10,17V19H5V14H7V17H10Z",MZ="M14,14H19V16H16V19H14V14M5,14H10V19H8V16H5V14M8,5H10V10H5V8H8V5M19,8V10H14V5H16V8H19Z",fVe="M19.58,3H15V1H23V9H21V4.41L16.17,9.24C16.69,10.03 17,11 17,12C17,14.42 15.28,16.44 13,16.9V19H15V21H13V23H11V21H9V19H11V16.9C8.72,16.44 7,14.42 7,12C7,11 7.3,10.04 7.82,9.26L6.64,8.07L5.24,9.46L3.83,8.04L5.23,6.65L3,4.42V8H1V1H8V3H4.41L6.64,5.24L8.08,3.81L9.5,5.23L8.06,6.66L9.23,7.84C10,7.31 11,7 12,7C13,7 13.96,7.3 14.75,7.83L19.58,3M12,9A3,3 0 0,0 9,12A3,3 0 0,0 12,15A3,3 0 0,0 15,12A3,3 0 0,0 12,9Z",pVe="M20.11,3.89L22,2V7H17L19.08,4.92C18.55,4.23 17.64,3.66 16.36,3.19C15.08,2.72 13.63,2.5 12,2.5C10.38,2.5 8.92,2.72 7.64,3.19C6.36,3.66 5.45,4.23 4.92,4.92L7,7H2V2L3.89,3.89C4.64,3 5.74,2.31 7.2,1.78C8.65,1.25 10.25,1 12,1C13.75,1 15.35,1.25 16.8,1.78C18.26,2.31 19.36,3 20.11,3.89M19.73,16.27V16.45L19,21.7C18.92,22.08 18.76,22.39 18.5,22.64C18.23,22.89 17.91,23 17.53,23H10.73C10.36,23 10,22.86 9.7,22.55L4.73,17.63L5.53,16.83C5.75,16.61 6,16.5 6.33,16.5H6.56L10,17.25V6.5C10,6.11 10.13,5.76 10.43,5.46C10.73,5.16 11.08,5 11.5,5C11.89,5 12.24,5.16 12.54,5.46C12.84,5.76 13,6.11 13,6.5V12.5H13.78C13.88,12.5 14.05,12.55 14.3,12.61L18.84,14.86C19.44,15.14 19.73,15.61 19.73,16.27Z",hVe="M9.06,1.93C7.17,1.92 5.33,3.74 6.17,6H3A2,2 0 0,0 1,8V10A1,1 0 0,0 2,11H11V8H13V11H22A1,1 0 0,0 23,10V8A2,2 0 0,0 21,6H17.83C19,2.73 14.6,0.42 12.57,3.24L12,4L11.43,3.22C10.8,2.33 9.93,1.94 9.06,1.93M9,4C9.89,4 10.34,5.08 9.71,5.71C9.08,6.34 8,5.89 8,5A1,1 0 0,1 9,4M15,4C15.89,4 16.34,5.08 15.71,5.71C15.08,6.34 14,5.89 14,5A1,1 0 0,1 15,4M2,12V20A2,2 0 0,0 4,22H20A2,2 0 0,0 22,20V12H13V20H11V12H2Z",mVe="M22,12V20A2,2 0 0,1 20,22H4A2,2 0 0,1 2,20V12A1,1 0 0,1 1,11V8A2,2 0 0,1 3,6H6.17C6.06,5.69 6,5.35 6,5A3,3 0 0,1 9,2C10,2 10.88,2.5 11.43,3.24V3.23L12,4L12.57,3.23V3.24C13.12,2.5 14,2 15,2A3,3 0 0,1 18,5C18,5.35 17.94,5.69 17.83,6H21A2,2 0 0,1 23,8V11A1,1 0 0,1 22,12M4,20H11V12H4V20M20,20V12H13V20H20M9,4A1,1 0 0,0 8,5A1,1 0 0,0 9,6A1,1 0 0,0 10,5A1,1 0 0,0 9,4M15,4A1,1 0 0,0 14,5A1,1 0 0,0 15,6A1,1 0 0,0 16,5A1,1 0 0,0 15,4M3,8V10H11V8H3M13,8V10H21V8H13Z",vVe="M20 17Q20.86 17 21.45 17.6T22.03 19L14 22L7 20V11H8.95L16.22 13.69Q17 14 17 14.81 17 15.28 16.66 15.63T15.8 16H13L11.25 15.33L10.92 16.27L13 17H20M16 3.23Q17.06 2 18.7 2 20.06 2 21 3T22 5.3Q22 6.33 21 7.76T19.03 10.15 16 13Q13.92 11.11 12.94 10.15T10.97 7.76 10 5.3Q10 3.94 10.97 3T13.31 2Q14.91 2 16 3.23M.984 11H5V22H.984V11Z",gVe="M16 3.23C16.71 2.41 17.61 2 18.7 2C19.61 2 20.37 2.33 21 3C21.63 3.67 21.96 4.43 22 5.3C22 6 21.67 6.81 21 7.76S19.68 9.5 19.03 10.15C18.38 10.79 17.37 11.74 16 13C14.61 11.74 13.59 10.79 12.94 10.15S11.63 8.71 10.97 7.76C10.31 6.81 10 6 10 5.3C10 4.39 10.32 3.63 10.97 3C11.62 2.37 12.4 2.04 13.31 2C14.38 2 15.27 2.41 16 3.23M22 19V20L14 22.5L7 20.56V22H1V11H8.97L15.13 13.3C16.25 13.72 17 14.8 17 16H19C20.66 16 22 17.34 22 19M5 20V13H3V20H5M19.9 18.57C19.74 18.24 19.39 18 19 18H13.65C13.11 18 12.58 17.92 12.07 17.75L9.69 16.96L10.32 15.06L12.7 15.85C13 15.95 15 16 15 16C15 15.63 14.77 15.3 14.43 15.17L8.61 13H7V18.5L13.97 20.41L19.9 18.57Z",yVe="M11 6H14L17.29 2.7A1 1 0 0 1 18.71 2.7L21.29 5.29A1 1 0 0 1 21.29 6.7L19 9H11V11A1 1 0 0 1 10 12A1 1 0 0 1 9 11V8A2 2 0 0 1 11 6M5 11V15L2.71 17.29A1 1 0 0 0 2.71 18.7L5.29 21.29A1 1 0 0 0 6.71 21.29L11 17H15A1 1 0 0 0 16 16V15H17A1 1 0 0 0 18 14V13H19A1 1 0 0 0 20 12
156V11H13V12A2 2 0 0 1 11 14H9A2 2 0 0 1 7 12V9Z",bVe="M21.71 8.71C22.96 7.46 22.39 6 21.71 5.29L18.71 2.29C17.45 1.04 16 1.61 15.29 2.29L13.59 4H11C9.1 4 8 5 7.44 6.15L3 10.59V14.59L2.29 15.29C1.04 16.55 1.61 18 2.29 18.71L5.29 21.71C5.83 22.25 6.41 22.45 6.96 22.45C7.67 22.45 8.32 22.1 8.71 21.71L11.41 19H15C16.7 19 17.56 17.94 17.87 16.9C19 16.6 19.62 15.74 19.87 14.9C21.42 14.5 22 13.03 22 12V9H21.41L21.71 8.71M20 12C20 12.45 19.81 13 19 13L18 13L18 14C18 14.45 17.81 15 17 15L16 15L16 16C16 16.45 15.81 17 15 17H10.59L7.31 20.28C7 20.57 6.82 20.4 6.71 20.29L3.72 17.31C3.43 17 3.6 16.82 3.71 16.71L5 15.41V11.41L7 9.41V11C7 12.21 7.8 14 10 14S13 12.21 13 11H20V12M20.29 7.29L18.59 9H11V11C11 11.45 10.81 12 10 12S9 11.45 9 11V8C9 7.54 9.17 6 11 6H14.41L16.69 3.72C17 3.43 17.18 3.6 17.29 3.71L20.28 6.69C20.57 7 20.4 7.18 20.29 7.29Z",_Ve="M12,1C7,1 3,5 3,10V17A3,3 0 0,0 6,20H9V12H5V10A7,7 0 0,1 12,3A7,7 0 0,1 19,10V12H15V20H18A3,3 0 0,0 21,17V10C21,5 16.97,1 12,1Z",SVe="M12,1C7,1 3,5 3,10V17A3,3 0 0,0 6,20H9V12H5V10A7,7 0 0,1 12,3A7,7 0 0,1 19,10V12H15V20H19V21H12V23H18A3,3 0 0,0 21,20V10C21,5 16.97,1 12,1Z",EVe="M12,21.35L10.55,20.03C5.4,15.36 2,12.27 2,8.5C2,5.41 4.42,3 7.5,3C9.24,3 10.91,3.81 12,5.08C13.09,3.81 14.76,3 16.5,3C19.58,3 22,5.41 22,8.5C22,12.27 18.6,15.36 13.45,20.03L12,21.35Z",CVe="M12.1,18.55L12,18.65L11.89,18.55C7.14,14.24 4,11.39 4,8.5C4,6.5 5.5,5 7.5,5C9.04,5 10.54,6 11.07,7.36H12.93C13.46,6 14.96,5 16.5,5C18.5,5 20,6.5 20,8.5C20,11.39 16.86,14.24 12.1,18.55M16.5,3C14.76,3 13.09,3.81 12,5.08C10.91,3.81 9.24,3 7.5,3C4.42,3 2,5.41 2,8.5C2,12.27 5.4,15.36 10.55,20.03L12,21.35L13.45,20.03C18.6,15.36 22,12.27 22,8.5C22,5.41 19.58,3 16.5,3Z",wVe="M10,19H13V22H10V19M12,2C17.35,2.22 19.68,7.62 16.5,11.67C15.67,12.67 14.33,13.33 13.67,14.17C13,15 13,16 13,17H10C10,15.33 10,13.92 10.67,12.92C11.33,11.92 12.67,11.33 13.5,10.67C15.92,8.43 15.32,5.26 12,5A3,3 0 0,0 9,8H6A6,6 0 0,1 12,2Z",TVe="M15.07,11.25L14.17,12.17C13.45,12.89 13,13.5 13,15H11V14.5C11,13.39 11.45,12.39 12.17,11.67L13.41,10.41C13.78,10.05 14,9.55 14,9C14,7.89 13.1,7 12,7A2,2 0 0,0 10,9H8A4,4 0 0,1 12,5A4,4 0 0,1 16,9C16,9.88 15.64,10.67 15.07,11.25M13,19H11V17H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12C22,6.47 17.5,2 12,2Z",AVe="M13.5,8H12V13L16.28,15.54L17,14.33L13.5,12.25V8M13,3A9,9 0 0,0 4,12H1L4.96,16.03L9,12H6A7,7 0 0,1 13,5A7,7 0 0,1 20,12A7,7 0 0,1 13,19C11.07,19 9.32,18.21 8.06,16.94L6.64,18.36C8.27,20 10.5,21 13,21A9,9 0 0,0 22,12A9,9 0 0,0 13,3",IVe="M10,20V14H14V20H19V12H22L12,3L2,12H5V20H10Z",xVe="M7.5,2A2,2 0 0,1 9.5,4A2,2 0 0,1 7.5,6A2,2 0 0,1 5.5,4A2,2 0 0,1 7.5,2M6,7H9A2,2 0 0,1 11,9V14.5H9.5V22H5.5V14.5H4V9A2,2 0 0,1 6,7M16.5,2A2,2 0 0,1 18.5,4A2,2 0 0,1 16.5,6A2,2 0 0,1 14.5,4A2,2 0 0,1 16.5,2M15,22V16H12L14.59,8.41C14.84,7.59 15.6,7 16.5,7C17.4,7 18.16,7.59 18.41,8.41L21,16H18V22H15Z",LVe="M8.5,13.5L11,16.5L14.5,12L19,18H5M21,19V5C21,3.89 20.1,3 19,3H5A2,2 0 0,0 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19Z",RZ="M20,5A2,2 0 0,1 22,7V17A2,2 0 0,1 20,19H4C2.89,19 2,18.1 2,17V7C2,5.89 2.89,5 4,5H20M5,16H19L14.5,10L11,14.5L8.5,11.5L5,16Z",PZ="M12 8C8.44 8 6.65 12.31 9.17 14.83C11.69 17.35 16 15.56 16 12C16 9.79 14.21 8 12 8M5 15H3V19C3 20.1 3.9 21 5 21H9V19H5M5 5H9V3H5C3.9 3 3 3.9 3 5V9H5M19 3H15V5H19V9H21V5C21 3.9 20.1 3 19 3M19 19H15V21H19C20.1 21 21 20.1 21 19V15H19",kVe="M19,15H15A3,3 0 0,1 12,18A3,3 0 0,1 9,15H5V5H19M19,3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3Z",MVe="M16,10H14V7H10V10H8L12,14M19,15H15A3,3 0 0,1 12,18A3,3 0 0,1 9,15H5V5H19M19,3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5A2,2 0 0,0 19,3Z",RVe="M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",OZ="M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M11,17H13V11H11V17Z",PVe="M7 14C5.9 14 5 13.1 5 12S5.9 10 7 10 9 10.9 9 12 8.1 14 7 14M12.6 10C11.8 7.7 9.6 6 7 6C3.7 6 1 8.7 1 12S3.7 18 7 18C9.6 18 11.8 16.3 12.6 14H16V18H20V14H23V10H12.6Z",OVe="M19,10H17V8H19M19,13H17V11H19M16,10H14V8H16M16,13H14V11H16M16,17H8V15H16M7,10H5V8H7M7,13H5V11H7M8,11H10V13H8M8,8H10V10H8M11,11H13V13H11M11,8H13V10H11M20,5H4C2.89,5 2,5.89 2,7V17A2,2 0 0,0 4,19H20A2,2 0 0,0 22,17V7C22,5.89 21.1,5 20,5Z",$Ve="M4,6H20V16H4M20,18A2,2 0 0,0 22,16V6C22,4.89 21.1,4 20,4H4C2.89,4 2,4.89 2,6V16A2,2 0 0,0 4,18H0V20H24V18H20Z",NVe="M19.31 18.9C19.75 18.21 20 17.38 20 16.5C20 14 18 12 15.5 12S11 14 11 16.5 13 21 15.5 21C16.37 21 17.19 20.75 17.88 20.32L21 23.39L22.39 22L19.31 18.9M15.5 19C14.12 19 13 17.88 13 16.5S14.12 14 15.5 14 18 15.12 18 16.5 16.88 19 15.5 19M9.59 19.2L3 14.07L4.62 12.81L9 16.22C9 16.32 9 16.41 9 16.5C9 17.46 9.22 18.38 9.59 19.2M4.63 10.27L3 9L12 2L21 9L19.36 10.27L18.65 10.82C17.72 10.3 16.64 10 15.5 10C12.79 10 10.46 11.68 9.5 14.05L4.63 10.27Z",HVe="M11 15H6L13 1V9H18L11 23V15Z",RP="M19 3A2 2 0 0 1 21 5V19A2 2 0 0 1 19 21H5A2 2
1560 0 1 3 19V5A2 2 0 0 1 5 3H19M18.5 18.5V13.2A3.26 3.26 0 0 0 15.24 9.94C14.39 9.94 13.4 10.46 12.92 11.24V10.13H10.13V18.5H12.92V13.57C12.92 12.8 13.54 12.17 14.31 12.17A1.4 1.4 0 0 1 15.71 13.57V18.5H18.5M6.88 8.56A1.68 1.68 0 0 0 8.56 6.88C8.56 5.95 7.81 5.19 6.88 5.19A1.69 1.69 0 0 0 5.19 6.88C5.19 7.81 5.95 8.56 6.88 8.56M8.27 18.5V10.13H5.5V18.5H8.27Z",DVe="M11 15H17V17H11V15M9 7H7V9H9V7M11 13H17V11H11V13M11 9H17V7H11V9M9 11H7V13H9V11M21 5V19C21 20.1 20.1 21 19 21H5C3.9 21 3 20.1 3 19V5C3 3.9 3.9 3 5 3H19C20.1 3 21 3.9 21 5M19 5H5V19H19V5M9 15H7V17H9V15Z",VVe="M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z",$Z="M11 7L9.6 8.4L12.2 11H2V13H12.2L9.6 15.6L11 17L16 12L11 7M20 19H12V21H20C21.1 21 22 20.1 22 19V5C22 3.9 21.1 3 20 3H12V5H20V19Z",NZ="M14.08,15.59L16.67,13H7V11H16.67L14.08,8.41L15.5,7L20.5,12L15.5,17L14.08,15.59M19,3A2,2 0 0,1 21,5V9.67L19,7.67V5H5V19H19V16.33L21,14.33V19A2,2 0 0,1 19,21H5C3.89,21 3,20.1 3,19V5C3,3.89 3.89,3 5,3H19Z",HZ="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",FVe="M12,11.5A2.5,2.5 0 0,1 9.5,9A2.5,2.5 0 0,1 12,6.5A2.5,2.5 0 0,1 14.5,9A2.5,2.5 0 0,1 12,11.5M12,2A7,7 0 0,0 5,9C5,14.25 12,22 12,22C12,22 19,14.25 19,9A7,7 0 0,0 12,2Z",BVe="M20,19.88V22L18.2,20.83L13.41,11.83C14.07,11.62 14.67,11.28 15.19,10.83L20,19.88M15,7A3,3 0 0,1 12,10C11.85,10 11.71,10 11.56,10L5.8,20.83L4,22V19.88L9.79,9C8.69,7.77 8.79,5.87 10.03,4.76C10.57,4.28 11.27,4 12,4V2A1,1 0 0,1 13,3V4.18C14.2,4.6 15,5.73 15,7M13,7A1,1 0 0,0 12,6A1,1 0 0,0 11,7A1,1 0 0,0 12,8A1,1 0 0,0 13,7Z",PP="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",UVe="M7,10L12,15L17,10H7Z",jVe="M12,2A3,3 0 0,1 15,5V11A3,3 0 0,1 12,14A3,3 0 0,1 9,11V5A3,3 0 0,1 12,2M19,11C19,14.53 16.39,17.44 13,17.93V21H11V17.93C7.61,17.44 5,14.53 5,11H7A5,5 0 0,0 12,16A5,5 0 0,0 17,11H19Z",WVe="M17.3,11C17.3,14 14.76,16.1 12,16.1C9.24,16.1 6.7,14 6.7,11H5C5,14.41 7.72,17.23 11,17.72V21H13V17.72C16.28,17.23 19,14.41 19,11M10.8,4.9C10.8,4.24 11.34,3.7 12,3.7C12.66,3.7 13.2,4.24 13.2,4.9L13.19,11.1C13.19,11.76 12.66,12.3 12,12.3C11.34,12.3 10.8,11.76 10.8,11.1M12,14A3,3 0 0,0 15,11V5A3,3 0 0,0 12,2A3,3 0 0,0 9,5V11A3,3 0 0,0 12,14Z",GVe="M19,13H5V11H19V13Z",zVe="M18,4L20,8H17L15,4H13L15,8H12L10,4H8L10,8H7L5,4H4A2,2 0 0,0 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V4H18Z",qVe="M12 3V13.55C11.41 13.21 10.73 13 10 13C7.79 13 6 14.79 6 17S7.79 21 10 21 14 19.21 14 17V7H18V3H12Z",KVe="M2,5.27L3.28,4L20,20.72L18.73,22L9,12.27V17.5A3.5,3.5 0 0,1 5.5,21A3.5,3.5 0 0,1 2,17.5A3.5,3.5 0 0,1 5.5,14C6.04,14 6.55,14.12 7,14.34V10.27L2,5.27M21,3V15.5C21,16.5 20.57,17.42 19.88,18.06L14.94,13.12C15.58,12.43 16.5,12 17.5,12C18.04,12 18.55,12.12 19,12.34V6.47L10.17,8.35L7.66,5.84L21,3Z",XVe="M14,10H19.5L14,4.5V10M5,3H15L21,9V19A2,2 0 0,1 19,21H5C3.89,21 3,20.1 3,19V5C3,3.89 3.89,3 5,3M5,12V14H19V12H5M5,16V18H14V16H5Z",ZVe="M4,17V9H2V7H6V17H4M22,15C22,16.11 21.1,17 20,17H16V15H20V13H18V11H20V9H16V7H20A2,2 0 0,1 22,9V10.5A1.5,1.5 0 0,1 20.5,12A1.5,1.5 0 0,1 22,13.5V15M14,15V17H8V13C8,11.89 8.9,11 10,11H12V9H8V7H12A2,2 0 0,1 14,9V11C14,12.11 13.1,13 12,13H10V15H14Z",DZ="M11,9V8H12V9H11M21,1A2,2 0 0,1 23,3V17A2,2 0 0,1 21,19H7A2,2 0 0,1 5,17V3A2,2 0 0,1 7,1H21M3,5V21H19V23H3A2,2 0 0,1 1,21V5H3M15,9V11H17V13H19V11H21V9H19V7H17V9H15M14,12V8C14,6.89 13.1,6 12,6H11A2,2 0 0,0 9,8V9C9,10.11 9.9,11 11,11H12V12H9V14H12A2,2 0 0,0 14,12Z",YVe="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",JVe="M5.12,5L5.93,4H17.93L18.87,5M12,17.5L6.5,12H10V10H14V12H17.5L12,17.5M20.54,5.23L19.15,3.55C18.88,3.21 18.47,3 18,3H6C5.53,3 5.12,3.21 4.84,3.55L3.46,5.23C3.17,5.57 3,6 3,6.5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V6.5C21,6 20.83,5.57 20.54,5.23Z",QVe="M17.5,12A1.5,1.5 0 0,1 16,10.5A1.5,1.5 0 0,1 17.5,9A1.5,1.5 0 0,1 19,10.5A1.5,1.5 0 0,1 17.5,12M14.5,8A1.5,1.5 0 0,1 13,6.5A1.5,1.5 0 0,1 14.5,5A1.5,1.5 0 0,1 16,6.5A1.5,1.5 0 0,1 14.5,8M9.5,8A1.5,1.5 0 0,1 8,6.5A1.5,1.5 0 0,1 9.5,5A1.5,1.5 0 0,1 11,6.5A1.5,1.5 0 0,1 9.5,8M6.5,12A1.5,1.5 0 0,1 5,10.5A1.5,1.5 0 0,1 6.5,9A1.5,1.5 0 0,1 8,10.5A1.5,1.5 0 0,1 6.5,12M12,3A9,9 0 0,0 3,12A9,9 0 0,0 12,21A1.5,1.5 0 0,0 13.5,19.5C13.5,19.11 13.35,18.76 13.11,18.5C12.88,18.23 12.73,17.88 12.73,17.5A1.5,1.5 0 0,1 14.23,16H16A5,5 0 0,0 21,11C21,6.58 16.97,3 12,3Z",eFe="M2.53,19.65L3.87,20.21V11.18L1.44,17.04C1.03,18.06 1.5,19.23 2.53,19.65M22.03,15.95L17.07,4C16.76,3.23 16.03,2.77 15.26,2.75C15,2.75 14.73,2.79 14.47,2.9L7.1,5.95C6.35,6.26 5.89,7 5.87,7.75C5.86,8 5.91,8.29 6,8.55L11,20.5C11.29,21.28 12.03,21.74 12.81,21.75C13.07,21.75 13.33,21.7 13.58,21.6L20.94,18.55C21.96,18.13 22.45,16.96 22.03,15.95M7.88,8.75A1,1 0 0,1 6.88,7.75A1,1 0 0,1 7.88,6.75C8.43,6.75 8.88,7.2 8.88,7.75C8.88,8.3 8.43,8.75 7.88,8.75M5.88,19.75A2,2 0 0,0 7.88,21.75H9.33L5.88,13.41V19.75Z",tFe="M16.5,6V17.5A4,4 0 0,1 12.5,21.5A4,4 0 0,1 8.5,17.5V5A2.5,2.5 0 0,1 11,2.5A2.5,2.5 0 0,1 13.5,5V15.5A1,1 0 0,1 12.5,16.5A1,1 0 0,1 11.5,15.5V6H10V15.5A2.5,2.5 0 0,0 12.5,18A2.5,2.5 0 0,0 15,15.5V5A4,4 0 0,0 11,1A4,4 0 0,0 7,5V17.5A5.5,5.5 0 0,0 12.5,23A5.5,5.5 0 0,0 18,17.5V6H16.5Z",nFe="M14.53 1.45L13.45 2.53L15.05 4.13C15.27 4.38 15.38 4.67 15.38 5S15.27 5.64 15.05 5.86L11.5 9.47L12.5 10.55L16.13 6.94C16.66 6.35 16.92 5.7 16.92 5C16.92 4.3 16.66 3.64 16.13 3.05L14.53 1.45M10.55 3.47L9.47 4.55L10.08 5.11C10.3 5.33 10.41 5.63 10.41 6S10.3 6.67 10.08 6.89L9.47 7.45L10.55 8.53L11.11 7.92C11.64 7.33 11.91 6.69 11.91 6C11.9
1561 5.28 11.64 4.63 11.11 4.03L10.55 3.47M21 5.06C20.31 5.06 19.67 5.33 19.08 5.86L13.45 11.5L14.53 12.5L20.11 6.94C20.36 6.69 20.66 6.56 21 6.56S21.64 6.69 21.89 6.94L22.5 7.55L23.53 6.47L22.97 5.86C22.38 5.33 21.72 5.06 21 5.06M7 8L2 22L16 17L7 8M19 11.06C18.3 11.06 17.66 11.33 17.06 11.86L15.47 13.45L16.55 14.53L18.14 12.94C18.39 12.69 18.67 12.56 19 12.56C19.33 12.56 19.63 12.69 19.88 12.94L21.5 14.53L22.55 13.5L20.95 11.86C20.36 11.33 19.7 11.06 19 11.06Z",VZ="M14,19H18V5H14M6,19H10V5H6V19Z",FZ="M15,16H13V8H15M11,16H9V8H11M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",OP="M13,16V8H15V16H13M9,16V8H11V16H9M12,2A10,10 0 0,1 22,12A10,10 0 0,1 12,22A10,10 0 0,1 2,12A10,10 0 0,1 12,2M12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20A8,8 0 0,0 20,12A8,8 0 0,0 12,4Z",rFe="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",iFe="M14.06,9L15,9.94L5.92,19H5V18.08L14.06,9M17.66,3C17.41,3 17.15,3.1 16.96,3.29L15.13,5.12L18.88,8.87L20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18.17,3.09 17.92,3 17.66,3M14.06,6.19L3,17.25V21H6.75L17.81,9.94L14.06,6.19Z",oFe="M6.62,10.79C8.06,13.62 10.38,15.94 13.21,17.38L15.41,15.18C15.69,14.9 16.08,14.82 16.43,14.93C17.55,15.3 18.75,15.5 20,15.5A1,1 0 0,1 21,16.5V20A1,1 0 0,1 20,21A17,17 0 0,1 3,4A1,1 0 0,1 4,3H7.5A1,1 0 0,1 8.5,4C8.5,5.25 8.7,6.45 9.07,7.57C9.18,7.92 9.1,8.31 8.82,8.59L6.62,10.79Z",qA="M8,5.14V19.14L19,12.14L8,5.14Z",BZ="M10,16.5V7.5L16,12M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",kE="M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20,12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M10,16.5L16,12L10,7.5V16.5Z",sFe="M14 10H3V12H14V10M14 6H3V8H14V6M3 16H10V14H3V16M21.5 11.5L23 13L16 20L11.5 15.5L13 14L16 17L21.5 11.5Z",aFe="M3 16H10V14H3M18 14V10H16V14H12V16H16V20H18V16H22V14M14 6H3V8H14M14 10H3V12H14V10Z",UZ="M19,13H13V19H11V13H5V11H11V5H13V11H19V13Z",lFe="M19,11H15V15H13V11H9V9H13V5H15V9H19M20,2H8A2,2 0 0,0 6,4V16A2,2 0 0,0 8,18H20A2,2 0 0,0 22,16V4A2,2 0 0,0 20,2M4,6H2V20A2,2 0 0,0 4,22H18V20H4V6Z",uFe="M17,13H13V17H11V13H7V11H11V7H13V11H17M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",cFe="M5.41,21L6.12,17H2.12L2.47,15H6.47L7.53,9H3.53L3.88,7H7.88L8.59,3H10.59L9.88,7H15.88L16.59,3H18.59L17.88,7H21.88L21.53,9H17.53L16.47,15H20.47L20.12,17H16.12L15.41,21H13.41L14.12,17H8.12L7.41,21H5.41M9.53,9L8.47,15H14.47L15.53,9H9.53Z",dFe="M2,3H10A2,2 0 0,1 12,1A2,2 0 0,1 14,3H22V5H21V16H15.25L17,22H15L13.25,16H10.75L9,22H7L8.75,16H3V5H2V3M5,5V14H19V5H5Z",jZ="M19,12C19,15.86 15.86,19 12,19C8.14,19 5,15.86 5,12C5,8.14 8.14,5 12,5C15.86,5 19,8.14 19,12Z",fFe="M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z",$P="M12,5V1L7,6L12,11V7A6,6 0 0,1 18,13A6,6 0 0,1 12,19A6,6 0 0,1 6,13H4A8,8 0 0,0 12,21A8,8 0 0,0 20,13A8,8 0 0,0 12,5Z",NP="M12.5,3C17.15,3 21.08,6.03 22.47,10.22L20.1,11C19.05,7.81 16.04,5.5 12.5,5.5C10.54,5.5 8.77,6.22 7.38,7.38L10,10H3V3L5.6,5.6C7.45,4 9.85,3 12.5,3M10,12V22H8V14H6V12H10M18,14V20C18,21.11 17.11,22 16,22H14A2,2 0 0,1 12,20V14A2,2 0 0,1 14,12H16C17.11,12 18,12.9 18,14M14,14V20H16V14H14Z",pFe="M13.13 22.19L11.5 18.36C13.07 17.78 14.54 17 15.9 16.09L13.13 22.19M5.64 12.5L1.81 10.87L7.91 8.1C7 9.46 6.22 10.93 5.64 12.5M21.61 2.39C21.61 2.39 16.66 .269 11 5.93C8.81 8.12 7.5 10.53 6.65 12.64C6.37 13.39 6.56 14.21 7.11 14.77L9.24 16.89C9.79 17.45 10.61 17.63 11.36 17.35C13.5 16.53 15.88 15.19 18.07 13C23.73 7.34 21.61 2.39 21.61 2.39M14.54 9.46C13.76 8.68
15613.76 7.41 14.54 6.63S16.59 5.85 17.37 6.63C18.14 7.41 18.15 8.68 17.37 9.46C16.59 10.24 15.32 10.24 14.54 9.46M8.88 16.53L7.47 15.12L8.88 16.53M6.24 22L9.88 18.36C9.54 18.27 9.21 18.12 8.91 17.91L4.83 22H6.24M2 22H3.41L8.18 17.24L6.76 15.83L2 20.59V22M2 19.17L6.09 15.09C5.88 14.79 5.73 14.47 5.64 14.12L2 17.76V19.17Z",hFe="M13.13 22.19L11.5 18.36C13.07 17.78 14.54 17 15.9 16.09L13.13 22.19M5.64 12.5L1.81 10.87L7.91 8.1C7 9.46 6.22 10.93 5.64 12.5M19.22 4C19.5 4 19.75 4 19.96 4.05C20.13 5.44 19.94 8.3 16.66 11.58C14.96 13.29 12.93 14.6 10.65 15.47L8.5 13.37C9.42 11.06 10.73 9.03 12.42 7.34C15.18 4.58 17.64 4 19.22 4M19.22 2C17.24 2 14.24 2.69 11 5.93C8.81 8.12 7.5 10.53 6.65 12.64C6.37 13.39 6.56 14.21 7.11 14.77L9.24 16.89C9.62 17.27 10.13 17.5 10.66 17.5C10.89 17.5 11.13 17.44 11.36 17.35C13.5 16.53 15.88 15.19 18.07 13C23.73 7.34 21.61 2.39 21.61 2.39S20.7 2 19.22 2M14.54 9.46C13.76 8.68 13.76 7.41 14.54 6.63S16.59 5.85 17.37 6.63C18.14 7.41 18.15 8.68 17.37 9.46C16.59 10.24 15.32 10.24 14.54 9.46M8.88 16.53L7.47 15.12L8.88 16.53M6.24 22L9.88 18.36C9.54 18.27 9.21 18.12 8.91 17.91L4.83 22H6.24M2 22H3.41L8.18 17.24L6.76 15.83L2 20.59V22M2 19.17L6.09 15.09C5.88 14.79 5.73 14.47 5.64 14.12L2 17.76V19.17Z",mFe="M3,5V21H9V19.5H7V18H9V16.5H5V15H9V13.5H7V12H9V10.5H5V9H9V5H10.5V9H12V7H13.5V9H15V5H16.5V9H18V7H19.5V9H21V3H5A2,2 0 0,0 3,5M6,7A1,1 0 0,1 5,6A1,1 0 0,1 6,5A1,1 0 0,1 7,6A1,1 0 0,1 6,7Z",vFe="M12,3L1,9L12,15L21,10.09V17H23V9M5,13.18V17.18L12,21L19,17.18V13.18L12,17L5,13.18Z",gFe="M6 9H8V15H6V9M16 9H18V15H16V9M21 3C22.1 3 23 3.9 23 5V19C23 20.1 22.1 21 21 21H3C1.9 21 1 20.1 1 19V5C1 3.9 1.9 3 3 3H21M5 7C4.4 7 4 7.4 4 8V16C4 16.6 4.4 17 5 17H9C9.6 17 10 16.6 10 16V8C10 7.4 9.6 7 9 7H5M15 7C14.4 7 14 7.4 14 8V16C14 16.6 14.4 17 15 17H19C19.6 17 20 16.6 20 16V8C20 7.4 19.6 7 19 7H15M12 11C12.6 11 13 10.6 13 10C13 9.4 12.6 9 12 9C11.4 9 11 9.4 11 10C11 10.6 11.4 11 12 11M12 15C12.6 15 13 14.6 13 14C13 13.4 12.6 13 12 13C11.4 13 11 13.4 11 14C11 14.6 11.4 15 12 15Z",yFe="M17.8,20C17.4,21.2 16.3,22 15,22H5C3.3,22 2,20.7 2,19V18H5L14.2,18C14.6,19.2 15.7,20 17,20H17.8M19,2C20.7,2 22,3.3 22,5V6H20V5C20,4.4 19.6,4 19,4C18.4,4 18,4.4 18,5V18H17C16.4,18 16,17.6 16,17V16H5V5C5,3.3 6.3,2 8,2H19M8,6V8H15V6H8M8,10V12H14V10H8Z",bFe="M2,21L23,12L2,3V10L17,12L2,14V21Z",_Fe="M4 6.03L11.5 9.25L4 8.25L4 6.03M11.5 14.75L4 17.97V15.75L11.5 14.75M2 3L2 10L17 12L2 14L2 21L23 12L2 3Z",SFe="M11,13.5V21.5H3V13.5H11M12,2L17.5,11H6.5L12,2M17.5,13C20,13 22,15 22,17.5C22,20 20,22 17.5,22C15,22 13,20 13,17.5C13,15 15,13 17.5,13Z",EFe="M21,12L14,5V9C7,10 4,15 3,20C5.5,16.5 9,14.9 14,14.9V19L21,12Z",CFe="M18,16.08C17.24,16.08 16.56,16.38 16.04,16.85L8.91,12.7C8.96,12.47 9,12.24 9,12C9,11.76 8.96,11.53 8.91,11.3L15.96,7.19C16.5,7.69 17.21,8 18,8A3,3 0 0,0 21,5A3,3 0 0,0 18,2A3,3 0 0,0 15,5C15,5.24 15.04,5.47 15.09,5.7L8.04,9.81C7.5,9.31 6.79,9 6,9A3,3 0 0,0 3,12A3,3 0 0,0 6,15C6.79,15 7.5,14.69 8.04,14.19L15.16,18.34C15.11,18.55 15.08,18.77 15.08,19C15.08,20.61 16.39,21.91 18,21.91C19.61,21.91 20.92,20.61 20.92,19A2.92,2.92 0 0,0 18,16.08Z",wFe="M18 16.08C17.24 16.08 16.56 16.38 16.04 16.85L8.91 12.7C8.96 12.47 9 12.24 9 12S8.96 11.53 8.91 11.3L15.96 7.19C16.5 7.69 17.21 8 18 8C19.66 8 21 6.66 21 5S19.66 2 18 2 15 3.34 15 5C15 5.24 15.04 5.47 15.09 5.7L8.04 9.81C7.5 9.31 6.79 9 6 9C4.34 9 3 10.34 3 12S4.34 15 6 15C6.79 15 7.5 14.69 8.04 14.19L15.16 18.34C15.11 18.55 15.08 18.77 15.08 19C15.08 20.61 16.39 21.91 18 21.91S20.92 20.61 20.92 19C20.92 17.39 19.61 16.08 18 16.08M18 4C18.55 4 19 4.45 19 5S18.55 6 18 6 17 5.55 17 5 17.45 4 18 4M6 13C5.45 13 5 12.55 5 12S5.45 11 6 11 7 11.45 7 12 6.55 13 6 13M18 20C17.45 20 17 19.55 17 19S17.45 18 18 18 19 18.45 19 19 18.55 20 18 20Z",TFe="M21,11C21,16.55 17.16,21.74 12,23C6.84,21.74 3,16.55 3,11V5L12,1L21,5V11M12,21C15.75,20 19,15.54 19,11.22V6.3L12,3.18L5,6.3V11.22C5,15.54 8.25,20 12,21M11,7H13V13H11V7M11,15H13V17H11V15Z",AFe="M10,17L6,13L7.41,11.59L10,14.17L16.59,7.58L18,9M12,1L3,5V11C3,16.55 6.84,21.74 12,23C17.16,21.74 21,16.55 21,11V5L12,1Z",IFe="M3,13H15V11H3M3,6V8H21V6M3,18H9V16H3V18Z",xFe="M12,17.27L18.18,21L16.54,13.97L22,9.24L14.81,8.62L12,2L9.19,8.62L2,9.24L7.45,13.97L5.82,21L12,17.27Z",LFe="M12,15.39L8.24,17.66L9.23,13.38L5.91,10.5L10.29,10.13L12,6.09L13.71,10.13L18.09,10.5L14.77,13.38L15.76,17.66M22,9.24L14.81,8.63L12,2L9.19,8.63L2,9.24L7.45,13.97L5.82,21L12,17.27L18.18,21L16.54,13.97L22,9.24Z",kFe="M18,18H6V6H18V18Z",MFe="M12,18H6V14H12M21,14V12L20,7H4L3,12V14H4V20H14V14H18V20H20V14M20,4H4V6H20V4Z",RFe="M9,3L5,7H8V14H10V7H13M16,17V10H14V17H11L15,21L19,17H16Z",PFe="M5.5,7A1.5,1.5 0 0,1 4,5.5A1.5,1.5 0 0,1 5.5,4A1.5,1.5 0 0,1 7,5.5A1.5,1.5 0 0,1 5.5,7M21.41,11.58L12.41,2.58C12.05,2.22 11.55,2 11,2H4C2.89,2 2,2.89 2,4V11C2,11.55 2.22,12.05 2.59,12.41L11.58,21.41C11.95,21.77 12.45,22 13,22C13.55,22 14.05,21.77 14.41,21.41L21.41,14.41C21.78,14.05 22,13.55 22,13C22,12.44 21.77,11.94 21.41,11.58Z",OFe="M21,17H3V5H21M21,3H3A2,2 0 0,0 1,5V17A2,2 0 0,0 3,19H8V21H16V19H21A2,2 0 0,0 23,17V5A2,2 0 0,0 21,3Z",$Fe="M14,17H7V15H14M17,13H7V11H17M17,9H7V7H17M19,3H5C3.89,3 3,3.89 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V5C21,3.89 20.1,3 19,3Z",NFe="M17,21L14.25,18L15.41,16.84L17,18.43L20.59,14.84L21.75,16.25M12.8,21H5C3.89,21 3,20.1 3,19V5C3,3.89 3.89,3 5,3H19A2,2 0 0,1 21,5V12.8C20.12,12.29 19.09,12 18,12L17,12.08V11H7V13H14.69C13.07,14.07 12,15.91 12,18C12,19.09 12.29,20.12 12.8,21M12,15H7V17H12M17,7H7V9H17",HFe="M4,5H20V7H4V5M4,9H20V11H4V9M4,13H20V15H4V13M4,17H14V19H4
156V17Z",DFe="M19,15H23V3H19M15,3H6C5.17,3 4.46,3.5 4.16,4.22L1.14,11.27C1.05,11.5 1,11.74 1,12V14A2,2 0 0,0 3,16H9.31L8.36,20.57C8.34,20.67 8.33,20.77 8.33,20.88C8.33,21.3 8.5,21.67 8.77,21.94L9.83,23L16.41,16.41C16.78,16.05 17,15.55 17,15V5C17,3.89 16.1,3 15,3Z",VFe="M23,10C23,8.89 22.1,8 21,8H14.68L15.64,3.43C15.66,3.33 15.67,3.22 15.67,3.11C15.67,2.7 15.5,2.32 15.23,2.05L14.17,1L7.59,7.58C7.22,7.95 7,8.45 7,9V19A2,2 0 0,0 9,21H18C18.83,21 19.54,20.5 19.84,19.78L22.86,12.73C22.95,12.5 23,12.26 23,12V10M1,21H5V9H1V21Z",FFe="M12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4A8,8 0 0,1 20,12A8,8 0 0,1 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2M16.24,7.76C15.07,6.58 13.53,6 12,6V12L7.76,16.24C10.1,18.58 13.9,18.58 16.24,16.24C18.59,13.9 18.59,10.1 16.24,7.76Z",BFe="M19.03 7.39L20.45 5.97C20 5.46 19.55 5 19.04 4.56L17.62 6C16.07 4.74 14.12 4 12 4C7.03 4 3 8.03 3 13S7.03 22 12 22C17 22 21 17.97 21 13C21 10.88 20.26 8.93 19.03 7.39M13 14H11V7H13V14M15 1H9V3H15V1Z",UFe="M3 4L1.75 5.27L4.5 8.03C3.55 9.45 3 11.16 3 13C3 17.97 7.03 22 12 22C13.84 22 15.55 21.45 17 20.5L19.5 23L20.75 21.73L13.04 14L3 4M15 1H9V3H15M21 13C21 14.83 20.45 16.53 19.5 17.94L13 11.45V7H11V9.45L7.05 5.5C8.47 4.55 10.17 4 12 4C14.12 4 16.07 4.74 17.62 5.97L19.04 4.55L20.45 5.97L19.03 7.39C20.26 8.93 21 10.88 21 13Z",jFe="M12,20A7,7 0 0,1 5,13A7,7 0 0,1 12,6A7,7 0 0,1 19,13A7,7 0 0,1 12,20M19.03,7.39L20.45,5.97C20,5.46 19.55,5 19.04,4.56L17.62,6C16.07,4.74 14.12,4 12,4A9,9 0 0,0 3,13A9,9 0 0,0 12,22C17,22 21,17.97 21,13C21,10.88 20.26,8.93 19.03,7.39M11,14H13V8H11M15,1H9V3H15V1Z",WFe="M6,2H18V8H18V8L14,12L18,16V16H18V22H6V16H6V16L10,12L6,8V8H6V2M16,16.5L12,12.5L8,16.5V20H16V16.5M12,11.5L16,7.5V4H8V7.5L12,11.5M10,6H14V6.75L12,8.75L10,6.75V6Z",GFe="M18 22H6V16L10 12L6 8V2H18V8L14 12L18 16M8 7.5L12 11.5L16 7.5V4H8M12 12.5L8 16.5V20H16V16.5M14 18H10V17.2L12 15.2L14 17.2Z",zFe="M12.87,15.07L10.33,12.56L10.36,12.53C12.1,10.59 13.34,8.36 14.07,6H17V4H10V2H8V4H1V6H12.17C11.5,7.92 10.44,9.75 9,11.35C8.07,10.32 7.3,9.19 6.69,8H4.69C5.42,9.63 6.42,11.17 7.67,12.56L2.58,17.58L4,19L9,14L12.11,17.11L12.87,15.07M18.5,10H16.5L12,22H14L15.12,19H19.87L21,22H23L18.5,10M15.88,17L17.5,12.67L19.12,17H15.88Z",qFe="M11 1H3C1.9 1 1 1.9 1 3V15L4 12H9V11C9 8.8 10.79 7 13 7V3C13 1.9 12.1 1 11 1M11 4L9.5 4C9.16 5.19 8.54 6.3 7.68 7.26L7.66 7.28L8.92 8.53L8.55 9.54L7 8L4.5 10.5L3.81 9.77L6.34 7.28C5.72 6.59 5.22 5.82 4.86 5H5.85C6.16 5.6 6.54 6.17 7 6.68C7.72 5.88 8.24 4.97 8.57 4L3 4V3H6.5V2H7.5V3H11V4M21 9H13C11.9 9 11 9.9 11 11V18C11 19.1 11.9 20 13 20H20L23 23V11C23 9.9 22.1 9 21 9M19.63 19L18.78 16.75H15.22L14.38 19H12.88L16.25 10H17.75L21.13 19H19.63M17 12L18.22 15.25H15.79L17 12Z",KFe="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M9,8H11V17H9V8M13,8H15V17H13V8Z",XFe="M9,3V4H4V6H5V19A2,2 0 0,0 7,21H17A2,2 0 0,0 19,19V6H20V4H15V3H9M7,6H17V19H7V6M9,8V17H11V8H9M13,8V17H15V8H13Z",ZFe="M18 2C17.1 2 16 3 16 4H8C8 3 6.9 2 6 2H2V11C2 12 3 13 4 13H6.2C6.6 15 7.9 16.7 11 17V19.08C8 19.54 8 22 8 22H16C16 22 16 19.54 13 19.08V17C16.1 16.7 17.4 15 17.8 13H20C21 13 22 12 22 11V2H18M6 11H4V4H6V11M20 11H18V4H20V11Z",YFe="M3,17V19H9V17H3M3,5V7H13V5H3M13,21V19H21V17H13V15H11V21H13M7,9V11H3V13H7V15H9V9H7M21,13V11H11V13H21M15,9H17V7H21V5H17V3H15V9Z",JFe="M12.5,8C9.85,8 7.45,9 5.6,10.6L2,7V16H11L7.38,12.38C8.77,11.22 10.54,10.5 12.5,10.5C16.04,10.5 19.05,12.81 20.1,16L22.47,15.22C21.08,11.03 17.15,8 12.5,8Z",QFe="M21,10.12H14.22L16.96,7.3C14.23,4.6 9.81,4.5 7.08,7.2C4.35,9.91 4.35,14.28 7.08,17C9.81,19.7 14.23,19.7 16.96,17C18.32,15.65 19,14.08 19,12.1H21C21,14.08 20.12,16.65 18.36,18.39C14.85,21.87 9.15,21.87 5.64,18.39C2.14,14.92 2.11,9.28 5.62,5.81C9.13,2.34 14.76,2.34 18.27,5.81L21,3V10.12M12.5,8V12.25L16,14.33L15.28,15.54L11,13V8H12.5Z",eBe="M9,16V10H5L12,3L19,10H15V16H9M5,20V18H19V20H5Z",tBe="M17,10.5V7A1,1 0 0,0 16,6H4A1,1 0 0,0 3,7V17A1,1 0 0,0 4,18H16A1,1 0 0,0 17,17V13.5L21,17.5V6.5L17,10.5Z",WZ="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z",GZ="M12,4L9.91,6.09L12,8.18M4.27,3L3,4.27L7.73,9H3V15H7L12,20V13.27L16.25,17.53C15.58,18.04 14.83,18.46 14,18.7V20.77C15.38,20.45 16.63,19.82 17.68,18.96L19.73,21L21,19.73L12,10.73M19,12C19,12.94 18.8,13.82 18.46,14.64L19.97,16.15C20.62,14.91 21,13.5 21,12C21,7.72 18,4.14 14,3.23V5.29C16.89,6.15 19,8.83 19,12M16.5,12C16.5,10.23 15.5,8.71 14,7.97V10.18L16.45,12.63C16.5,12.43 16.5,12.21 16.5,12Z",nBe="M22 12L20 13L19 14L18 13L17 16L16 13L15 21L14 13L13 15L12 13L11 17L10 13L9 22L8 13L7 19L6 13L5 14L4 13L2 12L4 11L5 10L6 11L7 5L8 11L9 2L10 11L11 7L12 11L13 9L14 11L15 3L16 11L17 8L18 11L19 10L20 11L22 12Z",rBe="M16.36,14C16.44,13.34 16.5,12.68 16.5,12C16.5,11.32 16.44,10.66 16.36,10H19.74C19.9,10.64 20,11.31 20,12C20,12.69 19.9,13.36 19.74,14M14.59,19.56C15.19,18.45 15.65,17.25 15.97,16H18.92C17.96,17.65 16.43,18.93 14.59,19.56M14.34,14H9.66C9.56,13.34 9.5,12.68 9.5,12C9.5,11.32 9.56,10.65 9.66,10H14.34C14.43,10.65 14.5,11.32 14.5,12C14.5,12.68 14.43,13.34 14.34,14M12,19.96C11.17,18.76 10.5,17.43 10.09,16H13.91C13.5,17.43 12.83,18.76 12,19.96M8,8H5.08C6.03,6.34 7.57,5.06 9.4,4.44C8.8,5.55 8.35,6.75 8,8M5.08,16H8C8.35,17.25 8.8,18.45 9.4,19.56C7.57,18.93 6.03,17.65 5.08,16M4.26,14C4.1,13.36 4,12.69 4,12C4,11.31 4.1,10.64 4.26,10H7.64C7.56,
15610.66 7.5,11.32 7.5,12C7.5,12.68 7.56,13.34 7.64,14M12,4.03C12.83,5.23 13.5,6.57 13.91,8H10.09C10.5,6.57 11.17,5.23 12,4.03M18.92,8H15.97C15.65,6.75 15.19,5.55 14.59,4.44C16.43,5.07 17.96,6.34 18.92,8M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",zZ="M13.46,12L19,17.54V19H17.54L12,13.46L6.46,19H5V17.54L10.54,12L5,6.46V5H6.46L12,10.54L17.54,5H19V6.46L13.46,12Z",iBe="M22.7,19L13.6,9.9C14.5,7.6 14,4.9 12.1,3C10.1,1 7.1,0.6 4.7,1.7L9,6L6,9L1.6,4.7C0.4,7.1 0.9,10.1 2.9,12.1C4.8,14 7.5,14.5 9.8,13.6L18.9,22.7C19.3,23.1 19.9,23.1 20.3,22.7L22.6,20.4C23.1,20 23.1,19.3 22.7,19Z";function HP(e){return function(t){return e==null?void 0:e[t]}}var qZ={"&":"&","<":"<",">":">",'"':""","'":"'"},KZ=HP(qZ);const XZ=KZ;function DP(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}var ZZ="[object Symbol]";function h1(e){return typeof e=="symbol"||ci(e)&&fo(e)==ZZ}var YZ=1/0,KA=Ri?Ri.prototype:void 0,XA=KA?KA.toString:void 0;function Lv(e){if(typeof e=="string")return e;if(Pi(e))return DP(e,Lv)+"";if(h1(e))return XA?XA.call(e):"";var t=e+"";return t=="0"&&1/e==-YZ?"-0":t}function cc(e){return e==null?"":Lv(e)}var VP=/[&<>"']/g,JZ=RegExp(VP.source);function oBe(e){return e=cc(e),e&&JZ.test(e)?e.replace(VP,XZ):e}var QZ={"&":"&","<":"<",">":">",""":'"',"'":"'"},eY=HP(QZ);const tY=eY;var FP=/&(?:amp|lt|gt|quot|#39);/g,nY=RegExp(FP.source);function sBe(e){return e=cc(e),e&&nY.test(e)?e.replace(FP,tY):e}function BP(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o}function rY(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:BP(e,t,n)}var iY="\\ud800-\\udfff",oY="\\u0300-\\u036f",sY="\\ufe20-\\ufe2f",aY="\\u20d0-\\u20ff",lY=oY+sY+aY,uY="\\ufe0e\\ufe0f",cY="\\u200d",dY=RegExp("["+cY+iY+lY+uY+"]");function ME(e){return dY.test(e)}var fY="[object RegExp]";function pY(e){return ci(e)&&fo(e)==fY}var ZA=ha&&ha.isRegExp,hY=ZA?a1(ZA):pY;const mY=hY;function UP(e){return function(t){return t==null?void 0:t[e]}}var vY=UP("length");const gY=vY;var jP="\\ud800-\\udfff",yY="\\u0300-\\u036f",bY="\\ufe20-\\ufe2f",_Y="\\u20d0-\\u20ff",SY=yY+bY+_Y,EY="\\ufe0e\\ufe0f",CY="["+jP+"]",y_="["+SY+"]",b_="\\ud83c[\\udffb-\\udfff]",wY="(?:"+y_+"|"+b_+")",WP="[^"+jP+"]",GP="(?:\\ud83c[\\udde6-\\uddff]){2}",zP="[\\ud800-\\udbff][\\udc00-\\udfff]",TY="\\u200d",qP=wY+"?",KP="["+EY+"]?",AY="(?:"+TY+"(?:"+[WP,GP,zP].join("|")+")"+KP+qP+")*",IY=KP+qP+AY,xY="(?:"+[WP+y_+"?",y_,GP,zP,CY].join("|")+")",YA=RegExp(b_+"(?="+b_+")|"+xY+IY,"g");function LY(e){for(var t=YA.lastIndex=0;YA.test(e);)++t;return t}function kY(e){return ME(e)?LY(e):gY(e)}function MY(e){return e.split("")}var XP="\\ud800-\\udfff",RY="\\u0300-\\u036f",PY="\\ufe20-\\ufe2f",OY="\\u20d0-\\u20ff",$Y=RY+PY+OY,NY="\\ufe0e\\ufe0f",HY="["+XP+"]",__="["+$Y+"]",S_="\\ud83c[\\udffb-\\udfff]",DY="(?:"+__+"|"+S_+")",ZP="[^"+XP+"]",YP="(?:\\ud83c[\\udde6-\\uddff]){2}",JP="[\\ud800-\\udbff][\\udc00-\\udfff]",VY="\\u200d",QP=DY+"?",eO="["+NY+"]?",FY="(?:"+VY+"(?:"+[ZP,YP,JP].join("|")+")"+eO+QP+")*",BY=eO+QP+FY,UY="(?:"+[ZP+__+"?",__,YP,JP,HY].join("|")+")",jY=RegExp(S_+"(?="+S_+")|"+UY+BY,"g");function WY(e){return e.match(jY)||[]}function GY(e){return ME(e)?WY(e):MY(e)}var zY=/\s/;function qY(e){for(var t=e.length;t--&&zY.test(e.charAt(t)););return t}var KY=/^\s+/;function XY(e){return e&&e.slice(0,qY(e)+1).replace(KY,"")}var JA=0/0,ZY=/^[-+]0x[0-9a-f]+$/i,YY=/^0b[01]+$/i,JY=/^0o[0-7]+$/i,QY=parseInt;function E_(e){if(typeof e=="number")return e;if(h1(e))return JA;if(ui(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ui(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=XY(e);var n=YY.test(e);return n||JY.test(e)?QY(e.slice(2),n?2:8):ZY.test(e)?JA:+e}var QA=1/0,eJ=17976931348623157e292;function tJ(e){if(!e)return e===0?e:0;if(e=E_(e),e===QA||e===-QA){var t=e<0?-1:1;return t*eJ}return e===e?e:0}function tO(e){var t=tJ(e),n=t%1;return t===t?n?t-n:t:0}var nJ=30,rJ="...",iJ=/\w*$/;function oJ(e,t){var n=nJ,r=rJ;if(ui(t)){var i="separator"in t?t.separator:i;
vendor: 1,312 bytes, line 156
156n="length"in t?tO(t.length):n,r="omission"in t?Lv(t.omission):r}e=cc(e);var o=e.length;if(ME(e)){var s=GY(e);o=s.length}if(n>=o)return e;var a=n-kY(r);if(a<1)return r;var l=s?rY(s,0,a).join(""):e.slice(0,a);if(i===void 0)return l+r;if(s&&(a+=l.length-a),mY(i)){if(e.slice(a).search(i)){var u,c=l;for(i.global||(i=RegExp(i.source,cc(iJ.exec(i))+"g")),i.lastIndex=0;u=i.exec(c);)var d=u.index;l=l.slice(0,d===void 0?a:d)}}else if(e.indexOf(Lv(i),a)!=a){var f=l.lastIndexOf(i);f>-1&&(l=l.slice(0,f))}return l+r}var sJ=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,aJ=/^\w*$/;function RE(e,t){if(Pi(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||h1(e)?!0:aJ.test(e)||!sJ.test(e)||t!=null&&e in Object(t)}var lJ="Expected a function";function PE(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(lJ);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],o=n.cache;if(o.has(i))return o.get(i);var s=e.apply(this,r);return n.cache=o.set(i,s)||o,s};return n.cache=new(PE.Cache||Ls),n}PE.Cache=Ls;var uJ=500;function cJ(e){var t=PE(e,function(r){return n.size===uJ&&n.clear(),r}),n=t.cache;return t}var dJ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,fJ=/\\(\\)?/g,pJ=cJ(function(e){var t=[];
156return e.charCodeAt(0)===46&&t.push(""),e.replace(dJ,function(n,r,i,o){t.push(i?o.replace(fJ,"$1"):r||n)}),t});const hJ=pJ;function m1(e,t){return Pi(e)?e:RE(e,t)?[e]:hJ(cc(e))}var mJ=1/0;function dc(e){if(typeof e=="string"||h1(e))return e;var t=e+"";return t=="0"&&1/e==-mJ?"-0":t}function OE(e,t){t=m1(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[dc(t[n++])];return n&&n==r?e:void 0}function vJ(e,t,n){var r=e==null?void 0:OE(e,t);return r===void 0?n:r}const Pe=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Ke=globalThis,us="10.73.0";function jo(){return Xc(Ke),Ke}function Xc(e){const t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||us,t[us]=t[us]||{}}function Zc(e,t,n=Ke){const r=n.__SENTRY__=n.__SENTRY__||{},i=r[us]=r[us]||{};return i[e]||(i[e]=t())}const $E=["debug","info","warn","error","log","assert","trace"],gJ="Sentry Logger ",kv={};function ho(e){if(!("console"in Ke))return e();const t=Ke.console,n={},r=Object.keys(kv);r.forEach(i=>{const o=kv[i];n[i]=t[i],t[i]=o});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function yJ(){HE().enabled=!0}function bJ(){HE().enabled=!1}function nO(){return HE().enabled}function _J(...e){NE("log",...e)}function SJ(...e){NE("warn",...e)}function EJ(...e){NE("error",...e)}function NE(e,...t){Pe&&nO()&&ho(()=>{Ke.console[e](`${gJ}[${e}]:`,...t)})}function HE(){return Pe?Zc("loggerSettings",()=>({enabled:!1})):{enabled:!1}}const X={enable:yJ,disable:bJ,isEnabled:nO,log:_J,warn:SJ,error:EJ},rO=50,ko="?",eI=/\(error: (.*)\)/,tI=/captureMessage|captureException/;function iO(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0,i=0)=>{const o=[],s=n.split(` 157`);for(let a=r;a<s.length;a++){let l=s[a];l.length>1024&&(l=l.slice(0,1024));const u=eI.test(l)?l.replace(eI,"$1"):l;if(!u.includes("Error: ")){for(const c of t){const d=c(u);if(d){o.push(d);break}}if(o.length>=rO+i)break}}return wJ(o.slice(i))}}function CJ(e){return Array.isArray(e)?iO(...e):e}function wJ(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(Ch(t).function||"")&&t.pop(),t.reverse(),tI.test(Ch(t).function||"")&&(t.pop(),tI.test(Ch(t).function||"")&&t.pop()),t.slice(0,rO).map(n=>({...n,filename:n.filename||Ch(t).filename,function:n.function||ko}))}function Ch(e){return e[e.length-1]||{}}const z0="<anonymous>";function _s(e){try{return!e||typeof e!="function"?z0:e.name||z0}catch{return z0}}function C_(e){const t=e.exception;if(t){const n=[];try{return t.values.forEach(r=>{r.stacktrace.frames&&n.push(...r.stacktrace.frames)}),n}catch{return}}}function TJ(e){let t=e!=null&&e.startsWith("file://")?e.slice(7):e;return t!=null&&t.match(/\/[A-Z]:/)&&(t=t.slice(1)),t}const Od={},nI={};function Ca(e,t){return Od[e]=Od[e]||[],Od[e].push(t),()=>{const n=Od[e];if(n){const r=n.indexOf(t);r!==-1&&n.splice(r,1)}}}function wa(e,t){if(!nI[e]){nI[e]=!0;try{t()}catch(n){Pe&&X.error(`Error while instrumenting ${e}`,n)}}}function Ai(e,t){const n=e&&Od[e];if(n)for(const r of n)try{r(t)}catch(i){Pe&&X.error(`Error while triggering instrumentation handler. 158Type: ${e} 159Name: ${_s(r)} 160Error:`,i)}}let q0=null;function oO(e){const t="error";Ca(t,e),wa(t,AJ)}function AJ(){q0=Ke.onerror,Ke.onerror=function(e,t,n,r,i){return Ai("error",{column:r,error:i,line:n,msg:e,url:t}),q0?q0.apply(this,arguments):!1},Ke.onerror.__SENTRY_INSTRUMENTED__=!0}let K0=null;function sO(e){const t="unhandledrejection";Ca(t,e),wa(t,IJ)}function IJ(){K0=Ke.onunhandledrejection,Ke.onunhandledrejection=function(e){return Ai("unhandledrejection",e),K0?K0.apply(this,arguments):!0},Ke.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const aO=Object.prototype.toString;function Wr(e){switch(aO.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return y1(e,Error)}}function Yc(e,t){return aO.call(e)===`[object ${t}]`}function lO(e){return Yc(e,"ErrorEvent")}function rI(e){return Yc(e,"DOMError")}function xJ(e){return Yc(e,"DOMException")}function Qi(e){return Yc(e,"String")}function v1(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}
160function Mo(e){return e===null||v1(e)||typeof e!="object"&&typeof e!="function"}function Fr(e){return Yc(e,"Object")}function Ii(e){return typeof e=="object"&&e!==null}function g1(e){return typeof Event<"u"&&y1(e,Event)}function LJ(e){return Yc(e,"RegExp")}function Wl(e){return!!(e!=null&&e.then&&typeof e.then=="function")}function y1(e,t){try{return e instanceof t}catch{return!1}}function DE(e){return typeof Request<"u"&&y1(e,Request)}function tr(e,t,n){if(!(t in e))return;const r=e[t];if(typeof r!="function")return;const i=n(r);typeof i=="function"&&uO(i,r);try{e[t]=i}catch{Pe&&X.log(`Failed to replace method "${t}" in object`,e)}}function zn(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{Pe&&X.log(`Failed to add non-enumerable property "${String(t)}" to object`,e)}}function uO(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,zn(e,"__sentry_original__",t)}catch{}}function VE(e){return e.__sentry_original__}function cO(e){if(Wr(e))return{message:e.message,name:e.name,stack:e.stack,...iI(e)};if(g1(e)){const{type:t,target:n,currentTarget:r,detail:i}=e;return{type:t,target:n,currentTarget:r,...i?{detail:i}:{},...iI(e)}}return e}function iI(e){return Ii(e)?Object.fromEntries(Object.entries(e)):{}}function kJ(e){const t=Object.keys(cO(e));return t.sort(),t[0]?t.join(", "):"[object has no keys]"}let au;function yp(e){if(au!==void 0)return au?au(e):e();const t=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),n=Ke;return t in n&&typeof n[t]=="function"?(au=n[t],au(e)):(au=null,e())}function cs(){return yp(()=>Math.random())}function Wo(){return yp(()=>Date.now())}const dO=Symbol.for("sentry.skipNormalization"),fO=Symbol.for("sentry.overrideNormalizationDepth");function MJ(e){zn(e,dO,!0)}function RJ(e,t){zn(e,fO,t)}function PJ(e){return!!e[dO]}function OJ(e){const t=e[fO];return typeof t=="number"?t:void 0}let w_;function pO(e){w_=e}function Fn(e,t=100,n=1/0){try{return T_("",e,t,n)}catch(r){return{ERROR:`**non-serializable** (${r})`}}}function hO(e,t=3,n=100*1024){const r=Fn(e,t);return HJ(r)>n?hO(e,t-1,n):r}function T_(e,t,n=1/0,r=1/0,i=DJ()){const[o,s]=i;if(t==null||["boolean","string"].includes(typeof t)||typeof t=="number"&&Number.isFinite(t))return t;const a=mO(e,t);if(!a.startsWith("[object "))return a;if(PJ(t))return t;const l=OJ(t),u=l!==void 0?l:n;if(u===0)return a.replace("object ","");if(o(t))return"[Circular ~]";const c=t;if(c&&typeof c.toJSON=="function")try{const h=c.toJSON();return T_("",h,u-1,r,i)}catch{}const d=Array.isArray(t)?[]:{};let f=0;const p=cO(t);for(const h in p){if(!Object.prototype.hasOwnProperty.call(p,h))continue;if(f>=r){d[h]="[MaxProperties ~]";break}const m=p[h];d[h]=T_(h,m,u-1,r,i),f++}return s(t),d}function mO(e,t){try{if(w_){const r=w_(t);if(r)return r}return typeof global<"u"&&t===global?"[Global]":typeof t=="number"&&!Number.isFinite(t)?`[${t}]`:typeof t=="function"?`[Function: ${_s(t)}]`:typeof t=="symbol"?`[${String(t)}]`:typeof t=="bigint"?`[BigInt: ${String(t)}]`:`[object ${$J(t)}]`}catch(n){return`**non-serializable** (${n})`}}function $J(e){const t=Object.getPrototypeOf(e);return t!=null&&t.constructor?t.constructor.name:"null prototype"}function NJ(e){return~-encodeURI(e).split(/%..|./).length}function HJ(e){return NJ(JSON.stringify(e))}function DJ(){const e=new WeakSet;function t(r){return e.has(r)?!0:(e.add(r),!1)}function n(r){e.delete(r)}return[t,n]}function ai(e,t="[unserializable]"){if(typeof e=="string")return e;try{return JSON.stringify(e)}catch{return typeof t=="function"?t(e):t}}function Ff(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function X0(e,t){let n=e;const r=n.length;if(r<=150)return n;t>r&&(t=r);let i=Math.max(t-60,0);i<5&&(i=0);let o=Math.min(i+140,r);return o>r-5&&(o=r),o===r&&(i=Math.max(o-140,0)),n=n.slice(i,o),i>0&&(n=`'{snip} ${n}`),o<r&&(n+=" {snip}"),n}function Mv(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;r<e.length;r++){const i=e[r];Mo(i)?n.push(String(i)):i instanceof Error?n.push(i.message?`${i.name}: ${i.message}`:i.name):n.push(mO(void 0,i))}return n.join(t)}function tf(e,t,n=!1){return Qi(e)?LJ(t)?t.test(e):Qi(t)?n?e===t:e.includes(t):typeof t=="function"?t(e):!1:!1}function xi(e,t=[],n=!1){for(const r of t)if(tf(e,r,n))return!0;return!1}function VJ(){const e=Ke;return e.crypto||e.msCrypto}let Z0;function FJ(){return cs()*16}function Gn(e=VJ()){try{if(e!=null&&e.randomUUID)return yp(()=>e.randomUUID()).replace(/-/g,"")}catch{}return Z0||(Z0="10000000100040008000"+1e11),Z0.replace(/[018]/g,t=>(t^(FJ()&15)>>t/4).toString(16))}function vO(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}function qa(e){const{message:t,event_id:n}=e;if(t)return t;const r=vO(e);return r?r.type&&r.value?`${r.type}: ${r.value}
160`:r.type||r.value||n||"<unknown>":n||"<unknown>"}function A_(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],o=i[0]=i[0]||{};o.value||(o.value=t||""),o.type||(o.type=n||"Error")}function Io(e,t){const n=vO(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const o={...i==null?void 0:i.data,...t.data};n.mechanism.data=o}}function BJ(e,t,n=5){if(t.lineno===void 0)return;const r=e.length,i=Math.max(Math.min(r-1,t.lineno-1),0);t.pre_context=e.slice(Math.max(0,i-n),i).map(s=>X0(s,0));const o=Math.min(r-1,i);t.context_line=X0(e[o],t.colno||0),t.post_context=e.slice(Math.min(i+1,r),i+1+n).map(s=>X0(s,0))}function oI(e){if(UJ(e))return!0;try{zn(e,"__sentry_captured__",!0)}catch{}return!1}function UJ(e){try{return e.__sentry_captured__}catch{}}const gO=1e3;function Gl(){return Wo()/gO}function jJ(){const{performance:e}=Ke;if(!(e!=null&&e.now)||!e.timeOrigin)return Gl;const t=e.timeOrigin;return()=>(t+yp(()=>e.now()))/gO}let sI;function Xt(){return(sI??(sI=jJ()))()}let Y0=null;function WJ(){var s;const{performance:e}=Ke;if(!(e!=null&&e.now))return;const t=3e5,n=yp(()=>e.now()),r=Wo(),i=e.timeOrigin;if(typeof i=="number"&&Math.abs(i+n-r)<t)return i;const o=(s=e.timing)==null?void 0:s.navigationStart;return typeof o=="number"&&Math.abs(o+n-r)<t?o:r-n}function Nn(){return Y0===null&&(Y0=WJ()),Y0}function GJ(e){const t=Xt(),n={sid:Gn(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>qJ(n)};return e&&fc(n,e),n}function fc(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||Xt(),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:Gn()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function zJ(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),fc(e,n)}function qJ(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 bp(e,t,n=2){if(!t||typeof t!="object"||n<=0)return t;if(e&&Object.keys(t).length===0)return e;const r={...e};for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=bp(r[i],t[i],n-1));return r}function Ro(){return Gn()}function ds(){return Gn().substring(16)}function yO(e){try{const t=Ke.WeakRef;if(typeof t=="function")return new t(e)}catch{}return e}function bO(e){if(e){if(typeof e=="object"&&"deref"in e&&typeof e.deref=="function")try{return e.deref()}catch{return}return e}}const I_="_sentrySpan";function Po(e,t){t?zn(e,I_,yO(t)):delete e[I_]}function pc(e){return bO(e[I_])}const KJ=100;class oo{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Ro(),sampleRand:cs()}}clone(){const t=new oo;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._attributes={...this._attributes},t._extra={...this._extra},t._contexts={...this._contexts},this._contexts.flags&&(t._contexts.flags={values:[...this._contexts.flags.values]}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t._lastEventId=this._lastEventId,t._conversationId=this._conversationId,Po(t,pc(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&&fc(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(t){return this._conversationId=t||void 0,this._notifyScopeListeners(),this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this.setTags({[t]:n})}setAttributes(t){return this._attributes={...this._attributes,...t},this._notifyScopeListeners(),this}setAttribute(t,n){return this.setAttributes({[t]:n})}removeAttribute(t){return t in this._attributes&&(delete this._attributes[t],this._notifyScopeListeners()),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t,r=n instanceof oo?n.getScopeData():Fr(n)?t:void 0,{tags:i,attributes:o,extra:s,user:a,contexts:l,level:u,fingerprint:c=[],propagationContext:d,conversationId:f}=r||{};return this._tags={...this._tags,...i},this._attributes={...this._attributes,...o},this._extra={...this._extra,...s},this._contexts={...this._contexts,...l},a&&Object.keys(a).length&&(this._user=a),u&&(this._level=u),c.length&&(this._fingerprint=c),d&&(this._propagationContext=d),f&&(this._conversationId=f),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,Po(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ro(),sampleRand:cs()}),this._notifyScopeListeners(),this}addBreadcrumb(t,n){var o;const r=typeof n=="number"?n:KJ;if(r<=0)return this;const i={timestamp:Gl(),...t,message:t.message?Ff(t.message,2048):t.message};return this._breadcrumbs.push(i),this._breadcrumbs.length>r&&(this._breadcrumbs=this._breadcrumbs.slice(-r),(o=this._client)==null||o.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:pc(this),conversationId:this._conversationId}}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata=bp(this._sdkProcessingMetadata,t,2),this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=(n==null?void 0:n.event_id)||Gn();if(!this._client)return Pe&&X.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=(r==null?void 0:r.event_id)||Gn();if(!this._client)return Pe&&X.warn("No client configured on scope - will not capture message!"),i;const o=(r==null?void 0:r.syntheticException)??new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:o,...r,event_id:i},this),i}
160captureEvent(t,n){const r=t.event_id||(n==null?void 0:n.event_id)||Gn();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(Pe&&X.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function XJ(){return Zc("defaultCurrentScope",()=>new oo)}function ZJ(){return Zc("defaultIsolationScope",()=>new oo)}const aI=e=>e instanceof Promise&&!e[_O],_O=Symbol("chained PromiseLike"),SO=(e,t,n)=>{const r=e.then(i=>(t(i),i),i=>{throw n(i),i});return aI(r)&&aI(e)?r:YJ(e,r)},YJ=(e,t)=>{if(!t)return e;let n=!1;for(const r in e){if(r in t)continue;n=!0;const i=e[r];typeof i=="function"?Object.defineProperty(t,r,{value:(...o)=>i.apply(e,o),enumerable:!0,configurable:!0,writable:!0}):t[r]=i}return n&&Object.assign(t,{[_O]:!0}),t};class JJ{constructor(t,n){let r;t?r=t:r=new oo;let i;n?i=n:i=new oo,this._stack=[{scope:r}],this._isolationScope=i}withScope(t){const n=this._pushScope();let r;try{r=t(n)}catch(i){throw this._popScope(),i}return Wl(r)?SO(r,()=>this._popScope(),()=>this._popScope()):(this._popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){const t=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:t}),t}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}function hc(){const e=jo(),t=Xc(e);return t.stack=t.stack||new JJ(XJ(),ZJ())}function QJ(e){return hc().withScope(e)}function eQ(e,t){const n=hc();return n.withScope(()=>(n.getStackTop().scope=e,t(e)))}function lI(e){return hc().withScope(()=>e(hc().getIsolationScope()))}function tQ(){return{withIsolationScope:lI,withScope:QJ,withSetScope:eQ,withSetIsolationScope:(e,t)=>lI(t),getCurrentScope:()=>hc().getScope(),getIsolationScope:()=>hc().getIsolationScope()}}function Ta(e){const t=Xc(e);return t.acs?t.acs:tQ()}function nQ(e){return typeof e=="object"&&e!=null&&!Array.isArray(e)&&Object.keys(e).includes("value")}function rQ(e,t){const{value:n,unit:r}=nQ(e)?e:{value:e,unit:void 0},i=iQ(n),o=r&&typeof r=="string"?{unit:r}:{};if(i)return{...i,...o};if(!t||t==="skip-undefined"&&n===void 0)return;let s="";try{s=JSON.stringify(n)??""}catch{}return{value:s,type:"string",...o}}function mc(e,t=!1){const n={};for(const[r,i]of Object.entries(e??{})){const o=rQ(i,t);o&&(n[r]=o)}return n}function uI(e){var n;if(!e)return 0;let t=0;for(const[r,i]of Object.entries(e)){t+=r.length*2,t+=i.type.length*2,t+=(((n=i.unit)==null?void 0:n.length)??0)*2;const o=i.value;Array.isArray(o)?t+=cI(o[0])*o.length:Mo(o)?t+=cI(o):t+=100}return t}function cI(e){return typeof e=="string"?e.length*2:typeof e=="boolean"?4:typeof e=="number"?8:0}function iQ(e){if(Array.isArray(e))return{value:e,type:"array"};const t=typeof e=="string"?"string":typeof e=="boolean"?"boolean":typeof e=="number"&&!Number.isNaN(e)?Number.isInteger(e)?"integer":"double":null;if(t)return{value:e,type:t}}let oQ;function sQ(){return oQ!==void 0}function nt(){const e=jo();return Ta(e).getCurrentScope()}function Zt(){const e=jo();return Ta(e).getIsolationScope()}function ll(){return Zc("globalScope",()=>new oo)}function pi(...e){const t=jo(),n=Ta(t);if(e.length===2){const[r,i]=e;return r?n.withSetScope(r,i):n.withScope(i)}return n.withScope(e[0])}function aQ(...e){const t=jo(),n=Ta(t);if(e.length===2){const[r,i]=e;return r?n.withSetIsolationScope(r,i):n.withIsolationScope(i)}return n.withIsolationScope(e[0])}function $e(){return nt().getClient()}function EO(e){const t=e.getPropagationContext(),{traceId:n,parentSpanId:r,propagationSpanId:i}=t,o={trace_id:n,span_id:i||ds()};return r&&(o.parent_span_id=r),o}const nr="sentry.source",b1="sentry.sample_rate",CO="sentry.previous_trace_sample_rate",pn="sentry.op",Ct="sentry.origin",lQ="sentry.status.message",Bf="sentry.idle_span_finish_reason",_p="sentry.measurement_unit",Sp="sentry.measurement_value",uQ="sentry.release",cQ="sentry.environment",dQ="sentry.sdk.integrations",fQ="user.id",pQ="user.email",hQ="user.ip_address",mQ="user.name",x_="sentry.custom_span_name",FE="sentry.profile_id",Aa="sentry.exclusive_time",vQ="http.request.method",gQ="sentry.link.type",yQ="gen_ai.conversation.id",wO=0,Ep=1,At=2;function TO(e){if(e<400&&e>=100)return{code:Ep};if(e>=400&&e<500)switch(e){case 401:return{code:At,message:"unauthenticated"};case 403:return{code:At,message:"permission_denied"};case 404:return{code:At,message:"not_found"};case 409:return{code:At,message:"already_exists"};case 413:return{code:At,message:"failed_precondition"};case 429:return{code:At,message:"resource_exhausted"};case 499:return{code:At,message:"cancelled"};default:return{code:At,message:"invalid_argument"}}if(e>=500&&e<600)switch(e){case 501:return{code:At,message:"unimplemented"};case 503:return{code:At,message:"unavailable"};case 504:return{code:At,message:"deadline_exceeded"};default:return{code:At,message:"internal_error"}}return{code:At,message:"internal_error"}}function Uf(e,t){e.setAttribute("http.response.status_code",t);const n=TO(t);n.message!=="unknown_error"&&e.setStatus(n)}const AO="_sentryScope",IO="_sentryIsolationScope",bQ=Symbol.for("sentry.otelSourceInference"),_Q=Symbol.for("sentry.otelSourceExplicitlySet"),SQ=Symbol.for("sentry.tracerProviderSpan");function vc(e,t,n){e&&(zn(e,IO,yO(n)),zn(e,AO,t))}function ul(e){const t=e;return{scope:t[AO],isolationScope:bO(t[IO])}}function dI(e){return e[bQ]===!0}function EQ(e){zn(e,_Q,!0)}function fI(e){return e[SQ]===!0}const Rv="sentry-",CQ=8192;function BE(e){const t=wQ(e);if(!t)return;const n=Object.entries(t).reduce((r,[i,o])=>{if(i.startsWith(Rv)){const s=i.slice(Rv.length);r[s]=o}return r},{});if(Object.keys(n).length>0)return n}function xO(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${Rv}${r}`]=i),n),{});return TQ(t)}function wQ(e){if(!(!e||!Qi(e)&&!Array.isArray(e)))return Array.isArray(e)?e.reduce((t,n)=>{const r=pI(n);return Object.entries(r).forEach(([i,o])=>{t[i]=o}),t},{}):pI(e)}function pI(e){return e.split(",").map(t=>{const n=t.indexOf("=");if(n===-1)return[];const r=t.slice(0,n),i=t.slice(n+1);return[r,i].map(o=>{try{return decodeURIComponent(o.trim())}catch{return}})}).reduce((t,[n,r])=>(n&&r&&(t[n]=r),t),{})}function TQ(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const o=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=i===0?o:`${t},${o}`;return s.length>CQ?(Pe&&X.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}const AQ=/^o(\d+)\./,IQ=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)((?:\[[:.%\w]+\]|[\w.-]+))(?::(\d+))?\/(.+)/;function xQ(e){return e==="http"||e==="https"}function Go(e,t=!1){const{host:n,path:r,pass:i,port:o,projectId:s,protocol:a,publicKey:l}=e;return`${a}://${l}${t&&i?`:${i}`:""}@${n}${o?`:${o}`:""}/${r&&`${r}/`}${s}`}function LO(e){const t=IQ.exec(e);if(!t){ho(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",o="",s="",a=""]=t.slice(1);let l="",u=a;const c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){const d=u.match(/^\d+/);
160d&&(u=d[0])}return kO({host:o,pass:i,path:l,projectId:u,port:s,protocol:n,publicKey:r})}function kO(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function LQ(e){if(!Pe)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(X.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?xQ(r)?t&&isNaN(parseInt(t,10))?(X.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(X.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(X.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function kQ(e){const t=e.match(AQ);return t==null?void 0:t[1]}function MO(e){const t=e.getOptions(),{host:n}=e.getDsn()||{};let r;return t.orgId?r=String(t.orgId):n&&(r=kQ(n)),r}function RO(e){const t=typeof e=="string"?LO(e):kO(e);if(!(!t||!LQ(t)))return t}function Cl(e){if(typeof e=="boolean")return Number(e);const t=typeof e=="string"?parseFloat(e):e;if(!(typeof t!="number"||isNaN(t)||t<0||t>1))return t}const PO=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function MQ(e){if(!e)return;const t=e.match(PO);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function OO(e,t){const n=MQ(e),r=BE(t);if(!(n!=null&&n.traceId))return{traceId:Ro(),sampleRand:cs()};const i=RQ(n,r);r&&(r.sample_rand=i.toString());const{traceId:o,parentSpanId:s,parentSampled:a}=n;return{traceId:o,parentSpanId:s,sampled:a,dsc:r||{},sampleRand:i}}function $O(e=Ro(),t=ds(),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function NO(e=Ro(),t=ds(),n){return`00-${e}-${t}-${n?"01":"00"}`}function RQ(e,t){const n=Cl(t==null?void 0:t.sample_rand);if(n!==void 0)return n;const r=Cl(t==null?void 0:t.sample_rate);return r&&(e==null?void 0:e.parentSampled)!==void 0?e.parentSampled?cs()*r:r+cs()*(1-r):cs()}function PQ(e,t){const n=MO(e);return t&&n&&t!==n?(X.log(`Won't continue trace because org IDs don't match (incoming baggage: ${t}, SDK options: ${n})`),!1):(e.getOptions().strictTraceContinuation||!1)&&(t&&!n||!t&&n)?(X.log(`Starting a new trace because strict trace continuation is enabled but one org ID is missing (incoming baggage: ${t}, Sentry client: ${n})`),!1):!0}const HO=0,_1=1;let hI=!1;function OQ(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:o,status:s,origin:a,links:l}=ct(e);return{parent_span_id:o,span_id:t,trace_id:n,data:r,op:i,status:s,origin:a,links:l}}function DO(e){const{spanId:t,traceId:n,isRemote:r}=e.spanContext(),i=r?t:ct(e).parent_span_id,o=ul(e).scope,s=r?(o==null?void 0:o.getPropagationContext().propagationSpanId)||ds():t;return{parent_span_id:i,span_id:s,trace_id:n}}function VO(e){const{traceId:t,spanId:n}=e.spanContext(),r=zo(e);return $O(t,n,r)}function $Q(e){const{traceId:t,spanId:n}=e.spanContext(),r=zo(e);return NO(t,n,r)}function FO(e){if(e&&e.length>0)return e.map(({context:{spanId:t,traceId:n,traceFlags:r,...i},attributes:o})=>({span_id:t,trace_id:n,sampled:r===_1,attributes:o,...i}))}function BO(e){if(e!=null&&e.length)return e.map(({context:{spanId:t,traceId:n,traceFlags:r},attributes:i})=>({span_id:t,trace_id:n,sampled:r===_1,attributes:i}))}function fs(e){return typeof e=="number"?mI(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?mI(e.getTime()):Xt()}function mI(e){return e>9999999999?e/1e3:e}function ct(e){if(GO(e))return e.getSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(WO(e)){const{attributes:r,startTime:i,name:o,endTime:s,status:a,links:l}=e;return{span_id:t,trace_id:n,data:r,description:o,parent_span_id:UO(e),start_timestamp:fs(i),timestamp:fs(s)||void 0,status:zO(a),op:r[pn],origin:r[Ct],links:FO(l)}}return{span_id:t,trace_id:n,start_timestamp:0,data:{}}}function Pv(e){if(GO(e))return e.getStreamedSpanJSON();const{spanId:t,traceId:n}=e.spanContext();if(WO(e)){const{attributes:r,startTime:i,name:o,endTime:s,status:a,links:l}=e;return{name:o,span_id:t,trace_id:n,parent_span_id:UO(e),start_timestamp:fs(i),end_timestamp:fs(s),is_segment:e===Ov(e),status:UE(a),attributes:qO(r,a),links:BO(l)}}return{span_id:t,trace_id:n,start_timestamp:0,name:"",end_timestamp:0,status:"ok",is_segment:e===Ov(e)}}function UO(e){var t;return"parentSpanId"in e?e.parentSpanId:"parentSpanContext"in e?(t=e.parentSpanContext)==null?void 0:t.spanId:void 0}function jO(e){var t;return{...e,attributes:mc(e.attributes),links:(t=e.links)==null?void 0:t.map(n=>({...n,attributes:mc(n.attributes)}))}}function WO(e){const t=e;return!!t.attributes&&!!t.startTime&&!!t.name&&!!t.endTime&&!!t.status}function GO(e){return typeof e.getSpanJSON=="function"}function zo(e){const{traceFlags:t}=e.spanContext();return t===_1}function zO(e){if(!(!e||e.code===wO))return e.code===Ep?"ok":e.message||"internal_error"}function UE(e){return!e||e.code===Ep||e.code===wO||e.message==="cancelled"?"ok":"error"}function qO(e,t){const n=UE(t)==="error"?t==null?void 0:t.message:void 0;return{...n&&{[lQ]:n},...e}}const cl="_sentryChildSpans",L_="_sentryRootSpan";function vm(e,t){const n=e[L_]||e;zn(t,L_,n),zo(e)&&(!e.isRecording()&&!n.isRecording()||(e[cl]?e[cl].add(t):zn(e,cl,new Set([t]))))}function NQ(e,t){e[cl]&&e[cl].delete(t)}function nf(e){const t=new Set;function n(r){if(!t.has(r)&&zo(r)){t.add(r);const i=r[cl]?Array.from(r[cl]):[];for(const o of i)n(o)}}return n(e),Array.from(t)}const En=Ov;function Ov(e){return e[L_]||e}function bn(){const e=jo(),t=Ta(e);return t.getActiveSpan?t.getActiveSpan():pc(nt())}function $v(){hI||(ho(()=>{console.warn("[Sentry] Returning null from `beforeSendSpan` is disallowed. To drop certain spans, configure the respective integrations directly or use `ignoreSpans`.")}),hI=!0)}function HQ(e,t){e.updateName(t),e.setAttributes({[nr]:"custom",[x_]:t})}let vI=!1;function KO(){if(vI)return;function e(){const t=bn(),n=t&&En(t);if(n){const r="internal_error";Pe&&X.log(`[Tracing] Root span: ${r} -> Global error occurred`),n.setStatus({code:At,message:r})}}vI=!0,oO(e),sO(e)}function Lr(e){var n;if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=e||((n=$e())==null?void 0:n.getOptions());return!!t&&(t.tracesSampleRate!=null||!!t.tracesSampler)}function gI(e){X.log(`Ignoring span ${e.op} - ${e.description} because it matches \`ignoreSpans\`.`)}function jf(e,t){if(!(t!=null&&t.length))return!1;for(const n of t){if(FQ(n)){if(e.description&&tf(e.description,n))return Pe&&gI(e),!0;continue}const r=!!n.attributes&&Object.keys(n.attributes).length>0;if(!n.name&&!n.op&&!r)continue;const i=n.name?e.description&&tf(e.description,n.name):!0,o=n.op?e.op&&tf(e.op,n.op):!0,s=n.attributes?Object.entries(n.attributes).every(([a,l])=>{var u;return DQ((u=e.attributes)==null?void 0:u[a],l)}):!0;if(i&&o&&s)return Pe&&gI(e),!0}return!1}function DQ(e,t){return typeof e=="string"&&(typeof t=="string"||t instanceof RegExp)?tf(e,t):Array.isArray(e)&&Array.isArray(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e===t}function VQ(e,t){const n=t.parent_span_id,r=t.span_id;if(n)for(const i of e)i.parent_span_id===r&&(i.parent_span_id=n)}function FQ(e){return typeof e=="string"||e instanceof RegExp}const XO=Symbol.for("sentry.nonRecordingSpan");class wl{constructor(t={}){this._traceId=t.traceId||Ro(),this._spanId=t.spanId||ds(),this.dropReason=t.dropReason,zn(this,XO,!0)}spanContext(){return{spanId:this._spanId,traceId:this._traceId,traceFlags:HO}}end(t){}setAttribute(t,n){return this}setAttributes(t){return this}setStatus(t){return this}updateName(t){return this}isRecording(){return!1}
160addEvent(t,n,r){return this}addLink(t){return this}addLinks(t){return this}recordException(t,n){}}function gc(e){return!!e&&e[XO]===!0}const Cp="production",ZO="_frozenDsc";function yI(e,t){zn(e,ZO,t)}function YO(e,t){const n=t.getOptions(),{publicKey:r}=t.getDsn()||{},i={environment:n.environment||Cp,release:n.release,public_key:r,trace_id:e,org_id:MO(t)};return t.emit("createDsc",i),i}function S1(e,t){const n=t.getPropagationContext();return n.dsc||YO(n.traceId,e)}function mo(e){var v;const t=$e();if(!t)return{};const n=En(e),r=ct(n),i=r.data,o=n.spanContext().traceState,s=(o==null?void 0:o.get("sentry.sample_rate"))??i[b1]??i[CO];function a(g){return(typeof s=="number"||typeof s=="string")&&(g.sample_rate=`${s}`),g}const l=n[ZO];if(l)return a(l);const u=gc(n),c=u&&n.dropReason==="ignored";if(u&&(!Lr(t.getOptions())||c)){const g=ul(n).scope;if(g){const y={...S1(t,g)};return c&&(y.sampled="false"),a(y)}}const d=o==null?void 0:o.get("sentry.dsc"),f=d&&BE(d);if(f)return a(f);const p=YO(e.spanContext().traceId,t),h=i[nr]??i["sentry.segment.name.source"],m=r.description;return h!=="url"&&m&&(p.transaction=m),Lr()&&(p.sampled=String(zo(n)),p.sample_rand=(o==null?void 0:o.get("sentry.sample_rand"))??((v=ul(n).scope)==null?void 0:v.getPropagationContext().sampleRand.toString())),a(p),t.emit("createDsc",p,n),p}function BQ(e){const t=mo(e);return xO(t)}function UQ(e){return zn(e,"_streamed",!0),e}function E1(e){return!!e&&typeof e=="function"&&"_streamed"in e&&!!e._streamed}function $i(e,t=[]){return[e,t]}function bI(e,t){const[n,r]=e;return[n,[...r,t]]}function Tl(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function k_(e,t){return Tl(e,(n,r)=>t.includes(r))}function Nv(e){const t=Xc(Ke);return t.encodePolyfill?t.encodePolyfill(e):new TextEncoder().encode(e)}function jQ(e){const t=Xc(Ke);return t.decodePolyfill?t.decodePolyfill(e):new TextDecoder().decode(e)}function Hv(e){const[t,n]=e;let r=JSON.stringify(t);function i(o){typeof r=="string"?r=typeof o=="string"?r+o:[Nv(r),o]:r.push(typeof o=="string"?Nv(o):o)}for(const o of n){const[s,a]=o;if(i(` 161${JSON.stringify(s)} 162`),typeof a=="string"||a instanceof Uint8Array)i(a);else{let l;try{l=JSON.stringify(a)}catch{l=JSON.stringify(Fn(a))}i(l)}}return typeof r=="string"?r:WQ(r)}function WQ(e){const t=e.reduce((i,o)=>i+o.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function GQ(e){let t=typeof e=="string"?Nv(e):e;function n(s){const a=t.subarray(0,s);return t=t.subarray(s+1),a}function r(){let s=t.indexOf(10);return s<0&&(s=t.length),JSON.parse(jQ(n(s)))}const i=r(),o=[];for(;t.length;){const s=r(),a=typeof s.length=="number"?s.length:void 0;o.push([s,a?n(a):r()])}return[i,o]}function zQ(e){return[{type:"span"},e]}function qQ(e){const t=typeof e.data=="string"?Nv(e.data):e.data;return[{type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType},t]}const JO={sessions:"session",event:"error",client_report:"internal",user_report:"default",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",raw_security:"security",log:"log_item",trace_metric:"metric"};function KQ(e){return e in JO}function _I(e){return KQ(e)?JO[e]:e}function wp(e){if(!(e!=null&&e.sdk))return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function QO(e,t,n,r){var o;const i=(o=e.sdkProcessingMetadata)==null?void 0:o.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date(Wo()).toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:Go(r)},...i&&{trace:i}}}function XQ(e,t){var r,i,o,s;if(!t)return e;const n=e.sdk||{};return e.sdk={...n,name:n.name||t.name,version:n.version||t.version,integrations:[...((r=e.sdk)==null?void 0:r.integrations)||[],...t.integrations||[]],packages:[...((i=e.sdk)==null?void 0:i.packages)||[],...t.packages||[]],settings:(o=e.sdk)!=null&&o.settings||t.settings?{...(s=e.sdk)==null?void 0:s.settings,...t.settings}:void 0},e}function ZQ(e,t,n,r){const i=wp(n),o={sent_at:new Date(Wo()).toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:Go(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return $i(o,[s])}function YQ(e,t,n,r){const i=wp(n),o=e.type&&e.type!=="replay_event"?e.type:"event";XQ(e,n==null?void 0:n.sdk);const s=QO(e,i,r,t);return delete e.sdkProcessingMetadata,$i(s,[[{type:o},e]])}function JQ(e,t){function n(p){return!!p.trace_id&&!!p.public_key}const r=mo(e[0]),i=t==null?void 0:t.getDsn(),o=t==null?void 0:t.getOptions().tunnel,s={sent_at:new Date(Wo()).toISOString(),...n(r)&&{trace:r},...!!o&&i&&{dsn:Go(i)}},{beforeSendSpan:a,ignoreSpans:l}=(t==null?void 0:t.getOptions())||{},u=l!=null&&l.length?e.filter(p=>{const h=ct(p);
162return!jf({description:h.description,op:h.op,attributes:h.data},l)}):e,c=e.length-u.length;c&&(t==null||t.recordDroppedEvent("before_send","span",c));const d=a?p=>{const h=ct(p),m=E1(a)?h:a(h);return m||($v(),h)}:ct,f=[];for(const p of u){const h=d(p);h&&f.push(zQ(h))}return $i(s,f)}function QQ(e){if(!Pe)return;const{description:t="< unknown name >",op:n="< unknown op >",parent_span_id:r}=ct(e),{spanId:i}=e.spanContext(),o=zo(e),s=En(e),a=s===e,l=`[Tracing] Starting ${o?"sampled":"unsampled"} ${a?"root ":""}span`,u=[`op: ${n}`,`name: ${t}`,`ID: ${i}`];if(r&&u.push(`parent ID: ${r}`),!a){const{op:c,description:d}=ct(s);u.push(`root ID: ${s.spanContext().spanId}`),c&&u.push(`root op: ${c}`),d&&u.push(`root description: ${d}`)}X.log(`${l} 163 ${u.join(` 164 `)}`)}function eee(e){if(!Pe)return;const{description:t="< unknown name >",op:n="< unknown op >"}=ct(e),{spanId:r}=e.spanContext(),o=En(e)===e,s=`[Tracing] Finishing "${n}" ${o?"root ":""}span "${t}" with ID ${r}`;X.log(s)}function jE(e,t,n,r=bn()){const i=r&&En(r);i&&(Pe&&X.log(`[Measurement] Setting measurement on root span: ${e} = ${t} ${n}`),i.addEvent(e,{[Sp]:t,[_p]:n}))}function SI(e){if(!e||e.length===0)return;const t={};return e.forEach(n=>{const r=n.attributes||{},i=r[_p],o=r[Sp];typeof i=="string"&&typeof o=="number"&&(t[n.name]={value:o,unit:i})}),t}function EI(){return Xc(jo()).segmentSpanCaptureStrategy}function Ni(e){return e.getOptions().traceLifecycle==="stream"}const CI=1e3;class C1{constructor(t={}){this._traceId=t.traceId||Ro(),this._spanId=t.spanId||ds(),this._startTime=t.startTimestamp||Xt(),this._links=t.links,this._attributes={},this.setAttributes({[Ct]:"manual",[pn]:t.op,...t.attributes}),this._name=t.name,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.endTimestamp&&(this._endTime=t.endTimestamp),this._events=[],this._isStandaloneSpan=t.isStandalone,this._endTime&&this._onSpanEnded()}addLink(t){return this._frozen?this:(this._links?this._links.push(t):this._links=[t],this)}addLinks(t){return this._frozen?this:(this._links?this._links.push(...t):this._links=t,this)}recordException(t,n){}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?_1:HO}}setAttribute(t,n){return this._frozen?this:(n===void 0?delete this._attributes[t]:this._attributes[t]=n,t===nr&&n!==void 0&&dI(this)&&EQ(this),this)}setAttributes(t){return Object.keys(t).forEach(n=>this.setAttribute(n,t[n])),this}updateStartTime(t){this._frozen||(this._startTime=fs(t))}setStatus(t){return this._frozen?this:(this._status=t,this)}updateName(t){return this._frozen?this:(this._name=t,dI(this)||this.setAttribute(nr,"custom"),this)}end(t){if(this._endTime){this._frozen=fI(this);return}this._endTime=fs(t),eee(this),this._onSpanEnded(),this._frozen=fI(this)}getSpanJSON(){return{data:this._attributes,description:this._name,op:this._attributes[pn],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:zO(this._status),timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Ct],profile_id:this._attributes[FE],exclusive_time:this._attributes[Aa],measurements:SI(this._events),is_segment:this._isStandaloneSpan&&En(this)===this||void 0,segment_id:this._isStandaloneSpan?En(this).spanContext().spanId:void 0,links:FO(this._links)}}getStreamedSpanJSON(){return{name:this._name??"",span_id:this._spanId,trace_id:this._traceId,parent_span_id:this._parentSpanId,start_timestamp:this._startTime,end_timestamp:this._endTime??this._startTime,is_segment:this._isStandaloneSpan||this===En(this),status:UE(this._status),attributes:qO(this._attributes,this._status),links:BO(this._links)}}isRecording(){return!this._endTime&&!!this._sampled}addEvent(t,n,r){if(this._frozen)return this;Pe&&X.log("[Tracing] Adding an event to span:",t);const i=wI(n)?n:r||Xt(),o=wI(n)?{}:n||{},s={name:t,time:fs(i),attributes:o};return this._events.push(s),this}isStandaloneSpan(){return!!this._isStandaloneSpan}
164_onSpanEnded(){const t=$e();t&&(t.emit("spanEnd",this),this._isStandaloneSpan||t.emit("afterSpanEnd",this));const n=En(this),r=this._isStandaloneSpan||this===n;if(this._isStandaloneSpan){this._sampled?nee(JQ([this],t)):(Pe&&X.log("[Tracing] Discarding standalone span because its trace was not chosen to be sampled."),t&&t.recordDroppedEvent("sample_rate","span"));return}if(!r){const s=EI();if(s){const a=ul(this).scope||nt();s.onChildSpanEnded(this,n,l=>this._convertSpanToTransaction(l),a)}return}if(t&&Ni(t)){t.emit("afterSegmentSpanEnd",this);return}const i=ul(this).scope||nt(),o=EI();if(o)o.onSegmentSpanEnded(s=>this._convertSpanToTransaction(s),i);else{const s=this._convertSpanToTransaction();s&&i.captureEvent(s)}}_convertSpanToTransaction(t={}){var d,f,p,h;if(!TI(ct(this)))return;this._name||(Pe&&X.warn("Transaction has no name, falling back to `<unlabeled transaction>`."),this._name="<unlabeled transaction>");const{scope:n,isolationScope:r}=ul(this),i=(d=n==null?void 0:n.getScopeData().sdkProcessingMetadata)==null?void 0:d.normalizedRequest;if(this._sampled!==!0)return;(f=t.onSpanCaptured)==null||f.call(t,this);const o=[];for(const m of nf(this)){if(m===this||tee(m)||(p=t.isSpanAlreadyCaptured)!=null&&p.call(t,m))continue;const v=ct(m);TI(v)&&((h=t.onSpanCaptured)==null||h.call(t,m),o.push(v))}const s=this._attributes[nr];delete this._attributes[x_];let a=!1;o.forEach(m=>{var v;delete m.data[x_],(v=m.op)!=null&&v.startsWith("gen_ai.")&&(a=!0)});const l={contexts:{trace:OQ(this)},spans:o.length>CI?o.sort((m,v)=>m.start_timestamp-v.start_timestamp).slice(0,CI):o,start_timestamp:this._startTime,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{capturedSpanScope:n,capturedSpanIsolationScope:r,dynamicSamplingContext:mo(this),hasGenAiSpans:a},request:i,...s&&{transaction_info:{source:s}}},u=SI(this._events);return u&&Object.keys(u).length&&(Pe&&X.log("[Measurements] Adding measurements to transaction event",JSON.stringify(u,void 0,2)),l.measurements=u),l}}function wI(e){return e&&typeof e=="number"||e instanceof Date||Array.isArray(e)}function TI(e){return!!e.start_timestamp&&!!e.timestamp&&!!e.span_id&&!!e.trace_id}function tee(e){return e instanceof C1&&e.isStandaloneSpan()}
164function nee(e){const t=$e();if(!t)return;const n=e[1];if(!n||n.length===0){t.recordDroppedEvent("before_send","span");return}t.sendEnvelope(e)}function WE(e,t,n=()=>{},r=()=>{}){let i;try{i=e()}catch(o){throw t(o),n(),o}return ree(i,t,n,r)}function ree(e,t,n,r){return Wl(e)?SO(e,i=>{n(),r(i)},i=>{t(i),n()}):(n(),r(e),e)}function iee(e,t,n){if(!Lr(e))return[!1];let r,i;typeof e.tracesSampler=="function"?(i=e.tracesSampler({...t,inheritOrSampleWith:a=>typeof t.parentSampleRate=="number"?t.parentSampleRate:typeof t.parentSampled=="boolean"?Number(t.parentSampled):a}),r=!0):t.parentSampled!==void 0?i=t.parentSampled:typeof e.tracesSampleRate<"u"&&(i=e.tracesSampleRate,r=!0);const o=Cl(i);if(o===void 0)return Pe&&X.warn(`[Tracing] Discarding root span because of invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(i)} of type ${JSON.stringify(typeof i)}.`),[!1];if(!o)return Pe&&X.log(`[Tracing] Discarding transaction because ${typeof e.tracesSampler=="function"?"tracesSampler returned 0 or false":"a negative sampling decision was inherited or tracesSampleRate is set to 0"}`),[!1,o,r];const s=n<o;return s||Pe&&X.log(`[Tracing] Discarding transaction because it's not included in the random sample (sampling rate = ${Number(i)})`),[s,o,r]}const M_="__SENTRY_SUPPRESS_TRACING__";function qo(e,t){const n=zl();if(n.startSpan)return n.startSpan(e,t);const r=KE(e),{forceTransaction:i,parentSpan:o,scope:s}=e,a=s==null?void 0:s.clone();return pi(a,()=>n6(o)(()=>{const u=nt(),c=XE(u,o),d=$e(),p=e.onlyIfParent&&!c?zE(u,d):qE({parentSpan:c,spanArguments:r,forceTransaction:i,scope:u});return(!w1(p)||!c)&&Po(u,p),WE(()=>t(p),()=>{const{status:h}=ct(p);p.isRecording()&&(!h||h==="ok")&&p.setStatus({code:At,message:"internal_error"})},()=>{p.end()})}))}function os(e,t){const n=zl();if(n.startSpanManual)return n.startSpanManual(e,t);const r=KE(e),{forceTransaction:i,parentSpan:o,scope:s}=e,a=s==null?void 0:s.clone();return pi(a,()=>n6(o)(()=>{const u=nt(),c=XE(u,o),f=e.onlyIfParent&&!c?zE(u,$e()):qE({parentSpan:c,spanArguments:r,forceTransaction:i,scope:u});return(!w1(f)||!c)&&Po(u,f),WE(()=>t(f,()=>f.end()),()=>{const{status:p}=ct(f);f.isRecording()&&(!p||p==="ok")&&f.setStatus({code:At,message:"internal_error"})})}))}function so(e){const t=zl();return t.startInactiveSpan?t.startInactiveSpan(e):oee(e)}function oee(e){const t=KE(e),{forceTransaction:n,parentSpan:r}=e;return(e.scope?o=>pi(e.scope,o):r!==void 0?o=>Tp(r,o):o=>o())(()=>{const o=nt(),s=XE(o,r),a=$e();return e.onlyIfParent&&!s?zE(o,a):qE({parentSpan:s,spanArguments:t,forceTransaction:n,scope:o})})}const see=(e,t)=>{const n=jo(),r=Ta(n);if(r.continueTrace)return r.continueTrace(e,t);const{sentryTrace:i,baggage:o}=e,s=$e(),a=BE(o);return s&&!PQ(s,a==null?void 0:a.org_id)?t6(t):pi(l=>{const u=OO(i,o);return l.setPropagationContext(u),Po(l,void 0),t()})};function Tp(e,t){const n=zl();return n.withActiveSpan?n.withActiveSpan(e,t):pi(r=>(Po(r,e||void 0),t(r)))}function e6(e){const t=zl();return t.suppressTracing?t.suppressTracing(e):pi(n=>{n.setSDKProcessingMetadata({[M_]:!0});const r=e();return n.setSDKProcessingMetadata({[M_]:void 0}),r})}function GE(e=nt()){const t=zl();return t.isTracingSuppressed?t.isTracingSuppressed(e):e.getScopeData().sdkProcessingMetadata[M_]===!0}function t6(e){const t=zl();return t.startNewTrace?t.startNewTrace(e):pi(n=>(n.setPropagationContext({traceId:Ro(),sampleRand:cs()}),Pe&&X.log(`Starting a new trace with id ${n.getPropagationContext().traceId}`),Tp(null,e)))}function zE(e,t){t==null||t.recordDroppedEvent("no_parent_span","span");const n=new wl({traceId:e.getPropagationContext().traceId});return vc(n,e,Zt()),n}function qE({parentSpan:e,spanArguments:t,forceTransaction:n,scope:r}){const i=Zt();if(!Lr()){const a={...i.getPropagationContext(),...r.getPropagationContext()},l=e?e.spanContext().traceId:a.traceId,u=new wl({traceId:l});return e&&!n&&vm(e,u),vc(u,r,i),u}const o=$e();if(lee(o,t)){GE(r)||o==null||o.recordDroppedEvent("ignored","span");const a=new wl({dropReason:"ignored",traceId:(e==null?void 0:e.spanContext().traceId)??r.getPropagationContext().traceId});return e&&!n&&vm(e,a),vc(a,r,i),a}let s;if(e&&!n)s=aee(e,r,t,i),vm(e,s);else if(e){const a=mo(e),{traceId:l,spanId:u}=e.spanContext(),c=zo(e);s=AI({traceId:l,parentSpanId:u,...t},r,i,c),yI(s,a)}else{const{traceId:a,dsc:l,parentSpanId:u,sampled:c}={...i.getPropagationContext(),...r.getPropagationContext()};s=AI({traceId:a,parentSpanId:u,...t},r,i,c),l&&yI(s,l)}return QQ(s),s}function KE(e){const n={isStandalone:(e.experimental||{}).standalone,...e};if(e.startTime){const r={...n};return r.startTimestamp=fs(e.startTime),delete r.startTime,r}return n}function zl(){const e=jo();return Ta(e)}function AI(e,t,n,r){var v;const i=$e(),o=(i==null?void 0:i.getOptions())||{},{name:s=""}=e,a={spanAttributes:{...e.attributes},spanName:s,parentSampled:r};i==null||i.emit("beforeSampling",a,{decision:!1});const l=a.parentSampled??r,u=a.spanAttributes,c=t.getPropagationContext(),d=GE(t),[f,p,h]=d?[!1]:iee(o,{name:s,parentSampled:l,attributes:u,normalizedRequest:n.getScopeData().sdkProcessingMetadata.normalizedRequest,parentSampleRate:Cl((v=c.dsc)==null?void 0:v.sample_rate)},c.sampleRand),m=new C1({...e,attributes:{[nr]:"custom",[b1]:p!==void 0&&h?p:void 0,...u},sampled:f});return!f&&i&&!d&&(Pe&&X.log("[Tracing] Discarding root span because its trace was not chosen to be sampled."),i.recordDroppedEvent("sample_rate",Ni(i)?"span":"transaction")),vc(m,t,n),i&&i.emit("spanStart",m),m}function aee(e,t,n,r){const{spanId:i,traceId:o}=e.spanContext(),s=GE(t),a=s?!1:zo(e),l=a?new C1({...n,parentSpanId:i,traceId:o,sampled:a}):new wl({traceId:o});vm(e,l),vc(l,t,r);const u=$e();return u&&(Ni(u)&&gc(l)&&(gc(e)&&e.dropReason?(l.dropReason=e.dropReason,u.recordDroppedEvent(e.dropReason,"span")):s||(l.dropReason="sample_rate",u.recordDroppedEvent("sample_rate","span"))),u.emit("spanStart",l),n.endTimestamp&&(u.emit("spanEnd",l),u.emit("afterSpanEnd",l))),l}function XE(e,t){if(t)return t;if(t===null)return;const n=pc(e);if(!n)return;const r=$e();return(r?r.getOptions():{}).parentSpanIsAlwaysRootSpan?En(n):n}function n6(e){return e!==void 0?t=>Tp(e,t):t=>t()}function lee(e,t){var r;const n=e==null?void 0:e.getOptions().ignoreSpans;
164return!e||!Ni(e)||!(n!=null&&n.length)?!1:jf({description:t.name||"",op:((r=t.attributes)==null?void 0:r[pn])||t.op,attributes:t.attributes},n)}function w1(e){return gc(e)&&e.dropReason==="ignored"}const gm={idleTimeout:1e3,finalTimeout:3e4,childSpanTimeout:15e3},uee="heartbeatFailed",cee="idleTimeout",dee="finalTimeout",fee="externalFinish";function r6(e,t={}){const n=new Map;let r=!1,i,o,s=fee,a=!t.disableAutoFinish;const l=[],{idleTimeout:u=gm.idleTimeout,finalTimeout:c=gm.finalTimeout,childSpanTimeout:d=gm.childSpanTimeout,beforeSpanEnd:f,trimIdleSpanEndTimestamp:p=!0}=t,h=$e(),m=nt();if(!h||!Lr()){const T=new wl({traceId:m.getPropagationContext().traceId});return vc(T,m,Zt()),T}const v=bn(),g=pee(e);g.end=new Proxy(g.end,{apply(T,A,L){if(f&&f(g),gc(A))return;const[x,...k]=L,M=x||Xt(),z=fs(M),P=nf(g).filter(V=>V!==g),H=ct(g);if(!P.length||!p)return w(z),Reflect.apply(T,A,[z,...k]);const q=h.getOptions().ignoreSpans,de=P==null?void 0:P.reduce((V,B)=>{const Y=ct(B);return!Y.timestamp||q&&jf({description:Y.description,op:Y.op,attributes:Y.data},q)?V:V?Math.max(V,Y.timestamp):Y.timestamp},void 0),se=H.start_timestamp,W=Math.min(se?se+c/1e3:1/0,Math.max(se||-1/0,Math.min(z,de||1/0)));return w(W),Reflect.apply(T,A,[W,...k])}});function y(){i&&(clearTimeout(i),i=void 0)}function _(){o&&(clearTimeout(o),o=void 0)}function b(T){y(),i=setTimeout(()=>{!r&&n.size===0&&a&&(s=cee,g.end(T))},u)}function S(T){_(),o=setTimeout(()=>{!r&&a&&(s=uee,g.end(T))},d)}function C(T){y(),n.set(T,!0);const A=Xt();S(A+d/1e3)}function E(T){if(n.has(T)&&n.delete(T),n.size===0){const A=Xt();b(A+u/1e3),_()}}function w(T){r=!0,n.clear(),l.forEach(P=>P()),Po(m,v);const A=ct(g),{start_timestamp:L}=A;if(!L)return;A.data[Bf]||g.setAttribute(Bf,s);const k=A.status;(!k||k==="unknown")&&g.setStatus({code:Ep}),X.log(`[Tracing] Idle span "${A.op}" finished`);const M=nf(g).filter(P=>P!==g);let z=0;M.forEach(P=>{P.isRecording()&&(P.setStatus({code:At,message:"cancelled"}),P.end(T),Pe&&X.log("[Tracing] Cancelling span since span ended early",JSON.stringify(P,void 0,2)));const H=ct(P),{timestamp:q=0,start_timestamp:de=0}=H,se=de<=T,W=(c+u)/1e3,V=q-de<=W;if(Pe){const B=JSON.stringify(P,void 0,2);se?V||X.log("[Tracing] Discarding span since it finished after idle span final timeout",B):X.log("[Tracing] Discarding span since it happened after idle span was finished",B)}(!V||!se)&&(NQ(g,P),z++)}),z>0&&g.setAttribute("sentry.idle_span_discarded_spans",z)}return l.push(h.on("spanStart",T=>{if(r||T===g||ct(T).timestamp||T instanceof C1&&T.isStandaloneSpan())return;nf(g).includes(T)&&C(T.spanContext().spanId)})),l.push(h.on("spanEnd",T=>{r||E(T.spanContext().spanId)})),l.push(h.on("idleSpanEnableAutoFinish",T=>{T===g&&(a=!0,b(),n.size&&S())})),t.disableAutoFinish||b(),setTimeout(()=>{r||(g.setStatus({code:At,message:"deadline_exceeded"}),s=dee,g.end())},c),g}function pee(e){const t=so(e);return Po(nt(),t),Pe&&X.log("[Tracing] Started span is an idle span"),t}function hee(e,t,n){let r,i,o;const s=n!=null&&n.maxWait?Math.max(n.maxWait,t):0,a=(n==null?void 0:n.setTimeoutImpl)||setTimeout;function l(){return u(),r=e(),r}function u(){i!==void 0&&clearTimeout(i),o!==void 0&&clearTimeout(o),i=o=void 0}function c(){return i!==void 0||o!==void 0?l():r}function d(){return i&&clearTimeout(i),i=a(l,t),s&&o===void 0&&(o=a(l,s)),r}return d.cancel=u,d.flush=c,d}const mee=["addListener","on","once","prependListener","prependOnceListener","addEventListener"],vee=["removeListener","off","removeEventListener"],i6=Symbol("SentryScopeBoundListeners");let Xu;function gee(e){return Xu!==void 0&&(e===Xu||e.listener===Xu)}function yee(e,t=nt()){const n=e;if(T1(n))return e;ZE(n);for(const r of mee)typeof n[r]=="function"&&(n[r]=_ee(n,n[r],t));for(const r of vee)typeof n[r]=="function"&&(n[r]=See(n,n[r]));return typeof n.removeAllListeners=="function"&&(n.removeAllListeners=Eee(n,n.removeAllListeners)),e}function bee(e,t){return function(...n){return pi(t,()=>e.apply(this,n))}}function o6(e){return typeof e=="function"}function _ee(e,t,n){return function(...r){const i=r[0],o=r[1],s=r.slice(2);if(!o6(o)||gee(o))return t.apply(this,r);const a=T1(e)||ZE(e);let l=a.get(i);l||(l=new WeakMap,a.set(i,l));let u=l.get(o);u||(u=bee(o,n),l.set(o,u));const c=Xu;Xu=u;try{return t.call(this,i,u,...s)}finally{Xu=c}}}function See(e,t){return function(...n){var a,l;const r=n[0],i=n[1],o=n.slice(2),s=o6(i)?(l=(a=T1(e))==null?void 0:a.get(r))==null?void 0:l.get(i):void 0;return s?t.call(this,r,s,...o):t.apply(this,n)}}function Eee(e,t){return function(...n){const r=T1(e);if(r)if(n.length===0)ZE(e);else{const i=n[0];r.delete(i)}return t.apply(this,n)}}function ZE(e){const t=new Map;return e[i6]=t,t}function T1(e){return e[i6]}function Cee(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:o}=t;wee(e,t),r&&Iee(e,r),xee(e,n),Tee(e,i),Aee(e,o)}function II(e,t){const{extra:n,tags:r,attributes:i,user:o,contexts:s,level:a,sdkProcessingMetadata:l,breadcrumbs:u,fingerprint:c,eventProcessors:d,attachments:f,propagationContext:p,transactionName:h,span:m}=t;vd(e,"extra",n),vd(e,"tags",r),vd(e,"attributes",i),vd(e,"user",o),vd(e,"contexts",s),e.sdkProcessingMetadata=bp(e.sdkProcessingMetadata,l,2),a&&(e.level=a),h&&(e.transactionName=h),m&&(e.span=m),u.length&&(e.breadcrumbs=[...e.breadcrumbs,...u]),c.length&&(e.fingerprint=[...e.fingerprint,...c]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function vd(e,t,n){e[t]=bp(e[t],n,1)}function Ap(e,t){const n=ll().getScopeData();return e&&II(n,e.getScopeData()),t&&II(n,t.getScopeData()),n}function wee(e,t){const{extra:n,tags:r,user:i,contexts:o,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(i).length&&(e.user={...i,...e.user}),Object.keys(o).length&&(e.contexts={...o,...e.contexts}),s&&(e.level=s),a&&e.type!=="transaction"&&(e.transaction=a)}function Tee(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function Aee(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function Iee(e,t){e.contexts={trace:DO(t),...e.contexts},e.sdkProcessingMetadata={dynamicSamplingContext:mo(t),...e.sdkProcessingMetadata};const n=En(t),r=ct(n).description;r&&!e.transaction&&e.type==="transaction"&&(e.transaction=r)}function xee(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint.length||delete e.fingerprint}function Lee(e){const t={},{response:n,profile:r,cloud_resource:i,culture:o,state:s}=e;if(n&&(n.status_code!=null&&(t["http.response.status_code"]=n.status_code),n.body_size!=null&&(t["http.response.body.size"]=n.body_size)),r&&(r.profile_id&&(t["sentry.profile_id"]=r.profile_id),r.profiler_id&&(t["sentry.profiler_id"]=r.profiler_id)),i)for(const[u,c]of Object.entries(i))c!=null&&(t[u]=c);o&&(o.locale&&(t["culture.locale"]=o.locale),o.timezone&&(t["culture.timezone"]=o.timezone)),s!=null&&s.state&&typeof s.state.type=="string"&&(t["state.type"]=s.state.type);const a=e.angular;if(a){const u=a.version;(typeof u=="string"||typeof u=="number")&&(t["angular.version"]=u)}const l=e.react;if(l){const u=l.version;(typeof u=="string"||typeof u=="number")&&(t["react.version"]=u)}return t}const s6="graphql.document",a6="http.url",kee="navigation.route.id",Mee="params",Ree="sentry.sdk.name",Pee="sentry.sdk.version",Oee="sentry.segment.id",YE="sentry.segment.name",$ee="sentry.trace_lifecycle",l6="sentry.transaction",ql="url.full",Nee="url.path",Hee="url.path.parameter",Dee="url.template";function Vee(e,t){var f;const n=Pv(e),r=Ov(e),i=Pv(r),{isolationScope:o,scope:s}=ul(e),a=Ap(o,s);Uee(n,i,t,a);const l=e.kind;t.emit("preprocessSpan",n,{spanKind:l}),n.is_segment&&(Fee(n,a),Bee(n,t),t.emit("processSegmentSpan",n)),t.emit("processSpan",n);const{beforeSendSpan:u}=t.getOptions(),c=u&&E1(u)?jee(n,u):n,d=(f=c.attributes)==null?void 0:f[nr];return n.is_segment&&d&&ma(c,{"sentry.segment.name.source":d}),{...jO(c),_segmentSpan:r}}function Fee(e,t){const n=Lee(t.contexts);ma(e,n)}function ma(e,t){const n=e.attributes??(e.attributes={});Object.entries(t).forEach(([r,i])=>{i!=null&&!(r in n)&&(n[r]=i)})}function Bee(e,t){const n=t.getIntegrationNames();n.length&&ma(e,{[dQ]:n})}function Uee(e,t,n,r){var a,l,u,c,d,f;const i=n.getSdkMetadata(),{release:o,environment:s}=n.getOptions();ma(e,{[$ee]:"stream",[YE]:t.name,[Oee]:t.span_id,[Ree]:(a=i==null?void 0:i.sdk)==null?void 0:a.name,[Pee]:(l=i==null?void 0:i.sdk)==null?void 0:l.version,[uQ]:o,[cQ]:s||Cp,[fQ]:(u=r.user)==null?void 0:u.id,[pQ]:(c=r.user)==null?void 0:c.email,[hQ]:(d=r.user)==null?void 0:d.ip_address,[mQ]:(f=r.user)==null?void 0:f.username,...r.attributes})}function jee(e,t){const n=t(e);return n||($v(),e)}const J0=0,xI=1,LI=2;function Ip(e){return new Wf(t=>{t(e)})}function u6(e){return new Wf((t,n)=>{n(e)})}class Wf{constructor(t){this._state=J0,this._handlers=[],this._runExecutor(t)}
164then(t,n){return new Wf((r,i)=>{this._handlers.push([!1,o=>{if(!t)r(o);else try{r(t(o))}catch(s){i(s)}},o=>{if(!n)i(o);else try{r(n(o))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new Wf((n,r)=>{let i,o;return this.then(s=>{o=!1,i=s,t&&t()},s=>{o=!0,i=s,t&&t()}).then(()=>{if(o){r(i);return}n(i)})})}_executeHandlers(){if(this._state===J0)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===xI&&n[1](this._value),this._state===LI&&n[2](this._value),n[0]=!0)})}_runExecutor(t){const n=(o,s)=>{if(this._state===J0){if(Wl(s)){s.then(r,i);return}this._state=o,this._value=s,this._executeHandlers()}},r=o=>{n(xI,o)},i=o=>{n(LI,o)};try{t(r,i)}catch(o){i(o)}}}function Wee(e,t,n,r=0){try{const i=R_(t,n,e,r);return Wl(i)?i:Ip(i)}catch(i){return u6(i)}}function R_(e,t,n,r){const i=n[r];if(!e||!i)return e;const o=i({...e},t);return Pe&&o===null&&X.log(`Event processor "${i.id||"?"}" dropped event`),Wl(o)?o.then(s=>R_(s,t,n,r+1)):R_(o,t,n,r+1)}let Ko,kI,MI,Hs;function c6(e){const t=Ke._sentryDebugIds,n=Ke._debugIds;if(!t&&!n)return{};const r=t?Object.keys(t):[],i=n?Object.keys(n):[];if(Hs&&r.length===kI&&i.length===MI)return Hs;kI=r.length,MI=i.length,Hs={},Ko||(Ko={});const o=(s,a)=>{for(const l of s){const u=a[l],c=Ko==null?void 0:Ko[l];if(c&&Hs&&u)Hs[c[0]]=u,Ko&&(Ko[l]=[c[0],u]);else if(u){const d=e(l);for(let f=d.length-1;f>=0;f--){const p=d[f],h=p==null?void 0:p.filename;if(h&&Hs&&Ko){Hs[h]=u,Ko[l]=[h,u];break}}}}};return t&&o(r,t),n&&o(i,n),Hs}function Gee(e,t){const n=c6(e);if(!n)return[];const r=[];for(const i of t){const o=TJ(i);o&&n[o]&&r.push({type:"sourcemap",code_file:i,debug_id:n[o]})}return r}function d6(e,t,n,r,i,o){const{normalizeDepth:s=3,normalizeMaxBreadth:a=1e3}=e,l={...t,event_id:t.event_id||n.event_id||Gn(),timestamp:t.timestamp||Gl()},u=n.integrations||e.integrations.map(g=>g.name);zee(l,e),Xee(l,u),i&&i.emit("applyFrameMetadata",t),t.type===void 0&&qee(l,e.stackParser);const c=Yee(r,n.captureContext);n.mechanism&&Io(l,n.mechanism);const d=i?i.getEventProcessors():[],f=Ap(o,c),p=[...n.attachments||[],...f.attachments];p.length&&(n.attachments=p),Cee(l,f);const h=[...d,...f.eventProcessors];return(n.data&&n.data.__sentry__===!0?Ip(l):Wee(h,l,n)).then(g=>(g&&Kee(g),typeof s=="number"&&s>0?Zee(g,s,a):g))}function zee(e,t){var a,l;const{environment:n,release:r,dist:i,maxValueLength:o}=t;e.environment=e.environment||n||Cp,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i);const s=e.request;s!=null&&s.url&&o&&(s.url=Ff(s.url,o)),o&&((l=(a=e.exception)==null?void 0:a.values)==null||l.forEach(u=>{u.value&&(u.value=Ff(u.value,o))}))}function qee(e,t){var r,i;const n=c6(t);(i=(r=e.exception)==null?void 0:r.values)==null||i.forEach(o=>{var s,a;(a=(s=o.stacktrace)==null?void 0:s.frames)==null||a.forEach(l=>{l.filename&&(l.debug_id=n[l.filename])})})}function Kee(e){var r,i;const t={};if((i=(r=e.exception)==null?void 0:r.values)==null||i.forEach(o=>{var s,a;(a=(s=o.stacktrace)==null?void 0:s.frames)==null||a.forEach(l=>{l.debug_id&&(l.abs_path?t[l.abs_path]=l.debug_id:l.filename&&(t[l.filename]=l.debug_id),delete l.debug_id)})}),Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.entries(t).forEach(([o,s])=>{n.push({type:"sourcemap",code_file:o,debug_id:s})})}function Xee(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function Zee(e,t,n){var i,o;if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(s=>({...s,...s.data&&{data:Fn(s.data,t,n)}}))},...e.user&&{user:Fn(e.user,t,n)},...e.contexts&&{contexts:Fn(e.contexts,t,n)},...e.extra&&{extra:Fn(e.extra,t,n)}};return(i=e.contexts)!=null&&i.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=Fn(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(s=>({...s,...s.data&&{data:Fn(s.data,t,n)}}))),(o=e.contexts)!=null&&o.flags&&r.contexts&&(r.contexts.flags=Fn(e.contexts.flags,3,n)),r}function Yee(e,t){if(!t)return e;const n=e?e.clone():new oo;return n.update(t),n}
164function Jee(e){if(e)return Qee(e)?{captureContext:e}:tte(e)?{captureContext:e}:e}function Qee(e){return e instanceof oo||typeof e=="function"}const ete=["user","level","extra","contexts","tags","fingerprint","propagationContext"];function tte(e){return Object.keys(e).some(t=>ete.includes(t))}function di(e,t){return nt().captureException(e,Jee(t))}function f6(e,t){const n=typeof t=="string"?t:void 0,r=typeof t!="string"?{captureContext:t}:void 0;return nt().captureMessage(e,n,r)}function Jc(e,t){return nt().captureEvent(e,t)}function p6(e,t){Zt().setContext(e,t)}function nte(e){Zt().setExtras(e)}function rte(e,t){Zt().setExtra(e,t)}function ite(e){Zt().setTags(e)}function ote(e,t){Zt().setTag(e,t)}function ste(e){Zt().setAttributes(e)}function ate(e,t){Zt().setAttribute(e,t)}function lte(e){Zt().setUser(e)}function ute(e){Zt().setConversationId(e)}function h6(){return Zt().lastEventId()}async function cte(e){const t=$e();return t?t.flush(e):(Pe&&X.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}
164async function dte(e){const t=$e();return t?t.close(e):(Pe&&X.warn("Cannot flush events and disable SDK. No client defined."),Promise.resolve(!1))}function fte(){return!!$e()}function m6(){const e=$e();return(e==null?void 0:e.getOptions().enabled)!==!1&&!!(e!=null&&e.getTransport())}function v6(e){Zt().addEventProcessor(e)}function P_(e){const t=Zt(),{user:n}=Ap(t,nt()),{userAgent:r}=Ke.navigator||{},i=GJ({user:n,...r&&{userAgent:r},...e}),o=t.getSession();return(o==null?void 0:o.status)==="ok"&&fc(o,{status:"exited"}),JE(),t.setSession(i),i}function JE(){const e=Zt(),n=nt().getSession()||e.getSession();n&&zJ(n),g6(),e.setSession()}function g6(){const e=Zt(),t=$e(),n=e.getSession();n&&t&&t.captureSession(n)}function ym(e=!1){if(e){JE();return}g6()}function A1(e){return typeof e=="object"&&typeof e.unref=="function"&&e.unref(),e}const pte="7";function y6(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function hte(e){return`${y6(e)}${e.projectId}/envelope/`}function mte(e,t){const n={sentry_version:pte};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client=`${t.name}/${t.version}`),new URLSearchParams(n).toString()}function b6(e,t,n){return t||`${hte(e)}?${mte(e,n)}`}function vte(e,t){const n=RO(e);if(!n)return"";const r=`${y6(n)}embed/error-page/`;let i=`dsn=${Go(n)}`;for(const o in t)if(o!=="dsn"&&o!=="onClose")if(o==="user"){const s=t.user;if(!s)continue;s.name&&(i+=`&name=${encodeURIComponent(s.name)}`),s.email&&(i+=`&email=${encodeURIComponent(s.email)}`)}else i+=`&${encodeURIComponent(o)}=${encodeURIComponent(t[o])}`;return`${r}?${i}`}const RI=[];function gte(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];
164i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.values(t)}function yte(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(i=>{i.isDefaultInstance=!0});let r;if(Array.isArray(n))r=[...t,...n];else if(typeof n=="function"){const i=n(t);r=Array.isArray(i)?i:[i]}else r=t;return gte(r)}function bte(e,t){const n={};return t.forEach(r=>{r!=null&&r.beforeSetup&&r.beforeSetup(e)}),t.forEach(r=>{r&&_6(e,r,n)}),n}function PI(e,t){for(const n of t)n!=null&&n.afterAllSetup&&n.afterAllSetup(e)}function _6(e,t,n){if(n[t.name]){Pe&&X.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,!RI.includes(t.name)&&typeof t.setupOnce=="function"&&(t.setupOnce(),RI.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,o)=>r(i,o,e))}if(typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((o,s)=>r(o,s,e),{id:t.name});e.addEventProcessor(i)}["processSpan","processSegmentSpan"].forEach(r=>{const i=t[r];typeof i=="function"&&e.on(r,o=>i.call(t,o,e))}),Pe&&X.log(`Integration installed: ${t.name}`)}
164function O_(e){const t=$e();if(!t){Pe&&X.warn(`Cannot add integration "${e.name}" because no SDK Client is available.`);return}t.addIntegration(e)}const _te="sentry.timestamp.sequence";let Q0=0,ey;function S6(e){const t=Math.floor(e*1e3);ey!==void 0&&t!==ey&&(Q0=0);const n=Q0;return Q0++,ey=t,{key:_te,value:{value:n,type:"integer"}}}function E6(e,t){return t?pi(t,()=>{const n=bn(),r=n?DO(n):EO(t);return[n?mo(n):S1(e,t),r]}):[void 0,void 0]}const Ste={trace:1,debug:5,info:9,warn:13,error:17,fatal:21};function Ete(){return typeof __SENTRY_BROWSER_BUNDLE__<"u"&&!!__SENTRY_BROWSER_BUNDLE__}function Cte(){/*! __SENTRY_SDK_SOURCE__ */return"npm"}function wte(){return!Ete()&&Object.prototype.toString.call(typeof process<"u"?process:0)==="[object process]"}function va(){return typeof window<"u"&&(!wte()||Tte())}function Tte(){const e=Ke.process;return(e==null?void 0:e.type)==="renderer"}function Ate(e,t){const n=t?"auto":"never";return[{type:"log",item_count:e.length,content_type:"application/vnd.sentry.items.log+json"},{version:2,...va()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Ite(e,t,n,r,i){const o={};return t!=null&&t.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=Go(r)),$i(o,[Ate(e,i)])}const xte=100;function go(e,t,n,r=!0){n&&(!e[t]||r)&&(e[t]=n)}function Lte(e,t){const n=QE(),r=w6(e);r===void 0?n.set(e,[t]):r.length>=xte?(C6(e,r),n.set(e,[t])):n.set(e,[...r,t])}function Dv(e,t=nt(),n=Lte){var k;const r=(t==null?void 0:t.getClient())??$e();if(!r){Pe&&X.warn("No client available to capture log.");return}const{release:i,environment:o,enableLogs:s=!0,beforeSendLog:a}=r.getOptions();if(!s){Pe&&X.warn("logging option not enabled, log will not be captured.");return}const[,l]=E6(r,t),u={...e.attributes},{user:{id:c,email:d,username:f},attributes:p={}}=Ap(Zt(),t);go(u,"user.id",c,!1),go(u,"user.email",d,!1),go(u,"user.name",f,!1),go(u,"sentry.release",i),go(u,"sentry.environment",o);const{name:h,version:m}=((k=r.getSdkMetadata())==null?void 0:k.sdk)??{};go(u,"sentry.sdk.name",h),go(u,"sentry.sdk.version",m);const v=r.getIntegrationByName("Replay"),g=v==null?void 0:v.getReplayId(!0);go(u,"sentry.replay_id",g),g&&(v==null?void 0:v.getRecordingMode())==="buffer"&&go(u,"sentry._internal.replay_is_buffering",!0);const y=e.message;if(v1(y)){const{__sentry_template_string__:M,__sentry_template_values__:z=[]}=y;z!=null&&z.length&&(u["sentry.message.template"]=M),z.forEach((P,H)=>{u[`sentry.message.parameter.${H}`]=P})}const _=pc(t);go(u,"sentry.trace.parent_span_id",_==null?void 0:_.spanContext().spanId);const b={...e,attributes:u};r.emit("beforeCaptureLog",b);const S=a?ho(()=>a(b)):b;if(!S){r.recordDroppedEvent("before_send","log_item",1),Pe&&X.warn("beforeSendLog returned null, log will not be captured.");return}const{level:C,message:E,attributes:w={},severityNumber:T}=S,A=Xt(),L=S6(A),x={timestamp:A,level:C,body:$_(String(E)),trace_id:l==null?void 0:l.trace_id,severity_number:T??Ste[C],attributes:kte({...mc(p),...mc(w,!0),[L.key]:L.value})};n(r,x),r.emit("afterCaptureLog",S)}function C6(e,t){const n=t??w6(e)??[];if(n.length===0)return;const r=e.getOptions(),i=Ite(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);QE().set(e,[]),e.emit("flushLogs"),e.sendEnvelope(i)}function w6(e){return QE().get(e)}function QE(){return Zc("clientToLogBufferMap",()=>new WeakMap)}function kte(e){const t={};for(const[n,r]of Object.entries(e)){const i=$_(n);r.type==="string"?t[i]={...r,value:$_(r.value)}:t[i]=r}return t}function $_(e){const t=Object(e),n=t.isWellFormed,r=t.toWellFormed;return typeof n=="function"&&typeof r=="function"?n.call(e)?e:r.call(e):e}function Mte(e,t){const n=t?"auto":"never";return[{type:"trace_metric",item_count:e.length,content_type:"application/vnd.sentry.items.trace-metric+json"},{version:2,...va()&&{ingest_settings:{infer_ip:n,infer_user_agent:n}},items:e}]}function Rte(e,t,n,r,i){const o={};return t!=null&&t.sdk&&(o.sdk={name:t.sdk.name,version:t.sdk.version}),n&&r&&(o.dsn=Go(r)),$i(o,[Mte(e,i)])}const Pte=1e3;function Xo(e,t,n,r=!0){n&&(r||!(t in e))&&(e[t]=n)}function Ote(e,t){const n=eC(),r=A6(e);r===void 0?n.set(e,[t]):r.length>=Pte?(T6(e,r),n.set(e,[t])):n.set(e,[...r,t])}function $te(e,t,n){var c;const{release:r,environment:i}=t.getOptions(),o={...e.attributes};Xo(o,"user.id",n.id,!1),Xo(o,"user.email",n.email,!1),Xo(o,"user.name",n.username,!1),Xo(o,"sentry.release",r),Xo(o,"sentry.environment",i);const{name:s,version:a}=((c=t.getSdkMetadata())==null?void 0:c.sdk)??{};
164Xo(o,"sentry.sdk.name",s),Xo(o,"sentry.sdk.version",a);const l=t.getIntegrationByName("Replay"),u=l==null?void 0:l.getReplayId(!0);return Xo(o,"sentry.replay_id",u),u&&(l==null?void 0:l.getRecordingMode())==="buffer"&&Xo(o,"sentry._internal.replay_is_buffering",!0),{...e,attributes:o}}function Nte(e,t,n,r){const[,i]=E6(t,n),o=pc(n),s=o?o.spanContext().traceId:i==null?void 0:i.trace_id,a=o?o.spanContext().spanId:void 0,l=Xt(),u=S6(l);return{timestamp:l,trace_id:s??"",span_id:a,name:e.name,type:e.type,unit:e.unit,value:e.value,attributes:{...mc(r),...mc(e.attributes,"skip-undefined"),[u.key]:u.value}}}function Hte(e,t){const n=(t==null?void 0:t.scope)??nt(),r=(t==null?void 0:t.captureSerializedMetric)??Ote,i=(n==null?void 0:n.getClient())??$e();if(!i){Pe&&X.warn("No client available to capture metric.");return}const{_experiments:o,enableMetrics:s,beforeSendMetric:a}=i.getOptions();if(!(s??(o==null?void 0:o.enableMetrics)??!0)){Pe&&X.warn("metrics option not enabled, metric will not be captured.");return}const{user:u,attributes:c}=Ap(Zt(),n),d=$te(e,i,u);i.emit("processMetric",d);const f=a||(o==null?void 0:o.beforeSendMetric),p=f?f(d):d;if(!p){Pe&&X.log("`beforeSendMetric` returned `null`, will not send metric.");return}const h=Nte(p,i,n,c);Pe&&X.log("[Metric]",h),r(i,h),i.emit("afterCaptureMetric",p)}function T6(e,t){const n=t??A6(e)??[];if(n.length===0)return;const r=e.getOptions(),i=Rte(n,r._metadata,r.tunnel,e.getDsn(),e.getDataCollectionOptions().userInfo);eC().set(e,[]),e.emit("flushMetrics"),e.sendEnvelope(i)}function A6(e){return eC().get(e)}function eC(){return Zc("clientToMetricBufferMap",()=>new WeakMap)}function Dte(e){const t={trace_id:e.trace_id,span_id:e.span_id,parent_span_id:e.parent_span_id,name:e.description||"",start_timestamp:e.start_timestamp,end_timestamp:e.timestamp||e.start_timestamp,status:!e.status||e.status==="ok"||e.status==="cancelled"?"ok":"error",is_segment:!1,attributes:{...e.data},links:e.links};return jO(t)}function Vte(e,t){var o,s,a;if(e.type!=="transaction"||!((o=e.spans)!=null&&o.length)||!((s=e.sdkProcessingMetadata)!=null&&s.hasGenAiSpans)||t.getOptions().streamGenAiSpans===!1||Ni(t))return;const n=[],r=[];for(const l of e.spans)(a=l.op)!=null&&a.startsWith("gen_ai.")?n.push(Dte(l)):r.push(l);if(n.length===0)return;e.spans=r;const i=t.getDataCollectionOptions().userInfo?"auto":"never";return[{type:"span",item_count:n.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...va()&&{ingest_settings:{infer_ip:i,infer_user_agent:i}},items:n}]}const tC=Symbol.for("SentryBufferFullError");function nC(e=100){const t=new Set;function n(){return t.size<e}function r(s){t.delete(s)}function i(s){if(!n())return u6(tC);const a=s();return t.add(a),a.then(()=>r(a),()=>r(a)),a}function o(s){if(!t.size)return Ip(!0);const a=Promise.allSettled(Array.from(t)).then(()=>!0);if(!s)return a;const l=[a,new Promise(u=>A1(setTimeout(()=>u(!1),s)))];return Promise.race(l)}return{get $(){return Array.from(t)},add:i,drain:o}}const Fte=60*1e3;function I6(e,t=Wo()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Fte:r-t}function Bte(e,t){return e[t]||e.all||0}function x6(e,t,n=Wo()){return Bte(e,t)>n}function L6(e,{statusCode:t,headers:n},r=Wo()){const i={...e},o=n==null?void 0:n["x-sentry-rate-limits"],s=n==null?void 0:n["retry-after"];if(o)for(const a of o.trim().split(",")){const[l,u,,,c]=a.split(":",5),d=parseInt(l,10),f=(isNaN(d)?60:d)*1e3;if(!u)i.all=r+f;else for(const p of u.split(";"))p==="metric_bucket"?(!c||c.split(";").includes("custom"))&&(i[p]=r+f):i[p]=r+f}else s?i.all=r+I6(s,r):t===429&&(i.all=r+60*1e3);return i}const k6=64;function M6(e,t,n=nC(e.bufferSize||k6)){let r={};const i=s=>n.drain(s);function o(s){const a=[];if(Tl(s,(d,f)=>{const p=_I(f);x6(r,p)?e.recordDroppedEvent("ratelimit_backoff",p):a.push(d)}),a.length===0)return Promise.resolve({});const l=$i(s[0],a),u=d=>{if(k_(l,["client_report"])){Pe&&X.warn(`Dropping client report. Will not send outcomes (reason: ${d}).`);return}Tl(l,(f,p)=>{e.recordDroppedEvent(d,_I(p))})},c=()=>t({body:Hv(l)}).then(d=>d.statusCode===413?(Pe&&X.error("Sentry responded with status code 413. Envelope was discarded due to exceeding size limits."),u("send_error"),d):(Pe&&d.statusCode!==void 0&&(d.statusCode<200||d.statusCode>=300)&&X.warn(`Sentry responded with status code ${d.statusCode} to sent event.`),r=L6(r,d),d),d=>{throw u("network_error"),Pe&&X.error("Encountered error running transport request:",d),d});return n.add(c).then(d=>d,d=>{if(d===tC)return Pe&&X.error("Skipped sending event because buffer is full."),u("queue_overflow"),Promise.resolve({});throw d})}return{send:o,flush:i}}function Ute(e,t,n){const r=[{type:"client_report"},{timestamp:n||Gl(),discarded_events:e}];return $i(t?{dsn:t}:{},[r])}function R6(e){const t=[];e.message&&t.push(e.message);try{const n=e.exception.values[e.exception.values.length-1];n!=null&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`))}catch{}return t}function jte(e){var l;const{trace_id:t,parent_span_id:n,span_id:r,status:i,origin:o,data:s,op:a}=((l=e.contexts)==null?void 0:l.trace)??{};return{data:s??{},description:e.transaction,op:a,parent_span_id:n,span_id:r??"",start_timestamp:e.start_timestamp??0,status:i,timestamp:e.timestamp,trace_id:t??"",origin:o,profile_id:s==null?void 0:s[FE],exclusive_time:s==null?void 0:s[Aa],measurements:e.measurements,is_segment:!0}}function Wte(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&&{[FE]:e.profile_id},...e.exclusive_time&&{[Aa]:e.exclusive_time}}}},measurements:e.measurements}}const $d="[Filtered]",wh=["forwarded","-ip","remote-","via","-user"],OI=["auth","token","secret","session","password","passwd","pwd","key","jwt","bearer","sso","saml","csrf","xsrf","credentials","sid","identity","set-cookie","cookie"],Gte=[".sid","sessid","remember","oidc","pkce","nonce","__secure-","__host-","awsalb","awselb","akamai","__stripe","cognito","firebase","supabase","sb-","mfa","2fa"];function zte(e){return e===!0?{userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0}
164,databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:7}:{userInfo:!1,cookies:{deny:wh},httpHeaders:{request:{deny:wh},response:{deny:wh}},httpBodies:[],urlQueryParams:{deny:wh},graphQL:{document:!0,variables:!0},genAI:{inputs:!1,outputs:!1},databaseQueryData:!1,stackFrameVariables:!0,frameContextLines:7}}const qte={userInfo:!0,cookies:!0,httpHeaders:{request:!0,response:!0},httpBodies:["incomingRequest","outgoingRequest","incomingResponse","outgoingResponse"],urlQueryParams:!0,graphQL:{document:!0,variables:!0},genAI:{inputs:!0,outputs:!0},databaseQueryData:!0,stackFrameVariables:!0,frameContextLines:5};function Kte(e){var r,i,o,s,a,l;const t=e.dataCollection!=null?qte:zte(e.sendDefaultPii),n=e.dataCollection??{};return{userInfo:n.userInfo??t.userInfo,cookies:n.cookies??t.cookies,httpHeaders:{request:((r=n.httpHeaders)==null?void 0:r.request)??t.httpHeaders.request,response:((i=n.httpHeaders)==null?void 0:i.response)??t.httpHeaders.response},httpBodies:n.httpBodies??t.httpBodies,urlQueryParams:n.urlQueryParams??n.queryParams??t.urlQueryParams,graphQL:{document:((o=n.graphQL)==null?void 0:o.document)??t.graphQL.document,variables:((s=n.graphQL)==null?void 0:s.variables)??t.graphQL.variables},genAI:{inputs:((a=n.genAI)==null?void 0:a.inputs)??t.genAI.inputs,outputs:((l=n.genAI)==null?void 0:l.outputs)??t.genAI.outputs},databaseQueryData:n.databaseQueryData??t.databaseQueryData,stackFrameVariables:n.stackFrameVariables??t.stackFrameVariables,frameContextLines:n.frameContextLines??t.frameContextLines}}const $I="Not capturing exception because it's already been captured.",NI="Discarded session because of missing or non-string release",P6=Symbol.for("SentryInternalError"),O6=Symbol.for("SentryDoNotSendEventError"),Xte=5e3;function bm(e){return{message:e,[P6]:!0}}function ty(e){return{message:e,[O6]:!0}}function HI(e){return Ii(e)&&P6 in e}function DI(e){return Ii(e)&&O6 in e}function VI(e,t,n,r,i){let o=0,s,a=!1;e.on(n,()=>{o=0,clearTimeout(s),a=!1}),e.on(t,l=>{if(o+=r(l),o>=8e5)i(e);else if(!a){const u=e.getOptions()._flushInterval??Xte;u>0&&(a=!0,s=A1(setTimeout(()=>{i(e)},u)))}}),e.on("flush",()=>{i(e)})}class Zte{constructor(t){var r,i,o;if(this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],this._promiseBuffer=nC(((r=t.transportOptions)==null?void 0:r.bufferSize)??k6),this._dataCollection=Kte(t),t.dsn?this._dsn=RO(t.dsn):Pe&&X.warn("No DSN provided, client will not send events."),this._dsn){const s=b6(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:s})}this._options.enableLogs=this._options.enableLogs??((i=this._options._experiments)==null?void 0:i.enableLogs)??!0,this._options.enableLogs&&VI(this,"afterCaptureLog","flushLogs",ene,C6),(this._options.enableMetrics??((o=this._options._experiments)==null?void 0:o.enableMetrics)??!0)&&VI(this,"afterCaptureMetric","flushMetrics",Qte,T6)}captureException(t,n,r){const i=Gn();if(oI(t))return Pe&&X.log($I),i;const o={event_id:i,...n};return this._process(()=>this.eventFromException(t,o).then(s=>this._captureEvent(s,o,r)).then(s=>s),"error"),o.event_id}captureMessage(t,n,r,i){const o={event_id:Gn(),...r},s=v1(t)?t:String(t),a=Mo(t),l=a?this.eventFromMessage(s,n,o):this.eventFromException(t,o);return this._process(()=>l.then(u=>this._captureEvent(u,o,i)),a?"unknown":"error"),o.event_id}captureEvent(t,n,r){const i=Gn();if(n!=null&&n.originalException&&oI(n.originalException))return Pe&&X.log($I),i;const o={event_id:i,...n},s=t.sdkProcessingMetadata||{},a=s.capturedSpanScope,l=s.capturedSpanIsolationScope,u=FI(t.type);return this._process(()=>this._captureEvent(t,o,a||r,l),u),o.event_id}captureSession(t){this.sendSession(t),fc(t,{init:!1})}getDsn(){return this._dsn}getOptions(){return this._options}getDataCollectionOptions(){return this._dataCollection}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}async flush(t){const n=this._transport;
164if(this.emit("flush"),!n)return!0;const r=await this._isClientDoneProcessing(t),i=await n.flush(t);return r&&i}async close(t){const n=await this.flush(t);return this.getOptions().enabled=!1,this.emit("close"),n}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}init(){(this._isEnabled()||this._options.integrations.some(({name:t})=>t.startsWith("Spotlight")))&&this._setupIntegrations()}getIntegrationByName(t){return this._integrations[t]}getIntegrationNames(){return Object.keys(this._integrations)}addIntegration(t){const n=this._integrations[t.name];!n&&t.beforeSetup&&t.beforeSetup(this),_6(this,t,this._integrations),n||PI(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);const r=Vte(t,this);let i=YQ(t,this._dsn,this._options._metadata,this._options.tunnel);for(const o of n.attachments||[])i=bI(i,qQ(o));r&&(i=bI(i,r)),this.sendEnvelope(i).then(o=>this.emit("afterSendEvent",t,o))}sendSession(t){const{release:n,environment:r=Cp}=this._options;if("aggregates"in t){const o=t.attrs||{};if(!o.release&&!n){Pe&&X.warn(NI);return}o.release=o.release||n,o.environment=o.environment||r,t.attrs=o}else{if(!t.release&&!n){Pe&&X.warn(NI);return}t.release=t.release||n,t.environment=t.environment||r}this.emit("beforeSendSession",t);const i=ZQ(t,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(i)}recordDroppedEvent(t,n,r=1){if(this._options.sendClientReports){const i=`${t}:${n}`;Pe&&X.log(`Recording outcome: "${i}"${r>1?` (${r} times)`:""}`),this._outcomes[i]=(this._outcomes[i]||0)+r}}on(t,n){const r=this._hooks[t]=this._hooks[t]||new Set,i=(...o)=>n(...o);return r.add(i),()=>{r.delete(i)}}emit(t,...n){const r=this._hooks[t];r&&r.forEach(i=>i(...n))}async sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)try{return await this._transport.send(t)}catch(n){return Pe&&X.error("Error while sending envelope:",n),{}}return Pe&&X.error("Transport disabled"),{}}registerCleanup(t){}dispose(){}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=bte(this,t),PI(this,t)}_updateSessionFromEvent(t,n){var l,u;let r=n.level==="fatal",i=!1;const o=(l=n.exception)==null?void 0:l.values;if(o){i=!0,r=!1;for(const c of o)if(((u=c.mechanism)==null?void 0:u.handled)===!1){r=!0;break}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(fc(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||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,i){const o=this.getOptions(),s=this.getIntegrationNames();return!n.integrations&&s.length&&(n.integrations=s),this.emit("preprocessEvent",t,n),t.type||i.setLastEventId(t.event_id||n.event_id),d6(o,t,n,r,this,i).then(a=>{var u;if(a===null)return a;this.emit("postprocessEvent",a,n),a.contexts={trace:{...(u=a.contexts)==null?void 0:u.trace,...EO(r)},...a.contexts};const l=S1(this,r);return a.sdkProcessingMetadata={dynamicSamplingContext:l,...a.sdkProcessingMetadata},a})}_captureEvent(t,n={},r=nt(),i=Zt()){return Pe&&N_(t)&&X.log(`Captured error event \`${R6(t)[0]||"<unknown>"}\``),this._processEvent(t,n,r,i).then(o=>o.event_id,o=>{Pe&&(DI(o)?X.log(o.message):HI(o)?X.warn(o.message):X.warn(o))})}_processEvent(t,n,r,i){const o=this.getOptions(),{sampleRate:s}=o,a=$6(t),l=N_(t),c=`before send for type \`${t.type||"error"}\``,d=typeof s>"u"?void 0:Cl(s),f=FI(t.type);return this._prepareEvent(t,n,r,i).then(p=>{var v;if(p===null)throw this.recordDroppedEvent("event_processor",f),ty("An event processor returned `null`, will not send event.");if(((v=n.data)==null?void 0:v.__sentry__)===!0)return p;const m=Jte(this,o,p,n);return Yte(m,c)}).then(p=>{var v;if(p===null){if(this.recordDroppedEvent("before_send",f),a){const y=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",y)}throw ty(`${c} returned \`null\`, will not send event.`)}const h=r.getSession()||i.getSession();if(l&&h&&this._updateSessionFromEvent(h,p),l&&typeof d=="number"&&cs()>d)throw this.recordDroppedEvent("sample_rate","error"),ty(`Discarding event because it's not included in the random sample (sampling rate = ${s})`);
164if(a){const g=((v=p.sdkProcessingMetadata)==null?void 0:v.spanCountBeforeProcessing)||0,y=p.spans?p.spans.length:0,_=g-y;_>0&&this.recordDroppedEvent("before_send","span",_)}const m=p.transaction_info;if(a&&m&&p.transaction!==t.transaction){const g="custom";p.transaction_info={...m,source:g}}return this.sendEvent(p,n),p}).then(null,p=>{throw DI(p)||HI(p)?p:(this.captureException(p,{mechanism:{handled:!1,type:"internal"},data:{__sentry__:!0},originalException:p}),bm(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. 165Reason: ${p}`))})}_process(t,n){this._numProcessing++,this._promiseBuffer.add(t).then(r=>(this._numProcessing--,r),r=>(this._numProcessing--,r===tC&&this.recordDroppedEvent("queue_overflow",n),r))}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.entries(t).map(([n,r])=>{const[i,o]=n.split(":");return{reason:i,category:o,quantity:r}})}_flushOutcomes(){Pe&&X.log("Flushing outcomes...");const t=this._clearOutcomes();if(t.length===0){Pe&&X.log("No outcomes to send");return}if(!this._dsn){Pe&&X.log("No dsn provided, will not send outcomes");return}Pe&&X.log("Sending outcomes:",t);const n=Ute(t,this._options.tunnel&&Go(this._dsn));this.sendEnvelope(n)}}function FI(e){return e==="replay_event"?"replay":e||"error"}function Yte(e,t){const n=`${t} must return \`null\` or a valid event.`;if(Wl(e))return e.then(r=>{if(!Fr(r)&&r!==null)throw bm(n);return r},r=>{throw bm(`${t} rejected with ${r}`)});if(!Fr(e)&&e!==null)throw bm(n);return e}function Jte(e,t,n,r){const{beforeSend:i,beforeSendTransaction:o,ignoreSpans:s}=t,a=!E1(t.beforeSendSpan)&&t.beforeSendSpan;let l=n;if(N_(l)&&i)return i(l,r);if($6(l)){if(a||s){const u=jte(l);if(s!=null&&s.length&&jf({description:u.description,op:u.op,attributes:u.data},s))return null;if(a){const c=a(u);c?l=bp(n,Wte(c)):$v()}if(l.spans){const c=[],d=l.spans;for(const p of d){if(s!=null&&s.length&&jf({description:p.description,op:p.op,attributes:p.data},s)){VQ(d,p);continue}if(a){const h=a(p);h?c.push(h):($v(),c.push(p))}else c.push(p)}const f=l.spans.length-c.length;f&&e.recordDroppedEvent("before_send","span",f),l.spans=c}}if(o){if(l.spans){const u=l.spans.length;l.sdkProcessingMetadata={...n.sdkProcessingMetadata,spanCountBeforeProcessing:u}}return o(l,r)}}return l}function N_(e){return e.type===void 0}function $6(e){return e.type==="transaction"}function Qte(e){let t=0;return e.name&&(t+=e.name.length*2),t+=8,t+N6(e.attributes)}function ene(e){let t=0;return e.message&&(t+=e.message.length*2),t+N6(e.attributes)}function N6(e){if(!e)return 0;let t=0;return Object.values(e).forEach(n=>{Array.isArray(n)?t+=n.length*BI(n[0]):Mo(n)?t+=BI(n):t+=100}),t}function BI(e){return typeof e=="string"?e.length*2:typeof e=="number"?8:typeof e=="boolean"?4:0}function tne(e,t){t.debug===!0&&(Pe?X.enable():ho(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),nt().update(t.initialScope);const r=new e(t);return H6(r),r.init(),r}function H6(e){nt().setClient(e)}const ny=100,ry=5e3,nne=36e5;function rne(e){function t(...n){Pe&&X.log("[Offline]:",...n)}return n=>{const r=e(n);if(!n.createStore)throw new Error("No `createStore` function was provided");const i=n.createStore(n);let o=ry,s;function a(d,f,p){return k_(d,["client_report"])?!1:n.shouldStore?n.shouldStore(d,f,p):!0}function l(d){s&&clearTimeout(s),s=A1(setTimeout(async()=>{s=void 0;const f=await i.shift();f&&(t("Attempting to send previously queued event"),f[0].sent_at=new Date(Wo()).toISOString(),c(f,!0).catch(p=>{t("Failed to retry sending",p)}))},d))}function u(){s||(l(o),o=Math.min(o*2,nne))}async function c(d,f=!1){var p,h;if(!f&&k_(d,["replay_event","replay_recording"]))return await i.push(d),l(ny),{};try{if(n.shouldSend&&await n.shouldSend(d)===!1)throw new Error("Envelope not sent because `shouldSend` callback returned false");const m=await r.send(d);let v=ny;if(m){if((p=m.headers)!=null&&p["retry-after"])v=I6(m.headers["retry-after"]);else if((h=m.headers)!=null&&h["x-sentry-rate-limits"])v=6e4;else if((m.statusCode||0)>=400)return m}return l(v),o=ry,m}catch(m){if(await a(d,m,o))return f?await i.unshift(d):await i.push(d),u(
165),t("Error sending. Event queued.",m),{};throw m}}return n.flushAtStartup&&u(),{send:c,flush:d=>(d===void 0&&(o=ry,l(ny)),r.flush(d))}}}const _m="MULTIPLEXED_TRANSPORT_EXTRA_KEY";function D6(e,t){let n;return Tl(e,(r,i)=>(t.includes(i)&&(n=Array.isArray(r)?r[1]:void 0),!!n)),n}function ine(e,t){return n=>{const r=e(n);return{...r,send:async i=>{const o=D6(i,["event","transaction","profile","replay_event"]);return o&&(o.release=t),r.send(i)}}}}function one(e,t){return $i(t?{...e[0],dsn:t}:e[0],e[1])}function sne(e,t){return n=>{const r=e(n),i=new Map,o=t||(u=>{var d;const c=u.getEvent();return(d=c==null?void 0:c.extra)!=null&&d[_m]&&Array.isArray(c.extra[_m])?c.extra[_m]:[]});function s(u,c){const d=c?`${u}:${c}`:u;let f=i.get(d);if(!f){const p=LO(u);if(!p)return;const h=b6(p,n.tunnel);f=c?ine(e,c)({...n,url:h}):e({...n,url:h}),i.set(d,f)}return[u,f]}async function a(u){function c(h){const m=h!=null&&h.length?h:["event"];return D6(u,m)}const d=o({envelope:u,getEvent:c}).map(h=>typeof h=="string"?s(h,void 0):s(h.dsn,h.release)).filter(h=>!!h),f=d.length?d:[["",r]];return(await Promise.all(f.map(([h,m])=>m.send(one(u,h)))))[0]}async function l(u){const c=[...i.values(),r];return(await Promise.all(c.map(f=>f.flush(u)))).every(f=>f)}return{send:a,flush:l}}}function iy(e,t){return t.some(n=>e.includes(n))}function Gf(e,t,n){if(t===!1)return{};const r=n!=null?[...OI,...n]:OI,i={};if(t===!0){for(const s of Object.keys(e))i[s]=iy(s.toLowerCase(),r)?$d:e[s];return i}if("deny"in t){const s=t.deny.map(a=>a.toLowerCase());for(const a of Object.keys(e)){const l=a.toLowerCase(),u=iy(l,r)||s.some(c=>l.includes(c));i[a]=u?$d:e[a]}return i}const o=t.allow.map(s=>s.toLowerCase());for(const s of Object.keys(e)){const a=s.toLowerCase();if(iy(a,r))i[s]=$d;else{const l=o.some(u=>a.includes(u));i[s]=l?e[s]:$d}}return i}function ane(e){const t={};let n=0;for(;n<e.length;){const r=e.indexOf("=",n);if(r===-1)break;let i=e.indexOf(";",n);if(i===-1)i=e.length;else if(i<r){n=e.lastIndexOf(";",r-1)+1;continue}const o=e.slice(n,r).trim();if(t[o]===void 0){let s=e.slice(r+1,i).trim();s.charCodeAt(0)===34&&(s=s.slice(1,-1));try{t[o]=s.indexOf("%")!==-1?decodeURIComponent(s):s}catch{t[o]=s}}n=i+1}return t}function H_(e,t){if(t===!1)return{};try{const n=ane(e);return Object.keys(n).length===0?{}:Gf(n,t,Gte)}catch{return $d}}const lne="thismessage:/";function I1(e){return"isRelative"in e}function zf(e,t){const n=e.indexOf("://")<=0&&e.indexOf("//")!==0,r=t??(n?lne:void 0);try{if("canParse"in URL&&!URL.canParse(e,r))return;const i=new URL(e,r);return n?{isRelative:n,pathname:i.pathname,search:i.search,hash:i.hash}:i}catch{}}function V6(e){if(I1(e))return e.pathname;const t=new URL(e);return t.search="",t.hash="",["80","443"].includes(t.port)&&(t.port=""),t.password&&(t.password="%filtered%"),t.username&&(t.username="%filtered%"),t.toString()}function dl(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function F6(e){return e.split(/[?#]/,1)[0]}function eo(e,t=!0){if(e.startsWith("data:")){const n=e.match(/^data:([^;,]+)/),r=n?n[1]:"text/plain",i=e.includes(";base64,"),o=e.indexOf(",");let s="";if(t&&o!==-1){const a=e.slice(o+1);s=a.length>10?`${a.slice(0,10)}... [truncated]`:a}return`data:${r}${i?",base64":""}${s?`,${s}`:""}`}return e}function B6(e,t){const n=t==null?void 0:t.getDsn(),r=t==null?void 0:t.getOptions().tunnel;return cne(e,n)||une(e,r)}function une(e,t){return t?UI(e)===UI(t):!1}function cne(e,t){const n=zf(e);return!n||I1(n)||!t?!1:dne(n.hostname,t.host)&&/(^|&|\?)sentry_key=/.test(n.search)}function dne(e,t){return e===t||t.length>0&&e.endsWith(`.${t}`)}function UI(e){return e[e.length-1]==="/"?e.slice(0,-1):e}function U6(e,...t){const n=new String(String.raw(e,...t));return n.__sentry_template_string__=e.join("\0").replace(/%/g,"%%").replace(/\0/g,"%s"),n.__sentry_template_values__=t,n}const fne=U6;function pne(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 j6(e,t,n=[t],r="npm"){const i=(e._metadata=e._metadata||{}).sdk=e._metadata.sdk||{};i.name||(i.name=`sentry.javascript.${t}`,i.packages=n.map(o=>({name:`${r}:@sentry/${o}`,version:us})),i.version=us)}function rC(e={}){const t=e.client||$e();
165if(!m6()||!t)return{};const n=jo(),r=Ta(n);if(r.getTraceData)return r.getTraceData(e);const i=e.scope||nt(),o=e.span||bn(),s=gc(o)&&!Lr(t.getOptions());if(!o&&sQ())return{};const a=o&&!s?VO(o):hne(i),l=o?mo(o):S1(t,i),u=xO(l);if(!PO.test(a))return X.warn("Invalid sentry-trace data. Cannot generate trace data"),{};const d={"sentry-trace":a,baggage:u};return e.propagateTraceparent&&(d.traceparent=o&&!s?$Q(o):mne(i)),d}function hne(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return $O(t,r,n)}function mne(e){const{traceId:t,sampled:n,propagationSpanId:r}=e.getPropagationContext();return NO(t,r,n)}function vne(e){return Array.from(new Set(e))}const gne=100;function ao(e,t){const n=$e(),r=Zt();if(!n)return;const{beforeBreadcrumb:i=null,maxBreadcrumbs:o=gne}=n.getOptions();if(o<=0)return;const a={timestamp:Gl(),...e},l=i?ho(()=>i(a,t)):a;l!==null&&(n.emit&&n.emit("beforeAddBreadcrumb",l,t),r.addBreadcrumb(l,o))}const yne="FunctionToString",jI=new WeakMap,bne=()=>({name:yne,setupOnce(){const e=Function.prototype.toString;try{Function.prototype.toString=function(...t){const n=VE(this);let r;try{jI.has($e())&&n!==void 0&&(r=n)}catch{}return e.apply(r??this,t)}}catch{}},setup(e){jI.set(e,!0)}}),W6=bne,_ne=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,/^Can't find variable: gmo$/,/^undefined is not an object \(evaluating 'a\.[A-Z]'\)$/,/can't redefine non-configurable property "solana"/,/vv\(\)\.getRestrictions is not a function/,/Can't find variable: _AutofillCallbackHandler/,/Object Not Found Matching Id:\d+, MethodName:simulateEvent/,/^Java exception was raised during method invocation$/],Sne="EventFilters",G6=(e={})=>{let t;return{name:Sne,setup(n){const r=n.getOptions();t=WI(e,r)},processEvent(n,r,i){if(!t){const o=i.getOptions();t=WI(e,o)}return Ene(n,t)?null:n}}},z6=(e={})=>({...G6(e),name:"InboundFilters"});function WI(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:_ne],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[]]}}function Ene(e,t){if(e.type){if(e.type==="transaction"&&wne(e,t.ignoreTransactions))return Pe&&X.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. 166Event: ${qa(e)}`),!0}else{if(Cne(e,t.ignoreErrors))return Pe&&X.warn(`Event dropped due to being matched by \`ignoreErrors\` option. 167Event: ${qa(e)}`),!0;if(xne(e))return Pe&&X.warn(`Event dropped due to not having an error message, error type or stacktrace. 168Event: ${qa(e)}`),!0;if(Tne(e,t.denyUrls))return Pe&&X.warn(`Event dropped due to being matched by \`denyUrls\` option. 169Event: ${qa(e)}. 170Url: ${Vv(e)}`),!0;if(!Ane(e,t.allowUrls))return Pe&&X.warn(`Event dropped due to not being matched by \`allowUrls\` option. 171Event: ${qa(e)}. 172Url: ${Vv(e)}`),!0}return!1}function Cne(e,t){return t!=null&&t.length?R6(e).some(n=>xi(n,t)):!1}function wne(e,t){if(!(t!=null&&t.length))return!1;const n=e.transaction;return n?xi(n,t):!1}function Tne(e,t){if(!(t!=null&&t.length))return!1;const n=Vv(e);return n?xi(n,t):!1}function Ane(e,t){if(!(t!=null&&t.length))return!0;const n=Vv(e);return n?xi(n,t):!0}function Ine(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!=="<anonymous>"&&n.filename!=="[native code]")return n.filename||null}return null}function Vv(e){var t,n;try{const r=[...((t=e.exception)==null?void 0:t.values)??[]].reverse().find(o=>{var s,a,l;return((s=o.mechanism)==null?void 0:s.parent_id)===void 0&&((l=(a=o.stacktrace)==null?void 0:a.frames)==null?void 0:l.length)}),i=(n=r==null?void 0:r.stacktrace)==null?void 0:n.frames;return i?Ine(i):null}catch{return Pe&&X.error(`Cannot extract url for event ${qa(e)}`),null}}function xne(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 Lne(e,t,n,r,i,o){var a;if(!((a=i.exception)!=null&&a.values)||!o||!Wr(o.originalException))return;const s=i.exception.values.length>0?i.exception.values[i.exception.values.length-1]:void 0;s&&(i.exception.values=D_(e,t,r,o.originalException,n,i.exception.values,s,0))}function D_(e,t,n,r,i,o,s,a){if(o.length>=n+1)return o;let l=[...o];if(Wr(r[i])){GI(s,a,r);const u=e(t,r[i]),c=l.length;zI(u,i,c,a),l=D_(e,t,n,r[i],i,[u,...l],u,c)}
172return q6(r)&&r.errors.forEach((u,c)=>{if(Wr(u)){GI(s,a,r);const d=e(t,u),f=l.length;zI(d,`errors[${c}]`,f,a),l=D_(e,t,n,u,i,[d,...l],d,f)}}),l}function q6(e){return Array.isArray(e.errors)}function GI(e,t,n){e.mechanism={handled:!0,type:"auto.core.linked_errors",...q6(n)&&{is_exception_group:!0},...e.mechanism,exception_id:t}}function zI(e,t,n,r){e.mechanism={handled:!0,...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function kne(e){return Wr(e)&&"__sentry_fetch_url_host__"in e&&typeof e.__sentry_fetch_url_host__=="string"}function qI(e){return kne(e)?`${e.message} (${e.__sentry_fetch_url_host__})`:e.message}const K6=new Map,KI=new Set;function Mne(e){if(Ke._sentryModuleMetadata)for(const t of Object.keys(Ke._sentryModuleMetadata)){const n=Ke._sentryModuleMetadata[t];if(KI.has(t))continue;KI.add(t);const r=e(t);for(const i of r.reverse())if(i.filename){K6.set(i.filename,n);break}}}function Rne(e,t){return Mne(e),K6.get(t)}function X6(e,t){var n,r;(r=(n=t.exception)==null?void 0:n.values)==null||r.forEach(i=>{var o,s;(s=(o=i.stacktrace)==null?void 0:o.frames)==null||s.forEach(a=>{if(!a.filename||a.module_metadata)return;const l=Rne(e,a.filename);l&&(a.module_metadata=l)})})}function Z6(e){var t,n;(n=(t=e.exception)==null?void 0:t.values)==null||n.forEach(r=>{var i,o;(o=(i=r.stacktrace)==null?void 0:i.frames)==null||o.forEach(s=>{delete s.module_metadata})})}const Pne=()=>({name:"ModuleMetadata",setup(e){e.on("beforeEnvelope",t=>{Tl(t,(n,r)=>{if(r==="event"){const i=Array.isArray(n)?n[1]:void 0;i&&(Z6(i),n[1]=i)}})}),e.on("applyFrameMetadata",t=>{if(t.type)return;const n=e.getOptions().stackParser;X6(n,t)})}}),XI=new Set([]);function iC(e){const t="console",n=Ca(t,e);return wa(t,One),n}const ZI=new Set;function One(){"console"in Ke&&$E.forEach(function(e){ZI.has(e)||!(e in Ke.console)||(ZI.add(e),tr(Ke.console,e,function(t){return kv[e]=t,function(...n){const r=n[0],i=kv[e],o=XI.size&&typeof r=="string"&&xi(r,XI);o||Ai("console",{args:n,level:e}),(!o||Pe&&X.isEnabled())&&(i==null||i.apply(Ke.console,n))}}))})}function Fv(e){return e==="warn"?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}const $ne="CaptureConsole",Nne=(e={})=>{const t=e.levels||$E,n=e.handled??!0;return{name:$ne,setup(r){"console"in Ke&&iC(({args:i,level:o})=>{$e()!==r||!t.includes(o)||Dne(i,o,n)})}}},Hne=Nne;function Dne(e,t,n){const r=Fv(t),i=new Error,o={level:Fv(t),extra:{arguments:e}};pi(s=>{if(s.addEventProcessor(u=>(u.logger="console",Io(u,{handled:n,type:"auto.core.capture_console"}),u)),t==="assert"){if(!e[0]){const u=`Assertion failed: ${Mv(e.slice(1)," ")||"console.assert"}`;s.setExtra("arguments",e.slice(1)),s.captureMessage(u,r,{captureContext:o,syntheticException:i})}return}const a=e.find(u=>u instanceof Error);if(a){di(a,o);return}const l=Mv(e," ");s.captureMessage(l,r,{captureContext:o,syntheticException:i})})}const Vne="Dedupe",Fne=()=>{let e;return{name:Vne,processEvent(t){if(t.type)return t;try{if(Bne(t,e))return Pe&&X.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},Y6=Fne;function Bne(e,t){return t?!!(Une(e,t)||jne(e,t)):!1}function Une(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Q6(e,t)||!J6(e,t))}function jne(e,t){const n=YI(t),r=YI(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Q6(e,t)||!J6(e,t))}function J6(e,t){let n=C_(e),r=C_(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i<r.length;i++){const o=r[i],s=n[i];if(o.filename!==s.filename||o.lineno!==s.lineno||o.colno!==s.colno||o.function!==s.function)return!1}return!0}function Q6(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 YI(e){var t,n;return(n=(t=e.exception)==null?void 0:t.values)==null?void 0:n[0]}const Wne="ExtraErrorData",Gne=(e={})=>{const{depth:t=3,captureErrorCause:n=!0}=e;return{name:Wne,processEvent(r,i,o){const{maxValueLength:s}=o.getOptions();return qne(r,i,t,n,s)}}},zne=Gne;function qne(e,t={},n,r,i){if(!t.originalException||!Wr(t.originalException))return e;const o=t.originalException.name||t.originalException.constructor.name,s=e8(t.originalException,r,i);if(s){const a={...e.contexts},l=Fn(s,n);return Fr(l)&&(MJ(l),a[o]=l),{...e,contexts:a}}return e}
172function e8(e,t,n){try{const r=["name","message","stack","line","column","fileName","lineNumber","columnNumber","toJSON"],i={};for(const o of Object.keys(e)){if(r.indexOf(o)!==-1)continue;const s=e[o];i[o]=Wr(s)||typeof s=="string"?n?Ff(`${s}`,n):`${s}`:s}if(t&&e.cause!==void 0)if(Wr(e.cause)){const o=e.cause.name||e.cause.constructor.name;i.cause={[o]:e8(e.cause,!1,n)}}else i.cause=e.cause;if(typeof e.toJSON=="function"){const o=e.toJSON();for(const s of Object.keys(o)){const a=o[s];i[s]=Wr(a)?a.toString():a}}return i}catch(r){Pe&&X.error("Unable to extract extra data from the Error object:",r)}return null}function Kne(e,t){let n=0;for(let r=e.length-1;r>=0;r--){const i=e[r];i==="."?e.splice(r,1):i===".."?(e.splice(r,1),n++):n&&(e.splice(r,1),n--)}if(t)for(;n--;n)e.unshift("..");return e}const Xne=/^(\S+:\\|\/?)([\s\S]*?)((?:\.{1,2}|[^/\\]+?|)(\.[^./\\]*|))(?:[/\\]*)$/;function Zne(e){const t=e.length>1024?`<truncated>${e.slice(-1024)}`:e,n=Xne.exec(t);return n?n.slice(1):[]}function JI(...e){let t="",n=!1;for(let r=e.length-1;r>=-1&&!n;r--){const i=r>=0?e[r]:"/";i&&(t=`${i}/${t}`,n=i.charAt(0)==="/")}return t=Kne(t.split("/").filter(r=>!!r),!n).join("/"),(n?"/":"")+t||"."}function QI(e){let t=0;for(;t<e.length&&e[t]==="";t++);let n=e.length-1;for(;n>=0&&e[n]==="";n--);return t>n?[]:e.slice(t,n-t+1)}function Yne(e,t){e=JI(e).slice(1),t=JI(t).slice(1);const n=QI(e.split("/")),r=QI(t.split("/")),i=Math.min(n.length,r.length);let o=i;for(let a=0;a<i;a++)if(n[a]!==r[a]){o=a;break}let s=[];for(let a=o;a<n.length;a++)s.push("..");return s=s.concat(r.slice(o)),s.join("/")}function Jne(e,t){let n=Zne(e)[2]||"";return t&&n.slice(t.length*-1)===t&&(n=n.slice(0,n.length-t.length)),n}const Qne="RewriteFrames",ere=(e={})=>{const t=e.root,n=e.prefix||"app:///",r="window"in Ke&&!!Ke.window,i=e.iteratee||tre({isBrowser:r,root:t,prefix:n});function o(a){try{return{...a,exception:{...a.exception,values:a.exception.values.map(l=>({...l,...l.stacktrace&&{stacktrace:s(l.stacktrace)}}))}}}catch{return a}}function s(a){var l;return{...a,frames:(l=a==null?void 0:a.frames)==null?void 0:l.map(u=>i(u))}}return{name:Qne,processEvent(a){let l=a;return a.exception&&Array.isArray(a.exception.values)&&(l=o(l)),l}}};function tre({isBrowser:e,root:t,prefix:n}){return r=>{if(!r.filename)return r;const i=/^[a-zA-Z]:\\/.test(r.filename)||r.filename.includes("\\")&&!r.filename.includes("/"),o=/^\//.test(r.filename);if(e){if(t){const s=r.filename;s.indexOf(t)===0&&(r.filename=s.replace(t,n))}}else if(i||o){const s=i?r.filename.replace(/^[a-zA-Z]:/,"").replace(/\\/g,"/"):r.filename,a=t?Yne(t,s):Jne(s);r.filename=`${n}${a}`}return r}}const nre=["reauthenticate","signInAnonymously","signInWithOAuth","signInWithIdToken","signInWithOtp","signInWithPassword","signInWithSSO","signOut","signUp","verifyOtp"],rre=["createUser","deleteUser","listUsers","getUserById","updateUserById","inviteUserByEmail"],ire={eq:"eq",neq:"neq",gt:"gt",gte:"gte",lt:"lt",lte:"lte",like:"like","like(all)":"likeAllOf","like(any)":"likeAnyOf",ilike:"ilike","ilike(all)":"ilikeAllOf","ilike(any)":"ilikeAnyOf",is:"is",in:"in",cs:"contains",cd:"containedBy",sr:"rangeGt",nxl:"rangeGte",sl:"rangeLt",nxr:"rangeLte",adj:"rangeAdjacent",ov:"overlaps",fts:"",plfts:"plain",phfts:"phrase",wfts:"websearch",not:"not"},t8=["select","insert","upsert","update","delete"];function x1(e){try{e.__SENTRY_INSTRUMENTED__=!0}catch{}}function L1(e){try{return e.__SENTRY_INSTRUMENTED__}catch{return!1}}function n8(e,t){if(Object.keys(t).length>0)return t;if(Array.isArray(e)&&e.length>0)return e}function ore(e,t){return n8(e,t)!==void 0}function r8(e,t){if(!e)return;if(typeof e.get=="function")return e.get(t)??void 0;const n=e,r=t.toLowerCase(),i=Object.keys(n).find(o=>o.toLowerCase()===r);return i!==void 0?n[i]:void 0}function sre(e,t={}){var n;switch(e){case"GET":return"select";case"POST":return(n=r8(t,"Prefer"))!=null&&n.includes("resolution=")?"upsert":"insert";case"PATCH":return"update";case"DELETE":return"delete";default:return"<unknown-op>"}}function are(e,t){if(t===""||t==="*")return"select(*)";if(e==="select")return`select(${t})`;if(e==="or"||e.endsWith(".or"))return`${e}${t}`;const[n,...r]=t.split(".");let i;return n!=null&&n.startsWith("fts")?i="textSearch":n!=null&&n.startsWith("plfts")?i="textSearch[plain]":n!=null&&n.startsWith("phfts")?i="textSearch[phrase]":n!=null&&n.startsWith("wfts")?i="textSearch[websearch]":i=n&&ire[n]||"filter",`${i}(${e}, ${r.join(".")})`}function e5(e,t=!1){return new Proxy(e,{apply(n,r,i){return qo({name:`auth ${t?"(admin) ":""}${e.name}`,attributes:{[Ct]:"auto.db.supabase",[pn]:"db","db.system":"postgresql","db.operation":`auth.${t?"admin.":""}${e.name}`}},o=>Reflect.apply(n,r,i).then(s=>(Ii(s)&&"error"in s&&s.error?(o.setStatus({code:At}),di(s.error,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}})):o.setStatus({code:Ep}),o.end(),s)).catch(s=>{throw o.setStatus({code:At}),o.end(),di(s,{mechanism:{handled:!1,type:"auto.db.supabase.auth"}}),s}).then(...i))}})}function lre(e){const t=e.auth;if(!(!t||L1(e.auth))){for(const n of nre){const r=t[n];r&&typeof e.auth[n]=="function"&&(e.auth[n]=e5(r))}for(const n of rre){const r=t.admin[n];r&&typeof e.auth.admin[n]=="function"&&(e.auth.admin[n]=e5(r,!0))}x1(e.auth)}}function ure(e,t){L1(e.prototype.from)||(e.prototype.from=new Proxy(e.prototype.from,{apply(n,r,i){const o=Reflect.apply(n,r,i),s=o.constructor;return dre(s,t),o}}),x1(e.prototype.from))}function cre(e,t){L1(e.prototype.then)||(e.prototype.then=new Proxy(e.prototype.then,{apply(n,r,i){var b;const o=t8,s=r,a=sre(s.method,s.headers);if(!o.includes(a)||!((b=s==null?void 0:s.url)!=null&&b.pathname)||typeof s.url.pathname!="string")return Reflect.apply(n,r,i);const l=s.url.pathname.split("/"),u=l.length>0?l[l.length-1]:"",c=[];
172for(const[S,C]of s.url.searchParams.entries())c.push(are(S,C));const d=Object.create(null);if(Fr(s.body))for(const[S,C]of Object.entries(s.body))d[S]=C;const f=$e(),p=t.sendOperationData??(f==null?void 0:f.getDataCollectionOptions().databaseQueryData)===!0,h=n8(s.body,d),m=a==="select"?"":`${a}${ore(s.body,d)?"(...) ":""}`,v=p?c.join(" "):c.length>0?"[redacted]":"",g=[m.trimEnd(),v].filter(Boolean).join(" "),y=g?`${g} from(${u})`:`from(${u})`,_={"db.table":u,"db.schema":s.schema,"db.url":s.url.origin,"db.sdk":r8(s.headers,"X-Client-Info"),"db.system":"postgresql","db.operation":a,[Ct]:"auto.db.supabase",[pn]:"db"};return c.length&&p&&(_["db.query"]=c),h!==void 0&&p&&(_["db.body"]=h),qo({name:y,attributes:_},S=>Reflect.apply(n,r,[]).then(C=>{if(S&&(C&&typeof C=="object"&&"status"in C&&Uf(S,C.status||500),S.end()),C!=null&&C.error){const T=new Error(C.error.message);C.error.code&&(T.code=C.error.code),C.error.details&&(T.details=C.error.details);const A={};c.length&&p&&(A.query=c),h!==void 0&&p&&(A.body=h),di(T,L=>(L.addEventProcessor(x=>(Io(x,{handled:!1,type:"auto.db.supabase.postgres"}),x)),L.setContext("supabase",A),L))}const E={type:"supabase",category:`db.${a}`,message:y},w={};return c.length&&p&&(w.query=c),h!==void 0&&p&&(w.body=h),Object.keys(w).length&&(E.data=w),ao(E),C},C=>{throw S&&(Uf(S,500),S.end()),C}).then(...i))}}),x1(e.prototype.then))}function dre(e,t){for(const n of t8)L1(e.prototype[n])||(e.prototype[n]=new Proxy(e.prototype[n],{apply(r,i,o){const s=Reflect.apply(r,i,o),a=s.constructor;return Pe&&X.log(`Instrumenting ${n} operation's PostgRESTFilterBuilder`),cre(a,t),s}}),x1(e.prototype[n]))}const i8=(e,t={})=>{if(!e){Pe&&X.warn("Supabase integration was not installed because no Supabase client was provided.");return}const n=e.constructor===Function?e:e.constructor;ure(n,t),lre(e)},fre="Supabase",pre=(e,t)=>({setupOnce(){i8(e,t)},name:fre}),hre=e=>pre(e.supabaseClient,{sendOperationData:e.sendOperationData}),mre=10,vre="ZodErrors";function gre(e){return Wr(e)&&e.name==="ZodError"&&Array.isArray(e.issues)}function yre(e){return{...e,path:"path"in e&&Array.isArray(e.path)?e.path.join("."):void 0,keys:"keys"in e?JSON.stringify(e.keys):void 0,unionErrors:"unionErrors"in e?JSON.stringify(e.unionErrors):void 0}}function bre(e){return e.map(t=>typeof t=="number"?"<array>":t).join(".")}function _re(e){const t=new Set;for(const r of e.issues){const i=bre(r.path);i.length>0&&t.add(i)}const n=Array.from(t);if(n.length===0){let r="variable";if(e.issues.length>0){const i=e.issues[0];i!==void 0&&"expected"in i&&typeof i.expected=="string"&&(r=i.expected)}return`Failed to validate ${r}`}return`Failed to validate keys: ${Ff(n.join(", "),100)}`}function Sre(e,t=!1,n,r){var i;if(!((i=n.exception)!=null&&i.values)||!r.originalException||!gre(r.originalException)||r.originalException.issues.length===0)return n;try{const s=(t?r.originalException.issues:r.originalException.issues.slice(0,e)).map(yre);return t&&(Array.isArray(r.attachments)||(r.attachments=[]),r.attachments.push({filename:"zod_issues.json",data:JSON.stringify({issues:s})})),{...n,exception:{...n.exception,values:[{...n.exception.values[0],value:_re(r.originalException)},...n.exception.values.slice(1)]},extra:{...n.extra,"zoderror.issues":s.slice(0,e)}}}catch(o){return{...n,extra:{...n.extra,"zoderrors sentry integration parse error":{message:"an exception was thrown while processing ZodError within applyZodErrorsToEvent()",error:o instanceof Error?`${o.name}: ${o.message} 173${o.stack}`:"unknown"}}}}}const Ere=(e={})=>{const t=e.limit??mre;return{name:vre,processEvent(n,r){return Sre(t,e.saveZodIssuesAsAttachment,n,r)}}},Cre=Ere,wre=e=>({name:"ThirdPartyErrorsFilter",setup(t){t.on("beforeEnvelope",n=>{Tl(n,(r,i)=>{if(i==="event"){const o=Array.isArray(r)?r[1]:void 0;o&&(Z6(o),r[1]=o)}})}),t.on("applyFrameMetadata",n=>{if(n.type)return;const r=t.getOptions().stackParser;X6(r,n)})},preprocessEvent(t){e.ignoreSentryInternalFrames&&(Ke._sentryWrappedDepth??0)>0&&(t.sdkProcessingMetadata={...t.sdkProcessingMetadata,insideSentryWrapped:!0})},processEvent(t){var i,o,s;const n=e.ignoreSentryInternalFrames?((i=t.sdkProcessingMetadata)==null?void 0:i.insideSentryWrapped)===!0&&((s=(o=t.exception)==null?void 0:o.values)==null?void 0:s.length)===1:!1,r=Are(t,e.ignoreSentryInternalFrames,n);if(r){const a=e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="apply-tag-if-contains-third-party-frames"?"some":"every";if(r[a](u=>!u.some(c=>
173e.filterKeys.includes(c)))){if(e.behaviour==="drop-error-if-contains-third-party-frames"||e.behaviour==="drop-error-if-exclusively-contains-third-party-frames")return null;t.tags={...t.tags,third_party_code:!0}}}return t}});function Tre(e,t,n){var r;if(t!==0)return!1;if(n&&Ire(e)||e.function==="sentryWrapped")return!0;if(!e.context_line||!e.filename||!e.filename.includes("sentry")||!e.filename.includes("helpers")||!e.context_line.includes(Lre))return!1;if(e.pre_context){const i=e.pre_context.length;for(let o=0;o<i;o++)if((r=e.pre_context[o])!=null&&r.includes(xre))return!0}return!1}function Are(e,t,n){const r=C_(e);if(r)return r.filter((i,o)=>!i.filename||i.lineno==null&&i.colno==null&&i.instruction_addr==null?!1:!t||!Tre(i,o,!!n)).map(i=>i.module_metadata?Object.keys(i.module_metadata).filter(o=>o.startsWith(t5)).map(o=>o.slice(t5.length)):[])}function Ire(e){return!e.context_line&&!e.pre_context&&!!e.function&&e.function.length<=2}const t5="_sentryBundlerPluginAppKey:",xre="Attempt to invoke user-land function",Lre="fn.apply(this, wrappedArguments)",kre=100,Mre=10,Th="flag.evaluation.";function Qc(e){if(e.type)return e;const n=nt().getScopeData().contexts.flags,r=n?n.values:[];return r.length&&(e.contexts===void 0&&(e.contexts={}),e.contexts.flags={values:[...r]}),e}function Al(e,t,n=kre){const r=nt().getScopeData().contexts;r.flags||(r.flags={values:[]});const i=r.flags.values;Rre(i,e,t,n)}function Rre(e,t,n,r){if(typeof n!="boolean")return;if(e.length>r){Pe&&X.error(`[Feature Flags] insertToFlagBuffer called on a buffer larger than maxSize=${r}`);return}const i=e.findIndex(o=>o.flag===t);i!==-1&&e.splice(i,1),e.length===r&&e.shift(),e.push({flag:t,result:n})}function Il(e,t,n=Mre){if(typeof t!="boolean")return;const r=bn();if(!r)return;const i=ct(r).data;if(`${Th}${e}`in i){r.setAttribute(`${Th}${e}`,t);return}Object.keys(i).filter(s=>s.startsWith(Th)).length<n&&r.setAttribute(`${Th}${e}`,t)}const Pre=()=>({name:"FeatureFlags",processEvent(e,t,n){return Qc(e)},addFeatureFlag(e,t){Al(e,t),Il(e,t)}}),Ore=({growthbookClass:e})=>({name:"GrowthBook",setupOnce(){const t=e.prototype;typeof t.isOn=="function"&&tr(t,"isOn",n5),typeof t.getFeatureValue=="function"&&tr(t,"getFeatureValue",n5)},processEvent(t,n,r){return Qc(t)}});function n5(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"&&(Al(n,r),Il(n,r)),r}}const $re="ConversationId",Nre=()=>({name:$re,setup(e){e.on("spanStart",t=>{const n=nt().getScopeData(),r=Zt().getScopeData(),i=n.conversationId||r.conversationId;if(i){const{op:o,data:s,description:a}=ct(t);if(!(o!=null&&o.startsWith("gen_ai."))&&!s["ai.operationId"]&&!(a!=null&&a.startsWith("ai.")))return;t.setAttribute(yQ,i)}})}}),Hre=Nre;function Dre(e,t,n,r,i){if(!e.fetchData)return;const{method:o,url:s}=e.fetchData,a=Lr()&&t(s);if(e.endTimestamp){const m=e.fetchData.__span;if(!m)return;const v=r[m];v&&(a&&(Bre(v,e),Vre(v,e,i)),delete r[m]);return}const{spanOrigin:l="auto.http.browser",propagateTraceparent:u=!1}=typeof i=="object"?i:{spanOrigin:i},c=$e(),d=!!bn(),f=d||!!c&&Ni(c),p=a&&f?so(Wre(s,o,l)):new wl,h=w1(p)&&d?void 0:p;if(a&&!f&&(c==null||c.recordDroppedEvent("no_parent_span","span")),e.fetchData.__span=p.spanContext().spanId,r[p.spanContext().spanId]=p,n(e.fetchData.url)){const m=e.args[0],v={...e.args[1]||{}},g=Fre(m,v,Lr()&&f?h:void 0,u);g&&(e.args[1]=v,v.headers=g)}if(c){const m={input:e.args,response:e.response,startTimestamp:e.startTimestamp,endTimestamp:e.endTimestamp};c.emit("beforeOutgoingRequestSpan",p,m)}return p}function Vre(e,t,n){var i;const r=typeof n=="object"&&n!==null?n.onRequestSpanEnd:void 0;r==null||r(e,{headers:(i=t.response)==null?void 0:i.headers,error:t.error})}function Fre(e,t,n,r){const i=rC({span:n,propagateTraceparent:r}),o=i["sentry-trace"],s=i.baggage,a=i.traceparent;if(!o)return;const l=t.headers||(DE(e)?e.headers:void 0);if(l)if(Ure(l)){const u=new Headers(l);if(u.get("sentry-trace")||u.set("sentry-trace",o),r&&a&&!u.get("traceparent")&&u.set("traceparent",a),s){const c=u.get("baggage");c?Ah(c)||u.set("baggage",`${c},${s}`):u.set("baggage",s)}return u}else if(jre(l)){const u=[...l];u.find(d=>d[0]==="sentry-trace")||u.push(["sentry-trace",o]),r&&a&&!u.find(d=>d[0]==="traceparent")&&u.push(["traceparent",a]);const c=l.find(d=>d[0]==="baggage"&&typeof d[1]=="string"&&Ah(d[1]));return s&&!c&&u.push(["baggage",s]),u}else{const u="sentry-trace"in l?l["sentry-trace"]:void 0,c="traceparent"in l?l.traceparent:void 0,d="baggage"in l?l.baggage:void 0,f=d?Array.isArray(d)?[...d]:[d]:[],p=d&&(Array.isArray(d)?d.find(m=>Ah(m)):Ah(d));s&&!p&&f.push(s);const h=Object.assign({},l,{"sentry-trace":u??o,...f.length>0&&{baggage:f.join(",")}});return r&&a&&!c&&(h.traceparent=a),h}else return{"sentry-trace":o,...s&&{baggage:s},...a&&{traceparent:a}}}function Bre(e,t){var n,r;if(t.response){Uf(e,t.response.status);const i=(r=(n=t.response)==null?void 0:n.headers)==null?void 0:r.get("content-length");if(i){const o=parseInt(i);o>0&&e.setAttribute("http.response_content_length",o)}}else t.error&&e.setStatus({code:At,message:"internal_error"});e.end()}function Ah(e){return typeof e!="string"?!1:e.split(",").some(t=>t.trim().startsWith(Rv))}function Ure(e){return typeof Headers<"u"&&y1(e,Headers)}function jre(e){return Array.isArray(e)?e.every(t=>Array.isArray(t)&&t.length===2&&typeof t[0]=="string"):!1}function Wre(e,t,n){if(e.startsWith("data:")){const o=eo(e);return{name:`${t} ${o}`,attributes:r5(e,void 0,t,n)}}const r=zf(e),i=r?V6(r):e;return{name:`${t} ${i}`,attributes:r5(e,r,t,n)}}function r5(e,t,n,r){const i={url:eo(e),type:"fetch","http.method":n,[Ct]:r,[pn]:"http.client"};return t&&(I1(t)||(i[a6]=eo(t.href),i[ql]=eo(t.href),i["server.address"]=t.host),t.search&&(i["http.query"]=t.search),t.hash&&(i["http.fragment"]=t.hash)),i}function o8(e,t={}
173,n=nt()){const{message:r,name:i,email:o,url:s,source:a,associatedEventId:l,tags:u}=e,c={contexts:{feedback:{contact_email:o,name:i,message:r,url:s,source:a,associated_event_id:l}},type:"feedback",level:"info",tags:u},d=(n==null?void 0:n.getClient())||$e();return d&&d.emit("beforeSendFeedback",c,t),n.captureEvent(c,t)}function ed(e,t,n,r,i){Dv({level:e,message:t,attributes:n,severityNumber:i},r)}function Gre(e,t,{scope:n}={}){ed("trace",e,t,n)}function zre(e,t,{scope:n}={}){ed("debug",e,t,n)}function qre(e,t,{scope:n}={}){ed("info",e,t,n)}function Kre(e,t,{scope:n}={}){ed("warn",e,t,n)}function Xre(e,t,{scope:n}={}){ed("error",e,t,n)}function Zre(e,t,{scope:n}={}){ed("fatal",e,t,n)}const Yre=Object.freeze(Object.defineProperty({__proto__:null,debug:zre,error:Xre,fatal:Zre,fmt:fne,info:qre,trace:Gre,warn:Kre},Symbol.toStringTag,{value:"Module"}));function Bv(e,t,n){return"util"in Ke&&typeof Ke.util.format=="function"?Ke.util.format(...e):Jre(e,t,n)}function Jre(e,t,n){return e.map(r=>Mo(r)?String(r):JSON.stringify(Fn(r,t,n))).join(" ")}function s8(e){return/%[sdifocO]/.test(e)}function a8(e,t){const n={},r=new Array(t.length).fill("{}").join(" ");return n["sentry.message.template"]=`${e} ${r}`,t.forEach((i,o)=>{n[`sentry.message.parameter.${o}`]=i}),n}const Qre="ConsoleLogs",i5={[Ct]:"auto.log.console"},eie=(e={})=>{const t=e.levels||$E;return{name:Qre,setup(n){const{enableLogs:r,normalizeDepth:i=3,normalizeMaxBreadth:o=1e3}=n.getOptions();if(!r){Pe&&X.warn("`enableLogs` is not enabled, ConsoleLogs integration disabled");return}const s=iC(({args:a,level:l})=>
173{if($e()!==n||!t.includes(l))return;const u=a[0],c=a.slice(1);if(l==="assert"){if(!u){const p=c.length>0?`Assertion failed: ${Bv(c,i,o)}`:"Assertion failed";Dv({level:"error",message:p,attributes:i5})}return}const d=l==="log",f={...i5};if(Fr(u)){Object.assign(f,Fn(u,i,o));const p=typeof a[1]=="string"?2:1;a.slice(p).forEach((m,v)=>{f[`sentry.message.parameter.${v}`]=Fn(m,i,o)})}else if(c.length>0&&typeof u=="string"&&!s8(u)){const h=a8(u,c);for(const[m,v]of Object.entries(h))f[m]=m.startsWith("sentry.message.parameter.")?Fn(v,i,o):v}Dv({level:d?"info":l,message:Bv(a,i,o),severityNumber:d?10:void 0,attributes:f})});n.registerCleanup(s)}}},tie=eie;function oC(e,t,n,r){Hte({type:e,name:t,value:n,unit:r==null?void 0:r.unit,attributes:r==null?void 0:r.attributes},{scope:r==null?void 0:r.scope})}function nie(e,t=1,n){oC("counter",e,t,n)}function rie(e,t,n){oC("gauge",e,t,n)}function V_(e,t,n){oC("distribution",e,t,n)}const iie=Object.freeze(Object.defineProperty({__proto__:null,count:nie,distribution:V_,gauge:rie},Symbol.toStringTag,{value:"Module"})),oie=["trace","debug","info","warn","error","fatal"];function sie(e={}){const t=new Set(e.levels??oie),n=e.client;return{log(r){const{type:i,level:o,message:s,args:a,tag:l,date:u,...c}=r,d=n||$e();if(!d)return;const f=uie(i,o);if(!t.has(f))return;const{normalizeDepth:p=3,normalizeMaxBreadth:h=1e3}=d.getOptions(),m={};for(const[g,y]of Object.entries(c))m[g]=Fn(y,p,h);m["sentry.origin"]="auto.log.consola",l&&(m["consola.tag"]=l),i&&(m["consola.type"]=i),o!=null&&typeof o=="number"&&(m["consola.level"]=o);const v=die(cie(a,p,h),p,h);v!=null&&v.attributes&&Object.assign(m,v.attributes),Dv({level:f,message:(v==null?void 0:v.message)||s||a&&Bv(a,p,h)||"",attributes:m})}}}const aie={silent:"trace",fatal:"fatal",error:"error",warn:"warn",log:"info",info:"info",success:"info",fail:"error",ready:"info",start:"info",box:"info",debug:"debug",trace:"trace",verbose:"debug",critical:"fatal",notice:"info"},lie={0:"fatal",1:"warn",2:"info",3:"info",4:"debug",5:"trace"};function uie(e,t){if(e==="verbose")return"debug";if(e==="silent")return"trace";if(e){const n=aie[e];if(n)return n}if(typeof t=="number"){const n=lie[t];if(n)return n}return"info"}function cie(e,t,n){if(!(e!=null&&e.length))return{message:""};const r=Bv(e,t,n),i=e[0];if(Fr(i)){const o=typeof e[1]=="string"?2:1,s=e.slice(o);return{message:r,attributes:i,messageParameters:s}}else{const o=e.slice(1),s=o.length>0&&typeof i=="string"&&!s8(i);return{message:r,messageTemplate:s?i:void 0,messageParameters:s?o:void 0}}}function die(e,t,n){const{message:r,attributes:i,messageTemplate:o,messageParameters:s}=e,a={};if(o&&s){const l=a8(o,s);for(const[u,c]of Object.entries(l))a[u]=u.startsWith("sentry.message.parameter.")?Fn(c,t,n):c}else s&&s.length>0&&s.forEach((l,u)=>{a[`sentry.message.parameter.${u}`]=Fn(l,t,n)});return{message:r,attributes:{...Fn(i,t,n),...a}}}const fie="gen_ai.prompt",xp="gen_ai.system",ir="gen_ai.request.model",sC="gen_ai.request.stream",k1="gen_ai.request.temperature",aC="gen_ai.request.max_tokens",M1="gen_ai.request.frequency_penalty",lC="gen_ai.request.presence_penalty",R1="gen_ai.request.top_p",l8="gen_ai.request.top_k",u8="gen_ai.request.encoding_format",c8="gen_ai.request.dimensions",Zu="gen_ai.response.finish_reasons",td="gen_ai.response.model",P1="gen_ai.response.id",pie="gen_ai.response.stop_reason",xl="gen_ai.usage.input_tokens",Ll="gen_ai.usage.output_tokens",ga="gen_ai.usage.total_tokens",to="gen_ai.operation.name",kl="sentry.sdk_meta.gen_ai.input.messages.original_length",nd="gen_ai.input.messages",Lp="gen_ai.system_instructions",xo="gen_ai.response.text",kp="gen_ai.request.available_tools",hie="gen_ai.response.streaming",sa="gen_ai.response.tool_calls",Mp="gen_ai.agent.name",mie="gen_ai.pipeline.name",uC="gen_ai.conversation.id",vie="gen_ai.usage.cache_creation_input_tokens",gie="gen_ai.usage.cache_read_input_tokens",yie="gen_ai.invoke_agent",cC="gen_ai.embeddings.input",d8="gen_ai.embeddings",o5="gen_ai.execute_tool",f8="gen_ai.tool.name",bie="gen_ai.tool.call.id",_ie="gen_ai.tool.type",p8="gen_ai.tool.input",h8="gen_ai.tool.output",Sie="gen_ai.tool.description";function Yu(e){return!e||typeof e!="object"?!1:Cie(e)||v8(e)||Eie(e)||g8(e)||y8(e)||wie(e)||Tie(e)||Aie(e)||Iie(e)||xie(e)||Lie(e)||kie(e)}function Eie(e){return"image_url"in e?typeof e.image_url=="string"?e.image_url.startsWith("data:"):m8(e):!1}function m8(e){return"image_url"in e&&!!e.image_url&&typeof e.image_url=="object"&&"url"in e.image_url&&typeof e.image_url.url=="string"&&e.image_url.url.startsWith("data:")}function Cie(e){return"type"in e&&typeof e.type=="string"&&"source"in e&&Yu(e.source)}function v8(e){return"inlineData"in e&&!!e.inlineData&&typeof e.inlineData=="object"&&"data"in e.inlineData&&typeof e.inlineData.data=="str
173ing"}function g8(e){return"type"in e&&e.type==="input_audio"&&"input_audio"in e&&!!e.input_audio&&typeof e.input_audio=="object"&&"data"in e.input_audio&&typeof e.input_audio.data=="string"}function y8(e){return"type"in e&&e.type==="file"&&"file"in e&&!!e.file&&typeof e.file=="object"&&"file_data"in e.file&&typeof e.file.file_data=="string"}function wie(e){return"media_type"in e&&typeof e.media_type=="string"&&"data"in e}function Tie(e){return"type"in e&&e.type==="file"&&"mediaType"in e&&typeof e.mediaType=="string"&&"data"in e&&typeof e.data=="string"&&!e.data.startsWith("http://")&&!e.data.startsWith("https://")}function Aie(e){return"type"in e&&e.type==="image"&&"image"in e&&typeof e.image=="string"&&!e.image.startsWith("http://")&&!e.image.startsWith("https://")}function Iie(e){return"type"in e&&(e.type==="blob"||e.type==="base64")}function xie(e){return"b64_json"in e}function Lie(e){return"type"in e&&"result"in e&&e.type==="image_generation"}function kie(e){return"uri"in e&&typeof e.uri=="string"&&e.uri.startsWith("data:")}const gd="[Blob substitute]",Mie=["image_url","data","content","b64_json","result","uri","image"];function rf(e){const t={...e};Yu(t.source)&&(t.source=rf(t.source)),v8(e)&&(t.inlineData={...e.inlineData,data:gd}),m8(e)&&(t.image_url={...e.image_url,url:gd}),g8(e)&&(t.input_audio={...e.input_audio,data:gd}),y8(e)&&(t.file={...e.file,file_data:gd});for(const n of Mie)typeof t[n]=="string"&&(t[n]=gd);return t}const b8=2e4,Uv=e=>new TextEncoder().encode(e).length,dC=e=>Uv(JSON.stringify(e));function O1(e,t){if(Uv(e)<=t)return e;let n=0,r=e.length,i="";for(;n<=r;){const o=Math.floor((n+r)/2),s=e.slice(0,o);Uv(s)<=t?(i=s,n=o+1):r=o-1}return i}function Rie(e){return typeof e=="string"?e:"text"in e&&typeof e.text=="string"?e.text:""}function s5(e,t){return typeof e=="string"?t:{...e,text:t}}function Pie(e){return e!==null&&typeof e=="object"&&"content"in e&&typeof e.content=="string"}function _8(e){return e!==null&&typeof e=="object"&&"content"in e&&Array.isArray(e.content)}function S8(e){return e!==null&&typeof e=="object"&&"parts"in e&&Array.isArray(e.parts)&&e.parts.length>0}function Oie(e,t){const n={...e,content:""},r=dC(n),i=t-r;if(i<=0)return[];const o=O1(e.content,i);return[{...e,content:o}]}function $ie(e){return"parts"in e&&Array.isArray(e.parts)?{key:"parts",items:e.parts}:"content"in e&&Array.isArray(e.content)?{key:"content",items:e.content}:{key:null,items:[]}}function Nie(e,t){const{key:n,items:r}=$ie(e);if(n===null||r.length===0)return[];const i=r.map(l=>s5(l,"")),o=dC({...e,[n]:i});let s=t-o;if(s<=0)return[];const a=[];for(const l of r){const u=Rie(l),c=Uv(u);if(c<=s)a.push(l),s-=c;else if(a.length===0){const d=O1(u,s);d&&a.push(s5(l,d));break}else break}return a.length<=0?[]:[{...e,[n]:a}]}function Hie(e,t){if(!e)return[];if(typeof e=="string"){const n=O1(e,t);return n?[n]:[]}return typeof e!="object"?[]:Pie(e)?Oie(e,t):_8(e)||S8(e)?Nie(e,t):[]}function F_(e){return e.map(n=>{let r;return n&&typeof n=="object"&&(_8(n)?r={...n,content:F_(n.content)}:"content"in n&&Yu(n.content)&&(r={...n,content:rf(n.content)}),S8(n)&&(r={...r??n,parts:F_(n.parts)}),Yu(r)?r=rf(r):Yu(n)&&(r=rf(n))),r??n})}function Die(e,t){if(!Array.isArray(e)||e.length===0)return e;const n=t-2,r=e[e.length-1],i=F_([r]),o=i[0];return dC(o)<=n?i:Hie(o,n)}function Vie(e){return Die(e,b8)}function Fie(e){return O1(e,b8)}function Kl(e){var n;const t=(n=$e())==null?void 0:n.getDataCollectionOptions().genAI;return{...e,recordInputs:(e==null?void 0:e.recordInputs)??(t==null?void 0:t.inputs)??!1,recordOutputs:(e==null?void 0:e.recordOutputs)??(t==null?void 0:t.outputs)??!1}}function Ss(e){if(e!==void 0)return e;const t=$e();return t?!Ni(t)&&t.getOptions().streamGenAiSpans===!1:!0}function E8(e,t){return e?`${e}.${t}`:t}function Bie(e,t,n,r,i){if(t!==void 0&&e.setAttributes({[xl]:t}),n!==void 0&&e.setAttributes({[Ll]:n}),t!==void 0||n!==void 0||r!==void 0||i!==void 0){const o=(t??0)+(n??0)+(r??0)+(i??0);e.setAttributes({[ga]:o})}}function $1(e,t,n){if(!e.isRecording())return;const r={[hie]:!0};t.responseId&&(r[P1]=t.responseId),t.responseModel&&(r[td]=t.responseModel),t.promptTokens!==void 0&&(r[xl]=t.promptTokens),t.completionTokens!==void 0&&(r[Ll]=t.completionTokens),t.totalTokens!==void 0?r[ga]=t.totalTokens:(t.promptTokens!==void 0||t.completionTokens!==void 0||t.cacheCreationInputTokens!==void 0||t.cacheReadInputTokens!==void 0)&&(r[ga]=(t.promptTokens??0)+(t.completionTokens??0)+(t.cacheCreationInputTokens??0)+(t.cacheReadInputTokens??0)),t.finishReasons.length&&(r[Zu]=JSON.stringify(t.finishReasons)),n&&t.responseTexts.length&&(r[xo]=t.responseTexts.join("")),n&&t.toolCalls.length&&(r[sa]=JSON.stringify(t.toolCalls)),e.setAttributes(r),e.end()}function rd(e){if(typeof e=="string")return Fie(e);try{return JSON.stringify(Array.isArray(e)?Vie(e):e)}catch{return"[unserializable]"}}function Rp(e){if(!Array.isArray(e))return{systemInstructions:void 0,filteredMessages:e};const t=e.findIndex(s=>s&&typeof s=="object"&&"role"in s&&s.role==="system");if(t===-1)return{systemInstructions:void 0,filteredMessages:e};const n=e[t],r=typeof n.content=="string"?n.content:n.content!==void 0?JSON.stringify(n.content):void 0;if(!r)return{systemInstructions:void 0,filteredMessages:e};const i=JSON.stringify([{type:"text",content:r}]),o=[...e.slice(0,t),...e.slice(t+1)];return{systemInstructions:i,filteredMessages:o}}async function Uie(e,t){const[n,r]=await Promise.all([t,e]);return r&&typeof r=="object"&&"data"in r?{...r,data:n}:n}function jv(e,t){return Wl(e)?new Proxy(e,{get(n,r){const o=r in Promise.prototype||r===Symbol.toStringTag?t:n,s=Reflect.get(o,r);return r==="withResponse"&&typeof s=="function"?function(){const l=s.call(n);return Uie(l,t)}:typeof s=="function"?s.bind(o):s}}):t}const jie={"responses.create":{operation:"chat"}
173,"chat.completions.create":{operation:"chat"},"embeddings.create":{operation:"embeddings"},"conversations.create":{operation:"chat"}},Wie=["response.output_item.added","response.function_call_arguments.delta","response.function_call_arguments.done","response.output_item.done"],Gie=["response.created","response.in_progress","response.failed","response.completed","response.incomplete","response.queued","response.output_text.delta",...Wie];function zie(e){return e!==null&&typeof e=="object"&&"type"in e&&typeof e.type=="string"&&e.type.startsWith("response.")}function qie(e){return e!==null&&typeof e=="object"&&"object"in e&&e.object==="chat.completion.chunk"}function Kie(e,t,n){if(!t||typeof t!="object")return;const r=t,i={};if(typeof r.id=="string"&&(i[P1]=r.id),typeof r.model=="string"&&(i[td]=r.model),r.object==="conversation"&&typeof r.id=="string"&&(i[uC]=r.id),r.usage&&typeof r.usage=="object"){const o=r.usage,s=o.prompt_tokens??o.input_tokens;typeof s=="number"&&(i[xl]=s);const a=o.completion_tokens??o.output_tokens;typeof a=="number"&&(i[Ll]=a),typeof o.total_tokens=="number"&&(i[ga]=o.total_tokens)}if(Array.isArray(r.choices)){const o=r.choices,s=o.map(a=>a.finish_reason).filter(a=>typeof a=="string");if(s.length>0&&(i[Zu]=JSON.stringify(s)),n){const a=o.map(u=>{const c=u.message;return(c==null?void 0:c.content)||""});i[xo]=JSON.stringify(a);const l=o.map(u=>{const c=u.message;return c==null?void 0:c.tool_calls}).filter(u=>Array.isArray(u)&&u.length>0).flat();l.length>0&&(i[sa]=JSON.stringify(l))}}if(typeof r.status=="string"&&(i[Zu]||(i[Zu]=JSON.stringify([r.status]))),n&&(typeof r.output_text=="string"&&!i[xo]&&(i[xo]=r.output_text),Array.isArray(r.output)&&r.output.length>0&&!i[sa])){const o=r.output.filter(s=>(s==null?void 0:s.type)==="function_call");o.length>0&&(i[sa]=JSON.stringify(o))}e.setAttributes(i)}function Xie(e){if("conversation"in e&&typeof e.conversation=="string")return e.conversation;if("previous_response_id"in e&&typeof e.previous_response_id=="string")return e.previous_response_id}function Zie(e){const t={[ir]:e.model??"unknown"};"temperature"in e&&(t[k1]=e.temperature),"top_p"in e&&(t[R1]=e.top_p),"frequency_penalty"in e&&(t[M1]=e.frequency_penalty),"presence_penalty"in e&&(t[lC]=e.presence_penalty),"stream"in e&&(t[sC]=e.stream),"encoding_format"in e&&(t[u8]=e.encoding_format),"dimensions"in e&&(t[c8]=e.dimensions);const n=Xie(e);return n&&(t[uC]=n),t}function Yie(e,t){for(const n of e){const r=n.index;if(!(r===void 0||!n.function))if(!(r in t.chatCompletionToolCalls))t.chatCompletionToolCalls[r]={...n,function:{name:n.function.name,arguments:n.function.arguments||""}};else{const i=t.chatCompletionToolCalls[r];n.function.arguments&&(i!=null&&i.function)&&(i.function.arguments+=n.function.arguments)}}}function Jie(e,t,n){var r,i;t.responseId=e.id??t.responseId,t.responseModel=e.model??t.responseModel,e.usage&&(t.promptTokens=e.usage.prompt_tokens,t.completionTokens=e.usage.completion_tokens,t.totalTokens=e.usage.total_tokens);for(const o of e.choices??[])n&&((r=o.delta)!=null&&r.content&&t.responseTexts.push(o.delta.
173content),(i=o.delta)!=null&&i.tool_calls&&Yie(o.delta.tool_calls,t)),o.finish_reason&&t.finishReasons.push(o.finish_reason)}function Qie(e,t,n,r){if(!(e&&typeof e=="object")){t.eventTypes.push("unknown:non-object");return}if(e instanceof Error){r.setStatus({code:At,message:"internal_error"}),di(e,{mechanism:{handled:!1,type:"auto.ai.openai.stream-response"}});return}if(!("type"in e))return;const i=e;if(!Gie.includes(i.type)){t.eventTypes.push(i.type);return}if(n&&(i.type==="response.output_item.done"&&"item"in i&&t.responsesApiToolCalls.push(i.item),i.type==="response.output_text.delta"&&"delta"in i&&i.delta)){t.responseTexts.push(i.delta);return}if("response"in i){const{response:o}=i;t.responseId=o.id??t.responseId,t.responseModel=o.model??t.responseModel,o.usage&&(t.promptTokens=o.usage.input_tokens,t.completionTokens=o.usage.output_tokens,t.totalTokens=o.usage.total_tokens),o.status&&t.finishReasons.push(o.status),n&&o.output_text&&t.responseTexts.push(o.output_text)}}async function*eoe(e,t,n){const r={eventTypes:[],responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,totalTokens:void 0,chatCompletionToolCalls:{},responsesApiToolCalls:[]};try{for await(const i of e)qie(i)?Jie(i,r,n):zie(i)&&Qie(i,r,n,t),yield i}finally{const i=[...Object.values(r.chatCompletionToolCalls),...r.responsesApiToolCalls];$1(t,{...r,toolCalls:i},n)}}function toe(e){const t=Array.isArray(e.tools)?e.tools:[],r=e.web_search_options&&typeof e.web_search_options=="object"?[{type:"web_search_options",...e.web_search_options}]:[],i=[...t,...r];if(i.length!==0)try{return JSON.stringify(i)}catch(o){Pe&&X.error("Failed to serialize OpenAI tools:",o);return}}function noe(e,t){const n={[xp]:"openai",[to]:t,[Ct]:"auto.ai.openai"};if(e.length>0&&typeof e[0]=="object"&&e[0]!==null){const r=e[0],i=toe(r);i&&(n[kp]=i),Object.assign(n,Zie(r))}else n[ir]="unknown";return n}function a5(e,t,n,r){if(n==="embeddings"&&"input"in t){const a=t.input;if(a==null||typeof a=="string"&&a.length===0||Array.isArray(a)&&a.length===0)return;e.setAttribute(cC,typeof a=="string"?a:JSON.stringify(a));return}const i="input"in t?t.input:"messages"in t?t.messages:void 0;if(!i||Array.isArray(i)&&i.length===0)return;const{systemInstructions:o,filteredMessages:s}=Rp(i);o&&e.setAttribute(Lp,o),e.setAttribute(nd,r?rd(s):ai(s)),Array.isArray(s)?e.setAttribute(kl,s.length):e.setAttribute(kl,1)}function roe(e,t,n,r,i){return function(...s){const a=n.operation||"unknown",l=noe(s,a),u=l[ir]||"unknown",c=s[0],d=c&&typeof c=="object"&&c.stream===!0,f={name:`${a} ${u}`,op:`gen_ai.${a}`,attributes:l};if(d){let m;const v=os(f,g=>(m=e.apply(r,s),i.recordInputs&&c&&a5(g,c,a,Ss(i.enableTruncation)),(async()=>{try{const y=await m;return eoe(y,g,i.recordOutputs??!1)}catch(y){throw g.setStatus({code:At,message:"internal_error"}),g.end(),y}})()));return jv(m,v)}let p;const h=qo(f,m=>(p=e.apply(r,s),i.recordInputs&&c&&a5(m,c,a,Ss(i.enableTruncation)),p.then(v=>(Kie(m,v,i.recordOutputs),v))));return jv(p,h)}}function C8(e,t="",n){return new Proxy(e,{get(r,i){const o=r[i],s=E8(t,String(i)),a=jie[s];return typeof o=="function"&&a?roe(o,s,a,r,n):typeof o=="function"?o.bind(r):o&&typeof o=="object"?C8(o,s,n):o}})}function ioe(e,t){return C8(e,"",Kl(t))}const l5={"messages.create":{operation:"chat"},"messages.stream":{operation:"chat",streaming:!0},"messages.countTokens":{operation:"chat"},"models.get":{operation:"models"},"completions.create":{operation:"chat"},"models.retrieve":{operation:"models"},"beta.messages.create":{operation:"chat"}};function ooe(e,t,n){if(Array.isArray(t)&&t.length===0)return;const{systemInstructions:r,filteredMessages:i}=Rp(t);r&&e.setAttributes({[Lp]:r});const o=Array.isArray(i)?i.length:1;e.setAttributes({[nd]:n?rd(i):ai(i),[kl]:o})}const soe={invalid_request_error:"invalid_argument",authentication_error:"unauthenticated",permission_error:"permission_denied",not_found_error:"not_found",request_too_large:"failed_precondition",rate_limit_error:"resource_exhausted",api_error:"internal_error",overloaded_error:"unavailable"};function w8(e){return e&&soe[e]||"internal_error"}function aoe(e,t){t.error&&(e.setStatus({code:At,message:w8(t.error.type)}),di(t.error,{mechanism:{handled:!1,type:"auto.ai.anthropic.anthropic_error"}}))}function loe(e){const{system:t,messages:n,input:r}=e,i=typeof t=="string"?[{role:"system",content:e.system}]:[],o=Array.isArray(r)?r:r!=null?[r]:void 0,s=Array.isArray(n)?n:n!=null?[n]:[],a=o??s;return[...i,...a]}function uoe(e,t){var n;return"type"in e&&typeof e.type=="string"&&e.type==="error"?(t.setStatus({code:At,message:w8((n=e.error)==null?void 0:n.type)}),!0):!1}function coe(e,t){var n;if(e.type==="message_delta"&&(e.usage&&typeof e.usage.output_tokens=="number"&&(t.completionTokens=e.usage.output_tokens),(n=e.delta)!=null&&n.stop_reason&&t.finishReasons.push(e.delta.stop_reason)),e.message){const r=e.message;r.id&&(t.responseId=r.id),r.model&&(t.responseModel=r.model),r.usage&&(typeof r.usage.input_tokens=="number"&&(t.promptTokens=r.usage.input_tokens),typeof r.usage.cache_creation_input_tokens=="number"&&(t.cacheCreationInputTokens=r.usage.cache_creation_input_tokens),typeof r.usage.cache_read_input_tokens=="number"&&(t.cacheReadInputTokens=r.usage.cache_read_input_tokens))}}function doe(e,t){e.type!=="content_block_start"||typeof e.index!="number"||!e.content_block||(e.content_block.type==="tool_use"||e.content_block.type==="server_tool_use")&&(t.activeToolBlocks[e.index]={id:e.content_block.id,name:e.content_block.name,inputJsonParts:[]})}function foe(e,t,n){if(!(e.type!=="content_block_delta"||!e.delta)){if(typeof e.index=="number"&&"partial_json"in e.delta&&t
173ypeof e.delta.partial_json=="string"){const r=t.activeToolBlocks[e.index];r&&r.inputJsonParts.push(e.delta.partial_json)}n&&typeof e.delta.text=="string"&&t.responseTexts.push(e.delta.text)}}function poe(e,t){if(e.type!=="content_block_stop"||typeof e.index!="number")return;const n=t.activeToolBlocks[e.index];if(!n)return;const r=n.inputJsonParts.join("");let i;try{i=r?JSON.parse(r):{}}catch{i={__unparsed:r}}t.toolCalls.push({type:"tool_use",id:n.id,name:n.name,input:i}),delete t.activeToolBlocks[e.index]}function T8(e,t,n,r){!(e&&typeof e=="object")||uoe(e,r)||(coe(e,t),doe(e,t),foe(e,t,n),poe(e,t))}async function*hoe(e,t,n){const r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};try{for await(const i of e)T8(i,r,n,t),yield i}finally{$1(t,r,n)}}function moe(e,t,n){const r={responseTexts:[],finishReasons:[],responseId:"",responseModel:"",promptTokens:void 0,completionTokens:void 0,cacheCreationInputTokens:void 0,cacheReadInputTokens:void 0,toolCalls:[],activeToolBlocks:{}};return e.on("streamEvent",i=>{T8(i,r,n,t)}),e.on("message",()=>{$1(t,r,n)}),e.on("error",i=>{di(i,{mechanism:{handled:!1,type:"auto.ai.anthropic.stream_error"}}),t.isRecording()&&(t.setStatus({code:At,message:"internal_error"}),t.end())}),e}let Sm=!1;const u5=new WeakSet;function voe(e,t,n){const r={[xp]:"anthropic",[to]:n,[Ct]:"auto.ai.anthropic"};if(e.length>0&&typeof e[0]=="object"&&e[0]!==null){const i=e[0];i.tools&&Array.isArray(i.tools)&&(r[kp]=JSON.stringify(i.tools)),r[ir]=i.model??"unknown","temperature"in i&&(r[k1]=i.temperature),"top_p"in i&&(r[R1]=i.top_p),"stream"in i&&(r[sC]=i.stream),"top_k"in i&&(r[l8]=i.top_k),"frequency_penalty"in i&&(r[M1]=i.frequency_penalty),"max_tokens"in i&&(r[aC]=i.max_tokens)}else t==="models.retrieve"||t==="models.get"?r[ir]=e[0]:r[ir]="unknown";return r}function B_(e,t,n){const r=loe(t);ooe(e,r,n),"prompt"in t&&e.setAttributes({[fie]:JSON.stringify(t.prompt)})}function goe(e,t){if("content"in t&&Array.isArray(t.content)){e.setAttributes({[xo]:t.content.map(r=>r.text).filter(r=>!!r).join("")});const n=[];for(const r of t.content)(r.type==="tool_use"||r.type==="server_tool_use")&&n.push(r);n.length>0&&e.setAttributes({[sa]:JSON.stringify(n)})}"completion"in t&&e.setAttributes({[xo]:t.completion}),"input_tokens"in t&&e.setAttributes({[xo]:JSON.stringify(t.input_tokens)})}function yoe(e,t){"id"in t&&"model"in t&&(e.setAttributes({[P1]:t.id,[td]:t.model}),"usage"in t&&t.usage&&Bie(e,t.usage.input_tokens,t.usage.output_tokens,t.usage.cache_creation_input_tokens,t.usage.cache_read_input_tokens))}function boe(e,t,n){if(!(!t||typeof t!="object")){if("type"in t&&t.type==="error"){aoe(e,t);return}n&&goe(e,t),yoe(e,t)}}function c5(e,t){throw t.isRecording()&&(t.setStatus({code:At,message:"internal_error"}),t.end()),e}function _oe(e,t,n,r,i,o,s,a,l,u){const c=r[ir]??"unknown",d={name:`${i} ${c}`,op:`gen_ai.${i}`,attributes:r};if(l&&!u){let f;const p=os(d,h=>(f=e.apply(t,n),a.recordInputs&&s&&B_(h,s,Ss(a.enableTruncation)),(async()=>{try{const m=await f;return hoe(m,h,a.recordOutputs??!1)}catch(m){return c5(m,h)}})()));return jv(f,p)}else return os(d,f=>{try{a.recordInputs&&s&&B_(f,s,Ss(a.enableTruncation)),Sm=!0;const p=e.apply(t,n);return Sm=!1,moe(p,f,a.recordOutputs??!1)}catch(p){return Sm=!1,c5(p,f)}})}function Soe(e,t,n,r,i){return new Proxy(e,{apply(o,s,a){const l=s!==void 0?s:r,u=n.streaming===!0;if(!u&&Sm)return o.apply(l,a);const c=n.operation||"unknown",d=voe(a,t,c),f=d[ir]??"unknown",p=typeof a[0]=="object"?a[0]:void 0,h=!!(p!=null&&p.stream);if(h||u)return _oe(o,l,a,d,c,t,p,i,h,u);let m;const v=qo({name:`${c} ${f}`,op:`gen_ai.${c}`,attributes:d},g=>(m=o.apply(l,a),i.recordInputs&&p&&B_(g,p,Ss(i.enableTruncation)),m.then(y=>(boe(g,y,i.recordOutputs),y))));return jv(m,v)}})}function Eoe(e,t){for(const n of Object.keys(l5)){const r=n.split("."),i=r.pop();let o=e;for(const l of r)o=o==null?void 0:o[l];if(!o||typeof o[i]!="function")continue;const s=o[i];if(u5.has(s))continue;const a=Soe(s,n,l5[n],o,t);u5.add(a),o[i]=a}return e}function Coe(e,t){return Eoe(e,Kl(t))}const woe={"models.generateContent":{operation:"generate_content"},"models.generateContentStream":{operation:"generate_content",streaming:!0},"models.embedContent":{operation:"embeddings"},"chats.create":{proxyResultPath:"chat"},"chat.sendMessage":{operation:"chat"},"chat.sendMessageStream":{operation:"chat",streaming:!0}},Toe="google_genai";function Aoe(e,t){const n=e==null?void 0:e.promptFeedback;if(n!=null&&n.blockReason){const r=n.blockReasonMessage??n.blockReason;return t.setStatus({code:At,message:"internal_error"}),di(`Content blocked: ${r}`,{mechanism:{handled:!1,type:"auto.ai.google_genai"}}),!0}return!1}function Ioe(e,t){typeof e.responseId=="string"&&(t.responseId=e.responseId),typeof e.modelVersion=="str
173ing"&&(t.responseModel=e.modelVersion);const n=e.usageMetadata;n&&(typeof n.promptTokenCount=="number"&&(t.promptTokens=n.promptTokenCount),typeof n.candidatesTokenCount=="number"&&(t.completionTokens=n.candidatesTokenCount),typeof n.totalTokenCount=="number"&&(t.totalTokens=n.totalTokenCount))}function xoe(e,t,n){var r;Array.isArray(e.functionCalls)&&t.toolCalls.push(...e.functionCalls);for(const i of e.candidates??[]){i!=null&&i.finishReason&&!t.finishReasons.includes(i.finishReason)&&t.finishReasons.push(i.finishReason);for(const o of((r=i==null?void 0:i.content)==null?void 0:r.parts)??[])n&&o.text&&t.responseTexts.push(o.text),o.functionCall&&t.toolCalls.push({type:"function",id:o.functionCall.id,name:o.functionCall.name,arguments:o.functionCall.args})}}function Loe(e,t,n,r){!e||Aoe(e,r)||(Ioe(e,t),xoe(e,t,n))}async function*koe(e,t,n){const r={responseTexts:[],finishReasons:[],toolCalls:[]};try{for await(const i of e)Loe(i,r,n,t),yield i}finally{$1(t,r,n)}}function Nd(e,t="user"){return typeof e=="string"?[{role:t,content:e}]:Array.isArray(e)?e.flatMap(n=>Nd(n,t)):typeof e!="object"||!e?[]:"role"in e&&typeof e.role=="string"?[e]:"parts"in e?[{...e,role:t}]:[{role:t,content:e}]}function d5(e,t){if("model"in e&&typeof e.model=="string")return e.model;if(t&&typeof t=="object"){const n=t;if("model"in n&&typeof n.model=="string")return n.model;if("modelVersion"in n&&typeof n.modelVersion=="string")return n.modelVersion}return"unknown"}function Moe(e){const t={};return"temperature"in e&&typeof e.temperature=="number"&&(t[k1]=e.temperature),"topP"in e&&typeof e.topP=="number"&&(t[R1]=e.topP),"topK"in e&&typeof e.topK=="number"&&(t[l8]=e.topK),"maxOutputTokens"in e&&typeof e.maxOutputTokens=="number"&&(t[aC]=e.maxOutputTokens),"frequencyPenalty"in e&&typeof e.frequencyPenalty=="number"&&(t[M1]=e.frequencyPenalty),"presencePenalty"in e&&typeof e.presencePenalty=="number"&&(t[lC]=e.presencePenalty),t}function Roe(e,t,n){const r={[xp]:Toe,[to]:e,[Ct]:"auto.ai.google_genai"};if(t){if(r[ir]=d5(t,n),"config"in t&&typeof t.config=="object"&&t.config){const i=t.config;if(Object.assign(r,Moe(i)),"tools"in i&&Array.isArray(i.tools)){const o=i.tools.flatMap(s=>s.functionDeclarations);r[kp]=JSON.stringify(o)}}}else r[ir]=d5({},n);return r}function f5(e,t,n,r){if(n==="embeddings"){const o=t.contents;o!=null&&e.setAttribute(cC,typeof o=="string"?o:JSON.stringify(o));return}const i=[];if("config"in t&&t.config&&typeof t.config=="object"&&"systemInstruction"in t.config&&t.config.systemInstruction&&i.push(...Nd(t.config.systemInstruction,"system")),"history"in t&&i.push(...Nd(t.history,"user")),"contents"in t&&i.push(...Nd(t.contents,"user")),"message"in t&&i.push(...Nd(t.message,"user")),Array.isArray(i)&&i.length){const{systemInstructions:o,filteredMessages:s}=Rp(i);o&&e.setAttribute(Lp,o);const a=Array.isArray(s)?s.length:0;e.setAttributes({[kl]:a,[nd]:r?rd(s):ai(s)})}}function Poe(e,t,n){if(!(!t||typeof t!="object")){if(t.modelVersion&&e.setAttribute(td,t.modelVersion),t.usageMetadata&&typeof t.usageMetadata=="object"){const r=t.usageMetadata;typeof r.promptTokenCount=="number"&&e.setAttributes({[xl]:r.promptTokenCount}),typeof r.candidatesTokenCount=="number"&&e.setAttributes({[Ll]:r.candidatesTokenCount}),typeof r.totalTokenCount=="number"&&e.setAttributes({[ga]:r.totalTokenCount})}if(n&&Array.isArray(t.candidates)&&t.candidates.length>0){const r=t.candidates.map(i=>{var o;return(o=i.content)!=null&&o.parts&&Array.isArray(i.content.parts)?i.content.parts.map(s=>typeof s.text=="string"?s.text:"").filter(s=>s.length>0).join(""):""}).filter(i=>i.length>0);r.length>0&&e.setAttributes({[xo]:r.join("")})}if(n&&t.functionCalls){const r=t.functionCalls;Array.isArray(r)&&r.length>0&&e.setAttributes({[sa]:JSON.stringify(r)})}}}function Ooe(e,t,n,r,i){const o=n.operation==="embeddings";return new Proxy(e,{apply(s,a,l){const u=n.operation||"unknown",c=l[0],d=Roe(u,c,r),f=d[ir]??"unknown";return n.streaming?os({name:`${u} ${f}`,op:`gen_ai.${u}`,attributes:d},async p=>{try{i.recordInputs&&c&&f5(p,c,u,Ss(i.enableTruncation));const h=await s.apply(r,l);return koe(h,p,!!i.recordOutputs)}catch(h){throw p.setStatus({code:At,message:"internal_error"}),p.end(),h}}):qo({name:`${u} ${f}`,op:`gen_ai.${u}`,attributes:d},p=>(i.recordInputs&&c&&f5(p,c,u,Ss(i.enableTruncation)),WE(()=>s.apply(r,l),()=>{},()=>{},h=>{o||Poe(p,h,i.recordOutputs)})))}})}function U_(e,t="",n){return new Proxy(e,{get:(r,i,o)=>{const s=Reflect.get(r,i,o),a=E8(t,String(i)),l=woe[a];if(typeof s=="function"&&l){const u=l.operation?Ooe(s,a,l,r,n):s.bind(r);return l.proxyResultPath?function(...c){const d=u(...c);return d&&typeof d=="object"?U_(d,l.proxyResultPath,n):d}:u}return typeof s=="function"?s.bind(r):s&&typeof s=="object"?U_(s,a,n):s}})}function $oe(e,t){return U_(e,"",Kl(t))}const fC="auto.ai.langchain",Noe={human:"user",ai:"assistant",assistant:"assistant",system:"system",function:"function",tool:"tool"},Ei=(e,t,n)=>{n!=null&&(e[t]=n)},ni=(e,t,n)=>{const r=Number(n);Number.isNaN(r)||(e[t]=r)};function lu(e){if(Array.isArray(e))try{const t=e.map(n=>n&&typeof n=="object"&&Yu(n)?rf(n):n);return JSON.stringify(t)}catch{return String(e)}return ai(e,String)}function yd(e){const t=e.toLowerCase();return Noe[t]??t}function p5(e){return e.includes("System")?"system":e.includes("Human")?"user":e.includes("AI")||e.includes("Assistant")?"assistant":e.includes("Function")?"function":e.includes("Tool")?"tool":"user"}function h5(e){if(!(!e||Array.isArray(e)))return e.invocation_params}function pC(e){return e.map(t=>{var i,o;const n=t._getType;if(typeof n=="function"){const s=n.call(t);return{role:yd(s),content:lu(t.content)}}if(t.lc===1&&t.kwargs){const s=t.id,a=Array.isArray(s)&&s.length>
1730?s[s.length-1]:"",l=typeof a=="string"?p5(a):"user";return{role:yd(l),content:lu((i=t.kwargs)==null?void 0:i.content)}}if(t.type){const s=String(t.type).toLowerCase();return{role:yd(s),content:lu(t.content)}}if(t.role)return{role:yd(String(t.role)),content:lu(t.content)};const r=(o=t.constructor)==null?void 0:o.name;return r&&r!=="Object"?{role:yd(p5(r)),content:lu(t.content)}:{role:"user",content:lu(t.content)}})}function Hoe(e,t,n){const r={},i="kwargs"in e?e.kwargs:void 0,o=(t==null?void 0:t.temperature)??(n==null?void 0:n.ls_temperature)??(i==null?void 0:i.temperature);ni(r,k1,o);const s=(t==null?void 0:t.max_tokens)??(n==null?void 0:n.ls_max_tokens)??(i==null?void 0:i.max_tokens);ni(r,aC,s);const a=(t==null?void 0:t.top_p)??(i==null?void 0:i.top_p);ni(r,R1,a);const l=t==null?void 0:t.frequency_penalty;ni(r,M1,l);const u=t==null?void 0:t.presence_penalty;return ni(r,lC,u),t&&"stream"in t&&Ei(r,sC,!!t.stream),r}function A8(e,t,n,r,i){return{[xp]:ai(e??"langchain",String),[to]:"chat",[ir]:ai(t,String),[Ct]:fC,...Hoe(n,r,i)}}function Doe(e,t,n,r,i,o){const s=o==null?void 0:o.ls_provider,a=(i==null?void 0:i.model)??(o==null?void 0:o.ls_model_name)??"unknown",l=A8(s,a,e,i,o);if(n&&Array.isArray(t)&&t.length>0){Ei(l,kl,t.length);const u=t.map(c=>({role:"user",content:c}));Ei(l,nd,r?rd(u):ai(u))}return l}function Voe(e,t,n,r,i,o){var u;const s=(o==null?void 0:o.ls_provider)??((u=e.id)==null?void 0:u[2]),a=(i==null?void 0:i.model)??(o==null?void 0:o.ls_model_name)??"unknown",l=A8(s,a,e,i,o);if(n&&Array.isArray(t)&&t.length>0){const c=pC(t.flat()),{systemInstructions:d,filteredMessages:f}=Rp(c);d&&Ei(l,Lp,d);const p=Array.isArray(f)?f.length:0;Ei(l,kl,p),Ei(l,nd,r?rd(f):ai(f))}return l}function Foe(e,t){var i;const n=[],r=e.flat();for(const o of r){const s=o.message,a=s==null?void 0:s.tool_calls;if(Array.isArray(a)&&a.length>0)n.push(...a);else{const l=(i=o.message)==null?void 0:i.content;if(Array.isArray(l))for(const u of l){const c=u;c.type==="tool_use"&&n.push(c)}}}n.length>0&&Ei(t,sa,ai(n,String))}function Boe(e,t){if(!e)return;const n=e.tokenUsage,r=e.usage;if(n)ni(t,xl,n.promptTokens),ni(t,Ll,n.completionTokens),ni(t,ga,n.totalTokens);else if(r){ni(t,xl,r.input_tokens),ni(t,Ll,r.output_tokens);const i=Number(r.input_tokens),o=Number(r.output_tokens),s=(Number.isNaN(i)?0:i)+(Number.isNaN(o)?0:o);s>0&&ni(t,ga,s),r.cache_creation_input_tokens!==void 0&&ni(t,vie,r.cache_creation_input_tokens),r.cache_read_input_tokens!==void 0&&ni(t,gie,r.cache_read_input_tokens)}}function Uoe(e,t){var u,c,d,f;if(!e)return;const n={};if(Array.isArray(e.generations)){const p=e.generations.flat().map(h=>{var m,v;return(m=h.generationInfo)!=null&&m.finish_reason?h.generationInfo.finish_reason:(v=h.generation_info)!=null&&v.finish_reason?h.generation_info.finish_reason:null}).filter(h=>typeof h=="string");if(p.length>0&&Ei(n,Zu,ai(p,String)),Foe(e.generations,n),t){const h=e.generations.flat().map(m=>{var v;return m.text??((v=m.message)==null?void 0:v.content)}).filter(m=>typeof m=="string");h.length>0&&Ei(n,xo,ai(h,String))}}Boe(e.llmOutput,n);const r=e.llmOutput,i=(c=(u=e.generations)==null?void 0:u[0])==null?void 0:c[0],o=i==null?void 0:i.message,s=(r==null?void 0:r.model_name)??(r==null?void 0:r.model)??((d=o==null?void 0:o.response_metadata)==null?void 0:d.model_name);s&&Ei(n,td,s);const a=(r==null?void 0:r.id)??(o==null?void 0:o.id);a&&Ei(n,P1,a);const l=(r==null?void 0:r.stop_reason)??((f=o==null?void 0:o.response_metadata)==null?void 0:f.finish_reason);return l&&Ei(n,pie,ai(l,String)),n}function oy(e){const t={},n=e==null?void 0:e.lc_agent_name;return typeof n=="string"&&(t[Mp]=n),t}function joe(e){var r,i;const t=((r=e==null?void 0:e.invocation_params)==null?void 0:r.tools)??((i=e==null?void 0:e.options)==null?void 0:i.tools);if(!Array.isArray(t)||t.length===0)return;const n=t.map(o=>{const s=o.function;return{type:"function",name:o.name??(s==null?void 0:s.name)??"",description:o.description??(s==null?void 0:s.description)}});return JSON.stringify(n)}function Woe(e){if(!e||typeof e!="object")return!1;const t=e;return typeof t.addHandler=="function"&&typeof t.copy=="function"}function Goe(e){return typeof e=="object"&&(e==null?void 0:e.name)==="SentryCallbackHandler"}function m5(e){return e.some(Goe)}function zoe(e,t){if(!e)return[t];if(Woe(e)){if(m5(e.handlers??[]))return e;const r=e.copy();return r.addHandler(t,!0),r}const n=Array.isArray(e)?e:[e];return m5(n)?e:[...n,t]}function hC(e={}){const{recordInputs:t,recordOutputs:n}=Kl(e),r=Ss(e.enableTruncation),i=new Map,o=a=>{const l=i.get(a);l!=null&&l.isRecording()&&(l.end(),i.delete(a))}
173,s={lc_serializable:!1,lc_namespace:["langchain_core","callbacks","sentry"],lc_secrets:void 0,lc_attributes:void 0,lc_aliases:void 0,lc_serializable_keys:void 0,lc_id:["langchain_core","callbacks","sentry"],lc_kwargs:{},name:"SentryCallbackHandler",ignoreLLM:!1,ignoreChain:!1,ignoreAgent:!1,ignoreRetriever:!1,ignoreCustomEvent:!1,raiseError:!1,awaitHandlers:!0,handleLLMStart(a,l,u,c,d,f,p,h){const m=h5(f),v=Doe(a,l,t,r,m,p),g=v[ir],y=v[to];os({name:`${y} ${g}`,op:"gen_ai.chat",attributes:{...oy(p),...v,[pn]:"gen_ai.chat"}},_=>(i.set(u,_),_))},handleChatModelStart(a,l,u,c,d,f,p,h){const m=h5(f),v=Voe(a,l,t,r,m,p),g=joe(d);g&&(v[kp]=g);const y=v[ir],_=v[to];os({name:`${_} ${y}`,op:"gen_ai.chat",attributes:{...oy(p),...v,[pn]:"gen_ai.chat"}},b=>(i.set(u,b),b))},handleLLMEnd(a,l,u,c,d){const f=i.get(l);if(f!=null&&f.isRecording()){const p=Uoe(a,n);p&&f.setAttributes(p),o(l)}},handleLLMError(a,l){const u=i.get(l);u!=null&&u.isRecording()&&(u.setStatus({code:At,message:"internal_error"}),o(l))},handleChainStart(a,l,u,c,d,f,p,h){if(f!=null&&f.__sentry_langgraph__)return;const m=h||a.name||"unknown_chain",v={[Ct]:"auto.ai.langchain","langchain.chain.name":m};t&&(v["langchain.chain.inputs"]=JSON.stringify(l)),os({name:`chain ${m}`,op:"gen_ai.invoke_agent",attributes:{...v,[pn]:"gen_ai.invoke_agent"}},g=>(i.set(u,g),g))},handleChainEnd(a,l){const u=i.get(l);u!=null&&u.isRecording()&&(n&&u.setAttributes({"langchain.chain.outputs":JSON.stringify(a)}),o(l))},handleChainError(a,l){const u=i.get(l);u!=null&&u.isRecording()&&(u.setStatus({code:At,message:"internal_error"}),o(l))},handleToolStart(a,l,u,c,d,f,p){if(f!=null&&f.__sentry_langgraph__)return;const h=p||a.name||"unknown_tool",m={...oy(f),[Ct]:fC,[to]:"execute_tool",[f8]:h};t&&(m[p8]=l),os({name:`execute_tool ${h}`,op:"gen_ai.execute_tool",attributes:{...m,[pn]:"gen_ai.execute_tool"}},v=>(i.set(u,v),v))},handleToolEnd(a,l){const u=i.get(l);if(u!=null&&u.isRecording()){if(n){const c=a,d=c&&typeof c=="object"&&"content"in c?c.content:a;u.setAttributes({[h8]:typeof d=="string"?d:JSON.stringify(d)})}o(l)}},handleToolError(a,l){const u=i.get(l);u!=null&&u.isRecording()&&(u.setStatus({code:At,message:"internal_error"}),o(l))},copy(){return s},toJSON(){return{lc:1,type:"not_implemented",id:s.lc_id}},toJSONNotImplemented(){return{lc:1,type:"not_implemented",id:s.lc_id}}};return s}function qoe(e){var n;const t=((n=e.constructor)==null?void 0:n.name)??"";return t.includes("OpenAI")?"openai":t.includes("Google")?"google_genai":t.includes("Mistral")?"mistralai":t.includes("Vertex")?"google_vertexai":t.includes("Bedrock")?"aws_bedrock":t.includes("Ollama")?"ollama":t.includes("Cloudflare")?"cloudflare":t.includes("Cohere")?"cohere":"langchain"}function Koe(e){const t=e??{},n={[Ct]:fC,[pn]:d8,[to]:"embeddings",[ir]:t.model??"unknown"};return n[xp]=qoe(t),"dimensions"in t&&(n[c8]=t.dimensions),"encodingFormat"in t&&(n[u8]=t.encodingFormat),n}function Xoe(e,t,n={}){const{recordInputs:r}=Kl(n),i=Koe(e),o=i[ir]||"unknown";return r&&t!=null&&(i[cC]=typeof t=="string"?t:JSON.stringify(t)),{name:`embeddings ${o}`,op:d8,attributes:i}}function v5(e,t={}){return new Proxy(e,{apply(n,r,i){return qo(Xoe(r,i[0],t),()=>Reflect.apply(n,r,i))}})}function Zoe(e,t){const n=e;return typeof n.embedQuery=="function"&&(n.embedQuery=v5(n.embedQuery,t)),typeof n.embedDocuments=="function"&&(n.embedDocuments=v5(n.embedDocuments,t)),e}const mC="auto.ai.langgraph";function Yoe(e){const t=e[0];if(typeof t!="object"||!t||!("llm"in t)||!t.llm||typeof t.llm!="object")return null;const n=t.llm;return typeof n.modelName!="string"&&typeof n.model!="string"?null:n}function Joe(e){const t=e[0];return typeof t=="object"&&t&&"name"in t&&typeof t.name=="string"?t.name:null}function Qoe(e,t,n){const r="__sentry_tool_wrapped__";for(const i of e){if(!i||typeof i!="object")continue;const o=i,s=o.invoke;if(typeof s!="function"||Object.prototype.hasOwnProperty.call(o,r))continue;const a=typeof o.name=="string"?o.name:"unknown_tool",l=typeof o.description=="string"?o.description:void 0,u=new Proxy(s,{apply(c,d,f){var g;const p={[Ct]:mC,[pn]:o5,[to]:"execute_tool",[f8]:a,[_ie]:"function"},h=f[1],m=((g=h==null?void 0:h.metadata)==null?void 0:g.lc_agent_name)??n;typeof m=="string"&&(p[Mp]=m),l&&(p[Sie]=l);const v=f[0];if(typeof v=="object"&&v&&("id"in v&&typeof v.id=="string"&&(p[bie]=v.id),t.recordInputs)){const y="args"in v&&typeof v.args=="object"?v.args:v;try{p[p8]=JSON.stringify(y)}catch{}}return qo({op:o5,name:`execute_tool ${a}`,attributes:p},async y=>{try{const _=await Reflect.apply(c,d,f);
173if(t.recordOutputs)try{const b=_,S=b&&typeof b=="object"&&"content"in b?b.content:_;y.setAttribute(h8,typeof S=="string"?S:JSON.stringify(S))}catch{}return _}catch(_){throw y.setStatus({code:At,message:"internal_error"}),_}})}});o.invoke=u,Object.defineProperty(o,r,{value:!0,enumerable:!1})}return e}function ese(e){if(!e||e.length===0)return null;const t=[];for(const n of e)if(n&&typeof n=="object"){const r=n.tool_calls;r&&Array.isArray(r)&&t.push(...r)}return t.length>0?t:null}function tse(e){const t=e;let n=0,r=0,i=0;if(t.usage_metadata&&typeof t.usage_metadata=="object"){const o=t.usage_metadata;return typeof o.input_tokens=="number"&&(n=o.input_tokens),typeof o.output_tokens=="number"&&(r=o.output_tokens),typeof o.total_tokens=="number"&&(i=o.total_tokens),{inputTokens:n,outputTokens:r,totalTokens:i}}if(t.response_metadata&&typeof t.response_metadata=="object"){const o=t.response_metadata;if(o.tokenUsage&&typeof o.tokenUsage=="object"){const s=o.tokenUsage;typeof s.promptTokens=="number"&&(n=s.promptTokens),typeof s.completionTokens=="number"&&(r=s.completionTokens),typeof s.totalTokens=="number"&&(i=s.totalTokens)}}return{inputTokens:n,outputTokens:r,totalTokens:i}}function nse(e,t){const n=t;if(n.response_metadata&&typeof n.response_metadata=="object"){const r=n.response_metadata;r.model_name&&typeof r.model_name=="string"&&e.setAttribute(td,r.model_name),r.finish_reason&&typeof r.finish_reason=="string"&&e.setAttribute(Zu,[r.finish_reason])}}function rse(e){var n,r,i,o,s,a,l,u;if(!((o=(i=(r=(n=e.builder)==null?void 0:n.nodes)==null?void 0:r.tools)==null?void 0:i.runnable)!=null&&o.tools))return null;const t=(u=(l=(a=(s=e.builder)==null?void 0:s.nodes)==null?void 0:a.tools)==null?void 0:l.runnable)==null?void 0:u.tools;return!t||!Array.isArray(t)||t.length===0?null:t.map(c=>{var d,f,p;return{name:(d=c.lc_kwargs)==null?void 0:d.name,description:(f=c.lc_kwargs)==null?void 0:f.description,schema:(p=c.lc_kwargs)==null?void 0:p.schema}})}function ise(e,t,n){const r=n,i=r==null?void 0:r.messages;if(!i||!Array.isArray(i))return;const o=(t==null?void 0:t.length)??0,s=i.length>o?i.slice(o):[];if(s.length===0)return;const a=ese(s);a&&e.setAttribute(sa,JSON.stringify(a));const l=pC(s);e.setAttribute(xo,JSON.stringify(l));let u=0,c=0,d=0;for(const f of s){const p=tse(f);u+=p.inputTokens,c+=p.outputTokens,d+=p.totalTokens,nse(e,f)}u>0&&e.setAttribute(xl,u),c>0&&e.setAttribute(Ll,c),d>0&&e.setAttribute(ga,d)}let j_=!1;const Wv="__sentry_patched__";function ose(e){const t={[Ct]:mC,[pn]:"gen_ai.create_agent",[to]:"create_agent"};return e&&(t[Mp]=e),{op:"gen_ai.create_agent",name:e?`create_agent ${e}`:"create_agent",attributes:t}}function sse(e,t){if(Object.prototype.hasOwnProperty.call(e,Wv))return e;const n=hC(t),r=new Proxy(e,{apply(i,o,s){return j_?Reflect.apply(i,o,s):qo(ose(),a=>{try{const l=Reflect.apply(i,o,s),u=s.length>0?s[0]:{};u!=null&&u.name&&typeof u.name=="string"&&(a.setAttribute(Mp,u.name),a.updateName(`create_agent ${u.name}`));const c=l.invoke;return c&&typeof c=="function"&&(l.invoke=I8(c.bind(l),l,u,t,void 0,n)),l}catch(l){throw a.setStatus({code:At,message:"internal_error"}),l}})}});return Object.defineProperty(r,Wv,{value:!0,enumerable:!1}),r}function I8(e,t,n,r,i,o){return new Proxy(e,{apply(s,a,l){const u=(i==null?void 0:i.modelName)??(i==null?void 0:i.model);return qo({op:"gen_ai.invoke_agent",name:"invoke_agent",attributes:{[Ct]:mC,[pn]:yie,[to]:"invoke_agent"}},async c=>{var d;try{const f=n==null?void 0:n.name;f&&typeof f=="string"&&(c.setAttribute(mie,f),c.setAttribute(Mp,f),c.updateName(`invoke_agent ${f}`)),u&&c.setAttribute(ir,u);const p=l.length>1?l[1]:void 0,h=p==null?void 0:p.configurable,m=h==null?void 0:h.thread_id;if(m&&typeof m=="string"&&c.setAttribute(uC,m),o){const S=l[1]??{};l[1]=S;const C=S.metadata??{};S.metadata={...C,__sentry_langgraph__:!0,...typeof f=="string"?{lc_agent_name:f}:{}},S.callbacks=zoe(S.callbacks,o)}const v=rse(t);v&&c.setAttribute(kp,JSON.stringify(v));const g=r.recordInputs,y=r.recordOutputs,_=l.length>0?((d=l[0])==null?void 0:d.messages)??[]:[];if(_&&g){const S=pC(_),{systemInstructions:C,filteredMessages:E}=Rp(S);C&&c.setAttribute(Lp,C);const w=Ss(r.enableTruncation),T=Array.isArray(E)?E.length:0;c.setAttributes({[nd]:w?rd(E):ai(E),[kl]:T})}const b=await Reflect.apply(s,a,l);return y&&ise(c,_??null,b),b}catch(f){throw c.setStatus({code:At,message:"internal_error"}),f}})}})}function ase(e,t){if(Object.prototype.hasOwnProperty.call(e,Wv))return e;const n=Kl(t),r=hC(n),i=new Proxy(e,{apply(o,s,a){const l=Yoe(a),u=Joe(a),c=a[0];c&&Array.isArray(c.tools)&&c.tools.length>0&&Qoe(c.tools,n,u??void 0),j_=!0;let d;try{d=Reflect.apply(o,s,a)}finally{j_=!1}const f=d.invoke;if(f&&typeof f=="function"){const p={};u&&(p.name=u),d.invoke=I8(f.bind(d),d,p,n,l,r)}return d}});return Object.defineProperty(i,Wv,{value:!0,enumerable:!1}),i}function x8(e,t){return e.compile=sse(e.compile,Kl(t)),e}const lse=x8;function use(e,t,n){const r=n.getOptions(),i=n.getDsn(),o=r.tunnel,s=wp(r._metadata),a={sent_at:new Date(Wo()).toISOString(),...cse(t)&&{trace:t},...s&&{sdk:s},...!!o&&i&&{dsn:Go(i)}},l=n.getDataCollectionOptions().userInfo?"auto":"never",u=[{type:"span",item_count:e.length,content_type:"application/vnd.sentry.items.span.v2+json"},{version:2,...va()&&{ingest_settings:{infer_ip:l,infer_user_agent:l}},items:e}];return $i(a,[u])}function cse(e){return!!e.trace_id&&!!e.public_key}function dse(e){let t=156;if(t+=e.name.length*2,t+=uI(e.attributes),e.links&&e.links.length>0){const n=e.links[0],r=n==null?void 0:n.attributes,i=100+(r?uI(r):0);t+=i*e.links.length}return t}const g5=1e3,fse=5e6;class pse{constructor(t,n){this._traceBuckets=new Map,this._client=t;const{maxSpanLimit:r,flushInterval:i,maxTraceWeightInBytes:o}=n??{};this._maxSpanLimit=r&&r>0&&r<=g5?r:g5,this._flushInterval=i&&i>0?i:5e3,this._maxTraceWeight=o&&o>0?o:fse,this._client.on("flush",()=>{this.drain()}),this._client.on("close",()=>
173{this._traceBuckets.forEach(s=>{clearTimeout(s.timeout)}),this._traceBuckets.clear()})}add(t){const n=t.trace_id;let r=this._traceBuckets.get(n);r||(r={spans:new Set,size:0,timeout:A1(setTimeout(()=>{this.flush(n)},this._flushInterval))},this._traceBuckets.set(n,r)),r.spans.add(t),r.size+=dse(t),(r.spans.size>=this._maxSpanLimit||r.size>=this._maxTraceWeight)&&this.flush(n)}drain(){this._traceBuckets.size&&(Pe&&X.log(`Flushing span tree map with ${this._traceBuckets.size} traces`),this._traceBuckets.forEach((t,n)=>{this.flush(n)}))}flush(t){var l;const n=this._traceBuckets.get(t);if(!n)return;if(!n.spans.size){this._removeTrace(t);return}const r=Array.from(n.spans),i=(l=r[0])==null?void 0:l._segmentSpan;if(!i){Pe&&X.warn("No segment span reference found on span JSON, cannot compute DSC"),this._removeTrace(t);return}const o=mo(i),s=r.map(u=>{const{_segmentSpan:c,...d}=u;return d}),a=use(s,o,this._client);Pe&&X.log(`Sending span envelope for trace ${t} with ${s.length} spans`),this._client.sendEnvelope(a).then(null,u=>{Pe&&X.error("Error while sending streamed span envelope:",u)}),this._removeTrace(t)}_removeTrace(t){const n=this._traceBuckets.get(t);n&&clearTimeout(n.timeout),this._traceBuckets.delete(t)}}function L8(e){if(e!==void 0)return e>=400&&e<500?"warning":e>=500?"error":void 0}const yc=Ke;function hse(){return"history"in yc&&!!yc.history}function mse(){if(!("fetch"in yc))return!1;try{return new Headers,new Request("data:,"),new Response,!0}catch{return!1}}function W_(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function k8(){var n;if(typeof EdgeRuntime=="string")return!0;if(!mse())return!1;if(W_(yc.fetch))return!0;let e=!1;const t=yc.document;if(t&&typeof t.createElement=="function")try{const r=t.createElement("iframe");r.hidden=!0,t.head.appendChild(r),(n=r.contentWindow)!=null&&n.fetch&&(e=W_(r.contentWindow.fetch)),t.head.removeChild(r)}catch(r){Pe&&X.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",r)}return e}function vse(){return"ReportingObserver"in yc}function N1(e,t){const n="fetch",r=Ca(n,e);return wa(n,()=>M8(void 0,t)),r}function gse(e){const t="fetch-body-resolved",n=Ca(t,e);return wa(t,()=>M8(bse)),n}function M8(e,t=!1){t&&!k8()||tr(Ke,"fetch",function(n){return function(...r){const i=new Error,{method:o,url:s}=_se(r),a={args:r,fetchData:{method:o,url:s},startTimestamp:Xt()*1e3,virtualError:i,headers:Sse(r)};return e||Ai("fetch",{...a}),n.apply(Ke,r).then(async l=>(e?e(l):Ai("fetch",{...a,endTimestamp:Xt()*1e3,response:l}),l),l=>{Ai("fetch",{...a,endTimestamp:Xt()*1e3,error:l}),Wr(l)&&l.stack===void 0&&(l.stack=i.stack,zn(l,"framesToPop",1));const u=$e(),c=(u==null?void 0:u.getOptions().enhanceFetchErrorMessages)??"always";if(c!==!1&&Wr(l)&&l.name==="TypeError"&&(l.message==="Failed to fetch"||l.message==="Load failed"||l.message==="NetworkError when attempting to fetch resource."))try{const p=new URL(a.fetchData.url).host;c==="always"?l.message=`${l.message} (${p})`:zn(l,"__sentry_fetch_url_host__",p)}catch{}throw l})}})}async function yse(e,t){if(e!=null&&e.body){const n=e.body,r=n.getReader(),i=setTimeout(()=>{n.cancel().then(null,()=>{})},90*1e3);let o=!0;for(;o;){let s;try{s=setTimeout(()=>{n.cancel().then(null,()=>{})},5e3);const{done:a}=await r.read();clearTimeout(s),a&&(t(),o=!1)}catch{o=!1}finally{clearTimeout(s)}}clearTimeout(i),r.releaseLock(),n.cancel().then(null,()=>{})}}function bse(e){let t;try{t=e.clone()}catch{return}yse(t,()=>{Ai("fetch-body-resolved",{endTimestamp:Xt()*1e3,response:e})})}function Em(e,t){return Ii(e)&&!!e[t]}function y5(e){return typeof e=="string"?e:e?Em(e,"url")?e.url:e.toString?e.toString():"":""}function _se(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:y5(n),method:Em(r,"method")?String(r.method).toUpperCase():DE(n)&&Em(n,"method")?String(n.method).toUpperCase():"GET"}}const t=e[0];return{url:y5(t),method:Em(t,"method")?String(t.method).toUpperCase():"GET"}}function Sse(e){const[t,n]=e;try{if(typeof n=="object"&&n!==null&&"headers"in n&&n.headers)return new Headers(n.headers);if(DE(t))return new Headers(t.headers)}catch{}}const R8=Ke;function ya(){try{return R8.document.location.href}catch{return""}}function vC(e,t=5){if(!R8.HTMLElement)return null;let n=e;for(let r=0;r<t;r++){if(!n)return null;if(n instanceof HTMLElement){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}n=n.parentNode}return null}const Xi=Ke,Gt=Xi.document,Hd=Xi.navigator,P8="Report a Bug",Ese="Cancel",Cse="Send Bug Report",wse="Confirm",Tse="Report a Bug",Ase="[email protected]",Ise="Email",xse="What's the bug? What did you expect?",Lse="Description",kse="Your Name",Mse="Name",Rse="Thank y
173ou for your report!",Pse="(required)",Ose="Add a screenshot",$se="Remove screenshot",Nse="Highlight",Hse="Hide",Dse="Remove",O8="Unable to submit feedback with empty message",$8="No client setup, cannot send feedback.",N8="Unable to determine if Feedback was correctly sent.",H8="Unable to send feedback. This could be because this domain is not in your list of allowed domains.",D8="Unable to send feedback. This could be because of network issues, or because you are using an ad-blocker.",Vse="widget",Fse="api",Bse=5e3,Use={ERROR_EMPTY_MESSAGE:O8,ERROR_NO_CLIENT:$8,ERROR_TIMEOUT:N8,ERROR_FORBIDDEN:H8,ERROR_GENERIC:D8};function Cm(e,t){return(t==null?void 0:t[e])??Use[e]}function b5(e,t){return new Error(Cm(e,t))}const V8=(e,t={includeReplay:!0})=>{const n=t.errorMessages;if(!e.message)throw b5("ERROR_EMPTY_MESSAGE",n);const r=$e();if(!r)throw b5("ERROR_NO_CLIENT",n);e.tags&&Object.keys(e.tags).length&&nt().setTags(e.tags);const i=o8({source:Fse,url:ya(),...e},t);return new Promise((o,s)=>{const a=setTimeout(()=>{l(),s(Cm("ERROR_TIMEOUT",n))},3e4),l=r.on("afterSendEvent",(u,c)=>{if(u.event_id===i)return clearTimeout(a),l(),c!=null&&c.statusCode&&c.statusCode>=200&&c.statusCode<300?o(i):(c==null?void 0:c.statusCode)===403?s(Cm("ERROR_FORBIDDEN",n)):s(Cm("ERROR_GENERIC",n))})})},wm=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function jse(){return!(/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(Hd.userAgent)||/Macintosh/i.test(Hd.userAgent)&&Hd.maxTouchPoints&&Hd.maxTouchPoints>1||!isSecureContext)}function Ih(e,t){return{...e,...t,tags:{...e.tags,...t.tags},onFormOpen:()=>{var n,r;(n=t.onFormOpen)==null||n.call(t),(r=e.onFormOpen)==null||r.call(e)},onFormClose:()=>{var n,r;(n=t.onFormClose)==null||n.call(t),(r=e.onFormClose)==null||r.call(e)},onSubmitSuccess:(n,r)=>{var i,o;(i=t.onSubmitSuccess)==null||i.call(t,n,r),(o=e.onSubmitSuccess)==null||o.call(e,n,r)},onSubmitError:n=>{var r,i;(r=t.onSubmitError)==null||r.call(t,n),(i=e.onSubmitError)==null||i.call(e,n)},onFormSubmitted:()=>{var n,r;(n=t.onFormSubmitted)==null||n.call(t),(r=e.onFormSubmitted)==null||r.call(e)},themeDark:{...e.themeDark,...t.themeDark},themeLight:{...e.themeLight,...t.themeLight}}}function Wse(e){const t=Gt.createElement("style");return t.textContent=` 174.widget__actor { 175 position: fixed; 176 z-index: var(--z-index); 177 margin: var(--page-margin); 178 inset: var(--actor-inset); 179 180 display: flex; 181 align-items: center; 182 gap: 8px; 183 padding: 16px; 184 185 font-family: inherit; 186 font-size: var(--font-size); 187 font-weight: 600; 188 line-height: 1.14em; 189 text-decoration: none; 190 191 background: var(--actor-background, var(--background)); 192 border-radius: var(--actor-border-radius, 1.7em/50%); 193 border: var(--actor-border, var(--border));
194 box-shadow: var(--actor-box-shadow, var(--box-shadow)); 195 color: var(--actor-color, var(--foreground)); 196 fill: var(--actor-color, var(--foreground)); 197 cursor: pointer; 198 opacity: 1; 199 transition: transform 0.2s ease-in-out; 200 transform: translate(0, 0) scale(1); 201} 202.widget__actor[aria-hidden="true"] { 203 opacity: 0; 204 pointer-events: none; 205 visibility: hidden; 206 transform: translate(0, 16px) scale(0.98); 207} 208 209.widget__actor:hover { 210 background: var(--actor-hover-background, var(--background)); 211 filter: var(--interactive-filter); 212} 213 214.widget__actor svg { 215 width: 1.14em; 216 height: 1.14em; 217} 218 219@media (max-width: 600px) { 220 .widget__actor span { 221 display: none; 222 } 223} 224`,e&&t.setAttribute("nonce",e),t}function oi(e,t){return Object.entries(t).forEach(([n,r])=>{e.setAttributeNS(null,n,r)}),e}const uu=20,Gse="http://www.w3.org/2000/svg";function zse(){const e=a=>Xi.document.createElementNS(Gse,a),t=oi(e("svg"),{width:`${uu}`,height:`${uu}`,viewBox:`0 0 ${uu} ${uu}`,fill:"var(--actor-color, var(--foreground))"}),n=oi(e("g"),{clipPath:"url(#clip0_57_80)"}),r=oi(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.6622 15H12.3997C12.2129 14.9959 12.031 14.9396 11.8747 14.8375L8.04965 12.2H7.49956V19.1C7.4875 19.3348 7.3888 19.5568 7.22256 19.723C7.05632 19.8892 6.83435 19.9879 6.59956 20H2.04956C1.80193 19.9968 1.56535 19.8969 1.39023 19.7218C1.21511 19.5467 1.1153 19.3101 1.11206 19.0625V12.2H0.949652C0.824431 12.2017 0.700142 12.1783 0.584123 12.1311C0.468104 12.084 0.362708 12.014 0.274155 11.9255C0.185602 11.8369 0.115689 11.7315 0.0685419 11.6155C0.0213952 11.4995 -0.00202913 11.3752 -0.00034808 11.25V3.75C-0.00900498 3.62067 0.0092504 3.49095 0.0532651 3.36904C0.0972798 3.24712 0.166097 3.13566 0.255372 3.04168C0.344646 2.94771 0.452437 2.87327 0.571937 2.82307C0.691437 2.77286 0.82005 2.74798 0.949652 2.75H8.04965L11.8747 0.1625C12.031 0.0603649 12.2129 0.00407221 12.3997 0H15.6622C15.9098 0.00323746 16.1464 0.103049 16.3215 0.278167C16.4966 0.453286 16.5964 0.689866 16.5997 0.9375V3.25269C17.3969 3.42959 18.1345 3.83026 18.7211 4.41679C19.5322 5.22788 19.9878 6.32796 19.9878 7.47502C19.9878 8.62209 19.5322 9.72217 18.7211 10.5333C18.1345 11.1198 17.3969 11.5205 16.5997 11.6974V14.0125C16.6047 14.1393 16.5842 14.2659 16.5395 14.3847C16.4948 14.5035 16.4268 14.6121 16.3394 14.7042C16.252 14.7962 16.147 14.8698 16.0307 14.9206C15.9144 14.9714 15.7891 14.9984 15.6622 15ZM1.89695 10.325H1.88715V4.625H8.33715C8.52423 4.62301 8.70666 4.56654 8.86215 4.4625L12.6872 1.875H14.7247V13.125H12.6872L8.86215 10.4875C8.70666 10.3835 8.52423 10.327 8.33715 10.325H2.20217C2.15205 10.3167 2.10102 10.3125 2.04956 10.3125C1.9981 10.3125 1.94708 10.3167 1.89695 10.325ZM2.98706 12.2V18.1625H5.66206V12.2H2.98706ZM16.5997 9.93612V5.01393C16.6536 5.02355 16.7072 5.03495 16.7605 5.04814C17.1202 5.13709 17.4556 5.30487 17.7425 5.53934C18.0293 5.77381 18.2605 6.06912 18.4192 6.40389C18.578 6.73866 18.6603 7.10452 18.6603 7.47502C18.6603 7.84552 18.578 8.21139 18.4192 8.54616C18.2605 8.88093 18.0293 9.17624 17.7425 9.41071C17.4556 9.64518 17.1202 9.81296 16.7605 9.90191C16.7072 9.91509 16.6536 9.9265 16.5997 9.93612Z"});t.appendChild(n).appendChild(r);const i=e("defs"),o=oi(e("clipPath"),{id:"clip0_57_80"}),s=oi(e("rect"),{width:`${uu}`,height:`${uu}`,fill:"white"});return o.appendChild(s),i.appendChild(o),t.appendChild(i).appendChild(o).appendChild(s),t}function qse({triggerLabel:e,triggerAriaLabel:t,shadow:n,styleNonce:r}){const i=Gt.createElement("button");if(i.type="button",i.className="widget__actor",i.ariaHidden="false",i.ariaLabel=t||e||P8,i.appendChild(zse()),e){const s=Gt.createElement("span");s.appendChild(Gt.createTextNode(e)),i.appendChild(s)}const o=Wse(r);return{el:i,appendToDom(){n.appendChild(o),n.appendChild(i)},removeFromDom(){i.remove(),o.remove()},show(){i.ariaHidden="false"},hide(){i.ariaHidden="true"}}}const F8="rgba(88, 74, 192, 1)",Kse={foreground:"#2b2233",background:"#ffffff",accentForeground:"white",accentBackground:F8,successColor:"#268d75",errorColor:"#df3338",border:"1.5px solid rgba(41, 35, 47, 0.13)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(95%)"},_5={foreground:"#ebe6ef",background:"#29232f",accentForeground:"white",accentBackgroun
224d:F8,successColor:"#2da98c",errorColor:"#f55459",border:"1.5px solid rgba(235, 230, 239, 0.15)",boxShadow:"0px 4px 24px 0px rgba(43, 34, 51, 0.12)",outline:"1px auto var(--accent-background)",interactiveFilter:"brightness(150%)"};function S5(e){return` 225 --foreground: ${e.foreground}; 226 --background: ${e.background}; 227 --accent-foreground: ${e.accentForeground}; 228 --accent-background: ${e.accentBackground}; 229 --success-color: ${e.successColor}; 230 --error-color: ${e.errorColor}; 231 --border: ${e.border}; 232 --box-shadow: ${e.boxShadow}; 233 --outline: ${e.outline}; 234 --interactive-filter: ${e.interactiveFilter}; 235 `}function E5({colorScheme:e,themeDark:t,themeLight:n,styleNonce:r}){const i=Gt.createElement("style");return i.textContent=` 236:host { 237 --font-family: system-ui, 'Helvetica Neue', Arial, sans-serif; 238 --font-size: 14px; 239 --z-index: 100000; 240 241 --page-margin: 16px; 242 --inset: auto 0 0 auto; 243 --actor-inset: var(--inset); 244 245 font-family: var(--font-family); 246 font-size: var(--font-size); 247 248 ${e!=="system"?`color-scheme: only ${e};`:""} 249 250 ${S5(e==="dark"?{..._5,...t}:{...Kse,...n})} 251} 252 253${e==="system"?` 254@media (prefers-color-scheme: dark) { 255 :host { 256 color-scheme: only dark; 257 258 ${S5({..._5,...t})} 259 } 260}`:""} 261`,r&&i.setAttribute("nonce",r),i}const B8=({lazyLoadIntegration:e,getModalIntegration:t,getScreenshotIntegration:n})=>({id:i="sentry-feedback",autoInject:o=!0,showBranding:s=!0,isEmailRequired:a=!1,isNameRequired:l=!1,showEmail:u=!0,showName:c=!0,enableScreenshot:d=!0,useSentryUser:f={email:"email",name:"username"},tags:p,styleNonce:h,scriptNonce:m,colorScheme:v="system",themeLight:g={},themeDark:y={},addScreenshotButtonLabel:_=Ose,cancelButtonLabel:b=Ese,confirmButtonLabel:S=wse,emailLabel:C=Ise,emailPlaceholder:E=Ase,formTitle:w=Tse,isRequiredLabel:T=Pse,messageLabel:A=Lse,messagePlaceholder:L=xse,nameLabel:x=Mse,namePlaceholder:k=kse,removeScreenshotButtonLabel:M=$se,submitButtonLabel:z=Cse,successMessageText:P=Rse,triggerLabel:H=P8,triggerAriaLabel:q="",highlightToolText:de=Nse,hideToolText:se=Hse,removeHighlightText:W=Dse,errorEmptyMessageText:V=O8,errorNoClientText:B=$8,errorTimeoutText:Y=N8,errorForbiddenText:F=H8,errorGenericText:Q=D8,onFormOpen:re,onFormClose:be,onSubmitSuccess:Le,onSubmitError:Me,onFormSubmitted:He}={})=>{const $={id:i,autoInject:o,showBranding:s,isEmailRequired:a,isNameRequired:l,showEmail:u,showName:c,enableScreenshot:d,useSentryUser:f,tags:p,styleNonce:h,scriptNonce:m,colorScheme:v,themeDark:y,themeLight:g,triggerLabel:H,triggerAriaLabel:q,cancelButtonLabel:b,submitButtonLabel:z,confirmButtonLabel:S,formTitle:w,emailLabel:C,emailPlaceholder:E,messageLabel:A,messagePlaceholder:L,nameLabel:x,namePlaceholder:k,successMessageText:P,isRequiredLabel:T,addScreenshotButtonLabel:_,removeScreenshotButtonLabel:M,highlightToolText:de,hideToolText:se,removeHighlightText:W,errorEmptyMessageText:V,errorNoClientText:B,errorTimeoutText:Y,errorForbiddenText:F,errorGenericText:Q,onFormClose:be,onFormOpen:re,onSubmitError:Me,onSubmitSuccess:Le,onFormSubmitted:He};let U=null,ee=null,ce=[];const me=te=>{if(!U){const le=Gt.createElement("div");le.id=String(te.id),Gt.body.appendChild(le),U=le.attachShadow({mode:"open"}),ee=E5(te),U.appendChild(ee)}return U},Ce=async te=>{const le=te.enableScreenshot&&jse();let ye,D;try{ye=(t?t():await e("feedbackModalIntegration",m))(),O_(ye)}catch{throw wm&&X.error("[Feedback] Error when trying to load feedback integrations. Try using `feedbackSyncIntegration` in your `Sentry.init`."),new Error("[Feedback] Missing feedback modal integration!")}try{const Te=le?n?n():await e("feedbackScreenshotIntegration",m):void 0;Te&&(D=Te(),O_(D))}catch{wm&&X.error("[Feedback] Missing feedback screenshot integration. Proceeding without screenshots.")}const j={ERROR_EMPTY_MESSAGE:te.errorEmptyMessageText,ERROR_NO_CLIENT:te.errorNoClientText,ERROR_TIMEOUT:te.errorTimeoutText,ERROR_FORBIDDEN:te.errorForbiddenText,ERROR_GENERIC:te.errorGenericText},Z=(Te,Xe)=>V8(Te,{includeReplay:!0,...Xe,errorMessages:j}),_e=ye.createDialog({options:{...te,onFormClose:()=>{var Te;_e==null||_e.close(),(Te=te.onFormClose)==null||Te.call(te)},onFormSubmitted:()=>{var Te;_e==null||_e.close(),(Te=te.onFormSubmitted)==null||Te.call(te)}},screenshotIntegration:D,sendFeedback:Z,shadow:me(te)});return _e},xe=(te,le={})=>{const ye=Ih($,le),D=typeof te=="string"?Gt.querySelector(te):typeof te.addEventListener=="function"?te:null;if(!D)throw wm&&X.error("[Feedback] Unable to attach to target element"),new Error("Unable to attach to target element");let j=null;const Z=async()=>{j||(j=await Ce({...ye,onFormSubmitted:()=>{var Te;j==null||j.removeFromDom(),(Te=ye.onFormSubmitted)==null||Te.call(ye)}})),j.appendToDom(),j.open()};D.addEventListener("click",Z);const _e=()=>{ce=ce.filter(Te=>Te!==_e),j==null||j.removeFromDom(),j=null,D.removeEventListener("click",Z)};return ce.push(_e),_e},Ae=(te={})=>{const le=Ih($,te),ye=me(le),D=qse({triggerLabel:le.triggerLabel,triggerAriaLabel:le.triggerAriaLabel,shadow:ye,styleNonce:h});return xe(D.el,{...le,onFormOpen(){D.hide()},onFormClose(){D.show()},onFormSubmitted(){D.show()}}),D};return{name:"Feedback",setupOnce(){!va()||!$.autoInject||(Gt.readyState==="loading"?Gt.addEventListener("DOMContentLoaded",()=>Ae().appendToDom()):Ae().appendToDom())},attachTo:xe,createWidget(te={}){const le=Ae(Ih($,te));return le.appendToDom(),le},async createForm(te={}){return Ce(Ih($,te))},setTheme(te){if($.colorScheme=te,U){const le=E5($);ee?U.replaceChild(le,ee):U.prepend(le),ee=le}},remove(){var te;U&&((te=U.parentElement)==null||te.remove(),U=null,ee=null),ce.forEach(le=>le()),ce=[]}}};function Xse(){const e=$e();return e==null?void 0:e.getIntegrationByName("Feedback")}
261var H1,Kt,U8,Ka,C5,j8,G_,qf={},gC=[],Zse=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,yC=Array.isArray;function ea(e,t){for(var n in t)e[n]=t[n];return e}function W8(e){var t=e.parentNode;t&&t.removeChild(e)}function bt(e,t,n){var r,i,o,s={};for(o in t)o=="key"?r=t[o]:o=="ref"?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?H1.call(arguments,2):n),typeof e=="function"&&e.defaultProps!=null)for(o in e.defaultProps)s[o]===void 0&&(s[o]=e.defaultProps[o]);return Tm(e,s,r,i,null)}function Tm(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:i??++U8,__i:-1,__u:0};return i==null&&Kt.vnode!=null&&Kt.vnode(o),o}function Pp(e){return e.children}function Am(e,t){this.props=e,this.context=t}function bc(e,t){if(t==null)return e.__?bc(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null)return n.__e;return typeof e.type=="function"?bc(e):null}function Yse(e,t,n){var r,i=e.__v,o=i.__e,s=e.__P;if(s)return(r=ea({},i)).__v=i.__v+1,Kt.vnode&&Kt.vnode(r),bC(s,r,i,e.__n,s.ownerSVGElement!==void 0,32&i.__u?[o]:null,t,o??bc(i),!!(32&i.__u),n),r.__.__k[r.__i]=r,r.__d=void 0,r.__e!=o&&G8(r),r}function G8(e){var t,n;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((n=e.__k[t])!=null&&n.__e!=null){e.__e=e.__c.base=n.__e;break}return G8(e)}}function w5(e){(!e.__d&&(e.__d=!0)&&Ka.push(e)&&!Gv.__r++||C5!==Kt.debounceRendering)&&((C5=Kt.debounceRendering)||j8)(Gv)}function Gv(){var e,t,n,r=[],i=[];for(Ka.sort(G_);e=Ka.shift();)e.__d&&(n=Ka.length,t=Yse(e,r,i)||t,n===0||Ka.length>n?(z_(r,t,i),i.length=r.length=0,t=void 0,Ka.sort(G_)):t&&Kt.__c&&Kt.__c(t,gC));t&&z_(r,t,i),Gv.__r=0}function z8(e,t,n,r,i,o,s,a,l,u,c){var d,f,p,h,m,v=r&&r.__k||gC,g=t.length;for(n.__d=l,Jse(n,t,v),l=n.__d,d=0;d<g;d++)(p=n.__k[d])!=null&&typeof p!="boolean"&&typeof p!="function"&&(f=p.__i===-1?qf:v[p.__i]||qf,p.__i=d,bC(e,p,f,i,o,s,a,l,u,c),h=p.__e,p.ref&&f.ref!=p.ref&&(f.ref&&_C(f.ref,null,p),c.push(p.ref,p.__c||h,p)),m==null&&h!=null&&(m=h),65536&p.__u||f.__k===p.__k?l=q8(p,l,e):typeof p.type=="function"&&p.__d!==void 0?l=p.__d:h&&(l=h.nextSibling),p.__d=void 0,p.__u&=-196609);n.__d=l,n.__e=m}function Jse(e,t,n){var r,i,o,s,a,l=t.length,u=n.length,c=u,d=0;for(e.__k=[],r=0;r<l;r++)(i=e.__k[r]=(i=t[r])==null||typeof i=="boolean"||typeof i=="function"?null:typeof i=="string"||typeof i=="number"||typeof i=="bigint"||i.constructor==String?Tm(null,i,null,null,i):yC(i)?Tm(Pp,{children:i},null,null,null):i.constructor===void 0&&i.__b>0?Tm(i.type,i.props,i.key,i.ref?i.ref:null,i.__v):i)!=null?(i.__=e,i.__b=e.__b+1,a=Qse(i,n,s=r+d,c),i.__i=a,o=null,a!==-1&&(c--,(o=n[a])&&(o.__u|=131072)),o==null||o.__v===null?(a==-1&&d--,typeof i.type!="function"&&(i.__u|=65536)):a!==s&&(a===s+1?d++:a>s?c>l-s?d+=a-s:d--:d=a<s&&a==s-1?a-s:0,a!==r+d&&(i.__u|=65536))):(o=n[r])&&o.key==null&&o.__e&&(o.__e==e.__d&&(e.__d=bc(o)),q_(o,o,!1),n[r]=null,c--);if(c)for(r=0;r<u;r++)(o=n[r])!=null&&!(131072&o.__u)&&(o.__e==e.__d&&(e.__d=bc(o)),q_(o,o))}function q8(e,t,n){var r,i;if(typeof e.type=="function"){for(r=e.__k,i=0;r&&i<r.length;i++)r[i]&&(r[i].__=e,t=q8(r[i],t,n));return t}e.__e!=t&&(n.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function Qse(e,t,n,r){var i=e.key,o=e.type,s=n-1,a=n+1,l=t[n];if(l===null||l&&i==l.key&&o===l.type)return n;if(r>(l!=null&&!(131072&l.__u)?1:0))for(;s>=0||a<t.length;){if(s>=0){if((l=t[s])&&!(131072&l.__u)&&i==l.key&&o===l.type)return s;s--}if(a<t.length){if((l=t[a])&&!(131072&l.__u)&&i==l.key&&o===l.type)return a;a++}}return-1}function T5(e,t,n){t[0]==="-"?e.setProperty(t,n??""):e[t]=n==null?"":typeof n!="number"||Zse.test(t)?n:n+"px"}function xh(e,t,n,r,i){var o;e:if(t==="style")if(typeof n=="string")e.style.cssText=n;else{if(typeof r=="string"&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||T5(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||T5(e.style,t,n[t])}else if(t[0]==="o"&&t[1]==="n")o=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n.u=r.u:(n.u=Date.now(),e.addEventListener(t,o?I5:A5,o)):e.removeEventListener(t,o?I5:A5,o);else{if(i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t!=="role"&&t in e)try{e[t]=n??"";break e}catch{}typeof n=="function"||(n==null||n===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,n))}}function A5(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(Kt.event?Kt.event(e):e)}}function I5(e){if(this.l)return this.l[e.type+!0](Kt.event?Kt.event(e):e)}function bC(e,t,n,r,i,o,s,a,l,u){var c,d,f,p,h,m,v,g,y,_,b,S,C,E,w,T=t.type;if(t.constructor!==void 0)return null;128&n.__u&&(l=!!(32&n.__u),o=[a=t.__e=n.__e]),(c=Kt.__b)&&c(t);e:if(typeof T=="function")try{if(g=t.props,y=(c=T.contextType)&&r[c.__c],_=c?y?y.props.value:c.__:r,n.__c?v=(d=t.__c=n.__c).__=d.__E:("prototype"in T&&T.prototype.render?t.__c=d=new T(g,_):(t.__c=d=new Am(g,_),d.constructor=T,d.render=tae),y&&y.sub(d),d.props=g,d.state||(d.state={}),d.context=_,d.__n=r,f=d.__d=!0,d.__h=[],d._sb=[]),d.__s==null&&(d.__s=d.state),T.getDerivedStateFromProps!=null&&(d.__s==d.state&&(d.__s=ea({},d.__s)),ea(d.__s,T.getDerivedStateFromProps(g,d.__s))),p=d.props,h=d.state,d.__v=t,f)T.getDerivedStateFromProps==null&&d.componentWillMount!=null&&d.componentWillMount(),d.componentDidMount!=null&&d.__h.push(d.componentDidMount);else{if(T.getDerivedStateFromProps==null&&g!==p&&d.componentWillReceiveProps!=null&&d.componentWillReceiveProps(g,_),!d.__e&&(d.shouldComponentUpdate!=null&&d.shouldComponentUpdate(g,d.__s,_)===!1||t.__v===n.__v)){for(t.__v!==n.__v&&(d.props=g,d.state=d.__s,d.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEac
261h(function(A){A&&(A.__=t)}),b=0;b<d._sb.length;b++)d.__h.push(d._sb[b]);d._sb=[],d.__h.length&&s.push(d);break e}d.componentWillUpdate!=null&&d.componentWillUpdate(g,d.__s,_),d.componentDidUpdate!=null&&d.__h.push(function(){d.componentDidUpdate(p,h,m)})}if(d.context=_,d.props=g,d.__P=e,d.__e=!1,S=Kt.__r,C=0,"prototype"in T&&T.prototype.render){for(d.state=d.__s,d.__d=!1,S&&S(t),c=d.render(d.props,d.state,d.context),E=0;E<d._sb.length;E++)d.__h.push(d._sb[E]);d._sb=[]}else do d.__d=!1,S&&S(t),c=d.render(d.props,d.state,d.context),d.state=d.__s;while(d.__d&&++C<25);d.state=d.__s,d.getChildContext!=null&&(r=ea(ea({},r),d.getChildContext())),f||d.getSnapshotBeforeUpdate==null||(m=d.getSnapshotBeforeUpdate(p,h)),z8(e,yC(w=c!=null&&c.type===Pp&&c.key==null?c.props.children:c)?w:[w],t,n,r,i,o,s,a,l,u),d.base=t.__e,t.__u&=-161,d.__h.length&&s.push(d),v&&(d.__E=d.__=null)}catch(A){t.__v=null,l||o!=null?(t.__e=a,t.__u|=l?160:32,o[o.indexOf(a)]=null):(t.__e=n.__e,t.__k=n.__k),Kt.__e(A,t,n)}else o==null&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=eae(n.__e,t,n,r,i,o,s,l,u);(c=Kt.diffed)&&c(t)}function z_(e,t,n){for(var r=0;r<n.length;r++)_C(n[r],n[++r],n[++r]);Kt.__c&&Kt.__c(t,e),e.some(function(i){try{e=i.__h,i.__h=[],e.some(function(o){o.call(i)})}catch(o){Kt.__e(o,i.__v)}})}function eae(e,t,n,r,i,o,s,a,l){var u,c,d,f,p,h,m,v=n.props,g=t.props,y=t.type;if(y==="svg"&&(i=!0),o!=null){for(u=0;u<o.length;u++)if((p=o[u])&&"setAttribute"in p==!!y&&(y?p.localName===y:p.nodeType===3)){e=p,o[u]=null;break}}if(e==null){if(y===null)return document.createTextNode(g);e=i?document.createElementNS("http://www.w3.org/2000/svg",y):document.createElement(y,g.is&&g),o=null,a=!1}if(y===null)v===g||a&&e.data===g||(e.data=g);else{if(o=o&&H1.call(e.childNodes),v=n.props||qf,!a&&o!=null)for(v={},u=0;u<e.attributes.length;u++)v[(p=e.attributes[u]).name]=p.value;for(u in v)p=v[u],u=="children"||(u=="dangerouslySetInnerHTML"?d=p:u==="key"||u in g||xh(e,u,null,p,i));for(u in g)p=g[u],u=="children"?f=p:u=="dangerouslySetInnerHTML"?c=p:u=="value"?h=p:u=="checked"?m=p:u==="key"||a&&typeof p!="function"||v[u]===p||xh(e,u,p,v[u],i);if(c)a||d&&(c.__html===d.__html||c.__html===e.innerHTML)||(e.innerHTML=c.__html),t.__k=[];else if(d&&(e.innerHTML=""),z8(e,yC(f)?f:[f],t,n,r,i&&y!=="foreignObject",o,s,o?o[0]:n.__k&&bc(n,0),a,l),o!=null)for(u=o.length;u--;)o[u]!=null&&W8(o[u]);a||(u="value",h!==void 0&&(h!==e[u]||y==="progress"&&!h||y==="option"&&h!==v[u])&&xh(e,u,h,v[u],!1),u="checked",m!==void 0&&m!==e[u]&&xh(e,u,m,v[u],!1))}return e}function _C(e,t,n){try{typeof e=="function"?e(t):e.current=t}catch(r){Kt.__e(r,n)}}function q_(e,t,n){var r,i;if(Kt.unmount&&Kt.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||_C(r,null,t)),(r=e.__c)!=null){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(o){Kt.__e(o,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&q_(r[i],t,n||typeof e.type!="function");n||e.__e==null||W8(e.__e),e.__=e.__e=e.__d=void 0}function tae(e,t,n){return this.constructor(e,n)}function nae(e,t,n){var r,i,o,s;Kt.__&&Kt.__(e,t),i=(r=!1)?null:t.__k,o=[],s=[],bC(t,e=t.__k=bt(Pp,null,[e]),i||qf,qf,t.ownerSVGElement!==void 0,i?null:t.firstChild?H1.call(t.childNodes):null,o,i?i.__e:t.firstChild,r,s),e.__d=void 0,z_(o,e,s)}H1=gC.slice,Kt={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&o.getDerivedStateFromError!=null&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),i.componentDidCatch!=null&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(a){e=a}throw e}},U8=0,Am.prototype.setState=function(e,t){var n;n=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=ea({},this.state),typeof e=="function"&&(e=e(ea({},n),this.props)),e&&ea(n,e),e!=null&&this.__v&&(t&&this._sb.push(t),w5(this))},Am.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),w5(this))},Am.prototype.render=Pp,Ka=[],j8=typeof Promise=="function"?Promise.prototype.then.bind(Prom
261ise.resolve()):setTimeout,G_=function(e,t){return e.__v.__b-t.__v.__b},Gv.__r=0;var Es,zt,sy,x5,_c=0,K8=[],Im=[],Sn=Kt,L5=Sn.__b,k5=Sn.__r,M5=Sn.diffed,R5=Sn.__c,P5=Sn.unmount,O5=Sn.__;function Xl(e,t){Sn.__h&&Sn.__h(zt,e,_c||t),_c=0;var n=zt.__H||(zt.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:Im}),n.__[e]}function Ya(e){return _c=1,X8(Y8,e)}function X8(e,t,n){var r=Xl(Es++,2);if(r.t=e,!r.__c&&(r.__=[n?n(t):Y8(void 0,t),function(a){var l=r.__N?r.__N[0]:r.__[0],u=r.t(l,a);l!==u&&(r.__N=[u,r.__[1]],r.__c.setState({}))}],r.__c=zt,!zt.u)){var i=function(a,l,u){if(!r.__c.__H)return!0;var c=r.__c.__H.__.filter(function(f){return!!f.__c});if(c.every(function(f){return!f.__N}))return!o||o.call(this,a,l,u);var d=!1;return c.forEach(function(f){if(f.__N){var p=f.__[0];f.__=f.__N,f.__N=void 0,p!==f.__[0]&&(d=!0)}}),!(!d&&r.__c.props===a)&&(!o||o.call(this,a,l,u))};zt.u=!0;var o=zt.shouldComponentUpdate,s=zt.componentWillUpdate;zt.componentWillUpdate=function(a,l,u){if(this.__e){var c=o;o=void 0,i(a,l,u),o=c}s&&s.call(this,a,l,u)},zt.shouldComponentUpdate=i}return r.__N||r.__}function rae(e,t){var n=Xl(Es++,3);!Sn.__s&&SC(n.__H,t)&&(n.__=e,n.i=t,zt.__H.__h.push(n))}function Z8(e,t){var n=Xl(Es++,4);!Sn.__s&&SC(n.__H,t)&&(n.__=e,n.i=t,zt.__h.push(n))}function iae(e){return _c=5,Op(function(){return{current:e}},[])}function oae(e,t,n){_c=6,Z8(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},n==null?n:n.concat(e))}function Op(e,t){var n=Xl(Es++,7);return SC(n.__H,t)?(n.__V=e(),n.i=t,n.__h=e,n.__V):n.__}function Ju(e,t){return _c=8,Op(function(){return e},t)}function sae(e){var t=zt.context[e.__c],n=Xl(Es++,9);return n.c=e,t?(n.__==null&&(n.__=!0,t.sub(zt)),t.props.value):e.__}function aae(e,t){Sn.useDebugValue&&Sn.useDebugValue(t?t(e):e)}function lae(e){var t=Xl(Es++,10),n=Ya();return t.__=e,zt.componentDidCatch||(zt.componentDidCatch=function(r,i){t.__&&t.__(r,i),n[1](r)}),[n[0],function(){n[1](void 0)}]}function uae(){var e=Xl(Es++,11);if(!e.__){for(var t=zt.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var n=t.__m||(t.__m=[0,0]);e.__="P"+n[0]+"-"+n[1]++}return e.__}function cae(){for(var e;e=K8.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(xm),e.__H.__h.forEach(K_),e.__H.__h=[]}catch(t){e.__H.__h=[],Sn.__e(t,e.__v)}}Sn.__b=function(e){zt=null,L5&&L5(e)},Sn.__=function(e,t){t.__k&&t.__k.__m&&(e.__m=t.__k.__m),O5&&O5(e,t)},Sn.__r=function(e){k5&&k5(e),Es=0;var t=(zt=e.__c).__H;t&&(sy===zt?(t.__h=[],zt.__h=[],t.__.forEach(function(n){n.__N&&(n.__=n.__N),n.__V=Im,n.__N=n.i=void 0})):(t.__h.forEach(xm),t.__h.forEach(K_),t.__h=[],Es=0)),sy=zt},Sn.diffed=function(e){M5&&M5(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(K8.push(t)!==1&&x5===Sn.requestAnimationFrame||((x5=Sn.requestAnimationFrame)||dae)(cae)),t.__H.__.forEach(function(n){n.i&&(n.__H=n.i),n.__V!==Im&&(n.__=n.__V),n.i=void 0,n.__V=Im})),sy=zt=null},Sn.__c=function(e,t){t.some(function(n){try{n.__h.forEach(xm),n.__h=n.__h.filter(function(r){return!r.__||K_(r)})}catch(r){t.some(function(i){i.__h&&(i.__h=[])}),t=[],Sn.__e(r,n.__v)}}),R5&&R5(e,t)},Sn.unmount=function(e){P5&&P5(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(r){try{xm(r)}catch(i){t=i}}),n.__H=void 0,t&&Sn.__e(t,n.__v))};var $5=typeof requestAnimationFrame=="function";function dae(e){var t,n=function(){clearTimeout(r),$5&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);$5&&(t=requestAnimationFrame(n))}function xm(e){var t=zt,n=e.__c;typeof n=="function"&&(e.__c=void 0,n()),zt=t}function K_(e){var t=zt;e.__c=e.__(),zt=t}function SC(e,t){return!e||e.length!==t.length||t.some(function(n,r){return n!==e[r]})}function Y8(e,t){return typeof t=="function"?t(e):t}const fae=Object.defineProperty({__proto__:null,useCallback:Ju,useContext:sae,useDebugValue:aae,useEffect:rae,useErrorBoundary:lae,useId:uae,useImperativeHandle:oae,useLayoutEffect:Z8,useMemo:Op,useReducer:X8,useRef:iae,useState:Ya},Symbol.toStringTag,{value:"Module"}),pae="http://www.w3.org/2000/svg";function hae(){const e=r=>Gt.createElementNS(pae,r),t=oi(e("svg"),{width:"32",height:"30",viewBox:"0 0 72 66",fill:"inherit"}),n=oi(e("path"),{transform:"translate(11, 11)",d:"M29,2.26a4.67,4.67,0,0,0-8,0L14.42,13.53A32.21,32.21,0,0,1,32.17,40.19H27.55A27.68,27.68,0,0,0,12.09,17.47L6,28a15.92,15.92,0,0,1,9.23,12.17H4.62A.76.76,0,0,1,4,39.06l2.94-5a10.74,10.74,0,0,0-3.36-1.9l-2.91,5a4.54,4.54,0,0,0,1.69,6.24A4.66,4.66,0,0,0,4.62,44H19.15a19.4,19.4,0,0,0-8-17.31l2.31-4A23.87,23.87,0,0,1,23.76,44H36.07a35.88,35.88,0,0,0-16.41-31.8l4.67-8a.77.77,0,0,1,1.05-.27c.53.29,20.29,34.77,20.66,35.17a.76.76,0,0,1-.68,1.13H40.6q.09,1.91,0,3.81h4.78A4.59,4.59,0,0,0,50,39.43a4.49,4.49,0,0,0-.62-2.28Z"});return t.appendChild(n),t}function mae({options:e}){const t=Op(()=>({__html:hae().outerHTML}),[]);return bt("h2",{class:"dialog__header"},bt("span",{class:"dialog__title"},e.formTitle),e.showBranding?bt("a",{class:"brand-link",target:"_blank",href:"https://sentry.io/welcome/",title:"Powered by Sentry",rel:"noopener noreferrer",dangerouslySetInnerHTML:t}):null)}function vae(e,t){const n=[];return t.isNameRequired&&!e.name&&n.push(t.nameLabel),t.isEmailRequired&&!e.email&&n.push(t.emailLabel),e.message||n.push(t.messageLabel),n}function ay(e,t){const n=e.get(t);return typeof n=="string"?n.trim():""}function gae({options:e,defaultEmail:t,defaultName:n,onFormClose:r,onSubmit:i,onSubmitSuccess:o,onSubmitError:s,showEmail
261:a,showName:l,screenshotInput:u}){const{tags:c,addScreenshotButtonLabel:d,removeScreenshotButtonLabel:f,cancelButtonLabel:p,emailLabel:h,emailPlaceholder:m,isEmailRequired:v,isNameRequired:g,messageLabel:y,messagePlaceholder:_,nameLabel:b,namePlaceholder:S,submitButtonLabel:C,isRequiredLabel:E}=e,[w,T]=Ya(!1),[A,L]=Ya(null),[x,k]=Ya(!1),M=u==null?void 0:u.input,[z,P]=Ya(null),H=Ju(se=>{P(se),k(!1)},[]),q=Ju(se=>{const W=vae(se,{emailLabel:h,isEmailRequired:v,isNameRequired:g,messageLabel:y,nameLabel:b});return W.length>0?L(`Please enter in the following required fields: ${W.join(", ")}`):L(null),W.length===0},[h,v,g,y,b]),de=Ju(async se=>{T(!0);try{if(se.preventDefault(),!(se.target instanceof HTMLFormElement))return;const W=new FormData(se.target),V=await(u&&x?u.value():void 0),B={name:ay(W,"name"),email:ay(W,"email"),message:ay(W,"message"),attachments:V?[V]:void 0};if(!q(B))return;try{const Y=await i({name:B.name,email:B.email,message:B.message,source:Vse,tags:c},{attachments:B.attachments});o(B,Y)}catch(Y){wm&&X.error(Y);const F=Y instanceof Error?Y:new Error(String(Y));L(F.message),s(F)}}finally{T(!1)}},[u&&x,o,s]);return bt("form",{class:"form",onSubmit:de},M&&x?bt(M,{onError:H}):null,bt("fieldset",{class:"form__right","data-sentry-feedback":!0,disabled:w},bt("div",{class:"form__top"},A?bt("div",{class:"form__error-container"},A):null,l?bt("label",{for:"name",class:"form__label"},bt(ly,{label:b,isRequiredLabel:E,isRequired:g}),bt("input",{class:"form__input",defaultValue:n,id:"name",name:"name",placeholder:S,required:g,type:"text"})):bt("input",{"aria-hidden":!0,value:n,name:"name",type:"hidden"}),a?bt("label",{for:"email",class:"form__label"},bt(ly,{label:h,isRequiredLabel:E,isRequired:v}),bt("input",{class:"form__input",defaultValue:t,id:"email",name:"email",placeholder:m,required:v,type:"email"})):bt("input",{"aria-hidden":!0,value:t,name:"email",type:"hidden"}),bt("label",{for:"message",class:"form__label"},bt(ly,{label:y,isRequiredLabel:E,isRequired:!0}),bt("textarea",{autoFocus:!0,class:"form__input form__input--textarea",id:"message",name:"message",placeholder:_,required:!0,rows:5})),M?bt("label",{for:"screenshot",class:"form__label"},bt("button",{class:"btn btn--default",disabled:w,type:"button",onClick:()=>{P(null),k(se=>!se)}},x?f:d),z?bt("div",{class:"form__error-container"},z.message):null):null),bt("div",{class:"btn-group"},bt("button",{class:"btn btn--primary",disabled:w,type:"submit"},C),bt("button",{class:"btn btn--default",disabled:w,type:"button",onClick:r},p))))}function ly({label:e,isRequired:t,isRequiredLabel:n}){return bt("span",{class:"form__label__text"},e,t&&bt("span",{class:"form__label__text--required"},n))}const Lh=16,N5=17,yae="http://www.w3.org/2000/svg";function bae(){const e=l=>Xi.document.createElementNS(yae,l),t=oi(e("svg"),{width:`${Lh}`,height:`${N5}`,viewBox:`0 0 ${Lh} ${N5}`,fill:"inherit"}),n=oi(e("g"),{clipPath:"url(#clip0_57_156)"}),r=oi(e("path"),{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.55544 15.1518C4.87103 16.0308 6.41775 16.5 8 16.5C10.1217 16.5 12.1566 15.6571 13.6569 14.1569C15.1571 12.6566 16 10.6217 16 8.5C16 6.91775 15.5308 5.37103 14.6518 4.05544C13.7727 2.73985 12.5233 1.71447 11.0615 1.10897C9.59966 0.503466 7.99113 0.34504 6.43928 0.653721C4.88743 0.962403 3.46197 1.72433 2.34315 2.84315C1.22433 3.96197 0.462403 5.38743 0.153721 6.93928C-0.15496 8.49113 0.00346625 10.0997 0.608967 11.5615C1.21447 13.0233 2.23985 14.2727 3.55544 15.1518ZM4.40546 3.1204C5.46945 2.40946 6.72036 2.03 8 2.03C9.71595 2.03 11.3616 2.71166 12.575 3.92502C13.7883 5.13838 14.47 6.78405 14.47 8.5C14.47 9.77965 14.0905 11.0306 13.3796 12.0945C12.6687 13.1585 11.6582 13.9878 10.476 14.4775C9.29373 14.9672 7.99283 15.0953 6.73777 14.8457C5.48271 14.596 4.32987 13.9798 3.42502 13.075C2.52018 12.1701 1.90397 11.0173 1.65432 9.76224C1.40468 8.50718 1.5328 7.20628 2.0225 6.02404C2.5122 4.8418 3.34148 3.83133 4.40546 3.1204Z"}),i=oi(e("path"),{d:"M6.68775 12.4297C6.78586 12.4745 6.89218 12.4984 7 12.5C7.11275 12.4955 7.22315 12.4664 7.32337 12.4145C7.4236 12.3627 7.51121 12.2894 7.58 12.2L12 5.63999C12.0848 5.47724 12.1071 5.28902 12.0625 5.11098C12.0178 4.93294 11.9095 4.77744 11.7579 4.67392C11.6064 4.57041 11.4221 4.52608 11.24 4.54931C11.0579 4.57254 10.8907 4.66173
26110.77 4.79999L6.88 10.57L5.13 8.56999C5.06508 8.49566 4.98613 8.43488 4.89768 8.39111C4.80922 8.34735 4.713 8.32148 4.61453 8.31498C4.51605 8.30847 4.41727 8.32147 4.32382 8.35322C4.23038 8.38497 4.14413 8.43484 4.07 8.49999C3.92511 8.63217 3.83692 8.81523 3.82387 9.01092C3.81083 9.2066 3.87393 9.39976 4 9.54999L6.43 12.24C6.50187 12.3204 6.58964 12.385 6.68775 12.4297Z"});t.appendChild(n).append(i,r);const o=e("defs"),s=oi(e("clipPath"),{id:"clip0_57_156"}),a=oi(e("rect"),{width:`${Lh}`,height:`${Lh}`,fill:"white",transform:"translate(0 0.5)"});return s.appendChild(a),o.appendChild(s),t.appendChild(o).appendChild(s).appendChild(a),t}function _ae({open:e,onFormSubmitted:t,...n}){const r=n.options,i=Op(()=>({__html:bae().outerHTML}),[]),[o,s]=Ya(null),a=Ju(()=>{o&&(clearTimeout(o),s(null)),t()},[o]),l=Ju((u,c)=>{n.onSubmitSuccess(u,c),s(setTimeout(()=>{t(),s(null)},Bse))},[t]);return bt(Pp,null,o?bt("div",{class:"success__position",onClick:a},bt("div",{class:"success__content"},r.successMessageText,bt("span",{class:"success__icon",dangerouslySetInnerHTML:i}))):bt("dialog",{class:"dialog",onClick:r.onFormClose,open:e},bt("div",{class:"dialog__position"},bt("div",{class:"dialog__content",onClick:u=>{u.stopPropagation()}},bt(mae,{options:r}),bt(gae,{...n,onSubmitSuccess:l})))))}const Sae=` 262.dialog { 263 position: fixed; 264 z-index: var(--z-index); 265 margin: 0; 266 inset: 0; 267 268 display: flex; 269 align-items: center; 270 justify-content: center; 271 padding: 0; 272 height: 100vh; 273 width: 100vw; 274 275 color: var(--dialog-color, var(--foreground)); 276 fill: var(--dialog-color, var(--foreground)); 277 line-height: 1.75em; 278 279 background-color: rgba(0, 0, 0, 0.05); 280 border: none; 281 inset: 0; 282 opacity: 1; 283 transition: opacity 0.2s ease-in-out; 284} 285 286.dialog__position { 287 position: fixed; 288 z-index: var(--z-index); 289 inset: var(--dialog-inset); 290 padding: var(--page-margin); 291 display: flex; 292 max-height: calc(100vh - (2 * var(--page-margin))); 293} 294@media (max-width: 600px) { 295 .dialog__position { 296 inset: var(--page-margin); 297 padding: 0; 298 } 299} 300 301.dialog__position:has(.editor) { 302 inset: var(--page-margin); 303 padding: 0; 304} 305 306.dialog:not([open]) { 307 opacity: 0; 308 pointer-events: none; 309 visibility: hidden; 310} 311.dialog:not([open]) .dialog__content { 312 transform: translate(0, -16px) scale(0.98); 313} 314 315.dialog__content { 316 display: flex; 317 flex-direction: column; 318 gap: 16px; 319 padding: var(--dialog-padding, 24px); 320 max-width: 100%; 321 width: 100%; 322 max-height: 100%; 323 overflow: auto; 324 325 background: var(--dialog-background, var(--background)); 326 border-radius: var(--dialog-border-radius, 20px); 327 border: var(--dialog-border, var(--border));
328 box-shadow: var(--dialog-box-shadow, var(--box-shadow)); 329 transform: translate(0, 0) scale(1); 330 transition: transform 0.2s ease-in-out; 331} 332 333`,Eae=` 334.dialog__header { 335 display: flex; 336 gap: 4px; 337 justify-content: space-between; 338 font-weight: var(--dialog-header-weight, 600); 339 margin: 0; 340} 341.dialog__title { 342 align-self: center; 343 width: var(--form-width, 272px); 344} 345 346@media (max-width: 600px) { 347 .dialog__title { 348 width: auto; 349 } 350} 351 352.dialog__position:has(.editor) .dialog__title { 353 width: auto; 354} 355 356 357.brand-link { 358 display: inline-flex; 359} 360.brand-link:focus-visible { 361 outline: var(--outline); 362} 363`,Cae=` 364.form { 365 display: flex; 366 overflow: auto; 367 flex-direction: row; 368 gap: 16px; 369 flex: 1 0; 370} 371 372.form fieldset { 373 border: none; 374 margin: 0; 375 padding: 0; 376} 377 378.form__right { 379 flex: 0 0 auto; 380 display: flex; 381 overflow: auto; 382 flex-direction: column; 383 justify-content: space-between; 384 gap: 20px; 385 width: var(--form-width, 100%); 386} 387 388.dialog__position:has(.editor) .form__right { 389 width: var(--form-width, 272px); 390} 391 392.form__top { 393 display: flex; 394 flex-direction: column; 395 gap: 8px; 396} 397 398.form__error-container { 399 color: var(--error-color); 400 fill: var(--error-color); 401} 402 403.form__label { 404 display: flex; 405 flex-direction: column; 406 gap: 4px; 407 margin: 0px; 408} 409 410.form__label__text { 411 display: flex; 412 gap: 4px; 413 align-items: center; 414} 415 416.form__label__text--required { 417 font-size: 0.85em; 418} 419 420.form__input { 421 font-family: inherit; 422 line-height: inherit; 423 background: transparent; 424 box-sizing: border-box; 425 border: var(--input-border, var(--border)); 426 border-radius: var(--input-border-radius, 6px); 427 color: var(--input-color, inherit); 428 fill: var(--input-color, inherit); 429 font-size: var(--input-font-size, inherit); 430 font-weight: var(--input-font-weight, 500); 431 padding: 6px 12px; 432} 433 434.form__input::placeholder { 435 opacity: 0.65; 436 color: var(--input-placeholder-color, inherit); 437 filter: var(--interactive-filter); 438} 439 440.form__input:focus-visible { 441 outline: var(--input-focus-outline, var(--outline)); 442} 443 444.form__input--textarea { 445 font-family: inherit; 446 resize: vertical; 447} 448 449.error { 450 color: var(--error-color); 451 fill: var(--error-color); 452} 453`,wae=` 454.btn-group { 455 display: grid; 456 gap: 8px; 457} 458 459.btn { 460 line-height: inherit; 461 border: var(--button-border, var(--border)); 462 border-radius: var(--button-border-radius, 6px); 463 cursor: pointer; 464 font-family: inherit; 465 font-size: var(--button-font-size, inherit); 466 font-weight: var(--button-font-weight, 600); 467 padding: var(--button-padding, 6px 16px); 468} 469.btn[disabled] { 470 opacity: 0.6; 471 pointer-events: none; 472} 473 474.btn--primary { 475 color: var(--button-primary-color, var(--accent-foreground)); 476 fill: var(--button-primary-color, var(--accent-foreground)); 477 background: var(--button-primary-background, var(--accent-background)); 478 border: var(--button-primary-border, var(--border)); 479 border-radius: var(--button-primary-border-radius, 6px); 480 font-weight: var(--button-primary-font-weight, 500); 481} 482.btn--primary:hover { 483 color: var(--button-primary-hover-color, var(--accent-foreground)); 484 fill: var(--button-primary-hover-color, var(--accent-foreground)); 485 background: var(--button-primary-hover-background, var(--accent-background)); 486 filter: var(--interactive-filter); 487} 488.btn--primary:focus-visible { 489 background: var(--button-primary-hover-background, var(--accent-background)); 490 filter: var(--interactive-filter); 491 outline: var(--button-primary-focus-outline, var(--outline)); 492} 493 494.btn--default { 495 color: var(--button-color, var(--foreground)); 496 fill: var(--button-color, var(--foreground)); 497 background: var(--button-background, var(--background)); 498 border: var(--button-border, var(--border)); 499 border-radius: var(--button-border-radius, 6px); 500 font-weight: var(--button-font-weight, 500); 501} 502.btn--default:hover { 503 color: var(--button-color, var(--foreground)); 504 fill: var(--button-color, var(--foreground)); 505 background: var(--button-hover-background, var(--background)); 506 filter: var(--interactive-filter); 507} 508.btn--default:focus-visible { 509 background: var(--button-hover-background, var(--background)); 510 filter: var(--interactive-filter); 511 outline: var(--button-focus-outline, var(--outline)); 512} 513`,Tae=` 514.success__position { 515 position: fixed; 516 inset: var(--dialog-inset); 517 padding: var(--page-margin); 518 z-index: var(--z-index); 519} 520.success__content { 521 background: var(--success-background, var(--background)); 522 border: var(--success-border, var(--border)); 523 border-radius: var(--success-border-radius, 1.7em/50%);
524 box-shadow: var(--success-box-shadow, var(--box-shadow)); 525 font-weight: var(--success-font-weight, 600); 526 color: var(--success-color); 527 fill: var(--success-color); 528 padding: 12px 24px; 529 line-height: 1.75em; 530 531 display: grid; 532 align-items: center; 533 grid-auto-flow: column; 534 gap: 6px; 535 cursor: default; 536} 537 538.success__icon { 539 display: flex; 540} 541`;function Aae(e){const t=Gt.createElement("style");return t.textContent=` 542:host { 543 --dialog-inset: var(--inset); 544} 545 546${Sae} 547${Eae} 548${Cae} 549${wae} 550${Tae} 551`,e&&t.setAttribute("nonce",e),t}function Iae(){const e=nt().getUser(),t=Zt().getUser(),n=ll().getUser();return e&&Object.keys(e).length?e:t&&Object.keys(t).length?t:n}const xae=()=>({name:"FeedbackModal",setupOnce(){},createDialog:({options:e,screenshotIntegration:t,sendFeedback:n,shadow:r})=>{const i=r,o=e.useSentryUser,s=Iae(),a=Gt.createElement("div"),l=Aae(e.styleNonce);let u="";const c={get el(){return a},appendToDom(){!i.contains(l)&&!i.contains(a)&&(i.appendChild(l),i.appendChild(a))},removeFromDom(){a.remove(),l.remove(),Gt.body.style.overflow=u},open(){var p,h;f(!0),(p=e.onFormOpen)==null||p.call(e),(h=$e())==null||h.emit("openFeedbackWidget"),u=Gt.body.style.overflow,Gt.body.style.overflow="hidden"},close(){f(!1),Gt.body.style.overflow=u}},d=t==null?void 0:t.createInput({h:bt,hooks:fae,dialog:c,options:e}),f=p=>{nae(bt(_ae,{options:e,screenshotInput:d,showName:e.showName||e.isNameRequired,showEmail:e.showEmail||e.isEmailRequired,defaultName:String(o&&(s==null?void 0:s[o.name])||""),defaultEmail:String(o&&(s==null?void 0:s[o.email])||""),onFormClose:()=>{var h;f(!1),(h=e.onFormClose)==null||h.call(e)},onSubmit:n,onSubmitSuccess:(h,m)=>{var v;f(!1),(v=e.onSubmitSuccess)==null||v.call(e,h,m)},onSubmitError:h=>{var m;(m=e.onSubmitError)==null||m.call(e,h)},onFormSubmitted:()=>{var h;(h=e.onFormSubmitted)==null||h.call(e)},open:p}),a)};return c}});function Lae({h:e}){return function(){return e("svg",{"data-test-id":"icon-close",viewBox:"0 0 16 16",fill:"#2B2233",height:"25px",width:"25px"},e("circle",{r:"7",cx:"8",cy:"8",fill:"white"}),e("path",{strokeWidth:"1.5",d:"M8,16a8,8,0,1,1,8-8A8,8,0,0,1,8,16ZM8,1.53A6.47,6.47,0,1,0,14.47,8,6.47,6.47,0,0,0,8,1.53Z"}),e("path",{strokeWidth:"1.5",d:"M5.34,11.41a.71.71,0,0,1-.53-.22.74.74,0,0,1,0-1.06l5.32-5.32a.75.75,0,0,1,1.06,1.06L5.87,11.19A.74.74,0,0,1,5.34,11.41Z"}),e("path",{strokeWidth:"1.5",d:"M10.66,11.41a.74.74,0,0,1-.53-.22L4.81,5.87A.75.75,0,0,1,5.87,4.81l5.32,5.32a.74.74,0,0,1,0,1.06A.71.71,0,0,1,10.66,11.41Z"}))}}function kae(e){const t=Gt.createElement("style"),n="#1A141F",r="#302735";return t.textContent=` 552.editor { 553 display: flex; 554 flex-grow: 1; 555 flex-direction: column; 556} 557 558.editor__image-container { 559 justify-items: center; 560 padding: 15px; 561 position: relative; 562 height: 100%; 563 border-radius: var(--menu-border-radius, 6px); 564 565 background-color: ${n}; 566 background-image: repeating-linear-gradient( 567 -145deg, 568 transparent, 569 transparent 8px, 570 ${n} 8px, 571 ${n} 11px 572 ), 573 repeating-linear-gradient( 574 -45deg, 575 transparent, 576 transparent 15px, 577 ${r} 15px, 578 ${r} 16px 579 ); 580} 581 582.editor__canvas-container { 583 width: 100%; 584 height: 100%; 585 position: relative; 586 display: flex; 587 align-items: center; 588 justify-content: center; 589} 590 591.editor__canvas-container > * { 592 object-fit: contain; 593 position: absolute; 594} 595 596.editor__tool-container { 597 padding-top: 8px; 598 display: flex; 599 justify-content: center; 600} 601 602.editor__tool-bar { 603 display: flex; 604 gap: 8px; 605} 606 607.editor__tool { 608 display: flex; 609 padding: 8px 12px; 610 justify-content: center; 611 align-items: center; 612 border: var(--button-border, var(--border)); 613 border-radius: var(--button-border-radius, 6px); 614 background: var(--button-background, var(--background)); 615 color: var(--button-color, var(--foreground)); 616} 617 618.editor__tool--active { 619 background: var(--button-primary-background, var(--accent-background)); 620 color: var(--button-primary-color, var(--accent-foreground)); 621} 622 623.editor__rect { 624 position: absolute; 625 z-index: 2; 626} 627 628.editor__rect button { 629 opacity: 0; 630 position: absolute; 631 top: -12px; 632 right: -12px; 633 cursor: pointer; 634 padding: 0; 635 z-index: 3; 636 border: none; 637 background: none; 638} 639 640.editor__rect:hover button { 641 opacity: 1; 642} 643`,e&&t.setAttribute("nonce",e),t}function Mae({h:e}){return function({action:n,setAction:r,options:i}){return e("div",{class:"editor__tool-container"},e("div",{class:"editor__tool-bar"},e("button",{type:"button",class:`editor__tool ${n==="highlight"?"editor__tool--active":""}`,onClick:()=>{r(n==="highlight"?"":"highlight")}},i.highlightToolText),e("button",{type:"button",class:`editor__tool ${n==="hide"?"editor__tool--active":""}`,onClick:()=>{r(n==="hide"?"":"hide")}},i.hideToolText)))}}function Rae({hooks:e}){function t(){const[n,r]=e.useState(Xi.devicePixelRatio??1);return e.useEffect(()=>{const i=()=>{r(Xi.devicePixelRatio)},o=matchMedia(`(resolution: ${Xi.devicePixelRatio}dppx)`);
643return o.addEventListener("change",i),()=>{o.removeEventListener("change",i)}},[]),n}return function({onBeforeScreenshot:r,onScreenshot:i,onAfterScreenshot:o,onError:s}){const a=t();e.useEffect(()=>{(async()=>{r();const u=await Hd.mediaDevices.getDisplayMedia({video:{width:Xi.innerWidth*a,height:Xi.innerHeight*a},audio:!1,monitorTypeSurfaces:"exclude",preferCurrentTab:!0,selfBrowserSurface:"include",surfaceSwitching:"exclude"}),c=Gt.createElement("video");await new Promise((d,f)=>{c.srcObject=u,c.onloadedmetadata=()=>{i(c,a),u.getTracks().forEach(p=>p.stop()),d()},c.play().catch(f)}),o()})().catch(s)},[])}}function Pae(e,t,n){switch(e.type){case"highlight":{t.shadowColor="rgba(0, 0, 0, 0.7)",t.shadowBlur=50,t.fillStyle=n,t.fillRect(e.x-1,e.y-1,e.w+2,e.h+2),t.clearRect(e.x,e.y,e.w,e.h);break}case"hide":t.fillStyle="rgb(0, 0, 0)",t.fillRect(e.x,e.y,e.w,e.h);break}}function Gs(e,t,n){if(!e)return;const r=e.getContext("2d",t);r&&n(e,r)}function uy(e,t){Gs(e,{alpha:!0},(n,r)=>{r.drawImage(t,0,0,t.width,t.height,0,0,n.width,n.height)})}function cy(e,t,n){Gs(e,{alpha:!0},(r,i)=>{n.length&&(i.fillStyle="rgba(0, 0, 0, 0.25)",i.fillRect(0,0,r.width,r.height)),n.forEach(o=>{Pae(o,i,t)})})}function Oae({h:e,hooks:t,outputBuffer:n,dialog:r,options:i}){const o=Rae({hooks:t}),s=Mae({h:e}),a=Lae({h:e}),l={__html:kae(i.styleNonce).innerText},u=r.el.style,c=({screenshot:d})=>{const[f,p]=t.useState("highlight"),[h,m]=t.useState([]),v=t.useRef(null),g=t.useRef(null),y=t.useRef(null),_=t.useRef(null),[b,S]=t.useState(1),C=t.useMemo(()=>{const x=Gt.getElementById(i.id);if(!x)return"white";const k=getComputedStyle(x);return k.getPropertyValue("--button-primary-background")||k.getPropertyValue("--accent-background")},[i.id]);t.useLayoutEffect(()=>{const x=()=>{const k=v.current;k&&(Gs(d.canvas,{alpha:!1},M=>{const z=Math.min(k.clientWidth/M.width,k.clientHeight/M.height);S(z)}),(k.clientHeight===0||k.clientWidth===0)&&setTimeout(x,0))};return x(),Xi.addEventListener("resize",x),()=>{Xi.removeEventListener("resize",x)}},[d]);const E=t.useCallback((x,k)=>{Gs(x,{alpha:!0},(M,z)=>{z.scale(k,k),M.width=d.canvas.width,M.height=d.canvas.height})},[d]);t.useEffect(()=>{E(g.current,d.dpi),uy(g.current,d.canvas)},[d]),t.useEffect(()=>{E(y.current,d.dpi),Gs(y.current,{alpha:!0},(x,k)=>{k.clearRect(0,0,x.width,x.height)}),cy(y.current,C,h)},[h,C]),t.useEffect(()=>{E(n,d.dpi),uy(n,d.canvas),Gs(Gt.createElement("canvas"),{alpha:!0},(x,k)=>{k.scale(d.dpi,d.dpi),x.width=d.canvas.width,x.height=d.canvas.height,cy(x,C,h),uy(n,x)})},[h,d,C]);const w=x=>{if(!f||!_.current)return;const k=_.current.getBoundingClientRect(),M={type:f,x:x.offsetX/b,y:x.offsetY/b},z=(q,de)=>{const se=(de.clientX-k.x)/b,W=(de.clientY-k.y)/b;return{type:q.type,x:Math.min(q.x,se),y:Math.min(q.y,W),w:Math.abs(se-q.x),h:Math.abs(W-q.y)}},P=q=>{Gs(y.current,{alpha:!0},(de,se)=>{se.clearRect(0,0,de.width,de.height)}),cy(y.current,C,[...h,z(M,q)])},H=q=>{const de=z(M,q);de.w*b>=1&&de.h*b>=1&&m(se=>[...se,de]),Gt.removeEventListener("mousemove",P),Gt.removeEventListener("mouseup",H)};Gt.addEventListener("mousemove",P),Gt.addEventListener("mouseup",H)},T=t.useCallback(x=>k=>{k.preventDefault(),k.stopPropagation(),m(M=>{const z=[...M];return z.splice(x,1),z})},[]),A={width:`${d.canvas.width*b}px`,height:`${d.canvas.height*b}px`},L=x=>{x.stopPropagation()};return e("div",{class:"editor"},e("style",{nonce:i.styleNonce,dangerouslySetInnerHTML:l}),e("div",{class:"editor__image-container"},e("div",{class:"editor__canvas-container",ref:v},e("canvas",{ref:g,id:"background",style:A}),e("canvas",{ref:y,id:"foreground",style:A}),e("div",{ref:_,onMouseDown:w,style:A},h.map((x,k)=>e("div",{key:k,class:"editor__rect",style:{top:`${x.y*b}px`,left:`${x.x*b}px`,width:`${x.w*b}px`,height:`${x.h*b}px`}},e("button",{"aria-label":i.removeHighlightText,onClick:T(k),onMouseDown:L,onMouseUp:L,type:"button"},e(a,null))))))),e(s,{options:i,action:f,setAction:p}))};return function({onError:f}){const[p,h]=t.useState();return o({onBeforeScreenshot:t.useCallback(()=>{u.display="none"},[]),onScreenshot:t.useCallback((m,v)=>{Gs(Gt.createElement("canvas"),{alpha:!1},(g,y)=>{y.scale(v,v),g.width=m.videoWidth,g.height=m.videoHeight,y.drawImage(m,0,0,g.width,g.height),h({canvas:g,dpi:v})}),n.width=m.videoWidth,n.height=m.videoHeight},[]),onAfterScreenshot:t.useCallback(()=>{u.display="block"},[]),onError:t.useCallback(m=>{u.display="block",f(m)},[])}),p?e(c,{screenshot:p}):e("div",null)}}const $ae=()=>({name:"FeedbackScreenshot",setupOnce(){},createInput:({h:e,hooks:t,dialog:n,options:r})=>{const i=Gt.createElement("canvas");return{input:Oae({h:e,hooks:t,outputBuffer:i,dialog:n,options:r}),value:async()=>{const o=await new Promise(s=>{i.toBlob(s,"image/png")});if(o)return{data:new Uint8Array(await o.arrayBuffer()),filename:"screenshot.png",contentType:"application/png"}}}}}),Be=Ke;let X_=0;function J8(){return X_>0}function Nae(){X_++,setTimeout(()=>{X_--})}function Sc(e,t={}){function n(i){return typeof i=="function"}if(!n(e))return e;try{if(Object.prototype.hasOwnProperty.call(e,"__sentry_wrapped__")){const o=e.__sentry_wrapped__;return typeof o=="function"?o:e}if(VE(e))return e}catch{return e}const r=function(...i){Ke._sentryWrappedDepth=(Ke._sentryWrappedDepth||0)+1;try{const o=i.map(s=>Sc(s,t));return e.apply(this,o)}catch(o){throw Nae(),pi(s=>{s.addEventProcessor(a=>(t.mechanism&&(A_(a,void 0,void 0),Io(a,t.mechanism)),a.extra={...a.extra,arguments:i},a)),di(o)}),o}finally{Ke._sentryWrappedDepth=(Ke._sentryWrappedDepth||0)-1}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}uO(r,e),zn(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}function zv(){const e=ya(),{referrer:t}=Be.document||{},{userAgent:n}=Be.navigator||{},r={...t&&{Referer:t},...n&&{"User-Agent":n}};return{url:e,headers:r}}const Hae=["replayIntegration","replayCanvasIntegration","feedbackIntegration","feedbackModalIntegration","feedbackScreenshotIntegration","captureConsoleIntegration","contextLinesIntegration","linkedErrorsIntegration","dedupeIntegration","extraErrorDataIntegration","graphqlClientIntegration","httpClientIntegration","reportingObserverIntegration","rewriteFramesIntegration","browserProfilingIntegration","moduleMetadataIntegration","instrumentAnthropicAiClient","
643instrumentOpenAiClient","instrumentGoogleGenAIClient","instrumentStateGraph","instrumentLangGraph","createLangChainCallbackHandler","instrumentLangChainEmbeddings"],Dae={replayCanvasIntegration:"replay-canvas",feedbackModalIntegration:"feedback-modal",feedbackScreenshotIntegration:"feedback-screenshot"};function Vae(e){return Dae[e]||e.replace("Integration","").toLowerCase()}const H5=Be;async function Q8(e,t){const n=Hae.includes(e)?Vae(e):void 0,r=H5.Sentry=H5.Sentry||{};if(!n)throw new Error(`Cannot lazy load integration: ${e}`);const i=r[e];if(typeof i=="function"&&!("_isShim"in i))return i;const o=Fae(n),s=Be.document.createElement("script");s.src=o,s.crossOrigin="anonymous",s.referrerPolicy="strict-origin",t&&s.setAttribute("nonce",t);const a=new Promise((d,f)=>{s.addEventListener("load",()=>d()),s.addEventListener("error",f)}),l=Be.document.currentScript,u=Be.document.body||Be.document.head||(l==null?void 0:l.parentElement);if(u)u.appendChild(s);else throw new Error(`Could not find parent element to insert lazy-loaded ${e} script`);try{await a}catch{throw new Error(`Error when loading integration: ${e}`)}const c=r[e];if(typeof c!="function")throw new Error(`Could not load integration: ${e}`);return c}function Fae(e){var r;const t=$e(),n=((r=t==null?void 0:t.getOptions())==null?void 0:r.cdnBaseUrl)||"https://browser.sentry-cdn.com";return new URL(`/${us}/${e}.min.js`,n).toString()}const Bae=B8({lazyLoadIntegration:Q8}),D5=B8({getModalIntegration:()=>xae,getScreenshotIntegration:()=>$ae});function D1(e,t){const n=V1(e,t),r={type:zae(t),value:qae(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Uae(e,t,n,r){const i=$e(),o=i==null?void 0:i.getOptions().normalizeDepth,s=Zae(t),a={__serialized__:hO(t,o)};if(s)return{exception:{values:[D1(e,s)]},extra:a};const l={exception:{values:[{type:g1(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Kae(t,{isUnhandledRejection:r})}]},extra:a};if(n){const u=V1(e,n);u.length&&(l.exception.values[0].stacktrace={frames:u})}return l}function dy(e,t){return{exception:{values:[D1(e,t)]}}}function V1(e,t){const n=t.stacktrace||t.stack||"",r=Wae(t),i=Gae(t);try{return e(n,r,i)}catch{}return[]}const jae=/Minified React error #\d+;/i;function Wae(e){return e&&jae.test(e.message)?1:0}function Gae(e){return typeof e.framesToPop=="number"?e.framesToPop:0}function e7(e){return typeof WebAssembly<"u"&&typeof WebAssembly.Exception<"u"?e instanceof WebAssembly.Exception:!1}function zae(e){const t=e==null?void 0:e.name;return!t&&e7(e)?e.message&&Array.isArray(e.message)&&e.message.length==2?e.message[0]:"WebAssembly.Exception":t}function qae(e){const t=e==null?void 0:e.message;return e7(e)?Array.isArray(e.message)&&e.message.length==2?e.message[1]:"wasm exception":t?t.error&&typeof t.error.message=="string"?qI(t.error):qI(e):"No error message"}function t7(e,t,n,r){const i=(n==null?void 0:n.syntheticException)||void 0,o=F1(e,t,i,r);return Io(o),o.level="error",n!=null&&n.event_id&&(o.event_id=n.event_id),Ip(o)}function n7(e,t,n="info",r,i){const o=(r==null?void 0:r.syntheticException)||void 0,s=Z_(e,t,o,i);return s.level=n,r!=null&&r.event_id&&(s.event_id=r.event_id),Ip(s)}function F1(e,t,n,r,i){var s,a;let o;if(lO(t)&&t.error)return dy(e,t.error);if(rI(t)||xJ(t)){const l=t;if("stack"in t){o=dy(e,t);const u=(a=(s=o.exception)==null?void 0:s.values)==null?void 0:a[0];if(r&&n&&u&&!u.stacktrace){const c=V1(e,n);c.length&&(u.stacktrace={frames:c},Io(o,{synthetic:!0}))}}else{const u=l.name||(rI(l)?"DOMError":"DOMException"),c=l.message?`${u}: ${l.message}`:u;o=Z_(e,c,n,r),A_(o,c)}return"code"in l&&(o.tags={...o.tags,"DOMException.code":`${l.code}`}),o}return Wr(t)?dy(e,t):Fr(t)||g1(t)?(o=Uae(e,t,n,i),Io(o,{synthetic:!0}),o):(o=Z_(e,t,n,r),A_(o,`${t}`,void 0),Io(o,{synthetic:!0}),o)}function Z_(e,t,n,r){const i={};if(r&&n){const o=V1(e,n);o.length&&(i.exception={values:[{value:t,stacktrace:{frames:o}}]}),Io(i,{synthetic:!0})}if(v1(t)){const{__sentry_template_string__:o,__sentry_template_values__:s}=t;return i.logentry={message:o,params:s},i}return i.message=t,i}function Kae(e,{isUnhandledRejection:t}){const n=kJ(e),r=t?"promise rejection":"exception";return lO(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:g1(e)?`Event \`${Xae(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Xae(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Zae(e){return Object.values(e).find(Wr)}class r7 extends Zte{constructor(t){var s;
643const n=Yae(t),r=Be.SENTRY_SDK_SOURCE||Cte();j6(n,"browser",["browser"],r),super(n);const{userInfo:i}=this.getDataCollectionOptions();(s=n._metadata)!=null&&s.sdk&&(n._metadata.sdk.settings={infer_ip:i?"auto":"never",...n._metadata.sdk.settings});const{sendClientReports:o}=this._options;Be.document&&Be.document.addEventListener("visibilitychange",()=>{Be.document.visibilityState==="hidden"&&(o&&this._flushOutcomes(),queueMicrotask(()=>{this.flush()}))}),i&&this.on("beforeSendSession",pne)}eventFromException(t,n){return t7(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return n7(this._options.stackParser,t,n,r,this._options.attachStacktrace)}_prepareEvent(t,n,r,i){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r,i)}}function Yae(e){var t;return{release:typeof __SENTRY_RELEASE__=="string"?__SENTRY_RELEASE__:(t=Be.SENTRY_RELEASE)==null?void 0:t.id,sendClientReports:!0,parentSpanIsAlwaysRootSpan:!0,...e}}const lo=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,st=Ke,Jae=(e,t)=>e>t[1]?"poor":e>t[0]?"needs-improvement":"good",$p=(e,t,n,r)=>{let i,o;return s=>{t.value>=0&&(s||r)&&(o=t.value-(i??0),(o||i===void 0)&&(i=t.value,t.delta=o,t.rating=Jae(t.value,n),e(t)))}},Np=(e=!0)=>{var n,r;const t=(r=(n=st.performance)==null?void 0:n.getEntriesByType)==null?void 0:r.call(n,"navigation")[0];if(!e||t&&t.responseStart>0&&t.responseStart<performance.now())return t},id=()=>{const e=Np();return(e==null?void 0:e.activationStart)??0};function aa(e,t,n){st.document&&st.addEventListener(e,t,n)}function qv(e,t,n){st.document&&st.removeEventListener(e,t,n)}let Qu=-1;const i7=new Set,Qae=()=>{var e,t;return((e=st.document)==null?void 0:e.visibilityState)==="hidden"&&!((t=st.document)!=null&&t.prerendering)?0:1/0},Lm=e=>{if(ele(e)&&Qu>-1){if(e.type==="visibilitychange"||e.type==="pagehide")for(const t of i7)t();isFinite(Qu)||(Qu=e.type==="visibilitychange"?e.timeStamp:0,qv("prerenderingchange",Lm,!0))}},Hp=()=>{var e;if(st.document&&Qu<0){const t=id();Qu=(st.document.prerendering||(e=globalThis.performance.getEntriesByType("visibility-state").filter(r=>r.name==="hidden"&&r.startTime>t)[0])==null?void 0:e.startTime)??Qae(),aa("visibilitychange",Lm,!0),aa("pagehide",Lm,!0),aa("prerenderingchange",Lm,!0)}return{get firstHiddenTime(){return Qu},onHidden(t){i7.add(t)}}};function ele(e){var t;return e.type==="pagehide"||((t=st.document)==null?void 0:t.visibilityState)==="hidden"}const tle=()=>`v5-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,Dp=(e,t=-1)=>{var o,s;const n=Np();let r="navigate";return n&&((o=st.document)!=null&&o.prerendering||id()>0?r="prerender":(s=st.document)!=null&&s.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:tle(),navigationType:r}},fy=new WeakMap;function EC(e,t){try{return fy.get(e)||fy.set(e,new t),fy.get(e)}catch{return new t}}class nle{constructor(){this._sessionValue=0,this._sessionEntries=[]}_processEntry(t){var i;if(t.hadRecentInput)return;const n=this._sessionEntries[0],r=this._sessionEntries[this._sessionEntries.length-1];this._sessionValue&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this._sessionValue+=t.value,this._sessionEntries.push(t)):(this._sessionValue=t.value,this._sessionEntries=[t]),(i=this._onAfterProcessingUnexpectedShift)==null||i.call(this,t)}}const od=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{Promise.resolve().then(()=>{t(i.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},CC=e=>{let t=!1;return()=>{t||(e(),t=!0)}},B1=e=>{var t;(t=st.document)!=null&&t.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},rle=[1800,3e3],ile=(e,t={})=>{B1(()=>{const n=Hp(),r=Dp("FCP");let i;const s=od("paint",a=>{for(const l of a)l.name==="first-contentful-paint"&&(s.disconnect(),l.startTime<n.firstHiddenTime&&(r.value=Math.max(l.startTime-id(),0),r.entries.push(l),i(!0)))});s&&(i=$p(e,r,rle,t.reportAllChanges))})},ole=[.1,.25],sle=(e,t={})=>{ile(CC(()=>{var l;const n=Dp("CLS",0);let r;const i=Hp(),o=EC(t,nle),s=u=>{for(const c of u)o._processEntry(c);o._sessionValue>
643n.value&&(n.value=o._sessionValue,n.entries=o._sessionEntries,r())},a=od("layout-shift",s);a&&(r=$p(e,n,ole,t.reportAllChanges),i.onHidden(()=>{s(a.takeRecords()),r(!0)}),(l=st==null?void 0:st.setTimeout)==null||l.call(st,r))}))};let o7=0,py=1/0,kh=0;const ale=e=>{e.forEach(t=>{t.interactionId&&(py=Math.min(py,t.interactionId),kh=Math.max(kh,t.interactionId),o7=kh?(kh-py)/7+1:0)})};let Y_;const s7=()=>Y_?o7:performance.interactionCount||0,lle=()=>{"interactionCount"in performance||Y_||(Y_=od("event",ale,{type:"event",buffered:!0,durationThreshold:0}))},hy=10;let a7=0;const ule=()=>s7()-a7;class cle{constructor(){this._longestInteractionList=[],this._longestInteractionMap=new Map}_resetInteractions(){a7=s7(),this._longestInteractionList.length=0,this._longestInteractionMap.clear()}_estimateP98LongestInteraction(){const t=Math.min(this._longestInteractionList.length-1,Math.floor(ule()/50));return this._longestInteractionList[t]}_processEntry(t){var i,o;if((i=this._onBeforeProcessingEntry)==null||i.call(this,t),!(t.interactionId||t.entryType==="first-input"))return;const n=this._longestInteractionList.at(-1);let r=this._longestInteractionMap.get(t.interactionId);if(r||this._longestInteractionList.length<hy||t.duration>n._latency){if(r?t.duration>r._latency?(r.entries=[t],r._latency=t.duration):t.duration===r._latency&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.interactionId,entries:[t],_latency:t.duration},this._longestInteractionMap.set(r.id,r),this._longestInteractionList.push(r)),this._longestInteractionList.sort((s,a)=>a._latency-s._latency),this._longestInteractionList.length>hy){const s=this._longestInteractionList.splice(hy);for(const a of s)this._longestInteractionMap.delete(a.id)}(o=this._onAfterProcessingINPCandidate)==null||o.call(this,r)}}}const wC=e=>{var n;const t=st.requestIdleCallback||st.setTimeout;((n=st.document)==null?void 0:n.visibilityState)==="hidden"?e():(e=CC(e),aa("visibilitychange",e,{once:!0,capture:!0}),aa("pagehide",e,{once:!0,capture:!0}),t(()=>{e(),qv("visibilitychange",e,{capture:!0}),qv("pagehide",e,{capture:!0})}))},dle=[200,500],fle=40,ple=(e,t={})=>{if(!(globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype))return;const n=Hp();B1(()=>{lle();const r=Dp("INP");let i;const o=EC(t,cle),s=l=>{wC(()=>{for(const c of l)o._processEntry(c);const u=o._estimateP98LongestInteraction();u&&u._latency!==r.value&&(r.value=u._latency,r.entries=u.entries,i())})},a=od("event",s,{durationThreshold:t.durationThreshold??fle});i=$p(e,r,dle,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{s(a.takeRecords()),i(!0)}))})};class hle{_processEntry(t){var n;(n=this._onBeforeProcessingEntry)==null||n.call(this,t)}}const mle=[2500,4e3],vle=(e,t={})=>{B1(()=>{const n=Hp(),r=Dp("LCP");let i;const o=EC(t,hle),s=l=>{t.reportAllChanges||(l=l.slice(-1));for(const u of l)o._processEntry(u),u.startTime<n.firstHiddenTime&&(r.value=Math.max(u.startTime-id(),0),r.entries=[u],i())},a=od("largest-contentful-paint",s);if(a){i=$p(e,r,mle,t.reportAllChanges);const l=CC(()=>{s(a.takeRecords()),a.disconnect(),i(!0)}),u=c=>{c.isTrusted&&(wC(l),qv(c.type,u,{capture:!0}))};for(const c of["keydown","click","visibilitychange"])aa(c,u,{capture:!0})}})},gle=[800,1800],J_=e=>{var t,n;(t=st.document)!=null&&t.prerendering?B1(()=>J_(e)):((n=st.document)==null?void 0:n.readyState)!=="complete"?addEventListener("load",()=>J_(e),!0):setTimeout(e)},yle=(e,t={})=>{const n=Dp("TTFB"),r=$p(e,n,gle,t.reportAllChanges);J_(()=>{const i=Np();i&&(n.value=Math.max(i.responseStart-id(),0),n.entries=[i],r(!0))})},of={},Kv={};let l7,u7,c7,d7;function U1(e,t=!1){return W1("cls",e,_le,l7,t)}function j1(e,t=!1){return W1("lcp",e,Sle,u7,t)}function ble(e){return W1("ttfb",e,Ele,c7)}function TC(e){return W1("inp",e,Cle,d7)}function ba(e,t){return f7(e,t),Kv[e]||(wle(e),Kv[e]=!0),p7(e,t)}function Vp(e,t){const n=of[e];if(n!=null&&n.length)for(const r of n)try{r(t)}catch(i){lo&&X.error(`Error while triggering instrumentation handler. 644Type: ${e} 645Name: ${_s(r)} 646Error:`,i)}}function _le(){return sle(e=>{Vp("cls",{metric:e}),l7=e},{reportAllChanges:!0})}function Sle(){return vle(e=>{Vp("lcp",{metric:e}),u7=e},{reportAllChanges:!0})}function Ele(){return yle(e=>{Vp("ttfb",{metric:e}),c7=e})}function Cle(){return ple(e=>{Vp("inp",{metric:e}),d7=e})}function W1(e,t,n,r,i=!1){f7(e,t);let o;return Kv[e]||(o=n(),Kv[e]=!0),r&&t({metric:r}),p7(e,t,i?o:void 0)}function wle(e){const t={};e==="event"&&(t.durationThreshold=0),od(e,n=>{Vp(e,{entries:n})},t)}function f7(e,t){of[e]=of[e]||[],of[e].push(t)}function p7(e,t,n){return()=>{n&&n();const r=of[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function Tle(e){return"duration"in e}const Ale=80,Ua={};try{typeof Node<"u"&&(Ua.parentNode=Object.getOwnPropertyDescriptor(Node.prototype,"parentNode").get),typeof Element<"u"&&(Ua.tagName=Object.getOwnPropertyDescriptor(Element.prototype,"tagName").get,Ua.id=Object.getOwnPropertyDescriptor(Element.prototype,"id").get,Ua.className=Object.getOwnPropertyDescriptor(Element.prototype,"className").get,Ua.getAttribute=Element.prototype.getAttribute),typeof HTMLElement<"u"&&(Ua.dataset=Object.getOwnPropertyDescriptor(HTMLElement.prototype,"dataset").get)}catch{}function Fs(e,t,n){const r=Ua[t];if(r)try{return r.call(e,n)}catch{}const i=e[t];return typeof i=="function"?i.call(e,n):i}function qn(e,t={}){if(!e)return"<unknown>";try{let n=e;const r=5,i=[];let o=0,s=0;const a=" > ",l=a.length;let u;const c=Array.isArray(t)?t:t.keyAttrs,d=!Array.isArray(t)&&t.maxStringLength||Ale;for(;n&&o++<r&&(u=Ile(n,c),!(u==="html"||o>1&&s+i.length*l+u.length>=d));)i.push(u),s+=u.length,n=Fs(n,"parentNode");return i.reverse().join(a)}catch{return"<unknown>"}}function Ile(e,t){const n=[],r=Fs(e,"tagName");if(!r)return"";if(typeof HTMLElement<"u"&&e instanceof HTMLElement){const o=Fs(e,"dataset");if(o){if(o.sentryComponent)return o.sentryComponent;if(o.sentryElement)return o.sentryElement}}n.push(r.toLowerCase());const i=t!=null&&t.length?t.filter(o=>Fs(e,"getAttribute",o)).map(o=>[o,Fs(e,"getAttribute",o)]):null;if(i!=null&&i.length)i.forEach(o=>{n.push(`[${o[0]}="${o[1]}"]`)});else{const o=Fs(e,"id");o&&n.push(`#${o}`);const s=Fs(e,"className");if(s&&Qi(s)){const a=s.split(/\s+/);for(const l of a)n.push(`.${l}`)}}for(const o of["aria-label","type","name","title","alt"]){const s=Fs(e,"getAttribute",o);s&&n.push(`[${o}="${s}"]`)}return n.join("")}const xle=e=>{const t=n=>{var r;(n.type==="pagehide"||((r=st.document)==null?void 0:r.visibilityState)==="hidden")&&e(n)};aa("visibilitychange",t,{capture:!0,once:!0}),aa("pagehide",t,{capture:!0,once:!0})};function my(e){return typeof e=="number"&&isFinite(e)}function _a(e,t,n,{...r}){const i=ct(e).start_timestamp;return i&&i>t&&typeof e.updateStartTime=="function"&&e.updateStartTime(t),Tp(e,()=>{const o=so({startTime:t,...r});return o&&o.end(n),o})}function AC(e){var v;
646const t=$e();if(!t)return;const{name:n,transaction:r,attributes:i,startTime:o}=e,{release:s,environment:a}=t.getOptions(),{userInfo:l}=t.getDataCollectionOptions(),u=t.getIntegrationByName("Replay"),c=u==null?void 0:u.getReplayId(),d=nt(),f=d.getUser(),p=f!==void 0?f.email||f.id||f.ip_address:void 0;let h;try{h=d.getScopeData().contexts.profile.profile_id}catch{}const m={release:s,environment:a,user:p||void 0,profile_id:h||void 0,replay_id:c||void 0,transaction:r,"user_agent.original":(v=st.navigator)==null?void 0:v.userAgent,"client.address":l?"{{auto}}":void 0,...i};return so({name:n,attributes:m,startTime:o,experimental:{standalone:!0}})}function Zl(){return st.addEventListener&&st.performance}function nn(e){return e/1e3}function Lle(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function G1(e){try{return PerformanceObserver.supportedEntryTypes.includes(e)}catch{return!1}}function z1(e,t){let n,r=!1;function i(a){!r&&n&&t(a,n.spanContext().spanId,n),r=!0}xle(()=>{i("pagehide")});const o=e.on("beforeStartNavigationSpan",(a,l)=>{l!=null&&l.isRedirect||(i("navigation"),o(),s())}),s=e.on("afterStartPageLoadSpan",a=>{n=a,s()})}function kle(e){let t=0,n;if(!G1("layout-shift"))return;const r=U1(({metric:i})=>{const o=i.entries[i.entries.length-1];o&&(t=i.value,n=o)},!0);z1(e,(i,o)=>{Mle(t,n,o,i),r()})}function Mle(e,t,n,r){var u;lo&&X.log(`Sending CLS span (${e})`);const i=t?nn((Nn()||0)+t.startTime):Xt(),o=nt().getScopeData().transactionName,s=t?qn((u=t.sources[0])==null?void 0:u.node):"Layout shift",a={[Ct]:"auto.http.browser.cls",[pn]:"ui.webvital.cls",[Aa]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t!=null&&t.sources&&t.sources.forEach((c,d)=>{a[`cls.source.${d+1}`]=qn(c.node)});const l=AC({name:s,transaction:o,attributes:a,startTime:i});l&&(l.addEvent("cls",{[_p]:"",[Sp]:e}),l.end(i))}const Rle=6e4;function Fp(e){return e!=null&&e>0&&e<=Rle}function Ple(e){let t=0,n;if(!G1("largest-contentful-paint"))return;const r=j1(({metric:i})=>{const o=i.entries[i.entries.length-1];!o||!Fp(i.value)||(t=i.value,n=o)},!0);z1(e,(i,o)=>{Ole(t,n,o,i),r()})}function Ole(e,t,n,r){if(!Fp(e))return;lo&&X.log(`Sending LCP span (${e})`);const i=nn((Nn()||0)+((t==null?void 0:t.startTime)||0)),o=nt().getScopeData().transactionName,s=t?qn(t.element):"Largest contentful paint",a={[Ct]:"auto.http.browser.lcp",[pn]:"ui.webvital.lcp",[Aa]:0,"sentry.pageload.span_id":n,"sentry.report_event":r};t&&(t.element&&(a["lcp.element"]=qn(t.element)),t.id&&(a["lcp.id"]=t.id),t.url&&(a["lcp.url"]=t.url),t.loadTime!=null&&(a["lcp.loadTime"]=t.loadTime),t.renderTime!=null&&(a["lcp.renderTime"]=t.renderTime),t.size!=null&&(a["lcp.size"]=t.size));const l=AC({name:s,transaction:o,attributes:a,startTime:i});l&&(l.addEvent("lcp",{[_p]:"millisecond",[Sp]:e}),l.end(i))}function mi(e){return e&&((Nn()||performance.timeOrigin)+e)/1e3}function h7(e){var n;const t={};if(e.nextHopProtocol!=null){const{name:r,version:i}=Lle(e.nextHopProtocol);t["network.protocol.version"]=i,t["network.protocol.name"]=r}return Nn()||(n=Zl())!=null&&n.timeOrigin?$le({...t,"http.request.redirect_start":mi(e.redirectStart),"http.request.redirect_end":mi(e.redirectEnd),"http.request.worker_start":mi(e.workerStart),"http.request.fetch_start":mi(e.fetchStart),"http.request.domain_lookup_start":mi(e.domainLookupStart),"http.request.domain_lookup_end":mi(e.domainLookupEnd),"http.request.connect_start":mi(e.connectStart),"http.request.secure_connection_start":mi(e.secureConnectionStart),"http.request.connection_end":mi(e.connectEnd),"http.request.request_start":mi(e.requestStart),"http.request.response_start":mi(e.responseStart),"http.request.response_end":mi(e.responseEnd),"http.request.time_to_first_byte":e.responseStart!=null?e.responseStart/1e3:void 0}):t}function $le(e){return Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null))}const Nle=2147483647;let V5=0,Dr={},Nr,ku;function Hle({recordClsStandaloneSpans:e,recordLcpStandaloneSpans:t,client:n}){const r=Zl();if(r&&Nn()){r.mark&&st.performance.mark("sentry-tracing-init");const i=t?Ple(n):t===!1?Ule():void 0,o=e?kle(n):e===!1?Ble():void 0,s=jle(),a=Wle();return()=>{s(),a(),i==null||i(),o==null||o()}}return()=>{}}function Dle(){ba("longtask",({entries:e})=>{const t=bn();if(!t)return;const{op:n,start_timestamp:r}=ct(t);for(const i of e){const o=nn(Nn()+i.startTime),s=nn(i.duration);n==="navigation"&&r&&o<r||_a(t,o,o+s,{name:"Main UI thread blocked",op:"ui.long-task",attributes:{[Ct]:"auto.ui.browser.metrics"}})}})}function Vle(){new PerformanceObserver(t=>{const n=bn();if(n)for(const r of t.getEntries()){if(!r.scripts[0])continue;const i=nn(Nn()+r.startTime),{start_timestamp:o,op:s}=ct(n);if(s==="navigation"&&o&&i<o)continue;const a=nn(r.duration),l={[Ct]:"auto.ui.browser.metrics"},u=r.scripts[0],{invoker:c,invokerType:d,sourceURL:f,sourceFunctionName:p,sourceCharPosition:h}=u;l["browser.script.invoker"]=c,l["browser.script.invoker_type"]=d,f&&(l["code.filepath"]=f),p&&(l["code.function"]=p),h!==-1&&(l["browser.script.source_char_position"]=h),_a(n,i,i+a,{name:"Main UI thread blocked",op:"ui.long-animation-frame",attributes:l})}}).observe({type:"long-animation-frame",buffered:!0})}function Fle(){ba("event",({entries:e})=>{const t=bn();if(t){for(const n of e)if(n.name==="click"){const r=nn(Nn()+n.startTime),i=nn(n.duration),o={name:qn(n.target),op:`ui.interaction.${n.name}`,startTime:r,attributes:{[Ct]:"auto.ui.browser.metrics"}},s=vC(n.target);s&&(o.attributes["ui.component_name"]=s),_a(t,r,r+i,o)}}})}function Ble(){return U1(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Dr.cls={value:e.value,unit:""},ku=t)},!0)}function Ule(){return j1(({metric:e})=>{const t=e.entries[e.entries.length-1];!t||!Fp(e.value)||(Dr.lcp={value:e.value,unit:"millisecond"},Nr=t)},!0)}function jle(){return ble(({metric:e})=>{e.entries[e.entries.length-1]&&(Dr.ttfb={value:e.value,unit:"millisecond"})})}function Wle(){return ba("paint",({entries:e})=>{const t=Hp();for(const n of e){const r=n.startTime<t.firstHiddenTime;n.name==="first-paint"&&r&&(Dr.fp={value:n.startTime,unit:"millisecond"}),n.name==="first-contentful-paint"&&r&&(Dr.fcp={value:n.startTime,unit:"millisecond"})}})}function Gle(e,t){const n=Zl(),r=Nn();if(!(n!=null&&n.getEntries)||!r)return;const{spanStreamingEnabled:i,ignorePerformanceApiSpans:o,ignoreResourceSpans:s}=t,a=nn(r),l=n.getEntries(),{op:u,start_timestamp:c}=ct(e);
646l.slice(V5).forEach(d=>{const f=nn(d.startTime),p=nn(Math.max(0,d.duration));if(!(u==="navigation"&&c&&a+f<c))switch(d.entryType){case"navigation":{Zle(e,d,a);break}case"mark":case"paint":case"measure":{Kle(e,d,f,p,a,o);break}case"resource":{Qle(e,d,d.name,f,p,a,s);break}}}),V5=Math.max(l.length-1,0),eue(e,i)}function zle(e,t){var a;const n=Nn();if(!((a=Zl())!=null&&a.getEntries)||!n){F5();return}const{spanStreamingEnabled:r,recordClsOnPageloadSpan:i,recordLcpOnPageloadSpan:o}=t,s=nn(n);if(ct(e).op==="pageload"){if(rue(Dr),r){const l=(u,c,d)=>{const f=d??`browser.web_vital.${u}.value`;e.setAttribute(f,c),lo&&X.log("Setting web vital attribute",{[f]:c},"on pageload span")};["ttfb","fp","fcp"].forEach(u=>{Dr[u]&&l(u,Dr[u].value)}),Dr["ttfb.requestTime"]&&l("ttfb.requestTime",Dr["ttfb.requestTime"].value,"browser.web_vital.ttfb.request_time")}else i||delete Dr.cls,o||delete Dr.lcp,Object.entries(Dr).forEach(([l,u])=>{jE(l,u.value,u.unit,e)}),tue(e,t);e.setAttribute(r?"browser.performance.time_origin":"performance.timeOrigin",s),e.setAttribute(r?"browser.performance.navigation.activation_start":"performance.activationStart",id())}F5()}function F5(){Nr=void 0,ku=void 0,Dr={}}function qle(e){if((e==null?void 0:e.entryType)==="measure")try{return e.detail.devtools.track==="Components â"}catch{return}}function Kle(e,t,n,r,i,o){if(qle(t)||["mark","measure"].includes(t.entryType)&&xi(t.name,o))return;const s=Np(!1),a=nn(s?s.requestStart:0),l=i+Math.max(n,a),u=i+n,c=u+r,d={[Ct]:"auto.resource.browser.metrics"};l!==u&&(d["sentry.browser.measure_happened_before_request"]=!0,d["sentry.browser.measure_start_time"]=l),Xle(d,t),l<=c&&_a(e,l,c,{name:t.name,op:t.entryType,attributes:d})}function Xle(e,t){try{const n=t.detail;if(!n)return;if(typeof n=="object"){for(const[r,i]of Object.entries(n))if(i&&Mo(i))e[`sentry.browser.measure.detail.${r}`]=i;else if(i!==void 0)try{e[`sentry.browser.measure.detail.${r}`]=JSON.stringify(i)}catch{}return}if(Mo(n)){e["sentry.browser.measure.detail"]=n;return}try{e["sentry.browser.measure.detail"]=JSON.stringify(n)}catch{}}catch{}}function Zle(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{Mh(e,t,r,n)}),Mh(e,t,"secureConnection",n,"TLS/SSL"),Mh(e,t,"fetch",n,"cache"),Mh(e,t,"domainLookup",n,"DNS"),Jle(e,t,n)}function Mh(e,t,n,r,i=n){const o=Yle(n),s=t[o],a=t[`${n}Start`];!a||!s||_a(e,r+nn(a),r+nn(s),{op:`browser.${i}`,name:t.name,attributes:{[Ct]:"auto.ui.browser.metrics",...n==="redirect"&&t.redirectCount!=null?{"http.redirect_count":t.redirectCount}:{}}})}function Yle(e){return e==="secureConnection"?"connectEnd":e==="fetch"?"domainLookupStart":`${e}End`}function Jle(e,t,n){const r=n+nn(t.requestStart),i=n+nn(t.responseEnd),o=n+nn(t.responseStart);t.responseEnd&&(_a(e,r,i,{op:"browser.request",name:t.name,attributes:{[Ct]:"auto.ui.browser.metrics"}}),_a(e,o,i,{op:"browser.response",name:t.name,attributes:{[Ct]:"auto.ui.browser.metrics"}}))}function Qle(e,t,n,r,i,o,s){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const a=t.initiatorType?`resource.${t.initiatorType}`:"resource.other";if(s!=null&&s.includes(a))return;const l={[Ct]:"auto.resource.browser.metrics"},u=dl(n);u.protocol&&(l["url.scheme"]=u.protocol.split(":").pop()),u.host&&(l["server.address"]=u.host),l["url.same_origin"]=n.includes(st.location.origin),l[ql]=n,nue(t,l,[["responseStatus","http.response.status_code"],["transferSize","http.response_transfer_size"],["encodedBodySize","http.response_content_length"],["decodedBodySize","http.decoded_response_content_length"],["renderBlockingStatus","resource.render_blocking_status"],["deliveryType","http.response_delivery_type"]]);const c={...l,...h7(t)},d=o+r,f=d+i;_a(e,d,f,{name:n.replace(st.location.origin,""),op:a,attributes:c})}function eue(e,t){const n=st.navigator;if(!n)return;const r=n.connection;r&&(r.effectiveType&&e.setAttribute(t?"network.connection.effective_type":"effectiveConnectionType",r.effectiveType),r.type&&e.setAttribute(t?"network.connection.type":"connectionType",r.type),my(r.rtt)&&(t?e.setAttribute("network.connection.rtt",r.rtt):ct(e).op==="pageload"&&jE("connection.rtt",r.rtt,"millisecond"))),my(n.deviceMemory)&&(t?e.setAttribute("device.memory.estimated_capacity",n.deviceMemory):e.setAttribute("deviceMemory",`${n.deviceMemory} GB`)),my(n.hardwareConcurrency)&&(t?e.setAttribute("device.processor_count",n.hardwareConcurrency):e.setAttribute("hardwareConcurrency",String(n.hardwareConcurrency)))}function tue(e,t){Nr&&t.recordLcpOnPageloadSpan&&(Nr.element&&e.setAttribute("lcp.element",qn(Nr.element)),Nr.id&&e.setAttribute("lcp.id",Nr.id),Nr.url&&e.setAttribute("lcp.url",Nr.url.trim().slice(0,200)),Nr.loadTime!=null&&e.setAttribute("lcp.loadTime",Nr.loadTime),Nr.renderTime!=null&&e.setAttribute("lcp.renderTime",Nr.renderTime),e.setAttribute("lcp.size",Nr.size)),ku!=null&&ku.sources&&t.recordClsOnPageloadSpan&&ku.sources.forEac
646h((n,r)=>e.setAttribute(`cls.source.${r+1}`,qn(n.node)))}function nue(e,t,n){n.forEach(([r,i])=>{const o=e[r];o!=null&&(typeof o=="number"&&o<Nle||typeof o=="string")&&(t[i]=o)})}function rue(e){const t=Np(!1);if(!t)return;const{responseStart:n,requestStart:r}=t;r<=n&&(e["ttfb.requestTime"]={value:n-r,unit:"millisecond"})}const iue="ElementTiming",oue=()=>({name:iue,setup(){!Zl()||!Nn()||ba("element",({entries:t})=>{for(const n of t){const r=n;if(!r.identifier)continue;const i=r.identifier,o=r.name,s=r.renderTime,a=r.loadTime,l={"sentry.origin":"auto.ui.browser.element_timing","ui.element.identifier":i};o&&(l["ui.element.paint_type"]=o),r.id&&(l["ui.element.id"]=r.id),r.element&&(l["ui.element.type"]=r.element.tagName.toLowerCase()),r.url&&(l["ui.element.url"]=r.url),r.naturalWidth&&(l["ui.element.width"]=r.naturalWidth),r.naturalHeight&&(l["ui.element.height"]=r.naturalHeight),s>0&&V_("ui.element.render_time",s,{unit:"millisecond",attributes:l}),a>0&&V_("ui.element.load_time",a,{unit:"millisecond",attributes:l})}})}}),sue=oue,vy=[],sf=new Map,cu=new Map,m7=60;function aue(){if(Zl()&&Nn()){const t=lue();return()=>{t()}}return()=>{}}const Kf={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function lue(){return TC(uue)}const uue=({metric:e})=>{if(e.value==null)return;const t=nn(e.value);if(t>m7)return;const n=e.entries.find(h=>h.duration===e.value&&Kf[h.name]);if(!n)return;const{interactionId:r}=n,i=Kf[n.name],o=nn(Nn()+n.startTime),s=bn(),a=s?En(s):void 0,l=r!=null?sf.get(r):void 0,u=(l==null?void 0:l.span)||a,c=u?ct(u).description:nt().getScopeData().transactionName,d=(l==null?void 0:l.elementName)||qn(n.target),f={[Ct]:"auto.http.browser.inp",[pn]:`ui.interaction.${i}`,[Aa]:n.duration},p=AC({name:d,transaction:c,attributes:f,startTime:o});p&&(p.addEvent("inp",{[_p]:"millisecond",[Sp]:e.value}),p.end(o+t))};function cue(e){return e!=null?sf.get(e):void 0}function due(){const e=Object.keys(Kf);va()&&e.forEach(i=>{st.addEventListener(i,t,{capture:!0,passive:!0})});function t(i){const o=i.target;if(!o)return;const s=qn(o),a=Math.round(i.timeStamp);if(cu.set(a,s),cu.size>50){const l=cu.keys().next().value;l!==void 0&&cu.delete(l)}}function n(i){const o=Math.round(i.startTime);let s=cu.get(o);if(!s)for(let a=-5;a<=5;a++){const l=cu.get(o+a);if(l){s=l;break}}return s||"<unknown>"}const r=({entries:i})=>{const o=bn(),s=o&&En(o);i.forEach(a=>{if(!Tle(a))return;const l=a.interactionId;if(l==null||sf.has(l))return;const u=a.target?qn(a.target):n(a);if(vy.length>10){const c=vy.shift();sf.delete(c)}vy.push(l),sf.set(l,{span:s,elementName:u})})};ba("event",r),ba("first-input",r)}function IC(e){var h,m;const{name:t,op:n,origin:r,metricName:i,value:o,attributes:s,parentSpan:a,reportEvent:l,startTime:u,endTime:c}=e,d=nt().getScopeData().transactionName,f={[Ct]:r,[pn]:n,[Aa]:0,[`browser.web_vital.${i}.value`]:o,[l6]:d,[YE]:d,"user_agent.original":(h=st.navigator)==null?void 0:h.userAgent,...s};a&&((m=Pv(a).attributes)==null?void 0:m[pn])==="pageload"&&(f["sentry.pageload.span_id"]=a.spanContext().spanId),l&&(f[`browser.web_vital.${i}.report_event`]=l);const p=so({name:t,attributes:f,startTime:u,parentSpan:a});p&&p.end(c??u)}function fue(e){let t=0,n;if(!G1("largest-contentful-paint"))return;const r=j1(({metric:i})=>{const o=i.entries[i.entries.length-1];!o||!Fp(i.value)||(t=i.value,n=o)},!0);z1(e,(i,o,s)=>{pue(t,n,s,i),r()})}function pue(e,t,n,r){if(!Fp(e))return;lo&&X.log(`Sending LCP span (${e})`);const i=Nn()||0,o=nn(i),s=nn(i+((t==null?void 0:t.startTime)||0)),a=t?qn(t.element):"Largest contentful paint",l={};t!=null&&t.element&&(l["browser.web_vital.lcp.element"]=qn(t.element)),t!=null&&t.id&&(l["browser.web_vital.lcp.id"]=t.id),t!=null&&t.url&&(l["browser.web_vital.lcp.url"]=t.url),(t==null?void 0:t.loadTime)!=null&&(l["browser.web_vital.lcp.load_time"]=t.loadTime),(t==null?void 0:t.renderTime)!=null&&(l["browser.web_vital.lcp.render_time"]=t.renderTime),(t==null?void 0:t.size)!=null&&(l["browser.web_vital.lcp.size"]=t.size),IC({name:a,op:"ui.webvital.lcp",origin:"auto.http.browser.lcp",metricName:"lcp",value:e,attributes:l,parentSpan:n,reportEvent:r,startTime:o,endTime:s})}function hue(e){let t=0,n;if(!G1("layout-shift"))return;const r=U1(({metric:i})=>{const o=i.entries[i.entries.length-1];
646o&&(t=i.value,n=o)},!0);z1(e,(i,o,s)=>{mue(t,n,s,i),r()})}function mue(e,t,n,r){var a;lo&&X.log(`Sending CLS span (${e})`);const i=t?nn((Nn()||0)+t.startTime):Xt(),o=t?qn((a=t.sources[0])==null?void 0:a.node):"Layout shift",s={};t!=null&&t.sources&&t.sources.forEach((l,u)=>{s[`browser.web_vital.cls.source.${u+1}`]=qn(l.node)}),IC({name:o,op:"ui.webvital.cls",origin:"auto.http.browser.cls",metricName:"cls",value:e,attributes:s,parentSpan:n,reportEvent:r,startTime:i})}function vue(){if(!Zl()||!Nn())return;TC(({metric:n})=>{if(n.value==null||nn(n.value)>m7)return;const i=n.entries.find(o=>o.duration===n.value&&Kf[o.name]);i&&gue(n.value,i)})}function gue(e,t){lo&&X.log(`Sending INP span (${e})`);const n=nn(Nn()+t.startTime),r=nn(e),i=Kf[t.name],o=cue(t.interactionId),s=bn(),a=s?En(s):void 0,l=(o==null?void 0:o.span)||a,u=l?Pv(l).name:nt().getScopeData().transactionName,c=(o==null?void 0:o.elementName)||qn(t.target);IC({name:c,op:`ui.interaction.${i}`,origin:"auto.http.browser.inp",metricName:"inp",value:e,attributes:{[Aa]:t.duration,[l6]:u,[YE]:u},startTime:n,endTime:n+r,parentSpan:l})}const yue=1e3;let B5,Q_,e2;function v7(e){const t="dom";Ca(t,e),wa(t,bue)}function bue(){if(!st.document)return;const e=Ai.bind(null,"dom"),t=U5(e,!0);st.document.addEventListener("click",t,!1),st.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{var o,s;const i=(o=st[n])==null?void 0:o.prototype;(s=i==null?void 0:i.hasOwnProperty)!=null&&s.call(i,"addEventListener")&&(tr(i,"addEventListener",function(a){return function(l,u,c){if(l==="click"||l=="keypress")try{const d=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},f=d[l]=d[l]||{refCount:0};if(!f.handler){const p=U5(e);f.handler=p,a.call(this,l,p,c)}f.refCount++}catch{}return a.call(this,l,u,c)}}),tr(i,"removeEventListener",function(a){return function(l,u,c){if(l==="click"||l=="keypress")try{const d=this.__sentry_instrumentation_handlers__||{},f=d[l];f&&(f.refCount--,f.refCount<=0&&(a.call(this,l,f.handler,c),f.handler=void 0,delete d[l]),Object.keys(d).length===0&&delete this.__sentry_instrumentation_handlers__)}catch{}return a.call(this,l,u,c)}}))})}function _ue(e){if(e.type!==Q_)return!1;try{if(!e.target||e.target._sentryId!==e2)return!1}catch{}return!0}function Sue(e,t){return e!=="keypress"?!1:t!=null&&t.tagName?!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable):!0}function U5(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=Eue(n);if(Sue(n.type,r))return;zn(n,"_sentryCaptured",!0),r&&!r._sentryId&&zn(r,"_sentryId",Gn());
646const i=n.type==="keypress"?"input":n.type;_ue(n)||(e({event:n,name:i,global:t}),Q_=n.type,e2=r?r._sentryId:void 0),clearTimeout(B5),B5=st.setTimeout(()=>{e2=void 0,Q_=void 0},yue)}}function Eue(e){try{return e.target}catch{return null}}let Rh;function q1(e){const t="history";Ca(t,e),wa(t,Cue)}function Cue(){if(st.addEventListener("popstate",()=>{const t=st.location.href,n=Rh;if(Rh=t,n===t)return;Ai("history",{from:n,to:t})}),!hse())return;function e(t){return function(...n){const r=n.length>2?n[2]:void 0;if(r){const i=Rh,o=wue(String(r));if(Rh=o,i===o)return t.apply(this,n);Ai("history",{from:i,to:o})}return t.apply(this,n)}}tr(st.history,"pushState",e),tr(st.history,"replaceState",e)}function wue(e){try{return new URL(e,st.location.origin).toString()}catch{return e}}const km={};function xC(e){const t=km[e];if(t)return t;let n=st[e];if(W_(n))return km[e]=n.bind(st);const r=st.document;if(r&&typeof r.createElement=="function")try{const i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);const o=i.contentWindow;o!=null&&o[e]&&(n=o[e]),r.head.removeChild(i)}catch(i){lo&&X.warn(`Could not create sandbox iframe for ${e} check, bailing to window.${e}: `,i)}return n&&(km[e]=n.bind(st))}function Tue(e){km[e]=void 0}function Bp(...e){return xC("setTimeout")(...e)}const ss="__sentry_xhr_v3__";function LC(e){const t="xhr";Ca(t,e),wa(t,Aue)}function Aue(){if(!st.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply(t,n,r){const i=new Error,o=Xt()*1e3,s=Qi(r[0])?r[0].toUpperCase():void 0,a=Iue(r[1]);if(!s||!a)return t.apply(n,r);n[ss]={method:s,url:a,request_headers:{}},s==="POST"&&a.match(/sentry_key/)&&(n.__sentry_own_request__=!0);const l=()=>{const u=n[ss];if(u&&n.readyState===4){try{u.status_code=n.status}catch{}const c={endTimestamp:Xt()*1e3,startTimestamp:o,xhr:n,virtualError:i};Ai("xhr",c),n.removeEventListener("readystatechange",l)}};return"onreadystatechange"in n&&typeof n.onreadystatechange=="function"?n.onreadystatechange=new Proxy(n.onreadystatechange,{apply(u,c,d){return l(),u.apply(c,d)}}):n.addEventListener("readystatechange",l),n.setRequestHeader=new Proxy(n.setRequestHeader,{apply(u,c,d){const[f,p]=d,h=c[ss];return h&&Qi(f)&&Qi(p)&&(h.request_headers[f.toLowerCase()]=p),u.apply(c,d)}}),t.apply(n,r)}}),e.send=new Proxy(e.send,{apply(t,n,r){const i=n[ss];if(!i)return t.apply(n,r);r[0]!==void 0&&(i.body=r[0]);const o={startTimestamp:Xt()*1e3,xhr:n};return Ai("xhr",o),t.apply(n,r)}})}function Iue(e){if(Qi(e))return e;try{return e.toString()}catch{}}const xue=Symbol.for("sentry__originalRequestBody");function g7(e){return new URLSearchParams(e).toString()}function Xv(e,t=X){try{if(typeof e=="string")return[e];if(e instanceof URLSearchParams)return[e.toString()];if(e instanceof FormData)return[g7(e)];if(!e)return[void 0]}catch(n){return lo&&t.error(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return lo&&t.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function kC(e=[]){if(e.length>=2&&e[1]&&typeof e[1]=="object"&&"body"in e[1])return e[1].body;if(e.length>=1&&e[0]instanceof Request){const n=e[0][xue];return n!==void 0?n:void 0}}function y7(e){let t;try{t=e.getAllResponseHeaders()}catch(n){return lo&&X.error(n,"Failed to get xhr response headers",e),{}}return t?t.split(`\r 647`).reduce((n,r)=>{const[i,o]=r.split(": ");return o&&(n[i.toLowerCase()]=o),n},{}):{}}function Lue(e){if(typeof Element>"u")return!1;try{return e instanceof Element}catch{return!1}}function b7(e){try{return new URL(e,st.location.origin).toString()}catch{return e}}const kue=40;function MC(e,t=xC("fetch")){let n=0,r=0;async function i(o){const s=o.body.length;n+=s,r++;const a={body:o.body,method:"POST",referrerPolicy:"strict-origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{const l=await t(e.url,a);return{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}}catch(l){throw Tue("fetch"),l}finally{n-=s,r--}}return M6(e,i,nC(e.bufferSize||kue))}const Re=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Mue(){const e=$e();if(!e){Re&&X.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){Re&&X.warn("BrowserProfiling integration is not available");return}e.emit("startUIProfiler")}function Rue(){const e=$e();if(!e){Re&&X.warn("No Sentry client available, profiling is not started");return}if(!e.getIntegrationByName("BrowserProfiling")){Re&&X.warn("ProfilingIntegration is not available");return}e.emit("stopUIProfiler")}const Pue={startProfiler:Mue,stopProfiler:Rue},Oue=10,$ue=20,Nue=30,Hue=40,Due=50;function Ec(e,t,n,r){const i={filename:e,function:t==="<anonymous>"?ko:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const Vue=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Fue=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Bue=/\((\S*)(?::(\d+))(?::(\d+))\)/,Uue=/at (.+?) ?\(data:(.+?),/,jue=e=>{var i;const t=e.match(Uue);
647if(t)return{filename:`<data:${t[2]}>`,function:t[1]};const n=Vue.exec(e);if(n){const[,o,s,a]=n;return Ec(o,ko,+s,+a)}const r=Fue.exec(e);if(r){if(((i=r[2])==null?void 0:i.indexOf("eval"))===0){const l=Bue.exec(r[2]);l&&(r[2]=l[1],r[3]=l[2],r[4]=l[3])}const[s,a]=w7(r[1]||ko,r[2]);return Ec(a,s,r[3]?+r[3]:void 0,r[4]?+r[4]:void 0)}},_7=[Nue,jue],Wue=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Gue=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,zue=e=>{const t=Wue.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const o=Gue.exec(t[3]);o&&(t[1]=t[1]||"eval",t[3]=o[1],t[4]=o[2],t[5]="")}let r=t[3],i=t[1]||ko;return[i,r]=w7(i,r),Ec(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},S7=[Due,zue],que=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Kue=e=>{const t=que.exec(e);return t?Ec(t[2],t[1]||ko,+t[3],t[4]?+t[4]:void 0):void 0},Xue=[Hue,Kue],Zue=/ line (\d+).*script (?:in )?(\S+)(?:: in function (\S+))?$/i,Yue=e=>{const t=Zue.exec(e);return t?Ec(t[2],t[3]||ko,+t[1]):void 0},Jue=[Oue,Yue],Que=/ line (\d+), column (\d+)\s*(?:in (?:<anonymous function: ([^>]+)>|([^)]+))\(.*\))? in (.*):\s*$/i,ece=e=>{const t=Que.exec(e);return t?Ec(t[5],t[3]||t[4]||ko,+t[1],+t[2]):void 0},tce=[$ue,ece],E7=[_7,S7],C7=iO(...E7),w7=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:ko,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]};function nce(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...(t==null?void 0:t.sdk)&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:Go(r)}},o=rce(e);return $i(i,[o])}function rce(e){return[{type:"user_report"},e]}const Ph=1024,ice="Breadcrumbs",oce=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:ice,setup(n){t.console&&iC(lce(n)),t.dom&&v7(ace(n,t.dom)),t.xhr&&LC(uce(n)),t.fetch&&N1(cce(n)),t.history&&q1(dce(n)),t.sentry&&n.on("beforeSendEvent",sce(n))}}},T7=oce;function sce(e){return function(n){$e()===e&&ao({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:qa(n)},{event:n})}}function ace(e,t){return function(r){if($e()!==e)return;let i,o,s=typeof t=="object"?t.serializeAttribute:void 0,a=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;a&&a>Ph&&(Re&&X.warn(`\`dom.maxStringLength\` cannot exceed ${Ph}, but a value of ${a} was configured. Sentry will use ${Ph} instead.`),a=Ph),typeof s=="string"&&(s=[s]);try{const u=r.event,c=fce(u)?u.target:u;i=qn(c,{keyAttrs:s,maxStringLength:a}),o=vC(c)}catch{i="<unknown>"}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};o&&(l.data={"ui.component_name":o}),ao(l,{event:r.event,name:r.name,global:r.global})}}function lce(e){return function(n){if($e()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Fv(n.level),message:Mv(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Mv(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;ao(r,{input:n.args,level:n.level})}}function uce(e){return function(n){if($e()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,o=n.xhr[ss];if(!r||!i||!o)return;const{method:s,url:a,status_code:l,body:u}=o,c={method:s,url:a,status_code:l},d={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:i},f={category:"xhr",data:c,type:"http",level:L8(l)};e.emit("beforeOutgoingRequestBreadcrumb",f,d),ao(f,d)}}function cce(e){return function(n){if($e()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const o={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i},s={category:"fetch",data:n.fetchData,level:"error",type:"http"};e.emit("beforeOutgoingRequestBreadcrumb",s,o),ao(s,o)}else{const o=n.response,s={...n.fetchData,status_code:o==null?void 0:o.status},a={input:n.args,response:o,startTimestamp:r,endTimestamp:i},l={category:"fetch",data:s,type:"http",level:L8(s.status_code)};e.emit("beforeOutgoingRequestBreadcrumb",l,a),ao(l,a)}}}function dce(e){return function(n){if($e()!==e)return;let r=n.from,i=n.to;const o=dl(Be.location.href);let s=r?dl(r):void 0;const a=dl(i);s!=null&&s.path||(s=o),o.protocol===a.protocol&&o.host===a.host&&(i=a.relative),o.protocol===s.protocol&&o.host===s.host&&(r=s.relative),ao({category:"navigation",data:{from:r,to:i}})}}function fce(e){return!!e&&!!e.target}const pce="EventTarget,Window,Node,ApplicationCache,AudioTrackList,BroadcastChannel,ChannelMergerNode,CryptoOperation,EventSource,FileReader,HTMLUnknownElement,IDBDatabase,IDB
647Request,IDBTransaction,KeyOperation,MediaController,MessagePort,ModalWindow,Notification,SVGElementInstance,Screen,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebSocket,WebSocketWorker,Worker,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload".split(","),hce="BrowserApiErrors",mce=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,unregisterOriginalCallbacks:!1,...e};return{name:hce,setupOnce(){t.setTimeout&&tr(Be,"setTimeout",j5),t.setInterval&&tr(Be,"setInterval",j5),t.requestAnimationFrame&&tr(Be,"requestAnimationFrame",vce),t.XMLHttpRequest&&"XMLHttpRequest"in Be&&tr(XMLHttpRequest.prototype,"send",gce);const n=t.eventTarget;n&&(Array.isArray(n)?n:pce).forEach(i=>yce(i,t))}}},A7=mce;function j5(e){return function(...t){const n=t[0];return t[0]=Sc(n,{mechanism:{handled:!1,type:`auto.browser.browserapierrors.${_s(e)}`}}),e.apply(this,t)}}function vce(e){return function(t){return e.apply(this,[Sc(t,{mechanism:{data:{handler:_s(e)},handled:!1,type:"auto.browser.browserapierrors.requestAnimationFrame"}})])}}function gce(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&tr(n,i,function(o){const s={mechanism:{data:{handler:_s(o)},handled:!1,type:`auto.browser.browserapierrors.xhr.${i}`}},a=VE(o);return a&&(s.mechanism.data.handler=_s(a)),Sc(o,s)})}),e.apply(this,t)}}function yce(e,t){var i,o;const r=(i=Be[e])==null?void 0:i.prototype;(o=r==null?void 0:r.hasOwnProperty)!=null&&o.call(r,"addEventListener")&&(tr(r,"addEventListener",function(s){return function(a,l,u){try{bce(l)&&(l.handleEvent=Sc(l.handleEvent,{mechanism:{data:{handler:_s(l),target:e},handled:!1,type:"auto.browser.browserapierrors.handleEvent"}}))}catch{}return t.unregisterOriginalCallbacks&&_ce(this,a,l),s.apply(this,[a,Sc(l,{mechanism:{data:{handler:_s(l),target:e},handled:!1,type:"auto.browser.browserapierrors.addEventListener"}}),u])}}),tr(r,"removeEventListener",function(s){return function(a,l,u){try{if(Object.prototype.hasOwnProperty.call(l,"__sentry_wrapped__")){const c=l.__sentry_wrapped__;c&&s.call(this,a,c,u)}}catch{}return s.call(this,a,l,u)}}))}function bce(e){return typeof e.handleEvent=="function"}function _ce(e,t,n){e&&typeof e=="object"&&"removeEventListener"in e&&typeof e.removeEventListener=="function"&&e.removeEventListener(t,n)}const I7=(e={})=>{const t=e.lifecycle??"route";return{name:"BrowserSession",setupOnce(){if(typeof Be.document>"u"){Re&&X.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.");return}P_({ignoreDuration:!0});let n=!1;wC(()=>{n||(ym(),n=!0)});const r=Zt();let i=r.getUser();r.addScopeListener(o=>{const s=o.getUser();((i==null?void 0:i.id)!==(s==null?void 0:s.id)||(i==null?void 0:i.ip_address)!==(s==null?void 0:s.ip_address))&&(i=s,n&&ym())}),t==="route"&&q1(({from:o,to:s})=>{o!==s&&(P_({ignoreDuration:!0}),ym(),n=!0)})}}},Sce="CultureContext",Ece=()=>({name:Sce,preprocessEvent(e){var n;const t=W5();t&&(e.contexts={...e.contexts,culture:{...t,...(n=e.contexts)==null?void 0:n.culture}})},processSegmentSpan(e){const t=W5();t&&ma(e,{"culture.locale":t.locale,"culture.timezone":t.timezone,"culture.calendar":t.calendar})}}),x7=Ece;function W5(){try{const e=Be.Intl;if(!e)return;const t=e.DateTimeFormat().resolvedOptions();return{locale:t.locale,timezone:t.timeZone,calendar:t.calendar}}catch{return}}const Cce="GlobalHandlers",wce=(e={})=>{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:Cce,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Tce(n),G5("onerror")),t.onunhandledrejection&&(Ace(n),G5("onunhandledrejection"))}}},L7=wce;function Tce(e){oO(t=>{const{stackParser:n,attachStacktrace:r}=R7();if($e()!==e||J8())return;const{msg:i,url:o,line:s,column:a,error:l}=t,u=Ice(F1(n,l||i,void 0,r,!1),o,s,a);u.level="error",Jc(u,{originalException:l,mechanism:{handled:!1,type:"auto.browser.global_handlers.onerror"}})})}function Ace(e){sO(t=>{const{stackParser:n,attachStacktrace:r}=R7();if($e()!==e||J8())return;const i=k7(t),o=Mo(i)?M7(i):F1(n,i,void 0,r,!0);o.level="error",Jc(o,{originalException:i,mechanism:{handled:!1,type:"auto.browser.global_handlers.onunhandledrejection"}})})}function k7(e){if(Mo(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 M7(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function Ice(e,t,n,r){const i=e.exception=e.exception||{},o=i.values=i.values||[],s=o[0]=o[0]||{},a=s.stacktrace=s.stacktrace||{},l=a.frames=a.frames||[];return l.length===0&&l.push({colno:r,lineno:n,filename:xce(t)??ya(),function:ko,in_app:!0}),e}function G5(e){Re&&X.log(`Global Handler attached: ${e}`)}function R7(){const e=$e();return(e==null?void 0:e.getOptions())||{stackParser:()=>[],attachStacktrace:!1}}function xce(e){if(!(!Qi(e)||e.length===0))return e.startsWith("data:")?`<${eo(e,!1)}>`:e}const P7=()=>({name:"HttpContext",preprocessEvent(e){var r;if(!Be.navigator&&!Be.location&&!Be.document)return;const t=zv(),n={...t.headers,...(r=e.request)==null?void 0:r.headers};e.request={...t,...e.request,headers:n}},processSegmentSpan(e){var r;const t=(r=e.attributes)==null?void 0:r[pn];if(!Be.navigator&&!Be.location&&!Be.document)return;const n=zv();ma(e,{[ql]:t!=="http.client"?n.url:void 0,"http.request.header.user_agent":n.headers["User-Agent"],"http.request.header.referer":n.headers.Referer})}}),Lce="cause",kce=5,Mce="LinkedErrors",Rce=(e={})=>{const t=e.limit||kce,n=e.key||Lce;return{name:Mce,preprocessEvent(r,i,o){const s=o.getOptions();Lne(D1,s.stackParser,n,t,r,i)}}},O7=Rce,Pce=/^HTML(\w*)Element$/;function RC(e){if(typeof window<"u"&&e===window)return"[Window]";if(typeof document<"u"&&e===document)return"[Document]";if(Lue(e)){const t=Oce(e);if(Pce.test(t))return`[HTMLElement: ${qn(e)}]`}}function Oce(e){const t=Object.getPrototypeOf(e);return t!=null&&t.constructor?t.constructor.name:"null prototype"}function $ce(){return Nce()?(Re&&ho(()=>{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 Nce(){var i;if(typeof Be.window>"u")return!1;const e=Be;if(e.nw)return!1;const t=e.chrome||e.browser;if(!((i=t==null?void 0:t.runtime)!=null&&i.id))return!1;const n=ya();return!(Be===Be.top&&/^(?:chrome-extension|moz-extension|ms-browser-extension|safari-web-extension):\/\//.test(n))}function PC(e){return[z6(),W6(),Hre(),A7(),T7(),L7(),O7(),Y6(),P7(),x7(),I7()]}function Hce(e={}){const t=!e.skipBrowserExtensionCheck&&$ce();let n=e.defaultIntegrations==null?PC():e.defaultIntegrations;const r={...e,enabled:t?!1:e.enabled,stackParser:CJ(e.stackParser||C7),integrations:yte({integrations:e.integrations,defaultIntegrations:n}),transport:e.transport||MC};return pO(RC),tne(r7,r)}function Dce(){}function Vce(e){e()}function Fce(e={}){const t=Be.document,n=(t==null?void 0:t.head)||(t==null?void 0:t.body);if(!n){Re&&X.error("[showReportDialog] Global document not defined");return}const r=nt(),i=$e(),o=i==null?void 0:i.getDsn();if(!o){Re&&X.error("[showReportDialog] DSN not configured");return}const s={...e,user:{...r.getUser(),...e.user},eventId:e.eventId||h6()},a=Be.document.createElement("script");a.async=!0,a.crossOrigin="anonymous",a.src=vte(o,s);const{onLoad:l,onClose:u}=s;if(l&&(a.onload=l),u){const c=d=>
647{if(d.data==="__sentry_reportdialog_closed__")try{u()}finally{Be.removeEventListener("message",c)}};Be.addEventListener("message",c)}n.appendChild(a)}const Bce=Ke,Uce="ReportingObserver",z5=new WeakMap,jce=(e={})=>{const t=e.types||["crash","deprecation","intervention"];function n(r){if(z5.has($e()))for(const i of r)pi(o=>{o.setExtra("url",i.url);const s=`ReportingObserver [${i.type}]`;let a="No details available";if(i.body){const l={};for(const u in i.body)l[u]=i.body[u];if(o.setExtra("body",l),i.type==="crash"){const u=i.body;a=[u.crashId||"",u.reason||""].join(" ").trim()||a}else a=i.body.message||a}f6(`${s}: ${a}`)})}return{name:Uce,setupOnce(){if(!vse())return;new Bce.ReportingObserver(n,{buffered:!0,types:t}).observe()},setup(r){z5.set(r,!0)}}},Wce=jce,Gce="HttpClient",zce=(e={})=>{const t={failedRequestStatusCodes:[[500,599]],failedRequestTargets:[/.*/],...e};return{name:Gce,setup(n){ede(n,t),tde(n,t)}}},qce=zce;function Kce(e,t,n,r,i){if($7(e,n.status,n.url)){const o=nde(t,r);let s,a,l,u;const c=H7();if(c.requestHeaders!==!1&&(s=Gf(q5(o.headers),c.requestHeaders)),c.responseHeaders!==!1&&(a=Gf(q5(n.headers),c.responseHeaders)),c.cookies!==!1){const f=o.headers.get("Cookie")||void 0;if(f){const h=H_(f,c.cookies);typeof h=="object"&&(l=h)}const p=n.headers.get("Set-Cookie")||void 0;if(p){const h=H_(p,c.cookies);typeof h=="object"&&(u=h)}}const d=N7({url:o.url,method:o.method,status:n.status,requestHeaders:s,responseHeaders:a,requestCookies:l,responseCookies:u,error:i,type:"fetch"});Jc(d)}}function Xce(e,t,n,r,i){if($7(e,t.status,t.responseURL)){let o,s,a;const l=H7();if(l.cookies!==!1)try{const c=t.getResponseHeader("Set-Cookie")||t.getResponseHeader("set-cookie")||void 0;if(c){const d=H_(c,l.cookies);typeof d=="object"&&(s=d)}}catch{}if(l.responseHeaders!==!1)try{a=Gf(Yce(t),l.responseHeaders)}catch{}l.requestHeaders!==!1&&(o=Gf(r,l.requestHeaders));const u=N7({url:t.responseURL,method:n,status:t.status,requestHeaders:o,responseHeaders:a,responseCookies:s,error:i,type:"xhr"});Jc(u)}}function Zce(e){if(e){const t=e["Content-Length"]||e["content-length"];if(t)return parseInt(t,10)}}function q5(e){const t={};return e.forEach((n,r)=>{t[r]=n}),t}function Yce(e){const t=e.getAllResponseHeaders();return t?t.split(`\r 648`).reduce((n,r)=>{const[i,o]=r.split(": ");return i&&o&&(n[i]=o),n},{}):{}}function Jce(e,t){return e.some(n=>typeof n=="string"?t.includes(n):n.test(t))}function Qce(e,t){return e.some(n=>typeof n=="number"?n===t:t>=n[0]&&t<=n[1])}function ede(e,t){k8()&&N1(n=>{if($e()!==e)return;const{response:r,args:i,error:o,virtualError:s}=n,[a,l]=i;r&&Kce(t,a,r,l,o||s)},!1)}function tde(e,t){"XMLHttpRequest"in Ke&&LC(n=>{if($e()!==e)return;const{error:r,virtualError:i}=n,o=n.xhr,s=o[ss];if(!s)return;const{method:a,request_headers:l}=s;try{Xce(t,o,a,l,r||i)}catch(u){Re&&X.warn("Error while extracting response event form XHR response",u)}})}function $7(e,t,n){return Qce(e.failedRequestStatusCodes,t)&&Jce(e.failedRequestTargets,n)&&!B6(n,$e())}
648function N7(e){const t=$e(),n=t&&e.error&&e.error instanceof Error?e.error.stack:void 0,r=n&&t?t.getOptions().stackParser(n,0,1):void 0,i=`HTTP Client Error with status code: ${e.status}`,o={message:i,exception:{values:[{type:"Error",value:i,stacktrace:r?{frames:r}:void 0}]},request:{url:e.url,method:e.method,headers:e.requestHeaders,cookies:e.requestCookies},contexts:{response:{status_code:e.status,headers:e.responseHeaders,cookies:e.responseCookies,body_size:Zce(e.responseHeaders)}}};return Io(o,{type:`auto.http.client.${e.type}`,handled:!1}),o}function nde(e,t){return!t&&e instanceof Request||e instanceof Request&&e.bodyUsed?e:new Request(e,t)}function H7(){const e=$e();if(!e)return{cookies:!1,requestHeaders:!1,responseHeaders:!1};const t=e.getOptions();if(t.dataCollection==null){const i=!!t.sendDefaultPii;return{cookies:i,requestHeaders:i,responseHeaders:i}}const{cookies:n,httpHeaders:r}=e.getDataCollectionOptions();return{cookies:n,requestHeaders:r.request,responseHeaders:r.response}}const gy=Ke,rde=7,ide="ContextLines",ode=(e={})=>({name:ide,processEvent(t,n,r){const i=e.frameContextLines??(r==null?void 0:r.getDataCollectionOptions().frameContextLines)??rde;return ade(t,i)}}),sde=ode;function ade(e,t){var a;const n=gy.document,r=gy.location&&F6(gy.location.href);if(!n||!r)return e;const i=(a=e.exception)==null?void 0:a.values;if(!(i!=null&&i.length))return e;const o=n.documentElement.innerHTML;if(!o)return e;const s=["<!DOCTYPE html>","<html>",...o.split(` 649`),"</html>"];return i.forEach(l=>{const u=l.stacktrace;u!=null&&u.frames&&(u.frames=u.frames.map(c=>lde(c,s,r,t)))}),e}function lde(e,t,n,r){return e.filename!==n||!e.lineno||!t.length||BJ(t,e,r),e}const ude="GraphQLClient",cde=e=>({name:ude,setup(t){dde(t,e),fde(t,e)}});function dde(e,t){e.on("beforeOutgoingRequestSpan",(n,r)=>{const o=ct(n).data||{};if(!(o[pn]==="http.client"))return;const l=o[ql]||o["http.url"]||o.url,u=o[vQ]||o["http.method"];if(!Qi(l)||!Qi(u))return;const{endpoints:c}=t,d=xi(l,c),f=V7(r);if(d&&f){const p=F7(f);if(p){const h=D7(p);n.updateName(`${u} ${l} (${h})`),K1(p)&&e.getDataCollectionOptions().graphQL.document===!0&&n.setAttribute(s6,p.query),X1(p)&&(n.setAttribute("graphql.persisted_query.hash.sha256",p.extensions.persistedQuery.sha256Hash),n.setAttribute("graphql.persisted_query.version",p.extensions.persistedQuery.version))}}})}function fde(e,t){e.on("beforeOutgoingRequestBreadcrumb",(n,r)=>{const{category:i,type:o,data:s}=n;if(o==="http"&&(i==="fetch"||i==="xhr")){const c=s==null?void 0:s.url,{endpoints:d}=t,f=xi(c,d),p=V7(r);if(f&&s&&p){const h=F7(p);if(!s.graphql&&h){const m=D7(h);s["graphql.operation"]=m,K1(h)&&e.getDataCollectionOptions().graphQL.document===!0&&(s[s6]=h.query),X1(h)&&(s["graphql.persisted_query.hash.sha256"]=h.extensions.persistedQuery.sha256Hash,s["graphql.persisted_query.version"]=h.extensions.persistedQuery.version)}}}})}function D7(e){if(X1(e))return`persisted ${e.operationName}`;if(K1(e)){const{query:t,operationName:n}=e,{operationName:r=n,operationType:i}=pde(t);return r?`${i} ${r}`:`${i}`}return"unknown"}function V7(e){const t="xhr"in e;let n;if(t){const r=e.xhr[ss];n=r&&Xv(r.body)[0]}else{const r=kC(e.input);n=Xv(r)[0]}return n}function pde(e){const t=/^(?:\s*)(query|mutation|subscription)(?:\s*)(\w+)(?:\s*)[{(]/,n=/^(?:\s*)(query|mutation|subscription)(?:\s*)[{(]/,r=e.match(t);if(r)return{operationType:r[1],operationName:r[2]};const i=e.match(n);return i?{operationType:i[1],operationName:void 0}:{operationType:void 0,operationName:void 0}}function K1(e){return Ii(e)&&typeof e.query=="string"}function X1(e){return Ii(e)&&typeof e.operationName=="string"&&Ii(e.extensions)&&Ii(e.extensions.persistedQuery)&&typeof e.extensions.persistedQuery.sha256Hash=="string"&&typeof e.extensions.persistedQuery.version=="number"}function F7(e){try{const t=JSON.parse(e);return K1(t)||X1(t)?t:void 0}catch{return}}const hde=cde,mde=(e={})=>{const t=["script"];function n(r,i,o=0){var a;if(!r)return;const s="shadowRoot"in r&&r.shadowRoot?r.shadowRoot.children:r.children;for(const l of s){if(!(l instanceof HTMLElement))continue;const u=vC(l,1)||void 0,c=l.tagName.toLowerCase();if(t.includes(c))continue;const d=((a=e.onElement)==null?void 0:a.call(e,{element:l,componentName:u,tagName:c,depth:o}))||{};if(d==="skip")continue;if(d==="children"){n(l,i,o+1);continue}const{x:f,y:p,width:h,height:m}=l.getBoundingClientRect(),v={identifier:l.id||void 0,type:u||c,visible:!0,alpha:1,height:m,width:h,x:f,y:p,...d},g=[];v.children=g,n(l,v.children,o+1),i.push(v)}}return{name:"ViewHierarchy",processEvent:(r,i)=>{var a,l;if(r.type!==void 0||((a=e.shouldAttach)==null?void 0:a.call(e,r,i))===!1)return r;const o={rendering_system:"DOM",positioning:"absolute",windows:[]};n(((l=e.rootElement)==null?void 0:l.call(e))||Be.document.body,o.windows);const s={filename:"view-hierarchy.json",attachmentType:"event.view_hierarchy",contentType:"application/json",data:JSON.stringify(o)};return i.attachments=i.attachments||[],i.attachments.push(s),r}}},tn=Ke,OC="sentryReplaySession",vde="replay_event",$C="Unable to send Replay",gde=3e5,yde=9e5,bde=5e3,_de=5500,Sde=6e4,Ede=5e3,Cde=3,K5=15e4,Oh=5e3,wde=3e3,Tde=300,NC=2e7,Ade=4999,Ide=5e4,X5=36e5;var xde=Object.defineProperty,Lde=(e,t,n)=>t in e?xde(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Z5=(e,t,n)=>Lde(e,typeof t!="symbol"?t+"":t,n),Vn=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Vn||{});
649function kde(e){return e.nodeType===e.ELEMENT_NODE}function af(e){const t=e==null?void 0:e.host;return(t==null?void 0:t.shadowRoot)===e}function lf(e){return Object.prototype.toString.call(e)==="[object ShadowRoot]"}function Mde(e){return e.includes(" background-clip: text;")&&!e.includes(" -webkit-background-clip: text;")&&(e=e.replace(/\sbackground-clip:\s*text;/g," -webkit-background-clip: text; background-clip: text;")),e}function Rde(e){const{cssText:t}=e;if(t.split('"').length<3)return t;const n=["@import",`url(${JSON.stringify(e.href)})`];return e.layerName===""?n.push("layer"):e.layerName&&n.push(`layer(${e.layerName})`),e.supportsText&&n.push(`supports(${e.supportsText})`),e.media.length&&n.push(e.media.mediaText),n.join(" ")+";"}function Zv(e){try{const t=e.rules||e.cssRules;return t?Mde(Array.from(t,B7).join("")):null}catch{return null}}function Pde(e){let t="";for(let n=0;n<e.style.length;n++){const r=e.style,i=r[n],o=r.getPropertyPriority(i);t+=`${i}:${r.getPropertyValue(i)}${o?" !important":""};`}return`${e.selectorText} { ${t} }`}function B7(e){let t;if($de(e))try{t=Zv(e.styleSheet)||Rde(e)}catch{}else if(Nde(e)){let n=e.cssText;const r=e.selectorText.includes(":"),i=typeof e.style.all=="string"&&e.style.all;if(i&&(n=Pde(e)),r&&(n=Ode(n)),r||i)return n}return t||e.cssText}function Ode(e){const t=/(\[(?:[\w-]+)[^\\])(:(?:[\w-]+)\])/gm;return e.replace(t,"$1\\$2")}function $de(e){return"styleSheet"in e}function Nde(e){return"selectorText"in e}let U7=class{constructor(){Z5(this,"idNodeMap",new Map),Z5(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}};function Hde(){return new U7}function Z1({maskInputOptions:e,tagName:t,type:n}){return t==="OPTION"&&(t="SELECT"),!!(e[t.toLowerCase()]||n&&e[n]||n==="password"||t==="INPUT"&&!n&&e.text)}function Xf({isMasked:e,element:t,value:n,maskInputFn:r}){let i=n||"";return e?(r&&(i=r(i,t)),"*".repeat(i.length)):i}function Cc(e){return e.toLowerCase()}function t2(e){return e.toUpperCase()}const Y5="__rrweb_original__";function Dde(e){const t=e.getContext("2d");if(!t)return!0;const n=50;for(let r=0;r<e.width;r+=n)for(let i=0;i<e.height;i+=n){const o=t.getImageData,s=Y5 in o?o[Y5]:o;if(new Uint32Array(s.call(t,r,i,Math.min(n,e.width-r),Math.min(n,e.height-i)).data.buffer).some(l=>l!==0))return!1}return!0}function HC(e){const t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?Cc(t):null}function Yv(e,t,n){return t==="INPUT"&&(n==="radio"||n==="checkbox")?e.getAttribute("value")||"":e.value}function j7(e,t){let n;try{n=new URL(e,t??window.location.href)}catch{return null}const r=/\.([0-9a-z]+)(?:$)/i,i=n.pathname.match(r);return(i==null?void 0:i[1])??null}const J5={};function W7(e){const t=J5[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const o=i.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(i)}catch{}return J5[e]=r.bind(window)}function n2(...e){return W7("setTimeout")(...e)}function G7(...e){return W7("clearTimeout")(...e)}function z7(e){try{return e.contentDocument}catch{}}function Vde(e){try{return e.contentWindow}catch{}}let Fde=1;const Bde=new RegExp("[^a-z0-9-_:]"),Zf=-2;function DC(){return Fde++}function Ude(e){if(e instanceof HTMLFormElement)return"form";const t=Cc(e.tagName);return Bde.test(t)?"div":t}function jde(e){let t="";return e.indexOf("//")>-1?t=e.split("/").slice(0,3).join("/"):t=e.split("/")[0],t=t.split("?")[0],t}let du,Q5;
649const Wde=/url\((?:(')([^']*)'|(")(.*?)"|([^)]*))\)/gm,Gde=/^(?:[a-z+]+:)?\/\//i,zde=/^www\..*/i,qde=/^(data:)([^,]*),(.*)/i;function Kde(e,t){if(!e||t.size===0)return e;try{const n=e.split(";"),r=[];for(let i of n){if(i=i.trim(),!i)continue;const o=i.indexOf(":");if(o===-1){r.push(i);continue}const s=i.slice(0,o).trim();t.has(s)||r.push(i)}return r.join("; ")+(r.length>0&&e.endsWith(";")?";":"")}catch(n){return console.warn("Error filtering CSS properties:",n),e}}function Jv(e,t){return(e||"").replace(Wde,(n,r,i,o,s,a)=>{const l=i||s||a,u=r||o||"";if(!l)return n;if(Gde.test(l)||zde.test(l))return`url(${u}${l}${u})`;if(qde.test(l))return`url(${u}${l}${u})`;if(l[0]==="/")return`url(${u}${jde(t)+l}${u})`;const c=t.split("/"),d=l.split("/");c.pop();for(const f of d)f!=="."&&(f===".."?c.pop():c.push(f));return`url(${u}${c.join("/")}${u})`})}const Xde=/^[^ \t\n\r\u000c]+/,Zde=/^[, \t\n\r\u000c]+/;function Yde(e,t){if(t.trim()==="")return t;let n=0;function r(o){let s;const a=o.exec(t.substring(n));return a?(s=a[0],n+=s.length,s):""}const i=[];for(;r(Zde),!(n>=t.length);){let o=r(Xde);if(o.slice(-1)===",")o=Mu(e,o.substring(0,o.length-1)),i.push(o);else{let s="";o=Mu(e,o);let a=!1;for(;;){const l=t.charAt(n);if(l===""){i.push((o+s).trim());break}else if(a)l===")"&&(a=!1);else if(l===","){n+=1,i.push((o+s).trim());break}else l==="("&&(a=!0);s+=l,n+=1}}}return i.join(", ")}const e3=new WeakMap;function Mu(e,t){return!t||t.trim()===""?t:Y1(e,t)}function Jde(e){return!!(e.tagName==="svg"||e.ownerSVGElement)}function Y1(e,t){let n=e3.get(e);if(n||(n=e.createElement("a"),e3.set(e,n)),!t)t="";else if(t.startsWith("blob:")||t.startsWith("data:"))return t;return n.setAttribute("href",t),n.href}function q7(e,t,n,r,i,o,s){if(!r)return r;if(n==="src"||n==="href"&&!(t==="use"&&r[0]==="#"))return Mu(e,r);if(n==="xlink:href"&&r[0]!=="#")return Mu(e,r);if(n==="background"&&(t==="table"||t==="td"||t==="th"))return Mu(e,r);if(n==="srcset")return Yde(e,r);if(n==="style"){let a=Jv(r,Y1(e));return s&&s.size>0&&(a=Kde(a,s)),a}else if(t==="object"&&n==="data")return Mu(e,r);return typeof o=="function"?o(n,r,i):r}function K7(e,t,n){return(e==="video"||e==="audio")&&t==="autoplay"}function Qde(e,t,n,r){try{if(r&&e.matches(r))return!1;if(typeof t=="string"){if(e.classList.contains(t))return!0}else for(let i=e.classList.length;i--;){const o=e.classList[i];if(t.test(o))return!0}if(n)return e.matches(n)}catch{}return!1}function efe(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function Ja(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:Ja(e.parentNode,t,n,r+1)}function Ru(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(efe(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}function wc(e,t,n,r,i,o){try{const s=e.nodeType===e.ELEMENT_NODE?e:e.parentElement;if(s===null)return!1;if(s.tagName==="INPUT"){const u=s.getAttribute("autocomplete");if(["current-password","new-password","cc-number","cc-exp","cc-exp-month","cc-exp-year","cc-csc"].includes(u))return!0}let a=-1,l=-1;if(o){if(l=Ja(s,Ru(r,i)),l<0)return!0;a=Ja(s,Ru(t,n),l>=0?l:1/0)}else{if(a=Ja(s,Ru(t,n)),a<0)return!1;l=Ja(s,Ru(r,i),a>=0?a:1/0)}return a>=0?l>=0?a<=l:!0:l>=0?!1:!!o}catch{}return!!o}function tfe(e,t,n){const r=Vde(e);if(!r)return;let i=!1,o;try{o=r.document.readyState}catch{return}if(o!=="complete"){const a=n2(()=>{i||(t(),i=!0)},n);e.addEventListener("load",()=>{G7(a),i=!0,t()});return}const s="about:blank";if(r.location.href!==s||e.src===s||e.src==="")return n2(t,0),e.addEventListener("load",t);e.addEventListener("load",t)}function nfe(e,t,n){let r=!1,i;try{i=e.sheet}catch{i=null}if(i)return;const o=n2(()=>{r||(t(),r=!0)},n);e.addEventListener("load",()=>{G7(o),r=!0,t()})}function rfe(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskAttributeFn:l,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:f,inlineStylesheet:p,maskInputOptions:h={},maskTextFn:m,maskInputFn:v,dataURLOptions:g={},inlineImages:y,recordCanvas:_,keepIframeSrcFn:b,newlyAddedElement:S=!1,ignoreCSSAttributes:C}=t,E=ife(n,r);switch(e.nodeType){case e.DOCUMENT_NODE:return e.compatMode!=="CSS1Compat"?{type:Vn.Document,childNodes:[],compatMode:e.compatMode}:{type:Vn.Document,childNodes:[]};case e.DOCUMENT_TYPE_NODE:return{type:Vn.DocumentType,name:e.name,publicId:e.publicId,systemId:e.systemId,rootId:E};case e.ELEMENT_NODE:return sfe(e,{doc:n,blockClass:i,blockSelector:o,unblockSelector:s,inlineStylesheet:p,maskAttributeFn:l,maskInputOptions:h,maskInputFn:v,dataURLOptions:g,inlineImages:y,recordCanvas:_,keepIframeSrcFn:b,newlyAddedElement:S,rootId:E,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:f,ignoreCSSAttributes:C});case e.TEXT_NODE:return ofe(e,{doc:n,maskAllText:a,maskTextClass:u,unmaskTextClass:c,maskTextSelector:d,unmaskTextSelector:f,maskTextFn:m,maskInputOptions:h,maskInputFn:v,rootId:E});case e.CDATA_SECTION_NODE:return{type:Vn.CDATA,textContent:"",rootId:E};case e.COMMENT_NODE:return{type:Vn.Comment,textContent:e.textContent||"",rootId:E};default:return!1}}function ife(e,t){if(!t.hasNode(e))return;const n=t.getId(e);return n===1?void 0:n}function ofe(e,t){var g;const{maskAllText:n,maskTextClass:r,unmaskTextClass:i,maskTextSelector:o,unmaskTextSelector:s,maskTextFn:a,maskInputOptions:l,maskInputFn:u,rootId:c}=t,d=e.parentNode&&e.parentNode.tagName;let f=e.textContent;const p=d==="STYLE"?!0:void 0,h=d==="SCRIPT"?!0:void 0,m=d==="TEXTAREA"?!0:void 0;if(p&&f){try{e.nextSibling||e.previousSibling||(g=e.parentNode.sheet)!=null&&g.cssRules&&(f=Zv(e.parentNode.sheet))}catch(y){console.warn(`Cannot get CSS styles from text's parentNode. Error: ${y}`,e)}f=Jv(f,Y1(t.doc))}h&&(f="SCRIPT_PLACEHOLDER");const v=wc(e,r,o,i,s,n);if(!p&&!h&&!m&&f&&v&&(f=a?a(f,e.parentElement):f.replace(/[\S]/g,"*")),m&&f&&(l.textarea||v)&&(f=u?u(f,e.parentNode):f.replace(/[\S]/g,"*")),d==="OPTION"&&f){const y=Z1({type:null,tagName:d,maskInputOptions:l});f=Xf({isMasked:wc(e,r,o,i,s,y),element:e,value:f,maskInputFn:u})}return{type:Vn.Text,textContent:f||"",isStyle:p,rootId:c}}function sfe(e,t){const{doc:n,blockClass:r,blockSelector:i,unblockSelector:o,inlineStylesheet:s,maskInputOptions:a={},maskAttributeFn:l,maskInputFn:u,dataURLOptions:c={}
649,inlineImages:d,recordCanvas:f,keepIframeSrcFn:p,newlyAddedElement:h=!1,rootId:m,maskTextClass:v,unmaskTextClass:g,maskTextSelector:y,unmaskTextSelector:_,ignoreCSSAttributes:b}=t,S=Qde(e,r,i,o),C=Ude(e);let E={};const w=e.attributes.length;for(let A=0;A<w;A++){const L=e.attributes[A];L.name&&!K7(C,L.name,L.value)&&(E[L.name]=q7(n,C,Cc(L.name),L.value,e,l,b))}if(C==="link"&&s){const A=Array.from(n.styleSheets).find(x=>x.href===e.href);let L=null;A&&(L=Zv(A)),L&&(E.rel=null,E.href=null,E.crossorigin=null,E._cssText=Jv(L,A.href))}if(C==="style"&&e.sheet&&!(e.innerText||e.textContent||"").trim().length){const A=Zv(e.sheet);A&&(E._cssText=Jv(A,Y1(n)))}if(C==="input"||C==="textarea"||C==="select"||C==="option"){const A=e,L=HC(A),x=Yv(A,t2(C),L),k=A.checked;if(L!=="submit"&&L!=="button"&&x){const M=wc(A,v,y,g,_,Z1({type:L,tagName:t2(C),maskInputOptions:a}));E.value=Xf({isMasked:M,element:A,value:x,maskInputFn:u})}k&&(E.checked=k)}if(C==="option"&&(e.selected&&!a.select?E.selected=!0:delete E.selected),C==="canvas"&&f){if(e.__context==="2d")Dde(e)||(E.rr_dataURL=e.toDataURL(c.type,c.quality));else if(!("__context"in e)){const A=e.toDataURL(c.type,c.quality),L=n.createElement("canvas");L.width=e.width,L.height=e.height;const x=L.toDataURL(c.type,c.quality);A!==x&&(E.rr_dataURL=A)}}if(C==="img"&&d){du||(du=n.createElement("canvas"),Q5=du.getContext("2d"));const A=e,L=A.currentSrc||A.getAttribute("src")||"<unknown-src>",x=A.crossOrigin,k=()=>{A.removeEventListener("load",k);try{du.width=A.naturalWidth,du.height=A.naturalHeight,Q5.drawImage(A,0,0),E.rr_dataURL=du.toDataURL(c.type,c.quality)}
649catch(M){if(A.crossOrigin!=="anonymous"){A.crossOrigin="anonymous",A.complete&&A.naturalWidth!==0?k():A.addEventListener("load",k);return}else console.warn(`Cannot inline img src=${L}! Error: ${M}`)}A.crossOrigin==="anonymous"&&(x?E.crossOrigin=x:A.removeAttribute("crossorigin"))};A.complete&&A.naturalWidth!==0?k():A.addEventListener("load",k)}if((C==="audio"||C==="video")&&(E.rr_mediaState=e.paused?"paused":"played",E.rr_mediaCurrentTime=e.currentTime),h||(e.scrollLeft&&(E.rr_scrollLeft=e.scrollLeft),e.scrollTop&&(E.rr_scrollTop=e.scrollTop)),S){const{width:A,height:L}=e.getBoundingClientRect();E={class:E.class,rr_width:`${A}px`,rr_height:`${L}px`}}C==="iframe"&&!p(E.src)&&(!S&&!z7(e)&&(E.rr_src=E.src),delete E.src);let T;try{customElements.get(C)&&(T=!0)}catch{}return{type:Vn.Element,tagName:C,attributes:E,childNodes:[],isSVG:Jde(e)||void 0,needBlock:S,rootId:m,isCustom:T}}function Yt(e){return e==null?"":e.toLowerCase()}function afe(e,t){if(t.comment&&e.type===Vn.Comment)return!0;if(e.type===Vn.Element){if(t.script&&(e.tagName==="script"||e.tagName==="link"&&(e.attributes.rel==="preload"||e.attributes.rel==="modulepreload")||e.tagName==="link"&&e.attributes.rel==="prefetch"&&typeof e.attributes.href=="string"&&j7(e.attributes.href)==="js"))return!0;if(t.headFavicon&&(e.tagName==="link"&&e.attributes.rel==="shortcut icon"||e.tagName==="meta"&&(Yt(e.attributes.name).match(/^msapplication-tile(image|color)$/)||Yt(e.attributes.name)==="application-name"||Yt(e.attributes.rel)==="icon"||Yt(e.attributes.rel)==="apple-touch-icon"||Yt(e.attributes.rel)==="shortcut icon")))return!0;if(e.tagName==="meta"){if(t.headMetaDescKeywords&&Yt(e.attributes.name).match(/^description|keywords$/))return!0;if(t.headMetaSocial&&(Yt(e.attributes.property).match(/^(og|twitter|fb):/)||Yt(e.attributes.name).match(/^(og|twitter):/)||Yt(e.attributes.name)==="pinterest"))return!0;if(t.headMetaRobots&&(Yt(e.attributes.name)==="robots"||Yt(e.attributes.name)==="googlebot"||Yt(e.attributes.name)==="bingbot"))return!0;if(t.headMetaHttpEquiv&&e.attributes["http-equiv"]!==void 0)return!0;if(t.headMetaAuthorship&&(Yt(e.attributes.name)==="author"||Yt(e.attributes.name)==="generator"||Yt(e.attributes.name)==="framework"||Yt(e.attributes.name)==="publisher"||Yt(e.attributes.name)==="progid"||Yt(e.attributes.property).match(/^article:/)||Yt(e.attributes.property).match(/^product:/)))return!0;if(t.headMetaVerification&&(Yt(e.attributes.name)==="google-site-verification"||Yt(e.attributes.name)==="yandex-verification"||Yt(e.attributes.name)==="csrf-token"||Yt(e.attributes.name)==="p:domain_verify"||Yt(e.attributes.name)==="verify-v1"||Yt(e.attributes.name)==="verification"||Yt(e.attributes.name)==="shopify-checkout-api-token"))return!0}}return!1}function Pu(e,t){const{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,skipChild:f=!1,inlineStylesheet:p=!0,maskInputOptions:h={},maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOMOptions:y,dataURLOptions:_={},inlineImages:b=!1,recordCanvas:S=!1,onSerialize:C,onIframeLoad:E,iframeLoadTimeout:w=5e3,onBlockedImageLoad:T,onStylesheetLoad:A,stylesheetLoadTimeout:L=5e3,keepIframeSrcFn:x=()=>!1,newlyAddedElement:k=!1,ignoreCSSAttributes:M}=t;let{preserveWhiteSpace:z=!0}=t;const P=rfe(e,{doc:n,mirror:r,blockClass:i,blockSelector:o,maskAllText:a,unblockSelector:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,dataURLOptions:_,inlineImages:b,recordCanvas:S,keepIframeSrcFn:x,newlyAddedElement:k,ignoreCSSAttributes:M});if(!P)return console.warn(e,"not serialized"),null;let H;r.hasNode(e)?H=r.getId(e):afe(P,y)||!z&&P.type===Vn.Text&&!P.isStyle&&!P.textContent.trim().length?H=Zf:H=DC();const q=Object.assign(P,{id:H});if(r.add(e,q),H===Zf)return null;C&&C(e);let de=!f;if(q.type===Vn.Element){de=de&&!q.needBlock;const se=e.shadowRoot;se&&lf(se)&&(q.isShadowHost=!0)}if((q.type===Vn.Document||q.type===Vn.Element)&&de){y.headWhitespace&&q.type===Vn.Element&&q.tagName==="head"&&(z=!1);const se={doc:n,mirror:r,blockClass:i,blockSelector:o,maskAllText:a,unblockSelector:s,maskTextClass:l,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,skipChild:f,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOMOptions:y,dataURLOptions:_,inlineImages:b,recordCanvas:S,preserveWhiteSpace:z,onSerialize:C,onIframeLoad:E,iframeLoadTimeout:w,onBlockedImageLoad:T,onStylesheetLoad:A,stylesheetLoadTimeout:L,keepIframeSrcFn:x,ignoreCSSAttributes:M},W=e.childNodes?Array.from(e.childNodes):[];for(const V of W){const B=Pu(V,se);B&&q.childNodes.push(B)}if(kde(e)&&e.shadowRoot)for(const V of Array.from(e.shadowRoot.childNodes)){const B=Pu(V,se);B&&(lf(e.shadowRoot)&&(B.isShadow=!0),q.childNodes.push(B))}}if(e.parentNode&&af(e.parentNode)&&lf(e.parentNode)&&(q.isShadow=!0),q.type===Vn.Element&&q.tagName==="iframe"&&!q.needBlock&&tfe(e,()=>{const se=z7(e);if(se&&E){const W=Pu(se,{doc:se,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOMOptions:y,dataURLOptions:_,inlineImages:b,recordCanvas:S,preserveWhiteSpace:z,onSerialize:C,onIframeLoad:E,iframeLoadTimeout:w,onStylesheetLoad:A,stylesheetLoadTimeout:L,keepIframeSrcFn:x,ignoreCSSAttributes:M});W&&E(e,W)}},w),q.type===Vn.Element&&q.tagName==="img"&&!e.complete&&q.needBlock){const se=e,W=()=>{if(se.isConnected&&!se.complete&&T)try{const V=se.getBoundingClientRect();V.width>0&&V.height>0&&T(se,q,V)}catch{}se.removeEventListener("load",W)};se.isConnected&&se.addEventListener("load",W)}return q.type===Vn.Element&&q.tagName==="link"&&typeof q.attributes.rel=="string"&&(q.attributes.rel==="stylesheet"||q.attributes.rel==="preload"&&typeof q.attributes.href=="string"&&j7(q.attributes.href)==="css")&&nfe(e,()=>{if(A){const se=Pu(e,{doc:n,mirror:r,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:a,maskTextClass:l,unmaskTextClass:u,maskTextSelector:c,unmaskTextSelector:d,skipChild:!1,inlineStylesheet:p,maskInputOptions:h,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOMOptions:y,dataURLOptions:_,inlineImages:b,recordCanvas:S,preserveWhiteSpace:z,onSerialize:C,onIframeLoad:E,iframeLoadTimeout:w,onStylesheetLoad:A,stylesheetLoadTimeout:L,keepIframeSrcFn:x,ignoreCSSAttributes:M});se&&A(e,se)}},L),q.type===Vn.Element&&delete q.needBlock,q}function lfe(e,t){const{mirror:n=new U7,blockClass:r="rr-block",blockSelector:i=null,unblockSelector:o=null,maskAllText:s=!1,maskTextClass:a="rr-mask",unmaskTextClass:l=null,maskTextSelector:u=null,unmaskTextSelector:c=null,inlineStylesheet:d=!0,inl
649ineImages:f=!1,recordCanvas:p=!1,maskAllInputs:h=!1,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOM:y=!1,dataURLOptions:_,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:E,onBlockedImageLoad:w,onStylesheetLoad:T,stylesheetLoadTimeout:A,keepIframeSrcFn:L=()=>!1,ignoreCSSAttributes:x=new Set([])}=t||{};return Pu(e,{doc:e,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,maskAllText:s,maskTextClass:a,unmaskTextClass:l,maskTextSelector:u,unmaskTextSelector:c,skipChild:!1,inlineStylesheet:d,maskInputOptions:h===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0}:h===!1?{}:h,maskAttributeFn:m,maskTextFn:v,maskInputFn:g,slimDOMOptions:y===!0||y==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaDescKeywords:y==="all",headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaAuthorship:!0,headMetaVerification:!0}:y===!1?{}:y,dataURLOptions:_,inlineImages:f,recordCanvas:p,preserveWhiteSpace:b,onSerialize:S,onIframeLoad:C,iframeLoadTimeout:E,onBlockedImageLoad:w,onStylesheetLoad:T,stylesheetLoadTimeout:A,keepIframeSrcFn:L,newlyAddedElement:!1,ignoreCSSAttributes:x})}function Ir(e,t,n=document){const r={capture:!0,passive:!0};return n.addEventListener(e,t,r),()=>n.removeEventListener(e,t,r)}const Tu=`Please stop import mirror directly. Instead of that,\r 650now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 651or you can use record.mirror to access the mirror instance during recording.`;let t3={map:{},getId(){return console.error(Tu),-1},getNode(){return console.error(Tu),null},removeNodeFromMap(){console.error(Tu)},has(){return console.error(Tu),!1},reset(){console.error(Tu)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(t3=new Proxy(t3,{get(e,t,n){return t==="map"&&console.error(Tu),Reflect.get(e,t,n)}}));function Yf(e,t,n={}){let r=null,i=0;return function(...o){const s=Date.now();!i&&n.leading===!1&&(i=s);const a=t-(s-i),l=this;a<=0||a>t?(r&&(mfe(r),r=null),i=s,e.apply(l,o)):!r&&n.trailing!==!1&&(r=J1(()=>{i=n.leading===!1?0:Date.now(),r=null,e.apply(l,o)},a))}}function X7(e,t,n,r,i=window){const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(s){J1(()=>{n.set.call(this,s)},0),o&&o.set&&o.set.call(this,s)}}),()=>X7(e,t,o||{},!0)}function VC(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}let Qv=Date.now;/[1-9][0-9]{12}/.test(Date.now().toString())||(Qv=()=>new Date().getTime());function Z7(e){var n,r,i,o,s,a;const t=e.document;return{left:t.scrollingElement?t.scrollingElement.scrollLeft:e.pageXOffset!==void 0?e.pageXOffset:(t==null?void 0:t.documentElement.scrollLeft)||((r=(n=t==null?void 0:t.body)==null?void 0:n.parentElement)==null?void 0:r.scrollLeft)||((i=t==null?void 0:t.body)==null?void 0:i.scrollLeft)||0,top:t.scrollingElement?t.scrollingElement.scrollTop:e.pageYOffset!==void 0?e.pageYOffset:(t==null?void 0:t.documentElement.scrollTop)||((s=(o=t==null?void 0:t.body)==null?void 0:o.parentElement)==null?void 0:s.scrollTop)||((a=t==null?void 0:t.body)==null?void 0:a.scrollTop)||0}}function Y7(){return window.innerHeight||document.documentElement&&document.documentElement.clientHeight||document.body&&document.body.clientHeight}function J7(){return window.innerWidth||document.documentElement&&document.documentElement.clientWidth||document.body&&document.body.clientWidth}function Q7(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function ri(e,t,n,r,i){if(!e)return!1;const o=Q7(e);if(!o)return!1;const s=Ru(t,n);if(!i){const u=r&&o.matches(r);return s(o)&&!u}const a=Ja(o,s);let l=-1;return a<0?!1:(r&&(l=Ja(o,Ru(null,r))),a>-1&&l<0?!0:a<l)}function ufe(e,t){return t.getId(e)!==-1}function yy(e,t){return t.getId(e)===Zf}function e$(e,t){if(af(e))return!1;const n=t.getId(e);return t.has(n)?e.parentNode&&e.parentNode.nodeType===e.DOCUMENT_NODE?!1:e.parentNode?e$(e.parentNode,t):!0:!0}function r2(e){return!!e.changedTouches}function cfe(e=window){"NodeList"in e&&!e.NodeList.prototype.forEach&&(e.NodeList.prototype.forEach=Array.prototype.forEach),"DOMTokenList"in e&&!e.DOMTokenList.prototype.forEach&&(e.DOMTokenList.prototype.forEach=Array.prototype.forEach),Node.prototype.contains||(Node.prototype.contains=(...t)=>{let n=t[0];if(!(0 in t))throw new TypeError("1 argument is required");do if(this===n)return!0;while(n=n&&n.parentNode);return!1})}function t$(e,t){return!!(e.nodeName==="IFRAME"&&t.getMeta(e))}function n$(e,t){return!!(e.nodeName==="LINK"&&e.nodeType===e.ELEMENT_NODE&&e.getAttribute&&e.getAttribute("rel")==="stylesheet"&&t.getMeta(e))}function i2(e){return!!(e!=null&&e.shadowRoot)}class dfe{constructor(){this.id=1,this.styleIDMap=new WeakMap,this.idStyleMap=new Map}getId(t){return this.styleIDMap.get(t)??-1}has(t){return this.styleIDMap.has(t)}add(t,n){if(this.has(t))return this.getId(t);let r;return n===void 0?r=this.id++:r=n,this.styleIDMap.set(t,r),this.idStyleMap.set(r,t),r}getStyle(t){return this.idStyleMap.get(t)||null}reset(){this.styleIDMap=new WeakMap,this.idStyleMap=new Map,this.id=1}generateId(){return this.id++}}function r$(e){var n,r;let t=null;return((r=(n=e.getRootNode)==null?void 0:n.call(e))==null?void 0:r.no
651deType)===Node.DOCUMENT_FRAGMENT_NODE&&e.getRootNode().host&&(t=e.getRootNode().host),t}function ffe(e){let t=e,n;for(;n=r$(t);)t=n;return t}function pfe(e){const t=e.ownerDocument;if(!t)return!1;const n=ffe(e);return t.contains(n)}function i$(e){const t=e.ownerDocument;return t?t.contains(e)||pfe(e):!1}const n3={};function FC(e){const t=n3[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const o=i.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(i)}catch{}return n3[e]=r.bind(window)}function hfe(...e){return FC("requestAnimationFrame")(...e)}function J1(...e){return FC("setTimeout")(...e)}function mfe(...e){return FC("clearTimeout")(...e)}var gt=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(gt||{}),ft=(e=>(e[e.Mutation=0]="Mutation",e[e.MouseMove=1]="MouseMove",e[e.MouseInteraction=2]="MouseInteraction",e[e.Scroll=3]="Scroll",e[e.ViewportResize=4]="ViewportResize",e[e.Input=5]="Input",e[e.TouchMove=6]="TouchMove",e[e.MediaInteraction=7]="MediaInteraction",e[e.StyleSheetRule=8]="StyleSheetRule",e[e.CanvasMutation=9]="CanvasMutation",e[e.Font=10]="Font",e[e.Log=11]="Log",e[e.Drag=12]="Drag",e[e.StyleDeclaration=13]="StyleDeclaration",e[e.Selection=14]="Selection",e[e.AdoptedStyleSheet=15]="AdoptedStyleSheet",e[e.CustomElement=16]="CustomElement",e))(ft||{}),Sr=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(Sr||{}),es=(e=>(e[e.Mouse=0]="Mouse",e[e.Pen=1]="Pen",e[e.Touch=2]="Touch",e))(es||{}),Au=(e=>(e[e.Play=0]="Play",e[e.Pause=1]="Pause",e[e.Seeked=2]="Seeked",e[e.VolumeChange=3]="VolumeChange",e[e.RateChange=4]="RateChange",e))(Au||{});let uf;function vfe(e){uf=e}function gfe(){uf=void 0}const Rt=e=>uf?(...n)=>{try{return e(...n)}catch(r){if(uf&&uf(r)===!0)return()=>{};throw r}}:e;var r3="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",yfe=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var $h=0;$h<r3.length;$h++)yfe[r3.charCodeAt($h)]=$h;class i3{reset(){}freeze(){}unfreeze(){}lock(){}unlock(){}snapshot(){}addWindow(){}addShadowRoot(){}resetShadowRoots(){}}function BC(e){try{return e.contentDocument}catch{}}function Jf(e){try{return e.contentWindow}catch{}}class bfe{constructor(t){this.doc=t,this.unattachedDoc=null}parse(t){return this.parseWithConstructableStylesheet(t)||this.parseWithDetachedElement(t)}parseWithConstructableStylesheet(t){if(typeof CSSStyleSheet>"u"||typeof CSSStyleSheet.prototype.replaceSync!="function")return null;try{const n=new CSSStyleSheet;n.replaceSync(`x { ${t} }`);const r=n.cssRules[0];return!r||r.type!==CSSRule.STYLE_RULE?null:r.style}catch{return null}}parseWithDetachedElement(t){const n=this.getUnattachedDoc().createElement("span");return n.setAttribute("style",t),n.style}getUnattachedDoc(){if(!this.unattachedDoc)try{this.unattachedDoc=document.implementation.createHTMLDocument()}catch{this.unattachedDoc=this.doc}return this.unattachedDoc}}function o3(e){return"__ln"in e}class _fe{constructor(){this.length=0,this.head=null,this.tail=null}get(t){if(t>=this.length)throw new Error("Position outside of list range");let n=this.head;for(let r=0;r<t;r++)n=(n==null?void 0:n.next)||null;return n}addNode(t){const n={value:t,previous:null,next:null};if(t.__ln=n,t.previousSibling&&o3(t.previousSibling)){const r=t.previousSibling.__ln.next;n.next=r,n.previous=t.previousSibling.__ln,t.previousSibling.__ln.next=n,r&&(r.previous=n)}else if(t.nextSibling&&o3(t.nextSibling)&&t.nextSibling.__ln.previous){const r=t.nextSibling.__ln.previous;n.previous=r,n.next=t.nextSibling.__ln,t.nextSibling.__ln.previous=n,r&&(r.next=n)}else this.head&&(this.head.previous=n),n.next=this.head,this.head=n;n.next===null&&(this.tail=n),this.length++}removeNode(t){const n=t.__ln;this.head&&(n.previous?(n.previous.next=n.next,n.next?n.next.previous=n.previous:this.tail=n.previous):(this.head=n.next,this.head?this.head.previous=null:this.tail=null),t.__ln&&delete t.__ln,this.length--)}}const s3=(e,t)=>`${e}@${t}`;class Sfe{constructor(){this.frozen=!1,this.locked=!1,this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.mapRemoves=[],this.movedMap={},this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.processMutations=t=>
651{t.forEach(this.processMutation),this.emit()},this.emit=()=>{if(this.frozen||this.locked)return;const t=[],n=new Set,r=new _fe,i=l=>{let u=l,c=Zf;for(;c===Zf;)u=u&&u.nextSibling,c=u&&this.mirror.getId(u);return c},o=l=>{if(!l.parentNode||!i$(l))return;const u=af(l.parentNode)?this.mirror.getId(r$(l)):this.mirror.getId(l.parentNode),c=i(l);if(u===-1||c===-1)return r.addNode(l);const d=Pu(l,{doc:this.doc,mirror:this.mirror,blockClass:this.blockClass,blockSelector:this.blockSelector,maskAllText:this.maskAllText,unblockSelector:this.unblockSelector,maskTextClass:this.maskTextClass,unmaskTextClass:this.unmaskTextClass,maskTextSelector:this.maskTextSelector,unmaskTextSelector:this.unmaskTextSelector,skipChild:!0,newlyAddedElement:!0,inlineStylesheet:this.inlineStylesheet,maskInputOptions:this.maskInputOptions,maskAttributeFn:this.maskAttributeFn,maskTextFn:this.maskTextFn,maskInputFn:this.maskInputFn,slimDOMOptions:this.slimDOMOptions,dataURLOptions:this.dataURLOptions,recordCanvas:this.recordCanvas,inlineImages:this.inlineImages,onSerialize:f=>{t$(f,this.mirror)&&!ri(f,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&this.iframeManager.addIframe(f),n$(f,this.mirror)&&this.stylesheetManager.trackLinkElement(f),i2(l)&&this.shadowDomManager.addShadowRoot(l.shadowRoot,this.doc)},onIframeLoad:(f,p)=>{if(ri(f,this.blockClass,this.blockSelector,this.unblockSelector,!1))return;this.iframeManager.attachIframe(f,p);const h=Jf(f);h&&this.canvasManager.addWindow(h),this.shadowDomManager.observeAttachShadow(f)},onStylesheetLoad:(f,p)=>{this.stylesheetManager.attachLinkElement(f,p)},onBlockedImageLoad:(f,p,{width:h,height:m})=>{this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:p.id,attributes:{style:{width:`${h}px`,height:`${m}px`}}}]})},ignoreCSSAttributes:this.ignoreCSSAttributes});d&&(t.push({parentId:u,nextId:c,node:d}),n.add(d.id))};for(;this.mapRemoves.length;)this.mirror.removeNodeFromMap(this.mapRemoves.shift());for(const l of this.movedSet)a3(this.removes,l,this.mirror)&&!this.movedSet.has(l.parentNode)||o(l);for(const l of this.addedSet)!l3(this.droppedSet,l)&&!a3(this.removes,l,this.mirror)||l3(this.movedSet,l)?o(l):this.droppedSet.add(l);let s=null;for(;r.length;){let l=null;if(s){const u=this.mirror.getId(s.value.parentNode),c=i(s.value);u!==-1&&c!==-1&&(l=s)}if(!l){let u=r.tail;for(;u;){const c=u;if(u=u.previous,c){const d=this.mirror.getId(c.value.parentNode);if(i(c.value)===-1)continue;if(d!==-1){l=c;break}else{const p=c.value;if(p.parentNode&&p.parentNode.nodeType===Node.DOCUMENT_FRAGMENT_NODE){const h=p.parentNode.host;if(this.mirror.getId(h)!==-1){l=c;break}}}}}}if(!l){for(;r.head;)r.removeNode(r.head.value);break}s=l.previous,r.removeNode(l.value),o(l.value)}const a={texts:this.texts.map(l=>({id:this.mirror.getId(l.node),value:l.value})).filter(l=>!n.has(l.id)).filter(l=>this.mirror.has(l.id)),attributes:this.attributes.map(l=>{const{attributes:u}=l;if(typeof u.style=="string"){const c=JSON.stringify(l.styleDiff),d=JSON.stringify(l._unchangedStyles);c.length<u.style.length&&(c+d).split("var(").length===u.style.split("var(").length&&(u.style=l.styleDiff)}return{id:this.mirror.getId(l.node),attributes:u}}).filter(l=>!n.has(l.id)).filter(l=>this.mirror.has(l.id)),removes:this.removes,adds:t};!a.texts.length&&!a.attributes.length&&!a.removes.length&&!a.adds.length||(this.texts=[],this.attributes=[],this.attributeMap=new WeakMap,this.removes=[],this.addedSet=new Set,this.movedSet=new Set,this.droppedSet=new Set,this.movedMap={},this.mutationCb(a))},this.processMutation=t=>{if(!yy(t.target,this.mirror))switch(t.type){case"characterData":{const n=t.target.textContent;!ri(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)&&n!==t.oldValue&&this.texts.push({value:wc(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,this.maskAllText)&&n?this.maskTextFn?this.maskTextFn(n,Q7(t.target)):n.replace(/[\S]/g,"*"):n,node:t.target});break}case"attributes":{const n=t.target;let r=t.attributeName,i=t.target.getAttribute(r);if(r==="value"){const s=HC(n),a=n.tagName;i=Yv(n,a,s);const l=Z1({maskInputOptions:this.maskInputOptions,tagName:a,type:s}),u=wc(t.target,this.maskTextClass,this.maskTextSelector,this.unmaskTextClass,this.unmaskTextSelector,l);i=Xf({isMasked:u,element:n,value:i,maskInputFn:this.maskInputFn})}if(ri(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||i===t.oldValue)return;let o=this.attributeMap.get(t.target);if(n.tagName==="IFRAME"&&r==="src"&&!this.keepIframeSrcFn(i))if(!BC(n))r="rr_src";else return;if(o||(o={node:t.target,attributes:{},styleDiff:{},_unchangedStyles:{}},this.attributes.push(o),this.attributeMap.set(t.target,o)),r==="type"&&n.tagName==="INPUT"&&(t.oldValue||"").toLowerCase()==="password"&&n.setAttribute("data-rr-is-password","true"),!K7(n.tagName,r)&&(o.attributes[r]=q7(this.doc,Cc(n.tagName),Cc(r),i,n,this.maskAttributeFn),r==="style")){const s=t.oldValue?this.styleDeclarationParser.parse(t.oldValue):null;for(const a of Array.from(n.style)){const l=n.style.getPropertyValue(a),u=n.style.getPropertyPriority(a);l!==((s==null?void 0:s.getPropertyValue(a))||"")||u!==((s==null?void 0:s.getPropertyPriority(a)
651)||"")?u===""?o.styleDiff[a]=l:o.styleDiff[a]=[l,u]:o._unchangedStyles[a]=[l,u]}if(s)for(const a of Array.from(s))n.style.getPropertyValue(a)===""&&(o.styleDiff[a]=!1)}break}case"childList":{if(ri(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!0))return;t.addedNodes.forEach(n=>this.genAdds(n,t.target)),t.removedNodes.forEach(n=>{const r=this.mirror.getId(n),i=af(t.target)?this.mirror.getId(t.target.host):this.mirror.getId(t.target);ri(t.target,this.blockClass,this.blockSelector,this.unblockSelector,!1)||yy(n,this.mirror)||!ufe(n,this.mirror)||(this.addedSet.has(n)?(o2(this.addedSet,n),this.droppedSet.add(n)):this.addedSet.has(t.target)&&r===-1||e$(t.target,this.mirror)||(this.movedSet.has(n)&&this.movedMap[s3(r,i)]?o2(this.movedSet,n):this.removes.push({parentId:i,id:r,isShadow:af(t.target)&&lf(t.target)?!0:void 0})),this.mapRemoves.push(n))});break}}},this.genAdds=(t,n)=>{if(!this.processedNodeManager.inOtherBuffer(t,this)&&!(this.addedSet.has(t)||this.movedSet.has(t))){if(this.mirror.hasNode(t)){if(yy(t,this.mirror))return;this.movedSet.add(t);let r=null;n&&this.mirror.hasNode(n)&&(r=this.mirror.getId(n)),r&&r!==-1&&(this.movedMap[s3(this.mirror.getId(t),r)]=!0)}else this.addedSet.add(t),this.droppedSet.delete(t);ri(t,this.blockClass,this.blockSelector,this.unblockSelector,!1)||(t.childNodes&&t.childNodes.forEach(r=>this.genAdds(r)),i2(t)&&t.shadowRoot.childNodes.forEach(r=>{this.processedNodeManager.add(r,this),this.genAdds(r,t)}))}}}init(t){["mutationCb","blockClass","blockSelector","unblockSelector","maskAllText","maskTextClass","unmaskTextClass","maskTextSelector","unmaskTextSelector","inlineStylesheet","maskInputOptions","maskAttributeFn","maskTextFn","maskInputFn","keepIframeSrcFn","recordCanvas","inlineImages","slimDOMOptions","dataURLOptions","doc","mirror","iframeManager","stylesheetManager","shadowDomManager","canvasManager","processedNodeManager","ignoreCSSAttributes"].forEach(n=>{this[n]=t[n]}),this.styleDeclarationParser=new bfe(this.doc)}freeze(){this.frozen=!0,this.canvasManager.freeze()}unfreeze(){this.frozen=!1,this.canvasManager.unfreeze(),this.emit()}isFrozen(){return this.frozen}lock(){this.locked=!0,this.canvasManager.lock()}unlock(){this.locked=!1,this.canvasManager.unlock(),this.emit()}reset(){this.shadowDomManager.reset(),this.canvasManager.reset()}}function o2(e,t){var n;e.delete(t),(n=t.childNodes)==null||n.forEach(r=>o2(e,r))}function a3(e,t,n){return e.length===0?!1:Efe(e,t,n)}function Efe(e,t,n){let r=t.parentNode;for(;r;){const i=n.getId(r);if(e.some(o=>o.id===i))return!0;r=r.parentNode}return!1}function l3(e,t){return e.size===0?!1:o$(e,t)}function o$(e,t){const{parentNode:n}=t;return n?e.has(n)?!0:o$(e,n):!1}const Ou=[];function Up(e){try{if("composedPath"in e){const t=e.composedPath();if(t.length)return t[0]}else if("path"in e&&e.path.length)return e.path[0]}catch{}return e&&e.target}function s$(e,t){var s,a;const n=new Sfe;Ou.push(n),n.init(e);let r=window.MutationObserver||window.__rrMutationObserver;const i=(a=(s=window==null?void 0:window.Zone)==null?void 0:s.__symbol__)==null?void 0:a.call(s,"MutationObserver");i&&window[i]&&(r=window[i]);const o=new r(Rt(l=>{e.onMutation&&e.onMutation(l)===!1||n.processMutations.bind(n)(l)}));return o.observe(t,{attributes:!0,attributeOldValue:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0}),o}function Cfe({mousemoveCb:e,sampling:t,doc:n,mirror:r}){if(t.mousemove===!1)return()=>{};const i=typeof t.mousemove=="number"?t.mousemove:50,o=typeof t.mousemoveCallback=="number"?t.mousemoveCallback:500;let s=[],a;const l=Yf(Rt(d=>{const f=Date.now()-a;e(s.map(p=>(p.timeOffset-=f,p)),d),s=[],a=null}),o),u=Rt(Yf(Rt(d=>{const f=Up(d),{clientX:p,clientY:h}=r2(d)?d.changedTouches[0]:d;a||(a=Qv()),s.push({x:p,y:h,id:r.getId(f),timeOffset:Qv()-a}),l(typeof DragEvent<"u"&&d instanceof DragEvent?ft.Drag:d instanceof MouseEvent?ft.MouseMove:ft.TouchMove)}),i,{trailing:!1})),c=[Ir("mousemove",u,n),Ir("touchmove",u,n),Ir("drag",u,n)];return Rt(()=>{c.forEach(d=>d())})}function wfe({mouseInteractionCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:s}){if(s.mouseInteraction===!1)return()=>{};const a=s.mouseInteraction===!0||s.mouseInteraction===void 0?{}:s.mouseInteraction,l=[];let u=null;const c=d=>f=>{const p=Up(f);if(ri(p,r,i,o,!0))return;let h=null,m=d;if("pointerType"in f){switch(f.pointerType){case"mouse":h=es.Mouse;break;case"touch":h=es.Touch;break;case"pen":h=es.Pen;break}h===es.Touch?Sr[d]===Sr.MouseDown?m="TouchStart":Sr[d]===Sr.MouseUp&&(m="TouchEnd"):es.Pen}else r2(f)&&(h=es.Touch);h!==null?(u=h,(m.startsWith("Touch")&&h===es.Touch||m.startsWith("Mouse")&&h===es.Mouse)&&(h=null)):Sr[d]===Sr.Click&&(h=u,u=null);const v=r2(f)?f.changedTouches[0]:f;if(!v)return;const g=n.getId(p),{clientX:y,clientY:_}=v;Rt(e)({type:Sr[m],id:g,x:y,y:_,...h!==null&&{pointerType:h}})};return Object.keys(Sr).filter(d=>Number.isNaN(Number(d))&&!d.endsWith("_Departed")&&a[d]!==!1).forEac
vendor: 21,564 bytes, line 651
651h(d=>{let f=Cc(d);const p=c(d);if(window.PointerEvent)switch(Sr[d]){case Sr.MouseDown:case Sr.MouseUp:f=f.replace("mouse","pointer");break;case Sr.TouchStart:case Sr.TouchEnd:return}l.push(Ir(f,p,t))}),Rt(()=>{l.forEach(d=>d())})}function a$({scrollCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,sampling:s}){const a=Rt(Yf(Rt(l=>{const u=Up(l);if(!u||ri(u,r,i,o,!0))return;const c=n.getId(u);if(u===t&&t.defaultView){const d=Z7(t.defaultView);e({id:c,x:d.left,y:d.top})}else e({id:c,x:u.scrollLeft,y:u.scrollTop})}),s.scroll||100));return Ir("scroll",a,t)}function Tfe({viewportResizeCb:e},{win:t}){let n=-1,r=-1;const i=Rt(Yf(Rt(()=>{const o=Y7(),s=J7();(n!==o||r!==s)&&(e({width:Number(s),height:Number(o)}),n=o,r=s)}),200));return Ir("resize",i,t)}const Afe=["INPUT","TEXTAREA","SELECT"],u3=new WeakMap;function Ife({inputCb:e,doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,ignoreClass:s,ignoreSelector:a,maskInputOptions:l,maskInputFn:u,sampling:c,userTriggeredOnInput:d,maskTextClass:f,unmaskTextClass:p,maskTextSelector:h,unmaskTextSelector:m}){function v(E){let w=Up(E);const T=E.isTrusted,A=w&&t2(w.tagName);if(A==="OPTION"&&(w=w.parentElement),!w||!A||Afe.indexOf(A)<0||ri(w,r,i,o,!0))return;const L=w;if(L.classList.contains(s)||a&&L.matches(a))return;const x=HC(w);let k=Yv(L,A,x),M=!1;const z=Z1({maskInputOptions:l,tagName:A,type:x}),P=wc(w,f,h,p,m,z);(x==="radio"||x==="checkbox")&&(M=w.checked),k=Xf({isMasked:P,element:w,value:k,maskInputFn:u}),g(w,d?{text:k,isChecked:M,userTriggered:T}:{text:k,isChecked:M});const H=w.name;x==="radio"&&H&&M&&t.querySelectorAll(`input[type="radio"][name="${H}"]`).forEach(q=>{if(q!==w){const de=Xf({isMasked:P,element:q,value:Yv(q,A,x),maskInputFn:u});g(q,d?{text:de,isChecked:!M,userTriggered:!1}:{text:de,isChecked:!M})}})}function g(E,w){const T=u3.get(E);if(!T||T.text!==w.text||T.isChecked!==w.isChecked){u3.set(E,w);const A=n.getId(E);Rt(e)({...w,id:A})}}const _=(c.input==="last"?["change"]:["input","change"]).map(E=>Ir(E,Rt(v),t)),b=t.defaultView;if(!b)return()=>{_.forEach(E=>E())};const S=b.Object.getOwnPropertyDescriptor(b.HTMLInputElement.prototype,"value"),C=[[b.HTMLInputElement.prototype,"value"],[b.HTMLInputElement.prototype,"checked"],[b.HTMLSelectElement.prototype,"value"],[b.HTMLTextAreaElement.prototype,"value"],[b.HTMLSelectElement.prototype,"selectedIndex"],[b.HTMLOptionElement.prototype,"selected"]];return S&&S.set&&_.push(...C.map(E=>X7(E[0],E[1],{set(){Rt(v)({target:this,isTrusted:!1})}},!1,b))),Rt(()=>{_.forEach(E=>E())})}function eg(e){const t=[];function n(r,i){if(Nh("CSSGroupingRule")&&r.parentRule instanceof CSSGroupingRule||Nh("CSSMediaRule")&&r.parentRule instanceof CSSMediaRule||Nh("CSSSupportsRule")&&r.parentRule instanceof CSSSupportsRule||Nh("CSSConditionRule")&&r.parentRule instanceof CSSConditionRule){const s=Array.from(r.parentRule.cssRules).indexOf(r);i.unshift(s)}else if(r.parentStyleSheet){const s=Array.from(r.parentStyleSheet.cssRules).indexOf(r);i.unshift(s)}return i}return n(e,t)}function zs(e,t,n){let r,i;return e?(e.ownerNode?r=t.getId(e.ownerNode):i=n.getId(e),{styleId:i,id:r}):{}}function xfe({styleSheetRuleCb:e,mirror:t,stylesheetManager:n},{win:r}){if(!r.CSSStyleSheet||!r.CSSStyleSheet.prototype)return()=>{};const i=r.CSSStyleSheet.prototype.insertRule;r.CSSStyleSheet.prototype.insertRule=new Proxy(i,{apply:Rt((c,d,f)=>{const[p,h]=f,{id:m,styleId:v}=zs(d,t,n.styleMirror);return(m&&m!==-1||v&&v!==-1)&&e({id:m,styleId:v,adds:[{rule:p,index:h}]}),c.apply(d,f)})});const o=r.CSSStyleSheet.prototype.deleteRule;r.CSSStyleSheet.prototype.deleteRule=new Proxy(o,{apply:Rt((c,d,f)=>{const[p]=f,{id:h,styleId:m}=zs(d,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,removes:[{index:p}]}),c.apply(d,f)})});let s;r.CSSStyleSheet.prototype.replace&&(s=r.CSSStyleSheet.prototype.replace,r.CSSStyleSheet.prototype.replace=new Proxy(s,{apply:Rt((c,d,f)=>{const[p]=f,{id:h,styleId:m}=zs(d,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replace:p}),c.apply(d,f)})}));let a;r.CSSStyleSheet.prototype.replaceSync&&(a=r.CSSStyleSheet.prototype.replaceSync,r.CSSStyleSheet.prototype.replaceSync=new Proxy(a,{apply:Rt((c,d,f)=>{const[p]=f,{id:h,styleId:m}=zs(d,t,n.styleMirror);return(h&&h!==-1||m&&m!==-1)&&e({id:h,styleId:m,replaceSync:p}),c.apply(d,f)})}));const l={};Hh("CSSGroupingRule")?l.CSSGroupingRule=r.CSSGroupingRule:(Hh("CSSMediaRule")&&(l.CSSMediaRule=r.CSSMediaRule),Hh("CSSConditionRule")&&(l.CSSConditionRule=r.CSSConditionRule),Hh("CSSSupportsRule")&&(l.CSSSupportsRule=r.CSSSupportsRule));const u={};return Object.entries(l).forEach(([c,d])=>{u[c]={insertRule:d.prototype.insertRule,deleteRule:d.prototype.deleteRule},d.prototype.insertRule=new Proxy(u[c].insertRule,{apply:Rt((f,p,h)=>{const[m,v]=h,{id:g,styleId:y}=zs(p.parentStyleSheet,t,n.styleMirror);return(g&&g!==-1||y&&y!==-1)&&e({id:g,styleId:y,adds:[{rule:m,index:[...eg(p),v||0]}]}),f.apply(p,h)})}),d.prototype.deleteRule=new Proxy(u[c].deleteRule,{apply:Rt((f,p,h)=>{const[m]=h,{id:v,styleId:g}=zs(p.parentStyleSheet,t,n.styleMirror);return(v&&v!==-1||g&&g!==-1)&&e({id:v,styleId:g,removes:[{index:[...eg(p),m]}]}),f.apply(p,h)})})}),Rt(()=>{r.CSSStyleSheet.prototype.insertRule=i,r.CSSStyleSheet.prototype.deleteRule=o,s&&(r.CSSStyleSheet.prototype.replace=s),a&&(r.CSSStyleSheet.prototype.replaceSync=a),Object.entries(l).forEach(([c,d])=>{d.prototype.insertRule=u[c].insertRule,d.prototype.deleteRule=u[c].deleteRule})})}function l$({mirror:e,stylesheetManager:t},n){var s,a,l;let r=null;n.nodeName==="#document"?r=e.getId(n):r=e.getId(n.host);const i=n.nodeName==="#document"?(s=n.defaultView)==null?void 0:s.Document:(l=(a=n.ownerDocument)==null?void 0:a.defaultView)==null?void 0:l.ShadowRoot,o=i!=null&&i.prototype?Object.getOwnPropertyDescriptor(i==null?void 0:i.prototype,"adoptedStyleSheets"):void 0;return r===null||r===-1||!i||!o?()=>{}:(Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get(){var u;return(u=o.get)==null?void 0:u.call(this)},set(u){var d;const c=(d=o.set)==null?void 0:d.call(this,u);if(r!==null&&r!==-1)try{t.adoptStyleSheets(u,r)}catch{}return c}}),Rt(()=>{Object.defineProperty(n,"adoptedStyleSheets",{configurable:o.configurable,enumerable:o.enumerable,get:o.get,set:o.set})}))}function Lfe({styleDeclarationCb:e,mirror:t,ignoreCSSAttributes:n,stylesheetManager:r},{win:i}){const o=i.CSSStyleDeclaration.prototype.setProperty;i.CSSStyleDeclaration.prototype.setProperty=new Proxy(o,{apply:Rt((a,l,u)=>{var m;const[c,d,f]=u;if(n.has(c))return o.apply(l,[c,d,f]);const{id:p,styleId:h}=zs((m=l.parentRule)==null?void 0:m.parentStyleSheet,t,r.styleMirror);return(p&&p!==-1||h&&h!==-1)&&e({id:p,styleId:h,set:{property:c,value:d,priority:f},index:eg(l.parentRule)}),a.apply(l,u)})});const s=i.CSSStyleDeclaration.prototype.removeProperty;return i.CSSStyleDeclaration.prototype.removeProperty=new Proxy(s,{apply:Rt((a,l,u)=>{var p;const[c]=u;if(n.has(c))return s.apply(l,[c]);const{id:d,styleId:f}=zs((p=l.parentRule)==null?void 0:p.parentStyleSheet,t,r.styleMirror);return(d&&d!==-1||f&&f!==-1)&&e({id:d,styleId:f,remove:{property:c},index:eg(l.parentRule)}),a.apply(l,u)})}),Rt(()=>{i.CSSStyleDeclaration.prototype.setProperty=o,i.CSSStyleDeclaration.prototype.removeProperty=s})}function kfe({mediaInteractionCb:e,blockClass:t,blockSelector:n,unblockSelector:r,mirror:i,sampling:o,doc:s}){const a=Rt(u=>Yf(Rt(c=>{const d=Up(c);if(!d||ri(d,t,n,r,!0))return;const{currentTime:f,volume:p,muted:h,playbackRate:m}=d;e({type:u,id:i.getId(d),currentTime:f,volume:p,muted:h,playbackRate:m})}),o.media||500)),l=[Ir("play",a(Au.Play),s),Ir("pause",a(Au.Pause),s),Ir("seeked",a(Au.Seeked),s),Ir("volumechange",a(Au.VolumeChange),s),Ir("ratechange",a(Au.RateChange),s)];return Rt(()=>{l.forEach(u=>u())})}function Mfe({fontCb:e,doc:t}){const n=t.defaultView;if(!n)return()=>{};const r=[],i=new WeakMap,o=n.FontFace;n.FontFace=function(l,u,c){const d=new o(l,u,c);return i.set(d,{family:l,buffer:typeof u!="string",descriptors:c,fontSource:typeof u=="string"?u:JSON.stringify(Array.from(new Uint8Array(u)))}),d};const s=VC(t.fonts,"add",function(a){return function(l){return J1(Rt(()=>{const u=i.get(l);u&&(e(u),i.delete(l))}),0),a.apply(this,[l])}});return r.push(()=>{n.FontFace=o}),r.push(s),Rt(()=>{r.forEach(a=>a())})}function Rfe(e){const{doc:t,mirror:n,blockClass:r,blockSelector:i,unblockSelector:o,selectionCb:s}=e;let a=!0;const l=Rt(()=>{const u=t.getSelection();if(!u||a&&(u!=null&&u.isCollapsed))return;a=u.isCollapsed||!1;const c=[],d=u.rangeCount||0;for(let f=0;f<d;f++){const p=u.getRangeAt(f),{startContainer:h,startOffset:m,endContainer:v,endOffset:g}=p;ri(h,r,i,o,!0)||ri(v,r,i,o,!0)||c.push({start:n.getId(h),startOffset:m,end:n.getId(v),endOffset:g})}s({ranges:c})});return l(),Ir("selectionchange",l)}function Pfe({doc:e,customElementCb:t}){const n=e.defaultView;return!n||!n.customElements?()=>{}:VC(n.customElements,"define",function(i){return function(o,s,a){try{t({define:{name:o}})}catch{}return i.apply(this,[o,s,a])}})}function Ofe(e,t={}){const n=e.doc.defaultView;if(!n)return()=>{};let r;e.recordDOM&&(r=s$(e,e.doc));const i=Cfe(e),o=wfe(e),s=a$(e),a=Tfe(e,{win:n}),l=Ife(e),u=kfe(e);let c=()=>{},d=()=>{},f=()=>{},p=()=>{};e.recordDOM&&(c=xfe(e,{win:n}),d=l$(e,e.doc),f=Lfe(e,{win:n}),e.collectFonts&&(p=Mfe(e)));const h=Rfe(e),m=Pfe(e),v=[];for(const g of e.plugins)v.push(g.observer(g.callback,n,g.options));return Rt(()=>{Ou.forEach(g=>g.reset()),r==null||r.disconnect(),i(),o(),s(),a(),l(),u(),c(),d(),f(),p(),h(),m(),v.forEach(g=>g())})}function Nh(e){return typeof window[e]<"u"}function Hh(e){return!!(typeof window[e]<"u"&&window[e].prototype&&"insertRule"in window[e].prototype&&"deleteRule"in window[e].prototype)}class s2{constructor(t){this.generateIdFn=t,this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap}getId(t,n,r,i){const o=r||this.getIdToRemoteIdMap(t),s=i||this.getRemoteIdToIdMap(t);let a=o.get(n);return a||(a=this.generateIdFn(),o.set(n,a),s.set(a,n)),a}getIds(t,n){const r=this.getIdToRemoteIdMap(t),i=this.getRemoteIdToIdMap(t);return n.map(o=>this.getId(t,o,r,i))}getRemoteId(t,n,r){const i=r||this.getRemoteIdToIdMap(t);if(typeof n!="number")return n;const o=i.get(n);return o||-1}getRemoteIds(t,n){const r=this.getRemoteIdToIdMap(t);return n.map(i=>this.getRemoteId(t,i,r))}reset(t){if(!t){this.iframeIdToRemoteIdMap=new WeakMap,this.iframeRemoteIdToIdMap=new WeakMap;return}this.iframeIdToRemoteIdMap.delete(t),this.iframeRemoteIdToIdMap.delete(t)}getIdToRemoteIdMap(t){let n=this.iframeIdToRemoteIdMap.get(t);return n||(n=new Map,this.iframeIdToRemoteIdMap.set(t,n)),n}getRemoteIdToIdMap(t){let n=this.iframeRemoteIdToIdMap.get(t);return n||(n=new Map,this.iframeRemoteIdToIdMap.set(t,n)),n}}class $fe{constructor(){this.crossOriginIframeMirror=new s2(DC),this.crossOriginIframeRootIdMap=new WeakMap}addIframe(){}addLoadListener(){}attachIframe(){}}class Nfe{constructor(t){this.iframes=new WeakMap,this.crossOriginIframeMap=new WeakMap,this.crossOriginIframeMirror=new s2(DC),this.crossOriginIframeRootIdMap=new WeakMap,this.mutationCb=t.mutationCb,this.wrappedEmit=t.wrappedEmit,this.stylesheetManager=t.stylesheetManager,this.recordCrossOriginIframes=t.recordCrossOriginIframes,this.crossOriginIframeStyleMirror=new s2(this.stylesheetManager.styleMirror.generateId.bind(this.stylesheetManager.styleMirror)),this.mirror=t.mirror,this.recordCrossOriginIframes&&window.addEventListener("message",this.handleMessage.bind(this))}addIframe(t){this.iframes.set(t,!0);const n=Jf(t);n&&this.crossOriginIframeMap.set(n,t)}addLoadListener(t){this.loadListener=t}attachIframe(t,n){var i,o;this.mutationCb({adds:[{parentId:this.mirror.getId(t),nextId:null,node:n}],removes:[],texts:[],attributes:[],isAttachIframe:!0}),this.recordCrossOriginIframes&&((i=Jf(t))==null||i.addEventListener("message",this.handleMessage.bind(this))),(o=this.loadListener)==null||o.call(this,t);const r=BC(t);r&&r.adoptedStyleSheets&&r.adoptedStyleSheets.length>0&&this.stylesheetManager.adoptStyleSheets(r.adoptedStyleSheets,this.mirror.getId(r))}handleMessage(t){const n=t;if(n.data.type!=="rrweb"||n.origin!==n.data.origin||!t.source)return;const i=this.crossOriginIframeMap.get(t.source);if(!i)return;const o=this.transformCrossOriginEvent(i,n.data.event);o&&this.wrappedEmit(o,n.data.isCheckout)}transformCrossOriginEvent(t,n){var r;switch(n.type){case gt.FullSnapshot:{this.crossOriginIframeMirror.reset(t),this.crossOriginIframeStyleMirror.reset(t),this.replaceIdOnNode(n.data.node,t);const i=n.data.node.id;return this.crossOriginIframeRootIdMap.set(t,i),this.patchRootIdOnNode(n.data.node,i),{timestamp:n.timestamp,type:gt.IncrementalSnapshot,data:{source:ft.Mutation,adds:[{parentId:this.mirror.getId(t),nextId:null,node:n.data.node}],removes:[],texts:[],attributes:[],isAttachIframe:!0}}}case gt.Meta:case gt.Load:case gt.DomContentLoaded:return!1;case gt.Plugin:return n;case gt.Custom:return this.replaceIds(n.data.payload,t,["id","parentId","previousId","nextId"]),n;case gt.IncrementalSnapshot:switch(n.data.source){case ft.Mutation:return n.data.adds.forEach(i=>{this.replaceIds(i,t,["parentId","nextId","previousId"]),this.replaceIdOnNode(i.node,t);const o=this.crossOriginIframeRootIdMap.get(t);o&&this.patchRootIdOnNode(i.node,o)}),n.data.removes.forEach(i=>{this.replaceIds(i,t,["parentId","id"])}),n.data.attributes.forEach(i=>{this.replaceIds(i,t,["id"])}),n.data.texts.forEach(i=>{this.replaceIds(i,t,["id"])}),n;case ft.Drag:case ft.TouchMove:case ft.MouseMove:return n.data.positions.forEach(i=>{this.replaceIds(i,t,["id"])}),n;case ft.ViewportResize:return!1;case ft.MediaInteraction:case ft.MouseInteraction:case ft.Scroll:case ft.CanvasMutation:case ft.Input:return this.replaceIds(n.data,t,["id"]),n;case ft.StyleSheetRule:case ft.StyleDeclaration:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleId"]),n;case ft.Font:return n;case ft.Selection:return n.data.ranges.forEach(i=>{this.replaceIds(i,t,["start","end"])}),n;case ft.AdoptedStyleSheet:return this.replaceIds(n.data,t,["id"]),this.replaceStyleIds(n.data,t,["styleIds"]),(r=n.data.styles)==null||r.forEach(i=>{this.replaceStyleIds(i,t,["styleId"])}),n}}return!1}replace(t,n,r,i){for(const o of i)!Array.isArray(n[o])&&typeof n[o]!="number"||(Array.isArray(n[o])?n[o]=t.getIds(r,n[o]):n[o]=t.getId(r,n[o]));return n}replaceIds(t,n,r){return this.replace(this.crossOriginIframeMirror,t,n,r)}replaceStyleIds(t,n,r){return this.replace(this.crossOriginIframeStyleMirror,t,n,r)}replaceIdOnNode(t,n){this.replaceIds(t,n,["id","rootId"]),"childNodes"in t&&t.childNodes.forEach(r=>{this.replaceIdOnNode(r,n)})}patchRootIdOnNode(t,n){t.type!==Vn.Document&&!t.rootId&&(t.rootId=n),"childNodes"in t&&t.childNodes.forEach(r=>{this.patchRootIdOnNode(r,n)})}}class Hfe{init(){}addShadowRoot(){}observeAttachShadow(){}reset(){}}class Dfe{constructor(t){this.shadowDoms=new WeakSet,this.restoreHandlers=[],this.mutationCb=t.mutationCb,this.scrollCb=t.scrollCb,this.bypassOptions=t.bypassOptions,this.mirror=t.mirror,this.init()}init(){this.reset(),this.patchAttachShadow(Element,document)}addShadowRoot(t,n){if(!lf(t)||this.shadowDoms.has(t))return;this.shadowDoms.add(t),this.bypassOptions.canvasManager.addShadowRoot(t);const r=s$({...this.bypassOptions,doc:n,mutationCb:this.mutationCb,mirror:this.mirror,shadowDomManager:this},t);this.restoreHandlers.push(()=>r.disconnect()),this.restoreHandlers.push(a$({...this.bypassOptions,scrollCb:this.scrollCb,doc:t,mirror:this.mirror})),J1(()=>{t.adoptedStyleSheets&&t.adoptedStyleSheets.length>0&&this.bypassOptions.stylesheetManager.adoptStyleSheets(t.adoptedStyleSheets,this.mirror.getId(t.host)),this.restoreHandlers.push(l$({mirror:this.mirror,stylesheetManager:this.bypassOptions.stylesheetManager},t))},0)}observeAttachShadow(t){const n=BC(t),r=Jf(t);!n||!r||this.patchAttachShadow(r.Element,n)}patchAttachShadow(t,n){const r=this;this.restoreHandlers.push(VC(t.prototype,"attachShadow",function(i){return function(o){const s=i.call(this,o);return this.shadowRoot&&i$(this)&&r.addShadowRoot(this.shadowRoot,n),s}}))}reset(){this.restoreHandlers.forEach(t=>{try{t()}catch{}}),this.restoreHandlers=[],this.shadowDoms=new WeakSet,this.bypassOptions.canvasManager.resetShadowRoots()}}class Vfe{constructor(t){this.trackedLinkElements=new WeakSet,this.styleMirror=new dfe,this.mutationCb=t.mutationCb,this.adoptedStyleSheetCb=t.adoptedStyleSheetCb}attachLinkElement(t,n){"_cssText"in n.attributes&&this.mutationCb({adds:[],removes:[],texts:[],attributes:[{id:n.id,attributes:n.attributes}]}),this.trackLinkElement(t)}trackLinkElement(t){this.trackedLinkElements.has(t)||(this.trackedLinkElements.add(t),this.trackStylesheetInLinkElement(t))}adoptStyleSheets(t,n){if(t.length===0)return;const r={id:n,styleIds:[]},i=[];for(const o of t){let s;this.styleMirror.has(o)?s=this.styleMirror.getId(o):(s=this.styleMirror.add(o),i.push({styleId:s,rules:Array.from(o.rules||CSSRule,(a,l)=>({rule:B7(a),index:l}))})),r.styleIds.push(s)}i.length>0&&(r.styles=i),this.adoptedStyleSheetCb(r)}reset(){this.styleMirror.reset(),this.trackedLinkElements=new WeakSet}trackStylesheetInLinkElement(t){}}class Ffe{constructor(){this.nodeMap=new WeakMap,this.active=!1}inOtherBuffer(t,n){const r=this.nodeMap.get(t);return r&&Array.from(r).some(i=>i!==n)}add(t,n){this.active||(this.active=!0,hfe(()=>{this.nodeMap=new WeakMap,this.active=!1})),this.nodeMap.set(t,(this.nodeMap.get(t)||new Set).add(n))}destroy(){}}let Cn,tg;var FM;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((FM=e.contentWindow)==null?void 0:FM.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}const Ui=Hde();function no(e={}){const{emit:t,checkoutEveryNms:n,checkoutEveryNth:r,blockClass:i="rr-block",blockSelector:o=null,unblockSelector:s=null,ignoreClass:a="rr-ignore",ignoreSelector:l=null,maskAllText:u=!1,maskTextClass:c="rr-mask",unmaskTextClass:d=null,maskTextSelector:f=null,unmaskTextSelector:p=null,inlineStylesheet:h=!0,maskAllInputs:m,maskInputOptions:v,slimDOMOptions:g,maskAttributeFn:y,maskInputFn:_,maskTextFn:b,maxCanvasSize:S=null,packFn:C,sampling:E={},dataURLOptions:w={},mousemoveWait:T,recordDOM:A=!0,recordCanvas:L=!1,recordCrossOriginIframes:x=!1,recordAfter:k=e.recordAfter==="DOMContentLoaded"?e.recordAfter:"load",userTriggeredOnInput:M=!1,collectFonts:z=!1,inlineImages:P=!1,plugins:H,keepIframeSrcFn:q=()=>!1,ignoreCSSAttributes:de=new Set([]),errorHandler:se,onMutation:W,getCanvasManager:V}=e;vfe(se);const B=x?window.parent===window:!0;let Y=!1;if(!B)try{window.parent.document&&(Y=!1)}catch{Y=!0}if(B&&!t)throw new Error("emit function is required");if(!B&&!Y)return()=>{};T!==void 0&&E.mousemove===void 0&&(E.mousemove=T),Ui.reset();const F=m===!0?{color:!0,date:!0,"datetime-local":!0,email:!0,month:!0,number:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0,textarea:!0,select:!0,radio:!0,checkbox:!0}:v!==void 0?v:{},Q=g===!0||g==="all"?{script:!0,comment:!0,headFavicon:!0,headWhitespace:!0,headMetaSocial:!0,headMetaRobots:!0,headMetaHttpEquiv:!0,headMetaVerification:!0,headMetaAuthorship:g==="all",headMetaDescKeywords:g==="all"}:g||{};cfe();let re,be=0;const Le=te=>{for(const le of H||[])le.eventProcessor&&(te=le.eventProcessor(te));return C&&!Y&&(te=C(te)),te};Cn=(te,le)=>{var D;const ye=te;if(ye.timestamp=Qv(),(D=Ou[0])!=null&&D.isFrozen()&&ye.type!==gt.FullSnapshot&&!(ye.type===gt.IncrementalSnapshot&&ye.data.source===ft.Mutation)&&Ou.forEach(j=>j.unfreeze()),B)t==null||t(Le(ye),le);else if(Y){const j={type:"rrweb",event:Le(ye),origin:window.location.origin,isCheckout:le};window.parent.postMessage(j,"*")}if(ye.type===gt.FullSnapshot)re=ye,be=0;else if(ye.type===gt.IncrementalSnapshot){if(ye.data.source===ft.Mutation&&ye.data.isAttachIframe)return;be++;const j=r&&be>=r,Z=n&&re&&ye.timestamp-re.timestamp>n;(j||Z)&&Ae(!0)}};const Me=te=>{Cn({type:gt.IncrementalSnapshot,data:{source:ft.Mutation,...te}})},He=te=>Cn({type:gt.IncrementalSnapshot,data:{source:ft.Scroll,...te}}),$=te=>Cn({type:gt.IncrementalSnapshot,data:{source:ft.CanvasMutation,...te}}),U=te=>Cn({type:gt.IncrementalSnapshot,data:{source:ft.AdoptedStyleSheet,...te}}),ee=new Vfe({mutationCb:Me,adoptedStyleSheetCb:U}),ce=typeof __RRWEB_EXCLUDE_IFRAME__=="boolean"&&__RRWEB_EXCLUDE_IFRAME__?new $fe:new Nfe({mirror:Ui,mutationCb:Me,stylesheetManager:ee,recordCrossOriginIframes:x,wrappedEmit:Cn});for(const te of H||[])te.getMirror&&te.getMirror({nodeMirror:Ui,crossOriginIframeMirror:ce.crossOriginIframeMirror,crossOriginIframeStyleMirror:ce.crossOriginIframeStyleMirror});const me=new Ffe,Ce=Ufe(V,{mirror:Ui,win:window,mutationCb:te=>Cn({type:gt.IncrementalSnapshot,data:{source:ft.CanvasMutation,...te}}),recordCanvas:L,blockClass:i,blockSelector:o,unblockSelector:s,maxCanvasSize:S,sampling:E.canvas,dataURLOptions:w,errorHandler:se}),xe=typeof __RRWEB_EXCLUDE_SHADOW_DOM__=="boolean"&&__RRWEB_EXCLUDE_SHADOW_DOM__?new Hfe:new Dfe({mutationCb:Me,scrollCb:He,bypassOptions:{onMutation:W,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:u,maskTextClass:c,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskInputOptions:F,dataURLOptions:w,maskAttributeFn:y,maskTextFn:b,maskInputFn:_,recordCanvas:L,inlineImages:P,sampling:E,slimDOMOptions:Q,iframeManager:ce,stylesheetManager:ee,canvasManager:Ce,keepIframeSrcFn:q,processedNodeManager:me,ignoreCSSAttributes:de},mirror:Ui}
651),Ae=(te=!1)=>{if(!A)return;Cn({type:gt.Meta,data:{href:window.location.href,width:J7(),height:Y7()}},te),ee.reset(),xe.init(),Ou.forEach(ye=>ye.lock());const le=lfe(document,{mirror:Ui,blockClass:i,blockSelector:o,unblockSelector:s,maskAllText:u,maskTextClass:c,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,inlineStylesheet:h,maskAllInputs:F,maskAttributeFn:y,maskInputFn:_,maskTextFn:b,slimDOM:Q,dataURLOptions:w,recordCanvas:L,inlineImages:P,onSerialize:ye=>{t$(ye,Ui)&&ce.addIframe(ye),n$(ye,Ui)&&ee.trackLinkElement(ye),i2(ye)&&xe.addShadowRoot(ye.shadowRoot,document)},onIframeLoad:(ye,D)=>{ce.attachIframe(ye,D);const j=Jf(ye);j&&Ce.addWindow(j),xe.observeAttachShadow(ye)},onStylesheetLoad:(ye,D)=>{ee.attachLinkElement(ye,D)},onBlockedImageLoad:(ye,D,{width:j,height:Z})=>{Me({adds:[],removes:[],texts:[],attributes:[{id:D.id,attributes:{style:{width:`${j}px`,height:`${Z}px`}}}]})},keepIframeSrcFn:q,ignoreCSSAttributes:de});if(!le)return console.warn("Failed to snapshot the document");Cn({type:gt.FullSnapshot,data:{node:le,initialOffset:Z7(window)}}),Ou.forEach(ye=>ye.unlock()),document.adoptedStyleSheets&&document.adoptedStyleSheets.length>0&&ee.adoptStyleSheets(document.adoptedStyleSheets,Ui.getId(document))};tg=Ae;try{const te=[],le=D=>{var j;return Rt(Ofe)({onMutation:W,mutationCb:Me,mousemoveCb:(Z,_e)=>Cn({type:gt.IncrementalSnapshot,data:{source:_e,positions:Z}}),mouseInteractionCb:Z=>Cn({type:gt.IncrementalSnapshot,data:{source:ft.MouseInteraction,...Z}}),scrollCb:He,viewportResizeCb:Z=>Cn({type:gt.IncrementalSnapshot,data:{source:ft.ViewportResize,...Z}}),inputCb:Z=>Cn({type:gt.IncrementalSnapshot,data:{source:ft.Input,...Z}}),mediaInteractionCb:Z=>Cn({type:gt.IncrementalSnapshot,data:{source:ft.MediaInteraction,...Z}}),styleSheetRuleCb:Z=>Cn({type:gt.IncrementalSnapshot,data:{source:ft.StyleSheetRule,...Z}}),styleDeclarationCb:Z=>Cn({type:gt.IncrementalSnapshot,data:{source:ft.StyleDeclaration,...Z}}),canvasMutationCb:$,fontCb:Z=>Cn({type:gt.IncrementalSnapshot,data:{source:ft.Font,...Z}}),selectionCb:Z=>{Cn({type:gt.IncrementalSnapshot,data:{source:ft.Selection,...Z}})},customElementCb:Z=>{Cn({type:gt.IncrementalSnapshot,data:{source:ft.CustomElement,...Z}})},blockClass:i,ignoreClass:a,ignoreSelector:l,maskAllText:u,maskTextClass:c,unmaskTextClass:d,maskTextSelector:f,unmaskTextSelector:p,maskInputOptions:F,inlineStylesheet:h,sampling:E,recordDOM:A,recordCanvas:L,inlineImages:P,userTriggeredOnInput:M,collectFonts:z,doc:D,maskAttributeFn:y,maskInputFn:_,maskTextFn:b,keepIframeSrcFn:q,blockSelector:o,unblockSelector:s,slimDOMOptions:Q,dataURLOptions:w,mirror:Ui,iframeManager:ce,stylesheetManager:ee,shadowDomManager:xe,processedNodeManager:me,canvasManager:Ce,ignoreCSSAttributes:de,plugins:((j=H==null?void 0:H.filter(Z=>Z.observer))==null?void 0:j.map(Z=>({observer:Z.observer,options:Z.options,callback:_e=>Cn({type:gt.Plugin,data:{plugin:Z.name,payload:_e}})})))||[]},{})};ce.addLoadListener(D=>{try{te.push(le(D.contentDocument))}catch(j){console.warn(j)}});const ye=()=>{Ae(),te.push(le(document))};return document.readyState==="interactive"||document.readyState==="complete"?ye():(te.push(Ir("DOMContentLoaded",()=>{Cn({type:gt.DomContentLoaded,data:{}}),k==="DOMContentLoaded"&&ye()})),te.push(Ir("load",()=>{Cn({type:gt.Load,data:{}}),k==="load"&&ye()},window))),()=>{te.forEach(D=>D()),me.destroy(),tg=void 0,gfe()}}catch(te){console.warn(te)}}function Bfe(e){if(!tg)throw new Error("please take full snapshot after start recording");tg(e)}no.mirror=Ui;no.takeFullSnapshot=Bfe;function Ufe(e,t){try{return e?e(t):new i3}catch{return console.warn("Unable to initialize CanvasManager"),new i3}}var c3;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(c3||(c3={}));const jfe=3,Wfe=5;function UC(e){return e>9999999999?e:e*1e3}function by(e){return e>9999999999?e/1e3:e}function jp(e,t){t.category!=="sentry.transaction"&&(["ui.click","ui.input"].includes(t.category)?e.triggerUserActivity():e.checkAndHandleExpiredSession(),e.addUpdate(()=>
651(e.throttledAddEvent({type:gt.Custom,timestamp:(t.timestamp||0)*1e3,data:{tag:"breadcrumb",payload:Fn(t,10,1e3)}}),t.category==="console")))}const Gfe="button,a";function u$(e){return e.closest(Gfe)||e}function c$(e){const t=d$(e);return!t||!(t instanceof Element)?t:u$(t)}function d$(e){return zfe(e)?e.target:e}function zfe(e){return Ii(e)&&"target"in e}let qs;function qfe(e){return qs||(qs=[],Kfe()),qs.push(e),()=>{const t=qs?qs.indexOf(e):-1;t>-1&&qs.splice(t,1)}}function Kfe(){tr(tn,"open",function(e){return function(...t){if(qs)try{qs.forEach(n=>n())}catch{}return e.apply(tn,t)}})}const Xfe=new Set([ft.Mutation,ft.StyleSheetRule,ft.StyleDeclaration,ft.AdoptedStyleSheet,ft.CanvasMutation,ft.Selection,ft.MediaInteraction]);function Zfe(e,t,n){e.handleClick(t,n)}class Yfe{constructor(t,n,r=jp){this._lastMutation=0,this._lastScroll=0,this._clicks=[],this._timeout=n.timeout/1e3,this._threshold=n.threshold/1e3,this._scrollTimeout=n.scrollTimeout/1e3,this._replay=t,this._ignoreSelector=n.ignoreSelector,this._addBreadcrumbEvent=r}addListeners(){const t=qfe(()=>{this._lastMutation=d3()});this._teardown=()=>{t(),this._clicks=[],this._lastMutation=0,this._lastScroll=0}}removeListeners(){this._teardown&&this._teardown(),this._checkClickTimeout&&clearTimeout(this._checkClickTimeout)}handleClick(t,n){if(Qfe(n,this._ignoreSelector)||!epe(t))return;const r={timestamp:by(t.timestamp),clickBreadcrumb:t,clickCount:0,node:n};this._clicks.some(i=>i.node===r.node&&Math.abs(i.timestamp-r.timestamp)<1)||(this._clicks.push(r),this._clicks.length===1&&this._scheduleCheckClicks())}registerMutation(t=Date.now()){this._lastMutation=by(t)}registerScroll(t=Date.now()){this._lastScroll=by(t)}registerClick(t){const n=u$(t);this._handleMultiClick(n)}_handleMultiClick(t){this._getClicks(t).forEach(n=>{n.clickCount++})}_getClicks(t){return this._clicks.filter(n=>n.node===t)}_checkClicks(){const t=[],n=d3();this._clicks.forEach(r=>{!r.mutationAfter&&this._lastMutation&&(r.mutationAfter=r.timestamp<=this._lastMutation?this._lastMutation-r.timestamp:void 0),!r.scrollAfter&&this._lastScroll&&(r.scrollAfter=r.timestamp<=this._lastScroll?this._lastScroll-r.timestamp:void 0),r.timestamp+this._timeout<=n&&t.push(r)});for(const r of t){const i=this._clicks.indexOf(r);i>-1&&(this._generateBreadcrumbs(r),this._clicks.splice(i,1))}this._clicks.length&&this._scheduleCheckClicks()}_generateBreadcrumbs(t){const n=this._replay,r=t.scrollAfter&&t.scrollAfter<=this._scrollTimeout,i=t.mutationAfter&&t.mutationAfter<=this._threshold,o=!r&&!i,{clickCount:s,clickBreadcrumb:a}=t;if(o){const l=Math.min(t.mutationAfter||this._timeout,this._timeout)*1e3,u=l<this._timeout*1e3?"mutation":"timeout",c={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.slowClickDetected",data:{...a.data,url:tn.location.href,route:n.getCurrentRoute(),timeAfterClickMs:l,endReason:u,clickCount:s||1}};this._addBreadcrumbEvent(n,c);return}if(s>1){const l={type:"default",message:a.message,timestamp:a.timestamp,category:"ui.multiClick",data:{...a.data,url:tn.location.href,route:n.getCurrentRoute(),clickCount:s,metric:!0}};this._addBreadcrumbEvent(n,l)}}_scheduleCheckClicks(){this._checkClickTimeout&&clearTimeout(this._checkClickTimeout),this._checkClickTimeout=Bp(()=>this._checkClicks(),1e3)}}const Jfe=["A","BUTTON","INPUT"];function Qfe(e,t){return!!(!Jfe.includes(e.tagName)||e.tagName==="INPUT"&&!["submit","button"].includes(e.getAttribute("type")||"")||e.tagName==="A"&&(e.hasAttribute("download")||e.hasAttribute("target")&&e.getAttribute("target")!=="_self")||t&&e.matches(t))}function epe(e){return!!(e.data&&typeof e.data.nodeId=="number"&&e.timestamp)}function d3(){return Date.now()/1e3}function tpe(e,t){try{if(!npe(t))return;const{source:n}=t.data;if(Xfe.has(n)&&e.registerMutation(t.timestamp),n===ft.Scroll&&e.registerScroll(t.timestamp),rpe(t)){const{type:r,id:i}=t.data,o=no.mirror.getNode(i);o instanceof HTMLElement&&r===Sr.Click&&e.registerClick(o)}}catch{}}function npe(e){return e.type===jfe}function rpe(e){return e.data.source===ft.MouseInteraction}function wo(e){return{timestamp:Date.now()/1e3,type:"default",...e}}var Q1=(e=>(e[e.Document=0]="Document",e[e.DocumentType=1]="DocumentType",e[e.Element=2]="Element",e[e.Text=3]="Text",e[e.CDATA=4]="CDATA",e[e.Comment=5]="Comment",e))(Q1||{});const ipe=new Set(["id","class","aria-label","role","name","alt","title","data-test-id","data-testid","disabled","aria-disabled","data-sentry-component"]);function ope(e){const t={};!e["data-sentry-component"]&&e["data-sentry-element"]&&(e["data-sentry-component"]=e["data-sentry-element"]);for(const n in e)if(ipe.has(n)){let r=n;(n==="data-testid"||n==="data-test-id")&&(r="testId"),t[r]=e[n]}return t}const spe=e=>t=>{if(!e.isEnabled())return;const n=ape(t);if(!n)return;const r=t.name==="click",i=r?t.event:void 0;r&&e.clickDetector&&(i!=null&&i.target)&&!i.altKey&&!i.metaKey&&!i.ctrlKey&&!i.shiftKey&&Zfe(e.clickDetector,n,c$(t.event)),jp(e,n)};function f$(e,t){const n=no.mirror.getId(e),r=n&&no.mirror.getNode(n),i=r&&no.mirror.getMeta(r),o=i&&upe(i)?i:null;return{message:t,data:o?{nodeId:n,node:{id:n,tagName:o.tagName,textContent:Array.from(o.childNodes).map(s=>
651s.type===Q1.Text&&s.textContent).filter(Boolean).map(s=>s.trim()).join(""),attributes:ope(o.attributes)}}:{}}}function ape(e){const{target:t,message:n}=lpe(e);return wo({category:`ui.${e.name}`,...f$(t,n)})}function lpe(e){const t=e.name==="click";let n,r=null;try{r=t?c$(e.event):d$(e.event),n=qn(r,{maxStringLength:200})||"<unknown>"}catch{n="<unknown>"}return{target:r,message:n}}function upe(e){return e.type===Q1.Element}function cpe(e,t){if(!e.isEnabled())return;e.updateUserActivity();const n=dpe(t);n&&jp(e,n)}function dpe(e){const{metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:o,target:s}=e;if(!s||fpe(s)||!o)return null;const a=t||r||i,l=o.length===1;if(!a&&l)return null;const u=qn(s,{maxStringLength:200})||"<unknown>",c=f$(s,u);return wo({category:"ui.keyDown",message:u,data:{...c.data,metaKey:t,shiftKey:n,ctrlKey:r,altKey:i,key:o}})}function fpe(e){return e.tagName==="INPUT"||e.tagName==="TEXTAREA"||e.isContentEditable}const ppe={resource:ype,paint:vpe,navigation:gpe};function _y(e,t){return({metric:n})=>void t.replayPerformanceEntries.push(e(n))}function hpe(e){return e.map(mpe).filter(Boolean)}function mpe(e){const t=ppe[e.entryType];return t?t(e):null}function Tc(e){return((Nn()||tn.performance.timeOrigin)+e)/1e3}function vpe(e){const{duration:t,entryType:n,name:r,startTime:i}=e,o=Tc(i);return{type:n,name:r,start:o,end:o+t,data:void 0}}function gpe(e){const{entryType:t,name:n,decodedBodySize:r,duration:i,domComplete:o,encodedBodySize:s,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,domInteractive:u,loadEventStart:c,loadEventEnd:d,redirectCount:f,startTime:p,transferSize:h,type:m}=e;return i===0?null:{type:`${t}.${m}`,start:Tc(p),end:Tc(o),name:n,data:{size:h,decodedBodySize:r,encodedBodySize:s,duration:i,domInteractive:u,domContentLoadedEventStart:a,domContentLoadedEventEnd:l,loadEventStart:c,loadEventEnd:d,domComplete:o,redirectCount:f}}}function ype(e){const{entryType:t,initiatorType:n,name:r,responseEnd:i,startTime:o,decodedBodySize:s,encodedBodySize:a,responseStatus:l,transferSize:u}=e;return["fetch","xmlhttprequest"].includes(n)?null:{type:`${t}.${n}`,start:Tc(o),end:Tc(i),name:r,data:{size:u,statusCode:l,decodedBodySize:s,encodedBodySize:a}}}function bpe(e){const t=e.entries[e.entries.length-1],n=t!=null&&t.element?[t.element]:void 0;return jC(e,"largest-contentful-paint",n)}function _pe(e){return e.sources!==void 0}function Spe(e){const t=[],n=[];for(const r of e.entries)if(_pe(r)){const i=[];for(const o of r.sources)if(o.node){n.push(o.node);const s=no.mirror.getId(o.node);s&&i.push(s)}t.push({value:r.value,nodeIds:i.length?i:void 0})}return jC(e,"cumulative-layout-shift",n,t)}function Epe(e){const t=e.entries[e.entries.length-1],n=t!=null&&t.target?[t.target]:void 0;return jC(e,"interaction-to-next-paint",n)}function jC(e,t,n,r){const i=e.value,o=e.rating,s=Tc(i);return{type:"web-vital",name:t,start:s,end:s,data:{value:i,size:i,rating:o,nodeIds:n?n.map(a=>no.mirror.getId(a)):void 0,attributions:r}}}function Cpe(e){function t(i){e.performanceEntries.includes(i)||e.performanceEntries.push(i)}function n({entries:i}){i.forEach(t)}const r=[];return["navigation","paint","resource"].forEach(i=>{r.push(ba(i,n))}),r.push(j1(_y(bpe,e)),U1(_y(Spe,e)),TC(_y(Epe,e))),()=>{r.forEach(i=>i())}}const it=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,wpe='
vendor: 10,329 bytes, line 651
651var t=Uint8Array,n=Uint16Array,r=Int32Array,e=new t([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),i=new t([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),s=new t([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a=function(t,e){for(var i=new n(31),s=0;s<31;++s)i[s]=e+=1<<t[s-1];var a=new r(i[30]);for(s=1;s<30;++s)for(var o=i[s];o<i[s+1];++o)a[o]=o-i[s]<<5|s;return{b:i,r:a}},o=a(e,2),h=o.b,f=o.r;h[28]=258,f[258]=28;for(var l=a(i,0).r,u=new n(32768),c=0;c<32768;++c){var v=(43690&c)>>1|(21845&c)<<1;v=(61680&(v=(52428&v)>>2|(13107&v)<<2))>>4|(3855&v)<<4,u[c]=((65280&v)>>8|(255&v)<<8)>>1}var d=function(t,r,e){for(var i=t.length,s=0,a=new n(r);s<i;++s)t[s]&&++a[t[s]-1];var o,h=new n(r);for(s=1;s<r;++s)h[s]=h[s-1]+a[s-1]<<1;if(e){o=new n(1<<r);var f=15-r;for(s=0;s<i;++s)if(t[s])for(var l=s<<4|t[s],c=r-t[s],v=h[t[s]-1]++<<c,d=v|(1<<c)-1;v<=d;++v)o[u[v]>>f]=l}else for(o=new n(i),s=0;s<i;++s)t[s]&&(o[s]=u[h[t[s]-1]++]>>15-t[s]);return o},p=new t(288);for(c=0;c<144;++c)p[c]=8;for(c=144;c<256;++c)p[c]=9;for(c=256;c<280;++c)p[c]=7;for(c=280;c<288;++c)p[c]=8;var g=new t(32);for(c=0;c<32;++c)g[c]=5;var w=d(p,9,0),y=d(g,5,0),m=function(t){return(t+7)/8|0},b=function(n,r,e){return(null==e||e>n.length)&&(e=n.length),new t(n.subarray(r,e))},M=["unexpected EOF","invalid block type","invalid length/literal","invalid distance","stream finished","no stream handler",,"no callback","invalid UTF-8 data","extra field too long","date not in range 1980-2099","filename too long","stream finishing","invalid zip data"],E=function(t,n,r){var e=new Error(n||M[t]);if(e.code=t,Error.captureStackTrace&&Error.captureStackTrace(e,E),!r)throw e;return e},z=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8},_=function(t,n,r){r<<=7&n;var e=n/8|0;t[e]|=r,t[e+1]|=r>>8,t[e+2]|=r>>16},x=function(r,e){for(var i=[],s=0;s<r.length;++s)r[s]&&i.push({s:s,f:r[s]});var a=i.length,o=i.slice();if(!a)return{t:F,l:0};if(1==a){var h=new t(i[0].s+1);return h[i[0].s]=1,{t:h,l:1}}i.sort(function(t,n){return t.f-n.f}),i.push({s:-1,f:25001});var f=i[0],l=i[1],u=0,c=1,v=2;for(i[0]={s:-1,f:f.f+l.f,l:f,r:l};c!=a-1;)f=i[i[u].f<i[v].f?u++:v++],l=i[u!=c&&i[u].f<i[v].f?u++:v++],i[c++]={s:-1,f:f.f+l.f,l:f,r:l};var d=o[0].s;for(s=1;s<a;++s)o[s].s>d&&(d=o[s].s);var p=new n(d+1),g=A(i[c-1],p,0);if(g>e){s=0;var w=0,y=g-e,m=1<<y;for(o.sort(function(t,n){return p[n.s]-p[t.s]||t.f-n.f});s<a;++s){var b=o[s].s;if(!(p[b]>e))break;w+=m-(1<<g-p[b]),p[b]=e}for(w>>=y;w>0;){var M=o[s].s;p[M]<e?w-=1<<e-p[M]++-1:++s}for(;s>=0&&w;--s){var E=o[s].s;p[E]==e&&(--p[E],++w)}g=e}return{t:new t(p),l:g}},A=function(t,n,r){return-1==t.s?Math.max(A(t.l,n,r+1),A(t.r,n,r+1)):n[t.s]=r},D=function(t){for(var r=t.length;r&&!t[--r];);for(var e=new n(++r),i=0,s=t[0],a=1,o=function(t){e[i++]=t},h=1;h<=r;++h)if(t[h]==s&&h!=r)++a;else{if(!s&&a>2){for(;a>138;a-=138)o(32754);a>2&&(o(a>10?a-11<<5|28690:a-3<<5|12305),a=0)}else if(a>3){for(o(s),--a;a>6;a-=6)o(8304);a>2&&(o(a-3<<5|8208),a=0)}for(;a--;)o(s);a=1,s=t[h]}return{c:e.subarray(0,i),n:r}},T=function(t,n){for(var r=0,e=0;e<n.length;++e)r+=t[e]*n[e];return r},k=function(t,n,r){var e=r.length,i=m(n+2);t[i]=255&e,t[i+1]=e>>8,t[i+2]=255^t[i],t[i+3]=255^t[i+1];for(var s=0;s<e;++s)t[i+s+4]=r[s];return 8*(i+4+e)},U=function(t,r,a,o,h,f,l,u,c,v,m){z(r,m++,a),++h[256];for(var b=x(h,15),M=b.t,E=b.l,A=x(f,15),U=A.t,C=A.l,F=D(M),I=F.c,S=F.n,L=D(U),O=L.c,j=L.n,q=new n(19),B=0;B<I.length;++B)++q[31&I[B]];for(B=0;B<O.length;++B)++q[31&O[B]];for(var G=x(q,7),H=G.t,J=G.l,K=19;K>4&&!H[s[K-1]];--K);var N,P,Q,R,V=v+5<<3,W=T(h,p)+T(f,g)+l,X=T(h,M)+T(f,U)+l+14+3*K+T(q,H)+2*q[16]+3*q[17]+7*q[18];if(c>=0&&V<=W&&V<=X)return k(r,m,t.subarray(c,c+v));if(z(r,m,1+(X<W)),m+=2,X<W){N=d(M,E,0),P=M,Q=d(U,C,0),R=U;var Y=d(H,J,0);z(r,m,S-257),z(r,m+5,j-1),z(r,m+10,K-4),m+=14;for(B=0;B<K;++B)z(r,m+3*B,H[s[B]]);m+=3*K;for(var Z=[I,O],$=0;$<2;++$){var tt=Z[$];for(B=0;B<tt.length;++B){var nt=31&tt[B];z(r,m,Y[nt]),m+=H[nt],nt>15&&(z(r,m,tt[B]>>5&127),m+=tt[B]>>12)}}}else N=w,P=p,Q=y,R=g;for(B=0;B<u;++B){var rt=o[B];if(rt>255){_(r,m,N[(nt=rt>>18&31)+257]),m+=P[nt+257],nt>7&&(z(r,m,rt>>23&31),m+=e[nt]);var et=31&rt;_(r,m,Q[et]),m+=R[et],et>3&&(_(r,m,rt>>5&8191),m+=i[et])}else _(r,m,N[rt]),m+=P[rt]}return _(r,m,N[256]),m+P[256]},C=new r([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),F=new t(0),I=function(){for(var t=new Int32Array(256),n=0;n<256;++n){for(var r=n,e=9;--e;)r=(1&r&&-306674912)^r>>>1;t[n]=r}return t}(),S=function(){var t=1,n=0;return{p:function(r){for(var e=t,i=n,s=0|r.length,a=0;a!=s;){for(var o=Math.min(a+2655,s);a<o;++a)i+=e+=r[a];e=(65535&e)+15*(e>>16),i=(65535&i)+15*(i>>16)}t=e,n=i},d:function(){return(255&(t%=65521))<<24|(65280&t)<<8|(255&(n%=65521))<<8|n>>8}}},L=function(s,a,o,h,u){if(!u&&(u={l:1},a.dictionary)){var c=a.dictionary.subarray(-32768),v=new t(c.length+s.length);v.set(c),v.set(s,c.length),s=v,u.w=c.length}return function(s,a,o,h,u,c){var v=c.z||s.length,d=new t(h+v+5*(1+Math.ceil(v/7e3))+u),p=d.subarray(h,d.length-u),g=c.l,w=7&(c.r||0);if(a){w&&(p[0]=c.r>>3);for(var y=C[a-1],M=y>>13,E=8191&y,z=(1<<o)-1,_=c.p||new n(32768),x=c.h||new n(z+1),A=Math.ceil(o/3),D=2*A,T=function(t){return(s[t]^s[t+1]<<A^s[t+2]<<D)&z},F=new r(25e3),I=new n(288),S=new n(32),L=0,O=0,j=c.i||0,q=0,B=c.w||0,G=0;j+2<v;++j){var H=T(j),J=32767&j,K=x[H];if(_[J]=K,x[H]=J,B<=j){var N=v-j;if((L>7e3||q>24576)&&(N>423||!g)){w=U(s,p,0,F,I,S,O,q,G,j-G,w),q=L=O=0,G=j;for(var P=0;P<286;++P)I[P]=0;for(P=0;P<30;++P)S[P]=0}var Q=2,R=0,V=E,W=J-K&32767;if(N>2&&H==T(j-W))for(var X=Math.min(M,N)-1,Y=Math.min(32767,j),Z=Math.min(258,N);W<=Y&&--V&&J!=K;){if(s[j+Q]==s[j+Q-W]){for(var $=0;$<Z&&s[j+$]==s[j+$-W];++$);if($>Q){if(Q=$,R=W,$>X)break;var tt=Math.min(W,$-2),nt=0;for(P=0;P<tt;++P){var rt=j-W+P&32767,et=rt-_[rt]&32767;et>nt&&(nt=et,K=rt)}}}W+=(J=K)-(K=_[J])&32767}if(R){F[q++]=268435456|f[Q]<<18|l[R];var it=31&f[Q],st=31&l[R];O+=e[it]+i[st],++I[257+it],++S[st],B=j+Q,++L}else F[q++]=s[j],++I[s[j]]}}for(j=Math.max(j,B);j<v;++j)F[q++]=s[j],++I[s[j]];w=U(s,p,g,F,I,S,O,q,G,j-G,w),g||(c.r=7&w|p[w/8|0]<<3,w-=7,c.h=x,c.p=_,c.i=j,c.w=B)}else{for(j=c.w||0;j<v+g;j+=65535){var at=j+65535;at>=v&&(p[w/8|0]=g,at=v),w=k(p,w+1,s.subarray(j,at))}c.i=v}return b(d,0,h+m(w)+u)}(s,null==a.level?6:a.level,null==a.mem?u.l?Math.ceil(1.5*Math.max(8,Math.min(13,Math.log(s.length)))):20:12+a.mem,o,h,u)},O=function(t,n,r){for(;r;++n)t[n]=r,r>>>=8},j=function(){function n(n,r){if("function"==typeof n&&(r=n,n={}),this.ondata=r,this.o=n||{},this.s={l:0,i:32768,w:32768,z:32768},this.b=new t(98304),this.o.dictionary){var e=this.o.dictionary.subarray(-32768);this.b.set(e,32768-e.length),this.s.i=32768-e.length}}return n.prototype.p=function(t,n){this.ondata(L(t,this.o,0,0,this.s),n)},n.prototype.push=function(n,r){this.ondata||E(5),this.s.l&&E(4);var e=n.length+this.s.z;if(e>this.b.length){if(e>2*this.b.length-32768){var i=new t(-32768&e);i.set(this.b.subarray(0,this.s.z)),this.b=i}var s=this.b.length-this.s.z;this.b.set(n.subarray(0,s),this.s.z),this.s.z=this.b.length,this.p(this.b,!1),this.b.set(this.b.subarray(-32768)),this.b.set(n.subarray(s),32768),this.s.z=n.length-s+32768,this.s.i=32766,this.s.w=32768}else this.b.set(n,this.s.z),this.s.z+=n.length;this.s.l=1&r,(this.s.z>this.s.w+8191||r)&&(this.p(this.b,r||!1),this.s.w=this.s.i,this.s.i-=2)},n.prototype.flush=function(){this.ondata||E(5),this.s.l&&E(4),this.p(this.b,!1),this.s.w=this.s.i,this.s.i-=2},n}();function q(t,n){n||(n={});var r=function(){var t=-1;return{p:function(n){for(var r=t,e=0;e<n.length;++e)r=I[255&r^n[e]]^r>>>8;t=r},d:function(){return~t}}}(),e=t.length;r.p(t);var i,s=L(t,n,10+((i=n).filename?i.filename.length+1:0),8),a=s.length;return function(t,n){var r=n.filename;if(t[0]=31,t[1]=139,t[2]=8,t[8]=n.level<2?4:9==n.level?2:0,t[9]=3,0!=n.mtime&&O(t,4,Math.floor(new Date(n.mtime||Date.now())/1e3)),r){t[3]=8;for(var e=0;e<=r.length;++e)t[e+10]=r.charCodeAt(e)}}(s,n),O(s,a-8,r.d()),O(s,a-4,e),s}var B=function(){function t(t,n){this.c=S(),this.v=1,j.call(this,t,n)}return t.prototype.push=function(t,n){this.c.p(t),j.prototype.push.call(this,t,n)},t.prototype.p=function(t,n){var r=L(t,this.o,this.v&&(this.o.dictionary?6:2),n&&4,this.s);this.v&&(function(t,n){var r=n.level,e=0==r?0:r<6?1:9==r?3:2;if(t[0]=120,t[1]=e<<6|(n.dictionary&&32),t[1]|=31-(t[0]<<8|t[1])%31,n.dictionary){var i=S();i.p(n.dictionary),O(t,2,i.d())}}(r,this.o),this.v=0),n&&O(r,r.length-4,this.c.d()),this.ondata(r,n)},t.prototype.flush=function(){j.prototype.flush.call(this)},t}(),G="undefined"!=typeof TextEncoder&&new TextEncoder,H="undefined"!=typeof TextDecoder&&new TextDecoder;try{H.decode(F,{stream:!0})}catch(t){}var J=function(){function t(t){this.ondata=t}return t.prototype.push=function(t,n){this.ondata||E(5),this.d&&E(4),this.ondata(K(t),this.d=n||!1)},t}();function K(n,r){if(G)return G.encode(n);for(var e=n.length,i=new t(n.length+(n.length>>1)),s=0,a=function(t){i[s++]=t},o=0;o<e;++o){if(s+5>i.length){var h=new t(s+8+(e-o<<1));h.set(i),i=h}var f=n.charCodeAt(o);f<128||r?a(f):f<2048?(a(192|f>>6),a(128|63&f)):f>55295&&f<57344?(a(240|(f=65536+(1047552&f)|1023&n.charCodeAt(++o))>>18),a(128|f>>12&63),a(128|f>>6&63),a(128|63&f)):(a(224|f>>12),a(128|f>>6&63),a(128|63&f))}return b(i,0,s)}const N=new class{constructor(){this._init()}clear(){this._init()}addEvent(t){if(!t)throw new Error("Adding invalid event");const n=this._hasEvents?",":"";this.stream.push(n+t),this._hasEvents=!0}finish(){this.stream.push("]",!0);const t=function(t){let n=0;for(const r of t)n+=r.length;const r=new Uint8Array(n);for(let n=0,e=0,i=t.length;n<i;n++){const i=t[n];r.set(i,e),e+=i.length}return r}(this._deflatedData);return this._init(),t}_init(){this._hasEvents=!1,this._deflatedData=[],this.deflate=new B,this.deflate.ondata=(t,n)=>{this._deflatedData.push(t)},this.stream=new J((t,n)=>{this.deflate.push(t,n)}),this.stream.push("[")}},P={clear:()=>{N.clear()},addEvent:t=>N.addEvent(t),finish:()=>N.finish(),compress:t=>function(t){return q(K(t))}(t)};addEventListener("message",function(t){const n=t.data.method,r=t.data.id,e=t.data.arg;if(n in P&&"function"==typeof P[n])try{const t=P[n](e);postMessage({id:r,method:n,success:!0,response:t})}catch(t){postMessage({id:r,method:n,success:!1,response:t.message}),console.error(t)}}),postMessage({id:void 0,method:"init",success:!0,response:void 0});
651';function Tpe(){const e=new Blob([wpe],{type:"text/javascript"});return URL.createObjectURL(e)}const f3=["log","warn","error"],Mm="[Replay] ";function Sy(e,t="info"){ao({category:"console",data:{logger:"replay"},level:t,message:`${Mm}${e}`},{level:t})}function Ape(){let e=!1,t=!1;const n={exception:()=>{},infoTick:()=>{},setConfig:r=>{e=!!r.captureExceptions,t=!!r.traceInternals}};return it?(f3.forEach(r=>{n[r]=(...i)=>{X[r](Mm,...i),t&&Sy(i.join(""),Fv(r))}}),n.exception=(r,...i)=>{i.length&&n.error&&n.error(...i),X.error(Mm,r),e?di(r,{mechanism:{handled:!0,type:"auto.function.replay.debug"}}):t&&Sy(r,"error")},n.infoTick=(...r)=>{X.log(Mm,...r),t&&setTimeout(()=>Sy(r[0]),0)}):f3.forEach(r=>{n[r]=()=>{}}),n}const ot=Ape();class WC extends Error{constructor(){super(`Event buffer exceeded maximum size of ${NC}.`)}}class p$ extends Error{constructor(){super("Worker destroyed")}}class h${constructor(){this.events=[],this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return this.events.length>0}get type(){return"sync"}destroy(){this.events=[]}async addEvent(t){const n=JSON.stringify(t).length;if(this._totalSize+=n,this._totalSize>NC)throw new WC;this.events.push(t)}finish(){return new Promise(t=>{const n=this.events;this.clear(),t(JSON.stringify(n))})}clear(){this.events=[],this._totalSize=0,this.hasCheckout=!1}getEarliestTimestamp(){let t=null;for(const{timestamp:n}of this.events)(t===null||n<t)&&(t=n);return t===null?t:UC(t)}}class Ipe{constructor(t){this._onMessage=({data:n})=>{const r=n;if(typeof r.id!="number")return;const i=this._pending.get(r.id);if(!(!i||i.method!==r.method)){if(this._pending.delete(r.id),!r.success){it&&ot.error("Error in compression worker: ",r.response),i.reject(new Error("Error in compression worker"));return}i.resolve(r.response)}},this._worker=t,this._id=0,this._pending=new Map,this._worker.addEventListener("message",this._onMessage)}ensureReady(){return this._ensureReadyPromise?this._ensureReadyPromise:(this._ensureReadyPromise=new Promise((t,n)=>{this._worker.addEventListener("message",({data:r})=>{r.success?t():(it&&ot.warn("Received worker message with unsuccessful status",r),n(new Error("Received worker message with unsuccessful status")))},{once:!0}),this._worker.addEventListener("error",r=>{it&&ot.warn("Failed to load Replay compression worker",r),n(new Error(`Failed to load Replay compression worker: ${r instanceof ErrorEvent&&r.message?r.message:"Unknown error. This can happen due to CSP policy restrictions, network issues, or the worker script failing to load."}`))},{once:!0})}),this._ensureReadyPromise)}destroy(){it&&ot.log("Destroying compression worker"),this._worker.removeEventListener("message",this._onMessage),this._pending.forEach(t=>t.reject(new p$)),this._pending.clear(),this._worker.terminate()}postMessage(t,n){const r=this._getAndIncrementId();return new Promise((i,o)=>{this._pending.set(r,{method:t,resolve:i,reject:o});try{this._worker.postMessage({id:r,method:t,arg:n})}catch(s){this._pending.delete(r),o(s)}})}_getAndIncrementId(){return this._id++}}class xpe{constructor(t){this._worker=new Ipe(t),this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this.waitForCheckout=!1}get hasEvents(){return!!this._earliestTimestamp}get type(){return"worker"}ensureReady(){return this._worker.ensureReady()}destroy(){this._worker.destroy()}addEvent(t){const n=UC(t.timestamp);(!this._earliestTimestamp||n<this._earliestTimestamp)&&(this._earliestTimestamp=n);const r=JSON.stringify(t);return this._totalSize+=r.length,this._totalSize>NC?Promise.reject(new WC):this._sendEventToWorker(r)}finish(){return this._finishRequest()}clear(){this._earliestTimestamp=null,this._totalSize=0,this.hasCheckout=!1,this._worker.postMessage("clear").then(null,t=>{it&&ot.exception(t,'Sending "clear" message to worker failed',t)})}getEarliestTimestamp(){return this._earliestTimestamp}_sendEventToWorker(t){return this._worker.postMessage("addEvent",t)}async _finishRequest(){const t=await this._worker.postMessage("finish");return this._earliestTimestamp=null,this._totalSize=0,t}}class Lpe{constructor(t){this._fallback=new h$,this._compression=new xpe(t),this._used=this._fallback,this._ensureWorkerIsLoadedProm
651ise=this._ensureWorkerIsLoaded()}get waitForCheckout(){return this._used.waitForCheckout}get type(){return this._used.type}get hasEvents(){return this._used.hasEvents}get hasCheckout(){return this._used.hasCheckout}set hasCheckout(t){this._used.hasCheckout=t}set waitForCheckout(t){this._used.waitForCheckout=t}destroy(){this._fallback.destroy(),this._compression.destroy()}clear(){return this._used.clear()}getEarliestTimestamp(){return this._used.getEarliestTimestamp()}addEvent(t){return this._used.addEvent(t)}async finish(){return await this.ensureWorkerIsLoaded(),this._used.finish()}ensureWorkerIsLoaded(){return this._ensureWorkerIsLoadedPromise}async _ensureWorkerIsLoaded(){try{await this._compression.ensureReady()}catch(t){it&&ot.exception(t,"Failed to load the compression worker, falling back to simple buffer");return}await this._switchToCompressionWorker()}async _switchToCompressionWorker(){const{events:t,hasCheckout:n,waitForCheckout:r}=this._fallback,i=[];for(const o of t)i.push(this._compression.addEvent(o));this._compression.hasCheckout=n,this._compression.waitForCheckout=r,this._used=this._compression;try{await Promise.all(i),this._fallback.clear()}catch(o){if(o instanceof p$)return;it&&ot.exception(o,"Failed to add events when switching buffers.")}}}function kpe({useCompression:e,workerUrl:t}){if(e&&window.Worker){const n=Mpe(t);if(n)return n}return it&&ot.log("Using simple buffer"),new h$}function Mpe(e){try{const t=e||Rpe();if(!t)return;it&&ot.log(`Using compression worker${e?` from ${e}`:""}`);const n=new Worker(t);return new Lpe(n)}catch(t){it&&ot.exception(t,"Failed to create compression worker")}}function Rpe(){return typeof __SENTRY_EXCLUDE_REPLAY_WORKER__>"u"||!__SENTRY_EXCLUDE_REPLAY_WORKER__?Tpe():""}function GC(){try{return"sessionStorage"in tn&&!!tn.sessionStorage}catch{return!1}}function Ppe(e){Ope(),e.session=void 0}function Ope(){if(GC())try{tn.sessionStorage.removeItem(OC)}catch{}}function m$(e){return e===void 0?!1:Math.random()<e}function e0(e){if(GC())try{tn.sessionStorage.setItem(OC,JSON.stringify(e))}catch{}}function v$(e){const t=Date.now(),n=e.id||Gn(),r=e.started||t,i=e.lastActivity||t,o=e.segmentId||0,s=e.sampled,a=e.previousSessionId,l=e.dirty||!1;return{id:n,started:r,lastActivity:i,segmentId:o,sampled:s,previousSessionId:a,dirty:l}}function $pe(e,t){return m$(e)?"session":t?"buffer":!1}function p3({sessionSampleRate:e,allowBuffering:t,stickySession:n=!1},{previousSessionId:r}={}){const i=$pe(e,t),o=v$({sampled:i,previousSessionId:r});return n&&e0(o),o}function Npe(){if(!GC())return null;try{const e=tn.sessionStorage.getItem(OC);if(!e)return null;const t=JSON.parse(e);return it&&ot.infoTick("Loading existing session"),v$(t)}catch{return null}}function a2(e,t,n=+new Date){return e===null||t===void 0||t<0?!0:t===0?!1:e+t<=n}function Hpe(e,{maxReplayDuration:t,sessionIdleExpire:n,targetTime:r=Date.now()}){return a2(e.started,t,r)||a2(e.lastActivity,n,r)}function ng(e,{sessionIdleExpire:t,maxReplayDuration:n}){return!(!Hpe(e,{sessionIdleExpire:t,maxReplayDuration:n})||e.sampled==="buffer"&&e.segmentId===0)}function Ey({sessionIdleExpire:e,maxReplayDuration:t,previousSessionId:n},r){const i=r.stickySession&&Npe();return i?ng(i,{sessionIdleExpire:e,maxReplayDuration:t})?(it&&ot.infoTick("Session in sessionStorage is expired, creating new one..."),p3(r,{previousSessionId:i.id})):i:(it&&ot.infoTick("Creating new session"),p3(r,{previousSessionId:n}))}function Dpe(e){return e.type===gt.Custom}function zC(e,t,n){return y$(e,t)?(g$(e,t,n),!0):!1}function Vpe(e,t,n){return y$(e,t)?g$(e,t,n):Promise.resolve(null)}async function g$(e,t,n){const{eventBuffer:r}=e;if(!r||r.waitForCheckout&&!n)return null;const i=e.recordingMode==="buffer";try{n&&i&&r.clear(),n&&(r.hasCheckout=!0,r.waitForCheckout=!1);const o=e.getOptions(),s=Fpe(t,o.beforeAddRecordingEvent);return s?await r.addEvent(s):void 0}catch(o){if(!e.isEnabled())return e.handleException(o),null;const s=o&&o instanceof WC,a=s?"eventBufferOverflow":"eventBufferError",l=$e();if(l){const u=s?"buffer_overflow":"internal_sdk_error";l.recordDroppedEvent(u,"replay")}if(s&&i)return r.clear(),r.waitForCheckout=!0,null;e.handleException(o),await e.stop({reason:a})}}
651function y$(e,t){if(!e.eventBuffer||e.isPaused()||!e.isEnabled())return!1;const n=UC(t.timestamp);return n+e.timeouts.sessionIdlePause<Date.now()?!1:n>e.getContext().initialTimestamp+e.getOptions().maxReplayDuration?(it&&ot.infoTick(`Skipping event with timestamp ${n} because it is after maxReplayDuration`),!1):!0}function Fpe(e,t){try{if(typeof t=="function"&&Dpe(e))return t(e)}catch(n){return it&&ot.exception(n,"An error occurred in the `beforeAddRecordingEvent` callback, skipping the event..."),null}return e}const h3=100;function b$(e,t,n){const r=e.getContext();t&&r.traceIds.size<h3&&r.traceIds.add(t),n&&r.segmentNames.size<h3&&r.segmentNames.add(n)}function Bpe(e){return t=>{e.isEnabled()&&b$(e,t.trace_id,t.name||void 0)}}function qC(e){return!e.type}function l2(e){return e.type==="transaction"}function Upe(e){return e.type==="replay_event"}function m3(e){return e.type==="feedback"}function jpe(e){return(t,n)=>{if(!e.isEnabled()||!qC(t)&&!l2(t))return;const r=n.statusCode;if(!(!r||r<200||r>=300)){if(l2(t)){Wpe(e,t);return}Gpe(e,t)}}}function Wpe(e,t){var n,r;b$(e,(r=(n=t.contexts)==null?void 0:n.trace)==null?void 0:r.trace_id,t.transaction)}function Gpe(e,t){var i;const n=e.getContext();if(t.event_id&&n.errorIds.size<100&&n.errorIds.add(t.event_id),e.recordingMode!=="buffer"||!((i=t.tags)!=null&&i.replayId))return;const{beforeErrorSampling:r}=e.getOptions();typeof r=="function"&&!r(t)||Bp(async()=>{try{await e.sendBufferedReplayOrFlush()}catch(o){e.handleException(o)}})}function zpe(e){return t=>{!e.isEnabled()||!qC(t)||qpe(e,t)}}function qpe(e,t){var r,i,o;const n=(o=(i=(r=t.exception)==null?void 0:r.values)==null?void 0:i[0])==null?void 0:o.value;if(typeof n=="string"&&(n.match(/(reactjs\.org\/docs\/error-decoder\.html\?invariant=|react\.dev\/errors\/)(418|419|422|423|425)/)||n.match(/(does not match server-rendered HTML|Hydration failed because)/i))){const s=wo({category:"replay.hydrate-error",data:{url:ya()}});jp(e,s)}}
651function Kpe(e){const t=$e();t&&t.on("beforeAddBreadcrumb",n=>Xpe(e,n))}function Xpe(e,t){if(!e.isEnabled()||!_$(t))return;const n=Zpe(t);n&&jp(e,n)}function Zpe(e){return!_$(e)||["fetch","xhr","sentry.event","sentry.transaction"].includes(e.category)||e.category.startsWith("ui.")?null:e.category==="console"?Ype(e):wo(e)}function Ype(e){var i;const t=(i=e.data)==null?void 0:i.arguments;if(!Array.isArray(t)||t.length===0)return wo(e);let n=!1;const r=t.map(o=>{if(!o)return o;if(typeof o=="string")return o.length>Oh?(n=!0,`${o.slice(0,Oh)}â¦`):o;if(typeof o=="object")try{const s=Fn(o,7);return JSON.stringify(s).length>Oh?(n=!0,`${JSON.stringify(s,null,2).slice(0,Oh)}â¦`):s}catch{}return o});return wo({...e,data:{...e.data,arguments:r,...n?{_meta:{warnings:["CONSOLE_ARG_TRUNCATED"]}}:{}}})}function _$(e){return!!e.category}function Jpe(e,t){var n,r,i;return e.type||!((r=(n=e.exception)==null?void 0:n.values)!=null&&r.length)?!1:!!((i=t.originalException)!=null&&i.__rrweb__)}function rg(){const e=nt().getPropagationContext().dsc;e&&delete e.replay_id;const t=bn();if(t){const n=mo(t);delete n.replay_id}}function v3(e){const t=nt().getPropagationContext().dsc;t&&(t.replay_id=e);const n=bn();if(n){const r=mo(n);r.replay_id=e}}function Qpe(e,t){e.triggerUserActivity(),e.addUpdate(()=>t.timestamp?(e.throttledAddEvent({type:gt.Custom,timestamp:t.timestamp*1e3,data:{tag:"breadcrumb",payload:{timestamp:t.timestamp,type:"default",category:"sentry.feedback",data:{feedbackId:t.event_id}}}}),!1):!0)}function ehe(e,t){return e.recordingMode!=="buffer"||t.message===$C||!t.exception||t.type?!1:m$(e.getOptions().errorSampleRate)}function the(e){return Object.assign((t,n)=>{var s;if(e.session&&ng(e.session,{maxReplayDuration:e.getOptions().maxReplayDuration,sessionIdleExpire:e.timeouts.sessionIdleExpire})&&rg(),!e.isEnabled()||e.isPaused())return t;if(Upe(t))return delete t.breadcrumbs,t;if(!qC(t)&&!l2(t)&&!m3(t))return t;if(!e.checkAndHandleExpiredSession())return rg(),t;if(m3(t))return e.flush(),t.contexts.feedback.replay_id=e.getSessionId(),Qpe(e,t),t;if(Jpe(t,n)&&!e.getOptions()._experiments.captureExceptions)return it&&ot.log("Ignoring error from rrweb internals",t),null;const i=ehe(e,t);if((i||e.recordingMode==="session")&&(t.tags={...t.tags,replayId:e.getSessionId()}),i&&e.recordingMode==="buffer"&&((s=e.session)==null?void 0:s.sampled)==="buffer"){const a=e.session;a.dirty=!0,e.getOptions().stickySession&&e0(a)}return t},{id:"Replay"})}function t0(e,t){return t.map(({type:n,start:r,end:i,name:o,data:s})=>{const a=e.throttledAddEvent({type:gt.Custom,timestamp:r,data:{tag:"performanceSpan",payload:{op:n,description:o,startTimestamp:r,endTimestamp:i,data:s}}});return typeof a=="string"?Promise.resolve(null):a})}function nhe(e){const{from:t,to:n}=e,r=Date.now()/1e3;return{type:"navigation.push",start:r,end:r,name:n,data:{previous:t}}}function rhe(e){return t=>{if(!e.isEnabled())return;const n=nhe(t);n!==null&&(e.getContext().urls.push(n.name),e.triggerUserActivity(),e.addUpdate(()=>(t0(e,[n]),!1)))}}function ihe(e,t){return it&&e.getOptions()._experiments.traceInternals?!1:B6(t,$e())}function S$(e,t){e.isEnabled()&&t!==null&&(ihe(e,t.name)||e.addUpdate(()=>(t0(e,[t]),!0)))}function n0(e){if(!e)return;const t=new TextEncoder;try{if(typeof e=="string")return t.encode(e).length;if(e instanceof URLSearchParams)return t.encode(e.toString()).length;if(e instanceof FormData){const n=g7(e);return t.encode(n).length}if(e instanceof Blob)return e.size;if(e instanceof ArrayBuffer)return e.byteLength}catch{}}function E$(e){if(!e)return;const t=parseInt(e,10);return isNaN(t)?void 0:t}function ig(e,t){if(!e)return{headers:{},size:void 0,_meta:{warnings:[t]}};const n={...e._meta},r=n.warnings||[];return n.warnings=[...r,t],e._meta=n,e}function C$(e,t){if(!t)return null;const{startTimestamp:n,endTimestamp:r,url:i,method:o,statusCode:s,request:a,response:l}=t;return{type:e,start:n/1e3,end:r/1e3,name:i,data:{method:o,statusCode:s,request:a,response:l}}}function Qf(e){return{headers:{},size:e,_meta:{warnings:["URL_SKIPPED"]}}}function la(e,t,n){if(!t&&Object.keys(e).length===0)return;if(!t)return{headers:e};if(!n)return{headers:e,size:t};const r={headers:e,size:t},{body:i,warnings:o}=ohe(n);return r.body=i,o!=null&&o.length&&(r._meta={warnings:o}),r}function u2(e,t){return Object.entries(e).reduce((n,[r,i])=>{const o=r.toLowerCase();return t.includes(o)&&e[r]&&(n[o]=i),n},{})}function ohe(e){if(!e||typeof e!="string")return{body:e};const t=e.length>K5,n=she(e);if(t){const r=e.slice(0,K5);return n?{body:r,warnings:["MAYBE_JSON_TRUNCATED"]}:{body:`${r}â¦`,warnings:["TEXT_TRUNCATED"]}}if(n)try{return{body:JSON.parse(e)}}catch{}return{body:e}}function she(e){const t=e[0],n=e[e.length-1];return t==="["&&n==="]"||t==="{"&&n==="}"}function og(e,t){const n=ahe(e);return xi(n,t)}function ahe(e,t=tn.document.baseURI){if(e.startsWith("http://")||e.startsWith("https://")||e.startsWith(tn.location.origin))return e;const n=new URL(e,t);if(n.origin!==new URL(t).origin)return e;const r=n.href;return!e.endsWith("/")&&r.endsWith("/")?r.slice(0,-1):r}async function lhe(e,t,n){try{const r=await che(e,t,n),i=C$("resource.fetch",r);S$(n.replay,i)}catch(r){it&&ot.exception(r,"Failed to capture fetch breadcrumb")}}function uhe(e,t){const{input:n,response:r}=t,i=n?kC(n):void 0,o=n0(i),s=r?E$(r.headers.get("content-length")):void 0;o!==void 0&&(e.data.request_body_size=o),s!==void 0&&(e.data.response_body_size=s)}async function che(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r}=t,{url:s,method:a,status_code:l=0,request_body_size:u,response_body_size:c}=e.data,d=og(s,n.networkDetailAllowUrls)&&!og(s,n.networkDetailDenyUrls),f=d?dhe(n,t.input,u):Qf(u),p=await fhe(d,n,t.response,c);return{startTimestamp:i,endTimestamp:o,url:s,method:a,statusCode:l,request:f,response:p}}function dhe({networkCaptureBodies:e,networkRequestHeaders:t},n,r){const i=n?mhe(n,t):{};if(!e)return la(i,r,void 0);const o=kC(n),[s,a]=Xv(o,ot),l=la(i,r,s);return a?ig(l,a):l}async function fhe(e,{networkCaptureBodies:t,networkResponseHeaders:n},r,i){if(!e&&i!==void 0)return Qf(i);const o=r?w$(r.headers,n):{};if(!r||!t&&i!==void 0)return la(o,i,void 0);const[s,a]=await hhe(r),l=phe(s,{networkCaptureBodies:t,responseBodySize:i,captureDetails:e,headers:o});return a?ig(l,a):l}function phe(e,{networkCaptureBodies:t,responseBodySize:n,captureDetails:r,headers:i}){try{const o=e!=null&&e.length&&n===void 0?n0(e):n;return r?t?la(i,o,e):la(i,o,void 0):Qf(o)}catch(o){return it&&ot.exception(o,"Failed to serialize response body"),la(i,n,void 0)}}async function hhe(e){const t=vhe(e);if(!t)return[void 0,"BODY_PARSE_ERROR"];try{return[await ghe(t)]}catch(n){return n instanceof Error&&n.message.indexOf("Timeout")>-1?(it&&ot.warn("Parsing text body from response timed out"),[void 0,"BODY_PARSE_TIMEOUT"]):(it&&ot.exception(n,"Failed to get text body from response"),[void 0,"BODY_PARSE_ERROR"])}}function w$(e,t){const n={};return t.forEach(r=>{e.get(r)&&(n[r]=e.get(r))}),n}
651function mhe(e,t){return e.length===1&&typeof e[0]!="string"?g3(e[0],t):e.length===2?g3(e[1],t):{}}function g3(e,t){if(!e)return{};const n=e.headers;return n?n instanceof Headers?w$(n,t):Array.isArray(n)?{}:u2(n,t):{}}function vhe(e){try{return e.clone()}catch(t){it&&ot.exception(t,"Failed to clone response body")}}function ghe(e){return new Promise((t,n)=>{const r=Bp(()=>n(new Error("Timeout while trying to read response body")),500);yhe(e).then(i=>t(i),i=>n(i)).finally(()=>clearTimeout(r))})}async function yhe(e){return await e.text()}async function bhe(e,t,n){try{const r=She(e,t,n),i=C$("resource.xhr",r);S$(n.replay,i)}catch(r){it&&ot.exception(r,"Failed to capture xhr breadcrumb")}}function _he(e,t){const{xhr:n,input:r}=t;if(!n)return;const i=n0(r),o=n.getResponseHeader("content-length")?E$(n.getResponseHeader("content-length")):whe(n.response,n.responseType);i!==void 0&&(e.data.request_body_size=i),o!==void 0&&(e.data.response_body_size=o)}function She(e,t,n){const r=Date.now(),{startTimestamp:i=r,endTimestamp:o=r,input:s,xhr:a}=t,{url:l,method:u,status_code:c=0,request_body_size:d,response_body_size:f}=e.data;if(!l)return null;if(!a||!og(l,n.networkDetailAllowUrls)||og(l,n.networkDetailDenyUrls)){const C=Qf(d),E=Qf(f);return{startTimestamp:i,endTimestamp:o,url:l,method:u,statusCode:c,request:C,response:E}}const p=a[ss],h=p?u2(p.request_headers,n.networkRequestHeaders):{},m=u2(y7(a),n.networkResponseHeaders),[v,g]=n.networkCaptureBodies?Xv(s,ot):[void 0],[y,_]=n.networkCaptureBodies?Ehe(a):[void 0],b=la(h,d,v),S=la(m,f,y);return{startTimestamp:i,endTimestamp:o,url:l,method:u,statusCode:c,request:g?ig(b,g):b,response:_?ig(S,_):S}}function Ehe(e){const t=[];try{return[e.responseText]}catch(n){t.push(n)}try{return Che(e.response,e.responseType)}catch(n){t.push(n)}return it&&ot.warn("Failed to get xhr response body",...t),[void 0]}function Che(e,t){try{if(typeof e=="string")return[e];if(e instanceof Document)return[e.body.outerHTML];if(t==="json"&&Ii(e))return[JSON.stringify(e)];if(!e)return[void 0]}catch(n){return it&&ot.exception(n,"Failed to serialize body",e),[void 0,"BODY_PARSE_ERROR"]}return it&&ot.log("Skipping network body because of body type",e),[void 0,"UNPARSEABLE_BODY_TYPE"]}function whe(e,t){try{const n=t==="json"&&Ii(e)?JSON.stringify(e):e;return n0(n)}catch{return}}
651function The(e){const t=$e();try{const{networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s}=e.getOptions(),a={replay:e,networkDetailAllowUrls:n,networkDetailDenyUrls:r,networkCaptureBodies:i,networkRequestHeaders:o,networkResponseHeaders:s};t&&t.on("beforeAddBreadcrumb",(l,u)=>Ahe(a,l,u))}catch{}}function Ahe(e,t,n){if(t.data)try{Ihe(t)&&Lhe(n)&&(_he(t,n),bhe(t,n,e)),xhe(t)&&khe(n)&&(uhe(t,n),lhe(t,n,e))}catch(r){it&&ot.exception(r,"Error when enriching network breadcrumb")}}function Ihe(e){return e.category==="xhr"}function xhe(e){return e.category==="fetch"}function Lhe(e){return e==null?void 0:e.xhr}function khe(e){return(e==null?void 0:e.input)!==void 0}function Mhe(e){const t=$e();v7(spe(e)),q1(rhe(e)),Kpe(e),The(e);const n=the(e);v6(n),t&&(t.on("beforeSendEvent",zpe(e)),t.on("afterSendEvent",jpe(e)),t.on("createDsc",r=>{const i=e.getSessionId();i&&e.isEnabled()&&e.recordingMode==="session"&&e.checkAndHandleExpiredSession()&&(r.replay_id=i)}),t.on("processSegmentSpan",Bpe(e)),t.on("spanStart",r=>{e.lastActiveSpan=r}),t.on("spanEnd",r=>{e.lastActiveSpan=r}),t.on("beforeSendFeedback",async(r,i)=>{var s;const o=e.getSessionId();i!=null&&i.includeReplay&&e.isEnabled()&&o&&((s=r.contexts)!=null&&s.feedback)&&(r.contexts.feedback.source==="api"&&await e.sendBufferedReplayOrFlush(),r.contexts.feedback.replay_id=o)}),t.on("openFeedbackWidget",async()=>{await e.sendBufferedReplayOrFlush()}))}async function Rhe(e){try{return Promise.all(t0(e,[Phe(tn.performance.memory)]))}catch{return[]}}function Phe(e){const{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}=e,i=Date.now()/1e3;return{type:"memory",name:"memory",start:i,end:i,data:{memory:{jsHeapSizeLimit:t,totalJSHeapSize:n,usedJSHeapSize:r}}}}function Ohe(e,t,n){return hee(e,t,{...n,setTimeoutImpl:Bp})}const vi=Ke.navigator;function $he(){return/iPhone|iPad|iPod/i.test((vi==null?void 0:vi.userAgent)??"")||/Macintosh/i.test((vi==null?void 0:vi.userAgent)??"")&&(vi!=null&&vi.maxTouchPoints)&&(vi==null?void 0:vi.maxTouchPoints)>1?{sampling:{mousemove:!1}}:{}}function Nhe(e){let t=!1;return(n,r)=>{try{if(!e.checkAndHandleExpiredSession()){it&&ot.warn("Received replay event after session expired.");return}const i=r||!t;t=!0,Hhe(n),e.clickDetector&&tpe(e.clickDetector,n),e.addUpdate(()=>{if(e.recordingMode==="buffer"&&i&&e.setInitialState(),!zC(e,n,i))return!0;if(!i)return!1;const o=e.session;if(Vhe(e,i),e.recordingMode==="buffer"&&o&&e.eventBuffer&&!o.dirty){const s=e.eventBuffer.getEarliestTimestamp();s&&(it&&ot.log(`Updating session start time to earliest event in buffer to ${new Date(s)}`),o.started=s,e.getOptions().stickySession&&e0(o))}return o!=null&&o.previousSessionId||e.recordingMode==="session"&&e.flush(),!0})}catch(i){e.handleException(i)}}}function Hhe(e){const t=e.data;if(!(e.type!==gt.IncrementalSnapshot||!t||typeof t!="object"||!("source"in t)||t.source!==ft.Mutation||!("attributes"in t)||!Array.isArray(t.attributes)))for(const n of t.attributes){const r=no.mirror.getNode(n.id),i=r&&no.mirror.getMeta(r);if((i==null?void 0:i.type)===Q1.Element)for(const[o,s]of Object.entries(n.attributes))s===null?delete i.attributes[o]:i.attributes[o]=s}}function Dhe(e){const t=e.getOptions();return{type:gt.Custom,timestamp:Date.now(),data:{tag:"options",payload:{shouldRecordCanvas:e.isRecordingCanvas(),sessionSampleRate:t.sessionSampleRate,errorSampleRate:t.errorSampleRate,useCompressionOption:t.useCompression,blockAllMedia:t.blockAllMedia,maskAllText:t.maskAllText,maskAllInputs:t.maskAllInputs,useCompression:e.eventBuffer?e.eventBuffer.type==="worker":!1,networkDetailHasUrls:t.networkDetailAllowUrls.length>0,networkCaptureBodies:t.networkCaptureBodies,networkRequestHasHeaders:t.networkRequestHeaders.length>0,networkResponseHasHeaders:t.networkResponseHeaders.length>0}}}}function Vhe(e,t){var n;!t||((n=e.session)==null?void 0:n.segmentId)!==0||zC(e,Dhe(e),!1)}function Fhe(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function Bhe(e,t,n,r){return $i(QO(e,wp(e),r,n),[[{type:"replay_event"},e],[{type:"replay_recording",length:typeof t=="string"?new TextEncoder().encode(t).length:t.length},t]])}function Uhe({recordingData:e,headers:t}){let n;const r=`${JSON.stringify(t)} 652`;if(typeof e=="string")n=`${r}${e}`;else{const o=new TextEncoder().encode(r);n=new Uint8Array(o.length+e.length),n.set(o),n.set(e,o.length)}return n}async function jhe({client:e,scope:t,replayId:n,event:r}){const i=typeof e._integrations=="object"&&e._integrations!==null&&!Array.isArray(e._integrations)?Object.keys(e._integrations):void 0,o={event_id:n,integrations:i};e.emit("preprocessEvent",r,o);const s=await d6(e.getOptions(),r,o,t,e,Zt());if(!s)return null;e.emit("postprocessEvent",s,o),s.platform=s.platform||"javascript";
652const a=e.getSdkMetadata(),{name:l,version:u,settings:c}=(a==null?void 0:a.sdk)||{};return s.sdk={...s.sdk,name:l||"sentry.javascript.unknown",version:u||"0.0.0",settings:c},s}async function Whe({recordingData:e,replayId:t,segmentId:n,eventContext:r,timestamp:i,session:o}){const s=Uhe({recordingData:e,headers:{segment_id:n}}),{urls:a,errorIds:l,traceIds:u,segmentNames:c,initialTimestamp:d}=r,f=$e(),p=nt(),h=f==null?void 0:f.getTransport(),m=f==null?void 0:f.getDsn();if(!f||!h||!m||!o.sampled)return Promise.resolve({});const v={type:vde,replay_start_timestamp:d/1e3,timestamp:i/1e3,error_ids:l,trace_ids:u,segment_names:c,urls:a,replay_id:t,segment_id:n,replay_type:o.sampled},g=await jhe({scope:p,client:f,replayId:t,event:v});if(!g)return f.recordDroppedEvent("event_processor","replay"),it&&ot.log("An event processor returned `null`, will not send event."),Promise.resolve({});delete g.sdkProcessingMetadata;const y=Bhe(g,s,m,f.getOptions().tunnel);let _;try{_=await h.send(y)}catch(S){const C=new Error($C);try{C.cause=S}catch{}throw C}const b=L6({},_);if(x6(b,"replay"))throw new KC(b);if(typeof _.statusCode=="number"&&(_.statusCode<200||_.statusCode>=300))throw new T$(_.statusCode);return _}class T$ extends Error{constructor(t){super(`Transport returned status code ${t}`)}}class KC extends Error{constructor(t){super("Rate limit hit"),this.rateLimits=t}}class y3 extends Error{constructor(){super("Session is too long, not sending replay")}}async function A$(e,t={count:0,interval:Ede}){const{recordingData:n,onError:r}=e;if(n.length)try{return await Whe(e),!0}catch(i){if(i instanceof T$||i instanceof KC)throw i;if(p6("Replays",{_retryCount:t.count}),r&&r(i),t.count>=Cde){const o=new Error(`${$C} - max retries exceeded`);try{o.cause=i}catch{}throw o}return t.interval*=++t.count,new Promise((o,s)=>{Bp(async()=>{try{await A$(e,t),o(!0)}catch(a){s(a)}},t.interval)})}}const I$="__THROTTLED",Ghe="__SKIPPED";function zhe(e,t,n){const r=new Map,i=a=>{const l=a-n;r.forEach((u,c)=>{c<l&&r.delete(c)})},o=()=>[...r.values()].reduce((a,l)=>a+l,0);let s=!1;return(...a)=>{const l=Math.floor(Date.now()/1e3);if(i(l),o()>=t){const c=s;return s=!0,c?Ghe:I$}s=!1;const u=r.get(l)||0;return r.set(l,u+1),e(...a)}}class qhe{constructor({options:t,recordingOptions:n}){this.eventBuffer=null,this.performanceEntries=[],this.replayPerformanceEntries=[],this.recordingMode="session",this.timeouts={sessionIdlePause:gde,sessionIdleExpire:yde},this._lastActivity=Date.now(),this._isEnabled=!1,this._isPaused=!1,this._requiresManualStart=!1,this._hasInitializedCoreListeners=!1,this._context={errorIds:new Set,traceIds:new Set,segmentNames:new Set,urls:[],initialTimestamp:Date.now(),initialUrl:""},this._recordingOptions=n,this._options=t,this._debouncedFlush=Ohe(()=>this._flush(),this._options.flushMinDelay,{maxWait:this._options.flushMaxDelay}),this._throttledAddEvent=zhe((s,a)=>Vpe(this,s,a),300,5);const{slowClickTimeout:r,slowClickIgnoreSelectors:i}=this.getOptions(),o=r?{threshold:Math.min(wde,r),timeout:r,scrollTimeout:Tde,ignoreSelector:i?i.join(","):""}:void 0;if(o&&(this.clickDetector=new Yfe(this,o)),it){const s=t._experiments;ot.setConfig({captureExceptions:!!s.captureExceptions,traceInternals:!!s.traceInternals})}this._handleVisibilityChange=()=>{tn.document.visibilityState==="visible"?this._doChangeToForegroundTasks():this._doChangeToBackgroundTasks()},this._handleWindowBlur=()=>{const s=wo({category:"ui.blur"});this._doChangeToBackgroundTasks(s)},this._handleWindowFocus=()=>{const s=wo({category:"ui.focus"});this._doChangeToForegroundTasks(s)},this._handleKeyboardEvent=s=>{cpe(this,s)}}getContext(){return this._context}isEnabled(){return this._isEnabled}isPaused(){return this._isPaused}isRecordingCanvas(){return!!this._canvas}getOptions(){return this._options}handleException(t){it&&ot.exception(t),this._options.onError&&this._options.onError(t)}initializeSampling(t){const{errorSampleRate:n,sessionSampleRate:r}=this._options,i=n<=0&&r<=0;if(this._requiresManualStart=i,!i){if(this._initializeSessionForSampling(t),!this.session){it&&ot.exception(new Error("Unable to initialize and create session"));return}this.session.sampled!==!1&&(this.recordingMode=this.session.sampled==="buffer"&&this.session.segmentId===0?"buffer":"session",it&&ot.infoTick(`Starting replay in ${this.recordingMode} mode`),this._initializeRecording())}}
652start(){if(this._isEnabled&&this.recordingMode==="session"){it&&ot.log("Recording is already in progress");return}if(this._isEnabled&&this.recordingMode==="buffer"){it&&ot.log("Buffering is in progress, call `flush()` to save the replay");return}it&&ot.infoTick("Starting replay in session mode"),this._updateUserActivity();const t=Ey({maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire},{stickySession:this._options.stickySession,sessionSampleRate:1,allowBuffering:!1});this.session=t,this.recordingMode="session",this._initializeRecording()}startBuffering(){if(this._isEnabled){it&&ot.log("Buffering is in progress, call `flush()` to save the replay");return}it&&ot.infoTick("Starting replay in buffer mode");const t=Ey({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration},{stickySession:this._options.stickySession,sessionSampleRate:0,allowBuffering:!0});this.session=t,this.recordingMode="buffer",this._initializeRecording()}startRecording(){try{const t=this._canvas;this._stopRecording=no({...this._recordingOptions,...this.recordingMode==="buffer"?{checkoutEveryNms:Sde}:this._options._experiments.continuousCheckout&&{checkoutEveryNms:Math.max(36e4,this._options._experiments.continuousCheckout)},emit:Nhe(this),...$he(),onMutation:this._onMutationHandler.bind(this),...t?{recordCanvas:t.recordCanvas,getCanvasManager:t.getCanvasManager,sampling:t.sampling,dataURLOptions:t.dataURLOptions}:{}})}catch(t){this.handleException(t)}}stopRecording(){try{return this._stopRecording&&(this._stopRecording(),this._stopRecording=void 0),!0}catch(t){return this.handleException(t),!1}}async stop({forceFlush:t=!1,reason:n}={}){var i,o,s;if(!this._isEnabled)return;this._isEnabled=!1,this.recordingMode="buffer";const r=n??"manual";(o=$e())==null||o.emit("replayEnd",{sessionId:(i=this.session)==null?void 0:i.id,reason:r});try{it&&ot.log(`Stopping Replay triggered by ${r}`),rg(),this._removeListeners(),this.stopRecording(),this._debouncedFlush.cancel(),t&&await this._flush({force:!0}),(s=this.eventBuffer)==null||s.destroy(),this.eventBuffer=null,Ppe(this)}catch(a){this.handleException(a)}}pause(){this._isPaused||(this._isPaused=!0,this.stopRecording(),it&&ot.log("Pausing replay"))}resume(){!this._isPaused||!this._checkSession()||(this._isPaused=!1,this.startRecording(),it&&ot.log("Resuming replay"))}async sendBufferedReplayOrFlush({continueRecording:t=!0}={}){if(this.recordingMode==="session")return this.flushImmediate();const n=Date.now();it&&ot.log("Converting buffer to session"),await this.flushImmediate();const r=this.stopRecording();!t||!r||this.recordingMode!=="session"&&(this.recordingMode="session",this.session&&(this.session.dirty=!1,this._updateUserActivity(n),this._updateSessionActivity(n),this._maybeSaveSession(),v3(this.session.id)),this.startRecording())}addUpdate(t){const n=t();this.recordingMode==="buffer"||!this._isEnabled||n!==!0&&this._debouncedFlush()}triggerUserActivity(){if(this._updateUserActivity(),!this._stopRecording){if(!this._checkSession())return;this.resume();return}this.checkAndHandleExpiredSession(),this._updateSessionActivity()}updateUserActivity(){this._updateUserActivity(),this._updateSessionActivity()}conditionalFlush(){return this.recordingMode==="buffer"?Promise.resolve():this.flushImmediate()}flush(){return this._debouncedFlush()}flushImmediate(){return this._debouncedFlush(),this._debouncedFlush.flush()}cancelFlush(){this._debouncedFlush.cancel()}getSessionId(t){var n,r;if(!(t&&((n=this.session)==null?void 0:n.sampled)===!1))return(r=this.session)==null?void 0:r.id}checkAndHandleExpiredSession(){var t;if(this._lastActivity&&a2(this._lastActivity,this.timeouts.sessionIdlePause)&&((t=this.session)==null?void 0:t.sampled)==="session"){this.pause();return}return!!this._checkSession()}setInitialState(){const t=`${tn.location.pathname}${tn.location.hash}${tn.location.search}`,n=`${tn.location.origin}${t}`;this.performanceEntries=[],this.replayPerformanceEntries=[],this._clearContext(),this._context.initialUrl=n,this._context.
652initialTimestamp=Date.now(),this._context.urls.push(n)}throttledAddEvent(t,n){const r=this._throttledAddEvent(t,n);if(r===I$){const i=wo({category:"replay.throttled"});this.addUpdate(()=>!zC(this,{type:Wfe,timestamp:i.timestamp||0,data:{tag:"breadcrumb",payload:i,metric:!0}}))}return r}getCurrentRoute(){const t=this.lastActiveSpan||bn(),n=t&&En(t),i=(n&&ct(n).data||{})[nr];if(!(!n||!i||!["route","custom"].includes(i)))return ct(n).description}_initializeRecording(){var t;this.setInitialState(),this._updateSessionActivity(),this.eventBuffer=kpe({useCompression:this._options.useCompression,workerUrl:this._options.workerUrl}),this._removeListeners(),this._addListeners(),this._isEnabled=!0,this._isPaused=!1,this.session&&((t=$e())==null||t.emit("replayStart",{sessionId:this.session.id,recordingMode:this.recordingMode})),this.startRecording(),this.recordingMode==="session"&&this.session&&v3(this.session.id)}_initializeSessionForSampling(t){const n=this._options.errorSampleRate>0,r=Ey({sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration,previousSessionId:t},{stickySession:this._options.stickySession,sessionSampleRate:this._options.sessionSampleRate,allowBuffering:n});this.session=r}_checkSession(){if(!this.session)return!1;const t=this.session;return ng(t,{sessionIdleExpire:this.timeouts.sessionIdleExpire,maxReplayDuration:this._options.maxReplayDuration})?(this._refreshSession(t),!1):!0}async _refreshSession(t){this._isEnabled&&(await this.stop({reason:"sessionExpired"}),this.initializeSampling(t.id))}_addListeners(){try{tn.document.addEventListener("visibilitychange",this._handleVisibilityChange),tn.addEventListener("blur",this._handleWindowBlur),tn.addEventListener("focus",this._handleWindowFocus),tn.addEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.addListeners(),this._hasInitializedCoreListeners||(Mhe(this),this._hasInitializedCoreListeners=!0)}catch(t){this.handleException(t)}this._performanceCleanupCallback=Cpe(this)}_removeListeners(){try{tn.document.removeEventListener("visibilitychange",this._handleVisibilityChange),tn.removeEventListener("blur",this._handleWindowBlur),tn.removeEventListener("focus",this._handleWindowFocus),tn.removeEventListener("keydown",this._handleKeyboardEvent),this.clickDetector&&this.clickDetector.removeListeners(),this._performanceCleanupCallback&&this._performanceCleanupCallback()}catch(t){this.handleException(t)}}_doChangeToBackgroundTasks(t){if(!this.session)return;if(ng(this.session,{maxReplayDuration:this._options.maxReplayDuration,sessionIdleExpire:this.timeouts.sessionIdleExpire})){rg();return}t&&this._createCustomBreadcrumb(t),this.conditionalFlush()}_doChangeToForegroundTasks(t){if(!this.session)return;if(!this.checkAndHandleExpiredSession()){it&&ot.log("Document has become active, but session has expired");return}t&&this._createCustomBreadcrumb(t)}_updateUserActivity(t=Date.now()){this._lastActivity=t}_updateSessionActivity(t=Date.now()){this.session&&(this.session.lastActivity=t,this._maybeSaveSession())}_createCustomBreadcrumb(t){this.addUpdate(()=>{this.throttledAddEvent({type:gt.Custom,timestamp:t.timestamp||0,data:{tag:"breadcrumb",payload:t}})})}_addPerformanceEntries(){let t=hpe(this.performanceEntries).concat(this.replayPerformanceEntries);if(this.performanceEntries=[],this.replayPerformanceEntries=[],this._requiresManualStart){const n=this._context.initialTimestamp/1e3;t=t.filter(r=>r.start>=n)}return Promise.all(t0(this,t))}_clearContext(){this._context.errorIds.clear(),this._context.traceIds.clear(),this._context.segmentNames.clear(),this._context.urls=[]}_updateInitialTimestampFromEventBuffer(){const{session:t,eventBuffer:n}=this;if(!t||!n||this._requiresManualStart||t.segmentId)return;const r=n.getEarliestTimestamp();r&&r<this._context.initialTimestamp&&(this._context.initialTimestamp=r)}_popEventContext(){const t={initialTimestamp:this._context.initialTimestamp,initialUrl:this._context.initialUrl,errorIds:Array.from(this._context.errorIds),traceIds:Array.from(this._context.traceIds),segmentNames:Array.from(this._context.segmentNames),urls:this._context.urls};return this._clearContext(),t}async _runFlush(){var n;const t=this.getSessionId();if(!this.session||!this.eventBuffer||!t){it&&ot.error("No session or eventBuffer found to flush.");return}if(await this._addPerformanceEntries(),!!((n=this.eventBuffer)!=null&&n.hasEvents)&&(await Rhe(this),!!this.eventBuffer&&t===this.getSessionId()))try{this._updateInitialTimestampFromEventBuffer();const r=Date.now();
652if(r-this._context.initialTimestamp>this._options.maxReplayDuration+3e4)throw new y3;const i=this._popEventContext(),o=this.session.segmentId++;this._maybeSaveSession();const s=await this.eventBuffer.finish();await A$({replayId:t,recordingData:s,segmentId:o,eventContext:i,session:this.session,timestamp:r,onError:a=>this.handleException(a)})}catch(r){this.handleException(r),this.stop({reason:"sendError"});const i=$e();if(i){let o;r instanceof KC?o="ratelimit_backoff":r instanceof y3?o="invalid":o="send_error",i.recordDroppedEvent(o,"replay")}}}async _flush({force:t=!1}={}){if(!this._isEnabled&&!t)return;if(!this.checkAndHandleExpiredSession()){it&&ot.error("Attempting to finish replay event after session expired.");return}if(!this.session)return;const n=this.session.started,i=Date.now()-n;this._debouncedFlush.cancel();const o=i<this._options.minReplayDuration,s=i>this._options.maxReplayDuration+5e3;if(o||s){it&&ot.log(`Session duration (${Math.floor(i/1e3)}s) is too ${o?"short":"long"}, not sending replay.`),o&&this._debouncedFlush();return}const a=this.eventBuffer;a&&this.session.segmentId===0&&!a.hasCheckout&&it&&ot.log("Flushing initial segment without checkout.");const l=!!this._flushLock;this._flushLock||(this._flushLock=this._runFlush());try{await this._flushLock}catch(u){this.handleException(u)}finally{this._flushLock=void 0,l&&this._debouncedFlush()}}_maybeSaveSession(){this.session&&this._options.stickySession&&e0(this.session)}_onMutationHandler(t){const{ignoreMutations:n}=this._options._experiments;if(n!=null&&n.length&&t.some(a=>{const l=Fhe(a.target),u=n.join(",");return l==null?void 0:l.matches(u)}))return!1;const r=t.length,i=this._options.mutationLimit,o=this._options.mutationBreadcrumbLimit,s=i&&r>i;if(r>o||s){const a=wo({category:"replay.mutations",data:{count:r,limit:s}});this._createCustomBreadcrumb(a)}return s?(this.stop({reason:"mutationLimit",forceFlush:this.recordingMode==="session"}),!1):!0}}function bd(e,t){return[...e,...t].join(",")}function Khe({mask:e,unmask:t,block:n,unblock:r,ignore:i}){const o=["base","iframe[srcdoc]:not([src])"],s=bd(e,[".sentry-mask","[data-sentry-mask]"]),a=bd(t,[]);return{maskTextSelector:s,unmaskTextSelector:a,blockSelector:bd(n,[".sentry-block","[data-sentry-block]",...o]),unblockSelector:bd(r,[]),ignoreSelector:bd(i,[".sentry-ignore","[data-sentry-ignore]",'input[type="file"]'])}}function Xhe({el:e,key:t,maskAttributes:n,maskAllText:r,privacyOptions:i,value:o}){if(i.unmaskTextSelector&&e.matches(i.unmaskTextSelector))return o;const s=n.includes(t),a=r&&t==="value"&&e.tagName==="INPUT"&&["submit","button"].includes(e.getAttribute("type")||"");return s||a?o.replace(/[\S]/g,"*"):o}const b3='img,image,svg,video,object,picture,embed,map,audio,link[rel="icon"],link[rel="apple-touch-icon"]',Zhe=["content-length","content-type","accept"],Yhe=Symbol.for("sentry__originalRequestBody");let _3=!1,S3=!1;function Jhe(){if(typeof Request>"u"||S3)return;const e=Request;try{const t=function(n,r){const i=new e(n,r);return(r==null?void 0:r.body)!=null&&(i[Yhe]=r.body),i};t.prototype=e.prototype,Ke.Request=t,S3=!0}catch{}}const Qhe=e=>new eme(e);class eme{constructor({flushMinDelay:t=bde,flushMaxDelay:n=_de,minReplayDuration:r=Ade,maxReplayDuration:i=X5,stickySession:o=!0,useCompression:s=!0,workerUrl:a,_experiments:l={},maskAllText:u=!0,maskAllInputs:c=!0,blockAllMedia:d=!0,mutationBreadcrumbLimit:f=750,mutationLimit:p=1e4,slowClickTimeout:h=7e3,slowClickIgnoreSelectors:m=[],networkDetailAllowUrls:v=[],networkDetailDenyUrls:g=[],networkCaptureBodies:y=!0,networkRequestHeaders:_=[],networkResponseHeaders:b=[],mask:S=[],maskAttributes:C=["title","placeholder","aria-label"],unmask:E=[],block:w=[],unblock:T=[],ignore:A=[],maskFn:L,beforeAddRecordingEvent:x,beforeErrorSampling:k,onError:M,attachRawBodyFromRequest:z=!1}={}){this.name="Replay";const P=Khe({mask:S,unmask:E,block:w,unblock:T,ignore:A});if(this._recordingOptions={maskAllInputs:c,maskAllText:u,maskInputOptions:{password:!0},maskTextFn:L,maskInputFn:L,maskAttributeFn:(H,q,de)=>Xhe({maskAttributes:C,maskAllText:u,privacyOptions:P,key:H,value:q,el:de}),...P,slimDOMOptions:"all",inlineStylesheet:!0,inlineImages:!1,collectFonts:!0,errorHandler:H=>{try{H.__rrweb__=!0}catch{}},recordCrossOriginIframes:!!l.recordCrossOriginIframes},this._initialOptions={flushMinDelay:t,flushMaxDelay:n,minReplayDuration:Math.min(r,Ide),maxReplayDuration:Math.min(i,X5),stickySession:o,useCompression:s,workerUrl:a,blockAllMedia:d,maskAllInputs:c,maskAllText:u,mutationBreadcrumbLimit:f,mutationLimit:p,slowClickTimeout:h,slowClickIgnoreSelectors:m,networkDetailAllowUrls:v,networkDetailDenyUrls:g,networkCaptureBodies:y,networkRequestHeaders:E3(_),networkResponseHeaders:E3(b),beforeAddRecordingEvent:x,beforeErrorSampling:k,onError:M,attachRawBodyFromRequest:z,_experiments:l},this._initialOptions.blockAllMedia&&(this._recordingOptions.blockSelector=this._recordingOptions.blockSelector?`${this._recordingOptions.blockSelector},${b3}`:b3,this._recordingOptions.ignoreCSSAttributes=new Set(["background-image"])),this._isInitialized&&va())throw new Error("Multiple Sentry Session Replay instances are not supported");this._isInitialized=!0}get _isInitialized(){return _3}set _isInitialized(t){_3=t}afterAllSetup(t){!va()||this._replay||(this._initialOptions.attachRawBodyFromRequest&&Jhe(),this._setup(t),this._initialize(t))}start(){this._replay&&this._replay.start()}
652startBuffering(){this._replay&&this._replay.startBuffering()}stop(t){return this._replay?this._replay.stop({forceFlush:(t==null?void 0:t.flush)??this._replay.recordingMode==="session",reason:"manual"}):Promise.resolve()}flush(t){return this._replay?this._replay.isEnabled()?this._replay.sendBufferedReplayOrFlush(t):(this._replay.start(),Promise.resolve()):Promise.resolve()}getReplayId(t){var n;if((n=this._replay)!=null&&n.isEnabled())return this._replay.getSessionId(t)}getRecordingMode(){var t;if((t=this._replay)!=null&&t.isEnabled())return this._replay.recordingMode}processSpan(t){const n=this.getReplayId(!0);n&&(ma(t,{"sentry.replay_id":n}),this.getRecordingMode()==="buffer"&&ma(t,{"sentry._internal.replay_is_buffering":!0}))}_initialize(t){this._replay&&(this._maybeLoadFromReplayCanvasIntegration(t),this._replay.initializeSampling())}_setup(t){const n=tme(this._initialOptions,t);this._replay=new qhe({options:n,recordingOptions:this._recordingOptions})}_maybeLoadFromReplayCanvasIntegration(t){try{const n=t.getIntegrationByName("ReplayCanvas");if(!n)return;this._replay._canvas=n.getOptions()}catch{}}}function tme(e,t){const n=t.getOptions(),r={sessionSampleRate:0,errorSampleRate:0,...e},i=Cl(n.replaysSessionSampleRate),o=Cl(n.replaysOnErrorSampleRate);return i==null&&o==null&&ho(()=>{console.warn("Replay is disabled because neither `replaysSessionSampleRate` nor `replaysOnErrorSampleRate` are set.")}),i!=null&&(r.sessionSampleRate=i),o!=null&&(r.errorSampleRate=o),r}function E3(e){return[...Zhe,...e.map(t=>t.toLowerCase())]}function nme(){const e=$e();return e==null?void 0:e.getIntegrationByName("Replay")}var rme=Object.defineProperty,ime=(e,t,n)=>t in e?rme(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,C3=(e,t,n)=>ime(e,typeof t!="symbol"?t+"":t,n);class ome{constructor(){C3(this,"idNodeMap",new Map),C3(this,"nodeMetaMap",new WeakMap)}getId(t){var r;return t?((r=this.getMeta(t))==null?void 0:r.id)??-1:-1}getNode(t){return this.idNodeMap.get(t)||null}getIds(){return Array.from(this.idNodeMap.keys())}getMeta(t){return this.nodeMetaMap.get(t)||null}removeNodeFromMap(t){const n=this.getId(t);this.idNodeMap.delete(n),t.childNodes&&t.childNodes.forEach(r=>this.removeNodeFromMap(r))}has(t){return this.idNodeMap.has(t)}hasNode(t){return this.nodeMetaMap.has(t)}add(t,n){const r=n.id;this.idNodeMap.set(r,t),this.nodeMetaMap.set(t,n)}replace(t,n){const r=this.getNode(t);if(r){const i=this.nodeMetaMap.get(r);i&&this.nodeMetaMap.set(n,i)}this.idNodeMap.set(t,n)}reset(){this.idNodeMap=new Map,this.nodeMetaMap=new WeakMap}}function sme(){return new ome}function ame(e,t){for(let n=e.classList.length;n--;){const r=e.classList[n];if(t.test(r))return!0}return!1}function c2(e,t,n=1/0,r=0){return!e||e.nodeType!==e.ELEMENT_NODE||r>n?-1:t(e)?r:c2(e.parentNode,t,n,r+1)}function w3(e,t){return n=>{const r=n;if(r===null)return!1;try{if(e){if(typeof e=="string"){if(r.matches(`.${e}`))return!0}else if(ame(r,e))return!0}return!!(t&&r.matches(t))}catch{return!1}}}const Iu=`Please stop import mirror directly. Instead of that,\r 653now you can use replayer.getMirror() to access the mirror instance of a replayer,\r 654or you can use record.mirror to access the mirror instance during recording.`;let T3={map:{},getId(){return console.error(Iu),-1},getNode(){return console.error(Iu),null},removeNodeFromMap(){console.error(Iu)},has(){return console.error(Iu),!1},reset(){console.error(Iu)}};typeof window<"u"&&window.Proxy&&window.Reflect&&(T3=new Proxy(T3,{get(e,t,n){return t==="map"&&console.error(Iu),Reflect.get(e,t,n)}}));function XC(e,t,n,r,i=window){const o=i.Object.getOwnPropertyDescriptor(e,t);return i.Object.defineProperty(e,t,r?n:{set(s){L$(()=>{n.set.call(this,s)},0),o&&o.set&&o.set.call(this,s)}}),()=>XC(e,t,o||{},!0)}function ZC(e,t,n){try{if(!(t in e))return()=>{};const r=e[t],i=n(r);return typeof i=="function"&&(i.prototype=i.prototype||{},Object.defineProperties(i,{__rrweb_original__:{enumerable:!1,value:r}})),e[t]=i,()=>{e[t]=r}}catch{return()=>{}}}Date.now().toString();function lme(e){if(!e)return null;try{return e.nodeType===e.ELEMENT_NODE?e:e.parentElement}catch{return null}}function r0(e,t,n,r,i){if(!e)return!1;const o=lme(e);if(!o)return!1;const s=w3(t,n);if(!i){const u=r&&o.matches(r);return s(o)&&!u}const a=c2(o,s);let l=-1;return a<0?!1:(r&&(l=c2(o,w3(null,r))),a>-1&&l<0?!0:a<l)}const A3={};function x$(e){const t=A3[e];if(t)return t;const n=window.document;let r=window[e];if(n&&typeof n.createElement=="function")try{const i=n.createElement("iframe");i.hidden=!0,n.head.appendChild(i);const o=i.contentWindow;o&&o[e]&&(r=o[e]),n.head.removeChild(i)}catch{}return A3[e]=r.bind(window)}function Oa(...e){return x$("requestAnimationFrame")(...e)}
vendor: 2,713 bytes, line 654
654function L$(...e){return x$("setTimeout")(...e)}var Ac=(e=>(e[e["2D"]=0]="2D",e[e.WebGL=1]="WebGL",e[e.WebGL2=2]="WebGL2",e))(Ac||{});let Rm;function ume(e){Rm=e}const Cy=e=>Rm?(...n)=>{try{return e(...n)}catch(r){if(Rm&&Rm(r)===!0)return()=>{};throw r}}:e;var $u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",cme=typeof Uint8Array>"u"?[]:new Uint8Array(256);for(var Dh=0;Dh<$u.length;Dh++)cme[$u.charCodeAt(Dh)]=Dh;var dme=function(e){var t=new Uint8Array(e),n,r=t.length,i="";for(n=0;n<r;n+=3)i+=$u[t[n]>>2],i+=$u[(t[n]&3)<<4|t[n+1]>>4],i+=$u[(t[n+1]&15)<<2|t[n+2]>>6],i+=$u[t[n+2]&63];return r%3===2?i=i.substring(0,i.length-1)+"=":r%3===1&&(i=i.substring(0,i.length-2)+"=="),i};const I3=new Map;function fme(e,t){let n=I3.get(e);return n||(n=new Map,I3.set(e,n)),n.has(t)||n.set(t,[]),n.get(t)}const k$=(e,t,n)=>{if(!e||!(R$(e,t)||typeof e=="object"))return;const r=e.constructor.name,i=fme(n,r);let o=i.indexOf(e);return o===-1&&(o=i.length,i.push(e)),o};function Pm(e,t,n){if(e instanceof Array)return e.map(r=>Pm(r,t,n));if(e===null)return e;if(e instanceof Float32Array||e instanceof Float64Array||e instanceof Int32Array||e instanceof Uint32Array||e instanceof Uint8Array||e instanceof Uint16Array||e instanceof Int16Array||e instanceof Int8Array||e instanceof Uint8ClampedArray)return{rr_type:e.constructor.name,args:[Object.values(e)]};if(e instanceof ArrayBuffer){const r=e.constructor.name,i=dme(e);return{rr_type:r,base64:i}}else{if(e instanceof DataView)return{rr_type:e.constructor.name,args:[Pm(e.buffer,t,n),e.byteOffset,e.byteLength]};if(e instanceof HTMLImageElement){const r=e.constructor.name,{src:i}=e;return{rr_type:r,src:i}}else if(e instanceof HTMLCanvasElement){const r="HTMLImageElement",i=e.toDataURL();return{rr_type:r,src:i}}else{if(e instanceof ImageData)return{rr_type:e.constructor.name,args:[Pm(e.data,t,n),e.width,e.height]};if(R$(e,t)||typeof e=="object"){const r=e.constructor.name,i=k$(e,t,n);return{rr_type:r,index:i}}}}return e}const M$=(e,t,n)=>e.map(r=>Pm(r,t,n)),R$=(e,t)=>!!["WebGLActiveInfo","WebGLBuffer","WebGLFramebuffer","WebGLProgram","WebGLRenderbuffer","WebGLShader","WebGLShaderPrecisionFormat","WebGLTexture","WebGLUniformLocation","WebGLVertexArrayObject","WebGLVertexArrayObjectOES"].filter(i=>typeof t[i]=="function").find(i=>e instanceof t[i]);function pme(e,t,n,r,i){const o=[],s=Object.getOwnPropertyNames(t.CanvasRenderingContext2D.prototype);for(const a of s)try{if(typeof t.CanvasRenderingContext2D.prototype[a]!="function")continue;const l=ZC(t.CanvasRenderingContext2D.prototype,a,function(u){return function(...c){return r0(this.canvas,n,r,i,!0)||L$(()=>{const d=M$(c,t,this);e(this.canvas,{type:Ac["2D"],property:a,args:d})}
654,0),u.apply(this,c)}});o.push(l)}catch{const l=XC(t.CanvasRenderingContext2D.prototype,a,{set(u){e(this.canvas,{type:Ac["2D"],property:a,args:[u],setter:!0})}});o.push(l)}return()=>{o.forEach(a=>a())}}function hme(e){return e==="experimental-webgl"?"webgl":e}function x3(e,t,n,r,i){const o=[];try{const s=ZC(e.HTMLCanvasElement.prototype,"getContext",function(a){return function(l,...u){if(!r0(this,t,n,r,!0)){const c=hme(l);if("__context"in this||(this.__context=c),i&&["webgl","webgl2"].includes(c))if(u[0]&&typeof u[0]=="object"){const d=u[0];d.preserveDrawingBuffer||(d.preserveDrawingBuffer=!0)}else u.splice(0,1,{preserveDrawingBuffer:!0})}return a.apply(this,[l,...u])}});o.push(s)}catch{console.error("failed to patch HTMLCanvasElement.prototype.getContext")}return()=>{o.forEach(s=>s())}}function L3(e,t,n,r,i,o,s,a){const l=[],u=Object.getOwnPropertyNames(e);for(const c of u)if(!["isContextLost","canvas","drawingBufferWidth","drawingBufferHeight"].includes(c))try{if(typeof e[c]!="function")continue;const d=ZC(e,c,function(f){return function(...p){const h=f.apply(this,p);if(k$(h,a,this),"tagName"in this.canvas&&!r0(this.canvas,r,i,o,!0)){const m=M$(p,a,this),v={type:t,property:c,args:m};n(this.canvas,v)}return h}});l.push(d)}catch{const d=XC(e,c,{set(f){n(this.canvas,{type:t,property:c,args:[f],setter:!0})}});l.push(d)}return l}function mme(e,t,n,r,i,o){const s=[];return s.push(...L3(t.WebGLRenderingContext.prototype,Ac.WebGL,e,n,r,i,o,t)),typeof t.WebGL2RenderingContext<"u"&&s.push(...L3(t.WebGL2RenderingContext.prototype,Ac.WebGL2,e,n,r,i,o,t)),()=>{s.forEach(a=>a())}}const vme='for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t="undefined"==typeof Uint8Array?[]:new Uint8Array(256),a=0;a<64;a++)t[e.charCodeAt(a)]=a;var n=function(t){var a,n=new Uint8Array(t),r=n.length,s="";for(a=0;a<r;a+=3)s+=e[n[a]>>2],s+=e[(3&n[a])<<4|n[a+1]>>4],s+=e[(15&n[a+1])<<2|n[a+2]>>6],s+=e[63&n[a+2]];return r%3==2?s=s.substring(0,s.length-1)+"=":r%3==1&&(s=s.substring(0,s.length-2)+"=="),s};const r=new Map,s=new Map;const i=self;i.onmessage=async function(e){if(!("OffscreenCanvas"in globalThis))return i.postMessage({id:e.data.id});{const{id:t,bitmap:a,width:o,height:f,maxCanvasSize:c,dataURLOptions:g}=e.data,u=async function(e,t,a){const r=e+"-"+t;if("OffscreenCanvas"in globalThis){if(s.has(r))return s.get(r);const i=new OffscreenCanvas(e,t);i.getContext("2d");const o=await i.convertToBlob(a),f=await o.arrayBuffer(),c=n(f);return s.set(r,c),c}return""}(o,f,g),[h,d]=function(e,t,a){if(!a)return[e,t];const[n,r]=a;if(e<=n&&t<=r)return[e,t];let s=e,i=t;return s>n&&(i=Math.floor(n*t/e),s=n),i>r&&(s=Math.floor(r*e/t),i=r),[s,i]}(o,f,c),l=new OffscreenCanvas(h,d),w=l.getContext("bitmaprenderer"),p=h===o&&d===f?a:await createImageBitmap(a,{resizeWidth:h,resizeHeight:d,resizeQuality:"low"});w?.transferFromImageBitmap(p),a.close();const y=await l.convertToBlob(g),v=y.type,b=await y.arrayBuffer(),m=n(b);if(p.close(),!r.has(t)&&await u===m)return r.set(t,m),i.postMessage({id:t});if(r.get(t)===m)return i.postMessage({id:t});i.postMessage({id:t,type:v,base64:m,width:o,height:f}),r.set(t,m)}};';function gme(){const e=new Blob([vme]);return URL.createObjectURL(e)}class yme{constructor(t){this.pendingCanvasMutations=new Map,this.rafStamps={latestId:0,invokeId:null},this.shadowDoms=new Set,this.windowsSet=new WeakSet,this.windows=[],this.restoreHandlers=[],this.frozen=!1,this.locked=!1,this.snapshotInProgressMap=new Map,this.worker=null,this.lastSnapshotTime=0,this.processMutation=(a,l)=>{(this.rafStamps.invokeId&&this.rafStamps.latestId!==this.rafStamps.invokeId||!this.rafStamps.invokeId)&&(this.rafStamps.invokeId=this.rafStamps.latestId),this.pendingCanvasMutations.has(a)||this.pendingCanvasMutations.set(a,[]),this.pendingCanvasMutations.get(a).push(l)};const{enableManualSnapshot:n,sampling:r="all",win:i,recordCanvas:o,errorHandler:s}=t;t.sampling=r,this.mutationCb=t.mutationCb,this.mirror=t.mirror,this.options=t,s&&ume(s),(o&&typeof r=="number"||n)&&(this.worker=this.initFPSWorker()),this.addWindow(i),!n&&Cy(()=>{o&&r==="all"&&(this.startRAFTimestamping(),this.startPendingCanvasMutationFlusher()),o&&typeof r=="number"&&this.initCanvasFPSObserver()})()}reset(){var t;
654this.pendingCanvasMutations.clear(),this.restoreHandlers.forEach(n=>{try{n()}catch{}}),this.restoreHandlers=[],this.windowsSet=new WeakSet,this.windows=[],this.shadowDoms=new Set,(t=this.worker)==null||t.terminate(),this.worker=null,this.snapshotInProgressMap=new Map}freeze(){this.frozen=!0}unfreeze(){this.frozen=!1}lock(){this.locked=!0}unlock(){this.locked=!1}addWindow(t){const{sampling:n="all",blockClass:r,blockSelector:i,unblockSelector:o,recordCanvas:s,enableManualSnapshot:a}=this.options;if(!this.windowsSet.has(t)){if(a){this.windowsSet.add(t),this.windows.push(new WeakRef(t));return}Cy(()=>{if(s&&n==="all"&&this.initCanvasMutationObserver(t,r,i,o),s&&typeof n=="number"){const l=x3(t,r,i,o,!0);this.restoreHandlers.push(()=>{l()})}})(),this.windowsSet.add(t),this.windows.push(new WeakRef(t))}}addShadowRoot(t){this.shadowDoms.add(new WeakRef(t))}resetShadowRoots(){this.shadowDoms=new Set}snapshot(t,n){if(n!=null&&n.skipRequestAnimationFrame){this.takeSnapshot(performance.now(),!0,t);return}Oa(r=>this.takeSnapsh
654ot(r,!0,t))}initFPSWorker(){const t=new Worker(gme());return t.onmessage=n=>{const r=n.data,{id:i}=r;if(this.snapshotInProgressMap.set(i,!1),!("base64"in r))return;const{base64:o,type:s,width:a,height:l}=r;this.mutationCb({id:i,type:Ac["2D"],commands:[{property:"clearRect",args:[0,0,a,l]},{property:"drawImage",args:[{rr_type:"ImageBitmap",args:[{rr_type:"Blob",data:[{rr_type:"ArrayBuffer",base64:o}],type:s}]},0,0,a,l]}]})},t}initCanvasFPSObserver(){let t;if(!this.windows.length&&!this.shadowDoms.size)return;const n=r=>{this.takeSnapshot(r,!1),t=Oa(n)};t=Oa(n),this.restoreHandlers.push(()=>{t&&cancelAnimationFrame(t)})}initCanvasMutationObserver(t,n,r,i){const o=x3(t,n,r,i,!1),s=pme(this.processMutation.bind(this),t,n,r,i),a=mme(this.processMutation.bind(this),t,n,r,i,this.mirror);this.restoreHandlers.push(()=>{o(),s(),a()})}getCanvasElements(t,n,r){const i=[],o=s=>{s.querySelectorAll("canvas").forEach(a=>{r0(a,t,n,r,!0)||i.push(a)})};for(const s of this.windows){const a=s.deref();let l;try{l=a&&a.document}catch{}l&&o(l)}for(const s of this.shadowDoms){const a=s.deref();a&&o(a)}return i}takeSnapshot(t,n,r){const{sampling:i,blockClass:o,blockSelector:s,unblockSelector:a,dataURLOptions:l,maxCanvasSize:u}=this.options,d=1e3/(i==="all"?2:i||2);return this.lastSnapshotTime&&t-this.lastSnapshotTime<d?!1:(this.lastSnapshotTime=t,(r?[r]:this.getCanvasElements(o,s,a)).forEach(h=>{var v;const m=this.mirror.getId(h);if(!(!this.mirror.hasNode(h)||!h.width||!h.height||this.snapshotInProgressMap.get(m))){if(this.snapshotInProgressMap.set(m,!0),!n&&["webgl","webgl2"].includes(h.__context)){const g=h.getContext(h.__context);((v=g==null?void 0:g.getContextAttributes())==null?void 0:v.preserveDrawingBuffer)===!1&&g.clear(g.COLOR_BUFFER_BIT)}createImageBitmap(h).then(g=>{var y;(y=this.worker)==null||y.postMessage({id:m,bitmap:g,width:h.width,height:h.height,dataURLOptions:l,maxCanvasSize:u},[g])}).catch(g=>{Cy(()=>{throw this.snapshotInProgressMap.delete(m),g})()})}}),!0)}startPendingCanvasMutationFlusher(){Oa(()=>this.flushPendingCanvasMutations())}startRAFTimestamping(){const t=n=>{this.rafStamps.latestId=n,Oa(t)};Oa(t)}flushPendingCanvasMutations(){this.pendingCanvasMutations.forEach((t,n)=>{const r=this.mirror.getId(n);this.flushPendingCanvasMutationFor(n,r)}),Oa(()=>this.flushPendingCanvasMutations())}flushPendingCanvasMutationFor(t,n){if(this.frozen||this.locked)return;const r=this.pendingCanvasMutations.get(t);if(!r||n===-1)return;const i=r.map(s=>{const{type:a,...l}=s;return l}),{type:o}=r[0];this.mutationCb({id:n,type:o,commands:i}),this.pendingCanvasMutations.delete(t)}}var BM;try{if(Array.from([1],e=>e*2)[0]!==2){const e=document.createElement("iframe");document.body.appendChild(e),Array.from=((BM=e.contentWindow)==null?void 0:BM.Array.from)||Array.from,document.body.removeChild(e)}}catch(e){console.debug("Unable to override Array.from",e)}sme();var k3;(function(e){e[e.NotStarted=0]="NotStarted",e[e.Running=1]="Running",e[e.Stopped=2]="Stopped"})(k3||(k3={}));const M3={low:{sampling:{canvas:1},dataURLOptions:{type:"image/webp",quality:.25}},medium:{sampling:{canvas:2},dataURLOptions:{type:"image/webp",quality:.4}},high:{sampling:{canvas:4},dataURLOptions:{type:"image/webp",quality:.5}}},bme="ReplayCanvas",Vh=1280,_me=(e={})=>{const[t,n]=e.maxCanvasSize||[],r={quality:e.quality||"medium",enableManualSnapshot:e.enableManualSnapshot,maxCanvasSize:[t?Math.min(t,Vh):Vh,n?Math.min(n,Vh):Vh]};let i,o;const s=new Promise(a=>o=a);return{name:bme,getOptions(){const{quality:a,enableManualSnapshot:l,maxCanvasSize:u}=r;return{enableManualSnapshot:l,recordCanvas:!0,getCanvasManager:c=>{const d=new yme({...c,enableManualSnapshot:l,maxCanvasSize:u,errorHandler:f=>{try{typeof f=="object"&&(f.__rrweb__=!0)}catch{}}});return i=d,o(d),d},...M3[a]||M3.medium}},async snapshot(a,l){(i||await s).snapshot(a,l)}}},Sme=_me;function Eme(e){return e.split(",").some(t=>t.trim().startsWith("sentry-"))}function P$(e){try{return new URL(e,Be.location.origin).href}catch{return}}function Cme(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.
654initiatorType==="xmlhttprequest")}function O$(e){try{return new Headers(e)}catch{return}}const YC={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,trackFetchStreamPerformance:!1};function $$(e,t){const{traceFetch:n,traceXHR:r,shouldCreateSpanForRequest:i,enableHTTPTimings:o,tracePropagationTargets:s,onRequestSpanStart:a,onRequestSpanEnd:l}={...YC,...t},u=typeof i=="function"?i:p=>!0,c=p=>Tme(p,s),d={},f=e.getOptions().propagateTraceparent;n&&N1(p=>{const h=Dre(p,u,c,d,{propagateTraceparent:f,onRequestSpanEnd:l});if(h){const m=P$(p.fetchData.url),v=m?dl(m).host:void 0,g=m?eo(m):void 0;h.setAttributes({[a6]:g,[ql]:g,"server.address":v}),o&&R3(h,e),a==null||a(h,{headers:p.headers})}}),r&&LC(p=>{var m;const h=Ame(p,u,c,d,f,l);h&&(o&&R3(h,e),a==null||a(h,{headers:O$((m=p.xhr.__sentry_xhr_v3__)==null?void 0:m.request_headers)}))})}const wme=300;function R3(e,t){const{url:n}=ct(e).data;if(!n||typeof n!="string")return;let r=()=>void setTimeout(i);if(Ni(t)){const o=e.end.bind(e);e.end=s=>{const a=s??Xt();let l=!1;const u=()=>{l||(l=!0,setTimeout(i),o(a),clearTimeout(c))};r=u;const c=setTimeout(u,wme)}}const i=ba("resource",({entries:o})=>{o.forEach(s=>{Cme(s)&&s.name.endsWith(n)&&(e.setAttributes(h7(s)),r())})})}function Tme(e,t){const n=ya();if(n){let r,i;try{r=new URL(e,n),i=new URL(n).origin}catch{return!1}const o=r.origin===i;return t?xi(r.toString(),t)||o&&xi(r.pathname,t):o}else{const r=!!e.match(/^\/(?!\/)/);return t?xi(e,t):r}}function Ame(e,t,n,r,i,o){const s=e.xhr,a=s==null?void 0:s[ss];if(!s||s.__sentry_own_request__||!a)return;const{url:l,method:u}=a,c=Lr()&&t(l);if(e.endTimestamp){const b=s.__sentry_xhr_span_id__;if(!b)return;const S=r[b];S&&(c&&a.status_code!==void 0&&(Uf(S,a.status_code),S.end(),o==null||o(S,{headers:O$(y7(s)),error:e.error})),delete r[b]);return}const d=P$(l),f=dl(d||l),p=d?eo(d):void 0,h=eo(F6(l)),m=$e(),v=!!bn(),g=v||!!m&&Ni(m),y=c&&g?so({name:`${u} ${h}`,attributes:{url:eo(l),type:"xhr","http.method":u,"http.url":p,[ql]:p,"server.address":f==null?void 0:f.host,[Ct]:"auto.http.browser",[pn]:"http.client",...(f==null?void 0:f.search)&&{"http.query":f==null?void 0:f.search},...(f==null?void 0:f.hash)&&{"http.fragment":f==null?void 0:f.hash}}}):new wl,_=w1(y)&&v?void 0:y;return c&&!g&&(m==null||m.recordDroppedEvent("no_parent_span","span")),s.__sentry_xhr_span_id__=y.spanContext().spanId,r[s.__sentry_xhr_span_id__]=y,n(l)&&Ime(s,Lr()&&g?_:void 0,i),m&&m.emit("beforeOutgoingRequestSpan",y,e),y}function Ime(e,t,n){const{"sentry-trace":r,baggage:i,traceparent:o}=rC({span:t,propagateTraceparent:n});r&&xme(e,r,i,o)}function xme(e,t,n,r){var o;const i=(o=e.__sentry_xhr_v3__)==null?void 0:o.request_headers;if(!(i!=null&&i["sentry-trace"]||!e.setRequestHeader))try{if(e.setRequestHeader("sentry-trace",t),r&&!(i!=null&&i.traceparent)&&e.setRequestHeader("traceparent",r),n){const s=i==null?void 0:i.baggage;(!s||!Eme(s))&&e.setRequestHeader("baggage",n)}}catch{}}const P3=new WeakMap,O3=new WeakMap,Lme=9e4,kme=["text/event-stream","application/x-ndjson","application/stream+json"],N$=()=>({name:"FetchStreamPerformance",setup(){gse(e=>{if(e.response){const t=P3.get(e.response);if(t&&e.endTimestamp){t.end(e.endTimestamp);const n=O3.get(e.response);n&&clearTimeout(n)}}}),N1(e=>{var t,n,r,i;if(e.endTimestamp&&e.response){const o=((t=e.response.headers)==null?void 0:t.get("content-type"))||"";if((n=e.response.headers)!=null&&n.get("content-length")||!kme.some(f=>o.startsWith(f)))return;const s=((r=e.fetchData)==null?void 0:r.url)||"",a=((i=e.fetchData)==null?void 0:i.method)||"GET",l=zf(s),u=s.startsWith("data:")?eo(s):l?V6(l):s,c=so({name:`${a} ${u}`,startTime:e.endTimestamp,attributes:{url:eo(s),"http.method":a,type:"fetch",[pn]:"http.client.stream",[Ct]:"auto.http.browser.stream"}});P3.set(e.response,c);const d=setTimeout(()=>{c.isRecording()&&c.end()},Lme);O3.set(e.response,d)}})}}),H$="WebVitals",D$=(e={})=>{const t=new Set(e.ignore??[]);return{name:H$,setup(n){const r=Ni(n),{enableStandaloneClsSpans:i,enableStandaloneLcpSpans:o}=e._experiments??{},s=r||t.has("cls")?void 0:i||!1,a=r||t.has("lcp")?void 0:o||!1,l=Hle({recordClsStandaloneSpans:s,recordLcpStandaloneSpans:a,client:n}),u=new WeakSet;n.on("afterStartPageLoadSpan",c=>{u.add(c)}),n.on("spanEnd",c=>{u.delete(c)&&(l(),zle(c,{recordClsOnPageloadSpan:s===!1,recordLcpOnPageloadSpan:a===!1,spanStreamingEnabled:r}))}),r?(t.has("lcp")||fue(n),t.has("cls")||hue(n),t.has("inp")||vue()):t.has("inp")||aue()},afterAllSetup(){t.has("inp")||due()}}};function Mme(){Be.document?Be.document.addEventListener("visibilitychange",()=>{const e=bn();if(!e)return;const t=En(e);if(Be.document.hidden&&t){const n="cancelled",{op:r,status:i}=ct(t);Re&&X.log(`[Tracing] Transaction: ${n} -> since tab moved to the background, op: ${r}`),i||t.setStatus({code:At,message:n}),t.setAttribute("sentry.cancellation_reason","document.hidden"),t.end()}}):Re&&X.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const Rme=3600,V$="sentry_previous_trace",Pme="sentry.previous_trace";function Ome(e,{linkPreviousTrace:t,consistentTraceSampling:n}){const r=t==="session-storage";let i=r?Hme():void 0;e.on("spanStart",s=>{if(En(s)!==s)return;const a=nt().getPropagationContext();i=$me(i,s,a),r&&Nme(i)});let o=!0;n&&e.on("beforeSampling",s=>{if(!i)return;const a=nt(),l=a.getPropagationContext();if(o&&l.parentSpanId){o=!1;return}a.setPropagationContext({...l,dsc:{...l.dsc,sample_rate:String(i.sampleRate),sampled:String(d2(i.spanContext))},sampleRand:i.sampleRand}),s.parentSampled=d2(i.spanContext),s.parentSampleRate=i.sampleRate,s.spanAttributes={...s.spanAttributes,[CO]:i.sampleRate}})}function $me(e,t,n){const r=ct(t);function i(){var a,l;try{const u=Number(((a=r.data)==null?void 0:a[b1])??((l=n.dsc)==null?void 0:l.sample_rate));return Number.isNaN(u)?0:u}catch{return 0}}const o={spanContext:t.spanContext(),startTimestamp:r.start_timestamp,sampleRate:i(),sampleRand:n.sampleRand};if(!e)return o;const s=e.spanContext;return s.traceId===r.trace_id?e:(Date.now()/1e3-e.startTimestamp<=Rme&&(Re&&X.log(`Adding previous_trace \`${JSON.stringify(s)}\` link to span \`${JSON.stringify({op:r.op,...t.spanContext()})}\``),t.addLink({context:s,attributes:{[gQ]:"previous_trace"}}),t.setAttribute(Pme,`${s.traceId}-${s.spanId}-${d2(s)?1:0}`)),o)}function Nme(e){try{Be.sessionStorage.setItem(V$,JSON.stringify(e))}catch(t){Re&&X.warn("Could not store previous trace in sessionStorage",t)}}function Hme(){var e;try{const t=(e=Be.sessionStorage)==null?void 0:e.getItem(V$);return JSON.parse(t)}catch{return}}function d2(e){return e.traceFlags===1}const Dme="BrowserTracing",Vme=/Googlebot|Google-InspectionTool|Storebot-Google|Bingbot|Slurp|DuckDuckBot|Baiduspider|YandexBot|Facebot|facebookexternalhit|LinkedInBot|Twitterbot|Applebot/i;function F$(){const e=Be.navigator;return e!=null&&e.userAgent?Vme.test(e.userAgent):!1}const Fme={...gm,instrumentNavigation:!0,instrumentPageLoad:!0,markBackgroun
654dSpan:!0,enableLongTask:!0,enableLongAnimationFrame:!0,enableInp:!0,ignoreResourceSpans:[],ignorePerformanceApiSpans:[],detectRedirects:!0,linkPreviousTrace:"in-memory",consistentTraceSampling:!1,enableReportPageLoaded:!1,_experiments:{},...YC},$3=(e={})=>{"enableElementTiming"in e&&ho(()=>{console.warn("[Sentry] `enableElementTiming` is deprecated and no longer has any effect. Use the standalone `elementTimingIntegration` instead.")});const t={name:void 0,source:void 0},n=Be.document,{enableInp:r,enableLongTask:i,enableLongAnimationFrame:o,_experiments:{enableInteractions:s,enableStandaloneClsSpans:a,enableStandaloneLcpSpans:l},beforeStartSpan:u,idleTimeout:c,finalTimeout:d,childSpanTimeout:f,markBackgroundSpan:p,traceFetch:h,traceXHR:m,trackFetchStreamPerformance:v,shouldCreateSpanForRequest:g,enableHTTPTimings:y,ignoreResourceSpans:_,ignorePerformanceApiSpans:b,instrumentPageLoad:S,instrumentNavigation:C,detectRedirects:E,linkPreviousTrace:w,consistentTraceSampling:T,enableReportPageLoaded:A,onRequestSpanStart:L,onRequestSpanEnd:x}={...Fme,...e},k=F$();let M,z;function P(H,q,de=!0,se){const W=q.op==="pageload",V=q.name,B=u?u(q):q,Y=zf(se||ya()),F={...(Y==null?void 0:Y.pathname)&&{[Nee]:Y.pathname},...Y&&!I1(Y)&&{[ql]:Y.href},...B.attributes};if(V!==B.name&&(F[nr]="custom"),B.attributes=F,!de){const be=Gl();so({...B,startTime:be}).end(be);return}t.name=B.name,t.source=F[nr];const Q=r6(B,{idleTimeout:c,finalTimeout:d,childSpanTimeout:f,disableAutoFinish:W,beforeSpanEnd:be=>{Gle(be,{ignoreResourceSpans:_,ignorePerformanceApiSpans:b,spanStreamingEnabled:Ni(H)}),D3(H,void 0);const Le=nt(),Me=Le.getPropagationContext();Le.setPropagationContext({...Me,traceId:Q.spanContext().traceId,sampled:zo(Q),dsc:mo(be)}),W&&(z=void 0)},trimIdleSpanEndTimestamp:!A});W&&A&&(z=Q),D3(H,Q);function re(){n&&["interactive","complete"].includes(n.readyState)&&(H.emit("idleSpanEnableAutoFinish",Q),n.removeEventListener("readystatechange",re))}W&&!A&&n&&(n.addEventListener("readystatechange",re),re())}return{name:Dme,setup(H){var de;if(k){Re&&X.log("[Tracing] Skipping browserTracingIntegration setup for bot user agent.");return}if(KO(),o&&Ke.PerformanceObserver&&((de=PerformanceObserver.supportedEntryTypes)!=null&&de.includes("long-animation-frame"))?Vle():i&&Dle(),s&&Fle(),E&&n){const se=()=>{M=Xt()};addEventListener("click",se,{capture:!0}),addEventListener("keydown",se,{capture:!0,passive:!0})}function q(){const se=ep(H);se&&!ct(se).timestamp&&(Re&&X.log(`[Tracing] Finishing current active span with op: ${ct(se).op}`),se.setAttribute(Bf,"cancelled"),se.end())}H.on("startNavigationSpan",(se,W)=>{if($e()!==H)return;if(W!=null&&W.isRedirect){Re&&X.warn("[Tracing] Detected redirect, navigation span will not be the root span, but a child span."),P(H,{op:"navigation.redirect",...se},!1,W.url);return}M=void 0,q(),Zt().setPropagationContext({traceId:Ro(),sampleRand:Math.random(),propagationSpanId:Lr()?void 0:ds()});const V=nt();V.setPropagationContext({traceId:Ro(),sampleRand:Math.random(),propagationSpanId:Lr()?void 0:ds()}),V.setSDKProcessingMetadata({normalizedRequest:void 0}),P(H,{op:"navigation",...se,parentSpan:null,forceTransaction:!0},!0,W==null?void 0:W.url)}),H.on("startPageLoadSpan",(se,W={})=>{if($e()!==H)return;q();const V=W.sentryTrace||N3("sentry-trace")||H3("sentry-trace"),B=W.baggage||N3("baggage")||H3("baggage"),Y=OO(V,B),F=nt();F.setPropagationContext(Y),Lr()||(F.getPropagationContext().propagationSpanId=ds()),F.setSDKProcessingMetadata({normalizedRequest:zv()}),P(H,{op:"pageload",...se})}),H.on("endPageloadSpan",()=>{A&&z&&(z.setAttribute(Bf,"reportPageLoaded"),z.end())})},afterAllSetup(H){var de;if(k)return;H.addIntegration&&!((de=H.getIntegrationByName)!=null&&de.call(H,H$))&&H.addIntegration(D$({ignore:r?[]:["inp"],_experiments:{enableStandaloneClsSpans:a,enableStandaloneLcpSpans:l}}));let q=ya();if(w!=="off"&&Ome(H,{linkPreviousTrace:w,consistentTraceSampling:T}),Be.location){if(S){const se=Nn();B$(H,{name:Be.location.pathname,startTime:se?se/1e3:void 0,attributes:{[nr]:"url",[Ct]:"auto.pageload.browser"}})}C&&q1(({to:se,from:W})=>{if(W===void 0&&(q==null?void 0:q.indexOf(se))!==-1){q=void 0;return}q=void 0;const V=zf(se),B=ep(H),Y=B&&E&&Ume(B,M);JC(H,{name:(V==null?void 0:V.pathname)||Be.location.pathname,attributes:{[nr]:"url",[Ct]:"auto.navigation.browser"}},{url:se,isRedirect:Y})})}p&&Mme(),s&&Bme(H,c,d,f,t),$$(H,{traceFetch:h,traceXHR:m,tracePropagationTargets:H.getOptions().tracePropagationTargets,shouldCreateSpanForRequest:g,enableHTTPTimings:y,onRequestSpanStart:L,onRequestSpanEnd:x}),v&&H.addIntegration(N$())}}};function B$(e,t,n){e.emit("startPageLoadSpan",t,n),nt().setTransactionName(t.name);const r=ep(e);return r&&e.emit("afterStartPageLoadSpan",r),r}function JC(e,t,n){const{url:r,isRedirect:i}=n||{};e.emit("beforeStartNavigationSpan",t,{isRedirect:i,url:r}),e.emit("startNavigationSpan",t,{isRedirect:i,url:r});const o=nt();return o.setTransactionName(t.name),r&&!i&&o.setSDKProcessingMetadata({normalizedRequest:{...zv(),url:r}}),ep(e)}function N3(e){const t=Be.document,n=t==null?void 0:t.querySelector(`meta[name=${e}]`);return(n==null?void 0:n.getAttribute("content"))||void 0}function H3(e){var r,i,o;const t=(i=(r=Be.performance)==null?void 0:r.getEntriesByType)==null?void 0:i.call(r,"navigation")[0],n=(o=t==null?void 0:t.serverTiming)==null?void 0:o.find(s=>s.name===e);return n==null?void 0:n.description}function Bme(e,t,n,r,i){const o=Be.document;let s;const a=()=>{const l="ui.action.click",u=ep(e);if(u){const c=ct(u).op;
654if(["navigation","pageload"].includes(c)){Re&&X.warn(`[Tracing] Did not create ${l} span because a pageload or navigation span is in progress.`);return}}if(s&&(s.setAttribute(Bf,"interactionInterrupted"),s.end(),s=void 0),!i.name){Re&&X.warn(`[Tracing] Did not create ${l} transaction because _latestRouteName is missing.`);return}s=r6({name:i.name,op:l,attributes:{[nr]:i.source||"url"}},{idleTimeout:t,finalTimeout:n,childSpanTimeout:r})};o&&addEventListener("click",a,{capture:!0})}const U$="_sentry_idleSpan";function ep(e){return e[U$]}function D3(e,t){zn(e,U$,t)}const V3=1.5;function Ume(e,t){const n=ct(e),r=Gl(),i=n.start_timestamp;return!(r-i>V3||t&&r-t<=V3)}function jme(e=$e()){e==null||e.emit("endPageloadSpan")}function Wme(e){const t=bn();if(t===e)return;const n=nt();e.end=new Proxy(e.end,{apply(r,i,o){return Po(n,t),Reflect.apply(r,i,o)}}),Po(n,e)}const Gme=()=>({name:"SpanStreaming",beforeSetup(e){const t=e.getOptions();t.traceLifecycle||(Re&&X.log('[SpanStreaming] setting `traceLifecycle` to "stream"'),t.traceLifecycle="stream")},setup(e){const t="SpanStreaming integration requires",n="Falling back to static trace lifecycle.",r=e.getOptions();if(!Ni(e)){r.traceLifecycle="static",Re&&X.warn(`${t} \`traceLifecycle\` to be set to "stream"! ${n}`);return}const i=r.beforeSendSpan;if(i&&!E1(i)){r.traceLifecycle="static",Re&&X.warn(`${t} a beforeSendSpan callback using \`withStreamedSpan\`! ${n}`);return}const o=new pse(e);e.on("afterSpanEnd",s=>{zo(s)&&o.add(Vee(s,e))}),e.on("afterSegmentSpanEnd",s=>{const a=s.spanContext().traceId;setTimeout(()=>{o.flush(a)},500)})}});function Ic(e){return new Promise((t,n)=>{e.oncomplete=e.onsuccess=()=>t(e.result),e.onabort=e.onerror=()=>n(e.error)})}function zme(e,t){const n=indexedDB.open(e);n.onupgradeneeded=()=>n.result.createObjectStore(t);const r=Ic(n);return i=>r.then(o=>i(o.transaction(t,"readwrite").objectStore(t)))}function QC(e){return Ic(e.getAllKeys())}function qme(e,t,n){return e(r=>QC(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.max(...i,0)+1),Ic(r.transaction)}))}function Kme(e,t,n){return e(r=>QC(r).then(i=>{if(!(i.length>=n))return r.put(t,Math.min(...i,0)-1),Ic(r.transaction)}))}function Xme(e){return e(t=>QC(t).then(n=>{const r=n[0];if(r!=null)return Ic(t.get(r)).then(i=>(t.delete(r),Ic(t.transaction).then(()=>i)))}))}function Zme(e){let t;function n(){return t==null&&(t=zme(e.dbName||"sentry-offline",e.storeName||"queue")),t}return{push:async r=>{try{const i=Hv(r);await qme(n(),i,e.maxQueueSize||30)}catch{}},unshift:async r=>{try{const i=Hv(r);await Kme(n(),i,e.maxQueueSize||30)}catch{}},shift:async()=>{try{const r=await Xme(n());if(r)return GQ(r)}catch{}}}}function Yme(e){return t=>{const n=e({...t,createStore:Zme});return Be.addEventListener("online",async r=>{await n.flush()}),n}}function Jme(e=MC){return Yme(rne(e))}const F3=1e6,Qme="window"in Ke&&Ke.window===Ke&&typeof importScripts>"u",fl=String(0),ew=Qme?"main":"worker",_i=Be.navigator;let j$="",W$="",G$="",f2=(_i==null?void 0:_i.userAgent)||"",z$="";var UM;const eve=(_i==null?void 0:_i.language)||((UM=_i==null?void 0:_i.languages)==null?void 0:UM[0])||"";function tve(e){return typeof e=="object"&&e!==null&&"getHighEntropyValues"in e}const B3=_i==null?void 0:_i.userAgentData;tve(B3)&&B3.getHighEntropyValues(["architecture","model","platform","platformVersion","fullVersionList"]).then(e=>{var t;if(j$=e.platform||"",G$=e.architecture||"",z$=e.model||"",W$=e.platformVersion||"",(t=e.fullVersionList)!=null&&t.length){const n=e.fullVersionList[e.fullVersionList.length-1];f2=`${n.brand} ${n.version}`}}).catch(e=>{});function nve(e){return!("thread_metadata"in e)}function rve(e){return nve(e)?uve(e):e}function ive(e){var n,r;const t=(r=(n=e.contexts)==null?void 0:n.trace)==null?void 0:r.trace_id;return typeof t=="string"&&t.length!==32&&Re&&X.log(`[Profiling] Invalid traceId: ${t} on profiled event`),typeof t!="string"?"":t}function ove(e,t,n,r){if(r.type!=="transaction")throw new TypeError("Profiling events may only be attached to transactions, this should never occur.");if(n==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${n} instead.`);const i=ive(r),o=rve(n),s=t||(typeof r.start_timestamp=="number"?r.start_timestamp*1e3:Xt()*1e3),a=typeof r.timestamp=="number"?r.timestamp*1e3:Xt()*1e3;return{event_id:e,timestamp:new Date(s).toISOString(),platform:"javascript",version:"1",release:r.release||"",environment:r.environment||Cp,runtime:{name:"javascript",version:Be.n
654avigator.userAgent},os:{name:j$,version:W$,build_number:f2},device:{locale:eve,model:z$,manufacturer:f2,architecture:G$,is_emulator:!1},debug_meta:{images:K$(n.resources)},profile:o,transactions:[{name:r.transaction||"",id:r.event_id||Gn(),trace_id:i,active_thread_id:fl,relative_start_ns:"0",relative_end_ns:((a-s)*1e6).toFixed(0)}]}}function sve(e,t,n){var s,a;if(e==null)throw new TypeError(`Cannot construct profiling event envelope without a valid profile. Got ${e} instead.`);const r=lve(e),i=t.getOptions(),o=(a=(s=t.getSdkMetadata)==null?void 0:s.call(t))==null?void 0:a.sdk;return{chunk_id:Gn(),client_sdk:{name:(o==null?void 0:o.name)??"sentry.javascript.browser",version:(o==null?void 0:o.version)??"0.0.0"},profiler_id:n||Gn(),platform:"javascript",version:"2",release:i.release??"",environment:i.environment??"production",debug_meta:{images:K$(e.resources)},profile:r}}function ave(e){try{if(!e||typeof e!="object")return{reason:"chunk is not an object"};const t=r=>typeof r=="string"&&/^[a-f0-9]{32}$/.test(r);if(!t(e.profiler_id))return{reason:"missing or invalid profiler_id"};if(!t(e.chunk_id))return{reason:"missing or invalid chunk_id"};if(!e.client_sdk)return{reason:"missing client_sdk metadata"};const n=e.profile;return n?!Array.isArray(n.frames)||!n.frames.length?{reason:"profile has no frames"}:!Array.isArray(n.stacks)||!n.stacks.length?{reason:"profile has no stacks"}:!Array.isArray(n.samples)||!n.samples.length?{reason:"profile has no samples"}:{valid:!0}:{reason:"missing profile data"}}catch(t){return{reason:`unknown validation error: ${t}`}}}function lve(e){const t=[];for(let a=0;a<e.frames.length;a++){const l=e.frames[a];l&&(t[a]={function:l.name,abs_path:typeof l.resourceId=="number"?e.resources[l.resourceId]:void 0,lineno:l.line,colno:l.column})}const n=[];for(let a=0;a<e.stacks.length;a++){const l=e.stacks[a];if(!l)continue;const u=[];let c=l;for(;c;)u.push(c.frameId),c=c.parentId===void 0?void 0:e.stacks[c.parentId];n[a]=u}const r=Nn(),i=typeof performance.timeOrigin=="number"?performance.timeOrigin:r||0,o=i-(r||i),s=[];for(let a=0;a<e.samples.length;a++){const l=e.samples[a];if(!l)continue;const u=(i+(l.timestamp-o))/1e3;s[a]={stack_id:l.stackId??0,thread_id:fl,timestamp:u}}return{frames:t,stacks:n,samples:s,thread_metadata:{[fl]:{name:ew}}}}function q$(e){return ct(e).op==="pageload"}function uve(e){let t,n=0;const r={samples:[],stacks:[],frames:[],thread_metadata:{[fl]:{name:ew}}},i=e.samples[0];if(!i)return r;const o=i.timestamp,s=Nn(),a=typeof performance.timeOrigin=="number"?performance.timeOrigin:s||0,l=a-(s||a);return e.samples.forEach((u,c)=>{if(u.stackId===void 0){t===void 0&&(t=n,r.stacks[t]=[],n++),r.samples[c]={elapsed_since_start_ns:((u.timestamp+l-o)*F3).toFixed(0),stack_id:t,thread_id:fl};return}let d=e.stacks[u.stackId];const f=[];for(;d;){f.push(d.frameId);const h=e.frames[d.frameId];h&&r.frames[d.frameId]===void 0&&(r.frames[d.frameId]={function:h.name,abs_path:typeof h.resourceId=="number"?e.resources[h.resourceId]:void 0,lineno:h.line,colno:h.column}),d=d.parentId===void 0?void 0:e.stacks[d.parentId]}const p={elapsed_since_start_ns:((u.timestamp+l-o)*F3).toFixed(0),stack_id:n,thread_id:fl};r.stacks[n]=f,r.samples[c]=p,n++}),r}function cve(e,t){if(!t.length)return e;for(const n of t)e[1].push([{type:"profile"},n]);return e}function dve(e){const t=[];return Tl(e,(n,r)=>{var i,o;if(r==="transaction")for(let s=1;s<n.length;s++){const a=n[s];(o=(i=a==null?void 0:a.contexts)==null?void 0:i.profile)!=null&&o.profile_id&&t.push(n[s])}}),t}
654function K$(e){const t=$e(),n=t==null?void 0:t.getOptions(),r=n==null?void 0:n.stackParser;return r?Gee(r,e):[]}function X$(e){return typeof e!="number"&&typeof e!="boolean"||typeof e=="number"&&isNaN(e)?(Re&&X.warn(`[Profiling] Invalid sample rate. Sample rate must be a boolean or a number between 0 and 1. Got ${JSON.stringify(e)} of type ${JSON.stringify(typeof e)}.`),!1):e===!0||e===!1?!0:e<0||e>1?(Re&&X.warn(`[Profiling] Invalid sample rate. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function fve(e){return e.samples.length<2?(Re&&X.log("[Profiling] Discarding profile because it contains less than 2 samples"),!1):e.frames.length?!0:(Re&&X.log("[Profiling] Discarding profile because it contains no frames"),!1)}let tw=!1;const Z$=3e4;function pve(e){return typeof e=="function"}function Y$(){const e=Be.Profiler;if(!pve(e)){Re&&X.log("[Profiling] Profiling is not supported by this browser, Profiler interface missing on window object.");return}const t=10,n=Math.floor(Z$/t);try{return new e({sampleInterval:t,maxBufferSize:n})}catch{Re&&(X.log("[Profiling] Failed to initialize the Profiling constructor, this is likely due to a missing 'Document-Policy': 'js-profiling' header."),X.log("[Profiling] Disabling profiling for current user session.")),tw=!0}}function U3(e){if(tw)return Re&&X.log("[Profiling] Profiling has been disabled for the duration of the current user session."),!1;if(!e.isRecording())return Re&&X.log("[Profiling] Discarding profile because root span was not sampled."),!1;
654const t=$e(),n=t==null?void 0:t.getOptions();if(!n)return Re&&X.log("[Profiling] Profiling disabled, no options found."),!1;const r=n.profilesSampleRate;return X$(r)?r?(r===!0?!0:Math.random()<r)?!0:(Re&&X.log(`[Profiling] Discarding profile because it's not included in the random sample (sampling rate = ${Number(r)})`),!1):(Re&&X.log("[Profiling] Discarding profile because a negative sampling decision was inherited or profileSampleRate is set to 0"),!1):(Re&&X.warn("[Profiling] Discarding profile because of invalid sample rate."),!1)}function hve(e){if(tw)return Re&&X.log("[Profiling] Profiling has been disabled for the duration of the current user session as the JS Profiler could not be started."),!1;if(e.profileLifecycle!=="trace"&&e.profileLifecycle!=="manual")return Re&&X.warn("[Profiling] Session not sampled. Invalid `profileLifecycle` option."),!1;const t=e.profileSessionSampleRate;return X$(t)?t?Math.random()<=t:(Re&&X.log("[Profiling] Discarding profile because profileSessionSampleRate is not defined or set to 0"),!1):(Re&&X.warn("[Profiling] Discarding profile because of invalid profileSessionSampleRate."),!1)}function Fh(e){return typeof e.profilesSampleRate<"u"}function mve(e,t,n,r){return fve(n)?ove(e,t,n,r):null}const Qa=new Map;function vve(){return Qa.size}function gve(e){const t=Qa.get(e);return t&&Qa.delete(e),t}function yve(e,t){if(Qa.set(e,t),Qa.size>30){const n=Qa.keys().next().value;n!==void 0&&Qa.delete(n)}}const J$=new WeakSet;function sg(e){e.setAttribute("thread.id",fl),e.setAttribute("thread.name",ew)}function j3(e){let t;q$(e)&&(t=Xt()*1e3);const n=Y$();if(!n)return;Re&&X.log(`[Profiling] started profiling span: ${ct(e).description}`);const r=Gn();let i=null;nt().setContext("profile",{profile_id:r,start_timestamp:t}),J$.add(e),sg(e);async function o(){if(e&&n){if(i){Re&&X.log("[Profiling] profile for:",ct(e).description,"already exists, returning early");return}return n.stop().then(u=>{if(s&&(Be.clearTimeout(s),s=void 0),Re&&X.log(`[Profiling] stopped profiling of span: ${ct(e).description}`),!u){Re&&X.log(`[Profiling] profiler returned null profile for: ${ct(e).description}`,"this may indicate an overlapping span or a call to stopProfiling with a profile title that was never started");return}i=u,yve(r,u)}).catch(u=>{Re&&X.log("[Profiling] error while stopping profiler:",u)})}}let s=Be.setTimeout(()=>{Re&&X.log("[Profiling] max profile duration elapsed, stopping profiling for:",ct(e).description),o()},Z$);const a=e.end.bind(e);function l(){return e?(o().then(()=>{a()},()=>{a()}),e):a()}e.end=l}const bve=6e4,_ve=3e5;class Sve{constructor(){this._client=void 0,this._profiler=void 0,this._chunkTimer=void 0,this._profilerId=void 0,this._isRunning=!1,this._sessionSampled=!1,this._lifecycleMode=void 0,this._activeRootSpanIds=new Set,this._rootSpanTimeouts=new Map}initialize(t){const n=t.getOptions().profileLifecycle,r=hve(t.getOptions());Re&&X.log(`[Profiling] Initializing profiler (lifecycle='${n}').`),r||Re&&X.log("[Profiling] Session not sampled. Skipping lifecycle profiler initialization."),this._profilerId=Gn(),this._client=t,this._sessionSampled=r,this._lifecycleMode=n,n==="trace"&&this._setupTraceLifecycleListeners(t),t.on("spanStart",i=>{this._isRunning&&sg(i)})}start(){if(this._lifecycleMode==="trace"){Re&&X.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.start()` are ignored in trace mode.');return}if(this._isRunning){Re&&X.warn("[Profiling] Profile session is already running, `uiProfiler.start()` is a no-op.");return}if(!this._sessionSampled){Re&&X.warn("[Profiling] Session is not sampled, `uiProfiler.start()` is a no-op.");return}this._beginProfiling()}stop(){if(this._lifecycleMode==="trace"){Re&&X.warn('[Profiling] `profileLifecycle` is set to "trace". Calls to `uiProfiler.stop()` are ignored in trace mode.');return}if(!this._isRunning){Re&&X.warn("[Profiling] Profiler is not running, `uiProfiler.stop()` is a no-op.");return}this._endProfiling()}notifyRootSpanActive(t){if(this._lifecycleMode!=="trace"||!this._sessionSampled)return;const n=t.spanContext().spanId;if(!n||this._activeRootSpanIds.has(n))return;this._registerTraceRootSpan(n);const r=this._activeRootSpanIds.size;r===1&&(Re&&X.log("[Profiling] Detected already active root span during setup. Active root spans now:",r),this._beginProfiling()),this._isRunning&&sg(t)}_beginProfiling(){if(!this._isRunning){if(this._isRunning=!0,Re&&X.log("[Profiling] Started profiling with profiler ID:",this._profilerId),ll().setContext("profile",{profiler_id:this._profilerId}),this._startProfilerInstance(),!this._profiler){Re&&X.log("[Profiling] Failed to start JS Profiler; stopping."),this._resetProfilerInfo();return}this._startPeriodicChunking()}}_endProfiling(){this._isRunning&&(this._isRunning=!1,this._chunkTimer&&(clearTimeout(this._chunkTimer),this._chunkTimer=void 0),this._clearAllRootSpanTimeouts(),this._collectCurrentChunk().catch(t=>{Re&&X.error("[Profiling] Failed to collect current profile chunk on `stop()`:",t)}),this._lifecycleMode==="manual"&&ll().setContext("profile",{}))}_setupTraceLifecycleListeners(t){t.on("spanStart",n=>{if(!this._sessionSampled){Re&&X.log("[Profiling] Span not profiled because of negative sampling decision for user session.");return}if(n!==En(n))return;if(!n.isRecording()){Re&&X.log("[Profiling] Discarding profile because root span was not sampled.");return}const r=n.spanContext().spanId;if(!r||this._activeRootSpanIds.has(r))return;this._registerTraceRootSpan(r);const i=this._activeRootSpanIds.size;i===1&&(Re&&X.log(`[Profiling] Root span ${r} started. Profiling active while there are active root spans (count=${i}).`),this._beginProfiling())}),t.on("spanEnd",n=>{if(!this._sessionSampled)return;const r=n.spanContext().spanId;if(!r||!this._activeRootSpanIds.has(r))return;this._activeRootSpanIds.delete(r);const i=this._activeRootSpanIds.size;Re&&X.log(`[Profiling] Root span with ID ${r} ended. Will continue profiling for as long as there are active root spans (currently: ${i}).`),i===0&&(this._collectCurrentChunk().catch(o=>{Re&&X.error("[Profiling] Failed to collect current profile chunk on last `spanEnd`:",o)}),this._endProfiling())})}_resetProfilerInfo(){this._isRunning=!1,ll().setContext("profile",{})}
654_clearAllRootSpanTimeouts(){this._rootSpanTimeouts.forEach(t=>clearTimeout(t)),this._rootSpanTimeouts.clear()}_registerTraceRootSpan(t){this._activeRootSpanIds.add(t);const n=setTimeout(()=>this._onRootSpanTimeout(t),_ve);this._rootSpanTimeouts.set(t,n)}_startProfilerInstance(){var n;if(((n=this._profiler)==null?void 0:n.stopped)===!1)return;const t=Y$();if(!t){Re&&X.log("[Profiling] Failed to start JS Profiler.");return}this._profiler=t}_startPeriodicChunking(){this._isRunning&&(this._chunkTimer=setTimeout(()=>{if(this._collectCurrentChunk().catch(t=>{Re&&X.error("[Profiling] Failed to collect current profile chunk during periodic chunking:",t)}),this._isRunning){if(this._startProfilerInstance(),!this._profiler){this._resetProfilerInfo();return}this._startPeriodicChunking()}},bve))}_onRootSpanTimeout(t){this._rootSpanTimeouts.has(t)&&(this._rootSpanTimeouts.delete(t),this._activeRootSpanIds.has(t)&&(Re&&X.log(`[Profiling] Reached 5-minute timeout for root span ${t}. You likely started a manual root span that never called \`.end()\`.`),this._activeRootSpanIds.delete(t),this._activeRootSpanIds.size===0&&this._endProfiling()))}async _collectCurrentChunk(){const t=this._profiler;if(this._profiler=void 0,!!t)try{const n=await t.stop(),r=sve(n,this._client,this._profilerId),i=ave(r);if("reason"in i){Re&&X.log("[Profiling] Discarding invalid profile chunk (this is probably a bug in the SDK):",i.reason);return}this._sendProfileChunk(r),Re&&X.log("[Profiling] Collected browser profile chunk.")}catch(n){Re&&X.log("[Profiling] Error while stopping JS Profiler for chunk:",n)}}_sendProfileChunk(t){var a;const n=this._client,r=wp((a=n.getSdkMetadata)==null?void 0:a.call(n)),i=n.getDsn(),o=n.getOptions().tunnel,s=$i({event_id:Gn(),sent_at:new Date().toISOString(),...r&&{sdk:r},...!!o&&i&&{dsn:Go(i)}},[[{type:"profile_chunk",platform:"javascript"},t]]);n.sendEnvelope(s).then(null,l=>{Re&&X.error("Error while sending profile chunk envelope:",l)})}}const Eve="BrowserProfiling",Cve=()=>({name:Eve,setup(e){const t=e.getOptions(),n=new Sve;if(!Fh(t)&&!t.profileLifecycle&&(t.profileLifecycle="manual"),Fh(t)&&!t.profilesSampleRate){Re&&X.log("[Profiling] Profiling disabled, no profiling options found.");return}const r=bn(),i=r&&En(r);if(Fh(t)&&t.profileSessionSampleRate!==void 0&&Re&&X.warn("[Profiling] Both legacy profiling (`profilesSampleRate`) and UI profiling settings are defined. `profileSessionSampleRate` has no effect when legacy profiling is enabled."),Fh(t))i&&q$(i)&&U3(i)&&j3(i),e.on("spanStart",o=>{const s=En(o);o===s?U3(o)&&j3(o):J$.has(s)&&sg(o)}),e.on("beforeEnvelope",o=>{var l,u;if(!vve())return;const s=dve(o);if(!s.length)return;const a=[];for(const c of s){const d=c==null?void 0:c.contexts,f=(l=d==null?void 0:d.profile)==null?void 0:l.profile_id,p=(u=d==null?void 0:d.profile)==null?void 0:u.start_timestamp;if(typeof f!="string"){Re&&X.log("[Profiling] cannot find profile for a span without a profile context");continue}if(!f){Re&&X.log("[Profiling] cannot find profile for a span without a profile context");continue}d!=null&&d.profile&&delete d.profile;const h=gve(f);if(!h){Re&&X.log(`[Profiling] Could not retrieve profile for span: ${f}`);continue}const m=mve(f,p,h,c);m&&a.push(m)}cve(o,a)});else{const o=t.profileLifecycle;if(e.on("startUIProfiler",()=>n.start()),e.on("stopUIProfiler",()=>n.stop()),o==="manual")n.initialize(e);else if(o==="trace"){if(!Lr(t)){Re&&X.warn("[Profiling] `profileLifecycle` is 'trace' but tracing is disabled. Set a `tracesSampleRate` or `tracesSampler` to enable span tracing.");return}n.initialize(e),i&&n.notifyRootSpanActive(i),Be.setTimeout(()=>{const s=bn(),a=s&&En(s);a&&n.notifyRootSpanActive(a)},0)}}}}),wve=Cve,Tve="SpotlightBrowser",Ave=[{op:"ui.interaction.click",name:"#sentry-spotlight"}],Ive=(e={})=>{const t=e.sidecarUrl||"http://localhost:8969/stream";return{name:Tve,setup:()=>{Re&&X.log("Using Sidecar URL",t)},beforeSetup(n){const r=n.getOptions();r.ignoreSpans=[...r.ignoreSpans||[],...Ave]},afterAllSetup:n=>{xve(n,t)}}};function xve(e,t){const n=xC("fetch");let r=0;e.on("beforeEnvelope",i=>{if(r>3){X.warn("[Spotlight] Disabled Sentry -> Spotlight integration due to too many failed requests:",r);return}n(t,{method:"POST",body:Hv(i),headers:{"Content-Type":"application/x-sentry-envelope"},mode:"cors"}).then(o=>{o.status>=200&&o.status<400&&(r=0)},o=>
654{r++,X.error("Sentry SDK can't connect to Sidecar is it running? See: https://spotlightjs.com/sidecar/npx/",o)})})}const Lve=Ive,kve=()=>({name:"LaunchDarkly",processEvent(e,t,n){return Qc(e)}});function Mve(){return{name:"sentry-flag-auditor",type:"flag-used",synchronous:!0,method:(e,t,n)=>{Al(e,t.value),Il(e,t.value)}}}const Rve=()=>({name:"OpenFeature",processEvent(e,t,n){return Qc(e)}});class Pve{after(t,n){Al(n.flagKey,n.value),Il(n.flagKey,n.value)}error(t,n,r){Al(t.flagKey,t.defaultValue),Il(t.flagKey,t.defaultValue)}}const Ove=({featureFlagClientClass:e})=>({name:"Unleash",setupOnce(){const t=e.prototype;tr(t,"isEnabled",$ve)},processEvent(t,n,r){return Qc(t)}});function $ve(e){return function(...t){const n=t[0],r=e.apply(this,t);return typeof n=="string"&&typeof r=="boolean"?(Al(n,r),Il(n,r)):Re&&X.error(`[Feature Flags] UnleashClient.isEnabled does not match expected signature. arg0: ${n} (${typeof n}), result: ${r} (${typeof r})`),r}}const Nve=({growthbookClass:e})=>Ore({growthbookClass:e}),Hve=({featureFlagClient:e})=>({name:"Statsig",setup(t){e.on("gate_evaluation",n=>{Al(n.gate.name,n.gate.value),Il(n.gate.name,n.gate.value)})},processEvent(t,n,r){return Qc(t)}});async function Dve(){const e=$e();if(!e)return"no-client-active";if(!e.getDsn())return"no-dsn-configured";const r=e.getOptions().tunnel||"https://o447951.ingest.sentry.io/api/4509632503087104/envelope/?sentry_version=7&sentry_key=c1dfb07d783ad5325c245c1fd3725390&sentry_client=sentry.javascript.browser%2F1.33.7";try{await e6(()=>fetch(r,{body:"{}",method:"POST",mode:"cors",credentials:"omit"}))}catch{return"sentry-unreachable"}}const Vve="WebWorker",Fve=({worker:e})=>({name:Vve,setupOnce:()=>{(Array.isArray(e)?e:[e]).forEach(t=>W3(t))},addWorker:t=>W3(t)});function W3(e){e.addEventListener("message",t=>{if(jve(t.data)){if(t.stopImmediatePropagation(),t.data._sentryDebugIds&&(Re&&X.log("Sentry debugId web worker message received",t.data),Be._sentryDebugIds={...t.data._sentryDebugIds,...Be._sentryDebugIds}),t.data._sentryModuleMetadata&&(Re&&X.log("Sentry module metadata web worker message received",t.data),Be._sentryModuleMetadata={...t.data._sentryModuleMetadata,...Be._sentryModuleMetadata}),t.data._sentryWasmImages){Re&&X.log("Sentry WASM images web worker message received",t.data);const n=Be._sentryWasmImages||[],r=t.data._sentryWasmImages.filter(i=>Fr(i)&&typeof i.code_file=="string"&&!n.some(o=>o.code_file===i.code_file));Be._sentryWasmImages=[...n,...r]}t.data._sentryWorkerError&&(Re&&X.log("Sentry worker rejection message received",t.data._sentryWorkerError),Bve(t.data._sentryWorkerError))}})}
654function Bve(e){const t=$e();if(!t)return;const n=t.getOptions().stackParser,r=t.getOptions().attachStacktrace,i=e.reason,o=Mo(i)?M7(i):F1(n,i,void 0,r,!0);o.level="error",e.filename&&(o.contexts={...o.contexts,worker:{filename:e.filename}}),Jc(o,{originalException:i,mechanism:{handled:!1,type:"auto.browser.web_worker.onunhandledrejection"}}),Re&&X.log("Captured worker unhandled rejection",i)}function Uve({self:e}){e.postMessage({_sentryMessage:!0,_sentryDebugIds:e._sentryDebugIds??void 0,_sentryModuleMetadata:e._sentryModuleMetadata??void 0}),e.addEventListener("unhandledrejection",t=>{var i;const r={reason:k7(t),filename:(i=e.location)==null?void 0:i.href};e.postMessage({_sentryMessage:!0,_sentryWorkerError:r}),Re&&X.log("[Sentry Worker] Forwarding unhandled rejection to parent",r)}),Re&&X.log("[Sentry Worker] Registered worker with unhandled rejection handling")}function jve(e){if(!Fr(e)||e._sentryMessage!==!0)return!1;const t="_sentryDebugIds"in e,n="_sentryModuleMetadata"in e,r="_sentryWorkerError"in e,i="_sentryWasmImages"in e;return!(!t&&!n&&!r&&!i||t&&!(Fr(e._sentryDebugIds)||e._sentryDebugIds===void 0)||n&&!(Fr(e._sentryModuleMetadata)||e._sentryModuleMetadata===void 0)||r&&!Fr(e._sentryWorkerError)||i&&(!Array.isArray(e._sentryWasmImages)||!e._sentryWasmImages.every(o=>Fr(o)&&typeof o.code_file=="string")))}const Q$=["activate","mount"],e9=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,Wve=/(?:^|[-_])(\w)/g,Gve=e=>e.replace(Wve,t=>t.toUpperCase()).replace(/[-_]/g,""),zve="<Root>",wy="<Anonymous>",qve=(e,t)=>e.repeat(t),cf=(e,t)=>{if(!e)return wy;if(e.$root===e)return zve;if(!e.$options)return wy;const n=e.$options;let r=n.name||n._componentTag||n.__name;const i=n.__file;if(!r&&i){const o=i.match(/([^/\\]+)\.vue$/);o&&(r=o[1])}return(r?`<${Gve(r)}>`:wy)+(i&&t!==!1?` at ${i}`:"")},Kve=e=>{if(e&&(e._isVue||e.__isVue)&&e.$parent){const t=[];let n=0;for(;e;){if(t.length>0){const i=t[t.length-1];if(i.constructor===e.constructor){n++,e=e.$parent;continue}else n>0&&(t[t.length-1]=[i,n],n=0)}t.push(e),e=e.$parent}return` 655 656found in 657 658${t.map((i,o)=>`${(o===0?"---> ":qve(" ",5+o*2))+(Array.isArray(i)?`${cf(i[0])}... (${i[1]} recursive calls)`:cf(i))}`).join(` 659`)}`}return` 660 661(found in ${cf(e)})`},t9=(e,t)=>{const{errorHandler:n}=e.config;e.config.errorHandler=(r,i,o)=>{var u;const s=cf(i,!1),a=i?Kve(i):"",l={componentName:s,lifecycleHook:o,trace:a};if((t==null?void 0:t.attachProps)!==!1&&i&&((u=i.$options)!=null&&u.propsData?l.propsData=i.$options.propsData:i.$props&&(l.propsData=i.$props)),setTimeout(()=>{di(r,{captureContext:{contexts:{vue:l}},mechanism:{handled:!!n,type:"auto.function.vue.error_handler"}})}),typeof n=="function"&&e.config.errorHandler)n.call(e,r,i,o);else throw r}},G3="ui.vue",Xve={activate:["activated","deactivated"],create:["beforeCreate","created"],unmount:["beforeUnmount","unmounted"],destroy:["beforeDestroy","destroyed"],mount:["beforeMount","mounted"],update:["beforeUpdate","updated"]};function Ty(e,t,n){e.$_sentryRootComponentSpanTimer&&clearTimeout(e.$_sentryRootComponentSpanTimer),e.$_sentryRootComponentSpanTimer=setTimeout(()=>{var r;(r=e.$root)!=null&&r.$_sentryRootComponentSpan&&(e.$root.$_sentryRootComponentSpan.end(t),e.$root.$_sentryRootComponentSpan=void 0)},n)}function Zve(e,t){function n(i){return i.replace(/^<([^\s]*)>(?: at [^\s]*)?$/,"$1")}return e.some(i=>n(t)===n(i))}const n9=(e={})=>{const t=vne((e.hooks||[]).concat(Q$)),n={},r=e.timeout||2e3;for(const i of t){const o=Xve[i];if(!o){e9&&X.warn(`Unknown hook: ${i}`);continue}for(const s of o)n[s]=function(){var f;const a=this.$root===this;a&&(this.$_sentryRootComponentSpan=this.$_sentryRootComponentSpan||so({name:"Application Render",op:`${G3}.render`,attributes:{[Ct]:"auto.ui.vue"},onlyIfParent:!0}),Ty(this,Xt(),r));const l=cf(this,!1);if(!(a||(Array.isArray(e.trackComponents)?Zve(e.trackComponents,l):e.trackComponents))){Ty(this,Xt(),r);return}this.$_sentryComponentSpans=this.$_sentryComponentSpans||{};const c=s===o[0],d=((f=this.$root)==null?void 0:f.$_sentryRootComponentSpan)||bn();if(c){if(d){const p=this.$_sentryComponentSpans[i];p&&p.end(),this.$_sentryComponentSpans[i]=so({name:`Vue ${l}`,op:`${G3}.${i}`,attributes:{[Ct]:"auto.ui.vue"},onlyIfParent:!0})}}else{const p=this.$_sentryComponentSpans[i];if(!p)return;p.end(),Ty(this,Xt(),r)}}}return n},Yve=Ke,Jve={Vue:Yve.Vue,attachProps:!0,attachErrorHandler:!0,tracingOptions:{hooks:Q$,timeout:2e3,trackComponents:!1}},Qve="Vue",r9=(e={})=>({name:Qve,setup(t){const n={...Jve,...t.getOptions(),...e};if(!n.Vue&&!n.app){ho(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue specific errors will not be captured. Update your `Sentry.init` call with an appropriate config option: `app` (Application Instance - Vue 3) or `Vue` (Vue Constructor - Vue 2).")});return}
661n.app?(Array.isArray(n.app)?n.app:[n.app]).forEach(i=>z3(i,n)):n.Vue&&z3(n.Vue,n)}}),z3=(e,t)=>{var n;e9&&((n=e._instance)==null?void 0:n.isMounted)===!0&&ho(()=>{console.warn("[@sentry/vue]: Misconfigured SDK. Vue app is already mounted. Make sure to call `app.mount()` after `Sentry.init()`.")}),t.attachErrorHandler&&t9(e,t),Lr(t)&&e.mixin(n9(t.tracingOptions))};function ege(e){return!!(typeof e=="object"&&e&&(e.__isVue||e._isVue))}function tge(e){return!!(typeof e=="object"&&(e!=null&&e.__v_isVNode))}function nge(e){return ege(e)?"[VueViewModel]":tge(e)?"[VueVNode]":RC(e)}function rge(e={}){const t={defaultIntegrations:[...PC(),r9()],...e};j6(t,"vue");const n=Hce(t);return pO(nge),n}function ige(e,t,n){let r=!1;const i="mode"in e;e.onError(o=>di(o,{mechanism:{handled:!1}})),e.beforeEach((o,s,...a)=>{const l=r?void 0:oge(),u={};for(const f of Object.keys(o.params))u[`${Hee}.${f}`]=o.params[f],u[`${Mee}.${f}`]=o.params[f];for(const f of Object.keys(o.query)){const p=o.query[f];p&&(u[`query.${f}`]=p)}let c=o.path,d="url";if(o.name&&t.routeLabel!=="path")c=o.name.toString(),d="custom";else if(o.matched.length>0){const f=o.matched.length-1;c=o.matched[f].path,d="route"}if(d==="route"&&(u[Dee]=c),o.name&&(u[kee]=o.name.toString()),nt().setTransactionName(c),t.instrumentPageLoad&&l&&(ct(l).data[nr]!=="custom"&&(l.updateName(c),l.setAttribute(nr,d)),l.setAttributes({...u,[Ct]:"auto.pageload.vue"}),r=!0),t.instrumentNavigation&&!l&&n({name:c,op:"navigation",attributes:{...u,[Ct]:"auto.navigation.vue",[nr]:d}},b7(o.fullPath??o.path)),i){const f=a[0];typeof f=="function"&&f()}})}function oge(){const e=bn(),t=e&&En(e);return t&&ct(t).op==="pageload"?t:void 0}function sge(e={}){if(!e.router)return $3(e);const t=$3({...e,instrumentNavigation:!1}),{router:n,instrumentNavigation:r=!0,instrumentPageLoad:i=!0,routeLabel:o="name"}=e;return{...t,afterAllSetup(s){t.afterAllSetup(s),ige(n,{routeLabel:o,instrumentNavigation:r,instrumentPageLoad:i},(l,u)=>{JC(s,l,{url:u})})}}}const age={attachPiniaState:!0,addBreadcrumbs:!0,actionTransformer:e=>e,stateTransformer:e=>e},q3=(e,t)=>{const n={};try{return Object.keys(e.state.value).forEach(r=>{n[r]=e.state.value[r]}),t?t(n):n}catch{return n}},lge=e=>{const t={...age,...e};return({store:r,pinia:i})=>{t.attachPiniaState!==!1&&ll().addEventProcessor((o,s)=>{var a;try{const u=`pinia_state_all_stores_${new Date().toTimeString().split(" ")[0]}.json`;((a=s.attachments)==null?void 0:a.some(d=>d.filename.startsWith("pinia_state_all_stores_")))||(s.attachments=[...s.attachments||[],{filename:u,data:JSON.stringify(q3(i,t.stateTransformer))}])}catch{}return o}),r.$onAction(o=>{o.after(()=>{const s=t.actionTransformer(o.name);typeof s<"u"&&s!==null&&t.addBreadcrumbs!==!1&&ao({category:"pinia.action",message:`Store: ${r.$id} | Action: ${s}`,level:"info"});const a=q3(i,t.stateTransformer),l=nt(),u=l.getScopeData().contexts.state;if(typeof a<"u"&&a!==null){const c=$e(),d=c==null?void 0:c.getOptions(),f=(d==null?void 0:d.normalizeDepth)||3,h={...u||{},state:{type:"pinia",value:a}};RJ(h,3+f),l.setContext("state",h)}else l.setContext("state",{...u||{},state:{type:"pinia",value:"undefined"}})})})}},lBe=Object.freeze(Object.defineProperty({__proto__:null,BrowserClient:r7,MULTIPLEXED_TRANSPORT_EXTRA_KEY:_m,OpenFeatureIntegrationHook:Pve,SDK_VERSION:us,SEMANTIC_ATTRIBUTE_SENTRY_OP:pn,SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN:Ct,SEMANTIC_ATTRIBUTE_SENTRY_SAMPLE_RATE:b1,SEMANTIC_ATTRIBUTE_SENTRY_SOURCE:nr,Scope:oo,WINDOW:Be,addBreadcrumb:ao,addEventProcessor:v6,addIntegration:O_,attachErrorHandler:t9,bindScopeToEmitter:yee,breadcrumbsIntegration:T7,browserApiErrorsIntegration:A7,browserProfilingIntegration:wve,browserSessionIntegration:I7,browserTracingIntegration:sge,buildLaunchDarklyFlagUsedHandler:Mve,captureConsoleIntegration:Hne,captureEvent:Jc,captureException:di,captureFeedback:o8,captureMessage:f6,captureSession:ym,chromeStackLineParser:_7,close:dte,consoleLoggingIntegration:tie,contextLinesIntegration:sde,continueTrace:see,createConsolaReporter:sie,createLangChainCallbackHandler:hC,createSentryPiniaPlugin:lge,createTracingMixins:n9,createTransport:M6,createUserFeedbackEnvelope:nce,cultureContextIntegration:x7,dedupeIntegration:Y6,defaultRequestInstrumentationOptions:YC,defaultStackLineParsers:E7,defaultStackParser:C7,diagnoseSdkConnectivity:Dve,elementTimingIntegration:sue,endSession:J
661E,eventFiltersIntegration:G6,eventFromException:t7,eventFromMessage:n7,exceptionFromError:D1,extraErrorDataIntegration:zne,featureFlagsIntegration:Pre,feedbackAsyncIntegration:Bae,feedbackIntegration:D5,feedbackSyncIntegration:D5,fetchStreamPerformanceIntegration:N$,flush:cte,forceLoad:Dce,functionToStringIntegration:W6,geckoStackLineParser:S7,getAbsoluteUrl:b7,getActiveSpan:bn,getClient:$e,getCurrentScope:nt,getDefaultIntegrations:PC,getFeedback:Xse,getGlobalScope:ll,getIsolationScope:Zt,getReplay:nme,getRootSpan:En,getSpanDescendants:nf,getSpanStatusFromHttpCode:TO,getTraceData:rC,globalHandlersIntegration:L7,graphqlClientIntegration:hde,growthbookIntegration:Nve,httpClientIntegration:qce,httpContextIntegration:P7,inboundFiltersIntegration:z6,init:rge,instrumentAnthropicAiClient:Coe,instrumentCreateReactAgent:ase,instrumentGoogleGenAIClient:$oe,instrumentLangChainEmbeddings:Zoe,instrumentLangGraph:lse,instrumentOpenAiClient:ioe,instrumentOutgoingRequests:$$,instrumentStateGraph:x8,instrumentSupabaseClient:i8,isBotUserAgent:F$,isEnabled:m6,isInitialized:fte,lastEventId:h6,launchDarklyIntegration:kve,lazyLoadIntegration:Q8,linkedErrorsIntegration:O7,logger:Yre,makeBrowserOfflineTransport:Jme,makeFetchTransport:MC,makeMultiplexedTransport:sne,metrics:iie,moduleMetadataIntegration:Pne,normalizeStringifyValue:RC,onLoad:Vce,openFeatureIntegration:Rve,opera10StackLineParser:Jue,opera11StackLineParser:tce,parameterize:U6,registerSpanErrorInstrumentation:KO,registerWebWorker:Uve,replayCanvasIntegration:Sme,replayIntegration:Qhe,reportPageLoaded:jme,reportingObserverIntegration:Wce,rewriteFramesIntegration:ere,sendFeedback:V8,setActiveSpanInBrowser:Wme,setAttribute:ate,setAttributes:ste,setContext:p6,setConversationId:ute,setCurrentClient:H6,setExtra:rte,setExtras:nte,setHttpStatus:Uf,setMeasurement:jE,setTag:ote,setTags:ite,setUser:lte,showReportDialog:Fce,spanStreamingIntegration:Gme,spanToBaggageHeader:BQ,spanToJSON:ct,spanToTraceHeader:VO,spotlightBrowserIntegration:Lve,startBrowserTracingNavigationSpan:JC,startBrowserTracingPageLoadSpan:B$,startInactiveSpan:so,startNewTrace:t6,startSession:P_,startSpan:qo,startSpanManual:os,statsigIntegration:Hve,supabaseIntegration:hre,suppressTracing:e6,thirdPartyErrorFilterIntegration:wre,uiProfiler:Pue,unleashIntegration:Ove,updateSpanName:HQ,viewHierarchyIntegration:mde,vueIntegration:r9,webVitalsIntegration:D$,webWorkerIntegration:Fve,winjsStackLineParser:Xue,withActiveSpan:Tp,withIsolationScope:aQ,withScope:pi,withStreamedSpan:UQ,zodErrorsIntegration:Cre},Symbol.toStringTag,{value:"Module"}));function nw(e){return e}function uge(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var cge=800,dge=16,fge=Date.now;function pge(e){var t=0,n=0;return function(){var r=fge(),i=dge-(r-n);if(n=r,i>0){if(++t>=cge)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}function hge(e){return function(){return e}}var mge=Tv?function(e,t){return Tv(e,"toString",{configurable:!0,enumerable:!1,value:hge(t),writable:!0})}:nw;const vge=mge;var gge=pge(vge);const i9=gge;function yge(e,t,n,r){for(var i=e.length,o=n+(r?1:-1);r?o--:++o<i;)if(t(e[o],o,e))return o;return-1}var K3=Math.max;function o9(e,t,n){return t=K3(t===void 0?e.length-1:t,0),function(){for(var r=arguments,i=-1,o=K3(r.length-t,0),s=Array(o);++i<o;)s[i]=r[t+i];i=-1;for(var a=Array(t+1);++i<t;)a[i]=r[i];return a[t]=n(s),uge(e,this,a)}}function bge(e,t){return i9(o9(e,t,nw),e+"")}function _ge(e,t,n){if(!ui(n))return!1;var r=typeof t;return(r=="number"?u1(n)&&_E(t,n.length):r=="string"&&t in n)?i1(n[t],e):!1}function Sge(e){return bge(function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(o=e.length>3&&typeof o=="function"?(i--,o):void 0,s&&_ge(n[0],n[1],s)&&(o=i<3?void 0:o,i=1),t=Object(t);++r<i;){var a=n[r];a&&e(t,a,r,o)}return t})}var Ege=Object.prototype,Cge=Ege.hasOwnProperty,wge=Sge(function(e,t){if(l1(t)||u1(t)){qc(t,vp(t),e);return}for(var n in t)Cge.call(t,n)&&EE(e,n,t[n])});const uBe=wge;var X3=Ri?Ri.isConcatSpreadable:void 0;function Tge(e){return Pi(e)||bE(e)||!!(X3&&e&&e[X3])}function s9(e,t,n,r,i){var o=-1,s=e.length;for(n||(n=Tge),i||(i=[]);++o<s;){var a=e[o];t>0&&n(a)?t>
vendor: 4,628 bytes, line 661
6611?s9(a,t-1,n,r,i):gE(i,a):r||(i[i.length]=a)}return i}function Age(e){var t=e==null?0:e.length;return t?s9(e,1):[]}function Ige(e){return i9(o9(e,void 0,Age),e+"")}var xge="[object Object]",Lge=Function.prototype,kge=Object.prototype,a9=Lge.toString,Mge=kge.hasOwnProperty,Rge=a9.call(Object);function Pge(e){if(!ci(e)||fo(e)!=xge)return!1;var t=wE(e);if(t===null)return!0;var n=Mge.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&a9.call(n)==Rge}var Oge=4;function cBe(e){return Ku(e,Oge)}var $ge=1,Nge=2;function Hge(e,t,n,r){var i=n.length,o=i,s=!r;if(e==null)return!o;for(e=Object(e);i--;){var a=n[i];if(s&&a[2]?a[1]!==e[a[0]]:!(a[0]in e))return!1}for(;++i<o;){a=n[i];var l=a[0],u=e[l],c=a[1];if(s&&a[2]){if(u===void 0&&!(l in e))return!1}else{var d=new Ao;if(r)var f=r(u,c,l,e,t,d);if(!(f===void 0?c1(c,u,$ge|Nge,r,d):f))return!1}}return!0}function l9(e){return e===e&&!ui(e)}function Dge(e){for(var t=vp(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,l9(i)]}return t}function u9(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}function Vge(e){var t=Dge(e);return t.length==1&&t[0][2]?u9(t[0][0],t[0][1]):function(n){return n===e||Hge(n,e,t)}}function Fge(e,t){return e!=null&&t in Object(e)}function Bge(e,t,n){t=m1(t,e);for(var r=-1,i=t.length,o=!1;++r<i;){var s=dc(t[r]);if(!(o=e!=null&&n(e,s)))break;e=e[s]}return o||++r!=i?o:(i=e==null?0:e.length,!!i&&SE(i)&&_E(s,i)&&(Pi(e)||bE(e)))}function Uge(e,t){return e!=null&&Bge(e,t,Fge)}var jge=1,Wge=2;function Gge(e,t){return RE(e)&&l9(t)?u9(dc(e),t):function(n){var r=vJ(n,e);return r===void 0&&r===t?Uge(n,e):c1(t,r,jge|Wge)}}function zge(e){return function(t){return OE(t,e)}}function qge(e){return RE(e)?UP(dc(e)):zge(e)}function Kge(e){return typeof e=="function"?e:e==null?nw:typeof e=="object"?Pi(e)?Gge(e[0],e[1]):Vge(e):qge(e)}var Xge=function(){return co.Date.now()};const Ay=Xge;var Zge="Expected a function",Yge=Math.max,Jge=Math.min;function Qge(e,t,n){var r,i,o,s,a,l,u=0,c=!1,d=!1,f=!0;if(typeof e!="function")throw new TypeError(Zge);t=E_(t)||0,ui(n)&&(c=!!n.leading,d="maxWait"in n,o=d?Yge(E_(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f);function p(C){var E=r,w=i;return r=i=void 0,u=C,s=e.apply(w,E),s}function h(C){return u=C,a=setTimeout(g,t),c?p(C):s}function m(C){var E=C-l,w=C-u,T=t-E;return d?Jge(T,o-w):T}function v(C){var E=C-l,w=C-u;return l===void 0||E>=t||E<0||d&&w>=o}function g(){var C=Ay();if(v(C))return y(C);a=setTimeout(g,m(C))}function y(C){return a=void 0,f&&r?p(C):(r=i=void 0,s)}function _(){a!==void 0&&clearTimeout(a),u=0,r=l=i=a=void 0}function b(){return a===void 0?s:y(Ay())}function S(){var C=Ay(),E=v(C);if(r=arguments,i=this,l=C,E){if(a===void 0)return h(l);if(d)return clearTimeout(a),a=setTimeout(g,t),p(l)}return a===void 0&&(a=setTimeout(g,t)),s}return S.cancel=_,S.flush=b,S}function e1e(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var c9=/[\\^$.*+?()[\]{}|]/g,t1e=RegExp(c9.source);function dBe(e){return e=cc(e),e&&t1e.test(e)?e.replace(c9,"\\$&"):e}var n1e=Math.max;function fBe(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:tO(n);return i<0&&(i=n1e(r+i,0)),yge(e,Kge(t),i)}var r1e="[object String]";function d9(e){return typeof e=="string"||!Pi(e)&&ci(e)&&fo(e)==r1e}function i1e(e,t){return t.length<2?e:OE(e,BP(t,0,-1))}var o1e="[object Boolean]";function s1e(e){return e===!0||e===!1||ci(e)&&fo(e)==o1e}var a1e="[object Number]";function l1e(e){return typeof e=="number"||ci(e)&&fo(e)==a1e}var u1e=Object.prototype,c1e=u1e.hasOwnProperty;function d1e(e,t){t=m1(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=dc(t[n]);if(i==="__proto__"&&!c1e.call(e,"__proto__")||(i==="constructor"||i==="prototype")&&n<r-1)return!1}var o=i1e(e,t);return o==null||delete o[dc(e1e(t))]}function f1e(e){return Pge(e)?void 0:e}var p1e=1,h1e=2,m1e=4,v1e=Ige(function(e,t){var n={};if(e==null)return n;var r=!1;t=DP(t,function(o){return o=m1(o,e),r||(r=o.length>1),o}),qc(e,cP(e),n),r&&(n=Ku(n,p1e|h1e|m1e,f1e));for(var i=t.length;i--;)d1e(n,t[i]);return n});const pBe=v1e;function wr(e,t){var n=t&&t.cache?t.cache:E1e,r=t&&t.serializer?t.serializer:S1e,i=t&&t.strategy?t.strategy:y1e;return i(e,{cache:n,serializer:r})}function g1e(e){return e==null||typeof e=="number"||typeof e=="boolean"}function f9(e,t,n,r){var i=g1e(r)?r:n(r),o=t.get(i);return typeof o>"u"&&(o=e.call(this,r),t.set(i,o)),o}function p9(e,t,n){var r=Array.prototype.slice.call(arguments,3),i=n(r),o=t.get(i);return typeof o>"u"&&(o=e.apply(this,r),t.set(i,o)),o}function rw(e,t,n,r,i){return n.bind(t,e,r,i)}function y1e(e,t){var n=e.length===1?f9:p9;
vendor: 5,952 bytes, line 661
661return rw(e,this,n,t.cache.create(),t.serializer)}function b1e(e,t){return rw(e,this,p9,t.cache.create(),t.serializer)}function _1e(e,t){return rw(e,this,f9,t.cache.create(),t.serializer)}var S1e=function(){return JSON.stringify(arguments)};function iw(){this.cache=Object.create(null)}iw.prototype.get=function(e){return this.cache[e]};iw.prototype.set=function(e,t){this.cache[e]=t};var E1e={create:function(){return new iw}},Tr={variadic:b1e,monadic:_1e},xt;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG"})(xt||(xt={}));var dn;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag"})(dn||(dn={}));var xc;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime"})(xc||(xc={}));function Z3(e){return e.type===dn.literal}function C1e(e){return e.type===dn.argument}function h9(e){return e.type===dn.number}function m9(e){return e.type===dn.date}function v9(e){return e.type===dn.time}function g9(e){return e.type===dn.select}function y9(e){return e.type===dn.plural}function w1e(e){return e.type===dn.pound}function b9(e){return e.type===dn.tag}function _9(e){return!!(e&&typeof e=="object"&&e.type===xc.number)}function p2(e){return!!(e&&typeof e=="object"&&e.type===xc.dateTime)}var S9=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,T1e=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function A1e(e){var t={};return e.replace(T1e,function(n){var r=n.length;switch(n[0]){case"G":t.era=r===4?"long":r===5?"narrow":"short";break;case"y":t.year=r===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][r-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][r-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=r===4?"long":r===5?"narrow":"short";break;case"e":if(r<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"c":if(r<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][r-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][r-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][r-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][r-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][r-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][r-1];break;case"s":t.second=["numeric","2-digit"][r-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=r<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""}),t}var I1e=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function x1e(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(I1e).filter(function(f){return f.length>0}),n=[],r=0,i=t;r<i.length;r++){var o=i[r],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var a=s[0],l=s.slice(1),u=0,c=l;u<c.length;u++){var d=c[u];if(d.length===0)throw new Error("Invalid number skeleton")}n.push({stem:a,options:l})}return n}function L1e(e){return e.replace(/^(.*?)-/,"")}var Y3=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,E9=/^(@+)?(\+|#+)?[rs]?$/g,k1e=/(\*)(0+)|(#+)(0+)|(0+)/g,C9=/^(0+)$/;function J3(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(E9,function(n,r,i){return typeof i!="str
661ing"?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):i==="+"?t.minimumSignificantDigits=r.length:r[0]==="#"?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+(typeof i=="string"?i.length:0)),""}),t}function w9(e){switch(e){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function M1e(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var n=e.slice(0,2);if(n==="+!"?(t.signDisplay="always",e=e.slice(2)):n==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!C9.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length}return t}function Q3(e){var t={},n=w9(e);return n||t}function R1e(e){for(var t={},n=0,r=e;n<r.length;n++){var i=r[n];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=L1e(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=ne(ne(ne({},t),{notation:"scientific"}),i.options.reduce(function(l,u){return ne(ne({},l),Q3(u))},{}));continue;case"engineering":t=ne(ne(ne({},t),{notation:"engineering"}),i.options.reduce(function(l,u){return ne(ne({},l),Q3(u))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(k1e,function(l,u,c,d,f,p){if(u)t.minimumIntegerDigits=c.length;else{if(d&&f)throw new Error("We currently do not support maximum integer digits");if(p)throw new Error("We currently do not support exact integer digits")}return""});continue}if(C9.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Y3.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Y3,function(l,u,c,d,f,p){return c==="*"?t.minimumFractionDigits=u.length:d&&d[0]==="#"?t.maximumFractionDigits=d.length:f&&p?(t.minimumFractionDigits=f.length,t.maximumFractionDigits=f.length+p.length):(t.minimumFractionDigits=u.length,t.maximumFractionDigits=u.length),""});var o=i.options[0];o==="w"?t=ne(ne({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=ne(ne({},t),J3(o)));continue}if(E9.test(i.stem)){t=ne(ne({},t),J3(i.stem));continue}var s=w9(i.stem);s&&(t=ne(ne({},t),s));var a=M1e(i.stem);a&&(t=ne(ne({},t),a))}return t}var Bh={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA
vendor: 40,517 bytes, lines 661-682
661:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function P1e(e,t){for(var n="",r=0;r<e.length;r++){var i=e.charAt(r);if(i==="j"){for(var o=0;r+1<e.length&&e.charAt(r+1)===i;)o++,r++;var s=1+(o&1),a=o<2?1:3+(o>>1),l="a",u=O1e(t);for((u=="H"||u=="k")&&(a=0);a-- >0;)n+=l;for(;s-- >0;)n=u+n}else i==="J"?n+="H":n+=i}return n}function O1e(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var n=e.language,r;n!=="root"&&(r=e.maximize().region);var i=Bh[r||""]||Bh[n||""]||Bh["".concat(n,"-001")]||Bh["001"];return i[0]}var Iy,$1e=new RegExp("^".concat(S9.source,"*")),N1e=new RegExp("".concat(S9.source,"*$"));function Mt(e,t){return{start:e,end:t}}var H1e=!!String.prototype.startsWith&&"_a".startsWith("a",1),D1e=!!String.fromCodePoint,V1e=!!Object.fromEntries,F1e=!!String.prototype.codePointAt,B1e=!!String.prototype.trimStart,U1e=!!String.prototype.trimEnd,j1e=!!Number.isSafeInteger,W1e=j1e?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},h2=!0;try{var G1e=A9("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");h2=((Iy=G1e.exec("a"))===null||Iy===void 0?void 0:Iy[0])==="a"}catch{h2=!1}var ex=H1e?function(t,n,r){return t.startsWith(n,r)}:function(t,n,r){return t.slice(r,r+n.length)===n},m2=D1e?String.fromCodePoint:function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];for(var r="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");r+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320)}return r},tx=V1e?Object.fromEntries:function(t){for(var n={},r=0,i=t;r<i.length;r++){var o=i[r],s=o[0],a=o[1];n[s]=a}return n},T9=F1e?function(t,n){return t.codePointAt(n)}:function(t,n){var r=t.length;if(!(n<0||n>=r)){var i=t.charCodeAt(n),o;return i<55296||i>56319||n+1===r||(o=t.charCodeAt(n+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},z1e=B1e?function(t){return t.trimStart()}:function(t){return t.replace($1e,"")},q1e=U1e?function(t){return t.trimEnd()}:function(t){return t.replace(N1e,"")};function A9(e,t){return new RegExp(e,t)}var v2;if(h2){var nx=A9("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");v2=function(t,n){var r;nx.lastIndex=n;var i=nx.exec(t);return(r=i[1])!==null&&r!==void 0?r:""}}else v2=function(t,n){for(var r=[];;){var i=T9(t,n);if(i===void 0||I9(i)||Y1e(i))break;r.push(i),n+=i>=65536?2:1}return m2.apply(void 0,r)};var K1e=function(){function e(t,n){n===void 0&&(n={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!n.ignoreTag,this.locale=n.locale,this.requiresOtherClause=!!n.requiresOtherClause,this.shouldParseSkeletons=!!n.shouldParseSkeletons}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,n,r){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,r);if(s.err)return s;i.push(s.val)}else{if(o===125&&t>0)break;if(o===35&&(n==="plural"||n==="selectordinal")){var a=this.clonePosition();this.bump(),i.push({type:dn.pound,location:Mt(a,this.clonePosition())})}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(r)break;return this.error(xt.UNMATCHED_CLOSING_TAG,Mt(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&g2(this.peek()||0)){var s=this.parseTag(t,n);if(s.err)return s;i.push(s.val)}else{var s=this.parseLiteral(t,n);if(s.err)return s;i.push(s.val)}}}return{val:i,err:null}},e.prototype.parseTag=function(t,n){var r=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:dn.literal,value:"<".concat(i,"/>"),location:Mt(r,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,n,!0);if(o.err)return o;var s=o.val,a=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!g2(this.char()))return this.error(xt.INVALID_TAG,Mt(a,this.clonePosition()));var l=this.clonePosition(),u=this.parseTagName();return i!==u?this.error(xt.UNMATCHED_CLOSING_TAG,Mt(l,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:dn.tag,value:i,children:s,location:Mt(r,this.clonePosition())},err:null}:this.error(xt.INVALID_TAG,Mt(a,this.clonePosition())))}else return this.error(xt.UNCLOSED_TAG,Mt(r,this.clonePosition()))}else return this.error(xt.INVALID_TAG,Mt(r,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Z1e(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,n){for(var r=this.clonePosition(),i="";;){var o=this.tryParseQuote(n);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,n);if(s){i+=s;continue}var a=this.tryParseLeftAngleBracket();if(a){i+=a;continue}break}var l=Mt(r,this.clonePosition());return{val:{type:dn.literal,value:i,location:l},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return!this.isEOF()&&this.char()===60&&(this.ignoreTag||!X1e(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var n=[this.char()];for(this.bump();!this.isEOF();){var r=this.char();if(r===39)if(this.peek()===39)n.push(39),this.bump();else{this.bump();break}else n.push(r);this.bump()}return m2.apply(void 0,n)},e.prototype.tryParseUnquoted=function(t,n){if(this.isEOF())return null;var r=this.char();return r===60||r===123||r===35&&(n==="plural"||n==="selectordinal")||r===125&&t>0?null:(this.bump(),m2(r))},e.prototype.parseArgument=function(t,n){var r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(xt.EXPECT_ARGUMENT_CLOSING_BRACE,Mt(r,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(xt.EMPTY_ARGUMENT,Mt(r,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(xt.MALFORMED_ARGUMENT,Mt(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(xt.EXPECT_ARGUMENT_CLOSING_BRACE,Mt(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:dn.argument,value:i,location:Mt(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(xt.EXPECT_ARGUMENT_CLOSING_BRACE,Mt(r,this.clonePosition())):this.parseArgumentOptions(t,n,i,r);default:return this.error(xt.MALFORMED_ARGUMENT,Mt(r,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),n=this.offset(),r=v2(this.message,n),i=n+r.length;this.bumpTo(i);var o=this.clonePosition(),s=Mt(t,o);return{value:r,location:s}},e.prototype.parseArgumentOptions=function(t,n,r,i){var o,s=this.clonePosition(),a=this.parseIdentifierIfPossible().value,l=this.clonePosition();switch(a){case"":return this.error(xt.EXPECT_ARGUMENT_TYPE,Mt(s,l));case"number":case"date":case"time":{this.bumpSpace();var u=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),d=this.parseSimpleArgStyleIfPossible();if(d.err)return d;var f=q1e(d.val);if(f.length===0)return this.error(xt.EXPECT_ARGUMENT_STYLE,Mt(this.clonePosition(),this.clonePosition()));var p=Mt(c,this.clonePosition());u={style:f,styleLocation:p}}var h=this.tryParseArgumentClose(i);if(h.err)return h;var m=Mt(i,this.clonePosition());if(u&&ex(u==null?void 0:u.style,"::",0)){var v=z1e(u.style.slice(2));if(a==="number"){var d=this.parseNumberSkeletonFromString(v,u.styleLocation);return d.err?d:{val:{type:dn.number,value:r,location:m,style:d.val},err:null}}else{if(v.length===0)return this.error(xt.EXPECT_DATE_TIME_SKELETON,m);var g=v;this.locale&&(g=P1e(v,this.locale));var f={type:xc.dateTime,pattern:g,location:u.styleLocation,parsedOptions:this.shouldParseSkeletons?A1e(g):{}},y=a==="date"?dn.date:dn.time;return{val:{type:y,value:r,location:m,style:f},err:null}}}return{val:{type:a==="number"?dn.number:a==="date"?dn.date:dn.time,value:r,location:m,style:(o=u==null?void 0:u.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var _=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(xt.EXPECT_SELECT_ARGUMENT_OPTIONS,Mt(_,ne({},_)));this.bumpSpace();var b=this.parseIdentifierIfPossible(),S=0;if(a!=="select"&&b.value==="offset"){if(!this.bumpIf(":"))return this.error(xt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Mt(this.clonePosition(),this.clonePosition()));this.bumpSpace();var d=this.tryParseDecimalInteger(xt.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,xt.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(d.err)return d;this.bumpSpace(),b=this.parseIdentifierIfPossible(),S=d.val}var C=this.tryParsePluralOrSelectOptions(t,a,n,b);if(C.err)return C;var h=this.tryParseArgumentClose(i);if(h.err)return h;var E=Mt(i,this.clonePosition());return a==="select"?{val:{type:dn.select,value:r,options:tx(C.val),location:E},err:null}:{val:{type:dn.plural,value:r,options:tx(C.val),offset:S,pluralType:a==="plural"?"cardinal":"ordinal",location:E},err:null}}default:return this.error(xt.INVALID_ARGUMENT_TYPE,Mt(s,l))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(xt.EXPECT_ARGUMENT_CLOSING_BRACE,Mt(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,n=this.clonePosition();!this.isEOF();){var r=this.char();switch(r){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(xt.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Mt(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return{val:this.message.slice(n.offset,this.offset()),err:null};break}default:this.bump();break}}return{val:this.message.slice(n.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,n){var r=[];try{r=x1e(t)}catch{return this.error(xt.INVALID_NUMBER_SKELETON,n)}return{val:{type:xc.number,tokens:r,location:n,parsedOptions:this.shouldParseSkeletons?R1e(r):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,n,r,i){for(var o,s=!1,a=[],l=new Set,u=i.value,c=i.location;;){if(u.length===0){var d=this.clonePosition();if(n!=="select"&&this.bumpIf("=")){var f=this.tryParseDecimalInteger(xt.EXPECT_PLURAL_ARGUMENT_SELECTOR,xt.INVALID_PLURAL_ARGUMENT_SELECTOR);if(f.err)return f;c=Mt(d,this.clonePosition()),u=this.message.slice(d.offset,this.offset())}else break}if(l.has(u))return this.error(n==="select"?xt.DUPLICATE_SELECT_ARGUMENT_SELECTOR:xt.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);u==="other"&&(s=!0),this.bumpSpace();var p=this.clonePosition();if(!this.bumpIf("{"))return this.error(n==="select"?xt.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:xt.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Mt(this.clonePosition(),this.clonePosition()));var h=this.parseMessage(t+1,n,r);if(h.err)return h;var m=this.tryParseArgumentClose(p);if(m.err)return m;a.push([u,{value:h.val,location:Mt(p,this.clonePosition())}]),l.add(u),this.bumpSpace(),o=this.parseIdentifierIfPossible(),u=o.value,c=o.location}return a.length===0?this.error(n==="select"?xt.EXPECT_SELECT_ARGUMENT_SELECTOR:xt.EXPECT_PLURAL_ARGUMENT_SELECTOR,Mt(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(xt.MISSING_OTHER_CLAUSE,Mt(this.clonePosition(),this.clonePosition())):{val:a,err:null}},e.prototype.tryParseDecimalInteger=function(t,n){var r=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(r=-1);for(var o=!1,s=0;!this.isEOF();){var a=this.char();if(a>=48&&a<=57)o=!0,s=s*10+(a-48),this.bump();else break}var l=Mt(i,this.clonePosition());return o?(s*=r,W1e(s)?{val:s,err:null}:this.error(n,l)):this.error(t,l)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var n=T9(this.message,t);if(n===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return n},e.prototype.error=function(t,n){return{val:null,err:{kind:t,message:this.message,location:n}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},e.prototype.bumpIf=function(t){if(ex(this.message,t,this.offset())){for(var n=0;n<t.length;n++)this.bump();return!0}return!1},e.prototype.bumpUntil=function(t){var n=this.offset(),r=this.message.indexOf(t,n);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var n=this.offset();if(n===t)break;if(n>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&I9(this.char());)this.bump()},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),n=this.offset(),r=this.message.charCodeAt(n+(t>=65536?2:1));return r??null},e}();function g2(e){return e>=97&&e<=122||e>=65&&e<=90}function X1e(e){return g2(e)||e===47}function Z1e(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function I9(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function Y1e(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function y2(e){e.forEach(function(t){if(delete t.location,g9(t)||y9(t))for(var n in t.options)delete t.options[n].location,y2(t.options[n].value);else h9(t)&&_9(t.style)||(m9(t)||v9(t))&&p2(t.style)?delete t.style.location:b9(t)&&y2(t.children)})}function J1e(e,t){t===void 0&&(t={}),t=ne({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var n=new K1e(e,t).parse();if(n.err){var r=SyntaxError(xt[n.err.kind]);throw r.location=n.err.location,r.originalMessage=n.err.message,r}return t!=null&&t.captureLocation||y2(n.val),n.val}var Oo;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API"})(Oo||(Oo={}));var Ia=function(e){Vt(t,e);function t(n,r,i){var o=e.call(this,n)||this;return o.code=r,o.originalMessage=i,o}return t.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),rx=function(e){Vt(t,e);function t(n,r,i,o){return e.call(this,'Invalid values for "'.concat(n,'": "').concat(r,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Oo.INVALID_VALUE,o)||this}return t}(Ia),Q1e=function(e){Vt(t,e);function t(n,r,i){return e.call(this,'Value for "'.concat(n,'" must be of type ').concat(r),Oo.INVALID_VALUE,i)||this}return t}(Ia),e0e=function(e){Vt(t,e);function t(n,r){return e.call(this,'The intl string context variable "'.concat(n,'" was not provided to the string "').concat(r,'"'),Oo.MISSING_VALUE,r)||this}return t}(Ia),Cr;(function(e){e[e.literal=0]="literal",e[e.object=1]="object"})(Cr||(Cr={}));function t0e(e){return e.length<2?e:e.reduce(function(t,n){var r=t[t.length-1];return!r||r.type!==Cr.literal||n.type!==Cr.literal?t.push(n):r.value+=n.value,t},[])}function n0e(e){return typeof e=="function"}function Om(e,t,n,r,i,o,s){if(e.length===1&&Z3(e[0]))return[{type:Cr.literal,value:e[0].value}];for(var a=[],l=0,u=e;l<u.length;l++){var c=u[l];if(Z3(c)){a.push({type:Cr.literal,value:c.value});continue}if(w1e(c)){typeof o=="number"&&a.push({type:Cr.literal,value:n.getNumberFormat(t).format(o)});continue}var d=c.value;if(!(i&&d in i))throw new e0e(d,s);var f=i[d];if(C1e(c)){(!f||typeof f=="string"||typeof f=="number")&&(f=typeof f=="string"||typeof f=="number"?String(f):""),a.push({type:typeof f=="string"?Cr.literal:Cr.object,value:f});continue}if(m9(c)){var p=typeof c.style=="string"?r.date[c.style]:p2(c.style)?c.style.parsedOptions:void 0;a.push({type:Cr.literal,value:n.getDateTimeFormat(t,p).format(f)});continue}if(v9(c)){var p=typeof c.style=="string"?r.time[c.style]:p2(c.style)?c.style.parsedOptions:r.time.medium;a.push({type:Cr.literal,value:n.getDateTimeFormat(t,p).format(f)});continue}if(h9(c)){var p=typeof c.style=="string"?r.number[c.style]:_9(c.style)?c.style.parsedOptions:void 0;p&&p.scale&&(f=f*(p.scale||1)),a.push({type:Cr.literal,value:n.getNumberFormat(t,p).format(f)});continue}if(b9(c)){var h=c.children,m=c.value,v=i[m];if(!n0e(v))throw new Q1e(m,"function",s);var g=Om(h,t,n,r,i,o),y=v(g.map(function(S){return S.value}));Array.isArray(y)||(y=[y]),a.push.apply(a,y.map(function(S){return{type:typeof S=="string"?Cr.literal:Cr.object,value:S}}))}if(g9(c)){var _=c.options[f]||c.options.other;if(!_)throw new rx(c.value,f,Object.keys(c.options),s);a.push.apply(a,Om(_.value,t,n,r,i));continue}if(y9(c)){var _=c.options["=".concat(f)];if(!_){if(!Intl.PluralRules)throw new Ia(`Intl.PluralRules is not available in this environment. 662Try polyfilling it using "@formatjs/intl-pluralrules" 663`,Oo.MISSING_INTL_API,s);var b=n.getPluralRules(t,{type:c.pluralType}).select(f-(c.offset||0));_=c.options[b]||c.options.other}if(!_)throw new rx(c.value,f,Object.keys(c.options),s);a.push.apply(a,Om(_.value,t,n,r,i,f-(c.offset||0)));continue}}return t0e(a)}function r0e(e,t){return t?ne(ne(ne({},e||{}),t||{}),Object.keys(e).reduce(function(n,r){return n[r]=ne(ne({},e[r]),t[r]||{}),n},{})):e}function i0e(e,t){return t?Object.keys(e).reduce(function(n,r){return n[r]=r0e(e[r],t[r]),n},ne({},e)):e}function xy(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function o0e(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:wr(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.NumberFormat).bind.apply(t,Fe([void 0],n,!1)))},{cache:xy(e.number),strategy:Tr.variadic}),getDateTimeFormat:wr(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.DateTimeFormat).bind.apply(t,Fe([void 0],n,!1)))},{cache:xy(e.dateTime),strategy:Tr.variadic}),getPluralRules:wr(function(){for(var t,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];return new((t=Intl.PluralRules).bind.apply(t,Fe([void 0],n,!1)))},{cache:xy(e.pluralRules),strategy:Tr.variadic})}}var x9=function(){function e(t,n,r,i){n===void 0&&(n=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(l){var u=o.formatToParts(l);if(u.length===1)return u[0].value;var c=u.reduce(function(d,f){return!d.length||f.type!==Cr.literal||typeof d[d.length-1]!="string"?d.push(f.value):d[d.length-1]+=f.value,d},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(l){return Om(o.ast,o.locales,o.formatters,o.formats,l,void 0,o.message)},this.resolvedOptions=function(){var l;return{locale:((l=o.resolvedLocale)===null||l===void 0?void 0:l.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=n,this.resolvedLocale=e.resolveLocale(n),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};s.formatters;var a=Sv(s,["formatters"]);this.ast=e.__parse(t,ne(ne({},a),{locale:this.resolvedLocale}))}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=i0e(e.formats,r),this.formatters=i&&i.formatters||o0e(this.formatterCache)}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var n=Intl.NumberFormat.supportedLocalesOf(t);return n.length>0?new Intl.Locale(n[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=J1e,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}(),Ml;(function(e){e.FORMAT_ERROR="FORMAT_ERROR",e.UNSUPPORTED_FORMATTER="UNSUPPORTED_FORMATTER",e.INVALID_CONFIG="INVALID_CONFIG",e.MISSING_DATA="MISSING_DATA",e.MISSING_TRANSLATION="MISSING_TRANSLATION"})(Ml||(Ml={}));var Wp=function(e){Vt(t,e);function t(n,r,i){var o=this,s=i?i instanceof Error?i:new Error(String(i)):void 0;return o=e.call(this,"[@formatjs/intl Error ".concat(n,"] ").concat(r,` 664`).concat(s?` 665`.concat(s.message,` 666`).concat(s.stack):""))||this,o.code=n,typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(o,t),o}return t}(Error),s0e=function(e){Vt(t,e);function t(n,r){return e.call(this,Ml.UNSUPPORTED_FORMATTER,n,r)||this}return t}(Wp),a0e=function(e){Vt(t,e);function t(n,r){return e.call(this,Ml.INVALID_CONFIG,n,r)||this}return t}(Wp),ix=function(e){Vt(t,e);function t(n,r){return e.call(this,Ml.MISSING_DATA,n,r)||this}return t}(Wp),Hi=function(e){Vt(t,e);function t(n,r,i){var o=e.call(this,Ml.FORMAT_ERROR,"".concat(n,` 667Locale: `).concat(r,` 668`),i)||this;return o.locale=r,o}return t}(Wp),Ly=function(e){Vt(t,e);function t(n,r,i,o){var s=e.call(this,"".concat(n,` 669MessageID: `).concat(i==null?void 0:i.id,` 670Default Message: `).concat(i==null?void 0:i.defaultMessage,` 671Description: `).concat(i==null?void 0:i.description,` 672`),r,o)||this;return s.descriptor=i,s.locale=r,s}return t}(Hi),l0e=function(e){Vt(t,e);function t(n,r){var i=e.call(this,Ml.MISSING_TRANSLATION,'Missing message: "'.concat(n.id,'" for locale "').concat(r,'", using ').concat(n.defaultMessage?"default message (".concat(typeof n.defaultMessage=="string"?n.defaultMessage:n.defaultMessage.map(function(o){var s;return(s=o.value)!==null&&s!==void 0?s:JSON.stringify(o)}).join(),")"):"id"," as fallback."))||this;return i.descriptor=n,i}return t}(Wp);function Yl(e,t,n){return n===void 0&&(n={}),t.reduce(function(r,i){return i in e?r[i]=e[i]:i in n&&(r[i]=n[i]),r},{})}var u0e=function(e){},c0e=function(e){},d0e={formats:{},messages:{},timeZone:void 0,defaultLocale:"en",defaultFormats:{},fallbackOnEmptyString:!0,onError:u0e,onWarn:c0e};function f0e(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function $a(e){return{create:function(){return{get:function(t){return e[t]},set:function(t,n){e[t]=n}}}}}function p0e(e){e===void 0&&(e=f0e());var t=Intl.RelativeTimeFormat,n=Intl.ListFormat,r=Intl.DisplayNames,i=wr(function(){for(var a,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((a=Intl.DateTimeFormat).bind.apply(a,Fe([void 0],l,!1)))},{cache:$a(e.dateTime),strategy:Tr.variadic}),o=wr(function(){for(var a,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((a=Intl.NumberFormat).bind.apply(a,Fe([void 0],l,!1)))},{cache:$a(e.number),strategy:Tr.variadic}),s=wr(function(){for(var a,l=[],u=0;u<arguments.length;u++)l[u]=arguments[u];return new((a=Intl.PluralRules).bind.apply(a,Fe([void 0],l,!1)))},{cache:$a(e.pluralRules),strategy:Tr.variadic});return{getDateTimeFormat:i,getNumberFormat:o,getMessageFormat:wr(function(a,l,u,c){return new x9(a,l,u,ne({formatters:{getNumberFormat:o,getDateTimeFormat:i,getPluralRules:s}},c||{}))},{cache:$a(e.message),strategy:Tr.variadic}),getRelativeTimeFormat:wr(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return new(t.bind.apply(t,Fe([void 0],a,!1)))},{cache:$a(e.relativeTime),strategy:Tr.variadic}),getPluralRules:s,getListFormat:wr(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return new(n.bind.apply(n,Fe([void 0],a,!1)))},{cache:$a(e.list),strategy:Tr.variadic}),getDisplayNames:wr(function(){for(var a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];return new(r.bind.apply(r,Fe([void 0],a,!1)))},{cache:$a(e.displayNames),strategy:Tr.variadic})}}function ow(e,t,n,r){var i=e&&e[t],o;if(i&&(o=i[n]),o)return o;r(new s0e("No ".concat(t," format named: ").concat(n)))}function h0e(e,t,n){if(n===void 0&&(n=Error),!e)throw new n(t)}wr(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.NumberFormat).bind.apply(e,Fe([void 0],t,!1)))},{strategy:Tr.variadic});wr(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.DateTimeFormat).bind.apply(e,Fe([void 0],t,!1)))},{strategy:Tr.variadic});wr(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.PluralRules).bind.apply(e,Fe([void 0],t,!1)))},{strategy:Tr.variadic});wr(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.Locale).bind.apply(e,Fe([void 0],t,!1)))},{strategy:Tr.variadic});wr(function(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return new((e=Intl.ListFormat).bind.apply(e,Fe([void 0],t,!1)))},{strategy:Tr.variadic});function Uh(e,t){return Object.keys(e).reduce(function(n,r){return n[r]=ne({timeZone:t},e[r]),n},{})}function ox(e,t){var n=Object.keys(ne(ne({},e),t));return n.reduce(function(r,i){return r[i]=ne(ne({},e[i]||{}),t[i]||{}),r},{})}function sx(e,t){if(!t)return e;var n=x9.formats;return ne(ne(ne({},n),e),{date:ox(Uh(n.date,t),Uh(e.date||{},t)),time:ox(Uh(n.time,t),Uh(e.time||{},t))})}var ax=function(e,t,n,r,i){var o=e.locale,s=e.formats,a=e.messages,l=e.defaultLocale,u=e.defaultFormats,c=e.fallbackOnEmptyString,d=e.onError,f=e.timeZone,p=e.defaultRichTextElements;n===void 0&&(n={id:""});var h=n.id,m=n.defaultMessage;h0e(!!h,"[@formatjs/intl] An `id` must be provided to format a message. You can either:\n1. Configure your build toolchain with [babel-plugin-formatjs](https://formatjs.io/docs/tooling/babel-plugin)\nor [@formatjs/ts-transformer](https://formatjs.io/docs/tooling/ts-transformer) OR\n2. Configure your `eslint` config to include [eslint-plugin-formatjs](https://formatjs.io/docs/tooling/linter#enforce-id)\nto autofix this issue");var v=String(h),g=a&&Object.prototype.hasOwnProperty.call(a,v)&&a[v];if(Array.isArray(g)&&g.length===1&&g[0].type===dn.literal)return g[0].value;if(!r&&g&&typeof g=="string"&&!p)return g.replace(/'\{(.*?)\}'/gi,"{$1}");if(r=ne(ne({},p),r||{}),s=sx(s,f),u=sx(u,f),!g){if(c===!1&&g==="")return g;if((!m||o&&o.toLowerCase()!==l.toLowerCase())&&d(new l0e(n,o)),m)try{var y=t.getMessageFormat(m,l,u,i);return y.format(r)}catch(_){return d(new Ly('Error formatting default message for: "'.concat(v,'", rendering default message verbatim'),o,n,_)),typeof m=="string"?m:v}return v}try{var y=t.getMessageFormat(g,o,s,ne({formatters:t},i||{}));return y.format(r)}catch(_){d(new Ly('Error formatting message: "'.concat(v,'", using ').concat(m?"default message":"id"," as fallback."),o,n,_))}if(m)try{var y=t.getMessageFormat(m,l,u,i);return y.format(r)}catch(_){d(new Ly('Error formatting the default message for: "'.concat(v,'", rendering message verbatim'),o,n,_))}return typeof g=="string"?g:typeof m=="string"?m:v},L9=["formatMatcher","timeZone","hour12","weekday","era","year","month","day","hour","minute","second","timeZoneName","hourCycle","dateStyle","timeStyle","calendar","numberingSystem","fractionalSecondDigits"];function i0(e,t,n,r){var i=e.locale,o=e.formats,s=e.onError,a=e.timeZone;r===void 0&&(r={});var l=r.format,u=ne(ne({},a&&{timeZone:a}),l&&ow(o,t,l,s)),c=Yl(r,L9,u);return t==="time"&&!c.hour&&!c.minute&&!c.second&&!c.timeStyle&&!c.dateStyle&&(c=ne(ne({},c),{hour:"numeric",minute:"numeric"})),n(i,c)}function m0e(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],s=o===void 0?{}:o,a=typeof i=="string"?new Date(i||0):i;try{return i0(e,"date",t,s).format(a)}catch(l){e.onError(new Hi("Error formatting date.",e.locale,l))}return String(a)}function v0e(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],s=o===void 0?{}:o,a=typeof i=="string"?new Date(i||0):i;try{return i0(e,"time",t,s).format(a)}catch(l){e.onError(new Hi("Error formatting time.",e.locale,l))}return String(a)}function g0e(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],s=n[2],a=s===void 0?{}:s,l=e.timeZone,u=e.locale,c=e.onError,d=Yl(a,L9,l?{timeZone:l}:{});try{return t(u,d).formatRange(i,o)}catch(f){c(new Hi("Error formatting date time range.",e.locale,f))}return String(i)}function y0e(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],s=o===void 0?{}:o,a=typeof i=="string"?new Date(i||0):i;try{return i0(e,"date",t,s).formatToParts(a)}catch(l){e.onError(new Hi("Error formatting date.",e.locale,l))}return[]}function b0e(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=n[0],o=n[1],s=o===void 0?{}:o,a=typeof i=="string"?new Date(i||0):i;try{return i0(e,"time",t,s).formatToParts(a)}catch(l){e.onError(new Hi("Error formatting time.",e.locale,l))}return[]}var _0e=["style","type","fallback","languageDisplay"];function S0e(e,t,n,r){var i=e.locale,o=e.onError,s=Intl.DisplayNames;s||o(new Ia(`Intl.DisplayNames is not available in this environment. 673Try polyfilling it using "@formatjs/intl-displaynames" 674`,Oo.MISSING_INTL_API));var a=Yl(r,_0e);try{return t(i,a).of(n)}catch(l){o(new Hi("Error formatting display name.",i,l))}}var E0e=["type","style"],lx=Date.now();function C0e(e){return"".concat(lx,"_").concat(e,"_").concat(lx)}function w0e(e,t,n,r){r===void 0&&(r={});var i=k9(e,t,n,r).reduce(function(o,s){var a=s.value;return typeof a!="string"?o.push(a):typeof o[o.length-1]=="string"?o[o.length-1]+=a:o.push(a),o},[]);return i.length===1?i[0]:i.length===0?"":i}function k9(e,t,n,r){var i=e.locale,o=e.onError;r===void 0&&(r={});var s=Intl.ListFormat;s||o(new Ia(`Intl.ListFormat is not available in this environment. 675Try polyfilling it using "@formatjs/intl-listformat" 676`,Oo.MISSING_INTL_API));var a=Yl(r,E0e);try{var l={},u=n.map(function(c,d){if(typeof c=="object"){var f=C0e(d);return l[f]=c,f}return String(c)});return t(i,a).formatToParts(u).map(function(c){return c.type==="literal"?c:ne(ne({},c),{value:l[c.value]||c.value})})}catch(c){o(new Hi("Error formatting list.",i,c))}return n}var T0e=["type"];function A0e(e,t,n,r){var i=e.locale,o=e.onError;r===void 0&&(r={}),Intl.PluralRules||o(new Ia(`Intl.PluralRules is not available in this environment. 677Try polyfilling it using "@formatjs/intl-pluralrules" 678`,Oo.MISSING_INTL_API));var s=Yl(r,T0e);try{return t(i,s).select(n)}catch(a){o(new Hi("Error formatting plural.",i,a))}return"other"}var I0e=["numeric","style"];function x0e(e,t,n){var r=e.locale,i=e.formats,o=e.onError;n===void 0&&(n={});var s=n.format,a=!!s&&ow(i,"relative",s,o)||{},l=Yl(n,I0e,a);return t(r,l)}function L0e(e,t,n,r,i){i===void 0&&(i={}),r||(r="second");var o=Intl.RelativeTimeFormat;o||e.onError(new Ia(`Intl.RelativeTimeFormat is not available in this environment. 679Try polyfilling it using "@formatjs/intl-relativetimeformat" 680`,Oo.MISSING_INTL_API));try{return x0e(e,t,i).format(n,r)}catch(s){e.onError(new Hi("Error formatting relative time.",e.locale,s))}return String(n)}var k0e=["style","currency","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","currencyDisplay","currencySign","notation","signDisplay","unit","unitDisplay","numberingSystem","trailingZeroDisplay","roundingPriority","roundingIncrement","roundingMode"];function M9(e,t,n){var r=e.locale,i=e.formats,o=e.onError;n===void 0&&(n={});var s=n.format,a=s&&ow(i,"number",s,o)||{},l=Yl(n,k0e,a);return t(r,l)}function M0e(e,t,n,r){r===void 0&&(r={});try{return M9(e,t,r).format(n)}catch(i){e.onError(new Hi("Error formatting number.",e.locale,i))}return String(n)}function R0e(e,t,n,r){r===void 0&&(r={});try{return M9(e,t,r).formatToParts(n)}catch(i){e.onError(new Hi("Error formatting number.",e.locale,i))}return[]}function P0e(e){var t=e?e[Object.keys(e)[0]]:void 0;return typeof t=="string"}function O0e(e){e.onWarn&&e.defaultRichTextElements&&P0e(e.messages||{})&&e.onWarn(`[@formatjs/intl] "defaultRichTextElements" was specified but "message" was not pre-compiled. 681Please consider using "@formatjs/cli" to pre-compile your messages for performance. 682For more details see https://formatjs.io/docs/getting-started/message-distribution`)}function hBe(e,t){var n=p0e(t),r=ne(ne({},d0e),e),i=r.locale,o=r.defaultLocale,s=r.onError;return i?!Intl.NumberFormat.supportedLocalesOf(i).length&&s?s(new ix('Missing locale data for locale: "'.concat(i,'" in Intl.NumberFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):!Intl.DateTimeFormat.supportedLocalesOf(i).length&&s&&s(new ix('Missing locale data for locale: "'.concat(i,'" in Intl.DateTimeFormat. Using default locale: "').concat(o,'" as fallback. See https://formatjs.io/docs/react-intl#runtime-requirements for more details'))):(s&&s(new a0e('"locale" was not configured, using "'.concat(o,'" as fallback. See https://formatjs.io/docs/react-intl/api#intlshape for more details'))),r.locale=r.defaultLocale||"en"),O0e(r),ne(ne({},r),{formatters:n,formatNumber:M0e.bind(null,r,n.getNumberFormat),formatNumberToParts:R0e.bind(null,r,n.getNumberFormat),formatRelativeTime:L0e.bind(null,r,n.getRelativeTimeFormat),formatDate:m0e.bind(null,r,n.getDateTimeFormat),formatDateToParts:y0e.bind(null,r,n.getDateTimeFormat),formatTime:v0e.bind(null,r,n.getDateTimeFormat),formatDateTimeRange:g0e.bind(null,r,n.getDateTimeFormat),formatTimeToParts:b0e.bind(null,r,n.getDateTimeFormat),formatPlural
682:A0e.bind(null,r,n.getPluralRules),formatMessage:ax.bind(null,r,n),$t:ax.bind(null,r,n),formatList:w0e.bind(null,r,n.getListFormat),formatListToParts:k9.bind(null,r,n.getListFormat),formatDisplayName:S0e.bind(null,r,n.getDisplayNames)})}var Nu;(function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"})(Nu||(Nu={}));var uo;(function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"})(uo||(uo={}));var ux="-",o0="AMP",R9="".concat(o0,"_unsent"),P9="$default_instance",O9="https://api2.amplitude.com/2/httpapi",$0e="https://api.eu.amplitude.com/2/httpapi",N0e="https://api2.amplitude.com/batch",H0e="https://api.eu.amplitude.com/batch",D0e="utm_campaign",V0e="utm_content",F0e="utm_id",B0e="utm_medium",U0e="utm_source",j0e="utm_term",cx="dclid",dx="fbclid",fx="gbraid",px="gclid",hx="ko_click_id",mx="li_fat_id",vx="msclkid",gx="rdt_cid",yx="ttclid",bx="twclid",_x="wbraid",sw={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rdt_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},b2=["access-control-allow-origin","access-control-allow-credentials","access-control-expose-headers","access-control-max-age","access-control-allow-methods","access-control-allow-headers","accept-patch","accept-ranges","age","allow","alt-svc","cache-control","connection","content-disposition","content-encoding","content-language","content-length","content-location","content-md5","content-range","content-type","date","delta-base","etag","expires","im","last-modified","link","location","permanent","p3p","pragma","proxy-authenticate","public-key-pins","retry-after","server","status","strict-transport-security","trailer","transfer-encoding","tk","upgrade","vary","via","warning","www-authenticate","x-b3-traceid","x-frame-options"],W0e=["authorization","cookie","set-cookie"],G0e=1e3,_2=function(e){if(Object.keys(e).length>G0e)return!1;for(var t in e){var n=e[t];if(!$9(t,n))return!1}return!0},$9=function(e,t){var n,r;if(typeof e!="string")return!1;if(Array.isArray(t)){var i=!0;try{for(var o=Ge(t),s=o.next();!s.done;s=o.next()){var a=s.value;if(Array.isArray(a))return!1;if(typeof a=="object")i=i&&_2(a);else if(!["number","string"].includes(typeof a))return!1;if(!i)return!1}}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}else{if(t==null)return!1;if(typeof t=="object")return _2(t);if(!["number","string","boolean"].includes(typeof t))return!1}return!0},ag=function(){function e(){this._propertySet=new Set,this._properties={}}return e.prototype.getUserProperties=function(){return ne({},this._properties)},e.prototype.set=function(t,n){return this._safeSet(en.SET,t,n),this},e.prototype.setOnce=function(t,n){return this._safeSet(en.SET_ONCE,t,n),this},e.prototype.append=function(t,n){return this._safeSet(en.APPEND,t,n),this},e.prototype.prepend=function(t,n){return this._safeSet(en.PREPEND,t,n),this},e.prototype.postInsert=function(t,n){return this._safeSet(en.POSTINSERT,t,n),this},e.prototype.preInsert=function(t,n){return this._safeSet(en.PREINSERT,t,n),this},e.prototype.remove=function(t,n){return this._safeSet(en.REMOVE,t,n),this},e.prototype.add=function(t,n){return this._safeSet(en.ADD,t,n),this},e.prototype.unset=function(t){return this._safeSet(en.UNSET,t,ux),this},e.prototype.clearAll=function(){return this._properties={},this._properties[en.CLEAR_ALL]=ux,this},e.prototype._safeSet=function(t,n,r){if(this._validate(t,n,r)){var i=this._properties[t];return i===void 0&&(i={},this._properties[t]=i),i[n]=r,this._propertySet.add(n),!0}return!1},e.prototype._validate=function(t,n,r){return this._properties[en.CLEAR_ALL]!==void 0||this._propertySet.has(n)?!1:t===en.ADD?typeof r=="number":t!==en.UNSET&&t!==en.REMOVE?$9(n,r):!0},e}(),en;(function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"})(en||(en={}));var z0e=[en.CLEAR_ALL,en.UNSET,en.SET,en.SET_ONCE,en.ADD,en.APPEND,en.PREPEND,en.PREINSERT,en.POSTINSERT,en.REMOVE],q0e="Event tracked successfully",K0e="Unexpected error occurred",X0e="Event rejected due to exceeded retry count",Z0e="Event skipped due to optOut config",Y0e="Event rejected due to missing API key",J0e="Invalid API key",Q0e="Client not initialized",xn;(function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed",e.Timeout="Timeout",e.SystemError="SystemError"})(xn||(xn={}));var ec=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=xn.Unknown),{event:e,code:t,message:n}},$t=function(){var e="ampIntegrationContext";if(typeof globalThis<"u"&&typeof globalThis[e]<"u")return globalThis[e];if(typeof globalThis<"u")return globalThis;if(typeof window<"u")return window;if(typeof self<"u")return self;if(typeof global<"u")return global},eye=function(e){return e?(e^Math.random()*16>>e/4).toString(16):(String(1e7)+String(-1e3)+String(-4e3)+String(-8e3)+String(-1e11)).replace(/[018]/g,ks)},Sx=Fe([],Ne(Array(256).keys()),!1).map(function(e){return e.toString(16).padStart(2,"0")}),ks=function(e){var t,n=$t();if(!(!((t=n==null?void 0:n.crypto)===null||t===void 0)&&t.getRandomValues))return eye(e);var r=n.crypto.getRandomValues(new Uint8Array(16));return r[6]=r[6]&15|64,r[8]=r[8]&63|128,Fe([],Ne(r.entries()),!1).map(function(i){var o=Ne(i,2),s=o[0],a=o[1];return[4,6,8,10].includes(s)?"-".concat(Sx[a]):Sx[a]}).join("")},tye=function(){function e(t){this.client=t,this.queue=[],this.applying=!1,this.plugins=[],this._optOutListeners=[]}return e.prototype.register=function(t,n){var r,i;return ue(this,void 0,void 0,function(){return oe(this,function(o){switch(o.label){case 0:return this.plugins.some(function(s){return s.name===t.name})?(this.loggerProvider.warn("Plugin with name ".concat(t.name," already exists, skipping registration")),[2]):(t.name===void 0&&(t.name=ks(),this.loggerProvider.warn(`Plugin name is undefined. 683 Generating a random UUID for plugin name: `.concat(t.name,`. 684 Set a name for the plugin to prevent it from being added multiple times.`))),t.type=(r=t.type)!==null&&r!==void 0?r:"enrichment",[4,(i=t.setup)===null||i===void 0?void 0:i.call(t,n,this.client)]);case 1:return o.sent(),this.plugins.push(t),[2]}})})},e.prototype.deregister=function(t,n){var r;return ue(this,void 0,void 0,function(){var i,o;return oe(this,function(s){switch(s.label){case 0:return i=this.plugins.findIndex(function(a){return a.name===t}),i===-1?(n.loggerProvider.warn("Plugin with name ".concat(t," does not exist, skipping deregistration")),[2]):(o=this.plugins[i],this.plugins.splice(i,1),[4,(r=o.teardown)===null||r===void 0?void 0:r.call(o)]);case 1:return s.sent(),[2]}})})},e.prototype.reset=function(t){this._clearOptOutListeners(),this.applying=!1;var n=this.plugins;n.map(function(r){var i;return(i=r.teardown)===null||i===void 0?void 0:i.call(r)}),this.plugins=[],this.client=t},e.prototype.push=function(t){var n=this;return new Promise(function(r){n.queue.push([t,r]),n.scheduleApply(0)})},e.prototype.scheduleApply=function(t){var n=this;this.applying||(this.applying=!0,setTimeout(function(){n.apply(n.queue.shift()).then(function(){n.applying=!1,n.queue.length>0&&n.scheduleApply(0)})},t))},e.prototype.apply=function(t){return ue(this,void 0,void 0,function(){var n,r,i,o,s,a,l,p,h,u,c,d,f,p,h,m,v,g,y,_,b,S;return oe(this,function(C){switch(C.label){case 0:if(!t)return[2];n=Ne(t,1),r=n[0],i=Ne(t,2),o=i[1],this.loggerProvider.log("Timeline.apply: Initial event",r),s=this.plugins.filter(function(E){return E.type==="before"}),C.label=1;case 1:C.trys.push([1,6,7,8]),a=Ge(s),l=a.next(),C.label=2;case 2:return l.done?[3,5]:(p=l.value,p.execute?[4,p.execute(ne({},r))]:[3,4]);case 3:if(h=C.sent(),h===null)return this.loggerProvider.log("Timeline.apply: Event filtered out by before plugin '".concat(String(p.name),"', event: ").concat(JSON.stringify(r))),o({event:r,code:0,message:""}),[2];r=h,this.loggerProvider.log("Timeline.apply: Event after before plugin '".concat(String(p.name),"', event: ").concat(JSON.stringify(r))),C.label=4;case 4:return l=a.next(),[3,2];case 5:return[3,8];case 6:return u=C.sent(),y={error:u},[3,8];case 7:try{l&&!l.done&&(_=a.return)&&_.call(a)}finally{if(y)throw y.error}
684return[7];case 8:c=this.plugins.filter(function(E){return E.type==="enrichment"||E.type===void 0}),C.label=9;case 9:C.trys.push([9,14,15,16]),d=Ge(c),f=d.next(),C.label=10;case 10:return f.done?[3,13]:(p=f.value,p.execute?[4,p.execute(ne({},r))]:[3,12]);case 11:if(h=C.sent(),h===null)return this.loggerProvider.log("Timeline.apply: Event filtered out by enrichment plugin '".concat(String(p.name),"', event: ").concat(JSON.stringify(r))),o({event:r,code:0,message:""}),[2];r=h,this.loggerProvider.log("Timeline.apply: Event after enrichment plugin '".concat(String(p.name),"', event: ").concat(JSON.stringify(r))),C.label=12;case 12:return f=d.next(),[3,10];case 13:return[3,16];case 14:return m=C.sent(),b={error:m},[3,16];case 15:try{f&&!f.done&&(S=d.return)&&S.call(d)}finally{if(b)throw b.error}return[7];case 16:return v=this.plugins.filter(function(E){return E.type==="destination"}),this.loggerProvider.log("Timeline.apply: Final event before destinations, event: ".concat(JSON.stringify(r))),g=v.map(function(E){var w=ne({},r);return E.execute(w).catch(function(T){return ec(w,0,String(T))})}),Promise.all(g).then(function(E){var w=Ne(E,1),T=w[0],A=T||ec(r,100,"Event not tracked, no destination plugins on the instance");o(A)}),[2]}})})},e.prototype.flush=function(){return ue(this,void 0,void 0,function(){var t,n,r,i=this;return oe(this,function(o){switch(o.label){case 0:return t=this.queue,this.queue=[],[4,Promise.all(t.map(function(s){return i.apply(s)}))];case 1:return o.sent(),n=this.plugins.filter(function(s){return s.type==="destination"}),r=n.map(function(s){return s.flush&&s.flush()}),[4,Promise.all(r)];case 2:return o.sent(),[2]}})})},e.prototype.addOptOutListener=function(t){this._optOutListeners.push(t)},e.prototype._clearOptOutListeners=function(){this._optOutListeners=[]},e.prototype.onIdentityChanged=function(t){this.plugins.forEach(function(n){var r;(r=n.onIdentityChanged)===null||r===void 0||r.call(n,t)})},e.prototype.onSessionIdChanged=function(t){this.plugins.forEach(function(n){var r;(r=n.onSessionIdChanged)===null||r===void 0||r.call(n,t)})},e.prototype.onOptOutChanged=function(t){this.plugins.forEach(function(n){var r;(r=n.onOptOutChanged)===null||r===void 0||r.call(n,t)}),this._callOptOutListeners(t)},e.prototype._callOptOutListeners=function(t){return ue(this,void 0,void 0,function(){var n,r,i,o,s,a,l;return oe(this,function(u){switch(u.label){case 0:u.trys.push([0,7,8,9]),n=Ge(this._optOutListeners),r=n.next(),u.label=1;case 1:if(r.done)return[3,6];i=r.value,u.label=2;case 2:return u.trys.push([2,4,,5]),[4,i(t)];case 3:return u.sent(),[3,5];case 4:return o=u.sent(),this.loggerProvider.error("Error calling optOut listener",o),[3,5];case 5:return r=n.next(),[3,1];case 6:return[3,9];case 7:return s=u.sent(),a={error:s},[3,9];case 8:try{r&&!r.done&&(l=n.return)&&l.call(n)}finally{if(a)throw a.error}return[7];case 9:return[2]}})})},e.prototype.onReset=function(){this.plugins.forEach(function(t){var n;(n=t.onReset)===null||n===void 0||n.call(t)})},e}(),nye=function(e,t,n){var r=typeof e=="string"?{event_type:e}:e;return ne(ne(ne({},r),n),t&&{event_properties:t})},N9=function(e,t){var n=ne(ne({},t),{event_type:uo.IDENTIFY,user_properties:e.getUserProperties()});return n},rye=function(e,t,n,r){var i,o=ne(ne({},r),{event_type:uo.GROUP_IDENTIFY,group_properties:n.getUserProperties(),groups:(i={},i[e]=t,i)});return o},iye=function(e,t,n){var r,i=new ag;i.set(e,t);var o=ne(ne({},n),{event_type:uo.IDENTIFY,user_properties:i.getUserProperties(),groups:(r={},r[e]=t,r)});return o},oye=function(e,t){return ne(ne({},t),{event_type:uo.REVENUE,event_properties:e.getEventProperties()})},cr=function(e){return{promise:e||Promise.resolve()}},sye=function(){function e(t){t===void 0&&(t="$default"),this.initializing=!1,this.isReady=!1,this.q=[],this.dispatchQ=[],this.logEvent=this.track.bind(this),this.timeline=new tye(this),this.name=t}return e.prototype._init=function(t){return ue(this,void 0,void 0,function(){return oe(this,function(n){switch(n.label){case 0:return this.config=t,this.timeline.reset(this),this.timeline.loggerProvider=this.config.loggerProvider,[4,this.runQueuedFunctions("q")];case 1:return n.sent(),this.isReady=!0,[2]}})})},e.prototype.runQueuedFunctions=function(t){return ue(this,void 0,void 0,function(){var n,r,i,o,s,a,l,u;return oe(this,function(c){switch(c.label){case 0:n=this[t],this[t]=[],c.label=1;case 1:c.trys.push([1,8,9,10]),r=Ge(n),i=r.next(),c.label=2;case 2:return i.done?[3,7]:(o=i.value,s=o(),s&&"promise"in s?[4,s.promise]:[3,4]);case 3:return c.sent(),[3,6];case 4:return[4,s];case 5:c.sent(),c.label=6;case 6:return i=r.next(),[3,2];case 7:return[3,10];case 8:return a=c.sent(),l={error:a},[3,10];case 9:try{i&&!i.done&&(u=r.return)&&u.call(r)}finally{if(l)throw l.error}
684return[7];case 10:return this[t].length?[4,this.runQueuedFunctions(t)]:[3,12];case 11:c.sent(),c.label=12;case 12:return[2]}})})},e.prototype.track=function(t,n,r){var i=nye(t,n,r);return this.userProperties=this.getOperationAppliedUserProperties(i.user_properties),cr(this.dispatch(i))},e.prototype.identify=function(t,n){var r=N9(t,n);return this.userProperties=this.getOperationAppliedUserProperties(r.user_properties),cr(this.dispatch(r))},e.prototype.groupIdentify=function(t,n,r,i){var o=rye(t,n,r,i);return cr(this.dispatch(o))},e.prototype.setGroup=function(t,n,r){var i=iye(t,n,r);return this.userProperties=this.getOperationAppliedUserProperties(i.user_properties),cr(this.dispatch(i))},e.prototype.revenue=function(t,n){var r=oye(t,n);return cr(this.dispatch(r))},e.prototype.add=function(t){return this.isReady?this._addPlugin(t):(this.q.push(this._addPlugin.bind(this,t)),cr())},e.prototype._addPlugin=function(t){return cr(this.timeline.register(t,this.config))},e.prototype.remove=function(t){return this.isReady?this._removePlugin(t):(this.q.push(this._removePlugin.bind(this,t)),cr())},e.prototype._removePlugin=function(t){return cr(this.timeline.deregister(t,this.config))},e.prototype.dispatchWithCallback=function(t,n){if(!this.isReady)return n(ec(t,0,Q0e));this.process(t).then(n)},e.prototype.dispatch=function(t){return ue(this,void 0,void 0,function(){var n=this;return oe(this,function(r){return this.isReady?[2,this.process(t)]:[2,new Promise(function(i){n.dispatchQ.push(n.dispatchWithCallback.bind(n,t,i))})]})})},e.prototype.getOperationAppliedUserProperties=function(t){var n,r=(n=this.userProperties)!==null&&n!==void 0?n:{},i=ne({},r);if(t===void 0)return i;var o={};return Object.keys(t).forEach(function(s){Object.values(Nu).includes(s)||(o[s]=t[s])}),z0e.forEach(function(s){if(Object.keys(t).includes(s)){var a=t[s];
684switch(s){case Nu.CLEAR_ALL:Object.keys(i).forEach(function(l){delete i[l]});break;case Nu.UNSET:Object.keys(a).forEach(function(l){delete i[l]});break;case Nu.SET:Object.assign(i,a);break}}}),Object.assign(i,o),i},e.prototype.process=function(t){return ue(this,void 0,void 0,function(){var i,n,r,i;return oe(this,function(o){switch(o.label){case 0:return o.trys.push([0,2,,3]),this.config.optOut?[2,ec(t,0,Z0e)]:(t.event_type===uo.IDENTIFY&&this.timeline.onIdentityChanged({userProperties:this.userProperties}),[4,this.timeline.push(t)]);case 1:return i=o.sent(),i.code===200?this.config.loggerProvider.log(i.message):i.code===100?this.config.loggerProvider.warn(i.message):this.config.loggerProvider.error(i.message),[2,i];case 2:return n=o.sent(),r=String(n),this.config.loggerProvider.error(r),i=ec(t,0,r),[2,i];case 3:return[2]}})})},e.prototype.setOptOut=function(t){if(!this.isReady){this.q.push(this._setOptOut.bind(this,!!t));return}this._setOptOut(t)},e.prototype._setOptOut=function(t){this.config.optOut!==t&&(this.config.optOut=!!t,this.timeline.onOptOutChanged(t))},e.prototype.flush=function(){return cr(this.timeline.flush())},e.prototype.plugin=function(t){var n=this.timeline.plugins.find(function(r){return r.name===t});if(n===void 0){this.config.loggerProvider.debug("Cannot find plugin with name ".concat(t));return}return n},e.prototype.plugins=function(t){return this.timeline.plugins.filter(function(n){return n instanceof t})},e}(),aye=function(){function e(){this.productId="",this.quantity=1,this.price=0}return e.prototype.setProductId=function(t){return this.productId=t,this},e.prototype.setQuantity=function(t){return t>0&&(this.quantity=t),this},e.prototype.setPrice=function(t){return this.price=t,this},e.prototype.setRevenueType=function(t){return this.revenueType=t,this},e.prototype.setCurrency=function(t){return this.currency=t,this},e.prototype.setRevenue=function(t){return this.revenue=t,this},e.prototype.setReceipt=function(t){return this.receipt=t,this},e.prototype.setReceiptSig=function(t){return this.receiptSig=t,this},e.prototype.setEventProperties=function(t){return _2(t)&&(this.properties=t),this},e.prototype.getEventProperties=function(){var t=this.properties?ne({},this.properties):{};return t[_o.REVENUE_PRODUCT_ID]=this.productId,t[_o.REVENUE_QUANTITY]=this.quantity,t[_o.REVENUE_PRICE]=this.price,t[_o.REVENUE_TYPE]=this.revenueType,t[_o.REVENUE_CURRENCY]=this.currency,t[_o.REVENUE]=this.revenue,t[_o.RECEIPT]=this.receipt,t[_o.RECEIPT_SIG]=this.receiptSig,t},e}(),_o;(function(e){e.REVENUE_PRODUCT_ID="$productId",e.REVENUE_QUANTITY="$quantity",e.REVENUE_PRICE="$price",e.REVENUE_TYPE="$revenueType",e.REVENUE_CURRENCY="$currency",e.REVENUE="$revenue",e.RECEIPT="$receipt",e.RECEIPT_SIG="$receiptSig"})(_o||(_o={}));var lye=function(e,t){var n=Math.max(t,1);return e.reduce(function(r,i,o){var s=Math.floor(o/n);return r[s]||(r[s]=[]),r[s].push(i),r},[])},Vr;(function(e){e[e.None=0]="None",e[e.Error=1]="Error",e[e.Warn=2]="Warn",e[e.Verbose=3]="Verbose",e[e.Debug=4]="Debug"})(Vr||(Vr={}));var jh="Amplitude Logger ",tp=function(){function e(){this.logLevel=Vr.None}return e.prototype.disable=function(){this.logLevel=Vr.None},e.prototype.enable=function(t){t===void 0&&(t=Vr.Warn),this.logLevel=t},e.prototype.log=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.logLevel<Vr.Verbose||console.log("".concat(jh,"[Log]: ").concat(t.join(" ")))},e.prototype.warn=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.logLevel<Vr.Warn||console.warn("".concat(jh,"[Warn]: ").concat(t.join(" ")))},e.prototype.error=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.logLevel<Vr.Error||console.error("".concat(jh,"[Error]: ").concat(t.join(" ")))},e.prototype.debug=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];this.logLevel<Vr.Debug||console.log("".concat(jh,"[Debug]: ").concat(t.join(" ")))},e}(),$m=function(){return{flushMaxRetries:12,flushQueueSize:200,flushIntervalMillis:1e4,instanceName:P9,logLevel:Vr.Warn,loggerProvider:new tp,offline:!1,optOut:!1,serverUrl:O9,serverZone:"US",useBatch:!1}},H9=function(){function e(t){var n,r,i,o;this._optOut=!1;var s=$m();this.apiKey=t.apiKey,this.flushIntervalMillis=(n=t.flushIntervalMillis)!==null&&n!==void 0?n:s.flushIntervalMillis,this.flushMaxRetries=t.flushMaxRetries||s.flushMaxRetries,this.flushQueueSize=t.flushQueueSize||s.flushQueueSize,this.instanceName=t.instanceName||s.instanceName,this.loggerProvider=t.loggerProvider||s.loggerProvider,this.logLevel=(r=t.logLevel)!==null&&r!==void 0?r:s.logLevel,this.minIdLength=t.minIdLength,this.plan=t.plan,this.ingestionMetadata=t.ingestionMetadata,this.offline=t.offline!==void 0?t.offline:s.offline,this.optOut=(i=t.optOut)!==null&&i!==void 0?i:s.optOut,this.serverUrl=t.serverUrl,this.serverZone=t.serverZone||s.serverZone,this.storageProvider=t.storageProvider,this.transportProvider=t.transportProvider,this.useBatch=(o=t.useBatch)!==null&&o!==void 0?o:s.useBatch,this.loggerProvider.enable(this.logLevel);var a=D9(t.serverUrl,t.serverZone,t.useBatch);this.serverZone=a.serverZone,this.serverUrl=a.serverUrl}return Object.defineProperty(e.prototype,"optOut",{get:function(){return this._optOut},set:function(t){this._optOut=t}
684,enumerable:!1,configurable:!0}),e}(),uye=function(e,t){return e==="EU"?t?H0e:$0e:t?N0e:O9},D9=function(e,t,n){if(e===void 0&&(e=""),t===void 0&&(t=$m().serverZone),n===void 0&&(n=$m().useBatch),e)return{serverUrl:e,serverZone:void 0};var r=["US","EU"].includes(t)?t:$m().serverZone;return{serverZone:r,serverUrl:uye(r,n)}},cye=function(){function e(){this.sdk={metrics:{histogram:{}}}}return e.prototype.recordHistogram=function(t,n){this.sdk.metrics.histogram[t]=n},e}();function S2(e){return e>=200&&e<300}var Nm=function(e){e===void 0&&(e=0);var t=new Error().stack||"";return t.split(` 685`).slice(2+e).map(function(n){return n.trim()})},wn=function(e){return function(){var t=ne({},e.config),n=t.loggerProvider,r=t.logLevel;return{logger:n,logLevel:r}}},dye=function(e,t){var n,r;t=t.replace(/\[(\w+)\]/g,".$1"),t=t.replace(/^\./,"");try{for(var i=Ge(t.split(".")),o=i.next();!o.done;o=i.next()){var s=o.value;if(s in e)e=e[s];else return}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return e},Tn=function(e,t){return function(){var n,r,i={};try{for(var o=Ge(t),s=o.next();!s.done;s=o.next()){var a=s.value;i[a]=dye(e,a)}}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return i}},Bt=function(e,t,n,r,i){return i===void 0&&(i=null),function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];var a=n(),l=a.logger,u=a.logLevel;if(u&&u<Vr.Debug||!u||!l)return e.apply(i,o);var c={type:"invoke public method",name:t,args:o,stacktrace:Nm(1),time:{start:new Date().toISOString()},states:{}};r&&c.states&&(c.states.before=r());var d=e.apply(i,o);return d&&d.promise?d.promise.then(function(){r&&c.states&&(c.states.after=r()),c.time&&(c.time.end=new Date().toISOString()),l.debug(JSON.stringify(c,null,2))}):(r&&c.states&&(c.states.after=r()),c.time&&(c.time.end=new Date().toISOString()),l.debug(JSON.stringify(c,null,2))),d}};function fye(e){return e instanceof Error?e.message:String(e)}function _d(e){var t="";try{"body"in e&&(t=JSON.stringify(e.body,null,2))}catch{}return t}var pye=function(){function e(t){this.name="amplitude",this.type="destination",this.retryTimeout=1e3,this.throttleTimeout=3e4,this.storageKey="",this.scheduleId=null,this.scheduledTimeout=0,this.flushId=null,this.queue=[],this.diagnosticsClient=t==null?void 0:t.diagnosticsClient}return e.prototype.setup=function(t){var n;return ue(this,void 0,void 0,function(){var r,i=this;return oe(this,function(o){switch(o.label){case 0:return this.config=t,this.storageKey="".concat(R9,"_").concat(this.config.apiKey.substring(0,10)),[4,(n=this.config.storageProvider)===null||n===void 0?void 0:n.get(this.storageKey)];case 1:return r=o.sent(),r&&r.length>0&&Promise.all(r.map(function(s){return i.execute(s)})).catch(),[2,Promise.resolve(void 0)]}})})},e.prototype.execute=function(t){var n=this;return t.insert_id||(t.insert_id=ks()),new Promise(function(r){var i={event:t,attempts:0,callback:function(o){return r(o)},timeout:0};n.queue.push(i),n.schedule(n.config.flushIntervalMillis),n.saveEvents()})},e.prototype.removeEventsExceedFlushMaxRetries=function(t){var n=this;return t.filter(function(r){return r.attempts+=1,r.attempts<n.config.flushMaxRetries?!0:(n.fulfillRequest([r],500,X0e),!1)})},e.prototype.scheduleEvents=function(t){var n=this;t.forEach(function(r){n.schedule(r.timeout===0?n.config.flushIntervalMillis:r.timeout)})},e.prototype.schedule=function(t){var n=this;if(!this.config.offline&&(this.scheduleId===null||this.scheduleId&&t>this.scheduledTimeout)){this.scheduleId&&clearTimeout(this.scheduleId),this.scheduledTimeout=t,this.scheduleId=setTimeout(function(){n.queue=n.queue.map(function(r){return r.timeout=0,r}),n.flush(!0)},t);return}},e.prototype.resetSchedule=function(){this.scheduleId=null,this.scheduledTimeout=0},e.prototype.flush=function(t){return t===void 0&&(t=!1),ue(this,void 0,void 0,function(){var n,r,i,o=this;return oe(this,function(s){switch(s.label){case 0:return this.config.offline?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush while offline."),[2]):this.flushId?(this.resetSchedule(),this.config.loggerProvider.debug("Skipping flush because previous flush has not resolved."),[2]):(this.flushId=this.scheduleId,this.resetSchedule(),n=[],r=[],this.queue.forEach(function(a){return a.timeout===0?n.push(a):r.push(a)}),i=lye(n,this.config.flushQueueSize),[4,i.reduce(function(a,l){return ue(o,void 0,void 0,function(){return oe(this,function(u){switch(u.label){case 0:return[4,a];case 1:return u.sent(),[4,this.send(l,t)];case 2:return[2,u.sent()]}})})},Promise.resolve())]);case 1:return s.sent(),this.flushId=null,this.scheduleEvents(this.queue),[2]}})})},e.prototype.send=function(t,n){var r;return n===void 0&&(n=!0),ue(this,void 0,void 0,function(){var i,o,s,a,l;return oe(this,function(u){switch(u.label){case 0:if(!this.config.apiKey)return[2,this.fulfillRequest(t,400,Y0e)];i={api_key:this.config.apiKey,events:t.map(function(c){var d=c.event;d.extra;var f=Sv(d,["extra"]);return f}),options:{min_id_length:this.config.minIdLength},client_upload_time:new Date().toISOString(),request_metadata:this.config.requestMetadata},this.config.requestMetadata=new cye,u.label=1;case 1:return u.trys.push([1,3,,4]),o=D9(this.config.serverUrl,this.config.serverZone,this.config.useBatch).serverUrl,[4,this.config.transportProvider.send(o,i)];case 2:return s=u.sent(),s===null?(this.fulfillRequest(t,0,K0e),[2]):n?(this.handleResponse(s,t),[3,4]):("body"in s?this.fulfillRequest(t,s.statusCode,"".concat(s.status,": ").concat(_d(s))):this.fulfillRequest(t,s.statusCode,s.status),[2]);case 3:return a=u.sent(),l=fye(a),this.config.loggerProvider.error(l),(r=this.diagnosticsClient)===null||r===void 0||r.recordEvent("analytics.events.unsuccessful.from.catch.error",{events:t.map(function(c){return c.event.event_type}),message:l,stack_trace:Nm()}),this.handleResponse({status:xn.Failed,statusCode:0},t),[3,4];case 4:return[2]}})})},e.prototype.handleResponse=function(t,n){var r;S2(t.statusCode)||(r=this.diagnosticsClient)===null||r===void 0||r.recordEvent("analytics.events.unsuccessful",{events:n.map(function(o){return o.event.event_type}),code:t.statusCode,status:t.status,body:_d(t),stack_trace:Nm()});var i=t.status;switch(i){case xn.Success:{this.handleSuccessResponse(t,n);break}case xn.Invalid:{this.handleInvalidResponse(t,n);break}case xn.PayloadTooLarge:{this.handlePayloadTooLargeResponse(t,n);break}case xn.RateLimit:{this.handleRateLimitResponse(t,n);break}default:{this.config.loggerProvider.warn(`{code: 0, error: "Status '`.concat(i,"' provided for ").concat(n.length,' events"}')),this.handleOtherResponse(n);break}}},e.prototype.handleSuccessResponse=function(t,n){this.fulfillRequest(n,t.statusCode,q0e)},e.prototype.handleInvalidResponse=function(t,n){var r=this;if(t.body.missingField||t.body.error.startsWith(J0e)){this.fulfillRequest(n,t.statusCode,t.body.error);return}var i=Fe(Fe(Fe(Fe([],Ne(Object.values(t.body.eventsWithInvalidFields)),!1),Ne(Object.values(t.body.eventsWithMissingFields)),!1),Ne(Object.values(t.body.eventsWithInvalidIdLengths)),!1),Ne(t.body.silencedEvents),!1).flat(),o=new Set(i),s=n.filter(function(l,u){if(o.has(u)){r.fulfillRequest([l],t.statusCode,t.body.error);return}return!0});s.length>0&&this.config.loggerProvider.warn(_d(t));
685var a=this.removeEventsExceedFlushMaxRetries(s);this.scheduleEvents(a)},e.prototype.handlePayloadTooLargeResponse=function(t,n){if(n.length===1){this.fulfillRequest(n,t.statusCode,t.body.error);return}this.config.loggerProvider.warn(_d(t)),this.config.flushQueueSize/=2;var r=this.removeEventsExceedFlushMaxRetries(n);this.scheduleEvents(r)},e.prototype.handleRateLimitResponse=function(t,n){var r=this,i=Object.keys(t.body.exceededDailyQuotaUsers),o=Object.keys(t.body.exceededDailyQuotaDevices),s=t.body.throttledEvents,a=new Set(i),l=new Set(o),u=new Set(s),c=n.filter(function(f,p){if(f.event.user_id&&a.has(f.event.user_id)||f.event.device_id&&l.has(f.event.device_id)){r.fulfillRequest([f],t.statusCode,t.body.error);return}return u.has(p)&&(f.timeout=r.throttleTimeout),!0});c.length>0&&this.config.loggerProvider.warn(_d(t));var d=this.removeEventsExceedFlushMaxRetries(c);this.scheduleEvents(d)},e.prototype.handleOtherResponse=function(t){var n=this,r=t.map(function(o){return o.timeout=o.attempts*n.retryTimeout,o}),i=this.removeEventsExceedFlushMaxRetries(r);this.scheduleEvents(i)},e.prototype.fulfillRequest=function(t,n,r){var i,o,s;S2(n)?(s=this.diagnosticsClient)===null||s===void 0||s.increment("analytics.events.sent",t.length):((i=this.diagnosticsClient)===null||i===void 0||i.increment("analytics.events.dropped",t.length),(o=this.diagnosticsClient)===null||o===void 0||o.recordEvent("analytics.events.dropped",{events:t.map(function(a){return a.event.event_type}),code:n,message:r,stack_trace:Nm()})),this.removeEvents(t),t.forEach(function(a){return a.callback(ec(a.event,n,r))})},e.prototype.saveEvents=function(){if(this.config.storageProvider){var t=this.queue.map(function(n){return n.event});this.config.storageProvider.set(this.storageKey,t)}},e.prototype.removeEvents=function(t){this.queue=this.queue.filter(function(n){return!t.some(function(r){return r.event.insert_id===n.event.insert_id})}),this.saveEvents()},e}(),hye=function(){function e(){}return e.prototype.getApplicationContext=function(){return{versionName:this.versionName,language:mye(),platform:"Web",os:void 0,deviceModel:void 0}},e}(),mye=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},vye=function(){function e(){this.queue=[]}return e.prototype.logEvent=function(t){this.receiver?this.receiver(t):this.queue.length<512&&this.queue.push(t)},e.prototype.setEventReceiver=function(t){this.receiver=t,this.queue.length>0&&(this.queue.forEach(function(n){t(n)}),this.queue=[])},e}(),Ks=function(){return Ks=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ks.apply(this,arguments)};function Hm(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ex(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}var Dm=function(e,t){var n,r,i=["string","number","boolean","undefined"],o=typeof e,s=typeof t;if(o!==s)return!1;try{for(var a=Hm(i),l=a.next();!l.done;l=a.next()){var u=l.value;if(u===o)return e===t}}catch(v){n={error:v}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}if(e==null&&t==null)return!0;if(e==null||t==null||e.length!==t.length)return!1;var c=Array.isArray(e),d=Array.isArray(t);if(c!==d)return!1;if(c&&d){for(var f=0;f<e.length;f++)if(!Dm(e[f],t[f]))return!1}else{var p=Object.keys(e).sort(),h=Object.keys(t).sort();if(!Dm(p,h))return!1;var m=!0;return Object.keys(e).forEach(function(v){Dm(e[v],t[v])||(m=!1)}),m}return!0},gye="$set",yye="$unset",bye="$clearAll";Object.entries||(Object.entries=function(e){for(var t=Object.keys(e),n=t.length,r=new Array(n);n--;)r[n]=[t[n],e[t[n]]];return r});var _ye=function(){function e(){this.identity={userProperties:{}},this.listeners=new Set}return e.prototype.editIdentity=function(){var t=this,n=Ks({},this.identity.userProperties),r=Ks(Ks({},this.identity),{userProperties:n});return{setUserId:function(i){return r.userId=i,this},setDeviceId:function(i){return r.deviceId=i,this},setUserProperties:function(i){return r.userProperties=i,this},setOptOut:function(i){return r.optOut=i,this},updateUserProperties:function(i){var o,s,a,l,u,c,d=r.userProperties||{};try{for(var f=Hm(Object.entries(i)),p=f.next();!p.done;p=f.next()){var h=Ex(p.value,2),m=h[0],v=h[1];switch(m){case gye:try{for(var g=(a=void 0,Hm(Object.entries(v))),y=g.next();!y.done;y=g.next()){var _=Ex(y.value,2),b=_[0],S=_[1];d[b]=S}}catch(w){a={error:w}}finally{try{y&&!y.done&&(l=g.return)&&l.call(g)}finally{if(a)throw a.error}}break;case yye:try{for(var C=(u=void 0,Hm(Object.keys(v))),E=C.next();!E.done;E=C.next()){var b=E.value;delete d[b]}}catch(w){u={error:w}}finally{try{E&&!E.done&&(c=C.return)&&c.call(C)}finally{if(u)throw u.error}}break;case bye:d={};break}}}catch(w){o={error:w}}finally{try{p&&!p.done&&(s=f.return)&&s.call(f)}finally{if(o)throw o.error}}return r.userProperties=d,this},commit:function(){return t.setIdentity(r),this}}},e.prototype.getIdentity=function(){return Ks({},this.identity)},e.prototype.setIdentity=function(t){var n=Ks({},this.identity);this.identity=Ks({}
685,t),Dm(n,this.identity)||this.listeners.forEach(function(r){r(t)})},e.prototype.addIdentityListener=function(t){this.listeners.add(t)},e.prototype.removeIdentityListener=function(t){this.listeners.delete(t)},e}(),Sd=typeof globalThis<"u"?globalThis:typeof global<"u"?global:self,aw=function(){function e(){this.identityStore=new _ye,this.eventBridge=new vye,this.applicationContextProvider=new hye}return e.getInstance=function(t){return Sd.analyticsConnectorInstances||(Sd.analyticsConnectorInstances={}),Sd.analyticsConnectorInstances[t]||(Sd.analyticsConnectorInstances[t]=new e),Sd.analyticsConnectorInstances[t]},e}(),Lc=function(e){return e===void 0&&(e=P9),aw.getInstance(e)},Sye=function(e,t){Lc(t).identityStore.editIdentity().setUserId(e).commit()},Eye=function(e,t){Lc(t).identityStore.editIdentity().setDeviceId(e).commit()},Cye=function(){function e(){this.name="identity",this.type="before",this.identityStore=Lc().identityStore}return e.prototype.execute=function(t){return ue(this,void 0,void 0,function(){var n;return oe(this,function(r){return n=t.user_properties,n&&this.identityStore.editIdentity().updateUserProperties(n).commit(),[2,t]})})},e.prototype.setup=function(t){return ue(this,void 0,void 0,function(){return oe(this,function(n){return t.instanceName&&(this.identityStore=Lc(t.instanceName).identityStore),[2]})})},e}(),V9=function(e,t){t===void 0&&(t=Date.now());var n=Date.now(),r=n-t;return r>e},F9=function(e,t,n){return t===void 0&&(t=""),n===void 0&&(n=10),[o0,t,e.substring(0,n)].filter(Boolean).join("_")},wye=function(e){return"".concat(o0.toLowerCase(),"_").concat(e.substring(0,6))},Tye=function(){var e,t,n,r;if(typeof navigator>"u")return"";var i=navigator.userLanguage;return(r=(n=(t=(e=navigator.languages)===null||e===void 0?void 0:e[0])!==null&&t!==void 0?t:navigator.language)!==null&&n!==void 0?n:i)!==null&&r!==void 0?r:""},lg=function(){var e,t=$t();if(!(!((e=t==null?void 0:t.location)===null||e===void 0)&&e.search))return{};var n=t.location.search.substring(1).split("&").filter(Boolean),r=n.reduce(function(i,o){var s=o.split("=",2),a=Cx(s[0]),l=Cx(s[1]);return l&&(i[a]=l),i},{});return r},Cx=function(e){e===void 0&&(e="");try{return decodeURIComponent(e)}catch{return""}},E2=function(e,t){return!t||!t.length?!0:t.some(function(n){return typeof n=="string"?e===n:e.match(n)})},C2=function(e){var t=0;if(e.length===0)return t;for(var n=0;n<e.length;n++){var r=e.charCodeAt(n);t=(t<<5)-t+r,t|=0}return t},Aye=function(e,t){var n=C2(e.toString()),r=Math.abs(n),i=r*31,o=i%1e6;return o/1e6<t},lw=function(){function e(){this.memoryStorage=new Map}return e.prototype.isEnabled=function(){return ue(this,void 0,void 0,function(){return oe(this,function(t){return[2,!0]})})},e.prototype.get=function(t){return ue(this,void 0,void 0,function(){return oe(this,function(n){return[2,this.memoryStorage.get(t)]})})},e.prototype.getRaw=function(t){return ue(this,void 0,void 0,function(){var n;return oe(this,function(r){switch(r.label){case 0:return[4,this.get(t)];case 1:return n=r.sent(),[2,n?JSON.stringify(n):void 0]}})})},e.prototype.set=function(t,n){return ue(this,void 0,void 0,function(){return oe(this,function(r){return this.memoryStorage.set(t,n),[2]})})},e.prototype.remove=function(t){return ue(this,void 0,void 0,function(){return oe(this,function(n){return this.memoryStorage.delete(t),[2]})})},e.prototype.reset=function(){return ue(this,void 0,void 0,function(){return oe(this,function(t){return this.memoryStorage.clear(),[2]})})},e}(),w2=function(){function e(t,n){n===void 0&&(n={}),this.options=ne({},t),this.config=n}return e.prototype.isEnabled=function(){return ue(this,void 0,void 0,function(){var t,n,r,i,o;return oe(this,function(s){switch(s.label){case 0:if(!$t())return[2,!1];t=String(Date.now()),n=ne(ne({},this.options),{expirationDays:.003}),r=new e(n),i="AMP_TEST_".concat(ks().substring(0,8)),s.label=1;case 1:return s.trys.push([1,4,5,7]),[4,r.set(i,t)];case 2:return s.sent(),[4,r.get(i)];case 3:return o=s.sent(),[2,o===t];case 4:return s.sent(),[2,!1];case 5:return[4,r.remove(i)];case 6:return s.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(t){return ue(this,void 0,void 0,function(){var n,r;return oe(this,function(i){switch(i.label){case 0:return[4,this.getRaw(t)];case 1:if(n=i.sent(),!n)return[2,void 0];try{return r=Lye(n),r===void 0?(console.error("Amplitude Logger [Error]: Failed to decode cookie value for key: ".concat(t,", value: ").concat(n)),[2,void 0]):[2,JSON.parse(r)]}catch{return console.error("Amplitude Logger [Error]: Failed to parse cookie value for key: ".concat(t,", value: ").concat(n)),[2,void 0]}return[2]}})})},e.prototype.getRaw=function(t){var n,r,i,o;return ue(this,void 0,void 0,function(){var s,a,l,u,c,d,f,p,h,m,v,g,y=this;return oe(this,function(_){switch(_.label){case 0:s=$t(),a=s,_.label=1;case 1:return _.trys.push([1,4,,5]),l=a==null?void 0:a.cookieStore,l?[4,l.getAll(t)]:[3,3];case 2:if(u=_.sent(),u){u.length>1&&((n=this.config.diagnosticsClient)===null||n===void 0||n.recordEvent("cookies.duplicate",{cookies:u.map(function(b){return b.domain})}),(r=this.config.diagnosticsClient)===null||r===void 0||r.increment("cookies.duplicate.occurrence.cookieStore"));try{for(c=Ge(u),d=c.next();!d.done;d=c.next())if(f=d.value,kye(f.domain,this.options.domain))return[2,f.value]}catch(b){v={error:b}}finally{try{d&&!d.done&&(g=c.return)&&g.call(c)}finally{if(v)throw v.error}}}_.label=3;case 3:return[3,5];case 4:return _.sent(),[3,5];case 5:return p=((o=(i=s==null?void 0:s.document)===null||i===void 0?void 0:i.cookie.split("; "))!==null&&o!==void 0?o:[]).filter(function(b){return b.indexOf(t+"=")===0}),h=void 0,m=this.config.duplicateResolverFn,typeof m=="function"&&p.length>1&&(h=p.find(function(b){var S;try{var C=m(b.substring(t.length+1));return C||(S=y.config.diagnosticsClient)===null||S===void 0||S.increment("cookies.duplicate.occurrence.document.cookie"),C}catch{return!1}}
685)),h||(h=p[0]),h?[2,h.substring(t.length+1)]:[2,void 0]}})})},e.prototype.set=function(t,n){var r;return ue(this,void 0,void 0,function(){var i,o,s,a,l,u,c;return oe(this,function(d){try{i=(r=this.options.expirationDays)!==null&&r!==void 0?r:0,o=n!==null?i:-1,s=void 0,o&&(a=new Date,a.setTime(a.getTime()+o*24*60*60*1e3),s=a),l="".concat(t,"=").concat(btoa(encodeURIComponent(JSON.stringify(n)))),s&&(l+="; expires=".concat(s.toUTCString())),l+="; path=/",this.options.domain&&(l+="; domain=".concat(this.options.domain)),this.options.secure&&(l+="; Secure"),this.options.sameSite&&(l+="; SameSite=".concat(this.options.sameSite)),u=$t(),u&&(u.document.cookie=l)}catch(f){c=f instanceof Error?f.message:String(f),console.error("Amplitude Logger [Error]: Failed to set cookie for key: ".concat(t,". Error: ").concat(c))}return[2]})})},e.prototype.remove=function(t){return ue(this,void 0,void 0,function(){return oe(this,function(n){switch(n.label){case 0:return[4,this.set(t,null)];case 1:return n.sent(),[2]}})})},e.prototype.reset=function(){return ue(this,void 0,void 0,function(){return oe(this,function(t){return[2]})})},e}(),Iye=function(e){try{return decodeURIComponent(atob(e))}catch{return}},xye=function(e){try{return decodeURIComponent(atob(decodeURIComponent(e)))}catch{return}},Lye=function(e){var t;return(t=Iye(e))!==null&&t!==void 0?t:xye(e)},kye=function(e,t){if(!e||!t)return!1;var n=e.startsWith(".")?e.substring(1):e,r=t.startsWith(".")?t.substring(1):t;return n.toLowerCase()===r.toLowerCase()},wx=function(e,t,n){return t===void 0&&(t=""),n===void 0&&(n=10),[o0,t,e.substring(0,n)].filter(Boolean).join("_")},B9=function(){function e(t){this.storage=t}return e.prototype.isEnabled=function(){return ue(this,void 0,void 0,function(){var t,n,r,i;return oe(this,function(o){switch(o.label){case 0:if(!this.storage)return[2,!1];t=String(Date.now()),n=new e(this.storage),r="AMP_TEST",o.label=1;case 1:return o.trys.push([1,4,5,7]),[4,n.set(r,t)];case 2:return o.sent(),[4,n.get(r)];case 3:return i=o.sent(),[2,i===t];case 4:return o.sent(),[2,!1];case 5:return[4,n.remove(r)];case 6:return o.sent(),[7];case 7:return[2]}})})},e.prototype.get=function(t){return ue(this,void 0,void 0,function(){var n;return oe(this,function(r){switch(r.label){case 0:return r.trys.push([0,2,,3]),[4,this.getRaw(t)];case 1:return n=r.sent(),n?[2,JSON.parse(n)]:[2,void 0];case 2:return r.sent(),console.error("[Amplitude] Error: Could not get value from storage"),[2,void 0];case 3:return[2]}})})},e.prototype.getRaw=function(t){var n;return ue(this,void 0,void 0,function(){return oe(this,function(r){return[2,((n=this.storage)===null||n===void 0?void 0:n.getItem(t))||void 0]})})},e.prototype.set=function(t,n){var r;return ue(this,void 0,void 0,function(){return oe(this,function(i){try{(r=this.storage)===null||r===void 0||r.setItem(t,JSON.stringify(n))}catch{}return[2]})})},e.prototype.remove=function(t){var n;return ue(this,void 0,void 0,function(){return oe(this,function(r){try{(n=this.storage)===null||n===void 0||n.removeItem(t)}catch{}return[2]})})},e.prototype.reset=function(){var t;return ue(this,void 0,void 0,function(){return oe(this,function(n){try{(t=this.storage)===null||t===void 0||t.clear()}catch{}return[2]})})},e}(),s0=function(){function e(){}return e.prototype.send=function(t,n){return Promise.resolve(null)},e.prototype.buildResponse=function(t){var n,r,i,o,s,a,l,u,c,d,f,p,h,m,v,g,y,_,b,S,C,E;if(typeof t!="object")return null;var w=t.code||0,T=this.buildStatus(w);switch(T){case xn.Success:return{status:T,statusCode:w,body:{eventsIngested:(n=t.events_ingested)!==null&&n!==void 0?n:0,payloadSizeBytes:(r=t.payload_size_bytes)!==null&&r!==void 0?r:0,serverUploadTime:(i=t.server_upload_time)!==null&&i!==void 0?i:0}};case xn.Invalid:return{status:T,statusCode:w,body:{error:(o=t.error)!==null&&o!==void 0?o:"",missingField:(s=t.missing_field)!==null&&s!==void 0?s:"",eventsWithInvalidFields:(a=t.events_with_invalid_fields)!==null&&a!==void 0?a:{},eventsWithMissingFields:(l=t.events_with_missing_fields)!==null&&l!==void 0?l:{}
vendor: 5,456 bytes, line 685
685,eventsWithInvalidIdLengths:(u=t.events_with_invalid_id_lengths)!==null&&u!==void 0?u:{},epsThreshold:(c=t.eps_threshold)!==null&&c!==void 0?c:0,exceededDailyQuotaDevices:(d=t.exceeded_daily_quota_devices)!==null&&d!==void 0?d:{},silencedDevices:(f=t.silenced_devices)!==null&&f!==void 0?f:[],silencedEvents:(p=t.silenced_events)!==null&&p!==void 0?p:[],throttledDevices:(h=t.throttled_devices)!==null&&h!==void 0?h:{},throttledEvents:(m=t.throttled_events)!==null&&m!==void 0?m:[]}};case xn.PayloadTooLarge:return{status:T,statusCode:w,body:{error:(v=t.error)!==null&&v!==void 0?v:""}};case xn.RateLimit:return{status:T,statusCode:w,body:{error:(g=t.error)!==null&&g!==void 0?g:"",epsThreshold:(y=t.eps_threshold)!==null&&y!==void 0?y:0,throttledDevices:(_=t.throttled_devices)!==null&&_!==void 0?_:{},throttledUsers:(b=t.throttled_users)!==null&&b!==void 0?b:{},exceededDailyQuotaDevices:(S=t.exceeded_daily_quota_devices)!==null&&S!==void 0?S:{},exceededDailyQuotaUsers:(C=t.exceeded_daily_quota_users)!==null&&C!==void 0?C:{},throttledEvents:(E=t.throttled_events)!==null&&E!==void 0?E:[]}};case xn.Timeout:default:return{status:T,statusCode:w}}},e.prototype.buildStatus=function(t){return S2(t)?xn.Success:t===429?xn.RateLimit:t===413?xn.PayloadTooLarge:t===408?xn.Timeout:t>=400&&t<500?xn.Invalid:t>=500?xn.Failed:xn.Unknown},e}(),U9=function(e){Vt(t,e);function t(n){n===void 0&&(n={});var r=e.call(this)||this;return r.customHeaders=n,r}return t.prototype.send=function(n,r){return ue(this,void 0,void 0,function(){var i,o,s;return oe(this,function(a){switch(a.label){case 0:if(typeof fetch>"u")throw new Error("FetchTransport is not supported");return i={headers:ne({"Content-Type":"application/json",Accept:"*/*"},this.customHeaders),body:JSON.stringify(r),method:"POST"},[4,fetch(n,i)];case 1:return o=a.sent(),[4,o.text()];case 2:s=a.sent();try{return[2,this.buildResponse(JSON.parse(s))]}catch{return[2,this.buildResponse({code:o.status})]}return[2]}})})},t}(s0),Mye=function(){function e(t,n){this.key="AMP_remote_config_".concat(t.substring(0,10)),this.logger=n}return e.prototype.fetchConfig=function(){var t=null,n={remoteConfig:null,lastFetch:new Date};try{t=localStorage.getItem(this.key)}catch(i){return this.logger.debug("Remote config localstorage failed to access: ",i),Promise.resolve(n)}if(t===null)return this.logger.debug("Remote config localstorage gets null because the key does not exist"),Promise.resolve(n);try{var r=JSON.parse(t);return this.logger.debug("Remote config localstorage parsed successfully: ".concat(JSON.stringify(r))),Promise.resolve({remoteConfig:r.remoteConfig,lastFetch:new Date(r.lastFetch)})}catch(i){return this.logger.debug("Remote config localstorage failed to parse: ",i),localStorage.removeItem(this.key),Promise.resolve(n)}},e.prototype.setConfig=function(t){try{return localStorage.setItem(this.key,JSON.stringify(t)),this.logger.debug("Remote config localstorage set successfully."),Promise.resolve(!0)}catch(n){this.logger.debug("Remote config localstorage failed to set: ",n)}return Promise.resolve(!1)},e}(),Rye="https://sr-client-cfg.amplitude.com/config",Pye="https://sr-client-cfg.eu.amplitude.com/config",Oye=3,$ye=1e3,Nye=5*60*1e3,j9=function(){function e(t,n,r,i){r===void 0&&(r="US"),this.callbackInfos=[],this.lastSuccessfulFetch=null,this.fetchPromise=null,this.apiKey=t,this.serverUrl=i||(r==="US"?Rye:Pye),this.logger=n,this.storage=new Mye(t,n)}return e.prototype.subscribe=function(t,n,r){var i=ks(),o={id:i,key:t,deliveryMode:n,callback:r};return this.callbackInfos.push(o),n==="all"?this.subscribeAll(o):this.subscribeWaitForRemote(o,n.timeout),i},e.prototype.unsubscribe=function(t){var n=this.callbackInfos.findIndex(function(r){return r.id===t});return n===-1?(this.logger.debug("Remote config client unsubscribe failed because callback with id ".concat(t," doesn't exist.")),!1):(this.callbackInfos.splice(n,1),this.logger.debug("Remote config client unsubscribe succeeded removing callback with id ".concat(t,".")),!0)},e.prototype.updateConfigs=function(){return ue(this,void 0,void 0,function(){var t,n,r=this;return oe(this,function(i){switch(i.label){case 0:return this.lastSuccessfulFetch&&(t=Date.now()-this.lastSuccessfulFetch,t<Nye)?(this.logger.debug("Remote config client skipping updateConfigs: Too recent"),[2]):[4,this.getOrCreateFetchPromise()];case 1:return n=i.sent(),this.storage.setConfig(n),this.callbackInfos.forEach(function(o){r.sendCallback(o,n,"remote")}),[2]}})})},e.prototype.getOrCreateFetchPromise=function(){var t=this;return this.fetchPromise?this.fetchPromise:(this.fetchPromise=this.fetch().then(function(n){return n.remoteConfig!==null&&(t.lastSuccessfulFetch=Date.now()),n}).finally(function(){t.fetchPromise=null}),this.fetchPromise)},e.prototype.subscribeAll=function(t){return ue(this,void 0,void 0,function(){var n,r,i,o=this;return oe(this,function(s){switch(s.label){case 0:return n=this.getOrCreateFetchPromise().then(function(a){o.logger.debug("Remote config client subscription all mode fetched from remote: ".concat(JSON.stringify(a))),o.sendCallback(t,a,"remote"),o.storage.setConfig(a)}),r=this.storage.fetchConfig().then(function(a){return a}),[4,Promise.race([n,r])];case 1:return i=s.sent(),i!==void 0&&(this.logger.debug("Remote config client subscription all mode fetched from cache: ".concat(JSON.stringify(i))),i.remoteConfig!==null?this.sendCallback(t,i,"cache"):this.logger.debug("Remote config client skips sending c
685allback because cache is empty (first time user).")),[4,n];case 2:return s.sent(),[2]}})})},e.prototype.subscribeWaitForRemote=function(t,n){return ue(this,void 0,void 0,function(){var r,i,i;return oe(this,function(o){switch(o.label){case 0:r=new Promise(function(s,a){setTimeout(function(){a("Timeout exceeded")},n)}),o.label=1;case 1:return o.trys.push([1,3,,5]),[4,Promise.race([this.getOrCreateFetchPromise(),r])];case 2:return i=o.sent(),this.logger.debug("Remote config client subscription wait for remote mode returns from remote."),this.sendCallback(t,i,"remote"),this.storage.setConfig(i),[3,5];case 3:return o.sent(),this.logger.debug("Remote config client subscription wait for remote mode exceeded timeout. Try to fetch from cache."),[4,this.storage.fetchConfig()];case 4:return i=o.sent(),i.remoteConfig!==null?(this.logger.debug("Remote config client subscription wait for remote mode returns a cached copy."),this.sendCallback(t,i,"cache")):(this.logger.debug("Remote config client subscription wait for remote mode failed to fetch cache."),this.sendCallback(t,i,"remote")),[3,5];case 5:return[2]}})})},e.prototype.sendCallback=function(t,n,r){t.lastCallback=new Date;var i;t.key?i=t.key.split(".").reduce(function(o,s){return o===null?o:s in o?o[s]:null},n.remoteConfig):i=n.remoteConfig,t.callback(i,r,n.lastFetch)},e.prototype.fetch=function(t,n){return t===void 0&&(t=Oye),n===void 0&&(n=$ye),ue(this,void 0,void 0,function(){var r,i,o,s,a,l,u=this;return oe(this,function(c){switch(c.label){case 0:r=n/t,i={remoteConfig:null,lastFetch:new Date},o=function(d){var f,p,h,m,v,g;return oe(this,function(y){switch(y.label){case 0:f=new AbortController,p=setTimeout(function(){return f.abort()},n),y.label=1;case 1:return y.trys.push([1,7,8,9]),[4,fetch(s.getUrlParams(),{method:"GET",headers:{Accept:"*/*"},signal:f.signal})];case 2:return h=y.sent(),h.ok?[3,4]:[4,h.text()];case 3:return m=y.sent(),s.logger.debug("Remote config client fetch with retry time ".concat(t," failed with ").concat(h.status,": ").concat(m)),[3,6];case 4:return[4,h.json()];case 5:return v=y.sent(),[2,{value:{remoteConfig:v,lastFetch:new Date}}];case 6:return[3,9];case 7:return g=y.sent(),g instanceof Error&&g.name==="AbortError"?s.logger.debug("Remote config client fetch with retry time ".concat(t," timed out after ").concat(n,"ms")):s.logger.debug("Remote config client fetch with retry time ".concat(t," is rejected because: "),g),[3,9];case 8:return clearTimeout(p),[7];case 9:return d<t-1?[4,new Promise(function(_){return setTimeout(_,u.getJitterDelay(r))})]:[3,11];case 10:y.sent(),y.label=11;case 11:return[2]}})},s=this,a=0,c.label=1;case 1:return a<t?[5,o(a)]:[3,4];case 2:if(l=c.sent(),typeof l=="object")return[2,l.value];c.label=3;case 3:return a++,[3,1];case 4:return[2,i]}})})},e.prototype.getJitterDelay=function(t){return Math.floor(Math.random()*t)},e.prototype.getUrlParams=function(){var t=encodeURIComponent(this.apiKey),n=new URLSearchParams;return n.append("config_group",e.CONFIG_GROUP),"".concat(this.serverUrl,"/").concat(t,"?").concat(n.toString())},e.CONFIG_GROUP="browser",e}(),np;(function(e){e.US="US",e.EU="EU",e.STAGING="STAGING"})(np||(np={}));var Hye=null,Dye=["a","button","input","select","textarea","label","video","audio",'[contenteditable="true" i]',"[data-amp-default-track]",".amp-default-track"],W9="data-amp-track-",Vye=["div","span","h1","h2","h3","h4","h5","h6"],Fye=["a","button",'[role="button"]','[role="link"]','[role="menuitem"]','[role="menuitemcheckbox"]','[role="menuitemradio"]','[role="option"]','[role="tab"]','[role="treeitem"]','[contenteditable="true" i]'],Bye=Fe(['input[type="button"]','input[type="submit"]','input[type="reset"]','input[type="image"]','input[type="file"]'],Ne(Fye),!1),Uye=Bye,jye=["*"],Wye=1e3,Gye=4,zye=50;function qye(e){return typeof e=="string"||typeof e=="number"||typeof e=="boolean"||e===null||e===void 0}function G9(e,t,n){if(e){var r=t.map(Tx),i=n.map(Tx);z9({json:e,allowlist:r,excludelist:i,ancestors:[]})}}function z9(e){var t,n,r=e.json,i=e.targetObject,o=e.allowlist,s=e.excludelist,a=e.ancestors,l=e.parentObject,u=e.targetKey;
685i||(i=r);var c=Object.keys(i);try{for(var d=Ge(c),f=d.next();!f.done;f=d.next()){var p=f.value,h=Fe(Fe([],Ne(a),!1),[p],!1);qye(i[p])?(!Ax(h,o)||Ax(h,s))&&delete i[p]:z9({json:r,targetObject:i[p],allowlist:o,excludelist:s,ancestors:h,parentObject:i,targetKey:p})}}catch(m){t={error:m}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}Object.keys(i).length===0&&l&&u&&delete l[u]}function Tx(e){return e.startsWith("/")&&(e=e.slice(1)),e.split("/").map(function(t){return t.replace(/~0/g,"~").replace(/~1/g,"/")})}function T2(e,t,n,r){if(n===void 0&&(n=0),r===void 0&&(r=0),r===t.length)return n===e.length;if(n===e.length){for(;r<t.length&&t[r]==="**";)r++;return r===t.length}var i=t[r];if(i==="**"){if(r+1===t.length)return!0;for(var o=n;o<=e.length;o++)if(T2(e,t,o,r+1))return!0;return!1}else return i==="*"||i===e[n]?T2(e,t,n+1,r+1):!1}function Ax(e,t){return t.some(function(n){return T2(e,n)})}var Kye=500,q9=100,Xye=function(){function e(t){this.request=t}return e.prototype.headers=function(t){var n,r;t===void 0&&(t=[]);var i=this.request.headers,o={};if(Array.isArray(i))i.forEach(function(d){var f=Ne(d,2),p=f[0],h=f[1];o[p]=h});else if(i instanceof Headers)i.forEach(function(d,f){o[f]=d});else if(typeof i=="object"&&i!==null)try{for(var s=Ge(Object.entries(i)),a=s.next();!a.done;a=s.next()){var l=Ne(a.value,2),u=l[0],c=l[1];o[u]=c}}catch(d){n={error:d}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a0(o,{allow:t})},Object.defineProperty(e.prototype,"bodySize",{get:function(){if(typeof this._bodySize=="number")return this._bodySize;var t=$t();if(t!=null&&t.TextEncoder){var n=this.request.body;return this._bodySize=K9(n,q9),this._bodySize}},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"method",{get:function(){return this.request.method},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return typeof this.request.body=="string"?this.request.body:null},enumerable:!1,configurable:!0}),e.prototype.json=function(t,n){return t===void 0&&(t=[]),n===void 0&&(n=[]),ue(this,void 0,void 0,function(){var r;return oe(this,function(i){return t.length===0?[2,null]:(r=this.body,[2,uw(r,t,n)])})})},e}(),Zye=function(){function e(t,n){this.bodyRaw=t,this.requestHeaders=n}return e.prototype.headers=function(t){return t===void 0&&(t=[]),a0(this.requestHeaders,{allow:t})},Object.defineProperty(e.prototype,"bodySize",{get:function(){return K9(this.bodyRaw,q9)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"body",{get:function(){return typeof this.bodyRaw=="string"?this.bodyRaw:null},enumerable:!1,configurable:!0}),e.prototype.json=function(t,n){return t===void 0&&(t=[]),n===void 0&&(n=[]),ue(this,void 0,void 0,function(){var r;return oe(this,function(i){return t.length===0?[2,null]:(r=this.body,[2,uw(r,t,n)])})})},e}();function K9(e,t){var n,r,i,o=$t(),s=o==null?void 0:o.TextEncoder;if(s){var a;if(typeof e=="string")a=e,i=new s().encode(a).length;else if(e instanceof Blob)a=e,i=a.size;else if(e instanceof URLSearchParams)a=e,i=new s().encode(a.toString()).length;else if(ArrayBuffer.isView(e))a=e,i=a.byteLength;else if(e instanceof ArrayBuffer)a=e,i=a.byteLength;else if(e instanceof FormData){var l=e,u=0,c=0;try{for(var d=Ge(l.entries()),f=d.next();!f.done;f=d.next()){var p=Ne(f.value,2),h=p[0],m=p[1];if(u+=h.length,typeof m=="string")u+=new s().encode(m).length;else if(m instanceof Blob)u+=m.size;else return;if(++c>=t)return}}catch(v){n={error:v}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}i=u}else if(e instanceof ReadableStream){a=e;return}return i}}var Yye=function(){function e(t){this.response=t}return e.prototype.headers=function(t){var n;if(t===void 0&&(t=[]),this.response.headers instanceof Headers){var r=this.response.headers,i={};return(n=r==null?void 0:r.forEach)===null||n===void 0||n.call(r,function(o,s){i[s]=o}),a0(i,{allow:t})}},Object.defineProperty(e.prototype,"bodySize",{get:function(){var t,n;if(this._bodySize!==void 0)return this._bodySize;var r=(n=(t=this.response.headers)===null||t===void 0?void 0:t.get)===null||n===void 0?void 0:n.call(t,"content-length"),i=r?parseInt(r,10):void 0;return this._bodySize=i,i}
685,enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.response.status},enumerable:!1,configurable:!0}),e.prototype.text=function(){return ue(this,void 0,void 0,function(){var t,n,r;return oe(this,function(i){switch(i.label){case 0:this.clonedResponse||(this.clonedResponse=this.response.clone()),i.label=1;case 1:return i.trys.push([1,3,,4]),t=this.clonedResponse.text(),n=new Promise(function(o){return setTimeout(function(){return o(null)},Kye)}),[4,Promise.race([t,n])];case 2:return r=i.sent(),[2,r];case 3:return i.sent(),[2,null];case 4:return[2]}})})},e.prototype.json=function(t,n){return t===void 0&&(t=[]),n===void 0&&(n=[]),ue(this,void 0,void 0,function(){var r;return oe(this,function(i){switch(i.label){case 0:return t.length===0?[2,null]:[4,this.text()];case 1:return r=i.sent(),[2,uw(r,t,n)]}})})},e}(),Jye=function(){function e(t,n,r,i){this.statusCode=t,this.headersString=n,this.size=r,this.getJson=i}return Object.defineProperty(e.prototype,"bodySize",{get:function(){return this.size},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"status",{get:function(){return this.statusCode},enumerable:!1,configurable:!0}),e.prototype.headers=function(t){var n,r;if(t===void 0&&(t=[]),!this.headersString)return{};var i={},o=this.headersString.split(`\r 686`);try{for(var s=Ge(o),a=s.next();!a.done;a=s.next()){var l=a.value,u=Ne(l.split(": "),2),c=u[0],d=u[1];c&&d&&(i[c]=d)}}catch(f){n={error:f}}finally{try{a&&!a.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return a0(i,{allow:t})},e.prototype.json=function(t,n){return t===void 0&&(t=[]),n===void 0&&(n=[]),ue(this,void 0,void 0,function(){var r;return oe(this,function(i){return t.length===0?[2,null]:(r=this.getJson(),r?(G9(r,t,n),[2,r]):[2,null])})})},e}();function uw(e,t,n){if(!e)return null;try{var r=JSON.parse(e);return G9(r,t,n),r}catch{return null}}var df;(function(e){e.REDACT="redact",e.REMOVE="remove"})(df||(df={}));var Ix="[REDACTED]",a0=function(e,t){var n,r,i=t.allow,o=i===void 0?[]:i,s=t.strategy,a=s===void 0?df.REMOVE:s,l=Fe([],Ne(W0e),!1),u={},c=function(h){var m=h.toLowerCase();l.find(function(v){return v.toLowerCase()===m})?a===df.REDACT&&(u[h]=Ix):o.find(function(v){return v.toLowerCase()===m})?u[h]=e[h]:a===df.REDACT&&(u[h]=Ix)};try{for(var d=Ge(Object.keys(e)),f=d.next();!f.done;f=d.next()){var p=f.value;c(p)}}catch(h){n={error:h}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}return u},Qye=function(){function e(t,n,r,i,o,s,a,l,u,c,d){a===void 0&&(a=0),this.type=t,this.method=n,this.timestamp=r,this.startTime=i,this.url=o,this.requestWrapper=s,this.status=a,this.duration=l,this.responseWrapper=u,this.error=c,this.endTime=d}return e.prototype.toSerializable=function(){var t,n,r,i,o={type:this.type,method:this.method,url:this.url,timestamp:this.timestamp,status:this.status,duration:this.duration,error:this.error,startTime:this.startTime,endTime:this.endTime,requestHeaders:(t=this.requestWrapper)===null||t===void 0?void 0:t.headers(Fe([],Ne(b2),!1)),requestBodySize:(n=this.requestWrapper)===null||n===void 0?void 0:n.bodySize,responseHeaders:(r=this.responseWrapper)===null||r===void 0?void 0:r.headers(Fe([],Ne(b2),!1)),responseBodySize:(i=this.responseWrapper)===null||i===void 0?void 0:i.bodySize};return Object.fromEntries(Object.entries(o).filter(function(s){var a=Ne(s,2);a[0];var l=a[1];return l!==void 0}))},e}();function ebe(e){return typeof e=="object"&&e!==null&&"url"in e&&"method"in e}var tbe=function(){function e(t,n){n===void 0&&(n=ks()),this.callback=t,this.id=n}return e}();function Na(e){try{e()}catch{}}var nbe=function(){function e(t){this.eventCallbacks=new Map,this.isObserving=!1,this.logger=t;var n=$t();e.isSupported()&&(this.globalScope=n)}return e.isSupported=function(){var t=$t();return!!t&&!!t.fetch},e.prototype.subscribe=function(t,n){var r,i,o,s,a,l,u,c,d,f;if(this.logger||(this.logger=n),this.eventCallbacks.set(t.id,t),!this.isObserving){var p=(o=(i=(r=this.globalScope)===null||r===void 0?void 0:r.XMLHttpRequest)===null||i===void 0?void 0:i.prototype)===null||o===void 0?void 0:o.open,h=(l=(a=(s=this.globalScope)===null||s===void 0?void 0:s.XMLHttpRequest)===null||a===void 0?void 0:a.prototype)===null||l===void 0?void 0:l.send,m=(d=(c=(u=this.globalScope)===null||u===void 0?void 0:u.XMLHttpRequest)===null||c===void 0?void 0:c.prototype)===null||d===void 0?void 0:d.setRequestHeader;p&&h&&m&&this.observeXhr(p,h,m);var v=(f=this.globalScope)===null||f===void 0?void 0:f.fetch;v&&this.observeFetch(v),this.isObserving=!0}},e.prototype.unsubscribe=function(t){this.eventCallbacks.delete(t.id)},e.prototype.triggerEventCallbacks=function(t){var n=this;this.eventCallbacks.forEach(function(r){try{r.callback(t)}catch(i){Na(function(){var o;(o=n.logger)===null||o===void 0||o.debug("an unexpected error occurred while triggering event callbacks",i)})}})},e.prototype.handleNetworkRequestEvent=function(t,n,r,i,o,s,a){var l;if(!(s===void 0||a===void 0)){var u,c="GET";if(ebe(n)?(u=n.url,c=n.method):u=(l=n==null?void 0:n.toString)===null||l===void 0?void 0:l.call(n),u)try{var d=new URL(u);u="".concat(d.protocol,"//").concat(d.host).concat(d.pathname).concat(d.search).concat(d.hash)}catch{}c=(r==null?void 0:r.method)||c;var f,p;
686i&&(f=i.status),o&&(p={name:o.name||"UnknownError",message:o.message||"An unknown error occurred"},f=0);var h=Math.floor(performance.now()-a),m=Math.floor(s+h),v=new Qye(t,c,s,s,u,r,f,h,i,p,m);this.triggerEventCallbacks(v)}},e.prototype.getTimestamps=function(){var t,n;return{startTime:(t=Date.now)===null||t===void 0?void 0:t.call(Date),durationStart:(n=performance==null?void 0:performance.now)===null||n===void 0?void 0:n.call(performance)}},e.prototype.observeFetch=function(t){var n=this;!this.globalScope||!t||(this.globalScope.fetch=function(r,i){return ue(n,void 0,void 0,function(){var o,s,a,l,u=this;return oe(this,function(c){switch(c.label){case 0:try{o=this.getTimestamps()}catch(d){Na(function(){var f;return(f=u.logger)===null||f===void 0?void 0:f.debug("an unexpected error occurred while retrieving timestamps",d)})}c.label=1;case 1:return c.trys.push([1,3,,4]),[4,t(r,i)];case 2:return s=c.sent(),[3,4];case 3:return l=c.sent(),a=l,[3,4];case 4:try{this.handleNetworkRequestEvent("fetch",r,i?new Xye(i):void 0,s?new Yye(s):void 0,a,o==null?void 0:o.startTime,o==null?void 0:o.durationStart)}catch(d){Na(function(){var f;return(f=u.logger)===null||f===void 0?void 0:f.debug("an unexpected error occurred while handling fetch",d)})}if(s)return[2,s];throw a}})})})},e.createXhrJsonParser=function(t,n){return function(){var r;try{if(t.responseType==="json"){if(!((r=n.globalScope)===null||r===void 0)&&r.structuredClone)return n.globalScope.structuredClone(t.response)}else if(["text",""].includes(t.responseType))return JSON.parse(t.responseText)}catch(i){return i instanceof Error&&i.name==="InvalidStateError"&&Na(function(){var o;return(o=n.logger)===null||o===void 0?void 0:o.debug("unexpected error when retrieving responseText. responseType='".concat(t.responseType,"'"))}),null}return null}},e.prototype.observeXhr=function(t,n,r){if(!(!this.globalScope||!t||!n)){var i=this.globalScope.XMLHttpRequest.prototype,o=this;i.open=function(){for(var s,a=[],l=0;l<arguments.length;l++)a[l]=arguments[l];var u=this,c=Ne(a,2),d=c[0],f=c[1];try{u.$$AmplitudeAnalyticsEvent=ne({method:d,url:(s=f==null?void 0:f.toString)===null||s===void 0?void 0:s.call(f),headers:{}},o.getTimestamps())}catch(p){Na(function(){var h;return(h=o.logger)===null||h===void 0?void 0:h.debug("an unexpected error occurred while calling xhr open",p)})}return t.apply(u,a)},i.send=function(){for(var s=[],a=0;a<arguments.length;a++)s[a]=arguments[a];var l=this,u=l,c=e.createXhrJsonParser(l,o),d=s[0],f=u.$$AmplitudeAnalyticsEvent;return u.$$AmplitudeAnalyticsEvent&&u.addEventListener("loadend",function(){try{var p=u.getAllResponseHeaders(),h=u.getResponseHeader("content-length"),m=new Jye(u.status,p,h?parseInt(h,10):void 0,c),v=u.$$AmplitudeAnalyticsEvent.headers,g=new Zye(d,v);f.status=u.status,o.handleNetworkRequestEvent("xhr",{url:f.url,method:f.method},g,m,void 0,f.startTime,f.durationStart)}catch(y){Na(function(){var _;return(_=o.logger)===null||_===void 0?void 0:_.debug("an unexpected error occurred while handling xhr send",y)})}}),n.apply(u,s)},i.setRequestHeader=function(s,a){var l=this;try{var u=l.$$AmplitudeAnalyticsEvent;u&&(u.headers[s]=a)}catch(c){Na(function(){var d;return(d=o.logger)===null||d===void 0?void 0:d.debug("an unexpected error occurred while calling xhr setRequestHeader",c)})}r.apply(l,[s,a])}}},e}(),xx=new nbe,rbe=function(){function e(){}return e.prototype.parse=function(){return ue(this,void 0,void 0,function(){return oe(this,function(t){return[2,ne(ne(ne(ne({},sw),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var t=lg(),n=t[D0e],r=t[V0e],i=t[F0e],o=t[B0e],s=t[U0e],a=t[j0e];return{utm_campaign:n,utm_content:r,utm_id:i,utm_medium:o,utm_source:s,utm_term:a}},e.prototype.getReferrer=function(){var t,n,r={referrer:void 0,referring_domain:void 0};try{r.referrer=document.referrer||void 0,r.referring_domain=(n=(t=r.referrer)===null||t===void 0?void 0:t.split("/")[2])!==null&&n!==void 0?n:void 0}catch{}return r},e.prototype.getClickIds=function(){var t,n=lg();return t={},t[cx]=n[cx],t[dx]=n[dx],t[fx]=n[fx],t[px]=n[px],t[hx]=n[hx],t[mx]=n[mx],t[vx]=n[vx],t[gx]=n[gx],t[yx]=n[yx],t[bx]=n[bx],t[_x]=n[_x],t},e}(),A2="https://app.amplitude.com",ibe="https://app.eu.amplitude.com",obe="https://apps.stag2.amplitude.com",sbe={US:A2,EU:ibe,STAGING:obe},abe="https://cdn.amplitude.com/libs/background-capture-1.0.0-alpha.1.js.gz",lbe=function(e){var t=document.querySelector('script[src="'.concat(CSS.escape(e),'"]'));return t?Promise.resolve({status:!0}):new Promise(function(n,r){var i;try{var o=document.createElement("script");o.type="text/javascript",o.async=!0,o.src=e,o.addEventListener("load",function(){n({status:!0})},{once:!0}),o.addEventListener("error",function(){r({status:!1,message:"Failed to load the script ".concat(e)})}),(i=document.head)===null||i===void 0||i.appendChild(o)}catch(s){r(s)}})};function ube(){return"".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9))}var X9,I2="__AMPLITUDE_MESSENGER_INSTANCE__",ug="__AMPLITUDE_MESSENGER__",cbe=function(){function e(t){var n=t===void 0?{}:t,r=n.origin,i=r===void 0?A2:r;this[X9]=!0,this.isSetup=!1,this.messageHandler=null,this.requestCallbacks={},this.actionHandlers=new Map,this.pendingMessages=new Map,this.scriptLoadPromises=new Map,this.endpoint=i}return e.prototype.notify=function(t){var n,r,i,o;(r=(n=this.logger)===null||n===void 0?void 0:n.debug)===null||r===void 0||r.call(n,"Message sent: ",JSON.stringify(t)),(o=(i=window.opener)===null||i===void 0?void 0:i.postMessage)===null||o===void 0||o.call(i,t,this.endpoint)},e.prototype.sendRequest=function(t,n,r){var i=this;r===void 0&&(r={timeout:15e3});var o=ube(),s={id:o,action:t,args:n},a=new Promise(function(l,u){i.requestCallbacks[o]={resolve:l,reject:u},i.notify(s),r.timeout>0&&setTimeout(function(){u(new Error("".concat(t," timed out (id: ").concat(o,")"))),delete i.requestCallbacks[o]},r.timeout)});return a},e.prototype.handleResponse=function(t){var n;if(!this.requestCallbacks[t.id]){(n=this.logger)===null||n===void 0||n.warn("No callback found for request id: ".concat(t.id));return}this.requestCallbacks[t.id].resolve(t.responseData),delete this.requestCallbacks[t.id]},e.prototype.registerActionHandler=function(t,n){var r,i,o,s;this.actionHandlers.has(t)&&((s=(o=this.logger)===null||o===void 0?void 0:o.warn)===null||s===void 0||s.call(o,"Overwriting existing action handler for: ".concat(t))),this.actionHandlers.set(t,n);var a=this.pendingMessages.get(t);if(a){this.pendingMessages.delete(t);try{for(var l=Ge(a),u=l.next();!u.done;u=l.next()){var c=u.value;n(c)}}catch(d){r={error:d}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}}},e.prototype.loadScriptOnce=function(t){return ue(this,void 0,void 0,function(){var n,r,i;return oe(this,function(o){switch(o.label){case 0:if(n=this.scriptLoadPromises.get(t),n)return[2,n];r=lbe(t).then(function(){}),this.scriptLoadPromises.set(t,r),o.label=1;case 1:return o.trys.push([1,3,,4]),[4,r];case 2:return o.sent(),[3,4];case 3:throw i=o.sent(),this.scriptLoadPromises.delete(t),i;case 4:return[2]}})})},e.prototype.setup=function(t){var n=this,r,i,o=t===void 0?{}:t,s=o.logger,a=o.endpoint;s&&(this.logger=s),a&&this.endpoint===A2&&(this.endpoint=a),!this.isSetup&&(this.isSetup=!0,(i=(r=this.logger)===null||r===void 0?void 0:r.debug)===null||i===void 0||i.call(r,"Setting up messenger"),this.messageHandler=function(l){var u,c,d,f,p;if((c=(u=n.logger)===null||u===void 0?void 0:u.debug)===null||c===void 0||c.c
686all(u,"Message received: ",JSON.stringify(l)),n.endpoint===l.origin){var h=l.data,m=h==null?void 0:h.action;if(m)if("id"in h&&h.id)(f=(d=n.logger)===null||d===void 0?void 0:d.debug)===null||f===void 0||f.call(d,"Received Response to previous request: ",JSON.stringify(l)),n.handleResponse(h);else{if(m==="ping"){n.notify({action:"pong"});return}var v=n.actionHandlers.get(m);if(v)v(h.data);else{var g=(p=n.pendingMessages.get(m))!==null&&p!==void 0?p:[];g.push(h.data),n.pendingMessages.set(m,g)}}}},window.addEventListener("message",this.messageHandler),this.notify({action:"page-loaded"}))},e.prototype.destroy=function(){this.messageHandler&&(window.removeEventListener("message",this.messageHandler),this.messageHandler=null),this.isSetup=!1,this.actionHandlers.clear(),this.pendingMessages.clear(),this.requestCallbacks={},this.scriptLoadPromises.clear();var t=$t();(t==null?void 0:t[ug])===this&&delete t[ug]},e}();X9=I2;function dbe(e){return typeof e=="object"&&e!==null&&I2 in e&&e[I2]===!0}function fbe(e){var t=$t(),n=t==null?void 0:t[ug];if(dbe(n))return n;var r=new cbe(e);return t&&(t[ug]=r),r}var Lx="__AMPLITUDE_BACKGROUND_CAPTURE__";function pbe(e,t){var n,r=e;if(r[Lx]!==!0){r[Lx]=!0;var i=(n=t==null?void 0:t.scriptUrl)!==null&&n!==void 0?n:abe,o=null,s=function(a,l){var u,c;a==="background-capture-complete"&&((c=(u=e.logger)===null||u===void 0?void 0:u.debug)===null||c===void 0||c.call(u,"Background capture complete"),e.notify({action:"background-capture-complete",data:l}))};e.registerActionHandler("initialize-background-capture",function(){var a,l;(l=(a=e.logger)===null||a===void 0?void 0:a.debug)===null||l===void 0||l.call(a,"Initializing background capture (external script)");var u=new URL(i,e.endpoint).toString();e.loadScriptOnce(u).then(function(){var c,d,f;(d=(c=e.logger)===null||c===void 0?void 0:c.debug)===null||d===void 0||d.call(c,"Background capture script loaded (external)"),o=(f=window==null?void 0:window.amplitudeBackgroundCapture)===null||f===void 0?void 0:f.call(window,{messenger:e,onBackgroundCapture:s}),e.notify({action:"background-capture-loaded"})}).catch(function(){var c;(c=e.logger)===null||c===void 0||c.warn("Failed to initialize background capture")})}),e.registerActionHandler("close-background-capture",function(){var a;(a=o==null?void 0:o.close)===null||a===void 0||a.call(o),o=null})}}var Gp=function(e,t){return typeof e=="boolean"?e:(e==null?void 0:e[t])!==!1},Z9=function(e){return Gp(e,"attribution")},hbe=function(e){return Gp(e,"fileDownloads")},mbe=function(e){return Gp(e,"formInteractions")},Y9=function(e){return Gp(e,"pageViews")},kx=function(e){return Gp(e,"sessions")},J9=function(e){return typeof e=="object"&&(e.networkTracking===!0||typeof e.networkTracking=="object")},Q9=function(e){return typeof e=="boolean"?e:typeof e=="object"&&(e.elementInteractions===!0||typeof e.elementInteractions=="object")},vbe=function(e){return typeof e=="object"&&e.webVitals===!0},eN=function(e){return typeof e=="object"&&(e.frustrationInteractions===!0||typeof e.frustrationInteractions=="object")},gbe=function(e){if(Q9(e.autocapture)&&typeof e.autocapture=="object"&&typeof e.autocapture.elementInteractions=="object")return e.autocapture.elementInteractions},ybe=function(e){if(eN(e.autocapture)&&typeof e.autocapture=="object"&&typeof e.autocapture.frustrationInteractions=="object")return e.autocapture.frustrationInteractions},bbe=function(e){var t;if(J9(e.autocapture)){var n=void 0;return typeof e.autocapture=="object"&&typeof e.autocapture.networkTracking=="object"?n=e.autocapture.networkTracking:e.networkTrackingOptions&&(n=e.networkTrackingOptions),ne(ne({},n),{captureRules:(t=n==null?void 0:n.captureRules)===null||t===void 0?void 0:t.map(function(r){var i;if(r.urls&&r.hosts){var o=JSON.stringify(r.hosts),s=JSON.stringify(r.urls);return(i=e.loggerProvider)===null||i===void 0||i.warn("Found network capture rule with both urls='".concat(s,"' and hosts='").concat(o,"' set. ")+"Definition of urls takes precedence over hosts, so ignoring hosts."),ne(ne({},r),{hosts:void 0})}return r})})}},_be=function(e){var t=function(){return!1},n=void 0,r,i=e.pageCounter,o=Y9(e.defaultTracking);return o&&(t=void 0,r=void 0,e.defaultTracking&&typeof e.defaultTracking=="object"&&e.defaultTracking.pageViews&&typeof e.defaultTracking.pageViews=="object"&&("trackOn"in e.defaultTracking.pageViews&&(t=e.defaultTracking.pageViews.trackOn),"trackHistoryChanges"in e.defaultTracking.pageViews&&(n=e.defaultTracking.pageViews.trackHistoryChanges),"eventType"in e.defaultTracking.pageViews&&e.defaultTracking.pageViews.eventType&&(r=e.defaultTracking.pageViews.eventType))),{trackOn:t,trackHistoryChanges:n,eventType:r,pageCounter:i}},Sbe=function(e){return Z9(e.defaultTracking)&&e.defaultTracking&&typeof e.defaultTracking=="object"&&e.defaultTracking.attribution&&typeof e.defaultTracking.attribution=="object"?ne({},e.defaultTracking.attribution):{}},ky=function(e,t){for(var n=0;n<t.length;n++){var r=t[n],i=r.name,o=r.args,s=r.resolve,a=e&&e[i];if(typeof a=="function"){var l=a.apply(e,o);typeof s=="function"&&s(l==null?void 0:l.promise)}}return e},My=function(e){var t=e;return t&&t._q!==void 0},tN="2.23.7",Ebe="amplitude-ts",Cbe="Web",wbe="$remote",Tbe=function(){function e(){this.name="@amplitude/plugin-context-browser",this.type="before",this.library="".concat(Ebe,"/").concat(tN),typeof navigator<"u"&&(this.userAgent=navigator.userAgent)}return e.prototype.setup=function(t){return this.config=t,Promise.resolve(void 0)},e.prototype.execute=function(t){var n,r;return ue(this,void 0,void 0,function(){var i,o,s,a;return oe(this,function(l){return i=new Date().getTime(),o=(n=this.config.lastEventId)!==null&&n!==void 0?n:-1,s=(r=t.event_id)!==null&&r!==void 0?r:o+1,this.config.lastEventId=s,t.time||(this.config.lastEventTime=i),a=ne(ne(ne(ne(ne(ne(ne(ne({user_id:this.config.userId,device_id:this.config.deviceId,session_id:this.config.sessionId,time:i},this.config.appVersion&&{app_version:this.config.appVersion}),this.config.trackingOptions.platform&&{platform:Cbe}),this.config.trackingOptions.language&&{language:Tye()}),this.config.trackingOptions.ipAddress&&{ip:wbe}),{insert_id:ks(),partner_id:this.config.partnerId,plan:this.config.plan}),this.config.ingestionMetadata&&{ingestion_metadata:{source_name:this.config.ingestionMetadata.sourceName,source_version:this.config.ingestionMetadata.sourceVersion}}),t),{event_id:s,library:this.library,user_agent:this.userAgent}),[2,a]})})},e}(),Wh=1e3,nN=function(e){Vt(t,e);function t(n){var r=this,i,o,s;try{s=(i=$t())===null||i===void 0?void 0:i.localStorage}catch(a){(o=n==null?void 0:n.loggerProvider)===null||o===void 0||o.debug("Failed to access localStorage. error=".concat(JSON.stringify(a))),s=void 0}return r=e.call(this,s)||this,r.loggerProvider=n==null?void 0:n.loggerProvider,r}return t.prototype.set=function(n,r){var i;return ue(this,void 0,void 0,function(){var o;return oe(this,function(s){switch(s.label){case 0:return Array.isArray(r)&&r.length>Wh?(o=r.length-Wh,[4,e.prototype.set.call(this,n,r.slice(0,Wh))]):[3,2];case 1:return s.sent(),(i=this.loggerProvider)===null||i===void 0||i.error("Failed to save ".concat(o," events because the queue length exceeded ").concat(Wh,".")),[3,4];case 2:return[4,e.prototype.set.call(this,n,r)];case 3:s.sent(),s.label=4;case 4:return[2]}})})},t}(B9),Abe=function(e){Vt(t,e);function t(){var n;return e.call(this,(n=$t())===null||n===void 0?void 0:n.sessionStorage)||this}return t}(B9),Ibe=function(e){Vt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.state={done:4},n}return t.prototype.send=function(n,r){return ue(this,void 0,void 0,function(){var i=this;return oe(this,function(o){return[2,new Promise(function(s,a){typeof XMLHttpRequest>"u"&&a(new Error("XHRTransport is not supported."));var l=new XMLHttpRequest;l.open("POST",n,!0),l.onreadystatechange=function(){if(l.readyState===i.state.done){var u=l.responseText;try{s(i.buildResponse(JSON.parse(u)))}catch{s(i.buildResponse({code:l.status}))}}},l.setRequestHeader("Content-Type","application/json"),l.setRequestHeader("Accept","*/*"),l.send(JSON.stringify(r))})]})})},t}(s0),xbe=function(e){Vt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.send=function(n,r){return ue(this,void 0,void 0,function(){var i=this;return oe(this,function(o){return[2,new Promise(function(s,a){var l=$t();if(!(l!=null&&l.navigator.sendBeacon))throw new Error("SendBeaconTransport is not supported");try{var u=JSON.stringify(r),c=l.navigator.sendBeacon(n,JSON.stringify(r));return s(c?i.buildResponse({code:200,events_ingested:r.events.length,payload_size_bytes:u.length,server_upload_time:Date.now()}):i.buildResponse({code:500}))}catch(d){a(d)}})]})})},t}(s0),Lbe=function(e,t,n){return n===void 0&&(n=!0),ue(void 0,void 0,void 0,function(){var r,i,o,s,a,l,u,c,d;return oe(this,function(f){switch(f.label){case 0:return r=wye(e),[4,t.getRaw(r)];case 1:return i=f.sent(),i?n?[4,t.remove(r)]:[3,3]:[2,{optOut:!1}];case 2:f.sent(),f.label=3;
686case 3:return o=Ne(i.split("."),6),s=o[0],a=o[1],l=o[2],u=o[3],c=o[4],d=o[5],[2,{deviceId:s,userId:kbe(a),sessionId:Ry(u),lastEventId:Ry(d),lastEventTime:Ry(c),optOut:!!l}]}})})},Ry=function(e){var t=parseInt(e,32);if(!isNaN(t))return t},kbe=function(e){if(!(!atob||!escape||!e))try{return decodeURIComponent(escape(atob(e)))}catch{return}},vo="[Amplitude]",Mx="".concat(vo," Form Started"),Mbe="".concat(vo," Form Submitted"),Rbe="".concat(vo," File Downloaded"),Rx="session_start",Px="session_end",Pbe="".concat(vo," File Extension"),Obe="".concat(vo," File Name"),$be="".concat(vo," Link ID"),Nbe="".concat(vo," Link Text"),Hbe="".concat(vo," Link URL"),Py="".concat(vo," Form ID"),Oy="".concat(vo," Form Name"),$y="".concat(vo," Form Destination"),cg="cookie",Dbe="US",Vbe=function(e){Vt(t,e);function t(n,r,i,o,s,a,l,u,c,d,f,p,h,m,v,g,y,_,b,S,C,E,w,T,A,L,x,k,M,z,P,H,q,de,se){i===void 0&&(i=new lw),o===void 0&&(o={domain:"",expiration:365,sameSite:"Lax",secure:!1,upgrade:!0}),u===void 0&&(u=1e3),c===void 0&&(c=5),d===void 0&&(d=30),f===void 0&&(f=cg),g===void 0&&(g=new tp),y===void 0&&(y=Vr.Warn),b===void 0&&(b=!1),S===void 0&&(S=!1),w===void 0&&(w=""),T===void 0&&(T=Dbe),L===void 0&&(L=30*60*1e3),x===void 0&&(x=new nN({loggerProvider:g})),k===void 0&&(k={ipAddress:!0,language:!0,platform:!0}),M===void 0&&(M="fetch"),z===void 0&&(z=!1),P===void 0&&(P=!0);var W=e.call(this,{apiKey:n,storageProvider:x,transportProvider:rN(M)})||this;return W.apiKey=n,W.appVersion=r,W.cookieOptions=o,W.defaultTracking=s,W.autocapture=a,W.flushIntervalMillis=u,W.flushMaxRetries=c,W.flushQueueSize=d,W.identityStorage=f,W.ingestionMetadata=p,W.instanceName=h,W.loggerProvider=g,W.logLevel=y,W.minIdLength=_,W.offline=b,W.partnerId=C,W.plan=E,W.serverUrl=w,W.serverZone=T,W.sessionTimeout=L,W.storageProvider=x,W.trackingOptions=k,W.transport=M,W.useBatch=z,W.fetchRemoteConfig=P,W.networkTrackingOptions=se,W.version=tN,W._optOut=!1,W._cookieStorage=i,W.deviceId=l,W.lastEventId=m,W.lastEventTime=v,W.optOut=S,W.sessionId=A,W.pageCounter=q,W.userId=H,W.debugLogsEnabled=de,W.loggerProvider.enable(de?Vr.Debug:W.logLevel),W.networkTrackingOptions=se,W}return Object.defineProperty(t.prototype,"cookieStorage",{get:function(){return this._cookieStorage},set:function(n){this._cookieStorage!==n&&(this._cookieStorage=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"deviceId",{get:function(){return this._deviceId},set:function(n){this._deviceId!==n&&(this._deviceId=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"userId",{get:function(){return this._userId},set:function(n){this._userId!==n&&(this._userId=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"sessionId",{get:function(){return this._sessionId},set:function(n){this._sessionId!==n&&(this._sessionId=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"optOut",{get:function(){return this._optOut},set:function(n){this._optOut!==n&&(this._optOut=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventTime",{get:function(){return this._lastEventTime},set:function(n){this._lastEventTime!==n&&(this._lastEventTime=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastEventId",{get:function(){return this._lastEventId},set:function(n){this._lastEventId!==n&&(this._lastEventId=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"pageCounter",{get:function(){return this._pageCounter},set:function(n){this._pageCounter!==n&&(this._pageCounter=n,this.updateStorage())},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"debugLogsEnabled",{set:function(n){this._debugLogsEnabled!==n&&(this._debugLogsEnabled=n,this.updateStorage())},enumerable:!1,configurable:!0}),t.prototype.updateStorage=function(){var n={deviceId:this._deviceId,userId:this._userId,sessionId:this._sessionId,optOut:this._optOut,lastEventTime:this._lastEventTime,lastEventId:this._lastEventId,pageCounter:this._pageCounter,debugLogsEnabled:this._debugLogsEnabled};this.cookieStorage.set(F9(this.apiKey),n)},t}(H9),Fbe=function(e,t,n){return t===void 0&&(t={}),ue(void 0,void 0,void 0,function(){var r,i,o,s,a,l,u,c,d,f,p,h,m,v,g,y,_,b,S,C,E,w,T,A,L,x,k,M,z,P,H,q,de,se,W,V,B,Y,F,Q,re,be,Le,Me,He;return oe(this,function($){switch($.label){case 0:return r=t.identityStorage||cg,E={},r===cg?[3,1]:(o="",[3,5]);case 1:return(T=(w=t.cookieOptions)===null||w===void 0?void 0:w.domain)!==null&&T!==void 0?(s=T,[3,4]):[3,2];case 2:return[4,Ube()];case 3:s=$.sent(),$.label=4;case 4:o=s,$.label=5;case 5:return i=ne.apply(void 0,[(E.domain=o,E.expiration=365,E.sameSite="Lax",E.secure=!1,E.upgrade=!0,E),t.cookieOptions]),a=Bbe(t.identityStorage,i),[4,Lbe(e,a,
686(L=(A=t.cookieOptions)===null||A===void 0?void 0:A.upgrade)!==null&&L!==void 0?L:!0)];case 6:return l=$.sent(),[4,a.get(F9(e))];case 7:return u=$.sent(),c=lg(),d=c.ampTimestamp?Number(c.ampTimestamp):void 0,f=d?Date.now()<d:!0,p=(P=(z=(M=(x=t.deviceId)!==null&&x!==void 0?x:f?(k=c.ampDeviceId)!==null&&k!==void 0?k:c.deviceId:void 0)!==null&&M!==void 0?M:u==null?void 0:u.deviceId)!==null&&z!==void 0?z:l.deviceId)!==null&&P!==void 0?P:ks(),h=(H=u==null?void 0:u.lastEventId)!==null&&H!==void 0?H:l.lastEventId,m=(q=u==null?void 0:u.lastEventTime)!==null&&q!==void 0?q:l.lastEventTime,v=(se=(de=t.optOut)!==null&&de!==void 0?de:u==null?void 0:u.optOut)!==null&&se!==void 0?se:l.optOut,g=(W=u==null?void 0:u.sessionId)!==null&&W!==void 0?W:l.sessionId,y=(B=(V=t.userId)!==null&&V!==void 0?V:u==null?void 0:u.userId)!==null&&B!==void 0?B:l.userId,n.previousSessionDeviceId=(Y=u==null?void 0:u.deviceId)!==null&&Y!==void 0?Y:l.deviceId,n.previousSessionUserId=(F=u==null?void 0:u.userId)!==null&&F!==void 0?F:l.userId,_={ipAddress:(re=(Q=t.trackingOptions)===null||Q===void 0?void 0:Q.ipAddress)!==null&&re!==void 0?re:!0,language:(Le=(be=t.trackingOptions)===null||be===void 0?void 0:be.language)!==null&&Le!==void 0?Le:!0,platform:(He=(Me=t.trackingOptions)===null||Me===void 0?void 0:Me.platform)!==null&&He!==void 0?He:!0},b=u==null?void 0:u.pageCounter,S=u==null?void 0:u.debugLogsEnabled,t.autocapture!==void 0&&(t.defaultTracking=t.autocapture),C=new Vbe(e,t.appVersion,a,i,t.defaultTracking,t.autocapture,p,t.flushIntervalMillis,t.flushMaxRetries,t.flushQueueSize,r,t.ingestionMetadata,t.instanceName,h,m,t.loggerProvider,t.logLevel,t.minIdLength,t.offline,v,t.partnerId,t.plan,t.serverUrl,t.serverZone,g,t.sessionTimeout,t.storageProvider,_,t.transport,t.useBatch,t.fetchRemoteConfig,y,b,S,t.networkTrackingOptions),[4,C.storageProvider.isEnabled()];case 8:return $.sent()||(C.loggerProvider.warn("Storage provider ".concat(C.storageProvider.constructor.name," is not enabled. Falling back to MemoryStorage.")),C.storageProvider=new lw),[2,C]}})})},Bbe=function(e,t){switch(e===void 0&&(e=cg),t===void 0&&(t={}),e){case"localStorage":return new nN;case"sessionStorage":return new Abe;case"none":return new lw;case"cookie":default:return new w2(ne(ne({},t),{expirationDays:t.expiration}))}},rN=function(e){return e==="xhr"?new Ibe:e==="beacon"?new xbe:new U9},Ube=function(e){return ue(void 0,void 0,void 0,function(){var t,n,r,i,o,o,s,a,l,u;return oe(this,function(c){switch(c.label){case 0:return[4,new w2().isEnabled()];case 1:if(!c.sent()||!e&&(typeof location>"u"||!location.hostname))return[2,""];for(t=e??location.hostname,n=t.split("."),r=[],i="AMP_TLDTEST",o=n.length-2;o>=0;--o)r.push(n.slice(o).join("."));o=0,c.label=2;case 2:return o<r.length?(s=r[o],a={domain:"."+s},l=new w2(a),[4,l.set(i,1)]):[3,7];case 3:return c.sent(),[4,l.get(i)];case 4:return u=c.sent(),u?[4,l.remove(i)]:[3,6];case 5:return c.sent(),[2,"."+s];case 6:return o++,[3,2];case 7:return[2,""]}})})},iN=function(){var e="ampIntegrationContext";if(typeof globalThis<"u"&&typeof globalThis[e]<"u")return globalThis[e];if(typeof globalThis<"u")return globalThis;if(typeof window<"u")return window;if(typeof self<"u")return self;if(typeof global<"u")return global},Ox=function(){var e,t=iN();if(!(!((e=t==null?void 0:t.location)===null||e===void 0)&&e.search))return{};var n=t.location.search.substring(1).split("&").filter(Boolean),r=n.reduce(function(i,o){var s=o.split("=",2),a=$x(s[0]),l=$x(s[1]);return l&&(i[a]=l),i},{});return r},$x=function(e){e===void 0&&(e="");try{return decodeURIComponent(e)}catch{return""}},jbe="utm_campaign",Wbe="utm_content",Gbe="utm_id",zbe="utm_medium",qbe="utm_source",Kbe="utm_term",Nx="dclid",Hx="fbclid",Dx="gbraid",Vx="gclid",Fx="ko_click_id",Bx="li_fat_id",Ux="msclkid",jx="rdt_cid",Wx="ttclid",Gx="twclid",zx="wbraid",oN={utm_campaign:void 0,utm_content:void 0,utm_id:void 0,utm_medium:void 0,utm_source:void 0,utm_term:void 0,referrer:void 0,referring_domain:void 0,dclid:void 0,gbraid:void 0,gclid:void 0,fbclid:void 0,ko_click_id:void 0,li_fat_id:void 0,msclkid:void 0,rdt_cid:void 0,ttclid:void 0,twclid:void 0,wbraid:void 0},Xbe=function(){function e(){}return e.prototype.parse=function(){return ue(this,void 0,void 0,function(){return oe(this,function(t){return[2,ne(ne(ne(ne({},oN),this.getUtmParam()),this.getReferrer()),this.getClickIds())]})})},e.prototype.getUtmParam=function(){var t=Ox(),n=t[jbe],r=t[Wbe],i=t[Gbe],o=t[zbe],s=t[qbe],a=t[Kbe];return{utm_campaign:n,utm_content:r,utm_id:i,utm_medium:o,utm_source:s,utm_term:a}},e.prototype.getReferrer=function(){var t,n,r={referrer:void 0,referring_domain:void 0};try{r.referrer=document.referrer||void 0,r.referring_domain=(n=(t=r.referrer)===null||t===void 0?void 0:t.split("/")[2])!==null&&n!==void 0?n:void 0}catch{}return r},e.prototype.getClickIds=function(){var t,n=Ox();return t={},t[Nx]=n[Nx],t[Hx]=n[Hx],t[Dx]=n[Dx],t[Vx]=n[Vx],t[Fx]=n[Fx],t[Bx]=n[Bx],t[Ux]=n[Ux],t[jx]=n[jx],t[Wx]=n[Wx],t[Gx]=n[Gx],t[zx]=n[zx],t},e}(),Zbe=function(e){return e===void 0&&(e="$default_instance"),aw.getInstance(e)},Eo;(function(e){e.SET="$set",e.SET_ONCE="$setOnce",e.ADD="$add",e.APPEND="$append",e.PREPEND="$prepend",e.REMOVE="$remove",e.PREINSERT="$preInsert",e.POSTINSERT="$postInsert",e.UNSET="$unset",e.CLEAR_ALL="$clearAll"})(Eo||(Eo={}));var qx;(function(e){e.REVENUE_PRODUCT_ID="$productId",e.REVENUE_QUANTITY="$quantity",e.REVENUE_PRICE="$price",e.REVENUE_TYPE="$revenueType",e.REVENUE_CURRENCY="$currency",e.REVENUE="$revenue"})(qx||(qx={}));var Kx;(function(e){e.IDENTIFY="$identify",e.GROUP_IDENTIFY="$groupidentify",e.REVENUE="revenue_amount"})(Kx||(Kx={}));var Ybe=function(e){var t={};for(var n in e){var r=e[n];r&&(t[n]=r)}return t},Jbe="[Amplitude] Page Viewed",Qbe=function(e){e===void 0&&(e={});var t,n=iN(),r=void 0,i=!1,o,s=e.trackOn,a=e.trackHistoryChanges,l=e.eventType,u=l===void 0?Jbe:l,c=function(g){var y=g;try{y=decodeURI(g)}catch(_){r==null||r.error("Malformed URI sequence: ",_)}return y},d=function(){return ue(void 0,void 0,void 0,function(){var g,y,_;return oe(this,function(b){switch(b.label){case 0:return g=c(typeof location<"u"&&location.href||""),_={event_type:u},y=[{}],[4,e_e()];case 1:return[2,(_.event_properties=ne.apply(void 0,[ne.apply(void 0,y.concat([b.sent()])),{"[Amplitude] Page Domain":typeof location<"u"&&location.hostname||"","[Amplitude] Page Location":g,"[Amplitude] Page Path":typeof location<"u"&&c(location.pathname)||"","[Amplitude] Page Title":typeof document<"u"&&document.title||"","[Amplitude] Page URL":g.split("?")[0]}]),_)]}})})},f=function(){return typeof s>"u"||typeof s=="function"&&s()},p=typeof location<"u"?location.href:null,h=function(){return ue(void 0,void 0,void 0,function(){var g,y,_,b;return oe(this,function(S){switch(S.label){case 0:return g=location.href,y=n_e(a,g,p||"")&&f(),p=g,y?(r==null||r.log("Tracking page view event"),t!=null?[3,1]:[3,3]):[3,4];
686case 1:return b=(_=t).track,[4,d()];case 2:b.apply(_,[S.sent()]),S.label=3;case 3:S.label=4;case 4:return[2]}})})},m=function(){h()},v={name:"@amplitude/plugin-page-view-tracking-browser",type:"enrichment",setup:function(g,y){return ue(void 0,void 0,void 0,function(){var _,b;return oe(this,function(S){switch(S.label){case 0:return t=y,o=g,r=g.loggerProvider,r.log("Installing @amplitude/plugin-page-view-tracking-browser"),i=!0,n&&(n.addEventListener("popstate",m),n.history.pushState=new Proxy(n.history.pushState,{apply:function(C,E,w){var T=Ne(w,3),A=T[0],L=T[1],x=T[2];C.apply(E,[A,L,x]),i&&h()}})),f()?(r.log("Tracking page view event"),b=(_=t).track,[4,d()]):[3,2];case 1:b.apply(_,[S.sent()]),S.label=2;case 2:return[2]}})})},execute:function(g){return ue(void 0,void 0,void 0,function(){var y;return oe(this,function(_){switch(_.label){case 0:return s==="attribution"&&t_e(g)?(r==null||r.log("Enriching campaign event to page view event with campaign parameters"),[4,d()]):[3,2];case 1:y=_.sent(),g.event_type=y.event_type,g.event_properties=ne(ne({},g.event_properties),y.event_properties),_.label=2;case 2:return o&&g.event_type===u&&(o.pageCounter=o.pageCounter?o.pageCounter+1:1,g.event_properties=ne(ne({},g.event_properties),{"[Amplitude] Page Counter":o.pageCounter})),[2,g]}})})},teardown:function(){return ue(void 0,void 0,void 0,function(){return oe(this,function(g){return n&&(n.removeEventListener("popstate",m),i=!1),[2]})})}};return v},e_e=function(){return ue(void 0,void 0,void 0,function(){var e;return oe(this,function(t){switch(t.label){case 0:return e=Ybe,[4,new Xbe().parse()];case 1:return[2,e.apply(void 0,[t.sent()])]}})})},t_e=function(e){if(e.event_type==="$identify"&&e.user_properties){var t=e.user_properties,n=t[Eo.SET]||{},r=t[Eo.UNSET]||{},i=Fe(Fe([],Ne(Object.keys(n)),!1),Ne(Object.keys(r)),!1);return Object.keys(oN).every(function(o){return i.includes(o)})}return!1},n_e=function(e,t,n){switch(e){case"pathOnly":{if(n=="")return!0;var r=new URL(t),i=new URL(n),o=r.origin+r.pathname,s=i.origin+i.pathname;return o!==s}default:return t!==n}},r_e=function(){var e,t=[],n=function(u,c,d){u.addEventListener(c,d),t.push({element:u,type:c,handler:d})},r=function(){t.forEach(function(u){var c=u.element,d=u.type,f=u.handler;c==null||c.removeEventListener(d,f)}),t=[]},i="@amplitude/plugin-form-interaction-tracking-browser",o="enrichment",s=function(u,c){return ue(void 0,void 0,void 0,function(){var d,f;return oe(this,function(p){return d=function(){if(!c){u.loggerProvider.warn("Form interaction tracking requires a later version of @amplitude/analytics-browser. Form interaction events are not tracked.");return}if(!(typeof document>"u")){var h=function(v){var g=!1;n(v,"change",function(){var y,_=Xx(v);g||c.track(Mx,(y={},y[Py]=fu(v.id),y[Oy]=fu(v.name),y[$y]=_,y)),g=!0}),n(v,"submit",function(){var y,_,b=Xx(v);g||c.track(Mx,(y={},y[Py]=fu(v.id),y[Oy]=fu(v.name),y[$y]=b,y)),c.track(Mbe,(_={},_[Py]=fu(v.id),_[Oy]=fu(v.name),_[$y]=b,_)),g=!1})},m=Array.from(document.getElementsByTagName("form"));m.forEach(h),typeof MutationObserver<"u"&&(e=new MutationObserver(function(v){v.forEach(function(g){g.addedNodes.forEach(function(y){y.nodeName==="FORM"&&h(y),"querySelectorAll"in y&&typeof y.querySelectorAll=="function"&&Array.from(y.querySelectorAll("form")).map(h)})})}),e.observe(document.body,{subtree:!0,childList:!0}))}},document.readyState==="complete"?d():(f=$t(),f?f.addEventListener("load",d):u.loggerProvider.debug("Form interaction tracking is not installed because global is undefined.")),[2]})})},a=function(u){return ue(void 0,void 0,void 0,function(){return oe(this,function(c){return[2,u]})})},l=function(){return ue(void 0,void 0,void 0,function(){return oe(this,function(u){return e==null||e.disconnect(),r(),[2]})})};return{name:i,type:o,setup:s,execute:a,teardown:l}},fu=function(e){if(typeof e=="string")return e},Xx=function(e){var t=e.getAttribute("action");try{t=new URL(encodeURI(t??""),window.location.href).href}catch{}return t},i_e=function(){var e,t=[],n=function(u,c,d){u.addEventListener(c,d),t.push({element:u,type:c,handler:d})},r=function(){t.forEach(function(u){var c=u.element,d=u.type,f=u.handler;c==null||c.removeEventListener(d,f)}),t=[]},i="@amplitude/plugin-file-download-tracking-browser",o="enrichment",s=function(u,c){return ue(void 0,void 0,void 0,function(){var d,f;return oe(this,function(p){return d=function(){if(!c){u.loggerProvider.warn("File download tracking requires a later version of @amplitude/analytics-browser. File download events are not tracked.");return}if(!(typeof document>"u")){var h=function(g){var y;try{y=new URL(g.href,window.location.href)}catch{return}var _=m.exec(y.href),b=_==null?void 0:_[1];b&&n(g,"click",function(){var S;b&&c.track(Rbe,(S={},S[Pbe]=b,S[Obe]=y.pathname,S[$be]=g.id,S[Nbe]=g.text,S[Hbe]=g.href,S))})},m=/\.(pdf|xlsx?|docx?|txt|rtf|csv|exe|key|pp(s|t|tx)|7z|pkg|rar|gz|zip|avi|mov|mp4|mpe?g|wmv|midi?|mp3|wav|wma)(\?.+)?$/,v=Array.from(document.getElementsByTagName("a"));v.forEach(h),typeof MutationObserver<"u"&&(e=new MutationObserver(function(g){g.forEach(function(y){y.addedNodes.forEac
686h(function(_){_.nodeName==="A"&&h(_),"querySelectorAll"in _&&typeof _.querySelectorAll=="function"&&Array.from(_.querySelectorAll("a")).map(h)})})}),e.observe(document.body,{subtree:!0,childList:!0}))}},document.readyState==="complete"?d():(f=$t(),f?f.addEventListener("load",d):u.loggerProvider.debug("File download tracking is not installed because global is undefined.")),[2]})})},a=function(u){return ue(void 0,void 0,void 0,function(){return oe(this,function(c){return[2,u]})})},l=function(){return ue(void 0,void 0,void 0,function(){return oe(this,function(u){return e==null||e.disconnect(),r(),[2]})})};return{name:i,type:o,setup:s,execute:a,teardown:l}},Zx=!1,o_e=function(e){if(!(Zx||e.defaultTracking!==void 0)){var t=`\`options.defaultTracking\` is set to undefined. This implicitly configures your Amplitude instance to track Page Views, Sessions, File Downloads, and Form Interactions. You can suppress this warning by explicitly setting a value to \`options.defaultTracking\`. The value must either be a boolean, to enable and disable all default events, or an object, for advanced configuration. For example: 687 688amplitude.init(<YOUR_API_KEY>, { 689 defaultTracking: true, 690}); 691 692Visit https://www.docs.developers.amplitude.com/data/sdks/browser-2/#tracking-default-events for more details.`;e.loggerProvider.warn(t),Zx=!0}},s_e=function(){var e="@amplitude/plugin-network-checker-browser",t="before",n=$t(),r=[],i=function(l,u){n!=null&&n.addEventListener&&(n==null||n.addEventListener(l,u),r.push({type:l,handler:u}))},o=function(){r.forEach(function(l){var u=l.type,c=l.handler;n==null||n.removeEventListener(u,c)}),r=[]},s=function(l,u){return ue(void 0,void 0,void 0,function(){return oe(this,function(c){return typeof navigator>"u"?(l.loggerProvider.debug("Network connectivity checker plugin is disabled because navigator is not available."),l.offline=!1,[2]):(l.offline=!navigator.onLine,i("online",function(){l.loggerProvider.debug("Network connectivity changed to online."),l.offline=!1,setTimeout(function(){u.flush()},l.flushIntervalMillis)}),i("offline",function(){l.loggerProvider.debug("Network connectivity changed to offline."),l.offline=!0}),[2])})})},a=function(){return ue(void 0,void 0,void 0,function(){return oe(this,function(l){return o(),[2]})})};return{name:e,type:t,setup:s,teardown:a}};function sN(e){var t,n;if(!(typeof e!="object"||e===null)&&!Array.isArray(e)){var r=Object.keys(e);try{for(var i=Ge(r),o=i.next();!o.done;o=i.next()){var s=o.value;try{var a=e[s];typeof(a==null?void 0:a.enabled)=="boolean"&&(a.enabled?(delete a.enabled,Object.keys(a).length===0&&(e[s]=!0)):e[s]=!1),sN(a)}catch{}}}
692catch(l){t={error:l}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}}}function a_e(e,t){var n,r,i,o;if(e){sN(e);try{t.loggerProvider.debug("Update browser config with remote configuration:",JSON.stringify(e));var s=e;if(s&&"autocapture"in s){if(typeof s.autocapture=="boolean"&&(t.autocapture=s.autocapture),typeof s.autocapture=="object"&&s.autocapture!==null){var a=ne({},s.autocapture);if(t.autocapture===void 0&&(t.autocapture=s.autocapture),typeof s.autocapture.elementInteractions=="object"&&s.autocapture.elementInteractions!==null&&(!((i=s.autocapture.elementInteractions.pageUrlAllowlistRegex)===null||i===void 0)&&i.length)){a.elementInteractions=ne({},s.autocapture.elementInteractions);var l=a.elementInteractions,u=(o=l.pageUrlAllowlist)!==null&&o!==void 0?o:[],c=[];try{for(var d=Ge(s.autocapture.elementInteractions.pageUrlAllowlistRegex),f=d.next();!f.done;f=d.next()){var p=f.value;try{c.push(new RegExp(p))}catch(m){t.loggerProvider.warn("Invalid regex pattern: ".concat(p),m)}}}catch(m){n={error:m}}finally{try{f&&!f.done&&(r=d.return)&&r.call(d)}finally{if(n)throw n.error}}var h=u.concat(c);l.pageUrlAllowlist=h,delete l.pageUrlAllowlistRegex}typeof t.autocapture=="boolean"&&(t.autocapture=ne({attribution:t.autocapture,fileDownloads:t.autocapture,formInteractions:t.autocapture,pageViews:t.autocapture,sessions:t.autocapture,elementInteractions:t.autocapture,webVitals:t.autocapture,frustrationInteractions:t.autocapture},a)),typeof t.autocapture=="object"&&(t.autocapture=ne(ne({},t.autocapture),a))}t.defaultTracking=t.autocapture}t.loggerProvider.debug("Browser config after remote config update:",JSON.stringify(t))}catch(m){t.loggerProvider.error("Failed to apply remote configuration because of error: ",m)}}}var dg;(function(e){e.US="US",e.EU="EU",e.STAGING="STAGING"})(dg||(dg={}));var ur;(function(e){e.Unknown="unknown",e.Skipped="skipped",e.Success="success",e.RateLimit="rate_limit",e.PayloadTooLarge="payload_too_large",e.Invalid="invalid",e.Failed="failed",e.Timeout="Timeout",e.SystemError="SystemError"})(ur||(ur={}));var l_e=function(){function e(){}return e.prototype.send=function(t,n){return Promise.resolve(null)},e.prototype.buildResponse=function(t){var n,r,i,o,s,a,l,u,c,d,f,p,h,m,v,g,y,_,b,S,C,E;if(typeof t!="object")return null;var w=t.code||0,T=this.buildStatus(w);switch(T){case ur.Success:return{status:T,statusCode:w,body:{eventsIngested:(n=t.events_ingested)!==null&&n!==void 0?n:0,payloadSizeBytes:(r=t.payload_size_bytes)!==null&&r!==void 0?r:0,serverUploadTime:(i=t.server_upload_time)!==null&&i!==void 0?i:0}};case ur.Invalid:return{status:T,statusCode:w,body:{error:(o=t.error)!==null&&o!==void 0?o:"",missingField:(s=t.missing_field)!==null&&s!==void 0?s:"",eventsWithInvalidFields:(a=t.events_with_invalid_fields)!==null&&a!==void 0?a:{},eventsWithMissingFields:(l=t.events_with_missing_fields)!==null&&l!==void 0?l:{},eventsWithInvalidIdLengths:(u=t.events_with_invalid_id_lengths)!==null&&u!==void 0?u:{},epsThreshold:(c=t.eps_threshold)!==null&&c!==void 0?c:0,exceededDailyQuotaDevices:(d=t.exceeded_daily_quota_devices)!==null&&d!==void 0?d:{},silencedDevices:(f=t.silenced_devices)!==null&&f!==void 0?f:[],silencedEvents:(p=t.silenced_events)!==null&&p!==void 0?p:[],throttledDevices:(h=t.throttled_devices)!==null&&h!==void 0?h:{},throttledEvents:(m=t.throttled_events)!==null&&m!==void 0?m:[]}};case ur.PayloadTooLarge:return{status:T,statusCode:w,body:{error:(v=t.error)!==null&&v!==void 0?v:""}};case ur.RateLimit:return{status:T,statusCode:w,body:{error:(g=t.error)!==null&&g!==void 0?g:"",epsThreshold:(y=t.eps_threshold)!==null&&y!==void 0?y:0,throttledDevices:(_=t.throttled_devices)!==null&&_!==void 0?_:{},throttledUsers:(b=t.throttled_users)!==null&&b!==void 0?b:{},exceededDailyQuotaDevices:(S=t.exceeded_daily_quota_devices)!==null&&S!==void 0?S:{},exceededDailyQuotaUsers:(C=t.exceeded_daily_quota_users)!==null&&C!==void 0?C:{},throttledEvents:(E=t.throttled_events)!==null&&E!==void 0?E:[]}};case ur.Timeout:default:return{status:T,statusCode:w}}},e.prototype.buildStatus=function(t){return t>=200&&t<300?ur.Success:t===429?ur.RateLimit:t===413?ur.PayloadTooLarge:t===408?ur.Timeout:t>=400&&t<500?ur.Invalid:t>=500?ur.Failed:ur.Unknown},e}(),u_e="Network error occurred, remote config fetch failed",c_e="Remote config successfully fetched",d_e="Remote config fetch rejected due to exceeded retry count",Yx="Remote config fetch rejected due to timeout after 5 seconds",Jx="Unexpected error occurred",f_e="https://sr-client-cfg.amplitude.com/config",p_e="https://sr-client-cfg.stag2.amplitude.com/config",h_e="https://sr-client-cfg.eu.amplitude.com/config",m_e=function(){function e(t){var n=t.localConfig,r=t.configKeys,i=this;this.retryTimeout=1e3,this.attempts=0,this.sessionTargetingMatch=!1,this.metrics={},this.getRemoteNamespaceConfig=function(o,s){return ue(i,void 0,void 0,function(){var a,l,u;return oe(this,function(c){switch(c.label){case 0:return a=Date.now(),[4,this.fetchWithTimeout(s)];case 1:return l=c.sent(),l&&(u=l.configs&&l.configs[o],u)?(this.metrics.fetchTimeAPISuccess=Date.now()-a,[2,u]):(this.metrics.fetchTimeAPIFail=Date.now()-a,[2,void 0])}})})},this.getRemoteConfig=function(o,s,a){return ue(i,void 0,void 0,function(){var l;return oe(this,function(u){switch(u.label){case 0:return[4,this.getRemoteNamespaceConfig(o,a)];case 1:return l=u.sent(),[2,l==null?void 0:l[s]]}})})},this.fetchWithTimeout=function(o){return ue(i,void 0,void 0,function(){var s,a,l;return oe(this,function(u){switch(u.label){case 0:return s=new AbortController,a=setTimeout(function(){return s.abort()},5e3),[4,this.fetchRemoteConfig(s.signal,o)];case 1:return l=u.sent(),clearTimeout(a),[2,l]}})})},this.fetchRemoteConfig=function(o,s){return ue(i,void 0,void 0,function(){var a,l,u,c,d,f,p,h,m,v,g,y,_;return oe(this,function(b){switch(b.label){case 0:if(s===this.lastFetchedSessionId&&this.attempts>=this.localConfig.flushMaxRetries)return[2,this.completeRequest({err:d_e})];if(o.aborted)return[2,this.completeRequest({err:Yx}
692)];s!==this.lastFetchedSessionId&&(this.lastFetchedSessionId=s,this.attempts=0),b.label=1;case 1:b.trys.push([1,3,,4]),a=new URLSearchParams({api_key:this.localConfig.apiKey});try{for(l=Ge(this.configKeys),u=l.next();!u.done;u=l.next())c=u.value,a.append("config_keys",c)}catch(S){g={error:S}}finally{try{u&&!u.done&&(y=l.return)&&y.call(l)}finally{if(g)throw g.error}}return s&&a.set("session_id",String(s)),d={headers:{Accept:"*/*"},method:"GET"},f="".concat(this.getServerUrl(),"?").concat(a.toString()),this.attempts+=1,[4,fetch(f,ne(ne({},d),{signal:o}))];case 2:if(p=b.sent(),p===null)return[2,this.completeRequest({err:Jx})];switch(h=new l_e().buildStatus(p.status),h){case ur.Success:return this.attempts=0,[2,this.parseAndStoreConfig(p)];case ur.Failed:return[2,this.retryFetch(o,s)];default:return[2,this.completeRequest({err:u_e})]}case 3:return m=b.sent(),v=m,o.aborted?[2,this.completeRequest({err:Yx})]:[2,this.completeRequest({err:(_=v.message)!==null&&_!==void 0?_:Jx})];case 4:return[2]}})})},this.retryFetch=function(o,s){return ue(i,void 0,void 0,function(){var a=this;return oe(this,function(l){switch(l.label){case 0:return[4,new Promise(function(u){return setTimeout(u,a.attempts*a.retryTimeout)})];case 1:return l.sent(),[2,this.fetchRemoteConfig(o,s)]}})})},this.parseAndStoreConfig=function(o){return ue(i,void 0,void 0,function(){var s;return oe(this,function(a){switch(a.label){case 0:return[4,o.json()];case 1:return s=a.sent(),this.completeRequest({success:c_e}),[2,s]}})})},this.localConfig=n,this.configKeys=r}return e.prototype.getServerUrl=function(){return this.localConfig.configServerUrl?this.localConfig.configServerUrl:this.localConfig.serverZone===dg.STAGING?p_e:this.localConfig.serverZone===dg.EU?h_e:f_e},e.prototype.completeRequest=function(t){var n=t.err,r=t.success;if(n)throw new Error(n);r&&this.localConfig.loggerProvider.log(r)},e}(),v_e=function(e){var t=e.localConfig,n=e.configKeys;return ue(void 0,void 0,void 0,function(){return oe(this,function(r){return[2,new m_e({localConfig:t,configKeys:n})]})})},g_e=v_e,y_e="@amplitude/plugin-autocapture-browser",b_e="@amplitude/plugin-frustration-browser",x2="[Amplitude] Element Clicked",__e="[Amplitude] Dead Click",Qx="[Amplitude] Rage Click",S_e="[Amplitude] Element Changed",E_e="[Amplitude] Element ID",C_e="[Amplitude] Element Class",eL="[Amplitude] Element Tag",tL="[Amplitude] Element Text",w_e="[Amplitude] Element Hierarchy",T_e="[Amplitude] Element Href",A_e="[Amplitude] Element Position Left",I_e="[Amplitude] Element Position Top",x_e="[Amplitude] Element Aria Label",L_e="[Amplitude] Element Attributes",k_e="[Amplitude] Element Parent Label",nL="[Amplitude] Page URL",M_e="[Amplitude] Page Title",R_e="[Amplitude] Viewport Height",P_e="[Amplitude] Viewport Width",Vm="https://app.amplitude.com",O_e="https://app.eu.amplitude.com",$_e="https://apps.stag2.amplitude.com",N_e={US:Vm,EU:O_e,STAGING:$_e},H_e="https://cdn.amplitude.com/libs/visual-tagging-selector-1.0.0-alpha.js.gz",D_e="amp-visual-tagging-selector-highlight",aN="data-amp-mask-attributes",Fm="data-amp-mask",ja="*****",V_e=25;function rn(e){return typeof e=="function"}function cw(e){var t=function(r){Error.call(r),r.stack=new Error().stack},n=e(t);return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Ny=cw(function(e){return function(n){e(this),this.message=n?n.length+` errors occurred during unsubscription: 693`+n.map(function(r,i){return i+1+") "+r.toString()}).join(` 694 `):"",this.name="UnsubscriptionError",this.errors=n}});function fg(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var zp=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,n,r,i,o;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=Ge(s),l=a.next();!l.done;l=a.next()){var u=l.value;u.remove(this)}}catch(m){t={error:m}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var c=this.initialTeardown;if(rn(c))try{c()}catch(m){o=m instanceof Ny?m.errors:[m]}var d=this._finalizers;if(d){this._finalizers=null;try{for(var f=Ge(d),p=f.next();!p.done;p=f.next()){var h=p.value;try{rL(h)}catch(m){o=o??[],m instanceof Ny?o=Fe(Fe([],Ne(o)),Ne(m.errors)):o.push(m)}}}catch(m){r={error:m}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}}if(o)throw new Ny(o)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)rL(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&fg(n,t)},e.prototype.remove=function(t){var n=this._finalizers;n&&fg(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),lN=zp.EMPTY;function uN(e){return e instanceof zp||e&&"closed"in e&&rn(e.remove)&&rn(e.add)&&rn(e.unsubscribe)}function rL(e){rn(e)?e():e.unsubscribe()}var cN={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNext
vendor: 12,768 bytes, line 694
694Context:!1},L2={setTimeout:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=L2.delegate;return i!=null&&i.setTimeout?i.setTimeout.apply(i,Fe([e,t],Ne(n))):setTimeout.apply(void 0,Fe([e,t],Ne(n)))},clearTimeout:function(e){var t=L2.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function dN(e){L2.setTimeout(function(){throw e})}function pg(){}function Bm(e){e()}var dw=function(e){Vt(t,e);function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,uN(n)&&n.add(r)):r.destination=j_e,r}return t.create=function(n,r,i){return new rp(n,r,i)},t.prototype.next=function(n){this.isStopped||this._next(n)},t.prototype.error=function(n){this.isStopped||(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(zp),F_e=Function.prototype.bind;function Hy(e,t){return F_e.call(e,t)}var B_e=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(r){Gh(r)}},e.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(r){Gh(r)}else Gh(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(n){Gh(n)}},e}(),rp=function(e){Vt(t,e);function t(n,r,i){var o=e.call(this)||this,s;if(rn(n)||!n)s={next:n??void 0,error:r??void 0,complete:i??void 0};else{var a;o&&cN.useDeprecatedNextContext?(a=Object.create(n),a.unsubscribe=function(){return o.unsubscribe()},s={next:n.next&&Hy(n.next,a),error:n.error&&Hy(n.error,a),complete:n.complete&&Hy(n.complete,a)}):s=n}return o.destination=new B_e(s),o}return t}(dw);function Gh(e){dN(e)}function U_e(e){throw e}var j_e={closed:!0,next:pg,error:U_e,complete:pg},fw=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function fN(e){return e}function W_e(e){return e.length===0?fN:e.length===1?e[0]:function(n){return e.reduce(function(r,i){return i(r)},n)}}var Kn=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var i=this,o=z_e(t)?t:new rp(t,n,r);return Bm(function(){var s=i,a=s.operator,l=s.source;o.add(a?a.call(o,l):l?i._subscribe(o):i._trySubscribe(o))}),o},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return n=iL(n),new n(function(i,o){var s=new rp({next:function(a){try{t(a)}catch(l){o(l),s.unsubscribe()}},error:o,complete:i});r.subscribe(s)})},e.prototype._subscribe=function(t){var n;return(n=this.source)===null||n===void 0?void 0:n.subscribe(t)},e.prototype[fw]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return W_e(t)(this)},e.prototype.toPromise=function(t){var n=this;return t=iL(t),new t(function(r,i){var o;n.subscribe(function(s){return o=s},function(s){return i(s)},function(){return r(o)})})},e.create=function(t){return new e(t)},e}();function iL(e){var t;return(t=e??cN.Promise)!==null&&t!==void 0?t:Promise}function G_e(e){return e&&rn(e.next)&&rn(e.error)&&rn(e.complete)}function z_e(e){return e&&e instanceof dw||G_e(e)&&uN(e)}function q_e(e){return rn(e==null?void 0:e.lift)}function Xr(e){return function(t){if(q_e(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function or(e,t,n,r,i){return new K_e(e,t,n,r,i)}var K_e=function(e){Vt(t,e);function t(n,r,i,o,s,a){var l=e.call(this,n)||this;return l.onFinalize=s,l.shouldUnsubscribe=a,l._next=r?function(u){try{r(u)}catch(c){n.error(c)}}:e.prototype._next,l._error=o?function(u){try{o(u)}catch(c){n.error(c)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=i?function(){try{i()}catch(u){n.error(u)}finally{this.unsubscribe()}}:e.prototype._complete,l}return t.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((n=this.onFinalize)===null||n===void 0||n.call(this))}},t}(dw),X_e=cw(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),pN=function(e){Vt(t,e);function t(){var n=e.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return t.prototype.lift=function(n){var r=new oL(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new X_e},t.prototype.next=function(n){var r=this;Bm(function(){var i,o;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var s=Ge(r.currentObservers),a=s.next();!a.done;a=s.next()){var l=a.value;l.next(n)}}catch(u){i={error:u}}finally{try{a&&!a.done&&(o=s.return)&&o.call(s)}finally{if(i)throw i.error}}}})},t.prototype.error=function(n){var r=this;Bm(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var i=r.observers;i.length;)i.shift().error(n)}})},t.prototype.complete=function(){var n=this;Bm(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,i=this,o=i.hasError,s=i.isStopped,a=i.observers;return o||s?lN:(this.currentObservers=null,a.push(n),new zp(function(){r.currentObservers=null,fg(a,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,i=r.hasError,o=r.thrownError,s=r.isStopped;i?n.error(o):s&&n.complete()},t.prototype.asObservable=function(){var n=new Kn;return n.source=this,n},t.create=function(n,r){return new oL(n,r)},t}(Kn),oL=function(e){Vt(t,e);function t(n,r){var i=e.call(this)||this;return i.destination=n,i.source=r,i}return t.prototype.next=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.next)===null||i===void 0||i.call(r,n)},t.prototype.error=function(n){var r,i;(i=(r=this.destination)===null||r===void 0?void 0:r.error)===null||i===void 0||i.call(r,n)},t.prototype.complete=function(){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.complete)===null||r===void 0||r.call(n)},t.prototype._subscribe=function(n){var r,i;return(i=(r=this.source)===null||r===void 0?void 0:r.subscribe(n))!==null&&i!==void 0?i:lN},t}(pN),hN={now:function(){return(hN.delegate||Date).now()},delegate:void 0},Z_e=function(e){Vt(t,e);function t(n,r){return e.call(this)||this}return t.prototype.schedule=function(n,r){return this},t}(zp),hg={setInterval:function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];var i=hg.delegate;return i!=null&&i.setInterval?i.setInterval.apply(i,Fe([e,t],Ne(n))):setInterval.apply(void 0,Fe([e,t],Ne(n)))},clearInterval:function(e){var t=hg.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},Y_e=function(e){Vt(t,e);function t(n,r){var i=e.call(this,n,r)||this;return i.scheduler=n,i.work=r,i.pending=!1,i}return t.prototype.schedule=function(n,r){var i;if(r===void 0&&(r=0),this.closed)return this;this.state=n;var o=this.id,s=this.scheduler;return o!=null&&(this.id=this.recycleAsyncId(s,o,r)),this.pending=!0,this.delay=r,this.id=(i=this.id)!==null&&i!==void 0?i:this.requestAsyncId(s,this.id,r),this},t.prototype.requestAsyncId=function(n,r,i){return i===void 0&&(i=0),hg.setInterval(n.flush.bind(n,this),i)},t.prototype.recycleAsyncId=function(n,r,i){if(i===void 0&&(i=0),i!=null&&this.delay===i&&this.pending===!1)return r;r!=null&&hg.clearInterval(r)},t.prototype.execute=function(n,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var i=this._execute(n,r);if(i)return i;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(n,r){var i=!1,o;try{this.work(n)}catch(s){i=!0,o=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),o},t.prototype.unsubscribe=function(){if(!this.closed){var n=this,r=n.id,i=n.scheduler,o=i.actions;this.work=this.state=this.scheduler=null,this.pending=!1,fg(o,this),r!=null&&(this.id=this.recycleAsyncId(i,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(Z_e),sL=function(){function e(t,n){n===void 0&&(n=e.now),this.schedulerActionCtor=t,this.now=n}return e.prototype.schedule=function(t,n,r){return n===void 0&&(n=0),new this.schedulerActionCtor(this,t).schedule(r,n)},e.now=hN.now,e}(),J_e=function(e){Vt(t,e);function t(n,r){r===void 0&&(r=sL.now);var i=e.call(this,n,r)||this;return i.actions=[],i._active=!1,i}return t.prototype.flush=function(n){var r=this.actions;if(this._active){r.push(n);return}var i;this._active=!0;do if(i=n.execute(n.state,n.delay))break;while(n=r.shift());if(this._active=!1,i){for(;n=r.shift();)n.unsubscribe();throw i}},t}(sL),qp=new J_e(Y_e),Q_e=qp,pw=new Kn(function(e){return e.complete()});function mN(e){return e&&rn(e.schedule)}function vN(e){return e[e.length-1]}function gN(e){return mN(vN(e))?e.pop():void 0}function e2e(e,t){return typeof vN(e)=="number"?e.pop():t}var hw=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function yN(e){return rn(e==null?void 0:e.then)}function bN(e){return rn(e[fw])}function _N(e){return Symbol.asyncIterator&&rn(e==null?void 0:e[Symbol.asyncIterator])}function SN(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function t2e(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var EN=t2e();function CN(e){return rn(e==null?void 0:e[EN])}function wN(e){return eG(this,arguments,function(){var n,r,i,o;return oe(this,function(s){switch(s.label){case 0:n=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,qu(n.read())];case 3:return r=s.sent(),i=r.value,o=r.done,o?[4,qu(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,qu(i)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function TN(e){return rn(e==null?void 0:e.getReader)}function gr(e){if(e instanceof Kn)return e;if(e!=null){if(bN(e))return n2e(e);if(hw(e))return r2e(e);if(yN(e))return i2e(e);if(_N(e))return AN(e);if(CN(e))return o2e(e);if(TN(e))return s2e(e)}throw SN(e)}function n2e(e){return new Kn(function(t){var n=e[fw]();if(rn(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function r2e(e){return new Kn(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function i2e(e){return new Kn(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,dN)})}function o2e(e){return new Kn(function(t){var n,r;try{for(var i=Ge(e),o=i.next();!o.done;o=i.next()){var s=o.value;if(t.next(s),t.closed)return}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}t.complete()})}function AN(e){return new Kn(function(t){a2e(e,t).catch(function(n){return t.error(n)})})}function s2e(e){return AN(wN(e))}function a2e(e,t){var n,r,i,o;return ue(this,void 0,void 0,function(){var s,a;return oe(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),n=tG(e),l.label=1;case 1:return[4,n.next()];case 2:if(r=l.sent(),!!r.done)return[3,4];if(s=r.value,t.next(s),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),i={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),r&&!r.done&&(o=n.return)?[4,o.call(n)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];
694case 10:return[7];case 11:return t.complete(),[2]}})})}function ps(e,t,n,r,i){r===void 0&&(r=0),i===void 0&&(i=!1);var o=t.schedule(function(){n(),i?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(o),!i)return o}function IN(e,t){return t===void 0&&(t=0),Xr(function(n,r){n.subscribe(or(r,function(i){return ps(r,e,function(){return r.next(i)},t)},function(){return ps(r,e,function(){return r.complete()},t)},function(i){return ps(r,e,function(){return r.error(i)},t)}))})}function xN(e,t){return t===void 0&&(t=0),Xr(function(n,r){r.add(e.schedule(function(){return n.subscribe(r)},t))})}function l2e(e,t){return gr(e).pipe(xN(t),IN(t))}function u2e(e,t){return gr(e).pipe(xN(t),IN(t))}function c2e(e,t){return new Kn(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function d2e(e,t){return new Kn(function(n){var r;return ps(n,t,function(){r=e[EN](),ps(n,t,function(){var i,o,s;try{i=r.next(),o=i.value,s=i.done}catch(a){n.error(a);return}s?n.complete():n.next(o)},0,!0)}),function(){return rn(r==null?void 0:r.return)&&r.return()}})}function LN(e,t){if(!e)throw new Error("Iterable cannot be null");return new Kn(function(n){ps(n,t,function(){var r=e[Symbol.asyncIterator]();ps(n,t,function(){r.next().then(function(i){i.done?n.complete():n.next(i.value)})},0,!0)})})}function f2e(e,t){return LN(wN(e),t)}function p2e(e,t){if(e!=null){if(bN(e))return l2e(e,t);if(hw(e))return c2e(e,t);if(yN(e))return u2e(e,t);if(_N(e))return LN(e,t);if(CN(e))return d2e(e,t);if(TN(e))return f2e(e,t)}throw SN(e)}function kN(e,t){return t?p2e(e,t):gr(e)}function MN(e){return e instanceof Date&&!isNaN(e)}var h2e=cw(function(e){return function(n){n===void 0&&(n=null),e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n}});function m2e(e,t){var n=MN(e)?{first:e}:typeof e=="number"?{each:e}:e,r=n.first,i=n.each,o=n.with,s=o===void 0?v2e:o,a=n.scheduler,l=a===void 0?t??qp:a,u=n.meta,c=u===void 0?null:u;if(r==null&&i==null)throw new TypeError("No timeout provided.");return Xr(function(d,f){var p,h,m=null,v=0,g=function(y){h=ps(f,l,function(){try{p.unsubscribe(),gr(s({meta:c,lastValue:m,seen:v})).subscribe(f)}catch(_){f.error(_)}},y)};p=d.subscribe(or(f,function(y){h==null||h.unsubscribe(),v++,f.next(m=y),i>0&&g(i)},void 0,void 0,function(){h!=null&&h.closed||h==null||h.unsubscribe(),m=null})),!v&&g(r!=null?typeof r=="number"?r:+r-l.now():i)})}function v2e(e){throw new h2e(e)}function rr(e,t){return Xr(function(n,r){var i=0;n.subscribe(or(r,function(o){r.next(e.call(t,o,i++))}))})}var g2e=Array.isArray;function y2e(e,t){return g2e(t)?e.apply(void 0,Fe([],Ne(t))):e(t)}function b2e(e){return rr(function(t){return y2e(e,t)})}function _2e(e,t,n,r,i,o,s,a){var l=[],u=0,c=0,d=!1,f=function(){d&&!l.length&&!u&&t.complete()},p=function(m){return u<r?h(m):l.push(m)},h=function(m){o&&t.next(m),u++;var v=!1;gr(n(m,c++)).subscribe(or(t,function(g){i==null||i(g),o?p(g):t.next(g)},function(){v=!0},void 0,function(){if(v)try{u--;for(var g=function(){var y=l.shift();s?ps(t,s,function(){return h(y)}):h(y)};l.length&&u<r;)g();f()}catch(y){t.error(y)}}))};return e.subscribe(or(t,p,function(){d=!0,f()})),function(){a==null||a()}}function Kp(e,t,n){return n===void 0&&(n=1/0),rn(t)?Kp(function(r,i){return rr(function(o,s){return t(r,o,i,s)})(gr(e(r,i)))},n):(typeof t=="number"&&(n=t),Xr(function(r,i){return _2e(r,i,e,n)}))}function RN(e){return e===void 0&&(e=1/0),Kp(fN,e)}function S2e(){return RN(1)}function E2e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return S2e()(kN(e,gN(e)))}var C2e=["addListener","removeListener"],w2e=["addEventListener","removeEventListener"],T2e=["on","off"];function kc(e,t,n,r){if(rn(n)&&(r=n,n=void 0),r)return kc(e,t,n).pipe(b2e(r));var i=Ne(x2e(e)?w2e.map(function(a){return function(l){return e[a](t,l,n)}}):A2e(e)?C2e.map(aL(e,t)):I2e(e)?T2e.map(aL(e,t)):[],2),o=i[0],s=i[1];if(!o&&hw(e))return Kp(function(a){return kc(a,t,n)})(gr(e));if(!o)throw new TypeError("Invalid event target");return new Kn(function(a){var l=function(){for(var u=[],c=0;c<arguments.length;c++)u[c]=arguments[c];return a.next(1<u.length?u:u[0])};return o(l),function(){return s(l)}})}function aL(e,t){return function(n){return function(r){return e[n](t,r)}}}function A2e(e){return rn(e.addListener)&&rn(e.removeListener)}function I2e(e){return rn(e.on)&&rn(e.off)}function x2e(e){return rn(e.addEventListener)&&rn(e.removeEventListener)}function PN(e,t,n){e===void 0&&(e=0),n===void 0&&(n=Q_e);var r=-1;
694return t!=null&&(mN(t)?n=t:r=t),new Kn(function(i){var o=MN(e)?+e-n.now():e;o<0&&(o=0);var s=0;return n.schedule(function(){i.closed||(i.next(s++),0<=r?this.schedule(void 0,r):i.complete())},o)})}function mw(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=gN(e),r=e2e(e,1/0),i=e;return i.length?i.length===1?gr(i[0]):RN(r)(kN(i,n)):pw}var L2e=Array.isArray;function k2e(e){return e.length===1&&L2e(e[0])?e[0]:e}function kr(e,t){return Xr(function(n,r){var i=0;n.subscribe(or(r,function(o){return e.call(t,o,i++)&&r.next(o)}))})}function M2e(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e=k2e(e),e.length===1?gr(e[0]):new Kn(R2e(e))}function R2e(e){return function(t){for(var n=[],r=function(o){n.push(gr(e[o]).subscribe(or(t,function(s){if(n){for(var a=0;a<n.length;a++)a!==o&&n[a].unsubscribe();n=null}t.next(s)})))},i=0;n&&!t.closed&&i<e.length;i++)r(i)}}function P2e(e){return Xr(function(t,n){var r=[];return t.subscribe(or(n,function(i){return r.push(i)},function(){n.next(r),n.complete()})),gr(e).subscribe(or(n,function(){var i=r;r=[],n.next(i)},pg)),function(){r=null}})}function O2e(e,t){return t===void 0&&(t=qp),Xr(function(n,r){var i=null,o=null,s=null,a=function(){if(i){i.unsubscribe(),i=null;var u=o;o=null,r.next(u)}};function l(){var u=s+e,c=t.now();if(c<u){i=this.schedule(void 0,u-c),r.add(i);return}a()}n.subscribe(or(r,function(u){o=u,s=t.now(),i||(i=t.schedule(l,e),r.add(i))},function(){a(),r.complete()},void 0,function(){o=i=null}))})}function mg(e){return e<=0?function(){return pw}:Xr(function(t,n){var r=0;t.subscribe(or(n,function(i){++r<=e&&(n.next(i),e<=r&&n.complete())}))})}function $2e(){return Xr(function(e,t){e.subscribe(or(t,pg))})}function N2e(e){return rr(function(){return e})}function ON(e,t){return t?function(n){return E2e(t.pipe(mg(1),$2e()),n.pipe(ON(e)))}:Kp(function(n,r){return gr(e(n,r)).pipe(mg(1),N2e(n))})}function H2e(e,t){t===void 0&&(t=qp);var n=PN(e,t);return ON(function(){return n})}function D2e(){return Xr(function(e,t){var n,r=!1;e.subscribe(or(t,function(i){var o=n;n=i,r&&t.next([o,i]),r=!0}))})}function el(e){e===void 0&&(e={});var t=e.connector,n=t===void 0?function(){return new pN}:t,r=e.resetOnError,i=r===void 0?!0:r,o=e.resetOnComplete,s=o===void 0?!0:o,a=e.resetOnRefCountZero,l=a===void 0?!0:a;return function(u){var c,d,f,p=0,h=!1,m=!1,v=function(){d==null||d.unsubscribe(),d=void 0},g=function(){v(),c=f=void 0,h=m=!1},y=function(){var _=c;g(),_==null||_.unsubscribe()};return Xr(function(_,b){p++,!m&&!h&&v();var S=f=f??n();b.add(function(){p--,p===0&&!m&&!h&&(d=Dy(y,l))}),S.subscribe(b),!c&&p>0&&(c=new rp({next:function(C){return S.next(C)},error:function(C){m=!0,v(),d=Dy(g,i,C),S.error(C)},complete:function(){h=!0,v(),d=Dy(g,s),S.complete()}}),gr(_).subscribe(c))})(u)}}function Dy(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];if(t===!0){e();return}if(t!==!1){var i=new rp({next:function(){i.unsubscribe(),e()}});return gr(t.apply(void 0,Fe([],Ne(n)))).subscribe(i)}}function V2e(e,t){return Xr(function(n,r){var i=null,o=0,s=!1,a=function(){return s&&!i&&r.complete()};n.subscribe(or(r,function(l){i==null||i.unsubscribe();var u=0,c=o++;gr(e(l,c)).subscribe(i=or(r,function(d){return r.next(t?t(l,d,c,u++):d)},function(){i=null,a()}))},function(){s=!0,a()}))})}function F2e(e,t){return Xr(function(n,r){var i=t??{},o=i.leading,s=o===void 0?!0:o,a=i.trailing,l=a===void 0?!1:a,u=!1,c=null,d=null,f=!1,p=function(){d==null||d.unsubscribe(),d=null,l&&(v(),f&&r.complete())},h=function(){d=null,f&&r.complete()},m=function(g){return d=gr(e(g)).subscribe(or(r,p,h))},v=function(){if(u){u=!1;var g=c;c=null,r.next(g),!f&&m(g)}};n.subscribe(or(r,function(g){u=!0,c=g,!(d&&!d.closed)&&(s?v():m(g))},function(){f=!0,!(l&&u&&d&&!d.closed)&&r.complete()}))})}function B2e(e,t,n){t===void 0&&(t=qp);var r=PN(e,t);return F2e(function(){return r},n)}var U2e=["input","select","textarea"],$N=function(e,t){var n,r=(n=window==null?void 0:window.getComputedStyle)===null||n===void 0?void 0:n.call(window,e);return(r==null?void 0:r.getPropertyValue("cursor"))==="pointer"&&t==="click"},ff=function(e,t,n){return n===void 0&&(n=!1),function(r,i){var o,s,a=e.pageUrlAllowlist,l=e.pageUrlExcludelist,u=e.shouldTrackEventResolver,c=(s=(o=i==null?void 0:i.tagName)===null||o===void 0?void 0:o.toLowerCase)===null||s===void 0?void 0:s.call(o);if(!c)return!1;if(u)return u(r,i);if(!E2(window.location.href,a)||l&&l.length>0&&E2(window.location.href,l))return!1;var d=String(i==null?void 0:i.getAttribute("type"))||"";
694if(typeof d=="string")switch(d.toLowerCase()){case"hidden":return!1;case"password":return!1}var f=$N(i,r);if(n&&f)return!0;if(t){var p=t.some(function(h){var m;return!!(!((m=i==null?void 0:i.matches)===null||m===void 0)&&m.call(i,h))});if(!p)return!1}switch(c){case"input":case"select":case"textarea":return r==="change"||r==="click";default:return f?!0:r==="click"}}},j2e=function(e){var t,n,r,i=(n=(t=e==null?void 0:e.tagName)===null||t===void 0?void 0:t.toLowerCase)===null||n===void 0?void 0:n.call(t),o=e instanceof HTMLElement?((r=e.getAttribute("contenteditable"))===null||r===void 0?void 0:r.toLowerCase())==="true":!1;return!U2e.includes(i)&&!o},W2e=function(e){return e?e.split(",").map(function(t){return t.trim()}).filter(function(t){return t.length>0&&t!=="id"&&t!=="class"}):[]},G2e=function(e,t){return Object.entries(e).reduce(function(n,r){var i=Ne(r,2),o=i[0],s=i[1];if(o.startsWith(t)){var a=o.replace(t,"");a&&(n[a]=s||"")}return n},{})},z2e=function(e){return e==null||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0},lL=function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return z2e(r)||(t[n]=r),t},{})},vw=function(e,t){return e?t.some(function(n){var r;return(r=e==null?void 0:e.matches)===null||r===void 0?void 0:r.call(e,n)})?e:vw(e==null?void 0:e.parentElement,t):null},q2e=function(e){return new Promise(function(t,n){var r;try{var i=document.createElement("script");i.type="text/javascript",i.async=!0,i.src=e,i.addEventListener("load",function(){t({status:!0})},{once:!0}),i.addEventListener("error",function(){n({status:!1,message:"Failed to load the script ".concat(e)})}),(r=document.head)===null||r===void 0||r.appendChild(i)}catch(o){n(o)}})};function K2e(){return"".concat(Date.now(),"-").concat(Math.random().toString(36).substr(2,9))}var Xp=function(e){return!(e.event.target===null||!e.closestTrackedAncestor)};function X2e(e){return e.type==="click"||e.type==="change"}var Z2e="1.12.1",Y2e=new Set(["id","class","style","value","onclick","onchange","oninput","onblur","onsubmit","onfocus","onkeydown","onkeyup","onkeypress","data-reactid","data-react-checksum","data-reactroot",aN,Fm]),J2e=["type"],Q2e=["svg","path","g"],eSe=["password","hidden"],tSe=128;function nSe(e,t){var n,r,i,o,s,a;if(e===null)return null;var l=String(e.tagName).toLowerCase(),u={tag:l},c=Array.from((o=(i=e.parentElement)===null||i===void 0?void 0:i.children)!==null&&o!==void 0?o:[]);c.length&&(u.index=c.indexOf(e),u.indexOfType=c.filter(function(S){return S.tagName===e.tagName}).indexOf(e));var d=(a=(s=e.previousElementSibling)===null||s===void 0?void 0:s.tagName)===null||a===void 0?void 0:a.toLowerCase();d&&(u.prevSib=String(d));var f=e.getAttribute("id");f&&(u.id=String(f));var p=Array.from(e.classList);p.length&&(u.classes=p);var h={},m=Array.from(e.attributes),v=m.filter(function(S){return!Y2e.has(S.name)}),g=!j2e(e);if(!eSe.includes(String(e.getAttribute("type")))&&!Q2e.includes(l))try{for(var y=Ge(v),_=y.next();!_.done;_=y.next()){var b=_.value;if(!(g&&!J2e.includes(b.name))){if(t.has(b.name)){h[b.name]=ja;continue}h[b.name]=String(b.value).substring(0,tSe)}}}catch(S){n={error:S}}finally{try{_&&!_.done&&(r=y.return)&&r.call(y)}finally{if(n)throw n.error}}return Object.keys(h).length&&(u.attrs=h),u}function rSe(e){var t=[];if(!e)return t;
694t.push(e);for(var n=e.parentElement;n&&n.tagName!=="HTML";)t.push(n),n=n.parentElement;return t}var iSe=function(e,t){try{if(e.sourceType==="DOM_ELEMENT"){var n=document.documentElement;return e.scope&&t&&(n=t.closest(e.scope)),n&&e.selector?n.querySelector(e.selector):n}}catch{return}},oSe=function(e,t,n){e.forEach(function(r){if(typeof r!="string"&&r.actionType==="ATTACH_EVENT_PROPERTY"){var i=n.extractDataFromDataSource(r.dataSource,t.closestTrackedAncestor);t.targetElementProperties[r.destinationKey]=i}})},sSe=/\b(?:\d[ -]*?){13,16}\b/,aSe=/(\d{3}-?\d{2}-?\d{4})/g,lSe=/[^\s@]+@[^\s@.]+\.[^\s@]+/g,gw=function(){function e(t){var n,r,i=this,o;this.replaceSensitiveString=function(d){var f,p;if(typeof d!="string")return"";var h=d;h=h.replace(sSe,ja),h=h.replace(aSe,ja),h=h.replace(lSe,ja);try{for(var m=Ge(i.additionalMaskTextPatterns),v=m.next();!v.done;v=m.next()){var g=v.value;try{h=h.replace(g,ja)}catch{}}}catch(y){f={error:y}}finally{try{v&&!v.done&&(p=m.return)&&p.call(m)}finally{if(f)throw f.error}}return h},this.getHierarchy=function(d){var f,p,h,m=[];if(!d)return[];for(var v=rSe(d),g=new Map,y=v.length-1;y>=0;y--){var _=v[y];if(_){var b=W2e(_.getAttribute(aN)),S=y===v.length-1?[]:(h=g.get(v[y+1]))!==null&&h!==void 0?h:new Set,C=new Set(Fe(Fe([],Ne(S),!1),Ne(b),!1));g.set(_,C)}}m=v.map(function(L){var x;return nSe(L,(x=g.get(L))!==null&&x!==void 0?x:new Set)});var E=function(L){L!=null&&L.attrs&&Object.entries(L.attrs).forEach(function(x){var k=Ne(x,2),M=k[0],z=k[1];L.attrs&&(L.attrs[M]=i.replaceSensitiveString(z))})};try{for(var w=Ge(m),T=w.next();!T.done;T=w.next()){var A=T.value;E(A)}}catch(L){f={error:L}}finally{try{T&&!T.done&&(p=w.return)&&p.call(w)}finally{if(f)throw f.error}}return m},this.getNearestLabel=function(d){var f=d.parentElement;if(!f)return"";var p;try{p=f.querySelector(":scope>span,h1,h2,h3,h4,h5,h6")}catch{p=null}return p?i.getText(p):i.getNearestLabel(f)},this.getEventProperties=function(d,f,p){var h,m,v,g,y=(v=(m=f==null?void 0:f.tagName)===null||m===void 0?void 0:m.toLowerCase)===null||v===void 0?void 0:v.call(m),_=typeof f.getBoundingClientRect=="function"?f.getBoundingClientRect():{left:null,top:null},b=i.getHierarchy(f),S=(g=b[0])===null||g===void 0?void 0:g.attrs,C=i.getNearestLabel(f),E=G2e(S??{},p),w=(h={},h[w_e]=b,h[eL]=y,h[tL]=i.getText(f),h[A_e]=_.left==null?null:Math.round(_.left),h[I_e]=_.top==null?null:Math.round(_.top),h[L_e]=E,h[k_e]=C,h[nL]=window.location.href.split("?")[0],h[M_e]=typeof document<"u"&&i.replaceSensitiveString(document.title)||"",h[R_e]=window.innerHeight,h[P_e]=window.innerWidth,h);return w[E_e]=f.getAttribute("id")||"",w[C_e]=f.getAttribute("class"),w[x_e]=S==null?void 0:S["aria-label"],y==="a"&&d==="click"&&f instanceof HTMLAnchorElement&&(w[T_e]=i.replaceSensitiveString(f.href)),lL(w)},this.addAdditionalEventProperties=function(d,f,p,h,m){m===void 0&&(m=!1);var v={event:d,timestamp:Date.now(),type:f};if(X2e(v)&&v.event.target!==null){if(m){var g=$N(v.event.target,v.type);if(g)return v.closestTrackedAncestor=v.event.target,v.targetElementProperties=i.getEventProperties(v.type,v.closestTrackedAncestor,h),v}var y=vw(v.event.target,p);return y&&(v.closestTrackedAncestor=y,v.targetElementProperties=i.getEventProperties(v.type,y,h)),v}return v},this.extractDataFromDataSource=function(d,f){if(d.sourceType==="DOM_ELEMENT"){var p=iSe(d,f);return p?d.elementExtractType==="TEXT"?i.getText(p):d.elementExtractType==="ATTRIBUTE"&&d.attribute?p.getAttribute(d.attribute):void 0:void 0}},this.getText=function(d){var f=d.closest("[".concat(Fm,"]"))!==null;if(f)return ja;var p="";if(!d.querySelector("[".concat(Fm,"], [contenteditable]")))p=d.innerText||"";else{var h=d.cloneNode(!0);h.querySelectorAll("[".concat(Fm,"], [contenteditable]")).forEach(function(m){m.innerText=ja}),p=h.innerText||""}return i.replaceSensitiveString(p.substring(0,255)).replace(/\s+/g," ").trim()},this.getEventTagProps=function(d){var f,p,h;if(!d)return{};var m=(h=(p=d==null?void 0:d.tagName)===null||p===void 0?void 0:p.toLowerCase)===null||h===void 0?void 0:h.call(p),v=(f={},f[eL]=m,f[tL]=i.getText(d),f[nL]=window.location.href.split("?")[0],f);return lL(v)};var s=(o=t.maskTextRegex)!==null&&o!==void 0?o:[],a=[];try{for(var l=Ge(s),u=l.next();!u.done;u=l.next()){var c=u.value;if(a.length>=V_e)break;
694if(c instanceof RegExp)a.push(c);else if("pattern"in c&&typeof c.pattern=="string")try{a.push(new RegExp(c.pattern,"i"))}catch{}}}catch(d){n={error:d}}finally{try{u&&!u.done&&(r=l.return)&&r.call(l)}finally{if(n)throw n.error}}this.additionalMaskTextPatterns=a}return e}(),uSe=function(){function e(t){var n=t===void 0?{}:t,r=n.origin,i=r===void 0?Vm:r,o=this;this.endpoint=Vm,this.requestCallbacks={},this.onSelect=function(s){o.notify({action:"element-selected",data:s})},this.onTrack=function(s,a){s==="selector-mode-changed"?o.notify({action:"track-selector-mode-changed",data:a}):s==="selector-moved"&&o.notify({action:"track-selector-moved",data:a})},this.endpoint=i}return e.prototype.notify=function(t){var n,r,i,o;(r=(n=this.logger)===null||n===void 0?void 0:n.debug)===null||r===void 0||r.call(n,"Message sent: ",JSON.stringify(t)),(o=(i=window.opener)===null||i===void 0?void 0:i.postMessage)===null||o===void 0||o.call(i,t,this.endpoint)},e.prototype.sendRequest=function(t,n,r){var i=this;r===void 0&&(r={timeout:15e3});var o=K2e(),s={id:o,action:t,args:n},a=new Promise(function(l,u){i.requestCallbacks[o]={resolve:l,reject:u},i.notify(s),(r==null?void 0:r.timeout)>0&&setTimeout(function(){u(new Error("".concat(t," timed out (id: ").concat(o,")"))),delete i.requestCallbacks[o]},r.timeout)});return a},e.prototype.handleResponse=function(t){var n;if(!this.requestCallbacks[t.id]){(n=this.logger)===null||n===void 0||n.warn("No callback found for request id: ".concat(t.id));return}this.requestCallbacks[t.id].resolve(t.responseData),delete this.requestCallbacks[t.id]},e.prototype.setup=function(t){var n=this,r=t===void 0?{dataExtractor:new gw({})}:t,i=r.logger,o=r.endpoint,s=r.isElementSelectable,a=r.cssSelectorAllowlist,l=r.actionClickAllowlist,u=r.dataExtractor;this.logger=i,o&&this.endpoint===Vm&&(this.endpoint=o);var c=null;window.addEventListener("message",function(d){var f,p,h,m,v;if((p=(f=n.logger)===null||f===void 0?void 0:f.debug)===null||p===void 0||p.call(f,"Message received: ",JSON.stringify(d)),n.endpoint===d.origin){var g=d==null?void 0:d.data,y=g==null?void 0:g.action;if(y)if("id"in g)(m=(h=n.logger)===null||h===void 0?void 0:h.debug)===null||m===void 0||m.call(h,"Received Response to previous request: ",JSON.stringify(d)),n.handleResponse(g);else if(y==="ping")n.notify({action:"pong"});else if(y==="initialize-visual-tagging-selector"){var _=g==null?void 0:g.data;q2e(H_e).then(function(){var b;c=(b=window==null?void 0:window.amplitudeVisualTaggingSelector)===null||b===void 0?void 0:b.call(window,{getEventTagProps:u.getEventTagProps,isElementSelectable:function(S){return s?s((_==null?void 0:_.actionType)||"click",S):!0},onTrack:n.onTrack,onSelect:n.onSelect,visualHighlightClass:D_e,messenger:n,cssSelectorAllowlist:a,actionClickAllowlist:l,extractDataFromDataSource:u.extractDataFromDataSource,dataExtractor:u,diagnostics:{autocapture:{version:Z2e}}}),n.notify({action:"selector-loaded"})}).catch(function(){var b;(b=n.logger)===null||b===void 0||b.warn("Failed to initialize visual tagging selector")})}else y==="close-visual-tagging-selector"&&((v=c==null?void 0:c.close)===null||v===void 0||v.call(c))}}),this.notify({action:"page-loaded"})},e}(),cSe=5;function dSe(e){var t=e.amplitude,n=e.allObservables,r=e.options,i=e.shouldTrackEvent,o=e.evaluateTriggers,s=n.clickObservable,a=s.pipe(D2e(),kr(function(d){var f=Ne(d,2),p=f[0],h=f[1],m=p.event.target!==h.event.target,v=Math.abs(h.event.screenX-p.event.screenX)<=20&&Math.abs(h.event.screenY-p.event.screenY)<=20;return m&&!v})),l=s.pipe(O2e(r.debounceTime),rr(function(){return"timeout"})),u=mw(a,l),c=s.pipe(H2e(0),kr(Xp),kr(function(d){return i("click",d.closestTrackedAncestor)}),rr(function(d){return o(d)}),P2e(u));return c.subscribe(function(d){var f,p,h=(d.length>=cSe,x2);try{for(var m=Ge(d),v=m.next();!v.done;v=m.next()){var g=v.value;t==null||t.track(h,g.targetElementProperties)}}catch(y){f={error:y}}finally{try{v&&!v.done&&(p=m.return)&&p.call(m)}finally{if(f)throw f.error}}})}function fSe(e){var t=e.amplitude,n=e.allObservables,r=e.getEventProperties,i=e.shouldTrackEvent,o=e.evaluateTriggers,s=n.changeObservable,a=s.pipe(kr(Xp),kr(function(l){return i("change",l.closestTrackedAncestor)}),rr(function(l){return o(l)}));return a.subscribe(function(l){t==null||t.track(S_e,r("change",l.closestTrackedAncestor))})}function pSe(e){var t=e.amplitude,n=e.allObservables,r=e.options,i=e.getEventProperties,o=e.shouldTrackEvent,s=e.shouldTrackActionClick,a=n.clickObservable,l=n.mutationObservable,u=n.navigateObservable,c=a.pipe(kr(function(h){return!o("click",h.closestTrackedAncestor)}),rr(function(h){var m=vw(h.event.target,r.actionClickAllowlist);return h.closestTrackedAncestor=m,h.closestTrackedAncestor!==null&&(h.targetElementProperties=i(h.type,h.closestTrackedAncestor)),h}),kr(Xp),kr(function(h){return s("click",h.closestTrackedAncestor)})),d=[l];u&&d.push(u);var f=mw.apply(void 0,Fe([],Ne(d),!1)),p=c.pipe(V2e(function(h){return f.pipe(mg(1),m2e({first:500,with:function(){return pw}}),rr(function(){return h}))}));return p.subscribe(function(h){t==null||t.track(x2,i("click",h.closestTrackedAncestor))})}var NN=function(){return new Kn(function(e){var t=new MutationObserver(function(n){e.next(n)});return t.observe(document.body,{childList:!0,attributes:!0,characterData:!0,subtree:!0}),function(){return t.disconnect()}})},HN=function(e){return e===void 0&&(e="click"),kc(document,e,{capture:!0})},hSe=function(e,t){try{if(t.subprop_key==="[Amplitude] Element Text")return t.subprop_op==="is"&&t.subprop_value.includes(e.targetElementProperties["[Amplitude] Element Text"]);if(t.subprop_key==="[Amplitude] Element Hierarchy")return t.subprop_op==="autotrack css match"&&!!e.closestTrackedAncestor.closest(t.subprop_value.toString())}catch(n){return console.error("Error matching event to filter",n),!1}return!1},k2={"[Amplitude] Element Clicked":"click","[Amplitude] Element Changed":"change"},uL=function(e){var t,n,r,i,o=Object.values(k2).reduce(function(p,h){return p[h]=new Set,p},{});if(!e)return o;try{for(var s=Ge(e),a=s.next();!a.done;a=s.next()){var l=a.value;try{try{for(var u=(r=void 0,Ge(l.definition)),c=u.next();!c.done;c=u.next()){var d=c.value,f=k2[d.event_type];f&&o[f].add(l.id)}}catch(p){r={error:p}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}}catch(p){console.warn("Skipping Labeled Event due to malformed definition",l==null?void 0:l.id,p)}}}catch(p){t={error:p}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return o},cL=function(e){var t,n,r,i,o=new Map;try{for(var s=Ge(e),a=s.next();!a.done;a=s.next()){var l=a.value;try{for(var u=(r=void 0,Ge(l.conditions)),c=u.next();!c.done;c=u.next()){var d=c.value;if(d.type==="LABELED_EVENT"){var f=d.match.eventId,p=o.get(f);p||(p=[],o.set(f,p)),p.push(l)}}}catch(h){r={error:h}}finally{try{c&&!c.done&&(i=u.return)&&i.call(u)}finally{if(r)throw r.error}}}}catch(h){t={error:h}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}return o},mSe=function(e,t){return t.filter(function(n){return n.definition.some(function(r){return k2[r.event_type]===e.type&&r.filters.every(function(i){return hSe(e,i)})})})},vSe=function(e,t){var n,r,i,o,s=new Set;try{for(var a=Ge(e),l=a.next();!l.done;l=a.next()){var u=l.value,c=t.get(u.id);if(c)try{for(var d=(i=void 0,Ge(c)),f=d.next();!f.done;f=d.next()){var p=f.value;s.add(p)}}catch(h){i={error:h}}
694finally{try{f&&!f.done&&(o=d.return)&&o.call(d)}finally{if(i)throw i.error}}}}catch(h){n={error:h}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return Array.from(s)},gSe=function(){function e(t,n,r,i){this.groupedLabeledEvents=t,this.labeledEventToTriggerMap=n,this.dataExtractor=r,this.options=i}return e.prototype.evaluate=function(t){var n,r,i=this.options.pageActions;if(!i)return t;var o=mSe(t,Array.from(this.groupedLabeledEvents[t.type]).map(function(c){return i.labeledEvents[c]})),s=vSe(o,this.labeledEventToTriggerMap);try{for(var a=Ge(s),l=a.next();!l.done;l=a.next()){var u=l.value;oSe(u.actions,t,this.dataExtractor)}}catch(c){n={error:c}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return t},e.prototype.update=function(t,n,r){this.groupedLabeledEvents=t,this.labeledEventToTriggerMap=n,this.options=r},e}(),ySe=function(e,t,n,r){return new gSe(e,t,n,r)},To;(function(e){e.ClickObservable="clickObservable",e.ChangeObservable="changeObservable",e.NavigateObservable="navigateObservable",e.MutationObservable="mutationObservable"})(To||(To={}));var bSe=function(e){var t,n,r,i,o,s,a,l;e===void 0&&(e={});var u=e.dataAttributePrefix,c=u===void 0?W9:u,d=e.visualTaggingOptions,f=d===void 0?{enabled:!0,messenger:new uSe}:d;e.cssSelectorAllowlist=(t=e.cssSelectorAllowlist)!==null&&t!==void 0?t:Dye,e.actionClickAllowlist=(n=e.actionClickAllowlist)!==null&&n!==void 0?n:Vye,e.debounceTime=(r=e.debounceTime)!==null&&r!==void 0?r:0,e.pageUrlExcludelist=(i=e.pageUrlExcludelist)===null||i===void 0?void 0:i.reduce(function(T,A){if(typeof A=="string"&&T.push(A),A instanceof RegExp&&T.push(A),typeof A=="object"&&A!==null&&"pattern"in A)try{T.push(new RegExp(A.pattern))}catch(L){return console.warn("Invalid regex pattern: ".concat(A.pattern),L),T}return T},[]);var p=y_e,h="enrichment",m=[],v=new gw(e),g=function(){var T,A=HN().pipe(rr(function(M){return v.addAdditionalEventProperties(M,"click",e.cssSelectorAllowlist,c)}),el()),L=kc(document,"change",{capture:!0}).pipe(rr(function(M){return v.addAdditionalEventProperties(M,"change",e.cssSelectorAllowlist,c)}),el()),x;window.navigation&&(x=kc(window.navigation,"navigate").pipe(rr(function(M){return v.addAdditionalEventProperties(M,"navigate",e.cssSelectorAllowlist,c)}),el()));var k=NN().pipe(rr(function(M){return v.addAdditionalEventProperties(M,"mutation",e.cssSelectorAllowlist,c)}),el());return T={},T[To.ClickObservable]=A,T[To.ChangeObservable]=L,T[To.NavigateObservable]=x,T[To.MutationObservable]=k,T},y=uL(Object.values((s=(o=e.pageActions)===null||o===void 0?void 0:o.labeledEvents)!==null&&s!==void 0?s:{})),_=cL((l=(a=e.pageActions)===null||a===void 0?void 0:a.triggers)!==null&&l!==void 0?l:[]),b=ySe(y,_,v,e),S=function(T){var A,L;T&&(e.pageActions=ne(ne({},e.pageActions),T),y=uL(Object.values((A=e.pageActions.labeledEvents)!==null&&A!==void 0?A:{})),_=cL((L=e.pageActions.triggers)!==null&&L!==void 0?L:[]),b.update(y,_,e))},C=function(T,A){return ue(void 0,void 0,void 0,function(){var L,x,k,M,z,P,H,q,de,se;return oe(this,function(W){return typeof document>"u"?[2]:(T.fetchRemoteConfig&&g_e({localConfig:T,configKeys:["analyticsSDK.pageActions"]}).then(function(V){return ue(void 0,void 0,void 0,function(){var B,Y,F;return oe(this,function(Q){switch(Q.label){case 0:return Q.trys.push([0,2,,3]),[4,V.getRemoteConfig("analyticsSDK","pageActions")];case 1:return B=Q.sent(),S(B),[3,3];case 2:return Y=Q.sent(),(F=T==null?void 0:T.loggerProvider)===null||F===void 0||F.error("Failed to fetch remote config: ".concat(String(Y))),[3,3];case 3:return[2]}})})}).catch(function(V){var B;(B=T==null?void 0:T.loggerProvider)===null||B===void 0||B.error("Failed to create remote config fetch: ".concat(String(V)))}),L=ff(e,e.cssSelectorAllowlist),x=ff(e,e.actionClickAllowlist),k=g(),M=dSe({allObservables:k,options:e,amplitude:A,shouldTrackEvent:L,evaluateTriggers:b.evaluate.bind(b)}),m.push(M),z=fSe({allObservables:k,getEventProperties:function(){for(var V=[],B=0;B<arguments.length;B++)V[B]=arguments[B];return v.getEventProperties.apply(v,Fe(Fe([],Ne(V),!1),[c],!1))},amplitude:A,shouldTrackEvent:L,evaluateTriggers:b.evaluate.bind(b)}),m.push(z),P=pSe({allObservables:k,options:e,getEventProperties:function(){for(var V=[],B=0;B<arguments.length;B++)V[B]=arguments[B];return v.getEventProperties.apply(v,Fe(Fe([],Ne(V),!1),[c],!1))},amplitude:A,shouldTrackEvent:L,shouldTrackActionClick:x}),m.push(P),(de=T==null?void 0:T.loggerProvider)===null||de===void 0||de.log("".concat(p," has been successfully added.")),window.opener&&f.enabled&&(H=e.cssSelectorAllowlist,q=e.actionClickAllowlist,(se=f.messenger)===null||se===void 0||se.setup(ne(ne({dataExtractor:v,logger:T==null?void 0:T.loggerProvider},(T==null?void 0:T.serverZone)&&{endpoint:N_e[T.serverZone]}),{isElementSelectable:ff(e,Fe(Fe([],Ne(H),!1),Ne(q),!1)),cssSelectorAllowlist:H,actionClickAllowlist:q}))),[2])})})},E=function(T){return ue(void 0,void 0,void 0,function(){return oe(this,function(A){return[2,T]})})},w=function(){return ue(void 0,void 0,void 0,function(){var T,A,L,x,k;return oe(this,function(M){try{for(T=Ge(m),A=T.next();!A.done;A=T.next())L=A.value,L.unsubscribe()}catch(z){x={error:z}}finally{try{A&&!A.done&&(k=T.return)&&k.call(T)}finally{if(x)throw x.error}}return[2]})})};return{name:p,type:h,setup:C,execute:E,teardown:w}},dL=3e3;function _Se(e){var t=e.amplitude,n=e.allObservables,r=e.getEventProperties,i=e.shouldTrackDeadClick,o=n.clickObservable,s=n.mutationObservable,a=n.navigateObservable,l=o.pipe(kr(Xp),kr(function(f){return i("click",f.closestTrackedAncestor)})),u=[s];a&&u.push(a);var c=mw.apply(void 0,Fe([],Ne(u),!1)),d=l.pipe(Kp(function(f){var p,h=new Kn(function(m){return p=setTimeout(function(){return m.next(f)},dL),function(){clearTimeout(p)}});return M2e(h,c.pipe(mg(1),rr(function(){return null}))).pipe(kr(function(m){return m!==null}))}),B2e(dL));return d.subscribe(function(f){var p={"[Amplitude] X":f.event.clientX,"[Amplitude] Y":f.event.clientY};t.track(__e,ne(ne({},r("click",f.closestTrackedAncestor)),p),{time:f.timestamp})})}var M2=Gye,DN=Wye,fL=zye;function pL(e,t){var n,r,i,o,s=t.event,a=s.clientX,l=s.clientY;e.yMin=Math.min((n=e.yMin)!==null&&n!==void 0?n:l,l),e.yMax=Math.max((r=e.yMax)!==null&&r!==void 0?r:l,l),e.xMin=Math.min((i=e.xMin)!==null&&i!==void 0?i:a,a),e.xMax=Math.max((o=e.xMax)!==null&&o!==void 0?o:a,a),e.isOutOfBounds=e.yMax-e.yMin>fL||e.xMax-e.xMin>fL}function hL(e){var t=e[0],n=e[e.length-1],r=ne({"[Amplitude] Begin Time":new Date(t.timestamp).toISOString(),"[Amplitude] End Time":new Date(n.timestamp).toISOString(),"[Amplitude] Duration":n.timestamp-t.timestamp,"[Amplitude] Clicks":e.map(function(i){return{X:i.event.clientX,Y:i.event.clientY,Time:i.timestamp}}),"[Amplitude] Click Count":e.length},t.targetElementProperties);return{rageClickEvent:r,time:t.timestamp}}function SSe(e,t){var n=Math.max(0,e.length-M2+1),r=e[n];return t.timestamp-r.timestamp>=DN}function ESe(e,t){return e.length>0&&e[e.length-1].closestTrackedAncestor!==t.closestTrackedAncestor}function CSe(e){var t=e.amplitude,n=e.allObservables,r=e.shouldTrackRageClick,i=n.clickObservable,o=[],s={},a;function l(u){o=[],s={},u&&(pL(s,u),o.push(u))}return i.pipe(kr(Xp),kr(function(u){return r("click",u.closestTrackedAncestor)}),rr(function(u){if(a&&clearTimeout(a),pL(s,u),o.length===0)return o.push(u),null;if(ESe(o,u)||SSe(o,u)||s.isOutOfBounds){var c=o.length>=M2?hL(o):null;return l(u),c}return o.push(u),o.length>=M2&&(a=setTimeout(function(){var d=hL(o),f=d.rageClickEvent,p=d.time;t.track(Qx,f,{time:p}),l()},DN)),null}),kr(function(u){return u!==null})).subscribe(function(u){u!==null&&t.track(Qx,u.rageClickEvent,{time:u.time})})}var wSe=function(e){var t,n,r,i,o;e===void 0&&(e={});var s=b_e,a="enrichment",l=[],u=(n=(t=e.rageClicks)===null||t===void 0?void 0:t.cssSelectorAllowlist)!==null&&n!==void 0?n:jye,c=(i=(r=e.deadClicks)===null||r===void 0?void 0:r.cssSelectorAllowlist)!==null&&i!==void 0?i:Uye,d=(o=e.dataAttributePrefix)!==null&&o!==void 0?o:W9,f=new gw(e),p=Fe([],Ne(new Set(Fe(Fe([],Ne(u),!1),Ne(c),!1))),!1),h=function(){var y,_=HN("pointerdown").pipe(rr(function(C){return f.addAdditionalEventProperties(C,"click",p,d,!0)}),el()),b;window.navigation&&(b=kc(window.navigation,"navigate").pipe(rr(function(C){return f.addAdditionalEventProperties(C,"navigate",p,d)}),el()));var S=NN().pipe(rr(function(C){return f.addAdditionalEventProperties(C,"mutation",p,d)}),el());return y={},y[To.ClickObservable]=_,y[To.ChangeObservable]=new Kn,y[To.NavigateObservable]=b,y[To.MutationObservable]=S,y},m=function(y,_){return ue(void 0,void 0,void 0,function(){var b,S,C,E,w,T;return oe(this,function(A){return typeof document>"u"?[2]:(b=ff(e,u),S=ff(e,c),C=h(),E=CSe({allObservables:C,amplitude:_,shouldTrackRageClick:b}),l.push(E),w=_Se({amplitude:_,allObservables:C,getEventProperties:function(L,x){return f.getEventProperties(L,x,d)},shouldTrackDeadClick:S}),l.push(w),(T=y==null?void 0:y.loggerProvider)===null||T===void 0||T.log("".concat(s," has been successfully added.")),[2])})})},v=function(y){return ue(void 0,void 0,void 0,function(){return oe(this,function(_){return[2,y]})})},g=function(){return ue(void 0,void 0,void 0,function(){var y,_,b,S,C;return oe(this,function(E){try{for(y=Ge(l),_=y.next();!_.done;_=y.next())b=_.value,b.unsubscribe()}catch(w){S={error:w}}finally{try{_&&!_.done&&(C=y.return)&&C.call(y)}finally{if(S)throw S.error}}return[2]})})};return{name:s,type:a,setup:m,execute:v,teardown:g}},TSe="@amplitude/plugin-network-capture-browser",VN="[Amplitude] Network Request",FN="500-599";function Um(e,t){var n=t.replace(/[-[\]{}()+?.,\\^$|#\s]/g,"\\$&"),r="^"+n.replace(/\*/g,".*")+"$",i=new RegExp(r);return i.test(e)}function BN(e,t){var n,r,i=t.split(",");try{for(var o=Ge(i),s=o.next();!s.done;s=o.next()){var a=s.value,l=Ne(a.split("-").map(Number),2),u=l[0],c=l[1];if(e===u&&c===void 0||e>=u&&e<=c)return!0}}catch(d){n={error:d}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return!1}function ASe(e,t,n,r,i){if(!(e.hosts&&!e.hosts.find(function(s){return Um(t,s)}
694))&&!(r&&e.urls&&!E2(r,e.urls))&&!(i&&e.methods&&!e.methods.find(function(s){return i.toLowerCase()===s.toLowerCase()||s==="*"}))){if(n||n===0){var o=e.statusCodeRange||FN;if(!BN(n,o))return!1}return!0}}function UN(e){var t;if(e)try{var n=(t=$t())===null||t===void 0?void 0:t.location.href,r=new URL(e,n),i=r.searchParams.toString(),o=r.hash.replace("#",""),s=r.href,a=r.host;r.hash="",r.search="";var l=r.href;return{query:i,fragment:o,href:s,hrefWithoutQueryOrHash:l,host:a}}catch{return}}function ISe(e,t){if(e.includes("amplitude.com"))try{var n=t.body;if(typeof n!="string")return!1;var r=JSON.parse(n),i=r.events;if(i.find(function(o){return o.event_type===VN}))return!0}catch{}return!1}function mL(e){if(typeof e!="object"||e===null){if(e)return Fe([],Ne(b2),!1);if(e===void 0){var t=void 0;return t}return}if(e.length!==0)return e}function vL(e){var t,n;return!(!((t=e==null?void 0:e.allowlist)===null||t===void 0)&&t.length)&&!(!((n=e==null?void 0:e.blocklist)===null||n===void 0)&&n.length)}function xSe(e,t){var n;t===void 0&&(t={});var r=UN(e.url);if(!r)return!1;var i=r.host;if(t.ignoreAmplitudeRequests!==!1&&(Um(i,"*.amplitude.com")||Um(i,"amplitude.com"))||!((n=t.ignoreHosts)===null||n===void 0)&&n.find(function(s){return Um(i,s)})||!t.captureRules&&e.status!==void 0&&!BN(e.status,FN))return!1;if(t.captureRules){var o;if(Fe([],Ne(t.captureRules),!1).reverse().find(function(s){if(o=ASe(s,i,e.status,e.url,e.method),o){var a=mL(s.responseHeaders);if(e.responseWrapper&&a){var l=e.responseWrapper.headers(a);l&&(e.responseHeaders=l)}var u=mL(s.requestHeaders);if(e.requestWrapper&&u){var c=e.requestWrapper.headers(u);c&&(e.requestHeaders=c)}e.responseWrapper&&s.responseBody&&!vL(s.responseBody)&&(e.responseBodyJson=e.responseWrapper.json(s.responseBody.allowlist,s.responseBody.blocklist)),e.requestWrapper&&s.requestBody&&!vL(s.requestBody)&&(e.requestBodyJson=e.requestWrapper.json(s.requestBody.allowlist,s.requestBody.blocklist))}return o!==void 0}),!o)return!1}return!(e.requestWrapper&&ISe(i,e.requestWrapper))}function LSe(e,t,n){return ue(this,void 0,void 0,function(){var r,i,o;return oe(this,function(s){switch(s.label){case 0:return t.requestBodyJson||t.responseBodyJson?[4,Promise.all([t.requestBodyJson,t.responseBodyJson])]:[3,2];case 1:r=Ne.apply(void 0,[s.sent(),2]),i=r[0],o=r[1],i&&(e["[Amplitude] Request Body"]=i),o&&(e["[Amplitude] Response Body"]=o),s.label=2;case 2:return n==null||n.track(VN,e),[2]}})})}function kSe(e){var t=e.allObservables,n=e.networkTrackingOptions,r=e.amplitude,i=t.networkObservable,o=i.pipe(kr(function(s){return xSe(s.event,n)}));return o.subscribe(function(s){var a,l,u,c=s.event,d=UN(c.url);if(d){var f=(l=c.responseWrapper)===null||l===void 0?void 0:l.bodySize,p=(u=c.requestWrapper)===null||u===void 0?void 0:u.bodySize,h=(a={},a["[Amplitude] URL"]=d.hrefWithoutQueryOrHash,a["[Amplitude] URL Query"]=d.query,a["[Amplitude] URL Fragment"]=d.fragment,a["[Amplitude] Request Method"]=c.method,a["[Amplitude] Status Code"]=c.status,a["[Amplitude] Start Time"]=c.startTime,a["[Amplitude] Completion Time"]=c.endTime,a["[Amplitude] Duration"]=c.duration,a["[Amplitude] Request Body Size"]=p,a["[Amplitude] Response Body Size"]=f,a["[Amplitude] Request Type"]=c.type,a["[Amplitude] Request Headers"]=c.requestHeaders,a["[Amplitude] Response Headers"]=c.responseHeaders,a);LSe(h,c,r)}})}var R2;(function(e){e.NetworkObservable="networkObservable"})(R2||(R2={}));var MSe=function(e){e===void 0&&(e={});var t=TSe,n="enrichment",r,i=[],o=function(c,d){var f={event:c,timestamp:Date.now(),type:d};return f},s=function(){var c,d=new Kn(function(f){var p=new tbe(function(h){var m=o(h,"network");f.next(m)});return xx.subscribe(p,r),function(){xx.unsubscribe(p)}});return c={},c[R2.NetworkObservable]=d,c},a=function(c,d){return ue(void 0,void 0,void 0,function(){var f,p;return oe(this,function(h){return typeof document>"u"?[2]:(f=s(),p=kSe({allObservables:f,networkTrackingOptions:e,amplitude:d}),i.push(p),r=c==null?void 0:c.loggerProvider,r==null||r.log("".concat(t," has been successfully added.")),[2])})})},l=function(c){return ue(void 0,void 0,void 0,function(){return oe(this,function(d){return[2,c]})})},u=function(){return ue(void 0,void 0,void 0,function(){var c,d,f,p,h;return oe(this,function(m){try{for(c=Ge(i),d=c.next();!d.done;d=c.next())f=d.value,f.unsubscribe()}catch(v){p={error:v}}finally{try{d&&!d.done&&(h=c.return)&&h.call(c)}finally{if(p)throw p.error}}return[2]})})};return{name:t,type:n,setup:a,execute:l,teardown:u}},RSe="web-vitals-browser",PSe="[Amplitude] Web Vitals";let jN=-1;const sd=e=>{addEventListener("pageshow",t=>{t.persisted&&(jN=t.timeStamp,e(t))},!0)},$o=(e,t,n,r)=>{let i,o;return s=>{t.value>=0&&(s||r)&&(o=t.value-(i??0),(o||i===void 0)&&(i=t.value,t.delta=o,t.rating=((a,l)=>a>l[1]?"poor":a>l[0]?"needs-improvement":"good")(t.value,n),e(t)))}},yw=e=>{requestAnimationFrame(()=>requestAnimationFrame(()=>e()))},bw=()=>{const e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart<performance.now())return e},Zp=()=>{const e=bw();return(e==null?void 0:e.activationStart)??0},No=(e,t=-1)=>{const n=bw();let r="navigate";return jN>=0?r="back-forward-cache":n&&(document.prerendering||Zp()>0?r="prerender":document.wasDiscarded?r="restore":n.type&&(r=n.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:`v5-${Date.now()}-${Math.floor(8999999999999*Math.random())+1e12}`,navigationType:r}},Vy=new WeakMap;function _w(e,t){return Vy.get(e)||Vy.set(e,new t),Vy.get(e)}class OSe{constructor(){ve(this,"t");ve(this,"i",0);ve(this,"o",[])}h(t){var i;if(t.hadRecentInput)return;const n=this.o[0],r=this.o.at(-1);this.i&&n&&r&&t.startTime-r.startTime<1e3&&t.startTime-n.startTime<5e3?(this.i+=t.value,this.o.push(t)):(this.i=t.value,this.o=[t]),(i=this.t)==null||i.call(this,t)}}const Yp=(e,t,n={})=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{Promise.resolve().then(()=>{t(i.getEntries())})});return r.observe({type:e,buffered:!0,...n}),r}}catch{}},Sw=e=>{let t=!1;return()=>{t||(e(),t=!0)}};let Hu=-1;const WN=new Set,gL=()=>document.visibilityState!=="hidden"||document.prerendering?1/0:0,P2=e=>{if(document.visibilityState==="hidden"){if(e.type==="visibilitychange")for(const t of WN)t();isFinite(Hu)||(Hu=e.type==="visibilitychange"?e.timeStamp:0,removeEventListener("prerenderingchange",P2,!0))}},l0=()=>{var e;if(Hu<0){const t=Zp();Hu=(document.prerendering||(e=globalThis.performance.getEntriesByType("visibility-state").filter(r=>r.name==="hidden"&&r.startTime>t)[0])==null?void 0:e.startTime)??gL(),addEventListener("visibilitychange",P2,!0),addEventListener("prerenderingchange",P2,!0),sd(()=>{setTimeout(()=>{Hu=gL()})})}return{get firstHiddenTime(){return Hu},onHidden(t){WN.add(t)}}},u0=e=>{document.prerendering?addEventListener("prerenderingchange",()=>e(),!0):e()},yL=[1800,3e3],GN=(e,t={})=>{u0(()=>{const n=l0();let r,i=No("FCP");const o=Yp("paint",s=>{for(const a of s)a.name==="first-contentful-paint"&&(o.disconnect(),a.startTime<n.firstHiddenTime&&(i.value=Math.max(a.startTime-Zp(),0),i.entries.push(a),r(!0)))});o&&(r=$o(e,i,yL,t.reportAllChanges),sd(s=>{i=No("FCP"),r=$o(e,i,yL,t.reportAllChanges),yw(()=>{i.value=performance.now()-s.timeStamp,r(!0)})}))})},bL=[.1,.25],$Se=(e,t={})=>{const n=l0();GN(Sw(()=>{let r,i=No("CLS",0);const o=_w(t,OSe),s=l=>{for(const u of l)o.h(u);o.i>i.value&&(i.value=o.i,i.entries=o.o,r())},a=Yp("layout-shift",s);a&&(r=$o(e,i,bL,t.reportAllChanges),n.onHidden(()=>{s(a.takeRecords()),r(!0)}),sd(()=>{o.i=0,i=No("CLS",0),r=$o(e,i,bL,t.reportAllChanges),yw(()=>r())}),setTimeout(r))}))};let zN=0,Fy=1/0,zh=0;const NSe=e=>{for(const t of e)t.interactionId&&(Fy=Math.min(Fy,t.interactionId),zh=Math.max(zh,t.interactionId),zN=zh?(zh-Fy)/7+1:0)};let O2;const _L=()=>O2?zN:performance.interactionCount??0,HSe=()=>{"interactionCount"in performance||O2||(O2=Yp("event",NSe,{type:"event",buffered:!0,durationThreshold:0}))};let SL=0;class DSe{constructor(){ve(this,"u",[]);ve(this,"l",new Map);ve(this,"m");ve(this,"p")}v(){SL=_L(),this.u.length=0,this.l.clear()}L(){const t=Math.min(this.u.length-1,Math.floor((_L()-SL)/50));return this.u[t]}h(t){var i,o;if((i=this.m)==null||i.call(this,t),!t.interactionId&&t.entryType!=="first-input")return;const n=this.u.at(-1);let r=this.l.get(t.interactionId);if(r||this.u.length<10||t.duration>n.P){if(r?t.duration>r.P?(r.entries=[t],r.P=t.duration):t.duration===r.P&&t.startTime===r.entries[0].startTime&&r.entries.push(t):(r={id:t.
694interactionId,entries:[t],P:t.duration},this.l.set(r.id,r),this.u.push(r)),this.u.sort((s,a)=>a.P-s.P),this.u.length>10){const s=this.u.splice(10);for(const a of s)this.l.delete(a.id)}(o=this.p)==null||o.call(this,r)}}}const qN=e=>{const t=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?e():(e=Sw(e),addEventListener("visibilitychange",e,{once:!0,capture:!0}),t(()=>{e(),removeEventListener("visibilitychange",e,{capture:!0})}))},EL=[200,500],VSe=(e,t={})=>{if(!globalThis.PerformanceEventTiming||!("interactionId"in PerformanceEventTiming.prototype))return;const n=l0();u0(()=>{HSe();let r,i=No("INP");const o=_w(t,DSe),s=l=>{qN(()=>{for(const c of l)o.h(c);const u=o.L();u&&u.P!==i.value&&(i.value=u.P,i.entries=u.entries,r())})},a=Yp("event",s,{durationThreshold:t.durationThreshold??40});r=$o(e,i,EL,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),n.onHidden(()=>{s(a.takeRecords()),r(!0)}),sd(()=>{o.v(),i=No("INP"),r=$o(e,i,EL,t.reportAllChanges)}))})};class FSe{constructor(){ve(this,"m")}h(t){var n;(n=this.m)==null||n.call(this,t)}}const CL=[2500,4e3],BSe=(e,t={})=>{u0(()=>{const n=l0();let r,i=No("LCP");const o=_w(t,FSe),s=l=>{t.reportAllChanges||(l=l.slice(-1));for(const u of l)o.h(u),u.startTime<n.firstHiddenTime&&(i.value=Math.max(u.startTime-Zp(),0),i.entries=[u],r())},a=Yp("largest-contentful-paint",s);if(a){r=$o(e,i,CL,t.reportAllChanges);const l=Sw(()=>{s(a.takeRecords()),a.disconnect(),r(!0)}),u=c=>{c.isTrusted&&(qN(l),removeEventListener(c.type,u,{capture:!0}))};for(const c of["keydown","click","visibilitychange"])addEventListener(c,u,{capture:!0});sd(c=>{i=No("LCP"),r=$o(e,i,CL,t.reportAllChanges),yw(()=>{i.value=performance.now()-c.timeStamp,r(!0)})})}})},wL=[800,1800],$2=e=>{document.prerendering?u0(()=>$2(e)):document.readyState!=="complete"?addEventListener("load",()=>$2(e),!0):setTimeout(e)},USe=(e,t={})=>{let n=No("TTFB"),r=$o(e,n,wL,t.reportAllChanges);$2(()=>{const i=bw();i&&(n.value=Math.max(i.responseStart-Zp(),0),n.entries=[i],r(!0),sd(()=>{n=No("TTFB",0),r=$o(e,n,wL,t.reportAllChanges),r(!0)}))})};function jSe(e){var t,n=((t=e.entries[0])===null||t===void 0?void 0:t.startTime)||0;return performance.timeOrigin+n}function Ed(e){return{value:e.value,rating:e.rating,delta:e.delta,navigationType:e.navigationType,id:e.id,timestamp:Math.floor(jSe(e)),navigationStart:Math.floor(performance.timeOrigin)}}var WSe=function(){var e=null,t=$t(),n=t==null?void 0:t.document,r=t==null?void 0:t.location,i=function(a,l){return ue(void 0,void 0,void 0,function(){var u,c,d;return oe(this,function(f){return u=function(p){var h;if(!p)return"";var m=p;try{m=decodeURI(p)}catch(v){(h=a.loggerProvider)===null||h===void 0||h.error("Malformed URI sequence: ",v)}return m},n===void 0?[2]:(c=u(r==null?void 0:r.href),d={"[Amplitude] Page Domain":(r==null?void 0:r.hostname)||"","[Amplitude] Page Location":c,"[Amplitude] Page Path":u(r==null?void 0:r.pathname),"[Amplitude] Page Title":typeof document<"u"&&document.title||"","[Amplitude] Page URL":c.split("?")[0]},BSe(function(p){d["[Amplitude] LCP"]=Ed(p)}),GN(function(p){d["[Amplitude] FCP"]=Ed(p)}),VSe(function(p){d["[Amplitude] INP"]=Ed(p)}),$Se(function(p){d["[Amplitude] CLS"]=Ed(p)}),USe(function(p){d["[Amplitude] TTFB"]=Ed(p)}),e=function(){n.visibilityState==="hidden"&&e&&(l.track(PSe,d),n.removeEventListener("visibilitychange",e),e=null)},n.addEventListener("visibilitychange",e),[2])})})},o=function(a){return ue(void 0,void 0,void 0,function(){return oe(this,function(l){return[2,a]})})},s=function(){return ue(void 0,void 0,void 0,function(){return oe(this,function(a){return e&&(n==null||n.removeEventListener("visibilitychange",e)),[2]})})};return{name:RSe,type:"enrichment",setup:i,execute:o,teardown:s}},TL=function(e){var t=e.split(".");return t.length<=2?e:t.slice(t.length-2,t.length).join(".")},GSe=function(e){return Object.values(e).every(function(t){return!t})},zSe=function(e,t,n,r,i){i===void 0&&(i=!0),e.referrer;var o=e.referring_domain,s=Sv(e,["referrer","referring_domain"]),a=t||{};a.referrer;var l=a.referring_domain,u=Sv(a,["referrer","referring_domain"]);if(qSe(n.excludeReferrers,e.referring_domain))return r.debug("This is not a new campaign because ".concat(e.referring_domain," is in the exclude referrer list.")),!1;if(!i&&GSe(e)&&t)return r.debug("This is not a new campaign because this is a direct traffic in the same session."),!1;var c=JSON.stringify(s)!==JSON.stringify(u),d=TL(o||"")!==TL(l||""),f=!t||c||d;return f?r.debug("This is a new campaign. An $identify event will be sent."):r.debug("This is not a new campaign because it's the same as the previous one."),f},qSe=function(e,t){return e===void 0&&(e=[]),t===void 0&&(t=""),e.some(function(n){return n instanceof RegExp?n.test(t):n===t})},KSe=function(e,t){var n=ne(ne({},sw),e),r=Object.entries(n).reduce(function(i,o){var s,a=Ne(o,2),l=a[0],u=a[1];return i.setOnce("initial_".concat(l),(s=u??t.initialEmptyValue)!==null&&s!==void 0?s:"EMPTY"),u?i.set(l,u):i.unset(l)},new ag);return N9(r)},XSe=function(e){var t=e;
694return t?(t.startsWith(".")&&(t=t.substring(1)),[new RegExp("".concat(t.replace(".","\\."),"$"))]):[]},ZSe=function(){function e(t,n){var r;this.shouldTrackNewCampaign=!1,this.options=ne({initialEmptyValue:"EMPTY",resetSessionOnNewCampaign:!1,excludeReferrers:XSe((r=n.cookieOptions)===null||r===void 0?void 0:r.domain)},t),this.storage=n.cookieStorage,this.storageKey=wx(n.apiKey,"MKTG"),this.webExpStorageKey=wx(n.apiKey,"MKTG_ORIGINAL"),this.currentCampaign=sw,this.sessionTimeout=n.sessionTimeout,this.lastEventTime=n.lastEventTime,this.logger=n.loggerProvider,n.loggerProvider.log("Installing web attribution tracking.")}return e.prototype.init=function(){return ue(this,void 0,void 0,function(){var t,n;return oe(this,function(r){switch(r.label){case 0:return[4,this.fetchCampaign()];case 1:return n=Ne.apply(void 0,[r.sent(),2]),this.currentCampaign=n[0],this.previousCampaign=n[1],t=this.lastEventTime?V9(this.sessionTimeout,this.lastEventTime):!0,zSe(this.currentCampaign,this.previousCampaign,this.options,this.logger,t)?(this.shouldTrackNewCampaign=!0,[4,this.storage.set(this.storageKey,this.currentCampaign)]):[3,3];case 2:r.sent(),r.label=3;case 3:return[2]}})})},e.prototype.fetchCampaign=function(){return ue(this,void 0,void 0,function(){var t;return oe(this,function(n){switch(n.label){case 0:return[4,this.storage.get(this.webExpStorageKey)];case 1:return t=n.sent(),t?[4,this.storage.remove(this.webExpStorageKey)]:[3,3];case 2:n.sent(),n.label=3;case 3:return[4,Promise.all([t||new rbe().parse(),this.storage.get(this.storageKey)])];case 4:return[2,n.sent()]}})})},e.prototype.generateCampaignEvent=function(t){this.shouldTrackNewCampaign=!1;var n=KSe(this.currentCampaign,this.options);return t&&(n.event_id=t),n},e.prototype.shouldSetSessionIdOnNewCampaign=function(){return this.shouldTrackNewCampaign&&!!this.options.resetSessionOnNewCampaign},e}(),YSe=function(e){Vt(t,e);function t(){return e!==null&&e.apply(this,arguments)||this}return t.prototype.init=function(n,r,i){n===void 0&&(n="");var o,s;return arguments.length>2?(o=r,s=i):typeof r=="string"?(o=r,s=void 0):(o=r==null?void 0:r.userId,s=r),cr(this._init(ne(ne({},s),{userId:o,apiKey:n})))},t.prototype._init=function(n){var r,i,o;return ue(this,void 0,void 0,function(){var s,a,l,u,c,d,f,p=this;return oe(this,function(h){switch(h.label){case 0:return this.initializing?[2]:(this.initializing=!0,[4,Fbe(n.apiKey,n,this)]);case 1:return s=h.sent(),s.fetchRemoteConfig?(this.remoteConfigClient=new j9(s.apiKey,s.loggerProvider,s.serverZone),[4,new Promise(function(m){var v;(v=p.remoteConfigClient)===null||v===void 0||v.subscribe("configs.analyticsSDK.browserSDK","all",function(g,y,_){s.loggerProvider.debug("Remote configuration received:",JSON.stringify({remoteConfig:g,source:y,lastFetch:_},null,2)),g&&a_e(g,s),m()})})]):[3,3];case 2:h.sent(),h.label=3;case 3:return[4,e.prototype._init.call(this,s)];case 4:return h.sent(),this.logBrowserOptions(s),Z9(this.config.defaultTracking)?(a=Sbe(this.config),this.webAttribution=new ZSe(a,this.config),[4,this.webAttribution.init()]):[3,6];case 5:h.sent(),h.label=6;case 6:return l=lg(),u=l.ampTimestamp?Number(l.ampTimestamp):void 0,c=u?Date.now()<u:!0,d=c&&!Number.isNaN(Number(l.ampSessionId))?Number(l.ampSessionId):void 0,this.setSessionId((o=(i=(r=n.sessionId)!==null&&r!==void 0?r:d)!==null&&i!==void 0?i:this.config.sessionId)!==null&&o!==void 0?o:Date.now()),f=Lc(n.instanceName),f.identityStore.setIdentity({userId:this.config.userId,deviceId:this.config.deviceId}),this.config.offline===Hye?[3,8]:[4,this.add(s_e()).promise];case 7:h.sent(),h.label=8;case 8:return[4,this.add(new pye).promise];case 9:return h.sent(),[4,this.add(new Tbe).promise];case 10:return h.sent(),[4,this.add(new Cye).promise];case 11:return h.sent(),o_e(this.config),hbe(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding file download tracking plugin"),[4,this.add(i_e()).promise]):[3,13];case 12:h.sent(),h.label=13;case 13:return mbe(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding form interaction plugin"),[4,this.add(r_e()).promise]):[3,15];case 14:h.sent(),h.label=15;case 15:return Y9(this.config.defaultTracking)?(this.config.loggerProvider.debug("Adding page view tracking plugin"),[4,this.add(Qbe(_be(this.config))).promise]):[3,17];case 16:h.sent(),h.label=17;case 17:return Q9(this.config.autocapture)?(this.config.loggerProvider.debug("Adding user interactions plugin (autocapture plugin)"),[4,this.add(bSe(gbe(this.config))).promise]):[3,19];case 18:h.sent(),h.label=19;case 19:return eN(this.config.autocapture)?(this.config.loggerProvider.debug("Adding frustration interactions plugin"),[4,this.add(wSe(ybe(this.config))).promise]):[3,21];case 20:h.sent(),h.label=21;case 21:return J9(this.config.autocapture)?(this.config.loggerProvider.debug("Adding network tracking plugin"),[4,this.add(MSe(bbe(this.config))).promise]):[3,23];case 22:h.sent(),h.label=23;case 23:return vbe(this.config.autocapture)?(this.config.loggerProvider.debug("Adding web vitals plugin"),[4,this.add(WSe()).promise]):[3,25];case 24:h.sent(),h.label=25;case 25:return this.initializing=!1,[4,this.runQueuedFunctions("dispatchQ")];case 26:return h.sent(),f.eventBridge.setEventReceiver(function(m){p.track(m.eventType,m.eventProperties)}),[2]}})})},t.prototype.getUserId=function(){var n;return(n=this.config)===null||n===void 0?void 0:n.userId},t.prototype.setUserId=function(n){if(!this.config){this.q.push(this.setUserId.bind(this,n));return}
694this.config.loggerProvider.debug("function setUserId: ",n),(n!==this.config.userId||n===void 0)&&(this.config.userId=n,this.timeline.onIdentityChanged({userId:n}),Sye(n,this.config.instanceName))},t.prototype.getDeviceId=function(){var n;return(n=this.config)===null||n===void 0?void 0:n.deviceId},t.prototype.setDeviceId=function(n){if(!this.config){this.q.push(this.setDeviceId.bind(this,n));return}this.config.loggerProvider.debug("function setDeviceId: ",n),n!==this.config.deviceId&&(this.config.deviceId=n,this.timeline.onIdentityChanged({deviceId:n}),Eye(n,this.config.instanceName))},t.prototype.reset=function(){this.setDeviceId(ks()),this.setUserId(void 0)},t.prototype.getIdentity=function(){var n,r;return{deviceId:(n=this.config)===null||n===void 0?void 0:n.deviceId,userId:(r=this.config)===null||r===void 0?void 0:r.userId,userProperties:this.userProperties}},t.prototype.getOptOut=function(){var n;return(n=this.config)===null||n===void 0?void 0:n.optOut},t.prototype.getSessionId=function(){var n;return(n=this.config)===null||n===void 0?void 0:n.sessionId},t.prototype.setSessionId=function(n){var r,i=[];if(!this.config)return this.q.push(this.setSessionId.bind(this,n)),cr(Promise.resolve());if(n===this.config.sessionId)return cr(Promise.resolve());this.config.loggerProvider.debug("function setSessionId: ",n);var o=this.getSessionId();o!==n&&this.timeline.onSessionIdChanged(n);var s=this.config.lastEventTime,a=(r=this.config.lastEventId)!==null&&r!==void 0?r:-1;this.config.sessionId=n,this.config.lastEventTime=void 0,this.config.pageCounter=0,kx(this.config.defaultTracking)&&(o&&s&&i.push(this.track(Px,void 0,{device_id:this.previousSessionDeviceId,event_id:++a,session_id:o,time:s+1,user_id:this.previousSessionUserId}).promise),this.config.lastEventTime=this.config.sessionId);var l=this.trackCampaignEventIfNeeded(++a,i);return kx(this.config.defaultTracking)&&i.push(this.track(Rx,void 0,{event_id:l?++a:a,session_id:this.config.sessionId,time:this.config.lastEventTime}).promise),this.previousSessionDeviceId=this.config.deviceId,this.previousSessionUserId=this.config.userId,cr(Promise.all(i))},t.prototype.extendSession=function(){if(!this.config){this.q.push(this.extendSession.bind(this));return}this.config.lastEventTime=Date.now()},t.prototype.setTransport=function(n){if(!this.config){this.q.push(this.setTransport.bind(this,n));return}this.config.transportProvider=rN(n)},t.prototype.identify=function(n,r){if(My(n)){var i=n._q;n._q=[],n=ky(new ag,i)}return r!=null&&r.user_id&&this.setUserId(r.user_id),r!=null&&r.device_id&&this.setDeviceId(r.device_id),e.prototype.identify.call(this,n,r)},t.prototype.groupIdentify=function(n,r,i,o){if(My(i)){var s=i._q;i._q=[],i=ky(new ag,s)}return e.prototype.groupIdentify.call(this,n,r,i,o)},t.prototype.revenue=function(n,r){if(My(n)){var i=n._q;n._q=[],n=ky(new aye,i)}return e.prototype.revenue.call(this,n,r)},t.prototype.trackCampaignEventIfNeeded=function(n,r){if(!this.webAttribution||!this.webAttribution.shouldTrackNewCampaign)return!1;var i=this.webAttribution.generateCampaignEvent(n);return r?r.push(this.track(i).promise):this.track(i),this.config.loggerProvider.log("Tracking attribution."),!0},t.prototype.process=function(n){return ue(this,void 0,void 0,function(){var r,i,o;return oe(this,function(s){return r=Date.now(),i=V9(this.config.sessionTimeout,this.config.lastEventTime),o=this.webAttribution&&this.webAttribution.shouldSetSessionIdOnNewCampaign(),n.event_type!==Rx&&n.event_type!==Px&&(!n.session_id||n.session_id===this.getSessionId())&&(i||o?(this.setSessionId(r),o&&this.config.loggerProvider.log("Created a new session for new campaign.")):i||this.trackCampaignEventIfNeeded()),n.event_type===uo.IDENTIFY&&n.user_properties&&(this.userProperties=this.getOperationAppliedUserProperties(n.user_properties)),[2,e.prototype.process.call(this,n)]})})},t.prototype.logBrowserOptions=function(n){try{var r=ne(ne({},n),{apiKey:n.apiKey.substring(0,10)+"********"});this.config.loggerProvider.debug("Initialized Amplitude with BrowserConfig:",JSON.stringify(r))}catch(i){this.config.loggerProvider.error("Error logging browser config",i)}},t}(sye),JSe=function(){var e=new YSe;return{init:Bt(e.init.bind(e),"init",wn(e),Tn(e,["config"])),add:Bt(e.add.bind(e),"add",wn(e),Tn(e,["config.apiKey","timeline.plugins"])),remove:Bt(e.remove.bind(e),"remove",wn(e),Tn(e,["config.apiKey","timeline.plugins"])),track:Bt(e.track.bind(e),"track",wn(e),Tn(e,["config.apiKey","timeline.queue.length"])),logEvent:Bt(e.logEvent.bind(e),"logEvent",wn(e),Tn(e,["config.apiKey","timeline.queue.length"])),identify:Bt
vendor: 6,503 bytes, line 694
694(e.identify.bind(e),"identify",wn(e),Tn(e,["config.apiKey","timeline.queue.length"])),groupIdentify:Bt(e.groupIdentify.bind(e),"groupIdentify",wn(e),Tn(e,["config.apiKey","timeline.queue.length"])),setGroup:Bt(e.setGroup.bind(e),"setGroup",wn(e),Tn(e,["config.apiKey","timeline.queue.length"])),revenue:Bt(e.revenue.bind(e),"revenue",wn(e),Tn(e,["config.apiKey","timeline.queue.length"])),flush:Bt(e.flush.bind(e),"flush",wn(e),Tn(e,["config.apiKey","timeline.queue.length"])),getUserId:Bt(e.getUserId.bind(e),"getUserId",wn(e),Tn(e,["config","config.userId"])),setUserId:Bt(e.setUserId.bind(e),"setUserId",wn(e),Tn(e,["config","config.userId"])),getDeviceId:Bt(e.getDeviceId.bind(e),"getDeviceId",wn(e),Tn(e,["config","config.deviceId"])),setDeviceId:Bt(e.setDeviceId.bind(e),"setDeviceId",wn(e),Tn(e,["config","config.deviceId"])),reset:Bt(e.reset.bind(e),"reset",wn(e),Tn(e,["config","config.userId","config.deviceId"])),getSessionId:Bt(e.getSessionId.bind(e),"getSessionId",wn(e),Tn(e,["config"])),setSessionId:Bt(e.setSessionId.bind(e),"setSessionId",wn(e),Tn(e,["config"])),extendSession:Bt(e.extendSession.bind(e),"extendSession",wn(e),Tn(e,["config"])),setOptOut:Bt(e.setOptOut.bind(e),"setOptOut",wn(e),Tn(e,["config"])),setTransport:Bt(e.setTransport.bind(e),"setTransport",wn(e),Tn(e,["config"])),getIdentity:Bt(e.getIdentity.bind(e),"getIdentity",wn(e),Tn(e,["config"])),getOptOut:Bt(e.getOptOut.bind(e),"getOptOut",wn(e),Tn(e,["config"]))}};const Pn=JSe();var mBe=Pn.add;Pn.extendSession;Pn.flush;Pn.getDeviceId;Pn.getIdentity;Pn.getOptOut;Pn.getSessionId;Pn.getUserId;Pn.groupIdentify;var vBe=Pn.identify,gBe=Pn.init;Pn.logEvent;Pn.remove;Pn.reset;Pn.revenue;Pn.setDeviceId;Pn.setGroup;Pn.setOptOut;Pn.setSessionId;Pn.setTransport;var yBe=Pn.setUserId,bBe=Pn.track,QSe="@amplitude/plugin-default-event-tracking-advanced-browser",eEe="[Amplitude] Element Clicked",tEe="[Amplitude] Element Changed",nEe="[Amplitude] Element ID",rEe="[Amplitude] Element Class",KN="[Amplitude] Element Tag",XN="[Amplitude] Element Text",iEe="[Amplitude] Element Href",oEe="[Amplitude] Element Position Left",sEe="[Amplitude] Element Position Top",aEe="[Amplitude] Element Aria Label",lEe="[Amplitude] Element Attributes",ZN="[Amplitude] Element Selector",uEe="[Amplitude] Element Parent Label",YN="[Amplitude] Page URL",cEe="[Amplitude] Page Title",dEe="[Amplitude] Viewport Height",fEe="[Amplitude] Viewport Width",N2="https://app.amplitude.com",pEe="https://app.eu.amplitude.com",hEe="https://apps.stag2.amplitude.com",mEe={US:N2,EU:pEe,STAGING:hEe},vEe="https://cdn.amplitude.com/libs/visual-tagging-selector-0.2.1.js.gz",H2="amp-visual-tagging-selector-highlight",Ho,Ew;function gEe(e,t){if(e.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if(e.tagName.toLowerCase()==="html")return"html";var n={root:document.body,idName:function(o){return!0},className:function(o){return!0},tagName:function(o){return!0},attr:function(o,s){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4};Ho=ne(ne({},n),t),Ew=yEe(Ho.root,n);var r=qh(e,"all",function(){return qh(e,"two",function(){return qh(e,"one",function(){return qh(e,"none")})})});if(r){var i=eH(tH(r,e));return i.length>0&&(r=i[0]),c0(r)}else throw new Error("Selector was not found.")}function yEe(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}function qh(e,t,n){for(var r=null,i=[],o=e,s=0,a=function(){var u,c,d=Xh(bEe(o))||Xh.apply(void 0,Fe([],Ne(_Ee(o)),!1))||Xh.apply(void 0,Fe([],Ne(SEe(o)),!1))||Xh(EEe(o))||[xL()],f=CEe(o);if(t=="all")f&&(d=d.concat(d.filter(By).map(function(g){return Kh(g,f)})));else if(t=="two")d=d.slice(0,1),f&&(d=d.concat(d.filter(By).map(function(g){return Kh(g,f)})));else if(t=="one"){var p=Ne(d=d.slice(0,1),1),h=p[0];f&&By(h)&&(d=[Kh(h,f)])}else t=="none"&&(d=[xL()],f&&(d=[Kh(d[0],f)]));try{for(var m=(u=void 0,Ge(d)),v=m.next();!v.done;v=m.next()){var h=v.value;h.level=s}}catch(g){u={error:g}}finally{try{v&&!v.done&&(c=m.return)&&c.call(m)}finally{if(u)throw u.error}}if(i.push(d),i.length>=Ho.seedMinLength&&(r=AL(i,n),r))return"break";o=o.parentElement,s++};o;){var l=a();if(l==="break")break}return r||(r=AL(i,n)),!r&&n?n():r}function AL(e,t){var n,r,i=eH(QN(e));if(i.length>Ho.threshold)return t?t():null;try{for(var o=Ge(i),s=o.next();!s.done;s=o.next()){var a=s.value;if(JN(a))return a}}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function c0(e){for(var t=e[0],n=t.name,r=1;r<e.length;r++){var i=e[r].level||0;t.level===i-1?n="".concat(e[r].name," > ").concat(n):n="".concat(e[r].name," ").concat(n),t=e[r]}return n}function IL(e){return e.map(function(t){return t.penalty}).reduce(function(t,n){return t+n},0)}function JN(e){var t=c0(e);switch(Ew.querySelectorAll(t).length){case 0:throw new Error("Can't select any node with this selector: ".concat(t));case 1:return!0;default:return!1}}function bEe(e){var t=e.getAttribute("id");return t&&Ho.idName(t)?{name:"#"+CSS.escape(t),penalty:0}:null}function _Ee(e){var t=Array.from(e.attributes).filter(function(n){return Ho.attr(n.name,n.value)});return t.map(function(n){return{name:"[".concat(CSS.escape(n.name),'="').concat(CSS.escape(n.value),'"]'),penalty:.5}})}function SEe(e){var t=Array.from(e.classList).filter(Ho.className);return t.map(function(n){return{name:"."+CSS.escape(n),penalty:1}})}function EEe(e){var t=e.tagName.toLowerCase();return Ho.tagName(t)?{name:t,penalty:2}:null}function xL(){return{name:"*",penalty:3}}function CEe(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}function Kh(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function By(e){return e.name!=="html"&&!e.name.startsWith("#")}function Xh(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(wEe);return n.length>0?n:null}function wEe(e){return e!=null}function QN(e,t){var n,r,i,o,s,a;return t===void 0&&(t=[]),oe(this,function(l){switch(l.label){case 0:if(!(e.length>0))return[3,9];l.label=1;case 1:l.trys.push([1,6,7,8]),n=Ge(e[0]),r=n.next(),l.label=2;case 2:return r.done?[3,5]:(i=r.value,[5,Ge(QN(e.slice(1,e.length),t.concat(i)))]);case 3:l.sent(),l.label=4;case 4:return r=n.next(),[3,2];case 5:return[3,8];case 6:return o=l.sent(),s={error:o},[3,8];case 7:try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(s)throw s.error}
694return[7];case 8:return[3,11];case 9:return[4,t];case 10:l.sent(),l.label=11;case 11:return[2]}})}function eH(e){return Fe([],Ne(e),!1).sort(function(t,n){return IL(t)-IL(n)})}function tH(e,t,n){var r,i,o;return n===void 0&&(n={counter:0,visited:new Map}),oe(this,function(s){switch(s.label){case 0:if(!(e.length>2&&e.length>Ho.optimizedMinLength))return[3,5];r=1,s.label=1;case 1:return r<e.length-1?n.counter>Ho.maxNumberOfTries?[2]:(n.counter+=1,i=Fe([],Ne(e),!1),i.splice(r,1),o=c0(i),n.visited.has(o)?[2]:JN(i)&&TEe(i,t)?[4,i]:[3,4]):[3,5];case 2:return s.sent(),n.visited.set(o,!0),[5,Ge(tH(i,t,n))];case 3:s.sent(),s.label=4;case 4:return r++,[3,1];case 5:return[2]}})}function TEe(e,t){return Ew.querySelector(c0(e))===t}var AEe=["input","select","textarea"],nH=function(e){if(e==null)return!1;if(typeof e=="string"){var t=/^(?:(4[0-9]{12}(?:[0-9]{3})?)|(5[1-5][0-9]{14})|(6(?:011|5[0-9]{2})[0-9]{12})|(3[47][0-9]{13})|(3(?:0[0-5]|[68][0-9])[0-9]{11})|((?:2131|1800|35[0-9]{3})[0-9]{11}))$/;if(t.test((e||"").replace(/[- ]/g,"")))return!1;var n=/(^\d{3}-?\d{2}-?\d{4}$)/;if(n.test(e))return!1}return!0},IEe=function(e){return!!e&&e.nodeType===3},xEe=function(e){var t,n,r=(n=(t=e==null?void 0:e.tagName)===null||t===void 0?void 0:t.toLowerCase)===null||n===void 0?void 0:n.call(t);return!AEe.includes(r)},Cw=function(e){var t="";return xEe(e)&&e.childNodes&&e.childNodes.length&&e.childNodes.forEach(function(n){var r="";IEe(n)?n.textContent&&(r=n.textContent):r=Cw(n),t+=r.split(/(\s+)/).filter(nH).join("").replace(/[\r\n]/g," ").replace(/[ ]+/g," ").substring(0,255)}),t},rH=function(e,t){var n,r,i="";try{return i=gEe(e,{className:function(l){return l!==H2}}),i}catch(l){if(t){var o=l;t.warn("Failed to get selector with finder, use fallback strategy instead: ".concat(o.toString()))}}var s=(r=(n=e==null?void 0:e.tagName)===null||n===void 0?void 0:n.toLowerCase)===null||r===void 0?void 0:r.call(n);if(s&&(i=s),e.id)i="#".concat(e.id);else if(e.className){var a=e.className.split(" ").filter(function(l){return l!==H2}).join(".");a&&(i="".concat(i,".").concat(a))}return i},LEe=function(e,t){return!t||!t.length?!0:t.some(function(n){return typeof n=="string"?e===n:e.match(n)})},kEe=function(e,t){return e.getAttributeNames().reduce(function(n,r){if(r.startsWith(t)){var i=r.replace(t,""),o=e.getAttribute(r);i&&(n[i]=o||"")}return n},{})},MEe=function(e){return e==null||typeof e=="object"&&Object.keys(e).length===0||typeof e=="string"&&e.trim().length===0},iH=function(e){return Object.keys(e).reduce(function(t,n){var r=e[n];return MEe(r)||(t[n]=r),t},{})},oH=function(e){var t=e.parentElement;if(!t)return"";var n=t.querySelector(":scope>span,h1,h2,h3,h4,h5,h6");if(n){var r=n.textContent||"";return nH(r)?r:""}return oH(t)},LL=function(e,t){if(e&&"querySelectorAll"in e&&typeof e.querySelectorAll=="function"){var n=t.reduce(function(r,i){if(i){var o=Array.from(e.querySelectorAll(i));o.forEach(function(s){r.add(s)})}return r},new Set);return Array.from(n)}return[]},D2=function(e,t){return e?t.some(function(n){var r;return(r=e==null?void 0:e.matches)===null||r===void 0?void 0:r.call(e,n)})?e:D2(e==null?void 0:e.parentElement,t):null},REe=function(e,t){var n,r,i;if(!e)return{};var o=(i=(r=e==null?void 0:e.tagName)===null||r===void 0?void 0:r.toLowerCase)===null||i===void 0?void 0:i.call(r),s=rH(e,t),a=(n={},n[KN]=o,n[XN]=Cw(e),n[ZN]=s,n[YN]=window.location.href.split("?")[0],n);return iH(a)},PEe=function(e){return new Promise(function(t,n){var r;try{var i=document.createElement("script");i.type="text/javascript",i.async=!0,i.src=e,i.addEventListener("load",function(){t({status:!0})},{once:!0}),i.addEventListener("error",function(){n({status:!1,message:"Failed to load the script ".concat(e)})}),(r=document.head)===null||r===void 0||r.appendChild(i)}catch(o){n(o)}})},OEe=function(){function e(t){var n=t===void 0?{}:t,r=n.origin,i=r===void 0?N2:r,o=this;this.endpoint=N2,this.onSelect=function(s){o.notify({action:"element-selected",data:s})},this.onTrack=function(s,a){s==="selector-mode-changed"?o.notify({action:"track-selector-mode-changed",data:a}):s==="selector-moved"&&o.notify({action:"track-selector-moved",data:a})},this.endpoint=i}return e.prototype.notify=function(t){var n,r,i,o;(r=(n=this.logger)===null||n===void 0?void 0:n.debug)===null||r===void 0||r.call(n,"Message sent: ",JSON.stringify(t)),(o=(i=window.opener)===null||i===void 0?void 0:i.postMessage)===null||o===void 0||o.call(i,t,this.endpoint)},e.prototype.setup=function(t){var n=this,r=t===void 0?{}:t,i=r.logger,o=r.endpoint;
694this.logger=i,o&&(this.endpoint=o);var s=null;window.addEventListener("message",function(a){var l,u,c;if((u=(l=n.logger)===null||l===void 0?void 0:l.debug)===null||u===void 0||u.call(l,"Message received: ",JSON.stringify(a)),n.endpoint===a.origin){var d=a==null?void 0:a.data,f=d==null?void 0:d.action;f&&(f==="ping"?n.notify({action:"pong"}):f==="initialize-visual-tagging-selector"?PEe(vEe).then(function(){var p;s=(p=window==null?void 0:window.amplitudeVisualTaggingSelector)===null||p===void 0?void 0:p.call(window,{visualHighlightClass:H2,getEventTagProps:REe,onSelect:n.onSelect,onTrack:n.onTrack}),n.notify({action:"selector-loaded"})}).catch(function(){var p;(p=n.logger)===null||p===void 0||p.warn("Failed to initialize visual tagging selector")}):f==="close-visual-tagging-selector"&&((c=s==null?void 0:s.close)===null||c===void 0||c.call(s)))}}),this.notify({action:"page-loaded"})},e}(),$Ee=["a","button","input","select","textarea","label","[data-amp-default-track]",".amp-default-track"],NEe="data-amp-track-",_Be=function(e){e===void 0&&(e={});var t=e.cssSelectorAllowlist,n=t===void 0?$Ee:t,r=e.pageUrlAllowlist,i=e.shouldTrackEventResolver,o=e.dataAttributePrefix,s=o===void 0?NEe:o,a=e.visualTaggingOptions,l=a===void 0?{enabled:!0,messenger:new OEe}:a,u=QSe,c="enrichment",d,f=[],p=void 0,h=function(S,C,E){S.addEventListener(C,E),f.push({element:S,type:C,handler:E})},m=function(){f.forEach(function(S){var C=S.element,E=S.type,w=S.handler;C==null||C.removeEventListener(E,w)}),f=[]},v=function(S,C){var E,w,T;if(!C)return!1;var A=(w=(E=C==null?void 0:C.tagName)===null||E===void 0?void 0:E.toLowerCase)===null||w===void 0?void 0:w.call(E);if(!A)return!1;if(i)return i(S,C);if(!LEe(window.location.href,r))return!1;var L=(C==null?void 0:C.type)||"";if(typeof L=="string")switch(L.toLowerCase()){case"hidden":return!1;case"password":return!1}if(n){var x=n.some(function(M){var z;return!!(!((z=C==null?void 0:C.matches)===null||z===void 0)&&z.call(C,M))});if(!x)return!1}switch(A){case"input":case"select":case"textarea":return S==="change"||S==="click";default:{var k=(T=window==null?void 0:window.getComputedStyle)===null||T===void 0?void 0:T.call(window,C);return k&&k.getPropertyValue("cursor")==="pointer"&&S==="click"?!0:S==="click"}}},g=function(S,C){var E,w,T,A=(T=(w=C==null?void 0:C.tagName)===null||w===void 0?void 0:w.toLowerCase)===null||T===void 0?void 0:T.call(w),L=typeof C.getBoundingClientRect=="function"?C.getBoundingClientRect():{left:null,top:null},x=C.getAttribute("aria-label"),k=kEe(C,s),M=oH(C),z=rH(C,p),P=(E={},E[nEe]=C.id,E[rEe]=C.className,E[KN]=A,E[XN]=Cw(C),E[oEe]=L.left==null?null:Math.round(L.left),E[sEe]=L.top==null?null:Math.round(L.top),E[aEe]=x,E[lEe]=k,E[ZN]=z,E[uEe]=M,E[YN]=window.location.href.split("?")[0],E[cEe]=typeof document<"u"&&document.title||"",E[dEe]=window.innerHeight,E[fEe]=window.innerWidth,E);return A==="a"&&S==="click"&&C instanceof HTMLAnchorElement&&(P[iEe]=C.href),iH(P)},y=function(S,C){return ue(void 0,void 0,void 0,function(){var E,w,T,A,L;return oe(this,function(x){return C?(p=S.loggerProvider,typeof document>"u"?[2]:(E=function(k){v("click",k)&&h(k,"click",function(M){(M==null?void 0:M.target)!=(M==null?void 0:M.currentTarget)&&D2(M==null?void 0:M.target,n)!=(M==null?void 0:M.currentTarget)||C==null||C.track(eEe,g("click",k))}),v("change",k)&&h(k,"change",function(M){(M==null?void 0:M.target)!=(M==null?void 0:M.currentTarget)&&D2(M==null?void 0:M.target,n)!=(M==null?void 0:M.currentTarget)||C==null||C.track(tEe,g("change",k))})},typeof MutationObserver<"u"&&(d=new MutationObserver(function(k){k.forEach(function(M){M.addedNodes.forEach(function(z){E(z),"querySelectorAll"in z&&typeof z.querySelectorAll=="function"&&LL(z,n).map(E)})})})),w=function(){var k=LL(document.body,n);k.forEach(E),d==null||d.observe(document.body,{subtree:!0,childList:!0})},document.body?w():window.addEventListener("load",w),(A=S==null?void 0:S.loggerProvider)===null||A===void 0||A.log("".concat(u," has been successfully added.")),window.opener&&l.enabled&&((L=l.messenger)===null||L===void 0||L.setup(ne({logger:S==null?void 0:S.loggerProvider},(S==null?void 0:S.serverZone)&&{endpoint:mEe[S.serverZone]}))),[2])):((T=S==null?void 0:S.loggerProvider)===null||T===void 0||T.warn("".concat(u," plugin requires a later version of @amplitude/analytics-browser. Events are not tracked.")),[2])})})},_=function(S){return ue(void 0,void 0,void 0,function(){return oe(this,function(C){return[2,S]})})},b=function(){return ue(void 0,void 0,void 0,function(){return oe(this,function(S){return d&&d.disconnect(),m(),[2]})})};return{name:u,type:c,setup:y,execute:_,teardown:b}},sH="[Amplitude]",HEe="".concat(sH," Session Replay ID"),DEe=0,VEe=np.US,FEe={enabled:!0},aH=1e3,BEe="".concat(sH," Session Replay Debug"),UEe="amp-block",lH="amp-mask",jEe="amp-unmask",WEe="https://api-sr.amplitude.com/sessions/v2/track",GEe="https://api-sr.eu.amplitude.com/sessions/v2/track",zEe="https://api-sr.stag2.amplitude.com/sessions/v2/track",qEe=1*1e6,KEe=3e4,XEe=6e4,ZEe=500,YEe=10*1e3,uH=1024,JEe=1e3,Xs;(function(e){e.GET_SR_PROPS="get-sr-props",e.DEBUG_INFO="debug-info",e.FETCH_REQUEST="fetch-request",e.METADATA="metadata",e.TARGETING_DECISION="targeting-decision"})(Xs||(Xs={}));var V2=function(){function e(t){this.logger=t,this.log=this.getSafeMethod("log"),this.warn=this.getSafeMethod("warn"),this.error=this.getSafeMethod("error"),this.debug=this.getSafeMethod("debug")}return e.prototype.getSafeMethod=function(t){var n;if(!this.logger)return function(){};var r=this.logger[t];if(typeof r=="function"){var i=(n=r.__rrweb_original__)!==null&&n!==void 0?n:r;return i.bind(this.logger)}return function(){}},e.prototype.enable=function(t){this.logger.enable(t)}
vendor: 6,073 bytes, line 694
694,e.prototype.disable=function(){this.logger.disable()},e}(),F2="medium";function QEe(e){return e.toLowerCase()}function eCe(e){var t=e.type;return e.hasAttribute("data-rr-is-password")?"password":t?QEe(t):null}var cH=function(e,t,n){switch(t){case"light":{if(e!=="input")return!0;var r=n?eCe(n):"";return r?!!(["password","hidden","email","tel"].includes(r)||n.autocomplete.startsWith("cc-")):!1}case"medium":case"conservative":return!0;default:return cH(e,F2,n)}},tCe=function(e,t,n){var r,i,o;if(t===void 0&&(t={defaultMaskLevel:F2}),n){if(n.closest("."+lH))return!0;var s=((r=t.maskSelector)!==null&&r!==void 0?r:[]).some(function(l){return n.closest(l)});if(s)return!0;if(n.closest("."+jEe))return!1;var a=((i=t.unmaskSelector)!==null&&i!==void 0?i:[]).some(function(l){return n.closest(l)});if(a)return!1}return cH(e,(o=t.defaultMaskLevel)!==null&&o!==void 0?o:F2,n)},kL=function(e,t){return function(n,r){return tCe(e,t,r)?n.replace(/[^\s]/g,"*"):n}},nCe=function(){var e=$t();return e!=null&&e.location?e.location.href:""},rCe=function(e,t){return"".concat(t,"/").concat(e)},dH=function(e,t){return t||(e===np.STAGING?zEe:e===np.EU?GEe:WEe)},iCe=function(e){if(typeof e!="string"||e.trim()==="")return!1;var t=/^\/|^https?:\/\/[^\s]+$/;return!!t.test(e)},oCe=function(e){var t=e.replace(/[.+^${}()|[\]\\]/g,"\\$&").replace(/\*/g,".*").replace(/\?/g,".");return new RegExp("^".concat(t,"$"))},sCe=function(e){if(!e.every(function(t){return typeof t.selector=="string"&&typeof t.replacement=="string"}))throw new Error("ugcFilterRules must be an array of objects with selector and replacement properties");if(!e.every(function(t){return iCe(t.selector)}))throw new Error("ugcFilterRules must be an array of objects with valid globs")},d0=function(e,t){var n,r;try{for(var i=Ge(t),o=i.next();!o.done;o=i.next()){var s=o.value,a=oCe(s.selector);if(a.test(e))return e.replace(a,s.replacement)}}catch(l){n={error:l}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return e},fH=function(){return ue(void 0,void 0,void 0,function(){var e,t,n,r,i,o,s;return oe(this,function(a){switch(a.label){case 0:return a.trys.push([0,3,,4]),e=$t(),e?[4,e.navigator.storage.estimate()]:[3,2];case 1:return t=a.sent(),n=t.usage,r=t.quota,i=t.usageDetails,o=n?Math.round(n/uH):0,s=n&&r?Math.round((n/r+Number.EPSILON)*1e3)/1e3:0,[2,{totalStorageSize:o,percentOfQuota:s,usageDetails:JSON.stringify(i)}];case 2:return[3,4];case 3:return a.sent(),[3,4];case 4:return[2,{totalStorageSize:0,percentOfQuota:0,usageDetails:""}]}})})},pH=function(e){var t=ne({},e),n=t.apiKey;return t.apiKey="****".concat(n.substring(n.length-4)),t},hH=function(){return{flushMaxRetries:2,logLevel:Vr.Warn,loggerProvider:new tp,transportProvider:new U9}},aCe=function(e){Vt(t,e);function t(n,r){var i=this,o,s,a,l,u,c,d=hH();if(i=e.call(this,ne(ne({transportProvider:d.transportProvider,loggerProvider:new V2(r.loggerProvider||d.loggerProvider)},r),{apiKey:n}))||this,i.flushMaxRetries=r.flushMaxRetries!==void 0&&r.flushMaxRetries<=d.flushMaxRetries?r.flushMaxRetries:d.flushMaxRetries,i.apiKey=n,i.sampleRate=r.sampleRate||DEe,i.serverZone=r.serverZone||VEe,i.configServerUrl=r.configServerUrl,i.trackServerUrl=r.trackServerUrl,i.shouldInlineStylesheet=r.shouldInlineStylesheet,i.version=r.version,i.performanceConfig=r.performanceConfig||FEe,i.storeType=(o=r.storeType)!==null&&o!==void 0?o:"idb",i.applyBackgroundColorToBlockedElements=(s=r.applyBackgroundColorToBlockedElements)!==null&&s!==void 0?s:!1,i.enableUrlChangePolling=(a=r.enableUrlChangePolling)!==null&&a!==void 0?a:!1,i.urlChangePollingInterval=(l=r.urlChangePollingInterval)!==null&&l!==void 0?l:aH,i.captureDocumentTitle=(u=r.captureDocumentTitle)!==null&&u!==void 0?u:!1,r.privacyConfig&&(i.privacyConfig=r.privacyConfig),r.interactionConfig&&(i.interactionConfig=r.interactionConfig,i.interactionConfig.ugcFilterRules&&sCe(i.interactionConfig.ugcFilterRules)),r.debugMode&&(i.debugMode=r.debugMode),r.useWebWorker!==void 0)i.useWebWorker=r.useWebWorker;else{var f=r;((c=f.experimental)===null||c===void 0?void 0:c.useWebWorker)!==void 0&&(i.useWebWorker=f.experimental.useWebWorker)}return r.omitElementTags&&(i.omitElementTags=r.omitElementTags),i}return t}(H9);const lCe=function(){const t=typeof document<"u"&&document.createElement("link").relList;return t&&t.supports&&t.supports("modulepreload")?"modulepreload":"preload"}(),uCe=function(e){return"/"+e},ML={},Ht=function(t,n,r){if(!n||n.length===0)return t();const i=document.getElementsByTagName("link");return Promise.all(n.map(o=>{if(o=uCe(o),o in ML)return;ML[o]=!0;const s=o.endsWith(".css"),a=s?'[rel="stylesheet"]':"";if(!!r)for(let c=i.length-1;c>=0;c--){const d=i[c];if(d.href===o&&(!s||d.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${o}"]${a}`))return;const u=document.createElement("link");if(u.rel=s?"stylesheet":lCe,s||(u.as="script",u.crossOrigin=""),u.href=o,document.head.appendChild(u),s)return new Promise((c,d)=>{u.addEventListener("load",c),u.addEventListener("error",()=>d(new Error(`Unable to preload CSS for ${o}`)))})})).then(()=>t()).catch(o=>{const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=o,window.dispatchEvent(s),!s.defaultPrevented)throw o})};var mH=(e=>(e[e.DomContentLoaded=0]="DomContentLoaded",e[e.Load=1]="Load",e[e.FullSnapshot=2]="FullSnapshot",e[e.IncrementalSnapshot=3]="IncrementalSnapshot",e[e.Meta=4]="Meta",e[e.Custom=5]="Custom",e[e.Plugin=6]="Plugin",e))(mH||{}),vH=(e=>(e[e.MouseUp=0]="MouseUp",e[e.MouseDown=1]="MouseDown",e[e.Click=2]="Click",e[e.ContextMenu=3]="ContextMenu",e[e.DblClick=4]="DblClick",e[e.Focus=5]="Focus",e[e.Blur=6]="Blur",e[e.TouchStart=7]="TouchStart",e[e.TouchMove_Departed=8]="TouchMove_Departed",e[e.TouchEnd=9]="TouchEnd",e[e.TouchCancel=10]="TouchCancel",e))(vH||{}),cCe=function(e,t){var n=document.createDocumentFragment(),r=function(i){if(i===void 0&&(i=[]),typeof i=="string"&&(i=[i]),i=i.filter(function(o){try{n.querySelector(o)}catch{return t.warn('[session-replay-browser] omitting selector "'.concat(o,'" because it is invali
694d')),!1}return!0}),i.length!==0)return i};return e.blockSelector=r(e.blockSelector),e.maskSelector=r(e.maskSelector),e.unmaskSelector=r(e.unmaskSelector),e},dCe=function(){function e(t,n){this.localConfig=n,this.remoteConfigClient=t}return e.prototype.generateJoinedConfig=function(){var t,n,r;return ue(this,void 0,void 0,function(){var i,o,s,a,l,u,c,d,f,p,h,m,v,g,y,_,b,S=this;return oe(this,function(C){switch(C.label){case 0:i=ne({},this.localConfig),i.optOut=this.localConfig.optOut,i.captureEnabled=!0,C.label=1;case 1:return C.trys.push([1,3,,4]),[4,new Promise(function(E,w){S.remoteConfigClient.subscribe("configs.sessionReplay","all",function(T,A){var L;if(S.localConfig.loggerProvider.debug("Session Replay remote configuration received from ".concat(A,":"),JSON.stringify(T,null,2)),!T){w(new Error("No remote config received"));return}var x=T,k=x.sr_sampling_config,M=x.sr_privacy_config,z=x.sr_targeting_config,P=(L=i.interactionConfig)===null||L===void 0?void 0:L.ugcFilterRules;i.interactionConfig=x.sr_interaction_config,i.interactionConfig&&P&&(i.interactionConfig.ugcFilterRules=P),i.loggingConfig=x.sr_logging_config,(k||M||z)&&(o={},k&&(o.sr_sampling_config=k),M&&(o.sr_privacy_config=M),z&&(o.sr_targeting_config=z)),E()})})];case 2:return C.sent(),[3,4];case 3:return s=C.sent(),this.localConfig.loggerProvider.error("Failed to generate joined config: ",s),i.captureEnabled=!1,[2,{localConfig:this.localConfig,joinedConfig:i,remoteConfig:void 0}];case 4:if(!o)return[2,{localConfig:this.localConfig,joinedConfig:i,remoteConfig:o}];if(a=o.sr_sampling_config,l=o.sr_privacy_config,u=o.sr_targeting_config,a&&Object.keys(a).length>0?(Object.prototype.hasOwnProperty.call(a,"capture_enabled")?i.captureEnabled=a.capture_enabled:i.captureEnabled=!1,Object.prototype.hasOwnProperty.call(a,"sample_rate")&&(i.sampleRate=a.sample_rate)):(i.captureEnabled=!0,this.localConfig.loggerProvider.debug("Remote config successfully fetched, but no values set for project, Session Replay capture enabled.")),l){c=(t=i.privacyConfig)!==null&&t!==void 0?t:{},d={defaultMaskLevel:(r=(n=l.defaultMaskLevel)!==null&&n!==void 0?n:c.defaultMaskLevel)!==null&&r!==void 0?r:"medium",blockSelector:[],maskSelector:[],unmaskSelector:[]},f=function(E){var w,T,A,L,x,k,M,z,P,H={};typeof E.blockSelector=="string"&&(E.blockSelector=[E.blockSelector]);try{for(var q=Ge((M=E.blockSelector)!==null&&M!==void 0?M:[]),de=q.next();!de.done;de=q.next()){var se=de.value;H[se]="block"}}catch(F){w={error:F}}finally{try{de&&!de.done&&(T=q.return)&&T.call(q)}finally{if(w)throw w.error}}try{for(var W=Ge((z=E.maskSelector)!==null&&z!==void 0?z:[]),V=W.next();!V.done;V=W.next()){var se=V.value;H[se]="mask"}}catch(F){A={error:F}}finally{try{V&&!V.done&&(L=W.return)&&L.call(W)}finally{if(A)throw A.error}}try{for(var B=Ge((P=E.unmaskSelector)!==null&&P!==void 0?P:[]),Y=B.next();!Y.done;Y=B.next()){var se=Y.value;H[se]="unmask"}}catch(F){x={error:F}}finally{try{Y&&!Y.done&&(k=B.return)&&k.call(B)}finally{if(x)throw x.error}}return H},p=ne(ne({},f(c)),f(l));try{for(h=Ge(Object.entries(p)),m=h.next();!m.done;m=h.next())v=Ne(m.value,2),g=v[0],y=v[1],y==="mask"?d.maskSelector.push(g):y==="block"?d.blockSelector.push(g):y==="unmask"&&d.unmaskSelector.push(g)}catch(E){_={error:E}}finally{try{m&&!m.done&&(b=h.return)&&b.call(h)}finally{if(_)throw _.error}}i.privacyConfig=cCe(d,this.localConfig.loggerProvider)}return u&&Object.keys(u).length>0&&(i.targetingConfig=u),this.localConfig.loggerProvider.debug(JSON.stringify({name:"session replay joined config",config:pH(i)},null,2)),[2,{localConfig:this.localConfig,joinedConfig:i,remoteConfig:o}]}})})},e}(),fCe=function(e,t){return ue(void 0,void 0,void 0,function(){var n,r;return oe(this,function(i){return n=new aCe(e,t),r=new j9(e,n.loggerProvider,n.serverZone,t.configServerUrl),[2,new dCe(r,n)]})})},Li=Uint8Array,xr=Uint16Array,ip=Uint32Array,ww=new Li([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]),Tw=new Li([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]),RL=new Li([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),gH=function(e,t){for(var n=new xr(31),r=0;r<31;++r)n[r]=t+=1<<e[r-1];for(var i=new ip(n[30]),r=1;r<30;++r)for(var o=n[r];o<n[r+1];++o)i[o]=o-n[r]<<5|r;return[n,i]},yH=gH(ww,2),pCe=yH[0],B2=yH[1];pCe[28]=258,B2[258]=28;var hCe=gH(Tw,0),PL=hCe[1],U2=new xr(32768);for(var fn=0;fn<32768;++fn){var Ds=(fn&43690)>>>1|(fn&21845)<<1;Ds=(Ds&52428)>>>2|(Ds&13107)<<2,Ds=(Ds&61680)>>>4|(Ds&3855)<<4,U2[fn]=((Ds&65280)>>>
vendor: 43,123 bytes, line 694
6948|(Ds&255)<<8)>>>1}var pf=function(e,t,n){for(var r=e.length,i=0,o=new xr(t);i<r;++i)++o[e[i]-1];var s=new xr(t);for(i=0;i<t;++i)s[i]=s[i-1]+o[i-1]<<1;var a;if(n){a=new xr(1<<t);var l=15-t;for(i=0;i<r;++i)if(e[i])for(var u=i<<4|e[i],c=t-e[i],d=s[e[i]-1]++<<c,f=d|(1<<c)-1;d<=f;++d)a[U2[d]>>>l]=u}else for(a=new xr(r),i=0;i<r;++i)a[i]=U2[s[e[i]-1]++]>>>15-e[i];return a},Rl=new Li(288);for(var fn=0;fn<144;++fn)Rl[fn]=8;for(var fn=144;fn<256;++fn)Rl[fn]=9;for(var fn=256;fn<280;++fn)Rl[fn]=7;for(var fn=280;fn<288;++fn)Rl[fn]=8;var vg=new Li(32);for(var fn=0;fn<32;++fn)vg[fn]=5;var mCe=pf(Rl,9,0),vCe=pf(vg,5,0),bH=function(e){return(e/8>>0)+(e&7&&1)},_H=function(e,t,n){(n==null||n>e.length)&&(n=e.length);var r=new(e instanceof xr?xr:e instanceof ip?ip:Li)(n-t);return r.set(e.subarray(t,n)),r},Zo=function(e,t,n){n<<=t&7;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8},Cd=function(e,t,n){n<<=t&7;var r=t/8>>0;e[r]|=n,e[r+1]|=n>>>8,e[r+2]|=n>>>16},Uy=function(e,t){for(var n=[],r=0;r<e.length;++r)e[r]&&n.push({s:r,f:e[r]});var i=n.length,o=n.slice();if(!i)return[new Li(0),0];if(i==1){var s=new Li(n[0].s+1);return s[n[0].s]=1,[s,1]}n.sort(function(S,C){return S.f-C.f}),n.push({s:-1,f:25001});var a=n[0],l=n[1],u=0,c=1,d=2;for(n[0]={s:-1,f:a.f+l.f,l:a,r:l};c!=i-1;)a=n[n[u].f<n[d].f?u++:d++],l=n[u!=c&&n[u].f<n[d].f?u++:d++],n[c++]={s:-1,f:a.f+l.f,l:a,r:l};for(var f=o[0].s,r=1;r<i;++r)o[r].s>f&&(f=o[r].s);var p=new xr(f+1),h=j2(n[c-1],p,0);if(h>t){var r=0,m=0,v=h-t,g=1<<v;for(o.sort(function(C,E){return p[E.s]-p[C.s]||C.f-E.f});r<i;++r){var y=o[r].s;if(p[y]>t)m+=g-(1<<h-p[y]),p[y]=t;else break}for(m>>>=v;m>0;){var _=o[r].s;p[_]<t?m-=1<<t-p[_]++-1:++r}for(;r>=0&&m;--r){var b=o[r].s;p[b]==t&&(--p[b],++m)}h=t}return[new Li(p),h]},j2=function(e,t,n){return e.s==-1?Math.max(j2(e.l,t,n+1),j2(e.r,t,n+1)):t[e.s]=n},OL=function(e){for(var t=e.length;t&&!e[--t];);for(var n=new xr(++t),r=0,i=e[0],o=1,s=function(l){n[r++]=l},a=1;a<=t;++a)if(e[a]==i&&a!=t)++o;else{if(!i&&o>2){for(;o>138;o-=138)s(32754);o>2&&(s(o>10?o-11<<5|28690:o-3<<5|12305),o=0)}else if(o>3){for(s(i),--o;o>6;o-=6)s(8304);o>2&&(s(o-3<<5|8208),o=0)}for(;o--;)s(i);o=1,i=e[a]}return[n.subarray(0,r),t]},wd=function(e,t){for(var n=0,r=0;r<t.length;++r)n+=e[r]*t[r];return n},W2=function(e,t,n){var r=n.length,i=bH(t+2);e[i]=r&255,e[i+1]=r>>>8,e[i+2]=e[i]^255,e[i+3]=e[i+1]^255;for(var o=0;o<r;++o)e[i+o+4]=n[o];return(i+4+r)*8},$L=function(e,t,n,r,i,o,s,a,l,u,c){Zo(t,c++,n),++i[256];for(var d=Uy(i,15),f=d[0],p=d[1],h=Uy(o,15),m=h[0],v=h[1],g=OL(f),y=g[0],_=g[1],b=OL(m),S=b[0],C=b[1],E=new xr(19),w=0;w<y.length;++w)E[y[w]&31]++;for(var w=0;w<S.length;++w)E[S[w]&31]++;for(var T=Uy(E,7),A=T[0],L=T[1],x=19;x>4&&!A[RL[x-1]];--x);var k=u+5<<3,M=wd(i,Rl)+wd(o,vg)+s,z=wd(i,f)+wd(o,m)+s+14+3*x+wd(E,A)+(2*E[16]+3*E[17]+7*E[18]);if(k<=M&&k<=z)return W2(t,c,e.subarray(l,l+u));var P,H,q,de;if(Zo(t,c,1+(z<M)),c+=2,z<M){P=pf(f,p,0),H=f,q=pf(m,v,0),de=m;var se=pf(A,L,0);Zo(t,c,_-257),Zo(t,c+5,C-1),Zo(t,c+10,x-4),c+=14;for(var w=0;w<x;++w)Zo(t,c+3*w,A[RL[w]]);c+=3*x;for(var W=[y,S],V=0;V<2;++V)for(var B=W[V],w=0;w<B.length;++w){var Y=B[w]&31;Zo(t,c,se[Y]),c+=A[Y],Y>15&&(Zo(t,c,B[w]>>>5&127),c+=B[w]>>>12)}}else P=mCe,H=Rl,q=vCe,de=vg;for(var w=0;w<a;++w)if(r[w]>255){var Y=r[w]>>>18&31;Cd(t,c,P[Y+257]),c+=H[Y+257],Y>7&&(Zo(t,c,r[w]>>>23&31),c+=ww[Y]);var F=r[w]&31;Cd(t,c,q[F]),c+=de[F],F>3&&(Cd(t,c,r[w]>>>5&8191),c+=Tw[F])}else Cd(t,c,P[r[w]]),c+=H[r[w]];return Cd(t,c,P[256]),c+H[256]},gCe=new ip([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]),yCe=function(e,t,n,r,i,o){var s=e.length,a=new Li(r+s+5*(1+Math.floor(s/7e3))+i),l=a.subarray(r,a.length-i),u=0;if(!t||s<8)for(var c=0;c<=s;c+=65535){var d=c+65535;d<s?u=W2(l,u,e.subarray(c,d)):(l[c]=o,u=W2(l,u,e.subarray(c,s)))}else{for(var f=gCe[t-1],p=f>>>13,h=f&8191,m=(1<<n)-1,v=new xr(32768),g=new xr(m+1),y=Math.ceil(n/3),_=2*y,b=function(ee){return(e[ee]^e[ee+1]<<y^e[ee+2]<<_)&m},S=new ip(25e3),C=new xr(288),E=new xr(32),w=0,T=0,c=0,A=0,L=0,x=0;c<s;++c){var k=b(c),M=c&32767,z=g[k];if(v[M]=z,g[k]=M,L<=c){var P=s-c;if((w>7e3||A>24576)&&P>423){u=$L(e,l,0,S,C,E,T,A,x,c-x,u),A=w=T=0,x=c;for(var H=0;H<286;++H)C[H]=0;for(var H=0;H<30;++H)E[H]=0}var q=2,de=0,se=h,W=M-z&32767;if(P>2&&k==b(c-W))for(var V=Math.min(p,P)-1,B=Math.min(32767,c),Y=Math.min(258,P);W<=B&&--se&&M!=z;){if(e[c+q]==e[c+q-W]){for(var F=0;F<Y&&e[c+F]==e[c+F-W];++F);if(F>q){if(q=F,de=W,F>V)break;for(var Q=Math.min(W,F-2),re=0,H=0;H<Q;++H){var be=c-W+H+32768&32767,Le=v[be],Me=be-Le+32768&32767;Me>re&&(re=Me,z=be)}}}M=z,z=v[M],W+=M-z+32768&32767}if(de){S[A++]=268435456|B2[q]<<18|PL[de];var He=B2[q]&31,$=PL[de]&31;T+=ww[He]+Tw[$],++C[257+He],++E[$],L=c+q,++w}else S[A++]=e[c],++C[e[c]]}}u=$L(e,l,o,S,C,E,T,A,x,c-x,u)}return _H(a,0,r+bH(u)+i)},bCe=function(){var e=1,t=0;return{p:function(n){for(var r=e,i=t,o=n.length,s=0;s!=o;){for(var a=Math.min(s+5552,o);s<a;++s)r+=n[s],i+=r;r%=65521,i%=65521}e=r,t=i},d:function(){return(e>>>8<<16|(t&255)<<8|t>>>8)+((e&255)<<23)*2}}},_Ce=function(e,t,n,r,i){return yCe(e,t.level==null?6:t.level,t.mem==null?Math.ceil(Math.max(8,Math.min(13,Math.log(e.length)))*1.5):12+t.mem,n,r,!0)},SCe=function(e,t,n){for(;n;++t)e[t]=n,n>>>=8},ECe=function(e,t){var n=t.level,r=n==0?0:n<6?1:n==9?3:2;e[0]=120,e[1]=r<<6|(r?32-2*r:1)};function CCe(e,t){t===void 0&&(t={});var n=bCe();n.p(e);var r=_Ce(e,t,2,4);return ECe(r,t),SCe(r,r.length-4,n.d()),r}function wCe(e,t){var n=e.length;if(!t&&typeof TextEncoder<"u")return new TextEncoder().encode(e);for(var r=new Li(e.length+(e.length>>>1)),i=0,o=function(u){r[i++]=u},s=0;s<n;++s){if(i+5>r.length){var a=new Li(i+8+(n-s<<1));a.set(r),r=a}var l=e.charCodeAt(s);l<128||t?o(l):l<2048?(o(192|l>>>6),o(128|l&63)):l>55295&&l<57344?(l=65536+(l&1047552)|e.charCodeAt(++s)&1023,o(240|l>>>18),o(128|l>>>12&63),o(128|l>>>6&63),o(128|l&63)):(o(224|l>>>12),o(128|l>>>6&63),o(128|l&63))}return _H(r,0,i)}function TCe(e,t){var n="";if(!t&&typeof TextDecoder<"u")return new TextDecoder().decode(e);for(var r=0;r<e.length;){var i=e[r++];i<128||t?n+=String.fromCharCode(i):i<224?n+=String.fromCharCode((i&31)<<6|e[r++]&63):i<240?n+=String.fromCharCode((i&15)<<12|(e[r++]&63)<<6|e[r++]&63):(i=((i&15)<<18|(e[r++]&63)<<12|(e[r++]&63)<<6|e[r++]&63)-65536,n+=String.fromCharCode(55296|i>>10,56320|i&1023))}return n}const ACe="v1",ICe=e=>{const t={...e,v:ACe};return TCe(CCe(wCe(JSON.stringify(t))),!0)};var xCe=2e3,LCe=function(){function e(t,n,r,i){var o=this,s;this.taskQueue=[],this.isProcessing=!1,this.compressEvent=function(d){var f=ICe(d);return JSON.stringify(f)},this.addCompressedEventToManager=function(d,f){o.eventsManager&&o.deviceId&&o.eventsManager.addEvent({event:{type:"replay",data:d},sessionId:f,deviceId:o.deviceId})},this.addCompressedEvent=function(d,f){if(o.worker)try{o.worker.postMessage({event:d,sessionId:f})}catch(h){h.name==="DataCloneError"?o.worker.postMessage(JSON.stringify({event:d,sessionId:f})):o.config.loggerProvider.warn("Unexpected error while posting message to worker:",h)}else{var p=o.compressEvent(d);o.addCompressedEventToManager(p,f)}},this.terminate=function(){var d;(d=o.worker)===null||d===void 0||d.terminate()};var a=$t();if(this.canUseIdleCallback=a&&"requestIdleCallback"in a,this.eventsManager=t,this.config=n,this.deviceId=r,this.timeout=((s=n.performanceConfig)===null||s===void 0?void 0:s.timeout)||xCe,i){n.loggerProvider.log("Enabling web worker for compression");try{var l=new Blob([i],{type:"application/javascript"}),u=URL.createObjectURL(l),c=new Worker(u);c.onerror=function(d){n.loggerProvider.error("Worker failed, falling back to non-worker compression:",d),c.terminate(),o.worker=void 0},c.onmessage=function(d){var f=d.data,p=f.compressedEvent,h=f.sessionId;o.addCompressedEventToManager(p,h)},this.worker=c}catch(d){n.loggerProvider.error("Failed to create worker, falling back to non-worker compression:",d)}}}return e.prototype.scheduleIdleProcessing=function(){var t=this;this.isProcessing||(this.isProcessing=!0,requestIdleCallback(function(n){t.processQueue(n)},{timeout:this.timeout}))},e.prototype.enqueueEvent=function(t,n){var r;this.canUseIdleCallback&&(!((r=this.config.performanceConfig)===null||r===void 0)&&r.enabled)?(this.config.loggerProvider.debug("Enqueuing event for processing during idle time."),this.taskQueue.push({event:t,sessionId:n}),this.scheduleIdleProcessing()):(this.config.loggerProvider.debug("Processing event without idle callback."),this.addCompressedEvent(t,n))},e.prototype.processQueue=function(t){for(var n=this;this.taskQueue.length>0&&(t.timeRemaining()>0||t.didTimeout);){var r=this.taskQueue.shift();if(r){var i=r.event,o=r.sessionId;this.addCompressedEvent(i,o)}}this.taskQueue.length>0?requestIdleCallback(function(s){n.processQueue(s)},{timeout:this.timeout}):this.isProcessing=!1},e}(),kCe="Unexpected error occurred",MCe="Network error occurred, event batch rejected",RCe="Session replay event batch rejected due to exceeded retry count",pu="Failed to store session replay events in IndexedDB",PCe="Session replay event batch not sent due to missing device ID",OCe="Session replay event batch not sent due to missing api key",G2="1.31.0",$Ce=function(){function e(t){var n=t.trackServerUrl,r=t.loggerProvider,i=t.payloadBatcher;this.storageKey="",this.retryTimeout=1e3,this.scheduled=null,this.queue=[],this.loggerProvider=r,this.payloadBatcher=i||function(o){return o},this.trackServerUrl=n}return e.prototype.sendEventsList=function(t){this.addToQueue(ne(ne({},t),{attempts:0,timeout:0}))},e.prototype.addToQueue=function(){for(var t=this,n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];var i=n.filter(function(o){return o.attempts<(o.flushMaxRetries||0)?(o.attempts+=1,!0):(t.completeRequest({context:o,err:RCe}),!1)});i.forEach(function(o){if(t.queue=t.queue.concat(o),o.timeout===0){t.schedule(0);return}setTimeout(function(){o.timeout=0,t.schedule(0)},o.timeout)})},e.prototype.schedule=function(t){var n=this;this.scheduled||(this.scheduled=setTimeout(function(){n.flush(!0).then(function(){n.queue.length>0&&n.schedule(t)})},t))},e.prototype.flush=function(t){return t===void 0&&(t=!1),ue(this,void 0,void 0,function(){var n,r,i=this;return oe(this,function(o){switch(o.label){case 0:return n=[],r=[],this.queue.forEach(function(s){return s.timeout===0?n.push(s):r.push(s)}),this.queue=r,this.scheduled&&(clearTimeout(this.scheduled),this.scheduled=null),[4,Promise.all(n.map(function(s){return i.send(s,t)}))];case 1:return o.sent(),[2]}})})},e.prototype.send=function(t,n){var r,i;return n===void 0&&(n=!0),ue(this,void 0,void 0,function(){var o,s,a,l,u,c,d,f,p,h,m,v,g;return oe(this,function(y){switch(y.label){case 0:if(o=t.apiKey,!o)return[2,this.completeRequest({context:t,err:OCe})];if(s=t.deviceId,!s)return[2,this.completeRequest({context:t,err:PCe})];if(a=nCe(),l=G2,u=t.sampleRate,c=new URLSearchParams({device_id:s,session_id:"".concat(t.sessionId),type:"".concat(t.type)}),d="".concat(((r=t.version)===null||r===void 0?void 0:r.type)||"standalone","/").concat(((i=t.version)===null||i===void 0?void 0:i.version)||l),f=this.payloadBatcher({version:1,events:t.events}),f.events.length===0)return this.completeRequest({context:t}),[2];y.label=1;case 1:return y.trys.push([1,3,,4]),p={headers:{"Content-Type":"application/json",Accept:"*/*",Authorization:"Bearer ".concat(o),"X-Client-Version":l,"X-Client-Library":d,"X-Client-Url":a.substring(0,JEe),"X-Client-Sample-Rate":"".concat(u)},body:JSON.stringify(f),method:"POST"},h="".concat(dH(t.serverZone,this.trackServerUrl),"?").concat(c.toString()),[4,fetch(h,p)];case 2:if(m=y.sent(),m===null)return this.completeRequest({context:t,err:kCe}),[2];if(n)this.handleReponse(m.status,t);else{v="";try{v=JSON.stringify(m.body,null,2)}catch{}this.completeRequest({context:t,success:"".concat(m.status,": ").concat(v)})}return[3,4];case 3:return g=y.sent(),this.completeRequest({context:t,err:g}),[3,4];case 4:return[2]}})})},e.prototype.handleReponse=function(t,n){var r=new s0().buildStatus(t);switch(r){case xn.Success:this.handleSuccessResponse(n);break;case xn.Failed:this.handleOtherResponse(n);break;default:this.completeRequest({context:n,err:MCe})}},e.prototype.handleSuccessResponse=function(t){var n=Math.round(new Blob(t.events).size/uH);this.completeRequest({context:t,success:"Session replay event batch tracked successfully for session id ".concat(t.sessionId,", size of events: ").concat(n," KB")})},e.prototype.handleOtherResponse=function(t){this.addToQueue(ne(ne({},t),{timeout:t.attempts*this.retryTimeout}))},e.prototype.completeRequest=function(t){var n=t.context,r=t.err,i=t.success;n.onComplete(),r?this.loggerProvider.warn(r):i&&this.loggerProvider.log(i)},e}();const z2=(e,t)=>t.some(n=>e instanceof n);let NL,HL;function NCe(){return NL||(NL=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function HCe(){return HL||(HL=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const q2=new WeakMap,jy=new WeakMap,f0=new WeakMap;function DCe(e){const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("success",o),e.removeEventListener("error",s)},o=()=>{n(pl(e.result)),i()},s=()=>{r(e.error),i()};e.addEventListener("success",o),e.addEventListener("error",s)});return f0.set(t,e),t}function VCe(e){if(q2.has(e))return;const t=new Promise((n,r)=>{const i=()=>{e.removeEventListener("complete",o),e.removeEventListener("error",s),e.removeEventListener("abort",s)},o=()=>{n(),i()},s=()=>{r(e.error||new DOMException("AbortError","AbortError")),i()};e.addEventListener("complete",o),e.addEventListener("error",s),e.addEventListener("abort",s)});q2.set(e,t)}let K2={get(e,t,n){if(e instanceof IDBTransaction){if(t==="done")return q2.get(e);if(t==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return pl(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in e}};function SH(e){K2=e(K2)}function FCe(e){return HCe().includes(e)?function(...t){return e.apply(X2(this),t),pl(this.request)}:function(...t){return pl(e.apply(X2(this),t))}}function BCe(e){return typeof e=="function"?FCe(e):(e instanceof IDBTransaction&&VCe(e),z2(e,NCe())?new Proxy(e,K2):e)}function pl(e){if(e instanceof IDBRequest)return DCe(e);if(jy.has(e))return jy.get(e);const t=BCe(e);return t!==e&&(jy.set(e,t),f0.set(t,e)),t}const X2=e=>f0.get(e);function EH(e,t,{blocked:n,upgrade:r,blocking:i,terminated:o}={}){const s=indexedDB.open(e,t),a=pl(s);return r&&s.addEventListener("upgradeneeded",l=>{r(pl(s.result),l.oldVersion,l.newVersion,pl(s.transaction),l)}),n&&s.addEventListener("blocked",l=>n(l.oldVersion,l.newVersion,l)),a.then(l=>{o&&l.addEventListener("close",()=>o()),i&&l.addEventListener("versionchange",u=>i(u.oldVersion,u.newVersion,u))}).catch(()=>{}),a}const UCe=["get","getKey","getAll","getAllKeys","count"],jCe=["put","add","delete","clear"],Wy=new Map;function DL(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t=="string"))return;if(Wy.get(t))return Wy.get(t);const n=t.replace(/FromIndex$/,""),r=t!==n,i=jCe.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||UCe.includes(n)))return;const o=async function(s,...a){const l=this.transaction(s,i?"readwrite":"readonly");let u=l.store;return r&&(u=u.index(a.shift())),(await Promise.all([u[n](...a),i&&l.done]))[0]};return Wy.set(t,o),o}SH(e=>({...e,get:(t,n,r)=>DL(t,n)||e.get(t,n,r),has:(t,n)=>!!DL(t,n)||e.has(t,n)}));const WCe=["continue","continuePrimaryKey","advance"],VL={},Z2=new WeakMap,CH=new WeakMap,GCe={get(e,t){if(!WCe.includes(t))return e[t];let n=VL[t];return n||(n=VL[t]=function(...r){Z2.set(this,CH.get(this)[t](...r))}),n}};async function*zCe(...e){let t=this;if(t instanceof IDBCursor||(t=await t.openCursor(...e)),!t)return;t=t;const n=new Proxy(t,GCe);for(CH.set(n,t),f0.set(n,X2(t));t;)yield n,t=await(Z2.get(n)||t.continue()),Z2.delete(n)}function FL(e,t){return t===Symbol.asyncIterator&&z2(e,[IDBIndex,IDBObjectStore,IDBCursor])||t==="iterate"&&z2(e,[IDBIndex,IDBObjectStore])}SH(e=>({...e,get(t,n,r){return FL(t,n)?zCe:e.get(t,n,r)},has(t,n){return FL(t,n)||e.has(t,n)}}));var wH=function(){function e(t){var n=this,r,i,o;this.minInterval=ZEe,this.maxInterval=YEe,this.maxPersistedEventsSize=qEe,this.interval=this.minInterval,this._timeAtLastSplit=Date.now(),this.shouldSplitEventsList=function(s,a){var l=n.getStringSize(a),u=n.getEventsArraySize(s);return u+l>=n.maxPersistedEventsSize?!0:Date.now()-n.timeAtLastSplit>n.interval&&s.length?(n.interval=Math.min(n.maxInterval,n.interval+n.minInterval),n._timeAtLastSplit=Date.now(),!0):!1},this.loggerProvider=t.loggerProvider,this.minInterval=(r=t.minInterval)!==null&&r!==void 0?r:this.minInterval,this.maxInterval=(i=t.maxInterval)!==null&&i!==void 0?i:this.maxInterval,this.maxPersistedEventsSize=(o=t.maxPersistedEventsSize)!==null&&o!==void 0?o:this.maxPersistedEventsSize}return Object.defineProperty(e.prototype,"timeAtLastSplit",{get:function(){return this._timeAtLastSplit},enumerable:!1,configurable:!0}),e.prototype.getStringSize=function(t){return t.length},e.prototype.getEventsArraySize=function(t){var n,r,i=0;try{for(var o=Ge(t),s=o.next();!s.done;s=o.next()){var a=s.value;i+=this.getStringSize(a)}}catch(u){n={error:u}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}var l=2+Math.max(0,t.length-1)+t.length*2;return i+l},e}(),gg;(function(e){e.RECORDING="recording",e.SENT="sent"})(gg||(gg={}));var hf="sessionCurrentSequence",mf="sequencesToSend",qCe=function(){var e=$t();return new Promise(function(t,n){if(!e)return n(new Error("Global scope not found"));if(!e.indexedDB)return n(new Error("Session Replay: cannot find indexedDB"));try{var r=e.indexedDB.open("keyval-store"),i=!1;r.onupgradeneeded=function(){r.result.version===1&&(i=!0)},r.onsuccess=function(){if(i){try{r.result.close()}catch{}try{e.indexedDB.deleteDatabase("keyval-store")}catch{}t();return}t(r.result)},r.onerror=function(o){var s;if(((s=r.error)===null||s===void 0?void 0:s.name)==="AbortError"){o.preventDefault(),t();return}n(r.error)}}catch(o){n(o)}})},BL=function(e){return ue(void 0,void 0,void 0,function(){var t,n;return oe(this,function(r){switch(r.label){case 0:return e.length>0?(t=10,n=e.splice(0,t),[4,Promise.all(n)]):[3,2];case 1:return r.sent(),[3,0];case 2:return[2]}})})},KCe=function(e){var t,n;return e.objectStoreNames.contains(hf)||(n=e.createObjectStore(hf,{keyPath:"sessionId"})),e.objectStoreNames.contains(mf)||(t=e.createObjectStore(mf,{keyPath:"sequenceId",autoIncrement:!0}),t.createIndex("sessionId","sessionId")),{sequencesStore:t,currentSequenceStore:n}},XCe=function(e){return ue(void 0,void 0,void 0,function(){return oe(this,function(t){switch(t.label){case 0:return[4,EH(e,1,{upgrade:KCe})];case 1:return[2,t.sent()]}})})},ZCe=function(e){Vt(t,e);function t(n){var r=e.call(this,n)||this;return r.getSequencesToSend=function(){return ue(r,void 0,void 0,function(){var i,o,s,a,l,u;return oe(this,function(c){switch(c.label){case 0:return c.trys.push([0,5,,6]),i=[],[4,this.db.transaction("sequencesToSend").store.openCursor()];case 1:o=c.sent(),c.label=2;case 2:return o?(s=o.value,a=s.sessionId,l=s.events,i.push({events:l,sequenceId:o.key,sessionId:a}),[4,o.continue()]):[3,4];case 3:return o=c.sent(),[3,2];case 4:return[2,i];case 5:return u=c.sent(),this.loggerProvider.warn("".concat(pu,": ").concat(u)),[3,6];case 6:return[2,void 0]}})})},r.storeCurrentSequence=function(i){return ue(r,void 0,void 0,function(){var o,s,a;return oe(this,function(l){switch(l.label){case 0:return l.trys.push([0,4,,5]),[4,this.db.get(hf,i)];case 1:return o=l.sent(),o?[4,this.db.put(mf,{sessionId:i,events:o.events})]:[2,void 0];case 2:return s=l.sent(),[4,this.db.put(hf,{sessionId:i,events:[]})];case 3:return l.sent(),[2,ne(ne({},o),{sessionId:i,sequenceId:s})];case 4:return a=l.sent(),this.loggerProvider.warn("".concat(pu,": ").concat(a)),[3,5];case 5:return[2,void 0]}})})},r.addEventToCurrentSequence=function(i,o){return ue(r,void 0,void 0,function(){var s,a,l,u,c,d;return oe(this,function(f){switch(f.label){case 0:return f.trys.push([0,10,,11]),s=this.db.transaction(hf,"readwrite"),[4,s.store.get(i)];case 1:return a=f.sent(),a?[3,3]:[4,s.store.put({sessionId:i,events:[o]})];case 2:return f.sent(),[2];case 3:return l=void 0,this.shouldSplitEventsList(a.events,o)?(l=a.events,[4,s.store.put({sessionId:i,events:[o]})]):[3,5];case 4:return f.sent(),[3,7];case 5:return u=a.events.concat(o),[4,s.store.put({sessionId:i,events:u})];case 6:f.sent(),f.label=7;case 7:return[4,s.done];case 8:return f.sent(),l?[4,this.storeSendingEvents(i,l)]:[2,void 0];case 9:return c=f.sent(),c?[2,{events:l,sessionId:i,sequenceId:c}]:[2,void 0];case 10:return d=f.sent(),this.loggerProvider.warn("".concat(pu,": ").concat(d)),[3,11];case 11:return[2,void 0]}})})},r.storeSendingEvents=function(i,o){return ue(r,void 0,void 0,function(){var s,a;return oe(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4,this.db.put(mf,{sessionId:i,events:o})];case 1:return s=l.sent(),[2,s];case 2:return a=l.sent(),this.loggerProvider.warn("".concat(pu,": ").concat(a)),[3,3];case 3:return[2,void 0]}})})},r.cleanUpSessionEventsStore=function(i,o){return ue(r,void 0,void 0,function(){var s;return oe(this,function(a){switch(a.label){case 0:if(!o)return[2];a.label=1;case 1:return a.trys.push([1,3,,4]),[4,this.db.delete(mf,o)];case 2:return a.sent(),[3,4];case 3:return s=a.sent(),this.loggerProvider.warn("".concat(pu,": ").concat(s)),[3,4];case 4:return[2]}})})},r.transitionFromKeyValStore=function(i){return ue(r,void 0,void 0,function(){var o,s,a,l,u,c,d,f,p=this;return oe(this,function(h){switch(h.label){case 0:return h.trys.push([0,6,,7]),[4,qCe()];case 1:if(o=h.sent(),!o)return[2];s=function(m,v){return ue(p,void 0,void 0,function(){var g,y,_=this;return oe(this,function(b){switch(b.label){case 0:return g=v.sessionSequences,y=[],Object.keys(g).forEach(function(S){var C=parseInt(S,10),E=g[C];if(C===v.currentSequenceId){var w=E.events.map(function(T){return ue(_,void 0,void 0,function(){return oe(this,function(A){return[2,this.addEventToCurrentSequence(m,T)]})})});y.push.apply(y,Fe([],Ne(w),!1))}else E.status!==gg.SENT&&y.push(_.storeSendingEvents(m,E.events))}),[4,BL(y)];case 1:return b.sent(),[2]}})})},a="".concat(R9,"_").concat(this.apiKey.substring(0,10)),h.label=2;case 2:return h.trys.push([2,4,,5]),l=o.transaction("keyval").objectStore("keyval").getAll(a),u=new Promise(function(m){l.onsuccess=function(v){return ue(p,void 0,void 0,function(){var g,y,_,b=this;return oe(this,function(S){switch(S.label){case 0:return g=v&&v.target.result,y=g&&g[0],y?(_=[],Object.keys(y).forEach(function(C){var E=parseInt(C,10),w=y[E];if(i===E)_.push(s(E,w));else{var T=w.sessionSequences;Object.keys(T).forEach(function(A){var L=parseInt(A,10);T[L].status!==gg.SENT&&_.push(b.storeSendingEvents(E,T[L].events))})}}),[4,BL(_)]):[3,2];case 1:S.sent(),S.label=2;case 2:return m(),[2]}})})}}),[4,u];case 3:return h.sent(),c=$t(),c&&c.indexedDB.deleteDatabase("keyval-store"),[3,5];case 4:return d=h.sent(),this.loggerProvider.warn("Failed to transition session replay events from keyval to new store: ".concat(d)),[3,5];case 5:return[3,7];case 6:return f=h.sent(),this.loggerProvider.warn("Failed to access keyval store: ".concat(f,". For more information, visit: https://www.docs.developers.amplitude.com/session-replay/sdks/standalone/#indexeddb-best-practices")),[3,7];case 7:return[2]}})})},r.apiKey=n.apiKey,r.db=n.db,r}return t.new=function(n,r,i){return ue(this,void 0,void 0,function(){var o,s,a,l,u;return oe(this,function(c){switch(c.label){case 0:return c.trys.push([0,3,,4]),o=n==="replay"?"":"_".concat(n),s="".concat(r.apiKey.substring(0,10),"_amp_session_replay_events").concat(o),[4,XCe(s)];case 1:return a=c.sent(),l=new t(ne(ne({},r),{db:a})),[4,l.transitionFromKeyValStore(i)];case 2:return c.sent(),[2,l];case 3:return u=c.sent(),r.loggerProvider.warn("".concat(pu,": ").concat(u)),[3,4];case 4:return[2]}})})},t.prototype.getCurrentSequenceEvents=function(n){return ue(this,void 0,void 0,function(){var s,r,i,o,s,a,l,u;return oe(this,function(c){switch(c.label){case 0:return n?[4,this.db.get("sessionCurrentSequence",n)]:[3,2];case 1:return s=c.sent(),s?[2,[s]]:[2,void 0];case 2:r=[],c.label=3;case 3:return c.trys.push([3,8,9,10]),[4,this.db.getAll("sessionCurrentSequence")];case 4:i=Ge.apply(void 0,[c.sent()]),o=i.next(),c.label=5;case 5:if(o.done)return[3,7];s=o.value,r.push(s),c.label=6;case 6:return o=i.next(),[3,5];case 7:return[3,10];case 8:return a=c.sent(),l={error:a},[3,10];case 9:try{o&&!o.done&&(u=i.return)&&u.call(i)}finally{if(l)throw l.error}return[7];case 10:return[2,r]}})})},t}(wH),YCe=function(e){Vt(t,e);function t(){var n=e!==null&&e.apply(this,arguments)||this;return n.finalizedSequences={},n.sequences={},n.sequenceId=0,n}return t.prototype.resetCurrentSequence=function(n){this.sequences[n]=[]},t.prototype.addSequence=function(n){var r=this.sequenceId++,i=Fe([],Ne(this.sequences[n]),!1);return this.finalizedSequences[r]={sessionId:n,events:i},this.resetCurrentSequence(n),{sequenceId:r,events:i,sessionId:n}},t.prototype.getSequencesToSend=function(){return ue(this,void 0,void 0,function(){return oe(this,function(n){return[2,Object.entries(this.finalizedSequences).map(function(r){var i=Ne(r,2),o=i[0],s=i[1],a=s.sessionId,l=s.events;return{sequenceId:Number(o),sessionId:a,events:l}})]})})},t.prototype.storeCurrentSequence=function(n){return ue(this,void 0,void 0,function(){return oe(this,function(r){return this.sequences[n]?[2,this.addSequence(n)]:[2,void 0]})})},t.prototype.addEventToCurrentSequence=function(n,r){return ue(this,void 0,void 0,function(){var i;return oe(this,function(o){return this.sequences[n]||this.resetCurrentSequence(n),this.shouldSplitEventsList(this.sequences[n],r)&&(i=this.addSequence(n)),this.sequences[n].push(r),[2,i]})})},t.prototype.storeSendingEvents=function(n,r){return ue(this,void 0,void 0,function(){return oe(this,function(i){return this.finalizedSequences[this.sequenceId]={sessionId:n,events:r},[2,this.sequenceId++]})})},t.prototype.cleanUpSessionEventsStore=function(n,r){return ue(this,void 0,void 0,function(){return oe(this,function(i){return r!==void 0&&delete this.finalizedSequences[r],[2]})})},t}(wH),UL=function(e){var t=e.config,n=e.sessionId,r=e.minInterval,i=e.maxInterval,o=e.type,s=e.payloadBatcher,a=e.storeType;return ue(void 0,void 0,void 0,function(){function l(y){return y===void 0&&(y=!1),ue(this,void 0,void 0,function(){return oe(this,function(_){return[2,u.flush(y)]})})}var u,c,d,f,p,h,m,v,g;return oe(this,function(y){switch(y.label){case 0:return u=new $Ce(ne(ne({},t),{loggerProvider:t.loggerProvider,payloadBatcher:s})),c=function(){return new YCe({loggerProvider:t.loggerProvider,maxInterval:i,minInterval:r})},d=function(){return ue(void 0,void 0,void 0,function(){var _;return oe(this,function(b){switch(b.label){case 0:return[4,ZCe.new(o,{loggerProvider:t.loggerProvider,minInterval:r,maxInterval:i,apiKey:t.apiKey},n)];case 1:return _=b.sent(),t.loggerProvider.log("Failed to initialize idb store, falling back to memory store."),[2,_??c()]}})})},a!=="idb"?[3,2]:[4,d()];case 1:return p=y.sent(),[3,3];case 2:p=c(),y.label=3;case 3:return f=p,h=function(_){var b=_.events,S=_.sessionId,C=_.deviceId,E=_.sequenceId;t.debugMode&&fH().then(function(w){var T=w.totalStorageSize,A=w.percentOfQuota,L=w.usageDetails;t.loggerProvider.debug("Total storage size: ".concat(T," KB, percentage of quota: ").concat(A,"%, usage details: ").concat(L))}).catch(function(){}),u.sendEventsList({events:b,sessionId:S,flushMaxRetries:t.flushMaxRetries,apiKey:t.apiKey,deviceId:C,sampleRate:t.sampleRate,serverZone:t.serverZone,version:t.version,type:o,onComplete:function(){return ue(void 0,void 0,void 0,function(){return oe(this,function(w){switch(w.label){case 0:return[4,f.cleanUpSessionEventsStore(S,E)];case 1:return w.sent(),[2]}})})}})},m=function(_){var b=_.sessionId,S=_.deviceId;f.storeCurrentSequence(b).then(function(C){C&&h({sequenceId:C.sequenceId,events:C.events,sessionId:C.sessionId,deviceId:S})}).catch(function(C){t.loggerProvider.warn("Failed to get current sequence of session replay events for session:",C)})},v=function(_){var b=_.deviceId;return ue(void 0,void 0,void 0,function(){var S;return oe(this,function(C){switch(C.label){case 0:return[4,f.getSequencesToSend()];case 1:return S=C.sent(),S&&S.forEach(function(E){h({sequenceId:E.sequenceId,events:E.events,sessionId:E.sessionId,deviceId:b})}),[2]}})})},g=function(_){var b=_.event,S=_.sessionId,C=_.deviceId;f.addEventToCurrentSequence(S,b.data).then(function(E){return E&&h({sequenceId:E.sequenceId,events:E.events,sessionId:E.sessionId,deviceId:C})}).catch(function(E){t.loggerProvider.warn("Failed to add event to session replay capture:",E)})},[2,{sendCurrentSequenceEvents:m,addEvent:g,sendStoredEvents:v,flush:l}]}})})},jL=function(){function e(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=new Map;t.forEach(function(i){r.set(i.name,i.manager)}),this.managers=r}return e.prototype.sendStoredEvents=function(t){return ue(this,void 0,void 0,function(){var n;return oe(this,function(r){switch(r.label){case 0:return n=[],this.managers.forEach(function(i){n.push(i.sendStoredEvents(t))}),[4,Promise.all(n)];case 1:return r.sent(),[2]}})})},e.prototype.addEvent=function(t){var n,r=t.sessionId,i=t.event,o=t.deviceId;(n=this.managers.get(i.type))===null||n===void 0||n.addEvent({sessionId:r,event:i,deviceId:o})},e.prototype.sendCurrentSequenceEvents=function(t){var n=t.sessionId,r=t.deviceId;this.managers.forEach(function(i){i.sendCurrentSequenceEvents({sessionId:n,deviceId:r})})},e.prototype.flush=function(t){return ue(this,void 0,void 0,function(){var n;return oe(this,function(r){switch(r.label){case 0:return n=[],this.managers.forEach(function(i){n.push(i.flush(t))}),[4,Promise.all(n)];case 1:return r.sent(),[2]}})})},e}(),ki,Aw,TH;function JCe(e,t){if(TH=new Date,e.nodeType!==Node.ELEMENT_NODE)throw new Error("Can't generate CSS selector for non-element node type.");if(e.tagName.toLowerCase()==="html")return"html";var n={root:document.body,idName:function(o){return!0},className:function(o){return!0},tagName:function(o){return!0},attr:function(o,s){return!1},seedMinLength:1,optimizedMinLength:2,threshold:1e3,maxNumberOfTries:1e4,timeoutMs:void 0};ki=ne(ne({},n),t),Aw=QCe(ki.root,n);var r=Zh(e,"all",function(){return Zh(e,"two",function(){return Zh(e,"one",function(){return Zh(e,"none")})})});if(r){var i=xH(LH(r,e));return i.length>0&&(r=i[0]),p0(r)}else throw new Error("Selector was not found.")}function QCe(e,t){return e.nodeType===Node.DOCUMENT_NODE?e:e===t.root?e.ownerDocument:e}function Zh(e,t,n){for(var r=null,i=[],o=e,s=0,a=function(){var u,c,d=new Date().getTime()-TH.getTime();if(ki.timeoutMs!==void 0&&d>ki.timeoutMs)throw new Error("Timeout: Can't find a unique selector after ".concat(d,"ms"));var f=Jh(ewe(o))||Jh.apply(void 0,Fe([],Ne(twe(o)),!1))||Jh.apply(void 0,Fe([],Ne(nwe(o)),!1))||Jh(rwe(o))||[zL()],p=iwe(o);if(t=="all")p&&(f=f.concat(f.filter(Gy).map(function(y){return Yh(y,p)})));else if(t=="two")f=f.slice(0,1),p&&(f=f.concat(f.filter(Gy).map(function(y){return Yh(y,p)})));else if(t=="one"){var h=Ne(f=f.slice(0,1),1),m=h[0];p&&Gy(m)&&(f=[Yh(m,p)])}else t=="none"&&(f=[zL()],p&&(f=[Yh(f[0],p)]));try{for(var v=(u=void 0,Ge(f)),g=v.next();!g.done;g=v.next()){var m=g.value;m.level=s}}catch(y){u={error:y}}finally{try{g&&!g.done&&(c=v.return)&&c.call(v)}finally{if(u)throw u.error}}if(i.push(f),i.length>=ki.seedMinLength&&(r=WL(i,n),r))return"break";o=o.parentElement,s++};o;){var l=a();if(l==="break")break}return r||(r=WL(i,n)),!r&&n?n():r}function WL(e,t){var n,r,i=xH(IH(e));if(i.length>ki.threshold)return t?t():null;try{for(var o=Ge(i),s=o.next();!s.done;s=o.next()){var a=s.value;if(AH(a))return a}}catch(l){n={error:l}}finally{try{s&&!s.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function p0(e){for(var t=e[0],n=t.name,r=1;r<e.length;r++){var i=e[r].level||0;t.level===i-1?n="".concat(e[r].name," > ").concat(n):n="".concat(e[r].name," ").concat(n),t=e[r]}return n}function GL(e){return e.map(function(t){return t.penalty}).reduce(function(t,n){return t+n},0)}function AH(e){var t=p0(e);switch(Aw.querySelectorAll(t).length){case 0:throw new Error("Can't select any node with this selector: ".concat(t));case 1:return!0;default:return!1}}function ewe(e){var t=e.getAttribute("id");return t&&ki.idName(t)?{name:"#"+CSS.escape(t),penalty:0}:null}function twe(e){var t=Array.from(e.attributes).filter(function(n){return ki.attr(n.name,n.value)});return t.map(function(n){return{name:"[".concat(CSS.escape(n.name),'="').concat(CSS.escape(n.value),'"]'),penalty:.5}})}function nwe(e){var t=Array.from(e.classList).filter(ki.className);return t.map(function(n){return{name:"."+CSS.escape(n),penalty:1}})}function rwe(e){var t=e.tagName.toLowerCase();return ki.tagName(t)?{name:t,penalty:2}:null}function zL(){return{name:"*",penalty:3}}function iwe(e){var t=e.parentNode;if(!t)return null;var n=t.firstChild;if(!n)return null;for(var r=0;n&&(n.nodeType===Node.ELEMENT_NODE&&r++,n!==e);)n=n.nextSibling;return r}function Yh(e,t){return{name:e.name+":nth-child(".concat(t,")"),penalty:e.penalty+1}}function Gy(e){return e.name!=="html"&&!e.name.startsWith("#")}function Jh(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=e.filter(owe);return n.length>0?n:null}function owe(e){return e!=null}function IH(e,t){var n,r,i,o,s,a;return t===void 0&&(t=[]),oe(this,function(l){switch(l.label){case 0:if(!(e.length>0))return[3,9];l.label=1;case 1:l.trys.push([1,6,7,8]),n=Ge(e[0]),r=n.next(),l.label=2;case 2:return r.done?[3,5]:(i=r.value,[5,Ge(IH(e.slice(1,e.length),t.concat(i)))]);case 3:l.sent(),l.label=4;case 4:return r=n.next(),[3,2];case 5:return[3,8];case 6:return o=l.sent(),s={error:o},[3,8];case 7:try{r&&!r.done&&(a=n.return)&&a.call(n)}finally{if(s)throw s.error}return[7];case 8:return[3,11];case 9:return[4,t];case 10:l.sent(),l.label=11;case 11:return[2]}})}function xH(e){return Fe([],Ne(e),!1).sort(function(t,n){return GL(t)-GL(n)})}function LH(e,t,n){var r,i,o;return n===void 0&&(n={counter:0,visited:new Map}),oe(this,function(s){switch(s.label){case 0:if(!(e.length>2&&e.length>ki.optimizedMinLength))return[3,5];r=1,s.label=1;case 1:return r<e.length-1?n.counter>ki.maxNumberOfTries?[2]:(n.counter+=1,i=Fe([],Ne(e),!1),i.splice(r,1),o=p0(i),n.visited.has(o)?[2]:AH(i)&&swe(i,t)?[4,i]:[3,4]):[3,5];case 2:return s.sent(),n.visited.set(o,!0),[5,Ge(LH(i,t,n))];case 3:s.sent(),s.label=4;case 4:return r++,[3,1];case 5:return[2]}})}function swe(e,t){return Aw.querySelector(p0(e))===t}var awe=36e5,lwe=function(e){var t=e.version,n=e.events,r=[];return n.forEach(function(i){var o=JSON.parse(i);o.count=1,o.type==="click"&&r.push(o)}),{version:t,events:r}},uwe=function(e){var t=e.version,n=e.events,r=[];n.forEach(function(o){var s=JSON.parse(o);s.type==="click"&&r.push(s)});var i=r.reduce(function(o,s){var a=s.x,l=s.y,u=s.selector,c=s.timestamp,d=c-c%awe,f="".concat(a,":").concat(l,":").concat(u??"",":").concat(d);return o[f]?o[f].count+=1:o[f]=ne(ne({},s),{timestamp:d,count:1}),o},{});return{version:t,events:Object.values(i)}},cwe=function(){function e(t,n){var r=this;this.createHook=function(i){var o=i.eventsManager,s=i.sessionId,a=i.deviceIdFn,l=i.mirror,u=i.ugcFilterRules,c=i.performanceOptions;return function(d){if(d.type===vH.Click){var f=$t();if(f){var p=f.location,h=f.innerHeight,m=f.innerWidth;if(p){var v=d.x,g=d.y;if(!(v===void 0||g===void 0)){var y=l.getNode(d.id),_;if(y)try{_=JCe(y,c)}catch{r.logger.debug("error resolving selector from finder")}var b=d0(p.href,u),S={x:v+r.scrollWatcher.currentScrollX,y:g+r.scrollWatcher.currentScrollY,selector:_,viewportHeight:h,viewportWidth:m,pageUrl:b,timestamp:Date.now(),type:"click"},C=a();C&&o.addEvent({sessionId:s,event:{type:"interaction",data:JSON.stringify(S)},deviceId:C})}}}}}},this.logger=t,this.scrollWatcher=n}return e}();function zy(){var e=$t();return(e==null?void 0:e.innerHeight)||document.documentElement&&document.documentElement.clientHeight||0}function qy(){var e=$t();return(e==null?void 0:e.innerWidth)||document.documentElement&&document.documentElement.clientWidth||0}var dwe=function(){function e(t,n){var r=$t();r&&r.navigator&&typeof r.navigator.sendBeacon=="function"?this.sendBeacon=function(i,o){try{if(r.navigator.sendBeacon(i,JSON.stringify(o)))return!0}catch{}return!1}:this.sendBeacon=function(){return!1},this.sendXhr=function(i,o){var s=new XMLHttpRequest;return s.open("POST",i,!0),s.setRequestHeader("Accept","*/*"),s.send(JSON.stringify(o)),!0},this.basePageUrl=dH(n.serverZone,n.trackServerUrl),this.apiKey=n.apiKey,this.context=t}return e.prototype.send=function(t,n){var r=this.context,i=r.sessionId,o=r.type,s=new URLSearchParams({device_id:t,session_id:String(i),type:String(o),api_key:this.apiKey}),a="".concat(this.basePageUrl,"?").concat(s.toString());this.sendBeacon(a,n)||this.sendXhr(a,n)},e}(),fwe=function(){function e(t,n){var r=this;this.timestamp=Date.now(),this.hook=function(i){r.update(i)},this.send=function(i){return function(o){var s,a,l=i(),u=$t();u&&l&&r.transport.send(l,{version:1,events:[{maxScrollX:r._maxScrollX,maxScrollY:r._maxScrollY,maxScrollWidth:r._maxScrollWidth,maxScrollHeight:r._maxScrollHeight,viewportHeight:zy(),viewportWidth:qy(),pageUrl:d0(u.location.href,(a=(s=r.config.interactionConfig)===null||s===void 0?void 0:s.ugcFilterRules)!==null&&a!==void 0?a:[]),timestamp:r.timestamp,type:"scroll"}]})}},this._maxScrollX=0,this._maxScrollY=0,this._currentScrollX=0,this._currentScrollY=0,this._maxScrollWidth=qy(),this._maxScrollHeight=zy(),this.config=n,this.transport=t}return e.default=function(t,n){return new e(new dwe(t,n),n)},Object.defineProperty(e.prototype,"maxScrollX",{get:function(){return this._maxScrollX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollY",{get:function(){return this._maxScrollY},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollWidth",{get:function(){return this._maxScrollWidth},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"maxScrollHeight",{get:function(){return this._maxScrollHeight},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentScrollX",{get:function(){return this._currentScrollX},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentScrollY",{get:function(){return this._currentScrollY},enumerable:!1,configurable:!0}),e.prototype.update=function(t){var n=Date.now();if(this._currentScrollX=t.x,this._currentScrollY=t.y,t.x>this._maxScrollX){var r=qy();this._maxScrollX=t.x;var i=t.x+r;i>this._maxScrollWidth&&(this._maxScrollWidth=i),this.timestamp=n}if(t.y>this._maxScrollY){var o=zy();this._maxScrollY=t.y;var s=t.y+o;s>this._maxScrollHeight&&(this._maxScrollHeight=s),this.timestamp=n}},e}(),qL=function(){function e(t){var n=t.sessionId,r=t.deviceId;this.deviceId=r,this.sessionId=n,n&&r&&(this.sessionReplayId=rCe(n,r))}return e}(),pwe=1e3*60*60*24*2,hwe=function(){function e(){var t=this;this.dbs={},this.createStore=function(n){return ue(t,void 0,void 0,function(){return oe(this,function(r){switch(r.label){case 0:return[4,EH(n,1,{upgrade:function(i){i.objectStoreNames.contains("sessionTargetingMatch")||i.createObjectStore("sessionTargetingMatch",{keyPath:"sessionId"})}})];case 1:return[2,r.sent()]}})})},this.openOrCreateDB=function(n){return ue(t,void 0,void 0,function(){var r,i;return oe(this,function(o){switch(o.label){case 0:return this.dbs&&this.dbs[n]?[2,this.dbs[n]]:(r="".concat(n.substring(0,10),"_amp_session_replay_targeting"),[4,this.createStore(r)]);case 1:return i=o.sent(),this.dbs[n]=i,[2,i]}})})},this.getTargetingMatchForSession=function(n){var r=n.loggerProvider,i=n.apiKey,o=n.sessionId;return ue(t,void 0,void 0,function(){var s,a,l,u;return oe(this,function(c){switch(c.label){case 0:return c.trys.push([0,3,,4]),[4,this.openOrCreateDB(i)];case 1:return s=c.sent(),a=String(o),[4,s.get("sessionTargetingMatch",a)];case 2:return l=c.sent(),[2,l==null?void 0:l.targetingMatch];case 3:return u=c.sent(),r.warn("Failed to get targeting match for session id ".concat(o,": ").concat(u)),[3,4];case 4:return[2,void 0]}})})},this.storeTargetingMatchForSession=function(n){var r=n.loggerProvider,i=n.apiKey,o=n.sessionId,s=n.targetingMatch;return ue(t,void 0,void 0,function(){var a,l,u,c;return oe(this,function(d){switch(d.label){case 0:return d.trys.push([0,3,,4]),[4,this.openOrCreateDB(i)];case 1:return a=d.sent(),l=String(o),[4,a.put("sessionTargetingMatch",{targetingMatch:s,sessionId:l,lastUpdated:Date.now()})];case 2:return u=d.sent(),[2,u];case 3:return c=d.sent(),r.warn("Failed to store targeting match for session id ".concat(o,": ").concat(c)),[3,4];case 4:return[2,void 0]}})})},this.clearStoreOfOldSessions=function(n){var r=n.loggerProvider,i=n.apiKey,o=n.currentSessionId;return ue(t,void 0,void 0,function(){var s,a,l,u,c,d,f,p;return oe(this,function(h){switch(h.label){case 0:return h.trys.push([0,8,,9]),[4,this.openOrCreateDB(i)];case 1:return s=h.sent(),a=String(o),l=s.transaction("sessionTargetingMatch","readwrite"),[4,l.store.getAll()];case 2:u=h.sent(),c=0,h.label=3;case 3:return c<u.length?(d=u[c],f=Date.now()-d.lastUpdated,d.sessionId!==a&&f>pwe?[4,l.store.delete(d.sessionId)]:[3,5]):[3,6];case 4:h.sent(),h.label=5;case 5:return c++,[3,3];case 6:return[4,l.done];case 7:return h.sent(),[3,9];case 8:return p=h.sent(),r.warn("Failed to clear old targeting matches for sessions: ".concat(p)),[3,9];case 9:return[2]}})})}}return e}(),Ky=new hwe,mwe=function(e){var t=e.sessionId,n=e.targetingConfig,r=e.loggerProvider,i=e.apiKey,o=e.targetingParams;return ue(void 0,void 0,void 0,function(){var s,a,l,u,c,d;return oe(this,function(f){switch(f.label){case 0:return[4,Ky.clearStoreOfOldSessions({loggerProvider:r,apiKey:i,currentSessionId:t})];case 1:return f.sent(),[4,Ky.getTargetingMatchForSession({loggerProvider:r,apiKey:i,sessionId:t})];case 2:if(s=f.sent(),s===!0)return[2,!0];a=!0,f.label=3;case 3:return f.trys.push([3,6,,7]),[4,Ht(()=>import("./index-e0833994.js"),[])];case 4:return l=f.sent().evaluateTargeting,[4,l(ne(ne({},o),{flag:n,sessionId:typeof t=="string"?parseInt(t,10):t,apiKey:i,loggerProvider:r}))];case 5:return u=f.sent(),u&&u.sr_targeting_config&&(a=u.sr_targeting_config.key==="on"),Ky.storeTargetingMatchForSession({loggerProvider:r,apiKey:i,sessionId:t,targetingMatch:a}),[3,7];case 6:return c=f.sent(),d=c,r.warn(d.message),[3,7];case 7:return[2,a]}})})};function kH(e){return e===void 0&&(e={}),{name:"amplitude/url-tracking@1",observer:function(t,n,r){var i,o,s,a=ne(ne({},e),r),l=a.ugcFilterRules||[],u=(i=a.enablePolling)!==null&&i!==void 0?i:!1,c=(o=a.pollingInterval)!==null&&o!==void 0?o:aH,d=(s=a.captureDocumentTitle)!==null&&s!==void 0?s:!1;if(!n)return function(){};var f=void 0,p="__amplitude_url_tracking_patched__",h="__amplitude_url_tracking_reset__",m=function(){return n.location&&n.location.href||""},v=function(){var w=n.innerHeight,T=n.innerWidth,A=n.document,L=m(),x="";d&&(x=(A==null?void 0:A.title)||"");var k=l.length>0?d0(L,l):L;
vendor: 15,296 bytes, line 694
694return{href:k,title:x,viewportHeight:w,viewportWidth:T,type:"url-change-event"}},g=function(){var w=m();if(f===void 0||w!==f){f=w;var T=v();t(T)}},y=function(w){var T=function(){for(var A=[],L=0;L<arguments.length;L++)A[L]=arguments[L];var x=w.apply(this,A);return n[h]||g(),x};return T[p]=!0,T},_=function(){g()};if(u){var b=n.setInterval(function(){g()},c);return g(),function(){b&&n.clearInterval(b)}}if(n.history){var S=n.history.pushState.bind(n.history),C=n.history.replaceState.bind(n.history),E=function(){n.history.pushState[p]||(n.history.pushState=y(S),n.history.replaceState=y(C))};return E(),n.addEventListener("popstate",g),n.addEventListener("hashchange",_),g(),function(){n[h]=!0,n.removeEventListener("popstate",g),n.removeEventListener("hashchange",_)}}return n.addEventListener("hashchange",_),g(),function(){n.removeEventListener("hashchange",_)}},options:e}}kH();var vwe=function(){function e(){var t=this;this.name="@amplitude/session-replay-browser",this.recordCancelCallback=null,this.eventCount=0,this.sessionTargetingMatch=!1,this.pageLeaveFns=[],this.recordFunction=null,this.teardownEventListeners=function(n){var r=$t();r&&(r.removeEventListener("blur",t.blurListener),r.removeEventListener("focus",t.focusListener),!n&&r.addEventListener("blur",t.blurListener),!n&&r.addEventListener("focus",t.focusListener),r.self&&"onpagehide"in r.self?(r.removeEventListener("pagehide",t.pageLeaveListener),!n&&r.addEventListener("pagehide",t.pageLeaveListener)):(r.removeEventListener("beforeunload",t.pageLeaveListener),!n&&r.addEventListener("beforeunload",t.pageLeaveListener)))},this.blurListener=function(){t.sendEvents()},this.focusListener=function(){t.recordEvents(!1)},this.pageLeaveListener=function(n){t.pageLeaveFns.forEach(function(r){r(n)})},this.evaluateTargetingAndCapture=function(n,r,i){return r===void 0&&(r=!1),i===void 0&&(i=!1),ue(t,void 0,void 0,function(){var o,s;return oe(this,function(a){switch(a.label){case 0:if(!this.identifiers||!this.identifiers.sessionId||!this.config)return this.identifiers&&!this.identifiers.sessionId?this.loggerProvider.log("Session ID has not been set yet, cannot evaluate targeting for Session Replay."):this.loggerProvider.warn("Session replay init has not been called, cannot evaluate targeting."),[2];if(!this.config.targetingConfig)if(r)this.loggerProvider.log("Targeting config has not been set yet, cannot evaluate targeting.");else return this.loggerProvider.log("No targeting config set, skipping initialization/recording for event."),[2];return this.lastTargetingParams=n,this.config.targetingConfig&&!this.sessionTargetingMatch?(o=n.event,o&&Object.values(uo).includes(o.event_type)&&(o=void 0),s=this,[4,mwe({sessionId:this.identifiers.sessionId,targetingConfig:this.config.targetingConfig,loggerProvider:this.loggerProvider,apiKey:this.config.apiKey,targetingParams:{userProperties:n.userProperties,event:o}})]):[3,2];case 1:s.sessionTargetingMatch=a.sent(),this.loggerProvider.debug(JSON.stringify({name:"targeted replay capture config",sessionTargetingMatch:this.sessionTargetingMatch,event:o,targetingParams:n},null,2)),a.label=2;case 2:return r?(this.initialize(!0),[3,5]):[3,3];case 3:return i||!this.recordCancelCallback?(this.loggerProvider.log("Recording events for session due to forceRestart or no ongoing recording."),[4,this.recordEvents()]):[3,5];case 4:a.sent(),a.label=5;case 5:return[2]}})})},this.addCustomRRWebEvent=function(n,r,i){return r===void 0&&(r={}),i===void 0&&(i=!0),ue(t,void 0,void 0,function(){var o,s,a,l;return oe(this,function(u){switch(u.label){case 0:return u.trys.push([0,3,,4]),o=void 0,s=this.config,s&&n!==Xs.METADATA?(o={config:pH(s),version:G2},i?[4,fH()]:[3,2]):[3,2];case 1:a=u.sent(),o=ne(ne({},a),o),u.label=2;case 2:return this.recordCancelCallback&&this.recordFunction?this.recordFunction.addCustomEvent(n,ne(ne({},r),o)):this.loggerProvider.debug("Not able to add custom replay capture event ".concat(n," due to no ongoing recording.")),[3,4];case 3:return l=u.sent(),this.loggerProvider.debug("Error while adding custom replay capture event: ",l),[3,4];case 4:return[2]}})})},this.stopRecordingEvents=function(){var n;try{t.loggerProvider.log("Session Replay capture stopping."),t.recordCancelCallback&&t.recordCancelCallback(),t.recordCancelCallback=null,(n=t.networkObservers)===null||n===void 0||n.stop()}catch(i){var r=i;t.loggerProvider.warn("Error occurred while stopping replay capture: ".concat(r.toString()))}},this.loggerProvider=new V2(new tp)}return e.prototype.init=function(t,n){return cr(this._init(t,n))},e.prototype._init=function(t,n){var r,i,o,s,a,l,u;return ue(this,void 0,void 0,function(){var c,d,f,p,h,m,v,g,y,_,E,b,S,C,E,w,T,A,L;return oe(this,function(x){switch(x.label){case 0:return this.loggerProvider=new V2(n.loggerProvider||new tp),Object.prototype.hasOwnProperty.call(n,"logLevel")&&this.loggerProvider.enable(n.logLevel),this.identifiers=new qL({sessionId:n.sessionId,deviceId:n.deviceId}),c=this,[4,fCe(t,n)];case 1:return c.joinedConfigGenerator=x.sent(),[4,this.joinedConfigGenerator.generateJoinedConfig()];case 2:d=x.sent(),f=d.joinedConfig,p=d.localConfig,h=d.remoteConfig,this.config=f,this.setMetadata(n.sessionId,f,p,h,(r=n.version)===null||r===void 0?void 0:r.version,G2,(i=n.version)===null||i===void 0?void 0:i.type),n.sessionId&&(!((o=this.config.interactionConfig)===null||o===void 0)&&o.enabled)&&(m=fwe.default({sessionId:n.sessionId,type:"interaction"},this.config),this.pageLeaveFns=[m.send(this.getDeviceId.bind(this)).bind(m)],this.scrollHook=m.hook.bind(m),this.clickHandler=new cwe(this.loggerProvider,m)),v=[],g=this.config.storeType,g==="idb"&&!(!((s=$t())===null||s===void 0)&&s.indexedDB)&&(g="memory",this.loggerProvider.warn("Could not use preferred indexedDB storage, reverting to in memory option.")),this.loggerProvider.log("Using ".concat(g," for event storage.")),x.label=3;case 3:return x.trys.push([3,5,,6]),[4,UL({config:this.config,sessionId:this.identifiers.sessionId,type:"replay",storeType:g})];case 4:return y=x.sent(),v.push({name:"replay",manager:y}),[3,6];case 5:return _=x.sent(),E=_,this.loggerProvider.warn("Error occurred while creating replay events manager: ".concat(E.toString())),[3,6];case 6:if(!(!((a=this.config.interactionConfig)===null||a===void 0)&&a.enabled))return[3,10];b=this.config.interactionConfig.batch?uwe:lwe,x.label=7;case 7:return x.trys.push([7,9,,10]),[4,UL({config:this.config,sessionId:this.identifiers.sessionId,type:"interaction",minInterval:(l=this.config.interactionConfig.trackEveryNms)!==null&&l!==void 0?l:KEe,maxInterval:XEe,payloadBatcher:b,storeType:g})];case 8:return S=x.sent(),v.push({name:"interaction",manager:S}),[3,10];case 9:return C=x.sent(),E=C,this.loggerProvider.warn("Error occurred while creating interaction events manager: ".concat(E.toString())),[3,10];case 10:return this.eventsManager=new(jL.bind.apply(jL,Fe([void 0],Ne(v),!1))),this.eventCompressor&&this.eventCompressor.terminate(),w=void 0,T=$t(),this.config.useWebWorker&&T&&T.Worker?[4,Ht(()=>import("./index-e68e1b8a.js"),[])]:[3,12];case 11:A=x.sent().compressionScript,w=A,x.label=12;case 12:return this.eventCompressor=new LCe(this.eventsManager,this.config,this.getDeviceId(),w),[4,this.initializeNetworkObservers()];case 13:return x.sent(),!((u=$t())===null||u===void 0)&&u.opener&&(L=fbe(),pbe(L),L.setup(ne({logger:this.loggerProvider},this.config.serverZone&&{endpoint:sbe[this.config.serverZone]}))),this.loggerProvider.log("Installing @amplitude/session-replay-browser."),this.teardownEventListeners(!1),[4,this.evaluateTargetingAndCapture({userProperties:n.userProperties},!0)];case 14:return x.sent(),[2]}})})},e.prototype.setSessionId=function(t,n){return cr(this.asyncSetSessionId(t,n))},e.prototype.asyncSetSessionId=function(t,n,r){var i;return ue(this,void 0,void 0,function(){var o,s,a;return oe(this,function(l){switch(l.label){case 0:return this.sessionTargetingMatch=!1,this.lastShouldRecordDecision=void 0,o=this.identifiers&&this.identifiers.sessionId,o&&this.sendEvents(o),s=n||this.getDeviceId(),this.identifiers=new qL({sessionId:t,deviceId:s}),this.joinedConfigGenerator&&o?[4,this.joinedConfigGenerator.generateJoinedConfig()]:[3,2];case 1:a=l.sent().joinedConfig,this.config=a,l.label=2;case 2:return!((i=this.config)===null||i===void 0)&&i.targetingConfig?[4,this.evaluateTargetingAndCapture({userProperties:r==null?void 0:r.userProperties},!1,!0)]:[3,4];case 3:return l.sent(),[3,6];case 4:return[4,this.recordEvents()];case 5:l.sent(),l.label=6;case 6:return[2]}})})},e.prototype.getSessionReplayProperties=function(){var t,n=this.config,r=this.identifiers;if(!n||!r)return this.loggerProvider.warn("Session replay init has not been called, cannot get session replay properties."),{};var i=this.getShouldRecord(),o={};return i&&(o=(t={},t[HEe]=r.sessionReplayId?r.sessionReplayId:null,t),n.debugMode&&(o[BEe]=JSON.stringify({appHash:C2(n.apiKey).toString()}))),this.addCustomRRWebEvent(Xs.GET_SR_PROPS,{shouldRecord:i,eventProperties:o},this.eventCount===10),this.eventCount===10&&(this.eventCount=0),this.eventCount++,o},e.prototype.sendEvents=function(t){var n,r=t||((n=this.identifiers)===null||n===void 0?void 0:n.sessionId),i=this.getDeviceId();this.eventsManager&&r&&i&&this.eventsManager.sendCurrentSequenceEvents({sessionId:r,deviceId:i})},e.prototype.initialize=function(t){var n;return t===void 0&&(t=!1),ue(this,void 0,void 0,function(){var r;return oe(this,function(i){return!((n=this.identifiers)===null||n===void 0)&&n.sessionId?(r=this.getDeviceId(),r?(this.eventsManager&&t&&this.eventsManager.sendStoredEvents({deviceId:r}),[2,this.recordEvents()]):(this.loggerProvider.log("Session is not being recorded due to lack of device id."),[2,Promise.resolve()])):(this.loggerProvider.log("Session is not being recorded due to lack of session id."),[2,Promise.resolve()])})})},e.prototype.shouldOptOut=function(){var t,n,r;if(!((t=this.config)===null||t===void 0)&&t.instanceName){var i=Lc(this.config.instanceName).identityStore;r=i.getIdentity().optOut}return r!==void 0?r:(n=this.config)===null||n===void 0?void 0:n.optOut},e.prototype.getShouldRecord=function(){if(!this.identifiers||!this.config||!this.identifiers.sessionId)return this.loggerProvider.warn("Session is not being recorded due to lack of config, please call sessionReplay.init."),!1;if(!this.config.captureEnabled)return this.loggerProvider.log("Session ".concat(this.identifiers.sessionId," not being captured due to capture being disabled for project or because the remote config could not be fetched.")),!1;if(this.shouldOptOut())return this.loggerProvider.log("Opting session ".concat(this.identifiers.sessionId," out of recording due to optOut config.")),!1;var t=!1,n="",r=!1;if(this.config.targetingConfig)this.sessionTargetingMatch?(n="Capturing replays for session ".concat(this.identifiers.sessionId," due to matching targeting conditions."),this.loggerProvider.log(n),t=!0,r=!0):(n="Not capturing replays for session ".concat(this.identifiers.sessionId," due to not matching targeting conditions."),this.loggerProvider.log(n),t=!1,r=!1);else{var i=Aye(this.identifiers.sessionId,this.config.sampleRate);i?(t=!0,r=!0):(n="Opting session ".concat(this.identifiers.sessionId," out of recording due to sample rate."),this.loggerProvider.log(n),t=!1,r=!1)}return this.lastShouldRecordDecision!==t&&this.config.targetingConfig&&(this.addCustomRRWebEvent(Xs.TARGETING_DECISION,{message:n,sessionId:this.identifiers.sessionId,matched:r,targetingParams:this.lastTargetingParams}),this.lastShouldRecordDecision=t),t},e.prototype.getBlockSelectors=function(){var t,n,r,i=(r=(n=(t=this.config)===null||t===void 0?void 0:t.privacyConfig)===null||n===void 0?void 0:n.blockSelector)!==null&&r!==void 0?r:[];if(i.length!==0)return i},e.prototype.getMaskTextSelectors=function(){var t,n,r,i;if(((n=(t=this.config)===null||t===void 0?void 0:t.privacyConfig)===null||n===void 0?void 0:n.defaultMaskLevel)==="conservative")return"*";var o=(i=(r=this.config)===null||r===void 0?void 0:r.privacyConfig)===null||i===void 0?void 0:i.maskSelector;if(o)return o},e.prototype.getRecordingPlugins=function(t){var n,r,i,o,s,a;return ue(this,void 0,void 0,function(){var l,u,c,d;return oe(this,function(f){switch(f.label){case 0:l=[];try{u=kH({ugcFilterRules:((r=(n=this.config)===null||n===void 0?void 0:n.interactionConfig)===null||r===void 0?void 0:r.ugcFilterRules)||[],enablePolling:((i=this.config)===null||i===void 0?void 0:i.enableUrlChangePolling)||!1,pollingInterval:(o=this.config)===null||o===void 0?void 0:o.urlChangePollingInterval,captureDocumentTitle:(s=this.config)===null||s===void 0?void 0:s.captureDocumentTitle}),l.push(u)}catch(p){this.loggerProvider.warn("Failed to create URL tracking plugin:",p)}if(!(!((a=t==null?void 0:t.console)===null||a===void 0)&&a.enabled))return[3,4];f.label=1;case 1:return f.trys.push([1,3,,4]),[4,Ht(()=>import("./rrweb-plugin-console-record-fd0e9390.js"),[])];case 2:return c=f.sent().getRecordConsolePlugin,l.push(c({level:t.console.levels})),[3,4];case 3:return d=f.sent(),this.loggerProvider.warn("Failed to load console plugin:",d),[3,4];case 4:return[2,l.length>0?l:void 0]}})})},e.prototype.getRecordFunction=function(){return ue(this,void 0,void 0,function(){var t,n;return oe(this,function(r){switch(r.label){case 0:if(this.recordFunction)return[2,this.recordFunction];r.label=1;case 1:return r.trys.push([1,3,,4]),[4,Ht(()=>import("./rrweb-record-5fa24857.js"),[])];case 2:return t=r.sent().record,this.recordFunction=t,[2,t];case 3:return n=r.sent(),this.loggerProvider.warn("Failed to load rrweb-record module:",n),[2,null];case 4:return[2]}})})},e.prototype.recordEvents=function(t){var n,r,i,o,s,a,l;return t===void 0&&(t=!0),ue(this,void 0,void 0,function(){var u,c,d,f,p,h,m,v,g,y,_,b,S,C=this;return oe(this,function(E){switch(E.label){case 0:return u=this.config,c=this.getShouldRecord(),d=(n=this.identifiers)===null||n===void 0?void 0:n.sessionId,!c||!d||!u?[2]:(this.stopRecordingEvents(),[4,this.getRecordFunction()]);case 1:return f=E.sent(),f?[4,this.initializeNetworkObservers()]:[2];case 2:E.sent(),(r=this.networkObservers)===null||r===void 0||r.start(function(w){C.addCustomRRWebEvent(Xs.FETCH_REQUEST,w)}),p=u.privacyConfig,h=u.interactionConfig,m=u.loggingConfig,v=h!=null&&h.enabled?{mouseInteraction:this.eventsManager&&((i=this.clickHandler)===null||i===void 0?void 0:i.createHook({eventsManager:this.eventsManager,sessionId:d,deviceIdFn:this.getDeviceId.bind(this),mirror:f.mirror,ugcFilterRules:(o=h.ugcFilterRules)!==null&&o!==void 0?o:[],performanceOptions:(s=u.performanceConfig)===null||s===void 0?void 0:s.interaction})),scroll:this.scrollHook}:{},g=h!=null&&h.enabled&&h.ugcFilterRules?h.ugcFilterRules:[],this.loggerProvider.log("Session Replay capture beginning for ".concat(d,".")),E.label=3;case 3:return E.trys.push([3,5,,6]),y=this,_=f,S={emit:function(w){if(C.shouldOptOut()){C.loggerProvider.log("Opting session ".concat(d," out of recording due to optOut config.")),C.stopRecordingEvents(),C.sendEvents();return}w.type===mH.Meta&&(w.data.href=d0(w.data.href,g)),C.eventCompressor&&C.eventCompressor.enqueueEvent(w,d)},inlineStylesheet:u.shouldInlineStylesheet,hooks:v,maskAllInputs:!0,maskTextClass:lH,blockClass:UEe,blockSelector:this.getBlockSelectors(),applyBackgroun
694dColorToBlockedElements:u.applyBackgroundColorToBlockedElements,maskInputFn:kL("input",p),maskTextFn:kL("text",p),maskTextSelector:this.getMaskTextSelectors(),recordCanvas:!1,slimDOMOptions:{script:(a=u.omitElementTags)===null||a===void 0?void 0:a.script,comment:(l=u.omitElementTags)===null||l===void 0?void 0:l.comment},errorHandler:function(w){var T=w;if(T.message.includes("insertRule")&&T.message.includes("CSSStyleSheet")||T._external_)throw T;return C.loggerProvider.warn("Error while capturing replay: ",T.toString()),!0}},[4,this.getRecordingPlugins(m)];case 4:return y.recordCancelCallback=_.apply(void 0,[(S.plugins=E.sent(),S)]),this.addCustomRRWebEvent(Xs.DEBUG_INFO),t&&this.addCustomRRWebEvent(Xs.METADATA,this.metadata),[3,6];case 5:return b=E.sent(),this.loggerProvider.warn("Failed to initialize session replay:",b),[3,6];case 6:return[2]}})})},e.prototype.getDeviceId=function(){var t;return(t=this.identifiers)===null||t===void 0?void 0:t.deviceId},e.prototype.getSessionId=function(){var t;return(t=this.identifiers)===null||t===void 0?void 0:t.sessionId},e.prototype.flush=function(t){var n;return t===void 0&&(t=!1),ue(this,void 0,void 0,function(){return oe(this,function(r){return[2,(n=this.eventsManager)===null||n===void 0?void 0:n.flush(t)]})})},e.prototype.shutdown=function(){this.teardownEventListeners(!0),this.stopRecordingEvents(),this.sendEvents()},e.prototype.mapSDKType=function(t){return t==="plugin"?"@amplitude/plugin-session-replay-browser":t==="segment"?"@amplitude/segment-session-replay-plugin":null},e.prototype.setMetadata=function(t,n,r,i,o,s,a){var l=t!=null&&t.toString()?C2(t.toString()):void 0;this.metadata={joinedConfig:n,localConfig:r,remoteConfig:i,sessionId:t,hashValue:l,sampleRate:n.sampleRate,replaySDKType:this.mapSDKType(a),replaySDKVersion:o,standaloneSDKType:"@amplitude/session-replay-browser",standaloneSDKVersion:s}},e.prototype.initializeNetworkObservers=function(){var t,n,r;return ue(this,void 0,void 0,function(){var i,o;return oe(this,function(s){switch(s.label){case 0:if(!(!((r=(n=(t=this.config)===null||t===void 0?void 0:t.loggingConfig)===null||n===void 0?void 0:n.network)===null||r===void 0)&&r.enabled&&!this.networkObservers))return[3,4];s.label=1;case 1:return s.trys.push([1,3,,4]),[4,Ht(()=>import("./observers-46e6a5b2.js"),[])];case 2:return i=s.sent().NetworkObservers,this.networkObservers=new i,[3,4];case 3:return o=s.sent(),this.loggerProvider.warn("Failed to import or instantiate NetworkObservers:",o),[3,4];case 4:return[2]}})})},e}(),Ha=function(e){return function(){var t=e.config,n=t||hH(),r=n.loggerProvider,i=n.logLevel;return{logger:r,logLevel:i}}},gwe=function(){var e=new vwe;return{init:Bt(e.init.bind(e),"init",Ha(e)),evaluateTargetingAndCapture:Bt(e.evaluateTargetingAndCapture.bind(e),"evaluateTargetingAndRecord",Ha(e)),setSessionId:Bt(e.setSessionId.bind(e),"setSessionId",Ha(e)),getSessionId:Bt(e.getSessionId.bind(e),"getSessionId",Ha(e)),getSessionReplayProperties:Bt(e.getSessionReplayProperties.bind(e),"getSessionReplayProperties",Ha(e)),flush:Bt(e.flush.bind(e),"flush",Ha(e)),shutdown:Bt(e.shutdown.bind(e),"shutdown",Ha(e))}};const Jl=gwe();var ywe=Jl.init,bwe=Jl.setSessionId,_we=Jl.getSessionId,Swe=Jl.getSessionReplayProperties,Ewe=Jl.flush,Cwe=Jl.shutdown,wwe=Jl.evaluateTargetingAndCapture,Twe=[Eo.SET,Eo.SET_ONCE,Eo.ADD,Eo.APPEND,Eo.PREPEND,Eo.POSTINSERT],Awe=function(e){if(e.user_properties){var t={},n=Object.keys(e.user_properties);return n.forEach(function(r){if(Twe.includes(r)){var i=e.user_properties&&e.user_properties[r];t=ne(ne({},t),i)}}),t}},KL="1.25.14",Iwe="[Amplitude]",xwe="".concat(Iwe," Session Replay ID"),Lwe=function(){function e(t){this.name=e.pluginName,this.type="enrichment",this.config=null,this.sessionReplay={flush:Ewe,getSessionId:_we,getSessionReplayProperties:Swe,init:ywe,setSessionId:bwe,shutdown:Cwe,evaluateTargetingAndCapture:wwe},this.options=ne({forceSessionTracking:!1},t),this.srInitOptions=this.options}return e.prototype.setup=function(t,n){var r,i,o,s,a,l,u,c;return ue(this,void 0,void 0,function(){var d,f,p;return oe(this,function(h){switch(h.label){case 0:return h.trys.push([0,2,,3]),t==null||t.loggerProvider.log("Installing @amplitude/plugin-session-replay, version ".concat(KL,".")),this.config=t,this.options.forceSessionTracking&&(typeof t.defaultTracking=="boolean"?t.defaultTracking===!1&&(t.defaultTracking={pageViews:!1,formInteractions:!1,fileDownloads:!1,sessions:!0}):t.defaultTracking=ne(ne({},t.defaultTracking),{sessions:!0})),d=Zbe(this.config.instanceName).identityStore,f=d.getIdentity().userProperties,this.srInitOptions={instanceName:this.config.instanceName,deviceId:(r=this.options.deviceId)!==null&&r!==void 0?r:this.config.deviceId,optOut:this.config.optOut,sessionId:this.options.customSessionId?void 0:this.config.sessionId,loggerProvider:this.config.loggerProvider,logLevel:this.config.logLevel,flushMaxRetries:this.config.flushMaxRetries,serverZone:this.config.serverZone,configServerUrl:this.options.configServerUrl||((i=this.config.remoteConfig)===null||i===void 0?void 0:i.serverUrl),trackServerUrl:this.options.trackServerUrl,sampleRate:this.options.sampleRate,privacyConfig:{blockSelector:(o=this.options.privacyConfig)===null||o===void 0?void 0:o.blockSelector,maskSelector:(s=this.options.privacyConfig)===null||s===void 0?void 0:s.maskSelector,unmaskSelector:(a=this.options.privacyConfig)===null||a===void 0?void 0:a.unmaskSelector,defaultMaskLevel:(l=this.options.privacyConfig)===null||l===void 0?void 0:l.defaultMaskLevel},debugMode:this.options.debugMode,shouldInlineStylesheet:this.options.shouldInlineStylesheet,version:{type:"plugin",version:KL},performanceConfig:this.options.performanceConfig,storeType:this.options.storeType,useWebWorker:(u=this.options.useWebWorker)!==null&&u!==void 0?u:(c=this.options.experimental)===null||c===void 0?void 0:c.useWebWorker,userProperties:f,om
694itElementTags:this.options.omitElementTags,applyBackgroundColorToBlockedElements:this.options.applyBackgroundColorToBlockedElements,interactionConfig:this.options.interactionConfig,captureDocumentTitle:this.options.captureDocumentTitle,enableUrlChangePolling:this.options.enableUrlChangePolling,urlChangePollingInterval:this.options.urlChangePollingInterval},[4,this.sessionReplay.init(t.apiKey,this.srInitOptions).promise];case 1:return h.sent(),[3,3];case 2:return p=h.sent(),t==null||t.loggerProvider.error("Session Replay: Failed to initialize due to ".concat(p.message)),[3,3];case 3:return[2]}})})},e.prototype.onSessionIdChanged=function(t){var n;return ue(this,void 0,void 0,function(){return oe(this,function(r){switch(r.label){case 0:return(n=this.config)===null||n===void 0||n.loggerProvider.debug("Analytics session id is changed to ".concat(t,", SR session id is ").concat(String(this.sessionReplay.getSessionId()),".")),[4,this.sessionReplay.setSessionId(t).promise];case 1:return r.sent(),[2]}})})},e.prototype.onOptOutChanged=function(t){var n;return ue(this,void 0,void 0,function(){var r;return oe(this,function(i){switch(i.label){case 0:return(n=this.config)===null||n===void 0||n.loggerProvider.debug("optOut is changed to ".concat(String(t),", calling ").concat(t?"sessionReplay.shutdown()":"sessionReplay.init()",".")),t?(this.sessionReplay.shutdown(),[3,4]):[3,1];case 1:return r=this.config!=null,r?[4,this.sessionReplay.init(this.config.apiKey,this.srInitOptions).promise]:[3,3];case 2:r=i.sent(),i.label=3;case 3:i.label=4;case 4:return[2]}})})},e.prototype.execute=function(t){var n,r;return ue(this,void 0,void 0,function(){var i,s,i,o,s,a;return oe(this,function(l){switch(l.label){case 0:return l.trys.push([0,9,,10]),this.options.customSessionId?(i=this.options.customSessionId(t),i?i===this.sessionReplay.getSessionId()?[3,2]:[4,this.sessionReplay.setSessionId(i).promise]:[3,3]):[3,4];case 1:l.sent(),l.label=2;case 2:s=this.sessionReplay.getSessionReplayProperties(),t.event_properties=ne(ne({},t.event_properties),s),l.label=3;case 3:return[3,8];case 4:return i=(n=this.config)===null||n===void 0?void 0:n.sessionId,i&&i!==this.sessionReplay.getSessionId()?[4,this.sessionReplay.setSessionId(i).promise]:[3,6];case 5:l.sent(),l.label=6;case 6:return i&&i===t.session_id?(o=void 0,t.event_type===uo.IDENTIFY&&(o=Awe(t)),[4,this.sessionReplay.evaluateTargetingAndCapture({event:t,userProperties:o})]):[3,8];case 7:l.sent(),s=this.sessionReplay.getSessionReplayProperties(),t.event_properties=ne(ne({},t.event_properties),s),l.label=8;case 8:return t.event_type===uo.IDENTIFY&&t.event_properties&&delete t.event_properties[xwe],[2,Promise.resolve(t)];case 9:return a=l.sent(),(r=this.config)===null||r===void 0||r.loggerProvider.error("Session Replay: Failed to enrich event due to ".concat(a.message)),[2,Promise.resolve(t)];case 10:return[2]}})})},e.prototype.teardown=function(){var t;return ue(this,void 0,void 0,function(){return oe(this,function(n){try{this.sessionReplay.shutdown(),this.config=null}catch(r){(t=this.config)===null||t===void 0||t.loggerProvider.error("Session Replay: teardown failed due to ".concat(r.message))}return[2]})})},e.prototype.getSessionReplayProperties=function(){return this.sessionReplay.getSessionReplayProperties()},e.pluginName="@amplitude/plugin-session-replay-browser",e}(),SBe=function(e){return new Lwe(e)},Y2=function(e,t){return Y2=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(n[i]=r[i])},Y2(e,t)};function MH(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Y2(e,t);function n(){this.constructor=e}e.prototype=t===null?Object.create(t):(n.prototype=t.prototype,new n)}var Js=function(){return Js=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Js.apply(this,arguments)};function RH(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}
vendor: 24,775 bytes, line 694
694return new(n||(n=Promise))(function(o,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?o(c.value):i(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}function PH(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function yi(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Iw(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function xw(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var qe={IS:"is",IS_NOT:"is not",CONTAINS:"contains",DOES_NOT_CONTAIN:"does not contain",LESS_THAN:"less",LESS_THAN_EQUALS:"less or equal",GREATER_THAN:"greater",GREATER_THAN_EQUALS:"greater or equal",VERSION_LESS_THAN:"version less",VERSION_LESS_THAN_EQUALS:"version less or equal",VERSION_GREATER_THAN:"version greater",VERSION_GREATER_THAN_EQUALS:"version greater or equal",SET_IS:"set is",SET_IS_NOT:"set is not",SET_CONTAINS:"set contains",SET_DOES_NOT_CONTAIN:"set does not contain",SET_CONTAINS_ANY:"set contains any",SET_DOES_NOT_CONTAIN_ANY:"set does not contain any",REGEX_MATCH:"regex match",REGEX_DOES_NOT_MATCH:"regex does not match"},kwe=function(e){for(var t=[],n=0,r=0;r<e.length;r++){var i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):(i&64512)==55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)==56320?(i=65536+((i&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}return Uint8Array.from(t)},jm=-862048943,Wm=461845907,Gm=15,Mwe=13,Rwe=5,Pwe=-430675100,Owe=function(e,t){t===void 0&&(t=0);for(var n=kwe(e),r=n.length,i=r>>2,o=t,s=0;s<i;s++){var a=s<<2,l=Hwe(n,a);o=$we(l,o)}var u=i<<2,c=0;switch(r-u){case 3:c^=n[u+2]<<16,c^=n[u+1]<<8,c^=n[u],c=Math.imul(c,jm),c=vf(c,Gm),c=Math.imul(c,Wm),o^=c;break;case 2:c^=n[u+1]<<8,c^=n[u],c=Math.imul(c,jm),c=vf(c,Gm),c=Math.imul(c,Wm),o^=c;break;case 1:c^=n[u],c=Math.imul(c,jm),c=vf(c,Gm),c=Math.imul(c,Wm),o^=c;break}return o^=r,Nwe(o)>>>0},$we=function(e,t){var n=e,r=t;return n=Math.imul(n,jm),n=vf(n,Gm),n=Math.imul(n,Wm),r^=n,r=vf(r,Mwe),r=Math.imul(r,Rwe),r+Pwe|0},Nwe=function(e){var t=e;return t^=t>>>16,t=Math.imul(t,-2048144789),t^=t>>>13,t=Math.imul(t,-1028477387),t^=t>>>16,t},vf=function(e,t,n){n===void 0&&(n=32),t>n&&(t=t%n);var r=4294967295<<n-t>>>0,i=(e&r)>>>0>>>n-t>>>0;return(e<<t|i)>>>0},Hwe=function(e,t){t===void 0&&(t=0);var n=e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3];return Dwe(n)},Dwe=function(e){return(e&-16777216)>>>24|(e&16711680)>>>8|(e&65280)<<8|(e&255)<<24},XL=function(e,t){var n,r;if(!(!t||t.length===0)){try{for(var i=yi(t),o=i.next();!o.done;o=i.next()){var s=o.value;if(!s||!e||typeof e!="object")return;e=e[s]}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}if(e)return e}},Vwe="(\\d+)\\.(\\d+)",Fwe="(\\d+)",Bwe="(-(([-\\w]+\\.?)*))?",Uwe="^".concat(Vwe,"(\\.").concat(Fwe).concat(Bwe,")?$"),jwe=function(){function e(t,n,r,i){i===void 0&&(i=void 0),this.major=t,this.minor=n,this.patch=r,this.preRelease=i}return e.parse=function(t){if(t){var n=new RegExp(Uwe).exec(t);if(n){var r=Number(n[1]),i=Number(n[2]);if(!(isNaN(r)||isNaN(i))){var o=Number(n[4])||0,s=n[5]||void 0;return new e(r,i,o,s)}}}},e.prototype.compareTo=function(t){return this.major>t.major?1:this.major<t.major?-1:this.minor>t.minor?1:this.minor<t.minor?-1:this.patch>t.patch?1:this.patch<t.patch||this.preRelease&&!t.preRelease?-1:!this.preRelease&&t.preRelease?1:this.preRelease&&t.preRelease?this.preRelease>t.preRelease?1:this.preRelease<t.preRelease?-1:0:0},e}(),Wwe=function(){function e(){}return e.prototype.evaluate=function(t,n){var r,i,o={},s={context:t,result:o};try{for(var a=yi(n),l=a.next();!l.done;l=a.next()){var u=l.value,c=this.evaluateFlag(s,u);c&&(o[u.key]=c)}}catch(d){r={error:d}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return o},e.prototype.evaluateFlag=function(t,n){var r,i,o;try{for(var s=yi(n.segments),a=s.next();!a.done;a=s.next()){var l=a.value;if(o=this.evaluateSegment(t,n,l),o){var u=Js(Js(Js({},n.metadata),l.metadata),o.metadata);o=Js(Js({},o),{metadata:u});break}}}catch(c){r={error:c}}finally{try{a&&!a.done&&(i=s.return)&&i.call(s)}finally{if(r)throw r.error}}return o},e.prototype.evaluateSegment=function(t,n,r){if(!r.conditions){var i=this.bucket(t,r);return i!==void 0?n.variants[i]:void 0}var o=this.evaluateConditions(t,r.conditions);if(o){var i=this.bucket(t,r);return i!==void 0?n.variants[i]:void 0}},e.prototype.evaluateConditions=function(t,n){var r,i,o,s;try{for(var a=yi(n),l=a.next();!l.done;l=a.next()){var u=l.value,c=!0;try{for(var d=(o=void 0,yi(u)),f=d.next();!f.done;f=d.next()){var p=f.value;if(c=this.matchCondition(t,p),!c)break}}catch(h){o={error:h}}finally{try{f&&!f.done&&(s=d.return)&&s.call(d)}finally{if(o)throw o.error}}if(c)return!0}}catch(h){r={error:h}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(r)throw r.error}}return!1},e.prototype.matchCondition=function(t,n){var r=XL(t,n.selector);if(r)if(this.isSetOperator(n.op)){var i=this.coerceStringArray(r);return i?this.matchSet(i,n.op,n.values):!1}else{var o=this.coerceString(r);return o!==void 0?this.matchString(o,n.op,n.values):!1}else return this.matchNull(n.op,n.values)},e.prototype.getHash=function(t){return Owe(t)},e.prototype.bucket=function(t,n){var r,i,o,s;if(!n.bucket)return n.variant;var a=this.coerceString(XL(t,n.bucket.selector));if(!a||a.length===0)return n.variant;var l="".concat(n.bucket.salt,"/").concat(a),u=this.getHash(l),c=u%100,d=Math.floor(u/100);try{for(var f=yi(n.bucket.allocations),p=f.next();!p.done;p=f.next()){var h=p.value,m=h.range[0],v=h.range[1];if(c>=m&&c<v)try{for(var g=(o=void 0,yi(h.distributions)),y=g.next();!y.done;y=g.next()){var _=y.value,b=_.range[0],S=_.range[1];if(d>=b&&d<S)return _.variant}}catch(C){o={error:C}}finally{try{y&&!y.done&&(s=g.return)&&s.call(g)}finally{if(o)throw o.error}}}}catch(C){r={error:C}}finally{try{p&&!p.done&&(i=f.return)&&i.call(f)}finally{if(r)throw r.error}}return n.variant},e.prototype.matchNull=function(t,n){var r=this.containsNone(n);switch(t){case qe.IS:case qe.CONTAINS:case qe.LESS_THAN:case qe.LESS_THAN_EQUALS:case qe.GREATER_THAN:case qe.GREATER_THAN_EQUALS:case qe.VERSION_LESS_THAN:case qe.VERSION_LESS_THAN_EQUALS:case qe.VERSION_GREATER_THAN:case qe.VERSION_GREATER_THAN_EQUALS:case qe.SET_IS:case qe.SET_CONTAINS:case qe.SET_CONTAINS_ANY:return r;case qe.IS_NOT:case qe.DOES_NOT_CONTAIN:case qe.SET_DOES_NOT_CONTAIN:case qe.SET_DOES_NOT_CONTAIN_ANY:return!r;default:return!1}},e.prototype.matchSet=function(t,n,r){switch(n){case qe.SET_IS:return this.setEquals(t,r);case qe.SET_IS_NOT:return!this.setEquals(t,r);case qe.SET_CONTAINS:return this.matchesSetContainsAll(t,r);case qe.SET_DOES_NOT_CONTAIN:return!this.matchesSetContainsAll(t,r);case qe.SET_CONTAINS_ANY:return this.matchesSetContainsAny(t,r);case qe.SET_DOES_NOT_CONTAIN_ANY:return!this.matchesSetContainsAny(t,r);default:return!1}},e.prototype.matchString=function(t,n,r){var i=this;switch(n){case qe.IS:return this.matchesIs(t,r);case qe.IS_NOT:return!this.matchesIs(t,r);case qe.CONTAINS:return this.matchesContains(t,r);case qe.DOES_NOT_CONTAIN:return!this.matchesContains(t,r);case qe.LESS_THAN:case qe.LESS_THAN_EQUALS:case qe.GREATER_THAN:case qe.GREATER_THAN_EQUALS:return this.matchesComparable(t,n,r,function(o){return i.parseNumber(o)},this.comparator);case qe.VERSION_LESS_THAN:case qe.VERSION_LESS_THAN_EQUALS:case qe.VERSION_GREATER_THAN:case qe.VERSION_GREATER_THAN_EQUALS:return this.matchesComparable(t,n,r,function(o){return jwe.parse(o)},this.versionComparator);case qe.REGEX_MATCH:return this.matchesRegex(t,r);case qe.REGEX_DOES_NOT_MATCH:return!this.matchesRegex(t,r);default:return!1}},e.prototype.matchesIs=function(t,n){if(this.containsBooleans(n)){var r=t.toLowerCase();if(r==="true"||r==="false")return n.some(function(i){return i.toLowerCase()===r})}return n.some(function(i){return t===i})},e.prototype.matchesContains=function(t,n){var r,i;try{for(var o=yi(n),s=o.next();!s.done;s=o.next()){var a=s.value;if(t.toLowerCase().includes(a.toLowerCase()))return!0}}catch(l){r={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return!1},e.prototype.matchesComparable=function(t,n,r,i,o){var s=this,a=i(t),l=r.map(function(u){return i(u)}).filter(function(u){return u!==void 0});return a===void 0||l.length===0?r.some(function(u){return s.comparator(t,n,u)}):l.some(function(u){return o(a,n,u)})},e.prototype.comparator=function(t,n,r){switch(n){case qe.LESS_THAN:case qe.VERSION_LESS_THAN:return t<r;case qe.LESS_THAN_EQUALS:case qe.VERSION_LESS_THAN_EQUALS:return t<=r;case qe.GREATER_THAN:case qe.VERSION_GREATER_THAN:return t>r;case qe.GREATER_THAN_EQUALS:case qe.VERSION_GREATER_THAN_EQUALS:return t>=r;default:return!1}},e.prototype.versionComparator=function(t,n,r){var i=t.compareTo(r);switch(n){case qe.LESS_THAN:case qe.VERSION_LESS_THAN:return i<0;case qe.LESS_THAN_EQUALS:case qe.VERSION_LESS_THAN_EQUALS:return i<=0;case qe.GREATER_THAN:case qe.VERSION_GREATER_THAN:return i>0;case qe.GREATER_THAN_EQUALS:case qe.VERSION_GREATER_THAN_EQUALS:return i>=0;default:return!1}},e.prototype.matchesRegex=function(t,n){return n.some(function(r){return!!new RegExp(r).exec(t)})},e.prototype.containsNone=function(t){return t.some(function(n){return n==="(none)"})},e.prototype.containsBooleans=function(t){return t.some(function(n){switch(n.toLowerCase()){case"true":case"false":return!0;default:return!1}})},e.prototype.parseNumber=function(t){var n;return(n=Number(t))!==null&&n!==void 0?n:void 0},e.prototype.coerceString=function(t){if(t!=null)return typeof t=="object"?JSON.stringify(t):String(t)},e.prototype.coerceStringArray=function(t){var n=this;if(Array.isArray(t)){var r=t;return r.map(function(a){return n.coerceString(a)}).filter(Boolean)}var i=String(t);try{var o=JSON.parse(i);if(Array.isArray(o)){var r=t;return r.map(function(l){return n.coerceString(l)}).filter(Boolean)}else{var s=this.coerceString(i);return s?[s]:void 0}}catch{var s=this.coerceString(i);return s?[s]:void 0}},e.prototype.isSetOperator=function(t){switch(t){case qe.SET_IS:case qe.SET_IS_NOT:case qe.SET_CONTAINS:case qe.SET_DOES_NOT_CONTAIN:case qe.SET_CONTAINS_ANY:case qe.SET_DOES_NOT_CONTAIN_ANY:return!0;default:return!1}},e.prototype.setEquals=function(t,n){var r=new Set(t),i=new Set(n);return r.size===i.size&&xw([],Iw(i),!1).every(function(o){return r.has(o)})},e.prototype.matchesSetContainsAll=function(t,n){var r,i;if(t.length<n.length)return!1;try{for(var o=yi(n),s=o.next();!s.done;s=o.next()){var a=s.value;if(!this.matchesIs(a,t))return!1}}catch(l){r={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return!0},e.prototype.matchesSetContainsAny=function(t,n){var r,i;try{for(var o=yi(n),s=o.next();!s.done;s=o.next()){var a=s.value;if(this.matchesIs(a,t))return!0}}catch(l){r={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return!1},e}(),Gwe=function(e,t){var n,r,i=Js({},e),o=[],s=t||Object.keys(i);try{for(var a=yi(s),l=a.next();!l.done;l=a.next()){var u=l.value,c=OH(u,i);c&&o.push.apply(o,xw([],Iw(c),!1))}}catch(d){n={error:d}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}return o},OH=function(e,t,n){var r,i;n===void 0&&(n=[]);var o=t[e];if(o){if(!o.dependencies||o.dependencies.length===0)return delete t[o.key],[o]}else return;n.push(o.key);var s=[],a=function(d){if(n.some(function(p){return p===d}))throw Error("Detected a cycle between flags ".concat(n));var f=OH(d,t,n);f&&s.push.apply(s,xw([],Iw(f),!1))};try{for(var l=yi(o.dependencies),u=l.next();!u.done;u=l.next()){var c=u.value;a(c)}}catch(d){r={error:d}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(r)throw r.error}}return s.push(o),n.pop(),delete t[o.key],s};const $H="3.7.5",zwe=$H,qwe=typeof atob=="function",Kwe=typeof btoa=="function",ad=typeof Buffer=="function",ZL=typeof TextDecoder=="function"?new TextDecoder:void 0,YL=typeof TextEncoder=="function"?new TextEncoder:void 0,Xwe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",Dd=Array.prototype.slice.call(Xwe),Qh=(e=>{let t={};return e.forEach((n,r)=>t[n]=r),t})(Dd),Zwe=/^(?:[A-Za-z\d+\/]{4})*?(?:[A-Za-z\d+\/]{2}(?:==)?|[A-Za-z\d+\/]{3}=?)?$/,er=String.fromCharCode.bind(String),JL=typeof Uint8Array.from=="function"?Uint8Array.from.bind(Uint8Array):e=>new Uint8Array(Array.prototype.slice.call(e,0)),NH=e=>e.replace(/=/g,"").replace(/[+\/]/g,t=>t=="+"?"-":"_"),HH=e=>e.replace(/[^A-Za-z0-9\+\/]/g,""),DH=e=>{let t,n,r,i,o="";const s=e.length%3;for(let a=0;a<e.length;){if((n=e.charCodeAt(a++))>255||(r=e.charCodeAt(a++))>255||(i=e.charCodeAt(a++))>255)throw new TypeError("invalid character found");t=n<<16|r<<8|i,o+=Dd[t>>18&63]+Dd[t>>12&63]+Dd[t>>6&63]+Dd[t&63]}return s?o.slice(0,s-3)+"===".substring(s):o},Lw=Kwe?e=>btoa(e):ad?e=>Buffer.from(e,"binary").toString("base64"):DH,J2=ad?e=>Buffer.from(e).toString("base64"):e=>{let n=[];for(let r=0,i=e.length;r<i;r+=4096)n.push(er.apply(null,e.subarray(r,r+4096)));return Lw(n.join(""))},zm=(e,t=!1)=>t?NH(J2(e)):J2(e),Ywe=e=>{if(e.length<2){var t=e.charCodeAt(0);return t<128?e:t<2048?er(192|t>>>6)+er(128|t&63):er(224|t>>>12&15)+er(128|t>>>6&63)+er(128|t&63)}else{var t=65536+(e.charCodeAt(0)-55296)*1024+(e.charCodeAt(1)-56320);return er(240|t>>>18&7)+er(128|t>>>12&63)+er(128|t>>>6&63)+er(128|t&63)}},Jwe=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,VH=e=>e.replace(Jwe,Ywe),QL=ad?e=>Buffer.from(e,"utf8").toString("base64"):YL?e=>J2(YL.encode(e)):e=>Lw(VH(e)),tc=(e,t=!1)=>t?NH(QL(e)):QL(e),ek=e=>tc(e,!0),Qwe=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,eTe=e=>{switch(e.length){case 4:var t=(7&e.charCodeAt(0))<<18|(63&e.charCodeAt(1))<<12|(63&e.charCodeAt(2))<<6|63&e.charCodeAt(3),n=t-65536;return er((n>>>10)+55296)+er((n&1023)+56320);case 3:return er((15&e.charCodeAt(0))<<12|(63&e.charCodeAt(1))<<6|63&e.charCodeAt(2));default:return er((31&e.charCodeAt(0))<<6|63&e.charCodeAt(1))}},FH=e=>e.replace(Qwe,eTe),BH=e=>{if(e=e.replace(/\s+/g,""),!Zwe.test(e))throw new TypeError("malformed base64.");e+="==".slice(2-(e.length&3));let t,n="",r,i;for(let o=0;o<e.length;)t=Qh[e.charAt(o++)]<<18|Qh[e.charAt(o++)]<<12|(r=Qh[e.charAt(o++)])<<6|(i=Qh[e.charAt(o++)]),n+=r===64?er(t>>16&255):i===64?er(t>>16&255,t>>8&255):er(t>>16&255,t>>8&255,t&255);return n},kw=qwe?e=>atob(HH(e)):ad?e=>Buffer.from(e,"base64").toString("binary"):BH,UH=ad?e=>JL(Buffer.from(e,"base64")):e=>JL(kw(e).split("").map(t=>t.charCodeAt(0))),jH=e=>UH(WH(e)),tTe=ad?e=>Buffer.from(e,"base64").toString("utf8"):ZL?e=>ZL.decode(UH(e)):e=>FH(kw(e)),WH=e=>HH(e.replace(/[-_]/g,t=>t=="-"?"+":"/")),Q2=e=>tTe(WH(e)),nTe=e=>{if(typeof e!="string")return!1;const t=e.replace(/\s+/g,"").replace(/={0,2}$/,"");return!/[^\s0-9a-zA-Z\+/]/.test(t)||!/[^\s0-9a-zA-Z\-_]/.test(t)},GH=e=>({value:e,enumerable:!1,writable:!0,configurable:!0}),zH=function(){const e=(t,n)=>Object.defineProperty(String.prototype,t,GH(n));e("fromBase64",function(){return Q2(this)}),e("toBase64",function(t){return tc(this,t)}),e("toBase64URI",function(){return tc(this,!0)}),e("toBase64URL",function(){return tc(this,!0)}),e("toUint8Array",function(){return jH(this)})},qH=function(){const e=(t,n)=>Object.defineProperty(Uint8Array.prototype,t,GH(n));e("toBase64",function(t){return zm(this,t)}),e("toBase64URI",function(){return zm(this,!0)}),e("toBase64URL",function(){return zm(this,!0)})},rTe=()=>{zH(),qH()},eS={version:$H,VERSION:zwe,atob:kw,atobPolyfill:BH,btoa:Lw,btoaPolyfill:DH,fromBase64:Q2,toBase64:tc,encode:tc,encodeURI:ek,encodeURL:ek,utob:VH,btou:FH,decode:Q2,isValid:nTe,fromUint8Array:zm,toUint8Array:jH,extendString:zH,extendUint8Array:qH,extendBuiltins:rTe};var KH=function(e){MH(t,e);function t(n,r){var i=e.call(this,r)||this;return i.statusCode=n,Object.setPrototypeOf(i,t.prototype),i}return t}(Error),tS=function(e){MH(t,e);function t(n){var r=e.call(this,n)||this;return Object.setPrototypeOf(r,t.prototype),r}return t}(Error),iTe=function(){function e(t,n,r){this.deploymentKey=t,this.serverUrl=n,this.httpClient=r}return e.prototype.getVariants=function(t,n){return RH(this,void 0,void 0,function(){var r,i,o,s;return PH(this,function(a){switch(a.label){case 0:return r=eS.encodeURL(JSON.stringify(t)),i={Authorization:"Api-Key ".concat(this.deploymentKey),"X-Amp-Exp-User":r},n!=null&&n.flagKeys&&(i["X-Amp-Exp-Flag-Keys"]=eS.encodeURL(JSON.stringify(n.flagKeys))),n!=null&&n.trackingOption&&(i["X-Amp-Exp-Track"]=n.trackingOption),o=new URL("".concat(this.serverUrl,"/sdk/v2/vardata?v=0")),n!=null&&n.evaluationMode&&o.searchParams.append("eval_mode",n==null?void 0:n.evaluationMode),n!=null&&n.deliveryMethod&&o.searchParams.append("delivery_method",n==null?void 0:n.deliveryMethod),[4,this.httpClient.request({requestUrl:o.toString(),method:"GET",headers:i,timeoutMillis:n==null?void 0:n.timeoutMillis})];case 1:if(s=a.sent(),s.status!=200)throw new KH(s.status,"Fetch error response: status=".concat(s.status));return[2,JSON.parse(s.body)]}})})},e}(),oTe=function(){function e(t,n,r){this.deploymentKey=t,this.serverUrl=n,this.httpClient=r}return e.prototype.getFlags=function(t){return RH(this,void 0,void 0,function(){var n,r,i;return PH(this,function(o){switch(o.label){case 0:return n={Authorization:"Api-Key ".concat(this.deploymentKey)},t!=null&&t.libraryName&&(t!=null&&t.libraryVersion)&&(n["X-Amp-Exp-Library"]="".concat(t.libraryName,"/").concat(t.libraryVersion)),t!=null&&t.user&&(n["X-Amp-Exp-User"]=eS.encodeURL(JSON.stringify(t.user))),[4,this.httpClient.request({requestUrl:"".concat(this.serverUrl,"/sdk/v2/flags")+(t!=null&&t.deliveryMethod?"?delivery_method=".concat(t.deliveryMethod):""),method:"GET",headers:n,timeoutMillis:t==null?void 0:t.timeoutMillis})];case 1:if(r=o.sent(),r.status!=200)throw Error("Flags error response: status=".concat(r.status));return i=JSON.parse(r.body),[2,i.reduce(function(s,a){return s[a.key]=a,s},{})]}})})},e}(),Yn=typeof globalThis<"u"?globalThis:global||self,Ql=function(){if(typeof globalThis<"u")return globalThis;if(typeof window<"u")return window;if(typeof self<"u")return self;if(typeof global<"u")return global},sTe=function(){var e=Ql();if(e)try{var t="EXP_test";return e.localStorage.setItem(t,t),e.localStorage.removeItem(t),!0}catch{return!1}return!1},aTe=function(){function e(t,n){this.poller=void 0,this.action=t,this.ms=n}return e.prototype.start=function(){this.poller||(this.poller=Yn.setInterval(this.action,this.ms),this.action())},e.prototype.stop=function(){this.poller&&(Yn.clearInterval(this.poller),this.poller=void 0)},e}(),nS={exports:{}};(function(e,t){(function(n,r){var i="0.7.33",o="",s="?",a="function",l="undefined",u="object",c="string",d="major",f="model",p="name",h="type",m="vendor",v="version",g="architecture",y="console",_="mobile",b="tablet",S="smarttv",C="wearable",E="embedded",w=350,T="Amazon",A="Apple",L="ASUS",x="BlackBerry",k="Browser",M="Chrome",z="Edge",P="Firefox",H="Google",q="Huawei",de="LG",se="Microsoft",W="Motorola",V="Opera",B="Samsung",Y="Sharp",F="Sony",Q="Xiaomi",re="Zebra",be="Facebook",Le=function(D,j){var Z={};for(var _e in D)j[_e]&&j[_e].length%2===0?Z[_e]=j[_e].concat(D[_e]):Z[_e]=D[_e];return Z},Me=function(D){for(var j={},Z=0;Z<D.length;Z++)j[D[Z].toUpperCase()]=D[Z];return j},He=function(D,j){return typeof D===c?$(j).indexOf($(D))!==-1:!1},$=function(D){return D.toLowerCase()},U=function(D){return typeof D===c?D.replace(/[^\d\.]/g,o).split(".")[0]:r},ee=function(D,j){if(typeof D===c)return D=D.replace(/^\s\s*/,o),typeof j===l?D:D.substring(0,w)},ce=function(D,j){for(var Z=0,_e,Te,Xe,N,G,J;Z<j.length&&!G;){var we=j[Z],ke=j[Z+1];for(_e=Te=0;_e<we.length&&!G;)if(G=we[_e++].exec(D),G)for(Xe=0;Xe<ke.length;Xe++)J=G[++Te],N=ke[Xe],typeof N===u&&N.length>0?N.length===2?typeof N[1]==a?this[N[0]]=N[1].call(this,J):this[N[0]]=N[1]:N.length===3?typeof N[1]===a&&!(N[1].exec&&N[1].test)?this[N[0]]=J?N[1].call(this,J,N[2]):r:this[N[0]]=J?J.replace(N[1],N[2]):r:N.length===4&&(this[N[0]]=J?N[3].call(this,J.replace(N[1],N[2])):r):this[N]=J||r;Z+=2}},me=function(D,j){for(var Z in j)if(typeof j[Z]===u&&j[Z].length>0){for(var _e=0;_e<j[Z].length;_e++)if(He(j[Z][_e],D))return Z===s?r:Z}else if(He(j[Z],D))return Z===s?r:Z;return D},Ce={"1.0":"/8",1.2:"/1",1.3:"/3","2.0":"/412","2.0.2":"/416","2.0.3":"/417","2.0.4":"/419","?":"/"},xe={ME:"4.90","NT 3.11":"NT3.51","NT 4.0":"NT4.0",2e3:"NT 5.0",XP:["NT 5.1","NT 5.2"],Vista:"NT 6.0",7:"NT 6.1",8:"NT 6.2",8.1:"NT 6.3",10:["NT 6.4","NT 10.0"],RT:"ARM"},Ae={browser:[[/\b(?:crmo|crios)\/([\w\.]+)/i],[v,[p,"Chrome"]],[/edg(?:e|ios|a)?\/([\w\.]+)/i],[v,[p,"Edge"]],[/(opera mini)\/([-\w\.]+)/i,/(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i,/(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i],[p,v],[/opios[\/ ]+([\w\.]+)/i],[v,[p,V+" Mini"]],[/\bopr\/([\w\.]+)/i],[v,[p,V]],[/(kindle)\/([\w\.]+)/i,/(lunascape|maxthon|netfront|jasmine|blazer)[\/ ]?([\w\.]*)/i,/(avant |iemobile|slim)(?:browser)?[\/ ]?([\w\.]*)/i,/(ba?idubrowser)[\/ ]?([\w\.]+)/i,/(?:ms|\()(ie) ([\w\.]+)/i,/(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|quark|qupzilla|falkon|rekonq|puffin|brave|whale|qqbrowserlite|qq|duckduckgo)\/([-\w\.]+)/i,/(weibo)__([\d\.]+)/i],[p,v],[/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i],[v,[p,"UC"+k]],[/microm.+\bqbcore\/([\w\.]+)/i,/\bqbcore\/([\w\.]+).+microm/i],[v,[p,"WeChat(Win) Desktop"]],[/micromessenger\/([\w\.]+)/i],[v,[p,"WeChat"]],[/konqueror\/([\w\.]+)/i],[v,[p,"Konqueror"]],[/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i],[v,[p,"IE"]],[/yabrowser\/([\w\.]+)/i],[v,[p,"Yandex"]],[/(avast|avg)\/([\w\.]+)/i],[[p,/(.+)/,"$1 Secure "+k],v],[/\bfocus\/([\w\.]+)/i],[v,[p,P+" Focus"]],[/\bopt\/([\w\.]+)/i],[v,[p,V+" Touch"]],[/coc_coc\w+\/([\w\.]+)/i],[v,[p,"Coc Coc"]],[/dolfin\/([\w\.]+)/i],[v,[p,"Dolphin"]],[/coast\/([\w\.]+)/i],[v,[p,V+" Coast"]],[/miuibrowser\/([\w\.]+)/i],[v,[p,"MIUI "+k]],[/fxios\/([-\w\.]+)/i],[v,[p,P]],[/\bqihu|(qi?ho?o?|360)browser/i],[[p,"360 "+k]],[/(oculus|samsung|sailfish|huawei)browser\/([\w\.]+)/i],[[p,/(.+)/,"$1 "+k],v],[/(comodo_dragon)\/([\w\.]+)/i],[[p,/_/g," "],v],[/(electron)\/([\w\.]+) safari/i,/(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i,/m?(qqbrowser|baiduboxapp|2345Explorer)[\/ ]?([\w\.]+)/i],[p,v],[/(metasr)[\/ ]?([\w\.]+)/i,/(lbbrowser)/i,/\[(linkedin)app\]/i],[p],[/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i],[[p,be],v],[/safari (line)\/([\w\.]+)/i,/\b(line)\/([\w\.]+)\/iab/i,/(chromium|instagram)[\/ ]([-\w\.]+)/i],[p,v],[/\bgsa\/([\w\.]+) .*safari\//i],[v,[p,"GSA"]],[/headlesschrome(?:\/([\w\.]+)| )/i],[v,[p,M+" Headless"]],[/ wv\).+(chrome)\/([\w\.]+)/i],[[p,M+" WebView"],v],[/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i],[v,[p,"Android "+k]],[/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i],[p,v],[/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i],[v,[p,"Mobile Safari"]],[/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i],[v,p],[/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i],[p,[v,me,Ce]],[/(webkit|khtml)\/([\w\.]+)/i],[p,v],[/(navigator|net
vendor: 4,458 bytes, line 694
694scape\d?)\/([-\w\.]+)/i],[[p,"Netscape"],v],[/mobile vr; rv:([\w\.]+)\).+firefox/i],[v,[p,P+" Reality"]],[/ekiohf.+(flow)\/([\w\.]+)/i,/(swiftfox)/i,/(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror|klar)[\/ ]?([\w\.\+]+)/i,/(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i,/(firefox)\/([\w\.]+)/i,/(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i,/(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|sleipnir|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i,/(links) \(([\w\.]+)/i],[p,v],[/(cobalt)\/([\w\.]+)/i],[p,[v,/master.|lts./,""]]],cpu:[[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i],[[g,"amd64"]],[/(ia32(?=;))/i],[[g,$]],[/((?:i[346]|x)86)[;\)]/i],[[g,"ia32"]],[/\b(aarch64|arm(v?8e?l?|_?64))\b/i],[[g,"arm64"]],[/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i],[[g,"armhf"]],[/windows (ce|mobile); ppc;/i],[[g,"arm"]],[/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i],[[g,/ower/,o,$]],[/(sun4\w)[;\)]/i],[[g,"sparc"]],[/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i],[[g,$]]],device:[[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i],[f,[m,B],[h,b]],[/\b((?:s[cgp]h|gt|sm)-\w+|galaxy nexus)/i,/samsung[- ]([-\w]+)/i,/sec-(sgh\w+)/i],[f,[m,B],[h,_]],[/((ipod|iphone)\d+,\d+)/i],[f,[m,A],[h,_]],[/(ipad\d+,\d+)/i],[f,[m,A],[h,b]],[/\((ip(?:hone|od)[\w ]*);/i],[f,[m,A],[h,_]],[/\((ipad);[-\w\),; ]+apple/i,/applecoremedia\/[\w\.]+ \((ipad)/i,/\b(ipad)\d\d?,\d\d?[;\]].+ios/i],[f,[m,A],[h,b]],[/(macintosh);/i],[f,[m,A]],[/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i],[f,[m,q],[h,b]],[/(?:huawei|honor)([-\w ]+)[;\)]/i,/\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i],[f,[m,q],[h,_]],[/\b(poco[\w ]+)(?: bui|\))/i,/\b; (\w+) build\/hm\1/i,/\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i,/\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i,/\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite)?)(?: bui|\))/i],[[f,/_/g," "],[m,Q],[h,_]],[/\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i],[[f,/_/g," "],[m,Q],[h,b]],[/; (\w+) bui.+ oppo/i,/\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i],[f,[m,"OPPO"],[h,_]],[/vivo (\w+)(?: bui|\))/i,/\b(v[12]\d{3}\w?[at])(?: bui|;)/i],[f,[m,"Vivo"],[h,_]],[/\b(rmx[12]\d{3})(?: bui|;|\))/i],[f,[m,"Realme"],[h,_]],[/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i,/\bmot(?:orola)?[- ](\w*)/i,/((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i],[f,[m,W],[h,_]],[/\b(mz60\d|xoom[2 ]{0,2}) build\//i],[f,[m,W],[h,b]],[/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i],[f,[m,de],[h,b]],[/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i,/\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i,/\blg-?([\d\w]+) bui/i],[f,[m,de],[h,_]],[/(ideatab[-\w ]+)/i,/lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i],[f,[m,"Lenovo"],[h,b]],[/(?:maemo|nokia).*(n900|lumia \d+)/i,/nokia[-_ ]?([-\w\.]*)/i],[[f,/_/g," "],[m,"Nokia"],[h,_]],[/(pixel c)\b/i],[f,[m,H],[h,b]],[/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i],[f,[m,H],[h,_]],[/droid.+ (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i],[f,[m,F],[h,_]],[/sony tablet [ps]/i,/\b(?:sony)?sgp\w+(?: bui|\))/i],[[f,"Xperia Tablet"],[m,F],[h,b]],[/ (kb2005|in20[12]5|be20[12][59])\b/i,/(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i],[f,[m,"OnePlus"],[h,_]],[/(alexa)webm/i,/(kf[a-z]{2}wi)( bui|\))/i,/(kf[a-z]+)( bui|\)).+silk\//i],[f,[m,T],[h,b]],[/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i],[[f,/(.+)/g,"Fire Phone $1"],[m,T],[h,_]],[/(playbook);[-\w\),; ]+(rim)/i],[f,m,[h,b]],[/\b((?:bb[a-f]|st[hv])100-\d)/i,/\(bb10; (\w+)/i],[f,[m,x],[h,_]],[/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i],[f,[m,L],[h,b]],[/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i],[f,[m,L],[h,_]],[/(nexus 9)/i],[f,[m,"HTC"],[h,b]],[/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i,/(zte)[- ]([\w ]+?)(?: bui|\/|\))/i,/(alcatel|geeksphone|nexian|panasonic|sony(?!-bra))[-_ ]?([-\w]*)/i],[m,[f,/_/g," "],[h,_]],[/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i],[f,[m,"Acer"],[h,b]],[/droid.+; (m[1-5] note) bui/i,/\bmz-([-\w]{2,})/i],[f,[m,"Meizu"],[h,_]],[/\b(sh-?[altvz]?\d\d[a-ekm]?)/i],[f,[m,Y],[h,_]],[/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron)[-_ ]?([-\w]*)/i,/(hp) ([\w ]+\w)/i,/(asu
vendor: 6,771 bytes, line 694
694s)-?(\w+)/i,/(microsoft); (lumia[\w ]+)/i,/(lenovo)[-_ ]?([-\w]+)/i,/(jolla)/i,/(oppo) ?([\w ]+) bui/i],[m,f,[h,_]],[/(archos) (gamepad2?)/i,/(hp).+(touchpad(?!.+tablet)|tablet)/i,/(kindle)\/([\w\.]+)/i,/(nook)[\w ]+build\/(\w+)/i,/(dell) (strea[kpr\d ]*[\dko])/i,/(le[- ]+pan)[- ]+(\w{1,9}) bui/i,/(trinity)[- ]*(t\d{3}) bui/i,/(gigaset)[- ]+(q\w{1,9}) bui/i,/(vodafone) ([\w ]+)(?:\)| bui)/i],[m,f,[h,b]],[/(surface duo)/i],[f,[m,se],[h,b]],[/droid [\d\.]+; (fp\du?)(?: b|\))/i],[f,[m,"Fairphone"],[h,_]],[/(u304aa)/i],[f,[m,"AT&T"],[h,_]],[/\bsie-(\w*)/i],[f,[m,"Siemens"],[h,_]],[/\b(rct\w+) b/i],[f,[m,"RCA"],[h,b]],[/\b(venue[\d ]{2,7}) b/i],[f,[m,"Dell"],[h,b]],[/\b(q(?:mv|ta)\w+) b/i],[f,[m,"Verizon"],[h,b]],[/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i],[f,[m,"Barnes & Noble"],[h,b]],[/\b(tm\d{3}\w+) b/i],[f,[m,"NuVision"],[h,b]],[/\b(k88) b/i],[f,[m,"ZTE"],[h,b]],[/\b(nx\d{3}j) b/i],[f,[m,"ZTE"],[h,_]],[/\b(gen\d{3}) b.+49h/i],[f,[m,"Swiss"],[h,_]],[/\b(zur\d{3}) b/i],[f,[m,"Swiss"],[h,b]],[/\b((zeki)?tb.*\b) b/i],[f,[m,"Zeki"],[h,b]],[/\b([yr]\d{2}) b/i,/\b(dragon[- ]+touch |dt)(\w{5}) b/i],[[m,"Dragon Touch"],f,[h,b]],[/\b(ns-?\w{0,9}) b/i],[f,[m,"Insignia"],[h,b]],[/\b((nxa|next)-?\w{0,9}) b/i],[f,[m,"NextBook"],[h,b]],[/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i],[[m,"Voice"],f,[h,_]],[/\b(lvtel\-)?(v1[12]) b/i],[[m,"LvTel"],f,[h,_]],[/\b(ph-1) /i],[f,[m,"Essential"],[h,_]],[/\b(v(100md|700na|7011|917g).*\b) b/i],[f,[m,"Envizen"],[h,b]],[/\b(trio[-\w\. ]+) b/i],[f,[m,"MachSpeed"],[h,b]],[/\btu_(1491) b/i],[f,[m,"Rotor"],[h,b]],[/(shield[\w ]+) b/i],[f,[m,"Nvidia"],[h,b]],[/(sprint) (\w+)/i],[m,f,[h,_]],[/(kin\.[onetw]{3})/i],[[f,/\./g," "],[m,se],[h,_]],[/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i],[f,[m,re],[h,b]],[/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i],[f,[m,re],[h,_]],[/(ouya)/i,/(nintendo) ([wids3utch]+)/i],[m,f,[h,y]],[/droid.+; (shield) bui/i],[f,[m,"Nvidia"],[h,y]],[/(playstation [345portablevi]+)/i],[f,[m,F],[h,y]],[/\b(xbox(?: one)?(?!; xbox))[\); ]/i],[f,[m,se],[h,y]],[/smart-tv.+(samsung)/i],[m,[h,S]],[/hbbtv.+maple;(\d+)/i],[[f,/^/,"SmartTV"],[m,B],[h,S]],[/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i],[[m,de],[h,S]],[/(apple) ?tv/i],[m,[f,A+" TV"],[h,S]],[/crkey/i],[[f,M+"cast"],[m,H],[h,S]],[/droid.+aft(\w)( bui|\))/i],[f,[m,T],[h,S]],[/\(dtv[\);].+(aquos)/i,/(aquos-tv[\w ]+)\)/i],[f,[m,Y],[h,S]],[/(bravia[\w ]+)( bui|\))/i],[f,[m,F],[h,S]],[/(mitv-\w{5}) bui/i],[f,[m,Q],[h,S]],[/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i,/hbbtv\/\d+\.\d+\.\d+ +\([\w ]*; *(\w[^;]*);([^;]*)/i],[[m,ee],[f,ee],[h,S]],[/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i],[[h,S]],[/((pebble))app/i],[m,f,[h,C]],[/droid.+; (glass) \d/i],[f,[m,H],[h,C]],[/droid.+; (wt63?0{2,3})\)/i],[f,[m,re],[h,C]],[/(quest( 2)?)/i],[f,[m,be],[h,C]],[/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i],[m,[h,E]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+? mobile safari/i],[f,[h,_]],[/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i],[f,[h,b]],[/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i],[[h,b]],[/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i],[[h,_]],[/(android[-\w\. ]{0,9});.+buil/i],[f,[m,"Generic"]]],engine:[[/windows.+ edge\/([\w\.]+)/i],[v,[p,z+"HTML"]],[/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i],[v,[p,"Blink"]],[/(presto)\/([\w\.]+)/i,/(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna)\/([\w\.]+)/i,/ekioh(flow)\/([\w\.]+)/i,/(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i,/(icab)[\/ ]([23]\.[\d\.]+)/i],[p,v],[/rv\:([\w\.]{1,9})\b.+(gecko)/i],[v,p]],os:[[/microsoft (windows) (vista|xp)/i],[p,v],[/(windows) nt 6\.2; (arm)/i,/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i,/(windows)[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i],[p,[v,me,xe]],[/(win(?=3|9|n)|win 9x )([nt\d\.]+)/i],[[p,"Windows"],[v,me,xe]],[/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i,/cfnetwork\/.+darwin/i],[[v,/_/g,"."],[p,"iOS"]],[/(mac os x) ?([\w\. ]*)/i,/(macintosh|mac_powerpc\b)(?!.+haiku)/i],[[p,"Mac OS"],[v,/_/g,"."]],[/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i],[v,p],[/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish)[-\/ ]?([\w\.]*)/i,/(blackberry)\w*\/([\w\.]*)/i,/(tizen|kaios)[\/ ]([\w\.]+)/i,/\((series40);/i],[p,v],[/\(bb(10);/i],[v,[p,x]],[/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i],[v,[p,"Symbian"]],[/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i],[v,[p,P+" OS"]],[/web0s;.+rt(tv)/i,/\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i],[v,[p,"webOS"]],[/crkey\/([\d\.]+)/i],[v,[p,M+"cast"]],[/(cros) [\w]+ ([\w\.]+\w)/i],[[p,"Chromium OS"],v],[/(nintendo|playstation) ([wids345portablevuch]+)/i,/(xbox); +xbox ([^\);]+)/i,/\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i,/(mint)[\/\(\) ]?(\w*)/i,/(mageia|vectorlinux)[; ]/i,/([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i,/(hurd|linux) ?([\w\.]*)/i,/(gnu) ?([\w\.]*)/i,/\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i,/(haiku) (\w+)/i],[p,v],[/(sunos) ?([\w\.\d]*)/i],[[p,"Solaris"],v],[/((?:open)?solaris)[-\/ ]?([\w\.]*)/i,/(aix) ((\d)(?=\.|\)| )[\w\.])*/i,/\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux)/i,/(unix) ?([\w\.]*)/i],[p,v]]},te=function(D,j){if(typeof D===u&&(j=D,D=r),!(this instanceof te))return new te(D,j).getResult();var Z=D||(typeof n!==l&&n.navigator&&n.navigator.userAgent?n.navigator.userAgent:o),_e=j?Le(Ae,j):Ae;return this.getBrowser=function(){var Te={};return Te[p]=r,Te[v]=r,ce.call(Te,Z,_e.browser),Te.major=U(Te.version),Te},this.getCPU=function(){var Te={};return Te[g]=r,ce.call(Te,Z,_e.cpu),Te},this.getDevice=function(){var Te={};return Te[m]=r,Te[f]=r,Te[h]=r,ce.call(Te,Z,_e.device),Te},this.getEngine=function(){var Te={};return Te[p]=r,Te[v]=r,ce.call(Te,Z,_e.engine),Te},this.getOS=function(){var Te={};return Te[p]=r,Te[v]=r,ce.call(Te,Z,_e.os),Te},this.getResult=function(){return{ua:this.getUA(),browser:this.getBrowser(),engine:this.getEngine(),os:this.getOS(),device:this.getDevice(),cpu:this.getCPU()}},this.getUA=function(){return Z},this.setUA=function(Te){return Z=typeof Te===c&&Te.length>w?ee(Te,w):Te,this},this.setUA(Z),this};te.VERSION=i,te.BROWSER=Me([p,v,d]),te.CPU=Me([g]),te.DEVICE=Me([f,m,h,y,_,S,b,C,E]),te.ENGINE=te.OS=Me([p,v]),e.exports&&(t=e.exports=te),t.UAParser=te;var le=typeof n!==l&&(n.jQuery||n.Zepto);if(le&&!le.ua){var ye=new te;le.ua=ye.getResult(),le.ua.get=function(){return ye.getUA()},le.ua.set=function(D){ye.setUA(D);var j=ye.getResult();for(var Z in j)le.ua[Z]=j[Z]}}})(typeof window=="object"?window:zi)}
vendor: 21,060 bytes, line 694
694)(nS,nS.exports);var lTe=nS.exports,Ft=function(){return Ft=Object.assign||function(t){for(var n,r=1,i=arguments.length;r<i;r++){n=arguments[r];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},Ft.apply(this,arguments)};function dr(e,t,n,r){function i(o){return o instanceof n?o:new n(function(s){s(o)})}return new(n||(n=Promise))(function(o,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?o(c.value):i(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}function fr(e,t){var n={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},r,i,o,s=Object.create((typeof Iterator=="function"?Iterator:Object).prototype);return s.next=a(0),s.throw=a(1),s.return=a(2),typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return l([u,c])}}function l(u){if(r)throw new TypeError("Generator is already executing.");for(;s&&(s=0,u[0]&&(n=0)),n;)try{if(r=1,i&&(o=u[0]&2?i.return:u[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,u[1])).done)return o;switch(i=0,o&&(u=[u[0]&2,o.value]),u[0]){case 0:case 1:o=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,i=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(o=n.trys,!(o=o.length>0&&o[o.length-1])&&(u[0]===6||u[0]===2)){n=0;continue}if(u[0]===3&&(!o||u[1]>o[0]&&u[1]<o[3])){n.label=u[1];break}if(u[0]===6&&n.label<o[1]){n.label=o[1],o=u;break}if(o&&n.label<o[2]){n.label=o[2],n.ops.push(u);break}o[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],i=0}finally{r=o=0}if(u[0]&5)throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}}function Cs(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function tl(e,t){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var r=n.call(e),i,o=[],s;try{for(;(t===void 0||t-- >0)&&!(i=r.next()).done;)o.push(i.value)}catch(a){s={error:a}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return o}function rS(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,o;r<i;r++)(o||!(r in t))&&(o||(o=Array.prototype.slice.call(t,0,r)),o[r]=t[r]);return e.concat(o||Array.prototype.slice.call(t))}var tk=function(e,t){var n,r;t===void 0&&(t=!1);var i=Mw(e,t),o=void 0,s=Yn.document.cookie.split("; ");try{for(var a=Cs(s),l=a.next();!l.done;l=a.next()){var u=l.value,c=tl(u.split("=",2),2),d=c[0],f=c[1];d===i&&(o=decodeURIComponent(f))}}catch(v){n={error:v}}finally{try{l&&!l.done&&(r=a.return)&&r.call(a)}finally{if(n)throw n.error}}if(o)try{if(t){var p=atob(o);return JSON.parse(decodeURIComponent(p))}var h=o.split("."),m=void 0;return h.length>=2&&h[1]&&(m=atob(h[1])),{deviceId:h[0],userId:m}}catch{return}},uTe=function(e){var t=Mw(e,!0);try{var n=Yn.localStorage.getItem(t);if(!n)return;var r=JSON.parse(n);return typeof r!="object"?void 0:r}catch{return}},cTe=function(e){var t=Mw(e,!0);try{var n=Yn.sessionStorage.getItem(t);if(!n)return;var r=JSON.parse(n);return typeof r!="object"?void 0:r}catch{return}},Mw=function(e,t){if(t)return(e==null?void 0:e.length)<10?void 0:"AMP_".concat(e.substring(0,10));if(!((e==null?void 0:e.length)<6))return"amp_".concat(e.substring(0,6))},dTe=function(){function e(t,n,r){this.type="integration",this.apiKey=t,this.identityStore=n.identityStore,this.eventBridge=n.eventBridge,this.contextProvider=n.applicationContextProvider,this.timeoutMillis=r,this.loadPersistedState(),r<=0&&(this.setup=void 0)}return e.prototype.setup=function(t,n){return dr(this,void 0,void 0,function(){return fr(this,function(r){return t!=null&&t.automaticFetchOnAmplitudeIdentityChange&&this.identityStore.addIdentityListener(function(){n==null||n.fetch()}),[2,this.waitForConnectorIdentity(this.timeoutMillis)]})})},e.prototype.getUser=function(){var t=this.identityStore.getIdentity();return{user_id:t.userId,device_id:t.deviceId,user_properties:t.userProperties,version:this.contextProvider.versionName}},e.prototype.track=function(t){return this.eventBridge.receiver?(this.eventBridge.logEvent({eventType:t.eventType,eventProperties:t.eventProperties}),!0):!1},e.prototype.loadPersistedState=function(){if(!this.apiKey||this.apiKey.startsWith("client-"))return!1;var t=tk(this.apiKey,!0);return t?(this.commitIdentityToConnector(t),!0):(t=tk(this.apiKey,!1),t?(this.commitIdentityToConnector(t),!0):(t=uTe(this.apiKey),t?(this.commitIdentityToConnector(t),!0):(t=cTe(this.apiKey),t?(this.commitIdentityToConnector(t),!0):!1)))},e.prototype.commitIdentityToConnector=function(t){var n=this.identityStore.editIdentity();n.setDeviceId(t.deviceId),t.userId&&n.setUserId(t.userId),n.commit()},e.prototype.waitForConnectorIdentity=function(t){return dr(this,void 0,void 0,function(){var n,r=this;return fr(this,function(i){return n=this.identityStore.getIdentity(),!n.userId&&!n.deviceId?[2,Promise.race([new Promise(function(o){var s=function(){o(),r.identityStore.removeIdentityListener(s)};r.identityStore.addIdentityListener(s)}),new Promise(function(o,s){Yn.setTimeout(s,t,"Timed out waiting for Amplitude Analytics SDK to initialize.")})])]:[2]})})},e}();function fTe(e,t){return t=t||{},new Promise(function(n,r){var i=new XMLHttpRequest,o=[],s=[],a={},l=function(){return{ok:(i.status/100|0)==2,statusText:i.statusText,status:i.status,url:i.responseURL,text:function(){return Promise.resolve(i.responseText)},json:function(){return Promise.resolve(JSON.parse(i.responseText))},blob:function(){return Promise.resolve(new Blob([i.response]))},clone:l,headers:{keys:function(){return o},entries:function(){return s},get:function(c){return a[c.toLowerCase()]},has:function(c){return c.toLowerCase()in a}}}};for(var u in i.open(t.method||"get",e,!0),i.onload=function(){i.getAllResponseHeaders().replace(/^(.*?):[^\S\n]*([\s\S]*?)$/gm,function(c,d,f){o.push(d=d.toLowerCase()),s.push([d,f]),a[d]=a[d]?a[d]+","+f:f}),n(l())},i.onerror=r,i.withCredentials=t.credentials=="include",t.headers)i.setRequestHeader(u,t.headers[u]);i.send(t.body||null)})}var pTe=Yn.fetch||fTe,hTe=function(e,t){return t==null||t<=0?e:new Promise(function(n,r){Yn.setTimeout(function(){r(new tS("Request timeout after "+t+" milliseconds"))},t),e.then(n,r)})},mTe=function(e,t,n,r,i){var o=function(){return dr(void 0,void 0,void 0,function(){var s,a,l;return fr(this,function(u){switch(u.label){case 0:return[4,pTe(e,{method:t,headers:n,body:r})];case 1:return s=u.sent(),l={status:s.status},[4,s.text()];case 2:return a=(l.body=u.sent(),l),[2,a]}})})};return hTe(o(),i)},vTe=function(){function e(t){this.client=t}return e.prototype.request=function(t){return dr(this,void 0,void 0,function(){return fr(this,function(n){switch(n.label){case 0:return[4,this.client.request(t.requestUrl,t.method,t.headers,null,t.timeoutMillis)];case 1:return[2,n.sent()]}})})},e}(),XH={request:mTe},ns;(function(e){e.LocalStorage="localStorage",e.InitialVariants="initialVariants"})(ns||(ns={}));var Wn;(function(e){e.LocalStorage="storage",e.InitialVariants="initial",e.SecondaryLocalStorage="secondary-storage",e.SecondaryInitialVariants="secondary-initial",e.FallbackInline="fallback-inline",e.FallbackConfig="fallback-config",e.LocalEvaluation="local-evaluation"})(Wn||(Wn={}));var nk=function(e){return!e||e===Wn.FallbackInline||e===Wn.FallbackConfig||e===Wn.SecondaryInitialVariants},Du={debug:!1,instanceName:"$default_instance",fallbackVariant:{},initialVariants:{},initialFlags:void 0,source:ns.LocalStorage,serverUrl:"https://api.lab.amplitude.com",flagsServerUrl:"https://flag.lab.amplitude.com",serverZone:"US",fetchTimeoutMillis:1e4,retryFetchOnFailure:!0,throwOnError:!1,automaticExposureTracking:!0,pollOnStart:!0,flagConfigPollingIntervalMillis:3e5,fetchOnStart:!0,automaticFetchOnAmplitudeIdentityChange:!1,userProvider:null,analyticsProvider:null,exposureTrackingProvider:null,httpClient:XH},rk="1.16.2",gTe=512,yTe=function(){function e(t,n){var r=this,i;this.isReady=new Promise(function(s){r.resolve=s}),this.config=t,this.client=n;var o=(i=t.instanceName)!==null&&i!==void 0?i:Du.instanceName;this.queue=new _Te(o),this.cache=new bTe(o)}return e.prototype.ready=function(){return this.integration?this.isReady:Promise.resolve()},e.prototype.setIntegration=function(t){var n=this;this.integration&&this.integration.teardown&&this.integration.teardown(),this.integration=t,t.setup?this.integration.setup(this.config,this.client).then(function(){n.queue.setTracker(n.integration.track.bind(t)),n.resolve()},function(){n.queue.setTracker(n.integration.track.bind(t)),n.resolve()}):(this.queue.setTracker(this.integration.track.bind(t)),this.resolve())},e.prototype.getUser=function(){return this.integration?this.integration.getUser():{}},e.prototype.track=function(t){if(this.cache.shouldTrack(t)){var n=this.getExposureEvent(t);this.queue.push(n)}},e.prototype.getExposureEvent=function(t){var n,r,i,o={eventType:"$exposure",eventProperties:t};return!((n=t.metadata)===null||n===void 0)&&n.exposureEvent?o={eventType:(r=t.metadata)===null||r===void 0?void 0:r.exposureEvent,eventProperties:t}:((i=t.metadata)===null||i===void 0?void 0:i.deliveryMethod)==="web"&&(o={eventType:"$impression",eventProperties:t}),o},e}(),bTe=function(){function e(t){this.isSessionStorageAvailable=STe(),this.inMemoryCache={},this.storageKey="EXP_sent_v2_".concat(t),this.isSessionStorageAvailable&&Yn.sessionStorage.removeItem("EXP_sent_".concat(t))}return e.prototype.shouldTrack=function(t){var n;if(((n=t.metadata)===null||n===void 0?void 0:n.deliveryMethod)==="web")return!0;this.loadCache();var r=this.inMemoryCache[t.flag_key],i=!1;return(!r||r.variant!==t.variant)&&(i=!0,this.inMemoryCache[t.flag_key]=t),this.storeCache(),i},e.prototype.loadCache=function(){if(this.isSessionStorageAvailable){var t=Yn.sessionStorage.getItem(this.storageKey);this.inMemoryCache=t?JSON.parse(t):{}}},e.prototype.storeCache=function(){this.isSessionStorageAvailable&&Yn.sessionStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryCache))},e}(),_Te=function(){function e(t,n){n===void 0&&(n=gTe),this.isLocalStorageAvailable=sTe(),this.inMemoryQueue=[],this.storageKey="EXP_unsent_".concat(t),this.maxQueueSize=n}return e.prototype.push=function(t){this.loadQueue(),this.inMemoryQueue.push(t),this.flush(),this.storeQueue()},e.prototype.setTracker=function(t){var n=this;this.tracker=t,this.poller=Yn.setInterval(function(){n.loadFlushStore()},1e3),this.loadFlushStore()},e.prototype.flush=function(){var t,n;if(this.tracker&&this.inMemoryQueue.length!==0){try{for(var r=Cs(this.inMemoryQueue),i=r.next();!i.done;i=r.next()){var o=i.value;try{if(!this.tracker(o))return}catch{return}}}catch(s){t={error:s}}finally{try{i&&!i.done&&(n=r.return)&&n.call(r)}finally{if(t)throw t.error}}this.inMemoryQueue=[],this.poller&&(Yn.clearInterval(this.poller),this.poller=void 0)}},e.prototype.loadQueue=function(){if(this.isLocalStorageAvailable){var t=Yn.localStorage.getItem(this.storageKey);this.inMemoryQueue=t?JSON.parse(t):[]}},e.prototype.storeQueue=function(){this.isLocalStorageAvailable&&(this.inMemoryQueue.length>this.maxQueueSize&&(this.inMemoryQueue=this.inMemoryQueue.slice(this.inMemoryQueue.length-this.maxQueueSize)),Yn.localStorage.setItem(this.storageKey,JSON.stringify(this.inMemoryQueue)))},e.prototype.loadFlushStore=function(){this.loadQueue(),this.flush(),this.storeQueue()},e}(),STe=function(){var e=Ql();if(e)try{var t="EXP_test";return e.sessionStorage.setItem(t,t),e.sessionStorage.removeItem(t),!0}catch{return!1}return!1},Rw=function(){function e(){this.globalScope=Ql()}return e.prototype.get=function(t){var n;return(n=this.globalScope)===null||n===void 0?void 0:n.localStorage.getItem(t)},e.prototype.put=function(t,n){var r;(r=this.globalScope)===null||r===void 0||r.localStorage.setItem(t,n)},e.prototype.delete=function(t){var n;(n=this.globalScope)===null||n===void 0||n.localStorage.removeItem(t)},e}(),ETe=function(e,t,n){var r=e.substring(e.length-6),i="amp-exp-".concat(t,"-").concat(r);return new ZH(i,n,YH)},CTe=function(e,t,n){n===void 0&&(n=new Rw);var r=e.substring(e.length-6),i="amp-exp-".concat(t,"-").concat(r,"-flags");return new ZH(i,n)},ZH=function(){function e(t,n,r){this.cache={},this.namespace=t,this.storage=n,this.transformer=r}return e.prototype.get=function(t){return this.cache[t]},e.prototype.getAll=function(){return Ft({},this.cache)},e.prototype.put=function(t,n){this.cache[t]=n},e.prototype.putAll=function(t){var n,r;try{for(var i=Cs(Object.keys(t)),o=i.next();!o.done;o=i.next()){var s=o.value;this.cache[s]=t[s]}}catch(a){n={error:a}}finally{try{o&&!o.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}},e.prototype.remove=function(t){delete this.cache[t]},e.prototype.clear=function(){this.cache={}},e.prototype.load=function(){var t,n,r=this.storage.get(this.namespace),i;try{i=JSON.parse(r)||{}}catch{return}var o={};try{for(var s=Cs(Object.keys(i)),a=s.next();!a.done;a=s.next()){var l=a.value;try{var u=void 0;this.transformer?u=this.transformer(i[l]):u=i[l],u&&(o[l]=u)}catch{}}}catch(c){t={error:c}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}this.clear(),this.putAll(o)},e.prototype.store=function(t){t===void 0&&(t=this.cache),this.storage.put(this.namespace,JSON.stringify(t))},e}(),YH=function(e){if(typeof e=="string")return{key:e,value:e};if(typeof e=="object"){var t=e.key,n=e.value,r=e.payload,i=e.metadata,o=e.expKey;i&&i.experimentKey?o=i.experimentKey:o&&(i=i||{},i.experimentKey=o);var s={};return t?s.key=t:n&&(s.key=n),n&&(s.value=n),i&&(s.metadata=i),r&&(s.payload=r),o&&(s.expKey=o),s}},JH=function(){function e(){this.globalScope=Ql()}return e.prototype.get=function(t){var n;return(n=this.globalScope)===null||n===void 0?void 0:n.sessionStorage.getItem(t)},e.prototype.put=function(t,n){var r;(r=this.globalScope)===null||r===void 0||r.sessionStorage.setItem(t,n)},e.prototype.delete=function(t){var n;(n=this.globalScope)===null||n===void 0||n.sessionStorage.removeItem(t)},e}(),wTe=function(e,t,n,r){var i,o="[Experiment] Exposure",s=n==null?void 0:n.value,a="[Experiment] ".concat(t);return{name:o,user:e,key:t,variant:n,userProperty:a,properties:{key:t,variant:s,source:r},userProperties:(i={},i[a]=s,i)}},Wi=function(e){return e==null},Xy=function(e){return Wi(e)?!0:e&&Object.keys(e).length===0},TTe=function(e){var t,n;if(!e||typeof e!="object")return{};var r={};try{for(var i=Cs(Object.entries(e)),o=i.next();!o.done;o=i.next()){var s=tl(o.value,2),a=s[0],l=s[1];Wi(l)||(r[a]=l)}}catch(u){t={error:u}}finally{try{o&&!o.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return r},ik=function(e){var t;return((t=e==null?void 0:e.metadata)===null||t===void 0?void 0:t.evaluationMode)==="local"},ATe=function(){function e(t,n,r,i){this.started=!1,this.done=!1,this.attempts=t,this.min=n,this.max=r,this.scalar=i}return e.prototype.start=function(t){return dr(this,void 0,void 0,function(){return fr(this,function(n){switch(n.label){case 0:if(!this.started)this.started=!0;else throw Error("Backoff already started");return[4,this.backoff(t,0,this.min)];case 1:return n.sent(),[2]}})})},e.prototype.cancel=function(){this.done=!0,clearTimeout(this.timeoutHandle)},e.prototype.backoff=function(t,n,r){return dr(this,void 0,void 0,function(){var i=this;return fr(this,function(o){return this.done?[2]:(this.timeoutHandle=Yn.setTimeout(function(){return dr(i,void 0,void 0,function(){var s,a;return fr(this,function(l){switch(l.label){case 0:return l.trys.push([0,2,,3]),[4,t()];case 1:return l.sent(),[3,3];case 2:return l.sent(),s=n+1,s<this.attempts&&(a=Math.min(r*this.scalar,this.max),this.backoff(t,s,a)),[3,3];case 3:return[2]}})})},r),[2])})})},e}(),ITe=function(e){var t,n,r,i;if(!e)return{};var o={user:e},s=Ql();s&&(o.page={url:s.location.href});var a={};if(!e.groups)return o;try{for(var l=Cs(Object.keys(e.groups)),u=l.next();!u.done;u=l.next()){var c=u.value,d=e.groups[c];if(d.length>0&&d[0]){var f=d[0],p={group_name:f},h=(i=(r=e.group_properties)===null||r===void 0?void 0:r[c])===null||i===void 0?void 0:i[f];h&&Object.keys(h).length>0&&(p.group_properties=h),a[c]=p}}}catch(m){t={error:m}}finally{try{u&&!u.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return Object.keys(a).length>0&&(o.groups=a),delete o.user.groups,delete o.user.group_properties,o},yr=function(e){return e==null?{}:typeof e=="string"?{key:e,value:e}:e},ok=function(e){if(!e)return{};var t=void 0;e.metadata&&(t=e.metadata.experimentKey);var n={};return e.key&&(n.key=e.key),e.value&&(n.value=e.value),e.payload&&(n.payload=e.payload),t&&(n.expKey=t),e.metadata&&(n.metadata=e.metadata),n},xTe=function(){function e(t){this.setProperties={},this.unsetProperties={},this.analyticsProvider=t}return e.prototype.track=function(t){this.setProperties[t.key]!=t.variant.value&&(this.setProperties[t.key]=t.variant.value,delete this.unsetProperties[t.key],this.analyticsProvider.track(t))},e.prototype.setUserProperty=function(t){this.setProperties[t.key]!=t.variant.value&&this.analyticsProvider.setUserProperty(t)},e.prototype.unsetUserProperty=function(t){this.unsetProperties[t.key]||(this.unsetProperties[t.key]="unset",delete this.setProperties[t.key],this.analyticsProvider.unsetUserProperty(t))},e}(),LTe=function(){function e(t){this.tracked={},this.exposureTrackingProvider=t}return e.prototype.track=function(t){var n=this.tracked[t.flag_key];n&&n.variant===t.variant||(this.tracked[t.flag_key]=t,this.exposureTrackingProvider.track(t))},e}(),kTe=1e4,MTe=8,RTe=500,PTe=1e4,OTe=1.5,sk=6e4,$Te="https://api.lab.eu.amplitude.com",NTe="https://flag.lab.eu.amplitude.com",HTe=function(){function e(t,n){var r=this,i,o,s,a;this.engine=new Wwe,this.isRunning=!1,this.apiKey=t,n=TTe(n),this.config=Ft(Ft(Ft({},Du),n),{serverUrl:(n==null?void 0:n.serverUrl)||(((i=n==null?void 0:n.serverZone)===null||i===void 0?void 0:i.toLowerCase())==="eu"?$Te:Du.serverUrl),flagsServerUrl:(n==null?void 0:n.flagsServerUrl)||(((o=n==null?void 0:n.serverZone)===null||o===void 0?void 0:o.toLowerCase())==="eu"?NTe:Du.flagsServerUrl),flagConfigPollingIntervalMillis:n.flagConfigPollingIntervalMillis<sk?sk:(s=n.flagConfigPollingIntervalMillis)!==null&&s!==void 0?s:Du.flagConfigPollingIntervalMillis});var l=(a=this.config)===null||a===void 0?void 0:a.internalInstanceNameSuffix;if(this.isWebExperiment=l==="web",this.poller=new aTe(function(){return r.doFlags()},this.config.flagConfigPollingIntervalMillis),this.config.initialVariants)for(var u in this.config.initialVariants)this.config.initialVariants[u]=YH(this.config.initialVariants[u]);this.config.userProvider&&(this.userProvider=this.config.userProvider),this.config.analyticsProvider&&(this.analyticsProvider=new xTe(this.config.analyticsProvider)),this.config.exposureTrackingProvider&&(this.exposureTrackingProvider=new LTe(this.config.exposureTrackingProvider)),this.integrationManager=new yTe(this.config,this);var c=new vTe(this.config.httpClient||XH);this.flagApi=new oTe(this.apiKey,this.config.flagsServerUrl,c),this.evaluationApi=new iTe(this.apiKey,this.config.serverUrl,c);var d,f=l?"".concat(this.config.instanceName,"-").concat(l):this.config.instanceName;this.isWebExperiment?d=new JH:d=new Rw,this.variants=ETe(this.apiKey,f,d),this.flags=CTe(this.apiKey,f,d);try{this.flags.load(),this.variants.load()}catch{}this.mergeInitialFlagsWithStorage()}return e.prototype.start=function(t){return dr(this,void 0,void 0,function(){var n,r,i,o;return fr(this,function(s){switch(s.label){case 0:if(this.isRunning)return[2];this.isRunning=!0,this.setUser(t),s.label=1;case 1:return s.trys.push([1,6,,7]),n=this.doFlags(),r=(o=this.config.fetchOnStart)!==null&&o!==void 0?o:!0,r?[4,Promise.all([this.fetch(t),n])]:[3,3];case 2:return s.sent(),[3,5];case 3:return[4,n];case 4:s.sent(),s.label=5;case 5:return[3,7];case 6:if(i=s.sent(),this.config.throwOnError)throw i;return[3,7];case 7:return this.config.pollOnStart&&this.poller.start(),[2]}})})},e.prototype.stop=function(){this.isRunning&&(this.poller.stop(),this.isRunning=!1)},e.prototype.fetch=function(){return dr(this,arguments,void 0,function(t,n){var r;return t===void 0&&(t=this.user),fr(this,function(i){switch(i.label){case 0:this.setUser(t||{}),i.label=1;case 1:return i.trys.push([1,3,,4]),[4,this.fetchInternal(t,this.config.fetchTimeoutMillis,this.config.retryFetchOnFailure,n)];case 2:return i.sent(),[3,4];case 3:if(r=i.sent(),this.config.throwOnError)throw r;return this.config.debug&&(r instanceof tS?console.debug(r):console.error(r)),[3,4];case 4:return[2,this]}})})},e.prototype.variant=function(t,n){var r,i;if(!this.apiKey)return{value:void 0};var o=this.variantAndSource(t,n);return this.config.automaticExposureTracking&&this.exposureInternal(t,o),this.debug("[Experiment] variant for ".concat(t," is ").concat(((r=o.variant)===null||r===void 0?void 0:r.key)||((i=o.variant)===null||i===void 0?void 0:i.value))),o.variant||{}}
vendor: 7,829 bytes, line 694
694,e.prototype.exposure=function(t){var n=this.variantAndSource(t);this.exposureInternal(t,n)},e.prototype.all=function(){if(!this.apiKey)return{};var t=this.evaluate();for(var n in t){var r=this.flags.get(n);ik(r)||delete t[n]}return Ft(Ft(Ft({},this.secondaryVariants()),this.sourceVariants()),t)},e.prototype.clear=function(){this.variants.clear();try{this.variants.store()}catch{}},e.prototype.getUser=function(){var t;if(!this.user)return this.user;if(!((t=this.user)===null||t===void 0)&&t.user_properties){var n=Ft({},this.user.user_properties);return Ft(Ft({},this.user),{user_properties:n})}else return Ft({},this.user)},e.prototype.setUser=function(t){var n;if(!t){this.user=null;return}if(!((n=this.user)===null||n===void 0)&&n.user_properties){var r=Ft({},t.user_properties);this.user=Ft(Ft({},t),{user_properties:r})}else this.user=Ft({},t)},e.prototype.getUserProvider=function(){return this.userProvider},e.prototype.setUserProvider=function(t){return this.userProvider=t,this},e.prototype.mergeInitialFlagsWithStorage=function(){var t=this;if(this.config.initialFlags){var n=JSON.parse(this.config.initialFlags);n.forEach(function(r){t.flags.get(r.key)||t.flags.put(r.key,r)})}},e.prototype.evaluate=function(t){var n,r,i=this.addContext(this.user),o=Gwe(this.flags.getAll(),t),s=ITe(i),a=this.engine.evaluate(s,o),l={};try{for(var u=Cs(Object.keys(a)),c=u.next();!c.done;c=u.next()){var d=c.value;l[d]=ok(a[d])}}catch(f){n={error:f}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(n)throw n.error}}return l},e.prototype.variantAndSource=function(t,n){var r={};this.config.source===ns.LocalStorage?r=this.localStorageVariantAndSource(t,n):this.config.source===ns.InitialVariants&&(r=this.initialVariantsVariantAndSource(t,n));var i=this.flags.get(t);return(ik(i)||!r.variant&&i)&&(r=this.localEvaluationVariantAndSource(t,i,n)),r},e.prototype.localEvaluationVariantAndSource=function(t,n,r){var i,o={},s=this.evaluate([n.key])[t],a=Wn.LocalEvaluation,l=(i=s==null?void 0:s.metadata)===null||i===void 0?void 0:i.default;if(!Wi(s)&&!l)return{variant:yr(s),source:a,hasDefaultVariant:!1};if(l&&(o={variant:yr(s),source:a,hasDefaultVariant:!0}),!Wi(r))return{variant:yr(r),source:Wn.FallbackInline,hasDefaultVariant:o.hasDefaultVariant};var u=this.config.initialVariants[t];if(!Wi(u))return{variant:yr(u),source:Wn.SecondaryInitialVariants,hasDefaultVariant:o.hasDefaultVariant};var c=yr(this.config.fallbackVariant),d={variant:c,source:Wn.FallbackConfig,hasDefaultVariant:o.hasDefaultVariant};return Xy(c)?o:d},e.prototype.localStorageVariantAndSource=function(t,n){var r,i={},o=this.variants.get(t),s=(r=o==null?void 0:o.metadata)===null||r===void 0?void 0:r.default;if(!Wi(o)&&!s)return{variant:yr(o),source:Wn.LocalStorage,hasDefaultVariant:!1};if(s&&(i={variant:yr(o),source:Wn.LocalStorage,hasDefaultVariant:!0}),!Wi(n))return{variant:yr(n),source:Wn.FallbackInline,hasDefaultVariant:i.hasDefaultVariant};var a=this.config.initialVariants[t];if(!Wi(a))return{variant:yr(a),source:Wn.SecondaryInitialVariants,hasDefaultVariant:i.hasDefaultVariant};var l=yr(this.config.fallbackVariant),u={variant:l,source:Wn.FallbackConfig,hasDefaultVariant:i.hasDefaultVariant};return Xy(l)?i:u},e.prototype.initialVariantsVariantAndSource=function(t,n){var r,i={},o=this.config.initialVariants[t];if(!Wi(o))return{variant:yr(o),source:Wn.InitialVariants,hasDefaultVariant:!1};var s=this.variants.get(t),a=(r=s==null?void 0:s.metadata)===null||r===void 0?void 0:r.default;if(!Wi(s)&&!a)return{variant:yr(s),source:Wn.LocalStorage,hasDefaultVariant:!1};if(a&&(i={variant:yr(s),source:Wn.LocalStorage,hasDefaultVariant:!0}),!Wi(n))return{variant:yr(n),source:Wn.FallbackInline,hasDefaultVariant:i.hasDefaultVariant};var l=yr(this.config.fallbackVariant),u={variant:l,source:Wn.FallbackConfig,hasDefaultVariant:i.hasDefaultVariant};return Xy(l)?i:u},e.prototype.fetchInternal=function(t,n,r,i){return dr(this,void 0,void 0,function(){var o,s;return fr(this,function(a){switch(a.label){case 0:if(!this.apiKey)throw Error("Experiment API key is empty");this.debug("[Experiment] Fetch all: retry=".concat(r)),r&&this.stopRetries(),a.label=1;case 1:return a.trys.push([1,4,,5]),[4,this.doFetch(t,n,i)];case 2:return o=a.sent(),[4,this.storeVariants(o,i)];case 3:return a.sent(),[2,o];case 4:throw s=a.sent(),r&&this.shouldRetryFetch(s)&&this.startRetries(t,i),s;case 5:return[2]}})})},e.prototype.cleanUserPropsForFetch=function(t){var n=Ft({},t);return delete n.cookie,n},e.prototype.doFetch=function(t,n,r){return dr(this,void 0,void 0,function(){var i,o,s,a,l,u,c;return fr(this,function(d){switch(d.label){case 0:return[4,this.addContextOrWait(t)];case 1:return t=d.sent(),t=this.cleanUserPropsForFetch(t),this.debug("[Experiment] Fetch variants for user: ",t),[4,this.evaluationApi.getVariants(t,Ft({timeoutMillis:n},r))];case 2:i=d.sent(),o={};try{for(s=Cs(Object.keys(i)),a=s.next();!a.done;a=s.next())l=a.value,o[l]=ok(i[l])}catch(f){u={error:f}}finally{try{a&&!a.done&&(c=s.return)&&c.call(s)}finally{if(u)throw u.error}}return this.debug("[Experiment] Received variants: ",o),[2,o]}})})},e.prototype.doFlags=function(){return dr(this,void 0,void 0,function(){var t,n,r;return fr(this,function(i){switch(i.label){case 0:return i.trys.push([0,4,,5]),t=void 0,this.isWebExperiment?[4,this.addContextOrWait(this.getUser())]:[3,2];case 1:t=i.sent(),i.label=2;case 2:return[4,this.flagApi.getFlags({libraryName:"experiment-js-client",libraryVersion:rk,timeoutMillis:this.config.fetchTimeoutMillis,deliveryMethod:this.isWebExperiment?"web":void 0,user:t!=null&&t.user_id||t!=null&&t.device_id?{user_id:t==null?void 0:t.user_id,device_id:t==null?void 0:t.device_id}:void 0})];case 3:return n=i.sent(),this.flags.clear(),this.flags.putAll(n),[3,5];case 4:if(r=i.sent(),r instanceof tS){if(this.config.debug&&console.debug(r),this.config.throwOnError)throw r}else throw r;return[3,5];case 5:try{this.flags.store()}catch{}return this.mergeInitialFlagsWithStorage(),[2]}})})},e.prototype.storeVariants=function(t,n){return dr(this,void 0,void 0,function(){var r,i,o,s,s;return fr(this,function(a){r=n&&n.flagKeys?n.flagKeys:[],r.length===0&&this.variants.clear(),i=function(l){r=r.filter(function(u){return u!==l}),o.variants.put(l,t[l])},o=this;for(s in t)i(s);for(s in r)this.variants.remove(s);try{this.variants.store()}catch{}return this.debug("[Experiment] Stored variants: ",t),[2]})})},e.prototype.startRetries=function(t,n){return dr(this,void 0,void 0,function(){var r=this;return fr(this,function(i){return this.debug("[Experiment] Retry fetch"),this.retriesBackoff=new ATe(MTe,RTe,PTe,OTe),this.retriesBackoff.start(function(){return dr(r,void 0,void 0,function(){return fr(this,function(o){switch(o.label){case 0:return[4,this.fetchInternal(t,kTe,!1,n)];case 1:return o.sent(),[2]}})})}),[2]})})},e.prototype.stopRetries=function(){this.retriesBackoff&&this.retriesBackoff.cancel()},e.prototype.addContext=function(t){var n,r=(n=this.userProvider)===null||n===void 0?void 0:n.getUser(),i=this.integrationManager.getUser(),o=Ft(Ft(Ft({},r==null?void 0:r.user_properties),i.user_properties),t==null?void 0:t.user_properties);return Ft(Ft(Ft(Ft({library:"experiment-js-client/".concat(rk)},r),i),t),{user_properties:o})},e.prototype.addContextOrWait=function(t){return dr(this,void 0,void 0,function(){return fr(this,function(n){switch(n.label){case 0:return[4,this.integrationManager.ready()];case 1:return n.sent(),[2,this.addContext(t)]}})})},e.prototype.sourceVariants=function(){if(this.config.source==ns.LocalStorage)return this.variants.getAll();if(this.config.source==ns.InitialVariants)return this.config.initialVariants},e.prototype.secondaryVariants=function(){if(this.config.source==ns.LocalStorage)return this.config.initialVariants;if(this.config.source==ns.InitialVariants)return this.variants.getAll()}
vendor: 5,666 bytes, line 694
694,e.prototype.exposureInternal=function(t,n){var r,i,o,s,a,l,u,c,d,f=(o=(i=(r=n.variant)===null||r===void 0?void 0:r.metadata)===null||i===void 0?void 0:i.trackExposure)!==null&&o!==void 0?o:!0;if(f){this.legacyExposureInternal(t,n.variant,n.source);var p={flag_key:t},h=nk(n.source);if(!(h&&!n.hasDefaultVariant)){!((s=n.variant)===null||s===void 0)&&s.expKey&&(p.experiment_key=(a=n.variant)===null||a===void 0?void 0:a.expKey);var m=(l=n.variant)===null||l===void 0?void 0:l.metadata;if(!h&&!(m!=null&&m.default)&&(!((u=n.variant)===null||u===void 0)&&u.key?p.variant=n.variant.key:!((c=n.variant)===null||c===void 0)&&c.value&&(p.variant=n.variant.value)),m&&(p.metadata=m),this.isWebExperiment){var v=Ql();if(v!=null&&v.location)try{var g=v.location.href;p.metadata.url=g.split("?")[0]||""}catch{}}(d=this.exposureTrackingProvider)===null||d===void 0||d.track(p),this.integrationManager.track(p)}}},e.prototype.legacyExposureInternal=function(t,n,r){var i,o,s,a,l;if(this.analyticsProvider){var u=this.addContext(this.getUser()),c=wTe(u,t,n,r);nk(r)||!(n!=null&&n.value)?(o=(i=this.analyticsProvider)===null||i===void 0?void 0:i.unsetUserProperty)===null||o===void 0||o.call(i,c):n!=null&&n.value&&((a=(s=this.analyticsProvider)===null||s===void 0?void 0:s.setUserProperty)===null||a===void 0||a.call(s,c),(l=this.analyticsProvider)===null||l===void 0||l.track(c))}},e.prototype.debug=function(t){for(var n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];this.config.debug&&console.debug.apply(console,rS([t],tl(n),!1))},e.prototype.shouldRetryFetch=function(t){return t instanceof KH?t.statusCode<400||t.statusCode>=500||t.statusCode===429:!0},e.prototype.addPlugin=function(t){t.type==="integration"&&this.integrationManager.setIntegration(t)},e}(),DTe=function(){function e(t,n){var r,i,o;this.globalScope=Ql(),this.userAgent=typeof((r=this.globalScope)===null||r===void 0?void 0:r.navigator)<"u"?(i=this.globalScope)===null||i===void 0?void 0:i.navigator.userAgent:void 0,this.ua=new lTe.UAParser(this.userAgent).getResult(),this.localStorage=new Rw,this.sessionStorage=new JH,this.userProvider=t,this.apiKey=n,this.storageKey="EXP_".concat((o=this.apiKey)===null||o===void 0?void 0:o.slice(0,10),"_DEFAULT_USER_PROVIDER")}return e.prototype.getUser=function(){var t,n,r,i,o,s=((t=this.userProvider)===null||t===void 0?void 0:t.getUser())||{};return Ft({language:this.getLanguage(),platform:"Web",os:this.getOs(this.ua),device_model:this.getDeviceModel(this.ua),device_category:(r=(n=this.ua.device)===null||n===void 0?void 0:n.type)!==null&&r!==void 0?r:"desktop",referring_url:(o=(i=this.globalScope)===null||i===void 0?void 0:i.document)===null||o===void 0?void 0:o.referrer.replace(/\/$/,""),cookie:this.getCookie(),browser:this.getBrowser(this.ua),landing_url:this.getLandingUrl(),first_seen:this.getFirstSeen(),url_param:this.getUrlParam(),user_agent:this.userAgent},s)},e.prototype.getLanguage=function(){return typeof navigator<"u"&&(navigator.languages&&navigator.languages[0]||navigator.language)||""},e.prototype.getOs=function(t){var n,r;return[(n=t.browser)===null||n===void 0?void 0:n.name,(r=t.browser)===null||r===void 0?void 0:r.major].filter(function(i){return i!=null}).join(" ")},e.prototype.getDeviceModel=function(t){var n;return(n=t.os)===null||n===void 0?void 0:n.name},e.prototype.getBrowser=function(t){var n,r=(n=t.browser)===null||n===void 0?void 0:n.name;return r!=null&&r.includes("Chrom")&&(r="Chrome"),r!=null&&r.includes("Firefox")&&(r="Firefox"),r!=null&&r.includes("Safari")&&(r="Safari"),r!=null&&r.includes("Edge")&&(r="Edge"),r!=null&&r.includes("Opera")&&(r="Opera"),r},e.prototype.getCookie=function(){var t,n,r,i,o;if(!((n=(t=this.globalScope)===null||t===void 0?void 0:t.document)===null||n===void 0)&&n.cookie)return Object.fromEntries((o=(i=(r=this.globalScope)===null||r===void 0?void 0:r.document)===null||i===void 0?void 0:i.cookie)===null||o===void 0?void 0:o.split("; ").map(function(s){return s.split("=")}))},e.prototype.getLandingUrl=function(){var t,n;try{var r=JSON.parse(this.sessionStorage.get(this.storageKey)||"{}");return r.landing_url||(r.landing_url=(n=(t=this.globalScope)===null||t===void 0?void 0:t.location)===null||n===void 0?void 0:n.href.replace(/\/$/,""),this.sessionStorage.put(this.storageKey,JSON.stringify(r))),r.landing_url}catch{return}},e.prototype.getFirstSeen=function(){try{var t=JSON.parse(this.localStorage.get(this.storageKey)||"{}");return t.first_seen||(t.first_seen=(Date.now()/1e3).toString(),this.localStorage.put(this.storageKey,JSON.stringify(t))),t.first_seen}catch{return}},e.prototype.getUrlParam=function(){var t,n,r;if(this.globalScope){var i={};try{var o=new URL(this.globalScope.location.href);try{for(var s=Cs(o.searchParams),a=s.next();!a.done;a=s.next()){var l=tl(a.value,2),u=l[0],c=l[1];i[u]=rS(rS([],tl((r=i[u])!==null&&r!==void 0?r:[]),!1),tl(c.split(",")),!1)}}catch(d){t={error:d}}finally{try{a&&!a.done&&(n=s.return)&&n.call(s)}finally{if(t)throw t.error}}}catch{return}return Object.entries(i).reduce(function(d,f){var p=tl(f,2),h=p[0],m=p[1];return d[h]=m.length==1?m[0]:m,d},{})}},e}();Yn.experimentInstances={};var ak=Yn.experimentInstances,VTe=function(e,t){return eD(e,t)},FTe=function(e,t){var n=function(){return new dTe(e,aw.getInstance(QH(t)),1e4)};return eD(e,t,n)},QH=function(e){return(e==null?void 0:e.instanceName)||Du.instanceName},BTe=function(e,t){var n=QH(t),r=t==null?void 0:t.internalInstanceNameSuffix;return r?"".concat(n,".").concat(e,".").concat(r):"".concat(n,".").concat(e)},UTe=function(e,t){return new HTe(e,Ft(Ft({},t),{userProvider:new DTe(t==null?void 0:t.userProvider,e)}))},eD=function(e,t,n){var r=BTe(e,t),i=ak[r];
694return i||(i=UTe(e,t),n&&i.addPlugin(n()),ak[r]=i,i)},EBe={initialize:VTe,initializeWithAmplitudeAnalytics:FTe};const Ye=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},jTe={name:"md-backdrop",methods:{close(){this.$emit("close")}}};function WTe(e,t,n,r,i,o){return I(),R("div",{class:"md-backdrop",onClick:t[0]||(t[0]=(...s)=>o.close&&o.close(...s)),onKeyup:t[1]||(t[1]=Ar((...s)=>o.close&&o.close(...s),["esc"]))},null,32)}const Pw=Ye(jTe,[["render",WTe]]);function Ow(e){const t=kt("$material"),n=o=>t.getTheme(e.value).getAsset(o),r=fe(()=>t.getThemeClass(e.value)),i=fe(()=>t.getThemeClass(e.value||t.getDefaultTheme()));return{material:t,getThemeAsset:n,themeClass:r,themeClassOrDefault:i}}const GTe=["onKeyup"],h0=Qe({__name:"mdDialog",props:{mdFullscreen:{type:Boolean,default:!1},mdOpenFrom:{},mdCloseTo:{},dialogAlias:{},mdBackdrop:{type:Boolean,default:!0},mdShutdownTransition:{type:Boolean,default:!1},mdEscToClose:{type:Boolean,default:!0},mdClickOutsideToClose:{type:Boolean,default:!0},mdTheme:{},openOnMount:{type:Boolean,default:!1}},emits:["open","afterClose"],setup(e,{expose:t,emit:n}){const r=e,i=kt("eventBus"),o=kt(d1);t({open:_,close:S});const{themeClassOrDefault:s}=Ow(Bc(r,"mdTheme")),a=ie(!1),l=ie(!1),u=ie(!1),c=ie(""),d=ie(null),f=ie(null),p=ie(null),h=fe(()=>({"md-active":l.value,"md-transition-off":u.value})),m=fe(()=>({"md-fullscreen":r.mdFullscreen,"md-transition-off":u.value,"md-reference":r.mdOpenFrom||r.mdCloseTo})),v=fe(()=>({transform:c.value}));function g(C){Lt(()=>{r.dialogAlias&&r.dialogAlias===C&&_()})}function y(C){var w;const E=Uo&&document.querySelector(C);if(E){const T=E.getBoundingClientRect(),A=(w=p.value)==null?void 0:w.getBoundingClientRect();if(!A)return;
694const L=T.width/A.width,x=T.height/A.height;let k={top:-(A.top-T.top),left:-(A.left-T.left+T.width)};T.top>A.top+A.height&&(k.top=T.top-A.top),T.left>A.left+A.width&&(k.left=T.left-A.left-T.width),c.value=`translate3D(${k.left}px, ${k.top}px, 0) scale(${L}, ${x})`}}function _(){a.value=!0,u.value=!0,Lt(()=>{y(r.mdOpenFrom),Lt(()=>{f.value&&f.value.focus(),u.value=r.mdShutdownTransition,l.value=!0}),n("open")})}function b(){r.mdEscToClose&&S()}function S(){var w;const C=new Event("close",{cancelable:!0});((w=d.value)==null?void 0:w.dispatchEvent(C))&&Lt(()=>{r.mdShutdownTransition?(u.value=!0,c.value="",y(r.mdCloseTo),window.setTimeout(()=>{u.value=!1,l.value=!1})):l.value=!1,n("afterClose")})}return QS(()=>{r.openOnMount&&_()}),$n(()=>{r.openOnMount&&_(),i==null||i.on("md-dialog--sync",g),r.dialogAlias&&(o==null||o.registerMdDialog(r.dialogAlias))}),Rn(()=>{r.dialogAlias&&(o==null||o.unRegisterDialog(r.dialogAlias)),i==null||i.off("md-dialog--sync",g)}),(C,E)=>{const w=Pw;return I(),R("div",{ref_key:"root",ref:d},[(I(),Se(ys,{to:"#teleported"},[a.value?(I(),R("div",Un({key:0,class:["md-dialog-container",[Ee(s),h.value]],ref_key:"dialogElement",ref:f,onKeyup:Ar(tt(b,["stop"]),["esc"]),tabindex:"0"},C.$attrs),[O("div",{class:Ie(["md-dialog",m.value]),ref_key:"dialogInnerElement",ref:p,style:vt(v.value)},[ge(C.$slots,"default")],6),C.mdBackdrop?(I(),Se(w,{key:0,class:Ie(["md-dialog-backdrop",h.value]),ref:"backdrop",onClose:E[0]||(E[0]=T=>C.mdClickOutsideToClose&&S())},null,8,["class"])):K("",!0)],16,GTe)):K("",!0)]))],512)}}});const zTe={},qTe={class:"md-dialog-actions"};function KTe(e,t){return I(),R("div",qTe,[ge(e.$slots,"default")])}const m0=Ye(zTe,[["render",KTe]]),XTe={},ZTe={class:"md-dialog-content"};function YTe(e,t){return I(),R("div",ZTe,[ge(e.$slots,"default")])}const v0=Ye(XTe,[["render",YTe]]),JTe={},QTe={class:"md-dialog-title md-title"};function eAe(e,t){return I(),R("div",QTe,[ge(e.$slots,"default")])}const g0=Ye(JTe,[["render",eAe]]);const $w={name:"md-whiteframe",props:{mdElevation:{type:[String,Number],default:1},mdComponent:Object,mdTag:{type:String,default:"div"}},computed:{classes(){let e=parseInt(this.mdElevation,10),t="md-whiteframe md-whiteframe-";return!isNaN(e)&&typeof e=="number"?(t+=e,t+="dp"):this.mdElevation.indexOf("dp")>-1&&(t+=this.mdElevation),t}},render(){return io(this.mdComponent||this.mdTag||"div",{class:this.classes},this.$slots)}},Hn={props:{mdTheme:String},inject:["$material"],computed:{themeClass(){return this.$material.getThemeClass(this.mdTheme)},themeClassOrDefault(){return this.$material.getThemeClass(this.mdTheme||this.$material.getDefaultTheme())}},methods:{getThemeAsset(e){return this.$material.getTheme(this.mdTheme).getAsset(e)}}};const tAe={name:"md-progress",props:{mdIndeterminate:Boolean,mdProgress:{type:Number,default:0}},mixins:[Hn],computed:{classes(){return{"md-indeterminate":this.mdIndeterminate}},styles(){if(!this.mdIndeterminate)return{width:this.mdProgress+"%"}}}};function nAe(e,t,n,r,i,o){return I(),Se(Wc,{name:"md-progress",appear:""},{default:pe(()=>[O("div",{class:Ie(["md-progress",[e.themeClass,o.classes]])},[O("div",{class:"md-progress-track",style:vt(o.styles)},null,4)],2)]),_:1})}const rAe=Ye(tAe,[["render",nAe]]);const iAe={name:"md-toolbar",mixins:[Hn]};function oAe(e,t,n,r,i,o){return I(),R("div",{class:Ie(["md-toolbar",[e.themeClass]])},[ge(e.$slots,"default")],2)}const Nw=Ye(iAe,[["render",oAe]]);const sAe={name:"md-button",props:{href:String,target:String,rel:String,id:{type:String,default:void 0},name:String,type:{type:String,default:"button"},disabled:{type:Boolean,default:void 0},ariaLabel:{type:String}},mixins:[Hn],computed:{newRel(){return this.target==="_blank"?this.rel||"noopener":this.rel}}},aAe=["href","target","disabled","rel"],lAe=["id","name","aria-label","type","disabled"];function uAe(e,t,n,r,i,o){const s=jc("md-ripple");return n.href?kn((I(),R("a",{key:0,class:Ie(["md-button",[e.themeClass]]),href:n.href,target:n.target,disabled:n.disabled||null,rel:o.newRel},[ge(e.$slots,"default")],10,aAe)),[[s,n.disabled]]):kn((I(),R("button",{key:1,id:n.id,name:n.name,class:Ie(["md-button",[e.themeClass]]),"aria-label":n.ariaLabel,type:n.type,disabled:n.disabled||null},[ge(e.$slots,"default")],10,lAe)),[[s,n.disabled]])}
694const Mr=Ye(sAe,[["render",uAe]]);const cAe={name:"md-icon",props:{mdSvg:String,size:Number,fillRule:String,viewbox:String,mdIconset:{type:String,default:"material-icons"}},mixins:[Hn]},dAe=["width","height","viewBox"],fAe=["fill-rule","d"],pAe=["aria-hidden"];function hAe(e,t,n,r,i,o){return n.mdSvg?(I(),R("svg",{key:0,class:"md-icon",width:n.size||24,height:n.size||24,viewBox:n.viewbox||"0 0 24 24"},[O("path",{"fill-rule":n.fillRule,d:n.mdSvg},null,8,fAe)],8,dAe)):(I(),R("i",{key:1,class:Ie(["md-icon",[e.themeClass,n.mdIconset]]),"aria-hidden":!!n.mdIconset},[ge(e.$slots,"default",{},void 0,!0)],10,pAe))}const Zr=Ye(cAe,[["render",hAe],["__scopeId","data-v-3c9dd3dd"]]),mAe={key:0,class:"dialog-overlay"},vAe={class:"modal-title-toolbar"},gAe={class:"action-cancel-modal-title"},yAe={class:"content-actions"},bAe={key:0,class:"md-info-actions"},CBe=Qe({__name:"tdlFullscreendialog",props:{id:{default:"tdl-fullscreen-dialog"},dialogTitle:{},dialogOkText:{},dialogAlias:{},infoText:{},additionalDialogFunction:{type:Boolean,default:!1},additionalDialogText:{default:""},dialogCancelText:{},dialogSubmitButton:{type:Boolean,default:!0},dialogContentBackground:{},dialogShutdownTransition:{type:Boolean,default:!0},dialogProgressBar:{type:Boolean,default:!1},dialogProcessing:{type:Boolean,default:!1},plainView:{type:Boolean,default:!1},cancelToolbarTitle:{type:Boolean,default:!1},cancelToolbarText:{default:""},ariaLabelClose:{},clickOutsideToClose:{type:Boolean,default:!1},escToClose:{type:Boolean,default:!1},openOnMount:{type:Boolean,default:!1}},emits:["ok","on-open","end-reached","on-close","cancel","cancelToolbar","additionalDialogAction"],setup(e,{expose:t,emit:n}){const r=e,i=kt("eventBus"),o=kt(d1);t({openDialog:f,closeDialog:p});const s=ie(null),a=ie(null),l=ie(!1),u=ie(0),c=fe(()=>!!r.dialogCancelText),d=fe(()=>r.dialogProcessing||r.dialogProgressBar);function f(){var w;(w=s.value)==null||w.open()}function p(){var w;(w=s.value)==null||w.close()}function h(){n("cancel")}function m(){n("cancelToolbar")}function v(){n("additionalDialogAction")}function g(){n("ok")}function y(){l.value=!0,n("on-open"),_()}function _(){var w;if(Uo){const T=(w=a.value)==null?void 0:w.$el;if(!T)return;u.value=T.scrollHeight-T.offsetHeight,T.addEventListener("scroll",b)}}function b(){var T;const w=(T=a.value)==null?void 0:T.$el;w&&u.value<=w.scrollTop&&(n("end-reached"),C())}function S(){l.value=!1,n("on-close"),C()}function C(){var w;(w=a.value)==null||w.$el.removeEventListener("scroll",b)}function E(w){Lt(()=>{r.dialogAlias&&(r.dialogAlias===w?l.value===!1&&f():l.value===!0&&p())})}return $n(()=>{i==null||i.on("tdl-fullscreendialog--sync",E),r.dialogAlias&&(o==null||o.registerFullScreenDialog(r.dialogAlias))}),Rn(()=>{r.dialogAlias&&(o==null||o.unRegisterDialog(r.dialogAlias)),i==null||i.off("tdl-fullscreendialog--sync",E)}),(w,T)=>{const A=Zr,L=Mr,x=Nw,k=rAe,M=$w,z=g0,P=v0,H=m0,q=h0;return I(),Se(q,{ref_key:"dialog",ref:s,class:Ie(["tdl-full-screen-dialog",{"plain-view":w.plainView}]),"md-shutdown-transition":w.dialogShutdownTransition,"md-click-outside-to-close":!w.dialogProcessing&&w.clickOutsideToClose,"md-esc-to-close":!w.dialogProcessing&&w.escToClose,"open-on-mount":w.openOnMount,onOpen:y,onAfterClose:S},{default:pe(()=>[w.dialogProcessing?(I(),R("div",mAe)):K("",!0),ae(M,{class:"md-large","md-elevation":"1"},{default:pe(()=>[ae(x,{class:"top-actions-toolbar"},{default:pe(()=>[ae(L,{onClick:T[0]||(T[0]=de=>h()),"aria-label":w.ariaLabelClose,id:`${w.id}-cancel`,class:"md-icon-button"},{default:pe(()=>[ae(A,{mdSvg:Ee(El)},null,8,["mdSvg"])]),_:1},8,["aria-label","id"]),kn(O("h2",{class:"md-title modal-title-text"},he(w.dialogTitle),513),[[Ci,!w.additionalDialogFunction]])]),_:1}),d.value?(I(),Se(k,{key:0,"md-indeterminate":""})):K("",!0)]),_:1}),ae(z,{class:"modal-title"},{default:pe(()=>[O("div",{class:Ie(["modal-title-group",{"plain-view":w.plainView}])},[O("span",vAe,he(w.dialogTitle),1),O("div",gAe,[w.cancelToolbarTitle?(I(),Se(L,{key:0,class:"md-primary",onClick:T[1]||(T[1]=de=>m()),"aria-label":w.cancelToolbarText},{default:pe(()=>[_t(he(w.cancelToolbarText),1)]),_:1},8,["aria-label"])):K("",!0)]),ae(L,{onClick:T[2]||(T[2]=de=>h()),"aria-label":w.ariaLabelClose,class:"md-icon-button"},{default:pe(()=>[ae(A,{mdSvg:Ee(El)},null,8,["mdSvg"])]),_:1},8,["aria-label"])],2),ge(w.$slots,"title-extra"),d.value?(I(),Se(k,{key:0,"md-indeterminate":""})):K("",!0)]),_:3}
694),ae(P,{style:vt({background:w.dialogContentBackground}),ref_key:"dialogContent",ref:a},{default:pe(()=>[ge(w.$slots,"default",{opened:l.value}),O("div",yAe,[ge(w.$slots,"toolbar-actions",{},()=>[kn(ae(L,{onClick:T[3]||(T[3]=de=>v()),id:`${w.id}-ok`,class:"md-primary"},{default:pe(()=>[_t(he(w.additionalDialogText),1)]),_:1},8,["id"]),[[Ci,w.additionalDialogFunction]]),kn(ae(L,{onClick:T[4]||(T[4]=de=>g()),id:`${w.id}-ok`,class:"md-primary md-raised top-action"},{default:pe(()=>[_t(he(w.dialogOkText),1)]),_:1},8,["id"]),[[Ci,w.dialogSubmitButton]])])])]),_:3},8,["style"]),w.dialogCancelText||w.$slots["dialog-actions"]||w.dialogOkText?(I(),Se(H,{key:1},{default:pe(()=>[w.infoText?(I(),R("span",bAe,he(w.infoText),1)):K("",!0),c.value?(I(),Se(L,{key:1,class:"md-primary",onClick:T[5]||(T[5]=de=>h()),id:`${w.id}-cancel`,"aria-label":w.dialogCancelText},{default:pe(()=>[_t(he(w.dialogCancelText),1)]),_:1},8,["id","aria-label"])):K("",!0),ge(w.$slots,"dialog-actions",{},()=>[kn(ae(L,{class:"md-primary md-raised",onClick:T[6]||(T[6]=de=>g()),id:`${w.id}-ok`,"aria-label":w.dialogOkText},{default:pe(()=>[_t(he(w.dialogOkText),1)]),_:1},8,["id","aria-label"]),[[Ci,w.dialogSubmitButton]])])]),_:3})):K("",!0)]),_:3},8,["md-shutdown-transition","md-click-outside-to-close","md-esc-to-close","open-on-mount","class"])}}});/** 695 * vue-class-component v8.0.0-rc.1 696 * (c) 2015-present Evan You 697 * @license MIT 698 */function iS(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function lk(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _Ae(e,t,n){return t&&lk(e.prototype,t),n&&lk(e,n),e}function SAe(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uk(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Zy(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uk(Object(n),!0).forEach(function(r){SAe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uk(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tD(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&bg(e,t)}function yg(e){return yg=Object.setPrototypeOf?Object.getPrototypeOf:function(n){return n.__proto__||Object.getPrototypeOf(n)},yg(e)}function bg(e,t){return bg=Object.setPrototypeOf||function(r,i){return r.__proto__=i,r},bg(e,t)}function nD(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function qm(e,t,n){return nD()?qm=Reflect.construct:qm=function(i,o,s){var a=[null];a.push.apply(a,o);var l=Function.bind.apply(i,a),u=new l;return s&&bg(u,s.prototype),u},qm.apply(null,arguments)}function EAe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function CAe(e,t){return t&&(typeof t=="object"||typeof t=="function")?t:EAe(e)}function rD(e){var t=nD();return function(){var r=yg(e),i;if(t){var o=yg(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return CAe(this,i)}}function wAe(e){return TAe(e)||AAe(e)||IAe(e)||xAe()}function TAe(e){if(Array.isArray(e))return oS(e)}function AAe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function IAe(e,t){if(e){if(typeof e=="string")return oS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oS(e,t)}}function oS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function xAe(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 699In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function em(e,t,n){Object.defineProperty(e,t,{get:n,enumerable:!1,
699configurable:!0})}function LAe(e,t,n){Object.defineProperty(e,t,{get:function(){return n[t].value},set:function(i){n[t].value=i},enumerable:!0,configurable:!0})}function kAe(e){var t=Object.getPrototypeOf(e.prototype);if(t)return t.constructor}function tm(e,t){return e.hasOwnProperty(t)?e[t]:void 0}var iD=function(){function e(t,n){var r=this;iS(this,e),em(this,"$props",function(){return t}),em(this,"$attrs",function(){return n.attrs}),em(this,"$slots",function(){return n.slots}),em(this,"$emit",function(){return n.emit}),Object.keys(t).forEach(function(i){Object.defineProperty(r,i,{enumerable:!1,configurable:!0,writable:!0,value:t[i]})})}return _Ae(e,null,[{key:"registerHooks",value:function(n){var r;(r=this.__h).push.apply(r,wAe(n))}},{key:"with",value:function(n){var r=new n,i={};Object.keys(r).forEach(function(s){var a=r[s];i[s]=a??null});var o=function(s){tD(l,s);var a=rD(l);function l(){return iS(this,l),a.apply(this,arguments)}return l}(this);return o.__b={props:i},o}},{key:"__vccOpts",get:function(){if(this===xa)return{};var n=this,r=tm(n,"__c");if(r)return r;var i=Zy({},tm(n,"__o"));n.__c=i;var o=kAe(n);o&&(i.extends=o.__vccOpts);var s=tm(n,"__b");s&&(i.mixins=i.mixins||[],i.mixins.unshift(s)),i.methods=Zy({},i.methods),i.computed=Zy({},i.computed);var a=n.prototype;Object.getOwnPropertyNames(a).forEach(function(c){if(c!=="constructor"){if(n.__h.indexOf(c)>-1){i[c]=a[c];return}var d=Object.getOwnPropertyDescriptor(a,c);if(typeof d.value=="function"){i.methods[c]=d.value;return}if(d.get||d.set){i.computed[c]={get:d.get,set:d.set};return}}}),i.setup=function(c,d){var f,p=new n(c,d),h=Object.keys(p),m={},v=null;return h.forEach(function(g){p[g]===void 0||p[g]&&p[g].__s||(m[g]=ie(p[g]),LAe(p,g,m))}),h.forEach(function(g){if(p[g]&&p[g].__s){var y=p[g].__s();y instanceof Promise?(v||(v=Promise.resolve(m)),v=v.then(function(){return y.then(function(_){return m[g]=kf(_),m})})):m[g]=kf(y)}}),(f=v)!==null&&f!==void 0?f:m};var l=tm(n,"__d");l&&l.forEach(function(c){return c(i)});var u=["render","ssrRender","__file","__cssModules","__scopeId","__hmrId"];return u.forEach(function(c){n[c]&&(i[c]=n[c])}),i}}]),e}();iD.__h=["data","beforeCreate","created","beforeMount","mounted","beforeUnmount","unmounted","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];var xa=iD;function La(e){return function(t){return t.__o=e,t}}function ld(e){return function(t,n,r){var i=typeof t=="function"?t:t.constructor;i.__d||(i.__d=[]),typeof r!="number"&&(r=void 0),i.__d.push(function(o){return e(o,n,r)})}}function oD(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r;return r=function(i){tD(s,i);var o=rD(s);function s(){for(var a,l=arguments.length,u=new Array(l),c=0;c<l;c++)u[c]=arguments[c];return iS(this,s),a=o.call.apply(o,[this].concat(u)),t.forEach(function(d){var f=qm(d,u);Object.keys(f).forEach(function(p){a[p]=f[p]})}),a}return s}(xa),r.__b={mixins:t.map(function(i){return i.__vccOpts})},r}function Hw(e=Object.create(null)){return ld((t,n)=>{const r=t.setup;t.setup=(i,o)=>{const s=r==null?void 0:r(i,o),a=kt(e.from||n,e.default);return Object.assign(Object.assign({},s),{[n]:a})}})}function je(e){return ld((t,n)=>{t.props||(t.props=Object.create(null)),t.props[n]=e})}function Dw(e){return ld((t,n)=>{const r=t.provide;t.provide=function(){const i=typeof r=="function"?r.call(this):r;return Object.assign(Object.assign({},i),{[(e==null?void 0:e.to)||n]:e!=null&&e.reactive?fe(()=>this[n]):this[n]})}})}function sD(e){return ld((t,n)=>{t.computed||(t.computed=Object.create(null)),t.computed[n]={cache:!1,get(){return this.$refs[e||n]}}})}function ka(e,t){return ld((n,r)=>{n.watch||(n.watch=Object.create(null));const i=n.watch;typeof i[e]=="object"&&!Array.isArray(i[e])?i[e]=[i[e]]:typeof i[e]>"u"&&(i[e]=[]),i[e].push(Object.assign({handler:r},t))})}var wBe=aD("computed",hZ),TBe=aD("methods",mZ);function aD(e,t){function n(i,o){return ld(function(s,a){s[e]||(s[e]={});var l=(u={},u[a]=i,u);s[e][a]=o!==void 0?t(o,l)[a]:t(l)[a];var u})}function r(i,o){if(typeof o=="string"){var s=o,a=i;return n(s,void 0)(a,s)}var l=MAe(o),u=i;return n(u,l)}return r}function MAe(e){var t=e&&e.namespace;if(typeof t=="string")return t[t.length-1]!=="/"?t+"/":t}let Sa=class extends xa{constructor(){super(...arguments);ve(this,"autoStart");ve(this,"backdrop");ve(this,"staticPosition");ve(this,"controlled");ve(this,"childrenList",[]);ve(this,"activeChild");ve(this,"currentStep",0);ve(this,"isActive",!1)}onChildrenAdded(){if(!this.autoStart)return;const n=this.childrenList.filter(r=>r).length;this.totalSteps===n&&this.start()}get totalSteps(){return this.$slots.default().filter(r=>!(r.children==="v-if"||!r.children)).length}registerChild(n){typeof n.order=="number"?this.childrenList[n.order]=n:this.childrenList.push(n),this.childrenList=[...this.childrenList]}openChild(n){this.activeChild=this.childrenList[n],this.activeChild.open(),this.currentStep=n}goToStep(n){this.activeChild&&this.activeChild.close(),this.openChild(n),this.$emit("step-change",this.currentStep)}next(){this.currentStep+1>=this.totalSteps?this.finish():this.goToStep(this.currentStep+1)}finish(){this.activeChild&&this.activeChild.close(),this.$emit("finish"),this.isActive=!1,this.backdrop&&h_(!1)}start(n=0){this.isActive=!0,this.goToStep(n),this.backdrop&&h_(!0)}beforeUnmount(){this.isActive&&this.finish()}};Ve([je({default:!0})],Sa.prototype,"autoStart",void 0);Ve([je({default:!0})],Sa.prototype,"backdrop",void 0);Ve([je({default:!1})],Sa.prototype,"staticPosition",void 0);Ve([je({default:!1})],Sa.prototype,"controlled",void 0);
699Ve([ka("childrenList")],Sa.prototype,"onChildrenAdded",null);Sa=Ve([La({name:"vdlTooltipWizard"})],Sa);const RAe=Sa;function PAe(e,t,n,r,i,o){return I(),R("div",{class:Ie(["vdlTooltipWizard",{active:e.isActive&&e.backdrop,static:e.staticPosition}])},[ge(e.$slots,"default",{},void 0,!0)],2)}const IBe=Ye(RAe,[["render",PAe],["__scopeId","data-v-5414283e"]]);var sS;(function(e){e.TopLeft="top-left",e.TopCenter="top-center",e.TopRight="top-right",e.CenterLeft="center-left",e.CenterRight="center-right",e.BottomLeft="bottom-left",e.BottomCenter="bottom-center",e.BottomRight="bottom-right"})(sS||(sS={}));var nl;(function(e){e.Bottom="bottom",e.Top="top"})(nl||(nl={}));const OAe="rgba(0, 0, 0, .3)",$Ae="eventBus",gf=48,ck={position:"absolute",width:gf+"px",height:gf+"px",borderRadius:"50%",display:"flex",alignItems:"center",justifyContent:"center",backgroundColor:"#EEFFFF",zIndex:1e3,cursor:"default"};let On=class extends xa{constructor(){super(...arguments);ve(this,"order");ve(this,"heading");ve(this,"title");ve(this,"icon");ve(this,"extraLargePosition");ve(this,"largePosition");ve(this,"middlePosition");ve(this,"mobilePosition");ve(this,"showFocuser");ve(this,"target");ve(this,"forceDisableWizard");ve(this,"nextText");ve(this,"offset");ve(this,"beforeShow");ve(this,"eventBus");ve(this,"focuser");ve(this,"styles",{});ve(this,"indicatorStyles",{});ve(this,"spacing",{x:60,y:15})}onOffsetChange(){this.setPosition()}onPositionChange(){this.setPosition()}onMobilePositionChange(){this.setPosition()}get showWizardButton(){return this.isInWizard&&!this.parent.controlled&&!this.forceDisableWizard}get parent(){return this.$parent}get isInWizard(){return this.parent.$options.name==="vdlTooltipWizard"}get isMobile(){return this.isUnderSize(500)}get isMiddle(){return this.isUnderSize(960)}get isLarge(){return this.isUnderSize(1280)}get automaticWizardHeading(){return this.heading||`Step ${this.parent.currentStep+1} of ${this.parent.totalSteps}`}get nextButtonText(){return this.nextText||"Next"}get position(){const n=this.largePosition||this.extraLargePosition,r=this.middlePosition||n,i=this.extraLargePosition||n||r;return this.isMiddle?r:this.isLarge?n:i}isUnderSize(n){const r=n;return window.innerWidth<=r}isOverSize(n){const r=n;return window.innerWidth>=r}handleWizardNext(){this.parent.next()}calcBoxShadow(){const[n,r]=this.position.split("-");return n==="bottom"&&!this.isMobile||this.isMobile&&this.mobilePosition==="bottom"?{y:-2,x:2}:n==="top"&&!this.isMobile||this.isMobile&&this.mobilePosition==="top"?{x:-2,y:2}:r==="right"?{x:-2,y:-2}:{x:2,y:2}}getElementCenter(n){const{height:r,width:i,x:o,y:s}=n.getBoundingClientRect();return{x:o+i/2,y:s+r/2}}calcPosition(){const n=this.$refs.tooltipItem,r=document.querySelector(this.target),{height:i,width:o}=r.getBoundingClientRect(),{height:s,width:a}=n.getBoundingClientRect(),l=this.getElementCenter(r),[u,c]=this.position.split("-"),d={x:0,y:0},f=gf/2-5;return u==="top"&&!this.isMobile||this.isMobile&&this.mobilePosition===nl.Top?(d.y=l.y-i/2-s-this.spacing.y-this.offset,this.focuser&&(d.y-=f)):u==="center"&&!this.isMobile?d.y=l.y-s/2:(u==="bottom"&&!this.isMobile||this.isMobile&&this.mobilePosition===nl.Bottom)&&(d.y=l.y+i/2+this.spacing.y+this.offset,this.focuser&&(d.y+=f)),c==="left"?(d.x=l.x-a,u==="center"?(d.x-=o/2+13+this.offset,this.focuser&&(d.x-=f)):d.x+=this.spacing.x):c==="center"?d.x=l.x-a/2:c==="right"&&(d.x=l.x,u==="center"?(d.x+=o/2+13+this.offset,this.focuser&&(d.x+=f)):d.x-=this.spacing.x),d}calcArrowPosition(){const n=this.$refs.tooltipItem,{height:r,width:i}=n.getBoundingClientRect();let o={};const[s,a]=this.position.split("-");if(!this.isMobile&&s==="top"||this.isMobile&&this.mobilePosition===nl.Top?o={bottom:"-11px"}:s==="center"&&!this.isMobile?o={transform:a==="right"?"rotate(90deg)":"rotate(270deg)",[a]:i-11+"px",top:r/2-10+"px"}:(!this.isMobile&&s==="bottom"||this.isMobile&&this.mobilePosition===nl.Bottom)&&(o={transform:"rotate(180deg)",top:"-11px"}),this.isMobile){const l=document.querySelector(this.target),{x:u,width:c}=l.getBoundingClientRect();return o.left=u-30+c/2+"px",o}
699return a==="center"?o.left=i/2-10+"px":s!=="center"&&(o[a]=i-this.spacing.x-11+"px"),o}setPosition(){if(document.querySelector(this.target)&&this.styles.visibility!=="visible"||!this.target)return;const r=this.calcPosition(),i=this.calcBoxShadow();this.indicatorStyles=this.calcArrowPosition();const o={top:r.y+"px",left:r.x+"px",boxShadow:`${i.x}px ${i.y}px 3px ${OAe}`};this.isMobile&&delete o.left,this.styles={...this.styles,...o}}handlePositionEmit(){this.$nextTick(()=>{this.setPosition()})}displayFocuser(){const n=document.querySelector(this.target),r=this.getElementCenter(n),i=document.createElement("div");i.classList.add("vdlTooltipDiscovery__focuser"),Object.keys(ck).forEach(s=>i.style[s]=ck[s]),i.style.top=r.y-gf/2+"px",i.style.left=r.x-gf/2+"px",document.body.appendChild(i);const o=n.cloneNode(!0);o.style.position="static",o.style.marginTop="0px",o.style.marginLeft="0px",o.style.marginRight="0px",o.style.marginBottom="0px",o.id="",this.$nextTick(()=>{i.appendChild(o)}),this.focuser=i}open(){const n=document.querySelector(this.target);this.beforeShow(n).then(()=>{n?(this.showFocuser&&this.displayFocuser(),this.styles={...this.styles,visibility:"visible",opacity:1},this.setPosition()):this.target||(this.styles={display:"block",opacity:1})})}close(){this.target?this.styles={...this.styles,visibility:"hidden",opacity:0}:this.styles={},this.focuser&&(this.focuser.remove(),this.focuser=void 0)}beforeUnmount(){this.focuser&&this.focuser.remove(),this.eventBus.off("reposition-tooltip-discovery",this.handlePositionEmit)}mounted(){this.isInWizard?this.parent.registerChild(this):this.open(),this.eventBus.on("reposition-tooltip-discovery",this.handlePositionEmit)}};Ve([je()],On.prototype,"order",void 0);Ve([je()],On.prototype,"heading",void 0);Ve([je()],On.prototype,"title",void 0);Ve([je()],On.prototype,"icon",void 0);Ve([je({default:sS.CenterRight})],On.prototype,"extraLargePosition",void 0);Ve([je()],On.prototype,"largePosition",void 0);Ve([je()],On.prototype,"middlePosition",void 0);Ve([je({default:nl.Bottom})],On.prototype,"mobilePosition",void 0);Ve([je({default:!1})],On.prototype,"showFocuser",void 0);Ve([je()],On.prototype,"target",void 0);Ve([je({default:!1})],On.prototype,"forceDisableWizard",void 0);Ve([je()],On.prototype,"nextText",void 0);Ve([je({default:0})],On.prototype,"offset",void 0);Ve([je({default:()=>()=>Promise.resolve()})],On.prototype,"beforeShow",void 0);Ve([ka("offset")],On.prototype,"onOffsetChange",null);Ve([ka("position")],On.prototype,"onPositionChange",null);Ve([ka("mobilePosition")],On.prototype,"onMobilePositionChange",null);Ve([Hw({from:$Ae})],On.prototype,"eventBus",void 0);On=Ve([La({components:{mdButton:Mr}})],On);const NAe=On;const HAe=e=>(qS("data-v-dc16b276"),e=e(),KS(),e),DAe={class:"vdlTooltipDiscovery__heading"},VAe={class:"vdlTooltipDiscovery__title"},FAe={class:"vdlTooltipDiscovery__content"},BAe={class:"vdlTooltipDiscovery__actions"},UAe=HAe(()=>O("div",{class:"item"},null,-1)),jAe=[UAe];function WAe(e,t,n,r,i,o){const s=Zr,a=Mr;return I(),R("div",{class:Ie(["vdlTooltipDiscovery",{static:!e.target}]),style:vt(e.styles),ref:"tooltipItem"},[O("span",DAe,he(e.isInWizard?e.automaticWizardHeading:e.heading),1),O("h3",VAe,[e.icon?(I(),Se(s,{key:0,mdSvg:e.icon},null,8,["mdSvg"])):K("",!0),_t(" "+he(e.title),1)]),O("div",FAe,[ge(e.$slots,"default",{},void 0,!0)]),O("div",BAe,[ge(e.$slots,"actions",{},()=>[e.showWizardButton?(I(),Se(a,{key:0,onClick:e.handleWizardNext,class:"md-outlined"},{default:pe(()=>[_t(he(e.nextButtonText),1)]),_:1},8,["onClick"])):K("",!0)],!0)]),e.target?(I(),R("div",{key:0,class:"vdlTooltipDiscovery__indicator",style:vt(e.indicatorStyles)},jAe,4)):K("",!0)],6)}const LBe=Ye(NAe,[["render",WAe],["__scopeId","data-v-dc16b276"]]);function GAe(){const e=ti.createElement("span"),t={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(let n in t)if(e.style[n]!==void 0)return t[n]}const yf=GAe(),ta=0,zAe=(e,t)=>t.top<=ta-parseInt(getComputedStyle(e).marginTop,10),qAe=(e,t)=>t.top+e.offsetHeight+ta>=window.innerHeight-parseInt(getComputedStyle(e).marginTop,10),KAe=(e,t)=>
699t.left<=ta-parseInt(getComputedStyle(e).marginLeft,10),XAe=(e,t)=>t.left+e.offsetWidth+ta>=window.innerWidth-parseInt(getComputedStyle(e).marginLeft,10),ZAe=(e,t)=>{let n=getComputedStyle(e);return zAe(e,t)&&(t.top=ta-parseInt(n.marginTop,10)),KAe(e,t)&&(t.left=ta-parseInt(n.marginLeft,10)),XAe(e,t)&&(t.left=window.innerWidth-ta-e.offsetWidth-parseInt(n.marginLeft,10)),qAe(e,t)&&(t.top=window.innerHeight-ta-e.offsetHeight-parseInt(n.marginTop,10)),t};const YAe={name:"md-menu",props:{mdSize:{type:[Number,String],default:0},mdDirection:{type:String,default:"bottom right"},mdAlignTrigger:{type:Boolean,default:!1},mdOffsetX:{type:[Number,String],default:0},mdOffsetY:{type:[Number,String],default:0},mdCloseOnSelect:{type:Boolean,default:!0},mdAutoWidth:{type:Boolean,default:!1},mdFixed:{type:Boolean,default:!1},mdNoFocus:{type:Boolean,default:!1},mdManualToggle:{type:Boolean,default:!1},mdMaxHeight:{type:Number,default:0}},data:()=>({active:!1}),watch:{mdSize(e,t){e>=1&&e<=7&&(this.removeLastSizeMenuContentClass(t),this.addNewSizeMenuContentClass(e))},mdDirection(e,t){this.removeLastDirectionMenuContentClass(t),this.addNewDirectionMenuContentClass(e)},mdAlignTrigger(e){this.handleAlignTriggerClass(e)}},methods:{validateMenu(){if(!this.menuContent)throw new Error("You must have a md-menu-content inside your menu.");if(!this.menuTrigger)throw new Error("You must have an element with a md-menu-trigger attribute inside your menu.")},removeLastSizeMenuContentClass(e){this.menuContent.classList.remove("md-size-"+e)},removeLastDirectionMenuContentClass(e){this.menuContent.classList.remove("md-direction-"+e.replace(/ /g,"-"))},addNewSizeMenuContentClass(e){this.menuContent.classList.add("md-size-"+e)},addNewDirectionMenuContentClass(e){this.menuContent.classList.add("md-direction-"+e.replace(/ /g,"-"))},handleAlignTriggerClass(e){e&&this.menuContent.classList.add("md-align-trigger")},getPosition(e,t){let n=this.menuTrigger.getBoundingClientRect(),r=e==="top"?n.top+n.height-this.menuContent.offsetHeight:n.top,i=t==="left"?n.left-this.menuContent.offsetWidth+n.width:n.left;return r+=parseInt(this.mdOffsetY,10),i+=parseInt(this.mdOffsetX,10),this.mdAlignTrigger&&(e==="top"?r-=n.height+11:r+=n.height+11),{top:r,left:i}},calculateMenuContentPos(){let e,t,n=8;if(!this._destroyed){if(this.mdDirection?e=this.getPosition.apply(this,this.mdDirection.trim().split(" ")):e=this.getPosition("bottom","right"),this.mdAutoWidth&&(t=this.menuTrigger.getBoundingClientRect().width,this.menuContent.style.width=parseInt(t,10)+"px"),!this.mdFixed)e=ZAe(this.menuContent,e);else if(this.mdMaxHeight===0)this.menuContent.style.maxHeight=window.innerHeight-this.menuTrigger.getBoundingClientRect().bottom-n+"px";else if(this.menuContent.children[0].children.length>0){let r=this.menuContent.children[0].children[0].clientHeight;this.menuContent.style.maxHeight=n*2+r*this.mdMaxHeight+"px"}this.menuContent.style.top=e.top+window.pageYOffset+"px",this.menuContent.style.left=e.left+window.pageXOffset+"px"}},recalculateOnResize(){window.requestAnimationFrame(this.calculateMenuContentPos)},open(){document.body.contains(this.menuContent)&&document.body.removeChild(this.menuContent),document.body.appendChild(this.menuContent),this.backdropElement&&document.body.appendChild(this.backdropElement),window.addEventListener("resize",this.recalculateOnResize),this.calculateMenuContentPos(),getComputedStyle(this.menuContent).top,this.menuContent.classList.add("md-active"),this.mdNoFocus||this.menuContent.focus(),this.active=!0,this.$emit("open")},close(){let e=t=>{if(this.menuContent&&t.target===this.menuContent){let n=this.menuContent.querySelector(".md-ripple.md-active");this.menuContent.removeEventListener(yf,e),this.mdNoFocus||this.menuTrigger.focus(),this.active=!1,n&&n.classList.remove("md-active"),document.body.contains(this.menuContent)&&document.body.removeChild(this.menuContent),this.backdropElement&&document.body.contains(this.backdropElement)&&document.body.removeChild(this.backdropElement),window.removeEventListener("resize",this.recalculateOnResize)}};this.menuContent&&(this.menuContent.addEventListener(yf,e),this.menuContent.classList.remove("md-active")),this.$emit("close")},toggle(){this.active?this.close():this.open()}},mounted(){this.$nextTick(()=>{this.menuTrigger=this.$el.querySelector("[md-menu-trigger]"),this.menuContent=this.$el.querySelector(".md-menu-content"),this.$refs&&this.$refs.backdrop&&(this.backdropElement=this.$refs.backdrop.$el),this.validateMenu(),this.handleAlignTriggerClass(this.mdAlignTrigger),this.addNewSizeMenuContentClass(this.mdSize),this.addNewDirectionMenuContentClass(this.mdDirection),this.$el&&this.$refs&&this.$refs.backdrop&&this.$refs.backdrop.$el&&this.$el.removeChild(this.$refs.backdrop.$el),this.menuContent&&this.menuContent.parentNode&&this.menuContent.parentNode.removeChild(this.menuContent),this.mdManualToggle||this.menuTrigger.addEventListener("click",this.toggle)})},beforeUnmount(){document.body.contains(this.menuContent)&&(document.body.removeChild(this.menuContent),this.backdropElement&&document.body.removeChild(this.backdropElement)),!this.mdManualToggle&&this.menuTrigger&&this.menuTrigger.removeEventListener("click",this.toggle),window.removeEventListener("resize",this.recalculateOnResize),this._destroyed=!0}},JAe={class:"md-menu md-theme"};function QAe(e,t,n,r,i,o){const s=Pw;return I(),R("div",JAe,[ge(e.$slots,"default"),ae(s,{class:"md-menu-backdrop md-transparent md-active",ref:"backdrop",onClose:o.close},null,8,["onClose"])])}const eIe=Ye(YAe,[["render",QAe]]),Jp=Qe({__name:"mdList",props:{mdTheme:{}},setup(e){const t=e,{themeClass:n}=Ow(Bc(t,"mdTheme"));var r=[];return Ji("mdList",{getExpandedList(){return r},registerExpanded(i){r.push(i)},removeExpanded(i){r=r.filter(o=>o!=i)}}),(i,o)=>(I(),R("ul",{class:Ie(["md-list",[Ee(n)]])},[ge(i.$slots,"default")],2))}});
699const tIe={name:"md-menu-content",data(){return{oldHighlight:!1,highlighted:!1,itemListCount:0,menuItems:[]}},mixins:[Hn],methods:{close(){this.highlighted=!1,this.$parent.close()},registerItem(e){this.menuItems.push(e)},unregisterItem(e){this.menuItems=this.menuItems.filter(t=>t!==e)},highlightItem(e){if(this.menuItems.length<this.highlighted-1&&(this.highlighted=1),this.highlighted<-1&&(this.highlighted=!1),this.oldHighlight=this.highlighted,e==="up"&&(this.highlighted===1?this.highlighted=this.menuItems.length:this.highlighted--),e==="down"&&(this.highlighted===this.menuItems.length?this.highlighted=1:this.highlighted++),this.highlighted-1>=0&&this.highlighted-1<this.menuItems.length){this.menuItems[this.highlighted-1].$el.scrollIntoView({block:"nearest",behavior:"smooth"});for(var t=0;t<this.menuItems.length;t++)this.menuItems[t].highlighted=!1;this.menuItems[this.highlighted-1].highlighted=!0}},fireClick(){this.highlighted>0&&this.getOptions()[this.highlighted-1].$el.click()},getOptions(){return this.menuItems.filter(e=>e.$el.classList.contains("md-option"))},getSelectedIndex(){return this.highlighted-1>=0&&this.highlighted-1<this.menuItems.length?this.menuItems[this.highlighted-1].index:!1}},mounted(){if(!this.$parent.$el.classList.contains("md-menu"))throw new Error("You must wrap the md-menu-content in a md-menu")}};function nIe(e,t,n,r,i,o){const s=Jp;return I(),R("div",{class:Ie([[e.themeClassOrDefault],"md-menu-content"]),onKeydown:[t[0]||(t[0]=Ar(tt((...a)=>o.close&&o.close(...a),["prevent"]),["esc"])),t[1]||(t[1]=Ar(tt((...a)=>o.close&&o.close(...a),["prevent"]),["tab"])),t[2]||(t[2]=Ar(tt(a=>o.highlightItem("up"),["prevent"]),["up"])),t[3]||(t[3]=Ar(tt(a=>o.highlightItem("down"),["prevent"]),["down"])),t[4]||(t[4]=Ar((...a)=>o.fireClick&&o.fireClick(...a),["enter"])),t[5]||(t[5]=Ar((...a)=>o.fireClick&&o.fireClick(...a),["space"]))],tabindex:"-1"},[ae(s,null,{default:pe(()=>[ge(e.$slots,"default")]),_:3})],34)}const rIe=Ye(tIe,[["render",nIe]]),iIe={class:"md-list-item-container md-button"},oIe={},sIe=Qe({...oIe,__name:"mdListItemButton",props:{disabled:{type:Boolean}},setup(e){const t=e,n=fe(()=>({"md-disabled":t.disabled}));return(r,i)=>(I(),R("li",{class:Ie(["md-list-item",n.value])},[O("div",iIe,[ge(r.$slots,"default")]),ae(Mr,{type:"button",class:"md-button-ghost",disabled:r.disabled||null},null,8,["disabled"])],2))}}),aIe={name:"md-list-item",props:{href:String,target:String,disabled:Boolean},computed:{classes(){return{"md-disabled":this.disabled}}}},lIe=["href","target","disabled"];function uIe(e,t,n,r,i,o){return I(),R("li",{class:Ie(["md-list-item",o.classes])},[O("a",{class:"md-list-item-container md-button",href:n.href,target:n.target,disabled:n.disabled?!0:null},[ge(e.$slots,"default")],8,lIe)],2)}const cIe=Ye(aIe,[["render",uIe]]),dIe={name:"md-list-item",props:{disabled:Boolean},computed:{classes(){return{"md-disabled":this.disabled}}}},fIe=["disabled"];function pIe(e,t,n,r,i,o){const s=jc("md-ripple");return kn((I(),R("li",{class:Ie(["md-list-item",o.classes]),disabled:n.disabled||null},[ge(e.$slots,"default",{class:"md-list-item-container md-button"})],10,fIe)),[[s,n.disabled]])}const hIe=Ye(dIe,[["render",pIe]]),mIe={class:"md-list-item-container md-button"},vIe=Qe({__name:"mdListItemExpand",props:{id:{},disabled:{type:Boolean,default:!1},mdExpandMultiple:{type:Boolean,default:!1},buttonAriaLabel:{}},emits:["click"],setup(e,{expose:t,emit:n}){const r=e,i=kt("mdList"),o=ie(null),s=ie(null),a=ie(!1),l={inactivate:()=>a.value=!1};function u(){i==null||i.getExpandedList().forEach(d=>{d!==l&&d.inactivate&&d.inactivate()})}function c(d){r.mdExpandMultiple||u(),a.value=!a.value,n("click",d)}return t({toggleExpandList:c}),$n(()=>{Lt(()=>{i==null||i.registerExpanded(l)})}),Rn(()=>{i==null||i.removeExpanded(l)}),(d,f)=>{const p=Zr,h=Mr;return I(),R("li",{class:Ie(["md-list-item md-list-item-expand",{"md-disabled":d.disabled,"md-active":a.value}]),ref_key:"rootCmp",ref:s},[O("div",mIe,[ge(d.$slots,"default"),ae(p,{class:"md-list-expand-indicator",mdSvg:Ee(p1)},null,8,["mdSvg"]),ae(h,{id:d.id,type:"button",class:"md-button-ghost","aria-label":d.buttonAriaLabel,onClick:tt(c,["stop","self"]),disabled:d.disabled||null},null,8,["id","aria-label","onClick","disabled"])]),O("div",{class:"md-list-expand",ref_key:"expandCmp",ref:o},[ge(d.$slots,"expand")],512)],2)}}}),gIe={name:"md-list-item"},yIe={class:"md-list-item"},bIe={class:"md-list-item-container"};function _Ie(e,t,n,r,i,o){return I(),R("li",yIe,[O("div",bIe,[ge(e.$slots,"default")])])}const SIe=Ye(gIe,[["render",_Ie]]),Vw={props:{href:String,disabled:Boolean},methods:{toggleExpandList(){this.$refs.listItem&&this.$refs.listItem.toggleExpandList&&this.$refs.listItem.toggleExpandList()}},render(){let e=this.$slots.default(),t={};const r=(()=>{const i=["onContextMenu","onDdblClick","onDragend","onMousedown","onTouchstart","onClick"];e.length===1&&typeof e[0].type=="symbol"&&e[0].children instanceof Array&&(e=e[0].children);let o=e&&e.length||0;if(this.href)return cIe;for(;o--;){const s=e[o].type;if(s){if(s==="md-list-expand"||s.name==="MdListExpand"||s.name==="md-list-expand"){const a=e[o];return t={expand:()=>a},e.splice(o,1),vIe}else if(s==="router-link"||s.name==="RouterLink")return t={default:()=>Mi(e[o],{class:"md-list-item-container md-button"})},hIe}}if(this.$attrs){let s=i.length;for(;s--;)if(this.$attrs[i[s]])return sIe}return SIe})();return io(r,{...this.$attrs,href:this.href,disabled:this.disabled||null,ref:"listItem"},{default:()=>e,...t})}};let Ea=(e,t)=>!e||!e.$el||e._uid===0?!1:e.$el.classList&&e.$el.classList.contains(t)?e:Ea(e.$parent,t);const EIe={name:"md-menu-item",props:{href:String,target:String,disabled:Boolean,listIndex:{type:Number,default:-1},manualHighlight:{type:Boolean,default:!1}},data:()=>({parentContent:{},index:0,highlighted:!1}),computed:{classes(){return{"md-highlighted":this.highlighted}},getHighlight(){if(!this.manualHighlight)return this.index===this.parentContent.highlighted?(this.disabled&&(this.parentContent.oldHighlight>this.parentContent.highlighted?this.parentContent.highlighted--:this.parentContent.highlighted++),this.index===1?this.parentContent.$el.scrollTop=0:this.index===this.parentContent.itemsAmount?this.parentContent.$el.scrollTop=this.parentContent.$el.scrollHeight:this.$el.scrollIntoViewIfNeeded&&this.$el.scrollIntoViewIfNeeded(!1),this.highlighted=!0,!0):(this.highlighted=!1,!1)}},methods:{close(e){this.parentMenu.mdManualToggle?this.disabled||this.$emit("selected",e):this.disabled||(this.parentMenu.mdCloseOnSelect&&this.parentContent.close(),this.$emit("selected",e))}},mounted(){if(this.parentContent=Ea(this.$parent,"md-menu-content"),this.parentMenu=Ea(this.$parent,"md-menu"),!this.parentContent)throw new Error("You must wrap the md-menu-item in a md-menu-content");this.parentContent.registerItem(this),this.listIndex===-1?(this.parentContent.itemListCount++,this.index=this.parentContent.itemListCount):this.index=this.listIndex+1},unmounted(){this.parentContent.unregisterItem(this)}};function CIe(e,t,n,r,i,o){const s=Vw;return I(),Se(s,{class:Ie(["md-menu-item",o.classes]),onClick:o.close,href:n.href,target:n.target,disabled:n.disabled||null},{default:pe(()=>[ge(e.$slots,"default")]),_:3},8,["onClick","class","href","target","disabled"])}
699const wIe=Ye(EIe,[["render",CIe]]);var TIe=Object.defineProperty,AIe=Object.getOwnPropertyDescriptor,eu=(e,t,n,r)=>{for(var i=r>1?void 0:r?AIe(t,n):t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=(r?s(t,n,i):s(i))||i);return r&&i&&TIe(t,n,i),i};let ws=class extends xa{constructor(){super(...arguments);ve(this,"icon");ve(this,"mdIcon");ve(this,"customIcon");ve(this,"html");ve(this,"svg");ve(this,"size")}};eu([je({default:""})],ws.prototype,"icon",2);eu([je()],ws.prototype,"mdIcon",2);eu([je()],ws.prototype,"customIcon",2);eu([je({default:""})],ws.prototype,"html",2);eu([je({default:""})],ws.prototype,"svg",2);eu([je()],ws.prototype,"size",2);ws=eu([La({name:"vdl-icon"})],ws);const IIe=["innerHTML"];function xIe(e,t,n,r,i,o){const s=Zr;return e.svg?(I(),Se(s,{key:0,"md-svg":e.svg,size:e.size},null,8,["md-svg","size"])):e.icon&&e.customIcon?(I(),Se(s,{key:1,class:"vdl-icon"},{default:pe(()=>[O("span",{class:Ie(`vdl-icon-${e.icon}`),innerHTML:e.html},null,10,IIe)]),_:1})):K("",!0)}const LIe=Ye(ws,[["render",xIe]]);const kIe={name:"md-layout",props:{mdTag:{type:String,default:"div"},mdRow:Boolean,mdRowXsmall:Boolean,mdRowSmall:Boolean,mdRowMedium:Boolean,mdRowLarge:Boolean,mdRowXlarge:Boolean,mdColumn:Boolean,mdColumnXsmall:Boolean,mdColumnSmall:Boolean,mdColumnMedium:Boolean,mdColumnLarge:Boolean,mdColumnXlarge:Boolean,mdHideXsmall:Boolean,mdHideSmall:Boolean,mdHideMedium:Boolean,mdHideLarge:Boolean,mdHideXlarge:Boolean,mdHideXsmallAndUp:Boolean,mdHideSmallAndUp:Boolean,mdHideMediumAndUp:Boolean,mdHideLargeAndUp:Boolean,mdHideXlargeAndUp:Boolean,mdGutter:[String,Number,Boolean],mdAlign:String,mdAlignXsmall:String,mdAlignSmall:String,mdAlignMedium:String,mdAlignLarge:String,mdAlignXlarge:String,mdVerticalAlign:String,mdVerticalAlignXsmall:String,mdVerticalAlignSmall:String,mdVerticalAlignMedium:String,mdVerticalAlignLarge:String,mdVerticalAlignXlarge:String,mdFlex:[String,Number,Boolean],mdFlexXsmall:[String,Number,Boolean],mdFlexSmall:[String,Number,Boolean],mdFlexMedium:[String,Number,Boolean],mdFlexLarge:[String,Number,Boolean],mdFlexXlarge:[String,Number,Boolean],mdFlexOffset:[String,Number,Boolean],mdFlexOffsetXsmall:[String,Number,Boolean],mdFlexOffsetSmall:[String,Number,Boolean],mdFlexOffsetMedium:[String,Number,Boolean],mdFlexOffsetLarge:[String,Number,Boolean],mdFlexOffsetXlarge:[String,Number,Boolean]},computed:{classes(){let e={"md-row":this.mdRow,"md-row-xsmall":this.mdRowXsmall,"md-row-small":this.mdRowSmall,"md-row-medium":this.mdRowMedium,"md-row-large":this.mdRowLarge,"md-row-xlarge":this.mdRowXlarge,"md-column":this.mdColumn,"md-column-xsmall":this.mdColumnXsmall,"md-column-small":this.mdColumnSmall,"md-column-medium":this.mdColumnMedium,"md-column-large":this.mdColumnLarge,"md-column-xlarge":this.mdColumnXlarge,"md-hide-xsmall":this.mdHideXsmall,"md-hide-small":this.mdHideSmall,"md-hide-medium":this.mdHideMedium,"md-hide-large":this.mdHideLarge,"md-hide-xlarge":this.mdHideXlarge,"md-hide-xsmall-and-up":this.mdHideXsmallAndUp,"md-hide-small-and-up":this.mdHideSmallAndUp,"md-hide-medium-and-up":this.mdHideMediumAndUp,"md-hide-large-and-up":this.mdHideLargeAndUp,"md-hide-xlarge-and-up":this.mdHideXlargeAndUp,"md-layout":!0};return this.mdGutter&&(typeof this.mdGutter=="boolean"?e["md-gutter"]=!0:this.mdGutter&&(e["md-gutter-"+this.mdGutter]=!0)),this.generatePropClasses("md-flex","","mdFlex",e),this.generatePropClasses("md-flex","xsmall","mdFlexXsmall",e),this.generatePropClasses("md-flex","small","mdFlexSmall",e),this.generatePropClasses("md-flex","medium","mdFlexMedium",e),this.generatePropClasses("md-flex","large","mdFlexLarge",e),this.generatePropClasses("md-flex","xlarge","mdFlexXlarge",e),this.generatePropClasses("md-flex-offset","","mdFlexOffset",e),this.generatePropClasses("md-flex-offset","xsmall","mdFlexOffsetXsmall",e),this.generatePropClasses("md-flex-offset","small","mdFlexOffsetSmall",e),this.generatePropClasses("md-flex-offset","medium","mdFlexOffsetMedium",e),this.generatePropClasses("md-flex-offset","large","mdFlexOffsetLarge",e),this.generatePropClasses("md-flex-offset","xlarge","mdFlexOffsetXlarge",e),this.generatePropClasses("md-align","","mdAlign",e),this.generatePropClasses("md-align","xsmall","mdAlignXsmall",e),this.generatePropClasses("md-align","small","mdAlignSmall",e),this.generatePropClasses("md-align","medium","mdAlignMedium",e),this.generatePropClasses("md-align","large","mdAlignLarge",e),this.generatePropClasses("md-align","xlarge","mdAlignXlarge",e),this.generatePropClasses("md-vertical-align","","mdVerticalAlign",e),this.generatePropClasses("md-vertical-align","xsmall","mdVerticalAlignXsmall",e),this.generatePropClasses("md-vertical-align","small","mdVerticalAlignSmall",e),this.generatePropClasses("md-vertical-align","medium","mdVerticalAlignMedium",e),this.generatePropClasses("md-vertical-align","large","mdVerticalAlignLarge",e),this.generatePropClasses("md-vertical-align","xlarge","mdVerticalAlignXlarge",e),e}},methods:{generatePropClasses(e,t,n,r){t&&(t="-"+t),this[n]&&(typeof this[n]=="boolean"?this[n]?r[e+t]=!0:r[e+t+"-none"]=!0:r[e+t+"-"+this[n]]=!0)}},render(){return io(this.mdTag,{class:this.classes},this.$slots)}};var Fw={exports:{}},lD=function(t,n){return function(){for(var i=new Array(arguments.length),o=0;o<i.length;o++)i[o]=arguments[o];return t.apply(n,i)}},MIe=lD,Bw=Object.prototype.toString,Uw=function(e){return function(t){var n=Bw.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));function tu(e){return e=e.toLowerCase(),function(n){return Uw(n)===e}}function jw(e){return Array.isArray(e)}function _g(e){return typeof e>"u"}function RIe(e){return e!==null&&!_g(e)&&e.constructor!==null&&!_g(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var uD=tu("ArrayBuffer");function PIe(e){var t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&uD(e.buffer),t}function OIe(e){return typeof e=="string"}function $Ie(e){return typeof e=="number"}function cD(e){return e!==null&&typeof e=="object"}function Km(e){if(Uw(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var NIe=tu("Date"),HIe=tu("File"),DIe=tu("Blob"),VIe=tu("FileList");function Ww(e){return Bw.call(e)==="[object Function]"}function FIe(e){return cD(e)&&Ww(e.pipe)}function BIe(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||Bw.call(e)===t||Ww(e.toString)&&e.toString()===t)}var UIe=tu("URLSearchParams");function jIe(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function WIe(){return typeof navigator<"u"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window<"u"&&typeof document<"u"}function Gw(e,t){if(!(e===null||typeof e>"u"))if(typeof e!="object"&&(e=[e]),jw(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function aS(){var e={};function t(i,o){Km(e[o])&&Km(i)?e[o]=aS(e[o],i):Km(i)?e[o]=aS({},i):jw(i)?e[o]=i.slice():e[o]=i}for(var n=0,r=arguments.length;n<r;n++)Gw(arguments[n],t);return e}function GIe(e,t,n){return Gw(t,function(i,o){n&&typeof i=="function"?e[o]=MIe(i,n):e[o]=i}),e}function zIe(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function qIe(e,t,n,r){e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)}function KIe(e,t,n){var r,i,o,s={};t=t||{};do{for(r=Object.getOwnPropertyNames(e),i=r.length;i-- >0;)o=r[i],s[o]||(t[o]=e[o],s[o]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function XIe(e,t,n){e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;var r=e.indexOf(t,n);return r!==-1&&r===n}function ZIe(e){if(!e)return null;var t=e.length;if(_g(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var YIe=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array<"u"&&Object.getPrototypeOf(Uint8Array)),sr={isArray:jw,isArrayBuffer:uD,isBuffer:RIe,isFormData:BIe,isArrayBufferView:PIe,isString:OIe,isNumber:$Ie,isObject:cD,isPlainObject:Km,isUndefined:_g,isDate:NIe,isFile:HIe,isBlob:DIe,isFunction:Ww,isStream:FIe,isURLSearchParams:UIe,isStandardBrowserEnv:WIe,forEach:Gw,merge:aS,extend:GIe,trim:jIe,stripBOM:zIe,inherits:qIe,toFlatObject:KIe,kindOf:Uw,kindOfTest:tu,endsWith:XIe,toArray:ZIe,isTypedArray:YIe,isFileList:VIe},hu=sr;function dk(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var dD=function(t,n,r){if(!n)return t;var i;if(r)i=r(n);else if(hu.isURLSearchParams(n))i=n.toString();else{var o=[];hu.forEach(n,function(l,u){l===null||typeof l>"u"||(hu.isArray(l)?u=u+"[]":l=[l],hu.forEach(l,function(d){hu.isDate(d)?d=d.toISOString():hu.isObject(d)&&(d=JSON.stringify(d)),o.push(dk(u)+"="+dk(d))}))}),i=o.join("&")}if(i){var s=t.indexOf("#");
699s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},JIe=sr;function y0(){this.handlers=[]}y0.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};y0.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};y0.prototype.forEach=function(t){JIe.forEach(this.handlers,function(r){r!==null&&t(r)})};var QIe=y0,e5e=sr,t5e=function(t,n){e5e.forEach(t,function(i,o){o!==n&&o.toUpperCase()===n.toUpperCase()&&(t[n]=i,delete t[o])})},fD=sr;function Mc(e,t,n,r,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),i&&(this.response=i)}fD.inherits(Mc,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var pD=Mc.prototype,hD={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){hD[e]={value:e}});Object.defineProperties(Mc,hD);Object.defineProperty(pD,"isAxiosError",{value:!0});Mc.from=function(e,t,n,r,i,o){var s=Object.create(pD);return fD.toFlatObject(e,s,function(l){return l!==Error.prototype}),Mc.call(s,e.message,t,n,r,i),s.name=e.name,o&&Object.assign(s,o),s};var ud=Mc,mD={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Vi=sr;function n5e(e,t){t=t||new FormData;var n=[];function r(o){return o===null?"":Vi.isDate(o)?o.toISOString():Vi.isArrayBuffer(o)||Vi.isTypedArray(o)?typeof Blob=="function"?new Blob([o]):Buffer.from(o):o}function i(o,s){if(Vi.isPlainObject(o)||Vi.isArray(o)){if(n.indexOf(o)!==-1)throw Error("Circular reference detected in "+s);n.push(o),Vi.forEach(o,function(l,u){if(!Vi.isUndefined(l)){var c=s?s+"."+u:u,d;if(l&&!s&&typeof l=="object"){if(Vi.endsWith(u,"{}"))l=JSON.stringify(l);else if(Vi.endsWith(u,"[]")&&(d=Vi.toArray(l))){d.forEach(function(f){!Vi.isUndefined(f)&&t.append(c,r(f))});return}}i(l,c)}}),n.pop()}else t.append(s,r(o))}return i(e),t}var vD=n5e,Yy,fk;function r5e(){if(fk)return Yy;fk=1;var e=ud;return Yy=function(n,r,i){var o=i.config.validateStatus;!i.status||!o||o(i.status)?n(i):r(new e("Request failed with status code "+i.status,[e.ERR_BAD_REQUEST,e.ERR_BAD_RESPONSE][Math.floor(i.status/100)-4],i.config,i.request,i))},Yy}var Jy,pk;function i5e(){if(pk)return Jy;pk=1;var e=sr;return Jy=e.isStandardBrowserEnv()?function(){return{write:function(r,i,o,s,a,l){var u=[];u.push(r+"="+encodeURIComponent(i)),e.isNumber(o)&&u.push("expires="+new Date(o).toGMTString()),e.isString(s)&&u.push("path="+s),e.isString(a)&&u.push("domain="+a),l===!0&&u.push("secure"),document.cookie=u.join("; ")},read:function(r){var i=document.cookie.match(new RegExp("(^|;\\s*)("+r+")=([^;]*)"));return i?decodeURIComponent(i[3]):null},remove:function(r){this.write(r,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Jy}var o5e=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},s5e=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},a5e=o5e,l5e=s5e,gD=function(t,n){return t&&!a5e(n)?l5e(t,n):n},Qy,hk;function u5e(){if(hk)return Qy;hk=1;var e=sr,t=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];return Qy=function(r){var i={},o,s,a;return r&&e.forEach(r.split(` 700`),function(u){if(a=u.indexOf(":"),o=e.trim(u.substr(0,a)).toLowerCase(),s=e.trim(u.substr(a+1)),o){if(i[o]&&t.indexOf(o)>=0)return;o==="set-cookie"?i[o]=(i[o]?i[o]:[]).concat([s]):i[o]=i[o]?i[o]+", "+s:s}}),i},Qy}var eb,mk;function c5e(){if(mk)return eb;mk=1;var e=sr;return eb=e.isStandardBrowserEnv()?function(){var n=/(msie|trident)/i.test(navigator.userAgent),r=document.createElement("a"),i;function o(s){var a=s;return n&&(r.setAttribute("href",a),a=r.href),r.setAttribute("href",a),{href:r.href,protocol:r.protocol?r.protocol.replace(/:$/,""):"",host:r.host,search:r.search?r.search.replace(/^\?/,""):"",hash:r.hash?r.hash.replace(/^#/,""):"",hostname:r.hostname,port:r.port,pathname:r.pathname.charAt(0)==="/"?r.pathname:"/"+r.pathname}}return i=o(window.location.href),function(a){var l=e.isString(a)?o(a):a;return l.protocol===i.protocol&&l.host===i.host}}():function(){return function(){return!0}}(),eb}var tb,vk;function b0(){if(vk)return tb;vk=1;var e=ud,t=sr;function n(r){e.call(this,r??"canceled",e.ERR_CANCELED),this.name="CanceledError"}return t.inherits(n,e,{__CANCEL__:!0}),tb=n,tb}var nb,gk;function d5e(){return gk||(gk=1,nb=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""}),nb}var rb,yk;function bk(){if(yk)return rb;yk=1;var e=sr,t=r5e(),n=i5e(),r=dD,i=gD,o=u5e(),s=c5e(),a=mD,l=ud,u=b
7000(),c=d5e();return rb=function(f){return new Promise(function(h,m){var v=f.data,g=f.headers,y=f.responseType,_;function b(){f.cancelToken&&f.cancelToken.unsubscribe(_),f.signal&&f.signal.removeEventListener("abort",_)}e.isFormData(v)&&e.isStandardBrowserEnv()&&delete g["Content-Type"];var S=new XMLHttpRequest;if(f.auth){var C=f.auth.username||"",E=f.auth.password?unescape(encodeURIComponent(f.auth.password)):"";g.Authorization="Basic "+btoa(C+":"+E)}var w=i(f.baseURL,f.url);S.open(f.method.toUpperCase(),r(w,f.params,f.paramsSerializer),!0),S.timeout=f.timeout;function T(){if(S){var x="getAllResponseHeaders"in S?o(S.getAllResponseHeaders()):null,k=!y||y==="text"||y==="json"?S.responseText:S.response,M={data:k,status:S.status,statusText:S.statusText,headers:x,config:f,request:S};t(function(P){h(P),b()},function(P){m(P),b()},M),S=null}}if("onloadend"in S?S.onloadend=T:S.onreadystatechange=function(){!S||S.readyState!==4||S.status===0&&!(S.responseURL&&S.responseURL.indexOf("file:")===0)||setTimeout(T)},S.onabort=function(){S&&(m(new l("Request aborted",l.ECONNABORTED,f,S)),S=null)},S.onerror=function(){m(new l("Network Error",l.ERR_NETWORK,f,S,S)),S=null},S.ontimeout=function(){var k=f.timeout?"timeout of "+f.timeout+"ms exceeded":"timeout exceeded",M=f.transitional||a;f.timeoutErrorMessage&&(k=f.timeoutErrorMessage),m(new l(k,M.clarifyTimeoutError?l.ETIMEDOUT:l.ECONNABORTED,f,S)),S=null},e.isStandardBrowserEnv()){var A=(f.withCredentials||s(w))&&f.xsrfCookieName?n.read(f.xsrfCookieName):void 0;A&&(g[f.xsrfHeaderName]=A)}"setRequestHeader"in S&&e.forEach(g,function(k,M){typeof v>"u"&&M.toLowerCase()==="content-type"?delete g[M]:S.setRequestHeader(M,k)}),e.isUndefined(f.withCredentials)||(S.withCredentials=!!f.withCredentials),y&&y!=="json"&&(S.responseType=f.responseType),typeof f.onDownloadProgress=="function"&&S.addEventListener("progress",f.onDownloadProgress),typeof f.onUploadProgress=="function"&&S.upload&&S.upload.addEventListener("progress",f.onUploadProgress),(f.cancelToken||f.signal)&&(_=function(x){S&&(m(!x||x&&x.type?new u:x),S.abort(),S=null)},f.cancelToken&&f.cancelToken.subscribe(_),f.signal&&(f.signal.aborted?_():f.signal.addEventListener("abort",_))),v||(v=null);var L=c(w);if(L&&["http","https","file"].indexOf(L)===-1){m(new l("Unsupported protocol "+L+":",l.ERR_BAD_REQUEST,f));return}S.send(v)})},rb}var ib,_k;function f5e(){return _k||(_k=1,ib=null),ib}var Xn=sr,Sk=t5e,Ek=ud,p5e=mD,h5e=vD,m5e={"Content-Type":"application/x-www-form-urlencoded"};function Ck(e,t){!Xn.isUndefined(e)&&Xn.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function v5e(){var e;return(typeof XMLHttpRequest<"u"||typeof process<"u"&&Object.prototype.toString.call(process)==="[object process]")&&(e=bk()),e}function g5e(e,t,n){if(Xn.isString(e))try{return(t||JSON.parse)(e),Xn.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var _0={transitional:p5e,adapter:v5e(),transformRequest:[function(t,n){if(Sk(n,"Accept"),Sk(n,"Content-Type"),Xn.isFormData(t)||Xn.isArrayBuffer(t)||Xn.isBuffer(t)||Xn.isStream(t)||Xn.isFile(t)||Xn.isBlob(t))return t;if(Xn.isArrayBufferView(t))return t.buffer;if(Xn.isURLSearchParams(t))return Ck(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var r=Xn.isObject(t),i=n&&n["Content-Type"],o;if((o=Xn.isFileList(t))||r&&i==="multipart/form-data"){var s=this.env&&this.env.FormData;return h5e(o?{"files[]":t}:t,s&&new s)}else if(r||i==="application/json")return Ck(n,"application/json"),g5e(t);return t}],transformResponse:[function(t){var n=this.transitional||_0.transitional,r=n&&n.silentJSONParsing,i=n&&n.forcedJSONParsing,o=!r&&this.responseType==="json";if(o||i&&Xn.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(o)throw s.name==="SyntaxError"?Ek.from(s,Ek.ERR_BAD_RESPONSE,this,null,this.response):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:f5e()},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Xn.forEach(["delete","get","head"],function(t){_0.headers[t]={}});Xn.forEach(["post","put","patch"],function(t){_0.headers[t]=Xn.merge
700(m5e)});var zw=_0,y5e=sr,b5e=zw,_5e=function(t,n,r){var i=this||b5e;return y5e.forEach(r,function(s){t=s.call(i,t,n)}),t},ob,wk;function yD(){return wk||(wk=1,ob=function(t){return!!(t&&t.__CANCEL__)}),ob}var Tk=sr,sb=_5e,S5e=yD(),E5e=zw,C5e=b0();function ab(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new C5e}var w5e=function(t){ab(t),t.headers=t.headers||{},t.data=sb.call(t,t.data,t.headers,t.transformRequest),t.headers=Tk.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Tk.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var n=t.adapter||E5e.adapter;return n(t).then(function(i){return ab(t),i.data=sb.call(t,i.data,i.headers,t.transformResponse),i},function(i){return S5e(i)||(ab(t),i&&i.response&&(i.response.data=sb.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},Yr=sr,bD=function(t,n){n=n||{};var r={};function i(c,d){return Yr.isPlainObject(c)&&Yr.isPlainObject(d)?Yr.merge(c,d):Yr.isPlainObject(d)?Yr.merge({},d):Yr.isArray(d)?d.slice():d}function o(c){if(Yr.isUndefined(n[c])){if(!Yr.isUndefined(t[c]))return i(void 0,t[c])}else return i(t[c],n[c])}function s(c){if(!Yr.isUndefined(n[c]))return i(void 0,n[c])}function a(c){if(Yr.isUndefined(n[c])){if(!Yr.isUndefined(t[c]))return i(void 0,t[c])}else return i(void 0,n[c])}function l(c){if(c in n)return i(t[c],n[c]);if(c in t)return i(void 0,t[c])}var u={url:s,method:s,data:s,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return Yr.forEach(Object.keys(t).concat(Object.keys(n)),function(d){var f=u[d]||o,p=f(d);Yr.isUndefined(p)&&f!==l||(r[d]=p)}),r},lb,Ak;function _D(){return Ak||(Ak=1,lb={version:"0.27.2"}),lb}var T5e=_D().version,Zs=ud,qw={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){qw[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var Ik={};qw.transitional=function(t,n,r){function i(o,s){return"[Axios v"+T5e+"] Transitional option '"+o+"'"+s+(r?". "+r:"")}return function(o,s,a){if(t===!1)throw new Zs(i(s," has been removed"+(n?" in "+n:"")),Zs.ERR_DEPRECATED);return n&&!Ik[s]&&(Ik[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,s,a):!0}};function A5e(e,t,n){if(typeof e!="object")throw new Zs("options must be an object",Zs.ERR_BAD_OPTION_VALUE);for(var r=Object.keys(e),i=r.length;i-- >0;){var o=r[i],s=t[o];if(s){var a=e[o],l=a===void 0||s(a,o,e);if(l!==!0)throw new Zs("option "+o+" must be "+l,Zs.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Zs("Unknown option "+o,Zs.ERR_BAD_OPTION)}}var I5e={assertOptions:A5e,validators:qw},SD=sr,x5e=dD,xk=QIe,Lk=w5e,S0=bD,L5e=gD,ED=I5e,mu=ED.validators;function Rc(e){this.defaults=e,this.interceptors={request:new xk,response:new xk}}Rc.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=S0(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&ED.assertOptions(r,{silentJSONParsing:mu.transitional(mu.boolean),forcedJSONParsing:mu.transitional(mu.boolean),clarifyTimeoutError:mu.transitional(mu.boolean)},!1);var i=[],o=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(o=o&&p.synchronous,i.unshift(p.fulfilled,p.rejected))});var s=[];this.interceptors.response.forEach(function(p){s.push(p.fulfilled,p.rejected)});var a;if(!o){var l=[Lk,void 0];for(Array.prototype.unshift.apply(l,i),l=l.concat(s),a=Promise.resolve(n);l.length;)a=a.then(l.shift(),l.shift());return a}for(var u=n;i.length;){var c=i.shift(),d=i.shift();try{u=c(u)}catch(f){d(f);break}}try{a=Lk(u)}catch(f){return Promise.reject(f)}for(;s.length;)a=a.then(s.shift(),s.shift());return a};Rc.prototype.getUri=function(t){t=S0(this.defaults,t);var n=L5e(t.baseURL,t.url);return x5e(n,t.params,t.paramsSerializer)};
700SD.forEach(["delete","get","head","options"],function(t){Rc.prototype[t]=function(n,r){return this.request(S0(r||{},{method:t,url:n,data:(r||{}).data}))}});SD.forEach(["post","put","patch"],function(t){function n(r){return function(o,s,a){return this.request(S0(a||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:o,data:s}))}}Rc.prototype[t]=n(),Rc.prototype[t+"Form"]=n(!0)});var k5e=Rc,ub,kk;function M5e(){if(kk)return ub;kk=1;var e=b0();function t(n){if(typeof n!="function")throw new TypeError("executor must be a function.");var r;this.promise=new Promise(function(s){r=s});var i=this;this.promise.then(function(o){if(i._listeners){var s,a=i._listeners.length;for(s=0;s<a;s++)i._listeners[s](o);i._listeners=null}}),this.promise.then=function(o){var s,a=new Promise(function(l){i.subscribe(l),s=l}).then(o);return a.cancel=function(){i.unsubscribe(s)},a},n(function(s){i.reason||(i.reason=new e(s),r(i.reason))})}return t.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},t.prototype.subscribe=function(r){if(this.reason){r(this.reason);return}this._listeners?this._listeners.push(r):this._listeners=[r]},t.prototype.unsubscribe=function(r){if(this._listeners){var i=this._listeners.indexOf(r);i!==-1&&this._listeners.splice(i,1)}},t.source=function(){var r,i=new t(function(s){r=s});return{token:i,cancel:r}},ub=t,ub}var cb,Mk;function R5e(){return Mk||(Mk=1,cb=function(t){return function(r){return t.apply(null,r)}}),cb}var db,Rk;function P5e(){if(Rk)return db;Rk=1;var e=sr;return db=function(n){return e.isObject(n)&&n.isAxiosError===!0},db}var Pk=sr,O5e=lD,Xm=k5e,$5e=bD,N5e=zw;function CD(e){var t=new Xm(e),n=O5e(Xm.prototype.request,t);return Pk.extend(n,Xm.prototype,t),Pk.extend(n,t),n.create=function(i){return CD($5e(e,i))},n}var zr=CD(N5e);zr.Axios=Xm;zr.CanceledError=b0();zr.CancelToken=M5e();zr.isCancel=yD();zr.VERSION=_D().version;zr.toFormData=vD;zr.AxiosError=ud;zr.Cancel=zr.CanceledError;zr.all=function(t){return Promise.all(t)};zr.spread=R5e();zr.isAxiosError=P5e();Fw.exports=zr;Fw.exports.default=zr;var H5e=Fw.exports,D5e=H5e;const kBe=Gc(D5e);const V5e={name:"md-spinner",props:{mdSize:{type:Number,default:50},mdStroke:{type:Number,default:3.5},mdIndeterminate:Boolean,mdProgress:{type:Number,default:0}},mixins:[Hn],computed:{classes(){return{"md-indeterminate":this.mdIndeterminate}},styles(){const e=this.mdSize+"px";return{width:e,height:e}},dashProgress(){let e=this.mdProgress*125/100;return this.mdIndeterminate?!1:(e>=125&&(e=130),`${e}, 200`)}}},F5e={class:"md-spinner-draw",viewBox:"25 25 50 50"},B5e=["stroke-width","stroke-dasharray"];function U5e(e,t,n,r,i,o){return I(),Se(Wc,{name:"md-spinner",appear:""},{default:pe(()=>[O("div",{class:Ie(["md-spinner",[e.themeClass,o.classes]]),style:vt(o.styles)},[(I(),R("svg",F5e,[O("circle",{class:"md-spinner-path",cx:"50",cy:"50",r:"20","stroke-width":n.mdStroke,"stroke-dasharray":o.dashProgress||null},null,8,B5e)]))],6)]),_:1})}const Kw=Ye(V5e,[["render",U5e]]),MBe=Qe({__name:"vdlMarkItem",props:{targetQuery:{},adjustTop:{default:0},adjustLeft:{default:0},height:{default:"15px"},width:{default:"15px"}},setup(e){const t=e;var n,r,i;function o(){!i&&n&&(i=setTimeout(()=>{const s=r.getBoundingClientRect(),a=r.parentElement.getBoundingClientRect(),l=s.bottom-a.top-8+t.adjustTop,u=s.right-a.left-8+t.adjustLeft;n&&n.style&&(n.style.top=`${l}px`,n.style.left=`${u}px`),i=0},60))}return ut(t,()=>{n&&(n.style.height=t.height,n.style.width=t.width,o())}),Rn(()=>{n&&(n.remove(),n=void 0,window.removeEventListener("resize",o))}),$n(()=>{Lt(()=>{if(r=document.querySelector(t.targetQuery),r){const s=document.createElement("div",{});s.style.width=t.width,s.style.height=t.height,s.style.background="red",s.style.position="absolute",s.style["border-radius"]="50%",n=r.parentElement.appendChild(s),n&&(o(),n.addEventListener("click",a=>{r.dispatchEvent(new Event("click",{bubbles:!0,cancelable:!0}))}),window.addEventListener("resize",o))}else console.log("target not found",t.targetQuery)})}),(s,a)=>null}});const j5e={name:"md-bottom-bar",data(){return{childItems:[]}},props:{mdShift:{type:Boolean,default:null}},mixins:[Hn],computed:{classes(){return this.mdShift?"md-shift":"md-fixed"}},methods:{addChild(e){this.childItems.push(e)}
700,setActive(e){this.childItems.forEach(t=>{t.active=t===e}),this.$emit("change",this.childItems.findIndex(t=>t===e))}}};function W5e(e,t,n,r,i,o){return I(),R("div",{class:Ie(["md-bottom-bar",[e.themeClass,o.classes]])},[ge(e.$slots,"default")],2)}const G5e=Ye(j5e,[["render",W5e]]),z5e={name:"md-bottom-bar-item",props:{mdIcon:String,mdIconSrc:String,mdIconset:String,mdActive:Boolean,disabled:{type:Boolean,default:null},badge:String,badgeOrange:Boolean|String,disableActive:{type:Boolean,default:!1},href:{type:String}},data(){return{active:!1}},watch:{mdActive(e){this.setActive(e)},active(){this.handleClasses()},disableActive(){this.handleClasses()}},methods:{handleClasses(){this.active&&!this.disableActive?this.$el.classList.add("md-active"):this.$el.classList.remove("md-active")},setActive(e,t){t&&t.preventDefault&&t.preventDefault(),e&&this.$parent.setActive(this),t&&this.$emit("click",t)}},mounted(){if(!this.$parent.$el.classList.contains("md-bottom-bar"))throw new Error("You should wrap the md-bottom-bar-item in a md-bottom-bar");this.$parent.addChild(this),this.mdActive&&(this.active=!0)}},q5e=["href","disabled"],K5e={key:0,class:"badge"},X5e={key:1,class:"badge-orange"},Z5e={class:"md-text"};function Y5e(e,t,n,r,i,o){const s=Zr,a=jc("md-ripple");return kn((I(),R("a",{href:n.href,class:"md-bottom-bar-item",disabled:n.disabled||null,onClick:t[0]||(t[0]=l=>o.setActive(!0,l))},[n.badge?(I(),R("i",K5e,he(n.badge),1)):K("",!0),n.badgeOrange?(I(),R("i",X5e,he(n.badgeOrange),1)):K("",!0),n.mdIcon?(I(),Se(s,{key:2,"md-svg":n.mdIcon},null,8,["md-svg"])):K("",!0),O("span",Z5e,[ge(e.$slots,"default")])],8,q5e)),[[a,n.disabled]])}const J5e=Ye(z5e,[["render",Y5e]]),Q5e={props:{activeIndex:{type:Number,required:!1,default:function(){return-1}},navigationItems:{type:Array,required:!1,default:function(){return[]}},allowSideNavigation:{type:Boolean,required:!1,default:function(){return!1}}},inject:["eventBus"],created:function(){this.allowSideNavigation&&this.eventBus.emit("tdl-bottom-navigation--added")},methods:{handleClickItem:function(e,t){typeof e.click=="function"&&e.click(e),this.$emit("item-selected",t)}}};function e3e(e,t,n,r,i,o){const s=J5e,a=G5e,l=kIe;return I(),R("div",{class:Ie(["navigation-bar-container",{"allow-side":e.allowSideNavigation}])},[ae(l,{class:"bottom-nav-bar","md-flex":"","md-row":""},{default:pe(()=>[ae(a,null,{default:pe(()=>[ge(e.$slots,"default",{},()=>[(I(!0),R(Je,null,Dt(e.navigationItems,(u,c)=>(I(),Se(s,{id:`btn_${u.icon}`,onClick:d=>e.handleClickItem(u,c),href:u.route.path,"md-icon":u.icon?u.icon:void 0,"md-iconset":u.iconset?u.iconset:void 0,"disable-active":u.disableActive,"md-active":c===e.activeIndex,key:c,badge:u.badge},{default:pe(()=>[_t(he(u.title),1)]),_:2},1032,["id","onClick","href","md-icon","md-iconset","disable-active","md-active","badge"]))),128))])]),_:3})]),_:3})],2)}const RBe=Ye(Q5e,[["render",e3e]]),t3e={key:0,class:"md-toolbar-container"},n3e={key:1,class:"tdl-divider"},r3e={class:"tdl-brand-logo-wrapper"},i3e=["onClick"],o3e=["alt","src"],s3e=["alt","src"],a3e={key:2,class:"tdl-divider"},l3e={key:3,class:"md-toolbar-container"},u3e={key:4,class:"md-toolbar-container"},PBe=Qe({__name:"tdlAppBar",props:{theme:{default:"default"},logo:{},logoAlt:{},pageTitle:{},menuLabel:{default:"menu"},hasTitleBar:{type:Boolean,default:!1},showHamburgerButton:{type:Boolean,default:!0}},setup(e){const t=e,{getThemeAsset:n}=Ow(Bc(t,"theme")),r=rE(),i=kt("eventBus"),o=ie(!1),s=ie(void 0),a=ie(null),l=fe(()=>[{"tdl-toolbar":!0,"tdl-has-navigation-bar":o.value}]),u=fe(()=>({top:s.value?`${s.value}px`:"0"})),c=()=>i==null?void 0:i.emit("tdl-app-bar--brand-logo-click"),d=()=>i==null?void 0:i.emit("tdl-app-bar--menu-click"),f=()=>o.value=!0;function p(){t.hasTitleBar||r.extra!==void 0?s.value=a.value?-(a.value.offsetHeight+a.value.offsetTop):0:s.value=0}function h(m){document.title=m||document.title}return $n(()=>{h(t.pageTitle),Lt(()=>{p()}),i==null||i.on("tdl-bottom-navigation--added",f)}),Rn(()=>{i==null||i.off("tdl-bottom-navigation--added",f)}),(m,v)=>{const g=Zr,y=Mr,_=Nw,b=$w,S=jc("resize-observer");return I(),Se(b,{class:Ie(l.value),"md-elevation":"1",style:vt(u.value)},{default:pe(()=>[ae(_,{"md-theme":m.theme},{default:pe(()=>[Ee(r)["cross-selling"]?(I(),R("div",t3e,[ge(m.$slots,"cross-selling")])):K("",!0),Ee(r)["cross-selling"]?(I(),R("hr",n3e)):K("",!0),kn((I(),R("div",{class:"md-toolbar-container",ref_key:"brandBar",ref:a},[kn(ae(y,{"aria-label":m.menuLabel,class:"md-icon-button",id:"menu_button",onClick:d},{default:pe(()=>[ae(g,{mdSvg:Ee(PP)},null,8,["mdSvg"])]),_:1},8,["aria-label"]),[[Ci,m.showHamburgerButton!==!1]]),O("div",r3e,[O("a",{href:"#",onClick:tt(c,["prevent"])},[m.logo?(I(),R("img",{key:0,class:"tdl-logo",width:"36",height:"36",alt:m.logoAlt,src:m.logo},null,8,o3e)):(I(),R("img",{key:1,class:"tdl-brand-logo",width:"95",height:"28",alt:m.logoAlt,src:Ee(n)("logoBranded")},null,8,s3e))],8,i3e)]),ge(m.$slots,"action")])),[[S,p]]),m.hasTitleBar?(I(),R("hr",a3e)):K("",!0),m.hasTitleBar?(I(),R("div",l3e,[ge(m.$slots,"default")])):K("",!0),Ee(r).extra?(I(),R("div",u3e,[ge(m.$slots,"extra")])):K("",!0)]),_:3},8,["md-theme"])]),_:3},8,["class","style"])}}});const c3e={name:"md-chip",props:{disabled:Boolean,mdDeletable:Boolean,mdEditable:Boolean,cancelLabel:String,multiple:Boolean},data:()=>({mdiCloseCircle:kP}),mixins:[Hn],computed:{classes(){return{"md-deletable":this.mdDeletable,"md-disabled":this.disabled,"md-editable":this.mdEditable}}}};function d3e(e,t,n,r,i,o){const s=Zr,a=Mr;return I(),R("div",{class:Ie(["md-chip",[e.themeClass,o.classes]]),tabindex:"0"},[O("div",{class:"md-chip-container",onClick:t[0]||(t[0]=l=>!n.disabled&&n.mdEditable&&e.$emit("edit")||n.multiple&&e.$emit("select"))},[ge(e.$slots,"default")]),n.mdDeletable?(I(),Se(a,{key:0,class:"md-icon-button md-dense md-delete",onClick:t[1]||(t[1]=l=>!n.disabled&&e.$emit("delete",l)),onKeyup:t[2]||(t[2]=Ar(l=>!n.disabled&&e.$emit("delete"),["native","delete"])),tabindex:"-1","aria-label":n.cancelLabel},{default:pe(()=>[ae(s,{class:"md-icon-delete",mdSvg:e.mdiCloseCircle},null,8,["mdSvg"])]),_:1},8,["aria-label"])):K("",!0)],2)}const OBe=Ye(c3e,[["render",d3e]]),wD=e=>e&&e.constructor===Array;const f3e=Qe({name:"md-input-container",props:{mdInline:Boolean,mdFixedLabel:Boolean,mdHasPassword:Boolean,mdClearable:Boolean},mixins:[Hn],data(){return{value:"",input:!1,inputInstance:null,showPassword:!1,enableCounter:!1,hasSelect:!1,hasPlaceholder:!1,hasFile:!1,isDisabled:!1,isRequired:!1,isFocused:!1,counterLength:0,inputLength:0,mdiClose:El,mdiEyeOff:xZ,mdiEye:IZ}},computed:{hasValue(){return wD(this.value)?this.value.length>0:Number.isSafeInteger(this.value)?!0:!!this.value},classes(){return{"md-input-inline":this.mdInline,"md-has-password":this.mdHasPassword,"md-clearable":this.mdClearable,"md-has-select":this.hasSelect,"md-has-file":this.hasFile,"md-has-value":this.hasValue||this.mdFixedLabel,"md-input-placeholder":this.hasPlaceholder,"md-input-disabled":this.isDisabled,"md-input-required":this.isRequired,"md-input-focused":this.isFocused}}},methods:{isInput(){return this.input&&this.input.tagName.toLowerCase()==="input"},togglePasswordType(){this.isInput()&&(this.input.type==="password"?(this.input.type="text",this.showPassword=!0):(this.input.type="password",this.showPassword=!1),this.input.focus())},clearInput(){this.inputInstance.$el.value="",this.inputInstance.$emit("update:modelValue",""),this.setValue("")},setValue(e){this.value=e}},mounted(){if(this.input=this.$el.querySelectorAll("input, textarea, select, .md-file")[0],!this.input)throw new Error("Missing input/select/textarea inside md-input-container")}}),p3e={key:0,class:"md-count"};function h3e(e,t,n,r,i,o){const s=Zr,a=Mr;return I(),R("div",{class:Ie(["md-input-container",[e.themeClass,e.classes]])},[ge(e.$slots,"default"),e.enableCounter?(I(),R("span",p3e,he(e.inputLength)+" / "+he(e.counterLength),1)):K("",!0),e.mdHasPassword?(I(),Se(a,{key:1,tabindex:"-1",class:"md-icon-button md-toggle-password",onClick:tt(e.togglePasswordType,["prevent"])},{default:pe(()=>[ae(s,{mdSvg:e.showPassword?e.mdiEyeOff:e.mdiEye},null,8,["mdSvg"])]),_:1},8,["onClick"])):K("",!0),e.mdClearable&&e.hasValue?(I(),Se(a,{key:2,tabindex:"-1",class:"md-icon-button md-clear-input",onClick:e.clearInput},{default:pe(()=>[ae(s,{mdSvg:e.mdiClose},null,8,["mdSvg"])]),_:1},8,["onClick"])):K("",!0)],2)}const TD=Ye(f3e,[["render",h3e]]);const m3e={name:"md-select",props:{name:String,id:String,required:Boolean,multiple:Boolean,modelValue:[String,Boolean,Number,Array],disabled:Boolean,placeholder:String,mdMenuClass:String,mdMenuOptions:Object},mixins:[Hn],data(){return{lastSelected:null,selectedValue:null,selectedText:null,multipleOptions:{},options:{},optionsAmount:0}},computed:{classes(){return{"md-disabled":this.disabled,"md-select-icon":this.hasIcon}},contentClasses(){return this.multiple?"md-multiple "+this.mdMenuClass:this.mdMenuClass},hasIcon(){return this.$slots.icon},valueStyle(){return this.hasIcon?{display:"none"}:{}},multipleOptionsWithValues(){return Object.keys(this.multipleOptions).filter(e=>this.multipleOptions[e]).reduce((e,t)=>
700(e[t]=this.multipleOptions[t],e),{})}},watch:{modelValue(e){this.setTextAndValue(e),this.multiple&&this.selectOptions(e)},disabled(){this.setParentDisabled()},required(){this.setParentRequired()},placeholder(){this.setParentPlaceholder()}},methods:{changeValue(e){this.$emit("update:modelValue",e),this.$emit("change",e)},getSingleValue(e){let t={};return Object.keys(this.options).forEach(n=>{const r=this.options[n];r.value===e&&r.$refs&&(t.value=e,t.text=r.$refs.item.textContent,t.el=r.$refs.item)}),t},getMultipleValue(e){if(wD(this.modelValue)){let t=[];return e.forEach(n=>{Object.keys(this.options).forEach(r=>{const i=this.options[r];if(i.value===n&&i.$refs){let o=i.$refs.item.textContent;this.multipleOptions[r]={value:n,text:o},t.push(o)}})}),{value:e,text:t.join(", ")}}return{}},onOpen(){this.lastSelected&&this.lastSelected.scrollIntoViewIfNeeded&&this.lastSelected.scrollIntoViewIfNeeded(!0),this.$emit("opened")},removeChild(e){this.optionsAmount--;const t=Object.assign({},this.options[e]);if(delete this.options[e],delete this.multipleOptions[e],this.multiple&&this.selectedValue){const n=this.selectedValue.find(i=>t.$refs&&i.name===t.$refs.item.textContent.trim()),r=this.selectedValue.indexOf(n);r!==-1&&this.selectedValue.splice(r,1)}},setParentDisabled(){this.parentContainer.isDisabled=this.disabled},setParentRequired(){this.parentContainer.isRequired=this.required},setParentPlaceholder(){this.parentContainer.hasPlaceholder=!!this.placeholder},selectOptions(e){const t=Object.keys(this.options).map(n=>this.options[n]);if(t&&t.length){let n=t.filter(i=>e.includes(i.value)),r=t.filter(i=>!e.includes(i.value));n.forEach(i=>{i.check=!0}),r.forEach(i=>{i.check=!1})}},setTextAndValue(e){const t=this.multiple?this.getMultipleValue(e):this.getSingleValue(e);this.selectedValue=t.value,this.selectedText=t.text,this.lastSelected=t.el,this.parentContainer&&this.parentContainer.setValue(this.selectedText)},selectMultiple(e,t,n){this.$nextTick(()=>{let r=[];this.multipleOptions[e]={value:t,text:n};for(let i in this.multipleOptions)this.multipleOptions.hasOwnProperty(i)&&this.multipleOptions[i].value&&r.push(this.multipleOptions[i].value);this.changeValue(r)})},selectOption(e,t,n){this.lastSelected=n,this.selectedText=t,this.setTextAndValue(e),this.changeValue(e)}},mounted(){this.parentContainer=Ea(this.$parent,"md-input-container"),this.parentContainer&&(this.setParentDisabled(),this.setParentRequired(),this.setParentPlaceholder(),this.parentContainer.hasSelect=!0),this.setTextAndValue(this.modelValue)},beforeUnmount(){this.parentContainer&&(this.parentContainer.setValue(""),this.parentContainer.hasSelect=!1)}},v3e=["name","id","required","disabled"],g3e=["value"],y3e=["for"],b3e=["value"];function _3e(e,t,n,r,i,o){const s=rIe,a=eIe;return I(),R("div",{class:Ie(["md-select",[e.themeClass,o.classes]])},[ae(a,Un(n.mdMenuOptions,{"md-close-on-select":!n.multiple,onOpen:o.onOpen,onClose:t[0]||(t[0]=l=>e.$emit("closed"))}),{default:pe(()=>[ge(e.$slots,"icon"),O("span",{class:"md-select-value","md-menu-trigger":"",style:vt(o.valueStyle)},he(i.selectedText||n.placeholder),5),ae(s,{class:Ie(["md-select-content",[e.themeClass,o.contentClasses]])},{default:pe(()=>[ge(e.$slots,"default")]),_:3},8,["class"])]),_:3},16,["md-close-on-select","onOpen"]),O("select",{name:n.name,id:n.id,required:n.required,disabled:n.disabled||null,tabindex:"-1"},[n.multiple?K("",!0):(I(),R("option",{key:0,selected:"true",value:i.selectedValue},[O("label",{for:n.id},he(i.selectedText),9,y3e)],8,g3e)),(I(!0),R(Je,null,Dt(o.multipleOptionsWithValues,(l,u)=>(I(),R("option",{key:u,selected:"true",value:l.value},he(l.text),9,b3e))),128))],8,v3e)],2)}const $Be=Ye(m3e,[["render",_3e]]);const S3e={name:"md-checkbox",props:{name:String,modelValue:[String,Boolean,Array],id:String,disabled:{type:Boolean,default:null},mdValue:[String]},mixins:[Hn],data(){return{checked:this.modelValue||!1}},computed:{classes(){return{"md-checked":this.isArray()?this.modelValue.indexOf(this.mdValue)>=0:this.checked,"md-disabled":this.disabled}}},watch:{modelValue(){this.isArray()||(this.checked=!!this.modelValue)}},methods:{toggleCheck(e){if(!this.disabled)if(this.isArray()){let t=this.modelValue.indexOf(this.mdValue);t>=0?this.modelValue.splice(t,1):this.modelValue.push(this.mdValue),this.$emit("change",this.modelValue,e),this.$emit("update:modelValue",this.modelValue,e)}else this.checked=!this.checked,this.$emit("change",this.checked,e),this.$emit("update:modelValue",this.checked,e)},isArray(){return Array.isArray(this.modelValue)}}},E3e=["name","id","disabled","value","checked"],C3e=["for"];function w3e(e,t,n,r,i,o){return I(),R("div",{class:Ie(["md-checkbox",[e.themeClass,o.classes]])},[O("div",{class:"md-checkbox-container",onClick:t[0]||(t[0]=tt((...s)=>o.toggleCheck&&o.toggleCheck(...s),["stop"])),tabindex:"0"},[O("input",{type:"checkbox",name:n.name,id:n.id,disabled:n.disabled||null,value:n.mdValue,checked:i.checked,tabindex:"-1"},null,8,E3e)]),e.$slots.default?(I(),R("label",{key:0,for:n.id||n.name,class:"md-checkbox-label",onClick:t[1]||(t[1]=tt((...s)=>o.toggleCheck&&o.toggleCheck(...s),["prevent","stop"]))},[ge(e.$slots,"default")],8,C3e)):K("",!0)],2)}const T3e=Ye(S3e,[["render",w3e]]),A3e=Qe({name:"md-option",props:{value:[String,Boolean,Number,Object]},data:()=>({parentSelect:{},check:!1,index:0}),computed:{isSelected(){if(this.value&&this.parentSelect.modelValue){let e=this.value.toString();return this.parentSelect.multiple?this.parentSelect.modelValue.indexOf(e)>=0:this.value&&this.parentSelect.modelValue&&e===this.parentSelect.modelValue.toString()}return!1},classes(){return{"md-selected":this.isSelected,"md-checked":this.check}}},methods:{isMultiple(){return this.parentSelect.multiple},setParentOption(){this.isMultiple()?this.check=!this.check:this.parentSelect.selectOption(this.value,this.$refs.item.textContent,this.$el)},selectOption(e){this.disabled||(this.setParentOption(),this.$emit("selected",e))}},watch:{isSelected(e){this.isMultiple()&&(this.check=e)},check(e){e?this.parentSelect.selectMultiple(this.index,this.value,this.$refs.item.textContent):this.parentSelect.selectMultiple(this.index)}},mounted(){if(this.parentSelect=Ea(this.$parent,"md-select"),this.parentContent=Ea(this.$parent,"md-menu-content"),!this.parentSelect)throw new Error("You must wrap the md-option in a md-select");this.parentSelect.optionsAmount++,this.index=this.parentSelect.optionsAmount,this.parentSelect.multipleOptions[this.index]={},this.parentSelect.options[this.index]=this},beforeUnmount(){this.parentSelect&&this.parentSelect.removeChild&&this.parentSelect.removeChild(this.index)}}),I3e={ref:"item"},x3e={key:1,ref:"item"};function L3e(e,t,n,r,i,o){const s=T3e,a=wIe;return I(),Se(a,{class:Ie(["md-option",e.classes]),onSelected:e.selectOption,tabindex:"-1"},{default:pe(()=>[e.parentSelect.multiple?(I(),Se(s,{key:0,class:"md-primary",modelValue:e.check,"onUpdate:modelValue":t[0]||(t[0]=l=>e.check=l)},{default:pe(()=>[O("span",I3e,[ge(e.$slots,"default")],512)]),_:3},8,["modelValue"])):(I(),R("span",x3e,[ge(e.$slots,"default")],512))]),_:3},8,["class","onSelected"])}const NBe=Ye(A3e,[["render",L3e]]),k3e=e=>{const t={};for(const r of e){const i=r.type==="html"?"htmlAttrs":r.type==="body"?"bodyAttrs":r.type;
vendor: 6,130 bytes, lines 700-704
700if(typeof i!="string")break;var n=void 0;r.children&&i==="title"&&(n=Array.isArray(r.children)?r.children[0].children:r.children),Array.isArray(t[i])?t[i].push(r.props):i==="title"?t.title=n:t[i]=[r.props]}return t},HBe=Qe({setup(e,{slots:t}){bi(()=>{t.default&&XW(k3e(t.default()))})},render(){}});/*! 701 * pinia v3.0.4 702 * (c) 2025 Eduardo San Martin Morote 703 * @license MIT 704 */let AD;const E0=e=>AD=e,ID=Symbol();function lS(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var bf;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(bf||(bf={}));function DBe(){const e=Dg(!0),t=e.run(()=>ie({}));let n=[],r=[];const i=Nl({install(o){E0(i),i._a=o,o.provide(ID,i),o.config.globalProperties.$pinia=i,r.forEach(s=>n.push(s)),r=[]},use(o){return this._a?n.push(o):r.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return i}const xD=()=>{};function Ok(e,t,n,r=xD){e.add(t);const i=()=>{e.delete(t)&&r()};return!n&&DS()&&KM(i),i}function vu(e,...t){e.forEach(n=>{n(...t)})}const M3e=e=>e(),$k=Symbol(),fb=Symbol();function uS(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,r)=>e.set(r,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const r=t[n],i=e[n];lS(i)&&lS(r)&&e.hasOwnProperty(n)&&!qt(r)&&!Ti(r)?e[n]=uS(i,r):e[n]=r}return e}const R3e=Symbol();function P3e(e){return!lS(e)||!Object.prototype.hasOwnProperty.call(e,R3e)}const{assign:Bs}=Object;function O3e(e){return!!(qt(e)&&e.effect)}function $3e(e,t,n,r){const{state:i,actions:o,getters:s}=t,a=n.state.value[e];let l;function u(){a||(n.state.value[e]=i?i():{});const c=c4(n.state.value[e]);return Bs(c,o,Object.keys(s||{}).reduce((d,f)=>(d[f]=Nl(fe(()=>{E0(n);const p=n._s.get(e);return s[f].call(p,p)})),d),{}))}return l=LD(e,u,t,n,r,!0),l}function LD(e,t,n={},r,i,o){let s;const a=Bs({actions:{}},n),l={deep:!0};let u,c,d=new Set,f=new Set,p;const h=r.state.value[e];!o&&!h&&(r.state.value[e]={}),ie({});let m;function v(w){let T;u=c=!1,typeof w=="function"?(w(r.state.value[e]),T={type:bf.patchFunction,storeId:e,events:p}):(uS(r.state.value[e],w),T={type:bf.patchObject,payload:w,storeId:e,events:p});const A=m=Symbol();Lt().then(()=>{m===A&&(u=!0)}),c=!0,vu(d,T,r.state.value[e])}const g=o?function(){const{state:T}=n,A=T?T():{};this.$patch(L=>{Bs(L,A)})}:xD;function y(){s.stop(),d.clear(),f.clear(),r._s.delete(e)}const _=(w,T="")=>{if($k in w)return w[fb]=T,w;const A=function(){E0(r);const L=Array.from(arguments),x=new Set,k=new Set;function M(H){x.add(H)}function z(H){k.add(H)}vu(f,{args:L,name:A[fb],store:S,after:M,onError:z});let P;try{P=w.apply(this&&this.$id===e?this:S,L)}catch(H){throw vu(k,H),H}return P instanceof Promise?P.then(H=>(vu(x,H),H)).catch(H=>(vu(k,H),Promise.reject(H))):(vu(x,P),P)};return A[$k]=!0,A[fb]=T,A},b={_p:r,$id:e,$onAction:Ok.bind(null,f),$patch:v,$reset:g,$subscribe(w,T={}){const A=Ok(d,w,T.detached,()=>L()),L=s.run(()=>ut(()=>r.state.value[e],x=>{(T.flush==="sync"?c:u)&&w({storeId:e,type:bf.direct,events:p},x)},Bs({},l,T)));return A},$dispose:y},S=mr(b);r._s.set(e,S);const E=(r._a&&r._a.runWithContext||M3e)(()=>r._e.run(()=>(s=Dg()).run(()=>t({action:_}))));for(const w in E){const T=E[w];if(qt(T)&&!O3e(T)||Ti(T))o||(h&&P3e(T)&&(qt(T)?T.value=h[w]:uS(T,h[w])),r.state.value[e][w]=T);else if(typeof T=="function"){const A=_(T,w);E[w]=A,a.actions[w]=T}}return Bs(S,E),Bs(St(S),E),Object.defineProperty(S,"$state",{get:()=>r.state.value[e],set:w=>{v(T=>{Bs(T,w)})}}),r._p.forEach(w=>{Bs(S,s.run(()=>w({store:S,app:r._a,pinia:r,options:a})))}),h&&o&&n.hydrate&&n.hydrate(S.$state,h),u=!0,c=!0,S}/*! #__NO_SIDE_EFFECTS__ */function VBe(e,t,n){let r;const i=typeof t=="function";r=i?n:t;function o(s,a){const l=$4();return s=s||(l?kt(ID,null):null),s&&E0(s),s=AD,s._s.has(e)||(i?LD(e,t,r,s):$3e(e,r,s)),s._s.get(e)}return o.$id=e,o}function FBe(e){const t=St(e),n={};for(const r in t){const i=t[r];i.effect?n[r]=fe({get:()=>e[r],set(o){e[r]=o}}):(qt(i)||Ti(i))&&(n[r]=Bc(e,r))}return n}const N3e={name:"md-list-expand"},H3e={class:"md-list-expand-container"};function D3e(e,t,n,r,i,o){return I(),R("div",H3e,[ge(e.$slots,"default")])}const Xw=Ye(N3e,[["render",D3e]]);const V3e={name:"md-avatar",mixins:[Hn],props:{onlineStatus:{type:String}}},F3e={class:"md-avatar-container"},B3e={key:0,class:"custom-badge"},U3e={key:1},j3e={key:0,class:"onlinestatus online"},W3e={key:1,class:"onlinestatus offline"};function G3e(e,t,n,r,i,o){return I(),R("div",F3e,[O("div",{class:Ie(["md-avatar",[e.themeClass]])},[ge(e.$slots,"default")],2),e.$slots.customBadge?(I(),R("div",B3e,[ge(e.$slots,"customBadge")])):(I(),R("div",U3e,[n.onlineStatus==="online"?(I(),R("div",j3e)):n.onlineStatus==="offline"?(I(),R("div",W3e)):K("",!0)]))])}const BBe=Ye(V3e,[["render",G3e]]);const z3e={name:"md-tooltip",props:{mdDirection:{type:String,default:"bottom"},mdDelay:{type:String,default:"0"},className:{type:String}},data:()=>({active:!1,parentClass:null,transitionOff:!1,topPosition:!1,leftPosition:!1,showTooltip:!1,timeoutOpen:0}),computed:{classes(){const e={"md-active":this.active,"md-transition-off":this.transitionOff,"md-tooltip-top":this.mdDirection==="top","md-tooltip-right":this.mdDirection==="right","md-tooltip-bottom":this.mdDirection==="bottom","md-tooltip-left":this.mdDirection==="left"};return this.parentClass&&(e[this.parentClass]=!0),e},style(){return{"transition-delay":this.mdDelay+"ms",top:this.topPosition+"px",left:this.leftPosition+"px"}}},watch:{mdDirection(){this.calculateTooltipPosition()}},methods:{calculateTooltipPosition(){let e=this.parentElement.getBoundingClientRect(),t={};const n=window.innerWidth-this.$refs.tooltipElement.offsetWidth+70,r=e.left+e.width/2,i=r>n?n:r;switch(this.mdDirection){case"top":t.top=e.top-this.$refs.tooltipElement.offsetHeight,t.left=i;break;case"right":t.top=e.top,t.left=e.left+e.width;break;case"bottom":t.top=e.bottom,t.left=i;break;case"left":t.top=e.top,t.left=e.left-this.$refs.tooltipElement.offsetWidth;break;default:console.warn(`Invalid ${this.mdDirection} option to md-direction option`)}
704this.topPosition=t.top,this.leftPosition=t.left},generateTooltipClasses(){let e=[];[...this.parentElement.classList].forEach(t=>{t.indexOf("md-")>=0&&t!=="md-active"&&e.push(t+"-tooltip")}),this.parentClass=e.join(" ")},open(){this.showTooltip=!0,this.$nextTick(()=>{getComputedStyle(this.$refs.tooltipElement).top,this.transitionOff=!0,this.generateTooltipClasses(),this.calculateTooltipPosition(),this.timeoutOpen=window.setTimeout(()=>{this.transitionOff=!1,this.active=!0,this.timeoutOpen=0},10)})},close(){this.timeoutOpen&&(clearTimeout(this.timeoutOpen),this.timeoutOpen=0),this.active=!1}},mounted(){this.$nextTick(()=>{p_||(this.parentElement=this.$el.parentNode,this.parentElement&&(this.parentElement.addEventListener("mouseenter",this.open),this.parentElement.addEventListener("focus",this.open),this.parentElement.addEventListener("mouseleave",this.close),this.parentElement.addEventListener("blur",this.close)))})},beforeUnmount(){p_||(this.active=!1,this.parentElement&&(this.parentElement.removeEventListener("mouseenter",this.open),this.parentElement.removeEventListener("focus",this.open),this.parentElement.removeEventListener("mouseleave",this.close),this.parentElement.removeEventListener("blur",this.close)))}};function q3e(e,t,n,r,i,o){return I(),Se(ys,{to:"#teleported"},[e.showTooltip?(I(),R("span",{key:0,class:Ie(["md-tooltip",[o.classes,n.className]]),style:vt(o.style),ref:"tooltipElement"},[ge(e.$slots,"default")],6)):K("",!0)])}const UBe=Ye(z3e,[["render",q3e]]);var _f=new Map;function K3e(e){var t=_f.get(e);t&&t.destroy()}function X3e(e){var t=_f.get(e);t&&t.update()}var Vd=null;typeof window>"u"?((Vd=function(e){return e}).destroy=function(e){return e},Vd.update=function(e){return e}):((Vd=function(e,t){return e&&Array.prototype.forEach.call(e.length?e:[e],function(n){return function(r){if(r&&r.nodeName&&r.nodeName==="TEXTAREA"&&!_f.has(r)){var i,o=null,s=window.getComputedStyle(r),a=(i=r.value,function(){u({testForHeightReduction:i===""||!r.value.startsWith(i),restoreTextAlign:null}),i=r.value}),l=(function(d){r.removeEventListener("autosize:destroy",l),r.removeEventListener("autosize:update",c),r.removeEventListener("input",a),window.removeEventListener("resize",c),Object.keys(d).forEach(function(f){return r.style[f]=d[f]}),_f.delete(r)}).bind(r,{height:r.style.height,resize:r.style.resize,textAlign:r.style.textAlign,overflowY:r.style.overflowY,overflowX:r.style.overflowX,wordWrap:r.style.wordWrap});r.addEventListener("autosize:destroy",l),r.addEventListener("autosize:update",c),r.addEventListener("input",a),window.addEventListener("resize",c),r.style.overflowX="hidden",r.style.wordWrap="break-word",_f.set(r,{destroy:l,update:c}),c()}function u(d){var f,p,h=d.restoreTextAlign,m=h===void 0?null:h,v=d.testForHeightReduction,g=v===void 0||v,y=s.overflowY;if(r.scrollHeight!==0&&(s.resize==="vertical"?r.style.resize="none":s.resize==="both"&&(r.style.resize="horizontal"),g&&(f=function(b){for(var S=[];b&&b.parentNode&&b.parentNode instanceof Element;)b.parentNode.scrollTop&&S.push([b.parentNode,b.parentNode.scrollTop]),b=b.parentNode;return function(){return S.forEach(function(C){var E=C[0],w=C[1];E.style.scrollBehavior="auto",E.scrollTop=w,E.style.scrollBehavior=null})}}(r),r.style.height=""),p=s.boxSizing==="content-box"?r.scrollHeight-(parseFloat(s.paddingTop)+parseFloat(s.paddingBottom)):r.scrollHeight+parseFloat(s.borderTopWidth)+parseFloat(s.borderBottomWidth),s.maxHeight!=="none"&&p>parseFloat(s.maxHeight)?(s.overflowY==="hidden"&&(r.style.overflow="scroll"),p=parseFloat(s.maxHeight)):s.overflowY!=="hidden"&&(r.style.overflow="hidden"),r.style.height=p+"px",m&&(r.style.textAlign=m),f&&f(),o!==p&&(r.dispatchEvent(new Event("autosize:resized",{bubbles:!0})),o=p),y!==s.overflow&&!m)){var _=s.textAlign;s.overflow==="hidden"&&(r.style.textAlign=_==="start"?"end":"start"),u({restoreTextAlign:_,testForHeightReduction:!0})}}function c(){u({testForHeightReduction:!0,restoreTextAlign:null})}}(n)}),e}).destroy=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],K3e),e},Vd.update=function(e){return e&&Array.prototype.forEach.call(e.length?e:[e],X3e),e});var Fd=Vd;const kD={props:{modelValue:[String,Number],modelModifiers:{},debounce:{type:Number,default:100},disabled:Boolean,required:Boolean,maxlength:[Number,String],name:String,placeholder:String,readonly:Boolean,scrollParam
704s:{type:Object,default:()=>({enable:!1,config:{}})}},data(){return{timeout:0,inputValue:""}},watch:{modelValue(){this.inputValue=this.modelValue,this.setParentValue()},disabled(){this.setParentDisabled()},required(){this.setParentRequired()},placeholder(){this.setParentPlaceholder()},maxlength(){this.handleMaxLength()}},methods:{handleMaxLength(){this.parentContainer.enableCounter=this.maxlength>0,this.parentContainer.counterLength=this.maxlength},setParentValue(e){if(this.parentContainer){const t=e||this.inputValue;this.parentContainer.setValue(t),this.parentContainer.inputLength=t?t.length:0}},setParentDisabled(){this.parentContainer&&(this.parentContainer.isDisabled=this.disabled)},setParentRequired(){this.parentContainer.isRequired=this.required},setParentPlaceholder(){this.parentContainer.hasPlaceholder=!!this.placeholder},onFocus(e){this.parentContainer&&(this.parentContainer.isFocused=!0)},scrollIfNeeded(e){const{target:t}=e;Element.prototype.scrollIntoView?t.scrollIntoView(this.scrollParams.config):setTimeout(function(){t.focus(),this.$emit("focus",this.inputValue,e)},200)},onBlur(e){this.parentContainer.isFocused=!1},onChange(e){var t;(t=this.modelModifiers)!=null&&t.lazy&&this.$emit("update:modelValue",this.inputValue)},onUpdateValue(e){var t;this.debounce&&this.debounce>0?(this.timeout&&window.clearTimeout(this.timeout),this.timeout=window.setTimeout(()=>{this.$emit("update:modelValue",e)},this.debounce)):(t=this.modelModifiers)!=null&&t.lazy||this.$emit("update:modelValue",e),this.setParentValue(e)}},mounted(){if(this.inputValue=this.modelValue,this.$el.value=this.modelValue,this.parentContainer=Ea(this.$parent,"md-input-container"),!this.parentContainer)throw new Error("You should wrap it in a md-input-container");this.parentContainer.inputInstance=this,this.setParentDisabled(),this.setParentRequired(),this.setParentPlaceholder(),this.handleMaxLength(),this.setParentValue()}};function Nk(){this.$emit("resized",this.$el.clientHeight)}const Z3e={name:"md-textarea",mixins:[kD],props:{maxHeight:{type:Number}},watch:{inputValue(e,t){this.onUpdateValue(this.inputValue||"")},modelValue(){this.$nextTick(()=>{setTimeout(()=>Fd.update(this.$el),200)})}},methods:{},mounted(){this.$nextTick(()=>{this.$el.getAttribute("rows")||this.$el.setAttribute("rows","1"),this.maxHeight&&(this.$el.style.maxHeight=`${this.maxHeight}px`),Fd(this.$el),this.$el.addEventListener("autosize:resized",Nk.bind(this)),setTimeout(()=>Fd.update(this.$el),200)})},beforeUnmount(){this.$el.removeEventListener("autosize:resized",Nk.bind(this)),Fd.destroy(this.$el)}},Y3e=["disabled","required","placeholder","maxlength","readonly","scrollParams"];function J3e(e,t,n,r,i,o){return kn((I(),R("textarea",{class:"md-input","onUpdate:modelValue":t[0]||(t[0]=s=>e.inputValue=s),disabled:e.disabled||null,required:e.required,placeholder:e.placeholder,maxlength:e.maxlength,readonly:e.readonly,scrollParams:e.scrollParams,onChange:t[1]||(t[1]=(...s)=>e.onChange&&e.onChange(...s)),onFocus:t[2]||(t[2]=(...s)=>e.onFocus&&e.onFocus(...s)),onBlur:t[3]||(t[3]=(...s)=>e.onBlur&&e.onBlur(...s))},null,40,Y3e)),[[bl,e.inputValue]])}const Q3e=Ye(Z3e,[["render",J3e]]);function Hk(e,t){return(e<t?e-t:-e+t)/2}const exe={props:{media:{}},data(){return{yPos:Number,xPos:Number,imageWidth:Number,imageHeight:Number,containerWidth:272,containerHeight:Number,imgMetadata:{},startX:Number,startY:Number,initialMouseX:Number,initialMouseY:Number,parentBoundaries:Object,limit:24,showFocalReticle:!1,mdiImageFilterCenterFocusStrong:PZ,mdiDelete:Pd}},computed:{imageDimensions(){let e=0,t=0;this.imageHeight<272&&(this.imageWidth=272*272/this.imageHeight,this.imageHeight=272),this.imageHeight>272&&(e=Hk(272,this.imageHeight)),this.imageWidth>272&&(t=Hk(272,this.imageWidth));const n=this.imageHeight,r=this.imageWidth,i=this.imageHeight+e,o=this.imageWidth+t;return{height:`${n}px`,width:`${r}px`,position:"absolute","z-index":0,top:`${i}px`,left:`${o}px`,"margin-top":`-${this.imageHeight}px`,"margin-left":`-${this.imageWidth}px`}},containerDimensions(){return{width:"272px",height:"272px",overflow:"hidden"}},imgClass(){return["media-focal__image",!Av&&this.media.metadata.orientation&&this.media.metadata.orientation>1?`exif-${this.media.metadata.orientation}`:"exif-0"]}},methods:{setDimensions(){var e,t;if((e=this.media.metadata)!=null&&e.width&&((t=this.media.metadata)!=null&&t.height)){const n=this.media.metadata.width,r=this.media.metadata.height;isNaN(this.media.metadata.orientation)||this.media.metadata.orientation<=4?(this.imageHeight=r/n*this.containerWidth,this.imageWidth=this.containerWidth,this.containerHeight=this.imageHeight):Av?(this.imageWidth=this.containerWidth,this.imageHeight=r>n?this.containerHeight:this.imageWidth,this.containerHeight=r/n*this.containerWidth):(this.imageHeight=this.containerWidth,this.imageWidth=r/n*this.containerWidth,this.containerHeight=this.imageWidth),this.setDefaultFocalPoint()}else this.getDimensionsMetadata()},getDimensionsMetadata(){let e=new Image;e.onload=()=>{this.imageWidth=this.containerWidth,this.imgMetadata.width=e.width,this.imageHeight=e.height/e.width*this.containerWidth,this.containerHeight=this.imageHeight,this.imgMetadata.height=e.height,e=void 0,this.setDefaultFocalPoint()},e.src=this.media.address},setDefaultFocalPoint(){this.media.metadata&&this.media.metadata.focalPointX?(this.imgMetadata.focalPointX=this.media.metadata.focalPointX,this.xPos=this.media.metadata.focalPointX*this.containerWidth):(this.imgMetadata.focalPointX=.5,this.xPos=this.containerWidth/2),this.media.metadata&&this.media.metadata.focalPointY?(this.imgMetadata.focalPointY=this.media.metadata.focalPointY,this.yPos=this.media.metadata.focalPointY*this.containerHeight):(this.yPos=this.containerHeight/2,this.imgMetadata.focalPointY=.5),this.emitMetadata()},copyMetadata(){this.imgMetadata=this.media.metadata},deleteMedia(e){this.$emit("delete-media")}
704,emitMetadata(){this.media.metadata=this.imgMetadata,this.$emit("image-metadata",this.media)},handleMovement(e){e.preventDefault(),e.stopPropagation();const t=e.clientX||e.touches[0].clientX,n=e.clientY||e.touches[0].clientY,r=this.startX+(t-this.initialMouseX),i=this.startY+(n-this.initialMouseY),o=this.parentBoundaries.right-this.limit-this.parentBoundaries.left,s=this.parentBoundaries.bottom-this.limit-this.parentBoundaries.top;return i>=this.limit&&i<=s&&(this.yPos=i,this.imgMetadata.focalPointY=i/this.containerHeight),r>=this.limit&&r<=o&&(this.xPos=r,this.imgMetadata.focalPointX=r/this.containerWidth),this.emitMetadata(),!1},handleFocalClick(e){if(e.srcElement.classList.contains("media-focal")){this.parentBoundaries=this.$refs.focalContainer.getBoundingClientRect();const t=e.offsetX,n=e.offsetY;this.yPos=n,this.imgMetadata.focalPointY=n/this.containerHeight,this.xPos=t,this.imgMetadata.focalPointX=t/this.containerWidth,this.emitMetadata()}return!1},stopMovementMouse(e){e.stopPropagation(),ti.removeEventListener("mousemove",this.handleMovement),ti.removeEventListener("mouseup",this.stopMovementMouse)},stopMovementTouch(e){e.stopPropagation(),ti.removeEventListener("touchmove",this.handleMovement),ti.removeEventListener("touchend",this.stopMovementTouch)},focalHandlerInit(e,t){this.parentBoundaries=this.$refs.focalContainer.getBoundingClientRect(),this.startX=this.$refs.focalReticle.offsetLeft,this.startY=this.$refs.focalReticle.offsetTop,this.initialMouseX=e,this.initialMouseY=t},focalHandlerTouch(e){return this.focalHandlerInit(e.touches[0].clientX,e.touches[0].clientY),ti.addEventListener("touchmove",this.handleMovement),ti.addEventListener("touchend",this.stopMovementTouch),!1},focalHandlerMouse(e){return this.focalHandlerInit(e.clientX,e.clientY),ti.addEventListener("mousemove",this.handleMovement),ti.addEventListener("mouseup",this.stopMovementMouse),!1}},created(){this.copyMetadata(),this.setDimensions()}};const txe=["src"];function nxe(e,t,n,r,i,o){const s=Zr;return I(),R("div",null,[e.media.address?(I(),R("div",{key:0,class:"media-focal scrim scrim_top-bottom-black",style:vt(e.containerDimensions),ref:"focalContainer",onClick:t[5]||(t[5]=tt((...a)=>e.handleFocalClick&&e.handleFocalClick(...a),["prevent"]))},[O("div",{class:"media-focal__tools",onDragover:t[0]||(t[0]=tt(()=>{},["prevent"]))},[ae(s,{class:"media-focal__tools-icon",onClick:e.deleteMedia,mdSvg:e.mdiDelete},null,8,["onClick","mdSvg"])],32),e.showFocalReticle?(I(),R("span",{key:0,style:vt({top:e.yPos+"px",left:e.xPos+"px"}),onMousedown:t[1]||(t[1]=tt((...a)=>e.focalHandlerMouse&&e.focalHandlerMouse(...a),["prevent"])),onTouchstart:t[2]||(t[2]=tt((...a)=>e.focalHandlerTouch&&e.focalHandlerTouch(...a),["prevent"])),class:"media-focal__reticle",ref:"focalReticle"},[ae(s,{class:"media-focal__reticle-icon",mdSvg:e.mdiImageFilterCenterFocusStrong},null,8,["mdSvg"])],36)):K("",!0),e.imgClass&&e.imgClass.length===2?(I(),R("img",{key:1,draggable:"false",onMousedown:t[3]||(t[3]=tt(()=>{},["prevent"])),onClick:t[4]||(t[4]=tt(()=>{},["prevent"])),class:Ie(e.imgClass),style:vt(e.imageDimensions),src:e.media.address},null,46,txe)):K("",!0)],4)):K("",!0)])}const rxe=Ye(exe,[["render",nxe]]),Dk={setForMultipart:function(e){const t=new FormData;return t.append("file",e),t},getDimensionsMetadata:function(e,t,n){const r={};return!n||n<=1||n>=1&&n<=4?(r.width=e,r.height=t):(r.width=t,r.height=e),r.orientation=n||-1,r},crop:function(e,t,n="profilePic"){const r=this.getCropPoint(e),i=this.getImagePortion(t,r.size,r.size,r.x,r.y,1),o=new FormData,s=n.replace(" ","")+new Date().getTime()+".jpg";return o.append("file",this.dataURLtoBlob(i),s),o},getCropPoint:function(e){const t={};t.size=Math.min(e.width,e.height);const n=t.size/2,r={x:e.focalPointX*e.width,y:e.focalPointY*e.height},i={x:r.x-n,y:r.y-n};return t.x=this.getStartPoint(i.x,t.size,e.width),t.y=this.getStartPoint(i.y,t.size,e.height),t},getStartPoint:function(e,t,n){const r=t+e,i=r>n,o=e>=0;let s=0;if(o&&!i)s=e;else if(o&&i){const a=e-(r-n);s=a>=0?a:0}return s},getImagePortion:function(e,t,n,r,i,o){let s;const a=document.createElement("canvas"),l=a.getContext("2d");a.width=t,a.height=n;const u=document.createElement("canvas"),c=u.getContext("2d");u.width=e.width,u.height=e.height,c.drawImage(e,0,0),l.drawImage(u,r,i,t*o,n*o,0,0,t,n);const d=a.toDataURL("image/jpeg",1);return d.split(",")[1].length>5242880?s=a.toDataURL("image/jpeg",.85):s=d,s},dataURLtoBlob:function(e){const t=e.split(","),n=t[0].match(/:(.*?);/)[1],r=atob(t[1]);let i=r.length;const o=new Uint8Array(i);for(;i--;)o[i]=r.charCodeAt(i);return new Blob([o],{type:n})}},ixe=e=>{const t=e.querySelector(".md-input");if(t){if(t.className.includes("typeahead")&&(screen==null?void 0:screen.width)<=700)return;t.focus()}},jBe=(e,t=24)=>{if(e.length>t){const n=e.split(".");return`${oJ(n[0],{length:24,separator:" "})}.${n[n.length-1]}`}return e},oxe={getOrientation:function(e,t){const n=new FileReader;n.onload=r=>{const i=new DataView(r.target.result);if(i.getUint16(0,!1)!==65496)return t(-2);const o=i.byteLength;let s=2;
704for(;s<o;){const a=i.getUint16(s,!1);if(s+=2,a===65505){if(i.getUint32(s+=2,!1)!==1165519206)return t(-1);const l=i.getUint16(s+=6,!1)===18761;s+=i.getUint32(s+4,l);const u=i.getUint16(s,l);s+=2;for(let c=0;c<u;c++)if(i.getUint16(s+c*12,l)===274)return t(i.getUint16(s+c*12+8,l))}else{if((a&65280)!==65280)break;s+=i.getUint16(s,!1)}}return t(-1)},n.readAsArrayBuffer(e.slice(0,65536))}},sxe=()=>(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)<720,axe="eventBus",lxe=Bl,nm=450,pb=450,rm=4e6,uxe={inject:[axe],props:{modelValue:{},includeCaption:Boolean,uploadBoxText:String,showIcon:Boolean},data:function(){var e;return{inputValue:(e=this.modelValue)!=null&&e.address?{...this.modelValue}:"",mediaFile:"",loading:!1,firstEmition:!0,errorBoxUploader:"",mdiImageArea:RZ}},watch:{modelValue:{handler(){var e;this.inputValue=(e=this.modelValue)!=null&&e.address?{...this.modelValue}:""},deep:!0},mediaFile:function(){this.emitMedia()}},computed:{media:function(){return this.inputValue&&this.inputValue.address&&this.inputValue.metadata?this.inputValue:""},getPrimaryMessage:function(){let e="Click or drop file here to upload";return this.isUploading()&&(e=""),e},getRestriction:function(){let e="JPG or PNG files larger than "+nm+"px per side, and smaller than "+rm/1e6+" MB";const t=this.isUploading();return t&&(e=t.progress<100?"("+t.progress+"%)":"Uploading . . ."),e}},mounted:function(){this.autosizeTextarea()},methods:{autosizeTextarea:function(){this.inputValue&&this.inputValue.description&&setTimeout(()=>Fd(this.$refs.captionTextarea.$el),200)},emitMedia:function(){const e=this.inputValue||{};this.firstEmition&&(e.first=!0,this.firstEmition=!1),this.mediaFile!==""&&(e.file=Dk.setForMultipart(this.mediaFile)),this.$emit("update:modelValue",e)},emitMessage:function(e){this.eventBus.emit("deferred-message",{duration:4e3,message:e})},dragOverBox:function(e){e.dataTransfer.dropEffect="copy"},triggerInput:function(){this.$refs.mediaInput.click()},fileIsValid:function(e){return e.match("image/png")||e.match("image/jpeg")},fileValidSize:function(e){return e.size<rm},handleInputChange:function(e){var n,r;this.loading=!0,this.errorBoxUploader="";const t=e.dataTransfer?(n=e.dataTransfer.files)==null?void 0:n[0]:(r=e.target.files)==null?void 0:r[0];if(t&&!this.fileIsValid(t.type)){this.errorBoxUploader="Invalid format",this.emitMessage("Invalid format"),this.loading=!1;return}else if(t&&!this.fileValidSize(t)){this.errorBoxUploader="File is too big. You can upload images up to "+rm/1e6+" MB",this.emitMessage("File is too big. You can upload images up to "+rm/1e6+" MB"),this.loading=!1;return}else this.checkSetImage(lxe.URL.createObjectURL(t),t)},checkSetImage:function(e,t){let n=new Image;n.onload=()=>{n.width>=nm&&n.height>=pb?this.setImageAddress(e,n,t):(this.errorBoxUploader=`Images should be at least ${nm}px and ${pb}px`,this.emitMessage(`Images should be at least ${nm} and ${pb}`),this.loading=!1),n=void 0},n.src=e},setImageAddress:function(e,t,n){oxe.getOrientation(n,r=>{this.inputValue={...this.inputValue,metadata:Dk.getDimensionsMetadata(t.width,t.height,r),address:e},this.loading=!1,this.mediaFile=n})},deleteMedia:function(){this.medaFile="",this.inputValue="",this.$emit("update:modelValue",{deleted:!0})},focalMetadata:function(e){this.inputValue={...e},this.emitMedia()},isUploading:function(){return this.inputValue&&this.inputValue[0]}}};const cxe={class:"media-manager"},dxe={class:"md-body-1 upload-box_title"},fxe={class:"media-manager__upload-options"},pxe={class:"md-body-1 upload-box_caption primaryMessage"},hxe={class:"md-body-1 upload-box_caption"},mxe={class:"md-body-1 upload-box_caption file-restriction"},vxe={key:0,class:"caption-input"};function gxe(e,t,n,r,i,o){const s=Zr,a=Kw,l=rxe,u=Q3e,c=TD;return I(),R("div",cxe,[O("span",dxe,he(e.uploadBoxText),1),O("div",fxe,[e.showIcon?(I(),Se(s,{key:0,class:"media-manager__icon",mdSvg:e.mdiImageArea},null,8,["mdSvg"])):K("",!0),!e.loading&&(!e.inputValue||!e.inputValue.address)?(I(),R("div",{key:1,class:"upload-box",onDragover:t[1]||(t[1]=tt((...d)=>e.dragOverBox&&e.dragOverBox(...d),["prevent"])),onDrop:t[2]||(t[2]=tt((...d)=>e.handleInputChange&&e.handleInputChange(...d),["prevent"])),onClick:t[3]||(t[3]=(...d)=>e.triggerInput&&e.triggerInput(...d))},[O("p",pxe,he(e.getPrimaryMessage),1),O("p",hxe,he(e.getRestriction),1),O("span",mxe,he(e.errorBoxUploader),1),O("input",{class:"upload-box__img-input",type:"file",accept:"image/*",onChange:t[0]||(t[0]=tt((...d)=>e.handleInputChange&&e.handleInputChange(...d),["prevent"])),ref:"mediaInput"},null,544)],32)):K("",!0),e.loading?(I(),Se(a,{key:2,"md-indeterminate":"",class:"media-manager_spinner"})):K("",!0),e.inputValue!==""?(I(),Se(l,{key:3,media:e.inputValue,onDeleteMedia:e.deleteMedia,onImageMetadata:t[4]||(t[4]=d=>e.focalMetadata(d))},null,8,["media","onDeleteMedia"])):K("",!0)]),e.inputValue!==""&&e.includeCaption?(I(),R("div",vxe,[ae(c,null,{default:pe(()=>[O("label",null,he(e.$t("Image caption (optional)")),1),ae(u,{modelValue:e.inputValue.description,"onUpdate:modelValue":t[5]||(t[5]=d=>e.inputValue.description=d),ref:"captionTextarea"},null,8,["modelValue"])]),_:1})])):K("",!0)])}const WBe=Ye(uxe,[["render",gxe]]);
704var MD={exports:{}};/*! 705 * Clamp.js 0.7.0 706 * 707 * Copyright 2011-2013, Joseph Schmitt http://joe.sh 708 * Released under the WTFPL license 709 * http://sam.zoy.org/wtfpl/ 710 */(function(e,t){(function(n,r){e.exports=r()})(zi,function(){function n(r,i){i=i||{};var o=window,s={clamp:i.clamp||2,useNativeClamp:typeof i.useNativeClamp<"u"?i.useNativeClamp:!0,splitOnChars:i.splitOnChars||[".","-","â","â"," "],animate:i.animate||!1,truncationChar:i.truncationChar||"â¦",truncationHTML:i.truncationHTML},a=r.style,l=r.innerHTML,u=typeof r.style.webkitLineClamp<"u",c=s.clamp,d=c.indexOf&&(c.indexOf("px")>-1||c.indexOf("em")>-1),f;s.truncationHTML&&(f=document.createElement("span"),f.innerHTML=s.truncationHTML);function p(A,L){return o.getComputedStyle||(o.getComputedStyle=function(x,k){return this.el=x,this.getPropertyValue=function(M){var z=/(\-([a-z]){1})/g;return M=="float"&&(M="styleFloat"),z.test(M)&&(M=M.replace(z,function(){return arguments[2].toUpperCase()})),x.currentStyle&&x.currentStyle[M]?x.currentStyle[M]:null},this}),o.getComputedStyle(A,null).getPropertyValue(L)}function h(A){var L=A||r.clientHeight,x=v(r);return Math.max(Math.floor(L/x),0)}function m(A){var L=v(r);return L*A}function v(A){var L=p(A,"line-height");return L=="normal"&&(L=parseInt(p(A,"font-size"))*1.2),parseInt(L)}var g=s.splitOnChars.slice(0),y=g[0],_,b;function S(A){return A.lastChild.children&&A.lastChild.children.length>0?S(Array.prototype.slice.call(A.children).pop()):!A.lastChild||!A.lastChild.nodeValue||A.lastChild.nodeValue===""||A.lastChild.nodeValue==s.truncationChar?(A.lastChild.parentNode.removeChild(A.lastChild),S(r)):A.lastChild}function C(A,L){if(!L)return;function x(){g=s.splitOnChars.slice(0),y=g[0],_=null,b=null}var k=A.nodeValue.replace(s.truncationChar,"");if(_||(g.length>0?y=g.shift():y="",_=k.split(y)),_.length>1?(b=_.pop(),E(A,_.join(y))):_=null,f&&(A.nodeValue=A.nodeValue.replace(s.truncationChar,""),r.innerHTML=A.nodeValue+" "+f.innerHTML+s.truncationChar),_){if(r.clientHeight<=L)if(g.length>=0&&y!=="")E(A,_.join(y)+y+b),_=null;else return r.innerHTML}else y===""&&(E(A,""),A=S(r),x());if(s.animate)setTimeout(function(){C(A,L)},s.animate===!0?10:s.animate);else return C(A,L)}function E(A,L){A.nodeValue=L+s.truncationChar}c=="auto"?c=h():d&&(c=h(parseInt(c)));var w;if(u&&s.useNativeClamp)a.overflow="hidden",a.textOverflow="ellipsis",a.webkitBoxOrient="vertical",a.display="-webkit-box",a.webkitLineClamp=c,d&&(a.height=s.clamp+"px");else{var T=m(c);T<=r.clientHeight&&(w=C(S(r),T))}return{original:l,clamped:w}}return n})})(MD);var yxe=MD.exports;
710const bxe=Gc(yxe),_xe="eventBus";var un;(function(e){e.Loading="loading",e.Playing="playing",e.Stopped="stopped",e.Finished="finished",e.Error="error"})(un||(un={}));let Sxe=1e3,jn=class extends xa{constructor(){super(...arguments);ve(this,"mdiFastForward10",MP);ve(this,"mdiPlayCircleOutline",kE);ve(this,"mdiPauseCircleOutline",OP);ve(this,"mdiReplay",$P);ve(this,"mdiRewind10",NP);ve(this,"name");ve(this,"url");ve(this,"file");ve(this,"simple");ve(this,"preload");ve(this,"disabled");ve(this,"progress");ve(this,"disabledCaption");ve(this,"minCompletionTime");ve(this,"audioInstance");ve(this,"beforePlay");ve(this,"providerUrl");ve(this,"customPlayIconSvg");ve(this,"playButtonCaption");ve(this,"eventBus");ve(this,"player");ve(this,"status",un.Stopped);ve(this,"loaded",!1);ve(this,"audioId");ve(this,"statusList",un);ve(this,"position",0);ve(this,"disabledByError",!1);ve(this,"disabledByErrorCaption","");ve(this,"listened",!1);ve(this,"listenedTimer",0);ve(this,"firstPause",!0)}onUrlChanged(){this.initPlayer()}onFileChanged(){this.initPlayer()}get backdropStyle(){return{width:this.position+"%"}}get returnProviderUrl(){return`${Bl.location.origin}${this.providerUrl}`}get resolvedPlayIconSvg(){return this.customPlayIconSvg||this.mdiPlayCircleOutline}get showPlayButtonCaption(){const n=this.status===un.Error||this.status===un.Stopped||this.status===un.Finished;return!!(this.playButtonCaption&&this.customPlayIconSvg&&n)}get playToggleIconSvg(){return this.status===un.Playing?this.mdiPauseCircleOutline:this.status===un.Finished?this.mdiReplay:this.resolvedPlayIconSvg}get playToggleShowsCustomIcon(){return!(!this.customPlayIconSvg||this.status===un.Playing||this.status===un.Finished)}get playToggleIconViewBox(){return this.playToggleShowsCustomIcon?"0 0 26 26":"0 0 24 24"}get playToggleIconSize(){return this.playToggleShowsCustomIcon?26:24}get duration(){return this.player&&this.player.duration}mounted(){this.audioId=Sxe++,this.formatName(),(this.url||this.file)&&this.initPlayer()}formatName(){const n=this.$el.querySelector(".player-title > span");n&&bxe(n,{clamp:3})}encodeURL(n){const[r,i]=n.split("?"),o=r.split("/").map((a,l)=>l>0?decodeURIComponent(a):a).join("/");let s;return o!==r?s=r:s=r.split("/").map((a,l)=>l>0?encodeURIComponent(a):a).join("/"),i?`${s}?${i}`:s}getCurrentTime(){return this.player&&this.player.currentTime}loadAudio(n=!0){return new Promise((r,i)=>{this.loaded?r(!0):(n&&(this.status=un.Loading),this.player&&(this.player.load(),this.player.addEventListener("canplay",()=>{this.loaded=!0,this.$emit("audio-loaded"),r(!0)},{once:!0})))})}sendPlayedEvent(n){this.firstPause=!1;const r=n&&n.path&&n.path.length&&n.path[0].currentTime||0,i=Math.round(r*1e3);this.$emit("played",{...n,duration:i})}initPlayer(){var n;if((n=this.player)!=null&&n.pause&&(this.player.pause(),this.player.remove()),this.audioInstance)this.player=this.audioInstance;else if(this.url)this.player=new Audio,this.player.preload=this.preload,this.player.src=this.encodeURL(this.url);else if(this.file){this.player=new Audio;let r=new FileReader;r.onload=i=>{this.player.src=i.target.result}
710,r.readAsDataURL(this.file)}this.position=0,this.status=un.Stopped,this.player.addEventListener("error",r=>{this.disabledByError=!0,this.status=un.Error,this.$emit("audio-error",this.player.src)}),this.player.addEventListener("loadedmetadata",()=>{this.$emit("loadedmetadata",this.player)}),this.player.addEventListener("play",r=>{this.$emit("play",r)}),this.player.addEventListener("pause",r=>{this.firstPause&&this.sendPlayedEvent(r),this.$emit("pause",r)}),this.player.addEventListener("seeked",r=>{this.$emit("seeked",r)}),this.player.addEventListener("ended",r=>{this.firstPause&&this.sendPlayedEvent(r),this.$emit("ended",r),this.finish()}),this.player.addEventListener("timeupdate",r=>{this.progress&&this.updatePosition(),this.$emit("timeupdate",r)}),this.eventBus.on("play",r=>{this.status===un.Playing&&this.audioId&&this.audioId!==r&&this.pause()})}async playAudio(){this.status!==un.Playing&&(await this.loadAudio(),this.player.play(),this.status=un.Playing,this.eventBus.emit("play",this.audioId),this.eventBus.emit("trackEvent","Samples","Play sample","Sample - "+this.name))}play(){const n=this;this.status=un.Loading,this.$nextTick(),typeof this.beforePlay=="function"?this.beforePlay().then(()=>{n.playAudio()}).catch(r=>{this.$emit("before-play-fail",r)}):this.playAudio()}stop(){this.status===un.Playing&&(this.status=un.Stopped,this.player.pause(),this.emitAudioListened())}pause(){this.status=un.Stopped,this.player.pause(),this.$emit("audio-paused"),this.emitAudioListened()}finish(){this.status=un.Finished,this.emitAudioListened()}reset(){if(!this.player){this.status=un.Stopped;return}this.player.currentTime=0,this.status=un.Stopped}skip(n){const r=this.player.duration;let i=r*n/100;i=i>0?Math.max(i,10):Math.min(i,-10);const o=this.player.currentTime+i,s=Math.max(0,Math.min(o,r));return this.player.currentTime=s,s}seek(n){this.player.currentTime=this.player.duration*n}playButton(n){n.stopPropagation&&n.stopPropagation(),this.status===this.statusList.Finished?this.play():this.status===this.statusList.Playing?this.pause():this.play()}updatePosition(){const n=this.player.duration;this.status===un.Playing&&(this.position=this.player.currentTime*100/n,this.listenedTimer||(this.listenedTimer=setTimeout(this.emitAudioListened,this.minCompletionTime*1e3)))}titleClick(){this.$emit("title-click")}emitAudioListened(){this.listened||(this.$emit("audio-listened"),this.listened=!0)}hasSlots(){return this.$slots.left!==void 0||this.$slots.right!==void 0}hasBottomSlots(){return this.$slots["bottom-right"]!==void 0}hasPlayerTitleSlot(){return this.$slots["player-title"]!==void 0}hasHeadOptions(){return this.$slots.headOptions!==void 0}unmounted(){this.player&&(this.player.pause(),this.player.remove())}};Ve([je()],jn.prototype,"name",void 0);Ve([je()],jn.prototype,"url",void 0);Ve([je()],jn.prototype,"file",void 0);Ve([je({default:!1})],jn.prototype,"simple",void 0);Ve([je({default:"none"})],jn.prototype,"preload",void 0);Ve([je({default:!1})],jn.prototype,"disabled",void 0);Ve([je({default:!0})],jn.prototype,"progress",void 0);Ve([je({default:""})],jn.prototype,"disabledCaption",void 0);Ve([je({default:2})],jn.prototype,"minCompletionTime",void 0);Ve([je()],jn.prototype,"audioInstance",void 0);Ve([je()],jn.prototype,"beforePlay",void 0);Ve([je({default:""})],jn.prototype,"providerUrl",void 0);Ve([je({default:null})],jn.prototype,"customPlayIconSvg",void 0);Ve([je({default:null})],jn.prototype,"playButtonCaption",void 0);Ve([Hw({from:_xe})],jn.prototype,"eventBus",void 0);Ve([ka("url")],jn.prototype,"onUrlChanged",null);Ve([ka("file")],jn.prototype,"onFileChanged",null);jn=Ve([La({components:{MdSpinner:Kw}})],jn);const Exe=jn;const Cxe={key:0,class:"player-overlay"},wxe={key:1,class:"player-overlay by-error"},Txe={class:"player-content"},Axe={key:0},Ixe={class:"player-container"},xxe={key:0,class:"actions"},Lxe={class:"action left"},kxe={name:"right",class:"action right"},Mxe={class:"player"},Rxe={key:0,class:"player-load"},Pxe={key:1,class:"player-controls"},Oxe={key:0,class:"player-control"},$xe={key:0,class:"play-button-caption"},Nxe={key:1,class:"player-control"},Hxe={key:1,class:"bottom-actions"},Dxe={name:"bottom-left",class:"action left"},Vxe={name:"bottom-right",class:"action right"},Fxe=["href"],Bxe={key:0,class:"player-title"},Uxe={key:1};function jxe(e,t,n,r,i,o){const s=Kw,a=Zr,l=Mr;return I(),R("div",{class:Ie(["tdl-audio-player",{"player-simple":e.simple}])}
710,[e.disabled?(I(),R("div",Cxe,he(e.disabledCaption),1)):K("",!0),e.disabledByError?(I(),R("div",wxe,he(e.disabledByErrorCaption),1)):K("",!0),O("div",Txe,[e.hasHeadOptions()&&!e.simple?(I(),R("div",Axe,[ge(e.$slots,"headOptions")])):K("",!0),O("div",Ixe,[O("div",{class:"player-backdrop",style:vt(e.backdropStyle)},null,4),e.hasSlots()&&!e.simple?(I(),R("div",xxe,[O("div",Lxe,[ge(e.$slots,"left")]),O("div",kxe,[ge(e.$slots,"right")])])):K("",!0),O("div",Mxe,[e.status===e.statusList.Loading?(I(),R("div",Rxe,[kn(ae(s,{"md-indeterminate":""},null,512),[[Ci,e.status===e.statusList.Loading]])])):(I(),R("div",Pxe,[e.simple?K("",!0):(I(),R("div",Oxe,[e.status===e.statusList.Playing?(I(),Se(l,{key:0,class:"md-icon-button md-primary",onClick:t[0]||(t[0]=tt(u=>e.skip(-10),["prevent"]))},{default:pe(()=>[ae(a,{mdSvg:e.mdiRewind10},null,8,["mdSvg"])]),_:1})):K("",!0)])),O("div",{class:Ie(["player-control",{"player-control--with-caption":e.showPlayButtonCaption}])},[ae(l,{class:"md-icon-button md-primary play-button","aria-label":"play",onClick:tt(e.playButton,["prevent"])},{default:pe(()=>[ae(a,{class:Ie({"play-toggle-icon--custom":e.playToggleShowsCustomIcon}),mdSvg:e.playToggleIconSvg,viewbox:e.playToggleIconViewBox,size:e.playToggleIconSize},null,8,["class","mdSvg","viewbox","size"])]),_:1},8,["onClick"]),e.showPlayButtonCaption?(I(),R("span",$xe,he(e.playButtonCaption),1)):K("",!0)],2),e.simple?K("",!0):(I(),R("div",Nxe,[e.status===e.statusList.Playing?(I(),Se(l,{key:0,class:"md-icon-button md-primary",onClick:t[1]||(t[1]=tt(u=>e.skip(10),["prevent"]))},{default:pe(()=>[ae(a,{mdSvg:e.mdiFastForward10},null,8,["mdSvg"])]),_:1})):K("",!0)]))]))]),e.hasBottomSlots()&&!e.simple?(I(),R("div",Hxe,[O("div",Dxe,[ge(e.$slots,"bottom-left")]),O("div",Vxe,[ge(e.$slots,"bottom-right")])])):K("",!0)]),e.hasPlayerTitleSlot()?ge(e.$slots,"player-title",{key:1}):(I(),R(Je,{key:2},[e.providerUrl?(I(),R("a",{key:0,href:e.returnProviderUrl,class:"profile-link"},[e.name&&!e.simple?(I(),R("div",Bxe,[O("span",null,he(e.name),1)])):K("",!0)],8,Fxe)):(I(),R("div",Uxe,[e.name&&!e.simple?(I(),R("div",{key:0,class:"player-title",onClick:t[2]||(t[2]=(...u)=>e.titleClick&&e.titleClick(...u))},[O("span",null,he(e.name),1)])):K("",!0)]))],64))])],2)}const zBe=Ye(Exe,[["render",jxe]]),Wxe=Qe({name:"md-input",props:{type:{type:String,default:"text"},onlyRegularCharacters:{type:Boolean,default:!1}},mixins:[kD],watch:{inputValue(e,t){const n=/^[A-Za-z0-9 ]*$/.test(e);!this.onlyRegularCharacters||n&&e.split(" ").length<=4||(this.inputValue=t||""),this.type==="number"?this.onUpdateValue(this.inputValue):this.onUpdateValue(this.inputValue||"")}},methods:{isLetter(e){let t=String.fromCharCode(e.keyCode);if(!this.onlyRegularCharacters||/^[A-Za-z0-9 ]+$/.test(t))return!0;e.preventDefault()},handleOnWheel(e){e.target.blur()}}}),Gxe=["type","name","disabled","required","placeholder","maxlength","readonly"];function zxe(e,t,n,r,i,o){return kn((I(),R("input",{class:"md-input",type:e.type,name:e.name,"onUpdate:modelValue":t[0]||(t[0]=s=>e.inputValue=s),disabled:e.disabled||null,required:e.required,placeholder:e.placeholder,maxlength:e.maxlength,readonly:e.readonly,onKeypress:t[1]||(t[1]=s=>e.isLetter(s)),onChange:t[2]||(t[2]=(...s)=>e.onChange&&e.onChange(...s)),onFocus:t[3]||(t[3]=(...s)=>e.onFocus&&e.onFocus(...s)),onBlur:t[4]||(t[4]=(...s)=>e.onBlur&&e.onBlur(...s)),step:".01",onWheel:t[5]||(t[5]=(...s)=>e.handleOnWheel&&e.handleOnWheel(...s)),autocomplete:"off",autocorrect:"off",spellcheck:"false"},null,40,Gxe)),[[Qg,e.inputValue]])}const qxe=Ye(Wxe,[["render",zxe]]);var RD={exports:{}};/*! 711 * clipboard.js v2.0.11 712 * https://clipboardjs.com/ 713 * 714 * Licensed MIT © Zeno Rocha 715 */(function(e,t){(function(r,i){e.exports=i()})(zi,function(){return function(){var n={686:function(o,s,a){a.d(s,{default:function(){return W}});var l=a(279),u=a.n(l),c=a(370),d=a.n(c),f=a(817),p=a.n(f);function h(V){try{return document.execCommand(V)}catch{return!1}}var m=function(B){var Y=p()(B);return h("cut"),Y},v=m;function g(V){var B=document.documentElement.getAttribute("dir")==="rtl",Y=document.createElement("textarea");Y.style.fontSize="12pt",Y.style.border="0",Y.style.padding="0",Y.style.margin="0",Y.style.position="absolute",Y.style[B?"right":"left"]="-9999px";var F=window.pageYOffset||document.documentElement.scrollTop;return Y.style.top="".concat(F,"px"),Y.setAttribute("readonly",""),Y.value=V,Y}var y=function(B,Y){var F=g(B);Y.container.appendChild(F);var Q=p()(F);return h("copy"),F.remove(),Q},_=function(B){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body},F="";
vendor: 8,422 bytes, line 715
715return typeof B=="string"?F=y(B,Y):B instanceof HTMLInputElement&&!["text","search","url","tel","password"].includes(B==null?void 0:B.type)?F=y(B.value,Y):(F=p()(B),h("copy")),F},b=_;function S(V){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?S=function(Y){return typeof Y}:S=function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},S(V)}var C=function(){var B=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},Y=B.action,F=Y===void 0?"copy":Y,Q=B.container,re=B.target,be=B.text;if(F!=="copy"&&F!=="cut")throw new Error('Invalid "action" value, use either "copy" or "cut"');if(re!==void 0)if(re&&S(re)==="object"&&re.nodeType===1){if(F==="copy"&&re.hasAttribute("disabled"))throw new Error('Invalid "target" attribute. Please use "readonly" instead of "disabled" attribute');if(F==="cut"&&(re.hasAttribute("readonly")||re.hasAttribute("disabled")))throw new Error(`Invalid "target" attribute. You can't cut text from elements with "readonly" or "disabled" attributes`)}else throw new Error('Invalid "target" value, use a valid Element');if(be)return b(be,{container:Q});if(re)return F==="cut"?v(re):b(re,{container:Q})},E=C;function w(V){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(Y){return typeof Y}:w=function(Y){return Y&&typeof Symbol=="function"&&Y.constructor===Symbol&&Y!==Symbol.prototype?"symbol":typeof Y},w(V)}function T(V,B){if(!(V instanceof B))throw new TypeError("Cannot call a class as a function")}function A(V,B){for(var Y=0;Y<B.length;Y++){var F=B[Y];F.enumerable=F.enumerable||!1,F.configurable=!0,"value"in F&&(F.writable=!0),Object.defineProperty(V,F.key,F)}}function L(V,B,Y){return B&&A(V.prototype,B),Y&&A(V,Y),V}function x(V,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function");V.prototype=Object.create(B&&B.prototype,{constructor:{value:V,writable:!0,configurable:!0}}),B&&k(V,B)}function k(V,B){return k=Object.setPrototypeOf||function(F,Q){return F.__proto__=Q,F},k(V,B)}function M(V){var B=H();return function(){var F=q(V),Q;if(B){var re=q(this).constructor;Q=Reflect.construct(F,arguments,re)}else Q=F.apply(this,arguments);return z(this,Q)}}function z(V,B){return B&&(w(B)==="object"||typeof B=="function")?B:P(V)}function P(V){if(V===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return V}function H(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}function q(V){return q=Object.setPrototypeOf?Object.getPrototypeOf:function(Y){return Y.__proto__||Object.getPrototypeOf(Y)},q(V)}function de(V,B){var Y="data-clipboard-".concat(V);if(B.hasAttribute(Y))return B.getAttribute(Y)}var se=function(V){x(Y,V);var B=M(Y);function Y(F,Q){var re;return T(this,Y),re=B.call(this),re.resolveOptions(Q),re.listenClick(F),re}return L(Y,[{key:"resolveOptions",value:function(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.action=typeof Q.action=="function"?Q.action:this.defaultAction,this.target=typeof Q.target=="function"?Q.target:this.defaultTarget,this.text=typeof Q.text=="function"?Q.text:this.defaultText,this.container=w(Q.container)==="object"?Q.container:document.body}},{key:"listenClick",value:function(Q){var re=this;this.listener=d()(Q,"click",function(be){return re.onClick(be)})}},{key:"onClick",value:function(Q){var re=Q.delegateTarget||Q.currentTarget,be=this.action(re)||"copy",Le=E({action:be,container:this.container,target:this.target(re),text:this.text(re)});this.emit(Le?"success":"error",{action:be,text:Le,trigger:re,clearSelection:function(){re&&re.focus(),window.getSelection().removeAllRanges()}})}},{key:"defaultAction",value:function(Q){return de("action",Q)}},{key:"defaultTarget",value:function(Q){var re=de("target",Q);if(re)return document.querySelector(re)}},{key:"defaultText",value:function(Q){return de("text",Q)}},{key:"destroy",value:function(){this.listener.destroy()}}],[{key:"copy",value:function(Q){var re=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{container:document.body};return b(Q,re)}},{key:"cut",value:function(Q){return v(Q)}},{key:"isSupported",value:function(){var Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:["copy","cut"],re=typeof Q=="string"?[Q]:Q,be=!!document.queryCommandSupported;return re.forEach(function(Le){be=be&&!!document.queryCommandSupported(Le)}),be}}]),Y}(u()),W=se},828:function(o){var s=9;if(typeof Element<"u"&&!Element.prototype.matches){var a=Element.prototype;a.matches=a.matchesSelector||a.mozMatchesSelector||a.msMatchesSelector||a.oMatchesSelector||a.webkitMatchesSelector}function l(u,c){for(;u&&u.nodeType!==s;){if(typeof u.matches=="function"&&u.matches(c))return u;u=u.parentNode}}o.exports=l},438:function(o,s,a){var l=a(828);function u(f,p,h,m,v){var g=d.apply(this,arguments);return f.addEventListener(h,g,v),{destroy:function(){f.removeEventListener(h,g,v)}}}function c(f,p,h,m,v){return typeof f.addEventListener=="function"?u.apply(null,arguments):typeof h=="function"?u.bind(null,document).apply(null,arguments):(typeof f=="string"&&(f=document.querySelectorAll(f)),Array.prototype.map.call(f,function(g){return u(g,p,h,m,v)}))}function d(f,p,h,m){return function(v){v.delegateTarget=l(v.target,p),v.delegateTarget&&m.call(f,v)}}o.exports=c},879:function(o,s){s.node=function(a){return a!==void 0&&a instanceof HTMLElement&&a.nodeType===1},s.nodeList=function(a){var l=Object.prototype.toString.call(a);return a!==void 0&&(l==="[object NodeList]"||l==="[object HTMLCollection]")&&"length"in a&&(a.length===0||s.node(a[0]))},s.string=function(a){return typeof a=="string"||a instanceof String},s.fn=function(a){var l=Object.prototype.toString.call(a);return l==="[object Function]"}},370:function(o,s,a){var l=a(879),u=a(438);function c(h,m,v){if(!h&&!m&&!v)throw new Error("Missing required arguments");if(!l.string(m))throw new TypeError("Second argument must be a String");if(!l.fn(v))throw new TypeError("Third argument must be a Function");if(l.node(h))return d(h,m,v);if(l.nodeList(h))return f(h,m,v);if(l.string(h))return p(h,m,v);throw new TypeError("First argument must be a String, HTMLElement, HTMLCollection, or NodeList")}function d(h,m,v){return h.addEventListener(m,v),{destroy:function(){h.removeEventListener(m,v)}}}function f(h,m,v){return Array.prototype.forEach.call(h,function(g){g.addEventListener(m,v)}),{destroy:function(){Array.prototype.forEach.call(h,function(g){g.removeEventListener(m,v)})}}}function p(h,m,v){return u(document.body,h,m,v)}o.exports=c},817:function(o){function s(a){var l;if(a.nodeName==="SELECT")a.focus(),l=a.value;else if(a.nodeName==="INPUT"||a.nodeName==="TEXTAREA"){var u=a.hasAttribute("readonly");u||a.setAttribute("readonly",""),a.select(),a.setSelectionRange(0,a.value.length),u||a.removeAttribute("readonly"),l=a.value}else{a.hasAttribute("contenteditable")&&a.focus();var c=window.getSelection(),d=document.createRange();d.selectNodeContents(a),c.removeAllRanges(),c.addRange(d),l=c.toString()}return l}o.exports=s},279:function(o){function s(){}s.prototype={on:function(a,l,u){var c=this.e||(this.e={});return(c[a]||(c[a]=[])).push({fn:l,ctx:u}),this},once:function(a,l,u){var c=this;function d(){c.off(a,d),l.apply(u,arguments)}return d._=l,this.on(a,d,u)},emit:function(a){var l=[].slice.call(arguments,1),u=((this.e||(this.e={}))[a]||[]).slice(),c=0,d=u.length;for(c;c<d;c++)u[c].fn.apply(u[c].ctx,l);return this},off:function(a,l){var u=this.e||(this.e={}),c=u[a],d=[];if(c&&l)for(var f=0,p=c.length;f<p;f++)c[f].fn!==l&&c[f].fn._!==l&&d.push(c[f]);return d.length?u[a]=d:delete u[a],this}},o.exports=s,o.exports.TinyEmitter=s}},r={};function i(o){if(r[o])return r[o].exports;var s=r[o]={exports:{}};return n[o](s,s.exports,i),s.exports}return function(){i.n=function(o){var s=o&&o.__esModule?function(){return o.default}:function(){return o};return i.d(s,{a:s}),s}}(),function(){i.d=function(o,s){for(var a in s)i.o(s,a)&&!i.o(o,a)&&Object.defineProperty(o,a,{enumerable:!0,get:s[a]})}}(),function(){i.o=function(o,s){return Object.prototype.hasOwnProperty.call(o,s)}}(),i(686)}().default})})(RD);var Kxe=RD.exports;const Xxe=Gc(Kxe),Zxe={name:"XIcon"}
715,Yxe={viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor","aria-label":"X (formerly Twitter)"},Jxe=O("path",{d:"M18.146 2H21L13.5 10.6 22 22h-6.146l-4.78-6.17L5.6 22H3l7.98-9.17L2.5 2h6.2l4.33 5.6L18.146 2Z"},null,-1),Qxe=[Jxe];function eLe(e,t,n,r,i,o){return I(),R("svg",Yxe,Qxe)}const tLe=Ye(Zxe,[["render",eLe]]),nLe={class:"social-share-container"},rLe={class:"social-share-links"},iLe=["onClick"],oLe={class:"social-label"},sLe={for:""},qBe=Qe({__name:"tdlSharePopup",props:{title:{default:"Share"},text:{},url:{},urls:{},subject:{},include:{default:()=>[]}},emits:["shareAction"],setup(e,{expose:t,emit:n}){const r=e;t({open:m,close:v});const i=ie(),o=ie(),s=ie(),a=ie(!1);let l;const u={facebook:{icon:LZ,label:"Facebook",link:()=>(console.log(r.url,r.urls),`https://facebook.com/sharer/sharer.php?u=${r.url||r.urls.facebook}`)},email:{icon:TZ,label:"Email",link:()=>`mailto:?subject=${r.subject?r.subject:""}&body=${r.text||""} ${r.url||r.urls.email}`},linkedin:{icon:RP,label:"Linkedin",link:()=>`https://www.linkedin.com/shareArticle?url=${r.url||r.urls.linkedin}`},twitter:{icon:tLe,label:"X",link:()=>`https://twitter.com/intent/tweet?url=${r.url||r.urls.twitter}&text=${r.text||""}&original_referer=https://voice123.com/`}},c=fe(()=>a.value?"Link copied":"Click to copy link"),d=fe(()=>{var b;return((b=r.include)==null?void 0:b.filter(S=>u[S]))||[]}),f=fe(()=>{var b;return r.url?r.url:(b=r.urls)==null?void 0:b.link}),p=b=>u[b],h=b=>{const S=p(b).icon;return typeof S=="string"?S:""};function m(){i.value.open(),a.value=!1,Lt(()=>{!l&&o.value&&s.value&&(l=new Xxe(o.value.$el||o.value,{target:()=>s.value.$el}),l.on("success",b=>{a.value=!0,n("shareAction",f.value)}))})}function v(){i.value.close()}function g(b){y(b),n("shareAction",b)}function y(b){let S=_(b)?b:"http://"+b;window.open(S,"_blank")}const _=b=>b.match(/^(https?:\/\/|mailto:)/i);return(b,S)=>{const C=g0,E=Zr,w=qxe,T=TD,A=v0,L=Mr,x=m0,k=h0;return I(),Se(k,{"md-open-from":"#custom","md-close-to":"#custom",ref_key:"popup",ref:i,class:"share-dialog"},{default:pe(()=>[ae(C,null,{default:pe(()=>[_t(he(b.title),1)]),_:1}),ae(A,null,{default:pe(()=>[O("div",nLe,[O("div",rLe,[(I(!0),R(Je,null,Dt(d.value,M=>(I(),R("div",{onClick:z=>g(p(M).link()),key:M,class:"social-share-item"},[M==="twitter"?(I(),Se(tE(p(M).icon),{key:0,class:"social-icon"})):(I(),Se(E,{key:1,mdSvg:h(M),class:"social-icon"},null,8,["mdSvg"])),O("span",oLe,he(p(M).label),1)],8,iLe))),128))]),f.value?(I(),R("div",{key:0,ref_key:"clipboardItem",ref:o,class:"clipboard-item"},[ae(T,null,{default:pe(()=>[O("label",sLe,he(c.value),1),ae(w,{class:"clipboard-input",ref_key:"urlInput",ref:s,"model-value":f.value,readonly:""},null,8,["model-value"])]),_:1})],512)):K("",!0)])]),_:1}),ae(x,null,{default:pe(()=>[ae(L,{class:"md-primary",onClick:v},{default:pe(()=>[_t("Close")]),_:1})]),_:1})]),_:1},512)}}});const aLe={name:"md-divider"},lLe={class:"md-divider"};function uLe(e,t,n,r,i,o){return I(),R("hr",lLe)}const cLe=Ye(aLe,[["render",uLe]]),dLe={class:"vdl-expandable-text"},fLe={key:0,class:"more"},KBe=Qe({__name:"vdlExpandableText",props:{moreText:{default:"View more"},lessText:{default:"View less"},maxHeight:{default:100},showButton:{type:Boolean,default:!0},forceExpandable:{type:Boolean,default:!1},toggleableContent:{type:Boolean,default:!1}},setup(e){const t=e,n=ie(!0),r=ie(0),i=({height:u})=>r.value=u,o=fe(()=>r.value>t.maxHeight||t.forceExpandable),s=fe(()=>n.value?t.moreText:t.lessText),a=fe(()=>n.value?{"max-height":t.maxHeight+10+"px"}:{});function l(u){u&&(n.value=!n.value)}return(u,c)=>{const d=jc("resize-observer");return I(),R("div",dLe,[kn((I(),R("div",{class:Ie({content:!0,collapsed:o.value&&n.value,clickable:t.showButton}),onClick:c[0]||(c[0]=f=>l(u.toggleableContent)),style:vt(a.value)},[ge(u.$slots,"default")],6)),[[d,i]]),o.value&&t.showButton?(I(),R("div",fLe,[ae(Mr,{class:"md-primary",onClick:c[1]||(c[1]=f=>l(!0))},{default:pe(()=>[_t(he(s.value),1)]),_:1})])):K("",!0)])}}});const pLe={name:"step",props:{number:String},data(){return{}}},hLe={class:"md-step-icons"},mLe={class:"md-step-number"};function vLe(e,t,n,r,i,o){return I(),R("div",hLe,[O("div",mLe,[O("span",null,he(n.number),1)])])}const XBe=Ye(pLe,[["render",vLe]]);let cS=class extends xa{constructor(){super(...arguments);ve(this,"format")}nestedModel(n,r){let i=n.attribute;if(!r&&n.targetAttribute){const o=n.values||[n];i=n.targetAttribute,r=o.find(s=>s.attribute===n.targetAttribute)}return{attribute:i,item:r}}emptyFieldMessage(n){return n&&n.emptyMsg||"N/A"}getAttributesTextGlobal(n,r,i){let o=r[n.attribute];if(n.type==="chips"&&!n.multiple&&(o=o&&o[0]),o===void 0)return this.emptyFieldMessage(n);if(Array.isArray(o)){let a="";return n.operators&&o.length>1&&i&&(a=i[n.operators_attribute]?"All of: ":"Any of: "),a+o.map((l,u)=>{const c=l&&(l.name||l.full_name);if(c)return c.match(/^[A-Z1-9\s\(\)]+$/)?c:o.length>1&&u>0?c.toLowerCase():c}).filter(l=>l!==void 0).join(", ")||this.emptyFieldMessage(n)}if(s1e(o))return o?"Yes":"No";let s=1292051460;if(l1e(o)&&o>=s)return this.format.datetime(o);if(o&&o.nested&&o.nested[0]&&i){const a=o.nested[0],l=a.attribute;let u=i[l]||r[l];
715if(a.type==="selector"&&a.values&&(u=a.values.find(d=>d.value===u)),a.type==="location")return Array.isArray(u)?u.map(d=>ui(d)?d.full_name:d).join(", "):"expand";let c=u&&u.name||a.type==="unitInput"&&this.unitsToText(a,u)||u;if(d9(c))return c==="COVID-19 efforts"&&(c="Zero Budget ⢠COVID-19 efforts"),c}return n.type==="unitInput"?this.unitsToText(n,o):o&&o.name||o}unitsToText(n,r){const i=r==null?void 0:r.value;if((!i||!i.length&&isNaN(Number(i)))&&!(r!=null&&r.form)&&!(r!=null&&r.until)||(r==null?void 0:r.currency)&&!n.currencies.values)return"";const s=r.currency&&n.currencies.values.find(c=>c.id===r.currency),a=r.unit||"";if(s&&this.format){const c=n.range&&r.from&&r.until?`${this.format.vdlCurrencyFormatter(r.from,s)} to ${this.format.vdlCurrencyFormatter(r.until,s)}`:`${this.format.vdlCurrencyFormatter(r.value,s)}`,d=Object.keys(s).length>0&&`${s.code}${s.custom_data.sign?s.custom_data.sign:""}`||"";return n.textFormat&&typeof n.textFormat=="function"?n.textFormat({...r,formattedPrice:c,currency:d}):n.prefix?`${a} ${c}`:`${c} ${a}`}const l=n.units&&n.units.find(c=>c.value===a),u=Number(r.value);return u===1&&l&&l.singular?`${u} ${l.singular}`:`${r.value} ${a}`}};cS=Ve([La({})],cS);const gLe=cS;let dS=class extends oD(gLe){constructor(){super(...arguments);ve(this,"formModel",{});ve(this,"nestedFormModel",{})}buildFormModel(n,r){let i={};for(let{attribute:o,type:s,values:a,attachments:l,empty_value:u,nested:c,conditionalNested:d,enable_new_values:f,mapValues:p,view:h}of r){if(o){let m=n[o],v=m;if(["autocomplete","checkbox","grouping","chips"].includes(s)||h==="chips"){const g=Array.isArray(m)?m:[m];v=Array.isArray(a)&&g.map(y=>{if(!y)return y;const _=y.id||y,b=a.find(S=>S.id==_);return f&&!b?{id:y,name:y}:b}).filter(y=>y)}else s==="radio"||p?v=a&&a.find(g=>String(g.id)===String(m))||u:s==="media"?v=m&&!d9(m)?m:{address:m,metadata:{orientation:1}}:(s==="text"||s==="textarea")&&m===void 0&&(v="");a&&["radio","checkbox","chips"].includes(s)&&a.forEach(g=>{g&&typeof g=="object"&&g.nested&&(i={...i,...this.buildFormModel(n,g.nested)})}),i[o]=v}c&&(i={...i,...this.buildFormModel(n,c)}),d&&(i={...i,...this.buildFormModel(n,d)}),l&&n[l]&&(i[l]=n[l])}return i}getAttributesText(n){const r={...this.formModel,...this.nestedFormModel};return this.getAttributesTextGlobal(n,r,this.nestedFormModel)}textFormat(n){if(Object.keys(this.formModel).length&&(this.formModel[n.attribute]||n.readOnly)){const r=this.formModel[n.attribute]&&this.formModel[n.attribute].nested&&this.buildFormModel(this.formModel,this.formModel[n.attribute].nested);return n.textFormat({value:this.formModel[n.attribute],model:this.formModel,field:n,nestedValue:r,vm:this})}return""}};dS=Ve([La({})],dS);const yLe=dS;function C0(){return Math.random().toString(36).substring(2,15)}function bLe(e,t){const n=e instanceof Set?e:new Set(e);return t&&t.forEach(r=>n.add(r)),[...n]}function yt(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function Ts(e,t,n=!0,r=["__key"]){if(e===t)return!0;if(typeof t=="object"&&typeof e=="object"){if(e instanceof Map||e instanceof Set||e instanceof Date||e===null||t===null||Object.keys(e).length!==Object.keys(t).length)return!1;for(const i of r)if((i in e||i in t)&&e[i]!==t[i])return!1;for(const i in e)if(!(i in t)||e[i]!==t[i]&&!n||n&&!Ts(e[i],t[i],n,r))return!1;return!0}return!1}function op(e){const t=typeof e;if(t==="number")return!1;if(e===void 0)return!0;if(t==="string")return e==="";if(t==="object"){if(e===null)return!0;for(const n in e)return!1;return!(e instanceof RegExp||e instanceof Date)}return!1}function _Le(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function SLe(e){const t=`^${_Le(e)}$`,n={MM:"(0[1-9]|1[012])",M:"([1-9]|1[012])",DD:"([012][0-9]|3[01])",D:"([012]?[0-9]|3[01])",YYYY:"\\d{4}",YY:"\\d{2}"},r=Object.keys(n);return new RegExp(r.reduce((i,o)=>i.replace(o,n[o]),t))}function fS(e){return Object.prototype.toString.call(e)==="[object Object]"}function pS(e){return fS(e)||Array.isArray(e)}function Pc(e){if(fS(e)===!1||e.__FKNode__||e.__POJO__===!1)return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(fS(n)===!1||n.hasOwnProperty("isPrototypeOf")===!1)}function Pl(e,t,n=!1,r=!1){if(t===null)return null;const i={};if(typeof t=="string")return t;for(const o in e)if(yt(t,o)&&(t[o]!==void 0||!r)){if(n&&Array.isArray(e[o])&&Array.isArray(t[o])){i[o]=e[o].concat(t[o]);continue}if(t[o]===void 0)continue;
715Pc(e[o])&&Pc(t[o])?i[o]=Pl(e[o],t[o],n,r):i[o]=t[o]}else i[o]=e[o];for(const o in t)!yt(i,o)&&t[o]!==void 0&&(i[o]=t[o]);return i}function ELe(e){if(e[0]!=='"'&&e[0]!=="'"||e[0]!==e[e.length-1])return!1;const t=e[0];for(let n=1;n<e.length;n++)if(e[n]===t&&(n===1||e[n-1]!=="\\")&&n!==e.length-1)return!1;return!0}function CLe(e){if(!e.length)return"";let t="",n="";for(let r=0;r<e.length;r++){const i=e.charAt(r);(i!=="\\"||n==="\\")&&(t+=i),n=i}return t}function gu(...e){return e.reduce((t,n)=>{const{value:r,name:i,modelValue:o,config:s,plugins:a,...l}=n;return Object.assign(t,l)},{})}function wLe(e){const t=[];let n="",r=0,i="",o="";for(let s=0;s<e.length;s++){const a=e.charAt(s);a===i&&o!=="\\"?i="":(a==="'"||a==='"')&&!i&&o!=="\\"?i=a:a==="("&&!i?r++:a===")"&&!i&&r--,a===","&&!i&&r===0?(t.push(n),n=""):(a!==" "||i)&&(n+=a),o=a}return n&&t.push(n),t}function Vk(e,t){const n={},r=t.filter(o=>o instanceof RegExp),i=new Set(t);for(const o in e)!i.has(o)&&!r.some(s=>s.test(o))&&(n[o]=e[o]);return n}function Fk(e,t){const n={},r=t.filter(i=>i instanceof RegExp);return t.forEach(i=>{i instanceof RegExp||(n[i]=e[i])}),Object.keys(e).forEach(i=>{r.some(o=>o.test(i))&&(n[i]=e[i])}),n}function nc(e){return e.replace(/-([a-z0-9])/gi,(t,n)=>n.toUpperCase())}function Zw(e){return e.replace(/([a-z0-9])([A-Z])/g,(t,n,r)=>n+"-"+r.toLowerCase()).replace(" ","-").toLowerCase()}function Oc(e,t=["__key","__init"]){if(e===null||e instanceof RegExp||e instanceof Date||e instanceof Map||e instanceof Set||typeof File=="function"&&e instanceof File)return e;let n;Array.isArray(e)?n=e.map(r=>typeof r=="object"?Oc(r,t):r):n=Object.keys(e).reduce((r,i)=>(r[i]=typeof e[i]=="object"?Oc(e[i],t):e[i],r),{});for(const r of t)r in e&&Object.defineProperty(n,r,{enumerable:!1,value:e[r]});return n}function hs(e){return typeof e=="object"?Oc(e):e}function TLe(e,t){if(!e||typeof e!="object")return null;const n=t.split(".");let r=e;for(const i in n){const o=n[i];if(yt(r,o)&&(r=r[o]),+i===n.length-1)return r;if(!r||typeof r!="object")return null}return null}function as(e){return e!==void 0&&e!=="false"&&e!==!1?!0:void 0}function sp(e){return Object.isFrozen(e)?e:Object.defineProperty(e,"__init",{enumerable:!1,value:!0})}function PD(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().replace(/[^a-z0-9]/g," ").trim().replace(/\s+/g,"-")}function Yw(){const e=[];let t=0;const n=i=>e.push(i),r=i=>{const o=e[t];return typeof o=="function"?o(i,s=>(t++,r(s===void 0?i:s))):(t=0,i)};return n.dispatch=r,n.unshift=i=>e.unshift(i),n.remove=i=>{const o=e.indexOf(i);o>-1&&e.splice(o,1)},n}function OD(){const e=new Map,t=new Map;let n;const r=(i,o)=>{if(n){n.set(o.name,[i,o]);return}e.has(o.name)&&e.get(o.name).forEach(s=>{(o.origin===i||s.modifiers.includes("deep"))&&s.listener(o)}),o.bubble&&i.bubble(o)};return r.on=(i,o)=>{const[s,...a]=i.split("."),l=o.receipt||C0(),u={modifiers:a,event:s,listener:o,receipt:l};return e.has(s)?e.get(s).push(u):e.set(s,[u]),t.has(l)?t.get(l).push(s):t.set(l,[s]),l},r.off=i=>{var o;t.has(i)&&((o=t.get(i))===null||o===void 0||o.forEach(s=>{const a=e.get(s);Array.isArray(a)&&e.set(s,a.filter(l=>l.receipt!==i))}),t.delete(i))},r.pause=i=>{n||(n=new Map),i&&i.walk(o=>o._e.pause())},r.play=i=>{if(!n)return;const o=n;n=void 0,o.forEach(([s,a])=>r(s,a)),i&&i.walk(s=>s._e.play())},r}function ALe(e,t,n,r,i=!0){return t._e(e,{payload:r,name:n,bubble:i,origin:e}),e}function ILe(e,t,n){return eh(e.parent)&&e.parent._e(e.parent,n),e}function xLe(e,t,n,r){return t._e.on(n,r)}function LLe(e,t,n){return t._e.off(n),e}const Jw=Yw();Jw((e,t)=>(e.message||(e.message=`E${e.code}`),t(e)));const Qw=Yw();Qw((e,t)=>{e.message||(e.message=`W${e.code}`);const n=t(e);return console&&typeof console.warn=="function"&&console.warn(n.message),n});function Qp(e,t={}){Qw.dispatch({code:e,data:t})}function li(e,t={}){throw Error(Jw.dispatch({code:e,data:t}).message)}function ro(e,t){const n={blocking:!1,key:C0(),meta:{},type:"state",visible:!0,...e};return t&&n.value&&n.meta.localize!==!1&&(n.value=t.t(n),n.meta.locale=t.config.locale),n}const Bk={apply:$Le,set:MLe,remove:$D,filter:PLe,reduce:OLe,release:DLe,touch:RLe};function kLe(e=!1){const t={};let n,r=e,i=[];const o=new Map;let s;const a=new Proxy(t,{get(...l){const[u,c]=l;return c==="buffer"?r:c==="_b"?i:c==="_m"?o:c==="_r"?s:yt(Bk,c)?Bk[c].bind(null,t,a,n):Reflect.get(...l)},set(l,u,c){return u==="_n"?(n=c,s==="__n"&&ND(n,a),!0):u==="_b"?(i=c,!0):u==="buffer"?(r=c,!0):u==="_r"?(s=c,!0):(li(101,n),!1)}});return a}function MLe(e,t,n,r){if(t.buffer)return t._b.push([[r]]),t;if(e[r.key]!==r){if(typeof r.value=="string"&&r.meta.localize!==!1){const o=r.value;r.value=n.t(r),r.value!==o&&(r.meta.locale=n.props.locale)}const i=`message-${yt(e,r.key)?"updated":"added"}`;e[r.key]=Object.freeze(n.hook.message.dispatch(r)),n.emit(i,r)}return t}function RLe(e,t){for(const n in e){const r={...e[n]};t.set(r)}}function $D(e,t,n,r){if(yt(e,r)){const i=e[r];delete e[r],n.emit("message-removed",i)}return t.buffer===!0&&(t._b=t._b.filter(i=>(i[0]=i[0].filter(o=>o.key!==r),i[1]||i[0].length))),t}function PLe(e,t,n,r,i){for(const o in e){const s=e[o];(!i||s.type===i)&&!r(s)&&$D(e,t,n,o)}}function OLe(e,t,n,r,i){for(const o in e){const s=e[o];i=r(i,s)}return i}function $Le(e,t,n,r,i){if(Array.isArray(r)){if(t.buffer){t._b.push([r,i]);return}const o=new Set(r.map(s=>(t.set(s),s.key)));typeof i=="string"?t.filter(s=>s.type!==i||o.has(s.key)):typeof i=="function"&&t.filter(s=>!i(s)||o.has(s.key))}else for(const o in r){const s=n.at(o);s?s.store.apply(r[o],i):HLe(n,t,o,r[o],i)}}function NLe(e,...t){const n=`${e.name}-set`,r=i=>ro({key:PD(i),type:"error",value:i,meta:{source:n,autoClear:!0}});return t.filter(i=>!!i).map(i=>{if(typeof i=="string"&&(i=[i]),Array.isArray(i))return i.map(o=>r(o));{const o={};for(const s in i)Array.isArray(i[s])?o[s]=i[s].map(a=>r(a)):o[s]=[r(i[s])];return o}})}function HLe(e,t,n,r,i){var o;const s=t._m;s.has(n)||s.set(n,[]),t._r||(t._r=ND(e,t)),(o=s.get(n))===null||o===void 0||o.push([r,i])}function ND(e,t){return e.on("child.deep",({payload:n})=>{t._m.forEach((r,i)=>{e.at(i)===n&&(r.forEach(([o,s])=>{n.store.apply(o,s)}),t._m.delete(i))}),t._m.size===0&&t._r&&(e.off(t._r),t._r=void 0)})}function DLe(e,t){t.buffer=!1,t._b.forEach(([n,r])=>t.apply(n,r)),t._b=[]}function VLe(){const e={};let t;return{count:(...n)=>FLe(t,e,...n),init(n){t=n,n.on("message-added.deep",Uk(e,1)),n.on("message-removed.deep",Uk(e,-1))},merge:n=>jk(t,e,n),settled(n){return yt(e,n)?e[n].promise:Promise.resolve()},unmerge:n=>jk(t,e,n,!0),value(n){return yt(e,n)?e[n].count:0}}}
715function FLe(e,t,n,r,i=0){if(r=BLe(r||n),!yt(t,n)){const o={condition:r,count:0,name:n,node:e,promise:Promise.resolve(),resolve:()=>{}};t[n]=o,i=e.store.reduce((s,a)=>s+o.condition(a)*1,i),e.each(s=>{s.ledger.count(o.name,o.condition),i+=s.ledger.value(o.name)})}return HD(t[n],i).promise}function BLe(e){return typeof e=="function"?e:t=>t.type===e}function HD(e,t){const n=e.count,r=e.count+t;return e.count=r,n===0&&r!==0?(e.node.emit(`unsettled:${e.name}`,e.count,!1),e.promise=new Promise(i=>e.resolve=i)):n!==0&&r===0&&(e.node.emit(`settled:${e.name}`,e.count,!1),e.resolve()),e.node.emit(`count:${e.name}`,e.count,!1),e}function Uk(e,t){return n=>{for(const r in e){const i=e[r];i.condition(n.payload)&&HD(i,t)}}}function jk(e,t,n,r=!1){for(const i in t){const o=t[i].condition;r||n.ledger.count(i,o);const s=n.ledger.value(i)*(r?-1:1);if(e)do e.ledger.count(i,o,s),e=e.parent;while(e)}}const eT=new Map,Zm=new Map,tT=OD(),ULe=[];function jLe(e){e.props.id&&(eT.set(e.props.id,e),Zm.set(e,e.props.id),tT(e,{payload:e,name:e.props.id,bubble:!1,origin:e}))}function WLe(e){if(Zm.has(e)){const t=Zm.get(e);Zm.delete(e),eT.delete(t),tT(e,{payload:null,name:t,bubble:!1,origin:e})}}function DD(e){return eT.get(e)}function GLe(e,t){ULe.push(tT.on(e,t))}function hS(e,t,n){let r=!0;return t in e.config._t?r=!1:e.emit(`config:${t}`,n,!1),t in e.props||(e.emit("prop",{prop:t,value:n}),e.emit(`prop:${t}`,n)),r}function zLe(e={}){const t=new Set,n={...e,_add:i=>t.add(i),_rm:i=>i.remove(i)};return new Proxy(n,{set(i,o,s,a){return typeof o=="string"&&t.forEach(l=>hS(l,o,s)),Reflect.set(i,o,s,a)}})}function qLe(e){const t=document.getElementById(e);if(t instanceof HTMLFormElement){const n=new Event("submit",{cancelable:!0,bubbles:!0});t.dispatchEvent(n);return}Qp(151,e)}function KLe(e){const t=n=>{for(const r in n.store){const i=n.store[r];i.type==="error"||i.type==="ui"&&r==="incomplete"?n.store.remove(r):i.type==="state"&&n.store.set({...i,value:!1})}};t(e),e.walk(t)}function XLe(e,t){const n=typeof e=="string"?DD(e):e;if(n){const r=o=>hs(o.props.initial)||(o.type==="group"?{}:o.type==="list"?[]:void 0);n._e.pause(n),n.input(hs(t)||r(n),!1),n.walk(o=>o.input(r(o),!1));const i=r(n);return n.input(typeof i=="object"?hs(t)||sp(i):i,!1),n._e.play(n),KLe(n),n.emit("reset",n),n}Qp(152,e)}const ZLe={delimiter:".",delay:0,locale:"en",rootClasses:e=>({[`formkit-${Zw(e)}`]:!0})},VD=Symbol("index"),mS=Symbol("removed"),vS=Symbol("moved"),FD=Symbol("inserted");function YLe(e){return e.type==="list"&&Array.isArray(e._value)}function eh(e){return e&&typeof e=="object"&&e.__FKNode__===!0}const Ym=(e,t,n)=>{li(102,[e,n])},JLe={_c:Nt(bke,Ym,!1),add:Nt(dke),addProps:Nt(cke),address:Nt(Ske,Ym,!1),at:Nt(Eke),bubble:Nt(ILe),clearErrors:Nt(kke),calm:Nt(ake),config:Nt(!1),define:Nt(uke),disturb:Nt(ske),destroy:Nt(lke),hydrate:Nt(oke),index:Nt(yke,gke,!1),input:Nt(UD),each:Nt(hke),emit:Nt(ALe),find:Nt(wke),on:Nt(xLe),off:Nt(LLe),parent:Nt(!1,fke),plugins:Nt(!1),remove:Nt(pke),root:Nt(Ake,Ym,!1),reset:Nt(Lke),resetConfig:Nt(vke),setErrors:Nt(GD),submit:Nt(xke),t:Nt(Ike),use:Nt(nT),name:Nt(_ke,!1,!1),walk:Nt(mke)};function QLe(){return new Map(Object.entries(JLe))}function Nt(e,t,n=!0){return{get:e?(r,i)=>n?(...o)=>e(r,i,...o):e(r,i):!1,set:t!==void 0?t:Ym.bind(null)}}function eke(){const e=new Map;return new Proxy(e,{get(t,n){return e.has(n)||e.set(n,Yw()),e.get(n)}})}let tke=0,nke=0;function rke(e){var t,n;return((t=e.parent)===null||t===void 0?void 0:t.type)==="list"?VD:e.name||`${((n=e.props)===null||n===void 0?void 0:n.type)||"input"}_${++tke}`}function BD(e){return e.type==="group"?sp(e.value&&typeof e.value=="object"&&!Array.isArray(e.value)?e.value:{}):e.type==="list"?sp(Array.isArray(e.value)?e.value:[]):e.value===null?"":e.value}function UD(e,t,n,r=!0){return t._value=ike(e,e.hook.input.dispatch(n)),e.emit("input",t._value),t.isSettled&&e.disturb(),r?(t._tmo&&clearTimeout(t._tmo),t._tmo=setTimeout(Sg,e.props.delay,e,t)):Sg(e,t),t.settled}function ike(e,t){switch(e.type){case"input":break;case"group":(!t||typeof t!="object")&&li(107,[e,t]);break;case"list":Array.isArray(t)||li(108,[e,t]);break}return t}function Sg(e,t,n=!0,r=!0){t._value=t.value=e.hook.commit.dispatch(t._value),e.type!=="input"&&r&&e.hydrate(),e.emit("commit",t.value),n&&e.calm()}function jD(e,{name:t,value:n,from:r}){if(!Object.isFrozen(e._value)){if(YLe(e)){const i=n===mS?[]:n===vS&&typeof r=="number"?e._value.splice(r,1):[n];e._value.splice(t,n===vS||r===FD?0:1,...i);return}n!==mS?e._value[t]=n:delete e._value[t]}}function oke(e,t){const n=t._value;
715return t.children.forEach(r=>{if(typeof n=="object")if(r.name in n){const i=r.type!=="input"||n[r.name]&&typeof n[r.name]=="object"?sp(n[r.name]):n[r.name];r.input(i,!1)}else(e.type!=="list"||typeof r.name=="number")&&jD(t,{name:r.name,value:r.value}),n.__init||(r.type==="group"?r.input({},!1):r.type==="list"?r.input([],!1):r.input(void 0,!1))}),e}function ske(e,t){var n;return t._d<=0&&(t.isSettled=!1,e.emit("settled",!1,!1),t.settled=new Promise(r=>{t._resolve=r}),e.parent&&((n=e.parent)===null||n===void 0||n.disturb())),t._d++,e}function ake(e,t,n){var r;if(n!==void 0&&e.type!=="input")return jD(t,n),Sg(e,t,!0,!1);t._d>0&&t._d--,t._d===0&&(t.isSettled=!0,e.emit("settled",!0,!1),e.parent&&((r=e.parent)===null||r===void 0||r.calm({name:e.name,value:t.value})),t._resolve&&t._resolve(t.value))}function lke(e,t){e.emit("destroying",e),e.store.filter(()=>!1),e.parent&&e.parent.remove(e),WLe(e),t._value=t.value=void 0,e.emit("destroyed",e)}function uke(e,t,n){t.type=n.type,t.props.definition=Oc(n),t.value=t._value=BD({type:e.type,value:t.value}),n.features&&n.features.forEach(r=>r(e)),n.props&&e.addProps(n.props),e.emit("defined",n)}function cke(e,t,n){var r;if(e.props.attrs){const i={...e.props.attrs};e.props._emit=!1;for(const s in i){const a=nc(s);n.includes(a)&&(e.props[a]=i[s],delete i[s])}const o=hs(t._value);e.props.initial=e.type!=="input"?sp(o):o,e.props._emit=!0,e.props.attrs=i,e.props.definition&&(e.props.definition.props=[...((r=e.props.definition)===null||r===void 0?void 0:r.props)||[],...n])}return e.emit("added-props",n),e}function dke(e,t,n,r){if(e.type==="input"&&li(100,e),n.parent&&n.parent!==e&&n.parent.remove(n),t.children.includes(n)||(r!==void 0&&e.type==="list"?(t.children.splice(r,0,n),Array.isArray(e.value)&&e.value.length<t.children.length&&e.disturb().calm({name:r,value:n.value,from:FD})):t.children.push(n),n.isSettled||e.disturb()),n.parent!==e){if(n.parent=e,n.parent!==e)return e.remove(n),n.parent.add(n),e}else n.use(e.plugins);return Sg(e,t,!1),e.ledger.merge(n),e.emit("child",n),e}function fke(e,t,n,r){return eh(r)?(e.parent&&e.parent!==r&&e.parent.remove(e),t.parent=r,e.resetConfig(),r.children.includes(e)?e.use(r.plugins):r.add(e),!0):r===null?(t.parent=null,!0):!1}function pke(e,t,n){const r=t.children.indexOf(n);if(r!==-1){n.isSettled&&e.disturb(),t.children.splice(r,1);let i=as(n.props.preserve),o=n.parent;for(;i===void 0&&o;)i=as(o.props.preserve),o=o.parent;i?e.calm():e.calm({name:e.type==="list"?r:n.name,value:mS}),n.parent=null,n.config._rmn=n}return e.ledger.unmerge(n),e}function hke(e,t,n){t.children.forEach(r=>n(r))}function mke(e,t,n,r=!1){t.children.forEach(i=>{(n(i)!==!1||!r)&&i.walk(n)})}function vke(e,t){const n=e.parent||void 0;t.config=WD(e.config._t,n),e.walk(r=>r.resetConfig())}function nT(e,t,n,r=!0,i=!0){return Array.isArray(n)||n instanceof Set?(n.forEach(o=>nT(e,t,o)),e):(t.plugins.has(n)||(i&&typeof n.library=="function"&&n.library(e),r&&n(e)!==!1&&(t.plugins.add(n),e.children.forEach(o=>o.use(n)))),e)}function gke(e,t,n,r){if(eh(e.parent)){const i=e.parent.children,o=r>=i.length?i.length-1:r<0?0:r,s=i.indexOf(e);return s===-1?!1:(i.splice(s,1),i.splice(o,0,e),e.parent.children=i,e.parent.type==="list"&&e.parent.disturb().calm({name:o,value:vS,from:s}),!0)}return!1}function yke(e){if(e.parent){const t=[...e.parent.children].indexOf(e);return t===-1?e.parent.children.length:t}return-1}function bke(e,t){return t}function _ke(e,t){var n;return((n=e.parent)===null||n===void 0?void 0:n.type)==="list"?e.index:t.name!==VD?t.name:e.index}function Ske(e,t){return t.parent?t.parent.address.concat([e.name]):[e.name]}function Eke(e,t,n){const r=typeof n=="string"?n.split(e.config.delimiter):n;if(!r.length)return;const i=r[0];let o=e.parent;for(o||(String(r[0])===String(e.name)&&r.shift(),o=e),i==="$parent"&&r.shift();o&&r.length;){const s=r.shift();switch(s){case"$root":o=e.root;break;case"$parent":o=o.parent;break;case"$self":o=e;break;default:o=o.children.find(a=>String(a.name)===String(s))||Cke(o,s)}}return o||void 0}function Cke(e,t){const n=String(t).match(/^(find)\((.*)\)$/);if(n){const[,r,i]=n,o=i.split(",").map(s=>s.trim());switch(r){case"find":return e.find(o[0],o[1]);default:return}}}function wke(e,t,n,r){return Tke(e,n,r)}function Tke(e,t,n="name"){const r=typeof n=="string"?o=>o[n]==t:n,i=[e];for(;i.length;){const o=i.shift();if(r(o,t))return o;i.push(...o.children)}}function Ake(e){let t=e;for(;t.parent;)t=t.parent;return t}function WD(e={},t){let n;return new Proxy(e,{get(...r){const i=r[1];if(i==="_t")return e;const o=Reflect.get(...r);if(o!==void 0)return o;if(t){const s=t.config[i];if(s!==void 0)return s}if(e.rootConfig&&typeof i=="string"){const s=e.rootConfig[i];if(s!==void 0)return s}return i==="delay"&&(n==null?void 0:n.type)==="input"?20:ZLe[i]},set(...r){const i=r[1],o=r[2];if(i==="_n")return n=o,e.rootConfig&&e.rootConfig._add(n),!0;if(i==="_rmn")return e.rootConfig&&e.rootConfig._rm(n),n=void 0,!0;if(!Ts(e[i],o,!1)){const s=Reflect.set(...r);return n&&(n.emit(`config:${i}`,o,!1),hS(n,i,o),n.walk(a=>hS(a,i,o),!0)),s}return!0}})}function Ike(e,t,n,r="ui"){const i=typeof n=="string"?{key:n,value:n,type:r}:n,o=e.hook.text.dispatch(i);return e.emit("text",o,!1),o.value}function xke(e){const t=e.name;do{if(e.props.isForm===!0)break;e.parent||li(106,t),e=e.parent}while(e);e.props.id&&qLe(e.props.id)}function Lke(e,t,n){return XLe(e,n)}function GD(e,t,n,r){const i=`${e.name}-set`,o=e.hook.setErrors.dispatch({localErrors:n,childErrors:r});
715return NLe(e,o.localErrors,o.childErrors).forEach(s=>{e.store.apply(s,a=>a.meta.source===i)}),e}function kke(e,t,n=!0,r){return GD(e,t,[]),n&&(r=r||`${e.name}-set`,e.walk(i=>{i.store.filter(o=>!(o.type==="error"&&o.meta&&o.meta.source===r))})),e}function Mke(e){return yt(e.props,"id")||(e.props.id=`input_${nke++}`),e}function Rke(e){const t={initial:typeof e=="object"?hs(e):e};let n,r=!0;return new Proxy(t,{get(...i){const[o,s]=i;if(yt(t,s))return Reflect.get(...i);if(n&&typeof s=="string"&&n.config[s]!==void 0)return n.config[s]},set(i,o,s,a){if(o==="_n")return n=s,!0;if(o==="_emit")return r=s,!0;const{prop:l,value:u}=n.hook.prop.dispatch({prop:o,value:s});if(!Ts(t[l],u,!1)||typeof u=="object"){const c=Reflect.set(i,l,u,a);return r&&(n.emit("prop",{prop:l,value:u}),typeof l=="string"&&n.emit(`prop:${l}`,u)),c}return!0}})}function Pke(e,t){if(e.props.definition)return e.define(e.props.definition);for(const n of t){if(e.props.definition)return;typeof n.library=="function"&&n.library(e)}}function Oke(e){const t=BD(e),n=WD(e.config||{},e.parent);return{_d:0,_e:OD(),_resolve:!1,_tmo:!1,_value:t,children:bLe(e.children||[]),config:n,hook:eke(),isCreated:!1,isSettled:!0,ledger:VLe(),name:rke(e),parent:e.parent||null,plugins:new Set,props:Rke(t),settled:Promise.resolve(t),store:kLe(!0),traps:QLe(),type:e.type||"input",value:t}}function $ke(e,t){var n;if(e.ledger.init(e.store._n=e.props._n=e.config._n=e),e.props._emit=!1,t.props&&Object.assign(e.props,t.props),e.props._emit=!0,Pke(e,new Set([...t.plugins||[],...e.parent?e.parent.plugins:[]])),t.plugins)for(const r of t.plugins)nT(e,e._c,r,!0,!1);return Mke(e),e.each(r=>e.add(r)),e.parent&&e.parent.add(e,t.index),e.type==="input"&&e.children.length&&li(100,e),UD(e,e._c,e._value,!1),e.store.release(),!((n=t.props)===null||n===void 0)&&n.id&&jLe(e),e.emit("created",e),e.isCreated=!0,e}function Nke(e){const t=e||{},n=Oke(t),r=new Proxy(n,{get(...i){const[,o]=i;if(o==="__FKNode__")return!0;const s=n.traps.get(o);return s&&s.get?s.get(r,n):Reflect.get(...i)},set(...i){const[,o,s]=i,a=n.traps.get(o);return a&&a.set?a.set(r,n,o,s):Reflect.set(...i)}});return $ke(r,t)}function gS(e){return typeof e!="string"&&yt(e,"$el")}function yS(e){return typeof e!="string"&&yt(e,"$cmp")}function xu(e){return!e||typeof e=="string"?!1:yt(e,"if")&&yt(e,"then")}function Hke(e){return typeof e!="string"&&"$formkit"in e}function Dke(e){if(typeof e=="string")return{$el:"text",children:e};if(Hke(e)){const{$formkit:t,for:n,if:r,children:i,bind:o,...s}=e;return Object.assign({$cmp:"FormKit",props:{...s,type:t}},r?{if:r}:{},n?{for:n}:{},i?{children:i}:{},o?{bind:o}:{})}return e}function ji(e){let t;const n=new Set,r=function(v,g){return typeof v=="function"?v(g):v},i=[{"&&":(m,v,g)=>r(m,g)&&r(v,g),"||":(m,v,g)=>r(m,g)||r(v,g)},{"===":(m,v,g)=>r(m,g)===r(v,g),"!==":(m,v,g)=>r(m,g)!==r(v,g),"==":(m,v,g)=>r(m,g)==r(v,g),"!=":(m,v,g)=>r(m,g)!=r(v,g),">=":(m,v,g)=>r(m,g)>=r(v,g),"<=":(m,v,g)=>r(m,g)<=r(v,g),">":(m,v,g)=>r(m,g)>r(v,g),"<":(m,v,g)=>r(m,g)<r(v,g)},{"+":(m,v,g)=>r(m,g)+r(v,g),"-":(m,v,g)=>r(m,g)-r(v,g)},{"*":(m,v,g)=>r(m,g)*r(v,g),"/":(m,v,g)=>r(m,g)/r(v,g),"%":(m,v,g)=>r(m,g)%r(v,g)}],o=i.reduce((m,v)=>m.concat(Object.keys(v)),[]),s=new Set(o.map(m=>m.charAt(0)));function a(m,v,g,y){const _=m.filter(b=>b.startsWith(v));return _.length?_.find(b=>y.length>=g+b.length&&y.substring(g,g+b.length)===b?b:!1):!1}function l(m,v,g=1){let y=g?v.substring(m+1).trim():v.substring(0,m).trim();if(!y.length)return-1;if(!g){const b=y.split("").reverse(),S=b.findIndex(C=>s.has(C));y=b.slice(S).join("")}const _=y[0];return i.findIndex(b=>{const S=Object.keys(b);return!!a(S,_,0,y)})}function u(m,v){let g="";const y=v.length;let _=0;for(let b=m;b<y;b++){const S=v.charAt(b);if(S==="(")_++;else if(S===")")_--;else if(_===0&&S===" ")continue;if(_===0&&a(o,S,b,v))return[g,b-1];g+=S}return[g,v.length-1]}function c(m,v=0){const g=i[v],y=m.length,_=Object.keys(g);let b=0,S=!1,C=null,E="",w=null,T,A="",L="",x="",k="",M=0;const z=(P,H)=>{P?x+=H:E+=H};for(let P=0;P<y;P++)if(A=L,L=m.charAt(P),(L==="'"||L==='"')&&A!=="\\"&&(b===0&&!S||b&&!k)){b?k=L:S=L,z(b,L);continue}else if(S&&(L!==S||A==="\\")||k&&(L!==k||A==="\\")){z(b,L);continue}else if(S===L){S=!1,z(b,L);continue}else if(k===L){k=!1,z(b,L);continue}else{if(L===" ")continue;if(L==="(")b===0?M=P:x+=L,b++;else if(L===")")if(b--,b===0){const H=typeof E=="string"&&E.startsWith("$")?E:void 0,q=H&&m.charAt(P+1)===".";let de="";q&&([de,P]=u(P+2,m));const se=C?v:l(M,m,0),W=l(P,m);se===-1&&W===-1?E=d(x,-1,H,de):C&&(se>=W||W===-1)&&v===se?(w=C.bind(null,d(x,-1,H,de)),C=null,E=""):W>se&&v===W?E=d(x,-1,H,de):E+=`(${x})${q?`.${de}`:""}`,x=""}else x+=L;else if(b===0&&(T=a(_,L,P,m))){P===0&&li(103,[T,m]),P+=T.length-1,P===m.length-1&&li(104,[T,m]),C?E&&(w=C.bind(null,d(E,v)),C=g[T].bind(null,w),E=""):w?(C=g[T].bind(null,d(w,v)),w=null):(C=g[T].bind(null,d(E,v)),E="");continue}else z(b,L)}return E&&C&&(C=C.bind(null,d(E,v))),C=!C&&w?w:C,!C&&E&&(C=(P,H)=>typeof P=="function"?P(H):P,C=C.bind(null,d(E,v))),!C&&!E&&li(105,m),C}function d(m,v,g,y){if(g){const _=d(g,i.length);let b,S=y?ji(`$${y}`):!1;if(typeof _=="function"){const C=wLe(String(m)).map(E=>d(E,-1));return E=>{const w=_(E);return typeof w!="function"?(Qp(150,g),w):(b=w(...C.map(T=>typeof T=="function"?T(E):T)),S&&(S=S.provide(T=>{const A=t(T);return T.reduce((x,k)=>{if(k===y||(y==null?void 0:y.startsWith(`${k}(`))){const z=TLe(b,k);x[k]=()=>z}else x[k]=A[k];return x},{})})),S?S():b)}}}else if(typeof m=="string"){if(m==="true")return!0;
715if(m==="false")return!1;if(m==="undefined")return;if(ELe(m))return CLe(m.substring(1,m.length-1));if(!isNaN(+m))return Number(m);if(v<i.length-1)return c(m,v+1);if(m.startsWith("$")){const _=m.substring(1);return n.add(_),function(S){return _ in S?S[_]():void 0}}return m}return m}const f=c(e.startsWith("$:")?e.substring(2):e),p=Array.from(n);function h(m){return t=m,Object.assign(f.bind(null,m(p)),{provide:h})}return Object.assign(f,{provide:h})}function Jm(e,t,n){return n?typeof n=="string"?n.split(" ").reduce((i,o)=>Object.assign(i,{[o]:!0}),{}):typeof n=="function"?Jm(e,t,n(t,e)):n:{}}function Vke(e,t,...n){const r=n.reduce((i,o)=>{if(!o)return i;const{$reset:s,...a}=o;return s?a:Object.assign(i,a)},{});return Object.keys(e.hook.classes.dispatch({property:t,classes:r}).classes).filter(i=>r[i]).join(" ")||null}const Eg="1.0.0-beta.9";function Fke(...e){const t=e.reduce((r,i)=>Pl(r,i),{}),n=()=>{};return n.library=function(r){const i=nc(r.props.type);yt(t,i)&&r.define(t[i])},n}const Ma=wt("outer",()=>({$el:"div",attrs:{key:"$id","data-type":"$type","data-multiple":"$attrs.multiple","data-disabled":"$disabled || undefined","data-complete":"$state.complete || undefined","data-invalid":"$state.valid === false && $state.validationVisible || undefined","data-errors":"$state.errors || undefined","data-submitted":"$state.submitted || undefined","data-
715prefix-icon":"$_rawPrefixIcon !== undefined || undefined","data-suffix-icon":"$_rawSuffixIcon !== undefined || undefined","data-prefix-icon-click":"$onPrefixIconClick !== undefined || undefined","data-suffix-icon-click":"$onSuffixIconClick !== undefined || undefined"}}),!0),As=wt("inner","div"),cd=wt("wrapper","div"),th=wt("label",()=>({$el:"label",if:"$label",attrs:{for:"$id"}})),Ms=wt("messages",()=>({$el:"ul",if:"$fns.length($messages)"})),Rs=wt("message",()=>({$el:"li",for:["message","$messages"],attrs:{key:"$message.key",id:"$id + '-' + $message.key","data-message-type":"$message.type"}})),Do=wt("prefix",null),Vo=wt("suffix",null),Fo=wt("help",()=>({$el:"div",if:"$help",attrs:{id:'$: "help-" + $id'}})),zD=wt("fieldset",()=>({$el:"fieldset",attrs:{id:"$id","aria-describedby":{if:"$help",then:'$: "help-" + $id',else:void 0}}})),Cg=wt("decorator",()=>({$el:"span",attrs:{"aria-hidden":"true"}})),wg=wt("input",()=>({$el:"input",bind:"$attrs",attrs:{type:"$type",name:"$node.props.altName || $node.name",disabled:"$option.attrs.disabled || $disabled",onInput:"$handlers.toggleChecked",checked:"$fns.eq($_value, $onValue)",onBlur:"$handlers.blur",value:"$: true",id:"$id","aria-describedby":{if:"$options.length",then:{if:"$option.help",then:'$: "help-" + $option.attrs.id',else:void 0},else:{if:"$help",then:'$: "help-" + $id',else:void 0}}}})),qD=wt("legend",()=>({$el:"legend",if:"$label"})),KD=wt("option",()=>({$el:"li",for:["option","$options"],attrs:{"data-disabled":"$option.attrs.disabled || $disabled"}})),XD=wt("options","ul"),Tg=wt("wrapper",()=>({$el:"label",attrs:{"data-disabled":{if:"$options.length",then:void 0,else:"$disabled"}}})),ZD=wt("optionHelp",()=>({$el:"div",if:"$option.help",attrs:{id:'$: "help-" + $option.attrs.id'}})),Ag=wt("label","span"),Bke=wt("input",()=>({$el:"button",bind:"$attrs",attrs:{type:"$type",disabled:"$disabled",name:"$node.name",id:"$id"}})),Uke=wt("default",null),jke=wt("input",()=>({$el:"input",bind:"$attrs",attrs:{type:"file",disabled:"$disabled",name:"$node.name",onChange:"$handlers.files",onBlur:"$handlers.blur",id:"$id","aria-describedby":"$describedBy"}})),Wke=wt("fileItem",()=>({$el:"li",for:["file","$value"]})),Gke=wt("fileList",()=>({$el:"ul",if:"$value.length",attrs:{"data-has-multiple":{if:"$value.length > 1",then:"true"}}})),zke=wt("fileName",()=>({$el:"span",attrs:{class:"$classes.fileName"}})),Wk=wt("fileRemove",()=>({$el:"button",attrs:{onClick:"$handlers.resetFiles"}})),qke=wt("noFiles",()=>({$el:"span",if:"$value.length == 0"})),Kke=wt("form",()=>({$el:"form",bind:"$attrs",attrs:{id:"$id",name:"$node.name",onSubmit:"$handlers.submit","data-loading":"$state.loading || undefined"}}),!0),Xke=wt("actions",()=>({$el:"div",if:"$actions"})),Zke=wt("submit",()=>({$cmp:"FormKit",bind:"$submitAttrs",props:{ignore:!0,type:"submit",disabled:"$disabled",label:"$submitLabel"}})),YD=wt("input",()=>({$el:"input",bind:"$attrs",attrs:{type:"$type",disabled:"$disabled",name:"$node.name",onInput:"$handlers.DOMInput",onBlur:"$handlers.blur",value:"$_value",id:"$id","aria-describedby":"$describedBy"}})),JD=wt("wrapper",null,!0),Yke=wt("input",()=>({$el:"select",bind:"$attrs",attrs:{id:"$id","data-placeholder":{if:"$placeholder",then:{if:"$value",then:void 0,else:"true"}},disabled:"$disabled",class:"$classes.input",name:"$node.name",onInput:"$handlers.selectInput",onBlur:"$handlers.blur","aria-describedby":"$describedBy"}})),Jke=wt("option",()=>({$el:"option",for:["option","$options"],bind:"$option.attrs",attrs:{class:"$classes.option",value:"$option.value",selected:"$fns.isSelected($option.value)"}})),Qke=()=>({$el:null,if:"$options.length",for:["option","$options"],children:"$slots.option"}),eMe=wt("input",()=>({$el:"textarea",bind:"$attrs",attrs:{disabled:"$disabled",name:"$node.name",onInput:"$handlers.DOMInput",onBlur:"$handlers.blur",value:"$_value",id:"$id","aria-describedby":"$describedBy"},children:"$initialValue"})),Br=(e,t)=>wt(`${e}Icon`,()=>{const n=`_raw${e.charAt(0).toUpperCase()}${e.slice(1)}Icon`;return{if:`$${e}Icon && $${n}`,$el:`${t||"span"}`,attrs:{class:`$classes.${e}Icon + " formkit-icon"`,innerHTML:`$${n}
715`,onClick:`$handlers.iconClick(${e})`,for:{if:`${t==="label"}`,then:"$id"}}}})();function QD(e){return function(t,n){return t.prop==="options"&&Array.isArray(t.value)&&(t.value=t.value.map(r=>{var i;return!((i=r.attrs)===null||i===void 0)&&i.id?r:Pl(r,{attrs:{id:`${e.name}-option-${Zw(String(r.value))}`}})}),e.props.type==="checkbox"&&!Array.isArray(e.value)&&(e.isCreated?e.input([],!1):e.on("created",()=>{Array.isArray(e.value)||e.input([],!1)}))),n(t)}}function tMe(e){let t=1;return Array.isArray(e)?e.map(n=>typeof n=="string"||typeof n=="number"?{label:n,value:n}:(typeof n=="object"&&"value"in n&&typeof n.value!="string"&&Object.assign(n,{value:`__mask_${t++}`,__original:n.value}),n)):Object.keys(e).map(n=>({label:e[n],value:n}))}function Ol(e,t){if(Array.isArray(e)){for(const n of e)if(t==n.value)return"__original"in n?n.__original:n.value}return t}function $c(e,t){return e==t?!0:Pc(e)&&Pc(t)?Ts(e,t):!1}function rT(e){e.hook.prop((t,n)=>{if(t.prop==="options"){const r=tMe(t.value);t.value=r}return n(t)})}function nMe(e,t){const n=t.target;if(n instanceof HTMLInputElement){const r=Array.isArray(e.props.options)?Ol(e.props.options,n.value):n.value;Array.isArray(e.props.options)&&e.props.options.length?Array.isArray(e._value)?e._value.some(i=>$c(r,i))?e.input(e._value.filter(i=>!$c(r,i))):e.input([...e._value,r]):e.input([r]):n.checked?e.input(e.props.onValue):e.input(e.props.offValue)}}function rMe(e,t){var n,r;return(n=e.context)===null||n===void 0||n.value,(r=e.context)===null||r===void 0||r._value,Array.isArray(e._value)?e._value.some(i=>$c(Ol(e.props.options,t),i)):!1}function iMe(e){e.on("created",()=>{var t,n;!((t=e.context)===null||t===void 0)&&t.handlers&&(e.context.handlers.toggleChecked=nMe.bind(null,e)),!((n=e.context)===null||n===void 0)&&n.fns&&(e.context.fns.isChecked=rMe.b
715ind(null,e)),yt(e.props,"onValue")||(e.props.onValue=!0),yt(e.props,"offValue")||(e.props.offValue=!1)}),e.hook.prop(QD(e))}function iT(e){e.on("created",()=>{e.props.disabled=as(e.props.disabled)}),e.hook.prop(({prop:t,value:n},r)=>(n=t==="disabled"?as(n):n,r({prop:t,value:n}))),e.on("prop:disabled",({payload:t})=>{e.config.disabled=as(t)}),e.on("created",()=>{e.config.disabled=as(e.props.disabled)})}function Qm(e,t){return n=>{n.store.set(ro({key:e,type:"ui",value:t||e,meta:{localize:!0,i18nArgs:[n]}}))}}const Gk=typeof window<"u";function eV(e){e.target instanceof HTMLElement&&e.target.hasAttribute("data-file-hover")&&e.target.removeAttribute("data-file-hover")}function zk(e,t){t.target instanceof HTMLInputElement?e==="dragover"&&t.target.setAttribute("data-file-hover","true"):t.preventDefault(),e==="drop"&&eV(t)}function oMe(e){Qm("noFiles","Select file")(e),Qm("removeAll","Remove all")(e),Qm("remove")(e),Gk&&(window._FormKit_File_Drop||(window.addEventListener("dragover",zk.bind(null,"dragover")),window.addEventListener("drop",zk.bind(null,"drop")),window.addEventListener("dragleave",eV),window._FormKit_File_Drop=!0)),e.on("created",()=>{Array.isArray(e.value)||e.input([],!1),e.context&&(e.context.handlers.resetFiles=t=>{if(t.preventDefault(),e.input([]),e.props.id&&Gk){const n=document.getElementById(e.props.id);n&&(n.value="")}},e.context.handlers.files=t=>{var n,r;const i=[];if(t.target instanceof HTMLInputElement&&t.target.files){for(let o=0;o<t.target.files.length;o++){let s;(s=t.target.files.item(o))&&i.push({name:s.name,file:s})}e.input(i)}e.context&&(e.context.files=i),typeof((n=e.props.attrs)===null||n===void 0?void 0:n.onChange)=="function"&&((r=e.props.attrs)===null||r===void 0||r.onChange(t))})})}async function sMe(e,t){if(t.preventDefault(),await e.settled,e.walk(n=>{n.store.set(ro({key:"submitted",value:!0,visible:!1}))}),typeof e.props.onSubmitRaw=="function"&&e.props.onSubmitRaw(t,e),e.ledger.value("blocking"))e.props.incompleteMessage!==!1&&e.store.set(ro({blocking:!1,key:"incomplete",meta:{localize:e.props.incompleteMessage===void 0,i18nArgs:[{node:e}],showAsMessage:!0},type:"ui",value:e.props.incompleteMessage||"Form incomplete."}));else if(typeof e.props.onSubmit=="function"){const n=e.props.onSubmit(e.hook.submit.dispatch(Oc(e.value)),e);if(n instanceof Promise){const r=e.props.disabled===void 0&&e.props.submitBehavior!=="live";r&&(e.props.disabled=!0),e.store.set(ro({key:"loading",value:!0,visible:!1})),await n,r&&(e.props.disabled=!1),e.store.remove("loading")}}else t.target instanceof HTMLFormElement&&t.target.submit()}function aMe(e){e.props.isForm=!0,e.on("created",()=>{var t;!((t=e.context)===null||t===void 0)&&t.handlers&&(e.context.handlers.submit=sMe.bind(null,e)),yt(e.props,"actions")||(e.props.actions=!0)}),e.on("settled:blocking",()=>e.store.remove("incomplete"))}function lMe(e){e.props.ignore===void 0&&(e.props.ignore=!0,e.parent=null)}function uMe(e){e.on("created",()=>{e.context&&(e.context.initialValue=e.value||"")})}function cMe(e,t){t.target instanceof HTMLInputElement&&e.input(Ol(e.props.options,t.target.value))}function dMe(e,t){var n,r;return(n=e.context)===null||n===void 0||n.value,(r=e.context)===null||r===void 0||r._value,$c(Ol(e.props.options,t),e._value)}function fMe(e){e.on("created",()=>{var t,n;Array.isArray(e.props.options)||Qp(350,e),!((t=e.context)===null||t===void 0)&&t.handlers&&(e.context.handlers.toggleChecked=cMe.bind(null,e)),!((n=e.context)===null||n===void 0)&&n.fns&&(e.context.fns.isChecked=dMe.bind(null,e))}),e.hook.prop(QD(e))}function pMe(e,t){e.context&&e.context.value;const n=Ol(e.props.options,t);return Array.isArray(e._value)?e._value.some(r=>$c(r,n)):e.value===void 0&&!t||$c(n,e._value)}function hMe(e,t){const n=t.target,r=n.hasAttribute("multiple")?Array.from(n.selectedOptions).map(i=>Ol(e.props.options,i.value)):Ol(e.props.options,n.value);e.input(r)}function qk(e,t){return e.some(n=>n.attrs&&n.attrs["data-is-placeholder"])?e:[{label:t,value:"",attrs:{hidden:!0,disabled:!0,"data-is-placeholder":"true"}},...e]}function mMe(e){e.on("created",()=>{var t,n,r;const i=as((t=e.props.attrs)===null||t===void 0?void 0:t.multiple);!i&&e.props.placeholder&&Array.isArray(e.props.options)&&(e.hook.prop(({prop:o,value:s},a)=>(o==="options"&&(s=qk(s,e.props.placeholder)),a({prop:o,value:s}))),e.props.options=qk(e.props.options,e.props.placeholder)),i?e.value===void 0&&e.input([],!1):e.context&&!e.context.options&&(e.props.attrs=Object.assign({},e.props.attrs,{value:e._value}),e.on("input",({payload:o})=>{e.props.attrs=Object.assign({},e.props.attrs,{value:o})})),!((n=e.context)===null||n===void 0)&&n.handlers&&(e.context.handlers.selectInput=hMe.bind(null,e)),!((r=e.context)===null||r===void 0)&&r.fns&&(e.context.fns.isSelected=pMe.bind(null,e))}),e.hook.input((t,n)=>{var r,i,o;return!e.props.placeholder&&t===void 0&&Array.isArray((r=e.props)===null||r===void 0?void 0:r.options)&&e.props.options.length&&!as((o=(i=e.props)===null||i===void 0?void 0:i.attrs)===null||o===void 0?void 0:o.multiple)&&(t="__original"in e.props.options[0]?e.props.options[0].__original:e.props.options[0].value),n(t)})}function bS(e,t){return n=>{n.props[`${e}Icon`]===void 0&&(n.props[`${e}Icon`]=`default:${t}`)}}function _S(e){return typeof e=="object"&&("$el"in e||"$cmp"in e||"$formkit"in e)}function tV(e){return!!(xu(e)&&e.if&&e.if.startsWith("$slots.")&&t
715ypeof e.then=="string"&&e.then.startsWith("$slots.")&&"else"in e)}function Bd(e,t={}){return typeof e=="string"?_S(t)||typeof t=="string"?t:e:Array.isArray(e)?_S(t)?t:e:Pl(e,t)}function vMe(e){return Ma(cd(th("$label"),As(Do(),e(),Vo())),Fo("$help"),Ms(Rs("$message.value")))}function wt(e,t,n=!1){return(...r)=>{const i=o=>{const s=!t||typeof t=="string"?{$el:t}:t();return(gS(s)||yS(s))&&(s.meta||(s.meta={section:e}),r.length&&!s.children&&(s.children=[...r.map(a=>typeof a=="string"?a:a(o))]),gS(s)&&(s.attrs={class:`$classes.${e}`,...s.attrs||{}})),{if:`$slots.${e}`,then:`$slots.${e}`,else:e in o?Bd(s,o[e]):s}};return n?nV(i):i}}function nV(e){return t=>[e(t)]}function wi(e,t,n){return r=>{const i=t(r);return n?{if:e,then:i,else:n(r)}:(tV(i)?Object.assign(i.else,{if:e}):_S(i)&&Object.assign(i,{if:e}),i)}}function rV(e,t){return n=>{const r=e({});return tV(r)?(Array.isArray(r.else)||(r.else=Bd(Bd(r.else,t),n)),r):Bd(Bd(r,t),n)}}function gMe(e){return nV(e)}const Kk={schema:Ma(Ms(Rs("$message.value")),cd(Bke(Br("prefix"),Do(),Uke("$label || $ui.submit.value"),Vo(),Br("suffix"))),Fo("$help")),type:"input",props:[],features:[Qm("submit"),lMe]},yMe={schema:Ma(wi("$options == undefined",Tg(As(Do(),wg(),Cg(),Vo()),wi("$label",Ag("$label"))),zD(qD("$label"),Fo("$help"),XD(KD(Tg(As(Do(),rV(wg(),{bind:"$option.attrs",attrs:{id:"$option.attrs.id",value:"$option.value",checked:"$fns.isChecked($option.value)"}}),Cg(),Vo()),wi("$option.label",Ag("$option.label"))),ZD("$option.help"))))),wi("$options.length === 0 && $help",Fo("$help")),Ms(Rs("$message.value"))),type:"input",props:["options","onValue","offValue"],features:[rT,iMe]},bMe={schema:Ma(cd(th("$label"),As(Br("prefix","label"),Do(),jke(),Gke(Wke(Br("fileItem"),zke("$file.name"),wi("$value.length === 1",Wk(Br("fileRemove"),"$ui.remove.value")))),wi("$value.length > 1",Wk("$ui.removeAll.value")),qke(Br("fileItem"),"$ui.noFiles.value"),Vo(),Br("suffix"))),Fo("$help"),Ms(Rs("$message.value"))),type:"input",props:[],features:[oMe,bS("fileItem","fileDoc"),bS("fileRemove","close")]},_Me={schema:Kke("$slots.default",Ms(Rs("$message.value")),Xke(Zke())),type:"group",props:["actions","submit","submitLabel","submitAttrs","submitBehavior","incompleteMessage"],features:[aMe,iT]},SMe={schema:JD("$slots.default"),type:"group",props:[],features:[iT]},EMe={schema:gMe(YD()),type:"input",props:[],features:[]},CMe={schema:JD("$slots.default"),type:"list",props:[],features:[iT]},wMe={schema:Ma(wi("$options == undefined",Tg(As(Do(),wg(),Cg(),Vo()),wi("$label",Ag("$label"))),zD(qD("$label"),Fo("$help"),XD(KD(Tg(As(Do(),rV(wg(),{bind:"$option.attrs",attrs:{id:"$option.attrs.id",value:"$option.value",checked:"$fns.isChecked($option.value)"}}),Cg(),Vo()),wi("$option.label",Ag("$option.label"))),ZD("$option.help"))))),wi("$options.length === 0 && $help",Fo("$help")),Ms(Rs("$message.value"))),type:"input",props:["options","onValue","offValue"],features:[rT,fMe]},TMe={schema:Ma(cd(th("$label"),As(Br("prefix"),Do(),Yke(wi("$slots.default",()=>"$slots.default",wi("$slots.option",Qke,Jke("$option.label")))),Br("select"),Vo(),Br("suffix"))),Fo("$help"),Ms(Rs("$message.value"))),type:"input",props:["options","placeholder"],features:[rT,mMe,bS("select","down")]},AMe={schema:Ma(cd(th("$label"),As(Br("prefix","label"),Do(),eMe(),Vo(),Br("suffix"))),Fo("$help"),Ms(Rs("$message.value"))),type:"input",props:[],features:[uMe]},Pr={schema:Ma(cd(th("$label"),As(Br("prefix","label"),Do(),YD(),Vo(),Br("suffix"))),Fo("$help"),Ms(Rs("$message.value"))),type:"input",props:[],features:[]};var IMe=Object.freeze({__proto__:null,button:Kk,submit:Kk,checkbox:yMe,file:bMe,form:_Me,group:SMe,hidden:EMe,list:CMe,radio:wMe,select:TMe,textarea:AMe,text:Pr,color:Pr,date:Pr,datetimeLocal:Pr,email:Pr,month:Pr,number:Pr,password:Pr,search:Pr,tel:Pr,time:Pr,url:Pr,week:Pr,range:Pr});const xMe=function({value:t}){return["yes","on","1",1,!0,"true"].includes(t)},LMe=function({value:e},t=!1){const n=Date.parse(t||new Date),r=Date.parse(String(e));return isNaN(r)?!1:r>n},kMe=function({value:e},t="default"){const n={default:/^[a-zA-ZÃ-ÃÃ-öø-ÿÄÄ
ÄÄÄÄÄÄÄÄÄÄÅÅÅÅÅÅÅÅÅÅŠšŤťŮůŹźŻŽžż]+$/,latin:/^[a-zA-Z]+$/},r=yt(n,t)?t:"default";return n[r].test(String(e))},MMe=function({value:e},t="default"){const n={default:/^[a-zA-ZÃ-ÃÃ-öø-ÿÄÄ
ÄÄÄÄÄÄÄÄÄÄÅÅÅÅÅÅÅÅÅÅŠšŤťŮůŹźŻŽžż ]+$/,latin:/^[a-zA-Z ]+$/},r=yt(n,t)?t:"default";return n[r].test(String(e))},RMe=function({value:e},t="default"){const n={default:/^[a-zA-Z0-9Ã-ÃÃ-öø-ÿÄÄ
ÄÄÄÄÅÅÅÅÅÅŹźŻż]+$/,latin:/^[a-zA-Z0-9]+$/},r=yt(n,t)?t:"default";return n[r].test(String(e))},PMe=function({value:e},t=!1){const n=Date.parse(t||new Date),r=Date.parse(String(e));return isNaN(r)?!1:r<n},OMe=function({value:t},n,r){if(!isNaN(t)&&!isNaN(n)&&!isNaN(r)){const i=1*t;n=Number(n),r=Number(r);const[o,s]=n<=r?[n,r]:[r,n];return i>=1*o&&i<=1*s}return!1},Xk=/(_confirm(?:ed)?)$/,$Me=function(t,n,r="loose"){var i;n||(n=Xk.test(t.name)?t.name.replace(Xk,""):`${t.name}_confirm`);const o=(i=t.at(n))===null||i===void 0?void 0:i.value;return r==="strict"?t.value===o:t.value==o},NMe=function({value:t},n,r){n=n instanceof Date?n.getTime():Date.parse(n),r=r instanceof Date?r.getTime():Date.parse(r);const i=t instanceof Date?t.getTime():Date.parse(String(t));if(n&&!r)r=n,n=Date.now();else if(!n||!i)return!1;return i>=n&&i<=r},HMe=function({value:t},n){return n&&typeof n=="string"?SLe(n).test(String(t)):!isNaN(Date.parse(String(t)))},DMe=function({value:t}){return/^(([^<>()\[\]\.,;:\s@\"]+(\.[^<>()\[\]\.,;:\s@\"]+)*)|(\".+\"))@(([^<>()[\]\.,;:\s@\"]+\.)+[^<>()[\]\.,;:\s@\"]{2,})$/i.test(String(t))},VMe=function({value:t}
715,...n){return typeof t=="string"&&n.length?n.some(r=>t.endsWith(r)):typeof t=="string"&&n.length===0},FMe=function({value:t},...n){return n.some(r=>typeof r=="object"?Ts(r,t):r==t)},BMe=function({value:t},n=0,r=1/0){n=parseInt(n),r=isNaN(parseInt(r))?1/0:parseInt(r);const i=n<=r?n:r,o=r>=n?r:n;if(typeof t=="string"||Array.isArray(t))return t.length>=i&&t.length<=o;if(t&&typeof t=="object"){const s=Object.keys(t).length;return s>=i&&s<=o}return!1},UMe=function({value:t},...n){return n.some(r=>(typeof r=="string"&&r.substr(0,1)==="/"&&r.substr(-1)==="/"&&(r=new RegExp(r.substr(1,r.length-2))),r instanceof RegExp?r.test(String(t)):r===t))},jMe=function({value:t},n=10){return Array.isArray(t)?t.length<=n:Number(t)<=Number(n)},WMe=function({value:t},n=1){return Array.isArray(t)?t.length>=n:Number(t)>=Number(n)},GMe=function({value:t},...n){return!n.some(r=>typeof r=="object"?Ts(r,t):r===t)},zMe=function({value:t}){return!isNaN(t)},iV=function({value:t},n="default"){return n==="trim"&&typeof t=="string"?!op(t.trim()):!op(t)};iV.skipEmpty=!1;const qMe=function({value:t}
715,...n){return typeof t=="string"&&n.length?n.some(r=>t.startsWith(r)):typeof t=="string"&&n.length===0},KMe=function({value:t},...n){try{const r=n.length?n:["http:","https:"],i=new URL(String(t));return r.includes(i.protocol)}catch{return!1}},XMe=Object.freeze(Object.defineProperty({__proto__:null,accepted:xMe,alpha:kMe,alpha_spaces:MMe,alphanumeric:RMe,between:OMe,confirm:$Me,date_after:LMe,date_before:PMe,date_between:NMe,date_format:HMe,email:DMe,ends_with:VMe,is:FMe,length:BMe,matches:UMe,max:jMe,min:WMe,not:GMe,number:zMe,required:iV,starts_with:qMe,url:KMe},Symbol.toStringTag,{value:"Module"})),oV=new WeakSet;function Ig(e,t){const n=t||Object.assign(new Map,{active:!1}),r=new Map,i=function(c){var d;n.active&&(n.has(e)||n.set(e,new Set),(d=n.get(e))===null||d===void 0||d.add(c))},o=function(c){return new Proxy(c,{get(...d){return typeof d[1]=="string"&&i(`prop:${d[1]}`),Reflect.get(...d)}})},s=function(c){return new Proxy(c,{get(...d){return d[1]==="value"?f=>(i(`count:${f}`),c.value(f)):Reflect.get(...d)}})},a=function(c,d){return eh(c)?Ig(c,n):(d==="value"&&i("commit"),d==="props"?o(c):d==="ledger"?s(c):c)},{proxy:l,revoke:u}=Proxy.revocable(e,{get(...c){switch(c[1]){case"deps":return n;case"watch":return f=>lV(l,f);case"observe":return()=>{const f=new Map(n);return n.clear(),n.active=!0,f};case"stopObserve":return()=>{const f=new Map(n);return n.active=!1,f};case"receipts":return r;case"kill":return()=>{aV(r),oV.add(c[2]),u()}}const d=Reflect.get(...c);return typeof d=="function"?(...f)=>{const p=d(...f);return a(p,c[1])}:a(d,c[1])}});return l}function sV(e,[t,n],r){t.forEach((i,o)=>{i.forEach(s=>{e.receipts.has(o)||e.receipts.set(o,{}),e.receipts.set(o,Object.assign(e.receipts.get(o),{[s]:o.on(s,r)}))})}),n.forEach((i,o)=>{i.forEach(s=>{if(e.receipts.has(o)){const a=e.receipts.get(o);a&&yt(a,s)&&(o.off(a[s]),delete a[s],e.receipts.set(o,a))}})})}function aV(e){e.forEach((t,n)=>{for(const r in t)n.off(t[r])})}async function lV(e,t){const n=new Map(e.deps);e.observe();const r=t(e);r instanceof Promise&&await r;const i=e.stopObserve();sV(e,uV(n,i),()=>lV(e,t))}function uV(e,t){const n=new Map,r=new Map;return t.forEach((i,o)=>{if(!e.has(o))n.set(o,i);else{const s=new Set,a=e.get(o);i.forEach(l=>!(a!=null&&a.has(l))&&s.add(l)),n.set(o,s)}}),e.forEach((i,o)=>{if(!t.has(o))r.set(o,i);else{const s=new Set,a=t.get(o);i.forEach(l=>!(a!=null&&a.has(l))&&s.add(l)),r.set(o,s)}}),[n,r]}function ZMe(e){return oV.has(e)}const Zk=ro({type:"state",blocking:!0,visible:!1,value:!0,key:"validating"});function YMe(e={}){return function(n){const r=Object.assign({},e,n.props.validationRules);let i=Ig(n);const o={input:C0(),rerun:null,isPassing:!0};let s=hs(n.props.validation);n.on("prop:validation",({payload:a})=>{Ts(s,a)||(s=hs(a),aV(i.receipts),n.store.filter(()=>!1,"validation"),n.props.parsedRules=Jk(a,r),i.kill(),i=Ig(n),SS(i,n.props.parsedRules,o))}),n.props.parsedRules=Jk(s,r),SS(i,n.props.parsedRules,o)}}function SS(e,t,n){ZMe(e)||(n.input=C0(),n.isPassing=!0,e.store.filter(r=>!r.meta.removeImmediately,"validation"),t.forEach(r=>r.debounce&&clearTimeout(r.timer)),t.length&&(e.store.set(Zk),ES(0,t,e,n,!1,()=>{e.store.remove(Zk.key)})))}function ES(e,t,n,r,i,o){const s=t[e];if(!s)return o();const a=r.input;s.state=null;function l(u,c){r.isPassing=r.isPassing&&!!c,s.queued=!1;const d=n.stopObserve();sV(n,uV(s.deps,d),()=>{s.queued=!0,r.rerun&&clearTimeout(r.rerun),r.rerun=setTimeout(SS,0,n,t,r)}),s.deps=d,r.input===a&&(s.state=c,c===!1?e4e(n,s,i||u):QMe(n,s),t.length>e+1?ES(e+1,t,n,r,i||u,o):o())}(!op(n.value)||!s.skipEmpty)&&(r.isPassing||s.force)?s.queued?JMe(s,n,u=>{u instanceof Promise?u.then(c=>l(!0,c)):l(!1,u)}):ES(e+1,t,n,r,i,o):(op(n.value)&&s.skipEmpty&&r.isPassing&&(n.observe(),n.value),l(!1,null))}function JMe(e,t,n){e.debounce?e.timer=setTimeout(()=>{t.observe(),n(e.rule(t,...e.args))},e.debounce):(t.observe(),n(e.rule(t,...e.args)))}function QMe(e,t){const n=`rule_${t.name}`;yt(e.store,n)&&e.store.remove(n)}function e4e(e,t,n){const r=n4e(e,t),i=t4e(e,t,r),o=ro({blocking:t.blocking,key:`rule_${t.name}`,meta:{messageKey:t.name,removeImmediately:n,localize:!i,i18nArgs:r}
715,type:"validation",value:i||"This field is not valid."});return e.store.set(o),o}function t4e(e,t,n){const r=e.props.validationMessages&&yt(e.props.validationMessages,t.name)?e.props.validationMessages[t.name]:void 0;return typeof r=="function"?r(...n):r}function n4e(e,t){return[{node:e,name:r4e(e),args:t.args}]}function r4e(e){return typeof e.props.validationLabel=="function"?e.props.validationLabel(e):e.props.validationLabel||e.props.label||e.props.name||String(e.name)}const cV="(?:[\\*+?()0-9]+)",dV="[a-zA-Z][a-zA-Z0-9_]+",i4e=new RegExp(`^(${cV}?${dV})(?:\\:(.*)+)?$`,"i"),o4e=new RegExp(`^(${cV})(${dV})$`,"i"),s4e=/([\*+?]+)?(\(\d+\))([\*+?]+)?/,Yk=/\(\d+\)/,a4e={blocking:!0,debounce:0,force:!1,skipEmpty:!0,name:""};function Jk(e,t){return e?(typeof e=="string"?l4e(e):Oc(e)).reduce((r,i)=>{let o=i.shift();const s={};if(typeof o=="string"){const[a,l]=c4e(o);yt(t,a)&&(o=t[a],Object.assign(s,l))}return typeof o=="function"&&r.push({rule:o,args:i,timer:0,state:null,queued:!0,deps:new Map,...a4e,...d4e(s,o)}),r},[]):[]}function l4e(e){return e.split("|").reduce((t,n)=>{const r=u4e(n);return r&&t.push(r),t},[])}function u4e(e){const t=e.trim();if(t){const n=t.match(i4e);if(n&&typeof n[1]=="string"){const r=n[1].trim(),i=n[2]&&typeof n[2]=="string"?n[2].split(",").map(o=>o.trim()):[];return[r,...i]}}return!1}function c4e(e){const t=e.match(o4e);if(!t)return[e,{name:e}];const n={"*":{force:!0},"+":{skipEmpty:!1},"?":{blocking:!1}},[,r,i]=t,o=Yk.test(r)?r.match(s4e)||[]:[,r];return[i,[o[1],o[2],o[3]].reduce((s,a)=>(a&&(Yk.test(a)?s.debounce=parseInt(a.substr(1,a.length-1)):a.split("").forEach(l=>yt(n,l)&&Object.assign(s,n[l]))),s),{name:i})]}function d4e(e,t){return e.name||(e.name=t.ruleName||t.name),["skipEmpty","force","debounce","blocking"].reduce((n,r)=>(yt(t,r)&&!yt(n,r)&&Object.assign(n,{[r]:t[r]}),n),e)}function mn(e){return e[0].toUpperCase()+e.substr(1)}function Qk(e,t="or"){return e.reduce((n,r,i)=>(n+=r,i<=e.length-2&&e.length>2&&(n+=", "),i===e.length-2&&(n+=`${e.length===2?" ":""}${t} `),n),"")}function im(e){const t=typeof e=="string"?new Date(Date.parse(e)):e;return t instanceof Date?new Intl.DateTimeFormat(void 0,{dateStyle:"medium"}).format(t):"(unknown)"}function f4e(e,t){return Number(e)>=Number(t)?[t,e]:[e,t]}const p4e={add:"Add",remove:"Remove",removeAll:"Remove all",incomplete:"Sorry, not all fields are filled out correctly.",submit:"Submit",noFiles:"No file chosen"},h4e={accepted({name:e}){return`Please accept the ${e}.`},date_after({name:e,args:t}){return Array.isArray(t)&&t.length?`${mn(e)} must be after ${im(t[0])}.`:`${mn(e)} must be in the future.`},alpha({name:e}){return`${mn(e)} can only contain alphabetical characters.`},alphanumeric({name:e}){return`${mn(e)} can only contain letters and numbers.`},alpha_spaces({name:e}){return`${mn(e)} can only contain letters and spaces.`},date_before({name:e,args:t}){return Array.isArray(t)&&t.length?`${mn(e)} must be before ${im(t[0])}.`:`${mn(e)} must be in the past.`},between({name:e,args:t}){if(isNaN(t[0])||isNaN(t[1]))return"This field was configured incorrectly and canât be submitted.";const[n,r]=f4e(t[0],t[1]);return`${mn(e)} must be between ${n} and ${r}.`},confirm({name:e}){return`${mn(e)} does not match.`},date_format({name:e,args:t}){return Array.isArray(t)&&t.length?`${mn(e)} is not a valid date, please use the format ${t[0]}`:"This field was configured incorrectly and canât be submitted"},date_between({name:e,args:t}){return`${mn(e)} must be between ${im(t[0])} and ${im(t[1])}`},email:"Please enter a valid email address.",ends_with({name:e,args:t}){return`${mn(e)} doesnât end with ${Qk(t)}.`},is({name:e}){return`${mn(e)} is not an allowed value.`},length({name:e,args:[t=0,n=1/0]}){const r=Number(t)<=Number(n)?t:n,i=Number(n)>=Number(t)?n:t;return r==1&&i===1/0?`${mn(e)} must be at least one character.`:r==0&&i?`${mn(e)} must be less than or equal to ${i} characters.`:r&&i===1/0?`${mn(e)} must be greater than or equal to ${r} characters.`:`${mn(e)} must be between ${r} and ${i} characters.`},matches({name:e}){return`${mn(e)} is not an allowed value.`},max({name:e,node:{value:t},args:n}){return Array.isArray(t)?`Cannot have more than ${n[0]} ${e}.`:`${mn(e)} must be less than or equal to ${n[0]}.`},mime({name:e,args:t}){return t[0]?`${mn(e)} must be of the type: ${t[0]}`:"No file formats allowed."},min({name:e,node:{value:t},args:n}){return Array.isArray(t)?`Cannot have less than ${n[0]} ${e}.`:`${mn(e)} must be at least ${n[0]}.`},not({name:e,node:{value:t}}){return`â${t}â is not an allowed ${e}.`},number({name:e}){return`${mn(e)} must be a number.`},required({name:e}){return`${mn(e)} is required.`},starts_with({name:e,args:t}){return`${mn(e)} doesnât start with ${Qk(t)}.`}
715,url(){return"Please include a valid url."}};var m4e=Object.freeze({__proto__:null,ui:p4e,validation:h4e});function v4e(e){return function(n){let r=eM(n.config.locale,e),i=r?e[r]:{};n.on("prop:locale",({payload:o})=>{r=eM(o,e),i=r?e[r]:{},n.store.touch()}),n.on("prop:label",()=>n.store.touch()),n.on("prop:validationLabel",()=>n.store.touch()),n.hook.text((o,s)=>{var a,l;const u=((a=o.meta)===null||a===void 0?void 0:a.messageKey)||o.key;if(yt(i,o.type)&&yt(i[o.type],u)){const c=i[o.type][u];typeof c=="function"?o.value=Array.isArray((l=o.meta)===null||l===void 0?void 0:l.i18nArgs)?c(...o.meta.i18nArgs):c(o):o.value=c}return s(o)})}}function eM(e,t){if(yt(t,e))return e;const[n]=e.split("-");if(yt(t,n))return n;for(const r in t)return r;return!1}let Zi,yo=null,xg,fV=!1,Ud=!1;const g4e=new Promise(e=>{xg=()=>{fV=!0,e()}}),ms=typeof window<"u"&&typeof fetch<"u";Zi=ms?getComputedStyle(document.documentElement):void 0;const Vu={},hb={};function y4e(e,t,n,r){t&&Object.assign(Vu,t),ms&&!Ud&&(Zi!=null&&Zi.getPropertyValue("--formkit-theme"))?(xg(),Ud=!0):e&&!Ud&&ms?b4e(e):!Ud&&ms&&xg();const i=function(s){var a,l;s.addProps(["iconLoader","iconLoaderUrl"]),s.props.iconHandler=tM(!((a=s.props)===null||a===void 0)&&a.iconLoader?s.props.iconLoader:r,!((l=s.props)===null||l===void 0)&&l.iconLoaderUrl?s.props.iconLoaderUrl:n),E4e(s,s.props.iconHandler),s.on("created",()=>{var u;!((u=s==null?void 0:s.context)===null||u===void 0)&&u.handlers&&(s.context.handlers.iconClick=c=>{const d=`on${c.charAt(0).toUpperCase()}${c.slice(1)}IconClick`,f=s.props[d];if(f&&typeof f=="function")return p=>f(s,p)})})};return i.iconHandler=tM(r,n),i}function b4e(e){if(!(!e||!ms||typeof getComputedStyle!="function")&&(Ud=!0,yo=document.getElementById("formkit-theme"),e&&ms&&(!(Zi!=null&&Zi.getPropertyValue("--formkit-theme"))&&!yo||yo!=null&&yo.getAttribute("data-theme")&&(yo==null?void 0:yo.getAttribute("data-theme"))!==e))){const n=`https://cdn.jsdelivr.net/npm/@formkit/themes@${Eg.startsWith("__")?"latest":Eg}/dist/${e}/theme.css`,r=document.createElement("link");r.type="text/css",r.rel="stylesheet",r.id="formkit-theme",r.setAttribute("data-theme",e),r.onload=()=>{Zi=getComputedStyle(document.documentElement),xg()},document.head.appendChild(r),r.href=n,yo&&yo.remove()}}function tM(e,t){return n=>{if(typeof n=="boolean")return;if(n.startsWith("<svg"))return n;if(typeof n!="string")return;const r=Vu[n],i=n.startsWith("default:");n=i?n.split(":")[1]:n;let o;if(r||n in Vu)return r;if(!hb[n]){if(o=_4e(n),o=ms&&typeof o>"u"?Promise.resolve(o):o,o instanceof Promise)hb[n]=o.then(s=>!s&&typeof n=="string"&&!i?o=typeof e=="function"?e(n):S4e(n,t):s).then(s=>(typeof n=="string"&&(Vu[i?`default:${n}`:n]=s),s));else if(typeof o=="string")return Vu[i?`default:${n}`:n]=o,o}return hb[n]}}function _4e(e){if(ms)return fV?nM(e):g4e.then(()=>nM(e))}function nM(e){const t=Zi==null?void 0:Zi.getPropertyValue(`--fk-icon-${e}`);if(t){const n=atob(t);if(n.startsWith("<svg"))return Vu[e]=n,n}}function S4e(e,t){const n=Eg.startsWith("__")?"latest":Eg,r=typeof t=="function"?t(e):`https://cdn.jsdelivr.net/npm/@formkit/icons@${n}/dist/icons/${e}.svg`;if(ms)return fetch(`${r}`).then(async i=>{const o=await i.text();if(o.startsWith("<svg"))return o}).catch(i=>{console.error(i)})}function E4e(e,t){const n=/^[a-zA-Z-]+(?:-icon|Icon)$/;Object.keys(e.props).filter(i=>n.test(i)).forEach(i=>C4e(e,t,i))}function C4e(e,t,n){const r=e.props[n],i=t(r),o=`_raw${n.charAt(0).toUpperCase()}${n.slice(1)}`,s=`on${n.charAt(0).toUpperCase()}${n.slice(1)}Click`;if(e.addProps([o,s]),e.on(`prop:${n}`,w4e),i instanceof Promise)return i.then(a=>{e.props[o]=a});e.props[o]=i}function w4e(e){var t;const n=e.origin,r=e.payload,i=(t=n==null?void 0:n.props)===null||t===void 0?void 0:t.iconHandler,o=e.name.split(":")[1],s=`_raw${o.charAt(0).toUpperCase()}${o.slice(1)}`;if(i&&typeof i=="function"){const a=i(r);if(a instanceof Promise)return a.then(l=>{n.props[s]=l});n.props[s]=a}}let oT=!1;const rM={100:({data:e})=>`Only groups, lists, and forms can have children (${e.name}).`,101:({data:e})=>`You cannot directly modify the store (${e.name}
715). See: https://formkit.com/advanced/core#message-store`,102:({data:[e,t]})=>`You cannot directly assign node.${t} (${e.name})`,103:({data:[e]})=>`Schema expressions cannot start with an operator (${e})`,104:({data:[e,t]})=>`Schema expressions cannot end with an operator (${e} in "${t}")`,105:({data:e})=>`Invalid schema expression: ${e}`,106:({data:e})=>`Cannot submit because (${e}) is not in a form.`,107:({data:[e,t]})=>`Cannot set ${e.name} to non object value: ${t}`,108:({data:[e,t]})=>`Cannot set ${e.name} to non array value: ${t}`,600:({data:e})=>`Unknown input type${typeof e.props.type=="string"?' "'+e.props.type+'"':""} ("${e.name}")`,601:({data:e})=>`Input definition${typeof e.props.type=="string"?' "'+e.props.type+'"':""} is missing a schema or component property (${e.name}).`},iM={150:({data:e})=>`Schema function "${e}()" is not a valid function.`,151:({data:e})=>`No form element with id: ${e}`,152:({data:e})=>`No input element with id: ${e}`,350:({data:e})=>`Invalid options prop for radio input (${e.name}). See https://formkit.com/inputs/radio`,650:'Schema "$get()" must use the id of an input to access.',651:({data:e})=>`Cannot setErrors() on "${e}" because no such id exists.`,652:({data:e})=>`Cannot clearErrors() on "${e}" because no such id exists.`,800:({data:e})=>`${e} is deprecated.`},T4e=(e,t)=>{if(e.code in rM){const n=rM[e.code];e.message=typeof n=="function"?n(e):n}return t(e)};oT||Jw(T4e);const A4e=(e,t)=>{if(e.code in iM){const n=iM[e.code];e.message=typeof n=="function"?n(e):n}return t(e)};oT||Qw(A4e);oT=!0;const mb={};let Er;const Xa=new Map,I4e="__raw__",x4e=/[a-zA-Z0-9\-][cC]lass$/;function L4e(e,t){const n=ie(null);if(e==="get"){const i={};return n.value=k4e.bind(null,i),n}const r=e.split(".");return bi(()=>n.value=sT(t,r)),n}function sT(e,t){if(Array.isArray(e)){for(const r of e){const i=r!==!1&&sT(r,t);if(i!==void 0)return i}return}let n;return t.reduce((r,i,o,s)=>{if(typeof r!="object")return n=void 0,s.splice(1);const a=r[i];return o===t.length-1&&a!==void 0&&(n=a),r[i]},e),n}function k4e(e,t){if(typeof t!="string")return Qp(650);if(t in e||(e[t]=ie(void 0)),e[t].value===void 0){e[t].value=null;const n=DD(t);n&&(e[t].value=n.context),GLe(t,({payload:r})=>{e[t].value=eh(r)?r.context:r})}return e[t].value}function oM(e,t){function n(d,f){const p=c(ji(f.if),{if:!0}),h=l(d,f.then),m=f.else?l(d,f.else):null;return[p,h,m]}function r(d,f){var p,h;const m=c(ji(d.if));let v=()=>f,g=()=>f;return typeof d.then=="object"?g=i(d.then,void 0):typeof d.then=="string"&&(!((p=d.then)===null||p===void 0)&&p.startsWith("$"))?g=c(ji(d.then)):g=()=>d.then,yt(d,"else")&&(typeof d.else=="object"?v=i(d.else):typeof d.else=="string"&&(!((h=d.else)===null||h===void 0)&&h.startsWith("$"))?v=c(ji(d.else)):v=()=>d.else),()=>m()?g():v()}function i(d,f,p={}){const h=new Set(Object.keys(d||{})),m=f?c(ji(f)):()=>({}),v=[g=>{const y=m();for(const _ in y)h.has(_)||(g[_]=y[_])}];if(d){if(xu(d))return r(d,p);for(let g in d){const y=d[g];let _;const b=typeof y=="string";g.startsWith(I4e)?(g=g.substring(7),_=()=>y):b&&y.startsWith("$")&&y.length>1&&!(y.startsWith("$reset")&&x4e.test(g))?_=c(ji(y)):typeof y=="object"&&xu(y)?_=r(y,void 0):typeof y=="object"&&Pc(y)?_=i(y):_=()=>y,v.push(S=>{S[g]=_()})}}return()=>{const g={};return v.forEach(y=>y(g)),g}}function o(d,f){let p=null,h=()=>null,m=!1,v=null,g=null,y=null,_=!1;const b=Dke(f);if(gS(b)?(p=b.$el,h=b.$el!=="text"?i(b.attrs,b.bind):()=>null):yS(b)?(typeof b.$cmp=="string"?yt(d,b.$cmp)?p=d[b.$cmp]:(p=b.$cmp,_=!0):p=b.$cmp,h=i(b.props,b.bind)):xu(b)&&([m,v,g]=n(d,b)),!xu(b)&&"if"in b?m=c(ji(b.if)):!xu(b)&&p===null&&(m=()=>!0),"children"in b&&b.children)if(typeof b.children=="string")if(b.children.startsWith("$slots."))p=p==="text"?"slot":p,v=c(ji(b.children));else if(b.children.startsWith("$")&&b.children.length>1){const S=c(ji(b.children));v=()=>String(S())}else v=()=>String(b.children);else if(Array.isArray(b.children))v=l(d,b.children);else{const[S,C,E]=n(d,b.children);v=w=>S&&S()?C&&C(w):E&&E(w)}if(yS(b))if(v){const S=v;v=C=>({default(E,w){var T,A,L,x;const k=Er;w&&(Er=w),E&&((T=Xa.get(Er))===null||T===void 0||T.unshift(E)),C&&((A=Xa.get(Er))===null||A===void 0||A.unshift(C));const M=S(C);return E&&((L=Xa.get(Er))===null||L===void 0||L.shift()),C&&((x=Xa.get(Er))===null||x===void 0||x.shift()),Er=k,M}}),v.slot=!0}else v=()=>({});if("for"in b&&b.for){const S=b.for.length===3?b.for[2]:b.for[1];y=[typeof S=="string"&&S.startsWith("$")?c(ji(S)):()=>S,b.for[0],b.for.length===3?String(b.for[1]):null]}return[m,p,h,v,g,y,_]}function s(d,f){const p=d(f),h=Er;return Object.keys(p).reduce((m,v)=>{const g=p&&p[v];return m[v]=y=>g&&g(y,h)||null,m},{})}function a(d,f){const[p,h,m,v,g,y,_]=o(d,f);let b=S=>{if(p&&h===null&&v)return p()?v(S):g&&g(S);if(h&&(!p||p())){if(h==="text"&&v)return _t(String(v()));if(h==="slot"&&v)return v(S);const C=_?Uc(h):h,E=v!=null&&v.slot?s(v,S):null;return io(C,m(),E||(v?v(S):[]))}return typeof g=="function"?g(S):g};if(y){const S=b,[C,E,w]=y;b=()=>{const T=C(),A=isNaN(T)?T:Array(Number(T)).fill(0).map((k,M)=>M),L=[];if(typeof A!="object")return null;const x=Xa.get(Er)||[];for(const k in A){if(Array.isArray(A)&&k==="length")continue;const M=Object.defineProperty({...x.reduce((z,P)=>z.__idata?{...z,...P}:P,{}),[E]:A[k],...w!==null?{[w]:k}:{}},"__idata",{enumerable:!1,value:!0});x.unshift(M),L.push(S.bind(null,M)()),x.shift()}return L}}return b}function l(d,f){if(Array.isArray(f)){const h=f.map(a.bind(null,d));return m=>h.map(v=>v(m))}const p=a(d,f);return h=>p(h)}const u=[];function c(d,f={}){const p={};return u.push((h,m)=>{p[m]=d.provide(v=>h(v,f))}),()=>p[Er]()}return function(f,p){const h=JSON.stringify(t),[m,v]=yt(mb,h)?mb[h]:[l(e,t),u];return mb[h]=[m,v],v.forEach(g=>{g(f,p)}),()=>(Er=p,m())}}function pV(e,t){const n=Xa.get(Er)||[];let r;return n.length&&(r=sT(n,e.split("."))),r===void 0?t:r}function M4e(e,t){return new Proxy(e,{get(...n){let r;const i=n[1];if(typeof i=="string"){const o=Er;Er=t,r=pV(i,void 0),Er=o}return r!==void 0?r:Reflect.get(...n)}})}function sM(e,t,n){return e((r,i={})=>r.reduce((o,s)=>{if(s.startsWith("slots.")){const l=s.substring(6),u=t.slots&&yt(t.slots,l);if(i.if)o[s]=()=>u;else if(t.slots&&u){const c=M4e(t,n);return o[s]=()=>t.slots[l](c),o}}const a=L4e(s,t);return o[s]=()=>pV(s,a.value),o},{}),n)}let aM=0;const R4e=Qe({name:"FormKitSchema",props:{schema:{type:[Array,Object],required:!0},data:{type:Object,default:()=>({})},library:{type:Object,default:()=>({})}},setup(e,t){const n=fi();let r=Symbol(String(aM++));Xa.set(r,[]);let i=oM(e.library,e.schema),o,s;return ut(()=>e.schema,(a,l)=>{var u;r=Symbol(String(aM++)),i=oM(e.library,e.schema),o=sM(i,s,r),a===l&&((u=n==null?void 0:n.proxy)===null||u===void 0?void 0:u.$forceUpdate)()},{deep:!0}),bi(()=>{s=Object.assign(mr(e.data),{slots:t.slots}),o=sM(i,s,r)}
715),()=>o()}}),P4e={config:{type:Object,default:{}},classes:{type:Object,required:!1},delay:{type:Number,required:!1},errors:{type:Array,default:[]},inputErrors:{type:Object,default:()=>({})},index:{type:Number,required:!1},id:{type:String,required:!1},modelValue:{required:!1},name:{type:String,required:!1},parent:{type:Object,required:!1},plugins:{type:Array,default:[]},sectionsSchema:{type:Object,default:{}},type:{type:[String,Object],default:"text"},validation:{type:[String,Array],required:!1},validationMessages:{type:Object,required:!1},validationRules:{type:Object,required:!1},validationLabel:{type:[String,Function],required:!1}},O4e=P4e,lM=Symbol("FormKitParent"),hV=Qe({props:O4e,emits:{input:(e,t)=>!0,inputRaw:(e,t)=>!0,"update:modelValue":e=>!0,node:e=>!!e,submit:(e,t)=>!0,submitRaw:(e,t)=>!0},inheritAttrs:!1,setup(e,t){const n=F4e(e,t);if(n.props.definition||li(600,n),n.props.definition.component)return()=>{var s;return io((s=n.props.definition)===null||s===void 0?void 0:s.component,{context:n.context},{...t.slots})};const r=ie([]),i=()=>{var s,a;const l=(a=(s=n.props)===null||s===void 0?void 0:s.definition)===null||a===void 0?void 0:a.schema;l||li(601,n),r.value=typeof l=="function"?l({...e.sectionsSchema}):l};i(),n.on("schema",i),t.emit("node",n);const o=n.props.definition.library;return t.expose({node:n}),()=>io(R4e,{schema:r.value,data:n.context,library:o},{...t.slots})}}),mV=Symbol.for("FormKitOptions"),$4e=Symbol.for("FormKitConfig"),CS=Symbol();function N4e(e,t){const n={},r=s=>{for(const a of s)a.__str in n&&n[a.__str](),n[a.__str]=ut(D4e.bind(null,e,a),o.bind(null,a),{deep:!1})},o=H4e(e,t,r,s=>{if(s.length)for(const a in n)`${a}`.startsWith(`${s.__str}.`)&&(n[a](),delete n[a])});r(aT(e))}function H4e(e,t,n,r){return i=>{const o=vV(e,i);o!==CS&&(i.__deep&&r(i),typeof o=="object"&&n(aT(o,[i],...i)),t(i,o,e))}}function D4e(e,t){const n=vV(e,t);return n&&typeof n=="object"?Object.keys(n):n}function vV(e,t){if(qt(e)){if(t.length===0)return e.value;e=e.value}return t.reduce((n,r)=>n===CS?n:n===null||typeof n!="object"?CS:n[r],e)}function aT(e,t=[],...n){if(e===null)return t;if(!n.length){const r=Object.defineProperty([],"__str",{value:""});if(e=qt(e)?e.value:e,e&&typeof e=="object")Object.defineProperty(r,"__deep",{value:!0}),t.push(r);else return[r]}if(e===null||typeof e!="object")return t;for(const r in e){const i=n.concat(r);Object.defineProperty(i,"__str",{value:i.join(".")});const o=e[r];Pc(o)||Array.isArray(o)?(t.push(Object.defineProperty(i,"__deep",{value:!0})),t=t.concat(aT(o,[],...i))):t.push(i)}return t}function ev(e){return e===null||typeof e!="object"||(Ti(e)?e=St(e):qt(e)&&(e=Ti(e.value)?ev(e.value):e.value)),e}const vb=["help","label","ignore","disabled","preserve",/^preserve(-e|E)rrors/,/^[a-z]+(?:-visibility|Visibility)$/,/^[a-zA-Z-]+(?:-class|Class)$/,"prefixIcon","suffixIcon",/^[a-zA-Z-]+(?:-icon|Icon)$/];function uM(e,t){t.classes&&Object.keys(t.classes).forEach(n=>{typeof n=="string"&&(e.props[`_${n}Class`]=t.classes[n],pS(t.classes[n])&&n==="inner"&&Object.values(t.classes[n]))})}function V4e(e){return e?["Submit","SubmitRaw"].reduce((n,r)=>{const i=`on${r}`;return i in e&&typeof e[i]=="function"&&(n[i]=e[i]),n},{}):{}}function F4e(e,t,n={}){const r=Object.assign({},kt(mV)||{},n),i=fi(),o=V4e(i==null?void 0:i.vnode.props),s=e.modelValue!==void 0,a=e.modelValue!==void 0?e.modelValue:hs(t.attrs.value);function l(){const b={...gu(e),...o},S=Vk(gu(t.attrs),vb);b.attrs=S;const C=Fk(gu(t.attrs),vb);for(const w in C)b[nc(w)]=C[w];const E={props:{}};return uM(E,e),Object.assign(b,E.props),typeof b.type!="string"&&(b.definition=b.type,delete b.type),b}const u=l(),c=u.ignore?null:e.parent||kt(lM,null),d=Nke(Pl(r||{},{name:e.name||void 0,value:a,parent:c,plugins:(r.plugins||[]).concat(e.plugins),config:e.config,props:u,index:e.index},!1,!0));d.props.definition||li(600,d);const f=ie(new Set(d.props.definition.props||[]));d.on("added-props",({payload:b})=>{Array.isArray(b)&&b.forEach(S=>f.value.add(S))});const p=fe(()=>vb.concat([...f.value]).reduce((b,S)=>(typeof S=="string"?(b.push(nc(S)),b.push(Zw(S))):b.push(S),b),[]));bi(()=>uM(d,e));const h=gu(e);for(const b in h)ut(()=>e[b],()=>{e[b]!==void 0&&(d.props[b]=e[b])});const m=new Set,v=gu(t.attrs);bi(()=>{g(Fk(v,p.value))});function g(b){m.forEach(S=>{S(),m.delete(S)});for(const S in b){const C=nc(S);m.add(ut(()=>t.attrs[S],()=>{d.props[C]=t.attrs[S]}))}}if(bi(()=>{const b=Vk(gu(t.attrs),p.value);d.props.attrs=Object.assign({},d.props.attrs||{},b)}),bi(()=>{const b=e.errors.map(S=>ro({key:PD(S),type:"error",value:S,meta:{source:"prop"}}));d.store.apply(b,S=>S.type==="error"&&S.meta.source==="prop")}),d.type!=="input"){const b=`${d.name}-prop`;bi(()=>{const S=Object.keys(e.inputErrors);S.length||d.clearErrors(!0,b);const C=S.reduce((E,w)=>{let T=e.inputErrors[w];return typeof T=="string"&&(T=[T]),Array.isArray(T)&&(E[w]=T.map(A=>ro({key:A,type:"error",value:A,meta:{source:b}}))),E},{});d.store.apply(C,E=>E.type==="error"&&E.meta.source===b)})}bi(()=>Object.assign(d.config,e.config)),d.type!=="input"&&Ji(lM,d);let y;const _=new WeakSet;return d.on("modelUpdated",()=>{var b,S;if(t.emit("inputRaw",(b=d.context)===null||b===void 0?void 0:b.value,d),clearTimeout(y),y=setTimeout(t.emit,20,"input",(S=d.context)===null||S===void 0?void 0:S.value,d),s&&d.context){const C=ev(d.context.value);pS(C)&&ev(e.modelValue)!==C&&_.add(C),t.emit("update:modelValue",C)}}),s&&N4e(Bc(e,"modelValue"),(b,S)=>{var C;const E=ev(S);if(pS(E)&&_.has(E))return _.delete(E);b.length?(C=d.at(b))===null||C===void 0||C.input(S,!1):d.input(S,!1)}),Rn(()=>d.destroy()),d}let B4e=1;function U4e(e){return typeof e=="function"&&e.length===2||typeof e=="object"&&!Array.isArray(e)&&!("$el"in e)&&!("$cmp"in e)&&!("if"in e)}function j4e(e,t={}){const n={type:"input",...t};let r;
715if(U4e(e)){const i=`SchemaComponent${B4e++}`;r=wt("input",()=>({$cmp:i,props:{context:"$node.context"}})),n.library={[i]:Nl(e)}}else typeof e=="function"?r=e:r=wt("input",()=>hs(e));return n.schema=vMe(r||"Schema undefined"),n}const W4e=function(t){t.ledger.count("blocking",E=>E.blocking);const n=ie(!t.ledger.value("blocking"));t.ledger.count("errors",E=>E.type==="error");const r=ie(!!t.ledger.value("errors"));let i=!1;Lt(()=>{i=!0});const o=mr(t.store.reduce((E,w)=>(w.visible&&(E[w.key]=w),E),{})),s=ie(t.props.validationVisibility||"blur");t.on("prop:validationVisibility",({payload:E})=>{s.value=E});const a=ie(s.value==="live"),l=fe(()=>{if(y.state.submitted)return!0;if(!a.value&&!y.state.settled)return!1;switch(s.value){case"live":return!0;case"blur":return y.state.blurred;case"dirty":return y.state.dirty;default:return!1}}),u=fe(()=>c.value?n.value&&!r.value:y.state.dirty&&!op(y.value)),c=ie(Array.isArray(t.props.parsedRules)&&t.props.parsedRules.length>0);t.on("prop:parsedRules",({payload:E})=>{c.value=Array.isArray(E)&&E.length>0});const d=fe(()=>{const E={};for(const w in o){const T=o[w];(T.type!=="validation"||l.value)&&(E[w]=T)}return E}),f=mr(t.store.reduce((E,w)=>(w.type==="ui"&&w.visible&&(E[w.key]=w),E),{})),p=mr({}),h=new Proxy(p,{get(...E){const[w,T]=E;let A=Reflect.get(...E);return!A&&typeof T=="string"&&!yt(w,T)&&!T.startsWith("__v")&&Ig(t).watch(x=>{const k=typeof x.config.rootClasses=="function"?x.config.rootClasses(T,x):{},M=x.config.classes?Jm(T,x,x.config.classes[T]):{},z=Jm(T,x,x.props[`_${T}Class`]),P=Jm(T,x,x.props[`${T}Class`]);A=Vke(x,T,k,M,z,P),w[T]=A}),A}}),m=fe(()=>{const E=[];y.help&&E.push(`help-${t.props.id}`);for(const w in d.value)E.push(`${t.props.id}-${w}`);return E.length?E.join(" "):void 0}),v=ie(t.value),g=ie(t.value),y=mr({_value:g,attrs:t.props.attrs,disabled:t.props.disabled,describedBy:m,fns:{length:E=>Object.keys(E).length,number:E=>Number(E),string:E=>String(E),json:E=>JSON.stringify(E),eq:Ts},handlers:{blur:E=>{t.store.set(ro({key:"blurred",visible:!1,value:!0})),typeof t.props.attrs.onBlur=="function"&&t.props.attrs.onBlur(E)},touch:()=>{t.store.set(ro({key:"dirty",visible:!1,value:!0}))},DOMInput:E=>{t.input(E.target.value),t.emit("dom-input-event",E)}},help:t.props.help,id:t.props.id,label:t.props.label,messages:d,node:Nl(t),options:t.props.options,state:{blurred:!1,complete:u,dirty:!1,submitted:!1,settled:t.isSettled,valid:n,errors:r,rules:c,validationVisible:l},type:t.props.type,ui:f,value:v,classes:h});t.on("created",()=>{Ts(y.value,t.value)||(g.value=t.value,v.value=t.value,kd(v),kd(g))}),t.on("settled",({payload:E})=>{y.state.settled=E});function _(E){E.forEach(w=>{w=nc(w),!yt(y,w)&&yt(t.props,w)&&(y[w]=t.props[w]),t.on(`prop:${w}`,({payload:T})=>{y[w]=T})})}_((()=>{const E=["help","label","disabled","options","type","attrs","preserve","preserveErrors","id"],w=/^[a-zA-Z-]+(?:-icon|Icon)$/,T=Object.keys(t.props).filter(A=>w.test(A));return E.concat(T)})());function S(E){E.props&&_(E.props)}t.props.definition&&S(t.props.definition),t.on("added-props",({payload:E})=>_(E)),t.on("input",({payload:E})=>{g.value=E,kd(g)}),t.on("commit",({payload:E})=>{v.value=g.value=E,kd(v),t.emit("modelUpdated"),!y.state.dirty&&t.isCreated&&i&&y.handlers.touch(),u&&t.type==="input"&&r.value&&!as(t.props.preserveErrors)&&t.store.filter(w=>{var T;return!(w.type==="error"&&((T=w.meta)===null||T===void 0?void 0:T.autoClear)===!0)})});const C=async E=>{E.type==="ui"&&E.visible&&!E.meta.showAsMessage?f[E.key]=E:E.visible?o[E.key]=E:E.type==="state"&&(y.state[E.key]=!!E.value)};t.on("message-added",E=>C(E.payload)),t.on("message-updated",E=>C(E.payload)),t.on("message-removed",({payload:E})=>{delete f[E.key],delete o[E.key],delete y.state[E.key]}),t.on("settled:blocking",()=>{n.value=!0}),t.on("unsettled:blocking",()=>{n.value=!1}),t.on("settled:errors",()=>{r.value=!1}),t.on("unsettled:errors",()=>{r.value=!0}),ut(l,E=>{E&&(a.value=!0)}),t.context=y,t.emit("context",t,!1)},G4e=(e={})=>{const{rules:t={},locales:n={},inputs:r={},messages:i={},locale:o=void 0,theme:s=void 0,iconLoaderUrl:a=void 0,iconLoader:l=void 0,icons:u={},...c}=e,d=YMe({...XMe,...t||{}}),f=v4e(Pl({en:m4e,...n||{}},i)),p=Fke(IMe,r),h=y4e(s,u,a,l);return Pl({plugins:[p,h,W4e,f,d],...o?{config:{locale:o}}:{}},c||{},!0)},z4e=e=>({value:t})=>{const n=/(((?:http:\/\/)|(?:www\.)|(?:https:\/\/))?[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|www\.[a-zA-Z0-9][a-zA-Z0-9-]+[a-zA-Z0-9]\.[^\s]{2,}|https?:\/\/(?:www\.|(?!www))[a-zA-Z0-9]+\.[^\s]{2,}|www\.[a-zA-Z0-9]+\.[^\s]{2,})/gi;return t.length===0||t.match(n)},q4e=e=>({value:t})=>{const n=/^(\s?[^\s,]+@[^\s,]+\.[^\s,]+\s?,)*(\s?[^\s,]+@[^\s,]+\.[^\s,]+)$/gm;return t.length===0||t.match(n)},gV=e=>t=>t&&!0||!1,K4e=e=>({value:t})=>{let n=t.split("-");return n=n.map(r=>+r),n.every(r=>!isNaN(r))},Lg=e=>(t,n=0)=>
715{if(t!=null&&(t.toString().indexOf(".")>-1||t.toString().indexOf(",")>-1))return!1;let r=parseFloat(t);return!isNaN(r)&&r>=n},X4e=e=>(t,n=0)=>{let r=parseFloat(t);return!isNaN(r)&&r>=n},w0=e=>t=>!(t==null||!ui(t)),Z4e=e=>({value:t},n=!0)=>{n=JSON.parse(n);let r=n?gV(t.currency):!0,i=parseFloat(t.value);return!!(w0()&&r&&(t.currency===51||!isNaN(i)))},Y4e=e=>({value:t},n=0)=>!(!Lg(t.value)&&t.currency!==51),J4e=e=>({value:t},n=0)=>!(!X4e(t.value)&&t.currency!==51),Q4e=e=>({value:t})=>{if(!w0()&&!gV(t.currency))return!1;let n=Lg(t.from),r=Lg(t.until),i=parseFloat(t.from)>0&&parseFloat(t.until)>parseFloat(t.from);return n&&r&&i},eRe=e=>(t,n=0)=>{const r=t.value;return w0()?r.length>n:!1},cM=e=>(t,n)=>{const r=t.value,i=document.getElementById(n),o=i&&i.getElementsByClassName("file-item");return r&&r.length>0||o&&o.length>0&&Array.from(o).filter(s=>s.className.indexOf("completed")>=0).length===o.length},tRe=e=>({value:t},n)=>{const r=document.querySelector(`input#${n}`);return(r&&r.value)==="true"?Lg():!0},nRe=e=>({value:t},n)=>{const r=document.querySelector(`input#${n}`),i=r&&r.value;return Number(i)<=Number(t)},rRe=e=>({value:t},n=0)=>{if(n=JSON.parse(n),!w0())return!1;if(!t.from&&!t.until)return t.value>=n;let r=t.from>=n,i=t.until>=n;return r&&i},iRe=e=>({value:t})=>t.filter(r=>r.place_id!==void 0).length===t.length,oRe=e=>({value:t})=>{var n;for(let r=0;r<e.length;r++){const i=e[r];if(i.type==="autocomplete"&&((n=i.values)!=null&&n.length))for(let o=0;o<(t==null?void 0:t.length);o++){let s=t[o].text||t[o].name;if(typeof s!="string")continue;if(i.values.find(l=>l.name.toLowerCase()===s.toLowerCase()))return!1}}return!0},sRe=e=>({value:t})=>{if(!t||!t.country)return!1;const n=["city","street"];t.country==="us"&&n.push("state");for(let r=0;r<n.length;r++){const i=n[r];if(!t[i])return!1}return!0},aRe=e=>({value:t})=>{const n=/^[\p{L}\u0900-\u097F\s]+$/u;return t&&t.length>0?n.test(t):!1},dM={array_length:eRe,required_unit_input:Z4e,range_unit_input:Q4e,unit_input_min_value:rRe,unit_input_valid_value:Y4e,unit_input_valid_value_float:J4e,location_input:iRe,require_value_or_attachment:cM,require_with:tRe,gte_other:nRe,valid_url:z4e,comma_separated_emails:q4e,valid_date:K4e,script_validation:cM,repeated_in_other_autocomplete:oRe,required_address:sRe,only_alpha:aRe},lRe={required:({name:e})=>`The ${e.toLowerCase()} field is required.`,require_value_or_attachment:({name:e})=>`The ${e.toLowerCase()} value is not valid.`,comma_separated_emails:({name:e})=>`The ${e.toLowerCase()} value is not valid.`,array_length:({name:e})=>`The ${e.toLowerCase()} field is required.`,required_unit_input:({name:e})=>`A value in the ${e.toLowerCase()} field is required.`,range_unit_input:({name:e})=>`Max value is lower than min value in the ${e.toLowerCase()} field.`,unit_input_min_value:({name:e,args:t})=>`The ${e.toLowerCase()} field is less than ${t[0]} which is the minimum value`,unit_input_valid_value:({name:e})=>`The ${e.toLowerCase()} value field needs to be a full number with no special characters or decimal points`,unit_input_valid_value_float:({name:e})=>`The ${e.toLowerCase()} value field needs to be a full number with no special characters or decimal points`,location_input:()=>"Please select a valid location from the list",require_with:({name:e})=>`The ${e.toLowerCase()} field is required.`,gte_other:({name:e,args:t})=>{const n=document.querySelector(`input#${t[0]}`),r=n&&n.value;return`The ${e.toLowerCase()} field is less than ${r} which is the minimum value`},valid_date:({name:e})=>`The ${e.toLowerCase()} field requires all the date inputs to be selected.`,script_validation:()=>"Insert script to select this option",repeated_in_other_autocomplete:e=>"This keyword is already available in a different field"},gb=ln(()=>Ht(()=>import("./vdlRadioCheckboxFormField-9030a596.js"),["static/assets/vdlRadioCheckboxFormField-9030a596.js","static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css","static/assets/vdlListCheckbox-05312a1f.js","static/assets/mdRadio-14afbf09.js","static/assets/mdRadio-3a088d73.css","static/assets/vdlListCheckbox-e9d92bc4.css","static/assets/FormGeneratorIconizedField-9af28153.js","static/assets/vdlRadioCheckboxFormField-2171b571.css"])),uRe={formatted_read_only:ln(()=>Ht(()=>import("./vdlReadOnlyFormField-c2ea5093.js"),["static/assets/vdlReadOnlyFormField-c2ea5093.js","static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css","static/assets/FormGeneratorIconizedField-9af28153.js"])),quote:ln(()=>Ht(()=>import("./vdlQuoteFormField-3bc91192.js"),["static/assets/vdlQuoteFormField-3bc91192.js","static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css","static/assets/vdlQuoteFormField-703dfa05.css"])),steps:ln(()=>Ht(()=>import("./vdlStepFormItem-48602838.js"),["static/assets/vdlStepFormItem-48602838.js","
715static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css","static/assets/vdlStepFormItem-53b1c7b0.css"])),informative:ln(()=>Ht(()=>import("./vdlInformativeFormItem-2350f5d3.js"),["static/assets/vdlInformativeFormItem-2350f5d3.js","static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css","static/assets/FormGeneratorIconizedField-9af28153.js","static/assets/vdlInformativeFormItem-1bf4cd06.css"])),"sub-steps":ln(()=>Ht(()=>import("./vdlSubStepFormItem-d53dd08e.js"),["static/assets/vdlSubStepFormItem-d53dd08e.js","static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css","static/assets/vdlSubStepFormItem-539f6e9e.css"])),unitInput:ln(()=>Ht(()=>import("./vdlUnitFormField-65965def.js"),["static/assets/vdlUnitFormField-65965def.js","static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css","static/assets/tdlTypeahead-84ca9aab.js","static/assets/tdlTypeahead-0bd1cbcd.css","static/assets/FormGeneratorIconizedField-9af28153.js","static/assets/vdlUnitFormField-c2fb68a5.css"])),deadline:ln(()=>Ht(()=>import("./vdlDeadlineFormField-9e39a851.js"),["static/assets/vdlDeadlineFormField-9e39a851.js","static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css","static/assets/vdlChipsSelect-89a518f9.js","static/assets/FormGeneratorIconizedField-9af28153.js","static/assets/vdlChipsSelect-662aa547.css","static/assets/vdlDeadlineFormField-35603620.css"])),number:ln(()=>Ht(()=>import("./vdlNumberFormField-942adbd4.js"),["static/assets/vdlNumberFormField-942adbd4.js","static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css","static/assets/FormGeneratorIconizedField-9af28153.js"])),text:ln(()=>Ht(()=>import("./vdlTextFormField-60515bac.js"),["static/assets/vdlTextFormField-60515bac.js","static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css","static/assets/FormGeneratorIconizedField-9af28153.js"])),textarea:ln(()=>Ht(()=>import("./vdlTextareaFormField-5b44c6d1.js"),["static/assets/vdlTextareaFormField-5b44c6d1.js","static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css","static/assets/vdlUploader-28de09f3.js","static/assets/vdlUploader-142290e0.css","static/assets/FormGeneratorIconizedField-9af28153.js","static/assets/vdlTextareaFormField-f850591f.css"])),hide:{component:ln(()=>Ht(()=>import("./vdlHideFormField-c6346315.js"),["static/assets/vdlHideFormField-c6346315.js","static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css"])),specialConditions:e=>e.targetCondition},selector:ln(()=>Ht(()=>import("./vdlSelectorFormField-65e21295.js"),["static/assets/vdlSelectorFormField-65e21295.js","static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css","static/assets/FormGeneratorIconizedField-9af28153.js"])),simple_selector:ln(()=>Ht(()=>import("./vdlSimpleSelectorFormField-888a321f.js"),["static/assets/vdlSimpleSelectorFormField-888a321f.js","static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css","static/assets/FormGeneratorIconizedField-9af28153.js","static/assets/vdlSimpleSelectorFormField-80646e70.css"])),"date-picker":ln(()=>Ht(()=>import("./vdlDatePickerFormField-89613834.js"),["static/assets/vdlDatePickerFormField-89613834.js","static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css","static/assets/vdlDatePickerFormField-0f606a98.css"])),address:ln(()=>Ht(()=>import("./vdlAddressFormField-fb353e71.js"),["static/assets/vdlAddressFormField-fb353e71.js","static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css","static/assets/FormGeneratorIconizedField-9af28153.js","static/assets/intlTelInput-0fe6df05.js","static/assets/intlTelInput-cd8ec578.css","static/assets/vdlAddressFormField-38918906.css"])),phone:ln(()=>Ht(()=>import("./vdlPhoneFormField-a9ed904a.js"),["static/assets/vdlPhoneFormField-a9ed904a.js","static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css","static/assets/FormGeneratorIconizedField-9af28153.js","static/assets/intlTelInput-0fe6df05.js","static/assets/intlTelInput-cd8ec578.css","static/assets/vdlPhoneFormField-e4d2a082.css"])),autocomplete:ln(()=>Ht(()=>import("./vdlAutocompleteFormField-b877efb1.js"),["static/assets/vdlAutocompleteFormField-b877efb1.js","static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css","static/assets/tdlTypeahead-84ca9aab.js","static/assets/tdlTypeahead-0bd1cbcd.css","static/assets/FormGeneratorIconizedField-9af28153.js","static/assets/vdlAutocompleteFormField-2f2655ae.css"])),location:ln(()=>Ht(()=>import("./vdlLocationFormField-90ee42f6.js"),["static/assets/vdlLocationFormField-90ee42f6.js","static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css","static/assets/MapsPlaces-bfb97b22.js","static/assets/FormGeneratorIconizedField-9af28153.js","static/assets/vdlLocationFormField-ccd42d96.css"])),switch:ln(()=>Ht(()=>import("./vdlSwitchFormField-5e496a7d.js"),["static/assets/vdlSwitchFormField-5e496a7d.js","static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css","static/assets/FormGeneratorIconizedField-9af28153.js","static/assets/vdlSwitchFormField-14db596c.css"])),media:ln(()=>Ht(()=>import("./vdlMediaFormField-55177863.js"),["static/assets/vdlMediaFormField-55177863.js","static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css","static/assets/FormGeneratorIconizedField-9af28153.js"])),multiTypes:ln(()=>Ht(()=>import("./vdlMultiTypeFormField-b8a93dbc.js"),["static/assets/vdlMultiTypeFormField-b8a93dbc.js","static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css","static/assets/FormGeneratorIconizedField-9af28153.js"])),uploader:ln(()=>Ht(()=>import("./vdlUploaderFormField-e1928db7.js"),["static/assets/vdlUploaderFormField-e1928db7.js","static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css","static/assets/vdlUploader-28de09f3.js","static/assets/vdlUploader-142290e0.css","static/assets/FormGeneratorIconizedField-9af28153.js","static/assets/vdlUploaderFormField-4eb3ad43.css"])),grouping:gb,checkbox:gb,radio:gb,chips:ln(()=>Ht(()=>import("./vdlChipsFormField-6e6baa63.js"),["static/assets/vdlChipsFormField-6e6baa63.js","static/assets/FormGeneratorField-762d60bc.js","static/assets/FormGeneratorField-005c2aa1.css","static/assets/vdlChipsSelect-89a518f9.js","
715static/assets/FormGeneratorIconizedField-9af28153.js","static/assets/vdlChipsSelect-662aa547.css"]))};var cRe=Object.defineProperty,dRe=Object.getOwnPropertyDescriptor,Di=(e,t,n,r)=>{for(var i=r>1?void 0:r?dRe(t,n):t,o=e.length-1,s;o>=0;o--)(s=e[o])&&(i=(r?s(t,n,i):s(i))||i);return r&&i&&cRe(t,n,i),i};let qr=class extends xa{constructor(){super(...arguments);ve(this,"field");ve(this,"isExpandable");ve(this,"nested");ve(this,"isAdmin");ve(this,"rightAlign");ve(this,"disabled");ve(this,"formModel");ve(this,"parentSchema");ve(this,"schema");ve(this,"item");ve(this,"customTypes");ve(this,"fieldWrapper",j4e([{$el:"li"}],{}));ve(this,"sectionsSchema",{wrapper:{$el:null},label:{$el:!1},outer:{$el:null},inner:{$el:null},messages:{$el:!1},message:{$el:!1},help:{$el:!1}});ve(this,"rulesMap",{min_value:"min",max_value:"max",min:"length",max:"length"});ve(this,"reportFildChanges",Qge(function(n){this.$emit("fieldUpdated",n)},80))}get validationRules(){const n={};return Object.keys(dM).forEach(r=>{n[r]=dM[r](this.schema)}),n}hasRule(n){return(this.field.validations||[]).find(({rule:i})=>i===n)}get validationMessages(){var i,o,s;const n={};(o=(i=this.field)==null?void 0:i.validations)!=null&&o.length&&((s=this.field)==null||s.validations.forEach(({message:a,rule:l})=>{a&&l&&(n[this.rulesMap[l]||l]=a)}));const r={...lRe,...n};return this.hasRule("script_validation")?r.required=r.script_validation:this.hasRule("require_value_or_attachment")&&(r.required=r.require_value_or_attachment),r}get expandableComponent(){return this.isExpandable?Xw:"div"}fieldKey(n){}getComponentClasses(n){return{"md-inset":this.mdInset(n),"md-disabled":this.disabled||n.disabled,[n.class]:n.class!==void 0,"expandable-area":["grouping","radio","checkbox"].includes(n.type)&&this.expandableComponent==="div",...n.classes}}getErrors({messages:n}){return Object.keys(n).map(i=>n[i].value)}hasNestedErrors({node:n}){if(n.parent&&n.parent.children&&n.parent.children.length>0&&this.isExpandable&&this.field.values){const r=this.field.values.filter(i=>i.nested&&i.targetAttribute).map(i=>i.targetAttribute);if(r&&r.length>0)return n.parent.children.filter(i=>r.includes(i.name)).reduce((i,o)=>i||Object.keys(o.context.messages).length>0,!1)}return!1}isVisible(n){return n.visible!==void 0?typeof n.visible=="function"?n.visible(this.formModel):n.visible:!0}getComponentName(n){const r=this.getComponentDefinition(n);return(r==null?void 0:r.component)||r}showComponent(n){const r=this.getComponentDefinition(n),i=r&&r.specialConditions;return i?i(this.field):r}async onUpdateInput(n,r){await n.node.input(r),this.reportFildChanges(r)}getComponentDefinition(n){return{...uRe,...this.customTypes}[n.readOnly?n.view:n.type]}ruleMaper({rule:n,value:r,type:i}){let o=this.rulesMap[n]||n;return i==="address"&&n==="required"&&(o="required_address"),["script_validation","require_value_or_attachment"].includes(n)&&(o=`+${n}`),r&&n==="max"?`${o}:0,${r}`:r!==void 0?`${o}:${r}`:o}get formatedRules(){if(!this.field.validations||!this.validateNestedItem)return"";const{validations:n}=this.field;return n.map(({rule:i,value:o})=>this.ruleMaper({rule:i,value:o,type:this.field.type})).join("|")}get validateNestedItem(){var i;if(!this.item&&!this.nested)return!0;const n=((i=this.parentSchema)==null?void 0:i.type)==="switch";if(!this.item&&!n)return!0;let r=this.formModel[this.parentSchema.attribute];return Array.isArray(r)&&(r=r.find(o=>o.id===this.item.id)),n?!!r:(r==null?void 0:r.id)===this.item.id}elementId(n){return n.id?n.id:n.attribute}requiredField(n){return n.validations&&n.validations.find(r=>r.rule==="required"||r.rule==="required_unit_input"||r.rule==="require_value_or_attachment")}mdInset(n){return n.inset=typeof n.inset>"u"?this.nested:n.inset,n.inset}};Di([je()],qr.prototype,"field",2);Di([je({default:!0})],qr.prototype,"isExpandable",2);Di([je()],qr.prototype,"nested",2);Di([je({default:!1})],qr.prototype,"isAdmin",2);Di([je({default:!1})],qr.prototype,"rightAlign",2);Di([je({default:!1})],qr.prototype,"disabled",2);Di([je({default:{}})],qr.prototype,"formModel",2);Di([je()],qr.prototype,"parentSchema",2);Di([je()],qr.prototype,"schema",2);Di([je()],qr.prototype,"item",2);Di([Hw()],qr.prototype,"customTypes",2);qr=Di([La({components:{FormKit:hV}})],qr);const fRe=qr;const pRe={class:"unestiled-list"};function hRe(e,t,n,r,i,o){const s=Uc("FormKit");return I(),Se(s,{name:e.field.attribute,type:e.fieldWrapper,"sections-schema":e.sectionsSchema,validationRules:e.validationRules,validation:e.formatedRules,"validation-label":e.field.name&&e.field.name.toLowerCase(),"validation-messages":e.validationMessages,"validation-visibility":"submit",ref:"inputRef"},{input:pe(a=>[O("li",{class:Ie({"field-required":e.requiredField(e.field),nested:e.nested})},[O("ul",pRe,[e.showComponent(e.field)?kn((I(),Se(tE(e.getComponentName(e.field)),Un({key:0},e.field,{id:e.elementId(e.field),modelValue:a._value,model:a.node.parent._value,field:e.field,ref:e.field.attribute,nested:e.nested,"is-admin":e.isAdmin,class:e.getComponentClasses(e.field),"right-align":e.rightAlign,disabled:e.disabled||null,expandableComponent:e.expandableComponent,isExpandable:e.isExpandable,key:e.field.type==="media"?e.fieldKey(e.field):void 0,"onUpdate:modelValue":l=>e.onUpdateInput(a,l),onUploaded:l=>e.field.type==="textarea"&&e.onUpdateInput(a,a.node.value||""),errors:e.getErrors(a),"has-nested-errors":e.hasNestedErrors(a),onSubmit:t[0]||(t[0]=l=>e.$emit("submit")),onKeydown:t[1]||(t[1]=Ar(l=>e.$emit("keydown-enter",e.field,l),["enter"]))}),{conditionalNested:pe(()=>[ge(e.$slots,"conditionalNested",{},void 0,!0)]),itemForm:pe(({item:l})=>[ge(e.$slots,"itemForm",{item:l},void 0,!0)]),default:pe(()=>[ge(e.$slots,"default",{},void 0,!0)]),_:2},1040,["id","modelValue","model","field","nested","is-admin","class","right-align","disabled","expandableComponent","isExpandable","onUpdate:modelValue","onUploaded","errors","has-nested-errors"])),[[Ci,e.isVisible(e.field)]]):K("",!0)])],2)]),_:3},8,["name","type","sections-schema","validationRules","validation","validation-label","validation-messages"])}const yV=Ye(fRe,[["render",hRe],["__scopeId","data-v-0d98a0ca"]]),bV=Qe({name:"FormFieldWithNested",__name:"FormFieldWithNested",props:{disabled:{type:Boolean,default:!1},field:{type:Object,required:!0},formModel:{type:Object,required:!0},schema:{type:Object,required:!0},nested:{type:Boolean,default:!1},parentSchema:{type:Object,default:null},item:{type:Object,default:null}},emits:["submit","keydown-enter","fieldUpdated"],setup(e,{emit:t}){return(n,r)=>{const i=Uc("FormFieldWithNested",!0),o=Jp;return I(),Se(yV,{disabled:e.disabled,field:e.field,formModel:e.formModel,schema:e.schema,nested:e.nested,parentSchema:e.parentSchema,item:e.item,onKeydownEnter:r[9]||(r[9]=(s,a)=>t("keydown-enter",s,a)),onSubmit:r[10]||(r[10]=()=>
715t("submit")),onFieldUpdated:r[11]||(r[11]=s=>t("fieldUpdated",e.field.attribute,s))},{conditionalNested:pe(()=>[e.field.conditionalNested?(I(),Se(o,{key:0,class:"fields md-double-line"},{default:pe(()=>[(I(!0),R(Je,null,Dt(e.field.conditionalNested,s=>(I(),Se(i,{formModel:e.formModel,field:s,disabled:e.disabled,nested:!0,schema:e.schema,parentSchema:e.field,onSubmit:r[3]||(r[3]=()=>t("submit")),onKeydownEnter:r[4]||(r[4]=(a,l)=>t("keydown-enter",a,l)),onFieldUpdated:r[5]||(r[5]=(a,l)=>t("fieldUpdated",a,l))},{default:pe(()=>[_t(" >")]),_:2},1032,["formModel","field","disabled","schema","parentSchema"]))),256))]),_:1})):K("",!0)]),itemForm:pe(({item:s})=>[ae(o,{class:"fields md-double-line"},{default:pe(()=>[(I(!0),R(Je,null,Dt(s.nested,a=>(I(),Se(i,{key:a.attribute,formModel:e.formModel,field:a,schema:e.schema,nested:!0,parentSchema:e.field,item:s,disabled:e.disabled,onSubmit:r[6]||(r[6]=()=>t("submit")),onKeydownEnter:r[7]||(r[7]=(l,u)=>t("keydown-enter",l,u)),onFieldUpdated:r[8]||(r[8]=(l,u)=>t("fieldUpdated",l,u))},null,8,["formModel","field","schema","parentSchema","item","disabled"]))),128))]),_:2},1024)]),default:pe(()=>[e.field.nested?(I(),Se(o,{key:0,class:"fields md-double-line"},{default:pe(()=>[(I(!0),R(Je,null,Dt(e.field.nested,s=>(I(),Se(i,{formModel:e.formModel,field:s,disabled:e.disabled,nested:!0,schema:e.schema,parentSchema:e.field,onSubmit:r[0]||(r[0]=()=>t("submit")),onKeydownEnter:r[1]||(r[1]=(a,l)=>t("keydown-enter",a,l)),onFieldUpdated:r[2]||(r[2]=a=>t("fieldUpdated",e.field.attribute,a))},null,8,["formModel","field","disabled","schema","parentSchema"]))),256))]),_:1})):K("",!0)]),_:1},8,["disabled","field","formModel","schema","nested","parentSchema","item"])}}});var _V="complete",fM="canceled";function mRe(e){if("requestAnimationFrame"in window)return window.requestAnimationFrame(e);setTimeout(e,16)}function pM(e,t,n){e.self===e?e.scrollTo(t,n):(e.scrollLeft=t,e.scrollTop=n)}function vRe(e,t){var n=e.align,r=e.target,i=r.getBoundingClientRect(),o,s,a,l,u,c,d,f=n&&n.left!=null?n.left:.5,p=n&&n.top!=null?n.top:.5,h=n&&n.leftOffset!=null?n.leftOffset:0,m=n&&n.topOffset!=null?n.topOffset:0,v=f,g=p;if(e.isWindow(t))c=Math.min(i.width,t.innerWidth),d=Math.min(i.height,t.innerHeight),s=i.left+t.pageXOffset-t.innerWidth*v+c*v,a=i.top+t.pageYOffset-t.innerHeight*g+d*g,s-=h,a-=m,s=e.align.lockX?t.pageXOffset:s,a=e.align.lockY?t.pageYOffset:a,l=s-t.pageXOffset,u=a-t.pageYOffset;else{c=i.width,d=i.height,o=t.getBoundingClientRect();var y=i.left-(o.left-t.scrollLeft),_=i.top-(o.top-t.scrollTop);s=y+c*v-t.clientWidth*v,a=_+d*g-t.clientHeight*g,s-=h,a-=m,s=Math.max(Math.min(s,t.scrollWidth-t.clientWidth),0),a=Math.max(Math.min(a,t.scrollHeight-t.clientHeight),0),s=e.align.lockX?t.scrollLeft:s,a=e.align.lockY?t.scrollTop:a,l=s-t.scrollLeft,u=a-t.scrollTop}return{x:s,y:a,differenceX:l,differenceY:u}}function tv(e){var t=e._scrollSettings;if(t){var n=t.maxSynchronousAlignments,r=vRe(t,e),i=Date.now()-t.startTime,o=Math.min(1/t.time*i,1);if(t.endIterations>=n)return pM(e,r.x,r.y),e._scrollSettings=null,t.end(_V);var s=1-t.ease(o);if(pM(e,r.x-r.differenceX*s,r.y-r.differenceY*s),i>=t.time){t.endIterations++,t.scrollAncestor&&tv(t.scrollAncestor),tv(e);return}mRe(tv.bind(null,e))}}function gRe(e){return e.self===e}function yRe(e,t,n,r,i){var o=!t._scrollSettings,s=t._scrollSettings,a=Date.now(),l,u={passive:!0};s&&s.end(fM);function c(f){t._scrollSettings=null,t.parentElement&&t.parentElement._scrollSettings&&t.parentElement._scrollSettings.end(f),n.debug&&console.log("Scrolling ended with type",f,"for",t),i(f),l&&(t.removeEventListener("touchstart",l,u),t.removeEventListener("wheel",l,u))}var d=n.maxSynchronousAlignments;return d==null&&(d=3),t._scrollSettings={startTime:a,endIterations:0,target:e,time:n.time,ease:n.ease,align:n.align,isWindow:n.isWindow||gRe,maxSynchronousAlignments:d,end:c,scrollAncestor:r},(!("cancellable"in n)||n.cancellable)&&(l=c.bind(null,fM),t.addEventListener("touchstart",l,u),t.addEventListener("wheel",l,u)),o&&tv(t),l}function hM(e){return"pageXOffset"in e||(e.scrollHeight!==e.clientHeight||e.scrollWidth!==e.clientWidth)&&getComputedStyle(e).overflow!=="hidden"}function bRe(){return!0}function wS(e){if(e.assignedSlot)return wS(e.assignedSlot);if(e.parentElement)return e.parentElement.tagName.toLowerCase()==="body"?e.parentElement.ownerDocument.defaultView||e.parentElement.ownerDocument.ownerWindow:e.parentElement;if(e.getRootNode){var t=e.getRootNode();
715if(t.nodeType===11)return t.host}}var _Re=function(e,t,n){if(!e)return;typeof t=="function"&&(n=t,t=null),t||(t={}),t.time=isNaN(t.time)?1e3:t.time,t.ease=t.ease||function(u){return 1-Math.pow(1-u,u/2)},t.align=t.align||{};var r=wS(e),i=1;function o(u){i--,i||n&&n(u)}var s=t.validTarget||bRe,a=t.isScrollable;t.debug&&(console.log("About to scroll to",e),r||console.error("Target did not have a parent, is it mounted in the DOM?"));for(var l=[];r;)if(t.debug&&console.log("Scrolling parent node",r),s(r,i)&&(a?a(r,hM):hM(r))&&(i++,l.push(r)),r=wS(r),!r){o(_V);break}return l.reduce((u,c,d)=>yRe(e,c,t,l[d+1],o),null)};const SRe=Gc(_Re),mM=e=>JSON.parse(JSON.stringify(e)),vM=e=>JSON.parse(JSON.stringify(e,(t,n)=>n===void 0||n===""||n&&typeof n=="object"&&Object.keys(n).length===0?null:n));let Mn=class extends oD(yLe){constructor(){super(...arguments);ve(this,"schema");ve(this,"modelValue");ve(this,"checkPendingChanges");ve(this,"isAdmin");ve(this,"autoEnumerateStepName");ve(this,"rightAlign");ve(this,"blockSchemaRefresh");ve(this,"formName");ve(this,"trackingEnabled");ve(this,"disabled");ve(this,"forceClose");ve(this,"scrollableParentClass");ve(this,"customTypes");ve(this,"modelChanged",!1);ve(this,"submitted",!1);ve(this,"tooltipVisible",!1);ve(this,"defaultId");ve(this,"options",Object.assign({alias:"FormKit",schemaAlias:"FormKitSchema"},G4e()));ve(this,"rootConfig",zLe(this.options.config||{}));ve(this,"opSym",this.options);ve(this,"cfgSym",this.rootConfig);ve(this,"formModel",{});ve(this,"thisForm",null)}created(){if(globalThis&&globalThis.crypto){const n=new Uint32Array(1);globalThis.crypto.getRandomValues(n),this.defaultId=`form-${n[0].toString(30)}`}else this.defaultId=`form-${Date.now()}`}mounted(){this.$nextTick(()=>{this.$refs.groupExpand&&this.$refs.groupExpand.forEach(n=>{var r,i,o;!((i=(r=n==null?void 0:n.$el)==null?void 0:r.classList)!=null&&i.contains("md-closed-by-default"))&&((o=n==null?void 0:n.$el)!=null&&o.querySelector("button").click())&&n.$el.querySelector("button").click()})}),this.updateModel(this.modelValue)}schemaWatch(){this.blockSchemaRefresh||this.updateModel(this.modelValue)}updateModel(n){this.areModelsEqual(this.formModel,n)||(this.formModel=this.buildFormModel(mM(n),this.schema),iu.removeForm(this))}get pendingChanges(){return iu.checkForm(this)}updateChanges(){this.$nextTick(()=>{if(this.areModelsEqual(this.formModel,this.modelValue))this.checkPendingChanges&&iu.removeForm(this);else{const n=mM(this.flatModel(this.formModel));this.checkPendingChanges&&!this.disabled&&iu.addForm(this),this.$emit("update:modelValue",n)}})}flatModel(n,r=this.schema){let i={};for(let{attribute:s,attachments:a,type:l,nested:u,values:c,conditionalNested:d}of r)if(s){var o=n[s];if(Array.isArray(o)?i[s]=o.filter(f=>f!==void 0).map(f=>l!=="location"&&(f==null?void 0:f.id)||f):o&&o===Object(o)&&o.id!==void 0?i[s]=o.id:i[s]=St(o),a&&n[a]&&(i[a]=n[a]),d!=null&&d.length&&(i=Object.assign(i,this.flatModel(n,d))),u!=null&&u.length&&(i=Object.assign(i,this.flatModel(n,u))),c!=null&&c.length)for({nested:u}of c)u!=null&&u.length&&(i=Object.assign(i,this.flatModel(n,u)))}else l==="groups"&&(u!=null&&u.length)&&(i=Object.assign(i,this.flatModel(n,u)));return i}areModelsEqual(n,r){const i=vM(this.flatModel(n)),o=vM(this.flatModel(r));return sK(i,o)}dropFile(n){n.preventDefault(),this.$refs.fileUploader[0].onFileSelected(n)}dragoverHandler(n){n.preventDefault()}expandAllParents(n){let r=n;for(;r&&r.classList;){if(r.classList.contains("md-list-item-expand")&&!r.classList.contains("md-active")){const i=r.querySelector("button");i&&i.click()}r=r.parentElement}}focusInput(){var r;const n=(r=this.$el.nextElementSibling)==null?void 0:r.querySelector(".md-input-invalid");if(n){this.expandAllParents(n);const i={time:400};this.scrollableParentClass&&(i.isScrollable=s=>s.className&&s.className.split(/\s+/).includes(this.scrollableParentClass));let o=this;SRe(n,i,function(){o.$nextTick(()=>{const s=n.parentElement.parentElement;ixe(s)})})}}findInputsVisible(n){return Array.from(n.$el.querySelectorAll("input,select,textarea")).filter(i=>i.offsetWidth>0&&i.offsetHeight>0).filter(i=>i.classList.contains("md-input"))}isValid(){return this.thisForm.node.context.state.valid}submit(n=!1){const r=this.thisForm.node,i=this.flatModel(this.formModel);return n||r.submit(),n||r.context.state.valid?(this.checkPendingChanges&&iu.removeForm(this),this.$emit("submitted",i),Promise.resolve(i)):(setTimeout(()=>{this.focusInput()},50),Promise.reject())}filterAutocomplete(n,r){let i=new RegExp("("+r.query.replace(/\s+/,".*")+")","gi");return n.filter(o=>r&&r.getText(o)&&r.getText(o).match(i))}getCaption(n,r,i){return n.caption&&typeof n.caption=="function"?n.caption(this.formModel[n.attribute],this,r,i):""}onPressEnter(n,r){n.submitOnPressShiftEnter&&r.shiftKey&&!sxe()&&(r.preventDefault(),this.submit(!1))}selectNativeElement(n){let r=document.getElementById(n);return r||(r=document.getElementsByName(n)[0]),r}beforeUnmount(){iu.removeForm(this)}};Ve([je({default:()=>[]})],Mn.prototype,"schema",void 0);Ve([je({default:()=>{}})],Mn.prototype,"modelValue",void 0);Ve([je({default:!0})],Mn.prototype,"checkPendingChanges",void 0);Ve([je({default:!1})],Mn.prototype,"isAdmin",void 0);Ve([je({default:!1})],Mn.prototype,"autoEnumerateStepName",void 0);Ve([je({default:!1})],Mn.prototype,"rightAlign",void 0);Ve([je({default:!1})],Mn.prototype,"blockSchemaRefresh",void 0);Ve([je({default:""})],Mn.prototype,"formName",void 0);Ve([je({default:!1})],Mn.prototype,"trackingEnabled",void 0);Ve([je({default:!1})],Mn.prototype,"disabled",void 0);Ve([je({default:!1})],Mn.prototype,"forceClose",void 0);Ve([je()],Mn.prototype,"scrollableParentClass",void 0);Ve([je({default:()=>{}}),Dw()],Mn.prototype,"customTypes",void 0);Ve([Dw({to:mV})],Mn.prototype,"opSym",void 0);Ve([Dw({to:$4e})],Mn.prototype,"cfgSym",void 0);Ve([sD()],Mn.prototype,"formModel",void 0);Ve([sD()],Mn.prototype,"thisForm",void 0);
715Ve([ka("schema")],Mn.prototype,"schemaWatch",null);Ve([ka("modelValue",{deep:!0})],Mn.prototype,"updateModel",null);Mn=Ve([La({name:"form-generator",components:{vdlIcon:LIe,MdList:Jp,FormKit:hV,FormFieldComponent:yV,FormFieldWithNested:bV}})],Mn);const ERe=Mn;const CRe={class:"form-content"},wRe={key:0,class:"unestiled-list"},TRe={class:"header"},ARe={key:0,class:"md-caption"},IRe={key:1,class:"alert"};function xRe(e,t,n,r,i,o){const s=bV,a=Vw,l=Jp,u=Xw,c=Uc("FormKit");return I(),Se(c,{type:"form",modelValue:e.formModel,ref:"thisForm",actions:!1,"incomplete-message":!1,id:e.formName||e.defaultId,name:e.formName,onSubmit:()=>{},onInput:t[3]||(t[3]=d=>e.updateChanges()),config:{validationVisibility:"submit"}},{default:pe(()=>[O("div",CRe,[e.schema?(I(),Se(l,{key:0,class:"fields md-double-line",ref:"fieldList"},{default:pe(()=>[(I(!0),R(Je,null,Dt(e.schema,d=>(I(),R("li",{key:`${d.attribute}-${d.id}`,class:Ie(["field-item",d.type])},[d.type!=="groups"?(I(),R("ul",wRe,[ae(s,{disabled:e.disabled,field:d,formModel:e.formModel,schema:e.schema,onKeydownEnter:e.onPressEnter,onSubmit:t[0]||(t[0]=f=>e.submit()),onFieldUpdated:(f,p)=>e.$emit(`update_field:${d.attribute}`,p)},null,8,["disabled","field","formModel","schema","onKeydownEnter","onFieldUpdated"])])):(I(),Se(a,{key:1,class:Ie({"form-group":!0,"md-closed-by-default":d.closedByDefault}),ref_for:!0,ref:"groupExpand"},{default:pe(()=>[O("div",TRe,[O("span",null,he(d.name),1),d.caption?(I(),R("span",ARe,he(d.caption),1)):K("",!0),d.alert?(I(),R("span",IRe,he(d.alert),1)):K("",!0)]),ae(u,null,{default:pe(()=>[ae(l,null,{default:pe(()=>[(I(!0),R(Je,null,Dt(d.nested,f=>(I(),Se(a,{class:Ie(["field-item",d.type]),key:`${f.attribute}-${f.id}`},{default:pe(()=>[ae(s,{disabled:e.disabled,field:f,formModel:e.formModel,schema:e.schema,onKeydownEnter:e.onPressEnter,onSubmit:t[1]||(t[1]=p=>e.submit()),onFieldUpdated:t[2]||(t[2]=(p,h)=>e.$emit(`update_field:${p}`,h))},null,8,["disabled","field","formModel","schema","onKeydownEnter"])]),_:2},1032,["class"]))),128))]),_:2},1024)]),_:2},1024)]),_:2},1032,["class"]))],2))),128))]),_:1},512)):K("",!0)])]),_:1},8,["modelValue","id","name"])}const LRe=Ye(ERe,[["render",xRe]]),eUe=Object.freeze(Object.defineProperty({__proto__:null,default:LRe},Symbol.toStringTag,{value:"Module"}));const gM=(e,t,n)=>{t==="start"?(e.addEventListener("mousedown",n),e.addEventListener("touchstart",n,{passive:!0})):(e.addEventListener("mouseup",n),e.addEventListener("touchend",n))},yb=(e,t,n)=>{t==="start"?(e.removeEventListener("mousedown",n),e.removeEventListener("touchstart",n)):(e.removeEventListener("mouseup",n),e.removeEventListener("touchend",n))},kRe={name:"md-ink-ripple",props:{mdDisabled:Boolean},data:()=>({mounted:!1,rippleElement:null,parentElement:null,parentDimensions:{width:null,height:null,top:null,left:null},awaitingComplete:!1,hasCompleted:!1,fadeOut:!1,active:!1}),computed:{classes(){return{"md-fadeout":this.fadeOut,"md-active":this.active}},styles(){return{width:this.parentDimensions.width,height:this.parentDimensions.height,top:this.parentDimensions.top,left:this.parentDimensions.left}},disabled(){return this.mdDisabled}},watch:{disabled(e){e?this.destroy():this.init()}},methods:{checkAvailablePositions(e){return["relative","absolute","fixed"].indexOf(getComputedStyle(e).position)>-1},getClosestPositionedParent(e){const t=e&&e.parentNode;return!t||t.tagName.toLowerCase()==="body"?!1:this.checkAvailablePositions(e)?e:this.getClosestPositionedParent(t)},getParentSize(){const e=this.parentElement;return Math.round(Math.max(e.offsetWidth,e.offsetHeight))+"px"},getClickPosition(e){if(this.$refs.ripple){const t=this.parentElement.getBoundingClientRect();let n=e.pageY,r=e.pageX;return e.type==="touchstart"&&(n=e.changedTouches[0].pageY,r=e.changedTouches[0].pageX),{top:n-t.top-this.$refs.ripple.offsetHeight/2-document.body.scrollTop+"px",left:r-t.left-this.$refs.ripple.offsetWidth/2-document.body.scrollLeft+"px"}}return!1},setDimensions(){const e=this.getParentSize();this.parentDimensions.width=e,this.parentDimensions.height=e},setPositions(e){const t=this.getClickPosition(e);t&&(this.parentDimensions.top=t.top,this.parentDimensions.left=t.left)},clearState(){this.active=!1,this.fadeOut=!1,this.hasCompleted=!1,this.setDimensions(),window.clearTimeout(this.awaitingComplete),yb(document.body,"end",this.endRipple)},startRipple(e){e.type==="touchstart"?this.previous.push("touch"):this.previous.push("mouse"),this.previous=this.previous.splice(this.previous.length-2,this.previous.length),!(this.previous.length>=2&&this.previous[1]==="touch"&&this.previous[0]==="mouse")&&(this.clearState(),this.awaitingComplete=window.setTimeout(()=>{this.hasCompleted=!0},400),gM(document.body,"end",this.endRipple),this.$nextTick(()=>{this.setPositions(e),this.active=!0}))},endRipple(){this.hasCompleted?this.fadeOut=!0:this.awaitingComplete=window.setTimeout(()=>{this.fadeOut=!0},200),yb(document.body,"end",this.endRipple)},registerTriggerEvent(){gM(this.parentElement,"start",this.startRipple)},unregisterTriggerEvent(){this.parentElement&&yb(this.parentElement,"start",this.startRipple)},init(){this.rippleElement=this.$el,this.parentElement=this.getClosestPositionedParent(this.$el.parentNode),this.previous=["mouse"],this.parentElement?(this.rippleElement.parentNod&&this.rippleElement.parentNode.removeChild(this.rippleElement),this.parentElement.querySelectorAll(".md-ink-ripple").length>0?this.destroy():(this.parentElement.appendChild(this.rippleElement),this.registerTriggerEvent(),this.setDimensions())):this.destroy()},destroy(){this.rippleElement&&this.rippleElement.parentNode&&(this.unregisterTriggerEvent(),this.rippleElement.parentNode&&this.rippleElement.parentNode.removeChild(this.rippleElement))}},mounted(){window.setTimeout(()=>{this.disabled?this.destroy():this.init(),this.$nextTick(()=>{this.mounted=!0})},100)},beforeUnmount(){this.destroy()}},MRe={key:0,class:"md-ink-ripple"};
715function RRe(e,t,n,r,i,o){return e.mounted||!o.disabled?(I(),R("div",MRe,[O("div",{class:Ie(["md-ripple",o.classes]),style:vt(o.styles),ref:"ripple"},null,6)])):K("",!0)}const PRe=Ye(kRe,[["render",RRe]]);const ORe=75,yM="-1px",$Re={name:"md-switch",props:{name:String,modelValue:Boolean,id:String,disabled:Boolean,type:{type:String,default:"button"},labelTurnOn:String,labelTurnOff:String},mixins:[Hn],data(){return{leftPos:yM,checked:!!this.modelValue}},computed:{classes(){return{"md-checked":this.checked,"md-disabled":this.disabled}},styles(){return{transform:`translate3D(${this.leftPos}, -50%, 0)`}}},watch:{checked(){this.setPosition()},modelValue(e){this.changeState(e)}},methods:{setPosition(){this.leftPos=this.checked?ORe+"%":yM},changeState(e,t){typeof t<"u"?(t.defaultPrevented||(this.checked=e),this.$emit("update:modelValue",this.checked,t)):this.checked=e},toggle(e){this.disabled||this.changeState(!this.checked,e)}},mounted(){this.$nextTick(this.setPosition)}},NRe=["name","id","disabled","value"],HRe=["type","aria-label"],DRe=["for"];function VRe(e,t,n,r,i,o){const s=PRe;return I(),R("div",{class:Ie(["md-switch",[e.themeClass,o.classes]])},[O("div",{class:"md-switch-container",onClickCapture:t[0]||(t[0]=(...a)=>o.toggle&&o.toggle(...a))},[O("div",{class:"md-switch-thumb",style:vt(o.styles)},[O("input",{type:"checkbox",name:n.name,id:n.id,disabled:n.disabled||null,value:n.modelValue,tabindex:"-1"},null,8,NRe),O("button",{type:n.type,"aria-label":n.modelValue?n.labelTurnOff:n.labelTurnOn,class:"md-switch-holder"},null,8,HRe),ae(s,{"md-disabled":n.disabled},null,8,["md-disabled"])],4)],32),e.$slots.default?(I(),R("label",{key:0,for:n.id||n.name,class:"md-switch-label"},[ge(e.$slots,"default")],8,DRe)):K("",!0)],2)}const tUe=Ye($Re,[["render",VRe]]);var FRe=Object.defineProperty,BRe=(e,t,n)=>t in e?FRe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,bM=(e,t,n)=>(BRe(e,typeof t!="symbol"?t+"":t,n),n);const _M={primary:{"--primary":"var(--voice-primary)","--surface":"var(--voice-surface)","--theme-color":"var(--voice-primary)","--theme-on-color":"var(--on-primary)","--theme-hover":"var(--primary-hover)","--theme-active":"var(--primary-active)","--theme-backdrop":"rgba(30, 136, 229, 0.2)"},"ai-voices":{"--primary":"var(--ai-voices)","--surface":"var(--voice-surface)","--theme-color":"var(--ai-voices)","--theme-on-color":"var(--on-ai-voices)","--theme-hover":"var(--ai-voices-hover)","--theme-active":"var(--ai-voices-active)","--theme-backdrop":"rgba(83, 64, 255, 0.2)"},"voice-shadow":{"--primary":"var(--voice-shadow)","--surface":"var(--voice-surface)","--theme-color":"var(--voice-shadow)","--theme-on-color":"#ffffff","--theme-hover":"#304156","--theme-active":"#2a3a4d","--theme-backdrop":"rgba(53, 72, 96, 0.2)"}};function Nc(e){return typeof e=="object"?{id:"custom",tokens:e}:{id:e,tokens:_M[e]??_M.primary}}const nv="vdl2Theme";function T0(e){const t=kt(nv,null),n=fe(()=>e?Nc(e):t?{id:t.themeId,tokens:t.tokens}:Nc("primary"));return{themeId:fe(()=>n.value.id),tokens:fe(()=>n.value.tokens),tokenStyle:fe(()=>({...n.value.tokens}))}}let URe;function jRe(){return URe}function WRe(e){return typeof e=="function"?e():Ee(e)}function TS(e){if(e instanceof Promise||e instanceof Date||e instanceof RegExp)return e;const t=WRe(e);if(!e||!t)return t;if(Array.isArray(t))return t.map(n=>TS(n));if(typeof t=="object"){const n={};for(const r in t)if(Object.prototype.hasOwnProperty.call(t,r)){if(r==="titleTemplate"||r[0]==="o"&&r[1]==="n"){n[r]=Ee(t[r]);continue}n[r]=TS(t[r])}return n}return t}const GRe="usehead",SM=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},EM="__unhead_injection_handler__";function zRe(){if(EM in SM)return SM[EM]();const e=kt(GRe);return e||jRe()}function qRe(e,t={}){const n=t.head||zRe();if(n)return n.ssr?n.push(e,t):KRe(n,e,t)}function KRe(e,t,n={}){const r=ie(!1),i=ie({});bi(()=>{i.value=r.value?{}:TS(t)});const o=e.push(i.value,n);return ut(i,s=>{o.patch(s)}),fi()&&(Dl(()=>{o.dispose()}),hp(()=>{r.value=!0}),pp(()=>{r.value=!1})),o}const XRe="3.12.13",Da=ie("idle"),bb=ie(!1),yu=ie(!1),Fu=ie(!1),CM=ie(!1);let bu=null;const ZRe=e=>`https://cdn.jsdelivr.net/npm/beercss@${e}/dist/cdn/beer.scoped.min.css`,YRe=e=>`https://cdn.jsdelivr.net/npm/beercss@${e}/dist/cdn/beer.min.js`,SV=()=>typeof window<"u"&&typeof window.ui=="function",wM=async(e=5e3)=>{const t=Date.now();for(;Date.now()-t<e;){if(SV())return;await new Promise(n=>setTimeout(n,10))}throw new Error("BeerCSS ui() function not available after JavaScript load")},TM=()=>{typeof window>"u"||Fu.value||window.ui&&typeof window.ui=="function"&&(window.ui(),Fu.value=!0)};function JRe(e={}
715){const t=kt("vdl2Css",null),n=e.version??(t==null?void 0:t.version)??XRe,r=ZRe(n),i=YRe(n);if(qRe(fe(()=>({link:[{key:"vdl2-beercss-scoped-css",rel:"stylesheet",href:r}],script:CM.value?[{key:"vdl2-beercss-js",type:"text/javascript",src:i,async:!0}]:[]}))),bb.value=!0,t)return{isLoaded:t.isLoaded,isCssLoaded:bb,isJsLoaded:yu,isInitialized:Fu,state:t.isLoaded?"loaded":"loading",loadBeerCss:()=>Promise.resolve()};const o=async()=>{if(yu.value||SV()){yu.value=!0;return}if(!(typeof window>"u")){if(bu){await bu,yu.value=!0;return}bu=(async()=>{try{await Ht(()=>import("./beer.min-877f6d1c.js"),[]),await wM(200)}catch(a){console.warn("Dynamic import failed, using script tag fallback:",a),CM.value=!0,await wM()}})(),await bu,yu.value=!0}},s=async()=>{if(!(Da.value==="loaded"||Fu.value)){if(Da.value==="loading"){bu&&await bu,TM();return}try{Da.value="loading",await o(),TM(),Da.value="loaded"}catch(a){throw Da.value="error",a}}};return{isLoaded:Da.value==="loaded"||Fu.value,isCssLoaded:bb,isJsLoaded:yu,isInitialized:Fu,state:Da.value,loadBeerCss:s}}const QRe=Qe({inheritAttrs:!1,__name:"Vdl2BeerCssWrapper",props:{themeColor:{default:"primary"},theme:{default:void 0},flatten:{type:Boolean,default:!0}},setup(e){const t=e,n=kt("vdl2Css",null),r=iE(),i=!!n,o=fe(()=>Object.entries(r).filter(([v])=>v!=="class"&&v!=="style")),s=fe(()=>Object.keys(r).length>0),a=fe(()=>p?!1:i&&t.flatten&&!s.value),l=fe(()=>Object.fromEntries(o.value)),u=kt(nv,null),c=fe(()=>t.themeColor!=="primary"?t.themeColor:n!=null&&n.themeColor&&n.themeColor!=="primary"?n.themeColor:u!=null&&u.themeId?u.themeId:t.themeColor),d=fe(()=>t.theme?Nc(t.theme):Nc(c.value)),f=fe(()=>d.value.tokens),p=i&&(t.theme!==void 0||t.themeColor!=="primary"),h=fe(()=>{const v=[];return r.class&&v.push(r.class),!a.value&&!t.flatten&&v.push("vdl2-beer-wrapper-box"),i?p&&v.push("vdl2-beer-wrapper"):v.push({beer:!0,"vdl2-beer-wrapper":!0}),v}),m=fe(()=>{const v=[];return(!i||p)&&v.push(f.value),r.style&&v.push(r.style),v});if(i){if(p){const v=mr({themeId:d.value.id,tokens:{...d.value.tokens}});ut(d,g=>{v.themeId=g.id,Object.assign(v.tokens,g.tokens)}),Ji(nv,v)}}else{const{isInitialized:v,loadBeerCss:g}=JRe(),y=mr({isLoaded:!1,version:"3.12.13",themeColor:c.value});ut(c,b=>{y.themeColor=b}),Ji("vdl2Css",y);const _=mr({themeId:d.value.id,tokens:{...d.value.tokens}});ut(d,b=>{_.themeId=b.id,Object.assign(_.tokens,b.tokens)}),Ji(nv,_),ut(v,b=>{b&&(y.isLoaded=!0)}),$n(async()=>{try{await g()}catch(b){console.error("Vdl2BeerCssWrapper: Failed to load BeerCSS:",b),y.isLoaded=!0}})}return(v,g)=>a.value?ge(v.$slots,"default",{key:0},void 0,!0):(I(),R("div",Un({key:1},l.value,{class:h.value,style:m.value}),[ge(v.$slots,"default",{},void 0,!0)],16))}}),sn=(e,t)=>{const n=e.__vccOpts||e;for(const[r,i]of t)n[r]=i;return n},an=sn(QRe,[["__scopeId","data-v-67b94df4"]]);function ePe(e){return/^mdi/i.test(e)}const tPe=e=>e.replace(/([A-Z])/g,"-$1").toLowerCase(),EV=e=>e.length,nPe={key:0,viewBox:"0 0 24 24"},rPe=["d"],iPe=["src","alt"],oPe=Qe({__name:"Vdl2Icon",props:{iconSvg:{default:""},iconImg:{default:""},icon:{default:""},iconAlt:{default:""},iconSize:{default:"small"},variant:{default:void 0},customClasses:{default:""}},setup(e){const t=e,n=fe(()=>{const r=[];if(t.icon&&ePe(t.icon)){let i=t.icon;i.toLowerCase().startsWith("mdi")&&(i=i.substring(3)),r.push("mdi"),r.push(`mdi-${tPe(i)}`)}if(t.iconSize&&r.push(t.iconSize),t.variant&&r.push(t.variant),t.customClasses){const i=t.customClasses.trim().split(/\s+/);r.push(...i)}return r});return(r,i)=>(I(),Se(an,null,{default:pe(()=>[O("i",{class:Ie(["vdl2-icon-wrapper",n.value])},[e.iconSvg&&!e.icon?(I(),R("svg",nPe,[O("path",{d:e.iconSvg},null,8,rPe)])):e.iconImg&&!e.icon?(I(),R("img",{key:1,src:e.iconImg,alt:e.iconAlt},null,8,iPe)):K("",!0)],2)]),_:1}))}}),at=sn(oPe,[["__scopeId","data-v-c60db01c"]]),sPe=["href","target","rel","aria-disabled"],aPe={key:0,class:"loading-spinner"},lPe={key:1,class:"icon-text-button-content"},uPe=["id","name","type","disabled","aria-label"],cPe={key:0,class:"loading-spinner"},dPe={key:1,class:"icon-text-button-content"},fPe=Qe({__name:"Vdl2Button",props:{variant:{default:"primary"},size:{default:"medium"},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},outlined:{type:Boolean,default:!1},raisedSize:{default:null},icon:{type:Boolean,default:!1},dense:{type:Boolean,default:!1},fab:{type:Boolean,default:!1},fabPosition:{},iconSvg:{default:void 0},iconImg:{default:void 0},iconName:{default:void 0},iconAlt:{default:void 0},iconText:{default:void 0},hasTextMargin:{type:Boolean,default:!1},href:{},target:{},rel:{},id:{},name:{},type:{default:"button"},ariaLabel:{}},emits:["click"],setup(e,{emit:t}){const n=e,r=t;$n(async()=>{});const i=fe(()=>n.target==="_blank"?n.rel||"noopener":n.rel),o=fe(()=>{if(n.variant==="iconText")return"medium"}),s=fe(()=>{const l=["button"];return n.fab?(l.push("round"),l.push("elevate"),n.fabPosition&&l.push(`fab-${n.fabPosition.replace("-","-")}`)):n.icon&&(l.push("round"),n.dense&&l.push("small")),n.variant&&n.variant!=="primary"&&l.push(n.variant),n.size&&n.size!=="medium"?l.push(n.size):n.dense&&!n.fab&&!n.icon&&l.push("small"),n.raisedSize&&!n.fab&&l.push(`${n.raisedSize}-elevate`),n.outlined&&l.push("border"),n.variant==="iconText"&&l.push("icon-text-button"),l.join(" ")}),a=l=>{!n.disabled&&!n.loading&&r("click",l)};return(l,u)=>(I(),Se(an,null,{default:pe(()=>[e.href?(I(),R("a",Un({key:0,class:s.value,href:e.disabled||e.loading?void 0:e.href,target:e.target,rel:i.value,"aria-disabled":e.disabled||e.loading},l.$attrs,{onClick:a}),[e.loading?(I(),R("span",aPe)):e.variant==="iconText"?(I(),R("div",lPe,[ae(at,{"icon-svg":e.iconSvg,"icon-img":e.iconImg,icon:e.iconName,"icon-alt":e.iconAlt,"icon-size":o.value,class:"icon-text-button-icon"},null,8,["icon-svg","icon-img","icon","icon-alt","icon-size"]),e.iconText||l.$slots.default?(I(),R("span",{key:0,class:Ie({"icon-text-button-text":!0,"has-text-margin":e.hasTextMargin})},[ge(l.$slots,"default",{},()=>[_t(he(e.iconText),1)],!0)],2)):K("",!0)])):ge(l.$slots,"default",{key:2},void 0,!0)],16,sPe)):(I(),R("button",Un({key:1,id:e.id,name:e.name,type:e.type,class:s.value,disabled:e.disabled||e.loading?!0:void 0,"aria-label":e.ariaLabel},l.$attrs,{onClick:a}),[e.loading?(I(),R("span",cPe)):e.variant==="iconText"?(I(),R("div",dPe,[ae(at,{"icon-svg":e.iconSvg,"icon-img":e.iconImg,icon:e.iconName,"icon-alt":e.iconAlt,"icon-size":o.value,class:"icon-text-button-icon"},null,8,["icon-svg","icon-img","icon","icon-alt","icon-size"]),e.iconText||l.$slots.default?(I(),R("span",{key:0,class:Ie({"icon-text-button-text":!0,"has-text-margin":e.hasTextMargin})},[ge(l.$slots,"default",{},()=>[_t(he(e.iconText),1)],!0)],2)):K("",!0)])):ge(l.$slots,"default",{key:2},void 0,!0)],16,uPe))]),_:3}))}}),ua=sn(fPe,[["__scopeId","data-v-11a7b499"]]),pPe={key:0,class:"card-header"},hPe={key:1,class:"card-content"},mPe={key:2,class:"card-actions"},nUe=Qe({__name:"Vdl2Card",props:{elevation:{default:void 0},padding:{type:Boolean,default:!0},rounded:{type:Boolean,default:!1},bordered:{type:Boolean,default:!1}},setup(e){const t=e,n=fe(()=>{const r=[];return t.elevation&&["small","medium","large"].includes(t.elevation)&&r.push(`${t.elevation}-elevate`),t.padding&&r.push("padding"),t.rounded&&r.push("round"),t.bordered&&r.push("border"),r.join(" ")});return(r,i)=>(I(),Se(an,null,{default:pe(()=>[O("div",Un({class:["card",n.value]},r.$attrs),[r.$slots.header?(I(),R("div",pPe,[ge(r.$slots,"header")])):K("",!0),r.$
715slots.content||r.$slots.default?(I(),R("div",hPe,[ge(r.$slots,"content",{},()=>[ge(r.$slots,"default")])])):K("",!0),r.$slots.actions?(I(),R("div",mPe,[ge(r.$slots,"actions")])):K("",!0)],16)]),_:3}))}});class vPe{constructor(){bM(this,"activePlayer",null),bM(this,"players",new Map)}register(t,n){this.players.set(t,n)}unregister(t){this.players.delete(t),this.activePlayer&&this.activePlayer.id===t&&(this.activePlayer=null)}setActive(t){const n=this.players.get(t);if(!n){console.warn(`AudioCoordinator: Player with id "${t}" not found. Available players:`,Array.from(this.players.keys()));return}if(this.activePlayer&&this.activePlayer!==n)try{this.activePlayer.pause()}catch(r){console.warn("Failed to pause previous audio player:",r)}this.players.forEach((r,i)=>{if(i!==t&&r!==n)try{r.pause(),r.stop&&r.stop()}catch{}}),this.activePlayer=n}pauseAll(){this.players.forEach(t=>{try{t.pause(),t.stop&&t.stop()}catch{}}),this.activePlayer=null}getActive(){return this.activePlayer}}const Td=new vPe;function gPe(){return{register:(e,t)=>Td.register(e,t),unregister:e=>Td.unregister(e),setActive:e=>Td.setActive(e),pauseAll:()=>Td.pauseAll(),getActive:()=>Td.getActive()}}function nh(e="vdl2"){return`${e}-${Math.random().toString(36).substr(2,9)}`}const yPe=["id","type","placeholder","disabled","readonly","required","maxlength"],bPe={key:0,class:"helper"},_Pe={key:1,class:"error"},SPe={key:2,class:"helper"},EPe=Qe({__name:"Vdl2Input",props:{label:{default:void 0},modelValue:{default:""},loading:{type:Boolean,default:!1},useCounter:{type:Boolean,default:!1},type:{default:"text"},placeholder:{},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},error:{type:[Boolean,String],default:!1},helperText:{},maxLength:{default:void 0}},emits:["update:modelValue","blur","focus"],setup(e,{emit:t}){const n=e,r=t,i=ie(nh("vdl2-input")),o=ie(n.modelValue),s=fe(()=>{const f=[];return n.disabled&&f.push("disabled"),n.readonly&&f.push("readonly"),n.error&&f.push("invalid"),f.join(" ")}),a=fe(()=>{const f=[];return n.error&&f.push("invalid"),f.join(" ")}),l=fe(()=>!o.value&&n.useCounter?`0 / ${n.maxLength||100}`:`${EV(o.value)} / ${n.maxLength||100}`),u=f=>{const p=f.target;o.value=p.value,r("update:modelValue",p.value)},c=f=>{r("blur",f)},d=f=>{r("focus",f)};return(f,p)=>(I(),Se(an,null,{default:pe(()=>[O("div",{class:Ie(["field",a.value])},[kn(O("input",Un({id:i.value,"onUpdate:modelValue":p[0]||(p[0]=h=>o.value=h),type:e.type,placeholder:e.placeholder,disabled:e.disabled,readonly:e.readonly,required:e.required,class:s.value,maxlength:e.maxLength},f.$attrs,{onInput:u,onBlur:c,onFocus:d}),null,16,yPe),[[Qg,o.value]]),e.helperText?(I(),R("span",bPe,he(e.helperText),1)):e.error?(I(),R("span",_Pe,he(e.error),1)):e.useCounter?(I(),R("span",SPe,he(l.value),1)):K("",!0)],2)]),_:1}))}}),rUe=sn(EPe,[["__scopeId","data-v-b2ea455f"]]),CPe=["id","placeholder","disabled","readonly","required","maxlength","rows","cols"],wPe=["for"],TPe={key:1,class:"message-text-footer"},APe={key:0,class:"error"},IPe={key:1,class:"helper counter"},xPe={key:0,class:"error"},LPe={key:1,class:"helper"},kPe={key:2,class:"helper"},MPe=Qe({__name:"Vdl2Textarea",props:{label:{default:void 0},modelValue:{default:""},placeholder:{default:""},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},required:{type:Boolean,default:!1},error:{type:[Boolean,String],default:!1},helperText:{default:""},maxLength:{default:void 0},useCounter:{type:Boolean,default:!1},rows:{default:4},cols:{default:void 0},border:{type:Boolean,default:!1},round:{type:Boolean,default:!1},fill:{type:Boolean,default:!1},size:{default:"small"},loading:{type:Boolean,default:!1},variant:{default:"default"},autoResize:{type:Boolean,default:!0}},emits:["update:modelValue","blur","focus"],setup(e,{emit:t}){const n=e,r=t,i=ie(n.modelValue),o=ie(!1),s=ie(`vdl2-textarea-${Math.random().toString(36).substr(2,9)}`),a=ie(n.placeholder);ut(()=>n.modelValue,m=>{i.value=m||""});const l=fe(()=>{const m=[];return n.label&&m.push("label"),(n.border||n.variant==="messageText")&&m.push("border"),n.variant==="messageText"&&m.push("message-text-variant"),n.roun
715d&&m.push("round"),n.fill&&m.push("fill"),n.size&&n.size!=="medium"&&m.push(n.size),n.error&&m.push("invalid"),n.disabled&&m.push("disabled"),n.autoResize&&m.push("min"),m.join(" ")}),u=fe(()=>{const m=[];return n.error&&m.push("invalid"),n.disabled&&m.push("disabled"),n.readonly&&m.push("readonly"),n.variant==="messageText"&&m.push("body-medium"),(i.value||o.value)&&m.push("active"),m.join(" ")}),c=fe(()=>n.variant==="messageText"?n.maxLength!==void 0:n.useCounter),d=fe(()=>{const m=n.maxLength||1e3;return!i.value&&c.value?`0 / ${m}`:`${EV(i.value)} / ${m}`}),f=m=>{const v=m.target;r("update:modelValue",v.value)},p=m=>{o.value=!1,r("blur",m)},h=m=>{a.value="",o.value=!0,r("focus",m)};return(m,v)=>(I(),Se(an,null,{default:pe(()=>[O("div",{class:Ie(["field textarea vdl2-textarea-wrapper",l.value])},[kn(O("textarea",Un({id:s.value,"onUpdate:modelValue":v[0]||(v[0]=g=>i.value=g),placeholder:e.placeholder||"",disabled:e.disabled,readonly:e.readonly,required:e.required,class:u.value,maxlength:e.maxLength,rows:e.rows,cols:e.cols},m.$attrs,{"data-enable-grammarly":"false",onInput:f,onBlur:p,onFocus:h}),null,16,CPe),[[bl,i.value]]),e.label?(I(),R("label",{key:0,for:s.value},he(e.label)+he(e.required?"*":""),9,wPe)):K("",!0),e.variant==="messageText"?(I(),R("div",TPe,[e.error?(I(),R("span",APe,he(e.error),1)):c.value?(I(),R("span",IPe,he(d.value),1)):K("",!0)])):(I(),R(Je,{key:2},[e.error?(I(),R("span",xPe,he(e.error),1)):e.helperText?(I(),R("span",LPe,he(e.helperText),1)):e.useCounter?(I(),R("span",kPe,he(d.value),1)):K("",!0)],64))],2)]),_:1}))}}),iUe=sn(MPe,[["__scopeId","data-v-2f2a67d3"]]),RPe={class:"vdl2-selector"},PPe={class:"vdl2-selector-text-content"},OPe={class:"vdl2-selector-label"},$Pe={key:0,class:"vdl2-selector-sublabel"},NPe={key:1,class:"vdl2-selector-placeholder"},HPe={key:0,class:"vdl2-selector-dropdown-header"},DPe={class:"vdl2-selector-options"},VPe=["onClick"],FPe={class:"vdl2-item-content"},BPe={class:"vdl2-item-label"},UPe={key:0,class:"vdl2-item-sublabel"},jPe={key:0,class:"vdl2-item-chevron"},WPe={key:1,class:"vdl2-selector-action"},GPe={key:0,class:"vdl2-selector-label-top"},zPe={key:0,class:"required"},qPe={key:0,class:"helper"},KPe=Qe({__name:"Vdl2Selector",props:{label:{default:""},placeholder:{default:"Select an option"},disabled:{type:Boolean,default:!1},required:{type:Boolean,default:!1},error:{type:Boolean,default:!1},helperText:{default:""},options:{},displayOptions:{},modelValue:{},showAction:{type:Boolean,default:!1},actionLabel:{default:"CREATE A NEW AI VOICE"},dropdownPosition:{default:"absolute"},maxDropdownHeight:{default:"20rem"},showChevron:{type:Boolean,default:!0},showClear:{type:Boolean,default:!0}},emits:["update:modelValue","action","blur","clear"],setup(e,{emit:t}){const n=e,{tokenStyle:r}=T0(),i=t,o={mdiChevronRight:jl,mdiChevronDown:p1,mdiPlayCircleOutline:kE,mdiPlus:UZ,mdiClose:El},s=ie(),a=ie(),l=ie(!1),u=ie({position:"fixed","z-index":"1000","max-height":n.maxDropdownHeight||"20rem","overflow-y":"auto","box-sizing":"border-box"}),c=()=>{if(!(!s.value||!a.value))try{const b=s.value.getBoundingClientRect(),S=window.visualViewport,C=(S==null?void 0:S.height)||window.innerHeight,E=(S==null?void 0:S.width)||window.innerWidth,w=(S==null?void 0:S.offsetTop)||0,T=(S==null?void 0:S.offsetLeft)||0,A=a.value.offsetHeight||320,L=8;let x=Math.max(b.width,250);x=Math.min(x,E-32);const k=C-b.bottom-L,M=b.top-L,z=k<140&&M>k,P={position:"fixed","z-index":"1000","overflow-y":"auto","box-sizing":"border-box",width:`${x}px`,left:`${Math.max(16+T,Math.min(b.left+T,E+T-x-16))}px`};if(z){const H=Math.max(8+w,b.top+w-Math.min(A,Math.max(160,M-16))-L);P.top=`${H}px`,P["max-height"]=`${Math.max(160,M-16)}px`}else{const H=b.bottom+L+w;P.top=`${Math.max(8+w,H)}px`,P["max-height"]=`${Math.max(160,k-16)}px`}u.value=P}catch{u.value={position:"fixed","z-index":"1000","max-height":n.maxDropdownHeight||"20rem","overflow-y":"auto","box-sizing":"border-box",top:"16px",left:"16px",width:"250px"}}};$n(()=>{var b,S;const C=T=>{const A=T.target,L=s.value&&s.value.contains(A),x=A.closest(".vdl2-selector-dropdown");!L&&!x&&(l.value=!1)},E=()=>{l.value&&c()},w=()=>{l.value&&c()};document.addEventListener("mousedown",C,!0),window.addEventListener("scroll",E,!0),window.addEventListener("resize",w),(b=window.visualVie
715wport)==null||b.addEventListener("resize",w),(S=window.visualViewport)==null||S.addEventListener("scroll",E),Rn(()=>{var T,A;document.removeEventListener("mousedown",C,!0),window.removeEventListener("scroll",E,!0),window.removeEventListener("resize",w),(T=window.visualViewport)==null||T.removeEventListener("resize",w),(A=window.visualViewport)==null||A.removeEventListener("scroll",E)})});const d=fe(()=>{if(!(n.modelValue===void 0||n.modelValue===null))return n.options.find(b=>b.id===n.modelValue)}),f=fe(()=>{var b;return typeof n.placeholder=="string"?n.placeholder:((b=n.placeholder)==null?void 0:b.text)||"Select an option"}),p=fe(()=>{var b;return typeof n.placeholder=="object"&&(b=n.placeholder)!=null&&b.iconSvg?n.placeholder.iconSvg:null}),h=fe(()=>n.displayOptions||n.options),m=()=>{n.disabled||(l.value=!l.value,l.value&&Lt(()=>c()))},v=b=>{b.disabled||(i("update:modelValue",b.id),l.value=!1)},g=b=>{i("blur",b)},y=()=>{i("action")},_=b=>{b.stopPropagation(),i("update:modelValue",void 0),i("clear")};return ut(l,b=>{b&&Lt(()=>c())}),(b,S)=>(I(),Se(an,null,{default:pe(()=>[O("div",RPe,[O("div",{ref_key:"selectorRef",ref:s,class:Ie(["field vdl2-selector-field",{disabled:e.disabled,error:e.error,open:l.value}])},[O("div",{class:"vdl2-selector-trigger",onClick:tt(m,["stop"]),onBlur:g},[O("div",{class:"vdl2-selector-content",onClick:tt(m,["stop"])},[ge(b.$slots,"selected",{option:d.value,value:e.modelValue},()=>[O("div",PPe,[d.value?(I(),R(Je,{key:0},[O("div",OPe,he(d.value.label),1),d.value.subLabel?(I(),R("div",$Pe,he(d.value.subLabel),1)):K("",!0)],64)):(I(),R("div",NPe,[p.value?(I(),Se(Ee(at),{key:0,"icon-svg":p.value,"icon-size":"large",class:"vdl2-placeholder-icon"},null,8,["icon-svg"])):K("",!0),O("span",null,he(f.value),1)]))])],!0)]),e.showClear&&d.value&&e.modelValue!==void 0&&e.modelValue!==null?(I(),R("button",{key:0,class:"vdl2-selector-clear","aria-label":"Clear selection",type:"button",onClick:tt(_,["stop"])},[ae(Ee(at),{"icon-svg":o.mdiClose},null,8,["icon-svg"])])):K("",!0),!d.value||e.modelValue===void 0||e.modelValue===null||!e.showChevron?(I(),R("div",{key:1,class:Ie(["vdl2-selector-chevron",{rotate:l.value}])},[ae(Ee(at),{"icon-svg":o.mdiChevronDown},null,8,["icon-svg"])],2)):K("",!0)],32),(I(),Se(ys,{to:"#teleported",disabled:!1},[l.value?(I(),R("div",{key:0,ref_key:"dropdownRef",ref:a,class:Ie(["beer vdl2-selector-dropdown",{visible:l.value,teleported:!0}]),style:vt({...u.value,...Ee(r)})},[b.$slots["dropdown-header"]?(I(),R("div",HPe,[ge(b.$slots,"dropdown-header",{},void 0,!0)])):K("",!0),O("div",DPe,[(I(!0),R(Je,null,Dt(h.value,(C,E)=>ge(b.$slots,"item",{key:`item-${C.id}-${E}`,option:C,index:E,selected:C.id===e.modelValue,disabled:C.disabled,select:()=>{v(C)}},()=>[O("div",{class:Ie(["vdl2-selector-item",{disabled:C.disabled,selected:C.id===e.modelValue}]),onClick:tt(w=>v(C),["stop"])},[O("div",FPe,[O("div",BPe,he(C.label),1),C.subLabel?(I(),R("div",UPe,he(C.subLabel),1)):K("",!0)]),e.showChevron?(I(),R("div",jPe,[ae(Ee(at),{"icon-svg":o.mdiChevronRight},null,8,["icon-svg"])])):K("",!0)],10,VPe)],!0)),128))]),e.showAction?(I(),R("div",WPe,[ge(b.$slots,"action",{},()=>[O("button",{class:"vdl2-action-button",onClick:y},[ae(Ee(at),{"icon-svg":o.mdiPlus},null,8,["icon-svg"]),_t(" "+he(e.actionLabel),1)])],!0)])):K("",!0)],6)):K("",!0)])),e.label?(I(),R("label",GPe,[_t(he(e.label)+" ",1),e.required?(I(),R("span",zPe,"*")):K("",!0)])):K("",!0)],2),e.helperText?(I(),R("div",qPe,[O("span",{class:Ie({error:e.error})},he(e.helperText),3)])):K("",!0)])]),_:3}))}}),CV=sn(KPe,[["__scopeId","data-v-fbee4716"]]),XPe=["id"],ZPe={key:0,class:"vdl2-player-overlay by-error"},YPe={class:"vdl2-player-content"},JPe={class:"vdl2-player-container"},QPe={class:"vdl2-player"},eOe={key:0,class:"vdl2-player-load"},tOe={key:1,class:"vdl2-player-controls"},nOe={key:0,class:"vdl2-player-control"},rOe=["disabled"],iOe={class:"vdl2-player-control"},oOe=["disabled"],sOe={key:1,class:"vdl2-player-control"},aOe=["disabled"],lOe=["href"],uOe={key:0,class:"vdl2-player-title"},cOe={key:1},dOe=Qe({__name:"Vdl2AudioPlayer",props:{name:{default:void 0},url:{default:void 0},file:{default:void 0},simple:{type:Boolean,default:!1},preload:{default:"none"},disabled:{type:Boolean,default:!1},progress:{type:Boolean,default:!0},disabledCaption:{default:"Unavailable"},disabledByErrorCaption:{default:"Error loading audio"},minCompletionTime:{default:2},audioInstance:{default:void 0},beforePlay:{type:Function,default:void 0},providerUrl:{default:void 0},id:{default:void 0},voiceId:{default:void 0},useFilledIcons:{type:Boolean,default:!1},selectorCoordinator:{default:void 0},noBackdrop:{type:Boolean,default:!1}},emits:["audio-loaded","audio-error","play","pause","ended","seeked","timeupdate","loadedmetadata","audio-paused","audio-listened","title-click","before-play-fail","played"],setup(e,{expose:t,emit:n}){const r={Loading:"loading",Playing:"playing",Stopped:"stopped",Finished:"finished",Error:"error"},i=e,o=n,s=ie(void 0),a=ie(r.Stopped),l=ie(!1),u=ie(0),c=ie(!1),d=ie(!1),f=ie(0),p=ie(!0);let h,m=1e3;const v=fe(()=>
715({mdiRewind10:NP,mdiFastForward10:MP,mdiPlayCircle:i.useFilledIcons?BZ:kE,mdiPauseCircle:i.useFilledIcons?FZ:OP,mdiReplay:$P})),g=gPe(),y=ie(""),_={error:null,loadedmetadata:null,play:null,pause:null,seeked:null,ended:null,timeupdate:null},b=fe(()=>({width:u.value+"%"})),S=fe(()=>i.providerUrl?`${window.location.origin}${i.providerUrl}`:"#");ut(()=>i.url,()=>{C()}),ut(()=>i.file,()=>{C()});const C=()=>{if(s.value)try{s.value.pause(),_.error&&(s.value.removeEventListener("error",_.error),_.error=null),_.loadedmetadata&&(s.value.removeEventListener("loadedmetadata",_.loadedmetadata),_.loadedmetadata=null),_.play&&(s.value.removeEventListener("play",_.play),_.play=null),_.pause&&(s.value.removeEventListener("pause",_.pause),_.pause=null),_.seeked&&(s.value.removeEventListener("seeked",_.seeked),_.seeked=null),_.ended&&(s.value.removeEventListener("ended",_.ended),_.ended=null),_.timeupdate&&(s.value.removeEventListener("timeupdate",_.timeupdate),_.timeupdate=null)}catch{}if(i.audioInstance)s.value=i.audioInstance;else if(i.url)s.value=new Audio,s.value.preload=i.preload,s.value.src=i.url;else if(i.file){s.value=new Audio;const V=new FileReader;V.onload=B=>{var Y;s.value&&(Y=B.target)!=null&&Y.result&&(s.value.src=B.target.result)},V.readAsDataURL(i.file)}u.value=0,a.value=r.Stopped,s.value&&(_.error=()=>{c.value=!0,a.value=r.Error,o("audio-error",s.value.src)},_.loadedmetadata=()=>{o("loadedmetadata",s.value)},_.play=V=>{y.value&&(g.setActive(y.value),i.selectorCoordinator&&i.selectorCoordinator.onPlay(y.value)),o("play",V)},_.pause=V=>{p.value&&E(V),o("pause",V)},_.seeked=V=>{o("seeked",V)},_.ended=V=>{p.value&&E(V),o("ended",V),M()},_.timeupdate=V=>{i.progress&&de(),o("timeupdate",V)},s.value.addEventListener("error",_.error),s.value.addEventListener("loadedmetadata",_.loadedmetadata),s.value.addEventListener("play",_.play),s.value.addEventListener("pause",_.pause),s.value.addEventListener("seeked",_.seeked),s.value.addEventListener("ended",_.ended),s.value.addEventListener("timeupdate",_.timeupdate),y.value&&g.register(y.value,{pause:x,stop:k,id:y.value}))},E=V=>{p.value=!1;const B=V&&V.path&&V.path.length&&V.path[0].currentTime||0,Y=Math.round(B*1e3);o("played",{...V,duration:Y})},w=(V=!0)=>new Promise(B=>{l.value?B(!0):(V&&(a.value=r.Loading),s.value&&(s.value.load(),s.value.addEventListener("canplay",()=>{l.value=!0,o("audio-loaded"),B(!0)},{once:!0})))}),T=async()=>{a.value!==r.Playing&&(await w(),s.value&&(s.value.play(),a.value=r.Playing,o("audio-loaded")))},A=()=>{i.disabled||(a.value===r.Finished?L():a.value===r.Playing?x():L())},L=async()=>{if(a.value=r.Loading,typeof i.beforePlay=="function")try{await i.beforePlay(),T()}catch(V){o("before-play-fail",V)}else T()},x=()=>{a.value=r.Stopped,s.value&&(s.value.pause(),o("audio-paused"),se())},k=()=>{a.value===r.Playing&&(a.value=r.Stopped,s.value&&s.value.pause(),se())},M=()=>{a.value=r.Finished,se()},z=()=>{s.value&&(s.value.currentTime=0,a.value=r.Stopped)},P=V=>{if(!s.value)return 0;const B=s.value.duration;let Y=B*V/100;Y=Y>0?Math.max(Y,10):Math.min(Y,-10);const F=Math.max(0,Math.min(s.value.currentTime+Y,B));return s.value.currentTime=F,F},H=V=>{s.value&&(s.value.currentTime=s.value.duration*V)},q=()=>{var V;return(V=s.value)==null?void 0:V.currentTime},de=()=>{if(!s.value)return;const V=s.value.duration;a.value===r.Playing&&(u.value=s.value.currentTime*100/V,f.value||(f.value=window.setTimeout(se,i.minCompletionTime*1e3)))},se=()=>{d.value||(o("audio-listened"),d.value=!0)},W=()=>{o("title-click")};return t({play:L,pause:x,stop:k,reset:z,skip:P,seek:H,getCurrentTime:q,loadAudio:w,id:fe(()=>y.value)}),$n(async()=>{h=m++,y.value=i.voiceId||i.id||`audio-${h}`,g.register(y.value,{pause:x,stop:k,id:y.value}),i.selectorCoordinator&&Lt(()=>{y.value&&i.selectorCoordinator&&i.selectorCoordinator.register(y.value,{pause:x,stop:k})}),(i.url||i.file)&&C()}),ut(()=>i.id,V=>{const B=i.voiceId||V||`audio-${h}`;B&&y.value&&y.value!==B&&(g.unregister(y.value),i.selectorCoordinator&&i.selectorCoordinator.unregister(y.value),y.value=B,g.register(y.value,{pause:x,stop:k,id:y.value}),i.selectorCoordinator&&i.selectorCoordinator.register(y.value,{pause:x,stop:k}))}),ut(()=>i.voiceId,V=>{const B=V||i.id||`audio-${h}`;B&&y.value&&y.value!==B&&(g.unregister(y.value),i.selectorCoordinator&&i.selectorCoordinator.unregister(y.value),y.value=
715B,g.register(y.value,{pause:x,stop:k,id:y.value}),i.selectorCoordinator&&i.selectorCoordinator.register(y.value,{pause:x,stop:k}))}),ut(()=>i.selectorCoordinator,(V,B)=>{y.value&&(B&&B.unregister(y.value),V&&V.register(y.value,{pause:x,stop:k}))},{immediate:!1}),Rn(()=>{if(s.value)try{s.value.pause(),s.value.currentTime=0}catch{}if(y.value&&(g.unregister(y.value),i.selectorCoordinator&&i.selectorCoordinator.unregister(y.value)),s.value)try{s.value.remove()}catch{}f.value&&clearTimeout(f.value)}),(V,B)=>(I(),Se(an,null,{default:pe(()=>[O("div",{id:`${Ee(h)}`,class:Ie(["vdl2-audio-player",{"vdl2-player-simple":e.simple,"vdl2-player-disabled-state":e.disabled}])},[c.value?(I(),R("div",ZPe,he(e.disabledByErrorCaption),1)):K("",!0),O("div",YPe,[O("div",JPe,[kn(O("div",{class:"vdl2-player-backdrop",style:vt(b.value)},null,4),[[Ci,!i.noBackdrop]]),O("div",QPe,[a.value===r.Loading?(I(),R("div",eOe,[...B[2]||(B[2]=[O("progress",{class:"circle"},null,-1)])])):(I(),R("div",tOe,[e.simple?K("",!0):(I(),R("div",nOe,[a.value===r.Playing?(I(),R("button",{key:0,class:Ie(["vdl2-icon-button",{"vdl2-player-disabled":e.disabled}]),disabled:e.disabled,"aria-label":"Rewind 10 seconds",onClick:B[0]||(B[0]=Y=>P(-10))},[ae(Ee(at),{"icon-svg":v.value.mdiRewind10,"icon-size":"large"},null,8,["icon-svg"])],10,rOe)):K("",!0)])),O("div",iOe,[O("button",{class:Ie(["vdl2-icon-button vdl2-play-button",{"vdl2-player-disabled":e.disabled}]),disabled:e.disabled,"aria-label":"play",onClick:A},[a.value===r.Finished?(I(),Se(Ee(at),{key:0,"icon-svg":v.value.mdiReplay,"icon-size":"huge"},null,8,["icon-svg"])):a.value===r.Playing?(I(),Se(Ee(at),{key:1,"icon-svg":v.value.mdiPauseCircle,"icon-size":"huge"},null,8,["icon-svg"])):(I(),Se(Ee(at),{key:2,"icon-svg":v.value.mdiPlayCircle,"icon-size":"huge"},null,8,["icon-svg"]))],10,oOe)]),e.simple?K("",!0):(I(),R("div",sOe,[a.value===r.Playing?(I(),R("button",{key:0,class:Ie(["vdl2-icon-button",{"vdl2-player-disabled":e.disabled}]),disabled:e.disabled,"aria-label":"Fast forward 10 seconds",onClick:B[1]||(B[1]=Y=>P(10))},[ae(Ee(at),{"icon-svg":v.value.mdiFastForward10,"icon-size":"large"},null,8,["icon-svg"])],10,aOe)):K("",!0)]))]))])]),e.providerUrl?(I(),R("a",{key:0,href:S.value,class:"vdl2-profile-link"},[e.name&&!e.simple?(I(),R("div",uOe,[O("span",null,he(e.name),1)])):K("",!0)],8,lOe)):(I(),R("div",cOe,[e.name&&!e.simple?(I(),R("div",{key:0,class:"vdl2-player-title",onClick:W},[O("span",null,he(e.name),1)])):K("",!0)]))])],10,XPe)]),_:1}))}}),AM=sn(dOe,[["__scopeId","data-v-11f85a59"]]),fOe=["aria-label"],pOe=["src","alt"],hOe=Qe({__name:"Vdl2Avatar",props:{src:{default:void 0},alt:{default:""}},setup(e){const t=e,n=ie(!1),r=fe(()=>!!t.src&&!n.value),i=fe(()=>t.alt||"Avatar"),o=()=>{n.value=!0};return ut(()=>t.src,()=>{n.value=!1}),(s,a)=>(I(),Se(an,null,{default:pe(()=>[O("div",{class:"vdl2-avatar",role:"img","aria-label":i.value},[r.value?(I(),R("img",{key:0,src:e.src,alt:i.value,onError:o},null,40,pOe)):(I(),Se(at,{key:1,"icon-svg":Ee(yZ),class:"vdl2-avatar-icon","aria-hidden":"true"},null,8,["icon-svg"]))],8,fOe)]),_:1}))}}),oUe=sn(hOe,[["__scopeId","data-v-cf2be0b1"]]),mOe={class:"card-content"},vOe={class:"vdl2-voice-play-section"},gOe={class:"vdl2-shadow-player-progress-section"},yOe={class:"vdl2-shadow-player-info vdl2-shadow-player-info-top"},bOe={class:"vdl2-voice-name label-large"},_Oe={class:"vdl2-progress-bar-container"},SOe={class:"vdl2-progress-bar-track"},EOe=["max","value"],COe={class:"vdl2-shadow-player-info vdl2-shadow-player-info-bottom"},wOe={key:0,class:"vdl2-audio-card-error label-small"},TOe={key:1,class:"vdl2-voice-name label-small"},AOe={key:0},IOe=["data-menu-id"],xOe=["data-menu-id"],LOe=["onClick"],kOe={class:"body-large"},MOe={key:1,class:"vdl2-card-layout"},ROe={class:"vdl2-voice-play-section"},POe={class:"vdl2-voice-info-section"},OOe={class:"vdl2-voice-name"},$Oe={key:0,class:"vdl2-voice-provider"},NOe={class:"vdl2-provider-name bold"},HOe=["data-menu-id"],DOe=["data-menu-id"],VOe=["onClick"],AS=Qe({__name:"Vdl2AudioCard",props:{audioId:{},audioName:{},vaName:{default:""},audioUrl:{default:""},provider:{default:""},audioData:{default:{}},script:{default:""},menuActions:{default:()=>[]},beforePlay:{type:Function,default:void 0},playerId:{default:void 0},customClasses:{default:""},variant:{default:"default"},disabled:{type:Boolean,default:!1}
715,shadowPlayerBackgroundColor:{default:""},noBackdrop:{type:Boolean,default:!1},disabledByErrorCaption:{default:"Error loading audio"}},emits:["contact","book","generate","buy","delete","audio-error","card-click"],setup(e,{emit:t}){const{tokenStyle:n}=T0(),r=kt("selectorAudioCoordinator",void 0),i=e,o=t,s=ie(),a=ie(!1),l=ie(null),u=ie(null),c=ie({top:"0",right:"0"}),d=ie(0),f=ie(0),p=ie(null),h=ie(null),m=ie(!1),v=fe(()=>{if(!i.shadowPlayerBackgroundColor||i.variant!=="shadowPlayer")return{};const W=i.shadowPlayerBackgroundColor;return W.startsWith("var(")||W.startsWith("#")||W.startsWith("rgb")||W.startsWith("rgba")||W.startsWith("hsl")?{backgroundColor:W}:{backgroundColor:{"blue-light":"var(--blue-light)","light-grey":"var(--light-grey)","medium-grey":"var(--medium-grey)"}[W]||W}}),g=W=>{if(!W)return"0:00";const V=Math.floor(W/60),B=Math.floor(W%60);return`${V}:${B.toString().padStart(2,"0")}`},y=fe(()=>`${g(d.value)} / ${g(f.value)}`),_=fe(()=>{if(d.value&&f.value){const W=d.value/f.value*100;return W<75?`calc(${W}% + 2px)`:`${W}%`}return"0%"}),b=W=>{m.value=!0,o("audio-error",W)},S=()=>{m.value=!1},C=W=>{W.stopPropagation(),a.value=!a.value,a.value&&Lt(()=>{E()})},E=()=>{if(!(!l.value||!u.value))try{const W=window.visualViewport,V=l.value.getBoundingClientRect(),B=u.value.offsetWidth||200,Y=u.value.offsetHeight||120,F=(W==null?void 0:W.width)||window.innerWidth,Q=(W==null?void 0:W.height)||window.innerHeight,re=(W==null?void 0:W.offsetLeft)||0,be=(W==null?void 0:W.offsetTop)||0;let Le=V.bottom+8+be;Le+Y>Q+be&&(Le=Math.max(8+be,Q+be-Y-16));let Me=F+re-V.right;if(Me+B>F-16){const He=Math.max(8+re,V.left+re-B+V.width);c.value={top:`${Le}px`,left:`${He}px`}}else c.value={top:`${Le}px`,right:`${Math.max(8,Me)}px`}}catch{c.value={top:"40px",right:"8px"}}},w=W=>{a.value=!1,W.action()},T=()=>{i.variant==="shadowPlayer"&&s.value&&f.value===0&&Lt(()=>{s.value&&s.value.getCurrentTime})},A=W=>{if(i.variant==="shadowPlayer"&&!x.value){const V=W.target;if(V&&V.currentTime!==void 0)h.value||(h.value=V),d.value=V.currentTime||0,f.value===0&&V.duration&&!isNaN(V.duration)&&isFinite(V.duration)&&(f.value=V.duration);else if(s.value&&s.value.getCurrentTime){const B=s.value.getCurrentTime();B!=null&&(d.value=B)}}},L=W=>{i.variant==="shadowPlayer"&&W&&W.duration&&!isNaN(W.duration)&&isFinite(W.duration)&&(h.value=W,f.value=W.duration)},x=ie(!1),k=()=>{x.value=!1},M=async W=>{if(f.value<=0||isNaN(f.value)||!isFinite(f.value))return;const V=Math.max(0,Math.min(W,f.value));if(h.value)try{h.value.currentTime=V,d.value=V;return}catch(B){console.warn("Error seeking audio element directly:",B)}if(s.value){if(s.value.loadAudio&&typeof s.value.loadAudio=="function"&&!await s.value.loadAudio(!1))return;const B=V/f.value;if(s.value.seek&&typeof s.value.seek=="function")try{s.value.seek(B),d.value=V}catch(Y){console.warn("Error seeking audio via seek method:",Y)}}},z=W=>{const V=W.target,B=parseFloat(V.value);x.value||(x.value=!0),d.value=B},P=async W=>{const V=W.target,B=parseFloat(V.value);await M(B)};ut([d,f],()=>{if(!x.value&&i.variant==="shadowPlayer"&&p.value&&f.value>0){const W=String(d.value);p.value.value!==W&&(p.value.value=W)}});const H=W=>{const V=W.target,B=V.closest(".vdl2-audio-player")||V.closest(".vdl2-play-button")||V.closest(".vdl2-icon-button")||V.closest("button")||V.closest(".vdl2-player-controls")||V.closest(".vdl2-audio-player-wrapper"),Y=V.closest(".vdl2-voice-menu-section")||V.closest(".vdl2-voice-menu-section-btn")||V.closest(".vdl2-audiocard-menu-teleported");!B&&!Y&&o("card-click",W)},q=W=>{var V;if(!a.value)return;const B=W.target;if(!B||(V=l.value)!=null&&V.contains(B))return;const Y=B.closest(".vdl2-audiocard-menu-teleported");Y&&Y.getAttribute("data-menu-id")===String(i.audioId)||B.closest(`[data-menu-id="${i.audioId}"]`)||(a.value=!1)},de=()=>{a.value&&E()},se=()=>{a.value&&E()};return $n(async()=>{const W=V=>{Lt(()=>{q(V)})};document.addEventListener("click",W,!0),window.addEventListener("scroll",de,!0),window.addEventListener("resize",se),Rn(()=>{document.removeEventListener("click",W,!0),window.removeEventListener("scroll",de,!0),window.removeEventListener("resize",se)}
715)}),ut(a,W=>{W&&Lt(()=>{E()})}),(W,V)=>(I(),Se(an,null,{default:pe(()=>[O("div",{ref:"cardRef",class:Ie(["card vdl2-audio-card",[e.customClasses,{"vdl2-audio-card-shadow-player":e.variant==="shadowPlayer"}]]),onClick:H},[O("div",mOe,[e.variant==="shadowPlayer"?(I(),R("div",{key:0,class:Ie(["vdl2-card-layout vdl2-card-layout-shadow-player",{"vdl2-shadow-player-no-bg":!e.shadowPlayerBackgroundColor}]),style:vt(v.value)},[O("div",vOe,[O("div",{class:"vdl2-audio-player-wrapper",onClick:V[0]||(V[0]=tt(()=>{},["stop"]))},[ae(Ee(AM),{id:`audio-player-${e.audioId}`,ref:s.value,url:e.audioUrl,simple:!0,name:e.audioName,class:"vdl2-audio","no-backdrop":"",preload:"metadata","before-play":e.beforePlay,"selector-coordinator":Ee(r),"voice-id":e.playerId||e.audioId,"use-filled-icons":e.variant==="shadowPlayer","disabled-by-error-caption":"",onAudioError:b,onAudioLoaded:S,onPlay:T,onTimeupdate:A,onLoadedmetadata:L,onSeeked:k},null,8,["id","url","name","before-play","selector-coordinator","voice-id","use-filled-icons"])])]),O("div",gOe,[O("div",yOe,[O("div",bOe,he(e.audioName),1)]),O("div",_Oe,[O("div",SOe,[O("div",{class:"vdl2-progress-bar-fill",style:vt({width:_.value})},null,4),O("input",{ref_key:"sliderRef",ref:p,type:"range",min:0,max:f.value||0,value:d.value,step:.1,class:"vdl2-progress-slider",onInput:z,onChange:P},null,40,EOe)])]),O("div",COe,[m.value?(I(),R("div",wOe,he(e.disabledByErrorCaption),1)):(I(),R("div",TOe,[e.vaName?(I(),R("span",AOe,he(e.vaName)+" - ",1)):K("",!0),O("span",null,he(y.value),1)]))])]),e.menuActions.length>0?(I(),R("div",{key:0,class:"vdl2-voice-menu-section","data-menu-id":e.audioId},[O("div",{ref_key:"menuButtonRef",ref:l,class:"vdl2-voice-menu-section-btn",onClick:tt(C,["stop"])},[ae(Ee(at),{"icon-svg":Ee(xv),"icon-size":"small","custom-classes":"vdl2-audio-card-menu-icon"},null,8,["icon-svg"])],512),(I(),Se(ys,{to:"#teleported"},[a.value?(I(),R("div",{key:0,ref_key:"menuDropdownRef",ref:u,class:"vdl2-menu-dropdown vdl2-menu-dropdown-shadow-player vdl2-audiocard-menu-teleported","data-menu-id":e.audioId,style:vt({...c.value,...Ee(n)})},[(I(!0),R(Je,null,Dt(e.menuActions,B=>(I(),R("div",{key:B.id,class:"vdl2-menu-item",onClick:tt(Y=>w(B),["stop"])},[B.iconSvg?(I(),Se(Ee(at),{key:0,class:"vdl2-icon","icon-svg":B.iconSvg,"icon-size":"small"},null,8,["icon-svg"])):K("",!0),O("span",kOe,he(B.label),1)],8,LOe))),128))],12,xOe)):K("",!0)]))],8,IOe)):K("",!0)],6)):(I(),R("div",MOe,[O("div",ROe,[O("div",{class:"vdl2-audio-player-wrapper",onClick:V[1]||(V[1]=tt(()=>{},["stop"]))},[ae(Ee(AM),{id:e.playerId?String(e.playerId):`audio-player-${e.audioId}`,ref:s.value,url:e.audioUrl,simple:!0,name:e.audioName,disabled:e.disabled,"no-backdrop":e.noBackdrop,class:"vdl2-audio","before-play":e.beforePlay,"selector-coordinator":Ee(r),"voice-id":e.playerId||e.audioId,"disabled-by-error-caption":e.disabledByErrorCaption,onAudioError:b,onPlay:T},null,8,["id","url","name","disabled","no-backdrop","before-play","selector-coordinator","voice-id","disabled-by-error-caption"])])]),O("div",POe,[ge(W.$slots,"info",{audioName:e.audioName,provider:e.provider,audioId:e.audioId,audioData:e.audioData},()=>[O("div",OOe,he(e.audioName),1),e.provider?(I(),R("div",$Oe,[V[2]||(V[2]=_t(" Powered by ",-1)),O("span",NOe,he(e.provider),1)])):K("",!0)])]),e.menuActions.length>0?(I(),R("div",{key:0,class:"vdl2-voice-menu-section","data-menu-id":e.audioId},[O("div",{ref_key:"menuButtonRef",ref:l,class:"vdl2-voice-menu-section-btn",onClick:tt(C,["stop"])},[ae(Ee(at),{"icon-svg":Ee(xv),"icon-size":"small","custom-classes":"vdl2-audio-card-menu-icon"},null,8,["icon-svg"])],512),(I(),Se(ys,{to:"#teleported"},[a.value?(I(),R("div",{key:0,ref_key:"menuDropdownRef",ref:u,class:"vdl2-menu-dropdown vdl2-audiocard-menu-teleported","data-menu-id":e.audioId,style:vt({...c.value,...Ee(n)})},[(I(!0),R(Je,null,Dt(e.menuActions,B=>(I(),R("div",{key:B.id,class:"vdl2-menu-item",onClick:tt(Y=>w(B),["stop"])},[B.iconSvg?(I(),Se(Ee(at),{key:0,class:"vdl2-icon","icon-svg":B.iconSvg,"icon-size":"small"},null,8,["icon-svg"])):K("",!0),O("span",null,he(B.label),1)],8,VOe))),128))],12,DOe)):K("",!0)]))],8,HOe)):K("",!0)]))])],2)]),_:3}))}}),FOe={class:"vdl2-search"},BOe={class:"vdl2-search-wrapper"},UOe={class:"vdl2-search-icon vdl2-search-icon-left"},jOe=["id","placeholder","disabled"],WOe=Qe({__name:"Vdl2Search",props:{placeholder:{default:"Search..."},modelValue:{default:""},disabled:{type:Boolean,default:!1}},emits:["update:modelValue","blur","focus","input"],setup(e,{emit:t}){const n=e,r=t,i=ie(nh("vdl2-search")),o=ie(n.modelValue);ut(()=>n.modelValue,f=>{o.value=f});const s=fe(()=>o.value.length>0),a=fe(()=>{const f=["vdl2-search-input"];return n.disabled&&f.push("disabled"),f.join(" ")}),l=f=>{const p=f.target;o.value=p.value,r("update:modelValue",p.value),r("input",f)},u=f=>{r("blur",f)},c=f=>{r("focus",f)},d=()=>{o.value="",r("update:modelValue",""),r("input",new Event("input"))};return(f,p)=>(I(),Se(an,null,{default:pe(()=>[O("div",FOe,[O("div",BOe,[O("div",UOe,[ae(Ee(at),{"icon-svg":Ee(HZ)},null,8,["icon-svg"])]),kn(O("input",Un({id:i.value,"onUpdate:modelValue":p[0]||(p[0]=h=>o.value=h),type:"text",placeholder:e.placeholder,disabled:e.disabled,class:a.value,style:{paddingRight:s.value?"40px":"16px"}},f.$attrs,{onInput:l,onBlur:u,onFocus:c}
715),null,16,jOe),[[bl,o.value]]),s.value?(I(),R("button",{key:0,type:"button",class:"vdl2-search-close","aria-label":"Clear search",onClick:d},[ae(Ee(at),{"icon-svg":Ee(El),"icon-size":"small"},null,8,["icon-svg"])])):K("",!0)])])]),_:1}))}}),GOe=sn(WOe,[["__scopeId","data-v-5d4fe537"]]),zOe={key:1,class:"vdl2-selector-text-content"},qOe={class:"vdl2-selector-placeholder"},KOe=["onClick"],XOe={key:0,class:"vdl2-item-chevron"},ZOe=Qe({__name:"Vdl2AudioSelector",props:{modelValue:{default:void 0},placeholder:{default:"Select an option"},options:{},showChevron:{type:Boolean,default:!0},showNameFilter:{type:Boolean,default:!1},nameFilterPlaceholder:{default:"Filter by name"}},emits:["update:modelValue","clear","blur","action","card-click"],setup(e,{emit:t}){const n={mdiChevronRight:jl},r=e,i=t,o=ie(null),s=ie(""),a=ie(new Map),l=fe(()=>{const b=s.value.trim().toLowerCase();return!r.showNameFilter||!b?r.options:r.options.filter(S=>S.label.toLowerCase().includes(b))}),u=(b,S)=>{if(a.value.has(b)){const C=a.value.get(b);C&&(C.pause(),C.stop&&C.stop()),a.value.delete(b)}a.value.set(b,S)},c=b=>{a.value.delete(b)},d=()=>{a.value.forEach(b=>{b.pause(),b.stop&&b.stop()})};Ji("selectorAudioCoordinator",{register:u,unregister:c,onPlay:b=>{a.value.forEach((S,C)=>{C!==b&&(S.pause(),S.stop&&S.stop())})},pauseAll:d});const f=b=>b.file||b.url||b.audioUrl||"",p=b=>b.provider?b.provider:b.subLabel?b.subLabel.replace(/^Powered by /i,""):"",h=(b,S)=>{i("card-click",S)},m=(b,S,C)=>{const E=b.target;E.closest(".vdl2-audio-player")||E.closest(".vdl2-play-button")||E.closest(".vdl2-icon-button")||E.closest("button")||E.closest(".vdl2-player-controls")||C()},v=b=>{i("update:modelValue",b)},g=()=>{d(),i("clear")},y=b=>{i("blur",b)},_=()=>{i("action")};return ut(()=>r.modelValue,(b,S)=>{S!=null&&b==null&&d()}),Rn(()=>{d(),a.value.clear()}),(b,S)=>(I(),Se(CV,Un({ref_key:"selectorRef",ref:o},b.$attrs,{"model-value":e.modelValue,options:e.options,"display-options":l.value,placeholder:e.placeholder,"onUpdate:modelValue":v,onClear:g,onBlur:y,onAction:_}),k4({selected:pe(({option:C})=>{var E,w;return[C?(I(),Se(AS,{key:0,"custom-classes":"vdl2-audio-selector-audio-card","audio-id":C.id,"audio-name":C.label,"audio-url":f(C),provider:p(C),"player-id":`audio-selector-selected-${C.id}`,"menu-actions":C.menuActions||[],"no-backdrop":"",onCardClick:T=>h(T,C)},{info:pe(({audioName:T,provider:A,audioId:L})=>[ge(b.$slots,"info",{audioName:T,provider:A,audioId:L,option:C},void 0,!0)]),_:2},1032,["audio-id","audio-name","audio-url","provider","player-id","menu-actions","onCardClick"])):(I(),R("div",zOe,[O("div",qOe,[typeof e.placeholder=="object"&&(E=e.placeholder)!=null&&E.iconSvg?(I(),Se(Ee(at),{key:0,"icon-svg":e.placeholder.iconSvg,"icon-size":"xxl",class:"vdl2-placeholder-icon"},null,8,["icon-svg"])):K("",!0),O("span",null,he(typeof e.placeholder=="string"?e.placeholder:((w=e.placeholder)==null?void 0:w.text)||"Select an option"),1)])]))]}),item:pe(({option:C,selected:E,select:w})=>[O("div",{class:Ie(["vdl2-audio-selector-item-wrapper",{selected:E}]),onClick:T=>m(T,C,w)},[ae(AS,{"audio-id":C.id,"audio-name":C.label,"audio-url":f(C),provider:p(C),"player-id":`audio-selector-item-${C.id}`,"menu-actions":C.menuActions||[],onCardClick:T=>m(T,C,w)},{info:pe(({audioName:T,provider:A,audioId:L})=>[ge(b.$slots,"info",{audioName:T,provider:A,audioId:L,option:C},void 0,!0)]),_:2},1032,["audio-id","audio-name","audio-url","provider","player-id","menu-actions","onCardClick"]),e.showChevron?(I(),R("div",XOe,[ae(Ee(at),{"icon-svg":n.mdiChevronRight},null,8,["icon-svg"])])):K("",!0)],10,KOe)]),action:pe(()=>[ge(b.$slots,"action",{},void 0,!0)]),_:2},[e.showNameFilter?{name:"dropdown-header",fn:pe(()=>[ae(GOe,{modelValue:s.value,"onUpdate:modelValue":S[0]||(S[0]=C=>s.value=C),placeholder:e.nameFilterPlaceholder,class:"vdl2-audio-selector-name-filter",onClick:S[1]||(S[1]=tt(()=>{},["stop"])),onMousedown:S[2]||(S[2]=tt(()=>{},["stop"]))},null,8,["modelValue","placeholder"])]),key:"0"}:void 0]),1040,["model-value","options","display-options","placeholder"]))}}),sUe=sn(ZOe,[["__scopeId","data-v-58c2e2fa"]]),YOe={class:"vdl2-paginator center-align"},JOe=["disabled"],QOe=["onClick"],e6e=["disabled"],t6e=640,n6e=Qe({__name:"Vdl2Paginator",props:{currentPage:{default:1},totalPages:{default:1},maxVisiblePages:{default:5}},emits:["update:currentPage","page-change"],setup(e,{emit:t}){const n={mdiChevronLeft:gp,mdiChevronRight:jl},r=e,i=t,o=ie(!1),s=()=>{const d=document.documentElement,f=getComputedStyle(d).getPropertyValue("--vdl2-mobile-breakpoint").trim(),p=f&&parseInt(f.replace("px",""))||t6e;o.value=window.innerWidth<p};$n(()=>{s(),window.addEventListener("resize",s)}),Rn(()=>{window.removeEventListener("resize",s)});const a=fe(()=>{if(o.value)return[r.currentPage];const d=[],{currentPage:f,totalPages:p,maxVisiblePages:h}=r;if(p<=h)for(let m=1;m<=p;m++)d.push(m);else{let m;f<=h?m=1:f>p-h?m=p-h+1:m=Math.floor((f-1)/h)*h+1;const v=Math.min(p,m+h-1);for(let g=m;g<=v;g++)d.push(g)}return d}),l=()=>{if(r.currentPage>1){const d=r.currentPage-1;i("update:currentPage",d),i("page-change",d)}},u=()=>{if(r.currentPage<r.totalPages){const d=r.currentPage+1;i("update:currentPage",d),i("page-change",d)}},c=d=>{d!==r.currentPage&&(i("update:currentPage",d),i("page-change",d))};return(d,f)=>(I(),Se(an,null,{default:pe(()=>[O("nav",YOe,[O("button",{class:Ie(["vdl2-paginator-nav vdl2-paginator-prev",{"vdl2-nav-disabled":e.currentPage===1}]),disabled:e.currentPage===1,onClick:l},[ae(Ee(at),{"icon-svg":n.mdiChevronLeft,"icon-size":"small"},null,8,["icon-svg"]),f[0]||(f[0]=O("span",{class:"vdl2-paginator-nav-text"},"PREVIOUS",-1))],10,JOe),(I(!0),R(Je,null,Dt(a.value,p=>(I(),R("button",{key:p,class:Ie(["square vdl2-paginator-page",{"vdl2-active-page":p===e.currentPage}]),onClick:h=>c(p)},he(p),11,QOe))),128)),O("button",{class:Ie(["vdl2-paginator-nav vdl2-paginator-next",{"vdl2-nav-disabled":e.currentPage===e.totalPages}]),disabled:e.currentPage===e.totalPages,onClick:u},[f[1]||(f[1]=O("span",{class:"vdl2-paginator-nav-text"},"NEXT",-1)),ae(Ee(at),{"icon-svg":n.mdiChevronRight,"icon-size":"small"},null,8,["icon-svg"])],10,e6e)])]),_:1}))}}),r6e=["id","name","disabled","checked","value"],i6e=Qe({__name:"Vdl2Radio",props:{variant:{default:"enabled"},label:{default:""},name:{default:"radio"},disabled:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},value:{default:void 0}},emits:["update:checked","change"],setup(e,{emit:t}){const n=e,r=t,i=ie(nh("vdl2-radio")),o=fe(()=>n.variant==="disabled"||n.disabled),s=a=>{const l=a.target;r("update:checked",l.checked),r("change",a)};return(a,l)=>(I(),Se(an,null,{default:pe(()=>[O("label",{class:Ie(["radio",{"vdl2-radio-dark-grey":e.variant==="dark-grey"}])},[O("input",Un({id:i.value,type:"radio",name:e.name,disabled:o.value,checked:e.checked,value:e.value},a.$attrs,{onChange:s}),null,16,r6e),O("span",null,[ge(a.$slots,"default",{},()=>[_t(he(e.label),1)],!0)])],2)]),_:3}))}}),aUe=sn(i6e,[["__scopeId","data-v-845b9764"]]),o6e={key:0,class:"dialog-fullscreen-header"},s6e={class:"dialog-header-title title-large"},a6e={key:0},l6e={key:2},u6e={key:1,class:"dialog-title-section"},c6e={class:"dialog-title-text title-large"},d6e={key:2,class:"vdl2-dialog-actions-shell"},f6e=Qe({inheritAttrs:!1,__name:"Vdl2Dialog",props:{open:{type:Boolean,default:!1},persistent:{type:Boolean,default:!1},fullscreen:{type:Boolean,default:!1},maxWidth:{default:void 0},title:{default:void 0},contentClass:{default:void 0}
715,themeColor:{default:void 0}},emits:["update:open","open-change"],setup(e,{expose:t,emit:n}){const r=e,i=n,{themeId:o}=T0(),s=fe(()=>r.themeColor||o.value),a=fe(()=>({...Nc(s.value).tokens})),l=ie(null),u=ie(!1),c={mdiArrowLeft:_Z,mdiClose:El},d=iE(),f=fe(()=>{const b=["dialog"];return r.fullscreen&&b.push("fullscreen"),r.maxWidth&&b.push(`max-width-${r.maxWidth}`),d.class&&b.push(String(d.class)),typeof window>"u"&&r.open&&b.push("active"),b.join(" ")}),p=fe(()=>{const{class:b,...S}=d;return S}),h=()=>{r.persistent||(_(),i("update:open",!1),i("open-change",!1))},m=()=>{r.persistent||(i("update:open",!1),i("open-change",!1))},v=b=>{b.target===l.value&&!r.persistent&&(_(),i("update:open",!1),i("open-change",!1))},g=()=>{r.persistent||(_(),i("update:open",!1),i("open-change",!1))},y=async()=>{if(u.value){if(!l.value){console.warn("Dialog element not found after mounting");return}try{typeof l.value.showModal=="function"?l.value.showModal():typeof window<"u"&&window.ui&&typeof window.ui=="function"?window.ui(l.value):console.warn("Neither showModal() nor window.ui() is available")}catch(b){console.error("Error opening dialog:",b)}}},_=()=>{if(l.value&&typeof l.value.close=="function")try{l.value.close()}catch(b){console.error("Error closing dialog:",b)}};return ut(()=>r.open,async b=>{u.value&&(b?await y():_(),i("open-change",b))}),$n(async()=>{u.value=!0,r.open&&await y()}),Rn(()=>{u.value=!1,l.value&&_()}),t({open:y,close:_}),(b,S)=>(I(),Se(ys,{to:"#teleported"},[ae(an,{"theme-color":s.value,flatten:!1},{default:pe(()=>[ae(Wc,{name:"vdl2-backdrop"},{default:pe(()=>[r.open?(I(),R("div",{key:0,class:Ie({"vdl2-dialog-backdrop":!0,"dialog-backdrop-fullscreen":r.fullscreen}),onClick:h},null,2)):K("",!0)]),_:1}),O("dialog",Un({ref_key:"dialogRef",ref:l,style:{visibility:r.open?"visible":"hidden",...a.value},class:f.value,"aria-modal":"true"},p.value,{onClick:v,onClose:m}),[r.fullscreen?(I(),R("div",o6e,[O("button",{class:"dialog-header-button",type:"button","aria-label":"Back",onClick:g},[ae(at,{"icon-svg":c.mdiArrowLeft,"icon-size":"medium"},null,8,["icon-svg"])]),O("div",s6e,[r.title?(I(),R("span",a6e,he(r.title),1)):b.$slots.title?ge(b.$slots,"title",{key:1},void 0,!0):(I(),R("span",l6e," Title goes here "))]),O("button",{class:"dialog-header-button",type:"button","aria-label":"Close",onClick:g},[ae(at,{"icon-svg":c.mdiClose,"icon-size":"medium"},null,8,["icon-svg"])])])):K("",!0),b.$slots.title||r.title?(I(),R("div",u6e,[b.$slots.title?ge(b.$slots,"title",{key:0},void 0,!0):(I(),R(Je,{key:1},[O("span",c6e,he(r.title),1),r.persistent?K("",!0):(I(),R("button",{key:0,class:"dialog-header-button dialog-close-button",type:"button","aria-label":"Close",onClick:g},[ae(at,{"icon-svg":c.mdiClose,"icon-size":"medium"},null,8,["icon-svg"])]))],64))])):K("",!0),O("div",{class:Ie(["vdl2-dialog-content",r.contentClass])},[ge(b.$slots,"default",{},void 0,!0)],2),b.$slots.actions?(I(),R("div",d6e,[ge(b.$slots,"actions",{},void 0,!0)])):K("",!0)],16)]),_:3},8,["theme-color"])]))}}),wV=sn(f6e,[["__scopeId","data-v-f565cf96"]]),p6e=Qe({__name:"Vdl2DialogContent",props:{scrollable:{type:Boolean,default:!1}},setup(e){const t=e,n=fe(()=>{const r=["dialog-content"];return t.scrollable&&r.push("scrollable"),r.join(" ")});return(r,i)=>(I(),Se(an,null,{default:pe(()=>[O("div",Un({class:n.value,role:"region","aria-label":"Dialog content"},r.$attrs,{onClick:i[0]||(i[0]=tt(()=>{},["stop"]))}),[ge(r.$slots,"default",{},void 0,!0)],16)]),_:3}))}}),h6e=sn(p6e,[["__scopeId","data-v-bffdeaea"]]),m6e=Qe({__name:"Vdl2DialogActions",props:{align:{default:"right"},padding:{type:Boolean,default:!0}},setup(e){const t=e,n=fe(()=>{const r=["dialog-actions"];return t.align==="left"?r.push("left-align"):t.align==="center"?r.push("center-align"):t.align==="right"?r.push("right-align"):t.align==="space-between"&&r.push("space-between"),t.padding&&r.push("padding"),r.join(" ")});return(r,i)=>(I(),Se(an,null,{default:pe(()=>[O("nav",Un({class:n.value,role:"toolbar","aria-label":"Dialog actions"},r.$attrs,{onClick:i[0]||(i[0]=tt(()=>{},["stop"]))}),[ge(r.$slots,"default",{},void 0,!0)],16)]),_:3}))}}),v6e=sn(m6e,[["__scopeId","data-v-0b4c249b"]]),g6e={class:"vdl2-click-to-copy"},y6e=["for"],b6e={class:"field"},_6e=["id","value"],S6e=Qe({__name:"Vdl2ClickToCopy",props:{label:{default:void 0},value:{default:""},disabled:{type:Boolean,default:!1}},emits:["copied","click"],setup(e,{emit:t}){const n=e,r=t,i=ie(nh("vdl2-click-to-copy")),o=ie(!1),s=fe(()=>o.value?"Link copied":n.label||""),a=fe(()=>{const f=["vdl2-click-to-copy-label"];
715return o.value&&f.push("vdl2-label-copied"),f.join(" ")}),l=fe(()=>{const f=["vdl2-click-to-copy-input"];return n.disabled&&f.push("disabled"),o.value&&f.push("vdl2-copied"),f.join(" ")}),u=async f=>{try{if(navigator.clipboard&&window.isSecureContext)await navigator.clipboard.writeText(f);else{const p=document.createElement("textarea");p.value=f,p.style.position="fixed",p.style.left="-999999px",p.style.top="-999999px",document.body.appendChild(p),p.focus(),p.select(),document.execCommand("copy"),p.remove()}o.value=!0,r("copied",f)}catch(p){console.error("Failed to copy text: ",p)}},c=f=>{n.disabled||(r("click",f),n.value&&u(n.value))},d=f=>{f.target.select()};return(f,p)=>(I(),Se(an,null,{default:pe(()=>[O("div",g6e,[e.label?(I(),R("label",{key:0,for:i.value,class:Ie(a.value)},he(s.value),11,y6e)):K("",!0),O("div",b6e,[O("input",{id:i.value,value:e.value,type:"text",readonly:"",class:Ie(l.value),onClick:c,onFocus:d},null,42,_6e)])])]),_:1}))}}),E6e=sn(S6e,[["__scopeId","data-v-e019f0b3"]]),C6e={class:"share-options-row"},w6e=["for"],rs={Voice123:"voice123",LinkedIn:"linkedin",Email:"email"},T6e=[{id:rs.Voice123,label:"Voice123 Messages",icon:AZ},{id:rs.LinkedIn,label:"Linkedin",icon:RP},{id:rs.Email,label:"Email",icon:SZ}],A6e=Qe({__name:"Vdl2ShareDialog",props:{open:{type:Boolean,default:!1},shareLink:{default:""},clickToCopyLabel:{default:"Click to copy link"},descriptionLabel:{default:"Files are secured and traceable to you. Link recipients can listen and download securely."},maxWidth:{default:"sm"},subject:{default:""},text:{default:""},url:{default:""},urls:{default:()=>({})},options:{default:()=>T6e}},emits:["update:open","open-change","share","copied"],setup(e,{emit:t}){const n=e,r=fe(()=>n.options),i=t,o=fe({get:()=>n.open,set:h=>{i("update:open",h),i("open-change",h)}}),s=ie(nh("share-dialog-description")),a=h=>{var m,v;return h===rs.Email&&(m=n.urls)!=null&&m.email?n.urls.email:h===rs.LinkedIn&&(v=n.urls)!=null&&v.linkedin?n.urls.linkedin:n.url||n.shareLink||""},l=()=>{const h=a(rs.Email),m=[n.text,h].filter(Boolean).join(" "),v=new URLSearchParams;return n.subject&&v.set("subject",n.subject),m&&v.set("body",m),`mailto:?${v.toString()}`},u=()=>{const h=a(rs.LinkedIn);return`https://www.linkedin.com/shareArticle?url=${encodeURIComponent(h)}`},c=h=>{try{window.open(h,"_blank","noopener,noreferrer")}catch(m){console.error("Failed to open share URL:",m)}},d=h=>{switch(i("share",h),h){case rs.Email:{const m=l();window.location.href=m;break}case rs.LinkedIn:{const m=u();c(m);break}}},f=h=>{i("copied",h)},p=()=>{o.value=!1};
715return(h,m)=>(I(),Se(Ee(wV),{open:o.value,"onUpdate:open":m[0]||(m[0]=v=>o.value=v),"max-width":e.maxWidth},{title:pe(()=>[...m[1]||(m[1]=[O("h2",{class:"title-large black-opacity-87"}," Share Via ",-1)])]),actions:pe(()=>[ae(Ee(v6e),{align:"right"},{default:pe(()=>[ae(ua,{variant:"ghost",onClick:p},{default:pe(()=>[...m[2]||(m[2]=[_t(" CLOSE ",-1)])]),_:1})]),_:1})]),default:pe(()=>[ae(Ee(h6e),null,{default:pe(()=>[O("div",C6e,[(I(!0),R(Je,null,Dt(r.value,v=>(I(),Se(ua,{key:v.id,variant:"iconText","icon-svg":v.icon,"icon-text":v.label,"has-text-margin":!0,onClick:g=>d(v.id)},null,8,["icon-svg","icon-text","onClick"]))),128))]),ae(E6e,{label:e.clickToCopyLabel,value:e.shareLink,onCopied:f},null,8,["label","value"]),e.descriptionLabel?(I(),R("label",{key:0,for:s.value,class:"share-dialog-description"},he(e.descriptionLabel),9,w6e)):K("",!0)]),_:1})]),_:1},8,["open","max-width"]))}}),lUe=sn(A6e,[["__scopeId","data-v-34a469f4"]]),I6e={key:0,class:"vdl2-list-header"},x6e={class:"vdl2-list-content"},L6e={key:1,class:"vdl2-list-footer"},k6e=Qe({__name:"Vdl2List",props:{dense:{type:Boolean,default:!1},dividers:{type:Boolean,default:!1},gap:{default:"medium"}},setup(e){const t=e,n=fe(()=>{const r=[];return t.dense&&r.push("vdl2-list--dense"),t.dividers&&r.push("vdl2-list--dividers"),t.gap!=="medium"&&r.push(`vdl2-list--gap-${t.gap}`),r});return(r,i)=>(I(),Se(an,null,{default:pe(()=>[O("div",Un({class:["vdl2-list",n.value]},r.$attrs),[r.$slots.header?(I(),R("div",I6e,[ge(r.$slots,"header",{},void 0,!0)])):K("",!0),O("div",x6e,[ge(r.$slots,"default",{},void 0,!0)]),r.$slots.footer?(I(),R("div",L6e,[ge(r.$slots,"footer",{},void 0,!0)])):K("",!0)],16)]),_:3}))}}),M6e=sn(k6e,[["__scopeId","data-v-36675ae3"]]),R6e={key:0,class:"vdl2-list-item__prepend"},P6e={class:"vdl2-list-item__content"},O6e={key:0,class:"vdl2-list-item__title"},$6e={key:1,class:"vdl2-list-item__subtitle"},N6e={key:1,class:"vdl2-list-item__append"},H6e=Qe({__name:"Vdl2ListItem",props:{dense:{type:Boolean,default:!1},clickable:{type:Boolean,default:!1}},setup(e){const t=e,n=fe(()=>{const r=[];return t.dense&&r.push("vdl2-list-item--dense"),t.clickable&&r.push("vdl2-list-item--clickable"),r});return(r,i)=>(I(),R("div",Un({class:["vdl2-list-item",n.value]},r.$attrs),[r.$slots.prepend?(I(),R("div",R6e,[ge(r.$slots,"prepend",{},void 0,!0)])):K("",!0),O("div",P6e,[r.$slots.title?(I(),R("div",O6e,[ge(r.$slots,"title",{},void 0,!0)])):K("",!0),r.$slots.subtitle||r.$slots.default?(I(),R("div",$6e,[ge(r.$slots,"subtitle",{},()=>[ge(r.$slots,"default",{},void 0,!0)],!0)])):K("",!0)]),r.$slots.append?(I(),R("div",N6e,[ge(r.$slots,"append",{},void 0,!0)])):K("",!0)],16))}}),uUe=sn(H6e,[["__scopeId","data-v-db647736"]]);function D6e(e){const t=n=>{const r=il(e.itemValue);return typeof r=="function"?r(n):typeof r=="string"?n[r]:n.id??n.value??n};return{items:fe(()=>{const n=il(e.items),r=il(e.returnObject);return n.map((i,o)=>{const s=r?i:t(i);return{id:i.id??o,value:s,raw:i,...i}})})}}function V6e(e,t){const n=fe(()=>il(e.page)??1),r=fe(()=>il(e.itemsPerPage)??10),i=fe(()=>{try{const s=t.value||[];if(!Array.isArray(s))return{page:1,itemsPerPage:r.value,totalItems:0,totalPages:1,startIndex:0,endIndex:0};const a=il(e.totalItems)||s.length,l=r.value;if(l>=a||l>=Number.MAX_SAFE_INTEGER/2)return{page:1,itemsPerPage:a,totalItems:a,totalPages:1,startIndex:0,endIndex:a};const u=Math.max(1,Math.ceil(a/l)),c=Math.min(n.value,u),d=(c-1)*l,f=Math.min(d+l,a);return{page:c,itemsPerPage:l,totalItems:a,totalPages:u,startIndex:d,endIndex:f}}catch{return{page:1,itemsPerPage:10,totalItems:0,totalPages:1,startIndex:0,endIndex:0}}}),o=fe(()=>{try{const s=t.value||[];if(!Array.isArray(s))return[];const a=i.value;if(!a||a.totalPages<=1&&a.itemsPerPage>=s.length)return s;const{startIndex:l,endIndex:u}=a;return s.slice(l,u)}catch{return t.value||[]}});return{paginationState:i,paginatedItems:o}}const F6e={class:"vdl2-page-size-selector-container"},B6e={class:"vdl2-page-size-field-wrapper"},U6e=Qe({__name:"Vdl2PageSizeSelector",props:{modelValue:{default:void 0},options:{},placeholder:{default:"Select items per page"},disabled:{type:Boolean,default:!1},showIcon:{type:Boolean,default:!0},iconSvg:{default:DZ},showChevron:{type:Boolean,default:!1},showClear:{type:Boolean,default:!1}},emits:["update:modelValue"],setup(e,{emit:t}){const n=e,r=t,i=ie(n.modelValue);ut(()=>n.modelValue,s=>{i.value=s});const o=s=>{i.value=s,r("update:modelValue",s)};return(s,a)=>(I(),R("div",F6e,[e.showIcon?(I(),Se(Ee(at),{key:0,class:"vdl2-page-size-selector-icon","icon-svg":e.iconSvg,"icon-size":"small"},null,8,["icon-svg"])):K("",!0),O("div",B6e,[ae(CV,{modelValue:i.value,"onUpdate:modelValue":[a[0]||(a[0]=l=>i.value=l),o],options:e.options,placeholder:e.placeholder,disabled:e.disabled,"show-chevron":e.showChevron,"show-clear":e.showClear,class:"vdl2-page-size-selector-field"},null,8,["modelValue","options","placeholder","disabled","show-chevron","show-clear"])])]))}}),j6e=sn(U6e,[["__scopeId","data-v-630a5439"]]),W6e={class:"vdl2-data-list"},G6e={key:0,class:"vdl2-data-list-header"},z6e={key:1,class:"vdl2-data-list-pagination-info"},q6e={key:3,class:"vdl2-data-list-empty"},K6e={class:"vdl2-empty-message"},X6e={key:4,class:"vdl2-data-list-pagination"},Z6e={key:5,class:"vdl2-data-list-pagination"},Y6e={key:6,class:"vdl2-data-list-footer"},J6e=Qe({__name:"Vdl2DataList",props:{items:{default:()=>[]},itemValue:{type:[String,Function],default:"id"},returnObject:{type:Boolean,default:!1},page:{default:1},itemsPerPage:{default:10},totalItems:{default:0},disablePagination:{type:Boolean,default:!0},disablePaginationCount:{type:Boolean,default:!1},showPageSizeSelector:{type:Boolean,default:!1},pageSizeOptions:{default:()=>[10,20,50,100]},maxVisiblePages:{default:5},dense:{type:Boolean,default:!1},dividers:{type:Boolean,default:!1},gap:{default:"medium"},emptyMessage:{default:"No items found"}},emits:["update:page","update:itemsPerPage","update-filters"],setup(e,{emit:t}){const n=e,r=t,i=fe(()=>!n.disablePagination),{items:o}=D6e({items:()=>n.items,itemValue:()=>n.itemValue,returnObject:()=>n.returnObject}),s=ie(n.itemsPerPage);ut(()=>n.itemsPerPage,v=>{s.value=v});const{paginationState:a}=V6e({page:fe(()=>i.value?n.page:1),itemsPerPage:fe(()=>i.value?s.value:Number.MAX_SAFE_INTEGER),totalItems:fe(()=>n.totalItems)},o),l=fe(()=>o.value),u=fe(()=>!(!i.value||!a.value)),c=fe(()=>i.value&&!n.disablePaginationCount&&a.value),d=fe(()=>{if(!i.value||!a.value)return"";const{startIndex:v,endIndex:g,totalItems:y}=a.value;return`Showing ${v+1} - ${g} of ${y}`}),f=fe(()=>n.pageSizeOptions.map(v=>({id:v,label:`Show ${v} items per page`}))),p=v=>{r("update:page",v),m()},h=v=>{s.value=v,r("update:itemsPerPage",s.value),m()},m=()=>{var v;const g={page:(v=a.value)==null?void 0:v.page,size:s.value};Object.keys(g).forEach(y=>{(g[y]===void 0||g[y]===null||g[y]==="")&&delete g[y]}),r("update-filters",g)};return(v,g)=>(I(),Se(an,null,{default:pe(()=>[O("div",W6e,[v.$slots.header?(I(),R("div",G6e,[ge(v.$slots,"header",{items:Ee(o),paginatedItems:l.value,paginationState:Ee(a)},void 0,!0)])):K("",!0),c.value&&Ee(a)?(I(),R("div",z6e,he(d.value),1)):K("",!0),l.value.length?(
715I(),Se(M6e,{key:2,dense:e.dense,dividers:e.dividers,gap:e.gap,class:"vdl2-data-list-items"},{default:pe(()=>[(I(!0),R(Je,null,Dt(l.value,(y,_)=>ge(v.$slots,"default",{key:y.id??_,item:y,items:l.value,index:_,raw:y.raw},()=>[ge(v.$slots,"item",{item:y,raw:y.raw,index:_},void 0,!0)],!0)),128))]),_:3},8,["dense","dividers","gap"])):(I(),R("div",q6e,[ge(v.$slots,"empty",{},()=>[O("div",K6e,he(e.emptyMessage),1)],!0)])),u.value&&Ee(a)?(I(),R("div",X6e,[ae(n6e,{"current-page":Ee(a).page,"total-pages":Ee(a).totalPages,"max-visible-pages":e.maxVisiblePages,"onUpdate:currentPage":p,onPageChange:p},null,8,["current-page","total-pages","max-visible-pages"])])):K("",!0),e.showPageSizeSelector&&i.value&&Ee(a)?(I(),R("div",Z6e,[ae(j6e,{modelValue:s.value,"onUpdate:modelValue":[g[0]||(g[0]=y=>s.value=y),h],options:f.value,"show-icon":!0,"show-chevron":!1},null,8,["modelValue","options"])])):K("",!0),v.$slots.footer?(I(),R("div",Y6e,[ge(v.$slots,"footer",{items:Ee(o),paginatedItems:l.value,paginationState:Ee(a)},void 0,!0)])):K("",!0)])]),_:3}))}}),cUe=sn(J6e,[["__scopeId","data-v-df15c6ac"]]),Q6e={class:"max"},e8e=Qe({__name:"Vdl2Snackbar",props:{modelValue:{type:Boolean,default:!0},position:{default:"bottom"},variant:{default:"default"},text:{default:""},actionLabel:{default:""},actionHref:{default:""},actionTarget:{default:"_self"}},emits:["update:modelValue","action"],setup(e,{emit:t}){const n=e,r=t,i=fe(()=>{const a=[];return(n.position==="top"||n.position==="bottom")&&a.push(n.position),n.modelValue&&a.push("active"),a.join(" ")}),o=fe(()=>n.variant==="withAction"),s=a=>{r("action",a)};return(a,l)=>(I(),Se(an,null,{default:pe(()=>[O("div",{class:Ie(["snackbar",i.value]),role:"status","aria-live":"polite"},[O("div",Q6e,[ge(a.$slots,"default",{},()=>[_t(he(e.text),1)],!0)]),o.value?(I(),Se(ua,{key:0,class:"inverse-link",variant:"ghost",size:"small",href:e.actionHref||void 0,target:e.actionTarget,onClick:s},{default:pe(()=>[ge(a.$slots,"action",{},()=>[_t(he(e.actionLabel),1)],!0)]),_:3},8,["href","target"])):K("",!0)],2)]),_:3}))}}),dUe=sn(e8e,[["__scopeId","data-v-67616d9b"]]),t8e=Qe({__name:"Vdl2Tooltip",props:{direction:{default:"top"},space:{default:"small-space"},max:{type:Boolean,default:!1}},setup(e){const t=e,n=fe(()=>{const r=t.direction!=="top"?t.direction:"",i=t.space!=="small-space"?t.space:"",o=t.max?"max":"";return[r,i,o]});return(r,i)=>(I(),Se(an,null,{default:pe(()=>[O("div",null,[ge(r.$slots,"default",{},void 0,!0),O("div",{class:Ie(["tooltip",n.value])},[ge(r.$slots,"tooltip",{},void 0,!0)],2)])]),_:3}))}}),fUe=sn(t8e,[["__scopeId","data-v-73e7039e"]]);function Sf(e){return e?e.split("?")[0].split("#")[0].endsWith(".m3u8"):!1}function TV(){return typeof document>"u"?!1:document.createElement("video").canPlayType("application/vnd.apple.mpegurl")!==""}function n8e(){const e=ie(null),t=ie("");async function n(i,o){if(r(),t.value="",!Sf(o))return;if(TV()){i.src=o;return}let s;try{s=(await Ht(()=>import("./hls-9f6cbdef.js"),[])).default}catch{t.value="HLS library not available";return}if(!s.isSupported()){t.value="HLS playback is not supported in this browser";return}const a=new s;e.value=a,a.on(s.Events.ERROR,(l,u)=>{u.fatal&&(u.type===s.ErrorTypes.NETWORK_ERROR?a.startLoad():u.type===s.ErrorTypes.MEDIA_ERROR?a.recoverMediaError():(t.value="Video playback error",a.destroy(),e.value=null))}),a.loadSource(o),a.attachMedia(i)}function r(){e.value&&(e.value.destroy(),e.value=null),t.value=""}return{hlsInstance:e,hlsError:t,attachHls:n,detachHls:r,isHlsSource:Sf}}const r8e=["src","poster","muted","loop","crossorigin","preload"],i8e=["src"],o8e={key:3,class:"vdl2-video-label label-small"},s8e={key:4,class:"vdl2-video-loading"},a8e={key:5,class:"vdl2-video-error"},l8e={class:"vdl2-video-error-text label-medium"},u8e={key:7,class:"vdl2-video-duration-badge label-medium"},c8e={class:"vdl2-controls-time"},d8e={class:"vdl2-controls-progress"},f8e={class:"vdl2-controls-progress-track"},p8e=["max","value"],h8e={key:0,class:"vdl2-controls-menu-section"},m8e=["onClick"],v8e=Qe({inheritAttrs:!1,__name:"Vdl2VideoPlayer",props:{src:{default:""},thumbnail:{default:""},duration:{default:0},label:{default:""},autoplay:{type:Boolean,default:!1},muted:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},objectFit:{default:"contain"},thumbnailOnly:{type:Boolean,default:!1},menuActions:{default:()=>[]},customClass:{default:""},crossorigin:{default:""},loading:{type:Boolean,default:!1},errorMessage:{default:""}},emits:["play","pause","ended","timeupdate","error","thumbnail-click","autoplay-blocked"],setup(e,{expose:t,emit:n}){const r=e,i=n,o=ie(null),s=ie(null),a=ie(null),l=ie(null),u=ie(null),c=ie(!1),d=ie(!1),f=ie(0),p=ie(0),h=ie(!1),m=ie(!0),v=ie(null),g=ie(r.muted),y=ie(!1),_=ie(!1),b=ie({top:"0",right:"0"}),S=ie(!1),C=ie("");let E=null;const{hlsError:w,attachHls:T,detachHls:A}=n8e(),L=fe(()=>{if(!(Sf(r.src)&&!TV()))return r.src}),x=fe(()=>r.errorMessage||w.value),k=fe(()=>p.value||r.duration||0),M=fe(()=>{var N;return!!((N=r.thumbnail)!=null&&N.trim()||C.value)}),z=fe(()=>{var N;return((N=r.thumbnail)==null?void 0:N.trim())||C.value||""}),P=fe(()=>!r.thumbnailOnly),H=N=>{if(!N||N<=0)return"0:00";const G=Math.floor(N/60),J=Math.floor(N%60);return`${G}:${J.toString().padStart(2,"0")}`},q=fe(()=>H(f.value)),de=fe(()=>H(k.value)),se=fe(()=>{if(f.value&&k.value){const N=f.value/k.value*100;
715return N<75?`calc(${N}% + 2px)`:`${N}%`}return"0%"}),W=async()=>{if(s.value){d.value=!0;try{await s.value.play()}catch(N){N instanceof DOMException&&N.name==="NotAllowedError"&&(d.value=!1,c.value=!1,i("autoplay-blocked"))}}},V=()=>{s.value&&s.value.pause()},B=()=>{c.value?V():W()},Y=()=>{r.loading||x.value||(r.thumbnailOnly?i("thumbnail-click"):B())},F=()=>{var N;return{timestamp:Date.now(),currentTime:((N=s.value)==null?void 0:N.currentTime)??0}},Q=()=>{c.value=!0,d.value=!0,Ae(),i("play",F())},re=()=>{c.value=!1,m.value=!0,xe(),i("pause",F())},be=()=>{c.value=!1,d.value=!1,m.value=!0,xe(),i("ended",F())},Le=N=>{if(!h.value){const G=N.target;f.value=G.currentTime||0}i("timeupdate",N)};function Me(){E&&(URL.revokeObjectURL(E),E=null),C.value=""}const He=N=>{const G=N.target;if(G.duration&&!isNaN(G.duration)&&isFinite(G.duration)&&(p.value=G.duration),!M.value&&!S.value&&G.readyState>=1){S.value=!0;try{const J=Math.min(.001,Math.max((G.duration||0)-.001,0));G.currentTime=J,G.addEventListener("seeked",()=>{var we;if(!(C.value||(we=r.thumbnail)!=null&&we.trim()))try{const ke=document.createElement("canvas");if(ke.width=G.videoWidth,ke.height=G.videoHeight,!ke.width||!ke.height)return;const Ze=ke.getContext("2d");if(!Ze)return;Ze.drawImage(G,0,0,ke.width,ke.height),ke.toBlob(We=>{We&&(Me(),E=URL.createObjectURL(We),C.value=E)},"image/jpeg",.7)}catch{}},{once:!0})}catch{}}},$=N=>{i("error",N)},U=N=>{const G=N.target,J=parseFloat(G.value);h.value||(h.value=!0),f.value=J},ee=N=>{const G=N.target,J=parseFloat(G.value);s.value&&(s.value.currentTime=J),f.value=J,h.value=!1},ce=()=>{g.value=!g.value,s.value&&(s.value.muted=g.value)},me=()=>{if(!o.value)return;const N=document,G=o.value,J=s.value;if(document.fullscreenElement||N.webkitFullscreenElement||J!=null&&J.webkitDisplayingFullscreen){if(document.fullscreenElement&&typeof document.exitFullscreen=="function"){document.exitFullscreen().catch(()=>{});return}if(typeof N.webkitExitFullscreen=="function")try{Promise.resolve(N.webkitExitFullscreen()).catch(()=>{})}catch{}return}if(typeof G.requestFullscreen=="function"){G.requestFullscreen().catch(()=>{});return}if(typeof G.webkitRequestFullscreen=="function"){try{Promise.resolve(G.webkitRequestFullscreen()).catch(()=>{})}catch{}return}if(typeof G.webkitRequestFullScreen=="function"){try{Promise.resolve(G.webkitRequestFullScreen()).catch(()=>{})}catch{}return}if(J&&typeof J.webkitEnterFullscreen=="function")try{J.webkitEnterFullscreen()}catch{}},Ce=()=>{const N=document,G=s.value;y.value=!!document.fullscreenElement||!!N.webkitFullscreenElement||!!(G!=null&&G.webkitDisplayingFullscreen)},xe=()=>{v.value!==null&&(clearTimeout(v.value),v.value=null)},Ae=()=>{xe(),c.value&&(v.value=setTimeout(()=>{m.value=!1},3e3))},te=()=>{m.value=!0,Ae()},le=N=>{N.stopPropagation(),_.value=!_.value,_.value&&Lt(()=>ye())},ye=()=>{if(!(!l.value||!u.value))try{const N=l.value.getBoundingClientRect(),G=u.value.offsetWidth||200,J=u.value.offsetHeight||120,we=window.innerWidth;let ke=N.top-J-8;ke<8&&(ke=N.bottom+8);let Ze=we-N.right;if(Ze+G>we-16){const We=Math.max(8,N.left-G+N.width);b.value={top:`${ke}px`,left:`${We}px`}}else b.value={top:`${ke}px`,right:`${Math.max(8,Ze)}px`}}catch{b.value={top:"40px",right:"8px"}}},D=N=>{_.value=!1,N.action()},j=N=>{var G,J;if(!_.value)return;const we=N.target;we&&((G=l.value)!=null&&G.contains(we)||(J=u.value)!=null&&J.contains(we)||(_.value=!1))},Z=()=>{_.value&&ye()},_e=()=>{_.value&&ye()};ut([f,()=>k.value],()=>{if(!h.value&&a.value&&k.value>0){const N=String(f.value);a.value.value!==N&&(a.value.value=N)}}),ut(_,N=>{N&&Lt(()=>ye())}),ut(()=>r.src,async N=>{c.value=!1,d.value=!1,f.value=0,p.value=0,m.value=!0,S.value=!1,Me(),A(),s.value&&N&&Sf(N)&&await T(s.value,N)}),ut(()=>r.muted,N=>{g.value=N,s.value&&(s.value.muted=N)},{immediate:!0});const Te=()=>{r.autoplay&&s.value&&W()},Xe=N=>{Lt(()=>j(N))};return $n(()=>{document.addEventListener("fullscreenchange",Ce),document.addEventListener("webkitfullscreenchange",Ce),document.addEventListener("click",Xe,!0),window.addEventListener("scroll",Z,!0),window.addEventListener("resize",_e);const N=s.value;if(N==null||N.addEventListener("webkitbeginfullscreen",Ce),N==null||N.addEventListener("webkitendfullscreen",Ce),s.value&&r.src&&Sf(r.src))T(s.value,r.src).then(()=>Te());else if(r.autoplay&&s.value){const G=s.value;G.readyState>=1?Te():G.addEventListener("loadedmetadata",()=>Te(),{once:!0})}}),Rn(()=>{xe(),Me(),A(),document.removeEventListener("fullscreenchange",Ce),document.removeEventListener("webkitfullscreenchange",Ce),document.removeEventListener("click",Xe,!0),window.removeEventListener("scroll",Z,!0),window.removeEventListener("resize",_e);const N=s.value;N==null||N.removeEventListener("webkitbeginfullscreen",Ce),N==null||N.removeEventListener("webkitendfullscreen",Ce)}),t({play:W,pause:V,togglePlay:B,videoRef:s,hasStarted:d}),(N,G)=>(I(),Se(an,null,{default:pe(()=>[O("div",{ref_key:"containerRef",ref:o,class:Ie(["vdl2-video-player",[e.customClass,{"vdl2-video-player--thumbn
715ail-only":e.thumbnailOnly}]]),onMousemove:te,onTouchstartPassive:te,onMouseleave:Ae},[P.value?kn((I(),R("video",{key:0,ref_key:"videoRef",ref:s,class:"vdl2-video-element",style:vt({objectFit:r.objectFit}),src:L.value,poster:z.value,muted:g.value,loop:e.loop,crossorigin:e.crossorigin||void 0,preload:M.value?"metadata":"auto",playsinline:"","webkit-playsinline":"true",onPlay:Q,onPause:re,onEnded:be,onTimeupdate:Le,onLoadedmetadata:He,onError:$,onClick:G[0]||(G[0]=J=>e.thumbnailOnly?Y():B())},null,44,r8e)),[[Ci,d.value||!M.value]]):K("",!0),M.value&&(e.thumbnailOnly||!d.value)?(I(),R("img",{key:1,src:z.value,class:"vdl2-video-thumbnail",style:vt({objectFit:r.objectFit}),alt:"",onClick:Y},null,12,i8e)):K("",!0),!M.value&&e.thumbnailOnly?(I(),R("div",{key:2,class:"vdl2-video-thumbnail vdl2-video-thumbnail-placeholder",onClick:Y})):K("",!0),G[3]||(G[3]=O("div",{class:"vdl2-video-hover-overlay"},null,-1)),e.label?(I(),R("span",o8e,he(e.label),1)):K("",!0),e.loading?(I(),R("div",s8e,[...G[2]||(G[2]=[O("progress",{class:"circle"},null,-1)])])):x.value?(I(),R("div",a8e,[ae(Ee(at),{"icon-svg":Ee(bZ),"icon-size":"medium"},null,8,["icon-svg"]),O("span",l8e,he(x.value),1)])):e.thumbnailOnly||!c.value?(I(),R("button",{key:6,class:"vdl2-video-play-btn",onClick:tt(Y,["stop"])},[ae(Ee(at),{"icon-svg":Ee(qA),"icon-size":"medium"},null,8,["icon-svg"])])):K("",!0),!e.loading&&!x.value&&(e.thumbnailOnly||!d.value)&&k.value>0?(I(),R("span",u8e,he(de.value),1)):K("",!0),e.thumbnailOnly?K("",!0):kn((I(),R("div",{key:8,class:"vdl2-video-controls",onClick:G[1]||(G[1]=tt(()=>{},["stop"]))},[O("button",{class:"vdl2-controls-btn",onClick:B},[ae(Ee(at),{"icon-svg":c.value?Ee(VZ):Ee(qA),"icon-size":"small"},null,8,["icon-svg"])]),O("span",c8e,he(q.value)+" / "+he(de.value),1),O("div",d8e,[O("div",f8e,[O("div",{class:"vdl2-controls-progress-fill",style:vt({width:se.value})},null,4),O("input",{ref_key:"sliderRef",ref:a,type:"range",min:0,max:k.value||0,value:f.value,step:.1,class:"vdl2-controls-progress-slider",onInput:U,onChange:ee},null,40,p8e)])]),O("button",{class:"vdl2-controls-btn",onClick:ce},[ae(Ee(at),{"icon-svg":g.value?Ee(GZ):Ee(WZ),"icon-size":"small"},null,8,["icon-svg"])]),O("button",{class:"vdl2-controls-btn",onClick:me},[ae(Ee(at),{"icon-svg":y.value?Ee(MZ):Ee(kZ),"icon-size":"small"},null,8,["icon-svg"])]),e.menuActions&&e.menuActions.length>0?(I(),R("div",h8e,[O("button",{ref_key:"menuButtonRef",ref:l,class:"vdl2-controls-btn",onClick:tt(le,["stop"])},[ae(Ee(at),{"icon-svg":Ee(xv),"icon-size":"small"},null,8,["icon-svg"])],512),(I(),Se(ys,{to:"#teleported"},[_.value?(I(),R("div",{key:0,ref_key:"menuDropdownRef",ref:u,class:"vdl2-player-menu-dropdown",style:vt(b.value)},[(I(!0),R(Je,null,Dt(e.menuActions,J=>(I(),R("div",{key:J.id,class:"vdl2-player-menu-item",onClick:tt(we=>D(J),["stop"])},[J.iconSvg?(I(),Se(Ee(at),{key:0,class:"vdl2-icon","icon-svg":J.iconSvg,"icon-size":"small"},null,8,["icon-svg"])):K("",!0),O("span",null,he(J.label),1)],8,m8e))),128))],4)):K("",!0)]))])):K("",!0)],512)),[[Ci,c.value&&m.value]])],34)]),_:1}))}}),lT=sn(v8e,[["__scopeId","data-v-be550ea6"]]),g8e={class:"vdl2-video-card-info"},y8e={class:"vdl2-video-card-text"},b8e={class:"vdl2-video-card-title title-medium"},_8e={key:0,class:"vdl2-video-card-subtitle label"},S8e=["data-menu-id"],E8e=["data-menu-id"],C8e=["onClick"],w8e=Qe({inheritAttrs:!1,__name:"Vdl2VideoCard",props:{videoId:{},title:{},subtitle:{default:""},src:{default:""},thumbnail:{default:""},duration:{default:0},label:{default:""},objectFit:{default:"contain"},thumbnailOnly:{type:Boolean,default:!1},menuActions:{default:()=>[]},loading:{type:Boolean,default:!1},errorMessage:{default:""}},emits:["card-click","thumbnail-click"],setup(e,{emit:t}){const n=e,r=t,i=ie(!1),o=ie(null),s=ie(null),a=ie({top:"0",right:"0"}),l=v=>{const g=v.target,y=g.closest(".vdl2-video-menu-section")||g.closest(".vdl2-video-menu-btn")||g.closest(".vdl2-video-menu-dropdown"),_=g.closest(".vdl2-video-player")||g.closest(".vdl2-video-play-btn");!y&&!_&&r("card-click",v)},u=v=>{v.stopPropagation(),i.value=!i.value,i.value&&Lt(()=>{c()})},c=()=>
715{if(!(!o.value||!s.value))try{const v=window.visualViewport,g=o.value.getBoundingClientRect(),y=s.value.offsetWidth||200,_=s.value.offsetHeight||120,b=(v==null?void 0:v.width)||window.innerWidth,S=(v==null?void 0:v.height)||window.innerHeight,C=(v==null?void 0:v.offsetLeft)||0,E=(v==null?void 0:v.offsetTop)||0;let w=g.bottom+8+E;w+_>S+E&&(w=Math.max(8+E,S+E-_-16));let T=b+C-g.right;if(T+y>b-16){const A=Math.max(8+C,g.left+C-y+g.width);a.value={top:`${w}px`,left:`${A}px`}}else a.value={top:`${w}px`,right:`${Math.max(8,T)}px`}}catch{a.value={top:"40px",right:"8px"}}},d=v=>{i.value=!1,v.action(n.videoId)},f=v=>{var g;if(!i.value)return;const y=v.target;if(!y||(g=o.value)!=null&&g.contains(y))return;const _=y.closest(".vdl2-video-menu-dropdown");_&&_.getAttribute("data-menu-id")===String(n.videoId)||y.closest(`[data-menu-id="${n.videoId}"]`)||(i.value=!1)},p=()=>{i.value&&c()},h=()=>{i.value&&c()},m=()=>{r("thumbnail-click")};return $n(()=>{var v,g;const y=_=>{Lt(()=>{f(_)})};document.addEventListener("click",y,!0),window.addEventListener("scroll",p,!0),window.addEventListener("resize",h),(v=window.visualViewport)==null||v.addEventListener("resize",h),(g=window.visualViewport)==null||g.addEventListener("scroll",p),Rn(()=>{var _,b;document.removeEventListener("click",y,!0),window.removeEventListener("scroll",p,!0),window.removeEventListener("resize",h),(_=window.visualViewport)==null||_.removeEventListener("resize",h),(b=window.visualViewport)==null||b.removeEventListener("scroll",p)})}),ut(i,v=>{v&&Lt(()=>{c()})}),(v,g)=>(I(),Se(an,null,{default:pe(()=>[O("article",{class:"vdl2-video-card",onClick:l},[ae(Ee(lT),{src:e.src,thumbnail:e.thumbnail,duration:e.duration,label:e.label,"object-fit":e.objectFit,"thumbnail-only":e.thumbnailOnly,loading:e.loading,"error-message":e.errorMessage,onThumbnailClick:m},null,8,["src","thumbnail","duration","label","object-fit","thumbnail-only","loading","error-message"]),O("div",g8e,[O("div",y8e,[O("div",b8e,he(e.title),1),e.subtitle?(I(),R("div",_8e,he(e.subtitle),1)):K("",!0)]),e.menuActions.length>0?(I(),R("div",{key:0,class:"vdl2-video-menu-section","data-menu-id":e.videoId},[O("div",{ref_key:"menuButtonRef",ref:o,class:"vdl2-video-menu-btn",onClick:tt(u,["stop"])},[ae(Ee(at),{"icon-svg":Ee(xv),"icon-size":"small","custom-classes":"vdl2-video-card-menu-icon"},null,8,["icon-svg"])],512),(I(),Se(ys,{to:"#teleported"},[i.value?(I(),R("div",{key:0,ref_key:"menuDropdownRef",ref:s,class:"vdl2-video-menu-dropdown vdl2-videocard-menu-teleported","data-menu-id":e.videoId,style:vt(a.value)},[(I(!0),R(Je,null,Dt(e.menuActions,y=>(I(),R("div",{key:y.id,class:"vdl2-video-menu-item",onClick:tt(_=>d(y),["stop"])},[y.iconSvg?(I(),Se(Ee(at),{key:0,class:"vdl2-icon","icon-svg":y.iconSvg,"icon-size":"small"},null,8,["icon-svg"])):K("",!0),O("span",null,he(y.label),1)],8,C8e))),128))],12,E8e)):K("",!0)]))],8,S8e)):K("",!0)])])]),_:1}))}}),T8e={key:0,class:"vdl2-video-carousel-header"},A8e={key:0,class:"vdl2-video-carousel-nav"},I8e={key:1,class:"vdl2-video-carousel-dots"},x8e=["aria-label","onClick","onKeydown"],pUe=Qe({inheritAttrs:!1,__name:"Vdl2VideoCarousel",props:{videos:{},themeColor:{}},emits:["card-click","thumbnail-click"],setup(e,{expose:t,emit:n}){const r=e,{themeId:i}=T0(),o=fe(()=>r.themeColor||i.value),s=fe(()=>({...Nc(o.value).tokens})),a=n,l=rE(),u=ie(null),c=ie(0),d=ie(!1),f=()=>{d.value=window.innerWidth<768},p=fe(()=>!d.value&&r.videos.length>2),h=fe(()=>d.value?r.videos.length>1:r.videos.length>2),m=fe(()=>d.value?r.videos.length:r.videos.length-1),v=fe(()=>c.value>0),g=fe(()=>c.value<m.value-1),y=()=>{if(!u.value)return 0;const w=u.value.offsetWidth;return d.value?w*.92+8:w*.5+8},_=w=>{if(!u.value)return;const T=y();u.value.scrollTo({left:w*T,behavior:"smooth"})},b=()=>{v.value&&_(c.value-1)},S=()=>{g.value&&_(c.value+1)},C=()=>{if(!u.value)return;const w=y();w!==0&&(c.value=Math.round(u.value.scrollLeft/w))};let E=null;return $n(()=>{f(),window.addEventListener("resize",f),u.value&&typeof ResizeObserver<"u"&&(E=new ResizeObserver(()=>{const w=y();u.value&&w>0&&u.value.scrollTo({left:c.value*w,behavior:"auto"})}),E.observe(u.value))}),Rn(()=>{window.removeEventListener("resize",f),E==null||E.disconnect()}),t({prev:b,next:S,first:()=>_(0),last:()=>_(m.value-1)}),(w,T)=>(I(),Se(an,null,{default:pe(()=>[O("div",{class:"vdl2-video-carousel",style:vt(s.value)},[Ee(l).header||p.value?(I(),R("div",T8e,[ge(w.$slots,"header"),p.value?(I(),R("div",A8e,[ae(Ee(ua),{icon:!0,outlined:!0,size:"small",disabled:!v.value,"aria-label":"Previous video",onClick:b},{default:pe(()=>[ae(Ee(at),{"icon-svg":Ee(gp),"icon-size":"small"},null,8,["icon-svg"])]),_:1},8,["disabled"]),ae(Ee(ua),{icon:!0,outlined:!0,size:"small",disabled:!g.value,"aria-label":"Next video",onClick:S},{default:pe(()=>[ae(Ee(at),{"icon-svg":Ee(jl),"icon-size":"small"},null,8,["icon-svg"])]),_:1},8,["disabled"])])):K("",!0)])):K("",!0),O("div",{ref_key:"viewportRef",ref:u,class:Ie(["vdl2-video-carousel-viewport",{"vdl2-video-carousel-viewport--single":e.videos.length===1}]),onScrollPassive:C},[(I(!0),R(Je,null,Dt(e.videos,(A,L)=>(I(),R("div",{key:A.videoId,class:"vdl2-video-carousel-item"},[ge(w.$slots,"item",{video:A,index:L},()=>[ae(w8e,Un({ref_for:!0},A,{onCardClick:x=>a("card-click",A,x),onThumbnailClick:()=>a("thumbnail-click",A)}),null,16,["onCardClick","onThumbnailClick"])])]))),128))],34),h.value?(I(),R("div",I8e,[(I(!0),R(Je,null,Dt(m.value,A=>(I(),R("span",{key:A,role:"button",tabindex:"0",class:Ie(["vdl2-carousel-dot",{"vdl2-carousel-dot--active":A-1===c.value}]),"aria-label":`Go to page ${A}`,onClick:L=>_(A-1),onKeydown:[Ar(L=>_(A-1),["enter"]),Ar(tt(L=>_(A-1),["prevent"]),["space"])]},null,42,x8e))),128))])):K("",!0)],4)]),_:3}))}}),L8e={class:"vdl2-video-dialog-content"},k8e={class:"vdl2-video-dialog-body"},M8e={key:0,class:"vdl2-video-dialog-title"},R8e={class:"title-extralarge"},P8e={class:"vdl2-video-dialog-info"},hUe=Qe({__name:"Vdl2VideoDialog",props:{open:{type:Boolean,default:!1},src:{default:""},thumbnail:{default:""},duration:{default:0},label:{default:""},autoplay:{type:Boolean,default:!0},videoTitle:{default:""},dialogTitle:{default:"Video details"}},emits:["update:open","play","pause","ended"],setup(e,{emit:t}){const n=e,r=t,i=ie(null),o=fe({get:()=>
715n.open,set:a=>r("update:open",a)}),s=a=>{var l;a||(l=i.value)==null||l.pause()};return(a,l)=>(I(),Se(Ee(wV),{open:o.value,"onUpdate:open":l[3]||(l[3]=u=>o.value=u),"max-width":"md","content-class":"vdl2-video-dialog-shell",class:"vdl2-video-dialog",fullscreen:!0,title:e.dialogTitle,onOpenChange:s},{actions:pe(()=>[ge(a.$slots,"actions")]),default:pe(()=>[O("div",L8e,[O("div",k8e,[e.videoTitle?(I(),R("div",M8e,[O("h3",R8e,he(e.videoTitle),1)])):K("",!0),ae(Ee(lT),{ref_key:"playerRef",ref:i,"custom-class":"vdl2-video-player-dialog",src:e.src,thumbnail:e.thumbnail,duration:e.duration,label:e.label,autoplay:e.autoplay,onPlay:l[0]||(l[0]=u=>r("play",u)),onPause:l[1]||(l[1]=u=>r("pause",u)),onEnded:l[2]||(l[2]=u=>r("ended",u))},null,8,["src","thumbnail","duration","label","autoplay"]),O("div",P8e,[ge(a.$slots,"video-content")])])])]),_:3},8,["open","title"]))}});let O8e=0;function $8e(){return`upload-${Date.now()}-${++O8e}`}function N8e(){return typeof navigator>"u"?!1:/firefox/i.test(navigator.userAgent)}function IS(e){const t=e.split(".");return t.length>1?t.pop().toLowerCase():""}function H8e(e){const t=IS(e.name),n=e.type.toLowerCase();return t==="mov"||n==="video/quicktime"}function D8e(e={}){const t=ie([]),n=ie(!1),r=new Set;let i=0;function o(E){return N8e()&&H8e(E)?"MOV files are not supported in Firefox. Please use MP4 or upload from Chrome or Safari.":e.accept&&!e.accept.split(",").map(w=>w.trim()).some(w=>w.endsWith("/*")?E.type.startsWith(w.replace("/*","/")):w.startsWith(".")?E.name.toLowerCase().endsWith(w.toLowerCase()):E.type===w)?`File type "${E.type||IS(E.name)}" is not accepted`:e.maxSize&&E.size>e.maxSize?`File size exceeds ${(e.maxSize/1048576).toFixed(0)}MB limit`:null}function s(E){return new Promise((w,T)=>{const A=E.type.startsWith("video/"),L=E.type.startsWith("audio/");if(!A&&!L){w(0);return}const x=document.createElement(A?"video":"audio"),k=URL.createObjectURL(E);r.add(k);const M=()=>{x.removeEventListener("loadedmetadata",z),x.removeEventListener("error",P),x.src="",URL.revokeObjectURL(k),r.delete(k)},z=()=>{const H=Number.isFinite(x.duration)?x.duration:0;M(),w(H)},P=()=>{M(),T(new Error("Could not read media duration"))};x.addEventListener("loadedmetadata",z,{once:!0}),x.addEventListener("error",P,{once:!0}),x.preload="metadata",x.src=k})}function a(E){return{id:$8e(),file:E,filename:E.name,ext:IS(E.name),size:E.size,status:"idle",progress:0}}async function l(E){if(!e.uploadHandler){const w=URL.createObjectURL(E.file);r.add(w),E.url=w,E.status="success",E.progress=100,u();return}E.status="uploading",E.progress=0,u();try{const w=await e.uploadHandler(E.file,T=>{E.progress=Math.min(Math.max(T,0),100),u()});Object.assign(E,w),E.status="success",E.progress=100}catch(w){E.status="error",E.error=(w==null?void 0:w.message)||"Upload failed"}u()}function u(){var E;(E=e.onUpdate)==null||E.call(e,t.value)}async function c(E){if(!e.maxDuration||!(E.type.startsWith("video/")||E.type.startsWith("audio/")))return null;try{if(await s(E)>e.maxDuration){const w=Math.floor(e.maxDuration/60),T=Math.floor(e.maxDuration%60);return`File duration exceeds the ${w>0?`${w}m ${T}s`:`${e.maxDuration}s`} limit`}}catch{}return null}function d(E){return new Promise((w,T)=>{if(!E.type.startsWith("video/")){w({width:0,height:0});return}const A=document.createElement("video"),L=URL.createObjectURL(E);r.add(L);const x=()=>{A.removeEventListener("loadedmetadata",k),A.removeEventListener("error",M),A.src="",URL.revokeObjectURL(L),r.delete(L)},k=()=>{const z=A.videoWidth,P=A.videoHeight;x(),w({width:z,height:P})},M=()=>{x(),T(new Error("Could not read video resolution"))};A.addEventListener("loadedmetadata",k,{once:!0}),A.addEventListener("error",M,{once:!0}),A.preload="metadata",A.src=L})}async function f(E){if(!(e.minWidth||e.minHeight||e.maxWidth||e.maxHeight)||!E.type.startsWith("video/"))return null;try{const{width:w,height:T}=await d(E);if(!w||!T)return null;if(e.minWidth&&w<e.minWidth)return`Video width ${w}px is below the minimum of ${e.minWidth}px`;if(e.minHeight&&T<e.minHeight)return`Video height ${T}px is below the minimum of ${e.minHeight}px`;if(e.maxWidth&&w>e.maxWidth)return`Video width ${w}px exceeds the maximum of ${e.maxWidth}px`;if(e.maxHeight&&T>e.maxHeight)return`Video height ${T}px exceeds the maximum of ${e.maxHeight}px`}catch{}return null}function p(E){const w=e.multiple?E:[E[0]];e.multiple||(t.value.forEach(A=>g(A)),t.value=[]);let T=e.maxFiles===void 0?1/0:Math.max(e.maxFiles-t.value.filter(A=>A.status!=="error").length,0);for(const A of w){if(!A)continue;
715const L=o(A)??(T>0?null:`Only ${e.maxFiles} files at a time`),x=a(A);if(L)x.status="error",x.error=L,t.value.push(x);else{T-=1,t.value.push(x);const k=t.value[t.value.length-1];e.maxDuration||e.minWidth||e.minHeight||e.maxWidth||e.maxHeight?Promise.all([c(A),f(A)]).then(([M,z])=>{const P=M||z;P?(k.status="error",k.error=P,u()):l(k)}):l(k)}}u()}function h(E){const w=t.value.findIndex(T=>T.id===E);w!==-1&&(g(t.value[w]),t.value.splice(w,1),u())}async function m(E){const w=t.value.find(x=>x.id===E);if(!w||w.status!=="error")return;const T=o(w.file);if(T){w.error=T,u();return}const A=await c(w.file);if(A){w.error=A,u();return}const L=await f(w.file);if(L){w.error=L,u();return}w.error=void 0,w.progress=0,l(w)}function v(){t.value.forEach(E=>g(E)),t.value=[],u()}function g(E){E.url&&r.has(E.url)&&(URL.revokeObjectURL(E.url),r.delete(E.url))}function y(){const E=document.createElement("input");E.type="file",e.accept&&(E.accept=e.accept),e.multiple&&(E.multiple=!0),E.onchange=()=>{var w;(w=E.files)!=null&&w.length&&p(Array.from(E.files))},E.click()}function _(E){E.preventDefault(),i++,n.value=!0}function b(E){E.preventDefault()}function S(E){E.preventDefault(),i--,i===0&&(n.value=!1)}function C(E){var w;E.preventDefault(),i=0,n.value=!1;const T=(w=E.dataTransfer)==null?void 0:w.files;T!=null&&T.length&&p(Array.from(T))}return Rn(()=>{r.forEach(E=>URL.revokeObjectURL(E)),r.clear()}),{files:t,isDragging:n,addFiles:p,removeFile:h,retryFile:m,clearAll:v,openFilePicker:y,onDragEnter:_,onDragOver:b,onDragLeave:S,onDrop:C}}const V8e={key:0,class:"vdl2-uploader-v2__required"},F8e={key:1,class:"vdl2-uploader-v2__preview-wrapper"},B8e={key:0,class:"vdl2-uploader-v2__default-preview vdl2-uploader-v2__default-preview--video"},U8e={key:1,class:"vdl2-uploader-v2__video-toolbar"},j8e={class:"vdl2-uploader-v2__video-toolbar-main"},W8e={key:0,class:"vdl2-uploader-v2__thumbnail-caption"},G8e={key:0,class:"vdl2-uploader-v2__thumbnail-editor"},z8e={class:"vdl2-uploader-v2__thumbnail-info"},q8e={class:"vdl2-uploader-v2__thumbnail-controls"},K8e=["max","value","disabled"],X8e={class:"vdl2-uploader-v2__thumbnail-time"},Z8e={class:"vdl2-uploader-v2__thumbnail-picker-actions"},Y8e={key:1,class:"vdl2-uploader-v2__thumbnail-error label-regular-small"},J8e={key:2,class:"vdl2-uploader-v2__default-preview vdl2-uploader-v2__default-preview--audio"},Q8e={key:3,class:"vdl2-uploader-v2__default-preview"},e7e={class:"vdl2-uploader-v2__preview-chip"},t7e={class:"vdl2-uploader-v2__chip-name"},n7e={class:"vdl2-uploader-v2__chip-size"},r7e={class:"vdl2-uploader-v2__message"},i7e={key:0,class:"vdl2-uploader-v2__inline-error"},o7e={key:1,class:"vdl2-uploader-v2__inline-error"},s7e={key:0,class:"vdl2-uploader-v2__file-list"},a7e={class:"vdl2-uploader-v2__file-info"},l7e={class:"vdl2-uploader-v2__file-name"},u7e={key:0,class:"vdl2-uploader-v2__file-percent"},c7e={key:1,class:"vdl2-uploader-v2__file-percent"},d7e={key:0,class:"vdl2-uploader-v2__progress-track"},f7e={key:1,class:"vdl2-uploader-v2__inline-error"},p7e=["aria-label","onClick"],h7e={key:2,class:"vdl2-uploader-v2__file-uploading"},m7e={class:"vdl2-uploader-v2__file-info"},v7e={class:"vdl2-uploader-v2__file-name"},g7e={class:"vdl2-uploader-v2__file-percent"},y7e={class:"vdl2-uploader-v2__progress-track"},om="initial-file",b7e=1280,_7e=900*1024,S7e=Qe({__name:"Vdl2Uploader",props:{label:{default:void 0},required:{type:Boolean,default:!1},accept:{default:void 0},maxSize:{default:void 0},maxDuration:{default:void 0},minWidth:{default:void 0},minHeight:{default:void 0},maxWidth:{default:void 0},maxHeight:{default:void 0},multiple:{type:Boolean,default:!1},maxFiles:{default:void 0},hideFileList:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},uploadHandler:{type:Function,default:void 0},thumbnailUploadHandler:{type:Function,default:void 0},modelValue:{default:void 0},primaryMessage:{default:"Click or drop file here to upload"},restriction:{default:void 0},icon:{default:void 0},mediaType:{default:"generic"},useBeerClasses:{type:Boolean,default:!0},enableThumbnailCapture:{type:Boolean,default:!0},errorMessage:{default:void 0},initialSrc:{default:void 0},initialThumbnail:{default:void 0}},emits:["update:modelValue","uploading","uploaded","failed","change","thumbnail-captured","thumbnail-uploading","thumbnail-uploaded","thumbnail-upload-failed","thumbnail-removed"],setup(e,{expose:t,emit:n}){const r=[.9,.7,.5],i=e,o=n,{files:s,isDragging:a,addFiles:l,removeFile:u,clearAll:c,openFilePicker:d,onDragEnter:f,onDragOver:p,onDragLeave:h,onDrop:m}=D8e({accept:i.accept,maxSize:i.maxSize,maxDuration:i.maxDuration,minWidth:i.minWidth,minHeight:i.minHeight,maxWidth:i.maxWidth,maxHeight:i.maxHeight,multiple:i.multiple,maxFiles:i.maxFiles,uploadHandler:i.uploadHandler,onUpdate:D=>{o("update:modelValue",D),o("change",D);for(const j of D)j.status==="uploading"&&o("uploading",j),j.status==="success"&&o("uploaded",j),j.status==="error"&&o("failed",j)}});ut(()=>i.modelValue,D=>{D&&D!==s.value&&(s.value=D)},{immediate:!0}),ut(()=>i.initialSrc,D=>{const j=s.value.findIndex(G=>G.id===om);if(j!==-1&&s.value.splice(j,1),!D||s.value.some(G=>G.id!==om&&G.status==="success"))return;const Z=D.split("?")[0].split("/").pop()||"file",_e=Z.match(/\.([^.]+)$/),Te=_e?_e[1]:"",Xe=Z||"file",N={id:om,file:new File([],Xe),filename:Xe,ext:Te,size:0,status:"success",progress:100,url:D,metadata:i.initialThumbnail?{thumbnailDataUrl:i.initialThumbnail}:void 0};s.value.push(N)},{immediate:!0});const v=fe(()=>s.value.find(D=>D.status==="success")),g=fe(()=>s.value.find(D=>D.status==="uploading"||D.status==="error")),y=fe(()=>!v.value&&!g.value&&!!i.errorMessage),_=ie(!1),b=ie(null),S=ie(null),C=ie(null),E=fe(()=>{var D;return((D=C.value)==null?void 0:D.videoRef)??null}),w=fe(()=>{var D,j;const Z=(j=(D=v.value)==null?void 0:D.url)==null?void 0:j.trim();if(!Z)return"";const _e=Z.toLowerCase();return _e.startsWith("blob:")||_e.startsWith("data:")?"":"anonymous"}),T=ie(0),A=ie(0),L=ie(!1),x=ie(""),k=ie(0),M=ie(!1),z=ie(!1);let P=null,H=null;const q=fe(()=>{var D,j;const Z=(j=(D=v.value)==null?void 0:D.metadata)==null?void 0:j.thumbnailDataUrl;return typeof Z=="string"?Z:""}),de=fe(()=>{var D,j;const Z=(j=(D=v.value)==null?void 0:D.metadata)==null?void 0:j.thumbnailTime;return typeof Z=="number"?Z:0}),se=fe(()=>!!q.value),W=fe(()=>{const D=x.value;if(!D)return"";const j=D.toLowerCase();return j.includes("network")||j.includes("failed to fetch")||j.includes("err_internet")?"Thumbnail upload failed due to a network issue. Please check your connection and try again.":j.includes("cors")||j.includes("cross-origin")||j.includes("securityerror")?"Cannot capture thumbnail: the video source does not allow cross-origin access.":j.includes("timed out")||j.includes("timeout")?"Thumbnail capture timed out. Please try a different frame.":j.includes("canvas")||j.includes("blob")?"Could not generate thumbnail image. Please try a different frame.":D}),V=fe(()=>{const D=A.value>0?T.value/A.value*100:0;return{background:`linear-gradient(to right, var(--voice-shadow) ${D}%, var(--medium-grey) ${D}%)`}});let B=!1;ut(()=>{var D;return(D=v.value)==null?void 0:D.id},()=>{_.value=!1,x.value="",L.value=!1,A.value=0,T.value=de.value,B=!1,z.value=!1,M.value=!1},{immediate:!0}),ut(E,(D,j)=>{j&&(j.removeEventListener("loadedmetadata",Y),j.removeEventListener("seeked",ce)),D&&(D.addEventListener("loadedmetadata",Y),D.addEventListener("seeked",ce),Number.isFinite(D.duration)&&D.duration>0&&Y())});function Y(){const D=E.value;if(!D)return;A.value=Number.isFinite(D.duration)?D.duration:0;const j=Math.min(de.value,A.value||0);T.value=j,_.value&&j>0&&Math.abs(D.currentTime-j)>.05&&(D.currentTime=j),i.enableThumbnailCapture&&i.thumbnailUploadHandler&&i.mediaType==="video"&&v.value&&v.value.id!==om&&!se.value&&!B&&(B=!0,Q(D))}async function F(D){const j=D.videoWidth,Z=D.videoHeight;if(!j||!Z)throw new Error("Video has no dimensions to capture.");const _e=Math.min(1,b7e/Math.max(j,Z)),Te=document.createElement("canvas");Te.width=Math.max(1,Math.round(j*_e)),Te.height=Math.max(1,Math.round(Z*_e));const Xe=Te.getContext("2d");if(!Xe)throw new Error("Canvas 2D context unavailable.");Xe.drawImage(D,0,0,Te.width,Te.height);let N=null;for(const G of r)if(N=await new Promise((J,we)=>{Te.toBlob(ke=>ke?J(ke):we(new Error("Failed to create thumbnail blob.")),"image/jpeg",G)}),N.size<=_7e)break;return N}async function Q(D,j=Math.min(1,Math.max((D.duration||0)-.001,0)),Z=!1){try{await xe(D,j),await new Promise(N=>{requestAnimationFrame(()=>requestAnimationFrame(()=>N()))});const _e=await F(D);H&&URL.revokeObjectURL(H);const Te=URL.createObjectURL(_e);if(H=Te,!v.value)return;v.value.metadata={...v.value.metadata??{},thumbnailBlob:_e,thumbnailDataUrl:Te,thumbnailTime:0},Me(),o("thumbnail-captured",{blob:_e,dataUrl:Te,time:0}),o("thumbnail-uploading",{progress:0,time:0});const Xe=await i.thumbnailUploadHandler(_e,N=>{o("thumbnail-uploading",{progress:Math.min(Math.max(N,0),100),time:0})},{time:0,file:v.value,fileName:`${v.value.filename.replace(/\.[^/.]+$/,"")}
715-thumbnail.jpg`,mimeType:_e.type||"image/jpeg"});if(!v.value)return;v.value.metadata={...v.value.metadata??{},thumbnailUpload:Xe},Me(),o("thumbnail-uploaded",{response:Xe,time:0}),await te()}catch(_e){if(!Z){await Q(D,0,!0);return}o("thumbnail-upload-failed",{error:_e,time:j})}}function re(){i.disabled||d()}async function be(){var D;await Lt();const j=S.value??((D=b.value)==null?void 0:D.querySelector(".vdl2-uploader-v2__dropzone"))??null;j&&(j.setAttribute("tabindex","-1"),j.focus(),j.scrollIntoView({block:"center",behavior:"smooth"}))}function Le(D){var j;((j=v.value)==null?void 0:j.id)===D&&($(),H&&(URL.revokeObjectURL(H),H=null)),u(D)}function Me(){o("update:modelValue",s.value),o("change",s.value)}function He(){var D;if(!i.enableThumbnailCapture||i.mediaType!=="video"||!((D=v.value)!=null&&D.url))return;x.value="",_.value=!0;const j=C.value;j&&(j.hasStarted=!0,j.pause()),Lt(()=>{const Z=E.value;if(!Z)return;const _e=de.value||Z.currentTime||0;T.value=Math.min(_e,A.value||_e),Math.abs(Z.currentTime-T.value)>.05&&(Z.currentTime=T.value)})}function $(){_.value=!1,x.value="",L.value=!1,z.value=!1,M.value=!1;const D=C.value;D&&(D.pause(),se.value&&Lt(()=>{k.value+=1}))}function U(D){const j=D.target;if(j){if(A.value<=0&&Number.isFinite(j.duration)&&j.duration>0){A.value=j.duration;const Z=Math.min(de.value,A.value);T.value=Z}!_.value||M.value||(T.value=j.currentTime)}}function ee(){z.value=!1,M.value=!1;const D=E.value;D&&(T.value=D.currentTime)}function ce(){if(!_.value||!z.value)return;const D=E.value;D&&(Math.abs(D.currentTime-T.value)>.35||ee())}function me(){z.value=!0;const D=T.value;requestAnimationFrame(()=>{if(!_.value||!z.value)return;const j=E.value;j&&Math.abs(j.currentTime-D)<.2&&ee()})}function Ce(D){const j=D.target,Z=Number(j.value);Number.isFinite(Z)&&(z.value=!1,M.value=!0,T.value=Z,P&&clearTimeout(P),P=setTimeout(()=>{P=null;const _e=E.value;_e&&(_e.currentTime=Z)},300))}async function xe(D,j){Math.abs(D.currentTime-j)<.05||await new Promise((Z,_e)=>{const Te=window.setTimeout(()=>{G(),_e(new Error("Timed out while seeking video"))},4e3),Xe=()=>{G(),Z()},N=()=>{G(),_e(new Error("Failed while seeking video frame"))},G=()=>{window.clearTimeout(Te),D.removeEventListener("seeked",Xe),D.removeEventListener("error",N)};D.addEventListener("seeked",Xe,{once:!0}),D.addEventListener("error",N,{once:!0}),D.currentTime=j})}async function Ae(){if(!(!v.value||!E.value)){x.value="",L.value=!0;try{const D=E.value,j=Math.max(0,Math.min(T.value,A.value||T.value));await xe(D,j);const Z=await F(D);H&&URL.revokeObjectURL(H);const _e=URL.createObjectURL(Z);if(H=_e,v.value.metadata={...v.value.metadata??{},thumbnailBlob:Z,thumbnailDataUrl:_e,thumbnailTime:j},Me(),o("thumbnail-captured",{blob:Z,dataUrl:_e,time:j}),i.thumbnailUploadHandler){o("thumbnail-uploading",{progress:0,time:j});try{const Te=await i.thumbnailUploadHandler(Z,Xe=>{o("thumbnail-uploading",{progress:Math.min(Math.max(Xe,0),100),time:j})},{time:j,file:v.value,fileName:`${v.value.filename.replace(/\.[^/.]+$/,"")}-thumbnail.jpg`,mimeType:Z.type||"image/jpeg"});v.value.metadata={...v.value.metadata??{},thumbnailUpload:Te},Me(),o("thumbnail-uploaded",{response:Te,time:j})}catch(Te){throw o("thumbnail-upload-failed",{error:Te,time:j}),Te}}await te(),$()}catch(D){D instanceof DOMException&&D.name==="SecurityError"?x.value="Cannot capture thumbnail: the video source does not allow cross-origin access (CORS).":x.value=(D==null?void 0:D.message)||"Could not capture thumbnail for this video."}finally{L.value=!1}}}async function te(){const D=E.value;D&&D.pause(),await Lt(),k.value+=1}Dl(()=>{const D=E.value;D&&(D.removeEventListener("loadedmetadata",Y),D.removeEventListener("seeked",ce)),P&&clearTimeout(P),H&&(URL.revokeObjectURL(H),H=null)});function le(D){return D<1024?`${D} B`:D<1024*1024?`${(D/1024).toFixed(1)} KB`:`${(D/(1024*1024)).toFixed(1)} MB`}function ye(D){const j=Math.max(0,Math.floor(D||0)),Z=Math.floor(j/60),_e=j%60;return`${Z}:${_e.toString().padStart(2,"0")}`}return t({focus:be,addFiles:l,clearAll:c,removeFile:u}),(D,j)=>(I(),Se(an,null,{default:pe(()=>[O("div",{ref_key:"uploaderRootRef",ref:b,class:Ie(["vdl2-uploader-v2",{"vdl2-uploader-v2--disabled":e.disabled,"vdl2-uploader-v2--beer":e.useBeerClasses}])},[e.label?(I(),R("label",{key:0,class:Ie(["vdl2-uploader-v2__label",{small:e.useBeerClasses}])},[_t(he(e.label),1),e.required?(I(),R("span",V8e,"*")):K("",!0)],2)):K("",!0),!e.multiple&&v.value?(I(),R("div",F8e,[ge(D.$slots,"preview",{file:v.value,remove:()=>Le(v.value.id)},()=>[e.mediaType==="video"&&v.value.url?(I(),R("div",B8e,[(I(),Se(lT,{key:k.value,ref_key:"videoPlayerRef",ref:C,src:v.value.url,thumbnail:q.value||void 0,crossorigin:w.value,"custom-class":"vdl2-uploader-v2__video-player",loading:!q.value||A.value<=0,onTimeupdate:U},null,8,["src","thumbnail","crossorigin","loading"])),O("button",{type:"button",class:Ie(["vdl2-uploader-v2__remove-btn vdl2-uploader-v2__remove-btn--overlay",{circle:e.useBeerClasses}]),"aria-label":"Remove file",onClick:j[0]||(j[0]=Z=>Le(v.value.id))},[ae(at,{name:"delete","icon-svg":Ee(Pd),"icon-size":"medium","custom-classes":"vdl2-uploader-v2__remove-icon--overlay"},null,8,["icon-svg"])],2)])):K("",!0),e.mediaType==="video"&&v.value.url&&e.enableThumbnailCapture?(I(),R("div",U8e,[O("div",j8e,[se.value&&de.value>0?(I(),R("span",W8e,[ae(at,{"icon-svg":Ee(EZ),"icon-size":"small","custom-classes":"vdl2-uploader-v2__thumbnail-caption-icon"},null,8,["icon-svg"]),_t(" Frame set at "+he(ye(de.value)),1)])):K("",!0),_.value?K("",!0):(I(),Se(ua,{key:1,variant:"ghost",size:"small",outlined:"",class:"vdl2-uploader-v2__toolbar-btn",disabled:!v.value||A.value<=0,onClick:He},{default:pe(()=>[...j[7]||(j[7]=[_t(" EDIT THUMBNAIL ",-1)])]),_:1},8,["disabled"]))]),_.value?(I(),R("div",G8e,[j[11]||(j[11]=O("h4",{class:"vdl2-uploader-v2__thumbnail-title title-large"}," Edit thumbnail ",-1)),O("div",z8e,[ae(at,{class:"vdl2-uploader-v2__thumbnail-info-icon",name:"info","icon-svg":Ee(OZ)},null,8,["icon-svg"]),j[8]||(j[8]=O("span",{class:"vdl2-uploader-v2__thumbnail-info-text label-regular-medium"}," Drag the slider to select a frame. ",-1))]),O("div",q8e,[O("input",{class:"vdl2-uploader-v2__thumbnail-slider",type:"range",min:"0",max:A.value||0,step:"0.1",value:T.value,style:vt(V.value),disabled:A.value<=0||L.value,onInput:Ce,onChange:me},null,44,K8e),O("div",X8e,he(ye(T.value))+" / "+he(ye(A.value)),1)]),O("div",Z8e,[ae(ua,{variant:"ghost",size:"small",class:"vdl2-uploader-v2__thumbnail-btn-close",disabled:L.value,onClick:$},{default:pe(()=>[...j[9]||(j[9]=[_t(" CLOSE ",-1)])]),_:1},8,["disabled"]),ae(ua,{size:"small",class:"vdl2-uploader-v2__thumbnail-btn-capture",disabled:L.value,loading:L.value,onClick:Ae},{default:pe(()=>[...j[10]||(j[10]=[_t(" CAPTURE FRAME ",-1)])]),_:1},8,["disabled","loading"])])])):K("",!0),x.value?(I(),R("p",Y8e," *"+he(W.value),1)):K("",!0)])):e.mediaType==="audio"?(I(),R("div",J8e,[ae(AS,{class:"vdl2-uploader-v2__preview-audio-card","audio-id":v.value.id,"audio-name":v.value.filename,"audio-url":v.value.url,variant:"shadowPlayer","shadow-player-background-color":""},null,8,["audio-id","audio-name","audio-url"]),O("button",{type:"button",class:"vdl2-uploader-v2__remove-btn vdl2-uploader-v2__remove-btn--trash","aria-label":"Remove file",onClick:j[1]||(j[1]=Z=>Le(v.value.id))},[ae(at,{name:"trash","icon-svg":Ee(Pd),"icon-size":"medium","custom-classes":"vdl2-uploader-v2__remove-icon--tras
715h"},null,8,["icon-svg"])])])):(I(),R("div",Q8e,[O("div",e7e,[O("span",t7e,he(v.value.filename),1),O("span",n7e,he(le(v.value.size)),1)]),O("button",{type:"button",class:"vdl2-uploader-v2__remove-btn vdl2-uploader-v2__remove-btn--trash","aria-label":"Remove file",onClick:j[2]||(j[2]=Z=>Le(v.value.id))},[ae(at,{name:"trash","icon-svg":Ee(Pd),"icon-size":"medium","custom-classes":"vdl2-uploader-v2__remove-icon--trash"},null,8,["icon-svg"])])]))],!0)])):(I(),R(Je,{key:2},[O("div",{ref_key:"dropzoneRef",ref:S,class:Ie(["vdl2-uploader-v2__dropzone",{"vdl2-uploader-v2__dropzone--dragging":Ee(a),"vdl2-uploader-v2__dropzone--disabled":e.disabled,"vdl2-uploader-v2__dropzone--error":g.value&&g.value.status==="error"||y.value}]),onClick:re,onDragenter:j[3]||(j[3]=(...Z)=>Ee(f)&&Ee(f)(...Z)),onDragover:j[4]||(j[4]=(...Z)=>Ee(p)&&Ee(p)(...Z)),onDragleave:j[5]||(j[5]=(...Z)=>Ee(h)&&Ee(h)(...Z)),onDrop:j[6]||(j[6]=(...Z)=>Ee(m)&&Ee(m)(...Z))},[ge(D.$slots,"dropzone",{},()=>[j[12]||(j[12]=O("svg",{xmlns:"http://www.w3.org/2000/svg",class:"vdl2-uploader-v2__icon",viewBox:"0 0 48 48"},[O("path",{d:"M42 30V38C42 39.0609 41.5786 40.0783 40.8284 40.8284C40.0783 41.5786 39.0609 42 38 42H10C8.93913 42 7.92172 41.5786 7.17157 40.8284C6.42143 40.0783 6 39.0609 6 38V30"}),O("path",{d:"M34 16L24 6L14 16"}),O("path",{d:"M24 6V30"})],-1)),O("span",r7e,he(e.primaryMessage||"Click or drop file here to upload"),1),!e.multiple&&g.value&&g.value.status==="error"?(I(),R("span",i7e,he(g.value.error),1)):K("",!0),y.value?(I(),R("span",o7e,he(i.errorMessage),1)):K("",!0)],!0)],34),e.restriction?(I(),R("p",{key:0,class:Ie(["vdl2-uploader-v2__restriction",{small:e.useBeerClasses}])},he(e.restriction),3)):K("",!0),e.multiple&&!e.hideFileList?ge(D.$slots,"files",{key:1,files:Ee(s),remove:Le},()=>[Ee(s).length?(I(),R("ul",s7e,[(I(!0),R(Je,null,Dt(Ee(s),Z=>(I(),R("li",{key:Z.id,class:Ie(["vdl2-uploader-v2__file-row",{"vdl2-uploader-v2__file-row--error":Z.status==="error"}])},[O("div",a7e,[O("span",l7e,he(Z.filename),1),Z.status==="uploading"?(I(),R("span",u7e,he(Math.round(Z.progress))+"%",1)
715):Z.status!=="error"?(I(),R("span",c7e,he(le(Z.size)),1)):K("",!0)]),Z.status==="uploading"?(I(),R("div",d7e,[O("div",{class:"vdl2-uploader-v2__progress-bar",style:vt({width:`${Z.progress}%`})},null,4)])):K("",!0),Z.status==="error"?(I(),R("span",f7e,he(Z.error),1)):K("",!0),O("button",{type:"button",class:"vdl2-uploader-v2__remove-btn vdl2-uploader-v2__remove-btn--trash","aria-label":`Remove ${Z.filename}`,onClick:_e=>Le(Z.id)},[ae(at,{name:"trash","icon-svg":Ee(Pd),"icon-size":"medium","custom-classes":"vdl2-uploader-v2__remove-icon--trash"},null,8,["icon-svg"])],8,p7e)],2))),128))])):K("",!0)],!0):g.value&&g.value.status==="uploading"?(I(),R("div",h7e,[O("div",m7e,[O("span",v7e,he(g.value.filename),1),O("span",g7e,he(Math.round(g.value.progress))+"%",1)]),O("div",y7e,[O("div",{class:"vdl2-uploader-v2__progress-bar",style:vt({width:`${g.value.progress}%`})},null,4)])])):K("",!0)],64))],2)]),_:3}))}}),mUe=sn(S7e,[["__scopeId","data-v-b4c53918"]]),E7e={class:"vdl2-chip__content label-regular-medium"},C7e=Qe({__name:"Vdl2Chip",props:{variant:{default:"filled"},size:{default:"small"},color:{default:"default"},deletable:{type:Boolean,default:!1},editable:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},selected:{type:Boolean,default:!1}},emits:["click","delete","edit"],setup(e,{emit:t}){const n=e,r=t,i=fe(()=>({"vdl2-chip--outlined":n.variant==="outlined","vdl2-chip--filled":n.variant==="filled","vdl2-chip--small":n.size==="small","vdl2-chip--medium":n.size==="medium","vdl2-chip--large":n.size==="large","vdl2-chip--primary":n.color==="primary","vdl2-chip--accent":n.color==="accent","vdl2-chip--warn":n.color==="warn","vdl2-chip--deletable":n.deletable,"vdl2-chip--editable":n.editable,"vdl2-chip--disabled":n.disabled,"vdl2-chip--selected":n.selected}));function o(){n.disabled||(n.editable?r("edit"):r("click"))}return(s,a)=>(I(),Se(an,null,{default:pe(()=>[O("div",{class:Ie(["vdl2-chip",i.value]),tabindex:"0",onClick:o,onKeyup:Ar(o,["enter"])},[ge(s.$slots,"icon-left",{},void 0,!0),O("span",E7e,[ge(s.$slots,"default",{},void 0,!0)]),e.deletable&&!e.disabled?(I(),R("button",{key:0,type:"button",class:"vdl2-chip__delete","aria-label":"Remove",tabindex:"-1",onClick:a[0]||(a[0]=tt(l=>s.$emit("delete"),["stop"]))},[ae(at,{"icon-svg":Ee(kP),"icon-size":"small","custom-classes":"vdl2-chip__delete-icon"},null,8,["icon-svg"])])):K("",!0)],34)]),_:3}))}}),vUe=sn(C7e,[["__scopeId","data-v-3b21e4a2"]]),w7e={key:0,class:"vdl2-empty-state__icon-badge"},T7e={class:"vdl2-empty-state__title"},A7e={key:0,class:"vdl2-empty-state__description"},I7e={key:1,class:"vdl2-empty-state__content"},x7e=Qe({__name:"Vdl2EmptyState",props:{icon:{default:void 0},title:{},description:{default:void 0},iconVariant:{default:"outline"},iconColor:{default:void 0},iconBackground:{default:void 0},iconSize:{default:void 0},iconGlyphSize:{default:"extra"}},setup(e){const t=e,n=fe(()=>({...t.iconColor?{"--vdl2-empty-state-icon-color":t.iconColor}:{},...t.iconBackground?{"--vdl2-empty-state-icon-bg":t.iconBackground}:{},...t.iconSize?{"--vdl2-empty-state-icon-size":t.iconSize}:{}}));return(r,i)=>(I(),Se(an,null,{default:pe(()=>[O("div",{class:"vdl2-empty-state",style:vt(n.value)},[O("div",{class:Ie(["vdl2-empty-state__icon",{"vdl2-empty-state__icon--filled":e.iconVariant==="filled"}])},[ge(r.$slots,"icon",{},()=>[e.iconVariant==="filled"?(I(),R("div",w7e,[e.icon?(I(),Se(at,{key:0,"icon-svg":e.icon,"icon-size":e.iconGlyphSize},null,8,["icon-svg","icon-size"])):K("",!0)])):e.icon?(I(),Se(at,{key:1,"icon-svg":e.icon,"icon-size":e.iconGlyphSize},null,8,["icon-svg","icon-size"])):K("",!0)],!0)],2),O("h2",T7e,he(e.title),1),e.description?(I(),R("p",A7e,he(e.description),1)):K("",!0),r.$slots.default?(I(),R("div",I7e,[ge(r.$slots,"default",{},void 0,!0)])):K("",!0)],4)]),_:3}))}}),gUe=sn(x7e,[["__scopeId","data-v-882fc1f9"]]),AV=()=>Math.random().toString(36).slice(4);let ap=null,IV=null;function IM(e,t){return new Promise(n=>{ap={destroy:()=>{ap=null,n()}},e!==1/0&&(IV=window.setTimeout(()=>{uT()},e))})}const uT=()=>new Promise(e=>{ap?(window.clearTimeout(IV),ap.destroy(),window.setTimeout(e,400)):e()}),L7e=(e,t)=>ap?uT().then(()=>IM(e)):IM(e);const k7e={name:"md-snackbar",props:{id:[String,Number],mdPosition:{type:String,default:"bottom center"},mdDuration:{type:[String,Number],default:4e3}},mixins:[Hn],data(){return{snackbarId:this.id||"snackbar-"+AV(),removedSnackBarElementEventName:"removedSnackBarElement",active:!1,rootElement:{},snackbarElement:{},directionClass:null,removedSnackBarElementEvent:null}},computed:{classes(){let e={"md-active":this.active};return this.directionClass=this.mdPosition.replace(/ /g,"-"),e["md-position-"+this.directionClass]=!0,e}},watch:{active(e){const t="md-has-toast-"+this.directionClass,n="md-has-toast";e?(document.body.classList.add(t),document.body.classList.add(n)):(document.body.classList.remove(t),document.body.classList.remove(n))}},methods:{removeElement(){if(document.body.contains(this.snackbarElement)&&!this.active){const e=this.snackbarElement.querySelector(".md-ripple.md-active");e&&e.classList.remove("md-active"),document.body.removeChild(this.snackbarElement)}document.dispatchEvent(this.removedSnackBarElementEvent)}
715,open(){document.body.contains(this.snackbarElement)||(document.removeEventListener(this.removedSnackBarElementEventName,this.showElementAndStartTimer),document.body.appendChild(this.snackbarElement),this.$refs.container!==null&&this.$refs.container!==void 0&&window.getComputedStyle(this.$refs.container).backgroundColor,this.active=!0,this.$emit("open"),L7e(this.mdDuration).then(()=>{this.close()}),this.timeoutStartedAt=Date.now())},close(){if(uT(),this.$refs.container){this.active=!1;const e=()=>{document.removeEventListener(yf,e),this.removeElement()};this.$emit("close"),document.removeEventListener(yf,e),document.addEventListener(yf,e),this.pendingDuration=this.mdDuration}}},mounted(){this.$nextTick(()=>{this.snackbarElement=this.$el,this.snackbarElement.parentNode&&this.snackbarElement.parentNode.removeChild(this.snackbarElement),this.timeoutStartedAt=0,this.pendingDuration=this.mdDuration}),this.removedSnackBarElementEvent=new Event(this.removedSnackBarElementEventName)},beforeUnmount(){this.active=!1,this.removeElement()}},M7e=["id"],R7e={class:"md-snackbar-container",ref:"container"},P7e={class:"md-snackbar-content"};function O7e(e,t,n,r,i,o){return I(),R("div",{class:Ie(["md-snackbar",[e.themeClass,o.classes]]),id:i.snackbarId,onMouseenter:t[0]||(t[0]=(...s)=>e.pauseTimeout&&e.pauseTimeout(...s)),onMouseleave:t[1]||(t[1]=(...s)=>e.resumeTimeout&&e.resumeTimeout(...s))},[O("div",R7e,[O("div",P7e,[ge(e.$slots,"default")])],512)],42,M7e)}const yUe=Ye(k7e,[["render",O7e]]),$7e={props:["errorCode","errorMessage"],data:function(){return{}},mixins:[Hn],methods:{handleErrorLogoClick:function(){this.$emit("logo-click")}}};const N7e={class:"tdl-error"},H7e={class:"tdl-error-container"},D7e=["src","alt"],V7e={class:"tdl-error-display"},F7e={class:"tdl-error-code"},B7e={class:"tdl-error-message"};function U7e(e,t,n,r,i,o){return I(),R("div",N7e,[O("div",H7e,[O("a",{href:"",onClick:t[0]||(t[0]=tt((...s)=>e.handleErrorLogoClick&&e.handleErrorLogoClick(...s),["prevent"]))},[O("img",{src:e.getThemeAsset("logoBranded"),class:"tdl-error-brand-logo",alt:`Error ${e.errorCode} ${e.errorMessage}`},null,8,D7e)]),O("div",V7e,[O("div",F7e,he(e.errorCode)+" "+he(isNaN(Number(e.errorCode))?"":"Error"),1),O("div",B7e,he(e.errorMessage),1)])])])}const bUe=Ye($7e,[["render",U7e]]);const j7e={name:"md-sidenav",data(){return{mdVisible:!1}},mixins:[Hn],props:{mdSwipeable:Boolean,mdSwipeThreshold:{type:Number,default:15},mdSwipeDistance:{type:Number,default:100}},computed:{classes(){return this.mdVisible&&"md-active"}},methods:{show(){this.open()},open(){this.mdVisible=!0,this.$el.focus(),this.$emit("open")},close(){this.mdVisible=!1,this.$el.blur(),this.$emit("close")},toggle(){this.mdVisible?this.close():this.open()},isHorizontallyInside(e){return e>0&&e<this.mountedRect.left+this.mountedRect.width},isVerticallyInside(e){return e>0&&e<this.mountedRect.top+this.mountedRect.height},isFromStartWhenClosed(e){return this.mdVisible?!0:e<this.mdSwipeThreshold},handleTouchStart(e){const t=e.touches[0].clientX-this.mountedRect.left,n=e.touches[0].clientY-this.mountedRect.top;!this.isHorizontallyInside(t)||!this.isVerticallyInside(n)||!this.isFromStartWhenClosed(t)||(this.initialTouchPosition=t,this.canMove=!0)},handleTouchEnd(){this.canMove=!1,this.initialTouchPosition=null},handleTouchMove(e){if(!this.canMove)return;const t=e.touches[0].clientX,n=this.mdVisible?this.initialTouchPosition-t:t-this.initialTouchPosition,r=this.mdVisible?"close":"open";n>this.mdSwipeDistance&&this[r]()}},mounted(){this.mdSwipeable&&(this.mountedRect=this.$refs.backdrop.$el.getBoundingClientRect(),this.initialTouchPosition=null,this.canMove=!1,document.addEventListener("touchstart",this.handleTouchStart),document.addEventListener("touchend",this.handleTouchEnd),document.addEventListener("touchmove",this.handleTouchMove))},beforeUnmount(){this.mdSwipeable&&(document.removeEventListener("touchstart",this.handleTouchStart),document.removeEventListener("touchend",this.handleTouchEnd),document.removeEventListener("touchmove",this.handleTouchMove))}},W7e={class:"md-sidenav-content"};function G7e(e,t,n,r,i,o){const s=Pw;return I(),R("div",{class:Ie(["md-sidenav",[e.themeClass,o.classes]]),onKeyup:t[0]||(t[0]=Ar((...a)=>o.close&&o.close(...a),["esc"])),tabindex:"0"},[O("div",W7e,[ge(e.$slots,"default")]),ae(s,{class:"md-sidenav-backdrop",onClose:o.close,ref:"backdrop"},null,8,["onClose"])],34)}const z7e=Ye(j7e,[["render",G7e]]),q7e={props:{tdlUser:{type:Object,required:!0},tdlDrawerOptions:{type:Array,required:!1,default:function(){return[]}},tdlLoginAction:{type:Function,required:!1,default:function(){return()=>{}}},tdlPrivacy:{type:Object,required:!0},tdlTerms:{type:Object,required:!0},tdlAbout:{type:Object,required:!0},tdlAccount:{type:Object,required:!1},tdlStyle:{type:String,required:!1,default:"light"},tdlLogo:{type:Object,required:!1},tdlIgnoreDefaults:{type:Boolean,default:!1},tdlShowCloseButton:{type:Boolean,default:!1}},data:function(){return{showSubOption:"",mdiClose:El,mdiLogin:$Z,mdiAccount:gZ,mdiLogoutVariant:NZ}},mixins:[Hn],methods:{toggle:function(){this.$refs.drawer.toggle(
715)},handleClickAccount:function(){window.open(this.tdlAccount.location,this.tdlAccount.target||"self")},handleClickLogin:function(){this.$emit("login-requested")},handleClickLogout:function(){this.$emit("logout-requested")},handleClickItem:function(e,t){typeof e.click=="function"&&e.click(e),this.$emit("item-selected",t),this.$refs.drawer.close()},handleOpen:function(){this.$emit("open")},handleClose:function(){this.$emit("close"),this.$refs.drawer.close()}}};const K7e=["href"],X7e=["alt","src"],Z7e=["src"],Y7e=["src"],J7e={class:"tdl-avatar"},Q7e=["alt","src"],e$e={key:1,class:"tdl-placeholder"},t$e={key:2,class:"tdl-user-name"},n$e={key:3},r$e={class:"tdl-drawer-options"},i$e={key:"signin"},o$e=O("span",{class:"md-body-1"},"Sign in",-1),s$e={class:"md-body-1"},a$e={class:"md-body-1"},l$e={key:"signedin"},u$e=O("span",{class:"md-body-1"},"Your account",-1),c$e=O("span",{class:"md-body-1"},"Sign out",-1),d$e=O("div",{class:"tdl-spacer"},null,-1),f$e={class:"tdl-footer-links"},p$e=["href","target"],h$e=O("small",null,"About us",-1),m$e=[h$e],v$e=["href","target"],g$e=O("small",null,"Terms of use",-1),y$e=[g$e],b$e=["href","target"],_$e=O("small",null,"Privacy policy",-1),S$e=[_$e],E$e=O("div",{class:"tdl-footer-copy"},[O("small",null,"© Voice123, LLC.")],-1);function C$e(e,t,n,r,i,o){const s=Zr,a=Mr,l=Nw,u=$w,c=Vw,d=cLe,f=Jp,p=Xw,h=z7e;return I(),R("div",null,[ae(h,{class:Ie(["md-left tdl-drawer",e.tdlStyle==="dark"?"drawer-dark":"drawer-light"]),onOpen:e.handleOpen,onClose:t[0]||(t[0]=m=>e.$emit("close")),ref:"drawer"},{default:pe(()=>[O("header",{style:vt({backgroundImage:`url('${e.getThemeAsset(e.tdlStyle==="dark"?"backgroundDrawerBrandedDark":"backgroundDrawerBranded")}')`})},[ae(u,{"md-elevation":"2"},{default:pe(()=>[ae(l,{"md-theme":"white"},{default:pe(()=>[e.tdlShowCloseButton?(I(),Se(a,{key:0,class:"md-icon-button md-dense",onClick:tt(e.handleClose,["prevent"])},{default:pe(()=>[ae(s,{mdSvg:e.mdiClose},null,8,["mdSvg"])]),_:1},8,["onClick"])):K("",!0),e.tdlLogo&&e.tdlLogo.location?(I(),R("a",{key:1,class:"md-primary",href:e.tdlLogo.location},[O("img",{class:"tdl-brand-logo",width:"95",height:"28",alt:e.tdlLogo.alt,src:e.getThemeAsset(e.tdlStyle==="dark"?"logoBrandedDark":"logoBranded")},null,8,X7e)],8,K7e)):e.tdlLogo&&e.tdlLogo.image?(I(),R("img",{key:2,class:"tdl-logo",width:"36",height:"36",alt:"logo",src:e.tdlLogo.image},null,8,Z7e)):(I(),R("img",{key:3,class:"tdl-brand-logo",width:"95",height:"28",alt:"logo",src:e.getThemeAsset(e.tdlStyle==="dark"?"logoBrandedDark":"logoBranded")},null,8,Y7e))]),_:1})]),_:1}),O("div",J7e,[e.tdlUser.picture?(I(),R("img",{key:0,alt:e.tdlUser.name,src:e.tdlUser.picture,class:"tdl-placeholder"},null,8,Q7e)):(I(),R("div",e$e)),e.tdlUser.name?(I(),R("div",t$e,[ge(e.$slots,"username",{},()=>[_t(he(e.tdlUser.name),1)])])):K("",!0),e.tdlUser.email?(I(),R("div",n$e,he(e.tdlUser.email),1)):K("",!0)]),ge(e.$slots,"balance")],4),O("div",r$e,[ae(f,null,{default:pe(()=>[!e.tdlIgnoreDefaults&&!e.tdlUser.email&&!e.tdlUser.name?(I(),R("div",i$e,[ae(c,{onClick:tt(e.handleClickLogin,["prevent"]),href:"#"},{default:pe(()=>[ae(s,{mdSvg:e.mdiLogin},null,8,["mdSvg"]),o$e]),_:1},8,["onClick"]),ae(d)])):K("",!0),ge(e.$slots,"default",{},()=>[(I(!0),R(Je,null,Dt(e.tdlDrawerOptions,(m,v)=>(I(),Se(c,{onClick:g=>!(m.subOptions&&m.subOptions.length)&&e.handleClickItem(m,v),key:v,class:Ie(m.class),id:m.id},{default:pe(()=>[m.icon?(I(),Se(s,{key:0,mdSvg:m.icon},null,8,["mdSvg"])):K("",!0),O("span",s$e,he(m.text),1),m.subOptions&&m.subOptions.length?(I(),Se(p,{key:1},{default:pe(()=>[ae(f,{class:"sub-options"},{default:pe(()=>[(I(!0),R(Je,null,Dt(m.subOptions,(g,y)=>(I(),Se(c,{onClick:_=>e.handleClickItem(g,y),key:y,class:Ie(g.class)},{default:pe(()=>[O("span",a$e,he(g.text),1)]),_:2},1032,["onClick","class"]))),128))]),_:2},1024)]),_:2},1024)):K("",!0),m.divider?(I(),Se(d,{key:2})):K("",!0)]),_:2},1032,["onClick","class","id"]))),128))]),!e.tdlIgnoreDefaults&&(e.tdlUser.email||e.tdlUser.name)?(I(),R("div",l$e,[ae(d),ae(c,{href:e.tdlAccount.location,target:e.tdlAccount.target,onClick:tt(e.handleClickAccount,["prevent"])},{default:pe(()=>[ae(s,{mdSvg:e.mdiAccount},null,8,["mdSvg"]),u$e]),_:1},8,["href","target","onClick"]),ae(c,{onClick:tt(e.handleClickLogout,["prevent"]),href:"#"},{default:pe(()=>[ae(s,{mdSvg:e.mdiLogoutVariant},null,8,["mdSvg"]),c$e]),_:1},8,["onClick"])])):K("",!0),ge(e.$slots,"cross-drawer")]),_:3})]),d$e,O("footer",null,[O("div",f$e,[e.tdlAbout?(I(),R("a",{key:0,class:"md-primary",href:e.tdlAbout.location,target:e.tdlAbout.target},m$e,8,p$e)):K("",!0),_t("   "),e.tdlTerms?(I(),R("a",{key:1,class:"md-primary",href:e.tdlTerms.location,target:e.tdlTerms.target},y$e,8,v$e)):K("",!0),_t("   "),e.tdlPrivacy?(I(),R("a",{key:2,class:"md-primary",href:e.tdlPrivacy.location,target:e.tdlPrivacy.target},S$e,8,b$e)):K("",!0)]),E$e])]),_:3},8,["onOpen","class"])])}const _Ue=Ye(q7e,[["render",C$e]]),w$e=1/3,bo=1/6,_b=e=>Math.floor(e)|0,Sb=new Float64Array([1,1,0,-1,1,0,1,-1,0,-1,-1,0,1,0,1,-1,0,1,1,0,-1,-1,0,-1,0,1,1,0,-1,1,0,1,-1,0,-1,-1]);function SUe(e=Math.random){const t=T$e(e),n=new Float64Array(t).map(o=>Sb[o%12*3]),r=new Float64Array(t).map(o=>Sb[o%12*3+1]),i=new Float64Array(t).map(o=>Sb[o%12*3+2]);return function(s,a,l){let u,c,d,f;const p=(s+a+l)*w$e,h=_b(s+p),m=_b(a+p),v=_b(l+p),g=(h+m+v)*bo,y=h-g,_=m-g,b=v-g,S=s-y,C=a-_,E=l-b;let w,T,A,L,x,k;S>=C?C>=E?(w=1,T=0,A=0,L=1,x=1,k=0):S>=E?(w=1,T=0,A=0,L=1,x=0,k=1):(w=0,T=0,A=1,L=1,x=0,k=1):C<E?(w=0,T=0,A=1,L=0,x=1,k=1):S<E?(w=0,T=1,A=0,L=0,x=1,k=1):(w=0,T=1,A=0,L=1,x=1,k=0);const M=S-w+bo,z=C-T+bo,P=E-A+bo,H=S-L+2*bo,q=C-x+2*bo,de=E-k+2*bo,se=S-1+3*bo,W=C-1+3*bo,V=E-1+3*bo,B=h&255,Y=m&255,F=v&255;let Q=.6-S*S-C*C-E*E;if(Q<0)u=0;else{const Me=B+t[Y+t[F]];Q*=Q,u=Q*Q*(n[Me]*S+r[Me]*C+i[Me]*E)}let re=.6-M*M-z*z-P*P;if(re<0)c=0;else{const Me=B+w+t[Y+T+t[F+A]];re*=re,c=re*re*(n[Me]*M+r[Me]*z+i[Me]*P)}let be=.6-H*H-q*q-de*de;if(be<0)d=0;else{const Me=B+L+t[Y+x+t[F+k]];be*=be,d=be*be*(n[Me]*H+r[Me]*q+i[Me]*de)}let Le=.6-se*se-W*W-V*V;if(Le<0)f=0;else{const Me=B+1+t[Y+1+t[F+1]];Le*=Le,f=Le*Le*(n[Me]*se+r[Me]*W+i[Me]*V)}return 32*(u+c+d+f)}}function T$e(e){const n=new Uint8Array(512);for(let r=0;r<512/2;r++)n[r]=r;for(let r=0;r<512/2-1;r++){const i=r+~~(e()*(256-r)),o=n[r];n[r]=n[i],n[i]=o}for(let r=256;r<512;r++)n[r]=n[r-256];return n}const A$e={name:"md-card",props:{mdWithHover:Boolean},mixins:[Hn],computed:{classes(){return{"md-with-hover":this.mdWithHover}}}};function I$e(e,t,n,r,i,o){return I(),R("div",{class:Ie(["md-card",[e.themeClass,o.classes]])},[ge(e.$slots,"default")],2)}const EUe=Ye(A$e,[["render",I$e]]),x$e={name:"md-card-actions"},L$e={class:"md-card-actions"};function k$e(e,t,n,r,i,o){return I(),R("div",L$e,[ge(e.$slots,"default")])}const CUe=Ye(x$e,[["render",k$e]]),M$e={name:"md-card-content"},R$e={class:"md-card-content"};function P$e(e,t,n,r,i,o){return I(),R("div",R$e,[ge(e.$slots,"default")])}
715const wUe=Ye(M$e,[["render",P$e]]),O$e={name:"md-card-header"},$$e={class:"md-card-header"};function N$e(e,t,n,r,i,o){return I(),R("div",$$e,[ge(e.$slots,"default")])}const TUe=Ye(O$e,[["render",N$e]]),AUe={props:{mdTag:{type:String,default:void 0},mdName:{type:String}},render(){var e=this.$slots.default&&this.$slots.default()||[];return e.length===1&&e[0].type===Je&&(e=e[0].children),this.mdTag||e.length>1?io(this.mdTag||"div",{class:["md-theme","md-theme-"+this.mdName]},e):bs(e[0])?Mi(e[0],{class:["md-theme","md-theme-"+this.mdName]}):e}},H$e={name:"md-dialog-alert",props:{mdTitle:String,mdContent:String,mdContentHtml:String,mdOkText:{type:String,default:"Ok"}},data:()=>({debounce:!1}),methods:{fireCloseEvent(){this.debounce||this.$emit("close")},open(){this.$emit("open"),this.debounce=!1,this.$refs.dialog.open()},close(){this.fireCloseEvent(),this.debounce=!0,this.$refs.dialog.close()}},mounted(){if(!this.mdContent&&!this.mdContentHtml)throw new Error("Missing md-content or md-content-html attributes")}};function D$e(e,t,n,r,i,o){const s=g0,a=v0,l=Mr,u=m0,c=h0;return I(),Se(c,{class:"md-dialog-alert",ref:"dialog",onClose:t[1]||(t[1]=d=>o.fireCloseEvent())},{default:pe(()=>[n.mdTitle?(I(),Se(s,{key:0},{default:pe(()=>[_t(he(n.mdTitle),1)]),_:1})):K("",!0),n.mdContentHtml?(I(),Se(a,{key:1,innerHTML:n.mdContentHtml},null,8,["innerHTML"])):(I(),Se(a,{key:2},{default:pe(()=>[_t(he(n.mdContent),1)]),_:1})),ae(u,null,{default:pe(()=>[ae(l,{class:"md-primary",onClick:t[0]||(t[0]=d=>o.close())},{default:pe(()=>[_t(he(n.mdOkText),1)]),_:1})]),_:1})]),_:1},512)}const IUe=Ye(H$e,[["render",D$e]]),V$e={name:"md-dialog-confirm",props:{mdTitle:String,mdContent:String,mdContentHtml:String,mdOkText:{type:String,default:"Ok"},mdCancelText:{type:String,default:"Cancel"},mdOkRaised:{type:Boolean,default:!1}},data:()=>({debounce:!1}),methods:{fireCloseEvent(e){this.debounce||this.$emit("close",e)},open(){this.$emit("open"),this.debounce=!1,this.$refs.dialog.open()},close(e){this.fireCloseEvent(e),this.debounce=!0,this.$refs.dialog.close()}},mounted(){if(!this.mdContent&&!this.mdContentHtml)throw new Error("Missing md-content or md-content-html attributes")}};function F$e(e,t,n,r,i,o){const s=g0,a=v0,l=Mr,u=m0,c=h0;return I(),Se(c,{class:"md-dialog-confirm",ref:"dialog",onClose:t[2]||(t[2]=d=>o.fireCloseEvent("cancel"))},{default:pe(()=>[n.mdTitle?(I(),Se(s,{key:0},{default:pe(()=>[_t(he(n.mdTitle),1)]),_:1})):K("",!0),n.mdContentHtml?(I(),Se(a,{key:1,innerHTML:n.mdContentHtml},null,8,["innerHTML"])):(I(),Se(a,{key:2,innerHTML:n.mdContent},null,8,["innerHTML"])),ae(u,null,{default:pe(()=>[ae(l,{class:"md-primary",onClick:t[0]||(t[0]=d=>o.close("cancel"))},{default:pe(()=>[_t(he(n.mdCancelText),1)]),_:1}),ae(l,{class:Ie(["md-primary",{"md-raised":n.mdOkRaised}]),onClick:t[1]||(t[1]=d=>o.close("ok"))},{default:pe(()=>[_t(he(n.mdOkText),1)]),_:1},8,["class"])]),_:1})]),_:1},512)}const xUe=Ye(V$e,[["render",F$e]]);var xV={exports:{}};/**! 716 * Sortable 1.14.0 717 * @author RubaXa <[email protected]> 718 * @author owenm <[email protected]> 719 * @license MIT 720 */function xM(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,r)}return n}function Bo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xM(Object(n),!0).forEach(function(r){B$e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xM(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rv(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rv=function(t){return typeof t}:rv=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rv(e)}function B$e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Oi(){return Oi=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Oi.apply(this,arguments)}function U$e(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,o;for(o=0;o<r.length;o++)i=r[o],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function j$e(e,t){if(e==null)return{};var n=U$e(e,t),r,i;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(i=0;i<o.length;i++)r=o[i],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function W$e(e){return G$e(e)||z$e(e)||q$e(e)||K$e()}function G$e(e){if(Array.isArray(e))return xS(e)}function z$e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function q$e(e,t){if(e){if(typeof e=="string")return xS(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return xS(e,t)}}function xS(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function K$e(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 721In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var X$e="1.14.0";function vs(e){if(typeof window<"u"&&window.navigator)return!!navigator.userAgent.match(e)}var Ps=vs(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),rh=vs(/Edge/i),LM=vs(/firefox/i),Ef=vs(/safari/i)&&
vendor: 35,353 bytes, line 721
721!vs(/chrome/i)&&!vs(/android/i),LV=vs(/iP(ad|od|hone)/i),Z$e=vs(/chrome/i)&&vs(/android/i),kV={capture:!1,passive:!1};function Tt(e,t,n){e.addEventListener(t,n,!Ps&&kV)}function Et(e,t,n){e.removeEventListener(t,n,!Ps&&kV)}function kg(e,t){if(t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function Y$e(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Gi(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&kg(e,t):kg(e,t))||r&&e===n)return e;if(e===n)break}while(e=Y$e(e))}return null}var kM=/\s+/g;function _n(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(kM," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(kM," ")}}function Ue(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function hl(e,t){var n="";if(typeof e=="string")n=e;else do{var r=Ue(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function MV(e,t,n){if(e){var r=e.getElementsByTagName(t),i=0,o=r.length;if(n)for(;i<o;i++)n(r[i],i);return r}return[]}function Lo(){var e=document.scrollingElement;return e||document.documentElement}function gn(e,t,n,r,i){if(!(!e.getBoundingClientRect&&e!==window)){var o,s,a,l,u,c,d;if(e!==window&&e.parentNode&&e!==Lo()?(o=e.getBoundingClientRect(),s=o.top,a=o.left,l=o.bottom,u=o.right,c=o.height,d=o.width):(s=0,a=0,l=window.innerHeight,u=window.innerWidth,c=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!Ps))do if(i&&i.getBoundingClientRect&&(Ue(i,"transform")!=="none"||n&&Ue(i,"position")!=="static")){var f=i.getBoundingClientRect();s-=f.top+parseInt(Ue(i,"border-top-width")),a-=f.left+parseInt(Ue(i,"border-left-width")),l=s+o.height,u=a+o.width;break}while(i=i.parentNode);if(r&&e!==window){var p=hl(i||e),h=p&&p.a,m=p&&p.d;p&&(s/=m,a/=h,d/=h,c/=m,l=s+c,u=a+d)}return{top:s,left:a,bottom:l,right:u,width:d,height:c}}}function MM(e,t,n){for(var r=na(e,!0),i=gn(e)[t];r;){var o=gn(r)[n],s=void 0;if(n==="top"||n==="left"?s=i>=o:s=i<=o,!s)return r;if(r===Lo())break;r=na(r,!1)}return!1}function Hc(e,t,n,r){for(var i=0,o=0,s=e.children;o<s.length;){if(s[o].style.display!=="none"&&s[o]!==rt.ghost&&(r||s[o]!==rt.dragged)&&Gi(s[o],n.draggable,e,!1)){if(i===t)return s[o];i++}o++}return null}function cT(e,t){for(var n=e.lastElementChild;n&&(n===rt.ghost||Ue(n,"display")==="none"||t&&!kg(n,t));)n=n.previousElementSibling;return n||null}function Ln(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==rt.clone&&(!t||kg(e,t))&&n++;return n}function RM(e){var t=0,n=0,r=Lo();if(e)do{var i=hl(e),o=i.a,s=i.d;t+=e.scrollLeft*o,n+=e.scrollTop*s}while(e!==r&&(e=e.parentNode));return[t,n]}function J$e(e,t){for(var n in e)if(e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function na(e,t){if(!e||!e.getBoundingClientRect)return Lo();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=Ue(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return Lo();if(r||t)return n;r=!0}}while(n=n.parentNode);return Lo()}function Q$e(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Eb(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var Cf;function RV(e,t){return function(){if(!Cf){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),Cf=setTimeout(function(){Cf=void 0},t)}}}function e9e(){clearTimeout(Cf),Cf=void 0}function PV(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function dT(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function PM(e,t){Ue(e,"position","absolute"),Ue(e,"top",t.top),Ue(e,"left",t.left),Ue(e,"width",t.width),Ue(e,"height",t.height)}function Cb(e){Ue(e,"position",""),Ue(e,"top",""),Ue(e,"left",""),Ue(e,"width",""),Ue(e,"height","")}var hr="Sortable"+new Date().getTime();function t9e(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(i){if(!(Ue(i,"display")==="none"||i===rt.ghost)){e.push({target:i,rect:gn(i)});var o=Bo({},e[e.length-1].rect);if(i.thisAnimationDuration){var s=hl(i,!0);s&&(o.top-=s.f,o.left-=s.e)}i.fromRect=o}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(J$e(e,{target:r}),1)},animateAll:function(r){var i=this;if(!this.options.animation){clearTimeout(t),typeof r=="function"&&r();return}var o=!1,s=0;e.forEach(function(a){var l=0,u=a.target,c=u.fromRect,d=gn(u),f=u.prevFromRect,p=u.prevToRect,h=a.rect,m=hl(u,!0);m&&(d.top-=m.f,d.left-=m.e),u.toRect=d,u.thisAnimationDuration&&Eb(f,d)&&!Eb(c,d)&&(h.top-d.top)/(h.left-d.left)===(c.top-d.top)/(c.left-d.left)&&(l=r9e(h,f,p,i.options)),Eb(d,c)||(u.prevFromRect=c,u.prevToRect=d,l||(l=i.options.animation),i.animate(u,h,d,l)),l&&(o=!0,s=Math.max(s,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(t),o?t=setTimeout(function(){typeof r=="function"&&r()},s):typeof r=="function"&&r(),e=[]},animate:function(r,i,o,s){if(s){Ue(r,"transition",""),Ue(r,"transform","");var a=hl(this.el),l=a&&a.a,u=a&&a.d,c=(i.left-o.left)/(l||1),d=(i.top-o.top)/(u||1);r.animatingX=!!c,r.animatingY=!!d,Ue(r,"transform","translate3d("+c+"px,"+d+"px,0)"),this.forRepaintDummy=n9e(r),Ue(r,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),Ue(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){Ue(r,"transition",""),Ue(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},s)}}}}function n9e(e){return e.offsetWidth}function r9e(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var _u=[],wb={initializeByDefault:!0},ih={mount:function(t){for(var n in wb)wb.hasOwnProperty(n)&&!(n in t)&&(t[n]=wb[n]);_u.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),_u.push(t)},pluginEvent:function(t,n,r){var i=this;this.eventCanceled=!1,r.cancel=function(){i.eventCanceled=!0};var o=t+"Global";_u.forEach(function(s){n[s.pluginName]&&(n[s.pluginName][o]&&n[s.pluginName][o](Bo({sortable:n},r)),n.options[s.pluginName]&&n[s.pluginName][t]&&n[s.pluginName][t](Bo({sortable:n},r)))})},initializePlugins:function(t,n,r,i){_u.forEach(function(a){var l=a.pluginName;if(!(!t.options[l]&&!a.initializeByDefault)){var u=new a(t,n,t.options);u.sortable=t,u.options=t.options,t[l]=u,Oi(r,u.defaults)}});for(var o in t.options)if(t.options.hasOwnProperty(o)){var s=this.modifyOption(t,o,t.options[o]);typeof s<"u"&&(t.options[o]=s)}},getEventProperties:function(t,n){var r={};return _u.forEach(function(i){typeof i.eventProperties=="function"&&Oi(r,i.eventProperties.call(n[i.pluginName],t))}),r},modifyOption:function(t,n,r){var i;return _u.forEach(function(o){t[o.pluginName]&&o.optionListeners&&typeof o.optionListeners[n]=="function"&&(i=o.optionListeners[n].call(t[o.pluginName],r))}),i}};function jd(e){var t=e.sortable,n=e.rootEl,r=e.name,i=e.targetEl,o=e.cloneEl,s=e.toEl,a=e.fromEl,l=e.oldIndex,u=e.newIndex,c=e.oldDraggableIndex,d=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,h=e.extraEventProperties;if(t=t||n&&n[hr],!!t){var m,v=t.options,g="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Ps&&!rh?m=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(m=document.createEvent("Event"),m.initEvent(r,!0,!0)),m.to=s||n,m.from=a||n,m.item=i||n,m.clone=o,m.oldIndex=l,m.newIndex=u,m.oldDraggableIndex=c,m.newDraggableIndex=d,m.originalEvent=f,m.pullMode=p?p.lastPutMode:void 0;var y=Bo(Bo({},h),ih.getEventProperties(r,t));for(var _ in y)m[_]=y[_];n&&n.dispatchEvent(m),v[g]&&v[g].call(t,m)}}var i9e=["evt"],Or=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=r.evt,o=j$e(r,i9e);ih.pluginEvent.bind(rt)(t,n,Bo({dragEl:Oe,parentEl:An,ghostEl:mt,rootEl:vn,nextEl:Wa,lastDownEl:iv,cloneEl:In,cloneHidden:Qs,dragStarted:Wd,putSortable:Jn,activeSortable:rt.active,originalEvent:i,oldIndex:Bu,oldDraggableIndex:wf,newIndex:Qr,newDraggableIndex:Ys,hideGhostForTarget:HV,unhideGhostForTarget:DV,cloneNowHidden:function(){Qs=!0},cloneNowShown:function(){Qs=!1},dispatchSortableEvent:function(a){_r({sortable:n,name:a,originalEvent:i})}},o))};function _r(e){jd(Bo({putSortable:Jn,cloneEl:In,targetEl:Oe,rootEl:vn,oldIndex:Bu,oldDraggableIndex:wf,newIndex:Qr,newDraggableIndex:Ys},e))}var Oe,An,mt,vn,Wa,iv,In,Qs,Bu,Qr,wf,Ys,sm,Jn,Lu=!1,Mg=!1,Rg=[],Va,Fi,Tb,Ab,OM,$M,Wd,Su,Tf,Af=!1,am=!1,ov,ar,Ib=[],LS=!1,Pg=[],A0=typeof document<"u",lm=LV,NM=rh||Ps?"cssFloat":"float",o9e=A0&&!Z$e&&!LV&&"draggable"in document.createElement("div"),OV=function(){if(A0){if(Ps)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),$V=function(t,n){var r=Ue(t),i=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),o=Hc(t,0,n),s=Hc(t,1,n),a=o&&Ue(o),l=s&&Ue(s),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+gn(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+gn(s).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&a.float!=="none"){var d=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===d)?"vertical":"horizontal"}return o&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||u>=i&&r[NM]==="none"||s&&r[NM]==="none"&&u+c>i)?"vertical":"horizontal"},s9e=function(t,n,r){var i=r?t.left:t.top,o=r?t.right:t.bottom,s=r?t.width:t.height,a=r?n.left:n.top,l=r?n.right:n.bottom,u=r?n.width:n.height;return i===a||o===l||i+s/2===a+u/2},a9e=function(t,n){var r;return Rg.some(function(i){var o=i[hr].options.emptyInsertThreshold;if(!(!o||cT(i))){var s=gn(i),a=t>=s.left-o&&t<=s.right+o,l=n>=s.top-o&&n<=s.bottom+o;if(a&&l)return r=i}}),r},NV=function(t){function n(o,s){return function(a,l,u,c){var d=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(o==null&&(s||d))return!0;if(o==null||o===!1)return!1;if(s&&o==="clone")return o;if(typeof o=="function")return n(o(a,l,u,c),s)(a,l,u,c);var f=(s?a:l).options.group.name;return o===!0||typeof o=="string"&&o===f||o.join&&o.indexOf(f)>-1}}var r={},i=t.group;(!i||rv(i)!="object")&&(i={name:i}),r.name=i.name,r.checkPull=n(i.pull,!0),r.checkPut=n(i.put),r.revertClone=i.revertClone,t.group=r},HV=function(){!OV&&mt&&Ue(mt,"display","none")},DV=function(){!OV&&mt&&Ue(mt,"display","")};A0&&document.addEventListener("click",function(e){if(Mg)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Mg=!1,!1},!0);var Fa=function(t){if(Oe){t=t.touches?t.touches[0]:t;var n=a9e(t.clientX,t.clientY);if(n){var r={};for(var i in t)t.hasOwnProperty(i)&&(r[i]=t[i]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[hr]._onDragOver(r)}}},l9e=function(t){Oe&&Oe.parentNode[hr]._isOutsideThisEl(t.target)};function rt(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=Oi({},t),e[hr]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return $V(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(s,a){s.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:rt.supportPointer!==!1&&"PointerEvent"in window&&!Ef,emptyInsertThreshold:5};ih.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);NV(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:o9e,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?Tt(e,"pointerdown",this._onTapStart):(Tt(e,"mousedown",this._onTapStart),Tt(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(Tt(e,"dragover",this),Tt(e,"dragenter",this)),Rg.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Oi(this,t9e())}rt.prototype={constructor:rt,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Su=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,Oe):this.options.direction},_onTapStart:function(t){if(t.cancelable){var n=this,r=this.el,i=this.options,o=i.preventOnFilter,s=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(a||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=i.filter;if(v9e(r),!Oe&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&Ef&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Gi(l,i.draggable,r,!1),!(l&&l.animated)&&iv!==l)){if(Bu=Ln(l),wf=Ln(l,i.draggable),typeof c=="function"){if(c.call(this,t,l,this)){_r({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:r,fromEl:r}),Or("filter",n,{evt:t}),o&&t.cancelable&&t.preventDefault();return}}else if(c&&(c=c.split(",").some(function(d){if(d=Gi(u,d.trim(),r,!1),d)return _r({sortable:n,rootEl:d,name:"filter",targetEl:l,fromEl:r,toEl:r}),Or("filter",n,{evt:t}),!0}),c)){o&&t.cancelable&&t.preventDefault();return}i.handle&&!Gi(u,i.handle,r,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,n,r){var i=this,o=i.el,s=i.options,a=o.ownerDocument,l;if(r&&!Oe&&r.parentNode===o){var u=gn(r);if(vn=o,Oe=r,An=Oe.parentNode,Wa=Oe.nextSibling,iv=r,sm=s.group,rt.dragged=Oe,Va={target:Oe,clientX:(n||t).clientX,clientY:(n||t).clientY},OM=Va.clientX-u.left,$M=Va.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,Oe.style["will-change"]="all",l=function(){if(Or("delayEnded",i,{evt:t}),rt.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!LM&&i.nativeDraggable&&(Oe.draggable=!0),i._triggerDragStart(t,n),_r({sortable:i,name:"choose",originalEvent:t}),_n(Oe,s.chosenClass,!0)},s.ignore.split(",").forEach(function(c){MV(Oe,c.trim(),xb)}),Tt(a,"dragover",Fa),Tt(a,"mousemove",Fa),Tt(a,"touchmove",Fa),Tt(a,"mouseup",i._onDrop),Tt(a,"touchend",i._onDrop),Tt(a,"touchcancel",i._onDrop),LM&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Oe.draggable=!0),Or("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(rh||Ps))){if(rt.eventCanceled){this._onDrop();return}Tt(a,"mouseup",i._disableDelayedDrag),Tt(a,"touchend",i._disableDelayedDrag),Tt(a,"touchcancel",i._disableDelayedDrag),Tt(a,"mousemove",i._delayedDragTouchMoveHandler),Tt(a,"touchmove",i._delayedDragTouchMoveHandler),s.supportPointer&&Tt(a,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,s.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Oe&&xb(Oe),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;Et(t,"mouseup",this._disableDelayedDrag),Et(t,"touchend",this._disableDelayedDrag),Et(t,"touchcancel",this._disableDelayedDrag),Et(t,"mousemove",this._delayedDragTouchMoveHandler),Et(t,"touchmove",this._delayedDragTouchMoveHandler),Et(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?Tt(document,"pointermove",this._onTouchMove):n?Tt(document,"touchmove",this._onTouchMove):Tt(document,"mousemove",this._onTouchMove):(Tt(Oe,"dragend",this),Tt(vn,"dragstart",this._onDragStart));try{document.selection?sv(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Lu=!1,vn&&Oe){Or("dragStarted",this,{evt:n}),this.nativeDraggable&&Tt(document,"dragover",l9e);var r=this.options;!t&&_n(Oe,r.dragClass,!1),_n(Oe,r.ghostClass,!0),rt.active=this,t&&this._appendGhost(),_r({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Fi){this._lastX=Fi.clientX,this._lastY=Fi.clientY,HV();for(var t=document.elementFromPoint(Fi.clientX,Fi.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Fi.clientX,Fi.clientY),t!==n);)n=t;if(Oe.parentNode[hr]._isOutsideThisEl(t),n)do{if(n[hr]){var r=void 0;if(r=n[hr]._onDragOver({clientX:Fi.clientX,clientY:Fi.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);DV()}},_onTouchMove:function(t){if(Va){var n=this.options,r=n.fallbackTolerance,i=n.fallbackOffset,o=t.touches?t.touches[0]:t,s=mt&&hl(mt,!0),a=mt&&s&&s.a,l=mt&&s&&s.d,u=lm&&ar&&RM(ar),c=(o.clientX-Va.clientX+i.x)/(a||1)+(u?u[0]-Ib[0]:0)/(a||1),d=(o.clientY-Va.clientY+i.y)/(l||1)+(u?u[1]-Ib[1]:0)/(l||1);if(!rt.active&&!Lu){if(r&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if(mt){s?(s.e+=c-(Tb||0),s.f+=d-(Ab||0)):s={a:1,b:0,c:0,d:1,e:c,f:d};var f="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");Ue(mt,"webkitTransform",f),Ue(mt,"mozTransform",f),Ue(mt,"msTransform",f),Ue(mt,"transform",f),Tb=c,Ab=d,Fi=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!mt){var t=this.options.fallbackOnBody?document.body:vn,n=gn(Oe,!0,lm,!0,t),r=this.options;if(lm){for(ar=t;Ue(ar,"position")==="static"&&Ue(ar,"transform")==="none"&&ar!==document;)ar=ar.parentNode;ar!==document.body&&ar!==document.documentElement?(ar===document&&(ar=Lo()),n.top+=ar.scrollTop,n.left+=ar.scrollLeft):ar=Lo(),Ib=RM(ar)}mt=Oe.cloneNode(!0),_n(mt,r.ghostClass,!1),_n(mt,r.fallbackClass,!0),_n(mt,r.dragClass,!0),Ue(mt,"transition",""),Ue(mt,"transform",""),Ue(mt,"box-sizing","border-box"),Ue(mt,"margin",0),Ue(mt,"top",n.top),Ue(mt,"left",n.left),Ue(mt,"width",n.width),Ue(mt,"height",n.height),Ue(mt,"opacity","0.8"),Ue(mt,"position",lm?"absolute":"fixed"),Ue(mt,"zIndex","100000"),Ue(mt,"pointerEvents","none"),rt.ghost=mt,t.appendChild(mt),Ue(mt,"transform-origin",OM/parseInt(mt.style.width)*100+"% "+$M/parseInt(mt.style.height)*100+"%")}},_onDragStart:function(t,n){var r=this,i=t.dataTransfer,o=r.options;if(Or("dragStart",this,{evt:t}),rt.eventCanceled){this._onDrop();return}Or("setupClone",this),rt.eventCanceled||(In=dT(Oe),In.draggable=!1,In.style["will-change"]="",this._hideClone(),_n(In,this.options.chosenClass,!1),rt.clone=In),r.cloneId=sv(function(){Or("clone",r),!rt.eventCanceled&&(r.options.removeCloneOnHide||vn.insertBefore(In,Oe),r._hideClone(),_r({sortable:r,name:"clone"}))}),!n&&_n(Oe,o.dragClass,!0),n?(Mg=!0,r._loopId=setInterval(r._emulateDragOver,50)):(Et(document,"mouseup",r._onDrop),Et(document,"touchend",r._onDrop),Et(document,"touchcancel",r._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(r,i,Oe)),Tt(document,"drop",r),Ue(Oe,"transform","translateZ(0)")),Lu=!0,r._dragStartId=sv(r._dragStarted.bind(r,n,t)),Tt(document,"selectstart",r),Wd=!0,Ef&&Ue(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,r=t.target,i,o,s,a=this.options,l=a.group,u=rt.active,c=sm===l,d=a.sort,f=Jn||u,p,h=this,m=!1;if(LS)return;function v(q,de){Or(q,h,Bo({evt:t,isOwner:c,axis:p?"vertical":"horizontal",revert:s,dragRect:i,targetRect:o,canSort:d,fromSortable:f,target:r,completed:y,onMove:function(W,V){return um(vn,n,Oe,i,W,gn(W),t,V)},changed:_},de))}function g(){v("dragOverAnimationCapture"),h.captureAnimationState(),h!==f&&f.captureAnimationState()}function y(q){return v("dragOverCompleted",{insertion:q}),q&&(c?u._hideClone():u._showClone(h),h!==f&&(_n(Oe,Jn?Jn.options.ghostClass:u.options.ghostClass,!1),_n(Oe,a.ghostClass,!0)),Jn!==h&&h!==rt.active?Jn=h:h===rt.active&&Jn&&(Jn=null),f===h&&(h._ignoreWhileAnimating=r),h.animateAll(function(){v("dragOverAnimationComplete"),h._ignoreWhileAnimating=null}),h!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(r===Oe&&!Oe.animated||r===n&&!r.animated)&&(Su=null),!a.dragoverBubble&&!t.rootEl&&r!==document&&(Oe.parentNode[hr]._isOutsideThisEl(t.target),!q&&Fa(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function _(){Qr=Ln(Oe),Ys=Ln(Oe,a.draggable),_r({sortable:h,name:"change",toEl:n,newIndex:Qr,newDraggableIndex:Ys,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=Gi(r,a.draggable,n,!0),v("dragOver"),rt.eventCanceled)return m;if(Oe.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||h._ignoreWhileAnimating===r)return y(!1);if(Mg=!1,u&&!a.disabled&&(c?d||(s=An!==vn):Jn===this||(this.lastPutMode=sm.checkPull(this,u,Oe,t))&&l.checkPut(this,u,Oe,t))){if(p=this._getDirection(t,r)==="vertical",i=gn(Oe),v("dragOverValid"),rt.eventCanceled)return m;if(s)return An=vn,g(),this._hideClone(),v("revert"),rt.eventCanceled||(Wa?vn.insertBefore(Oe,Wa):vn.appendChild(Oe)),y(!0);var b=cT(n,a.draggable);if(!b||f9e(t,p,this)&&!b.animated){if(b===Oe)return y(!1);if(b&&n===t.target&&(r=b),r&&(o=gn(r)),um(vn,n,Oe,i,r,o,t,!!r)!==!1)return g(),n.appendChild(Oe),An=n,_(),y(!0)}else if(b&&d9e(t,p,this)){var S=Hc(n,0,a,!0);if(S===Oe)return y(!1);if(r=S,o=gn(r),um(vn,n,Oe,i,r,o,t,!1)!==!1)return g(),n.insertBefore(Oe,S),An=n,_(),y(!0)}else if(r.parentNode===n){o=gn(r);var C=0,E,w=Oe.parentNode!==n,T=!s9e(Oe.animated&&Oe.toRect||i,r.animated&&r.toRect||o,p),A=p?"top":"left",L=MM(r,"top","top")||MM(Oe,"top","top"),x=L?L.scrollTop:void 0;Su!==r&&(E=o[A],Af=!1,am=!T&&a.invertSwap||w),C=p9e(t,r,o,p,T?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,am,Su===r);var k;if(C!==0){var M=Ln(Oe);do M-=C,k=An.children[M];while(k&&(Ue(k,"display")==="none"||k===mt))}if(C===0||k===r)return y(!1);Su=r,Tf=C;var z=r.nextElementSibling,P=!1;P=C===1;var H=um(vn,n,Oe,i,r,o,t,P);if(H!==!1)return(H===1||H===-1)&&(P=H===1),LS=!0,setTimeout(c9e,30),g(),P&&!z?n.appendChild(Oe):r.parentNode.insertBefore(Oe,P?z:r),L&&PV(L,0,x-L.scrollTop),An=Oe.parentNode,E!==void 0&&!am&&(ov=Math.abs(E-gn(r)[A])),_(),y(!0)}if(n.contains(Oe))return y(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){Et(document,"mousemove",this._onTouchMove),Et(document,"touchmove",this._onTouchMove),Et(document,"pointermove",this._onTouchMove),Et(document,"dragover",Fa),Et(document,"mousemove",Fa),Et(document,"touchmove",Fa)},_offUpEvents:function(){var t=this.el.ownerDocument;Et(t,"mouseup",this._onDrop),Et(t,"touchend",this._onDrop),Et(t,"pointerup",this._onDrop),Et(t,"touchcancel",this._onDrop),Et(document,"selectstart",this)},_onDrop:function(t){var n=this.el,r=this.options;if(Qr=Ln(Oe),Ys=Ln(Oe,r.draggable),Or("drop",this,{evt:t}),An=Oe&&Oe.parentNode,Qr=Ln(Oe),Ys=Ln(Oe,r.draggable),rt.eventCanceled){this._nulling();return}Lu=!1,am=!1,Af=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),kS(this.cloneId),kS(this._dragStartId),this.nativeDraggable&&(Et(document,"drop",this),Et(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),Ef&&Ue(document.body,"user-select",""),Ue(Oe,"transform",""),t&&(Wd&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),mt&&mt.parentNode&&mt.parentNode.removeChild(mt),(vn===An||Jn&&Jn.lastPutMode!=="clone")&&In&&In.parentNode&&In.parentNode.removeChild(In),Oe&&(this.nativeDraggable&&Et(Oe,"dragend",this),xb(Oe),Oe.style["will-change"]="",Wd&&!Lu&&_n(Oe,Jn?Jn.options.ghostClass:this.options.ghostClass,!1),_n(Oe,this.options.chosenClass,!1),_r({sortable:this,name:"unchoose",toEl:An,newIndex:null,newDraggableIndex:null,originalEvent:t}),vn!==An?(Qr>=0&&(_r({rootEl:An,name:"add",toEl:An,fromEl:vn,originalEvent:t}),_r({sortable:this,name:"remove",toEl:An,originalEvent:t}),_r({rootEl:An,name:"sort",toEl:An,fromEl:vn,originalEvent:t}),_r({sortable:this,name:"sort",toEl:An,originalEvent:t})),Jn&&Jn.save()):Qr!==Bu&&Qr>=0&&(_r({sortable:this,name:"update",toEl:An,originalEvent:t}),_r({sortable:this,name:"sort",toEl:An,originalEvent:t})),rt.active&&((Qr==null||Qr===-1)&&(Qr=Bu,Ys=wf),_r({sortable:this,name:"end",toEl:An,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){Or("nulling",this),vn=Oe=An=mt=Wa=In=iv=Qs=Va=Fi=Wd=Qr=Ys=Bu=wf=Su=Tf=Jn=sm=rt.dragged=rt.ghost=rt.clone=rt.active=null,Pg.forEach(function(t){t.checked=!0}),Pg.length=Tb=Ab=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Oe&&(this._onDragOver(t),u9e(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,i=0,o=r.length,s=this.options;i<o;i++)n=r[i],Gi(n,s.draggable,this.el,!1)&&t.push(n.getAttribute(s.dataIdAttr)||m9e(n));return t},sort:function(t,n){var r={},i=this.el;this.toArray().forEach(function(o,s){var a=i.children[s];Gi(a,this.options.draggable,i,!1)&&(r[o]=a)},this),n&&this.captureAnimationState(),t.forEach(function(o){r[o]&&(i.removeChild(r[o]),i.appendChild(r[o]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return Gi(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var r=this.options;if(n===void 0)return r[t];var i=ih.modifyOption(this,t,n);typeof i<"u"?r[t]=i:r[t]=n,t==="group"&&NV(r)},destroy:function(){Or("destroy",this);var t=this.el;t[hr]=null,Et(t,"mousedown",this._onTapStart),Et(t,"touchstart",this._onTapStart),Et(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(Et(t,"dragover",this),Et(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Rg.splice(Rg.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Qs){if(Or("hideClone",this),rt.eventCanceled)return;Ue(In,"display","none"),this.options.removeCloneOnHide&&In.parentNode&&In.parentNode.removeChild(In),Qs=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Qs){if(Or("showClone",this),rt.eventCanceled)return;Oe.parentNode==vn&&!this.options.group.revertClone?vn.insertBefore(In,Oe):Wa?vn.insertBefore(In,Wa):vn.appendChild(In),this.options.group.revertClone&&this.animate(Oe,In),Ue(In,"display",""),Qs=!1}}};function u9e(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function um(e,t,n,r,i,o,s,a){var l,u=e[hr],c=u.options.onMove,d;return window.CustomEvent&&!Ps&&!rh?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=i||t,l.relatedRect=o||gn(t),l.willInsertAfter=a,l.originalEvent=s,e.dispatchEvent(l),c&&(d=c.call(u,l,s)),d}function xb(e){e.draggable=!1}function c9e(){LS=!1}function d9e(e,t,n){var r=gn(Hc(n.el,0,n.options,!0)),i=10;return t?e.clientX<r.left-i||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-i||e.clientY<r.bottom&&e.clientX<r.left}function f9e(e,t,n){var r=gn(cT(n.el,n.options.draggable)),i=10;return t?e.clientX>r.right+i||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+i}function p9e(e,t,n,r,i,o,s,a){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,c=r?n.top:n.left,d=r?n.bottom:n.right,f=!1;if(!s){if(a&&ov<u*i){if(!Af&&(Tf===1?l>c+u*o/2:l<d-u*o/2)&&(Af=!0),Af)f=!0;else if(Tf===1?l<c+ov:l>d-ov)return-Tf}else if(l>c+u*(1-i)/2&&l<d-u*(1-i)/2)return h9e(t)}return f=f||s,f&&(l<c+u*o/2||l>d-u*o/2)?l>c+u/2?1:-1:0}function h9e(e){return Ln(Oe)<Ln(e)?1:-1}function m9e(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function v9e(e){Pg.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&Pg.push(r)}}function sv(e){return setTimeout(e,0)}function kS(e){return clearTimeout(e)}A0&&Tt(document,"touchmove",function(e){(rt.active||Lu)&&e.cancelable&&e.preventDefault()});rt.utils={on:Tt,off:Et,css:Ue,find:MV,is:function(t,n){return!!Gi(t,n,t,!1)},extend:Q$e,throttle:RV,closest:Gi,toggleClass:_n,clone:dT,index:Ln,nextTick:sv,cancelNextTick:kS,detectDirection:$V,getChild:Hc};rt.get=function(e){return e[hr]};rt.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(rt.utils=Bo(Bo({},rt.utils),r.utils)),ih.mount(r)})};rt.create=function(e,t){return new rt(e,t)};rt.version=X$e;var Dn=[],Gd,MS,RS=!1,Lb,kb,Og,zd;function g9e(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?Tt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?Tt(document,"pointermove",this._handleFallbackAutoScroll):r.touches?Tt(document,"touchmove",this._handleFallbackAutoScroll):Tt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?Et(document,"dragover",this._handleAutoScroll):(Et(document,"pointermove",this._handleFallbackAutoScroll),Et(document,"touchmove",this._handleFallbackAutoScroll),Et(document,"mousemove",this._handleFallbackAutoScroll)),HM(),av(),e9e()},nulling:function(){Og=MS=Gd=RS=zd=Lb=kb=null,Dn.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var i=this,o=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,a=document.elementFromPoint(o,s);if(Og=n,r||this.options.forceAutoScrollFallback||rh||Ps||Ef){Mb(n,this.options,a,r);var l=na(a,!0);RS&&(!zd||o!==Lb||s!==kb)&&(zd&&HM(),zd=setInterval(function(){var u=na(document.elementFromPoint(o,s),!0);u!==l&&(l=u,av()),Mb(n,i.options,u,r)},10),Lb=o,kb=s)}else{if(!this.options.bubbleScroll||na(a,!0)===Lo()){av();return}Mb(n,this.options,na(a,!1),!1)}}},Oi(e,{pluginName:"scroll",initializeByDefault:!0})}function av(){Dn.forEach(function(e){clearInterval(e.pid)}),Dn=[]}function HM(){clearInterval(zd)}var Mb=RV(function(e,t,n,r){if(t.scroll){var i=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,l=Lo(),u=!1,c;MS!==n&&(MS=n,av(),Gd=t.scroll,c=t.scrollFn,Gd===!0&&(Gd=na(n,!0)));var d=0,f=Gd;do{var p=f,h=gn(p),m=h.top,v=h.bottom,g=h.left,y=h.right,_=h.width,b=h.height,S=void 0,C=void 0,E=p.scrollWidth,w=p.scrollHeight,T=Ue(p),A=p.scrollLeft,L=p.scrollTop;p===l?(S=_<E&&(T.overflowX==="auto"||T.overflowX==="scroll"||T.overflowX==="visible"),C=b<w&&(T.overflowY==="auto"||T.overflowY==="scroll"||T.overflowY==="visible")):(S=_<E&&(T.overflowX==="auto"||T.overflowX==="scroll"),C=b<w&&(T.overflowY==="auto"||T.overflowY==="scroll"));var x=S&&(Math.abs(y-i)<=s&&A+_<E)-(Math.abs(g-i)<=s&&!!A),k=C&&(Math.abs(v-o)<=s&&L+b<w)-(Math.abs(m-o)<=s&&!!L);if(!Dn[d])for(var M=0;M<=d;M++)Dn[M]||(Dn[M]={});(Dn[d].vx!=x||Dn[d].vy!=k||Dn[d].el!==p)&&(Dn[d].el=p,Dn[d].vx=x,Dn[d].vy=k,clearInterval(Dn[d].pid),(x!=0||k!=0)&&(u=!0,Dn[d].pid=setInterval((function(){r&&this.layer===0&&rt.active._onTouchMove(Og);var z=Dn[this.layer].vy?Dn[this.layer].vy*a:0,P=Dn[this.layer].vx?Dn[this.layer].vx*a:0;typeof c=="function"&&c.call(rt.dragged.parentNode[hr],P,z,e,Og,Dn[this.layer].el)!=="continue"||PV(Dn[this.layer].el,P,z)}).bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==l&&(f=na(f,!1)));RS=u}},30),VV=function(t){var n=t.originalEvent,r=t.putSortable,i=t.dragEl,o=t.activeSortable,s=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(n){var u=r||o;a();var c=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,d=document.elementFromPoint(c.clientX,c.clientY);l(),u&&!u.el.contains(d)&&(s("spill"),this.onSpill({dragEl:i,putSortable:r}))}};function fT(){}fT.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var i=Hc(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:VV};Oi(fT,{pluginName:"revertOnSpill"});function pT(){}pT.prototype={onSpill:function(t){var n=t.dragEl,r=t.putSortable,i=r||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:VV};Oi(pT,{pluginName:"removeOnSpill"});var gi;function y9e(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var r=n.dragEl;gi=r},dragOverValid:function(n){var r=n.completed,i=n.target,o=n.onMove,s=n.activeSortable,a=n.changed,l=n.cancel;if(s.options.swap){var u=this.sortable.el,c=this.options;if(i&&i!==u){var d=gi;o(i)!==!1?(_n(i,c.swapClass,!0),gi=i):gi=null,d&&d!==gi&&_n(d,c.swapClass,!1)}a(),r(!0),l()}},drop:function(n){var r=n.activeSortable,i=n.putSortable,o=n.dragEl,s=i||this.sortable,a=this.options;gi&&_n(gi,a.swapClass,!1),gi&&(a.swap||i&&i.options.swap)&&o!==gi&&(s.captureAnimationState(),s!==r&&r.captureAnimationState(),b9e(o,gi
721),s.animateAll(),s!==r&&r.animateAll())},nulling:function(){gi=null}},Oi(e,{pluginName:"swap",eventProperties:function(){return{swapItem:gi}}})}function b9e(e,t){var n=e.parentNode,r=t.parentNode,i,o;!n||!r||n.isEqualNode(t)||r.isEqualNode(e)||(i=Ln(e),o=Ln(t),n.isEqualNode(r)&&i<o&&o++,n.insertBefore(t,n.children[i]),r.insertBefore(e,r.children[o]))}var pt=[],Jr=[],Ad,Bi,Id=!1,$r=!1,Eu=!1,Jt,xd,cm;function _9e(){function e(t){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));t.options.supportPointer?Tt(document,"pointerup",this._deselectMultiDrag):(Tt(document,"mouseup",this._deselectMultiDrag),Tt(document,"touchend",this._deselectMultiDrag)),Tt(document,"keydown",this._checkKeyDown),Tt(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(i,o){var s="";pt.length&&Bi===t?pt.forEach(function(a,l){s+=(l?", ":"")+a.textContent}):s=o.textContent,i.setData("Text",s)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var r=n.dragEl;Jt=r},delayEnded:function(){this.isMultiDrag=~pt.indexOf(Jt)},setupClone:function(n){var r=n.sortable,i=n.cancel;if(this.isMultiDrag){for(var o=0;o<pt.length;o++)Jr.push(dT(pt[o])),Jr[o].sortableIndex=pt[o].sortableIndex,Jr[o].draggable=!1,Jr[o].style["will-change"]="",_n(Jr[o],this.options.selectedClass,!1),pt[o]===Jt&&_n(Jr[o],this.options.chosenClass,!1);r._hideClone(),i()}},clone:function(n){var r=n.sortable,i=n.rootEl,o=n.dispatchSortableEvent,s=n.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||pt.length&&Bi===r&&(DM(!0,i),o("clone"),s()))},showClone:function(n){var r=n.cloneNowShown,i=n.rootEl,o=n.cancel;this.isMultiDrag&&(DM(!1,i),Jr.forEach(function(s){Ue(s,"display","")}),r(),cm=!1,o())},hideClone:function(n){var r=this;n.sortable;var i=n.cloneNowHidden,o=n.cancel;this.isMultiDrag&&(Jr.forEach(function(s){Ue(s,"display","none"),r.options.removeCloneOnHide&&s.parentNode&&s.parentNode.removeChild(s)}),i(),cm=!0,o())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Bi&&Bi.multiDrag._deselectMultiDrag(),pt.forEach(function(r){r.sortableIndex=Ln(r)}),pt=pt.sort(function(r,i){return r.sortableIndex-i.sortableIndex}),Eu=!0},dragStarted:function(n){var r=this,i=n.sortable;if(this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){pt.forEach(function(s){s!==Jt&&Ue(s,"position","absolute")});var o=gn(Jt,!1,!0,!0);pt.forEach(function(s){s!==Jt&&PM(s,o)}),$r=!0,Id=!0}i.animateAll(function(){$r=!1,Id=!1,r.options.animation&&pt.forEach(function(s){Cb(s)}),r.options.sort&&dm()})}},dragOver:function(n){var r=n.target,i=n.completed,o=n.cancel;$r&&~pt.indexOf(r)&&(i(!1),o())},revert:function(n){var r=n.fromSortable,i=n.rootEl,o=n.sortable,s=n.dragRect;pt.length>1&&(pt.forEach(function(a){o.addAnimationState({target:a,rect:$r?gn(a):s}),Cb(a),a.fromRect=s,r.removeAnimationState(a)}),$r=!1,S9e(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(n){var r=n.sortable,i=n.isOwner,o=n.insertion,s=n.activeSortable,a=n.parentEl,l=n.putSortable,u=this.options;if(o){if(i&&s._hideClone(),Id=!1,u.animation&&pt.length>1&&($r||!i&&!s.options.sort&&!l)){var c=gn(Jt,!1,!0,!0);pt.forEach(function(f){f!==Jt&&(PM(f,c),a.appendChild(f))}),$r=!0}if(!i)if($r||dm(),pt.length>1){var d=cm;s._showClone(r),s.options.animation&&!cm&&d&&Jr.forEach(function(f){s.addAnimationState({target:f,rect:xd}),f.fromRect=xd,f.thisAnimationDuration=null})}else s._showClone(r)}},dragOverAnimationCapture:function(n){var r=n.dragRect,i=n.isOwner,o=n.activeSortable;if(pt.forEach(function(a){a.thisAnimationDuration=null}),o.options.animation&&!i&&o.multiDrag.isMultiDrag){xd=Oi({},r);var s=hl(Jt,!0);xd.top-=s.f,xd.left-=s.e}},dragOverAnimationComplete:function(){$r&&($r=!1,dm())},drop:function(n){var r=n.originalEvent,i=n.rootEl,o=n.parentEl,s=n.sortable,a=n.dispatchSortableEvent,l=n.oldIndex,u=n.putSortable,c=u||this.sortable;if(r){var d=this.options,f=o.children;if(!Eu)if(d.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),_n(Jt,d.selectedClass,!~pt.indexOf(Jt)),~pt.indexOf(Jt))pt.splice(pt.indexOf(Jt),1),Ad=null,jd({sortable:s,rootEl:i,name:"deselect",targetEl:Jt,originalEvt:r});else{if(pt.push(Jt),jd({sortable:s,rootEl:i,name:"select",targetEl:Jt,originalEvt:r}),r.shiftKey&&Ad&&s.el.contains(Ad)){var p=Ln(Ad),h=Ln(Jt);if(~p&&~h&&p!==h){var m,v;for(h>p?(v=p,m=h):(v=h,m=p+1);v<m;v++)~pt.indexOf(f[v])||(_n(f[v],d.selectedClass,!0),pt.push(f[v]),jd({sortable:s,rootEl:i,name:"select",targetEl:f[v],originalEvt:r}))}}else Ad=Jt;Bi=c}if(Eu&&this.isMultiDrag){if($r=!1,(o[hr].options.sort||o!==i)&&pt.length>1){var g=gn(Jt),y=Ln(Jt,":not(."+this.options.selectedClass+")");if(!Id&&d.animation&&(Jt.thisAnimationDuration=null),c.captureAnimationState(),!Id&&(d.animation&&(Jt.fromRect=g,pt.forEach(function(b){if(b.thisAnimationDuration=null,b!==Jt){var S=$r?gn(b):g;b.fromRect=S,c.addAnimationState({target:b,rect:S})}})),dm(),pt.forEach(function(b){f[y]?o.insertBefore(b,f[y]):o.appendChild(b),y++}),l===Ln(Jt))){var _=!1;pt.forEach(function(b){if(b.sortableIndex!==Ln(b)){_=!0;return}}),_&&a("update")}pt.forEach(function(b){Cb(b)}),c.animateAll()}Bi=c}(i===o||u&&u.lastPutMode!=="clone")&&Jr.forEach(function(b){b.parentNode&&b.parentNode.removeChild(b)})}},nullingGlobal:function(){this.isMultiDrag=Eu=!1,Jr.length=0}
721,destroyGlobal:function(){this._deselectMultiDrag(),Et(document,"pointerup",this._deselectMultiDrag),Et(document,"mouseup",this._deselectMultiDrag),Et(document,"touchend",this._deselectMultiDrag),Et(document,"keydown",this._checkKeyDown),Et(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof Eu<"u"&&Eu)&&Bi===this.sortable&&!(n&&Gi(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;pt.length;){var r=pt[0];_n(r,this.options.selectedClass,!1),pt.shift(),jd({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Oi(e,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[hr];!r||!r.options.multiDrag||~pt.indexOf(n)||(Bi&&Bi!==r&&(Bi.multiDrag._deselectMultiDrag(),Bi=r),_n(n,r.options.selectedClass,!0),pt.push(n))},deselect:function(n){var r=n.parentNode[hr],i=pt.indexOf(n);!r||!r.options.multiDrag||!~i||(_n(n,r.options.selectedClass,!1),pt.splice(i,1))}},eventProperties:function(){var n=this,r=[],i=[];return pt.forEach(function(o){r.push({multiDragElement:o,index:o.sortableIndex});var s;$r&&o!==Jt?s=-1:$r?s=Ln(o,":not(."+n.options.selectedClass+")"):s=Ln(o),i.push({multiDragElement:o,index:s})}),{items:W$e(pt),clones:[].concat(Jr),oldIndicies:r,newIndicies:i}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function S9e(e,t){pt.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function DM(e,t){Jr.forEach(function(n,r){var i=t.children[n.sortableIndex+(e?Number(r):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function dm(){pt.forEach(function(e){e!==Jt&&e.parentNode&&e.parentNode.removeChild(e)})}rt.mount(new g9e);rt.mount(pT,fT);const E9e=Object.freeze(Object.defineProperty({__proto__:null,MultiDrag:_9e,Sortable:rt,Swap:y9e,default:rt},Symbol.toStringTag,{value:"Module"})),C9e=pE(E9e);(function(e,t){(function(r,i){e.exports=i(bR,C9e)})(typeof self<"u"?self:zi,function(n,r){return function(i){var o={};function s(a){if(o[a])return o[a].exports;var l=o[a]={i:a,l:!1,exports:{}};return i[a].call(l.exports,l,l.exports,s),l.l=!0,l.exports}return s.m=i,s.c=o,s.d=function(a,l,u){s.o(a,l)||Object.defineProperty(a,l,{enumerable:!0,get:u})},s.r=function(a){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},s.t=function(a,l){if(l&1&&(a=s(a)),l&8||l&4&&typeof a=="object"&&a&&a.__esModule)return a;var u=Object.create(null);if(s.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:a}),l&2&&typeof a!="string")for(var c in a)s.d(u,c,(function(d){return a[d]}).bind(null,c));return u},s.n=function(a){var l=a&&a.__esModule?function(){return a.default}:function(){return a};return s.d(l,"a",l),l},s.o=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)},s.p="",s(s.s="fb15")}({"00ee":function(i,o,s){var a=s("b622"),l=a("toStringTag"),u={};u[l]="z",i.exports=String(u)==="[object z]"},"0366":function(i,o,s){var a=s("1c0b");i.exports=function(l,u,c){if(a(l),u===void 0)return l;switch(c){case 0:return function(){return l.call(u)};case 1:return function(d){return l.call(u,d)};case 2:return function(d,f){return l.call(u,d,f)};case 3:return function(d,f,p){return l.call(u,d,f,p)}}return function(){return l.apply(u,arguments)}}},"057f":function(i,o,s){var a=s("fc6a"),l=s("241c").f,u={}.toString,c=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],d=function(f){try{return l(f)}catch{return c.slice()}};i.exports.f=function(p){return c&&u.call(p)=="[object Window]"?d(p):l(a(p))}},"06cf":function(i,o,s){var a=s("83ab"),l=s("d1e7"),u=s("5c6c"),c=s("fc6a"),d=s("c04e"),f=s("5135"),p=s("0cfb"),h=Object.getOwnPropertyDescriptor;o.f=a?h:function(v,g){if(v=c(v),g=d(g,!0),p)try{return h(v,g)}catch{}if(f(v,g))return u(!l.f.call(v,g),v[g])}},"0cfb":function(i,o,s){var a=s("83ab"),l=s("d039"),u=s("cc12");i.exports=!a&&!l(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(i,o,s){var a=s("23e7"),l=s("d58f").left,u=s("a640"),c=s("ae40"),d=u("reduce"),f=c("reduce",{1:0});a({target:"Array",proto:!0,forced:!d||!f},{reduce:function(h){return l(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(i,o,s){var a=s("c6b6"),l=s("9263");i.exports=function(u,c){var d=u.exec;
721if(typeof d=="function"){var f=d.call(u,c);if(typeof f!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return f}if(a(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(u,c)}},"159b":function(i,o,s){var a=s("da84"),l=s("fdbc"),u=s("17c2"),c=s("9112");for(var d in l){var f=a[d],p=f&&f.prototype;if(p&&p.forEach!==u)try{c(p,"forEach",u)}catch{p.forEach=u}}},"17c2":function(i,o,s){var a=s("b727").forEach,l=s("a640"),u=s("ae40"),c=l("forEach"),d=u("forEach");i.exports=!c||!d?function(p){return a(this,p,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(i,o,s){var a=s("d066");i.exports=a("document","documentElement")},"1c0b":function(i,o){i.exports=function(s){if(typeof s!="function")throw TypeError(String(s)+" is not a function");return s}},"1c7e":function(i,o,s){var a=s("b622"),l=a("iterator"),u=!1;try{var c=0,d={next:function(){return{done:!!c++}},return:function(){u=!0}};d[l]=function(){return this},Array.from(d,function(){throw 2})}catch{}i.exports=function(f,p){if(!p&&!u)return!1;var h=!1;try{var m={};m[l]=function(){return{next:function(){return{done:h=!0}}}},f(m)}catch{}return h}},"1d80":function(i,o){i.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},"1dde":function(i,o,s){var a=s("d039"),l=s("b622"),u=s("2d00"),c=l("species");i.exports=function(d){return u>=51||!a(function(){var f=[],p=f.constructor={};return p[c]=function(){return{foo:1}},f[d](Boolean).foo!==1})}},"23cb":function(i,o,s){var a=s("a691"),l=Math.max,u=Math.min;i.exports=function(c,d){var f=a(c);return f<0?l(f+d,0):u(f,d)}},"23e7":function(i,o,s){var a=s("da84"),l=s("06cf").f,u=s("9112"),c=s("6eeb"),d=s("ce4e"),f=s("e893"),p=s("94ca");i.exports=function(h,m){var v=h.target,g=h.global,y=h.stat,_,b,S,C,E,w;if(g?b=a:y?b=a[v]||d(v,{}):b=(a[v]||{}).prototype,b)for(S in m){if(E=m[S],h.noTargetGet?(w=l(b,S),C=w&&w.value):C=b[S],_=p(g?S:v+(y?".":"#")+S,h.forced),!_&&C!==void 0){if(typeof E==typeof C)continue;f(E,C)}(h.sham||C&&C.sham)&&u(E,"sham",!0),c(b,S,E,h)}}},"241c":function(i,o,s){var a=s("ca84"),l=s("7839"),u=l.concat("length","prototype");o.f=Object.getOwnPropertyNames||function(d){return a(d,u)}},"25f0":function(i,o,s){var a=s("6eeb"),l=s("825a"),u=s("d039"),c=s("ad6d"),d="toString",f=RegExp.prototype,p=f[d],h=u(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),m=p.name!=d;(h||m)&&a(RegExp.prototype,d,function(){var g=l(this),y=String(g.source),_=g.flags,b=String(_===void 0&&g instanceof RegExp&&!("flags"in f)?c.call(g):_);return"/"+y+"/"+b},{unsafe:!0})},"2ca0":function(i,o,s){var a=s("23e7"),l=s("06cf").f,u=s("50c4"),c=s("5a34"),d=s("1d80"),f=s("ab13"),p=s("c430"),h="".startsWith,m=Math.min,v=f("startsWith"),g=!p&&!v&&!!function(){var y=l(String.prototype,"startsWith");return y&&!y.writable}();a({target:"String",proto:!0,forced:!g&&!v},{startsWith:function(_){var b=String(d(this));c(_);var S=u(m(arguments.length>1?arguments[1]:void 0,b.length)),C=String(_);return h?h.call(b,C,S):b.slice(S,S+C.length)===C}})},"2d00":function(i,o,s){var a=s("da84"),l=s("342f"),u=a.process,c=u&&u.versions,d=c&&c.v8,f,p;d?(f=d.split("."),p=f[0]+f[1]):l&&(f=l.match(/Edge\/(\d+)/),(!f||f[1]>=74)&&(f=l.match(/Chrome\/(\d+)/),f&&(p=f[1]))),i.exports=p&&+p},"342f":function(i,o,s){var a=s("d066");i.exports=a("navigator","userAgent")||""},"35a1":function(i,o,s){var a=s("f5df"),l=s("3f8c"),u=s("b622"),c=u("iterator");i.exports=function(d){if(d!=null)return d[c]||d["@@iterator"]||l[a(d)]}},"37e8":function(i,o,s){var a=s("83ab"),l=s("9bf2"),u=s("825a"),c=s("df75");i.exports=a?Object.defineProperties:function(f,p){u(f);for(var h=c(p),m=h.length,v=0,g;m>v;)l.f(f,g=h[v++],p[g]);return f}},"3bbe":function(i,o,s){var a=s("861d");i.exports=function(l){if(!a(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(i,o,s){var a=s("6547").charAt,l=s("69f3"),u=s("7dd0"),c="String Iterator",d=l.set,f=l.getterFor(c);u(String,"String",function(p){d(this,{type:c,string:String(p),index:0})},function(){var h=f(this),m=h.string,v=h.index,g;return v>=m.length?{value:void 0,done:!0}:(g=a(m,v),h.index+=g.length,{value:g,done:!1})})},"3f8c":function(i,o){i.exports={}},4160:function(i,o,s){var a=s("23e7"),l=s("17c2");a({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(i,o,s){var a=s("da84");i.exports=a},"44ad":function(i,o,s){var a=s("d039"),l=s("c6b6"),u="".split;i.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(c){return l(c)=="String"?u.call(c,""):Object(c)}:Object},"44d2":function(i,o,s){var a=s("b622"),l=s("7c73"),u=s("9bf2"),c=a("unscopables"),d=Array.prototype;d[c]==null&&u.f(d,c,{configurable:!0,value:l(null)}),i.exports=function(f){d[c][f]=!0}},"44e7":function(i,o,s){var a=s("861d"),l=s("c6b6"),u=s("b622"),c=u("match");i.exports=function(d){var f;return a(d)&&((f=d[c])!==void 0?!!f:l(d)=="RegExp")}},4930:function(i,o,s){var a=s("d039");i.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},"4d64":function(i,o,s){var a=s("fc6a"),l=s("50c4"),u=s("23cb"),c=function(d){return function(f,p,h){var m=a(f),v=l(m.length),g=u(h,v),y;if(d&&p!=p){for(;v>g;)if(y=m[g++],y!=y)return!0}else for(;v>g;g++)if((d||g in m)&&m[g]===p)return d||g||0;return!d&&-1}};i.exports={includes:c(!0),indexOf:c(!1)}},"4de4":function(i,o,s){var a=s("23e7"),l=s("b727").filter,u=s("1d
721de"),c=s("ae40"),d=u("filter"),f=c("filter");a({target:"Array",proto:!0,forced:!d||!f},{filter:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(i,o,s){var a=s("0366"),l=s("7b0b"),u=s("9bdd"),c=s("e95a"),d=s("50c4"),f=s("8418"),p=s("35a1");i.exports=function(m){var v=l(m),g=typeof this=="function"?this:Array,y=arguments.length,_=y>1?arguments[1]:void 0,b=_!==void 0,S=p(v),C=0,E,w,T,A,L,x;if(b&&(_=a(_,y>2?arguments[2]:void 0,2)),S!=null&&!(g==Array&&c(S)))for(A=S.call(v),L=A.next,w=new g;!(T=L.call(A)).done;C++)x=b?u(A,_,[T.value,C],!0):T.value,f(w,C,x);else for(E=d(v.length),w=new g(E);E>C;C++)x=b?_(v[C],C):v[C],f(w,C,x);return w.length=C,w}},"4fad":function(i,o,s){var a=s("23e7"),l=s("6f53").entries;a({target:"Object",stat:!0},{entries:function(c){return l(c)}})},"50c4":function(i,o,s){var a=s("a691"),l=Math.min;i.exports=function(u){return u>0?l(a(u),9007199254740991):0}},5135:function(i,o){var s={}.hasOwnProperty;i.exports=function(a,l){return s.call(a,l)}},5319:function(i,o,s){var a=s("d784"),l=s("825a"),u=s("7b0b"),c=s("50c4"),d=s("a691"),f=s("1d80"),p=s("8aa5"),h=s("14c3"),m=Math.max,v=Math.min,g=Math.floor,y=/\$([$&'`]|\d\d?|<[^>]*>)/g,_=/\$([$&'`]|\d\d?)/g,b=function(S){return S===void 0?S:String(S)};a("replace",2,function(S,C,E,w){var T=w.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,A=w.REPLACE_KEEPS_$0,L=T?"$":"$0";return[function(M,z){var P=f(this),H=M==null?void 0:M[S];return H!==void 0?H.call(M,P,z):C.call(String(P),M,z)},function(k,M){if(!T&&A||typeof M=="string"&&M.indexOf(L)===-1){var z=E(C,k,this,M);if(z.done)return z.value}var P=l(k),H=String(this),q=typeof M=="function";q||(M=String(M));var de=P.global;if(de){var se=P.unicode;P.lastIndex=0}for(var W=[];;){var V=h(P,H);if(V===null||(W.push(V),!de))break;var B=String(V[0]);B===""&&(P.lastIndex=p(H,c(P.lastIndex),se))}for(var Y="",F=0,Q=0;Q<W.length;Q++){V=W[Q];for(var re=String(V[0]),be=m(v(d(V.index),H.length),0),Le=[],Me=1;Me<V.length;Me++)Le.push(b(V[Me]));var He=V.groups;if(q){var $=[re].concat(Le,be,H);He!==void 0&&$.push(He);var U=String(M.apply(void 0,$))}else U=x(re,H,be,Le,He,M);be>=F&&(Y+=H.slice(F,be)+U,F=be+re.length)}return Y+H.slice(F)}];function x(k,M,z,P,H,q){var de=z+k.length,se=P.length,W=_;return H!==void 0&&(H=u(H),W=y),C.call(q,W,function(V,B){var Y;switch(B.charAt(0)){case"$":return"$";case"&":return k;case"`":return M.slice(0,z);case"'":return M.slice(de);case"<":Y=H[B.slice(1,-1)];break;default:var F=+B;if(F===0)return V;if(F>se){var Q=g(F/10);return Q===0?V:Q<=se?P[Q-1]===void 0?B.charAt(1):P[Q-1]+B.charAt(1):V}Y=P[F-1]}return Y===void 0?"":Y})}})},5692:function(i,o,s){var a=s("c430"),l=s("c6cd");(i.exports=function(u,c){return l[u]||(l[u]=c!==void 0?c:{})})("versions",[]).push({version:"3.6.5",mode:a?"pure":"global",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(i,o,s){var a=s("d066"),l=s("241c"),u=s("7418"),c=s("825a");i.exports=a("Reflect","ownKeys")||function(f){var p=l.f(c(f)),h=u.f;return h?p.concat(h(f)):p}},"5a34":function(i,o,s){var a=s("44e7");i.exports=function(l){if(a(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(i,o){i.exports=function(s,a){return{enumerable:!(s&1),configurable:!(s&2),writable:!(s&4),value:a}}},"5db7":function(i,o,s){var a=s("23e7"),l=s("a2bf"),u=s("7b0b"),c=s("50c4"),d=s("1c0b"),f=s("65f0");a({target:"Array",proto:!0},{flatMap:function(h){var m=u(this),v=c(m.length),g;return d(h),g=f(m,0),g.length=l(g,m,m,v,0,1,h,arguments.length>1?arguments[1]:void 0),g}})},6547:function(i,o,s){var a=s("a691"),l=s("1d80"),u=function(c){return function(d,f){var p=String(l(d)),h=a(f),m=p.length,v,g;return h<0||h>=m?c?"":void 0:(v=p.charCodeAt(h),v<55296||v>56319||h+1===m||(g=p.charCodeAt(h+1))<56320||g>57343?c?p.charAt(h):v:c?p.slice(h,h+2):(v-55296<<10)+(g-56320)+65536)}};i.exports={codeAt:u(!1),charAt:u(!0)}},"65f0":function(i,o,s){var a=s("861d"),l=s("e8b5"),u=s("b622"),c=u("species");i.exports=function(d,f){var p;return l(d)&&(p=d.constructor,typeof p=="function"&&(p===Array||l(p.prototype))?p=void 0:a(p)&&(p=p[c],p===null&&(p=void 0))),new(p===void 0?Array:p)(f===0?0:f)}},"69f3":function(i,o,s){var a=s("7f9a"),l=s("da84"),u=s("861d"),c=s("9112"),d=s("5135"),f=s("f772"),p=s("d012"),h=l.WeakMap,m,v,g,y=function(T){return g(T)?v(T):m(T,{})},_=function(T){return function(A){var L;if(!u(A)||(L=v(A)).type!==T)throw TypeError("Incompatible receiver, "+T+" required");return L}};if(a){var b=new h,S=b.get,C=b.has,E=b.set;m=function(T,A){return E.call(b,T,A),A},v=function(T){return S.call(b,T)||{}},g=function(T){return C.call(b,T)}}else{var w=f("state");p[w]=!0,m=function(T,A){return c(T,w,A),A},v=function(T){return d(T,w)?T[w]:{}}
721,g=function(T){return d(T,w)}}i.exports={set:m,get:v,has:g,enforce:y,getterFor:_}},"6eeb":function(i,o,s){var a=s("da84"),l=s("9112"),u=s("5135"),c=s("ce4e"),d=s("8925"),f=s("69f3"),p=f.get,h=f.enforce,m=String(String).split("String");(i.exports=function(v,g,y,_){var b=_?!!_.unsafe:!1,S=_?!!_.enumerable:!1,C=_?!!_.noTargetGet:!1;if(typeof y=="function"&&(typeof g=="string"&&!u(y,"name")&&l(y,"name",g),h(y).source=m.join(typeof g=="string"?g:"")),v===a){S?v[g]=y:c(g,y);return}else b?!C&&v[g]&&(S=!0):delete v[g];S?v[g]=y:l(v,g,y)})(Function.prototype,"toString",function(){return typeof this=="function"&&p(this).source||d(this)})},"6f53":function(i,o,s){var a=s("83ab"),l=s("df75"),u=s("fc6a"),c=s("d1e7").f,d=function(f){return function(p){for(var h=u(p),m=l(h),v=m.length,g=0,y=[],_;v>g;)_=m[g++],(!a||c.call(h,_))&&y.push(f?[_,h[_]]:h[_]);return y}};i.exports={entries:d(!0),values:d(!1)}},"73d9":function(i,o,s){var a=s("44d2");a("flatMap")},7418:function(i,o){o.f=Object.getOwnPropertySymbols},"746f":function(i,o,s){var a=s("428f"),l=s("5135"),u=s("e538"),c=s("9bf2").f;i.exports=function(d){var f=a.Symbol||(a.Symbol={});l(f,d)||c(f,d,{value:u.f(d)})}},7839:function(i,o){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(i,o,s){var a=s("1d80");i.exports=function(l){return Object(a(l))}},"7c73":function(i,o,s){var a=s("825a"),l=s("37e8"),u=s("7839"),c=s("d012"),d=s("1be4"),f=s("cc12"),p=s("f772"),h=">",m="<",v="prototype",g="script",y=p("IE_PROTO"),_=function(){},b=function(T){return m+g+h+T+m+"/"+g+h},S=function(T){T.write(b("")),T.close();var A=T.parentWindow.Object;return T=null,A},C=function(){var T=f("iframe"),A="java"+g+":",L;return T.style.display="none",d.appendChild(T),T.src=String(A),L=T.contentWindow.document,L.open(),L.write(b("document.F=Object")),L.close(),L.F},E,w=function(){try{E=document.domain&&new ActiveXObject("htmlfile")}catch{}w=E?S(E):C();for(var T=u.length;T--;)delete w[v][u[T]];return w()};c[y]=!0,i.exports=Object.create||function(A,L){var x;return A!==null?(_[v]=a(A),x=new _,_[v]=null,x[y]=A):x=w(),L===void 0?x:l(x,L)}},"7dd0":function(i,o,s){var a=s("23e7"),l=s("9ed3"),u=s("e163"),c=s("d2bb"),d=s("d44e"),f=s("9112"),p=s("6eeb"),h=s("b622"),m=s("c430"),v=s("3f8c"),g=s("ae93"),y=g.IteratorPrototype,_=g.BUGGY_SAFARI_ITERATORS,b=h("iterator"),S="keys",C="values",E="entries",w=function(){return this};i.exports=function(T,A,L,x,k,M,z){l(L,A,x);var P=function(Q){if(Q===k&&W)return W;if(!_&&Q in de)return de[Q];switch(Q){case S:return function(){return new L(this,Q)};case C:return function(){return new L(this,Q)};case E:return function(){return new L(this,Q)}}return function(){return new L(this)}},H=A+" Iterator",q=!1,de=T.prototype,se=de[b]||de["@@iterator"]||k&&de[k],W=!_&&se||P(k),V=A=="Array"&&de.entries||se,B,Y,F;if(V&&(B=u(V.call(new T)),y!==Object.prototype&&B.next&&(!m&&u(B)!==y&&(c?c(B,y):typeof B[b]!="function"&&f(B,b,w)),d(B,H,!0,!0),m&&(v[H]=w))),k==C&&se&&se.name!==C&&(q=!0,W=function(){return se.call(this)}),(!m||z)&&de[b]!==W&&f(de,b,W),v[A]=W,k)if(Y={values:P(C),keys:M?W:P(S),entries:P(E)},z)for(F in Y)(_||q||!(F in de))&&p(de,F,Y[F]);else a({target:A,proto:!0,forced:_||q},Y);return Y}},"7f9a":function(i,o,s){var a=s("da84"),l=s("8925"),u=a.WeakMap;i.exports=typeof u=="function"&&/native code/.test(l(u))},"825a":function(i,o,s){var a=s("861d");i.exports=function(l){if(!a(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(i,o,s){var a=s("d039");i.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(i,o,s){var a=s("c04e"),l=s("9bf2"),u=s("5c6c");i.exports=function(c,d,f){var p=a(d);p in c?l.f(c,p,u(0,f)):c[p]=f}},"861d":function(i,o){i.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}},8875:function(i,o,s){var a,l,u;(function(c,d){l=[],a=d,u=typeof a=="function"?a.apply(o,l):a,u!==void 0&&(i.exports=u)})(typeof self<"u"?self:this,function(){function c(){var d=Object.getOwnPropertyDescriptor(document,"currentScript");
721if(!d&&"currentScript"in document&&document.currentScript||d&&d.get!==c&&document.currentScript)return document.currentScript;try{throw new Error}catch(E){var f=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,p=/@([^@]*):(\d+):(\d+)\s*$/ig,h=f.exec(E.stack)||p.exec(E.stack),m=h&&h[1]||!1,v=h&&h[2]||!1,g=document.location.href.replace(document.location.hash,""),y,_,b,S=document.getElementsByTagName("script");m===g&&(y=document.documentElement.outerHTML,_=new RegExp("(?:[^\\n]+?\\n){0,"+(v-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),b=y.replace(_,"$1").trim());for(var C=0;C<S.length;C++)if(S[C].readyState==="interactive"||S[C].src===m||m===g&&S[C].innerHTML&&S[C].innerHTML.trim()===b)return S[C];return null}}return c})},8925:function(i,o,s){var a=s("c6cd"),l=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(u){return l.call(u)}),i.exports=a.inspectSource},"8aa5":function(i,o,s){var a=s("6547").charAt;i.exports=function(l,u,c){return u+(c?a(l,u).length:1)}},"8bbf":function(i,o){i.exports=n},"90e3":function(i,o){var s=0,a=Math.random();i.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++s+a).toString(36)}},9112:function(i,o,s){var a=s("83ab"),l=s("9bf2"),u=s("5c6c");i.exports=a?function(c,d,f){return l.f(c,d,u(1,f))}:function(c,d,f){return c[d]=f,c}},9263:function(i,o,s){var a=s("ad6d"),l=s("9f7f"),u=RegExp.prototype.exec,c=String.prototype.replace,d=u,f=function(){var v=/a/,g=/b*/g;return u.call(v,"a"),u.call(g,"a"),v.lastIndex!==0||g.lastIndex!==0}(),p=l.UNSUPPORTED_Y||l.BROKEN_CARET,h=/()??/.exec("")[1]!==void 0,m=f||h||p;m&&(d=function(g){var y=this,_,b,S,C,E=p&&y.sticky,w=a.call(y),T=y.source,A=0,L=g;return E&&(w=w.replace("y",""),w.indexOf("g")===-1&&(w+="g"),L=String(g).slice(y.lastIndex),y.lastIndex>0&&(!y.multiline||y.multiline&&g[y.lastIndex-1]!==` 722`)&&(T="(?: "+T+")",L=" "+L,A++),b=new RegExp("^(?:"+T+")",w)),h&&(b=new RegExp("^"+T+"$(?!\\s)",w)),f&&(_=y.lastIndex),S=u.call(E?b:y,L),E?S?(S.input=S.input.slice(A),S[0]=S[0].slice(A),S.index=y.lastIndex,y.lastIndex+=S[0].length):y.lastIndex=0:f&&S&&(y.lastIndex=y.global?S.index+S[0].length:_),h&&S&&S.length>1&&c.call(S[0],b,function(){for(C=1;C<arguments.length-2;C++)arguments[C]===void 0&&(S[C]=void 0)}),S}),i.exports=d},"94ca":function(i,o,s){var a=s("d039"),l=/#|\.prototype\./,u=function(h,m){var v=d[c(h)];return v==p?!0:v==f?!1:typeof m=="function"?a(m):!!m},c=u.normalize=function(h){return String(h).replace(l,".").toLowerCase()},d=u.data={},f=u.NATIVE="N",p=u.POLYFILL="P";i.exports=u},"99af":function(i,o,s){var a=s("23e7"),l=s("d039"),u=s("e8b5"),c=s("861d"),d=s("7b0b"),f=s("50c4"),p=s("8418"),h=s("65f0"),m=s("1dde"),v=s("b622"),g=s("2d00"),y=v("isConcatSpreadable"),_=9007199254740991,b="Maximum allowed index exceeded",S=g>=51||!l(function(){var T=[];return T[y]=!1,T.concat()[0]!==T}),C=m("concat"),E=function(T){if(!c(T))return!1;var A=T[y];return A!==void 0?!!A:u(T)},w=!S||!C;a({target:"Array",proto:!0,forced:w},{concat:function(A){var L=d(this),x=h(L,0),k=0,M,z,P,H,q;for(M=-1,P=arguments.length;M<P;M++)if(q=M===-1?L:arguments[M],E(q)){if(H=f(q.length),k+H>_)throw TypeError(b);for(z=0;z<H;z++,k++)z in q&&p(x,k,q[z])}else{if(k>=_)throw TypeError(b);p(x,k++,q)}return x.length=k,x}})},"9bdd":function(i,o,s){var a=s("825a");i.exports=function(l,u,c,d){try{return d?u(a(c)[0],c[1]):u(c)}catch(p){var f=l.return;throw f!==void 0&&a(f.call(l)),p}}},"9bf2":function(i,o,s){var a=s("83ab"),l=s("0cfb"),u=s("825a"),c=s("c04e"),d=Object.defineProperty;o.f=a?d:function(p,h,m){if(u(p),h=c(h,!0),u(m),l)try{return d(p,h,m)}catch{}if("get"in m||"set"in m)throw TypeError("Accessors not supported");return"value"in m&&(p[h]=m.value),p}},"9ed3":function(i,o,s){var a=s("ae93").IteratorPrototype,l=s("7c73"),u=s("5c6c"),c=s("d44e"),d=s("3f8c"),f=function(){return this};i.exports=function(p,h,m){var v=h+" Iterator";return p.prototype=l(a,{next:u(1,m)}),c(p,v,!1,!0),d[v]=f,p}},"9f7f":function(i,o,s){var a=s("d039");function l(u,c){return RegExp(u,c)}o.UNSUPPORTED_Y=a(function(){var u=l("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),o.BROKEN_CARET=a(function(){var u=l("^r","gy");return u.lastIndex=2,u.exec("str")!=null})},a2bf:function(i,o,s){var a=s("e8b5"),l=s("50c4"),u=s("0366"),c=function(d,f,p,h,m,v,g,y){for(var _=m,b=0,S=g?u(g,y,3):!1,C;b<h;){if(b in p){if(C=S?S(p[b],b,f):p[b],v>0&&a(C))_=c(d,f,C,l(C.length),_,v-1)-1;else{if(_>=9007199254740991)throw TypeError("Exceed the acceptable array length");d[_]=C}_++}b++}return _};i.exports=c},a352:function(i,o){i.exports=r},a434:function(i,o,s){var a=s("23e7"),l=s("23cb"),u=s("a691"),c=s("50c4"),d=s("7b0b"),f=s("65f0"),p=s("8418"),h=s("1dde"),m=s("ae40"),v=h("splice"),g=m("splice",{ACCESSORS:!0,0:0,1:2}),y=Math.max,_=Math.min,b=9007199254740991,S="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!v||!g},{splice:function(E,w){var T=d(this),A=c(T.length),L=l(E,A),x=arguments.length,k,M,z,P,H,q;if(x===0?k=M=0:x===1?(k=0,M=A-L):(k=x-2,M=_(y(u(w),0),A-L)),A+k-M>b)throw TypeError(S);for(z=f(T,M),P=0;P<M;P++)H=L+P,H in T&&p(z,P,T[H]);if(z.length=M,k<M){for(P=L;P<A-M;P++)H=P+M,q=P+k,H in T?T[q]=T[H]:delete T[q];for(P=A;P>A-M+k;P--)delete T[P-1]}else if(k>M)for(P=A-M;P>L;P--)H=P+M-1,q=P+k-1,H in T?T[q]=T[H]:delete T[q];for(P=0;P<k;P++)T[P+L]=arguments[P+2];return T.length=A-M+k,z}})},a4d3:function(i,o,s){var a=s("23e7"),l=s("da84"),u=s("d066"),c=s("c430"),d=s("83ab"),f=s("4930"),p=s("fdbf"),h=s("d039"),m=s("5135"),v=s("e8b5"),g=s("861d"),y=s("825a"),_=s("7b0b"),b=s("fc6a"),S=s("c04e"),C=s("5c6c"),E=s("7c73"),w=s("df75"),T=s("241c"),A=s("057f"),L=s("7418"),x=s("06cf"),k=s("9bf2"),M=s("d1e7"),z=s("9112"),P=s("6eeb"),H=s("5692"),q=s("f772"),de=s("d012"),se=s("90e3"),W=s("b622"),V=s("e538"),B=s("746f"),Y=s("d44e"),F=s("69f3"),Q=s("b727").forEach,re=q("hidden"),be="Symbol",Le="prototype",Me=W("toPrimitive"),He=F.set,$=F.getterFor(be),U=Object[Le],ee=l.Symbol,ce=u("JSON","stringify"),me=x.f,Ce=k.f,xe=A.f,Ae=M.f,te=H("symbols"),le=H("op-symbol
722s"),ye=H("string-to-symbol-registry"),D=H("symbol-to-string-registry"),j=H("wks"),Z=l.QObject,_e=!Z||!Z[Le]||!Z[Le].findChild,Te=d&&h(function(){return E(Ce({},"a",{get:function(){return Ce(this,"a",{value:7}).a}})).a!=7})?function(dt,ze,et){var It=me(U,ze);It&&delete U[ze],Ce(dt,ze,et),It&&dt!==U&&Ce(U,ze,It)}:Ce,Xe=function(dt,ze){var et=te[dt]=E(ee[Le]);return He(et,{type:be,tag:dt,description:ze}),d||(et.description=ze),et},N=p?function(dt){return typeof dt=="symbol"}:function(dt){return Object(dt)instanceof ee},G=function(ze,et,It){ze===U&&G(le,et,It),y(ze);var Pt=S(et,!0);return y(It),m(te,Pt)?(It.enumerable?(m(ze,re)&&ze[re][Pt]&&(ze[re][Pt]=!1),It=E(It,{enumerable:C(0,!1)})):(m(ze,re)||Ce(ze,re,C(1,{})),ze[re][Pt]=!0),Te(ze,Pt,It)):Ce(ze,Pt,It)},J=function(ze,et){y(ze);var It=b(et),Pt=w(It).concat(ht(It));return Q(Pt,function(Rr){(!d||ke.call(It,Rr))&&G(ze,Rr,It[Rr])}),ze},we=function(ze,et){return et===void 0?E(ze):J(E(ze),et)},ke=function(ze){var et=S(ze,!0),It=Ae.call(this,et);return this===U&&m(te,et)&&!m(le,et)?!1:It||!m(this,et)||!m(te,et)||m(this,re)&&this[re][et]?It:!0},Ze=function(ze,et){var It=b(ze),Pt=S(et,!0);if(!(It===U&&m(te,Pt)&&!m(le,Pt))){var Rr=me(It,Pt);return Rr&&m(te,Pt)&&!(m(It,re)&&It[re][Pt])&&(Rr.enumerable=!0),Rr}},We=function(ze){var et=xe(b(ze)),It=[];return Q(et,function(Pt){!m(te,Pt)&&!m(de,Pt)&&It.push(Pt)}),It},ht=function(ze){var et=ze===U,It=xe(et?le:b(ze)),Pt=[];return Q(It,function(Rr){m(te,Rr)&&(!et||m(U,Rr))&&Pt.push(te[Rr])}),Pt};if(f||(ee=function(){if(this instanceof ee)throw TypeError("Symbol is not a constructor");var ze=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),et=se(ze),It=function(Pt){this===U&&It.call(le,Pt),m(this,re)&&m(this[re],et)&&(this[re][et]=!1),Te(this,et,C(1,Pt))};return d&&_e&&Te(U,et,{configurable:!0,set:It}),Xe(et,ze)},P(ee[Le],"toString",function(){return $(this).tag}),P(ee,"withoutSetter",function(dt){return Xe(se(dt),dt)}),M.f=ke,k.f=G,x.f=Ze,T.f=A.f=We,L.f=ht,V.f=function(dt){return Xe(W(dt),dt)},d&&(Ce(ee[Le],"description",{configurable:!0,get:function(){return $(this).description}}),c||P(U,"propertyIsEnumerable",ke,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:ee}),Q(w(j),function(dt){B(dt)}),a({target:be,stat:!0,forced:!f},{for:function(dt){var ze=String(dt);if(m(ye,ze))return ye[ze];var et=ee(ze);return ye[ze]=et,D[et]=ze,et},keyFor:function(ze){if(!N(ze))throw TypeError(ze+" is not a symbol");if(m(D,ze))return D[ze]},useSetter:function(){_e=!0},useSimple:function(){_e=!1}}),a({target:"Object",stat:!0,forced:!f,sham:!d},{create:we,defineProperty:G,defineProperties:J,getOwnPropertyDescriptor:Ze}),a({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:We,getOwnPropertySymbols:ht}),a({target:"Object",stat:!0,forced:h(function(){L.f(1)})},{getOwnPropertySymbols:function(ze){return L.f(_(ze))}}),ce){var hn=!f||h(function(){var dt=ee();return ce([dt])!="[null]"||ce({a:dt})!="{}"||ce(Object(dt))!="{}"});a({target:"JSON",stat:!0,forced:hn},{stringify:function(ze,et,It){for(var Pt=[ze],Rr=1,I0;arguments.length>Rr;)Pt.push(arguments[Rr++]);if(I0=et,!(!g(et)&&ze===void 0||N(ze)))return v(et)||(et=function(UV,oh){if(typeof I0=="function"&&(oh=I0.call(this,UV,oh)),!N(oh))return oh}),Pt[1]=et,ce.apply(null,Pt)}})}ee[Le][Me]||z(ee[Le],Me,ee[Le].valueOf),Y(ee,be),de[re]=!0},a630:function(i,o,s){var a=s("23e7"),l=s("4df4"),u=s("1c7e"),c=!u(function(d){Array.from(d)});a({target:"Array",stat:!0,forced:c},{from:l})},a640:function(i,o,s){var a=s("d039");i.exports=function(l,u){var c=[][l];return!!c&&a(function(){c.call(null,u||function(){throw 1},1)})}},a691:function(i,o){var s=Math.ceil,a=Math.floor;i.exports=function(l){return isNaN(l=+l)?0:(l>0?a:s)(l)}},ab13:function(i,o,s){var a=s("b622"),l=a("match");i.exports=function(u){var c=/./;try{"/./"[u](c)}catch{try{return c[l]=!1,"/./"[u](c)}catch{}}return!1}},ac1f:function(i,o,s){var a=s("23e7"),l=s("9263");a({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},ad6d:function(i,o,s){var a=s("825a");i.exports=function(){var l=a(this),u="";return l.global&&(u+="g"),l.ignoreCase&&(u+="i"),l.multiline&&(u+="m"),l.dotAll&&(u+="s"),l.unicode&&(u+="u"),l.sticky&&(u+="y"),u}},ae40:function(i,o,s){var a=s("83ab"),l=s("d039"),u=s("5135"),c=Object.defineProperty,d={},f=function(p){throw p};i.exports=function(p,h){if(u(d,p))return d[p];h||(h={});
722var m=[][p],v=u(h,"ACCESSORS")?h.ACCESSORS:!1,g=u(h,0)?h[0]:f,y=u(h,1)?h[1]:void 0;return d[p]=!!m&&!l(function(){if(v&&!a)return!0;var _={length:-1};v?c(_,1,{enumerable:!0,get:f}):_[1]=1,m.call(_,g,y)})}},ae93:function(i,o,s){var a=s("e163"),l=s("9112"),u=s("5135"),c=s("b622"),d=s("c430"),f=c("iterator"),p=!1,h=function(){return this},m,v,g;[].keys&&(g=[].keys(),"next"in g?(v=a(a(g)),v!==Object.prototype&&(m=v)):p=!0),m==null&&(m={}),!d&&!u(m,f)&&l(m,f,h),i.exports={IteratorPrototype:m,BUGGY_SAFARI_ITERATORS:p}},b041:function(i,o,s){var a=s("00ee"),l=s("f5df");i.exports=a?{}.toString:function(){return"[object "+l(this)+"]"}},b0c0:function(i,o,s){var a=s("83ab"),l=s("9bf2").f,u=Function.prototype,c=u.toString,d=/^\s*function ([^ (]*)/,f="name";a&&!(f in u)&&l(u,f,{configurable:!0,get:function(){try{return c.call(this).match(d)[1]}catch{return""}}})},b622:function(i,o,s){var a=s("da84"),l=s("5692"),u=s("5135"),c=s("90e3"),d=s("4930"),f=s("fdbf"),p=l("wks"),h=a.Symbol,m=f?h:h&&h.withoutSetter||c;i.exports=function(v){return u(p,v)||(d&&u(h,v)?p[v]=h[v]:p[v]=m("Symbol."+v)),p[v]}},b64b:function(i,o,s){var a=s("23e7"),l=s("7b0b"),u=s("df75"),c=s("d039"),d=c(function(){u(1)});a({target:"Object",stat:!0,forced:d},{keys:function(p){return u(l(p))}})},b727:function(i,o,s){var a=s("0366"),l=s("44ad"),u=s("7b0b"),c=s("50c4"),d=s("65f0"),f=[].push,p=function(h){var m=h==1,v=h==2,g=h==3,y=h==4,_=h==6,b=h==5||_;return function(S,C,E,w){for(var T=u(S),A=l(T),L=a(C,E,3),x=c(A.length),k=0,M=w||d,z=m?M(S,x):v?M(S,0):void 0,P,H;x>k;k++)if((b||k in A)&&(P=A[k],H=L(P,k,T),h)){if(m)z[k]=H;else if(H)switch(h){case 3:return!0;case 5:return P;case 6:return k;case 2:f.call(z,P)}else if(y)return!1}return _?-1:g||y?y:z}};i.exports={forEach:p(0),map:p(1),filter:p(2),some:p(3),every:p(4),find:p(5),findIndex:p(6)}},c04e:function(i,o,s){var a=s("861d");i.exports=function(l,u){if(!a(l))return l;var c,d;if(u&&typeof(c=l.toString)=="function"&&!a(d=c.call(l))||typeof(c=l.valueOf)=="function"&&!a(d=c.call(l))||!u&&typeof(c=l.toString)=="function"&&!a(d=c.call(l)))return d;throw TypeError("Can't convert object to primitive value")}},c430:function(i,o){i.exports=!1},c6b6:function(i,o){var s={}.toString;i.exports=function(a){return s.call(a).slice(8,-1)}},c6cd:function(i,o,s){var a=s("da84"),l=s("ce4e"),u="__core-js_shared__",c=a[u]||l(u,{});i.exports=c},c740:function(i,o,s){var a=s("23e7"),l=s("b727").findIndex,u=s("44d2"),c=s("ae40"),d="findIndex",f=!0,p=c(d);d in[]&&Array(1)[d](function(){f=!1}),a({target:"Array",proto:!0,forced:f||!p},{findIndex:function(m){return l(this,m,arguments.length>1?arguments[1]:void 0)}}),u(d)},c8ba:function(i,o){var s;s=function(){return this}();try{s=s||new Function("return this")()}catch{typeof window=="object"&&(s=window)}i.exports=s},c975:function(i,o,s){var a=s("23e7"),l=s("4d64").indexOf,u=s("a640"),c=s("ae40"),d=[].indexOf,f=!!d&&1/[1].indexOf(1,-0)<0,p=u("indexOf"),h=c("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:f||!p||!h},{indexOf:function(v){return f?d.apply(this,arguments)||0:l(this,v,arguments.length>1?arguments[1]:void 0)}})},ca84:function(i,o,s){var a=s("5135"),l=s("fc6a"),u=s("4d64").indexOf,c=s("d012");i.exports=function(d,f){var p=l(d),h=0,m=[],v;for(v in p)!a(c,v)&&a(p,v)&&m.push(v);for(;f.length>h;)a(p,v=f[h++])&&(~u(m,v)||m.push(v));return m}},caad:function(i,o,s){var a=s("23e7"),l=s("4d64").includes,u=s("44d2"),c=s("ae40"),d=c("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:!d},{includes:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}}),u("includes")},cc12:function(i,o,s){var a=s("da84"),l=s("861d"),u=a.document,c=l(u)&&l(u.createElement);i.exports=function(d){return c?u.createElement(d):{}}},ce4e:function(i,o,s){var a=s("da84"),l=s("9112");i.exports=function(u,c){try{l(a,u,c)}catch{a[u]=c}return c}},d012:function(i,o){i.exports={}},d039:function(i,o){i.exports=function(s){try{return!!s()}catch{return!0}}},d066:function(i,o,s){var a=s("428f"),l=s("da84"),u=function(c){return typeof c=="function"?c:void 0};i.exports=function(c,d){return arguments.length<2?u(a[c])||u(l[c]):a[c]&&a[c][d]||l[c]&&l[c][d]}},d1e7:function(i,o,s){var a={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,u=l&&!a.call({1:2},1);o.f=u?function(d){var f=l(this,d);return!!f&&f.enumerable}:a},d28b:function(i,o,s){var a=s("746f");a("iterator")},d2bb:function(i,o,s){var a=s("825a"),l=s("3bbe");
722i.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,c={},d;try{d=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,d.call(c,[]),u=c instanceof Array}catch{}return function(p,h){return a(p),l(h),u?d.call(p,h):p.__proto__=h,p}}():void 0)},d3b7:function(i,o,s){var a=s("00ee"),l=s("6eeb"),u=s("b041");a||l(Object.prototype,"toString",u,{unsafe:!0})},d44e:function(i,o,s){var a=s("9bf2").f,l=s("5135"),u=s("b622"),c=u("toStringTag");i.exports=function(d,f,p){d&&!l(d=p?d:d.prototype,c)&&a(d,c,{configurable:!0,value:f})}},d58f:function(i,o,s){var a=s("1c0b"),l=s("7b0b"),u=s("44ad"),c=s("50c4"),d=function(f){return function(p,h,m,v){a(h);var g=l(p),y=u(g),_=c(g.length),b=f?_-1:0,S=f?-1:1;if(m<2)for(;;){if(b in y){v=y[b],b+=S;break}if(b+=S,f?b<0:_<=b)throw TypeError("Reduce of empty array with no initial value")}for(;f?b>=0:_>b;b+=S)b in y&&(v=h(v,y[b],b,g));return v}};i.exports={left:d(!1),right:d(!0)}},d784:function(i,o,s){s("ac1f");var a=s("6eeb"),l=s("d039"),u=s("b622"),c=s("9263"),d=s("9112"),f=u("species"),p=!l(function(){var y=/./;return y.exec=function(){var _=[];return _.groups={a:"7"},_},"".replace(y,"$<a>")!=="7"}),h=function(){return"a".replace(/./,"$0")==="$0"}(),m=u("replace"),v=function(){return/./[m]?/./[m]("a","$0")==="":!1}(),g=!l(function(){var y=/(?:)/,_=y.exec;y.exec=function(){return _.apply(this,arguments)};var b="ab".split(y);return b.length!==2||b[0]!=="a"||b[1]!=="b"});i.exports=function(y,_,b,S){var C=u(y),E=!l(function(){var k={};return k[C]=function(){return 7},""[y](k)!=7}),w=E&&!l(function(){var k=!1,M=/a/;return y==="split"&&(M={},M.constructor={},M.constructor[f]=function(){return M},M.flags="",M[C]=/./[C]),M.exec=function(){return k=!0,null},M[C](""),!k});if(!E||!w||y==="replace"&&!(p&&h&&!v)||y==="split"&&!g){var T=/./[C],A=b(C,""[y],function(k,M,z,P,H){return M.exec===c?E&&!H?{done:!0,value:T.call(M,z,P)}:{done:!0,value:k.call(z,M,P)}:{done:!1}},{REPLACE_KEEPS_$0:h,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:v}),L=A[0],x=A[1];a(String.prototype,y,L),a(RegExp.prototype,C,_==2?function(k,M){return x.call(k,this,M)}:function(k){return x.call(k,this)})}S&&d(RegExp.prototype[C],"sham",!0)}},d81d:function(i,o,s){var a=s("23e7"),l=s("b727").map,u=s("1dde"),c=s("ae40"),d=u("map"),f=c("map");a({target:"Array",proto:!0,forced:!d||!f},{map:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}})},da84:function(i,o,s){(function(a){var l=function(u){return u&&u.Math==Math&&u};i.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof a=="object"&&a)||Function("return this")()}).call(this,s("c8ba"))},dbb4:function(i,o,s){var a=s("23e7"),l=s("83ab"),u=s("56ef"),c=s("fc6a"),d=s("06cf"),f=s("8418");a({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(h){for(var m=c(h),v=d.f,g=u(m),y={},_=0,b,S;g.length>_;)S=v(m,b=g[_++]),S!==void 0&&f(y,b,S);return y}})},dbf1:function(i,o,s){(function(a){s.d(o,"a",function(){return u});function l(){return typeof window<"u"?window.console:a.console}var u=l()}).call(this,s("c8ba"))},ddb0:function(i,o,s){var a=s("da84"),l=s("fdbc"),u=s("e260"),c=s("9112"),d=s("b622"),f=d("iterator"),p=d("toStringTag"),h=u.values;for(var m in l){var v=a[m],g=v&&v.prototype;if(g){if(g[f]!==h)try{c(g,f,h)}catch{g[f]=h}if(g[p]||c(g,p,m),l[m]){for(var y in u)if(g[y]!==u[y])try{c(g,y,u[y])}catch{g[y]=u[y]}}}}},df75:function(i,o,s){var a=s("ca84"),l=s("7839");i.exports=Object.keys||function(c){return a(c,l)}},e01a:function(i,o,s){var a=s("23e7"),l=s("83ab"),u=s("da84"),c=s("5135"),d=s("861d"),f=s("9bf2").f,p=s("e893"),h=u.Symbol;if(l&&typeof h=="function"&&(!("description"in h.prototype)||h().description!==void 0)){var m={},v=function(){var C=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),E=this instanceof v?new h(C):C===void 0?h():h(C);return C===""&&(m[E]=!0),E};p(v,h);var g=v.prototype=h.prototype;g.constructor=v;var y=g.toString,_=String(h("test"))=="Symbol(test)",b=/^Symbol\((.*)\)[^)]+$/;f(g,"description",{configurable:!0,get:function(){var C=d(this)?this.valueOf():this,E=y.call(C);if(c(m,C))return"";var w=_?E.slice(7,-1):E.replace(b,"$1");return w===""?void 0:w}}),a({global:!0,forced:!0},{Symbol:v})}},e163:function(i,o,s){var a=s("5135"),l=s("7b0b"),u=s("f772"),c=s("e177"),d=u("IE_PROTO"),f=Object.prototype;i.exports=c?Object.getPrototypeOf:function(p){return p=l(p),a(p,d)?p[d]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?f:null}},e177:function(i,o,s){var a=s("d039");i.exports=!a(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},e260:function(i,o,s){var a=s("fc6a"),l=s("44d2"),u=s("3f8c"),c=s("69f3"),d=s("7dd0"),f="Array Iterator",p=c.set,h=c.getterFor(f);i.exports=d(Array,"Array",function(m,v){p(this,{type:f,target:a(m),index:0,kind:v})},function(){var m=h(this),v=m.target,g=m.kind,y=m.index++;return!v||y>=v.length?(m.target=void 0,{value:void 0,done:!0}):g=="keys"?{value:y,done:!1}:g=="values"?{value:v[y],done:!1}:{value:[y,v[y]],done:!1}},"values"),u.Arguments=u.Array,l("keys"),l("values"),l("entries")},e439:function(i,o,s){var a=s("23e7"),l=s("d039"),u=s("fc6a"),c=s("06cf").f,d=s("83ab"),f=l(function(){c(1)}),p=!d||f;a({target:"Object",stat:!0,forced:p,sham:!d},{getOwnPropertyDescriptor:function(m,v){return c(u(m),v)}})},e538:function(i,o,s){var a=s("b622");o.f=a},e893:function(i,o,s){var a=s("5135"),l=s("56ef"),u=s("06cf"),c=s("9bf2");i.exports=function(d,f){for(var p=l(f),h=c.f,m=u.f,v=0;v<p.length;v++){var g=p[v];a(d,g)||h(d,g,m(f,g))}}},e8b5:function(i,o,s){var a=s("c6b6");i.exports=Array.isArray||function(u){return a(u)=="Array"}},e95a:function(i,o,s){var a=s("b622"),l=s("3f8c"),u=a("iterator"),c=Array.prototype;i.exports=function(d){return d!==void 0&&(l.Array===d||c[u]===d)}},f5df:function(i,o,s){var a=s("00ee"),l=s("c6b6"),u=s("b622"),c=u("toStringTag"),d=l(function(){return arguments}())=="Arguments",f=function(p,h){try{return p[h]}catch{}};i.exports=a?l:function(p){var h,m,v;return p===void 0?"Undefined":p===null?"Null":typeof(m=f(h=Object(p),c))=="string"?m:d?l(h):(v=l(h))=="Object"&&typeof h.callee=="function"?"Arguments":v}},f772:function(i,o,s){var a=s("5692"),l=s("90e3"),u=a("keys");i.exports=function(c){return u[c]||(u[c]=l(c))}}
722,fb15:function(i,o,s){if(s.r(o),typeof window<"u"){var a=window.document.currentScript;{var l=s("8875");a=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var u=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(s.p=u[1])}s("99af"),s("4de4"),s("4160"),s("c975"),s("d81d"),s("a434"),s("159b"),s("a4d3"),s("e439"),s("dbb4"),s("b64b");function c(N,G,J){return G in N?Object.defineProperty(N,G,{value:J,enumerable:!0,configurable:!0,writable:!0}):N[G]=J,N}function d(N,G){var J=Object.keys(N);if(Object.getOwnPropertySymbols){var we=Object.getOwnPropertySymbols(N);G&&(we=we.filter(function(ke){return Object.getOwnPropertyDescriptor(N,ke).enumerable})),J.push.apply(J,we)}return J}function f(N){for(var G=1;G<arguments.length;G++){var J=arguments[G]!=null?arguments[G]:{};G%2?d(Object(J),!0).forEach(function(we){c(N,we,J[we])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(J)):d(Object(J)).forEach(function(we){Object.defineProperty(N,we,Object.getOwnPropertyDescriptor(J,we))})}return N}function p(N){if(Array.isArray(N))return N}s("e01a"),s("d28b"),s("e260"),s("d3b7"),s("3ca3"),s("ddb0");function h(N,G){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(N)))){var J=[],we=!0,ke=!1,Ze=void 0;try{for(var We=N[Symbol.iterator](),ht;!(we=(ht=We.next()).done)&&(J.push(ht.value),!(G&&J.length===G));we=!0);}catch(hn){ke=!0,Ze=hn}finally{try{!we&&We.return!=null&&We.return()}finally{if(ke)throw Ze}}return J}}s("a630"),s("fb6a"),s("b0c0"),s("25f0");function m(N,G){(G==null||G>N.length)&&(G=N.length);for(var J=0,we=new Array(G);J<G;J++)we[J]=N[J];return we}function v(N,G){if(N){if(typeof N=="string")return m(N,G);var J=Object.prototype.toString.call(N).slice(8,-1);if(J==="Object"&&N.constructor&&(J=N.constructor.name),J==="Map"||J==="Set")return Array.from(N);if(J==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(J))return m(N,G)}}function g(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. 723In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function y(N,G){return p(N)||h(N,G)||v(N,G)||g()}function _(N){if(Array.isArray(N))return m(N)}function b(N){if(typeof Symbol<"u"&&Symbol.iterator in Object(N))return Array.from(N)}function S(){throw new TypeError(`Invalid attempt to spread non-iterable instance. 724In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function C(N){return _(N)||b(N)||v(N)||S()}var E=s("a352"),w=s.n(E);function T(N){N.parentElement!==null&&N.parentElement.removeChild(N)}function A(N,G,J){var we=J===0?N.children[0]:N.children[J-1].nextSibling;N.insertBefore(G,we)}var L=s("dbf1");s("13d5"),s("4fad"),s("ac1f"),s("5319");function x(N){var G=Object.create(null);return function(we){var ke=G[we];return ke||(G[we]=N(we))}}var k=/-(\w)/g,M=x(function(N){return N.replace(k,function(G,J){return J.toUpperCase()})});s("5db7"),s("73d9");var z=["Start","Add","Remove","Update","End"],P=["Choose","Unchoose","Sort","Filter","Clone"],H=["Move"],q=[H,z,P].flatMap(function(N){return N}).map(function(N){return"on".concat(N)}),de={manage:H,manageAndEmit:z,emit:P};function se(N){return q.indexOf(N)!==-1}s("caad"),s("2ca0");var W=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function V(N){return W.includes(N)}function B(N){return["transition-group","TransitionGroup"].includes(N)}function Y(N){return["id","class","role","style"].includes(N)||N.startsWith("data-")||N.startsWith("aria-")||N.startsWith("on")}function F(N){return N.reduce(function(G,J){var we=y(J,2),ke=we[0],Ze=we[1];return G[ke]=Ze,G},{})}function Q(N){var G=N.$attrs,J=N.componentData,we=J===void 0?{}:J,ke=F(Object.entries(G).filter(function(Ze){var We=y(Ze,2),ht=We[0];return We[1],Y(ht)}));return f(f({},ke),we)}function re(N){var G=N.$attrs,J=N.callBackBuilder,we=F(be(G));Object.entries(J).forEach(function(Ze){var We=y(Ze,2),ht=We[0],hn=We[1];de[ht].forEach(function(dt){we["on".concat(dt)]=hn(dt)})});var ke="[data-draggable]".concat(we.draggable||"");return f(f({},we),{},{draggable:ke})}function be(N){return Object.entries(N).filter(function(G){var J=y(G,2),we=J[0];return J[1],!Y(we)}).map(function(G){var J=y(G,2),we=J[0],ke=J[1];return[M(we),ke]}).filter(function(G){var J=y(G,2),we=J[0];return J[1],!se(we)})}s("c740");function Le(N,G){if(!(N instanceof G))throw new TypeError("Cannot call a class as a function")}function Me(N,G){for(var J=0;J<G.length;J++){var we=G[J];we.enumerable=we.enumerable||!1,we.configurable=!0,"value"in we&&(we.writable=!0),Object.defineProperty(N,we.key,we)}}function He(N,G,J){return G&&Me(N.prototype,G),J&&Me(N,J),N}var $=function(G){var J=G.el;return J},U=function(G,J){return G.__draggable_context=J},ee=function(G){return G.__draggable_context},ce=function(){function N(G){var J=G.nodes,we=J.header,ke=J.default,Ze=J.footer,We=G.root,ht=G.realList;Le(this,N),this.defaultNodes=ke,this.children=[].concat(C(we),C(ke),C(Ze)),this.externalComponent=We.externalComponent,this.rootTransition=We.transition,this.tag=We.tag,this.realList=ht}return He(N,[{key:"render",value:function(J,we){var ke=this.tag,Ze=this.children,We=this._isRo
724otComponent,ht=We?{default:function(){return Ze}}:Ze;return J(ke,we,ht)}},{key:"updated",value:function(){var J=this.defaultNodes,we=this.realList;J.forEach(function(ke,Ze){U($(ke),{element:we[Ze],index:Ze})})}},{key:"getUnderlyingVm",value:function(J){return ee(J)}},{key:"getVmIndexFromDomIndex",value:function(J,we){var ke=this.defaultNodes,Ze=ke.length,We=we.children,ht=We.item(J);if(ht===null)return Ze;var hn=ee(ht);if(hn)return hn.index;if(Ze===0)return 0;var dt=$(ke[0]),ze=C(We).findIndex(function(et){return et===dt});return J<ze?0:Ze}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),N}(),me=s("8bbf");function Ce(N,G){var J=N[G];return J?J():[]}function xe(N){var G=N.$slots,J=N.realList,we=N.getKey,ke=J||[],Ze=["header","footer"].map(function(et){return Ce(G,et)}),We=y(Ze,2),ht=We[0],hn=We[1],dt=G.item;if(!dt)throw new Error("draggable element must have an item slot");var ze=ke.flatMap(function(et,It){return dt({element:et,index:It}).map(function(Pt){return Pt.key=we(et),Pt.props=f(f({},Pt.props||{}),{},{"data-draggable":!0}),Pt})});if(ze.length!==ke.length)throw new Error("Item slot must have only one child");return{header:ht,footer:hn,default:ze}}function Ae(N){var G=B(N),J=!V(N)&&!G;return{transition:G,externalComponent:J,tag:J?Object(me.resolveComponent)(N):G?me.TransitionGroup:N}}function te(N){var G=N.$slots,J=N.tag,we=N.realList,ke=N.getKey,Ze=xe({$slots:G,realList:we,getKey:ke}),We=Ae(J);return new ce({nodes:Ze,root:We,realList:we})}function le(N,G){var J=this;Object(me.nextTick)(function(){return J.$emit(N.toLowerCase(),G)})}function ye(N){var G=this;return function(J,we){if(G.realList!==null)return G["onDrag".concat(N)](J,we)}}function D(N){var G=this,J=ye.call(this,N);return function(we,ke){J.call(G,we,ke),le.call(G,N,we)}}var j=null,Z={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(G){return G}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},_e=["update:modelValue","change"].concat(C([].concat(C(de.manageAndEmit),C(de.emit)).map(function(N){return N.toLowerCase()}))),Te=Object(me.defineComponent)({name:"draggable",inheritAttrs:!1,props:Z,emits:_e,data:function(){return{error:!1}},render:function(){try{this.error=!1;var G=this.$slots,J=this.$attrs,we=this.tag,ke=this.componentData,Ze=this.realList,We=this.getKey,ht=te({$slots:G,tag:we,realList:Ze,getKey:We});this.componentStructure=ht;var hn=Q({$attrs:J,componentData:ke});return ht.render(me.h,hn)}catch(dt){return this.error=!0,Object(me.h)("pre",{style:{color:"red"}},dt.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&L.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var G=this;if(!this.error){var J=this.$attrs,we=this.$el,ke=this.componentStructure;ke.updated();var Ze=re({$attrs:J,callBackBuilder:{manageAndEmit:function(hn){return D.call(G,hn)},emit:function(hn){return le.bind(G,hn)},manage:function(hn){return ye.call(G,hn)}}}),We=we.nodeType===1?we:we.parentElement;this._sortable=new w.a(We,Ze),this.targetDomElement=We,We.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var G=this.list;return G||this.modelValue},getKey:function(){var G=this.itemKey;return typeof G=="function"?G:function(J){return J[G]}}},watch:{$attrs:{handler:function(G){var J=this._sortable;J&&be(G).forEach(function(we){var ke=y(we,2),Ze=ke[0],We=ke[1];J.option(Ze,We)})},deep:!0}},methods:{getUnderlyingVm:function(G){return this.componentStructure.getUnderlyingVm(G)||null},getUnderlyingPotencialDraggableComponent:function(G){return G.__draggable_component__},emitChanges:function(G){var J=this;Object(me.nextTick)(function(){return J.$emit("change",G)})},alterList:function(G){if(this.list){G(this.list);return}var J=C(this.modelValue);G(J),this.$emit("update:modelValue",J)}
724,spliceList:function(){var G=arguments,J=function(ke){return ke.splice.apply(ke,C(G))};this.alterList(J)},updatePosition:function(G,J){var we=function(Ze){return Ze.splice(J,0,Ze.splice(G,1)[0])};this.alterList(we)},getRelatedContextFromMoveEvent:function(G){var J=G.to,we=G.related,ke=this.getUnderlyingPotencialDraggableComponent(J);if(!ke)return{component:ke};var Ze=ke.realList,We={list:Ze,component:ke};if(J!==we&&Ze){var ht=ke.getUnderlyingVm(we)||{};return f(f({},ht),We)}return We},getVmIndexFromDomIndex:function(G){return this.componentStructure.getVmIndexFromDomIndex(G,this.targetDomElement)},onDragStart:function(G){this.context=this.getUnderlyingVm(G.item),G.item._underlying_vm_=this.clone(this.context.element),j=G.item},onDragAdd:function(G){var J=G.item._underlying_vm_;if(J!==void 0){T(G.item);var we=this.getVmIndexFromDomIndex(G.newIndex);this.spliceList(we,0,J);var ke={element:J,newIndex:we};this.emitChanges({added:ke})}},onDragRemove:function(G){if(A(this.$el,G.item,G.oldIndex),G.pullMode==="clone"){T(G.clone);return}var J=this.context,we=J.index,ke=J.element;this.spliceList(we,1);var Ze={element:ke,oldIndex:we};this.emitChanges({removed:Ze})},onDragUpdate:function(G){T(G.item),A(G.from,G.item,G.oldIndex);var J=this.context.index,we=this.getVmIndexFromDomIndex(G.newIndex);this.updatePosition(J,we);var ke={element:this.context.element,oldIndex:J,newIndex:we};this.emitChanges({moved:ke})},computeFutureIndex:function(G,J){if(!G.element)return 0;var we=C(J.to.children).filter(function(ht){return ht.style.display!=="none"}),ke=we.indexOf(J.related),Ze=G.component.getVmIndexFromDomIndex(ke),We=we.indexOf(j)!==-1;return We||!J.willInsertAfter?Ze:Ze+1},onDragMove:function(G,J){var we=this.move,ke=this.realList;if(!we||!ke)return!0;var Ze=this.getRelatedContextFromMoveEvent(G),We=this.computeFutureIndex(Ze,G),ht=f(f({},this.context),{},{futureIndex:We}),hn=f(f({},G),{},{relatedContext:Ze,draggedContext:ht});return we(hn,J)},onDragEnd:function(){j=null}}}),Xe=Te;o.default=Xe},fb6a:function(i,o,s){var a=s("23e7"),l=s("861d"),u=s("e8b5"),c=s("23cb"),d=s("50c4"),f=s("fc6a"),p=s("8418"),h=s("b622"),m=s("1dde"),v=s("ae40"),g=m("slice"),y=v("slice",{ACCESSORS:!0,0:0,1:2}),_=h("species"),b=[].slice,S=Math.max;a({target:"Array",proto:!0,forced:!g||!y},{slice:function(E,w){var T=f(this),A=d(T.length),L=c(E,A),x=c(w===void 0?A:w,A),k,M,z;if(u(T)&&(k=T.constructor,typeof k=="function"&&(k===Array||u(k.prototype))?k=void 0:l(k)&&(k=k[_],k===null&&(k=void 0)),k===Array||k===void 0))return b.call(T,L,x);for(M=new(k===void 0?Array:k)(S(x-L,0)),z=0;L<x;L++,z++)L in T&&p(M,z,T[L]);return M.length=z,M}})},fc6a:function(i,o,s){var a=s("44ad"),l=s("1d80");i.exports=function(u){return a(l(u))}},fdbc:function(i,o){i.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(i,o,s){var a=s("4930");i.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(xV);var FV=xV.exports;const w9e=Gc(FV),LUe=GV({__proto__:null,default:w9e},[FV]),T9e=(e,t)=>{var n=!1;return()=>{n||(e.call(),n=!0,window.setTimeout(()=>{n=!1},t))}};const A9e={props:{mdFixed:Boolean,mdCentered:Boolean,mdRight:Boolean,mdDynamicHeight:{type:Boolean,default:!0},mdElevation:{type:[String,Number],default:0},mdAuto:{type:Boolean,default:!1},mdDuration:{type:Number,default:5e3},mdControls:{type:Boolean,default:!1},mdInfinite:{type:Boolean,default:!1},maxBoardWidth:Number,mdSwipeable:Boolean,mdSwipeDistance:{type:Number,default:100},mdLabel:{type:Object,default:()=>({})},nextHandler:{type:Function,default:()=>Promise.resolve()},btnLabel:String,isNextDisabled:{default:!1,type:Boolean},isNextClickable:{default:!0,type:Boolean}},mixins:[Hn],data:()=>({boardList:{},activeBoard:null,activeBoardNumber:0,hasIcons:!1,hasLabel:!1,transitionControl:null,transitionOff:!1,contentHeight:"0px",contentWidth:"0px",autoTransition:null,showDotControls:!0,mdiChevronRight:jl,mdiChevronLeft:gp,mdiRecord:jZ}),computed:{boardClasses(){return{"md-dynamic-height":this.mdDynamicHeight,"md-transition-off":this.transitionOff}},navigationClasses(){return{"md-has-icon":this.hasIcons,"md-has-label":this.hasLabel,"md-fixed":this.mdFixed,"md-right":!this.mdCentered&&this.mdRight,"md-centered":this.mdCentered||this.mdFixed}},indicatorClasses(){let e=this.lastIndicatorNumber>this.activeBoardNumber;return this.lastIndicatorNumber=this.activeBoardNumber,{"md-transition-off":this.transitionOff,"md-to-right":!e,"md-to-left":e}}},methods:{getHeaderClass(e){return{"md-active":this.activeBoard===e.id,"md-disabled":e.disabled}},registerBoard(e){this.boardList[e.id]=e},unregisterBoard(e){delete this.boardList[e.id]},updateBoard(e){if(this.registerBoard(e),this.calculateShowControlDots(),e.active){if(!e.disabled)this.setActiveBoard(e);else if(Object.keys(this.boardList).length){let t=Object.keys(this.boardList),n=t.indexOf(e.id)+1,r=t[n];r?this.setActiveBoard(this.boardList[r]):this.setActiveBoard(this.boardList[0])}}},observeElementChanges(){MutationObserver&&this.$refs.boardsContent&&(this.parentObserver=new MutationObserver(T9e(this.calculateOnWatch,50)),this.parentObserver.observe(this.$refs.boardsContent,{childList:!0,attributes:!0,subtree:!0}))},getBoardIndex(e){return Object.keys(this.boardList).indexOf(e)},calculateIndicatorPos(){if(this.$refs.boardHeader&&this.$refs.boardHeader[this.activeBoardNumber]){const e=this.$el.offsetWidth,t=this.$refs.boardHeader[this.activeBoardNumber],n=t.offsetLeft,r=e-n-t.offsetWidth;this.$refs.indicator.style.left=n+"px",this.$refs.indicator.style.right=r+"px"}},calculateBoardsWidthAndPosition(){const e=this.maxBoardWidth&&this.maxBoardWidth<this.$el.offsetWidth?this.maxBoardWidth:this.$el.offsetWidth;let t=0;this.contentWidth=e*this.activeBoardNumber+"px";for(const n in this.boardList){const r=this.boardList[n];r.ref.width=e+"px",r.ref.left=e*t+"px",t++}},calculateContentHeight(){this.$nextTick(()=>
724{if(Object.keys(this.boardList).length){let e=this.boardList[this.activeBoard].ref.$el.offsetHeight;this.contentHeight=e+"px"}})},calculatePosition(){window.requestAnimationFrame(()=>{this._destroyed||(this.calculateIndicatorPos(),this.calculateBoardsWidthAndPosition(),this.calculateContentHeight())})},debounceTransition(){window.clearTimeout(this.transitionControl),this.transitionControl=window.setTimeout(()=>{this.calculatePosition(),this.transitionOff=!1},200)},calculateOnWatch(){this.calculatePosition(),this.debounceTransition()},calculateOnResize(){this.transitionOff=!0,this.calculateOnWatch(),this.calculateShowControlDots()},calculateShowControlDots(){},start(){this.autoTransition&&window.clearInterval(this.autoTransition),this.autoTransition=window.setInterval(()=>{this.moveNextBoard()},this.mdDuration)},setActiveBoardByIndex(e){let t=Object.keys(this.boardList),n=t&&t[e];n&&this.setActiveBoard(this.boardList[n],!0)},setActiveBoard(e,t){this.mdAuto&&t&&this.start(),this.hasIcons=!!e.icon,this.hasLabel=!!e.label,this.activeBoard=e.id,this.activeBoardNumber=this.getBoardIndex(this.activeBoard),this.calculatePosition(),this.$emit("change",this.activeBoardNumber)},movePrevBoard(){let e=Object.keys(this.boardList),t=e.indexOf(this.activeBoard)-1,n=e[t];if(n)this.setActiveBoard(this.boardList[n],!0);else if(this.mdInfinite){let r=Object.keys(this.boardList)[Object.keys(this.boardList).length-1];this.setActiveBoard(this.boardList[r],!0)}this.$emit("prev")},moveNextBoard(){let e=Object.keys(this.boardList),t=e.indexOf(this.activeBoard)+1,n=e[t];if(n)this.setActiveBoard(this.boardList[n],!0);else if(this.mdInfinite){let r=Object.keys(this.boardList)[0];if(!this.boardList||!this.boardList[r])return;this.setActiveBoard(this.boardList[r],!0)}this.$emit("next")},moveNextBoardHandler(){this.nextHandler().then(()=>{this.moveNextBoard()}).catch(()=>{})},moveDotsBoardHandler(e,t){this.nextHandler().then(()=>{this.setActiveBoard(e,t)})},isHorizontallyInside(e){return e>this.mountedRect.left&&e<this.mountedRect.left+this.mountedRect.width},isVerticallyInside(e){return e>this.mountedRect.top&&e<this.mountedRect.top+this.mountedRect.height},handleTouchStart(e){this.mountedRect=this.$refs.boardsContent.getBoundingClientRect();const t=e.changedTouches[0].clientX,n=e.changedTouches[0].clientY;this.isHorizontallyInside(t)&&this.isVerticallyInside(n)&&(this.initialTouchPosition=t,this.canMove=!0)},handleTouchEnd(e){if(this.canMove){const t=e.changedTouches[0].clientX,n=this.initialTouchPosition-t,r=n>0?"moveNextBoard":"movePrevBoard";Math.abs(n)>this.mdSwipeDistance&&this[r](),this.canMove=!1,this.initialTouchPosition=null}}},mounted(){this.$nextTick(()=>{if(this.observeElementChanges(),window.addEventListener("resize",this.calculateOnResize),Object.keys(this.boardList).length&&!this.activeBoard){let e=Object.keys(this.boardList)[0];this.setActiveBoard(this.boardList[e])}this.mdSwipeable&&(this.mountedRect=this.$refs.boardsContent.getBoundingClientRect(),this.initialTouchPosition=null,this.canMove=!1,document.addEventListener("touchstart",this.handleTouchStart),document.addEventListener("touchend",this.handleTouchEnd)),this.mdAuto&&this.start()})},beforeUnmount(){this.parentObserver&&this.parentObserver.disconnect(),this.autoTransition&&window.clearTimeout(this.autoTransition),window.removeEventListener("resize",this.calculateOnResize),this.mdSwipeable&&(document.removeEventListener("touchstart",this.handleTouchStart),document.removeEventListener("touchend",this.handleTouchEnd)),this._destroyed=!0}},I9e={class:"md-boards-navigation-container"},x9e={key:0,style:{flex:"1"}},L9e={key:1,class:"md-board-header-container"},k9e=O("span",{style:{flex:"1"}},null,-1),M9e={key:2,style:{display:"flex"}},R9e=["disabled","onClick","aria-label"],P9e={class:"md-board-header-container"},O9e=O("span",{style:{flex:"1"}},null,-1),$9e={key:1,class:"md-board-header-container"},N9e={key:4,style:{flex:"1"}},H9e={ref:"indicator"};function D9e(e,t,n,r,i,o){const s=Zr,a=Mr;return I(),R("div",{class:Ie(["md-boards",[e.themeClass,o.boardClasses]])},[O("div",{class:"md-boards-content",ref:"boardsContent",style:vt({height:e.contentHeight})},[O("div",{class:"md-boards-wrapper",style:vt({transform:`translate3D(-${e.contentWidth}, 0, 0)`})},[ge(e.$slots,"default")],4)],4),O("div",I9e,[ge(e.$slots,"navigation-extra"),O("nav",{class:Ie(["md-boards-navigation",o.navigationClasses]),ref:"boardNavigation"},[n.mdControls?K("",!0):(I(),R("span",x9e)),n.mdControls?(I(),Se(a,{key:1,"aria-label":n.btnLabel,onClick:t[0]||(t[0]=l=>o.movePrevBoard())},{default:pe(()=>[n.mdLabel.back?(I(),R("div",{key:0,class:Ie(["md-board-header-container",{"fixed-width":n.mdLabel.back}])},he(n.mdLabel.back),3)):(I(),R("div",L9e,[ae(s,{class:"md-control",mdSvg
724:e.mdiChevronLeft},null,8,["mdSvg"])]))]),_:1},8,["aria-label"])):K("",!0),k9e,e.showDotControls?(I(),R("div",M9e,[(I(!0),R(Je,null,Dt(e.boardList,l=>(I(),R("button",{key:l.id,type:"button",class:Ie(["md-board-header",o.getHeaderClass(l)]),disabled:l.disabled||null,onClick:u=>o.moveDotsBoardHandler(l,!0),ref_for:!0,ref:"boardHeader","aria-label":n.btnLabel},[O("div",P9e,[ae(s,{mdSvg:e.mdiRecord},null,8,["mdSvg"])])],10,R9e))),128))])):K("",!0),O9e,n.mdControls?(I(),Se(a,{key:3,disabled:n.isNextDisabled&&!n.isNextClickable,class:Ie({"custom-disabled":n.isNextDisabled&&n.isNextClickable}),onClick:t[1]||(t[1]=l=>o.moveNextBoardHandler())},{default:pe(()=>[n.mdLabel.next?(I(),R("div",{key:0,class:Ie(["md-board-header-container",{"fixed-width":n.mdLabel.next}])},he(n.mdLabel.next),3)):(I(),R("div",$9e,[ae(s,{class:"md-control",mdSvg:e.mdiChevronRight},null,8,["mdSvg"])]))]),_:1},8,["disabled","class"])):K("",!0),n.mdControls?K("",!0):(I(),R("span",N9e)),O("span",H9e,null,512)],2)])],2)}const kUe=Ye(A9e,[["render",D9e]]),V9e={props:{id:[String,Number],mdLabel:[String,Number],mdIcon:String,mdActive:Boolean,mdDisabled:Boolean,mdTooltip:String,mdTooltipDelay:{type:String,default:"0"},mdTooltipDirection:{type:String,default:"bottom"}},data(){return{mounted:!1,boardId:this.id||"board-"+AV(),width:"0px",left:"0px"}},watch:{mdActive(){this.updateBoardData()},mdDisabled(){this.updateBoardData()},mdIcon(){this.updateBoardData()},mdLabel(){this.updateBoardData()},mdTooltip(){this.updateBoardData()},mdTooltipDelay(){this.updateBoardData()},mdTooltipDirection(){this.updateBoardData()}},computed:{styles(){return{width:this.width,left:this.left}}},methods:{getBoardData(){return{id:this.boardId,label:this.mdLabel,icon:this.mdIcon,active:this.mdActive,disabled:this.mdDisabled,tooltip:this.mdTooltip,tooltipDelay:this.mdTooltipDelay,tooltipDirection:this.mdTooltipDirection,ref:this}},updateBoardData(){this.parentBoards.updateBoard(this.getBoardData())}},mounted(){let e=this.getBoardData();if(this.parentBoards=Ea(this.$parent,"md-boards"),!this.parentBoards)throw new Error("You must wrap the md-board in a md-boards");this.mounted=!0,this.parentBoards.updateBoard(e),this.mdActive&&this.parentBoards.setActiveBoard(e)},beforeUnmount(){this.parentBoards.unregisterBoard(this.getBoardData())}},F9e=["id"];function B9e(e,t,n,r,i,o){return I(),R("div",{class:"md-board",id:i.boardId,style:vt(o.styles)},[ge(e.$slots,"default")],12,F9e)}const MUe=Ye(V9e,[["render",B9e]]);function U9e(e){throw new Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var BV={exports:{}};(function(e,t){(function(n,r){typeof U9e=="function"?e.exports=r():n.pluralize=r()})(zi,function(){var n=[],r=[],i={},o={},s={};function a(m){return typeof m=="string"?new RegExp("^"+m+"$","i"):m}function l(m,v){return m===v?v:m===m.toLowerCase()?v.toLowerCase():m===m.toUpperCase()?v.toUpperCase():m[0]===m[0].toUpperCase()?v.charAt(0).toUpperCase()+v.substr(1).toLowerCase():v.toLowerCase()}function u(m,v){return m.replace(/\$(\d{1,2})/g,function(g,y){return v[y]||""})}function c(m,v){return m.replace(v[0],function(g,y){var _=u(v[1],arguments);return l(g===""?m[y-1]:g,_)})}function d(m,v,g){if(!m.length||i.hasOwnProperty(m))return v;for(var y=g.length;y--;){var _=g[y];if(_[0].test(v))return c(v,_)}return v}function f(m,v,g){return function(y){var _=y.toLowerCase();return v.hasOwnProperty(_)?l(y,_):m.hasOwnProperty(_)?l(y,m[_]):d(_,y,g)}}function p(m,v,g,y){return function(_){var b=_.toLowerCase();return v.hasOwnProperty(b)?!0:m.hasOwnProperty(b)?!1:d(b,b,g)===b}}function h(m,v,g){var y=v===1?h.singular(m):h.plural(m);return(g?v+" ":"")+y}return h.plural=f(s,o,n),h.isPlural=p(s,o,n),h.singular=f(o,s,r),h.isSingular=p(o,s,r),h.addPluralRule=function(m,v){n.push([a(m),v])},h.addSingularRule=function(m,v){r.push([a(m),v])},h.addUncountableRule=function(m){if(typeof m=="string"){i[m.toLowerCase()]=!0;return}h.addPluralRule(m,"$0"),h.addSingularRule(m,"$0")},h.addIrregularRule=function(m,v){v=v.toLowerCase(),m=m.toLowerCase(),s[m]=v,o[v]=m},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEac
724h(function(m){return h.addIrregularRule(m[0],m[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(m){return h.addPluralRule(m[0],m[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(m){return h.addSingularRule(m[0],m[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(h.addUncountableRule),h})})(BV);var j9e=BV.exports;const RUe=Gc(j9e),W9e={name:"tdlNavBar",mixins:[Hn],props:{items:{type:Array,default:()=>[]},brandedLogo:{type:String,default:"https://static.voice123.com/static/logo-branded-v123.png"},logo:{type:String,default:"https://voice123.com/favicon.ico"},useSimpleSubmenus:{type:Boolean,default:!1},displayOnHover:{type:Boolean,default:!1}},setup(e,{emit:t}){const n=ie(!0),r=ie(null),i=ie(null),o=ie(null),s=ie(!1),a=ie(!1),l=ie(0),u=ie(0),c=ie(5),d=ie(null),f=ie(null),p=ie(null),h=ie(0),m={mdiChevronDown:p1,mdiChevronDoubleUp:CZ,mdiCircle:wZ,mdiChevronLeft:gp,mdiChevronRight:jl,mdiMenu:PP},v=()=>{t("toggle-menu")},g=()=>{var P,H;if(s.value){if(!((P=i.value)!=null&&P.options)){a.value=!0,o.value=[];return}l.value=Math.ceil(i.value.options.length/c.value),o.value=i.value.options.slice((u.value-1)*c.value,u.value*c.value),a.value=l.value===1}else o.value=(H=i.value)==null?void 0:H.options},y=(P,H)=>
724{if(!e.useSimpleSubmenus||!p.value)return;const q=P||p.value.querySelectorAll(".v123-navbar-menu-item")[H];if(!q)return;const W=(q.querySelector(".v123-item-text")||q).getBoundingClientRect(),B=(f.value||p.value).getBoundingClientRect(),Y=f.value?Number.parseFloat(window.getComputedStyle(f.value).paddingLeft||"0"):0;h.value=Math.max(W.left-B.left-Y,0)},_=(P,H,q)=>{r.value={...P,index:H},P.subMenus&&P.subMenus.length&&(i.value=P.subMenus[0]),u.value=1,e.useSimpleSubmenus&&(y(q.currentTarget,H),Lt(()=>y(null,H))),e.useSimpleSubmenus||g()},b=P=>!!(P.subMenus&&P.subMenus.length),S=(P,H,q,de=!1)=>{var se;if(!b(P)){r.value=null;return}if(((se=r.value)==null?void 0:se.index)===H){de&&(r.value=null);return}_(P,H,q)},C=(P,H,q)=>{P.action&&(typeof P.action=="string"?window.open(P.action,"_blank"):typeof P.action=="function"&&P.action()),S(P,H,q,!0)},E=(P,H,q)=>{e.displayOnHover&&S(P,H,q)},w=()=>{e.displayOnHover&&(r.value=null)},T=P=>{i.value=P,P.action&&typeof P.action=="function"&&P.action(),e.useSimpleSubmenus||g()},A=P=>{f.value&&!f.value.contains(P.target)&&p&&!p.value.contains(P.target)&&(r.value=null)},L=P=>{P.action&&typeof P.action=="function"&&P.action()},x=()=>{u.value!==l.value&&(u.value=u.value+1,g())},k=()=>{u.value!==1&&(u.value=u.value-1,g())},M=()=>{var P;s.value=d.value.matches,s.value?c.value=3:c.value=5,!e.useSimpleSubmenus&&i.value&&i.value.options&&g(),e.useSimpleSubmenus&&((P=r.value)==null?void 0:P.index)!==void 0&&y(null,r.value.index)},z=()=>{if(o.value&&o.value.length<c.value){const P=c.value-o.value.length;return Array.from({length:P},(H,q)=>q)}else if(!o.value)return Array.from({length:c.value},(P,H)=>H);return[]};return $n(()=>{d.value=window.matchMedia("(max-width: 1280px)"),d.value.addEventListener("change",M),M(),document.addEventListener("click",A)}),Rn(()=>{d.value.removeEventListener("change",M),document.removeEventListener("click",A)}),{openDropdownMenu:n,icons:m,selectedMenuItem:r,selectedSubMenuitem:i,displayedOptions:o,useCarousel:s,hideControlButton:a,useSimpleSubmenus:e.useSimpleSubmenus,displayOnHover:e.displayOnHover,simpleSubmenuOffset:h,dropDownContainer:f,navbar:p,onSelectMenuItem:C,onHoverMenuItem:E,onNavbarMouseLeave:w,onSelectSubmenu:T,onClickOption:L,onHamburguerMenuClick:v,onNextPage:x,onPreviousPage:k,renderGhostCards:z}}};const G9e={class:"v123-navbar"},z9e={class:"v123-navbar-logo"},q9e={width:"24",height:"24",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},K9e=["d"],X9e=["src"],Z9e=["src"],Y9e={key:0,class:"v123-navbar-menu"},J9e=["onMouseenter","onClick"],Q9e={class:"v123-item-text"},eNe={key:0,class:"v123-item-icon",width:"24",height:"24",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},tNe=["d"],nNe={class:"v123-navbar-actions"},rNe={class:"v123-simple-options"},iNe=["innerHTML"],oNe=["onClick"],sNe={key:1,class:"v123-dropdown-panel",role:"region","aria-label":"Voice Filters Panel"},aNe={class:"v123-list-item-content"},lNe=["innerHTML"],uNe=["onClick"],cNe={class:"v123-category-container"},dNe={class:"v123-cards-container"},fNe={width:"24",height:"24",viewBox:"0 0 24 24",role:"img","aria-hidden":"true"},pNe=["d"],hNe={class:"v123-categories"},mNe=["onClick"],vNe=["innerHTML"],gNe={class:"v123-card-title"},yNe={key:1,class:"v123-card-description"},bNe=O("div",{class:"v123-category-ghost-card"},null,-1),_Ne=[bNe],SNe={width:"24",height:"24",viewBox:"0 0 24 24",preserveAspectRatio:"xMidYMid",role:"img","aria-hidden":"true"},ENe=["d"],CNe=["href"],wNe={key:2,class:"v123-actions-divider"},TNe={key:3,class:"v123-navbar-actions-footer"};function ANe(e,t,n,r,i,o){var a;const s=Uc("lu");return I(),R("div",{ref:"navbar",class:"v123-navbar-container",onMouseleave:t[3]||(t[3]=(...l)=>r.onNavbarMouseLeave&&r.onNavbarMouseLeave(...l))},[O("nav",G9e,[O("div",z9e,[O("button",{class:"v123-burger-menu",onClick:t[0]||(t[0]=(...l)=>r.onHamburguerMenuClick&&r.onHamburguerMenuClick(...l))},[(I(),R("svg",q9e,[O("path",{d:r.icons.mdiMenu},null,8,K9e)]))]),O("img",{src:n.brandedLogo,alt:"Voice Logo",class:"v123-brand-logo"},null,8,X9e),O("img",{src:n.logo,alt:"Voice123 Logo",class:"v123-logo"}
724,null,8,Z9e)]),(a=n.items)!=null&&a.length?(I(),R("ul",Y9e,[(I(!0),R(Je,null,Dt(n.items,(l,u)=>(I(),R("li",{key:l.text,class:Ie(["v123-navbar-menu-item",{"v123-menu-item-selected":r.selectedMenuItem&&r.selectedMenuItem.text===l.text}]),onMouseenter:c=>r.onHoverMenuItem(l,u,c),onClick:c=>r.onSelectMenuItem(l,u,c)},[O("span",Q9e,he(l.text),1),l.subMenus&&l.subMenus.length?(I(),R("svg",eNe,[O("path",{d:r.icons.mdiChevronDown},null,8,tNe)])):K("",!0)],42,J9e))),128))])):K("",!0),O("div",nNe,[ge(e.$slots,"actions")])]),r.selectedMenuItem&&r.selectedMenuItem.subMenus&&r.selectedMenuItem.subMenus.length?(I(),R("div",{key:0,ref:"dropDownContainer",class:Ie(["v123-dropdown-container",{"v123-dropdown-container-simple":r.useSimpleSubmenus}])},[r.useSimpleSubmenus?(I(),R("div",{key:0,class:"v123-dropdown-simple-menu",style:vt({paddingLeft:`${r.simpleSubmenuOffset}px`}),role:"menu","aria-label":"Voice Filters Menu"},[O("ul",rNe,[(I(!0),R(Je,null,Dt(r.selectedMenuItem.subMenus,l=>(I(),R("li",{key:l.text,class:Ie(["v123-simple-list-item",{"v123-item-selected":r.selectedSubMenuitem&&r.selectedSubMenuitem.text===l.text}])},[l.icon?(I(),R("span",{key:0,class:"v123-category-card-icon",innerHTML:l.icon},null,8,iNe)):K("",!0),O("button",{class:"v123-simple-list-button",onClick:u=>r.onSelectSubmenu(l)},he(l.text),9,oNe)],2))),128))])],4)):(I(),R("div",sNe,[ae(s,{class:"v123-options"},{default:pe(()=>[(I(!0),R(Je,null,Dt(r.selectedMenuItem.subMenus,l=>(I(),R("li",{key:l.text,class:Ie(["v123-list-item",{"v123-item-selected":r.selectedSubMenuitem&&r.selectedSubMenuitem.text===l.text}])},[O("div",aNe,[l.icon?(I(),R("span",{key:0,class:"v123-category-card-icon",innerHTML:l.icon},null,8,lNe)):K("",!0),O("button",{onClick:u=>r.onSelectSubmenu(l)},he(l.text),9,uNe)])],2))),128))]),_:1}),O("div",cNe,[O("div",dNe,[r.hideControlButton?K("",!0):(I(),R("button",{key:0,class:"v123-page-button",onClick:t[1]||(t[1]=(...l)=>r.onPreviousPage&&r.onPreviousPage(...l))},[(I(),R("svg",fNe,[O("path",{d:r.icons.mdiChevronLeft},null,8,pNe)]))])),O("ul",hNe,[(I(!0),R(Je,null,Dt(r.displayedOptions,l=>(I(),R("li",{key:l.text},[O("div",{class:"v123-category-card",onClick:u=>r.onClickOption(l)},[l.icon?(I(),R("span",{key:0,class:"v123-category-card-icon",innerHTML:l.icon},null,8,vNe)):K("",!0),O("span",gNe,he(l.text),1),l.tagline?(I(),R("p",yNe,he(l.tagline),1)):K("",!0)],8,mNe)]))),128)),(I(!0),R(Je,null,Dt(r.renderGhostCards(),l=>(I(),R("li",{key:"ghost"+l},_Ne))),128))]),r.hideControlButton?K("",!0):(I(),R("button",{key:1,class:"v123-page-button",onClick:t[2]||(t[2]=(...l)=>r.onNextPage&&r.onNextPage(...l))},[(I(),R("svg",SNe,[O("path",{d:r.icons.mdiChevronRight},null,8,ENe)]))]))]),r.selectedSubMenuitem.viewAll?(I(),R("a",{key:0,href:r.selectedSubMenuitem.viewAll,class:"v123-links",target:"_blank"},"View All",8,CNe)):K("",!0)])])),r.useSimpleSubmenus?K("",!0):(I(),R("br",wNe)),r.useSimpleSubmenus?K("",!0):(I(),R("div",TNe,[ge(e.$slots,"actions")]))],2)):K("",!0)],544)}const PUe=Ye(W9e,[["render",ANe]]),INe={name:"tdlNewDrawer",mixins:[Hn],props:{isOpen:{type:Boolean,default:!1},items:{type:Array,default:()=>[]},brandedLogo:{type:String,default:"https://static.voice123.com/static/logo-branded-v123.png"},logo:{type:String,default:"https://voice123.com/favicon.ico"},aboutUsUrl:{type:String,default:"#"},termOfUseUrl:{type:String,default:"#"},privacyPolicyUrl:{type:String,default:"#"}},setup(e,{emit:t}){const n=ie(!1),r=ie(null),i=ie({subMenu:null,index:-1});return{isSubMenuOpen:n,menuItemSelected:r,subMenuItemSelected:i,icons:{mdiChevronRight:jl,mdiChevronLeft:gp,mdiWindowClose:zZ,mdiChevronDown:p1},closeDrawer:()=>{t("close")},onClickMenu:d=>{r.value=d,d.subMenus&&d.subMenus.length&&(n.value=!0),d.action&&typeof d.action=="function"&&d.action()},goBack:()=>{n.value=!1,r.value=null},onClickSubMenu:(d,f)=>{if(i.value.index===f){i.value.subMenu=null,i.value.index=-1;return}i.value.subMenu=d,i.value.index=f,d.action&&typeof d.action=="function"&&d.action()},onClickOption:d=>{d.action&&typeof d.action=="function"&&d.action()}}}};const xNe=e=>(qS("data-v-7b4ffd41"),e=e(),KS(),e),LNe={class:"v123-drawer-header"},kNe={class:"v123-header-content"},MNe=["width","height","viewBox"],RNe=["fill-rule","d"],PNe=["src"],ONe=["src"],$Ne={key:3},NNe=["width","height","viewBox"],HNe=["fill-rule","d"],DNe={class:"v123-drawer-content"},VNe={key:0,class:"v123-menu v123-divider"},FNe=["onClick"],BNe={class:"v123-list-item-content"},UNe=["innerHTML"],jNe=["width","height","viewBox"],WNe=["fill-rule","d"],GNe={key:1,class:"v123-subMenu"},zNe=["onClick"],qNe={class:"v123-list-item-content"},KNe=["innerHTML"],XNe={key:0,class:"v123-expand-icon"},ZNe=["width","height","viewBox"],YNe=["fill-rule","d"],JNe={key:0,class:"v123-nested-list"},QNe=["onClick"],eHe={class:"v123-list-item-content"},tHe=["innerHTML"],nHe={class:"v123-list-text-container"},rHe={key:0,class:"v123-tagline"},iHe=["href"],oHe={class:"v123-cta"},sHe={class:"v123-footer-links"},aHe=["href"],lHe=["href"],uHe=["href"],cHe=xNe(()=>O("p",{class:"v123-copyright"},"© Voice123, LLC.",-1));function dHe(e,t,n,r,i,o){return I(),R(Je,null,[n.isOpen?(I(),R("div",{key:0,class:"v123-overlay",onClick:t[0]||(t[0]=(...s)=>r.closeDrawer&&r.closeDrawer(...s))})):K("",!0),O("div",{class:Ie(["v123-drawer",{open:n.isOpen}])},[O("header",null,[O("div",LNe,[O("div",kNe,[r.isSubMenuOpen?(I(),R("button",{key:0,onClick:t[1]||(t[1]=(...s)=>r.goBack&&r.goBack(...s))},[(I(),R("svg",{class:"v123-item-icon",width:e.size||24,height:e.size||24,viewBox:e.viewbox||"0 0 24 24"},[O("path",{"fill-rule":e.fillRule,d:r.icons.mdiChevronLeft},null,8,RNe)],8,MNe))])):K("",!0),r.isSubMenuOpen?(I(),R("img",{key:1,src:n.logo,alt:"Logo",class:"v123-logo"},null,8,PNe)):(I(),R("img",{key:2,src:n.brandedLogo,alt:"Logo",class:"v123-brand-logo"},null,8,ONe)),r.isSubMenuOpen?(I(),R("h3",$Ne,he(r.menuItemSelected.text),1)):K("",!0)]),O("button",{onClick:t[2]||(t[2]=(...s)=>r.closeDrawer&&r.closeDrawer(...s))},[(I(),R("svg",{class:"v123-item-icon",width:e.size||24,height:e.size||24,viewBox:e.viewbox||"0 0 24 24"},[O("path",{"fill-rule":e.fillRule,d:r.icons.mdiWindowClose},null,8,HNe)],8,NNe))])])]),O("div",DNe,[r.isSubMenuOpen?K("",!0):(I(),R("ul",VNe,[(I(!0),R(Je,null,Dt(n.items,(s,a)=>(I(),R("li",{class:"v123-list-item",onClick:l=>r.onClickMenu(s),key:a},[O("div",BNe,[s.icon?(I(),R("span",{key:0,innerHTML:s.icon,class:"v123-item-icon"},null,8,UNe)):K("",!0),O("span",null,he(s.text),1)]),(I(),R("svg",{class:"v123-item-icon",width:e.size||24,height:e.size||24,viewBox:e.viewbox||"0 0 24 24"},[O("path",{"fill-rule":e.fillRule,d:r.icons.mdiChevronRight},null,8,WNe)],8,jNe))],8,FNe))),128))])),r.isSubMenuOpen?(I(),R("ul",GNe,[(I(!0),R(Je,null,Dt(r.menuItemSelected.subMenus,(s,a)=>(I(),R("li",{key:a,onClick:l=>r.onClickSubMenu(s,a)},[O("div",{class:Ie(["v123-list-item icon",{"v123-item-selected":r.subMenuItemSelected.index===a}])},[O("div",qNe,[s.icon?(I(),R("span",{key:0,innerHTML:s.icon,class:"v123-item-icon"},null,8,KNe)):K("",!0),O("span",null,he(s.text),1)]),s.options&&s.options.length?(
724I(),R("span",XNe,[(I(),R("svg",{class:Ie(["v123-item-icon",{"v123-expand-indicator":r.subMenuItemSelected.index===a}]),width:e.size||24,height:e.size||24,viewBox:e.viewbox||"0 0 24 24"},[O("path",{"fill-rule":e.fillRule,d:r.icons.mdiChevronDown},null,8,YNe)],10,ZNe))])):K("",!0)],2),s.options&&s.options.length&&r.subMenuItemSelected.index===a?(I(),R("ul",JNe,[(I(!0),R(Je,null,Dt(s.options,(l,u)=>(I(),R("li",{class:"v123-list-item",key:u,onClick:c=>r.onClickOption(l)},[O("div",eHe,[l.icon?(I(),R("span",{key:0,innerHTML:l.icon,class:"v123-item-icon"},null,8,tHe)):K("",!0),O("div",nHe,[O("span",null,he(l.text),1),l.tagline?(I(),R("span",rHe,he(l.tagline),1)):K("",!0)])])],8,QNe))),128)),s.viewAll?(I(),R("a",{key:0,href:s.viewAll,class:"v123-view-all-cta",target:"_blank"},"View All",8,iHe)):K("",!0)])):K("",!0)],8,zNe))),128))])):K("",!0)]),O("footer",null,[O("div",oHe,[ge(e.$slots,"actions",{},void 0,!0)]),O("div",sHe,[O("a",{href:n.aboutUsUrl,target:"_blank"},"About us",8,aHe),O("a",{href:n.termOfUseUrl,target:"_blank"},"Terms of use",8,lHe),O("a",{href:n.privacyPolicyUrl,target:"_blank"},"Privacy policy",8,uHe)]),cHe])],2)],64)}const OUe=Ye(INe,[["render",dHe],["__scopeId","data-v-7b4ffd41"]]);export{wDe as $,XW as A,TBe as B,OUe as C,PUe as D,Uo as E,oBe as F,sBe as G,rge as H,Qo as I,T7 as J,sge as K,Qhe as L,qce as M,ote as N,La as O,je as P,lge as Q,lte as R,lBe as S,oJ as T,VX as U,xa as V,DX as W,fi as X,tVe as Y,OFe as Z,Ye as _,O as a,gVe as a$,QVe as a0,qVe as a1,tBe as a2,jVe as a3,bHe as a4,ui as a5,rFe as a6,vDe as a7,TZ as a8,MVe as a9,g0 as aA,v0 as aB,m0 as aC,h0 as aD,ka as aE,El as aF,Wc as aG,Zr as aH,kIe as aI,LIe as aJ,wIe as aK,rIe as aL,eIe as aM,$w as aN,LBe as aO,IBe as aP,ie as aQ,iW as aR,rW as aS,Rn as aT,h_ as aU,fe as aV,Ee as aW,OZ as aX,kBe as aY,ti as aZ,vVe as a_,zDe as aa,UFe as ab,MHe as ac,bDe as ad,ZFe as ae,GHe as af,jDe as ag,kVe as ah,BFe as ai,vJ as aj,Pi as ak,hBe as al,hHe as am,yHe as an,mHe as ao,kt as ap,bBe as aq,vHe as ar,Qe as as,$n as at,Je as au,Dt as av,ge as aw,tE as ax,CBe as ay,Hw as az,ae as b,iVe as b$,EVe as b0,CVe as b1,RVe as b2,LHe as b3,bZ as b4,XHe as b5,ZHe as b6,hVe as b7,mVe as b8,nFe as b9,PFe as bA,HZ as bB,gZ as bC,wBe as bD,Dw as bE,ln as bF,Ht as bG,k4 as bH,kn as bI,Ci as bJ,NBe as bK,$Be as bL,TD as bM,OBe as bN,PBe as bO,J5e as bP,RBe as bQ,MBe as bR,Kw as bS,BBe as bT,Vw as bU,Jp as bV,xv as bW,IZ as bX,$De as bY,CFe as bZ,SDe as b_,xFe as ba,LFe as bb,RDe as bc,PDe as bd,pFe as be,hFe as bf,yVe as bg,bVe as bh,SHe as bi,EHe as bj,WVe as bk,JHe as bl,QHe as bm,ut as bn,UHe as bo,WHe as bp,EDe as bq,KHe as br,AZ as bs,cDe as bt,ys as bu,Lt as bv,VBe as bw,_Z as bx,OHe as by,HVe as bz,R as c,EUe as c$,Pd as c0,UZ as c1,zBe as c2,qBe as c3,s1e as c4,d9 as c5,yLe as c6,XBe as c7,KBe as c8,WBe as c9,ag as cA,sD as cB,gHe as cC,zHe as cD,SFe as cE,$Ve as cF,TVe as cG,NZ as cH,kDe as cI,AFe as cJ,ODe as cK,SUe as cL,eR as cM,_Ue as cN,rAe as cO,bUe as cP,yUe as cQ,qxe as cR,QS as cS,yBe as cT,sFe as cU,_He as cV,p1 as cW,mDe as cX,TUe as cY,wUe as cZ,CUe as c_,Xw as ca,UBe as cb,WFe as cc,LRe as cd,VVe as ce,sDe as cf,BVe as cg,uVe as ch,l4 as ci,KM as cj,mr as ck,tUe as cl,iDe as cm,EZ as cn,xHe as co,uDe as cp,AHe as cq,BHe as cr,EBe as cs,d1 as ct,iu as cu,tW as cv,yj as cw,TR as cx,dUe as cy,vBe as cz,_t as d,Hn as d$,XU as d0,KU as d1,pHe as d2,DBe as d3,QU as d4,SBe as d5,mBe as d6,gBe as d7,_Be as d8,aVe as d9,pBe as dA,mZ as dB,sK as dC,Nw as dD,z7e as dE,TDe as dF,FBe as dG,fUe as dH,dDe as dI,GVe as dJ,MUe as dK,kUe as dL,LDe as dM,qHe as dN,eDe as dO,_Ve as dP,Un as dQ,pVe as dR,UX as dS,gUe as dT,wHe as dU,FVe as dV,AUe as dW,hDe as dX,VFe as dY,SVe as dZ,IDe as d_,iFe as da,_Fe as db,XFe as dc,Ar as dd,DHe as de,gp as df,jl as dg,UDe as dh,hZ as di,fE as dj,THe as dk,iUe as dl,dVe as dm,BZ as dn,yFe as dp,YFe as dq,qFe as dr,CHe as ds,ADe as dt,NDe as du,ZVe as dv,RFe as dw,FFe as dx,cFe as dy,aFe as dz,tt as e,BDe as e$,T9e as e0,PRe as e1,AV as e2,Ea as e3,yDe as e4,GDe as e5,qA as e6,wVe as e7,EFe as e8,HFe as e9,oF as eA,K4 as eB,kHe as eC,w9e as eD,uFe as eE,p_ as eF,VZ as eG,fFe as eH,oDe as eI,tDe as eJ,bFe as eK,vFe as eL,nDe as eM,rBe as eN,lVe as eO,mUe as eP,T3e as eQ,ua as eR,at as eS,nUe as eT,h6e as eU,v6e as eV,wV as eW,w8e as eX,FDe as eY,pUe as eZ,lUe as e_,xUe as ea,FHe as eb,Dl as ec,io as ed,xDe as ee,tFe as ef,VDe as eg,JVe as eh,eFe as ei,kP as ej,MDe as ek,DDe as el,JFe as em,HDe as en,NFe as eo,PHe as ep,Xxe as eq,IFe as er,iBe as es,jFe as et,c4 as eu,w4 as ev,St as ew,aUe as ex,$Fe as ey,Ve as ez,vt as f,qDe as f$,wFe as f0,HHe as f1,NHe as f2,oVe as f3,jHe as f4,IUe as f5,RUe as f6,RP as f7,SZ as f8,YVe as f9,jBe as fA,Av as fB,Ow as fC,Bc as fD,RHe as fE,lFe as fF,DFe as fG,AVe as fH,dBe as fI,OVe as fJ,uBe as fK,GFe as fL,rDe as fM,lDe as fN,nVe as fO,XVe as fP,Nl as fQ,dFe as fR,cUe as fS,sVe as fT,bl as fU,dE as fV,dR as fW,QDe as fX,NVe as fY,TFe as fZ,JDe as f_,XDe as fa,xZ as fb,Q3e as fc,PVe as fd,kE as fe,QB as ff,gLe as fg,jX as fh,pDe as fi,fDe as fj,Ji as fk,VHe as fl,jc as fm,Qge as fn,GOe as fo,M6e as fp,uUe as fq,AM as fr,_De as fs,YDe as ft,eVe as fu,ZDe as fv,LVe as fw,$He as fx,AS as fy,DZ as fz,Se as g,KDe as g0,WDe as g1,rVe as g2,OP as g3,$P as g4,eBe as g5,oUe as g6,KVe as g7,rUe as g8,an as g9,oe as gA,$t as gB,EH as gC,ne as gD,cBe as gE,fBe as gF,aDe as gG,CDe as gH,eUe as gI,sUe as ga,nBe as gb,KFe as gc,zi as gd,T4 as ge,kFe as gf,cVe as gg,QFe as gh,l1e as gi,lT as gj,vUe as gk,zVe as gl,gDe as gm,gFe as gn,oFe as go,DVe as gp,fVe as gq,mFe as gr,YHe as gs,oa as gt,MFe as gu,hUe as gv,Gc as gw,jb as gx,e_ as gy,ue as gz,K as h,HBe as i,Mr as j,KS as k,cLe as l,oD as m,Ie as n,I as o,qS as p,UVe as q,Uc as r,zFe as s,he as t,IHe as u,LUe as v,pe as w,xVe as x,IVe as y,Bl as z}; 725//# sourceMappingURL=vendor-147ef0d1.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.