pleroma/priv/static/static/js/main.AC3URMfQ.js
2025-09-04 15:24:03 +04:00

695 lines
1.3 MiB
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["static/js/sticker_picker.rmgSQPc6.js","static/css/sticker_picker.BzJVB0Ta.css","static/js/settings_modal.Hse38PiB.js","static/css/settings_modal.5GFa6N-U.css","static/js/update_notification.CZcx2OQ7.js","static/css/update_notification.BJ1CAGCw.css"])))=>i.map(i=>d[i]);
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const r of document.querySelectorAll('link[rel="modulepreload"]'))s(r);new MutationObserver(r=>{for(const o of r)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&s(i)}).observe(document,{childList:!0,subtree:!0});function n(r){const o={};return r.integrity&&(o.integrity=r.integrity),r.referrerPolicy&&(o.referrerPolicy=r.referrerPolicy),r.crossOrigin==="use-credentials"?o.credentials="include":r.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function s(r){if(r.ep)return;r.ep=!0;const o=n(r);fetch(r.href,o)}})();/**
* @vue/shared v3.5.19
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**//*! #__NO_SIDE_EFFECTS__ */function Wy(e){const t=Object.create(null);for(const n of e.split(","))t[n]=1;return n=>n in t}const fn={},Pl=[],to=()=>{},DA=()=>!1,Qh=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&(e.charCodeAt(2)>122||e.charCodeAt(2)<97),Gy=e=>e.startsWith("onUpdate:"),xn=Object.assign,Ky=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},AU=Object.prototype.hasOwnProperty,Zt=(e,t)=>AU.call(e,t),lt=Array.isArray,Ll=e=>nc(e)==="[object Map]",tc=e=>nc(e)==="[object Set]",l$=e=>nc(e)==="[object Date]",EU=e=>nc(e)==="[object RegExp]",wt=e=>typeof e=="function",$n=e=>typeof e=="string",Ir=e=>typeof e=="symbol",pn=e=>e!==null&&typeof e=="object",UA=e=>(pn(e)||wt(e))&&wt(e.then)&&wt(e.catch),jA=Object.prototype.toString,nc=e=>jA.call(e),IU=e=>nc(e).slice(8,-1),BA=e=>nc(e)==="[object Object]",xy=e=>$n(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,vu=Wy(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),ep=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},PU=/-(\w)/g,br=ep(e=>e.replace(PU,(t,n)=>n?n.toUpperCase():"")),LU=/\B([A-Z])/g,Vi=ep(e=>e.replace(LU,"-$1").toLowerCase()),tp=ep(e=>e.charAt(0).toUpperCase()+e.slice(1)),Vf=ep(e=>e?`on${tp(e)}`:""),Oi=(e,t)=>!Object.is(e,t),Ol=(e,...t)=>{for(let n=0;n<e.length;n++)e[n](...t)},zA=(e,t,n,s=!1)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,writable:s,value:n})},ah=e=>{const t=parseFloat(e);return isNaN(t)?e:t},OU=e=>{const t=$n(e)?Number(e):NaN;return isNaN(t)?e:t};let c$;const np=()=>c$||(c$=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{});function hn(e){if(lt(e)){const t={};for(let n=0;n<e.length;n++){const s=e[n],r=$n(s)?FU(s):hn(s);if(r)for(const o in r)t[o]=r[o]}return t}else if($n(e)||pn(e))return e}const RU=/;(?![^(]*\))/g,MU=/:([^]+)/,NU=/\/\*[^]*?\*\//g;function FU(e){const t={};return e.replace(NU,"").split(RU).forEach(n=>{if(n){const s=n.split(MU);s.length>1&&(t[s[0].trim()]=s[1].trim())}}),t}function he(e){let t="";if($n(e))t=e;else if(lt(e))for(let n=0;n<e.length;n++){const s=he(e[n]);s&&(t+=s+" ")}else if(pn(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function lh(e){if(!e)return null;let{class:t,style:n}=e;return t&&!$n(t)&&(e.class=he(t)),n&&(e.style=hn(n)),e}const DU="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",UU=Wy(DU);function qA(e){return!!e||e===""}function jU(e,t){if(e.length!==t.length)return!1;let n=!0;for(let s=0;n&&s<e.length;s++)n=La(e[s],t[s]);return n}function La(e,t){if(e===t)return!0;let n=l$(e),s=l$(t);if(n||s)return n&&s?e.getTime()===t.getTime():!1;if(n=Ir(e),s=Ir(t),n||s)return e===t;if(n=lt(e),s=lt(t),n||s)return n&&s?jU(e,t):!1;if(n=pn(e),s=pn(t),n||s){if(!n||!s)return!1;const r=Object.keys(e).length,o=Object.keys(t).length;if(r!==o)return!1;for(const i in e){const a=e.hasOwnProperty(i),c=t.hasOwnProperty(i);if(a&&!c||!a&&c||!La(e[i],t[i]))return!1}}return String(e)===String(t)}function Yy(e,t){return e.findIndex(n=>La(n,t))}const HA=e=>!!(e&&e.__v_isRef===!0),w=e=>$n(e)?e:e==null?"":lt(e)||pn(e)&&(e.toString===jA||!wt(e.toString))?HA(e)?w(e.value):JSON.stringify(e,VA,2):String(e),VA=(e,t)=>HA(t)?VA(e,t.value):Ll(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[s,r],o)=>(n[gg(s,o)+" =>"]=r,n),{})}:tc(t)?{[`Set(${t.size})`]:[...t.values()].map(n=>gg(n))}:Ir(t)?gg(t):pn(t)&&!lt(t)&&!BA(t)?String(t):t,gg=(e,t="")=>{var n;return Ir(e)?`Symbol(${(n=e.description)!=null?n:t})`:e};/**
* @vue/reactivity v3.5.19
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let ds;class WA{constructor(t=!1){this.detached=t,this._active=!0,this._on=0,this.effects=[],this.cleanups=[],this._isPaused=!1,this.parent=ds,!t&&ds&&(this.index=(ds.scopes||(ds.scopes=[])).push(this)-1)}get active(){return this._active}pause(){if(this._active){this._isPaused=!0;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].pause();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].pause()}}resume(){if(this._active&&this._isPaused){this._isPaused=!1;let t,n;if(this.scopes)for(t=0,n=this.scopes.length;t<n;t++)this.scopes[t].resume();for(t=0,n=this.effects.length;t<n;t++)this.effects[t].resume()}}run(t){if(this._active){const n=ds;try{return ds=this,t()}finally{ds=n}}}on(){++this._on===1&&(this.prevScope=ds,ds=this)}off(){this._on>0&&--this._on===0&&(ds=this.prevScope,this.prevScope=void 0)}stop(t){if(this._active){this._active=!1;let n,s;for(n=0,s=this.effects.length;n<s;n++)this.effects[n].stop();for(this.effects.length=0,n=0,s=this.cleanups.length;n<s;n++)this.cleanups[n]();if(this.cleanups.length=0,this.scopes){for(n=0,s=this.scopes.length;n<s;n++)this.scopes[n].stop(!0);this.scopes.length=0}if(!this.detached&&this.parent&&!t){const r=this.parent.scopes.pop();r&&r!==this&&(this.parent.scopes[this.index]=r,r.index=this.index)}this.parent=void 0}}}function sp(e){return new WA(e)}function GA(){return ds}function BU(e,t=!1){ds&&ds.cleanups.push(e)}let vn;const vg=new WeakSet;class KA{constructor(t){this.fn=t,this.deps=void 0,this.depsTail=void 0,this.flags=5,this.next=void 0,this.cleanup=void 0,this.scheduler=void 0,ds&&ds.active&&ds.effects.push(this)}pause(){this.flags|=64}resume(){this.flags&64&&(this.flags&=-65,vg.has(this)&&(vg.delete(this),this.trigger()))}notify(){this.flags&2&&!(this.flags&32)||this.flags&8||YA(this)}run(){if(!(this.flags&1))return this.fn();this.flags|=2,u$(this),XA(this);const t=vn,n=kr;vn=this,kr=!0;try{return this.fn()}finally{JA(this),vn=t,kr=n,this.flags&=-3}}stop(){if(this.flags&1){for(let t=this.deps;t;t=t.nextDep)Zy(t);this.deps=this.depsTail=void 0,u$(this),this.onStop&&this.onStop(),this.flags&=-2}}trigger(){this.flags&64?vg.add(this):this.scheduler?this.scheduler():this.runIfDirty()}runIfDirty(){A0(this)&&this.run()}get dirty(){return A0(this)}}let xA=0,bu,yu;function YA(e,t=!1){if(e.flags|=8,t){e.next=yu,yu=e;return}e.next=bu,bu=e}function Xy(){xA++}function Jy(){if(--xA>0)return;if(yu){let t=yu;for(yu=void 0;t;){const n=t.next;t.next=void 0,t.flags&=-9,t=n}}let e;for(;bu;){let t=bu;for(bu=void 0;t;){const n=t.next;if(t.next=void 0,t.flags&=-9,t.flags&1)try{t.trigger()}catch(s){e||(e=s)}t=n}}if(e)throw e}function XA(e){for(let t=e.deps;t;t=t.nextDep)t.version=-1,t.prevActiveLink=t.dep.activeLink,t.dep.activeLink=t}function JA(e){let t,n=e.depsTail,s=n;for(;s;){const r=s.prevDep;s.version===-1?(s===n&&(n=r),Zy(s),zU(s)):t=s,s.dep.activeLink=s.prevActiveLink,s.prevActiveLink=void 0,s=r}e.deps=t,e.depsTail=n}function A0(e){for(let t=e.deps;t;t=t.nextDep)if(t.dep.version!==t.version||t.dep.computed&&(ZA(t.dep.computed)||t.dep.version!==t.version))return!0;return!!e._dirty}function ZA(e){if(e.flags&4&&!(e.flags&16)||(e.flags&=-17,e.globalVersion===zu)||(e.globalVersion=zu,!e.isSSR&&e.flags&128&&(!e.deps&&!e._dirty||!A0(e))))return;e.flags|=2;const t=e.dep,n=vn,s=kr;vn=e,kr=!0;try{XA(e);const r=e.fn(e._value);(t.version===0||Oi(r,e._value))&&(e.flags|=128,e._value=r,t.version++)}catch(r){throw t.version++,r}finally{vn=n,kr=s,JA(e),e.flags&=-3}}function Zy(e,t=!1){const{dep:n,prevSub:s,nextSub:r}=e;if(s&&(s.nextSub=r,e.prevSub=void 0),r&&(r.prevSub=s,e.nextSub=void 0),n.subs===e&&(n.subs=s,!s&&n.computed)){n.computed.flags&=-5;for(let o=n.computed.deps;o;o=o.nextDep)Zy(o,!0)}!t&&!--n.sc&&n.map&&n.map.delete(n.key)}function zU(e){const{prevDep:t,nextDep:n}=e;t&&(t.nextDep=n,e.prevDep=void 0),n&&(n.prevDep=t,e.nextDep=void 0)}let kr=!0;const QA=[];function Ho(){QA.push(kr),kr=!1}function Vo(){const e=QA.pop();kr=e===void 0?!0:e}function u$(e){const{cleanup:t}=e;if(e.cleanup=void 0,t){const n=vn;vn=void 0;try{t()}finally{vn=n}}}let zu=0;class qU{constructor(t,n){this.sub=t,this.dep=n,this.version=n.version,this.nextDep=this.prevDep=this.nextSub=this.prevSub=this.prevActiveLink=void 0}}class Qy{constructor(t){this.computed=t,this.version=0,this.activeLink=void 0,this.subs=void 0,this.map=void 0,this.key=void 0,this.sc=0,this.__v_skip=!0}track(t){if(!vn||!kr||vn===this.computed)return;let n=this.activeLink;if(n===void 0||n.sub!==vn)n=this.activeLink=new qU(vn,this),vn.deps?(n.prevDep=vn.depsTail,vn.depsTail.nextDep=n,vn.depsTail=n):vn.deps=vn.depsTail=n,e8(n);else if(n.version===-1&&(n.version=this.version,n.nextDep)){const s=n.nextDep;s.prevDep=n.prevDep,n.prevDep&&(n.prevDep.nextDep=s),n.prevDep=vn.depsTail,n.nextDep=void 0,vn.depsTail.nextDep=n,vn.depsTail=n,vn.deps===n&&(vn.deps=s)}return n}trigger(t){this.version++,zu++,this.notify(t)}notify(t){Xy();try{for(let n=this.subs;n;n=n.prevSub)n.sub.notify()&&n.sub.dep.notify()}finally{Jy()}}}function e8(e){if(e.dep.sc++,e.sub.flags&4){const t=e.dep.computed;if(t&&!e.dep.subs){t.flags|=20;for(let s=t.deps;s;s=s.nextDep)e8(s)}const n=e.dep.subs;n!==e&&(e.prevSub=n,n&&(n.nextSub=e)),e.dep.subs=e}}const ch=new WeakMap,Aa=Symbol(""),E0=Symbol(""),qu=Symbol("");function fs(e,t,n){if(kr&&vn){let s=ch.get(e);s||ch.set(e,s=new Map);let r=s.get(n);r||(s.set(n,r=new Qy),r.map=s,r.key=n),r.track()}}function Ro(e,t,n,s,r,o){const i=ch.get(e);if(!i){zu++;return}const a=c=>{c&&c.trigger()};if(Xy(),t==="clear")i.forEach(a);else{const c=lt(e),u=c&&xy(n);if(c&&n==="length"){const f=Number(s);i.forEach((h,v)=>{(v==="length"||v===qu||!Ir(v)&&v>=f)&&a(h)})}else switch((n!==void 0||i.has(void 0))&&a(i.get(n)),u&&a(i.get(qu)),t){case"add":c?u&&a(i.get("length")):(a(i.get(Aa)),Ll(e)&&a(i.get(E0)));break;case"delete":c||(a(i.get(Aa)),Ll(e)&&a(i.get(E0)));break;case"set":Ll(e)&&a(i.get(Aa));break}}Jy()}function HU(e,t){const n=ch.get(e);return n&&n.get(t)}function bl(e){const t=Mt(e);return t===e?t:(fs(t,"iterate",qu),mr(e)?t:t.map(ts))}function rp(e){return fs(e=Mt(e),"iterate",qu),e}const VU={__proto__:null,[Symbol.iterator](){return bg(this,Symbol.iterator,ts)},concat(...e){return bl(this).concat(...e.map(t=>lt(t)?bl(t):t))},entries(){return bg(this,"entries",e=>(e[1]=ts(e[1]),e))},every(e,t){return To(this,"every",e,t,void 0,arguments)},filter(e,t){return To(this,"filter",e,t,n=>n.map(ts),arguments)},find(e,t){return To(this,"find",e,t,ts,arguments)},findIndex(e,t){return To(this,"findIndex",e,t,void 0,arguments)},findLast(e,t){return To(this,"findLast",e,t,ts,arguments)},findLastIndex(e,t){return To(this,"findLastIndex",e,t,void 0,arguments)},forEach(e,t){return To(this,"forEach",e,t,void 0,arguments)},includes(...e){return yg(this,"includes",e)},indexOf(...e){return yg(this,"indexOf",e)},join(e){return bl(this).join(e)},lastIndexOf(...e){return yg(this,"lastIndexOf",e)},map(e,t){return To(this,"map",e,t,void 0,arguments)},pop(){return Kc(this,"pop")},push(...e){return Kc(this,"push",e)},reduce(e,...t){return d$(this,"reduce",e,t)},reduceRight(e,...t){return d$(this,"reduceRight",e,t)},shift(){return Kc(this,"shift")},some(e,t){return To(this,"some",e,t,void 0,arguments)},splice(...e){return Kc(this,"splice",e)},toReversed(){return bl(this).toReversed()},toSorted(e){return bl(this).toSorted(e)},toSpliced(...e){return bl(this).toSpliced(...e)},unshift(...e){return Kc(this,"unshift",e)},values(){return bg(this,"values",ts)}};function bg(e,t,n){const s=rp(e),r=s[t]();return s!==e&&!mr(e)&&(r._next=r.next,r.next=()=>{const o=r._next();return o.value&&(o.value=n(o.value)),o}),r}const WU=Array.prototype;function To(e,t,n,s,r,o){const i=rp(e),a=i!==e&&!mr(e),c=i[t];if(c!==WU[t]){const h=c.apply(e,o);return a?ts(h):h}let u=n;i!==e&&(a?u=function(h,v){return n.call(this,ts(h),v,e)}:n.length>2&&(u=function(h,v){return n.call(this,h,v,e)}));const f=c.call(i,u,s);return a&&r?r(f):f}function d$(e,t,n,s){const r=rp(e);let o=n;return r!==e&&(mr(e)?n.length>3&&(o=function(i,a,c){return n.call(this,i,a,c,e)}):o=function(i,a,c){return n.call(this,i,ts(a),c,e)}),r[t](o,...s)}function yg(e,t,n){const s=Mt(e);fs(s,"iterate",qu);const r=s[t](...n);return(r===-1||r===!1)&&s_(n[0])?(n[0]=Mt(n[0]),s[t](...n)):r}function Kc(e,t,n=[]){Ho(),Xy();const s=Mt(e)[t].apply(e,n);return Jy(),Vo(),s}const GU=Wy("__proto__,__v_isRef,__isVue"),t8=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter(Ir));function KU(e){Ir(e)||(e=String(e));const t=Mt(this);return fs(t,"has",e),t.hasOwnProperty(e)}class n8{constructor(t=!1,n=!1){this._isReadonly=t,this._isShallow=n}get(t,n,s){if(n==="__v_skip")return t.__v_skip;const r=this._isReadonly,o=this._isShallow;if(n==="__v_isReactive")return!r;if(n==="__v_isReadonly")return r;if(n==="__v_isShallow")return o;if(n==="__v_raw")return s===(r?o?s9:i8:o?o8:r8).get(t)||Object.getPrototypeOf(t)===Object.getPrototypeOf(s)?t:void 0;const i=lt(t);if(!r){let c;if(i&&(c=VU[n]))return c;if(n==="hasOwnProperty")return KU}const a=Reflect.get(t,n,Sn(t)?t:s);return(Ir(n)?t8.has(n):GU(n))||(r||fs(t,"get",n),o)?a:Sn(a)?i&&xy(n)?a:a.value:pn(a)?r?a8(a):Pr(a):a}}class s8 extends n8{constructor(t=!1){super(!1,t)}set(t,n,s,r){let o=t[n];if(!this._isShallow){const c=Wo(o);if(!mr(s)&&!Wo(s)&&(o=Mt(o),s=Mt(s)),!lt(t)&&Sn(o)&&!Sn(s))return c||(o.value=s),!0}const i=lt(t)&&xy(n)?Number(n)<t.length:Zt(t,n),a=Reflect.set(t,n,s,Sn(t)?t:r);return t===Mt(r)&&(i?Oi(s,o)&&Ro(t,"set",n,s):Ro(t,"add",n,s)),a}deleteProperty(t,n){const s=Zt(t,n);t[n];const r=Reflect.deleteProperty(t,n);return r&&s&&Ro(t,"delete",n,void 0),r}has(t,n){const s=Reflect.has(t,n);return(!Ir(n)||!t8.has(n))&&fs(t,"has",n),s}ownKeys(t){return fs(t,"iterate",lt(t)?"length":Aa),Reflect.ownKeys(t)}}class xU extends n8{constructor(t=!1){super(!0,t)}set(t,n){return!0}deleteProperty(t,n){return!0}}const YU=new s8,XU=new xU,JU=new s8(!0);const I0=e=>e,yf=e=>Reflect.getPrototypeOf(e);function ZU(e,t,n){return function(...s){const r=this.__v_raw,o=Mt(r),i=Ll(o),a=e==="entries"||e===Symbol.iterator&&i,c=e==="keys"&&i,u=r[e](...s),f=n?I0:t?uh:ts;return!t&&fs(o,"iterate",c?E0:Aa),{next(){const{value:h,done:v}=u.next();return v?{value:h,done:v}:{value:a?[f(h[0]),f(h[1])]:f(h),done:v}},[Symbol.iterator](){return this}}}}function _f(e){return function(...t){return e==="delete"?!1:e==="clear"?void 0:this}}function QU(e,t){const n={get(r){const o=this.__v_raw,i=Mt(o),a=Mt(r);e||(Oi(r,a)&&fs(i,"get",r),fs(i,"get",a));const{has:c}=yf(i),u=t?I0:e?uh:ts;if(c.call(i,r))return u(o.get(r));if(c.call(i,a))return u(o.get(a));o!==i&&o.get(r)},get size(){const r=this.__v_raw;return!e&&fs(Mt(r),"iterate",Aa),Reflect.get(r,"size",r)},has(r){const o=this.__v_raw,i=Mt(o),a=Mt(r);return e||(Oi(r,a)&&fs(i,"has",r),fs(i,"has",a)),r===a?o.has(r):o.has(r)||o.has(a)},forEach(r,o){const i=this,a=i.__v_raw,c=Mt(a),u=t?I0:e?uh:ts;return!e&&fs(c,"iterate",Aa),a.forEach((f,h)=>r.call(o,u(f),u(h),i))}};return xn(n,e?{add:_f("add"),set:_f("set"),delete:_f("delete"),clear:_f("clear")}:{add(r){!t&&!mr(r)&&!Wo(r)&&(r=Mt(r));const o=Mt(this);return yf(o).has.call(o,r)||(o.add(r),Ro(o,"add",r,r)),this},set(r,o){!t&&!mr(o)&&!Wo(o)&&(o=Mt(o));const i=Mt(this),{has:a,get:c}=yf(i);let u=a.call(i,r);u||(r=Mt(r),u=a.call(i,r));const f=c.call(i,r);return i.set(r,o),u?Oi(o,f)&&Ro(i,"set",r,o):Ro(i,"add",r,o),this},delete(r){const o=Mt(this),{has:i,get:a}=yf(o);let c=i.call(o,r);c||(r=Mt(r),c=i.call(o,r)),a&&a.call(o,r);const u=o.delete(r);return c&&Ro(o,"delete",r,void 0),u},clear(){const r=Mt(this),o=r.size!==0,i=r.clear();return o&&Ro(r,"clear",void 0,void 0),i}}),["keys","values","entries",Symbol.iterator].forEach(r=>{n[r]=ZU(r,e,t)}),n}function e_(e,t){const n=QU(e,t);return(s,r,o)=>r==="__v_isReactive"?!e:r==="__v_isReadonly"?e:r==="__v_raw"?s:Reflect.get(Zt(n,r)&&r in s?n:s,r,o)}const e9={get:e_(!1,!1)},t9={get:e_(!1,!0)},n9={get:e_(!0,!1)};const r8=new WeakMap,o8=new WeakMap,i8=new WeakMap,s9=new WeakMap;function r9(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function o9(e){return e.__v_skip||!Object.isExtensible(e)?0:r9(IU(e))}function Pr(e){return Wo(e)?e:n_(e,!1,YU,e9,r8)}function t_(e){return n_(e,!1,JU,t9,o8)}function a8(e){return n_(e,!0,XU,n9,i8)}function n_(e,t,n,s,r){if(!pn(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=o9(e);if(o===0)return e;const i=r.get(e);if(i)return i;const a=new Proxy(e,o===2?s:n);return r.set(e,a),a}function Bo(e){return Wo(e)?Bo(e.__v_raw):!!(e&&e.__v_isReactive)}function Wo(e){return!!(e&&e.__v_isReadonly)}function mr(e){return!!(e&&e.__v_isShallow)}function s_(e){return e?!!e.__v_raw:!1}function Mt(e){const t=e&&e.__v_raw;return t?Mt(t):e}function op(e){return!Zt(e,"__v_skip")&&Object.isExtensible(e)&&zA(e,"__v_skip",!0),e}const ts=e=>pn(e)?Pr(e):e,uh=e=>pn(e)?a8(e):e;function Sn(e){return e?e.__v_isRef===!0:!1}function Kn(e){return c8(e,!1)}function l8(e){return c8(e,!0)}function c8(e,t){return Sn(e)?e:new i9(e,t)}class i9{constructor(t,n){this.dep=new Qy,this.__v_isRef=!0,this.__v_isShallow=!1,this._rawValue=n?t:Mt(t),this._value=n?t:ts(t),this.__v_isShallow=n}get value(){return this.dep.track(),this._value}set value(t){const n=this._rawValue,s=this.__v_isShallow||mr(t)||Wo(t);t=s?t:Mt(t),Oi(t,n)&&(this._rawValue=t,this._value=s?t:ts(t),this.dep.trigger())}}function Lt(e){return Sn(e)?e.value:e}const a9={get:(e,t,n)=>t==="__v_raw"?e:Lt(Reflect.get(e,t,n)),set:(e,t,n,s)=>{const r=e[t];return Sn(r)&&!Sn(n)?(r.value=n,!0):Reflect.set(e,t,n,s)}};function u8(e){return Bo(e)?e:new Proxy(e,a9)}function l9(e){const t=lt(e)?new Array(e.length):{};for(const n in e)t[n]=u9(e,n);return t}class c9{constructor(t,n,s){this._object=t,this._key=n,this._defaultValue=s,this.__v_isRef=!0,this._value=void 0}get value(){const t=this._object[this._key];return this._value=t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}get dep(){return HU(Mt(this._object),this._key)}}function u9(e,t,n){const s=e[t];return Sn(s)?s:new c9(e,t,n)}class d9{constructor(t,n,s){this.fn=t,this.setter=n,this._value=void 0,this.dep=new Qy(this),this.__v_isRef=!0,this.deps=void 0,this.depsTail=void 0,this.flags=16,this.globalVersion=zu-1,this.next=void 0,this.effect=this,this.__v_isReadonly=!n,this.isSSR=s}notify(){if(this.flags|=16,!(this.flags&8)&&vn!==this)return YA(this,!0),!0}get value(){const t=this.dep.track();return ZA(this),t&&(t.version=this.dep.version),this._value}set value(t){this.setter&&this.setter(t)}}function f9(e,t,n=!1){let s,r;return wt(e)?s=e:(s=e.get,r=e.set),new d9(s,r,n)}const wf={},dh=new WeakMap;let ba;function h9(e,t=!1,n=ba){if(n){let s=dh.get(n);s||dh.set(n,s=[]),s.push(e)}}function p9(e,t,n=fn){const{immediate:s,deep:r,once:o,scheduler:i,augmentJob:a,call:c}=n,u=A=>r?A:mr(A)||r===!1||r===0?Mo(A,1):Mo(A);let f,h,v,y,S=!1,k=!1;if(Sn(e)?(h=()=>e.value,S=mr(e)):Bo(e)?(h=()=>u(e),S=!0):lt(e)?(k=!0,S=e.some(A=>Bo(A)||mr(A)),h=()=>e.map(A=>{if(Sn(A))return A.value;if(Bo(A))return u(A);if(wt(A))return c?c(A,2):A()})):wt(e)?t?h=c?()=>c(e,2):e:h=()=>{if(v){Ho();try{v()}finally{Vo()}}const A=ba;ba=f;try{return c?c(e,3,[y]):e(y)}finally{ba=A}}:h=to,t&&r){const A=h,R=r===!0?1/0:r;h=()=>Mo(A(),R)}const I=GA(),C=()=>{f.stop(),I&&I.active&&Ky(I.effects,f)};if(o&&t){const A=t;t=(...R)=>{A(...R),C()}}let $=k?new Array(e.length).fill(wf):wf;const P=A=>{if(!(!(f.flags&1)||!f.dirty&&!A))if(t){const R=f.run();if(r||S||(k?R.some((B,N)=>Oi(B,$[N])):Oi(R,$))){v&&v();const B=ba;ba=f;try{const N=[R,$===wf?void 0:k&&$[0]===wf?[]:$,y];$=R,c?c(t,3,N):t(...N)}finally{ba=B}}}else f.run()};return a&&a(P),f=new KA(h),f.scheduler=i?()=>i(P,!1):P,y=A=>h9(A,!1,f),v=f.onStop=()=>{const A=dh.get(f);if(A){if(c)c(A,4);else for(const R of A)R();dh.delete(f)}},t?s?P(!0):$=f.run():i?i(P.bind(null,!0),!0):f.run(),C.pause=f.pause.bind(f),C.resume=f.resume.bind(f),C.stop=C,C}function Mo(e,t=1/0,n){if(t<=0||!pn(e)||e.__v_skip||(n=n||new Set,n.has(e)))return e;if(n.add(e),t--,Sn(e))Mo(e.value,t,n);else if(lt(e))for(let s=0;s<e.length;s++)Mo(e[s],t,n);else if(tc(e)||Ll(e))e.forEach(s=>{Mo(s,t,n)});else if(BA(e)){for(const s in e)Mo(e[s],t,n);for(const s of Object.getOwnPropertySymbols(e))Object.prototype.propertyIsEnumerable.call(e,s)&&Mo(e[s],t,n)}return e}/**
* @vue/runtime-core v3.5.19
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/function rd(e,t,n,s){try{return s?e(...s):e()}catch(r){od(r,t,n)}}function Lr(e,t,n,s){if(wt(e)){const r=rd(e,t,n,s);return r&&UA(r)&&r.catch(o=>{od(o,t,n)}),r}if(lt(e)){const r=[];for(let o=0;o<e.length;o++)r.push(Lr(e[o],t,n,s));return r}}function od(e,t,n,s=!0){const r=t?t.vnode:null,{errorHandler:o,throwUnhandledErrorInProduction:i}=t&&t.appContext.config||fn;if(t){let a=t.parent;const c=t.proxy,u=`https://vuejs.org/error-reference/#runtime-${n}`;for(;a;){const f=a.ec;if(f){for(let h=0;h<f.length;h++)if(f[h](e,c,u)===!1)return}a=a.parent}if(o){Ho(),rd(o,null,10,[e,c,u]),Vo();return}}m9(e,n,r,s,i)}function m9(e,t,n,s=!0,r=!1){if(r)throw e;console.error(e)}const ks=[];let Wr=-1;const Rl=[];let yi=null,Cl=0;const d8=Promise.resolve();let fh=null;function Ri(e){const t=fh||d8;return e?t.then(this?e.bind(this):e):t}function g9(e){let t=Wr+1,n=ks.length;for(;t<n;){const s=t+n>>>1,r=ks[s],o=Hu(r);o<e||o===e&&r.flags&2?t=s+1:n=s}return t}function r_(e){if(!(e.flags&1)){const t=Hu(e),n=ks[ks.length-1];!n||!(e.flags&2)&&t>=Hu(n)?ks.push(e):ks.splice(g9(t),0,e),e.flags|=1,f8()}}function f8(){fh||(fh=d8.then(p8))}function v9(e){lt(e)?Rl.push(...e):yi&&e.id===-1?yi.splice(Cl+1,0,e):e.flags&1||(Rl.push(e),e.flags|=1),f8()}function f$(e,t,n=Wr+1){for(;n<ks.length;n++){const s=ks[n];if(s&&s.flags&2){if(e&&s.id!==e.uid)continue;ks.splice(n,1),n--,s.flags&4&&(s.flags&=-2),s(),s.flags&4||(s.flags&=-2)}}}function h8(e){if(Rl.length){const t=[...new Set(Rl)].sort((n,s)=>Hu(n)-Hu(s));if(Rl.length=0,yi){yi.push(...t);return}for(yi=t,Cl=0;Cl<yi.length;Cl++){const n=yi[Cl];n.flags&4&&(n.flags&=-2),n.flags&8||n(),n.flags&=-2}yi=null,Cl=0}}const Hu=e=>e.id==null?e.flags&2?-1:1/0:e.id;function p8(e){try{for(Wr=0;Wr<ks.length;Wr++){const t=ks[Wr];t&&!(t.flags&8)&&(t.flags&4&&(t.flags&=-2),rd(t,t.i,t.i?15:14),t.flags&4||(t.flags&=-2))}}finally{for(;Wr<ks.length;Wr++){const t=ks[Wr];t&&(t.flags&=-2)}Wr=-1,ks.length=0,h8(),fh=null,(ks.length||Rl.length)&&p8()}}let rs=null,ip=null;function hh(e){const t=rs;return rs=e,ip=e&&e.type.__scopeId||null,t}function b9(e){ip=e}function y9(){ip=null}const _9=e=>X;function X(e,t=rs,n){if(!t||e._n)return e;const s=(...r)=>{s._d&&T$(-1);const o=hh(t);let i;try{i=e(...r)}finally{hh(o),s._d&&T$(1)}return i};return s._n=!0,s._c=!0,s._d=!0,s}function at(e,t){if(rs===null)return e;const n=fp(rs),s=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[o,i,a,c=fn]=t[r];o&&(wt(o)&&(o={mounted:o,updated:o}),o.deep&&Mo(i),s.push({dir:o,instance:n,value:i,oldValue:void 0,arg:a,modifiers:c}))}return e}function pa(e,t,n,s){const r=e.dirs,o=t&&t.dirs;for(let i=0;i<r.length;i++){const a=r[i];o&&(a.oldValue=o[i].value);let c=a.dir[s];c&&(Ho(),Lr(c,n,8,[e.el,a,e,t]),Vo())}}const m8=Symbol("_vte"),g8=e=>e.__isTeleport,_u=e=>e&&(e.disabled||e.disabled===""),h$=e=>e&&(e.defer||e.defer===""),p$=e=>typeof SVGElement<"u"&&e instanceof SVGElement,m$=e=>typeof MathMLElement=="function"&&e instanceof MathMLElement,P0=(e,t)=>{const n=e&&e.to;return $n(n)?t?t(n):null:n},v8={name:"Teleport",__isTeleport:!0,process(e,t,n,s,r,o,i,a,c,u){const{mc:f,pc:h,pbc:v,o:{insert:y,querySelector:S,createText:k,createComment:I}}=u,C=_u(t.props);let{shapeFlag:$,children:P,dynamicChildren:A}=t;if(e==null){const R=t.el=k(""),B=t.anchor=k("");y(R,n,s),y(B,n,s);const N=(V,U)=>{$&16&&(r&&r.isCE&&(r.ce._teleportTarget=V),f(P,V,U,r,o,i,a,c))},W=()=>{const V=t.target=P0(t.props,S),U=b8(V,t,k,y);V&&(i!=="svg"&&p$(V)?i="svg":i!=="mathml"&&m$(V)&&(i="mathml"),C||(N(V,U),Wf(t,!1)))};C&&(N(n,B),Wf(t,!0)),h$(t.props)?(t.el.__isMounted=!1,qn(()=>{W(),delete t.el.__isMounted},o)):W()}else{if(h$(t.props)&&e.el.__isMounted===!1){qn(()=>{v8.process(e,t,n,s,r,o,i,a,c,u)},o);return}t.el=e.el,t.targetStart=e.targetStart;const R=t.anchor=e.anchor,B=t.target=e.target,N=t.targetAnchor=e.targetAnchor,W=_u(e.props),V=W?n:B,U=W?R:N;if(i==="svg"||p$(B)?i="svg":(i==="mathml"||m$(B))&&(i="mathml"),A?(v(e.dynamicChildren,A,V,r,o,i,a),d_(e,t,!0)):c||h(e,t,V,U,r,o,i,a,!1),C)W?t.props&&e.props&&t.props.to!==e.props.to&&(t.props.to=e.props.to):Sf(t,n,R,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const ie=t.target=P0(t.props,S);ie&&Sf(t,ie,null,u,0)}else W&&Sf(t,B,N,u,1);Wf(t,C)}},remove(e,t,n,{um:s,o:{remove:r}},o){const{shapeFlag:i,children:a,anchor:c,targetStart:u,targetAnchor:f,target:h,props:v}=e;if(h&&(r(u),r(f)),o&&r(c),i&16){const y=o||!_u(v);for(let S=0;S<a.length;S++){const k=a[S];s(k,t,n,y,!!k.dynamicChildren)}}},move:Sf,hydrate:w9};function Sf(e,t,n,{o:{insert:s},m:r},o=2){o===0&&s(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:c,children:u,props:f}=e,h=o===2;if(h&&s(i,t,n),(!h||_u(f))&&c&16)for(let v=0;v<u.length;v++)r(u[v],t,n,2);h&&s(a,t,n)}function w9(e,t,n,s,r,o,{o:{nextSibling:i,parentNode:a,querySelector:c,insert:u,createText:f}},h){const v=t.target=P0(t.props,c);if(v){const y=_u(t.props),S=v._lpa||v.firstChild;if(t.shapeFlag&16)if(y)t.anchor=h(i(e),t,a(e),n,s,r,o),t.targetStart=S,t.targetAnchor=S&&i(S);else{t.anchor=i(e);let k=S;for(;k;){if(k&&k.nodeType===8){if(k.data==="teleport start anchor")t.targetStart=k;else if(k.data==="teleport anchor"){t.targetAnchor=k,v._lpa=t.targetAnchor&&i(t.targetAnchor);break}}k=i(k)}t.targetAnchor||b8(v,t,f,u),h(S&&i(S),t,v,n,s,r,o)}Wf(t,y)}return t.anchor&&i(t.anchor)}const Yn=v8;function Wf(e,t){const n=e.ctx;if(n&&n.ut){let s,r;for(t?(s=e.el,r=e.anchor):(s=e.targetStart,r=e.targetAnchor);s&&s!==r;)s.nodeType===1&&s.setAttribute("data-v-owner",n.uid),s=s.nextSibling;n.ut()}}function b8(e,t,n,s){const r=t.targetStart=n(""),o=t.targetAnchor=n("");return r[m8]=o,e&&(s(r,e),s(o,e)),o}const Oo=Symbol("_leaveCb"),$f=Symbol("_enterCb");function S9(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return lp(()=>{e.isMounted=!0}),cp(()=>{e.isUnmounting=!0}),e}const dr=[Function,Array],y8={mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:dr,onEnter:dr,onAfterEnter:dr,onEnterCancelled:dr,onBeforeLeave:dr,onLeave:dr,onAfterLeave:dr,onLeaveCancelled:dr,onBeforeAppear:dr,onAppear:dr,onAfterAppear:dr,onAppearCancelled:dr},_8=e=>{const t=e.subTree;return t.component?_8(t.component):t},$9={name:"BaseTransition",props:y8,setup(e,{slots:t}){const n=ro(),s=S9();return()=>{const r=t.default&&$8(t.default(),!0);if(!r||!r.length)return;const o=w8(r),i=Mt(e),{mode:a}=i;if(s.isLeaving)return _g(o);const c=g$(o);if(!c)return _g(o);let u=L0(c,i,s,n,h=>u=h);c.type!==ns&&Ul(c,u);let f=n.subTree&&g$(n.subTree);if(f&&f.type!==ns&&!Ti(c,f)&&_8(n).type!==ns){let h=L0(f,i,s,n);if(Ul(f,h),a==="out-in"&&c.type!==ns)return s.isLeaving=!0,h.afterLeave=()=>{s.isLeaving=!1,n.job.flags&8||n.update(),delete h.afterLeave,f=void 0},_g(o);a==="in-out"&&c.type!==ns?h.delayLeave=(v,y,S)=>{const k=S8(s,f);k[String(f.key)]=f,v[Oo]=()=>{y(),v[Oo]=void 0,delete u.delayedLeave,f=void 0},u.delayedLeave=()=>{S(),delete u.delayedLeave,f=void 0}}:f=void 0}else f&&(f=void 0);return o}}};function w8(e){let t=e[0];if(e.length>1){for(const n of e)if(n.type!==ns){t=n;break}}return t}const k9=$9;function S8(e,t){const{leavingVNodes:n}=e;let s=n.get(t.type);return s||(s=Object.create(null),n.set(t.type,s)),s}function L0(e,t,n,s,r){const{appear:o,mode:i,persisted:a=!1,onBeforeEnter:c,onEnter:u,onAfterEnter:f,onEnterCancelled:h,onBeforeLeave:v,onLeave:y,onAfterLeave:S,onLeaveCancelled:k,onBeforeAppear:I,onAppear:C,onAfterAppear:$,onAppearCancelled:P}=t,A=String(e.key),R=S8(n,e),B=(V,U)=>{V&&Lr(V,s,9,U)},N=(V,U)=>{const ie=U[1];B(V,U),lt(V)?V.every(le=>le.length<=1)&&ie():V.length<=1&&ie()},W={mode:i,persisted:a,beforeEnter(V){let U=c;if(!n.isMounted)if(o)U=I||c;else return;V[Oo]&&V[Oo](!0);const ie=R[A];ie&&Ti(e,ie)&&ie.el[Oo]&&ie.el[Oo](),B(U,[V])},enter(V){let U=u,ie=f,le=h;if(!n.isMounted)if(o)U=C||u,ie=$||f,le=P||h;else return;let Pe=!1;const qe=V[$f]=Ke=>{Pe||(Pe=!0,Ke?B(le,[V]):B(ie,[V]),W.delayedLeave&&W.delayedLeave(),V[$f]=void 0)};U?N(U,[V,qe]):qe()},leave(V,U){const ie=String(e.key);if(V[$f]&&V[$f](!0),n.isUnmounting)return U();B(v,[V]);let le=!1;const Pe=V[Oo]=qe=>{le||(le=!0,U(),qe?B(k,[V]):B(S,[V]),V[Oo]=void 0,R[ie]===e&&delete R[ie])};R[ie]=e,y?N(y,[V,Pe]):Pe()},clone(V){const U=L0(V,t,n,s,r);return r&&r(U),U}};return W}function _g(e){if(id(e))return e=Go(e),e.children=null,e}function g$(e){if(!id(e))return g8(e.type)&&e.children?w8(e.children):e;if(e.component)return e.component.subTree;const{shapeFlag:t,children:n}=e;if(n){if(t&16)return n[0];if(t&32&&wt(n.default))return n.default()}}function Ul(e,t){e.shapeFlag&6&&e.component?(e.transition=t,Ul(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 $8(e,t=!1,n){let s=[],r=0;for(let o=0;o<e.length;o++){let i=e[o];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:o);i.type===Se?(i.patchFlag&128&&r++,s=s.concat($8(i.children,t,a))):(t||i.type!==ns)&&s.push(a!=null?Go(i,{key:a}):i)}if(r>1)for(let o=0;o<s.length;o++)s[o].patchFlag=-2;return s}/*! #__NO_SIDE_EFFECTS__ */function Wi(e,t){return wt(e)?xn({name:e.name},t,{setup:e}):e}function o_(e){e.ids=[e.ids[0]+e.ids[2]+++"-",0,0]}function wu(e,t,n,s,r=!1){if(lt(e)){e.forEach((S,k)=>wu(S,t&&(lt(t)?t[k]:t),n,s,r));return}if(Ea(s)&&!r){s.shapeFlag&512&&s.type.__asyncResolved&&s.component.subTree.component&&wu(e,t,n,s.component.subTree);return}const o=s.shapeFlag&4?fp(s.component):s.el,i=r?null:o,{i:a,r:c}=e,u=t&&t.r,f=a.refs===fn?a.refs={}:a.refs,h=a.setupState,v=Mt(h),y=h===fn?DA:S=>Zt(v,S);if(u!=null&&u!==c){if($n(u))f[u]=null,y(u)&&(h[u]=null);else if(Sn(u)){u.value=null;const S=t;S.k&&(f[S.k]=null)}}if(wt(c))rd(c,a,12,[i,f]);else{const S=$n(c),k=Sn(c);if(S||k){const I=()=>{if(e.f){const C=S?y(c)?h[c]:f[c]:c.value;if(r)lt(C)&&Ky(C,o);else if(lt(C))C.includes(o)||C.push(o);else if(S)f[c]=[o],y(c)&&(h[c]=f[c]);else{const $=[o];c.value=$,e.k&&(f[e.k]=$)}}else S?(f[c]=i,y(c)&&(h[c]=i)):k&&(c.value=i,e.k&&(f[e.k]=i))};i?(I.id=-1,qn(I,n)):I()}}}const v$=e=>e.nodeType===8;np().requestIdleCallback;np().cancelIdleCallback;function C9(e,t){if(v$(e)&&e.data==="["){let n=1,s=e.nextSibling;for(;s;){if(s.nodeType===1){if(t(s)===!1)break}else if(v$(s))if(s.data==="]"){if(--n===0)break}else s.data==="["&&n++;s=s.nextSibling}}else t(e)}const Ea=e=>!!e.type.__asyncLoader;/*! #__NO_SIDE_EFFECTS__ */function gr(e){wt(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:s,delay:r=200,hydrate:o,timeout:i,suspensible:a=!0,onError:c}=e;let u=null,f,h=0;const v=()=>(h++,u=null,y()),y=()=>{let S;return u||(S=u=t().catch(k=>{if(k=k instanceof Error?k:new Error(String(k)),c)return new Promise((I,C)=>{c(k,()=>I(v()),()=>C(k),h+1)});throw k}).then(k=>S!==u&&u?u:(k&&(k.__esModule||k[Symbol.toStringTag]==="Module")&&(k=k.default),f=k,k)))};return Wi({name:"AsyncComponentWrapper",__asyncLoader:y,__asyncHydrate(S,k,I){let C=!1;(k.bu||(k.bu=[])).push(()=>C=!0);const $=()=>{C||I()},P=o?()=>{const A=o($,R=>C9(S,R));A&&(k.bum||(k.bum=[])).push(A)}:$;f?P():y().then(()=>!k.isUnmounted&&P())},get __asyncResolved(){return f},setup(){const S=ss;if(o_(S),f)return()=>wg(f,S);const k=P=>{u=null,od(P,S,13,!s)};if(a&&S.suspense||jl)return y().then(P=>()=>wg(P,S)).catch(P=>(k(P),()=>s?T(s,{error:P}):null));const I=Kn(!1),C=Kn(),$=Kn(!!r);return r&&setTimeout(()=>{$.value=!1},r),i!=null&&setTimeout(()=>{if(!I.value&&!C.value){const P=new Error(`Async component timed out after ${i}ms.`);k(P),C.value=P}},i),y().then(()=>{I.value=!0,S.parent&&id(S.parent.vnode)&&S.parent.update()}).catch(P=>{k(P),C.value=P}),()=>{if(I.value&&f)return wg(f,S);if(C.value&&s)return T(s,{error:C.value});if(n&&!$.value)return T(n)}}})}function wg(e,t){const{ref:n,props:s,children:r,ce:o}=t.vnode,i=T(e,s,r);return i.ref=n,i.ce=o,delete t.vnode.ce,i}const id=e=>e.type.__isKeepAlive,T9={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=ro(),s=n.ctx;if(!s.renderer)return()=>{const $=t.default&&t.default();return $&&$.length===1?$[0]:$};const r=new Map,o=new Set;let i=null;const a=n.suspense,{renderer:{p:c,m:u,um:f,o:{createElement:h}}}=s,v=h("div");s.activate=($,P,A,R,B)=>{const N=$.component;u($,P,A,0,a),c(N.vnode,$,P,A,N,a,R,$.slotScopeIds,B),qn(()=>{N.isDeactivated=!1,N.a&&Ol(N.a);const W=$.props&&$.props.onVnodeMounted;W&&hr(W,N.parent,$)},a)},s.deactivate=$=>{const P=$.component;mh(P.m),mh(P.a),u($,v,null,1,a),qn(()=>{P.da&&Ol(P.da);const A=$.props&&$.props.onVnodeUnmounted;A&&hr(A,P.parent,$),P.isDeactivated=!0},a)};function y($){Sg($),f($,n,a,!0)}function S($){r.forEach((P,A)=>{const R=D0(P.type);R&&!$(R)&&k(A)})}function k($){const P=r.get($);P&&(!i||!Ti(P,i))?y(P):i&&Sg(i),r.delete($),o.delete($)}os(()=>[e.include,e.exclude],([$,P])=>{$&&S(A=>ru($,A)),P&&S(A=>!ru(P,A))},{flush:"post",deep:!0});let I=null;const C=()=>{I!=null&&(gh(n.subTree.type)?qn(()=>{r.set(I,kf(n.subTree))},n.subTree.suspense):r.set(I,kf(n.subTree)))};return lp(C),T8(C),cp(()=>{r.forEach($=>{const{subTree:P,suspense:A}=n,R=kf(P);if($.type===R.type&&$.key===R.key){Sg(R);const B=R.component.da;B&&qn(B,A);return}y($)})}),()=>{if(I=null,!t.default)return i=null;const $=t.default(),P=$[0];if($.length>1)return i=null,$;if(!Mi(P)||!(P.shapeFlag&4)&&!(P.shapeFlag&128))return i=null,P;let A=kf(P);if(A.type===ns)return i=null,A;const R=A.type,B=D0(Ea(A)?A.type.__asyncResolved||{}:R),{include:N,exclude:W,max:V}=e;if(N&&(!B||!ru(N,B))||W&&B&&ru(W,B))return A.shapeFlag&=-257,i=A,P;const U=A.key==null?R:A.key,ie=r.get(U);return A.el&&(A=Go(A),P.shapeFlag&128&&(P.ssContent=A)),I=U,ie?(A.el=ie.el,A.component=ie.component,A.transition&&Ul(A,A.transition),A.shapeFlag|=512,o.delete(U),o.add(U)):(o.add(U),V&&o.size>parseInt(V,10)&&k(o.values().next().value)),A.shapeFlag|=256,i=A,gh(P.type)?P:A}}},yEe=T9;function ru(e,t){return lt(e)?e.some(n=>ru(n,t)):$n(e)?e.split(",").includes(t):EU(e)?(e.lastIndex=0,e.test(t)):!1}function A9(e,t){k8(e,"a",t)}function E9(e,t){k8(e,"da",t)}function k8(e,t,n=ss){const s=e.__wdc||(e.__wdc=()=>{let r=n;for(;r;){if(r.isDeactivated)return;r=r.parent}return e()});if(ap(t,s,n),n){let r=n.parent;for(;r&&r.parent;)id(r.parent.vnode)&&I9(s,t,n,r),r=r.parent}}function I9(e,t,n,s){const r=ap(t,e,s,!0);i_(()=>{Ky(s[t],r)},n)}function Sg(e){e.shapeFlag&=-257,e.shapeFlag&=-513}function kf(e){return e.shapeFlag&128?e.ssContent:e}function ap(e,t,n=ss,s=!1){if(n){const r=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{Ho();const a=ld(n),c=Lr(t,n,e,i);return a(),Vo(),c});return s?r.unshift(o):r.push(o),o}}const Jo=e=>(t,n=ss)=>{(!jl||e==="sp")&&ap(e,(...s)=>t(...s),n)},C8=Jo("bm"),lp=Jo("m"),P9=Jo("bu"),T8=Jo("u"),cp=Jo("bum"),i_=Jo("um"),L9=Jo("sp"),O9=Jo("rtg"),R9=Jo("rtc");function M9(e,t=ss){ap("ec",e,t)}const a_="components",N9="directives";function O(e,t){return l_(a_,e,!0,t)||e}const A8=Symbol.for("v-ndc");function Oa(e){return $n(e)?l_(a_,e,!1)||e:e||A8}function sc(e){return l_(N9,e)}function l_(e,t,n=!0,s=!1){const r=rs||ss;if(r){const o=r.type;if(e===a_){const a=D0(o,!1);if(a&&(a===t||a===br(t)||a===tp(br(t))))return o}const i=b$(r[e]||o[e],t)||b$(r.appContext[e],t);return!i&&s?o:i}}function b$(e,t){return e&&(e[t]||e[br(t)]||e[tp(br(t))])}function We(e,t,n,s){let r;const o=n,i=lt(e);if(i||$n(e)){const a=i&&Bo(e);let c=!1,u=!1;a&&(c=!mr(e),u=Wo(e),e=rp(e)),r=new Array(e.length);for(let f=0,h=e.length;f<h;f++)r[f]=t(c?u?uh(ts(e[f])):ts(e[f]):e[f],f,void 0,o)}else if(typeof e=="number"){r=new Array(e);for(let a=0;a<e;a++)r[a]=t(a+1,a,void 0,o)}else if(pn(e))if(e[Symbol.iterator])r=Array.from(e,(a,c)=>t(a,c,void 0,o));else{const a=Object.keys(e);r=new Array(a.length);for(let c=0,u=a.length;c<u;c++){const f=a[c];r[c]=t(e[f],f,c,o)}}else r=[];return r}function Ot(e,t,n={},s,r){if(rs.ce||rs.parent&&Ea(rs.parent)&&rs.parent.ce)return t!=="default"&&(n.name=t),p(),Y(Se,null,[T("slot",n,s&&s())],64);let o=e[t];o&&o._c&&(o._d=!1),p();const i=o&&E8(o(n)),a=n.key||i&&i.key,c=Y(Se,{key:(a&&!Ir(a)?a:`_${t}`)+(!i&&s?"_fb":"")},i||(s?s():[]),i&&e._===1?64:-2);return c.scopeId&&(c.slotScopeIds=[c.scopeId+"-s"]),o&&o._c&&(o._d=!0),c}function E8(e){return e.some(t=>Mi(t)?!(t.type===ns||t.type===Se&&!E8(t.children)):!0)?e:null}function F9(e,t){const n={};for(const s in e)n[Vf(s)]=e[s];return n}const O0=e=>e?G8(e)?fp(e):O0(e.parent):null,Su=xn(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=>O0(e.parent),$root:e=>O0(e.root),$host:e=>e.ce,$emit:e=>e.emit,$options:e=>P8(e),$forceUpdate:e=>e.f||(e.f=()=>{r_(e.update)}),$nextTick:e=>e.n||(e.n=Ri.bind(e.proxy)),$watch:e=>rj.bind(e)}),$g=(e,t)=>e!==fn&&!e.__isScriptSetup&&Zt(e,t),D9={get({_:e},t){if(t==="__v_skip")return!0;const{ctx:n,setupState:s,data:r,props:o,accessCache:i,type:a,appContext:c}=e;let u;if(t[0]!=="$"){const y=i[t];if(y!==void 0)switch(y){case 1:return s[t];case 2:return r[t];case 4:return n[t];case 3:return o[t]}else{if($g(s,t))return i[t]=1,s[t];if(r!==fn&&Zt(r,t))return i[t]=2,r[t];if((u=e.propsOptions[0])&&Zt(u,t))return i[t]=3,o[t];if(n!==fn&&Zt(n,t))return i[t]=4,n[t];R0&&(i[t]=0)}}const f=Su[t];let h,v;if(f)return t==="$attrs"&&fs(e.attrs,"get",""),f(e);if((h=a.__cssModules)&&(h=h[t]))return h;if(n!==fn&&Zt(n,t))return i[t]=4,n[t];if(v=c.config.globalProperties,Zt(v,t))return v[t]},set({_:e},t,n){const{data:s,setupState:r,ctx:o}=e;return $g(r,t)?(r[t]=n,!0):s!==fn&&Zt(s,t)?(s[t]=n,!0):Zt(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:s,appContext:r,propsOptions:o,type:i}},a){let c,u;return!!(n[a]||e!==fn&&a[0]!=="$"&&Zt(e,a)||$g(t,a)||(c=o[0])&&Zt(c,a)||Zt(s,a)||Zt(Su,a)||Zt(r.config.globalProperties,a)||(u=i.__cssModules)&&u[a])},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:Zt(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}};function y$(e){return lt(e)?e.reduce((t,n)=>(t[n]=null,t),{}):e}let R0=!0;function U9(e){const t=P8(e),n=e.proxy,s=e.ctx;R0=!1,t.beforeCreate&&_$(t.beforeCreate,e,"bc");const{data:r,computed:o,methods:i,watch:a,provide:c,inject:u,created:f,beforeMount:h,mounted:v,beforeUpdate:y,updated:S,activated:k,deactivated:I,beforeDestroy:C,beforeUnmount:$,destroyed:P,unmounted:A,render:R,renderTracked:B,renderTriggered:N,errorCaptured:W,serverPrefetch:V,expose:U,inheritAttrs:ie,components:le,directives:Pe,filters:qe}=t;if(u&&j9(u,s,null),i)for(const ze in i){const ot=i[ze];wt(ot)&&(s[ze]=ot.bind(n))}if(r){const ze=r.call(n,n);pn(ze)&&(e.data=Pr(ze))}if(R0=!0,o)for(const ze in o){const ot=o[ze],Ct=wt(ot)?ot.bind(n,n):wt(ot.get)?ot.get.bind(n,n):to,dt=!wt(ot)&&wt(ot.set)?ot.set.bind(n):to,bt=vt({get:Ct,set:dt});Object.defineProperty(s,ze,{enumerable:!0,configurable:!0,get:()=>bt.value,set:It=>bt.value=It})}if(a)for(const ze in a)I8(a[ze],s,n,ze);if(c){const ze=wt(c)?c.call(n):c;Reflect.ownKeys(ze).forEach(ot=>{Ml(ot,ze[ot])})}f&&_$(f,e,"c");function Ge(ze,ot){lt(ot)?ot.forEach(Ct=>ze(Ct.bind(n))):ot&&ze(ot.bind(n))}if(Ge(C8,h),Ge(lp,v),Ge(P9,y),Ge(T8,S),Ge(A9,k),Ge(E9,I),Ge(M9,W),Ge(R9,B),Ge(O9,N),Ge(cp,$),Ge(i_,A),Ge(L9,V),lt(U))if(U.length){const ze=e.exposed||(e.exposed={});U.forEach(ot=>{Object.defineProperty(ze,ot,{get:()=>n[ot],set:Ct=>n[ot]=Ct,enumerable:!0})})}else e.exposed||(e.exposed={});R&&e.render===to&&(e.render=R),ie!=null&&(e.inheritAttrs=ie),le&&(e.components=le),Pe&&(e.directives=Pe),V&&o_(e)}function j9(e,t,n=to){lt(e)&&(e=M0(e));for(const s in e){const r=e[s];let o;pn(r)?"default"in r?o=Ys(r.from||s,r.default,!0):o=Ys(r.from||s):o=Ys(r),Sn(o)?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>o.value,set:i=>o.value=i}):t[s]=o}}function _$(e,t,n){Lr(lt(e)?e.map(s=>s.bind(t.proxy)):e.bind(t.proxy),t,n)}function I8(e,t,n,s){let r=s.includes(".")?q8(n,s):()=>n[s];if($n(e)){const o=t[e];wt(o)&&os(r,o)}else if(wt(e))os(r,e.bind(n));else if(pn(e))if(lt(e))e.forEach(o=>I8(o,t,n,s));else{const o=wt(e.handler)?e.handler.bind(n):t[e.handler];wt(o)&&os(r,o,e)}}function P8(e){const t=e.type,{mixins:n,extends:s}=t,{mixins:r,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let c;return a?c=a:!r.length&&!n&&!s?c=t:(c={},r.length&&r.forEach(u=>ph(c,u,i,!0)),ph(c,t,i)),pn(t)&&o.set(t,c),c}function ph(e,t,n,s=!1){const{mixins:r,extends:o}=t;o&&ph(e,o,n,!0),r&&r.forEach(i=>ph(e,i,n,!0));for(const i in t)if(!(s&&i==="expose")){const a=B9[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const B9={data:w$,props:S$,emits:S$,methods:ou,computed:ou,beforeCreate:Ss,created:Ss,beforeMount:Ss,mounted:Ss,beforeUpdate:Ss,updated:Ss,beforeDestroy:Ss,beforeUnmount:Ss,destroyed:Ss,unmounted:Ss,activated:Ss,deactivated:Ss,errorCaptured:Ss,serverPrefetch:Ss,components:ou,directives:ou,watch:q9,provide:w$,inject:z9};function w$(e,t){return t?e?function(){return xn(wt(e)?e.call(this,this):e,wt(t)?t.call(this,this):t)}:t:e}function z9(e,t){return ou(M0(e),M0(t))}function M0(e){if(lt(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function Ss(e,t){return e?[...new Set([].concat(e,t))]:t}function ou(e,t){return e?xn(Object.create(null),e,t):t}function S$(e,t){return e?lt(e)&&lt(t)?[...new Set([...e,...t])]:xn(Object.create(null),y$(e),y$(t??{})):t}function q9(e,t){if(!e)return t;if(!t)return e;const n=xn(Object.create(null),e);for(const s in t)n[s]=Ss(e[s],t[s]);return n}function L8(){return{app:null,config:{isNativeTag:DA,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 H9=0;function V9(e,t){return function(s,r=null){wt(s)||(s=xn({},s)),r!=null&&!pn(r)&&(r=null);const o=L8(),i=new WeakSet,a=[];let c=!1;const u=o.app={_uid:H9++,_component:s,_props:r,_container:null,_context:o,_instance:null,version:$j,get config(){return o.config},set config(f){},use(f,...h){return i.has(f)||(f&&wt(f.install)?(i.add(f),f.install(u,...h)):wt(f)&&(i.add(f),f(u,...h))),u},mixin(f){return o.mixins.includes(f)||o.mixins.push(f),u},component(f,h){return h?(o.components[f]=h,u):o.components[f]},directive(f,h){return h?(o.directives[f]=h,u):o.directives[f]},mount(f,h,v){if(!c){const y=u._ceVNode||T(s,r);return y.appContext=o,v===!0?v="svg":v===!1&&(v=void 0),e(y,f,v),c=!0,u._container=f,f.__vue_app__=u,fp(y.component)}},onUnmount(f){a.push(f)},unmount(){c&&(Lr(a,u._instance,16),e(null,u._container),delete u._container.__vue_app__)},provide(f,h){return o.provides[f]=h,u},runWithContext(f){const h=Ia;Ia=u;try{return f()}finally{Ia=h}}};return u}}let Ia=null;function Ml(e,t){if(ss){let n=ss.provides;const s=ss.parent&&ss.parent.provides;s===n&&(n=ss.provides=Object.create(s)),n[e]=t}}function Ys(e,t,n=!1){const s=ro();if(s||Ia){let r=Ia?Ia._context.provides:s?s.parent==null||s.ce?s.vnode.appContext&&s.vnode.appContext.provides:s.parent.provides:void 0;if(r&&e in r)return r[e];if(arguments.length>1)return n&&wt(t)?t.call(s&&s.proxy):t}}function W9(){return!!(ro()||Ia)}const O8={},R8=()=>Object.create(O8),M8=e=>Object.getPrototypeOf(e)===O8;function G9(e,t,n,s=!1){const r={},o=R8();e.propsDefaults=Object.create(null),N8(e,t,r,o);for(const i in e.propsOptions[0])i in r||(r[i]=void 0);n?e.props=s?r:t_(r):e.type.props?e.props=r:e.props=o,e.attrs=o}function K9(e,t,n,s){const{props:r,attrs:o,vnode:{patchFlag:i}}=e,a=Mt(r),[c]=e.propsOptions;let u=!1;if((s||i>0)&&!(i&16)){if(i&8){const f=e.vnode.dynamicProps;for(let h=0;h<f.length;h++){let v=f[h];if(up(e.emitsOptions,v))continue;const y=t[v];if(c)if(Zt(o,v))y!==o[v]&&(o[v]=y,u=!0);else{const S=br(v);r[S]=N0(c,a,S,y,e,!1)}else y!==o[v]&&(o[v]=y,u=!0)}}}else{N8(e,t,r,o)&&(u=!0);let f;for(const h in a)(!t||!Zt(t,h)&&((f=Vi(h))===h||!Zt(t,f)))&&(c?n&&(n[h]!==void 0||n[f]!==void 0)&&(r[h]=N0(c,a,h,void 0,e,!0)):delete r[h]);if(o!==a)for(const h in o)(!t||!Zt(t,h))&&(delete o[h],u=!0)}u&&Ro(e.attrs,"set","")}function N8(e,t,n,s){const[r,o]=e.propsOptions;let i=!1,a;if(t)for(let c in t){if(vu(c))continue;const u=t[c];let f;r&&Zt(r,f=br(c))?!o||!o.includes(f)?n[f]=u:(a||(a={}))[f]=u:up(e.emitsOptions,c)||(!(c in s)||u!==s[c])&&(s[c]=u,i=!0)}if(o){const c=Mt(n),u=a||fn;for(let f=0;f<o.length;f++){const h=o[f];n[h]=N0(r,c,h,u[h],e,!Zt(u,h))}}return i}function N0(e,t,n,s,r,o){const i=e[n];if(i!=null){const a=Zt(i,"default");if(a&&s===void 0){const c=i.default;if(i.type!==Function&&!i.skipFactory&&wt(c)){const{propsDefaults:u}=r;if(n in u)s=u[n];else{const f=ld(r);s=u[n]=c.call(null,t),f()}}else s=c;r.ce&&r.ce._setProp(n,s)}i[0]&&(o&&!a?s=!1:i[1]&&(s===""||s===Vi(n))&&(s=!0))}return s}const x9=new WeakMap;function F8(e,t,n=!1){const s=n?x9:t.propsCache,r=s.get(e);if(r)return r;const o=e.props,i={},a=[];let c=!1;if(!wt(e)){const f=h=>{c=!0;const[v,y]=F8(h,t,!0);xn(i,v),y&&a.push(...y)};!n&&t.mixins.length&&t.mixins.forEach(f),e.extends&&f(e.extends),e.mixins&&e.mixins.forEach(f)}if(!o&&!c)return pn(e)&&s.set(e,Pl),Pl;if(lt(o))for(let f=0;f<o.length;f++){const h=br(o[f]);$$(h)&&(i[h]=fn)}else if(o)for(const f in o){const h=br(f);if($$(h)){const v=o[f],y=i[h]=lt(v)||wt(v)?{type:v}:xn({},v),S=y.type;let k=!1,I=!0;if(lt(S))for(let C=0;C<S.length;++C){const $=S[C],P=wt($)&&$.name;if(P==="Boolean"){k=!0;break}else P==="String"&&(I=!1)}else k=wt(S)&&S.name==="Boolean";y[0]=k,y[1]=I,(k||Zt(y,"default"))&&a.push(h)}}const u=[i,a];return pn(e)&&s.set(e,u),u}function $$(e){return e[0]!=="$"&&!vu(e)}const c_=e=>e==="_"||e==="_ctx"||e==="$stable",u_=e=>lt(e)?e.map(xr):[xr(e)],Y9=(e,t,n)=>{if(t._n)return t;const s=X((...r)=>u_(t(...r)),n);return s._c=!1,s},D8=(e,t,n)=>{const s=e._ctx;for(const r in e){if(c_(r))continue;const o=e[r];if(wt(o))t[r]=Y9(r,o,s);else if(o!=null){const i=u_(o);t[r]=()=>i}}},U8=(e,t)=>{const n=u_(t);e.slots.default=()=>n},j8=(e,t,n)=>{for(const s in t)(n||!c_(s))&&(e[s]=t[s])},X9=(e,t,n)=>{const s=e.slots=R8();if(e.vnode.shapeFlag&32){const r=t._;r?(j8(s,t,n),n&&zA(s,"_",r,!0)):D8(t,s)}else t&&U8(e,t)},J9=(e,t,n)=>{const{vnode:s,slots:r}=e;let o=!0,i=fn;if(s.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:j8(r,t,n):(o=!t.$stable,D8(t,r)),i=t}else t&&(U8(e,t),i={default:1});if(o)for(const a in r)!c_(a)&&i[a]==null&&delete r[a]},qn=dj;function Z9(e){return Q9(e)}function Q9(e,t){const n=np();n.__VUE__=!0;const{insert:s,remove:r,patchProp:o,createElement:i,createText:a,createComment:c,setText:u,setElementText:f,parentNode:h,nextSibling:v,setScopeId:y=to,insertStaticContent:S}=e,k=(G,K,ee,pe=null,we=null,be=null,j=void 0,q=null,te=!!K.dynamicChildren)=>{if(G===K)return;G&&!Ti(G,K)&&(pe=_e(G),It(G,we,be,!0),G=null),K.patchFlag===-2&&(te=!1,K.dynamicChildren=null);const{type:fe,ref:je,shapeFlag:$e}=K;switch(fe){case ad:I(G,K,ee,pe);break;case ns:C(G,K,ee,pe);break;case Gf:G==null&&$(K,ee,pe,j);break;case Se:le(G,K,ee,pe,we,be,j,q,te);break;default:$e&1?R(G,K,ee,pe,we,be,j,q,te):$e&6?Pe(G,K,ee,pe,we,be,j,q,te):($e&64||$e&128)&&fe.process(G,K,ee,pe,we,be,j,q,te,Ue)}je!=null&&we?wu(je,G&&G.ref,be,K||G,!K):je==null&&G&&G.ref!=null&&wu(G.ref,null,be,G,!0)},I=(G,K,ee,pe)=>{if(G==null)s(K.el=a(K.children),ee,pe);else{const we=K.el=G.el;K.children!==G.children&&u(we,K.children)}},C=(G,K,ee,pe)=>{G==null?s(K.el=c(K.children||""),ee,pe):K.el=G.el},$=(G,K,ee,pe)=>{[G.el,G.anchor]=S(G.children,K,ee,pe,G.el,G.anchor)},P=({el:G,anchor:K},ee,pe)=>{let we;for(;G&&G!==K;)we=v(G),s(G,ee,pe),G=we;s(K,ee,pe)},A=({el:G,anchor:K})=>{let ee;for(;G&&G!==K;)ee=v(G),r(G),G=ee;r(K)},R=(G,K,ee,pe,we,be,j,q,te)=>{K.type==="svg"?j="svg":K.type==="math"&&(j="mathml"),G==null?B(K,ee,pe,we,be,j,q,te):V(G,K,we,be,j,q,te)},B=(G,K,ee,pe,we,be,j,q)=>{let te,fe;const{props:je,shapeFlag:$e,transition:re,dirs:me}=G;if(te=G.el=i(G.type,be,je&&je.is,je),$e&8?f(te,G.children):$e&16&&W(G.children,te,null,pe,we,kg(G,be),j,q),me&&pa(G,null,pe,"created"),N(te,G,G.scopeId,j,pe),je){for(const rt in je)rt!=="value"&&!vu(rt)&&o(te,rt,null,je[rt],be,pe);"value"in je&&o(te,"value",null,je.value,be),(fe=je.onVnodeBeforeMount)&&hr(fe,pe,G)}me&&pa(G,null,pe,"beforeMount");const xe=ej(we,re);xe&&re.beforeEnter(te),s(te,K,ee),((fe=je&&je.onVnodeMounted)||xe||me)&&qn(()=>{fe&&hr(fe,pe,G),xe&&re.enter(te),me&&pa(G,null,pe,"mounted")},we)},N=(G,K,ee,pe,we)=>{if(ee&&y(G,ee),pe)for(let be=0;be<pe.length;be++)y(G,pe[be]);if(we){let be=we.subTree;if(K===be||gh(be.type)&&(be.ssContent===K||be.ssFallback===K)){const j=we.vnode;N(G,j,j.scopeId,j.slotScopeIds,we.parent)}}},W=(G,K,ee,pe,we,be,j,q,te=0)=>{for(let fe=te;fe<G.length;fe++){const je=G[fe]=q?_i(G[fe]):xr(G[fe]);k(null,je,K,ee,pe,we,be,j,q)}},V=(G,K,ee,pe,we,be,j)=>{const q=K.el=G.el;let{patchFlag:te,dynamicChildren:fe,dirs:je}=K;te|=G.patchFlag&16;const $e=G.props||fn,re=K.props||fn;let me;if(ee&&ma(ee,!1),(me=re.onVnodeBeforeUpdate)&&hr(me,ee,K,G),je&&pa(K,G,ee,"beforeUpdate"),ee&&ma(ee,!0),($e.innerHTML&&re.innerHTML==null||$e.textContent&&re.textContent==null)&&f(q,""),fe?U(G.dynamicChildren,fe,q,ee,pe,kg(K,we),be):j||ot(G,K,q,null,ee,pe,kg(K,we),be,!1),te>0){if(te&16)ie(q,$e,re,ee,we);else if(te&2&&$e.class!==re.class&&o(q,"class",null,re.class,we),te&4&&o(q,"style",$e.style,re.style,we),te&8){const xe=K.dynamicProps;for(let rt=0;rt<xe.length;rt++){const ut=xe[rt],Qt=$e[ut],Wt=re[ut];(Wt!==Qt||ut==="value")&&o(q,ut,Qt,Wt,we,ee)}}te&1&&G.children!==K.children&&f(q,K.children)}else!j&&fe==null&&ie(q,$e,re,ee,we);((me=re.onVnodeUpdated)||je)&&qn(()=>{me&&hr(me,ee,K,G),je&&pa(K,G,ee,"updated")},pe)},U=(G,K,ee,pe,we,be,j)=>{for(let q=0;q<K.length;q++){const te=G[q],fe=K[q],je=te.el&&(te.type===Se||!Ti(te,fe)||te.shapeFlag&198)?h(te.el):ee;k(te,fe,je,null,pe,we,be,j,!0)}},ie=(G,K,ee,pe,we)=>{if(K!==ee){if(K!==fn)for(const be in K)!vu(be)&&!(be in ee)&&o(G,be,K[be],null,we,pe);for(const be in ee){if(vu(be))continue;const j=ee[be],q=K[be];j!==q&&be!=="value"&&o(G,be,q,j,we,pe)}"value"in ee&&o(G,"value",K.value,ee.value,we)}},le=(G,K,ee,pe,we,be,j,q,te)=>{const fe=K.el=G?G.el:a(""),je=K.anchor=G?G.anchor:a("");let{patchFlag:$e,dynamicChildren:re,slotScopeIds:me}=K;me&&(q=q?q.concat(me):me),G==null?(s(fe,ee,pe),s(je,ee,pe),W(K.children||[],ee,je,we,be,j,q,te)):$e>0&&$e&64&&re&&G.dynamicChildren?(U(G.dynamicChildren,re,ee,we,be,j,q),(K.key!=null||we&&K===we.subTree)&&d_(G,K,!0)):ot(G,K,ee,je,we,be,j,q,te)},Pe=(G,K,ee,pe,we,be,j,q,te)=>{K.slotScopeIds=q,G==null?K.shapeFlag&512?we.ctx.activate(K,ee,pe,j,te):qe(K,ee,pe,we,be,j,te):Ke(G,K,te)},qe=(G,K,ee,pe,we,be,j)=>{const q=G.component=vj(G,pe,we);if(id(G)&&(q.ctx.renderer=Ue),bj(q,!1,j),q.asyncDep){if(we&&we.registerDep(q,Ge,j),!G.el){const te=q.subTree=T(ns);C(null,te,K,ee),G.placeholder=te.el}}else Ge(q,G,K,ee,we,be,j)},Ke=(G,K,ee)=>{const pe=K.component=G.component;if(cj(G,K,ee))if(pe.asyncDep&&!pe.asyncResolved){ze(pe,K,ee);return}else pe.next=K,pe.update();else K.el=G.el,pe.vnode=K},Ge=(G,K,ee,pe,we,be,j)=>{const q=()=>{if(G.isMounted){let{next:$e,bu:re,u:me,parent:xe,vnode:rt}=G;{const On=B8(G);if(On){$e&&($e.el=rt.el,ze(G,$e,j)),On.asyncDep.then(()=>{G.isUnmounted||q()});return}}let ut=$e,Qt;ma(G,!1),$e?($e.el=rt.el,ze(G,$e,j)):$e=rt,re&&Ol(re),(Qt=$e.props&&$e.props.onVnodeBeforeUpdate)&&hr(Qt,xe,$e,rt),ma(G,!0);const Wt=k$(G),En=G.subTree;G.subTree=Wt,k(En,Wt,h(En.el),_e(En),G,we,be),$e.el=Wt.el,ut===null&&uj(G,Wt.el),me&&qn(me,we),(Qt=$e.props&&$e.props.onVnodeUpdated)&&qn(()=>hr(Qt,xe,$e,rt),we)}else{let $e;const{el:re,props:me}=K,{bm:xe,m:rt,parent:ut,root:Qt,type:Wt}=G,En=Ea(K);ma(G,!1),xe&&Ol(xe),!En&&($e=me&&me.onVnodeBeforeMount)&&hr($e,ut,K),ma(G,!0);{Qt.ce&&Qt.ce._def.shadowRoot!==!1&&Qt.ce._injectChildStyle(Wt);const On=G.subTree=k$(G);k(null,On,ee,pe,G,we,be),K.el=On.el}if(rt&&qn(rt,we),!En&&($e=me&&me.onVnodeMounted)){const On=K;qn(()=>hr($e,ut,On),we)}(K.shapeFlag&256||ut&&Ea(ut.vnode)&&ut.vnode.shapeFlag&256)&&G.a&&qn(G.a,we),G.isMounted=!0,K=ee=pe=null}};G.scope.on();const te=G.effect=new KA(q);G.scope.off();const fe=G.update=te.run.bind(te),je=G.job=te.runIfDirty.bind(te);je.i=G,je.id=G.uid,te.scheduler=()=>r_(je),ma(G,!0),fe()},ze=(G,K,ee)=>{K.component=G;const pe=G.vnode.props;G.vnode=K,G.next=null,K9(G,K.props,pe,ee),J9(G,K.children,ee),Ho(),f$(G),Vo()},ot=(G,K,ee,pe,we,be,j,q,te=!1)=>{const fe=G&&G.children,je=G?G.shapeFlag:0,$e=K.children,{patchFlag:re,shapeFlag:me}=K;if(re>0){if(re&128){dt(fe,$e,ee,pe,we,be,j,q,te);return}else if(re&256){Ct(fe,$e,ee,pe,we,be,j,q,te);return}}me&8?(je&16&&Ht(fe,we,be),$e!==fe&&f(ee,$e)):je&16?me&16?dt(fe,$e,ee,pe,we,be,j,q,te):Ht(fe,we,be,!0):(je&8&&f(ee,""),me&16&&W($e,ee,pe,we,be,j,q,te))},Ct=(G,K,ee,pe,we,be,j,q,te)=>{G=G||Pl,K=K||Pl;const fe=G.length,je=K.length,$e=Math.min(fe,je);let re;for(re=0;re<$e;re++){const me=K[re]=te?_i(K[re]):xr(K[re]);k(G[re],me,ee,null,we,be,j,q,te)}fe>je?Ht(G,we,be,!0,!1,$e):W(K,ee,pe,we,be,j,q,te,$e)},dt=(G,K,ee,pe,we,be,j,q,te)=>{let fe=0;const je=K.length;let $e=G.length-1,re=je-1;for(;fe<=$e&&fe<=re;){const me=G[fe],xe=K[fe]=te?_i(K[fe]):xr(K[fe]);if(Ti(me,xe))k(me,xe,ee,null,we,be,j,q,te);else break;fe++}for(;fe<=$e&&fe<=re;){const me=G[$e],xe=K[re]=te?_i(K[re]):xr(K[re]);if(Ti(me,xe))k(me,xe,ee,null,we,be,j,q,te);else break;$e--,re--}if(fe>$e){if(fe<=re){const me=re+1,xe=me<je?K[me].el:pe;for(;fe<=re;)k(null,K[fe]=te?_i(K[fe]):xr(K[fe]),ee,xe,we,be,j,q,te),fe++}}else if(fe>re)for(;fe<=$e;)It(G[fe],we,be,!0),fe++;else{const me=fe,xe=fe,rt=new Map;for(fe=xe;fe<=re;fe++){const ln=K[fe]=te?_i(K[fe]):xr(K[fe]);ln.key!=null&&rt.set(ln.key,fe)}let ut,Qt=0;const Wt=re-xe+1;let En=!1,On=0;const Cs=new Array(Wt);for(fe=0;fe<Wt;fe++)Cs[fe]=0;for(fe=me;fe<=$e;fe++){const ln=G[fe];if(Qt>=Wt){It(ln,we,be,!0);continue}let Rn;if(ln.key!=null)Rn=rt.get(ln.key);else for(ut=xe;ut<=re;ut++)if(Cs[ut-xe]===0&&Ti(ln,K[ut])){Rn=ut;break}Rn===void 0?It(ln,we,be,!0):(Cs[Rn-xe]=fe+1,Rn>=On?On=Rn:En=!0,k(ln,K[Rn],ee,null,we,be,j,q,te),Qt++)}const tr=En?tj(Cs):Pl;for(ut=tr.length-1,fe=Wt-1;fe>=0;fe--){const ln=xe+fe,Rn=K[ln],nr=K[ln+1],Fr=ln+1<je?nr.el||nr.placeholder:pe;Cs[fe]===0?k(null,Rn,ee,Fr,we,be,j,q,te):En&&(ut<0||fe!==tr[ut]?bt(Rn,ee,Fr,2):ut--)}}},bt=(G,K,ee,pe,we=null)=>{const{el:be,type:j,transition:q,children:te,shapeFlag:fe}=G;if(fe&6){bt(G.component.subTree,K,ee,pe);return}if(fe&128){G.suspense.move(K,ee,pe);return}if(fe&64){j.move(G,K,ee,Ue);return}if(j===Se){s(be,K,ee);for(let $e=0;$e<te.length;$e++)bt(te[$e],K,ee,pe);s(G.anchor,K,ee);return}if(j===Gf){P(G,K,ee);return}if(pe!==2&&fe&1&&q)if(pe===0)q.beforeEnter(be),s(be,K,ee),qn(()=>q.enter(be),we);else{const{leave:$e,delayLeave:re,afterLeave:me}=q,xe=()=>{G.ctx.isUnmounted?r(be):s(be,K,ee)},rt=()=>{be._isLeaving&&be[Oo](!0),$e(be,()=>{xe(),me&&me()})};re?re(be,xe,rt):rt()}else s(be,K,ee)},It=(G,K,ee,pe=!1,we=!1)=>{const{type:be,props:j,ref:q,children:te,dynamicChildren:fe,shapeFlag:je,patchFlag:$e,dirs:re,cacheIndex:me}=G;if($e===-2&&(we=!1),q!=null&&(Ho(),wu(q,null,ee,G,!0),Vo()),me!=null&&(K.renderCache[me]=void 0),je&256){K.ctx.deactivate(G);return}const xe=je&1&&re,rt=!Ea(G);let ut;if(rt&&(ut=j&&j.onVnodeBeforeUnmount)&&hr(ut,K,G),je&6)ft(G.component,ee,pe);else{if(je&128){G.suspense.unmount(ee,pe);return}xe&&pa(G,null,K,"beforeUnmount"),je&64?G.type.remove(G,K,ee,Ue,pe):fe&&!fe.hasOnce&&(be!==Se||$e>0&&$e&64)?Ht(fe,K,ee,!1,!0):(be===Se&&$e&384||!we&&je&16)&&Ht(te,K,ee),pe&&nt(G)}(rt&&(ut=j&&j.onVnodeUnmounted)||xe)&&qn(()=>{ut&&hr(ut,K,G),xe&&pa(G,null,K,"unmounted")},ee)},nt=G=>{const{type:K,el:ee,anchor:pe,transition:we}=G;if(K===Se){_t(ee,pe);return}if(K===Gf){A(G);return}const be=()=>{r(ee),we&&!we.persisted&&we.afterLeave&&we.afterLeave()};if(G.shapeFlag&1&&we&&!we.persisted){const{leave:j,delayLeave:q}=we,te=()=>j(ee,be);q?q(G.el,be,te):te()}else be()},_t=(G,K)=>{let ee;for(;G!==K;)ee=v(G),r(G),G=ee;r(K)},ft=(G,K,ee)=>{const{bum:pe,scope:we,job:be,subTree:j,um:q,m:te,a:fe}=G;mh(te),mh(fe),pe&&Ol(pe),we.stop(),be&&(be.flags|=8,It(j,G,K,ee)),q&&qn(q,K),qn(()=>{G.isUnmounted=!0},K)},Ht=(G,K,ee,pe=!1,we=!1,be=0)=>{for(let j=be;j<G.length;j++)It(G[j],K,ee,pe,we)},_e=G=>{if(G.shapeFlag&6)return _e(G.component.subTree);if(G.shapeFlag&128)return G.suspense.next();const K=v(G.anchor||G.el),ee=K&&K[m8];return ee?v(ee):K};let Me=!1;const Fe=(G,K,ee)=>{G==null?K._vnode&&It(K._vnode,null,null,!0):k(K._vnode||null,G,K,null,null,null,ee),K._vnode=G,Me||(Me=!0,f$(),h8(),Me=!1)},Ue={p:k,um:It,m:bt,r:nt,mt:qe,mc:W,pc:ot,pbc:U,n:_e,o:e};return{render:Fe,hydrate:void 0,createApp:V9(Fe)}}function kg({type:e,props:t},n){return n==="svg"&&e==="foreignObject"||n==="mathml"&&e==="annotation-xml"&&t&&t.encoding&&t.encoding.includes("html")?void 0:n}function ma({effect:e,job:t},n){n?(e.flags|=32,t.flags|=4):(e.flags&=-33,t.flags&=-5)}function ej(e,t){return(!e||e&&!e.pendingBranch)&&t&&!t.persisted}function d_(e,t,n=!1){const s=e.children,r=t.children;if(lt(s)&&lt(r))for(let o=0;o<s.length;o++){const i=s[o];let a=r[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=r[o]=_i(r[o]),a.el=i.el),!n&&a.patchFlag!==-2&&d_(i,a)),a.type===ad&&a.patchFlag!==-1&&(a.el=i.el),a.type===ns&&!a.el&&(a.el=i.el)}}function tj(e){const t=e.slice(),n=[0];let s,r,o,i,a;const c=e.length;for(s=0;s<c;s++){const u=e[s];if(u!==0){if(r=n[n.length-1],e[r]<u){t[s]=r,n.push(s);continue}for(o=0,i=n.length-1;o<i;)a=o+i>>1,e[n[a]]<u?o=a+1:i=a;u<e[n[o]]&&(o>0&&(t[s]=n[o-1]),n[o]=s)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}function B8(e){const t=e.subTree.component;if(t)return t.asyncDep&&!t.asyncResolved?t:B8(t)}function mh(e){if(e)for(let t=0;t<e.length;t++)e[t].flags|=8}const nj=Symbol.for("v-scx"),sj=()=>Ys(nj);function os(e,t,n){return z8(e,t,n)}function z8(e,t,n=fn){const{immediate:s,deep:r,flush:o,once:i}=n,a=xn({},n),c=t&&s||!t&&o!=="post";let u;if(jl){if(o==="sync"){const y=sj();u=y.__watcherHandles||(y.__watcherHandles=[])}else if(!c){const y=()=>{};return y.stop=to,y.resume=to,y.pause=to,y}}const f=ss;a.call=(y,S,k)=>Lr(y,f,S,k);let h=!1;o==="post"?a.scheduler=y=>{qn(y,f&&f.suspense)}:o!=="sync"&&(h=!0,a.scheduler=(y,S)=>{S?y():r_(y)}),a.augmentJob=y=>{t&&(y.flags|=4),h&&(y.flags|=2,f&&(y.id=f.uid,y.i=f))};const v=p9(e,t,a);return jl&&(u?u.push(v):c&&v()),v}function rj(e,t,n){const s=this.proxy,r=$n(e)?e.includes(".")?q8(s,e):()=>s[e]:e.bind(s,s);let o;wt(t)?o=t:(o=t.handler,n=t);const i=ld(this),a=z8(r,o.bind(s),n);return i(),a}function q8(e,t){const n=t.split(".");return()=>{let s=e;for(let r=0;r<n.length&&s;r++)s=s[n[r]];return s}}const oj=(e,t)=>t==="modelValue"||t==="model-value"?e.modelModifiers:e[`${t}Modifiers`]||e[`${br(t)}Modifiers`]||e[`${Vi(t)}Modifiers`];function ij(e,t,...n){if(e.isUnmounted)return;const s=e.vnode.props||fn;let r=n;const o=t.startsWith("update:"),i=o&&oj(s,t.slice(7));i&&(i.trim&&(r=n.map(f=>$n(f)?f.trim():f)),i.number&&(r=n.map(ah)));let a,c=s[a=Vf(t)]||s[a=Vf(br(t))];!c&&o&&(c=s[a=Vf(Vi(t))]),c&&Lr(c,e,6,r);const u=s[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Lr(u,e,6,r)}}function H8(e,t,n=!1){const s=t.emitsCache,r=s.get(e);if(r!==void 0)return r;const o=e.emits;let i={},a=!1;if(!wt(e)){const c=u=>{const f=H8(u,t,!0);f&&(a=!0,xn(i,f))};!n&&t.mixins.length&&t.mixins.forEach(c),e.extends&&c(e.extends),e.mixins&&e.mixins.forEach(c)}return!o&&!a?(pn(e)&&s.set(e,null),null):(lt(o)?o.forEach(c=>i[c]=null):xn(i,o),pn(e)&&s.set(e,i),i)}function up(e,t){return!e||!Qh(t)?!1:(t=t.slice(2).replace(/Once$/,""),Zt(e,t[0].toLowerCase()+t.slice(1))||Zt(e,Vi(t))||Zt(e,t))}function k$(e){const{type:t,vnode:n,proxy:s,withProxy:r,propsOptions:[o],slots:i,attrs:a,emit:c,render:u,renderCache:f,props:h,data:v,setupState:y,ctx:S,inheritAttrs:k}=e,I=hh(e);let C,$;try{if(n.shapeFlag&4){const A=r||s,R=A;C=xr(u.call(R,A,f,h,y,v,S)),$=a}else{const A=t;C=xr(A.length>1?A(h,{attrs:a,slots:i,emit:c}):A(h,null)),$=t.props?a:aj(a)}}catch(A){$u.length=0,od(A,e,1),C=T(ns)}let P=C;if($&&k!==!1){const A=Object.keys($),{shapeFlag:R}=P;A.length&&R&7&&(o&&A.some(Gy)&&($=lj($,o)),P=Go(P,$,!1,!0))}return n.dirs&&(P=Go(P,null,!1,!0),P.dirs=P.dirs?P.dirs.concat(n.dirs):n.dirs),n.transition&&Ul(P,n.transition),C=P,hh(I),C}const aj=e=>{let t;for(const n in e)(n==="class"||n==="style"||Qh(n))&&((t||(t={}))[n]=e[n]);return t},lj=(e,t)=>{const n={};for(const s in e)(!Gy(s)||!(s.slice(9)in t))&&(n[s]=e[s]);return n};function cj(e,t,n){const{props:s,children:r,component:o}=e,{props:i,children:a,patchFlag:c}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&c>=0){if(c&1024)return!0;if(c&16)return s?C$(s,i,u):!!i;if(c&8){const f=t.dynamicProps;for(let h=0;h<f.length;h++){const v=f[h];if(i[v]!==s[v]&&!up(u,v))return!0}}}else return(r||a)&&(!a||!a.$stable)?!0:s===i?!1:s?i?C$(s,i,u):!0:!!i;return!1}function C$(e,t,n){const s=Object.keys(t);if(s.length!==Object.keys(e).length)return!0;for(let r=0;r<s.length;r++){const o=s[r];if(t[o]!==e[o]&&!up(n,o))return!0}return!1}function uj({vnode:e,parent:t},n){for(;t;){const s=t.subTree;if(s.suspense&&s.suspense.activeBranch===e&&(s.el=e.el),s===e)(e=t.vnode).el=n,t=t.parent;else break}}const gh=e=>e.__isSuspense;function dj(e,t){t&&t.pendingBranch?lt(e)?t.effects.push(...e):t.effects.push(e):v9(e)}const Se=Symbol.for("v-fgt"),ad=Symbol.for("v-txt"),ns=Symbol.for("v-cmt"),Gf=Symbol.for("v-stc"),$u=[];let xs=null;function p(e=!1){$u.push(xs=e?null:[])}function fj(){$u.pop(),xs=$u[$u.length-1]||null}let Vu=1;function T$(e,t=!1){Vu+=e,e<0&&xs&&t&&(xs.hasOnce=!0)}function V8(e){return e.dynamicChildren=Vu>0?xs||Pl:null,fj(),Vu>0&&xs&&xs.push(e),e}function b(e,t,n,s,r,o){return V8(g(e,t,n,s,r,o,!0))}function Y(e,t,n,s,r){return V8(T(e,t,n,s,r,!0))}function Mi(e){return e?e.__v_isVNode===!0:!1}function Ti(e,t){return e.type===t.type&&e.key===t.key}const W8=({key:e})=>e??null,Kf=({ref:e,ref_key:t,ref_for:n})=>(typeof e=="number"&&(e=""+e),e!=null?$n(e)||Sn(e)||wt(e)?{i:rs,r:e,k:t,f:!!n}:e:null);function g(e,t=null,n=null,s=0,r=null,o=e===Se?0:1,i=!1,a=!1){const c={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&W8(t),ref:t&&Kf(t),scopeId:ip,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetStart:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:s,dynamicProps:r,dynamicChildren:null,appContext:null,ctx:rs};return a?(f_(c,n),o&128&&e.normalize(c)):n&&(c.shapeFlag|=$n(n)?8:16),Vu>0&&!i&&xs&&(c.patchFlag>0||o&6)&&c.patchFlag!==32&&xs.push(c),c}const T=hj;function hj(e,t=null,n=null,s=0,r=null,o=!1){if((!e||e===A8)&&(e=ns),Mi(e)){const a=Go(e,t,!0);return n&&f_(a,n),Vu>0&&!o&&xs&&(a.shapeFlag&6?xs[xs.indexOf(e)]=a:xs.push(a)),a.patchFlag=-2,a}if(Sj(e)&&(e=e.__vccOpts),t){t=dp(t);let{class:a,style:c}=t;a&&!$n(a)&&(t.class=he(a)),pn(c)&&(s_(c)&&!lt(c)&&(c=xn({},c)),t.style=hn(c))}const i=$n(e)?1:gh(e)?128:g8(e)?64:pn(e)?4:wt(e)?2:0;return g(e,t,n,s,r,i,o,!0)}function dp(e){return e?s_(e)||M8(e)?xn({},e):e:null}function Go(e,t,n=!1,s=!1){const{props:r,ref:o,patchFlag:i,children:a,transition:c}=e,u=t?An(r||{},t):r,f={__v_isVNode:!0,__v_skip:!0,type:e.type,props:u,key:u&&W8(u),ref:t&&t.ref?n&&o?lt(o)?o.concat(Kf(t)):[o,Kf(t)]:Kf(t):o,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:a,target:e.target,targetStart:e.targetStart,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Se?i===-1?16:i|16:i,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:c,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Go(e.ssContent),ssFallback:e.ssFallback&&Go(e.ssFallback),placeholder:e.placeholder,el:e.el,anchor:e.anchor,ctx:e.ctx,ce:e.ce};return c&&s&&Ul(f,c.clone(f)),f}function de(e=" ",t=0){return T(ad,null,e,t)}function pj(e,t){const n=T(Gf,null,e);return n.staticCount=t,n}function E(e="",t=!1){return t?(p(),Y(ns,null,e)):T(ns,null,e)}function xr(e){return e==null||typeof e=="boolean"?T(ns):lt(e)?T(Se,null,e.slice()):Mi(e)?_i(e):T(ad,null,String(e))}function _i(e){return e.el===null&&e.patchFlag!==-1||e.memo?e:Go(e)}function f_(e,t){let n=0;const{shapeFlag:s}=e;if(t==null)t=null;else if(lt(t))n=16;else if(typeof t=="object")if(s&65){const r=t.default;r&&(r._c&&(r._d=!1),f_(e,r()),r._c&&(r._d=!0));return}else{n=32;const r=t._;!r&&!M8(t)?t._ctx=rs:r===3&&rs&&(rs.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else wt(t)?(t={default:t,_ctx:rs},n=32):(t=String(t),s&64?(n=16,t=[de(t)]):n=8);e.children=t,e.shapeFlag|=n}function An(...e){const t={};for(let n=0;n<e.length;n++){const s=e[n];for(const r in s)if(r==="class")t.class!==s.class&&(t.class=he([t.class,s.class]));else if(r==="style")t.style=hn([t.style,s.style]);else if(Qh(r)){const o=t[r],i=s[r];i&&o!==i&&!(lt(o)&&o.includes(i))&&(t[r]=o?[].concat(o,i):i)}else r!==""&&(t[r]=s[r])}return t}function hr(e,t,n,s=null){Lr(e,t,7,[n,s])}const mj=L8();let gj=0;function vj(e,t,n){const s=e.type,r=(t?t.appContext:e.appContext)||mj,o={uid:gj++,vnode:e,type:s,parent:t,appContext:r,root:null,next:null,subTree:null,effect:null,update:null,job:null,scope:new WA(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(r.provides),ids:t?t.ids:["",0,0],accessCache:null,renderCache:[],components:null,directives:null,propsOptions:F8(s,r),emitsOptions:H8(s,r),emit:null,emitted:null,propsDefaults:fn,inheritAttrs:s.inheritAttrs,ctx:fn,data:fn,props:fn,attrs:fn,slots:fn,refs:fn,setupState:fn,setupContext: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=ij.bind(null,o),e.ce&&e.ce(o),o}let ss=null;const ro=()=>ss||rs;let vh,F0;{const e=np(),t=(n,s)=>{let r;return(r=e[n])||(r=e[n]=[]),r.push(s),o=>{r.length>1?r.forEach(i=>i(o)):r[0](o)}};vh=t("__VUE_INSTANCE_SETTERS__",n=>ss=n),F0=t("__VUE_SSR_SETTERS__",n=>jl=n)}const ld=e=>{const t=ss;return vh(e),e.scope.on(),()=>{e.scope.off(),vh(t)}},A$=()=>{ss&&ss.scope.off(),vh(null)};function G8(e){return e.vnode.shapeFlag&4}let jl=!1;function bj(e,t=!1,n=!1){t&&F0(t);const{props:s,children:r}=e.vnode,o=G8(e);G9(e,s,o,t),X9(e,r,n||t);const i=o?yj(e,t):void 0;return t&&F0(!1),i}function yj(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=new Proxy(e.ctx,D9);const{setup:s}=n;if(s){Ho();const r=e.setupContext=s.length>1?wj(e):null,o=ld(e),i=rd(s,e,0,[e.props,r]),a=UA(i);if(Vo(),o(),(a||e.sp)&&!Ea(e)&&o_(e),a){if(i.then(A$,A$),t)return i.then(c=>{E$(e,c)}).catch(c=>{od(c,e,0)});e.asyncDep=i}else E$(e,i)}else K8(e)}function E$(e,t,n){wt(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:pn(t)&&(e.setupState=u8(t)),K8(e)}function K8(e,t,n){const s=e.type;e.render||(e.render=s.render||to);{const r=ld(e);Ho();try{U9(e)}finally{Vo(),r()}}}const _j={get(e,t){return fs(e,"get",""),e[t]}};function wj(e){const t=n=>{e.exposed=n||{}};return{attrs:new Proxy(e.attrs,_j),slots:e.slots,emit:e.emit,expose:t}}function fp(e){return e.exposed?e.exposeProxy||(e.exposeProxy=new Proxy(u8(op(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in Su)return Su[n](e)},has(t,n){return n in t||n in Su}})):e.proxy}function D0(e,t=!0){return wt(e)?e.displayName||e.name:e.name||t&&e.__name}function Sj(e){return wt(e)&&"__vccOpts"in e}const vt=(e,t)=>f9(e,t,jl);function Zo(e,t,n){const s=arguments.length;return s===2?pn(t)&&!lt(t)?Mi(t)?T(e,null,[t]):T(e,t):T(e,null,t):(s>3?n=Array.prototype.slice.call(arguments,2):s===3&&Mi(n)&&(n=[n]),T(e,t,n))}const $j="3.5.19";/**
* @vue/runtime-dom v3.5.19
* (c) 2018-present Yuxi (Evan) You and Vue contributors
* @license MIT
**/let U0;const I$=typeof window<"u"&&window.trustedTypes;if(I$)try{U0=I$.createPolicy("vue",{createHTML:e=>e})}catch{}const x8=U0?e=>U0.createHTML(e):e=>e,kj="http://www.w3.org/2000/svg",Cj="http://www.w3.org/1998/Math/MathML",Po=typeof document<"u"?document:null,P$=Po&&Po.createElement("template"),Tj={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,s)=>{const r=t==="svg"?Po.createElementNS(kj,e):t==="mathml"?Po.createElementNS(Cj,e):n?Po.createElement(e,{is:n}):Po.createElement(e);return e==="select"&&s&&s.multiple!=null&&r.setAttribute("multiple",s.multiple),r},createText:e=>Po.createTextNode(e),createComment:e=>Po.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>Po.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},insertStaticContent(e,t,n,s,r,o){const i=n?n.previousSibling:t.lastChild;if(r&&(r===o||r.nextSibling))for(;t.insertBefore(r.cloneNode(!0),n),!(r===o||!(r=r.nextSibling)););else{P$.innerHTML=x8(s==="svg"?`<svg>${e}</svg>`:s==="mathml"?`<math>${e}</math>`:e);const a=P$.content;if(s==="svg"||s==="mathml"){const c=a.firstChild;for(;c.firstChild;)a.appendChild(c.firstChild);a.removeChild(c)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}},pi="transition",xc="animation",Wu=Symbol("_vtc"),Y8={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},Aj=xn({},y8,Y8),Ej=e=>(e.displayName="Transition",e.props=Aj,e),X8=Ej((e,{slots:t})=>Zo(k9,Ij(e),t)),ga=(e,t=[])=>{lt(e)?e.forEach(n=>n(...t)):e&&e(...t)},L$=e=>e?lt(e)?e.some(t=>t.length>1):e.length>1:!1;function Ij(e){const t={};for(const le in e)le in Y8||(t[le]=e[le]);if(e.css===!1)return t;const{name:n="v",type:s,duration:r,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:c=o,appearActiveClass:u=i,appearToClass:f=a,leaveFromClass:h=`${n}-leave-from`,leaveActiveClass:v=`${n}-leave-active`,leaveToClass:y=`${n}-leave-to`}=e,S=Pj(r),k=S&&S[0],I=S&&S[1],{onBeforeEnter:C,onEnter:$,onEnterCancelled:P,onLeave:A,onLeaveCancelled:R,onBeforeAppear:B=C,onAppear:N=$,onAppearCancelled:W=P}=t,V=(le,Pe,qe,Ke)=>{le._enterCancelled=Ke,va(le,Pe?f:a),va(le,Pe?u:i),qe&&qe()},U=(le,Pe)=>{le._isLeaving=!1,va(le,h),va(le,y),va(le,v),Pe&&Pe()},ie=le=>(Pe,qe)=>{const Ke=le?N:$,Ge=()=>V(Pe,le,qe);ga(Ke,[Pe,Ge]),O$(()=>{va(Pe,le?c:o),Ao(Pe,le?f:a),L$(Ke)||R$(Pe,s,k,Ge)})};return xn(t,{onBeforeEnter(le){ga(C,[le]),Ao(le,o),Ao(le,i)},onBeforeAppear(le){ga(B,[le]),Ao(le,c),Ao(le,u)},onEnter:ie(!1),onAppear:ie(!0),onLeave(le,Pe){le._isLeaving=!0;const qe=()=>U(le,Pe);Ao(le,h),le._enterCancelled?(Ao(le,v),F$()):(F$(),Ao(le,v)),O$(()=>{le._isLeaving&&(va(le,h),Ao(le,y),L$(A)||R$(le,s,I,qe))}),ga(A,[le,qe])},onEnterCancelled(le){V(le,!1,void 0,!0),ga(P,[le])},onAppearCancelled(le){V(le,!0,void 0,!0),ga(W,[le])},onLeaveCancelled(le){U(le),ga(R,[le])}})}function Pj(e){if(e==null)return null;if(pn(e))return[Cg(e.enter),Cg(e.leave)];{const t=Cg(e);return[t,t]}}function Cg(e){return OU(e)}function Ao(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e[Wu]||(e[Wu]=new Set)).add(t)}function va(e,t){t.split(/\s+/).forEach(s=>s&&e.classList.remove(s));const n=e[Wu];n&&(n.delete(t),n.size||(e[Wu]=void 0))}function O$(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Lj=0;function R$(e,t,n,s){const r=e._endId=++Lj,o=()=>{r===e._endId&&s()};if(n!=null)return setTimeout(o,n);const{type:i,timeout:a,propCount:c}=Oj(e,t);if(!i)return s();const u=i+"end";let f=0;const h=()=>{e.removeEventListener(u,v),o()},v=y=>{y.target===e&&++f>=c&&h()};setTimeout(()=>{f<c&&h()},a+1),e.addEventListener(u,v)}function Oj(e,t){const n=window.getComputedStyle(e),s=S=>(n[S]||"").split(", "),r=s(`${pi}Delay`),o=s(`${pi}Duration`),i=M$(r,o),a=s(`${xc}Delay`),c=s(`${xc}Duration`),u=M$(a,c);let f=null,h=0,v=0;t===pi?i>0&&(f=pi,h=i,v=o.length):t===xc?u>0&&(f=xc,h=u,v=c.length):(h=Math.max(i,u),f=h>0?i>u?pi:xc:null,v=f?f===pi?o.length:c.length:0);const y=f===pi&&/\b(transform|all)(,|$)/.test(s(`${pi}Property`).toString());return{type:f,timeout:h,propCount:v,hasTransform:y}}function M$(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,s)=>N$(n)+N$(e[s])))}function N$(e){return e==="auto"?0:Number(e.slice(0,-1).replace(",","."))*1e3}function F$(){return document.body.offsetHeight}function Rj(e,t,n){const s=e[Wu];s&&(t=(t?[t,...s]:[...s]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}const bh=Symbol("_vod"),J8=Symbol("_vsh"),Cr={beforeMount(e,{value:t},{transition:n}){e[bh]=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Yc(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:s}){!t!=!n&&(s?t?(s.beforeEnter(e),Yc(e,!0),s.enter(e)):s.leave(e,()=>{Yc(e,!1)}):Yc(e,t))},beforeUnmount(e,{value:t}){Yc(e,t)}};function Yc(e,t){e.style.display=t?e[bh]:"none",e[J8]=!t}const Mj=Symbol(""),Nj=/(^|;)\s*display\s*:/;function Fj(e,t,n){const s=e.style,r=$n(n);let o=!1;if(n&&!r){if(t)if($n(t))for(const i of t.split(";")){const a=i.slice(0,i.indexOf(":")).trim();n[a]==null&&xf(s,a,"")}else for(const i in t)n[i]==null&&xf(s,i,"");for(const i in n)i==="display"&&(o=!0),xf(s,i,n[i])}else if(r){if(t!==n){const i=s[Mj];i&&(n+=";"+i),s.cssText=n,o=Nj.test(n)}}else t&&e.removeAttribute("style");bh in e&&(e[bh]=o?s.display:"",e[J8]&&(s.display="none"))}const D$=/\s*!important$/;function xf(e,t,n){if(lt(n))n.forEach(s=>xf(e,t,s));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const s=Dj(e,t);D$.test(n)?e.setProperty(Vi(s),n.replace(D$,""),"important"):e[s]=n}}const U$=["Webkit","Moz","ms"],Tg={};function Dj(e,t){const n=Tg[t];if(n)return n;let s=br(t);if(s!=="filter"&&s in e)return Tg[t]=s;s=tp(s);for(let r=0;r<U$.length;r++){const o=U$[r]+s;if(o in e)return Tg[t]=o}return t}const j$="http://www.w3.org/1999/xlink";function B$(e,t,n,s,r,o=UU(t)){s&&t.startsWith("xlink:")?n==null?e.removeAttributeNS(j$,t.slice(6,t.length)):e.setAttributeNS(j$,t,n):n==null||o&&!qA(n)?e.removeAttribute(t):e.setAttribute(t,o?"":Ir(n)?String(n):n)}function z$(e,t,n,s,r){if(t==="innerHTML"||t==="textContent"){n!=null&&(e[t]=t==="innerHTML"?x8(n):n);return}const o=e.tagName;if(t==="value"&&o!=="PROGRESS"&&!o.includes("-")){const a=o==="OPTION"?e.getAttribute("value")||"":e.value,c=n==null?e.type==="checkbox"?"on":"":String(n);(a!==c||!("_value"in e))&&(e.value=c),n==null&&e.removeAttribute(t),e._value=n;return}let i=!1;if(n===""||n==null){const a=typeof e[t];a==="boolean"?n=qA(n):n==null&&a==="string"?(n="",i=!0):a==="number"&&(n=0,i=!0)}try{e[t]=n}catch{}i&&e.removeAttribute(r||t)}function No(e,t,n,s){e.addEventListener(t,n,s)}function Uj(e,t,n,s){e.removeEventListener(t,n,s)}const q$=Symbol("_vei");function jj(e,t,n,s,r=null){const o=e[q$]||(e[q$]={}),i=o[t];if(s&&i)i.value=s;else{const[a,c]=Bj(t);if(s){const u=o[t]=Hj(s,r);No(e,a,u,c)}else i&&(Uj(e,a,i,c),o[t]=void 0)}}const H$=/(?:Once|Passive|Capture)$/;function Bj(e){let t;if(H$.test(e)){t={};let s;for(;s=e.match(H$);)e=e.slice(0,e.length-s[0].length),t[s[0].toLowerCase()]=!0}return[e[2]===":"?e.slice(3):Vi(e.slice(2)),t]}let Ag=0;const zj=Promise.resolve(),qj=()=>Ag||(zj.then(()=>Ag=0),Ag=Date.now());function Hj(e,t){const n=s=>{if(!s._vts)s._vts=Date.now();else if(s._vts<=n.attached)return;Lr(Vj(s,n.value),t,5,[s])};return n.value=e,n.attached=qj(),n}function Vj(e,t){if(lt(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(s=>r=>!r._stopped&&s&&s(r))}else return t}const V$=e=>e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)>96&&e.charCodeAt(2)<123,Wj=(e,t,n,s,r,o)=>{const i=r==="svg";t==="class"?Rj(e,s,i):t==="style"?Fj(e,n,s):Qh(t)?Gy(t)||jj(e,t,n,s,o):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):Gj(e,t,s,i))?(z$(e,t,s),!e.tagName.includes("-")&&(t==="value"||t==="checked"||t==="selected")&&B$(e,t,s,i,o,t!=="value")):e._isVueCE&&(/[A-Z]/.test(t)||!$n(s))?z$(e,br(t),s,o,t):(t==="true-value"?e._trueValue=s:t==="false-value"&&(e._falseValue=s),B$(e,t,s,i))};function Gj(e,t,n,s){if(s)return!!(t==="innerHTML"||t==="textContent"||t in e&&V$(t)&&wt(n));if(t==="spellcheck"||t==="draggable"||t==="translate"||t==="autocorrect"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA")return!1;if(t==="width"||t==="height"){const r=e.tagName;if(r==="IMG"||r==="VIDEO"||r==="CANVAS"||r==="SOURCE")return!1}return V$(t)&&$n(n)?!1:t in e}const Ni=e=>{const t=e.props["onUpdate:modelValue"]||!1;return lt(t)?n=>Ol(t,n):t};function Kj(e){e.target.composing=!0}function W$(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const vr=Symbol("_assign"),Nt={created(e,{modifiers:{lazy:t,trim:n,number:s}},r){e[vr]=Ni(r);const o=s||r.props&&r.props.type==="number";No(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n&&(a=a.trim()),o&&(a=ah(a)),e[vr](a)}),n&&No(e,"change",()=>{e.value=e.value.trim()}),t||(No(e,"compositionstart",Kj),No(e,"compositionend",W$),No(e,"change",W$))},mounted(e,{value:t}){e.value=t??""},beforeUpdate(e,{value:t,oldValue:n,modifiers:{lazy:s,trim:r,number:o}},i){if(e[vr]=Ni(i),e.composing)return;const a=(o||e.type==="number")&&!/^0\d/.test(e.value)?ah(e.value):e.value,c=t??"";a!==c&&(document.activeElement===e&&e.type!=="range"&&(s&&t===n||r&&e.value.trim()===c)||(e.value=c))}},xj={deep:!0,created(e,t,n){e[vr]=Ni(n),No(e,"change",()=>{const s=e._modelValue,r=Bl(e),o=e.checked,i=e[vr];if(lt(s)){const a=Yy(s,r),c=a!==-1;if(o&&!c)i(s.concat(r));else if(!o&&c){const u=[...s];u.splice(a,1),i(u)}}else if(tc(s)){const a=new Set(s);o?a.add(r):a.delete(r),i(a)}else i(Z8(e,o))})},mounted:G$,beforeUpdate(e,t,n){e[vr]=Ni(n),G$(e,t,n)}};function G$(e,{value:t,oldValue:n},s){e._modelValue=t;let r;if(lt(t))r=Yy(t,s.props.value)>-1;else if(tc(t))r=t.has(s.props.value);else{if(t===n)return;r=La(t,Z8(e,!0))}e.checked!==r&&(e.checked=r)}const Yj={created(e,{value:t},n){e.checked=La(t,n.props.value),e[vr]=Ni(n),No(e,"change",()=>{e[vr](Bl(e))})},beforeUpdate(e,{value:t,oldValue:n},s){e[vr]=Ni(s),t!==n&&(e.checked=La(t,s.props.value))}},Xj={deep:!0,created(e,{value:t,modifiers:{number:n}},s){const r=tc(t);No(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?ah(Bl(i)):Bl(i));e[vr](e.multiple?r?new Set(o):o:o[0]),e._assigning=!0,Ri(()=>{e._assigning=!1})}),e[vr]=Ni(s)},mounted(e,{value:t}){K$(e,t)},beforeUpdate(e,t,n){e[vr]=Ni(n)},updated(e,{value:t}){e._assigning||K$(e,t)}};function K$(e,t){const n=e.multiple,s=lt(t);if(!(n&&!s&&!tc(t))){for(let r=0,o=e.options.length;r<o;r++){const i=e.options[r],a=Bl(i);if(n)if(s){const c=typeof a;c==="string"||c==="number"?i.selected=t.some(u=>String(u)===String(a)):i.selected=Yy(t,a)>-1}else i.selected=t.has(a);else if(La(Bl(i),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function Bl(e){return"_value"in e?e._value:e.value}function Z8(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const ku={created(e,t,n){Cf(e,t,n,null,"created")},mounted(e,t,n){Cf(e,t,n,null,"mounted")},beforeUpdate(e,t,n,s){Cf(e,t,n,s,"beforeUpdate")},updated(e,t,n,s){Cf(e,t,n,s,"updated")}};function Jj(e,t){switch(e){case"SELECT":return Xj;case"TEXTAREA":return Nt;default:switch(t){case"checkbox":return xj;case"radio":return Yj;default:return Nt}}}function Cf(e,t,n,s,r){const i=Jj(e.tagName,n.props&&n.props.type)[r];i&&i(e,t,n,s)}const Zj=["ctrl","shift","alt","meta"],Qj={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)=>Zj.some(n=>e[`${n}Key`]&&!t.includes(n))},Te=(e,t)=>{const n=e._withMods||(e._withMods={}),s=t.join(".");return n[s]||(n[s]=(r,...o)=>{for(let i=0;i<t.length;i++){const a=Qj[t[i]];if(a&&a(r,t))return}return e(r,...o)})},eB={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},zo=(e,t)=>{const n=e._withKeys||(e._withKeys={}),s=t.join(".");return n[s]||(n[s]=r=>{if(!("key"in r))return;const o=Vi(r.key);if(t.some(i=>i===o||eB[i]===o))return e(r)})},tB=xn({patchProp:Wj},Tj);let x$;function nB(){return x$||(x$=Z9(tB))}const sB=(...e)=>{const t=nB().createApp(...e),{mount:n}=t;return t.mount=s=>{const r=oB(s);if(!r)return;const o=t._component;!wt(o)&&!o.render&&!o.template&&(o.template=r.innerHTML),r.nodeType===1&&(r.textContent="");const i=n(r,!1,rB(r));return r instanceof Element&&(r.removeAttribute("v-cloak"),r.setAttribute("data-v-app","")),i},t};function rB(e){if(e instanceof SVGElement)return"svg";if(typeof MathMLElement=="function"&&e instanceof MathMLElement)return"mathml"}function oB(e){return $n(e)?document.querySelector(e):e}function iB(){return Q8().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Q8(){return typeof navigator<"u"&&typeof window<"u"?window:typeof globalThis<"u"?globalThis:{}}const aB=typeof Proxy=="function",lB="devtools-plugin:setup",cB="plugin:settings:set";let yl,j0;function uB(){var e;return yl!==void 0||(typeof window<"u"&&window.performance?(yl=!0,j0=window.performance):typeof globalThis<"u"&&(!((e=globalThis.perf_hooks)===null||e===void 0)&&e.performance)?(yl=!0,j0=globalThis.perf_hooks.performance):yl=!1),yl}function dB(){return uB()?j0.now():Date.now()}class fB{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const s={};if(t.settings)for(const i in t.settings){const a=t.settings[i];s[i]=a.defaultValue}const r=`__vue-devtools-plugin-settings__${t.id}`;let o=Object.assign({},s);try{const i=localStorage.getItem(r),a=JSON.parse(i);Object.assign(o,a)}catch{}this.fallbacks={getSettings(){return o},setSettings(i){try{localStorage.setItem(r,JSON.stringify(i))}catch{}o=i},now(){return dB()}},n&&n.on(cB,(i,a)=>{i===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(i,a)=>this.target?this.target.on[a]:(...c)=>{this.onQueue.push({method:a,args:c})}}),this.proxiedTarget=new Proxy({},{get:(i,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...c)=>(this.targetQueue.push({method:a,args:c,resolve:()=>{}}),this.fallbacks[a](...c)):(...c)=>new Promise(u=>{this.targetQueue.push({method:a,args:c,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 hB(e,t){const n=e,s=Q8(),r=iB(),o=aB&&n.enableEarlyProxy;if(r&&(s.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))r.emit(lB,e,t);else{const i=o?new fB(n,r):null;(s.__VUE_DEVTOOLS_PLUGINS__=s.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*!
* vuex v4.1.0
* (c) 2022 Evan You
* @license MIT
*/var pB="store";function rc(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function eE(e){return e!==null&&typeof e=="object"}function mB(e){return e&&typeof e.then=="function"}function gB(e,t){return function(){return e(t)}}function tE(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var s=t.indexOf(e);s>-1&&t.splice(s,1)}}function nE(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;hp(e,n,[],e._modules.root,!0),h_(e,n,t)}function h_(e,t,n){var s=e._state,r=e._scope;e.getters={},e._makeLocalGettersCache=Object.create(null);var o=e._wrappedGetters,i={},a={},c=sp(!0);c.run(function(){rc(o,function(u,f){i[f]=gB(u,e),a[f]=vt(function(){return i[f]()}),Object.defineProperty(e.getters,f,{get:function(){return a[f].value},enumerable:!0})})}),e._state=Pr({data:t}),e._scope=c,e.strict&&wB(e),s&&n&&e._withCommit(function(){s.data=null}),r&&r.stop()}function hp(e,t,n,s,r){var o=!n.length,i=e._modules.getNamespace(n);if(s.namespaced&&(e._modulesNamespaceMap[i],e._modulesNamespaceMap[i]=s),!o&&!r){var a=p_(t,n.slice(0,-1)),c=n[n.length-1];e._withCommit(function(){a[c]=s.state})}var u=s.context=vB(e,i,n);s.forEachMutation(function(f,h){var v=i+h;bB(e,v,f,u)}),s.forEachAction(function(f,h){var v=f.root?h:i+h,y=f.handler||f;yB(e,v,y,u)}),s.forEachGetter(function(f,h){var v=i+h;_B(e,v,f,u)}),s.forEachChild(function(f,h){hp(e,t,n.concat(h),f,r)})}function vB(e,t,n){var s=t==="",r={dispatch:s?e.dispatch:function(o,i,a){var c=yh(o,i,a),u=c.payload,f=c.options,h=c.type;return(!f||!f.root)&&(h=t+h),e.dispatch(h,u)},commit:s?e.commit:function(o,i,a){var c=yh(o,i,a),u=c.payload,f=c.options,h=c.type;(!f||!f.root)&&(h=t+h),e.commit(h,u,f)}};return Object.defineProperties(r,{getters:{get:s?function(){return e.getters}:function(){return sE(e,t)}},state:{get:function(){return p_(e.state,n)}}}),r}function sE(e,t){if(!e._makeLocalGettersCache[t]){var n={},s=t.length;Object.keys(e.getters).forEach(function(r){if(r.slice(0,s)===t){var o=r.slice(s);Object.defineProperty(n,o,{get:function(){return e.getters[r]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function bB(e,t,n,s){var r=e._mutations[t]||(e._mutations[t]=[]);r.push(function(i){n.call(e,s.state,i)})}function yB(e,t,n,s){var r=e._actions[t]||(e._actions[t]=[]);r.push(function(i){var a=n.call(e,{dispatch:s.dispatch,commit:s.commit,getters:s.getters,state:s.state,rootGetters:e.getters,rootState:e.state},i);return mB(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(c){throw e._devtoolHook.emit("vuex:error",c),c}):a})}function _B(e,t,n,s){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(o){return n(s.state,s.getters,o.state,o.getters)})}function wB(e){os(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function p_(e,t){return t.reduce(function(n,s){return n[s]},e)}function yh(e,t,n){return eE(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var SB="vuex bindings",Y$="vuex:mutations",Eg="vuex:actions",_l="vuex",$B=0;function kB(e,t){hB({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:[SB]},function(n){n.addTimelineLayer({id:Y$,label:"Vuex Mutations",color:X$}),n.addTimelineLayer({id:Eg,label:"Vuex Actions",color:X$}),n.addInspector({id:_l,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(s){if(s.app===e&&s.inspectorId===_l)if(s.filter){var r=[];aE(r,t._modules.root,s.filter,""),s.rootNodes=r}else s.rootNodes=[iE(t._modules.root,"")]}),n.on.getInspectorState(function(s){if(s.app===e&&s.inspectorId===_l){var r=s.nodeId;sE(t,r),s.state=AB(IB(t._modules,r),r==="root"?t.getters:t._makeLocalGettersCache,r)}}),n.on.editInspectorState(function(s){if(s.app===e&&s.inspectorId===_l){var r=s.nodeId,o=s.path;r!=="root"&&(o=r.split("/").filter(Boolean).concat(o)),t._withCommit(function(){s.set(t._state.data,o,s.state.value)})}}),t.subscribe(function(s,r){var o={};s.payload&&(o.payload=s.payload),o.state=r,n.notifyComponentUpdate(),n.sendInspectorTree(_l),n.sendInspectorState(_l),n.addTimelineEvent({layerId:Y$,event:{time:Date.now(),title:s.type,data:o}})}),t.subscribeAction({before:function(s,r){var o={};s.payload&&(o.payload=s.payload),s._id=$B++,s._time=Date.now(),o.state=r,n.addTimelineEvent({layerId:Eg,event:{time:s._time,title:s.type,groupId:s._id,subtitle:"start",data:o}})},after:function(s,r){var o={},i=Date.now()-s._time;o.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},s.payload&&(o.payload=s.payload),o.state=r,n.addTimelineEvent({layerId:Eg,event:{time:Date.now(),title:s.type,groupId:s._id,subtitle:"end",data:o}})}})})}var X$=8702998,CB=6710886,TB=16777215,rE={label:"namespaced",textColor:TB,backgroundColor:CB};function oE(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function iE(e,t){return{id:t||"root",label:oE(t),tags:e.namespaced?[rE]:[],children:Object.keys(e._children).map(function(n){return iE(e._children[n],t+n+"/")})}}function aE(e,t,n,s){s.includes(n)&&e.push({id:s||"root",label:s.endsWith("/")?s.slice(0,s.length-1):s||"Root",tags:t.namespaced?[rE]:[]}),Object.keys(t._children).forEach(function(r){aE(e,t._children[r],n,s+r+"/")})}function AB(e,t,n){t=n==="root"?t:t[n];var s=Object.keys(t),r={state:Object.keys(e.state).map(function(i){return{key:i,editable:!0,value:e.state[i]}})};if(s.length){var o=EB(t);r.getters=Object.keys(o).map(function(i){return{key:i.endsWith("/")?oE(i):i,editable:!1,value:B0(function(){return o[i]})}})}return r}function EB(e){var t={};return Object.keys(e).forEach(function(n){var s=n.split("/");if(s.length>1){var r=t,o=s.pop();s.forEach(function(i){r[i]||(r[i]={_custom:{value:{},display:i,tooltip:"Module",abstract:!0}}),r=r[i]._custom.value}),r[o]=B0(function(){return e[n]})}else t[n]=B0(function(){return e[n]})}),t}function IB(e,t){var n=t.split("/").filter(function(s){return s});return n.reduce(function(s,r,o){var i=s[r];if(!i)throw new Error('Missing module "'+r+'" for path "'+t+'".');return o===n.length-1?i:i._children},t==="root"?e:e.root._children)}function B0(e){try{return e()}catch(t){return t}}var Rr=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var s=t.state;this.state=(typeof s=="function"?s():s)||{}},lE={namespaced:{configurable:!0}};lE.namespaced.get=function(){return!!this._rawModule.namespaced};Rr.prototype.addChild=function(t,n){this._children[t]=n};Rr.prototype.removeChild=function(t){delete this._children[t]};Rr.prototype.getChild=function(t){return this._children[t]};Rr.prototype.hasChild=function(t){return t in this._children};Rr.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)};Rr.prototype.forEachChild=function(t){rc(this._children,t)};Rr.prototype.forEachGetter=function(t){this._rawModule.getters&&rc(this._rawModule.getters,t)};Rr.prototype.forEachAction=function(t){this._rawModule.actions&&rc(this._rawModule.actions,t)};Rr.prototype.forEachMutation=function(t){this._rawModule.mutations&&rc(this._rawModule.mutations,t)};Object.defineProperties(Rr.prototype,lE);var ja=function(t){this.register([],t,!1)};ja.prototype.get=function(t){return t.reduce(function(n,s){return n.getChild(s)},this.root)};ja.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(s,r){return n=n.getChild(r),s+(n.namespaced?r+"/":"")},"")};ja.prototype.update=function(t){cE([],this.root,t)};ja.prototype.register=function(t,n,s){var r=this;s===void 0&&(s=!0);var o=new Rr(n,s);if(t.length===0)this.root=o;else{var i=this.get(t.slice(0,-1));i.addChild(t[t.length-1],o)}n.modules&&rc(n.modules,function(a,c){r.register(t.concat(c),a,s)})};ja.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),s=t[t.length-1],r=n.getChild(s);r&&r.runtime&&n.removeChild(s)};ja.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),s=t[t.length-1];return n?n.hasChild(s):!1};function cE(e,t,n){if(t.update(n),n.modules)for(var s in n.modules){if(!t.getChild(s))return;cE(e.concat(s),t.getChild(s),n.modules[s])}}function PB(e){return new Ns(e)}var Ns=function(t){var n=this;t===void 0&&(t={});var s=t.plugins;s===void 0&&(s=[]);var r=t.strict;r===void 0&&(r=!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 ja(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._scope=null,this._devtools=o;var i=this,a=this,c=a.dispatch,u=a.commit;this.dispatch=function(v,y){return c.call(i,v,y)},this.commit=function(v,y,S){return u.call(i,v,y,S)},this.strict=r;var f=this._modules.root.state;hp(this,f,[],this._modules.root),h_(this,f),s.forEach(function(h){return h(n)})},m_={state:{configurable:!0}};Ns.prototype.install=function(t,n){t.provide(n||pB,this),t.config.globalProperties.$store=this;var s=this._devtools!==void 0?this._devtools:!1;s&&kB(t,this)};m_.state.get=function(){return this._state.data};m_.state.set=function(e){};Ns.prototype.commit=function(t,n,s){var r=this,o=yh(t,n,s),i=o.type,a=o.payload,c={type:i,payload:a},u=this._mutations[i];u&&(this._withCommit(function(){u.forEach(function(h){h(a)})}),this._subscribers.slice().forEach(function(f){return f(c,r.state)}))};Ns.prototype.dispatch=function(t,n){var s=this,r=yh(t,n),o=r.type,i=r.payload,a={type:o,payload:i},c=this._actions[o];if(c){try{this._actionSubscribers.slice().filter(function(f){return f.before}).forEach(function(f){return f.before(a,s.state)})}catch{}var u=c.length>1?Promise.all(c.map(function(f){return f(i)})):c[0](i);return new Promise(function(f,h){u.then(function(v){try{s._actionSubscribers.filter(function(y){return y.after}).forEach(function(y){return y.after(a,s.state)})}catch{}f(v)},function(v){try{s._actionSubscribers.filter(function(y){return y.error}).forEach(function(y){return y.error(a,s.state,v)})}catch{}h(v)})})}};Ns.prototype.subscribe=function(t,n){return tE(t,this._subscribers,n)};Ns.prototype.subscribeAction=function(t,n){var s=typeof t=="function"?{before:t}:t;return tE(s,this._actionSubscribers,n)};Ns.prototype.watch=function(t,n,s){var r=this;return os(function(){return t(r.state,r.getters)},n,Object.assign({},s))};Ns.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};Ns.prototype.registerModule=function(t,n,s){s===void 0&&(s={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),hp(this,this.state,t,this._modules.get(t),s.preserveState),h_(this,this.state)};Ns.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var s=p_(n.state,t.slice(0,-1));delete s[t[t.length-1]]}),nE(this)};Ns.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};Ns.prototype.hotUpdate=function(t){this._modules.update(t),nE(this,!0)};Ns.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(Ns.prototype,m_);var mn=v_(function(e,t){var n={};return g_(t).forEach(function(s){var r=s.key,o=s.val;n[r]=function(){var a=this.$store.state,c=this.$store.getters;if(e){var u=b_(this.$store,"mapState",e);if(!u)return;a=u.context.state,c=u.context.getters}return typeof o=="function"?o.call(this,a,c):a[o]},n[r].vuex=!0}),n}),bn=v_(function(e,t){var n={};return g_(t).forEach(function(s){var r=s.key,o=s.val;o=e+o,n[r]=function(){if(!(e&&!b_(this.$store,"mapGetters",e)))return this.$store.getters[o]},n[r].vuex=!0}),n}),LB=v_(function(e,t){var n={};return g_(t).forEach(function(s){var r=s.key,o=s.val;n[r]=function(){for(var a=[],c=arguments.length;c--;)a[c]=arguments[c];var u=this.$store.dispatch;if(e){var f=b_(this.$store,"mapActions",e);if(!f)return;u=f.context.dispatch}return typeof o=="function"?o.apply(this,[u].concat(a)):u.apply(this.$store,[o].concat(a))}}),n});function g_(e){return OB(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 OB(e){return Array.isArray(e)||eE(e)}function v_(e){return function(t,n){return typeof t!="string"?(n=t,t=""):t.charAt(t.length-1)!=="/"&&(t+="/"),e(t,n)}}function b_(e,t,n){var s=e._modulesNamespaceMap[n];return s}/*!
* pinia v3.0.3
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/let uE;const pp=e=>uE=e,dE=Symbol();function z0(e){return e&&typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"&&typeof e.toJSON!="function"}var Cu;(function(e){e.direct="direct",e.patchObject="patch object",e.patchFunction="patch function"})(Cu||(Cu={}));function RB(){const e=sp(!0),t=e.run(()=>Kn({}));let n=[],s=[];const r=op({install(o){pp(r),r._a=o,o.provide(dE,r),o.config.globalProperties.$pinia=r,s.forEach(i=>n.push(i)),s=[]},use(o){return this._a?n.push(o):s.push(o),this},_p:n,_a:null,_e:e,_s:new Map,state:t});return r}const fE=()=>{};function J$(e,t,n,s=fE){e.push(t);const r=()=>{const o=e.indexOf(t);o>-1&&(e.splice(o,1),s())};return!n&&GA()&&BU(r),r}function wl(e,...t){e.slice().forEach(n=>{n(...t)})}const MB=e=>e(),Z$=Symbol(),Ig=Symbol();function q0(e,t){e instanceof Map&&t instanceof Map?t.forEach((n,s)=>e.set(s,n)):e instanceof Set&&t instanceof Set&&t.forEach(e.add,e);for(const n in t){if(!t.hasOwnProperty(n))continue;const s=t[n],r=e[n];z0(r)&&z0(s)&&e.hasOwnProperty(n)&&!Sn(s)&&!Bo(s)?e[n]=q0(r,s):e[n]=s}return e}const NB=Symbol();function FB(e){return!z0(e)||!Object.prototype.hasOwnProperty.call(e,NB)}const{assign:bi}=Object;function DB(e){return!!(Sn(e)&&e.effect)}function UB(e,t,n,s){const{state:r,actions:o,getters:i}=t,a=n.state.value[e];let c;function u(){a||(n.state.value[e]=r?r():{});const f=l9(n.state.value[e]);return bi(f,o,Object.keys(i||{}).reduce((h,v)=>(h[v]=op(vt(()=>{pp(n);const y=n._s.get(e);return i[v].call(y,y)})),h),{}))}return c=hE(e,u,t,n,s,!0),c}function hE(e,t,n={},s,r,o){let i;const a=bi({actions:{}},n),c={deep:!0};let u,f,h=[],v=[],y;const S=s.state.value[e];!o&&!S&&(s.state.value[e]={}),Kn({});let k;function I(W){let V;u=f=!1,typeof W=="function"?(W(s.state.value[e]),V={type:Cu.patchFunction,storeId:e,events:y}):(q0(s.state.value[e],W),V={type:Cu.patchObject,payload:W,storeId:e,events:y});const U=k=Symbol();Ri().then(()=>{k===U&&(u=!0)}),f=!0,wl(h,V,s.state.value[e])}const C=o?function(){const{state:V}=n,U=V?V():{};this.$patch(ie=>{bi(ie,U)})}:fE;function $(){i.stop(),h=[],v=[],s._s.delete(e)}const P=(W,V="")=>{if(Z$ in W)return W[Ig]=V,W;const U=function(){pp(s);const ie=Array.from(arguments),le=[],Pe=[];function qe(ze){le.push(ze)}function Ke(ze){Pe.push(ze)}wl(v,{args:ie,name:U[Ig],store:R,after:qe,onError:Ke});let Ge;try{Ge=W.apply(this&&this.$id===e?this:R,ie)}catch(ze){throw wl(Pe,ze),ze}return Ge instanceof Promise?Ge.then(ze=>(wl(le,ze),ze)).catch(ze=>(wl(Pe,ze),Promise.reject(ze))):(wl(le,Ge),Ge)};return U[Z$]=!0,U[Ig]=V,U},A={_p:s,$id:e,$onAction:J$.bind(null,v),$patch:I,$reset:C,$subscribe(W,V={}){const U=J$(h,W,V.detached,()=>ie()),ie=i.run(()=>os(()=>s.state.value[e],le=>{(V.flush==="sync"?f:u)&&W({storeId:e,type:Cu.direct,events:y},le)},bi({},c,V)));return U},$dispose:$},R=Pr(A);s._s.set(e,R);const N=(s._a&&s._a.runWithContext||MB)(()=>s._e.run(()=>(i=sp()).run(()=>t({action:P}))));for(const W in N){const V=N[W];if(Sn(V)&&!DB(V)||Bo(V))o||(S&&FB(V)&&(Sn(V)?V.value=S[W]:q0(V,S[W])),s.state.value[e][W]=V);else if(typeof V=="function"){const U=P(V,W);N[W]=U,a.actions[W]=V}}return bi(R,N),bi(Mt(R),N),Object.defineProperty(R,"$state",{get:()=>s.state.value[e],set:W=>{I(V=>{bi(V,W)})}}),s._p.forEach(W=>{bi(R,i.run(()=>W({store:R,app:s._a,pinia:s,options:a})))}),S&&o&&n.hydrate&&n.hydrate(R.$state,S),u=!0,f=!0,R}/*! #__NO_SIDE_EFFECTS__ */function vs(e,t,n){let s;const r=typeof t=="function";s=r?n:t;function o(i,a){const c=W9();return i=i||(c?Ys(dE,null):null),i&&pp(i),i=uE,i._s.has(e)||(r?hE(e,t,s,i):UB(e,s,i)),i._s.get(e)}return o.$id=e,o}let jB="Store";function mp(...e){return e.reduce((t,n)=>(t[n.$id+jB]=function(){return n(this.$pinia)},t),{})}function sn(e,t){return Array.isArray(t)?t.reduce((n,s)=>(n[s]=function(){return e(this.$pinia)[s]},n),{}):Object.keys(t).reduce((n,s)=>(n[s]=function(){const r=e(this.$pinia),o=t[s];return typeof o=="function"?o.call(this,r):r[o]},n),{})}function gp(e,t){return Array.isArray(t)?t.reduce((n,s)=>(n[s]=function(...r){return e(this.$pinia)[s](...r)},n),{}):Object.keys(t).reduce((n,s)=>(n[s]=function(...r){return e(this.$pinia)[t[s]](...r)},n),{})}(function(){if(!(typeof window>"u"))try{var e=new window.CustomEvent("test",{cancelable:!0});if(e.preventDefault(),e.defaultPrevented!==!0)throw new Error("Could not prevent default")}catch{var t=function(s,r){var o,i;return r=r||{},r.bubbles=!!r.bubbles,r.cancelable=!!r.cancelable,o=document.createEvent("CustomEvent"),o.initCustomEvent(s,r.bubbles,r.cancelable,r.detail),i=o.preventDefault,o.preventDefault=function(){i.call(this);try{Object.defineProperty(this,"defaultPrevented",{get:function(){return!0}})}catch{this.defaultPrevented=!0}},o};t.prototype=window.Event.prototype,window.CustomEvent=t}})();/*! (c) Andrea Giammarchi - ISC */var H0={};try{H0.EventTarget=new EventTarget().constructor}catch{(function(t,n){var s=t.create,r=t.defineProperty,o=i.prototype;a(o,"addEventListener",function(u,f,h){for(var v=n.get(this),y=v[u]||(v[u]=[]),S=0,k=y.length;S<k;S++)if(y[S].listener===f)return;y.push({target:this,listener:f,options:h})}),a(o,"dispatchEvent",function(u){var f=n.get(this),h=f[u.type];return h&&(a(u,"target",this),a(u,"currentTarget",this),h.slice(0).some(c,u),delete u.currentTarget,delete u.target),!0}),a(o,"removeEventListener",function(u,f){for(var h=n.get(this),v=h[u]||(h[u]=[]),y=0,S=v.length;y<S;y++)if(v[y].listener===f){v.splice(y,1);return}}),H0.EventTarget=i;function i(){n.set(this,s(null))}function a(u,f,h){r(u,f,{configurable:!0,writable:!0,value:h})}function c(u){var f=u.options;return f&&f.once&&u.target.removeEventListener(this.type,u.listener),typeof u.listener=="function"?u.listener.call(u.target,this):u.listener.handleEvent(this),this._stopImmediatePropagationFlag}})(Object,new WeakMap)}const BB=H0.EventTarget;try{new EventTarget().dispatchEvent()}catch{window.EventTarget=BB}const zB="modulepreload",qB=function(e){return"/"+e},Q$={},Ve=function(t,n,s){let r=Promise.resolve();if(n&&n.length>0){let i=function(u){return Promise.all(u.map(f=>Promise.resolve(f).then(h=>({status:"fulfilled",value:h}),h=>({status:"rejected",reason:h}))))};document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),c=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));r=i(n.map(u=>{if(u=qB(u),u in Q$)return;Q$[u]=!0;const f=u.endsWith(".css"),h=f?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${u}"]${h}`))return;const v=document.createElement("link");if(v.rel=f?"stylesheet":zB,f||(v.as="script"),v.crossOrigin="",v.href=u,c&&v.setAttribute("nonce",c),document.head.appendChild(v),f)return new Promise((y,S)=>{v.addEventListener("load",y),v.addEventListener("error",()=>S(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(i){const a=new Event("vite:preloadError",{cancelable:!0});if(a.payload=i,window.dispatchEvent(a),!a.defaultPrevented)throw i}return r.then(i=>{for(const a of i||[])a.status==="rejected"&&o(a.reason);return t().catch(o)})};var ps=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function bs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var iu={exports:{}};/**
* @license
* Lodash <https://lodash.com/>
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
* Released under MIT license <https://lodash.com/license>
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
*/var HB=iu.exports,ek;function VB(){return ek||(ek=1,function(e,t){(function(){var n,s="4.17.21",r=200,o="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",i="Expected a function",a="Invalid `variable` option passed into `_.template`",c="__lodash_hash_undefined__",u=500,f="__lodash_placeholder__",h=1,v=2,y=4,S=1,k=2,I=1,C=2,$=4,P=8,A=16,R=32,B=64,N=128,W=256,V=512,U=30,ie="...",le=800,Pe=16,qe=1,Ke=2,Ge=3,ze=1/0,ot=9007199254740991,Ct=17976931348623157e292,dt=NaN,bt=4294967295,It=bt-1,nt=bt>>>1,_t=[["ary",N],["bind",I],["bindKey",C],["curry",P],["curryRight",A],["flip",V],["partial",R],["partialRight",B],["rearg",W]],ft="[object Arguments]",Ht="[object Array]",_e="[object AsyncFunction]",Me="[object Boolean]",Fe="[object Date]",Ue="[object DOMException]",pt="[object Error]",G="[object Function]",K="[object GeneratorFunction]",ee="[object Map]",pe="[object Number]",we="[object Null]",be="[object Object]",j="[object Promise]",q="[object Proxy]",te="[object RegExp]",fe="[object Set]",je="[object String]",$e="[object Symbol]",re="[object Undefined]",me="[object WeakMap]",xe="[object WeakSet]",rt="[object ArrayBuffer]",ut="[object DataView]",Qt="[object Float32Array]",Wt="[object Float64Array]",En="[object Int8Array]",On="[object Int16Array]",Cs="[object Int32Array]",tr="[object Uint8Array]",ln="[object Uint8ClampedArray]",Rn="[object Uint16Array]",nr="[object Uint32Array]",Fr=/\b__p \+= '';/g,cc=/\b(__p \+=) '' \+/g,Fs=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Dr=/&(?:amp|lt|gt|quot|#39);/g,Ya=/[&<>"']/g,sr=RegExp(Dr.source),uc=RegExp(Ya.source),dc=/<%-([\s\S]+?)%>/g,fc=/<%([\s\S]+?)%>/g,Xa=/<%=([\s\S]+?)%>/g,hc=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Ds=/^\w*$/,pc=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ta=/[\\^$.*+?()[\]{}|]/g,mc=RegExp(ta.source),na=/^\s+/,Ja=/\s/,Ur=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,gc=/\{\n\/\* \[wrapped with (.+)\] \*/,vc=/,? & /,bc=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,yc=/[()=,{}\[\]\/\s]/,_c=/\\(\\)?/g,jr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Za=/\w*$/,wc=/^[-+]0x[0-9a-f]+$/i,Sc=/^0b[01]+$/i,$c=/^\[object .+?Constructor\]$/,kc=/^0o[0-7]+$/i,Cc=/^(?:0|[1-9]\d*)$/,sa=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,ti=/($^)/,co=/['\n\r\u2028\u2029\\]/g,Ts="\\ud800-\\udfff",Qa="\\u0300-\\u036f",Us="\\ufe20-\\ufe2f",el="\\u20d0-\\u20ff",uo=Qa+Us+el,ni="\\u2700-\\u27bf",tl="a-z\\xdf-\\xf6\\xf8-\\xff",nl="\\xac\\xb1\\xd7\\xf7",ra="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Tc="\\u2000-\\u206f",Ac=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",F="A-Z\\xc0-\\xd6\\xd8-\\xde",J="\\ufe0e\\ufe0f",z=nl+ra+Tc+Ac,se="[']",ce="["+Ts+"]",ne="["+z+"]",Ce="["+uo+"]",Ie="\\d+",Oe="["+ni+"]",Re="["+tl+"]",De="[^"+Ts+z+Ie+ni+tl+F+"]",Ze="\\ud83c[\\udffb-\\udfff]",Tt="(?:"+Ce+"|"+Ze+")",Bt="[^"+Ts+"]",zt="(?:\\ud83c[\\udde6-\\uddff]){2}",cn="[\\ud800-\\udbff][\\udc00-\\udfff]",xt="["+F+"]",Zn="\\u200d",Br="(?:"+Re+"|"+De+")",fo="(?:"+xt+"|"+De+")",sl="(?:"+se+"(?:d|ll|m|re|s|t|ve))?",si="(?:"+se+"(?:D|LL|M|RE|S|T|VE))?",Ec=Tt+"?",ho="["+J+"]?",oa="(?:"+Zn+"(?:"+[Bt,zt,cn].join("|")+")"+ho+Ec+")*",ri="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ic="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ed=ho+Ec+oa,Id="(?:"+[Oe,zt,cn].join("|")+")"+Ed,Pc="(?:"+[Bt+Ce+"?",Ce,zt,cn,ce].join("|")+")",Pd=RegExp(se,"g"),po=RegExp(Ce,"g"),mo=RegExp(Ze+"(?="+Ze+")|"+Pc+Ed,"g"),cm=RegExp([xt+"?"+Re+"+"+sl+"(?="+[ne,xt,"$"].join("|")+")",fo+"+"+si+"(?="+[ne,xt+Br,"$"].join("|")+")",xt+"?"+Br+"+"+sl,xt+"+"+si,Ic,ri,Ie,Id].join("|"),"g"),Ld=RegExp("["+Zn+Ts+uo+J+"]"),um=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Od=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],dm=-1,un={};un[Qt]=un[Wt]=un[En]=un[On]=un[Cs]=un[tr]=un[ln]=un[Rn]=un[nr]=!0,un[ft]=un[Ht]=un[rt]=un[Me]=un[ut]=un[Fe]=un[pt]=un[G]=un[ee]=un[pe]=un[be]=un[te]=un[fe]=un[je]=un[me]=!1;var en={};en[ft]=en[Ht]=en[rt]=en[ut]=en[Me]=en[Fe]=en[Qt]=en[Wt]=en[En]=en[On]=en[Cs]=en[ee]=en[pe]=en[be]=en[te]=en[fe]=en[je]=en[$e]=en[tr]=en[ln]=en[Rn]=en[nr]=!0,en[pt]=en[G]=en[me]=!1;var fm={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},H={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;"},oe={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},ye={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},tt=parseFloat,Dt=parseInt,Yt=typeof ps=="object"&&ps&&ps.Object===Object&&ps,gn=typeof self=="object"&&self&&self.Object===Object&&self,yt=Yt||gn||Function("return this")(),on=t&&!t.nodeType&&t,jn=on&&!0&&e&&!e.nodeType&&e,is=jn&&jn.exports===on,go=is&&Yt.process,as=function(){try{var ae=jn&&jn.require&&jn.require("util").types;return ae||go&&go.binding&&go.binding("util")}catch{}}(),rl=as&&as.isArrayBuffer,Lc=as&&as.isDate,ow=as&&as.isMap,iw=as&&as.isRegExp,aw=as&&as.isSet,lw=as&&as.isTypedArray;function js(ae,ke,ve){switch(ve.length){case 0:return ae.call(ke);case 1:return ae.call(ke,ve[0]);case 2:return ae.call(ke,ve[0],ve[1]);case 3:return ae.call(ke,ve[0],ve[1],ve[2])}return ae.apply(ke,ve)}function XO(ae,ke,ve,Qe){for(var St=-1,Gt=ae==null?0:ae.length;++St<Gt;){var Bn=ae[St];ke(Qe,Bn,ve(Bn),ae)}return Qe}function rr(ae,ke){for(var ve=-1,Qe=ae==null?0:ae.length;++ve<Qe&&ke(ae[ve],ve,ae)!==!1;);return ae}function JO(ae,ke){for(var ve=ae==null?0:ae.length;ve--&&ke(ae[ve],ve,ae)!==!1;);return ae}function cw(ae,ke){for(var ve=-1,Qe=ae==null?0:ae.length;++ve<Qe;)if(!ke(ae[ve],ve,ae))return!1;return!0}function oi(ae,ke){for(var ve=-1,Qe=ae==null?0:ae.length,St=0,Gt=[];++ve<Qe;){var Bn=ae[ve];ke(Bn,ve,ae)&&(Gt[St++]=Bn)}return Gt}function Rd(ae,ke){var ve=ae==null?0:ae.length;return!!ve&&ol(ae,ke,0)>-1}function hm(ae,ke,ve){for(var Qe=-1,St=ae==null?0:ae.length;++Qe<St;)if(ve(ke,ae[Qe]))return!0;return!1}function kn(ae,ke){for(var ve=-1,Qe=ae==null?0:ae.length,St=Array(Qe);++ve<Qe;)St[ve]=ke(ae[ve],ve,ae);return St}function ii(ae,ke){for(var ve=-1,Qe=ke.length,St=ae.length;++ve<Qe;)ae[St+ve]=ke[ve];return ae}function pm(ae,ke,ve,Qe){var St=-1,Gt=ae==null?0:ae.length;for(Qe&&Gt&&(ve=ae[++St]);++St<Gt;)ve=ke(ve,ae[St],St,ae);return ve}function ZO(ae,ke,ve,Qe){var St=ae==null?0:ae.length;for(Qe&&St&&(ve=ae[--St]);St--;)ve=ke(ve,ae[St],St,ae);return ve}function mm(ae,ke){for(var ve=-1,Qe=ae==null?0:ae.length;++ve<Qe;)if(ke(ae[ve],ve,ae))return!0;return!1}var QO=gm("length");function eR(ae){return ae.split("")}function tR(ae){return ae.match(bc)||[]}function uw(ae,ke,ve){var Qe;return ve(ae,function(St,Gt,Bn){if(ke(St,Gt,Bn))return Qe=Gt,!1}),Qe}function Md(ae,ke,ve,Qe){for(var St=ae.length,Gt=ve+(Qe?1:-1);Qe?Gt--:++Gt<St;)if(ke(ae[Gt],Gt,ae))return Gt;return-1}function ol(ae,ke,ve){return ke===ke?hR(ae,ke,ve):Md(ae,dw,ve)}function nR(ae,ke,ve,Qe){for(var St=ve-1,Gt=ae.length;++St<Gt;)if(Qe(ae[St],ke))return St;return-1}function dw(ae){return ae!==ae}function fw(ae,ke){var ve=ae==null?0:ae.length;return ve?bm(ae,ke)/ve:dt}function gm(ae){return function(ke){return ke==null?n:ke[ae]}}function vm(ae){return function(ke){return ae==null?n:ae[ke]}}function hw(ae,ke,ve,Qe,St){return St(ae,function(Gt,Bn,dn){ve=Qe?(Qe=!1,Gt):ke(ve,Gt,Bn,dn)}),ve}function sR(ae,ke){var ve=ae.length;for(ae.sort(ke);ve--;)ae[ve]=ae[ve].value;return ae}function bm(ae,ke){for(var ve,Qe=-1,St=ae.length;++Qe<St;){var Gt=ke(ae[Qe]);Gt!==n&&(ve=ve===n?Gt:ve+Gt)}return ve}function ym(ae,ke){for(var ve=-1,Qe=Array(ae);++ve<ae;)Qe[ve]=ke(ve);return Qe}function rR(ae,ke){return kn(ke,function(ve){return[ve,ae[ve]]})}function pw(ae){return ae&&ae.slice(0,bw(ae)+1).replace(na,"")}function Bs(ae){return function(ke){return ae(ke)}}function _m(ae,ke){return kn(ke,function(ve){return ae[ve]})}function Oc(ae,ke){return ae.has(ke)}function mw(ae,ke){for(var ve=-1,Qe=ae.length;++ve<Qe&&ol(ke,ae[ve],0)>-1;);return ve}function gw(ae,ke){for(var ve=ae.length;ve--&&ol(ke,ae[ve],0)>-1;);return ve}function oR(ae,ke){for(var ve=ae.length,Qe=0;ve--;)ae[ve]===ke&&++Qe;return Qe}var iR=vm(fm),aR=vm(H);function lR(ae){return"\\"+ye[ae]}function cR(ae,ke){return ae==null?n:ae[ke]}function il(ae){return Ld.test(ae)}function uR(ae){return um.test(ae)}function dR(ae){for(var ke,ve=[];!(ke=ae.next()).done;)ve.push(ke.value);return ve}function wm(ae){var ke=-1,ve=Array(ae.size);return ae.forEach(function(Qe,St){ve[++ke]=[St,Qe]}),ve}function vw(ae,ke){return function(ve){return ae(ke(ve))}}function ai(ae,ke){for(var ve=-1,Qe=ae.length,St=0,Gt=[];++ve<Qe;){var Bn=ae[ve];(Bn===ke||Bn===f)&&(ae[ve]=f,Gt[St++]=ve)}return Gt}function Nd(ae){var ke=-1,ve=Array(ae.size);return ae.forEach(function(Qe){ve[++ke]=Qe}),ve}function fR(ae){var ke=-1,ve=Array(ae.size);return ae.forEach(function(Qe){ve[++ke]=[Qe,Qe]}),ve}function hR(ae,ke,ve){for(var Qe=ve-1,St=ae.length;++Qe<St;)if(ae[Qe]===ke)return Qe;return-1}function pR(ae,ke,ve){for(var Qe=ve+1;Qe--;)if(ae[Qe]===ke)return Qe;return Qe}function al(ae){return il(ae)?gR(ae):QO(ae)}function yr(ae){return il(ae)?vR(ae):eR(ae)}function bw(ae){for(var ke=ae.length;ke--&&Ja.test(ae.charAt(ke)););return ke}var mR=vm(oe);function gR(ae){for(var ke=mo.lastIndex=0;mo.test(ae);)++ke;return ke}function vR(ae){return ae.match(mo)||[]}function bR(ae){return ae.match(cm)||[]}var yR=function ae(ke){ke=ke==null?yt:ll.defaults(yt.Object(),ke,ll.pick(yt,Od));var ve=ke.Array,Qe=ke.Date,St=ke.Error,Gt=ke.Function,Bn=ke.Math,dn=ke.Object,Sm=ke.RegExp,_R=ke.String,or=ke.TypeError,Fd=ve.prototype,wR=Gt.prototype,cl=dn.prototype,Dd=ke["__core-js_shared__"],Ud=wR.toString,tn=cl.hasOwnProperty,SR=0,yw=function(){var l=/[^.]+$/.exec(Dd&&Dd.keys&&Dd.keys.IE_PROTO||"");return l?"Symbol(src)_1."+l:""}(),jd=cl.toString,$R=Ud.call(dn),kR=yt._,CR=Sm("^"+Ud.call(tn).replace(ta,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Bd=is?ke.Buffer:n,li=ke.Symbol,zd=ke.Uint8Array,_w=Bd?Bd.allocUnsafe:n,qd=vw(dn.getPrototypeOf,dn),ww=dn.create,Sw=cl.propertyIsEnumerable,Hd=Fd.splice,$w=li?li.isConcatSpreadable:n,Rc=li?li.iterator:n,ia=li?li.toStringTag:n,Vd=function(){try{var l=da(dn,"defineProperty");return l({},"",{}),l}catch{}}(),TR=ke.clearTimeout!==yt.clearTimeout&&ke.clearTimeout,AR=Qe&&Qe.now!==yt.Date.now&&Qe.now,ER=ke.setTimeout!==yt.setTimeout&&ke.setTimeout,Wd=Bn.ceil,Gd=Bn.floor,$m=dn.getOwnPropertySymbols,IR=Bd?Bd.isBuffer:n,kw=ke.isFinite,PR=Fd.join,LR=vw(dn.keys,dn),zn=Bn.max,ls=Bn.min,OR=Qe.now,RR=ke.parseInt,Cw=Bn.random,MR=Fd.reverse,km=da(ke,"DataView"),Mc=da(ke,"Map"),Cm=da(ke,"Promise"),ul=da(ke,"Set"),Nc=da(ke,"WeakMap"),Fc=da(dn,"create"),Kd=Nc&&new Nc,dl={},NR=fa(km),FR=fa(Mc),DR=fa(Cm),UR=fa(ul),jR=fa(Nc),xd=li?li.prototype:n,Dc=xd?xd.valueOf:n,Tw=xd?xd.toString:n;function M(l){if(In(l)&&!kt(l)&&!(l instanceof Ut)){if(l instanceof ir)return l;if(tn.call(l,"__wrapped__"))return AS(l)}return new ir(l)}var fl=function(){function l(){}return function(d){if(!Tn(d))return{};if(ww)return ww(d);l.prototype=d;var m=new l;return l.prototype=n,m}}();function Yd(){}function ir(l,d){this.__wrapped__=l,this.__actions__=[],this.__chain__=!!d,this.__index__=0,this.__values__=n}M.templateSettings={escape:dc,evaluate:fc,interpolate:Xa,variable:"",imports:{_:M}},M.prototype=Yd.prototype,M.prototype.constructor=M,ir.prototype=fl(Yd.prototype),ir.prototype.constructor=ir;function Ut(l){this.__wrapped__=l,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=bt,this.__views__=[]}function BR(){var l=new Ut(this.__wrapped__);return l.__actions__=As(this.__actions__),l.__dir__=this.__dir__,l.__filtered__=this.__filtered__,l.__iteratees__=As(this.__iteratees__),l.__takeCount__=this.__takeCount__,l.__views__=As(this.__views__),l}function zR(){if(this.__filtered__){var l=new Ut(this);l.__dir__=-1,l.__filtered__=!0}else l=this.clone(),l.__dir__*=-1;return l}function qR(){var l=this.__wrapped__.value(),d=this.__dir__,m=kt(l),_=d<0,L=m?l.length:0,D=eN(0,L,this.__views__),x=D.start,Q=D.end,ue=Q-x,Ae=_?Q:x-1,Ee=this.__iteratees__,Le=Ee.length,He=0,st=ls(ue,this.__takeCount__);if(!m||!_&&L==ue&&st==ue)return Xw(l,this.__actions__);var mt=[];e:for(;ue--&&He<st;){Ae+=d;for(var Et=-1,gt=l[Ae];++Et<Le;){var Rt=Ee[Et],qt=Rt.iteratee,Hs=Rt.type,ws=qt(gt);if(Hs==Ke)gt=ws;else if(!ws){if(Hs==qe)continue e;break e}}mt[He++]=gt}return mt}Ut.prototype=fl(Yd.prototype),Ut.prototype.constructor=Ut;function aa(l){var d=-1,m=l==null?0:l.length;for(this.clear();++d<m;){var _=l[d];this.set(_[0],_[1])}}function HR(){this.__data__=Fc?Fc(null):{},this.size=0}function VR(l){var d=this.has(l)&&delete this.__data__[l];return this.size-=d?1:0,d}function WR(l){var d=this.__data__;if(Fc){var m=d[l];return m===c?n:m}return tn.call(d,l)?d[l]:n}function GR(l){var d=this.__data__;return Fc?d[l]!==n:tn.call(d,l)}function KR(l,d){var m=this.__data__;return this.size+=this.has(l)?0:1,m[l]=Fc&&d===n?c:d,this}aa.prototype.clear=HR,aa.prototype.delete=VR,aa.prototype.get=WR,aa.prototype.has=GR,aa.prototype.set=KR;function vo(l){var d=-1,m=l==null?0:l.length;for(this.clear();++d<m;){var _=l[d];this.set(_[0],_[1])}}function xR(){this.__data__=[],this.size=0}function YR(l){var d=this.__data__,m=Xd(d,l);if(m<0)return!1;var _=d.length-1;return m==_?d.pop():Hd.call(d,m,1),--this.size,!0}function XR(l){var d=this.__data__,m=Xd(d,l);return m<0?n:d[m][1]}function JR(l){return Xd(this.__data__,l)>-1}function ZR(l,d){var m=this.__data__,_=Xd(m,l);return _<0?(++this.size,m.push([l,d])):m[_][1]=d,this}vo.prototype.clear=xR,vo.prototype.delete=YR,vo.prototype.get=XR,vo.prototype.has=JR,vo.prototype.set=ZR;function bo(l){var d=-1,m=l==null?0:l.length;for(this.clear();++d<m;){var _=l[d];this.set(_[0],_[1])}}function QR(){this.size=0,this.__data__={hash:new aa,map:new(Mc||vo),string:new aa}}function eM(l){var d=cf(this,l).delete(l);return this.size-=d?1:0,d}function tM(l){return cf(this,l).get(l)}function nM(l){return cf(this,l).has(l)}function sM(l,d){var m=cf(this,l),_=m.size;return m.set(l,d),this.size+=m.size==_?0:1,this}bo.prototype.clear=QR,bo.prototype.delete=eM,bo.prototype.get=tM,bo.prototype.has=nM,bo.prototype.set=sM;function la(l){var d=-1,m=l==null?0:l.length;for(this.__data__=new bo;++d<m;)this.add(l[d])}function rM(l){return this.__data__.set(l,c),this}function oM(l){return this.__data__.has(l)}la.prototype.add=la.prototype.push=rM,la.prototype.has=oM;function _r(l){var d=this.__data__=new vo(l);this.size=d.size}function iM(){this.__data__=new vo,this.size=0}function aM(l){var d=this.__data__,m=d.delete(l);return this.size=d.size,m}function lM(l){return this.__data__.get(l)}function cM(l){return this.__data__.has(l)}function uM(l,d){var m=this.__data__;if(m instanceof vo){var _=m.__data__;if(!Mc||_.length<r-1)return _.push([l,d]),this.size=++m.size,this;m=this.__data__=new bo(_)}return m.set(l,d),this.size=m.size,this}_r.prototype.clear=iM,_r.prototype.delete=aM,_r.prototype.get=lM,_r.prototype.has=cM,_r.prototype.set=uM;function Aw(l,d){var m=kt(l),_=!m&&ha(l),L=!m&&!_&&hi(l),D=!m&&!_&&!L&&gl(l),x=m||_||L||D,Q=x?ym(l.length,_R):[],ue=Q.length;for(var Ae in l)(d||tn.call(l,Ae))&&!(x&&(Ae=="length"||L&&(Ae=="offset"||Ae=="parent")||D&&(Ae=="buffer"||Ae=="byteLength"||Ae=="byteOffset")||So(Ae,ue)))&&Q.push(Ae);return Q}function Ew(l){var d=l.length;return d?l[Fm(0,d-1)]:n}function dM(l,d){return uf(As(l),ca(d,0,l.length))}function fM(l){return uf(As(l))}function Tm(l,d,m){(m!==n&&!wr(l[d],m)||m===n&&!(d in l))&&yo(l,d,m)}function Uc(l,d,m){var _=l[d];(!(tn.call(l,d)&&wr(_,m))||m===n&&!(d in l))&&yo(l,d,m)}function Xd(l,d){for(var m=l.length;m--;)if(wr(l[m][0],d))return m;return-1}function hM(l,d,m,_){return ci(l,function(L,D,x){d(_,L,m(L),x)}),_}function Iw(l,d){return l&&qr(d,Gn(d),l)}function pM(l,d){return l&&qr(d,Is(d),l)}function yo(l,d,m){d=="__proto__"&&Vd?Vd(l,d,{configurable:!0,enumerable:!0,value:m,writable:!0}):l[d]=m}function Am(l,d){for(var m=-1,_=d.length,L=ve(_),D=l==null;++m<_;)L[m]=D?n:ag(l,d[m]);return L}function ca(l,d,m){return l===l&&(m!==n&&(l=l<=m?l:m),d!==n&&(l=l>=d?l:d)),l}function ar(l,d,m,_,L,D){var x,Q=d&h,ue=d&v,Ae=d&y;if(m&&(x=L?m(l,_,L,D):m(l)),x!==n)return x;if(!Tn(l))return l;var Ee=kt(l);if(Ee){if(x=nN(l),!Q)return As(l,x)}else{var Le=cs(l),He=Le==G||Le==K;if(hi(l))return Qw(l,Q);if(Le==be||Le==ft||He&&!L){if(x=ue||He?{}:bS(l),!Q)return ue?WM(l,pM(x,l)):VM(l,Iw(x,l))}else{if(!en[Le])return L?l:{};x=sN(l,Le,Q)}}D||(D=new _r);var st=D.get(l);if(st)return st;D.set(l,x),KS(l)?l.forEach(function(gt){x.add(ar(gt,d,m,gt,l,D))}):WS(l)&&l.forEach(function(gt,Rt){x.set(Rt,ar(gt,d,m,Rt,l,D))});var mt=Ae?ue?Km:Gm:ue?Is:Gn,Et=Ee?n:mt(l);return rr(Et||l,function(gt,Rt){Et&&(Rt=gt,gt=l[Rt]),Uc(x,Rt,ar(gt,d,m,Rt,l,D))}),x}function mM(l){var d=Gn(l);return function(m){return Pw(m,l,d)}}function Pw(l,d,m){var _=m.length;if(l==null)return!_;for(l=dn(l);_--;){var L=m[_],D=d[L],x=l[L];if(x===n&&!(L in l)||!D(x))return!1}return!0}function Lw(l,d,m){if(typeof l!="function")throw new or(i);return Wc(function(){l.apply(n,m)},d)}function jc(l,d,m,_){var L=-1,D=Rd,x=!0,Q=l.length,ue=[],Ae=d.length;if(!Q)return ue;m&&(d=kn(d,Bs(m))),_?(D=hm,x=!1):d.length>=r&&(D=Oc,x=!1,d=new la(d));e:for(;++L<Q;){var Ee=l[L],Le=m==null?Ee:m(Ee);if(Ee=_||Ee!==0?Ee:0,x&&Le===Le){for(var He=Ae;He--;)if(d[He]===Le)continue e;ue.push(Ee)}else D(d,Le,_)||ue.push(Ee)}return ue}var ci=rS(zr),Ow=rS(Im,!0);function gM(l,d){var m=!0;return ci(l,function(_,L,D){return m=!!d(_,L,D),m}),m}function Jd(l,d,m){for(var _=-1,L=l.length;++_<L;){var D=l[_],x=d(D);if(x!=null&&(Q===n?x===x&&!qs(x):m(x,Q)))var Q=x,ue=D}return ue}function vM(l,d,m,_){var L=l.length;for(m=At(m),m<0&&(m=-m>L?0:L+m),_=_===n||_>L?L:At(_),_<0&&(_+=L),_=m>_?0:YS(_);m<_;)l[m++]=d;return l}function Rw(l,d){var m=[];return ci(l,function(_,L,D){d(_,L,D)&&m.push(_)}),m}function Qn(l,d,m,_,L){var D=-1,x=l.length;for(m||(m=oN),L||(L=[]);++D<x;){var Q=l[D];d>0&&m(Q)?d>1?Qn(Q,d-1,m,_,L):ii(L,Q):_||(L[L.length]=Q)}return L}var Em=oS(),Mw=oS(!0);function zr(l,d){return l&&Em(l,d,Gn)}function Im(l,d){return l&&Mw(l,d,Gn)}function Zd(l,d){return oi(d,function(m){return $o(l[m])})}function ua(l,d){d=di(d,l);for(var m=0,_=d.length;l!=null&&m<_;)l=l[Hr(d[m++])];return m&&m==_?l:n}function Nw(l,d,m){var _=d(l);return kt(l)?_:ii(_,m(l))}function ys(l){return l==null?l===n?re:we:ia&&ia in dn(l)?QM(l):fN(l)}function Pm(l,d){return l>d}function bM(l,d){return l!=null&&tn.call(l,d)}function yM(l,d){return l!=null&&d in dn(l)}function _M(l,d,m){return l>=ls(d,m)&&l<zn(d,m)}function Lm(l,d,m){for(var _=m?hm:Rd,L=l[0].length,D=l.length,x=D,Q=ve(D),ue=1/0,Ae=[];x--;){var Ee=l[x];x&&d&&(Ee=kn(Ee,Bs(d))),ue=ls(Ee.length,ue),Q[x]=!m&&(d||L>=120&&Ee.length>=120)?new la(x&&Ee):n}Ee=l[0];var Le=-1,He=Q[0];e:for(;++Le<L&&Ae.length<ue;){var st=Ee[Le],mt=d?d(st):st;if(st=m||st!==0?st:0,!(He?Oc(He,mt):_(Ae,mt,m))){for(x=D;--x;){var Et=Q[x];if(!(Et?Oc(Et,mt):_(l[x],mt,m)))continue e}He&&He.push(mt),Ae.push(st)}}return Ae}function wM(l,d,m,_){return zr(l,function(L,D,x){d(_,m(L),D,x)}),_}function Bc(l,d,m){d=di(d,l),l=SS(l,d);var _=l==null?l:l[Hr(cr(d))];return _==null?n:js(_,l,m)}function Fw(l){return In(l)&&ys(l)==ft}function SM(l){return In(l)&&ys(l)==rt}function $M(l){return In(l)&&ys(l)==Fe}function zc(l,d,m,_,L){return l===d?!0:l==null||d==null||!In(l)&&!In(d)?l!==l&&d!==d:kM(l,d,m,_,zc,L)}function kM(l,d,m,_,L,D){var x=kt(l),Q=kt(d),ue=x?Ht:cs(l),Ae=Q?Ht:cs(d);ue=ue==ft?be:ue,Ae=Ae==ft?be:Ae;var Ee=ue==be,Le=Ae==be,He=ue==Ae;if(He&&hi(l)){if(!hi(d))return!1;x=!0,Ee=!1}if(He&&!Ee)return D||(D=new _r),x||gl(l)?mS(l,d,m,_,L,D):JM(l,d,ue,m,_,L,D);if(!(m&S)){var st=Ee&&tn.call(l,"__wrapped__"),mt=Le&&tn.call(d,"__wrapped__");if(st||mt){var Et=st?l.value():l,gt=mt?d.value():d;return D||(D=new _r),L(Et,gt,m,_,D)}}return He?(D||(D=new _r),ZM(l,d,m,_,L,D)):!1}function CM(l){return In(l)&&cs(l)==ee}function Om(l,d,m,_){var L=m.length,D=L,x=!_;if(l==null)return!D;for(l=dn(l);L--;){var Q=m[L];if(x&&Q[2]?Q[1]!==l[Q[0]]:!(Q[0]in l))return!1}for(;++L<D;){Q=m[L];var ue=Q[0],Ae=l[ue],Ee=Q[1];if(x&&Q[2]){if(Ae===n&&!(ue in l))return!1}else{var Le=new _r;if(_)var He=_(Ae,Ee,ue,l,d,Le);if(!(He===n?zc(Ee,Ae,S|k,_,Le):He))return!1}}return!0}function Dw(l){if(!Tn(l)||aN(l))return!1;var d=$o(l)?CR:$c;return d.test(fa(l))}function TM(l){return In(l)&&ys(l)==te}function AM(l){return In(l)&&cs(l)==fe}function EM(l){return In(l)&&gf(l.length)&&!!un[ys(l)]}function Uw(l){return typeof l=="function"?l:l==null?Ps:typeof l=="object"?kt(l)?zw(l[0],l[1]):Bw(l):i$(l)}function Rm(l){if(!Vc(l))return LR(l);var d=[];for(var m in dn(l))tn.call(l,m)&&m!="constructor"&&d.push(m);return d}function IM(l){if(!Tn(l))return dN(l);var d=Vc(l),m=[];for(var _ in l)_=="constructor"&&(d||!tn.call(l,_))||m.push(_);return m}function Mm(l,d){return l<d}function jw(l,d){var m=-1,_=Es(l)?ve(l.length):[];return ci(l,function(L,D,x){_[++m]=d(L,D,x)}),_}function Bw(l){var d=Ym(l);return d.length==1&&d[0][2]?_S(d[0][0],d[0][1]):function(m){return m===l||Om(m,l,d)}}function zw(l,d){return Jm(l)&&yS(d)?_S(Hr(l),d):function(m){var _=ag(m,l);return _===n&&_===d?lg(m,l):zc(d,_,S|k)}}function Qd(l,d,m,_,L){l!==d&&Em(d,function(D,x){if(L||(L=new _r),Tn(D))PM(l,d,x,m,Qd,_,L);else{var Q=_?_(Qm(l,x),D,x+"",l,d,L):n;Q===n&&(Q=D),Tm(l,x,Q)}},Is)}function PM(l,d,m,_,L,D,x){var Q=Qm(l,m),ue=Qm(d,m),Ae=x.get(ue);if(Ae){Tm(l,m,Ae);return}var Ee=D?D(Q,ue,m+"",l,d,x):n,Le=Ee===n;if(Le){var He=kt(ue),st=!He&&hi(ue),mt=!He&&!st&&gl(ue);Ee=ue,He||st||mt?kt(Q)?Ee=Q:Mn(Q)?Ee=As(Q):st?(Le=!1,Ee=Qw(ue,!0)):mt?(Le=!1,Ee=eS(ue,!0)):Ee=[]:Gc(ue)||ha(ue)?(Ee=Q,ha(Q)?Ee=XS(Q):(!Tn(Q)||$o(Q))&&(Ee=bS(ue))):Le=!1}Le&&(x.set(ue,Ee),L(Ee,ue,_,D,x),x.delete(ue)),Tm(l,m,Ee)}function qw(l,d){var m=l.length;if(m)return d+=d<0?m:0,So(d,m)?l[d]:n}function Hw(l,d,m){d.length?d=kn(d,function(D){return kt(D)?function(x){return ua(x,D.length===1?D[0]:D)}:D}):d=[Ps];var _=-1;d=kn(d,Bs(ht()));var L=jw(l,function(D,x,Q){var ue=kn(d,function(Ae){return Ae(D)});return{criteria:ue,index:++_,value:D}});return sR(L,function(D,x){return HM(D,x,m)})}function LM(l,d){return Vw(l,d,function(m,_){return lg(l,_)})}function Vw(l,d,m){for(var _=-1,L=d.length,D={};++_<L;){var x=d[_],Q=ua(l,x);m(Q,x)&&qc(D,di(x,l),Q)}return D}function OM(l){return function(d){return ua(d,l)}}function Nm(l,d,m,_){var L=_?nR:ol,D=-1,x=d.length,Q=l;for(l===d&&(d=As(d)),m&&(Q=kn(l,Bs(m)));++D<x;)for(var ue=0,Ae=d[D],Ee=m?m(Ae):Ae;(ue=L(Q,Ee,ue,_))>-1;)Q!==l&&Hd.call(Q,ue,1),Hd.call(l,ue,1);return l}function Ww(l,d){for(var m=l?d.length:0,_=m-1;m--;){var L=d[m];if(m==_||L!==D){var D=L;So(L)?Hd.call(l,L,1):jm(l,L)}}return l}function Fm(l,d){return l+Gd(Cw()*(d-l+1))}function RM(l,d,m,_){for(var L=-1,D=zn(Wd((d-l)/(m||1)),0),x=ve(D);D--;)x[_?D:++L]=l,l+=m;return x}function Dm(l,d){var m="";if(!l||d<1||d>ot)return m;do d%2&&(m+=l),d=Gd(d/2),d&&(l+=l);while(d);return m}function Pt(l,d){return eg(wS(l,d,Ps),l+"")}function MM(l){return Ew(vl(l))}function NM(l,d){var m=vl(l);return uf(m,ca(d,0,m.length))}function qc(l,d,m,_){if(!Tn(l))return l;d=di(d,l);for(var L=-1,D=d.length,x=D-1,Q=l;Q!=null&&++L<D;){var ue=Hr(d[L]),Ae=m;if(ue==="__proto__"||ue==="constructor"||ue==="prototype")return l;if(L!=x){var Ee=Q[ue];Ae=_?_(Ee,ue,Q):n,Ae===n&&(Ae=Tn(Ee)?Ee:So(d[L+1])?[]:{})}Uc(Q,ue,Ae),Q=Q[ue]}return l}var Gw=Kd?function(l,d){return Kd.set(l,d),l}:Ps,FM=Vd?function(l,d){return Vd(l,"toString",{configurable:!0,enumerable:!1,value:ug(d),writable:!0})}:Ps;function DM(l){return uf(vl(l))}function lr(l,d,m){var _=-1,L=l.length;d<0&&(d=-d>L?0:L+d),m=m>L?L:m,m<0&&(m+=L),L=d>m?0:m-d>>>0,d>>>=0;for(var D=ve(L);++_<L;)D[_]=l[_+d];return D}function UM(l,d){var m;return ci(l,function(_,L,D){return m=d(_,L,D),!m}),!!m}function ef(l,d,m){var _=0,L=l==null?_:l.length;if(typeof d=="number"&&d===d&&L<=nt){for(;_<L;){var D=_+L>>>1,x=l[D];x!==null&&!qs(x)&&(m?x<=d:x<d)?_=D+1:L=D}return L}return Um(l,d,Ps,m)}function Um(l,d,m,_){var L=0,D=l==null?0:l.length;if(D===0)return 0;d=m(d);for(var x=d!==d,Q=d===null,ue=qs(d),Ae=d===n;L<D;){var Ee=Gd((L+D)/2),Le=m(l[Ee]),He=Le!==n,st=Le===null,mt=Le===Le,Et=qs(Le);if(x)var gt=_||mt;else Ae?gt=mt&&(_||He):Q?gt=mt&&He&&(_||!st):ue?gt=mt&&He&&!st&&(_||!Et):st||Et?gt=!1:gt=_?Le<=d:Le<d;gt?L=Ee+1:D=Ee}return ls(D,It)}function Kw(l,d){for(var m=-1,_=l.length,L=0,D=[];++m<_;){var x=l[m],Q=d?d(x):x;if(!m||!wr(Q,ue)){var ue=Q;D[L++]=x===0?0:x}}return D}function xw(l){return typeof l=="number"?l:qs(l)?dt:+l}function zs(l){if(typeof l=="string")return l;if(kt(l))return kn(l,zs)+"";if(qs(l))return Tw?Tw.call(l):"";var d=l+"";return d=="0"&&1/l==-1/0?"-0":d}function ui(l,d,m){var _=-1,L=Rd,D=l.length,x=!0,Q=[],ue=Q;if(m)x=!1,L=hm;else if(D>=r){var Ae=d?null:YM(l);if(Ae)return Nd(Ae);x=!1,L=Oc,ue=new la}else ue=d?[]:Q;e:for(;++_<D;){var Ee=l[_],Le=d?d(Ee):Ee;if(Ee=m||Ee!==0?Ee:0,x&&Le===Le){for(var He=ue.length;He--;)if(ue[He]===Le)continue e;d&&ue.push(Le),Q.push(Ee)}else L(ue,Le,m)||(ue!==Q&&ue.push(Le),Q.push(Ee))}return Q}function jm(l,d){return d=di(d,l),l=SS(l,d),l==null||delete l[Hr(cr(d))]}function Yw(l,d,m,_){return qc(l,d,m(ua(l,d)),_)}function tf(l,d,m,_){for(var L=l.length,D=_?L:-1;(_?D--:++D<L)&&d(l[D],D,l););return m?lr(l,_?0:D,_?D+1:L):lr(l,_?D+1:0,_?L:D)}function Xw(l,d){var m=l;return m instanceof Ut&&(m=m.value()),pm(d,function(_,L){return L.func.apply(L.thisArg,ii([_],L.args))},m)}function Bm(l,d,m){var _=l.length;if(_<2)return _?ui(l[0]):[];for(var L=-1,D=ve(_);++L<_;)for(var x=l[L],Q=-1;++Q<_;)Q!=L&&(D[L]=jc(D[L]||x,l[Q],d,m));return ui(Qn(D,1),d,m)}function Jw(l,d,m){for(var _=-1,L=l.length,D=d.length,x={};++_<L;){var Q=_<D?d[_]:n;m(x,l[_],Q)}return x}function zm(l){return Mn(l)?l:[]}function qm(l){return typeof l=="function"?l:Ps}function di(l,d){return kt(l)?l:Jm(l,d)?[l]:TS(Xt(l))}var jM=Pt;function fi(l,d,m){var _=l.length;return m=m===n?_:m,!d&&m>=_?l:lr(l,d,m)}var Zw=TR||function(l){return yt.clearTimeout(l)};function Qw(l,d){if(d)return l.slice();var m=l.length,_=_w?_w(m):new l.constructor(m);return l.copy(_),_}function Hm(l){var d=new l.constructor(l.byteLength);return new zd(d).set(new zd(l)),d}function BM(l,d){var m=d?Hm(l.buffer):l.buffer;return new l.constructor(m,l.byteOffset,l.byteLength)}function zM(l){var d=new l.constructor(l.source,Za.exec(l));return d.lastIndex=l.lastIndex,d}function qM(l){return Dc?dn(Dc.call(l)):{}}function eS(l,d){var m=d?Hm(l.buffer):l.buffer;return new l.constructor(m,l.byteOffset,l.length)}function tS(l,d){if(l!==d){var m=l!==n,_=l===null,L=l===l,D=qs(l),x=d!==n,Q=d===null,ue=d===d,Ae=qs(d);if(!Q&&!Ae&&!D&&l>d||D&&x&&ue&&!Q&&!Ae||_&&x&&ue||!m&&ue||!L)return 1;if(!_&&!D&&!Ae&&l<d||Ae&&m&&L&&!_&&!D||Q&&m&&L||!x&&L||!ue)return-1}return 0}function HM(l,d,m){for(var _=-1,L=l.criteria,D=d.criteria,x=L.length,Q=m.length;++_<x;){var ue=tS(L[_],D[_]);if(ue){if(_>=Q)return ue;var Ae=m[_];return ue*(Ae=="desc"?-1:1)}}return l.index-d.index}function nS(l,d,m,_){for(var L=-1,D=l.length,x=m.length,Q=-1,ue=d.length,Ae=zn(D-x,0),Ee=ve(ue+Ae),Le=!_;++Q<ue;)Ee[Q]=d[Q];for(;++L<x;)(Le||L<D)&&(Ee[m[L]]=l[L]);for(;Ae--;)Ee[Q++]=l[L++];return Ee}function sS(l,d,m,_){for(var L=-1,D=l.length,x=-1,Q=m.length,ue=-1,Ae=d.length,Ee=zn(D-Q,0),Le=ve(Ee+Ae),He=!_;++L<Ee;)Le[L]=l[L];for(var st=L;++ue<Ae;)Le[st+ue]=d[ue];for(;++x<Q;)(He||L<D)&&(Le[st+m[x]]=l[L++]);return Le}function As(l,d){var m=-1,_=l.length;for(d||(d=ve(_));++m<_;)d[m]=l[m];return d}function qr(l,d,m,_){var L=!m;m||(m={});for(var D=-1,x=d.length;++D<x;){var Q=d[D],ue=_?_(m[Q],l[Q],Q,m,l):n;ue===n&&(ue=l[Q]),L?yo(m,Q,ue):Uc(m,Q,ue)}return m}function VM(l,d){return qr(l,Xm(l),d)}function WM(l,d){return qr(l,gS(l),d)}function nf(l,d){return function(m,_){var L=kt(m)?XO:hM,D=d?d():{};return L(m,l,ht(_,2),D)}}function hl(l){return Pt(function(d,m){var _=-1,L=m.length,D=L>1?m[L-1]:n,x=L>2?m[2]:n;for(D=l.length>3&&typeof D=="function"?(L--,D):n,x&&_s(m[0],m[1],x)&&(D=L<3?n:D,L=1),d=dn(d);++_<L;){var Q=m[_];Q&&l(d,Q,_,D)}return d})}function rS(l,d){return function(m,_){if(m==null)return m;if(!Es(m))return l(m,_);for(var L=m.length,D=d?L:-1,x=dn(m);(d?D--:++D<L)&&_(x[D],D,x)!==!1;);return m}}function oS(l){return function(d,m,_){for(var L=-1,D=dn(d),x=_(d),Q=x.length;Q--;){var ue=x[l?Q:++L];if(m(D[ue],ue,D)===!1)break}return d}}function GM(l,d,m){var _=d&I,L=Hc(l);function D(){var x=this&&this!==yt&&this instanceof D?L:l;return x.apply(_?m:this,arguments)}return D}function iS(l){return function(d){d=Xt(d);var m=il(d)?yr(d):n,_=m?m[0]:d.charAt(0),L=m?fi(m,1).join(""):d.slice(1);return _[l]()+L}}function pl(l){return function(d){return pm(r$(s$(d).replace(Pd,"")),l,"")}}function Hc(l){return function(){var d=arguments;switch(d.length){case 0:return new l;case 1:return new l(d[0]);case 2:return new l(d[0],d[1]);case 3:return new l(d[0],d[1],d[2]);case 4:return new l(d[0],d[1],d[2],d[3]);case 5:return new l(d[0],d[1],d[2],d[3],d[4]);case 6:return new l(d[0],d[1],d[2],d[3],d[4],d[5]);case 7:return new l(d[0],d[1],d[2],d[3],d[4],d[5],d[6])}var m=fl(l.prototype),_=l.apply(m,d);return Tn(_)?_:m}}function KM(l,d,m){var _=Hc(l);function L(){for(var D=arguments.length,x=ve(D),Q=D,ue=ml(L);Q--;)x[Q]=arguments[Q];var Ae=D<3&&x[0]!==ue&&x[D-1]!==ue?[]:ai(x,ue);if(D-=Ae.length,D<m)return dS(l,d,sf,L.placeholder,n,x,Ae,n,n,m-D);var Ee=this&&this!==yt&&this instanceof L?_:l;return js(Ee,this,x)}return L}function aS(l){return function(d,m,_){var L=dn(d);if(!Es(d)){var D=ht(m,3);d=Gn(d),m=function(Q){return D(L[Q],Q,L)}}var x=l(d,m,_);return x>-1?L[D?d[x]:x]:n}}function lS(l){return wo(function(d){var m=d.length,_=m,L=ir.prototype.thru;for(l&&d.reverse();_--;){var D=d[_];if(typeof D!="function")throw new or(i);if(L&&!x&&lf(D)=="wrapper")var x=new ir([],!0)}for(_=x?_:m;++_<m;){D=d[_];var Q=lf(D),ue=Q=="wrapper"?xm(D):n;ue&&Zm(ue[0])&&ue[1]==(N|P|R|W)&&!ue[4].length&&ue[9]==1?x=x[lf(ue[0])].apply(x,ue[3]):x=D.length==1&&Zm(D)?x[Q]():x.thru(D)}return function(){var Ae=arguments,Ee=Ae[0];if(x&&Ae.length==1&&kt(Ee))return x.plant(Ee).value();for(var Le=0,He=m?d[Le].apply(this,Ae):Ee;++Le<m;)He=d[Le].call(this,He);return He}})}function sf(l,d,m,_,L,D,x,Q,ue,Ae){var Ee=d&N,Le=d&I,He=d&C,st=d&(P|A),mt=d&V,Et=He?n:Hc(l);function gt(){for(var Rt=arguments.length,qt=ve(Rt),Hs=Rt;Hs--;)qt[Hs]=arguments[Hs];if(st)var ws=ml(gt),Vs=oR(qt,ws);if(_&&(qt=nS(qt,_,L,st)),D&&(qt=sS(qt,D,x,st)),Rt-=Vs,st&&Rt<Ae){var Nn=ai(qt,ws);return dS(l,d,sf,gt.placeholder,m,qt,Nn,Q,ue,Ae-Rt)}var Sr=Le?m:this,Co=He?Sr[l]:l;return Rt=qt.length,Q?qt=hN(qt,Q):mt&&Rt>1&&qt.reverse(),Ee&&ue<Rt&&(qt.length=ue),this&&this!==yt&&this instanceof gt&&(Co=Et||Hc(Co)),Co.apply(Sr,qt)}return gt}function cS(l,d){return function(m,_){return wM(m,l,d(_),{})}}function rf(l,d){return function(m,_){var L;if(m===n&&_===n)return d;if(m!==n&&(L=m),_!==n){if(L===n)return _;typeof m=="string"||typeof _=="string"?(m=zs(m),_=zs(_)):(m=xw(m),_=xw(_)),L=l(m,_)}return L}}function Vm(l){return wo(function(d){return d=kn(d,Bs(ht())),Pt(function(m){var _=this;return l(d,function(L){return js(L,_,m)})})})}function of(l,d){d=d===n?" ":zs(d);var m=d.length;if(m<2)return m?Dm(d,l):d;var _=Dm(d,Wd(l/al(d)));return il(d)?fi(yr(_),0,l).join(""):_.slice(0,l)}function xM(l,d,m,_){var L=d&I,D=Hc(l);function x(){for(var Q=-1,ue=arguments.length,Ae=-1,Ee=_.length,Le=ve(Ee+ue),He=this&&this!==yt&&this instanceof x?D:l;++Ae<Ee;)Le[Ae]=_[Ae];for(;ue--;)Le[Ae++]=arguments[++Q];return js(He,L?m:this,Le)}return x}function uS(l){return function(d,m,_){return _&&typeof _!="number"&&_s(d,m,_)&&(m=_=n),d=ko(d),m===n?(m=d,d=0):m=ko(m),_=_===n?d<m?1:-1:ko(_),RM(d,m,_,l)}}function af(l){return function(d,m){return typeof d=="string"&&typeof m=="string"||(d=ur(d),m=ur(m)),l(d,m)}}function dS(l,d,m,_,L,D,x,Q,ue,Ae){var Ee=d&P,Le=Ee?x:n,He=Ee?n:x,st=Ee?D:n,mt=Ee?n:D;d|=Ee?R:B,d&=~(Ee?B:R),d&$||(d&=-4);var Et=[l,d,L,st,Le,mt,He,Q,ue,Ae],gt=m.apply(n,Et);return Zm(l)&&$S(gt,Et),gt.placeholder=_,kS(gt,l,d)}function Wm(l){var d=Bn[l];return function(m,_){if(m=ur(m),_=_==null?0:ls(At(_),292),_&&kw(m)){var L=(Xt(m)+"e").split("e"),D=d(L[0]+"e"+(+L[1]+_));return L=(Xt(D)+"e").split("e"),+(L[0]+"e"+(+L[1]-_))}return d(m)}}var YM=ul&&1/Nd(new ul([,-0]))[1]==ze?function(l){return new ul(l)}:hg;function fS(l){return function(d){var m=cs(d);return m==ee?wm(d):m==fe?fR(d):rR(d,l(d))}}function _o(l,d,m,_,L,D,x,Q){var ue=d&C;if(!ue&&typeof l!="function")throw new or(i);var Ae=_?_.length:0;if(Ae||(d&=-97,_=L=n),x=x===n?x:zn(At(x),0),Q=Q===n?Q:At(Q),Ae-=L?L.length:0,d&B){var Ee=_,Le=L;_=L=n}var He=ue?n:xm(l),st=[l,d,m,_,L,Ee,Le,D,x,Q];if(He&&uN(st,He),l=st[0],d=st[1],m=st[2],_=st[3],L=st[4],Q=st[9]=st[9]===n?ue?0:l.length:zn(st[9]-Ae,0),!Q&&d&(P|A)&&(d&=-25),!d||d==I)var mt=GM(l,d,m);else d==P||d==A?mt=KM(l,d,Q):(d==R||d==(I|R))&&!L.length?mt=xM(l,d,m,_):mt=sf.apply(n,st);var Et=He?Gw:$S;return kS(Et(mt,st),l,d)}function hS(l,d,m,_){return l===n||wr(l,cl[m])&&!tn.call(_,m)?d:l}function pS(l,d,m,_,L,D){return Tn(l)&&Tn(d)&&(D.set(d,l),Qd(l,d,n,pS,D),D.delete(d)),l}function XM(l){return Gc(l)?n:l}function mS(l,d,m,_,L,D){var x=m&S,Q=l.length,ue=d.length;if(Q!=ue&&!(x&&ue>Q))return!1;var Ae=D.get(l),Ee=D.get(d);if(Ae&&Ee)return Ae==d&&Ee==l;var Le=-1,He=!0,st=m&k?new la:n;for(D.set(l,d),D.set(d,l);++Le<Q;){var mt=l[Le],Et=d[Le];if(_)var gt=x?_(Et,mt,Le,d,l,D):_(mt,Et,Le,l,d,D);if(gt!==n){if(gt)continue;He=!1;break}if(st){if(!mm(d,function(Rt,qt){if(!Oc(st,qt)&&(mt===Rt||L(mt,Rt,m,_,D)))return st.push(qt)})){He=!1;break}}else if(!(mt===Et||L(mt,Et,m,_,D))){He=!1;break}}return D.delete(l),D.delete(d),He}function JM(l,d,m,_,L,D,x){switch(m){case ut:if(l.byteLength!=d.byteLength||l.byteOffset!=d.byteOffset)return!1;l=l.buffer,d=d.buffer;case rt:return!(l.byteLength!=d.byteLength||!D(new zd(l),new zd(d)));case Me:case Fe:case pe:return wr(+l,+d);case pt:return l.name==d.name&&l.message==d.message;case te:case je:return l==d+"";case ee:var Q=wm;case fe:var ue=_&S;if(Q||(Q=Nd),l.size!=d.size&&!ue)return!1;var Ae=x.get(l);if(Ae)return Ae==d;_|=k,x.set(l,d);var Ee=mS(Q(l),Q(d),_,L,D,x);return x.delete(l),Ee;case $e:if(Dc)return Dc.call(l)==Dc.call(d)}return!1}function ZM(l,d,m,_,L,D){var x=m&S,Q=Gm(l),ue=Q.length,Ae=Gm(d),Ee=Ae.length;if(ue!=Ee&&!x)return!1;for(var Le=ue;Le--;){var He=Q[Le];if(!(x?He in d:tn.call(d,He)))return!1}var st=D.get(l),mt=D.get(d);if(st&&mt)return st==d&&mt==l;var Et=!0;D.set(l,d),D.set(d,l);for(var gt=x;++Le<ue;){He=Q[Le];var Rt=l[He],qt=d[He];if(_)var Hs=x?_(qt,Rt,He,d,l,D):_(Rt,qt,He,l,d,D);if(!(Hs===n?Rt===qt||L(Rt,qt,m,_,D):Hs)){Et=!1;break}gt||(gt=He=="constructor")}if(Et&&!gt){var ws=l.constructor,Vs=d.constructor;ws!=Vs&&"constructor"in l&&"constructor"in d&&!(typeof ws=="function"&&ws instanceof ws&&typeof Vs=="function"&&Vs instanceof Vs)&&(Et=!1)}return D.delete(l),D.delete(d),Et}function wo(l){return eg(wS(l,n,PS),l+"")}function Gm(l){return Nw(l,Gn,Xm)}function Km(l){return Nw(l,Is,gS)}var xm=Kd?function(l){return Kd.get(l)}:hg;function lf(l){for(var d=l.name+"",m=dl[d],_=tn.call(dl,d)?m.length:0;_--;){var L=m[_],D=L.func;if(D==null||D==l)return L.name}return d}function ml(l){var d=tn.call(M,"placeholder")?M:l;return d.placeholder}function ht(){var l=M.iteratee||dg;return l=l===dg?Uw:l,arguments.length?l(arguments[0],arguments[1]):l}function cf(l,d){var m=l.__data__;return iN(d)?m[typeof d=="string"?"string":"hash"]:m.map}function Ym(l){for(var d=Gn(l),m=d.length;m--;){var _=d[m],L=l[_];d[m]=[_,L,yS(L)]}return d}function da(l,d){var m=cR(l,d);return Dw(m)?m:n}function QM(l){var d=tn.call(l,ia),m=l[ia];try{l[ia]=n;var _=!0}catch{}var L=jd.call(l);return _&&(d?l[ia]=m:delete l[ia]),L}var Xm=$m?function(l){return l==null?[]:(l=dn(l),oi($m(l),function(d){return Sw.call(l,d)}))}:pg,gS=$m?function(l){for(var d=[];l;)ii(d,Xm(l)),l=qd(l);return d}:pg,cs=ys;(km&&cs(new km(new ArrayBuffer(1)))!=ut||Mc&&cs(new Mc)!=ee||Cm&&cs(Cm.resolve())!=j||ul&&cs(new ul)!=fe||Nc&&cs(new Nc)!=me)&&(cs=function(l){var d=ys(l),m=d==be?l.constructor:n,_=m?fa(m):"";if(_)switch(_){case NR:return ut;case FR:return ee;case DR:return j;case UR:return fe;case jR:return me}return d});function eN(l,d,m){for(var _=-1,L=m.length;++_<L;){var D=m[_],x=D.size;switch(D.type){case"drop":l+=x;break;case"dropRight":d-=x;break;case"take":d=ls(d,l+x);break;case"takeRight":l=zn(l,d-x);break}}return{start:l,end:d}}function tN(l){var d=l.match(gc);return d?d[1].split(vc):[]}function vS(l,d,m){d=di(d,l);for(var _=-1,L=d.length,D=!1;++_<L;){var x=Hr(d[_]);if(!(D=l!=null&&m(l,x)))break;l=l[x]}return D||++_!=L?D:(L=l==null?0:l.length,!!L&&gf(L)&&So(x,L)&&(kt(l)||ha(l)))}function nN(l){var d=l.length,m=new l.constructor(d);return d&&typeof l[0]=="string"&&tn.call(l,"index")&&(m.index=l.index,m.input=l.input),m}function bS(l){return typeof l.constructor=="function"&&!Vc(l)?fl(qd(l)):{}}function sN(l,d,m){var _=l.constructor;switch(d){case rt:return Hm(l);case Me:case Fe:return new _(+l);case ut:return BM(l,m);case Qt:case Wt:case En:case On:case Cs:case tr:case ln:case Rn:case nr:return eS(l,m);case ee:return new _;case pe:case je:return new _(l);case te:return zM(l);case fe:return new _;case $e:return qM(l)}}function rN(l,d){var m=d.length;if(!m)return l;var _=m-1;return d[_]=(m>1?"& ":"")+d[_],d=d.join(m>2?", ":" "),l.replace(Ur,`{
/* [wrapped with `+d+`] */
`)}function oN(l){return kt(l)||ha(l)||!!($w&&l&&l[$w])}function So(l,d){var m=typeof l;return d=d??ot,!!d&&(m=="number"||m!="symbol"&&Cc.test(l))&&l>-1&&l%1==0&&l<d}function _s(l,d,m){if(!Tn(m))return!1;var _=typeof d;return(_=="number"?Es(m)&&So(d,m.length):_=="string"&&d in m)?wr(m[d],l):!1}function Jm(l,d){if(kt(l))return!1;var m=typeof l;return m=="number"||m=="symbol"||m=="boolean"||l==null||qs(l)?!0:Ds.test(l)||!hc.test(l)||d!=null&&l in dn(d)}function iN(l){var d=typeof l;return d=="string"||d=="number"||d=="symbol"||d=="boolean"?l!=="__proto__":l===null}function Zm(l){var d=lf(l),m=M[d];if(typeof m!="function"||!(d in Ut.prototype))return!1;if(l===m)return!0;var _=xm(m);return!!_&&l===_[0]}function aN(l){return!!yw&&yw in l}var lN=Dd?$o:mg;function Vc(l){var d=l&&l.constructor,m=typeof d=="function"&&d.prototype||cl;return l===m}function yS(l){return l===l&&!Tn(l)}function _S(l,d){return function(m){return m==null?!1:m[l]===d&&(d!==n||l in dn(m))}}function cN(l){var d=pf(l,function(_){return m.size===u&&m.clear(),_}),m=d.cache;return d}function uN(l,d){var m=l[1],_=d[1],L=m|_,D=L<(I|C|N),x=_==N&&m==P||_==N&&m==W&&l[7].length<=d[8]||_==(N|W)&&d[7].length<=d[8]&&m==P;if(!(D||x))return l;_&I&&(l[2]=d[2],L|=m&I?0:$);var Q=d[3];if(Q){var ue=l[3];l[3]=ue?nS(ue,Q,d[4]):Q,l[4]=ue?ai(l[3],f):d[4]}return Q=d[5],Q&&(ue=l[5],l[5]=ue?sS(ue,Q,d[6]):Q,l[6]=ue?ai(l[5],f):d[6]),Q=d[7],Q&&(l[7]=Q),_&N&&(l[8]=l[8]==null?d[8]:ls(l[8],d[8])),l[9]==null&&(l[9]=d[9]),l[0]=d[0],l[1]=L,l}function dN(l){var d=[];if(l!=null)for(var m in dn(l))d.push(m);return d}function fN(l){return jd.call(l)}function wS(l,d,m){return d=zn(d===n?l.length-1:d,0),function(){for(var _=arguments,L=-1,D=zn(_.length-d,0),x=ve(D);++L<D;)x[L]=_[d+L];L=-1;for(var Q=ve(d+1);++L<d;)Q[L]=_[L];return Q[d]=m(x),js(l,this,Q)}}function SS(l,d){return d.length<2?l:ua(l,lr(d,0,-1))}function hN(l,d){for(var m=l.length,_=ls(d.length,m),L=As(l);_--;){var D=d[_];l[_]=So(D,m)?L[D]:n}return l}function Qm(l,d){if(!(d==="constructor"&&typeof l[d]=="function")&&d!="__proto__")return l[d]}var $S=CS(Gw),Wc=ER||function(l,d){return yt.setTimeout(l,d)},eg=CS(FM);function kS(l,d,m){var _=d+"";return eg(l,rN(_,pN(tN(_),m)))}function CS(l){var d=0,m=0;return function(){var _=OR(),L=Pe-(_-m);if(m=_,L>0){if(++d>=le)return arguments[0]}else d=0;return l.apply(n,arguments)}}function uf(l,d){var m=-1,_=l.length,L=_-1;for(d=d===n?_:d;++m<d;){var D=Fm(m,L),x=l[D];l[D]=l[m],l[m]=x}return l.length=d,l}var TS=cN(function(l){var d=[];return l.charCodeAt(0)===46&&d.push(""),l.replace(pc,function(m,_,L,D){d.push(L?D.replace(_c,"$1"):_||m)}),d});function Hr(l){if(typeof l=="string"||qs(l))return l;var d=l+"";return d=="0"&&1/l==-1/0?"-0":d}function fa(l){if(l!=null){try{return Ud.call(l)}catch{}try{return l+""}catch{}}return""}function pN(l,d){return rr(_t,function(m){var _="_."+m[0];d&m[1]&&!Rd(l,_)&&l.push(_)}),l.sort()}function AS(l){if(l instanceof Ut)return l.clone();var d=new ir(l.__wrapped__,l.__chain__);return d.__actions__=As(l.__actions__),d.__index__=l.__index__,d.__values__=l.__values__,d}function mN(l,d,m){(m?_s(l,d,m):d===n)?d=1:d=zn(At(d),0);var _=l==null?0:l.length;if(!_||d<1)return[];for(var L=0,D=0,x=ve(Wd(_/d));L<_;)x[D++]=lr(l,L,L+=d);return x}function gN(l){for(var d=-1,m=l==null?0:l.length,_=0,L=[];++d<m;){var D=l[d];D&&(L[_++]=D)}return L}function vN(){var l=arguments.length;if(!l)return[];for(var d=ve(l-1),m=arguments[0],_=l;_--;)d[_-1]=arguments[_];return ii(kt(m)?As(m):[m],Qn(d,1))}var bN=Pt(function(l,d){return Mn(l)?jc(l,Qn(d,1,Mn,!0)):[]}),yN=Pt(function(l,d){var m=cr(d);return Mn(m)&&(m=n),Mn(l)?jc(l,Qn(d,1,Mn,!0),ht(m,2)):[]}),_N=Pt(function(l,d){var m=cr(d);return Mn(m)&&(m=n),Mn(l)?jc(l,Qn(d,1,Mn,!0),n,m):[]});function wN(l,d,m){var _=l==null?0:l.length;return _?(d=m||d===n?1:At(d),lr(l,d<0?0:d,_)):[]}function SN(l,d,m){var _=l==null?0:l.length;return _?(d=m||d===n?1:At(d),d=_-d,lr(l,0,d<0?0:d)):[]}function $N(l,d){return l&&l.length?tf(l,ht(d,3),!0,!0):[]}function kN(l,d){return l&&l.length?tf(l,ht(d,3),!0):[]}function CN(l,d,m,_){var L=l==null?0:l.length;return L?(m&&typeof m!="number"&&_s(l,d,m)&&(m=0,_=L),vM(l,d,m,_)):[]}function ES(l,d,m){var _=l==null?0:l.length;if(!_)return-1;var L=m==null?0:At(m);return L<0&&(L=zn(_+L,0)),Md(l,ht(d,3),L)}function IS(l,d,m){var _=l==null?0:l.length;if(!_)return-1;var L=_-1;return m!==n&&(L=At(m),L=m<0?zn(_+L,0):ls(L,_-1)),Md(l,ht(d,3),L,!0)}function PS(l){var d=l==null?0:l.length;return d?Qn(l,1):[]}function TN(l){var d=l==null?0:l.length;return d?Qn(l,ze):[]}function AN(l,d){var m=l==null?0:l.length;return m?(d=d===n?1:At(d),Qn(l,d)):[]}function EN(l){for(var d=-1,m=l==null?0:l.length,_={};++d<m;){var L=l[d];_[L[0]]=L[1]}return _}function LS(l){return l&&l.length?l[0]:n}function IN(l,d,m){var _=l==null?0:l.length;if(!_)return-1;var L=m==null?0:At(m);return L<0&&(L=zn(_+L,0)),ol(l,d,L)}function PN(l){var d=l==null?0:l.length;return d?lr(l,0,-1):[]}var LN=Pt(function(l){var d=kn(l,zm);return d.length&&d[0]===l[0]?Lm(d):[]}),ON=Pt(function(l){var d=cr(l),m=kn(l,zm);return d===cr(m)?d=n:m.pop(),m.length&&m[0]===l[0]?Lm(m,ht(d,2)):[]}),RN=Pt(function(l){var d=cr(l),m=kn(l,zm);return d=typeof d=="function"?d:n,d&&m.pop(),m.length&&m[0]===l[0]?Lm(m,n,d):[]});function MN(l,d){return l==null?"":PR.call(l,d)}function cr(l){var d=l==null?0:l.length;return d?l[d-1]:n}function NN(l,d,m){var _=l==null?0:l.length;if(!_)return-1;var L=_;return m!==n&&(L=At(m),L=L<0?zn(_+L,0):ls(L,_-1)),d===d?pR(l,d,L):Md(l,dw,L,!0)}function FN(l,d){return l&&l.length?qw(l,At(d)):n}var DN=Pt(OS);function OS(l,d){return l&&l.length&&d&&d.length?Nm(l,d):l}function UN(l,d,m){return l&&l.length&&d&&d.length?Nm(l,d,ht(m,2)):l}function jN(l,d,m){return l&&l.length&&d&&d.length?Nm(l,d,n,m):l}var BN=wo(function(l,d){var m=l==null?0:l.length,_=Am(l,d);return Ww(l,kn(d,function(L){return So(L,m)?+L:L}).sort(tS)),_});function zN(l,d){var m=[];if(!(l&&l.length))return m;var _=-1,L=[],D=l.length;for(d=ht(d,3);++_<D;){var x=l[_];d(x,_,l)&&(m.push(x),L.push(_))}return Ww(l,L),m}function tg(l){return l==null?l:MR.call(l)}function qN(l,d,m){var _=l==null?0:l.length;return _?(m&&typeof m!="number"&&_s(l,d,m)?(d=0,m=_):(d=d==null?0:At(d),m=m===n?_:At(m)),lr(l,d,m)):[]}function HN(l,d){return ef(l,d)}function VN(l,d,m){return Um(l,d,ht(m,2))}function WN(l,d){var m=l==null?0:l.length;if(m){var _=ef(l,d);if(_<m&&wr(l[_],d))return _}return-1}function GN(l,d){return ef(l,d,!0)}function KN(l,d,m){return Um(l,d,ht(m,2),!0)}function xN(l,d){var m=l==null?0:l.length;if(m){var _=ef(l,d,!0)-1;if(wr(l[_],d))return _}return-1}function YN(l){return l&&l.length?Kw(l):[]}function XN(l,d){return l&&l.length?Kw(l,ht(d,2)):[]}function JN(l){var d=l==null?0:l.length;return d?lr(l,1,d):[]}function ZN(l,d,m){return l&&l.length?(d=m||d===n?1:At(d),lr(l,0,d<0?0:d)):[]}function QN(l,d,m){var _=l==null?0:l.length;return _?(d=m||d===n?1:At(d),d=_-d,lr(l,d<0?0:d,_)):[]}function e7(l,d){return l&&l.length?tf(l,ht(d,3),!1,!0):[]}function t7(l,d){return l&&l.length?tf(l,ht(d,3)):[]}var n7=Pt(function(l){return ui(Qn(l,1,Mn,!0))}),s7=Pt(function(l){var d=cr(l);return Mn(d)&&(d=n),ui(Qn(l,1,Mn,!0),ht(d,2))}),r7=Pt(function(l){var d=cr(l);return d=typeof d=="function"?d:n,ui(Qn(l,1,Mn,!0),n,d)});function o7(l){return l&&l.length?ui(l):[]}function i7(l,d){return l&&l.length?ui(l,ht(d,2)):[]}function a7(l,d){return d=typeof d=="function"?d:n,l&&l.length?ui(l,n,d):[]}function ng(l){if(!(l&&l.length))return[];var d=0;return l=oi(l,function(m){if(Mn(m))return d=zn(m.length,d),!0}),ym(d,function(m){return kn(l,gm(m))})}function RS(l,d){if(!(l&&l.length))return[];var m=ng(l);return d==null?m:kn(m,function(_){return js(d,n,_)})}var l7=Pt(function(l,d){return Mn(l)?jc(l,d):[]}),c7=Pt(function(l){return Bm(oi(l,Mn))}),u7=Pt(function(l){var d=cr(l);return Mn(d)&&(d=n),Bm(oi(l,Mn),ht(d,2))}),d7=Pt(function(l){var d=cr(l);return d=typeof d=="function"?d:n,Bm(oi(l,Mn),n,d)}),f7=Pt(ng);function h7(l,d){return Jw(l||[],d||[],Uc)}function p7(l,d){return Jw(l||[],d||[],qc)}var m7=Pt(function(l){var d=l.length,m=d>1?l[d-1]:n;return m=typeof m=="function"?(l.pop(),m):n,RS(l,m)});function MS(l){var d=M(l);return d.__chain__=!0,d}function g7(l,d){return d(l),l}function df(l,d){return d(l)}var v7=wo(function(l){var d=l.length,m=d?l[0]:0,_=this.__wrapped__,L=function(D){return Am(D,l)};return d>1||this.__actions__.length||!(_ instanceof Ut)||!So(m)?this.thru(L):(_=_.slice(m,+m+(d?1:0)),_.__actions__.push({func:df,args:[L],thisArg:n}),new ir(_,this.__chain__).thru(function(D){return d&&!D.length&&D.push(n),D}))});function b7(){return MS(this)}function y7(){return new ir(this.value(),this.__chain__)}function _7(){this.__values__===n&&(this.__values__=xS(this.value()));var l=this.__index__>=this.__values__.length,d=l?n:this.__values__[this.__index__++];return{done:l,value:d}}function w7(){return this}function S7(l){for(var d,m=this;m instanceof Yd;){var _=AS(m);_.__index__=0,_.__values__=n,d?L.__wrapped__=_:d=_;var L=_;m=m.__wrapped__}return L.__wrapped__=l,d}function $7(){var l=this.__wrapped__;if(l instanceof Ut){var d=l;return this.__actions__.length&&(d=new Ut(this)),d=d.reverse(),d.__actions__.push({func:df,args:[tg],thisArg:n}),new ir(d,this.__chain__)}return this.thru(tg)}function k7(){return Xw(this.__wrapped__,this.__actions__)}var C7=nf(function(l,d,m){tn.call(l,m)?++l[m]:yo(l,m,1)});function T7(l,d,m){var _=kt(l)?cw:gM;return m&&_s(l,d,m)&&(d=n),_(l,ht(d,3))}function A7(l,d){var m=kt(l)?oi:Rw;return m(l,ht(d,3))}var E7=aS(ES),I7=aS(IS);function P7(l,d){return Qn(ff(l,d),1)}function L7(l,d){return Qn(ff(l,d),ze)}function O7(l,d,m){return m=m===n?1:At(m),Qn(ff(l,d),m)}function NS(l,d){var m=kt(l)?rr:ci;return m(l,ht(d,3))}function FS(l,d){var m=kt(l)?JO:Ow;return m(l,ht(d,3))}var R7=nf(function(l,d,m){tn.call(l,m)?l[m].push(d):yo(l,m,[d])});function M7(l,d,m,_){l=Es(l)?l:vl(l),m=m&&!_?At(m):0;var L=l.length;return m<0&&(m=zn(L+m,0)),vf(l)?m<=L&&l.indexOf(d,m)>-1:!!L&&ol(l,d,m)>-1}var N7=Pt(function(l,d,m){var _=-1,L=typeof d=="function",D=Es(l)?ve(l.length):[];return ci(l,function(x){D[++_]=L?js(d,x,m):Bc(x,d,m)}),D}),F7=nf(function(l,d,m){yo(l,m,d)});function ff(l,d){var m=kt(l)?kn:jw;return m(l,ht(d,3))}function D7(l,d,m,_){return l==null?[]:(kt(d)||(d=d==null?[]:[d]),m=_?n:m,kt(m)||(m=m==null?[]:[m]),Hw(l,d,m))}var U7=nf(function(l,d,m){l[m?0:1].push(d)},function(){return[[],[]]});function j7(l,d,m){var _=kt(l)?pm:hw,L=arguments.length<3;return _(l,ht(d,4),m,L,ci)}function B7(l,d,m){var _=kt(l)?ZO:hw,L=arguments.length<3;return _(l,ht(d,4),m,L,Ow)}function z7(l,d){var m=kt(l)?oi:Rw;return m(l,mf(ht(d,3)))}function q7(l){var d=kt(l)?Ew:MM;return d(l)}function H7(l,d,m){(m?_s(l,d,m):d===n)?d=1:d=At(d);var _=kt(l)?dM:NM;return _(l,d)}function V7(l){var d=kt(l)?fM:DM;return d(l)}function W7(l){if(l==null)return 0;if(Es(l))return vf(l)?al(l):l.length;var d=cs(l);return d==ee||d==fe?l.size:Rm(l).length}function G7(l,d,m){var _=kt(l)?mm:UM;return m&&_s(l,d,m)&&(d=n),_(l,ht(d,3))}var K7=Pt(function(l,d){if(l==null)return[];var m=d.length;return m>1&&_s(l,d[0],d[1])?d=[]:m>2&&_s(d[0],d[1],d[2])&&(d=[d[0]]),Hw(l,Qn(d,1),[])}),hf=AR||function(){return yt.Date.now()};function x7(l,d){if(typeof d!="function")throw new or(i);return l=At(l),function(){if(--l<1)return d.apply(this,arguments)}}function DS(l,d,m){return d=m?n:d,d=l&&d==null?l.length:d,_o(l,N,n,n,n,n,d)}function US(l,d){var m;if(typeof d!="function")throw new or(i);return l=At(l),function(){return--l>0&&(m=d.apply(this,arguments)),l<=1&&(d=n),m}}var sg=Pt(function(l,d,m){var _=I;if(m.length){var L=ai(m,ml(sg));_|=R}return _o(l,_,d,m,L)}),jS=Pt(function(l,d,m){var _=I|C;if(m.length){var L=ai(m,ml(jS));_|=R}return _o(d,_,l,m,L)});function BS(l,d,m){d=m?n:d;var _=_o(l,P,n,n,n,n,n,d);return _.placeholder=BS.placeholder,_}function zS(l,d,m){d=m?n:d;var _=_o(l,A,n,n,n,n,n,d);return _.placeholder=zS.placeholder,_}function qS(l,d,m){var _,L,D,x,Q,ue,Ae=0,Ee=!1,Le=!1,He=!0;if(typeof l!="function")throw new or(i);d=ur(d)||0,Tn(m)&&(Ee=!!m.leading,Le="maxWait"in m,D=Le?zn(ur(m.maxWait)||0,d):D,He="trailing"in m?!!m.trailing:He);function st(Nn){var Sr=_,Co=L;return _=L=n,Ae=Nn,x=l.apply(Co,Sr),x}function mt(Nn){return Ae=Nn,Q=Wc(Rt,d),Ee?st(Nn):x}function Et(Nn){var Sr=Nn-ue,Co=Nn-Ae,a$=d-Sr;return Le?ls(a$,D-Co):a$}function gt(Nn){var Sr=Nn-ue,Co=Nn-Ae;return ue===n||Sr>=d||Sr<0||Le&&Co>=D}function Rt(){var Nn=hf();if(gt(Nn))return qt(Nn);Q=Wc(Rt,Et(Nn))}function qt(Nn){return Q=n,He&&_?st(Nn):(_=L=n,x)}function Hs(){Q!==n&&Zw(Q),Ae=0,_=ue=L=Q=n}function ws(){return Q===n?x:qt(hf())}function Vs(){var Nn=hf(),Sr=gt(Nn);if(_=arguments,L=this,ue=Nn,Sr){if(Q===n)return mt(ue);if(Le)return Zw(Q),Q=Wc(Rt,d),st(ue)}return Q===n&&(Q=Wc(Rt,d)),x}return Vs.cancel=Hs,Vs.flush=ws,Vs}var Y7=Pt(function(l,d){return Lw(l,1,d)}),X7=Pt(function(l,d,m){return Lw(l,ur(d)||0,m)});function J7(l){return _o(l,V)}function pf(l,d){if(typeof l!="function"||d!=null&&typeof d!="function")throw new or(i);var m=function(){var _=arguments,L=d?d.apply(this,_):_[0],D=m.cache;if(D.has(L))return D.get(L);var x=l.apply(this,_);return m.cache=D.set(L,x)||D,x};return m.cache=new(pf.Cache||bo),m}pf.Cache=bo;function mf(l){if(typeof l!="function")throw new or(i);return function(){var d=arguments;switch(d.length){case 0:return!l.call(this);case 1:return!l.call(this,d[0]);case 2:return!l.call(this,d[0],d[1]);case 3:return!l.call(this,d[0],d[1],d[2])}return!l.apply(this,d)}}function Z7(l){return US(2,l)}var Q7=jM(function(l,d){d=d.length==1&&kt(d[0])?kn(d[0],Bs(ht())):kn(Qn(d,1),Bs(ht()));var m=d.length;return Pt(function(_){for(var L=-1,D=ls(_.length,m);++L<D;)_[L]=d[L].call(this,_[L]);return js(l,this,_)})}),rg=Pt(function(l,d){var m=ai(d,ml(rg));return _o(l,R,n,d,m)}),HS=Pt(function(l,d){var m=ai(d,ml(HS));return _o(l,B,n,d,m)}),eF=wo(function(l,d){return _o(l,W,n,n,n,d)});function tF(l,d){if(typeof l!="function")throw new or(i);return d=d===n?d:At(d),Pt(l,d)}function nF(l,d){if(typeof l!="function")throw new or(i);return d=d==null?0:zn(At(d),0),Pt(function(m){var _=m[d],L=fi(m,0,d);return _&&ii(L,_),js(l,this,L)})}function sF(l,d,m){var _=!0,L=!0;if(typeof l!="function")throw new or(i);return Tn(m)&&(_="leading"in m?!!m.leading:_,L="trailing"in m?!!m.trailing:L),qS(l,d,{leading:_,maxWait:d,trailing:L})}function rF(l){return DS(l,1)}function oF(l,d){return rg(qm(d),l)}function iF(){if(!arguments.length)return[];var l=arguments[0];return kt(l)?l:[l]}function aF(l){return ar(l,y)}function lF(l,d){return d=typeof d=="function"?d:n,ar(l,y,d)}function cF(l){return ar(l,h|y)}function uF(l,d){return d=typeof d=="function"?d:n,ar(l,h|y,d)}function dF(l,d){return d==null||Pw(l,d,Gn(d))}function wr(l,d){return l===d||l!==l&&d!==d}var fF=af(Pm),hF=af(function(l,d){return l>=d}),ha=Fw(function(){return arguments}())?Fw:function(l){return In(l)&&tn.call(l,"callee")&&!Sw.call(l,"callee")},kt=ve.isArray,pF=rl?Bs(rl):SM;function Es(l){return l!=null&&gf(l.length)&&!$o(l)}function Mn(l){return In(l)&&Es(l)}function mF(l){return l===!0||l===!1||In(l)&&ys(l)==Me}var hi=IR||mg,gF=Lc?Bs(Lc):$M;function vF(l){return In(l)&&l.nodeType===1&&!Gc(l)}function bF(l){if(l==null)return!0;if(Es(l)&&(kt(l)||typeof l=="string"||typeof l.splice=="function"||hi(l)||gl(l)||ha(l)))return!l.length;var d=cs(l);if(d==ee||d==fe)return!l.size;if(Vc(l))return!Rm(l).length;for(var m in l)if(tn.call(l,m))return!1;return!0}function yF(l,d){return zc(l,d)}function _F(l,d,m){m=typeof m=="function"?m:n;var _=m?m(l,d):n;return _===n?zc(l,d,n,m):!!_}function og(l){if(!In(l))return!1;var d=ys(l);return d==pt||d==Ue||typeof l.message=="string"&&typeof l.name=="string"&&!Gc(l)}function wF(l){return typeof l=="number"&&kw(l)}function $o(l){if(!Tn(l))return!1;var d=ys(l);return d==G||d==K||d==_e||d==q}function VS(l){return typeof l=="number"&&l==At(l)}function gf(l){return typeof l=="number"&&l>-1&&l%1==0&&l<=ot}function Tn(l){var d=typeof l;return l!=null&&(d=="object"||d=="function")}function In(l){return l!=null&&typeof l=="object"}var WS=ow?Bs(ow):CM;function SF(l,d){return l===d||Om(l,d,Ym(d))}function $F(l,d,m){return m=typeof m=="function"?m:n,Om(l,d,Ym(d),m)}function kF(l){return GS(l)&&l!=+l}function CF(l){if(lN(l))throw new St(o);return Dw(l)}function TF(l){return l===null}function AF(l){return l==null}function GS(l){return typeof l=="number"||In(l)&&ys(l)==pe}function Gc(l){if(!In(l)||ys(l)!=be)return!1;var d=qd(l);if(d===null)return!0;var m=tn.call(d,"constructor")&&d.constructor;return typeof m=="function"&&m instanceof m&&Ud.call(m)==$R}var ig=iw?Bs(iw):TM;function EF(l){return VS(l)&&l>=-9007199254740991&&l<=ot}var KS=aw?Bs(aw):AM;function vf(l){return typeof l=="string"||!kt(l)&&In(l)&&ys(l)==je}function qs(l){return typeof l=="symbol"||In(l)&&ys(l)==$e}var gl=lw?Bs(lw):EM;function IF(l){return l===n}function PF(l){return In(l)&&cs(l)==me}function LF(l){return In(l)&&ys(l)==xe}var OF=af(Mm),RF=af(function(l,d){return l<=d});function xS(l){if(!l)return[];if(Es(l))return vf(l)?yr(l):As(l);if(Rc&&l[Rc])return dR(l[Rc]());var d=cs(l),m=d==ee?wm:d==fe?Nd:vl;return m(l)}function ko(l){if(!l)return l===0?l:0;if(l=ur(l),l===ze||l===-1/0){var d=l<0?-1:1;return d*Ct}return l===l?l:0}function At(l){var d=ko(l),m=d%1;return d===d?m?d-m:d:0}function YS(l){return l?ca(At(l),0,bt):0}function ur(l){if(typeof l=="number")return l;if(qs(l))return dt;if(Tn(l)){var d=typeof l.valueOf=="function"?l.valueOf():l;l=Tn(d)?d+"":d}if(typeof l!="string")return l===0?l:+l;l=pw(l);var m=Sc.test(l);return m||kc.test(l)?Dt(l.slice(2),m?2:8):wc.test(l)?dt:+l}function XS(l){return qr(l,Is(l))}function MF(l){return l?ca(At(l),-9007199254740991,ot):l===0?l:0}function Xt(l){return l==null?"":zs(l)}var NF=hl(function(l,d){if(Vc(d)||Es(d)){qr(d,Gn(d),l);return}for(var m in d)tn.call(d,m)&&Uc(l,m,d[m])}),JS=hl(function(l,d){qr(d,Is(d),l)}),bf=hl(function(l,d,m,_){qr(d,Is(d),l,_)}),FF=hl(function(l,d,m,_){qr(d,Gn(d),l,_)}),DF=wo(Am);function UF(l,d){var m=fl(l);return d==null?m:Iw(m,d)}var jF=Pt(function(l,d){l=dn(l);var m=-1,_=d.length,L=_>2?d[2]:n;for(L&&_s(d[0],d[1],L)&&(_=1);++m<_;)for(var D=d[m],x=Is(D),Q=-1,ue=x.length;++Q<ue;){var Ae=x[Q],Ee=l[Ae];(Ee===n||wr(Ee,cl[Ae])&&!tn.call(l,Ae))&&(l[Ae]=D[Ae])}return l}),BF=Pt(function(l){return l.push(n,pS),js(ZS,n,l)});function zF(l,d){return uw(l,ht(d,3),zr)}function qF(l,d){return uw(l,ht(d,3),Im)}function HF(l,d){return l==null?l:Em(l,ht(d,3),Is)}function VF(l,d){return l==null?l:Mw(l,ht(d,3),Is)}function WF(l,d){return l&&zr(l,ht(d,3))}function GF(l,d){return l&&Im(l,ht(d,3))}function KF(l){return l==null?[]:Zd(l,Gn(l))}function xF(l){return l==null?[]:Zd(l,Is(l))}function ag(l,d,m){var _=l==null?n:ua(l,d);return _===n?m:_}function YF(l,d){return l!=null&&vS(l,d,bM)}function lg(l,d){return l!=null&&vS(l,d,yM)}var XF=cS(function(l,d,m){d!=null&&typeof d.toString!="function"&&(d=jd.call(d)),l[d]=m},ug(Ps)),JF=cS(function(l,d,m){d!=null&&typeof d.toString!="function"&&(d=jd.call(d)),tn.call(l,d)?l[d].push(m):l[d]=[m]},ht),ZF=Pt(Bc);function Gn(l){return Es(l)?Aw(l):Rm(l)}function Is(l){return Es(l)?Aw(l,!0):IM(l)}function QF(l,d){var m={};return d=ht(d,3),zr(l,function(_,L,D){yo(m,d(_,L,D),_)}),m}function eD(l,d){var m={};return d=ht(d,3),zr(l,function(_,L,D){yo(m,L,d(_,L,D))}),m}var tD=hl(function(l,d,m){Qd(l,d,m)}),ZS=hl(function(l,d,m,_){Qd(l,d,m,_)}),nD=wo(function(l,d){var m={};if(l==null)return m;var _=!1;d=kn(d,function(D){return D=di(D,l),_||(_=D.length>1),D}),qr(l,Km(l),m),_&&(m=ar(m,h|v|y,XM));for(var L=d.length;L--;)jm(m,d[L]);return m});function sD(l,d){return QS(l,mf(ht(d)))}var rD=wo(function(l,d){return l==null?{}:LM(l,d)});function QS(l,d){if(l==null)return{};var m=kn(Km(l),function(_){return[_]});return d=ht(d),Vw(l,m,function(_,L){return d(_,L[0])})}function oD(l,d,m){d=di(d,l);var _=-1,L=d.length;for(L||(L=1,l=n);++_<L;){var D=l==null?n:l[Hr(d[_])];D===n&&(_=L,D=m),l=$o(D)?D.call(l):D}return l}function iD(l,d,m){return l==null?l:qc(l,d,m)}function aD(l,d,m,_){return _=typeof _=="function"?_:n,l==null?l:qc(l,d,m,_)}var e$=fS(Gn),t$=fS(Is);function lD(l,d,m){var _=kt(l),L=_||hi(l)||gl(l);if(d=ht(d,4),m==null){var D=l&&l.constructor;L?m=_?new D:[]:Tn(l)?m=$o(D)?fl(qd(l)):{}:m={}}return(L?rr:zr)(l,function(x,Q,ue){return d(m,x,Q,ue)}),m}function cD(l,d){return l==null?!0:jm(l,d)}function uD(l,d,m){return l==null?l:Yw(l,d,qm(m))}function dD(l,d,m,_){return _=typeof _=="function"?_:n,l==null?l:Yw(l,d,qm(m),_)}function vl(l){return l==null?[]:_m(l,Gn(l))}function fD(l){return l==null?[]:_m(l,Is(l))}function hD(l,d,m){return m===n&&(m=d,d=n),m!==n&&(m=ur(m),m=m===m?m:0),d!==n&&(d=ur(d),d=d===d?d:0),ca(ur(l),d,m)}function pD(l,d,m){return d=ko(d),m===n?(m=d,d=0):m=ko(m),l=ur(l),_M(l,d,m)}function mD(l,d,m){if(m&&typeof m!="boolean"&&_s(l,d,m)&&(d=m=n),m===n&&(typeof d=="boolean"?(m=d,d=n):typeof l=="boolean"&&(m=l,l=n)),l===n&&d===n?(l=0,d=1):(l=ko(l),d===n?(d=l,l=0):d=ko(d)),l>d){var _=l;l=d,d=_}if(m||l%1||d%1){var L=Cw();return ls(l+L*(d-l+tt("1e-"+((L+"").length-1))),d)}return Fm(l,d)}var gD=pl(function(l,d,m){return d=d.toLowerCase(),l+(m?n$(d):d)});function n$(l){return cg(Xt(l).toLowerCase())}function s$(l){return l=Xt(l),l&&l.replace(sa,iR).replace(po,"")}function vD(l,d,m){l=Xt(l),d=zs(d);var _=l.length;m=m===n?_:ca(At(m),0,_);var L=m;return m-=d.length,m>=0&&l.slice(m,L)==d}function bD(l){return l=Xt(l),l&&uc.test(l)?l.replace(Ya,aR):l}function yD(l){return l=Xt(l),l&&mc.test(l)?l.replace(ta,"\\$&"):l}var _D=pl(function(l,d,m){return l+(m?"-":"")+d.toLowerCase()}),wD=pl(function(l,d,m){return l+(m?" ":"")+d.toLowerCase()}),SD=iS("toLowerCase");function $D(l,d,m){l=Xt(l),d=At(d);var _=d?al(l):0;if(!d||_>=d)return l;var L=(d-_)/2;return of(Gd(L),m)+l+of(Wd(L),m)}function kD(l,d,m){l=Xt(l),d=At(d);var _=d?al(l):0;return d&&_<d?l+of(d-_,m):l}function CD(l,d,m){l=Xt(l),d=At(d);var _=d?al(l):0;return d&&_<d?of(d-_,m)+l:l}function TD(l,d,m){return m||d==null?d=0:d&&(d=+d),RR(Xt(l).replace(na,""),d||0)}function AD(l,d,m){return(m?_s(l,d,m):d===n)?d=1:d=At(d),Dm(Xt(l),d)}function ED(){var l=arguments,d=Xt(l[0]);return l.length<3?d:d.replace(l[1],l[2])}var ID=pl(function(l,d,m){return l+(m?"_":"")+d.toLowerCase()});function PD(l,d,m){return m&&typeof m!="number"&&_s(l,d,m)&&(d=m=n),m=m===n?bt:m>>>0,m?(l=Xt(l),l&&(typeof d=="string"||d!=null&&!ig(d))&&(d=zs(d),!d&&il(l))?fi(yr(l),0,m):l.split(d,m)):[]}var LD=pl(function(l,d,m){return l+(m?" ":"")+cg(d)});function OD(l,d,m){return l=Xt(l),m=m==null?0:ca(At(m),0,l.length),d=zs(d),l.slice(m,m+d.length)==d}function RD(l,d,m){var _=M.templateSettings;m&&_s(l,d,m)&&(d=n),l=Xt(l),d=bf({},d,_,hS);var L=bf({},d.imports,_.imports,hS),D=Gn(L),x=_m(L,D),Q,ue,Ae=0,Ee=d.interpolate||ti,Le="__p += '",He=Sm((d.escape||ti).source+"|"+Ee.source+"|"+(Ee===Xa?jr:ti).source+"|"+(d.evaluate||ti).source+"|$","g"),st="//# sourceURL="+(tn.call(d,"sourceURL")?(d.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++dm+"]")+`
`;l.replace(He,function(gt,Rt,qt,Hs,ws,Vs){return qt||(qt=Hs),Le+=l.slice(Ae,Vs).replace(co,lR),Rt&&(Q=!0,Le+=`' +
__e(`+Rt+`) +
'`),ws&&(ue=!0,Le+=`';
`+ws+`;
__p += '`),qt&&(Le+=`' +
((__t = (`+qt+`)) == null ? '' : __t) +
'`),Ae=Vs+gt.length,gt}),Le+=`';
`;var mt=tn.call(d,"variable")&&d.variable;if(!mt)Le=`with (obj) {
`+Le+`
}
`;else if(yc.test(mt))throw new St(a);Le=(ue?Le.replace(Fr,""):Le).replace(cc,"$1").replace(Fs,"$1;"),Le="function("+(mt||"obj")+`) {
`+(mt?"":`obj || (obj = {});
`)+"var __t, __p = ''"+(Q?", __e = _.escape":"")+(ue?`, __j = Array.prototype.join;
function print() { __p += __j.call(arguments, '') }
`:`;
`)+Le+`return __p
}`;var Et=o$(function(){return Gt(D,st+"return "+Le).apply(n,x)});if(Et.source=Le,og(Et))throw Et;return Et}function MD(l){return Xt(l).toLowerCase()}function ND(l){return Xt(l).toUpperCase()}function FD(l,d,m){if(l=Xt(l),l&&(m||d===n))return pw(l);if(!l||!(d=zs(d)))return l;var _=yr(l),L=yr(d),D=mw(_,L),x=gw(_,L)+1;return fi(_,D,x).join("")}function DD(l,d,m){if(l=Xt(l),l&&(m||d===n))return l.slice(0,bw(l)+1);if(!l||!(d=zs(d)))return l;var _=yr(l),L=gw(_,yr(d))+1;return fi(_,0,L).join("")}function UD(l,d,m){if(l=Xt(l),l&&(m||d===n))return l.replace(na,"");if(!l||!(d=zs(d)))return l;var _=yr(l),L=mw(_,yr(d));return fi(_,L).join("")}function jD(l,d){var m=U,_=ie;if(Tn(d)){var L="separator"in d?d.separator:L;m="length"in d?At(d.length):m,_="omission"in d?zs(d.omission):_}l=Xt(l);var D=l.length;if(il(l)){var x=yr(l);D=x.length}if(m>=D)return l;var Q=m-al(_);if(Q<1)return _;var ue=x?fi(x,0,Q).join(""):l.slice(0,Q);if(L===n)return ue+_;if(x&&(Q+=ue.length-Q),ig(L)){if(l.slice(Q).search(L)){var Ae,Ee=ue;for(L.global||(L=Sm(L.source,Xt(Za.exec(L))+"g")),L.lastIndex=0;Ae=L.exec(Ee);)var Le=Ae.index;ue=ue.slice(0,Le===n?Q:Le)}}else if(l.indexOf(zs(L),Q)!=Q){var He=ue.lastIndexOf(L);He>-1&&(ue=ue.slice(0,He))}return ue+_}function BD(l){return l=Xt(l),l&&sr.test(l)?l.replace(Dr,mR):l}var zD=pl(function(l,d,m){return l+(m?" ":"")+d.toUpperCase()}),cg=iS("toUpperCase");function r$(l,d,m){return l=Xt(l),d=m?n:d,d===n?uR(l)?bR(l):tR(l):l.match(d)||[]}var o$=Pt(function(l,d){try{return js(l,n,d)}catch(m){return og(m)?m:new St(m)}}),qD=wo(function(l,d){return rr(d,function(m){m=Hr(m),yo(l,m,sg(l[m],l))}),l});function HD(l){var d=l==null?0:l.length,m=ht();return l=d?kn(l,function(_){if(typeof _[1]!="function")throw new or(i);return[m(_[0]),_[1]]}):[],Pt(function(_){for(var L=-1;++L<d;){var D=l[L];if(js(D[0],this,_))return js(D[1],this,_)}})}function VD(l){return mM(ar(l,h))}function ug(l){return function(){return l}}function WD(l,d){return l==null||l!==l?d:l}var GD=lS(),KD=lS(!0);function Ps(l){return l}function dg(l){return Uw(typeof l=="function"?l:ar(l,h))}function xD(l){return Bw(ar(l,h))}function YD(l,d){return zw(l,ar(d,h))}var XD=Pt(function(l,d){return function(m){return Bc(m,l,d)}}),JD=Pt(function(l,d){return function(m){return Bc(l,m,d)}});function fg(l,d,m){var _=Gn(d),L=Zd(d,_);m==null&&!(Tn(d)&&(L.length||!_.length))&&(m=d,d=l,l=this,L=Zd(d,Gn(d)));var D=!(Tn(m)&&"chain"in m)||!!m.chain,x=$o(l);return rr(L,function(Q){var ue=d[Q];l[Q]=ue,x&&(l.prototype[Q]=function(){var Ae=this.__chain__;if(D||Ae){var Ee=l(this.__wrapped__),Le=Ee.__actions__=As(this.__actions__);return Le.push({func:ue,args:arguments,thisArg:l}),Ee.__chain__=Ae,Ee}return ue.apply(l,ii([this.value()],arguments))})}),l}function ZD(){return yt._===this&&(yt._=kR),this}function hg(){}function QD(l){return l=At(l),Pt(function(d){return qw(d,l)})}var eU=Vm(kn),tU=Vm(cw),nU=Vm(mm);function i$(l){return Jm(l)?gm(Hr(l)):OM(l)}function sU(l){return function(d){return l==null?n:ua(l,d)}}var rU=uS(),oU=uS(!0);function pg(){return[]}function mg(){return!1}function iU(){return{}}function aU(){return""}function lU(){return!0}function cU(l,d){if(l=At(l),l<1||l>ot)return[];var m=bt,_=ls(l,bt);d=ht(d),l-=bt;for(var L=ym(_,d);++m<l;)d(m);return L}function uU(l){return kt(l)?kn(l,Hr):qs(l)?[l]:As(TS(Xt(l)))}function dU(l){var d=++SR;return Xt(l)+d}var fU=rf(function(l,d){return l+d},0),hU=Wm("ceil"),pU=rf(function(l,d){return l/d},1),mU=Wm("floor");function gU(l){return l&&l.length?Jd(l,Ps,Pm):n}function vU(l,d){return l&&l.length?Jd(l,ht(d,2),Pm):n}function bU(l){return fw(l,Ps)}function yU(l,d){return fw(l,ht(d,2))}function _U(l){return l&&l.length?Jd(l,Ps,Mm):n}function wU(l,d){return l&&l.length?Jd(l,ht(d,2),Mm):n}var SU=rf(function(l,d){return l*d},1),$U=Wm("round"),kU=rf(function(l,d){return l-d},0);function CU(l){return l&&l.length?bm(l,Ps):0}function TU(l,d){return l&&l.length?bm(l,ht(d,2)):0}return M.after=x7,M.ary=DS,M.assign=NF,M.assignIn=JS,M.assignInWith=bf,M.assignWith=FF,M.at=DF,M.before=US,M.bind=sg,M.bindAll=qD,M.bindKey=jS,M.castArray=iF,M.chain=MS,M.chunk=mN,M.compact=gN,M.concat=vN,M.cond=HD,M.conforms=VD,M.constant=ug,M.countBy=C7,M.create=UF,M.curry=BS,M.curryRight=zS,M.debounce=qS,M.defaults=jF,M.defaultsDeep=BF,M.defer=Y7,M.delay=X7,M.difference=bN,M.differenceBy=yN,M.differenceWith=_N,M.drop=wN,M.dropRight=SN,M.dropRightWhile=$N,M.dropWhile=kN,M.fill=CN,M.filter=A7,M.flatMap=P7,M.flatMapDeep=L7,M.flatMapDepth=O7,M.flatten=PS,M.flattenDeep=TN,M.flattenDepth=AN,M.flip=J7,M.flow=GD,M.flowRight=KD,M.fromPairs=EN,M.functions=KF,M.functionsIn=xF,M.groupBy=R7,M.initial=PN,M.intersection=LN,M.intersectionBy=ON,M.intersectionWith=RN,M.invert=XF,M.invertBy=JF,M.invokeMap=N7,M.iteratee=dg,M.keyBy=F7,M.keys=Gn,M.keysIn=Is,M.map=ff,M.mapKeys=QF,M.mapValues=eD,M.matches=xD,M.matchesProperty=YD,M.memoize=pf,M.merge=tD,M.mergeWith=ZS,M.method=XD,M.methodOf=JD,M.mixin=fg,M.negate=mf,M.nthArg=QD,M.omit=nD,M.omitBy=sD,M.once=Z7,M.orderBy=D7,M.over=eU,M.overArgs=Q7,M.overEvery=tU,M.overSome=nU,M.partial=rg,M.partialRight=HS,M.partition=U7,M.pick=rD,M.pickBy=QS,M.property=i$,M.propertyOf=sU,M.pull=DN,M.pullAll=OS,M.pullAllBy=UN,M.pullAllWith=jN,M.pullAt=BN,M.range=rU,M.rangeRight=oU,M.rearg=eF,M.reject=z7,M.remove=zN,M.rest=tF,M.reverse=tg,M.sampleSize=H7,M.set=iD,M.setWith=aD,M.shuffle=V7,M.slice=qN,M.sortBy=K7,M.sortedUniq=YN,M.sortedUniqBy=XN,M.split=PD,M.spread=nF,M.tail=JN,M.take=ZN,M.takeRight=QN,M.takeRightWhile=e7,M.takeWhile=t7,M.tap=g7,M.throttle=sF,M.thru=df,M.toArray=xS,M.toPairs=e$,M.toPairsIn=t$,M.toPath=uU,M.toPlainObject=XS,M.transform=lD,M.unary=rF,M.union=n7,M.unionBy=s7,M.unionWith=r7,M.uniq=o7,M.uniqBy=i7,M.uniqWith=a7,M.unset=cD,M.unzip=ng,M.unzipWith=RS,M.update=uD,M.updateWith=dD,M.values=vl,M.valuesIn=fD,M.without=l7,M.words=r$,M.wrap=oF,M.xor=c7,M.xorBy=u7,M.xorWith=d7,M.zip=f7,M.zipObject=h7,M.zipObjectDeep=p7,M.zipWith=m7,M.entries=e$,M.entriesIn=t$,M.extend=JS,M.extendWith=bf,fg(M,M),M.add=fU,M.attempt=o$,M.camelCase=gD,M.capitalize=n$,M.ceil=hU,M.clamp=hD,M.clone=aF,M.cloneDeep=cF,M.cloneDeepWith=uF,M.cloneWith=lF,M.conformsTo=dF,M.deburr=s$,M.defaultTo=WD,M.divide=pU,M.endsWith=vD,M.eq=wr,M.escape=bD,M.escapeRegExp=yD,M.every=T7,M.find=E7,M.findIndex=ES,M.findKey=zF,M.findLast=I7,M.findLastIndex=IS,M.findLastKey=qF,M.floor=mU,M.forEach=NS,M.forEachRight=FS,M.forIn=HF,M.forInRight=VF,M.forOwn=WF,M.forOwnRight=GF,M.get=ag,M.gt=fF,M.gte=hF,M.has=YF,M.hasIn=lg,M.head=LS,M.identity=Ps,M.includes=M7,M.indexOf=IN,M.inRange=pD,M.invoke=ZF,M.isArguments=ha,M.isArray=kt,M.isArrayBuffer=pF,M.isArrayLike=Es,M.isArrayLikeObject=Mn,M.isBoolean=mF,M.isBuffer=hi,M.isDate=gF,M.isElement=vF,M.isEmpty=bF,M.isEqual=yF,M.isEqualWith=_F,M.isError=og,M.isFinite=wF,M.isFunction=$o,M.isInteger=VS,M.isLength=gf,M.isMap=WS,M.isMatch=SF,M.isMatchWith=$F,M.isNaN=kF,M.isNative=CF,M.isNil=AF,M.isNull=TF,M.isNumber=GS,M.isObject=Tn,M.isObjectLike=In,M.isPlainObject=Gc,M.isRegExp=ig,M.isSafeInteger=EF,M.isSet=KS,M.isString=vf,M.isSymbol=qs,M.isTypedArray=gl,M.isUndefined=IF,M.isWeakMap=PF,M.isWeakSet=LF,M.join=MN,M.kebabCase=_D,M.last=cr,M.lastIndexOf=NN,M.lowerCase=wD,M.lowerFirst=SD,M.lt=OF,M.lte=RF,M.max=gU,M.maxBy=vU,M.mean=bU,M.meanBy=yU,M.min=_U,M.minBy=wU,M.stubArray=pg,M.stubFalse=mg,M.stubObject=iU,M.stubString=aU,M.stubTrue=lU,M.multiply=SU,M.nth=FN,M.noConflict=ZD,M.noop=hg,M.now=hf,M.pad=$D,M.padEnd=kD,M.padStart=CD,M.parseInt=TD,M.random=mD,M.reduce=j7,M.reduceRight=B7,M.repeat=AD,M.replace=ED,M.result=oD,M.round=$U,M.runInContext=ae,M.sample=q7,M.size=W7,M.snakeCase=ID,M.some=G7,M.sortedIndex=HN,M.sortedIndexBy=VN,M.sortedIndexOf=WN,M.sortedLastIndex=GN,M.sortedLastIndexBy=KN,M.sortedLastIndexOf=xN,M.startCase=LD,M.startsWith=OD,M.subtract=kU,M.sum=CU,M.sumBy=TU,M.template=RD,M.times=cU,M.toFinite=ko,M.toInteger=At,M.toLength=YS,M.toLower=MD,M.toNumber=ur,M.toSafeInteger=MF,M.toString=Xt,M.toUpper=ND,M.trim=FD,M.trimEnd=DD,M.trimStart=UD,M.truncate=jD,M.unescape=BD,M.uniqueId=dU,M.upperCase=zD,M.upperFirst=cg,M.each=NS,M.eachRight=FS,M.first=LS,fg(M,function(){var l={};return zr(M,function(d,m){tn.call(M.prototype,m)||(l[m]=d)}),l}(),{chain:!1}),M.VERSION=s,rr(["bind","bindKey","curry","curryRight","partial","partialRight"],function(l){M[l].placeholder=M}),rr(["drop","take"],function(l,d){Ut.prototype[l]=function(m){m=m===n?1:zn(At(m),0);var _=this.__filtered__&&!d?new Ut(this):this.clone();return _.__filtered__?_.__takeCount__=ls(m,_.__takeCount__):_.__views__.push({size:ls(m,bt),type:l+(_.__dir__<0?"Right":"")}),_},Ut.prototype[l+"Right"]=function(m){return this.reverse()[l](m).reverse()}}),rr(["filter","map","takeWhile"],function(l,d){var m=d+1,_=m==qe||m==Ge;Ut.prototype[l]=function(L){var D=this.clone();return D.__iteratees__.push({iteratee:ht(L,3),type:m}),D.__filtered__=D.__filtered__||_,D}}),rr(["head","last"],function(l,d){var m="take"+(d?"Right":"");Ut.prototype[l]=function(){return this[m](1).value()[0]}}),rr(["initial","tail"],function(l,d){var m="drop"+(d?"":"Right");Ut.prototype[l]=function(){return this.__filtered__?new Ut(this):this[m](1)}}),Ut.prototype.compact=function(){return this.filter(Ps)},Ut.prototype.find=function(l){return this.filter(l).head()},Ut.prototype.findLast=function(l){return this.reverse().find(l)},Ut.prototype.invokeMap=Pt(function(l,d){return typeof l=="function"?new Ut(this):this.map(function(m){return Bc(m,l,d)})}),Ut.prototype.reject=function(l){return this.filter(mf(ht(l)))},Ut.prototype.slice=function(l,d){l=At(l);var m=this;return m.__filtered__&&(l>0||d<0)?new Ut(m):(l<0?m=m.takeRight(-l):l&&(m=m.drop(l)),d!==n&&(d=At(d),m=d<0?m.dropRight(-d):m.take(d-l)),m)},Ut.prototype.takeRightWhile=function(l){return this.reverse().takeWhile(l).reverse()},Ut.prototype.toArray=function(){return this.take(bt)},zr(Ut.prototype,function(l,d){var m=/^(?:filter|find|map|reject)|While$/.test(d),_=/^(?:head|last)$/.test(d),L=M[_?"take"+(d=="last"?"Right":""):d],D=_||/^find/.test(d);L&&(M.prototype[d]=function(){var x=this.__wrapped__,Q=_?[1]:arguments,ue=x instanceof Ut,Ae=Q[0],Ee=ue||kt(x),Le=function(Rt){var qt=L.apply(M,ii([Rt],Q));return _&&He?qt[0]:qt};Ee&&m&&typeof Ae=="function"&&Ae.length!=1&&(ue=Ee=!1);var He=this.__chain__,st=!!this.__actions__.length,mt=D&&!He,Et=ue&&!st;if(!D&&Ee){x=Et?x:new Ut(this);var gt=l.apply(x,Q);return gt.__actions__.push({func:df,args:[Le],thisArg:n}),new ir(gt,He)}return mt&&Et?l.apply(this,Q):(gt=this.thru(Le),mt?_?gt.value()[0]:gt.value():gt)})}),rr(["pop","push","shift","sort","splice","unshift"],function(l){var d=Fd[l],m=/^(?:push|sort|unshift)$/.test(l)?"tap":"thru",_=/^(?:pop|shift)$/.test(l);M.prototype[l]=function(){var L=arguments;if(_&&!this.__chain__){var D=this.value();return d.apply(kt(D)?D:[],L)}return this[m](function(x){return d.apply(kt(x)?x:[],L)})}}),zr(Ut.prototype,function(l,d){var m=M[d];if(m){var _=m.name+"";tn.call(dl,_)||(dl[_]=[]),dl[_].push({name:d,func:m})}}),dl[sf(n,C).name]=[{name:"wrapper",func:n}],Ut.prototype.clone=BR,Ut.prototype.reverse=zR,Ut.prototype.value=qR,M.prototype.at=v7,M.prototype.chain=b7,M.prototype.commit=y7,M.prototype.next=_7,M.prototype.plant=S7,M.prototype.reverse=$7,M.prototype.toJSON=M.prototype.valueOf=M.prototype.value=k7,M.prototype.first=M.prototype.head,Rc&&(M.prototype[Rc]=w7),M},ll=yR();jn?((jn.exports=ll)._=ll,on._=ll):yt._=ll}).call(HB)}(iu,iu.exports)),iu.exports}var Z=VB();const Fi=bs(Z);/*!
* escape-html
* Copyright(c) 2012-2013 TJ Holowaychuk
* Copyright(c) 2015 Andreas Lubbe
* Copyright(c) 2015 Tiancheng "Timothy" Gu
* MIT Licensed
*/var Pg,tk;function WB(){if(tk)return Pg;tk=1;var e=/["'&<>]/;Pg=t;function t(n){var s=""+n,r=e.exec(s);if(!r)return s;var o,i="",a=0,c=0;for(a=r.index;a<s.length;a++){switch(s.charCodeAt(a)){case 34:o="&quot;";break;case 38:o="&amp;";break;case 39:o="&#39;";break;case 60:o="&lt;";break;case 62:o="&gt;";break;default:continue}c!==a&&(i+=s.substring(c,a)),c=a+1,i+=o}return c!==a?i+s.substring(c,a):i}return Pg}var GB=WB();const _h=bs(GB),KB=2e3,xB=!1;function YB(e){return e&&e.rel}function XB(e,t){function n(s){e[s]=Object.assign({},t,{rel:s})}return t.rel.split(/\s+/).forEach(n),e}function JB(e,t){const n=t.match(/\s*(.+)\s*=\s*"?([^"]+)"?/);return n&&(e[n[1]]=n[2]),e}function ZB(e){try{const t=e.match(/<?([^>]*)>(.*)/),n=t[1],s=t[2].split(";"),r={},o=new URL(n,"https://example.com");for(const[a,c]of o.searchParams)r[a]=c;s.shift();let i=s.reduce(JB,{});return i=Object.assign({},r,i),i.url=n,i}catch{return null}}function QB(e,t){if(!e)return!1;t=t||{};const n=t.maxHeaderLength||KB,s=t.throwOnMaxHeaderLengthExceeded||xB;if(e.length>n){if(s)throw new Error("Input string too long, it should be under "+n+" characters.");return!1}return!0}function ez(e,t){return QB(e,t)?e.split(/,\s*</).map(ZB).filter(YB).reduce(XB,{}):null}const pE=(e,t)=>{var a;const n=t.text.toLowerCase(),s=t.summary.toLowerCase(),r=(a=t.in_reply_to_screen_name)==null?void 0:a.toLowerCase(),o=t.user.screen_name.toLowerCase(),i=(t.attentions||[]).map(c=>c.screen_name.toLowerCase());return e.toSorted((c,u)=>u.order-c.order).map(c=>{const{hide:u,expires:f,name:h,value:v,type:y,enabled:S}=c;if(!S||v===""||f!==null&&f<Date.now())return!1;switch(y){case"word":{const k=v.toLowerCase();if(n.toLowerCase().includes(k)||s.toLowerCase().includes(k))return{hide:u,name:h};break}case"regexp":try{const k=new RegExp(v,"i");return k.test(n)||k.test(s)?{hide:u,name:h}:!1}catch{return!1}case"user":{if(o.includes(v)||r.includes(v)||i.some(k=>k.includes(v)))return{hide:u,name:h};break}case"user_regexp":try{const k=new RegExp(v,"i");return k.test(o)||k.test(r)||i.some(I=>k.test(I))?{hide:u,name:h}:!1}catch{return!1}}}).filter(c=>c)};function tz(e){const t="=".repeat((4-e.length%4)%4),n=(e+t).replace(/-/g,"+").replace(/_/g,"/"),s=window.atob(n);return Uint8Array.from([...s].map(r=>r.charCodeAt(0)))}function Gi(){return"serviceWorker"in navigator}function mE(){return"PushManager"in window}function vp(){return Gi()?navigator.serviceWorker.register("/sw-pleroma.js",{type:"classic"}).catch(t=>console.error("Unable to get or create a service worker.",t)):void 0}function nz(e,t,n){if(!t)return Promise.reject(new Error("Web Push is disabled in config"));if(!n)return Promise.reject(new Error("VAPID public key is not found"));const s={userVisibleOnly:!1,applicationServerKey:tz(n)};return e.pushManager.subscribe(s)}function sz(e){return e.pushManager.getSubscription().then(t=>{if(t!==null)return t.unsubscribe()})}function rz(e){return fetch("/api/v1/push/subscription/",{method:"DELETE",headers:{"Content-Type":"application/json",Authorization:`Bearer ${e}`}}).then(t=>{if(!t.ok)throw new Error("Bad status code from server.");return t})}function oz(e,t,n){return window.fetch("/api/v1/push/subscription/",{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${t}`},body:JSON.stringify({subscription:e,data:{alerts:{follow:n.follows,favourite:n.likes,mention:n.mentions,reblog:n.repeats,move:n.moves}}})}).then(s=>{if(!s.ok)throw new Error("Bad status code from server.");return s.json()}).then(s=>{if(!s.id)throw new Error("Bad response from server.");return s})}async function iz(e){Gi()&&(await vp(),navigator.serviceWorker.addEventListener("message",t=>{const{dispatch:n}=e,{type:s,...r}=t.data;switch(s){case"notificationClicked":n("notificationClicked",{id:r.id})}}))}async function az(e){if(!Gi)return;const{active:t}=await window.navigator.serviceWorker.getRegistration()||{};if(!t)return console.error("No serviceworker found!");t.postMessage({type:"desktopNotification",content:e})}async function gE({id:e}){if(!Gi)return;const{active:t}=await window.navigator.serviceWorker.getRegistration()||{};if(!t)return console.error("No serviceworker found!");e>=0?t.postMessage({type:"desktopNotificationClose",content:{id:e}}):t.postMessage({type:"desktopNotificationClose",content:{all:!0}})}async function lz(){if(!Gi)return;const{active:e}=await window.navigator.serviceWorker.getRegistration()||{};if(!e)return console.error("No serviceworker found!");e.postMessage({type:"updateFocus"})}function cz(e,t,n,s){mE()&&vp().then(r=>nz(r,e,t)).then(r=>oz(r,n,s)).catch(r=>console.warn(`Failed to setup Web Push Notifications: ${r.message}`))}function uz(e){mE()&&Promise.all([rz(e),vp().then(t=>sz(t).then(n=>[t,n])).then(([,t])=>{t||console.warn("Push subscription cancellation wasn't successful")})]).catch(t=>console.warn(`Failed to disable Web Push Notifications: ${t.message}`))}const _Ee="pleroma-fe",wEe="pleroma-fe-emoji",SEe=e=>caches.delete(e),nk={failCreateNotif:!1},vE=(e,t)=>{if("Notification"in window&&window.Notification.permission==="granted"&&!e.notifications.desktopNotificationSilence){if(Gi())az(t);else if(!nk.failCreateNotif)try{const n=new window.Notification(t.title,t);setTimeout(n.close.bind(n),5e3)}catch{nk.failCreateNotif=!0}}},dz=(e,{id:t})=>{"Notification"in window&&window.Notification.permission==="granted"&&Gi()&&gE({id:t})},fz=()=>{"Notification"in window&&window.Notification.permission==="granted"&&Gi()&&gE({})},bp=vs("i18n",{state:()=>({i18n:null}),actions:{setI18n(e){this.$patch({i18n:e.global})}}}),hz=Object.freeze(Object.defineProperty({__proto__:null,useI18nStore:bp},Symbol.toStringTag,{value:"Module"})),pz=1e3*60*5,ms=vs("announcements",{state:()=>({announcements:[],supportsAnnouncements:!0,fetchAnnouncementsTimer:void 0}),getters:{unreadAnnouncementCount(){return window.vuex.state.users.currentUser?this.announcements.filter(t=>!(t.inactive||t.read)).length:0}},actions:{fetchAnnouncements(){if(!this.supportsAnnouncements)return Promise.resolve();const e=window.vuex.state.users.currentUser,t=e&&e.privileges.includes("announcements_manage_announcements");return(async()=>{if(!t)return window.vuex.state.api.backendInteractor.fetchAnnouncements();const s=await window.vuex.state.api.backendInteractor.adminFetchAnnouncements(),o=(await window.vuex.state.api.backendInteractor.fetchAnnouncements()).reduce((a,c)=>(a[c.id]=c,a),{}),i=a=>o[a.id];return s.forEach(a=>{const c=i(a);c?a.read=c.read:a.inactive=!0}),s})().then(s=>{this.announcements=s}).catch(s=>{if(s&&s.statusCode===404)this.supportsAnnouncements=!1;else throw s})},markAnnouncementAsRead(e){return window.vuex.state.api.backendInteractor.dismissAnnouncement({id:e}).then(()=>{const t=this.announcements.findIndex(n=>n.id===e);t<0||(this.announcements[t].read=!0)})},startFetchingAnnouncements(){if(this.fetchAnnouncementsTimer)return;const e=setInterval(()=>this.fetchAnnouncements(),pz);return this.fetchAnnouncementsTimer=e,this.fetchAnnouncements()},stopFetchingAnnouncements(){const e=this.fetchAnnouncementsTimer;this.fetchAnnouncementsTimer=void 0,clearInterval(e)},postAnnouncement({content:e,startsAt:t,endsAt:n,allDay:s}){return window.vuex.state.api.backendInteractor.postAnnouncement({content:e,startsAt:t,endsAt:n,allDay:s}).then(()=>this.fetchAnnouncements())},editAnnouncement({id:e,content:t,startsAt:n,endsAt:s,allDay:r}){return window.vuex.state.api.backendInteractor.editAnnouncement({id:e,content:t,startsAt:n,endsAt:s,allDay:r}).then(()=>this.fetchAnnouncements())},deleteAnnouncement(e){return window.vuex.state.api.backendInteractor.deleteAnnouncement({id:e}).then(()=>this.fetchAnnouncements())}}}),mz=Object.freeze(Object.defineProperty({__proto__:null,useAnnouncementsStore:ms},Symbol.toStringTag,{value:"Module"})),gz=()=>{const e=document.createElement("canvas");e.width=1,e.height=1;const t=e.getContext("2d");if(!t)return!1;t.fillStyle="#0f161e",t.fillRect(0,0,1,1);const{data:n}=t.getImageData(0,0,1,1);return n.join(",")==="15,22,30,255"},vz=()=>{const e=[],r=()=>{if(!gz())return;document.querySelectorAll('link[rel="icon"]').forEach(f=>{if(f){const h=document.createElement("canvas");h.width=128,h.height=128;const v=new Image;v.crossOrigin="anonymous",v.src=f.href;const y=h.getContext("2d");e.push({favcanvas:h,favimg:v,favcontext:y,favicon:f})}})},o=u=>u.complete&&u.naturalHeight!==0,i=()=>{e.length!==0&&e.forEach(({favimg:u,favcanvas:f,favcontext:h,favicon:v})=>{!u||!h||!v||(h.clearRect(0,0,128,128),o(u)&&h.drawImage(u,0,0,u.width,u.height,0,0,128,128),v.href=f.toDataURL("image/png"))})};return{initFaviconService:r,clearFaviconBadge:i,drawFaviconBadge:()=>{e.length!==0&&(i(),e.forEach(({favimg:u,favcanvas:f,favcontext:h,favicon:v})=>{if(!u||!h||!h)return;const S=`${getComputedStyle(document.body).getPropertyValue("--badgeNotification")||"rgb(240, 100, 100)"}`;o(u)&&h.drawImage(u,0,0,u.width,u.height,0,0,128,128),h.fillStyle=S,h.beginPath(),h.arc(96,32,32,0,2*Math.PI,!1),h.fill(),v.href=f.toDataURL("image/png")}))},getOriginalFavicons:()=>[...e]}},wh=vz(),bE=new Set(["mention","pleroma:report","follow_request"]);let Tf=null;const y_=e=>e.state.notifications.data,yE=e=>{const t=e.rootGetters||e.getters,{notificationVisibility:n}=t.mergedConfig;return[n.likes&&"like",n.mentions&&"mention",n.statuses&&"status",n.repeats&&"repeat",n.follows&&"follow",n.followRequest&&"follow_request",n.moves&&"move",n.emojiReactions&&"pleroma:emoji_reaction",n.reports&&"pleroma:report",n.polls&&"poll"].filter(s=>s)},bz=new Set(["like","mention","status","repeat","pleroma:emoji_reaction","poll"]),cd=e=>bz.has(e),yz=e=>!(cd(e.type)&&!e.status),_z=(e,t)=>{const n=Number(e.id),s=Number(t.id),r=!Number.isNaN(n),o=!Number.isNaN(s);return r&&o?n>s?-1:1:r&&!o?1:!r&&o||e.id>t.id?-1:1},wz=e=>e.status?e.status.muted?!0:pE(e.status).length>0:!1,Sz=(e,t)=>{const n=e.rootState||e.state;if(t.seen||!yE(e).includes(t.type)||t.type==="mention"&&wz(t))return;const s=$z(t,bp().i18n);vE(n,s)},Yf=(e,t)=>y_(e).map(s=>s).sort(_z).filter(s=>(t||yE(e)).includes(s.type)),__=e=>{const n=(e.rootGetters||e.getters).mergedConfig.ignoreInactionableSeen;return Yf(e).filter(({seen:s,type:r})=>n?s?!1:bE.has(r):!s)},$z=(e,t)=>{if(Tf===null){const i=wh.getOriginalFavicons(),a=i[i.length-1];a?Tf=a.favimg.src:Tf="about:blank"}const n={tag:e.id,type:e.type,badge:Tf},s=e.status,r=e.from_profile.name;n.title=r,n.icon=e.from_profile.profile_image_url;let o;switch(e.type){case"like":o="favorited_you";break;case"status":o="subscribed_status";break;case"repeat":o="repeated_you";break;case"follow":o="followed_you";break;case"move":o="migrated_to";break;case"follow_request":o="follow_request";break;case"pleroma:report":o="submitted_report";break;case"poll":o="poll_ended";break}return e.type==="pleroma:emoji_reaction"?n.body=t.t("notifications.reacted_with",[e.emoji]):o?n.body=t.t("notifications."+o):cd(e.type)&&(n.body=e.status.text),s&&s.attachments&&s.attachments.length>0&&!s.nsfw&&s.attachments[0].mimetype.startsWith("image/")&&(n.image=s.attachments[0].url),n},_E=e=>{const t=e.rootGetters||e.getters,n=t.mergedConfig;return n.showExtraNotifications?[n.showChatsInExtraNotifications?t.unreadChatCount:0,n.showAnnouncementsInExtraNotifications?ms().unreadAnnouncementCount:0,n.showFollowRequestsInExtraNotifications?t.followRequestCount:0].reduce((s,r)=>s+r,0):0},Nl=2147483647,Xr=36,w_=1,Gu=26,kz=38,Cz=700,wE=72,SE=128,$E="-",Tz=/^xn--/,Az=/[^\0-\x7F]/,Ez=/[\x2E\u3002\uFF0E\uFF61]/g,Iz={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},Lg=Xr-w_,Jr=Math.floor,Og=String.fromCharCode;function wi(e){throw new RangeError(Iz[e])}function Pz(e,t){const n=[];let s=e.length;for(;s--;)n[s]=t(e[s]);return n}function kE(e,t){const n=e.split("@");let s="";n.length>1&&(s=n[0]+"@",e=n[1]),e=e.replace(Ez,".");const r=e.split("."),o=Pz(r,t).join(".");return s+o}function CE(e){const t=[];let n=0;const s=e.length;for(;n<s;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<s){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((r&1023)<<10)+(o&1023)+65536):(t.push(r),n--)}else t.push(r)}return t}const Lz=e=>String.fromCodePoint(...e),Oz=function(e){return e>=48&&e<58?26+(e-48):e>=65&&e<91?e-65:e>=97&&e<123?e-97:Xr},sk=function(e,t){return e+22+75*(e<26)-((t!=0)<<5)},TE=function(e,t,n){let s=0;for(e=n?Jr(e/Cz):e>>1,e+=Jr(e/t);e>Lg*Gu>>1;s+=Xr)e=Jr(e/Lg);return Jr(s+(Lg+1)*e/(e+kz))},AE=function(e){const t=[],n=e.length;let s=0,r=SE,o=wE,i=e.lastIndexOf($E);i<0&&(i=0);for(let a=0;a<i;++a)e.charCodeAt(a)>=128&&wi("not-basic"),t.push(e.charCodeAt(a));for(let a=i>0?i+1:0;a<n;){const c=s;for(let f=1,h=Xr;;h+=Xr){a>=n&&wi("invalid-input");const v=Oz(e.charCodeAt(a++));v>=Xr&&wi("invalid-input"),v>Jr((Nl-s)/f)&&wi("overflow"),s+=v*f;const y=h<=o?w_:h>=o+Gu?Gu:h-o;if(v<y)break;const S=Xr-y;f>Jr(Nl/S)&&wi("overflow"),f*=S}const u=t.length+1;o=TE(s-c,u,c==0),Jr(s/u)>Nl-r&&wi("overflow"),r+=Jr(s/u),s%=u,t.splice(s++,0,r)}return String.fromCodePoint(...t)},EE=function(e){const t=[];e=CE(e);const n=e.length;let s=SE,r=0,o=wE;for(const c of e)c<128&&t.push(Og(c));const i=t.length;let a=i;for(i&&t.push($E);a<n;){let c=Nl;for(const f of e)f>=s&&f<c&&(c=f);const u=a+1;c-s>Jr((Nl-r)/u)&&wi("overflow"),r+=(c-s)*u,s=c;for(const f of e)if(f<s&&++r>Nl&&wi("overflow"),f===s){let h=r;for(let v=Xr;;v+=Xr){const y=v<=o?w_:v>=o+Gu?Gu:v-o;if(h<y)break;const S=h-y,k=Xr-y;t.push(Og(sk(y+S%k,0))),h=Jr(S/k)}t.push(Og(sk(h,0))),o=TE(r,u,a===i),r=0,++a}++r,++s}return t.join("")},Rz=function(e){return kE(e,function(t){return Tz.test(t)?AE(t.slice(4).toLowerCase()):t})},Mz=function(e){return kE(e,function(t){return Az.test(t)?"xn--"+EE(t):t})},Nz={version:"2.3.1",ucs2:{decode:CE,encode:Lz},decode:AE,encode:EE,toASCII:Mz,toUnicode:Rz},Fz=e=>e.is_post_verb?"status":e.retweeted_status?"retweet":typeof e.uri=="string"&&e.uri.match(/(fave|objectType=Favourite)/)||typeof e.text=="string"&&e.text.match(/favorited/)?"favorite":e.text.match(/deleted notice {{tag/)||e.qvitter_delete_notice?"deletion":e.text.match(/started following/)||e.activity_type==="follow"?"follow":"unknown",Cn=e=>{const t={},n=Object.prototype.hasOwnProperty.call(e,"acct"),s=n&&!Object.prototype.hasOwnProperty.call(e,"avatar");if(t.inLists=null,t.id=String(e.id),t._original=e,n){if(t.screen_name=e.acct,t.fqn=e.fqn,t.statusnet_profile_url=e.url,t.mute_expires_at=e.mute_expires_at,t.block_expires_at=e.block_expires_at,s)return t;if(t.emoji=e.emojis,t.name=_h(e.display_name),t.name_html=t.name,t.name_unescaped=e.display_name,t.description=e.note,t.description_html=e.note,t.fields=e.fields,t.fields_html=e.fields.map(r=>({name:_h(r.name),value:r.value})),t.fields_text=e.fields.map(r=>({name:unescape(r.name.replace(/<[^>]*>/g,"")),value:unescape(r.value.replace(/<[^>]*>/g,""))})),t.profile_image_url=e.avatar,t.profile_image_url_original=e.avatar,t.cover_photo=e.header,t.friends_count=e.following_count,t.bot=e.bot,t.privileges=[],e.pleroma){e.pleroma.settings_store&&(t.storage=e.pleroma.settings_store["pleroma-fe"]);const r=e.pleroma.relationship;t.background_image=e.pleroma.background_image,t.favicon=e.pleroma.favicon,t.token=e.pleroma.chat_token,r&&(t.relationship=r),t.allow_following_move=e.pleroma.allow_following_move,t.hide_favorites=e.pleroma.hide_favorites,t.hide_follows=e.pleroma.hide_follows,t.hide_followers=e.pleroma.hide_followers,t.hide_follows_count=e.pleroma.hide_follows_count,t.hide_followers_count=e.pleroma.hide_followers_count,t.rights={moderator:e.pleroma.is_moderator,admin:e.pleroma.is_admin},t.rights.admin?t.role="admin":t.rights.moderator?t.role="moderator":t.role="member",t.birthday=e.pleroma.birthday,e.pleroma.privileges?t.privileges=e.pleroma.privileges:e.pleroma.is_admin?t.privileges=["users_read","users_manage_invites","users_manage_activation_state","users_manage_tags","users_manage_credentials","users_delete","messages_read","messages_delete","instances_delete","reports_manage_reports","moderation_log_read","announcements_manage_announcements","emoji_manage_emoji","statistics_read"]:e.pleroma.is_moderator?t.privileges=["messages_delete","reports_manage_reports"]:t.privileges=[]}e.source&&(t.description=e.source.note,t.default_scope=e.source.privacy,t.fields=e.source.fields,e.source.pleroma&&(t.no_rich_text=e.source.pleroma.no_rich_text,t.show_role=e.source.pleroma.show_role,t.discoverable=e.source.pleroma.discoverable,t.show_birthday=e.pleroma.show_birthday,t.actor_type=e.source.pleroma.actor_type)),t.is_local=!t.screen_name.includes("@")}else t.screen_name=e.screen_name,t.name=e.name,t.name_html=e.name_html,t.description=e.description,t.description_html=e.description_html,t.profile_image_url=e.profile_image_url,t.profile_image_url_original=e.profile_image_url_original,t.cover_photo=e.cover_photo,t.friends_count=e.friends_count,t.statusnet_profile_url=e.statusnet_profile_url,t.is_local=e.is_local,t.role=e.role,t.show_role=e.show_role,e.rights&&(t.rights={moderator:e.rights.delete_others_notice,admin:e.rights.admin}),t.no_rich_text=e.no_rich_text,t.default_scope=e.default_scope,t.hide_follows=e.hide_follows,t.hide_followers=e.hide_followers,t.hide_follows_count=e.hide_follows_count,t.hide_followers_count=e.hide_followers_count,t.background_image=e.background_image,t.token=e.token,t.relationship={muting:e.muted,blocking:e.statusnet_blocking,followed_by:e.follows_you,following:e.following};if(t.created_at=new Date(e.created_at),t.locked=e.locked,t.followers_count=e.followers_count,t.statuses_count=e.statuses_count,e.pleroma&&(t.follow_request_count=e.pleroma.follow_request_count,t.tags=e.pleroma.tags,t.deactivated=typeof e.pleroma.is_active<"u"?!e.pleroma.is_active:e.pleroma.deactivated,t.notification_settings=e.pleroma.notification_settings,t.unread_chat_count=e.pleroma.unread_chat_count),t.tags=t.tags||[],t.rights=t.rights||{},t.notification_settings=t.notification_settings||{},t.screen_name_ui=t.screen_name,t.screen_name&&t.screen_name.includes("@")){const r=t.screen_name.split("@"),o=Nz.toUnicode(r[1]);o!==r[1]?(t.screen_name_ui_contains_non_ascii=!0,t.screen_name_ui=[r[0],o].join("@")):t.screen_name_ui_contains_non_ascii=!1}return t},yp=e=>{const t={};return!Object.prototype.hasOwnProperty.call(e,"oembed")?(t.mimetype=e.pleroma?e.pleroma.mime_type:e.type,t.meta=e.meta,t.id=e.id):t.mimetype=e.mimetype,t.url=e.url,t.large_thumb_url=e.preview_url,t.description=e.description,t},Dz=e=>{const t={};return t.text=e.text,t.spoiler_text=e.spoiler_text,t.content_type=e.content_type,t},rn=e=>{var r,o;const t={},n=Object.prototype.hasOwnProperty.call(e,"account");if(n){t.favorited=e.favourited,t.fave_num=e.favourites_count,t.repeated=e.reblogged,t.repeat_num=e.reblogs_count,t.bookmarked=e.bookmarked,t.type=e.reblog?"retweet":"status",t.nsfw=e.sensitive,t.raw_html=e.content,t.emojis=e.emojis,t.tags=e.tags,t.edited_at=e.edited_at;const{pleroma:i}=e;e.pleroma?(t.text=i.content?e.pleroma.content["text/plain"]:e.content,t.summary=i.spoiler_text?e.pleroma.spoiler_text["text/plain"]:e.spoiler_text,t.statusnet_conversation_id=e.pleroma.conversation_id,t.is_local=i.local,t.in_reply_to_screen_name=i.in_reply_to_account_acct,t.thread_muted=i.thread_muted,t.emoji_reactions=i.emoji_reactions,t.parent_visible=i.parent_visible===void 0?!0:i.parent_visible,t.quote_visible=i.quote_visible||!0,t.quotes_count=i.quotes_count,t.bookmark_folder_id=i.bookmark_folder):(t.text=e.content,t.summary=e.spoiler_text);const a=(i==null?void 0:i.quote)||e.quote,c=a?rn(a):void 0;t.quote=c,t.quote_id=((r=e.quote)==null?void 0:r.id)??e.quote_id??(c==null?void 0:c.id)??i.quote_id,t.quote_url=((o=e.quote)==null?void 0:o.url)??(c==null?void 0:c.url)??i.quote_url,t.in_reply_to_status_id=e.in_reply_to_id,t.in_reply_to_user_id=e.in_reply_to_account_id,t.replies_count=e.replies_count,t.type==="retweet"&&(t.retweeted_status=rn(e.reblog)),t.summary_raw_html=_h(e.spoiler_text),t.external_url=e.url,t.poll=e.poll,t.poll&&(t.poll.options=(t.poll.options||[]).map(u=>({...u,title_html:_h(u.title)}))),t.pinned=e.pinned,t.muted=e.muted}else t.favorited=e.favorited,t.fave_num=e.fave_num,t.repeated=e.repeated,t.repeat_num=e.repeat_num,t.type=Fz(e),e.nsfw===void 0?(t.nsfw=Uz(e),e.retweeted_status&&(t.nsfw=e.retweeted_status.nsfw)):t.nsfw=e.nsfw,t.raw_html=e.statusnet_html,t.text=e.text,t.in_reply_to_status_id=e.in_reply_to_status_id,t.in_reply_to_user_id=e.in_reply_to_user_id,t.in_reply_to_screen_name=e.in_reply_to_screen_name,t.statusnet_conversation_id=e.statusnet_conversation_id,t.type==="retweet"&&(t.retweeted_status=rn(e.retweeted_status)),t.summary=e.summary,t.summary_html=e.summary_html,t.external_url=e.external_url,t.is_local=e.is_local;t.id=String(e.id),t.visibility=e.visibility,t.card=e.card,t.created_at=new Date(e.created_at),t.in_reply_to_status_id=t.in_reply_to_status_id?String(t.in_reply_to_status_id):null,t.in_reply_to_user_id=t.in_reply_to_user_id?String(t.in_reply_to_user_id):null,t.user=Cn(n?e.account:e.user),t.attentions=((n?e.mentions:e.attentions)||[]).map(Cn),t.attachments=((n?e.media_attachments:e.attachments)||[]).map(yp);const s=n?e.reblog:e.retweeted_status;return s&&(t.retweeted_status=rn(s)),t.favoritedBy=[],t.rebloggedBy=[],Object.prototype.hasOwnProperty.call(e,"originalStatus")&&Object.assign(t,e.originalStatus),t},IE=e=>{const t={favourite:"like",reblog:"repeat"},n=!Object.prototype.hasOwnProperty.call(e,"ntype"),s={};if(n)s.type=t[e.type]||e.type,s.seen=e.pleroma.is_seen,s.status=cd(s.type)&&e.status!==null?rn(e.status):null,s.target=s.type!=="move"?null:Cn(e.target),s.from_profile=Cn(e.account),s.emoji=e.emoji,s.emoji_url=e.emoji_url,e.report&&(s.report=e.report,s.report.content=e.report.content,s.report.acct=Cn(e.report.account),s.report.actor=Cn(e.report.actor),s.report.statuses=e.report.statuses.map(rn));else{const r=rn(e.notice);s.type=e.ntype,s.seen=!!e.is_seen,s.status=s.type==="like"?rn(e.notice.favorited_status):r,s.action=r,s.from_profile=s.type==="pleroma:chat_mention"?Cn(e.account):Cn(e.from_profile)}return s.created_at=new Date(e.created_at),s.id=parseInt(e.id),s},Uz=e=>{const t=/#nsfw/i;return(e.tags||[]).includes("nsfw")||!!(e.text||"").match(t)},jz=(e,t={})=>{var i,a;const n=t.flakeId,s=ez(e);if(!s)return;const r=(i=s.next)==null?void 0:i.max_id,o=(a=s.prev)==null?void 0:a.min_id;return{maxId:n?r:parseInt(r,10),minId:n?o:parseInt(o,10)}},S_=e=>{const t={};return t.id=e.id,t.account=Cn(e.account),t.unread=e.unread,t.lastMessage=PE(e.last_message),t.updated_at=new Date(e.updated_at),t},PE=e=>{if(!e)return;if(e.isNormalized)return e;const t=e;return t.id=e.id,t.created_at=new Date(e.created_at),t.chat_id=e.chat_id,t.emojis=e.emojis,t.content=e.content,e.attachment?t.attachments=[yp(e.attachment)]:t.attachments=[],t.pending=!!e.pending,t.error=!1,t.idempotency_key=e.idempotency_key,t.isNormalized=!0,t};function Bz(e){return Object.entries(e).reduce((t,[n,s])=>{const r=s.reduce((o,i)=>{const a=Z.capitalize(n.replace(/_/g," "));return o+[a,i].join(" ")+". "},"");return[...t,r]},[])}function Di(e,t,n,s){this.name="StatusCodeError",this.statusCode=e,this.message=e+" - "+(JSON&&JSON.stringify?JSON.stringify(t):t),this.error=t,this.options=n,this.response=s,Error.captureStackTrace&&Error.captureStackTrace(this)}Di.prototype=Object.create(Error.prototype);Di.prototype.constructor=Di;class zz extends Error{constructor(t){super(),Error.captureStackTrace&&Error.captureStackTrace(this);try{if(typeof t=="string"&&(t=JSON.parse(t),t.hasOwnProperty("error")&&(t=JSON.parse(t.error))),typeof t=="object"){const n=JSON.parse(t.error);n.ap_id&&(n.username=n.ap_id,delete n.ap_id),this.message=Bz(n)}else this.message=t}catch{this.message=t}}}const qz="/api/pleroma/mutes_import",Hz="/api/pleroma/blocks_import",Vz="/api/pleroma/follow_import",Wz="/api/pleroma/delete_account",Gz="/api/pleroma/change_email",Kz="/api/pleroma/change_password",xz="/api/pleroma/move_account",$_="/api/pleroma/aliases",LE="/api/pleroma/admin/users/tag",OE=(e,t)=>`/api/pleroma/admin/users/${e}/permission_group/${t}`,Yz="/api/pleroma/admin/users/activate",Xz="/api/pleroma/admin/users/deactivate",Jz="/api/v1/pleroma/admin/users",Zz="/api/v1/suggestions",Qz="/api/pleroma/notification_settings",eq="/api/v1/pleroma/notifications/read",tq="/api/pleroma/accounts/mfa",nq="/api/pleroma/accounts/mfa/backup_codes",sq="/api/pleroma/accounts/mfa/setup/totp",rq="/api/pleroma/accounts/mfa/confirm/totp",oq="/api/pleroma/accounts/mfa/totp",iq="/api/v1/accounts/verify_credentials",aq="/api/v1/accounts",lq="/api/v1/favourites",cq="/api/v1/notifications",uq=e=>`/api/v1/notifications/${e}/dismiss`,dq=e=>`/api/v1/statuses/${e}/favourite`,fq=e=>`/api/v1/statuses/${e}/unfavourite`,hq=e=>`/api/v1/statuses/${e}/reblog`,pq=e=>`/api/v1/statuses/${e}/unreblog`,mq=e=>`/api/v1/statuses/${e}`,gq=e=>`/api/v1/accounts/${e}/follow`,vq=e=>`/api/v1/accounts/${e}/unfollow`,bq=e=>`/api/v1/accounts/${e}/following`,yq=e=>`/api/v1/accounts/${e}/followers`,_q="/api/v1/follow_requests",wq=e=>`/api/v1/follow_requests/${e}/authorize`,Sq=e=>`/api/v1/follow_requests/${e}/reject`,$q="/api/v1/timelines/direct",rk="/api/v1/timelines/public",kq="/api/v1/timelines/home",RE=e=>`/api/v1/statuses/${e}`,Cq=e=>`/api/v1/statuses/${e}/context`,Tq=e=>`/api/v1/statuses/${e}/source`,Aq=e=>`/api/v1/statuses/${e}/history`,Eq="/api/v1/accounts",Iq="/api/v1/accounts/lookup",Pq="/api/v1/accounts/relationships",V0=e=>`/api/v1/accounts/${e}/statuses`,Lq=e=>`/api/v1/accounts/${e}/lists`,k_=e=>`/api/v1/lists/${e}`,Oq=e=>`/api/v1/timelines/list/${e}`,C_=e=>`/api/v1/lists/${e}/accounts`,Rq=e=>`/api/v1/timelines/tag/${e}`,Mq="/api/v1/bookmarks",Nq="/api/v1/timelines/bubble",Fq="/api/v1/blocks/",Dq="/api/v1/mutes/",Uq=e=>`/api/v1/accounts/${e}/block`,jq=e=>`/api/v1/accounts/${e}/unblock`,Bq=e=>`/api/v1/accounts/${e}/mute`,zq=e=>`/api/v1/accounts/${e}/unmute`,qq=e=>`/api/v1/accounts/${e}/remove_from_followers`,Hq=e=>`/api/v1/accounts/${e}/note`,Vq=e=>`/api/v1/statuses/${e}/bookmark`,Wq=e=>`/api/v1/statuses/${e}/unbookmark`,Gq="/api/v1/statuses",ME="/api/v1/media",Kq=e=>`/api/v1/polls/${e}/votes`,xq=e=>`/api/v1/polls/${e}`,Yq=e=>`/api/v1/statuses/${e}/favourited_by`,Xq=e=>`/api/v1/statuses/${e}/reblogged_by`,T_="/api/v1/accounts/update_credentials",Jq="/api/v1/reports",Zq=e=>`/api/v1/statuses/${e}/pin`,Qq=e=>`/api/v1/statuses/${e}/unpin`,eH=e=>`/api/v1/statuses/${e}/mute`,tH=e=>`/api/v1/statuses/${e}/unmute`,nH="/api/v2/search",sH="/api/v1/accounts/search",A_="/api/v1/domain_blocks",NE="/api/v1/lists",rH="/api/v1/streaming",oH="/api/v1/instance/peers",iH="/api/v1/announcements",aH=e=>`/api/v1/announcements/${e}/dismiss`,lH=e=>`/api/v1/pleroma/statuses/${e}/reactions`,cH=(e,t)=>`/api/v1/pleroma/statuses/${e}/reactions/${t}`,uH=(e,t)=>`/api/v1/pleroma/statuses/${e}/reactions/${t}`,dH="/api/v1/pleroma/chats",fH=e=>`/api/v1/pleroma/chats/by-account-id/${e}`,FE=e=>`/api/v1/pleroma/chats/${e}/messages`,hH=e=>`/api/v1/pleroma/chats/${e}/read`,pH=(e,t)=>`/api/v1/pleroma/chats/${e}/messages/${t}`,mH="/api/v1/pleroma/admin/reports",DE="/api/v1/pleroma/backups",gH="/api/v1/pleroma/admin/announcements",vH="/api/v1/pleroma/admin/announcements",bH=e=>`/api/v1/pleroma/admin/announcements/${e}`,yH=e=>`/api/v1/pleroma/admin/announcements/${e}`,_H=e=>`/api/v1/pleroma/accounts/${e}/scrobbles`,wH=e=>`/api/v1/pleroma/statuses/${e}/quotes`,SH=e=>`/api/v1/pleroma/accounts/${e}/favourites`,UE="/api/v1/pleroma/bookmark_folders",jE=e=>`/api/v1/pleroma/bookmark_folders/${e}`,BE="/api/v1/pleroma/admin/config",$H="/api/v1/pleroma/admin/config/descriptions",kH="/api/v1/pleroma/admin/frontends",CH="/api/v1/pleroma/admin/frontends/install",TH="/api/pleroma/admin/reload_emoji",AH="/api/pleroma/emoji/packs/import",EH=(e,t)=>`/api/v1/pleroma/emoji/packs?page=${e}&page_size=${t}`,E_=e=>`/api/v1/pleroma/emoji/pack?name=${e}`,IH="/api/v1/pleroma/emoji/packs/download",PH="/api/v1/pleroma/emoji/packs/download_zip",LH=(e,t,n)=>`/api/v1/pleroma/emoji/packs/remote?url=${e}&page=${t}&page_size=${n}`,I_=e=>`/api/v1/pleroma/emoji/packs/files?name=${e}`,OH=window.fetch,Be=(e,t)=>{t=t||{};const s=""+e;return t.credentials="same-origin",OH(s,t)},ct=({method:e,url:t,params:n,payload:s,credentials:r,headers:o={}})=>{const i={method:e,headers:{Accept:"application/json","Content-Type":"application/json",...o}};return n&&(t+="?"+Object.entries(n).map(([a,c])=>encodeURIComponent(a)+"="+encodeURIComponent(c)).join("&")),s&&(i.body=JSON.stringify(s)),r&&(i.headers={...i.headers,...Je(r)}),Be(t,i).then(a=>new Promise((c,u)=>a.json().then(f=>a.ok?c(f):u(new Di(a.status,f,{url:t,options:i},a))).catch(f=>u(new Di(a.status,f,{url:t,options:i},a)))))},RH=({credentials:e,settings:t})=>{const n=new FormData;return Z.each(t,(s,r)=>{n.append(r,s)}),Be(`${Qz}?${new URLSearchParams(t)}`,{headers:Je(e),method:"PUT",body:n}).then(s=>s.json())},MH=({credentials:e,avatar:t=null,avatarName:n=null,banner:s=null,background:r=null})=>{const o=new FormData;return t!==null&&(n!==null?o.append("avatar",t,n):o.append("avatar",t)),s!==null&&o.append("header",s),r!==null&&o.append("pleroma_background_image",r),Be(T_,{headers:Je(e),method:"PATCH",body:o}).then(i=>i.json()).then(i=>{if(i.error)throw new Error(i.error);return Cn(i)})},NH=({credentials:e,params:t})=>{const n=new FormData;for(const s in t)s==="fields_attributes"?t[s].forEach((r,o)=>{n.append(s+`[${o}][name]`,r.name),n.append(s+`[${o}][value]`,r.value)}):(typeof t[s]=="object"&&console.warning("Object detected in updateProfile API call. This will not work, use updateProfileJSON instead."),n.append(s,t[s]));return Be(T_,{headers:Je(e),method:"PATCH",body:n}).then(s=>s.json()).then(s=>Cn(s))},FH=({credentials:e,params:t})=>ct({url:T_,credentials:e,payload:t,method:"PATCH"}).then(n=>n.json()).then(n=>Cn(n)),DH=({params:e,credentials:t})=>{const{nickname:n,...s}=e;return Be(aq,{method:"POST",headers:{...Je(t),"Content-Type":"application/json"},body:JSON.stringify({nickname:n,locale:"en_US",agreement:!0,...s})}).then(r=>r.ok?r.json():r.json().then(o=>{throw new zz(o)}))},UH=()=>Be("/api/pleroma/captcha").then(e=>e.json()),Je=e=>e?{Authorization:`Bearer ${e}`}:{},jH=({id:e,credentials:t,...n})=>{const s=gq(e),r={};return n.reblogs!==void 0&&(r.reblogs=n.reblogs),n.notify!==void 0&&(r.notify=n.notify),Be(s,{body:JSON.stringify(r),headers:{...Je(t),"Content-Type":"application/json"},method:"POST"}).then(o=>o.json())},BH=({id:e,credentials:t})=>{const n=vq(e);return Be(n,{headers:Je(t),method:"POST"}).then(s=>s.json())},zH=({id:e,credentials:t})=>{const n=Lq(e);return Be(n,{headers:Je(t)}).then(s=>s.json())},qH=({id:e,credentials:t})=>ct({url:Zq(e),credentials:t,method:"POST"}).then(n=>rn(n)),HH=({id:e,credentials:t})=>ct({url:Qq(e),credentials:t,method:"POST"}).then(n=>rn(n)),VH=({id:e,credentials:t})=>ct({url:eH(e),credentials:t,method:"POST"}).then(n=>rn(n)),WH=({id:e,credentials:t})=>ct({url:tH(e),credentials:t,method:"POST"}).then(n=>rn(n)),GH=({id:e,expiresIn:t,credentials:n})=>{const s={};return t&&(s.duration=t),ct({url:Uq(e),credentials:n,method:"POST",payload:s})},KH=({id:e,credentials:t})=>Be(jq(e),{headers:Je(t),method:"POST"}).then(n=>n.json()),xH=({id:e,credentials:t})=>Be(qq(e),{headers:Je(t),method:"POST"}).then(n=>n.json()),YH=({id:e,credentials:t,comment:n})=>ct({url:Hq(e),credentials:t,payload:{comment:n},method:"POST"}),XH=({id:e,credentials:t})=>{const n=wq(e);return Be(n,{headers:Je(t),method:"POST"}).then(s=>s.json())},JH=({id:e,credentials:t})=>{const n=Sq(e);return Be(n,{headers:Je(t),method:"POST"}).then(s=>s.json())},zE=({id:e,credentials:t})=>{const n=`${Eq}/${e}`;return ct({url:n,credentials:t}).then(s=>Cn(s))},ZH=({name:e,credentials:t})=>ct({url:Iq,credentials:t,params:{acct:e}}).then(n=>n.id).catch(n=>{if(n&&n.statusCode===404)return e;throw n}).then(n=>zE({id:n,credentials:t})),QH=({id:e,credentials:t})=>{const n=`${Pq}/?id=${e}`;return Be(n,{headers:Je(t)}).then(s=>new Promise((r,o)=>s.json().then(i=>s.ok?r(i):o(new Di(s.status,i,{url:n},s)))))},qE=({id:e,maxId:t,sinceId:n,limit:s=20,credentials:r})=>{let o=bq(e);const i=[t&&`max_id=${t}`,n&&`since_id=${n}`,s&&`limit=${s}`,"with_relationships=true"].filter(a=>a).join("&");return o=o+(i?"?"+i:""),Be(o,{headers:Je(r)}).then(a=>a.json()).then(a=>a.map(Cn))},eV=({id:e,credentials:t})=>new Promise(async(n,s)=>{try{let r=[],o=!0;for(;o;){const i=r.length>0?Z.last(r).id:void 0,a=await qE({id:e,maxId:i,credentials:t});r=Z.concat(r,a),a.length===0&&(o=!1)}n(r)}catch(r){s(r)}}),tV=({id:e,maxId:t,sinceId:n,limit:s=20,credentials:r})=>{let o=yq(e);const i=[t&&`max_id=${t}`,n&&`since_id=${n}`,s&&`limit=${s}`,"with_relationships=true"].filter(a=>a).join("&");return o+=i?"?"+i:"",Be(o,{headers:Je(r)}).then(a=>a.json()).then(a=>a.map(Cn))},nV=({credentials:e})=>Be(_q,{headers:Je(e)}).then(n=>n.json()).then(n=>n.map(Cn)),sV=({credentials:e})=>Be(NE,{headers:Je(e)}).then(n=>n.json()),rV=({title:e,credentials:t})=>{const n=NE,s=Je(t);return s["Content-Type"]="application/json",Be(n,{headers:s,method:"POST",body:JSON.stringify({title:e})}).then(r=>r.json())},oV=({listId:e,credentials:t})=>{const n=k_(e);return Be(n,{headers:Je(t)}).then(s=>s.json())},iV=({listId:e,title:t,credentials:n})=>{const s=k_(e),r=Je(n);return r["Content-Type"]="application/json",Be(s,{headers:r,method:"PUT",body:JSON.stringify({title:t})})},aV=({listId:e,credentials:t})=>{const n=C_(e);return Be(n,{headers:Je(t)}).then(s=>s.json()).then(s=>s.map(({id:r})=>r))},lV=({listId:e,accountIds:t,credentials:n})=>{const s=C_(e),r=Je(n);return r["Content-Type"]="application/json",Be(s,{headers:r,method:"POST",body:JSON.stringify({account_ids:t})})},cV=({listId:e,accountIds:t,credentials:n})=>{const s=C_(e),r=Je(n);return r["Content-Type"]="application/json",Be(s,{headers:r,method:"DELETE",body:JSON.stringify({account_ids:t})})},uV=({listId:e,credentials:t})=>{const n=k_(e);return Be(n,{method:"DELETE",headers:Je(t)})},dV=({id:e,credentials:t})=>{const n=Cq(e);return Be(n,{headers:Je(t)}).then(s=>{if(s.ok)return s;throw new Error("Error fetching timeline",s)}).then(s=>s.json()).then(({ancestors:s,descendants:r})=>({ancestors:s.map(rn),descendants:r.map(rn)}))},fV=({id:e,credentials:t})=>{const n=RE(e);return Be(n,{headers:Je(t)}).then(s=>{if(s.ok)return s;throw new Error("Error fetching timeline",s)}).then(s=>s.json()).then(s=>rn(s))},hV=({id:e,credentials:t})=>{const n=Tq(e);return Be(n,{headers:Je(t)}).then(s=>{if(s.ok)return s;throw new Error("Error fetching source",s)}).then(s=>s.json()).then(s=>Dz(s))},pV=({status:e,credentials:t})=>{const n=Aq(e.id);return ct({url:n,credentials:t}).then(s=>(s.reverse(),s.map(r=>(r.originalStatus=e,rn(r)))))},mV=({tag:e,credentials:t,user:n})=>{const r={nicknames:[n.screen_name],tags:[e]},o=Je(t);return o["Content-Type"]="application/json",Be(LE,{method:"PUT",headers:o,body:JSON.stringify(r)})},gV=({tag:e,credentials:t,user:n})=>{const r={nicknames:[n.screen_name],tags:[e]},o=Je(t);return o["Content-Type"]="application/json",Be(LE,{method:"DELETE",headers:o,body:JSON.stringify(r)})},vV=({right:e,credentials:t,user:n})=>{const s=n.screen_name;return Be(OE(s,e),{method:"POST",headers:Je(t),body:{}})},bV=({right:e,credentials:t,user:n})=>{const s=n.screen_name;return Be(OE(s,e),{method:"DELETE",headers:Je(t),body:{}})},yV=({credentials:e,user:{screen_name:t}})=>ct({url:Yz,method:"PATCH",credentials:e,payload:{nicknames:[t]}}).then(n=>Z.get(n,"users.0")),_V=({credentials:e,user:{screen_name:t}})=>ct({url:Xz,method:"PATCH",credentials:e,payload:{nicknames:[t]}}).then(n=>Z.get(n,"users.0")),wV=({credentials:e,user:t})=>{const n=t.screen_name,s=Je(e);return Be(`${Jz}?nickname=${n}`,{method:"DELETE",headers:s})},SV=({timeline:e,credentials:t,since:n=!1,minId:s=!1,until:r=!1,userId:o=!1,listId:i=!1,statusId:a=!1,tag:c=!1,withMuted:u=!1,replyVisibility:f="all",includeTypes:h=[],bookmarkFolderId:v=!1})=>{const y={public:rk,friends:kq,dms:$q,notifications:cq,publicAndExternal:rk,user:V0,media:V0,list:Oq,favorites:lq,publicFavorites:SH,tag:Rq,bookmarks:Mq,quotes:wH,bubble:Nq},S=e==="notifications",k=[];let I=y[e];e==="favorites"&&o&&(I=y.publicFavorites(o)),(e==="user"||e==="media")&&(I=I(o)),e==="list"&&(I=I(i)),e==="quotes"&&(I=I(a)),s&&k.push(["min_id",s]),n&&k.push(["since_id",n]),r&&k.push(["max_id",r]),c&&(I=I(c)),e==="media"&&k.push(["only_media",1]),e==="public"&&k.push(["local",!0]),(e==="public"||e==="publicAndExternal")&&k.push(["only_media",!1]),e!=="favorites"&&e!=="bookmarks"&&k.push(["with_muted",u]),f!=="all"&&k.push(["reply_visibility",f]),h.size>0&&h.forEach($=>{k.push(["include_types[]",$])}),e==="bookmarks"&&v&&k.push(["folder_id",v]),k.push(["limit",20]);const C=Z.map(k,$=>`${$[0]}=${$[1]}`).join("&");return I+=`?${C}`,Be(I,{headers:Je(t)}).then(async $=>{const P=$.ok,A=await $.json();if(P&&!A.errors){const R=jz($.headers.get("Link"),{flakeId:e!=="bookmarks"&&e!=="notifications"});return{data:A.map(S?IE:rn),pagination:R}}else return A.errors||(A.errors=[]),A.status=$.status,A.statusText=$.statusText,A})},$V=({id:e,credentials:t})=>{const n=V0(e)+"?pinned=true";return ct({url:n,credentials:t}).then(s=>s.map(rn))},kV=e=>Be(iq,{headers:Je(e)}).then(t=>t.ok?t.json():{error:t}).then(t=>t.error?t:Cn(t)),CV=({id:e,credentials:t})=>ct({url:dq(e),method:"POST",credentials:t}).then(n=>rn(n)),TV=({id:e,credentials:t})=>ct({url:fq(e),method:"POST",credentials:t}).then(n=>rn(n)),AV=({id:e,credentials:t})=>ct({url:hq(e),method:"POST",credentials:t}).then(n=>rn(n)),EV=({id:e,credentials:t})=>ct({url:pq(e),method:"POST",credentials:t}).then(n=>rn(n)),IV=({id:e,credentials:t,...n})=>ct({url:Vq(e),headers:Je(t),method:"POST",payload:{folder_id:n.folder_id}}),PV=({id:e,credentials:t})=>ct({url:Wq(e),headers:Je(t),method:"POST"}),LV=({credentials:e,status:t,spoilerText:n,visibility:s,sensitive:r,poll:o,mediaIds:i=[],inReplyToStatusId:a,quoteId:c,contentType:u,preview:f,idempotencyKey:h})=>{const v=new FormData,y=o.options||[];if(v.append("status",t),v.append("source","Pleroma FE"),n&&v.append("spoiler_text",n),s&&v.append("visibility",s),r&&v.append("sensitive",r),u&&v.append("content_type",u),i.forEach(k=>{v.append("media_ids[]",k)}),y.some(k=>k!=="")){const k={expires_in:parseInt(o.expiresIn,10),multiple:o.multiple};Object.keys(k).forEach(I=>{v.append(`poll[${I}]`,k[I])}),y.forEach(I=>{v.append("poll[options][]",I)})}a&&v.append("in_reply_to_id",a),c&&v.append("quote_id",c),f&&v.append("preview","true");const S=Je(e);return h&&(S["idempotency-key"]=h),Be(Gq,{body:v,method:"POST",headers:S}).then(k=>k.json()).then(k=>k.error?k:rn(k))},OV=({id:e,credentials:t,status:n,spoilerText:s,sensitive:r,poll:o,mediaIds:i=[],contentType:a})=>{const c=new FormData,u=o.options||[];if(c.append("status",n),s&&c.append("spoiler_text",s),r&&c.append("sensitive",r),a&&c.append("content_type",a),i.forEach(h=>{c.append("media_ids[]",h)}),u.some(h=>h!=="")){const h={expires_in:parseInt(o.expiresIn,10),multiple:o.multiple};Object.keys(h).forEach(v=>{c.append(`poll[${v}]`,h[v])}),u.forEach(v=>{c.append("poll[options][]",v)})}const f=Je(t);return Be(RE(e),{body:c,method:"PUT",headers:f}).then(h=>h.json()).then(h=>h.error?h:rn(h))},RV=({id:e,credentials:t})=>ct({url:mq(e),credentials:t,method:"DELETE"}),MV=({formData:e,credentials:t})=>Be(ME,{body:e,method:"POST",headers:Je(t)}).then(n=>n.json()).then(n=>yp(n)),NV=({id:e,description:t,credentials:n})=>ct({url:`${ME}/${e}`,method:"PUT",headers:Je(n),payload:{description:t}}).then(s=>yp(s)),FV=({file:e,credentials:t})=>{const n=new FormData;return n.append("list",e),Be(qz,{body:n,method:"POST",headers:Je(t)}).then(s=>s.ok)},DV=({file:e,credentials:t})=>{const n=new FormData;return n.append("list",e),Be(Hz,{body:n,method:"POST",headers:Je(t)}).then(s=>s.ok)},UV=({file:e,credentials:t})=>{const n=new FormData;return n.append("list",e),Be(Vz,{body:n,method:"POST",headers:Je(t)}).then(s=>s.ok)},jV=({credentials:e,password:t})=>{const n=new FormData;return n.append("password",t),Be(Wz,{body:n,method:"POST",headers:Je(e)}).then(s=>s.json())},BV=({credentials:e,email:t,password:n})=>{const s=new FormData;return s.append("email",t),s.append("password",n),Be(Gz,{body:s,method:"POST",headers:Je(e)}).then(r=>r.json())},zV=({credentials:e,password:t,targetAccount:n})=>{const s=new FormData;return s.append("password",t),s.append("target_account",n),Be(xz,{body:s,method:"POST",headers:Je(e)}).then(r=>r.json())},qV=({credentials:e,alias:t})=>ct({url:$_,method:"PUT",credentials:e,payload:{alias:t}}),HV=({credentials:e,alias:t})=>ct({url:$_,method:"DELETE",credentials:e,payload:{alias:t}}),VV=({credentials:e})=>ct({url:$_,method:"GET",credentials:e,params:{_cacheBooster:new Date().getTime()}}),WV=({credentials:e,password:t,newPassword:n,newPasswordConfirmation:s})=>{const r=new FormData;return r.append("password",t),r.append("new_password",n),r.append("new_password_confirmation",s),Be(Kz,{body:r,method:"POST",headers:Je(e)}).then(o=>o.json())},GV=({credentials:e})=>Be(tq,{headers:Je(e),method:"GET"}).then(t=>t.json()),KV=({credentials:e,password:t})=>{const n=new FormData;return n.append("password",t),Be(oq,{body:n,method:"DELETE",headers:Je(e)}).then(s=>s.json())},xV=({credentials:e,password:t,token:n})=>{const s=new FormData;return s.append("password",t),s.append("code",n),Be(rq,{body:s,headers:Je(e),method:"POST"}).then(r=>r.json())},YV=({credentials:e})=>Be(sq,{headers:Je(e),method:"GET"}).then(t=>t.json()),XV=({credentials:e})=>Be(nq,{headers:Je(e),method:"GET"}).then(t=>t.json()),JV=({maxId:e,credentials:t})=>{const n=new URLSearchParams({with_relationships:!0});return e&&n.append("max_id",e),ct({url:`${Dq}?${n.toString()}`,credentials:t}).then(s=>s.map(Cn))},ZV=({id:e,expiresIn:t,credentials:n})=>{const s={};return t&&(s.expires_in=t),ct({url:Bq(e),credentials:n,method:"POST",payload:s})},QV=({id:e,credentials:t})=>ct({url:zq(e),credentials:t,method:"POST"}),eW=({maxId:e,credentials:t})=>{const n=new URLSearchParams({with_relationships:!0});return e&&n.append("max_id",e),ct({url:`${Fq}?${n.toString()}`,credentials:t}).then(s=>s.map(Cn))},tW=({credentials:e})=>ct({url:DE,method:"POST",credentials:e}),nW=({credentials:e})=>ct({url:DE,method:"GET",credentials:e,params:{_cacheBooster:new Date().getTime()}}),sW=({credentials:e})=>Be("/api/oauth_tokens.json",{headers:Je(e)}).then(n=>{if(n.ok)return n.json();throw new Error("Error fetching auth tokens",n)}),rW=({id:e,credentials:t})=>{const n=`/api/oauth_tokens/${e}`;return Be(n,{headers:Je(t),method:"DELETE"})},oW=({credentials:e})=>Be(Zz,{headers:Je(e)}).then(t=>t.json()),iW=({id:e,credentials:t,single:n=!1})=>{const s=new FormData;return n?s.append("id",e):s.append("max_id",e),Be(eq,{body:s,headers:Je(t),method:"POST"}).then(r=>r.json())},aW=({pollId:e,choices:t,credentials:n})=>(new FormData().append("choices",t),ct({url:Kq(encodeURIComponent(e)),method:"POST",credentials:n,payload:{choices:t}})),lW=({pollId:e,credentials:t})=>ct({url:xq(encodeURIComponent(e)),method:"GET",credentials:t}),cW=({id:e,credentials:t})=>ct({url:Yq(e),method:"GET",credentials:t}).then(n=>n.map(Cn)),uW=({id:e,credentials:t})=>ct({url:Xq(e),method:"GET",credentials:t}).then(n=>n.map(Cn)),dW=({id:e,credentials:t})=>ct({url:lH(e),credentials:t}).then(n=>n.map(s=>(s.accounts=s.accounts.map(Cn),s))),fW=({id:e,emoji:t,credentials:n})=>ct({url:cH(e,t),method:"PUT",credentials:n}).then(rn),hW=({id:e,emoji:t,credentials:n})=>ct({url:uH(e,t),method:"DELETE",credentials:n}).then(rn),pW=({credentials:e,userId:t,statusIds:n,comment:s,forward:r})=>ct({url:Jq,method:"POST",payload:{account_id:t,status_ids:n,comment:s,forward:r},credentials:e}),mW=({credentials:e,query:t})=>ct({url:sH,params:{q:t,resolve:!0},credentials:e}).then(n=>n.map(Cn)),gW=({credentials:e,q:t,resolve:n,limit:s,offset:r,following:o,type:i})=>{let a=nH;const c=[];t&&c.push(["q",encodeURIComponent(t)]),n&&c.push(["resolve",n]),s&&c.push(["limit",s]),r&&c.push(["offset",r]),o&&c.push(["following",!0]),i&&c.push(["type",i]),c.push(["with_relationships",!0]);const u=Z.map(c,f=>`${f[0]}=${f[1]}`).join("&");return a+=`?${u}`,Be(a,{headers:Je(e)}).then(f=>{if(f.ok)return f;throw new Error("Error fetching search result",f)}).then(f=>f.json()).then(f=>(f.accounts=f.accounts.slice(0,s).map(h=>Cn(h)),f.statuses=f.statuses.slice(0,s).map(h=>rn(h)),f))},vW=({credentials:e})=>ct({url:oH,credentials:e}),bW=({credentials:e})=>ct({url:A_,credentials:e}),yW=({domain:e,credentials:t})=>ct({url:A_,method:"POST",payload:{domain:e},credentials:t}),_W=({domain:e,credentials:t})=>ct({url:A_,method:"DELETE",payload:{domain:e},credentials:t}),wW=({credentials:e,id:t})=>ct({url:uq(t),method:"POST",payload:{id:t},credentials:e}),SW=({credentials:e})=>ct({url:gH,credentials:e}),$W=({credentials:e})=>ct({url:iH,credentials:e}),kW=({id:e,credentials:t})=>ct({url:aH(e),credentials:t,method:"POST"}),HE=({content:e,startsAt:t,endsAt:n,allDay:s})=>{const r={content:e};return typeof t<"u"&&(r.starts_at=t?new Date(t).toISOString():null),typeof n<"u"&&(r.ends_at=n?new Date(n).toISOString():null),typeof s<"u"&&(r.all_day=s),r},CW=({credentials:e,content:t,startsAt:n,endsAt:s,allDay:r})=>ct({url:vH,credentials:e,method:"POST",payload:HE({content:t,startsAt:n,endsAt:s,allDay:r})}),TW=({id:e,credentials:t,content:n,startsAt:s,endsAt:r,allDay:o})=>ct({url:bH(e),credentials:t,method:"PATCH",payload:HE({content:n,startsAt:s,endsAt:r,allDay:o})}),AW=({id:e,credentials:t})=>ct({url:yH(e),credentials:t,method:"DELETE"}),EW=({credentials:e,stream:t,args:n={}},s)=>{const r=new URL(rH,s);return e&&r.searchParams.append("access_token",e),t&&r.searchParams.append("stream",t),Object.entries(n).forEach(([o,i])=>{r.searchParams.append(o,i)}),r},IW=new Set(["update","notification","delete","filters_changed","status.update"]),PW=new Set(["pleroma:chat_update","pleroma:respond"]),LW=({url:e,preprocessor:t=OW,id:n="Unknown",credentials:s})=>{const r=new EventTarget,o=new WebSocket(e);if(!o)throw new Error(`Failed to create socket ${n}`);const i=(c,u,f=h=>h)=>{c.addEventListener(u,h=>{r.dispatchEvent(new CustomEvent(u,{detail:f(h)}))})};o.addEventListener("open",c=>{console.debug(`[WS][${n}] Socket connected`,c),s&&o.send(JSON.stringify({type:"pleroma:authenticate",token:s}))}),o.addEventListener("error",c=>{console.debug(`[WS][${n}] Socket errored`,c)}),o.addEventListener("close",c=>{console.debug(`[WS][${n}] Socket disconnected with code ${c.code}`,c)});const a=()=>{r.dispatchEvent(new CustomEvent("pleroma:authenticated"))};return i(o,"open"),i(o,"close"),i(o,"message",c=>t(c,{onAuthenticated:a})),i(o,"error"),r.close=()=>{o.close(1e3,"Shutting down socket")},r.getState=()=>o.readyState,r.subscribe=(c,u={})=>{console.debug(`[WS][${n}] Subscribing to stream ${c} with args`,u),o.send(JSON.stringify({type:"subscribe",stream:c,...u}))},r.unsubscribe=(c,u={})=>{console.debug(`[WS][${n}] Unsubscribing from stream ${c} with args`,u),o.send(JSON.stringify({type:"unsubscribe",stream:c,...u}))},r},OW=(e,{onAuthenticated:t=()=>{}}={})=>{const{data:n}=e;if(!n)return;const s=JSON.parse(n),{event:r,payload:o}=s;if(IW.has(r)||PW.has(r)){if(r==="delete")return{event:r,id:o};const i=o?JSON.parse(o):null;if(r==="pleroma:respond")return i.type==="pleroma:authenticate"&&(i.result==="success"?(console.debug("[WS] Successfully authenticated"),t()):(console.error("[WS] Unable to authenticate:",i.error),e.target.close())),null;if(r==="update")return{event:r,status:rn(i)};if(r==="status.update")return{event:r,status:rn(i)};if(r==="notification")return{event:r,notification:IE(i)};if(r==="pleroma:chat_update")return{event:r,chatUpdate:S_(i)}}else return console.warn("Unknown event",e),null},Ks=Object.freeze({JOINED:1,CLOSED:2,ERROR:3,DISABLED:4,STARTING:5,STARTING_INITIAL:6}),RW=({credentials:e})=>Be(dH,{headers:Je(e)}).then(t=>t.json()).then(t=>({chats:t.map(S_).filter(n=>n)})),MW=({accountId:e,credentials:t})=>ct({url:fH(e),method:"POST",credentials:t}),NW=({id:e,credentials:t,maxId:n,sinceId:s,limit:r=20})=>{let o=FE(e);const i=[n&&`max_id=${n}`,s&&`since_id=${s}`,r&&`limit=${r}`].filter(a=>a).join("&");return o=o+(i?"?"+i:""),ct({url:o,method:"GET",credentials:t})},FW=({id:e,content:t,mediaId:n=null,idempotencyKey:s,credentials:r})=>{const o={content:t};n&&(o.media_id=n);const i={};return s&&(i["idempotency-key"]=s),ct({url:FE(e),method:"POST",payload:o,credentials:r,headers:i})},DW=({id:e,lastReadId:t,credentials:n})=>ct({url:hH(e),method:"POST",payload:{last_read_id:t},credentials:n}),UW=({chatId:e,messageId:t,credentials:n})=>ct({url:pH(e,t),method:"DELETE",credentials:n}),jW=({id:e,state:t,credentials:n})=>Be(mH,{headers:{...Je(n),Accept:"application/json","Content-Type":"application/json"},method:"PATCH",body:JSON.stringify({reports:[{id:e,state:t}]})}).then(s=>{if(s.status>=500)throw Error(s.statusText);return s.status>=400?s.json():s}).then(s=>{if(s.errors)throw Error(s.errors[0].message)}),BW=({credentials:e})=>Be(BE,{headers:Je(e)}).then(t=>t.ok?t.json():{error:t}),zW=({credentials:e})=>Be($H,{headers:Je(e)}).then(t=>t.ok?t.json():{error:t}),qW=({credentials:e})=>Be(kH,{headers:Je(e)}).then(t=>t.ok?t.json():{error:t}),HW=({credentials:e,payload:t})=>Be(BE,{headers:{Accept:"application/json","Content-Type":"application/json",...Je(e)},method:"POST",body:JSON.stringify(t)}).then(n=>n.ok?n.json():{error:n}),VW=({credentials:e,payload:t})=>Be(CH,{headers:{Accept:"application/json","Content-Type":"application/json",...Je(e)},method:"POST",body:JSON.stringify(t)}).then(n=>n.ok?n.json():{error:n}),WW=({accountId:e,limit:t=1})=>{let n=_H(e);const s=[["limit",t]],r=Z.map(s,o=>`${o[0]}=${o[1]}`).join("&");return n+=`?${r}`,Be(n,{}).then(o=>o.ok?o.json():{error:o})},GW=({name:e})=>Be(E_(e),{method:"DELETE"}),KW=()=>Be(TH,{method:"POST"}),xW=()=>Be(AH),YW=({name:e})=>Be(E_(e),{method:"POST"}),XW=({page:e,pageSize:t})=>Be(EH(e,t)),JW=({instance:e,page:t,pageSize:n})=>(e.startsWith("http")||(e="https://"+e),Be(LH(e,t,n),{headers:{"Content-Type":"application/json"}})),ZW=({instance:e,packName:t,as:n})=>Be(IH,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({url:e,name:t,as:n})}),QW=({url:e,packName:t,file:n})=>{const s=new FormData;return n&&s.set("file",n),e&&s.set("url",e),s.set("name",t),Be(PH,{method:"POST",body:s})},eG=({name:e,newData:t})=>Be(E_(e),{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({metadata:t})}),tG=({packName:e,file:t,shortcode:n,filename:s})=>{const r=new FormData;return s.trim()!==""&&r.set("filename",s),n.trim()!==""&&r.set("shortcode",n),r.set("file",t),Be(I_(e),{method:"POST",body:r})},nG=({packName:e,shortcode:t,newShortcode:n,newFilename:s,force:r})=>Be(I_(e),{method:"PATCH",headers:{"Content-Type":"application/json"},body:JSON.stringify({shortcode:t,new_shortcode:n,new_filename:s,force:r})}),sG=({packName:e,shortcode:t})=>Be(`${I_(e)}&shortcode=${t}`,{method:"DELETE"}),rG=({credentials:e})=>Be(UE,{headers:Je(e)}).then(n=>n.json()),oG=({name:e,emoji:t,credentials:n})=>{const s=UE,r=Je(n);return r["Content-Type"]="application/json",Be(s,{headers:r,method:"POST",body:JSON.stringify({name:e,emoji:t})}).then(o=>o.json())},iG=({folderId:e,name:t,emoji:n,credentials:s})=>{const r=jE(e),o=Je(s);return o["Content-Type"]="application/json",Be(r,{headers:o,method:"PATCH",body:JSON.stringify({name:t,emoji:n})}).then(i=>i.json())},aG=({folderId:e,credentials:t})=>{const n=jE(e);return Be(n,{method:"DELETE",headers:Je(t)})},Ln={verifyCredentials:kV,fetchTimeline:SV,fetchPinnedStatuses:$V,fetchConversation:dV,fetchStatus:fV,fetchStatusSource:hV,fetchStatusHistory:pV,fetchFriends:qE,exportFriends:eV,fetchFollowers:tV,followUser:jH,unfollowUser:BH,pinOwnStatus:qH,unpinOwnStatus:HH,muteConversation:VH,unmuteConversation:WH,blockUser:GH,unblockUser:KH,removeUserFromFollowers:xH,editUserNote:YH,fetchUser:zE,fetchUserByName:ZH,fetchUserRelationship:QH,favorite:CV,unfavorite:TV,retweet:AV,unretweet:EV,bookmarkStatus:IV,unbookmarkStatus:PV,postStatus:LV,editStatus:OV,deleteStatus:RV,uploadMedia:MV,setMediaDescription:NV,fetchMutes:JV,muteUser:ZV,unmuteUser:QV,fetchBlocks:eW,fetchOAuthTokens:sW,revokeOAuthToken:rW,tagUser:mV,untagUser:gV,deleteUser:wV,addRight:vV,deleteRight:bV,activateUser:yV,deactivateUser:_V,register:DH,getCaptcha:UH,updateProfileImages:MH,updateProfile:NH,updateProfileJSON:FH,importMutes:FV,importBlocks:DV,importFollows:UV,deleteAccount:jV,changeEmail:BV,moveAccount:zV,addAlias:qV,deleteAlias:HV,listAliases:VV,changePassword:WV,settingsMFA:GV,mfaDisableOTP:KV,generateMfaBackupCodes:XV,mfaSetupOTP:YV,mfaConfirmOTP:xV,addBackup:tW,listBackups:nW,fetchFollowRequests:nV,fetchLists:sV,createList:rV,getList:oV,updateList:iV,getListAccounts:aV,addAccountsToList:lV,removeAccountsFromList:cV,deleteList:uV,approveUser:XH,denyUser:JH,suggestions:oW,markNotificationsAsSeen:iW,dismissNotification:wW,vote:aW,fetchPoll:lW,fetchFavoritedByUsers:cW,fetchRebloggedByUsers:uW,fetchEmojiReactions:dW,reactWithEmoji:fW,unreactWithEmoji:hW,reportUser:pW,updateNotificationSettings:RH,search2:gW,searchUsers:mW,fetchKnownDomains:vW,fetchDomainMutes:bW,muteDomain:yW,unmuteDomain:_W,chats:RW,getOrCreateChat:MW,chatMessages:NW,sendChatMessage:FW,readChat:DW,deleteChatMessage:UW,setReportState:jW,fetchUserInLists:zH,fetchAnnouncements:$W,dismissAnnouncement:kW,postAnnouncement:CW,editAnnouncement:TW,deleteAnnouncement:AW,fetchScrobbles:WW,adminFetchAnnouncements:SW,fetchInstanceDBConfig:BW,fetchInstanceConfigDescriptions:zW,fetchAvailableFrontends:qW,pushInstanceDBConfig:HW,installFrontend:VW,importEmojiFromFS:xW,reloadEmoji:KW,listEmojiPacks:XW,createEmojiPack:YW,deleteEmojiPack:GW,saveEmojiPackMetadata:eG,addNewEmojiFile:tG,updateEmojiFile:nG,deleteEmojiFile:sG,listRemoteEmojiPacks:JW,downloadRemoteEmojiPack:ZW,downloadRemoteEmojiPackZIP:QW,fetchBookmarkFolders:rG,createBookmarkFolder:oG,updateBookmarkFolder:iG,deleteBookmarkFolder:aG};/*! js-cookie v3.0.5 | MIT */function Af(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var s in n)e[s]=n[s]}return e}var lG={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function W0(e,t){function n(r,o,i){if(!(typeof document>"u")){i=Af({},t,i),typeof i.expires=="number"&&(i.expires=new Date(Date.now()+i.expires*864e5)),i.expires&&(i.expires=i.expires.toUTCString()),r=encodeURIComponent(r).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var a="";for(var c in i)i[c]&&(a+="; "+c,i[c]!==!0&&(a+="="+i[c].split(";")[0]));return document.cookie=r+"="+e.write(o,r)+a}}function s(r){if(!(typeof document>"u"||arguments.length&&!r)){for(var o=document.cookie?document.cookie.split("; "):[],i={},a=0;a<o.length;a++){var c=o[a].split("="),u=c.slice(1).join("=");try{var f=decodeURIComponent(c[0]);if(i[f]=e.read(u,f),r===f)break}catch{}}return r?i[r]:i}}return Object.create({set:n,get:s,remove:function(r,o){n(r,"",Af({},o,{expires:-1}))},withAttributes:function(r){return W0(this.converter,Af({},this.attributes,r))},withConverter:function(r){return W0(Af({},this.converter,r),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var cG=W0(lG,{path:"/"});const uG={name:"Alert",selector:".alert",validInnerComponents:["Text","Icon","Link","Border","ButtonUnstyled"],variants:{normal:".neutral",error:".error",warning:".warning",success:".success"},editor:{border:1,aspect:"3 / 1"},defaultRules:[{directives:{background:"--text",opacity:.5,blur:"9px"}},{parent:{component:"Alert"},component:"Border",directives:{textColor:"--parent"}},{variant:"error",directives:{background:"--cRed"}},{variant:"warning",directives:{background:"--cOrange"}},{variant:"success",directives:{background:"--cGreen"}}]},dG=Object.freeze(Object.defineProperty({__proto__:null,default:uG},Symbol.toStringTag,{value:"Module"})),fG={name:"Badge",selector:".badge",validInnerComponents:["Text","Icon"],variants:{notification:".-notification"},defaultRules:[{component:"Root",directives:{"--badgeNotification":"color | --cRed"}},{directives:{background:"--cGreen"}},{variant:"notification",directives:{background:"--cRed"}}]},hG=Object.freeze(Object.defineProperty({__proto__:null,default:fG},Symbol.toStringTag,{value:"Module"})),pG={name:"Border",selector:"/*border*/",virtual:!0,defaultRules:[{directives:{textColor:"$mod(--parent 10)",textAuto:"no-auto"}}]},mG=Object.freeze(Object.defineProperty({__proto__:null,default:pG},Symbol.toStringTag,{value:"Module"})),gG={name:"Button",selector:".button-default",states:{toggled:".toggled",focused:":focus-within",pressed:":active",hover:":is(:hover, :focus-visible):not(:disabled)",disabled:":disabled"},variants:{danger:".-danger",transparent:".-transparent"},editor:{aspect:"2 / 1"},validInnerComponents:["Text","Icon"],defaultRules:[{component:"Root",directives:{"--buttonDefaultHoverGlow":"shadow | 0 0 1 2 --text / 0.4","--buttonDefaultFocusGlow":"shadow | 0 0 1 2 --link / 0.5","--buttonDefaultShadow":"shadow | 0 0 2 #000000","--buttonDefaultBevel":"shadow | $borderSide(#FFFFFF top 0.2 1), $borderSide(#000000 bottom 0.2 1)","--buttonPressedBevel":"shadow | inset 0 0 4 #000000, $borderSide(#FFFFFF bottom 0.2 1), $borderSide(#000000 top 0.2 1)"}},{directives:{background:"--fg",shadow:["--buttonDefaultShadow","--buttonDefaultBevel"],roundness:3}},{variant:"danger",directives:{background:"--cRed"}},{variant:"transparent",directives:{opacity:.5}},{component:"Text",parent:{component:"Button",variant:"transparent"},directives:{textColor:"--text"}},{component:"Icon",parent:{component:"Button",variant:"transparent"},directives:{textColor:"--text"}},{state:["hover"],directives:{shadow:["--buttonDefaultHoverGlow","--buttonDefaultBevel"]}},{state:["focused"],directives:{shadow:["--buttonDefaultFocusGlow","--buttonDefaultBevel"]}},{state:["pressed"],directives:{shadow:["--buttonDefaultShadow","--buttonPressedBevel"]}},{state:["pressed","hover"],directives:{shadow:["--buttonPressedBevel","--buttonDefaultHoverGlow"]}},{state:["toggled"],directives:{background:"--accent,-24.2",shadow:["--buttonDefaultShadow","--buttonPressedBevel"]}},{state:["toggled","hover"],directives:{background:"--accent,-24.2",shadow:["--buttonDefaultHoverGlow","--buttonPressedBevel"]}},{state:["toggled","focused"],directives:{background:"--accent,-24.2",shadow:["--buttonDefaultHoverGlow","--buttonPressedBevel"]}},{state:["toggled","disabled"],directives:{background:"$blend(--accent 0.25 --parent)",shadow:["--buttonPressedBevel"]}},{state:["disabled"],directives:{background:"$blend(--inheritedBackground 0.25 --parent)",shadow:["--buttonDefaultBevel"]}},{component:"Text",parent:{component:"Button",state:["disabled"]},directives:{textOpacity:.25,textOpacityMode:"blend"}},{component:"Icon",parent:{component:"Button",state:["disabled"]},directives:{textOpacity:.25,textOpacityMode:"blend"}}]},vG=Object.freeze(Object.defineProperty({__proto__:null,default:gG},Symbol.toStringTag,{value:"Module"})),bG={name:"ButtonUnstyled",selector:".button-unstyled",notEditable:!0,transparent:!0,states:{toggled:".toggled",disabled:":disabled",hover:":is(:hover, :focus-visible):not(:disabled)",focused:":focus-within:not(:is(:focus-visible))"},validInnerComponents:["Text","Link","Icon","Badge"],defaultRules:[{directives:{shadow:[]}},{component:"Icon",parent:{component:"ButtonUnstyled",state:["hover"]},directives:{textColor:"--parent--text"}},{component:"Icon",parent:{component:"ButtonUnstyled",state:["toggled"]},directives:{textColor:"--parent--text"}},{component:"Icon",parent:{component:"ButtonUnstyled",state:["toggled","hover"]},directives:{textColor:"--parent--text"}},{component:"Icon",parent:{component:"ButtonUnstyled",state:["toggled","focused"]},directives:{textColor:"--parent--text"}},{component:"Icon",parent:{component:"ButtonUnstyled",state:["toggled","focused","hover"]},directives:{textColor:"--parent--text"}},{component:"Text",parent:{component:"ButtonUnstyled",state:["disabled"]},directives:{textOpacity:.25,textOpacityMode:"blend"}},{component:"Icon",parent:{component:"ButtonUnstyled",state:["disabled"]},directives:{textOpacity:.25,textOpacityMode:"blend"}}]},yG=Object.freeze(Object.defineProperty({__proto__:null,default:bG},Symbol.toStringTag,{value:"Module"})),_G={name:"Chat",selector:".chat-message-list",validInnerComponents:["Text","Link","Icon","Avatar","ChatMessage"],defaultRules:[{directives:{background:"--bg",blur:"5px"}}]},wG=Object.freeze(Object.defineProperty({__proto__:null,default:_G},Symbol.toStringTag,{value:"Module"})),SG={name:"ChatMessage",selector:".chat-message",variants:{outgoing:".outgoing"},validInnerComponents:["Text","Icon","Border","PollGraph"],defaultRules:[{directives:{background:"--bg, 2",backgroundNoCssColor:"yes"}},{variant:"outgoing",directives:{background:"--bg, 5"}}]},$G=Object.freeze(Object.defineProperty({__proto__:null,default:SG},Symbol.toStringTag,{value:"Module"})),kG={name:"FunText",selector:"/*fun-text*/",virtual:!0,variants:{greentext:".greentext",cyantext:".cyantext"},states:{faint:".faint"},defaultRules:[{directives:{textColor:"--text",textAuto:"preserve"}},{state:["faint"],directives:{textOpacity:.5}},{variant:"greentext",directives:{textColor:"--cGreen",textAuto:"preserve"}},{variant:"cyantext",directives:{textColor:"--cBlue",textAuto:"preserve"}}]},CG=Object.freeze(Object.defineProperty({__proto__:null,default:kG},Symbol.toStringTag,{value:"Module"})),TG={name:"Icon",virtual:!0,selector:".svg-inline--fa",defaultRules:[{component:"Icon",directives:{textColor:"$blend(--stack 0.5 --parent--text)",textAuto:"no-auto"}}]},AG=Object.freeze(Object.defineProperty({__proto__:null,default:TG},Symbol.toStringTag,{value:"Module"})),EG={name:"Input",selector:".input",states:{hover:":is(:hover, :focus-visible):not(.disabled)",focused:":focus-within",disabled:".disabled"},variants:{checkbox:".-checkbox",radio:".-radio"},validInnerComponents:["Text","Icon"],defaultRules:[{component:"Root",directives:{"--defaultInputBevel":"shadow | $borderSide(#FFFFFF bottom 0.2), $borderSide(#000000 top 0.2), inset 0 0 2 #000000 / 0.15, 1 0 1 1 --text / 0.15, -1 0 1 1 --text / 0.15","--defaultInputHoverGlow":"shadow | 0 0 4 --text / 0.5","--defaultInputFocusGlow":"shadow | 0 0 4 4 --link / 0.5"}},{variant:"checkbox",directives:{roundness:1}},{directives:{"--font":"generic | inherit",background:"--fg, -5",roundness:3,shadow:[{x:0,y:0,blur:2,spread:0,color:"#000000",alpha:1},"--defaultInputBevel"]}},{state:["hover"],directives:{shadow:["--defaultInputHoverGlow","--defaultInputBevel"]}},{state:["focused"],directives:{shadow:["--defaultInputFocusGlow","--defaultInputBevel"]}},{state:["focused","hover"],directives:{shadow:["--defaultInputFocusGlow","--defaultInputHoverGlow","--defaultInputBevel"]}},{state:["disabled"],directives:{background:"--parent"}},{component:"Text",parent:{component:"Input",state:["disabled"]},directives:{textOpacity:.25,textOpacityMode:"blend"}},{component:"Icon",parent:{component:"Input",state:["disabled"]},directives:{textOpacity:.25,textOpacityMode:"blend"}}]},IG=Object.freeze(Object.defineProperty({__proto__:null,default:EG},Symbol.toStringTag,{value:"Module"})),PG={name:"Link",selector:"a",virtual:!0,states:{faint:".faint"},defaultRules:[{component:"Link",directives:{textColor:"--link"}},{component:"Link",state:["faint"],directives:{textOpacity:.5,textOpacityMode:"fake"}}]},LG=Object.freeze(Object.defineProperty({__proto__:null,default:PG},Symbol.toStringTag,{value:"Module"})),OG={name:"MenuItem",selector:".menu-item",validInnerComponents:["Text","Icon","Border"],states:{hover:":is(:hover, :focus-visible, :has(:focus-visible)):not(.disabled)",active:".-active",disabled:".disabled"},defaultRules:[{directives:{background:"--bg",opacity:0}},{state:["hover"],directives:{background:"$mod(--bg 5)",opacity:1}},{state:["active"],directives:{background:"$mod(--bg 10)",opacity:1}},{state:["active","hover"],directives:{background:"$mod(--bg 15)",opacity:1}},{component:"Text",parent:{component:"MenuItem",state:["hover"]},directives:{textColor:"--link",textAuto:"no-preserve"}},{component:"Text",parent:{component:"MenuItem",state:["active"]},directives:{textColor:"--link",textAuto:"no-preserve"}},{component:"Icon",parent:{component:"MenuItem",state:["active"]},directives:{textColor:"--link",textAuto:"no-preserve"}},{component:"Icon",parent:{component:"MenuItem",state:["hover"]},directives:{textColor:"--link",textAuto:"no-preserve"}},{component:"Text",parent:{component:"MenuItem",state:["disabled"]},directives:{textOpacity:.25,textOpacityMode:"blend"}},{component:"Icon",parent:{component:"MenuItem",state:["disabled"]},directives:{textOpacity:.25,textOpacityMode:"blend"}}]},RG=Object.freeze(Object.defineProperty({__proto__:null,default:OG},Symbol.toStringTag,{value:"Module"})),MG={name:"MobileDrawer",selector:".mobile-drawer",validInnerComponents:["MenuItem"],defaultRules:[{directives:{background:"--bg",backgroundNoCssColor:"yes"}}]},NG=Object.freeze(Object.defineProperty({__proto__:null,default:MG},Symbol.toStringTag,{value:"Module"})),FG={name:"Modals",selector:[".modal-view","#modal",".shout-panel"],lazy:!0,notEditable:!0,validInnerComponents:["Panel"],defaultRules:[]},DG=Object.freeze(Object.defineProperty({__proto__:null,default:FG},Symbol.toStringTag,{value:"Module"})),UG={name:"Notification",selector:".Notification",validInnerComponents:["Text","Link","Icon","Border","Avatar","PollGraph"],defaultRules:[]},jG=Object.freeze(Object.defineProperty({__proto__:null,default:UG},Symbol.toStringTag,{value:"Module"})),BG={name:"Panel",selector:".panel",validInnerComponents:["Text","Link","Icon","Border","PanelHeader","Post","Notification","MenuItem"],validInnerComponentsLite:["Text","Link","Icon","Border","PanelHeader"],defaultRules:[{directives:{backgroundNoCssColor:"yes",background:"--bg",roundness:3,blur:"5px",shadow:[{x:0,y:0,blur:3,spread:0,color:"#000000",alpha:.5},{x:0,y:4,blur:6,spread:3,color:"#000000",alpha:.3}]}}]},zG=Object.freeze(Object.defineProperty({__proto__:null,default:BG},Symbol.toStringTag,{value:"Module"})),qG={name:"PanelHeader",selector:".panel-heading",validInnerComponents:["Text","Link","Icon","Button","ButtonUnstyled","Alert"],defaultRules:[{component:"PanelHeader",directives:{backgroundNoCssColor:"yes",background:"--fg",shadow:[{x:0,y:1,blur:3,spread:0,color:"#000000",alpha:.4},{x:0,y:1,blur:0,spread:0,color:"#ffffff",alpha:.2,inset:!0}]}}]},HG=Object.freeze(Object.defineProperty({__proto__:null,default:qG},Symbol.toStringTag,{value:"Module"})),VG={name:"PollGraph",selector:".result-fill",defaultRules:[{directives:{background:"--accent",opacity:.5}}]},WG=Object.freeze(Object.defineProperty({__proto__:null,default:VG},Symbol.toStringTag,{value:"Module"})),GG={name:"Popover",selector:".popover",lazy:!0,variants:{modal:".modal"},validInnerComponents:["MenuItem"],defaultRules:[{directives:{background:"--bg",blur:"10px",shadow:[{x:2,y:2,blur:3,spread:0,color:"#000000",alpha:.5}]}}]},KG=Object.freeze(Object.defineProperty({__proto__:null,default:GG},Symbol.toStringTag,{value:"Module"})),xG={name:"Root",selector:":root",notEditable:!0,defaultRules:[{directives:{"--bg":"color | #121a24","--fg":"color | #182230","--text":"color | #b9b9ba","--link":"color | #d8a070","--accent":"color | #d8a070","--cRed":"color | #FF0000","--cBlue":"color | #0095ff","--cGreen":"color | #0fa00f","--cOrange":"color | #ffa500","--font":"generic | sans-serif","--monoFont":"generic | monospace","--wallpaper":"color | --bg, -2","--selectionBackground":"color | --accent","--selectionText":"color | $textColor(--accent --text no-preserve)"}}]},YG=Object.freeze(Object.defineProperty({__proto__:null,default:xG},Symbol.toStringTag,{value:"Module"})),XG={name:"Scrollbar",selector:["::-webkit-scrollbar-button","::-webkit-scrollbar-thumb","::-webkit-resizer"],notEditable:!0,defaultRules:[{directives:{background:"--wallpaper"}}]},JG=Object.freeze(Object.defineProperty({__proto__:null,default:XG},Symbol.toStringTag,{value:"Module"})),Sh=(e,t)=>({x:0,y:e?1:-1,blur:0,spread:0,color:t?"#000000":"#FFFFFF",alpha:.2,inset:!0}),Rg=[Sh(!0,!1),Sh(!1,!0)],Ef=[Sh(!0,!0),Sh(!1,!1)],Mg={x:0,y:0,blur:2,spread:0,color:"#000000",alpha:1},Ng={x:0,y:0,blur:4,spread:0,color:"--text",alpha:1},ZG={name:"ScrollbarElement",selector:"::-webkit-scrollbar-button",notEditable:!0,states:{pressed:":active",hover:":is(:hover, :focus-visible, :has(:focus-visible)):not(:disabled)",disabled:":disabled"},validInnerComponents:["Text"],defaultRules:[{directives:{background:"--fg",shadow:[Mg,...Rg],roundness:3}},{state:["hover"],directives:{shadow:[Ng,...Rg]}},{state:["pressed"],directives:{shadow:[Mg,...Ef]}},{state:["hover","pressed"],directives:{shadow:[Ng,...Ef]}},{state:["toggled"],directives:{background:"--accent,-24.2",shadow:[Mg,...Ef]}},{state:["toggled","hover"],directives:{background:"--accent,-24.2",shadow:[Ng,...Ef]}},{state:["disabled"],directives:{background:"$blend(--inheritedBackground 0.25 --parent)",shadow:[...Rg]}},{component:"Text",parent:{component:"Button",state:["disabled"]},directives:{textOpacity:.25,textOpacityMode:"blend"}}]},QG=Object.freeze(Object.defineProperty({__proto__:null,default:ZG},Symbol.toStringTag,{value:"Module"})),eK={name:"Post",selector:".Status",states:{selected:".-focused"},validInnerComponents:["Text","Link","Icon","Border","Avatar","PollGraph"],defaultRules:[{directives:{background:"--bg"}},{state:["selected"],directives:{background:"--inheritedBackground, 10"}}]},tK=Object.freeze(Object.defineProperty({__proto__:null,default:eK},Symbol.toStringTag,{value:"Module"})),nK={name:"Tab",selector:".tab",states:{active:".active",hover:":is(:hover, :focus-visible, :has(:focus-visible)):not(.disabled)",disabled:".disabled"},validInnerComponents:["Text","Icon"],defaultRules:[{directives:{background:"--fg",shadow:["--buttonDefaultShadow","--buttonDefaultBevel"],roundness:3}},{state:["hover"],directives:{shadow:["--buttonDefaultHoverGlow","--buttonDefaultBevel"]}},{state:["active"],directives:{opacity:0}},{state:["hover","active"],directives:{shadow:["--buttonDefaultShadow","--buttonDefaultBevel"]}},{state:["disabled"],directives:{background:"$blend(--inheritedBackground 0.25 --parent)",shadow:["--buttonDefaultBevel"]}},{component:"Text",parent:{component:"Tab",state:["disabled"]},directives:{textOpacity:.25,textOpacityMode:"blend"}},{component:"Icon",parent:{component:"Tab",state:["active"]},directives:{textColor:"--text"}},{component:"Icon",parent:{component:"Tab",state:["active","hover"]},directives:{textColor:"--text"}}]},sK=Object.freeze(Object.defineProperty({__proto__:null,default:nK},Symbol.toStringTag,{value:"Module"})),rK={name:"Text",selector:"/*text*/",virtual:!0,states:{faint:".faint"},defaultRules:[{directives:{textColor:"--text",textAuto:"no-preserve"}},{state:["faint"],directives:{textOpacity:.5}}]},oK=Object.freeze(Object.defineProperty({__proto__:null,default:rK},Symbol.toStringTag,{value:"Module"})),iK={name:"TopBar",selector:"nav",validInnerComponents:["Link","Text","Icon","Button","ButtonUnstyled","Input","Badge"],defaultRules:[{directives:{background:"--fg",shadow:[{x:0,y:1,blur:4,spread:0,color:"#000000",alpha:.4},{x:0,y:2,blur:7,spread:0,color:"#000000",alpha:.3}]}},{component:"Link",parent:{component:"TopBar"},directives:{textColor:"--text"}},{component:"Icon",parent:{component:"ButtonUnstyled",parent:{component:"TopBar"}},directives:{textColor:"--parent--text"}}]},aK=Object.freeze(Object.defineProperty({__proto__:null,default:iK},Symbol.toStringTag,{value:"Module"})),lK={name:"Underlay",selector:"#content",outOfTreeSelector:".underlay",validInnerComponents:["Panel"],defaultRules:[{directives:{background:"#000000",opacity:.2}}]},cK=Object.freeze(Object.defineProperty({__proto__:null,default:lK},Symbol.toStringTag,{value:"Module"})),uK={name:"Avatar",selector:".Avatar",variants:{compact:".-compact"},defaultRules:[{directives:{roundness:3,shadow:[{x:0,y:1,blur:4,spread:0,color:"#000000",alpha:.2}]}}]},dK=Object.freeze(Object.defineProperty({__proto__:null,default:uK},Symbol.toStringTag,{value:"Module"})),fK={name:"UserCard",selector:".user-card",notEditable:!0,defaultRules:[{directives:{"--profileTint":"color | $alpha(--background 1)"}}]},hK=Object.freeze(Object.defineProperty({__proto__:null,default:fK},Symbol.toStringTag,{value:"Module"})),pK={A:{X:1.0985*100,Y:1*100,Z:.35585*100},B:{X:.99072*100,Y:1*100,Z:.85223*100},C:{X:.98074*100,Y:1*100,Z:1.18232*100},D50:{X:.96422*100,Y:1*100,Z:.82521*100},D55:{X:.95682*100,Y:1*100,Z:.92149*100},D65:{X:.95047*100,Y:1*100,Z:1.08883*100},D75:{X:.94972*100,Y:1*100,Z:1.22638*100},E:{X:1*100,Y:1*100,Z:1*100},F2:{X:.99186*100,Y:1*100,Z:.67393*100},F7:{X:.95041*100,Y:1*100,Z:1.08747*100},F11:{X:1.00962*100,Y:1*100,Z:.6435*100}};function P_(e){return pK[e]}const mK={BRADFORD:[[.8951,.2664,-.1614],[-.7502,1.7135,.0367],[.0389,-.0685,1.0296]],INVERSE_BRADFORD:[[.9869929,-.1470543,.1599627],[.4323053,.5183603,.0492912],[-.0085287,.0400428,.9684867]],SRGB_XYZ:[[.4124,.3576,.1805],[.2126,.7152,.0722],[.0193,.1192,.9505]],INVERSE_SRGB_XYZ:[[3.2406,-1.5372,-.4986],[-.9689,1.8758,.0415],[.0557,-.204,1.057]]};function zl(e){return mK[e]}const fr=function(e,t){const n=new Set(Object.keys(e));return t.every(s=>n.has(s))},Fg=(e,t)=>typeof e=="string"&&e.slice(0,t.length)===t,L_={hex:e=>Fg(e,"#"),rgb:e=>fr(e,["r","g","b"]),cssrgb:e=>Fg(e,"rgb("),hsl:e=>fr(e,["h","s","l"]),csshsl:e=>Fg(e,"hsl("),hsv:e=>fr(e,["h","s","v"]),cmyk:e=>fr(e,["c","m","y","k"]),yiq:e=>fr(e,["y","i","q"]),XYZ:e=>fr(e,["X","Y","Z"]),xyY:e=>fr(e,["x","y","Y"]),lms:e=>fr(e,["rho","gamma","beta"]),cielab:e=>fr(e,["L","a","b"]),cieluv:e=>fr(e,["L","u","v"]),cielch:e=>fr(e,["L","C","h"]),hsluv:e=>fr(e,["hu","s","l"])},gK=Object.keys(L_);function vK(e){const t=gK.find(n=>L_[n](e));if(!t)throw new Error("No type found for color "+e);return t}const VE=.008856,G0=903.3,Dg=P_("D65"),ok=e=>Math.pow(e,3)>VE?Math.pow(e,3):(116*e-16)/G0,bK={XYZ:e=>{const t=(e.L+16)/116,n=e.a/500+t,s=t-e.b/200,r=ok(n),o=ok(s),i=e.L>G0*VE?Math.pow(t,3):e.L/G0;return{X:r*Dg.X,Y:i*Dg.Y,Z:o*Dg.Z}}};function K0(e){return e*(Math.PI/180)}const yK={cieluv:e=>{const t=K0(e.h),n=e.C*Math.cos(t),s=e.C*Math.sin(t);return{L:e.L,u:n,v:s}},hsluv:e=>{if(e.L>99.9999999)return{hu:e.h,s:0,l:100};if(e.L<1e-8)return{hu:e.h,s:0,l:0};const t=.008856,n=903.3,s=(e.L+16)/1560896,r=s>t?s:e.L/n,o=zl("INVERSE_SRGB_XYZ");let i=[];for(let f=0;f<3;f++){let h=o[f][0],v=o[f][1],y=o[f][2];for(let S=0;S<2;S++){let k=(284517*h-94839*y)*r,I=(838422*y+769860*v+731718*h)*e.L*r-769860*S*e.L,C=(632260*y-126452*v)*r+126452*S;i.push({m:k/C,b:I/C})}}var a=Number.MAX_VALUE;let c=K0(e.h);i.forEach(f=>{let h=f.b/(Math.sin(c)-f.m*Math.cos(c));h>=0&&(a=Math.min(a,h))});let u=a;return{hu:e.h,s:e.C/u*100,l:e.L}}};function _K(e){return e*(180/Math.PI)}const wK={XYZ:e=>{const s=P_("D65"),r=S=>S.X*4/(S.X+15*S.Y+3*S.Z),o=S=>S.Y*9/(S.X+15*S.Y+3*S.Z),i=r(s),a=o(s),c=1/3*(52*e.L/(e.u+13*e.L*i)-1),u=e.L>903.3*.008856?Math.pow((e.L+16)/116,3):e.L/903.3,f=-5*u,v=(u*(39*e.L/(e.v+13*e.L*a)-5)-f)/(c- -1/3),y=v*c+f;return{X:v*100,Y:u*100,Z:y*100}},cielch:e=>{const t=Math.sqrt(Math.pow(e.u,2)+Math.pow(e.v,2));let n=Math.atan2(e.v,e.u);return n<0&&(n+=2*Math.PI),n=_K(n),{L:e.L,C:t,h:n}}},ik=e=>{var t=255*(1-e.c)*(1-e.k),n=255*(1-e.m)*(1-e.k),s=255*(1-e.y)*(1-e.k);return{r:t,g:n,b:s}},SK={rgb:ik,cssrgb:e=>{const{r:t,g:n,b:s}=ik(e);return"rgb("+Math.round(t)+","+Math.round(n)+","+Math.round(s)+")"}},$K={hsl:e=>{const t=e.replace(/(hsl\(|\)|%|[\s]*)/g,"").split(",").map(n=>parseInt(n,10));return{h:t[0],s:t[1],l:t[2]}}},kK={rgb:e=>{const t=e.replace(/((rgb\(|\))|[\s]*)/g,"").split(",").map(n=>parseInt(n,10));return{r:t[0],g:t[1],b:t[2]}}},CK={rgb:e=>{const t=e.replace("#","").match(/.{2}/g).map(n=>parseInt(n,16));return{r:t[0],g:t[1],b:t[2]}}};function TK(e,t){return(e%t+t)%t}const AK={rgb:e=>{if(e.s===0){var t=e.l/100*255;return{r:t,g:t,b:t}}else{var n,s,r;e.l>=50?n=e.l/100+e.s/100-e.l/100*(e.s/100):n=e.l/100*(1+e.s/100),s=2*(e.l/100)-n,r=e.h/360;var o=(r+.333)%1,i=r,a=TK(r-.333,1),c,u,f;return 6*o<1?c=s+(n-s)*6*o:2*o<1?c=n:3*o<2?c=s+(n-s)*((.666-o)*6):c=s,6*i<1?u=s+(n-s)*6*i:2*i<1?u=n:3*i<2?u=s+(n-s)*((.666-i)*6):u=s,6*a<1?f=s+(n-s)*6*a:2*a<1?f=n:3*a<2?f=s+(n-s)*((.666-a)*6):f=s,c<0&&(c=0),u<0&&(u=0),f<0&&(f=0),{r:c*255,g:u*255,b:f*255}}},csshsl:e=>"hsl("+Math.round(e.h)+","+Math.round(e.s)+"%,"+Math.round(e.l)+"%)",hsv:e=>{const t=Object.assign({},e,{s:e.s/100,l:e.l/100});var n=t.s*(t.l<.5?t.l:1-t.l),s=t.h,r=2*n/(t.l+n),o=t.l+n;return{h:s,s:r*100,v:o*100}}},EK={cielch:e=>{if(e.L>99.9999999)return{L:100,C:0,h:e.hu};if(e.L<1e-8)return{L:0,C:0,h:e.hu};const t=.008856,n=903.3,s=(e.l+16)/1560896,r=s>t?s:e.l/n,o=zl("INVERSE_SRGB_XYZ");let i=[];for(let f=0;f<3;f++){let h=o[f][0],v=o[f][1],y=o[f][2];for(let S=0;S<2;S++){let k=(284517*h-94839*y)*r,I=(838422*y+769860*v+731718*h)*e.l*r-769860*S*e.l,C=(632260*y-126452*v)*r+126452*S;i.push({m:k/C,b:I/C})}}var a=Number.MAX_VALUE;let c=K0(e.hu);i.forEach(f=>{let h=f.b/(Math.sin(c)-f.m*Math.cos(c));h>=0&&(a=Math.min(a,h))});let u=a;return{L:e.l,C:u/100*e.s,h:e.hu}}},IK={hsl:e=>{const t=Object.assign({},e,{h:e.h/360,s:e.s/100,v:e.v/100});let n=t.h,s;(2-t.s)*t.v<1?s=t.s*t.v/((2-t.s)*t.v):s=t.s*t.v/(2-(2-t.s)*t.v);let r=(2-t.s)*t.v/2;return{h:n*360,s:s*100,l:r*100}}},PK={XYZ:e=>{const t=[e.rho,e.gamma,e.beta],s=zl("INVERSE_BRADFORD").map(r=>t.reduce((o,i,a)=>r[a]*i+o,0));return{X:s[0]*100,Y:s[1]*100,Z:s[2]*100}}};function ql(e,t){return e<t[0]?e=t[0]:e>t[1]&&(e=t[1]),e}const Ug=e=>ql(e,[0,255]);function LK(e){return{r:Ug(e.r),g:Ug(e.g),b:Ug(e.b)}}function ak(e){if(Math.cbrt)return Math.cbrt(e);var t=Math.pow(Math.abs(e),.3333333333333333);return e<0?-t:t}const lk=.008856,ck=903.3,Sl=P_("D65"),WE={rgb:e=>{let t=[e.X,e.Y,e.Z].map(a=>a/100),s=zl("INVERSE_SRGB_XYZ").map(a=>t.reduce((c,u,f)=>a[f]*u+c,0)),[r,o,i]=s.map(a=>a<=.0031308?a*12.92:1.055*Math.pow(a,1/2.4)-.055).map(a=>a*255);return LK({r,g:o,b:i})},lms:e=>{let t=[e.X,e.Y,e.Z].map(r=>r/100),s=zl("BRADFORD").map(r=>t.reduce((o,i,a)=>r[a]*i+o,0));return{rho:s[0],gamma:s[1],beta:s[2]}},cielab:e=>{const t=e.X/Sl.X,n=e.Y/Sl.Y,s=e.Z/Sl.Z,r=c=>c>lk?ak(c):(ck*c+16)/116,o=r(t),i=r(n),a=r(s);return{L:116*i-16,a:500*(o-i),b:200*(i-a)}},cieluv:e=>{const t=e.Y/Sl.Y,n=t>lk?116*ak(t)-16:ck*t,s=a=>a.X*4/(a.X+15*a.Y+3*a.Z),r=a=>a.Y*9/(a.X+15*a.Y+3*a.Z),o=13*n*(s(e)-s(Sl)),i=13*n*(r(e)-r(Sl));return{L:n,u:o,v:i}},xyY:e=>{const t=e.X/(e.X+e.Y+e.Z),n=e.Y/(e.X+e.Y+e.Z);return{x:t,y:n,Y:e.Y}}},{lms:OK,cielab:RK,cieluv:MK,xyY:NK}=WE,uk=e=>{var t=e.r/255,n=e.g/255,s=e.b/255,r=[t,n,s].sort(),o=(r[0]+r[2])/2*100,i,a;return r[0]===r[2]?(i=0,a=0):(o>=50?i=(r[2]-r[0])/(2-r[2]-r[0])*100:i=(r[2]-r[0])/(r[2]+r[0])*100,r[2]===t?a=(n-s)/(r[2]-r[0])*60:r[2]===n?a=(2+(s-t)/(r[2]-r[0]))*60:a=(4+(t-n)/(r[2]-r[0]))*60,a<0?a+=360:a>360&&(a=a%360)),{h:a,s:i,l:o}},FK=e=>MK(au(e)),au=e=>{let n=[e.r,e.g,e.b].map(a=>a/255).map(a=>a<=.04045?a/12.92:Math.pow((a+.055)/1.055,2.4)),s=zl("SRGB_XYZ"),[r,o,i]=s.map(a=>n.reduce((c,u,f)=>a[f]*u+c,0)).map(a=>a*100);return{X:r,Y:o,Z:i}},DK={hex:e=>{var t=Math.round(e.r).toString(16);t.length===1&&(t="0"+t);var n=Math.round(e.g).toString(16);n.length===1&&(n="0"+n);var s=Math.round(e.b).toString(16);return s.length===1&&(s="0"+s),"#"+t+n+s},cssrgb:e=>"rgb("+Math.round(e.r)+","+Math.round(e.g)+","+Math.round(e.b)+")",hsl:uk,csshsl:e=>{var{h:t,s:n,l:s}=uk(e);return"hsl("+Math.round(t)+","+Math.round(n)+"%,"+Math.round(s)+"%)"},cmyk:e=>{var t=e.r/255,n=e.g/255,s=e.b/255,r=1-Math.max(t,n,s);return r!==1?{c:(1-t-r)/(1-r),m:(1-n-r)/(1-r),y:(1-s-r)/(1-r),k:r}:{c:0,m:0,y:0,k:r}},yiq:e=>{var t=.299*(e.r/255)+.587*(e.g/255)+.114*(e.b/255),n=.596*(e.r/255)+-.274*(e.g/255)+-.322*(e.b/255),s=.211*(e.r/255)+-.523*(e.g/255)+.312*(e.b/255);return n=ql(n,[-.5957,.5957]),s=ql(s,[-.5226,.5226]),{y:t,i:n,q:s}},XYZ:au,lms:e=>OK(au(e)),cielab:e=>RK(au(e)),cieluv:FK,xyY:e=>NK(au(e))},UK={XYZ:e=>{const{x:t,y:n,Y:s}=e,r=s/n*t,o=s/n*(1-t-n);return{X:r,Y:s,Z:o}}},jg=e=>ql(e,[0,255]),jK={rgb:e=>{const t=ql(e.i,[-.5957,.5957]),n=ql(e.q,[-.5226,.5226]),s=255*jg(e.y+.956*t+.621*n),r=255*jg(e.y+-.272*t+-.647*n),o=255*jg(e.y+-1.106*t+-1.703*n);return{r:s,g:r,b:o}}},GE=Object.freeze(Object.defineProperty({__proto__:null,XYZ:WE,cielab:bK,cielch:yK,cieluv:wK,cmyk:SK,csshsl:$K,cssrgb:kK,hex:CK,hsl:AK,hsluv:EK,hsv:IK,lms:PK,rgb:DK,xyY:UK,yiq:jK},Symbol.toStringTag,{value:"Module"})),BK={rgb:{default:"XYZ",csshsl:"hsl",hsv:"hsl"},hex:"rgb",hsl:"rgb",hsv:"hsl",csshsl:"hsl",cssrgb:"rgb",cmyk:"rgb",XYZ:{default:"rgb",cielch:"cieluv",hsluv:"cieluv"},xyY:"XYZ",lms:"XYZ",cieluv:{default:"XYZ",hsluv:"cielch"},cielch:"cieluv",cielab:"XYZ",yiq:"rgb",hsluv:"cielch"};function Hl(e,t,n){if(t===void 0)throw new Error("No value provided");const s=n||vK(t);if(s===e)return t;if(GE[s][e])return dk(s,e,t);const r=BK[s],o=typeof r=="string"?r:r[e]||r.default,i=dk(s,o,t);return Hl(e,i,o)}const dk=(e,t,n)=>GE[e][t](n),zK=Object.keys(L_);function $t(e){const t={};return zK.forEach(n=>{Object.defineProperty(t,n,{get:()=>qK(n,e),enumerable:!0})}),t}const qK=(e,t)=>Array.isArray(t)?t.map(n=>Hl(e,n)):Hl(e,t);function Ls(e,t){var n=Hl("hsl",t);return n.l+=e,n.l<0?n.l=0:n.l>100&&(n.l=100),$t(n)}function KE(e){var t=Hl("rgb",e),n=(t.r*299+t.g*587+t.b*114)/1e3;return n>=128?t={r:0,g:0,b:0}:t={r:255,g:255,b:255},$t(t)}function xE(e){var t=Hl("hsl",e);return t.l=100-t.l,$t(t)}var Bg,fk;function HK(){if(fk)return Bg;fk=1;function e(i,a){for(;i.length<a;)i="0"+i;return i}function t(i,a){var c,u,f;if(a.length===0)return i;for(c=0,f=a.length;c<f;c++)u=a.charCodeAt(c),i=(i<<5)-i+u,i|=0;return i<0?i*-2:i}function n(i,a,c){return Object.keys(a).sort().reduce(u,i);function u(f,h){return s(f,a[h],h,c)}}function s(i,a,c,u){var f=t(t(t(i,c),r(a)),typeof a);if(a===null)return t(f,"null");if(a===void 0)return t(f,"undefined");if(typeof a=="object"||typeof a=="function"){if(u.indexOf(a)!==-1)return t(f,"[Circular]"+c);u.push(a);var h=n(f,a,u);if(!("valueOf"in a)||typeof a.valueOf!="function")return h;try{return t(h,String(a.valueOf()))}catch(v){return t(h,"[valueOf exception]"+(v.stack||v.message))}}return t(f,a.toString())}function r(i){return Object.prototype.toString.call(i)}function o(i){return e(s(0,i,"",[]).toString(16),8)}return Bg=o,Bg}var VK=HK();const YE=bs(VK),$h=(e,t,n)=>{if(!(e===null||typeof e>"u"))return e[0]==="#"||e==="transparent"?e:(typeof e=="object"&&({r:e,g:t,b:n}=e),[e,t,n]=[e,t,n].map(s=>(s=Math.ceil(s),s=s<0?0:s,s=s>255?255:s,s)),`#${((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1)}`)},zg=e=>{const t=e/255;return t<.03928?t/12.92:Math.pow((t+.055)/1.055,2.4)},Ra=e=>{const t=zg(e.r),n=zg(e.g),s=zg(e.b);return .2126*t+.7152*n+.0722*s},lu=(e,t)=>{const n=Ra(e),s=Ra(t),[r,o]=n>s?[n,s]:[s,n];return(r+.05)/(o+.05)},$Ee=(e,t,n)=>lu(x0(n,t),e),WK=(e,t,n)=>{const s=(r,o)=>{switch(n){case"+":return Math.min(r+o,255);case"-":return Math.max(r-o,0);default:return r}};return{r:s(e.r,t.r),g:s(e.g,t.g),b:s(e.b,t.b)}},Fo=(e,t,n)=>t===1||typeof t>"u"?e:{r:e.r*t+n.r*(1-t),g:e.g*t+n.g*(1-t),b:e.b*t+n.b*(1-t)},x0=(e,t)=>t.reduce((n,[s,r])=>Fo(s,r,n),e),_p=e=>{const t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null},ya=(e,t)=>({r:(e.r+t.r)/2,g:(e.g+t.g)/2,b:(e.b+t.b)/2}),Vl=function(e){const t={r:0,g:0,b:0,a:1};return e!==null?(e.r!==void 0&&!isNaN(e.r)&&(t.r=e.r),e.g!==void 0&&!isNaN(e.g)&&(t.g=e.g),e.b!==void 0&&!isNaN(e.b)&&(t.b=e.b),e.a!==void 0&&!isNaN(e.a)&&(t.a=e.a)):(t.r=255,t.g=255,t.b=255),`rgba(${Math.floor(t.r)}, ${Math.floor(t.g)}, ${Math.floor(t.b)}, ${t.a})`},O_=function(e,t,n){const s=lu(e,t);if(!n&&s<4.5)return KE(e).rgb;const r=$t(t).hex,o=xE(r).hex,i=lu(e,$t(o).rgb);let a;i>s?a=o:a=r;let c=lu(e,t);const u=$t($h(a)).hsl,f=u.l>=50?1:-1,h=1;for(;c<4.5&&u.l>20&&u.l<80;)u.l+=f*h,u.l=Math.min(100,Math.max(0,u.l)),c=lu(e,$t(u).rgb);const v=typeof t.a<"u"?{a:t.a}:{};return Object.assign($t(u).rgb,v)},XE=(e,t)=>{let n={};if(typeof e=="object")n=e;else if(typeof e=="string")if(e.startsWith("#"))n=_p(e);else return e;return Vl({...n,a:t})},JE=(e,t,{findColor:n,findShadow:s},{dynamicVars:r,staticVars:o})=>{const{funcName:i,argsString:a}=/\$(?<funcName>\w+)\((?<argsString>[#a-zA-Z0-9-+,.'"\s]*)\)/.exec(e).groups,c=a.split(/ /g).map(f=>f.trim()),u=t[i];if(c.length<u.argsNeeded)throw new Error(`$${i} requires at least ${u.argsNeeded} arguments, but ${c.length} were provided`);return u.exec(c,{findColor:n,findShadow:s},{dynamicVars:r,staticVars:o})},GK={alpha:{argsNeeded:2,documentation:"Changes alpha value of the color only to be used for CSS variables",args:["color: source color used","amount: alpha value"],exec:(e,{findColor:t},{dynamicVars:n,staticVars:s})=>{const[r,o]=e,i=$t(t(r,{dynamicVars:n,staticVars:s})).rgb,a=Number(o);return{...i,a}}},brightness:{argsNeeded:2,document:"Changes brightness/lightness of color in HSL colorspace",args:["color: source color used","amount: lightness value"],exec:(e,{findColor:t},{dynamicVars:n,staticVars:s})=>{const[r,o]=e,i=$t(t(r,{dynamicVars:n,staticVars:s})).hsl;return i.l+=Number(o),{...$t(i).rgb}}},textColor:{argsNeeded:2,documentation:"Get text color with adequate contrast for given background and intended text color. Same function is used internally",args:["background: color of backdrop where text will be shown","foreground: intended text color",`[preserve]: (optional) intended color preservation:
'preserve' - try to preserve the color
'no-preserve' - if can't get adequate color - fall back to black or white
'no-auto' - don't do anything (useless as a color function)`],exec:(e,{findColor:t},{dynamicVars:n,staticVars:s})=>{const[r,o,i="preserve"]=e,a=$t(t(r,{dynamicVars:n,staticVars:s})).rgb,c=$t(t(o,{dynamicVars:n,staticVars:s})).rgb;return O_(a,c,i==="preserve")}},blend:{argsNeeded:3,documentation:"Alpha blending between two colors",args:["background: bottom layer color","amount: opacity of top layer","foreground: upper layer color"],exec:(e,{findColor:t},{dynamicVars:n,staticVars:s})=>{const[r,o,i]=e,a=$t(t(r,{dynamicVars:n,staticVars:s})).rgb,c=$t(t(i,{dynamicVars:n,staticVars:s})).rgb,u=Number(o);return Fo(a,u,c)}},shift:{argsNeeded:2,documentation:"Arithmetic blend between two colors",args:["origin: base color","value: shift value","operator: math operator to use (+ or -)"],exec:(e,{findColor:t},{dynamicVars:n,staticVars:s})=>{const[r,o,i]=e,a=$t(t(r,{dynamicVars:n,staticVars:s})).rgb,c=$t(t(o,{dynamicVars:n,staticVars:s})).rgb;return WK(a,c,i)}},boost:{argsNeeded:2,documentation:"If given color is dark makes it darker, if color is light - makes it lighter",args:["color: source color","amount: how much darken/brighten the color"],exec:(e,{findColor:t},{dynamicVars:n,staticVars:s})=>{const[r,o]=e,i=$t(t(r,{dynamicVars:n,staticVars:s})).rgb,a=Number(o),u=Ra(i)<.5?-1:1;return Ls(a*u,i).rgb}},mod:{argsNeeded:2,documentation:"Old function that increases or decreases brightness depending if background color is dark or light. Advised against using it as it might give unexpected results.",args:["color: source color","amount: how much darken/brighten the color"],exec:(e,{findColor:t},{dynamicVars:n,staticVars:s})=>{const[r,o]=e,i=$t(t(r,{dynamicVars:n,staticVars:s})).rgb,a=Number(o),c=n.lowerLevelBackground??i,f=Ra($t(c).rgb)<.5?1:-1;return Ls(a*f,i).rgb}}},KK={borderSide:{argsNeeded:3,documentation:"Simulate a border on a side with a shadow, best works on inset border",args:["color: border color",'side: string indicating on which side border should be, takes either one word or two words joined by dash (i.e. "left" or "bottom-right")',"width: border width (thickness)","[alpha]: (Optional) border opacity, defaults to 1 (fully opaque)","[inset]: (Optional) whether border should be on the inside or outside, defaults to inside"],exec:e=>{const[t,n,s="1",r="1",o="inset"]=e,i=Number(r),a=o==="inset",c={x:0,y:0,blur:0,spread:0,color:t,alpha:Number(s),inset:a};return n.split("-").forEach(u=>{switch(u){case"left":c.x=i*(o?1:-1);break;case"right":c.x=-1*i*(o?1:-1);break;case"top":c.y=i*(o?1:-1);break;case"bottom":c.y=-1*i*(o?1:-1);break}}),[c]}}},kh=e=>{const t=[];let n=e;for(;n;)t.push(n),n=n.parent;return t},xK=e=>{const t=[e.map(n=>[n])];for(let n=2;n<=e.length;n++){const o=t[t.length-1].map(c=>{const u=new Set;return c.forEach(h=>u.add(h)),e.filter(h=>!u.has(h)).map(h=>[...c,h])}).reduce((c,u)=>[...c,...u],[]),i=new Set,a=o.map(Z.sortBy).filter(c=>i.has(c.join())?!1:(i.add(c.join()),!0));t.push(a)}return t.reduce((n,s)=>[...n,...s],[])},ZE=e=>(t,n,s,r)=>{const o=!!r;if(!t&&!o)return null;const i=e[t.component],{states:a={},variants:c={},outOfTreeSelector:u}=i,f=(A=[],R=[])=>A.length===0?R.map(B=>[B]):R.length===0?A.map(B=>[B]):A.map(B=>R.map(N=>[B,N])).flat();let h=Array.isArray(i.selector)?i.selector:[i.selector];(n||s)&&(h=[h[0]]),h=h.map(A=>A===":root"?"":o?A:u&&!n?u:A);const v=t.variant||"normal";let y=null;v!=="normal"?y=c[v]:y=(c==null?void 0:c.normal)??"",y=Array.isArray(y)?y:[y],(n||s)&&(y=[y[0]]);const I=(t.state||[]).filter(A=>A!=="normal").map(A=>{const R=a[A]||"";let B=Array.isArray(R)?R:[R];return(n||s)&&(B=[B[0]]),B.sort(N=>N.startsWith(":")?1:/^[a-z]/.exec(N)?-1:0).join(""),B}).reduce((A,R)=>f(A,R).map(B=>B.join("")),[]),C=f(h,y).map(A=>A.join("")),$=f(C,I).map(A=>A.join("")),P=f($,r).map(A=>A.join(" "));return t.parent?ZE(e)(t.parent,n,s,P):P.join(", ").trim()},hk=(e,t,n)=>{if(e.component!==t.component||(t.variant!=="normal"||n)&&e.variant!==t.variant)return!1;if(t.state.length>1||n){const s=new Set(t.state),r=new Set(e.state);if(!([...r].every(i=>s.has(i))&&[...s].every(i=>r.has(i))))return!1}return!0},qg=(e,t)=>n=>{if(e.parent===null&&n.parent||!hk(e,n,t))return!1;if(e.parent!==void 0&&e.parent!==null){if(!n.parent)return!0;const s=kh(e),r=kh(n);if(s.length<r.length)return!1;for(let o=0;o<s.length;o++){const i=s[o],a=r[o];if(!a)return!0;if(!hk(i,a,t))return!1}}return!0},pk=e=>{e.variant=e.variant??"normal",e.state=[...new Set(["normal",...e.state||[]])]},QE=e=>{const t=["_full","inset","x","y","blur","spread","color","alpha","name"],n=["^","(?:(inset)\\s+)?","(?:(-?[0-9]+(?:\\.[0-9]+)?)\\s+)","(?:(-?[0-9]+(?:\\.[0-9]+)?)\\s+)","(?:(-?[0-9]+(?:\\.[0-9]+)?)\\s+)?","(?:(-?[0-9]+(?:\\.[0-9]+)?)\\s+)?","(#[0-9a-f]{6}|--[a-z0-9\\-_]+|\\$[a-z0-9\\-()_ ]+)","(?:\\s+\\/\\s+([0-9]+(?:\\.[0-9]+)?)\\s*)?","(?:\\s+#(\\w+)\\s*)?","$"].join(""),r=new RegExp(n,"gis").exec(e);if(r==null){if(e.startsWith("$")||e.startsWith("--"))return e;throw new Error(`Invalid shadow definition: '${e}'`)}else{const o=new Set(["x","y","blur","spread","alpha"]),{x:i,y:a,blur:c,spread:u,alpha:f,inset:h,color:v,name:y}=Object.fromEntries(t.map((S,k)=>{if(o.has(S)){const I=Number(r[k]);return Number.isNaN(I)?S==="alpha"?[S,1]:[S,0]:[S,I]}else return S==="inset"?[S,!!r[k]]:[S,r[k]]}).filter(([,S])=>S!==!1).slice(1));return{x:i,y:a,blur:c,spread:u,color:v,alpha:f,inset:h,name:y}}},YK=e=>{const t=[{selector:null,content:[]}];let n="";const s=()=>{let o=t[t.length-1];return o==null&&(o={selector:null,content:[]}),o},r=o=>{n!==""&&(o==="content"?s().content.push(n.trim()):s().selector=n.trim(),n="")};for(let o=0;o<e.length;o++){const i=e[o];i===";"?r("content"):i==="{"?r("header"):i==="}"?(r("content"),t.push({selector:null,content:[]}),n=""):n+=i}return t},XK=e=>{const n=YK(e).filter(s=>s.selector!=null).map(s=>{const{selector:r,content:o}=s;let i=0;return r.split(/,/g).map(u=>{const f={component:""};let h=null;return u.split(/ /g).reverse().forEach((v,y,S)=>{const k={component:""};let I="component";for(let C=0;C<v.length;C++){const $=v[C];switch($){case".":{I="variant",k.variant="";break}case":":{I="state",k.state=k.state||[],i++;break}default:I==="state"?(k.state[i-1]==null&&k.state.push(""),k.state[i-1]+=$):k[I]+=$}}h!==null?(h.parent={...k},h=h.parent):(Object.keys(k).forEach(C=>{f[C]=k[C]}),y!==S.length-1&&(f.parent={component:""}),h=f)}),f.directives=Object.fromEntries(o.map(v=>{const[y,S]=v.split(":");let k=(S||"").trim();return y==="shadow"&&(k==="none"?k=[]:k=S.split(",").map(I=>QE(I.trim()))),Number.isNaN(Number(S))||(k=Number(S)),[y,k]})),f})});return Z.flattenDeep(n)},Hn={Root:null,Text:null,FunText:null,Link:null,Icon:null,Border:null,PanelHeader:null,Panel:null,Chat:null,ChatMessage:null,Button:null},Y0=(e,{dynamicVars:t,staticVars:n})=>(e||[]).map(s=>{let r;if(typeof s=="string")if(s.startsWith("$"))r=JE(s,KK,{findColor:Pa,findShadow:Y0},{dynamicVars:t,staticVars:n});else if(s.startsWith("--")){const i=s.substring(2);return Y0(n[i],{dynamicVars:t,staticVars:n})}else r=QE(s);else r=s;return(Array.isArray(r)?r:[r]).map(i=>({...i,color:Pa(i.color,{dynamicVars:t,staticVars:n})}))}),Pa=(e,{dynamicVars:t,staticVars:n})=>{try{if(typeof e!="string"||!e.startsWith("--")&&!e.startsWith("$"))return e;let s=null;if(e.startsWith("--")){const[r,o]=e.split(/,/g).map(a=>a.trim()),i=r.substring(2);if(i==="stack"){const{r:a,g:c,b:u}=t.stacked;s={r:a,g:c,b:u}}else if(i.startsWith("parent"))if(i==="parent"){const{r:a,g:c,b:u}=t.lowerLevelBackground??{};s={r:a,g:c,b:u}}else{const a=i.replace(/^parent/,"");s=$t(t.lowerLevelVirtualDirectivesRaw[a]).rgb}else{const a=n[i],c=t[i];!a&&!c&&(console.warn(t,i,t[i]),console.warn(`Couldn't find variable "${i}", falling back to magenta. Variables are:
Static:
${JSON.stringify(n,null,2)}
Dynamic:
${JSON.stringify(t,null,2)}`)),s=$t(a??c??"#FF00FF").rgb}if(o){const a=t.lowerLevelBackground??s,u=Ra($t(a).rgb)<.5?1:-1;s=Ls(Number.parseFloat(o)*u,s).rgb}}if(e.startsWith("$"))try{s=JE(e,GK,{findColor:Pa},{dynamicVars:t,staticVars:n})}catch(r){console.error("Failure executing color function",r,`
Function: `+e),s="#FF00FF"}return s}catch(s){throw new Error(`Couldn't find color "${e}", variables are:
Static:
${JSON.stringify(n,null,2)}
Dynamic:
${JSON.stringify(t,null,2)}
Error: ${s}`)}},JK=(e,t,n,s)=>{const r=e.textOpacity,o=$t(n.lowerLevelBackground).rgb,i=$t(Pa(t,{dynamicVars:n,staticVars:s})).rgb;if(r==null||r>=1)return $t(i).hex;if(r===0)return $t(o).hex;switch(e.textOpacityMode){case"fake":return $t(Fo(i,r,o)).hex;case"mixrgb":return $t(ya(o,i)).hex;default:return Vl({a:r,...i})}},mk=Object.assign({"/src/components/alert.style.js":dG,"/src/components/badge.style.js":hG,"/src/components/border.style.js":mG,"/src/components/button.style.js":vG,"/src/components/button_unstyled.style.js":yG,"/src/components/chat/chat.style.js":wG,"/src/components/chat_message/chat_message.style.js":$G,"/src/components/fun_text.style.js":CG,"/src/components/icon.style.js":AG,"/src/components/input.style.js":IG,"/src/components/link.style.js":LG,"/src/components/menu_item.style.js":RG,"/src/components/mobile_drawer.style.js":NG,"/src/components/modal/modals.style.js":DG,"/src/components/notification/notification.style.js":jG,"/src/components/panel.style.js":zG,"/src/components/panel_header.style.js":HG,"/src/components/poll/poll_graph.style.js":WG,"/src/components/popover.style.js":KG,"/src/components/root.style.js":YG,"/src/components/scrollbar.style.js":JG,"/src/components/scrollbar_element.style.js":QG,"/src/components/status/post.style.js":tK,"/src/components/tab_switcher/tab.style.js":sK,"/src/components/text.style.js":oK,"/src/components/top_bar.style.js":aK,"/src/components/underlay.style.js":cK,"/src/components/user_avatar/avatar.style.js":dK,"/src/components/user_card/user_card.style.js":hK});Object.keys(mk).forEach(e=>{const t=mk[e].default;Hn[t.name]!=null&&console.warn(`Component in file ${e} is trying to override existing component ${t.name}! You have collisions/duplicates!`),Hn[t.name]=t});Object.keys(Hn).forEach(e=>{e!=="Root"&&(Hn.Root.validInnerComponents=Hn.Root.validInnerComponents||[],Hn.Root.validInnerComponents.push(e))});Object.keys(Hn).forEach(e=>{const t=Hn[e],{validInnerComponents:n=[]}=t;n.forEach(s=>{const r=Hn[s];t.possibleChildren=t.possibleChildren||[],t.possibleChildren.push(r),r.possibleParents=r.possibleParents||[],r.possibleParents.push(t)})});const eI=YE(Hn),Hg=ZE(Hn),tI=()=>eI,ZK=({inputRuleset:e,ultimateBackgroundColor:t,debug:n=!1,liteMode:s=!1,editMode:r=!1,onlyNormalState:o=!1,initialStaticVars:i={}})=>{const a="Root";if(!e)throw new Error("Ruleset is null or undefined!");const c={...i},u={},f={},v=[...Object.values(Hn).map(U=>(U.defaultRules||[]).map(ie=>({source:"Built-in",component:U.name,...ie}))).reduce((U,ie)=>[...U,...ie],[]),...e].map(U=>{pk(U);let ie=U.parent;for(;ie;)pk(ie),ie=ie.parent;return U}).map((U,ie)=>({data:U,index:ie})).toSorted(({data:U,index:ie},{data:le,index:Pe})=>{const qe=kh(U).length,Ke=kh(le).length;let Ge=0,ze=0;return Ge+=qe*1e3,ze+=Ke*1e3,Ge+=U.variant!=="normal"?100:0,ze+=le.variant!=="normal"?100:0,Ge+=U.state.filter(ot=>ot!=="normal").length*1e3,ze+=le.state.filter(ot=>ot!=="normal").length*1e3,Ge+=U.component==="Text"?1:0,ze+=le.component==="Text"?1:0,U._specificityScore=Ge,le._specificityScore=ze,Ge===ze?ie-Pe:Ge-ze}).map(({data:U})=>U);t||(console.warn("No ultimate background color provided, falling back to panel color"),t=v.findLast(ie=>{var le;return ie.component==="Root"&&((le=ie.directives)==null?void 0:le["--bg"])}).directives["--bg"].split("|")[1].trim());const y=new Set(Object.values(Hn).filter(U=>U.virtual).map(U=>U.name)),S=new Set(Object.values(Hn).filter(U=>U.transparent).map(U=>U.name)),k=new Set(Object.values(Hn).filter(U=>U.notEditable).map(U=>U.name)),I=new Set([]);Object.values(Hn).forEach(U=>{const ie=v.filter(qe=>qe.component===U.name),le=ie.map(qe=>qe.directives.background).filter(qe=>qe),Pe=ie.map(qe=>qe.directives.opacity).filter(qe=>qe);(le.some(qe=>qe.match(/--parent/))||Pe.some(qe=>qe!=null&&qe<1))&&I.add(U.name)});const C=U=>{var ie,le,Pe,qe;try{const Ke=Hg(U,!0),Ge=Hg(U),ze=Ke.split(/ /g).slice(0,-1).join(" "),ot=Ke.split(/ /g).slice(-1)[0],Ct=ze;let dt=(ie=f[Ct])==null?void 0:ie.background;r&&!dt&&(dt="#00FFFF");const bt=(le=f[Ct])==null?void 0:le.virtualDirectives,It=(Pe=f[Ct])==null?void 0:Pe.virtualDirectivesRaw,nt=f[Ke]||{lowerLevelSelector:Ct,lowerLevelBackground:dt,lowerLevelVirtualDirectives:bt,lowerLevelVirtualDirectivesRaw:It},ft=v.filter(qg(U)).map(_e=>_e.directives).reduce((_e,Me)=>({..._e,...Me}),{}),Ht={...U,directives:ft};if(f[Ke]=f[Ke]||{},f[Ke].computedRule=Ht,f[Ke].dynamicVars=nt,f[Ke].virtualDirectives={},f[Ke].virtualDirectivesRaw=((qe=f[Ct])==null?void 0:qe.virtualDirectivesRaw)||{},y.has(U.component)){const _e=["--",U.component.toLowerCase(),U.variant==="normal"?"":U.variant[0].toUpperCase()+U.variant.slice(1).toLowerCase(),...Z.sortBy(U.state.filter(q=>q!=="normal")).map(q=>q[0].toUpperCase()+q.slice(1).toLowerCase())].join("");let Me=ft.textColor,Fe=ft.textAuto,Ue=ft.textOpacity,pt=ft.textOpacityMode;const G=[...Ke.split(/ /g).slice(0,-1),ot].join(" "),K=f[G];(Me==null||Ue==null||pt==null)&&(Me=ft.textColor??K.textColor,Fe=ft.textAuto??K.textAuto,Ue=ft.textOpacity??K.textOpacity,pt=ft.textOpacityMode??K.textOpacityMode);const ee={...Ht,directives:{...Ht.directives,textColor:Me,textAuto:Fe??"preserve",textOpacity:Ue,textOpacityMode:pt}};nt.inheritedBackground=dt,nt.stacked=$t(u[Ct]).rgb;const pe=$t(Pa(Me,{dynamicVars:nt,staticVars:c})).rgb,we=ee.directives.textAuto==="no-auto"?pe:O_($t(u[Ct]).rgb,pe,ee.directives.textAuto==="preserve"),be={...f[Ct].virtualDirectives||{}},j={...f[Ct].virtualDirectivesRaw||{}};return be[_e]=JK(ee.directives,we,nt),j[_e]=we,f[Ct].virtualDirectives=be,f[Ct].virtualDirectivesRaw=j,{dynamicVars:nt,selector:Ge.split(/ /g).slice(0,-1).join(" "),...U,directives:{},virtualDirectives:be,virtualDirectivesRaw:j}}else{f[Ke]=f[Ke]||{};const _e=u[Ct]||$t(t).rgb;if(ft.background){let Ue=null;const pt=v.filter(qg({component:U.component,variant:U.variant,parent:U.parent})),G=pt[pt.length-1];if(G)Ue=G;else{const we=v.filter(qg({component:U.component,parent:U.parent}));Ue=we[we.length-1]}const K=Hg({...Ue,parent:U.parent},!0),ee=f[K].background;nt.inheritedBackground=ee;const pe=$t(Pa(ft.background,{dynamicVars:nt,staticVars:c})).rgb;if(!u[Ke]){let we;const be=ft.opacity??1;be>=1?we=pe:be<=0?we=_e:we=Fo(pe,ft.opacity,_e),u[Ke]=we,f[Ke].background={...pe,a:ft.opacity??1}}}return ft.shadow&&(nt.shadow=Z.flattenDeep(Y0(Z.flattenDeep(ft.shadow),{dynamicVars:nt,staticVars:c}))),u[Ke]||(ft.background="transparent",ft.opacity=0,u[Ke]=_e,f[Ke].background={..._e,a:0}),nt.stacked=u[Ke],nt.background=f[Ke].background,Object.entries(ft).filter(([Ue])=>Ue.startsWith("--")).forEach(([Ue,pt])=>{const[G,K]=pt.split("|").map(ee=>ee.trim());switch(G){case"color":{const ee=Pa(K,{dynamicVars:nt,staticVars:c});nt[Ue]=ee,U.component===a&&(c[Ue.substring(2)]=ee);break}case"shadow":{const ee=K.split(/,/g).map(pe=>pe.trim()).filter(pe=>pe);nt[Ue]=ee,U.component===a&&(c[Ue.substring(2)]=ee);break}case"generic":{nt[Ue]=K,U.component===a&&(c[Ue.substring(2)]=K);break}}}),{dynamicVars:nt,selector:Ge,...U,directives:ft}}}catch(Ke){const{component:Ge,variant:ze,state:ot}=U;throw new Error(`Error processing combination ${Ge}.${ze}:${ot.join(":")}: ${Ke}`)}},$=(U,ie)=>{var It,nt;const le=[],{states:Pe={},variants:qe={}}=U;let Ke;r?Ke=(U.validInnerComponentsLite||U.validInnerComponents||[]).filter(ft=>y.has(ft)&&!k.has(ft)):s?Ke=U.validInnerComponentsLite||U.validInnerComponents||[]:U.name==="Root"||U.states!=null||(It=U.background)!=null&&It.includes("--parent")?Ke=U.validInnerComponents||[]:Ke=((nt=U.validInnerComponents)==null?void 0:nt.filter(_t=>y.has(_t)||S.has(_t)||I.has(_t)))||[];const Ge={normal:"",...Pe},ze={normal:"",...qe},ot=Ke.map(_t=>{const ft=Hn[_t];return ft===void 0&&console.error(`Component ${U.name} references a component ${_t} which does not exist!`),ft}),Ct=Object.keys(Ge).filter(_t=>_t!=="normal"),dt=o&&!y.has(U.name)?[["normal"]]:[["normal"],...xK(Ct).map(_t=>["normal",..._t]).filter(_t=>_t.indexOf("disabled")>=0?!(_t.indexOf("hover")>=0||_t.indexOf("focused")>=0||_t.indexOf("pressed")>=0):!0)];return Object.keys(ze).map(_t=>dt.map(ft=>({variant:_t,state:ft}))).reduce((_t,ft)=>[..._t,...ft],[]).forEach(_t=>{_t.component=U.name,_t.lazy=U.lazy||(ie==null?void 0:ie.lazy),_t.parent=ie,!s&&_t.state.indexOf("hover")>=0&&(_t.lazy=!0),!s&&(ie==null?void 0:ie.component)!=="Root"&&!y.has(U.name)&&!S.has(U.name)&&I.has(U.name)&&(_t.lazy=!0),le.push(_t),ot.forEach(ft=>{le.push(...$(ft,_t))})}),le},P=performance.now(),A=$(Hn[a]??Hn.Root),R=performance.now();n&&console.debug("Tree traveral took "+(R-P)+" ms");const B=A.map(U=>U.lazy?async()=>C(U):C(U)).filter(U=>U),N=performance.now();n&&console.debug("Eager processing took "+(N-R)+" ms");const W=[],V=[];return B.forEach(U=>{typeof U=="function"?V.push(U):W.push(U)}),{lazy:V,eager:W,staticVars:c,engineChecksum:eI,themeChecksum:YE([V,W])}},Tu=(e,t=1)=>Vl({...$t(e).rgb,a:t}),gk=(e,t)=>e.length===0?"none":e.filter(n=>t?n.inset:n).map(n=>[n.x,n.y,n.blur,n.spread].map(s=>s+"px ").concat([Tu(n.color,n.alpha),n.inset?"inset":""]).join(" ")).join(", "),QK=e=>e.length===0?"none":e.filter(t=>!t.inset&&Number(t.spread)===0).map(t=>[t.x,t.y,t.blur/2].map(n=>n+"px").concat([Tu(t.color,t.alpha)]).join(" ")).map(t=>`drop-shadow(${t})`).join(" "),vk=(e,t)=>e.map(n=>{let s=n.selector;s||(s="html");const r=s+" {",o="}",i=Object.entries(n.virtualDirectives||{}).map(([c,u])=>" "+c+": "+u).join(`;
`),a=Object.entries(n.directives).map(([c,u])=>{switch(c){case"roundness":return" "+["--roundness: "+u+"px"].join(`;
`);case"shadow":return n.dynamicVars.shadow?" "+["--shadow: "+gk(n.dynamicVars.shadow),"--shadowFilter: "+QK(n.dynamicVars.shadow),"--shadowInset: "+gk(n.dynamicVars.shadow,!0)].join(`;
`):"";case"background":{if(t)return`
--background: ${Tu(n.dynamicVars.stacked)};
background-color: ${Tu(n.dynamicVars.stacked)};
`;if(u==="transparent")return n.component==="Root"?null:[n.directives.backgroundNoCssColor!=="yes"?"background-color: "+u:""," --background: "+u].filter(v=>v).join(`;
`);const f=Tu(n.dynamicVars.background,n.directives.opacity),h=["--background: "+f];return n.directives.backgroundNoCssColor!=="yes"&&h.push("background-color: "+f),h.filter(v=>v).join(`;
`)}case"blur":{const f=[];return n.directives.opacity<1&&(f.push(`--backdrop-filter: blur(${u}) `),n.directives.backgroundNoCssColor!=="yes"&&f.push(`backdrop-filter: blur(${u}) `)),f.join(`;
`)}case"font":return"font-family: "+u;case"textColor":return n.directives.textNoCssColor==="yes"?"":"color: "+u;default:if(c.startsWith("--")){const[f,h]=u.split("|").map(v=>v.trim());switch(f){case"color":{const v=n.dynamicVars[c];return typeof v=="string"?c+": "+Vl(_p(v)):c+": "+Vl(v)}case"generic":return c+": "+h;default:return null}}return null}}).filter(c=>c).map(c=>" "+c+";").join(`
`);return[r,a,n.component==="Text"&&n.state.indexOf("faint")<0&&n.directives.textNoCssColor!=="yes"?" color: var(--text);":"",i,o].filter(c=>c).join(`
`)}).filter(n=>n),kEe=(e,t)=>e.map(n=>n.startsWith("html")?n.replace("html",t):n.startsWith("#content")?n.replace("#content",t):t+" > "+n),ex=(window.navigator.language||"en").split("-")[0],Au={expertLevel:0,theme:void 0,colors:{},customTheme:void 0,customThemeSource:void 0,style:null,styleCustomData:null,palette:null,paletteCustomData:null,themeDebug:!1,forceThemeRecompilation:!1,theme3hacks:{underlay:"none",fonts:{interface:void 0,input:void 0,post:void 0,monospace:void 0}},hideISP:!1,hideInstanceWallpaper:!1,hideShoutbox:!1,hideMutedPosts:void 0,hideMutedThreads:void 0,hideWordFilteredPosts:void 0,muteBotStatuses:void 0,muteSensitiveStatuses:void 0,collapseMessageWithSubject:void 0,padEmoji:!0,hideAttachments:!1,hideAttachmentsInConv:!1,hideScrobbles:!1,hideScrobblesAfter:"2d",maxThumbnails:16,hideNsfw:!0,preloadImage:!0,loopVideo:!0,loopVideoSilentOnly:!0,streaming:!1,emojiReactionsOnTimeline:!0,alwaysShowNewPostButton:!1,autohideFloatingPostButton:!1,pauseOnUnfocused:!0,stopGifs:!0,replyVisibility:"all",thirdColumnMode:"notifications",notificationVisibility:{follows:!0,mentions:!0,statuses:!0,likes:!0,repeats:!0,moves:!0,emojiReactions:!0,followRequest:!0,reports:!0,chatMention:!0,polls:!0},notificationNative:{follows:!0,mentions:!0,statuses:!0,likes:!1,repeats:!1,moves:!1,emojiReactions:!1,followRequest:!0,reports:!0,chatMention:!0,polls:!0},webPushNotifications:!1,webPushAlwaysShowNotifications:!1,muteWords:[],highlight:{},interfaceLanguage:ex,hideScopeNotice:!1,useStreamingApi:!1,sidebarRight:void 0,scopeCopy:void 0,subjectLineBehavior:void 0,alwaysShowSubjectInput:void 0,postContentType:void 0,minimalScopesMode:void 0,hideFilteredStatuses:void 0,modalOnRepeat:void 0,modalOnUnfollow:void 0,modalOnBlock:void 0,modalOnMute:void 0,modalOnMuteConversation:void 0,modalOnMuteDomain:void 0,modalOnDelete:void 0,modalOnLogout:void 0,modalOnApproveFollow:void 0,modalOnDenyFollow:void 0,modalOnRemoveUserFromFollowers:void 0,onMuteDefaultAction:"ask",onBlockDefaultAction:"ask",modalMobileCenter:void 0,playVideosInModal:!1,useOneClickNsfw:!1,useContainFit:!0,disableStickyHeaders:!1,showScrollbars:!1,userPopoverAvatarAction:"open",userPopoverOverlay:!1,userCardLeftJustify:!1,userCardHidePersonalMarks:!1,sidebarColumnWidth:"25rem",contentColumnWidth:"45rem",notifsColumnWidth:"25rem",themeEditorMinWidth:void 0,emojiReactionsScale:void 0,textSize:void 0,emojiSize:void 0,navbarSize:void 0,panelHeaderSize:void 0,forcedRoundness:void 0,navbarColumnStretch:!1,greentext:void 0,mentionLinkDisplay:void 0,mentionLinkShowTooltip:void 0,mentionLinkShowAvatar:void 0,mentionLinkFadeDomain:void 0,mentionLinkShowYous:void 0,mentionLinkBoldenYou:void 0,hidePostStats:void 0,hideBotIndication:void 0,hideUserStats:void 0,virtualScrolling:void 0,sensitiveByDefault:void 0,conversationDisplay:void 0,conversationTreeAdvanced:void 0,conversationOtherRepliesButton:void 0,conversationTreeFadeAncestors:void 0,showExtraNotifications:void 0,showExtraNotificationsTip:void 0,showChatsInExtraNotifications:void 0,showAnnouncementsInExtraNotifications:void 0,showFollowRequestsInExtraNotifications:void 0,maxDepthInThread:void 0,autocompleteSelect:void 0,closingDrawerMarksAsSeen:void 0,unseenAtTop:void 0,ignoreInactionableSeen:void 0,unsavedPostAction:void 0,autoSaveDraft:void 0,useAbsoluteTimeFormat:void 0,absoluteTimeFormatMinAge:void 0,absoluteTime12h:void 0,imageCompression:!0,alwaysUseJpeg:!1};function If(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 Vg={exports:{}};/*!
localForage -- Offline Storage, Improved
Version 1.10.0
https://localforage.github.io/localForage
(c) 2013-2017 Mozilla, Apache License 2.0
*/var bk;function tx(){return bk||(bk=1,function(e,t){(function(n){e.exports=n()})(function(){return function n(s,r,o){function i(u,f){if(!r[u]){if(!s[u]){var h=typeof If=="function"&&If;if(!f&&h)return h(u,!0);if(a)return a(u,!0);var v=new Error("Cannot find module '"+u+"'");throw v.code="MODULE_NOT_FOUND",v}var y=r[u]={exports:{}};s[u][0].call(y.exports,function(S){var k=s[u][1][S];return i(k||S)},y,y.exports,n,s,r,o)}return r[u].exports}for(var a=typeof If=="function"&&If,c=0;c<o.length;c++)i(o[c]);return i}({1:[function(n,s,r){(function(o){var i=o.MutationObserver||o.WebKitMutationObserver,a;if(i){var c=0,u=new i(S),f=o.document.createTextNode("");u.observe(f,{characterData:!0}),a=function(){f.data=c=++c%2}}else if(!o.setImmediate&&typeof o.MessageChannel<"u"){var h=new o.MessageChannel;h.port1.onmessage=S,a=function(){h.port2.postMessage(0)}}else"document"in o&&"onreadystatechange"in o.document.createElement("script")?a=function(){var I=o.document.createElement("script");I.onreadystatechange=function(){S(),I.onreadystatechange=null,I.parentNode.removeChild(I),I=null},o.document.documentElement.appendChild(I)}:a=function(){setTimeout(S,0)};var v,y=[];function S(){v=!0;for(var I,C,$=y.length;$;){for(C=y,y=[],I=-1;++I<$;)C[I]();$=y.length}v=!1}s.exports=k;function k(I){y.push(I)===1&&!v&&a()}}).call(this,typeof ps<"u"?ps:typeof self<"u"?self:typeof window<"u"?window:{})},{}],2:[function(n,s,r){var o=n(1);function i(){}var a={},c=["REJECTED"],u=["FULFILLED"],f=["PENDING"];s.exports=h;function h(R){if(typeof R!="function")throw new TypeError("resolver must be a function");this.state=f,this.queue=[],this.outcome=void 0,R!==i&&k(this,R)}h.prototype.catch=function(R){return this.then(null,R)},h.prototype.then=function(R,B){if(typeof R!="function"&&this.state===u||typeof B!="function"&&this.state===c)return this;var N=new this.constructor(i);if(this.state!==f){var W=this.state===u?R:B;y(N,W,this.outcome)}else this.queue.push(new v(N,R,B));return N};function v(R,B,N){this.promise=R,typeof B=="function"&&(this.onFulfilled=B,this.callFulfilled=this.otherCallFulfilled),typeof N=="function"&&(this.onRejected=N,this.callRejected=this.otherCallRejected)}v.prototype.callFulfilled=function(R){a.resolve(this.promise,R)},v.prototype.otherCallFulfilled=function(R){y(this.promise,this.onFulfilled,R)},v.prototype.callRejected=function(R){a.reject(this.promise,R)},v.prototype.otherCallRejected=function(R){y(this.promise,this.onRejected,R)};function y(R,B,N){o(function(){var W;try{W=B(N)}catch(V){return a.reject(R,V)}W===R?a.reject(R,new TypeError("Cannot resolve promise with itself")):a.resolve(R,W)})}a.resolve=function(R,B){var N=I(S,B);if(N.status==="error")return a.reject(R,N.value);var W=N.value;if(W)k(R,W);else{R.state=u,R.outcome=B;for(var V=-1,U=R.queue.length;++V<U;)R.queue[V].callFulfilled(B)}return R},a.reject=function(R,B){R.state=c,R.outcome=B;for(var N=-1,W=R.queue.length;++N<W;)R.queue[N].callRejected(B);return R};function S(R){var B=R&&R.then;if(R&&(typeof R=="object"||typeof R=="function")&&typeof B=="function")return function(){B.apply(R,arguments)}}function k(R,B){var N=!1;function W(le){N||(N=!0,a.reject(R,le))}function V(le){N||(N=!0,a.resolve(R,le))}function U(){B(V,W)}var ie=I(U);ie.status==="error"&&W(ie.value)}function I(R,B){var N={};try{N.value=R(B),N.status="success"}catch(W){N.status="error",N.value=W}return N}h.resolve=C;function C(R){return R instanceof this?R:a.resolve(new this(i),R)}h.reject=$;function $(R){var B=new this(i);return a.reject(B,R)}h.all=P;function P(R){var B=this;if(Object.prototype.toString.call(R)!=="[object Array]")return this.reject(new TypeError("must be an array"));var N=R.length,W=!1;if(!N)return this.resolve([]);for(var V=new Array(N),U=0,ie=-1,le=new this(i);++ie<N;)Pe(R[ie],ie);return le;function Pe(qe,Ke){B.resolve(qe).then(Ge,function(ze){W||(W=!0,a.reject(le,ze))});function Ge(ze){V[Ke]=ze,++U===N&&!W&&(W=!0,a.resolve(le,V))}}}h.race=A;function A(R){var B=this;if(Object.prototype.toString.call(R)!=="[object Array]")return this.reject(new TypeError("must be an array"));var N=R.length,W=!1;if(!N)return this.resolve([]);for(var V=-1,U=new this(i);++V<N;)ie(R[V]);return U;function ie(le){B.resolve(le).then(function(Pe){W||(W=!0,a.resolve(U,Pe))},function(Pe){W||(W=!0,a.reject(U,Pe))})}}},{1:1}],3:[function(n,s,r){(function(o){typeof o.Promise!="function"&&(o.Promise=n(2))}).call(this,typeof ps<"u"?ps:typeof self<"u"?self:typeof window<"u"?window:{})},{2:2}],4:[function(n,s,r){var o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(F){return typeof F}:function(F){return F&&typeof Symbol=="function"&&F.constructor===Symbol&&F!==Symbol.prototype?"symbol":typeof F};function i(F,J){if(!(F instanceof J))throw new TypeError("Cannot call a class as a function")}function a(){try{if(typeof indexedDB<"u")return indexedDB;if(typeof webkitIndexedDB<"u")return webkitIndexedDB;if(typeof mozIndexedDB<"u")return mozIndexedDB;if(typeof OIndexedDB<"u")return OIndexedDB;if(typeof msIndexedDB<"u")return msIndexedDB}catch{return}}var c=a();function u(){try{if(!c||!c.open)return!1;var F=typeof openDatabase<"u"&&/(Safari|iPhone|iPad|iPod)/.test(navigator.userAgent)&&!/Chrome/.test(navigator.userAgent)&&!/BlackBerry/.test(navigator.platform),J=typeof fetch=="function"&&fetch.toString().indexOf("[native code")!==-1;return(!F||J)&&typeof indexedDB<"u"&&typeof IDBKeyRange<"u"}catch{return!1}}function f(F,J){F=F||[],J=J||{};try{return new Blob(F,J)}catch(ne){if(ne.name!=="TypeError")throw ne;for(var z=typeof BlobBuilder<"u"?BlobBuilder:typeof MSBlobBuilder<"u"?MSBlobBuilder:typeof MozBlobBuilder<"u"?MozBlobBuilder:WebKitBlobBuilder,se=new z,ce=0;ce<F.length;ce+=1)se.append(F[ce]);return se.getBlob(J.type)}}typeof Promise>"u"&&n(3);var h=Promise;function v(F,J){J&&F.then(function(z){J(null,z)},function(z){J(z)})}function y(F,J,z){typeof J=="function"&&F.then(J),typeof z=="function"&&F.catch(z)}function S(F){return typeof F!="string"&&(console.warn(F+" used as a key, but it is not a string."),F=String(F)),F}function k(){if(arguments.length&&typeof arguments[arguments.length-1]=="function")return arguments[arguments.length-1]}var I="local-forage-detect-blob-support",C=void 0,$={},P=Object.prototype.toString,A="readonly",R="readwrite";function B(F){for(var J=F.length,z=new ArrayBuffer(J),se=new Uint8Array(z),ce=0;ce<J;ce++)se[ce]=F.charCodeAt(ce);return z}function N(F){return new h(function(J){var z=F.transaction(I,R),se=f([""]);z.objectStore(I).put(se,"key"),z.onabort=function(ce){ce.preventDefault(),ce.stopPropagation(),J(!1)},z.oncomplete=function(){var ce=navigator.userAgent.match(/Chrome\/(\d+)/),ne=navigator.userAgent.match(/Edge\//);J(ne||!ce||parseInt(ce[1],10)>=43)}}).catch(function(){return!1})}function W(F){return typeof C=="boolean"?h.resolve(C):N(F).then(function(J){return C=J,C})}function V(F){var J=$[F.name],z={};z.promise=new h(function(se,ce){z.resolve=se,z.reject=ce}),J.deferredOperations.push(z),J.dbReady?J.dbReady=J.dbReady.then(function(){return z.promise}):J.dbReady=z.promise}function U(F){var J=$[F.name],z=J.deferredOperations.pop();if(z)return z.resolve(),z.promise}function ie(F,J){var z=$[F.name],se=z.deferredOperations.pop();if(se)return se.reject(J),se.promise}function le(F,J){return new h(function(z,se){if($[F.name]=$[F.name]||It(),F.db)if(J)V(F),F.db.close();else return z(F.db);var ce=[F.name];J&&ce.push(F.version);var ne=c.open.apply(c,ce);J&&(ne.onupgradeneeded=function(Ce){var Ie=ne.result;try{Ie.createObjectStore(F.storeName),Ce.oldVersion<=1&&Ie.createObjectStore(I)}catch(Oe){if(Oe.name==="ConstraintError")console.warn('The database "'+F.name+'" has been upgraded from version '+Ce.oldVersion+" to version "+Ce.newVersion+', but the storage "'+F.storeName+'" already exists.');else throw Oe}}),ne.onerror=function(Ce){Ce.preventDefault(),se(ne.error)},ne.onsuccess=function(){var Ce=ne.result;Ce.onversionchange=function(Ie){Ie.target.close()},z(Ce),U(F)}})}function Pe(F){return le(F,!1)}function qe(F){return le(F,!0)}function Ke(F,J){if(!F.db)return!0;var z=!F.db.objectStoreNames.contains(F.storeName),se=F.version<F.db.version,ce=F.version>F.db.version;if(se&&(F.version!==J&&console.warn('The database "'+F.name+`" can't be downgraded from version `+F.db.version+" to version "+F.version+"."),F.version=F.db.version),ce||z){if(z){var ne=F.db.version+1;ne>F.version&&(F.version=ne)}return!0}return!1}function Ge(F){return new h(function(J,z){var se=new FileReader;se.onerror=z,se.onloadend=function(ce){var ne=btoa(ce.target.result||"");J({__local_forage_encoded_blob:!0,data:ne,type:F.type})},se.readAsBinaryString(F)})}function ze(F){var J=B(atob(F.data));return f([J],{type:F.type})}function ot(F){return F&&F.__local_forage_encoded_blob}function Ct(F){var J=this,z=J._initReady().then(function(){var se=$[J._dbInfo.name];if(se&&se.dbReady)return se.dbReady});return y(z,F,F),z}function dt(F){V(F);for(var J=$[F.name],z=J.forages,se=0;se<z.length;se++){var ce=z[se];ce._dbInfo.db&&(ce._dbInfo.db.close(),ce._dbInfo.db=null)}return F.db=null,Pe(F).then(function(ne){return F.db=ne,Ke(F)?qe(F):ne}).then(function(ne){F.db=J.db=ne;for(var Ce=0;Ce<z.length;Ce++)z[Ce]._dbInfo.db=ne}).catch(function(ne){throw ie(F,ne),ne})}function bt(F,J,z,se){se===void 0&&(se=1);try{var ce=F.db.transaction(F.storeName,J);z(null,ce)}catch(ne){if(se>0&&(!F.db||ne.name==="InvalidStateError"||ne.name==="NotFoundError"))return h.resolve().then(function(){if(!F.db||ne.name==="NotFoundError"&&!F.db.objectStoreNames.contains(F.storeName)&&F.version<=F.db.version)return F.db&&(F.version=F.db.version+1),qe(F)}).then(function(){return dt(F).then(function(){bt(F,J,z,se-1)})}).catch(z);z(ne)}}function It(){return{forages:[],db:null,dbReady:null,deferredOperations:[]}}function nt(F){var J=this,z={db:null};if(F)for(var se in F)z[se]=F[se];var ce=$[z.name];ce||(ce=It(),$[z.name]=ce),ce.forages.push(J),J._initReady||(J._initReady=J.ready,J.ready=Ct);var ne=[];function Ce(){return h.resolve()}for(var Ie=0;Ie<ce.forages.length;Ie++){var Oe=ce.forages[Ie];Oe!==J&&ne.push(Oe._initReady().catch(Ce))}var Re=ce.forages.slice(0);return h.all(ne).then(function(){return z.db=ce.db,Pe(z)}).then(function(De){return z.db=De,Ke(z,J._defaultConfig.version)?qe(z):De}).then(function(De){z.db=ce.db=De,J._dbInfo=z;for(var Ze=0;Ze<Re.length;Ze++){var Tt=Re[Ze];Tt!==J&&(Tt._dbInfo.db=z.db,Tt._dbInfo.version=z.version)}})}function _t(F,J){var z=this;F=S(F);var se=new h(function(ce,ne){z.ready().then(function(){bt(z._dbInfo,A,function(Ce,Ie){if(Ce)return ne(Ce);try{var Oe=Ie.objectStore(z._dbInfo.storeName),Re=Oe.get(F);Re.onsuccess=function(){var De=Re.result;De===void 0&&(De=null),ot(De)&&(De=ze(De)),ce(De)},Re.onerror=function(){ne(Re.error)}}catch(De){ne(De)}})}).catch(ne)});return v(se,J),se}function ft(F,J){var z=this,se=new h(function(ce,ne){z.ready().then(function(){bt(z._dbInfo,A,function(Ce,Ie){if(Ce)return ne(Ce);try{var Oe=Ie.objectStore(z._dbInfo.storeName),Re=Oe.openCursor(),De=1;Re.onsuccess=function(){var Ze=Re.result;if(Ze){var Tt=Ze.value;ot(Tt)&&(Tt=ze(Tt));var Bt=F(Tt,Ze.key,De++);Bt!==void 0?ce(Bt):Ze.continue()}else ce()},Re.onerror=function(){ne(Re.error)}}catch(Ze){ne(Ze)}})}).catch(ne)});return v(se,J),se}function Ht(F,J,z){var se=this;F=S(F);var ce=new h(function(ne,Ce){var Ie;se.ready().then(function(){return Ie=se._dbInfo,P.call(J)==="[object Blob]"?W(Ie.db).then(function(Oe){return Oe?J:Ge(J)}):J}).then(function(Oe){bt(se._dbInfo,R,function(Re,De){if(Re)return Ce(Re);try{var Ze=De.objectStore(se._dbInfo.storeName);Oe===null&&(Oe=void 0);var Tt=Ze.put(Oe,F);De.oncomplete=function(){Oe===void 0&&(Oe=null),ne(Oe)},De.onabort=De.onerror=function(){var Bt=Tt.error?Tt.error:Tt.transaction.error;Ce(Bt)}}catch(Bt){Ce(Bt)}})}).catch(Ce)});return v(ce,z),ce}function _e(F,J){var z=this;F=S(F);var se=new h(function(ce,ne){z.ready().then(function(){bt(z._dbInfo,R,function(Ce,Ie){if(Ce)return ne(Ce);try{var Oe=Ie.objectStore(z._dbInfo.storeName),Re=Oe.delete(F);Ie.oncomplete=function(){ce()},Ie.onerror=function(){ne(Re.error)},Ie.onabort=function(){var De=Re.error?Re.error:Re.transaction.error;ne(De)}}catch(De){ne(De)}})}).catch(ne)});return v(se,J),se}function Me(F){var J=this,z=new h(function(se,ce){J.ready().then(function(){bt(J._dbInfo,R,function(ne,Ce){if(ne)return ce(ne);try{var Ie=Ce.objectStore(J._dbInfo.storeName),Oe=Ie.clear();Ce.oncomplete=function(){se()},Ce.onabort=Ce.onerror=function(){var Re=Oe.error?Oe.error:Oe.transaction.error;ce(Re)}}catch(Re){ce(Re)}})}).catch(ce)});return v(z,F),z}function Fe(F){var J=this,z=new h(function(se,ce){J.ready().then(function(){bt(J._dbInfo,A,function(ne,Ce){if(ne)return ce(ne);try{var Ie=Ce.objectStore(J._dbInfo.storeName),Oe=Ie.count();Oe.onsuccess=function(){se(Oe.result)},Oe.onerror=function(){ce(Oe.error)}}catch(Re){ce(Re)}})}).catch(ce)});return v(z,F),z}function Ue(F,J){var z=this,se=new h(function(ce,ne){if(F<0){ce(null);return}z.ready().then(function(){bt(z._dbInfo,A,function(Ce,Ie){if(Ce)return ne(Ce);try{var Oe=Ie.objectStore(z._dbInfo.storeName),Re=!1,De=Oe.openKeyCursor();De.onsuccess=function(){var Ze=De.result;if(!Ze){ce(null);return}F===0||Re?ce(Ze.key):(Re=!0,Ze.advance(F))},De.onerror=function(){ne(De.error)}}catch(Ze){ne(Ze)}})}).catch(ne)});return v(se,J),se}function pt(F){var J=this,z=new h(function(se,ce){J.ready().then(function(){bt(J._dbInfo,A,function(ne,Ce){if(ne)return ce(ne);try{var Ie=Ce.objectStore(J._dbInfo.storeName),Oe=Ie.openKeyCursor(),Re=[];Oe.onsuccess=function(){var De=Oe.result;if(!De){se(Re);return}Re.push(De.key),De.continue()},Oe.onerror=function(){ce(Oe.error)}}catch(De){ce(De)}})}).catch(ce)});return v(z,F),z}function G(F,J){J=k.apply(this,arguments);var z=this.config();F=typeof F!="function"&&F||{},F.name||(F.name=F.name||z.name,F.storeName=F.storeName||z.storeName);var se=this,ce;if(!F.name)ce=h.reject("Invalid arguments");else{var ne=F.name===z.name&&se._dbInfo.db,Ce=ne?h.resolve(se._dbInfo.db):Pe(F).then(function(Ie){var Oe=$[F.name],Re=Oe.forages;Oe.db=Ie;for(var De=0;De<Re.length;De++)Re[De]._dbInfo.db=Ie;return Ie});F.storeName?ce=Ce.then(function(Ie){if(Ie.objectStoreNames.contains(F.storeName)){var Oe=Ie.version+1;V(F);var Re=$[F.name],De=Re.forages;Ie.close();for(var Ze=0;Ze<De.length;Ze++){var Tt=De[Ze];Tt._dbInfo.db=null,Tt._dbInfo.version=Oe}var Bt=new h(function(zt,cn){var xt=c.open(F.name,Oe);xt.onerror=function(Zn){var Br=xt.result;Br.close(),cn(Zn)},xt.onupgradeneeded=function(){var Zn=xt.result;Zn.deleteObjectStore(F.storeName)},xt.onsuccess=function(){var Zn=xt.result;Zn.close(),zt(Zn)}});return Bt.then(function(zt){Re.db=zt;for(var cn=0;cn<De.length;cn++){var xt=De[cn];xt._dbInfo.db=zt,U(xt._dbInfo)}}).catch(function(zt){throw(ie(F,zt)||h.resolve()).catch(function(){}),zt})}}):ce=Ce.then(function(Ie){V(F);var Oe=$[F.name],Re=Oe.forages;Ie.close();for(var De=0;De<Re.length;De++){var Ze=Re[De];Ze._dbInfo.db=null}var Tt=new h(function(Bt,zt){var cn=c.deleteDatabase(F.name);cn.onerror=function(){var xt=cn.result;xt&&xt.close(),zt(cn.error)},cn.onblocked=function(){console.warn('dropInstance blocked for database "'+F.name+'" until all open connections are closed')},cn.onsuccess=function(){var xt=cn.result;xt&&xt.close(),Bt(xt)}});return Tt.then(function(Bt){Oe.db=Bt;for(var zt=0;zt<Re.length;zt++){var cn=Re[zt];U(cn._dbInfo)}}).catch(function(Bt){throw(ie(F,Bt)||h.resolve()).catch(function(){}),Bt})})}return v(ce,J),ce}var K={_driver:"asyncStorage",_initStorage:nt,_support:u(),iterate:ft,getItem:_t,setItem:Ht,removeItem:_e,clear:Me,length:Fe,key:Ue,keys:pt,dropInstance:G};function ee(){return typeof openDatabase=="function"}var pe="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",we="~~local_forage_type~",be=/^~~local_forage_type~([^~]+)~/,j="__lfsc__:",q=j.length,te="arbf",fe="blob",je="si08",$e="ui08",re="uic8",me="si16",xe="si32",rt="ur16",ut="ui32",Qt="fl32",Wt="fl64",En=q+te.length,On=Object.prototype.toString;function Cs(F){var J=F.length*.75,z=F.length,se,ce=0,ne,Ce,Ie,Oe;F[F.length-1]==="="&&(J--,F[F.length-2]==="="&&J--);var Re=new ArrayBuffer(J),De=new Uint8Array(Re);for(se=0;se<z;se+=4)ne=pe.indexOf(F[se]),Ce=pe.indexOf(F[se+1]),Ie=pe.indexOf(F[se+2]),Oe=pe.indexOf(F[se+3]),De[ce++]=ne<<2|Ce>>4,De[ce++]=(Ce&15)<<4|Ie>>2,De[ce++]=(Ie&3)<<6|Oe&63;return Re}function tr(F){var J=new Uint8Array(F),z="",se;for(se=0;se<J.length;se+=3)z+=pe[J[se]>>2],z+=pe[(J[se]&3)<<4|J[se+1]>>4],z+=pe[(J[se+1]&15)<<2|J[se+2]>>6],z+=pe[J[se+2]&63];return J.length%3===2?z=z.substring(0,z.length-1)+"=":J.length%3===1&&(z=z.substring(0,z.length-2)+"=="),z}function ln(F,J){var z="";if(F&&(z=On.call(F)),F&&(z==="[object ArrayBuffer]"||F.buffer&&On.call(F.buffer)==="[object ArrayBuffer]")){var se,ce=j;F instanceof ArrayBuffer?(se=F,ce+=te):(se=F.buffer,z==="[object Int8Array]"?ce+=je:z==="[object Uint8Array]"?ce+=$e:z==="[object Uint8ClampedArray]"?ce+=re:z==="[object Int16Array]"?ce+=me:z==="[object Uint16Array]"?ce+=rt:z==="[object Int32Array]"?ce+=xe:z==="[object Uint32Array]"?ce+=ut:z==="[object Float32Array]"?ce+=Qt:z==="[object Float64Array]"?ce+=Wt:J(new Error("Failed to get type for BinaryArray"))),J(ce+tr(se))}else if(z==="[object Blob]"){var ne=new FileReader;ne.onload=function(){var Ce=we+F.type+"~"+tr(this.result);J(j+fe+Ce)},ne.readAsArrayBuffer(F)}else try{J(JSON.stringify(F))}catch(Ce){console.error("Couldn't convert value into a JSON string: ",F),J(null,Ce)}}function Rn(F){if(F.substring(0,q)!==j)return JSON.parse(F);var J=F.substring(En),z=F.substring(q,En),se;if(z===fe&&be.test(J)){var ce=J.match(be);se=ce[1],J=J.substring(ce[0].length)}var ne=Cs(J);switch(z){case te:return ne;case fe:return f([ne],{type:se});case je:return new Int8Array(ne);case $e:return new Uint8Array(ne);case re:return new Uint8ClampedArray(ne);case me:return new Int16Array(ne);case rt:return new Uint16Array(ne);case xe:return new Int32Array(ne);case ut:return new Uint32Array(ne);case Qt:return new Float32Array(ne);case Wt:return new Float64Array(ne);default:throw new Error("Unkown type: "+z)}}var nr={serialize:ln,deserialize:Rn,stringToBuffer:Cs,bufferToString:tr};function Fr(F,J,z,se){F.executeSql("CREATE TABLE IF NOT EXISTS "+J.storeName+" (id INTEGER PRIMARY KEY, key unique, value)",[],z,se)}function cc(F){var J=this,z={db:null};if(F)for(var se in F)z[se]=typeof F[se]!="string"?F[se].toString():F[se];var ce=new h(function(ne,Ce){try{z.db=openDatabase(z.name,String(z.version),z.description,z.size)}catch(Ie){return Ce(Ie)}z.db.transaction(function(Ie){Fr(Ie,z,function(){J._dbInfo=z,ne()},function(Oe,Re){Ce(Re)})},Ce)});return z.serializer=nr,ce}function Fs(F,J,z,se,ce,ne){F.executeSql(z,se,ce,function(Ce,Ie){Ie.code===Ie.SYNTAX_ERR?Ce.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name = ?",[J.storeName],function(Oe,Re){Re.rows.length?ne(Oe,Ie):Fr(Oe,J,function(){Oe.executeSql(z,se,ce,ne)},ne)},ne):ne(Ce,Ie)},ne)}function Dr(F,J){var z=this;F=S(F);var se=new h(function(ce,ne){z.ready().then(function(){var Ce=z._dbInfo;Ce.db.transaction(function(Ie){Fs(Ie,Ce,"SELECT * FROM "+Ce.storeName+" WHERE key = ? LIMIT 1",[F],function(Oe,Re){var De=Re.rows.length?Re.rows.item(0).value:null;De&&(De=Ce.serializer.deserialize(De)),ce(De)},function(Oe,Re){ne(Re)})})}).catch(ne)});return v(se,J),se}function Ya(F,J){var z=this,se=new h(function(ce,ne){z.ready().then(function(){var Ce=z._dbInfo;Ce.db.transaction(function(Ie){Fs(Ie,Ce,"SELECT * FROM "+Ce.storeName,[],function(Oe,Re){for(var De=Re.rows,Ze=De.length,Tt=0;Tt<Ze;Tt++){var Bt=De.item(Tt),zt=Bt.value;if(zt&&(zt=Ce.serializer.deserialize(zt)),zt=F(zt,Bt.key,Tt+1),zt!==void 0){ce(zt);return}}ce()},function(Oe,Re){ne(Re)})})}).catch(ne)});return v(se,J),se}function sr(F,J,z,se){var ce=this;F=S(F);var ne=new h(function(Ce,Ie){ce.ready().then(function(){J===void 0&&(J=null);var Oe=J,Re=ce._dbInfo;Re.serializer.serialize(J,function(De,Ze){Ze?Ie(Ze):Re.db.transaction(function(Tt){Fs(Tt,Re,"INSERT OR REPLACE INTO "+Re.storeName+" (key, value) VALUES (?, ?)",[F,De],function(){Ce(Oe)},function(Bt,zt){Ie(zt)})},function(Tt){if(Tt.code===Tt.QUOTA_ERR){if(se>0){Ce(sr.apply(ce,[F,Oe,z,se-1]));return}Ie(Tt)}})})}).catch(Ie)});return v(ne,z),ne}function uc(F,J,z){return sr.apply(this,[F,J,z,1])}function dc(F,J){var z=this;F=S(F);var se=new h(function(ce,ne){z.ready().then(function(){var Ce=z._dbInfo;Ce.db.transaction(function(Ie){Fs(Ie,Ce,"DELETE FROM "+Ce.storeName+" WHERE key = ?",[F],function(){ce()},function(Oe,Re){ne(Re)})})}).catch(ne)});return v(se,J),se}function fc(F){var J=this,z=new h(function(se,ce){J.ready().then(function(){var ne=J._dbInfo;ne.db.transaction(function(Ce){Fs(Ce,ne,"DELETE FROM "+ne.storeName,[],function(){se()},function(Ie,Oe){ce(Oe)})})}).catch(ce)});return v(z,F),z}function Xa(F){var J=this,z=new h(function(se,ce){J.ready().then(function(){var ne=J._dbInfo;ne.db.transaction(function(Ce){Fs(Ce,ne,"SELECT COUNT(key) as c FROM "+ne.storeName,[],function(Ie,Oe){var Re=Oe.rows.item(0).c;se(Re)},function(Ie,Oe){ce(Oe)})})}).catch(ce)});return v(z,F),z}function hc(F,J){var z=this,se=new h(function(ce,ne){z.ready().then(function(){var Ce=z._dbInfo;Ce.db.transaction(function(Ie){Fs(Ie,Ce,"SELECT key FROM "+Ce.storeName+" WHERE id = ? LIMIT 1",[F+1],function(Oe,Re){var De=Re.rows.length?Re.rows.item(0).key:null;ce(De)},function(Oe,Re){ne(Re)})})}).catch(ne)});return v(se,J),se}function Ds(F){var J=this,z=new h(function(se,ce){J.ready().then(function(){var ne=J._dbInfo;ne.db.transaction(function(Ce){Fs(Ce,ne,"SELECT key FROM "+ne.storeName,[],function(Ie,Oe){for(var Re=[],De=0;De<Oe.rows.length;De++)Re.push(Oe.rows.item(De).key);se(Re)},function(Ie,Oe){ce(Oe)})})}).catch(ce)});return v(z,F),z}function pc(F){return new h(function(J,z){F.transaction(function(se){se.executeSql("SELECT name FROM sqlite_master WHERE type='table' AND name <> '__WebKitDatabaseInfoTable__'",[],function(ce,ne){for(var Ce=[],Ie=0;Ie<ne.rows.length;Ie++)Ce.push(ne.rows.item(Ie).name);J({db:F,storeNames:Ce})},function(ce,ne){z(ne)})},function(se){z(se)})})}function ta(F,J){J=k.apply(this,arguments);var z=this.config();F=typeof F!="function"&&F||{},F.name||(F.name=F.name||z.name,F.storeName=F.storeName||z.storeName);var se=this,ce;return F.name?ce=new h(function(ne){var Ce;F.name===z.name?Ce=se._dbInfo.db:Ce=openDatabase(F.name,"","",0),F.storeName?ne({db:Ce,storeNames:[F.storeName]}):ne(pc(Ce))}).then(function(ne){return new h(function(Ce,Ie){ne.db.transaction(function(Oe){function Re(Bt){return new h(function(zt,cn){Oe.executeSql("DROP TABLE IF EXISTS "+Bt,[],function(){zt()},function(xt,Zn){cn(Zn)})})}for(var De=[],Ze=0,Tt=ne.storeNames.length;Ze<Tt;Ze++)De.push(Re(ne.storeNames[Ze]));h.all(De).then(function(){Ce()}).catch(function(Bt){Ie(Bt)})},function(Oe){Ie(Oe)})})}):ce=h.reject("Invalid arguments"),v(ce,J),ce}var mc={_driver:"webSQLStorage",_initStorage:cc,_support:ee(),iterate:Ya,getItem:Dr,setItem:uc,removeItem:dc,clear:fc,length:Xa,key:hc,keys:Ds,dropInstance:ta};function na(){try{return typeof localStorage<"u"&&"setItem"in localStorage&&!!localStorage.setItem}catch{return!1}}function Ja(F,J){var z=F.name+"/";return F.storeName!==J.storeName&&(z+=F.storeName+"/"),z}function Ur(){var F="_localforage_support_test";try{return localStorage.setItem(F,!0),localStorage.removeItem(F),!1}catch{return!0}}function gc(){return!Ur()||localStorage.length>0}function vc(F){var J=this,z={};if(F)for(var se in F)z[se]=F[se];return z.keyPrefix=Ja(F,J._defaultConfig),gc()?(J._dbInfo=z,z.serializer=nr,h.resolve()):h.reject()}function bc(F){var J=this,z=J.ready().then(function(){for(var se=J._dbInfo.keyPrefix,ce=localStorage.length-1;ce>=0;ce--){var ne=localStorage.key(ce);ne.indexOf(se)===0&&localStorage.removeItem(ne)}});return v(z,F),z}function yc(F,J){var z=this;F=S(F);var se=z.ready().then(function(){var ce=z._dbInfo,ne=localStorage.getItem(ce.keyPrefix+F);return ne&&(ne=ce.serializer.deserialize(ne)),ne});return v(se,J),se}function _c(F,J){var z=this,se=z.ready().then(function(){for(var ce=z._dbInfo,ne=ce.keyPrefix,Ce=ne.length,Ie=localStorage.length,Oe=1,Re=0;Re<Ie;Re++){var De=localStorage.key(Re);if(De.indexOf(ne)===0){var Ze=localStorage.getItem(De);if(Ze&&(Ze=ce.serializer.deserialize(Ze)),Ze=F(Ze,De.substring(Ce),Oe++),Ze!==void 0)return Ze}}});return v(se,J),se}function jr(F,J){var z=this,se=z.ready().then(function(){var ce=z._dbInfo,ne;try{ne=localStorage.key(F)}catch{ne=null}return ne&&(ne=ne.substring(ce.keyPrefix.length)),ne});return v(se,J),se}function Za(F){var J=this,z=J.ready().then(function(){for(var se=J._dbInfo,ce=localStorage.length,ne=[],Ce=0;Ce<ce;Ce++){var Ie=localStorage.key(Ce);Ie.indexOf(se.keyPrefix)===0&&ne.push(Ie.substring(se.keyPrefix.length))}return ne});return v(z,F),z}function wc(F){var J=this,z=J.keys().then(function(se){return se.length});return v(z,F),z}function Sc(F,J){var z=this;F=S(F);var se=z.ready().then(function(){var ce=z._dbInfo;localStorage.removeItem(ce.keyPrefix+F)});return v(se,J),se}function $c(F,J,z){var se=this;F=S(F);var ce=se.ready().then(function(){J===void 0&&(J=null);var ne=J;return new h(function(Ce,Ie){var Oe=se._dbInfo;Oe.serializer.serialize(J,function(Re,De){if(De)Ie(De);else try{localStorage.setItem(Oe.keyPrefix+F,Re),Ce(ne)}catch(Ze){(Ze.name==="QuotaExceededError"||Ze.name==="NS_ERROR_DOM_QUOTA_REACHED")&&Ie(Ze),Ie(Ze)}})})});return v(ce,z),ce}function kc(F,J){if(J=k.apply(this,arguments),F=typeof F!="function"&&F||{},!F.name){var z=this.config();F.name=F.name||z.name,F.storeName=F.storeName||z.storeName}var se=this,ce;return F.name?ce=new h(function(ne){F.storeName?ne(Ja(F,se._defaultConfig)):ne(F.name+"/")}).then(function(ne){for(var Ce=localStorage.length-1;Ce>=0;Ce--){var Ie=localStorage.key(Ce);Ie.indexOf(ne)===0&&localStorage.removeItem(Ie)}}):ce=h.reject("Invalid arguments"),v(ce,J),ce}var Cc={_driver:"localStorageWrapper",_initStorage:vc,_support:na(),iterate:_c,getItem:yc,setItem:$c,removeItem:Sc,clear:bc,length:wc,key:jr,keys:Za,dropInstance:kc},sa=function(J,z){return J===z||typeof J=="number"&&typeof z=="number"&&isNaN(J)&&isNaN(z)},ti=function(J,z){for(var se=J.length,ce=0;ce<se;){if(sa(J[ce],z))return!0;ce++}return!1},co=Array.isArray||function(F){return Object.prototype.toString.call(F)==="[object Array]"},Ts={},Qa={},Us={INDEXEDDB:K,WEBSQL:mc,LOCALSTORAGE:Cc},el=[Us.INDEXEDDB._driver,Us.WEBSQL._driver,Us.LOCALSTORAGE._driver],uo=["dropInstance"],ni=["clear","getItem","iterate","key","keys","length","removeItem","setItem"].concat(uo),tl={description:"",driver:el.slice(),name:"localforage",size:4980736,storeName:"keyvaluepairs",version:1};function nl(F,J){F[J]=function(){var z=arguments;return F.ready().then(function(){return F[J].apply(F,z)})}}function ra(){for(var F=1;F<arguments.length;F++){var J=arguments[F];if(J)for(var z in J)J.hasOwnProperty(z)&&(co(J[z])?arguments[0][z]=J[z].slice():arguments[0][z]=J[z])}return arguments[0]}var Tc=function(){function F(J){i(this,F);for(var z in Us)if(Us.hasOwnProperty(z)){var se=Us[z],ce=se._driver;this[z]=ce,Ts[ce]||this.defineDriver(se)}this._defaultConfig=ra({},tl),this._config=ra({},this._defaultConfig,J),this._driverSet=null,this._initDriver=null,this._ready=!1,this._dbInfo=null,this._wrapLibraryMethodsWithReady(),this.setDriver(this._config.driver).catch(function(){})}return F.prototype.config=function(z){if((typeof z>"u"?"undefined":o(z))==="object"){if(this._ready)return new Error("Can't call config() after localforage has been used.");for(var se in z){if(se==="storeName"&&(z[se]=z[se].replace(/\W/g,"_")),se==="version"&&typeof z[se]!="number")return new Error("Database version must be a number.");this._config[se]=z[se]}return"driver"in z&&z.driver?this.setDriver(this._config.driver):!0}else return typeof z=="string"?this._config[z]:this._config},F.prototype.defineDriver=function(z,se,ce){var ne=new h(function(Ce,Ie){try{var Oe=z._driver,Re=new Error("Custom driver not compliant; see https://mozilla.github.io/localForage/#definedriver");if(!z._driver){Ie(Re);return}for(var De=ni.concat("_initStorage"),Ze=0,Tt=De.length;Ze<Tt;Ze++){var Bt=De[Ze],zt=!ti(uo,Bt);if((zt||z[Bt])&&typeof z[Bt]!="function"){Ie(Re);return}}var cn=function(){for(var Br=function(ho){return function(){var oa=new Error("Method "+ho+" is not implemented by the current driver"),ri=h.reject(oa);return v(ri,arguments[arguments.length-1]),ri}},fo=0,sl=uo.length;fo<sl;fo++){var si=uo[fo];z[si]||(z[si]=Br(si))}};cn();var xt=function(Br){Ts[Oe]&&console.info("Redefining LocalForage driver: "+Oe),Ts[Oe]=z,Qa[Oe]=Br,Ce()};"_support"in z?z._support&&typeof z._support=="function"?z._support().then(xt,Ie):xt(!!z._support):xt(!0)}catch(Zn){Ie(Zn)}});return y(ne,se,ce),ne},F.prototype.driver=function(){return this._driver||null},F.prototype.getDriver=function(z,se,ce){var ne=Ts[z]?h.resolve(Ts[z]):h.reject(new Error("Driver not found."));return y(ne,se,ce),ne},F.prototype.getSerializer=function(z){var se=h.resolve(nr);return y(se,z),se},F.prototype.ready=function(z){var se=this,ce=se._driverSet.then(function(){return se._ready===null&&(se._ready=se._initDriver()),se._ready});return y(ce,z,z),ce},F.prototype.setDriver=function(z,se,ce){var ne=this;co(z)||(z=[z]);var Ce=this._getSupportedDrivers(z);function Ie(){ne._config.driver=ne.driver()}function Oe(Ze){return ne._extend(Ze),Ie(),ne._ready=ne._initStorage(ne._config),ne._ready}function Re(Ze){return function(){var Tt=0;function Bt(){for(;Tt<Ze.length;){var zt=Ze[Tt];return Tt++,ne._dbInfo=null,ne._ready=null,ne.getDriver(zt).then(Oe).catch(Bt)}Ie();var cn=new Error("No available storage method found.");return ne._driverSet=h.reject(cn),ne._driverSet}return Bt()}}var De=this._driverSet!==null?this._driverSet.catch(function(){return h.resolve()}):h.resolve();return this._driverSet=De.then(function(){var Ze=Ce[0];return ne._dbInfo=null,ne._ready=null,ne.getDriver(Ze).then(function(Tt){ne._driver=Tt._driver,Ie(),ne._wrapLibraryMethodsWithReady(),ne._initDriver=Re(Ce)})}).catch(function(){Ie();var Ze=new Error("No available storage method found.");return ne._driverSet=h.reject(Ze),ne._driverSet}),y(this._driverSet,se,ce),this._driverSet},F.prototype.supports=function(z){return!!Qa[z]},F.prototype._extend=function(z){ra(this,z)},F.prototype._getSupportedDrivers=function(z){for(var se=[],ce=0,ne=z.length;ce<ne;ce++){var Ce=z[ce];this.supports(Ce)&&se.push(Ce)}return se},F.prototype._wrapLibraryMethodsWithReady=function(){for(var z=0,se=ni.length;z<se;z++)nl(this,ni[z])},F.prototype.createInstance=function(z){return new F(z)},F}(),Ac=new Tc;s.exports=Ac},{3:3}]},{},[4])(4)})}(Vg)),Vg.exports}var nx=tx();const R_=bs(nx),sx=!!document.adoptedStyleSheets,Eu={},Ku=(e,t=1e3)=>{if(Eu[e])return Eu[e];const n={rules:[],ready:!1,priority:t,clear(){this.rules=[]},addRule(s){var o,i;let r=s;(o=CSS.supports)!=null&&o.call(CSS,"backdrop-filter","blur()")||(r=r.replace(/backdrop-filter:[^;]+;/g,"")),!(!((i=CSS.supports)!=null&&i.call(CSS,"selector(::-webkit-scrollbar)"))&&r.startsWith("::-webkit"))&&this.rules.push(r.replace(/var\(--shadowFilter\)[^;]*;/g,""))}};return Eu[e]=n,n},Ch=Z.throttle(()=>{if(console.log("adopt"),sx)document.adoptedStyleSheets=Object.values(Eu).filter(e=>e.ready).sort((e,t)=>e.priority-t.priority).map(e=>{const t=new CSSStyleSheet;return e.rules.forEach(n=>t.insertRule(n)),t});else{const e=document.getElementById("custom-styles-holder");for(let t=e.sheet.cssRules.length-1;t>=0;--t)e.sheet.deleteRule(t);Object.values(Eu).filter(t=>t.ready).sort((t,n)=>t.priority-n.priority).forEach(t=>{t.rules.forEach(n=>e.sheet.insertRule(n))})}},500),nI="pleroma-eager-styles",sI="pleroma-lazy-styles",rx=(e,t,n)=>{const{onNewRule:s=()=>{},onLazyFinished:r=()=>{},onEagerFinished:o=()=>{}}=t,i=ZK({inputRuleset:e,debug:n});vk(i.eager,n).forEach(f=>{s(f,!1)}),o();let a=0;const c=Z.chunk(i.lazy,200),u=()=>{const f=c[a];Promise.all(f.map(h=>h())).then(h=>{vk(h.filter(v=>v),n).forEach(v=>{s(v,!0)}),a+=1,a<c.length?setTimeout(u,0):r()})};return{lazyProcessFunc:u}},ox=async()=>{console.info("Trying to load compiled theme data from cache");const e=await R_.getItem("pleromafe-theme-cache");if(!e)return null;try{if(e.engineChecksum===tI()){const t=Ku(nI,10),n=Ku(sI,20);return e.data[0].forEach(s=>t.addRule(s)),e.data[1].forEach(s=>n.addRule(s)),t.ready=!0,n.ready=!0,Ch(),console.info("Loaded theme from cache"),!0}else console.warn("Engine checksum doesn't match, cache not usable, clearing"),localStorage.removeItem("pleroma-fe-theme-cache")}catch(t){return console.error("Failed to load theme cache:",t),!1}},ix=(e,t=()=>{},n=()=>{},s)=>{const r=Ku(nI,10),o=Ku(sI,20);r.clear(),o.clear();const{lazyProcessFunc:i}=rx(e,{onNewRule(a,c){c?o.addRule(a):r.addRule(a)},onEagerFinished(){r.ready=!0,Ch(),t(),console.info("Eager part of theme finished, waiting for lazy part to finish to store cache")},onLazyFinished(){o.ready=!0,Ch();const a={engineChecksum:tI(),data:[r.rules,o.rules]};n(a),R_.setItem("pleromafe-theme-cache",a),console.info("Theme cache stored")}},s);setTimeout(i,0)},rI=({sidebarColumnWidth:e,contentColumnWidth:t,notifsColumnWidth:n,themeEditorMinWidth:s,emojiReactionsScale:r,emojiSize:o,navbarSize:i,panelHeaderSize:a,textSize:c,forcedRoundness:u})=>{const f={sidebarColumnWidth:e,contentColumnWidth:t,notifsColumnWidth:n,themeEditorMinWidth:parseInt(s)===0?"fit-content":s,emojiReactionsScale:r,emojiSize:o,navbarSize:i,panelHeaderSize:a,textSize:c};switch(u){case"disable":break;case"0":f.forcedRoundness="0";break;case"1":f.forcedRoundness="1px";break;case"2":f.forcedRoundness="0.4rem";break}return f},ax=rI(Au),X0=e=>{const t=rI(e);if(t===ax)return;const n=Object.entries(t).filter(([,r])=>r).map(([r,o])=>`--${r}: ${o}`).join(";"),s=Ku("theme-holder",30);s.clear(),s.addRule(`:root { ${n} }`),Object.prototype.hasOwnProperty.call(t,"forcedRoundness")&&s.addRule(` *:not(.preview-block) {
--roundness: var(--forcedRoundness) !important;
}`),s.ready=!0,Ch()},Wg=async(e,t=JSON.parse)=>{const n="no-store",s=e.replace(/\.(\w+)$/,".custom.$1");let r,o;const i=c=>Object.entries(c).map(([u,f])=>typeof f=="object"?[u,()=>Promise.resolve(f)]:typeof f=="string"?[u,()=>window.fetch(f,{cache:n}).then(h=>h.text()).then(h=>t(h)).catch(h=>(console.error(h),null))]:(console.error(`Unknown resource format - ${u} is a ${typeof f}`),[u,null]));try{const u=await(await window.fetch(e,{cache:n})).json();r=i(u)}catch{r=[],console.warn(`Builtin resources at ${e} unavailable`)}try{const u=await(await window.fetch(s,{cache:n})).json();o=i(u)}catch{o=[],console.warn(`Custom resources at ${s} unavailable`)}const a=[...o,...r];return a.length===0?Promise.reject(new Error(`Resource at ${e} and ${s} completely unavailable. Panicking`)):Promise.resolve(Object.fromEntries(a))},oI=["ar","ca","cs","de","eo","en","es","et","eu","fi","fr","ga","he","hu","it","ja","ja_easy","ko","nan-TW","nb","nl","oc","pl","pdc","pt","ro","ru","sk","te","uk","zh","zh_Hant"],lx={ja:"ja_pedantic"},cx=e=>lx[e]||e,M_=e=>{const t=Array.isArray(e)?e:[e];return t.includes("en")?t:t.concat(["en"])},iI={mrf:{federation:"Federation",keyword:{keyword_policies:"Keyword policies",ftl_removal:'Removal from "The Whole Known Network" Timeline',reject:"Reject",replace:"Replace",is_replaced_by:"→"},mrf_policies:"Enabled MRF policies",mrf_policies_desc:"MRF policies manipulate the federation behaviour of the instance. The following policies are enabled:",simple:{simple_policies:"Instance-specific policies",instance:"Instance",reason:"Reason",not_applicable:"N/A",accept:"Accept",accept_desc:"This instance only accepts messages from the following instances:",reject:"Reject",reject_desc:"This instance will not accept messages from the following instances:",quarantine:"Quarantine",quarantine_desc:"This instance will send only public posts to the following instances:",ftl_removal:'Removal from "Known Network" Timeline',ftl_removal_desc:'This instance removes these instances from "Known Network" timeline:',media_removal:"Media Removal",media_removal_desc:"This instance removes media from posts on the following instances:",media_nsfw:"Media force-set as sensitive",media_nsfw_desc:"This instance forces media to be set sensitive in posts on the following instances:"}},staff:"Staff",terms:"Terms of Service"},aI={page_header:"Announcements",title:"Announcement",mark_as_read_action:"Mark as read",post_form_header:"Post announcement",post_placeholder:"Type your announcement content here...",post_action:"Post",post_error:"Error: {error}",close_error:"Close",delete_action:"Delete",start_time_prompt:"Start time: ",end_time_prompt:"End time: ",all_day_prompt:"This is an all-day event",published_time_display:"Published at {time}",start_time_display:"Starts at {time}",end_time_display:"Ends at {time}",edit_action:"Edit",submit_edit_action:"Submit",cancel_edit_action:"Cancel",inactive_message:"This announcement is inactive"},lI={title:"Shoutbox"},cI={mute:"Mute",mute_progress:"Muting…",unmute:"Unmute",unmute_progress:"Unmuting…"},uI={export:"Export",processing:"Processing, you'll soon be asked to download your file"},dI={shout:"Shoutbox",pleroma_chat_messages:"Pleroma Chat",gopher:"Gopher",media_proxy:"Media proxy",scope_options:"Scope options",text_limit:"Text limit",title:"Features",who_to_follow:"Who to follow",upload_limit:"Upload limit"},fI={error_fetching_user:"Error fetching user",find_user:"Find user"},hI={apply:"Apply",submit:"Submit",more:"More",loading:"Loading…",generic_error:"An error occured",generic_error_message:"An error occured: {0}",error_retry:"Please try again",retry:"Try again",optional:"optional",show_more:"Show more",show_less:"Show less",never_show_again:"Never show again",dismiss:"Dismiss",cancel:"Cancel",disable:"Disable",enable:"Enable",confirm:"Confirm",verify:"Verify",close:"Close",undo:"Undo",yes:"Yes",no:"No",peek:"Peek",scroll_to_top:"Scroll to top",role:{admin:"Admin",moderator:"Moderator"},unpin:"Unpin item",pin:"Pin item",flash_content:"Click to show Flash content using Ruffle (Experimental, may not work).",flash_security:"Note that this can be potentially dangerous since Flash content is still arbitrary code.",flash_fail:"Failed to load flash content, see console for details.",scope_in_timeline:{local:"Non-federated",direct:"Direct",private:"Followers-only",public:"Public",unlisted:"Unlisted"}},pI={crop_picture:"Crop picture",save:"Save",save_without_cropping:"Save without cropping",cancel:"Cancel"},mI={submit:"Submit",success:"Imported successfully.",error:"An error occured while importing this file."},gI={login:"Log in",description:"Log in with OAuth",logout:"Log out",logout_confirm_title:"Logout confirmation",logout_confirm:"Do you really want to logout?",logout_confirm_accept_button:"Logout",logout_confirm_cancel_button:"Do not logout",password:"Password",placeholder:"e.g. lain",register:"Register",username:"Username",hint:"Log in to join the discussion",authentication_code:"Authentication code",enter_recovery_code:"Enter a recovery code",enter_two_factor_code:"Enter a two-factor code",recovery_code:"Recovery code",heading:{totp:"Two-factor authentication",recovery:"Two-factor recovery"}},vI={previous:"Previous",next:"Next",counter:"{current} / {total}",hide:"Close media viewer"},bI={about:"About",administration:"Administration",back:"Back",friend_requests:"Follow requests",mentions:"Mentions",interactions:"Interactions",dms:"Direct messages",public_tl:"Public timeline",bubble:"Bubble timeline",timeline:"Timeline",home_timeline:"Home timeline",twkn:"Known Network",bookmarks:"Bookmarks",all_bookmarks:"All bookmarks",bookmark_folders:"Bookmark folders",user_search:"User Search",search:"Search",search_close:"Close search bar",who_to_follow:"Who to follow",preferences:"Preferences",timelines:"Timelines",chats:"Chats",lists:"Lists",edit_nav_mobile:"Customize navigation bar",edit_pinned:"Edit pinned items",edit_finish:"Done editing",mobile_sidebar:"Toggle mobile sidebar",mobile_notifications:"Open notifications (there are unread ones)",mobile_notifications_close:"Close notifications",mobile_notifications_mark_as_seen:"Mark all as seen",announcements:"Announcements",quotes:"Quotes",drafts:"Drafts"},yI={broken_favorite:"Unknown status, searching for it…",error:"Error fetching notifications: {0}",favorited_you:"favorited your status",followed_you:"followed you",follow_request:"wants to follow you",load_older:"Load older notifications",notifications:"Notifications",read:"Read!",repeated_you:"repeated your status",no_more_notifications:"No more notifications",migrated_to:"migrated to",reacted_with:"reacted with {0}",submitted_report:"submitted a report",poll_ended:"poll has ended",unread_announcements:"{num} unread announcement | {num} unread announcements",unread_chats:"{num} unread chat | {num} unread chats",unread_follow_requests:"{num} new follow request | {num} new follow requests",configuration_tip:"You can customize what to display here in {theSettings}. {dismiss}",configuration_tip_settings:"the settings",configuration_tip_dismiss:"Do not show again",subscribed_status:"posted"},_I={add_poll:"Add poll",add_option:"Add option",option:"Option",votes:"votes",people_voted_count:"{count} person voted | {count} people voted",votes_count:"{count} vote | {count} votes",vote:"Vote",type:"Poll type",single_choice:"Single choice",multiple_choices:"Multiple choices",expiry:"Poll age",expires_at:"Poll ends {0}",expires_in:"Poll ends in {0}",expired:"Poll ended {0} ago",expired_at:"Poll ended {0}",not_enough_options:"Too few unique options in poll",non_anonymous:"Public poll",non_anonymous_title:"Other instances may display the options you voted for"},wI={stickers:"Stickers",emoji:"Emoji",keep_open:"Keep picker open",search_emoji:"Search for an emoji",add_emoji:"Insert emoji",custom:"Custom emoji",hide_custom_emoji:"Hide custom emojis",unpacked:"Unpacked emoji",unicode:"Unicode emoji",unicode_groups:{activities:"Activities","animals-and-nature":"Animals & Nature",flags:"Flags","food-and-drink":"Food & Drink",objects:"Objects","people-and-body":"People & Body","smileys-and-emotion":"Smileys & Emotion",symbols:"Symbols","travel-and-places":"Travel & Places"},load_all_hint:"Loaded first {saneAmount} emoji, loading all emoji may cause performance issues.",load_all:"Loading all {emojiAmount} emoji",regional_indicator:"Regional indicator {letter}"},SI={storage_unavailable:"Pleroma could not access browser storage. Your login or your local settings won't be saved and you might encounter unexpected issues. Try enabling cookies."},$I={favs_repeats:"Repeats and favorites",follows:"New follows",emoji_reactions:"Emoji Reactions",reports:"Reports",moves:"User migrates",load_older:"Load older interactions",statuses:"Subscriptions"},kI={edit_status:"Edit status",new_status:"Post new status",reply_option:"Reply to this status",quote_option:"Quote this status",account_not_locked_warning:"Your account is not {0}. Anyone can follow you to view your follower-only posts.",account_not_locked_warning_link:"locked",attachments_sensitive:"Mark attachments as sensitive",media_description:"Media description",content_type:{"text/plain":"Plain text","text/html":"HTML","text/markdown":"Markdown","text/bbcode":"BBCode","text/x.misskeymarkdown":"MFM"},content_type_selection:"Post format",content_warning:"Subject (optional)",default:"Just landed in L.A.",direct_warning_to_all:"This post will be visible to all the mentioned users.",direct_warning_to_first_only:"This post will only be visible to the mentioned users at the beginning of the message.",edit_remote_warning:"Other remote instances may not support editing and unable to receive the latest version of your post.",edit_unsupported_warning:"Pleroma does not support editing mentions or polls.",posting:"Posting",post:"Post",preview:"Preview",preview_empty:"Empty",empty_status_error:"Can't post an empty status with no files",media_description_error:"Failed to update media, try again",scope_notice:{public:"This post will be visible to everyone",private:"This post will be visible to your followers only",unlisted:"This post will not be visible in Public Timeline and The Whole Known Network"},scope_notice_dismiss:"Close this notice",scope:{direct:"Direct - post to mentioned users only",private:"Followers-only - post to followers only",public:"Public - post to public timelines",unlisted:"Unlisted - do not post to public timelines"},close_confirm_title:"Closing post form",close_confirm:"What do you want to do with your current writing?",close_confirm_save_button:"Save",close_confirm_discard_button:"Discard",close_confirm_continue_composing_button:"Continue composing",auto_save_nothing_new:"Nothing new to save.",auto_save_saved:"Saved.",auto_save_saving:"Saving...",save_to_drafts_button:"Save to drafts",save_to_drafts_and_close_button:"Save to drafts and close",more_post_actions:"More post actions..."},CI={bio_optional:"Bio (optional)",email:"Email",email_optional:"Email (optional)",fullname:"Display name",password_confirm:"Password confirmation",registration:"Registration",token:"Invite token",captcha:"CAPTCHA",new_captcha:"Click the image to get a new captcha",username_placeholder:"e.g. lain",fullname_placeholder:"e.g. Lain Iwakura",bio_placeholder:`e.g.
Hi, I'm Lain.
Im an anime girl living in suburban Japan. You may know me from the Wired.`,reason:"Reason to register",reason_placeholder:`This instance approves registrations manually.
Let the administration know why you want to register.`,register:"Register",validations:{username_required:"cannot be left blank",fullname_required:"cannot be left blank",email_required:"cannot be left blank",password_required:"cannot be left blank",password_confirmation_required:"cannot be left blank",password_confirmation_match:"should be the same as password",birthday_required:"cannot be left blank",birthday_min_age:"must be on or before {date}"},email_language:"In which language do you want to receive emails from the server?",birthday:"Birthday:",birthday_optional:"Birthday (optional):"},TI={remote_user_resolver:"Remote user resolver",searching_for:"Searching for",error:"Not found."},AI={reporter:"Reporter:",reported_user:"Reported user:",reported_statuses:"Reported statuses:",notes:"Notes:",state:"State:",state_open:"Open",state_closed:"Closed",state_resolved:"Resolved"},EI={select_all:"Select all"},II=JSON.parse(`{"add_language":"Add fallback language","remove_language":"Remove","primary_language":"Primary language:","fallback_language":"Fallback language {index}:","actor_type":"This account is:","actor_type_description":"Marking your account as a group will make it automatically repeat statuses that mention it.","actor_type_Person":"a normal user","actor_type_person_proper":"a person","actor_type_Service":"a bot","actor_type_Group":"a group","mobile_center_dialog":"Vertically center dialogs on mobile","app_name":"App name","expert_mode":"Show advanced","save":"Save changes","reset":"Reset changes","security":"Security","toggle_edit":"Edit","change_banner":"Change banner","change_avatar":"Change avatar","setting_changed":"Setting is different from default","setting_server_side":"This setting is tied to your profile and affects all sessions and clients","enter_current_password_to_confirm":"Enter your current password to confirm your identity","post_look_feel":"Posts Look & Feel","mention_links":"Mention links","appearance":"Appearance","confirm_new_setting":"Confirm new setting?","confirm_new_question":"Does this look ok? Setting will be reverted in 10 seconds.","revert":"Revert","confirm":"Confirm","text_size":"Text and interface size","text_size_tip":"Use {0} for absolute values, {1} will scale with browser default text size.","text_size_tip2":"Values other than {0} might break some things and themes","emoji_size":"Emoji size","navbar_size":"Top bar size","panel_header_size":"Panel header size","visual_tweaks":"Minor visual tweaks","theme_debug":"Show what background theme engine assumes when dealing with transparancy (DEBUG)","scale_and_layout":"Interface scale and layout","enabled":"Enabled","filter":{"clutter":"Remove clutter","mute_filter":"Mute Filters","type":"Filter type","regexp":"RegExp","plain":"Simple","user":"User (Simple)","user_regexp":"User (RegExp)","hide":"Hide completely","name":"Name","value":"Value","expires":"Expires","expired":"Expired","copy":"Duplicate","save":"Save","delete":"Remove","new":"Create new","import":"Import","export":"Export","regexp_error":"Invalid Regular Expression","never_expires":"Never","total_count":"Total {count} custom filter|Total {count} custom filters","expired_count":"{count} expired filter|{count} expired filters","custom_filters":"Custom filters","purge_expired":"Remove expired filters","import_failure":"The selected file is not a supported Pleroma filter.","help":{"word":"Simple and RegExp filters test against post's content and subject.","user":"User filter matches full user handle (user{'@'}domain) in the following: author, reply-to and mentions","regexp":"Regex variants are more advanced and use {link} to match instead of simple substring search.","regexp_link":"Regular Expressions","regexp_url":"https://en.wikipedia.org/wiki/Regular_expression"}},"mfa":{"otp":"OTP","setup_otp":"Setup OTP","wait_pre_setup_otp":"presetting OTP","confirm_and_enable":"Confirm & enable OTP","title":"Two-factor Authentication","generate_new_recovery_codes":"Generate new recovery codes","warning_of_generate_new_codes":"When you generate new recovery codes, your old codes wont work anymore.","recovery_codes":"Recovery codes.","waiting_a_recovery_codes":"Receiving backup codes…","recovery_codes_warning":"Write the codes down or save them somewhere secure - otherwise you won't see them again. If you lose access to your 2FA app and recovery codes you'll be locked out of your account.","authentication_methods":"Authentication methods","scan":{"title":"Scan","desc":"Using your two-factor app, scan this QR code or enter text key:","secret_code":"Key"},"verify":{"desc":"To enable two-factor authentication, enter the code from your two-factor app:"}},"units":{"time":{"m":"minutes","s":"seconds","h":"hours","d":"days"}},"lists_navigation":"Show lists in navigation","allow_following_move":"Allow auto-follow when following account moves","attachmentRadius":"Attachments","attachments":"Attachments","image_compression":"Compress images before uploading","always_use_jpeg":"Always convert images to JPEG format","avatar":"Avatar","avatarAltRadius":"Avatars (notifications)","avatarRadius":"Avatars","background":"Background","bio":"Bio","profile_other":"Other","email_language":"Language for receiving emails from the server","block_export":"Block export","block_export_button":"Export your blocks to a csv file","block_import":"Block import","block_import_error":"Error importing blocks","blocks_imported":"Blocks imported! Processing them will take a while.","mute_export":"Mute export","mute_export_button":"Export your mutes to a csv file","mute_import":"Mute import","mute_import_error":"Error importing mutes","mutes_imported":"Mutes imported! Processing them will take a while.","import_mutes_from_a_csv_file":"Import mutes from a csv file","account_backup":"Account backup","account_backup_description":"This allows you to download an archive of your account information and your posts, but they cannot yet be imported into a Pleroma account.","account_backup_table_head":"Backup","download_backup":"Download","backup_not_ready":"This backup is not ready yet.","backup_running":"This backup is in progress, processed {number} record. | This backup is in progress, processed {number} records.","backup_failed":"This backup has failed.","remove_backup":"Remove","list_backups_error":"Error fetching backup list: {error}","add_backup":"Create a new backup","added_backup":"Added a new backup.","add_backup_error":"Error adding a new backup: {error}","blocks_tab":"Blocks","btnRadius":"Buttons","cBlue":"Blue (Reply, follow)","cGreen":"Green (Retweet)","cOrange":"Orange (Favorite)","cRed":"Red (Cancel)","change_email":"Change email","change_email_error":"There was an issue changing your email.","changed_email":"Email changed successfully!","change_password":"Change password","change_password_error":"There was an issue changing your password.","changed_password":"Password changed successfully!","chatMessageRadius":"Chat message","collapse_subject":"Collapse posts with subjects","composing":"Composing","confirm_new_password":"Confirm new password","current_password":"Current password","confirm_dialogs":"Ask for confirmation when","confirm_dialogs_repeat":"repeating a status","confirm_dialogs_unfollow":"unfollowing a user","confirm_dialogs_block":"blocking a user","confirm_dialogs_mute":"muting a user","confirm_dialogs_mute_domain":"muting domains","confirm_dialogs_mute_conversation":"muting conversations","confirm_dialogs_delete":"deleting a status","confirm_dialogs_logout":"logging out","confirm_dialogs_approve_follow":"approving a follower","confirm_dialogs_deny_follow":"denying a follower","confirm_dialogs_remove_follower":"removing a follower","mutes_and_blocks":"Mutes and Blocks","data_import_export_tab":"Data import / export","default_vis":"Default visibility scope","delete_account":"Delete account","delete_account_description":"Permanently delete your data and deactivate your account.","delete_account_error":"There was an issue deleting your account. If this persists please contact your instance administrator.","delete_account_instructions":"Type your password in the input below to confirm account deletion.","account_alias":"Account aliases","account_alias_table_head":"Alias","list_aliases_error":"Error fetching aliases: {error}","hide_list_aliases_error_action":"Close","remove_alias":"Remove this alias","new_alias_target":"Add a new alias (e.g. {example})","added_alias":"Alias is added.","add_alias_error":"Error adding alias: {error}","move_account":"Move account","move_account_notes":"If you want to move the account somewhere else, you must go to your target account and add an alias pointing here.","move_account_target":"Target account (e.g. {example})","moved_account":"Account is moved.","move_account_error":"Error moving account: {error}","discoverable":"Allow discovery of this account in search results and other services","domain_mutes":"Domains","avatar_size_instruction":"The recommended minimum size for avatar images is 150x150 pixels. Recommended aspect ratio is 1:1","banner_size_instruction":"The recommended minimum size for banner images is 450x150 pixels. Recommended aspect ratio is 3:1","pad_emoji":"Pad emoji with spaces when adding from picker","autocomplete_select_first":"Automatically select the first candidate when autocomplete results are available","unsaved_post_action":"When you try to close an unsaved posting form","unsaved_post_action_save":"Save it to drafts","unsaved_post_action_discard":"Discard it","unsaved_post_action_confirm":"Ask every time","auto_save_draft":"Save drafts as you compose","emoji_reactions_on_timeline":"Show emoji reactions on timeline","emoji_reactions_scale":"Reactions scale factor","absolute_time_format":"Use absolute time format","absolute_time_format_min_age":"Only use for time older than this amount of time","absolute_time_format_12h":"Time format","absolute_time_format_12h_12h":"12 hour format (i.e. 10:00 PM)","absolute_time_format_12h_24h":"24 hour format (i.e. 22:00)","export_theme":"Save preset","filtering":"Filtering","wordfilter":"Wordfilter","filtering_explanation":"All statuses containing these words will be muted, one per line","word_filter_and_more":"Word filter and more...","follow_export":"Follow export","follow_export_button":"Export your follows to a csv file","follow_import":"Follow import","follow_import_error":"Error importing followers","follows_imported":"Follows imported! Processing them will take a while.","accent":"Accent","foreground":"Foreground","general":"General","hide_attachments_in_convo":"Hide attachments in conversations","hide_attachments_in_tl":"Hide attachments in timeline","hide_media_previews":"Hide media previews","hide_muted_posts":"Hide posts of muted users","mute_bot_posts":"Mute bot posts","hide_actor_type_indication":"Hide actor type (bots, groups, etc.) indication in posts","hide_scrobbles":"Hide scrobbles","hide_scrobbles_after":"Hide scrobbles older than","mute_sensitive_posts":"Mute sensitive posts","hide_all_muted_posts":"Hide muted posts","max_thumbnails":"Maximum amount of thumbnails per post (empty = no limit)","hide_isp":"Hide instance-specific panel","hide_shoutbox":"Hide instance shoutbox","right_sidebar":"Reverse order of columns","navbar_column_stretch":"Stretch navbar to columns width","always_show_post_button":"Always show floating New Post button","hide_wallpaper":"Hide instance wallpaper","preload_images":"Preload images","use_one_click_nsfw":"Open NSFW attachments with just one click","hide_post_stats":"Hide post statistics (e.g. the number of favorites)","hide_user_stats":"Hide user statistics (e.g. the number of followers)","hide_filtered_statuses":"Hide all filtered posts","hide_muted_statuses":"Completely hide all muted posts","hide_wordfiltered_statuses":"Hide word-filtered statuses","hide_muted_threads":"Hide muted threads","import_blocks_from_a_csv_file":"Import blocks from a csv file","import_followers_from_a_csv_file":"Import follows from a csv file","import_theme":"Load preset","inputRadius":"Input fields","checkboxRadius":"Checkboxes","instance_default":"(default: {value})","instance_default_simple":"(default)","interface":"Interface","interfaceLanguage":"Interface language","invalid_theme_imported":"The selected file is not a supported Pleroma theme. No changes to your theme were made.","limited_availability":"Unavailable in your browser","links":"Links","lock_account_description":"Restrict your account to approved followers only","loop_video":"Loop videos","loop_video_silent_only":"Loop only videos without sound (i.e. Mastodon's \\"gifs\\")","mutes_tab":"Mutes","play_videos_in_modal":"Play videos in a popup frame","url":"URL","preview":"Preview","file_export_import":{"backup_restore":"Settings backup","backup_settings":"Backup settings to file","backup_settings_theme":"Backup settings and theme to file","restore_settings":"Restore settings from file","errors":{"invalid_file":"The selected file is not a supported Pleroma settings backup. No changes were made.","file_too_new":"Incompatile major version: {fileMajor}, this PleromaFE (settings ver {feMajor}) is too old to handle it","file_too_old":"Incompatile major version: {fileMajor}, file version is too old and not supported (min. set. ver. {feMajor})","file_slightly_new":"File minor version is different, some settings might not load"}},"profile_fields":{"label":"Profile metadata","add_field":"Add field","name":"Label","value":"Content"},"birthday":{"label":"Birthday","show_birthday":"Show my birthday"},"account_profile_edit":"Edit Profile","account_privacy":"Privacy","use_contain_fit":"Don't crop the attachment in thumbnails","name":"Name","name_bio":"Name & bio","new_email":"New email","new_password":"New password","posts":"Posts","user_profiles":"User Profiles","notification_visibility":"Types of notifications to show","notification_visibility_in_column":"Show in notifications column/drawer","notification_visibility_native_notifications":"Show a native notification","notification_visibility_follows":"Follows","notification_visibility_follow_requests":"Follow requests","notification_visibility_likes":"Favorites","notification_visibility_mentions":"Mentions","notification_visibility_repeats":"Repeats","notification_visibility_reports":"Reports","notification_visibility_moves":"User Migrates","notification_visibility_emoji_reactions":"Reactions","notification_visibility_polls":"Ends of polls you voted in","notification_visibility_statuses":"Subscriptions","notification_show_extra":"Show extra notifications in the notifications column","notification_extra_chats":"Show unread chats","notification_extra_announcements":"Show unread announcements","notification_extra_follow_requests":"Show new follow requests","notification_extra_tip":"Show the customization tip for extra notifications","no_rich_text_description":"Strip rich text formatting from all posts","no_blocks":"No blocks","no_mutes":"No mutes","hide_favorites_description":"Don't show list of my favorites (people still get notified)","hide_follows_description":"Don't show who I'm following","hide_followers_description":"Don't show who's following me","hide_follows_count_description":"Don't show follow count","hide_followers_count_description":"Don't show follower count","show_admin_badge":"Show \\"Admin\\" badge in my profile","show_moderator_badge":"Show \\"Moderator\\" badge in my profile","nsfw_clickthrough":"Hide sensitive/NSFW media","oauth_tokens":"OAuth tokens","token":"Token","refresh_token":"Refresh token","valid_until":"Valid until","revoke_token":"Revoke","panelRadius":"Panels","pause_on_unfocused":"Pause when tab is not focused","presets":"Presets","profile_background":"Profile background","profile_banner":"Profile banner","profile_tab":"Profile","radii_help":"Set up interface edge rounding (in pixels)","replies_in_timeline":"Replies in timeline","reply_visibility_all":"Show all replies","reply_visibility_following":"Only show replies directed at me or users I'm following","reply_visibility_self":"Only show replies directed at me","reply_visibility_following_short":"Show replies to my follows","reply_visibility_self_short":"Show replies to self only","autohide_floating_post_button":"Automatically hide New Post button (mobile)","saving_err":"Error saving settings","saving_ok":"Settings saved","search_user_to_block":"Search whom you want to block","search_user_to_mute":"Search whom you want to mute","security_tab":"Security","scope_copy":"Copy scope when replying (DMs are always copied)","minimal_scopes_mode":"Minimize post scope selection options","set_new_avatar":"Set new avatar","set_new_profile_background":"Set new profile background","set_new_background":"Set new background","set_new_profile_banner":"Set new profile banner","reset_avatar":"Reset avatar","reset_banner":"Reset banner","reset_profile_background":"Reset profile background","reset_profile_banner":"Reset profile banner","reset_avatar_confirm":"Do you really want to reset the avatar?","reset_banner_confirm":"Do you really want to reset the banner?","reset_background_confirm":"Do you really want to reset the background?","settings":"Settings","subject_input_always_show":"Always show subject field","subject_line_behavior":"Copy subject when replying","subject_line_email":"Like email: \\"re: subject\\"","subject_line_mastodon":"Like mastodon: copy as is","subject_line_noop":"Do not copy","force_theme_recompilation_debug":"Disable theme cahe, force recompile on each boot (DEBUG)","conversation_display":"Conversation display style","conversation_display_tree":"Tree-style","conversation_display_tree_quick":"Tree view","disable_sticky_headers":"Don't stick column headers to top of the screen","show_scrollbars":"Show side column's scrollbars","third_column_mode":"When there's enough space, show third column containing","third_column_mode_none":"Don't show third column at all","third_column_mode_notifications":"Notifications column","third_column_mode_postform":"Main post form and navigation","columns":"Columns","column_sizes":"Column sizes","column_sizes_sidebar":"Sidebar","column_sizes_content":"Content","column_sizes_notifs":"Notifications","theme_editor_min_width":"Minimum width of theme editor (0 for \\"fit-content\\")","tree_advanced":"Allow more flexible navigation in tree view","tree_fade_ancestors":"Display ancestors of the current status in faint text","conversation_display_linear":"Linear-style","conversation_display_linear_quick":"Linear view","conversation_other_replies_button":"Show the \\"other replies\\" button","conversation_other_replies_button_below":"Below statuses","conversation_other_replies_button_inside":"Inside statuses","max_depth_in_thread":"Maximum number of levels in thread to display by default","post_status_content_type":"Post status content type","sensitive_by_default":"Mark posts as sensitive by default","stop_gifs":"Pause animated images until you hover on them","streaming":"Automatically show new posts when scrolled to the top","auto_update":"Show new posts automatically","user_mutes":"Users","useStreamingApi":"Receive posts and notifications real-time","use_websockets":"Use websockets (Realtime updates)","text":"Text","theme":"Theme","theme_old":"Theme editor (old)","theme_help":"Use hex color codes (#rrggbb) to customize your color theme.","theme_help_v2_1":"You can also override certain component's colors and opacity by toggling the checkbox, use \\"Clear all\\" button to clear all overrides.","theme_help_v2_2":"Icons underneath some entries are background/text contrast indicators, hover over for detailed info. Please keep in mind that when using transparency contrast indicators show the worst possible case.","tooltipRadius":"Tooltips/alerts","type_domains_to_mute":"Search domains to mute","upload_a_photo":"Upload a photo","upload_picture":"Upload picture","select_picture":"Select picture","user_settings":"User Settings","values":{"false":"no","true":"yes"},"virtual_scrolling":"Optimize timeline rendering","use_at_icon":"Display {'@'} symbol as an icon instead of text","mention_link_display":"Display mention links","mention_link_display_short":"always as short names (e.g. {'@'}foo)","mention_link_display_full_for_remote":"as full names only for remote users (e.g. {'@'}foo{'@'}example.org)","mention_link_display_full":"always as full names (e.g. {'@'}foo{'@'}example.org)","mention_link_use_tooltip":"Show user card when clicking mention links","mention_link_show_avatar":"Show user avatar beside the link","mention_link_show_avatar_quick":"Show user avatar next to mentions","mention_link_fade_domain":"Fade domains (e.g. {'@'}example.org in {'@'}foo{'@'}example.org)","mention_link_bolden_you":"Highlight mention of you when you are mentioned","user_popover_avatar_action":"Popover avatar click action","user_popover_avatar_action_zoom":"Zoom the avatar","user_popover_avatar_action_close":"Close the popover","user_popover_avatar_action_open":"Open profile","user_popover_avatar_overlay":"Show user popover over user avatar","user_card_left_justify":"Justify user bio to the left","user_card_hide_personal_marks":"Hide personal marks (highlight/note) in user profiles","fun":"Fun","greentext":"Meme arrows","show_yous":"Show (You)s","notifications":"Notifications","notification_setting_annoyance":"Annoyance","notification_setting_drawer_marks_as_seen":"Closing drawer (mobile) marks all notifications as read","notification_setting_ignore_inactionable_seen":"Ignore read state of inactionable notifications (likes, repeats etc)","notification_setting_ignore_inactionable_seen_tip":"This will not actually mark those notifications as read, and you'll still get desktop notifications about them if you chose so","notification_setting_unseen_at_top":"Show unread notifications above others","notification_setting_filters":"Filters","notification_setting_filters_chrome_push":"On some browsers (chrome) it might be impossible to completely filter out notifications by type when they arrive by Push","notification_setting_block_from_strangers":"Block notifications from users who you do not follow","notification_setting_privacy":"Privacy","notification_setting_hide_notification_contents":"Hide the sender and contents of push notifications","notification_mutes":"To stop receiving notifications from a specific user, use a mute.","notification_blocks":"Blocking a user stops all notifications as well as unsubscribes them.","enable_web_push_notifications":"Enable web push notifications","enable_web_push_always_show":"Always show web push notifications","enable_web_push_always_show_tip":"Some browsers (Chromium, Chrome) require that push messages always result in a notification, otherwise generic 'Website was updated in background' is shown, enable this to prevent this notification from showing, as Chrome seem to hide push notifications if tab is in focus. Can result in showing duplicate notifications on other browsers.","more_settings":"More settings","style":{"custom_theme_used":"(Custom theme)","custom_style_used":"(Custom style)","stock_theme_used":"(Stock theme)","themes2_outdated":"Editor for Themes V2 is being phased out and will eventually be replaced with a new one that takes advantage of new Themes V3 engine. It should still work but experience might be degraded and inconsistent.","appearance_tab_note":"Changes on this tab do not affect the theme used, so exported theme will be different from what seen in the UI","update_preview":"Update preview","themes3":{"define":"Override","palette":{"label":"Color schemes","name_label":"Color scheme name","import":"Import palette","export":"Export palette","apply":"Apply palette","bg":"Panel background","fg":"Buttons etc.","text":"Text","link":"Links","accent":"Accent color","cRed":"Red color","cBlue":"Blue color","cGreen":"Green color","cOrange":"Orange color","wallpaper":"Wallpaper","v2_unsupported":"Older v2 themes don't support palettes. Switch to v3 theme to make use of palettes","bundled":"Bundled palettes","style":"Palettes provided by selected style","user":"Custom palette","imported":"Imported"},"editor":{"title":"Style editor","reset_style":"Reset","load_style":"Open from file","save_style":"Save","style_name":"Stylesheet name","style_author":"Made by","style_license":"License","style_website":"Website","component_selector":"Component","variant_selector":"Variant","states_selector":"States","main_tab":"Main","shadows_tab":"Shadows","background":"Background color","text_color":"Text color","icon_color":"Icon color","link_color":"Link color","contrast":"Text contrast","roundness":"Roundness","opacity":"Opacity","border_color":"Border color","include_in_rule":"Add to rule","test_string":"TEST","invalid":"Invalid","refresh_preview":"Refresh preview","apply_preview":"Apply","text_auto":{"label":"Auto-contrast","no-preserve":"Black or White","preserve":"Keep color","no-auto":"Disabled"},"component_tab":"Components style","palette_tab":"Color schemes","variables_tab":"Variables (Advanced)","variables":{"label":"Variables","name_label":"Name:","type_label":"Type:","type_shadow":"Shadow","type_color":"Color","type_generic":"Generic","virtual_color":"Variable color value"}},"hacks":{"underlay_overrides":"Change underlay","underlay_override_mode_none":"Theme default","underlay_override_mode_opaque":"Replace with solid color","underlay_override_mode_transparent":"Remove entirely (might break some themes)","force_interface_roundness":"Override interface roundness/sharpness","forced_roundness_mode_disabled":"Use theme defaults","forced_roundness_mode_sharp":"Force sharp edges","forced_roundness_mode_nonsharp":"Force not-so-sharp (1px roundness) edges","forced_roundness_mode_round":"Force round edges"},"font":{"group-builtin":"Browser default fonts","builtin":{"serif":"Serif","sans-serif":"Sans-serif","monospace":"Monospace","inherit":"Unchanged"},"group-local":"Locally installed fonts","local-unavailable1":"List of locally installed fonts unavailalbe","local-unavailable2":"Use manual entry to specify custom font","font_list_unavailable":"Couldn't get locally installed fonts: {error}","lookup_local_fonts":"Load list of fonts installed on this computer","enter_manually":"Enter font name family manually","entry":"Enter {fontFamily}","select":"Select font","label":"{label} font"}},"interface_font_user_override":"Override theme/browser font used","switcher":{"keep_color":"Keep colors","keep_shadows":"Keep shadows","keep_opacity":"Keep opacity","keep_roundness":"Keep roundness","keep_fonts":"Keep fonts","save_load_hint":"\\"Keep\\" options preserve currently set options when selecting or loading themes, it also stores said options when exporting a theme. When all checkboxes unset, exporting theme will save everything.","reset":"Reset","clear_all":"Clear all","clear_opacity":"Clear opacity","load_theme":"Load theme","keep_as_is":"Keep as is","use_snapshot":"Old version","use_source":"New version","help":{"upgraded_from_v2":"PleromaFE has been upgraded, theme could look a little bit different than you remember.","v2_imported":"File you imported was made for older FE. We try to maximize compatibility but there still could be inconsistencies.","future_version_imported":"File you imported was made in newer version of FE.","older_version_imported":"File you imported was made in older version of FE.","snapshot_present":"Theme snapshot is loaded, so all values are overriden. You can load theme's actual data instead.","snapshot_missing":"No theme snapshot was in the file so it could look different than originally envisioned.","fe_upgraded":"PleromaFE's theme engine upgraded after version update.","fe_downgraded":"PleromaFE's version rolled back.","migration_snapshot_ok":"Just to be safe, theme snapshot loaded. You can try loading theme data.","migration_napshot_gone":"For whatever reason snapshot was missing, some stuff could look different than you remember.","snapshot_source_mismatch":"Versions conflict: most likely FE was rolled back and updated again, if you changed theme using older version of FE you most likely want to use old version, otherwise use new version."}},"common":{"color":"Color","opacity":"Opacity","contrast":{"hint":"Contrast ratio is {ratio}, it {level} {context}","level":{"aa":"meets Level AA guideline (minimal)","aaa":"meets Level AAA guideline (recommended)","bad":"doesn't meet any accessibility guidelines"},"context":{"18pt":"for large (18pt+) text","text":"for text"}}},"common_colors":{"_tab_label":"Common","main":"Common colors","foreground_hint":"See \\"Advanced\\" tab for more detailed control","rgbo":"Icons, accents, badges"},"advanced_colors":{"_tab_label":"Advanced","alert":"Alert background","alert_error":"Error","alert_warning":"Warning","alert_neutral":"Neutral","post":"Posts/User bios","badge":"Badge background","popover":"Tooltips, menus, popovers","badge_notification":"Notification","panel_header":"Panel header","top_bar":"Top bar","borders":"Borders","buttons":"Buttons","inputs":"Input fields","faint_text":"Faded text","underlay":"Underlay","wallpaper":"Wallpaper","poll":"Poll graph","icons":"Icons","highlight":"Highlighted elements","pressed":"Pressed","selectedPost":"Selected post","selectedMenu":"Selected menu item","disabled":"Disabled","toggled":"Toggled","tabs":"Tabs","chat":{"incoming":"Incoming","outgoing":"Outgoing","border":"Border"}},"radii":{"_tab_label":"Roundness"},"shadows":{"_tab_label":"Shadow and lighting","component":"Component","override":"Override","shadow_id":"Shadow #{value}","offset":"Shadow offset","zoom":"Zoom","offset-x":"x:","offset-y":"y:","light_grid":"Use light checkerboard","color_override":"Use different color","name":"Name","blur":"Blur","spread":"Spread","inset":"Inset","raw":"Plain shadow","expression":"Expression (advanced)","empty_expression":"Empty expression","hintV3":"For shadows you can also use the {0} notation to use other color slot.","filter_hint":{"always_drop_shadow":"Warning, this shadow always uses {0} when browser supports it.","drop_shadow_syntax":"{0} does not support {1} parameter and {2} keyword.","avatar_inset_short":"Separate inset shadow","avatar_inset":"Please note that combining both inset and non-inset shadows on avatars might give unexpected results with transparent avatars.","spread_zero":"Shadows with spread > 0 will appear as if it was set to zero","inset_classic":"Inset shadows will be using {0}"},"components":{"panel":"Panel","panelHeader":"Panel header","topBar":"Top bar","avatar":"User avatar (in profile view)","avatarStatus":"User avatar (in post display)","popup":"Popups and tooltips","button":"Button","buttonHover":"Button (hover)","buttonPressed":"Button (pressed)","buttonPressedHover":"Button (pressed+hover)","input":"Input field"}},"fonts":{"_tab_label":"Fonts","help":"Select font to use for elements of UI. For \\"custom\\" you have to enter exact font name as it appears in system.","components":{"interface":"Interface","input":"Input fields","post":"Post text","monospace":"Monospaced text"},"family":"Font name","size":"Size (in px)","weight":"Weight (boldness)","custom":"Custom"},"preview":{"header":"Preview","content":"Content","error":"Example error","button":"Button","text":"A bunch of more {0} and {1}","mono":"content","input":"Just landed in L.A.","faint_link":"helpful manual","fine_print":"Read our {0} to learn nothing useful!","header_faint":"This is fine","checkbox":"I have skimmed over terms and conditions","link":"a nice lil' link"}},"version":{"title":"Version","backend_version":"Backend version","frontend_version":"Frontend version"},"commit_value":"Save","commit_value_tooltip":"Value is not saved, press this button to commit your changes","reset_value":"Reset","reset_value_tooltip":"Reset draft","hard_reset_value":"Hard reset","hard_reset_value_tooltip":"Remove setting from storage, forcing use of default value","cache":"Cache","clear_asset_cache":"Clear asset cache","clear_emoji_cache":"Clear emoji cache"}`),PI={window_title:"Administration",wip_notice:"This admin dashboard is experimental and WIP, {adminFeLink}.",old_ui_link:"old admin UI available here",reset_all:"Reset all",commit_all:"Save all",tabs:{nodb:"No DB Config",instance:"Instance",limits:"Limits",frontends:"Front-ends",emoji:"Emoji"},nodb:{heading:"Database config is disabled",text:"You need to change backend config files so that {property} is set to {value}, see more in {documentation}.",documentation:"documentation",text2:"Most configuration options will be unavailable."},captcha:{native:"Native",kocaptcha:"KoCaptcha"},instance:{instance:"Instance information",registrations:"User sign-ups",captcha_header:"CAPTCHA",kocaptcha:"KoCaptcha settings",access:"Instance access",restrict:{header:"Restrict access for anonymous visitors",description:"Detailed setting for allowing/disallowing access to certain aspects of API. By default (indeterminate state) it will disallow if instance is not public, ticked checkbox means disallow access even if instance is public, unticked means allow access even if instance is private. Please note that unexpected behavior might happen if some settings are set, i.e. if profile access is disabled posts will show without profile information.",timelines:"Timelines access",profiles:"User profiles access",activities:"Statuses/activities access"}},limits:{arbitrary_limits:"Arbitrary limits",posts:"Post limits",uploads:"Attachments limits",users:"User profile limits",profile_fields:"Profile fields limits",user_uploads:"Profile media limits"},frontend:{repository:"Repository link",versions:"Available versions",build_url:"Build URL",reinstall:"Reinstall",is_default:"(Default)",is_default_custom:"(Default, version: {version})",install:"Install",install_version:"Install version {version}",more_install_options:"More install options",more_default_options:"More default setting options",set_default:"Set default",set_default_version:"Set version {version} as default",wip_notice:"Please note that this section is a WIP and lacks certain features as backend implementation of front-end management is incomplete.",default_frontend:"Default frontend",default_frontend_tip:"Default frontend will be shown to all users. Currently there's no way to for a user to select personal frontend. If you switch away from PleromaFE you'll most likely have to use old and buggy AdminFE to do instance configuration until we replace it.",default_frontend_unavail:"Default frontend settings are not available, as this requires configuration in the database",available_frontends:"Available for install",failure_installing_frontend:"Failed to install frontend {version}: {reason}",success_installing_frontend:"Frontend {version} successfully installed"},emoji:{global_actions:"Global actions",reload:"Reload emoji",importFS:"Import emoji from filesystem",error:"Error: {0}",create_pack:"Create pack",delete_pack:"Delete pack",new_pack_name:"New pack name",create:"Create",emoji_packs:"Emoji packs",remote_packs:"Remote packs",do_list:"List",remote_pack_instance:"Remote pack instance",emoji_pack:"Emoji pack",edit_pack:"Edit pack",description:"Description",homepage:"Homepage",fallback_src:"Fallback source",fallback_sha256:"Fallback SHA256",share:"Share",save:"Save",save_meta:"Save metadata",revert_meta:"Revert metadata",delete:"Delete",revert:"Revert",add_file:"Add file",adding_new:"Adding new emoji",shortcode:"Shortcode",filename:"Filename",emoji_source:"Emoji file source",upload_url:"Upload from URL",new_shortcode:"Shortcode, leave blank to infer",new_filename:"Filename, leave blank to infer",delete_confirm:"Are you sure you want to delete {0}?",download_pack:"Download pack",downloading_pack:"Downloading {0}",download:"Download",download_as_name:"New name",download_as_name_full:"New name, leave blank to reuse",files:"Files",editing:"Editing {0}",copying:"Copying {0}",copy_to:"Copy to",copy_to_pack:"Copy to local pack",delete_title:"Delete?",metadata_changed:"Metadata different from saved",emoji_changed:"Unsaved emoji file changes, check highlighted emoji",replace_warning:"This will REPLACE the local pack of the same name",copied_successfully:'Successfully copied emoji "{0}" to pack "{1}"'},temp_overrides:{":pleroma":{":instance":{":public":{label:"Instance is public",description:"Disabling this will make all API accessible only for logged-in users, this will make Public and Federated timelines inaccessible to anonymous visitors."},":limit_to_local_content":{label:"Limit search to local content",description:"Disables global network search for unauthenticated (default), all users or none"},":description_limit":{label:"Limit",description:"Character limit for attachment descriptions"},":background_image":{label:"Background image",description:"Background image (primarily used by PleromaFE)"}}}}},LI={unit:{days:"{0} day | {0} days",days_short:"{0}d",days_suffix:"day(s)",hours:"{0} hour | {0} hours",hours_short:"{0}h",hours_suffix:"hour(s)",minutes:"{0} minute | {0} minutes",minutes_short:"{0}min",minutes_suffix:"minute(s)",months:"{0} month | {0} months",months_short:"{0}mo",months_suffix:"month(s)",seconds:"{0} second | {0} seconds",seconds_short:"{0}s",seconds_suffix:"second(s)",weeks:"{0} week | {0} weeks",weeks_short:"{0}w",weeks_suffix:"week(s)",years:"year(s)",years_short:"{0}y"},in_future:"in {0}",in_past:"{0} ago",now:"just now",now_short:"now"},OI={collapse:"Collapse",conversation:"Conversation",error:"Error fetching timeline: {0}",load_older:"Load older statuses",no_retweet_hint:"Post is marked as followers-only or direct and cannot be repeated",repeated:"repeated",show_new:"Show new",reload:"Reload",up_to_date:"Up-to-date",no_more_statuses:"No more statuses",no_statuses:"No statuses",socket_reconnected:"Realtime connection established",socket_broke:"Realtime connection lost: CloseEvent code {0}",quick_view_settings:"Quick view settings",quick_filter_settings:"Quick filter settings",filter_settings:"Filter"},RI={favorites:"Favorites",repeats:"Repeats",quotes:"Quotes",repeat_confirm:"Do you really want to repeat this status?",repeat_confirm_title:"Repeat confirmation",repeat_confirm_accept_button:"Repeat",repeat_confirm_cancel_button:"Do not repeat",delete:"Delete status",delete_error:"Error deleting status: {0}",edit:"Edit status",edited_at:"(last edited {time})",pin:"Pin on profile",unpin:"Unpin from profile",pinned:"Pinned",bookmark:"Bookmark",unbookmark:"Unbookmark",delete_confirm:"Do you really want to delete this status?",delete_confirm_title:"Delete confirmation",delete_confirm_accept_button:"Delete",delete_confirm_cancel_button:"Keep",reply_to:"Reply to",reply_to_with_icon:"{icon} {replyTo}",reply_to_with_arg:"{replyToWithIcon} {user}",mentions:"Mentions",replies_list:"Replies:",replies_list_with_others:"Replies (+{numReplies} other): | Replies (+{numReplies} others):",mute_ellipsis:"Mute…",mute_user:"Mute user",unmute_user:"Unmute user",mute_domain:"Mute domain",unmute_domain:"Unmute domain",mute_conversation:"Mute conversation",unmute_conversation:"Unmute conversation",status_unavailable:"Status unavailable",copy_link:"Copy link to status",external_source:"External source",muted_words:"Wordfiltered: {word} | Wordfiltered: {word} and {numWordsMore} more words",muted_filters:"Filtered: {name} | Wordfiltered: {name} and {filtersMore} more words",multi_reason_mute:"{main} + one more reason | {main} + {numReasonsMore} more reasons",muted_user:"User muted",thread_muted:"Thread muted",thread_muted_and_words:", has words:",sensitive_muted:"Muting sensitive content",bot_muted:"Muting bot content",show_full_subject:"Show full subject",hide_full_subject:"Hide full subject",show_content:"Show content",hide_content:"Hide content",status_deleted:"This post was deleted",nsfw:"NSFW",expand:"Expand",you:"(You)",plus_more:"+{number} more",many_attachments:"Post has {number} attachment(s)",collapse_attachments:"Collapse attachments",show_all_attachments:"Show all attachments",show_attachment_in_modal:"Show in media modal",show_attachment_description:"Preview description (open attachment for full description)",hide_attachment:"Hide attachment",remove_attachment:"Remove attachment",attachment_stop_flash:"Stop Flash player",move_up:"Shift attachment left",move_down:"Shift attachment right",open_gallery:"Open gallery",thread_hide:"Hide this thread",thread_show:"Show this thread",thread_show_full:"Show everything under this thread ({numStatus} status in total, max depth {depth}) | Show everything under this thread ({numStatus} statuses in total, max depth {depth})",thread_show_full_with_icon:"{icon} {text}",thread_follow:"See the remaining part of this thread ({numStatus} status in total) | See the remaining part of this thread ({numStatus} statuses in total)",thread_follow_with_icon:"{icon} {text}",ancestor_follow:"See {numReplies} other reply under this status | See {numReplies} other replies under this status",ancestor_follow_with_icon:"{icon} {text}",show_all_conversation_with_icon:"{icon} {text}",show_all_conversation:"Show full conversation ({numStatus} other status) | Show full conversation ({numStatus} other statuses)",show_only_conversation_under_this:"Only show replies to this status",status_history:"Status history",reaction_count_label:"{num} person reacted | {num} people reacted",hide_quote:"Hide the quoted status",display_quote:"Display the quoted status",invisible_quote:"Quoted status unavailable: {link}",more_actions:"More actions on this status",loading:"Loading...",load_error:"Unable to load status: {error}"},MI={approve:"Approve",approve_confirm_title:"Approve confirmation",approve_confirm_accept_button:"Approve",approve_confirm_cancel_button:"Do not approve",approve_confirm:"Do you want to approve {user}'s follow request?",block:"Block",blocked:"Blocked!",block_confirm_title:"Block confirmation",block_confirm:"Do you really want to block {user}?",block_confirm_accept_button:"Block",block_confirm_cancel_button:"Do not block",deactivated:"Deactivated",deny:"Deny",deny_confirm_title:"Deny confirmation",deny_confirm_accept_button:"Deny",deny_confirm_cancel_button:"Do not deny",deny_confirm:"Do you want to deny {user}'s follow request?",edit_profile:"Edit profile",favorites:"Favorites",follow:"Follow",follow_cancel:"Cancel request",follow_sent:"Request sent!",follow_progress:"Requesting…",follow_unfollow:"Unfollow",unfollow_confirm_title:"Unfollow confirmation",unfollow_confirm:"Do you really want to unfollow {user}?",unfollow_confirm_accept_button:"Unfollow",unfollow_confirm_cancel_button:"Do not unfollow",followees:"Following",followers:"Followers",following:"Following!",follows_you:"Follows you!",hidden:"Hidden",its_you:"It's you!",media:"Media",mention:"Mention",message:"Message",mute:"Mute",muted:"Muted",mute_confirm_title:"Mute confirmation",mute_confirm:"Do you really want to mute {user}?",mute_confirm_accept_button:"Mute",mute_confirm_cancel_button:"Do not mute",mute_or:"or",expire_in:"Expire in",expire_mute_message:"Are you sure you want to mute {0}?",expire_block_message:"Are you sure you want to block {0}?",dont_ask_again_mute:"Always mute users this way",dont_ask_again_block:"Always block users this way",mute_block_temporarily:"Temporarily",mute_block_forever:"Forever",mute_block_never:"Never",mute_block_ask:"Ask",default_mute_expiration:"Always mute users",default_block_expiration:"Always block users",default_expiration_time:"Expire in",mute_expires_forever:"Muted forever",mute_expires_at:"Muted until {0}",block_expires_forever:"Blocked forever",block_expires_at:"Blocked until {0}",mute_duration_prompt:"Mute this user for (0 for indefinite time):",statuses_per_day:"Statuses per day",remote_follow:"Remote follow",remove_follower:"Remove follower",remove_follower_confirm_title:"Remove follower confirmation",remove_follower_confirm_accept_button:"Remove",remove_follower_confirm_cancel_button:"Keep",remove_follower_confirm:"Do you really want to remove {user} from your followers?",report:"Report",statuses:"Statuses",subscribe:"Subscribe",unsubscribe:"Unsubscribe",unblock:"Unblock",unblock_progress:"Unblocking…",block_progress:"Blocking…",unmute:"Unmute",unmute_progress:"Unmuting…",mute_progress:"Muting…",hide_repeats:"Hide repeats",show_repeats:"Show repeats",bot:"Bot",group:"Group",birthday:"Born {birthday}",admin_menu:{moderation:"Moderation",grant_admin:"Grant Admin",revoke_admin:"Revoke Admin",grant_moderator:"Grant Moderator",revoke_moderator:"Revoke Moderator",activate_account:"Activate account",deactivate_account:"Deactivate account",delete_account:"Delete account",force_nsfw:"Mark all posts as NSFW",strip_media:"Remove media from posts",force_unlisted:"Force posts to be unlisted",sandbox:"Force posts to be followers-only",disable_remote_subscription:"Disallow following user from remote instances",disable_any_subscription:"Disallow following user at all",quarantine:"Disallow user posts from federating",delete_user:"Delete user",delete_user_data_and_deactivate_confirmation:"This will permanently delete the data from this account and deactivate it. Are you absolutely sure?"},highlight_new:{disabled:"Don't highlight",solid:"Solid background",striped:"Striped background",side:"Side stripe"},personal_note:"Personal note",note_blank_click:"Click to add note",highlight_header:"Highlight user's posts and mentions"},NI={timeline_title:"User timeline",profile_does_not_exist:"Sorry, this profile does not exist.",profile_loading_error:"Sorry, there was an error loading this profile."},FI={title:"Reporting {0}",add_comment_description:"The report will be sent to your instance moderators. You can provide an explanation of why you are reporting this account below:",additional_comments:"Additional comments",forward_description:"The account is from another server. Send a copy of the report there as well?",forward_to:"Forward to {0}",submit:"Submit",generic_error:"An error occurred while processing your request."},DI={more:"More",who_to_follow:"Who to follow"},UI={media_upload:"Upload media",mentions:"Mentions",repeat:"Repeat",unrepeat:"Unrepeat",reply:"Reply",add_reaction:"Add Reaction",favorite:"Favorite",unfavorite:"Unfavorite",user_settings:"User Settings",accept_follow_request:"Accept follow request",reject_follow_request:"Reject follow request",bookmark:"Bookmark",toggle_expand:"Expand or collapse notification to show post in full",toggle_mute:"Expand or collapse notification to reveal muted content",autocomplete_available:"{number} result is available. Use up and down keys to navigate through them. | {number} results are available. Use up and down keys to navigate through them."},jI={error:{base:"Upload failed.",message:"Upload failed: {0}",file_too_big:"File too big [{filesize}{filesizeunit} / {allowedsize}{allowedsizeunit}]",default:"Try again later"},file_size_units:{B:"B",KiB:"KiB",MiB:"MiB",GiB:"GiB",TiB:"TiB"}},BI={people:"People",hashtags:"Hashtags",person_talking:"{count} person talking",people_talking:"{count} people talking",no_results:"No results",no_more_results:"No more results",load_more:"Load more results"},zI={forgot_password:"Forgot password?",password_reset:"Password reset",instruction:"Enter your email address or username. We will send you a link to reset your password.",placeholder:"Your email or username",check_email:"Check your email for a link to reset your password.",return_home:"Return to the home page",too_many_requests:"You have reached the limit of attempts, try again later.",password_reset_disabled:"Password reset is disabled. Please contact your instance administrator.",password_reset_required:"You must reset your password to log in.",password_reset_required_but_mailer_is_disabled:"You must reset your password, but password reset is disabled. Please contact your instance administrator."},qI={you:"You:",message_user:"Message {nickname}",delete:"Delete",chats:"Chats",new:"New Chat",empty_message_error:"Cannot post empty message",more:"More",delete_confirm:"Do you really want to delete this message?",error_loading_chat:"Something went wrong when loading the chat.",error_sending_message:"Something went wrong when sending the message.",empty_chat_list_placeholder:"You don't have any chats yet. Start a new chat!"},HI={manage_bookmark_folders:"Manage bookmark folders"},VI={lists:"Lists",new:"New List",title:"List title",search:"Search users",create:"Create",save:"Save changes",delete:"Delete list",following_only:"Limit to Following",manage_lists:"Manage lists",manage_members:"Manage list members",add_members:"Search for more users",remove_from_list:"Remove from list",add_to_list:"Add to list",is_in_list:"Already in list",editing_list:"Editing list {listTitle}",creating_list:"Creating new list",update_title:"Save Title",really_delete:"Really delete list?",error:"Error manipulating lists: {0}"},WI={audio:"Audio",video:"Video",image:"Image",file:"File"},GI={today:"Today"},KI={big_update_title:"Please bear with us",big_update_content:"We haven't had a release in a while, so things might look and feel different than what you're used to.",update_bugs:"Please report any issues and bugs on {pleromaGitlab}, as we have changed a lot, and although we test thoroughly and use development versions ourselves, we may have missed some things. We welcome your feedback and suggestions on issues you might encounter, or how to improve Pleroma and Pleroma-FE.",update_bugs_gitlab:"Pleroma GitLab",update_changelog:"For more details on what's changed, see {theFullChangelog}.",update_changelog_here:"the full changelog",art_by:"Art by {linkToArtist}"},xI={tooltip:"This domain contains non-ascii characters."},YI={drafts:"Drafts",no_drafts:"You have no drafts",empty:"(No content)",poll_tooltip:"Draft contains a poll",continue:"Continue composing",save:"Save without posting",abandon:"Abandon draft",abandon_confirm_title:"Abandon confirmation",abandon_confirm:"Do you really want to abandon this draft?",abandon_confirm_accept_button:"Abandon",abandon_confirm_cancel_button:"Keep",replying:"Replying to {statusLink}",editing:"Editing {statusLink}",unavailable:"(unavailable)"},XI={loading:"Loading...",theme:"Applying theme, please wait warmly...",fun_1:"Drink more water",fun_2:"Take it easy!",fun_3:"Suya...",fun_4:"My Pleroma machine is full power!",error:"Something went wrong"},JI={select_folder:"Select bookmark folder",creating_folder:"Creating bookmark folder",editing_folder:"Editing folder {folderName}",emoji:"Emoji",name:"Folder name",new:"New Folder",create:"Create folder",delete:"Delete folder",update_folder:"Save changes",really_delete:"Do you really want to delete the folder?",error:"Error manipulating bookmark folders: {0}"},ZI={about:iI,announcements:aI,shoutbox:lI,domain_mute_card:cI,exporter:uI,features_panel:dI,finder:fI,general:hI,image_cropper:pI,importer:mI,login:gI,media_modal:vI,nav:bI,notifications:yI,polls:_I,emoji:wI,errors:SI,interactions:$I,post_status:kI,registration:CI,remote_user_resolver:TI,report:AI,selectable_list:EI,settings:II,admin_dash:PI,time:LI,timeline:OI,status:RI,user_card:MI,user_profile:NI,user_reporting:FI,who_to_follow:DI,tool_tip:UI,upload:jI,search:BI,password_reset:zI,chats:qI,bookmarks:HI,lists:VI,file_type:WI,display_date:GI,update:KI,unicode_domain_indicator:xI,drafts:YI,splash:XI,bookmark_folders:JI},ux=Object.freeze(Object.defineProperty({__proto__:null,about:iI,admin_dash:PI,announcements:aI,bookmark_folders:JI,bookmarks:HI,chats:qI,default:ZI,display_date:GI,domain_mute_card:cI,drafts:YI,emoji:wI,errors:SI,exporter:uI,features_panel:dI,file_type:WI,finder:fI,general:hI,image_cropper:pI,importer:mI,interactions:$I,lists:VI,login:gI,media_modal:vI,nav:bI,notifications:yI,password_reset:zI,polls:_I,post_status:kI,registration:CI,remote_user_resolver:TI,report:AI,search:BI,selectable_list:EI,settings:II,shoutbox:lI,splash:XI,status:RI,time:LI,timeline:OI,tool_tip:UI,unicode_domain_indicator:xI,update:KI,upload:jI,user_card:MI,user_profile:NI,user_reporting:FI,who_to_follow:DI},Symbol.toStringTag,{value:"Module"})),yk="en",dx=e=>oI.includes(e),fx=Object.assign({"./ar.json":()=>Ve(()=>import("./i18n/ar.Cr-3kZBh.js"),[]),"./ca.json":()=>Ve(()=>import("./i18n/ca.Bv4d2Muy.js"),[]),"./cs.json":()=>Ve(()=>import("./i18n/cs.EyNXpVXW.js"),[]),"./de.json":()=>Ve(()=>import("./i18n/de.CvXWIhiF.js"),[]),"./en.json":()=>Ve(()=>Promise.resolve().then(()=>ux),void 0),"./eo.json":()=>Ve(()=>import("./i18n/eo.C9h09SOv.js"),[]),"./es.json":()=>Ve(()=>import("./i18n/es.BFMlvXsf.js"),[]),"./et.json":()=>Ve(()=>import("./i18n/et.fhuMKZXQ.js"),[]),"./eu.json":()=>Ve(()=>import("./i18n/eu.C1UxLEb6.js"),[]),"./fa.json":()=>Ve(()=>import("./i18n/fa.BxVyTR8q.js"),[]),"./fi.json":()=>Ve(()=>import("./i18n/fi.Brm9lhAA.js"),[]),"./fr.json":()=>Ve(()=>import("./i18n/fr.DzBG0KvL.js"),[]),"./ga.json":()=>Ve(()=>import("./i18n/ga.CPJnGxWv.js"),[]),"./he.json":()=>Ve(()=>import("./i18n/he.BllNuLoC.js"),[]),"./hu.json":()=>Ve(()=>import("./i18n/hu.CljyAvQa.js"),[]),"./id.json":()=>Ve(()=>import("./i18n/id.DLjgbCu5.js"),[]),"./it.json":()=>Ve(()=>import("./i18n/it.ERg696CD.js"),[]),"./ja_easy.json":()=>Ve(()=>import("./i18n/ja_easy.PsomvmuF.js"),[]),"./ja_pedantic.json":()=>Ve(()=>import("./i18n/ja_pedantic.VWLd9bHt.js"),[]),"./ko.json":()=>Ve(()=>import("./i18n/ko.b1sv0xRp.js"),[]),"./nan-TW.json":()=>Ve(()=>import("./i18n/nan-TW.Ci98X1S7.js"),[]),"./nb.json":()=>Ve(()=>import("./i18n/nb.DCCmz1gh.js"),[]),"./nl.json":()=>Ve(()=>import("./i18n/nl.D6wYIlyz.js"),[]),"./oc.json":()=>Ve(()=>import("./i18n/oc.C4DhJxhs.js"),[]),"./pdc.json":()=>Ve(()=>import("./i18n/pdc.FmFgRqLi.js"),[]),"./pl.json":()=>Ve(()=>import("./i18n/pl.CPLK-gPs.js"),[]),"./pt.json":()=>Ve(()=>import("./i18n/pt.BzQabObA.js"),[]),"./ro.json":()=>Ve(()=>import("./i18n/ro.BA9koejw.js"),[]),"./ru.json":()=>Ve(()=>import("./i18n/ru.CYi-PMDA.js"),[]),"./sk.json":()=>Ve(()=>import("./i18n/sk.fGdLyyK_.js"),[]),"./te.json":()=>Ve(()=>import("./i18n/te.CikZ4jPW.js"),[]),"./uk.json":()=>Ve(()=>import("./i18n/uk.CkmtgYNq.js"),[]),"./vi.json":()=>Ve(()=>import("./i18n/vi.BsGK9mjD.js"),[]),"./zh.json":()=>Ve(()=>import("./i18n/zh.BZkJuR5j.js"),[]),"./zh_Hant.json":()=>Ve(()=>import("./i18n/zh_Hant.dSMADUQ9.js"),[])}),hx=e=>{const t=cx(e);return fx[`./${t}.json`]()},wp={languages:oI,default:{en:ZI},setLanguage:async(e,t)=>{const n=(Array.isArray(t)?t:[t]).filter(o=>o);n.includes(yk)||n.push(yk);const[s,...r]=n;if(!(s===e.locale&&Z.isEqual(r,e.fallbackLocale))){for(const o of n)if(dx(o)){const i=await hx(o);e.setLocaleMessage(o,i.default)}e.fallbackLocale=r,e.locale=s}}};var Gg,_k;function px(){return _k||(_k=1,Gg={aa:{name:"Afar",nativeName:"Afaraf"},ab:{name:"Abkhaz",nativeName:"аҧсуа бызшәа"},ae:{name:"Avestan",nativeName:"avesta"},af:{name:"Afrikaans",nativeName:"Afrikaans"},ak:{name:"Akan",nativeName:"Akan"},am:{name:"Amharic",nativeName:"አማርኛ"},an:{name:"Aragonese",nativeName:"aragonés"},ar:{name:"Arabic",nativeName:"العربية"},as:{name:"Assamese",nativeName:"অসমীয়া"},av:{name:"Avaric",nativeName:"авар мацӀ"},ay:{name:"Aymara",nativeName:"aymar aru"},az:{name:"Azerbaijani",nativeName:"azərbaycan dili"},ba:{name:"Bashkir",nativeName:"башҡорт теле"},be:{name:"Belarusian",nativeName:"беларуская мова"},bg:{name:"Bulgarian",nativeName:"български език"},bi:{name:"Bislama",nativeName:"Bislama"},bm:{name:"Bambara",nativeName:"bamanankan"},bn:{name:"Bengali",nativeName:"বাংলা"},bo:{name:"Tibetan",nativeName:"བོད་ཡིག"},br:{name:"Breton",nativeName:"brezhoneg"},bs:{name:"Bosnian",nativeName:"bosanski jezik"},ca:{name:"Catalan",nativeName:"Català"},ce:{name:"Chechen",nativeName:"нохчийн мотт"},ch:{name:"Chamorro",nativeName:"Chamoru"},co:{name:"Corsican",nativeName:"corsu"},cr:{name:"Cree",nativeName:"ᓀᐦᐃᔭᐍᐏᐣ"},cs:{name:"Czech",nativeName:"Čeština"},cu:{name:"Old Church Slavonic",nativeName:"ѩзыкъ словѣньскъ"},cv:{name:"Chuvash",nativeName:"чӑваш чӗлхи"},cy:{name:"Welsh",nativeName:"Cymraeg"},da:{name:"Danish",nativeName:"Dansk"},de:{name:"German",nativeName:"Deutsch"},dv:{name:"Divehi",nativeName:"ދިވެހި"},dz:{name:"Dzongkha",nativeName:"རྫོང་ཁ"},ee:{name:"Ewe",nativeName:"Eʋegbe"},el:{name:"Greek",nativeName:"Ελληνικά"},en:{name:"English",nativeName:"English"},eo:{name:"Esperanto",nativeName:"Esperanto"},es:{name:"Spanish",nativeName:"Español"},et:{name:"Estonian",nativeName:"eesti"},eu:{name:"Basque",nativeName:"euskara"},fa:{name:"Persian",nativeName:"فارسی"},ff:{name:"Fula",nativeName:"Fulfulde"},fi:{name:"Finnish",nativeName:"suomi"},fj:{name:"Fijian",nativeName:"vosa Vakaviti"},fo:{name:"Faroese",nativeName:"Føroyskt"},fr:{name:"French",nativeName:"Français"},fy:{name:"Western Frisian",nativeName:"Frysk"},ga:{name:"Irish",nativeName:"Gaeilge"},gd:{name:"Scottish Gaelic",nativeName:"Gàidhlig"},gl:{name:"Galician",nativeName:"galego"},gn:{name:"Guaraní",nativeName:"Avañe'ẽ"},gu:{name:"Gujarati",nativeName:"ગુજરાતી"},gv:{name:"Manx",nativeName:"Gaelg"},ha:{name:"Hausa",nativeName:"هَوُسَ"},he:{name:"Hebrew",nativeName:"עברית"},hi:{name:"Hindi",nativeName:"हिन्दी"},ho:{name:"Hiri Motu",nativeName:"Hiri Motu"},hr:{name:"Croatian",nativeName:"Hrvatski"},ht:{name:"Haitian",nativeName:"Kreyòl ayisyen"},hu:{name:"Hungarian",nativeName:"magyar"},hy:{name:"Armenian",nativeName:"Հայերեն"},hz:{name:"Herero",nativeName:"Otjiherero"},ia:{name:"Interlingua",nativeName:"Interlingua"},id:{name:"Indonesian",nativeName:"Bahasa Indonesia"},ie:{name:"Interlingue",nativeName:"Interlingue"},ig:{name:"Igbo",nativeName:"Asụsụ Igbo"},ii:{name:"Nuosu",nativeName:"ꆈꌠ꒿ Nuosuhxop"},ik:{name:"Inupiaq",nativeName:"Iñupiaq"},io:{name:"Ido",nativeName:"Ido"},is:{name:"Icelandic",nativeName:"Íslenska"},it:{name:"Italian",nativeName:"Italiano"},iu:{name:"Inuktitut",nativeName:"ᐃᓄᒃᑎᑐᑦ"},ja:{name:"Japanese",nativeName:"日本語"},jv:{name:"Javanese",nativeName:"basa Jawa"},ka:{name:"Georgian",nativeName:"ქართული"},kg:{name:"Kongo",nativeName:"Kikongo"},ki:{name:"Kikuyu",nativeName:"Gĩkũyũ"},kj:{name:"Kwanyama",nativeName:"Kuanyama"},kk:{name:"Kazakh",nativeName:"қазақ тілі"},kl:{name:"Kalaallisut",nativeName:"kalaallisut"},km:{name:"Khmer",nativeName:"ខេមរភាសា"},kn:{name:"Kannada",nativeName:"ಕನ್ನಡ"},ko:{name:"Korean",nativeName:"한국어"},kr:{name:"Kanuri",nativeName:"Kanuri"},ks:{name:"Kashmiri",nativeName:"कश्मीरी"},ku:{name:"Kurdish",nativeName:"Kurdî"},kv:{name:"Komi",nativeName:"коми кыв"},kw:{name:"Cornish",nativeName:"Kernewek"},ky:{name:"Kyrgyz",nativeName:"Кыргызча"},la:{name:"Latin",nativeName:"latine"},lb:{name:"Luxembourgish",nativeName:"Lëtzebuergesch"},lg:{name:"Ganda",nativeName:"Luganda"},li:{name:"Limburgish",nativeName:"Limburgs"},ln:{name:"Lingala",nativeName:"Lingála"},lo:{name:"Lao",nativeName:"ພາສາລາວ"},lt:{name:"Lithuanian",nativeName:"lietuvių kalba"},lu:{name:"Luba-Katanga",nativeName:"Kiluba"},lv:{name:"Latvian",nativeName:"latviešu valoda"},mg:{name:"Malagasy",nativeName:"fiteny malagasy"},mh:{name:"Marshallese",nativeName:"Kajin M̧ajeļ"},mi:{name:"Māori",nativeName:"te reo Māori"},mk:{name:"Macedonian",nativeName:"македонски јазик"},ml:{name:"Malayalam",nativeName:"മലയാളം"},mn:{name:"Mongolian",nativeName:"Монгол хэл"},mr:{name:"Marathi",nativeName:"मराठी"},ms:{name:"Malay",nativeName:"Bahasa Melayu"},mt:{name:"Maltese",nativeName:"Malti"},my:{name:"Burmese",nativeName:"ဗမာစာ"},na:{name:"Nauru",nativeName:"Dorerin Naoero"},nb:{name:"Norwegian Bokmål",nativeName:"Norsk bokmål"},nd:{name:"Northern Ndebele",nativeName:"isiNdebele"},ne:{name:"Nepali",nativeName:"नेपाली"},ng:{name:"Ndonga",nativeName:"Owambo"},nl:{name:"Dutch",nativeName:"Nederlands"},nn:{name:"Norwegian Nynorsk",nativeName:"Norsk nynorsk"},no:{name:"Norwegian",nativeName:"Norsk"},nr:{name:"Southern Ndebele",nativeName:"isiNdebele"},nv:{name:"Navajo",nativeName:"Diné bizaad"},ny:{name:"Chichewa",nativeName:"chiCheŵa"},oc:{name:"Occitan",nativeName:"occitan"},oj:{name:"Ojibwe",nativeName:"ᐊᓂᔑᓈᐯᒧᐎᓐ"},om:{name:"Oromo",nativeName:"Afaan Oromoo"},or:{name:"Oriya",nativeName:"ଓଡ଼ିଆ"},os:{name:"Ossetian",nativeName:"ирон æвзаг"},pa:{name:"Panjabi",nativeName:"ਪੰਜਾਬੀ"},pi:{name:"Pāli",nativeName:"पाऴि"},pl:{name:"Polish",nativeName:"Polski"},ps:{name:"Pashto",nativeName:"پښتو"},pt:{name:"Portuguese",nativeName:"Português"},qu:{name:"Quechua",nativeName:"Runa Simi"},rm:{name:"Romansh",nativeName:"rumantsch grischun"},rn:{name:"Kirundi",nativeName:"Ikirundi"},ro:{name:"Romanian",nativeName:"Română"},ru:{name:"Russian",nativeName:"Русский"},rw:{name:"Kinyarwanda",nativeName:"Ikinyarwanda"},sa:{name:"Sanskrit",nativeName:"संस्कृतम्"},sc:{name:"Sardinian",nativeName:"sardu"},sd:{name:"Sindhi",nativeName:"सिन्धी"},se:{name:"Northern Sami",nativeName:"Davvisámegiella"},sg:{name:"Sango",nativeName:"yângâ tî sängö"},si:{name:"Sinhala",nativeName:"සිංහල"},sk:{name:"Slovak",nativeName:"Slovenčina"},sl:{name:"Slovenian",nativeName:"slovenščina"},sm:{name:"Samoan",nativeName:"gagana fa'a Samoa"},sn:{name:"Shona",nativeName:"chiShona"},so:{name:"Somali",nativeName:"Soomaaliga"},sq:{name:"Albanian",nativeName:"Shqip"},sr:{name:"Serbian",nativeName:"српски језик"},ss:{name:"Swati",nativeName:"SiSwati"},st:{name:"Southern Sotho",nativeName:"Sesotho"},su:{name:"Sundanese",nativeName:"Basa Sunda"},sv:{name:"Swedish",nativeName:"Svenska"},sw:{name:"Swahili",nativeName:"Kiswahili"},ta:{name:"Tamil",nativeName:"தமிழ்"},te:{name:"Telugu",nativeName:"తెలుగు"},tg:{name:"Tajik",nativeName:"тоҷикӣ"},th:{name:"Thai",nativeName:"ไทย"},ti:{name:"Tigrinya",nativeName:"ትግርኛ"},tk:{name:"Turkmen",nativeName:"Türkmençe"},tl:{name:"Tagalog",nativeName:"Wikang Tagalog"},tn:{name:"Tswana",nativeName:"Setswana"},to:{name:"Tonga",nativeName:"faka Tonga"},tr:{name:"Turkish",nativeName:"Türkçe"},ts:{name:"Tsonga",nativeName:"Xitsonga"},tt:{name:"Tatar",nativeName:"татар теле"},tw:{name:"Twi",nativeName:"Twi"},ty:{name:"Tahitian",nativeName:"Reo Tahiti"},ug:{name:"Uyghur",nativeName:"ئۇيغۇرچە‎"},uk:{name:"Ukrainian",nativeName:"Українська"},ur:{name:"Urdu",nativeName:"اردو"},uz:{name:"Uzbek",nativeName:"Ўзбек"},ve:{name:"Venda",nativeName:"Tshivenḓa"},vi:{name:"Vietnamese",nativeName:"Tiếng Việt"},vo:{name:"Volapük",nativeName:"Volapük"},wa:{name:"Walloon",nativeName:"walon"},wo:{name:"Wolof",nativeName:"Wollof"},xh:{name:"Xhosa",nativeName:"isiXhosa"},yi:{name:"Yiddish",nativeName:"ייִדיש"},yo:{name:"Yoruba",nativeName:"Yorùbá"},za:{name:"Zhuang",nativeName:"Saɯ cueŋƅ"},zh:{name:"Chinese",nativeName:"中文"},zu:{name:"Zulu",nativeName:"isiZulu"}}),Gg}var Kg,wk;function mx(){if(wk)return Kg;wk=1;const e=px(),t={},n={},s=[],r=[],o=[];for(const i in e){const{name:a,nativeName:c}=e[i];t[i]=n[a.toLowerCase()]=n[c.toLowerCase()]={code:i,name:a,nativeName:c},s.push(i),r.push(a),o.push(c)}return Kg=class Xf{static getLanguages(a=[]){return a.map(c=>Xf.validate(c)?Object.assign({},t[c]):{code:c,name:"",nativeName:""})}static getName(a){return Xf.validate(a)?e[a].name:""}static getAllNames(){return r.slice()}static getNativeName(a){return Xf.validate(a)?e[a].nativeName:""}static getAllNativeNames(){return o.slice()}static getCode(a){return a=a.toLowerCase(),n.hasOwnProperty(a)?n[a].code:""}static getAllCodes(){return s.slice()}static validate(a){return e.hasOwnProperty(a)}},Kg}var gx=mx();const vx=bs(gx),bx={pdc:"en",ja_easy:"ja",zh_Hant:"zh-HANT",zh:"zh-Hans"},N_=e=>bx[e]||e,QI=e=>N_(e).replace("_","-"),yx=e=>(Array.isArray(e)?e:[e]).map(QI).join(","),e5=e=>{const n={pdc:"Pennsilfaanisch-Deitsch",ja_easy:"やさしいにほんご","nan-TW":"臺語(閩南語)",zh:"简体中文",zh_Hant:"繁體中文"}[e]||vx.getNativeName(e),s=N_(e);return n.charAt(0).toLocaleUpperCase(s)+n.slice(1)},_x=Fi.map(wp.languages,e=>({code:e,name:e5(e)})).sort((e,t)=>e.name.localeCompare(t.name)),Tr={internalToBrowserLocale:N_,internalToBackendLocale:QI,internalToBackendLocaleMulti:yx,languages:_x,getLanguageName:e5},t5={undelay:null,topBar:null,badge:null,profileTint:null,fg:null,bg:"underlay",highlight:"bg",panel:"bg",popover:"bg",selectedMenu:"popover",btn:"bg",btnPanel:"panel",btnTopBar:"topBar",input:"bg",inputPanel:"panel",inputTopBar:"topBar",alert:"bg",alertPanel:"panel",poll:"bg",chatBg:"underlay",chatMessage:"chatBg"},wx={profileTint:.5,alert:.5,input:.5,faint:.5,underlay:.15,alertPopup:.95},Ui={bg:{depends:[],opacity:"bg",priority:1},wallpaper:{depends:["bg"],color:(e,t)=>Ls(-2*e,t).rgb},fg:{depends:[],priority:1},text:{depends:[],layer:"bg",opacity:null,priority:1},underlay:{default:"#000000",opacity:"underlay"},link:{depends:["accent"],priority:1},accent:{depends:["link"],priority:1},faint:{depends:["text"],opacity:"faint"},faintLink:{depends:["link"],opacity:"faint"},postFaintLink:{depends:["postLink"],opacity:"faint"},cBlue:"#0000ff",cRed:"#FF0000",cGreen:"#00FF00",cOrange:"#E3FF00",profileBg:{depends:["bg"],color:(e,t)=>({r:Math.floor(t.r*.53),g:Math.floor(t.g*.56),b:Math.floor(t.b*.59)})},profileTint:{depends:["bg"],layer:"profileTint",opacity:"profileTint"},highlight:{depends:["bg"],color:(e,t)=>Ls(5*e,t).rgb},highlightLightText:{depends:["lightText"],layer:"highlight",textColor:!0},highlightPostLink:{depends:["postLink"],layer:"highlight",textColor:"preserve"},highlightFaintText:{depends:["faint"],layer:"highlight",textColor:!0},highlightFaintLink:{depends:["faintLink"],layer:"highlight",textColor:"preserve"},highlightPostFaintLink:{depends:["postFaintLink"],layer:"highlight",textColor:"preserve"},highlightText:{depends:["text"],layer:"highlight",textColor:!0},highlightLink:{depends:["link"],layer:"highlight",textColor:"preserve"},highlightIcon:{depends:["highlight","highlightText"],color:(e,t,n)=>ya(t,n)},popover:{depends:["bg"],opacity:"popover"},popoverLightText:{depends:["lightText"],layer:"popover",textColor:!0},popoverPostLink:{depends:["postLink"],layer:"popover",textColor:"preserve"},popoverFaintText:{depends:["faint"],layer:"popover",textColor:!0},popoverFaintLink:{depends:["faintLink"],layer:"popover",textColor:"preserve"},popoverPostFaintLink:{depends:["postFaintLink"],layer:"popover",textColor:"preserve"},popoverText:{depends:["text"],layer:"popover",textColor:!0},popoverLink:{depends:["link"],layer:"popover",textColor:"preserve"},popoverIcon:{depends:["popover","popoverText"],color:(e,t,n)=>ya(t,n)},selectedPost:"--highlight",selectedPostFaintText:{depends:["highlightFaintText"],layer:"highlight",variant:"selectedPost",textColor:!0},selectedPostLightText:{depends:["highlightLightText"],layer:"highlight",variant:"selectedPost",textColor:!0},selectedPostPostLink:{depends:["highlightPostLink"],layer:"highlight",variant:"selectedPost",textColor:"preserve"},selectedPostFaintLink:{depends:["highlightFaintLink"],layer:"highlight",variant:"selectedPost",textColor:"preserve"},selectedPostText:{depends:["highlightText"],layer:"highlight",variant:"selectedPost",textColor:!0},selectedPostLink:{depends:["highlightLink"],layer:"highlight",variant:"selectedPost",textColor:"preserve"},selectedPostIcon:{depends:["selectedPost","selectedPostText"],color:(e,t,n)=>ya(t,n)},selectedMenu:{depends:["bg"],color:(e,t)=>Ls(5*e,t).rgb},selectedMenuLightText:{depends:["highlightLightText"],layer:"selectedMenu",variant:"selectedMenu",textColor:!0},selectedMenuFaintText:{depends:["highlightFaintText"],layer:"selectedMenu",variant:"selectedMenu",textColor:!0},selectedMenuFaintLink:{depends:["highlightFaintLink"],layer:"selectedMenu",variant:"selectedMenu",textColor:"preserve"},selectedMenuText:{depends:["highlightText"],layer:"selectedMenu",variant:"selectedMenu",textColor:!0},selectedMenuLink:{depends:["highlightLink"],layer:"selectedMenu",variant:"selectedMenu",textColor:"preserve"},selectedMenuIcon:{depends:["selectedMenu","selectedMenuText"],color:(e,t,n)=>ya(t,n)},selectedMenuPopover:{depends:["popover"],color:(e,t)=>Ls(5*e,t).rgb},selectedMenuPopoverLightText:{depends:["selectedMenuLightText"],layer:"selectedMenuPopover",variant:"selectedMenuPopover",textColor:!0},selectedMenuPopoverFaintText:{depends:["selectedMenuFaintText"],layer:"selectedMenuPopover",variant:"selectedMenuPopover",textColor:!0},selectedMenuPopoverFaintLink:{depends:["selectedMenuFaintLink"],layer:"selectedMenuPopover",variant:"selectedMenuPopover",textColor:"preserve"},selectedMenuPopoverText:{depends:["selectedMenuText"],layer:"selectedMenuPopover",variant:"selectedMenuPopover",textColor:!0},selectedMenuPopoverLink:{depends:["selectedMenuLink"],layer:"selectedMenuPopover",variant:"selectedMenuPopover",textColor:"preserve"},selectedMenuPopoverIcon:{depends:["selectedMenuPopover","selectedMenuText"],color:(e,t,n)=>ya(t,n)},lightText:{depends:["text"],layer:"bg",textColor:"preserve",color:(e,t)=>Ls(20*e,t).rgb},postLink:{depends:["link"],layer:"bg",textColor:"preserve"},postGreentext:{depends:["cGreen"],layer:"bg",textColor:"preserve"},postCyantext:{depends:["cBlue"],layer:"bg",textColor:"preserve"},border:{depends:["fg"],opacity:"border",color:(e,t)=>Ls(2*e,t).rgb},poll:{depends:["accent","bg"],copacity:"poll",color:(e,t,n)=>Fo(t,.4,n)},pollText:{depends:["text"],layer:"poll",textColor:!0},icon:{depends:["bg","text"],inheritsOpacity:!1,color:(e,t,n)=>ya(t,n)},fgText:{depends:["text"],layer:"fg",textColor:!0},fgLink:{depends:["link"],layer:"fg",textColor:"preserve"},panel:{depends:["fg"],opacity:"panel"},panelText:{depends:["text"],layer:"panel",textColor:!0},panelFaint:{depends:["fgText"],layer:"panel",opacity:"faint",textColor:!0},panelLink:{depends:["fgLink"],layer:"panel",textColor:"preserve"},topBar:"--fg",topBarText:{depends:["fgText"],layer:"topBar",textColor:!0},topBarLink:{depends:["fgLink"],layer:"topBar",textColor:"preserve"},tab:{depends:["btn"]},tabText:{depends:["btnText"],layer:"btn",textColor:!0},tabActiveText:{depends:["text"],layer:"bg",textColor:!0},btn:{depends:["fg"],variant:"btn",opacity:"btn"},btnText:{depends:["fgText"],layer:"btn",textColor:!0},btnPanelText:{depends:["btnText"],layer:"btnPanel",variant:"btn",textColor:!0},btnTopBarText:{depends:["btnText"],layer:"btnTopBar",variant:"btn",textColor:!0},btnPressed:{depends:["btn"],layer:"btn"},btnPressedText:{depends:["btnText"],layer:"btn",variant:"btnPressed",textColor:!0},btnPressedPanel:{depends:["btnPressed"],layer:"btn"},btnPressedPanelText:{depends:["btnPanelText"],layer:"btnPanel",variant:"btnPressed",textColor:!0},btnPressedTopBar:{depends:["btnPressed"],layer:"btn"},btnPressedTopBarText:{depends:["btnTopBarText"],layer:"btnTopBar",variant:"btnPressed",textColor:!0},btnToggled:{depends:["btn"],layer:"btn",color:(e,t)=>Ls(e*20,t).rgb},btnToggledText:{depends:["btnText"],layer:"btn",variant:"btnToggled",textColor:!0},btnToggledPanelText:{depends:["btnPanelText"],layer:"btnPanel",variant:"btnToggled",textColor:!0},btnToggledTopBarText:{depends:["btnTopBarText"],layer:"btnTopBar",variant:"btnToggled",textColor:!0},btnDisabled:{depends:["btn","bg"],color:(e,t,n)=>Fo(t,.25,n)},btnDisabledText:{depends:["btnText","btnDisabled"],layer:"btn",variant:"btnDisabled",color:(e,t,n)=>Fo(t,.25,n)},btnDisabledPanelText:{depends:["btnPanelText","btnDisabled"],layer:"btnPanel",variant:"btnDisabled",color:(e,t,n)=>Fo(t,.25,n)},btnDisabledTopBarText:{depends:["btnTopBarText","btnDisabled"],layer:"btnTopBar",variant:"btnDisabled",color:(e,t,n)=>Fo(t,.25,n)},input:{depends:["fg"],opacity:"input"},inputText:{depends:["text"],layer:"input",textColor:!0},inputPanelText:{depends:["panelText"],layer:"inputPanel",variant:"input",textColor:!0},inputTopbarText:{depends:["topBarText"],layer:"inputTopBar",variant:"input",textColor:!0},alertError:{depends:["cRed"],opacity:"alert"},alertErrorText:{depends:["text"],layer:"alert",variant:"alertError",textColor:!0},alertErrorPanelText:{depends:["panelText"],layer:"alertPanel",variant:"alertError",textColor:!0},alertWarning:{depends:["cOrange"],opacity:"alert"},alertWarningText:{depends:["text"],layer:"alert",variant:"alertWarning",textColor:!0},alertWarningPanelText:{depends:["panelText"],layer:"alertPanel",variant:"alertWarning",textColor:!0},alertSuccess:{depends:["cGreen"],opacity:"alert"},alertSuccessText:{depends:["text"],layer:"alert",variant:"alertSuccess",textColor:!0},alertSuccessPanelText:{depends:["panelText"],layer:"alertPanel",variant:"alertSuccess",textColor:!0},alertNeutral:{depends:["text"],opacity:"alert"},alertNeutralText:{depends:["text"],layer:"alert",variant:"alertNeutral",color:(e,t)=>xE(t).rgb,textColor:!0},alertNeutralPanelText:{depends:["panelText"],layer:"alertPanel",variant:"alertNeutral",textColor:!0},alertPopupError:{depends:["alertError"],opacity:"alertPopup"},alertPopupErrorText:{depends:["alertErrorText"],layer:"popover",variant:"alertPopupError",textColor:!0},alertPopupWarning:{depends:["alertWarning"],opacity:"alertPopup"},alertPopupWarningText:{depends:["alertWarningText"],layer:"popover",variant:"alertPopupWarning",textColor:!0},alertPopupSuccess:{depends:["alertSuccess"],opacity:"alertPopup"},alertPopupSuccessText:{depends:["alertSuccessText"],layer:"popover",variant:"alertPopupSuccess",textColor:!0},alertPopupNeutral:{depends:["alertNeutral"],opacity:"alertPopup"},alertPopupNeutralText:{depends:["alertNeutralText"],layer:"popover",variant:"alertPopupNeutral",textColor:!0},badgeNotification:"--cRed",badgeNotificationText:{depends:["text","badgeNotification"],layer:"badge",variant:"badgeNotification",textColor:"bw"},badgeNeutral:"--cGreen",badgeNeutralText:{depends:["text","badgeNeutral"],layer:"badge",variant:"badgeNeutral",textColor:"bw"},chatBg:{depends:["bg"]},chatMessageIncomingBg:{depends:["chatBg"]},chatMessageIncomingText:{depends:["text"],layer:"chatMessage",variant:"chatMessageIncomingBg",textColor:!0},chatMessageIncomingLink:{depends:["link"],layer:"chatMessage",variant:"chatMessageIncomingBg",textColor:"preserve"},chatMessageIncomingBorder:{depends:["border"],opacity:"border",color:(e,t)=>Ls(2*e,t).rgb},chatMessageOutgoingBg:{depends:["chatMessageIncomingBg"],color:(e,t)=>Ls(5*e,t).rgb},chatMessageOutgoingText:{depends:["text"],layer:"chatMessage",variant:"chatMessageOutgoingBg",textColor:!0},chatMessageOutgoingLink:{depends:["link"],layer:"chatMessage",variant:"chatMessageOutgoingBg",textColor:"preserve"},chatMessageOutgoingBorder:{depends:["chatMessageOutgoingBg"],opacity:"border",color:(e,t)=>Ls(2*e,t).rgb}},Sx=3,n5=(e,t=t5)=>{const n=[e];let s=t[e];for(;s;)n.unshift(s),s=t[s];return n},Sk=(e,t=e,n,s,r)=>n5(e).map(o=>[o===e?s[t]:s[o],o===e?r[n]||1:r[o]]),ud=(e,t)=>{const n=t[e];if(typeof n=="string"&&n.startsWith("--"))return[n.substring(2)];{if(n===null)return[];const{depends:s,layer:r,variant:o}=n,i=r?n5(r).map(a=>a===r?o||r:a):[];return Array.isArray(s)?[...s,...i]:[...i]}},$x=(e=Ui,t=ud)=>{const n=Object.keys(e),s=new Set(n),r=new Set,o=new Set,i=[...n],a=[],c=u=>{if(s.has(u))s.delete(u),r.add(u),t(u,e).forEach(c),r.delete(u),o.add(u),a.push(u);else if(r.has(u))a.push(u);else if(!o.has(u))throw new Error("Unintended condition in topoSort!")};for(;i.length>0;)c(i.pop());return a.map((u,f)=>({data:u,index:f})).sort(({data:u,index:f},{data:h,index:v})=>{const y=t(u,e).length,S=t(h,e).length;return y===S||S!==0&&y!==0?f-v:y===0&&S!==0?-1:S===0&&y!==0?1:0}).map(({data:u})=>u)},F_=e=>typeof e=="object"?e:{depends:e.startsWith("--")?[e.substring(2)]:[],default:e.startsWith("#")?e:void 0},Iu=(e,t=Ui,n=ud)=>{const s=F_(t[e]);if(s.opacity===null)return;if(s.opacity)return s.opacity;const r=(o,i=[e])=>{const a=n(o,t)[0];if(a===void 0)return;const c=t[a];if(c!==void 0)return c.opacity||c===null?c.opacity:c.depends&&i.includes(a)?r(a,[...i,a]):null};if(s.depends)return r(e)},$k=(e,t=Ui,n=ud)=>{const s=F_(t[e]);if(t5[e])return e;if(s.layer===null)return;if(s.layer)return s.layer;const r=(o,i=[e])=>{const a=n(o,t)[0];if(a===void 0)return;const c=t[a];if(c!==void 0)return c.layer||c===null?c.layer:c.depends?r(c,[...i,a]):null};if(s.depends)return r(e)},kx=$x(Object.entries(Ui).sort(([,e],[,t])=>(e&&e.priority||0)-(t&&t.priority||0)).reduce((e,[t,n])=>({...e,[t]:n}),{})),Cx=Object.entries(Ui).reduce((e,[t])=>{const n=Iu(t,Ui,ud);return n?{...e,[n]:{defaultValue:wx[n]||1,affectedSlots:[...e[n]&&e[n].affectedSlots||[],t]}}:e},{}),s5=(e,t,n)=>{if(typeof e!="string"||!e.startsWith("--"))return e;let s=null;const[r,o]=e.split(/,/g).map(a=>a.trim()),i=r.substring(2);return s=t(i),o&&(s=Ls(Number.parseFloat(o)*n,s).rgb),s},Tx=(e,t)=>kx.reduce(({colors:n,opacity:s},r)=>{const o=e[r],i=F_(Ui[r]),a=ud(r,Ui),c=!!i.textColor,u=i.variant||i.layer;let f=null;c?f=x0({...n[a[0]]||$t(e[r]||"#FF00FF").rgb},Sk($k(r)||"bg",u||"bg",Iu(u),n,s)):u&&u!==r?f=n[u]||$t(e[u]).rgb:f=n.bg||$t(e.bg);const v=Ra(f)<.5?1:-1;let y=null;if(o){let I=o;if(I==="transparent"){const C=Sk($k(r),r,Iu(r)||r,n,s).slice(0,-1);I={...x0($t("#FF00FF").rgb,C),a:0}}else typeof o=="string"&&o.startsWith("--")?I=s5(o,C=>n[C]||e[C],v):typeof o=="string"&&o.startsWith("#")&&(I=$t(I).rgb);y={...I}}else if(i.default)y=$t(i.default).rgb;else{const I=($,P)=>({...P}),C=i.color||I;if(i.textColor)if(i.textColor==="bw")y=KE(f).rgb;else{let $={...n[a[0]]};i.color&&($=C(v,...a.map(P=>({...n[P]})))),y=O_(f,{...$},i.textColor==="preserve")}else y=C(v,...a.map($=>({...n[$]})))}if(!y)throw new Error("Couldn't generate color for "+r);const S=i.opacity||Iu(r),k=i.opacity;if(k===null)y.a=1;else if(o==="transparent")y.a=0;else{const I=k&&t[S]!==void 0,C=a[0],$=C&&n[C];!k&&$&&!i.textColor&&k!==null?y.a=$.a:!$&&!S?delete y.a:$&&$.a===0?y.a=0:y.a=Number(I?t[S]:(Cx[S]||{}).defaultValue)}return(Number.isNaN(y.a)||y.a===void 0)&&(y.a=1),S?{colors:{...n,[r]:y},opacity:{...s,[S]:y.a}}:{colors:{...n,[r]:y},opacity:s}},{colors:{},opacity:{}}),Ax=(e,t,n,s)=>({rules:{...n.rules,...e.rules,...t.rules,...s.rules},theme:{...n.theme,...e.theme,...t.theme,...s.theme}}),kk=e=>{const t=Ix(e);return Ax(t,Px(e),Rx(e,t.theme.colors),Lx(e))},Ck=(e,t)=>e.length===0?"none":e.filter(n=>t?n.inset:n).map(n=>[n.x,n.y,n.blur,n.spread].map(s=>s+"px").concat([XE(n.color,n.alpha),n.inset?"inset":""]).join(" ")).join(", "),Ex=e=>e.length===0?"none":e.filter(t=>!t.inset&&Number(t.spread)===0).map(t=>[t.x,t.y,t.blur/2].map(n=>n+"px").concat([XE(t.color,t.alpha)]).join(" ")).map(t=>`drop-shadow(${t})`).join(" "),Ix=e=>{const t=e.themeEngineVersion?e.colors||e:Nx(e.colors||e),{colors:n,opacity:s}=Tx(t,e.opacity||{}),r=Object.entries(n).reduce((o,[i,a])=>(a&&(o.solid[i]=$h(a),o.complete[i]=typeof a.a>"u"?$h(a):Vl(a)),o),{complete:{},solid:{}});return{rules:{colors:Object.entries(r.complete).filter(([,o])=>o).map(([o,i])=>`--${o}: ${i}`).join(";")},theme:{colors:r.solid,opacity:s}}},Px=e=>{let t=e.radii||{};typeof e.btnRadius<"u"&&(t=Object.entries(e).filter(([s])=>s.endsWith("Radius")).reduce((s,r)=>(s[r[0].split("Radius")[0]]=r[1],s),{}));const n=Object.entries(t).filter(([,s])=>s).reduce((s,[r,o])=>(s[r]=o,s),{btn:4,input:4,checkbox:2,panel:10,avatar:5,avatarAlt:50,tooltip:2,attachment:5,chatMessage:t.panel});return{rules:{radii:Object.entries(n).filter(([,s])=>s).map(([s,r])=>`--${s}Radius: ${r}px`).join(";")},theme:{radii:n}}},Lx=e=>{const t=Object.entries(e.fonts||{}).filter(([,n])=>n).reduce((n,[s,r])=>(n[s]=Object.entries(r).filter(([,o])=>o).reduce((o,[i,a])=>(o[i]=a,o),n[s]),n),{interface:{family:"sans-serif"},input:{family:"inherit"},post:{family:"inherit"},postCode:{family:"monospace"}});return{rules:{fonts:Object.entries(t).filter(([,n])=>n).map(([n,s])=>`--${n}Font: ${s.family}`).join(";")},theme:{fonts:t}}},Th=(e,t)=>({x:0,y:e?1:-1,blur:0,spread:0,color:t?"#000000":"#FFFFFF",alpha:.2,inset:!0}),Tk=[Th(!0,!1),Th(!1,!0)],Ak=[Th(!0,!0),Th(!1,!1)],Ek={x:0,y:0,blur:4,spread:0,color:"--faint",alpha:1},Ox={panel:[{x:1,y:1,blur:4,spread:0,color:"#000000",alpha:.6}],topBar:[{x:0,y:0,blur:4,spread:0,color:"#000000",alpha:.6}],popup:[{x:2,y:2,blur:3,spread:0,color:"#000000",alpha:.5}],avatar:[{x:0,y:1,blur:8,spread:0,color:"#000000",alpha:.7}],avatarStatus:[],panelHeader:[],button:[{x:0,y:0,blur:2,spread:0,color:"#000000",alpha:1},...Tk],buttonHover:[Ek,...Tk],buttonPressed:[Ek,...Ak],input:[...Ak,{x:0,y:0,blur:2,inset:!0,spread:0,color:"#000000",alpha:1}]},Rx=(e,t)=>{const n={button:"btn",panel:"bg",top:"topBar",popup:"popover",avatar:"bg",panelHeader:"panel",input:"input"},s=Object.fromEntries(Object.entries(e.shadows||{}).map(([i,a])=>[i,a.map(c=>({color:"#000000",...c}))])),r=s&&!e.themeEngineVersion?Mx(s,e.opacity):s||{},o=Object.entries({...Ox,...r}).reduce((i,[a,c])=>{const u=a.replace(/[A-Z].*$/,""),f=n[u],v=Ra($t(t[f]).rgb)<.5?1:-1,y=c.reduce((S,k)=>[...S,{...k,color:$h(s5(k.color,I=>$t(t[I]).rgb,v))}],[]);return{...i,[a]:y}},{});return{rules:{shadows:Object.entries(o).map(([i,a])=>[`--${i}Shadow: ${Ck(a)}`,`--${i}ShadowFilter: ${Ex(a)}`,`--${i}ShadowInset: ${Ck(a,!0)}`].join(";")).join(";")},theme:{shadows:o}}},Mx=(e,t)=>Object.entries(e).reduce((n,[s,r])=>{const o=({color:c="#000000"})=>c.startsWith("--"),i=({color:c})=>t[Iu(c.substring(2).split(",")[0])],a=r.reduce((c,u)=>[...c,{...u,alpha:o(u)?i(u)||1:u.alpha}],[]);return{...n,[s]:a}},{}),Nx=e=>Object.entries(e).reduce((t,[n,s])=>{const r=["","Panel","TopBar"];switch(n){case"lightBg":return{...t,highlight:s};case"btnText":return{...t,...r.reduce((o,i)=>({...o,["btn"+i+"Text"]:s}),{})};default:return{...t,[n]:s}}},{}),Fx=["bg","wallpaper","fg","text","underlay","link","accent","faint","faintLink","postFaintLink","cBlue","cRed","cGreen","cOrange","profileBg","profileTint","highlight","highlightLightText","highlightPostLink","highlightFaintText","highlightFaintLink","highlightPostFaintLink","highlightText","highlightLink","highlightIcon","popover","popoverLightText","popoverPostLink","popoverFaintText","popoverFaintLink","popoverPostFaintLink","popoverText","popoverLink","popoverIcon","selectedPost","selectedPostFaintText","selectedPostLightText","selectedPostPostLink","selectedPostFaintLink","selectedPostText","selectedPostLink","selectedPostIcon","selectedMenu","selectedMenuLightText","selectedMenuFaintText","selectedMenuFaintLink","selectedMenuText","selectedMenuLink","selectedMenuIcon","selectedMenuPopover","selectedMenuPopoverLightText","selectedMenuPopoverFaintText","selectedMenuPopoverFaintLink","selectedMenuPopoverText","selectedMenuPopoverLink","selectedMenuPopoverIcon","lightText","postLink","postGreentext","postCyantext","border","poll","pollText","icon","fgText","fgLink","panel","panelText","panelFaint","panelLink","topBar","topBarText","topBarLink","tab","tabText","tabActiveText","btn","btnText","btnPanelText","btnTopBarText","btnPressed","btnPressedText","btnPressedPanel","btnPressedPanelText","btnPressedTopBar","btnPressedTopBarText","btnToggled","btnToggledText","btnToggledPanelText","btnToggledTopBarText","btnDisabled","btnDisabledText","btnDisabledPanelText","btnDisabledTopBarText","input","inputText","inputPanelText","inputTopbarText","alertError","alertErrorText","alertErrorPanelText","alertWarning","alertWarningText","alertWarningPanelText","alertSuccess","alertSuccessText","alertSuccessPanelText","alertNeutral","alertNeutralText","alertNeutralPanelText","alertPopupError","alertPopupErrorText","alertPopupWarning","alertPopupWarningText","alertPopupSuccess","alertPopupSuccessText","alertPopupNeutral","alertPopupNeutralText","badgeNeutral","badgeNeutralText","badgeNotification","badgeNotificationText","chatBg","chatMessageIncomingBg","chatMessageIncomingText","chatMessageIncomingLink","chatMessageIncomingBorder","chatMessageOutgoingBg","chatMessageOutgoingText","chatMessageOutgoingLink","chatMessageOutgoingBorder"],Dx=new Set(["bg","fg","text","link","accent","cBlue","cRed","cGreen","cOrange","wallpaper"]),Ux=new Set(["interface","input","post","postCode"]),jx=new Set(["alert","alertPopup","bg","border","btn","faint","input","panel","popover","profileTint","underlay"]),Bx=new Set(["panel","topBar","popup","avatar","avatarStatus","panelHeader","button","buttonHover","buttonPressed","input"]),zx=new Set(["btn","input","checkbox","panel","avatar","avatarAlt","tooltip","attachment","chatMessage"]),qx=["border","icon","highlight","lightText","popover","panel","topBar","tab","btn","input","selectedMenu","alert","alertPopup","badge","post","selectedPost","poll","chatBg","chatMessage"],Hx=new Set(["border","icon","highlight","lightText","chatBg"]),Vx=Object.fromEntries(qx.map(e=>[e,Fx.filter(t=>e==="alert"?t.startsWith(e)&&!t.startsWith("alertPopup"):t.startsWith(e))])),Wx=e=>{e.colors.accent=e.colors.accent||e.colors.link,e.colors.link=e.colors.link||e.colors.accent;const t=()=>{const c={};return Dx.forEach(u=>{c["--"+u]="color | "+$t(e.colors[u]).hex}),{component:"Root",directives:c}},n=()=>{const c=[];return Object.keys(e.opacity||{}).forEach(u=>{if(!jx.has(u)||e.opacity[u]===void 0)return null;const f=e.opacity[u],h={source:"2to3"};switch(u){case"alert":h.component="Alert";break;case"alertPopup":h.component="Alert",h.parent={component:"Popover"};break;case"bg":h.component="Panel";break;case"border":h.component="Border";break;case"btn":h.component="Button";break;case"faint":h.component="Text",h.state=["faint"];break;case"input":h.component="Input";break;case"panel":h.component="PanelHeader";break;case"popover":h.component="Popover";break;case"profileTint":return null;case"underlay":h.component="Underlay";break}switch(u){case"alert":case"alertPopup":case"bg":case"btn":case"input":case"panel":case"popover":case"underlay":h.directives={opacity:f};break;case"faint":case"border":h.directives={textOpacity:f};break}c.push(h),h.component==="Button"&&(c.push({...h,component:"ScrollbarElement"}),c.push({...h,component:"Tab"}),c.push({...h,component:"Tab",state:["active"],directives:{opacity:0}})),h.component==="Panel"&&c.push({...h,component:"Post"})}),c},s=()=>{const c=[];return Object.keys(e.radii||{}).forEach(u=>{if(!zx.has(u)||e.radii[u]===void 0)return null;const f=e.radii[u],h={source:"2to3"};switch(u){case"btn":h.component="Button";break;case"tab":h.component="Tab";break;case"input":h.component="Input";break;case"checkbox":h.component="Input",h.variant="checkbox";break;case"panel":h.component="Panel";break;case"avatar":h.component="Avatar";break;case"avatarAlt":h.component="Avatar",h.variant="compact";break;case"tooltip":h.component="Popover";break;case"ChatMessage":h.component="Button";break}h.directives={roundness:f},c.push(h),h.component==="Button"&&(c.push({...h,component:"ScrollbarElement"}),c.push({...h,component:"Tab"}))}),c},r=()=>{const c=[];return Object.keys(e.fonts||{}).forEach(u=>{if(!Ux.has(u)||!e.fonts[u])return;const f=e.fonts[u].family,h={source:"2to3"};switch(u){case"interface":case"postCode":h.component="Root";break;case"input":h.component="Input";break;case"post":h.component="RichContent";break}switch(u){case"interface":case"input":case"post":h.directives={"--font":"generic | "+f};break;case"postCode":h.directives={"--monoFont":"generic | "+f},c.push({...h,component:"RichContent"});break}c.push(h)}),c},o=()=>{const c=[];return Object.keys(e.shadows||{}).forEach(u=>{if(!Bx.has(u))return;const f=e.shadows[u],h={source:"2to3"};switch(u){case"panel":h.component="Panel";break;case"topBar":h.component="TopBar";break;case"popup":h.component="Popover";break;case"avatar":h.component="Avatar";break;case"avatarStatus":h.component="Avatar",h.parent={component:"Post"};break;case"panelHeader":h.component="PanelHeader";break;case"button":h.component="Button";break;case"buttonHover":h.component="Button",h.state=["hover"];break;case"buttonPressed":h.component="Button",h.state=["pressed"];break;case"input":h.component="Input";break}h.directives={shadow:f},c.push(h),u==="topBar"&&c.push({...h,component:"PanelHeader",parent:{component:"MobileDrawer"}}),u==="avatarStatus"&&c.push({...h,parent:{component:"Notification"}}),u==="buttonPressed"&&(c.push({...h,state:["toggled"]}),c.push({...h,state:["toggled","focus"]}),c.push({...h,state:["pressed","focus"]}),c.push({...h,state:["toggled","focus","hover"]}),c.push({...h,state:["pressed","focus","hover"]})),h.component==="Button"&&(c.push({...h,component:"ScrollbarElement"}),c.push({...h,component:"Tab"}))}),c},a=Object.entries(Vx).map(([c,u])=>{if(Hx.has(c))return null;const f={source:"2to3"};return c==="alertPopup"?(f.component="Alert",f.parent={component:"Popover"}):c==="selectedPost"?(f.component="Post",f.state=["selected"]):c==="selectedMenu"?(f.component="MenuItem",f.state=["hover"]):c==="chatMessageIncoming"?f.component="ChatMessage":c==="chatMessageOutgoing"?(f.component="ChatMessage",f.variant="outgoing"):c==="panel"?f.component="PanelHeader":c==="topBar"?f.component="TopBar":c==="chatMessage"?f.component="ChatMessage":c==="poll"?f.component="PollGraph":c==="btn"?f.component="Button":f.component=c[0].toUpperCase()+c.slice(1).toLowerCase(),u.map(h=>{var C,$;if(!e.colors[h])return null;const y=(h.replace(c,"")||"Bg").match(/[A-Z][a-z]*/g),S=y.slice(-1)[0];let k={source:"2to3",directives:{}},I=[];switch(S){case"Text":case"Faint":case"Link":case"Icon":case"Greentext":case"Cyantext":case"Border":k.parent=f,k.directives.textColor=e.colors[h],I=y.slice(0,-1);break;default:k={...f,directives:{}},k.directives.background=e.colors[h],I=y;break}if(S==="Text"||S==="Link"){const P=y.slice(-2)[0];if(P==="Light")return null;P==="Faint"&&(k.state=["faint"],I=y.slice(0,-2))}switch(S){case"Text":case"Link":case"Icon":case"Border":k.component=S;break;case"Greentext":case"Cyantext":k.component="FunText",k.variant=S.toLowerCase();break;case"Faint":k.component="Text",k.state=["faint"];break}switch(I=I.filter(P=>P!=="Bg"),S==="Link"&&c==="selectedPost"&&(I=I.filter(P=>P!=="Post")),c==="popover"&&I[0]==="Post"&&(k.component="Post",k.parent={source:"2to3hack",component:"Popover"},I=I.filter(P=>P!=="Post")),c==="selectedMenu"&&I[0]==="Popover"&&(k.parent={source:"2to3hack",component:"Popover"},I=I.filter(P=>P!=="Popover")),c){case"btn":case"input":case"alert":{I.find(R=>R==="Panel")&&(k.parent={source:"2to3hack",component:"PanelHeader",parent:k.parent},I=I.filter(R=>R!=="Panel")),I.find(R=>R==="Top")&&(k.parent={source:"2to3hack",component:"TopBar",parent:k.parent},I=I.filter(R=>R!=="Top"&&R!=="Bar"));break}}if(I.length>0&&(c==="btn"?k.state=I.map(P=>P.toLowerCase()):k.variant=I[0].toLowerCase()),k.component==="Panel")return[k,{...k,component:"MobileDrawer"}];if(k.component==="Button"){const P=[k,{...k,component:"Tab"},{...k,component:"ScrollbarElement"}];return((C=k.state)==null?void 0:C.indexOf("toggled"))>=0&&(P.push({...k,state:[...k.state,"focused"]}),P.push({...k,state:[...k.state,"hover"]}),P.push({...k,state:[...k.state,"hover","focused"]})),(($=k.state)==null?void 0:$.indexOf("hover"))>=0&&P.push({...k,state:[...k.state,"focused"]}),P}else return k.component==="Badge"?k.variant==="notification"?[k,{component:"Root",directives:{"--badgeNotification":"color | "+k.directives.background}}]:k.variant==="neutral"?[{...k,variant:"normal"}]:[k]:k.component==="TopBar"?[k,{...k,parent:{component:"MobileDrawer"},component:"PanelHeader"}]:[k]})}).filter(c=>c).reduce((c,u)=>[...c,...u],[]).filter(c=>c).reduce((c,u)=>[...c,...u],[]);return[t(),...o(),...s(),...n(),...r(),...a]},Xe=vs("interface",{state:()=>({localFonts:null,themeApplied:!1,themeChangeInProgress:!1,themeVersion:"v3",styleNameUsed:null,styleDataUsed:null,useStylePalette:!1,paletteNameUsed:null,paletteDataUsed:null,themeNameUsed:null,themeDataUsed:null,temporaryChangesTimeoutId:null,temporaryChangesConfirm:()=>{},temporaryChangesRevert:()=>{},settingsModalState:"hidden",settingsModalLoadedUser:!1,settingsModalLoadedAdmin:!1,settingsModalTargetTab:null,settingsModalMode:"user",settings:{currentSaveStateNotice:null,noticeClearTimeout:null,notificationPermission:null},browserSupport:{cssFilter:window.CSS&&window.CSS.supports&&(window.CSS.supports("filter","drop-shadow(0 0)")||window.CSS.supports("-webkit-filter","drop-shadow(0 0)")),localFonts:typeof window.queryLocalFonts=="function"},layoutType:"normal",globalNotices:[],layoutHeight:0,lastTimeline:null}),actions:{setTemporaryChanges({timeoutId:e,confirm:t,revert:n}){this.temporaryChangesTimeoutId=e,this.temporaryChangesConfirm=t,this.temporaryChangesRevert=n},clearTemporaryChanges(){clearTimeout(this.temporaryChangesTimeoutId),this.temporaryChangesTimeoutId=null,this.temporaryChangesConfirm=()=>{},this.temporaryChangesRevert=()=>{}},setPageTitle(e=""){try{document.title=`${e} ${window.vuex.state.instance.name}`}catch(t){console.error(`${t}`)}},settingsSaved({success:e,error:t}){e?(this.noticeClearTimeout&&clearTimeout(this.noticeClearTimeout),this.settings.currentSaveStateNotice={error:!1,data:e},this.settings.noticeClearTimeout=setTimeout(()=>delete this.settings.currentSaveStateNotice,2e3)):this.settings.currentSaveStateNotice={error:!0,errorData:t}},setNotificationPermission(e){this.notificationPermission=e},closeSettingsModal(){this.settingsModalState="hidden"},openSettingsModal(e){this.settingsModalMode=e,this.settingsModalState="visible",e==="user"?this.settingsModalLoadedUser||(this.settingsModalLoadedUser=!0):e==="admin"&&(this.settingsModalLoadedAdmin||(this.settingsModalLoadedAdmin=!0))},togglePeekSettingsModal(){switch(this.settingsModalState){case"minimized":this.settingsModalState="visible";return;case"visible":this.settingsModalState="minimized";return;default:throw new Error("Illegal minimization state of settings modal")}},clearSettingsModalTargetTab(){this.settingsModalTargetTab=null},openSettingsModalTab(e,t="user"){this.settingsModalTargetTab=e,this.openSettingsModal(t)},removeGlobalNotice(e){this.globalNotices=this.globalNotices.filter(t=>t!==e)},pushGlobalNotice({messageKey:e,messageArgs:t={},level:n="error",timeout:s=0}){const r={messageKey:e,messageArgs:t,level:n};this.globalNotices.push(r);const o=this.globalNotices[this.globalNotices.length-1];return s&&setTimeout(()=>this.removeGlobalNotice(o),s),o},setLayoutHeight(e){this.layoutHeight=e},setLayoutWidth(e){let t=e;e!==void 0?this.layoutWidth=e:t=this.layoutWidth;const s=t<=800?"mobile":"normal",{thirdColumnMode:r}=window.vuex.getters.mergedConfig;if(r==="none"||!window.vuex.state.users.currentUser)this.layoutType=s;else{const o=t>=1300;this.layoutType=o?"wide":s}},setFontsList(e){this.localFonts=[...new Set(e.map(t=>t.family)).values()]},queryLocalFonts(){this.localFonts===null&&(this.setFontsList([]),this.browserSupport.localFonts&&window.queryLocalFonts().then(e=>{this.setFontsList(e)}).catch(e=>{this.pushGlobalNotice({messageKey:"settings.style.themes3.font.font_list_unavailable",messageArgs:{error:e},level:"error"})}))},setLastTimeline(e){this.lastTimeline=e},async fetchPalettesIndex(){try{const e=await Wg("/static/palettes/index.json");return window.vuex.commit("setInstanceOption",{name:"palettesIndex",value:e}),e}catch(e){return console.error("Could not fetch palettes index",e),window.vuex.commit("setInstanceOption",{name:"palettesIndex",value:{_error:e}}),Promise.resolve({})}},setPalette(e){this.resetThemeV3Palette(),this.resetThemeV2(),window.vuex.commit("setOption",{name:"palette",value:e}),this.applyTheme({recompile:!0})},setPaletteCustom(e){this.resetThemeV3Palette(),this.resetThemeV2(),window.vuex.commit("setOption",{name:"paletteCustomData",value:e}),this.applyTheme({recompile:!0})},async fetchStylesIndex(){try{const e=await Wg("/static/styles/index.json",XK);return window.vuex.commit("setInstanceOption",{name:"stylesIndex",value:e}),e}catch(e){return console.error("Could not fetch styles index",e),window.vuex.commit("setInstanceOption",{name:"stylesIndex",value:{_error:e}}),Promise.resolve({})}},setStyle(e){this.resetThemeV3(),this.resetThemeV2(),this.resetThemeV3Palette(),window.vuex.commit("setOption",{name:"style",value:e}),this.useStylePalette=!0,this.applyTheme({recompile:!0}).then(()=>{this.useStylePalette=!1})},setStyleCustom(e){this.resetThemeV3(),this.resetThemeV2(),this.resetThemeV3Palette(),window.vuex.commit("setOption",{name:"styleCustomData",value:e}),this.useStylePalette=!0,this.applyTheme({recompile:!0}).then(()=>{this.useStylePalette=!1})},async fetchThemesIndex(){try{const e=await Wg("/static/styles.json");return window.vuex.commit("setInstanceOption",{name:"themesIndex",value:e}),e}catch(e){return console.error("Could not fetch themes index",e),window.vuex.commit("setInstanceOption",{name:"themesIndex",value:{_error:e}}),Promise.resolve({})}},setTheme(e){this.resetThemeV3(),this.resetThemeV3Palette(),this.resetThemeV2(),window.vuex.commit("setOption",{name:"theme",value:e}),this.applyTheme({recompile:!0})},setThemeCustom(e){this.resetThemeV3(),this.resetThemeV3Palette(),this.resetThemeV2(),window.vuex.commit("setOption",{name:"customTheme",value:e}),window.vuex.commit("setOption",{name:"customThemeSource",value:e}),this.applyTheme({recompile:!0})},resetThemeV3(){window.vuex.commit("setOption",{name:"style",value:null}),window.vuex.commit("setOption",{name:"styleCustomData",value:null})},resetThemeV3Palette(){window.vuex.commit("setOption",{name:"palette",value:null}),window.vuex.commit("setOption",{name:"paletteCustomData",value:null})},resetThemeV2(){window.vuex.commit("setOption",{name:"theme",value:null}),window.vuex.commit("setOption",{name:"customTheme",value:null}),window.vuex.commit("setOption",{name:"customThemeSource",value:null})},async getThemeData(){var k;const e=async(I,C,$,P)=>{const A=I[0].toUpperCase()+I.slice(1),R={};if($)R.nameUsed="custom",R.dataUsed=$;else{if(R.nameUsed=P,R.nameUsed==null)return R.dataUsed=null,R;let B=C[R.nameUsed];if(!B){if(I==="style"||I==="palette")return R;const N=Object.keys(C)[0];B=C[N],console.warn(`${A} with id '${this.styleNameUsed}' not found, trying back to '${N}'`),B||(console.warn(`${A} doesn't have a fallback, defaulting to stock.`),B=()=>Promise.resolve(null))}R.dataUsed=await B()}return R},{style:t,palette:n}=window.vuex.state.instance;let{theme:s,themesIndex:r,stylesIndex:o,palettesIndex:i}=window.vuex.state.instance;const{style:a,styleCustomData:c,palette:u,paletteCustomData:f}=window.vuex.state.config;let{theme:h,customTheme:v,customThemeSource:y}=window.vuex.state.config,S;if(console.debug(`User V3 palette: ${u}, style: ${a} , custom: ${!!c}`),console.debug(`User V2 name: ${h}, source: ${!!y}, snapshot: ${!!v}`),console.debug(`Instance V3 palette: ${n}, style: ${t}`),console.debug("Instance V2 theme: "+s),u||f||a||c||(n||t)&&s==null&&h==null?(s=null,h=null,y=null,v=null,S="v3"):h||v||y||s?S="v2":S="v3",S==="v3"){const I=await Promise.all([this.fetchPalettesIndex(),this.fetchStylesIndex()]);i=I[0],o=I[1]}else r=(await Promise.all([this.fetchThemesIndex()]))[0];if(this.themeVersion=S,console.debug("Version used",S),S==="v3"){this.themeDataUsed=null,this.themeNameUsed=null;const I=await e("style",o,c,a||t);this.styleNameUsed=I.nameUsed,this.styleDataUsed=I.dataUsed;let C=null;(k=I.dataUsed)==null||k.filter(P=>P.component==="@palette").map(P=>{const A=Object.fromEntries(Object.entries(P.directives).filter(([R])=>R));return{name:P.variant,...A}}).forEach(P=>{const A="style."+P.name.toLowerCase().replace(/ /g,"_");C||(C=A),i[A]=()=>Promise.resolve(P)});const $=await e("palette",i,f,this.useStylePalette?C:u||n);if(this.useStylePalette&&window.vuex.commit("setOption",{name:"palette",value:C}),this.paletteNameUsed=$.nameUsed,this.paletteDataUsed=$.dataUsed,this.paletteDataUsed&&(this.paletteDataUsed.link=this.paletteDataUsed.link||this.paletteDataUsed.accent,this.paletteDataUsed.accent=this.paletteDataUsed.accent||this.paletteDataUsed.link),Array.isArray(this.paletteDataUsed)){const[P,A,R,B,N,W="#FF0000",V="#00FF00",U="#0000FF",ie="#E3FF00"]=$.dataUsed;this.paletteDataUsed={name:P,bg:A,fg:R,text:B,link:N,accent:N,cRed:W,cBlue:U,cGreen:V,cOrange:ie}}console.debug("Palette data used",$.dataUsed)}else{this.styleNameUsed=null,this.styleDataUsed=null,this.paletteNameUsed=null,this.paletteDataUsed=null;const I=await e("theme",r,y||v,h||s);this.themeNameUsed=I.nameUsed,this.themeDataUsed=I.dataUsed}},async setThemeApplied(){this.themeApplied=!0},async applyTheme({recompile:e=!1}={}){console.log("Apply");const{forceThemeRecompilation:t,themeDebug:n,theme3hacks:s}=window.vuex.state.config;this.themeChangeInProgress=!0;const r=t||e;if(await this.getThemeData(),!r&&!n&&await ox())return this.themeChangeInProgress=!1,this.setThemeApplied();window.splashUpdate("splash.theme");try{const o=(()=>{if(!this.paletteDataUsed)return null;const u={component:"Root",directives:{}};return Object.entries(this.paletteDataUsed).filter(([f])=>f!=="name").forEach(([f,h])=>{let v;switch(f){case"background":v="bg";break;case"foreground":v="fg";break;default:v=f}u.directives["--"+v]="color | "+h}),u})(),i=this.themeDataUsed&&Wx(r5(this.themeDataUsed)),a=[];Object.entries(s).forEach(([u,f])=>{switch(u){case"fonts":{Object.entries(s.fonts).forEach(([h,v])=>{if(v!=null&&v.family)switch(h){case"interface":a.push({component:"Root",directives:{"--font":"generic | "+v.family}});break;case"input":a.push({component:"Input",directives:{"--font":"generic | "+v.family}});break;case"post":a.push({component:"RichContent",directives:{"--font":"generic | "+v.family}});break;case"monospace":a.push({component:"Root",directives:{"--monoFont":"generic | "+v.family}});break}});break}case"underlay":{if(f!=="none"){const h={component:"Underlay",directives:{}};f==="opaque"&&(h.directives.opacity=1,h.directives.background="--wallpaper"),f==="transparent"&&(h.directives.opacity=0),a.push(h)}break}}});const c=[i,this.styleDataUsed,o,a].filter(u=>u);return ix(c.flat(),()=>this.setThemeApplied(),()=>{this.themeChangeInProgress=!1},n)}catch(o){window.splashError(o)}}}}),r5=e=>{let t,n;if(e.themeFileVerison===1)return kk(e).theme;Object.prototype.hasOwnProperty.call(e,"_pleroma_theme_version")||Object.prototype.hasOwnProperty.call(e,"source")||Object.prototype.hasOwnProperty.call(e,"theme")?(t=e.theme,n=e.source):(Object.prototype.hasOwnProperty.call(e,"themeEngineVersion")||Object.prototype.hasOwnProperty.call(e,"colors"))&&(t=e,n=e);let s;return n&&n.themeEngineVersion===Sx?s={...t||{},...n}:s=t,kk(s).theme},Gx=Object.freeze(Object.defineProperty({__proto__:null,normalizeThemeData:r5,useInterfaceStore:Xe},Symbol.toStringTag,{value:"Module"})),Kx="userLanguage",xx=new Set(["sidebarColumnWidth","contentColumnWidth","notifsColumnWidth","themeEditorMinWidth","textSize","navbarSize","panelHeaderSize","forcedRoundness","emojiSize","emojiReactionsScale"]),o5=Object.entries(Au).filter(([,e])=>e===void 0).map(([e])=>e),Yx={state:{...Au},getters:{defaultConfig(e,t,n){const{instance:s}=n;return{...Au,...Object.fromEntries(o5.map(r=>[r,s[r]]))}},mergedConfig(e,t,n,s){const{defaultConfig:r}=s;return{...r,...Object.fromEntries(Object.entries(e).filter(([,o])=>o!==void 0))}}},mutations:{setOptionTemporarily(e,{name:t,value:n}){Z.set(e,t,n),X0(e)},setOption(e,{name:t,value:n}){Z.set(e,t,n)},setHighlight(e,{user:t,color:n,type:s}){const r=this.state.config.highlight[t];n||s?e.highlight[t]={color:n||r.color,type:s||r.type}:delete e.highlight[t]}},actions:{loadSettings({dispatch:e},t){const n=new Set(Object.keys(Au)),s=new Set(Object.keys(t)),r=new Set;for(const o of s)n.has(o)&&r.add(o);r.forEach(o=>e("setOption",{name:o,value:t[o]}))},setHighlight({commit:e},{user:t,color:n,type:s}){e("setHighlight",{user:t,color:n,type:s})},setOptionTemporarily({commit:e,dispatch:t,state:n},{name:s,value:r}){if(Xe().temporaryChangesTimeoutId!==null){console.warn("Can't track more than one temporary change");return}const o=n[s];e("setOptionTemporarily",{name:s,value:r});const i=()=>{t("setOption",{name:s,value:r}),Xe().clearTemporaryChanges()},a=()=>{e("setOptionTemporarily",{name:s,value:o}),Xe().clearTemporaryChanges()};Xe().setTemporaryChanges({timeoutId:setTimeout(a,1e4),confirm:i,revert:a})},setThemeV2({commit:e,dispatch:t},{customTheme:n,customThemeSource:s}){e("setOption",{name:"theme",value:"custom"}),e("setOption",{name:"customTheme",value:n}),e("setOption",{name:"customThemeSource",value:s}),t("setTheme",{themeData:s,recompile:!0})},setOption({commit:e,dispatch:t,state:n},{name:s,value:r}){if(new Set(["useStreamingApi"]).has(s))switch(s){case"useStreamingApi":{t(r?"enableMastoSockets":"disableMastoSockets").then(()=>{e("setOption",{name:"useStreamingApi",value:r})}).catch(a=>{console.error("Failed starting MastoAPI Streaming socket",a),t("disableMastoSockets"),t("setOption",{name:"useStreamingApi",value:!1})});break}}else switch(e("setOption",{name:s,value:r}),xx.has(s)&&X0(n),s.startsWith("theme3hacks")&&t("applyTheme",{recompile:!0}),s){case"theme":if(r==="custom")break;t("setTheme",{themeName:r,recompile:!0,saveData:!0});break;case"themeDebug":{t("setTheme",{recompile:!0});break}case"interfaceLanguage":wp.setLanguage(bp().i18n,r),t("loadUnicodeEmojiData",r),cG.set(Kx,Tr.internalToBackendLocaleMulti(r));break;case"thirdColumnMode":Xe().setLayoutWidth(void 0);break}}}},Xx={ar:()=>Ve(()=>import("./emoji-annotations/ar.B8mhZA6U.js"),[]),ca:()=>Ve(()=>import("./emoji-annotations/ca.BNs7Pavf.js"),[]),cs:()=>Ve(()=>import("./emoji-annotations/cs.CdaRuLZ2.js"),[]),de:()=>Ve(()=>import("./emoji-annotations/de.i-ePE-E2.js"),[]),en:()=>Ve(()=>import("./emoji-annotations/en.UxzeFsjk.js"),[]),es:()=>Ve(()=>import("./emoji-annotations/es.BgprEtDA.js"),[]),et:()=>Ve(()=>import("./emoji-annotations/et.RsBIeRrK.js"),[]),eu:()=>Ve(()=>import("./emoji-annotations/eu.DflrXXOX.js"),[]),fi:()=>Ve(()=>import("./emoji-annotations/fi.BQTjfiqL.js"),[]),fr:()=>Ve(()=>import("./emoji-annotations/fr.6uuBHV2n.js"),[]),ga:()=>Ve(()=>import("./emoji-annotations/ga.D-L92xRm.js"),[]),he:()=>Ve(()=>import("./emoji-annotations/he.Ql7ZB6oR.js"),[]),hu:()=>Ve(()=>import("./emoji-annotations/hu.CfFMlYJN.js"),[]),it:()=>Ve(()=>import("./emoji-annotations/it.CjUsZ0f4.js"),[]),ja:()=>Ve(()=>import("./emoji-annotations/ja.Cp7hRpKj.js"),[]),ja_easy:()=>Ve(()=>import("./emoji-annotations/ja.Cp7hRpKj.js"),[]),ko:()=>Ve(()=>import("./emoji-annotations/ko.DGjjBGsA.js"),[]),nl:()=>Ve(()=>import("./emoji-annotations/nl.BCmP3XAV.js"),[]),pl:()=>Ve(()=>import("./emoji-annotations/pl.C1i62U33.js"),[]),pt:()=>Ve(()=>import("./emoji-annotations/pt.qcD2jbqr.js"),[]),ro:()=>Ve(()=>import("./emoji-annotations/ro.Q0r94aGX.js"),[]),ru:()=>Ve(()=>import("./emoji-annotations/ru.BsjC3M1d.js"),[]),sk:()=>Ve(()=>import("./emoji-annotations/sk.BrZ6jXEe.js"),[]),te:()=>Ve(()=>import("./emoji-annotations/te.3rQpXN4b.js"),[]),uk:()=>Ve(()=>import("./emoji-annotations/uk.C7RXZT0o.js"),[]),zh:()=>Ve(()=>import("./emoji-annotations/zh.DXJ_1nIQ.js"),[]),zh_Hant:()=>Ve(()=>import("./emoji-annotations/zh_Hant.ccXyIXaI.js"),[])},Ik=["smileys-and-emotion","people-and-body","animals-and-nature","food-and-drink","travel-and-places","activities","objects","symbols","flags"],Jx=(()=>{const n="A".codePointAt(0),s=new Array(26);for(let r=127462;r<=127487;++r){const o=String.fromCodePoint(n+r-127462);s[r-127462]={replacement:String.fromCodePoint(r),imageUrl:!1,displayText:"regional_indicator_"+o,displayTextI18n:{key:"emoji.regional_indicator",args:{letter:o}}}}return s})(),Zx="/main/ostatus",Qx={name:"Pleroma FE",registrationOpen:!0,server:"http://localhost:4040/",textlimit:5e3,themesIndex:void 0,stylesIndex:void 0,palettesIndex:void 0,themeData:void 0,vapidPublicKey:void 0,alwaysShowSubjectInput:!0,defaultAvatar:"/images/avi.png",defaultBanner:"/images/banner.png",background:"/static/aurora_borealis.jpg",embeddedToS:!0,collapseMessageWithSubject:!1,greentext:!1,mentionLinkDisplay:"short",mentionLinkShowTooltip:!0,mentionLinkShowAvatar:!1,mentionLinkFadeDomain:!0,mentionLinkShowYous:!1,mentionLinkBoldenYou:!0,hideFilteredStatuses:!1,hideMutedPosts:!1,hideMutedThreads:!0,hideWordFilteredPosts:!1,hidePostStats:!1,hideBotIndication:!1,hideSitename:!1,hideUserStats:!1,muteBotStatuses:!1,muteSensitiveStatuses:!1,modalOnRepeat:!1,modalOnUnfollow:!1,modalOnBlock:!0,modalOnMute:!1,modalOnMuteConversation:!1,modalOnMuteDomain:!0,modalOnDelete:!0,modalOnLogout:!0,modalOnApproveFollow:!1,modalOnDenyFollow:!1,modalOnRemoveUserFromFollowers:!1,modalMobileCenter:!1,loginMethod:"password",logo:"/static/logo.svg",logoMargin:".2em",logoMask:!0,logoLeft:!1,disableUpdateNotification:!1,minimalScopesMode:!1,nsfwCensorImage:void 0,postContentType:"text/plain",redirectRootLogin:"/main/friends",redirectRootNoLogin:"/main/all",scopeCopy:!0,showFeaturesPanel:!0,showInstanceSpecificPanel:!1,sidebarRight:!1,subjectLineBehavior:"email",theme:"pleroma-dark",palette:null,style:null,emojiReactionsScale:.5,textSize:"1rem",emojiSize:"2.2rem",navbarSize:"3.5rem",panelHeaderSize:"3.2rem",themeEditorMinWidth:"0rem",forcedRoundness:-1,fontsOverride:{},virtualScrolling:!0,sensitiveByDefault:!1,conversationDisplay:"linear",conversationTreeAdvanced:!1,conversationOtherRepliesButton:"below",conversationTreeFadeAncestors:!1,showExtraNotifications:!0,showExtraNotificationsTip:!0,showChatsInExtraNotifications:!0,showAnnouncementsInExtraNotifications:!0,showFollowRequestsInExtraNotifications:!0,maxDepthInThread:6,autocompleteSelect:!1,closingDrawerMarksAsSeen:!0,unseenAtTop:!1,ignoreInactionableSeen:!1,unsavedPostAction:"confirm",autoSaveDraft:!1,useAbsoluteTimeFormat:!1,absoluteTimeFormatMinAge:"0d",absoluteTime12h:"24h",customEmoji:[],customEmojiFetched:!1,emoji:{},emojiFetched:!1,unicodeEmojiAnnotations:{},pleromaExtensionsAvailable:!0,postFormats:[],restrictedNicknames:[],safeDM:!0,knownDomains:[],birthdayRequired:!1,birthdayMinAge:0,shoutAvailable:!1,pleromaChatMessagesAvailable:!1,pleromaCustomEmojiReactionsAvailable:!1,pleromaBookmarkFoldersAvailable:!1,pleromaPublicFavouritesAvailable:!0,statusNotificationTypeAvailable:!0,gopherAvailable:!1,mediaProxyAvailable:!1,suggestionsEnabled:!1,suggestionsWeb:"",quotingAvailable:!1,groupActorAvailable:!1,blockExpiration:!1,localBubbleInstances:[],instanceSpecificPanelContent:"",tos:"",backendVersion:"",backendRepository:"",frontendVersion:"",pollsAvailable:!1,pollLimits:{max_options:4,max_option_chars:255,min_expiration:60,max_expiration:60*60*24}},eY=e=>Xx[e]().then(t=>t.default),Pk=(e,t)=>{const n=Object.keys(t);return{...e,annotations:n.reduce((s,r)=>(s[r]=t[r][e.replacement],s),{})}},tY=e=>(e.symbols.push(...Jx),e),nY={state:Qx,mutations:{setInstanceOption(e,{name:t,value:n}){typeof n<"u"&&(e[t]=n)},setKnownDomains(e,t){e.knownDomains=t},setUnicodeEmojiAnnotations(e,{lang:t,annotations:n}){e.unicodeEmojiAnnotations[t]=n}},getters:{instanceDefaultConfig(e){return o5.map(t=>[t,e[t]]).reduce((t,[n,s])=>({...t,[n]:s}),{})},groupedCustomEmojis(e){const t=n=>{const s=n.tags.filter(r=>r.startsWith("pack:")).map(r=>{const o=r.slice(5);return{id:`custom-${o}`,text:o}});return s.length?s:[{id:"unpacked"}]};return e.customEmoji.reduce((n,s)=>(t(s).forEach(({id:r,text:o})=>{n[r]||(n[r]={id:r,text:o,image:s.imageUrl,emojis:[]}),n[r].emojis.push(s)}),n),{})},standardEmojiList(e){return Ik.map(t=>(e.emoji[t]||[]).map(n=>Pk(n,e.unicodeEmojiAnnotations))).reduce((t,n)=>t.concat(n),[])},standardEmojiGroupList(e){return Ik.map(t=>({id:t,emojis:(e.emoji[t]||[]).map(n=>Pk(n,e.unicodeEmojiAnnotations))}))},instanceDomain(e){return new URL(e.server).hostname},remoteInteractionLink(e){const n=(e.server.endsWith("/")?e.server.slice(0,-1):e.server)+Zx;return({statusId:s,nickname:r})=>s?`${n}?status_id=${s}`:`${n}?nickname=${r}`}},actions:{setInstanceOption({commit:e,dispatch:t},{name:n,value:s}){switch(e("setInstanceOption",{name:n,value:s}),n){case"name":Xe().setPageTitle();break;case"shoutAvailable":s&&t("initializeSocket");break}},async getStaticEmoji({commit:e}){try{const t=(await Ve(async()=>{const{default:s}=await import("./emoji.CF2IDMqM.js");return{default:s}},[])).default,n=Object.keys(t).reduce((s,r)=>(s[r]=t[r].map(o=>({displayText:o.slug,imageUrl:!1,replacement:o.emoji})),s),{});e("setInstanceOption",{name:"emoji",value:tY(n)})}catch(t){console.warn(`Can't load static emoji
`,t)}},loadUnicodeEmojiData({commit:e,state:t},n){const s=M_(n);return Promise.all(s.map(async r=>{if(!t.unicodeEmojiAnnotations[r])try{const o=await eY(r);e("setUnicodeEmojiAnnotations",{lang:r,annotations:o})}catch(o){console.warn(`Error loading unicode emoji annotations for ${r}: `,o)}}))},async getCustomEmoji({commit:e,state:t}){try{let n=await window.fetch("/api/v1/pleroma/emoji");if(n.ok||(n=await window.fetch("/api/pleroma/emoji.json")),n.ok){const s=await n.json(),r=Array.isArray(s)?Object.assign({},...s):s,o=(u,f)=>{const h=u.toLowerCase(),v=f.toLowerCase();return h>v?1:h<v?-1:0},i=(u,f)=>{const h=u==="",v=f==="";return h===v?0:h&&!v?1:-1},a=(u,f)=>{const h=S=>(S.tags.filter(k=>k.startsWith("pack:"))[0]||"").slice(5),v=h(u),y=h(f);return i(v,y)||o(v,y)||o(u.displayText,f.displayText)},c=Object.entries(r).map(([u,f])=>{const h=f.image_url;return{displayText:u,imageUrl:h?t.server+h:f,tags:h?f.tags.sort((v,y)=>v>y?1:0):["utf"],replacement:`:${u}: `}}).sort(a);e("setInstanceOption",{name:"customEmoji",value:c})}else throw n}catch(n){console.warn(`Can't load custom emojis
`,n)}},fetchEmoji({dispatch:e,state:t}){t.customEmojiFetched||(t.customEmojiFetched=!0,e("getCustomEmoji")),t.emojiFetched||(t.emojiFetched=!0,e("getStaticEmoji"))},async getKnownDomains({commit:e,rootState:t}){try{const n=await Ln.fetchKnownDomains({credentials:t.users.currentUser.credentials});e("setKnownDomains",n)}catch(n){console.warn(`Can't load known domains
`,n)}}}},Gs=(e=0)=>({statuses:[],statusesObject:{},faves:[],visibleStatuses:[],visibleStatusesObject:{},newStatusCount:0,maxId:0,minId:0,minVisibleId:0,loading:!1,followers:[],friends:[],userId:e,flushMarker:0}),i5=()=>({allStatuses:[],scrobblesNextFetch:{},allStatusesObject:{},conversationsObject:{},maxId:0,favorites:new Set,pleromaScrobblesAvailable:!0,timelines:{mentions:Gs(),public:Gs(),user:Gs(),favorites:Gs(),media:Gs(),publicAndExternal:Gs(),friends:Gs(),tag:Gs(),dms:Gs(),bookmarks:Gs(),list:Gs(),bubble:Gs()}}),sY=e=>(e.deleted=!1,e.attachments=e.attachments||[],e),cu=(e,t,n)=>{const s=t[n.id];return s?(Z.merge(s,Z.omitBy(n,(r,o)=>r===null||o==="user")),s.attachments.splice(s.attachments.length),{item:s,new:!1}):(sY(n),e.push(n),t[n.id]=n,{item:n,new:!0})},Lk=(e,t)=>{const n=Number(e.id),s=Number(t.id),r=!Number.isNaN(n),o=!Number.isNaN(s);return r&&o?n>s?-1:1:r&&!o?1:!r&&o||e.id>t.id?-1:1},xg=e=>(e.visibleStatuses=e.visibleStatuses.sort(Lk),e.statuses=e.statuses.sort(Lk),e.minVisibleId=(Z.last(e.visibleStatuses)||{}).id,e),rY=(e,t)=>{const n=e.pleromaScrobblesAvailable;n&&(e.scrobblesNextFetch[t.id]&&e.scrobblesNextFetch[t.id]>Date.now()||(e.scrobblesNextFetch[t.id]=Date.now()+24*60*60*1e3,n&&Ln.fetchScrobbles({accountId:t.id}).then(s=>{if(s!=null&&s.error){e.pleromaScrobblesAvailable=!1;return}s.length>0&&(t.latestScrobble=s[0],e.scrobblesNextFetch[t.id]=Date.now()+60*1e3)}).catch(s=>{console.warn("cannot fetch scrobbles",s)})))},oY=(e,t)=>{rY(e,t.user);const n=cu(e.allStatuses,e.allStatusesObject,t);if(n.new){const s=n.item,r=e.conversationsObject,o=s.statusnet_conversation_id;r[o]?r[o].push(s):r[o]=[s]}return n},iY=(e,{statuses:t,showImmediately:n=!1,timeline:s,user:r={},noIdUpdate:o=!1,userId:i,pagination:a={}})=>{if(!Z.isArray(t))return!1;const c=e.allStatuses,u=e.timelines[s],f=a.maxId||(t.length>0?Z.minBy(t,"id").id:0),h=a.minId||(t.length>0?Z.maxBy(t,"id").id:0),v=s&&(h>u.maxId||u.maxId===0)&&t.length>0,y=s&&(f<u.minId||u.minId===0)&&t.length>0;if(!o&&v&&(u.maxId=h),!o&&y&&(u.minId=f),(s==="user"||s==="media")&&u.userId!==i)return;const S=(C,$,P=!0)=>{const A=oY(e,C),R=A.item;if(A.new){if(R.type==="status"&&Z.find(R.attentions,{id:r.id})){const N=e.timelines.mentions;u!==N&&(cu(N.statuses,N.statusesObject,R),N.newStatusCount+=1,xg(N))}if(R.visibility==="direct"){const N=e.timelines.dms;cu(N.statuses,N.statusesObject,R),N.newStatusCount+=1,xg(N)}}let B;return s&&P&&(B=cu(u.statuses,u.statusesObject,R)),s&&$?cu(u.visibleStatuses,u.visibleStatusesObject,R):s&&P&&B.new&&(u.newStatusCount+=1),R.quote&&S(R.quote,!1,!1),R},k=C=>{const $=Z.find(c,{id:C.in_reply_to_status_id});return $&&(C.user.id===r.id?$.favorited=!0:$.fave_num+=1),$},I={status:C=>{S(C,n)},edit:C=>{S(C,n)},retweet:C=>{const $=S(C.retweeted_status,!1,!1);let P;s&&Z.find(u.statuses,A=>A.retweeted_status?A.id===$.id||A.retweeted_status.id===$.id:A.id===$.id)?P=S(C,!1,!1):P=S(C,n),P.retweeted_status=$},favorite:C=>{e.favorites.has(C.id)||(e.favorites.add(C.id),k(C))},follow:()=>{},default:C=>{console.warn("unknown status type"),console.warn(C)}};Z.each(t,C=>{const $=C.type;(I[$]||I.default)(C)}),s&&s!=="bookmarks"&&xg(u)},aY=(e,{timeline:t,userId:n})=>{const s=e.timelines[t];n&&(Z.remove(s.statuses,{user:{id:n}}),Z.remove(s.visibleStatuses,{user:{id:n}}),s.minVisibleId=s.visibleStatuses.length>0?Z.last(s.visibleStatuses).id:0,s.maxId=s.statuses.length>0?Z.first(s.statuses).id:0)},lY={addNewStatuses:iY,removeStatus:aY,showNewStatuses(e,{timeline:t}){const n=e.timelines[t];n.newStatusCount=0,n.visibleStatuses=Z.slice(n.statuses,0,50),n.minVisibleId=Z.last(n.visibleStatuses).id,n.minId=n.minVisibleId,n.visibleStatusesObject={},Z.each(n.visibleStatuses,s=>{n.visibleStatusesObject[s.id]=s})},resetStatuses(e){const t=i5();Object.entries(t).forEach(([n,s])=>{e[n]=s})},clearTimeline(e,{timeline:t,excludeUserId:n=!1}){const s=n?e.timelines[t].userId:void 0;e.timelines[t]=Gs(s)},setFavorited(e,{status:t,value:n}){const s=e.allStatusesObject[t.id];s.favorited!==n&&(n?s.fave_num++:s.fave_num--),s.favorited=n},setFavoritedConfirm(e,{status:t,user:n}){const s=e.allStatusesObject[t.id];s.favorited=t.favorited,s.fave_num=t.fave_num;const r=Z.findIndex(s.favoritedBy,{id:n.id});r!==-1&&!s.favorited?s.favoritedBy.splice(r,1):r===-1&&s.favorited&&s.favoritedBy.push(n)},setMutedStatus(e,t){const n=e.allStatusesObject[t.id];n.thread_muted=t.thread_muted,n.thread_muted!==void 0&&e.conversationsObject[n.statusnet_conversation_id].forEach(s=>{s.thread_muted=n.thread_muted})},setRetweeted(e,{status:t,value:n}){const s=e.allStatusesObject[t.id];s.repeated!==n&&(n?s.repeat_num++:s.repeat_num--),s.repeated=n},setRetweetedConfirm(e,{status:t,user:n}){const s=e.allStatusesObject[t.id];s.repeated=t.repeated,s.repeat_num=t.repeat_num;const r=Z.findIndex(s.rebloggedBy,{id:n.id});r!==-1&&!s.repeated?s.rebloggedBy.splice(r,1):r===-1&&s.repeated&&s.rebloggedBy.push(n)},setBookmarked(e,{status:t,value:n}){const s=e.allStatusesObject[t.id];s.bookmarked=n,s.bookmark_folder_id=t.bookmark_folder_id},setBookmarkedConfirm(e,{status:t}){const n=e.allStatusesObject[t.id];n.bookmarked=t.bookmarked,t.pleroma&&(n.bookmark_folder_id=t.pleroma.bookmark_folder)},setDeleted(e,{status:t}){const n=e.allStatusesObject[t.id];n&&(n.deleted=!0)},setManyDeleted(e,t){Object.values(e.allStatusesObject).forEach(n=>{t(n)&&(n.deleted=!0)})},setLoading(e,{timeline:t,value:n}){e.timelines[t].loading=n},setNsfw(e,{id:t,nsfw:n}){const s=e.allStatusesObject[t];s.nsfw=n},queueFlush(e,{timeline:t,id:n}){e.timelines[t].flushMarker=n},queueFlushAll(e){Object.keys(e.timelines).forEach(t=>{e.timelines[t].flushMarker=e.timelines[t].maxId})},addRepeats(e,{id:t,rebloggedByUsers:n,currentUser:s}){const r=e.allStatusesObject[t];r.rebloggedBy=n.filter(o=>o),r.repeat_num=r.rebloggedBy.length,r.repeated=!!r.rebloggedBy.find(({id:o})=>s.id===o)},addFavs(e,{id:t,favoritedByUsers:n,currentUser:s}){const r=e.allStatusesObject[t];r.favoritedBy=n.filter(o=>o),r.fave_num=r.favoritedBy.length,r.favorited=!!r.favoritedBy.find(({id:o})=>s.id===o)},addEmojiReactionsBy(e,{id:t,emojiReactions:n}){const s=e.allStatusesObject[t];s.emoji_reactions=n},addOwnReaction(e,{id:t,emoji:n,currentUser:s}){const r=e.allStatusesObject[t],o=Z.findIndex(r.emoji_reactions,{name:n}),i=r.emoji_reactions[o]||{name:n,count:0,accounts:[]},a={...i,count:i.count+1,me:!0,accounts:[...i.accounts,s]};o>=0?r.emoji_reactions[o]=a:r.emoji_reactions=[...r.emoji_reactions,a]},removeOwnReaction(e,{id:t,emoji:n,currentUser:s}){const r=e.allStatusesObject[t],o=Z.findIndex(r.emoji_reactions,{name:n});if(o<0)return;const i=r.emoji_reactions[o],a=i.accounts||[],c={...i,count:i.count-1,me:!1,accounts:a.filter(u=>u.id!==s.id)};c.count>0?r.emoji_reactions[o]=c:r.emoji_reactions=r.emoji_reactions.filter(u=>u.name!==n)},updateStatusWithPoll(e,{id:t,poll:n}){const s=e.allStatusesObject[t];s.poll=n},setVirtualHeight(e,{statusId:t,height:n}){e.allStatusesObject[t].virtualHeight=n}},cY={state:i5(),actions:{addNewStatuses({rootState:e,commit:t},{statuses:n,showImmediately:s=!1,timeline:r=!1,noIdUpdate:o=!1,userId:i,pagination:a}){t("addNewStatuses",{statuses:n,showImmediately:s,timeline:r,noIdUpdate:o,user:e.users.currentUser,userId:i,pagination:a})},fetchStatus({rootState:e,dispatch:t},n){return e.api.backendInteractor.fetchStatus({id:n}).then(s=>t("addNewStatuses",{statuses:[s]}))},fetchStatusSource({rootState:e},t){return Ln.fetchStatusSource({id:t.id,credentials:e.users.currentUser.credentials})},fetchStatusHistory(e,t){return Ln.fetchStatusHistory({status:t})},deleteStatus({rootState:e,commit:t},n){Ln.deleteStatus({id:n.id,credentials:e.users.currentUser.credentials}).then(()=>{t("setDeleted",{status:n})}).catch(s=>{Xe().pushGlobalNotice({level:"error",messageKey:"status.delete_error",messageArgs:[s.message],timeout:5e3})})},deleteStatusById({rootState:e,commit:t},n){const s=e.statuses.allStatusesObject[n];t("setDeleted",{status:s})},markStatusesAsDeleted({commit:e},t){e("setManyDeleted",t)},favorite({rootState:e,commit:t},n){t("setFavorited",{status:n,value:!0}),e.api.backendInteractor.favorite({id:n.id}).then(s=>t("setFavoritedConfirm",{status:s,user:e.users.currentUser}))},unfavorite({rootState:e,commit:t},n){t("setFavorited",{status:n,value:!1}),e.api.backendInteractor.unfavorite({id:n.id}).then(s=>t("setFavoritedConfirm",{status:s,user:e.users.currentUser}))},fetchPinnedStatuses({rootState:e,dispatch:t},n){e.api.backendInteractor.fetchPinnedStatuses({id:n}).then(s=>t("addNewStatuses",{statuses:s,timeline:"user",userId:n,showImmediately:!0,noIdUpdate:!0}))},pinStatus({rootState:e,dispatch:t},n){return e.api.backendInteractor.pinOwnStatus({id:n}).then(s=>t("addNewStatuses",{statuses:[s]}))},unpinStatus({rootState:e,dispatch:t},n){e.api.backendInteractor.unpinOwnStatus({id:n}).then(s=>t("addNewStatuses",{statuses:[s]}))},muteConversation({rootState:e,commit:t},{id:n}){return e.api.backendInteractor.muteConversation({id:n}).then(s=>t("setMutedStatus",s))},unmuteConversation({rootState:e,commit:t},{id:n}){return e.api.backendInteractor.unmuteConversation({id:n}).then(s=>t("setMutedStatus",s))},retweet({rootState:e,commit:t},n){t("setRetweeted",{status:n,value:!0}),e.api.backendInteractor.retweet({id:n.id}).then(s=>t("setRetweetedConfirm",{status:s.retweeted_status,user:e.users.currentUser}))},unretweet({rootState:e,commit:t},n){t("setRetweeted",{status:n,value:!1}),e.api.backendInteractor.unretweet({id:n.id}).then(s=>t("setRetweetedConfirm",{status:s,user:e.users.currentUser}))},bookmark({rootState:e,commit:t},n){t("setBookmarked",{status:n,value:!0}),e.api.backendInteractor.bookmarkStatus({id:n.id,folder_id:n.bookmark_folder_id}).then(s=>{t("setBookmarkedConfirm",{status:s})})},unbookmark({rootState:e,commit:t},n){t("setBookmarked",{status:n,value:!1}),e.api.backendInteractor.unbookmarkStatus({id:n.id}).then(s=>{t("setBookmarkedConfirm",{status:s})})},queueFlush({commit:e},{timeline:t,id:n}){e("queueFlush",{timeline:t,id:n})},queueFlushAll({commit:e}){e("queueFlushAll")},fetchFavsAndRepeats({rootState:e,commit:t},n){Promise.all([e.api.backendInteractor.fetchFavoritedByUsers({id:n}),e.api.backendInteractor.fetchRebloggedByUsers({id:n})]).then(([s,r])=>{t("addFavs",{id:n,favoritedByUsers:s,currentUser:e.users.currentUser}),t("addRepeats",{id:n,rebloggedByUsers:r,currentUser:e.users.currentUser})})},reactWithEmoji({rootState:e,dispatch:t,commit:n},{id:s,emoji:r}){const o=e.users.currentUser;o&&(n("addOwnReaction",{id:s,emoji:r,currentUser:o}),e.api.backendInteractor.reactWithEmoji({id:s,emoji:r}).then(()=>{t("fetchEmojiReactionsBy",s)}))},unreactWithEmoji({rootState:e,dispatch:t,commit:n},{id:s,emoji:r}){const o=e.users.currentUser;o&&(n("removeOwnReaction",{id:s,emoji:r,currentUser:o}),e.api.backendInteractor.unreactWithEmoji({id:s,emoji:r}).then(()=>{t("fetchEmojiReactionsBy",s)}))},fetchEmojiReactionsBy({rootState:e,commit:t},n){return e.api.backendInteractor.fetchEmojiReactions({id:n}).then(s=>{t("addEmojiReactionsBy",{id:n,emojiReactions:s,currentUser:e.users.currentUser})})},fetchFavs({rootState:e,commit:t},n){e.api.backendInteractor.fetchFavoritedByUsers({id:n}).then(s=>t("addFavs",{id:n,favoritedByUsers:s,currentUser:e.users.currentUser}))},fetchRepeats({rootState:e,commit:t},n){e.api.backendInteractor.fetchRebloggedByUsers({id:n}).then(s=>t("addRepeats",{id:n,rebloggedByUsers:s,currentUser:e.users.currentUser}))},search(e,{q:t,resolve:n,limit:s,offset:r,following:o,type:i}){return e.rootState.api.backendInteractor.search2({q:t,resolve:n,limit:s,offset:r,following:o,type:i}).then(a=>(e.commit("addNewUsers",a.accounts),e.commit("addNewUsers",a.statuses.map(c=>c.user).filter(c=>c)),e.commit("addNewStatuses",{statuses:a.statuses}),a))},setVirtualHeight({commit:e},{statusId:t,height:n}){e("setVirtualHeight",{statusId:t,height:n})}},mutations:lY},ge=(e,t)=>{const n=e.__vccOpts||e;for(const[s,r]of t)n[s]=r;return n},uY={provide:{popoversZLayer:"modals"},props:{isOpen:{type:Boolean,default:!0},noBackground:{type:Boolean,default:!1}},emits:["backdropClicked"],computed:{classes(){return{"modal-background":!this.noBackground,open:this.isOpen}}}};function dY(e,t,n,s,r,o){const i=sc("body-scroll-lock");return at((p(),b("div",{class:he(["modal-view",o.classes]),onClick:t[0]||(t[0]=Te(a=>e.$emit("backdropClicked"),["self"]))},[Ot(e.$slots,"default")],2)),[[Cr,n.isOpen],[i,n.isOpen&&!n.noBackground]])}const dd=ge(uY,[["render",dY]]);/*!
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/function fY(e,t,n){return(t=pY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ok(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,s)}return n}function Ne(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Ok(Object(n),!0).forEach(function(s){fY(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ok(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function hY(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function pY(e){var t=hY(e,"string");return typeof t=="symbol"?t:t+""}const Rk=()=>{};let D_={},a5={},l5=null,c5={mark:Rk,measure:Rk};try{typeof window<"u"&&(D_=window),typeof document<"u"&&(a5=document),typeof MutationObserver<"u"&&(l5=MutationObserver),typeof performance<"u"&&(c5=performance)}catch{}const{userAgent:Mk=""}=D_.navigator||{},ji=D_,wn=a5,Nk=l5,Pf=c5;ji.document;const Qo=!!wn.documentElement&&!!wn.head&&typeof wn.addEventListener=="function"&&typeof wn.createElement=="function",u5=~Mk.indexOf("MSIE")||~Mk.indexOf("Trident/");var mY=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,gY=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,d5={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},vY={GROUP:"duotone-group",PRIMARY:"primary",SECONDARY:"secondary"},f5=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],gs="classic",Sp="duotone",bY="sharp",yY="sharp-duotone",h5=[gs,Sp,bY,yY],_Y={classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}},wY={"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}},SY=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),$Y={classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}},kY=["fak","fa-kit","fakd","fa-kit-duotone"],Fk={kit:{fak:"kit","fa-kit":"kit"},"kit-duotone":{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"}},CY=["kit"],TY={kit:{"fa-kit":"fak"}},AY=["fak","fakd"],EY={kit:{fak:"fa-kit"}},Dk={kit:{kit:"fak"},"kit-duotone":{"kit-duotone":"fakd"}},Lf={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},IY=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],PY=["fak","fa-kit","fakd","fa-kit-duotone"],LY={"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}},OY={classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}},RY={classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]},J0={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},MY=["fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],Z0=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt",...IY,...MY],NY=["solid","regular","light","thin","duotone","brands"],p5=[1,2,3,4,5,6,7,8,9,10],FY=p5.concat([11,12,13,14,15,16,17,18,19,20]),DY=[...Object.keys(RY),...NY,"2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",Lf.GROUP,Lf.SWAP_OPACITY,Lf.PRIMARY,Lf.SECONDARY].concat(p5.map(e=>"".concat(e,"x"))).concat(FY.map(e=>"w-".concat(e))),UY={"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}};const Ko="___FONT_AWESOME___",Q0=16,m5="fa",g5="svg-inline--fa",Ma="data-fa-i2svg",ey="data-fa-pseudo-element",jY="data-fa-pseudo-element-pending",U_="data-prefix",j_="data-icon",Uk="fontawesome-i2svg",BY="async",zY=["HTML","HEAD","STYLE","SCRIPT"],v5=(()=>{try{return!0}catch{return!1}})();function fd(e){return new Proxy(e,{get(t,n){return n in t?t[n]:t[gs]}})}const b5=Ne({},d5);b5[gs]=Ne(Ne(Ne(Ne({},{"fa-duotone":"duotone"}),d5[gs]),Fk.kit),Fk["kit-duotone"]);const qY=fd(b5),ty=Ne({},$Y);ty[gs]=Ne(Ne(Ne(Ne({},{duotone:"fad"}),ty[gs]),Dk.kit),Dk["kit-duotone"]);const jk=fd(ty),ny=Ne({},J0);ny[gs]=Ne(Ne({},ny[gs]),EY.kit);const B_=fd(ny),sy=Ne({},OY);sy[gs]=Ne(Ne({},sy[gs]),TY.kit);fd(sy);const HY=mY,y5="fa-layers-text",VY=gY,WY=Ne({},_Y);fd(WY);const GY=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Yg=vY,KY=[...CY,...DY],Pu=ji.FontAwesomeConfig||{};function xY(e){var t=wn.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}function YY(e){return e===""?!0:e==="false"?!1:e==="true"?!0:e}wn&&typeof wn.querySelector=="function"&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(t=>{let[n,s]=t;const r=YY(xY(n));r!=null&&(Pu[s]=r)});const _5={styleDefault:"solid",familyDefault:gs,cssPrefix:m5,replacementClass:g5,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Pu.familyPrefix&&(Pu.cssPrefix=Pu.familyPrefix);const Wl=Ne(Ne({},_5),Pu);Wl.autoReplaceSvg||(Wl.observeMutations=!1);const it={};Object.keys(_5).forEach(e=>{Object.defineProperty(it,e,{enumerable:!0,set:function(t){Wl[e]=t,Lu.forEach(n=>n(it))},get:function(){return Wl[e]}})});Object.defineProperty(it,"familyPrefix",{enumerable:!0,set:function(e){Wl.cssPrefix=e,Lu.forEach(t=>t(it))},get:function(){return Wl.cssPrefix}});ji.FontAwesomeConfig=it;const Lu=[];function XY(e){return Lu.push(e),()=>{Lu.splice(Lu.indexOf(e),1)}}const mi=Q0,Zr={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function JY(e){if(!e||!Qo)return;const t=wn.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const n=wn.head.childNodes;let s=null;for(let r=n.length-1;r>-1;r--){const o=n[r],i=(o.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(i)>-1&&(s=o)}return wn.head.insertBefore(t,s),e}const ZY="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function xu(){let e=12,t="";for(;e-- >0;)t+=ZY[Math.random()*62|0];return t}function oc(e){const t=[];for(let n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function z_(e){return e.classList?oc(e.classList):(e.getAttribute("class")||"").split(" ").filter(t=>t)}function w5(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function QY(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,'="').concat(w5(e[n]),'" '),"").trim()}function $p(e){return Object.keys(e||{}).reduce((t,n)=>t+"".concat(n,": ").concat(e[n].trim(),";"),"")}function q_(e){return e.size!==Zr.size||e.x!==Zr.x||e.y!==Zr.y||e.rotate!==Zr.rotate||e.flipX||e.flipY}function eX(e){let{transform:t,containerWidth:n,iconWidth:s}=e;const r={transform:"translate(".concat(n/2," 256)")},o="translate(".concat(t.x*32,", ").concat(t.y*32,") "),i="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)"),c={transform:"".concat(o," ").concat(i," ").concat(a)},u={transform:"translate(".concat(s/2*-1," -256)")};return{outer:r,inner:c,path:u}}function tX(e){let{transform:t,width:n=Q0,height:s=Q0,startCentered:r=!1}=e,o="";return r&&u5?o+="translate(".concat(t.x/mi-n/2,"em, ").concat(t.y/mi-s/2,"em) "):r?o+="translate(calc(-50% + ".concat(t.x/mi,"em), calc(-50% + ").concat(t.y/mi,"em)) "):o+="translate(".concat(t.x/mi,"em, ").concat(t.y/mi,"em) "),o+="scale(".concat(t.size/mi*(t.flipX?-1:1),", ").concat(t.size/mi*(t.flipY?-1:1),") "),o+="rotate(".concat(t.rotate,"deg) "),o}var nX=`:root, :host {
--fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";
--fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";
--fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";
--fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";
--fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";
--fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";
--fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";
--fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";
--fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";
--fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";
--fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";
--fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";
--fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";
--fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";
}
svg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {
overflow: visible;
box-sizing: content-box;
}
.svg-inline--fa {
display: var(--fa-display, inline-block);
height: 1em;
overflow: visible;
vertical-align: -0.125em;
}
.svg-inline--fa.fa-2xs {
vertical-align: 0.1em;
}
.svg-inline--fa.fa-xs {
vertical-align: 0em;
}
.svg-inline--fa.fa-sm {
vertical-align: -0.0714285705em;
}
.svg-inline--fa.fa-lg {
vertical-align: -0.2em;
}
.svg-inline--fa.fa-xl {
vertical-align: -0.25em;
}
.svg-inline--fa.fa-2xl {
vertical-align: -0.3125em;
}
.svg-inline--fa.fa-pull-left {
margin-right: var(--fa-pull-margin, 0.3em);
width: auto;
}
.svg-inline--fa.fa-pull-right {
margin-left: var(--fa-pull-margin, 0.3em);
width: auto;
}
.svg-inline--fa.fa-li {
width: var(--fa-li-width, 2em);
top: 0.25em;
}
.svg-inline--fa.fa-fw {
width: var(--fa-fw-width, 1.25em);
}
.fa-layers svg.svg-inline--fa {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
}
.fa-layers-counter, .fa-layers-text {
display: inline-block;
position: absolute;
text-align: center;
}
.fa-layers {
display: inline-block;
height: 1em;
position: relative;
text-align: center;
vertical-align: -0.125em;
width: 1em;
}
.fa-layers svg.svg-inline--fa {
transform-origin: center center;
}
.fa-layers-text {
left: 50%;
top: 50%;
transform: translate(-50%, -50%);
transform-origin: center center;
}
.fa-layers-counter {
background-color: var(--fa-counter-background-color, #ff253a);
border-radius: var(--fa-counter-border-radius, 1em);
box-sizing: border-box;
color: var(--fa-inverse, #fff);
line-height: var(--fa-counter-line-height, 1);
max-width: var(--fa-counter-max-width, 5em);
min-width: var(--fa-counter-min-width, 1.5em);
overflow: hidden;
padding: var(--fa-counter-padding, 0.25em 0.5em);
right: var(--fa-right, 0);
text-overflow: ellipsis;
top: var(--fa-top, 0);
transform: scale(var(--fa-counter-scale, 0.25));
transform-origin: top right;
}
.fa-layers-bottom-right {
bottom: var(--fa-bottom, 0);
right: var(--fa-right, 0);
top: auto;
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: bottom right;
}
.fa-layers-bottom-left {
bottom: var(--fa-bottom, 0);
left: var(--fa-left, 0);
right: auto;
top: auto;
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: bottom left;
}
.fa-layers-top-right {
top: var(--fa-top, 0);
right: var(--fa-right, 0);
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: top right;
}
.fa-layers-top-left {
left: var(--fa-left, 0);
right: auto;
top: var(--fa-top, 0);
transform: scale(var(--fa-layers-scale, 0.25));
transform-origin: top left;
}
.fa-1x {
font-size: 1em;
}
.fa-2x {
font-size: 2em;
}
.fa-3x {
font-size: 3em;
}
.fa-4x {
font-size: 4em;
}
.fa-5x {
font-size: 5em;
}
.fa-6x {
font-size: 6em;
}
.fa-7x {
font-size: 7em;
}
.fa-8x {
font-size: 8em;
}
.fa-9x {
font-size: 9em;
}
.fa-10x {
font-size: 10em;
}
.fa-2xs {
font-size: 0.625em;
line-height: 0.1em;
vertical-align: 0.225em;
}
.fa-xs {
font-size: 0.75em;
line-height: 0.0833333337em;
vertical-align: 0.125em;
}
.fa-sm {
font-size: 0.875em;
line-height: 0.0714285718em;
vertical-align: 0.0535714295em;
}
.fa-lg {
font-size: 1.25em;
line-height: 0.05em;
vertical-align: -0.075em;
}
.fa-xl {
font-size: 1.5em;
line-height: 0.0416666682em;
vertical-align: -0.125em;
}
.fa-2xl {
font-size: 2em;
line-height: 0.03125em;
vertical-align: -0.1875em;
}
.fa-fw {
text-align: center;
width: 1.25em;
}
.fa-ul {
list-style-type: none;
margin-left: var(--fa-li-margin, 2.5em);
padding-left: 0;
}
.fa-ul > li {
position: relative;
}
.fa-li {
left: calc(-1 * var(--fa-li-width, 2em));
position: absolute;
text-align: center;
width: var(--fa-li-width, 2em);
line-height: inherit;
}
.fa-border {
border-color: var(--fa-border-color, #eee);
border-radius: var(--fa-border-radius, 0.1em);
border-style: var(--fa-border-style, solid);
border-width: var(--fa-border-width, 0.08em);
padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);
}
.fa-pull-left {
float: left;
margin-right: var(--fa-pull-margin, 0.3em);
}
.fa-pull-right {
float: right;
margin-left: var(--fa-pull-margin, 0.3em);
}
.fa-beat {
animation-name: fa-beat;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-bounce {
animation-name: fa-bounce;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));
}
.fa-fade {
animation-name: fa-fade;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}
.fa-beat-fade {
animation-name: fa-beat-fade;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));
}
.fa-flip {
animation-name: fa-flip;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, ease-in-out);
}
.fa-shake {
animation-name: fa-shake;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, linear);
}
.fa-spin {
animation-name: fa-spin;
animation-delay: var(--fa-animation-delay, 0s);
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 2s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, linear);
}
.fa-spin-reverse {
--fa-animation-direction: reverse;
}
.fa-pulse,
.fa-spin-pulse {
animation-name: fa-spin;
animation-direction: var(--fa-animation-direction, normal);
animation-duration: var(--fa-animation-duration, 1s);
animation-iteration-count: var(--fa-animation-iteration-count, infinite);
animation-timing-function: var(--fa-animation-timing, steps(8));
}
@media (prefers-reduced-motion: reduce) {
.fa-beat,
.fa-bounce,
.fa-fade,
.fa-beat-fade,
.fa-flip,
.fa-pulse,
.fa-shake,
.fa-spin,
.fa-spin-pulse {
animation-delay: -1ms;
animation-duration: 1ms;
animation-iteration-count: 1;
transition-delay: 0s;
transition-duration: 0s;
}
}
@keyframes fa-beat {
0%, 90% {
transform: scale(1);
}
45% {
transform: scale(var(--fa-beat-scale, 1.25));
}
}
@keyframes fa-bounce {
0% {
transform: scale(1, 1) translateY(0);
}
10% {
transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);
}
30% {
transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));
}
50% {
transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);
}
57% {
transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));
}
64% {
transform: scale(1, 1) translateY(0);
}
100% {
transform: scale(1, 1) translateY(0);
}
}
@keyframes fa-fade {
50% {
opacity: var(--fa-fade-opacity, 0.4);
}
}
@keyframes fa-beat-fade {
0%, 100% {
opacity: var(--fa-beat-fade-opacity, 0.4);
transform: scale(1);
}
50% {
opacity: 1;
transform: scale(var(--fa-beat-fade-scale, 1.125));
}
}
@keyframes fa-flip {
50% {
transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));
}
}
@keyframes fa-shake {
0% {
transform: rotate(-15deg);
}
4% {
transform: rotate(15deg);
}
8%, 24% {
transform: rotate(-18deg);
}
12%, 28% {
transform: rotate(18deg);
}
16% {
transform: rotate(-22deg);
}
20% {
transform: rotate(22deg);
}
32% {
transform: rotate(-12deg);
}
36% {
transform: rotate(12deg);
}
40%, 100% {
transform: rotate(0deg);
}
}
@keyframes fa-spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
.fa-rotate-90 {
transform: rotate(90deg);
}
.fa-rotate-180 {
transform: rotate(180deg);
}
.fa-rotate-270 {
transform: rotate(270deg);
}
.fa-flip-horizontal {
transform: scale(-1, 1);
}
.fa-flip-vertical {
transform: scale(1, -1);
}
.fa-flip-both,
.fa-flip-horizontal.fa-flip-vertical {
transform: scale(-1, -1);
}
.fa-rotate-by {
transform: rotate(var(--fa-rotate-angle, 0));
}
.fa-stack {
display: inline-block;
vertical-align: middle;
height: 2em;
position: relative;
width: 2.5em;
}
.fa-stack-1x,
.fa-stack-2x {
bottom: 0;
left: 0;
margin: auto;
position: absolute;
right: 0;
top: 0;
z-index: var(--fa-stack-z-index, auto);
}
.svg-inline--fa.fa-stack-1x {
height: 1em;
width: 1.25em;
}
.svg-inline--fa.fa-stack-2x {
height: 2em;
width: 2.5em;
}
.fa-inverse {
color: var(--fa-inverse, #fff);
}
.sr-only,
.fa-sr-only {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.sr-only-focusable:not(:focus),
.fa-sr-only-focusable:not(:focus) {
position: absolute;
width: 1px;
height: 1px;
padding: 0;
margin: -1px;
overflow: hidden;
clip: rect(0, 0, 0, 0);
white-space: nowrap;
border-width: 0;
}
.svg-inline--fa .fa-primary {
fill: var(--fa-primary-color, currentColor);
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa .fa-secondary {
fill: var(--fa-secondary-color, currentColor);
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-primary {
opacity: var(--fa-secondary-opacity, 0.4);
}
.svg-inline--fa.fa-swap-opacity .fa-secondary {
opacity: var(--fa-primary-opacity, 1);
}
.svg-inline--fa mask .fa-primary,
.svg-inline--fa mask .fa-secondary {
fill: black;
}`;function S5(){const e=m5,t=g5,n=it.cssPrefix,s=it.replacementClass;let r=nX;if(n!==e||s!==t){const o=new RegExp("\\.".concat(e,"\\-"),"g"),i=new RegExp("\\--".concat(e,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");r=r.replace(o,".".concat(n,"-")).replace(i,"--".concat(n,"-")).replace(a,".".concat(s))}return r}let Bk=!1;function Xg(){it.autoAddCss&&!Bk&&(JY(S5()),Bk=!0)}var sX={mixout(){return{dom:{css:S5,insertCss:Xg}}},hooks(){return{beforeDOMElementCreation(){Xg()},beforeI2svg(){Xg()}}}};const xo=ji||{};xo[Ko]||(xo[Ko]={});xo[Ko].styles||(xo[Ko].styles={});xo[Ko].hooks||(xo[Ko].hooks={});xo[Ko].shims||(xo[Ko].shims=[]);var Qr=xo[Ko];const $5=[],k5=function(){wn.removeEventListener("DOMContentLoaded",k5),Ah=1,$5.map(e=>e())};let Ah=!1;Qo&&(Ah=(wn.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(wn.readyState),Ah||wn.addEventListener("DOMContentLoaded",k5));function rX(e){Qo&&(Ah?setTimeout(e,0):$5.push(e))}function hd(e){const{tag:t,attributes:n={},children:s=[]}=e;return typeof e=="string"?w5(e):"<".concat(t," ").concat(QY(n),">").concat(s.map(hd).join(""),"</").concat(t,">")}function zk(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}var Jg=function(t,n,s,r){var o=Object.keys(t),i=o.length,a=n,c,u,f;for(s===void 0?(c=1,f=t[o[0]]):(c=0,f=s);c<i;c++)u=o[c],f=a(f,t[u],u,t);return f};function oX(e){const t=[];let n=0;const s=e.length;for(;n<s;){const r=e.charCodeAt(n++);if(r>=55296&&r<=56319&&n<s){const o=e.charCodeAt(n++);(o&64512)==56320?t.push(((r&1023)<<10)+(o&1023)+65536):(t.push(r),n--)}else t.push(r)}return t}function ry(e){const t=oX(e);return t.length===1?t[0].toString(16):null}function iX(e,t){const n=e.length;let s=e.charCodeAt(t),r;return s>=55296&&s<=56319&&n>t+1&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(s-55296)*1024+r-56320+65536:s}function qk(e){return Object.keys(e).reduce((t,n)=>{const s=e[n];return!!s.icon?t[s.iconName]=s.icon:t[n]=s,t},{})}function oy(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};const{skipHooks:s=!1}=n,r=qk(t);typeof Qr.hooks.addPack=="function"&&!s?Qr.hooks.addPack(e,qk(t)):Qr.styles[e]=Ne(Ne({},Qr.styles[e]||{}),r),e==="fas"&&oy("fa",t)}const{styles:Yu,shims:aX}=Qr,C5=Object.keys(B_),lX=C5.reduce((e,t)=>(e[t]=Object.keys(B_[t]),e),{});let H_=null,T5={},A5={},E5={},I5={},P5={};function cX(e){return~KY.indexOf(e)}function uX(e,t){const n=t.split("-"),s=n[0],r=n.slice(1).join("-");return s===e&&r!==""&&!cX(r)?r:null}const L5=()=>{const e=s=>Jg(Yu,(r,o,i)=>(r[i]=Jg(o,s,{}),r),{});T5=e((s,r,o)=>(r[3]&&(s[r[3]]=o),r[2]&&r[2].filter(a=>typeof a=="number").forEach(a=>{s[a.toString(16)]=o}),s)),A5=e((s,r,o)=>(s[o]=o,r[2]&&r[2].filter(a=>typeof a=="string").forEach(a=>{s[a]=o}),s)),P5=e((s,r,o)=>{const i=r[2];return s[o]=o,i.forEach(a=>{s[a]=o}),s});const t="far"in Yu||it.autoFetchSvg,n=Jg(aX,(s,r)=>{const o=r[0];let i=r[1];const a=r[2];return i==="far"&&!t&&(i="fas"),typeof o=="string"&&(s.names[o]={prefix:i,iconName:a}),typeof o=="number"&&(s.unicodes[o.toString(16)]={prefix:i,iconName:a}),s},{names:{},unicodes:{}});E5=n.names,I5=n.unicodes,H_=kp(it.styleDefault,{family:it.familyDefault})};XY(e=>{H_=kp(e.styleDefault,{family:it.familyDefault})});L5();function V_(e,t){return(T5[e]||{})[t]}function dX(e,t){return(A5[e]||{})[t]}function Sa(e,t){return(P5[e]||{})[t]}function O5(e){return E5[e]||{prefix:null,iconName:null}}function fX(e){const t=I5[e],n=V_("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}function Bi(){return H_}const R5=()=>({prefix:null,iconName:null,rest:[]});function hX(e){let t=gs;const n=C5.reduce((s,r)=>(s[r]="".concat(it.cssPrefix,"-").concat(r),s),{});return h5.forEach(s=>{(e.includes(n[s])||e.some(r=>lX[s].includes(r)))&&(t=s)}),t}function kp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{family:n=gs}=t,s=qY[n][e];if(n===Sp&&!e)return"fad";const r=jk[n][e]||jk[n][s],o=e in Qr.styles?e:null;return r||o||null}function pX(e){let t=[],n=null;return e.forEach(s=>{const r=uX(it.cssPrefix,s);r?n=r:s&&t.push(s)}),{iconName:n,rest:t}}function Hk(e){return e.sort().filter((t,n,s)=>s.indexOf(t)===n)}function Cp(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{skipLookups:n=!1}=t;let s=null;const r=Z0.concat(PY),o=Hk(e.filter(h=>r.includes(h))),i=Hk(e.filter(h=>!Z0.includes(h))),a=o.filter(h=>(s=h,!f5.includes(h))),[c=null]=a,u=hX(o),f=Ne(Ne({},pX(i)),{},{prefix:kp(c,{family:u})});return Ne(Ne(Ne({},f),bX({values:e,family:u,styles:Yu,config:it,canonical:f,givenPrefix:s})),mX(n,s,f))}function mX(e,t,n){let{prefix:s,iconName:r}=n;if(e||!s||!r)return{prefix:s,iconName:r};const o=t==="fa"?O5(r):{},i=Sa(s,r);return r=o.iconName||i||r,s=o.prefix||s,s==="far"&&!Yu.far&&Yu.fas&&!it.autoFetchSvg&&(s="fas"),{prefix:s,iconName:r}}const gX=h5.filter(e=>e!==gs||e!==Sp),vX=Object.keys(J0).filter(e=>e!==gs).map(e=>Object.keys(J0[e])).flat();function bX(e){const{values:t,family:n,canonical:s,givenPrefix:r="",styles:o={},config:i={}}=e,a=n===Sp,c=t.includes("fa-duotone")||t.includes("fad"),u=i.familyDefault==="duotone",f=s.prefix==="fad"||s.prefix==="fa-duotone";if(!a&&(c||u||f)&&(s.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(s.prefix="fab"),!s.prefix&&gX.includes(n)&&(Object.keys(o).find(v=>vX.includes(v))||i.autoFetchSvg)){const v=SY.get(n).defaultShortPrefixId;s.prefix=v,s.iconName=Sa(s.prefix,s.iconName)||s.iconName}return(s.prefix==="fa"||r==="fa")&&(s.prefix=Bi()||"fas"),s}class yX{constructor(){this.definitions={}}add(){for(var t=arguments.length,n=new Array(t),s=0;s<t;s++)n[s]=arguments[s];const r=n.reduce(this._pullDefinitions,{});Object.keys(r).forEach(o=>{this.definitions[o]=Ne(Ne({},this.definitions[o]||{}),r[o]),oy(o,r[o]);const i=B_[gs][o];i&&oy(i,r[o]),L5()})}reset(){this.definitions={}}_pullDefinitions(t,n){const s=n.prefix&&n.iconName&&n.icon?{0:n}:n;return Object.keys(s).map(r=>{const{prefix:o,iconName:i,icon:a}=s[r],c=a[2];t[o]||(t[o]={}),c.length>0&&c.forEach(u=>{typeof u=="string"&&(t[o][u]=a)}),t[o][i]=a}),t}}let Vk=[],El={};const Fl={},_X=Object.keys(Fl);function wX(e,t){let{mixoutsTo:n}=t;return Vk=e,El={},Object.keys(Fl).forEach(s=>{_X.indexOf(s)===-1&&delete Fl[s]}),Vk.forEach(s=>{const r=s.mixout?s.mixout():{};if(Object.keys(r).forEach(o=>{typeof r[o]=="function"&&(n[o]=r[o]),typeof r[o]=="object"&&Object.keys(r[o]).forEach(i=>{n[o]||(n[o]={}),n[o][i]=r[o][i]})}),s.hooks){const o=s.hooks();Object.keys(o).forEach(i=>{El[i]||(El[i]=[]),El[i].push(o[i])})}s.provides&&s.provides(Fl)}),n}function iy(e,t){for(var n=arguments.length,s=new Array(n>2?n-2:0),r=2;r<n;r++)s[r-2]=arguments[r];return(El[e]||[]).forEach(i=>{t=i.apply(null,[t,...s])}),t}function Na(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),s=1;s<t;s++)n[s-1]=arguments[s];(El[e]||[]).forEach(o=>{o.apply(null,n)})}function zi(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Fl[e]?Fl[e].apply(null,t):void 0}function ay(e){e.prefix==="fa"&&(e.prefix="fas");let{iconName:t}=e;const n=e.prefix||Bi();if(t)return t=Sa(n,t)||t,zk(M5.definitions,n,t)||zk(Qr.styles,n,t)}const M5=new yX,SX=()=>{it.autoReplaceSvg=!1,it.observeMutations=!1,Na("noAuto")},$X={i2svg:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Qo?(Na("beforeI2svg",e),zi("pseudoElements2svg",e),zi("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;it.autoReplaceSvg===!1&&(it.autoReplaceSvg=!0),it.observeMutations=!0,rX(()=>{CX({autoReplaceSvgRoot:t}),Na("watch",e)})}},kX={icon:e=>{if(e===null)return null;if(typeof e=="object"&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:Sa(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&e.length===2){const t=e[1].indexOf("fa-")===0?e[1].slice(3):e[1],n=kp(e[0]);return{prefix:n,iconName:Sa(n,t)||t}}if(typeof e=="string"&&(e.indexOf("".concat(it.cssPrefix,"-"))>-1||e.match(HY))){const t=Cp(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Bi(),iconName:Sa(t.prefix,t.iconName)||t.iconName}}if(typeof e=="string"){const t=Bi();return{prefix:t,iconName:Sa(t,e)||e}}}},Js={noAuto:SX,config:it,dom:$X,parse:kX,library:M5,findIconDefinition:ay,toHtml:hd},CX=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const{autoReplaceSvgRoot:t=wn}=e;(Object.keys(Qr.styles).length>0||it.autoFetchSvg)&&Qo&&it.autoReplaceSvg&&Js.dom.i2svg({node:t})};function Tp(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map(n=>hd(n))}}),Object.defineProperty(e,"node",{get:function(){if(!Qo)return;const n=wn.createElement("div");return n.innerHTML=e.html,n.children}}),e}function TX(e){let{children:t,main:n,mask:s,attributes:r,styles:o,transform:i}=e;if(q_(i)&&n.found&&!s.found){const{width:a,height:c}=n,u={x:a/c/2,y:.5};r.style=$p(Ne(Ne({},o),{},{"transform-origin":"".concat(u.x+i.x/16,"em ").concat(u.y+i.y/16,"em")}))}return[{tag:"svg",attributes:r,children:t}]}function AX(e){let{prefix:t,iconName:n,children:s,attributes:r,symbol:o}=e;const i=o===!0?"".concat(t,"-").concat(it.cssPrefix,"-").concat(n):o;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:Ne(Ne({},r),{},{id:i}),children:s}]}]}function W_(e){const{icons:{main:t,mask:n},prefix:s,iconName:r,transform:o,symbol:i,title:a,maskId:c,titleId:u,extra:f,watchable:h=!1}=e,{width:v,height:y}=n.found?n:t,S=AY.includes(s),k=[it.replacementClass,r?"".concat(it.cssPrefix,"-").concat(r):""].filter(R=>f.classes.indexOf(R)===-1).filter(R=>R!==""||!!R).concat(f.classes).join(" ");let I={children:[],attributes:Ne(Ne({},f.attributes),{},{"data-prefix":s,"data-icon":r,class:k,role:f.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(v," ").concat(y)})};const C=S&&!~f.classes.indexOf("fa-fw")?{width:"".concat(v/y*16*.0625,"em")}:{};h&&(I.attributes[Ma]=""),a&&(I.children.push({tag:"title",attributes:{id:I.attributes["aria-labelledby"]||"title-".concat(u||xu())},children:[a]}),delete I.attributes.title);const $=Ne(Ne({},I),{},{prefix:s,iconName:r,main:t,mask:n,maskId:c,transform:o,symbol:i,styles:Ne(Ne({},C),f.styles)}),{children:P,attributes:A}=n.found&&t.found?zi("generateAbstractMask",$)||{children:[],attributes:{}}:zi("generateAbstractIcon",$)||{children:[],attributes:{}};return $.children=P,$.attributes=A,i?AX($):TX($)}function Wk(e){const{content:t,width:n,height:s,transform:r,title:o,extra:i,watchable:a=!1}=e,c=Ne(Ne(Ne({},i.attributes),o?{title:o}:{}),{},{class:i.classes.join(" ")});a&&(c[Ma]="");const u=Ne({},i.styles);q_(r)&&(u.transform=tX({transform:r,startCentered:!0,width:n,height:s}),u["-webkit-transform"]=u.transform);const f=$p(u);f.length>0&&(c.style=f);const h=[];return h.push({tag:"span",attributes:c,children:[t]}),o&&h.push({tag:"span",attributes:{class:"sr-only"},children:[o]}),h}function EX(e){const{content:t,title:n,extra:s}=e,r=Ne(Ne(Ne({},s.attributes),n?{title:n}:{}),{},{class:s.classes.join(" ")}),o=$p(s.styles);o.length>0&&(r.style=o);const i=[];return i.push({tag:"span",attributes:r,children:[t]}),n&&i.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),i}const{styles:Zg}=Qr;function ly(e){const t=e[0],n=e[1],[s]=e.slice(4);let r=null;return Array.isArray(s)?r={tag:"g",attributes:{class:"".concat(it.cssPrefix,"-").concat(Yg.GROUP)},children:[{tag:"path",attributes:{class:"".concat(it.cssPrefix,"-").concat(Yg.SECONDARY),fill:"currentColor",d:s[0]}},{tag:"path",attributes:{class:"".concat(it.cssPrefix,"-").concat(Yg.PRIMARY),fill:"currentColor",d:s[1]}}]}:r={tag:"path",attributes:{fill:"currentColor",d:s}},{found:!0,width:t,height:n,icon:r}}const IX={found:!1,width:512,height:512};function PX(e,t){!v5&&!it.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}function cy(e,t){let n=t;return t==="fa"&&it.styleDefault!==null&&(t=Bi()),new Promise((s,r)=>{if(n==="fa"){const o=O5(e)||{};e=o.iconName||e,t=o.prefix||t}if(e&&t&&Zg[t]&&Zg[t][e]){const o=Zg[t][e];return s(ly(o))}PX(e,t),s(Ne(Ne({},IX),{},{icon:it.showMissingIcons&&e?zi("missingIconAbstract")||{}:{}}))})}const Gk=()=>{},uy=it.measurePerformance&&Pf&&Pf.mark&&Pf.measure?Pf:{mark:Gk,measure:Gk},uu='FA "6.7.2"',LX=e=>(uy.mark("".concat(uu," ").concat(e," begins")),()=>N5(e)),N5=e=>{uy.mark("".concat(uu," ").concat(e," ends")),uy.measure("".concat(uu," ").concat(e),"".concat(uu," ").concat(e," begins"),"".concat(uu," ").concat(e," ends"))};var G_={begin:LX,end:N5};const Jf=()=>{};function Kk(e){return typeof(e.getAttribute?e.getAttribute(Ma):null)=="string"}function OX(e){const t=e.getAttribute?e.getAttribute(U_):null,n=e.getAttribute?e.getAttribute(j_):null;return t&&n}function RX(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(it.replacementClass)}function MX(){return it.autoReplaceSvg===!0?Zf.replace:Zf[it.autoReplaceSvg]||Zf.replace}function NX(e){return wn.createElementNS("http://www.w3.org/2000/svg",e)}function FX(e){return wn.createElement(e)}function F5(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{ceFn:n=e.tag==="svg"?NX:FX}=t;if(typeof e=="string")return wn.createTextNode(e);const s=n(e.tag);return Object.keys(e.attributes||[]).forEach(function(o){s.setAttribute(o,e.attributes[o])}),(e.children||[]).forEach(function(o){s.appendChild(F5(o,{ceFn:n}))}),s}function DX(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}const Zf={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach(n=>{t.parentNode.insertBefore(F5(n),t)}),t.getAttribute(Ma)===null&&it.keepOriginalSource){let n=wn.createComment(DX(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){const t=e[0],n=e[1];if(~z_(t).indexOf(it.replacementClass))return Zf.replace(e);const s=new RegExp("".concat(it.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){const o=n[0].attributes.class.split(" ").reduce((i,a)=>(a===it.replacementClass||a.match(s)?i.toSvg.push(a):i.toNode.push(a),i),{toNode:[],toSvg:[]});n[0].attributes.class=o.toSvg.join(" "),o.toNode.length===0?t.removeAttribute("class"):t.setAttribute("class",o.toNode.join(" "))}const r=n.map(o=>hd(o)).join(`
`);t.setAttribute(Ma,""),t.innerHTML=r}};function xk(e){e()}function D5(e,t){const n=typeof t=="function"?t:Jf;if(e.length===0)n();else{let s=xk;it.mutateApproach===BY&&(s=ji.requestAnimationFrame||xk),s(()=>{const r=MX(),o=G_.begin("mutate");e.map(r),o(),n()})}}let K_=!1;function U5(){K_=!0}function dy(){K_=!1}let Eh=null;function Yk(e){if(!Nk||!it.observeMutations)return;const{treeCallback:t=Jf,nodeCallback:n=Jf,pseudoElementsCallback:s=Jf,observeMutationsRoot:r=wn}=e;Eh=new Nk(o=>{if(K_)return;const i=Bi();oc(o).forEach(a=>{if(a.type==="childList"&&a.addedNodes.length>0&&!Kk(a.addedNodes[0])&&(it.searchPseudoElements&&s(a.target),t(a.target)),a.type==="attributes"&&a.target.parentNode&&it.searchPseudoElements&&s(a.target.parentNode),a.type==="attributes"&&Kk(a.target)&&~GY.indexOf(a.attributeName))if(a.attributeName==="class"&&OX(a.target)){const{prefix:c,iconName:u}=Cp(z_(a.target));a.target.setAttribute(U_,c||i),u&&a.target.setAttribute(j_,u)}else RX(a.target)&&n(a.target)})}),Qo&&Eh.observe(r,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function UX(){Eh&&Eh.disconnect()}function jX(e){const t=e.getAttribute("style");let n=[];return t&&(n=t.split(";").reduce((s,r)=>{const o=r.split(":"),i=o[0],a=o.slice(1);return i&&a.length>0&&(s[i]=a.join(":").trim()),s},{})),n}function BX(e){const t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),s=e.innerText!==void 0?e.innerText.trim():"";let r=Cp(z_(e));return r.prefix||(r.prefix=Bi()),t&&n&&(r.prefix=t,r.iconName=n),r.iconName&&r.prefix||(r.prefix&&s.length>0&&(r.iconName=dX(r.prefix,e.innerText)||V_(r.prefix,ry(e.innerText))),!r.iconName&&it.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=e.firstChild.data)),r}function zX(e){const t=oc(e.attributes).reduce((r,o)=>(r.name!=="class"&&r.name!=="style"&&(r[o.name]=o.value),r),{}),n=e.getAttribute("title"),s=e.getAttribute("data-fa-title-id");return it.autoA11y&&(n?t["aria-labelledby"]="".concat(it.replacementClass,"-title-").concat(s||xu()):(t["aria-hidden"]="true",t.focusable="false")),t}function qX(){return{iconName:null,title:null,titleId:null,prefix:null,transform:Zr,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}function Xk(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{styleParser:!0};const{iconName:n,prefix:s,rest:r}=BX(e),o=zX(e),i=iy("parseNodeAttributes",{},e);let a=t.styleParser?jX(e):[];return Ne({iconName:n,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:s,transform:Zr,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:a,attributes:o}},i)}const{styles:HX}=Qr;function j5(e){const t=it.autoReplaceSvg==="nest"?Xk(e,{styleParser:!1}):Xk(e);return~t.extra.classes.indexOf(y5)?zi("generateLayersText",e,t):zi("generateSvgReplacementMutation",e,t)}function VX(){return[...kY,...Z0]}function Jk(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;if(!Qo)return Promise.resolve();const n=wn.documentElement.classList,s=f=>n.add("".concat(Uk,"-").concat(f)),r=f=>n.remove("".concat(Uk,"-").concat(f)),o=it.autoFetchSvg?VX():f5.concat(Object.keys(HX));o.includes("fa")||o.push("fa");const i=[".".concat(y5,":not([").concat(Ma,"])")].concat(o.map(f=>".".concat(f,":not([").concat(Ma,"])"))).join(", ");if(i.length===0)return Promise.resolve();let a=[];try{a=oc(e.querySelectorAll(i))}catch{}if(a.length>0)s("pending"),r("complete");else return Promise.resolve();const c=G_.begin("onTree"),u=a.reduce((f,h)=>{try{const v=j5(h);v&&f.push(v)}catch(v){v5||v.name==="MissingIcon"&&console.error(v)}return f},[]);return new Promise((f,h)=>{Promise.all(u).then(v=>{D5(v,()=>{s("active"),s("complete"),r("pending"),typeof t=="function"&&t(),c(),f()})}).catch(v=>{c(),h(v)})})}function WX(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;j5(e).then(n=>{n&&D5([n],t)})}function GX(e){return function(t){let n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const s=(t||{}).icon?t:ay(t||{});let{mask:r}=n;return r&&(r=(r||{}).icon?r:ay(r||{})),e(s,Ne(Ne({},n),{},{mask:r}))}}const KX=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Zr,symbol:s=!1,mask:r=null,maskId:o=null,title:i=null,titleId:a=null,classes:c=[],attributes:u={},styles:f={}}=t;if(!e)return;const{prefix:h,iconName:v,icon:y}=e;return Tp(Ne({type:"icon"},e),()=>(Na("beforeDOMElementCreation",{iconDefinition:e,params:t}),it.autoA11y&&(i?u["aria-labelledby"]="".concat(it.replacementClass,"-title-").concat(a||xu()):(u["aria-hidden"]="true",u.focusable="false")),W_({icons:{main:ly(y),mask:r?ly(r.icon):{found:!1,width:null,height:null,icon:{}}},prefix:h,iconName:v,transform:Ne(Ne({},Zr),n),symbol:s,title:i,maskId:o,titleId:a,extra:{attributes:u,styles:f,classes:c}})))};var xX={mixout(){return{icon:GX(KX)}},hooks(){return{mutationObserverCallbacks(e){return e.treeCallback=Jk,e.nodeCallback=WX,e}}},provides(e){e.i2svg=function(t){const{node:n=wn,callback:s=()=>{}}=t;return Jk(n,s)},e.generateSvgReplacementMutation=function(t,n){const{iconName:s,title:r,titleId:o,prefix:i,transform:a,symbol:c,mask:u,maskId:f,extra:h}=n;return new Promise((v,y)=>{Promise.all([cy(s,i),u.iconName?cy(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(S=>{let[k,I]=S;v([t,W_({icons:{main:k,mask:I},prefix:i,iconName:s,transform:a,symbol:c,maskId:f,title:r,titleId:o,extra:h,watchable:!0})])}).catch(y)})},e.generateAbstractIcon=function(t){let{children:n,attributes:s,main:r,transform:o,styles:i}=t;const a=$p(i);a.length>0&&(s.style=a);let c;return q_(o)&&(c=zi("generateAbstractTransformGrouping",{main:r,transform:o,containerWidth:r.width,iconWidth:r.width})),n.push(c||r.icon),{children:n,attributes:s}}}},YX={mixout(){return{layer(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{classes:n=[]}=t;return Tp({type:"layer"},()=>{Na("beforeDOMElementCreation",{assembler:e,params:t});let s=[];return e(r=>{Array.isArray(r)?r.map(o=>{s=s.concat(o.abstract)}):s=s.concat(r.abstract)}),[{tag:"span",attributes:{class:["".concat(it.cssPrefix,"-layers"),...n].join(" ")},children:s}]})}}}},XX={mixout(){return{counter(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{title:n=null,classes:s=[],attributes:r={},styles:o={}}=t;return Tp({type:"counter",content:e},()=>(Na("beforeDOMElementCreation",{content:e,params:t}),EX({content:e.toString(),title:n,extra:{attributes:r,styles:o,classes:["".concat(it.cssPrefix,"-layers-counter"),...s]}})))}}}},JX={mixout(){return{text(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};const{transform:n=Zr,title:s=null,classes:r=[],attributes:o={},styles:i={}}=t;return Tp({type:"text",content:e},()=>(Na("beforeDOMElementCreation",{content:e,params:t}),Wk({content:e,transform:Ne(Ne({},Zr),n),title:s,extra:{attributes:o,styles:i,classes:["".concat(it.cssPrefix,"-layers-text"),...r]}})))}}},provides(e){e.generateLayersText=function(t,n){const{title:s,transform:r,extra:o}=n;let i=null,a=null;if(u5){const c=parseInt(getComputedStyle(t).fontSize,10),u=t.getBoundingClientRect();i=u.width/c,a=u.height/c}return it.autoA11y&&!s&&(o.attributes["aria-hidden"]="true"),Promise.resolve([t,Wk({content:t.innerHTML,width:i,height:a,transform:r,title:s,extra:o,watchable:!0})])}}};const ZX=new RegExp('"',"ug"),Zk=[1105920,1112319],Qk=Ne(Ne(Ne(Ne({},{FontAwesome:{normal:"fas",400:"fas"}}),wY),UY),LY),fy=Object.keys(Qk).reduce((e,t)=>(e[t.toLowerCase()]=Qk[t],e),{}),QX=Object.keys(fy).reduce((e,t)=>{const n=fy[t];return e[t]=n[900]||[...Object.entries(n)][0][1],e},{});function eJ(e){const t=e.replace(ZX,""),n=iX(t,0),s=n>=Zk[0]&&n<=Zk[1],r=t.length===2?t[0]===t[1]:!1;return{value:ry(r?t[0]:t),isSecondary:s||r}}function tJ(e,t){const n=e.replace(/^['"]|['"]$/g,"").toLowerCase(),s=parseInt(t),r=isNaN(s)?"normal":s;return(fy[n]||{})[r]||QX[n]}function e3(e,t){const n="".concat(jY).concat(t.replace(":","-"));return new Promise((s,r)=>{if(e.getAttribute(n)!==null)return s();const i=oc(e.children).filter(v=>v.getAttribute(ey)===t)[0],a=ji.getComputedStyle(e,t),c=a.getPropertyValue("font-family"),u=c.match(VY),f=a.getPropertyValue("font-weight"),h=a.getPropertyValue("content");if(i&&!u)return e.removeChild(i),s();if(u&&h!=="none"&&h!==""){const v=a.getPropertyValue("content");let y=tJ(c,f);const{value:S,isSecondary:k}=eJ(v),I=u[0].startsWith("FontAwesome");let C=V_(y,S),$=C;if(I){const P=fX(S);P.iconName&&P.prefix&&(C=P.iconName,y=P.prefix)}if(C&&!k&&(!i||i.getAttribute(U_)!==y||i.getAttribute(j_)!==$)){e.setAttribute(n,$),i&&e.removeChild(i);const P=qX(),{extra:A}=P;A.attributes[ey]=t,cy(C,y).then(R=>{const B=W_(Ne(Ne({},P),{},{icons:{main:R,mask:R5()},prefix:y,iconName:$,extra:A,watchable:!0})),N=wn.createElementNS("http://www.w3.org/2000/svg","svg");t==="::before"?e.insertBefore(N,e.firstChild):e.appendChild(N),N.outerHTML=B.map(W=>hd(W)).join(`
`),e.removeAttribute(n),s()}).catch(r)}else s()}else s()})}function nJ(e){return Promise.all([e3(e,"::before"),e3(e,"::after")])}function sJ(e){return e.parentNode!==document.head&&!~zY.indexOf(e.tagName.toUpperCase())&&!e.getAttribute(ey)&&(!e.parentNode||e.parentNode.tagName!=="svg")}function t3(e){if(Qo)return new Promise((t,n)=>{const s=oc(e.querySelectorAll("*")).filter(sJ).map(nJ),r=G_.begin("searchPseudoElements");U5(),Promise.all(s).then(()=>{r(),dy(),t()}).catch(()=>{r(),dy(),n()})})}var rJ={hooks(){return{mutationObserverCallbacks(e){return e.pseudoElementsCallback=t3,e}}},provides(e){e.pseudoElements2svg=function(t){const{node:n=wn}=t;it.searchPseudoElements&&t3(n)}}};let n3=!1;var oJ={mixout(){return{dom:{unwatch(){U5(),n3=!0}}}},hooks(){return{bootstrap(){Yk(iy("mutationObserverCallbacks",{}))},noAuto(){UX()},watch(e){const{observeMutationsRoot:t}=e;n3?dy():Yk(iy("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}};const s3=e=>{let t={size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0};return e.toLowerCase().split(" ").reduce((n,s)=>{const r=s.toLowerCase().split("-"),o=r[0];let i=r.slice(1).join("-");if(o&&i==="h")return n.flipX=!0,n;if(o&&i==="v")return n.flipY=!0,n;if(i=parseFloat(i),isNaN(i))return n;switch(o){case"grow":n.size=n.size+i;break;case"shrink":n.size=n.size-i;break;case"left":n.x=n.x-i;break;case"right":n.x=n.x+i;break;case"up":n.y=n.y-i;break;case"down":n.y=n.y+i;break;case"rotate":n.rotate=n.rotate+i;break}return n},t)};var iJ={mixout(){return{parse:{transform:e=>s3(e)}}},hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-transform");return n&&(e.transform=s3(n)),e}}},provides(e){e.generateAbstractTransformGrouping=function(t){let{main:n,transform:s,containerWidth:r,iconWidth:o}=t;const i={transform:"translate(".concat(r/2," 256)")},a="translate(".concat(s.x*32,", ").concat(s.y*32,") "),c="scale(".concat(s.size/16*(s.flipX?-1:1),", ").concat(s.size/16*(s.flipY?-1:1),") "),u="rotate(".concat(s.rotate," 0 0)"),f={transform:"".concat(a," ").concat(c," ").concat(u)},h={transform:"translate(".concat(o/2*-1," -256)")},v={outer:i,inner:f,path:h};return{tag:"g",attributes:Ne({},v.outer),children:[{tag:"g",attributes:Ne({},v.inner),children:[{tag:n.icon.tag,children:n.icon.children,attributes:Ne(Ne({},n.icon.attributes),v.path)}]}]}}}};const Qg={x:0,y:0,width:"100%",height:"100%"};function r3(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function aJ(e){return e.tag==="g"?e.children:[e]}var lJ={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-mask"),s=n?Cp(n.split(" ").map(r=>r.trim())):R5();return s.prefix||(s.prefix=Bi()),e.mask=s,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides(e){e.generateAbstractMask=function(t){let{children:n,attributes:s,main:r,mask:o,maskId:i,transform:a}=t;const{width:c,icon:u}=r,{width:f,icon:h}=o,v=eX({transform:a,containerWidth:f,iconWidth:c}),y={tag:"rect",attributes:Ne(Ne({},Qg),{},{fill:"white"})},S=u.children?{children:u.children.map(r3)}:{},k={tag:"g",attributes:Ne({},v.inner),children:[r3(Ne({tag:u.tag,attributes:Ne(Ne({},u.attributes),v.path)},S))]},I={tag:"g",attributes:Ne({},v.outer),children:[k]},C="mask-".concat(i||xu()),$="clip-".concat(i||xu()),P={tag:"mask",attributes:Ne(Ne({},Qg),{},{id:C,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[y,I]},A={tag:"defs",children:[{tag:"clipPath",attributes:{id:$},children:aJ(h)},P]};return n.push(A,{tag:"rect",attributes:Ne({fill:"currentColor","clip-path":"url(#".concat($,")"),mask:"url(#".concat(C,")")},Qg)}),{children:n,attributes:s}}}},cJ={provides(e){let t=!1;ji.matchMedia&&(t=ji.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const n=[],s={fill:"currentColor"},r={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};n.push({tag:"path",attributes:Ne(Ne({},s),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const o=Ne(Ne({},r),{},{attributeName:"opacity"}),i={tag:"circle",attributes:Ne(Ne({},s),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||i.children.push({tag:"animate",attributes:Ne(Ne({},r),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:Ne(Ne({},o),{},{values:"1;0;1;1;0;1;"})}),n.push(i),n.push({tag:"path",attributes:Ne(Ne({},s),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:Ne(Ne({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||n.push({tag:"path",attributes:Ne(Ne({},s),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:Ne(Ne({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:n}}}},uJ={hooks(){return{parseNodeAttributes(e,t){const n=t.getAttribute("data-fa-symbol"),s=n===null?!1:n===""?!0:n;return e.symbol=s,e}}}},dJ=[sX,xX,YX,XX,JX,rJ,oJ,iJ,lJ,cJ,uJ];wX(dJ,{mixoutsTo:Js});Js.noAuto;const B5=Js.config,et=Js.library;Js.dom;const hy=Js.parse;Js.findIconDefinition;Js.toHtml;const fJ=Js.icon;Js.layer;Js.text;Js.counter;/*!
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/const hJ={prefix:"fas",iconName:"at",icon:[512,512,[61946],"40","M256 64C150 64 64 150 64 256s86 192 192 192c17.7 0 32 14.3 32 32s-14.3 32-32 32C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256l0 32c0 53-43 96-96 96c-29.3 0-55.6-13.2-73.2-33.9C320 371.1 289.5 384 256 384c-70.7 0-128-57.3-128-128s57.3-128 128-128c27.9 0 53.7 8.9 74.7 24.1c5.7-5 13.1-8.1 21.3-8.1c17.7 0 32 14.3 32 32l0 80 0 32c0 17.7 14.3 32 32 32s32-14.3 32-32l0-32c0-106-86-192-192-192zm64 192a64 64 0 1 0 -128 0 64 64 0 1 0 128 0z"]},pJ={prefix:"fas",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M135.2 17.7C140.6 6.8 151.7 0 163.8 0L284.2 0c12.1 0 23.2 6.8 28.6 17.7L320 32l96 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l96 0 7.2-14.3zM32 128l384 0 0 320c0 35.3-28.7 64-64 64L96 512c-35.3 0-64-28.7-64-64l0-320zm96 64c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zm96 0c-8.8 0-16 7.2-16 16l0 224c0 8.8 7.2 16 16 16s16-7.2 16-16l0-224c0-8.8-7.2-16-16-16z"]},mJ=pJ,CEe={prefix:"fas",iconName:"info",icon:[192,512,[],"f129","M48 80a48 48 0 1 1 96 0A48 48 0 1 1 48 80zM0 224c0-17.7 14.3-32 32-32l64 0c17.7 0 32 14.3 32 32l0 224 32 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 512c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0 0-192-32 0c-17.7 0-32-14.3-32-32z"]},gJ={prefix:"fas",iconName:"down-left-and-up-right-to-center",icon:[512,512,["compress-alt"],"f422","M439 7c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8l-144 0c-13.3 0-24-10.7-24-24l0-144c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39L439 7zM72 272l144 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39L73 505c-9.4 9.4-24.6 9.4-33.9 0L7 473c-9.4-9.4-9.4-24.6 0-33.9l87-87L55 313c-6.9-6.9-8.9-17.2-5.2-26.2s12.5-14.8 22.2-14.8z"]},vJ=gJ,bJ={prefix:"fas",iconName:"right-from-bracket",icon:[512,512,["sign-out-alt"],"f2f5","M377.9 105.9L500.7 228.7c7.2 7.2 11.3 17.1 11.3 27.3s-4.1 20.1-11.3 27.3L377.9 406.1c-6.4 6.4-15 9.9-24 9.9c-18.7 0-33.9-15.2-33.9-33.9l0-62.1-128 0c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l128 0 0-62.1c0-18.7 15.2-33.9 33.9-33.9c9 0 17.6 3.6 24 9.9zM160 96L96 96c-17.7 0-32 14.3-32 32l0 256c0 17.7 14.3 32 32 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-64 0c-53 0-96-43-96-96L0 128C0 75 43 32 96 32l64 0c17.7 0 32 14.3 32 32s-14.3 32-32 32z"]},z5=bJ,yJ={prefix:"fas",iconName:"face-smile-beam",icon:[512,512,[128522,"smile-beam"],"f5b8","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM164.1 325.5C182 346.2 212.6 368 256 368s74-21.8 91.9-42.5c5.8-6.7 15.9-7.4 22.6-1.6s7.4 15.9 1.6 22.6C349.8 372.1 311.1 400 256 400s-93.8-27.9-116.1-53.5c-5.8-6.7-5.1-16.8 1.6-22.6s16.8-5.1 22.6 1.6zm53.5-96.7s0 0 0 0c0 0 0 0 0 0l-.2-.2c-.2-.2-.4-.5-.7-.9c-.6-.8-1.6-2-2.8-3.4c-2.5-2.8-6-6.6-10.2-10.3c-8.8-7.8-18.8-14-27.7-14s-18.9 6.2-27.7 14c-4.2 3.7-7.7 7.5-10.2 10.3c-1.2 1.4-2.2 2.6-2.8 3.4c-.3 .4-.6 .7-.7 .9l-.2 .2c0 0 0 0 0 0c0 0 0 0 0 0s0 0 0 0c-2.1 2.8-5.7 3.9-8.9 2.8s-5.5-4.1-5.5-7.6c0-17.9 6.7-35.6 16.6-48.8c9.8-13 23.9-23.2 39.4-23.2s29.6 10.2 39.4 23.2c9.9 13.2 16.6 30.9 16.6 48.8c0 3.4-2.2 6.5-5.5 7.6s-6.9 0-8.9-2.8c0 0 0 0 0 0s0 0 0 0zm160 0c0 0 0 0 0 0l-.2-.2c-.2-.2-.4-.5-.7-.9c-.6-.8-1.6-2-2.8-3.4c-2.5-2.8-6-6.6-10.2-10.3c-8.8-7.8-18.8-14-27.7-14s-18.9 6.2-27.7 14c-4.2 3.7-7.7 7.5-10.2 10.3c-1.2 1.4-2.2 2.6-2.8 3.4c-.3 .4-.6 .7-.7 .9l-.2 .2c0 0 0 0 0 0c0 0 0 0 0 0s0 0 0 0c-2.1 2.8-5.7 3.9-8.9 2.8s-5.5-4.1-5.5-7.6c0-17.9 6.7-35.6 16.6-48.8c9.8-13 23.9-23.2 39.4-23.2s29.6 10.2 39.4 23.2c9.9 13.2 16.6 30.9 16.6 48.8c0 3.4-2.2 6.5-5.5 7.6s-6.9 0-8.9-2.8c0 0 0 0 0 0s0 0 0 0s0 0 0 0z"]},Ap=yJ,_J={prefix:"fas",iconName:"angles-down",icon:[448,512,["angle-double-down"],"f103","M246.6 470.6c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 402.7 361.4 265.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3l-160 160zm160-352l-160 160c-12.5 12.5-32.8 12.5-45.3 0l-160-160c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L224 210.7 361.4 73.4c12.5-12.5 32.8-12.5 45.3 0s12.5 32.8 0 45.3z"]},q5=_J,wJ={prefix:"fas",iconName:"pencil",icon:[512,512,[9999,61504,"pencil-alt"],"f303","M410.3 231l11.3-11.3-33.9-33.9-62.1-62.1L291.7 89.8l-11.3 11.3-22.6 22.6L58.6 322.9c-10.4 10.4-18 23.3-22.2 37.4L1 480.7c-2.5 8.4-.2 17.5 6.1 23.7s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L387.7 253.7 410.3 231zM160 399.4l-9.1 22.7c-4 3.1-8.5 5.4-13.3 6.9L59.4 452l23-78.1c1.4-4.9 3.8-9.4 6.9-13.3l22.7-9.1 0 32c0 8.8 7.2 16 16 16l32 0zM362.7 18.7L348.3 33.2 325.7 55.8 314.3 67.1l33.9 33.9 62.1 62.1 33.9 33.9 11.3-11.3 22.6-22.6 14.5-14.5c25-25 25-65.5 0-90.5L453.3 18.7c-25-25-65.5-25-90.5 0zm-47.4 168l-144 144c-6.2 6.2-16.4 6.2-22.6 0s-6.2-16.4 0-22.6l144-144c6.2-6.2 16.4-6.2 22.6 0s6.2 16.4 0 22.6z"]},SJ=wJ,pd={prefix:"fas",iconName:"comments",icon:[640,512,[128490,61670],"f086","M208 352c114.9 0 208-78.8 208-176S322.9 0 208 0S0 78.8 0 176c0 38.6 14.7 74.3 39.6 103.4c-3.5 9.4-8.7 17.7-14.2 24.7c-4.8 6.2-9.7 11-13.3 14.3c-1.8 1.6-3.3 2.9-4.3 3.7c-.5 .4-.9 .7-1.1 .8l-.2 .2s0 0 0 0s0 0 0 0C1 327.2-1.4 334.4 .8 340.9S9.1 352 16 352c21.8 0 43.8-5.6 62.1-12.5c9.2-3.5 17.8-7.4 25.2-11.4C134.1 343.3 169.8 352 208 352zM448 176c0 112.3-99.1 196.9-216.5 207C255.8 457.4 336.4 512 432 512c38.2 0 73.9-8.7 104.7-23.9c7.5 4 16 7.9 25.2 11.4c18.3 6.9 40.3 12.5 62.1 12.5c6.9 0 13.1-4.5 15.2-11.1c2.1-6.6-.2-13.8-5.8-17.9c0 0 0 0 0 0s0 0 0 0l-.2-.2c-.2-.2-.6-.4-1.1-.8c-1-.8-2.5-2-4.3-3.7c-3.6-3.3-8.5-8.1-13.3-14.3c-5.5-7-10.7-15.4-14.2-24.7c24.9-29 39.6-64.7 39.6-103.4c0-92.8-84.9-168.9-192.6-175.5c.4 5.1 .6 10.3 .6 15.5z"]},Zs={prefix:"fas",iconName:"circle-notch",icon:[512,512,[],"f1ce","M222.7 32.1c5 16.9-4.6 34.8-21.5 39.8C121.8 95.6 64 169.1 64 256c0 106 86 192 192 192s192-86 192-192c0-86.9-57.8-160.4-137.1-184.1c-16.9-5-26.6-22.9-21.5-39.8s22.9-26.6 39.8-21.5C434.9 42.1 512 140 512 256c0 141.4-114.6 256-256 256S0 397.4 0 256C0 140 77.1 42.1 182.9 10.6c16.9-5 34.8 4.6 39.8 21.5z"]},$J={prefix:"fas",iconName:"paw",icon:[512,512,[],"f1b0","M226.5 92.9c14.3 42.9-.3 86.2-32.6 96.8s-70.1-15.6-84.4-58.5s.3-86.2 32.6-96.8s70.1 15.6 84.4 58.5zM100.4 198.6c18.9 32.4 14.3 70.1-10.2 84.1s-59.7-.9-78.5-33.3S-2.7 179.3 21.8 165.3s59.7 .9 78.5 33.3zM69.2 401.2C121.6 259.9 214.7 224 256 224s134.4 35.9 186.8 177.2c3.6 9.7 5.2 20.1 5.2 30.5l0 1.6c0 25.8-20.9 46.7-46.7 46.7c-11.5 0-22.9-1.4-34-4.2l-88-22c-15.3-3.8-31.3-3.8-46.6 0l-88 22c-11.1 2.8-22.5 4.2-34 4.2C84.9 480 64 459.1 64 433.3l0-1.6c0-10.4 1.6-20.8 5.2-30.5zM421.8 282.7c-24.5-14-29.1-51.7-10.2-84.1s54-47.3 78.5-33.3s29.1 51.7 10.2 84.1s-54 47.3-78.5 33.3zM310.1 189.7c-32.3-10.6-46.9-53.9-32.6-96.8s52.1-69.1 84.4-58.5s46.9 53.9 32.6 96.8s-52.1 69.1-84.4 58.5z"]},H5={prefix:"fas",iconName:"reply",icon:[512,512,[61714,"mail-reply"],"f3e5","M205 34.8c11.5 5.1 19 16.6 19 29.2l0 64 112 0c97.2 0 176 78.8 176 176c0 113.3-81.5 163.9-100.2 174.1c-2.5 1.4-5.3 1.9-8.1 1.9c-10.9 0-19.7-8.9-19.7-19.7c0-7.5 4.3-14.4 9.8-19.5c9.4-8.8 22.2-26.4 22.2-56.7c0-53-43-96-96-96l-96 0 0 64c0 12.6-7.4 24.1-19 29.2s-25 3-34.4-5.4l-160-144C3.9 225.7 0 217.1 0 208s3.9-17.7 10.6-23.8l160-144c9.4-8.5 22.9-10.6 34.4-5.4z"]},kJ={prefix:"fas",iconName:"compass",icon:[512,512,[129517],"f14e","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm50.7-186.9L162.4 380.6c-19.4 7.5-38.5-11.6-31-31l55.5-144.3c3.3-8.5 9.9-15.1 18.4-18.4l144.3-55.5c19.4-7.5 38.5 11.6 31 31L325.1 306.7c-3.2 8.5-9.9 15.1-18.4 18.4zM288 256a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},TEe={prefix:"fas",iconName:"laptop-code",icon:[640,512,[],"f5fc","M64 96c0-35.3 28.7-64 64-64l384 0c35.3 0 64 28.7 64 64l0 256-64 0 0-256L128 96l0 256-64 0L64 96zM0 403.2C0 392.6 8.6 384 19.2 384l601.6 0c10.6 0 19.2 8.6 19.2 19.2c0 42.4-34.4 76.8-76.8 76.8L76.8 480C34.4 480 0 445.6 0 403.2zM281 209l-31 31 31 31c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-48-48c-9.4-9.4-9.4-24.6 0-33.9l48-48c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9zM393 175l48 48c9.4 9.4 9.4 24.6 0 33.9l-48 48c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l31-31-31-31c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0z"]},V5={prefix:"fas",iconName:"bars",icon:[448,512,["navicon"],"f0c9","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},CJ={prefix:"fas",iconName:"people-group",icon:[640,512,[],"e533","M72 88a56 56 0 1 1 112 0A56 56 0 1 1 72 88zM64 245.7C54 256.9 48 271.8 48 288s6 31.1 16 42.3l0-84.7zm144.4-49.3C178.7 222.7 160 261.2 160 304c0 34.3 12 65.8 32 90.5l0 21.5c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32-14.3-32-32l0-26.8C26.2 371.2 0 332.7 0 288c0-61.9 50.1-112 112-112l32 0c24 0 46.2 7.5 64.4 20.3zM448 416l0-21.5c20-24.7 32-56.2 32-90.5c0-42.8-18.7-81.3-48.4-107.7C449.8 183.5 472 176 496 176l32 0c61.9 0 112 50.1 112 112c0 44.7-26.2 83.2-64 101.2l0 26.8c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32-14.3-32-32zm8-328a56 56 0 1 1 112 0A56 56 0 1 1 456 88zM576 245.7l0 84.7c10-11.3 16-26.1 16-42.3s-6-31.1-16-42.3zM320 32a64 64 0 1 1 0 128 64 64 0 1 1 0-128zM240 304c0 16.2 6 31 16 42.3l0-84.7c-10 11.3-16 26.1-16 42.3zm144-42.3l0 84.7c10-11.3 16-26.1 16-42.3s-6-31.1-16-42.3zM448 304c0 44.7-26.2 83.2-64 101.2l0 42.8c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32-14.3-32-32l0-42.8c-37.8-18-64-56.5-64-101.2c0-61.9 50.1-112 112-112l32 0c61.9 0 112 50.1 112 112z"]},TJ={prefix:"fas",iconName:"lightbulb",icon:[384,512,[128161],"f0eb","M272 384c9.6-31.9 29.5-59.1 49.2-86.2c0 0 0 0 0 0c5.2-7.1 10.4-14.2 15.4-21.4c19.8-28.5 31.4-63 31.4-100.3C368 78.8 289.2 0 192 0S16 78.8 16 176c0 37.3 11.6 71.9 31.4 100.3c5 7.2 10.2 14.3 15.4 21.4c0 0 0 0 0 0c19.8 27.1 39.7 54.4 49.2 86.2l160 0zM192 512c44.2 0 80-35.8 80-80l0-16-160 0 0 16c0 44.2 35.8 80 80 80zM112 176c0 8.8-7.2 16-16 16s-16-7.2-16-16c0-61.9 50.1-112 112-112c8.8 0 16 7.2 16 16s-7.2 16-16 16c-44.2 0-80 35.8-80 80z"]},AJ={prefix:"fas",iconName:"flag",icon:[448,512,[127988,61725],"f024","M64 32C64 14.3 49.7 0 32 0S0 14.3 0 32L0 64 0 368 0 480c0 17.7 14.3 32 32 32s32-14.3 32-32l0-128 64.3-16.1c41.1-10.3 84.6-5.5 122.5 13.4c44.2 22.1 95.5 24.8 141.7 7.4l34.7-13c12.5-4.7 20.8-16.6 20.8-30l0-247.7c0-23-24.2-38-44.8-27.7l-9.6 4.8c-46.3 23.2-100.8 23.2-147.1 0c-35.1-17.6-75.4-22-113.5-12.5L64 48l0-16z"]},Ep={prefix:"fas",iconName:"list",icon:[512,512,["list-squares"],"f03a","M40 48C26.7 48 16 58.7 16 72l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24L40 48zM192 64c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L192 64zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zm0 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l288 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-288 0zM16 232l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0c-13.3 0-24 10.7-24 24zM40 368c-13.3 0-24 10.7-24 24l0 48c0 13.3 10.7 24 24 24l48 0c13.3 0 24-10.7 24-24l0-48c0-13.3-10.7-24-24-24l-48 0z"]},EJ={prefix:"fas",iconName:"paintbrush",icon:[576,512,[128396,"paint-brush"],"f1fc","M339.3 367.1c27.3-3.9 51.9-19.4 67.2-42.9L568.2 74.1c12.6-19.5 9.4-45.3-7.6-61.2S517.7-4.4 499.1 9.6L262.4 187.2c-24 18-38.2 46.1-38.4 76.1L339.3 367.1zm-19.6 25.4l-116-104.4C143.9 290.3 96 339.6 96 400c0 3.9 .2 7.8 .6 11.6C98.4 429.1 86.4 448 68.8 448L64 448c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0c61.9 0 112-50.1 112-112c0-2.5-.1-5-.2-7.5z"]},AEe=EJ,W5={prefix:"fas",iconName:"lock",icon:[448,512,[128274],"f023","M144 144l0 48 160 0 0-48c0-44.2-35.8-80-80-80s-80 35.8-80 80zM80 192l0-48C80 64.5 144.5 0 224 0s144 64.5 144 144l0 48 16 0c35.3 0 64 28.7 64 64l0 192c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 256c0-35.3 28.7-64 64-64l16 0z"]},IJ={prefix:"fas",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M471.6 21.7c-21.9-21.9-57.3-21.9-79.2 0L362.3 51.7l97.9 97.9 30.1-30.1c21.9-21.9 21.9-57.3 0-79.2L471.6 21.7zm-299.2 220c-6.1 6.1-10.8 13.6-13.5 21.9l-29.6 88.8c-2.9 8.6-.6 18.1 5.8 24.6s15.9 8.7 24.6 5.8l88.8-29.6c8.2-2.7 15.7-7.4 21.9-13.5L437.7 172.3 339.7 74.3 172.4 241.7zM96 64C43 64 0 107 0 160L0 416c0 53 43 96 96 96l256 0c53 0 96-43 96-96l0-96c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 96c0 17.7-14.3 32-32 32L96 448c-17.7 0-32-14.3-32-32l0-256c0-17.7 14.3-32 32-32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 64z"]},PJ=IJ,LJ={prefix:"fas",iconName:"share-nodes",icon:[448,512,["share-alt"],"f1e0","M352 224c53 0 96-43 96-96s-43-96-96-96s-96 43-96 96c0 4 .2 8 .7 11.9l-94.1 47C145.4 170.2 121.9 160 96 160c-53 0-96 43-96 96s43 96 96 96c25.9 0 49.4-10.2 66.6-26.9l94.1 47c-.5 3.9-.7 7.8-.7 11.9c0 53 43 96 96 96s96-43 96-96s-43-96-96-96c-25.9 0-49.4 10.2-66.6 26.9l-94.1-47c.5-3.9 .7-7.8 .7-11.9s-.2-8-.7-11.9l94.1-47C302.6 213.8 326.1 224 352 224z"]},OJ=LJ,G5={prefix:"fas",iconName:"users",icon:[640,512,[],"f0c0","M144 0a80 80 0 1 1 0 160A80 80 0 1 1 144 0zM512 0a80 80 0 1 1 0 160A80 80 0 1 1 512 0zM0 298.7C0 239.8 47.8 192 106.7 192l42.7 0c15.9 0 31 3.5 44.6 9.7c-1.3 7.2-1.9 14.7-1.9 22.3c0 38.2 16.8 72.5 43.3 96c-.2 0-.4 0-.7 0L21.3 320C9.6 320 0 310.4 0 298.7zM405.3 320c-.2 0-.4 0-.7 0c26.6-23.5 43.3-57.8 43.3-96c0-7.6-.7-15-1.9-22.3c13.6-6.3 28.7-9.7 44.6-9.7l42.7 0C592.2 192 640 239.8 640 298.7c0 11.8-9.6 21.3-21.3 21.3l-213.3 0zM224 224a96 96 0 1 1 192 0 96 96 0 1 1 -192 0zM128 485.3C128 411.7 187.7 352 261.3 352l117.3 0C452.3 352 512 411.7 512 485.3c0 14.7-11.9 26.7-26.7 26.7l-330.7 0c-14.7 0-26.7-11.9-26.7-26.7z"]},x_={prefix:"fas",iconName:"eye-slash",icon:[640,512,[],"f070","M38.8 5.1C28.4-3.1 13.3-1.2 5.1 9.2S-1.2 34.7 9.2 42.9l592 464c10.4 8.2 25.5 6.3 33.7-4.1s6.3-25.5-4.1-33.7L525.6 386.7c39.6-40.6 66.4-86.1 79.9-118.4c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C465.5 68.8 400.8 32 320 32c-68.2 0-125 26.3-169.3 60.8L38.8 5.1zM223.1 149.5C248.6 126.2 282.7 112 320 112c79.5 0 144 64.5 144 144c0 24.9-6.3 48.3-17.4 68.7L408 294.5c8.4-19.3 10.6-41.4 4.8-63.3c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3c0 10.2-2.4 19.8-6.6 28.3l-90.3-70.8zM373 389.9c-16.4 6.5-34.3 10.1-53 10.1c-79.5 0-144-64.5-144-144c0-6.9 .5-13.6 1.4-20.2L83.1 161.5C60.3 191.2 44 220.8 34.5 243.7c-3.3 7.9-3.3 16.7 0 24.6c14.9 35.7 46.2 87.7 93 131.1C174.5 443.2 239.2 480 320 480c47.8 0 89.9-12.9 126.2-32.5L373 389.9z"]},EEe={prefix:"fas",iconName:"hand",icon:[512,512,[129306,9995,"hand-paper"],"f256","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 208c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-176c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 272c0 1.5 0 3.1 .1 4.6L67.6 283c-16-15.2-41.3-14.6-56.6 1.4s-14.6 41.3 1.4 56.6L124.8 448c43.1 41.1 100.4 64 160 64l19.2 0c97.2 0 176-78.8 176-176l0-208c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-176c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 176c0 8.8-7.2 16-16 16s-16-7.2-16-16l0-208z"]},Y_={prefix:"fas",iconName:"chevron-up",icon:[512,512,[],"f077","M233.4 105.4c12.5-12.5 32.8-12.5 45.3 0l192 192c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L256 173.3 86.6 342.6c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l192-192z"]},RJ={prefix:"fas",iconName:"igloo",icon:[576,512,[],"f7ae","M320 33.8L320 160 48.5 160C100.2 82.8 188.1 32 288 32c10.8 0 21.5 .6 32 1.8zM352 160l0-120.9C424.9 55.7 487.2 99.8 527.5 160L352 160zM29.9 192L96 192l0 128L0 320c0-46 10.8-89.4 29.9-128zM192 320l-64 0 0-128 320 0 0 128-64 0 0 32 192 0 0 80c0 26.5-21.5 48-48 48l-176 0 0-128c0-35.3-28.7-64-64-64s-64 28.7-64 64l0 128L48 480c-26.5 0-48-21.5-48-48l0-80 192 0 0-32zm288 0l0-128 66.1 0c19.2 38.6 29.9 82 29.9 128l-96 0z"]},X_={prefix:"fas",iconName:"bookmark",icon:[384,512,[128278,61591],"f02e","M0 48V487.7C0 501.1 10.9 512 24.3 512c5 0 9.9-1.5 14-4.4L192 400 345.7 507.6c4.1 2.9 9 4.4 14 4.4c13.4 0 24.3-10.9 24.3-24.3V48c0-26.5-21.5-48-48-48H48C21.5 0 0 21.5 0 48z"]},MJ={prefix:"fas",iconName:"folder",icon:[512,512,[128193,128447,61716,"folder-blank"],"f07b","M64 480H448c35.3 0 64-28.7 64-64V160c0-35.3-28.7-64-64-64H288c-10.1 0-19.6-4.7-25.6-12.8L243.2 57.6C231.1 41.5 212.1 32 192 32H64C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64z"]},J_={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"]},md={prefix:"fas",iconName:"bullhorn",icon:[512,512,[128226,128363],"f0a1","M480 32c0-12.9-7.8-24.6-19.8-29.6s-25.7-2.2-34.9 6.9L381.7 53c-48 48-113.1 75-181 75l-8.7 0-32 0-96 0c-35.3 0-64 28.7-64 64l0 96c0 35.3 28.7 64 64 64l0 128c0 17.7 14.3 32 32 32l64 0c17.7 0 32-14.3 32-32l0-128 8.7 0c67.9 0 133 27 181 75l43.6 43.6c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-147.6c18.6-8.8 32-32.5 32-60.4s-13.4-51.6-32-60.4L480 32zm-64 76.7L416 240l0 131.3C357.2 317.8 280.5 288 200.7 288l-8.7 0 0-96 8.7 0c79.8 0 156.5-29.8 215.3-83.3z"]},gd={prefix:"fas",iconName:"globe",icon:[512,512,[127760],"f0ac","M352 256c0 22.2-1.2 43.6-3.3 64l-185.3 0c-2.2-20.4-3.3-41.8-3.3-64s1.2-43.6 3.3-64l185.3 0c2.2 20.4 3.3 41.8 3.3 64zm28.8-64l123.1 0c5.3 20.5 8.1 41.9 8.1 64s-2.8 43.5-8.1 64l-123.1 0c2.1-20.6 3.2-42 3.2-64s-1.1-43.4-3.2-64zm112.6-32l-116.7 0c-10-63.9-29.8-117.4-55.3-151.6c78.3 20.7 142 77.5 171.9 151.6zm-149.1 0l-176.6 0c6.1-36.4 15.5-68.6 27-94.7c10.5-23.6 22.2-40.7 33.5-51.5C239.4 3.2 248.7 0 256 0s16.6 3.2 27.8 13.8c11.3 10.8 23 27.9 33.5 51.5c11.6 26 20.9 58.2 27 94.7zm-209 0L18.6 160C48.6 85.9 112.2 29.1 190.6 8.4C165.1 42.6 145.3 96.1 135.3 160zM8.1 192l123.1 0c-2.1 20.6-3.2 42-3.2 64s1.1 43.4 3.2 64L8.1 320C2.8 299.5 0 278.1 0 256s2.8-43.5 8.1-64zM194.7 446.6c-11.6-26-20.9-58.2-27-94.6l176.6 0c-6.1 36.4-15.5 68.6-27 94.6c-10.5 23.6-22.2 40.7-33.5 51.5C272.6 508.8 263.3 512 256 512s-16.6-3.2-27.8-13.8c-11.3-10.8-23-27.9-33.5-51.5zM135.3 352c10 63.9 29.8 117.4 55.3 151.6C112.2 482.9 48.6 426.1 18.6 352l116.7 0zm358.1 0c-30 74.1-93.6 130.9-171.9 151.6c25.5-34.2 45.2-87.7 55.3-151.6l116.7 0z"]},NJ={prefix:"fas",iconName:"ban",icon:[512,512,[128683,"cancel"],"f05e","M367.2 412.5L99.5 144.8C77.1 176.1 64 214.5 64 256c0 106 86 192 192 192c41.5 0 79.9-13.1 111.2-35.5zm45.3-45.3C434.9 335.9 448 297.5 448 256c0-106-86-192-192-192c-41.5 0-79.9 13.1-111.2 35.5L412.5 367.2zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},Z_={prefix:"fas",iconName:"star",icon:[576,512,[11088,61446],"f005","M316.9 18C311.6 7 300.4 0 288.1 0s-23.4 7-28.8 18L195 150.3 51.4 171.5c-12 1.8-22 10.2-25.7 21.7s-.7 24.2 7.9 32.7L137.8 329 113.2 474.7c-2 12 3 24.2 12.9 31.3s23 8 33.8 2.3l128.3-68.5 128.3 68.5c10.8 5.7 23.9 4.9 33.8-2.3s14.9-19.3 12.9-31.3L438.5 329 542.7 225.9c8.6-8.5 11.7-21.2 7.9-32.7s-13.7-19.9-25.7-21.7L381.2 150.3 316.9 18z"]},FJ={prefix:"fas",iconName:"server",icon:[512,512,[],"f233","M64 32C28.7 32 0 60.7 0 96l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 32zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm48 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0zM64 288c-35.3 0-64 28.7-64 64l0 64c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-64c0-35.3-28.7-64-64-64L64 288zm280 72a24 24 0 1 1 0 48 24 24 0 1 1 0-48zm56 24a24 24 0 1 1 48 0 24 24 0 1 1 -48 0z"]},DJ={prefix:"fas",iconName:"right-to-bracket",icon:[512,512,["sign-in-alt"],"f2f6","M217.9 105.9L340.7 228.7c7.2 7.2 11.3 17.1 11.3 27.3s-4.1 20.1-11.3 27.3L217.9 406.1c-6.4 6.4-15 9.9-24 9.9c-18.7 0-33.9-15.2-33.9-33.9l0-62.1L32 320c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32l128 0 0-62.1c0-18.7 15.2-33.9 33.9-33.9c9 0 17.6 3.6 24 9.9zM352 416l64 0c17.7 0 32-14.3 32-32l0-256c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l64 0c53 0 96 43 96 96l0 256c0 53-43 96-96 96l-64 0c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},K5=DJ,IEe={prefix:"fas",iconName:"folder-open",icon:[576,512,[128194,128449,61717],"f07c","M88.7 223.8L0 375.8 0 96C0 60.7 28.7 32 64 32l117.5 0c17 0 33.3 6.7 45.3 18.7l26.5 26.5c12 12 28.3 18.7 45.3 18.7L416 96c35.3 0 64 28.7 64 64l0 32-336 0c-22.8 0-43.8 12.1-55.3 31.8zm27.6 16.1C122.1 230 132.6 224 144 224l400 0c11.5 0 22 6.1 27.7 16.1s5.7 22.2-.1 32.1l-112 192C453.9 474 443.4 480 432 480L32 480c-11.5 0-22-6.1-27.7-16.1s-5.7-22.2 .1-32.1l112-192z"]},x5={prefix:"fas",iconName:"city",icon:[640,512,[127961],"f64f","M480 48c0-26.5-21.5-48-48-48L336 0c-26.5 0-48 21.5-48 48l0 48-64 0 0-72c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 72-64 0 0-72c0-13.3-10.7-24-24-24S64 10.7 64 24l0 72L48 96C21.5 96 0 117.5 0 144l0 96L0 464c0 26.5 21.5 48 48 48l256 0 32 0 96 0 160 0c26.5 0 48-21.5 48-48l0-224c0-26.5-21.5-48-48-48l-112 0 0-144zm96 320l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16zM240 416l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16zM128 400c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32zM560 256c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0zM256 176l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16zM112 160c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0zM256 304c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32zM112 320l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16zm304-48l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16zM400 64c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0zm16 112l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16z"]},UJ={prefix:"fas",iconName:"file-arrow-up",icon:[384,512,["file-upload"],"f574","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 408c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-102.1-31 31c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l72-72c9.4-9.4 24.6-9.4 33.9 0l72 72c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0l-31-31L216 408z"]},PEe=UJ,LEe={prefix:"fas",iconName:"window-restore",icon:[512,512,[],"f2d2","M432 64L208 64c-8.8 0-16 7.2-16 16l0 16-64 0 0-16c0-44.2 35.8-80 80-80L432 0c44.2 0 80 35.8 80 80l0 224c0 44.2-35.8 80-80 80l-16 0 0-64 16 0c8.8 0 16-7.2 16-16l0-224c0-8.8-7.2-16-16-16zM0 192c0-35.3 28.7-64 64-64l256 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 192zm64 32c0 17.7 14.3 32 32 32l192 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L96 192c-17.7 0-32 14.3-32 32z"]},jJ={prefix:"fas",iconName:"square-plus",icon:[448,512,[61846,"plus-square"],"f0fe","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320c0-35.3-28.7-64-64-64L64 32zM200 344l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"]},BJ=jJ,Q_={prefix:"fas",iconName:"image",icon:[512,512,[],"f03e","M0 96C0 60.7 28.7 32 64 32l384 0c35.3 0 64 28.7 64 64l0 320c0 35.3-28.7 64-64 64L64 480c-35.3 0-64-28.7-64-64L0 96zM323.8 202.5c-4.5-6.6-11.9-10.5-19.8-10.5s-15.4 3.9-19.8 10.5l-87 127.6L170.7 297c-4.6-5.7-11.5-9-18.7-9s-14.2 3.3-18.7 9l-64 80c-5.8 7.2-6.9 17.1-2.9 25.4s12.4 13.6 21.6 13.6l96 0 32 0 208 0c8.9 0 17.1-4.9 21.2-12.8s3.6-17.4-1.4-24.7l-120-176zM112 192a48 48 0 1 0 0-96 48 48 0 1 0 0 96z"]},zJ={prefix:"fas",iconName:"angles-right",icon:[512,512,[187,"angle-double-right"],"f101","M470.6 278.6c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L402.7 256 265.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l160-160zm-352 160l160-160c12.5-12.5 12.5-32.8 0-45.3l-160-160c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L210.7 256 73.4 393.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0z"]},Y5=zJ,qJ={prefix:"fas",iconName:"circle-play",icon:[512,512,[61469,"play-circle"],"f144","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM188.3 147.1c-7.6 4.2-12.3 12.3-12.3 20.9l0 176c0 8.7 4.7 16.7 12.3 20.9s16.8 4.1 24.3-.5l144-88c7.1-4.4 11.5-12.1 11.5-20.5s-4.4-16.1-11.5-20.5l-144-88c-7.4-4.5-16.7-4.7-24.3-.5z"]},HJ=qJ,OEe={prefix:"fas",iconName:"file-import",icon:[512,512,["arrow-right-to-file"],"f56f","M128 64c0-35.3 28.7-64 64-64L352 0l0 128c0 17.7 14.3 32 32 32l128 0 0 288c0 35.3-28.7 64-64 64l-256 0c-35.3 0-64-28.7-64-64l0-112 174.1 0-39 39c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l80-80c9.4-9.4 9.4-24.6 0-33.9l-80-80c-9.4-9.4-24.6-9.4-33.9 0s-9.4 24.6 0 33.9l39 39L128 288l0-224zm0 224l0 48L24 336c-13.3 0-24-10.7-24-24s10.7-24 24-24l104 0zM512 128l-128 0L384 0 512 128z"]},VJ={prefix:"fas",iconName:"box-open",icon:[640,512,[],"f49e","M58.9 42.1c3-6.1 9.6-9.6 16.3-8.7L320 64 564.8 33.4c6.7-.8 13.3 2.7 16.3 8.7l41.7 83.4c9 17.9-.6 39.6-19.8 45.1L439.6 217.3c-13.9 4-28.8-1.9-36.2-14.3L320 64 236.6 203c-7.4 12.4-22.3 18.3-36.2 14.3L37.1 170.6c-19.3-5.5-28.8-27.2-19.8-45.1L58.9 42.1zM321.1 128l54.9 91.4c14.9 24.8 44.6 36.6 72.5 28.6L576 211.6l0 167c0 22-15 41.2-36.4 46.6l-204.1 51c-10.2 2.6-20.9 2.6-31 0l-204.1-51C79 419.7 64 400.5 64 378.5l0-167L191.6 248c27.8 8 57.6-3.8 72.5-28.6L318.9 128l2.2 0z"]},REe={prefix:"fas",iconName:"palette",icon:[512,512,[127912],"f53f","M512 256c0 .9 0 1.8 0 2.7c-.4 36.5-33.6 61.3-70.1 61.3L344 320c-26.5 0-48 21.5-48 48c0 3.4 .4 6.7 1 9.9c2.1 10.2 6.5 20 10.8 29.9c6.1 13.8 12.1 27.5 12.1 42c0 31.8-21.6 60.7-53.4 62c-3.5 .1-7 .2-10.6 .2C114.6 512 0 397.4 0 256S114.6 0 256 0S512 114.6 512 256zM128 288a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm0-96a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zm96 96a32 32 0 1 0 0-64 32 32 0 1 0 0 64z"]},MEe={prefix:"fas",iconName:"arrows-rotate",icon:[512,512,[128472,"refresh","sync"],"f021","M105.1 202.6c7.7-21.8 20.2-42.3 37.8-59.8c62.5-62.5 163.8-62.5 226.3 0L386.3 160 352 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l111.5 0c0 0 0 0 0 0l.4 0c17.7 0 32-14.3 32-32l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 35.2L414.4 97.6c-87.5-87.5-229.3-87.5-316.8 0C73.2 122 55.6 150.7 44.8 181.4c-5.9 16.7 2.9 34.9 19.5 40.8s34.9-2.9 40.8-19.5zM39 289.3c-5 1.5-9.8 4.2-13.7 8.2c-4 4-6.7 8.8-8.1 14c-.3 1.2-.6 2.5-.8 3.8c-.3 1.7-.4 3.4-.4 5.1L16 432c0 17.7 14.3 32 32 32s32-14.3 32-32l0-35.1 17.6 17.5c0 0 0 0 0 0c87.5 87.4 229.3 87.4 316.7 0c24.4-24.4 42.1-53.1 52.9-83.8c5.9-16.7-2.9-34.9-19.5-40.8s-34.9 2.9-40.8 19.5c-7.7 21.8-20.2 42.3-37.8 59.8c-62.5 62.5-163.8 62.5-226.3 0l-.1-.1L125.6 352l34.4 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L48.4 288c-1.6 0-3.2 .1-4.8 .3s-3.1 .5-4.6 1z"]},X5={prefix:"fas",iconName:"filter",icon:[512,512,[],"f0b0","M3.9 54.9C10.5 40.9 24.5 32 40 32l432 0c15.5 0 29.5 8.9 36.1 22.9s4.6 30.5-5.2 42.5L320 320.9 320 448c0 12.1-6.8 23.2-17.7 28.6s-23.8 4.3-33.5-3l-64-48c-8.1-6-12.8-15.5-12.8-25.6l0-79.1L9 97.3C-.7 85.4-2.8 68.8 3.9 54.9z"]},J5={prefix:"fas",iconName:"code",icon:[640,512,[],"f121","M392.8 1.2c-17-4.9-34.7 5-39.6 22l-128 448c-4.9 17 5 34.7 22 39.6s34.7-5 39.6-22l128-448c4.9-17-5-34.7-22-39.6zm80.6 120.1c-12.5 12.5-12.5 32.8 0 45.3L562.7 256l-89.4 89.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0l112-112c12.5-12.5 12.5-32.8 0-45.3l-112-112c-12.5-12.5-32.8-12.5-45.3 0zm-306.7 0c-12.5-12.5-32.8-12.5-45.3 0l-112 112c-12.5 12.5-12.5 32.8 0 45.3l112 112c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256l89.4-89.4c12.5-12.5 12.5-32.8 0-45.3z"]},Z5={prefix:"fas",iconName:"lock-open",icon:[576,512,[],"f3c1","M352 144c0-44.2 35.8-80 80-80s80 35.8 80 80l0 48c0 17.7 14.3 32 32 32s32-14.3 32-32l0-48C576 64.5 511.5 0 432 0S288 64.5 288 144l0 48L64 192c-35.3 0-64 28.7-64 64L0 448c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-192c0-35.3-28.7-64-64-64l-32 0 0-48z"]},WJ={prefix:"fas",iconName:"square-poll-horizontal",icon:[448,512,["poll-h"],"f682","M448 96c0-35.3-28.7-64-64-64L64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-320zM256 160c0 17.7-14.3 32-32 32l-96 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l96 0c17.7 0 32 14.3 32 32zm64 64c17.7 0 32 14.3 32 32s-14.3 32-32 32l-192 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l192 0zM192 352c0 17.7-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l32 0c17.7 0 32 14.3 32 32z"]},Ip=WJ,GJ={prefix:"fas",iconName:"basketball",icon:[512,512,[127936,"basketball-ball"],"f434","M86.6 64l85.2 85.2C194.5 121.7 208 86.4 208 48c0-14.7-2-28.9-5.7-42.4C158.6 15 119 35.5 86.6 64zM64 86.6C35.5 119 15 158.6 5.6 202.3C19.1 206 33.3 208 48 208c38.4 0 73.7-13.5 101.3-36.1L64 86.6zM256 0c-7.3 0-14.6 .3-21.8 .9C238 16 240 31.8 240 48c0 47.3-17.1 90.5-45.4 124L256 233.4 425.4 64C380.2 24.2 320.9 0 256 0zM48 240c-16.2 0-32-2-47.1-5.8C.3 241.4 0 248.7 0 256c0 64.9 24.2 124.2 64 169.4L233.4 256 172 194.6C138.5 222.9 95.3 240 48 240zm463.1 37.8c.6-7.2 .9-14.5 .9-21.8c0-64.9-24.2-124.2-64-169.4L278.6 256 340 317.4c33.4-28.3 76.7-45.4 124-45.4c16.2 0 32 2 47.1 5.8zm-4.7 31.9C492.9 306 478.7 304 464 304c-38.4 0-73.7 13.5-101.3 36.1L448 425.4c28.5-32.3 49.1-71.9 58.4-115.7zM340.1 362.7C317.5 390.3 304 425.6 304 464c0 14.7 2 28.9 5.7 42.4C353.4 497 393 476.5 425.4 448l-85.2-85.2zM317.4 340L256 278.6 86.6 448c45.1 39.8 104.4 64 169.4 64c7.3 0 14.6-.3 21.8-.9C274 496 272 480.2 272 464c0-47.3 17.1-90.5 45.4-124z"]},KJ=GJ,e2={prefix:"fas",iconName:"wrench",icon:[512,512,[128295],"f0ad","M352 320c88.4 0 160-71.6 160-160c0-15.3-2.2-30.1-6.2-44.2c-3.1-10.8-16.4-13.2-24.3-5.3l-76.8 76.8c-3 3-7.1 4.7-11.3 4.7L336 192c-8.8 0-16-7.2-16-16l0-57.4c0-4.2 1.7-8.3 4.7-11.3l76.8-76.8c7.9-7.9 5.4-21.2-5.3-24.3C382.1 2.2 367.3 0 352 0C263.6 0 192 71.6 192 160c0 19.1 3.4 37.5 9.5 54.5L19.9 396.1C7.2 408.8 0 426.1 0 444.1C0 481.6 30.4 512 67.9 512c18 0 35.3-7.2 48-19.9L297.5 310.5c17 6.2 35.4 9.5 54.5 9.5zM80 408a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},NEe={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3l58.3 0c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24l0-13.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1l-58.3 0c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},xJ={prefix:"fas",iconName:"eye",icon:[576,512,[128065],"f06e","M288 32c-80.8 0-145.5 36.8-192.6 80.6C48.6 156 17.3 208 2.5 243.7c-3.3 7.9-3.3 16.7 0 24.6C17.3 304 48.6 356 95.4 399.4C142.5 443.2 207.2 480 288 480s145.5-36.8 192.6-80.6c46.8-43.5 78.1-95.4 93-131.1c3.3-7.9 3.3-16.7 0-24.6c-14.9-35.7-46.2-87.7-93-131.1C433.5 68.8 368.8 32 288 32zM144 256a144 144 0 1 1 288 0 144 144 0 1 1 -288 0zm144-64c0 35.3-28.7 64-64 64c-7.1 0-13.9-1.2-20.3-3.3c-5.5-1.8-11.9 1.6-11.7 7.4c.3 6.9 1.3 13.8 3.2 20.7c13.7 51.2 66.4 81.6 117.6 67.9s81.6-66.4 67.9-117.6c-11.1-41.5-47.8-69.4-88.6-71.1c-5.8-.2-9.2 6.1-7.4 11.7c2.1 6.4 3.3 13.2 3.3 20.3z"]},YJ={prefix:"fas",iconName:"pen",icon:[512,512,[128394],"f304","M362.7 19.3L314.3 67.7 444.3 197.7l48.4-48.4c25-25 25-65.5 0-90.5L453.3 19.3c-25-25-65.5-25-90.5 0zm-71 71L58.6 323.5c-10.4 10.4-18 23.3-22.2 37.4L1 481.2C-1.5 489.7 .8 498.8 7 505s15.3 8.5 23.7 6.1l120.3-35.4c14.1-4.2 27-11.8 37.4-22.2L421.7 220.3 291.7 90.3z"]},XJ={prefix:"fas",iconName:"bus",icon:[576,512,[128653],"f207","M288 0C422.4 0 512 35.2 512 80l0 16 0 32c17.7 0 32 14.3 32 32l0 64c0 17.7-14.3 32-32 32l0 160c0 17.7-14.3 32-32 32l0 32c0 17.7-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32l0-32-192 0 0 32c0 17.7-14.3 32-32 32l-32 0c-17.7 0-32-14.3-32-32l0-32c-17.7 0-32-14.3-32-32l0-160c-17.7 0-32-14.3-32-32l0-64c0-17.7 14.3-32 32-32c0 0 0 0 0 0l0-32s0 0 0 0l0-16C64 35.2 153.6 0 288 0zM128 160l0 96c0 17.7 14.3 32 32 32l112 0 0-160-112 0c-17.7 0-32 14.3-32 32zM304 288l112 0c17.7 0 32-14.3 32-32l0-96c0-17.7-14.3-32-32-32l-112 0 0 160zM144 400a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm288 0a32 32 0 1 0 0-64 32 32 0 1 0 0 64zM384 80c0-8.8-7.2-16-16-16L208 64c-8.8 0-16 7.2-16 16s7.2 16 16 16l160 0c8.8 0 16-7.2 16-16z"]},JJ={prefix:"fas",iconName:"floppy-disk",icon:[448,512,[128190,128426,"save"],"f0c7","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l320 0c35.3 0 64-28.7 64-64l0-242.7c0-17-6.7-33.3-18.7-45.3L352 50.7C340 38.7 323.7 32 306.7 32L64 32zm0 96c0-17.7 14.3-32 32-32l192 0c17.7 0 32 14.3 32 32l0 64c0 17.7-14.3 32-32 32L96 224c-17.7 0-32-14.3-32-32l0-64zM224 288a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},ZJ=JJ,QJ={prefix:"fas",iconName:"up-right-from-square",icon:[512,512,["external-link-alt"],"f35d","M352 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9L370.7 96 201.4 265.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L416 141.3l41.4 41.4c9.2 9.2 22.9 11.9 34.9 6.9s19.8-16.6 19.8-29.6l0-128c0-17.7-14.3-32-32-32L352 0zM80 32C35.8 32 0 67.8 0 112L0 432c0 44.2 35.8 80 80 80l320 0c44.2 0 80-35.8 80-80l0-112c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 112c0 8.8-7.2 16-16 16L80 448c-8.8 0-16-7.2-16-16l0-320c0-8.8 7.2-16 16-16l112 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L80 32z"]},Q5=QJ,eZ={prefix:"fas",iconName:"cake-candles",icon:[448,512,[127874,"birthday-cake","cake"],"f1fd","M86.4 5.5L61.8 47.6C58 54.1 56 61.6 56 69.2L56 72c0 22.1 17.9 40 40 40s40-17.9 40-40l0-2.8c0-7.6-2-15-5.8-21.6L105.6 5.5C103.6 2.1 100 0 96 0s-7.6 2.1-9.6 5.5zm128 0L189.8 47.6c-3.8 6.5-5.8 14-5.8 21.6l0 2.8c0 22.1 17.9 40 40 40s40-17.9 40-40l0-2.8c0-7.6-2-15-5.8-21.6L233.6 5.5C231.6 2.1 228 0 224 0s-7.6 2.1-9.6 5.5zM317.8 47.6c-3.8 6.5-5.8 14-5.8 21.6l0 2.8c0 22.1 17.9 40 40 40s40-17.9 40-40l0-2.8c0-7.6-2-15-5.8-21.6L361.6 5.5C359.6 2.1 356 0 352 0s-7.6 2.1-9.6 5.5L317.8 47.6zM128 176c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 48c-35.3 0-64 28.7-64 64l0 71c8.3 5.2 18.1 9 28.8 9c13.5 0 27.2-6.1 38.4-13.4c5.4-3.5 9.9-7.1 13-9.7c1.5-1.3 2.7-2.4 3.5-3.1c.4-.4 .7-.6 .8-.8l.1-.1s0 0 0 0s0 0 0 0s0 0 0 0s0 0 0 0c3.1-3.2 7.4-4.9 11.9-4.8s8.6 2.1 11.6 5.4c0 0 0 0 0 0s0 0 0 0l.1 .1c.1 .1 .4 .4 .7 .7c.7 .7 1.7 1.7 3.1 3c2.8 2.6 6.8 6.1 11.8 9.5c10.2 7.1 23 13.1 36.3 13.1s26.1-6 36.3-13.1c5-3.5 9-6.9 11.8-9.5c1.4-1.3 2.4-2.3 3.1-3c.3-.3 .6-.6 .7-.7l.1-.1c3-3.5 7.4-5.4 12-5.4s9 2 12 5.4l.1 .1c.1 .1 .4 .4 .7 .7c.7 .7 1.7 1.7 3.1 3c2.8 2.6 6.8 6.1 11.8 9.5c10.2 7.1 23 13.1 36.3 13.1s26.1-6 36.3-13.1c5-3.5 9-6.9 11.8-9.5c1.4-1.3 2.4-2.3 3.1-3c.3-.3 .6-.6 .7-.7l.1-.1c2.9-3.4 7.1-5.3 11.6-5.4s8.7 1.6 11.9 4.8c0 0 0 0 0 0s0 0 0 0s0 0 0 0l.1 .1c.2 .2 .4 .4 .8 .8c.8 .7 1.9 1.8 3.5 3.1c3.1 2.6 7.5 6.2 13 9.7c11.2 7.3 24.9 13.4 38.4 13.4c10.7 0 20.5-3.9 28.8-9l0-71c0-35.3-28.7-64-64-64l0-48c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 48-64 0 0-48c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 48-64 0 0-48zM448 394.6c-8.5 3.3-18.2 5.4-28.8 5.4c-22.5 0-42.4-9.9-55.8-18.6c-4.1-2.7-7.8-5.4-10.9-7.8c-2.8 2.4-6.1 5-9.8 7.5C329.8 390 310.6 400 288 400s-41.8-10-54.6-18.9c-3.5-2.4-6.7-4.9-9.4-7.2c-2.7 2.3-5.9 4.7-9.4 7.2C201.8 390 182.6 400 160 400s-41.8-10-54.6-18.9c-3.7-2.6-7-5.2-9.8-7.5c-3.1 2.4-6.8 5.1-10.9 7.8C71.2 390.1 51.3 400 28.8 400c-10.6 0-20.3-2.2-28.8-5.4L0 480c0 17.7 14.3 32 32 32l384 0c17.7 0 32-14.3 32-32l0-85.4z"]},tZ=eZ,Pp={prefix:"fas",iconName:"envelope",icon:[512,512,[128386,9993,61443],"f0e0","M48 64C21.5 64 0 85.5 0 112c0 15.1 7.1 29.3 19.2 38.4L236.8 313.6c11.4 8.5 27 8.5 38.4 0L492.8 150.4c12.1-9.1 19.2-23.3 19.2-38.4c0-26.5-21.5-48-48-48L48 64zM0 176L0 384c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-208L294.4 339.2c-22.8 17.1-54 17.1-76.8 0L0 176z"]},nZ={prefix:"fas",iconName:"circle-info",icon:[512,512,["info-circle"],"f05a","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM216 336l24 0 0-64-24 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l48 0c13.3 0 24 10.7 24 24l0 88 8 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-80 0c-13.3 0-24-10.7-24-24s10.7-24 24-24zm40-208a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},Lp=nZ,sZ={prefix:"fas",iconName:"check-double",icon:[448,512,[],"f560","M342.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 178.7l-57.4-57.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l80 80c12.5 12.5 32.8 12.5 45.3 0l160-160zm96 128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 402.7 54.6 297.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l256-256z"]},vd={prefix:"fas",iconName:"minus",icon:[448,512,[8211,8722,10134,"subtract"],"f068","M432 256c0 17.7-14.3 32-32 32L48 288c-17.7 0-32-14.3-32-32s14.3-32 32-32l352 0c17.7 0 32 14.3 32 32z"]},rZ={prefix:"fas",iconName:"gear",icon:[512,512,[9881,"cog"],"f013","M495.9 166.6c3.2 8.7 .5 18.4-6.4 24.6l-43.3 39.4c1.1 8.3 1.7 16.8 1.7 25.4s-.6 17.1-1.7 25.4l43.3 39.4c6.9 6.2 9.6 15.9 6.4 24.6c-4.4 11.9-9.7 23.3-15.8 34.3l-4.7 8.1c-6.6 11-14 21.4-22.1 31.2c-5.9 7.2-15.7 9.6-24.5 6.8l-55.7-17.7c-13.4 10.3-28.2 18.9-44 25.4l-12.5 57.1c-2 9.1-9 16.3-18.2 17.8c-13.8 2.3-28 3.5-42.5 3.5s-28.7-1.2-42.5-3.5c-9.2-1.5-16.2-8.7-18.2-17.8l-12.5-57.1c-15.8-6.5-30.6-15.1-44-25.4L83.1 425.9c-8.8 2.8-18.6 .3-24.5-6.8c-8.1-9.8-15.5-20.2-22.1-31.2l-4.7-8.1c-6.1-11-11.4-22.4-15.8-34.3c-3.2-8.7-.5-18.4 6.4-24.6l43.3-39.4C64.6 273.1 64 264.6 64 256s.6-17.1 1.7-25.4L22.4 191.2c-6.9-6.2-9.6-15.9-6.4-24.6c4.4-11.9 9.7-23.3 15.8-34.3l4.7-8.1c6.6-11 14-21.4 22.1-31.2c5.9-7.2 15.7-9.6 24.5-6.8l55.7 17.7c13.4-10.3 28.2-18.9 44-25.4l12.5-57.1c2-9.1 9-16.3 18.2-17.8C227.3 1.2 241.5 0 256 0s28.7 1.2 42.5 3.5c9.2 1.5 16.2 8.7 18.2 17.8l12.5 57.1c15.8 6.5 30.6 15.1 44 25.4l55.7-17.7c8.8-2.8 18.6-.3 24.5 6.8c8.1 9.8 15.5 20.2 22.1 31.2l4.7 8.1c6.1 11 11.4 22.4 15.8 34.3zM256 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z"]},t2=rZ,FEe={prefix:"fas",iconName:"keyboard",icon:[576,512,[9e3],"f11c","M64 64C28.7 64 0 92.7 0 128L0 384c0 35.3 28.7 64 64 64l448 0c35.3 0 64-28.7 64-64l0-256c0-35.3-28.7-64-64-64L64 64zm16 64l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM64 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm16 80l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zm80-176c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm16 80l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM160 336c0-8.8 7.2-16 16-16l224 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-224 0c-8.8 0-16-7.2-16-16l0-32zM272 128l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM256 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM368 128l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM352 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zM464 128l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16zM448 240c0-8.8 7.2-16 16-16l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32zm16 80l32 0c8.8 0 16 7.2 16 16l0 32c0 8.8-7.2 16-16 16l-32 0c-8.8 0-16-7.2-16-16l0-32c0-8.8 7.2-16 16-16z"]},eP={prefix:"fas",iconName:"folder-tree",icon:[576,512,[],"f802","M64 32C64 14.3 49.7 0 32 0S0 14.3 0 32l0 96L0 384c0 35.3 28.7 64 64 64l192 0 0-64L64 384l0-224 192 0 0-64L64 96l0-64zM288 192c0 17.7 14.3 32 32 32l224 0c17.7 0 32-14.3 32-32l0-128c0-17.7-14.3-32-32-32l-98.7 0c-8.5 0-16.6-3.4-22.6-9.4L409.4 9.4c-6-6-14.1-9.4-22.6-9.4L320 0c-17.7 0-32 14.3-32 32l0 160zm0 288c0 17.7 14.3 32 32 32l224 0c17.7 0 32-14.3 32-32l0-128c0-17.7-14.3-32-32-32l-98.7 0c-8.5 0-16.6-3.4-22.6-9.4l-13.3-13.3c-6-6-14.1-9.4-22.6-9.4L320 288c-17.7 0-32 14.3-32 32l0 160z"]},oZ={prefix:"fas",iconName:"ellipsis-vertical",icon:[128,512,["ellipsis-v"],"f142","M64 360a56 56 0 1 0 0 112 56 56 0 1 0 0-112zm0-160a56 56 0 1 0 0 112 56 56 0 1 0 0-112zM120 96A56 56 0 1 0 8 96a56 56 0 1 0 112 0z"]},iZ=oZ,DEe={prefix:"fas",iconName:"download",icon:[512,512,[],"f019","M288 32c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 242.7-73.4-73.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l128 128c12.5 12.5 32.8 12.5 45.3 0l128-128c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L288 274.7 288 32zM64 352c-35.3 0-64 28.7-64 64l0 32c0 35.3 28.7 64 64 64l384 0c35.3 0 64-28.7 64-64l0-32c0-35.3-28.7-64-64-64l-101.5 0-45.3 45.3c-25 25-65.5 25-90.5 0L165.5 352 64 352zm368 56a24 24 0 1 1 0 48 24 24 0 1 1 0-48z"]},aZ={prefix:"fas",iconName:"eye-dropper",icon:[512,512,["eye-dropper-empty","eyedropper"],"f1fb","M341.6 29.2L240.1 130.8l-9.4-9.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-9.4-9.4L482.8 170.4c39-39 39-102.2 0-141.1s-102.2-39-141.1 0zM55.4 323.3c-15 15-23.4 35.4-23.4 56.6l0 42.4L5.4 462.2c-8.5 12.7-6.8 29.6 4 40.4s27.7 12.5 40.4 4L89.7 480l42.4 0c21.2 0 41.6-8.4 56.6-23.4L309.4 335.9l-45.3-45.3L143.4 411.3c-3 3-7.1 4.7-11.3 4.7L96 416l0-36.1c0-4.2 1.7-8.3 4.7-11.3L221.4 247.9l-45.3-45.3L55.4 323.3z"]},lZ={prefix:"fas",iconName:"house",icon:[576,512,[127968,63498,63500,"home","home-alt","home-lg-alt"],"f015","M575.8 255.5c0 18-15 32.1-32 32.1l-32 0 .7 160.2c0 2.7-.2 5.4-.5 8.1l0 16.2c0 22.1-17.9 40-40 40l-16 0c-1.1 0-2.2 0-3.3-.1c-1.4 .1-2.8 .1-4.2 .1L416 512l-24 0c-22.1 0-40-17.9-40-40l0-24 0-64c0-17.7-14.3-32-32-32l-64 0c-17.7 0-32 14.3-32 32l0 64 0 24c0 22.1-17.9 40-40 40l-24 0-31.9 0c-1.5 0-3-.1-4.5-.2c-1.2 .1-2.4 .2-3.6 .2l-16 0c-22.1 0-40-17.9-40-40l0-112c0-.9 0-1.9 .1-2.8l0-69.7-32 0c-18 0-32-14-32-32.1c0-9 3-17 10-24L266.4 8c7-7 15-8 22-8s15 2 21 7L564.8 231.5c8 7 12 15 11 24z"]},tP=lZ,nP={prefix:"fas",iconName:"stop",icon:[384,512,[9209],"f04d","M0 128C0 92.7 28.7 64 64 64H320c35.3 0 64 28.7 64 64V384c0 35.3-28.7 64-64 64H64c-35.3 0-64-28.7-64-64V128z"]},sP={prefix:"fas",iconName:"upload",icon:[512,512,[],"f093","M288 109.3L288 352c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-242.7-73.4 73.4c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3l128-128c12.5-12.5 32.8-12.5 45.3 0l128 128c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L288 109.3zM64 352l128 0c0 35.3 28.7 64 64 64s64-28.7 64-64l128 0c35.3 0 64 28.7 64 64l0 32c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64l0-32c0-35.3 28.7-64 64-64zM432 456a24 24 0 1 0 0-48 24 24 0 1 0 0 48z"]},cZ={prefix:"fas",iconName:"file-arrow-down",icon:[384,512,["file-download"],"f56d","M64 0C28.7 0 0 28.7 0 64L0 448c0 35.3 28.7 64 64 64l256 0c35.3 0 64-28.7 64-64l0-288-128 0c-17.7 0-32-14.3-32-32L224 0 64 0zM256 0l0 128 128 0L256 0zM216 232l0 102.1 31-31c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-72 72c-9.4 9.4-24.6 9.4-33.9 0l-72-72c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l31 31L168 232c0-13.3 10.7-24 24-24s24 10.7 24 24z"]},UEe=cZ,uZ={prefix:"fas",iconName:"ellipsis",icon:[448,512,["ellipsis-h"],"f141","M8 256a56 56 0 1 1 112 0A56 56 0 1 1 8 256zm160 0a56 56 0 1 1 112 0 56 56 0 1 1 -112 0zm216-56a56 56 0 1 1 0 112 56 56 0 1 1 0-112z"]},bd=uZ,ic={prefix:"fas",iconName:"bell",icon:[448,512,[128276,61602],"f0f3","M224 0c-17.7 0-32 14.3-32 32l0 19.2C119 66 64 130.6 64 208l0 18.8c0 47-17.3 92.4-48.5 127.6l-7.4 8.3c-8.4 9.4-10.4 22.9-5.3 34.4S19.4 416 32 416l384 0c12.6 0 24-7.4 29.2-18.9s3.1-25-5.3-34.4l-7.4-8.3C401.3 319.2 384 273.9 384 226.8l0-18.8c0-77.4-55-142-128-156.8L256 32c0-17.7-14.3-32-32-32zm45.3 493.3c12-12 18.7-28.3 18.7-45.3l-64 0-64 0c0 17 6.7 33.3 18.7 45.3s28.3 18.7 45.3 18.7s33.3-6.7 45.3-18.7z"]},n2={prefix:"fas",iconName:"file",icon:[384,512,[128196,128459,61462],"f15b","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 288c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128z"]},dZ={prefix:"fas",iconName:"gauge-high",icon:[512,512,[62461,"tachometer-alt","tachometer-alt-fast"],"f625","M0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zM288 96a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM256 416c35.3 0 64-28.7 64-64c0-17.4-6.9-33.1-18.1-44.6L366 161.7c5.3-12.1-.2-26.3-12.3-31.6s-26.3 .2-31.6 12.3L257.9 288c-.6 0-1.3 0-1.9 0c-35.3 0-64 28.7-64 64s28.7 64 64 64zM176 144a32 32 0 1 0 -64 0 32 32 0 1 0 64 0zM96 288a32 32 0 1 0 0-64 32 32 0 1 0 0 64zm352-32a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},rP=dZ,fZ={prefix:"fas",iconName:"bars-staggered",icon:[512,512,["reorder","stream"],"f550","M0 96C0 78.3 14.3 64 32 64l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 128C14.3 128 0 113.7 0 96zM64 256c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L96 288c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32L32 448c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},oP=fZ,hZ={prefix:"fas",iconName:"ice-cream",icon:[448,512,[127848],"f810","M367.1 160c.6-5.3 .9-10.6 .9-16C368 64.5 303.5 0 224 0S80 64.5 80 144c0 5.4 .3 10.7 .9 16l-.9 0c-26.5 0-48 21.5-48 48s21.5 48 48 48l53.5 0 181 0 53.5 0c26.5 0 48-21.5 48-48s-21.5-48-48-48l-.9 0zM96 288L200.8 497.7c4.4 8.8 13.3 14.3 23.2 14.3s18.8-5.5 23.2-14.3L352 288 96 288z"]},iP={prefix:"fas",iconName:"link",icon:[640,512,[128279,"chain"],"f0c1","M579.8 267.7c56.5-56.5 56.5-148 0-204.5c-50-50-128.8-56.5-186.3-15.4l-1.6 1.1c-14.4 10.3-17.7 30.3-7.4 44.6s30.3 17.7 44.6 7.4l1.6-1.1c32.1-22.9 76-19.3 103.8 8.6c31.5 31.5 31.5 82.5 0 114L422.3 334.8c-31.5 31.5-82.5 31.5-114 0c-27.9-27.9-31.5-71.8-8.6-103.8l1.1-1.6c10.3-14.4 6.9-34.4-7.4-44.6s-34.4-6.9-44.6 7.4l-1.1 1.6C206.5 251.2 213 330 263 380c56.5 56.5 148 56.5 204.5 0L579.8 267.7zM60.2 244.3c-56.5 56.5-56.5 148 0 204.5c50 50 128.8 56.5 186.3 15.4l1.6-1.1c14.4-10.3 17.7-30.3 7.4-44.6s-30.3-17.7-44.6-7.4l-1.6 1.1c-32.1 22.9-76 19.3-103.8-8.6C74 372 74 321 105.5 289.5L217.7 177.2c31.5-31.5 82.5-31.5 114 0c27.9 27.9 31.5 71.8 8.6 103.9l-1.1 1.6c-10.3 14.4-6.9 34.4 7.4 44.6s34.4 6.9 44.6-7.4l1.1-1.6C433.5 260.8 427 182 377 132c-56.5-56.5-148-56.5-204.5 0L60.2 244.3z"]},pZ={prefix:"fas",iconName:"play",icon:[384,512,[9654],"f04b","M73 39c-14.8-9.1-33.4-9.4-48.5-.9S0 62.6 0 80L0 432c0 17.4 9.4 33.4 24.5 41.9s33.7 8.1 48.5-.9L361 297c14.3-8.7 23-24.2 23-41s-8.7-32.2-23-41L73 39z"]},mZ={prefix:"fas",iconName:"font",icon:[448,512,[],"f031","M254 52.8C249.3 40.3 237.3 32 224 32s-25.3 8.3-30 20.8L57.8 416 32 416c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-1.8 0 18-48 159.6 0 18 48-1.8 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l96 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-25.8 0L254 52.8zM279.8 304l-111.6 0L224 155.1 279.8 304z"]},gZ={prefix:"fas",iconName:"magnifying-glass",icon:[512,512,[128269,"search"],"f002","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM208 352a144 144 0 1 0 0-288 144 144 0 1 0 0 288z"]},Ba=gZ,aP={prefix:"fas",iconName:"file-pen",icon:[576,512,[128221,"file-edit"],"f31c","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 125.7-86.8 86.8c-10.3 10.3-17.5 23.1-21 37.2l-18.7 74.9c-2.3 9.2-1.8 18.8 1.3 27.5L64 512c-35.3 0-64-28.7-64-64L0 64zm384 64l-128 0L256 0 384 128zM549.8 235.7l14.4 14.4c15.6 15.6 15.6 40.9 0 56.6l-29.4 29.4-71-71 29.4-29.4c15.6-15.6 40.9-15.6 56.6 0zM311.9 417L441.1 287.8l71 71L382.9 487.9c-4.1 4.1-9.2 7-14.9 8.4l-60.1 15c-5.5 1.4-11.2-.2-15.2-4.2s-5.6-9.7-4.2-15.2l15-60.1c1.4-5.6 4.3-10.8 8.4-14.9z"]},vZ={prefix:"fas",iconName:"suitcase-rolling",icon:[384,512,[],"f5c1","M144 56c0-4.4 3.6-8 8-8l80 0c4.4 0 8 3.6 8 8l0 72-96 0 0-72zm176 72l-32 0 0-72c0-30.9-25.1-56-56-56L152 0C121.1 0 96 25.1 96 56l0 72-32 0c-35.3 0-64 28.7-64 64L0 416c0 35.3 28.7 64 64 64c0 17.7 14.3 32 32 32s32-14.3 32-32l128 0c0 17.7 14.3 32 32 32s32-14.3 32-32c35.3 0 64-28.7 64-64l0-224c0-35.3-28.7-64-64-64zM112 224l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16zm0 128l160 0c8.8 0 16 7.2 16 16s-7.2 16-16 16l-160 0c-8.8 0-16-7.2-16-16s7.2-16 16-16z"]},za={prefix:"fas",iconName:"chevron-down",icon:[512,512,[],"f078","M233.4 406.6c12.5 12.5 32.8 12.5 45.3 0l192-192c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L256 338.7 86.6 169.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3l192 192z"]},s2={prefix:"fas",iconName:"arrow-up",icon:[384,512,[8593],"f062","M214.6 41.4c-12.5-12.5-32.8-12.5-45.3 0l-160 160c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 141.2 160 448c0 17.7 14.3 32 32 32s32-14.3 32-32l0-306.7L329.4 246.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3l-160-160z"]},bZ={prefix:"fas",iconName:"circle-half-stroke",icon:[512,512,[9680,"adjust"],"f042","M448 256c0-106-86-192-192-192l0 384c106 0 192-86 192-192zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256z"]},jEe=bZ,r2={prefix:"fas",iconName:"plus",icon:[448,512,[10133,61543,"add"],"2b","M256 80c0-17.7-14.3-32-32-32s-32 14.3-32 32l0 144L48 224c-17.7 0-32 14.3-32 32s14.3 32 32 32l144 0 0 144c0 17.7 14.3 32 32 32s32-14.3 32-32l0-144 144 0c17.7 0 32-14.3 32-32s-14.3-32-32-32l-144 0 0-144z"]},yZ={prefix:"fas",iconName:"xmark",icon:[384,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M342.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L192 210.7 86.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L146.7 256 41.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L192 301.3 297.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L237.3 256 342.6 150.6z"]},Xn=yZ,qa={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},yd={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},o2={prefix:"fas",iconName:"retweet",icon:[576,512,[],"f079","M272 416c17.7 0 32-14.3 32-32s-14.3-32-32-32l-112 0c-17.7 0-32-14.3-32-32l0-128 32 0c12.9 0 24.6-7.8 29.6-19.8s2.2-25.7-6.9-34.9l-64-64c-12.5-12.5-32.8-12.5-45.3 0l-64 64c-9.2 9.2-11.9 22.9-6.9 34.9s16.6 19.8 29.6 19.8l32 0 0 128c0 53 43 96 96 96l112 0zM304 96c-17.7 0-32 14.3-32 32s14.3 32 32 32l112 0c17.7 0 32 14.3 32 32l0 128-32 0c-12.9 0-24.6 7.8-29.6 19.8s-2.2 25.7 6.9 34.9l64 64c12.5 12.5 32.8 12.5 45.3 0l64-64c9.2-9.2 11.9-22.9 6.9-34.9s-16.6-19.8-29.6-19.8l-32 0 0-128c0-53-43-96-96-96L304 96z"]},_Z={prefix:"fas",iconName:"face-smile",icon:[512,512,[128578,"smile"],"f118","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM164.1 325.5C182 346.2 212.6 368 256 368s74-21.8 91.9-42.5c5.8-6.7 15.9-7.4 22.6-1.6s7.4 15.9 1.6 22.6C349.8 372.1 311.1 400 256 400s-93.8-27.9-116.1-53.5c-5.8-6.7-5.1-16.8 1.6-22.6s16.8-5.1 22.6 1.6zM144.4 208a32 32 0 1 1 64 0 32 32 0 1 1 -64 0zm192-32a32 32 0 1 1 0 64 32 32 0 1 1 0-64z"]},wZ=_Z,i2={prefix:"fas",iconName:"thumbtack",icon:[384,512,[128204,128392,"thumb-tack"],"f08d","M32 32C32 14.3 46.3 0 64 0L320 0c17.7 0 32 14.3 32 32s-14.3 32-32 32l-29.5 0 11.4 148.2c36.7 19.9 65.7 53.2 79.5 94.7l1 3c3.3 9.8 1.6 20.5-4.4 28.8s-15.7 13.3-26 13.3L32 352c-10.3 0-19.9-4.9-26-13.3s-7.7-19.1-4.4-28.8l1-3c13.8-41.5 42.8-74.8 79.5-94.7L93.5 64 64 64C46.3 64 32 49.7 32 32zM160 384l64 0 0 96c0 17.7-14.3 32-32 32s-32-14.3-32-32l0-96z"]},SZ={prefix:"fas",iconName:"robot",icon:[640,512,[129302],"f544","M320 0c17.7 0 32 14.3 32 32l0 64 120 0c39.8 0 72 32.2 72 72l0 272c0 39.8-32.2 72-72 72l-304 0c-39.8 0-72-32.2-72-72l0-272c0-39.8 32.2-72 72-72l120 0 0-64c0-17.7 14.3-32 32-32zM208 384c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zm96 0c-8.8 0-16 7.2-16 16s7.2 16 16 16l32 0c8.8 0 16-7.2 16-16s-7.2-16-16-16l-32 0zM264 256a40 40 0 1 0 -80 0 40 40 0 1 0 80 0zm152 40a40 40 0 1 0 0-80 40 40 0 1 0 0 80zM48 224l16 0 0 192-16 0c-26.5 0-48-21.5-48-48l0-96c0-26.5 21.5-48 48-48zm544 0c26.5 0 48 21.5 48 48l0 96c0 26.5-21.5 48-48 48l-16 0 0-192 16 0z"]},$Z={prefix:"fas",iconName:"angles-left",icon:[512,512,[171,"angle-double-left"],"f100","M41.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L109.3 256 246.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-160 160zm352-160l-160 160c-12.5 12.5-12.5 32.8 0 45.3l160 160c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L301.3 256 438.6 118.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0z"]},kZ=$Z,lP={prefix:"fas",iconName:"clock-rotate-left",icon:[512,512,["history"],"f1da","M75 75L41 41C25.9 25.9 0 36.6 0 57.9L0 168c0 13.3 10.7 24 24 24l110.1 0c21.4 0 32.1-25.9 17-41l-30.8-30.8C155 85.5 203 64 256 64c106 0 192 86 192 192s-86 192-192 192c-40.8 0-78.6-12.7-109.7-34.4c-14.5-10.1-34.4-6.6-44.6 7.9s-6.6 34.4 7.9 44.6C151.2 495 201.7 512 256 512c141.4 0 256-114.6 256-256S397.4 0 256 0C185.3 0 121.3 28.7 75 75zm181 53c-13.3 0-24 10.7-24 24l0 104c0 6.4 2.5 12.5 7 17l72 72c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-65-65 0-94.1c0-13.3-10.7-24-24-24z"]},CZ=lP,BEe={prefix:"fas",iconName:"file-export",icon:[576,512,["arrow-right-from-file"],"f56e","M0 64C0 28.7 28.7 0 64 0L224 0l0 128c0 17.7 14.3 32 32 32l128 0 0 128-168 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l168 0 0 112c0 35.3-28.7 64-64 64L64 512c-35.3 0-64-28.7-64-64L0 64zM384 336l0-48 110.1 0-39-39c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0l80 80c9.4 9.4 9.4 24.6 0 33.9l-80 80c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l39-39L384 336zm0-208l-128 0L256 0 384 128z"]},a2={prefix:"fas",iconName:"music",icon:[512,512,[127925],"f001","M499.1 6.3c8.1 6 12.9 15.6 12.9 25.7l0 72 0 264c0 44.2-43 80-96 80s-96-35.8-96-80s43-80 96-80c11.2 0 22 1.6 32 4.6L448 147 192 223.8 192 432c0 44.2-43 80-96 80s-96-35.8-96-80s43-80 96-80c11.2 0 22 1.6 32 4.6L128 200l0-72c0-14.1 9.3-26.6 22.8-30.7l320-96c9.7-2.9 20.2-1.1 28.3 5z"]},TZ={prefix:"fas",iconName:"up-right-and-down-left-from-center",icon:[512,512,["expand-alt"],"f424","M344 0L488 0c13.3 0 24 10.7 24 24l0 144c0 9.7-5.8 18.5-14.8 22.2s-19.3 1.7-26.2-5.2l-39-39-87 87c-9.4 9.4-24.6 9.4-33.9 0l-32-32c-9.4-9.4-9.4-24.6 0-33.9l87-87L327 41c-6.9-6.9-8.9-17.2-5.2-26.2S334.3 0 344 0zM168 512L24 512c-13.3 0-24-10.7-24-24L0 344c0-9.7 5.8-18.5 14.8-22.2s19.3-1.7 26.2 5.2l39 39 87-87c9.4-9.4 24.6-9.4 33.9 0l32 32c9.4 9.4 9.4 24.6 0 33.9l-87 87 39 39c6.9 6.9 8.9 17.2 5.2 26.2s-12.5 14.8-22.2 14.8z"]},cP=TZ,AZ={prefix:"fas",iconName:"circle-plus",icon:[512,512,["plus-circle"],"f055","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM232 344l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"]},EZ={prefix:"fas",iconName:"rss",icon:[448,512,["feed"],"f09e","M0 64C0 46.3 14.3 32 32 32c229.8 0 416 186.2 416 416c0 17.7-14.3 32-32 32s-32-14.3-32-32C384 253.6 226.4 96 32 96C14.3 96 0 81.7 0 64zM0 416a64 64 0 1 1 128 0A64 64 0 1 1 0 416zM32 160c159.1 0 288 128.9 288 288c0 17.7-14.3 32-32 32s-32-14.3-32-32c0-123.7-100.3-224-224-224c-17.7 0-32-14.3-32-32s14.3-32 32-32z"]},Op={prefix:"fas",iconName:"user-plus",icon:[640,512,[],"f234","M96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM0 482.3C0 383.8 79.8 304 178.3 304l91.4 0C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7L29.7 512C13.3 512 0 498.7 0 482.3zM504 312l0-64-64 0c-13.3 0-24-10.7-24-24s10.7-24 24-24l64 0 0-64c0-13.3 10.7-24 24-24s24 10.7 24 24l0 64 64 0c13.3 0 24 10.7 24 24s-10.7 24-24 24l-64 0 0 64c0 13.3-10.7 24-24 24s-24-10.7-24-24z"]},Rp={prefix:"fas",iconName:"check",icon:[448,512,[10003,10004],"f00c","M438.6 105.4c12.5 12.5 12.5 32.8 0 45.3l-256 256c-12.5 12.5-32.8 12.5-45.3 0l-128-128c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0L160 338.7 393.4 105.4c12.5-12.5 32.8-12.5 45.3 0z"]},IZ={prefix:"fas",iconName:"triangle-exclamation",icon:[512,512,[9888,"exclamation-triangle","warning"],"f071","M256 32c14.2 0 27.3 7.5 34.5 19.8l216 368c7.3 12.4 7.3 27.7 .2 40.1S486.3 480 472 480L40 480c-14.3 0-27.6-7.7-34.7-20.1s-7-27.8 .2-40.1l216-368C228.7 39.5 241.8 32 256 32zm0 128c-13.3 0-24 10.7-24 24l0 112c0 13.3 10.7 24 24 24s24-10.7 24-24l0-112c0-13.3-10.7-24-24-24zm32 224a32 32 0 1 0 -64 0 32 32 0 1 0 64 0z"]},PZ=IZ,LZ={prefix:"fas",iconName:"align-right",icon:[448,512,[],"f038","M448 64c0 17.7-14.3 32-32 32L192 96c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32zm0 256c0 17.7-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32zM0 192c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 224c-17.7 0-32-14.3-32-32zM448 448c0 17.7-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},OZ={prefix:"fas",iconName:"magnifying-glass-plus",icon:[512,512,["search-plus"],"f00e","M416 208c0 45.9-14.9 88.3-40 122.7L502.6 457.4c12.5 12.5 12.5 32.8 0 45.3s-32.8 12.5-45.3 0L330.7 376c-34.4 25.2-76.8 40-122.7 40C93.1 416 0 322.9 0 208S93.1 0 208 0S416 93.1 416 208zM184 296c0 13.3 10.7 24 24 24s24-10.7 24-24l0-64 64 0c13.3 0 24-10.7 24-24s-10.7-24-24-24l-64 0 0-64c0-13.3-10.7-24-24-24s-24 10.7-24 24l0 64-64 0c-13.3 0-24 10.7-24 24s10.7 24 24 24l64 0 0 64z"]},uP=OZ,zEe={prefix:"fas",iconName:"thumbs-up",icon:[512,512,[128077,61575],"f164","M313.4 32.9c26 5.2 42.9 30.5 37.7 56.5l-2.3 11.4c-5.3 26.7-15.1 52.1-28.8 75.2l144 0c26.5 0 48 21.5 48 48c0 18.5-10.5 34.6-25.9 42.6C497 275.4 504 288.9 504 304c0 23.4-16.8 42.9-38.9 47.1c4.4 7.3 6.9 15.8 6.9 24.9c0 21.3-13.9 39.4-33.1 45.6c.7 3.3 1.1 6.8 1.1 10.4c0 26.5-21.5 48-48 48l-97.5 0c-19 0-37.5-5.6-53.3-16.1l-38.5-25.7C176 420.4 160 390.4 160 358.3l0-38.3 0-48 0-24.9c0-29.2 13.3-56.7 36-75l7.4-5.9c26.5-21.2 44.6-51 51.2-84.2l2.3-11.4c5.2-26 30.5-42.9 56.5-37.7zM32 192l64 0c17.7 0 32 14.3 32 32l0 224c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32-14.3-32-32L0 224c0-17.7 14.3-32 32-32z"]},RZ={prefix:"fas",iconName:"note-sticky",icon:[448,512,[62026,"sticky-note"],"f249","M64 32C28.7 32 0 60.7 0 96L0 416c0 35.3 28.7 64 64 64l224 0 0-112c0-26.5 21.5-48 48-48l112 0 0-224c0-35.3-28.7-64-64-64L64 32zM448 352l-45.3 0L336 352c-8.8 0-16 7.2-16 16l0 66.7 0 45.3 32-32 64-64 32-32z"]},MZ=RZ,NZ={prefix:"fas",iconName:"video",icon:[576,512,["video-camera"],"f03d","M0 128C0 92.7 28.7 64 64 64l256 0c35.3 0 64 28.7 64 64l0 256c0 35.3-28.7 64-64 64L64 448c-35.3 0-64-28.7-64-64L0 128zM559.1 99.8c10.4 5.6 16.9 16.4 16.9 28.2l0 256c0 11.8-6.5 22.6-16.9 28.2s-23 5-32.9-1.6l-96-64L416 337.1l0-17.1 0-128 0-17.1 14.2-9.5 96-64c9.8-6.5 22.4-7.2 32.9-1.6z"]};et.add(Xn);const FZ=1,Ou=1,dP=new Date("2022-08-04"),fP=1e3,py=1001,Rs={dirty:!1,flagStorage:{updateCounter:0,configMigration:0,reset:0},prefsStorage:{_journal:[],simple:{dontShowUpdateNotifs:!1,collapseNav:!1,muteFilters:{}},collections:{pinnedStatusActions:["reply","retweet","favorite","emoji"],pinnedNavItems:["home","dms","chats"]}},raw:null,cache:null},hP={...Rs.flagStorage,updateCounter:FZ},l2=(e,t,n)=>{const s=e.indexOf(t),r=s+n,o=[...e];return o.splice(s,1),o.splice(Z.clamp(r,0,o.length+1),0,t),o},o3=(e,t)=>({...e,_user:t,_timestamp:Date.now(),_version:Ou}),i3=e=>e._timestamp>0&&e._version>0,a3=e=>{e.prefsStorage=e.prefsStorage||{simple:{},collections:{}},Object.entries(Rs.prefsStorage.simple).forEach(([t,n])=>{typeof n=="number"||typeof n=="boolean"||typeof n=="object"&&n!=null||(console.warn(`Preference simple.${t} as invalid type, reinitializing`),Z.set(e.prefsStorage.simple,t,Rs.prefsStorage.simple[t]))}),Object.entries(Rs.prefsStorage.collections).forEach(([t,n])=>{Array.isArray(n)||(console.warn(`Preference collections.${t} as invalid type, reinitializing`),Z.set(e.prefsStorage.collections,t,Rs.prefsStorage.collections[t]))})},pP=(e,t,n)=>{const s={recent:null,stale:null,needUpload:!1},r=i3(e||{}),o=i3(t||{});!o&&r?(s.needUpload=!0,console.debug("Nothing valid stored on server, assuming cache to be source of truth"),s.recent=e,s.stale=t):!r&&o?(console.debug("Valid storage on server found, no local cache found, using live as source of truth"),s.recent=t,s.stale=e):r&&o?(console.debug("Both sources have valid data, figuring things out..."),t._timestamp===e._timestamp&&t._version===e._version?(console.debug("Same version/timestamp on both source, source of truth irrelevant"),s.recent=e,s.stale=t):(console.debug("Different timestamp, figuring out which one is more recent"),t._timestamp<e._timestamp?(s.recent=e,s.stale=t):(s.recent=t,s.stale=e))):(console.debug("Both sources are invalid, start from scratch"),s.needUpload=!0);const i=(a,c)=>({_user:a._user??c._user,_version:a._version??c._version,_timestamp:a._timestamp??c._timestamp,needUpload:c.needUpload??a.needUpload,prefsStorage:Z.merge(a.prefsStorage,c.prefsStorage),flagStorage:Z.merge(a.flagStorage,c.flagStorage)});return s.recent=n?s.recent:s.recent&&i(Rs,s.recent),s.stale=n?s.stale:s.stale&&i(Rs,s.stale),s},mP=(e,t)=>Array.from(new Set([...Object.keys(Mt((e||{}).flagStorage||{})),...Object.keys(Mt((t||{}).flagStorage||{}))])),gP=(e,t,n)=>t.flagStorage?e.flagStorage?Object.fromEntries(n.map(s=>{const r=e.flagStorage[s],o=t.flagStorage[s];return[s,Number((r>o?r:o)||0)]})):t.flagStorage:e.flagStorage,vP=(...e)=>{const t=Z.flatten(e.map(r=>Array.isArray(r)?r:[])).filter(r=>Object.prototype.hasOwnProperty.call(r,"path")&&Object.prototype.hasOwnProperty.call(r,"operation")&&Object.prototype.hasOwnProperty.call(r,"args")&&Object.prototype.hasOwnProperty.call(r,"timestamp")),n=Z.groupBy(t,"path"),s=Object.entries(n).map(([r,o])=>{if(o.sort((i,a)=>i.timestamp>a.timestamp?1:-1),r.startsWith("collections")){const i=Z.findLastIndex(o,({operation:c})=>c==="removeFromCollection");let a;return i>0?a=o.slice(i):a=o,Z.uniqWith(a,(c,u)=>c.path!==u.path||c.operation!==u.operation?!1:c.operation==="addToCollection"?c.args[0]===u.args[0]:!1)}else return r.startsWith("simple")?Z.takeRight(o):o});return Z.flatten(s).sort((r,o)=>r.timestamp>o.timestamp?1:-1)},bP=(e,t)=>{if(!t)return e;if(!e)return t;const{_journal:n,...s}=e,{_journal:r}=t,o={...s},i=vP(r,n);return i.forEach(({path:a,operation:c,args:u})=>{if(a.startsWith("_"))throw new Error(`journal contains entry to edit internal (starts with _) field '${a}', something is incorrect here, ignoring.`);switch(c){case"set":if(a.startsWith("collections")||a.startsWith("objectCollections"))throw new Error('Illegal operation "set" on a collection');if(a.split(/\./g).length<=1)throw new Error(`Calling set on depth <= 1 (path: ${a}) is not allowed`);Z.set(o,a,u[0]);break;case"unset":if(a.startsWith("collections")||a.startsWith("objectCollections"))throw new Error('Illegal operation "unset" on a collection');if(a.split(/\./g).length<=2)throw new Error(`Calling unset on depth <= 2 (path: ${a}) is not allowed`);Z.unset(o,a);break;case"addToCollection":Z.set(o,a,Array.from(new Set(Z.get(o,a)).add(u[0])));break;case"removeFromCollection":{const f=new Set(Z.get(o,a));f.delete(u[0]),Z.set(o,a,Array.from(f));break}case"reorderCollection":{const[f,h]=u;Z.set(o,a,l2(Z.get(o,a),f,h));break}default:throw new Error(`Unknown journal operation: '${c}', did we forget to run reverse migrations beforehand?`)}}),{...o,_journal:i}},yP=(e,t=Rs.flagStorage)=>{let n={...e};const s=Object.keys(e);if(e.reset>=fP&&e.reset<=py){console.debug("Received command to trim the flags");const r=new Set(Object.keys(t));n={},s.forEach(o=>{r.has(o)&&(n[o]=e[o])}),e.reset===py&&(console.debug("Received command to reset the flags"),Object.keys(t).forEach(o=>{n[o]=0}))}else e.reset>0&&e.reset<9e3&&(console.debug("Received command to reset the flags"),s.forEach(r=>{n[r]=0}));return n.reset=0,n},_P=e=>e&&(e._version<Ou&&(console.debug("Local cached data has older version, seeing if there any migrations that can be applied"),console.debug("No migrations found")),e._version>Ou&&(console.debug("Local cached data has newer version, seeing if there any reverse migrations that can be applied"),window._PLEROMA_HOTPATCH&&window._PLEROMA_HOTPATCH.reverseMigrations)?(console.debug("Found hotpatch migration, applying"),window._PLEROMA_HOTPATCH.reverseMigrations.call({},"serverSideStorage",{from:e._version,to:Ou},e)):e),_n=vs("serverSideStorage",{state(){return Z.cloneDeep(Rs)},actions:{setFlag({flag:e,value:t}){this.flagStorage[e]=t,this.dirty=!0},setPreference({path:e,value:t}){if(e.startsWith("_"))throw new Error(`Tried to edit internal (starts with _) field '${e}', ignoring.`);if(e.startsWith("collections")||e.startsWith("objectCollections"))throw new Error(`Invalid operation 'set' for collection field '${e}', ignoring.`);if(e.split(/\./g).length<=1)throw new Error(`Calling set on depth <= 1 (path: ${e}) is not allowed`);if(e.split(/\./g).length>3)throw new Error(`Calling set on depth > 3 (path: ${e}) is not allowed`);Z.set(this.prefsStorage,e,t),this.prefsStorage._journal=[...this.prefsStorage._journal,{operation:"set",path:e,args:[t],timestamp:Date.now()}],this.dirty=!0},unsetPreference({path:e,value:t}){if(e.startsWith("_"))throw new Error(`Tried to edit internal (starts with _) field '${e}', ignoring.`);if(e.startsWith("collections")||e.startsWith("objectCollections"))throw new Error(`Invalid operation 'unset' for collection field '${e}', ignoring.`);if(e.split(/\./g).length<=2)throw new Error(`Calling unset on depth <= 2 (path: ${e}) is not allowed`);if(e.split(/\./g).length>3)throw new Error(`Calling unset on depth > 3 (path: ${e}) is not allowed`);Z.unset(this.prefsStorage,e,t),this.prefsStorage._journal=[...this.prefsStorage._journal,{operation:"unset",path:e,args:[],timestamp:Date.now()}],this.dirty=!0},addCollectionPreference({path:e,value:t}){if(e.startsWith("_"))throw new Error(`tried to edit internal (starts with _) field '${e}'`);if(e.startsWith("collections")){const n=new Set(Z.get(this.prefsStorage,e));n.add(t),Z.set(this.prefsStorage,e,[...n])}else if(e.startsWith("objectCollections")){const{_key:n}=t;if(!n&&typeof n!="string")throw new Error("Object for storage is missing _key field!");const s=new Set(Z.get(this.prefsStorage,e+".index"));s.add(n),Z.set(this.prefsStorage,e+".index",[...s]),Z.set(this.prefsStorage,e+".data."+n,t)}this.prefsStorage._journal=[...this.prefsStorage._journal,{operation:"addToCollection",path:e,args:[t],timestamp:Date.now()}],this.dirty=!0},removeCollectionPreference({path:e,value:t}){if(e.startsWith("_"))throw new Error(`tried to edit internal (starts with _) field '${e}', ignoring.`);const n=new Set(Z.get(this.prefsStorage,e));n.delete(t),Z.set(this.prefsStorage,e,[...n]),this.prefsStorage._journal=[...this.prefsStorage._journal,{operation:"removeFromCollection",path:e,args:[t],timestamp:Date.now()}],this.dirty=!0},reorderCollectionPreference({path:e,value:t,movement:n}){if(e.startsWith("_"))throw new Error(`tried to edit internal (starts with _) field '${e}', ignoring.`);const s=Z.get(this.prefsStorage,e),r=l2(s,t,n);Z.set(this.prefsStorage,e,r),this.prefsStorage._journal=[...this.prefsStorage._journal,{operation:"arrangeCollection",path:e,args:[t],timestamp:Date.now()}],this.dirty=!0},updateCache({username:e}){this.prefsStorage._journal=vP(this.prefsStorage._journal),this.cache=o3({flagStorage:Mt(this.flagStorage),prefsStorage:Mt(this.prefsStorage)},e)},clearServerSideStorage(){const e={...Z.cloneDeep(Rs)};Object.keys(this).forEach(t=>{this[t]=e[t]})},setServerSideStorage(e){const t=e.storage;this.raw=t;let n=this.cache;n&&n._user!==e.fqn&&(console.warn("Cache belongs to another user! reinitializing local cache!"),n=null),n=_P(n);let{recent:s,stale:r,needUpload:o}=pP(n,t);const i=e.created_at>dP,a=i?hP:Rs.flagStorage;let c=!1;if(s===null&&(console.debug(`Data is empty, initializing for ${i?"new":"existing"} user`),s=o3({flagStorage:{...a},prefsStorage:{...Rs.prefsStorage}})),!o&&s&&r){console.debug("Checking if data needs merging...");const{_timestamp:v,_version:y,...S}=s,{_timestamp:k,_version:I,...C}=r;c=!Z.isEqual(S,C),console.debug(`Data ${c?"needs":"doesn't need"} merging`)}const u=mP(s,r);let f,h;c?(console.debug("Merging the data..."),f=gP(s,r,u),a3(s),a3(r),h=bP(s.prefsStorage,r.prefsStorage)):(f=s.flagStorage,h=s.prefsStorage),f=yP(f),s.flagStorage={...a,...f},s.prefsStorage={...Rs.prefsStorage,...h},this.dirty=c||o,this.cache=s,r&&s&&!this.dirty&&(this.cache._timestamp=Math.min(r._timestamp,s._timestamp)),this.flagStorage=this.cache.flagStorage,this.prefsStorage=this.cache.prefsStorage},pushServerSideStorage({force:e=!1}={}){if(!(this.dirty||e))return;this.updateCache({username:window.vuex.state.users.currentUser.fqn});const n={pleroma_settings_store:{"pleroma-fe":this.cache}};window.vuex.state.api.backendInteractor.updateProfileJSON({params:n}).then(s=>{this.setServerSideStorage(s),this.dirty=!1})}}}),DZ=Object.freeze(Object.defineProperty({__proto__:null,COMMAND_TRIM_FLAGS:fP,COMMAND_TRIM_FLAGS_AND_RESET:py,NEW_USER_DATE:dP,VERSION:Ou,_doMigrations:_P,_getAllFlags:mP,_getRecentData:pP,_mergeFlags:gP,_mergePrefs:bP,_moveItemInArray:l2,_resetFlags:yP,defaultState:Rs,newUserFlags:hP,useServerSideStorageStore:_n},Symbol.toStringTag,{value:"Module"}));var e1,l3;function wP(){if(l3)return e1;l3=1;function e(t,n){for(var s=-1,r=t==null?0:t.length,o=0,i=[];++s<r;){var a=t[s];n(a,s,t)&&(i[o++]=a)}return i}return e1=e,e1}var t1,c3;function UZ(){if(c3)return t1;c3=1;function e(t){return function(n,s,r){for(var o=-1,i=Object(n),a=r(n),c=a.length;c--;){var u=a[t?c:++o];if(s(i[u],u,i)===!1)break}return n}}return t1=e,t1}var n1,u3;function SP(){if(u3)return n1;u3=1;var e=UZ(),t=e();return n1=t,n1}var s1,d3;function jZ(){if(d3)return s1;d3=1;function e(t,n){for(var s=-1,r=Array(t);++s<t;)r[s]=n(s);return r}return s1=e,s1}var r1,f3;function $P(){if(f3)return r1;f3=1;var e=typeof ps=="object"&&ps&&ps.Object===Object&&ps;return r1=e,r1}var o1,h3;function oo(){if(h3)return o1;h3=1;var e=$P(),t=typeof self=="object"&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return o1=n,o1}var i1,p3;function Mp(){if(p3)return i1;p3=1;var e=oo(),t=e.Symbol;return i1=t,i1}var a1,m3;function BZ(){if(m3)return a1;m3=1;var e=Mp(),t=Object.prototype,n=t.hasOwnProperty,s=t.toString,r=e?e.toStringTag:void 0;function o(i){var a=n.call(i,r),c=i[r];try{i[r]=void 0;var u=!0}catch{}var f=s.call(i);return u&&(a?i[r]=c:delete i[r]),f}return a1=o,a1}var l1,g3;function zZ(){if(g3)return l1;g3=1;var e=Object.prototype,t=e.toString;function n(s){return t.call(s)}return l1=n,l1}var c1,v3;function ac(){if(v3)return c1;v3=1;var e=Mp(),t=BZ(),n=zZ(),s="[object Null]",r="[object Undefined]",o=e?e.toStringTag:void 0;function i(a){return a==null?a===void 0?r:s:o&&o in Object(a)?t(a):n(a)}return c1=i,c1}var u1,b3;function Ha(){if(b3)return u1;b3=1;function e(t){return t!=null&&typeof t=="object"}return u1=e,u1}var d1,y3;function qZ(){if(y3)return d1;y3=1;var e=ac(),t=Ha(),n="[object Arguments]";function s(r){return t(r)&&e(r)==n}return d1=s,d1}var f1,_3;function Np(){if(_3)return f1;_3=1;var e=qZ(),t=Ha(),n=Object.prototype,s=n.hasOwnProperty,r=n.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(i){return t(i)&&s.call(i,"callee")&&!r.call(i,"callee")};return f1=o,f1}var h1,w3;function Qs(){if(w3)return h1;w3=1;var e=Array.isArray;return h1=e,h1}var du={exports:{}},p1,S3;function HZ(){if(S3)return p1;S3=1;function e(){return!1}return p1=e,p1}du.exports;var $3;function Fp(){return $3||($3=1,function(e,t){var n=oo(),s=HZ(),r=t&&!t.nodeType&&t,o=r&&!0&&e&&!e.nodeType&&e,i=o&&o.exports===r,a=i?n.Buffer:void 0,c=a?a.isBuffer:void 0,u=c||s;e.exports=u}(du,du.exports)),du.exports}var m1,k3;function c2(){if(k3)return m1;k3=1;var e=9007199254740991,t=/^(?:0|[1-9]\d*)$/;function n(s,r){var o=typeof s;return r=r??e,!!r&&(o=="number"||o!="symbol"&&t.test(s))&&s>-1&&s%1==0&&s<r}return m1=n,m1}var g1,C3;function u2(){if(C3)return g1;C3=1;var e=9007199254740991;function t(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=e}return g1=t,g1}var v1,T3;function VZ(){if(T3)return v1;T3=1;var e=ac(),t=u2(),n=Ha(),s="[object Arguments]",r="[object Array]",o="[object Boolean]",i="[object Date]",a="[object Error]",c="[object Function]",u="[object Map]",f="[object Number]",h="[object Object]",v="[object RegExp]",y="[object Set]",S="[object String]",k="[object WeakMap]",I="[object ArrayBuffer]",C="[object DataView]",$="[object Float32Array]",P="[object Float64Array]",A="[object Int8Array]",R="[object Int16Array]",B="[object Int32Array]",N="[object Uint8Array]",W="[object Uint8ClampedArray]",V="[object Uint16Array]",U="[object Uint32Array]",ie={};ie[$]=ie[P]=ie[A]=ie[R]=ie[B]=ie[N]=ie[W]=ie[V]=ie[U]=!0,ie[s]=ie[r]=ie[I]=ie[o]=ie[C]=ie[i]=ie[a]=ie[c]=ie[u]=ie[f]=ie[h]=ie[v]=ie[y]=ie[S]=ie[k]=!1;function le(Pe){return n(Pe)&&t(Pe.length)&&!!ie[e(Pe)]}return v1=le,v1}var b1,A3;function WZ(){if(A3)return b1;A3=1;function e(t){return function(n){return t(n)}}return b1=e,b1}var fu={exports:{}};fu.exports;var E3;function GZ(){return E3||(E3=1,function(e,t){var n=$P(),s=t&&!t.nodeType&&t,r=s&&!0&&e&&!e.nodeType&&e,o=r&&r.exports===s,i=o&&n.process,a=function(){try{var c=r&&r.require&&r.require("util").types;return c||i&&i.binding&&i.binding("util")}catch{}}();e.exports=a}(fu,fu.exports)),fu.exports}var y1,I3;function Dp(){if(I3)return y1;I3=1;var e=VZ(),t=WZ(),n=GZ(),s=n&&n.isTypedArray,r=s?t(s):e;return y1=r,y1}var _1,P3;function kP(){if(P3)return _1;P3=1;var e=jZ(),t=Np(),n=Qs(),s=Fp(),r=c2(),o=Dp(),i=Object.prototype,a=i.hasOwnProperty;function c(u,f){var h=n(u),v=!h&&t(u),y=!h&&!v&&s(u),S=!h&&!v&&!y&&o(u),k=h||v||y||S,I=k?e(u.length,String):[],C=I.length;for(var $ in u)(f||a.call(u,$))&&!(k&&($=="length"||y&&($=="offset"||$=="parent")||S&&($=="buffer"||$=="byteLength"||$=="byteOffset")||r($,C)))&&I.push($);return I}return _1=c,_1}var w1,L3;function Up(){if(L3)return w1;L3=1;var e=Object.prototype;function t(n){var s=n&&n.constructor,r=typeof s=="function"&&s.prototype||e;return n===r}return w1=t,w1}var S1,O3;function CP(){if(O3)return S1;O3=1;function e(t,n){return function(s){return t(n(s))}}return S1=e,S1}var $1,R3;function KZ(){if(R3)return $1;R3=1;var e=CP(),t=e(Object.keys,Object);return $1=t,$1}var k1,M3;function TP(){if(M3)return k1;M3=1;var e=Up(),t=KZ(),n=Object.prototype,s=n.hasOwnProperty;function r(o){if(!e(o))return t(o);var i=[];for(var a in Object(o))s.call(o,a)&&a!="constructor"&&i.push(a);return i}return k1=r,k1}var C1,N3;function Ki(){if(N3)return C1;N3=1;function e(t){var n=typeof t;return t!=null&&(n=="object"||n=="function")}return C1=e,C1}var T1,F3;function jp(){if(F3)return T1;F3=1;var e=ac(),t=Ki(),n="[object AsyncFunction]",s="[object Function]",r="[object GeneratorFunction]",o="[object Proxy]";function i(a){if(!t(a))return!1;var c=e(a);return c==s||c==r||c==n||c==o}return T1=i,T1}var A1,D3;function Va(){if(D3)return A1;D3=1;var e=jp(),t=u2();function n(s){return s!=null&&t(s.length)&&!e(s)}return A1=n,A1}var E1,U3;function d2(){if(U3)return E1;U3=1;var e=kP(),t=TP(),n=Va();function s(r){return n(r)?e(r):t(r)}return E1=s,E1}var I1,j3;function xZ(){if(j3)return I1;j3=1;var e=SP(),t=d2();function n(s,r){return s&&e(s,r,t)}return I1=n,I1}var P1,B3;function YZ(){if(B3)return P1;B3=1;var e=Va();function t(n,s){return function(r,o){if(r==null)return r;if(!e(r))return n(r,o);for(var i=r.length,a=s?i:-1,c=Object(r);(s?a--:++a<i)&&o(c[a],a,c)!==!1;);return r}}return P1=t,P1}var L1,z3;function f2(){if(z3)return L1;z3=1;var e=xZ(),t=YZ(),n=t(e);return L1=n,L1}var O1,q3;function XZ(){if(q3)return O1;q3=1;var e=f2();function t(n,s){var r=[];return e(n,function(o,i,a){s(o,i,a)&&r.push(o)}),r}return O1=t,O1}var R1,H3;function JZ(){if(H3)return R1;H3=1;function e(){this.__data__=[],this.size=0}return R1=e,R1}var M1,V3;function _d(){if(V3)return M1;V3=1;function e(t,n){return t===n||t!==t&&n!==n}return M1=e,M1}var N1,W3;function Bp(){if(W3)return N1;W3=1;var e=_d();function t(n,s){for(var r=n.length;r--;)if(e(n[r][0],s))return r;return-1}return N1=t,N1}var F1,G3;function ZZ(){if(G3)return F1;G3=1;var e=Bp(),t=Array.prototype,n=t.splice;function s(r){var o=this.__data__,i=e(o,r);if(i<0)return!1;var a=o.length-1;return i==a?o.pop():n.call(o,i,1),--this.size,!0}return F1=s,F1}var D1,K3;function QZ(){if(K3)return D1;K3=1;var e=Bp();function t(n){var s=this.__data__,r=e(s,n);return r<0?void 0:s[r][1]}return D1=t,D1}var U1,x3;function eQ(){if(x3)return U1;x3=1;var e=Bp();function t(n){return e(this.__data__,n)>-1}return U1=t,U1}var j1,Y3;function tQ(){if(Y3)return j1;Y3=1;var e=Bp();function t(n,s){var r=this.__data__,o=e(r,n);return o<0?(++this.size,r.push([n,s])):r[o][1]=s,this}return j1=t,j1}var B1,X3;function zp(){if(X3)return B1;X3=1;var e=JZ(),t=ZZ(),n=QZ(),s=eQ(),r=tQ();function o(i){var a=-1,c=i==null?0:i.length;for(this.clear();++a<c;){var u=i[a];this.set(u[0],u[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=s,o.prototype.set=r,B1=o,B1}var z1,J3;function nQ(){if(J3)return z1;J3=1;var e=zp();function t(){this.__data__=new e,this.size=0}return z1=t,z1}var q1,Z3;function sQ(){if(Z3)return q1;Z3=1;function e(t){var n=this.__data__,s=n.delete(t);return this.size=n.size,s}return q1=e,q1}var H1,Q3;function rQ(){if(Q3)return H1;Q3=1;function e(t){return this.__data__.get(t)}return H1=e,H1}var V1,eC;function oQ(){if(eC)return V1;eC=1;function e(t){return this.__data__.has(t)}return V1=e,V1}var W1,tC;function iQ(){if(tC)return W1;tC=1;var e=oo(),t=e["__core-js_shared__"];return W1=t,W1}var G1,nC;function aQ(){if(nC)return G1;nC=1;var e=iQ(),t=function(){var s=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return s?"Symbol(src)_1."+s:""}();function n(s){return!!t&&t in s}return G1=n,G1}var K1,sC;function AP(){if(sC)return K1;sC=1;var e=Function.prototype,t=e.toString;function n(s){if(s!=null){try{return t.call(s)}catch{}try{return s+""}catch{}}return""}return K1=n,K1}var x1,rC;function lQ(){if(rC)return x1;rC=1;var e=jp(),t=aQ(),n=Ki(),s=AP(),r=/[\\^$.*+?()[\]{}|]/g,o=/^\[object .+?Constructor\]$/,i=Function.prototype,a=Object.prototype,c=i.toString,u=a.hasOwnProperty,f=RegExp("^"+c.call(u).replace(r,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function h(v){if(!n(v)||t(v))return!1;var y=e(v)?f:o;return y.test(s(v))}return x1=h,x1}var Y1,oC;function cQ(){if(oC)return Y1;oC=1;function e(t,n){return t==null?void 0:t[n]}return Y1=e,Y1}var X1,iC;function Wa(){if(iC)return X1;iC=1;var e=lQ(),t=cQ();function n(s,r){var o=t(s,r);return e(o)?o:void 0}return X1=n,X1}var J1,aC;function h2(){if(aC)return J1;aC=1;var e=Wa(),t=oo(),n=e(t,"Map");return J1=n,J1}var Z1,lC;function qp(){if(lC)return Z1;lC=1;var e=Wa(),t=e(Object,"create");return Z1=t,Z1}var Q1,cC;function uQ(){if(cC)return Q1;cC=1;var e=qp();function t(){this.__data__=e?e(null):{},this.size=0}return Q1=t,Q1}var ev,uC;function dQ(){if(uC)return ev;uC=1;function e(t){var n=this.has(t)&&delete this.__data__[t];return this.size-=n?1:0,n}return ev=e,ev}var tv,dC;function fQ(){if(dC)return tv;dC=1;var e=qp(),t="__lodash_hash_undefined__",n=Object.prototype,s=n.hasOwnProperty;function r(o){var i=this.__data__;if(e){var a=i[o];return a===t?void 0:a}return s.call(i,o)?i[o]:void 0}return tv=r,tv}var nv,fC;function hQ(){if(fC)return nv;fC=1;var e=qp(),t=Object.prototype,n=t.hasOwnProperty;function s(r){var o=this.__data__;return e?o[r]!==void 0:n.call(o,r)}return nv=s,nv}var sv,hC;function pQ(){if(hC)return sv;hC=1;var e=qp(),t="__lodash_hash_undefined__";function n(s,r){var o=this.__data__;return this.size+=this.has(s)?0:1,o[s]=e&&r===void 0?t:r,this}return sv=n,sv}var rv,pC;function mQ(){if(pC)return rv;pC=1;var e=uQ(),t=dQ(),n=fQ(),s=hQ(),r=pQ();function o(i){var a=-1,c=i==null?0:i.length;for(this.clear();++a<c;){var u=i[a];this.set(u[0],u[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=s,o.prototype.set=r,rv=o,rv}var ov,mC;function gQ(){if(mC)return ov;mC=1;var e=mQ(),t=zp(),n=h2();function s(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}return ov=s,ov}var iv,gC;function vQ(){if(gC)return iv;gC=1;function e(t){var n=typeof t;return n=="string"||n=="number"||n=="symbol"||n=="boolean"?t!=="__proto__":t===null}return iv=e,iv}var av,vC;function Hp(){if(vC)return av;vC=1;var e=vQ();function t(n,s){var r=n.__data__;return e(s)?r[typeof s=="string"?"string":"hash"]:r.map}return av=t,av}var lv,bC;function bQ(){if(bC)return lv;bC=1;var e=Hp();function t(n){var s=e(this,n).delete(n);return this.size-=s?1:0,s}return lv=t,lv}var cv,yC;function yQ(){if(yC)return cv;yC=1;var e=Hp();function t(n){return e(this,n).get(n)}return cv=t,cv}var uv,_C;function _Q(){if(_C)return uv;_C=1;var e=Hp();function t(n){return e(this,n).has(n)}return uv=t,uv}var dv,wC;function wQ(){if(wC)return dv;wC=1;var e=Hp();function t(n,s){var r=e(this,n),o=r.size;return r.set(n,s),this.size+=r.size==o?0:1,this}return dv=t,dv}var fv,SC;function p2(){if(SC)return fv;SC=1;var e=gQ(),t=bQ(),n=yQ(),s=_Q(),r=wQ();function o(i){var a=-1,c=i==null?0:i.length;for(this.clear();++a<c;){var u=i[a];this.set(u[0],u[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=s,o.prototype.set=r,fv=o,fv}var hv,$C;function SQ(){if($C)return hv;$C=1;var e=zp(),t=h2(),n=p2(),s=200;function r(o,i){var a=this.__data__;if(a instanceof e){var c=a.__data__;if(!t||c.length<s-1)return c.push([o,i]),this.size=++a.size,this;a=this.__data__=new n(c)}return a.set(o,i),this.size=a.size,this}return hv=r,hv}var pv,kC;function m2(){if(kC)return pv;kC=1;var e=zp(),t=nQ(),n=sQ(),s=rQ(),r=oQ(),o=SQ();function i(a){var c=this.__data__=new e(a);this.size=c.size}return i.prototype.clear=t,i.prototype.delete=n,i.prototype.get=s,i.prototype.has=r,i.prototype.set=o,pv=i,pv}var mv,CC;function $Q(){if(CC)return mv;CC=1;var e="__lodash_hash_undefined__";function t(n){return this.__data__.set(n,e),this}return mv=t,mv}var gv,TC;function kQ(){if(TC)return gv;TC=1;function e(t){return this.__data__.has(t)}return gv=e,gv}var vv,AC;function CQ(){if(AC)return vv;AC=1;var e=p2(),t=$Q(),n=kQ();function s(r){var o=-1,i=r==null?0:r.length;for(this.__data__=new e;++o<i;)this.add(r[o])}return s.prototype.add=s.prototype.push=t,s.prototype.has=n,vv=s,vv}var bv,EC;function TQ(){if(EC)return bv;EC=1;function e(t,n){for(var s=-1,r=t==null?0:t.length;++s<r;)if(n(t[s],s,t))return!0;return!1}return bv=e,bv}var yv,IC;function AQ(){if(IC)return yv;IC=1;function e(t,n){return t.has(n)}return yv=e,yv}var _v,PC;function EP(){if(PC)return _v;PC=1;var e=CQ(),t=TQ(),n=AQ(),s=1,r=2;function o(i,a,c,u,f,h){var v=c&s,y=i.length,S=a.length;if(y!=S&&!(v&&S>y))return!1;var k=h.get(i),I=h.get(a);if(k&&I)return k==a&&I==i;var C=-1,$=!0,P=c&r?new e:void 0;for(h.set(i,a),h.set(a,i);++C<y;){var A=i[C],R=a[C];if(u)var B=v?u(R,A,C,a,i,h):u(A,R,C,i,a,h);if(B!==void 0){if(B)continue;$=!1;break}if(P){if(!t(a,function(N,W){if(!n(P,W)&&(A===N||f(A,N,c,u,h)))return P.push(W)})){$=!1;break}}else if(!(A===R||f(A,R,c,u,h))){$=!1;break}}return h.delete(i),h.delete(a),$}return _v=o,_v}var wv,LC;function IP(){if(LC)return wv;LC=1;var e=oo(),t=e.Uint8Array;return wv=t,wv}var Sv,OC;function EQ(){if(OC)return Sv;OC=1;function e(t){var n=-1,s=Array(t.size);return t.forEach(function(r,o){s[++n]=[o,r]}),s}return Sv=e,Sv}var $v,RC;function IQ(){if(RC)return $v;RC=1;function e(t){var n=-1,s=Array(t.size);return t.forEach(function(r){s[++n]=r}),s}return $v=e,$v}var kv,MC;function PQ(){if(MC)return kv;MC=1;var e=Mp(),t=IP(),n=_d(),s=EP(),r=EQ(),o=IQ(),i=1,a=2,c="[object Boolean]",u="[object Date]",f="[object Error]",h="[object Map]",v="[object Number]",y="[object RegExp]",S="[object Set]",k="[object String]",I="[object Symbol]",C="[object ArrayBuffer]",$="[object DataView]",P=e?e.prototype:void 0,A=P?P.valueOf:void 0;function R(B,N,W,V,U,ie,le){switch(W){case $:if(B.byteLength!=N.byteLength||B.byteOffset!=N.byteOffset)return!1;B=B.buffer,N=N.buffer;case C:return!(B.byteLength!=N.byteLength||!ie(new t(B),new t(N)));case c:case u:case v:return n(+B,+N);case f:return B.name==N.name&&B.message==N.message;case y:case k:return B==N+"";case h:var Pe=r;case S:var qe=V&i;if(Pe||(Pe=o),B.size!=N.size&&!qe)return!1;var Ke=le.get(B);if(Ke)return Ke==N;V|=a,le.set(B,N);var Ge=s(Pe(B),Pe(N),V,U,ie,le);return le.delete(B),Ge;case I:if(A)return A.call(B)==A.call(N)}return!1}return kv=R,kv}var Cv,NC;function LQ(){if(NC)return Cv;NC=1;function e(t,n){for(var s=-1,r=n.length,o=t.length;++s<r;)t[o+s]=n[s];return t}return Cv=e,Cv}var Tv,FC;function OQ(){if(FC)return Tv;FC=1;var e=LQ(),t=Qs();function n(s,r,o){var i=r(s);return t(s)?i:e(i,o(s))}return Tv=n,Tv}var Av,DC;function RQ(){if(DC)return Av;DC=1;function e(){return[]}return Av=e,Av}var Ev,UC;function MQ(){if(UC)return Ev;UC=1;var e=wP(),t=RQ(),n=Object.prototype,s=n.propertyIsEnumerable,r=Object.getOwnPropertySymbols,o=r?function(i){return i==null?[]:(i=Object(i),e(r(i),function(a){return s.call(i,a)}))}:t;return Ev=o,Ev}var Iv,jC;function NQ(){if(jC)return Iv;jC=1;var e=OQ(),t=MQ(),n=d2();function s(r){return e(r,n,t)}return Iv=s,Iv}var Pv,BC;function FQ(){if(BC)return Pv;BC=1;var e=NQ(),t=1,n=Object.prototype,s=n.hasOwnProperty;function r(o,i,a,c,u,f){var h=a&t,v=e(o),y=v.length,S=e(i),k=S.length;if(y!=k&&!h)return!1;for(var I=y;I--;){var C=v[I];if(!(h?C in i:s.call(i,C)))return!1}var $=f.get(o),P=f.get(i);if($&&P)return $==i&&P==o;var A=!0;f.set(o,i),f.set(i,o);for(var R=h;++I<y;){C=v[I];var B=o[C],N=i[C];if(c)var W=h?c(N,B,C,i,o,f):c(B,N,C,o,i,f);if(!(W===void 0?B===N||u(B,N,a,c,f):W)){A=!1;break}R||(R=C=="constructor")}if(A&&!R){var V=o.constructor,U=i.constructor;V!=U&&"constructor"in o&&"constructor"in i&&!(typeof V=="function"&&V instanceof V&&typeof U=="function"&&U instanceof U)&&(A=!1)}return f.delete(o),f.delete(i),A}return Pv=r,Pv}var Lv,zC;function DQ(){if(zC)return Lv;zC=1;var e=Wa(),t=oo(),n=e(t,"DataView");return Lv=n,Lv}var Ov,qC;function UQ(){if(qC)return Ov;qC=1;var e=Wa(),t=oo(),n=e(t,"Promise");return Ov=n,Ov}var Rv,HC;function jQ(){if(HC)return Rv;HC=1;var e=Wa(),t=oo(),n=e(t,"Set");return Rv=n,Rv}var Mv,VC;function BQ(){if(VC)return Mv;VC=1;var e=Wa(),t=oo(),n=e(t,"WeakMap");return Mv=n,Mv}var Nv,WC;function PP(){if(WC)return Nv;WC=1;var e=DQ(),t=h2(),n=UQ(),s=jQ(),r=BQ(),o=ac(),i=AP(),a="[object Map]",c="[object Object]",u="[object Promise]",f="[object Set]",h="[object WeakMap]",v="[object DataView]",y=i(e),S=i(t),k=i(n),I=i(s),C=i(r),$=o;return(e&&$(new e(new ArrayBuffer(1)))!=v||t&&$(new t)!=a||n&&$(n.resolve())!=u||s&&$(new s)!=f||r&&$(new r)!=h)&&($=function(P){var A=o(P),R=A==c?P.constructor:void 0,B=R?i(R):"";if(B)switch(B){case y:return v;case S:return a;case k:return u;case I:return f;case C:return h}return A}),Nv=$,Nv}var Fv,GC;function zQ(){if(GC)return Fv;GC=1;var e=m2(),t=EP(),n=PQ(),s=FQ(),r=PP(),o=Qs(),i=Fp(),a=Dp(),c=1,u="[object Arguments]",f="[object Array]",h="[object Object]",v=Object.prototype,y=v.hasOwnProperty;function S(k,I,C,$,P,A){var R=o(k),B=o(I),N=R?f:r(k),W=B?f:r(I);N=N==u?h:N,W=W==u?h:W;var V=N==h,U=W==h,ie=N==W;if(ie&&i(k)){if(!i(I))return!1;R=!0,V=!1}if(ie&&!V)return A||(A=new e),R||a(k)?t(k,I,C,$,P,A):n(k,I,N,C,$,P,A);if(!(C&c)){var le=V&&y.call(k,"__wrapped__"),Pe=U&&y.call(I,"__wrapped__");if(le||Pe){var qe=le?k.value():k,Ke=Pe?I.value():I;return A||(A=new e),P(qe,Ke,C,$,A)}}return ie?(A||(A=new e),s(k,I,C,$,P,A)):!1}return Fv=S,Fv}var Dv,KC;function g2(){if(KC)return Dv;KC=1;var e=zQ(),t=Ha();function n(s,r,o,i,a){return s===r?!0:s==null||r==null||!t(s)&&!t(r)?s!==s&&r!==r:e(s,r,o,i,n,a)}return Dv=n,Dv}var Uv,xC;function qQ(){if(xC)return Uv;xC=1;var e=m2(),t=g2(),n=1,s=2;function r(o,i,a,c){var u=a.length,f=u,h=!c;if(o==null)return!f;for(o=Object(o);u--;){var v=a[u];if(h&&v[2]?v[1]!==o[v[0]]:!(v[0]in o))return!1}for(;++u<f;){v=a[u];var y=v[0],S=o[y],k=v[1];if(h&&v[2]){if(S===void 0&&!(y in o))return!1}else{var I=new e;if(c)var C=c(S,k,y,o,i,I);if(!(C===void 0?t(k,S,n|s,c,I):C))return!1}}return!0}return Uv=r,Uv}var jv,YC;function LP(){if(YC)return jv;YC=1;var e=Ki();function t(n){return n===n&&!e(n)}return jv=t,jv}var Bv,XC;function HQ(){if(XC)return Bv;XC=1;var e=LP(),t=d2();function n(s){for(var r=t(s),o=r.length;o--;){var i=r[o],a=s[i];r[o]=[i,a,e(a)]}return r}return Bv=n,Bv}var zv,JC;function OP(){if(JC)return zv;JC=1;function e(t,n){return function(s){return s==null?!1:s[t]===n&&(n!==void 0||t in Object(s))}}return zv=e,zv}var qv,ZC;function VQ(){if(ZC)return qv;ZC=1;var e=qQ(),t=HQ(),n=OP();function s(r){var o=t(r);return o.length==1&&o[0][2]?n(o[0][0],o[0][1]):function(i){return i===r||e(i,r,o)}}return qv=s,qv}var Hv,QC;function v2(){if(QC)return Hv;QC=1;var e=ac(),t=Ha(),n="[object Symbol]";function s(r){return typeof r=="symbol"||t(r)&&e(r)==n}return Hv=s,Hv}var Vv,e4;function b2(){if(e4)return Vv;e4=1;var e=Qs(),t=v2(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,s=/^\w*$/;function r(o,i){if(e(o))return!1;var a=typeof o;return a=="number"||a=="symbol"||a=="boolean"||o==null||t(o)?!0:s.test(o)||!n.test(o)||i!=null&&o in Object(i)}return Vv=r,Vv}var Wv,t4;function WQ(){if(t4)return Wv;t4=1;var e=p2(),t="Expected a function";function n(s,r){if(typeof s!="function"||r!=null&&typeof r!="function")throw new TypeError(t);var o=function(){var i=arguments,a=r?r.apply(this,i):i[0],c=o.cache;if(c.has(a))return c.get(a);var u=s.apply(this,i);return o.cache=c.set(a,u)||c,u};return o.cache=new(n.Cache||e),o}return n.Cache=e,Wv=n,Wv}var Gv,n4;function GQ(){if(n4)return Gv;n4=1;var e=WQ(),t=500;function n(s){var r=e(s,function(i){return o.size===t&&o.clear(),i}),o=r.cache;return r}return Gv=n,Gv}var Kv,s4;function KQ(){if(s4)return Kv;s4=1;var e=GQ(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,s=e(function(r){var o=[];return r.charCodeAt(0)===46&&o.push(""),r.replace(t,function(i,a,c,u){o.push(c?u.replace(n,"$1"):a||i)}),o});return Kv=s,Kv}var xv,r4;function RP(){if(r4)return xv;r4=1;function e(t,n){for(var s=-1,r=t==null?0:t.length,o=Array(r);++s<r;)o[s]=n(t[s],s,t);return o}return xv=e,xv}var Yv,o4;function xQ(){if(o4)return Yv;o4=1;var e=Mp(),t=RP(),n=Qs(),s=v2(),r=e?e.prototype:void 0,o=r?r.toString:void 0;function i(a){if(typeof a=="string")return a;if(n(a))return t(a,i)+"";if(s(a))return o?o.call(a):"";var c=a+"";return c=="0"&&1/a==-1/0?"-0":c}return Yv=i,Yv}var Xv,i4;function MP(){if(i4)return Xv;i4=1;var e=xQ();function t(n){return n==null?"":e(n)}return Xv=t,Xv}var Jv,a4;function NP(){if(a4)return Jv;a4=1;var e=Qs(),t=b2(),n=KQ(),s=MP();function r(o,i){return e(o)?o:t(o,i)?[o]:n(s(o))}return Jv=r,Jv}var Zv,l4;function Vp(){if(l4)return Zv;l4=1;var e=v2();function t(n){if(typeof n=="string"||e(n))return n;var s=n+"";return s=="0"&&1/n==-1/0?"-0":s}return Zv=t,Zv}var Qv,c4;function FP(){if(c4)return Qv;c4=1;var e=NP(),t=Vp();function n(s,r){r=e(r,s);for(var o=0,i=r.length;s!=null&&o<i;)s=s[t(r[o++])];return o&&o==i?s:void 0}return Qv=n,Qv}var eb,u4;function DP(){if(u4)return eb;u4=1;var e=FP();function t(n,s,r){var o=n==null?void 0:e(n,s);return o===void 0?r:o}return eb=t,eb}var tb,d4;function YQ(){if(d4)return tb;d4=1;function e(t,n){return t!=null&&n in Object(t)}return tb=e,tb}var nb,f4;function XQ(){if(f4)return nb;f4=1;var e=NP(),t=Np(),n=Qs(),s=c2(),r=u2(),o=Vp();function i(a,c,u){c=e(c,a);for(var f=-1,h=c.length,v=!1;++f<h;){var y=o(c[f]);if(!(v=a!=null&&u(a,y)))break;a=a[y]}return v||++f!=h?v:(h=a==null?0:a.length,!!h&&r(h)&&s(y,h)&&(n(a)||t(a)))}return nb=i,nb}var sb,h4;function JQ(){if(h4)return sb;h4=1;var e=YQ(),t=XQ();function n(s,r){return s!=null&&t(s,r,e)}return sb=n,sb}var rb,p4;function ZQ(){if(p4)return rb;p4=1;var e=g2(),t=DP(),n=JQ(),s=b2(),r=LP(),o=OP(),i=Vp(),a=1,c=2;function u(f,h){return s(f)&&r(h)?o(i(f),h):function(v){var y=t(v,f);return y===void 0&&y===h?n(v,f):e(h,y,a|c)}}return rb=u,rb}var ob,m4;function y2(){if(m4)return ob;m4=1;function e(t){return t}return ob=e,ob}var ib,g4;function QQ(){if(g4)return ib;g4=1;function e(t){return function(n){return n==null?void 0:n[t]}}return ib=e,ib}var ab,v4;function eee(){if(v4)return ab;v4=1;var e=FP();function t(n){return function(s){return e(s,n)}}return ab=t,ab}var lb,b4;function tee(){if(b4)return lb;b4=1;var e=QQ(),t=eee(),n=b2(),s=Vp();function r(o){return n(o)?e(s(o)):t(o)}return lb=r,lb}var cb,y4;function _2(){if(y4)return cb;y4=1;var e=VQ(),t=ZQ(),n=y2(),s=Qs(),r=tee();function o(i){return typeof i=="function"?i:i==null?n:typeof i=="object"?s(i)?t(i[0],i[1]):e(i):r(i)}return cb=o,cb}var ub,_4;function nee(){if(_4)return ub;_4=1;var e=wP(),t=XZ(),n=_2(),s=Qs();function r(o,i){var a=s(o)?e:t;return a(o,n(i,3))}return ub=r,ub}var see=nee();const ree=bs(see),qi=vs("reports",{state:()=>({reportModal:{userId:null,statuses:[],preTickedIds:[],activated:!1},reports:{}}),actions:{openUserReportingModal({userId:e,statusIds:t=[]}){const n=t.map(o=>window.vuex.state.statuses.allStatusesObject[o]),s=t,r=n.concat(ree(window.vuex.state.statuses.allStatuses,o=>o.user.id===e&&!s.includes(o.id)));this.reportModal.userId=e,this.reportModal.statuses=r,this.reportModal.preTickedIds=s,this.reportModal.activated=!0},closeUserReportingModal(){this.reportModal.activated=!1},setReportState({id:e,state:t}){const n=this.reports[e].state;this.reports[e].state=t,window.vuex.state.api.backendInteractor.setReportState({id:e,state:t}).catch(s=>{console.error("Failed to set report state",s),Xe().pushGlobalNotice({level:"error",messageKey:"general.generic_error_message",messageArgs:[s.message],timeout:5e3}),this.reports[e].state=n})},addReport(e){this.reports[e.id]=e}}}),oee=Object.freeze(Object.defineProperty({__proto__:null,useReportsStore:qi},Symbol.toStringTag,{value:"Module"})),iee=()=>({desktopNotificationSilence:!0,maxId:0,minId:Number.POSITIVE_INFINITY,data:[],idStore:{},loading:!1}),w4=()=>({...iee()}),aee={state:w4(),mutations:{addNewNotifications(e,{notifications:t}){t.forEach(n=>{e.data.push(n),e.idStore[n.id]=n})},clearNotifications(e){const t=w4();Object.keys(e).forEach(n=>{e[n]=t[n]})},updateNotificationsMinMaxId(e,t){e.maxId=t>e.maxId?t:e.maxId,e.minId=t<e.minId?t:e.minId},setNotificationsLoading(e,{value:t}){e.loading=t},setNotificationsSilence(e,{value:t}){e.desktopNotificationSilence=t},markNotificationsAsSeen(e){e.data.forEach(t=>{t.seen=!0})},markSingleNotificationAsSeen(e,{id:t}){const n=e.idStore[t];n&&(n.seen=!0)},dismissNotification(e,{id:t}){e.data=e.data.filter(n=>n.id!==t),delete e.idStore[t]},updateNotification(e,{id:t,updater:n}){const s=e.idStore[t];s&&n(s)}},actions:{addNewNotifications(e,{notifications:t}){const{commit:n,dispatch:s,state:r,rootState:o}=e,i=t.filter(c=>yz(c)?!0:(console.error("Invalid notification:",c),n("updateNotificationsMinMaxId",c.id),!1)),a=i.filter(c=>cd(c.type)&&c.status);n("addNewStatuses",{statuses:a.map(c=>c.status)}),a.forEach(c=>{const u=c.status.id,f=o.statuses.allStatusesObject[u];f&&(c.status=f)}),i.forEach(c=>{c.type==="pleroma:report"&&qi().addReport(c.report),c.type==="pleroma:emoji_reaction"&&s("fetchEmojiReactionsBy",c.status.id),r.idStore.hasOwnProperty(c.id)?c.seen&&(r.idStore[c.id].seen=!0):(n("updateNotificationsMinMaxId",c.id),n("addNewNotifications",{notifications:[c]}),Sz(e,Object.values(_n().prefsStorage.simple.muteFilters)))})},notificationClicked({state:e,dispatch:t},{id:n}){const s=e.idStore[n],{type:r,seen:o}=s;if(!o)switch(r){case"mention":case"pleroma:report":case"follow_request":break;default:t("markSingleNotificationAsSeen",{id:n})}},setNotificationsLoading({commit:e},{value:t}){e("setNotificationsLoading",{value:t})},setNotificationsSilence({commit:e},{value:t}){e("setNotificationsSilence",{value:t})},markNotificationsAsSeen({rootState:e,state:t,commit:n}){n("markNotificationsAsSeen"),Ln.markNotificationsAsSeen({id:t.maxId,credentials:e.users.currentUser.credentials}).then(()=>{fz()})},markSingleNotificationAsSeen({rootState:e,commit:t},{id:n}){t("markSingleNotificationAsSeen",{id:n}),Ln.markNotificationsAsSeen({single:!0,id:n,credentials:e.users.currentUser.credentials}).then(()=>{dz(e,{id:n})})},dismissNotificationLocal({commit:e},{id:t}){e("dismissNotification",{id:t})},dismissNotification({rootState:e,commit:t},{id:n}){t("dismissNotification",{id:n}),e.api.backendInteractor.dismissNotification({id:n})},updateNotification({commit:e},{id:t,updater:n}){e("updateNotification",{id:t,updater:n})}}},Ga=(e,t)=>{let n=!1,s=null;const r=()=>{const i=e();if(!(i&&i.finally)){console.warn("promiseInterval: promise call did not return a promise, stopping interval.");return}i.finally(()=>{n||(s=window.setTimeout(r,t))})},o=()=>{n=!0,window.clearTimeout(s)};return s=window.setTimeout(r,t),{stop:o}},lee=({store:e,statuses:t,timeline:n,showImmediately:s,userId:r,listId:o,pagination:i})=>{const a=Z.camelCase(n);e.dispatch("addNewStatuses",{timeline:a,userId:r,listId:o,statuses:t,showImmediately:s,pagination:i})},my=({store:e,credentials:t,timeline:n="friends",older:s=!1,showImmediately:r=!1,userId:o=!1,listId:i=!1,statusId:a=!1,bookmarkFolderId:c=!1,tag:u=!1,until:f,since:h})=>{const v={timeline:n,credentials:t},y=e.rootState||e.state,{getters:S}=e,k=y.statuses.timelines[Z.camelCase(n)],{hideMutedPosts:I,replyVisibility:C}=S.mergedConfig,$=!!y.users.currentUser;s?v.until=f||k.minId:h===void 0?v.since=k.maxId:h!==null&&(v.since=h),v.userId=o,v.listId=i,v.statusId=a,v.bookmarkFolderId=c,v.tag=u,v.withMuted=!I,$&&["friends","public","publicAndExternal","bubble"].includes(n)&&(v.replyVisibility=C);const P=k.statuses.length;return Ln.fetchTimeline(v).then(A=>{if(A.errors){if(n==="favorites"){y.instance.pleromaPublicFavouritesAvailable=!1;return}throw new Error(`${A.status} ${A.statusText}`)}const{data:R,pagination:B}=A;return!s&&R.length>=20&&!k.loading&&P>0&&e.dispatch("queueFlush",{timeline:n,id:k.maxId}),lee({store:e,statuses:R,timeline:n,showImmediately:r,userId:o,listId:i,pagination:B}),{statuses:R,pagination:B}}).catch(A=>{Xe().pushGlobalNotice({level:"error",messageKey:"timeline.error",messageArgs:[A.message],timeout:5e3})})},cee=({timeline:e="friends",credentials:t,store:n,userId:s=!1,listId:r=!1,statusId:o=!1,bookmarkFolderId:i=!1,tag:a=!1})=>{const u=(n.rootState||n.state).statuses.timelines[Z.camelCase(e)],f=u.visibleStatuses.length===0;return u.userId=s,u.listId=r,u.bookmarkFolderId=i,my({timeline:e,credentials:t,store:n,showImmediately:f,userId:s,listId:r,statusId:o,bookmarkFolderId:i,tag:a}),Ga(()=>my({timeline:e,credentials:t,store:n,userId:s,listId:r,statusId:o,bookmarkFolderId:i,tag:a}),1e4)},Ih={fetchAndUpdate:my,startFetching:cee},uee=({store:e,notifications:t,older:n})=>{e.dispatch("addNewNotifications",{notifications:t,older:n})},gy=new Set(["mention","status","favourite","reblog","follow","follow_request","move","poll","pleroma:emoji_reaction","pleroma:report"]),UP=({store:e,credentials:t,older:n=!1,since:s})=>{const r={credentials:t},{getters:o}=e,i=e.rootState||e.state,a=i.notifications,c=o.mergedConfig.hideMutedPosts;if(i.instance.pleromaChatMessagesAvailable&&gy.add("pleroma:chat_mention"),r.includeTypes=gy,r.withMuted=!c,r.timeline="notifications",n)return a.minId!==Number.POSITIVE_INFINITY&&(r.until=a.minId),Qf({store:e,args:r,older:n});{s===void 0&&a.maxId!==Number.POSITIVE_INFINITY?r.since=a.maxId:s!==null&&(r.since=s);const u=Qf({store:e,args:r,older:n}),f=a.data,h=f.filter(y=>y.seen).map(y=>y.id),v=f.filter(y=>!y.seen).map(y=>y.id);if(h.length>0&&h.length>0){const y=Math.min(...v);y!==1/0&&(r.since=!1,r.minId=y-1,Qf({store:e,args:r,older:n}))}return u}},Qf=({store:e,args:t,older:n})=>Ln.fetchTimeline(t).then(s=>{if(s.errors){if(s.status===400&&s.statusText.includes("Invalid value for enum"))return s.statusText.matchAll(/(\w+) - Invalid value for enum./g).toArray().map(o=>o[1]).forEach(o=>gy.delete(o)),Qf({store:e,args:t,older:n});throw new Error(`${s.status} ${s.statusText}`)}const r=s.data;return uee({store:e,notifications:r,older:n}),r}).catch(s=>{Xe().pushGlobalNotice({level:"error",messageKey:"notifications.error",messageArgs:[s.message],timeout:5e3}),console.error(s)}),dee=({credentials:e,store:t})=>{setTimeout(()=>t.dispatch("setNotificationsSilence",!1),1e4);const n=()=>UP({credentials:e,store:t});return n(),Ga(n,1e4)},vy={fetchAndUpdate:UP,startFetching:dee},fee=({store:e,credentials:t})=>Ln.fetchFollowRequests({credentials:t}).then(n=>{e.commit("setFollowRequests",n),e.commit("addNewUsers",n)},()=>{}).catch(()=>{}),hee=({credentials:e,store:t})=>{const n=()=>fee({credentials:e,store:t});return n(),Ga(n,1e4)},pee={startFetching:hee},Fn=vs("lists",{state:()=>({allLists:[],allListsObject:{}}),getters:{findListTitle(){return e=>{if(this.allListsObject[e])return this.allListsObject[e].title}},findListAccounts(){return e=>[...this.allListsObject[e].accountIds]}},actions:{setLists(e){this.allLists=e},createList({title:e}){return window.vuex.state.api.backendInteractor.createList({title:e}).then(t=>(this.setList({listId:t.id,title:e}),t))},fetchList({listId:e}){return window.vuex.state.api.backendInteractor.getList({listId:e}).then(t=>this.setList({listId:t.id,title:t.title}))},fetchListAccounts({listId:e}){return window.vuex.state.api.backendInteractor.getListAccounts({listId:e}).then(t=>{this.allListsObject[e]||(this.allListsObject[e]={accountIds:[]}),this.allListsObject[e].accountIds=t})},setList({listId:e,title:t}){this.allListsObject[e]||(this.allListsObject[e]={accountIds:[]}),this.allListsObject[e].title=t;const n=Z.find(this.allLists,{id:e});n?n.title=t:this.allLists.push({id:e,title:t})},setListAccounts({listId:e,accountIds:t}){var o;const n=((o=this.allListsObject[e])==null?void 0:o.accountIds)||[],s=t.filter(i=>!n.includes(i)),r=n.filter(i=>!t.includes(i));this.allListsObject[e]||(this.allListsObject[e]={accountIds:[]}),this.allListsObject[e].accountIds=t,s.length>0&&window.vuex.state.api.backendInteractor.addAccountsToList({listId:e,accountIds:s}),r.length>0&&window.vuex.state.api.backendInteractor.removeAccountsFromList({listId:e,accountIds:r})},addListAccount({listId:e,accountId:t}){return window.vuex.state.api.backendInteractor.addAccountsToList({listId:e,accountIds:[t]}).then(n=>(this.allListsObject[e]||(this.allListsObject[e]={accountIds:[]}),this.allListsObject[e].accountIds.push(t),n))},removeListAccount({listId:e,accountId:t}){return window.vuex.state.api.backendInteractor.removeAccountsFromList({listId:e,accountIds:[t]}).then(n=>{this.allListsObject[e]||(this.allListsObject[e]={accountIds:[]});const{accountIds:s}=this.allListsObject[e],r=new Set(s);return r.delete(t),this.allListsObject[e].accountIds=[...r],n})},deleteList({listId:e}){window.vuex.state.api.backendInteractor.deleteList({listId:e}),delete this.allListsObject[e],Z.remove(this.allLists,t=>t.id===e)}}}),mee=Object.freeze(Object.defineProperty({__proto__:null,useListsStore:Fn},Symbol.toStringTag,{value:"Module"})),gee=({credentials:e})=>Ln.fetchLists({credentials:e}).then(t=>{Fn().setLists(t)},()=>{}).catch(()=>{}),vee=({credentials:e,store:t})=>{const n=()=>gee({credentials:e});return n(),Ga(n,24e4)},bee={startFetching:vee},no=vs("bookmarkFolders",{state:()=>({allFolders:[]}),getters:{findBookmarkFolderName(){return e=>{const t=this.allFolders.find(n=>n.id===e);if(t)return t.name}}},actions:{setBookmarkFolders(e){this.allFolders=e},setBookmarkFolder({id:e,name:t,emoji:n,emoji_url:s}){const r=Z.find(this.allFolders,{id:e});r?(r.name=t,r.emoji=n,r.emoji_url=s):this.allFolders.push({id:e,name:t,emoji:n,emoji_url:s})},createBookmarkFolder({name:e,emoji:t}){return window.vuex.state.api.backendInteractor.createBookmarkFolder({name:e,emoji:t}).then(n=>(this.setBookmarkFolder(n),n))},updateBookmarkFolder({folderId:e,name:t,emoji:n}){return window.vuex.state.api.backendInteractor.updateBookmarkFolder({folderId:e,name:t,emoji:n}).then(s=>(this.setBookmarkFolder(s),s))},deleteBookmarkFolder({folderId:e}){window.vuex.state.api.backendInteractor.deleteBookmarkFolder({folderId:e}),Z.remove(this.allFolders,t=>t.id===e)}}}),yee=Object.freeze(Object.defineProperty({__proto__:null,useBookmarkFoldersStore:no},Symbol.toStringTag,{value:"Module"})),_ee=({credentials:e})=>Ln.fetchBookmarkFolders({credentials:e}).then(t=>{no().setBookmarkFolders(t)},()=>{}).catch(()=>{}),wee=({credentials:e,store:t})=>{const n=()=>_ee({credentials:e});return n(),Ga(n,24e4)},See={startFetching:wee},Ph=e=>({startFetchingTimeline({timeline:t,store:n,userId:s=!1,listId:r=!1,statusId:o=!1,bookmarkFolderId:i=!1,tag:a}){return Ih.startFetching({timeline:t,store:n,credentials:e,userId:s,listId:r,statusId:o,bookmarkFolderId:i,tag:a})},fetchTimeline(t){return Ih.fetchAndUpdate({...t,credentials:e})},startFetchingNotifications({store:t}){return vy.startFetching({store:t,credentials:e})},fetchNotifications(t){return vy.fetchAndUpdate({...t,credentials:e})},startFetchingFollowRequests({store:t}){return pee.startFetching({store:t,credentials:e})},startFetchingLists({store:t}){return bee.startFetching({store:t,credentials:e})},startFetchingBookmarkFolders({store:t}){return See.startFetching({store:t,credentials:e})},startUserSocket({store:t}){const n=t.rootState.instance.server.replace("http","ws"),s=EW({},n);return LW({url:s,id:"Unified",credentials:e})},...Object.entries(Ln).reduce((t,[n,s])=>({...t,[n]:r=>s({credentials:e,...r})}),{}),verifyCredentials:Ln.verifyCredentials}),Lh=()=>window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth,Oh=()=>window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight,jP=`${window.location.origin}/oauth-callback`,w2=async e=>{if(e.ok)return e.json().catch(t=>{throw new Di(e.status,t,{},e)});throw new Di(e.status,await e.text(),{},e)},$ee=e=>{const t=`${e}/api/v1/apps`,n=new window.FormData;return n.append("client_name","PleromaFE"),n.append("website","https://pleroma.social"),n.append("redirect_uris",jP),n.append("scopes","read write follow push admin"),window.fetch(t,{method:"POST",body:n}).then(w2).then(s=>({clientId:s.client_id,clientSecret:s.client_secret}))},kee=({instance:e,appToken:t})=>window.fetch(`${e}/api/v1/apps/verify_credentials`,{method:"GET",headers:{Authorization:`Bearer ${t}`}}).then(w2),Cee=({instance:e,clientId:t})=>{const n={response_type:"code",client_id:t,redirect_uri:jP,scope:"read write follow push admin"},s=Z.reduce(n,(o,i,a)=>{const c=`${a}=${encodeURIComponent(i)}`;return o?`${o}&${c}`:c},!1),r=`${e}/oauth/authorize?${s}`;window.location.href=r},Tee=({clientId:e,clientSecret:t,instance:n,username:s,password:r})=>{const o=`${n}/oauth/token`,i=new window.FormData;return i.append("client_id",e),i.append("client_secret",t),i.append("grant_type","password"),i.append("username",s),i.append("password",r),window.fetch(o,{method:"POST",body:i}).then(a=>a.json())},Aee=({clientId:e,clientSecret:t,instance:n,code:s})=>{const r=`${n}/oauth/token`,o=new window.FormData;return o.append("client_id",e),o.append("client_secret",t),o.append("grant_type","authorization_code"),o.append("code",s),o.append("redirect_uri",`${window.location.origin}/oauth-callback`),window.fetch(r,{method:"POST",body:o}).then(i=>i.json())},Eee=({clientId:e,clientSecret:t,instance:n})=>{const s=`${n}/oauth/token`,r=new window.FormData;return r.append("client_id",e),r.append("client_secret",t),r.append("grant_type","client_credentials"),r.append("redirect_uri",`${window.location.origin}/oauth-callback`),window.fetch(s,{method:"POST",body:r}).then(w2)},Iee=({app:e,instance:t,mfaToken:n,code:s})=>{const r=`${t}/oauth/mfa/challenge`,o=new window.FormData;return o.append("client_id",e.client_id),o.append("client_secret",e.client_secret),o.append("mfa_token",n),o.append("code",s),o.append("challenge_type","totp"),window.fetch(r,{method:"POST",body:o}).then(i=>i.json())},Pee=({app:e,instance:t,mfaToken:n,code:s})=>{const r=`${t}/oauth/mfa/challenge`,o=new window.FormData;return o.append("client_id",e.client_id),o.append("client_secret",e.client_secret),o.append("mfa_token",n),o.append("code",s),o.append("challenge_type","recovery"),window.fetch(r,{method:"POST",body:o}).then(i=>i.json())},Lee=({app:e,instance:t,token:n})=>{const s=`${t}/oauth/revoke`,r=new window.FormData;return r.append("client_id",e.clientId),r.append("client_secret",e.clientSecret),r.append("token",n),window.fetch(s,{method:"POST",body:r}).then(o=>o.json())},Rh={login:Cee,getToken:Aee,getTokenWithCredentials:Tee,verifyOTPCode:Iee,verifyRecoveryCode:Pee,revokeToken:Lee},Oee=e=>e.statusCode===422||e.statusCode===400||e.statusCode===401,Ree=e=>e.statusCode===401||e.statusCode===400,Ar=vs("oauth",{state:()=>({clientId:!1,clientSecret:!1,appToken:!1,userToken:!1}),getters:{getToken(){return this.userToken||this.appToken},getUserToken(){return this.userToken}},actions:{setClientData({clientId:e,clientSecret:t}){this.clientId=e,this.clientSecret=t},setAppToken(e){this.appToken=e},setToken(e){this.userToken=e},clearToken(){this.userToken=!1},async createApp(){const{state:e}=window.vuex,t=e.instance.server,n=await $ee(t);return this.setClientData(n),n},async ensureApp(){return this.clientId&&this.clientSecret?{clientId:this.clientId,clientSecret:this.clientSecret}:this.createApp()},async getAppToken(){const{state:e}=window.vuex,t=e.instance.server,n=await Eee({clientId:this.clientId,clientSecret:this.clientSecret,instance:t});return this.setAppToken(n.access_token),n.access_token},async ensureAppToken(){const{state:e}=window.vuex;if(this.appToken)try{return await kee({instance:e.instance.server,appToken:this.appToken}),this.appToken}catch(t){if(Oee(t))this.setAppToken(!1);else throw t}try{await this.ensureApp()}catch(t){throw console.error("Cannot create app",t),t}try{return await this.getAppToken()}catch(t){if(Ree(t))return this.setClientData({clientId:!1,clientSecret:!1}),await this.createApp(),await this.getAppToken();throw console.error("Cannot get app token",t),t}}},persist:{afterLoad(e){return e.token&&!e.userToken&&(e.userToken=e.token),"token"in e&&delete e.token,e}}}),Mee=Object.freeze(Object.defineProperty({__proto__:null,useOAuthStore:Ar},Symbol.toStringTag,{value:"Module"})),es=[];for(let e=0;e<256;++e)es.push((e+256).toString(16).slice(1));function Nee(e,t=0){return(es[e[t+0]]+es[e[t+1]]+es[e[t+2]]+es[e[t+3]]+"-"+es[e[t+4]]+es[e[t+5]]+"-"+es[e[t+6]]+es[e[t+7]]+"-"+es[e[t+8]]+es[e[t+9]]+"-"+es[e[t+10]]+es[e[t+11]]+es[e[t+12]]+es[e[t+13]]+es[e[t+14]]+es[e[t+15]]).toLowerCase()}let db;const Fee=new Uint8Array(16);function Dee(){if(!db){if(typeof crypto>"u"||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");db=crypto.getRandomValues.bind(crypto)}return db(Fee)}const Uee=typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto),S4={randomUUID:Uee};function jee(e,t,n){var r;if(S4.randomUUID&&!e)return S4.randomUUID();e=e||{};const s=e.random??((r=e.rng)==null?void 0:r.call(e))??Dee();if(s.length<16)throw new Error("Random bytes length must be >= 16");return s[6]=s[6]&15|64,s[8]=s[8]&63|128,Nee(s)}const Bee=[{field:"muteFilters",store:"server-side",migrationFlag:"configMigration",migrationNum:1,description:"Mute filters, wordfilter/regexp/etc",valueType:"complex",migration(e,t){t.config.muteWords.forEach((n,s)=>{const r=jee();e.setPreference({path:"simple.muteFilters."+r,value:{type:"word",value:n,name:n,enabled:!0,expires:null,hide:!1,order:s}})})}}],zee=(e,t,n)=>{if(!n)return!1;const s=t[n.id];return s?(Z.mergeWith(s,n,S2),{item:s,new:!1}):(e.push(n),t[n.id]=n,{item:n,new:!0})},S2=(e,t)=>{if(Z.isArray(e)&&Z.isArray(t))return e.length=t.length,Z.mergeWith(e,t,S2)},qee=()=>{const e=window.Notification;return e?e.permission==="default"?e.requestPermission():Promise.resolve(e.permission):Promise.resolve(null)},$4=(e,t)=>{const n=t.id,s=typeof t=="object"?t.expiresIn:0,r=e.state.relationships[n]||{id:n};return e.commit("updateUserRelationship",[r]),e.commit("addBlockId",n),e.rootState.api.backendInteractor.blockUser({id:n,expiresIn:s}).then(o=>{e.commit("updateUserRelationship",[o]),e.commit("addBlockId",n),e.commit("removeStatus",{timeline:"friends",userId:n}),e.commit("removeStatus",{timeline:"public",userId:n}),e.commit("removeStatus",{timeline:"publicAndExternal",userId:n})})},k4=(e,t)=>e.rootState.api.backendInteractor.unblockUser({id:t}).then(n=>e.commit("updateUserRelationship",[n])),Hee=(e,t)=>e.rootState.api.backendInteractor.removeUserFromFollowers({id:t}).then(n=>e.commit("updateUserRelationship",[n])),Vee=(e,{id:t,comment:n})=>e.rootState.api.backendInteractor.editUserNote({id:t,comment:n}).then(s=>e.commit("updateUserRelationship",[s])),C4=(e,t)=>{const n=typeof t=="object"?t.id:t,s=typeof t=="object"?t.expiresIn:0,r=e.state.relationships[n]||{id:n};return e.commit("updateUserRelationship",[r]),e.commit("addMuteId",n),e.rootState.api.backendInteractor.muteUser({id:n,expiresIn:s}).then(o=>{e.commit("updateUserRelationship",[o]),e.commit("addMuteId",n)})},T4=(e,t)=>{const n=e.state.relationships[t]||{id:t};return n.muting=!1,e.commit("updateUserRelationship",[n]),e.rootState.api.backendInteractor.unmuteUser({id:t}).then(s=>e.commit("updateUserRelationship",[s]))},Wee=(e,t)=>e.rootState.api.backendInteractor.followUser({id:t,reblogs:!1}).then(n=>{e.commit("updateUserRelationship",[n])}),Gee=(e,t)=>e.rootState.api.backendInteractor.followUser({id:t,reblogs:!0}).then(n=>e.commit("updateUserRelationship",[n])),A4=(e,t)=>e.rootState.api.backendInteractor.muteDomain({domain:t}).then(()=>e.commit("addDomainMute",t)),E4=(e,t)=>e.rootState.api.backendInteractor.unmuteDomain({domain:t}).then(()=>e.commit("removeDomainMute",t)),Kee={tagUser(e,{user:{id:t},tag:n}){const s=e.usersObject[t],o=(s.tags||[]).concat([n]);s.tags=o},untagUser(e,{user:{id:t},tag:n}){const s=e.usersObject[t],o=(s.tags||[]).filter(i=>i!==n);s.tags=o},updateRight(e,{user:{id:t},right:n,value:s}){const r=e.usersObject[t],o=r.rights;o[n]=s,r.rights=o},updateActivationStatus(e,{user:{id:t},deactivated:n}){const s=e.usersObject[t];s.deactivated=n},setCurrentUser(e,t){e.lastLoginName=t.screen_name,e.currentUser=Z.mergeWith(e.currentUser||{},t,S2)},clearCurrentUser(e){e.currentUser=!1,e.lastLoginName=!1},beginLogin(e){e.loggingIn=!0},endLogin(e){e.loggingIn=!1},saveFriendIds(e,{id:t,friendIds:n}){const s=e.usersObject[t];s.friendIds=Z.uniq(Z.concat(s.friendIds||[],n))},saveFollowerIds(e,{id:t,followerIds:n}){const s=e.usersObject[t];s.followerIds=Z.uniq(Z.concat(s.followerIds||[],n))},clearFriends(e,t){const n=e.usersObject[t];n&&(n.friendIds=[])},clearFollowers(e,t){const n=e.usersObject[t];n&&(n.followerIds=[])},addNewUsers(e,t){Z.each(t,n=>{n.relationship&&(e.relationships[n.relationship.id]=n.relationship);const s=zee(e.users,e.usersObject,n),r=s.item;s.new&&r.screen_name&&!r.screen_name.includes("@")&&(e.usersByNameObject[r.screen_name.toLowerCase()]=r)})},updateUserRelationship(e,t){t.forEach(n=>{e.relationships[n.id]=n})},updateUserInLists(e,{id:t,inLists:n}){e.usersObject[t].inLists=n},saveBlockIds(e,t){e.currentUser.blockIds=t},addBlockId(e,t){e.currentUser.blockIds.indexOf(t)===-1&&e.currentUser.blockIds.push(t)},setBlockIdsMaxId(e,t){e.currentUser.blockIdsMaxId=t},saveMuteIds(e,t){e.currentUser.muteIds=t},setMuteIdsMaxId(e,t){e.currentUser.muteIdsMaxId=t},addMuteId(e,t){e.currentUser.muteIds.indexOf(t)===-1&&e.currentUser.muteIds.push(t)},saveDomainMutes(e,t){e.currentUser.domainMutes=t},addDomainMute(e,t){e.currentUser.domainMutes.indexOf(t)===-1&&e.currentUser.domainMutes.push(t)},removeDomainMute(e,t){const n=e.currentUser.domainMutes.indexOf(t);n!==-1&&e.currentUser.domainMutes.splice(n,1)},setPinnedToUser(e,t){const n=e.usersObject[t.user.id];n.pinnedStatusIds=n.pinnedStatusIds||[];const s=n.pinnedStatusIds.indexOf(t.id);t.pinned&&s===-1?n.pinnedStatusIds.push(t.id):!t.pinned&&s!==-1&&n.pinnedStatusIds.splice(s,1)},setUserForStatus(e,t){t.user=e.usersObject[t.user.id]},setUserForNotification(e,t){t.type!=="follow"&&(t.action.user=e.usersObject[t.action.user.id]),t.from_profile=e.usersObject[t.from_profile.id]},setColor(e,{user:{id:t},highlighted:n}){const s=e.usersObject[t];s.highlight=n},signUpPending(e){e.signUpPending=!0,e.signUpErrors=[],e.signUpNotice={}},signUpSuccess(e){e.signUpPending=!1},signUpFailure(e,t){e.signUpPending=!1,e.signUpErrors=t,e.signUpNotice={}},signUpNotice(e,t){e.signUpPending=!1,e.signUpErrors=[],e.signUpNotice=t}},xee={findUser:e=>t=>e.usersObject[t],findUserByName:e=>t=>e.usersByNameObject[t.toLowerCase()],findUserByUrl:e=>t=>e.users.find(n=>n.statusnet_profile_url&&n.statusnet_profile_url.toLowerCase()===t.toLowerCase()),relationship:e=>t=>t&&e.relationships[t]||{id:t,loading:!0}},Yee={loggingIn:!1,lastLoginName:!1,currentUser:!1,users:[],usersObject:{},usersByNameObject:{},signUpPending:!1,signUpErrors:[],signUpNotice:{},relationships:{}},Xee={state:Yee,mutations:Kee,getters:xee,actions:{fetchUserIfMissing(e,t){e.getters.findUser(t)||e.dispatch("fetchUser",t)},fetchUser(e,t){return e.rootState.api.backendInteractor.fetchUser({id:t}).then(n=>(e.commit("addNewUsers",[n]),n))},fetchUserByName(e,t){return e.rootState.api.backendInteractor.fetchUserByName({name:t}).then(n=>(e.commit("addNewUsers",[n]),n))},fetchUserRelationship(e,t){e.state.currentUser&&e.rootState.api.backendInteractor.fetchUserRelationship({id:t}).then(n=>e.commit("updateUserRelationship",n))},fetchUserInLists(e,t){e.state.currentUser&&e.rootState.api.backendInteractor.fetchUserInLists({id:t}).then(n=>e.commit("updateUserInLists",{id:t,inLists:n}))},fetchBlocks(e,t){const{reset:n}=t||{},s=e.state.currentUser.blockIdsMaxId;return e.rootState.api.backendInteractor.fetchBlocks({maxId:s}).then(r=>(n?e.commit("saveBlockIds",Z.map(r,"id")):Z.map(r,"id").map(o=>e.commit("addBlockId",o)),r.length&&e.commit("setBlockIdsMaxId",Z.last(r).id),e.commit("addNewUsers",r),r))},blockUser(e,t){return $4(e,t)},unblockUser(e,t){return k4(e,t)},removeUserFromFollowers(e,t){return Hee(e,t)},blockUsers(e,t=[]){return Promise.all(t.map(n=>$4(e,n)))},unblockUsers(e,t=[]){return Promise.all(t.map(n=>k4(e,n)))},editUserNote(e,t){return Vee(e,t)},fetchMutes(e,t){const{reset:n}=t||{},s=e.state.currentUser.muteIdsMaxId;return e.rootState.api.backendInteractor.fetchMutes({maxId:s}).then(r=>(n?e.commit("saveMuteIds",Z.map(r,"id")):Z.map(r,"id").map(o=>e.commit("addMuteId",o)),r.length&&e.commit("setMuteIdsMaxId",Z.last(r).id),e.commit("addNewUsers",r),r))},muteUser(e,t){return C4(e,t)},unmuteUser(e,t){return T4(e,t)},hideReblogs(e,t){return Wee(e,t)},showReblogs(e,t){return Gee(e,t)},muteUsers(e,t=[]){return Promise.all(t.map(n=>C4(e,n)))},unmuteUsers(e,t=[]){return Promise.all(t.map(n=>T4(e,n)))},fetchDomainMutes(e){return e.rootState.api.backendInteractor.fetchDomainMutes().then(t=>(e.commit("saveDomainMutes",t),t))},muteDomain(e,t){return A4(e,t)},unmuteDomain(e,t){return E4(e,t)},muteDomains(e,t=[]){return Promise.all(t.map(n=>A4(e,n)))},unmuteDomains(e,t=[]){return Promise.all(t.map(n=>E4(e,n)))},fetchFriends({rootState:e,commit:t},n){const s=e.users.usersObject[n],r=Z.last(s.friendIds);return e.api.backendInteractor.fetchFriends({id:n,maxId:r}).then(o=>(t("addNewUsers",o),t("saveFriendIds",{id:n,friendIds:Z.map(o,"id")}),o))},fetchFollowers({rootState:e,commit:t},n){const s=e.users.usersObject[n],r=Z.last(s.followerIds);return e.api.backendInteractor.fetchFollowers({id:n,maxId:r}).then(o=>(t("addNewUsers",o),t("saveFollowerIds",{id:n,followerIds:Z.map(o,"id")}),o))},clearFriends({commit:e},t){e("clearFriends",t)},clearFollowers({commit:e},t){e("clearFollowers",t)},subscribeUser({rootState:e,commit:t},n){return e.api.backendInteractor.followUser({id:n,notify:!0}).then(s=>t("updateUserRelationship",[s]))},unsubscribeUser({rootState:e,commit:t},n){return e.api.backendInteractor.followUser({id:n,notify:!1}).then(s=>t("updateUserRelationship",[s]))},toggleActivationStatus({rootState:e,commit:t},{user:n}){(n.deactivated?e.api.backendInteractor.activateUser:e.api.backendInteractor.deactivateUser)({user:n}).then(r=>{const o=!r.is_active;t("updateActivationStatus",{user:r,deactivated:o})})},registerPushNotifications(e){const t=e.state.currentUser.credentials,n=e.rootState.instance.vapidPublicKey,s=e.rootState.config.webPushNotifications,r=e.rootState.config.notificationVisibility;cz(s,n,t,r)},unregisterPushNotifications(e){const t=e.state.currentUser.credentials;uz(t)},addNewUsers({commit:e},t){e("addNewUsers",t)},addNewStatuses(e,{statuses:t}){const n=Z.map(t,"user"),s=Z.compact(Z.map(t,"retweeted_status.user"));e.commit("addNewUsers",n),e.commit("addNewUsers",s),Z.each(t,r=>{e.commit("setUserForStatus",r),e.commit("setPinnedToUser",r)}),Z.each(Z.compact(Z.map(t,"retweeted_status")),r=>{e.commit("setUserForStatus",r),e.commit("setPinnedToUser",r)})},addNewNotifications(e,{notifications:t}){const n=Z.map(t,"from_profile"),s=Z.map(t,"target").filter(a=>a),r=t.map(a=>a.id);e.commit("addNewUsers",n),e.commit("addNewUsers",s);const o=e.rootState.notifications.idStore,i=Object.entries(o).filter(([a])=>r.includes(a)).map(([,a])=>a);Z.each(i,a=>{e.commit("setUserForNotification",a)})},searchUsers({rootState:e,commit:t},{query:n}){return e.api.backendInteractor.searchUsers({query:n}).then(s=>(t("addNewUsers",s),s))},async signUp(e,t){const n=Ar();e.commit("signUpPending");try{const s=await n.ensureAppToken(),r=await Ln.register({credentials:s,params:{...t}});return r.access_token?(e.commit("signUpSuccess"),n.setToken(r.access_token),e.dispatch("loginUser",r.access_token),"ok"):(e.commit("signUpNotice",r),"request_sent")}catch(s){const r=s.message;throw e.commit("signUpFailure",r),s}},async getCaptcha(e){return e.rootState.api.backendInteractor.getCaptcha()},logout(e){const t=Ar(),{instance:n}=e.rootState;return t.ensureApp().then(s=>{const r={app:s,instance:n.server,token:t.userToken};return Rh.revokeToken(r)}).then(()=>{e.commit("clearCurrentUser"),e.dispatch("disconnectFromSocket"),t.clearToken(),e.dispatch("stopFetchingTimeline","friends"),e.commit("setBackendInteractor",Ph(t.getToken)),e.dispatch("stopFetchingNotifications"),e.dispatch("stopFetchingLists"),e.dispatch("stopFetchingBookmarkFolders"),e.dispatch("stopFetchingFollowRequests"),e.commit("clearNotifications"),e.commit("resetStatuses"),e.dispatch("resetChats"),Xe().setLastTimeline("public-timeline"),Xe().setLayoutWidth(Lh()),Xe().setLayoutHeight(Oh()),e.commit("clearServerSideStorage")})},loginUser(e,t){return new Promise((n,s)=>{const r=e.commit,o=e.dispatch,i=e.rootState;r("beginLogin"),e.rootState.api.backendInteractor.verifyCredentials(t).then(a=>{if(a.error){const c=a.error;r("endLogin"),[400,401,403,422].includes(c.status)&&Ar().clearToken(),c.status===401?s(new Error("Wrong username or password")):s(new Error("An error occurred, please try again"))}else{const c=a;c.credentials=t,c.blockIds=[],c.muteIds=[],c.domainMutes=[],r("setCurrentUser",c),_n().setServerSideStorage(c),r("addNewUsers",[c]),o("fetchEmoji"),qee().then(h=>Xe().setNotificationPermission(h)),r("setBackendInteractor",Ph(t));const{configMigration:u}=_n().flagStorage;Bee.filter(h=>h.store==="server-side"&&h.migrationNum>0&&h.migrationNum>u).toSorted((h,v)=>h.configMigration-v.configMigration).forEach(h=>{h.migration(_n(),e.rootState),_n().setFlag({flag:"configMigration",value:h.migrationNum}),_n().pushServerSideStorage()}),c.token&&(o("setWsToken",c.token),o("initializeSocket"));const f=()=>{o("startFetchingTimeline",{timeline:"friends"}),o("startFetchingNotifications"),i.instance.pleromaChatMessagesAvailable&&o("startFetchingChats")};o("startFetchingLists"),o("startFetchingBookmarkFolders"),c.locked&&o("startFetchingFollowRequests"),e.getters.mergedConfig.useStreamingApi?(o("fetchTimeline",{timeline:"friends",since:null}),o("fetchNotifications",{since:null}),o("enableMastoSockets",!0).catch(h=>{console.error("Failed initializing MastoAPI Streaming socket",h)}).then(()=>{o("fetchChats",{latest:!0}),setTimeout(()=>o("setNotificationsSilence",!1),1e4)})):f(),o("fetchMutes"),Xe().setLayoutWidth(Lh()),Xe().setLayoutHeight(Oh()),e.rootState.api.backendInteractor.fetchFriends({id:c.id}).then(h=>r("addNewUsers",h))}r("endLogin"),n()}).catch(a=>{console.error(a),r("endLogin"),s(new Error("Failed to connect to server, try again"))})})}}},BP=(e,t)=>{if(!t.lastMessage||e.rootState.chats.currentChatId===t.id&&!document.hidden||e.rootState.users.currentUser.id===t.lastMessage.account_id)return;const n={tag:t.lastMessage.id,title:t.account.name,icon:t.account.profile_image_url,body:t.lastMessage.content};t.lastMessage.attachment&&t.lastMessage.attachment.type==="image"&&(n.image=t.lastMessage.attachment.preview_url),vE(e.rootState,n)},Jee=({content:e,chatId:t,attachments:n,userId:s,idempotencyKey:r})=>{const o={content:e,chat_id:t,created_at:new Date,id:`${new Date().getTime()}`,attachments:n,account_id:s,idempotency_key:r,emojis:[],pending:!0,isNormalized:!0};return n[0]&&(o.attachment=n[0]),o};var Ru=e=>typeof e=="function"?e:function(){return e},Zee=typeof self<"u"?self:null,hu=typeof window<"u"?window:null,Kr=Zee||hu||globalThis,Qee="2.0.0",Yr={connecting:0,open:1,closing:2,closed:3},ete=1e4,tte=1e3,Ws={closed:"closed",errored:"errored",joined:"joined",joining:"joining",leaving:"leaving"},Lo={close:"phx_close",error:"phx_error",join:"phx_join",reply:"phx_reply",leave:"phx_leave"},by={longpoll:"longpoll",websocket:"websocket"},nte={complete:4},yy="base64url.bearer.phx.",Of=class{constructor(e,t,n,s){this.channel=e,this.event=t,this.payload=n||function(){return{}},this.receivedResp=null,this.timeout=s,this.timeoutTimer=null,this.recHooks=[],this.sent=!1}resend(e){this.timeout=e,this.reset(),this.send()}send(){this.hasReceived("timeout")||(this.startTimeout(),this.sent=!0,this.channel.socket.push({topic:this.channel.topic,event:this.event,payload:this.payload(),ref:this.ref,join_ref:this.channel.joinRef()}))}receive(e,t){return this.hasReceived(e)&&t(this.receivedResp.response),this.recHooks.push({status:e,callback:t}),this}reset(){this.cancelRefEvent(),this.ref=null,this.refEvent=null,this.receivedResp=null,this.sent=!1}matchReceive({status:e,response:t,_ref:n}){this.recHooks.filter(s=>s.status===e).forEach(s=>s.callback(t))}cancelRefEvent(){this.refEvent&&this.channel.off(this.refEvent)}cancelTimeout(){clearTimeout(this.timeoutTimer),this.timeoutTimer=null}startTimeout(){this.timeoutTimer&&this.cancelTimeout(),this.ref=this.channel.socket.makeRef(),this.refEvent=this.channel.replyEventName(this.ref),this.channel.on(this.refEvent,e=>{this.cancelRefEvent(),this.cancelTimeout(),this.receivedResp=e,this.matchReceive(e)}),this.timeoutTimer=setTimeout(()=>{this.trigger("timeout",{})},this.timeout)}hasReceived(e){return this.receivedResp&&this.receivedResp.status===e}trigger(e,t){this.channel.trigger(this.refEvent,{status:e,response:t})}},zP=class{constructor(e,t){this.callback=e,this.timerCalc=t,this.timer=null,this.tries=0}reset(){this.tries=0,clearTimeout(this.timer)}scheduleTimeout(){clearTimeout(this.timer),this.timer=setTimeout(()=>{this.tries=this.tries+1,this.callback()},this.timerCalc(this.tries+1))}},ste=class{constructor(e,t,n){this.state=Ws.closed,this.topic=e,this.params=Ru(t||{}),this.socket=n,this.bindings=[],this.bindingRef=0,this.timeout=this.socket.timeout,this.joinedOnce=!1,this.joinPush=new Of(this,Lo.join,this.params,this.timeout),this.pushBuffer=[],this.stateChangeRefs=[],this.rejoinTimer=new zP(()=>{this.socket.isConnected()&&this.rejoin()},this.socket.rejoinAfterMs),this.stateChangeRefs.push(this.socket.onError(()=>this.rejoinTimer.reset())),this.stateChangeRefs.push(this.socket.onOpen(()=>{this.rejoinTimer.reset(),this.isErrored()&&this.rejoin()})),this.joinPush.receive("ok",()=>{this.state=Ws.joined,this.rejoinTimer.reset(),this.pushBuffer.forEach(s=>s.send()),this.pushBuffer=[]}),this.joinPush.receive("error",()=>{this.state=Ws.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.onClose(()=>{this.rejoinTimer.reset(),this.socket.hasLogger()&&this.socket.log("channel",`close ${this.topic} ${this.joinRef()}`),this.state=Ws.closed,this.socket.remove(this)}),this.onError(s=>{this.socket.hasLogger()&&this.socket.log("channel",`error ${this.topic}`,s),this.isJoining()&&this.joinPush.reset(),this.state=Ws.errored,this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.joinPush.receive("timeout",()=>{this.socket.hasLogger()&&this.socket.log("channel",`timeout ${this.topic} (${this.joinRef()})`,this.joinPush.timeout),new Of(this,Lo.leave,Ru({}),this.timeout).send(),this.state=Ws.errored,this.joinPush.reset(),this.socket.isConnected()&&this.rejoinTimer.scheduleTimeout()}),this.on(Lo.reply,(s,r)=>{this.trigger(this.replyEventName(r),s)})}join(e=this.timeout){if(this.joinedOnce)throw new Error("tried to join multiple times. 'join' can only be called a single time per channel instance");return this.timeout=e,this.joinedOnce=!0,this.rejoin(),this.joinPush}onClose(e){this.on(Lo.close,e)}onError(e){return this.on(Lo.error,t=>e(t))}on(e,t){let n=this.bindingRef++;return this.bindings.push({event:e,ref:n,callback:t}),n}off(e,t){this.bindings=this.bindings.filter(n=>!(n.event===e&&(typeof t>"u"||t===n.ref)))}canPush(){return this.socket.isConnected()&&this.isJoined()}push(e,t,n=this.timeout){if(t=t||{},!this.joinedOnce)throw new Error(`tried to push '${e}' to '${this.topic}' before joining. Use channel.join() before pushing events`);let s=new Of(this,e,function(){return t},n);return this.canPush()?s.send():(s.startTimeout(),this.pushBuffer.push(s)),s}leave(e=this.timeout){this.rejoinTimer.reset(),this.joinPush.cancelTimeout(),this.state=Ws.leaving;let t=()=>{this.socket.hasLogger()&&this.socket.log("channel",`leave ${this.topic}`),this.trigger(Lo.close,"leave")},n=new Of(this,Lo.leave,Ru({}),e);return n.receive("ok",()=>t()).receive("timeout",()=>t()),n.send(),this.canPush()||n.trigger("ok",{}),n}onMessage(e,t,n){return t}isMember(e,t,n,s){return this.topic!==e?!1:s&&s!==this.joinRef()?(this.socket.hasLogger()&&this.socket.log("channel","dropping outdated message",{topic:e,event:t,payload:n,joinRef:s}),!1):!0}joinRef(){return this.joinPush.ref}rejoin(e=this.timeout){this.isLeaving()||(this.socket.leaveOpenTopic(this.topic),this.state=Ws.joining,this.joinPush.resend(e))}trigger(e,t,n,s){let r=this.onMessage(e,t,n,s);if(t&&!r)throw new Error("channel onMessage callbacks must return the payload, modified or unmodified");let o=this.bindings.filter(i=>i.event===e);for(let i=0;i<o.length;i++)o[i].callback(r,n,s||this.joinRef())}replyEventName(e){return`chan_reply_${e}`}isClosed(){return this.state===Ws.closed}isErrored(){return this.state===Ws.errored}isJoined(){return this.state===Ws.joined}isJoining(){return this.state===Ws.joining}isLeaving(){return this.state===Ws.leaving}},Mh=class{static request(e,t,n,s,r,o,i){if(Kr.XDomainRequest){let a=new Kr.XDomainRequest;return this.xdomainRequest(a,e,t,s,r,o,i)}else if(Kr.XMLHttpRequest){let a=new Kr.XMLHttpRequest;return this.xhrRequest(a,e,t,n,s,r,o,i)}else{if(Kr.fetch&&Kr.AbortController)return this.fetchRequest(e,t,n,s,r,o,i);throw new Error("No suitable XMLHttpRequest implementation found")}}static fetchRequest(e,t,n,s,r,o,i){let a={method:e,headers:n,body:s},c=null;return r&&(c=new AbortController,setTimeout(()=>c.abort(),r),a.signal=c.signal),Kr.fetch(t,a).then(u=>u.text()).then(u=>this.parseJSON(u)).then(u=>i&&i(u)).catch(u=>{u.name==="AbortError"&&o?o():i&&i(null)}),c}static xdomainRequest(e,t,n,s,r,o,i){return e.timeout=r,e.open(t,n),e.onload=()=>{let a=this.parseJSON(e.responseText);i&&i(a)},o&&(e.ontimeout=o),e.onprogress=()=>{},e.send(s),e}static xhrRequest(e,t,n,s,r,o,i,a){e.open(t,n,!0),e.timeout=o;for(let[c,u]of Object.entries(s))e.setRequestHeader(c,u);return e.onerror=()=>a&&a(null),e.onreadystatechange=()=>{if(e.readyState===nte.complete&&a){let c=this.parseJSON(e.responseText);a(c)}},i&&(e.ontimeout=i),e.send(r),e}static parseJSON(e){if(!e||e==="")return null;try{return JSON.parse(e)}catch{return console&&console.log("failed to parse JSON response",e),null}}static serialize(e,t){let n=[];for(var s in e){if(!Object.prototype.hasOwnProperty.call(e,s))continue;let r=t?`${t}[${s}]`:s,o=e[s];typeof o=="object"?n.push(this.serialize(o,r)):n.push(encodeURIComponent(r)+"="+encodeURIComponent(o))}return n.join("&")}static appendParams(e,t){if(Object.keys(t).length===0)return e;let n=e.match(/\?/)?"&":"?";return`${e}${n}${this.serialize(t)}`}},rte=e=>{let t="",n=new Uint8Array(e),s=n.byteLength;for(let r=0;r<s;r++)t+=String.fromCharCode(n[r]);return btoa(t)},Xc=class{constructor(e,t){t&&t.length===2&&t[1].startsWith(yy)&&(this.authToken=atob(t[1].slice(yy.length))),this.endPoint=null,this.token=null,this.skipHeartbeat=!0,this.reqs=new Set,this.awaitingBatchAck=!1,this.currentBatch=null,this.currentBatchTimer=null,this.batchBuffer=[],this.onopen=function(){},this.onerror=function(){},this.onmessage=function(){},this.onclose=function(){},this.pollEndpoint=this.normalizeEndpoint(e),this.readyState=Yr.connecting,setTimeout(()=>this.poll(),0)}normalizeEndpoint(e){return e.replace("ws://","http://").replace("wss://","https://").replace(new RegExp("(.*)/"+by.websocket),"$1/"+by.longpoll)}endpointURL(){return Mh.appendParams(this.pollEndpoint,{token:this.token})}closeAndRetry(e,t,n){this.close(e,t,n),this.readyState=Yr.connecting}ontimeout(){this.onerror("timeout"),this.closeAndRetry(1005,"timeout",!1)}isActive(){return this.readyState===Yr.open||this.readyState===Yr.connecting}poll(){const e={Accept:"application/json"};this.authToken&&(e["X-Phoenix-AuthToken"]=this.authToken),this.ajax("GET",e,null,()=>this.ontimeout(),t=>{if(t){var{status:n,token:s,messages:r}=t;this.token=s}else n=0;switch(n){case 200:r.forEach(o=>{setTimeout(()=>this.onmessage({data:o}),0)}),this.poll();break;case 204:this.poll();break;case 410:this.readyState=Yr.open,this.onopen({}),this.poll();break;case 403:this.onerror(403),this.close(1008,"forbidden",!1);break;case 0:case 500:this.onerror(500),this.closeAndRetry(1011,"internal server error",500);break;default:throw new Error(`unhandled poll status ${n}`)}})}send(e){typeof e!="string"&&(e=rte(e)),this.currentBatch?this.currentBatch.push(e):this.awaitingBatchAck?this.batchBuffer.push(e):(this.currentBatch=[e],this.currentBatchTimer=setTimeout(()=>{this.batchSend(this.currentBatch),this.currentBatch=null},0))}batchSend(e){this.awaitingBatchAck=!0,this.ajax("POST",{"Content-Type":"application/x-ndjson"},e.join(`
`),()=>this.onerror("timeout"),t=>{this.awaitingBatchAck=!1,!t||t.status!==200?(this.onerror(t&&t.status),this.closeAndRetry(1011,"internal server error",!1)):this.batchBuffer.length>0&&(this.batchSend(this.batchBuffer),this.batchBuffer=[])})}close(e,t,n){for(let r of this.reqs)r.abort();this.readyState=Yr.closed;let s=Object.assign({code:1e3,reason:void 0,wasClean:!0},{code:e,reason:t,wasClean:n});this.batchBuffer=[],clearTimeout(this.currentBatchTimer),this.currentBatchTimer=null,typeof CloseEvent<"u"?this.onclose(new CloseEvent("close",s)):this.onclose(s)}ajax(e,t,n,s,r){let o,i=()=>{this.reqs.delete(o),s()};o=Mh.request(e,this.endpointURL(),t,n,this.timeout,i,a=>{this.reqs.delete(o),this.isActive()&&r(a)}),this.reqs.add(o)}},Rf={HEADER_LENGTH:1,META_LENGTH:4,KINDS:{push:0,reply:1,broadcast:2},encode(e,t){if(e.payload.constructor===ArrayBuffer)return t(this.binaryEncode(e));{let n=[e.join_ref,e.ref,e.topic,e.event,e.payload];return t(JSON.stringify(n))}},decode(e,t){if(e.constructor===ArrayBuffer)return t(this.binaryDecode(e));{let[n,s,r,o,i]=JSON.parse(e);return t({join_ref:n,ref:s,topic:r,event:o,payload:i})}},binaryEncode(e){let{join_ref:t,ref:n,event:s,topic:r,payload:o}=e,i=this.META_LENGTH+t.length+n.length+r.length+s.length,a=new ArrayBuffer(this.HEADER_LENGTH+i),c=new DataView(a),u=0;c.setUint8(u++,this.KINDS.push),c.setUint8(u++,t.length),c.setUint8(u++,n.length),c.setUint8(u++,r.length),c.setUint8(u++,s.length),Array.from(t,h=>c.setUint8(u++,h.charCodeAt(0))),Array.from(n,h=>c.setUint8(u++,h.charCodeAt(0))),Array.from(r,h=>c.setUint8(u++,h.charCodeAt(0))),Array.from(s,h=>c.setUint8(u++,h.charCodeAt(0)));var f=new Uint8Array(a.byteLength+o.byteLength);return f.set(new Uint8Array(a),0),f.set(new Uint8Array(o),a.byteLength),f.buffer},binaryDecode(e){let t=new DataView(e),n=t.getUint8(0),s=new TextDecoder;switch(n){case this.KINDS.push:return this.decodePush(e,t,s);case this.KINDS.reply:return this.decodeReply(e,t,s);case this.KINDS.broadcast:return this.decodeBroadcast(e,t,s)}},decodePush(e,t,n){let s=t.getUint8(1),r=t.getUint8(2),o=t.getUint8(3),i=this.HEADER_LENGTH+this.META_LENGTH-1,a=n.decode(e.slice(i,i+s));i=i+s;let c=n.decode(e.slice(i,i+r));i=i+r;let u=n.decode(e.slice(i,i+o));i=i+o;let f=e.slice(i,e.byteLength);return{join_ref:a,ref:null,topic:c,event:u,payload:f}},decodeReply(e,t,n){let s=t.getUint8(1),r=t.getUint8(2),o=t.getUint8(3),i=t.getUint8(4),a=this.HEADER_LENGTH+this.META_LENGTH,c=n.decode(e.slice(a,a+s));a=a+s;let u=n.decode(e.slice(a,a+r));a=a+r;let f=n.decode(e.slice(a,a+o));a=a+o;let h=n.decode(e.slice(a,a+i));a=a+i;let v=e.slice(a,e.byteLength),y={status:h,response:v};return{join_ref:c,ref:u,topic:f,event:Lo.reply,payload:y}},decodeBroadcast(e,t,n){let s=t.getUint8(1),r=t.getUint8(2),o=this.HEADER_LENGTH+2,i=n.decode(e.slice(o,o+s));o=o+s;let a=n.decode(e.slice(o,o+r));o=o+r;let c=e.slice(o,e.byteLength);return{join_ref:null,ref:null,topic:i,event:a,payload:c}}},ote=class{constructor(e,t={}){this.stateChangeCallbacks={open:[],close:[],error:[],message:[]},this.channels=[],this.sendBuffer=[],this.ref=0,this.timeout=t.timeout||ete,this.transport=t.transport||Kr.WebSocket||Xc,this.primaryPassedHealthCheck=!1,this.longPollFallbackMs=t.longPollFallbackMs,this.fallbackTimer=null,this.sessionStore=t.sessionStorage||Kr&&Kr.sessionStorage,this.establishedConnections=0,this.defaultEncoder=Rf.encode.bind(Rf),this.defaultDecoder=Rf.decode.bind(Rf),this.closeWasClean=!1,this.disconnecting=!1,this.binaryType=t.binaryType||"arraybuffer",this.connectClock=1,this.transport!==Xc?(this.encode=t.encode||this.defaultEncoder,this.decode=t.decode||this.defaultDecoder):(this.encode=this.defaultEncoder,this.decode=this.defaultDecoder);let n=null;hu&&hu.addEventListener&&(hu.addEventListener("pagehide",s=>{this.conn&&(this.disconnect(),n=this.connectClock)}),hu.addEventListener("pageshow",s=>{n===this.connectClock&&(n=null,this.connect())})),this.heartbeatIntervalMs=t.heartbeatIntervalMs||3e4,this.rejoinAfterMs=s=>t.rejoinAfterMs?t.rejoinAfterMs(s):[1e3,2e3,5e3][s-1]||1e4,this.reconnectAfterMs=s=>t.reconnectAfterMs?t.reconnectAfterMs(s):[10,50,100,150,200,250,500,1e3,2e3][s-1]||5e3,this.logger=t.logger||null,!this.logger&&t.debug&&(this.logger=(s,r,o)=>{console.log(`${s}: ${r}`,o)}),this.longpollerTimeout=t.longpollerTimeout||2e4,this.params=Ru(t.params||{}),this.endPoint=`${e}/${by.websocket}`,this.vsn=t.vsn||Qee,this.heartbeatTimeoutTimer=null,this.heartbeatTimer=null,this.pendingHeartbeatRef=null,this.reconnectTimer=new zP(()=>{this.teardown(()=>this.connect())},this.reconnectAfterMs),this.authToken=t.authToken}getLongPollTransport(){return Xc}replaceTransport(e){this.connectClock++,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.conn&&(this.conn.close(),this.conn=null),this.transport=e}protocol(){return location.protocol.match(/^https/)?"wss":"ws"}endPointURL(){let e=Mh.appendParams(Mh.appendParams(this.endPoint,this.params()),{vsn:this.vsn});return e.charAt(0)!=="/"?e:e.charAt(1)==="/"?`${this.protocol()}:${e}`:`${this.protocol()}://${location.host}${e}`}disconnect(e,t,n){this.connectClock++,this.disconnecting=!0,this.closeWasClean=!0,clearTimeout(this.fallbackTimer),this.reconnectTimer.reset(),this.teardown(()=>{this.disconnecting=!1,e&&e()},t,n)}connect(e){e&&(console&&console.log("passing params to connect is deprecated. Instead pass :params to the Socket constructor"),this.params=Ru(e)),!(this.conn&&!this.disconnecting)&&(this.longPollFallbackMs&&this.transport!==Xc?this.connectWithFallback(Xc,this.longPollFallbackMs):this.transportConnect())}log(e,t,n){this.logger&&this.logger(e,t,n)}hasLogger(){return this.logger!==null}onOpen(e){let t=this.makeRef();return this.stateChangeCallbacks.open.push([t,e]),t}onClose(e){let t=this.makeRef();return this.stateChangeCallbacks.close.push([t,e]),t}onError(e){let t=this.makeRef();return this.stateChangeCallbacks.error.push([t,e]),t}onMessage(e){let t=this.makeRef();return this.stateChangeCallbacks.message.push([t,e]),t}ping(e){if(!this.isConnected())return!1;let t=this.makeRef(),n=Date.now();this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:t});let s=this.onMessage(r=>{r.ref===t&&(this.off([s]),e(Date.now()-n))});return!0}transportConnect(){this.connectClock++,this.closeWasClean=!1;let e;this.authToken&&(e=["phoenix",`${yy}${btoa(this.authToken).replace(/=/g,"")}`]),this.conn=new this.transport(this.endPointURL(),e),this.conn.binaryType=this.binaryType,this.conn.timeout=this.longpollerTimeout,this.conn.onopen=()=>this.onConnOpen(),this.conn.onerror=t=>this.onConnError(t),this.conn.onmessage=t=>this.onConnMessage(t),this.conn.onclose=t=>this.onConnClose(t)}getSession(e){return this.sessionStore&&this.sessionStore.getItem(e)}storeSession(e,t){this.sessionStore&&this.sessionStore.setItem(e,t)}connectWithFallback(e,t=2500){clearTimeout(this.fallbackTimer);let n=!1,s=!0,r,o,i=a=>{this.log("transport",`falling back to ${e.name}...`,a),this.off([r,o]),s=!1,this.replaceTransport(e),this.transportConnect()};if(this.getSession(`phx:fallback:${e.name}`))return i("memorized");this.fallbackTimer=setTimeout(i,t),o=this.onError(a=>{this.log("transport","error",a),s&&!n&&(clearTimeout(this.fallbackTimer),i(a))}),this.onOpen(()=>{if(n=!0,!s)return this.primaryPassedHealthCheck||this.storeSession(`phx:fallback:${e.name}`,"true"),this.log("transport",`established ${e.name} fallback`);clearTimeout(this.fallbackTimer),this.fallbackTimer=setTimeout(i,t),this.ping(a=>{this.log("transport","connected to primary after",a),this.primaryPassedHealthCheck=!0,clearTimeout(this.fallbackTimer)})}),this.transportConnect()}clearHeartbeats(){clearTimeout(this.heartbeatTimer),clearTimeout(this.heartbeatTimeoutTimer)}onConnOpen(){this.hasLogger()&&this.log("transport",`${this.transport.name} connected to ${this.endPointURL()}`),this.closeWasClean=!1,this.disconnecting=!1,this.establishedConnections++,this.flushSendBuffer(),this.reconnectTimer.reset(),this.resetHeartbeat(),this.stateChangeCallbacks.open.forEach(([,e])=>e())}heartbeatTimeout(){this.pendingHeartbeatRef&&(this.pendingHeartbeatRef=null,this.hasLogger()&&this.log("transport","heartbeat timeout. Attempting to re-establish connection"),this.triggerChanError(),this.closeWasClean=!1,this.teardown(()=>this.reconnectTimer.scheduleTimeout(),tte,"heartbeat timeout"))}resetHeartbeat(){this.conn&&this.conn.skipHeartbeat||(this.pendingHeartbeatRef=null,this.clearHeartbeats(),this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs))}teardown(e,t,n){if(!this.conn)return e&&e();let s=this.connectClock;this.waitForBufferDone(()=>{s===this.connectClock&&(this.conn&&(t?this.conn.close(t,n||""):this.conn.close()),this.waitForSocketClosed(()=>{s===this.connectClock&&(this.conn&&(this.conn.onopen=function(){},this.conn.onerror=function(){},this.conn.onmessage=function(){},this.conn.onclose=function(){},this.conn=null),e&&e())}))})}waitForBufferDone(e,t=1){if(t===5||!this.conn||!this.conn.bufferedAmount){e();return}setTimeout(()=>{this.waitForBufferDone(e,t+1)},150*t)}waitForSocketClosed(e,t=1){if(t===5||!this.conn||this.conn.readyState===Yr.closed){e();return}setTimeout(()=>{this.waitForSocketClosed(e,t+1)},150*t)}onConnClose(e){let t=e&&e.code;this.hasLogger()&&this.log("transport","close",e),this.triggerChanError(),this.clearHeartbeats(),!this.closeWasClean&&t!==1e3&&this.reconnectTimer.scheduleTimeout(),this.stateChangeCallbacks.close.forEach(([,n])=>n(e))}onConnError(e){this.hasLogger()&&this.log("transport",e);let t=this.transport,n=this.establishedConnections;this.stateChangeCallbacks.error.forEach(([,s])=>{s(e,t,n)}),(t===this.transport||n>0)&&this.triggerChanError()}triggerChanError(){this.channels.forEach(e=>{e.isErrored()||e.isLeaving()||e.isClosed()||e.trigger(Lo.error)})}connectionState(){switch(this.conn&&this.conn.readyState){case Yr.connecting:return"connecting";case Yr.open:return"open";case Yr.closing:return"closing";default:return"closed"}}isConnected(){return this.connectionState()==="open"}remove(e){this.off(e.stateChangeRefs),this.channels=this.channels.filter(t=>t!==e)}off(e){for(let t in this.stateChangeCallbacks)this.stateChangeCallbacks[t]=this.stateChangeCallbacks[t].filter(([n])=>e.indexOf(n)===-1)}channel(e,t={}){let n=new ste(e,t,this);return this.channels.push(n),n}push(e){if(this.hasLogger()){let{topic:t,event:n,payload:s,ref:r,join_ref:o}=e;this.log("push",`${t} ${n} (${o}, ${r})`,s)}this.isConnected()?this.encode(e,t=>this.conn.send(t)):this.sendBuffer.push(()=>this.encode(e,t=>this.conn.send(t)))}makeRef(){let e=this.ref+1;return e===this.ref?this.ref=0:this.ref=e,this.ref.toString()}sendHeartbeat(){this.pendingHeartbeatRef&&!this.isConnected()||(this.pendingHeartbeatRef=this.makeRef(),this.push({topic:"phoenix",event:"heartbeat",payload:{},ref:this.pendingHeartbeatRef}),this.heartbeatTimeoutTimer=setTimeout(()=>this.heartbeatTimeout(),this.heartbeatIntervalMs))}flushSendBuffer(){this.isConnected()&&this.sendBuffer.length>0&&(this.sendBuffer.forEach(e=>e()),this.sendBuffer=[])}onConnMessage(e){this.decode(e.data,t=>{let{topic:n,event:s,payload:r,ref:o,join_ref:i}=t;o&&o===this.pendingHeartbeatRef&&(this.clearHeartbeats(),this.pendingHeartbeatRef=null,this.heartbeatTimer=setTimeout(()=>this.sendHeartbeat(),this.heartbeatIntervalMs)),this.hasLogger()&&this.log("receive",`${r.status||""} ${n} ${s} ${o&&"("+o+")"||""}`,r);for(let a=0;a<this.channels.length;a++){const c=this.channels[a];c.isMember(n,s,r,i)&&c.trigger(s,r,o,i)}for(let a=0;a<this.stateChangeCallbacks.message.length;a++){let[,c]=this.stateChangeCallbacks.message[a];c(t)}})}leaveOpenTopic(e){let t=this.channels.find(n=>n.topic===e&&(n.isJoined()||n.isJoining()));t&&(this.hasLogger()&&this.log("transport",`leaving duplicate topic "${e}"`),t.leave())}};const Gl=vs("shout",{state:()=>({messages:[],channel:{state:""},joined:!1}),actions:{initializeShout(e){const t=e.channel("chat:public");t.joinPush.receive("ok",()=>{this.joined=!0}),t.onClose(()=>{this.joined=!1}),t.onError(()=>{this.joined=!1}),t.on("new_msg",n=>{this.messages.push(n),this.messages=this.messages.slice(-19,20)}),t.on("messages",({messages:n})=>{this.messages=n.slice(-19,20)}),t.join(),this.channel=t}}}),ite=Object.freeze(Object.defineProperty({__proto__:null,useShoutStore:Gl},Symbol.toStringTag,{value:"Module"})),ate=e=>1e3*e,lte={state:{retryMultiplier:1,backendInteractor:Ph(),fetchers:{},socket:null,mastoUserSocket:null,mastoUserSocketStatus:null,followRequests:[]},getters:{followRequestCount:e=>e.followRequests.length},mutations:{setBackendInteractor(e,t){e.backendInteractor=t},addFetcher(e,{fetcherName:t,fetcher:n}){e.fetchers[t]=n},removeFetcher(e,{fetcherName:t}){e.fetchers[t].stop(),delete e.fetchers[t]},setWsToken(e,t){e.wsToken=t},setSocket(e,t){e.socket=t},setFollowRequests(e,t){e.followRequests=t},setMastoUserSocketStatus(e,t){e.mastoUserSocketStatus=t},incrementRetryMultiplier(e){e.retryMultiplier=Math.max(++e.retryMultiplier,3)},resetRetryMultiplier(e){e.retryMultiplier=1}},actions:{enableMastoSockets(e,t){const{state:n,dispatch:s,commit:r}=e;if(!(n.mastoUserSocket&&![WebSocket.CLOSED,WebSocket.CLOSING].includes(n.mastoUserSocket.getState())))return t?r("setMastoUserSocketStatus",Ks.STARTING_INITIAL):r("setMastoUserSocketStatus",Ks.STARTING),s("startMastoUserSocket")},disableMastoSockets(e){const{state:t,dispatch:n,commit:s}=e;if(t.mastoUserSocket)return s("setMastoUserSocketStatus",Ks.DISABLED),n("stopMastoUserSocket")},startMastoUserSocket(e){return new Promise((t,n)=>{try{const{state:s,commit:r,dispatch:o,rootState:i}=e,a=i.statuses.timelines.friends;s.mastoUserSocket=s.backendInteractor.startUserSocket({store:e}),s.mastoUserSocket.addEventListener("pleroma:authenticated",()=>{s.mastoUserSocket.subscribe("user")}),s.mastoUserSocket.addEventListener("message",({detail:c})=>{c&&(c.event==="notification"?o("addNewNotifications",{notifications:[c.notification],older:!1}):c.event==="update"?o("addNewStatuses",{statuses:[c.status],userId:!1,showImmediately:a.visibleStatuses.length===0,timeline:"friends"}):c.event==="status.update"?o("addNewStatuses",{statuses:[c.status],userId:!1,showImmediately:c.status.id in a.visibleStatusesObject,timeline:"friends"}):c.event==="delete"?o("deleteStatusById",c.id):c.event==="pleroma:chat_update"&&setTimeout(()=>{o("addChatMessages",{chatId:c.chatUpdate.id,messages:[c.chatUpdate.lastMessage]}),o("updateChat",{chat:c.chatUpdate}),BP(e,c.chatUpdate)},100))}),s.mastoUserSocket.addEventListener("open",()=>{s.mastoUserSocketStatus!==Ks.STARTING_INITIAL&&Xe().pushGlobalNotice({level:"success",messageKey:"timeline.socket_reconnected",timeout:5e3}),new Set([Ks.ERROR,Ks.DISABLED]).has(s.mastoUserSocketStatus)&&(o("stopFetchingTimeline",{timeline:"friends"}),o("stopFetchingNotifications"),o("stopFetchingChats")),r("resetRetryMultiplier"),r("setMastoUserSocketStatus",Ks.JOINED)}),s.mastoUserSocket.addEventListener("error",({detail:c})=>{console.error("Error in MastoAPI websocket:",c),o("clearOpenedChats")}),s.mastoUserSocket.addEventListener("close",({detail:c})=>{const u=new Set([1e3,1001]),{code:f}=c;u.has(f)?(console.debug(`Not restarting socket becasue of closure code ${f} is in ignore list`),r("setMastoUserSocketStatus",Ks.CLOSED)):(console.warn(`MastoAPI websocket disconnected, restarting. CloseEvent code: ${f}`),setTimeout(()=>{o("startMastoUserSocket")},ate(s.retryMultiplier)),r("incrementRetryMultiplier"),s.mastoUserSocketStatus!==Ks.ERROR&&(o("startFetchingTimeline",{timeline:"friends"}),o("startFetchingNotifications"),o("startFetchingChats"),Xe().pushGlobalNotice({level:"error",messageKey:"timeline.socket_broke",messageArgs:[f],timeout:5e3})),r("setMastoUserSocketStatus",Ks.ERROR)),o("clearOpenedChats")}),t()}catch(s){n(s)}})},stopMastoUserSocket({state:e,dispatch:t}){t("startFetchingTimeline",{timeline:"friends"}),t("startFetchingNotifications"),t("startFetchingChats"),e.mastoUserSocket.close()},startFetchingTimeline(e,{timeline:t="friends",tag:n=!1,userId:s=!1,listId:r=!1,statusId:o=!1,bookmarkFolderId:i=!1}){if(t==="favourites"&&!e.rootState.instance.pleromaPublicFavouritesAvailable||e.state.fetchers[t])return;const a=e.state.backendInteractor.startFetchingTimeline({timeline:t,store:e,userId:s,listId:r,statusId:o,bookmarkFolderId:i,tag:n});e.commit("addFetcher",{fetcherName:t,fetcher:a})},stopFetchingTimeline(e,t){const n=e.state.fetchers[t];n&&e.commit("removeFetcher",{fetcherName:t,fetcher:n})},fetchTimeline(e,{timeline:t,...n}){e.state.backendInteractor.fetchTimeline({store:e,timeline:t,...n})},startFetchingNotifications(e){if(e.state.fetchers.notifications)return;const t=e.state.backendInteractor.startFetchingNotifications({store:e});e.commit("addFetcher",{fetcherName:"notifications",fetcher:t})},stopFetchingNotifications(e){const t=e.state.fetchers.notifications;t&&e.commit("removeFetcher",{fetcherName:"notifications",fetcher:t})},fetchNotifications(e,{...t}){e.state.backendInteractor.fetchNotifications({store:e,...t})},startFetchingFollowRequests(e){if(e.state.fetchers.followRequests)return;const t=e.state.backendInteractor.startFetchingFollowRequests({store:e});e.commit("addFetcher",{fetcherName:"followRequests",fetcher:t})},stopFetchingFollowRequests(e){const t=e.state.fetchers.followRequests;t&&e.commit("removeFetcher",{fetcherName:"followRequests",fetcher:t})},removeFollowRequest(e,t){const n=e.state.followRequests.filter(s=>s!==t);e.commit("setFollowRequests",n)},startFetchingLists(e){if(e.state.fetchers.lists)return;const t=e.state.backendInteractor.startFetchingLists({store:e});e.commit("addFetcher",{fetcherName:"lists",fetcher:t})},stopFetchingLists(e){const t=e.state.fetchers.lists;t&&e.commit("removeFetcher",{fetcherName:"lists",fetcher:t})},startFetchingBookmarkFolders(e){if(e.state.fetchers.bookmarkFolders||!e.rootState.instance.pleromaBookmarkFoldersAvailable)return;const t=e.state.backendInteractor.startFetchingBookmarkFolders({store:e});e.commit("addFetcher",{fetcherName:"bookmarkFolders",fetcher:t})},stopFetchingBookmarkFolders(e){const t=e.state.fetchers.bookmarkFolders;t&&e.commit("removeFetcher",{fetcherName:"bookmarkFolders",fetcher:t})},setWsToken(e,t){e.commit("setWsToken",t)},initializeSocket({commit:e,state:t,rootState:n}){const s=t.wsToken;if(n.instance.shoutAvailable&&typeof s<"u"&&t.socket===null){const r=new ote("/socket",{params:{token:s}});r.connect(),e("setSocket",r),Gl().initializeShout(r)}},disconnectFromSocket({commit:e,state:t}){t.socket&&t.socket.disconnect(),e("setSocket",null)}}},cte=({rootState:e,commit:t},{path:n,value:s})=>{const r={};return Z.set(r,n,s),e.api.backendInteractor.updateProfile({params:r}).then(o=>{t("addNewUsers",[o]),t("setCurrentUser",o)})},I4=({rootState:e,commit:t},{path:n,value:s,oldValue:r})=>{const o={};return Z.set(o,n,s),e.api.backendInteractor.updateNotificationSettings({settings:o}).then(i=>{i.status==="success"?t("confirmProfileOption",{name,value:s}):t("confirmProfileOption",{name,value:r})})},eh={defaultScope:"source.privacy",defaultNSFW:"source.sensitive",stripRichContent:{get:"source.pleroma.no_rich_text",set:"no_rich_text"},locked:"locked",acceptChatMessages:{get:"pleroma.accepts_chat_messages",set:"accepts_chat_messages"},allowFollowingMove:{get:"pleroma.allow_following_move",set:"allow_following_move"},discoverable:{get:"source.pleroma.discoverable",set:"discoverable"},hideFavorites:{get:"pleroma.hide_favorites",set:"hide_favorites"},hideFollowers:{get:"pleroma.hide_followers",set:"hide_followers"},hideFollows:{get:"pleroma.hide_follows",set:"hide_follows"},hideFollowersCount:{get:"pleroma.hide_followers_count",set:"hide_followers_count"},hideFollowsCount:{get:"pleroma.hide_follows_count",set:"hide_follows_count"},webPushHideContents:{get:"pleroma.notification_settings.hide_notification_contents",set:"hide_notification_contents",api:I4},blockNotificationsFromStrangers:{get:"pleroma.notification_settings.block_from_strangers",set:"block_from_strangers",api:I4}},ute=Object.fromEntries(Object.keys(eh).map(e=>[e,null])),dte={state:{...ute},mutations:{confirmProfileOption(e,{name:t,value:n}){Z.set(e,t,n)},wipeProfileOption(e,{name:t}){Z.set(e,t,null)},wipeAllProfileOptions(e){Object.keys(eh).forEach(t=>{Z.set(e,t,null)})},setCurrentUser(e,t){Object.entries(eh).forEach(n=>{const[s,r]=n,{get:o=r}=r;Z.set(e,s,Z.get(t._original,o))})}},actions:{setProfileOption({rootState:e,state:t,commit:n},{name:s,value:r}){const o=Z.get(t,s),i=eh[s];if(!i)throw new Error("Invalid server-side setting");const{set:a=i,api:c=cte}=i;n("wipeProfileOption",{name:s}),c({rootState:e,commit:n},{path:a,value:r,oldValue:o}).catch(u=>{console.warn("Error setting server-side option:",u),n("confirmProfileOption",{name:s,value:o})})},logout({commit:e}){e("wipeAllProfileOptions")}}},qP={frontends:[],loaded:!1,needsReboot:null,config:null,modifiedPaths:null,descriptions:null,draft:null,dbConfigEnabled:null};({...qP.flagStorage});const fte={state:{...Z.cloneDeep(qP)},mutations:{setInstanceAdminNoDbConfig(e){e.loaded=!1,e.dbConfigEnabled=!1},setAvailableFrontends(e,{frontends:t}){e.frontends=t.map(n=>(n.installedRefs=n.installed_refs,n.name==="pleroma-fe"?n.refs=["master","develop"]:n.refs=[n.ref],n))},updateAdminSettings(e,{config:t,modifiedPaths:n}){e.loaded=!0,e.dbConfigEnabled=!0,e.config=t,e.modifiedPaths=n},updateAdminDescriptions(e,{descriptions:t}){e.descriptions=t},updateAdminDraft(e,{path:t,value:n}){const[s,r,o]=t,i=[s,r,o];Z.set(e.draft,t,n),t.length>i.length&&Z.set(e.draft,i,Z.cloneDeep(Z.get(e.draft,i)))},resetAdminDraft(e){e.draft=Z.cloneDeep(e.config)}},actions:{loadFrontendsStuff({rootState:e,commit:t}){e.api.backendInteractor.fetchAvailableFrontends().then(n=>t("setAvailableFrontends",{frontends:n}))},loadAdminStuff({state:e,rootState:t,dispatch:n,commit:s}){t.api.backendInteractor.fetchInstanceDBConfig().then(r=>{r.error?r.error.status===400&&r.error.json().then(o=>{/configurable_from_database/.test(o.error)&&s("setInstanceAdminNoDbConfig")}):n("setInstanceAdminSettings",{backendDbConfig:r})}),e.descriptions===null&&t.api.backendInteractor.fetchInstanceConfigDescriptions().then(r=>n("setInstanceAdminDescriptions",{backendDescriptions:r}))},setInstanceAdminSettings({state:e,commit:t},{backendDbConfig:n}){const s=e.config||{},r=new Set;n.configs.forEach(o=>{const i=[o.group,o.key];o.db&&o.db.forEach(c=>r.add([...i,c].join(" -> ")));const a=c=>Array.isArray(c)&&c.length>0&&c[0].tuple?c.reduce((u,f)=>({...u,[f.tuple[0]]:a(f.tuple[1])}),{}):c;Z.set(s,i,a(o.value))}),t("updateAdminSettings",{config:s,modifiedPaths:r}),t("resetAdminDraft")},setInstanceAdminDescriptions({commit:e},{backendDescriptions:t}){const n=({children:r,description:o,label:i,key:a="<ROOT>",group:c,suggestions:u},f,h)=>{const v=c?[c,a]:[a],y={description:o,label:i,suggestions:u};Array.isArray(r)&&r.forEach(S=>{n(S,v,y)}),Z.set(h,v,y)},s={};t.forEach(r=>n(r,"",s)),e("updateAdminDescriptions",{descriptions:s})},pushAdminDraft({rootState:e,state:t,dispatch:n}){const s=a=>typeof a!="object"?a:Array.isArray(a)?a.map(s):Object.entries(a).map(([c,u])=>({tuple:[c,u]})),i=Z.flatten(Object.entries(t.config).map(([a,c])=>Object.keys(c).map(u=>({group:a,key:u})))).filter(({group:a,key:c})=>!Z.isEqual(t.config[a][c],t.draft[a][c])).map(({group:a,key:c})=>{const u=t.config[a][c],f=t.draft[a][c],h=Object.entries(u),v=Object.entries(f);return{group:a,key:c,value:s(Object.fromEntries(Z.differenceWith(v,h,Z.isEqual)))}});e.api.backendInteractor.pushInstanceDBConfig({payload:{configs:i}}).then(()=>e.api.backendInteractor.fetchInstanceDBConfig()).then(a=>n("setInstanceAdminSettings",{backendDbConfig:a}))},pushAdminSetting({rootState:e,dispatch:t},{path:n,value:s}){const[r,o,...i]=Array.isArray(n)?n:n.split(/\./g),a={};Z.set(a,i,s);const c=u=>typeof u!="object"?u:Array.isArray(u)?u.map(c):Object.entries(u).map(([f,h])=>({tuple:[f,h]}));e.api.backendInteractor.pushInstanceDBConfig({payload:{configs:[{group:r,key:o,value:c(a)}]}}).then(()=>e.api.backendInteractor.fetchInstanceDBConfig()).then(u=>t("setInstanceAdminSettings",{backendDbConfig:u}))},resetAdminSetting({rootState:e,state:t,dispatch:n},{path:s}){const[r,o,i]=s.split(/\./g);return t.modifiedPaths.delete(s),e.api.backendInteractor.pushInstanceDBConfig({payload:{configs:[{group:r,key:o,delete:!0,subkeys:[i]}]}}).then(()=>e.api.backendInteractor.fetchInstanceDBConfig()).then(a=>n("setInstanceAdminSettings",{backendDbConfig:a}))}}},Wp=R_,hte={drafts:{}},pte={addOrSaveDraft(e,{draft:t}){e.drafts[t.id]=t},abandonDraft(e,{id:t}){delete e.drafts[t]},loadDrafts(e,t){e.drafts=t}},$2="pleroma-fe-drafts",k2=async()=>await Wp.getItem($2)||{},mte=async e=>{const t=await k2();t[e.id]=JSON.parse(JSON.stringify(e)),await Wp.setItem($2,t)},gte=async e=>{const t=await k2();delete t[e],await Wp.setItem($2,t)},vte={async addOrSaveDraft(e,{draft:t}){const n=t.id||new Date().getTime().toString(),s={...t,id:n};return e.commit("addOrSaveDraft",{draft:s}),await mte(s),n},async abandonDraft(e,{id:t}){e.commit("abandonDraft",{id:t}),await gte(t)},async loadDrafts(e){const t=await k2();e.commit("loadDrafts",t)}},bte={draftsByTypeAndRefId(e){return(t,n)=>Object.values(e.drafts).filter(s=>s.type===t&&s.refId===n)},draftsArray(e){return Object.values(e.drafts)},draftCount(e){return Object.values(e.drafts).length}},yte={state:hte,mutations:pte,getters:bte,actions:vte},_te=e=>({idIndex:{},idempotencyKeyIndex:{},messages:[],newMessageCount:0,lastSeenMessageId:"0",chatId:e,minId:void 0,maxId:void 0}),wte=e=>{const t=[];for(const n of e.messages)n.error?t.push(n.id):(delete e.idIndex[n.id],delete e.idempotencyKeyIndex[n.idempotency_key]);e.messages=e.messages.filter(n=>t.includes(n.id)),e.newMessageCount=0,e.lastSeenMessageId="0",e.minId=void 0,e.maxId=void 0},Ste=(e,t)=>{if(e){if(e.messages=e.messages.filter(n=>n.id!==t),delete e.idIndex[t],e.maxId===t){const n=Fi.maxBy(e.messages,"id");e.maxId=n.id}if(e.minId===t){const n=Fi.minBy(e.messages,"id");e.minId=n.id}}},$te=e=>{const t=e.messages.length,n=t-50;if(!(t<=50)){e.messages=Fi.sortBy(e.messages,["id"]),e.minId=e.messages[n].id;for(const s of e.messages)s.id<e.minId&&(delete e.idIndex[s.id],delete e.idempotencyKeyIndex[s.idempotency_key]);e.messages=e.messages.slice(n,t)}},kte=(e,t,n)=>{if(!e)return;const s=e.idIndex[t];if(s&&(s.error=!0,s.pending=!1,!n)){const r=Fi.orderBy(e.messages,["pending","id"],["asc","desc"])[0];if(r){const o=s.id;s.id=`${r.id}-${new Date().getTime()}`,e.idIndex[s.id]=s,delete e.idIndex[o]}}},Cte=(e,{messages:t,updateMaxId:n=!0})=>{if(e)for(let s=0;s<t.length;s++){const r=t[s];if(r.chat_id!==e.chatId)return;if(r.fakeId){const o=e.idIndex[r.fakeId];if(o){e.idIndex[r.id]&&(delete e.idIndex[r.id],e.messages=e.messages.filter(i=>i.id!==r.id)),Object.assign(o,r,{error:!1}),delete o.fakeId,e.idIndex[o.id]=o,delete e.idIndex[r.fakeId];return}}(!e.minId||!r.pending&&r.id<e.minId)&&(e.minId=r.id),(!e.maxId||r.id>e.maxId)&&n&&(e.maxId=r.id),!e.idIndex[r.id]&&!Tte(e,r)&&(e.lastSeenMessageId<r.id&&e.newMessageCount++,e.idIndex[r.id]=r,e.messages.push(e.idIndex[r.id]),e.idempotencyKeyIndex[r.idempotency_key]=!0)}},Tte=(e,t)=>{if(t.idempotency_key)return e.idempotencyKeyIndex[t.idempotency_key]},Ate=e=>{e&&(e.newMessageCount=0,e.lastSeenMessageId=e.maxId)},Ete=e=>{if(!e)return[];const t=[],n=Fi.orderBy(e.messages,["pending","id"],["asc","asc"]),s=n[0];let r=n[n.length-1],o;if(s){const a=new Date(s.created_at);a.setHours(0,0,0,0),t.push({type:"date",date:a,id:a.getTime().toString()})}let i=!1;for(let a=0;a<n.length;a++){const c=n[a],u=n[a+1],f=new Date(c.created_at);f.setHours(0,0,0,0),r&&r.date<f&&(t.push({type:"date",date:f,id:f.getTime().toString()}),r.isTail=!0,o=void 0,i=!0);const h={type:"message",data:c,date:f,id:c.id,messageChainId:o};(u&&u.account_id)!==c.account_id&&(h.isTail=!0,o=void 0),((r&&r.data&&r.data.account_id)!==c.account_id||i)&&(o=Fi.uniqueId(),h.isHead=!0,h.messageChainId=o),t.push(h),r=h,i=!1}return t},Gr={add:Cte,empty:_te,getView:Ete,deleteMessage:Ste,cullOlderMessages:$te,resetNewMessageCount:Ate,clear:wte,handleMessageError:kte},HP=()=>({data:[],idStore:{}}),Ite={chatList:HP(),chatListFetcher:null,openedChats:Pr({}),openedChatMessageServices:Pr({}),fetcher:void 0,currentChatId:null,lastReadMessageId:null},fb=(e,t)=>Z.find(e.chatList.data,{id:t}),Pte=e=>Z.orderBy(e.chatList.data,["updated_at"],["desc"]),Lte=e=>Z.sumBy(e.chatList.data,"unread"),Ote={state:{...Ite},getters:{currentChat:e=>e.openedChats[e.currentChatId],currentChatMessageService:e=>e.openedChatMessageServices[e.currentChatId],findOpenedChatByRecipientId:e=>t=>Z.find(e.openedChats,n=>n.account.id===t),sortedChatList:Pte,unreadChatCount:Lte},actions:{startFetchingChats({dispatch:e,commit:t}){const n=()=>e("fetchChats",{latest:!0});n(),t("setChatListFetcher",{fetcher:()=>Ga(n,5e3)})},stopFetchingChats({commit:e}){e("setChatListFetcher",{fetcher:void 0})},fetchChats({dispatch:e,rootState:t}){return t.api.backendInteractor.chats().then(({chats:n})=>(e("addNewChats",{chats:n}),n))},addNewChats(e,{chats:t}){const{commit:n,dispatch:s,rootGetters:r}=e,o=i=>{BP(e,i)};n("addNewUsers",t.map(i=>i.account).filter(i=>i)),n("addNewChats",{dispatch:s,chats:t,rootGetters:r,newChatMessageSideEffects:o})},updateChat({commit:e},{chat:t}){e("updateChat",{chat:t})},startFetchingCurrentChat({dispatch:e},{fetcher:t}){e("setCurrentChatFetcher",{fetcher:t})},setCurrentChatFetcher({commit:e},{fetcher:t}){e("setCurrentChatFetcher",{fetcher:t})},addOpenedChat({commit:e,dispatch:t},{chat:n}){e("addOpenedChat",{dispatch:t,chat:S_(n)}),t("addNewUsers",[n.account])},addChatMessages({commit:e},t){e("addChatMessages",{commit:e,...t})},resetChatNewMessageCount({commit:e},t){e("resetChatNewMessageCount",t)},clearCurrentChat({commit:e}){e("setCurrentChatId",{chatId:void 0}),e("setCurrentChatFetcher",{fetcher:void 0})},readChat({rootState:e,commit:t,dispatch:n},{id:s,lastReadId:r}){const o=e.chats.lastReadMessageId!==r;n("resetChatNewMessageCount"),t("readChat",{id:s,lastReadId:r}),o&&e.api.backendInteractor.readChat({id:s,lastReadId:r})},deleteChatMessage({rootState:e,commit:t},n){e.api.backendInteractor.deleteChatMessage(n),t("deleteChatMessage",{commit:t,...n})},resetChats({commit:e,dispatch:t}){t("clearCurrentChat"),e("resetChats",{commit:e})},clearOpenedChats({commit:e}){e("clearOpenedChats",{commit:e})},handleMessageError({commit:e},t){e("handleMessageError",{commit:e,...t})},cullOlderMessages({commit:e},t){e("cullOlderMessages",t)}},mutations:{setChatListFetcher(e,{fetcher:t}){const n=e.chatListFetcher;n&&n.stop(),e.chatListFetcher=t&&t()},setCurrentChatFetcher(e,{fetcher:t}){const n=e.fetcher;n&&n.stop(),e.fetcher=t&&t()},addOpenedChat(e,{chat:t}){e.currentChatId=t.id,e.openedChats[t.id]=t,e.openedChatMessageServices[t.id]||(e.openedChatMessageServices[t.id]=Gr.empty(t.id))},setCurrentChatId(e,{chatId:t}){e.currentChatId=t},addNewChats(e,{chats:t,newChatMessageSideEffects:n}){t.forEach(s=>{const r=fb(e,s.id);if(r){const o=(r.lastMessage&&r.lastMessage.id)!==(s.lastMessage&&s.lastMessage.id);r.lastMessage=s.lastMessage,r.unread=s.unread,r.updated_at=s.updated_at,o&&r.unread&&n(s)}else e.chatList.data.push(s),e.chatList.idStore[s.id]=s})},updateChat(e,{chat:t}){const n=fb(e,t.id);n&&(n.lastMessage=t.lastMessage,n.unread=t.unread,n.updated_at=t.updated_at),n||e.chatList.data.unshift(t),e.chatList.idStore[t.id]=t},deleteChat(e,{id:t}){e.chats.data=e.chats.data.filter(n=>n.last_status.id!==t),e.chats.idStore=Z.omitBy(e.chats.idStore,n=>n.last_status.id===t)},resetChats(e,{commit:t}){e.chatList=HP(),e.currentChatId=null,t("setChatListFetcher",{fetcher:void 0});for(const n in e.openedChats)Gr.clear(e.openedChatMessageServices[n]),delete e.openedChats[n],delete e.openedChatMessageServices[n]},setChatsLoading(e,{value:t}){e.chats.loading=t},addChatMessages(e,{chatId:t,messages:n,updateMaxId:s}){const r=e.openedChatMessageServices[t];r&&Gr.add(r,{messages:n.map(PE),updateMaxId:s})},deleteChatMessage(e,{chatId:t,messageId:n}){const s=e.openedChatMessageServices[t];s&&Gr.deleteMessage(s,n)},resetChatNewMessageCount(e){const t=e.openedChatMessageServices[e.currentChatId];Gr.resetNewMessageCount(t)},clearOpenedChats(e){const t=e.currentChatId;for(const n in e.openedChats)t!==n&&(Gr.clear(e.openedChatMessageServices[n]),delete e.openedChats[n],delete e.openedChatMessageServices[n])},readChat(e,{id:t,lastReadId:n}){e.lastReadMessageId=n;const s=fb(e,t);s&&(s.unread=0)},handleMessageError(e,{chatId:t,fakeId:n,isRetry:s}){const r=e.openedChatMessageServices[t];Gr.handleMessageError(r,n,s)},cullOlderMessages(e,t){Gr.cullOlderMessages(e.openedChatMessageServices[t])}}},Rte={instance:nY,statuses:cY,notifications:aee,users:Xee,api:lte,config:Yx,profileConfig:dte,adminSettings:fte,drafts:yte,chats:Ote};/*!
* shared v11.1.11
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/function Mte(e,t){typeof console<"u"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const Nh=typeof window<"u",xi=(e,t=!1)=>t?Symbol.for(e):Symbol(e),Nte=(e,t,n)=>Fte({l:e,k:t,s:n}),Fte=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),Un=e=>typeof e=="number"&&isFinite(e),Dte=e=>C2(e)==="[object Date]",Kl=e=>C2(e)==="[object RegExp]",Gp=e=>Ft(e)&&Object.keys(e).length===0,Wn=Object.assign,Ute=Object.create,an=(e=null)=>Ute(e);let P4;const $a=()=>P4||(P4=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:an());function L4(e){return e.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/\//g,"&#x2F;").replace(/=/g,"&#x3D;")}function O4(e){return e.replace(/&(?![a-zA-Z0-9#]{2,6};)/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function jte(e){return e=e.replace(/(\w+)\s*=\s*"([^"]*)"/g,(s,r,o)=>`${r}="${O4(o)}"`),e=e.replace(/(\w+)\s*=\s*'([^']*)'/g,(s,r,o)=>`${r}='${O4(o)}'`),/\s*on\w+\s*=\s*["']?[^"'>]+["']?/gi.test(e)&&(e=e.replace(/(\s+)(on)(\w+\s*=)/gi,"$1&#111;n$3")),[/(\s+(?:href|src|action|formaction)\s*=\s*["']?)\s*javascript:/gi,/(style\s*=\s*["'][^"']*url\s*\(\s*)javascript:/gi].forEach(s=>{e=e.replace(s,"$1javascript&#58;")}),e}const Bte=Object.prototype.hasOwnProperty;function $r(e,t){return Bte.call(e,t)}const Pn=Array.isArray,yn=e=>typeof e=="function",Ye=e=>typeof e=="string",Vt=e=>typeof e=="boolean",Kt=e=>e!==null&&typeof e=="object",zte=e=>Kt(e)&&yn(e.then)&&yn(e.catch),VP=Object.prototype.toString,C2=e=>VP.call(e),Ft=e=>C2(e)==="[object Object]",qte=e=>e==null?"":Pn(e)||Ft(e)&&e.toString===VP?JSON.stringify(e,null,2):String(e);function T2(e,t=""){return e.reduce((n,s,r)=>r===0?n+s:n+t+s,"")}const Mf=e=>!Kt(e)||Pn(e);function th(e,t){if(Mf(e)||Mf(t))throw new Error("Invalid value");const n=[{src:e,des:t}];for(;n.length;){const{src:s,des:r}=n.pop();Object.keys(s).forEach(o=>{o!=="__proto__"&&(Kt(s[o])&&!Kt(r[o])&&(r[o]=Array.isArray(s[o])?[]:an()),Mf(r[o])||Mf(s[o])?r[o]=s[o]:n.push({src:s[o],des:r[o]}))})}}/*!
* message-compiler v11.1.11
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/function Hte(e,t,n){return{line:e,column:t,offset:n}}function _y(e,t,n){return{start:e,end:t}}const nn={EXPECTED_TOKEN:1,INVALID_TOKEN_IN_PLACEHOLDER:2,UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER:3,UNKNOWN_ESCAPE_SEQUENCE:4,INVALID_UNICODE_ESCAPE_SEQUENCE:5,UNBALANCED_CLOSING_BRACE:6,UNTERMINATED_CLOSING_BRACE:7,EMPTY_PLACEHOLDER:8,NOT_ALLOW_NEST_PLACEHOLDER:9,INVALID_LINKED_FORMAT:10,MUST_HAVE_MESSAGES_IN_PLURAL:11,UNEXPECTED_EMPTY_LINKED_MODIFIER:12,UNEXPECTED_EMPTY_LINKED_KEY:13,UNEXPECTED_LEXICAL_ANALYSIS:14},Vte=17;function Kp(e,t,n={}){const{domain:s,messages:r,args:o}=n,i=e,a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=s,a}function Wte(e){throw e}const Eo=" ",Gte="\r",$s=`
`,Kte="\u2028",xte="\u2029";function Yte(e){const t=e;let n=0,s=1,r=1,o=0;const i=N=>t[N]===Gte&&t[N+1]===$s,a=N=>t[N]===$s,c=N=>t[N]===xte,u=N=>t[N]===Kte,f=N=>i(N)||a(N)||c(N)||u(N),h=()=>n,v=()=>s,y=()=>r,S=()=>o,k=N=>i(N)||c(N)||u(N)?$s:t[N],I=()=>k(n),C=()=>k(n+o);function $(){return o=0,f(n)&&(s++,r=0),i(n)&&n++,n++,r++,t[n]}function P(){return i(n+o)&&o++,o++,t[n+o]}function A(){n=0,s=1,r=1,o=0}function R(N=0){o=N}function B(){const N=n+o;for(;N!==n;)$();o=0}return{index:h,line:v,column:y,peekOffset:S,charAt:k,currentChar:I,currentPeek:C,next:$,peek:P,reset:A,resetPeek:R,skipToPeek:B}}const gi=void 0,Xte=".",R4="'",Jte="tokenizer";function Zte(e,t={}){const n=t.location!==!1,s=Yte(e),r=()=>s.index(),o=()=>Hte(s.line(),s.column(),s.index()),i=o(),a=r(),c={currentType:13,offset:a,startLoc:i,endLoc:i,lastType:13,lastOffset:a,lastStartLoc:i,lastEndLoc:i,braceNest:0,inLinked:!1,text:""},u=()=>c,{onError:f}=t;function h(j,q,te,...fe){const je=u();if(q.column+=te,q.offset+=te,f){const $e=n?_y(je.startLoc,q):null,re=Kp(j,$e,{domain:Jte,args:fe});f(re)}}function v(j,q,te){j.endLoc=o(),j.currentType=q;const fe={type:q};return n&&(fe.loc=_y(j.startLoc,j.endLoc)),te!=null&&(fe.value=te),fe}const y=j=>v(j,13);function S(j,q){return j.currentChar()===q?(j.next(),q):(h(nn.EXPECTED_TOKEN,o(),0,q),"")}function k(j){let q="";for(;j.currentPeek()===Eo||j.currentPeek()===$s;)q+=j.currentPeek(),j.peek();return q}function I(j){const q=k(j);return j.skipToPeek(),q}function C(j){if(j===gi)return!1;const q=j.charCodeAt(0);return q>=97&&q<=122||q>=65&&q<=90||q===95}function $(j){if(j===gi)return!1;const q=j.charCodeAt(0);return q>=48&&q<=57}function P(j,q){const{currentType:te}=q;if(te!==2)return!1;k(j);const fe=C(j.currentPeek());return j.resetPeek(),fe}function A(j,q){const{currentType:te}=q;if(te!==2)return!1;k(j);const fe=j.currentPeek()==="-"?j.peek():j.currentPeek(),je=$(fe);return j.resetPeek(),je}function R(j,q){const{currentType:te}=q;if(te!==2)return!1;k(j);const fe=j.currentPeek()===R4;return j.resetPeek(),fe}function B(j,q){const{currentType:te}=q;if(te!==7)return!1;k(j);const fe=j.currentPeek()===".";return j.resetPeek(),fe}function N(j,q){const{currentType:te}=q;if(te!==8)return!1;k(j);const fe=C(j.currentPeek());return j.resetPeek(),fe}function W(j,q){const{currentType:te}=q;if(!(te===7||te===11))return!1;k(j);const fe=j.currentPeek()===":";return j.resetPeek(),fe}function V(j,q){const{currentType:te}=q;if(te!==9)return!1;const fe=()=>{const $e=j.currentPeek();return $e==="{"?C(j.peek()):$e==="@"||$e==="|"||$e===":"||$e==="."||$e===Eo||!$e?!1:$e===$s?(j.peek(),fe()):ie(j,!1)},je=fe();return j.resetPeek(),je}function U(j){k(j);const q=j.currentPeek()==="|";return j.resetPeek(),q}function ie(j,q=!0){const te=(je=!1,$e="")=>{const re=j.currentPeek();return re==="{"||re==="@"||!re?je:re==="|"?!($e===Eo||$e===$s):re===Eo?(j.peek(),te(!0,Eo)):re===$s?(j.peek(),te(!0,$s)):!0},fe=te();return q&&j.resetPeek(),fe}function le(j,q){const te=j.currentChar();return te===gi?gi:q(te)?(j.next(),te):null}function Pe(j){const q=j.charCodeAt(0);return q>=97&&q<=122||q>=65&&q<=90||q>=48&&q<=57||q===95||q===36}function qe(j){return le(j,Pe)}function Ke(j){const q=j.charCodeAt(0);return q>=97&&q<=122||q>=65&&q<=90||q>=48&&q<=57||q===95||q===36||q===45}function Ge(j){return le(j,Ke)}function ze(j){const q=j.charCodeAt(0);return q>=48&&q<=57}function ot(j){return le(j,ze)}function Ct(j){const q=j.charCodeAt(0);return q>=48&&q<=57||q>=65&&q<=70||q>=97&&q<=102}function dt(j){return le(j,Ct)}function bt(j){let q="",te="";for(;q=ot(j);)te+=q;return te}function It(j){let q="";for(;;){const te=j.currentChar();if(te==="{"||te==="}"||te==="@"||te==="|"||!te)break;if(te===Eo||te===$s)if(ie(j))q+=te,j.next();else{if(U(j))break;q+=te,j.next()}else q+=te,j.next()}return q}function nt(j){I(j);let q="",te="";for(;q=Ge(j);)te+=q;return j.currentChar()===gi&&h(nn.UNTERMINATED_CLOSING_BRACE,o(),0),te}function _t(j){I(j);let q="";return j.currentChar()==="-"?(j.next(),q+=`-${bt(j)}`):q+=bt(j),j.currentChar()===gi&&h(nn.UNTERMINATED_CLOSING_BRACE,o(),0),q}function ft(j){return j!==R4&&j!==$s}function Ht(j){I(j),S(j,"'");let q="",te="";for(;q=le(j,ft);)q==="\\"?te+=_e(j):te+=q;const fe=j.currentChar();return fe===$s||fe===gi?(h(nn.UNTERMINATED_SINGLE_QUOTE_IN_PLACEHOLDER,o(),0),fe===$s&&(j.next(),S(j,"'")),te):(S(j,"'"),te)}function _e(j){const q=j.currentChar();switch(q){case"\\":case"'":return j.next(),`\\${q}`;case"u":return Me(j,q,4);case"U":return Me(j,q,6);default:return h(nn.UNKNOWN_ESCAPE_SEQUENCE,o(),0,q),""}}function Me(j,q,te){S(j,q);let fe="";for(let je=0;je<te;je++){const $e=dt(j);if(!$e){h(nn.INVALID_UNICODE_ESCAPE_SEQUENCE,o(),0,`\\${q}${fe}${j.currentChar()}`);break}fe+=$e}return`\\${q}${fe}`}function Fe(j){return j!=="{"&&j!=="}"&&j!==Eo&&j!==$s}function Ue(j){I(j);let q="",te="";for(;q=le(j,Fe);)te+=q;return te}function pt(j){let q="",te="";for(;q=qe(j);)te+=q;return te}function G(j){const q=te=>{const fe=j.currentChar();return fe==="{"||fe==="@"||fe==="|"||fe==="("||fe===")"||!fe||fe===Eo?te:(te+=fe,j.next(),q(te))};return q("")}function K(j){I(j);const q=S(j,"|");return I(j),q}function ee(j,q){let te=null;switch(j.currentChar()){case"{":return q.braceNest>=1&&h(nn.NOT_ALLOW_NEST_PLACEHOLDER,o(),0),j.next(),te=v(q,2,"{"),I(j),q.braceNest++,te;case"}":return q.braceNest>0&&q.currentType===2&&h(nn.EMPTY_PLACEHOLDER,o(),0),j.next(),te=v(q,3,"}"),q.braceNest--,q.braceNest>0&&I(j),q.inLinked&&q.braceNest===0&&(q.inLinked=!1),te;case"@":return q.braceNest>0&&h(nn.UNTERMINATED_CLOSING_BRACE,o(),0),te=pe(j,q)||y(q),q.braceNest=0,te;default:{let je=!0,$e=!0,re=!0;if(U(j))return q.braceNest>0&&h(nn.UNTERMINATED_CLOSING_BRACE,o(),0),te=v(q,1,K(j)),q.braceNest=0,q.inLinked=!1,te;if(q.braceNest>0&&(q.currentType===4||q.currentType===5||q.currentType===6))return h(nn.UNTERMINATED_CLOSING_BRACE,o(),0),q.braceNest=0,we(j,q);if(je=P(j,q))return te=v(q,4,nt(j)),I(j),te;if($e=A(j,q))return te=v(q,5,_t(j)),I(j),te;if(re=R(j,q))return te=v(q,6,Ht(j)),I(j),te;if(!je&&!$e&&!re)return te=v(q,12,Ue(j)),h(nn.INVALID_TOKEN_IN_PLACEHOLDER,o(),0,te.value),I(j),te;break}}return te}function pe(j,q){const{currentType:te}=q;let fe=null;const je=j.currentChar();switch((te===7||te===8||te===11||te===9)&&(je===$s||je===Eo)&&h(nn.INVALID_LINKED_FORMAT,o(),0),je){case"@":return j.next(),fe=v(q,7,"@"),q.inLinked=!0,fe;case".":return I(j),j.next(),v(q,8,".");case":":return I(j),j.next(),v(q,9,":");default:return U(j)?(fe=v(q,1,K(j)),q.braceNest=0,q.inLinked=!1,fe):B(j,q)||W(j,q)?(I(j),pe(j,q)):N(j,q)?(I(j),v(q,11,pt(j))):V(j,q)?(I(j),je==="{"?ee(j,q)||fe:v(q,10,G(j))):(te===7&&h(nn.INVALID_LINKED_FORMAT,o(),0),q.braceNest=0,q.inLinked=!1,we(j,q))}}function we(j,q){let te={type:13};if(q.braceNest>0)return ee(j,q)||y(q);if(q.inLinked)return pe(j,q)||y(q);switch(j.currentChar()){case"{":return ee(j,q)||y(q);case"}":return h(nn.UNBALANCED_CLOSING_BRACE,o(),0),j.next(),v(q,3,"}");case"@":return pe(j,q)||y(q);default:{if(U(j))return te=v(q,1,K(j)),q.braceNest=0,q.inLinked=!1,te;if(ie(j))return v(q,0,It(j));break}}return te}function be(){const{currentType:j,offset:q,startLoc:te,endLoc:fe}=c;return c.lastType=j,c.lastOffset=q,c.lastStartLoc=te,c.lastEndLoc=fe,c.offset=r(),c.startLoc=o(),s.currentChar()===gi?v(c,13):we(s,c)}return{nextToken:be,currentOffset:r,currentPosition:o,context:u}}const Qte="parser",ene=/(?:\\\\|\\'|\\u([0-9a-fA-F]{4})|\\U([0-9a-fA-F]{6}))/g;function tne(e,t,n){switch(e){case"\\\\":return"\\";case"\\'":return"'";default:{const s=parseInt(t||n,16);return s<=55295||s>=57344?String.fromCodePoint(s):"<22>"}}}function nne(e={}){const t=e.location!==!1,{onError:n}=e;function s(C,$,P,A,...R){const B=C.currentPosition();if(B.offset+=A,B.column+=A,n){const N=t?_y(P,B):null,W=Kp($,N,{domain:Qte,args:R});n(W)}}function r(C,$,P){const A={type:C};return t&&(A.start=$,A.end=$,A.loc={start:P,end:P}),A}function o(C,$,P,A){t&&(C.end=$,C.loc&&(C.loc.end=P))}function i(C,$){const P=C.context(),A=r(3,P.offset,P.startLoc);return A.value=$,o(A,C.currentOffset(),C.currentPosition()),A}function a(C,$){const P=C.context(),{lastOffset:A,lastStartLoc:R}=P,B=r(5,A,R);return B.index=parseInt($,10),C.nextToken(),o(B,C.currentOffset(),C.currentPosition()),B}function c(C,$){const P=C.context(),{lastOffset:A,lastStartLoc:R}=P,B=r(4,A,R);return B.key=$,C.nextToken(),o(B,C.currentOffset(),C.currentPosition()),B}function u(C,$){const P=C.context(),{lastOffset:A,lastStartLoc:R}=P,B=r(9,A,R);return B.value=$.replace(ene,tne),C.nextToken(),o(B,C.currentOffset(),C.currentPosition()),B}function f(C){const $=C.nextToken(),P=C.context(),{lastOffset:A,lastStartLoc:R}=P,B=r(8,A,R);return $.type!==11?(s(C,nn.UNEXPECTED_EMPTY_LINKED_MODIFIER,P.lastStartLoc,0),B.value="",o(B,A,R),{nextConsumeToken:$,node:B}):($.value==null&&s(C,nn.UNEXPECTED_LEXICAL_ANALYSIS,P.lastStartLoc,0,Vr($)),B.value=$.value||"",o(B,C.currentOffset(),C.currentPosition()),{node:B})}function h(C,$){const P=C.context(),A=r(7,P.offset,P.startLoc);return A.value=$,o(A,C.currentOffset(),C.currentPosition()),A}function v(C){const $=C.context(),P=r(6,$.offset,$.startLoc);let A=C.nextToken();if(A.type===8){const R=f(C);P.modifier=R.node,A=R.nextConsumeToken||C.nextToken()}switch(A.type!==9&&s(C,nn.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,Vr(A)),A=C.nextToken(),A.type===2&&(A=C.nextToken()),A.type){case 10:A.value==null&&s(C,nn.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,Vr(A)),P.key=h(C,A.value||"");break;case 4:A.value==null&&s(C,nn.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,Vr(A)),P.key=c(C,A.value||"");break;case 5:A.value==null&&s(C,nn.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,Vr(A)),P.key=a(C,A.value||"");break;case 6:A.value==null&&s(C,nn.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,Vr(A)),P.key=u(C,A.value||"");break;default:{s(C,nn.UNEXPECTED_EMPTY_LINKED_KEY,$.lastStartLoc,0);const R=C.context(),B=r(7,R.offset,R.startLoc);return B.value="",o(B,R.offset,R.startLoc),P.key=B,o(P,R.offset,R.startLoc),{nextConsumeToken:A,node:P}}}return o(P,C.currentOffset(),C.currentPosition()),{node:P}}function y(C){const $=C.context(),P=$.currentType===1?C.currentOffset():$.offset,A=$.currentType===1?$.endLoc:$.startLoc,R=r(2,P,A);R.items=[];let B=null;do{const V=B||C.nextToken();switch(B=null,V.type){case 0:V.value==null&&s(C,nn.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,Vr(V)),R.items.push(i(C,V.value||""));break;case 5:V.value==null&&s(C,nn.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,Vr(V)),R.items.push(a(C,V.value||""));break;case 4:V.value==null&&s(C,nn.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,Vr(V)),R.items.push(c(C,V.value||""));break;case 6:V.value==null&&s(C,nn.UNEXPECTED_LEXICAL_ANALYSIS,$.lastStartLoc,0,Vr(V)),R.items.push(u(C,V.value||""));break;case 7:{const U=v(C);R.items.push(U.node),B=U.nextConsumeToken||null;break}}}while($.currentType!==13&&$.currentType!==1);const N=$.currentType===1?$.lastOffset:C.currentOffset(),W=$.currentType===1?$.lastEndLoc:C.currentPosition();return o(R,N,W),R}function S(C,$,P,A){const R=C.context();let B=A.items.length===0;const N=r(1,$,P);N.cases=[],N.cases.push(A);do{const W=y(C);B||(B=W.items.length===0),N.cases.push(W)}while(R.currentType!==13);return B&&s(C,nn.MUST_HAVE_MESSAGES_IN_PLURAL,P,0),o(N,C.currentOffset(),C.currentPosition()),N}function k(C){const $=C.context(),{offset:P,startLoc:A}=$,R=y(C);return $.currentType===13?R:S(C,P,A,R)}function I(C){const $=Zte(C,Wn({},e)),P=$.context(),A=r(0,P.offset,P.startLoc);return t&&A.loc&&(A.loc.source=C),A.body=k($),e.onCacheKey&&(A.cacheKey=e.onCacheKey(C)),P.currentType!==13&&s($,nn.UNEXPECTED_LEXICAL_ANALYSIS,P.lastStartLoc,0,C[P.offset]||""),o(A,$.currentOffset(),$.currentPosition()),A}return{parse:I}}function Vr(e){if(e.type===13)return"EOF";const t=(e.value||"").replace(/\r?\n/gu,"\\n");return t.length>10?t.slice(0,9)+"…":t}function sne(e,t={}){const n={ast:e,helpers:new Set};return{context:()=>n,helper:o=>(n.helpers.add(o),o)}}function M4(e,t){for(let n=0;n<e.length;n++)A2(e[n],t)}function A2(e,t){switch(e.type){case 1:M4(e.cases,t),t.helper("plural");break;case 2:M4(e.items,t);break;case 6:{A2(e.key,t),t.helper("linked"),t.helper("type");break}case 5:t.helper("interpolate"),t.helper("list");break;case 4:t.helper("interpolate"),t.helper("named");break}}function rne(e,t={}){const n=sne(e);n.helper("normalize"),e.body&&A2(e.body,n);const s=n.context();e.helpers=Array.from(s.helpers)}function one(e){const t=e.body;return t.type===2?N4(t):t.cases.forEach(n=>N4(n)),e}function N4(e){if(e.items.length===1){const t=e.items[0];(t.type===3||t.type===9)&&(e.static=t.value,delete t.value)}else{const t=[];for(let n=0;n<e.items.length;n++){const s=e.items[n];if(!(s.type===3||s.type===9)||s.value==null)break;t.push(s.value)}if(t.length===e.items.length){e.static=T2(t);for(let n=0;n<e.items.length;n++){const s=e.items[n];(s.type===3||s.type===9)&&delete s.value}}}}function Tl(e){switch(e.t=e.type,e.type){case 0:{const t=e;Tl(t.body),t.b=t.body,delete t.body;break}case 1:{const t=e,n=t.cases;for(let s=0;s<n.length;s++)Tl(n[s]);t.c=n,delete t.cases;break}case 2:{const t=e,n=t.items;for(let s=0;s<n.length;s++)Tl(n[s]);t.i=n,delete t.items,t.static&&(t.s=t.static,delete t.static);break}case 3:case 9:case 8:case 7:{const t=e;t.value&&(t.v=t.value,delete t.value);break}case 6:{const t=e;Tl(t.key),t.k=t.key,delete t.key,t.modifier&&(Tl(t.modifier),t.m=t.modifier,delete t.modifier);break}case 5:{const t=e;t.i=t.index,delete t.index;break}case 4:{const t=e;t.k=t.key,delete t.key;break}}delete e.type}function ine(e,t){const{filename:n,breakLineCode:s,needIndent:r}=t,o=t.location!==!1,i={filename:n,code:"",column:1,line:1,offset:0,map:void 0,breakLineCode:s,needIndent:r,indentLevel:0};o&&e.loc&&(i.source=e.loc.source);const a=()=>i;function c(k,I){i.code+=k}function u(k,I=!0){const C=I?s:"";c(r?C+" ".repeat(k):C)}function f(k=!0){const I=++i.indentLevel;k&&u(I)}function h(k=!0){const I=--i.indentLevel;k&&u(I)}function v(){u(i.indentLevel)}return{context:a,push:c,indent:f,deindent:h,newline:v,helper:k=>`_${k}`,needIndent:()=>i.needIndent}}function ane(e,t){const{helper:n}=e;e.push(`${n("linked")}(`),xl(e,t.key),t.modifier?(e.push(", "),xl(e,t.modifier),e.push(", _type")):e.push(", undefined, _type"),e.push(")")}function lne(e,t){const{helper:n,needIndent:s}=e;e.push(`${n("normalize")}([`),e.indent(s());const r=t.items.length;for(let o=0;o<r&&(xl(e,t.items[o]),o!==r-1);o++)e.push(", ");e.deindent(s()),e.push("])")}function cne(e,t){const{helper:n,needIndent:s}=e;if(t.cases.length>1){e.push(`${n("plural")}([`),e.indent(s());const r=t.cases.length;for(let o=0;o<r&&(xl(e,t.cases[o]),o!==r-1);o++)e.push(", ");e.deindent(s()),e.push("])")}}function une(e,t){t.body?xl(e,t.body):e.push("null")}function xl(e,t){const{helper:n}=e;switch(t.type){case 0:une(e,t);break;case 1:cne(e,t);break;case 2:lne(e,t);break;case 6:ane(e,t);break;case 8:e.push(JSON.stringify(t.value),t);break;case 7:e.push(JSON.stringify(t.value),t);break;case 5:e.push(`${n("interpolate")}(${n("list")}(${t.index}))`,t);break;case 4:e.push(`${n("interpolate")}(${n("named")}(${JSON.stringify(t.key)}))`,t);break;case 9:e.push(JSON.stringify(t.value),t);break;case 3:e.push(JSON.stringify(t.value),t);break}}const dne=(e,t={})=>{const n=Ye(t.mode)?t.mode:"normal",s=Ye(t.filename)?t.filename:"message.intl";t.sourceMap;const r=t.breakLineCode!=null?t.breakLineCode:n==="arrow"?";":`
`,o=t.needIndent?t.needIndent:n!=="arrow",i=e.helpers||[],a=ine(e,{filename:s,breakLineCode:r,needIndent:o});a.push(n==="normal"?"function __msg__ (ctx) {":"(ctx) => {"),a.indent(o),i.length>0&&(a.push(`const { ${T2(i.map(f=>`${f}: _${f}`),", ")} } = ctx`),a.newline()),a.push("return "),xl(a,e),a.deindent(o),a.push("}"),delete e.helpers;const{code:c,map:u}=a.context();return{ast:e,code:c,map:u?u.toJSON():void 0}};function fne(e,t={}){const n=Wn({},t),s=!!n.jit,r=!!n.minify,o=n.optimize==null?!0:n.optimize,a=nne(n).parse(e);return s?(o&&one(a),r&&Tl(a),{ast:a,code:""}):(rne(a,n),dne(a,n))}/*!
* core-base v11.1.11
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/function hne(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&($a().__INTLIFY_PROD_DEVTOOLS__=!1),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&($a().__INTLIFY_DROP_MESSAGE_COMPILER__=!1)}function so(e){return Kt(e)&&E2(e)===0&&($r(e,"b")||$r(e,"body"))}const WP=["b","body"];function pne(e){return Yi(e,WP)}const GP=["c","cases"];function mne(e){return Yi(e,GP,[])}const KP=["s","static"];function gne(e){return Yi(e,KP)}const xP=["i","items"];function vne(e){return Yi(e,xP,[])}const YP=["t","type"];function E2(e){return Yi(e,YP)}const XP=["v","value"];function Nf(e,t){const n=Yi(e,XP);if(n!=null)return n;throw Xu(t)}const JP=["m","modifier"];function bne(e){return Yi(e,JP)}const ZP=["k","key"];function yne(e){const t=Yi(e,ZP);if(t)return t;throw Xu(6)}function Yi(e,t,n){for(let s=0;s<t.length;s++){const r=t[s];if($r(e,r)&&e[r]!=null)return e[r]}return n}const QP=[...WP,...GP,...KP,...xP,...ZP,...JP,...XP,...YP];function Xu(e){return new Error(`unhandled node type: ${e}`)}function hb(e){return n=>_ne(n,e)}function _ne(e,t){const n=pne(t);if(n==null)throw Xu(0);if(E2(n)===1){const o=mne(n);return e.plural(o.reduce((i,a)=>[...i,F4(e,a)],[]))}else return F4(e,n)}function F4(e,t){const n=gne(t);if(n!=null)return e.type==="text"?n:e.normalize([n]);{const s=vne(t).reduce((r,o)=>[...r,wy(e,o)],[]);return e.normalize(s)}}function wy(e,t){const n=E2(t);switch(n){case 3:return Nf(t,n);case 9:return Nf(t,n);case 4:{const s=t;if($r(s,"k")&&s.k)return e.interpolate(e.named(s.k));if($r(s,"key")&&s.key)return e.interpolate(e.named(s.key));throw Xu(n)}case 5:{const s=t;if($r(s,"i")&&Un(s.i))return e.interpolate(e.list(s.i));if($r(s,"index")&&Un(s.index))return e.interpolate(e.list(s.index));throw Xu(n)}case 6:{const s=t,r=bne(s),o=yne(s);return e.linked(wy(e,o),r?wy(e,r):void 0,e.type)}case 7:return Nf(t,n);case 8:return Nf(t,n);default:throw new Error(`unhandled node on format message part: ${n}`)}}const wne=e=>e;let Ff=an();function Sne(e,t={}){let n=!1;const s=t.onError||Wte;return t.onError=r=>{n=!0,s(r)},{...fne(e,t),detectError:n}}function $ne(e,t){if(!__INTLIFY_DROP_MESSAGE_COMPILER__&&Ye(e)){Vt(t.warnHtmlMessage)&&t.warnHtmlMessage;const s=(t.onCacheKey||wne)(e),r=Ff[s];if(r)return r;const{ast:o,detectError:i}=Sne(e,{...t,location:!1,jit:!0}),a=hb(o);return i?a:Ff[s]=a}else{const n=e.cacheKey;if(n){const s=Ff[n];return s||(Ff[n]=hb(e))}else return hb(e)}}let Ju=null;function kne(e){Ju=e}function Cne(e,t,n){Ju&&Ju.emit("i18n:init",{timestamp:Date.now(),i18n:e,version:t,meta:n})}const Tne=Ane("function:translate");function Ane(e){return t=>Ju&&Ju.emit(e,t)}const Uo={INVALID_ARGUMENT:Vte,INVALID_DATE_ARGUMENT:18,INVALID_ISO_DATE_ARGUMENT:19,NOT_SUPPORT_LOCALE_PROMISE_VALUE:21,NOT_SUPPORT_LOCALE_ASYNC_FUNCTION:22,NOT_SUPPORT_LOCALE_TYPE:23},Ene=24;function jo(e){return Kp(e,null,void 0)}function I2(e,t){return t.locale!=null?D4(t.locale):D4(e.locale)}let pb;function D4(e){if(Ye(e))return e;if(yn(e)){if(e.resolvedOnce&&pb!=null)return pb;if(e.constructor.name==="Function"){const t=e();if(zte(t))throw jo(Uo.NOT_SUPPORT_LOCALE_PROMISE_VALUE);return pb=t}else throw jo(Uo.NOT_SUPPORT_LOCALE_ASYNC_FUNCTION)}else throw jo(Uo.NOT_SUPPORT_LOCALE_TYPE)}function Ine(e,t,n){return[...new Set([n,...Pn(t)?t:Kt(t)?Object.keys(t):Ye(t)?[t]:[n]])]}function eL(e,t,n){const s=Ye(n)?n:Zu,r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let o=r.__localeChainCache.get(s);if(!o){o=[];let i=[n];for(;Pn(i);)i=U4(o,i,t);const a=Pn(t)||!Ft(t)?t:t.default?t.default:null;i=Ye(a)?[a]:a,Pn(i)&&U4(o,i,!1),r.__localeChainCache.set(s,o)}return o}function U4(e,t,n){let s=!0;for(let r=0;r<t.length&&Vt(s);r++){const o=t[r];Ye(o)&&(s=Pne(e,t[r],n))}return s}function Pne(e,t,n){let s;const r=t.split("-");do{const o=r.join("-");s=Lne(e,o,n),r.splice(-1,1)}while(r.length&&s===!0);return s}function Lne(e,t,n){let s=!1;if(!e.includes(t)&&(s=!0,t)){s=t[t.length-1]!=="!";const r=t.replace(/!/g,"");e.push(r),(Pn(n)||Ft(n))&&n[r]&&(s=n[r])}return s}const Xi=[];Xi[0]={w:[0],i:[3,0],"[":[4],o:[7]};Xi[1]={w:[1],".":[2],"[":[4],o:[7]};Xi[2]={w:[2],i:[3,0],0:[3,0]};Xi[3]={i:[3,0],0:[3,0],w:[1,1],".":[2,1],"[":[4,1],o:[7,1]};Xi[4]={"'":[5,0],'"':[6,0],"[":[4,2],"]":[1,3],o:8,l:[4,0]};Xi[5]={"'":[4,0],o:8,l:[5,0]};Xi[6]={'"':[4,0],o:8,l:[6,0]};const One=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function Rne(e){return One.test(e)}function Mne(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function Nne(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function Fne(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:Rne(t)?Mne(t):"*"+t}function Dne(e){const t=[];let n=-1,s=0,r=0,o,i,a,c,u,f,h;const v=[];v[0]=()=>{i===void 0?i=a:i+=a},v[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},v[2]=()=>{v[0](),r++},v[3]=()=>{if(r>0)r--,s=4,v[0]();else{if(r=0,i===void 0||(i=Fne(i),i===!1))return!1;v[1]()}};function y(){const S=e[n+1];if(s===5&&S==="'"||s===6&&S==='"')return n++,a="\\"+S,v[0](),!0}for(;s!==null;)if(n++,o=e[n],!(o==="\\"&&y())){if(c=Nne(o),h=Xi[s],u=h[c]||h.l||8,u===8||(s=u[0],u[1]!==void 0&&(f=v[u[1]],f&&(a=o,f()===!1))))return;if(s===7)return t}}const j4=new Map;function Une(e,t){return Kt(e)?e[t]:null}function jne(e,t){if(!Kt(e))return null;let n=j4.get(t);if(n||(n=Dne(t),n&&j4.set(t,n)),!n)return null;const s=n.length;let r=e,o=0;for(;o<s;){const i=n[o];if(QP.includes(i)&&so(r))return null;const a=r[i];if(a===void 0||yn(r))return null;r=a,o++}return r}const Bne="11.1.11",xp=-1,Zu="en-US",B4="",z4=e=>`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`;function zne(){return{upper:(e,t)=>t==="text"&&Ye(e)?e.toUpperCase():t==="vnode"&&Kt(e)&&"__v_isVNode"in e?e.children.toUpperCase():e,lower:(e,t)=>t==="text"&&Ye(e)?e.toLowerCase():t==="vnode"&&Kt(e)&&"__v_isVNode"in e?e.children.toLowerCase():e,capitalize:(e,t)=>t==="text"&&Ye(e)?z4(e):t==="vnode"&&Kt(e)&&"__v_isVNode"in e?z4(e.children):e}}let tL;function qne(e){tL=e}let nL;function Hne(e){nL=e}let sL;function Vne(e){sL=e}let rL=null;const Wne=e=>{rL=e},Gne=()=>rL;let oL=null;const q4=e=>{oL=e},Kne=()=>oL;let H4=0;function xne(e={}){const t=yn(e.onWarn)?e.onWarn:Mte,n=Ye(e.version)?e.version:Bne,s=Ye(e.locale)||yn(e.locale)?e.locale:Zu,r=yn(s)?Zu:s,o=Pn(e.fallbackLocale)||Ft(e.fallbackLocale)||Ye(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:r,i=Ft(e.messages)?e.messages:mb(r),a=Ft(e.datetimeFormats)?e.datetimeFormats:mb(r),c=Ft(e.numberFormats)?e.numberFormats:mb(r),u=Wn(an(),e.modifiers,zne()),f=e.pluralRules||an(),h=yn(e.missing)?e.missing:null,v=Vt(e.missingWarn)||Kl(e.missingWarn)?e.missingWarn:!0,y=Vt(e.fallbackWarn)||Kl(e.fallbackWarn)?e.fallbackWarn:!0,S=!!e.fallbackFormat,k=!!e.unresolving,I=yn(e.postTranslation)?e.postTranslation:null,C=Ft(e.processor)?e.processor:null,$=Vt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,P=!!e.escapeParameter,A=yn(e.messageCompiler)?e.messageCompiler:tL,R=yn(e.messageResolver)?e.messageResolver:nL||Une,B=yn(e.localeFallbacker)?e.localeFallbacker:sL||Ine,N=Kt(e.fallbackContext)?e.fallbackContext:void 0,W=e,V=Kt(W.__datetimeFormatters)?W.__datetimeFormatters:new Map,U=Kt(W.__numberFormatters)?W.__numberFormatters:new Map,ie=Kt(W.__meta)?W.__meta:{};H4++;const le={version:n,cid:H4,locale:s,fallbackLocale:o,messages:i,modifiers:u,pluralRules:f,missing:h,missingWarn:v,fallbackWarn:y,fallbackFormat:S,unresolving:k,postTranslation:I,processor:C,warnHtmlMessage:$,escapeParameter:P,messageCompiler:A,messageResolver:R,localeFallbacker:B,fallbackContext:N,onWarn:t,__meta:ie};return le.datetimeFormats=a,le.numberFormats=c,le.__datetimeFormatters=V,le.__numberFormatters=U,__INTLIFY_PROD_DEVTOOLS__&&Cne(le,n,ie),le}const mb=e=>({[e]:an()});function P2(e,t,n,s,r){const{missing:o,onWarn:i}=e;if(o!==null){const a=o(e,n,t,r);return Ye(a)?a:t}else return t}function Jc(e,t,n){const s=e;s.__localeChainCache=new Map,e.localeFallbacker(e,n,t)}function Yne(e,t){return e===t?!1:e.split("-")[0]===t.split("-")[0]}function Xne(e,t){const n=t.indexOf(e);if(n===-1)return!1;for(let s=n+1;s<t.length;s++)if(Yne(e,t[s]))return!0;return!1}function V4(e,...t){const{datetimeFormats:n,unresolving:s,fallbackLocale:r,onWarn:o,localeFallbacker:i}=e,{__datetimeFormatters:a}=e,[c,u,f,h]=Sy(...t),v=Vt(f.missingWarn)?f.missingWarn:e.missingWarn;Vt(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const y=!!f.part,S=I2(e,f),k=i(e,r,S);if(!Ye(c)||c==="")return new Intl.DateTimeFormat(S,h).format(u);let I={},C,$=null;const P="datetime format";for(let B=0;B<k.length&&(C=k[B],I=n[C]||{},$=I[c],!Ft($));B++)P2(e,c,C,v,P);if(!Ft($)||!Ye(C))return s?xp:c;let A=`${C}__${c}`;Gp(h)||(A=`${A}__${JSON.stringify(h)}`);let R=a.get(A);return R||(R=new Intl.DateTimeFormat(C,Wn({},$,h)),a.set(A,R)),y?R.formatToParts(u):R.format(u)}const iL=["localeMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName","formatMatcher","hour12","timeZone","dateStyle","timeStyle","calendar","dayPeriod","numberingSystem","hourCycle","fractionalSecondDigits"];function Sy(...e){const[t,n,s,r]=e,o=an();let i=an(),a;if(Ye(t)){const c=t.match(/(\d{4}-\d{2}-\d{2})(T|\s)?(.*)/);if(!c)throw jo(Uo.INVALID_ISO_DATE_ARGUMENT);const u=c[3]?c[3].trim().startsWith("T")?`${c[1].trim()}${c[3].trim()}`:`${c[1].trim()}T${c[3].trim()}`:c[1].trim();a=new Date(u);try{a.toISOString()}catch{throw jo(Uo.INVALID_ISO_DATE_ARGUMENT)}}else if(Dte(t)){if(isNaN(t.getTime()))throw jo(Uo.INVALID_DATE_ARGUMENT);a=t}else if(Un(t))a=t;else throw jo(Uo.INVALID_ARGUMENT);return Ye(n)?o.key=n:Ft(n)&&Object.keys(n).forEach(c=>{iL.includes(c)?i[c]=n[c]:o[c]=n[c]}),Ye(s)?o.locale=s:Ft(s)&&(i=s),Ft(r)&&(i=r),[o.key||"",a,o,i]}function W4(e,t,n){const s=e;for(const r in n){const o=`${t}__${r}`;s.__datetimeFormatters.has(o)&&s.__datetimeFormatters.delete(o)}}function G4(e,...t){const{numberFormats:n,unresolving:s,fallbackLocale:r,onWarn:o,localeFallbacker:i}=e,{__numberFormatters:a}=e,[c,u,f,h]=$y(...t),v=Vt(f.missingWarn)?f.missingWarn:e.missingWarn;Vt(f.fallbackWarn)?f.fallbackWarn:e.fallbackWarn;const y=!!f.part,S=I2(e,f),k=i(e,r,S);if(!Ye(c)||c==="")return new Intl.NumberFormat(S,h).format(u);let I={},C,$=null;const P="number format";for(let B=0;B<k.length&&(C=k[B],I=n[C]||{},$=I[c],!Ft($));B++)P2(e,c,C,v,P);if(!Ft($)||!Ye(C))return s?xp:c;let A=`${C}__${c}`;Gp(h)||(A=`${A}__${JSON.stringify(h)}`);let R=a.get(A);return R||(R=new Intl.NumberFormat(C,Wn({},$,h)),a.set(A,R)),y?R.formatToParts(u):R.format(u)}const aL=["localeMatcher","style","currency","currencyDisplay","currencySign","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","compactDisplay","notation","signDisplay","unit","unitDisplay","roundingMode","roundingPriority","roundingIncrement","trailingZeroDisplay"];function $y(...e){const[t,n,s,r]=e,o=an();let i=an();if(!Un(t))throw jo(Uo.INVALID_ARGUMENT);const a=t;return Ye(n)?o.key=n:Ft(n)&&Object.keys(n).forEach(c=>{aL.includes(c)?i[c]=n[c]:o[c]=n[c]}),Ye(s)?o.locale=s:Ft(s)&&(i=s),Ft(r)&&(i=r),[o.key||"",a,o,i]}function K4(e,t,n){const s=e;for(const r in n){const o=`${t}__${r}`;s.__numberFormatters.has(o)&&s.__numberFormatters.delete(o)}}const Jne=e=>e,Zne=e=>"",Qne="text",ese=e=>e.length===0?"":T2(e),tse=qte;function x4(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function nse(e){const t=Un(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(Un(e.named.count)||Un(e.named.n))?Un(e.named.count)?e.named.count:Un(e.named.n)?e.named.n:t:t}function sse(e,t){t.count||(t.count=e),t.n||(t.n=e)}function rse(e={}){const t=e.locale,n=nse(e),s=Kt(e.pluralRules)&&Ye(t)&&yn(e.pluralRules[t])?e.pluralRules[t]:x4,r=Kt(e.pluralRules)&&Ye(t)&&yn(e.pluralRules[t])?x4:void 0,o=C=>C[s(n,C.length,r)],i=e.list||[],a=C=>i[C],c=e.named||an();Un(e.pluralIndex)&&sse(n,c);const u=C=>c[C];function f(C,$){const P=yn(e.messages)?e.messages(C,!!$):Kt(e.messages)?e.messages[C]:!1;return P||(e.parent?e.parent.message(C):Zne)}const h=C=>e.modifiers?e.modifiers[C]:Jne,v=Ft(e.processor)&&yn(e.processor.normalize)?e.processor.normalize:ese,y=Ft(e.processor)&&yn(e.processor.interpolate)?e.processor.interpolate:tse,S=Ft(e.processor)&&Ye(e.processor.type)?e.processor.type:Qne,I={list:a,named:u,plural:o,linked:(C,...$)=>{const[P,A]=$;let R="text",B="";$.length===1?Kt(P)?(B=P.modifier||B,R=P.type||R):Ye(P)&&(B=P||B):$.length===2&&(Ye(P)&&(B=P||B),Ye(A)&&(R=A||R));const N=f(C,!0)(I),W=R==="vnode"&&Pn(N)&&B?N[0]:N;return B?h(B)(W,R):W},message:f,type:S,interpolate:y,normalize:v,values:Wn(an(),i,c)};return I}const Y4=()=>"",pr=e=>yn(e);function X4(e,...t){const{fallbackFormat:n,postTranslation:s,unresolving:r,messageCompiler:o,fallbackLocale:i,messages:a}=e,[c,u]=ky(...t),f=Vt(u.missingWarn)?u.missingWarn:e.missingWarn,h=Vt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn,v=Vt(u.escapeParameter)?u.escapeParameter:e.escapeParameter,y=!!u.resolvedMessage,S=Ye(u.default)||Vt(u.default)?Vt(u.default)?o?c:()=>c:u.default:n?o?c:()=>c:null,k=n||S!=null&&(Ye(S)||yn(S)),I=I2(e,u);v&&ose(u);let[C,$,P]=y?[c,I,a[I]||an()]:lL(e,c,I,i,h,f),A=C,R=c;if(!y&&!(Ye(A)||so(A)||pr(A))&&k&&(A=S,R=A),!y&&(!(Ye(A)||so(A)||pr(A))||!Ye($)))return r?xp:c;let B=!1;const N=()=>{B=!0},W=pr(A)?A:cL(e,c,$,A,R,N);if(B)return A;const V=lse(e,$,P,u),U=rse(V),ie=ise(e,W,U);let le=s?s(ie,c):ie;if(v&&Ye(le)&&(le=jte(le)),__INTLIFY_PROD_DEVTOOLS__){const Pe={timestamp:Date.now(),key:Ye(c)?c:pr(A)?A.key:"",locale:$||(pr(A)?A.locale:""),format:Ye(A)?A:pr(A)?A.source:"",message:le};Pe.meta=Wn({},e.__meta,Gne()||{}),Tne(Pe)}return le}function ose(e){Pn(e.list)?e.list=e.list.map(t=>Ye(t)?L4(t):t):Kt(e.named)&&Object.keys(e.named).forEach(t=>{Ye(e.named[t])&&(e.named[t]=L4(e.named[t]))})}function lL(e,t,n,s,r,o){const{messages:i,onWarn:a,messageResolver:c,localeFallbacker:u}=e,f=u(e,s,n);let h=an(),v,y=null;const S="translate";for(let k=0;k<f.length&&(v=f[k],h=i[v]||an(),(y=c(h,t))===null&&(y=h[t]),!(Ye(y)||so(y)||pr(y)));k++)if(!Xne(v,f)){const I=P2(e,t,v,o,S);I!==t&&(y=I)}return[y,v,h]}function cL(e,t,n,s,r,o){const{messageCompiler:i,warnHtmlMessage:a}=e;if(pr(s)){const u=s;return u.locale=u.locale||n,u.key=u.key||t,u}if(i==null){const u=()=>s;return u.locale=n,u.key=t,u}const c=i(s,ase(e,n,r,s,a,o));return c.locale=n,c.key=t,c.source=s,c}function ise(e,t,n){return t(n)}function ky(...e){const[t,n,s]=e,r=an();if(!Ye(t)&&!Un(t)&&!pr(t)&&!so(t))throw jo(Uo.INVALID_ARGUMENT);const o=Un(t)?String(t):(pr(t),t);return Un(n)?r.plural=n:Ye(n)?r.default=n:Ft(n)&&!Gp(n)?r.named=n:Pn(n)&&(r.list=n),Un(s)?r.plural=s:Ye(s)?r.default=s:Ft(s)&&Wn(r,s),[o,r]}function ase(e,t,n,s,r,o){return{locale:t,key:n,warnHtmlMessage:r,onError:i=>{throw o&&o(i),i},onCacheKey:i=>Nte(t,n,i)}}function lse(e,t,n,s){const{modifiers:r,pluralRules:o,messageResolver:i,fallbackLocale:a,fallbackWarn:c,missingWarn:u,fallbackContext:f}=e,v={locale:t,modifiers:r,pluralRules:o,messages:(y,S)=>{let k=i(n,y);if(k==null&&(f||S)){const[,,I]=lL(f||e,y,t,a,c,u);k=i(I,y)}if(Ye(k)||so(k)){let I=!1;const $=cL(e,y,t,k,y,()=>{I=!0});return I?Y4:$}else return pr(k)?k:Y4}};return e.processor&&(v.processor=e.processor),s.list&&(v.list=s.list),s.named&&(v.named=s.named),Un(s.plural)&&(v.pluralIndex=s.plural),v}hne();/*!
* vue-i18n v11.1.11
* (c) 2025 kazuya kawaguchi
* Released under the MIT License.
*/const cse="11.1.11";function use(){typeof __VUE_I18N_FULL_INSTALL__!="boolean"&&($a().__VUE_I18N_FULL_INSTALL__=!0),typeof __VUE_I18N_LEGACY_API__!="boolean"&&($a().__VUE_I18N_LEGACY_API__=!0),typeof __INTLIFY_DROP_MESSAGE_COMPILER__!="boolean"&&($a().__INTLIFY_DROP_MESSAGE_COMPILER__=!1),typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&($a().__INTLIFY_PROD_DEVTOOLS__=!1)}const Ms={UNEXPECTED_RETURN_TYPE:Ene,INVALID_ARGUMENT:25,MUST_BE_CALL_SETUP_TOP:26,NOT_INSTALLED:27,REQUIRED_VALUE:28,INVALID_VALUE:29,NOT_INSTALLED_WITH_PROVIDE:31,UNEXPECTED_ERROR:32};function Xs(e,...t){return Kp(e,null,void 0)}const Cy=xi("__translateVNode"),Ty=xi("__datetimeParts"),Ay=xi("__numberParts"),uL=xi("__setPluralRules"),dL=xi("__injectWithOption"),Ey=xi("__dispose");function Qu(e){if(!Kt(e)||so(e))return e;for(const t in e)if($r(e,t))if(!t.includes("."))Kt(e[t])&&Qu(e[t]);else{const n=t.split("."),s=n.length-1;let r=e,o=!1;for(let i=0;i<s;i++){if(n[i]==="__proto__")throw new Error(`unsafe key: ${n[i]}`);if(n[i]in r||(r[n[i]]=an()),!Kt(r[n[i]])){o=!0;break}r=r[n[i]]}if(o||(so(r)?QP.includes(n[s])||delete e[t]:(r[n[s]]=e[t],delete e[t])),!so(r)){const i=r[n[s]];Kt(i)&&Qu(i)}}return e}function L2(e,t){const{messages:n,__i18n:s,messageResolver:r,flatJson:o}=t,i=Ft(n)?n:Pn(s)?an():{[e]:an()};if(Pn(s)&&s.forEach(a=>{if("locale"in a&&"resource"in a){const{locale:c,resource:u}=a;c?(i[c]=i[c]||an(),th(u,i[c])):th(u,i)}else Ye(a)&&th(JSON.parse(a),i)}),r==null&&o)for(const a in i)$r(i,a)&&Qu(i[a]);return i}function fL(e){return e.type}function hL(e,t,n){let s=Kt(t.messages)?t.messages:an();"__i18nGlobal"in n&&(s=L2(e.locale.value,{messages:s,__i18n:n.__i18nGlobal}));const r=Object.keys(s);r.length&&r.forEach(o=>{e.mergeLocaleMessage(o,s[o])});{if(Kt(t.datetimeFormats)){const o=Object.keys(t.datetimeFormats);o.length&&o.forEach(i=>{e.mergeDateTimeFormat(i,t.datetimeFormats[i])})}if(Kt(t.numberFormats)){const o=Object.keys(t.numberFormats);o.length&&o.forEach(i=>{e.mergeNumberFormat(i,t.numberFormats[i])})}}}function J4(e){return T(ad,null,e,0)}const Z4="__INTLIFY_META__",Q4=()=>[],dse=()=>!1;let eT=0;function tT(e){return(t,n,s,r)=>e(n,s,ro()||void 0,r)}const fse=()=>{const e=ro();let t=null;return e&&(t=fL(e)[Z4])?{[Z4]:t}:null};function O2(e={}){const{__root:t,__injectWithOption:n}=e,s=t===void 0,r=e.flatJson,o=Nh?Kn:l8;let i=Vt(e.inheritLocale)?e.inheritLocale:!0;const a=o(t&&i?t.locale.value:Ye(e.locale)?e.locale:Zu),c=o(t&&i?t.fallbackLocale.value:Ye(e.fallbackLocale)||Pn(e.fallbackLocale)||Ft(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:a.value),u=o(L2(a.value,e)),f=o(Ft(e.datetimeFormats)?e.datetimeFormats:{[a.value]:{}}),h=o(Ft(e.numberFormats)?e.numberFormats:{[a.value]:{}});let v=t?t.missingWarn:Vt(e.missingWarn)||Kl(e.missingWarn)?e.missingWarn:!0,y=t?t.fallbackWarn:Vt(e.fallbackWarn)||Kl(e.fallbackWarn)?e.fallbackWarn:!0,S=t?t.fallbackRoot:Vt(e.fallbackRoot)?e.fallbackRoot:!0,k=!!e.fallbackFormat,I=yn(e.missing)?e.missing:null,C=yn(e.missing)?tT(e.missing):null,$=yn(e.postTranslation)?e.postTranslation:null,P=t?t.warnHtmlMessage:Vt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,A=!!e.escapeParameter;const R=t?t.modifiers:Ft(e.modifiers)?e.modifiers:{};let B=e.pluralRules||t&&t.pluralRules,N;N=(()=>{s&&q4(null);const re={version:cse,locale:a.value,fallbackLocale:c.value,messages:u.value,modifiers:R,pluralRules:B,missing:C===null?void 0:C,missingWarn:v,fallbackWarn:y,fallbackFormat:k,unresolving:!0,postTranslation:$===null?void 0:$,warnHtmlMessage:P,escapeParameter:A,messageResolver:e.messageResolver,messageCompiler:e.messageCompiler,__meta:{framework:"vue"}};re.datetimeFormats=f.value,re.numberFormats=h.value,re.__datetimeFormatters=Ft(N)?N.__datetimeFormatters:void 0,re.__numberFormatters=Ft(N)?N.__numberFormatters:void 0;const me=xne(re);return s&&q4(me),me})(),Jc(N,a.value,c.value);function V(){return[a.value,c.value,u.value,f.value,h.value]}const U=vt({get:()=>a.value,set:re=>{N.locale=re,a.value=re}}),ie=vt({get:()=>c.value,set:re=>{N.fallbackLocale=re,c.value=re,Jc(N,a.value,re)}}),le=vt(()=>u.value),Pe=vt(()=>f.value),qe=vt(()=>h.value);function Ke(){return yn($)?$:null}function Ge(re){$=re,N.postTranslation=re}function ze(){return I}function ot(re){re!==null&&(C=tT(re)),I=re,N.missing=C}const Ct=(re,me,xe,rt,ut,Qt)=>{V();let Wt;try{__INTLIFY_PROD_DEVTOOLS__,s||(N.fallbackContext=t?Kne():void 0),Wt=re(N)}finally{__INTLIFY_PROD_DEVTOOLS__,s||(N.fallbackContext=void 0)}if(xe!=="translate exists"&&Un(Wt)&&Wt===xp||xe==="translate exists"&&!Wt){const[En,On]=me();return t&&S?rt(t):ut(En)}else{if(Qt(Wt))return Wt;throw Xs(Ms.UNEXPECTED_RETURN_TYPE)}};function dt(...re){return Ct(me=>Reflect.apply(X4,null,[me,...re]),()=>ky(...re),"translate",me=>Reflect.apply(me.t,me,[...re]),me=>me,me=>Ye(me))}function bt(...re){const[me,xe,rt]=re;if(rt&&!Kt(rt))throw Xs(Ms.INVALID_ARGUMENT);return dt(me,xe,Wn({resolvedMessage:!0},rt||{}))}function It(...re){return Ct(me=>Reflect.apply(V4,null,[me,...re]),()=>Sy(...re),"datetime format",me=>Reflect.apply(me.d,me,[...re]),()=>B4,me=>Ye(me)||Pn(me))}function nt(...re){return Ct(me=>Reflect.apply(G4,null,[me,...re]),()=>$y(...re),"number format",me=>Reflect.apply(me.n,me,[...re]),()=>B4,me=>Ye(me)||Pn(me))}function _t(re){return re.map(me=>Ye(me)||Un(me)||Vt(me)?J4(String(me)):me)}const Ht={normalize:_t,interpolate:re=>re,type:"vnode"};function _e(...re){return Ct(me=>{let xe;const rt=me;try{rt.processor=Ht,xe=Reflect.apply(X4,null,[rt,...re])}finally{rt.processor=null}return xe},()=>ky(...re),"translate",me=>me[Cy](...re),me=>[J4(me)],me=>Pn(me))}function Me(...re){return Ct(me=>Reflect.apply(G4,null,[me,...re]),()=>$y(...re),"number format",me=>me[Ay](...re),Q4,me=>Ye(me)||Pn(me))}function Fe(...re){return Ct(me=>Reflect.apply(V4,null,[me,...re]),()=>Sy(...re),"datetime format",me=>me[Ty](...re),Q4,me=>Ye(me)||Pn(me))}function Ue(re){B=re,N.pluralRules=B}function pt(re,me){return Ct(()=>{if(!re)return!1;const xe=Ye(me)?me:a.value,rt=ee(xe),ut=N.messageResolver(rt,re);return so(ut)||pr(ut)||Ye(ut)},()=>[re],"translate exists",xe=>Reflect.apply(xe.te,xe,[re,me]),dse,xe=>Vt(xe))}function G(re){let me=null;const xe=eL(N,c.value,a.value);for(let rt=0;rt<xe.length;rt++){const ut=u.value[xe[rt]]||{},Qt=N.messageResolver(ut,re);if(Qt!=null){me=Qt;break}}return me}function K(re){const me=G(re);return me??(t?t.tm(re)||{}:{})}function ee(re){return u.value[re]||{}}function pe(re,me){if(r){const xe={[re]:me};for(const rt in xe)$r(xe,rt)&&Qu(xe[rt]);me=xe[re]}u.value[re]=me,N.messages=u.value}function we(re,me){u.value[re]=u.value[re]||{};const xe={[re]:me};if(r)for(const rt in xe)$r(xe,rt)&&Qu(xe[rt]);me=xe[re],th(me,u.value[re]),N.messages=u.value}function be(re){return f.value[re]||{}}function j(re,me){f.value[re]=me,N.datetimeFormats=f.value,W4(N,re,me)}function q(re,me){f.value[re]=Wn(f.value[re]||{},me),N.datetimeFormats=f.value,W4(N,re,me)}function te(re){return h.value[re]||{}}function fe(re,me){h.value[re]=me,N.numberFormats=h.value,K4(N,re,me)}function je(re,me){h.value[re]=Wn(h.value[re]||{},me),N.numberFormats=h.value,K4(N,re,me)}eT++,t&&Nh&&(os(t.locale,re=>{i&&(a.value=re,N.locale=re,Jc(N,a.value,c.value))}),os(t.fallbackLocale,re=>{i&&(c.value=re,N.fallbackLocale=re,Jc(N,a.value,c.value))}));const $e={id:eT,locale:U,fallbackLocale:ie,get inheritLocale(){return i},set inheritLocale(re){i=re,re&&t&&(a.value=t.locale.value,c.value=t.fallbackLocale.value,Jc(N,a.value,c.value))},get availableLocales(){return Object.keys(u.value).sort()},messages:le,get modifiers(){return R},get pluralRules(){return B||{}},get isGlobal(){return s},get missingWarn(){return v},set missingWarn(re){v=re,N.missingWarn=v},get fallbackWarn(){return y},set fallbackWarn(re){y=re,N.fallbackWarn=y},get fallbackRoot(){return S},set fallbackRoot(re){S=re},get fallbackFormat(){return k},set fallbackFormat(re){k=re,N.fallbackFormat=k},get warnHtmlMessage(){return P},set warnHtmlMessage(re){P=re,N.warnHtmlMessage=re},get escapeParameter(){return A},set escapeParameter(re){A=re,N.escapeParameter=re},t:dt,getLocaleMessage:ee,setLocaleMessage:pe,mergeLocaleMessage:we,getPostTranslationHandler:Ke,setPostTranslationHandler:Ge,getMissingHandler:ze,setMissingHandler:ot,[uL]:Ue};return $e.datetimeFormats=Pe,$e.numberFormats=qe,$e.rt=bt,$e.te=pt,$e.tm=K,$e.d=It,$e.n=nt,$e.getDateTimeFormat=be,$e.setDateTimeFormat=j,$e.mergeDateTimeFormat=q,$e.getNumberFormat=te,$e.setNumberFormat=fe,$e.mergeNumberFormat=je,$e[dL]=n,$e[Cy]=_e,$e[Ty]=Fe,$e[Ay]=Me,$e}function hse(e){const t=Ye(e.locale)?e.locale:Zu,n=Ye(e.fallbackLocale)||Pn(e.fallbackLocale)||Ft(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:t,s=yn(e.missing)?e.missing:void 0,r=Vt(e.silentTranslationWarn)||Kl(e.silentTranslationWarn)?!e.silentTranslationWarn:!0,o=Vt(e.silentFallbackWarn)||Kl(e.silentFallbackWarn)?!e.silentFallbackWarn:!0,i=Vt(e.fallbackRoot)?e.fallbackRoot:!0,a=!!e.formatFallbackMessages,c=Ft(e.modifiers)?e.modifiers:{},u=e.pluralizationRules,f=yn(e.postTranslation)?e.postTranslation:void 0,h=Ye(e.warnHtmlInMessage)?e.warnHtmlInMessage!=="off":!0,v=!!e.escapeParameterHtml,y=Vt(e.sync)?e.sync:!0;let S=e.messages;if(Ft(e.sharedMessages)){const R=e.sharedMessages;S=Object.keys(R).reduce((N,W)=>{const V=N[W]||(N[W]={});return Wn(V,R[W]),N},S||{})}const{__i18n:k,__root:I,__injectWithOption:C}=e,$=e.datetimeFormats,P=e.numberFormats,A=e.flatJson;return{locale:t,fallbackLocale:n,messages:S,flatJson:A,datetimeFormats:$,numberFormats:P,missing:s,missingWarn:r,fallbackWarn:o,fallbackRoot:i,fallbackFormat:a,modifiers:c,pluralRules:u,postTranslation:f,warnHtmlMessage:h,escapeParameter:v,messageResolver:e.messageResolver,inheritLocale:y,__i18n:k,__root:I,__injectWithOption:C}}function Iy(e={}){const t=O2(hse(e)),{__extender:n}=e,s={id:t.id,get locale(){return t.locale.value},set locale(r){t.locale.value=r},get fallbackLocale(){return t.fallbackLocale.value},set fallbackLocale(r){t.fallbackLocale.value=r},get messages(){return t.messages.value},get datetimeFormats(){return t.datetimeFormats.value},get numberFormats(){return t.numberFormats.value},get availableLocales(){return t.availableLocales},get missing(){return t.getMissingHandler()},set missing(r){t.setMissingHandler(r)},get silentTranslationWarn(){return Vt(t.missingWarn)?!t.missingWarn:t.missingWarn},set silentTranslationWarn(r){t.missingWarn=Vt(r)?!r:r},get silentFallbackWarn(){return Vt(t.fallbackWarn)?!t.fallbackWarn:t.fallbackWarn},set silentFallbackWarn(r){t.fallbackWarn=Vt(r)?!r:r},get modifiers(){return t.modifiers},get formatFallbackMessages(){return t.fallbackFormat},set formatFallbackMessages(r){t.fallbackFormat=r},get postTranslation(){return t.getPostTranslationHandler()},set postTranslation(r){t.setPostTranslationHandler(r)},get sync(){return t.inheritLocale},set sync(r){t.inheritLocale=r},get warnHtmlInMessage(){return t.warnHtmlMessage?"warn":"off"},set warnHtmlInMessage(r){t.warnHtmlMessage=r!=="off"},get escapeParameterHtml(){return t.escapeParameter},set escapeParameterHtml(r){t.escapeParameter=r},get pluralizationRules(){return t.pluralRules||{}},__composer:t,t(...r){return Reflect.apply(t.t,t,[...r])},rt(...r){return Reflect.apply(t.rt,t,[...r])},te(r,o){return t.te(r,o)},tm(r){return t.tm(r)},getLocaleMessage(r){return t.getLocaleMessage(r)},setLocaleMessage(r,o){t.setLocaleMessage(r,o)},mergeLocaleMessage(r,o){t.mergeLocaleMessage(r,o)},d(...r){return Reflect.apply(t.d,t,[...r])},getDateTimeFormat(r){return t.getDateTimeFormat(r)},setDateTimeFormat(r,o){t.setDateTimeFormat(r,o)},mergeDateTimeFormat(r,o){t.mergeDateTimeFormat(r,o)},n(...r){return Reflect.apply(t.n,t,[...r])},getNumberFormat(r){return t.getNumberFormat(r)},setNumberFormat(r,o){t.setNumberFormat(r,o)},mergeNumberFormat(r,o){t.mergeNumberFormat(r,o)}};return s.__extender=n,s}function pse(e,t,n){return{beforeCreate(){const s=ro();if(!s)throw Xs(Ms.UNEXPECTED_ERROR);const r=this.$options;if(r.i18n){const o=r.i18n;if(r.__i18n&&(o.__i18n=r.__i18n),o.__root=t,this===this.$root)this.$i18n=nT(e,o);else{o.__injectWithOption=!0,o.__extender=n.__vueI18nExtend,this.$i18n=Iy(o);const i=this.$i18n;i.__extender&&(i.__disposer=i.__extender(this.$i18n))}}else if(r.__i18n)if(this===this.$root)this.$i18n=nT(e,r);else{this.$i18n=Iy({__i18n:r.__i18n,__injectWithOption:!0,__extender:n.__vueI18nExtend,__root:t});const o=this.$i18n;o.__extender&&(o.__disposer=o.__extender(this.$i18n))}else this.$i18n=e;r.__i18nGlobal&&hL(t,r,r),this.$t=(...o)=>this.$i18n.t(...o),this.$rt=(...o)=>this.$i18n.rt(...o),this.$te=(o,i)=>this.$i18n.te(o,i),this.$d=(...o)=>this.$i18n.d(...o),this.$n=(...o)=>this.$i18n.n(...o),this.$tm=o=>this.$i18n.tm(o),n.__setInstance(s,this.$i18n)},mounted(){},unmounted(){const s=ro();if(!s)throw Xs(Ms.UNEXPECTED_ERROR);const r=this.$i18n;delete this.$t,delete this.$rt,delete this.$te,delete this.$d,delete this.$n,delete this.$tm,r.__disposer&&(r.__disposer(),delete r.__disposer,delete r.__extender),n.__deleteInstance(s),delete this.$i18n}}}function nT(e,t){e.locale=t.locale||e.locale,e.fallbackLocale=t.fallbackLocale||e.fallbackLocale,e.missing=t.missing||e.missing,e.silentTranslationWarn=t.silentTranslationWarn||e.silentFallbackWarn,e.silentFallbackWarn=t.silentFallbackWarn||e.silentFallbackWarn,e.formatFallbackMessages=t.formatFallbackMessages||e.formatFallbackMessages,e.postTranslation=t.postTranslation||e.postTranslation,e.warnHtmlInMessage=t.warnHtmlInMessage||e.warnHtmlInMessage,e.escapeParameterHtml=t.escapeParameterHtml||e.escapeParameterHtml,e.sync=t.sync||e.sync,e.__composer[uL](t.pluralizationRules||e.pluralizationRules);const n=L2(e.locale,{messages:t.messages,__i18n:t.__i18n});return Object.keys(n).forEach(s=>e.mergeLocaleMessage(s,n[s])),t.datetimeFormats&&Object.keys(t.datetimeFormats).forEach(s=>e.mergeDateTimeFormat(s,t.datetimeFormats[s])),t.numberFormats&&Object.keys(t.numberFormats).forEach(s=>e.mergeNumberFormat(s,t.numberFormats[s])),e}const R2={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}};function mse({slots:e},t){return t.length===1&&t[0]==="default"?(e.default?e.default():[]).reduce((s,r)=>[...s,...r.type===Se?r.children:[r]],[]):t.reduce((n,s)=>{const r=e[s];return r&&(n[s]=r()),n},an())}function pL(){return Se}const gse=Wi({name:"i18n-t",props:Wn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>Un(e)||!isNaN(e)}},R2),setup(e,t){const{slots:n,attrs:s}=t,r=e.i18n||M2({useScope:e.scope,__useComponent:!0});return()=>{const o=Object.keys(n).filter(h=>h[0]!=="_"),i=an();e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=Ye(e.plural)?+e.plural:e.plural);const a=mse(t,o),c=r[Cy](e.keypath,a,i),u=Wn(an(),s),f=Ye(e.tag)||Kt(e.tag)?e.tag:pL();return Zo(f,u,c)}}}),sT=gse;function vse(e){return Pn(e)&&!Ye(e[0])}function mL(e,t,n,s){const{slots:r,attrs:o}=t;return()=>{const i={part:!0};let a=an();e.locale&&(i.locale=e.locale),Ye(e.format)?i.key=e.format:Kt(e.format)&&(Ye(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((v,y)=>n.includes(y)?Wn(an(),v,{[y]:e.format[y]}):v,an()));const c=s(e.value,i,a);let u=[i.key];Pn(c)?u=c.map((v,y)=>{const S=r[v.type],k=S?S({[v.type]:v.value,index:y,parts:c}):[v.value];return vse(k)&&(k[0].key=`${v.type}-${y}`),k}):Ye(c)&&(u=[c]);const f=Wn(an(),o),h=Ye(e.tag)||Kt(e.tag)?e.tag:pL();return Zo(h,f,u)}}const bse=Wi({name:"i18n-n",props:Wn({value:{type:Number,required:!0},format:{type:[String,Object]}},R2),setup(e,t){const n=e.i18n||M2({useScope:e.scope,__useComponent:!0});return mL(e,t,aL,(...s)=>n[Ay](...s))}}),rT=bse;function yse(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const s=n.__getInstance(t);return s!=null?s.__composer:e.global.__composer}}function _se(e){const t=i=>{const{instance:a,value:c}=i;if(!a||!a.$)throw Xs(Ms.UNEXPECTED_ERROR);const u=yse(e,a.$),f=oT(c);return[Reflect.apply(u.t,u,[...iT(f)]),u]};return{created:(i,a)=>{const[c,u]=t(a);Nh&&e.global===u&&(i.__i18nWatcher=os(u.locale,()=>{a.instance&&a.instance.$forceUpdate()})),i.__composer=u,i.textContent=c},unmounted:i=>{Nh&&i.__i18nWatcher&&(i.__i18nWatcher(),i.__i18nWatcher=void 0,delete i.__i18nWatcher),i.__composer&&(i.__composer=void 0,delete i.__composer)},beforeUpdate:(i,{value:a})=>{if(i.__composer){const c=i.__composer,u=oT(a);i.textContent=Reflect.apply(c.t,c,[...iT(u)])}},getSSRProps:i=>{const[a]=t(i);return{textContent:a}}}}function oT(e){if(Ye(e))return{path:e};if(Ft(e)){if(!("path"in e))throw Xs(Ms.REQUIRED_VALUE,"path");return e}else throw Xs(Ms.INVALID_VALUE)}function iT(e){const{path:t,locale:n,args:s,choice:r,plural:o}=e,i={},a=s||{};return Ye(n)&&(i.locale=n),Un(r)&&(i.plural=r),Un(o)&&(i.plural=o),[t,a,i]}function wse(e,t,...n){const s=Ft(n[0])?n[0]:{};(Vt(s.globalInstall)?s.globalInstall:!0)&&([sT.name,"I18nT"].forEach(o=>e.component(o,sT)),[rT.name,"I18nN"].forEach(o=>e.component(o,rT)),[lT.name,"I18nD"].forEach(o=>e.component(o,lT))),e.directive("t",_se(t))}const Sse=xi("global-vue-i18n");function $se(e={}){const t=__VUE_I18N_LEGACY_API__&&Vt(e.legacy)?e.legacy:__VUE_I18N_LEGACY_API__,n=Vt(e.globalInjection)?e.globalInjection:!0,s=new Map,[r,o]=kse(e,t),i=xi("");function a(h){return s.get(h)||null}function c(h,v){s.set(h,v)}function u(h){s.delete(h)}const f={get mode(){return __VUE_I18N_LEGACY_API__&&t?"legacy":"composition"},async install(h,...v){if(h.__VUE_I18N_SYMBOL__=i,h.provide(h.__VUE_I18N_SYMBOL__,f),Ft(v[0])){const k=v[0];f.__composerExtend=k.__composerExtend,f.__vueI18nExtend=k.__vueI18nExtend}let y=null;!t&&n&&(y=Ose(h,f.global)),__VUE_I18N_FULL_INSTALL__&&wse(h,f,...v),__VUE_I18N_LEGACY_API__&&t&&h.mixin(pse(o,o.__composer,f));const S=h.unmount;h.unmount=()=>{y&&y(),f.dispose(),S()}},get global(){return o},dispose(){r.stop()},__instances:s,__getInstance:a,__setInstance:c,__deleteInstance:u};return f}function M2(e={}){const t=ro();if(t==null)throw Xs(Ms.MUST_BE_CALL_SETUP_TOP);if(!t.isCE&&t.appContext.app!=null&&!t.appContext.app.__VUE_I18N_SYMBOL__)throw Xs(Ms.NOT_INSTALLED);const n=Cse(t),s=Ase(n),r=fL(t),o=Tse(e,r);if(o==="global")return hL(s,e,r),s;if(o==="parent"){let c=Ese(n,t,e.__useComponent);return c==null&&(c=s),c}const i=n;let a=i.__getInstance(t);if(a==null){const c=Wn({},e);"__i18n"in r&&(c.__i18n=r.__i18n),s&&(c.__root=s),a=O2(c),i.__composerExtend&&(a[Ey]=i.__composerExtend(a)),Pse(i,t,a),i.__setInstance(t,a)}return a}function kse(e,t){const n=sp(),s=__VUE_I18N_LEGACY_API__&&t?n.run(()=>Iy(e)):n.run(()=>O2(e));if(s==null)throw Xs(Ms.UNEXPECTED_ERROR);return[n,s]}function Cse(e){const t=Ys(e.isCE?Sse:e.appContext.app.__VUE_I18N_SYMBOL__);if(!t)throw Xs(e.isCE?Ms.NOT_INSTALLED_WITH_PROVIDE:Ms.UNEXPECTED_ERROR);return t}function Tse(e,t){return Gp(e)?"__i18n"in t?"local":"global":e.useScope?e.useScope:"local"}function Ase(e){return e.mode==="composition"?e.global:e.global.__composer}function Ese(e,t,n=!1){let s=null;const r=t.root;let o=Ise(t,n);for(;o!=null;){const i=e;if(e.mode==="composition")s=i.__getInstance(o);else if(__VUE_I18N_LEGACY_API__){const a=i.__getInstance(o);a!=null&&(s=a.__composer,n&&s&&!s[dL]&&(s=null))}if(s!=null||r===o)break;o=o.parent}return s}function Ise(e,t=!1){return e==null?null:t&&e.vnode.ctx||e.parent}function Pse(e,t,n){lp(()=>{},t),i_(()=>{const s=n;e.__deleteInstance(t);const r=s[Ey];r&&(r(),delete s[Ey])},t)}const Lse=["locale","fallbackLocale","availableLocales"],aT=["t","rt","d","n","tm","te"];function Ose(e,t){const n=Object.create(null);return Lse.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o)throw Xs(Ms.UNEXPECTED_ERROR);const i=Sn(o.value)?{get(){return o.value.value},set(a){o.value.value=a}}:{get(){return o.get&&o.get()}};Object.defineProperty(n,r,i)}),e.config.globalProperties.$i18n=n,aT.forEach(r=>{const o=Object.getOwnPropertyDescriptor(t,r);if(!o||!o.value)throw Xs(Ms.UNEXPECTED_ERROR);Object.defineProperty(e.config.globalProperties,`$${r}`,o)}),()=>{delete e.config.globalProperties.$i18n,aT.forEach(r=>{delete e.config.globalProperties[`$${r}`]})}}const Rse=Wi({name:"i18n-d",props:Wn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},R2),setup(e,t){const n=e.i18n||M2({useScope:e.scope,__useComponent:!0});return mL(e,t,iL,(...s)=>n[Ty](...s))}}),lT=Rse;use();qne($ne);Hne(jne);Vne(eL);if(__INTLIFY_PROD_DEVTOOLS__){const e=$a();e.__INTLIFY__=!0,kne(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}var pu={exports:{}};pu.exports;var cT;function Mse(){return cT||(cT=1,function(e,t){var n=200,s="__lodash_hash_undefined__",r=800,o=16,i=9007199254740991,a="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",f="[object Boolean]",h="[object Date]",v="[object Error]",y="[object Function]",S="[object GeneratorFunction]",k="[object Map]",I="[object Number]",C="[object Null]",$="[object Object]",P="[object Proxy]",A="[object RegExp]",R="[object Set]",B="[object String]",N="[object Undefined]",W="[object WeakMap]",V="[object ArrayBuffer]",U="[object DataView]",ie="[object Float32Array]",le="[object Float64Array]",Pe="[object Int8Array]",qe="[object Int16Array]",Ke="[object Int32Array]",Ge="[object Uint8Array]",ze="[object Uint8ClampedArray]",ot="[object Uint16Array]",Ct="[object Uint32Array]",dt=/[\\^$.*+?()[\]{}|]/g,bt=/^\[object .+?Constructor\]$/,It=/^(?:0|[1-9]\d*)$/,nt={};nt[ie]=nt[le]=nt[Pe]=nt[qe]=nt[Ke]=nt[Ge]=nt[ze]=nt[ot]=nt[Ct]=!0,nt[a]=nt[c]=nt[V]=nt[f]=nt[U]=nt[h]=nt[v]=nt[y]=nt[k]=nt[I]=nt[$]=nt[A]=nt[R]=nt[B]=nt[W]=!1;var _t=typeof ps=="object"&&ps&&ps.Object===Object&&ps,ft=typeof self=="object"&&self&&self.Object===Object&&self,Ht=_t||ft||Function("return this")(),_e=t&&!t.nodeType&&t,Me=_e&&!0&&e&&!e.nodeType&&e,Fe=Me&&Me.exports===_e,Ue=Fe&&_t.process,pt=function(){try{var H=Me&&Me.require&&Me.require("util").types;return H||Ue&&Ue.binding&&Ue.binding("util")}catch{}}(),G=pt&&pt.isTypedArray;function K(H,oe,ye){switch(ye.length){case 0:return H.call(oe);case 1:return H.call(oe,ye[0]);case 2:return H.call(oe,ye[0],ye[1]);case 3:return H.call(oe,ye[0],ye[1],ye[2])}return H.apply(oe,ye)}function ee(H,oe){for(var ye=-1,tt=Array(H);++ye<H;)tt[ye]=oe(ye);return tt}function pe(H){return function(oe){return H(oe)}}function we(H,oe){return H==null?void 0:H[oe]}function be(H,oe){return function(ye){return H(oe(ye))}}var j=Array.prototype,q=Function.prototype,te=Object.prototype,fe=Ht["__core-js_shared__"],je=q.toString,$e=te.hasOwnProperty,re=function(){var H=/[^.]+$/.exec(fe&&fe.keys&&fe.keys.IE_PROTO||"");return H?"Symbol(src)_1."+H:""}(),me=te.toString,xe=je.call(Object),rt=RegExp("^"+je.call($e).replace(dt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ut=Fe?Ht.Buffer:void 0,Qt=Ht.Symbol,Wt=Ht.Uint8Array;ut&&ut.allocUnsafe;var En=be(Object.getPrototypeOf,Object),On=Object.create,Cs=te.propertyIsEnumerable,tr=j.splice,ln=Qt?Qt.toStringTag:void 0,Rn=function(){try{var H=Oe(Object,"defineProperty");return H({},"",{}),H}catch{}}(),nr=ut?ut.isBuffer:void 0,Fr=Math.max,cc=Date.now,Fs=Oe(Ht,"Map"),Dr=Oe(Object,"create"),Ya=function(){function H(){}return function(oe){if(!po(oe))return{};if(On)return On(oe);H.prototype=oe;var ye=new H;return H.prototype=void 0,ye}}();function sr(H){var oe=-1,ye=H==null?0:H.length;for(this.clear();++oe<ye;){var tt=H[oe];this.set(tt[0],tt[1])}}function uc(){this.__data__=Dr?Dr(null):{},this.size=0}function dc(H){var oe=this.has(H)&&delete this.__data__[H];return this.size-=oe?1:0,oe}function fc(H){var oe=this.__data__;if(Dr){var ye=oe[H];return ye===s?void 0:ye}return $e.call(oe,H)?oe[H]:void 0}function Xa(H){var oe=this.__data__;return Dr?oe[H]!==void 0:$e.call(oe,H)}function hc(H,oe){var ye=this.__data__;return this.size+=this.has(H)?0:1,ye[H]=Dr&&oe===void 0?s:oe,this}sr.prototype.clear=uc,sr.prototype.delete=dc,sr.prototype.get=fc,sr.prototype.has=Xa,sr.prototype.set=hc;function Ds(H){var oe=-1,ye=H==null?0:H.length;for(this.clear();++oe<ye;){var tt=H[oe];this.set(tt[0],tt[1])}}function pc(){this.__data__=[],this.size=0}function ta(H){var oe=this.__data__,ye=co(oe,H);if(ye<0)return!1;var tt=oe.length-1;return ye==tt?oe.pop():tr.call(oe,ye,1),--this.size,!0}function mc(H){var oe=this.__data__,ye=co(oe,H);return ye<0?void 0:oe[ye][1]}function na(H){return co(this.__data__,H)>-1}function Ja(H,oe){var ye=this.__data__,tt=co(ye,H);return tt<0?(++this.size,ye.push([H,oe])):ye[tt][1]=oe,this}Ds.prototype.clear=pc,Ds.prototype.delete=ta,Ds.prototype.get=mc,Ds.prototype.has=na,Ds.prototype.set=Ja;function Ur(H){var oe=-1,ye=H==null?0:H.length;for(this.clear();++oe<ye;){var tt=H[oe];this.set(tt[0],tt[1])}}function gc(){this.size=0,this.__data__={hash:new sr,map:new(Fs||Ds),string:new sr}}function vc(H){var oe=Ie(this,H).delete(H);return this.size-=oe?1:0,oe}function bc(H){return Ie(this,H).get(H)}function yc(H){return Ie(this,H).has(H)}function _c(H,oe){var ye=Ie(this,H),tt=ye.size;return ye.set(H,oe),this.size+=ye.size==tt?0:1,this}Ur.prototype.clear=gc,Ur.prototype.delete=vc,Ur.prototype.get=bc,Ur.prototype.has=yc,Ur.prototype.set=_c;function jr(H){var oe=this.__data__=new Ds(H);this.size=oe.size}function Za(){this.__data__=new Ds,this.size=0}function wc(H){var oe=this.__data__,ye=oe.delete(H);return this.size=oe.size,ye}function Sc(H){return this.__data__.get(H)}function $c(H){return this.__data__.has(H)}function kc(H,oe){var ye=this.__data__;if(ye instanceof Ds){var tt=ye.__data__;if(!Fs||tt.length<n-1)return tt.push([H,oe]),this.size=++ye.size,this;ye=this.__data__=new Ur(tt)}return ye.set(H,oe),this.size=ye.size,this}jr.prototype.clear=Za,jr.prototype.delete=wc,jr.prototype.get=Sc,jr.prototype.has=$c,jr.prototype.set=kc;function Cc(H,oe){var ye=ri(H),tt=!ye&&oa(H),Dt=!ye&&!tt&&Id(H),Yt=!ye&&!tt&&!Dt&&Ld(H),gn=ye||tt||Dt||Yt,yt=gn?ee(H.length,String):[],on=yt.length;for(var jn in H)gn&&(jn=="length"||Dt&&(jn=="offset"||jn=="parent")||Yt&&(jn=="buffer"||jn=="byteLength"||jn=="byteOffset")||Ze(jn,on))||yt.push(jn);return yt}function sa(H,oe,ye){(ye!==void 0&&!ho(H[oe],ye)||ye===void 0&&!(oe in H))&&Ts(H,oe,ye)}function ti(H,oe,ye){var tt=H[oe];(!($e.call(H,oe)&&ho(tt,ye))||ye===void 0&&!(oe in H))&&Ts(H,oe,ye)}function co(H,oe){for(var ye=H.length;ye--;)if(ho(H[ye][0],oe))return ye;return-1}function Ts(H,oe,ye){oe=="__proto__"&&Rn?Rn(H,oe,{configurable:!0,enumerable:!0,value:ye,writable:!0}):H[oe]=ye}var Qa=Ce();function Us(H){return H==null?H===void 0?N:C:ln&&ln in Object(H)?Re(H):Zn(H)}function el(H){return mo(H)&&Us(H)==a}function uo(H){if(!po(H)||zt(H))return!1;var oe=Pc(H)?rt:bt;return oe.test(Ec(H))}function ni(H){return mo(H)&&Pd(H.length)&&!!nt[Us(H)]}function tl(H){if(!po(H))return xt(H);var oe=cn(H),ye=[];for(var tt in H)tt=="constructor"&&(oe||!$e.call(H,tt))||ye.push(tt);return ye}function nl(H,oe,ye,tt,Dt){H!==oe&&Qa(oe,function(Yt,gn){if(Dt||(Dt=new jr),po(Yt))ra(H,oe,gn,ye,nl,tt,Dt);else{var yt=tt?tt(fo(H,gn),Yt,gn+"",H,oe,Dt):void 0;yt===void 0&&(yt=Yt),sa(H,gn,yt)}},Od)}function ra(H,oe,ye,tt,Dt,Yt,gn){var yt=fo(H,ye),on=fo(oe,ye),jn=gn.get(on);if(jn){sa(H,ye,jn);return}var is=Yt?Yt(yt,on,ye+"",H,oe,gn):void 0,go=is===void 0;if(go){var as=ri(on),rl=!as&&Id(on),Lc=!as&&!rl&&Ld(on);is=on,as||rl||Lc?ri(yt)?is=yt:Ed(yt)?is=se(yt):rl?(go=!1,is=F(on)):Lc?(go=!1,is=z(on)):is=[]:cm(on)||oa(on)?(is=yt,oa(yt)?is=um(yt):(!po(yt)||Pc(yt))&&(is=De(on))):go=!1}go&&(gn.set(on,is),Dt(is,on,tt,Yt,gn),gn.delete(on)),sa(H,ye,is)}function Tc(H,oe){return sl(Br(H,oe,en),H+"")}var Ac=Rn?function(H,oe){return Rn(H,"toString",{configurable:!0,enumerable:!1,value:un(oe),writable:!0})}:en;function F(H,oe){return H.slice()}function J(H){var oe=new H.constructor(H.byteLength);return new Wt(oe).set(new Wt(H)),oe}function z(H,oe){var ye=J(H.buffer);return new H.constructor(ye,H.byteOffset,H.length)}function se(H,oe){var ye=-1,tt=H.length;for(oe||(oe=Array(tt));++ye<tt;)oe[ye]=H[ye];return oe}function ce(H,oe,ye,tt){var Dt=!ye;ye||(ye={});for(var Yt=-1,gn=oe.length;++Yt<gn;){var yt=oe[Yt],on=void 0;on===void 0&&(on=H[yt]),Dt?Ts(ye,yt,on):ti(ye,yt,on)}return ye}function ne(H){return Tc(function(oe,ye){var tt=-1,Dt=ye.length,Yt=Dt>1?ye[Dt-1]:void 0,gn=Dt>2?ye[2]:void 0;for(Yt=H.length>3&&typeof Yt=="function"?(Dt--,Yt):void 0,gn&&Tt(ye[0],ye[1],gn)&&(Yt=Dt<3?void 0:Yt,Dt=1),oe=Object(oe);++tt<Dt;){var yt=ye[tt];yt&&H(oe,yt,tt,Yt)}return oe})}function Ce(H){return function(oe,ye,tt){for(var Dt=-1,Yt=Object(oe),gn=tt(oe),yt=gn.length;yt--;){var on=gn[++Dt];if(ye(Yt[on],on,Yt)===!1)break}return oe}}function Ie(H,oe){var ye=H.__data__;return Bt(oe)?ye[typeof oe=="string"?"string":"hash"]:ye.map}function Oe(H,oe){var ye=we(H,oe);return uo(ye)?ye:void 0}function Re(H){var oe=$e.call(H,ln),ye=H[ln];try{H[ln]=void 0;var tt=!0}catch{}var Dt=me.call(H);return tt&&(oe?H[ln]=ye:delete H[ln]),Dt}function De(H){return typeof H.constructor=="function"&&!cn(H)?Ya(En(H)):{}}function Ze(H,oe){var ye=typeof H;return oe=oe??i,!!oe&&(ye=="number"||ye!="symbol"&&It.test(H))&&H>-1&&H%1==0&&H<oe}function Tt(H,oe,ye){if(!po(ye))return!1;var tt=typeof oe;return(tt=="number"?Ic(ye)&&Ze(oe,ye.length):tt=="string"&&oe in ye)?ho(ye[oe],H):!1}function Bt(H){var oe=typeof H;return oe=="string"||oe=="number"||oe=="symbol"||oe=="boolean"?H!=="__proto__":H===null}function zt(H){return!!re&&re in H}function cn(H){var oe=H&&H.constructor,ye=typeof oe=="function"&&oe.prototype||te;return H===ye}function xt(H){var oe=[];if(H!=null)for(var ye in Object(H))oe.push(ye);return oe}function Zn(H){return me.call(H)}function Br(H,oe,ye){return oe=Fr(oe===void 0?H.length-1:oe,0),function(){for(var tt=arguments,Dt=-1,Yt=Fr(tt.length-oe,0),gn=Array(Yt);++Dt<Yt;)gn[Dt]=tt[oe+Dt];Dt=-1;for(var yt=Array(oe+1);++Dt<oe;)yt[Dt]=tt[Dt];return yt[oe]=ye(gn),K(H,this,yt)}}function fo(H,oe){if(!(oe==="constructor"&&typeof H[oe]=="function")&&oe!="__proto__")return H[oe]}var sl=si(Ac);function si(H){var oe=0,ye=0;return function(){var tt=cc(),Dt=o-(tt-ye);if(ye=tt,Dt>0){if(++oe>=r)return arguments[0]}else oe=0;return H.apply(void 0,arguments)}}function Ec(H){if(H!=null){try{return je.call(H)}catch{}try{return H+""}catch{}}return""}function ho(H,oe){return H===oe||H!==H&&oe!==oe}var oa=el(function(){return arguments}())?el:function(H){return mo(H)&&$e.call(H,"callee")&&!Cs.call(H,"callee")},ri=Array.isArray;function Ic(H){return H!=null&&Pd(H.length)&&!Pc(H)}function Ed(H){return mo(H)&&Ic(H)}var Id=nr||fm;function Pc(H){if(!po(H))return!1;var oe=Us(H);return oe==y||oe==S||oe==u||oe==P}function Pd(H){return typeof H=="number"&&H>-1&&H%1==0&&H<=i}function po(H){var oe=typeof H;return H!=null&&(oe=="object"||oe=="function")}function mo(H){return H!=null&&typeof H=="object"}function cm(H){if(!mo(H)||Us(H)!=$)return!1;var oe=En(H);if(oe===null)return!0;var ye=$e.call(oe,"constructor")&&oe.constructor;return typeof ye=="function"&&ye instanceof ye&&je.call(ye)==xe}var Ld=G?pe(G):ni;function um(H){return ce(H,Od(H))}function Od(H){return Ic(H)?Cc(H):tl(H)}var dm=ne(function(H,oe,ye){nl(H,oe,ye)});function un(H){return function(){return H}}function en(H){return H}function fm(){return!1}e.exports=dm}(pu,pu.exports)),pu.exports}var Nse=Mse();const Fse=bs(Nse);let gb=!1;const gL=(e,t)=>t.length===0?e:t.reduce((n,s)=>(Z.set(n,s,Z.get(e,s)),n),{}),Dse=["markNotificationsAsSeen","clearCurrentUser","setCurrentUser","setHighlight","setOption","setClientData","setToken","clearToken"],vL=Wp;function Use({key:e="vuex-lz",paths:t=[],getState:n=(a,c)=>c.getItem(a),setState:s=(a,c,u)=>gb?u.setItem(a,c):(console.info("waiting for old state to be loaded..."),Promise.resolve()),reducer:r=gL,storage:o=vL,subscriber:i=a=>c=>a.subscribe(c)}={}){return n(e,o).then(a=>c=>{try{if(a!==null&&typeof a=="object"){const u=a.users||{};u.usersObject={};const f=u.users||[];Z.each(f,h=>{u.usersObject[h.id]=h}),a.users=u,c.replaceState(Fse({},c.state,a))}gb=!0}catch(u){console.error("Couldn't load state"),console.error(u),gb=!0}i(c)((u,f)=>{try{Dse.includes(u.type)&&s(e,r(Z.cloneDeep(f),t),o).then(h=>{typeof h<"u"&&(u.type==="setOption"||u.type==="setCurrentUser")&&Xe().settingsSaved({success:h})},h=>{(u.type==="setOption"||u.type==="setCurrentUser")&&Xe().settingsSaved({error:h})})}catch(h){console.error("Couldn't persist state:"),console.error(h)}})})}const jse=({vuexKey:e="vuex-lz",keyFunction:t=r=>`pinia-local-${r}`,storage:n=vL,reducer:s=gL}={})=>({store:r,options:o})=>{if(!o.persist)return{$persistLoaded:Promise.resolve()};let i,a;const c=new Promise((A,R)=>{i=A,a=R}),{afterLoad:u,paths:f=[],saveImmediatelyActions:h,onSaveSuccess:v=()=>{},onSaveError:y=()=>{}}=o.persist||{},S={loaded:!1},k=t(r.$id),I=async()=>{const A=r.$id,R=await n.getItem(k);if(R)return R;const B=await n.getItem(e);if(B&&B[A]){console.info(`Migrating ${A} store data from vuex to pinia`);const N=B[A];return await n.setItem(k,N),N}return{}},C=A=>S.loaded?n.setItem(k,A):(console.info("waiting for old state to be loaded..."),Promise.reject()),$=async()=>{const A=await I();if(typeof u=="function")try{return await u(A)}catch(R){return console.error("Error running afterLoad:",R),A}else return A},P=async A=>{const R=Z.cloneDeep(A),B=s(R,f);try{const N=await C(B);v(N)}catch(N){console.error("Cannot persist state:",N),y(N)}};return $().then(A=>{A&&r.$patch(A),S.loaded=!0,i(),h?r.$onAction(({name:R,store:B,after:N})=>{h.includes(R)&&N(()=>P(B.$state))}):r.$subscribe(async(R,B)=>{await P(B)})},A=>{console.error("Cannot load storage:",A),a(A)}),{$persistLoaded:c}},Bse=e=>{e.subscribe((t,n)=>{const s=n.instance.vapidPublicKey,r=n.config.webPushNotifications,o=Xe().notificationPermission==="granted",i=n.users.currentUser,a=t.type==="setCurrentUser",c=t.type==="setInstanceOption"&&t.payload.name==="vapidPublicKey",u=t.type==="setNotificationPermission"&&t.payload==="granted",f=t.type==="setOption"&&t.payload.name==="webPushNotifications",h=t.type==="setOption"&&t.payload.name==="notificationVisibility";if(a||c||u||f||h){if(i&&s&&o&&r)return e.dispatch("registerPushNotifications");if(f&&!r)return e.dispatch("unregisterPushNotifications")}})},Df="password",uT="token",vb="totp",dT="recovery",Yo=vs("authFlow",{state:()=>({settings:{},strategy:Df,initStrategy:Df}),getters:{requiredPassword:e=>e.strategy===Df,requiredToken:e=>e.strategy===uT,requiredTOTP:e=>e.strategy===vb,requiredRecovery:e=>e.strategy===dT},actions:{setInitialStrategy(e){e&&(this.initStrategy=e,this.strategy=e)},requirePassword(){this.strategy=Df},requireToken(){this.strategy=uT},requireMFA({settings:e}){this.settings=e,this.strategy=vb},requireRecovery(){this.strategy=dT},requireTOTP(){this.strategy=vb},abortMFA(){this.resetState()},resetState(){this.strategy=this.initStrategy,this.settings={}},async login({access_token:e}){Ar().setToken(e),await window.vuex.dispatch("loginUser",e,{root:!0}),this.resetState()}}}),zse=Object.freeze(Object.defineProperty({__proto__:null,useAuthFlowStore:Yo},Symbol.toStringTag,{value:"Module"})),Mu=vs("editStatus",{state:()=>({params:null,modalActivated:!1}),actions:{openEditStatusModal(e){this.params=e,this.modalActivated=!0},closeEditStatusModal(){this.modalActivated=!1}}}),qse=Object.freeze(Object.defineProperty({__proto__:null,useEditStatusStore:Mu},Symbol.toStringTag,{value:"Module"})),bL=e=>e.match(/flash/)?"flash":e.match(/text\/html/)?"html":e.match(/image/)?"image":e.match(/video/)?"video":e.match(/audio/)?"audio":"unknown",Hse=e=>e.match(/\.(a?png|jpe?g|gif|webp|avif)$/)?"image":e.match(/\.(ogv|mp4|webm|mov)$/)?"video":e.match(/\.(it|s3m|mod|umx|mp3|aac|m4a|flac|alac|ogg|oga|opus|wav|ape|midi?)$/)?"audio":"unknown",Vse=(e,t)=>e.some(n=>bL(t.mimetype)===n),Fa={fileType:bL,fileTypeExt:Hse,fileMatchesSomeType:Vse},Wse=new Set(["image","video","audio","flash"]),hs=vs("mediaViewer",{state:()=>({media:[],currentIndex:0,activated:!1}),actions:{setMedia(e){const t=e.filter(n=>{const s=Fa.fileType(n.mimetype);return Wse.has(s)});this.media=t},setCurrentMedia(e){const t=this.media.indexOf(e);this.activated=!0,this.currentIndex=t},closeMediaViewer(){this.activated=!1}}}),Gse=Object.freeze(Object.defineProperty({__proto__:null,useMediaViewerStore:hs},Symbol.toStringTag,{value:"Module"})),Kse=vs("oauthTokens",{state:()=>({tokens:[]}),actions:{fetchTokens(){window.vuex.state.api.backendInteractor.fetchOAuthTokens().then(e=>{this.swapTokens(e)})},revokeToken(e){window.vuex.state.api.backendInteractor.revokeOAuthToken({id:e}).then(t=>{t.status===201&&this.swapTokens(this.tokens.filter(n=>n.id!==e))})},swapTokens(e){this.tokens=e}}}),xse=Object.freeze(Object.defineProperty({__proto__:null,useOAuthTokensStore:Kse},Symbol.toStringTag,{value:"Module"})),_a=vs("polls",{state:()=>({trackedPolls:{},pollsObject:{}}),actions:{mergeOrAddPoll(e){const t=this.pollsObject[e.id];e.expired=Date.now()>Date.parse(e.expires_at),t?this.pollsObject[e.id]=Z.merge(t,e):this.pollsObject[e.id]=e},updateTrackedPoll(e){window.vuex.state.api.backendInteractor.fetchPoll({pollId:e}).then(t=>{setTimeout(()=>{this.trackedPolls[e]&&this.updateTrackedPoll(e)},30*1e3),this.mergeOrAddPoll(t)})},trackPoll(e){this.trackedPolls[e]||setTimeout(()=>this.updateTrackedPoll(e),30*1e3);const t=this.trackedPolls[e];t?this.trackedPolls[e]=t+1:this.trackedPolls[e]=1},untrackPoll(e){const t=this.trackedPolls[e];t?this.trackedPolls[e]=t-1:this.trackedPolls[e]=0},votePoll({pollId:e,choices:t}){return window.vuex.state.api.backendInteractor.vote({pollId:e,choices:t}).then(n=>(this.mergeOrAddPoll(n),n))}}}),Yse=Object.freeze(Object.defineProperty({__proto__:null,usePollsStore:_a},Symbol.toStringTag,{value:"Module"})),Ai=vs("postStatus",{state:()=>({params:null,modalActivated:!1}),actions:{openPostStatusModal(e){this.params=e,this.modalActivated=!0},closePostStatusModal(){this.modalActivated=!1},resetPostStatusModal(){this.params=null}}}),Xse=Object.freeze(Object.defineProperty({__proto__:null,usePostStatusStore:Ai},Symbol.toStringTag,{value:"Module"})),Nu=vs("statusHistory",{state:()=>({params:{},modalActivated:!1}),actions:{openStatusHistoryModal(e){this.params=e,this.modalActivated=!0},closeStatusHistoryModal(){this.modalActivated=!1}}}),Jse=Object.freeze(Object.defineProperty({__proto__:null,useStatusHistoryStore:Nu},Symbol.toStringTag,{value:"Module"}));/*!
* vue-router v4.5.1
* (c) 2025 Eduardo San Martin Morote
* @license MIT
*/const Al=typeof document<"u";function yL(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Zse(e){return e.__esModule||e[Symbol.toStringTag]==="Module"||e.default&&yL(e.default)}const Jt=Object.assign;function bb(e,t){const n={};for(const s in t){const r=t[s];n[s]=Or(r)?r.map(e):e(r)}return n}const Fu=()=>{},Or=Array.isArray,_L=/#/g,Qse=/&/g,ere=/\//g,tre=/=/g,nre=/\?/g,wL=/\+/g,sre=/%5B/g,rre=/%5D/g,SL=/%5E/g,ore=/%60/g,$L=/%7B/g,ire=/%7C/g,kL=/%7D/g,are=/%20/g;function N2(e){return encodeURI(""+e).replace(ire,"|").replace(sre,"[").replace(rre,"]")}function lre(e){return N2(e).replace($L,"{").replace(kL,"}").replace(SL,"^")}function Py(e){return N2(e).replace(wL,"%2B").replace(are,"+").replace(_L,"%23").replace(Qse,"%26").replace(ore,"`").replace($L,"{").replace(kL,"}").replace(SL,"^")}function cre(e){return Py(e).replace(tre,"%3D")}function ure(e){return N2(e).replace(_L,"%23").replace(nre,"%3F")}function dre(e){return e==null?"":ure(e).replace(ere,"%2F")}function ed(e){try{return decodeURIComponent(""+e)}catch{}return""+e}const fre=/\/$/,hre=e=>e.replace(fre,"");function yb(e,t,n="/"){let s,r={},o="",i="";const a=t.indexOf("#");let c=t.indexOf("?");return a<c&&a>=0&&(c=-1),c>-1&&(s=t.slice(0,c),o=t.slice(c+1,a>-1?a:t.length),r=e(o)),a>-1&&(s=s||t.slice(0,a),i=t.slice(a,t.length)),s=vre(s??t,n),{fullPath:s+(o&&"?")+o+i,path:s,query:r,hash:ed(i)}}function pre(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function fT(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function mre(e,t,n){const s=t.matched.length-1,r=n.matched.length-1;return s>-1&&s===r&&Yl(t.matched[s],n.matched[r])&&CL(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function Yl(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function CL(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!gre(e[n],t[n]))return!1;return!0}function gre(e,t){return Or(e)?hT(e,t):Or(t)?hT(t,e):e===t}function hT(e,t){return Or(t)?e.length===t.length&&e.every((n,s)=>n===t[s]):e.length===1&&e[0]===t}function vre(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),s=e.split("/"),r=s[s.length-1];(r===".."||r===".")&&s.push("");let o=n.length-1,i,a;for(i=0;i<s.length;i++)if(a=s[i],a!==".")if(a==="..")o>1&&o--;else break;return n.slice(0,o).join("/")+"/"+s.slice(i).join("/")}const vi={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0};var td;(function(e){e.pop="pop",e.push="push"})(td||(td={}));var Du;(function(e){e.back="back",e.forward="forward",e.unknown=""})(Du||(Du={}));function bre(e){if(!e)if(Al){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),hre(e)}const yre=/^[^#]+#/;function _re(e,t){return e.replace(yre,"#")+t}function wre(e,t){const n=document.documentElement.getBoundingClientRect(),s=e.getBoundingClientRect();return{behavior:t.behavior,left:s.left-n.left-(t.left||0),top:s.top-n.top-(t.top||0)}}const Yp=()=>({left:window.scrollX,top:window.scrollY});function Sre(e){let t;if("el"in e){const n=e.el,s=typeof n=="string"&&n.startsWith("#"),r=typeof n=="string"?s?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!r)return;t=wre(r,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.scrollX,t.top!=null?t.top:window.scrollY)}function pT(e,t){return(history.state?history.state.position-t:-1)+e}const Ly=new Map;function $re(e,t){Ly.set(e,t)}function kre(e){const t=Ly.get(e);return Ly.delete(e),t}let Cre=()=>location.protocol+"//"+location.host;function TL(e,t){const{pathname:n,search:s,hash:r}=t,o=e.indexOf("#");if(o>-1){let a=r.includes(e.slice(o))?e.slice(o).length:1,c=r.slice(a);return c[0]!=="/"&&(c="/"+c),fT(c,"")}return fT(n,e)+s+r}function Tre(e,t,n,s){let r=[],o=[],i=null;const a=({state:v})=>{const y=TL(e,location),S=n.value,k=t.value;let I=0;if(v){if(n.value=y,t.value=v,i&&i===S){i=null;return}I=k?v.position-k.position:0}else s(y);r.forEach(C=>{C(n.value,S,{delta:I,type:td.pop,direction:I?I>0?Du.forward:Du.back:Du.unknown})})};function c(){i=n.value}function u(v){r.push(v);const y=()=>{const S=r.indexOf(v);S>-1&&r.splice(S,1)};return o.push(y),y}function f(){const{history:v}=window;v.state&&v.replaceState(Jt({},v.state,{scroll:Yp()}),"")}function h(){for(const v of o)v();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",f)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",f,{passive:!0}),{pauseListeners:c,listen:u,destroy:h}}function mT(e,t,n,s=!1,r=!1){return{back:e,current:t,forward:n,replaced:s,position:window.history.length,scroll:r?Yp():null}}function Are(e){const{history:t,location:n}=window,s={value:TL(e,n)},r={value:t.state};r.value||o(s.value,{back:null,current:s.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(c,u,f){const h=e.indexOf("#"),v=h>-1?(n.host&&document.querySelector("base")?e:e.slice(h))+c:Cre()+e+c;try{t[f?"replaceState":"pushState"](u,"",v),r.value=u}catch(y){console.error(y),n[f?"replace":"assign"](v)}}function i(c,u){const f=Jt({},t.state,mT(r.value.back,c,r.value.forward,!0),u,{position:r.value.position});o(c,f,!0),s.value=c}function a(c,u){const f=Jt({},r.value,t.state,{forward:c,scroll:Yp()});o(f.current,f,!0);const h=Jt({},mT(s.value,c,null),{position:f.position+1},u);o(c,h,!1),s.value=c}return{location:s,state:r,push:a,replace:i}}function Ere(e){e=bre(e);const t=Are(e),n=Tre(e,t.state,t.location,t.replace);function s(o,i=!0){i||n.pauseListeners(),history.go(o)}const r=Jt({location:"",base:e,go:s,createHref:_re.bind(null,e)},t,n);return Object.defineProperty(r,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(r,"state",{enumerable:!0,get:()=>t.state.value}),r}function Ire(e){return typeof e=="string"||e&&typeof e=="object"}function AL(e){return typeof e=="string"||typeof e=="symbol"}const EL=Symbol("");var gT;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(gT||(gT={}));function Xl(e,t){return Jt(new Error,{type:e,[EL]:!0},t)}function Io(e,t){return e instanceof Error&&EL in e&&(t==null||!!(e.type&t))}const vT="[^/]+?",Pre={sensitive:!1,strict:!1,start:!0,end:!0},Lre=/[.+*?^${}()[\]/\\]/g;function Ore(e,t){const n=Jt({},Pre,t),s=[];let r=n.start?"^":"";const o=[];for(const u of e){const f=u.length?[]:[90];n.strict&&!u.length&&(r+="/");for(let h=0;h<u.length;h++){const v=u[h];let y=40+(n.sensitive?.25:0);if(v.type===0)h||(r+="/"),r+=v.value.replace(Lre,"\\$&"),y+=40;else if(v.type===1){const{value:S,repeatable:k,optional:I,regexp:C}=v;o.push({name:S,repeatable:k,optional:I});const $=C||vT;if($!==vT){y+=10;try{new RegExp(`(${$})`)}catch(A){throw new Error(`Invalid custom RegExp for param "${S}" (${$}): `+A.message)}}let P=k?`((?:${$})(?:/(?:${$}))*)`:`(${$})`;h||(P=I&&u.length<2?`(?:/${P})`:"/"+P),I&&(P+="?"),r+=P,y+=20,I&&(y+=-8),k&&(y+=-20),$===".*"&&(y+=-50)}f.push(y)}s.push(f)}if(n.strict&&n.end){const u=s.length-1;s[u][s[u].length-1]+=.7000000000000001}n.strict||(r+="/?"),n.end?r+="$":n.strict&&!r.endsWith("/")&&(r+="(?:/|$)");const i=new RegExp(r,n.sensitive?"":"i");function a(u){const f=u.match(i),h={};if(!f)return null;for(let v=1;v<f.length;v++){const y=f[v]||"",S=o[v-1];h[S.name]=y&&S.repeatable?y.split("/"):y}return h}function c(u){let f="",h=!1;for(const v of e){(!h||!f.endsWith("/"))&&(f+="/"),h=!1;for(const y of v)if(y.type===0)f+=y.value;else if(y.type===1){const{value:S,repeatable:k,optional:I}=y,C=S in u?u[S]:"";if(Or(C)&&!k)throw new Error(`Provided param "${S}" is an array but it is not repeatable (* or + modifiers)`);const $=Or(C)?C.join("/"):C;if(!$)if(I)v.length<2&&(f.endsWith("/")?f=f.slice(0,-1):h=!0);else throw new Error(`Missing required param "${S}"`);f+=$}}return f||"/"}return{re:i,score:s,keys:o,parse:a,stringify:c}}function Rre(e,t){let n=0;for(;n<e.length&&n<t.length;){const s=t[n]-e[n];if(s)return s;n++}return e.length<t.length?e.length===1&&e[0]===80?-1:1:e.length>t.length?t.length===1&&t[0]===80?1:-1:0}function IL(e,t){let n=0;const s=e.score,r=t.score;for(;n<s.length&&n<r.length;){const o=Rre(s[n],r[n]);if(o)return o;n++}if(Math.abs(r.length-s.length)===1){if(bT(s))return 1;if(bT(r))return-1}return r.length-s.length}function bT(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const Mre={type:0,value:""},Nre=/[a-zA-Z0-9_]/;function Fre(e){if(!e)return[[]];if(e==="/")return[[Mre]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(y){throw new Error(`ERR (${n})/"${u}": ${y}`)}let n=0,s=n;const r=[];let o;function i(){o&&r.push(o),o=[]}let a=0,c,u="",f="";function h(){u&&(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(c==="*"||c==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:f,repeatable:c==="*"||c==="+",optional:c==="*"||c==="?"})):t("Invalid state to consume buffer"),u="")}function v(){u+=c}for(;a<e.length;){if(c=e[a++],c==="\\"&&n!==2){s=n,n=4;continue}switch(n){case 0:c==="/"?(u&&h(),i()):c===":"?(h(),n=1):v();break;case 4:v(),n=s;break;case 1:c==="("?n=2:Nre.test(c)?v():(h(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&a--);break;case 2:c===")"?f[f.length-1]=="\\"?f=f.slice(0,-1)+c:n=3:f+=c;break;case 3:h(),n=0,c!=="*"&&c!=="?"&&c!=="+"&&a--,f="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),h(),i(),r}function Dre(e,t,n){const s=Ore(Fre(e.path),n),r=Jt(s,{record:e,parent:t,children:[],alias:[]});return t&&!r.record.aliasOf==!t.record.aliasOf&&t.children.push(r),r}function Ure(e,t){const n=[],s=new Map;t=ST({strict:!1,end:!0,sensitive:!1},t);function r(h){return s.get(h)}function o(h,v,y){const S=!y,k=_T(h);k.aliasOf=y&&y.record;const I=ST(t,h),C=[k];if("alias"in h){const A=typeof h.alias=="string"?[h.alias]:h.alias;for(const R of A)C.push(_T(Jt({},k,{components:y?y.record.components:k.components,path:R,aliasOf:y?y.record:k})))}let $,P;for(const A of C){const{path:R}=A;if(v&&R[0]!=="/"){const B=v.record.path,N=B[B.length-1]==="/"?"":"/";A.path=v.record.path+(R&&N+R)}if($=Dre(A,v,I),y?y.alias.push($):(P=P||$,P!==$&&P.alias.push($),S&&h.name&&!wT($)&&i(h.name)),PL($)&&c($),k.children){const B=k.children;for(let N=0;N<B.length;N++)o(B[N],$,y&&y.children[N])}y=y||$}return P?()=>{i(P)}:Fu}function i(h){if(AL(h)){const v=s.get(h);v&&(s.delete(h),n.splice(n.indexOf(v),1),v.children.forEach(i),v.alias.forEach(i))}else{const v=n.indexOf(h);v>-1&&(n.splice(v,1),h.record.name&&s.delete(h.record.name),h.children.forEach(i),h.alias.forEach(i))}}function a(){return n}function c(h){const v=zre(h,n);n.splice(v,0,h),h.record.name&&!wT(h)&&s.set(h.record.name,h)}function u(h,v){let y,S={},k,I;if("name"in h&&h.name){if(y=s.get(h.name),!y)throw Xl(1,{location:h});I=y.record.name,S=Jt(yT(v.params,y.keys.filter(P=>!P.optional).concat(y.parent?y.parent.keys.filter(P=>P.optional):[]).map(P=>P.name)),h.params&&yT(h.params,y.keys.map(P=>P.name))),k=y.stringify(S)}else if(h.path!=null)k=h.path,y=n.find(P=>P.re.test(k)),y&&(S=y.parse(k),I=y.record.name);else{if(y=v.name?s.get(v.name):n.find(P=>P.re.test(v.path)),!y)throw Xl(1,{location:h,currentLocation:v});I=y.record.name,S=Jt({},v.params,h.params),k=y.stringify(S)}const C=[];let $=y;for(;$;)C.unshift($.record),$=$.parent;return{name:I,path:k,params:S,matched:C,meta:Bre(C)}}e.forEach(h=>o(h));function f(){n.length=0,s.clear()}return{addRoute:o,resolve:u,removeRoute:i,clearRoutes:f,getRoutes:a,getRecordMatcher:r}}function yT(e,t){const n={};for(const s of t)s in e&&(n[s]=e[s]);return n}function _T(e){const t={path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:e.aliasOf,beforeEnter:e.beforeEnter,props:jre(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||null:e.component&&{default:e.component}};return Object.defineProperty(t,"mods",{value:{}}),t}function jre(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const s in e.components)t[s]=typeof n=="object"?n[s]:n;return t}function wT(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function Bre(e){return e.reduce((t,n)=>Jt(t,n.meta),{})}function ST(e,t){const n={};for(const s in e)n[s]=s in t?t[s]:e[s];return n}function zre(e,t){let n=0,s=t.length;for(;n!==s;){const o=n+s>>1;IL(e,t[o])<0?s=o:n=o+1}const r=qre(e);return r&&(s=t.lastIndexOf(r,s-1)),s}function qre(e){let t=e;for(;t=t.parent;)if(PL(t)&&IL(e,t)===0)return t}function PL({record:e}){return!!(e.name||e.components&&Object.keys(e.components).length||e.redirect)}function Hre(e){const t={};if(e===""||e==="?")return t;const s=(e[0]==="?"?e.slice(1):e).split("&");for(let r=0;r<s.length;++r){const o=s[r].replace(wL," "),i=o.indexOf("="),a=ed(i<0?o:o.slice(0,i)),c=i<0?null:ed(o.slice(i+1));if(a in t){let u=t[a];Or(u)||(u=t[a]=[u]),u.push(c)}else t[a]=c}return t}function $T(e){let t="";for(let n in e){const s=e[n];if(n=cre(n),s==null){s!==void 0&&(t+=(t.length?"&":"")+n);continue}(Or(s)?s.map(o=>o&&Py(o)):[s&&Py(s)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function Vre(e){const t={};for(const n in e){const s=e[n];s!==void 0&&(t[n]=Or(s)?s.map(r=>r==null?null:""+r):s==null?s:""+s)}return t}const Wre=Symbol(""),kT=Symbol(""),F2=Symbol(""),LL=Symbol(""),Oy=Symbol("");function Zc(){let e=[];function t(s){return e.push(s),()=>{const r=e.indexOf(s);r>-1&&e.splice(r,1)}}function n(){e=[]}return{add:t,list:()=>e.slice(),reset:n}}function Si(e,t,n,s,r,o=i=>i()){const i=s&&(s.enterCallbacks[r]=s.enterCallbacks[r]||[]);return()=>new Promise((a,c)=>{const u=v=>{v===!1?c(Xl(4,{from:n,to:t})):v instanceof Error?c(v):Ire(v)?c(Xl(2,{from:t,to:v})):(i&&s.enterCallbacks[r]===i&&typeof v=="function"&&i.push(v),a())},f=o(()=>e.call(s&&s.instances[r],t,n,u));let h=Promise.resolve(f);e.length<3&&(h=h.then(u)),h.catch(v=>c(v))})}function _b(e,t,n,s,r=o=>o()){const o=[];for(const i of e)for(const a in i.components){let c=i.components[a];if(!(t!=="beforeRouteEnter"&&!i.instances[a]))if(yL(c)){const f=(c.__vccOpts||c)[t];f&&o.push(Si(f,n,s,i,a,r))}else{let u=c();o.push(()=>u.then(f=>{if(!f)throw new Error(`Couldn't resolve component "${a}" at "${i.path}"`);const h=Zse(f)?f.default:f;i.mods[a]=f,i.components[a]=h;const y=(h.__vccOpts||h)[t];return y&&Si(y,n,s,i,a,r)()}))}}return o}function CT(e){const t=Ys(F2),n=Ys(LL),s=vt(()=>{const c=Lt(e.to);return t.resolve(c)}),r=vt(()=>{const{matched:c}=s.value,{length:u}=c,f=c[u-1],h=n.matched;if(!f||!h.length)return-1;const v=h.findIndex(Yl.bind(null,f));if(v>-1)return v;const y=TT(c[u-2]);return u>1&&TT(f)===y&&h[h.length-1].path!==y?h.findIndex(Yl.bind(null,c[u-2])):v}),o=vt(()=>r.value>-1&&Xre(n.params,s.value.params)),i=vt(()=>r.value>-1&&r.value===n.matched.length-1&&CL(n.params,s.value.params));function a(c={}){if(Yre(c)){const u=t[Lt(e.replace)?"replace":"push"](Lt(e.to)).catch(Fu);return e.viewTransition&&typeof document<"u"&&"startViewTransition"in document&&document.startViewTransition(()=>u),u}return Promise.resolve()}return{route:s,href:vt(()=>s.value.href),isActive:o,isExactActive:i,navigate:a}}function Gre(e){return e.length===1?e[0]:e}const Kre=Wi({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"},viewTransition:Boolean},useLink:CT,setup(e,{slots:t}){const n=Pr(CT(e)),{options:s}=Ys(F2),r=vt(()=>({[AT(e.activeClass,s.linkActiveClass,"router-link-active")]:n.isActive,[AT(e.exactActiveClass,s.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&Gre(t.default(n));return e.custom?o:Zo("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:r.value},o)}}}),xre=Kre;function Yre(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 Xre(e,t){for(const n in t){const s=t[n],r=e[n];if(typeof s=="string"){if(s!==r)return!1}else if(!Or(r)||r.length!==s.length||s.some((o,i)=>o!==r[i]))return!1}return!0}function TT(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const AT=(e,t,n)=>e??t??n,Jre=Wi({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const s=Ys(Oy),r=vt(()=>e.route||s.value),o=Ys(kT,0),i=vt(()=>{let u=Lt(o);const{matched:f}=r.value;let h;for(;(h=f[u])&&!h.components;)u++;return u}),a=vt(()=>r.value.matched[i.value]);Ml(kT,vt(()=>i.value+1)),Ml(Wre,a),Ml(Oy,r);const c=Kn();return os(()=>[c.value,a.value,e.name],([u,f,h],[v,y,S])=>{f&&(f.instances[h]=u,y&&y!==f&&u&&u===v&&(f.leaveGuards.size||(f.leaveGuards=y.leaveGuards),f.updateGuards.size||(f.updateGuards=y.updateGuards))),u&&f&&(!y||!Yl(f,y)||!v)&&(f.enterCallbacks[h]||[]).forEach(k=>k(u))},{flush:"post"}),()=>{const u=r.value,f=e.name,h=a.value,v=h&&h.components[f];if(!v)return ET(n.default,{Component:v,route:u});const y=h.props[f],S=y?y===!0?u.params:typeof y=="function"?y(u):y:null,I=Zo(v,Jt({},S,t,{onVnodeUnmounted:C=>{C.component.isUnmounted&&(h.instances[f]=null)},ref:c}));return ET(n.default,{Component:I,route:u})||I}}});function ET(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const Zre=Jre;function Qre(e){const t=Ure(e.routes,e),n=e.parseQuery||Hre,s=e.stringifyQuery||$T,r=e.history,o=Zc(),i=Zc(),a=Zc(),c=l8(vi);let u=vi;Al&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const f=bb.bind(null,_e=>""+_e),h=bb.bind(null,dre),v=bb.bind(null,ed);function y(_e,Me){let Fe,Ue;return AL(_e)?(Fe=t.getRecordMatcher(_e),Ue=Me):Ue=_e,t.addRoute(Ue,Fe)}function S(_e){const Me=t.getRecordMatcher(_e);Me&&t.removeRoute(Me)}function k(){return t.getRoutes().map(_e=>_e.record)}function I(_e){return!!t.getRecordMatcher(_e)}function C(_e,Me){if(Me=Jt({},Me||c.value),typeof _e=="string"){const ee=yb(n,_e,Me.path),pe=t.resolve({path:ee.path},Me),we=r.createHref(ee.fullPath);return Jt(ee,pe,{params:v(pe.params),hash:ed(ee.hash),redirectedFrom:void 0,href:we})}let Fe;if(_e.path!=null)Fe=Jt({},_e,{path:yb(n,_e.path,Me.path).path});else{const ee=Jt({},_e.params);for(const pe in ee)ee[pe]==null&&delete ee[pe];Fe=Jt({},_e,{params:h(ee)}),Me.params=h(Me.params)}const Ue=t.resolve(Fe,Me),pt=_e.hash||"";Ue.params=f(v(Ue.params));const G=pre(s,Jt({},_e,{hash:lre(pt),path:Ue.path})),K=r.createHref(G);return Jt({fullPath:G,hash:pt,query:s===$T?Vre(_e.query):_e.query||{}},Ue,{redirectedFrom:void 0,href:K})}function $(_e){return typeof _e=="string"?yb(n,_e,c.value.path):Jt({},_e)}function P(_e,Me){if(u!==_e)return Xl(8,{from:Me,to:_e})}function A(_e){return N(_e)}function R(_e){return A(Jt($(_e),{replace:!0}))}function B(_e){const Me=_e.matched[_e.matched.length-1];if(Me&&Me.redirect){const{redirect:Fe}=Me;let Ue=typeof Fe=="function"?Fe(_e):Fe;return typeof Ue=="string"&&(Ue=Ue.includes("?")||Ue.includes("#")?Ue=$(Ue):{path:Ue},Ue.params={}),Jt({query:_e.query,hash:_e.hash,params:Ue.path!=null?{}:_e.params},Ue)}}function N(_e,Me){const Fe=u=C(_e),Ue=c.value,pt=_e.state,G=_e.force,K=_e.replace===!0,ee=B(Fe);if(ee)return N(Jt($(ee),{state:typeof ee=="object"?Jt({},pt,ee.state):pt,force:G,replace:K}),Me||Fe);const pe=Fe;pe.redirectedFrom=Me;let we;return!G&&mre(s,Ue,Fe)&&(we=Xl(16,{to:pe,from:Ue}),bt(Ue,Ue,!0,!1)),(we?Promise.resolve(we):U(pe,Ue)).catch(be=>Io(be)?Io(be,2)?be:dt(be):ot(be,pe,Ue)).then(be=>{if(be){if(Io(be,2))return N(Jt({replace:K},$(be.to),{state:typeof be.to=="object"?Jt({},pt,be.to.state):pt,force:G}),Me||pe)}else be=le(pe,Ue,!0,K,pt);return ie(pe,Ue,be),be})}function W(_e,Me){const Fe=P(_e,Me);return Fe?Promise.reject(Fe):Promise.resolve()}function V(_e){const Me=_t.values().next().value;return Me&&typeof Me.runWithContext=="function"?Me.runWithContext(_e):_e()}function U(_e,Me){let Fe;const[Ue,pt,G]=eoe(_e,Me);Fe=_b(Ue.reverse(),"beforeRouteLeave",_e,Me);for(const ee of Ue)ee.leaveGuards.forEach(pe=>{Fe.push(Si(pe,_e,Me))});const K=W.bind(null,_e,Me);return Fe.push(K),Ht(Fe).then(()=>{Fe=[];for(const ee of o.list())Fe.push(Si(ee,_e,Me));return Fe.push(K),Ht(Fe)}).then(()=>{Fe=_b(pt,"beforeRouteUpdate",_e,Me);for(const ee of pt)ee.updateGuards.forEach(pe=>{Fe.push(Si(pe,_e,Me))});return Fe.push(K),Ht(Fe)}).then(()=>{Fe=[];for(const ee of G)if(ee.beforeEnter)if(Or(ee.beforeEnter))for(const pe of ee.beforeEnter)Fe.push(Si(pe,_e,Me));else Fe.push(Si(ee.beforeEnter,_e,Me));return Fe.push(K),Ht(Fe)}).then(()=>(_e.matched.forEach(ee=>ee.enterCallbacks={}),Fe=_b(G,"beforeRouteEnter",_e,Me,V),Fe.push(K),Ht(Fe))).then(()=>{Fe=[];for(const ee of i.list())Fe.push(Si(ee,_e,Me));return Fe.push(K),Ht(Fe)}).catch(ee=>Io(ee,8)?ee:Promise.reject(ee))}function ie(_e,Me,Fe){a.list().forEach(Ue=>V(()=>Ue(_e,Me,Fe)))}function le(_e,Me,Fe,Ue,pt){const G=P(_e,Me);if(G)return G;const K=Me===vi,ee=Al?history.state:{};Fe&&(Ue||K?r.replace(_e.fullPath,Jt({scroll:K&&ee&&ee.scroll},pt)):r.push(_e.fullPath,pt)),c.value=_e,bt(_e,Me,Fe,K),dt()}let Pe;function qe(){Pe||(Pe=r.listen((_e,Me,Fe)=>{if(!ft.listening)return;const Ue=C(_e),pt=B(Ue);if(pt){N(Jt(pt,{replace:!0,force:!0}),Ue).catch(Fu);return}u=Ue;const G=c.value;Al&&$re(pT(G.fullPath,Fe.delta),Yp()),U(Ue,G).catch(K=>Io(K,12)?K:Io(K,2)?(N(Jt($(K.to),{force:!0}),Ue).then(ee=>{Io(ee,20)&&!Fe.delta&&Fe.type===td.pop&&r.go(-1,!1)}).catch(Fu),Promise.reject()):(Fe.delta&&r.go(-Fe.delta,!1),ot(K,Ue,G))).then(K=>{K=K||le(Ue,G,!1),K&&(Fe.delta&&!Io(K,8)?r.go(-Fe.delta,!1):Fe.type===td.pop&&Io(K,20)&&r.go(-1,!1)),ie(Ue,G,K)}).catch(Fu)}))}let Ke=Zc(),Ge=Zc(),ze;function ot(_e,Me,Fe){dt(_e);const Ue=Ge.list();return Ue.length?Ue.forEach(pt=>pt(_e,Me,Fe)):console.error(_e),Promise.reject(_e)}function Ct(){return ze&&c.value!==vi?Promise.resolve():new Promise((_e,Me)=>{Ke.add([_e,Me])})}function dt(_e){return ze||(ze=!_e,qe(),Ke.list().forEach(([Me,Fe])=>_e?Fe(_e):Me()),Ke.reset()),_e}function bt(_e,Me,Fe,Ue){const{scrollBehavior:pt}=e;if(!Al||!pt)return Promise.resolve();const G=!Fe&&kre(pT(_e.fullPath,0))||(Ue||!Fe)&&history.state&&history.state.scroll||null;return Ri().then(()=>pt(_e,Me,G)).then(K=>K&&Sre(K)).catch(K=>ot(K,_e,Me))}const It=_e=>r.go(_e);let nt;const _t=new Set,ft={currentRoute:c,listening:!0,addRoute:y,removeRoute:S,clearRoutes:t.clearRoutes,hasRoute:I,getRoutes:k,resolve:C,options:e,push:A,replace:R,go:It,back:()=>It(-1),forward:()=>It(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:Ge.add,isReady:Ct,install(_e){const Me=this;_e.component("RouterLink",xre),_e.component("RouterView",Zre),_e.config.globalProperties.$router=Me,Object.defineProperty(_e.config.globalProperties,"$route",{enumerable:!0,get:()=>Lt(c)}),Al&&!nt&&c.value===vi&&(nt=!0,A(r.location).catch(pt=>{}));const Fe={};for(const pt in vi)Object.defineProperty(Fe,pt,{get:()=>c.value[pt],enumerable:!0});_e.provide(F2,Me),_e.provide(LL,t_(Fe)),_e.provide(Oy,c);const Ue=_e.unmount;_t.add(_e),_e.unmount=function(){_t.delete(_e),_t.size<1&&(u=vi,Pe&&Pe(),Pe=null,c.value=vi,nt=!1,ze=!1),Ue()}}};function Ht(_e){return _e.reduce((Me,Fe)=>Me.then(()=>V(Fe)),Promise.resolve())}return ft}function eoe(e,t){const n=[],s=[],r=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const a=t.matched[i];a&&(e.matched.find(u=>Yl(u,a))?s.push(a):n.push(a));const c=e.matched[i];c&&(t.matched.find(u=>Yl(u,c))||r.push(c))}return[n,s,r]}var nh={exports:{}},toe=nh.exports,IT;function noe(){return IT||(IT=1,function(e,t){(function(n,s){e.exports=s()})(toe,function(){var n="__v-click-outside",s=typeof window<"u",r=typeof navigator<"u",o=s&&("ontouchstart"in window||r&&navigator.msMaxTouchPoints>0)?["touchstart"]:["click"],i=function(f){var h=f.event,v=f.handler;(0,f.middleware)(h)&&v(h)},a=function(f,h){var v=function($){var P=typeof $=="function";if(!P&&typeof $!="object")throw new Error("v-click-outside: Binding value must be a function or an object");return{handler:P?$:$.handler,middleware:$.middleware||function(A){return A},events:$.events||o,isActive:$.isActive!==!1,detectIframe:$.detectIframe!==!1,capture:!!$.capture}}(h.value),y=v.handler,S=v.middleware,k=v.detectIframe,I=v.capture;if(v.isActive){if(f[n]=v.events.map(function($){return{event:$,srcTarget:document.documentElement,handler:function(P){return function(A){var R=A.el,B=A.event,N=A.handler,W=A.middleware,V=B.path||B.composedPath&&B.composedPath();(V?V.indexOf(R)<0:!R.contains(B.target))&&i({event:B,handler:N,middleware:W})}({el:f,event:P,handler:y,middleware:S})},capture:I}}),k){var C={event:"blur",srcTarget:window,handler:function($){return function(P){var A=P.el,R=P.event,B=P.handler,N=P.middleware;setTimeout(function(){var W=document.activeElement;W&&W.tagName==="IFRAME"&&!A.contains(W)&&i({event:R,handler:B,middleware:N})},0)}({el:f,event:$,handler:y,middleware:S})},capture:I};f[n]=[].concat(f[n],[C])}f[n].forEach(function($){var P=$.event,A=$.srcTarget,R=$.handler;return setTimeout(function(){f[n]&&A.addEventListener(P,R,I)},0)})}},c=function(f){(f[n]||[]).forEach(function(h){return h.srcTarget.removeEventListener(h.event,h.handler,h.capture)}),delete f[n]},u=s?{beforeMount:a,updated:function(f,h){var v=h.value,y=h.oldValue;JSON.stringify(v)!==JSON.stringify(y)&&(c(f),a(f,{value:v}))},unmounted:c}:{};return{install:function(f){f.directive("click-outside",u)},directive:u}})}(nh)),nh.exports}var soe=noe();const roe=bs(soe);function ooe(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var s=e.indexOf("rv:");return parseInt(e.substring(s+3,e.indexOf(".",s)),10)}var r=e.indexOf("Edge/");return r>0?parseInt(e.substring(r+5,e.indexOf(".",r)),10):-1}let sh;function Ry(){Ry.init||(Ry.init=!0,sh=ooe()!==-1)}var Xp={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){Ry(),Ri(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",sh&&this.$el.appendChild(e),e.data="about:blank",sh||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!sh&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const ioe=_9();b9("data-v-b329ee4c");const aoe={class:"resize-observer",tabindex:"-1"};y9();const loe=ioe((e,t,n,s,r,o)=>(p(),Y("div",aoe)));Xp.render=loe;Xp.__scopeId="data-v-b329ee4c";Xp.__file="src/components/ResizeObserver.vue";function rh(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?rh=function(t){return typeof t}:rh=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rh(e)}function coe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uoe(e,t){for(var n=0;n<t.length;n++){var s=t[n];s.enumerable=s.enumerable||!1,s.configurable=!0,"value"in s&&(s.writable=!0),Object.defineProperty(e,s.key,s)}}function doe(e,t,n){return t&&uoe(e.prototype,t),e}function PT(e){return foe(e)||hoe(e)||poe(e)||moe()}function foe(e){if(Array.isArray(e))return My(e)}function hoe(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function poe(e,t){if(e){if(typeof e=="string")return My(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 My(e,t)}}function My(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=new Array(t);n<t;n++)s[n]=e[n];return s}function moe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function goe(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function voe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s,r,o,i=function(c){for(var u=arguments.length,f=new Array(u>1?u-1:0),h=1;h<u;h++)f[h-1]=arguments[h];if(o=f,!(s&&c===r)){var v=n.leading;typeof v=="function"&&(v=v(c,r)),(!s||c!==r)&&v&&e.apply(void 0,[c].concat(PT(o))),r=c,clearTimeout(s),s=setTimeout(function(){e.apply(void 0,[c].concat(PT(o))),s=0},t)}};return i._clear=function(){clearTimeout(s),s=null},i}function OL(e,t){if(e===t)return!0;if(rh(e)==="object"){for(var n in e)if(!OL(e[n],t[n]))return!1;return!0}return!1}var boe=function(){function e(t,n,s){coe(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,s)}return doe(e,[{key:"createObserver",value:function(n,s){var r=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=goe(n),this.callback=function(a,c){r.options.callback(a,c),a&&r.options.once&&(r.frozen=!0,r.destroyObserver())},this.callback&&this.options.throttle){var o=this.options.throttleOptions||{},i=o.leading;this.callback=voe(this.callback,this.options.throttle,{leading:function(c){return i==="both"||i==="visible"&&c||i==="hidden"&&!c}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(a){var c=a[0];if(a.length>1){var u=a.find(function(h){return h.isIntersecting});u&&(c=u)}if(r.callback){var f=c.isIntersecting&&c.intersectionRatio>=r.threshold;if(f===r.oldResult)return;r.oldResult=f,r.callback(f,c)}},this.options.intersection),Ri(function(){r.observer&&r.observer.observe(r.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function RL(e,t,n){var s=t.value;if(s)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var r=new boe(e,s,n);e._vue_visibilityState=r}}function yoe(e,t,n){var s=t.value,r=t.oldValue;if(!OL(s,r)){var o=e._vue_visibilityState;if(!s){ML(e);return}o?o.createObserver(s,n):RL(e,{value:s},n)}}function ML(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var _oe={beforeMount:RL,updated:yoe,unmounted:ML};function woe(e){return{all:e=e||new Map,on:function(t,n){var s=e.get(t);s&&s.push(n)||e.set(t,[n])},off:function(t,n){var s=e.get(t);s&&s.splice(s.indexOf(n)>>>0,1)},emit:function(t,n){(e.get(t)||[]).slice().map(function(s){s(n)}),(e.get("*")||[]).slice().map(function(s){s(t,n)})}}}var NL={itemsLimit:1e3},Soe=/(auto|scroll)/;function FL(e,t){return e.parentNode===null?t:FL(e.parentNode,t.concat([e]))}var wb=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},$oe=function(t){return wb(t,"overflow")+wb(t,"overflow-y")+wb(t,"overflow-x")},koe=function(t){return Soe.test($oe(t))};function LT(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=FL(e.parentNode,[]),n=0;n<t.length;n+=1)if(koe(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function Ny(e){"@babel/helpers - typeof";return Ny=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ny(e)}var DL={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function UL(){return this.items.length&&Ny(this.items[0])!=="object"}var Fy=!1;if(typeof window<"u"){Fy=!1;try{var Coe=Object.defineProperty({},"passive",{get:function(){Fy=!0}});window.addEventListener("test",null,Coe)}catch{}}let Toe=0;var nd={name:"RecycleScroller",components:{ResizeObserver:Xp},directives:{ObserveVisibility:_oe},props:{...DL,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,n=this.sizeField,s=this.minItemSize;let r=1e4,o=0,i;for(let a=0,c=t.length;a<c;a++)i=t[a][n]||s,i<r&&(r=i),o+=i,e[a]={accumulator:o,size:i};return this.$_computedMinItemSize=r,e}return[]},simpleArray:UL,itemIndexByKey(){const{keyField:e,items:t}=this,n={};for(let s=0,r=t.length;s<r;s++)n[t[s][e]]=s;return n}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,s,r){const o=op({id:Toe++,index:t,used:!0,key:s,type:r}),i=t_({item:n,position:0,nr:o});return e.push(i),i},unuseView(e,t=!1){const n=this.$_unusedViews,s=e.nr.type;let r=n.get(s);r||(r=[],n.set(s,r)),r.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const n=this.itemSize,s=this.gridItems||1,r=this.itemSecondarySize||n,o=this.$_computedMinItemSize,i=this.typeField,a=this.simpleArray?null:this.keyField,c=this.items,u=c.length,f=this.sizes,h=this.$_views,v=this.$_unusedViews,y=this.pool,S=this.itemIndexByKey;let k,I,C,$,P;if(!u)k=I=$=P=C=0;else if(this.$_prerender)k=$=0,I=P=Math.min(this.prerender,c.length),C=null;else{const U=this.getScroll();if(t){let Pe=U.start-this.$_lastUpdateScrollPosition;if(Pe<0&&(Pe=-Pe),n===null&&Pe<o||Pe<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=U.start;const ie=this.buffer;U.start-=ie,U.end+=ie;let le=0;if(this.$refs.before&&(le=this.$refs.before.scrollHeight,U.start-=le),this.$refs.after){const Pe=this.$refs.after.scrollHeight;U.end+=Pe}if(n===null){let Pe,qe=0,Ke=u-1,Ge=~~(u/2),ze;do ze=Ge,Pe=f[Ge].accumulator,Pe<U.start?qe=Ge:Ge<u-1&&f[Ge+1].accumulator>U.start&&(Ke=Ge),Ge=~~((qe+Ke)/2);while(Ge!==ze);for(Ge<0&&(Ge=0),k=Ge,C=f[u-1].accumulator,I=Ge;I<u&&f[I].accumulator<U.end;I++);for(I===-1?I=c.length-1:(I++,I>u&&(I=u)),$=k;$<u&&le+f[$].accumulator<U.start;$++);for(P=$;P<u&&le+f[P].accumulator<U.end;P++);}else{k=~~(U.start/n*s);const Pe=k%s;k-=Pe,I=Math.ceil(U.end/n*s),$=Math.max(0,Math.floor((U.start-le)/n*s)),P=Math.floor((U.end-le)/n*s),k<0&&(k=0),I>u&&(I=u),$<0&&($=0),P>u&&(P=u),C=Math.ceil(u/s)*n}}I-k>NL.itemsLimit&&this.itemsLimitError(),this.totalSize=C;let A;const R=k<=this.$_endIndex&&I>=this.$_startIndex;if(R)for(let U=0,ie=y.length;U<ie;U++)A=y[U],A.nr.used&&(e&&(A.nr.index=S[A.item[a]]),(A.nr.index==null||A.nr.index<k||A.nr.index>=I)&&this.unuseView(A));const B=R?null:new Map;let N,W,V;for(let U=k;U<I;U++){N=c[U];const ie=a?N[a]:N;if(ie==null)throw new Error(`Key is ${ie} on item (keyField is '${a}')`);if(A=h.get(ie),!n&&!f[U].size){A&&this.unuseView(A);continue}W=N[i];let le=v.get(W),Pe=!1;if(!A)R?le&&le.length?A=le.pop():A=this.addView(y,U,N,ie,W):(V=B.get(W)||0,(!le||V>=le.length)&&(A=this.addView(y,U,N,ie,W),this.unuseView(A,!0),le=v.get(W)),A=le[V],B.set(W,V+1)),h.delete(A.nr.key),A.nr.used=!0,A.nr.index=U,A.nr.key=ie,A.nr.type=W,h.set(ie,A),Pe=!0;else if(!A.nr.used&&(A.nr.used=!0,Pe=!0,le)){const qe=le.indexOf(A);qe!==-1&&le.splice(qe,1)}A.item=N,Pe&&(U===c.length-1&&this.$emit("scroll-end"),U===0&&this.$emit("scroll-start")),n===null?(A.position=f[U-1].accumulator,A.offset=0):(A.position=Math.floor(U/s)*n,A.offset=U%s*r)}return this.$_startIndex=k,this.$_endIndex=I,this.emitUpdate&&this.$emit("update",k,I,$,P),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:R}},getListenerTarget(){let e=LT(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let s;if(this.pageMode){const r=e.getBoundingClientRect(),o=n?r.height:r.width;let i=-(n?r.top:r.left),a=n?window.innerHeight:window.innerWidth;i<0&&(a+=i,i=0),i+a>o&&(a=o-i),s={start:i,end:i+a}}else n?s={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:s={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return s},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,Fy?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,s,r;if(this.pageMode){const o=LT(this.$el),i=o.tagName==="HTML"?0:o[t.scroll],a=o.getBoundingClientRect(),u=this.$el.getBoundingClientRect()[t.start]-a[t.start];n=o,s=t.scroll,r=e+i+u}else n=this.$el,s=t.scroll,r=e;n[s]=r},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const Aoe={key:0,ref:"before",class:"vue-recycle-scroller__slot"},Eoe={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function Ioe(e,t,n,s,r,o){const i=O("ResizeObserver"),a=sc("observe-visibility");return at((p(),b("div",{class:he(["vue-recycle-scroller",{ready:r.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...c)=>o.handleScroll&&o.handleScroll(...c))},[e.$slots.before?(p(),b("div",Aoe,[Ot(e.$slots,"before")],512)):E("v-if",!0),(p(),Y(Oa(n.listTag),{ref:"wrapper",style:hn({[e.direction==="vertical"?"minHeight":"minWidth"]:r.totalSize+"px"}),class:he(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:X(()=>[(p(!0),b(Se,null,We(r.pool,c=>(p(),Y(Oa(n.itemTag),An({key:c.nr.id,style:r.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${c.position}px) translate${e.direction==="vertical"?"X":"Y"}(${c.offset}px)`,width:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&r.hoverKey===c.nr.key}]]},F9(n.skipHover?{}:{mouseenter:()=>{r.hoverKey=c.nr.key},mouseleave:()=>{r.hoverKey=null}})),{default:X(()=>[Ot(e.$slots,"default",{item:c.item,index:c.nr.index,active:c.nr.used})]),_:2},1040,["style","class"]))),128)),Ot(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(p(),b("div",Eoe,[Ot(e.$slots,"after")],512)):E("v-if",!0),T(i,{onNotify:o.handleResize},null,8,["onNotify"])],34)),[[a,o.handleVisibilityChange]])}nd.render=Ioe;nd.__file="src/components/RecycleScroller.vue";var Fh={name:"DynamicScroller",components:{RecycleScroller:nd},provide(){return typeof ResizeObserver<"u"&&(this.$_resizeObserver=new ResizeObserver(e=>{requestAnimationFrame(()=>{if(Array.isArray(e)){for(const t of e)if(t.target&&t.target.$_vs_onResize){let n,s;if(t.borderBoxSize){const r=t.borderBoxSize[0];n=r.inlineSize,s=r.blockSize}else n=t.contentRect.width,s=t.contentRect.height;t.target.$_vs_onResize(t.target.$_vs_id,n,s)}}})})),{vscrollData:this.vscrollData,vscrollParent:this,vscrollResizeObserver:this.$_resizeObserver}},inheritAttrs:!1,props:{...DL,minItemSize:{type:[Number,String],required:!0}},emits:["resize","visible"],data(){return{vscrollData:{active:!0,sizes:{},keyField:this.keyField,simpleArray:!1}}},computed:{simpleArray:UL,itemsWithSize(){const e=[],{items:t,keyField:n,simpleArray:s}=this,r=this.vscrollData.sizes,o=t.length;for(let i=0;i<o;i++){const a=t[i],c=s?i:a[n];let u=r[c];typeof u>"u"&&!this.$_undefinedMap[c]&&(u=0),e.push({item:a,id:c,size:u})}return e}},watch:{items(){this.forceUpdate()},simpleArray:{handler(e){this.vscrollData.simpleArray=e},immediate:!0},direction(e){this.forceUpdate(!0)},itemsWithSize(e,t){const n=this.$el.scrollTop;let s=0,r=0;const o=Math.min(e.length,t.length);for(let a=0;a<o&&!(s>=n);a++)s+=t[a].size||this.minItemSize,r+=e[a].size||this.minItemSize;const i=r-s;i!==0&&(this.$el.scrollTop+=i)}},beforeCreate(){this.$_updates=[],this.$_undefinedSizes=0,this.$_undefinedMap={},this.$_events=woe()},activated(){this.vscrollData.active=!0},deactivated(){this.vscrollData.active=!1},unmounted(){this.$_events.all.clear()},methods:{onScrollerResize(){this.$refs.scroller&&this.forceUpdate(),this.$emit("resize")},onScrollerVisible(){this.$_events.emit("vscroll:update",{force:!1}),this.$emit("visible")},forceUpdate(e=!1){(e||this.simpleArray)&&(this.vscrollData.sizes={}),this.$_events.emit("vscroll:update",{force:!0})},scrollToItem(e){const t=this.$refs.scroller;t&&t.scrollToItem(e)},getItemSize(e,t=void 0){const n=this.simpleArray?t??this.items.indexOf(e):e[this.keyField];return this.vscrollData.sizes[n]||0},scrollToBottom(){if(this.$_scrollingToBottom)return;this.$_scrollingToBottom=!0;const e=this.$el;this.$nextTick(()=>{e.scrollTop=e.scrollHeight+5e3;const t=()=>{e.scrollTop=e.scrollHeight+5e3,requestAnimationFrame(()=>{e.scrollTop=e.scrollHeight+5e3,this.$_undefinedSizes===0?this.$_scrollingToBottom=!1:requestAnimationFrame(t)})};requestAnimationFrame(t)})}}};function Poe(e,t,n,s,r,o){const i=O("RecycleScroller");return p(),Y(i,An({ref:"scroller",items:o.itemsWithSize,"min-item-size":n.minItemSize,direction:e.direction,"key-field":"id","list-tag":e.listTag,"item-tag":e.itemTag},e.$attrs,{onResize:o.onScrollerResize,onVisible:o.onScrollerVisible}),{default:X(({item:a,index:c,active:u})=>[Ot(e.$slots,"default",lh(dp({item:a.item,index:c,active:u,itemWithSize:a})))]),before:X(()=>[Ot(e.$slots,"before")]),after:X(()=>[Ot(e.$slots,"after")]),empty:X(()=>[Ot(e.$slots,"empty")]),_:3},16,["items","min-item-size","direction","list-tag","item-tag","onResize","onVisible"])}Fh.render=Poe;Fh.__file="src/components/DynamicScroller.vue";var Dy={name:"DynamicScrollerItem",inject:["vscrollData","vscrollParent","vscrollResizeObserver"],props:{item:{required:!0},watchData:{type:Boolean,default:!1},active:{type:Boolean,required:!0},index:{type:Number,default:void 0},sizeDependencies:{type:[Array,Object],default:null},emitResize:{type:Boolean,default:!1},tag:{type:String,default:"div"}},emits:["resize"],computed:{id(){if(this.vscrollData.simpleArray)return this.index;if(this.vscrollData.keyField in this.item)return this.item[this.vscrollData.keyField];throw new Error(`keyField '${this.vscrollData.keyField}' not found in your item. You should set a valid keyField prop on your Scroller`)},size(){return this.vscrollData.sizes[this.id]||0},finalActive(){return this.active&&this.vscrollData.active}},watch:{watchData:"updateWatchData",id(e,t){if(this.$el.$_vs_id=this.id,this.size||this.onDataUpdate(),this.$_sizeObserved){const n=this.vscrollData.sizes[t],s=this.vscrollData.sizes[e];n!=null&&n!==s&&this.applySize(n)}},finalActive(e){this.size||(e?this.vscrollParent.$_undefinedMap[this.id]||(this.vscrollParent.$_undefinedSizes++,this.vscrollParent.$_undefinedMap[this.id]=!0):this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=!1)),this.vscrollResizeObserver?e?this.observeSize():this.unobserveSize():e&&this.$_pendingVScrollUpdate===this.id&&this.updateSize()}},created(){if(!this.$isServer&&(this.$_forceNextVScrollUpdate=null,this.updateWatchData(),!this.vscrollResizeObserver)){for(const e in this.sizeDependencies)this.$watch(()=>this.sizeDependencies[e],this.onDataUpdate);this.vscrollParent.$_events.on("vscroll:update",this.onVscrollUpdate)}},mounted(){this.finalActive&&(this.updateSize(),this.observeSize())},beforeUnmount(){this.vscrollParent.$_events.off("vscroll:update",this.onVscrollUpdate),this.unobserveSize()},methods:{updateSize(){this.finalActive?this.$_pendingSizeUpdate!==this.id&&(this.$_pendingSizeUpdate=this.id,this.$_forceNextVScrollUpdate=null,this.$_pendingVScrollUpdate=null,this.computeSize(this.id)):this.$_forceNextVScrollUpdate=this.id},updateWatchData(){this.watchData&&!this.vscrollResizeObserver?this.$_watchData=this.$watch("item",()=>{this.onDataUpdate()},{deep:!0}):this.$_watchData&&(this.$_watchData(),this.$_watchData=null)},onVscrollUpdate({force:e}){!this.finalActive&&e&&(this.$_pendingVScrollUpdate=this.id),(this.$_forceNextVScrollUpdate===this.id||e||!this.size)&&this.updateSize()},onDataUpdate(){this.updateSize()},computeSize(e){this.$nextTick(()=>{if(this.id===e){const t=this.$el.offsetWidth,n=this.$el.offsetHeight;this.applyWidthHeight(t,n)}this.$_pendingSizeUpdate=null})},applyWidthHeight(e,t){const n=~~(this.vscrollParent.direction==="vertical"?t:e);n&&this.size!==n&&this.applySize(n)},applySize(e){this.vscrollParent.$_undefinedMap[this.id]&&(this.vscrollParent.$_undefinedSizes--,this.vscrollParent.$_undefinedMap[this.id]=void 0),this.vscrollData.sizes[this.id]=e,this.emitResize&&this.$emit("resize",this.id)},observeSize(){this.vscrollResizeObserver&&(this.$_sizeObserved||(this.vscrollResizeObserver.observe(this.$el),this.$el.$_vs_id=this.id,this.$el.$_vs_onResize=this.onResize,this.$_sizeObserved=!0))},unobserveSize(){this.vscrollResizeObserver&&this.$_sizeObserved&&(this.vscrollResizeObserver.unobserve(this.$el),this.$el.$_vs_onResize=void 0,this.$_sizeObserved=!1)},onResize(e,t,n){this.id===e&&this.applyWidthHeight(t,n)}},render(){return Zo(this.tag,this.$slots.default())}};Dy.__file="src/components/DynamicScrollerItem.vue";function Loe(e,t){e.component("".concat(t,"recycle-scroller"),nd),e.component("".concat(t,"RecycleScroller"),nd),e.component("".concat(t,"dynamic-scroller"),Fh),e.component("".concat(t,"DynamicScroller"),Fh),e.component("".concat(t,"dynamic-scroller-item"),Dy),e.component("".concat(t,"DynamicScrollerItem"),Dy)}var Ooe={version:"2.0.0-beta.8",install:function(t,n){var s=Object.assign({},{installComponents:!0,componentsPrefix:""},n);for(var r in s)typeof s[r]<"u"&&(NL[r]=s[r]);s.installComponents&&Loe(t,s.componentsPrefix)}};function Uy(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,s=Array(t);n<t;n++)s[n]=e[n];return s}function Roe(e){if(Array.isArray(e))return Uy(e)}function us(e,t,n){return(t=Boe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Moe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Noe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function OT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,s)}return n}function Do(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?OT(Object(n),!0).forEach(function(s){us(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):OT(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function Foe(e,t){if(e==null)return{};var n,s,r=Doe(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s<o.length;s++)n=o[s],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(r[n]=e[n])}return r}function Doe(e,t){if(e==null)return{};var n={};for(var s in e)if({}.hasOwnProperty.call(e,s)){if(t.indexOf(s)!==-1)continue;n[s]=e[s]}return n}function Uoe(e){return Roe(e)||Moe(e)||zoe(e)||Noe()}function joe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var s=n.call(e,t);if(typeof s!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Boe(e){var t=joe(e,"string");return typeof t=="symbol"?t:t+""}function Dh(e){"@babel/helpers - typeof";return Dh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Dh(e)}function zoe(e,t){if(e){if(typeof e=="string")return Uy(e,t);var n={}.toString.call(e).slice(8,-1);return n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set"?Array.from(e):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Uy(e,t):void 0}}function Sb(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?us({},e,t):{}}function qoe(e){var t,n=(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":e.flip===!0,"fa-flip-horizontal":e.flip==="horizontal"||e.flip==="both","fa-flip-vertical":e.flip==="vertical"||e.flip==="both"},us(us(us(us(us(us(us(us(us(us(t,"fa-".concat(e.size),e.size!==null),"fa-rotate-".concat(e.rotation),e.rotation!==null),"fa-rotate-by",e.rotateBy),"fa-pull-".concat(e.pull),e.pull!==null),"fa-swap-opacity",e.swapOpacity),"fa-bounce",e.bounce),"fa-shake",e.shake),"fa-beat",e.beat),"fa-fade",e.fade),"fa-beat-fade",e.beatFade),us(us(us(us(t,"fa-flash",e.flash),"fa-spin-pulse",e.spinPulse),"fa-spin-reverse",e.spinReverse),"fa-width-auto",e.widthAuto));return Object.keys(n).map(function(s){return n[s]?s:null}).filter(function(s){return s})}var Hoe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},jL={exports:{}};(function(e){(function(t){var n=function(C,$,P){if(!u($)||h($)||v($)||y($)||c($))return $;var A,R=0,B=0;if(f($))for(A=[],B=$.length;R<B;R++)A.push(n(C,$[R],P));else{A={};for(var N in $)Object.prototype.hasOwnProperty.call($,N)&&(A[C(N,P)]=n(C,$[N],P))}return A},s=function(C,$){$=$||{};var P=$.separator||"_",A=$.split||/(?=[A-Z])/;return C.split(A).join(P)},r=function(C){return S(C)?C:(C=C.replace(/[\-_\s]+(.)?/g,function($,P){return P?P.toUpperCase():""}),C.substr(0,1).toLowerCase()+C.substr(1))},o=function(C){var $=r(C);return $.substr(0,1).toUpperCase()+$.substr(1)},i=function(C,$){return s(C,$).toLowerCase()},a=Object.prototype.toString,c=function(C){return typeof C=="function"},u=function(C){return C===Object(C)},f=function(C){return a.call(C)=="[object Array]"},h=function(C){return a.call(C)=="[object Date]"},v=function(C){return a.call(C)=="[object RegExp]"},y=function(C){return a.call(C)=="[object Boolean]"},S=function(C){return C=C-0,C===C},k=function(C,$){var P=$&&"process"in $?$.process:$;return typeof P!="function"?C:function(A,R){return P(A,C,R)}},I={camelize:r,decamelize:i,pascalize:o,depascalize:i,camelizeKeys:function(C,$){return n(k(r,$),C)},decamelizeKeys:function(C,$){return n(k(i,$),C,$)},pascalizeKeys:function(C,$){return n(k(o,$),C)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=I:t.humps=I})(Hoe)})(jL);var Voe=jL.exports,Woe=["class","style"];function Goe(e){return e.split(";").map(function(t){return t.trim()}).filter(function(t){return t}).reduce(function(t,n){var s=n.indexOf(":"),r=Voe.camelize(n.slice(0,s)),o=n.slice(s+1).trim();return t[r]=o,t},{})}function Koe(e){return e.split(/\s+/).reduce(function(t,n){return t[n]=!0,t},{})}function BL(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(typeof e=="string")return e;var s=(e.children||[]).map(function(c){return BL(c)}),r=Object.keys(e.attributes||{}).reduce(function(c,u){var f=e.attributes[u];switch(u){case"class":c.class=Koe(f);break;case"style":c.style=Goe(f);break;default:c.attrs[u]=f}return c},{attrs:{},class:{},style:{}});n.class;var o=n.style,i=o===void 0?{}:o,a=Foe(n,Woe);return Zo(e.tag,Do(Do(Do({},t),{},{class:r.class,style:Do(Do({},r.style),i)},r.attrs),a),s)}var zL=!1;try{zL=!0}catch{}function xoe(){if(!zL&&console&&typeof console.error=="function"){var e;(e=console).error.apply(e,arguments)}}function RT(e){if(e&&Dh(e)==="object"&&e.prefix&&e.iconName&&e.icon)return e;if(hy.icon)return hy.icon(e);if(e===null)return null;if(Dh(e)==="object"&&e.prefix&&e.iconName)return e;if(Array.isArray(e)&&e.length===2)return{prefix:e[0],iconName:e[1]};if(typeof e=="string")return{prefix:"fas",iconName:e}}var D2=Wi({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(t){return[!0,!1,"horizontal","vertical","both"].indexOf(t)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},maskId:{type:String,default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(t){return["right","left"].indexOf(t)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(t){return[90,180,270].indexOf(Number.parseInt(t,10))>-1}},rotateBy:{type:Boolean,default:!1},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(t){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(t)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},titleId:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1},widthAuto:{type:Boolean,default:!1}},setup:function(t,n){var s=n.attrs,r=vt(function(){return RT(t.icon)}),o=vt(function(){return Sb("classes",qoe(t))}),i=vt(function(){return Sb("transform",typeof t.transform=="string"?hy.transform(t.transform):t.transform)}),a=vt(function(){return Sb("mask",RT(t.mask))}),c=vt(function(){var f=Do(Do(Do(Do({},o.value),i.value),a.value),{},{symbol:t.symbol,maskId:t.maskId});return f.title=t.title,f.titleId=t.titleId,fJ(r.value,f)});os(c,function(f){if(!f)return xoe("Could not find one or more icon(s)",r.value,a.value)},{immediate:!0});var u=vt(function(){return c.value?BL(c.value.abstract[0],{},s):null});return function(){return u.value}}}),Yoe=Wi({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(t,n){var s=n.slots,r=B5.familyPrefix,o=vt(function(){return["".concat(r,"-layers")].concat(Uoe(t.fixedWidth?["".concat(r,"-fw")]:[]))});return function(){return Zo("div",{class:o.value},s.default?s.default():[])}}});et.add(Xn);const Xoe={data:()=>({user:{},error:!1}),computed:{isPasswordAuth(){return this.requiredPassword},isTokenAuth(){return this.requiredToken},...mp(Ar),...mn({registrationOpen:e=>e.instance.registrationOpen,instance:e=>e.instance,loggingIn:e=>e.users.loggingIn}),...sn(Yo,["requiredPassword","requiredToken","requiredMFA"])},methods:{...gp(Yo,["requireMFA","login"]),submit(){this.isTokenAuth?this.submitToken():this.submitPassword()},submitToken(){const e={instance:this.instance.server,commit:this.$store.commit};this.oauthStore.ensureAppToken().then(()=>{const t={clientId:this.oauthStore.clientId,clientSecret:this.oauthStore.clientSecret};Rh.login({...t,...e})})},submitPassword(){this.error=!1,this.oauthStore.ensureAppToken().then(()=>{const e={clientId:this.oauthStore.clientId,clientSecret:this.oauthStore.clientSecret};Rh.getTokenWithCredentials({...e,instance:this.instance.server,username:this.user.username,password:this.user.password}).then(t=>{if(t.error){t.error==="mfa_required"?this.requireMFA({settings:t}):t.identifier==="password_reset_required"?this.$router.push({name:"password-reset",params:{passwordResetRequested:!0}}):(this.error=t.error,this.focusOnPasswordInput());return}this.login(t).then(()=>{this.$router.push({name:"friends"})})})})},clearError(){this.error=!1},focusOnPasswordInput(){const e=this.$refs.passwordInput;e.focus(),e.setSelectionRange(0,e.value.length)}}},Joe={class:"login-panel panel panel-default"},Zoe={class:"panel-heading"},Qoe={class:"title"},eie={class:"panel-body"},tie={class:"form-group"},nie={for:"username"},sie=["disabled","placeholder"],rie={class:"form-group"},oie={for:"password"},iie=["disabled"],aie={class:"form-group"},lie={key:1,class:"form-group"},cie={class:"form-group"},uie={class:"login-bottom"},die=["disabled"],fie={key:0,class:"login-error alert error"},hie={class:"error-message"};function pie(e,t,n,s,r,o){const i=O("router-link"),a=O("FAIcon");return p(),b("div",Joe,[g("div",Zoe,[g("h1",Qoe,w(e.$t("login.login")),1)]),g("div",eie,[g("form",{class:"login-form",onSubmit:t[2]||(t[2]=Te((...c)=>e.submit&&e.submit(...c),["prevent"]))},[e.isPasswordAuth?(p(),b(Se,{key:0},[g("div",tie,[g("label",nie,w(e.$t("login.username")),1),at(g("input",{id:"username","onUpdate:modelValue":t[0]||(t[0]=c=>e.user.username=c),disabled:e.loggingIn,class:"input form-control",placeholder:e.$t("login.placeholder")},null,8,sie),[[Nt,e.user.username]])]),g("div",rie,[g("label",oie,w(e.$t("login.password")),1),at(g("input",{id:"password",ref:"passwordInput","onUpdate:modelValue":t[1]||(t[1]=c=>e.user.password=c),disabled:e.loggingIn,class:"input form-control",type:"password"},null,8,iie),[[Nt,e.user.password]])]),g("div",aie,[T(i,{to:{name:"password-reset"}},{default:X(()=>[de(w(e.$t("password_reset.forgot_password")),1)]),_:1})])],64)):E("",!0),e.isTokenAuth?(p(),b("div",lie,[g("p",null,w(e.$t("login.description")),1)])):E("",!0),g("div",cie,[g("div",uie,[g("div",null,[e.registrationOpen?(p(),Y(i,{key:0,to:{name:"registration"},class:"register"},{default:X(()=>[de(w(e.$t("login.register")),1)]),_:1})):E("",!0)]),g("button",{disabled:e.loggingIn,type:"submit",class:"btn button-default"},w(e.$t("login.login")),9,die)])])],32),e.error?(p(),b("div",fie,[g("span",hie,w(e.error),1),g("button",{class:"button-unstyled",onClick:t[3]||(t[3]=(...c)=>e.clearError&&e.clearError(...c))},[T(a,{class:"fa-scale-110 fa-old-padding",icon:"times"})])])):E("",!0)])])}const mie=ge(Xoe,[["render",pie]]),gie=({clientId:e,clientSecret:t,instance:n,mfaToken:s,code:r})=>{const o=`${n}/oauth/mfa/challenge`,i=new window.FormData;return i.append("client_id",e),i.append("client_secret",t),i.append("mfa_token",s),i.append("code",r),i.append("challenge_type","totp"),window.fetch(o,{method:"POST",body:i}).then(a=>a.json())},vie=({clientId:e,clientSecret:t,instance:n,mfaToken:s,code:r})=>{const o=`${n}/oauth/mfa/challenge`,i=new window.FormData;return i.append("client_id",e),i.append("client_secret",t),i.append("mfa_token",s),i.append("code",r),i.append("challenge_type","recovery"),window.fetch(o,{method:"POST",body:i}).then(a=>a.json())},qL={verifyOTPCode:gie,verifyRecoveryCode:vie};et.add(Xn);const bie={data:()=>({code:null,error:!1}),computed:{...sn(Yo,{authSettings:e=>e.settings}),...mp(Ar),...mn({instance:"instance"})},methods:{...gp(Yo,["requireTOTP","abortMFA","login"]),clearError(){this.error=!1},focusOnCodeInput(){const e=this.$refs.codeInput;e.focus(),e.setSelectionRange(0,e.value.length)},submit(){const{clientId:e,clientSecret:t}=this.oauthStore,n={clientId:e,clientSecret:t,instance:this.instance.server,mfaToken:this.authSettings.mfa_token,code:this.code};qL.verifyRecoveryCode(n).then(s=>{if(s.error){this.error=s.error,this.code=null,this.focusOnCodeInput();return}this.login(s).then(()=>{this.$router.push({name:"friends"})})})}}},yie={class:"login-panel panel panel-default"},_ie={class:"panel-heading"},wie={class:"title"},Sie={class:"panel-body"},$ie={class:"form-group"},kie={for:"code"},Cie={class:"form-group"},Tie={class:"login-bottom"},Aie={type:"submit",class:"btn button-default"},Eie={key:0,class:"form-group"},Iie={class:"alert error"};function Pie(e,t,n,s,r,o){const i=O("FAIcon");return p(),b("div",yie,[g("div",_ie,[g("h1",wie,w(e.$t("login.heading.recovery")),1)]),g("div",Sie,[g("form",{class:"login-form",onSubmit:t[3]||(t[3]=Te((...a)=>e.submit&&e.submit(...a),["prevent"]))},[g("div",$ie,[g("label",kie,w(e.$t("login.recovery_code")),1),at(g("input",{id:"code",ref:"codeInput","onUpdate:modelValue":t[0]||(t[0]=a=>e.code=a),class:"input form-control"},null,512),[[Nt,e.code]])]),g("div",Cie,[g("div",Tie,[g("div",null,[g("button",{class:"button-unstyled -link",type:"button",onClick:t[1]||(t[1]=Te((...a)=>e.requireTOTP&&e.requireTOTP(...a),["prevent"]))},w(e.$t("login.enter_two_factor_code")),1),t[5]||(t[5]=g("br",null,null,-1)),g("button",{class:"button-unstyled -link",type:"button",onClick:t[2]||(t[2]=Te((...a)=>e.abortMFA&&e.abortMFA(...a),["prevent"]))},w(e.$t("general.cancel")),1)]),g("button",Aie,w(e.$t("general.verify")),1)])])],32)]),e.error?(p(),b("div",Eie,[g("div",Iie,[de(w(e.error)+" ",1),g("button",{class:"button-unstyled",onClick:t[4]||(t[4]=(...a)=>e.clearError&&e.clearError(...a))},[T(i,{class:"fa-scale-110 fa-old-padding",icon:"times"})])])])):E("",!0)])}const Lie=ge(bie,[["render",Pie]]);et.add(Xn);const Oie={data:()=>({code:null,error:!1}),computed:{...sn(Yo,{authSettings:e=>e.settings}),...mp(Ar),...mn({instance:"instance"})},methods:{...gp(Yo,["requireRecovery","abortMFA","login"]),clearError(){this.error=!1},focusOnCodeInput(){const e=this.$refs.codeInput;e.focus(),e.setSelectionRange(0,e.value.length)},submit(){const{clientId:e,clientSecret:t}=this.oauthStore,n={clientId:e,clientSecret:t,instance:this.instance.server,mfaToken:this.authSettings.mfa_token,code:this.code};qL.verifyOTPCode(n).then(s=>{if(s.error){this.error=s.error,this.code=null,this.focusOnCodeInput();return}this.login(s).then(()=>{this.$router.push({name:"friends"})})})}}},Rie={class:"login-panel panel panel-default"},Mie={class:"panel-heading"},Nie={class:"title"},Fie={class:"panel-body"},Die={class:"form-group"},Uie={for:"code"},jie={class:"form-group"},Bie={class:"login-bottom"},zie={type:"submit",class:"btn button-default"},qie={key:0,class:"form-group"},Hie={class:"alert error"};function Vie(e,t,n,s,r,o){const i=O("FAIcon");return p(),b("div",Rie,[g("div",Mie,[g("h1",Nie,w(e.$t("login.heading.totp")),1)]),g("div",Fie,[g("form",{class:"login-form",onSubmit:t[3]||(t[3]=Te((...a)=>e.submit&&e.submit(...a),["prevent"]))},[g("div",Die,[g("label",Uie,w(e.$t("login.authentication_code")),1),at(g("input",{id:"code",ref:"codeInput","onUpdate:modelValue":t[0]||(t[0]=a=>e.code=a),class:"input form-control"},null,512),[[Nt,e.code]])]),g("div",jie,[g("div",Bie,[g("div",null,[g("button",{class:"button-unstyled -link",type:"button",onClick:t[1]||(t[1]=Te((...a)=>e.requireRecovery&&e.requireRecovery(...a),["prevent"]))},w(e.$t("login.enter_recovery_code")),1),t[5]||(t[5]=g("br",null,null,-1)),g("button",{class:"button-unstyled -link",type:"button",onClick:t[2]||(t[2]=Te((...a)=>e.abortMFA&&e.abortMFA(...a),["prevent"]))},w(e.$t("general.cancel")),1)]),g("button",zie,w(e.$t("general.verify")),1)])])],32)]),e.error?(p(),b("div",qie,[g("div",Hie,[de(w(e.error)+" ",1),g("button",{class:"button-unstyled",onClick:t[4]||(t[4]=(...a)=>e.clearError&&e.clearError(...a))},[T(i,{size:"lg",class:"fa-scale-110 fa-old-padding",icon:"times"})])])])):E("",!0)])}const Wie=ge(Oie,[["render",Vie]]),HL={name:"AuthForm",render(){return Zo(O(this.authForm))},computed:{authForm(){return this.requiredTOTP?"MFATOTPForm":this.requiredRecovery?"MFARecoveryForm":"LoginForm"},...sn(Yo,["requiredTOTP","requiredRecovery"])},components:{MFARecoveryForm:Lie,MFATOTPForm:Wie,LoginForm:mie}},Gie=({store:e,status:t,spoilerText:n,visibility:s,sensitive:r,poll:o,media:i=[],inReplyToStatusId:a=void 0,quoteId:c=void 0,contentType:u="text/plain",preview:f=!1,idempotencyKey:h=""})=>{const v=Z.map(i,"id");return Ln.postStatus({credentials:e.state.users.currentUser.credentials,status:t,spoilerText:n,visibility:s,sensitive:r,mediaIds:v,inReplyToStatusId:a,quoteId:c,contentType:u,poll:o,preview:f,idempotencyKey:h}).then(y=>(!y.error&&!f&&e.dispatch("addNewStatuses",{statuses:[y],timeline:"friends",showImmediately:!0,noIdUpdate:!0}),y)).catch(y=>({error:y.message}))},Kie=({store:e,statusId:t,status:n,spoilerText:s,sensitive:r,poll:o,media:i=[],contentType:a="text/plain"})=>{const c=Z.map(i,"id");return Ln.editStatus({id:t,credentials:e.state.users.currentUser.credentials,status:n,spoilerText:s,sensitive:r,poll:o,mediaIds:c,contentType:a}).then(u=>(u.error||e.dispatch("addNewStatuses",{statuses:[u],timeline:"friends",showImmediately:!0,noIdUpdate:!0}),u)).catch(u=>(console.error("Error editing status",u),{error:u.message}))},xie=({store:e,formData:t})=>{const n=e.state.users.currentUser.credentials;return Ln.uploadMedia({credentials:n,formData:t})},Yie=({store:e,id:t,description:n})=>{const s=e.state.users.currentUser.credentials;return Ln.setMediaDescription({credentials:s,id:t,description:n})},Uu={postStatus:Gie,editStatus:Kie,uploadMedia:xie,setMediaDescription:Yie},Jp=()=>`${Math.random()}`.replace(".","-"),Xie=e=>{const t=["B","KiB","MiB","GiB","TiB"];let n=e;if(n<1)return n+" "+t[0];const s=Math.min(Math.floor(Math.log(n)/Math.log(1024)),t.length-1);n=(n/Math.pow(1024,s)).toFixed(2)*1;const r=t[s];return{num:n,unit:r}},jy={fileSizeFormat:Xie};et.add(sP,Zs);const Jie={data(){return{uploadCount:0,uploadReady:!0}},computed:{uploading(){return this.uploadCount>0}},methods:{onClick(){this.uploadReady&&this.$refs.input.click()},async resizeImage(e){return!e.type.startsWith("image/")||e.type==="image/gif"||!this.$store.getters.mergedConfig.imageCompression||e.type==="image/png"&&await this.isAnimatedPng(e)?e:new Promise(t=>{const n=new Image;n.onload=()=>{let s=n.width,r=n.height;const o=2048;(s>o||r>o)&&(s>r?(r=Math.round(r*o/s),s=o):(s=Math.round(s*o/r),r=o));const i=document.createElement("canvas");i.width=s,i.height=r,i.getContext("2d").drawImage(n,0,0,s,r);const u=document.createElement("canvas").toDataURL("image/webp").startsWith("data:image/webp"),f=!this.$store.getters.mergedConfig.alwaysUseJpeg&&u?"image/webp":"image/jpeg",h=f==="image/webp"?".webp":".jpg",v=e.name.replace(/\.[^/.]+$/,"")+h;i.toBlob(y=>{t(new File([y],v,{type:f,lastModified:Date.now()}))},f,.85)},n.src=URL.createObjectURL(e)})},async isAnimatedPng(e){const t=await e.arrayBuffer(),n=new Uint8Array(t);for(let s=0;s<n.length-8;s++)if(n[s]===97&&n[s+1]===99&&n[s+2]===84&&n[s+3]===76)return!0;return!1},async uploadFile(e){const t=this,n=this.$store;if(e.size>n.state.instance.uploadlimit){const o=jy.fileSizeFormat(e.size),i=jy.fileSizeFormat(n.state.instance.uploadlimit);t.$emit("upload-failed","file_too_big",{filesize:o.num,filesizeunit:o.unit,allowedsize:i.num,allowedsizeunit:i.unit});return}const s=await this.resizeImage(e),r=new FormData;r.append("file",s),t.$emit("uploading"),t.uploadCount++,Uu.uploadMedia({store:n,formData:r}).then(o=>{t.$emit("uploaded",o),t.decreaseUploadCount()},o=>{console.error("Error uploading file",o),t.$emit("upload-failed","default"),t.decreaseUploadCount()})},decreaseUploadCount(){this.uploadCount--,this.uploadCount===0&&this.$emit("all-uploaded")},clearFile(){this.uploadReady=!1,this.$nextTick(()=>{this.uploadReady=!0})},multiUpload(e){for(const t of e)this.uploadFile(t)},change({target:e}){this.multiUpload(e.files)}},props:{dropFiles:Object,disabled:Boolean,normalButton:Boolean,acceptTypes:{type:String,default:"*/*"}},watch:{dropFiles:function(e){this.uploading||this.multiUpload(e)}}},Zie=["title"],Qie=["disabled","accept"];function eae(e,t,n,s,r,o){const i=O("FAIcon");return p(),b("button",{class:he(["media-upload",[e.normalButton?"button-default btn":"button-unstyled",{disabled:e.disabled}]]),title:e.$t("tool_tip.media_upload"),onClick:t[1]||(t[1]=(...a)=>e.onClick&&e.onClick(...a))},[e.uploading?(p(),Y(i,{key:0,class:"progress-icon",icon:"circle-notch",spin:""})):E("",!0),e.uploading?E("",!0):(p(),Y(i,{key:1,class:"new-icon",icon:"upload"})),e.normalButton?(p(),b(Se,{key:2},[de(w(" ")+" "+w(e.uploading?e.$t("general.loading"):e.$t("tool_tip.media_upload")),1)],64)):E("",!0),e.uploadReady?(p(),b("input",{key:3,ref:"input",class:"hidden-input-file",disabled:e.disabled,type:"file",multiple:"true",accept:e.acceptTypes,onChange:t[0]||(t[0]=(...a)=>e.change&&e.change(...a))},null,40,Qie)):E("",!0)],10,Zie)}const tae=ge(Jie,[["render",eae]]);et.add(Pp,gd,W5,Z5);const nae={props:["showAll","userDefault","originalScope","initialScope","onScopeChange"],data(){return{currentScope:this.initialScope}},computed:{showNothing(){return!this.showPublic&&!this.showUnlisted&&!this.showPrivate&&!this.showDirect},showPublic(){return this.originalScope!=="direct"&&this.shouldShow("public")},showUnlisted(){return this.originalScope!=="direct"&&this.shouldShow("unlisted")},showPrivate(){return this.originalScope!=="direct"&&this.shouldShow("private")},showDirect(){return this.shouldShow("direct")},css(){return{public:{toggled:this.currentScope==="public"},unlisted:{toggled:this.currentScope==="unlisted"},private:{toggled:this.currentScope==="private"},direct:{toggled:this.currentScope==="direct"}}}},methods:{shouldShow(e){return this.showAll||this.currentScope===e||this.originalScope===e||this.userDefault===e||e==="direct"},changeVis(e){this.currentScope=e,this.onScopeChange&&this.onScopeChange(e)}}},sae={key:0,class:"ScopeSelector"},rae=["title"],oae=["title"],iae=["title"],aae=["title"];function lae(e,t,n,s,r,o){const i=O("FAIcon");return e.showNothing?E("",!0):(p(),b("div",sae,[e.showDirect?(p(),b("button",{key:0,class:he(["button-unstyled scope",e.css.direct]),title:e.$t("post_status.scope.direct"),type:"button",onClick:t[0]||(t[0]=a=>e.changeVis("direct"))},[T(i,{icon:"envelope",class:"fa-scale-110 fa-old-padding"})],10,rae)):E("",!0),t[4]||(t[4]=de(" "+w(" ")+" ",-1)),e.showPrivate?(p(),b("button",{key:1,class:he(["button-unstyled scope",e.css.private]),title:e.$t("post_status.scope.private"),type:"button",onClick:t[1]||(t[1]=a=>e.changeVis("private"))},[T(i,{icon:"lock",class:"fa-scale-110 fa-old-padding"})],10,oae)):E("",!0),t[5]||(t[5]=de(" "+w(" ")+" ",-1)),e.showUnlisted?(p(),b("button",{key:2,class:he(["button-unstyled scope",e.css.unlisted]),title:e.$t("post_status.scope.unlisted"),type:"button",onClick:t[2]||(t[2]=a=>e.changeVis("unlisted"))},[T(i,{icon:"lock-open",class:"fa-scale-110 fa-old-padding"})],10,iae)):E("",!0),t[6]||(t[6]=de(" "+w(" ")+" ",-1)),e.showPublic?(p(),b("button",{key:3,class:he(["button-unstyled scope",e.css.public]),title:e.$t("post_status.scope.public"),type:"button",onClick:t[3]||(t[3]=a=>e.changeVis("public"))},[T(i,{icon:"globe",class:"fa-scale-110 fa-old-padding"})],10,aae)):E("",!0)]))}const cae=ge(nae,[["render",lae]]),uae=(e,t,n)=>e.slice(0,t.start)+n+e.slice(t.end),dae=(e,t)=>{const n=WL(e),s=VL(n);return Z.find(s,({start:r,end:o})=>r<=t&&o>t)},VL=e=>Z.reduce(e,(t,n)=>{const s={word:n,start:0,end:n.length};if(t.length>0){const r=t.pop();s.start+=r.end,s.end+=r.end,t.push(r)}return t.push(s),t},[]),WL=e=>{const t=[];let n="";for(let s=0;s<e.length;s++){const r=e[s];if(!n){n=r;continue}if(!!r.trim()!=!!n.trim()){t.push(n),n=r;continue}n+=r}return n&&t.push(n),t},$b={wordAtPosition:dae,addPositionToWords:VL,splitByWhitespaceBoundary:WL,replaceWord:uae},fae={props:["radio","modelValue","indeterminate","disabled"],emits:["update:modelValue"],data:e=>({indeterminateTransitionFix:e.indeterminate}),watch:{indeterminate(e){e&&(this.indeterminateTransitionFix=!0)}},methods:{onTransitionEnd(){this.indeterminate||(this.indeterminateTransitionFix=!1)}}},hae=["disabled","checked","indeterminate"];function pae(e,t,n,s,r,o){return p(),b("label",{class:he(["checkbox",[{disabled:n.disabled,indeterminate:n.indeterminate,"indeterminate-fix":e.indeterminateTransitionFix},n.radio?"-radio":"-checkbox"]])},[e.$slots.before?(p(),b("span",{key:0,class:he(["label -before",{faint:n.disabled}])},[Ot(e.$slots,"before")],2)):E("",!0),g("input",{type:"checkbox",class:"visible-for-screenreader-only",disabled:n.disabled,checked:n.modelValue,indeterminate:n.indeterminate,onChange:t[0]||(t[0]=i=>e.$emit("update:modelValue",i.target.checked))},null,40,hae),g("i",{class:he(["input checkbox-indicator",[{disabled:n.disabled},n.radio?"-radio":"-checkbox"]]),"aria-hidden":!0,onTransitionendCapture:t[1]||(t[1]=(...i)=>o.onTransitionEnd&&o.onTransitionEnd(...i))},null,34),e.$slots.default?(p(),b("span",{key:1,class:he(["label -after",{faint:n.disabled}])},[Ot(e.$slots,"default")],2)):E("",!0)],2)}const io=ge(fae,[["render",pae]]),mae={name:"Popover",props:{trigger:String,placement:String,boundTo:Object,boundToSelector:String,margin:Object,offset:Object,popoverClass:String,removePadding:Boolean,disabled:Boolean,overlayCenters:Boolean,overlayCentersSelector:String,stayOnClick:Boolean,normalButton:Boolean,hideTrigger:{type:Boolean,default:!1},triggerAttrs:{type:Object,default:{}}},inject:{popoversZLayer:{default:""}},data(){return{anchorEl:null,teleport:!1,lockReEntry:!1,hidden:!0,styles:{},oldSize:{width:0,height:0},scrollable:null,graceTimeout:null,parentPopover:null,disableClickOutside:!1,childrenShown:new Set}},computed:{allTriggerAttrs(){const e={...this.triggerAttrs};return this.hideTrigger&&(e["aria-hidden"]=!0,e.tabindex=1),e}},methods:{setAnchorEl(e){this.anchorEl=e,this.updateStyles()},containerBoundingClientRect(){return(this.boundToSelector?this.$el.closest(this.boundToSelector):this.$el.offsetParent).getBoundingClientRect()},updateStyles(){if(this.hidden){this.styles={};return}const e=this.anchorEl||this.$refs.trigger&&this.$refs.trigger.children[0]||this.$el,t=e.offsetHeight||e.clientHeight,n=e.offsetWidth||e.clientWidth,s=e.getBoundingClientRect(),r=getComputedStyle(e),o=parseFloat(r.paddingTop),i=parseFloat(r.paddingBottom),a=parseFloat(r.paddingRight),c=parseFloat(r.paddingLeft),u={x:s.left+n*.5,y:s.top+t*.5},f=this.$refs.content,h=this.overlayCenters?this.$refs.content.querySelector(this.overlayCentersSelector):null,v=this.boundTo&&(this.boundTo.x==="container"||this.boundTo.y==="container")&&this.containerBoundingClientRect(),y=this.margin||{},S=this.boundTo&&this.boundTo.x==="container"?{min:v.left+(y.left||0),max:v.right-(y.right||0)}:{min:0+(y.left||10),max:window.innerWidth-(y.right||10)},k=this.boundTo&&this.boundTo.y==="container"?{min:v.top+(y.top||0),max:v.bottom-(y.bottom||0)}:{min:0+(y.top||50),max:window.innerHeight-(y.bottom||5)};let I=0,C=0;if(h){const W=f.getBoundingClientRect(),V=h.getBoundingClientRect(),U=V.left-W.left,ie=V.top-W.top;I=-U-h.offsetWidth*.5,C=-ie-h.offsetHeight*.5}else I=f.offsetWidth*-.5,C=f.offsetHeight*-.5;const $=u.x+I,P=$+f.offsetWidth,A=u.y+C,R=A+f.offsetHeight;$<S.min&&(I+=S.min-$),P>S.max&&(I-=P-S.max),A<k.min&&(C+=k.min-A),R>k.max&&(C-=R-k.max);let B=0,N=0;if(h)B=u.x+I,N=u.y+C;else if(this.placement!=="right"&&this.placement!=="left"){let W=this.placement!=="bottom";const V=u.y-t*.5+(this.removePadding?o:0),U=u.y+t*.5-(this.removePadding?i:0);U+f.offsetHeight>k.max&&(W=!0),V-f.offsetHeight<k.min&&(W=!1);const ie=this.offset&&this.offset.y||0;N=W?V-ie-f.offsetHeight:U+ie;const le=this.offset&&this.offset.x||0;B=u.x+I+le}else{let W=this.placement!=="right";const V=u.x-n*.5+(this.removePadding?c:0),U=u.x+n*.5-(this.removePadding?a:0);U+f.offsetWidth>S.max&&(W=!0),V-f.offsetWidth<S.min&&(W=!1);const ie=this.offset&&this.offset.x||0;B=W?V-ie-f.offsetWidth:U+ie;const le=this.offset&&this.offset.y||0;N=u.y+C+le}this.styles={left:`${Math.round(B)}px`,top:`${Math.round(N)}px`},this.popoversZLayer&&(this.styles["--ZI_popover_override"]=`var(--ZI_${this.popoversZLayer}_popovers)`),v&&(this.styles.maxWidth=`${Math.round(v.width)}px`)},showPopover(){if(this.disabled)return;this.disableClickOutside=!0,setTimeout(()=>{this.disableClickOutside=!1},0);const e=this.hidden;this.hidden=!1,this.parentPopover&&this.parentPopover.onChildPopoverState(this,!0),(this.trigger==="click"||this.stayOnClick)&&document.addEventListener("click",this.onClickOutside),this.scrollable.addEventListener("scroll",this.onScroll),this.scrollable.addEventListener("resize",this.onResize),this.$nextTick(()=>{e&&this.$emit("show"),this.updateStyles()})},hidePopover(){this.disabled||(this.hidden||this.$emit("close"),this.hidden=!0,this.parentPopover&&this.parentPopover.onChildPopoverState(this,!1),this.trigger==="click"&&document.removeEventListener("click",this.onClickOutside),this.scrollable.removeEventListener("scroll",this.onScroll),this.scrollable.removeEventListener("resize",this.onResize))},resizePopover(){setTimeout(()=>{this.updateStyles()},1)},onMouseenter(){this.trigger==="hover"&&(this.lockReEntry=!1,clearTimeout(this.graceTimeout),this.graceTimeout=null,this.showPopover())},onMouseleave(){this.trigger==="hover"&&this.childrenShown.size===0&&(this.graceTimeout=setTimeout(()=>this.hidePopover(),1))},onMouseenterContent(){this.trigger==="hover"&&!this.lockReEntry&&(this.lockReEntry=!0,clearTimeout(this.graceTimeout),this.graceTimeout=null,this.showPopover())},onMouseleaveContent(){this.trigger==="hover"&&this.childrenShown.size===0&&(this.graceTimeout=setTimeout(()=>this.hidePopover(),1))},onClick(){this.trigger==="click"&&(this.hidden?this.showPopover():this.hidePopover())},onClickOutside(e){this.disableClickOutside||this.hidden||this.$refs.content&&this.$refs.content.contains(e.target)||this.$el.contains(e.target)||this.childrenShown.size>0||(this.hidePopover(),this.parentPopover&&this.parentPopover.onClickOutside(e))},onScroll(){this.updateStyles()},onResize(){const e=this.$refs.content;e&&(this.oldSize.width!==e.offsetWidth||this.oldSize.height!==e.offsetHeight)&&(this.updateStyles(),this.oldSize={width:e.offsetWidth,height:e.offsetHeight})},onChildPopoverState(e,t){t?this.childrenShown.add(e):this.childrenShown.delete(e)}},updated(){this.onResize()},mounted(){this.teleport=!0;let e=this.$refs.trigger.closest(".column.-scrollable")||this.$refs.trigger.closest(".mobile-notifications");e||(e=window),this.scrollable=e;let t=this.$parent;for(;t&&t.$.type.name!=="Popover";)t=t.$parent;this.parentPopover=t},beforeUnmount(){this.hidePopover()}};function gae(e,t,n,s,r,o){return p(),b("span",{class:"popover-wrapper",onMouseenter:t[4]||(t[4]=(...i)=>e.onMouseenter&&e.onMouseenter(...i)),onMouseleave:t[5]||(t[5]=(...i)=>e.onMouseleave&&e.onMouseleave(...i))},[g("button",An({ref:"trigger",class:["popover-trigger-button",e.normalButton?"button-default btn":"button-unstyled"],type:"button"},e.allTriggerAttrs,{onClick:t[0]||(t[0]=(...i)=>e.onClick&&e.onClick(...i))}),[Ot(e.$slots,"trigger")],16),(p(),Y(Yn,{disabled:!e.teleport,to:"#popovers"},[T(X8,{name:"fade"},{default:X(()=>[e.hidden?E("",!0):(p(),b("div",{key:0,ref:"content",style:hn(e.styles),class:he(["popover",e.popoverClass||"popover-default"]),onMouseenter:t[1]||(t[1]=(...i)=>e.onMouseenterContent&&e.onMouseenterContent(...i)),onMouseleave:t[2]||(t[2]=(...i)=>e.onMouseleaveContent&&e.onMouseleaveContent(...i)),onClick:t[3]||(t[3]=(...i)=>e.onClickContent&&e.onClickContent(...i))},[Ot(e.$slots,"content",{class:"popover-inner",close:e.hidePopover,resize:e.resizePopover})],38))]),_:3})],8,["disabled"]))],32)}const Jn=ge(mae,[["render",gae]]),U2=Object.freeze(Object.defineProperty({__proto__:null,default:Jn},Symbol.toStringTag,{value:"Module"})),vae={props:["src","referrerpolicy","mimetype","imageLoadError","imageLoadHandler","alt","height","width","dataSrc","loading"],data(){return{realSrc:this.src,stopGifs:this.$store.getters.mergedConfig.stopGifs}},computed:{animated(){return this.realSrc?this.stopGifs&&(this.mimetype==="image/gif"||this.realSrc.endsWith(".gif")):!1},style(){const e=t=>/\d$/.test(t)?t+"px":t;return{height:this.height?e(this.height):null,width:this.width?e(this.width):null}}},methods:{loadLazy(){this.dataSrc&&(this.realSrc=this.dataSrc)},onLoad(){if(!this.realSrc)return;const e=this.$refs.src;if(!e)return;this.imageLoadHandler&&this.imageLoadHandler(e);const t=this.$refs.canvas;if(!t)return;const n=e.naturalWidth,s=e.naturalHeight;t.width=n,t.height=s,t.getContext("2d").drawImage(e,0,0,n,s)},onError(){this.imageLoadError&&this.imageLoadError()}},watch:{src(){this.realSrc=this.src},dataSrc(){this.$el.removeAttribute("data-loaded")}}},bae={key:0,ref:"canvas"},yae=["alt","title","data-src","src","referrerpolicy","loading"];function _ae(e,t,n,s,r,o){return p(),b("div",{class:he(["still-image",{animated:e.animated}]),style:hn(e.style)},[e.animated?(p(),b("canvas",bae,null,512)):E("",!0),(p(),b("img",{ref:"src",key:e.realSrc,alt:e.alt,title:e.alt,"data-src":e.dataSrc,src:e.realSrc,referrerpolicy:e.referrerpolicy,loading:e.loading,onLoad:t[0]||(t[0]=(...i)=>e.onLoad&&e.onLoad(...i)),onError:t[1]||(t[1]=(...i)=>e.onError&&e.onError(...i))},null,40,yae)),Ot(e.$slots,"default")],6)}const Ji=ge(vae,[["render",_ae]]);et.add(VJ,MZ,Ap,wZ,J_,$J,hZ,XJ,KJ,TJ,J5,AJ);const wae={"smileys-and-emotion":"smile","people-and-body":"user","animals-and-nature":"paw","food-and-drink":"ice-cream","travel-and-places":"bus",activities:"basketball-ball",objects:"lightbulb",symbols:"code",flags:"flag"},Sae=(e,t,n)=>{const s=[e.displayText,n(e)];return e.annotations&&t.forEach(r=>{var a,c;const o=((a=e.annotations[r])==null?void 0:a.keywords)||[],i=(c=e.annotations[r])==null?void 0:c.name;s.push(...o.concat([i]).filter(u=>u))}),s},$ae=(e,t="",n,s)=>{if(t==="")return e;const r=t.toLowerCase(),o=[];for(const i of e){const a=Sae(i,n,s).map(u=>u.toLowerCase().indexOf(r)).filter(u=>u>-1),c=a.length?Math.min(...a):-1;c>-1&&(Array.isArray(o[c])||(o[c]=[]),o[c].push(i))}return o.flat()},kae=e=>{const t=e.style.transform,n=/translateY\((\d+)px\)/.exec(t);return n?n[1]:0},Cae=e=>e.replace(/^row-\d+-/,""),Tae={props:{enableStickerPicker:{required:!1,type:Boolean,default:!0},hideCustomEmoji:{required:!1,type:Boolean,default:!1}},inject:{popoversZLayer:{default:""}},data(){return{keyword:"",activeGroup:"custom",showingStickers:!1,groupsScrolledClass:"scrolled-top",keepOpen:!1,customEmojiTimeout:null,hideCustomEmojiInPicker:!1,contentLoaded:!1,groupRefs:{},emojiRefs:{},filteredEmojiGroups:[],emojiSize:0,width:0}},components:{StickerPicker:gr(()=>Ve(()=>import("./sticker_picker.rmgSQPc6.js"),__vite__mapDeps([0,1]))),Checkbox:io,StillImage:Ji,Popover:Jn},methods:{groupScroll(e){e.currentTarget.scrollLeft+=e.deltaY+e.deltaX},updateEmojiSize(){const e=window.getComputedStyle(this.$refs.popover.$el),t=e.getPropertyValue("font-size")||"1rem",n=e.getPropertyValue("--emojiSize")||"2.2rem",s=t.replace(/[0-9,.]+/,"").trim(),r=Number(t.replace(/[^0-9,.]+/,"")),o=n.replace(/[0-9,.]+/,"").trim(),i=Number(n.replace(/[^0-9,.]+/,""));let a;s.endsWith("em")?a=r:a=r/14;let c;o.endsWith("em")?c=i*a*14:c=i;const u=c+2*.2*a*14;this.emojiSize=u},showPicker(){this.$refs.popover.showPopover(),this.$nextTick(()=>{this.onShowing()})},hidePicker(){this.$refs.popover.hidePopover()},setAnchorEl(e){this.$refs.popover.setAnchorEl(e)},setGroupRef(e){return t=>{this.groupRefs[e]=t}},onPopoverShown(){this.$emit("show")},onPopoverClosed(){this.$emit("close")},onStickerUploaded(e){this.$emit("sticker-uploaded",e)},onStickerUploadFailed(e){this.$emit("sticker-upload-failed",e)},onEmoji(e){const t=e.imageUrl?`:${e.displayText}:`:e.replacement;this.keepOpen||this.$refs.popover.hidePopover(),this.$emit("emoji",{insertion:t,insertionUrl:e.imageUrl,keepOpen:this.keepOpen})},onScroll(e,t,n,s){const r=this.$refs["emoji-groups"].$el;this.scrolledGroup(r,n,s)},scrolledGroup(e,t,n){const s=e.scrollTop+5;this.$nextTick(()=>{this.emojiItems.slice(t,n+1).forEach(r=>{const o=Cae(r.id),i=this.groupRefs["group-"+r.id];if(!i)return;const a=i.$el.parentElement;a&&a&&kae(a)<=s&&(this.activeGroup=o)}),this.scrollHeader()})},scrollHeader(){const e=this.groupRefs["group-header-"+this.activeGroup],t=e.offsetLeft,n=t+e.offsetWidth,s=this.$refs.header,r=s.scrollLeft,o=r+s.clientWidth,i=c=>{s.scrollLeft=c},a=7;t-a<r?i(t-a):n+a>o&&i(n+a-s.clientWidth)},highlight(e){this.setShowStickers(!1);const t=this.emojiItems.findIndex(n=>n.id===e);this.$refs["emoji-groups"].scrollToItem(t)},updateScrolledClass(e){e.scrollTop<=5?this.groupsScrolledClass="scrolled-top":e.scrollTop>=e.scrollTopMax-5?this.groupsScrolledClass="scrolled-bottom":this.groupsScrolledClass="scrolled-middle"},toggleStickers(){this.showingStickers=!this.showingStickers},setShowStickers(e){this.showingStickers=e},filterByKeyword(e,t){return $ae(e,t,this.languages,this.maybeLocalizedEmojiName)},onShowing(){const e=this.contentLoaded;this.updateEmojiSize(),this.recalculateItemPerRow(),this.$nextTick(()=>{this.$refs.search.focus()}),this.contentLoaded=!0,this.filteredEmojiGroups=this.getFilteredEmojiGroups(),e||this.$nextTick(()=>{this.defaultGroup&&this.highlight(this.defaultGroup)})},getFilteredEmojiGroups(){return this.allEmojiGroups.map(e=>({...e,emojis:this.filterByKeyword(e.emojis,Z.trim(this.keyword))})).filter(e=>e.emojis.length>0)},recalculateItemPerRow(){this.$nextTick(()=>{this.$refs["emoji-groups"]&&(this.width=this.$refs["emoji-groups"].$el.clientWidth)})}},watch:{keyword(){this.onScroll(),this.debouncedHandleKeywordChange()},allCustomGroups(){this.filteredEmojiGroups=this.getFilteredEmojiGroups()}},computed:{minItemSize(){return this.emojiSize},fontSize(){return this.$nextTick(()=>{this.updateEmojiSize()}),this.$store.getters.mergedConfig.fontSize},emojiHeight(){return this.emojiSize},itemPerRow(){return this.width?Math.floor(this.width/this.emojiSize):6},activeGroupView(){return this.showingStickers?"":this.activeGroup},stickersAvailable(){return this.$store.state.instance.stickers?this.$store.state.instance.stickers.length>0:0},allCustomGroups(){if(this.hideCustomEmoji||this.hideCustomEmojiInPicker)return{};const e=this.$store.getters.groupedCustomEmojis;return e.unpacked&&(e.unpacked.text=this.$t("emoji.unpacked")),e},defaultGroup(){return Object.keys(this.allCustomGroups)[0]},unicodeEmojiGroups(){return this.$store.getters.standardEmojiGroupList.map(e=>({id:`standard-${e.id}`,text:this.$t(`emoji.unicode_groups.${e.id}`),icon:wae[e.id],emojis:e.emojis}))},allEmojiGroups(){return Object.entries(this.allCustomGroups).map(([,e])=>e).concat(this.unicodeEmojiGroups)},stickerPickerEnabled(){return(this.$store.state.instance.stickers||[]).length!==0},debouncedHandleKeywordChange(){return Z.debounce(()=>{this.filteredEmojiGroups=this.getFilteredEmojiGroups()},500)},emojiItems(){return this.filteredEmojiGroups.map(e=>Z.chunk(e.emojis,this.itemPerRow).map((t,n)=>({...e,id:n===0?e.id:`row-${n}-${e.id}`,emojis:t,isFirstRow:n===0}))).reduce((e,t)=>e.concat(t),[])},languages(){return M_(this.$store.getters.mergedConfig.interfaceLanguage)},maybeLocalizedEmojiName(){return e=>{var t;if(!e.annotations)return e.displayText;if(e.displayTextI18n)return this.$t(e.displayTextI18n.key,e.displayTextI18n.args);for(const n of this.languages)if((t=e.annotations[n])!=null&&t.name)return e.annotations[n].name;return e.displayText}},isInModal(){return this.popoversZLayer==="modals"}}},Aae={class:"heading"},Eae={class:"emoji-search"},Iae=["placeholder"],Pae=["title","onClick"],Lae={key:0,class:"emoji-picker-header-image"},Oae={key:0,class:"additional-tabs"},Rae=["title"],Mae={key:0,class:"content"},Nae={key:0,class:"emoji-group-title"},Fae=["title","onClick"],Dae={key:0,class:"emoji-picker-emoji -unicode"},Uae={class:"keep-open"},jae={key:0,class:"hide-custom-emoji"},Bae={key:0,class:"stickers-content"};function zae(e,t,n,s,r,o){const i=O("still-image"),a=O("FAIcon"),c=O("DynamicScrollerItem"),u=O("DynamicScroller"),f=O("Checkbox"),h=O("sticker-picker"),v=O("Popover"),y=sc("body-scroll-lock");return p(),Y(v,{ref:"popover",trigger:"click","popover-class":"emoji-picker popover-default","hide-trigger":!0,onShow:e.onPopoverShown,onClose:e.onPopoverClosed},{content:X(()=>[g("div",Aae,[g("div",Eae,[at(g("input",{ref:"search","onUpdate:modelValue":t[0]||(t[0]=S=>e.keyword=S),type:"text",class:"input form-control",placeholder:e.$t("emoji.search_emoji"),onInput:t[1]||(t[1]=S=>S.target.composing=!1)},null,40,Iae),[[Nt,e.keyword]])]),at((p(),b("span",{ref:"header",class:"emoji-tabs",onWheel:t[2]||(t[2]=Te((...S)=>e.groupScroll&&e.groupScroll(...S),["prevent"]))},[(p(!0),b(Se,null,We(e.filteredEmojiGroups,S=>(p(),b("span",{ref_for:!0,ref:e.setGroupRef("group-header-"+S.id),key:S.id,class:he(["button-unstyled emoji-tabs-item",{toggled:e.activeGroupView===S.id}]),title:S.text,role:"button",onClick:Te(k=>e.highlight(S.id),["prevent"])},[S.image?(p(),b("span",Lae,[T(i,{alt:S.text,src:S.image},null,8,["alt","src"])])):(p(),Y(a,{key:1,icon:S.icon,"fixed-width":""},null,8,["icon"]))],10,Pae))),128))],32)),[[y,e.isInModal]]),e.stickerPickerEnabled?(p(),b("span",Oae,[g("span",{class:he(["button-unstyled stickers-tab-icon additional-tabs-item",{toggled:e.showingStickers}]),title:e.$t("emoji.stickers"),onClick:t[3]||(t[3]=Te((...S)=>e.toggleStickers&&e.toggleStickers(...S),["prevent"]))},[T(a,{icon:"sticky-note","fixed-width":""})],10,Rae)])):E("",!0)]),e.contentLoaded?(p(),b("div",Mae,[g("div",{class:he(["emoji-content",{hidden:e.showingStickers}])},[at((p(),Y(u,{ref:"emoji-groups",class:he(["emoji-groups",e.groupsScrolledClass]),"min-item-size":e.minItemSize,buffer:e.minItemSize,items:e.emojiItems,"emit-update":!0,onUpdate:e.onScroll,onVisible:e.recalculateItemPerRow,onResize:e.recalculateItemPerRow},{default:X(({item:S,index:k,active:I})=>[T(c,{ref:e.setGroupRef("group-"+S.id),item:S,active:I,"data-index":k,"size-dependencies":[S.emojis.length]},{default:X(()=>[g("div",{class:he(["emoji-group",{"first-row":S.isFirstRow}]),style:hn({"--__amount":e.itemPerRow})},[S.isFirstRow?(p(),b("h6",Nae,w(S.text),1)):E("",!0),(p(!0),b(Se,null,We(S.emojis,C=>(p(),b("span",{key:S.id+C.displayText,title:e.maybeLocalizedEmojiName(C),class:"emoji-item",role:"button",onClick:Te($=>e.onEmoji(C),["stop","prevent"])},[C.imageUrl?(p(),Y(i,{key:1,class:"emoji-picker-emoji -custom",loading:"lazy",alt:e.maybeLocalizedEmojiName(C),src:C.imageUrl,"data-emoji-name":S.id+C.displayText},null,8,["alt","src","data-emoji-name"])):(p(),b("span",Dae,w(C.replacement),1))],8,Fae))),128))],6)]),_:2},1032,["item","active","data-index","size-dependencies"])]),_:1},8,["class","min-item-size","buffer","items","onUpdate","onVisible","onResize"])),[[y,e.isInModal]]),g("div",Uae,[T(f,{modelValue:e.keepOpen,"onUpdate:modelValue":t[4]||(t[4]=S=>e.keepOpen=S)},{default:X(()=>[de(w(e.$t("emoji.keep_open")),1)]),_:1},8,["modelValue"])]),e.hideCustomEmoji?E("",!0):(p(),b("div",jae,[T(f,{modelValue:e.hideCustomEmojiInPicker,"onUpdate:modelValue":t[5]||(t[5]=S=>e.hideCustomEmojiInPicker=S),onChange:e.onShowing},{default:X(()=>[de(w(e.$t("emoji.hide_custom_emoji")),1)]),_:1},8,["modelValue","onChange"])]))],2),e.showingStickers?(p(),b("div",Bae,[T(h,{onUploaded:e.onStickerUploaded,onUploadFailed:e.onStickerUploadFailed},null,8,["onUploaded","onUploadFailed"])])):E("",!0)])):E("",!0)]),_:1},8,["onShow","onClose"])}const j2=ge(Tae,[["render",zae]]),qae={props:{ariaLive:{type:String,default:"assertive"}},data(){return{currentText:""}},methods:{announce(e){this.currentText=e,setTimeout(()=>{this.currentText=""},1e3)}}},Hae=["aria-live"];function Vae(e,t,n,s,r,o){return p(),b("div",{class:"visible-for-screenreader-only","aria-live":e.ariaLive},w(e.currentText),9,Hae)}const Wae=ge(qae,[["render",Vae]]);et.add(J5);const Gae={props:{user:Object}},Kae=Gae;function xae(e,t,n,s,r,o){const i=O("FAIcon");return e.user&&e.user.screen_name_ui_contains_non_ascii?(p(),Y(i,{key:0,icon:"code",title:e.$t("unicode_domain_indicator.tooltip")},null,8,["title"])):E("",!0)}const Zp=ge(Kae,[["render",xae]]),B2=(e,t,{top:n=0,left:s=0}={},r=!0)=>{const o={top:n+e.offsetTop,left:s+e.offsetLeft};if(!r&&e!==window){const{topPadding:i,leftPadding:a}=MT(e);o.top+=r?0:i,o.left+=r?0:a}if(e.offsetParent&&window.getComputedStyle(e.offsetParent).position!=="sticky"&&(t===window||t.contains(e.offsetParent)||t===e.offsetParent))return B2(e.offsetParent,t,o,!1);if(t!==window){const{topPadding:i,leftPadding:a}=MT(t);o.top+=i,o.left+=a}return o},MT=e=>{const t=window.getComputedStyle(e)["padding-top"],n=Number(t.substring(0,t.length-2)),s=window.getComputedStyle(e)["padding-left"],r=Number(s.substring(0,s.length-2));return{topPadding:n,leftPadding:r}};/*!
* Font Awesome Free 6.7.2 by @fontawesome - https://fontawesome.com
* License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License)
* Copyright 2024 Fonticons, Inc.
*/const Yae={prefix:"far",iconName:"face-smile-beam",icon:[512,512,[128522,"smile-beam"],"f5b8","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm177.6 62.1C192.8 334.5 218.8 352 256 352s63.2-17.5 78.4-33.9c9-9.7 24.2-10.4 33.9-1.4s10.4 24.2 1.4 33.9c-22 23.8-60 49.4-113.6 49.4s-91.7-25.5-113.6-49.4c-9-9.7-8.4-24.9 1.4-33.9s24.9-8.4 33.9 1.4zm40-89.3s0 0 0 0c0 0 0 0 0 0l-.2-.2c-.2-.2-.4-.5-.7-.9c-.6-.8-1.6-2-2.8-3.4c-2.5-2.8-6-6.6-10.2-10.3c-8.8-7.8-18.8-14-27.7-14s-18.9 6.2-27.7 14c-4.2 3.7-7.7 7.5-10.2 10.3c-1.2 1.4-2.2 2.6-2.8 3.4c-.3 .4-.6 .7-.7 .9l-.2 .2c0 0 0 0 0 0c0 0 0 0 0 0s0 0 0 0c-2.1 2.8-5.7 3.9-8.9 2.8s-5.5-4.1-5.5-7.6c0-17.9 6.7-35.6 16.6-48.8c9.8-13 23.9-23.2 39.4-23.2s29.6 10.2 39.4 23.2c9.9 13.2 16.6 30.9 16.6 48.8c0 3.4-2.2 6.5-5.5 7.6s-6.9 0-8.9-2.8c0 0 0 0 0 0s0 0 0 0zm160 0c0 0 0 0 0 0l-.2-.2c-.2-.2-.4-.5-.7-.9c-.6-.8-1.6-2-2.8-3.4c-2.5-2.8-6-6.6-10.2-10.3c-8.8-7.8-18.8-14-27.7-14s-18.9 6.2-27.7 14c-4.2 3.7-7.7 7.5-10.2 10.3c-1.2 1.4-2.2 2.6-2.8 3.4c-.3 .4-.6 .7-.7 .9l-.2 .2c0 0 0 0 0 0c0 0 0 0 0 0s0 0 0 0c-2.1 2.8-5.7 3.9-8.9 2.8s-5.5-4.1-5.5-7.6c0-17.9 6.7-35.6 16.6-48.8c9.8-13 23.9-23.2 39.4-23.2s29.6 10.2 39.4 23.2c9.9 13.2 16.6 30.9 16.6 48.8c0 3.4-2.2 6.5-5.5 7.6s-6.9 0-8.9-2.8c0 0 0 0 0 0s0 0 0 0s0 0 0 0z"]},Xae=Yae,Jae={prefix:"far",iconName:"bookmark",icon:[384,512,[128278,61591],"f02e","M0 48C0 21.5 21.5 0 48 0l0 48 0 393.4 130.1-92.9c8.3-6 19.6-6 27.9 0L336 441.4 336 48 48 48 48 0 336 0c26.5 0 48 21.5 48 48l0 440c0 9-5 17.2-13 21.3s-17.6 3.4-24.9-1.8L192 397.5 37.9 507.5c-7.3 5.2-16.9 5.9-24.9 1.8S0 497 0 488L0 48z"]},Zae={prefix:"far",iconName:"star",icon:[576,512,[11088,61446],"f005","M287.9 0c9.2 0 17.6 5.2 21.6 13.5l68.6 141.3 153.2 22.6c9 1.3 16.5 7.6 19.3 16.3s.5 18.1-5.9 24.5L433.6 328.4l26.2 155.6c1.5 9-2.2 18.1-9.7 23.5s-17.3 6-25.3 1.7l-137-73.2L151 509.1c-8.1 4.3-17.9 3.7-25.3-1.7s-11.2-14.5-9.7-23.5l26.2-155.6L31.1 218.2c-6.5-6.4-8.7-15.9-5.9-24.5s10.3-14.9 19.3-16.3l153.2-22.6L266.3 13.5C270.4 5.2 278.7 0 287.9 0zm0 79L235.4 187.2c-3.5 7.1-10.2 12.1-18.1 13.3L99 217.9 184.9 303c5.5 5.5 8.1 13.3 6.8 21L171.4 443.7l105.2-56.2c7.1-3.8 15.6-3.8 22.6 0l105.2 56.2L384.2 324.1c-1.3-7.7 1.2-15.5 6.8-21l85.9-85.1L358.6 200.5c-7.8-1.2-14.6-6.1-18.1-13.3L287.9 79z"]},qEe={prefix:"far",iconName:"window-minimize",icon:[512,512,[128469],"f2d1","M24 432c-13.3 0-24 10.7-24 24s10.7 24 24 24l464 0c13.3 0 24-10.7 24-24s-10.7-24-24-24L24 432z"]};et.add(Xae);const Qae={emits:["update:modelValue","shown"],props:{suggest:{required:!0,type:Function},modelValue:{required:!0,type:String},enableEmojiPicker:{required:!1,type:Boolean,default:!1},hideEmojiButton:{required:!1,type:Boolean,default:!1},enableStickerPicker:{required:!1,type:Boolean,default:!1},placement:{required:!1,type:String,default:"auto"},newlineOnCtrlEnter:{required:!1,type:Boolean,default:!1}},data(){return{randomSeed:Jp(),input:void 0,caretEl:void 0,highlighted:-1,caret:0,focused:!1,blurTimeout:null,temporarilyHideSuggestions:!1,disableClickOutside:!1,suggestions:[],overlayStyle:{},pickerShown:!1}},components:{Popover:Jn,EmojiPicker:j2,UnicodeDomainIndicator:Zp,ScreenReaderNotice:Wae},computed:{padEmoji(){return this.$store.getters.mergedConfig.padEmoji},defaultCandidateIndex(){return this.$store.getters.mergedConfig.autocompleteSelect?0:-1},preText(){return this.modelValue.slice(0,this.caret)},postText(){return this.modelValue.slice(this.caret)},showSuggestions(){return this.focused&&this.suggestions&&this.suggestions.length>0&&!this.pickerShown&&!this.temporarilyHideSuggestions},textAtCaret(){var e;return(e=this.wordAtCaret)==null?void 0:e.word},wordAtCaret(){if(this.modelValue&&this.caret)return $b.wordAtPosition(this.modelValue,this.caret-1)||{}},languages(){return M_(this.$store.getters.mergedConfig.interfaceLanguage)},maybeLocalizedEmojiNamesAndKeywords(){return e=>{const t=[e.displayText],n=[];return e.displayTextI18n&&t.push(this.$t(e.displayTextI18n.key,e.displayTextI18n.args)),e.annotations&&this.languages.forEach(s=>{var r,o;t.push((r=e.annotations[s])==null?void 0:r.name),n.push(...((o=e.annotations[s])==null?void 0:o.keywords)||[])}),{names:t.filter(s=>s),keywords:n.filter(s=>s)}}},maybeLocalizedEmojiName(){return e=>{var t;if(!e.annotations)return e.displayText;if(e.displayTextI18n)return this.$t(e.displayTextI18n.key,e.displayTextI18n.args);for(const n of this.languages)if((t=e.annotations[n])!=null&&t.name)return e.annotations[n].name;return e.displayText}},suggestionListId(){return`suggestions-${this.randomSeed}`},suggestionItemId(){return e=>`suggestion-item-${e}-${this.randomSeed}`}},mounted(){const{root:e,hiddenOverlayCaret:t,suggestorPopover:n}=this.$refs,s=e.querySelector(".emoji-input > input")||e.querySelector(".emoji-input > textarea");if(!s)return;this.input=s,this.caretEl=t,n.setAnchorEl?(n.setAnchorEl(this.caretEl),this.$refs.picker.setAnchorEl(this.caretEl)):console.warn("setAnchorEl not found, are we in a unit test?");const r=getComputedStyle(this.input);this.overlayStyle.padding=r.padding,this.overlayStyle.border=r.border,this.overlayStyle.margin=r.margin,this.overlayStyle.lineHeight=r.lineHeight,this.overlayStyle.fontFamily=r.fontFamily,this.overlayStyle.fontSize=r.fontSize,this.overlayStyle.wordWrap=r.wordWrap,this.overlayStyle.whiteSpace=r.whiteSpace,s.addEventListener("blur",this.onBlur),s.addEventListener("focus",this.onFocus),s.addEventListener("paste",this.onPaste),s.addEventListener("keyup",this.onKeyUp),s.addEventListener("keydown",this.onKeyDown),s.addEventListener("click",this.onClickInput),s.addEventListener("transitionend",this.onTransition),s.addEventListener("input",this.onInput),s.addEventListener("scroll",this.onInputScroll)},unmounted(){const{input:e}=this;e&&(e.removeEventListener("blur",this.onBlur),e.removeEventListener("focus",this.onFocus),e.removeEventListener("paste",this.onPaste),e.removeEventListener("keyup",this.onKeyUp),e.removeEventListener("keydown",this.onKeyDown),e.removeEventListener("click",this.onClickInput),e.removeEventListener("transitionend",this.onTransition),e.removeEventListener("input",this.onInput),e.removeEventListener("scroll",this.onInputScroll))},watch:{showSuggestions:function(e){this.$emit("shown",e),e?this.$refs.suggestorPopover.showPopover():this.$refs.suggestorPopover.hidePopover()},textAtCaret:async function(e){if(e===void 0)return;const t=e.charAt(0);if(e===t){this.suggestions=[];return}const n=await this.suggest(e,this.maybeLocalizedEmojiNamesAndKeywords);if(this.textAtCaret!==e||n.length<=0){this.suggestions=[];return}this.suggestions=Z.take(n,5).map(({imageUrl:s,...r})=>({...r,img:s||""})),this.highlighted=this.defaultCandidateIndex,this.$refs.screenReaderNotice.announce(this.$t("tool_tip.autocomplete_available",{number:this.suggestions.length},this.suggestions.length))}},methods:{onInputScroll(e){this.$refs.hiddenOverlay.scrollTo({top:this.input.scrollTop,left:this.input.scrollLeft}),this.setCaret(e)},triggerShowPicker(){this.$nextTick(()=>{this.$refs.picker.showPicker(),this.scrollIntoView()}),this.disableClickOutside=!0,setTimeout(()=>{this.disableClickOutside=!1},0)},togglePicker(){this.input.focus(),this.pickerShown?this.$refs.picker.hidePicker():(this.scrollIntoView(),this.$refs.picker.showPicker(),this.$refs.picker.startEmojiLoad())},replace(e){const t=$b.replaceWord(this.modelValue,this.wordAtCaret,e);this.$emit("update:modelValue",t),this.caret=0},insert({insertion:e,keepOpen:t,surroundingSpace:n=!0}){const s=this.modelValue.substring(0,this.caret)||"",r=this.modelValue.substring(this.caret)||"",o=/\s/,i=n&&!o.exec(s.slice(-1))&&s.length&&this.padEmoji>0?" ":"",a=n&&!o.exec(r[0])&&this.padEmoji?" ":"",c=[s,i,e,a,r].join("");this.$emit("update:modelValue",c);const u=this.caret+(e+a+i).length;t||this.input.focus(),this.$nextTick(function(){this.input.setSelectionRange(u,u),this.caret=u})},replaceText(e,t){const n=this.suggestions.length||0;if(this.textAtCaret.length!==1&&(n>0||t)){const r=(t||this.suggestions[this.highlighted]).replacement,o=$b.replaceWord(this.modelValue,this.wordAtCaret,r);this.$emit("update:modelValue",o),this.highlighted=0;const i=this.wordAtCaret.start+r.length;this.$nextTick(function(){this.input.focus(),this.input.setSelectionRange(i,i),this.caret=i}),e.preventDefault()}},cycleBackward(e){const t=this.suggestions.length||0;this.highlighted-=1,this.highlighted===-1?this.input.focus():this.highlighted<-1&&(this.highlighted=t-1),t>0&&e.preventDefault()},cycleForward(e){const t=this.suggestions.length||0;this.highlighted+=1,this.highlighted>=t&&(this.highlighted=-1,this.input.focus()),t>0&&e.preventDefault()},scrollIntoView(){const e=this.$refs.picker.$el,t=this.$el.closest(".sidebar-scroller")||this.$el.closest(".post-form-modal-view")||window,n=t===window?t.scrollY:t.scrollTop,s=t===window?t.innerHeight:t.offsetHeight,r=n+s,o=e.offsetHeight+B2(e,t).top,i=Math.max(0,o-r),a=n+i;t===window?t.scroll(0,a):t.scrollTop=a,this.$nextTick(()=>{const{offsetHeight:c}=this.input,{picker:u}=this.$refs;u.$el.getBoundingClientRect().bottom>window.innerHeight&&(u.$el.style.top="auto",u.$el.style.bottom=c+"px")})},onPickerShown(){this.pickerShown=!0},onPickerClosed(){this.pickerShown=!1},onBlur(e){this.blurTimeout=setTimeout(()=>{this.focused=!1,this.setCaret(e)},200)},onClick(e,t){this.replaceText(e,t)},onFocus(e){this.blurTimeout&&(clearTimeout(this.blurTimeout),this.blurTimeout=null),this.focused=!0,this.setCaret(e),this.temporarilyHideSuggestions=!1},onKeyUp(e){const{key:t}=e;this.setCaret(e),t==="Escape"?this.temporarilyHideSuggestions=!0:this.temporarilyHideSuggestions=!1},onPaste(e){this.setCaret(e)},onKeyDown(e){const{ctrlKey:t,shiftKey:n,key:s}=e;this.newlineOnCtrlEnter&&t&&s==="Enter"&&(this.insert({insertion:`
`,surroundingSpace:!1}),e.stopPropagation(),e.preventDefault(),this.$nextTick(()=>{this.input.blur(),this.input.focus()})),this.temporarilyHideSuggestions||(s==="Tab"&&(n?this.cycleBackward(e):this.cycleForward(e)),s==="ArrowUp"?this.cycleBackward(e):s==="ArrowDown"&&this.cycleForward(e),s==="Enter"&&(t||this.replaceText(e))),s==="Escape"&&(this.temporarilyHideSuggestions||this.input.focus())},onInput(e){this.setCaret(e),this.$emit("update:modelValue",e.target.value)},onStickerUploaded(e){this.$emit("sticker-uploaded",e)},onStickerUploadFailed(e){this.$emit("sticker-upload-Failed",e)},setCaret({target:{selectionStart:e}}){this.caret=e,this.$nextTick(()=>{this.$refs.suggestorPopover.updateStyles()})},autoCompleteItemLabel(e){return e.user?e.displayText+" "+e.detailText:this.maybeLocalizedEmojiName(e)}}},ele={ref:"hiddenOverlayCaret",class:"caret"},tle=["title"],nle=["id"],sle=["id","aria-label","aria-selected","onClick"],rle={class:"image"},ole=["src"],ile={key:1},ale={class:"label"},lle={key:0,class:"displayText"},cle={key:1,class:"displayText"},ule={class:"detailText"};function dle(e,t,n,s,r,o){const i=O("screen-reader-notice"),a=O("FAIcon"),c=O("EmojiPicker"),u=O("UnicodeDomainIndicator"),f=O("Popover");return p(),b("div",{ref:"root",class:he(["input emoji-input",{"with-picker":!e.hideEmojiButton}])},[Ot(e.$slots,"default",{id:"textbox-"+e.randomSeed,ariaOwns:e.suggestionListId,ariaAutocomplete:"both",ariaExpanded:e.showSuggestions,ariaActivedescendant:!e.showSuggestions||e.highlighted===-1?"":e.suggestionItemId(e.highlighted)}),g("div",{ref:"hiddenOverlay",class:"hidden-overlay",style:hn(e.overlayStyle),"aria-hidden":!0},[g("span",null,w(e.preText),1),g("span",ele,"x",512),g("span",null,w(e.postText),1)],4),T(i,{ref:"screenReaderNotice","aria-live":"assertive"},null,512),e.enableEmojiPicker?(p(),b(Se,{key:0},[e.hideEmojiButton?E("",!0):(p(),b("button",{key:0,class:"button-unstyled emoji-picker-icon",type:"button",title:e.$t("emoji.add_emoji"),onClick:t[0]||(t[0]=Te((...h)=>e.togglePicker&&e.togglePicker(...h),["prevent"]))},[T(a,{icon:["far","smile-beam"]})],8,tle)),e.enableEmojiPicker?(p(),Y(c,{key:1,ref:"picker","enable-sticker-picker":e.enableStickerPicker,class:"emoji-picker-panel",onEmoji:e.insert,onStickerUploaded:e.onStickerUploaded,onStickerUploadFailed:e.onStickerUploadFailed,onShow:e.onPickerShown,onClose:e.onPickerClosed},null,8,["enable-sticker-picker","onEmoji","onStickerUploaded","onStickerUploadFailed","onShow","onClose"])):E("",!0)],64)):E("",!0),T(f,{ref:"suggestorPopover",class:"autocomplete-panel",placement:"bottom","hide-trigger":!0},{content:X(()=>[g("div",{id:e.suggestionListId,ref:"panel-body",class:"autocomplete-panel-body",role:"listbox"},[(p(!0),b(Se,null,We(e.suggestions,(h,v)=>(p(),b("div",{id:e.suggestionItemId(v),key:v,class:he(["menu-item autocomplete-item",{"-active":v===e.highlighted}]),role:"option","aria-label":e.autoCompleteItemLabel(h),"aria-selected":v===e.highlighted,onClick:Te(y=>e.onClick(y,h),["stop","prevent"])},[g("span",rle,[h.img?(p(),b("img",{key:0,src:h.img},null,8,ole)):(p(),b("span",ile,w(h.replacement),1))]),g("div",ale,[h.user?(p(),b("span",lle,[de(w(h.displayText),1),T(u,{user:h.user,at:!1},null,8,["user"])])):E("",!0),h.user?E("",!0):(p(),b("span",cle,w(e.maybeLocalizedEmojiName(h)),1)),g("span",ule,w(h.detailText),1)])],10,sle))),128))],8,nle)]),_:1},512)],2)}const GL=ge(Qae,[["render",dle]]),Uh=1e3,Jl=60*Uh,Zl=60*Jl,Xo=24*Zl,NT=7*Xo,FT=30*Xo,DT=365.25*Xo,KL=e=>(typeof e=="string"&&(e=Date.parse(e)),Math.abs(Date.now()-e)),xL=(e,t=1)=>{const n=Date.now()>e?Math.floor:Math.ceil,s=KL(e),r={num:n(s/DT),key:"time.unit.years"};return s<t*Uh?(r.num=0,r.key="time.now"):s<Jl?(r.num=n(s/Uh),r.key="time.unit.seconds"):s<Zl?(r.num=n(s/Jl),r.key="time.unit.minutes"):s<Xo?(r.num=n(s/Zl),r.key="time.unit.hours"):s<NT?(r.num=n(s/Xo),r.key="time.unit.days"):s<FT?(r.num=n(s/NT),r.key="time.unit.weeks"):s<DT&&(r.num=n(s/FT),r.key="time.unit.months"),r},fle=(e,t=1)=>{const n=xL(e,t);return n.key+="_short",n},YL=(e,t)=>{switch(e){case"minutes":return .001*t*Jl;case"hours":return .001*t*Zl;case"days":return .001*t*Xo}},hle=(e,t)=>{switch(e){case"minutes":return 1e3*t/Jl;case"hours":return 1e3*t/Zl;case"days":return 1e3*t/Xo}},ple=(e,t)=>e.getFullYear()===t.getFullYear(),mle=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth(),gle=(e,t)=>e.getFullYear()===t.getFullYear()&&e.getMonth()===t.getMonth()&&e.getDate()===t.getDate(),XL=e=>{if(typeof e!="string")return 0;const t=e.replace(/[0-9,.]+/,""),n=e.replace(/[^0-9,.]+/,"");switch(t){case"d":return n*Xo;case"h":return n*Zl;case"m":return n*Jl;case"s":return n*Uh;default:return 0}},vle={pollType:"single",options:["",""],expiryAmount:10,expiryUnit:"minutes"},Ei=(e,t)=>e[t]!==void 0?e[t]:vle[t],ble=e=>{const t=YL(Ei(e,"expiryUnit"),Ei(e,"expiryAmount")),n=Z.uniq(Ei(e,"options").filter(s=>s!==""));return n.length<2?{errorKey:"polls.not_enough_options"}:{options:n,multiple:Ei(e,"pollType")==="multiple",expiresIn:t}};et.add(za);const yle={emits:["update:modelValue"],props:["modelValue","disabled","unstyled","kind","attrs"]},_le=["disabled","value"];function wle(e,t,n,s,r,o){const i=O("FAIcon");return p(),b("label",{class:he(["Select input",{disabled:e.disabled,unstyled:e.unstyled}])},[g("select",An({disabled:e.disabled,value:e.modelValue},e.$attrs,{onChange:t[0]||(t[0]=a=>e.$emit("update:modelValue",a.target.value))}),[Ot(e.$slots,"default")],16,_le),t[1]||(t[1]=de(" "+w(" ")+" ",-1)),!e.$attrs.size&&!e.$attrs.multiple?(p(),Y(i,{key:0,class:"select-down-icon",icon:"chevron-down"})):E("",!0)],2)}const Zi=ge(yle,[["render",wle]]);et.add(Xn,r2);const Sle={components:{Select:Zi},name:"PollForm",props:{visible:{},params:{type:Object,required:!0}},computed:{pollType:{get(){return Ei(this.params,"pollType")},set(e){this.params.pollType=e}},options(){return!!this.params.options||(this.params.options=Ei(this.params,"options")),this.params.options},expiryAmount:{get(){return Ei(this.params,"expiryAmount")},set(e){this.params.expiryAmount=e}},expiryUnit:{get(){return Ei(this.params,"expiryUnit")},set(e){this.params.expiryUnit=e}},pollLimits(){return this.$store.state.instance.pollLimits},maxOptions(){return this.pollLimits.max_options},maxLength(){return this.pollLimits.max_option_chars},expiryUnits(){const e=["minutes","hours","days"],t=this.convertExpiryFromUnit;return e.filter(n=>this.pollLimits.max_expiration>=t(n,1))},minExpirationInCurrentUnit(){return Math.ceil(this.convertExpiryToUnit(this.expiryUnit,this.pollLimits.min_expiration))},maxExpirationInCurrentUnit(){return Math.floor(this.convertExpiryToUnit(this.expiryUnit,this.pollLimits.max_expiration))}},methods:{clear(){this.pollType="single",this.options=["",""],this.expiryAmount=10,this.expiryUnit="minutes"},nextOption(e){const t=this.$el.querySelector(`#poll-${e+1}`);t?t.focus():this.addOption()&&this.$nextTick(function(){this.nextOption(e)})},addOption(){return this.options.length<this.maxOptions?(this.options.push(""),!0):!1},deleteOption(e){this.options.length>2&&this.options.splice(e,1)},convertExpiryToUnit(e,t){return hle(e,t)},convertExpiryFromUnit(e,t){return YL(e,t)},expiryAmountChange(){this.expiryAmount=Math.max(this.minExpirationInCurrentUnit,this.expiryAmount),this.expiryAmount=Math.min(this.maxExpirationInCurrentUnit,this.expiryAmount)}}},$le={key:0,class:"poll-form"},kle={class:"input-container"},Cle=["id","onUpdate:modelValue","placeholder","maxlength","onKeydown"],Tle=["onClick"],Ale={class:"poll-type-expiry"},Ele=["title"],Ile={value:"single"},Ple={value:"multiple"},Lle=["title"],Ole=["min","max"],Rle=["value"];function Mle(e,t,n,s,r,o){const i=O("FAIcon"),a=O("Select");return e.visible?(p(),b("div",$le,[(p(!0),b(Se,null,We(e.options,(c,u)=>(p(),b("div",{key:u,class:"poll-option"},[g("div",kle,[at(g("input",{id:`poll-${u}`,"onUpdate:modelValue":f=>e.options[u]=f,size:"1",class:"input poll-option-input",type:"text",placeholder:e.$t("polls.option"),maxlength:e.maxLength,onChange:t[0]||(t[0]=(...f)=>e.updatePollToParent&&e.updatePollToParent(...f)),onKeydown:zo(Te(f=>e.nextOption(u),["stop","prevent"]),["enter"])},null,40,Cle),[[Nt,e.options[u]]])]),e.options.length>2?(p(),b("button",{key:0,class:"delete-option button-unstyled -hover-highlight",onClick:f=>e.deleteOption(u)},[T(i,{icon:"times"})],8,Tle)):E("",!0)]))),128)),e.options.length<e.maxOptions?(p(),b("button",{key:0,class:"add-option faint button-unstyled -hover-highlight",onClick:t[1]||(t[1]=(...c)=>e.addOption&&e.addOption(...c))},[T(i,{icon:"plus",size:"sm"}),de(" "+w(e.$t("polls.add_option")),1)])):E("",!0),g("div",Ale,[g("div",{class:"poll-type",title:e.$t("polls.type")},[T(a,{modelValue:e.pollType,"onUpdate:modelValue":t[2]||(t[2]=c=>e.pollType=c),class:"poll-type-select",unstyled:"true",onChange:e.updatePollToParent},{default:X(()=>[g("option",Ile,w(e.$t("polls.single_choice")),1),g("option",Ple,w(e.$t("polls.multiple_choices")),1)]),_:1},8,["modelValue","onChange"])],8,Ele),g("div",{class:"poll-expiry",title:e.$t("polls.expiry")},[at(g("input",{"onUpdate:modelValue":t[3]||(t[3]=c=>e.expiryAmount=c),type:"number",class:"input expiry-amount hide-number-spinner",min:e.minExpirationInCurrentUnit,max:e.maxExpirationInCurrentUnit,onChange:t[4]||(t[4]=(...c)=>e.expiryAmountChange&&e.expiryAmountChange(...c))},null,40,Ole),[[Nt,e.expiryAmount]]),t[6]||(t[6]=de(" "+w(" ")+" ",-1)),T(a,{modelValue:e.expiryUnit,"onUpdate:modelValue":t[5]||(t[5]=c=>e.expiryUnit=c),unstyled:"true",class:"expiry-unit",onChange:e.expiryAmountChange},{default:X(()=>[(p(!0),b(Se,null,We(e.expiryUnits,c=>(p(),b("option",{key:c,value:c},w(e.$t(`time.unit.${c}_short`,[""],e.expiryAmount)),9,Rle))),128))]),_:1},8,["modelValue","onChange"])],8,Lle)])])):E("",!0)}const Nle=ge(Sle,[["render",Mle]]),Fle=()=>{let e=null;return{getRuffle:async()=>new Promise((n,s)=>{if(e){n(e);return}window.RufflePlayer={},window.RufflePlayer.config={polyfills:!1,publicPath:"/static/ruffle"};const r=document.createElement("script");r.src="/static/ruffle/ruffle.js",r.type="text/javascript",r.onerror=o=>{s(o)},r.onabort=o=>{s(o)},r.oncancel=o=>{s(o)},r.onload=()=>{e=window.RufflePlayer,n(e)},document.body.appendChild(r)})}},Dle=Fle();et.add(nP,PZ);const Ule={props:["src"],data(){return{player:!1,loaded:!1,ruffleInstance:null}},methods:{openPlayer(){this.player||(this.player="hidden",Dle.getRuffle().then(e=>{const t=e.newest().createPlayer();t.config={letterbox:"on"},this.$refs.container.appendChild(t),t.style.width="100%",t.style.height="100%",t.load(this.src).then(()=>{this.player=!0}).catch(s=>{console.error("Error loading ruffle",s),this.player="error"}),this.ruffleInstance=t,this.$emit("playerOpened")}))},closePlayer(){this.ruffleInstance&&this.ruffleInstance.remove(),this.player=!1,this.$emit("playerClosed")}}},jle={class:"Flash"},Ble={key:0,class:"label"},zle={key:1,class:"label"},qle={key:2,class:"label"};function Hle(e,t,n,s,r,o){const i=O("FAIcon");return p(),b("div",jle,[e.player===!0||e.player==="hidden"?(p(),b("div",{key:0,ref:"container",class:he(["player",{hidden:e.player==="hidden"}])},null,2)):E("",!0),e.player!==!0?(p(),b("button",{key:1,class:"button-unstyled placeholder",onClick:t[0]||(t[0]=(...a)=>e.openPlayer&&e.openPlayer(...a))},[e.player==="hidden"?(p(),b("span",Ble,w(e.$t("general.loading")),1)):E("",!0),e.player==="error"?(p(),b("span",zle,w(e.$t("general.flash_fail")),1)):(p(),b("span",qle,[g("p",null,w(e.$t("general.flash_content")),1),g("p",null,[T(i,{icon:"exclamation-triangle"}),de(" "+w(e.$t("general.flash_security")),1)])]))])):E("",!0)])}const JL=ge(Ule,[["render",Hle]]),Vle={props:["attachment","controls"],data(){return{blocksSuspend:!1,hasAudio:!0}},computed:{loopVideo(){return this.$store.getters.mergedConfig.loopVideoSilentOnly?!this.hasAudio:this.$store.getters.mergedConfig.loopVideo}},methods:{onPlaying(e){if(this.setHasAudio(e),this.loopVideo){this.$emit("play",{looping:!0});return}this.$emit("play")},onPaused(){this.$emit("pause")},setHasAudio(e){const t=e.srcElement||e.target;this.hasAudio&&(typeof t.webkitAudioDecodedByteCount<"u"&&t.webkitAudioDecodedByteCount>0||typeof t.mozHasAudio<"u"&&t.mozHasAudio||typeof t.audioTracks<"u"&&t.audioTracks.length>0||(this.hasAudio=!1))}}},Wle=["src","loop","controls","alt","title"];function Gle(e,t,n,s,r,o){return p(),b("video",{class:"video",preload:"metadata",src:e.attachment.url+"#t=0.00000000000001",loop:e.loopVideo,controls:e.controls,alt:e.attachment.description,title:e.attachment.description,playsinline:"",onPlaying:t[0]||(t[0]=(...i)=>e.onPlaying&&e.onPlaying(...i)),onPause:t[1]||(t[1]=(...i)=>e.onPaused&&e.onPaused(...i))},null,40,Wle)}const ZL=ge(Vle,[["render",Gle]]),Kle="/static/img/nsfw.DepQPhG0.png";et.add(n2,a2,Q_,NZ,HJ,Xn,nP,uP,mJ,SJ,LZ);const xle={props:["attachment","compact","description","hideDescription","nsfw","size","setMedia","remove","shiftUp","shiftDn","edit"],data(){return{localDescription:this.description||this.attachment.description,nsfwImage:this.$store.state.instance.nsfwCensorImage||Kle,hideNsfwLocal:this.$store.getters.mergedConfig.hideNsfw,preloadImage:this.$store.getters.mergedConfig.preloadImage,loading:!1,img:Fa.fileType(this.attachment.mimetype)==="image"&&document.createElement("img"),modalOpen:!1,showHidden:!1,flashLoaded:!1,showDescription:!1}},components:{Flash:JL,StillImage:Ji,VideoAttachment:ZL},computed:{classNames(){return[{"-loading":this.loading,"-nsfw-placeholder":this.hidden,"-editable":this.edit!==void 0,"-compact":this.compact},"-type-"+this.type,this.size&&"-size-"+this.size,`-${this.useContainFit?"contain":"cover"}-fit`]},usePlaceholder(){return this.size==="hide"},useContainFit(){return this.$store.getters.mergedConfig.useContainFit},placeholderName(){return this.attachment.description===""||!this.attachment.description?this.type.toUpperCase():this.attachment.description},placeholderIconClass(){return this.type==="image"?"image":this.type==="video"?"video":this.type==="audio"?"music":"file"},referrerpolicy(){return this.$store.state.instance.mediaProxyAvailable?"":"no-referrer"},type(){return Fa.fileType(this.attachment.mimetype)},hidden(){return this.nsfw&&this.hideNsfwLocal&&!this.showHidden},isEmpty(){return this.type==="html"&&!this.attachment.oembed},useModal(){let e=[];switch(this.size){case"hide":case"small":e=["image","video","audio","flash"];break;default:e=this.mergedConfig.playVideosInModal?["image","video","flash"]:["image"];break}return e.includes(this.type)},videoTag(){return this.useModal?"button":"span"},...bn(["mergedConfig"])},watch:{"attachment.description"(e){this.localDescription=e},localDescription(e){this.onEdit(e)}},methods:{linkClicked({target:e}){e.tagName==="A"&&window.open(e.href,"_blank")},openModal(){this.useModal?(this.$emit("setMedia"),hs().setCurrentMedia(this.attachment)):this.type==="unknown"&&window.open(this.attachment.url)},openModalForce(){this.$emit("setMedia"),hs().setCurrentMedia(this.attachment)},onEdit(e){this.edit&&this.edit(this.attachment,e)},onRemove(){this.remove&&this.remove(this.attachment)},onShiftUp(){this.shiftUp&&this.shiftUp(this.attachment)},onShiftDn(){this.shiftDn&&this.shiftDn(this.attachment)},stopFlash(){this.$refs.flash.closePlayer()},setFlashLoaded(e){this.flashLoaded=e},toggleDescription(){this.showDescription=!this.showDescription},toggleHidden(e){if(this.mergedConfig.useOneClickNsfw&&!this.showHidden&&(this.type!=="video"||this.mergedConfig.playVideosInModal)){this.openModal(e);return}this.img&&!this.preloadImage?this.img.onload?this.img.onload():(this.loading=!0,this.img.src=this.attachment.url,this.img.onload=()=>{this.loading=!1,this.showHidden=!this.showHidden}):this.showHidden=!this.showHidden},onImageLoad(e){const t=e.naturalWidth,n=e.naturalHeight;this.$emit("naturalSizeLoad",{id:this.attachment.id,width:t,height:n})}}},Yle=["href","alt","title"],Xle={key:1,class:"attachment-buttons"},Jle=["placeholder"],Zle={key:1},Qle={class:"attachment-wrapper"},ece=["href","alt","title"],tce=["src"],nce={key:1,class:"attachment-buttons"},sce=["title"],rce=["title"],oce=["title"],ice=["title"],ace=["title"],lce=["title"],cce=["title"],uce=["href"],dce=["href"],fce={key:0},hce=["href"],pce=["src","alt","title"],mce={key:0,class:"image"},gce=["src"],vce={class:"text"},bce=["href"],yce=["innerHTML"],_ce=["href"],wce=["placeholder"],Sce={key:1};function $ce(e,t,n,s,r,o){const i=O("FAIcon"),a=O("StillImage"),c=O("VideoAttachment"),u=O("Flash");return e.usePlaceholder?(p(),b("button",{key:0,class:he(["Attachment -placeholder button-default",e.classNames]),onClick:t[4]||(t[4]=(...f)=>e.openModal&&e.openModal(...f))},[e.type!=="html"?(p(),b("a",{key:0,class:"placeholder",target:"_blank",href:e.attachment.url,alt:e.attachment.description,title:e.attachment.description,onClick:t[0]||(t[0]=Te(()=>{},["prevent"]))},[T(i,{icon:e.placeholderIconClass},null,8,["icon"]),g("b",null,w(e.nsfw?"NSFW / ":""),1),de(w(e.edit?"":e.placeholderName),1)],8,Yle)):E("",!0),e.edit||e.remove?(p(),b("div",Xle,[e.remove?(p(),b("button",{key:0,class:"button-default attachment-button -transparent",onClick:t[1]||(t[1]=Te((...f)=>e.onRemove&&e.onRemove(...f),["prevent"]))},[T(i,{icon:"trash-alt"})])):E("",!0)])):E("",!0),e.size!=="hide"&&!e.hideDescription&&(e.edit||e.localDescription||e.showDescription)?(p(),b("div",{key:2,class:he(["description-container",{"-static":!e.edit}])},[e.edit?at((p(),b("input",{key:0,"onUpdate:modelValue":t[2]||(t[2]=f=>e.localDescription=f),type:"text",class:"input description-field",placeholder:e.$t("post_status.media_description"),onKeydown:t[3]||(t[3]=zo(Te(()=>{},["prevent"]),["enter"]))},null,40,Jle)),[[Nt,e.localDescription]]):(p(),b("p",Zle,w(e.localDescription),1))],2)):E("",!0)],2)):(p(),b("div",{key:1,class:he(["Attachment",e.classNames])},[at(g("div",Qle,[e.hidden?(p(),b("a",{key:0,class:"image-container",href:e.attachment.url,alt:e.attachment.description,title:e.attachment.description,onClick:t[5]||(t[5]=Te((...f)=>e.toggleHidden&&e.toggleHidden(...f),["prevent","stop"]))},[(p(),b("img",{key:e.nsfwImage,class:"nsfw",src:e.nsfwImage},null,8,tce)),e.type==="video"?(p(),Y(i,{key:0,class:"play-icon",icon:"play-circle"})):E("",!0)],8,ece)):E("",!0),e.hidden?E("",!0):(p(),b("div",nce,[e.type==="flash"&&e.flashLoaded?(p(),b("button",{key:0,class:"button-default attachment-button -transparent",title:e.$t("status.attachment_stop_flash"),onClick:t[6]||(t[6]=Te((...f)=>e.stopFlash&&e.stopFlash(...f),["prevent"]))},[T(i,{icon:"stop"})],8,sce)):E("",!0),e.attachment.description&&e.size!=="small"&&!e.edit&&e.type!=="unknown"?(p(),b("button",{key:1,class:"button-default attachment-button -transparent",title:e.$t("status.show_attachment_description"),onClick:t[7]||(t[7]=Te((...f)=>e.toggleDescription&&e.toggleDescription(...f),["prevent"]))},[T(i,{icon:"align-right"})],8,rce)):E("",!0),!e.useModal&&e.type!=="unknown"?(p(),b("button",{key:2,class:"button-default attachment-button -transparent",title:e.$t("status.show_attachment_in_modal"),onClick:t[8]||(t[8]=Te((...f)=>e.openModalForce&&e.openModalForce(...f),["prevent"]))},[T(i,{icon:"search-plus"})],8,oce)):E("",!0),e.nsfw&&e.hideNsfwLocal?(p(),b("button",{key:3,class:"button-default attachment-button -transparent",title:e.$t("status.hide_attachment"),onClick:t[9]||(t[9]=Te((...f)=>e.toggleHidden&&e.toggleHidden(...f),["prevent"]))},[T(i,{icon:"times"})],8,ice)):E("",!0),e.shiftUp?(p(),b("button",{key:4,class:"button-default attachment-button -transparent",title:e.$t("status.move_up"),onClick:t[10]||(t[10]=Te((...f)=>e.onShiftUp&&e.onShiftUp(...f),["prevent"]))},[T(i,{icon:"chevron-left"})],8,ace)):E("",!0),e.shiftDn?(p(),b("button",{key:5,class:"button-default attachment-button -transparent",title:e.$t("status.move_down"),onClick:t[11]||(t[11]=Te((...f)=>e.onShiftDn&&e.onShiftDn(...f),["prevent"]))},[T(i,{icon:"chevron-right"})],8,lce)):E("",!0),e.remove?(p(),b("button",{key:6,class:"button-default attachment-button -transparent",title:e.$t("status.remove_attachment"),onClick:t[12]||(t[12]=Te((...f)=>e.onRemove&&e.onRemove(...f),["prevent"]))},[T(i,{icon:"trash-alt"})],8,cce)):E("",!0)])),e.type==="image"&&(!e.hidden||e.preloadImage)?(p(),b("a",{key:2,class:he(["image-container",{"-hidden":e.hidden&&e.preloadImage}]),href:e.attachment.url,target:"_blank",onClick:t[13]||(t[13]=Te((...f)=>e.openModal&&e.openModal(...f),["stop","prevent"]))},[T(a,{class:"image",referrerpolicy:e.referrerpolicy,mimetype:e.attachment.mimetype,src:e.attachment.large_thumb_url||e.attachment.url,"image-load-handler":e.onImageLoad,alt:e.attachment.description},null,8,["referrerpolicy","mimetype","src","image-load-handler","alt"])],10,uce)):E("",!0),e.type==="unknown"&&!e.hidden?(p(),b("a",{key:3,class:"placeholder-container",href:e.attachment.url,target:"_blank"},[T(i,{size:e.compact?"2x":"5x",icon:e.placeholderIconClass,title:e.localDescription},null,8,["size","icon","title"]),e.compact?E("",!0):(p(),b("p",fce,w(e.localDescription),1))],8,dce)):E("",!0),e.type==="video"&&!e.hidden?(p(),Y(Oa(e.videoTag),{key:4,class:"video-container",href:e.attachment.url,onClick:Te(e.openModal,["stop","prevent"])},{default:X(()=>[T(c,{class:"video",attachment:e.attachment,controls:!e.useModal,onPlay:t[14]||(t[14]=f=>e.$emit("play")),onPause:t[15]||(t[15]=f=>e.$emit("pause"))},null,8,["attachment","controls"]),e.useModal?(p(),Y(i,{key:0,class:"play-icon",icon:"play-circle"})):E("",!0)]),_:1},8,["href","onClick"])):E("",!0),e.type==="audio"&&!e.hidden?(p(),b("span",{key:5,class:"audio-container",href:e.attachment.url,onClick:t[18]||(t[18]=Te((...f)=>e.openModal&&e.openModal(...f),["stop","prevent"]))},[e.type==="audio"?(p(),b("audio",{key:0,src:e.attachment.url,alt:e.attachment.description,title:e.attachment.description,controls:"",onPlay:t[16]||(t[16]=f=>e.$emit("play")),onPause:t[17]||(t[17]=f=>e.$emit("pause"))},null,40,pce)):E("",!0)],8,hce)):E("",!0),e.type==="html"&&e.attachment.oembed?(p(),b("div",{key:6,class:"oembed-container",onClick:t[19]||(t[19]=Te((...f)=>e.linkClicked&&e.linkClicked(...f),["prevent"]))},[e.attachment.thumb_url?(p(),b("div",mce,[g("img",{src:e.attachment.thumb_url},null,8,gce)])):E("",!0),g("div",vce,[g("h1",null,[g("a",{href:e.attachment.url},w(e.attachment.oembed.title),9,bce)]),g("div",{innerHTML:e.attachment.oembed.oembedHTML},null,8,yce)])])):E("",!0),e.type==="flash"&&!e.hidden?(p(),b("span",{key:7,class:"flash-container",href:e.attachment.url,onClick:t[22]||(t[22]=Te((...f)=>e.openModal&&e.openModal(...f),["stop","prevent"]))},[T(u,{ref:"flash",class:"flash",src:e.attachment.large_thumb_url||e.attachment.url,onPlayerOpened:t[20]||(t[20]=f=>e.setFlashLoaded(!0)),onPlayerClosed:t[21]||(t[21]=f=>e.setFlashLoaded(!1))},null,8,["src"])],8,_ce)):E("",!0)],512),[[Cr,!e.isEmpty]]),e.size!=="hide"&&!e.hideDescription&&(e.edit||e.localDescription&&e.showDescription)?(p(),b("div",{key:0,class:he(["description-container",{"-static":!e.edit}])},[e.edit?at((p(),b("input",{key:0,"onUpdate:modelValue":t[23]||(t[23]=f=>e.localDescription=f),type:"text",class:"input description-field",placeholder:e.$t("post_status.media_description"),onKeydown:t[24]||(t[24]=zo(Te(()=>{},["prevent"]),["enter"]))},null,40,wce)),[[Nt,e.localDescription]]):(p(),b("p",Sce,w(e.localDescription),1))],2)):E("",!0)],2))}const Qp=ge(xle,[["render",$ce]]),kce={props:["attachments","compact","limitRows","descriptions","limit","nsfw","setMedia","size","editable","removeAttachment","shiftUpAttachment","shiftDnAttachment","editAttachment","grid"],data(){return{sizes:{},hidingLong:!0}},components:{Attachment:Qp},computed:{rows(){if(!this.attachments)return[];const e=this.limit>0?this.attachments.slice(0,this.limit):this.attachments;return this.size==="hide"?e.map(n=>({minimal:!0,items:[n]})):this.grid?[{grid:!0,items:e}]:e.reduce((n,s,r)=>{if(s.mimetype.includes("audio"))return[...n,{audio:!0,items:[s]},{items:[]}];if(!(s.mimetype.includes("image")||s.mimetype.includes("video")||s.mimetype.includes("flash")))return[...n,{minimal:!0,items:[s]},{items:[]}];const o=3,i=this.attachments.length-r+1,a=n[n.length-1].items;return a.push(s),a.length>=o&&i>o?[...n,{items:[]}]:n},[{items:[]}]).filter(n=>n.items.length>0)},attachmentsDimensionalScore(){return this.rows.reduce((e,t)=>{let n=0;return t.minimal?n+=1/8:t.audio?n+=1/4:n+=1/(t.items.length+.6),e+n},0)},tooManyAttachments(){return this.editable||this.size==="small"?!1:this.size==="hide"?this.attachments.length>8:this.attachmentsDimensionalScore>1}},methods:{onNaturalSizeLoad({id:e,width:t,height:n}){Z.set(this.sizes,e,{width:t,height:n})},rowStyle(e){if(e.audio)return{"padding-bottom":"25%"};if(!e.minimal&&!e.grid)return{"padding-bottom":`${100/(e.items.length+.6)}%`}},itemStyle(e,t){const n=Z.sumBy(t,s=>this.getAspectRatio(s.id));return{flex:`${this.getAspectRatio(e)/n} 1 0%`}},getAspectRatio(e){const t=this.sizes[e];return t?t.width/t.height:1},toggleHidingLong(e){this.hidingLong=e},openGallery(){hs().setMedia(this.attachments),hs().setCurrentMedia(this.attachments[0])},onMedia(){hs().setMedia(this.attachments)}}},Cce={class:"gallery-rows"},Tce={key:0,class:"many-attachments"},Ace={class:"many-attachments-text"},Ece={class:"many-attachments-buttons"},Ice={key:0,class:"many-attachments-button"},Pce={key:1,class:"many-attachments-button"},Lce={key:2,class:"many-attachments-button"};function Oce(e,t,n,s,r,o){const i=O("Attachment");return p(),b("div",{ref:"galleryContainer",class:he(["Gallery",{"-long":e.tooManyAttachments&&e.hidingLong}])},[g("div",Cce,[(p(!0),b(Se,null,We(e.rows,(a,c)=>(p(),b("div",{key:c,class:he(["gallery-row",{"-audio":a.audio,"-minimal":a.minimal,"-grid":e.grid}]),style:hn(e.rowStyle(a))},[g("div",{class:he(["gallery-row-inner",{"-grid":e.grid}])},[(p(!0),b(Se,null,We(a.items,(u,f)=>(p(),Y(i,{key:u.id,class:"gallery-item",compact:e.compact,nsfw:e.nsfw,attachment:u,size:e.size,editable:e.editable,remove:e.removeAttachment,"shift-up":!(f===0&&c===0)&&e.shiftUpAttachment,"shift-dn":!(f===a.items.length-1&&c===e.rows.length-1)&&e.shiftDnAttachment,edit:e.editAttachment,description:e.descriptions&&e.descriptions[u.id],"hide-description":e.size==="small"||e.tooManyAttachments&&e.hidingLong,style:hn(e.itemStyle(u.id,a.items)),onSetMedia:e.onMedia,onNaturalSizeLoad:e.onNaturalSizeLoad},null,8,["compact","nsfw","attachment","size","editable","remove","shift-up","shift-dn","edit","description","hide-description","style","onSetMedia","onNaturalSizeLoad"]))),128))],2)],6))),128))]),e.tooManyAttachments?(p(),b("div",Tce,[g("div",Ace,w(e.$t("status.many_attachments",{number:e.attachments.length})),1),g("div",Ece,[e.hidingLong?E("",!0):(p(),b("span",Ice,[g("button",{class:"button-unstyled -link",onClick:t[0]||(t[0]=a=>e.toggleHidingLong(!0))},w(e.$t("status.collapse_attachments")),1)])),e.hidingLong?(p(),b("span",Pce,[g("button",{class:"button-unstyled -link",onClick:t[1]||(t[1]=a=>e.toggleHidingLong(!1))},w(e.$t("status.show_all_attachments")),1)])):E("",!0),e.hidingLong?(p(),b("span",Lce,[g("button",{class:"button-unstyled -link",onClick:t[2]||(t[2]=(...a)=>e.openGallery&&e.openGallery(...a))},w(e.$t("status.open_gallery")),1)])):E("",!0)])])):E("",!0)],2)}const em=ge(kce,[["render",Oce]]),Rce={name:"Timeago",props:["time","autoUpdate","longFormat","nowThreshold","templateKey"],data(){return{relativeTimeMs:0,relativeTime:{key:"time.now",num:0},interval:null}},computed:{shouldUseAbsoluteTimeFormat(){return this.$store.getters.mergedConfig.useAbsoluteTimeFormat?XL(this.$store.getters.mergedConfig.absoluteTimeFormatMinAge)<=this.relativeTimeMs:!1},time12hFormat(){return this.$store.getters.mergedConfig.absoluteTimeFormat12h==="12h"},browserLocale(){return Tr.internalToBrowserLocale(this.$i18n.locale)},timeAsDate(){return typeof this.time=="string"?new Date(Date.parse(this.time)):this.time},localeDateString(){return this.timeAsDate.toLocaleString(this.browserLocale)},relativeTimeString(){const e=this.$i18n.t(this.relativeTime.key,[this.relativeTime.num],this.relativeTime.num);return typeof this.templateKey=="string"&&this.relativeTime.key!=="time.now"?this.$i18n.t(this.templateKey,[e]):e},absoluteTimeString(){if(this.longFormat)return this.localeDateString;const e=new Date;return(gle(this.timeAsDate,e)?new Intl.DateTimeFormat(this.browserLocale,{minute:"numeric",hour:"numeric",hour12:this.time12hFormat}):mle(this.timeAsDate,e)?new Intl.DateTimeFormat(this.browserLocale,{month:"short",day:"numeric",hour12:this.time12hFormat}):ple(this.timeAsDate,e)?new Intl.DateTimeFormat(this.browserLocale,{month:"short",day:"numeric",hour12:this.time12hFormat}):new Intl.DateTimeFormat(this.browserLocale,{year:"numeric",month:"short",hour12:this.time12hFormat})).format(this.timeAsDate)},relativeOrAbsoluteTimeString(){return this.shouldUseAbsoluteTimeFormat?this.absoluteTimeString:this.relativeTimeString}},watch:{time(e,t){t!==e&&(clearTimeout(this.interval),this.refreshRelativeTimeObject())}},created(){this.refreshRelativeTimeObject()},unmounted(){clearTimeout(this.interval)},methods:{refreshRelativeTimeObject(){const e=typeof this.nowThreshold=="number"?this.nowThreshold:1;this.relativeTimeMs=KL(this.time),this.relativeTime=this.longFormat?xL(this.time,e):fle(this.time,e),this.autoUpdate&&(this.interval=setTimeout(this.refreshRelativeTimeObject,1e3*this.autoUpdate))}}},Mce=["datetime","title"];function Nce(e,t,n,s,r,o){return p(),b("time",{datetime:n.time,title:o.localeDateString},w(o.relativeOrAbsoluteTimeString),9,Mce)}const wd=ge(Rce,[["render",Nce]]),qo=e=>{const t=/(?:<\/(\w+)>|<(\w+)\s?.*?\/?>)/gis.exec(e);return t&&(t[1]||t[2])},$l=(e,t)=>{const n=e.substring(1,e.length-1).replace(new RegExp("^"+qo(e)),"").replace(/\/?$/,"").trim(),s=Array.from(n.matchAll(/([a-z]+[a-z0-9-]*)(?:=("[^"]+?"|'[^']+?'))?/gi)).map(([,o,i])=>[o,i]).map(([o,i])=>i?[o,i.substring(1,i.length-1)]:[o,!0]),r=([o,i])=>{const a=o.toLowerCase();return a==="style"?!1:a==="class"?i==="greentext"||i==="cyantext":!0};return Object.fromEntries(s.filter(t||r))},Fce=(e,t,n)=>{const s=[];let r="";for(let o=0;o<e.length;o++){const i=e[o];if(i===":"){const a=e.slice(o+1);let c=!1;for(const u of t)if(a.slice(0,u.shortcode.length+1)===u.shortcode+":"){c=u;break}c?(s.push(r),r="",s.push(n(c)),o+=c.shortcode.length+1):r+=i}else r+=i}return r&&s.push(r),s},Dce=(e="")=>{const t=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),n=[],s=[["",n]];let r="",o=null;const i=()=>s[s.length-1][1],a=()=>{r!==""&&(i().push(r),r="")},c=h=>{i().push([h])},u=h=>{const v=i(),y=[Z.unescape(h),[]];s.push(y),v.push(y)},f=h=>{const v=s[s.length-1];qo(s[s.length-1][0])===qo(h)?(v.push(h),s.pop()):i().push(h)};for(let h=0;h<e.length;h++){const v=e[h];if(v==="<"&&o===null)a(),o=v;else if(v!==">"&&o!==null)o+=v;else if(v===">"&&o!==null){o+=v;const y=o;o=null;const S=qo(y);y[1]==="/"?f(y):t.has(S)||y[y.length-2]==="/"?c(y):u(y)}else r+=v}return o&&(r+=o),a(),n},Uce=(e="")=>{const t=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]),n=new Set(["address","article","aside","blockquote","details","dialog","dd","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","li","main","nav","ol","p","pre","section","table","ul"]),s=new Set(["br"]),r=new Set([...n.values(),...s.values()]),o=new Set(r);for(const k of t)o.delete(k);const i=new Set([...o.values(),...t.values()]),a=[],c=[];let u="",f=null;const h=()=>{u.trim().length>0?a.push({level:[...c],text:u}):a.push(u),u=""},v=k=>{h(),a.push(k)},y=k=>{h(),a.push(k),c.unshift(qo(k))},S=k=>{c[0]===qo(k)?(h(),a.push(k),c.shift()):u+=k};for(let k=0;k<e.length;k++){const I=e[k];if(I==="<"&&f===null)f=I;else if(I!==">"&&f!==null)f+=I;else if(I===">"&&f!==null){f+=I;const C=f;f=null;const $=qo(C);i.has($)?s.has($)?v(C):o.has($)?C[1]==="/"?S(C):C[C.length-2]==="/"?v(C):y(C):u+=C:u+=C}else I===`
`?v(I):u+=I}return f&&(u+=f),h(),a},jce={components:{StillImage:Ji,Popover:Jn,SelectComponent:Zi},props:{shortcode:{type:String,required:!0},isLocal:{type:Boolean,required:!0}},data(){return{knownLocalPacks:{},packName:""}},computed:{isUserAdmin(){return this.$store.state.users.currentUser.rights.admin}},methods:{displayError(e){Xe().pushGlobalNotice({messageKey:"admin_dash.emoji.error",messageArgs:[e],level:"error"})},copyToLocalPack(){this.$store.state.api.backendInteractor.addNewEmojiFile({packName:this.packName,file:this.$attrs.src,shortcode:this.shortcode,filename:""}).then(e=>e.json()).then(e=>{if(e.error!==void 0){this.displayError(e.error);return}Xe().pushGlobalNotice({messageKey:"admin_dash.emoji.copied_successfully",messageArgs:[this.shortcode,this.packName],level:"success"}),this.$refs.emojiPopover.hidePopover(),this.packName=""})},loadPacksPaginated(e){const n={};return e({instance:this.$store.state.instance.server,page:1,pageSize:0}).then(s=>s.json()).then(s=>{if(s.error!==void 0)return Promise.reject(s.error);let r=Promise.resolve({});for(let o=0;o<Math.ceil(s.count/25);o++)r=r.then(()=>e({instance:this.$store.state.instance.server,page:o,pageSize:25})).then(i=>i.json()).then(i=>{if(i.error!==void 0)return Promise.reject(i.error);Z.assign(n,i.packs)});return r}).then(()=>n).catch(s=>{this.displayError(s)})},fetchEmojiPacksIfAdmin(){this.isUserAdmin&&this.loadPacksPaginated(this.$store.state.api.backendInteractor.listEmojiPacks).then(e=>{const t=Object.keys(e).sort().reduce((n,s)=>(s.length===0||(n[s]=e[s]),n),{});this.knownLocalPacks=t})}}},Bce={class:"emoji-popover"},zce={class:"emoji-popover-centered"},qce={key:0},Hce=["disabled"],Vce={value:"",disabled:"",hidden:""},Wce=["label"];function Gce(e,t,n,s,r,o){const i=O("StillImage"),a=O("SelectComponent"),c=O("Popover");return p(),Y(c,{ref:"emojiPopover",trigger:"click",placement:"top","bound-to":{x:"container"},offset:{y:10},onShow:o.fetchEmojiPacksIfAdmin},{trigger:X(()=>[T(i,lh(dp(e.$attrs)),null,16)]),content:X(()=>[g("div",Bce,[g("h3",null,w(e.$attrs.title),1),g("div",zce,[T(i,An({class:"emoji"},e.$attrs),null,16)]),o.isUserAdmin&&!n.isLocal?(p(),b("div",qce,[g("button",{class:"button button-default btn emoji-popover-button",type:"button",disabled:r.packName=="",onClick:t[0]||(t[0]=(...u)=>o.copyToLocalPack&&o.copyToLocalPack(...u))},w(e.$t("admin_dash.emoji.copy_to_pack")),9,Hce),T(a,{modelValue:r.packName,"onUpdate:modelValue":t[1]||(t[1]=u=>r.packName=u)},{default:X(()=>[g("option",Vce,w(e.$t("admin_dash.emoji.emoji_pack")),1),(p(!0),b(Se,null,We(r.knownLocalPacks,(u,f)=>(p(),b("option",{key:f,label:f},w(f),9,Wce))),128))]),_:1},8,["modelValue"])])):E("",!0)])]),_:1},8,["onShow"])}const Kce=ge(jce,[["render",Gce]]),ao=(e,t,n)=>{const s=!t||xce(t)||Z.includes(n,t);return{name:s?"external-user-profile":"user-profile",params:s?{id:e}:{name:t}}},xce=e=>e&&e.includes("@"),jh=e=>{if(e===void 0)return;const{color:t,type:n}=e;if(typeof t!="string")return;const s=_p(t);if(s==null)return;const r=`rgb(${Math.floor(s.r)}, ${Math.floor(s.g)}, ${Math.floor(s.b)})`,o=`rgba(${Math.floor(s.r)}, ${Math.floor(s.g)}, ${Math.floor(s.b)}, .1)`,i=`rgba(${Math.floor(s.r)}, ${Math.floor(s.g)}, ${Math.floor(s.b)}, .2)`,a={"--____highlight-solidColor":r,"--____highlight-tintColor":o,"--____highlight-tintColor2":i};if(n==="striped")return{backgroundImage:["repeating-linear-gradient(135deg,",`${o} ,`,`${o} 20px,`,`${i} 20px,`,`${i} 40px`].join(" "),backgroundPosition:"0 0",...a};if(n==="solid")return{backgroundColor:i,...a};if(n==="side")return{backgroundImage:["linear-gradient(to right,",`${r} ,`,`${r} 2px,`,"transparent 6px"].join(" "),backgroundPosition:"0 0",...a}},Bh=e=>"USER____"+e.screen_name.replace(/\./g,"_").replace(/@/g,"_AT_");et.add(SZ,CJ);const Yce={props:{user:{required:!0,type:Object},compact:{required:!1,type:Boolean,default:!1},showActorTypeIndicator:{required:!1,type:Boolean,default:!1},url:{required:!1,type:String,default:null}},data(){return{showPlaceholder:!1,defaultAvatar:`${this.$store.state.instance.server+this.$store.state.instance.defaultAvatar}`,betterShadow:Xe().browserSupport.cssFilter}},components:{StillImage:Ji},methods:{imgSrc(e){return!e||this.showPlaceholder?this.defaultAvatar:e},imageLoadError(){this.showPlaceholder=!0}}};function Xce(e,t,n,s,r,o){var c,u;const i=O("StillImage"),a=O("FAIcon");return p(),b("span",{class:he(["Avatar",{"-compact":e.compact}])},[e.user?(p(),Y(i,{key:0,class:he(["avatar",{"-compact":e.compact,"-better-shadow":e.betterShadow}]),alt:e.user.screen_name_ui,title:e.user.screen_name_ui,src:e.url?e.url:e.imgSrc(e.user.profile_image_url_original),"image-load-error":e.imageLoadError},null,8,["alt","title","src","image-load-error","class"])):(p(),b("div",{key:1,class:he(["avatar -placeholder",{"-compact":e.compact}])},null,2)),e.showActorTypeIndicator&&((c=e.user)==null?void 0:c.actor_type)==="Service"?(p(),Y(a,{key:2,icon:"robot",class:"actor-type-indicator"})):E("",!0),e.showActorTypeIndicator&&((u=e.user)==null?void 0:u.actor_type)==="Group"?(p(),Y(a,{key:3,icon:"people-group",class:"actor-type-indicator"})):E("",!0)],2)}const er=ge(Yce,[["render",Xce]]),Jce=Object.freeze(Object.defineProperty({__proto__:null,default:er},Symbol.toStringTag,{value:"Module"}));et.add(hJ);const Zce={name:"MentionLink",components:{UserAvatar:er,UnicodeDomainIndicator:Zp,UserPopover:gr(()=>Ve(()=>Promise.resolve().then(()=>Q2),void 0))},props:{url:{required:!0,type:String},content:{required:!0,type:String},userId:{required:!1,type:String},userScreenName:{required:!1,type:String}},data(){return{hasSelection:!1}},methods:{onClick(){if(this.shouldShowTooltip)return;const e=ao(this.userId||this.user.id,this.userScreenName||this.user.screen_name);this.$router.push(e)},handleSelection(){this.$refs.full&&(this.hasSelection=document.getSelection().containsNode(this.$refs.full,!0))}},mounted(){document.addEventListener("selectionchange",this.handleSelection)},unmounted(){document.removeEventListener("selectionchange",this.handleSelection)},computed:{user(){return this.url&&this.$store&&this.$store.getters.findUserByUrl(this.url)},isYou(){return this.user&&this.user.id===this.currentUser.id},userName(){return this.user&&this.userNameFullUi.split("@")[0]},serverName(){return this.user&&(this.userNameFullUi.split("@")[1]||this.$store.getters.instanceDomain)},userNameFull(){return this.user&&this.user.screen_name},userNameFullUi(){return this.user&&this.user.screen_name_ui},highlight(){return this.user&&this.mergedConfig.highlight[this.user.screen_name]},highlightType(){return this.highlight&&"-"+this.highlight.type},highlightClass(){if(this.highlight)return Bh(this.user)},style(){if(this.highlight){const{backgroundColor:e,backgroundPosition:t,backgroundImage:n,...s}=jh(this.highlight);return s}},classnames(){return[{"-you":this.isYou&&this.shouldBoldenYou,"-highlighted":this.highlight,"-has-selection":this.hasSelection},this.highlightType]},isRemote(){return this.userName!==this.userNameFull},shouldShowFullUserName(){const e=this.mergedConfig.mentionLinkDisplay;return e==="short"?!1:e==="full"?!0:this.isRemote},shouldShowTooltip(){return this.mergedConfig.mentionLinkShowTooltip},shouldShowAvatar(){return this.mergedConfig.mentionLinkShowAvatar},shouldShowYous(){return this.mergedConfig.mentionLinkShowYous},shouldBoldenYou(){return this.mergedConfig.mentionLinkBoldenYou},shouldFadeDomain(){return this.mergedConfig.mentionLinkFadeDomain},...bn(["mergedConfig"]),...mn({currentUser:e=>e.users.currentUser})}},Qce={class:"MentionLink"},eue=["href","innerHTML"],tue=["href"],nue={class:"shortName"},sue=["innerHTML"],rue=["innerHTML"],oue={ref:"full",class:"full"},iue=["innerHTML"],aue=["innerHTML"];function lue(e,t,n,s,r,o){const i=O("UserAvatar"),a=O("UnicodeDomainIndicator"),c=O("UserPopover");return p(),b("span",Qce,[e.user?(p(),Y(c,{key:1,"user-id":e.user.id,disabled:!e.shouldShowTooltip},{default:X(()=>[e.user?(p(),b("span",{key:0,class:he(["new",e.classnames]),style:hn(e.style)},[g("a",{class:he(["short",{"-with-tooltip":e.shouldShowTooltip}]),href:e.url,onClick:t[0]||(t[0]=Te((...u)=>e.onClick&&e.onClick(...u),["prevent"]))},[e.shouldShowAvatar?(p(),Y(i,{key:0,class:"mention-avatar",user:e.user},null,8,["user"])):E("",!0),g("span",nue,[t[1]||(t[1]=de("@",-1)),g("span",{class:"userName",innerHTML:e.userName},null,8,sue),e.shouldShowFullUserName?(p(),b("span",{key:0,class:he(["serverName",{"-faded":e.shouldFadeDomain}]),innerHTML:"@"+e.serverName},null,10,rue)):E("",!0),e.shouldShowFullUserName?(p(),Y(a,{key:1,user:e.user},null,8,["user"])):E("",!0)]),e.isYou&&e.shouldShowYous?(p(),b("span",{key:1,class:he({"-you":e.shouldBoldenYou})},w(" "+e.$t("status.you")),3)):E("",!0)],10,tue),g("span",oue,[t[2]||(t[2]=de(" @",-1)),g("span",{innerHTML:e.userName},null,8,iue),g("span",{innerHTML:"@"+e.serverName},null,8,aue)],512)],6)):E("",!0)]),_:1},8,["user-id","disabled"])):(p(),b("a",{key:0,href:e.url,class:"original",target:"_blank",innerHTML:e.content},null,8,eue))])}const QL=ge(Zce,[["render",lue]]),UT=5,cue={name:"MentionsLine",props:{mentions:{required:!0,type:Array}},data:()=>({expanded:!1}),components:{MentionLink:QL},computed:{mentionsComputed(){return this.mentions.slice(0,UT)},extraMentions(){return this.mentions.slice(UT)},manyMentions(){return this.extraMentions.length>0},...bn(["mergedConfig"])},methods:{toggleShowMore(){this.expanded=!this.expanded}}},uue={class:"MentionsLine"},due={key:0,class:"extraMentions"},fue={key:0,class:"fullExtraMentions"};function hue(e,t,n,s,r,o){const i=O("MentionLink");return p(),b("span",uue,[(p(!0),b(Se,null,We(e.mentionsComputed,a=>(p(),Y(i,{key:a.index,class:"mention-link",content:a.content,url:a.url},null,8,["content","url"]))),128)),e.manyMentions?(p(),b("span",due,[e.expanded?(p(),b("span",fue,[t[2]||(t[2]=de(w(" "),-1)),(p(!0),b(Se,null,We(e.extraMentions,a=>(p(),Y(i,{key:a.index,class:"mention-link",content:a.content,url:a.url},null,8,["content","url"]))),128))])):E("",!0),e.expanded?E("",!0):(p(),b("button",{key:1,class:"button-unstyled -link showMoreLess",onClick:t[0]||(t[0]=(...a)=>e.toggleShowMore&&e.toggleShowMore(...a))},w(e.$t("status.plus_more",{number:e.extraMentions.length})),1)),e.expanded?(p(),b("button",{key:2,class:"button-unstyled -link showMoreLess",onClick:t[1]||(t[1]=(...a)=>e.toggleShowMore&&e.toggleShowMore(...a))},w(e.$t("general.show_less")),1)):E("",!0)])):E("",!0)])}const By=ge(cue,[["render",hue]]),pue=5;({...bn(["mergedConfig"])});const mue=e=>{const t=decodeURI(e),s=/tag[s]*\/([\p{L}\p{N}_]*[\p{Alphabetic}_·\u{200c}][\p{L}\p{N}_·\p{M}\u{200c}]*)$/ug.exec(t);return s?s[1]:!1},gue={name:"HashtagLink",props:{url:{required:!0,type:String},content:{required:!0,type:String},tag:{required:!1,type:String,default:""}},methods:{onClick(){const e=this.tag||mue(this.url);if(e){const t=this.generateTagLink(e);this.$router.push(t)}else window.open(this.url,"_blank")},generateTagLink(e){return`/tag/${e}`}}},vue={class:"HashtagLink"},bue=["href","innerHTML"];function yue(e,t,n,s,r,o){return p(),b("span",vue,[g("a",{href:e.url,class:"original",target:"_blank",onClick:t[0]||(t[0]=Te((...i)=>e.onClick&&e.onClick(...i),["prevent"])),innerHTML:e.content},null,8,bue)])}const jT=ge(gue,[["render",yue]]);function _ue(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Mi(e)}const wue=["blockquote","br","hr","ul","ol","li","p","table","tbody","td","th","thead","tr","h1","h2","h3","h4","h5"],Mr={name:"RichContent",components:{MentionsLine:By,HashtagLink:jT},props:{html:{required:!0,type:String},attentions:{required:!1,default:()=>[]},emoji:{required:!0,type:Array},handleLinks:{required:!1,type:Boolean,default:!1},greentext:{required:!1,type:Boolean,default:!1},faint:{required:!1,type:Boolean,default:!1},collapse:{required:!1,type:Boolean,default:!1},isLocal:{required:!1,type:Boolean,default:!0}},render(){const{newHtml:e}=Sue(this.html,this.greentext);let t=null,n="";const s=[],r=[],o=[],i=[];let a=0,c=0;const u=P=>T(O("StillImage"),An($l(P),{class:"img"}),null),f=(P,A,R)=>{const{index:B,...N}=BT(P,A,c++);i.push(N),R||s.push(N);const{url:W,tag:V,content:U}=N;return T(jT,{url:W,tag:V,content:U},null)},h=(P,A)=>{const R=BT(P,A,a++);return R.notifying=this.attentions.some(B=>B.statusnet_profile_url===R.url),r.push(R),t===null&&(t=[]),t.push(R),t.length>pue&&o.push(R),t.length===1?T(By,{mentions:t},null):""},v=(P,A,R,B)=>{if(typeof P=="string"){const N=P.trim()==="";return P.includes(`
`)&&(t=null),N?(n=P,A!==R.length-1&&t!==null?P.trim():P):(t=null,P.includes(":")&&(P=["",Fce(P,this.emoji,({shortcode:W,url:V})=>T(Kce,{class:"emoji img",src:V,title:`:${W}:`,alt:`:${W}:`,shortcode:W,isLocal:this.isLocal},null))]),P)}if(Array.isArray(P)){const[N,W,V]=P;let U=qo(N);U.toLowerCase()==="script"&&(U="js-exploit"),U.toLowerCase()==="style"&&(U="css-exploit");const ie=$l(N,()=>!0),le=$l(N),qe=t!==null&&!(W&&typeof W[0]=="string"&&W[0].match(/^\s/))?n:"";if(wue.includes(U))t=null;else{if(U==="img")return["",[qe,u(N)],""];if(U==="a"&&this.handleLinks){if(ie.class&&ie.class.includes("mention"))return h(le,W);t=null}else if(U==="span"&&this.handleLinks&&ie.class&&ie.class.includes("h-card"))return["",W.map(v),""]}return W!==void 0?["",[qe,[N,W.map(v),V]],""]:["",[qe,P],""]}};let y=!1;const S=(P,A,R,B)=>{if(typeof P=="string")return P.trim()===""?P:(y||(y=!0),Z.unescape(P));if(Array.isArray(P)){const[N,W]=P,V=N===""?"":qo(N);switch(V){case"a":{if(!this.handleLinks)break;const U=$l(N,()=>!0),ie=$l(N,()=>!0);if(U.class&&U.class.includes("hashtag")||U.rel==="tag")return f(ie,W,y);{ie.target="_blank";const le=[...W].reverse().map(S).reverse();return T("a",ie,[le])}}case"":return[...W].reverse().map(S).reverse()}if(W!==void 0){const U=Array.isArray(W)?[...W].reverse().map(S).reverse():W;return T(V,$l(N),_ue(U)?U:{default:()=>[U]})}else return T(V,null,null)}return P},I=[...Dce(e).map(v)].reverse().map(S).reverse(),C=T("span",{class:["RichContent",this.faint?"-faint":""]},[this.collapse?I.map(P=>Array.isArray(P)?P.map(A=>A.type==="br"?" ":A):P.replace(/\n/g," ")):I]),$={lastTags:s,writtenMentions:r,writtenTags:i,invisibleMentions:o};return this.$emit("parseReady",$),C}},BT=(e,t,n)=>{const s=o=>typeof o=="string"?o:o[1].map(s).join(""),r=t.map(s).join("");return{index:n,url:e.href,tag:e["data-tag"],content:Z.flattenDeep(t).join(""),textContent:r}},Sue=(e,t)=>{const n=new Set(["p","div"]);return{newHtml:Uce(e).reverse().map((o,i,a)=>{if(!o.text)return o;const c=o.text;if(t&&o.level.every(u=>n.has(u))&&(c.includes("&gt;")||c.includes("&lt;"))){const u=c.replace(/<[^>]+?>/gi,"").replace(/@\w+/gi,"").trim();if(u.startsWith("&gt;"))return`<span class='greentext'>${c}</span>`;if(u.startsWith("&lt;"))return`<span class='cyantext'>${c}</span>`}return c}).reverse().join("")}},$ue={name:"Poll",props:["basePoll","emoji"],components:{Timeago:wd,RichContent:Mr,Checkbox:io},data(){return{loading:!1,choices:[],randomSeed:Jp()}},created(){_a().pollsObject[this.pollId]||_a().mergeOrAddPoll(this.basePoll),_a().trackPoll(this.pollId)},unmounted(){_a().untrackPoll(this.pollId)},computed:{pollId(){return this.basePoll.id},poll(){return _a().pollsObject[this.pollId]||{}},options(){return this.poll&&this.poll.options||[]},expiresAt(){return this.poll&&this.poll.expires_at||null},expired(){return this.poll&&this.poll.expired||!1},expirationLabel(){return this.$store.getters.mergedConfig.useAbsoluteTimeFormat?this.expired?"polls.expired_at":"polls.expires_at":this.expired?"polls.expired":"polls.expires_in"},loggedIn(){return this.$store.state.users.currentUser},showResults(){return this.poll.voted||this.expired||!this.loggedIn},totalVotesCount(){return this.poll.votes_count},containerClass(){return{loading:this.loading}},choiceIndices(){return this.choices.map((e,t)=>e&&t).filter(e=>typeof e=="number")},isDisabled(){const e=this.choiceIndices.length===0;return this.loading||e}},methods:{percentageForOption(e){return this.totalVotesCount===0?0:Math.round(e/this.totalVotesCount*100)},resultTitle(e){return`${e.votes_count}/${this.totalVotesCount} ${this.$t("polls.votes")}`},activateOption(e,t){let n;this.poll.multiple?n=this.choices||this.options.map(()=>!1):n=this.options.map(()=>!1),n[e]=t,this.choices=n},optionId(e){return`poll${this.poll.id}-${e}`},vote(){this.choiceIndices.length!==0&&(this.loading=!0,_a().votePoll({id:this.statusId,pollId:this.poll.id,choices:this.choiceIndices}).then(()=>{this.loading=!1}))}}},kue=["role"],Cue=["title"],Tue={class:"option-result-label"},Aue={class:"result-percentage"},Eue=["role","aria-labelledby","aria-checked"],Iue={class:"footer faint"},Pue=["title"],Lue={class:"total"},Oue={key:2},Rue={key:1},Mue=["disabled"];function Nue(e,t,n,s,r,o){var f;const i=O("RichContent"),a=O("Checkbox"),c=O("Timeago"),u=O("i18n-t");return p(),b("div",{class:he(["poll",e.containerClass])},[g("div",{role:e.showResults?"section":e.poll.multiple?"group":"radiogroup"},[(p(!0),b(Se,null,We(e.options,(h,v)=>(p(),b("div",{key:v,class:"poll-option"},[e.showResults?(p(),b("div",{key:0,title:e.resultTitle(h),class:"option-result"},[g("div",Tue,[g("span",Aue,w(e.percentageForOption(h.votes_count))+"% ",1),T(i,{html:h.title_html,"handle-links":!1,emoji:e.emoji},null,8,["html","emoji"])]),g("div",{class:"result-fill",style:hn({width:`${e.percentageForOption(h.votes_count)}%`})},null,4)],8,Cue)):(p(),b("div",{key:1,tabindex:"0",role:e.poll.multiple?"checkbox":"radio","aria-labelledby":`option-vote-${e.randomSeed}-${v}`,"aria-checked":e.choices[v]},[T(a,{radio:!e.poll.multiple,disabled:e.loading,"model-value":e.choices[v],"onUpdate:modelValue":y=>e.activateOption(v,y)},{default:X(()=>[T(i,{id:`option-vote-${e.randomSeed}-${v}`,html:h.title_html,"handle-links":!1,emoji:e.emoji},null,8,["id","html","emoji"])]),_:2},1032,["radio","disabled","model-value","onUpdate:modelValue"])],8,Eue))]))),128))],8,kue),g("div",Iue,[g("p",null,[(f=e.poll.pleroma)!=null&&f.non_anonymous?(p(),b("span",{key:0,title:e.$t("polls.non_anonymous_title")},w(e.$t("polls.non_anonymous"))+"  ·  ",9,Pue)):E("",!0),g("span",Lue,[typeof e.poll.voters_count=="number"?(p(),b(Se,{key:0},[de(w(e.$t("polls.people_voted_count",{count:e.poll.voters_count},e.poll.voters_count)),1)],64)):(p(),b(Se,{key:1},[de(w(e.$t("polls.votes_count",{count:e.poll.votes_count},e.poll.votes_count)),1)],64)),e.expiresAt!==null?(p(),b("span",Oue,"  ·  ")):E("",!0)]),e.expiresAt!==null?(p(),b("span",Rue,[T(u,{scope:"global",keypath:e.expirationLabel},{default:X(()=>[T(c,{time:e.expiresAt,"auto-update":60,"now-threshold":0},null,8,["time"])]),_:1},8,["keypath"])])):E("",!0)]),e.showResults?E("",!0):(p(),b("button",{key:0,class:"btn button-default poll-vote-button",type:"button",disabled:e.isDisabled,onClick:t[0]||(t[0]=(...h)=>e.vote&&e.vote(...h))},w(e.$t("polls.vote")),9,Mue))])],2)}const Fue=ge($ue,[["render",Nue]]);et.add(n2,a2,Q_,iP,Ip);const Due={name:"StatusBody",props:["compact","collapse","status","focused","noHeading","fullContent","singleLine","showingTall","expandingSubject","showingLongSubject","toggleShowingTall","toggleExpandingSubject","toggleShowingLongSubject"],data(){return{postLength:this.status.text.length,parseReadyDone:!1}},emits:["parseReady"],computed:{localCollapseSubjectDefault(){return this.mergedConfig.collapseMessageWithSubject},tallStatus(){return this.singleLine||this.compact?!1:this.status.raw_html.split(/<p|<br/).length+this.postLength/80>20},longSubject(){return this.status.summary.length>240},mightHideBecauseSubject(){return!!this.status.summary&&this.localCollapseSubjectDefault},mightHideBecauseTall(){return this.tallStatus&&!(this.status.summary&&this.localCollapseSubjectDefault)},hideSubjectStatus(){return this.mightHideBecauseSubject&&!this.expandingSubject},hideTallStatus(){return this.mightHideBecauseTall&&!this.showingTall},shouldShowToggle(){return this.mightHideBecauseSubject||this.mightHideBecauseTall},toggleButtonClasses(){return{"cw-status-hider":!this.showingMore&&this.mightHideBecauseSubject,"tall-status-hider":!this.showingMore&&this.mightHideBecauseTall,"status-unhider":this.showingMore}},toggleText(){return this.showingMore?this.mightHideBecauseSubject?this.$t("status.hide_content"):this.$t("general.show_less"):this.mightHideBecauseSubject?this.$t("status.show_content"):this.$t("general.show_more")},showingMore(){return this.mightHideBecauseTall&&this.showingTall||this.mightHideBecauseSubject&&this.expandingSubject},attachmentTypes(){return this.status.attachments.map(e=>Fa.fileType(e.mimetype))},collapsedStatus(){return this.status.raw_html.replace(/(\n|<br\s?\/?>)/g," ")},...bn(["mergedConfig"])},components:{RichContent:Mr},mounted(){this.status.attentions&&this.status.attentions.forEach(e=>{const{id:t}=e;this.$store.dispatch("fetchUserIfMissing",t)})},methods:{onParseReady(e){if(this.parseReadyDone)return;this.parseReadyDone=!0,this.$emit("parseReady",e);const{writtenMentions:t,invisibleMentions:n}=e;t.filter(s=>!s.notifying).forEach(s=>{const{content:r,url:o}=s,i=r.replace(/<[^>]+?>/gi,"");if(!i.startsWith("@"))return;const a=i.slice(1),c=o.replace(/^https?:\/\//,"").replace(/\/.+?$/,"");this.$store.dispatch("fetchUserIfMissing",`${a}@${c}`)}),this.postLength=n.reduce((s,r)=>s-r.textContent.length-1,this.postLength)},toggleShowMore(){this.mightHideBecauseTall?this.toggleShowingTall():this.mightHideBecauseSubject&&this.toggleExpandingSubject()},generateTagLink(e){return`/tag/${e}`}}},Uue={class:"body"},jue=["aria-expanded"];function Bue(e,t,n,s,r,o){const i=O("RichContent");return p(),b("div",{class:he(["StatusBody",{"-compact":e.compact}])},[g("div",Uue,[e.status.summary_raw_html?(p(),b("div",{key:0,class:he(["summary-wrapper",{"-tall":e.longSubject&&!e.showingLongSubject}])},[T(i,{class:"media-body summary",faint:e.compact,html:e.status.summary_raw_html,emoji:e.status.emojis,"is-local":e.status.isLocal},null,8,["faint","html","emoji","is-local"]),at(g("button",{class:"button-unstyled -link tall-subject-hider",onClick:t[0]||(t[0]=Te((...a)=>e.toggleShowingLongSubject&&e.toggleShowingLongSubject(...a),["prevent"]))},w(e.$t("status.hide_full_subject")),513),[[Cr,e.longSubject&&e.showingLongSubject]]),at(g("button",{class:"button-unstyled -link tall-subject-hider",onClick:t[1]||(t[1]=Te((...a)=>e.toggleShowingLongSubject&&e.toggleShowingLongSubject(...a),["prevent"]))},w(e.$t("status.show_full_subject")),513),[[Cr,e.longSubject&&!e.showingLongSubject]])],2)):E("",!0),g("div",{class:he(["text-wrapper",{"-tall-status":e.hideTallStatus,"-expanded":e.showingMore}])},[!e.hideSubjectStatus&&!(e.singleLine&&e.status.summary_raw_html)?(p(),Y(i,{key:0,class:he([{"-single-line":e.singleLine},"text media-body"]),html:e.status.raw_html,collapse:e.collapse,emoji:e.status.emojis,"handle-links":!0,faint:e.compact,greentext:e.mergedConfig.greentext,attentions:e.status.attentions,"is-local":e.status.is_local,onParseReady:e.onParseReady},null,8,["class","html","collapse","emoji","faint","greentext","attentions","is-local","onParseReady"])):E("",!0),at(g("div",{class:he(e.toggleButtonClasses)},[g("button",{class:he(["btn button-default toggle-button",{"-focused":e.focused}]),"aria-expanded":e.showingMore,onClick:t[2]||(t[2]=Te((...a)=>e.toggleShowMore&&e.toggleShowMore(...a),["prevent"]))},w(e.toggleText),11,jue)],2),[[Cr,e.shouldShowToggle]])],2)]),e.hideSubjectStatus?E("",!0):Ot(e.$slots,"default",{key:0})],2)}const zue=ge(Due,[["render",Bue]]),que={name:"LinkPreview",props:["card","size","nsfw"],data(){return{imageLoaded:!1}},computed:{useImage(){return this.card.image&&!this.censored&&this.size!=="hide"},censored(){return this.nsfw&&this.hideNsfwConfig},useDescription(){return this.card.description&&/\S/.test(this.card.description)},hideNsfwConfig(){return this.mergedConfig.hideNsfw},...bn(["mergedConfig"])},created(){if(this.useImage){const e=new Image;e.onload=()=>{this.imageLoaded=!0},e.src=this.card.image}}},Hue=["href"],Vue={key:0,class:"card-image"},Wue=["src"],Gue={class:"card-content"},Kue={class:"card-host faint"},xue={key:0,class:"nsfw-alert alert warning"},Yue={class:"card-title"},Xue={key:0,class:"card-description"};function Jue(e,t,n,s,r,o){return p(),b("div",null,[g("a",{class:"link-preview-card",href:e.card.url,target:"_blank",rel:"noopener"},[e.useImage&&e.imageLoaded?(p(),b("div",Vue,[g("img",{src:e.card.image},null,8,Wue)])):E("",!0),g("div",Gue,[g("span",Kue,[e.censored?(p(),b("span",xue,w(e.$t("status.nsfw")),1)):E("",!0),de(" "+w(e.card.provider_name),1)]),g("h4",Yue,w(e.card.title),1),e.useDescription?(p(),b("p",Xue,w(e.card.description),1)):E("",!0)])],8,Hue)])}const eO=ge(que,[["render",Jue]]);et.add(Zs,n2,a2,Q_,iP,Ip);const tO=e=>e.charAt(0).toUpperCase()+e.slice(1),Zue=e=>e.reduce((t,n)=>{const s=tO(n),r=`controlledToggle${s}`,o=`controlled${s}`,i=`uncontrolled${s}`;return t[n]=function(){return(this.$data[r]!==void 0||this.$props[r]!==void 0)&&this[r]?this[o]:this[i]},t},{}),kb=(e,t)=>{const n=tO(t),s=`controlledToggle${n}`,r=`uncontrolled${n}`;e[s]?e[s]():e[r]=!e[r]},Que={name:"StatusContent",props:["status","compact","collapse","focused","noHeading","fullContent","singleLine","controlledShowingTall","controlledExpandingSubject","controlledToggleShowingTall","controlledToggleExpandingSubject","controlledShowingLongSubject","controlledToggleShowingLongSubject"],emits:["parseReady","mediaplay","mediapause"],data(){return{uncontrolledShowingTall:this.fullContent||this.inConversation&&this.focused,uncontrolledShowingLongSubject:!1,uncontrolledExpandingSubject:!this.$store.getters.mergedConfig.collapseMessageWithSubject}},computed:{...Zue(["showingTall","expandingSubject","showingLongSubject"]),statusCard(){return this.status.card?this.status.card.url===this.status.quote_url?null:this.status.card:null},hideAttachments(){return this.mergedConfig.hideAttachments&&!this.inConversation||this.mergedConfig.hideAttachmentsInConv&&this.inConversation},nsfwClickthrough(){return!(!this.status.nsfw||this.status.summary&&this.localCollapseSubjectDefault)},localCollapseSubjectDefault(){return this.mergedConfig.collapseMessageWithSubject},attachmentSize(){return this.compact?"small":this.mergedConfig.hideAttachments&&!this.inConversation||this.mergedConfig.hideAttachmentsInConv&&this.inConversation||this.status.attachments.length>this.maxThumbnails?"hide":"normal"},maxThumbnails(){return this.mergedConfig.maxThumbnails},...bn(["mergedConfig"]),...mn({currentUser:e=>e.users.currentUser})},components:{Attachment:Qp,Poll:Fue,Gallery:em,LinkPreview:eO,StatusBody:zue},methods:{toggleShowingTall(){kb(this,"showingTall")},toggleExpandingSubject(){kb(this,"expandingSubject")},toggleShowingLongSubject(){kb(this,"showingLongSubject")},setMedia(){const e=this.attachmentSize==="hide"?this.status.attachments:this.galleryAttachments;return()=>hs().setMedia(e)}}},ede={key:0},tde={key:1,class:"poll-icon"},nde={key:3,class:"link-preview media-body"};function sde(e,t,n,s,r,o){const i=O("Poll"),a=O("FAIcon"),c=O("gallery"),u=O("link-preview"),f=O("StatusBody");return p(),b("div",{class:he(["StatusContent",{"-compact":e.compact}])},[Ot(e.$slots,"header"),T(f,{status:e.status,compact:e.compact,"single-line":e.singleLine,"showing-tall":e.showingTall,"expanding-subject":e.expandingSubject,"showing-long-subject":e.showingLongSubject,"toggle-showing-tall":e.toggleShowingTall,"toggle-expanding-subject":e.toggleExpandingSubject,"toggle-showing-long-subject":e.toggleShowingLongSubject,collapse:e.collapse,onParseReady:t[2]||(t[2]=h=>e.$emit("parseReady",h))},{default:X(()=>[e.status.poll&&e.status.poll.options&&!e.compact?(p(),b("div",ede,[T(i,{"base-poll":e.status.poll,emoji:e.status.emojis},null,8,["base-poll","emoji"])])):e.status.poll&&e.status.poll.options&&e.compact?(p(),b("div",tde,[T(a,{icon:"poll-h",size:"2x"})])):E("",!0),e.status.attachments.length!==0?(p(),Y(c,{key:2,class:"attachments media-body",compact:e.compact,nsfw:e.nsfwClickthrough,attachments:e.status.attachments,limit:e.compact?1:0,size:e.attachmentSize,onPlay:t[0]||(t[0]=h=>e.$emit("mediaplay",e.attachment.id)),onPause:t[1]||(t[1]=h=>e.$emit("mediapause",e.attachment.id))},null,8,["compact","nsfw","attachments","limit","size"])):E("",!0),e.statusCard&&!e.noHeading&&!e.compact?(p(),b("div",nde,[T(u,{card:e.status.card,size:e.attachmentSize,nsfw:e.nsfwClickthrough},null,8,["card","size","nsfw"])])):E("",!0)]),_:1},8,["status","compact","single-line","showing-tall","expanding-subject","showing-long-subject","toggle-showing-tall","toggle-expanding-subject","toggle-showing-long-subject","collapse"]),Ot(e.$slots,"footer")],2)}const Ka=ge(Que,[["render",sde]]),nO=e=>Object.keys(e).reduce((t,n)=>(t[Z.kebabCase(n)]=e[n],t),{}),zh=e=>{const t=rde(e.emoji),n=e.store&&ode(e.store);return(s,r)=>{const o=s[0];return o===":"&&e.emoji?t(s,r):o==="@"&&n?n(s):[]}},rde=e=>(t,n)=>{const s=t.toLowerCase().substr(1);return e.map(r=>({...r,...n(r)})).filter(r=>r.names.concat(r.keywords).filter(o=>o.toLowerCase().match(s)).length).map(r=>{let o=0;return o+=Math.max(...r.names.map(i=>i.toLowerCase()===s?200:0),0),o+=r.imageUrl?100:0,o+=Math.max(...r.names.map(i=>i.toLowerCase().startsWith(s)?10:0),0),o-=r.displayText.length,r.score=o,r}).sort((r,o)=>{const i=r.displayText>o.displayText?.5:-.5;return o.score-r.score+i})},ode=({dispatch:e,state:t})=>{let n=[],s="",r=null,o=null;const i=c=>e("searchUsers",{query:c}),a=c=>(o&&o(),new Promise((u,f)=>{r=setTimeout(()=>{i(c).then(u).catch(f)},300),o=()=>{clearTimeout(r),u([])}}));return async c=>{const u=c.toLowerCase().substr(1);return s===u||(n=[],s=u,u.includes("@")||await a(u),n=t.users.users.filter(h=>h.screen_name&&h.name&&(h.screen_name.toLowerCase().startsWith(u)||h.name.toLowerCase().startsWith(u))).slice(0,20).sort((h,v)=>{let y=0,S=0;y+=h.screen_name.toLowerCase().startsWith(u)?2:0,S+=v.screen_name.toLowerCase().startsWith(u)?2:0,y+=h.name.toLowerCase().startsWith(u)?1:0,S+=v.name.toLowerCase().startsWith(u)?1:0;const k=(S-y)*10,I=h.name>v.name?1:-1,C=h.screen_name>v.screen_name?1:-1;return k+I+C}).map(h=>({user:h,displayText:h.screen_name_ui,detailText:h.name,imageUrl:h.profile_image_url_original,replacement:"@"+h.screen_name+" "}))||[]),n}},ide={props:{darkOverlay:{default:!0,type:Boolean},onCancel:{default:()=>{},type:Function}},computed:{mobileCenter(){return this.$store.getters.mergedConfig.modalMobileCenter}}},ade={class:"panel-heading dialog-modal-heading"},lde={class:"title"},cde={class:"panel-body dialog-modal-content"},ude={class:"dialog-modal-footer user-interactions panel-footer"};function dde(e,t,n,s,r,o){return p(),b("span",{class:he(["dialog-container",{"dark-overlay":e.darkOverlay,"-center-mobile":e.mobileCenter}]),onClick:t[1]||(t[1]=Te(i=>e.onCancel(),["self","stop"]))},[g("div",{class:"dialog-modal panel panel-default",onClick:t[0]||(t[0]=Te(()=>{},["stop"]))},[g("div",ade,[g("h1",lde,[Ot(e.$slots,"header")])]),g("div",cde,[Ot(e.$slots,"default")]),g("div",ude,[Ot(e.$slots,"footer")])])],2)}const Sd=ge(ide,[["render",dde]]),fde={data(){return{showing:!1}},components:{DialogModal:Sd},emits:["save","discard"],computed:{action(){return this.$store.getters.mergedConfig.autoSaveDraft?"save":this.$store.getters.mergedConfig.unsavedPostAction},shouldConfirm(){return this.action==="confirm"}},methods:{requestClose(){this.shouldConfirm?this.showing=!0:this.action==="save"?this.save():this.discard()},save(){this.$emit("save"),this.showing=!1},discard(){this.$emit("discard"),this.showing=!1},cancel(){this.showing=!1}}};function hde(e,t,n,s,r,o){const i=O("dialog-modal"),a=sc("body-scroll-lock");return p(),Y(Yn,{to:"#modal"},[e.showing?at((p(),Y(i,{key:0,class:"confirm-modal","on-cancel":e.cancel},{header:X(()=>[g("span",null,w(e.$t("post_status.close_confirm_title")),1)]),footer:X(()=>[g("button",{class:"btn button-default",onClick:t[0]||(t[0]=Te((...c)=>e.save&&e.save(...c),["prevent"]))},w(e.$t("post_status.close_confirm_save_button")),1),g("button",{class:"btn button-default",onClick:t[1]||(t[1]=Te((...c)=>e.discard&&e.discard(...c),["prevent"]))},w(e.$t("post_status.close_confirm_discard_button")),1),g("button",{class:"btn button-default",onClick:t[2]||(t[2]=Te((...c)=>e.cancel&&e.cancel(...c),["prevent"]))},w(e.$t("post_status.close_confirm_continue_composing_button")),1)]),default:X(()=>[de(" "+w(e.$t("post_status.close_confirm"))+" ",1)]),_:1},8,["on-cancel"])),[[a,!0]]):E("",!0)])}const pde=ge(fde,[["render",hde]]);et.add(Ap,Ip,sP,NJ,Xn,Zs,za,qa,yd);const mde=({user:e,attentions:t=[]},n)=>{let s=[...t];s.unshift(e),s=Z.uniqBy(s,"id"),s=Z.reject(s,{id:n.id});const r=Z.map(s,o=>`@${o.screen_name}`);return r.length>0?r.join(" ")+" ":""},Uf=e=>Number(e.substring(0,e.length-2)),gde=({replyTo:e,profileMention:t,statusId:n})=>e?["reply",e]:t?["mention",t]:n?["edit",n]:["new",""],vde={props:["statusId","statusText","statusIsSensitive","statusPoll","statusFiles","statusMediaDescriptions","statusScope","statusContentType","replyTo","repliedUser","attentions","copyMessageScope","subject","disableSubject","disableScopeSelector","disableVisibilitySelector","disableNotice","disableLockWarning","disablePolls","disableSensitivityCheckbox","disableSubmit","disablePreview","disableDraft","hideDraft","closeable","placeholder","maxHeight","postHandler","preserveFocus","autoFocus","fileLimit","submitOnEnter","emojiPickerPlacement","optimisticPosting","profileMention","draftId"],emits:["posted","draft-done","resize","mediaplay","mediapause","can-close","update"],components:{MediaUpload:tae,EmojiInput:GL,PollForm:Nle,ScopeSelector:cae,Checkbox:io,Select:Zi,Attachment:Qp,StatusContent:Ka,Gallery:em,DraftCloser:pde,Popover:Jn},mounted(){if(this.updateIdempotencyKey(),this.resize(this.$refs.textarea),this.replyTo){const e=this.$refs.textarea.value.length;this.$refs.textarea.setSelectionRange(e,e)}(this.replyTo||this.autoFocus)&&this.$refs.textarea.focus()},data(){var i;let t=this.$route.query.message||"";const{scopeCopy:n}=this.$store.getters.mergedConfig,[s,r]=gde({replyTo:this.replyTo,profileMention:this.profileMention&&((i=this.repliedUser)==null?void 0:i.id),statusId:this.statusId});let o=!this.disableDraft&&(this.draftId||s!=="new")?this.getDraft(s,r):null;if(!o){if(s==="reply"||s==="mention"){const f=this.$store.state.users.currentUser;t=mde({user:this.repliedUser,attentions:this.attentions},f)}const a=this.copyMessageScope&&n||this.copyMessageScope==="direct"?this.copyMessageScope:this.$store.state.users.currentUser.default_scope,{postContentType:c,sensitiveByDefault:u}=this.$store.getters.mergedConfig;if(o={type:s,refId:r,spoilerText:this.subject||"",status:t,nsfw:!!u,files:[],poll:{},hasPoll:!1,mediaDescriptions:{},visibility:a,contentType:c,quoting:!1},s==="edit"){const f=this.statusContentType||c;o={type:s,refId:r,spoilerText:this.subject||"",status:this.statusText||"",nsfw:this.statusIsSensitive||!!u,files:this.statusFiles||[],poll:this.statusPoll||{},hasPoll:!1,mediaDescriptions:this.statusMediaDescriptions||{},visibility:this.statusScope||a,contentType:f}}}return{randomSeed:Jp(),dropFiles:[],uploadingFiles:!1,error:null,posting:!1,highlighted:0,newStatus:o,caret:0,showDropIcon:"hide",dropStopTimeout:null,preview:null,previewLoading:!1,emojiInputShown:!1,idempotencyKey:"",saveInhibited:!0,saveable:!1}},computed:{users(){return this.$store.state.users.users},userDefaultScope(){return this.$store.state.users.currentUser.default_scope},showAllScopes(){return!this.mergedConfig.minimalScopesMode},hideExtraActions(){return this.disableDraft||this.hideDraft},emojiUserSuggestor(){return zh({emoji:[...this.$store.getters.standardEmojiList,...this.$store.state.instance.customEmoji],store:this.$store})},emojiSuggestor(){return zh({emoji:[...this.$store.getters.standardEmojiList,...this.$store.state.instance.customEmoji]})},emoji(){return this.$store.getters.standardEmojiList||[]},customEmoji(){return this.$store.state.instance.customEmoji||[]},statusLength(){return this.newStatus.status.length},spoilerTextLength(){return this.newStatus.spoilerText.length},statusLengthLimit(){return this.$store.state.instance.textlimit},hasStatusLengthLimit(){return this.statusLengthLimit>0},charactersLeft(){return this.statusLengthLimit-(this.statusLength+this.spoilerTextLength)},isOverLengthLimit(){return this.hasStatusLengthLimit&&this.charactersLeft<0},minimalScopesMode(){return this.$store.state.instance.minimalScopesMode},alwaysShowSubject(){return this.mergedConfig.alwaysShowSubjectInput},postFormats(){return this.$store.state.instance.postFormats||[]},safeDMEnabled(){return this.$store.state.instance.safeDM},pollsAvailable(){return this.$store.state.instance.pollsAvailable&&this.$store.state.instance.pollLimits.max_options>=2&&this.disablePolls!==!0},hideScopeNotice(){return this.disableNotice||this.$store.getters.mergedConfig.hideScopeNotice},pollContentError(){return this.pollFormVisible&&this.newStatus.poll&&this.newStatus.poll.error},showPreview(){return!this.disablePreview&&(!!this.preview||this.previewLoading)},emptyStatus(){return this.newStatus.status.trim()===""&&this.newStatus.files.length===0},uploadFileLimitReached(){return this.newStatus.files.length>=this.fileLimit},isEdit(){return typeof this.statusId<"u"&&this.statusId.trim()!==""},quotable(){if(!this.$store.state.instance.quotingAvailable||!this.replyTo)return!1;const e=this.$store.state.statuses.allStatusesObject[this.replyTo];return e?e.visibility==="public"||e.visibility==="unlisted"||e.visibility==="local"?!0:e.visibility==="private"?e.user.id===this.$store.state.users.currentUser.id:!1:!1},debouncedMaybeAutoSaveDraft(){return Z.debounce(this.maybeAutoSaveDraft,3e3)},pollFormVisible(){return this.newStatus.hasPoll},shouldAutoSaveDraft(){return this.$store.getters.mergedConfig.autoSaveDraft},autoSaveState(){return this.saveable?this.$t("post_status.auto_save_saving"):this.newStatus.id?this.$t("post_status.auto_save_saved"):this.$t("post_status.auto_save_nothing_new")},safeToSaveDraft(){var e;return(this.newStatus.status||this.newStatus.spoilerText||((e=this.newStatus.files)==null?void 0:e.length)||this.newStatus.hasPoll)&&this.saveable},hasEmptyDraft(){var e;return this.newStatus.id&&!(this.newStatus.status||this.newStatus.spoilerText||(e=this.newStatus.files)!=null&&e.length||this.newStatus.hasPoll)},...bn(["mergedConfig"]),...sn(Xe,{mobileLayout:e=>e.mobileLayout})},watch:{newStatus:{deep:!0,handler(){this.statusChanged()}},saveable(e){e?this.addBeforeUnloadListener():this.removeBeforeUnloadListener()}},beforeUnmount(){this.maybeAutoSaveDraft(),this.removeBeforeUnloadListener()},methods:{...gp(hs,["increment"]),statusChanged(){this.autoPreview(),this.updateIdempotencyKey(),this.debouncedMaybeAutoSaveDraft(),this.saveable=!0,this.saveInhibited=!1},clearStatus(){const e=this.newStatus;this.saveInhibited=!0,this.newStatus={status:"",spoilerText:"",files:[],visibility:e.visibility,contentType:e.contentType,poll:{},hasPoll:!1,mediaDescriptions:{},quoting:!1},this.$refs.mediaUpload&&this.$refs.mediaUpload.clearFile(),this.clearPollForm(),this.preserveFocus&&this.$nextTick(()=>{this.$refs.textarea.focus()});const t=this.$el.querySelector("textarea");t.style.height="auto",t.style.height=void 0,this.error=null,this.preview&&this.previewStatus(),this.saveable=!1},async postStatus(e,t){if(this.posting&&!this.optimisticPosting||this.disableSubmit||this.emojiInputShown||(this.submitOnEnter&&(e.stopPropagation(),e.preventDefault()),this.optimisticPosting&&(this.emptyStatus||this.isOverLengthLimit)))return;if(this.emptyStatus){this.error=this.$t("post_status.empty_status_error");return}const n=this.newStatus.hasPoll?ble(this.newStatus.poll):{};if(this.pollContentError){this.error=this.pollContentError;return}this.posting=!0;try{await this.setAllMediaDescriptions()}catch{this.error=this.$t("post_status.media_description_error"),this.posting=!1;return}const s=t.quoting?"quoteId":"inReplyToStatusId",r={status:t.status,spoilerText:t.spoilerText||null,visibility:t.visibility,sensitive:t.nsfw,media:t.files,store:this.$store,[s]:this.replyTo,contentType:t.contentType,poll:n,idempotencyKey:this.idempotencyKey};(this.postHandler?this.postHandler:Uu.postStatus)(r).then(i=>{i.error?this.error=i.error:(this.abandonDraft(),this.clearStatus(),this.$emit("posted",i)),this.posting=!1})},previewStatus(){if(this.emptyStatus&&this.newStatus.spoilerText.trim()===""){this.preview={error:this.$t("post_status.preview_empty")},this.previewLoading=!1;return}const e=this.newStatus;this.previewLoading=!0;const t=e.quoting?"quoteId":"inReplyToStatusId";Uu.postStatus({status:e.status,spoilerText:e.spoilerText||null,visibility:e.visibility,sensitive:e.nsfw,media:[],store:this.$store,[t]:this.replyTo,contentType:e.contentType,poll:{},preview:!0}).then(n=>{this.previewLoading&&(n.error?this.preview={error:n.error}:this.preview=n)}).catch(n=>{this.preview={error:n}}).finally(()=>{this.previewLoading=!1})},debouncePreviewStatus:Z.debounce(function(){this.previewStatus()},500),autoPreview(){this.preview&&(this.previewLoading=!0,this.debouncePreviewStatus())},closePreview(){this.preview=null,this.previewLoading=!1},togglePreview(){this.showPreview?this.closePreview():this.previewStatus()},addMediaFile(e){this.newStatus.files.push(e),this.$emit("resize",{delayed:!0})},removeMediaFile(e){const t=this.newStatus.files.indexOf(e);this.newStatus.files.splice(t,1),this.$emit("resize")},editAttachment(e,t){this.newStatus.mediaDescriptions[e.id]=t},shiftUpMediaFile(e){const{files:t}=this.newStatus,n=this.newStatus.files.indexOf(e);t.splice(n,1),t.splice(n-1,0,e)},shiftDnMediaFile(e){const{files:t}=this.newStatus,n=this.newStatus.files.indexOf(e);t.splice(n,1),t.splice(n+1,0,e)},uploadFailed(e,t){t=t||{},this.error=this.$t("upload.error.base")+" "+this.$t("upload.error."+e,t)},startedUploadingFiles(){this.uploadingFiles=!0},finishedUploadingFiles(){this.$emit("resize"),this.uploadingFiles=!1},type(e){return Fa.fileType(e.mimetype)},paste(e){this.autoPreview(),this.resize(e),e.clipboardData.files.length>0&&(e.preventDefault(),this.dropFiles=[e.clipboardData.files[0]])},fileDrop(e){e.dataTransfer&&e.dataTransfer.types.includes("Files")&&(e.preventDefault(),this.dropFiles=e.dataTransfer.files,clearTimeout(this.dropStopTimeout),this.showDropIcon="hide")},fileDragStop(){clearTimeout(this.dropStopTimeout),this.showDropIcon="fade",this.dropStopTimeout=setTimeout(()=>this.showDropIcon="hide",500)},fileDrag(e){e.dataTransfer.dropEffect=this.uploadFileLimitReached?"none":"copy",e.dataTransfer&&e.dataTransfer.types.includes("Files")&&(clearTimeout(this.dropStopTimeout),this.showDropIcon="show")},onEmojiInputInput(){this.$nextTick(()=>{this.resize(this.$refs.textarea)})},resize(e){const t=e.target||e;if(!(t instanceof window.Element))return;if(t.value===""){t.style.height=null,this.$emit("resize");return}const n=this.$refs.form,s=this.$refs.bottom,r=window.getComputedStyle(s)["padding-bottom"],o=Uf(r),i=this.$el.closest(".column.-scrollable")||this.$el.closest(".post-form-modal-view")||window,a=window.getComputedStyle(t)["padding-top"],c=window.getComputedStyle(t)["padding-bottom"],u=Uf(a),f=Uf(c),h=u+f,v=Uf(t.style.height),y=i===window?i.scrollY:i.scrollTop,S=i===window?i.innerHeight:i.offsetHeight,k=y+S;t.style.height="auto";const I=Math.floor(t.scrollHeight-h);let C=this.maxHeight?Math.min(I,this.maxHeight):I;Math.abs(C-v)<=1&&(C=v),t.style.height=`${C}px`,this.$emit("resize",C);const $=s.offsetHeight+B2(s,i).top+o,P=k<$,A=S<n.offsetHeight,R=$-k,N=P&&!(A&&this.$refs.textarea.selectionStart!==this.$refs.textarea.value.length)?R:0,W=Math.round(y+N);i===window?i.scroll(0,W):i.scrollTop=W},clearError(){this.error=null},changeVis(e){this.newStatus.visibility=e},togglePollForm(){this.newStatus.hasPoll=!this.newStatus.hasPoll},setPoll(e){this.newStatus.poll=e},clearPollForm(){this.$refs.pollForm&&this.$refs.pollForm.clear()},dismissScopeNotice(){this.$store.dispatch("setOption",{name:"hideScopeNotice",value:!0})},setMediaDescription(e){const t=this.newStatus.mediaDescriptions[e];if(!(!t||t.trim()===""))return Uu.setMediaDescription({store:this.$store,id:e,description:t})},setAllMediaDescriptions(){const e=this.newStatus.files.map(t=>t.id);return Promise.all(e.map(t=>this.setMediaDescription(t)))},handleEmojiInputShow(e){this.emojiInputShown=e},updateIdempotencyKey(){this.idempotencyKey=Date.now().toString()},openProfileTab(){Xe().openSettingsModalTab("profile")},propsToNative(e){return nO(e)},saveDraft(){if(!this.disableDraft&&!this.saveInhibited){if(this.safeToSaveDraft)return this.$store.dispatch("addOrSaveDraft",{draft:this.newStatus}).then(e=>{this.newStatus.id!==e&&(this.newStatus.id=e),this.saveable=!1,this.shouldAutoSaveDraft||(this.clearStatus(),this.$emit("draft-done"))});if(this.hasEmptyDraft)return this.abandonDraft().then(()=>{this.saveable=!1,this.shouldAutoSaveDraft||(this.clearStatus(),this.$emit("draft-done"))})}return Promise.resolve()},maybeAutoSaveDraft(){this.shouldAutoSaveDraft&&this.saveDraft(!1)},abandonDraft(){return this.$store.dispatch("abandonDraft",{id:this.newStatus.id})},getDraft(e,t){const n=this.$store.state.drafts.drafts[this.draftId];if(this.draftId&&n)return n;{const s=this.$store.getters.draftsByTypeAndRefId(e,t);if(s.length)return s[0]}},requestClose(){this.saveable?this.$refs.draftCloser.requestClose():this.$emit("can-close")},saveAndCloseDraft(){this.saveDraft().then(()=>{this.$emit("can-close")})},discardAndCloseDraft(){this.abandonDraft().then(()=>{this.$emit("can-close")})},addBeforeUnloadListener(){this._beforeUnloadListener||(this._beforeUnloadListener=()=>{this.saveDraft()}),window.addEventListener("beforeunload",this._beforeUnloadListener)},removeBeforeUnloadListener(){this._beforeUnloadListener&&window.removeEventListener("beforeunload",this._beforeUnloadListener)}}},bde={ref:"form",class:"post-status-form"},yde={class:"form-group"},_de={key:1,class:"visibility-notice notice-dismissible"},wde=["title"],Sde={key:2,class:"visibility-notice notice-dismissible"},$de=["title"],kde={key:3,class:"visibility-notice notice-dismissible"},Cde=["title"],Tde={key:4,class:"visibility-notice"},Ade={key:0},Ede={key:1},Ide={key:5,class:"visibility-notice edit-warning"},Pde={key:6,class:"preview-heading faint"},Lde={class:"preview-spinner"},Ode={key:0,role:"radiogroup",class:"btn-group reply-or-quote-selector"},Rde=["id","aria-labelledby","aria-checked"],Mde=["id","aria-labelledby","aria-checked"],Nde={key:7,class:"preview-container"},Fde={key:0,class:"preview-status"},Dde={key:1,class:"preview-status preview-error"},Ude={class:"input inputs-wrapper"},jde=["placeholder","disabled"],Bde=["placeholder","disabled"],zde={key:8,class:"visibility-tray"},qde={key:1,class:"text-format"},Hde=["value"],Vde={key:2,class:"text-format"},Wde={class:"only-format"},Gde={key:1,class:"auto-save-status"},Kde={ref:"bottom",class:"form-bottom"},xde={class:"form-bottom-left"},Yde=["title"],Xde={class:"btn-group post-button-group"},Jde=["disabled"],Zde={class:"dropdown-menu",role:"menu"},Qde=["disabled","onClick"],efe={key:2,class:"alert error"},tfe={key:4,class:"upload_settings"};function nfe(e,t,n,s,r,o){const i=O("i18n-t"),a=O("FAIcon"),c=O("StatusContent"),u=O("EmojiInput"),f=O("scope-selector"),h=O("Select"),v=O("poll-form"),y=O("media-upload"),S=O("Popover"),k=O("gallery"),I=O("Checkbox"),C=O("DraftCloser");return p(),b("div",bde,[g("form",{autocomplete:"off",onSubmit:t[27]||(t[27]=Te(()=>{},["prevent"])),onDragover:t[28]||(t[28]=Te((...$)=>e.fileDrag&&e.fileDrag(...$),["prevent"]))},[g("div",yde,[!e.$store.state.users.currentUser.locked&&e.newStatus.visibility=="private"&&!e.disableLockWarning?(p(),Y(i,{key:0,keypath:"post_status.account_not_locked_warning",tag:"p",class:"visibility-notice",scope:"global"},{default:X(()=>[g("button",{class:"button-unstyled -link",onClick:t[0]||(t[0]=(...$)=>e.openProfileTab&&e.openProfileTab(...$))},w(e.$t("post_status.account_not_locked_warning_link")),1)]),_:1})):E("",!0),!e.hideScopeNotice&&e.newStatus.visibility==="public"?(p(),b("p",_de,[g("span",null,w(e.$t("post_status.scope_notice.public")),1),g("a",{class:"fa-scale-110 fa-old-padding dismiss",title:e.$t("post_status.scope_notice_dismiss"),role:"button",tabindex:"0",onClick:t[1]||(t[1]=Te($=>e.dismissScopeNotice(),["prevent"]))},[T(a,{icon:"times"})],8,wde)])):!e.hideScopeNotice&&e.newStatus.visibility==="unlisted"?(p(),b("p",Sde,[g("span",null,w(e.$t("post_status.scope_notice.unlisted")),1),g("a",{class:"fa-scale-110 fa-old-padding dismiss",title:e.$t("post_status.scope_notice_dismiss"),role:"button",tabindex:"0",onClick:t[2]||(t[2]=Te($=>e.dismissScopeNotice(),["prevent"]))},[T(a,{icon:"times"})],8,$de)])):!e.hideScopeNotice&&e.newStatus.visibility==="private"&&e.$store.state.users.currentUser.locked?(p(),b("p",kde,[g("span",null,w(e.$t("post_status.scope_notice.private")),1),g("a",{class:"fa-scale-110 fa-old-padding dismiss",title:e.$t("post_status.scope_notice_dismiss"),role:"button",tabindex:"0",onClick:t[3]||(t[3]=Te($=>e.dismissScopeNotice(),["prevent"]))},[T(a,{icon:"times"})],8,Cde)])):e.newStatus.visibility==="direct"?(p(),b("p",Tde,[e.safeDMEnabled?(p(),b("span",Ade,w(e.$t("post_status.direct_warning_to_first_only")),1)):(p(),b("span",Ede,w(e.$t("post_status.direct_warning_to_all")),1))])):E("",!0),e.isEdit?(p(),b("div",Ide,[g("p",null,w(e.$t("post_status.edit_remote_warning")),1),g("p",null,w(e.$t("post_status.edit_unsupported_warning")),1)])):E("",!0),e.disablePreview?E("",!0):(p(),b("div",Pde,[g("a",{class:"preview-toggle faint",onClick:t[4]||(t[4]=Te((...$)=>e.togglePreview&&e.togglePreview(...$),["stop","prevent"]))},[de(w(e.$t("post_status.preview"))+" ",1),T(a,{icon:e.showPreview?"chevron-left":"chevron-right"},null,8,["icon"])]),at(g("div",Lde,[T(a,{class:"fa-old-padding",spin:"",icon:"circle-notch"})],512),[[Cr,e.previewLoading]]),e.quotable?(p(),b("div",Ode,[g("button",{id:`reply-or-quote-option-${e.randomSeed}-reply`,class:he(["btn button-default reply-or-quote-option",{toggled:!e.newStatus.quoting}]),tabindex:"0",role:"radio","aria-labelledby":`reply-or-quote-option-${e.randomSeed}-reply`,"aria-checked":!e.newStatus.quoting,onClick:t[5]||(t[5]=$=>e.newStatus.quoting=!1)},w(e.$t("post_status.reply_option")),11,Rde),g("button",{id:`reply-or-quote-option-${e.randomSeed}-quote`,class:he(["btn button-default reply-or-quote-option",{toggled:e.newStatus.quoting}]),tabindex:"0",role:"radio","aria-labelledby":`reply-or-quote-option-${e.randomSeed}-quote`,"aria-checked":e.newStatus.quoting,onClick:t[6]||(t[6]=$=>e.newStatus.quoting=!0)},w(e.$t("post_status.quote_option")),11,Mde)])):E("",!0)])),e.showPreview?(p(),b("div",Nde,[e.preview?e.preview.error?(p(),b("div",Dde,w(e.preview.error),1)):(p(),Y(c,{key:2,status:e.preview,class:"preview-status"},null,8,["status"])):(p(),b("div",Fde,w(e.$t("general.loading")),1))])):E("",!0),g("div",Ude,[!e.disableSubject&&(e.newStatus.spoilerText||e.alwaysShowSubject)?(p(),Y(u,{key:0,modelValue:e.newStatus.spoilerText,"onUpdate:modelValue":t[8]||(t[8]=$=>e.newStatus.spoilerText=$),"enable-emoji-picker":"",suggest:e.emojiSuggestor,class:"input form-control subject-input unstyled"},{default:X($=>[at(g("input",An({"onUpdate:modelValue":t[7]||(t[7]=P=>e.newStatus.spoilerText=P),type:"text",placeholder:e.$t("post_status.content_warning"),disabled:e.posting&&!e.optimisticPosting},e.propsToNative($),{size:"1",class:"input form-post-subject unstyled"}),null,16,jde),[[Nt,e.newStatus.spoilerText]])]),_:1},8,["modelValue","suggest"])):E("",!0),T(u,{ref:"emoji-input",modelValue:e.newStatus.status,"onUpdate:modelValue":t[16]||(t[16]=$=>e.newStatus.status=$),suggest:e.emojiUserSuggestor,placement:e.emojiPickerPlacement,class:"input form-control main-input unstyled","enable-sticker-picker":"","enable-emoji-picker":"","newline-on-ctrl-enter":e.submitOnEnter,onInput:e.onEmojiInputInput,onStickerUploaded:e.addMediaFile,onStickerUploadFailed:e.uploadFailed,onShown:e.handleEmojiInputShow},{default:X($=>[at(g("textarea",An({ref:"textarea","onUpdate:modelValue":t[9]||(t[9]=P=>e.newStatus.status=P),placeholder:e.placeholder||e.$t("post_status.default"),rows:"1",cols:"1",disabled:e.posting&&!e.optimisticPosting,class:["input form-post-body",{"scrollable-form":!!e.maxHeight}]},e.propsToNative($),{onKeydown:[t[10]||(t[10]=zo(Te(P=>e.submitOnEnter&&e.postStatus(P,e.newStatus),["exact"]),["enter"])),t[11]||(t[11]=zo(Te(P=>e.postStatus(P,e.newStatus),["meta"]),["enter"])),t[12]||(t[12]=zo(Te(P=>!e.submitOnEnter&&e.postStatus(P,e.newStatus),["ctrl"]),["enter"]))],onInput:t[13]||(t[13]=(...P)=>e.resize&&e.resize(...P)),onCompositionupdate:t[14]||(t[14]=(...P)=>e.resize&&e.resize(...P)),onPaste:t[15]||(t[15]=(...P)=>e.paste&&e.paste(...P))}),null,16,Bde),[[Nt,e.newStatus.status]]),e.hasStatusLengthLimit?(p(),b("p",{key:0,class:he(["character-counter faint",{error:e.isOverLengthLimit}])},w(e.charactersLeft),3)):E("",!0)]),_:1},8,["modelValue","suggest","placement","newline-on-ctrl-enter","onInput","onStickerUploaded","onStickerUploadFailed","onShown"])]),e.disableScopeSelector?E("",!0):(p(),b("div",zde,[e.disableVisibilitySelector?E("",!0):(p(),Y(f,{key:0,"show-all":e.showAllScopes,"user-default":e.userDefaultScope,"original-scope":e.copyMessageScope,"initial-scope":e.newStatus.visibility,"on-scope-change":e.changeVis},null,8,["show-all","user-default","original-scope","initial-scope","on-scope-change"])),e.postFormats.length>1?(p(),b("div",qde,[T(h,{modelValue:e.newStatus.contentType,"onUpdate:modelValue":t[17]||(t[17]=$=>e.newStatus.contentType=$),class:"input form-control unstyled",attrs:{"aria-label":e.$t("post_status.content_type_selection")},unstyled:"true"},{default:X(()=>[(p(!0),b(Se,null,We(e.postFormats,$=>(p(),b("option",{key:$,value:$},w(e.$t(`post_status.content_type["${$}"]`)),9,Hde))),128))]),_:1},8,["modelValue","attrs"])])):E("",!0),e.postFormats.length===1&&e.postFormats[0]!=="text/plain"?(p(),b("div",Vde,[g("span",Wde,w(e.$t(`post_status.content_type["${e.postFormats[0]}"]`)),1)])):E("",!0)]))]),e.pollsAvailable?(p(),Y(v,{key:0,ref:"pollForm",visible:e.pollFormVisible,params:e.newStatus.poll},null,8,["visible","params"])):E("",!0),!e.disableDraft&&e.shouldAutoSaveDraft?(p(),b("span",Gde,w(e.autoSaveState),1)):E("",!0),g("div",Kde,[g("div",xde,[T(y,{ref:"mediaUpload",class:"media-upload-icon","drop-files":e.dropFiles,disabled:e.uploadFileLimitReached,onUploading:e.startedUploadingFiles,onUploaded:e.addMediaFile,onUploadFailed:e.uploadFailed,onAllUploaded:e.finishedUploadingFiles},null,8,["drop-files","disabled","onUploading","onUploaded","onUploadFailed","onAllUploaded"]),e.pollsAvailable?(p(),b("button",{key:0,class:he(["poll-icon button-unstyled",{selected:e.pollFormVisible}]),title:e.$t("polls.add_poll"),onClick:t[18]||(t[18]=(...$)=>e.togglePollForm&&e.togglePollForm(...$))},[T(a,{icon:"poll-h"})],10,Yde)):E("",!0)]),g("div",Xde,[g("button",{class:"btn button-default post-button",disabled:e.isOverLengthLimit||e.posting||e.uploadingFiles||e.disableSubmit,onClick:t[19]||(t[19]=Te($=>e.postStatus($,e.newStatus),["stop","prevent"]))},[e.posting?(p(),b(Se,{key:0},[de(w(e.$t("post_status.posting")),1)],64)):(p(),b(Se,{key:1},[de(w(e.$t("post_status.post")),1)],64))],8,Jde),e.hideExtraActions?E("",!0):(p(),Y(S,{key:0,class:"more-post-actions","normal-button":!0,trigger:"click",placement:"bottom",offset:{y:5},"trigger-attrs":{"aria-label":e.$t("post_status.more_post_actions")}},{trigger:X(()=>[T(a,{class:"fa-scale-110 fa-old-padding",icon:"chevron-down"})]),content:X(({close:$})=>[g("div",Zde,[g("div",{class:he(["menu-item dropdown-item",{disabled:!e.safeToSaveDraft}])},[!e.hideDraft||!e.disableDraft?(p(),b("button",{key:0,class:"main-button",role:"menu",disabled:!e.safeToSaveDraft,onClick:[t[20]||(t[20]=Te((...P)=>e.saveDraft&&e.saveDraft(...P),["prevent"])),$]},[e.closeable?(p(),b(Se,{key:0},[de(w(e.$t("post_status.save_to_drafts_and_close_button")),1)],64)):(p(),b(Se,{key:1},[de(w(e.$t("post_status.save_to_drafts_button")),1)],64))],8,Qde)):E("",!0)],2)])]),_:1},8,["trigger-attrs"]))])],512),at(g("div",{style:hn({animation:e.showDropIcon==="show"?"fade-in 0.25s":"fade-out 0.5s"}),class:"drop-indicator",onDragleave:t[21]||(t[21]=(...$)=>e.fileDragStop&&e.fileDragStop(...$)),onDrop:t[22]||(t[22]=Te((...$)=>e.fileDrop&&e.fileDrop(...$),["stop"]))},[T(a,{icon:e.uploadFileLimitReached?"ban":"upload"},null,8,["icon"])],36),[[Cr,e.showDropIcon!=="hide"]]),e.error?(p(),b("div",efe,[de(" Error: "+w(e.error)+" ",1),g("button",{class:"button-unstyled",onClick:t[23]||(t[23]=(...$)=>e.clearError&&e.clearError(...$))},[T(a,{class:"fa-scale-110 fa-old-padding",icon:"times"})])])):E("",!0),e.newStatus.files&&e.newStatus.files.length>0?(p(),Y(k,{key:3,class:"attachments",grid:!0,nsfw:!1,attachments:e.newStatus.files,descriptions:e.newStatus.mediaDescriptions,"set-media":()=>e.setMedia(),editable:!0,"edit-attachment":e.editAttachment,"remove-attachment":e.removeMediaFile,"shift-up-attachment":e.newStatus.files.length>1&&e.shiftUpMediaFile,"shift-dn-attachment":e.newStatus.files.length>1&&e.shiftDnMediaFile,onPlay:t[24]||(t[24]=$=>e.$emit("mediaplay",e.attachment.id)),onPause:t[25]||(t[25]=$=>e.$emit("mediapause",e.attachment.id))},null,8,["attachments","descriptions","set-media","edit-attachment","remove-attachment","shift-up-attachment","shift-dn-attachment"])):E("",!0),e.newStatus.files.length>0&&!e.disableSensitivityCheckbox?(p(),b("div",tfe,[T(I,{modelValue:e.newStatus.nsfw,"onUpdate:modelValue":t[26]||(t[26]=$=>e.newStatus.nsfw=$)},{default:X(()=>[de(w(e.$t("post_status.attachments_sensitive")),1)]),_:1},8,["modelValue"])])):E("",!0)],32),T(C,{ref:"draftCloser",onSave:e.saveAndCloseDraft,onDiscard:e.discardAndCloseDraft},null,8,["onSave","onDiscard"])],512)}const lc=ge(vde,[["render",nfe]]);var Cb,zT;function sO(){if(zT)return Cb;zT=1;var e=Wa(),t=function(){try{var n=e(Object,"defineProperty");return n({},"",{}),n}catch{}}();return Cb=t,Cb}var Tb,qT;function tm(){if(qT)return Tb;qT=1;var e=sO();function t(n,s,r){s=="__proto__"&&e?e(n,s,{configurable:!0,enumerable:!0,value:r,writable:!0}):n[s]=r}return Tb=t,Tb}var Ab,HT;function rO(){if(HT)return Ab;HT=1;var e=tm(),t=_d();function n(s,r,o){(o!==void 0&&!t(s[r],o)||o===void 0&&!(r in s))&&e(s,r,o)}return Ab=n,Ab}var mu={exports:{}};mu.exports;var VT;function sfe(){return VT||(VT=1,function(e,t){var n=oo(),s=t&&!t.nodeType&&t,r=s&&!0&&e&&!e.nodeType&&e,o=r&&r.exports===s,i=o?n.Buffer:void 0,a=i?i.allocUnsafe:void 0;function c(u,f){if(f)return u.slice();var h=u.length,v=a?a(h):new u.constructor(h);return u.copy(v),v}e.exports=c}(mu,mu.exports)),mu.exports}var Eb,WT;function rfe(){if(WT)return Eb;WT=1;var e=IP();function t(n){var s=new n.constructor(n.byteLength);return new e(s).set(new e(n)),s}return Eb=t,Eb}var Ib,GT;function ofe(){if(GT)return Ib;GT=1;var e=rfe();function t(n,s){var r=s?e(n.buffer):n.buffer;return new n.constructor(r,n.byteOffset,n.length)}return Ib=t,Ib}var Pb,KT;function ife(){if(KT)return Pb;KT=1;function e(t,n){var s=-1,r=t.length;for(n||(n=Array(r));++s<r;)n[s]=t[s];return n}return Pb=e,Pb}var Lb,xT;function afe(){if(xT)return Lb;xT=1;var e=Ki(),t=Object.create,n=function(){function s(){}return function(r){if(!e(r))return{};if(t)return t(r);s.prototype=r;var o=new s;return s.prototype=void 0,o}}();return Lb=n,Lb}var Ob,YT;function oO(){if(YT)return Ob;YT=1;var e=CP(),t=e(Object.getPrototypeOf,Object);return Ob=t,Ob}var Rb,XT;function lfe(){if(XT)return Rb;XT=1;var e=afe(),t=oO(),n=Up();function s(r){return typeof r.constructor=="function"&&!n(r)?e(t(r)):{}}return Rb=s,Rb}var Mb,JT;function cfe(){if(JT)return Mb;JT=1;var e=Va(),t=Ha();function n(s){return t(s)&&e(s)}return Mb=n,Mb}var Nb,ZT;function ufe(){if(ZT)return Nb;ZT=1;var e=ac(),t=oO(),n=Ha(),s="[object Object]",r=Function.prototype,o=Object.prototype,i=r.toString,a=o.hasOwnProperty,c=i.call(Object);function u(f){if(!n(f)||e(f)!=s)return!1;var h=t(f);if(h===null)return!0;var v=a.call(h,"constructor")&&h.constructor;return typeof v=="function"&&v instanceof v&&i.call(v)==c}return Nb=u,Nb}var Fb,QT;function iO(){if(QT)return Fb;QT=1;function e(t,n){if(!(n==="constructor"&&typeof t[n]=="function")&&n!="__proto__")return t[n]}return Fb=e,Fb}var Db,e6;function dfe(){if(e6)return Db;e6=1;var e=tm(),t=_d(),n=Object.prototype,s=n.hasOwnProperty;function r(o,i,a){var c=o[i];(!(s.call(o,i)&&t(c,a))||a===void 0&&!(i in o))&&e(o,i,a)}return Db=r,Db}var Ub,t6;function ffe(){if(t6)return Ub;t6=1;var e=dfe(),t=tm();function n(s,r,o,i){var a=!o;o||(o={});for(var c=-1,u=r.length;++c<u;){var f=r[c],h=i?i(o[f],s[f],f,o,s):void 0;h===void 0&&(h=s[f]),a?t(o,f,h):e(o,f,h)}return o}return Ub=n,Ub}var jb,n6;function hfe(){if(n6)return jb;n6=1;function e(t){var n=[];if(t!=null)for(var s in Object(t))n.push(s);return n}return jb=e,jb}var Bb,s6;function pfe(){if(s6)return Bb;s6=1;var e=Ki(),t=Up(),n=hfe(),s=Object.prototype,r=s.hasOwnProperty;function o(i){if(!e(i))return n(i);var a=t(i),c=[];for(var u in i)u=="constructor"&&(a||!r.call(i,u))||c.push(u);return c}return Bb=o,Bb}var zb,r6;function aO(){if(r6)return zb;r6=1;var e=kP(),t=pfe(),n=Va();function s(r){return n(r)?e(r,!0):t(r)}return zb=s,zb}var qb,o6;function mfe(){if(o6)return qb;o6=1;var e=ffe(),t=aO();function n(s){return e(s,t(s))}return qb=n,qb}var Hb,i6;function gfe(){if(i6)return Hb;i6=1;var e=rO(),t=sfe(),n=ofe(),s=ife(),r=lfe(),o=Np(),i=Qs(),a=cfe(),c=Fp(),u=jp(),f=Ki(),h=ufe(),v=Dp(),y=iO(),S=mfe();function k(I,C,$,P,A,R,B){var N=y(I,$),W=y(C,$),V=B.get(W);if(V){e(I,$,V);return}var U=R?R(N,W,$+"",I,C,B):void 0,ie=U===void 0;if(ie){var le=i(W),Pe=!le&&c(W),qe=!le&&!Pe&&v(W);U=W,le||Pe||qe?i(N)?U=N:a(N)?U=s(N):Pe?(ie=!1,U=t(W,!0)):qe?(ie=!1,U=n(W,!0)):U=[]:h(W)||o(W)?(U=N,o(N)?U=S(N):(!f(N)||u(N))&&(U=r(W))):ie=!1}ie&&(B.set(W,U),A(U,W,P,R,B),B.delete(W)),e(I,$,U)}return Hb=k,Hb}var Vb,a6;function vfe(){if(a6)return Vb;a6=1;var e=m2(),t=rO(),n=SP(),s=gfe(),r=Ki(),o=aO(),i=iO();function a(c,u,f,h,v){c!==u&&n(u,function(y,S){if(v||(v=new e),r(y))s(c,u,S,f,a,h,v);else{var k=h?h(i(c,S),y,S+"",c,u,v):void 0;k===void 0&&(k=y),t(c,S,k)}},o)}return Vb=a,Vb}var Wb,l6;function bfe(){if(l6)return Wb;l6=1;function e(t,n,s){switch(s.length){case 0:return t.call(n);case 1:return t.call(n,s[0]);case 2:return t.call(n,s[0],s[1]);case 3:return t.call(n,s[0],s[1],s[2])}return t.apply(n,s)}return Wb=e,Wb}var Gb,c6;function yfe(){if(c6)return Gb;c6=1;var e=bfe(),t=Math.max;function n(s,r,o){return r=t(r===void 0?s.length-1:r,0),function(){for(var i=arguments,a=-1,c=t(i.length-r,0),u=Array(c);++a<c;)u[a]=i[r+a];a=-1;for(var f=Array(r+1);++a<r;)f[a]=i[a];return f[r]=o(u),e(s,this,f)}}return Gb=n,Gb}var Kb,u6;function _fe(){if(u6)return Kb;u6=1;function e(t){return function(){return t}}return Kb=e,Kb}var xb,d6;function wfe(){if(d6)return xb;d6=1;var e=_fe(),t=sO(),n=y2(),s=t?function(r,o){return t(r,"toString",{configurable:!0,enumerable:!1,value:e(o),writable:!0})}:n;return xb=s,xb}var Yb,f6;function Sfe(){if(f6)return Yb;f6=1;var e=800,t=16,n=Date.now;function s(r){var o=0,i=0;return function(){var a=n(),c=t-(a-i);if(i=a,c>0){if(++o>=e)return arguments[0]}else o=0;return r.apply(void 0,arguments)}}return Yb=s,Yb}var Xb,h6;function $fe(){if(h6)return Xb;h6=1;var e=wfe(),t=Sfe(),n=t(e);return Xb=n,Xb}var Jb,p6;function kfe(){if(p6)return Jb;p6=1;var e=y2(),t=yfe(),n=$fe();function s(r,o){return n(t(r,o,e),r+"")}return Jb=s,Jb}var Zb,m6;function Cfe(){if(m6)return Zb;m6=1;var e=_d(),t=Va(),n=c2(),s=Ki();function r(o,i,a){if(!s(a))return!1;var c=typeof i;return(c=="number"?t(a)&&n(i,a.length):c=="string"&&i in a)?e(a[i],o):!1}return Zb=r,Zb}var Qb,g6;function Tfe(){if(g6)return Qb;g6=1;var e=kfe(),t=Cfe();function n(s){return e(function(r,o){var i=-1,a=o.length,c=a>1?o[a-1]:void 0,u=a>2?o[2]:void 0;for(c=s.length>3&&typeof c=="function"?(a--,c):void 0,u&&t(o[0],o[1],u)&&(c=a<3?void 0:c,a=1),r=Object(r);++i<a;){var f=o[i];f&&s(r,f,i,c)}return r})}return Qb=n,Qb}var e0,v6;function Afe(){if(v6)return e0;v6=1;var e=vfe(),t=Tfe(),n=t(function(s,r,o){e(s,r,o)});return e0=n,e0}var Efe=Afe();const Ife=bs(Efe);var t0,b6;function Pfe(){if(b6)return t0;b6=1;var e=g2();function t(n,s){return e(n,s)}return t0=t,t0}var Lfe=Pfe();const Ofe=bs(Lfe);var n0,y6;function Rfe(){if(y6)return n0;y6=1;function e(t){return function(n){return t==null?void 0:t[n]}}return n0=e,n0}var s0,_6;function Mfe(){if(_6)return s0;_6=1;var e=Rfe(),t={"&amp;":"&","&lt;":"<","&gt;":">","&quot;":'"',"&#39;":"'"},n=e(t);return s0=n,s0}var r0,w6;function Nfe(){if(w6)return r0;w6=1;var e=MP(),t=Mfe(),n=/&(?:amp|lt|gt|quot|#39);/g,s=RegExp(n.source);function r(o){return o=e(o),o&&s.test(o)?o.replace(n,t):o}return r0=r,r0}var Ffe=Nfe();const o0=bs(Ffe);et.add(aZ);const Dfe={components:{Checkbox:io},props:{name:{required:!0,type:String},label:{required:!0,type:String},unstyled:{required:!1,type:Boolean},modelValue:{required:!1,type:String,default:void 0},fallback:{required:!1,type:String,default:void 0},disabled:{required:!1,type:Boolean,default:!1},showOptionalCheckbox:{required:!1,type:Boolean,default:!0},hideOptionalCheckbox:{required:!1,type:Boolean,default:!1}},emits:["update:modelValue"],computed:{present(){return typeof this.modelValue<"u"},validColor(){return _p(this.modelValue||this.fallback)},transparentColor(){return this.modelValue==="transparent"},computedColor(){return this.modelValue&&(this.modelValue.startsWith("--")||this.modelValue.startsWith("$"))}},methods:{updateValue:Z.throttle(function(e){this.$emit("update:modelValue",e)},100)}},Ufe=["for"],jfe=["id","value","disabled"],Bfe={key:1,class:"transparentIndicator"},zfe={key:3,class:"invalidIndicator"},qfe={class:"nativeColor"},Hfe=["id","value","disabled"];function Vfe(e,t,n,s,r,o){const i=O("Checkbox"),a=O("FAIcon");return p(),b("div",{class:he(["color-input style-control",{disabled:!o.present||n.disabled}])},[g("label",{for:n.name,class:he(["label",{faint:!o.present||n.disabled}])},w(n.label),11,Ufe),typeof n.fallback<"u"&&n.showOptionalCheckbox&&!n.hideOptionalCheckbox?(p(),Y(i,{key:0,"model-value":o.present,disabled:n.disabled,class:"opt","onUpdate:modelValue":t[0]||(t[0]=c=>o.updateValue(typeof n.modelValue>"u"?n.fallback:void 0))},null,8,["model-value","disabled"])):E("",!0),g("div",{class:he(["input color-input-field",{disabled:!o.present||n.disabled,unstyled:n.unstyled}])},[g("input",{id:n.name+"-t",class:he(["textColor unstyled",{disabled:!o.present||n.disabled}]),type:"text",value:n.modelValue??n.fallback,disabled:!o.present||n.disabled,onInput:t[1]||(t[1]=c=>o.updateValue(c.target.value))},null,42,jfe),o.validColor?(p(),b("div",{key:0,class:"validIndicator",style:hn({backgroundColor:n.modelValue||n.fallback})},null,4)):o.transparentColor?(p(),b("div",Bfe)):o.computedColor?(p(),b("div",{key:2,class:"computedIndicator",style:hn({backgroundColor:n.fallback})},null,4)):(p(),b("div",zfe)),g("label",qfe,[T(a,{icon:"eye-dropper"}),g("input",{id:n.name,class:he(["unstyled",{disabled:!o.present||n.disabled}]),type:"color",value:n.modelValue||n.fallback,disabled:!o.present||n.disabled,onInput:t[2]||(t[2]=c=>o.updateValue(c.target.value))},null,42,Hfe)])],2)],2)}const Wfe=ge(Dfe,[["render",Vfe]]),Gfe={props:["user"],computed:{subscribeUrl(){const e=new URL(this.user.statusnet_profile_url);return`${e.protocol}//${e.host}/main/ostatus`}}},Kfe={class:"remote-follow"},xfe=["action"],Yfe=["value"],Xfe={click:"submit",class:"button-default remote-button"};function Jfe(e,t,n,s,r,o){return p(),b("div",Kfe,[g("form",{method:"POST",action:e.subscribeUrl},[g("input",{type:"hidden",name:"nickname",value:e.user.screen_name},null,8,Yfe),t[0]||(t[0]=g("input",{type:"hidden",name:"profile",value:""},null,-1)),g("button",Xfe,w(e.$t("user_card.remote_follow")),1)],8,xfe)])}const lO=ge(Gfe,[["render",Jfe]]),Zfe={props:{disabled:{type:Boolean},click:{type:Function,default:()=>Promise.resolve()}},data(){return{progress:!1}},methods:{onClick(){this.progress=!0,this.click().then(()=>{this.progress=!1})}}},Qfe=["disabled"];function ehe(e,t,n,s,r,o){return p(),b("button",{disabled:r.progress||n.disabled,onClick:t[0]||(t[0]=(...i)=>o.onClick&&o.onClick(...i))},[r.progress&&e.$slots.progress?Ot(e.$slots,"progress",{key:0}):Ot(e.$slots,"default",{key:1})],8,Qfe)}const cO=ge(Zfe,[["render",ehe]]),the={components:{DialogModal:Sd},props:{title:{type:String},cancelText:{type:String},confirmText:{type:String}},emits:["cancelled","accepted"],computed:{},methods:{onCancel(){this.$emit("cancelled")},onAccept(){this.$emit("accepted")}}},nhe=["textContent"],she=["textContent"],rhe=["textContent"];function ohe(e,t,n,s,r,o){const i=O("DialogModal"),a=sc("body-scroll-lock");return at((p(),Y(i,{class:"confirm-modal",onCancel:e.onCancel},{header:X(()=>[g("span",{textContent:w(e.title)},null,8,nhe)]),footer:X(()=>[Ot(e.$slots,"footerLeft"),g("button",{class:"btn button-default",onClick:t[0]||(t[0]=Te((...c)=>e.onAccept&&e.onAccept(...c),["prevent"])),textContent:w(e.confirmText)},null,8,she),g("button",{class:"btn button-default",onClick:t[1]||(t[1]=Te((...c)=>e.onCancel&&e.onCancel(...c),["prevent"])),textContent:w(e.cancelText)},null,8,rhe)]),default:X(()=>[Ot(e.$slots,"default")]),_:3},8,["onCancel"])),[[a,!0]])}const Nr=ge(the,[["render",ohe]]),uO=(e,t,n)=>new Promise((s,r)=>{setTimeout(()=>{n.state.api.backendInteractor.fetchUserRelationship({id:t}).then(o=>(n.commit("updateUserRelationship",[o]),o)).then(o=>s([o.following,o.requested,o.locked,e])).catch(o=>r(o))},500)}).then(([s,r,o,i])=>{!s&&!(o&&r)&&i<=3&&uO(++i,t,n)}),ihe=(e,t)=>new Promise(n=>{t.state.api.backendInteractor.followUser({id:e}).then(s=>{if(t.commit("updateUserRelationship",[s]),s.following||s.locked&&s.requested){n();return}return uO(1,s,t).then(()=>{n()})})}),ahe=(e,t)=>new Promise(n=>{t.state.api.backendInteractor.unfollowUser({id:e}).then(s=>{t.commit("updateUserRelationship",[s]),n({updated:s})})}),lhe={props:["relationship","user","labelFollowing","buttonClass"],components:{ConfirmModal:Nr},data(){return{inProgress:!1,showingConfirmUnfollow:!1}},computed:{shouldConfirmUnfollow(){return this.$store.getters.mergedConfig.modalOnUnfollow},isPressed(){return this.inProgress||this.relationship.following},title(){return this.inProgress||this.relationship.following?this.$t("user_card.follow_unfollow"):this.relationship.requested?this.$t("user_card.follow_cancel"):this.$t("user_card.follow")},label(){return this.inProgress?this.$t("user_card.follow_progress"):this.relationship.following?this.labelFollowing||this.$t("user_card.following"):this.relationship.requested?this.$t("user_card.follow_sent"):this.$t("user_card.follow")},disabled(){return this.inProgress||this.user.deactivated}},methods:{showConfirmUnfollow(){this.showingConfirmUnfollow=!0},hideConfirmUnfollow(){this.showingConfirmUnfollow=!1},onClick(){this.relationship.following||this.relationship.requested?this.unfollow():this.follow()},follow(){this.inProgress=!0,ihe(this.relationship.id,this.$store).then(()=>{this.inProgress=!1})},unfollow(){this.shouldConfirmUnfollow?this.showConfirmUnfollow():this.doUnfollow()},doUnfollow(){const e=this.$store;this.inProgress=!0,ahe(this.relationship.id,e).then(()=>{this.inProgress=!1,e.commit("removeStatus",{timeline:"friends",userId:this.relationship.id})}),this.hideConfirmUnfollow()}}},che=["disabled","title"],uhe=["textContent"];function dhe(e,t,n,s,r,o){const i=O("i18n-t"),a=O("confirm-modal");return p(),b("button",{class:he(["btn button-default follow-button",{toggled:e.isPressed}]),disabled:e.disabled,title:e.title,onClick:t[0]||(t[0]=(...c)=>e.onClick&&e.onClick(...c))},[de(w(e.label)+" ",1),(p(),Y(Yn,{to:"#modal"},[e.showingConfirmUnfollow?(p(),Y(a,{key:0,title:e.$t("user_card.unfollow_confirm_title"),"confirm-text":e.$t("user_card.unfollow_confirm_accept_button"),"cancel-text":e.$t("user_card.unfollow_confirm_cancel_button"),onAccepted:e.doUnfollow,onCancelled:e.hideConfirmUnfollow},{default:X(()=>[T(i,{scope:"global",keypath:"user_card.unfollow_confirm",tag:"span"},{user:X(()=>[g("span",{textContent:w(e.user.screen_name_ui)},null,8,uhe)]),_:1})]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0)]))],10,che)}const dO=ge(lhe,[["render",dhe]]);et.add(za);const fhe="mrf_tag:media-force-nsfw",hhe="mrf_tag:media-strip",phe="mrf_tag:force-unlisted",mhe="mrf_tag:disable-remote-subscription",ghe="mrf_tag:disable-any-subscription",vhe="mrf_tag:sandbox",bhe="mrf_tag:quarantine",yhe={props:["user"],data(){return{tags:{FORCE_NSFW:fhe,STRIP_MEDIA:hhe,FORCE_UNLISTED:phe,DISABLE_REMOTE_SUBSCRIPTION:mhe,DISABLE_ANY_SUBSCRIPTION:ghe,SANDBOX:vhe,QUARANTINE:bhe},showDeleteUserDialog:!1,toggled:!1}},components:{DialogModal:Sd,Popover:Jn},computed:{tagsSet(){return new Set(this.user.tags)},canGrantRole(){return this.user.is_local&&!this.user.deactivated&&this.$store.state.users.currentUser.role==="admin"},canChangeActivationState(){return this.privileged("users_manage_activation_state")},canDeleteAccount(){return this.privileged("users_delete")},canUseTagPolicy(){return this.$store.state.instance.tagPolicyAvailable&&this.privileged("users_manage_tags")}},methods:{hasTag(e){return this.tagsSet.has(e)},privileged(e){return this.$store.state.users.currentUser.privileges.includes(e)},toggleTag(e){const t=this.$store;this.tagsSet.has(e)?t.state.api.backendInteractor.untagUser({user:this.user,tag:e}).then(n=>{n.ok&&t.commit("untagUser",{user:this.user,tag:e})}):t.state.api.backendInteractor.tagUser({user:this.user,tag:e}).then(n=>{n.ok&&t.commit("tagUser",{user:this.user,tag:e})})},toggleRight(e){const t=this.$store;this.user.rights[e]?t.state.api.backendInteractor.deleteRight({user:this.user,right:e}).then(n=>{n.ok&&t.commit("updateRight",{user:this.user,right:e,value:!1})}):t.state.api.backendInteractor.addRight({user:this.user,right:e}).then(n=>{n.ok&&t.commit("updateRight",{user:this.user,right:e,value:!0})})},toggleActivationStatus(){this.$store.dispatch("toggleActivationStatus",{user:this.user})},deleteUserDialog(e){this.showDeleteUserDialog=e},deleteUser(){const e=this.$store,t=this.user,{id:n,name:s}=t;e.state.api.backendInteractor.deleteUser({user:t}).then(()=>{this.$store.dispatch("markStatusesAsDeleted",i=>t.id===i.user.id);const r=this.$route.name==="external-user-profile"||this.$route.name==="user-profile",o=this.$route.params.name===s||this.$route.params.id===n;r&&o&&window.history.back()})},setToggled(e){this.toggled=e}}},_he={class:"dropdown-menu"},whe={class:"menu-item dropdown-item -icon-space"},She={class:"menu-item dropdown-item -icon-space"},$he={key:0,role:"separator",class:"dropdown-divider"},khe={key:1,class:"menu-item dropdown-item -icon-space"},Che={key:2,class:"menu-item dropdown-item -icon-space"},The={class:"menu-item dropdown-item -icon"},Ahe={class:"menu-item dropdown-item -icon"},Ehe={class:"menu-item dropdown-item -icon"},Ihe={class:"menu-item dropdown-item -icon"},Phe={key:0,class:"menu-item dropdown-item -icon"},Lhe={key:1,class:"menu-item dropdown-item -icon"},Ohe={key:2,class:"menu-item dropdown-item -icon"};function Rhe(e,t,n,s,r,o){const i=O("FAIcon"),a=O("Popover"),c=O("DialogModal");return p(),b("div",null,[T(a,{trigger:"click",class:"moderation-tools-popover",placement:"bottom",offset:{y:5},onShow:t[11]||(t[11]=u=>e.setToggled(!0)),onClose:t[12]||(t[12]=u=>e.setToggled(!1))},{content:X(()=>[g("div",_he,[e.canGrantRole?(p(),b(Se,{key:0},[g("div",whe,[g("button",{class:"main-button",onClick:t[0]||(t[0]=u=>e.toggleRight("admin"))},w(e.$t(e.user.rights.admin?"user_card.admin_menu.revoke_admin":"user_card.admin_menu.grant_admin")),1)]),g("div",She,[g("button",{class:"main-button",onClick:t[1]||(t[1]=u=>e.toggleRight("moderator"))},w(e.$t(e.user.rights.moderator?"user_card.admin_menu.revoke_moderator":"user_card.admin_menu.grant_moderator")),1)]),e.canChangeActivationState||e.canDeleteAccount?(p(),b("div",$he)):E("",!0)],64)):E("",!0),e.canChangeActivationState?(p(),b("div",khe,[g("button",{class:"main-button",onClick:t[2]||(t[2]=u=>e.toggleActivationStatus())},w(e.$t(e.user.deactivated?"user_card.admin_menu.activate_account":"user_card.admin_menu.deactivate_account")),1)])):E("",!0),e.canDeleteAccount?(p(),b("div",Che,[g("button",{class:"main-button",onClick:t[3]||(t[3]=u=>e.deleteUserDialog(!0))},w(e.$t("user_card.admin_menu.delete_account")),1)])):E("",!0),e.canUseTagPolicy?(p(),b(Se,{key:3},[t[15]||(t[15]=g("div",{role:"separator",class:"dropdown-divider"},null,-1)),g("div",The,[g("button",{class:"main-button",onClick:t[4]||(t[4]=u=>e.toggleTag(e.tags.FORCE_NSFW))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.hasTag(e.tags.FORCE_NSFW)}])},null,2),de(" "+w(e.$t("user_card.admin_menu.force_nsfw")),1)])]),g("div",Ahe,[g("button",{class:"main-button",onClick:t[5]||(t[5]=u=>e.toggleTag(e.tags.STRIP_MEDIA))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.hasTag(e.tags.STRIP_MEDIA)}])},null,2),de(" "+w(e.$t("user_card.admin_menu.strip_media")),1)])]),g("div",Ehe,[g("button",{class:"main-button",onClick:t[6]||(t[6]=u=>e.toggleTag(e.tags.FORCE_UNLISTED))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.hasTag(e.tags.FORCE_UNLISTED)}])},null,2),de(" "+w(e.$t("user_card.admin_menu.force_unlisted")),1)])]),g("div",Ihe,[g("button",{class:"main-button",onClick:t[7]||(t[7]=u=>e.toggleTag(e.tags.SANDBOX))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.hasTag(e.tags.SANDBOX)}])},null,2),de(" "+w(e.$t("user_card.admin_menu.sandbox")),1)])]),e.user.is_local?(p(),b("div",Phe,[g("button",{class:"main-button",onClick:t[8]||(t[8]=u=>e.toggleTag(e.tags.DISABLE_REMOTE_SUBSCRIPTION))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.hasTag(e.tags.DISABLE_REMOTE_SUBSCRIPTION)}])},null,2),de(" "+w(e.$t("user_card.admin_menu.disable_remote_subscription")),1)])])):E("",!0),e.user.is_local?(p(),b("div",Lhe,[g("button",{class:"main-button",onClick:t[9]||(t[9]=u=>e.toggleTag(e.tags.DISABLE_ANY_SUBSCRIPTION))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.hasTag(e.tags.DISABLE_ANY_SUBSCRIPTION)}])},null,2),de(" "+w(e.$t("user_card.admin_menu.disable_any_subscription")),1)])])):E("",!0),e.user.is_local?(p(),b("div",Ohe,[g("button",{class:"main-button",onClick:t[10]||(t[10]=u=>e.toggleTag(e.tags.QUARANTINE))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.hasTag(e.tags.QUARANTINE)}])},null,2),de(" "+w(e.$t("user_card.admin_menu.quarantine")),1)])])):E("",!0)],64)):E("",!0)])]),trigger:X(()=>[g("button",{class:he(["btn button-default btn-block moderation-tools-button",{toggled:e.toggled}])},[de(w(e.$t("user_card.admin_menu.moderation"))+" ",1),T(i,{icon:"chevron-down"})],2)]),_:1}),(p(),Y(Yn,{to:"#modal"},[e.showDeleteUserDialog?(p(),Y(c,{key:0,"on-cancel":e.deleteUserDialog.bind(this,!1)},{header:X(()=>[de(w(e.$t("user_card.admin_menu.delete_user")),1)]),footer:X(()=>[g("button",{class:"btn button-default",onClick:t[13]||(t[13]=u=>e.deleteUserDialog(!1))},w(e.$t("general.cancel")),1),g("button",{class:"btn button-default danger",onClick:t[14]||(t[14]=u=>e.deleteUser())},w(e.$t("user_card.admin_menu.delete_user")),1)]),default:X(()=>[g("p",null,w(e.$t("user_card.admin_menu.delete_user_confirmation")),1)]),_:1},8,["on-cancel"])):E("",!0)]))])}const Mhe=ge(yhe,[["render",Rhe]]);et.add(yd);const Nhe={props:["user"],data(){return{}},components:{DialogModal:Sd,Popover:Jn},created(){this.$store.dispatch("fetchUserInLists",this.user.id)},computed:{...sn(Fn,{allLists:e=>e.allLists}),inListsSet(){return new Set(this.user.inLists.map(e=>e.id))},lists(){return this.user.inLists?this.allLists.map(e=>({...e,inList:this.inListsSet.has(e.id)})):[]},triggerAttrs(){return{class:"menu-item dropdown-item -has-submenu"}}},methods:{toggleList(e){this.inListsSet.has(e)?Fn().removeListAccount({accountId:this.user.id,listId:e}).then(t=>{t.ok&&this.$store.dispatch("fetchUserInLists",this.user.id)}):Fn().addListAccount({accountId:this.user.id,listId:e}).then(t=>{t.ok&&this.$store.dispatch("fetchUserInLists",this.user.id)})},toggleRight(e){const t=this.$store;this.user.rights[e]?t.state.api.backendInteractor.deleteRight({user:this.user,right:e}).then(n=>{n.ok&&t.commit("updateRight",{user:this.user,right:e,value:!1})}):t.state.api.backendInteractor.addRight({user:this.user,right:e}).then(n=>{n.ok&&t.commit("updateRight",{user:this.user,right:e,value:!0})})},toggleActivationStatus(){this.$store.dispatch("toggleActivationStatus",{user:this.user})},deleteUserDialog(e){this.showDeleteUserDialog=e},deleteUser(){const e=this.$store,t=this.user,{id:n,name:s}=t;e.state.api.backendInteractor.deleteUser({user:t}).then(()=>{this.$store.dispatch("markStatusesAsDeleted",i=>t.id===i.user.id);const r=this.$route.name==="external-user-profile"||this.$route.name==="user-profile",o=this.$route.params.name===s||this.$route.params.id===n;r&&o&&window.history.back()})},setToggled(e){this.toggled=e}}},Fhe={class:"UserListMenu"},Dhe={class:"dropdown-menu"},Uhe=["onClick"],jhe={class:"main-button"};function Bhe(e,t,n,s,r,o){const i=O("FAIcon"),a=O("Popover");return p(),b("div",Fhe,[T(a,{trigger:"hover",placement:"right","trigger-attrs":e.triggerAttrs,"remove-padding":""},{content:X(()=>[g("div",Dhe,[(p(!0),b(Se,null,We(e.lists,c=>(p(),b("div",{key:c.id,class:"menu-item dropdown-item -icon"},[g("button",{class:"main-button",onClick:u=>e.toggleList(c.id)},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":c.inList}])},null,2),de(" "+w(c.title),1)],8,Uhe)]))),128))])]),trigger:X(()=>[g("span",jhe,[de(w(e.$t("lists.manage_lists"))+" ",1),T(i,{class:"chevron-icon",size:"lg",icon:"chevron-right"})])]),_:1},8,["trigger-attrs"])])}const zhe=ge(Nhe,[["render",Bhe]]),qhe={data(){const e=this.isMute?this.$store.getters.mergedConfig.onMuteDefaultAction:this.$store.getters.mergedConfig.onBlockDefaultAction,t=e==="ask",n={};if(t||e==="forever")n.expiration=14,n.expirationUnit="d",e==="forever"&&(n.forever=!0);else{const s=e.replace(/[0-9,.]+/,""),r=e.replace(/[^0-9,.]+/,"");n.expiration=r,n.expirationUnit=s}return{showing:!1,forever:!1,dontAskAgain:!1,...n}},components:{ConfirmModal:Nr,Select:Zi,Checkbox:io},props:{isMute:Boolean,user:Object},computed:{shouldConfirm(){return this.isMute?this.$store.getters.mergedConfig.onMuteDefaultAction==="ask":this.$store.getters.mergedConfig.onBlockDefaultAction==="ask"},expiryString(){return this.expiration.toString()+this.expirationUnit},expirySeconds(){return Math.floor(XL(this.expiryString)/1e3)},requestBody(){const e={id:this.user.id};return this.forever||(e.expiresIn=this.expirySeconds),e}},watch:{expiration(e){e<=0&&(this.expiration=1)}},methods:{optionallyPrompt(){this.shouldConfirm?this.showing=!0:this.accept()},accept(){this.isMute?(this.$store.dispatch("muteUser",this.requestBody),this.dontAskAgain&&this.$store.dispatch("setOption",{name:"onMuteDefaultAction",value:this.expiryString})):(this.$store.dispatch("blockUser",this.requestBody),this.dontAskAgain&&this.$store.dispatch("setOption",{name:"onBlockDefaultAction",value:this.expiryString})),this.showing=!1},cancel(){this.showing=!1}}},Hhe=["disabled"],Vhe={key:"s",value:"s"},Whe={key:"m",value:"m"},Ghe={key:"h",value:"h"},Khe={key:"d",value:"d"},xhe={class:"footer-left-checkbox"};function Yhe(e,t,n,s,r,o){const i=O("Select"),a=O("Checkbox"),c=O("confirm-modal");return e.showing?(p(),Y(c,{key:0,class:"UserTimedFilterModal",title:e.$t(e.isMute?e.$t("user_card.mute"):e.$t("user_card.block")),"confirm-text":e.$t(e.isMute?"user_card.mute_confirm_accept_button":"user_card.block_confirm_accept_button"),"cancel-text":e.$t(e.isMute?"user_card.mute_confirm_cancel_button":"user_card.block_confirm_cancel_button"),onAccepted:e.accept,onCancelled:e.cancel},{footerLeft:X(()=>[g("div",xhe,[T(a,{id:"dontAskAgain",modelValue:e.dontAskAgain,"onUpdate:modelValue":t[3]||(t[3]=u=>e.dontAskAgain=u),name:"dontAskAgain",class:"input-dont-ask-again"},{default:X(()=>[de(w(e.$t(e.isMute?"user_card.dont_ask_again_mute":"user_card.dont_ask_again_block")),1)]),_:1},8,["modelValue"])])]),default:X(()=>[g("p",null,w(e.$t(e.isMute?"user_card.expire_mute_message":"user_card.expire_block_message",[e.user.screen_name])),1),g("p",null,[de(w(e.$t("user_card.expire_in"))+" ",1),at(g("input",{id:"userFilterExpires","onUpdate:modelValue":t[0]||(t[0]=u=>e.expiration=u),class:he(["input input-expire-in",{disabled:e.forever}]),disabled:e.forever,min:"1",type:"number"},null,10,Hhe),[[Nt,e.expiration]]),T(i,{id:"userFilterExpiresUnit",modelValue:e.expirationUnit,"onUpdate:modelValue":t[1]||(t[1]=u=>e.expirationUnit=u),class:"input unit-input unstyled",disabled:e.forever},{default:X(()=>[g("option",Vhe,w(e.$t("time.unit.seconds_suffix")),1),g("option",Whe,w(e.$t("time.unit.minutes_suffix")),1),g("option",Ghe,w(e.$t("time.unit.hours_suffix")),1),g("option",Khe,w(e.$t("time.unit.days_suffix")),1)]),_:1},8,["modelValue","disabled"]),de(" "+w(e.$t("user_card.mute_or"))+" ",1),T(a,{id:"forever",modelValue:e.forever,"onUpdate:modelValue":t[2]||(t[2]=u=>e.forever=u),name:"forever",class:"input-forever"},{default:X(()=>[de(w(e.$t("user_card.mute_block_never")),1)]),_:1},8,["modelValue"])])]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0)}const z2=ge(qhe,[["render",Yhe]]);et.add(iZ);const Xhe={props:["user","relationship"],data(){return{showingConfirmBlock:!1,showingConfirmRemoveFollower:!1}},components:{ProgressButton:cO,Popover:Jn,UserListMenu:zhe,ConfirmModal:Nr,UserTimedFilterModal:z2},methods:{showConfirmRemoveUserFromFollowers(){this.showingConfirmRemoveFollower=!0},hideConfirmRemoveUserFromFollowers(){this.showingConfirmRemoveFollower=!1},showRepeats(){this.$store.dispatch("showReblogs",this.user.id)},hideRepeats(){this.$store.dispatch("hideReblogs",this.user.id)},blockUser(){this.$refs.timedBlockDialog?this.$refs.timedBlockDialog.optionallyPrompt():this.shouldConfirmBlock?this.showingConfirmBlock=!0:this.doBlockUser()},doBlockUser(){this.$store.dispatch("blockUser",this.user.id),this.hideConfirmBlock()},unblockUser(){this.$store.dispatch("unblockUser",this.user.id)},removeUserFromFollowers(){this.shouldConfirmRemoveUserFromFollowers?this.showConfirmRemoveUserFromFollowers():this.doRemoveUserFromFollowers()},doRemoveUserFromFollowers(){this.$store.dispatch("removeUserFromFollowers",this.user.id),this.hideConfirmRemoveUserFromFollowers()},reportUser(){qi().openUserReportingModal({userId:this.user.id})},openChat(){this.$router.push({name:"chat",params:{username:this.$store.state.users.currentUser.screen_name,recipient_id:this.user.id}})}},computed:{shouldConfirmBlock(){return this.$store.getters.mergedConfig.modalOnBlock},shouldConfirmRemoveUserFromFollowers(){return this.$store.getters.mergedConfig.modalOnRemoveUserFromFollowers},...mn({blockExpirationSupported:e=>e.instance.blockExpiration,pleromaChatMessagesAvailable:e=>e.instance.pleromaChatMessagesAvailable})}},Jhe={class:"AccountActions"},Zhe={class:"dropdown-menu"},Qhe={key:0,class:"menu-item dropdown-item"},epe={key:1,class:"menu-item dropdown-item"},tpe={key:1,class:"menu-item dropdown-item"},npe={class:"menu-item dropdown-item"},spe={class:"menu-item dropdown-item"},rpe={key:2,class:"menu-item dropdown-item"},ope={class:"button-unstyled ellipsis-button"},ipe=["textContent"],ape=["textContent"];function lpe(e,t,n,s,r,o){const i=O("UserListMenu"),a=O("FAIcon"),c=O("Popover"),u=O("i18n-t"),f=O("confirm-modal"),h=O("UserTimedFilterModal");return p(),b("div",Jhe,[T(c,{trigger:"click",placement:"bottom","remove-padding":""},{content:X(()=>[g("div",Zhe,[e.relationship.following?(p(),b(Se,{key:0},[e.relationship.showing_reblogs?(p(),b("div",Qhe,[g("button",{class:"main-button",onClick:t[0]||(t[0]=(...v)=>e.hideRepeats&&e.hideRepeats(...v))},w(e.$t("user_card.hide_repeats")),1)])):E("",!0),e.relationship.showing_reblogs?E("",!0):(p(),b("div",epe,[g("button",{class:"main-button",onClick:t[1]||(t[1]=(...v)=>e.showRepeats&&e.showRepeats(...v))},w(e.$t("user_card.show_repeats")),1)])),t[7]||(t[7]=g("div",{role:"separator",class:"dropdown-divider"},null,-1))],64)):E("",!0),T(i,{user:e.user},null,8,["user"]),e.relationship.followed_by?(p(),b("div",tpe,[g("button",{class:"main-button",onClick:t[2]||(t[2]=(...v)=>e.removeUserFromFollowers&&e.removeUserFromFollowers(...v))},w(e.$t("user_card.remove_follower")),1)])):E("",!0),g("div",npe,[e.relationship.blocking?(p(),b("button",{key:0,class:"main-button",onClick:t[3]||(t[3]=(...v)=>e.unblockUser&&e.unblockUser(...v))},w(e.$t("user_card.unblock")),1)):(p(),b("button",{key:1,class:"main-button",onClick:t[4]||(t[4]=(...v)=>e.blockUser&&e.blockUser(...v))},w(e.$t("user_card.block")),1))]),g("div",spe,[g("button",{class:"main-button",onClick:t[5]||(t[5]=(...v)=>e.reportUser&&e.reportUser(...v))},w(e.$t("user_card.report")),1)]),e.pleromaChatMessagesAvailable?(p(),b("div",rpe,[g("button",{class:"main-button",onClick:t[6]||(t[6]=(...v)=>e.openChat&&e.openChat(...v))},w(e.$t("user_card.message")),1)])):E("",!0)])]),trigger:X(()=>[g("button",ope,[T(a,{class:"icon",icon:"ellipsis-v"})])]),_:1}),(p(),Y(Yn,{to:"#modal"},[e.showingConfirmBlock&&!e.blockExpirationSupported?(p(),Y(f,{key:0,ref:"blockDialog",title:e.$t("user_card.block_confirm_title"),"confirm-text":e.$t("user_card.block_confirm_accept_button"),"cancel-text":e.$t("user_card.block_confirm_cancel_button"),onAccepted:e.doBlockUser,onCancelled:e.hideConfirmBlock},{default:X(()=>[T(u,{keypath:"user_card.block_confirm",tag:"span",scope:"global"},{user:X(()=>[g("span",{textContent:w(e.user.screen_name_ui)},null,8,ipe)]),_:1})]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0)])),(p(),Y(Yn,{to:"#modal"},[e.showingConfirmRemoveFollower?(p(),Y(f,{key:0,title:e.$t("user_card.remove_follower_confirm_title"),"confirm-text":e.$t("user_card.remove_follower_confirm_accept_button"),"cancel-text":e.$t("user_card.remove_follower_confirm_cancel_button"),onAccepted:e.doRemoveUserFromFollowers,onCancelled:e.hideConfirmRemoveUserFromFollowers},{default:X(()=>[T(u,{keypath:"user_card.remove_follower_confirm",tag:"span",scope:"global"},{user:X(()=>[g("span",{textContent:w(e.user.screen_name_ui)},null,8,ape)]),_:1})]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0),e.blockExpirationSupported?(p(),Y(h,{key:1,ref:"timedBlockDialog","is-mute":!1,user:e.user},null,8,["user"])):E("",!0)]))])}const cpe=ge(Xhe,[["render",lpe]]);et.add(Zs);const upe={},dpe={class:"panel-loading"},fpe={class:"loading-text"};function hpe(e,t,n,s,r,o){const i=O("FAIcon");return p(),b("div",dpe,[g("span",fpe,[T(i,{icon:"circle-notch",spin:"",size:"3x"}),de(" "+w(e.$t("general.loading")),1)])])}const fO=ge(upe,[["render",hpe]]),ppe={props:{user:Object,relationship:Object,editable:Boolean},components:{PanelLoading:fO},data(){return{localNote:this.relationship.note,editing:!1,frozen:!1}},watch:{relationship(){this.localNote=this.relationship.note}},methods:{startEditing(){this.localNote=this.relationship.note,this.editing=!0},finalizeEditing(){this.frozen=!0,this.$store.dispatch("editUserNote",{id:this.user.id,comment:this.localNote}).then(()=>{this.frozen=!1,this.editing=!1}).catch(()=>{this.frozen=!1,this.editing=!1})}}},mpe=["placeholder"],gpe={key:0,class:"overlay"};function vpe(e,t,n,s,r,o){const i=O("PanelLoading");return p(),b("div",{class:he(["user-note",{"-frozen":e.frozen}])},[g("h4",null,w(e.$t("user_card.personal_note")),1),at(g("textarea",{"onUpdate:modelValue":t[0]||(t[0]=a=>e.localNote=a),class:he(["input note-text",{unstyled:!e.editing}]),rows:"1",placeholder:e.$t("user_card.note_blank_click"),onFocus:t[1]||(t[1]=(...a)=>e.startEditing&&e.startEditing(...a)),onBlur:t[2]||(t[2]=(...a)=>e.finalizeEditing&&e.finalizeEditing(...a))},null,42,mpe),[[Nt,e.localNote]]),e.frozen?(p(),b("span",gpe,[T(i)])):E("",!0)],2)}const bpe=ge(ppe,[["render",vpe]]),ype={props:{user:Object,at:{type:Boolean,default:!0}},components:{UnicodeDomainIndicator:Zp},methods:{userProfileLink(e){return ao(e.id,e.screen_name,this.$store.state.instance.restrictedNicknames)}}},_pe=ype,wpe={class:"user-profile-link"};function Spe(e,t,n,s,r,o){const i=O("UnicodeDomainIndicator"),a=O("router-link");return p(),b("div",wpe,[T(a,{title:e.user.screen_name_ui,to:e.userProfileLink(e.user)},{default:X(()=>[Ot(e.$slots,"default",{},()=>[de(w(e.at?"@":"")+w(e.user.screen_name_ui),1),T(i,{user:e.user},null,8,["user"])])]),_:3},8,["title","to"])])}const $d=ge(_pe,[["render",Spe]]),nm=typeof window<"u"&&typeof window.document<"u",Er=nm?window:{},q2=nm?"ontouchstart"in Er.document.documentElement:!1,H2=nm?"PointerEvent"in Er:!1,Qi="cropper",kd=`${Qi}-canvas`,$pe=`${Qi}-crosshair`,kpe=`${Qi}-grid`,Cpe=`${Qi}-handle`,sm=`${Qi}-image`,Ii=`${Qi}-selection`,Tpe=`${Qi}-shade`,Ape=`${Qi}-viewer`,qh="select",hO="move",Ql="scale",zy="rotate",Hh="transform",$i="none",S6="n-resize",$6="e-resize",k6="s-resize",C6="w-resize",Qc="ne-resize",eu="nw-resize",tu="se-resize",nu="sw-resize",Epe="action",Ipe=q2?"touchend touchcancel":"mouseup",Ppe=q2?"touchmove":"mousemove",Lpe=q2?"touchstart":"mousedown",T6=H2?"pointerdown":Lpe,A6=H2?"pointermove":Ppe,E6=H2?"pointerup pointercancel":Ipe,I6="error",P6="keydown",Il="load",L6="wheel",ec="action",Da="actionend",Ope="actionmove",Ua="actionstart",Pi="change",qy="transform";function Rpe(e){return typeof e=="string"}const pO=Number.isNaN||Er.isNaN;function jt(e){return typeof e=="number"&&!pO(e)}function Os(e){return jt(e)&&e>0&&e<1/0}function Mpe(e){return typeof e>"u"}function mO(e){return typeof e=="object"&&e!==null}const{hasOwnProperty:Npe}=Object.prototype;function Vh(e){if(!mO(e))return!1;try{const{constructor:t}=e,{prototype:n}=t;return t&&n&&Npe.call(n,"isPrototypeOf")}catch{return!1}}function V2(e){return typeof e=="function"}function gO(e){return typeof e=="object"&&e!==null&&e.nodeType===1}const Fpe=/([a-z\d])([A-Z])/g;function O6(e){return String(e).replace(Fpe,"$1-$2").toLowerCase()}const Dpe=/-[A-z\d]/g;function R6(e){return e.replace(Dpe,t=>t.slice(1).toUpperCase())}const vO=/\s\s*/;function Dn(e,t,n,s){t.trim().split(vO).forEach(r=>{e.removeEventListener(r,n,s)})}function Vn(e,t,n,s){t.trim().split(vO).forEach(r=>{e.addEventListener(r,n,s)})}function M6(e,t,n,s){Vn(e,t,n,Object.assign(Object.assign({},s),{once:!0}))}const Upe={bubbles:!0,cancelable:!0,composed:!0};function jpe(e,t,n,s){return e.dispatchEvent(new CustomEvent(t,Object.assign(Object.assign(Object.assign({},Upe),{detail:n}),s)))}const N6=Promise.resolve();function Bpe(e,t){return t?N6.then(e?t.bind(e):t):N6}function F6(e){const{documentElement:t}=e.ownerDocument,n=e.getBoundingClientRect();return{left:n.left+(Er.pageXOffset-t.clientLeft),top:n.top+(Er.pageYOffset-t.clientTop)}}const zpe=/deg|g?rad|turn$/i;function i0(e){const t=parseFloat(e)||0;if(t!==0){const[n="rad"]=String(e).match(zpe)||[];switch(n.toLowerCase()){case"deg":return t/360*(Math.PI*2);case"grad":return t/400*(Math.PI*2);case"turn":return t*(Math.PI*2)}}return t}const D6="contain",qpe="cover";function oh(e,t=D6){const{aspectRatio:n}=e;let{width:s,height:r}=e;const o=Os(s),i=Os(r);if(o&&i){const a=r*n;t===D6&&a>s||t===qpe&&a<s?r=s/n:s=r*n}else o?r=s/n:i&&(s=r*n);return{width:s,height:r}}function bO(e,...t){if(t.length===0)return e;const[n,s,r,o,i,a]=e,[c,u,f,h,v,y]=t[0];return e=[n*c+r*u,s*c+o*u,n*f+r*h,s*f+o*h,n*v+r*y+i,s*v+o*y+a],bO(e,...t.slice(1))}var Hpe=":host([hidden]){display:none!important}";const Vpe=/left|top|width|height/i,U6="open",jf=new WeakMap,Bf=new WeakMap,j6=new Map,B6=Er.document&&Array.isArray(Er.document.adoptedStyleSheets)&&"replaceSync"in Er.CSSStyleSheet.prototype;class ei extends HTMLElement{get $sharedStyle(){return`${this.themeColor?`:host{--theme-color: ${this.themeColor};}`:""}${Hpe}`}constructor(){var t,n;super(),this.shadowRootMode=U6,this.slottable=!0;const s=(n=(t=Object.getPrototypeOf(this))===null||t===void 0?void 0:t.constructor)===null||n===void 0?void 0:n.$name;s&&j6.set(s,this.tagName.toLowerCase())}static get observedAttributes(){return["shadow-root-mode","slottable","theme-color"]}attributeChangedCallback(t,n,s){if(Object.is(s,n))return;const r=R6(t),o=this[r];let i=s;switch(typeof o){case"boolean":i=s!==null&&s!=="false";break;case"number":i=Number(s);break}switch(this[r]=i,t){case"theme-color":{const a=Bf.get(this),c=this.$sharedStyle;a&&c&&(B6?a.replaceSync(c):a.textContent=c);break}}}$propertyChangedCallback(t,n,s){if(!Object.is(s,n))switch(t=O6(t),typeof s){case"boolean":s===!0?this.hasAttribute(t)||this.setAttribute(t,""):this.removeAttribute(t);break;case"number":pO(s)?s="":s=String(s);default:s?this.getAttribute(t)!==s&&this.setAttribute(t,s):this.removeAttribute(t)}}connectedCallback(){Object.getPrototypeOf(this).constructor.observedAttributes.forEach(n=>{const s=R6(n);let r=this[s];Mpe(r)||this.$propertyChangedCallback(s,void 0,r),Object.defineProperty(this,s,{enumerable:!0,configurable:!0,get(){return r},set(o){const i=r;r=o,this.$propertyChangedCallback(s,i,o)}})});const t=this.attachShadow({mode:this.shadowRootMode||U6});if(this.shadowRoot||jf.set(this,t),Bf.set(this,this.$addStyles(this.$sharedStyle)),this.$style&&this.$addStyles(this.$style),this.$template){const n=document.createElement("template");n.innerHTML=this.$template,t.appendChild(n.content)}if(this.slottable){const n=document.createElement("slot");t.appendChild(n)}}disconnectedCallback(){Bf.has(this)&&Bf.delete(this),jf.has(this)&&jf.delete(this)}$getTagNameOf(t){var n;return(n=j6.get(t))!==null&&n!==void 0?n:t}$setStyles(t){return Object.keys(t).forEach(n=>{let s=t[n];jt(s)&&(s!==0&&Vpe.test(n)?s=`${s}px`:s=String(s)),this.style[n]=s}),this}$getShadowRoot(){return this.shadowRoot||jf.get(this)}$addStyles(t){let n;const s=this.$getShadowRoot();return B6?(n=new CSSStyleSheet,n.replaceSync(t),s.adoptedStyleSheets=s.adoptedStyleSheets.concat(n)):(n=document.createElement("style"),n.textContent=t,s.appendChild(n)),n}$emit(t,n,s){return jpe(this,t,n,s)}$nextTick(t){return Bpe(this,t)}static $define(t,n){mO(t)&&(n=t,t=""),t||(t=this.$name||this.name),t=O6(t),nm&&Er.customElements&&!Er.customElements.get(t)&&customElements.define(t,this,n)}}ei.$version="2.0.0";var Wpe=':host{display:block;min-height:100px;min-width:200px;overflow:hidden;position:relative;touch-action:none;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([background]){background-color:#fff;background-image:repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc),repeating-linear-gradient(45deg,#ccc 25%,transparent 0,transparent 75%,#ccc 0,#ccc);background-image:repeating-conic-gradient(#ccc 0 25%,#fff 0 50%);background-position:0 0,.5rem .5rem;background-size:1rem 1rem}:host([disabled]){pointer-events:none}:host([disabled]):after{bottom:0;content:"";cursor:not-allowed;display:block;left:0;pointer-events:none;position:absolute;right:0;top:0}';class W2 extends ei{constructor(){super(...arguments),this.$onPointerDown=null,this.$onPointerMove=null,this.$onPointerUp=null,this.$onWheel=null,this.$wheeling=!1,this.$pointers=new Map,this.$style=Wpe,this.$action=$i,this.background=!1,this.disabled=!1,this.scaleStep=.1,this.themeColor="#39f"}static get observedAttributes(){return super.observedAttributes.concat(["background","disabled","scale-step"])}connectedCallback(){super.connectedCallback(),this.disabled||this.$bind()}disconnectedCallback(){this.disabled||this.$unbind(),super.disconnectedCallback()}$propertyChangedCallback(t,n,s){if(!Object.is(s,n))switch(super.$propertyChangedCallback(t,n,s),t){case"disabled":s?this.$unbind():this.$bind();break}}$bind(){this.$onPointerDown||(this.$onPointerDown=this.$handlePointerDown.bind(this),Vn(this,T6,this.$onPointerDown)),this.$onPointerMove||(this.$onPointerMove=this.$handlePointerMove.bind(this),Vn(this.ownerDocument,A6,this.$onPointerMove)),this.$onPointerUp||(this.$onPointerUp=this.$handlePointerUp.bind(this),Vn(this.ownerDocument,E6,this.$onPointerUp)),this.$onWheel||(this.$onWheel=this.$handleWheel.bind(this),Vn(this,L6,this.$onWheel,{passive:!1,capture:!0}))}$unbind(){this.$onPointerDown&&(Dn(this,T6,this.$onPointerDown),this.$onPointerDown=null),this.$onPointerMove&&(Dn(this.ownerDocument,A6,this.$onPointerMove),this.$onPointerMove=null),this.$onPointerUp&&(Dn(this.ownerDocument,E6,this.$onPointerUp),this.$onPointerUp=null),this.$onWheel&&(Dn(this,L6,this.$onWheel,{capture:!0}),this.$onWheel=null)}$handlePointerDown(t){const{buttons:n,button:s,type:r}=t;if(this.disabled||(r==="pointerdown"&&t.pointerType==="mouse"||r==="mousedown")&&(jt(n)&&n!==1||jt(s)&&s!==0||t.ctrlKey))return;const{$pointers:o}=this;let i="";if(t.changedTouches)Array.from(t.changedTouches).forEach(({identifier:a,pageX:c,pageY:u})=>{o.set(a,{startX:c,startY:u,endX:c,endY:u})});else{const{pointerId:a=0,pageX:c,pageY:u}=t;o.set(a,{startX:c,startY:u,endX:c,endY:u})}o.size>1?i=Hh:gO(t.target)&&(i=t.target.action||t.target.getAttribute(Epe)||""),this.$emit(Ua,{action:i,relatedEvent:t})!==!1&&(t.preventDefault(),this.$action=i,this.style.willChange="transform")}$handlePointerMove(t){const{$action:n,$pointers:s}=this;if(this.disabled||n===$i||s.size===0||this.$emit(Ope,{action:n,relatedEvent:t})===!1)return;if(t.preventDefault(),t.changedTouches)Array.from(t.changedTouches).forEach(({identifier:o,pageX:i,pageY:a})=>{const c=s.get(o);c&&Object.assign(c,{endX:i,endY:a})});else{const{pointerId:o=0,pageX:i,pageY:a}=t,c=s.get(o);c&&Object.assign(c,{endX:i,endY:a})}const r={action:n,relatedEvent:t};if(n===Hh){const o=new Map(s);let i=0,a=0,c=0,u=0,f=t.pageX,h=t.pageY;s.forEach((S,k)=>{o.delete(k),o.forEach(I=>{let C=I.startX-S.startX,$=I.startY-S.startY,P=I.endX-S.endX,A=I.endY-S.endY,R=0,B=0,N=0,W=0;if(C===0?$<0?N=Math.PI*2:$>0&&(N=Math.PI):C>0?N=Math.PI/2+Math.atan($/C):C<0&&(N=Math.PI*1.5+Math.atan($/C)),P===0?A<0?W=Math.PI*2:A>0&&(W=Math.PI):P>0?W=Math.PI/2+Math.atan(A/P):P<0&&(W=Math.PI*1.5+Math.atan(A/P)),W>0||N>0){const V=W-N,U=Math.abs(V);U>i&&(i=U,c=V,f=(S.startX+I.startX)/2,h=(S.startY+I.startY)/2)}if(C=Math.abs(C),$=Math.abs($),P=Math.abs(P),A=Math.abs(A),C>0&&$>0?R=Math.sqrt(C*C+$*$):C>0?R=C:$>0&&(R=$),P>0&&A>0?B=Math.sqrt(P*P+A*A):P>0?B=P:A>0&&(B=A),R>0&&B>0){const V=(B-R)/R,U=Math.abs(V);U>a&&(a=U,u=V,f=(S.startX+I.startX)/2,h=(S.startY+I.startY)/2)}})});const v=i>0,y=a>0;v&&y?(r.rotate=c,r.scale=u,r.centerX=f,r.centerY=h):v?(r.action=zy,r.rotate=c,r.centerX=f,r.centerY=h):y?(r.action=Ql,r.scale=u,r.centerX=f,r.centerY=h):r.action=$i}else{const[o]=Array.from(s.values());Object.assign(r,o)}s.forEach(o=>{o.startX=o.endX,o.startY=o.endY}),r.action!==$i&&this.$emit(ec,r,{cancelable:!1})}$handlePointerUp(t){const{$action:n,$pointers:s}=this;if(!(this.disabled||n===$i)&&this.$emit(Da,{action:n,relatedEvent:t})!==!1){if(t.preventDefault(),t.changedTouches)Array.from(t.changedTouches).forEach(({identifier:r})=>{s.delete(r)});else{const{pointerId:r=0}=t;s.delete(r)}s.size===0&&(this.style.willChange="",this.$action=$i)}}$handleWheel(t){if(this.disabled||(t.preventDefault(),this.$wheeling))return;this.$wheeling=!0,setTimeout(()=>{this.$wheeling=!1},50);const s=(t.deltaY>0?-1:1)*this.scaleStep;this.$emit(ec,{action:Ql,scale:s,relatedEvent:t},{cancelable:!1})}$setAction(t){return Rpe(t)&&(this.$action=t),this}$toCanvas(t){return new Promise((n,s)=>{if(!this.isConnected){s(new Error("The current element is not connected to the DOM."));return}const r=document.createElement("canvas");let o=this.offsetWidth,i=this.offsetHeight,a=1;Vh(t)&&(Os(t.width)||Os(t.height))&&({width:o,height:i}=oh({aspectRatio:o/i,width:t.width,height:t.height}),a=o/this.offsetWidth),r.width=o,r.height=i;const c=this.querySelector(this.$getTagNameOf(sm));if(!c){n(r);return}c.$ready().then(u=>{const f=r.getContext("2d");if(f){const[h,v,y,S,k,I]=c.$getTransform();let C=k,$=I,P=u.naturalWidth,A=u.naturalHeight;a!==1&&(C*=a,$*=a,P*=a,A*=a);const R=P/2,B=A/2;f.fillStyle="transparent",f.fillRect(0,0,o,i),Vh(t)&&V2(t.beforeDraw)&&t.beforeDraw.call(this,f,r),f.save(),f.translate(R,B),f.transform(h,v,y,S,C,$),f.translate(-R,-B),f.drawImage(u,0,0,P,A),f.restore()}n(r)}).catch(s)})}}W2.$name=kd;W2.$version="2.0.0";var Gpe=":host{display:inline-block}img{display:block;height:100%;max-height:none!important;max-width:none!important;min-height:0!important;min-width:0!important;width:100%}";const z6=new WeakMap,q6=["alt","crossorigin","decoding","importance","loading","referrerpolicy","sizes","src","srcset"];class G2 extends ei{constructor(){super(...arguments),this.$matrix=[1,0,0,1,0,0],this.$onLoad=null,this.$onCanvasAction=null,this.$onCanvasActionEnd=null,this.$onCanvasActionStart=null,this.$actionStartTarget=null,this.$style=Gpe,this.$image=new Image,this.initialCenterSize="contain",this.rotatable=!1,this.scalable=!1,this.skewable=!1,this.slottable=!1,this.translatable=!1}set $canvas(t){z6.set(this,t)}get $canvas(){return z6.get(this)}static get observedAttributes(){return super.observedAttributes.concat(q6,["initial-center-size","rotatable","scalable","skewable","translatable"])}attributeChangedCallback(t,n,s){Object.is(s,n)||(super.attributeChangedCallback(t,n,s),q6.includes(t)&&this.$image.setAttribute(t,s))}$propertyChangedCallback(t,n,s){if(!Object.is(s,n))switch(super.$propertyChangedCallback(t,n,s),t){case"initialCenterSize":this.$nextTick(()=>{this.$center(s)});break}}connectedCallback(){super.connectedCallback();const{$image:t}=this,n=this.closest(this.$getTagNameOf(kd));n&&(this.$canvas=n,this.$setStyles({display:"block",position:"absolute"}),this.$onCanvasActionStart=s=>{var r,o;this.$actionStartTarget=(o=(r=s.detail)===null||r===void 0?void 0:r.relatedEvent)===null||o===void 0?void 0:o.target},this.$onCanvasActionEnd=()=>{this.$actionStartTarget=null},this.$onCanvasAction=this.$handleAction.bind(this),Vn(n,Ua,this.$onCanvasActionStart),Vn(n,Da,this.$onCanvasActionEnd),Vn(n,ec,this.$onCanvasAction)),this.$onLoad=this.$handleLoad.bind(this),Vn(t,Il,this.$onLoad),this.$getShadowRoot().appendChild(t)}disconnectedCallback(){const{$image:t,$canvas:n}=this;n&&(this.$onCanvasActionStart&&(Dn(n,Ua,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(Dn(n,Da,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(Dn(n,ec,this.$onCanvasAction),this.$onCanvasAction=null)),t&&this.$onLoad&&(Dn(t,Il,this.$onLoad),this.$onLoad=null),this.$getShadowRoot().removeChild(t),super.disconnectedCallback()}$handleLoad(){const{$image:t}=this;this.$setStyles({width:t.naturalWidth,height:t.naturalHeight}),this.$canvas&&this.$center(this.initialCenterSize)}$handleAction(t){if(this.hidden||!(this.rotatable||this.scalable||this.translatable))return;const{$canvas:n}=this,{detail:s}=t;if(s){const{relatedEvent:r}=s;let{action:o}=s;switch(o===Hh&&(!this.rotatable||!this.scalable)&&(this.rotatable?o=zy:this.scalable?o=Ql:o=$i),o){case hO:if(this.translatable){let i=null;r&&(i=r.target.closest(this.$getTagNameOf(Ii))),i||(i=n.querySelector(this.$getTagNameOf(Ii))),i&&i.multiple&&!i.active&&(i=n.querySelector(`${this.$getTagNameOf(Ii)}[active]`)),(!i||i.hidden||!i.movable||i.dynamic||!(this.$actionStartTarget&&i.contains(this.$actionStartTarget)))&&this.$move(s.endX-s.startX,s.endY-s.startY)}break;case zy:if(this.rotatable)if(r){const{x:i,y:a}=this.getBoundingClientRect();this.$rotate(s.rotate,r.clientX-i,r.clientY-a)}else this.$rotate(s.rotate);break;case Ql:if(this.scalable)if(r){const i=r.target.closest(this.$getTagNameOf(Ii));if(!i||!i.zoomable||i.zoomable&&i.dynamic){const{x:a,y:c}=this.getBoundingClientRect();this.$zoom(s.scale,r.clientX-a,r.clientY-c)}}else this.$zoom(s.scale);break;case Hh:if(this.rotatable&&this.scalable){const{rotate:i}=s;let{scale:a}=s;a<0?a=1/(1-a):a+=1;const c=Math.cos(i),u=Math.sin(i),[f,h,v,y]=[c*a,u*a,-u*a,c*a];if(r){const S=this.getBoundingClientRect(),k=r.clientX-S.x,I=r.clientY-S.y,[C,$,P,A]=this.$matrix,R=S.width/2,B=S.height/2,N=k-R,W=I-B,V=(N*A-P*W)/(C*A-P*$),U=(W*C-$*N)/(C*A-P*$);this.$transform(f,h,v,y,V*(1-f)+U*v,U*(1-y)+V*h)}else this.$transform(f,h,v,y,0,0)}break}}}$ready(t){const{$image:n}=this,s=new Promise((r,o)=>{const i=new Error("Failed to load the image source");if(n.complete)n.naturalWidth>0&&n.naturalHeight>0?r(n):o(i);else{const a=()=>{Dn(n,I6,c),r(n)},c=()=>{Dn(n,Il,a),o(i)};M6(n,Il,a),M6(n,I6,c)}});return V2(t)&&s.then(r=>(t(r),r)),s}$center(t){const{parentElement:n}=this;if(!n)return this;const s=n.getBoundingClientRect(),r=s.width,o=s.height,{x:i,y:a,width:c,height:u}=this.getBoundingClientRect(),f=i+c/2,h=a+u/2,v=s.x+r/2,y=s.y+o/2;if(this.$move(v-f,y-h),t&&(c!==r||u!==o)){const S=r/c,k=o/u;switch(t){case"cover":this.$scale(Math.max(S,k));break;case"contain":this.$scale(Math.min(S,k));break}}return this}$move(t,n=t){if(this.translatable&&jt(t)&&jt(n)){const[s,r,o,i]=this.$matrix,a=(t*i-o*n)/(s*i-o*r),c=(n*s-r*t)/(s*i-o*r);this.$translate(a,c)}return this}$moveTo(t,n=t){if(this.translatable&&jt(t)&&jt(n)){const[s,r,o,i]=this.$matrix,a=(t*i-o*n)/(s*i-o*r),c=(n*s-r*t)/(s*i-o*r);this.$setTransform(s,r,o,i,a,c)}return this}$rotate(t,n,s){if(this.rotatable){const r=i0(t),o=Math.cos(r),i=Math.sin(r),[a,c,u,f]=[o,i,-i,o];if(jt(n)&&jt(s)){const[h,v,y,S]=this.$matrix,{width:k,height:I}=this.getBoundingClientRect(),C=k/2,$=I/2,P=n-C,A=s-$,R=(P*S-y*A)/(h*S-y*v),B=(A*h-v*P)/(h*S-y*v);this.$transform(a,c,u,f,R*(1-a)-B*u,B*(1-f)-R*c)}else this.$transform(a,c,u,f,0,0)}return this}$zoom(t,n,s){if(!this.scalable||t===0)return this;if(t<0?t=1/(1-t):t+=1,jt(n)&&jt(s)){const[r,o,i,a]=this.$matrix,{width:c,height:u}=this.getBoundingClientRect(),f=c/2,h=u/2,v=n-f,y=s-h,S=(v*a-i*y)/(r*a-i*o),k=(y*r-o*v)/(r*a-i*o);this.$transform(t,0,0,t,S*(1-t),k*(1-t))}else this.$scale(t);return this}$scale(t,n=t){return this.scalable&&this.$transform(t,0,0,n,0,0),this}$skew(t,n=0){if(this.skewable){const s=i0(t),r=i0(n);this.$transform(1,Math.tan(r),Math.tan(s),1,0,0)}return this}$translate(t,n=t){return this.translatable&&jt(t)&&jt(n)&&this.$transform(1,0,0,1,t,n),this}$transform(t,n,s,r,o,i){return jt(t)&&jt(n)&&jt(s)&&jt(r)&&jt(o)&&jt(i)?this.$setTransform(bO(this.$matrix,[t,n,s,r,o,i])):this}$setTransform(t,n,s,r,o,i){if((this.rotatable||this.scalable||this.skewable||this.translatable)&&(Array.isArray(t)&&([t,n,s,r,o,i]=t),jt(t)&&jt(n)&&jt(s)&&jt(r)&&jt(o)&&jt(i))){const a=[...this.$matrix],c=[t,n,s,r,o,i];if(this.$emit(qy,{matrix:c,oldMatrix:a})===!1)return this;this.$matrix=c,this.style.transform=`matrix(${c.join(", ")})`}return this}$getTransform(){return this.$matrix.slice()}$resetTransform(){return this.$setTransform([1,0,0,1,0,0])}}G2.$name=sm;G2.$version="2.0.0";var Kpe=":host{display:block;height:0;left:0;outline:var(--theme-color) solid 1px;position:relative;top:0;width:0}:host([transparent]){outline-color:transparent}";const H6=new WeakMap;class K2 extends ei{constructor(){super(...arguments),this.$onCanvasChange=null,this.$onCanvasActionEnd=null,this.$onCanvasActionStart=null,this.$style=Kpe,this.x=0,this.y=0,this.width=0,this.height=0,this.slottable=!1,this.themeColor="rgba(0, 0, 0, 0.65)"}set $canvas(t){H6.set(this,t)}get $canvas(){return H6.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["height","width","x","y"])}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(kd));if(t){this.$canvas=t,this.style.position="absolute";const n=t.querySelector(this.$getTagNameOf(Ii));n&&(this.$onCanvasActionStart=s=>{n.hidden&&s.detail.action===qh&&(this.hidden=!1)},this.$onCanvasActionEnd=s=>{n.hidden&&s.detail.action===qh&&(this.hidden=!0)},this.$onCanvasChange=s=>{const{x:r,y:o,width:i,height:a}=s.detail;this.$change(r,o,i,a),(n.hidden||r===0&&o===0&&i===0&&a===0)&&(this.hidden=!0)},Vn(t,Ua,this.$onCanvasActionStart),Vn(t,Da,this.$onCanvasActionEnd),Vn(t,Pi,this.$onCanvasChange))}this.$render()}disconnectedCallback(){const{$canvas:t}=this;t&&(this.$onCanvasActionStart&&(Dn(t,Ua,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(Dn(t,Da,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasChange&&(Dn(t,Pi,this.$onCanvasChange),this.$onCanvasChange=null)),super.disconnectedCallback()}$change(t,n,s=this.width,r=this.height){return!jt(t)||!jt(n)||!jt(s)||!jt(r)||t===this.x&&n===this.y&&s===this.width&&r===this.height?this:(this.hidden&&(this.hidden=!1),this.x=t,this.y=n,this.width=s,this.height=r,this.$render())}$reset(){return this.$change(0,0,0,0)}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height,outlineWidth:Er.innerWidth})}}K2.$name=Tpe;K2.$version="2.0.0";var xpe=':host{background-color:var(--theme-color);display:block}:host([action=move]),:host([action=select]){height:100%;left:0;position:absolute;top:0;width:100%}:host([action=move]){cursor:move}:host([action=select]){cursor:crosshair}:host([action$=-resize]){background-color:transparent;height:15px;position:absolute;width:15px}:host([action$=-resize]):after{background-color:var(--theme-color);content:"";display:block;height:5px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:5px}:host([action=n-resize]),:host([action=s-resize]){cursor:ns-resize;left:50%;transform:translateX(-50%);width:100%}:host([action=n-resize]){top:-8px}:host([action=s-resize]){bottom:-8px}:host([action=e-resize]),:host([action=w-resize]){cursor:ew-resize;height:100%;top:50%;transform:translateY(-50%)}:host([action=e-resize]){right:-8px}:host([action=w-resize]){left:-8px}:host([action=ne-resize]){cursor:nesw-resize;right:-8px;top:-8px}:host([action=nw-resize]){cursor:nwse-resize;left:-8px;top:-8px}:host([action=se-resize]){bottom:-8px;cursor:nwse-resize;right:-8px}:host([action=se-resize]):after{height:15px;width:15px}@media (pointer:coarse){:host([action=se-resize]):after{height:10px;width:10px}}@media (pointer:fine){:host([action=se-resize]):after{height:5px;width:5px}}:host([action=sw-resize]){bottom:-8px;cursor:nesw-resize;left:-8px}:host([plain]){background-color:transparent}';class x2 extends ei{constructor(){super(...arguments),this.$onCanvasCropEnd=null,this.$onCanvasCropStart=null,this.$style=xpe,this.action=$i,this.plain=!1,this.slottable=!1,this.themeColor="rgba(51, 153, 255, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["action","plain"])}}x2.$name=Cpe;x2.$version="2.0.0";var Ype=':host{display:block;left:0;position:relative;right:0}:host([outlined]){outline:1px solid var(--theme-color)}:host([multiple]){outline:1px dashed hsla(0,0%,100%,.5)}:host([multiple]):after{bottom:0;content:"";cursor:pointer;display:block;left:0;position:absolute;right:0;top:0}:host([multiple][active]){outline-color:var(--theme-color);z-index:1}:host([multiple])>*{visibility:hidden}:host([multiple][active])>*{visibility:visible}:host([multiple][active]):after{display:none}';const V6=new WeakMap;class Y2 extends ei{constructor(){super(...arguments),this.$onCanvasAction=null,this.$onCanvasActionStart=null,this.$onCanvasActionEnd=null,this.$onDocumentKeyDown=null,this.$action="",this.$actionStartTarget=null,this.$changing=!1,this.$style=Ype,this.$initialSelection={x:0,y:0,width:0,height:0},this.x=0,this.y=0,this.width=0,this.height=0,this.aspectRatio=NaN,this.initialAspectRatio=NaN,this.initialCoverage=NaN,this.active=!1,this.linked=!1,this.dynamic=!1,this.movable=!1,this.resizable=!1,this.zoomable=!1,this.multiple=!1,this.keyboard=!1,this.outlined=!1,this.precise=!1}set $canvas(t){V6.set(this,t)}get $canvas(){return V6.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["active","aspect-ratio","dynamic","height","initial-aspect-ratio","initial-coverage","keyboard","linked","movable","multiple","outlined","precise","resizable","width","x","y","zoomable"])}$propertyChangedCallback(t,n,s){if(!Object.is(s,n))switch(super.$propertyChangedCallback(t,n,s),t){case"x":case"y":case"width":case"height":this.$changing||this.$nextTick(()=>{this.$change(this.x,this.y,this.width,this.height,this.aspectRatio,!0)});break;case"aspectRatio":case"initialAspectRatio":this.$nextTick(()=>{this.$initSelection()});break;case"initialCoverage":this.$nextTick(()=>{Os(s)&&s<=1&&this.$initSelection(!0,!0)});break;case"keyboard":this.$nextTick(()=>{this.$canvas&&(s?this.$onDocumentKeyDown||(this.$onDocumentKeyDown=this.$handleKeyDown.bind(this),Vn(this.ownerDocument,P6,this.$onDocumentKeyDown)):this.$onDocumentKeyDown&&(Dn(this.ownerDocument,P6,this.$onDocumentKeyDown),this.$onDocumentKeyDown=null))});break;case"multiple":this.$nextTick(()=>{if(this.$canvas){const r=this.$getSelections();s?(r.forEach(o=>{o.active=!1}),this.active=!0,this.$emit(Pi,{x:this.x,y:this.y,width:this.width,height:this.height})):(this.active=!1,r.slice(1).forEach(o=>{this.$removeSelection(o)}))}});break;case"precise":this.$nextTick(()=>{this.$change(this.x,this.y)});break;case"linked":s&&(this.dynamic=!0);break}}connectedCallback(){super.connectedCallback();const t=this.closest(this.$getTagNameOf(kd));t?(this.$canvas=t,this.$setStyles({position:"absolute",transform:`translate(${this.x}px, ${this.y}px)`}),this.hidden||this.$render(),this.$initSelection(!0),this.$onCanvasActionStart=this.$handleActionStart.bind(this),this.$onCanvasActionEnd=this.$handleActionEnd.bind(this),this.$onCanvasAction=this.$handleAction.bind(this),Vn(t,Ua,this.$onCanvasActionStart),Vn(t,Da,this.$onCanvasActionEnd),Vn(t,ec,this.$onCanvasAction)):this.$render()}disconnectedCallback(){const{$canvas:t}=this;t&&(this.$onCanvasActionStart&&(Dn(t,Ua,this.$onCanvasActionStart),this.$onCanvasActionStart=null),this.$onCanvasActionEnd&&(Dn(t,Da,this.$onCanvasActionEnd),this.$onCanvasActionEnd=null),this.$onCanvasAction&&(Dn(t,ec,this.$onCanvasAction),this.$onCanvasAction=null)),super.disconnectedCallback()}$getSelections(){let t=[];return this.parentElement&&(t=Array.from(this.parentElement.querySelectorAll(this.$getTagNameOf(Ii)))),t}$initSelection(t=!1,n=!1){const{initialCoverage:s,parentElement:r}=this;if(Os(s)&&r){const o=this.aspectRatio||this.initialAspectRatio;let i=(n?0:this.width)||r.offsetWidth*s,a=(n?0:this.height)||r.offsetHeight*s;Os(o)&&({width:i,height:a}=oh({aspectRatio:o,width:i,height:a})),this.$change(this.x,this.y,i,a),t&&this.$center(),this.$initialSelection={x:this.x,y:this.y,width:this.width,height:this.height}}}$createSelection(){const t=this.cloneNode(!0);return this.hasAttribute("id")&&t.removeAttribute("id"),t.initialCoverage=NaN,this.active=!1,this.parentElement&&this.parentElement.insertBefore(t,this.nextSibling),t}$removeSelection(t=this){if(this.parentElement){const n=this.$getSelections();if(n.length>1){const s=n.indexOf(t),r=n[s+1]||n[s-1];r&&(t.active=!1,this.parentElement.removeChild(t),r.active=!0,r.$emit(Pi,{x:r.x,y:r.y,width:r.width,height:r.height}))}else this.$clear()}}$handleActionStart(t){var n,s;const r=(s=(n=t.detail)===null||n===void 0?void 0:n.relatedEvent)===null||s===void 0?void 0:s.target;this.$action="",this.$actionStartTarget=r,!this.hidden&&this.multiple&&!this.active&&r===this&&this.parentElement&&(this.$getSelections().forEach(o=>{o.active=!1}),this.active=!0,this.$emit(Pi,{x:this.x,y:this.y,width:this.width,height:this.height}))}$handleAction(t){const{currentTarget:n,detail:s}=t;if(!n||!s)return;const{relatedEvent:r}=s;let{action:o}=s;if(!o&&this.multiple&&(o=this.$action||(r==null?void 0:r.target.action),this.$action=o),!o||this.hidden&&o!==qh||this.multiple&&!this.active&&o!==Ql)return;const i=s.endX-s.startX,a=s.endY-s.startY,{width:c,height:u}=this;let{aspectRatio:f}=this;switch(!Os(f)&&r.shiftKey&&(f=Os(c)&&Os(u)?c/u:1),o){case qh:if(i!==0&&a!==0){const{$canvas:h}=this,v=F6(n);(this.multiple&&!this.hidden?this.$createSelection():this).$change(s.startX-v.left,s.startY-v.top,Math.abs(i),Math.abs(a),f),i<0?a<0?o=eu:a>0&&(o=nu):i>0&&(a<0?o=Qc:a>0&&(o=tu)),h&&(h.$action=o)}break;case hO:this.movable&&(this.dynamic||this.$actionStartTarget&&this.contains(this.$actionStartTarget))&&this.$move(i,a);break;case Ql:if(r&&this.zoomable&&(this.dynamic||this.contains(r.target))){const h=F6(n);this.$zoom(s.scale,r.pageX-h.left,r.pageY-h.top)}break;default:this.$resize(o,i,a,f)}}$handleActionEnd(){this.$action="",this.$actionStartTarget=null}$handleKeyDown(t){if(this.hidden||!this.keyboard||this.multiple&&!this.active||t.defaultPrevented)return;const{activeElement:n}=document;if(!(n&&(["INPUT","TEXTAREA"].includes(n.tagName)||["true","plaintext-only"].includes(n.contentEditable))))switch(t.key){case"Backspace":t.metaKey&&(t.preventDefault(),this.$removeSelection());break;case"Delete":t.preventDefault(),this.$removeSelection();break;case"ArrowLeft":t.preventDefault(),this.$move(-1,0);break;case"ArrowRight":t.preventDefault(),this.$move(1,0);break;case"ArrowUp":t.preventDefault(),this.$move(0,-1);break;case"ArrowDown":t.preventDefault(),this.$move(0,1);break;case"+":t.preventDefault(),this.$zoom(.1);break;case"-":t.preventDefault(),this.$zoom(-.1);break}}$center(){const{parentElement:t}=this;if(!t)return this;const n=(t.offsetWidth-this.width)/2,s=(t.offsetHeight-this.height)/2;return this.$change(n,s)}$move(t,n=t){return this.$moveTo(this.x+t,this.y+n)}$moveTo(t,n=t){return this.movable?this.$change(t,n):this}$resize(t,n=0,s=0,r=this.aspectRatio){if(!this.resizable)return this;const o=Os(r),{$canvas:i}=this;let{x:a,y:c,width:u,height:f}=this;switch(t){case S6:c+=s,f-=s,f<0&&(t=k6,f=-f,c-=f),o&&(n=s*r,a+=n/2,u-=n,u<0&&(u=-u,a-=u));break;case $6:u+=n,u<0&&(t=C6,u=-u,a-=u),o&&(s=n/r,c-=s/2,f+=s,f<0&&(f=-f,c-=f));break;case k6:f+=s,f<0&&(t=S6,f=-f,c-=f),o&&(n=s*r,a-=n/2,u+=n,u<0&&(u=-u,a-=u));break;case C6:a+=n,u-=n,u<0&&(t=$6,u=-u,a-=u),o&&(s=n/r,c+=s/2,f-=s,f<0&&(f=-f,c-=f));break;case Qc:o&&(s=-n/r),c+=s,f-=s,u+=n,u<0&&f<0?(t=nu,u=-u,f=-f,a-=u,c-=f):u<0?(t=eu,u=-u,a-=u):f<0&&(t=tu,f=-f,c-=f);break;case eu:o&&(s=n/r),a+=n,c+=s,u-=n,f-=s,u<0&&f<0?(t=tu,u=-u,f=-f,a-=u,c-=f):u<0?(t=Qc,u=-u,a-=u):f<0&&(t=nu,f=-f,c-=f);break;case tu:o&&(s=n/r),u+=n,f+=s,u<0&&f<0?(t=eu,u=-u,f=-f,a-=u,c-=f):u<0?(t=nu,u=-u,a-=u):f<0&&(t=Qc,f=-f,c-=f);break;case nu:o&&(s=-n/r),a+=n,u-=n,f+=s,u<0&&f<0?(t=Qc,u=-u,f=-f,a-=u,c-=f):u<0?(t=tu,u=-u,a-=u):f<0&&(t=eu,f=-f,c-=f);break}return i&&i.$setAction(t),this.$change(a,c,u,f)}$zoom(t,n,s){if(!this.zoomable||t===0)return this;t<0?t=1/(1-t):t+=1;const{width:r,height:o}=this,i=r*t,a=o*t;let c=this.x,u=this.y;return jt(n)&&jt(s)?(c-=(i-r)*((n-this.x)/r),u-=(a-o)*((s-this.y)/o)):(c-=(i-r)/2,u-=(a-o)/2),this.$change(c,u,i,a)}$change(t,n,s=this.width,r=this.height,o=this.aspectRatio,i=!1){return this.$changing||!jt(t)||!jt(n)||!jt(s)||!jt(r)||s<0||r<0?this:(Os(o)&&({width:s,height:r}=oh({aspectRatio:o,width:s,height:r},"cover")),this.precise||(t=Math.round(t),n=Math.round(n),s=Math.round(s),r=Math.round(r)),t===this.x&&n===this.y&&s===this.width&&r===this.height&&Object.is(o,this.aspectRatio)&&!i?this:(this.hidden&&(this.hidden=!1),this.$emit(Pi,{x:t,y:n,width:s,height:r})===!1?this:(this.$changing=!0,this.x=t,this.y=n,this.width=s,this.height=r,this.$changing=!1,this.$render())))}$reset(){const{x:t,y:n,width:s,height:r}=this.$initialSelection;return this.$change(t,n,s,r)}$clear(){return this.$change(0,0,0,0,NaN,!0),this.hidden=!0,this}$render(){return this.$setStyles({transform:`translate(${this.x}px, ${this.y}px)`,width:this.width,height:this.height})}$toCanvas(t){return new Promise((n,s)=>{if(!this.isConnected){s(new Error("The current element is not connected to the DOM."));return}const r=document.createElement("canvas");let{width:o,height:i}=this,a=1;if(Vh(t)&&(Os(t.width)||Os(t.height))&&({width:o,height:i}=oh({aspectRatio:o/i,width:t.width,height:t.height}),a=o/this.width),r.width=o,r.height=i,!this.$canvas){n(r);return}const c=this.$canvas.querySelector(this.$getTagNameOf(sm));if(!c){n(r);return}c.$ready().then(u=>{const f=r.getContext("2d");if(f){const[h,v,y,S,k,I]=c.$getTransform(),C=-this.x,$=-this.y,P=(C*S-y*$)/(h*S-y*v),A=($*h-v*C)/(h*S-y*v);let R=h*P+y*A+k,B=v*P+S*A+I,N=u.naturalWidth,W=u.naturalHeight;a!==1&&(R*=a,B*=a,N*=a,W*=a);const V=N/2,U=W/2;f.fillStyle="transparent",f.fillRect(0,0,o,i),Vh(t)&&V2(t.beforeDraw)&&t.beforeDraw.call(this,f,r),f.save(),f.translate(V,U),f.transform(h,v,y,S,R,B),f.translate(-V,-U),f.drawImage(u,0,0,N,W),f.restore()}n(r)}).catch(s)})}}Y2.$name=Ii;Y2.$version="2.0.0";var Xpe=":host{display:flex;flex-direction:column;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}:host([bordered]){border:1px dashed var(--theme-color)}:host([covered]){bottom:0;left:0;position:absolute;right:0;top:0}:host>span{display:flex;flex:1}:host>span+span{border-top:1px dashed var(--theme-color)}:host>span>span{flex:1}:host>span>span+span{border-left:1px dashed var(--theme-color)}";class X2 extends ei{constructor(){super(...arguments),this.$style=Xpe,this.bordered=!1,this.columns=3,this.covered=!1,this.rows=3,this.slottable=!1,this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["bordered","columns","covered","rows"])}$propertyChangedCallback(t,n,s){Object.is(s,n)||(super.$propertyChangedCallback(t,n,s),(t==="rows"||t==="columns")&&this.$nextTick(()=>{this.$render()}))}connectedCallback(){super.connectedCallback(),this.$render()}$render(){const t=this.$getShadowRoot(),n=document.createDocumentFragment();for(let s=0;s<this.rows;s+=1){const r=document.createElement("span");r.setAttribute("role","row");for(let o=0;o<this.columns;o+=1){const i=document.createElement("span");i.setAttribute("role","gridcell"),r.appendChild(i)}n.appendChild(r)}t&&(t.innerHTML="",t.appendChild(n))}}X2.$name=kpe;X2.$version="2.0.0";var Jpe=':host{display:inline-block;height:1em;position:relative;touch-action:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle;width:1em}:host:after,:host:before{background-color:var(--theme-color);content:"";display:block;position:absolute}:host:before{height:1px;left:0;top:50%;transform:translateY(-50%);width:100%}:host:after{height:100%;left:50%;top:0;transform:translateX(-50%);width:1px}:host([centered]){left:50%;position:absolute;top:50%;transform:translate(-50%,-50%)}';class J2 extends ei{constructor(){super(...arguments),this.$style=Jpe,this.centered=!1,this.slottable=!1,this.themeColor="rgba(238, 238, 238, 0.5)"}static get observedAttributes(){return super.observedAttributes.concat(["centered"])}}J2.$name=$pe;J2.$version="2.0.0";var Zpe=":host{display:block;height:100%;overflow:hidden;position:relative;width:100%}";const W6=new WeakMap,G6=new WeakMap,K6=new WeakMap,x6=new WeakMap,Qpe="both",eme="horizontal",Y6="vertical",tme="none";class Z2 extends ei{constructor(){super(...arguments),this.$onSelectionChange=null,this.$onSourceImageLoad=null,this.$onSourceImageTransform=null,this.$scale=1,this.$style=Zpe,this.resize=Y6,this.selection="",this.slottable=!1}set $image(t){G6.set(this,t)}get $image(){return G6.get(this)}set $sourceImage(t){x6.set(this,t)}get $sourceImage(){return x6.get(this)}set $canvas(t){W6.set(this,t)}get $canvas(){return W6.get(this)}set $selection(t){K6.set(this,t)}get $selection(){return K6.get(this)}static get observedAttributes(){return super.observedAttributes.concat(["resize","selection"])}connectedCallback(){super.connectedCallback();let t=null;if(this.selection?t=this.ownerDocument.querySelector(this.selection):t=this.closest(this.$getTagNameOf(Ii)),gO(t)){this.$selection=t,this.$onSelectionChange=this.$handleSelectionChange.bind(this),Vn(t,Pi,this.$onSelectionChange);const n=t.closest(this.$getTagNameOf(kd));if(n){this.$canvas=n;const s=n.querySelector(this.$getTagNameOf(sm));s&&(this.$sourceImage=s,this.$image=s.cloneNode(!0),this.$getShadowRoot().appendChild(this.$image),this.$onSourceImageLoad=this.$handleSourceImageLoad.bind(this),this.$onSourceImageTransform=this.$handleSourceImageTransform.bind(this),Vn(s.$image,Il,this.$onSourceImageLoad),Vn(s,qy,this.$onSourceImageTransform))}this.$render()}}disconnectedCallback(){const{$selection:t,$sourceImage:n}=this;t&&this.$onSelectionChange&&(Dn(t,Pi,this.$onSelectionChange),this.$onSelectionChange=null),n&&this.$onSourceImageLoad&&(Dn(n.$image,Il,this.$onSourceImageLoad),this.$onSourceImageLoad=null),n&&this.$onSourceImageTransform&&(Dn(n,qy,this.$onSourceImageTransform),this.$onSourceImageTransform=null),super.disconnectedCallback()}$handleSelectionChange(t){this.$render(t.detail)}$handleSourceImageLoad(){const{$image:t,$sourceImage:n}=this,s=t.getAttribute("src"),r=n.getAttribute("src");r&&r!==s&&(t.setAttribute("src",r),t.$ready(()=>{setTimeout(()=>{this.$render()},50)}))}$handleSourceImageTransform(t){this.$render(void 0,t.detail.matrix)}$render(t,n){const{$canvas:s,$selection:r}=this;!t&&!r.hidden&&(t=r),(!t||t.x===0&&t.y===0&&t.width===0&&t.height===0)&&(t={x:0,y:0,width:s.offsetWidth,height:s.offsetHeight});const{x:o,y:i,width:a,height:c}=t,u={},{clientWidth:f,clientHeight:h}=this;let v=f,y=h,S=NaN;switch(this.resize){case Qpe:S=1,v=a,y=c,u.width=a,u.height=c;break;case eme:S=c>0?h/c:0,v=a*S,u.width=v;break;case Y6:S=a>0?f/a:0,y=c*S,u.height=y;break;case tme:default:f>0?S=a>0?f/a:0:h>0&&(S=c>0?h/c:0)}this.$scale=S,this.$setStyles(u),this.$sourceImage&&this.$transformImageByOffset(n??this.$sourceImage.$getTransform(),-o,-i)}$transformImageByOffset(t,n,s){const{$image:r,$scale:o,$sourceImage:i}=this;if(i&&r&&o>=0){const[a,c,u,f,h,v]=t,y=(n*f-u*s)/(a*f-u*c),S=(s*a-c*n)/(a*f-u*c),k=a*y+u*S+h,I=c*y+f*S+v;r.$ready(C=>{this.$setStyles.call(r,{width:C.naturalWidth*o,height:C.naturalHeight*o})}),r.$setTransform(a,c,u,f,k*o,I*o)}}}Z2.$name=Ape;Z2.$version="2.0.0";/*! Cropper.js v2.0.0 | (c) 2015-present Chen Fengyuan | MIT */W2.$define();J2.$define();X2.$define();x2.$define();G2.$define();Y2.$define();K2.$define();Z2.$define();et.add(Zs);const nme={props:{mimes:{type:String,default:"image/png, image/gif, image/jpeg, image/bmp, image/x-icon"},aspectRatio:{type:Number}},data(){return{dataUrl:void 0,filename:void 0}},emits:["submit","close"],methods:{destroy(){this.$refs.input.value="",this.dataUrl=void 0,this.$emit("close")},submit(e=!0){let t;e?t=this.$refs.cropperSelection.$toCanvas():t=Promise.resolve(),t.then(n=>{this.$emit("submit",{canvas:n,file:this.file})})},pickImage(){this.$refs.input.click()},readFile(){const e=this.$refs.input;if(e.files!=null&&e.files[0]!=null){this.file=e.files[0];const t=new window.FileReader;t.onload=n=>{this.dataUrl=n.target.result,this.$emit("open")},t.readAsDataURL(this.file),this.$emit("changed",this.file,t)}},inSelection(e,t){return e.x>=t.x&&e.y>=t.y&&e.x+e.width<=t.x+t.width&&e.y+e.height<=t.y+t.height},onCropperSelectionChange(e){const n=this.$refs.cropperCanvas.getBoundingClientRect(),s=e.detail,r={x:0,y:0,width:n.width,height:n.height};this.inSelection(s,r)||e.preventDefault()}},mounted(){this.$refs.input.addEventListener("change",this.readFile)},beforeUnmount:function(){this.$refs.input.removeEventListener("change",this.readFile)}},sme={class:"image-cropper"},rme={class:"image"},ome={ref:"cropperCanvas",background:"",class:"image-cropper-canvas",height:"100%"},ime=["src"],ame=["aspect-ratio"],lme=["accept"];function cme(e,t,n,s,r,o){return p(),b("div",sme,[g("div",rme,[g("cropper-canvas",ome,[e.dataUrl?(p(),b("cropper-image",{key:0,ref:"cropperImage",src:e.dataUrl,alt:"Picture",class:"image-cropper-image",translatable:"",scalable:""},null,8,ime)):E("",!0),t[2]||(t[2]=g("cropper-shade",{hidden:""},null,-1)),t[3]||(t[3]=g("cropper-handle",{action:"select",plain:""},null,-1)),g("cropper-selection",{ref:"cropperSelection","initial-coverage":"0.9","aspect-ratio":e.aspectRatio,movable:"",resizable:"",onChange:t[0]||(t[0]=(...i)=>e.onCropperSelectionChange&&e.onCropperSelectionChange(...i))},[...t[1]||(t[1]=[g("cropper-grid",{role:"grid",covered:""},null,-1),g("cropper-crosshair",{centered:""},null,-1),g("cropper-handle",{action:"move","theme-color":"rgba(255, 255, 255, 0.35)"},null,-1),pj('<cropper-handle action="n-resize"></cropper-handle><cropper-handle action="e-resize"></cropper-handle><cropper-handle action="s-resize"></cropper-handle><cropper-handle action="w-resize"></cropper-handle><cropper-handle action="ne-resize"></cropper-handle><cropper-handle action="nw-resize"></cropper-handle><cropper-handle action="se-resize"></cropper-handle><cropper-handle action="sw-resize"></cropper-handle>',8)])],40,ame)],512)]),g("input",{ref:"input",type:"file",class:"input image-cropper-img-input",accept:e.mimes},null,8,lme)])}const ume=ge(nme,[["render",cme]]);et.add(ZJ,EZ,ic,uP,Q5,PJ,Xn,cP,tZ,lP);const dme={props:{editable:{required:!1,default:!1,type:Boolean},userId:{required:!0,type:String},hideBio:{required:!1,default:!1,type:Boolean},avatarAction:{required:!1,type:String,default:"default"},hasNoteEditor:{required:!1,type:Boolean,default:!1},showClose:{required:!1,type:Boolean,default:!1},showExpand:{required:!1,type:Boolean,default:!1}},components:{DialogModal:Sd,UserAvatar:er,Checkbox:io,RemoteFollow:lO,ModerationTools:Mhe,AccountActions:cpe,ProgressButton:cO,FollowButton:dO,Select:Zi,RichContent:Mr,UserLink:$d,UserNote:bpe,UserTimedFilterModal:z2,ColorInput:Wfe,EmojiInput:GL,ImageCropper:ume},data(){var t;const e=this.$store.getters.findUser(this.userId);return{followRequestInProgress:!1,muteExpiryAmount:0,muteExpiryUnit:"minutes",editImage:!1,newName:e.name_unescaped,editingName:!1,newBio:o0(e.description),editingBio:!1,newAvatar:null,newAvatarFile:null,newBanner:null,newBannerFile:null,newActorType:e.actor_type,newBirthday:e.birthday,newShowBirthday:e.show_birthday,newShowRole:e.show_role,newFields:(t=e.fields)==null?void 0:t.map(n=>({name:n.name,value:n.value})),editingFields:!1}},created(){this.$store.dispatch("fetchUserRelationship",this.user.id)},computed:{somethingToSave(){var e;return this.newName!==this.user.name_unescaped||this.newBio!==o0(this.user.description)||this.newAvatar!==null||this.newBanner!==null||this.newActorType!==this.user.actor_type||this.newBirthday!==this.user.birthday||this.newShowBirthday!==this.user.show_birthday||this.newShowRole!==this.user.show_role||!Ofe(this.newFields,(e=this.user.fields)==null?void 0:e.map(t=>({name:t.name,value:t.value})))},groupActorAvailable(){return this.$store.state.instance.groupActorAvailable},availableActorTypes(){return this.groupActorAvailable?["Person","Service","Group"]:["Person","Service"]},user(){return this.$store.getters.findUser(this.userId)},role(){return this.user.role},relationship(){return this.$store.getters.relationship(this.userId)},isOtherUser(){return this.user.id!==this.$store.state.users.currentUser.id},subscribeUrl(){const e=new URL(this.user.statusnet_profile_url);return`${e.protocol}//${e.host}/main/ostatus`},loggedIn(){return this.$store.state.users.currentUser},dailyAvg(){const e=Math.ceil((new Date-new Date(this.user.created_at))/864e5);return Math.round(this.user.statuses_count/e)},emoji(){return this.$store.state.instance.customEmoji.map(e=>({shortcode:e.displayText,static_url:e.imageUrl,url:e.imageUrl}))},userHighlightType:{get(){const e=this.$store.getters.mergedConfig.highlight[this.user.screen_name];return e&&e.type||"disabled"},set(e){const t=this.$store.getters.mergedConfig.highlight[this.user.screen_name];e!=="disabled"?this.$store.dispatch("setHighlight",{user:this.user.screen_name,color:t&&t.color||"#FFFFFF",type:e}):this.$store.dispatch("setHighlight",{user:this.user.screen_name,color:void 0})},...bn(["mergedConfig"])},userHighlightColor:{get(){const e=this.$store.getters.mergedConfig.highlight[this.user.screen_name];return e&&e.color},set(e){this.$store.dispatch("setHighlight",{user:this.user.screen_name,color:e})}},visibleRole(){if(!this.newShowRole)return;const e=this.user.rights;if(!e)return;const t=e.admin||e.moderator,n=e.admin?"admin":"moderator";return t&&n},hideFollowsCount(){return this.isOtherUser&&this.user.hide_follows_count},hideFollowersCount(){return this.isOtherUser&&this.user.hide_followers_count},showModerationMenu(){const e=this.loggedIn.privileges;return this.loggedIn.role==="admin"||e.includes("users_manage_activation_state")||e.includes("users_delete")||e.includes("users_manage_tags")},hasNote(){return this.relationship.note},supportsNote(){return"note"in this.relationship},muteExpiryAvailable(){return this.user.mute_expires_at!==void 0},muteExpiry(){return this.user.mute_expires_at==null?this.$t("user_card.mute_expires_forever"):this.$t("user_card.mute_expires_at",[new Date(this.user.mute_expires_at).toLocaleString()])},blockExpiryAvailable(){return this.user.block_expires_at!==void 0},blockExpiry(){return this.user.block_expires_at==null?this.$t("user_card.block_expires_forever"):this.$t("user_card.block_expires_at",[new Date(this.user.mute_expires_at).toLocaleString()])},formattedBirthday(){const e=Tr.internalToBrowserLocale(this.$i18n.locale);return this.user.birthday&&new Date(Date.parse(this.user.birthday)).toLocaleDateString(e,{timeZone:"UTC",day:"numeric",month:"long",year:"numeric"})},avatarImgSrc(){const e=this.user.profile_image_url_original||this.defaultAvatar;if(!this.editable)return e;const t=this.newAvatar===null?this.defaultAvatar:this.newAvatar;return this.newAvatar===null?e:t},bannerImgSrc(){const e=this.user.cover_photo||this.defaultBanner;if(!this.editable)return e;const t=this.newBanner===null?this.defaultBanner:this.newBanner;return this.newBanner===null?e:t},defaultAvatar(){return this.$store.state.instance.server+this.$store.state.instance.defaultAvatar},defaultBanner(){return this.$store.state.instance.server+this.$store.state.instance.defaultBanner},isDefaultAvatar(){const e=this.$store.state.instance.defaultAvatar;return!this.$store.state.users.currentUser.profile_image_url||this.$store.state.users.currentUser.profile_image_url.includes(e)},isDefaultBanner(){const e=this.$store.state.instance.defaultBanner;return!this.$store.state.users.currentUser.cover_photo||this.$store.state.users.currentUser.cover_photo.includes(e)},fieldsLimits(){return this.$store.state.instance.fieldsLimits},maxFields(){return this.fieldsLimits?this.fieldsLimits.maxFields:0},emojiUserSuggestor(){return zh({emoji:[...this.$store.getters.standardEmojiList,...this.$store.state.instance.customEmoji],store:this.$store})},emojiSuggestor(){return zh({emoji:[...this.$store.getters.standardEmojiList,...this.$store.state.instance.customEmoji]})},...bn(["mergedConfig"])},methods:{muteUser(){this.$refs.timedMuteDialog.optionallyPrompt()},unmuteUser(){this.$store.dispatch("unmuteUser",this.user.id)},subscribeUser(){return this.$store.dispatch("subscribeUser",this.user.id)},unsubscribeUser(){return this.$store.dispatch("unsubscribeUser",this.user.id)},linkClicked({target:e}){e.tagName==="SPAN"&&(e=e.parentNode),e.tagName==="A"&&window.open(e.href,"_blank")},userProfileLink(e){return ao(e.id,e.screen_name,this.$store.state.instance.restrictedNicknames)},openProfileTab(){Xe().openSettingsModalTab("profile")},zoomAvatar(){const e={url:this.user.profile_image_url_original,mimetype:"image"};hs().setMedia([e]),hs().setCurrentMedia(e)},mentionUser(){Ai().openPostStatusModal({profileMention:!0,repliedUser:this.user})},onAvatarClickHandler(e){this.onAvatarClick&&(e.preventDefault(),this.onAvatarClick())},changeAvatar(){this.editImage="avatar"},changeBanner(){this.editImage="banner"},submitImage({canvas:e,file:t}){if(e)return e.toBlob(s=>this.submitImage({canvas:null,file:s}));const n=new window.FileReader;n.onload=s=>{const r=s.target.result;this.editImage==="avatar"?(this.newAvatar=r,this.newAvatarFile=t):(this.newBanner=r,this.newBannerFile=t),this.editImage=!1},n.readAsDataURL(t)},resetImage(){this.editImage==="avatar"?(this.newAvatar=null,this.newAvatarFile=null):(this.newBanner=null,this.newBannerFile=null),this.editImage=!1},addField(){this.newFields.length<this.maxFields&&this.newFields.push({name:"",value:""})},deleteField(e){this.newFields.splice(e,1)},propsToNative(e){return nO(e)},cancelImageText(){},resetState(){const e=this.$store.state.users.currentUser;this.newName=e.name_unescaped,this.newBio=o0(e.description),this.newAvatar=null,this.newAvatarFile=null,this.newBanner=null,this.newBannerFile=null,this.newActorType=e.actor_type,this.newBirthday=e.birthday,this.newShowBirthday=e.show_birthday,this.newShowRole=e.show_role,this.newFields=e.fields.map(t=>({name:t.name,value:t.value}))},updateProfile(){const e={note:this.newBio,display_name:this.newName,fields_attributes:this.newFields.filter(t=>t!=null),show_role:!!this.newShowRole,birthday:this.newBirthday||"",show_birthday:!!this.newShowBirthday};this.actorType&&(e.actor_type=this.actorType),this.newAvatarFile!==null&&(e.avatar=this.newAvatarFile),this.newBannerFile!==null&&(e.header=this.newBannerFile),this.$store.state.api.backendInteractor.updateProfile({params:e}).then(t=>{this.newFields.splice(this.newFields.length),Ife(this.newFields,t.fields),this.$store.commit("addNewUsers",[t]),this.$store.commit("setCurrentUser",t),this.resetState()}).catch(t=>{this.displayUploadError(t)})},displayUploadError(e){Xe().pushGlobalNotice({messageKey:"upload.error.message",messageArgs:[e.message],level:"error"})}}},fme={class:"user-card"},hme={class:"user-card-inner"},pme={class:"user-info"},mme={class:"user-identity"},gme={class:"header-overlay"},vme={class:"banner-image"},bme=["src"],yme={class:"user-info-avatar -link -overlay"},_me={class:"user-info-avatar -link -overlay"},wme={class:"user-summary"},Sme={class:"top-line"},$me={class:"other-actions"},kme=["disabled"],Cme=["href"],Tme={class:"name-wrapper"},Ame=["title"],Eme={class:"bottom-line"},Ime={key:0,class:"lock-icon"},Pme={key:1,class:"alert neutral user-role"},Lme={key:0,class:"alert neutral user-role"},Ome={key:1,class:"alert neutral user-role"},Rme={key:2,class:"alert neutral user-role"},Mme={key:3,class:"alert user-role"},Nme={key:4,class:"alert neutral user-role"},Fme={key:5,class:"alert neutral user-role"},Dme={key:0,class:"user-interactions"},Ume={class:"btn-group"},jme=["disabled"],Bme=["disabled"],zme=["disabled"],qme={key:1,class:"user-interactions"},Hme={key:0,class:"personal-marks"},Vme={key:1,class:"highlighter"},Wme={value:"disabled"},Gme={value:"solid"},Kme={value:"striped"},xme={value:"side"},Yme={key:1},Xme=["rows"],Jme={key:4},Zme={key:0,class:"user-profile-fields"},Qme=["title"],ege=["title"],tge={key:0,class:"user-profile-fields"},nge={class:"user-profile-field-name -edit"},sge=["onUpdate:modelValue","placeholder"],rge={class:"user-profile-field-value -edit"},oge=["onUpdate:modelValue","placeholder"],ige=["onClick"],age={class:"label"},lge={key:7,class:"user-extras"},cge={key:0,class:"user-stats"},uge={key:0,class:"user-count"},dge={class:"user-count"},fge={class:"user-count"},hge={class:"user-count"},pge={key:0,class:"birthday"},mge={key:1,class:"birthday"},gge={key:0,class:"user-card-setting"},vge={class:"user-card-setting"},bge=["value"],yge={key:0},_ge={class:"bottom-buttons"},wge=["disabled"],Sge=["disabled"],$ge=["title"];function kge(e,t,n,s,r,o){const i=O("UserAvatar"),a=O("FAIcon"),c=O("router-link"),u=O("AccountActions"),f=O("RichContent"),h=O("EmojiInput"),v=O("UserLink"),y=O("FollowButton"),S=O("ProgressButton"),k=O("FALayers"),I=O("ModerationTools"),C=O("RemoteFollow"),$=O("UserNote"),P=O("Select"),A=O("ColorInput"),R=O("Checkbox"),B=O("UserTimedFilterModal"),N=O("image-cropper"),W=O("DialogModal");return p(),b("div",fme,[g("div",hme,[g("div",pme,[g("div",mme,[g("div",gme,[g("div",vme,[g("img",{src:e.bannerImgSrc,class:he({"hide-bio":e.hideBio})},null,10,bme)]),g("div",{class:he(["banner-overlay",{"hide-bio":e.hideBio}])},null,2)]),e.avatarAction==="zoom"?(p(),b("a",{key:0,class:"user-info-avatar -link",onClick:t[0]||(t[0]=(...V)=>e.zoomAvatar&&e.zoomAvatar(...V))},[T(i,{user:e.user},null,8,["user"]),g("div",yme,[T(a,{class:"fa-scale-110 fa-old-padding",icon:"search-plus"})])])):e.editable?(p(),b("button",{key:1,class:he(["user-info-avatar button-unstyled -link",{"-editable":e.editable}]),onClick:t[1]||(t[1]=(...V)=>e.changeAvatar&&e.changeAvatar(...V))},[T(i,{user:e.user,url:e.avatarImgSrc},null,8,["user","url"]),g("div",_me,[T(a,{class:"fa-scale-110 fa-old-padding",icon:"pencil"})])],2)):typeof e.avatarAction=="function"?(p(),Y(i,{key:2,class:"user-info-avatar",user:e.user,onClick:e.avatarAction},null,8,["user","onClick"])):(p(),Y(c,{key:3,class:"user-info-avatar",to:e.userProfileLink(e.user)},{default:X(()=>[T(i,{user:e.user},null,8,["user"])]),_:1},8,["to"])),g("div",wme,[g("div",Sme,[g("div",$me,[e.editable?(p(),b("button",{key:0,disabled:e.newName&&e.newName.length===0,class:"btn button-unstyled edit-banner-button",onClick:t[2]||(t[2]=(...V)=>e.changeBanner&&e.changeBanner(...V))},[de(w(e.$t("settings.change_banner"))+" ",1),T(a,{"fixed-width":"",class:"icon",icon:"pencil",title:e.$t("settings.change_banner")},null,8,["title"])],8,kme)):!e.editable&&!e.isOtherUser&&e.user.is_local?(p(),b("button",{key:1,class:"button-unstyled edit-profile-button",onClick:t[3]||(t[3]=Te((...V)=>e.openProfileTab&&e.openProfileTab(...V),["stop"]))},[T(a,{"fixed-width":"",class:"icon",icon:"edit",title:e.$t("user_card.edit_profile")},null,8,["title"])])):E("",!0),e.isOtherUser&&!e.user.is_local?(p(),b("a",{key:2,href:e.user.statusnet_profile_url,target:"_blank",class:"button-unstyled external-link-button"},[T(a,{class:"icon",icon:"external-link-alt"})],8,Cme)):E("",!0),e.isOtherUser&&e.loggedIn?(p(),Y(u,{key:3,user:e.user,relationship:e.relationship},null,8,["user","relationship"])):E("",!0),e.showExpand?(p(),Y(c,{key:4,to:e.userProfileLink(e.user),class:"button-unstyled external-link-button",onClick:t[4]||(t[4]=V=>e.$emit("close"))},{default:X(()=>[T(a,{class:"icon",icon:"expand-alt"})]),_:1},8,["to"])):E("",!0),e.showClose?(p(),b("button",{key:5,class:"button-unstyled external-link-button",onClick:t[5]||(t[5]=V=>e.$emit("close"))},[T(a,{class:"icon",icon:"times"})])):E("",!0)]),g("div",Tme,[!e.editable||!e.editingName?(p(),Y(c,{key:0,to:e.userProfileLink(e.user),class:"user-name"},{default:X(()=>[T(f,{title:e.editable?e.newName:e.user.name_unescaped,html:e.editable?e.newName:e.user.name_unescaped,emoji:e.editable?e.emoji:e.user.emoji},null,8,["title","html","emoji"])]),_:1},8,["to"])):e.editingName?(p(),Y(h,{key:1,modelValue:e.newName,"onUpdate:modelValue":t[7]||(t[7]=V=>e.newName=V),"enable-emoji-picker":"",suggest:e.emojiSuggestor},{default:X(V=>[at(g("input",An({id:"username","onUpdate:modelValue":t[6]||(t[6]=U=>e.newName=U),class:"input name-changer"},e.propsToNative(V)),null,16),[[ku,e.newName]])]),_:1},8,["modelValue","suggest"])):E("",!0),e.editable?(p(),b("button",{key:2,class:"button-unstyled edit-button",title:e.$t("settings.toggle_edit"),onClick:t[8]||(t[8]=V=>e.editingName=!e.editingName)},[T(a,{class:"icon",icon:"pencil"})],8,Ame)):E("",!0)])]),g("div",Eme,[T(v,{class:"user-screen-name",user:e.user},null,8,["user"]),e.user.locked?(p(),b("span",Ime,[T(a,{icon:"lock",size:"sm"})])):E("",!0),e.relationship.followed_by&&e.loggedIn&&e.isOtherUser?(p(),b("span",Pme,w(e.$t("user_card.follows_you")),1)):E("",!0),e.hideBio?E("",!0):(p(),b(Se,{key:2},[e.user.deactivated?(p(),b("span",Lme,w(e.$t("user_card.deactivated")),1)):E("",!0),e.visibleRole?(p(),b("span",Ome,w(e.$t(`general.role.${e.visibleRole}`)),1)):E("",!0),e.user.actor_type==="Service"?(p(),b("span",Rme,w(e.$t("user_card.bot")),1)):E("",!0),e.user.actor_type==="Group"?(p(),b("span",Mme,w(e.$t("user_card.group")),1)):E("",!0),e.relationship.muting&&e.muteExpiryAvailable?(p(),b("span",Nme,w(e.muteExpiry),1)):E("",!0),e.relationship.blocking&&e.blockExpiryAvailable?(p(),b("span",Fme,w(e.blockExpiry),1)):E("",!0)],64))])])]),e.loggedIn&&e.isOtherUser?(p(),b("div",Dme,[g("div",Ume,[T(y,{relationship:e.relationship,user:e.user},null,8,["relationship","user"]),e.relationship.following?(p(),b(Se,{key:0},[e.relationship.notifying?(p(),Y(S,{key:1,class:"btn button-default toggled",click:e.unsubscribeUser,title:e.$t("user_card.unsubscribe")},{default:X(()=>[T(k,null,{default:X(()=>[T(a,{icon:"rss",transform:"left-5 shrink-6 up-3 rotate-20",flip:"horizontal"}),T(a,{icon:"rss",transform:"right-5 shrink-6 up-3 rotate-20"}),T(a,{icon:"bell"})]),_:1})]),_:1},8,["click","title"])):(p(),Y(S,{key:0,class:"btn button-default",click:e.subscribeUser,title:e.$t("user_card.subscribe")},{default:X(()=>[T(a,{icon:"bell"})]),_:1},8,["click","title"]))],64)):E("",!0)]),e.relationship.muting?(p(),b("button",{key:0,class:"btn button-default btn-mute toggled",disabled:e.user.deactivated,onClick:t[9]||(t[9]=(...V)=>e.unmuteUser&&e.unmuteUser(...V))},w(e.$t("user_card.muted")),9,jme)):(p(),b("button",{key:1,class:"btn button-default btn-mute",disabled:e.user.deactivated,onClick:t[10]||(t[10]=(...V)=>e.muteUser&&e.muteUser(...V))},w(e.$t("user_card.mute")),9,Bme)),g("button",{class:"btn button-default btn-mention",disabled:e.user.deactivated,onClick:t[11]||(t[11]=(...V)=>e.mentionUser&&e.mentionUser(...V))},w(e.$t("user_card.mention")),9,zme),e.showModerationMenu?(p(),Y(I,{key:2,class:"moderation-menu",user:e.user},null,8,["user"])):E("",!0)])):E("",!0),!e.loggedIn&&e.user.is_local?(p(),b("div",qme,[T(C,{user:e.user},null,8,["user"])])):E("",!0)])]),!e.editable&&e.loggedIn&&e.isOtherUser&&(e.hasNote||!e.hideBio)&&!e.mergedConfig.userCardHidePersonalMarks?(p(),b("div",Hme,[e.hasNote||e.hasNoteEditor&&e.supportsNote?(p(),Y($,{key:0,user:e.user,relationship:e.relationship,editable:e.hasNoteEditor},null,8,["user","relationship","editable"])):E("",!0),e.hideBio?E("",!0):(p(),b("div",Vme,[g("h4",null,w(e.$t("user_card.highlight_header")),1),T(P,{id:"userHighlightSel"+e.user.id,modelValue:e.userHighlightType,"onUpdate:modelValue":t[12]||(t[12]=V=>e.userHighlightType=V),class:he(["userHighlightSel unstyled",{"-none":e.userHighlightType==="disabled"}])},{default:X(()=>[g("option",Wme,w(e.$t("user_card.highlight_new.disabled")),1),g("option",Gme,w(e.$t("user_card.highlight_new.solid")),1),g("option",Kme,w(e.$t("user_card.highlight_new.striped")),1),g("option",xme,w(e.$t("user_card.highlight_new.side")),1)]),_:1},8,["id","modelValue","class"]),e.userHighlightType!=="disabled"?(p(),Y(A,{key:0,modelValue:e.userHighlightColor,"onUpdate:modelValue":t[13]||(t[13]=V=>e.userHighlightColor=V),class:"highlighter-color","show-optional-checkbox":!1,name:"'userHighlightColorTx'+user.id",unstyled:!0},null,8,["modelValue"])):E("",!0)]))])):E("",!0),e.editable?(p(),b("h3",Yme,[g("span",null,w(e.$t("settings.bio")),1),t[30]||(t[30]=de(" "+w(" ")+" ",-1)),g("button",{class:"button-default",onClick:t[14]||(t[14]=V=>e.editingBio=!e.editingBio)},[de(w(e.$t("settings.toggle_edit"))+" ",1),T(a,{class:"fa-scale-110 fa-old-padding",icon:"pencil"})])])):E("",!0),!e.editable||!e.editingBio?(p(),b(Se,{key:2},[e.hideBio?E("",!0):(p(),Y(f,{key:0,class:he(["user-card-bio",{"-justify-left":e.mergedConfig.userCardLeftJustify}]),html:e.editable?e.newBio.replace(/\n/g,"<br>"):e.user.description_html,emoji:e.editable?e.emoji:e.user.emoji,"handle-links":!0},null,8,["class","html","emoji"]))],64)):e.editingBio?(p(),Y(h,{key:3,modelValue:e.newBio,"onUpdate:modelValue":t[16]||(t[16]=V=>e.newBio=V),"enable-emoji-picker":"",class:he(["user-card-bio",{"-justify-left":e.mergedConfig.userCardLeftJustify}]),suggest:e.emojiUserSuggestor},{default:X(V=>[at(g("textarea",An({"onUpdate:modelValue":t[15]||(t[15]=U=>e.newBio=U),class:"input bio resize-height"},e.propsToNative(V),{rows:e.newBio.split(/\n/g).length}),null,16,Xme),[[Nt,e.newBio]])]),_:1},8,["modelValue","class","suggest"])):E("",!0),e.editable?(p(),b("h3",Jme,[g("span",null,w(e.$t("settings.profile_fields.label")),1),t[31]||(t[31]=de(" "+w(" ")+" ",-1)),g("button",{class:"button-default",onClick:t[17]||(t[17]=V=>e.editingFields=!e.editingFields)},[de(w(e.$t("settings.toggle_edit"))+" ",1),T(a,{class:"fa-scale-110 fa-old-padding",icon:"pencil"})])])):E("",!0),!e.editable||!e.editingFields?(p(),b(Se,{key:5},[!e.hideBio&&e.user.fields_html&&e.user.fields_html.length>0?(p(),b("div",Zme,[(p(!0),b(Se,null,We(e.editable?e.newFields:e.user.fields_html,(V,U)=>(p(),b("dl",{key:U,class:"user-profile-field"},[g("dt",{title:V.name,class:"user-profile-field-name"},[T(f,{html:V.name,emoji:e.editable?e.emoji:e.user.emoji},null,8,["html","emoji"])],8,Qme),g("dd",{title:V.value,class:"user-profile-field-value"},[T(f,{html:V.value,emoji:e.editable?e.emoji:e.user.emoji},null,8,["html","emoji"])],8,ege)]))),128))])):E("",!0)],64)):e.editingFields?(p(),b(Se,{key:6},[e.maxFields>0?(p(),b("div",tge,[(p(!0),b(Se,null,We(e.newFields,(V,U)=>(p(),b("dl",{key:U,class:"user-profile-field"},[g("dt",nge,[T(h,{modelValue:e.newFields[U].name,"onUpdate:modelValue":ie=>e.newFields[U].name=ie,"enable-emoji-picker":"",suggest:e.emojiSuggestor},{default:X(ie=>[at(g("input",An({"onUpdate:modelValue":le=>e.newFields[U].name=le,placeholder:e.$t("settings.profile_fields.name")},{ref_for:!0},e.propsToNative(ie),{class:"input"}),null,16,sge),[[ku,e.newFields[U].name]])]),_:2},1032,["modelValue","onUpdate:modelValue","suggest"])]),g("dd",rge,[T(h,{modelValue:e.newFields[U].value,"onUpdate:modelValue":ie=>e.newFields[U].value=ie,"enable-emoji-picker":"",suggest:e.emojiSuggestor},{default:X(ie=>[at(g("input",An({"onUpdate:modelValue":le=>e.newFields[U].value=le,placeholder:e.$t("settings.profile_fields.value")},{ref_for:!0},e.propsToNative(ie),{class:"input input"}),null,16,oge),[[ku,e.newFields[U].value]])]),_:2},1032,["modelValue","onUpdate:modelValue","suggest"]),g("button",{class:"delete-field button-default -hover-highlight",onClick:ie=>e.deleteField(U)},[e.newFields.length>1?(p(),Y(a,{key:0,icon:"times"})):E("",!0)],8,ige)])]))),128)),e.newFields.length<e.maxFields?(p(),b("button",{key:0,class:"user-profile-field-add add-field button-default -hover-highlight",onClick:t[18]||(t[18]=(...V)=>e.addField&&e.addField(...V))},[T(a,{icon:"plus",class:"icon"}),g("span",age,w(e.$t("settings.profile_fields.add_field")),1)])):E("",!0)])):E("",!0)],64)):E("",!0),e.hideBio?E("",!0):(p(),b("div",lge,[!e.editable&&!e.mergedConfig.hideUserStats?(p(),b("span",cge,[!e.mergedConfig.hideUserStats&&!e.hideBio?(p(),b("dl",uge,[g("dd",null,w(e.user.statuses_count),1),t[32]||(t[32]=de(" "+w(" ")+" ",-1)),g("dt",null,w(e.$t("user_card.statuses")),1)])):E("",!0),g("dl",dge,[g("dd",null,w(e.dailyAvg),1),t[33]||(t[33]=de(" "+w(" ")+" ",-1)),g("dt",null,w(e.$t("user_card.statuses_per_day")),1)]),g("dl",fge,[g("dd",null,w(e.hideFollowsCount?e.$t("user_card.hidden"):e.user.friends_count),1),t[34]||(t[34]=de(" "+w(" ")+" ",-1)),g("dt",null,w(e.$t("user_card.followees")),1)]),g("dl",hge,[g("dd",null,w(e.hideFollowersCount?e.$t("user_card.hidden"):e.user.followers_count),1),t[35]||(t[35]=de(" "+w(" ")+" ",-1)),g("dt",null,w(e.$t("user_card.followers")),1)])])):E("",!0),e.hideBio?E("",!0):(p(),b(Se,{key:1},[e.user.birthday&&!e.editable?(p(),b("div",pge,[T(a,{class:"fa-old-padding",icon:"birthday-cake"}),de(" "+w(e.$t("user_card.birthday",{birthday:e.formattedBirthday})),1)])):e.editable?(p(),b("div",mge,[g("div",null,[T(R,{modelValue:e.newShowBirthday,"onUpdate:modelValue":t[19]||(t[19]=V=>e.newShowBirthday=V)},{default:X(()=>[de(w(e.$t("settings.birthday.show_birthday")),1)]),_:1},8,["modelValue"])]),T(a,{class:"fa-old-padding",icon:"birthday-cake"}),de(" "+w(e.$t("settings.birthday.label"))+" ",1),at(g("input",{id:"birthday","onUpdate:modelValue":t[20]||(t[20]=V=>e.newBirthday=V),type:"date",class:"input birthday-input"},null,512),[[Nt,e.newBirthday]])])):E("",!0)],64))])),e.editable?(p(),b(Se,{key:8},[g("h3",null,w(e.$t("settings.profile_other")),1),e.role==="admin"||e.role==="moderator"?(p(),b("p",gge,[T(R,{modelValue:e.newShowRole,"onUpdate:modelValue":t[21]||(t[21]=V=>e.newShowRole=V)},{default:X(()=>[e.role==="admin"?(p(),b(Se,{key:0},[de(w(e.$t("settings.show_admin_badge")),1)],64)):E("",!0),e.role==="moderator"?(p(),b(Se,{key:1},[de(w(e.$t("settings.show_moderator_badge")),1)],64)):E("",!0)]),_:1},8,["modelValue"])])):E("",!0),g("p",vge,[g("label",null,[de(w(e.$t("settings.actor_type"))+" ",1),T(P,{modelValue:e.newActorType,"onUpdate:modelValue":t[22]||(t[22]=V=>e.newActorType=V)},{default:X(()=>[(p(!0),b(Se,null,We(e.availableActorTypes,V=>(p(),b("option",{key:V,value:V},w(e.$t("settings.actor_type_"+(V==="Person"?"person_proper":V))),9,bge))),128))]),_:1},8,["modelValue"]),e.groupActorAvailable?(p(),b("div",yge,[g("small",null,w(e.$t("settings.actor_type_description")),1)])):E("",!0)])]),g("div",_ge,[e.editable?(p(),b("button",{key:0,disabled:!e.somethingToSave,class:"btn button-default reset-profile-button",onClick:t[23]||(t[23]=(...V)=>e.resetState&&e.resetState(...V))},[de(w(e.$t("settings.reset"))+" ",1),T(a,{"fixed-width":"",class:"icon",icon:"clock-rotate-left",title:e.$t("user_card.edit_profile")},null,8,["title"])],8,wge)):E("",!0),e.editable?(p(),b("button",{key:1,disabled:!e.somethingToSave,class:"btn button-default save-profile-button",onClick:t[24]||(t[24]=(...V)=>e.updateProfile&&e.updateProfile(...V))},[de(w(e.$t("settings.save"))+" ",1),T(a,{"fixed-width":"",class:"icon",icon:"save",title:e.$t("user_card.edit_profile")},null,8,["title"])],8,Sge)):E("",!0)])],64)):E("",!0),(p(),Y(Yn,{to:"#modal"},[T(B,{ref:"timedMuteDialog",user:e.user,"is-mute":!0},null,8,["user"])])),(p(),Y(Yn,{to:"#modal"},[e.editImage?(p(),Y(W,{key:0,class:"edit-image"},{header:X(()=>[de(w(e.editImage==="avatar"?e.$t("settings.change_avatar"):e.$t("settings.change_banner")),1)]),footer:X(()=>[g("button",{class:"button-default btn",type:"button",onClick:t[26]||(t[26]=V=>e.editImage=!1)},w(e.$t("image_cropper.cancel")),1),g("button",{title:e.editImage==="avatar"?e.$t("settings.reset_avatar"):e.$t("settings.reset_banner"),class:"button-default btn reset-button",onClick:t[27]||(t[27]=(...V)=>e.resetImage&&e.resetImage(...V))},w(e.editImage==="avatar"?e.$t("settings.reset_avatar"):e.$t("settings.reset_banner")),9,$ge),g("button",{class:"button-default btn",type:"button",onClick:t[28]||(t[28]=V=>e.$refs.cropper.submit(!1))},w(e.$t("image_cropper.save_without_cropping")),1),g("button",{class:"button-default btn",type:"button",onClick:t[29]||(t[29]=V=>e.$refs.cropper.submit(!0))},w(e.$t("image_cropper.save")),1)]),default:X(()=>[g("p",null,w(e.editImage==="avatar"?e.$t("settings.avatar_size_instruction"):e.$t("settings.banner_size_instruction")),1),g("div",{class:he(["image-container",{"-banner":e.editImage==="banner"}])},[T(N,{ref:"cropper",class:"cropper","aspect-ratio":e.editImage==="avatar"?1:3,onSubmit:e.submitImage},null,8,["aspect-ratio","onSubmit"])],2),g("button",{id:"pick-image",class:"button-default btn",type:"button",onClick:t[25]||(t[25]=()=>e.$refs.cropper.pickImage())},w(e.$t("settings.select_picture")),1)]),_:1})):E("",!0)]))])}const Cd=ge(dme,[["render",kge]]),Cge={computed:{signedIn(){return this.user},...mn({user:e=>e.users.currentUser})},components:{AuthForm:HL,PostStatusForm:lc,UserCard:Cd}},Tge={class:"user-panel"},Age={key:"user-panel-signed",class:"panel panel-default signed-in"};function Ege(e,t,n,s,r,o){const i=O("UserCard"),a=O("PostStatusForm"),c=O("auth-form");return p(),b("aside",Tge,[e.signedIn?(p(),b("div",Age,[T(i,{"user-id":e.user.id,"hide-bio":!0},null,8,["user-id"]),T(a)])):(p(),Y(c,{key:"user-panel"}))])}const Ige=ge(Cge,[["render",Ege]]),yO=new Set(["dms","interactions","notifications","chat","chats"]),Pge=new Set(["user-profile","legacy-user-profile"]),Dl={home:{route:"friends",icon:"home",label:"nav.home_timeline",criteria:["!private"]},public:{route:"public-timeline",anon:!0,icon:"users",label:"nav.public_tl",criteria:["!private"]},bubble:{route:"bubble",anon:!0,icon:"city",label:"nav.bubble",criteria:["!private","federating","supportsBubbleTimeline"]},twkn:{route:"public-external-timeline",anon:!0,icon:"globe",label:"nav.twkn",criteria:["!private","federating"]},bookmarks:{route:"bookmarks",icon:"bookmark",label:"nav.bookmarks"},favorites:{routeObject:{name:"user-profile",query:{tab:"favorites"}},icon:"star",label:"user_card.favorites"},dms:{route:"dms",icon:"envelope",label:"nav.dms"}},Wh={bookmarks:{route:"bookmarks",icon:"bookmark",label:"nav.bookmarks",criteria:["!supportsBookmarkFolders"]},interactions:{route:"interactions",icon:"bell",label:"nav.interactions"},chats:{route:"chats",icon:"comments",label:"nav.chats",badgeStyle:"notification",badgeGetter:"unreadChatCount",criteria:["chats"]},friendRequests:{route:"friend-requests",icon:"user-plus",label:"nav.friend_requests",badgeStyle:"notification",criteria:["lockedUser"],badgeGetter:"followRequestCount"},about:{route:"about",anon:!0,icon:"info-circle",label:"nav.about"},announcements:{route:"announcements",icon:"bullhorn",label:"nav.announcements",store:"announcements",badgeStyle:"notification",badgeGetter:"unreadAnnouncementCount",criteria:["announcements"]},drafts:{route:"drafts",icon:"file-pen",label:"nav.drafts",badgeStyle:"neutral",badgeGetter:"draftCount"}};function _O(e,t){if(!e.route&&!e.routeObject)return null;let n;return e.routeObject?n=e.routeObject:n={name:e.anon||t?e.route:e.anonRoute},yO.has(n.name)?n.params={username:t.screen_name}:Pge.has(n.name)&&(n.params={name:t.screen_name}),n}const Lge={props:["to"]};function Oge(e,t,n,s,r,o){const i=O("router-link");return n.to?(p(),Y(i,{key:0,to:n.to,custom:""},{default:X(a=>[Ot(e.$slots,"default",lh(dp(a)))]),_:3},8,["to"])):Ot(e.$slots,"default",lh(An({key:1},{})))}const Rge=ge(Lge,[["render",Oge]]);et.add(i2);const Mge={props:["item","showPin"],components:{OptionalRouterLink:Rge},methods:{isPinned(e){return this.pinnedItems.has(e)},togglePin(e){this.isPinned(e)?_n().removeCollectionPreference({path:"collections.pinnedNavItems",value:e}):_n().addCollectionPreference({path:"collections.pinnedNavItems",value:e}),_n().pushServerSideStorage()}},computed:{routeTo(){return _O(this.item,this.currentUser)},getters(){return this.$store.getters},...mp(ms),...mn({currentUser:e=>e.users.currentUser}),...sn(_n,{pinnedItems:e=>new Set(e.prefsStorage.collections.pinnedNavItems)})}},Nge=["src","alt","title"],Fge={key:1,class:"menu-icon iconEmoji"},Dge={key:2,class:"icon iconLetter fa-scale-110 menu-icon"},Uge={class:"label"},jge={key:1,class:"badge badge-notification"},Bge=["title","aria-pressed"];function zge(e,t,n,s,r,o){const i=O("FAIcon"),a=O("OptionalRouterLink");return p(),Y(a,{to:e.routeTo},{default:X(({isActive:c,href:u,navigate:f}={})=>[g("li",An({class:["NavigationEntry menu-item",{"-active":c}]},e.$attrs),[(p(),Y(Oa(e.routeTo?"a":"button"),{class:"main-link",href:u,onClick:f},{default:X(()=>[g("span",null,[e.item.icon?(p(),Y(i,{key:0,"fixed-width":"",class:"fa-scale-110 menu-icon",icon:e.item.icon},null,8,["icon"])):E("",!0)]),e.item.iconEmojiUrl?(p(),b("img",{key:0,class:"menu-icon iconEmoji iconEmoji-image",src:e.item.iconEmojiUrl,alt:e.item.iconEmoji,title:e.item.iconEmoji},null,8,Nge)):e.item.iconEmoji?(p(),b("span",Fge,[g("span",null,w(e.item.iconEmoji),1)])):e.item.iconLetter?(p(),b("span",Dge,w(e.item.iconLetter),1)):E("",!0),g("span",Uge,w(e.item.labelRaw||e.$t(e.item.label)),1)]),_:2},1032,["href","onClick"])),Ot(e.$slots,"default"),e.item.badgeGetter&&e.getters[e.item.badgeGetter]?(p(),b("div",{key:0,class:he(["badge",[`-${e.item.badgeStyle}`]])},w(e.getters[e.item.badgeGetter]),3)):e.item.badgeGetter&&e.item.store&&this[`${e.item.store}Store`][e.item.badgeGetter]?(p(),b("div",jge,w(this[`${e.item.store}Store`][e.item.badgeGetter]),1)):E("",!0),e.showPin&&e.currentUser?(p(),b("button",{key:2,type:"button",class:"button-unstyled extra-button",title:e.$t(e.isPinned?"general.unpin":"general.pin"),"aria-pressed":!!e.isPinned,onClick:t[0]||(t[0]=Te(h=>e.togglePin(e.item.name),["stop","prevent"]))},[e.showPin&&e.currentUser?(p(),Y(i,{key:0,"fixed-width":"",class:he(["fa-scale-110",{veryfaint:!e.isPinned(e.item.name)}]),transform:e.isPinned(e.item.name)?"":"rotate-45",icon:"thumbtack"},null,8,["class","transform"])):E("",!0)],8,Bge)):E("",!0)],16)]),_:3},8,["to"])}const rm=ge(Mge,[["render",zge]]),sd=(e=[],{hasChats:t,hasAnnouncements:n,isFederating:s,isPrivate:r,currentUser:o,supportsBookmarkFolders:i,supportsBubbleTimeline:a})=>e.filter(({criteria:c,anon:u,anonRoute:f})=>{const h=new Set(c||[]);return!(!s&&h.has("federating")||!o&&r&&h.has("!private")||!o&&!(u||f)||(!o||!o.locked)&&h.has("lockedUser")||!t&&h.has("chats")||!n&&h.has("announcements")||!a&&h.has("supportsBubbleTimeline")||!i&&h.has("supportsBookmarkFolders")||i&&h.has("!supportsBookmarkFolders"))}),wO=e=>e.allLists.map(t=>({name:"list-"+t.id,routeObject:{name:"lists-timeline",params:{id:t.id}},labelRaw:t.title,iconLetter:t.title[0]})),SO=e=>e.allFolders?e.allFolders.map(t=>({name:"bookmark-folder-"+t.id,routeObject:{name:"bookmark-folder",params:{id:t.id}},labelRaw:t.name,iconEmoji:t.emoji,iconEmojiUrl:t.emoji_url,iconLetter:t.name[0]})):[],qge={props:["showPin"],components:{NavigationEntry:rm},computed:{...sn(no,{folders:SO})}};function Hge(e,t,n,s,r,o){const i=O("NavigationEntry");return p(),b("ul",null,[T(i,{item:{name:"bookmarks",routeObject:{name:"bookmarks"},label:"nav.all_bookmarks",icon:"bookmark"},"show-pin":e.showPin},null,8,["show-pin"]),(p(!0),b(Se,null,We(e.folders,a=>(p(),Y(i,{key:a.id,"show-pin":e.showPin,item:a},null,8,["show-pin","item"]))),128))])}const $O=ge(qge,[["render",Hge]]),Vge={props:["showPin"],components:{NavigationEntry:rm},computed:{...sn(Fn,{lists:wO}),...mn({currentUser:e=>e.users.currentUser,privateMode:e=>e.instance.private,federating:e=>e.instance.federating})}};function Wge(e,t,n,s,r,o){const i=O("NavigationEntry");return p(),b("ul",null,[(p(!0),b(Se,null,We(e.lists,a=>(p(),Y(i,{key:a.name,"show-pin":e.showPin,item:a},null,8,["show-pin","item"]))),128))])}const kO=ge(Vge,[["render",Wge]]);et.add(G5,gd,x5,X_,Pp,pd,ic,Lp,oP,Ep);const Gge={props:["limit"],methods:{getRouteTo(e){return _O(e,this.currentUser)}},components:{StillImage:Ji},computed:{getters(){return this.$store.getters},...sn(Fn,{lists:wO}),...sn(ms,{supportsAnnouncements:e=>e.supportsAnnouncements}),...sn(no,{bookmarks:SO}),...sn(_n,{pinnedItems:e=>new Set(e.prefsStorage.collections.pinnedNavItems)}),...mn({currentUser:e=>e.users.currentUser,followRequestCount:e=>e.api.followRequests.length,privateMode:e=>e.instance.private,federating:e=>e.instance.federating,pleromaChatMessagesAvailable:e=>e.instance.pleromaChatMessagesAvailable,bubbleTimeline:e=>e.instance.localBubbleInstances.length>0}),pinnedList(){return this.currentUser?sd([...Object.entries({...Dl}).filter(([e])=>this.pinnedItems.has(e)).map(([e,t])=>({...t,name:e})),...this.lists.filter(e=>this.pinnedItems.has(e.name)),...this.bookmarks.filter(e=>this.pinnedItems.has(e.name)),...Object.entries({...Wh}).filter(([e])=>this.pinnedItems.has(e)).map(([e,t])=>({...t,name:e}))],{hasChats:this.pleromaChatMessagesAvailable,hasAnnouncements:this.supportsAnnouncements,supportsBubbleTimeline:this.bubbleTimeline,supportsBookmarkFolders:this.bookmarks,isFederating:this.federating,isPrivate:this.privateMode,currentUser:this.currentUser}).slice(0,this.limit):sd([{...Dl.public,name:"public"},{...Dl.twkn,name:"twkn"},{...Wh.about,name:"about"}],{hasChats:this.pleromaChatMessagesAvailable,hasAnnouncements:this.supportsAnnouncements,isFederating:this.federating,isPrivate:this.privateMode,currentUser:this.currentUser,supportsBubbleTimeline:this.bubbleTimeline,supportsBookmarkFolders:this.bookmarks})}}},Kge={class:"NavigationPins"},xge={key:1,class:"iconLetter fa-scale-110 fa-old-padding"};function Yge(e,t,n,s,r,o){const i=O("FAIcon"),a=O("StillImage"),c=O("router-link");return p(),b("span",Kge,[(p(!0),b(Se,null,We(e.pinnedList,u=>(p(),Y(c,{key:u.name,class:"button-unstyled pinned-item","active-class":"toggled",to:e.getRouteTo(u),title:u.labelRaw||e.$t(u.label)},{default:X(()=>[u.icon?(p(),Y(i,{key:0,"fixed-width":"",icon:u.icon},null,8,["icon"])):E("",!0),u.iconLetter&&!u.iconEmoji?(p(),b("span",xge,w(u.iconLetter),1)):E("",!0),u.iconEmoji?(p(),Y(a,{key:2,class:"bookmark-emoji",src:u.iconEmojiUrl},null,8,["src"])):E("",!0),u.badgeGetter&&e.getters[u.badgeGetter]?(p(),b("div",{key:3,class:he(["badge -dot",[`-${u.badgeStyle}`]])},null,2)):E("",!0)]),_:2},1032,["to","title"]))),128))])}const CO=ge(Gge,[["render",Yge]]);et.add(G5,gd,x5,X_,Pp,za,Y_,pd,ic,Lp,oP,Ep,md,aP);const Xge={props:["forceExpand","forceEditMode"],created(){},components:{BookmarkFoldersMenuContent:$O,ListsMenuContent:kO,NavigationEntry:rm,NavigationPins:CO,Checkbox:io},data(){return{editMode:!1,showTimelines:!1,showLists:!1,showBookmarkFolders:!1,timelinesList:Object.entries(Dl).map(([e,t])=>({...t,name:e})),rootList:Object.entries(Wh).map(([e,t])=>({...t,name:e}))}},methods:{toggleTimelines(){this.showTimelines=!this.showTimelines},toggleLists(){this.showLists=!this.showLists},toggleBookmarkFolders(){this.showBookmarkFolders=!this.showBookmarkFolders},toggleEditMode(){this.editMode=!this.editMode},toggleCollapse(){_n().setPreference({path:"simple.collapseNav",value:!this.collapsed}),_n().pushServerSideStorage()},isPinned(e){return this.pinnedItems.has(e)},togglePin(e){this.isPinned(e)?_n().removeCollectionPreference({path:"collections.pinnedNavItems",value:e}):_n().addCollectionPreference({path:"collections.pinnedNavItems",value:e}),_n().pushServerSideStorage()}},computed:{...sn(ms,{unreadAnnouncementCount:"unreadAnnouncementCount",supportsAnnouncements:e=>e.supportsAnnouncements}),...sn(_n,{collapsed:e=>e.prefsStorage.simple.collapseNav,pinnedItems:e=>new Set(e.prefsStorage.collections.pinnedNavItems)}),...mn({currentUser:e=>e.users.currentUser,followRequestCount:e=>e.api.followRequests.length,privateMode:e=>e.instance.private,federating:e=>e.instance.federating,pleromaChatMessagesAvailable:e=>e.instance.pleromaChatMessagesAvailable,bookmarkFolders:e=>e.instance.pleromaBookmarkFoldersAvailable,bubbleTimeline:e=>e.instance.localBubbleInstances.length>0}),timelinesItems(){return sd(Object.entries({...Dl}).filter(([e])=>e!=="bookmarks").map(([e,t])=>({...t,name:e})),{hasChats:this.pleromaChatMessagesAvailable,hasAnnouncements:this.supportsAnnouncements,isFederating:this.federating,isPrivate:this.privateMode,currentUser:this.currentUser,supportsBubbleTimeline:this.bubbleTimeline,supportsBookmarkFolders:this.bookmarkFolders})},rootItems(){return sd(Object.entries({...Wh}).map(([e,t])=>({...t,name:e})),{hasChats:this.pleromaChatMessagesAvailable,hasAnnouncements:this.supportsAnnouncements,isFederating:this.federating,isPrivate:this.privateMode,currentUser:this.currentUser,supportsBubbleTimeline:this.bubbleTimeline,supportsBookmarkFolders:this.bookmarkFolders})},...bn(["unreadChatCount"])}},Jge={class:"NavPanel"},Zge={class:"panel panel-default"},Qge={key:0,class:"panel-heading nav-panel-heading"},e1e={key:1,class:"panel-body"},t1e={class:"timelines"};function n1e(e,t,n,s,r,o){const i=O("NavigationPins"),a=O("FAIcon"),c=O("NavigationEntry"),u=O("router-link"),f=O("ListsMenuContent"),h=O("BookmarkFoldersMenuContent");return p(),b("div",Jge,[g("div",Zge,[e.forceExpand?E("",!0):(p(),b("div",Qge,[T(i,{limit:6}),t[3]||(t[3]=g("div",{class:"spacer"},null,-1)),g("button",{class:"button-unstyled",onClick:t[0]||(t[0]=(...v)=>e.toggleCollapse&&e.toggleCollapse(...v))},[T(a,{class:"navigation-chevron","fixed-width":"",icon:e.collapsed?"chevron-down":"chevron-up"},null,8,["icon"])])])),!e.collapsed||e.forceExpand?(p(),b("ul",e1e,[e.currentUser||!e.privateMode?(p(),Y(c,{key:0,"show-pin":!1,item:{icon:"stream",label:"nav.timelines"},"aria-expanded":e.showTimelines?"true":"false",onClick:e.toggleTimelines},{default:X(()=>[T(a,{class:"timelines-chevron","fixed-width":"",icon:e.showTimelines?"chevron-up":"chevron-down"},null,8,["icon"])]),_:1},8,["aria-expanded","onClick"])):E("",!0),at(g("div",{class:he(["timelines-background menu-item-collapsible",{"-expanded":e.showTimelines}])},[g("div",t1e,[(p(!0),b(Se,null,We(e.timelinesItems,v=>(p(),Y(c,{key:v.name,"show-pin":e.editMode||e.forceEditMode,item:v},null,8,["show-pin","item"]))),128))])],2),[[Cr,e.showTimelines]]),e.currentUser?(p(),Y(c,{key:1,"show-pin":!1,item:{icon:"list",label:"nav.lists"},"aria-expanded":e.showLists?"true":"false",onClick:e.toggleLists},{default:X(()=>[T(u,{title:e.$t("lists.manage_lists"),class:"button-unstyled extra-button",to:{name:"lists"},onClick:t[1]||(t[1]=Te(()=>{},["stop"]))},{default:X(()=>[T(a,{"fixed-width":"",icon:"wrench"})]),_:1},8,["title"]),T(a,{class:"timelines-chevron","fixed-width":"",icon:e.showLists?"chevron-up":"chevron-down"},null,8,["icon"])]),_:1},8,["aria-expanded","onClick"])):E("",!0),at(g("div",{class:he(["timelines-background menu-item-collapsible",{"-expanded":e.showLists}])},[T(f,{"show-pin":e.editMode||e.forceEditMode,class:"timelines"},null,8,["show-pin"])],2),[[Cr,e.showLists]]),e.currentUser&&e.bookmarkFolders?(p(),Y(c,{key:2,"show-pin":!1,item:{icon:"bookmark",label:"nav.bookmarks"},"aria-expanded":e.showBookmarkFolders?"true":"false",onClick:e.toggleBookmarkFolders},{default:X(()=>[T(u,{title:e.$t("bookmarks.manage_bookmark_folders"),class:"button-unstyled extra-button",to:{name:"bookmark-folders"},onClick:t[2]||(t[2]=Te(()=>{},["stop"]))},{default:X(()=>[T(a,{"fixed-width":"",icon:"wrench"})]),_:1},8,["title"]),T(a,{class:"timelines-chevron","fixed-width":"",icon:e.showBookmarkFolders?"chevron-up":"chevron-down"},null,8,["icon"])]),_:1},8,["aria-expanded","onClick"])):E("",!0),at(g("div",{class:he(["timelines-background menu-item-collapsible",{"-expanded":e.showBookmarkFolders}])},[T(h,{"show-pin":e.editMode||e.forceEditMode,class:"timelines"},null,8,["show-pin"])],2),[[Cr,e.showBookmarkFolders]]),(p(!0),b(Se,null,We(e.rootItems,v=>(p(),Y(c,{key:v.name,"show-pin":e.editMode||e.forceEditMode,item:v},null,8,["show-pin","item"]))),128)),!e.forceEditMode&&e.currentUser?(p(),Y(c,{key:3,"show-pin":!1,item:{labelRaw:e.editMode?e.$t("nav.edit_finish"):e.$t("nav.edit_pinned"),icon:e.editMode?"check":"wrench"},onClick:e.toggleEditMode},null,8,["item","onClick"])):E("",!0)])):E("",!0)])])}const TO=ge(Xge,[["render",n1e]]),s1e={computed:{instanceSpecificPanelContent(){return this.$store.state.instance.instanceSpecificPanelContent}}},r1e={class:"instance-specific-panel"},o1e={class:"panel panel-default"},i1e={class:"panel-body"},a1e=["innerHTML"];function l1e(e,t,n,s,r,o){return p(),b("div",r1e,[g("div",o1e,[g("div",i1e,[g("div",{innerHTML:e.instanceSpecificPanelContent},null,8,a1e)])])])}const AO=ge(s1e,[["render",l1e]]),c1e={computed:{shout:function(){return this.$store.state.instance.shoutAvailable},pleromaChatMessages:function(){return this.$store.state.instance.pleromaChatMessagesAvailable},gopher:function(){return this.$store.state.instance.gopherAvailable},whoToFollow:function(){return this.$store.state.instance.suggestionsEnabled},mediaProxy:function(){return this.$store.state.instance.mediaProxyAvailable},minimalScopesMode:function(){return this.$store.state.instance.minimalScopesMode},textlimit:function(){return this.$store.state.instance.textlimit},uploadlimit:function(){return jy.fileSizeFormat(this.$store.state.instance.uploadlimit)}}},u1e={class:"features-panel"},d1e={class:"panel panel-default base01-background"},f1e={class:"panel-heading timeline-heading base02-background base04 -sticky"},h1e={class:"title"},p1e={class:"panel-body"},m1e={key:0},g1e={key:1},v1e={key:2},b1e={key:3},y1e={key:4};function _1e(e,t,n,s,r,o){return p(),b("div",u1e,[g("div",d1e,[g("div",f1e,[g("h1",h1e,w(e.$t("features_panel.title")),1)]),g("div",p1e,[g("ul",null,[e.shout?(p(),b("li",m1e,w(e.$t("features_panel.shout")),1)):E("",!0),e.pleromaChatMessages?(p(),b("li",g1e,w(e.$t("features_panel.pleroma_chat_messages")),1)):E("",!0),e.gopher?(p(),b("li",v1e,w(e.$t("features_panel.gopher")),1)):E("",!0),e.whoToFollow?(p(),b("li",b1e,w(e.$t("features_panel.who_to_follow")),1)):E("",!0),e.mediaProxy?(p(),b("li",y1e,w(e.$t("features_panel.media_proxy")),1)):E("",!0),g("li",null,w(e.$t("features_panel.scope_options")),1),g("li",null,w(e.$t("features_panel.text_limit"))+" = "+w(e.textlimit),1),g("li",null,w(e.$t("features_panel.upload_limit"))+" = "+w(e.uploadlimit.num)+" "+w(e.$t("upload.file_size_units."+e.uploadlimit.unit)),1)])])])])}const EO=ge(c1e,[["render",_1e]]);function w1e(e,t){const n=Z.shuffle(t);e.usersToFollow.forEach((s,r)=>{const o=n[r],i=o.avatar||this.$store.state.instance.defaultAvatar,a=o.acct;s.img=i,s.name=a,e.$store.state.api.backendInteractor.fetchUser({id:a}).then(c=>{c.error||(e.$store.commit("addNewUsers",[c]),s.id=c.id)})})}function X6(e){const t=e.$store.state.users.currentUser.credentials;t&&(e.usersToFollow.forEach(n=>{n.name="Loading..."}),Ln.suggestions({credentials:t}).then(n=>{w1e(e,n)}))}const S1e={data:()=>({usersToFollow:[]}),computed:{user:function(){return this.$store.state.users.currentUser.screen_name},suggestionsEnabled(){return this.$store.state.instance.suggestionsEnabled}},methods:{userProfileLink(e,t){return ao(e,t,this.$store.state.instance.restrictedNicknames)}},watch:{user:function(){this.suggestionsEnabled&&X6(this)}},mounted:function(){this.usersToFollow=new Array(3).fill().map(()=>({img:this.$store.state.instance.defaultAvatar,name:"",id:0})),this.suggestionsEnabled&&X6(this)}},$1e={class:"who-to-follow-panel"},k1e={class:"panel panel-default base01-background"},C1e={class:"panel-heading timeline-heading base02-background base04"},T1e={class:"title"},A1e={class:"who-to-follow"},E1e=["src"],I1e={class:"who-to-follow-more"};function P1e(e,t,n,s,r,o){const i=O("router-link");return p(),b("div",$1e,[g("div",k1e,[g("div",C1e,[g("h1",T1e,w(e.$t("who_to_follow.who_to_follow")),1)]),g("div",A1e,[(p(!0),b(Se,null,We(e.usersToFollow,a=>(p(),b("p",{key:a.id,class:"who-to-follow-items"},[g("img",{src:a.img},null,8,E1e),T(i,{to:e.userProfileLink(a.id,a.name)},{default:X(()=>[de(w(a.name),1)]),_:2},1032,["to"]),t[0]||(t[0]=g("br",null,null,-1))]))),128)),g("p",I1e,[T(i,{to:{name:"who-to-follow"}},{default:X(()=>[de(w(e.$t("who_to_follow.more")),1)]),_:1})])])])])}const L1e=ge(S1e,[["render",P1e]]);et.add(md,Xn);const O1e={props:["floating"],data(){return{currentMessage:"",channel:null,collapsed:!0}},computed:{messages(){return Gl().messages}},methods:{submit(e){Gl().channel.push("new_msg",{text:e},1e4),this.currentMessage=""},togglePanel(){this.collapsed=!this.collapsed},userProfileLink(e){return ao(e.id,e.username,this.$store.state.instance.restrictedNicknames)}},watch:{messages(){const e=this.$el.querySelector(".chat-window");e&&e.scrollTop+e.offsetHeight+20>e.scrollHeight&&this.$nextTick(()=>{e&&(e.scrollTop=e.scrollHeight-e.offsetHeight)})}}},R1e={key:0,class:"shout-panel"},M1e={class:"panel panel-default"},N1e={class:"title"},F1e={class:"panel-body shout-window"},D1e={class:"shout-avatar"},U1e=["src"],j1e={class:"shout-content"},B1e={class:"shout-text"},z1e={class:"panel-body shout-input"},q1e={key:1,class:"shout-panel"},H1e={class:"panel panel-default"},V1e={class:"title"};function W1e(e,t,n,s,r,o){const i=O("FAIcon"),a=O("router-link");return!e.collapsed||!e.floating?(p(),b("div",R1e,[g("div",M1e,[g("div",{class:he(["panel-heading",{"shout-heading":e.floating}]),onClick:t[0]||(t[0]=Te((...c)=>e.togglePanel&&e.togglePanel(...c),["stop","prevent"]))},[g("h1",N1e,[de(w(e.$t("shoutbox.title"))+" ",1),e.floating?(p(),Y(i,{key:0,icon:"times",class:"close-icon"})):E("",!0)])],2),g("div",F1e,[(p(!0),b(Se,null,We(e.messages,c=>(p(),b("div",{key:c.id,class:"shout-message"},[g("span",D1e,[g("img",{src:c.author.avatar},null,8,U1e)]),g("div",j1e,[T(a,{class:"shout-name",to:e.userProfileLink(c.author)},{default:X(()=>[de(w(c.author.username),1)]),_:2},1032,["to"]),t[4]||(t[4]=g("br",null,null,-1)),g("span",B1e,w(c.text),1)])]))),128))]),g("div",z1e,[at(g("textarea",{"onUpdate:modelValue":t[1]||(t[1]=c=>e.currentMessage=c),class:"shout-input-textarea input",rows:"1",onKeyup:t[2]||(t[2]=zo(c=>e.submit(e.currentMessage),["enter"]))},null,544),[[Nt,e.currentMessage]])])])])):(p(),b("div",q1e,[g("div",H1e,[g("div",{class:"panel-heading -stub timeline-heading shout-heading",onClick:t[3]||(t[3]=Te((...c)=>e.togglePanel&&e.togglePanel(...c),["stop","prevent"]))},[g("div",V1e,[T(i,{class:"icon",icon:"bullhorn"}),de(" "+w(e.$t("shoutbox.title")),1)])])])]))}const IO=ge(O1e,[["render",W1e]]);class ki{constructor(t){this.id=-1,this.nativePointer=t,this.pageX=t.pageX,this.pageY=t.pageY,this.clientX=t.clientX,this.clientY=t.clientY,self.Touch&&t instanceof Touch?this.id=t.identifier:gu(t)&&(this.id=t.pointerId)}getCoalesced(){if("getCoalescedEvents"in this.nativePointer){const t=this.nativePointer.getCoalescedEvents().map(n=>new ki(n));if(t.length>0)return t}return[this]}}const gu=e=>"pointerId"in e,a0=e=>"changedTouches"in e,J6=()=>{};class G1e{constructor(t,{start:n=()=>!0,move:s=J6,end:r=J6,rawUpdates:o=!1,avoidPointerEvents:i=!1}={}){this._element=t,this.startPointers=[],this.currentPointers=[],this._excludeFromButtonsCheck=new Set,this._pointerStart=a=>{if(gu(a)&&a.buttons===0)this._excludeFromButtonsCheck.add(a.pointerId);else if(!(a.buttons&1))return;const c=new ki(a);this.currentPointers.some(u=>u.id===c.id)||this._triggerPointerStart(c,a)&&(gu(a)?((a.target&&"setPointerCapture"in a.target?a.target:this._element).setPointerCapture(a.pointerId),this._element.addEventListener(this._rawUpdates?"pointerrawupdate":"pointermove",this._move),this._element.addEventListener("pointerup",this._pointerEnd),this._element.addEventListener("pointercancel",this._pointerEnd)):(window.addEventListener("mousemove",this._move),window.addEventListener("mouseup",this._pointerEnd)))},this._touchStart=a=>{for(const c of Array.from(a.changedTouches))this._triggerPointerStart(new ki(c),a)},this._move=a=>{if(!a0(a)&&(!gu(a)||!this._excludeFromButtonsCheck.has(a.pointerId))&&a.buttons===0){this._pointerEnd(a);return}const c=this.currentPointers.slice(),u=a0(a)?Array.from(a.changedTouches).map(h=>new ki(h)):[new ki(a)],f=[];for(const h of u){const v=this.currentPointers.findIndex(y=>y.id===h.id);v!==-1&&(f.push(h),this.currentPointers[v]=h)}f.length!==0&&this._moveCallback(c,f,a)},this._triggerPointerEnd=(a,c)=>{if(!a0(c)&&c.buttons&1)return!1;const u=this.currentPointers.findIndex(h=>h.id===a.id);if(u===-1)return!1;this.currentPointers.splice(u,1),this.startPointers.splice(u,1),this._excludeFromButtonsCheck.delete(a.id);const f=!(c.type==="mouseup"||c.type==="touchend"||c.type==="pointerup");return this._endCallback(a,c,f),!0},this._pointerEnd=a=>{if(this._triggerPointerEnd(new ki(a),a))if(gu(a)){if(this.currentPointers.length)return;this._element.removeEventListener(this._rawUpdates?"pointerrawupdate":"pointermove",this._move),this._element.removeEventListener("pointerup",this._pointerEnd),this._element.removeEventListener("pointercancel",this._pointerEnd)}else window.removeEventListener("mousemove",this._move),window.removeEventListener("mouseup",this._pointerEnd)},this._touchEnd=a=>{for(const c of Array.from(a.changedTouches))this._triggerPointerEnd(new ki(c),a)},this._startCallback=n,this._moveCallback=s,this._endCallback=r,this._rawUpdates=o&&"onpointerrawupdate"in window,self.PointerEvent&&!i?this._element.addEventListener("pointerdown",this._pointerStart):(this._element.addEventListener("mousedown",this._pointerStart),this._element.addEventListener("touchstart",this._touchStart),this._element.addEventListener("touchmove",this._move),this._element.addEventListener("touchend",this._touchEnd),this._element.addEventListener("touchcancel",this._touchEnd))}stop(){this._element.removeEventListener("pointerdown",this._pointerStart),this._element.removeEventListener("mousedown",this._pointerStart),this._element.removeEventListener("touchstart",this._touchStart),this._element.removeEventListener("touchmove",this._move),this._element.removeEventListener("touchend",this._touchEnd),this._element.removeEventListener("touchcancel",this._touchEnd),this._element.removeEventListener(this._rawUpdates?"pointerrawupdate":"pointermove",this._move),this._element.removeEventListener("pointerup",this._pointerEnd),this._element.removeEventListener("pointercancel",this._pointerEnd),window.removeEventListener("mousemove",this._move),window.removeEventListener("mouseup",this._pointerEnd)}_triggerPointerStart(t,n){return this._startCallback(t,n)?(this.currentPointers.push(t),this.startPointers.push(t),!0):!1}}const zf="min-scale",Z6="allow-pan-min-scale",Q6="reset-to-min-scale-limit",eA="reach-min-scale-strategy",l0="stop-propagate-handled",K1e="none";function tA(e,t){return t?Math.sqrt((t.clientX-e.clientX)**2+(t.clientY-e.clientY)**2):0}function nA(e,t){return t?{clientX:(e.clientX+t.clientX)/2,clientY:(e.clientY+t.clientY)/2}:e}function sA(e,t){return typeof e=="number"?e:e.trimRight().endsWith("%")?t*parseFloat(e)/100:parseFloat(e)}let rA;function PO(){return rA||(rA=document.createElementNS("http://www.w3.org/2000/svg","svg"))}function c0(){return PO().createSVGMatrix()}function oA(){return PO().createSVGPoint()}const u0=.01,d0=-1,f0=-1,x1e=0,iA=(e,t)=>Math.round(e*100)-Math.round(t*100);let Y1e=class extends HTMLElement{static get observedAttributes(){return[zf]}constructor(){super(),this._transform=c0(),new MutationObserver(()=>this._stageElChange()).observe(this,{childList:!0});const t=new G1e(this,{start:(n,s)=>{if(t.currentPointers.length===2||!this._positioningEl)return!1;const r=t.currentPointers.length+1===1;return!(r&&!this._allowPan())&&(this._maybeStopPropagate(s),r||this._maybeEmitCancel([n,...t.currentPointers])),s.preventDefault(),!0},move:(n,s,r)=>{this._onPointerMove(n,t.currentPointers,r)},end:(n,s)=>{this._onPointerEnd(n,t.currentPointers,s)}});this.addEventListener("wheel",n=>this._onWheel(n)),this.addEventListener("click",n=>this._onClick(n,t))}attributeChangedCallback(t,n,s){t===zf&&this.scale<this.minScale&&this.setTransform({scale:this.minScale})}get minScale(){const t=this.getAttribute(zf);if(!t)return u0;const n=parseFloat(t);return Number.isFinite(n)?Math.max(u0,n):u0}set minScale(t){this.setAttribute(zf,String(t))}get reachMinScaleStrategy(){return this.getAttribute(eA)||K1e}set reachMinScaleStrategy(t){this.setAttribute(eA,t)}get allowPanMinScale(){const t=this.getAttribute(Z6);if(!t)return d0;const n=parseFloat(t);return Number.isFinite(n)?Math.max(d0,n):d0}set allowPanMinScale(t){this.setAttribute(Z6,String(t))}get resetToMinScaleLimit(){const t=this.getAttribute(Q6);if(!t)return f0;const n=parseFloat(t);return Number.isFinite(n)?Math.max(f0,n):f0}set resetToMinScaleLimit(t){this.setAttribute(Q6,String(t))}get stopPropagateHandled(){return this.hasAttribute(l0)}set stopPropagateHandled(t){t?this.setAttribute(l0,""):this.removeAttribute(l0)}connectedCallback(){this._stageElChange()}get x(){return this._transform.e}get y(){return this._transform.f}get scale(){return this._transform.a}scaleTo(t,n={}){let{originX:s=0,originY:r=0}=n;const{relativeTo:o="content",allowChangeEvent:i=!1}=n,a=o==="content"?this._positioningEl:this;if(!a||!this._positioningEl){this.setTransform({scale:t,allowChangeEvent:i});return}const c=a.getBoundingClientRect();if(s=sA(s,c.width),r=sA(r,c.height),o==="content")s+=this.x,r+=this.y;else{const u=this._positioningEl.getBoundingClientRect();s-=u.left,r-=u.top}this._applyChange({allowChangeEvent:i,originX:s,originY:r,scaleDiff:t/this.scale})}setTransform(t={}){const{scale:n=this.scale,allowChangeEvent:s=!1}=t;let{x:r=this.x,y:o=this.y}=t;if(!this._positioningEl){this._updateTransform(n,r,o,s);return}const i=this.getBoundingClientRect(),a=this._positioningEl.getBoundingClientRect();if(!i.width||!i.height){this._updateTransform(n,r,o,s);return}let c=oA();c.x=a.left-i.left,c.y=a.top-i.top;let u=oA();u.x=a.width+c.x,u.y=a.height+c.y;const f=c0().translate(r,o).scale(n).multiply(this._transform.inverse());c=c.matrixTransform(f),u=u.matrixTransform(f),c.x>i.width?r+=i.width-c.x:u.x<0&&(r+=-u.x),c.y>i.height?o+=i.height-c.y:u.y<0&&(o+=-u.y),this._updateTransform(n,r,o,s)}_updateTransform(t,n,s,r){if(t<this.minScale&&(t=this.minScale),!(t===this.scale&&n===this.x&&s===this.y)&&(this._transform.e=n,this._transform.f=s,this._transform.d=this._transform.a=t,this.style.setProperty("--x",this.x+"px"),this.style.setProperty("--y",this.y+"px"),this.style.setProperty("--scale",this.scale+""),r)){const o=new Event("change",{bubbles:!0});this.dispatchEvent(o)}}_stageElChange(){this._positioningEl=void 0,this.children.length!==0&&(this._positioningEl=this.children[0],this.children.length>1&&console.warn("<pinch-zoom> must not have more than one child."),this.setTransform({allowChangeEvent:!0}))}_onWheel(t){if(!this._positioningEl)return;t.preventDefault();const n=this._positioningEl.getBoundingClientRect();let{deltaY:s}=t;const{ctrlKey:r,deltaMode:o}=t;o===1&&(s*=15);const a=1-s/(r?100:300),c=a<1;this._applyChange({scaleDiff:a,originX:t.clientX-n.left,originY:t.clientY-n.top,allowChangeEvent:!0}),c&&this._maybeResetScale()}_onPointerMove(t,n,s){if(!this._positioningEl||t.length<2&&!this._allowPan())return;const o=this._positioningEl.getBoundingClientRect(),i=nA(t[0],t[1]),a=nA(n[0],n[1]),c=i.clientX-o.left,u=i.clientY-o.top,f=tA(t[0],t[1]),h=tA(n[0],n[1]),v=f?h/f:1;this._applyChange({originX:c,originY:u,scaleDiff:v,panX:a.clientX-i.clientX,panY:a.clientY-i.clientY,allowChangeEvent:!0}),this._maybeStopPropagate(s)}_maybeResetScale(){iA(this.scale,this.resetToMinScaleLimit)<=0&&this._resetToMinScale()}_onPointerEnd(t,n,s){if(!this._positioningEl)return;const r=1+n.length,o=r>=2,i=r==1;o&&this._maybeResetScale(),!(i&&!this._allowPan())&&this._maybeStopPropagate(s)}_resetToMinScale(){this.reachMinScaleStrategy==="reset"?this.setTransform({scale:this.minScale,x:0,y:0}):this.setTransform({scale:this.minScale})}_applyChange(t={}){const{panX:n=0,panY:s=0,originX:r=0,originY:o=0,scaleDiff:i=1,allowChangeEvent:a=!1}=t,c=c0().translate(n,s).translate(r,o).translate(this.x,this.y).scale(i).translate(-r,-o).scale(this.scale);this.setTransform({allowChangeEvent:a,scale:c.a,x:c.e,y:c.f})}_maybeStopPropagate(t){this.stopPropagateHandled&&t.stopPropagation()}_allowPan(){return this.allowPanMinScale>0&&iA(this.scale,this.allowPanMinScale)>0}_maybeEmitCancel(t){const n=s=>new PointerEvent("pointercancel",{pointerId:s.id,clientX:s.clientX,clientY:s.clientY});this.stopPropagateHandled&&t.forEach(s=>{this.parentElement&&typeof this.parentElement.dispatchEvent=="function"&&this.parentElement.dispatchEvent(n(s))})}_onClick(t,n){if(t.button!==x1e)return;!(n.currentPointers.length===0&&!this._allowPan())&&this._maybeStopPropagate(t)}};customElements.define("pinch-zoom",Y1e);const X1e={methods:{setTransform({scale:e,x:t,y:n}){this.$el.setTransform({scale:e,x:t,y:n})}},created(){}};function J1e(e,t,n,s,r,o){return p(),b("pinch-zoom",An({class:"pinch-zoom-parent"},e.$attrs),[Ot(e.$slots,"default")],16)}const Z1e=ge(X1e,[["render",J1e]]),Q1e=[-1,0],eve=[1,0],tve=[0,-1],nve=[0,1],sve=0,Hy=(e,t)=>[t[0]-e[0],t[1]-e[1]],rve=e=>[e.screenX,e.screenY],LO=e=>rve(e.touches[0]),h0=e=>[e.clientX,e.clientY],ka=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),OO=e=>[e[1],-e[0]],Gh=(e,t)=>e[0]*t[0]+e[1]*t[1],Kh=(e,t)=>{const n=Gh(e,t)/Gh(t,t);return[n*t[0],n*t[1]]},ove=(e,t,n=30,s=1)=>({direction:e,onSwipe:t,threshold:n,perpendicularTolerance:s,_startPos:[0,0],_swiping:!1}),ive=(e,t)=>{t._startPos=LO(e),t._swiping=!0},ave=(e,t)=>{if(!t._swiping)return;const n=Hy(t._startPos,LO(e));if(ka(n)<t.threshold||Gh(n,t.direction)<0)return;const s=Kh(n,t.direction),r=OO(t.direction),o=Kh(n,r);ka(s)*t.perpendicularTolerance<ka(o)||(t.onSwipe(),t._swiping=!1)};class lve{constructor({direction:t,swipePreviewCallback:n,swipeEndCallback:s,swipeCancelCallback:r,swipelessClickCallback:o,threshold:i=30,perpendicularTolerance:a=1,disableClickThreshold:c=1}){const u=()=>{};this.direction=t,this.swipePreviewCallback=n||u,this.swipeEndCallback=s||u,this.swipeCancelCallback=r||u,this.swipelessClickCallback=o||u,this.threshold=typeof i=="function"?i:()=>i,this.disableClickThreshold=typeof c=="function"?c:()=>c,this.perpendicularTolerance=a,this._reset()}_reset(){this._startPos=[0,0],this._pointerId=-1,this._swiping=!1,this._swiped=!1,this._preventNextClick=!1}start(t){t.button===sve&&(this._startPos=h0(t),this._pointerId=t.pointerId,this._swiping=!0,this._swiped=!1)}move(t){if(this._swiping&&this._pointerId===t.pointerId){this._swiped=!0;const n=h0(t),s=Hy(this._startPos,n);this.swipePreviewCallback(s)}}cancel(t){!this._swiping||this._pointerId!==t.pointerId||this.swipeCancelCallback()}end(t){if(!this._swiping||this._pointerId!==t.pointerId)return;this._swiping=!1;const n=h0(t),s=Hy(this._startPos,n),r=(()=>{if(ka(s)<this.threshold())return 0;const o=Gh(s,this.direction)>0,i=Kh(s,this.direction),a=OO(this.direction),c=Kh(s,a);return ka(i)*this.perpendicularTolerance<ka(c)?0:o?1:-1})();this._swiped&&this.swipeEndCallback(r),this._reset(),ka(s)>=this.disableClickThreshold()&&t.pointerType==="mouse"&&(this._preventNextClick=!0)}click(){this._preventNextClick||this.swipelessClickCallback(),this._reset()}}const eo={DIRECTION_LEFT:Q1e,DIRECTION_RIGHT:eve,DIRECTION_UP:tve,DIRECTION_DOWN:nve,swipeGesture:ove,beginSwipe:ive,updateSwipe:ave,SwipeAndClickGesture:lve},cve={props:{direction:{type:Array},threshold:{type:Function,default:()=>30},disableClickThreshold:{type:Function,default:()=>1},perpendicularTolerance:{type:Number,default:1}},methods:{handlePointerDown(e){this.$gesture.start(e)},handlePointerMove(e){this.$gesture.move(e)},handlePointerUp(e){this.$gesture.end(e)},handlePointerCancel(e){this.$gesture.cancel(e)},handleNativeClick(e){this.$gesture.click(e)},preview(e){this.$emit("preview-requested",e)},end(e){this.$emit("swipe-finished",e)},click(){this.$emit("swipeless-clicked")},cancel(){this.$emit("swipe-canceled")}},created(){this.$gesture=new eo.SwipeAndClickGesture({direction:this.direction,threshold:this.threshold,disableClickThreshold:this.disableClickThreshold,perpendicularTolerance:this.perpendicularTolerance,swipePreviewCallback:this.preview,swipeEndCallback:this.end,swipeCancelCallback:this.cancel,swipelessClickCallback:this.click})}};function uve(e,t,n,s,r,o){return p(),b("div",An(e.$attrs,{onPointerdown:t[0]||(t[0]=(...i)=>e.handlePointerDown&&e.handlePointerDown(...i)),onPointermove:t[1]||(t[1]=(...i)=>e.handlePointerMove&&e.handlePointerMove(...i)),onPointerup:t[2]||(t[2]=(...i)=>e.handlePointerUp&&e.handlePointerUp(...i)),onPointercancel:t[3]||(t[3]=(...i)=>e.handlePointerCancel&&e.handlePointerCancel(...i)),onClick:t[4]||(t[4]=(...i)=>e.handleNativeClick&&e.handleNativeClick(...i))}),[Ot(e.$slots,"default")],16)}const dve=ge(cve,[["render",uve]]);et.add(qa,yd,Zs,Xn);const fve={components:{StillImage:Ji,VideoAttachment:ZL,PinchZoom:Z1e,SwipeClick:dve,Modal:dd,Flash:JL},data(){return{loading:!1,swipeDirection:eo.DIRECTION_LEFT,swipeThreshold:()=>window.innerWidth*.25,pinchZoomMinScale:1,pinchZoomScaleResetLimit:1.2}},computed:{showing(){return hs().activated},media(){return hs().media},description(){return this.currentMedia.description},currentIndex(){return hs().currentIndex},currentMedia(){return this.media[this.currentIndex]},canNavigate(){return this.media.length>1},type(){return this.currentMedia?this.getType(this.currentMedia):null},swipeDisableClickThreshold(){return()=>this.canNavigate?1:30}},methods:{getType(e){return Fa.fileType(e.mimetype)},hide(){setTimeout(()=>{hs().closeMediaViewer()},100)},hideIfNotSwiped(e){const t=this.$refs.swipeClick;t?t.$gesture.click(e):this.hide()},goPrev(){if(this.canNavigate){const e=this.currentIndex===0?this.media.length-1:this.currentIndex-1,t=this.media[e];this.getType(t)==="image"&&(this.loading=!0),hs().setCurrentMedia(t)}},goNext(){if(this.canNavigate){const e=this.currentIndex===this.media.length-1?0:this.currentIndex+1,t=this.media[e];this.getType(t)==="image"&&(this.loading=!0),hs().setCurrentMedia(t)}},onImageLoaded(){this.loading=!1},handleSwipePreview(e){this.$refs.pinchZoom.setTransform({scale:1,x:e[0],y:0})},handleSwipeEnd(e){this.$refs.pinchZoom.setTransform({scale:1,x:0,y:0}),e>0?this.goNext():e<0&&this.goPrev()},handleKeyupEvent(e){this.showing&&e.keyCode===27&&this.hide()},handleKeydownEvent(e){this.showing&&(e.keyCode===39?this.goNext():e.keyCode===37&&this.goPrev())}},mounted(){window.addEventListener("popstate",this.hide),document.addEventListener("keyup",this.handleKeyupEvent),document.addEventListener("keydown",this.handleKeydownEvent)},unmounted(){window.removeEventListener("popstate",this.hide),document.removeEventListener("keyup",this.handleKeyupEvent),document.removeEventListener("keydown",this.handleKeydownEvent)}},hve=["src","alt","title"],pve=["src","alt","title"],mve=["title"],gve=["title"],vve=["title"],bve={key:6,class:"description"},yve={class:"counter"},_ve={key:7,class:"loading-spinner"};function wve(e,t,n,s,r,o){const i=O("PinchZoom"),a=O("SwipeClick"),c=O("VideoAttachment"),u=O("Flash"),f=O("FAIcon"),h=O("Modal");return e.showing?(p(),Y(h,{key:0,class:"media-modal-view",onBackdropClicked:e.hideIfNotSwiped},{default:X(()=>[e.type==="image"?(p(),Y(a,{key:0,ref:"swipeClick",class:"modal-image-container",direction:e.swipeDirection,threshold:e.swipeThreshold,"disable-click-threshold":e.swipeDisableClickThreshold,onPreviewRequested:e.handleSwipePreview,onSwipeFinished:e.handleSwipeEnd,onSwipelessClicked:e.hide},{default:X(()=>[T(i,{ref:"pinchZoom",class:"modal-image-container-inner",selector:".modal-image","reach-min-scale-strategy":"reset","stop-propagate-handled":"stop-propgate-handled","allow-pan-min-scale":e.pinchZoomMinScale,"min-scale":e.pinchZoomMinScale,"reset-to-min-scale-limit":e.pinchZoomScaleResetLimit},{default:X(()=>[g("img",{class:he([{loading:e.loading},"modal-image"]),src:e.currentMedia.url,alt:e.currentMedia.description,title:e.currentMedia.description,onLoad:t[0]||(t[0]=(...v)=>e.onImageLoaded&&e.onImageLoaded(...v))},null,42,hve)]),_:1},8,["allow-pan-min-scale","min-scale","reset-to-min-scale-limit"])]),_:1},8,["direction","threshold","disable-click-threshold","onPreviewRequested","onSwipeFinished","onSwipelessClicked"])):E("",!0),e.type==="video"?(p(),Y(c,{key:1,class:"modal-image",attachment:e.currentMedia,controls:!0},null,8,["attachment"])):E("",!0),e.type==="audio"?(p(),b("audio",{key:2,class:"modal-image",src:e.currentMedia.url,alt:e.currentMedia.description,title:e.currentMedia.description,controls:""},null,8,pve)):E("",!0),e.type==="flash"?(p(),Y(u,{key:3,class:"modal-image",src:e.currentMedia.url,alt:e.currentMedia.description,title:e.currentMedia.description},null,8,["src","alt","title"])):E("",!0),e.canNavigate?(p(),b("button",{key:4,title:e.$t("media_modal.previous"),class:"modal-view-button modal-view-button-arrow modal-view-button-arrow--prev",onClick:t[1]||(t[1]=Te((...v)=>e.goPrev&&e.goPrev(...v),["stop","prevent"]))},[T(f,{class:"button-icon arrow-icon",icon:"chevron-left"})],8,mve)):E("",!0),e.canNavigate?(p(),b("button",{key:5,title:e.$t("media_modal.next"),class:"modal-view-button modal-view-button-arrow modal-view-button-arrow--next",onClick:t[2]||(t[2]=Te((...v)=>e.goNext&&e.goNext(...v),["stop","prevent"]))},[T(f,{class:"button-icon arrow-icon",icon:"chevron-right"})],8,gve)):E("",!0),g("button",{class:"modal-view-button modal-view-button-hide",title:e.$t("media_modal.hide"),onClick:t[3]||(t[3]=Te((...v)=>e.hide&&e.hide(...v),["stop","prevent"]))},[T(f,{class:"button-icon",icon:"times"})],8,vve),e.description?(p(),b("span",bve,w(e.description),1)):E("",!0),g("span",yve,w(e.$t("media_modal.counter",{current:e.currentIndex+1,total:e.media.length},e.currentIndex+1)),1),e.loading?(p(),b("span",_ve,[T(f,{spin:"",icon:"circle-notch",size:"5x"})])):E("",!0)]),_:1},8,["onBackdropClicked"])):E("",!0)}const Sve=ge(fve,[["render",wve]]);et.add(K5,z5,tP,pd,ic,Op,md,Ba,rP,t2,Lp,kJ,Ep,aP);const $ve={props:["logout"],data:()=>({closed:!0,closeGesture:void 0}),created(){this.closeGesture=eo.swipeGesture(eo.DIRECTION_LEFT,this.toggleDrawer),this.currentUser&&this.currentUser.locked&&this.$store.dispatch("startFetchingFollowRequests")},components:{UserCard:Cd},computed:{currentUser(){return this.$store.state.users.currentUser},shout(){return Gl().joined},unseenNotifications(){return __(this.$store)},unseenNotificationsCount(){return this.unseenNotifications.length},suggestionsEnabled(){return this.$store.state.instance.suggestionsEnabled},logo(){return this.$store.state.instance.logo},hideSitename(){return this.$store.state.instance.hideSitename},sitename(){return this.$store.state.instance.name},followRequestCount(){return this.$store.state.api.followRequests.length},privateMode(){return this.$store.state.instance.private},federating(){return this.$store.state.instance.federating},timelinesRoute(){let e;return Xe().lastTimeline&&(e=Xe().lastTimeline),e=this.currentUser?"friends":"public-timeline",yO.has(e)?{name:e,params:{username:this.currentUser.screen_name}}:{name:e}},...sn(ms,{supportsAnnouncements:e=>e.supportsAnnouncements,unreadAnnouncementCount:"unreadAnnouncementCount"}),...mn({pleromaChatMessagesAvailable:e=>e.instance.pleromaChatMessagesAvailable}),...bn(["unreadChatCount","draftCount"])},methods:{toggleDrawer(){this.closed=!this.closed},doLogout(){this.logout(),this.toggleDrawer()},touchStart(e){eo.beginSwipe(e,this.closeGesture)},touchMove(e){eo.updateSwipe(e,this.closeGesture)},openSettingsModal(){Xe().openSettingsModal("user")},openAdminModal(){Xe().openSettingsModal("admin")}}},kve={key:1,class:"side-drawer-logo-wrapper"},Cve=["src"],Tve={key:0},Ave={key:0,class:"badge -notification"},Eve={key:0},Ive={key:0,class:"badge -notification"},Pve={key:0,class:"badge -notification"},Lve={key:0,class:"badge -neutral"};function Ove(e,t,n,s,r,o){const i=O("UserCard"),a=O("FAIcon"),c=O("router-link");return p(),b("div",{class:he(["side-drawer-container mobile-drawer",{"side-drawer-container-closed":e.closed,"side-drawer-container-open":!e.closed}])},[g("div",{class:he(["side-drawer-darken",{"side-drawer-darken-closed":e.closed}])},null,2),g("div",{class:he(["side-drawer",{"side-drawer-closed":e.closed}]),onTouchstart:t[21]||(t[21]=(...u)=>e.touchStart&&e.touchStart(...u)),onTouchmove:t[22]||(t[22]=(...u)=>e.touchMove&&e.touchMove(...u))},[g("div",{class:"side-drawer-heading",onClick:t[0]||(t[0]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[e.currentUser?(p(),Y(i,{key:0,"user-id":e.currentUser.id,"hide-bio":!0},null,8,["user-id"])):(p(),b("div",kve,[g("img",{src:e.logo},null,8,Cve),e.hideSitename?E("",!0):(p(),b("span",Tve,w(e.sitename),1))]))]),g("ul",null,[e.currentUser?E("",!0):(p(),b("li",{key:0,onClick:t[1]||(t[1]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"login"},class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"sign-in-alt"}),de(" "+w(e.$t("login.login")),1)]),_:1})])),e.currentUser||!e.privateMode?(p(),b("li",{key:1,onClick:t[2]||(t[2]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:e.timelinesRoute,class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"home"}),de(" "+w(e.$t("nav.timelines")),1)]),_:1},8,["to"])])):E("",!0),e.currentUser?(p(),b("li",{key:2,onClick:t[3]||(t[3]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"lists"},class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"list"}),de(" "+w(e.$t("nav.lists")),1)]),_:1})])):E("",!0),e.currentUser?(p(),b("li",{key:3,onClick:t[4]||(t[4]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"bookmarks"},class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"bookmark"}),de(" "+w(e.$t("nav.bookmarks")),1)]),_:1})])):E("",!0),e.currentUser&&e.pleromaChatMessagesAvailable?(p(),b("li",{key:4,onClick:t[5]||(t[5]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"chats",params:{username:e.currentUser.screen_name}},style:{position:"relative"},class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"comments"}),de(" "+w(e.$t("nav.chats"))+" ",1),e.unreadChatCount?(p(),b("span",Ave,w(e.unreadChatCount),1)):E("",!0)]),_:1},8,["to"])])):E("",!0)]),e.currentUser?(p(),b("ul",Eve,[g("li",{onClick:t[6]||(t[6]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"interactions",params:{username:e.currentUser.screen_name}},class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"bell"}),de(" "+w(e.$t("nav.interactions")),1)]),_:1},8,["to"])]),e.currentUser.locked?(p(),b("li",{key:0,onClick:t[7]||(t[7]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:"/friend-requests",class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"user-plus"}),de(" "+w(e.$t("nav.friend_requests"))+" ",1),e.followRequestCount>0?(p(),b("span",Ive,w(e.followRequestCount),1)):E("",!0)]),_:1})])):E("",!0),e.shout?(p(),b("li",{key:1,onClick:t[8]||(t[8]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"shout-panel"},class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"bullhorn"}),de(" "+w(e.$t("shoutbox.title")),1)]),_:1})])):E("",!0)])):E("",!0),g("ul",null,[e.currentUser||!e.privateMode?(p(),b("li",{key:0,onClick:t[9]||(t[9]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"search"},class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"search"}),de(" "+w(e.$t("nav.search")),1)]),_:1})])):E("",!0),e.currentUser&&e.suggestionsEnabled?(p(),b("li",{key:1,onClick:t[10]||(t[10]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"who-to-follow"},class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"user-plus"}),de(" "+w(e.$t("nav.who_to_follow")),1)]),_:1})])):E("",!0),g("li",{onClick:t[12]||(t[12]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[g("button",{class:"menu-item",onClick:t[11]||(t[11]=(...u)=>e.openSettingsModal&&e.openSettingsModal(...u))},[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"cog"}),de(" "+w(e.$t("settings.settings")),1)])]),g("li",{onClick:t[13]||(t[13]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"about"},class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"info-circle"}),de(" "+w(e.$t("nav.about")),1)]),_:1})]),e.currentUser&&e.currentUser.role==="admin"?(p(),b("li",{key:2,onClick:t[15]||(t[15]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[g("button",{class:"menu-item",onClick:t[14]||(t[14]=Te((...u)=>e.openAdminModal&&e.openAdminModal(...u),["stop"]))},[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"tachometer-alt"}),de(" "+w(e.$t("nav.administration")),1)])])):E("",!0),e.currentUser&&e.supportsAnnouncements?(p(),b("li",{key:3,onClick:t[16]||(t[16]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"announcements"},class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"bullhorn"}),de(" "+w(e.$t("nav.announcements"))+" ",1),e.unreadAnnouncementCount?(p(),b("span",Pve,w(e.unreadAnnouncementCount),1)):E("",!0)]),_:1})])):E("",!0),e.currentUser?(p(),b("li",{key:4,onClick:t[17]||(t[17]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"drafts"},class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"file-pen"}),de(" "+w(e.$t("nav.drafts"))+" ",1),e.draftCount?(p(),b("span",Lve,w(e.draftCount),1)):E("",!0)]),_:1})])):E("",!0),e.currentUser?(p(),b("li",{key:5,onClick:t[18]||(t[18]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[T(c,{to:{name:"edit-navigation"},class:"menu-item"},{default:X(()=>[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"compass"}),de(" "+w(e.$t("nav.edit_nav_mobile")),1)]),_:1})])):E("",!0),e.currentUser?(p(),b("li",{key:6,onClick:t[20]||(t[20]=(...u)=>e.toggleDrawer&&e.toggleDrawer(...u))},[g("button",{class:"menu-item",onClick:t[19]||(t[19]=(...u)=>e.doLogout&&e.doLogout(...u))},[T(a,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"sign-out-alt"}),de(" "+w(e.$t("login.logout")),1)])])):E("",!0)])],34),g("div",{class:he(["side-drawer-click-outside",{"side-drawer-click-outside-closed":e.closed}]),onClick:t[23]||(t[23]=Te((...u)=>e.toggleDrawer&&e.toggleDrawer(...u),["stop","prevent"]))},null,2)],2)}const RO=ge($ve,[["render",Ove]]);et.add(YJ);const Rve=new Set(["chats","chat","lists-edit"]),Mve={data(){return{hidden:!1,scrollingDown:!1,inputActive:!1,oldScrollPos:0,amountScrolled:0}},created(){this.autohideFloatingPostButton&&this.activateFloatingPostButtonAutohide(),window.addEventListener("resize",this.handleOSK)},unmounted(){this.autohideFloatingPostButton&&this.deactivateFloatingPostButtonAutohide(),window.removeEventListener("resize",this.handleOSK)},computed:{isLoggedIn(){return!!this.$store.state.users.currentUser},isHidden(){return Rve.has(this.$route.name)?!0:this.autohideFloatingPostButton&&(this.hidden||this.inputActive)},isPersistent(){return!!this.$store.getters.mergedConfig.alwaysShowNewPostButton},autohideFloatingPostButton(){return!!this.$store.getters.mergedConfig.autohideFloatingPostButton}},watch:{autohideFloatingPostButton:function(e){e?this.activateFloatingPostButtonAutohide():this.deactivateFloatingPostButtonAutohide()}},methods:{activateFloatingPostButtonAutohide(){window.addEventListener("scroll",this.handleScrollStart),window.addEventListener("scroll",this.handleScrollEnd)},deactivateFloatingPostButtonAutohide(){window.removeEventListener("scroll",this.handleScrollStart),window.removeEventListener("scroll",this.handleScrollEnd)},openPostForm(){Ai().openPostStatusModal()},handleOSK(){const e=window.innerWidth<350,t=e&&window.innerHeight<345,s=!e&&window.innerWidth<450&&window.innerHeight<560;t||s?this.inputActive=!0:this.inputActive=!1},handleScrollStart:Z.debounce(function(){window.scrollY>this.oldScrollPos?this.hidden=!0:this.hidden=!1,this.oldScrollPos=window.scrollY},100,{leading:!0,trailing:!1}),handleScrollEnd:Z.debounce(function(){this.hidden=!1,this.oldScrollPos=window.scrollY},100,{leading:!1,trailing:!0})}},Nve=["title"];function Fve(e,t,n,s,r,o){const i=O("FAIcon");return e.isLoggedIn?(p(),b("button",{key:0,class:he(["MobilePostButton button-default new-status-button",{hidden:e.isHidden,"always-show":e.isPersistent}]),title:e.$t("post_status.new_status"),onClick:t[0]||(t[0]=(...a)=>e.openPostForm&&e.openPostForm(...a))},[T(i,{icon:"pen"})],10,Nve)):E("",!0)}const Dve=ge(Mve,[["render",Fve]]),Uve={props:["users"],computed:{slicedUsers(){return this.users?this.users.slice(0,15):[]}},components:{UserAvatar:er},methods:{userProfileLink(e){return ao(e.id,e.screen_name,this.$store.state.instance.restrictedNicknames)}}},jve={class:"avatars"};function Bve(e,t,n,s,r,o){const i=O("UserAvatar"),a=O("router-link");return p(),b("div",jve,[(p(!0),b(Se,null,We(e.slicedUsers,c=>(p(),Y(a,{key:c.id,to:e.userProfileLink(c),class:"avatars-item"},{default:X(()=>[T(i,{user:c,class:"avatar-small"},null,8,["user"])]),_:2},1032,["to"]))),128))])}const MO=ge(Uve,[["render",Bve]]);et.add(Zs);const zve={name:"StatusPopover",props:["statusId"],data(){return{error:!1}},computed:{status(){return Z.find(this.$store.state.statuses.allStatuses,{id:this.statusId})}},components:{Status:gr(()=>Ve(()=>Promise.resolve().then(()=>nye),void 0)),Popover:gr(()=>Ve(()=>Promise.resolve().then(()=>U2),void 0))},methods:{enter(){if(!this.status){if(!this.statusId){this.error=!0;return}this.$store.dispatch("fetchStatus",this.statusId).then(()=>this.error=!1).catch(()=>this.error=!0)}}},watch:{status(e,t){e!==t&&this.$nextTick(()=>this.$refs.popover.updateStyles())}}},qve={key:1,class:"status-preview-no-content faint"},Hve={key:2,class:"status-preview-no-content"};function Vve(e,t,n,s,r,o){const i=O("Status"),a=O("FAIcon"),c=O("Popover");return p(),Y(c,{ref:"popover",trigger:"hover","stay-on-click":!0,"popover-class":"popover-default status-popover","bound-to":{x:"container"},onShow:e.enter},{trigger:X(()=>[Ot(e.$slots,"default")]),content:X(()=>[e.status?(p(),Y(i,{key:0,"is-preview":!0,statusoid:e.status,compact:!0},null,8,["statusoid"])):e.error?(p(),b("div",qve,w(e.$t("status.status_unavailable")),1)):(p(),b("div",Hve,[T(a,{icon:"circle-notch",spin:"",size:"2x"})]))]),_:3},8,["onShow"])}const Wve=ge(zve,[["render",Vve]]),Gve={name:"UserPopover",props:["userId","overlayCenters","disabled","overlayCentersSelector"],components:{UserCard:Cd,Popover:gr(()=>Ve(()=>Promise.resolve().then(()=>U2),void 0))},computed:{userPopoverAvatarAction(){return this.$store.getters.mergedConfig.userPopoverAvatarAction},userPopoverOverlay(){return this.$store.getters.mergedConfig.userPopoverOverlay}}};function Kve(e,t,n,s,r,o){const i=O("UserCard"),a=O("Popover");return p(),Y(a,{trigger:"click","popover-class":"popover-default user-popover","overlay-centers-selector":e.overlayCentersSelector||".user-info .Avatar","overlay-centers":e.overlayCenters&&e.userPopoverOverlay,disabled:e.disabled},{trigger:X(()=>[Ot(e.$slots,"default")]),content:X(({close:c})=>[T(i,{class:"user-popover","show-close":!0,"show-expand":!0,"user-id":e.userId,"hide-bio":!0,"avatar-action":e.userPopoverAvatarAction=="close"?c:e.userPopoverAvatarAction,onClose:c},null,8,["user-id","avatar-action","onClose"])]),_:3},8,["overlay-centers-selector","overlay-centers","disabled"])}const om=ge(Gve,[["render",Kve]]),Q2=Object.freeze(Object.defineProperty({__proto__:null,default:om},Symbol.toStringTag,{value:"Module"}));et.add(Zs);const xve={name:"UserListPopover",props:["users"],components:{RichContent:Mr,UnicodeDomainIndicator:Zp,Popover:gr(()=>Ve(()=>Promise.resolve().then(()=>U2),void 0)),UserAvatar:gr(()=>Ve(()=>Promise.resolve().then(()=>Jce),void 0))},computed:{usersCapped(){return this.users.slice(0,16)}}},Yve={class:"user-list-popover"},Xve={class:"user-list-names"},Jve={class:"user-list-screen-name"};function Zve(e,t,n,s,r,o){const i=O("UserAvatar"),a=O("RichContent"),c=O("UnicodeDomainIndicator"),u=O("FAIcon"),f=O("Popover");return p(),Y(f,{trigger:"hover",placement:"top",offset:{y:5}},{trigger:X(()=>[Ot(e.$slots,"default")]),content:X(()=>[g("div",Yve,[e.users.length?(p(!0),b(Se,{key:0},We(e.usersCapped,h=>(p(),b("div",{key:h.id,class:"user-list-row"},[T(i,{user:h,class:"avatar-small",compact:!0},null,8,["user"]),g("div",Xve,[T(a,{class:"username",title:"@"+h.screen_name_ui,html:h.name_html,emoji:h.emoji},null,8,["title","html","emoji"]),g("span",Jve,w(h.screen_name_ui),1),T(c,{user:h},null,8,["user"])])]))),128)):(p(),Y(u,{key:1,icon:"circle-notch",spin:"",size:"3x"}))])]),_:3})}const NO=ge(xve,[["render",Zve]]);et.add(r2,vd,Rp);const p0=12,Qve={name:"EmojiReactions",components:{UserAvatar:er,UserListPopover:NO,StillImage:Ji},props:["status"],data:()=>({showAll:!1}),computed:{tooManyReactions(){return this.status.emoji_reactions.length>p0},emojiReactions(){return this.showAll?this.status.emoji_reactions:this.status.emoji_reactions.slice(0,p0)},showMoreString(){return`+${this.status.emoji_reactions.length-p0}`},accountsForEmoji(){return this.status.emoji_reactions.reduce((e,t)=>(e[t.name]=t.accounts||[],e),{})},loggedIn(){return!!this.$store.state.users.currentUser},remoteInteractionLink(){return this.$store.getters.remoteInteractionLink({statusId:this.status.id})}},methods:{toggleShowAll(){this.showAll=!this.showAll},reactedWith(e){return this.status.emoji_reactions.find(t=>t.name===e).me},async fetchEmojiReactionsByIfMissing(){if(this.status.emoji_reactions.find(t=>!t.accounts))return await this.$store.dispatch("fetchEmojiReactionsBy",this.status.id)},reactWith(e){this.$store.dispatch("reactWithEmoji",{id:this.status.id,emoji:e})},unreact(e){this.$store.dispatch("unreactWithEmoji",{id:this.status.id,emoji:e})},async emojiOnClick(e){this.loggedIn&&(await this.fetchEmojiReactionsByIfMissing(),this.reactedWith(e)?this.unreact(e):this.reactWith(e))},counterTriggerAttrs(e){return{class:["emoji-reaction-count-button",{"-picked-reaction":this.reactedWith(e.name),toggled:this.reactedWith(e.name)}],"aria-label":this.$t("status.reaction_count_label",{num:e.count},e.count)}}}},ebe={class:"EmojiReactions"},tbe={class:"reaction-emoji"},nbe={key:1,class:"reaction-emoji reaction-emoji-content"},sbe={class:"emoji-reaction-counts"};function rbe(e,t,n,s,r,o){const i=O("StillImage"),a=O("FAIcon"),c=O("FALayers"),u=O("UserListPopover");return p(),b("div",ebe,[(p(!0),b(Se,null,We(e.emojiReactions,f=>(p(),b("span",{key:f.url||f.name,class:"emoji-reaction-container btn-group"},[(p(),Y(Oa(e.loggedIn?"button":"a"),An({ref_for:!0},e.loggedIn?{}:{href:e.remoteInteractionLink},{role:"button",class:["emoji-reaction btn button-default",{"-picked-reaction":e.reactedWith(f.name),toggled:e.reactedWith(f.name)}],title:f.url?f.name:void 0,"aria-pressed":e.reactedWith(f.name),onClick:h=>e.emojiOnClick(f.name,h)}),{default:X(()=>[g("span",tbe,[f.url?(p(),Y(i,{key:0,src:f.url,class:"reaction-emoji-content"},null,8,["src"])):(p(),b("span",nbe,w(f.name),1))]),T(c,null,{default:X(()=>[e.reactedWith(f.name)?(p(),Y(a,{key:0,class:"active-marker",transform:"shrink-6 up-9",icon:"check"})):E("",!0),e.reactedWith(f.name)?(p(),Y(a,{key:2,class:"focus-marker",transform:"shrink-6 up-9",icon:"minus"})):(p(),Y(a,{key:1,class:"focus-marker",transform:"shrink-6 up-9",icon:"plus"}))]),_:2},1024)]),_:2},1040,["class","title","aria-pressed","onClick"])),T(u,{users:e.accountsForEmoji[f.name],class:"emoji-reaction-popover","normal-button":!0,"trigger-attrs":e.counterTriggerAttrs(f),onShow:t[0]||(t[0]=h=>e.fetchEmojiReactionsByIfMissing())},{default:X(()=>[g("span",sbe,w(f.count),1)]),_:2},1032,["users","trigger-attrs"])]))),128)),e.tooManyReactions?(p(),b("a",{key:0,class:"emoji-reaction-expand faint",href:"javascript:void(0)",onClick:t[1]||(t[1]=(...f)=>e.toggleShowAll&&e.toggleShowAll(...f))},w(e.showAll?e.$t("general.show_less"):e.showMoreString),1)):E("",!0)])}const obe=ge(Qve,[["render",rbe]]);et.add(yd,MJ);const ibe={props:["status","close"],data(){return{}},components:{Popover:Jn,StillImage:Ji},computed:{...sn(no,{folders:e=>e.allFolders}),folderId(){return this.status.bookmark_folder_id}},methods:{toggleFolder(e){const t=e===this.folderId?null:e;this.$store.dispatch("bookmark",{id:this.status.id,bookmark_folder_id:t}).then(()=>this.$emit("onSuccess")).catch(n=>this.$emit("onError",n.error.error))}}},abe={class:"dropdown-menu bookmark-folder-menu"},lbe=["onClick"],cbe={key:1,class:"iconLetter fa-scale-110 fa-old-padding"};function ube(e,t,n,s,r,o){const i=O("StillImage");return p(),b("div",abe,[(p(!0),b(Se,null,We(e.folders,a=>(p(),b("div",{key:a.id,class:"menu-item dropdown-item -icon-double"},[g("button",{class:"main-button",onClick:[c=>e.toggleFolder(a.id),t[0]||(t[0]=Te((...c)=>e.close&&e.close(...c),["stop"]))]},[g("span",{class:he(["input menu-checkbox -radio",{"menu-checkbox-checked":e.status.bookmark_folder_id==a.id}])},null,2),a.emoji_url?(p(),Y(i,{key:0,src:a.emoji_url,class:"emoji"},null,8,["src"])):(p(),b("span",cbe,w(a.name[0]),1)),de(" "+w(" "+a.name),1)],8,lbe)]))),128))])}const dbe=ge(ibe,[["render",ube]]);et.add(r2,vd,Rp,Xn,e2,yd,Y_,H5,o2,Z_,Zae,Ap,X_,Jae,x_,i2,OJ,Q5,CZ);const fbe={props:["button","status","extra","status","funcArg","getClass","getComponent","doAction","outerClose"],emits:["interacted"],components:{StatusBookmarkFolderMenu:dbe,EmojiPicker:j2,Popover:Jn},data:()=>({animationState:!1}),computed:{buttonClass(){return[this.button.name+"-button",{"-with-extra":this.button.name==="bookmark","-extra":this.extra,"-quick":!this.extra}]},userIsMuted(){return this.$store.getters.relationship(this.status.user.id).muting},threadIsMuted(){return this.status.thread_muted},hideCustomEmoji(){return!this.$store.state.instance.pleromaCustomEmojiReactionsAvailable},buttonInnerClass(){var e,t;return[this.button.name+"-button",{"main-button":this.extra,"button-unstyled":!this.extra,"-active":(t=(e=this.button).active)==null?void 0:t.call(e,this.funcArg),disabled:this.button.interactive?!this.button.interactive(this.funcArg):!1}]},remoteInteractionLink(){return this.$store.getters.remoteInteractionLink({statusId:this.status.id})}},methods:{addReaction(e){const t=e.insertion,n=this.status.emoji_reactions.find(s=>s.name===t);n&&n.me?this.$store.dispatch("unreactWithEmoji",{id:this.status.id,emoji:t}):this.$store.dispatch("reactWithEmoji",{id:this.status.id,emoji:t})},doActionWrap(e,t=()=>{}){this.button.interactive&&!this.button.interactive(this.funcArg)||(this.$emit("interacted"),e.name==="emoji"?this.$refs.picker.showPicker():(this.animationState=!0,this.getComponent(e)==="button"&&this.doAction(e),setTimeout(()=>{this.animationState=!1},500),t()))}}},hbe={key:0,class:"action-label"},pbe={key:0,class:"action-counter"},mbe={key:1,class:"separator"};function gbe(e,t,n,s,r,o){var h,v,y,S,k,I;const i=O("FAIcon"),a=O("FALayers"),c=O("StatusBookmarkFolderMenu"),u=O("Popover"),f=O("EmojiPicker");return p(),b("div",{class:he(["action-button",e.buttonClass])},[(p(),Y(Oa(e.getComponent(e.button)),{class:he(["action-button-inner",e.buttonInnerClass]),role:"menuitem",type:"button",title:e.$t(e.button.label(e.funcArg)),target:"_blank",tabindex:0,disabled:e.button.interactive?!e.button.interactive(e.funcArg):!1,href:e.getComponent(e.button)=="a"?((v=(h=e.button).link)==null?void 0:v.call(h,e.funcArg))||e.remoteInteractionLink:void 0,onClick:t[0]||(t[0]=C=>e.doActionWrap(e.button,e.outerClose))},{default:X(()=>{var C,$;return[T(a,null,{default:X(()=>{var P,A,R,B,N,W,V,U,ie,le,Pe;return[T(i,{class:"fa-scale-110",icon:e.button.icon(e.funcArg),spin:!e.extra&&e.getComponent(e.button)=="button"&&((A=(P=e.button).animated)==null?void 0:A.call(P))&&e.animationState,style:{"--fa-animation-duration":"750ms"},"fixed-width":""},null,8,["icon","spin"]),!e.buttonClass.disabled&&(!e.button.interactive||(R=e.button)!=null&&R.interactive(e.funcArg))&&((N=(B=e.button).toggleable)!=null&&N.call(B,e.funcArg))&&e.button.active?(p(),b(Se,{key:0},[e.button.active(e.funcArg)?(p(),Y(i,{key:0,class:"active-marker",transform:"shrink-6 up-9 right-15",icon:((V=(W=e.button).activeIndicator)==null?void 0:V.call(W,e.funcArg))||"check"},null,8,["icon"])):E("",!0),e.button.active(e.funcArg)?(p(),Y(i,{key:2,class:"focus-marker",transform:"shrink-6 up-9 right-15",icon:((Pe=(le=e.button).closeIndicator)==null?void 0:Pe.call(le,e.funcArg))||"minus"},null,8,["icon"])):(p(),Y(i,{key:1,class:"focus-marker",transform:"shrink-6 up-9 right-15",icon:((ie=(U=e.button).openIndicator)==null?void 0:ie.call(U,e.funcArg))||"plus"},null,8,["icon"]))],64)):E("",!0)]}),_:1}),e.extra?(p(),b("span",hbe,w(e.$t(e.button.label(e.funcArg))),1)):E("",!0),($=(C=e.button).dropdown)!=null&&$.call(C)?(p(),Y(i,{key:1,class:"chevron-icon",size:"lg",icon:e.extra?"chevron-right":"chevron-up","fixed-width":""},null,8,["icon"])):E("",!0)]}),_:1},8,["class","title","disabled","href"])),((S=(y=e.button).counter)==null?void 0:S.call(y,e.funcArg))>0?(p(),b("span",pbe,w((I=(k=e.button).counter)==null?void 0:I.call(k,e.funcArg)),1)):E("",!0),!e.extra&&e.button.name==="bookmark"?(p(),b("span",mbe)):E("",!0),e.button.name==="bookmark"?(p(),Y(u,{key:2,trigger:e.extra?"hover":"click",placement:e.extra?"right":"top",offset:e.extra?{x:10}:{y:10},"trigger-attrs":{class:"extra-button"}},{trigger:X(()=>[T(i,{class:"chevron-icon",size:"lg",icon:e.extra?"chevron-right":"chevron-up","fixed-width":""},null,8,["icon"])]),content:X(({close:C})=>[e.button.name==="bookmark"?(p(),Y(c,{key:0,status:e.status,close:()=>{C(),e.outerClose()}},null,8,["status","close"])):E("",!0)]),_:1},8,["trigger","placement","offset"])):E("",!0),e.button.name==="emoji"?(p(),Y(f,{key:3,ref:"picker","enable-sticker-picker":!1,"hide-custom-emoji":e.hideCustomEmoji,class:"emoji-picker-panel",onEmoji:e.addReaction},null,8,["hide-custom-emoji","onEmoji"])):E("",!0)],2)}const vbe=ge(fbe,[["render",gbe]]),bbe={props:["type","user","status"],emits:["hide","show","muted"],data:()=>({showing:!1}),components:{ConfirmModal:Nr,Select:Zi},computed:{domain(){return this.user.fqn.split("@")[1]},keypath(){if(this.type==="domain")return"status.mute_domain_confirm";if(this.type==="conversation")return"status.mute_conversation_confirm"},conversationIsMuted(){return this.status.conversation_muted},domainIsMuted(){return new Set(this.$store.state.users.currentUser.domainMutes).has(this.domain)},shouldConfirm(){switch(this.type){case"domain":return this.mergedConfig.modalOnMuteDomain;default:return this.mergedConfig.modalOnMuteConversation}},...bn(["mergedConfig"])},methods:{optionallyPrompt(){this.shouldConfirm?this.show():this.doMute()},show(){this.showing=!0,this.$emit("show")},hide(){this.showing=!1,this.$emit("hide")},doMute(){switch(this.type){case"domain":{this.domainIsMuted?this.$store.dispatch("unmuteDomain",{id:this.domain}):this.$store.dispatch("muteDomain",{id:this.domain});break}case"conversation":{this.conversationIsMuted?this.$store.dispatch("unmuteConversation",{id:this.status.id}):this.$store.dispatch("muteConversation",{id:this.status.id});break}}this.$emit("muted"),this.hide()}}},ybe=["textContent"],_be=["textContent"];function wbe(e,t,n,s,r,o){const i=O("i18n-t"),a=O("confirm-modal");return e.showing?(p(),Y(a,{key:0,title:e.$t("user_card.mute_confirm_title"),"confirm-text":e.$t("user_card.mute_confirm_accept_button"),"cancel-text":e.$t("user_card.mute_confirm_cancel_button"),onAccepted:e.doMute,onCancelled:e.hide},{default:X(()=>[T(i,{keypath:e.keypath,tag:"div"},{domain:X(()=>[g("span",{textContent:w(e.domain)},null,8,ybe)]),user:X(()=>[g("span",{textContent:w(e.user.screen_name_ui)},null,8,_be)]),_:1},8,["keypath"])]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0)}const Sbe=ge(bbe,[["render",wbe]]);et.add(J_,gd,eP);const $be={components:{ActionButton:vbe,Popover:Jn,MuteConfirm:Sbe,UserTimedFilterModal:z2},props:["button","status"],emits:["interacted"],mounted(){this.button.name==="mute"&&this.$store.dispatch("fetchDomainMutes")},computed:{buttonClass(){return[this.button.name+"-button",{"-with-extra":this.button.name==="bookmark","-extra":this.extra,"-quick":!this.extra}]},user(){return this.status.user},userIsMuted(){return this.$store.getters.relationship(this.user.id).muting},conversationIsMuted(){return this.status.thread_muted},domain(){return this.user.fqn.split("@")[1]},domainIsMuted(){return new Set(this.$store.state.users.currentUser.domainMutes).has(this.domain)}},methods:{unmuteUser(){return this.$store.dispatch("unmuteUser",this.user.id)},unmuteConversation(){return this.$store.dispatch("unmuteConversation",{id:this.status.id})},unmuteDomain(){return this.$store.dispatch("unmuteDomain",this.user.id)},toggleUserMute(){this.userIsMuted?this.unmuteUser():this.$refs.confirmUser.optionallyPrompt()},toggleConversationMute(){this.conversationIsMuted?this.unmuteConversation():this.$refs.confirmConversation.optionallyPrompt()},toggleDomainMute(){this.domainIsMuted?this.unmuteDomain():this.$refs.confirmDomain.optionallyPrompt()}}},kbe=["id"],Cbe={class:"menu-item dropdown-item extra-action -icon"},Tbe={class:"menu-item dropdown-item extra-action -icon"},Abe={class:"menu-item dropdown-item extra-action -icon"};function Ebe(e,t,n,s,r,o){var h,v;const i=O("ActionButton"),a=O("FAIcon"),c=O("Popover"),u=O("MuteConfirm"),f=O("UserTimedFilterModal");return p(),b("div",null,[(v=(h=e.button).dropdown)!=null&&v.call(h)?(p(),Y(c,{key:0,trigger:e.$attrs.extra?"hover":"click",offset:{y:5},placement:e.$attrs.extra?"right":"top"},{trigger:X(()=>[T(i,An({button:e.button,status:e.status},e.$attrs),null,16,["button","status"])]),content:X(()=>[e.button.name==="mute"?(p(),b("div",{key:0,id:`popup-menu-${e.randomSeed}`,class:"dropdown-menu",role:"menu"},[g("div",Cbe,[g("button",{class:"main-button",onClick:t[0]||(t[0]=(...y)=>e.toggleUserMute&&e.toggleUserMute(...y))},[T(a,{icon:"user","fixed-width":""}),e.userIsMuted?(p(),b(Se,{key:0},[de(w(e.$t("status.unmute_user")),1)],64)):(p(),b(Se,{key:1},[de(w(e.$t("status.mute_user")),1)],64))])]),g("div",Tbe,[g("button",{class:"main-button",onClick:t[1]||(t[1]=(...y)=>e.toggleConversationMute&&e.toggleConversationMute(...y))},[T(a,{icon:"folder-tree","fixed-width":""}),e.conversationIsMuted?(p(),b(Se,{key:0},[de(w(e.$t("status.unmute_conversation")),1)],64)):(p(),b(Se,{key:1},[de(w(e.$t("status.mute_conversation")),1)],64))])]),g("div",Abe,[g("button",{class:"main-button",onClick:t[2]||(t[2]=(...y)=>e.toggleDomainMute&&e.toggleDomainMute(...y))},[T(a,{icon:"globe","fixed-width":""}),e.domainIsMuted?(p(),b(Se,{key:0},[de(w(e.$t("status.unmute_domain")),1)],64)):(p(),b(Se,{key:1},[de(w(e.$t("status.mute_domain")),1)],64))])])],8,kbe)):E("",!0)]),_:1},8,["trigger","placement"])):(p(),Y(i,An({key:1,button:e.button,status:e.status},e.$attrs,{onInteracted:t[3]||(t[3]=y=>e.$emit("interacted"))}),null,16,["button","status"])),(p(),Y(Yn,{to:"#modal"},[T(u,{ref:"confirmConversation",type:"conversation",status:e.status,user:e.user},null,8,["status","user"]),T(u,{ref:"confirmDomain",type:"domain",status:e.status,user:e.user},null,8,["status","user"]),T(f,{ref:"confirmUser","is-mute":!0,user:e.user},null,8,["user"])]))])}const Ibe=ge($be,[["render",Ebe]]),aA=new Set(["private","direct"]),Pbe=new Set(["public","unlisted"]),Lbe=[{name:"reply",label:"tool_tip.reply",icon:"reply",active:({replying:e})=>e,counter:({status:e})=>e.replies_count,anon:!0,anonLink:!0,toggleable:!0,closeIndicator:"times",activeIndicator:"none",action({emit:e}){return e("toggleReplying"),Promise.resolve()}},{name:"retweet",label:({status:e})=>e.repeated?"tool_tip.unrepeat":"tool_tip.repeat",icon({status:e,currentUser:t}){return t.id!==e.user.id&&aA.has(e.visibility)?"lock":"retweet"},animated:!0,active:({status:e})=>e.repeated,counter:({status:e})=>e.repeat_num,anonLink:!0,interactive:({status:e,currentUser:t})=>!!t&&(t.id===e.user.id||!aA.has(e.visibility)),toggleable:!0,confirm:({status:e,getters:t})=>!e.repeated&&t.mergedConfig.modalOnRepeat,confirmStrings:{title:"status.repeat_confirm_title",body:"status.repeat_confirm",confirm:"status.repeat_confirm_accept_button",cancel:"status.repeat_confirm_cancel_button"},action({status:e,dispatch:t}){return e.repeated?t("unretweet",{id:e.id}):t("retweet",{id:e.id})}},{name:"favorite",label:({status:e})=>e.favorited?"tool_tip.unfavorite":"tool_tip.favorite",icon:({status:e})=>e.favorited?["fas","star"]:["far","star"],animated:!0,active:({status:e})=>e.favorited,counter:({status:e})=>e.fave_num,anonLink:!0,toggleable:!0,action({status:e,dispatch:t}){return e.favorited?t("unfavorite",{id:e.id}):t("favorite",{id:e.id})}},{name:"emoji",label:"tool_tip.add_reaction",icon:["far","smile-beam"],anonLink:!0},{name:"mute",icon:"eye-slash",label:"status.mute_ellipsis",if:({loggedIn:e})=>e,toggleable:!0,dropdown:!0},{name:"pin",icon:"thumbtack",label:({status:e})=>e.pinned?"status.unpin":"status.pin",if({status:e,loggedIn:t,currentUser:n}){return t&&e.user.id===n.id&&Pbe.has(e.visibility)},action({status:e,dispatch:t}){return e.pinned?t("unpinStatus",e.id):t("pinStatus",e.id)}},{name:"bookmark",icon:({status:e})=>e.bookmarked?["fas","bookmark"]:["far","bookmark"],toggleable:!0,active:({status:e})=>e.bookmarked,label:({status:e})=>e.bookmarked?"status.unbookmark":"status.bookmark",if:({loggedIn:e})=>e,action({status:e,dispatch:t}){return e.bookmarked?t("unbookmark",{id:e.id}):t("bookmark",{id:e.id})}},{name:"editHistory",icon:"history",label:"status.status_history",if({status:e,state:t}){return t.instance.editingAvailable&&e.edited_at!==null},action({status:e}){const t={...e};return["attachments","created_at","emojis","text","raw_html","nsfw","poll","summary","summary_raw_html"].forEach(s=>delete t[s]),Nu().openStatusHistoryModal(t),Promise.resolve()}},{name:"edit",icon:"pen",label:"status.edit",if({status:e,loggedIn:t,currentUser:n,state:s}){return t&&s.instance.editingAvailable&&e.user.id===n.id},action({dispatch:e,status:t}){return e("fetchStatusSource",{id:t.id}).then(n=>Mu().openEditStatusModal({statusId:t.id,subject:n.spoiler_text,statusText:n.text,statusIsSensitive:t.nsfw,statusPoll:t.poll,statusFiles:[...t.attachments],visibility:t.visibility,statusContentType:n.content_type}))}},{name:"delete",icon:"times",label:"status.delete",if({status:e,loggedIn:t,currentUser:n}){return t&&(e.user.id===n.id||n.privileges.includes("messages_delete"))},confirm:({getters:e})=>e.mergedConfig.modalOnDelete,confirmStrings:{title:"status.delete_confirm_title",body:"status.delete_confirm",confirm:"status.delete_confirm_accept_button",cancel:"status.delete_confirm_cancel_button"},action({dispatch:e,status:t}){return e("deleteStatus",{id:t.id})}},{name:"share",icon:"share-alt",label:"status.copy_link",action({state:e,status:t,router:n}){return navigator.clipboard.writeText([e.instance.server,n.resolve({name:"conversation",params:{id:t.id}}).href].join("")),Promise.resolve()}},{name:"external",icon:"external-link-alt",label:"status.external_source",link:({status:e})=>e.external_url},{name:"report",icon:"flag",label:"user_card.report",if:({loggedIn:e})=>e,action({status:e}){return qi().openUserReportingModal({userId:e.user.id,statusIds:[e.id]})}}].map(e=>Object.fromEntries(Object.entries(e).map(([t,n])=>[t,typeof n=="function"||t==="name"?n:()=>n])));et.add(bd);const Obe={props:["status","replying"],emits:["toggleReplying","interacted"],data(){return{showPin:!1,showingConfirmDialog:!1,currentConfirmTitle:"",currentConfirmOkText:"",currentConfirmCancelText:"",currentConfirmAction:()=>{},randomSeed:Jp()}},components:{Popover:Jn,ConfirmModal:Nr,ActionButtonContainer:Ibe},computed:{...sn(_n,{pinnedItems:e=>new Set(e.prefsStorage.collections.pinnedStatusActions)}),buttons(){return Lbe.filter(e=>e.if?e.if(this.funcArg):!0)},quickButtons(){return this.buttons.filter(e=>this.pinnedItems.has(e.name))},extraButtons(){return this.buttons.filter(e=>!this.pinnedItems.has(e.name))},currentUser(){return this.$store.state.users.currentUser},funcArg(){return{status:this.status,replying:this.replying,emit:this.$emit,dispatch:this.$store.dispatch,state:this.$store.state,getters:this.$store.getters,router:this.$router,currentUser:this.currentUser,loggedIn:!!this.currentUser}},triggerAttrs(){return{title:this.$t("status.more_actions"),"aria-controls":`popup-menu-${this.randomSeed}`,"aria-haspopup":"menu"}}},methods:{doAction(e){var t;(t=e.confirm)!=null&&t.call(e,this.funcArg)?(this.currentConfirmTitle=this.$t(e.confirmStrings(this.funcArg).title),this.currentConfirmOkText=this.$t(e.confirmStrings(this.funcArg).confirm),this.currentConfirmCancelText=this.$t(e.confirmStrings(this.funcArg).cancel),this.currentConfirmBody=this.$t(e.confirmStrings(this.funcArg).body),this.currentConfirmAction=()=>{this.showingConfirmDialog=!1,this.doActionReal(e)},this.showingConfirmDialog=!0):this.doActionReal(e)},doActionReal(e){e.action(this.funcArg).then(()=>this.$emit("onSuccess")).catch(t=>this.$emit("onError",t.error.error))},onExtraClose(){this.showPin=!1},isPinned(e){return this.pinnedItems.has(e.name)},unpin(e){_n().removeCollectionPreference({path:"collections.pinnedStatusActions",value:e.name}),_n().pushServerSideStorage()},pin(e){_n().addCollectionPreference({path:"collections.pinnedStatusActions",value:e.name}),_n().pushServerSideStorage()},getComponent(e){return!this.$store.state.users.currentUser&&e.anonLink||e.action==null&&e.link!=null?"a":"button"},getClass(e){var t,n;return{[e.name+"-button"]:!0,disabled:e.interactive?!e.interactive(this.funcArg):!1,"-pin-edit":this.showPin,"-dropdown":(t=e.dropdown)==null?void 0:t.call(e),"-active":(n=e.active)==null?void 0:n.call(e,this.funcArg)}}}},Rbe={class:"StatusActionButtons"},Mbe={class:"quick-action-buttons"},Nbe=["title","onClick"],Fbe=["id"],Dbe={key:0,class:"menu-item dropdown-item extra-action -icon"},Ube=["onClick"],jbe=["disabled"],Bbe=["title","onClick"];function zbe(e,t,n,s,r,o){const i=O("ActionButtonContainer"),a=O("FAIcon"),c=O("Popover"),u=O("confirm-modal");return p(),b("div",Rbe,[g("span",Mbe,[(p(!0),b(Se,null,We(e.quickButtons,f=>{var h;return p(),b("span",{key:f.name,class:he(["quick-action",{"-pin":e.showPin,"-toggle":(h=f.dropdown)==null?void 0:h.call(f)}])},[T(i,{class:he({"-pin":e.showPin}),button:f,status:e.status,extra:!1,"func-arg":e.funcArg,"get-class":e.getClass,"get-component":e.getComponent,close:()=>{},"do-action":e.doAction,onInteracted:t[0]||(t[0]=v=>e.$emit("interacted"))},null,8,["class","button","status","func-arg","get-class","get-component","do-action"]),e.showPin&&e.currentUser?(p(),b("button",{key:0,type:"button",class:"button-unstyled pin-action-button",title:e.$t("general.unpin"),"aria-pressed":!0,onClick:Te(v=>e.unpin(f),["stop","prevent"])},[e.showPin&&e.currentUser?(p(),Y(a,{key:0,"fixed-width":"",class:"fa-scale-110",icon:"thumbtack"})):E("",!0)],8,Nbe)):E("",!0)],2)}),128)),T(c,{trigger:"click","trigger-attrs":e.triggerAttrs,tabindex:0,placement:"top",offset:{y:5},"remove-padding":"",onClose:e.onExtraClose},{trigger:X(()=>[T(a,{class:"fa-scale-110",icon:"ellipsis-h"})]),content:X(({close:f,resize:h})=>[g("div",{id:`popup-menu-${e.randomSeed}`,class:"dropdown-menu extra-action-buttons",role:"menu"},[e.currentUser?(p(),b("div",Dbe,[g("button",{class:"main-button",role:"menuitem",tabindex:0,onClick:Te(()=>{h(),e.showPin=!e.showPin},["stop"])},[T(a,{class:"fa-scale-110","fixed-width":"",icon:"wrench"}),g("span",null,w(e.$t("nav.edit_pinned")),1)],8,Ube)])):E("",!0),(p(!0),b(Se,null,We(e.extraButtons,v=>(p(),b("div",{key:v.name,class:he(["menu-item dropdown-item extra-action -icon",{disabled:e.getClass(v).disabled}]),disabled:e.getClass(v).disabled},[T(i,{button:v,status:e.status,extra:!0,"func-arg":e.funcArg,"get-class":e.getClass,"get-component":e.getComponent,"outer-close":f,"do-action":e.doAction,onInteracted:t[1]||(t[1]=y=>e.$emit("interacted"))},null,8,["button","status","func-arg","get-class","get-component","outer-close","do-action"]),e.showPin&&e.currentUser?(p(),b("button",{key:0,type:"button",class:"button-unstyled pin-action-button extra-button",title:e.$t("general.pin"),"aria-pressed":!1,onClick:Te(y=>e.pin(v),["stop","prevent"])},[e.showPin&&e.currentUser?(p(),Y(a,{key:0,"fixed-width":"",class:"fa-scale-110",transform:"rotate-45",icon:"thumbtack"})):E("",!0)],8,Bbe)):E("",!0)],10,jbe))),128))],8,Fbe)]),_:1},8,["trigger-attrs","onClose"])]),(p(),Y(Yn,{to:"#modal"},[e.showingConfirmDialog?(p(),Y(u,{key:0,title:e.currentConfirmTitle,"confirm-text":e.currentConfirmOkText,"cancel-text":e.currentConfirmCancelText,onAccepted:e.currentConfirmAction,onCancelled:t[2]||(t[2]=f=>e.showingConfirmDialog=!1)},{default:X(()=>[de(w(e.currentConfirmBody),1)]),_:1},8,["title","confirm-text","cancel-text","onAccepted"])):E("",!0)]))])}const qbe=ge(Obe,[["render",zbe]]);et.add(Pp,gd,RJ,W5,Z5,Xn,o2,H5,BJ,Z_,Ap,bd,x_,xJ,i2,Y_,za,Y5,pZ);const ew=e=>e.charAt(0).toUpperCase()+e.slice(1),Hbe=e=>e.reduce((t,n)=>{const s=ew(n),r=`controlledToggle${s}`,o=`controlled${s}`,i=`uncontrolled${s}`;return t[n]=function(){return(this.$data[r]!==void 0||this.$props[r]!==void 0)&&this[r]?this[o]:this[i]},t},{}),Vbe=(e,t)=>{const n=ew(t),s=`controlledToggle${n}`,r=`uncontrolled${n}`;e[s]?e[s]():e[r]=!e[r]},lA=(e,t,n)=>{const s=ew(t),r=`controlledSet${s}`,o=`uncontrolled${s}`;e[r]?e[r](n):e[o]=n},Wbe={name:"Status",components:{PostStatusForm:lc,UserAvatar:er,AvatarList:MO,Timeago:wd,StatusPopover:Wve,UserListPopover:NO,EmojiReactions:obe,StatusContent:Ka,RichContent:Mr,MentionLink:QL,MentionsLine:By,UserPopover:om,UserLink:$d,StatusActionButtons:qbe},props:["statusoid","expandable","inConversation","focused","highlight","compact","replies","isPreview","noHeading","inlineExpanded","showPinned","inProfile","profileUserId","inQuote","simpleTree","controlledThreadDisplayStatus","controlledToggleThreadDisplay","showOtherRepliesAsButton","controlledShowingTall","controlledToggleShowingTall","controlledExpandingSubject","controlledToggleExpandingSubject","controlledShowingLongSubject","controlledToggleShowingLongSubject","controlledReplying","controlledToggleReplying","controlledMediaPlaying","controlledSetMediaPlaying","dive"],emits:["interacted"],data(){return{uncontrolledReplying:!1,unmuted:!1,userExpanded:!1,uncontrolledMediaPlaying:[],suspendable:!0,error:null,headTailLinks:null,displayQuote:!this.inQuote}},computed:{...Hbe(["replying","mediaPlaying"]),showReasonMutedThread(){return(this.status.thread_muted||this.status.reblog&&this.status.reblog.thread_muted)&&!this.inConversation},repeaterClass(){const e=this.statusoid.user;return Bh(e)},userClass(){const e=this.retweet?this.statusoid.retweeted_status.user:this.statusoid.user;return Bh(e)},deleted(){return this.statusoid.deleted},repeaterStyle(){const e=this.statusoid.user,t=this.mergedConfig.highlight;return jh(t[e.screen_name])},userStyle(){if(this.noHeading)return;const e=this.retweet?this.statusoid.retweeted_status.user:this.statusoid.user,t=this.mergedConfig.highlight;return jh(t[e.screen_name])},userProfileLink(){return this.generateUserProfileLink(this.status.user.id,this.status.user.screen_name)},replyProfileLink(){if(this.isReply){const e=this.$store.getters.findUser(this.status.in_reply_to_user_id);return e?e.statusnet_profile_url:"NOT_FOUND"}},retweet(){return!!this.statusoid.retweeted_status},retweeterUser(){return this.statusoid.user},retweeter(){return this.statusoid.user.name||this.statusoid.user.screen_name_ui},retweeterHtml(){return this.statusoid.user.name},retweeterProfileLink(){return this.generateUserProfileLink(this.statusoid.user.id,this.statusoid.user.screen_name)},status(){return this.retweet?this.statusoid.retweeted_status:this.statusoid},statusFromGlobalRepository(){return this.$store.state.statuses.allStatusesObject[this.status.id]},loggedIn(){return!!this.currentUser},muteFilterHits(){return pE(Object.values(_n().prefsStorage.simple.muteFilters),this.status)},botStatus(){return this.status.user.actor_type==="Service"},showActorTypeIndicator(){return!this.hideBotIndication},sensitiveStatus(){return this.status.nsfw},mentionsLine(){if(!this.headTailLinks)return[];const e=new Set(this.headTailLinks.writtenMentions.map(t=>t.url));return this.status.attentions.filter(t=>t.id!==this.status.in_reply_to_user_id&&t.statusnet_profile_url!==this.status.user.statusnet_profile_url&&!e.has(t.statusnet_profile_url)).map(t=>({url:t.statusnet_profile_url,content:t.screen_name,userId:t.id}))},hasMentionsLine(){return this.mentionsLine.length>0},muteReasons(){return[this.userIsMuted?"user":null,this.status.thread_muted?"thread":null,this.muteFilterHits.length>0?"filtered":null,this.muteBotStatuses&&this.botStatus?"bot":null,this.muteSensitiveStatuses&&this.sensitiveStatus?"nsfw":null].filter(e=>e)},muteLocalized(){if(this.muteReasons.length===0)return null;const e=()=>{switch(this.muteReasons[0]){case"user":return this.$t("status.muted_user");case"thread":return this.$t("status.thread_muted");case"filtered":return this.$t("status.muted_filters",{name:this.muteFilterHits[0].name,filterMore:this.muteFilterHits.length-1},this.muteFilterHits.length);case"bot":return this.$t("status.bot_muted");case"nsfw":return this.$t("status.sensitive_muted")}};return this.muteReasons.length>1?this.$t("status.multi_reason_mute",{main:e(),numReasonsMore:this.muteReasons.length-1},this.muteReasons.length-1):e()},muted(){return this.statusoid.user.id===this.currentUser.id?!1:!this.unmuted&&!this.shouldNotMute&&this.muteReasons.length>0},userIsMuted(){if(this.statusoid.user.id===this.currentUser.id)return!1;const{status:e}=this,{reblog:t}=e,n=this.$store.getters.relationship(e.user.id),s=t&&this.$store.getters.relationship(t.user.id);return e.muted&&!e.thread_muted||t&&t.muted&&!t.thread_muted||n.muting||s&&s.muting},shouldNotMute(){if(this.isFocused)return!0;const{status:e}=this,{reblog:t}=e;return(this.inProfile&&(!t&&e.user.id===this.profileUserId||t&&t.user.id===this.profileUserId)||this.inConversation&&e.thread_muted)&&!this.muteFilterHits.length>0},hideMutedUsers(){return this.mergedConfig.hideMutedPosts},hideMutedThreads(){return this.mergedConfig.hideMutedThreads},hideFilteredStatuses(){return this.mergedConfig.hideFilteredStatuses},hideWordFilteredPosts(){return this.mergedConfig.hideWordFilteredPosts},hideStatus(){return!this.shouldNotMute&&(this.muted&&this.hideFilteredStatuses||this.userIsMuted&&this.hideMutedUsers||this.status.thread_muted&&this.hideMutedThreads||this.muteFilterHits.length>0&&this.hideWordFilteredPosts||this.muteFilterHits.some(e=>e.hide))},isFocused(){return this.focused?!0:this.inConversation?this.status.id===this.highlight:!1},isReply(){return!!(this.status.in_reply_to_status_id&&this.status.in_reply_to_user_id)},replyToName(){if(this.status.in_reply_to_screen_name)return this.status.in_reply_to_screen_name;{const e=this.$store.getters.findUser(this.status.in_reply_to_user_id);return e&&e.screen_name_ui}},replySubject(){if(!this.status.summary)return"";const e=Z.unescape(this.status.summary),t=this.mergedConfig.subjectLineBehavior,n=e.match(/^re[: ]/i);if(t!=="noop"&&n||t==="masto")return e;if(t==="email")return"re: ".concat(e);if(t==="noop")return""},combinedFavsAndRepeatsUsers(){const e=[].concat(this.statusFromGlobalRepository.favoritedBy,this.statusFromGlobalRepository.rebloggedBy);return Z.uniqBy(e,"id")},tags(){return this.status.tags.filter(e=>e.hasOwnProperty("name")).map(e=>e.name).join(" ")},hidePostStats(){return this.mergedConfig.hidePostStats},shouldDisplayFavsAndRepeats(){return!this.hidePostStats&&this.isFocused&&(this.combinedFavsAndRepeatsUsers.length>0||this.statusFromGlobalRepository.quotes_count)},muteBotStatuses(){return this.mergedConfig.muteBotStatuses},muteSensitiveStatuses(){return this.mergedConfig.muteSensitiveStatuses},hideBotIndication(){return this.mergedConfig.hideBotIndication},currentUser(){return this.$store.state.users.currentUser},mergedConfig(){return this.$store.getters.mergedConfig},isSuspendable(){return!this.replying&&this.mediaPlaying.length===0},inThreadForest(){return!!this.controlledThreadDisplayStatus},threadShowing(){return this.controlledThreadDisplayStatus==="showing"},visibilityLocalized(){return this.$i18n.t("general.scope_in_timeline."+this.status.visibility)},isEdited(){return this.status.edited_at!==null},editingAvailable(){return this.$store.state.instance.editingAvailable},hasVisibleQuote(){return this.status.quote_url&&this.status.quote_visible},hasInvisibleQuote(){return this.status.quote_url&&!this.status.quote_visible},quotedStatus(){return this.status.quote_id?this.$store.state.statuses.allStatusesObject[this.status.quote_id]:void 0},shouldDisplayQuote(){return this.quotedStatus&&this.displayQuote},scrobblePresent(){if(this.mergedConfig.hideScrobbles||!this.status.user.latestScrobble)return!1;const e=this.mergedConfig.hideScrobblesAfter.match(/\d+/gs)[0],t=this.mergedConfig.hideScrobblesAfter.match(/\D+/gs)[0];let n=60*1e3;switch(t){case"m":break;case"h":n*=60;break;case"d":n*=60,n*=24;break}const s=Number(e)*n,r=Date.parse(this.status.user.latestScrobble.created_at);return Date.now()-r>s?!1:this.status.user.latestScrobble.artist},scrobble(){return this.status.user.latestScrobble}},methods:{visibilityIcon(e){switch(e){case"private":return"lock";case"unlisted":return"lock-open";case"direct":return"envelope";case"local":return"igloo";default:return"globe"}},showError(e){this.error=e},clearError(){this.$emit("interacted"),this.error=void 0},toggleReplying(){this.$emit("interacted"),this.replying?this.$refs.postStatusForm.requestClose():this.doToggleReplying()},doToggleReplying(){Vbe(this,"replying")},gotoOriginal(e){this.inConversation&&this.$emit("goto",e)},toggleExpanded(){this.$emit("toggleExpanded")},toggleMute(){this.unmuted=!this.unmuted},toggleUserExpanded(){this.userExpanded=!this.userExpanded},generateUserProfileLink(e,t){return ao(e,t,this.$store.state.instance.restrictedNicknames)},addMediaPlaying(e){lA(this,"mediaPlaying",this.mediaPlaying.concat(e))},removeMediaPlaying(e){lA(this,"mediaPlaying",this.mediaPlaying.filter(t=>t!==e))},setHeadTailLinks(e){this.headTailLinks=e},toggleThreadDisplay(){this.controlledToggleThreadDisplay()},scrollIfHighlighted(e){if(this.$el.getBoundingClientRect==null)return;const t=e;if(this.status.id===t){const n=this.$el.getBoundingClientRect();n.top<100||n.height>=window.innerHeight-50?window.scrollBy(0,n.top-100):n.bottom>window.innerHeight-50&&window.scrollBy(0,n.bottom-window.innerHeight+50)}},toggleDisplayQuote(){this.shouldDisplayQuote?this.displayQuote=!1:this.quotedStatus?this.displayQuote=!0:this.$store.dispatch("fetchStatus",this.status.quote_id).then(()=>{this.displayQuote=!0})}},watch:{highlight:function(e){this.scrollIfHighlighted(e)},"status.repeat_num":function(e){this.isFocused&&this.statusFromGlobalRepository.rebloggedBy&&this.statusFromGlobalRepository.rebloggedBy.length!==e&&this.$store.dispatch("fetchRepeats",this.status.id)},"status.fave_num":function(e){this.isFocused&&this.statusFromGlobalRepository.favoritedBy&&this.statusFromGlobalRepository.favoritedBy.length!==e&&this.$store.dispatch("fetchFavs",this.status.id)},isSuspendable:function(e){this.suspendable=e}}},Gbe={key:0,class:"alert error"},Kbe={key:1,class:"status-container muted"},xbe={class:"status-username"},Ybe={class:"mute-reason"},Xbe={key:0,class:"pin"},Jbe={class:"faint"},Zbe={class:"right-side faint"},Qbe=["title"],e0e=["data-tags"],t0e={key:0,class:"left-side"},n0e=["href"],s0e={class:"right-side"},r0e={key:0,class:"status-heading"},o0e={class:"heading-name-row"},i0e={class:"heading-left"},a0e=["title"],l0e=["title"],c0e=["src"],u0e={class:"heading-right"},d0e=["title"],f0e=["title"],h0e=["title","aria-expanded"],p0e=["title"],m0e={key:0,class:"status-rich-presence"},g0e=["href"],v0e={class:"status-rich-presence-time"},b0e={key:1},y0e={class:"status-rich-presence-time"},_0e={key:1,class:"heading-reply-row"},w0e={key:0,class:"glued-label reply-glued-label"},S0e=["aria-label"],$0e={class:"reply-to-text"},k0e={key:1,class:"reply-to-no-popover"},C0e={class:"reply-to-text"},T0e={key:1,class:"glued-label"},A0e=["aria-label"],E0e={class:"mentions-text"},I0e={key:2,class:"heading-edited-row"},P0e={key:1,class:"quoted-status"},L0e=["aria-expanded"],O0e={key:2,class:"quoted-status -unavailable-prompt"},R0e=["href"],M0e={key:3,class:"replies"},N0e=["title"],F0e={key:1,class:"faint"},D0e=["onClick"],U0e={key:0,class:"favs-repeated-users"},j0e={class:"stats"},B0e={class:"stat-count"},z0e={class:"stat-title"},q0e={class:"stat-number"},H0e={class:"stat-count"},V0e={class:"stat-title"},W0e={class:"stat-number"},G0e={class:"stat-count"},K0e={class:"stat-title"},x0e={class:"stat-number"},Y0e={class:"avatar-row"},X0e={key:3,class:"gravestone"},J0e={class:"left-side"},Z0e={class:"right-side"},Q0e={class:"deleted-text"},eye={key:4,class:"status-container reply-form"};function tye(e,t,n,s,r,o){const i=O("FAIcon"),a=O("user-link"),c=O("UserAvatar"),u=O("RichContent"),f=O("router-link"),h=O("UserPopover"),v=O("Timeago"),y=O("i18n-t"),S=O("StatusPopover"),k=O("MentionLink"),I=O("MentionsLine"),C=O("StatusContent"),$=O("Status",!0),P=O("UserListPopover"),A=O("AvatarList"),R=O("EmojiReactions"),B=O("StatusActionButtons"),N=O("PostStatusForm");return e.hideStatus?E("",!0):(p(),b("div",{key:0,ref:"root",class:he(["Status",[{"-focused":e.isFocused},{"-conversation":e.inlineExpanded}]])},[e.error?(p(),b("div",Gbe,[de(w(e.error)+" ",1),g("span",{class:"fa-scale-110 fa-old-padding",onClick:t[0]||(t[0]=(...W)=>e.clearError&&e.clearError(...W))},[T(i,{icon:"times"})])])):E("",!0),e.muted&&!e.isPreview?(p(),b("div",Kbe,[g("small",xbe,[e.muted&&e.retweet?(p(),Y(i,{key:0,class:"fa-scale-110 fa-old-padding repeat-icon",icon:"retweet"})):E("",!0),T(a,{user:e.status.user,at:!1},null,8,["user"])]),g("small",Ybe,w(e.muteLocalized),1),g("button",{class:"unmute button-unstyled",onClick:t[1]||(t[1]=Te((...W)=>e.toggleMute&&e.toggleMute(...W),["prevent"]))},[T(i,{icon:"eye-slash",class:"fa-scale-110 fa-old-padding"})])])):(p(),b(Se,{key:2},[e.showPinned?(p(),b("div",Xbe,[T(i,{icon:"thumbtack",class:"faint"}),g("span",Jbe,w(e.$t("status.pinned")),1)])):E("",!0),e.retweet&&!e.noHeading&&!e.inConversation?(p(),b("div",{key:1,class:he([[e.repeaterClass,{highlighted:e.repeaterStyle}],"status-container repeat-info"]),style:hn([e.repeaterStyle])},[e.retweet?(p(),Y(c,{key:0,class:"left-side repeater-avatar","show-actor-type-indicator":e.showActorTypeIndicator,user:e.statusoid.user},null,8,["show-actor-type-indicator","user"])):E("",!0),g("div",Zbe,[g("bdi",{class:"status-username repeater-name",title:e.retweeter},[e.retweeterHtml?(p(),Y(f,{key:0,to:e.retweeterProfileLink},{default:X(()=>[T(u,{html:e.retweeterHtml,emoji:e.retweeterUser.emoji,"is-local":e.retweeterUser.is_local},null,8,["html","emoji","is-local"])]),_:1},8,["to"])):(p(),Y(f,{key:1,to:e.retweeterProfileLink},{default:X(()=>[de(w(e.retweeter),1)]),_:1},8,["to"]))],8,Qbe),t[14]||(t[14]=de(" "+w(" ")+" ",-1)),T(i,{icon:"retweet",class:"repeat-icon",title:e.$t("tool_tip.repeat")},null,8,["title"]),de(" "+w(e.$t("timeline.repeated")),1)])],6)):E("",!0),e.deleted?(p(),b("div",X0e,[g("div",J0e,[T(c,{class:"post-avatar",compact:e.compact,"show-actor-type-indicator":e.showActorTypeIndicator},null,8,["compact","show-actor-type-indicator"])]),g("div",Z0e,[g("div",Q0e,w(e.$t("status.status_deleted")),1)])])):(p(),b("div",{key:2,class:he([[e.userClass,{highlighted:e.userStyle,"-repeat":e.retweet&&!e.inConversation}],"status-container"]),style:hn([e.userStyle]),"data-tags":e.tags},[e.noHeading?E("",!0):(p(),b("div",t0e,[g("a",{href:e.$router.resolve(e.userProfileLink).href,onClick:t[2]||(t[2]=Te(()=>{},["prevent"]))},[T(h,{"user-id":e.status.user.id,"overlay-centers":!0},{default:X(()=>[T(c,{class:"post-avatar","show-actor-type-indicator":e.showActorTypeIndicator,compact:e.compact,user:e.status.user},null,8,["show-actor-type-indicator","compact","user"])]),_:1},8,["user-id"])],8,n0e)])),g("div",s0e,[e.noHeading?E("",!0):(p(),b("div",r0e,[g("div",o0e,[g("div",i0e,[e.status.user.name_html?(p(),b("h4",{key:0,class:"status-username",title:e.status.user.name},[T(u,{html:e.status.user.name,emoji:e.status.user.emoji,"is-local":e.status.user.is_local},null,8,["html","emoji","is-local"])],8,a0e)):(p(),b("h4",{key:1,class:"status-username",title:e.status.user.name},w(e.status.user.name),9,l0e)),T(a,{class:"account-name",title:e.status.user.screen_name_ui,user:e.status.user,at:!1},null,8,["title","user"]),e.status.user&&e.status.user.favicon?(p(),b("img",{key:2,class:"status-favicon",src:e.status.user.favicon},null,8,c0e)):E("",!0)]),g("span",u0e,[T(f,{class:"timeago faint",to:{name:"conversation",params:{id:e.status.id}}},{default:X(()=>[T(v,{time:e.status.created_at,"auto-update":60},null,8,["time"])]),_:1},8,["to"]),e.status.visibility?(p(),b("span",{key:0,class:"visibility-icon",title:e.visibilityLocalized},[T(i,{"fixed-width":"",class:"fa-scale-110",icon:e.visibilityIcon(e.status.visibility)},null,8,["icon"])],8,d0e)):E("",!0),e.expandable&&!e.isPreview?(p(),b("button",{key:1,class:"button-unstyled",title:e.$t("status.expand"),onClick:t[3]||(t[3]=Te((...W)=>e.toggleExpanded&&e.toggleExpanded(...W),["prevent"]))},[T(i,{"fixed-width":"",class:"fa-scale-110",icon:"plus-square"})],8,f0e)):E("",!0),e.unmuted?(p(),b("button",{key:2,class:"button-unstyled",onClick:t[4]||(t[4]=Te((...W)=>e.toggleMute&&e.toggleMute(...W),["prevent"]))},[T(i,{"fixed-width":"",icon:"eye-slash",class:"fa-scale-110"})])):E("",!0),e.inThreadForest&&e.replies&&e.replies.length&&!e.simpleTree?(p(),b("button",{key:3,class:"button-unstyled",title:e.threadShowing?e.$t("status.thread_hide"):e.$t("status.thread_show"),"aria-expanded":e.threadShowing?"true":"false",onClick:t[5]||(t[5]=Te((...W)=>e.toggleThreadDisplay&&e.toggleThreadDisplay(...W),["prevent"]))},[T(i,{"fixed-width":"",class:"fa-scale-110",icon:e.threadShowing?"chevron-up":"chevron-down"},null,8,["icon"])],8,h0e)):E("",!0),e.dive&&!e.simpleTree?(p(),b("button",{key:4,class:"button-unstyled",title:e.$t("status.show_only_conversation_under_this"),onClick:t[6]||(t[6]=Te((...W)=>e.dive&&e.dive(...W),["prevent"]))},[T(i,{"fixed-width":"",class:"fa-scale-110",icon:"angle-double-right"})],8,p0e)):E("",!0)])]),e.scrobblePresent?(p(),b("div",m0e,[e.scrobble.externalLink?(p(),b("a",{key:0,href:e.scrobble.externalLink,target:"_blank"},[de(w(e.scrobble.artist)+" — "+w(e.scrobble.title)+" ",1),T(i,{class:"fa-scale-110 fa-old-padding",icon:"play"}),g("span",v0e,[T(v,{"template-key":"time.in_past",time:e.scrobble.created_at,"auto-update":60},null,8,["time"])])],8,g0e)):E("",!0),e.scrobble.externalLink?E("",!0):(p(),b("span",b0e,[T(i,{class:"fa-scale-110 fa-old-padding",icon:"music"}),de(" "+w(e.scrobble.artist)+" — "+w(e.scrobble.title)+" ",1),T(i,{class:"fa-scale-110 fa-old-padding",icon:"play"}),g("span",y0e,[T(v,{"template-key":"time.in_past",time:e.scrobble.created_at,"auto-update":60},null,8,["time"])])]))])):E("",!0),e.isReply||e.hasMentionsLine?(p(),b("div",_0e,[e.isReply?(p(),b("span",w0e,[T(y,{keypath:"status.reply_to_with_arg",scope:"global"},{replyToWithIcon:X(()=>[e.isPreview?(p(),b("span",k0e,[g("span",C0e,w(e.$t("status.reply_to")),1)])):(p(),Y(S,{key:0,"status-id":e.status.parent_visible&&e.status.in_reply_to_status_id,class:he(["reply-to-popover",{"-strikethrough":!e.status.parent_visible}]),style:{"min-width":"0"}},{default:X(()=>[g("button",{class:"button-unstyled reply-to","aria-label":e.$t("tool_tip.reply"),onClick:t[7]||(t[7]=Te(W=>e.gotoOriginal(e.status.in_reply_to_status_id),["prevent"]))},[T(y,{keypath:"status.reply_to_with_icon",scope:"global"},{icon:X(()=>[T(i,{class:"fa-scale-110 fa-old-padding",icon:"reply",flip:"horizontal"})]),replyTo:X(()=>[g("span",$0e,w(e.$t("status.reply_to")),1)]),_:1})],8,S0e)]),_:1},8,["status-id","class"]))]),user:X(()=>[T(k,{content:e.replyToName,url:e.replyProfileLink,"user-id":e.status.in_reply_to_user_id,"user-screen-name":e.status.in_reply_to_screen_name},null,8,["content","url","user-id","user-screen-name"])]),_:1})])):E("",!0),e.hasMentionsLine?(p(),b("span",T0e,[g("span",{class:"mentions","aria-label":e.$t("tool_tip.mentions"),onClick:t[8]||(t[8]=Te(W=>e.gotoOriginal(e.status.in_reply_to_status_id),["prevent"]))},[g("span",E0e,w(e.$t("status.mentions")),1)],8,A0e),e.hasMentionsLine?(p(),Y(I,{key:0,mentions:e.mentionsLine.slice(0,1),class:"mentions-line-first"},null,8,["mentions"])):E("",!0)])):E("",!0),t[15]||(t[15]=de(" "+w(" ")+" ",-1)),e.hasMentionsLine?(p(),Y(I,{key:2,mentions:e.mentionsLine.slice(1),class:"mentions-line"},null,8,["mentions"])):E("",!0)])):E("",!0),e.isEdited&&e.editingAvailable&&!e.isPreview?(p(),b("div",I0e,[T(y,{scope:"global",keypath:"status.edited_at",tag:"span"},{time:X(()=>[T(v,{"template-key":"time.in_past",time:e.status.edited_at,"auto-update":60,"long-format":!0},null,8,["time"])]),_:1})])):E("",!0)])),T(C,{ref:"content",status:e.status,"no-heading":e.noHeading,highlight:e.highlight,focused:e.isFocused,"controlled-showing-tall":e.controlledShowingTall,"controlled-expanding-subject":e.controlledExpandingSubject,"controlled-showing-long-subject":e.controlledShowingLongSubject,"controlled-toggle-showing-tall":e.controlledToggleShowingTall,"controlled-toggle-expanding-subject":e.controlledToggleExpandingSubject,"controlled-toggle-showing-long-subject":e.controlledToggleShowingLongSubject,onMediaplay:t[9]||(t[9]=W=>e.addMediaPlaying(W)),onMediapause:t[10]||(t[10]=W=>e.removeMediaPlaying(W)),onParseReady:e.setHeadTailLinks},null,8,["status","no-heading","highlight","focused","controlled-showing-tall","controlled-expanding-subject","controlled-showing-long-subject","controlled-toggle-showing-tall","controlled-toggle-expanding-subject","controlled-toggle-showing-long-subject","onParseReady"]),e.hasVisibleQuote?(p(),b("article",P0e,[g("button",{class:"button-unstyled -link display-quoted-status-button","aria-expanded":e.shouldDisplayQuote,onClick:t[11]||(t[11]=(...W)=>e.toggleDisplayQuote&&e.toggleDisplayQuote(...W))},[de(w(e.shouldDisplayQuote?e.$t("status.hide_quote"):e.$t("status.display_quote"))+" ",1),T(i,{class:"display-quoted-status-button-icon",icon:e.shouldDisplayQuote?"chevron-up":"chevron-down"},null,8,["icon"])],8,L0e),e.shouldDisplayQuote?(p(),Y($,{key:0,statusoid:e.quotedStatus,"in-quote":!0},null,8,["statusoid"])):E("",!0)])):e.hasInvisibleQuote?(p(),b("p",O0e,[T(y,{scope:"global",keypath:"status.invisible_quote"},{link:X(()=>[g("bdi",null,[g("a",{href:e.status.quote_url,target:"_blank"},w(e.status.quote_url),9,R0e)])]),_:1})])):E("",!0),e.inConversation&&!e.isPreview&&e.replies&&e.replies.length?(p(),b("div",M0e,[e.showOtherRepliesAsButton&&e.replies.length>1?(p(),b("button",{key:0,class:"button-unstyled -link",title:e.$t("status.ancestor_follow",{numReplies:e.replies.length-1},e.replies.length-1),onClick:t[12]||(t[12]=Te((...W)=>e.dive&&e.dive(...W),["prevent"]))},w(e.$t("status.replies_list_with_others",{numReplies:e.replies.length-1},e.replies.length-1)),9,N0e)):(p(),b("span",F0e,w(e.$t("status.replies_list")),1)),(p(!0),b(Se,null,We(e.replies,W=>(p(),Y(S,{key:W.id,"status-id":W.id},{default:X(()=>[g("button",{class:"button-unstyled -link reply-link",onClick:Te(V=>e.gotoOriginal(W.id),["prevent"])},w(W.name),9,D0e)]),_:2},1032,["status-id"]))),128))])):E("",!0),T(X8,{name:"fade"},{default:X(()=>[e.shouldDisplayFavsAndRepeats?(p(),b("div",U0e,[g("div",j0e,[e.statusFromGlobalRepository.rebloggedBy&&e.statusFromGlobalRepository.rebloggedBy.length>0?(p(),Y(P,{key:0,users:e.statusFromGlobalRepository.rebloggedBy},{default:X(()=>[g("div",B0e,[g("a",z0e,w(e.$t("status.repeats")),1),g("div",q0e,w(e.statusFromGlobalRepository.rebloggedBy.length),1)])]),_:1},8,["users"])):E("",!0),e.statusFromGlobalRepository.favoritedBy&&e.statusFromGlobalRepository.favoritedBy.length>0?(p(),Y(P,{key:1,users:e.statusFromGlobalRepository.favoritedBy},{default:X(()=>[g("div",H0e,[g("a",V0e,w(e.$t("status.favorites")),1),g("div",W0e,w(e.statusFromGlobalRepository.favoritedBy.length),1)])]),_:1},8,["users"])):E("",!0),e.statusFromGlobalRepository.quotes_count>0?(p(),Y(f,{key:2,to:{name:"quotes",params:{id:e.status.id}}},{default:X(()=>[g("div",G0e,[g("a",K0e,w(e.$t("status.quotes")),1),g("div",x0e,w(e.statusFromGlobalRepository.quotes_count),1)])]),_:1},8,["to"])):E("",!0),g("div",Y0e,[T(A,{users:e.combinedFavsAndRepeatsUsers},null,8,["users"])])])])):E("",!0)]),_:1}),(e.mergedConfig.emojiReactionsOnTimeline||e.isFocused)&&!e.noHeading&&!e.isPreview?(p(),Y(R,{key:4,status:e.status},null,8,["status"])):E("",!0),!e.noHeading&&!e.isPreview?(p(),Y(B,{key:5,status:e.status,replying:e.replying,onToggleReplying:e.toggleReplying,onInteracted:t[13]||(t[13]=W=>e.$emit("interacted"))},null,8,["status","replying","onToggleReplying"])):E("",!0)])],14,e0e)),e.replying?(p(),b("div",eye,[T(N,{ref:"postStatusForm",class:"reply-body",closeable:!0,"reply-to":e.status.id,attentions:e.status.attentions,"replied-user":e.status.user,"copy-message-scope":e.status.visibility,subject:e.replySubject,onPosted:e.doToggleReplying,onDraftDone:e.doToggleReplying,onCanClose:e.doToggleReplying},null,8,["reply-to","attentions","replied-user","copy-message-scope","subject","onPosted","onDraftDone","onCanClose"])])):E("",!0)],64))],2))}const ea=ge(Wbe,[["render",tye]]),nye=Object.freeze(Object.defineProperty({__proto__:null,default:ea},Symbol.toStringTag,{value:"Module"})),sye={props:["reportId"],components:{Select:Zi,StatusContent:Ka,Timeago:wd,RichContent:Mr},computed:{report(){return qi().reports[this.reportId]||{}},state:{get:function(){return this.report.state},set:function(e){this.setReportState(e)}}},methods:{generateUserProfileLink(e){return ao(e.id,e.screen_name,this.$store.state.instance.restrictedNicknames)},setReportState(e){return qi().setReportState({id:this.report.id,state:e})}}},rye={class:"Report"},oye={class:"reported-user"},iye={class:"reporter"},aye={class:"report-state"},lye=["value"],cye={key:0},uye={class:"reported-status-heading"},dye={class:"reported-status-name"},fye={key:1};function hye(e,t,n,s,r,o){const i=O("router-link"),a=O("Select"),c=O("RichContent"),u=O("Timeago"),f=O("status-content");return p(),b("div",rye,[g("div",oye,[g("span",null,w(e.$t("report.reported_user")),1),T(i,{to:e.generateUserProfileLink(e.report.acct)},{default:X(()=>[de(" @"+w(e.report.acct.screen_name),1)]),_:1},8,["to"])]),g("div",iye,[g("span",null,w(e.$t("report.reporter")),1),T(i,{to:e.generateUserProfileLink(e.report.actor)},{default:X(()=>[de(" @"+w(e.report.actor.screen_name),1)]),_:1},8,["to"])]),g("div",aye,[g("span",null,w(e.$t("report.state")),1),T(a,{id:e.report-e.state,modelValue:e.state,"onUpdate:modelValue":t[0]||(t[0]=h=>e.state=h),class:"input form-control"},{default:X(()=>[(p(),b(Se,null,We(["open","closed","resolved"],h=>g("option",{key:h,value:h},w(e.$t("report.state_"+h)),9,lye)),64))]),_:1},8,["id","modelValue"])]),T(c,{class:"report-content",html:e.report.content,emoji:[]},null,8,["html"]),e.report.statuses.length?(p(),b("div",cye,[g("small",null,w(e.$t("report.reported_statuses")),1),(p(!0),b(Se,null,We(e.report.statuses,h=>(p(),Y(i,{key:h.id,to:{name:"conversation",params:{id:h.id}},class:"reported-status"},{default:X(()=>[g("div",uye,[g("span",dye,w(h.user.name),1),T(u,{time:h.created_at,"auto-update":240,class:"faint"},null,8,["time"])]),T(f,{status:h},null,8,["status"])]),_:2},1032,["to"]))),128))])):E("",!0),e.report.notes.length?(p(),b("div",fye,[g("small",null,w(e.$t("report.notes")),1),(p(!0),b(Se,null,We(e.report.notes,h=>(p(),b("div",{key:h.id,class:"note"},[g("span",null,w(h.content),1),T(u,{time:h.created_at,"auto-update":240,class:"faint"},null,8,["time"])]))),128))])):E("",!0)])}const pye=ge(sye,[["render",hye]]);et.add(Rp,Xn,Z_,o2,Op,J_,x_,vZ,cP,vJ);const mye={data(){return{selecting:!1,statusExpanded:!1,unmuted:!1,showingApproveConfirmDialog:!1,showingDenyConfirmDialog:!1}},props:["notification"],emits:["interacted"],components:{StatusContent:Ka,UserAvatar:er,UserCard:Cd,Timeago:wd,Status:ea,Report:pye,RichContent:Mr,UserPopover:om,UserLink:$d,ConfirmModal:Nr},mounted(){document.addEventListener("selectionchange",this.onContentSelect)},unmounted(){document.removeEventListener("selectionchange",this.onContentSelect)},methods:{toggleStatusExpanded(){this.expandable&&(this.statusExpanded=!this.statusExpanded)},onContentSelect(){const{isCollapsed:e,anchorNode:t,offsetNode:n}=document.getSelection();if(e){this.selecting=!1;return}this.$refs.root.contains(t)||this.$refs.root.contains(n)?this.selecting=!0:this.selecting=!1},onContentClick(e){!this.selecting&&!e.target.closest("a")&&!e.target.closest("button")&&this.toggleStatusExpanded()},generateUserProfileLink(e){return ao(e.id,e.screen_name,this.$store.state.instance.restrictedNicknames)},getUser(e){return this.$store.state.users.usersObject[e.from_profile.id]},interacted(){this.$emit("interacted")},toggleMute(){this.unmuted=!this.unmuted},showApproveConfirmDialog(){this.showingApproveConfirmDialog=!0},hideApproveConfirmDialog(){this.showingApproveConfirmDialog=!1},showDenyConfirmDialog(){this.showingDenyConfirmDialog=!0},hideDenyConfirmDialog(){this.showingDenyConfirmDialog=!1},approveUser(){this.shouldConfirmApprove?this.showApproveConfirmDialog():this.doApprove()},doApprove(){this.$emit("interacted"),this.$store.state.api.backendInteractor.approveUser({id:this.user.id}),this.$store.dispatch("removeFollowRequest",this.user),this.$store.dispatch("markSingleNotificationAsSeen",{id:this.notification.id}),this.$store.dispatch("updateNotification",{id:this.notification.id,updater:e=>{e.type="follow"}}),this.hideApproveConfirmDialog()},denyUser(){this.shouldConfirmDeny?this.showDenyConfirmDialog():this.doDeny()},doDeny(){this.$emit("interacted"),this.$store.state.api.backendInteractor.denyUser({id:this.user.id}).then(()=>{this.$store.dispatch("dismissNotificationLocal",{id:this.notification.id}),this.$store.dispatch("removeFollowRequest",this.user)}),this.hideDenyConfirmDialog()}},computed:{userClass(){return Bh(this.notification.from_profile)},userStyle(){const e=this.$store.getters.mergedConfig.highlight,t=this.notification.from_profile;return jh(e[t.screen_name])},expandable(){return new Set(["like","pleroma:emoji_reaction","repeat"]).has(this.notification.type)},user(){return this.$store.getters.findUser(this.notification.from_profile.id)},userProfileLink(){return this.generateUserProfileLink(this.user)},targetUser(){return this.$store.getters.findUser(this.notification.target.id)},targetUserProfileLink(){return this.generateUserProfileLink(this.targetUser)},needMute(){return this.$store.getters.relationship(this.user.id).muting},isStatusNotification(){return cd(this.notification.type)},mergedConfig(){return this.$store.getters.mergedConfig},shouldConfirmApprove(){return this.mergedConfig.modalOnApproveFollow},shouldConfirmDeny(){return this.mergedConfig.modalOnDenyFollow},...mn({currentUser:e=>e.users.currentUser})}},gye={key:0,ref:"root"},vye=["id","aria-expanded","aria-controls"],bye=["href"],yye={class:"notification-right"},_ye={class:"notification-details"},wye={class:"name-and-action"},Sye={key:0},$ye=["title"],kye={key:2},Cye={key:3},Tye={key:4},Aye={key:5},Eye={key:6},Iye={key:7},Pye=["src","alt","title"],Lye={key:1,class:"emoji-reaction-emoji"},Oye={key:8},Rye={key:9},Mye={key:0,class:"timeago"},Nye=["title","aria-expanded"],Fye={key:1,class:"timeago"},Dye={class:"faint"},Uye=["title","aria-expanded"],jye={key:0,class:"follow-text"},Bye={key:0,style:{"white-space":"nowrap"}},zye=["title"],qye=["title"],Hye={key:1,class:"move-text"};function Vye(e,t,n,s,r,o){const i=O("Status"),a=O("user-link"),c=O("FAIcon"),u=O("UserAvatar"),f=O("UserPopover"),h=O("RichContent"),v=O("i18n-t"),y=O("Timeago"),S=O("router-link"),k=O("Report"),I=O("StatusContent"),C=O("confirm-modal");return e.notification.type==="mention"||e.notification.type==="status"?(p(),b("article",gye,[T(i,{class:"Notification",compact:!0,statusoid:e.notification.status,onInteracted:e.interacted},null,8,["statusoid","onInteracted"])],512)):(p(),b("article",{key:1,ref:"root",class:he(["NotificationParent",{"-expandable":e.expandable}])},[e.needMute&&!e.unmuted?(p(),b("div",{key:0,id:"notif-"+e.notification.id,"aria-expanded":e.statusExpanded,"aria-controls":"notif-"+e.notification.id,class:"Notification container -muted"},[g("small",null,[T(a,{user:e.notification.from_profile,at:!1},null,8,["user"])]),g("button",{class:"button-unstyled unmute",onClick:t[0]||(t[0]=Te((...$)=>e.toggleMute&&e.toggleMute(...$),["prevent"]))},[T(c,{class:"fa-scale-110 fa-old-padding",icon:"eye-slash"})])],8,vye)):(p(),b("div",{key:1,class:he(["Notification non-mention",[e.userClass,{highlighted:e.userStyle},"-type--"+e.notification.type]]),style:hn([e.userStyle])},[g("a",{class:"avatar-container",href:e.$router.resolve(e.userProfileLink).href,onClick:t[1]||(t[1]=Te(()=>{},["prevent"]))},[T(f,{"user-id":e.notification.from_profile.id,"overlay-centers":!0},{default:X(()=>[T(u,{class:"post-avatar",compact:!0,user:e.notification.from_profile},null,8,["user"])]),_:1},8,["user-id"])],8,bye),g("div",yye,[g("span",_ye,[g("div",wye,[e.notification.from_profile.name_html?(p(),b("bdi",Sye,[T(h,{class:"username",title:"@"+e.notification.from_profile.screen_name_ui,html:e.notification.from_profile.name_html,emoji:e.notification.from_profile.emoji,"is-local":e.notification.from_profile.is_local},null,8,["title","html","emoji","is-local"])])):(p(),b("span",{key:1,class:"username",title:"@"+e.notification.from_profile.screen_name_ui},w(e.notification.from_profile.name),9,$ye)),t[12]||(t[12]=de(" "+w(" ")+" ",-1)),e.notification.type==="like"?(p(),b("span",kye,[T(c,{class:"type-icon",icon:"star"}),t[6]||(t[6]=de(" "+w(" ")+" ",-1)),g("small",null,w(e.$t("notifications.favorited_you")),1)])):E("",!0),e.notification.type==="repeat"?(p(),b("span",Cye,[T(c,{class:"type-icon",icon:"retweet",title:e.$t("tool_tip.repeat")},null,8,["title"]),t[7]||(t[7]=de(" "+w(" ")+" ",-1)),g("small",null,w(e.$t("notifications.repeated_you")),1)])):E("",!0),e.notification.type==="follow"?(p(),b("span",Tye,[T(c,{class:"type-icon",icon:"user-plus"}),t[8]||(t[8]=de(" "+w(" ")+" ",-1)),g("small",null,w(e.$t("notifications.followed_you")),1)])):E("",!0),e.notification.type==="follow_request"?(p(),b("span",Aye,[T(c,{class:"type-icon",icon:"user"}),t[9]||(t[9]=de(" "+w(" ")+" ",-1)),g("small",null,w(e.$t("notifications.follow_request")),1)])):E("",!0),e.notification.type==="move"?(p(),b("span",Eye,[T(c,{class:"type-icon",icon:"suitcase-rolling"}),t[10]||(t[10]=de(" "+w(" ")+" ",-1)),g("small",null,w(e.$t("notifications.migrated_to")),1)])):E("",!0),e.notification.type==="pleroma:emoji_reaction"?(p(),b("span",Iye,[g("small",null,[T(v,{scope:"global",keypath:"notifications.reacted_with"},{default:X(()=>[e.notification.emoji_url?(p(),b("img",{key:0,class:"emoji-reaction-emoji emoji-reaction-emoji-image",src:e.notification.emoji_url,alt:e.notification.emoji,title:e.notification.emoji},null,8,Pye)):(p(),b("span",Lye,w(e.notification.emoji),1))]),_:1})])])):E("",!0),e.notification.type==="pleroma:report"?(p(),b("span",Oye,[g("small",null,w(e.$t("notifications.submitted_report")),1)])):E("",!0),e.notification.type==="poll"?(p(),b("span",Rye,[T(c,{class:"type-icon",icon:"poll-h"}),t[11]||(t[11]=de(" "+w(" ")+" ",-1)),g("small",null,w(e.$t("notifications.poll_ended")),1)])):E("",!0)]),e.isStatusNotification?(p(),b("div",Mye,[e.notification.status?(p(),Y(S,{key:0,to:{name:"conversation",params:{id:e.notification.status.id}},class:"timeago-link faint"},{default:X(()=>[T(y,{time:e.notification.created_at,"auto-update":240},null,8,["time"])]),_:1},8,["to"])):E("",!0),g("button",{class:"button-unstyled expand-icon",title:e.$t("tool_tip.toggle_expand"),"aria-expanded":e.statusExpanded,onClick:t[2]||(t[2]=Te((...$)=>e.toggleStatusExpanded&&e.toggleStatusExpanded(...$),["prevent"]))},[T(c,{class:"fa-scale-110","fixed-width":"",icon:e.statusExpanded?"compress-alt":"expand-alt"},null,8,["icon"])],8,Nye)])):(p(),b("div",Fye,[g("span",Dye,[T(y,{time:e.notification.created_at,"auto-update":240},null,8,["time"])])])),e.needMute?(p(),b("button",{key:2,class:"button-unstyled",title:e.$t("tool_tip.toggle_mute"),"aria-expanded":!e.unmuted,onClick:t[3]||(t[3]=Te((...$)=>e.toggleMute&&e.toggleMute(...$),["prevent"]))},[T(c,{class:"fa-scale-110 fa-old-padding",icon:"eye-slash"})],8,Uye)):E("",!0)]),e.notification.type==="follow"||e.notification.type==="follow_request"?(p(),b("div",jye,[T(a,{class:"follow-name",user:e.notification.from_profile},null,8,["user"]),e.notification.type==="follow_request"?(p(),b("div",Bye,[g("button",{class:"button-unstyled",title:e.$t("tool_tip.accept_follow_request"),onClick:t[4]||(t[4]=$=>e.approveUser())},[T(c,{icon:"check",class:"fa-scale-110 fa-old-padding follow-request-accept"})],8,zye),g("button",{class:"button-unstyled",title:e.$t("tool_tip.reject_follow_request"),onClick:t[5]||(t[5]=$=>e.denyUser())},[T(c,{icon:"times",class:"fa-scale-110 fa-old-padding follow-request-reject"})],8,qye)])):E("",!0)])):e.notification.type==="move"?(p(),b("div",Hye,[T(a,{user:e.notification.target},null,8,["user"])])):e.notification.type==="pleroma:report"?(p(),Y(k,{key:2,"report-id":e.notification.report.id},null,8,["report-id"])):(p(),Y(I,{key:3,class:"status-content",compact:!e.statusExpanded,status:e.notification.status,collapse:!e.statusExpanded,onClick:e.onContentClick},null,8,["compact","status","collapse","onClick"]))])],6)),(p(),Y(Yn,{to:"#modal"},[e.showingApproveConfirmDialog?(p(),Y(C,{key:0,title:e.$t("user_card.approve_confirm_title"),"confirm-text":e.$t("user_card.approve_confirm_accept_button"),"cancel-text":e.$t("user_card.approve_confirm_cancel_button"),onAccepted:e.doApprove,onCancelled:e.hideApproveConfirmDialog},{default:X(()=>[de(w(e.$t("user_card.approve_confirm",{user:e.user.screen_name_ui})),1)]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0),e.showingDenyConfirmDialog?(p(),Y(C,{key:1,title:e.$t("user_card.deny_confirm_title"),"confirm-text":e.$t("user_card.deny_confirm_accept_button"),"cancel-text":e.$t("user_card.deny_confirm_cancel_button"),onAccepted:e.doDeny,onCancelled:e.hideDenyConfirmDialog},{default:X(()=>[de(w(e.$t("user_card.deny_confirm",{user:e.user.screen_name_ui})),1)]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0)]))],2))}const Wye=ge(mye,[["render",Vye]]);et.add(Op,pd,md);const Gye={computed:{shouldShowChats(){return this.mergedConfig.showExtraNotifications&&this.mergedConfig.showChatsInExtraNotifications&&this.unreadChatCount},shouldShowAnnouncements(){return this.mergedConfig.showExtraNotifications&&this.mergedConfig.showAnnouncementsInExtraNotifications&&this.unreadAnnouncementCount},shouldShowFollowRequests(){return this.mergedConfig.showExtraNotifications&&this.mergedConfig.showFollowRequestsInExtraNotifications&&this.followRequestCount},hasAnythingToShow(){return this.shouldShowChats||this.shouldShowAnnouncements||this.shouldShowFollowRequests},shouldShowCustomizationTip(){return this.mergedConfig.showExtraNotificationsTip&&this.hasAnythingToShow},currentUser(){return this.$store.state.users.currentUser},...bn(["unreadChatCount","followRequestCount","mergedConfig"]),...sn(ms,{unreadAnnouncementCount:"unreadAnnouncementCount"})},methods:{openNotificationSettings(){return Xe().openSettingsModalTab("notifications")},dismissConfigurationTip(){return this.$store.dispatch("setOption",{name:"showExtraNotificationsTip",value:!1})}}},Kye={class:"ExtraNotifications"},xye={key:0,class:"notification unseen"},Yye={key:1,class:"notification unseen"},Xye={key:2,class:"notification unseen"};function Jye(e,t,n,s,r,o){const i=O("FAIcon"),a=O("router-link"),c=O("i18n-t");return p(),b("div",Kye,[e.shouldShowChats?(p(),b("div",xye,[t[2]||(t[2]=g("div",{class:"notification-overlay"},null,-1)),T(a,{class:"button-unstyled -link extra-notification",to:{name:"chats",params:{username:e.currentUser.screen_name}}},{default:X(()=>[T(i,{"fixed-width":"",class:"fa-scale-110 icon",icon:"comments"}),de(" "+w(e.$t("notifications.unread_chats",{num:e.unreadChatCount},e.unreadChatCount)),1)]),_:1},8,["to"])])):E("",!0),e.shouldShowAnnouncements?(p(),b("div",Yye,[t[3]||(t[3]=g("div",{class:"notification-overlay"},null,-1)),T(a,{class:"button-unstyled -link extra-notification",to:{name:"announcements"}},{default:X(()=>[T(i,{"fixed-width":"",class:"fa-scale-110 icon",icon:"bullhorn"}),de(" "+w(e.$t("notifications.unread_announcements",{num:e.unreadAnnouncementCount},e.unreadAnnouncementCount)),1)]),_:1})])):E("",!0),e.shouldShowFollowRequests?(p(),b("div",Xye,[t[4]||(t[4]=g("div",{class:"notification-overlay"},null,-1)),T(a,{class:"button-unstyled -link extra-notification",to:{name:"friend-requests"}},{default:X(()=>[T(i,{"fixed-width":"",class:"fa-scale-110 icon",icon:"user-plus"}),de(" "+w(e.$t("notifications.unread_follow_requests",{num:e.followRequestCount},e.followRequestCount)),1)]),_:1})])):E("",!0),e.shouldShowCustomizationTip?(p(),Y(c,{key:3,tag:"span",class:"notification tip extra-notification",keypath:"notifications.configuration_tip",scope:"global"},{theSettings:X(()=>[g("button",{class:"button-unstyled -link",onClick:t[0]||(t[0]=(...u)=>e.openNotificationSettings&&e.openNotificationSettings(...u))},w(e.$t("notifications.configuration_tip_settings")),1)]),dismiss:X(()=>[g("button",{class:"button-unstyled -link",onClick:t[1]||(t[1]=(...u)=>e.dismissConfigurationTip&&e.dismissConfigurationTip(...u))},w(e.$t("notifications.configuration_tip_dismiss")),1)]),_:1})):E("",!0)])}const Zye=ge(Gye,[["render",Jye]]);et.add(X5);const Qye={components:{Popover:Jn},computed:{filters(){return this.$store.getters.mergedConfig.notificationVisibility}},methods:{toggleNotificationFilter(e){this.$store.dispatch("setOption",{name:"notificationVisibility",value:{...this.filters,[e]:!this.filters[e]}})}}},e_e={class:"dropdown-menu"},t_e={class:"menu-item dropdown-item -icon"},n_e={class:"menu-item dropdown-item -icon"},s_e={class:"menu-item dropdown-item -icon"},r_e={class:"menu-item dropdown-item -icon"},o_e={class:"menu-item dropdown-item -icon"},i_e={class:"menu-item dropdown-item -icon"},a_e={class:"menu-item dropdown-item -icon"},l_e={class:"menu-item dropdown-item -icon"},c_e={class:"filter-trigger-button button-unstyled"};function u_e(e,t,n,s,r,o){const i=O("FAIcon"),a=O("Popover");return p(),Y(a,{trigger:"click",class:"NotificationFilters",placement:"bottom","bound-to":{x:"container"}},{content:X(()=>[g("div",e_e,[g("div",t_e,[g("button",{class:"main-button",onClick:t[0]||(t[0]=c=>o.toggleNotificationFilter("likes"))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":o.filters.likes}])},null,2),de(w(e.$t("settings.notification_visibility_likes")),1)])]),g("div",n_e,[g("button",{class:"main-button",onClick:t[1]||(t[1]=c=>o.toggleNotificationFilter("repeats"))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":o.filters.repeats}])},null,2),de(w(e.$t("settings.notification_visibility_repeats")),1)])]),g("div",s_e,[g("button",{class:"main-button",onClick:t[2]||(t[2]=c=>o.toggleNotificationFilter("follows"))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":o.filters.follows}])},null,2),de(w(e.$t("settings.notification_visibility_follows")),1)])]),g("div",r_e,[g("button",{class:"main-button",onClick:t[3]||(t[3]=c=>o.toggleNotificationFilter("mentions"))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":o.filters.mentions}])},null,2),de(w(e.$t("settings.notification_visibility_mentions")),1)])]),g("div",o_e,[g("button",{class:"main-button",onClick:t[4]||(t[4]=c=>o.toggleNotificationFilter("statuses"))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":o.filters.statuses}])},null,2),de(w(e.$t("settings.notification_visibility_statuses")),1)])]),g("div",i_e,[g("button",{class:"main-button",onClick:t[5]||(t[5]=c=>o.toggleNotificationFilter("emojiReactions"))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":o.filters.emojiReactions}])},null,2),de(w(e.$t("settings.notification_visibility_emoji_reactions")),1)])]),g("div",a_e,[g("button",{class:"main-button",onClick:t[6]||(t[6]=c=>o.toggleNotificationFilter("moves"))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":o.filters.moves}])},null,2),de(w(e.$t("settings.notification_visibility_moves")),1)])]),g("div",l_e,[g("button",{class:"main-button",onClick:t[7]||(t[7]=c=>o.toggleNotificationFilter("polls"))},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":o.filters.polls}])},null,2),de(w(e.$t("settings.notification_visibility_polls")),1)])])])]),trigger:X(()=>[g("button",c_e,[T(i,{icon:"filter"})])]),_:1})}const d_e=ge(Qye,[["render",u_e]]);et.add(Zs,s2,vd);const cA=30,f_e={components:{Notification:Wye,NotificationFilters:d_e,ExtraNotifications:Zye},props:{minimalMode:Boolean,filterMode:Array,noExtra:{type:Boolean,default:!1},disableTeleport:Boolean},data(){return{showScrollTop:!1,bottomedOut:!1,seenToDisplayCount:cA}},provide(){return{popoversZLayer:vt(()=>this.popoversZLayer)}},computed:{mainClass(){return this.minimalMode?"":"panel panel-default"},notifications(){return y_(this.$store)},error(){return this.$store.state.notifications.error},unseenNotifications(){return __(this.$store)},filteredNotifications(){return this.unseenAtTop?[...Yf(this.$store).filter(e=>this.shouldShowUnseen(e)),...Yf(this.$store).filter(e=>!this.shouldShowUnseen(e))]:Yf(this.$store,this.filterMode)},unseenCountBadgeText(){return`${this.unseenCount?this.unseenCount:""}${this.extraNotificationsCount?"*":""}`},unseenCount(){return this.unseenNotifications.length},ignoreInactionableSeen(){return this.$store.getters.mergedConfig.ignoreInactionableSeen},extraNotificationsCount(){return _E(this.$store)},unseenCountTitle(){return this.unseenNotifications.length+this.unreadChatCount+this.unreadAnnouncementCount},loading(){return this.$store.state.notifications.loading},noHeading(){const{layoutType:e}=Xe();return this.minimalMode||e==="mobile"},teleportTarget(){const{layoutType:e}=Xe();return{wide:"#notifs-column",mobile:"#mobile-notifications"}[e]||"#notifs-sidebar"},popoversZLayer(){const{layoutType:e}=Xe();return e==="mobile"?"navbar":null},notificationsToDisplay(){return this.filteredNotifications.slice(0,this.unseenCount+this.seenToDisplayCount)},noSticky(){return this.$store.getters.mergedConfig.disableStickyHeaders},unseenAtTop(){return this.$store.getters.mergedConfig.unseenAtTop},showExtraNotifications(){return!this.noExtra},...sn(ms,["unreadAnnouncementCount"]),...bn(["unreadChatCount"])},mounted(){this.scrollerRef=this.$refs.root.closest(".column.-scrollable"),this.scrollerRef||(this.scrollerRef=this.$refs.root.closest(".mobile-notifications")),this.scrollerRef||(this.scrollerRef=this.$refs.root.closest(".column.main")),this.scrollerRef.addEventListener("scroll",this.updateScrollPosition)},unmounted(){this.scrollerRef&&this.scrollerRef.removeEventListener("scroll",this.updateScrollPosition)},watch:{unseenCountTitle(e){e>0?(wh.drawFaviconBadge(),Xe().setPageTitle(`(${e})`)):(wh.clearFaviconBadge(),Xe().setPageTitle(""))},teleportTarget(){this.$nextTick(()=>{this.scrollerRef.removeEventListener("scroll",this.updateScrollPosition),this.scrollerRef=this.$refs.root.closest(".column.-scrollable"),this.scrollerRef||(this.scrollerRef=this.$refs.root.closest(".mobile-notifications")),this.scrollerRef.addEventListener("scroll",this.updateScrollPosition),this.updateScrollPosition()})}},methods:{scrollToTop(){this.scrollerRef.scrollTo({top:this.$refs.root.offsetTop})},updateScrollPosition(){this.showScrollTop=this.$refs.root.offsetTop<this.scrollerRef.scrollTop},shouldShowUnseen(e){if(e.seen)return!1;const t=bE.has(e.type);return this.ignoreInactionableSeen?t:!0},notificationClicked(e){const{id:t}=e;this.$store.dispatch("notificationClicked",{id:t})},notificationInteracted(e){const{id:t}=e;this.$store.dispatch("markSingleNotificationAsSeen",{id:t})},markAsSeen(){this.$store.dispatch("markNotificationsAsSeen"),this.seenToDisplayCount=cA},fetchOlderNotifications(){if(this.loading)return;const e=this.filteredNotifications.length-this.unseenCount;if(this.seenToDisplayCount<e){this.seenToDisplayCount=Math.min(this.seenToDisplayCount+20,e);return}else this.seenToDisplayCount>e&&(this.seenToDisplayCount=e);const t=this.$store,n=t.state.users.currentUser.credentials;t.commit("setNotificationsLoading",{value:!0}),vy.fetchAndUpdate({store:t,credentials:n,older:!0}).then(s=>{t.commit("setNotificationsLoading",{value:!1}),s.length===0&&(this.bottomedOut=!0),this.seenToDisplayCount+=s.length})}}},h_e={key:0,class:"notifications-heading panel-heading -sticky"},p_e={class:"title"},m_e={key:0,class:"badge -notification unseen-count"},g_e={key:0,class:"rightside-button"},v_e=["title"],b_e={class:"panel-body",role:"feed"},y_e={key:0,role:"listitem",class:"notification"},__e=["onClick"],w_e={class:"panel-footer"},S_e={key:0,class:"new-status-notification text-center faint"},$_e={class:"new-status-notification text-center"},k_e={key:2,class:"new-status-notification text-center"};function C_e(e,t,n,s,r,o){const i=O("FAIcon"),a=O("FALayers"),c=O("NotificationFilters"),u=O("extra-notifications"),f=O("notification");return p(),Y(Yn,{disabled:e.minimalMode||e.disableTeleport,to:e.teleportTarget},[(p(),Y(Oa(e.noHeading?"div":"aside"),{ref:"root",class:he([{minimal:e.minimalMode},"Notifications"])},{default:X(()=>[g("div",{class:he(e.mainClass)},[e.noHeading?E("",!0):(p(),b("div",h_e,[g("h1",p_e,[de(w(e.$t("notifications.notifications"))+" ",1),e.unseenCountBadgeText?(p(),b("span",m_e,w(e.unseenCountBadgeText),1)):E("",!0)]),e.showScrollTop?(p(),b("div",g_e,[g("button",{class:"button-unstyled scroll-to-top-button",type:"button",title:e.$t("general.scroll_to_top"),onClick:t[0]||(t[0]=(...h)=>e.scrollToTop&&e.scrollToTop(...h))},[T(a,{class:"fa-scale-110 fa-old-padding-layer"},{default:X(()=>[T(i,{icon:"arrow-up"}),T(i,{icon:"minus",transform:"up-7"})]),_:1})],8,v_e)])):E("",!0),e.unseenCount?(p(),b("button",{key:1,class:"button-default read-button",type:"button",onClick:t[1]||(t[1]=Te((...h)=>e.markAsSeen&&e.markAsSeen(...h),["prevent"]))},w(e.$t("notifications.read")),1)):E("",!0),T(c,{class:"rightside-button"})])),g("div",b_e,[e.showExtraNotifications?(p(),b("div",y_e,[T(u)])):E("",!0),(p(!0),b(Se,null,We(e.notificationsToDisplay,h=>(p(),b("div",{key:h.id,role:"listitem",class:he(["notification",{unseen:!e.minimalMode&&e.shouldShowUnseen(h)}]),onClick:v=>e.notificationClicked(h)},[t[3]||(t[3]=g("div",{class:"notification-overlay"},null,-1)),T(f,{notification:h,onInteracted:v=>e.notificationInteracted(h)},null,8,["notification","onInteracted"])],10,__e))),128))]),g("div",w_e,[e.bottomedOut?(p(),b("div",S_e,w(e.$t("notifications.no_more_notifications")),1)):e.loading?(p(),b("div",k_e,[T(i,{icon:"circle-notch",spin:"",size:"lg"})])):(p(),b("button",{key:1,class:"button-unstyled -link text-center",onClick:t[2]||(t[2]=Te(h=>e.fetchOlderNotifications(),["prevent"]))},[g("div",$_e,w(e.minimalMode?e.$t("interactions.load_older"):e.$t("notifications.load_older")),1)]))])],2)]),_:1},8,["class"]))],8,["disabled","to"])}const im=ge(f_e,[["render",C_e]]),T_e=Object.freeze(Object.defineProperty({__proto__:null,default:im},Symbol.toStringTag,{value:"Module"}));et.add(Xn,ic,V5,s2,vd,sZ);const A_e={components:{SideDrawer:RO,Notifications:im,NavigationPins:CO,ConfirmModal:Nr},data:()=>({notificationsCloseGesture:void 0,notificationsOpen:!1,notificationsAtTop:!0,showingConfirmLogout:!1}),created(){this.notificationsCloseGesture=eo.swipeGesture(eo.DIRECTION_RIGHT,()=>this.closeMobileNotifications(!0),50)},computed:{currentUser(){return this.$store.state.users.currentUser},unseenNotifications(){return __(this.$store)},unseenNotificationsCount(){return this.unseenNotifications.length+_E(this.$store)},unseenCount(){return this.unseenNotifications.length},unseenCountBadgeText(){return`${this.unseenCount?this.unseenCount:""}`},hideSitename(){return this.$store.state.instance.hideSitename},sitename(){return this.$store.state.instance.name},isChat(){return this.$route.name==="chat"},...sn(ms,["unreadAnnouncementCount"]),...sn(_n,{pinnedItems:e=>new Set(e.prefsStorage.collections.pinnedNavItems).has("chats")}),shouldConfirmLogout(){return this.$store.getters.mergedConfig.modalOnLogout},closingDrawerMarksAsSeen(){return this.$store.getters.mergedConfig.closingDrawerMarksAsSeen},...bn(["unreadChatCount"])},methods:{toggleMobileSidebar(){this.$refs.sideDrawer.toggleDrawer()},openMobileNotifications(){this.notificationsOpen=!0},closeMobileNotifications(e){this.notificationsOpen&&(this.notificationsOpen=!1,e&&this.closingDrawerMarksAsSeen&&this.markNotificationsAsSeen())},notificationsTouchStart(e){eo.beginSwipe(e,this.notificationsCloseGesture)},notificationsTouchMove(e){eo.updateSwipe(e,this.notificationsCloseGesture)},scrollToTop(){window.scrollTo(0,0)},scrollMobileNotificationsToTop(){this.$refs.mobileNotifications.scrollTo(0,0)},showConfirmLogout(){this.showingConfirmLogout=!0},hideConfirmLogout(){this.showingConfirmLogout=!1},logout(){this.shouldConfirmLogout?this.showConfirmLogout():this.doLogout()},doLogout(){this.$router.replace("/main/public"),this.$store.dispatch("logout"),this.hideConfirmLogout()},markNotificationsAsSeen(){this.$store.dispatch("markNotificationsAsSeen")},onScroll({target:{scrollTop:e,clientHeight:t,scrollHeight:n}}){this.notificationsAtTop=e>0,e+t>=n&&this.$refs.notifications.fetchOlderNotifications()}},watch:{$route(){this.closeMobileNotifications()}}},E_e={class:"MobileNav"},I_e={class:"item"},P_e=["title","aria-expanaded"],L_e={key:0,class:"badge -dot -notification"},O_e={class:"item right"},R_e=["title"],M_e={key:0,class:"badge -dot -notification"},N_e={class:"panel-heading mobile-notifications-header"},F_e={class:"title"},D_e={key:0,class:"badge -notification unseen-count"},U_e=["title"],j_e=["title"],B_e=["title"];function z_e(e,t,n,s,r,o){const i=O("FAIcon"),a=O("NavigationPins"),c=O("FALayers"),u=O("SideDrawer"),f=O("confirm-modal");return p(),b("div",E_e,[g("nav",{id:"nav",class:"mobile-nav",onClick:t[2]||(t[2]=h=>e.scrollToTop())},[g("div",I_e,[g("button",{class:"button-unstyled mobile-nav-button",title:e.$t("nav.mobile_sidebar"),"aria-expanaded":e.$refs.sideDrawer&&!e.$refs.sideDrawer.closed,onClick:t[0]||(t[0]=Te(h=>e.toggleMobileSidebar(),["stop","prevent"]))},[T(i,{class:"fa-scale-110 fa-old-padding",icon:"bars"}),e.unreadChatCount&&!e.chatsPinned||e.unreadAnnouncementCount?(p(),b("div",L_e)):E("",!0)],8,P_e),T(a,{class:"pins"})]),t[9]||(t[9]=de()),g("div",O_e,[e.currentUser?(p(),b("button",{key:0,class:"button-unstyled mobile-nav-button",title:e.unseenNotificationsCount?e.$t("nav.mobile_notifications_unread_active"):e.$t("nav.mobile_notifications"),onClick:t[1]||(t[1]=Te(h=>e.openMobileNotifications(),["stop","prevent"]))},[T(i,{class:"fa-scale-110 fa-old-padding",icon:"bell"}),e.unseenNotificationsCount?(p(),b("div",M_e)):E("",!0)],8,R_e)):E("",!0)])]),e.currentUser?(p(),b("aside",{key:0,class:he(["mobile-notifications-drawer mobile-drawer",{"-closed":!e.notificationsOpen}]),onTouchstart:t[7]||(t[7]=Te((...h)=>e.notificationsTouchStart&&e.notificationsTouchStart(...h),["stop"])),onTouchmove:t[8]||(t[8]=Te((...h)=>e.notificationsTouchMove&&e.notificationsTouchMove(...h),["stop"]))},[g("div",N_e,[g("h1",F_e,[de(w(e.$t("notifications.notifications"))+" ",1),e.unseenCountBadgeText?(p(),b("span",D_e,w(e.unseenCountBadgeText),1)):E("",!0)]),t[10]||(t[10]=g("span",{class:"spacer"},null,-1)),e.notificationsAtTop?(p(),b("button",{key:0,class:"button-unstyled mobile-nav-button",title:e.$t("general.scroll_to_top"),onClick:t[3]||(t[3]=Te((...h)=>e.scrollMobileNotificationsToTop&&e.scrollMobileNotificationsToTop(...h),["stop","prevent"]))},[T(c,{class:"fa-scale-110 fa-old-padding-layer"},{default:X(()=>[T(i,{icon:"arrow-up"}),T(i,{icon:"minus",transform:"up-7"})]),_:1})],8,U_e)):E("",!0),e.closingDrawerMarksAsSeen?E("",!0):(p(),b("button",{key:1,class:"button-unstyled mobile-nav-button",title:e.$t("nav.mobile_notifications_mark_as_seen"),onClick:t[4]||(t[4]=Te(h=>e.markNotificationsAsSeen(),["stop","prevent"]))},[T(i,{class:"fa-scale-110 fa-old-padding",icon:"check-double"})],8,j_e)),g("button",{class:"button-unstyled mobile-nav-button",title:e.$t("nav.mobile_notifications_close"),onClick:t[5]||(t[5]=Te(h=>e.closeMobileNotifications(!0),["stop","prevent"]))},[T(i,{class:"fa-scale-110 fa-old-padding",icon:"times"})],8,B_e)]),g("div",{id:"mobile-notifications",ref:"mobileNotifications",class:"mobile-notifications",onScroll:t[6]||(t[6]=(...h)=>e.onScroll&&e.onScroll(...h))},null,544)],34)):E("",!0),T(u,{ref:"sideDrawer",logout:e.logout},null,8,["logout"]),(p(),Y(Yn,{to:"#modal"},[e.showingConfirmLogout?(p(),Y(f,{key:0,title:e.$t("login.logout_confirm_title"),"confirm-text":e.$t("login.logout_confirm_accept_button"),"cancel-text":e.$t("login.logout_confirm_cancel_button"),onAccepted:e.doLogout,onCancelled:e.hideConfirmLogout},{default:X(()=>[de(w(e.$t("login.logout_confirm")),1)]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0)]))])}const q_e=ge(A_e,[["render",z_e]]);et.add(Xn,Ba);const H_e={data:()=>({searchTerm:void 0,hidden:!0,error:!1}),watch:{$route:function(e){e.name==="search"&&(this.searchTerm=e.query.query)}},methods:{find(e){this.$router.push({name:"search",query:{query:e}}),this.$refs.searchInput.focus()},toggleHidden(){this.hidden=!this.hidden,this.$emit("toggled",this.hidden),this.$nextTick(()=>{this.hidden||this.$refs.searchInput.focus()})}}},V_e=["title","aria-expanded"],W_e=["placeholder"],G_e=["title"],K_e=["title","aria-expanded"];function x_e(e,t,n,s,r,o){const i=O("FAIcon");return p(),b("div",{class:he(["SearchBar",{"-expanded":!e.hidden}])},[e.hidden?(p(),b("button",{key:0,class:"button-unstyled nav-icon",title:e.$t("nav.search"),type:"button","aria-expanded":!e.hidden,onClick:t[0]||(t[0]=Te((...a)=>e.toggleHidden&&e.toggleHidden(...a),["prevent","stop"]))},[T(i,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"search"})],8,V_e)):(p(),b(Se,{key:1},[at(g("input",{id:"search-bar-input",ref:"searchInput","onUpdate:modelValue":t[1]||(t[1]=a=>e.searchTerm=a),class:"input search-bar-input",placeholder:e.$t("nav.search"),type:"text",onKeyup:t[2]||(t[2]=zo(a=>e.find(e.searchTerm),["enter"]))},null,40,W_e),[[Nt,e.searchTerm]]),g("button",{class:"button-default search-button",type:"submit",title:e.$t("nav.search"),onClick:t[3]||(t[3]=a=>e.find(e.searchTerm))},[T(i,{"fixed-width":"",icon:"search"})],8,G_e),g("button",{class:"button-unstyled cancel-search",type:"button",title:e.$t("nav.search_close"),"aria-expanded":!e.hidden,onClick:t[4]||(t[4]=Te((...a)=>e.toggleHidden&&e.toggleHidden(...a),["prevent","stop"]))},[T(i,{"fixed-width":"",icon:"times",class:"cancel-icon fa-scale-110 fa-old-padding"})],8,K_e),t[5]||(t[5]=g("span",{class:"spacer"},null,-1)),t[6]||(t[6]=g("span",{class:"spacer"},null,-1))],64))],2)}const Y_e=ge(H_e,[["render",x_e]]);et.add(K5,z5,tP,pd,ic,Op,md,Ba,rP,t2,Lp);const X_e={components:{SearchBar:Y_e,ConfirmModal:Nr},data:()=>({searchBarHidden:!0,supportsMask:window.CSS&&window.CSS.supports&&(window.CSS.supports("mask-size","contain")||window.CSS.supports("-webkit-mask-size","contain")||window.CSS.supports("-moz-mask-size","contain")||window.CSS.supports("-ms-mask-size","contain")||window.CSS.supports("-o-mask-size","contain")),showingConfirmLogout:!1}),computed:{enableMask(){return this.supportsMask&&this.$store.state.instance.logoMask},logoStyle(){return{visibility:this.enableMask?"hidden":"visible"}},logoMaskStyle(){return this.enableMask?{"mask-image":`url(${this.$store.state.instance.logo})`}:{"background-color":this.enableMask?"":"transparent"}},logoBgStyle(){return Object.assign({margin:`${this.$store.state.instance.logoMargin} 0`,opacity:this.searchBarHidden?1:0},this.enableMask?{}:{"background-color":this.enableMask?"":"transparent"})},logo(){return this.$store.state.instance.logo},sitename(){return this.$store.state.instance.name},hideSitename(){return this.$store.state.instance.hideSitename},logoLeft(){return this.$store.state.instance.logoLeft},currentUser(){return this.$store.state.users.currentUser},privateMode(){return this.$store.state.instance.private},shouldConfirmLogout(){return this.$store.getters.mergedConfig.modalOnLogout}},methods:{scrollToTop(){window.scrollTo(0,0)},showConfirmLogout(){this.showingConfirmLogout=!0},hideConfirmLogout(){this.showingConfirmLogout=!1},logout(){this.shouldConfirmLogout?this.showConfirmLogout():this.doLogout()},doLogout(){this.$router.replace("/main/public"),this.$store.dispatch("logout"),this.hideConfirmLogout()},onSearchBarToggled(e){this.searchBarHidden=e},openSettingsModal(){Xe().openSettingsModal("user")},openAdminModal(){Xe().openSettingsModal("admin")}}},J_e={class:"inner-nav"},Z_e={class:"item sitename"},Q_e=["src"],e2e={class:"item right actions"},t2e=["title"],n2e=["title"],s2e=["title"];function r2e(e,t,n,s,r,o){const i=O("router-link"),a=O("search-bar"),c=O("FAIcon"),u=O("confirm-modal");return p(),b("nav",{id:"nav",class:he(["DesktopNav",{"-logoLeft":e.logoLeft}]),onClick:t[4]||(t[4]=f=>e.scrollToTop())},[g("div",J_e,[g("div",Z_e,[e.hideSitename?E("",!0):(p(),Y(i,{key:0,class:"site-name",to:{name:"root"},"active-class":"home"},{default:X(()=>[de(w(e.sitename),1)]),_:1}))]),T(i,{class:"logo",to:{name:"root"},style:hn(e.logoBgStyle),title:e.sitename},{default:X(()=>[g("div",{class:"mask",style:hn(e.logoMaskStyle)},null,4),g("img",{src:e.logo,style:hn(e.logoStyle)},null,12,Q_e)]),_:1},8,["style","title"]),g("div",e2e,[e.currentUser||!e.privateMode?(p(),Y(a,{key:0,onToggled:e.onSearchBarToggled,onClick:t[0]||(t[0]=Te(()=>{},["stop"]))},null,8,["onToggled"])):E("",!0),g("button",{class:"button-unstyled nav-icon",title:e.$t("nav.preferences"),onClick:t[1]||(t[1]=Te((...f)=>e.openSettingsModal&&e.openSettingsModal(...f),["stop"]))},[T(c,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"cog"})],8,t2e),e.currentUser&&e.currentUser.role==="admin"?(p(),b("button",{key:1,class:"button-unstyled nav-icon",target:"_blank",title:e.$t("nav.administration"),onClick:t[2]||(t[2]=Te((...f)=>e.openAdminModal&&e.openAdminModal(...f),["stop"]))},[T(c,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"tachometer-alt"})],8,n2e)):E("",!0),t[5]||(t[5]=g("span",{class:"spacer"},null,-1)),e.currentUser?(p(),b("button",{key:2,class:"button-unstyled nav-icon",title:e.$t("login.logout"),onClick:t[3]||(t[3]=Te((...f)=>e.logout&&e.logout(...f),["stop","prevent"]))},[T(c,{"fixed-width":"",class:"fa-scale-110 fa-old-padding",icon:"sign-out-alt"})],8,s2e)):E("",!0)])]),(p(),Y(Yn,{to:"#modal"},[e.showingConfirmLogout?(p(),Y(u,{key:0,title:e.$t("login.logout_confirm_title"),"confirm-text":e.$t("login.logout_confirm_accept_button"),"cancel-text":e.$t("login.logout_confirm_cancel_button"),onAccepted:e.doLogout,onCancelled:e.hideConfirmLogout},{default:X(()=>[de(w(e.$t("login.logout_confirm")),1)]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0)]))],2)}const o2e=ge(X_e,[["render",r2e]]),i2e={props:{items:{type:Array,default:()=>[]},getKey:{type:Function,default:e=>e.id},getClass:{type:Function,default:()=>""},nonInteractive:{type:Boolean,default:!1}}},a2e={class:"list",role:"list"},l2e={key:0,class:"list-empty-content faint"};function c2e(e,t,n,s,r,o){return p(),b("div",a2e,[(p(!0),b(Se,null,We(n.items,i=>(p(),b("div",{key:n.getKey(i),class:he(["list-item",[n.getClass(i),n.nonInteractive?"-non-interactive":""]]),role:"listitem"},[Ot(e.$slots,"item",{item:i})],2))),128)),n.items.length===0&&e.$slots.empty?(p(),b("div",l2e,[Ot(e.$slots,"empty")])):E("",!0)])}const Td=ge(i2e,[["render",c2e]]),u2e={components:{Status:ea,List:Td,Checkbox:io,Modal:dd,UserLink:$d},data(){return{comment:"",forward:!1,statusIdsToReport:[],processing:!1,error:!1}},computed:{reportModal(){return qi().reportModal},isLoggedIn(){return!!this.$store.state.users.currentUser},isOpen(){return this.isLoggedIn&&this.reportModal.activated},userId(){return this.reportModal.userId},user(){return this.$store.getters.findUser(this.userId)},remoteInstance(){return!this.user.is_local&&this.user.screen_name.substr(this.user.screen_name.indexOf("@")+1)},statuses(){return this.reportModal.statuses},preTickedIds(){return this.reportModal.preTickedIds}},watch:{userId:"resetState",preTickedIds(e){this.statusIdsToReport=e}},methods:{resetState(){this.comment="",this.forward=!1,this.statusIdsToReport=this.preTickedIds,this.processing=!1,this.error=!1},closeModal(){qi().closeUserReportingModal()},reportUser(){this.processing=!0,this.error=!1;const e={userId:this.userId,comment:this.comment,forward:this.forward,statusIds:this.statusIdsToReport};this.$store.state.api.backendInteractor.reportUser({...e}).then(()=>{this.processing=!1,this.resetState(),this.closeModal()}).catch(()=>{this.processing=!1,this.error=!0})},clearError(){this.error=!1},isChecked(e){return this.statusIdsToReport.indexOf(e)!==-1},toggleStatus(e,t){e!==this.isChecked(t)&&(e?this.statusIdsToReport.push(t):this.statusIdsToReport.splice(this.statusIdsToReport.indexOf(t),1))},resize(e){const t=e.target||e;t instanceof window.Element&&(t.style.height="auto",t.style.height=`${t.scrollHeight}px`,t.value===""&&(t.style.height=null))}}},d2e={class:"user-reporting-panel panel"},f2e={class:"panel-heading"},h2e={class:"panel-body"},p2e={class:"user-reporting-panel-left"},m2e=["placeholder"],g2e={key:0},v2e=["disabled"],b2e={key:0,class:"alert error"},y2e={class:"user-reporting-panel-right"},_2e={class:"status-fadein user-reporting-panel-sitem"};function w2e(e,t,n,s,r,o){const i=O("UserLink"),a=O("i18n-t"),c=O("Checkbox"),u=O("Status"),f=O("List"),h=O("Modal");return e.isOpen?(p(),Y(h,{key:0,onBackdropClicked:e.closeModal},{default:X(()=>[g("div",d2e,[g("div",f2e,[T(a,{tag:"h1",keypath:"user_reporting.title",class:"title"},{default:X(()=>[T(i,{class:"user-link",user:e.user},null,8,["user"])]),_:1})]),g("div",h2e,[g("div",p2e,[g("div",null,[g("p",null,w(e.$t("user_reporting.add_comment_description")),1),at(g("textarea",{"onUpdate:modelValue":t[0]||(t[0]=v=>e.comment=v),class:"input form-control",placeholder:e.$t("user_reporting.additional_comments"),rows:"1",onInput:t[1]||(t[1]=(...v)=>e.resize&&e.resize(...v))},null,40,m2e),[[Nt,e.comment]])]),e.user.is_local?E("",!0):(p(),b("div",g2e,[g("p",null,w(e.$t("user_reporting.forward_description")),1),T(c,{modelValue:e.forward,"onUpdate:modelValue":t[2]||(t[2]=v=>e.forward=v)},{default:X(()=>[de(w(e.$t("user_reporting.forward_to",[e.remoteInstance])),1)]),_:1},8,["modelValue"])])),g("div",null,[g("button",{class:"btn button-default",disabled:e.processing,onClick:t[3]||(t[3]=(...v)=>e.reportUser&&e.reportUser(...v))},w(e.$t("user_reporting.submit")),9,v2e),e.error?(p(),b("div",b2e,w(e.$t("user_reporting.generic_error")),1)):E("",!0)])]),g("div",y2e,[T(f,{items:e.statuses},{item:X(({item:v})=>[g("div",_2e,[T(u,{"in-conversation":!1,focused:!1,statusoid:v},null,8,["statusoid"]),T(c,{"model-value":e.isChecked(v.id),"onUpdate:modelValue":y=>e.toggleStatus(y,v.id)},null,8,["model-value","onUpdate:modelValue"])])]),_:1},8,["items"])])])])]),_:1},8,["onBackdropClicked"])):E("",!0)}const S2e=ge(u2e,[["render",w2e]]),$2e={components:{PostStatusForm:lc},props:{params:{type:Object,required:!0}},methods:{requestClose(){this.$refs.postStatusForm.requestClose()},doEditStatus({status:e,spoilerText:t,sensitive:n,media:s,contentType:r,poll:o}){const i={store:this.$store,statusId:this.params.statusId,status:e,spoilerText:t,sensitive:n,poll:o,media:s,contentType:r};return Uu.editStatus(i).then(a=>a).catch(a=>(console.error("Error editing status",a),{error:a.message}))}}};function k2e(e,t,n,s,r,o){const i=O("PostStatusForm");return p(),Y(i,An({ref:"postStatusForm"},e.params,{"post-handler":e.doEditStatus,"disable-polls":!0,"disable-visibility-selector":!0}),null,16,["post-handler"])}const FO=ge($2e,[["render",k2e]]);var C2e=DP();const Hi=bs(C2e),T2e={components:{EditStatusForm:FO,Modal:dd},data(){return{resettingForm:!1}},computed:{isLoggedIn(){return!!this.$store.state.users.currentUser},modalActivated(){return Mu().modalActivated},isFormVisible(){return this.isLoggedIn&&!this.resettingForm&&this.modalActivated},params(){return Mu().params||{}}},watch:{params(e,t){Hi(e,"statusId")!==Hi(t,"statusId")&&(this.resettingForm=!0,this.$nextTick(()=>{this.resettingForm=!1}))},isFormVisible(e){e&&this.$nextTick(()=>this.$el&&this.$el.querySelector("textarea").focus())}},methods:{closeModal(){this.$refs.editStatusForm.requestClose()},doCloseModal(){Mu().closeEditStatusModal()}}},A2e={class:"edit-form-modal-panel panel"},E2e={class:"panel-heading"},I2e={class:"title"};function P2e(e,t,n,s,r,o){const i=O("EditStatusForm"),a=O("Modal");return e.isFormVisible?(p(),Y(a,{key:0,class:"edit-form-modal-view",onBackdropClicked:e.closeModal},{default:X(()=>[g("div",A2e,[g("div",E2e,[g("h1",I2e,w(e.$t("post_status.edit_status")),1)]),T(i,{ref:"editStatusForm",class:"panel-body",params:e.params,onPosted:e.doCloseModal,onDraftDone:e.doCloseModal,onCanClose:e.doCloseModal},null,8,["params","onPosted","onDraftDone","onCanClose"])])]),_:1},8,["onBackdropClicked"])):E("",!0)}const L2e=ge(T2e,[["render",P2e]]),O2e={components:{PostStatusForm:lc,Modal:dd},data(){return{resettingForm:!1}},computed:{isLoggedIn(){return!!this.$store.state.users.currentUser},modalActivated(){return Ai().modalActivated},isFormVisible(){return this.isLoggedIn&&!this.resettingForm&&this.modalActivated},params(){return Ai().params||{}}},watch:{params(e,t){Hi(e,"repliedUser.id")!==Hi(t,"repliedUser.id")&&(this.resettingForm=!0,this.$nextTick(()=>{this.resettingForm=!1}))},isFormVisible(e){e&&this.$nextTick(()=>this.$el&&this.$el.querySelector("textarea").focus())}},methods:{closeModal(){Ai().closePostStatusModal()},resetAndClose(){Ai().resetPostStatusModal(),Ai().closePostStatusModal()}}},R2e={class:"post-form-modal-panel panel"},M2e={class:"panel-heading"},N2e={class:"title"};function F2e(e,t,n,s,r,o){const i=O("PostStatusForm"),a=O("Modal");return e.isLoggedIn&&!e.resettingForm?(p(),Y(a,{key:0,"is-open":e.modalActivated,class:"post-form-modal-view",onBackdropClicked:e.closeModal},{default:X(()=>[g("div",R2e,[g("div",M2e,[g("h1",N2e,w(e.$t("post_status.new_status")),1)]),T(i,An({class:"panel-body"},e.params,{closeable:!0,onPosted:e.resetAndClose,onDraftDone:e.resetAndClose}),null,16,["onPosted","onDraftDone"])])]),_:1},8,["is-open","onBackdropClicked"])):E("",!0)}const D2e=ge(O2e,[["render",F2e]]),U2e={components:{Modal:dd,Status:ea},data(){return{statuses:[]}},computed:{modalActivated(){return Nu().modalActivated},params(){return Nu().params},statusId(){return this.params.id},historyCount(){return this.statuses.length},history(){return this.statuses}},watch:{params(e,t){const n=Z.get(e,"id")!==Z.get(t,"id");n&&this.resetHistory(),(n||Z.get(e,"edited_at")!==Z.get(t,"edited_at"))&&this.fetchStatusHistory()}},methods:{resetHistory(){this.statuses=[]},fetchStatusHistory(){this.$store.dispatch("fetchStatusHistory",this.params).then(e=>{this.statuses=e})},closeModal(){Nu().closeStatusHistoryModal()}}},j2e={class:"status-history-modal-panel panel"},B2e={class:"panel-heading"},z2e={class:"title"},q2e={class:"panel-body"},H2e={key:0,class:"history-body"};function V2e(e,t,n,s,r,o){const i=O("status"),a=O("Modal");return e.modalActivated?(p(),Y(a,{key:0,class:"status-history-modal-view",onBackdropClicked:e.closeModal},{default:X(()=>[g("div",j2e,[g("div",B2e,[g("h1",z2e,w(e.$t("status.status_history"))+" ("+w(e.historyCount)+") ",1)]),g("div",q2e,[e.historyCount>0?(p(),b("div",H2e,[(p(!0),b(Se,null,We(e.history,c=>(p(),Y(i,{key:c.id,statusoid:c,"is-preview":!0,class:"conversation-status status-fadein panel-body"},null,8,["statusoid"]))),128))])):E("",!0)])])]),_:1},8,["onBackdropClicked"])):E("",!0)}const W2e=ge(U2e,[["render",V2e]]);et.add(Xn);const G2e={computed:{notices(){return Xe().globalNotices}},methods:{closeNotice(e){Xe().removeGlobalNotice(e)}}},K2e={class:"global-notice-list"},x2e={class:"notice-message"},Y2e=["onClick"];function X2e(e,t,n,s,r,o){const i=O("FAIcon");return p(),b("div",K2e,[(p(!0),b(Se,null,We(e.notices,(a,c)=>(p(),b("div",{key:c,class:he(["alert global-notice",{[a.level]:!0}])},[g("div",x2e,w(e.$t(a.messageKey,a.messageArgs)),1),g("button",{class:"button-unstyled close-notice",onClick:u=>e.closeNotice(a)},[T(i,{class:"fa-scale-110 fa-old-padding",icon:"times"})],8,Y2e)],2))),128))])}const J2e=ge(G2e,[["render",X2e]]),Z2e={name:"app",components:{UserPanel:Ige,NavPanel:TO,Notifications:gr(()=>Ve(()=>Promise.resolve().then(()=>T_e),void 0)),InstanceSpecificPanel:AO,FeaturesPanel:EO,WhoToFollowPanel:L1e,ShoutPanel:IO,MediaModal:Sve,SideDrawer:RO,MobilePostStatusButton:Dve,MobileNav:q_e,DesktopNav:o2e,SettingsModal:gr(()=>Ve(()=>import("./settings_modal.Hse38PiB.js").then(e=>e.s),__vite__mapDeps([2,3]))),UpdateNotification:gr(()=>Ve(()=>import("./update_notification.CZcx2OQ7.js"),__vite__mapDeps([4,5]))),UserReportingModal:S2e,PostStatusModal:D2e,EditStatusModal:L2e,StatusHistoryModal:W2e,GlobalNoticeList:J2e},data:()=>({mobileActivePanel:"timeline"}),watch:{themeApplied(){this.removeSplash()},currentTheme(){this.setThemeBodyClass()},layoutType(){document.getElementById("modal").classList=["-"+this.layoutType]}},created(){const e=this.$store.getters.mergedConfig.interfaceLanguage;this.$store.dispatch("setOption",{name:"interfaceLanguage",value:e}),document.getElementById("modal").classList=["-"+this.layoutType],this.updateScrollState=Z.throttle(this.scrollHandler,200),this.updateMobileState=Z.throttle(this.resizeHandler,200)},mounted(){window.addEventListener("resize",this.updateMobileState),this.scrollParent.addEventListener("scroll",this.updateScrollState),Xe().themeApplied&&(this.setThemeBodyClass(),this.removeSplash()),vp()},unmounted(){window.removeEventListener("resize",this.updateMobileState),this.scrollParent.removeEventListener("scroll",this.updateScrollState)},computed:{themeApplied(){return Xe().themeApplied},currentTheme(){if(Xe().styleDataUsed){const e=Xe().styleDataUsed.find(t=>t.component==="@meta");if(e!==void 0)return e.directives.name.replaceAll(" ","-").toLowerCase()}return"stock"},layoutModalClass(){return"-"+this.layoutType},classes(){return[{"-reverse":this.reverseLayout,"-no-sticky-headers":this.noSticky,"-has-new-post-button":this.newPostButtonShown},"-"+this.layoutType]},navClasses(){const{navbarColumnStretch:e}=this.$store.getters.mergedConfig;return["-"+this.layoutType,...e?["-column-stretch"]:[]]},currentUser(){return this.$store.state.users.currentUser},userBackground(){return this.currentUser.background_image},instanceBackground(){return this.mergedConfig.hideInstanceWallpaper?null:this.$store.state.instance.background},background(){return this.userBackground||this.instanceBackground},bgStyle(){if(this.background)return{"--body-background-image":`url(${this.background})`}},shout(){return Gl().joined},suggestionsEnabled(){return this.$store.state.instance.suggestionsEnabled},showInstanceSpecificPanel(){return this.$store.state.instance.showInstanceSpecificPanel&&!this.$store.getters.mergedConfig.hideISP&&this.$store.state.instance.instanceSpecificPanelContent},isChats(){return this.$route.name==="chat"||this.$route.name==="chats"},isListEdit(){return this.$route.name==="lists-edit"},newPostButtonShown(){return this.isChats||this.isListEdit?!1:this.$store.getters.mergedConfig.alwaysShowNewPostButton||this.layoutType==="mobile"},showFeaturesPanel(){return this.$store.state.instance.showFeaturesPanel},editingAvailable(){return this.$store.state.instance.editingAvailable},shoutboxPosition(){return this.$store.getters.mergedConfig.alwaysShowNewPostButton||!1},hideShoutbox(){return this.$store.getters.mergedConfig.hideShoutbox},layoutType(){return Xe().layoutType},privateMode(){return this.$store.state.instance.private},reverseLayout(){const{thirdColumnMode:e,sidebarRight:t}=this.$store.getters.mergedConfig;return this.layoutType!=="wide"||e==="notifications"?t:!t},noSticky(){return this.$store.getters.mergedConfig.disableStickyHeaders},showScrollbars(){return this.$store.getters.mergedConfig.showScrollbars},scrollParent(){return window},...bn(["mergedConfig"])},methods:{resizeHandler(){Xe().setLayoutWidth(Lh()),Xe().setLayoutHeight(Oh())},scrollHandler(){(this.scrollParent===window?window.scrollY:this.scrollParent.scrollTop)!=0?this.$refs.appContentRef.classList.add(["-scrolled"]):this.$refs.appContentRef.classList.remove(["-scrolled"])},setThemeBodyClass(){const e=this.currentTheme,n=Array.from(document.body.classList).filter(s=>s.startsWith("theme-"));if(e!==null&&e!==""){const s=`theme-${e.toLowerCase()}`;n.length?document.body.classList.replace(n[0],s):document.body.classList.add(s)}else document.body.classList.remove(...n)},removeSplash(){document.querySelector("#status").textContent=this.$t("splash.fun_"+Math.ceil(Math.random()*4));const e=document.querySelector("#splash");e.addEventListener("transitionend",()=>{e.remove()}),setTimeout(()=>{e.remove()},600),e.classList.add("hidden"),document.querySelector("#app").classList.remove("hidden")}}},Q2e={key:0,class:"login-hint panel panel-default"};function ewe(e,t,n,s,r,o){const i=O("MobileNav"),a=O("DesktopNav"),c=O("Notifications"),u=O("user-panel"),f=O("nav-panel"),h=O("instance-specific-panel"),v=O("features-panel"),y=O("who-to-follow-panel"),S=O("router-link"),k=O("router-view"),I=O("MediaModal"),C=O("shout-panel"),$=O("MobilePostStatusButton"),P=O("UserReportingModal"),A=O("PostStatusModal"),R=O("EditStatusModal"),B=O("StatusHistoryModal"),N=O("SettingsModal"),W=O("UpdateNotification"),V=O("GlobalNoticeList");return at((p(),b("div",{id:"app-loaded",style:hn(e.bgStyle)},[t[2]||(t[2]=g("div",{id:"app_bg_wrapper",class:"app-bg-wrapper"},null,-1)),e.layoutType==="mobile"?(p(),Y(i,{key:0})):(p(),Y(a,{key:1,class:he(e.navClasses)},null,8,["class"])),e.currentUser?(p(),Y(c,{key:2})):E("",!0),g("div",{id:"content",ref:"appContentRef",class:he(["app-layout container",e.classes])},[t[1]||(t[1]=g("div",{class:"underlay"},null,-1)),g("div",{id:"sidebar",class:he(["column -scrollable",{"-show-scrollbar":e.showScrollbars}])},[T(u),e.layoutType!=="mobile"?(p(),b(Se,{key:0},[T(f),e.showInstanceSpecificPanel?(p(),Y(h,{key:0})):E("",!0),!e.currentUser&&e.showFeaturesPanel?(p(),Y(v,{key:1})):E("",!0),e.currentUser&&e.suggestionsEnabled?(p(),Y(y,{key:2})):E("",!0),t[0]||(t[0]=g("div",{id:"notifs-sidebar"},null,-1))],64)):E("",!0)],2),g("main",{id:"main-scroller",class:he(["column main",{"-full-height":e.isChats||e.isListEdit}])},[e.currentUser?E("",!0):(p(),b("div",Q2e,[T(S,{to:{name:"login"},class:"panel-body"},{default:X(()=>[de(w(e.$t("login.hint")),1)]),_:1})])),T(k)],2),g("div",{id:"notifs-column",class:he(["column -scrollable",{"-show-scrollbar":e.showScrollbars}])},null,2)],2),T(I),e.currentUser&&e.shout&&!e.hideShoutbox?(p(),Y(C,{key:3,floating:!0,class:he(["floating-shout mobile-hidden",{"-left":e.shoutboxPosition}])},null,8,["class"])):E("",!0),T($),T(P),T(A),e.editingAvailable?(p(),Y(R,{key:4})):E("",!0),e.editingAvailable?(p(),Y(B,{key:5})):E("",!0),T(N,{class:he(e.layoutModalClass)},null,8,["class"]),T(W),T(V)],4)),[[Cr,e.themeApplied]])}const twe=ge(Z2e,[["render",ewe]]);et.add(q5,Y5);const nwe={components:{Status:ea},name:"ThreadTree",props:{depth:Number,status:Object,inProfile:Boolean,conversation:Array,collapsable:Boolean,isExpanded:Boolean,pinnedStatusIdsObject:Object,profileUserId:String,isFocusedFunction:Function,highlight:String,getReplies:Function,setHighlight:Function,toggleExpanded:Function,simple:Boolean,toggleThreadDisplay:Function,threadDisplayStatus:Object,showThreadRecursively:Function,totalReplyCount:Object,totalReplyDepth:Object,statusContentProperties:Object,setStatusContentProperty:Function,toggleStatusContentProperty:Function,dive:Function},computed:{suspendable(){const e=this.$refs.statusComponent?this.$refs.statusComponent.suspendable:!0;return this.$refs.childComponent?e&&this.$refs.childComponent.every(t=>t.suspendable):e},reverseLookupTable(){return this.conversation.reduce((e,t,n)=>(e[t.id]=n,e),{})},currentReplies(){return this.getReplies(this.status.id).map(({id:e})=>this.statusById(e))},threadShowing(){return this.threadDisplayStatus[this.status.id]==="showing"},currentProp(){return this.statusContentProperties[this.status.id]}},methods:{statusById(e){return this.conversation[this.reverseLookupTable[e]]},collapseThread(){},showThread(){},showAllSubthreads(){},toggleCurrentProp(e){this.toggleStatusContentProperty(this.status.id,e)},setCurrentProp(e){this.setStatusContentProperty(this.status.id,e)}}},swe={class:"thread-tree"},rwe={key:0,class:"thread-tree-replies"},owe={key:1,class:"thread-tree-replies thread-tree-replies-hidden"};function iwe(e,t,n,s,r,o){const i=O("status"),a=O("thread-tree"),c=O("FAIcon"),u=O("i18n-t");return p(),b("article",swe,[(p(),Y(i,{key:e.status.id,ref:"statusComponent","inline-expanded":e.collapsable&&e.isExpanded,statusoid:e.status,expandable:!e.isExpanded,"show-pinned":e.pinnedStatusIdsObject&&e.pinnedStatusIdsObject[e.status.id],focused:e.isFocusedFunction(e.status.id),"in-conversation":e.isExpanded,highlight:e.highlight,replies:e.getReplies(e.status.id),"in-profile":e.inProfile,"profile-user-id":e.profileUserId,class:"conversation-status conversation-status-treeview status-fadein panel-body","simple-tree":e.simple,"controlled-thread-display-status":e.threadDisplayStatus[e.status.id],"controlled-toggle-thread-display":()=>e.toggleThreadDisplay(e.status.id),"controlled-showing-tall":e.currentProp.showingTall,"controlled-expanding-subject":e.currentProp.expandingSubject,"controlled-showing-long-subject":e.currentProp.showingLongSubject,"controlled-replying":e.currentProp.replying,"controlled-media-playing":e.currentProp.mediaPlaying,"controlled-toggle-showing-tall":()=>e.toggleCurrentProp("showingTall"),"controlled-toggle-expanding-subject":()=>e.toggleCurrentProp("expandingSubject"),"controlled-toggle-showing-long-subject":()=>e.toggleCurrentProp("showingLongSubject"),"controlled-toggle-replying":()=>e.toggleCurrentProp("replying"),"controlled-set-media-playing":f=>e.setCurrentProp("mediaPlaying",f),dive:e.dive?()=>e.dive(e.status.id):void 0,onGoto:e.setHighlight,onToggleExpanded:e.toggleExpanded},null,8,["inline-expanded","statusoid","expandable","show-pinned","focused","in-conversation","highlight","replies","in-profile","profile-user-id","simple-tree","controlled-thread-display-status","controlled-toggle-thread-display","controlled-showing-tall","controlled-expanding-subject","controlled-showing-long-subject","controlled-replying","controlled-media-playing","controlled-toggle-showing-tall","controlled-toggle-expanding-subject","controlled-toggle-showing-long-subject","controlled-toggle-replying","controlled-set-media-playing","dive","onGoto","onToggleExpanded"])),e.currentReplies.length&&e.threadShowing?(p(),b("div",rwe,[(p(!0),b(Se,null,We(e.currentReplies,f=>(p(),Y(a,{key:f.id,ref_for:!0,ref:"childComponent",depth:e.depth+1,status:f,"in-profile":e.inProfile,conversation:e.conversation,collapsable:e.collapsable,"is-expanded":e.isExpanded,"pinned-status-ids-object":e.pinnedStatusIdsObject,"profile-user-id":e.profileUserId,"is-focused-function":e.isFocusedFunction,"get-replies":e.getReplies,highlight:e.highlight,"set-highlight":e.setHighlight,"toggle-expanded":e.toggleExpanded,simple:e.simple,"toggle-thread-display":e.toggleThreadDisplay,"thread-display-status":e.threadDisplayStatus,"show-thread-recursively":e.showThreadRecursively,"total-reply-count":e.totalReplyCount,"total-reply-depth":e.totalReplyDepth,"status-content-properties":e.statusContentProperties,"set-status-content-property":e.setStatusContentProperty,"toggle-status-content-property":e.toggleStatusContentProperty,dive:e.dive},null,8,["depth","status","in-profile","conversation","collapsable","is-expanded","pinned-status-ids-object","profile-user-id","is-focused-function","get-replies","highlight","set-highlight","toggle-expanded","simple","toggle-thread-display","thread-display-status","show-thread-recursively","total-reply-count","total-reply-depth","status-content-properties","set-status-content-property","toggle-status-content-property","dive"]))),128))])):E("",!0),e.currentReplies.length&&!e.threadShowing?(p(),b("div",owe,[e.simple?(p(),Y(u,{key:0,scope:"global",tag:"button",keypath:"status.thread_follow_with_icon",class:"button-unstyled -link thread-tree-show-replies-button",onClick:t[0]||(t[0]=Te(f=>e.dive(e.status.id),["prevent"]))},{icon:X(()=>[T(c,{icon:"angle-double-right"})]),text:X(()=>[g("span",null,w(e.$t("status.thread_follow",{numStatus:e.totalReplyCount[e.status.id]},e.totalReplyCount[e.status.id])),1)]),_:1})):(p(),Y(u,{key:1,scope:"global",tag:"button",keypath:"status.thread_show_full_with_icon",class:"button-unstyled -link thread-tree-show-replies-button",onClick:t[1]||(t[1]=Te(f=>e.showThreadRecursively(e.status.id),["prevent"]))},{icon:X(()=>[T(c,{icon:"angle-double-down"})]),text:X(()=>[g("span",null,w(e.$t("status.thread_show_full",{numStatus:e.totalReplyCount[e.status.id],depth:e.totalReplyDepth[e.status.id]},e.totalReplyCount[e.status.id])),1)]),_:1}))])):E("",!0)])}const awe=ge(nwe,[["render",iwe]]);et.add(X5,mZ,e2);const lwe={props:{conversation:Boolean,nested:Boolean},components:{Popover:Jn},methods:{setReplyVisibility(e){this.$store.dispatch("setOption",{name:"replyVisibility",value:e}),this.$store.dispatch("queueFlushAll")},openTab(e){Xe().openSettingsModalTab(e)}},computed:{...bn(["mergedConfig"]),...sn(Xe,{mobileLayout:e=>e.layoutType==="mobile"}),triggerAttrs(){return this.mobileLayout?{}:{title:this.$t("timeline.quick_filter_settings")}},mainClass(){return this.mobileLayout?"main-button":"dropdown-item"},loggedIn(){return!!this.$store.state.users.currentUser},replyVisibilitySelf:{get(){return this.mergedConfig.replyVisibility==="self"},set(){this.setReplyVisibility("self")}},replyVisibilityFollowing:{get(){return this.mergedConfig.replyVisibility==="following"},set(){this.setReplyVisibility("following")}},replyVisibilityAll:{get(){return this.mergedConfig.replyVisibility==="all"},set(){this.setReplyVisibility("all")}},hideMedia:{get(){return this.mergedConfig.hideAttachments||this.mergedConfig.hideAttachmentsInConv},set(){const e=!this.hideMedia;this.$store.dispatch("setOption",{name:"hideAttachments",value:e}),this.$store.dispatch("setOption",{name:"hideAttachmentsInConv",value:e})}},hideMutedPosts:{get(){return this.mergedConfig.hideFilteredStatuses},set(){const e=!this.hideMutedPosts;this.$store.dispatch("setOption",{name:"hideFilteredStatuses",value:e})}},muteBotStatuses:{get(){return this.mergedConfig.muteBotStatuses},set(){const e=!this.muteBotStatuses;this.$store.dispatch("setOption",{name:"muteBotStatuses",value:e})}},muteSensitiveStatuses:{get(){return this.mergedConfig.muteSensitiveStatuses},set(){const e=!this.muteSensitiveStatuses;this.$store.dispatch("setOption",{name:"muteSensitiveStatuses",value:e})}}}},cwe={class:"dropdown-menu",role:"menu"},uwe={key:0,role:"group"},dwe={class:"menu-item dropdown-item -icon"},fwe=["aria-checked"],hwe={key:0,class:"menu-item dropdown-item -icon"},pwe=["aria-checked"],mwe={key:1,class:"menu-item dropdown-item -icon"},gwe=["aria-checked"],vwe={key:2,role:"separator",class:"dropdown-divider"},bwe={class:"menu-item dropdown-item -icon"},ywe=["aria-checked"],_we={class:"menu-item dropdown-item -icon"},wwe=["aria-checked"],Swe={class:"menu-item dropdown-item -icon"},$we=["aria-checked"],kwe={class:"menu-item dropdown-item -icon"},Cwe=["aria-checked"],Twe={class:"menu-item dropdown-item -icon"};function Awe(e,t,n,s,r,o){const i=O("FAIcon"),a=O("Popover");return p(),Y(a,{trigger:e.nested?"hover":"click",class:"QuickFilterSettings","bound-to":{x:"container"},position:e.nested?"right":"top","trigger-attrs":e.triggerAttrs},{content:X(()=>[g("div",cwe,[e.loggedIn?(p(),b("div",uwe,[g("div",dwe,[e.conversation?E("",!0):(p(),b("button",{key:0,class:"main-button","aria-checked":e.replyVisibilityAll,role:"menuitemradio",onClick:t[0]||(t[0]=c=>e.replyVisibilityAll=!0)},[g("span",{class:he(["input menu-checkbox -radio",{"menu-checkbox-checked":e.replyVisibilityAll}]),"aria-hidden":!0},null,2),de(w(e.$t("settings.reply_visibility_all")),1)],8,fwe))]),e.conversation?E("",!0):(p(),b("div",hwe,[g("button",{class:"main-button","aria-checked":e.replyVisibilityFollowing,role:"menuitemradio",onClick:t[1]||(t[1]=c=>e.replyVisibilityFollowing=!0)},[g("span",{class:he(["input menu-checkbox -radio",{"menu-checkbox-checked":e.replyVisibilityFollowing}]),"aria-hidden":!0},null,2),de(w(e.$t("settings.reply_visibility_following_short")),1)],8,pwe)])),e.conversation?E("",!0):(p(),b("div",mwe,[g("button",{class:"main-button","aria-checked":e.replyVisibilitySelf,role:"menuitemradio",onClick:t[2]||(t[2]=c=>e.replyVisibilitySelf=!0)},[g("span",{class:he(["input menu-checkbox -radio",{"menu-checkbox-checked":e.replyVisibilitySelf}]),"aria-hidden":!0},null,2),de(w(e.$t("settings.reply_visibility_self_short")),1)],8,gwe)])),e.conversation?E("",!0):(p(),b("div",vwe))])):E("",!0),g("div",bwe,[g("button",{class:"main-button",role:"menuitemcheckbox","aria-checked":e.muteBotStatuses,onClick:t[3]||(t[3]=c=>e.muteBotStatuses=!e.muteBotStatuses)},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.muteBotStatuses}]),"aria-hidden":!0},null,2),de(w(e.$t("settings.mute_bot_posts")),1)],8,ywe)]),g("div",_we,[g("button",{class:"main-button",role:"menuitemcheckbox","aria-checked":e.muteSensitiveStatuses,onClick:t[4]||(t[4]=c=>e.muteSensitiveStatuses=!e.muteSensitiveStatuses)},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.muteSensitiveStatuses}]),"aria-hidden":!0},null,2),de(w(e.$t("settings.mute_sensitive_posts")),1)],8,wwe)]),g("div",Swe,[g("button",{class:"main-button",role:"menuitemcheckbox","aria-checked":e.hideMedia,onClick:t[5]||(t[5]=c=>e.hideMedia=!e.hideMedia)},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.hideMedia}]),"aria-hidden":!0},null,2),de(w(e.$t("settings.hide_media_previews")),1)],8,$we)]),g("div",kwe,[g("button",{class:"main-button",role:"menuitemcheckbox","aria-checked":e.hideMutedPosts,onClick:t[6]||(t[6]=c=>e.hideMutedPosts=!e.hideMutedPosts)},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.hideMutedPosts}]),"aria-hidden":!0},null,2),de(w(e.$t("settings.hide_all_muted_posts")),1)],8,Cwe)]),g("div",Twe,[g("button",{class:"main-button",role:"menuitem",onClick:t[7]||(t[7]=c=>e.openTab("filtering"))},[T(i,{"fixed-width":"",icon:"font"}),de(w(e.$t("settings.word_filter_and_more")),1)])])])]),trigger:X(()=>[g("div",{class:he(e.mobileLayout?"main-button":"")},[T(i,{icon:"filter","fixed-width":e.nested},null,8,["fixed-width"]),e.nested?(p(),b(Se,{key:0},[de(w(e.$t("timeline.filter_settings")),1)],64)):E("",!0),e.nested?(p(),Y(i,{key:1,class:"chevron-icon",size:"lg",icon:"chevron-right","fixed-width":""})):E("",!0)],2)]),_:1},8,["trigger","position","trigger-attrs"])}const tw=ge(lwe,[["render",Awe]]);et.add(Ep,eP,V5,e2);const Ewe={props:{conversation:Boolean},components:{Popover:Jn,QuickFilterSettings:tw},methods:{setConversationDisplay(e){this.$store.dispatch("setOption",{name:"conversationDisplay",value:e})},openTab(e){Xe().openSettingsModalTab(e)}},computed:{...bn(["mergedConfig"]),...sn(Xe,{mobileLayout:e=>e.layoutType==="mobile"}),loggedIn(){return!!this.$store.state.users.currentUser},conversationDisplay:{get(){return this.mergedConfig.conversationDisplay},set(e){this.setConversationDisplay(e)}},autoUpdate:{get(){return this.mergedConfig.streaming},set(){const e=!this.autoUpdate;this.$store.dispatch("setOption",{name:"streaming",value:e})}},collapseWithSubjects:{get(){return this.mergedConfig.collapseMessageWithSubject},set(){const e=!this.collapseWithSubjects;this.$store.dispatch("setOption",{name:"collapseMessageWithSubject",value:e})}},showUserAvatars:{get(){return this.mergedConfig.mentionLinkShowAvatar},set(){const e=!this.showUserAvatars;this.$store.dispatch("setOption",{name:"mentionLinkShowAvatar",value:e})}},muteBotStatuses:{get(){return this.mergedConfig.muteBotStatuses},set(){const e=!this.muteBotStatuses;this.$store.dispatch("setOption",{name:"muteBotStatuses",value:e})}},muteSensitiveStatuses:{get(){return this.mergedConfig.muteSensitiveStatuses},set(){const e=!this.muteSensitiveStatuses;this.$store.dispatch("setOption",{name:"muteSensitiveStatuses",value:e})}}}},Iwe={class:"dropdown-menu",role:"menu"},Pwe={key:0,class:"menu-item dropdown-item -icon"},Lwe={key:1,role:"separator",class:"dropdown-divider"},Owe={role:"group"},Rwe={class:"menu-item dropdown-item -icon-double"},Mwe=["aria-checked"],Nwe={class:"menu-item dropdown-item -icon-double"},Fwe=["aria-checked"],Dwe={class:"menu-item dropdown-item -icon"},Uwe=["aria-checked"],jwe={key:2,class:"menu-item dropdown-item -icon"},Bwe=["aria-checked"],zwe={key:3,class:"menu-item dropdown-item -icon"},qwe=["aria-checked"],Hwe={class:"menu-item dropdown-item -icon"};function Vwe(e,t,n,s,r,o){const i=O("QuickFilterSettings"),a=O("FAIcon"),c=O("Popover");return p(),Y(c,{trigger:"click",class:"QuickViewSettings","bound-to":{x:"container"}},{content:X(()=>[g("div",Iwe,[e.mobileLayout?(p(),b("div",Pwe,[T(i,{nested:!0})])):E("",!0),e.mobileLayout?(p(),b("div",Lwe)):E("",!0),g("div",Owe,[g("div",Rwe,[g("button",{class:"main-button","aria-checked":e.conversationDisplay==="tree",role:"menuitemradio",onClick:t[0]||(t[0]=u=>e.conversationDisplay="tree")},[g("span",{class:he(["input menu-checkbox -radio",{"menu-checkbox-checked":e.conversationDisplay==="tree"}]),"aria-hidden":!0},null,2),T(a,{icon:"folder-tree","aria-hidden":!0,"fixed-width":""}),de(" "+w(e.$t("settings.conversation_display_tree_quick")),1)],8,Mwe)]),g("div",Nwe,[g("button",{class:"main-button","aria-checked":e.conversationDisplay==="linear",role:"menuitemradio",onClick:t[1]||(t[1]=u=>e.conversationDisplay="linear")},[g("span",{class:he(["input menu-checkbox -radio",{"menu-checkbox-checked":e.conversationDisplay==="linear"}]),"aria-hidden":!0},null,2),T(a,{icon:"list","aria-hidden":!0,"fixed-width":""}),de(" "+w(e.$t("settings.conversation_display_linear_quick")),1)],8,Fwe)])]),t[6]||(t[6]=g("div",{role:"separator",class:"dropdown-divider"},null,-1)),g("div",Dwe,[g("button",{class:"main-button",role:"menuitemcheckbox","aria-checked":e.showUserAvatars,onClick:t[2]||(t[2]=u=>e.showUserAvatars=!e.showUserAvatars)},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.showUserAvatars}]),"aria-hidden":!0},null,2),de(w(e.$t("settings.mention_link_show_avatar_quick")),1)],8,Uwe)]),e.conversation?E("",!0):(p(),b("div",jwe,[g("button",{class:"main-button",role:"menuitemcheckbox","aria-checked":e.autoUpdate,onClick:t[3]||(t[3]=u=>e.autoUpdate=!e.autoUpdate)},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.autoUpdate}]),"aria-hidden":!0},null,2),de(w(e.$t("settings.auto_update")),1)],8,Bwe)])),e.conversation?E("",!0):(p(),b("div",zwe,[g("button",{class:"main-button",role:"menuitemcheckbox","aria-checked":e.collapseWithSubjects,onClick:t[4]||(t[4]=u=>e.collapseWithSubjects=!e.collapseWithSubjects)},[g("span",{class:he(["input menu-checkbox",{"menu-checkbox-checked":e.collapseWithSubjects}]),"aria-hidden":!0},null,2),de(w(e.$t("settings.collapse_subject")),1)],8,qwe)])),g("div",Hwe,[g("button",{class:"main-button",role:"menuitem",onClick:t[5]||(t[5]=u=>e.openTab("general"))},[T(a,{icon:"wrench","fixed-width":""}),de(w(e.$t("settings.more_settings")),1)])])])]),trigger:X(()=>[T(a,{icon:"bars"})]),_:1})}const DO=ge(Ewe,[["render",Vwe]]);et.add(q5,kZ,qa);const Wwe=(e,t)=>{const n=e.type==="retweet"?e.retweeted_status.id:e.id,s=t.type==="retweet"?t.retweeted_status.id:t.id,r=Number(n),o=Number(s),i=!Number.isNaN(r),a=!Number.isNaN(o);return i&&a?r<o?-1:1:i&&!a?-1:!i&&a?1:n<s?-1:1},Gwe=(e,t)=>(t.type==="retweet"?e=Z.filter(e,n=>n.type==="retweet"||n.id!==t.retweeted_status.id):e=Z.filter(e,n=>n.type!=="retweet"),e.filter(n=>n).sort(Wwe)),Kwe={data(){return{highlight:null,expanded:!1,threadDisplayStatusObject:{},statusContentPropertiesObject:{},inlineDivePosition:null,loadStatusError:null}},props:["statusId","collapsable","isPage","pinnedStatusIdsObject","inProfile","profileUserId","virtualHidden"],created(){this.isPage&&this.fetchConversation()},computed:{maxDepthToShowByDefault(){const e=this.$store.getters.mergedConfig.maxDepthInThread-2;return e>=1?e:1},streamingEnabled(){return this.mergedConfig.useStreamingApi&&this.mastoUserSocketStatus===Ks.JOINED},displayStyle(){return this.$store.getters.mergedConfig.conversationDisplay},isTreeView(){return!this.isLinearView},treeViewIsSimple(){return!this.$store.getters.mergedConfig.conversationTreeAdvanced},isLinearView(){return this.displayStyle==="linear"},shouldFadeAncestors(){return this.$store.getters.mergedConfig.conversationTreeFadeAncestors},otherRepliesButtonPosition(){return this.$store.getters.mergedConfig.conversationOtherRepliesButton},showOtherRepliesButtonBelowStatus(){return this.otherRepliesButtonPosition==="below"},showOtherRepliesButtonInsideStatus(){return this.otherRepliesButtonPosition==="inside"},suspendable(){return this.isTreeView?Object.entries(this.statusContentProperties).every(([,e])=>!e.replying&&e.mediaPlaying.length===0):this.$refs.statusComponent&&this.$refs.statusComponent[0]?this.$refs.statusComponent.every(e=>e.suspendable):!0},hideStatus(){return this.virtualHidden&&this.suspendable},status(){return this.$store.state.statuses.allStatusesObject[this.statusId]},originalStatusId(){return this.status.retweeted_status?this.status.retweeted_status.id:this.statusId},conversationId(){return this.getConversationId(this.statusId)},conversation(){if(!this.status)return[];if(!this.isExpanded)return[this.status];const e=Z.clone(this.$store.state.statuses.conversationsObject[this.conversationId]),t=Z.findIndex(e,{id:this.originalStatusId});return t!==-1&&(e[t]=this.status),Gwe(e,this.status)},statusMap(){return this.conversation.reduce((e,t)=>(e[t.id]=t,e),{})},threadTree(){const e=this.conversation.reduce((r,o,i)=>(r[o.id]=i,r),{}),t=this.conversation.reduce((r,o)=>{const i=o.id;return r.forest[i]=this.getReplies(i).map(a=>a.id),r},{forest:{}}),n=(r,o,i=0,a={})=>o.map(c=>a[c]?[]:(a[c]=!0,[{status:this.conversation[e[c]],id:c,depth:i},n(r,r[c],i+1,a)].reduce((u,f)=>u.concat(f),[]))).reduce((c,u)=>c.concat(u),[]);return n(t.forest,this.topLevel.map(r=>r.id))},replyIds(){return this.conversation.map(e=>e.id).reduce((e,t)=>(e[t]=(this.replies[t]||[]).map(n=>n.id),e),{})},totalReplyCount(){const e={},t=n=>(e[n]||(e[n]=1+this.replyIds[n].map(s=>t(s)).reduce((s,r)=>s+r,0)),e[n]);return this.conversation.map(n=>n.id).map(t),Object.keys(e).reduce((n,s)=>(n[s]=e[s]-1,n),{})},totalReplyDepth(){const e={},t=n=>(e[n]||(e[n]=1+this.replyIds[n].map(s=>t(s)).reduce((s,r)=>s>r?s:r,0)),e[n]);return this.conversation.map(n=>n.id).map(t),Object.keys(e).reduce((n,s)=>(n[s]=e[s]-1,n),{})},depths(){return this.threadTree.reduce((e,t)=>(e[t.id]=t.depth,e),{})},topLevel(){return this.conversation.reduce((t,n)=>t.filter(s=>this.getReplies(n.id).map(r=>r.id).indexOf(s.id)===-1),this.conversation)},otherTopLevelCount(){return this.topLevel.length-1},showingTopLevel(){return this.canDive&&this.diveRoot?[this.statusMap[this.diveRoot]]:this.topLevel},diveRoot(){const e=this.inlineDivePosition||this.statusId;return!this.parentOf(e)?null:e},diveDepth(){return this.canDive&&this.diveRoot?this.depths[this.diveRoot]:0},diveMode(){return this.canDive&&!!this.diveRoot},shouldShowAllConversationButton(){return this.isTreeView&&this.isExpanded&&this.diveMode&&this.topLevel.length>1},shouldShowAncestors(){return this.isTreeView&&this.isExpanded&&this.ancestorsOf(this.diveRoot).length},replies(){let e=1;return Z.reduce(this.conversation,(t,{id:n,in_reply_to_status_id:s})=>(s&&(t[s]=t[s]||[],t[s].push({name:`#${e}`,id:n})),e++,t),{})},isExpanded(){return!!(this.expanded||this.isPage)},hiddenStyle(){const e=this.status&&this.status.virtualHeight||"120px";return this.virtualHidden?{height:e}:{}},threadDisplayStatus(){return this.conversation.reduce((e,t)=>{const n=t.id,s=this.depths[n],r=this.threadDisplayStatusObject[n]?this.threadDisplayStatusObject[n]:s-this.diveDepth<=this.maxDepthToShowByDefault?"showing":"hidden";return e[n]=r,e},{})},statusContentProperties(){return this.conversation.reduce((e,t)=>{const n=t.id,s=(()=>{const r={showingTall:!1,expandingSubject:!1,showingLongSubject:!1,isReplying:!1,mediaPlaying:[]};return this.statusContentPropertiesObject[n]?{...r,...this.statusContentPropertiesObject[n]}:r})();return e[n]=s,e},{})},canDive(){return this.isTreeView&&this.isExpanded},maybeHighlight(){return this.isExpanded?this.highlight:null},...bn(["mergedConfig"]),...mn({mastoUserSocketStatus:e=>e.api.mastoUserSocketStatus}),...sn(Xe,{mobileLayout:e=>e.layoutType==="mobile"})},components:{Status:ea,ThreadTree:awe,QuickFilterSettings:tw,QuickViewSettings:DO},watch:{statusId(e,t){const n=this.getConversationId(e),s=this.getConversationId(t);n&&s&&n===s?this.setHighlight(this.originalStatusId):this.fetchConversation()},expanded(e){e?this.fetchConversation():this.resetDisplayState()},virtualHidden(){this.$store.dispatch("setVirtualHeight",{statusId:this.statusId,height:`${this.$el.clientHeight}px`})}},methods:{fetchConversation(){this.status?this.$store.state.api.backendInteractor.fetchConversation({id:this.statusId}).then(({ancestors:e,descendants:t})=>{this.$store.dispatch("addNewStatuses",{statuses:e}),this.$store.dispatch("addNewStatuses",{statuses:t}),this.setHighlight(this.originalStatusId)}):(this.loadStatusError=null,this.$store.state.api.backendInteractor.fetchStatus({id:this.statusId}).then(e=>{this.$store.dispatch("addNewStatuses",{statuses:[e]}),this.fetchConversation()}).catch(e=>{this.loadStatusError=e}))},isFocused(e){return this.isExpanded&&e===this.highlight},getReplies(e){return this.replies[e]||[]},getHighlight(){return this.isExpanded?this.highlight:null},setHighlight(e){e&&(this.highlight=e,this.streamingEnabled||this.$store.dispatch("fetchStatus",e),this.$store.dispatch("fetchFavsAndRepeats",e),this.$store.dispatch("fetchEmojiReactionsBy",e))},toggleExpanded(){this.expanded=!this.expanded},getConversationId(e){const t=this.$store.state.statuses.allStatusesObject[e];return Z.get(t,"retweeted_status.statusnet_conversation_id",Z.get(t,"statusnet_conversation_id"))},setThreadDisplay(e,t){this.threadDisplayStatusObject={...this.threadDisplayStatusObject,[e]:t}},toggleThreadDisplay(e){const n=this.threadDisplayStatus[e]==="showing"?"hidden":"showing";this.setThreadDisplay(e,n)},setThreadDisplayRecursively(e,t){this.setThreadDisplay(e,t),this.getReplies(e).map(n=>n.id).map(n=>this.setThreadDisplayRecursively(n,t))},showThreadRecursively(e){this.setThreadDisplayRecursively(e,"showing")},setStatusContentProperty(e,t,n){this.statusContentPropertiesObject={...this.statusContentPropertiesObject,[e]:{...this.statusContentPropertiesObject[e],[t]:n}}},toggleStatusContentProperty(e,t){this.setStatusContentProperty(e,t,!this.statusContentProperties[e][t])},leastVisibleAncestor(e){let t=e,n=this.parentOf(t);for(;t;){if(this.threadDisplayStatus[n]==="showing")return t;n=this.parentOf(n),t=this.parentOf(t)}return this.topLevel[0]?this.topLevel[0].id:void 0},diveIntoStatus(e){this.tryScrollTo(e)},diveToTopLevel(){this.tryScrollTo(this.topLevelAncestorOrSelfId(this.diveRoot)||this.topLevel[0].id)},undive(){this.inlineDivePosition=null,this.setHighlight(this.statusId)},tryScrollTo(e){e&&(this.isPage?this.$router.push({name:"conversation",params:{id:e}}):this.inlineDivePosition=e,this.$nextTick(()=>{this.setHighlight(e)}))},goToCurrent(){this.tryScrollTo(this.diveRoot||this.topLevel[0].id)},statusById(e){return this.statusMap[e]},parentOf(e){const t=this.statusById(e);if(!t)return;const{in_reply_to_status_id:n}=t;if(this.statusMap[n])return n},parentOrSelf(e){return this.parentOf(e)||e},ancestorsOf(e){const t=[];let n=this.parentOf(e);for(;n;)t.unshift(this.statusMap[n]),n=this.parentOf(n);return t},topLevelAncestorOrSelfId(e){let t=e,n=this.parentOf(e);for(;n;)t=this.parentOf(t),n=this.parentOf(n);return t},resetDisplayState(){this.undive(),this.threadDisplayStatusObject={}}}},xwe={key:0,class:"panel-heading conversation-heading -sticky"},Ywe={class:"title"},Xwe={key:0},Jwe={key:1},Zwe={key:0,class:"thread-body"},Qwe={key:0,class:"conversation-dive-to-top-level-box"},eSe={key:1,class:"thread-ancestors"},tSe={key:0,class:"thread-ancestor-dive-box"},nSe={class:"thread-ancestor-dive-box-inner"},sSe={key:1,class:"thread-body"};function rSe(e,t,n,s,r,o){const i=O("QuickFilterSettings"),a=O("QuickViewSettings"),c=O("FAIcon"),u=O("i18n-t"),f=O("status"),h=O("thread-tree");return e.hideStatus?(p(),b("div",{key:1,class:"Conversation -hidden",style:hn(e.hiddenStyle)},null,4)):(p(),b("div",{key:0,style:hn(e.hiddenStyle),class:he(["Conversation",{"-expanded":e.isExpanded,panel:e.isExpanded}])},[e.isExpanded?(p(),b("div",xwe,[g("h1",Ywe,w(e.$t("timeline.conversation")),1),e.collapsable?(p(),b("button",{key:0,class:"button-unstyled -link",onClick:t[0]||(t[0]=Te((...v)=>e.toggleExpanded&&e.toggleExpanded(...v),["prevent"]))},w(e.$t("timeline.collapse")),1)):E("",!0),!e.collapsable&&e.mobileLayout?(p(),Y(i,{key:1,conversation:!0,class:"rightside-button"})):E("",!0),e.collapsable?E("",!0):(p(),Y(a,{key:2,conversation:!0,class:"rightside-button"}))])):E("",!0),e.isPage&&!e.status?(p(),b("div",{key:1,class:he(["conversation-body",{"panel-body":e.isExpanded}])},[e.loadStatusError?(p(),b("p",Jwe,w(e.$t("status.load_error",{error:e.loadStatusError})),1)):(p(),b("p",Xwe,[T(c,{spin:"",icon:"circle-notch"}),de(" "+w(e.$t("status.loading")),1)]))],2)):(p(),b("div",{key:2,class:he(["conversation-body",{"panel-body":e.isExpanded}])},[e.isTreeView?(p(),b("div",Zwe,[e.shouldShowAllConversationButton?(p(),b("div",Qwe,[T(u,{keypath:"status.show_all_conversation_with_icon",tag:"button",class:"button-unstyled -link",scope:"global",onClick:Te(e.diveToTopLevel,["prevent"])},{icon:X(()=>[T(c,{icon:"angle-double-left"})]),text:X(()=>[g("span",null,w(e.$t("status.show_all_conversation",{numStatus:e.otherTopLevelCount},e.otherTopLevelCount)),1)]),_:1},8,["onClick"])])):E("",!0),e.shouldShowAncestors?(p(),b("div",eSe,[(p(!0),b(Se,null,We(e.ancestorsOf(e.diveRoot),v=>(p(),b("article",{key:v.id,class:he(["thread-ancestor",{"thread-ancestor-has-other-replies":e.getReplies(v.id).length>1,"-faded":e.shouldFadeAncestors}])},[T(f,{ref_for:!0,ref:"statusComponent","inline-expanded":e.collapsable&&e.isExpanded,statusoid:v,expandable:!e.isExpanded,"show-pinned":e.pinnedStatusIdsObject&&e.pinnedStatusIdsObject[v.id],focused:e.isFocused(v.id),"in-conversation":e.isExpanded,highlight:e.getHighlight(),replies:e.getReplies(v.id),"in-profile":e.inProfile,"profile-user-id":e.profileUserId,class:"conversation-status status-fadein panel-body","simple-tree":e.treeViewIsSimple,"toggle-thread-display":e.toggleThreadDisplay,"thread-display-status":e.threadDisplayStatus,"show-thread-recursively":e.showThreadRecursively,"total-reply-count":e.totalReplyCount,"total-reply-depth":e.totalReplyDepth,"show-other-replies-as-button":e.showOtherRepliesButtonInsideStatus,dive:()=>e.diveIntoStatus(v.id),"controlled-showing-tall":e.statusContentProperties[v.id].showingTall,"controlled-expanding-subject":e.statusContentProperties[v.id].expandingSubject,"controlled-showing-long-subject":e.statusContentProperties[v.id].showingLongSubject,"controlled-replying":e.statusContentProperties[v.id].replying,"controlled-media-playing":e.statusContentProperties[v.id].mediaPlaying,"controlled-toggle-showing-tall":()=>e.toggleStatusContentProperty(v.id,"showingTall"),"controlled-toggle-expanding-subject":()=>e.toggleStatusContentProperty(v.id,"expandingSubject"),"controlled-toggle-showing-long-subject":()=>e.toggleStatusContentProperty(v.id,"showingLongSubject"),"controlled-toggle-replying":()=>e.toggleStatusContentProperty(v.id,"replying"),"controlled-set-media-playing":y=>e.toggleStatusContentProperty(v.id,"mediaPlaying",y),onGoto:e.setHighlight,onToggleExpanded:e.toggleExpanded},null,8,["inline-expanded","statusoid","expandable","show-pinned","focused","in-conversation","highlight","replies","in-profile","profile-user-id","simple-tree","toggle-thread-display","thread-display-status","show-thread-recursively","total-reply-count","total-reply-depth","show-other-replies-as-button","dive","controlled-showing-tall","controlled-expanding-subject","controlled-showing-long-subject","controlled-replying","controlled-media-playing","controlled-toggle-showing-tall","controlled-toggle-expanding-subject","controlled-toggle-showing-long-subject","controlled-toggle-replying","controlled-set-media-playing","onGoto","onToggleExpanded"]),e.showOtherRepliesButtonBelowStatus&&e.getReplies(v.id).length>1?(p(),b("div",tSe,[g("div",nSe,[T(u,{tag:"button",scope:"global",keypath:"status.ancestor_follow_with_icon",class:"button-unstyled -link thread-tree-show-replies-button",onClick:Te(y=>e.diveIntoStatus(v.id),["prevent"])},{icon:X(()=>[T(c,{icon:"angle-double-right"})]),text:X(()=>[g("span",null,w(e.$t("status.ancestor_follow",{numReplies:e.getReplies(v.id,e.getReplies(v.id).length-1).length-1})),1)]),_:2},1032,["onClick"])])])):E("",!0)],2))),128))])):E("",!0),(p(!0),b(Se,null,We(e.showingTopLevel,v=>(p(),Y(h,{key:v.id,ref_for:!0,ref:"statusComponent",depth:0,status:v,"in-profile":e.inProfile,conversation:e.conversation,collapsable:e.collapsable,"is-expanded":e.isExpanded,"pinned-status-ids-object":e.pinnedStatusIdsObject,"profile-user-id":e.profileUserId,"is-focused-function":e.isFocused,"get-replies":e.getReplies,highlight:e.maybeHighlight,"set-highlight":e.setHighlight,"toggle-expanded":e.toggleExpanded,simple:e.treeViewIsSimple,"toggle-thread-display":e.toggleThreadDisplay,"thread-display-status":e.threadDisplayStatus,"show-thread-recursively":e.showThreadRecursively,"total-reply-count":e.totalReplyCount,"total-reply-depth":e.totalReplyDepth,"status-content-properties":e.statusContentProperties,"set-status-content-property":e.setStatusContentProperty,"toggle-status-content-property":e.toggleStatusContentProperty,dive:e.canDive?e.diveIntoStatus:void 0},null,8,["status","in-profile","conversation","collapsable","is-expanded","pinned-status-ids-object","profile-user-id","is-focused-function","get-replies","highlight","set-highlight","toggle-expanded","simple","toggle-thread-display","thread-display-status","show-thread-recursively","total-reply-count","total-reply-depth","status-content-properties","set-status-content-property","toggle-status-content-property","dive"]))),128))])):E("",!0),e.isLinearView?(p(),b("div",sSe,[g("article",null,[(p(!0),b(Se,null,We(e.conversation,v=>(p(),Y(f,{key:v.id,ref_for:!0,ref:"statusComponent","inline-expanded":e.collapsable&&e.isExpanded,statusoid:v,expandable:!e.isExpanded,"show-pinned":e.pinnedStatusIdsObject&&e.pinnedStatusIdsObject[v.id],focused:e.isFocused(v.id),"in-conversation":e.isExpanded,highlight:e.getHighlight(),replies:e.getReplies(v.id),"in-profile":e.inProfile,"profile-user-id":e.profileUserId,class:"conversation-status status-fadein panel-body","toggle-thread-display":e.toggleThreadDisplay,"thread-display-status":e.threadDisplayStatus,"show-thread-recursively":e.showThreadRecursively,"total-reply-count":e.totalReplyCount,"total-reply-depth":e.totalReplyDepth,"status-content-properties":e.statusContentProperties,"set-status-content-property":e.setStatusContentProperty,"toggle-status-content-property":e.toggleStatusContentProperty,onGoto:e.setHighlight,onToggleExpanded:e.toggleExpanded},null,8,["inline-expanded","statusoid","expandable","show-pinned","focused","in-conversation","highlight","replies","in-profile","profile-user-id","toggle-thread-display","thread-display-status","show-thread-recursively","total-reply-count","total-reply-depth","status-content-properties","set-status-content-property","toggle-status-content-property","onGoto","onToggleExpanded"]))),128))])])):E("",!0)],2))],6))}const am=ge(Kwe,[["render",rSe]]);et.add(za);const uA=e=>({friends:"nav.home_timeline",bookmarks:e?"nav.all_bookmarks":"nav.bookmarks",dms:"nav.dms","public-timeline":"nav.public_tl","public-external-timeline":"nav.twkn",quotes:"nav.quotes",bubble:"nav.bubble"}),oSe={components:{Popover:Jn,NavigationEntry:rm,ListsMenuContent:kO,BookmarkFoldersMenuContent:$O},data(){return{isOpen:!1}},created(){uA(this.bookmarkFolders)[this.$route.name]&&Xe().setLastTimeline(this.$route.name)},computed:{useListsMenu(){return this.$route.name==="lists-timeline"},useBookmarkFoldersMenu(){const e=this.$route.name;return this.bookmarkFolders&&(e==="bookmark-folder"||e==="bookmarks")},...mn({currentUser:e=>e.users.currentUser,privateMode:e=>e.instance.private,federating:e=>e.instance.federating,bookmarkFolders:e=>e.instance.pleromaBookmarkFoldersAvailable,bubbleTimeline:e=>e.instance.localBubbleInstances.length>0}),timelinesList(){return sd(Object.entries(Dl).map(([e,t])=>({...t,name:e})),{hasChats:this.pleromaChatMessagesAvailable,isFederating:this.federating,isPrivate:this.privateMode,currentUser:this.currentUser,supportsBookmarkFolders:this.bookmarkFolders,supportsBubbleTimeline:this.bubbleTimeline})}},methods:{openMenu(){setTimeout(()=>{this.isOpen=!0},25)},blockOpen(e){this.isOpen||e.stopPropagation()},timelineName(){const e=this.$route.name;if(e==="tag-timeline")return"#"+this.$route.params.tag;if(e==="lists-timeline")return Fn().findListTitle(this.$route.params.id);if(e==="bookmark-folder")return no().findBookmarkFolderName(this.$route.params.id);const t=uA(this.bookmarkFolders)[this.$route.name];return t?this.$t(t):e}}},iSe={key:2},aSe={class:"button-unstyled timeline-menu-title"},lSe={class:"title timeline-title"};function cSe(e,t,n,s,r,o){const i=O("ListsMenuContent"),a=O("BookmarkFoldersMenuContent"),c=O("NavigationEntry"),u=O("FAIcon"),f=O("Popover");return p(),Y(f,{trigger:"click",class:he(["TimelineMenu",{open:e.isOpen}]),"bound-to":{x:"container"},"bound-to-selector":".Timeline","popover-class":"timeline-menu-popover popover-default",onShow:e.openMenu,onClose:t[1]||(t[1]=()=>e.isOpen=!1)},{content:X(()=>[e.useListsMenu?(p(),Y(i,{key:0,"show-pin":!1,class:"timelines"})):e.useBookmarkFoldersMenu?(p(),Y(a,{key:1,class:"timelines"})):(p(),b("ul",iSe,[(p(!0),b(Se,null,We(e.timelinesList,h=>(p(),Y(c,{key:h.name,"show-pin":!1,item:h},null,8,["item"]))),128))]))]),trigger:X(()=>[g("span",aSe,[g("h1",lSe,w(e.timelineName()),1),g("span",null,[T(u,{size:"sm",icon:"chevron-down"})]),g("span",{class:"click-blocker",onClick:t[0]||(t[0]=(...h)=>e.blockOpen&&e.blockOpen(...h))})])]),_:1},8,["class","onShow"])}const uSe=ge(oSe,[["render",cSe]]),dSe={props:{fast:{type:Boolean,required:!1,default:!1}},methods:{scrollToTop(){const e=this.fast?"instant":"smooth";window.scrollTo({top:0,behavior:e})}}},fSe={class:"rightside-button scroll-to-top"},hSe=["title"];function pSe(e,t,n,s,r,o){const i=O("FAIcon"),a=O("FALayers");return p(),b("div",fSe,[g("button",{class:"button-unstyled scroll-to-top-button",type:"button",title:e.$t("general.scroll_to_top"),onClick:t[0]||(t[0]=(...c)=>e.scrollToTop&&e.scrollToTop(...c))},[T(a,{class:"fa-scale-110 fa-old-padding-layer"},{default:X(()=>[T(i,{icon:"arrow-up"}),T(i,{icon:"minus",transform:"up-7"})]),_:1})],8,hSe)])}const mSe=ge(dSe,[["render",pSe]]);et.add(Zs,t2,vd,s2,AZ,Rp);const gSe={props:["timeline","timelineName","title","userId","listId","statusId","bookmarkFolderId","tag","embedded","count","pinnedStatusIds","inProfile","footerSlipgate"],data(){return{showScrollTop:!1,paused:!1,unfocused:!1,bottomedOut:!1,virtualScrollIndex:0,blockingClicks:!1}},components:{Status:ea,ScrollTopButton:mSe,Conversation:am,TimelineMenu:uSe,QuickFilterSettings:tw,QuickViewSettings:DO},computed:{filteredVisibleStatuses(){return this.timeline.visibleStatuses.filter(e=>this.timelineName!=="user"||e.id>=this.timeline.minId&&e.id<=this.timeline.maxId)},filteredPinnedStatusIds(){return(this.pinnedStatusIds||[]).filter(e=>this.timeline.statusesObject[e])},newStatusCount(){return this.timeline.newStatusCount},showLoadButton(){return this.timeline.newStatusCount>0||this.timeline.flushMarker!==0},loadButtonString(){return this.timeline.flushMarker!==0?this.$t("timeline.reload"):`${this.$t("timeline.show_new")} (${this.newStatusCount})`},mobileLoadButtonString(){return this.timeline.flushMarker!==0?"+":this.newStatusCount>99?"∞":this.newStatusCount},classes(){let e=this.embedded?["-embedded"]:["panel","panel-default"];return this.blockingClicks&&(e=e.concat(["-blocked","_misclick-prevention"])),{root:e,header:["timeline-heading"].concat(this.embedded?["panel-body"]:["panel-heading","-sticky"]),body:["timeline-body"].concat(this.embedded?["panel-body"]:["panel-body"]),footer:["timeline-footer"].concat(this.embedded?["panel-body"]:["panel-footer"])}},pinnedStatusIdsObject(){return Z.keyBy(this.pinnedStatusIds)},statusesToDisplay(){const e=this.timeline.visibleStatuses.length,t=Math.ceil(Math.max(3,window.innerHeight/80)),n=this.virtualScrollIndex-this.filteredPinnedStatusIds.length,s=Math.max(0,n-t),r=Math.min(e,n+t);return this.timeline.visibleStatuses.slice(s,r).map(o=>o.id)},virtualScrollingEnabled(){return this.$store.getters.mergedConfig.virtualScrolling},...sn(Xe,{mobileLayout:e=>e.layoutType==="mobile"})},created(){const e=this.$store,t=e.state.users.currentUser.credentials,n=this.timeline.visibleStatuses.length===0;if(window.addEventListener("scroll",this.handleScroll),e.state.api.fetchers[this.timelineName])return!1;Ih.fetchAndUpdate({store:e,credentials:t,timeline:this.timelineName,showImmediately:n,userId:this.userId,listId:this.listId,statusId:this.statusId,bookmarkFolderId:this.bookmarkFolderId,tag:this.tag})},mounted(){typeof document.hidden<"u"&&(document.addEventListener("visibilitychange",this.handleVisibilityChange,!1),this.unfocused=document.hidden),window.addEventListener("keydown",this.handleShortKey),setTimeout(this.determineVisibleStatuses,250)},unmounted(){window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("keydown",this.handleShortKey),typeof document.hidden<"u"&&document.removeEventListener("visibilitychange",this.handleVisibilityChange,!1),this.$store.commit("setLoading",{timeline:this.timelineName,value:!1})},methods:{stopBlockingClicks:Z.debounce(function(){this.blockingClicks=!1},1e3),blockClicksTemporarily(){this.blockingClicks||(this.blockingClicks=!0),this.stopBlockingClicks()},handleShortKey(e){["textarea","input"].includes(e.target.tagName.toLowerCase())||e.key==="."&&this.showNewStatuses()},showNewStatuses(){this.timeline.flushMarker!==0?(this.$store.commit("clearTimeline",{timeline:this.timelineName,excludeUserId:!0}),this.$store.commit("queueFlush",{timeline:this.timelineName,id:0}),this.timelineName==="user"&&this.$store.dispatch("fetchPinnedStatuses",this.userId),this.fetchOlderStatuses()):(this.blockClicksTemporarily(),this.$store.commit("showNewStatuses",{timeline:this.timelineName}),this.paused=!1),window.scrollTo({top:0})},fetchOlderStatuses:Z.throttle(function(){const e=this.$store,t=e.state.users.currentUser.credentials;e.commit("setLoading",{timeline:this.timelineName,value:!0}),Ih.fetchAndUpdate({store:e,credentials:t,timeline:this.timelineName,older:!0,showImmediately:!0,userId:this.userId,listId:this.listId,statusId:this.statusId,bookmarkFolderId:this.bookmarkFolderId,tag:this.tag}).then(({statuses:n})=>{n&&n.length===0&&(this.bottomedOut=!0)}).finally(()=>e.commit("setLoading",{timeline:this.timelineName,value:!1}))},1e3,void 0),determineVisibleStatuses(){if(!this.$refs.timeline||!this.virtualScrollingEnabled)return;const e=this.$refs.timeline.children,t=Math.max(0,Math.min(this.virtualScrollIndex,e.length-1));if(e.length===0)return;const n=Math.max(document.body.offsetHeight,window.pageYOffset),s=window.pageYOffset+window.innerHeight*.5;let r=Math.floor(e.length*(s/n)),o=e[r].getBoundingClientRect().y;const i=e[t].getBoundingClientRect().y;for(Math.abs(o)>i&&(r=t,o=i);o<-20&&r<e.length-1;)o+=e[r].offsetHeight,r++;for(;o>window.innerHeight+100&&r>0;)r--,o-=e[r].offsetHeight;this.virtualScrollIndex=r},scrollLoad(){const e=document.body.getBoundingClientRect(),t=Math.max(e.height,-e.y);this.timeline.loading===!1&&this.$el.offsetHeight>0&&window.innerHeight+window.pageYOffset>=t-750&&this.fetchOlderStatuses()},handleScroll:Z.throttle(function(e){this.determineVisibleStatuses(),this.scrollLoad(e)},200),handleVisibilityChange(){this.unfocused=document.hidden}},watch:{newStatusCount(e){if(this.$store.getters.mergedConfig.streaming&&e>0){const t=document.documentElement;(window.pageYOffset||t.scrollTop)-(t.clientTop||0)<15&&!this.paused&&!(this.unfocused&&this.$store.getters.mergedConfig.pauseOnUnfocused)?this.showNewStatuses():this.paused=!0}}}},vSe={key:0,class:"rightside-button"},bSe=["title"],ySe={class:"badge -counter"},_Se=["title"],wSe={ref:"timeline",class:"timeline",role:"feed"},SSe={key:0,class:"new-status-notification text-center faint"},$Se={key:1,class:"new-status-notification text-center faint"},kSe={class:"new-status-notification text-center"},CSe={key:3,class:"new-status-notification text-center"},TSe={key:0};function ASe(e,t,n,s,r,o){const i=O("TimelineMenu"),a=O("ScrollTopButton"),c=O("FAIcon"),u=O("QuickFilterSettings"),f=O("QuickViewSettings"),h=O("conversation");return p(),b("div",{class:he(["Timeline",e.classes.root])},[e.embedded?E("",!0):(p(),b("div",{key:0,class:he(e.classes.header)},[e.embedded?E("",!0):(p(),Y(i,{key:0,"timeline-name":e.timelineName},null,8,["timeline-name"])),T(a),e.mobileLayout?(p(),b(Se,{key:1},[e.showLoadButton?(p(),b("div",vSe,[g("button",{class:"button-unstyled loadmore-button",title:e.loadButtonString,onClick:t[0]||(t[0]=Te((...v)=>e.showNewStatuses&&e.showNewStatuses(...v),["prevent"]))},[T(c,{"fixed-width":"",icon:"circle-plus"}),g("div",ySe,w(e.mobileLoadButtonString),1)],8,bSe)])):(p(),b("div",{key:1,class:"loadmore-text faint veryfaint rightside-icon",title:e.$t("timeline.up_to_date"),"aria-disabled":!0,onClick:t[1]||(t[1]=Te(()=>{},["prevent"]))},[T(c,{"fixed-width":"",icon:"check"})],8,_Se))],64)):(p(),b(Se,{key:2},[e.showLoadButton?(p(),b("button",{key:0,class:"button-default loadmore-button",onClick:t[2]||(t[2]=Te((...v)=>e.showNewStatuses&&e.showNewStatuses(...v),["prevent"]))},w(e.loadButtonString),1)):(p(),b("div",{key:1,class:"loadmore-text faint",onClick:t[3]||(t[3]=Te(()=>{},["prevent"]))},w(e.$t("timeline.up_to_date")),1))],64)),e.mobileLayout?E("",!0):(p(),Y(u,{key:3,class:"rightside-button"})),T(f,{class:"rightside-button"})],2)),g("div",{class:he(e.classes.body)},[g("div",wSe,[(p(!0),b(Se,null,We(e.filteredPinnedStatusIds,v=>(p(),Y(h,{key:v+"-pinned",role:"listitem",class:"status-fadein","status-id":v,collapsable:!0,"pinned-status-ids-object":e.pinnedStatusIdsObject,"in-profile":e.inProfile,"profile-user-id":e.userId},null,8,["status-id","pinned-status-ids-object","in-profile","profile-user-id"]))),128)),(p(!0),b(Se,null,We(e.filteredVisibleStatuses,v=>(p(),Y(h,{key:v.id,role:"listitem",class:"status-fadein","status-id":v.id,collapsable:!0,"in-profile":e.inProfile,"profile-user-id":e.userId,"virtual-hidden":e.virtualScrollingEnabled&&!e.statusesToDisplay.includes(v.id)},null,8,["status-id","in-profile","profile-user-id","virtual-hidden"]))),128))],512)],2),g("div",{class:he(e.classes.footer)},[(p(),Y(Yn,{to:e.footerSlipgate,disabled:!e.embedded||!e.footerSlipgate},[e.count===0?(p(),b("div",SSe,w(e.$t("timeline.no_statuses")),1)):e.bottomedOut?(p(),b("div",$Se,w(e.$t("timeline.no_more_statuses")),1)):e.timeline.loading?(p(),b("div",CSe,[T(c,{icon:"circle-notch",spin:"",size:"lg"})])):(p(),b("button",{key:2,class:"button-unstyled -link",onClick:t[4]||(t[4]=Te(v=>e.fetchOlderStatuses(),["prevent"]))},[g("div",kSe,w(e.$t("timeline.load_older")),1)]))],8,["to","disabled"])),e.embedded&&e.footerSlipgate?(p(),b("span",TSe)):E("",!0)],2)],2)}const lo=ge(gSe,[["render",ASe]]),ESe={components:{Timeline:lo},computed:{timeline(){return this.$store.state.statuses.timelines.public}},created(){this.$store.dispatch("startFetchingTimeline",{timeline:"public"})},unmounted(){this.$store.dispatch("stopFetchingTimeline","public")}};function ISe(e,t,n,s,r,o){const i=O("Timeline");return p(),Y(i,{title:e.$t("nav.public_tl"),timeline:e.timeline,"timeline-name":"public"},null,8,["title","timeline"])}const PSe=ge(ESe,[["render",ISe]]),LSe={components:{Timeline:lo},computed:{timeline(){return this.$store.state.statuses.timelines.bubble}},created(){this.$store.dispatch("startFetchingTimeline",{timeline:"bubble"})},unmounted(){this.$store.dispatch("stopFetchingTimeline","bubble")}};function OSe(e,t,n,s,r,o){const i=O("Timeline");return p(),Y(i,{title:e.$t("nav.bubble"),timeline:e.timeline,"timeline-name":"bubble"},null,8,["title","timeline"])}const RSe=ge(LSe,[["render",OSe]]),MSe={components:{Timeline:lo},computed:{timeline(){return this.$store.state.statuses.timelines.publicAndExternal}},created(){this.$store.dispatch("startFetchingTimeline",{timeline:"publicAndExternal"})},unmounted(){this.$store.dispatch("stopFetchingTimeline","publicAndExternal")}};function NSe(e,t,n,s,r,o){const i=O("Timeline");return p(),Y(i,{title:e.$t("nav.twkn"),timeline:e.timeline,"timeline-name":"publicAndExternal"},null,8,["title","timeline"])}const FSe=ge(MSe,[["render",NSe]]),DSe={components:{Timeline:lo},computed:{timeline(){return this.$store.state.statuses.timelines.friends}}};function USe(e,t,n,s,r,o){const i=O("Timeline");return p(),Y(i,{title:e.$t("nav.timeline"),timeline:e.timeline,"timeline-name":"friends"},null,8,["title","timeline"])}const jSe=ge(DSe,[["render",USe]]),BSe={created(){this.$store.commit("clearTimeline",{timeline:"tag"}),this.$store.dispatch("startFetchingTimeline",{timeline:"tag",tag:this.tag})},components:{Timeline:lo},computed:{tag(){return this.$route.params.tag},timeline(){return this.$store.state.statuses.timelines.tag}},watch:{tag(){this.$store.commit("clearTimeline",{timeline:"tag"}),this.$store.dispatch("startFetchingTimeline",{timeline:"tag",tag:this.tag})}},unmounted(){this.$store.dispatch("stopFetchingTimeline","tag")}};function zSe(e,t,n,s,r,o){const i=O("Timeline");return p(),Y(i,{title:e.tag,timeline:e.timeline,"timeline-name":"tag",tag:e.tag},null,8,["title","timeline","tag"])}const qSe=ge(BSe,[["render",zSe]]),HSe={created(){this.$store.commit("clearTimeline",{timeline:"bookmarks"}),this.$store.dispatch("startFetchingTimeline",{timeline:"bookmarks",bookmarkFolderId:this.folderId||null})},components:{Timeline:lo},computed:{folderId(){return this.$route.params.id},timeline(){return this.$store.state.statuses.timelines.bookmarks}},watch:{folderId(){this.$store.commit("clearTimeline",{timeline:"bookmarks"}),this.$store.dispatch("stopFetchingTimeline","bookmarks"),this.$store.dispatch("startFetchingTimeline",{timeline:"bookmarks",bookmarkFolderId:this.folderId||null})}},unmounted(){this.$store.commit("clearTimeline",{timeline:"bookmarks"}),this.$store.dispatch("stopFetchingTimeline","bookmarks")}};function VSe(e,t,n,s,r,o){const i=O("Timeline");return p(),Y(i,{title:e.$t("nav.bookmarks"),timeline:e.timeline,"timeline-name":"bookmarks","bookmark-folder-id":e.folderId},null,8,["title","timeline","bookmark-folder-id"])}const dA=ge(HSe,[["render",VSe]]),WSe={components:{Conversation:am},computed:{statusId(){return this.$route.params.id}}};function GSe(e,t,n,s,r,o){const i=O("conversation");return p(),Y(i,{collapsable:!1,"is-page":"true","status-id":e.statusId},null,8,["status-id"])}const KSe=ge(WSe,[["render",GSe]]),fA=e=>e.findIndex(t=>t.props),lm={name:"TabSwitcher",props:{renderOnlyFocused:{required:!1,type:Boolean,default:!1},onSwitch:{required:!1,type:Function,default:void 0},activeTab:{required:!1,type:String,default:void 0},scrollableTabs:{required:!1,type:Boolean,default:!1},sideTabBar:{required:!1,type:Boolean,default:!1},bodyScrollLock:{required:!1,type:Boolean,default:!1}},data(){return{active:fA(this.slots())}},computed:{activeIndex(){return this.activeTab?this.slots().findIndex(e=>e&&e.props&&this.activeTab===e.props.key):this.active},isActive(){return e=>{const t=n=>n.props&&n.props["data-tab-name"]===e;return this.$slots.default().findIndex(t)===this.activeIndex}}},beforeUpdate(){this.slots()[this.active].props||(this.active=fA(this.slots()))},methods:{clickTab(e){return t=>{t.preventDefault(),this.setTab(e)}},slots(){return this.$slots.default()[0].type===Se?this.$slots.default()[0].children:this.$slots.default()},setTab(e){typeof this.onSwitch=="function"&&this.onSwitch.call(null,this.slots()[e].key),this.active=e,this.scrollableTabs&&(this.$refs.contents.scrollTop=0)}},render(){const e=this.slots().map((n,s)=>{const r=n.props;if(!r)return;const o=["tab"],i=["tab-wrapper"];return this.activeIndex===s&&(o.push("active"),i.push("active")),r.image?T("div",{class:i.join(" ")},[T("button",{disabled:r.disabled,onClick:this.clickTab(s),class:o.join(" "),type:"button",role:"tab"},[T("img",{src:r.image,title:r["image-tooltip"]},null),r.label?"":r.label])]):T("div",{class:i.join(" ")},[T("button",{disabled:r.disabled,onClick:this.clickTab(s),class:o.join(" "),type:"button",role:"tab"},[r.icon?T(D2,{class:"tab-icon",size:"2x","fixed-width":!0,icon:r.icon},null):"",T("span",{class:"text"},[r.label])])])}),t=this.slots().map((n,s)=>{const r=n.props;if(!r)return;const o=this.activeIndex===s,i=[o?"active":"hidden"];r.fullHeight&&i.push("full-height");let a=n.props["delay-render"];a&&o&&(n.props["delay-render"]=!1,a=!1);const c=!a&&(!this.renderOnlyFocused||o)?n:"";return T("div",{class:i},[this.sideTabBar?T("h1",{class:"mobile-label"},[r.label]):"",c])});return T("div",{class:"tab-switcher "+(this.sideTabBar?"side-tabs":"top-tabs")},[T("div",{class:"tabs",role:"tablist"},[e]),at(T("div",{ref:"contents",role:"tabpanel",class:"contents"+(this.scrollableTabs?" scrollable-tabs":"")},[t]),[[sc("body-scroll-lock"),this.bodyScrollLock]])])}},hA={mentions:["mention"],statuses:["status"],"likes+repeats":["repeat","like"],follows:["follow"],reactions:["pleroma:emoji_reaction"],reports:["pleroma:report"],moves:["move"]},xSe={data(){return{allowFollowingMove:this.$store.state.users.currentUser.allow_following_move,filterMode:hA.mentions,canSeeReports:this.$store.state.users.currentUser.privileges.includes("reports_manage_reports")}},methods:{onModeSwitch(e){this.filterMode=hA[e]}},components:{Notifications:im,TabSwitcher:lm}},YSe={class:"panel panel-default"},XSe={class:"panel-heading"},JSe={class:"title"},ZSe=["label"],QSe=["label"],e$e=["label"],t$e=["label"],n$e=["label"],s$e=["label"],r$e=["label"];function o$e(e,t,n,s,r,o){const i=O("tab-switcher"),a=O("Notifications");return p(),b("div",YSe,[g("div",XSe,[g("h1",JSe,w(e.$t("nav.interactions")),1)]),T(i,{ref:"tabSwitcher","on-switch":e.onModeSwitch},{default:X(()=>[g("span",{key:"statuses",label:e.$t("nav.mentions")},null,8,ZSe),g("span",{key:"statuses",label:e.$t("interactions.statuses")},null,8,QSe),g("span",{key:"likes+repeats",label:e.$t("interactions.favs_repeats")},null,8,e$e),g("span",{key:"follows",label:e.$t("interactions.follows")},null,8,t$e),g("span",{key:"reactions",label:e.$t("interactions.emoji_reactions")},null,8,n$e),e.canSeeReports?(p(),b("span",{key:"reports",label:e.$t("interactions.reports")},null,8,s$e)):E("",!0),e.allowFollowingMove?E("",!0):(p(),b("span",{key:"moves",label:e.$t("interactions.moves")},null,8,r$e))]),_:1},8,["on-switch"]),T(a,{ref:"notifications","no-heading":!0,"no-extra":!0,"minimal-mode":!0,"filter-mode":e.filterMode},null,8,["filter-mode"])])}const i$e=ge(xSe,[["render",o$e]]),a$e={computed:{timeline(){return this.$store.state.statuses.timelines.dms}},components:{Timeline:lo}};function l$e(e,t,n,s,r,o){const i=O("Timeline");return p(),Y(i,{title:e.$t("nav.dms"),timeline:e.timeline,"timeline-name":"dms"},null,8,["title","timeline"])}const c$e=ge(a$e,[["render",l$e]]),u$e={name:"ChatTitle",components:{UserAvatar:er,RichContent:Mr,UserPopover:gr(()=>Ve(()=>Promise.resolve().then(()=>Q2),void 0))},props:["user","withAvatar"],computed:{title(){return this.user?this.user.screen_name_ui:""},htmlTitle(){return this.user?this.user.name_html:""}}},d$e=["title"];function f$e(e,t,n,s,r,o){const i=O("UserAvatar"),a=O("UserPopover"),c=O("RichContent");return p(),b("div",{class:"chat-title",title:e.title},[e.withAvatar&&e.user?(p(),Y(a,{key:0,class:"avatar-container","user-id":e.user.id},{default:X(()=>[T(i,{class:"titlebar-avatar",user:e.user},null,8,["user"])]),_:1},8,["user-id"])):E("",!0),e.user?(p(),Y(c,{key:1,class:"username",title:"@"+(e.user&&e.user.screen_name_ui),html:e.htmlTitle,emoji:e.user.emoji||[],"is-local":e.user.is_local},null,8,["title","html","emoji","is-local"])):E("",!0)],8,d$e)}const UO=ge(u$e,[["render",f$e]]),h$e={name:"ChatListItem",props:["chat"],components:{UserAvatar:er,AvatarList:MO,Timeago:wd,ChatTitle:UO,StatusBody:Ka},computed:{...mn({currentUser:e=>e.users.currentUser}),attachmentInfo(){if(this.chat.lastMessage.attachments.length===0)return;const e=this.chat.lastMessage.attachments.map(t=>Fa.fileType(t.mimetype));return e.includes("video")?this.$t("file_type.video"):e.includes("audio")?this.$t("file_type.audio"):e.includes("image")?this.$t("file_type.image"):this.$t("file_type.file")},messageForStatusContent(){const e=this.chat.lastMessage,t=e?e.emojis:[],n=e&&e.account_id===this.currentUser.id,s=e?this.attachmentInfo||e.content:"",r=n?`<i>${this.$t("chats.you")}</i> ${s}`:s;return{summary:"",emojis:t,raw_html:r,text:r,attachments:[]}}},methods:{openChat(){this.chat.id&&this.$router.push({name:"chat",params:{username:this.currentUser.screen_name,recipient_id:this.chat.account.id}})}}},p$e={class:"chat-list-item-left"},m$e={class:"chat-list-item-center"},g$e={class:"heading"},v$e={key:0,class:"name-and-account-name"},b$e={class:"time-wrapper"},y$e={class:"chat-preview"},_$e={key:0,class:"badge -notification unread-chat-count"};function w$e(e,t,n,s,r,o){const i=O("UserAvatar"),a=O("ChatTitle"),c=O("Timeago"),u=O("StatusBody");return p(),b("div",{class:"chat-list-item",onClickCapture:t[0]||(t[0]=Te((...f)=>e.openChat&&e.openChat(...f),["prevent"]))},[g("div",p$e,[T(i,{user:e.chat.account,height:"48px",width:"48px"},null,8,["user"])]),g("div",m$e,[g("div",g$e,[e.chat.account?(p(),b("span",v$e,[T(a,{user:e.chat.account},null,8,["user"])])):E("",!0),t[1]||(t[1]=g("span",{class:"heading-right"},null,-1)),g("div",b$e,[T(c,{time:e.chat.updated_at,"auto-update":60},null,8,["time"])])]),g("div",y$e,[T(u,{class:"chat-preview-body",status:e.messageForStatusContent,"single-line":!0},null,8,["status"]),e.chat.unread>0?(p(),b("div",_$e,w(e.chat.unread),1)):E("",!0)])])],32)}const S$e=ge(h$e,[["render",w$e]]),$$e={props:["user"],components:{UserPopover:om,UserAvatar:er,RichContent:Mr,UserLink:$d},methods:{userProfileLink(e){return ao(e.id,e.screen_name,this.$store.state.instance.restrictedNicknames)}}},k$e={class:"basic-user-card"},C$e={class:"basic-user-card-collapsed-content"},T$e=["title"];function A$e(e,t,n,s,r,o){const i=O("UserAvatar"),a=O("UserPopover"),c=O("router-link"),u=O("RichContent"),f=O("user-link");return p(),b("div",k$e,[T(c,{to:e.userProfileLink(e.user),onClick:t[1]||(t[1]=Te(()=>{},["prevent"]))},{default:X(()=>[T(a,{"user-id":e.user.id,"overlay-centers":!0,"overlay-centers-selector":".avatar"},{default:X(()=>[T(i,{class:"user-avatar avatar",user:e.user,onClick:t[0]||(t[0]=Te(()=>{},["prevent"]))},null,8,["user"])]),_:1},8,["user-id"])]),_:1},8,["to"]),g("div",C$e,[g("div",{title:e.user.name,class:"basic-user-card-user-name"},[T(u,{class:"basic-user-card-user-name-value",html:e.user.name,emoji:e.user.emoji},null,8,["html","emoji"])],8,T$e),g("div",null,[T(f,{class:"basic-user-card-screen-name",user:e.user},null,8,["user"])]),Ot(e.$slots,"default")])])}const Ad=ge($$e,[["render",A$e]]);et.add(Ba,qa);const E$e={components:{BasicUserCard:Ad,UserAvatar:er},data(){return{suggestions:[],userIds:[],loading:!1,query:""}},async created(){const{chats:e}=await this.backendInteractor.chats();e.forEach(t=>this.suggestions.push(t.account))},computed:{users(){return this.userIds.map(e=>this.findUser(e))},availableUsers(){return this.query.length!==0?this.users:this.suggestions},...mn({currentUser:e=>e.users.currentUser,backendInteractor:e=>e.api.backendInteractor}),...bn(["findUser"])},methods:{goBack(){this.$emit("cancel")},goToChat(e){this.$router.push({name:"chat",params:{recipient_id:e.id}})},onInput(){this.search(this.query)},addUser(e){this.selectedUserIds.push(e.id),this.query=""},removeUser(e){this.selectedUserIds=this.selectedUserIds.filter(t=>t!==e)},search(e){if(!e){this.loading=!1;return}this.loading=!0,this.userIds=[],this.$store.dispatch("search",{q:e,resolve:!0,type:"accounts"}).then(t=>{this.loading=!1,this.userIds=t.accounts.map(n=>n.id)})}}},I$e={class:"panel-default panel chat-new"},P$e={ref:"header",class:"panel-heading"},L$e={class:"panel-body"},O$e={class:"input-wrap"},R$e={class:"input-search"},M$e={class:"member-list"},N$e=["onClickCapture"];function F$e(e,t,n,s,r,o){const i=O("FAIcon"),a=O("BasicUserCard");return p(),b("div",I$e,[g("div",P$e,[g("button",{class:"button-unstyled go-back-button",onClick:t[0]||(t[0]=(...c)=>e.goBack&&e.goBack(...c))},[T(i,{size:"lg",icon:"chevron-left"})])],512),g("div",L$e,[g("div",O$e,[g("div",R$e,[T(i,{class:"search-icon fa-scale-110 fa-old-padding",icon:"search"})]),at(g("input",{ref:"search","onUpdate:modelValue":t[1]||(t[1]=c=>e.query=c),class:"input",placeholder:"Search people",onInput:t[2]||(t[2]=(...c)=>e.onInput&&e.onInput(...c))},null,544),[[Nt,e.query]])]),g("div",M$e,[(p(!0),b(Se,null,We(e.availableUsers,c=>(p(),b("div",{key:c.id,class:"list-item",onClickCapture:Te(u=>e.goToChat(c),["prevent"])},[T(a,{user:c},null,8,["user"])],40,N$e))),128))])])])}const D$e=ge(E$e,[["render",F$e]]),U$e={components:{ChatListItem:S$e,List:Td,ChatNew:D$e},computed:{...mn({currentUser:e=>e.users.currentUser}),...bn(["sortedChatList"])},data(){return{isNew:!1}},created(){this.$store.dispatch("fetchChats",{latest:!0})},methods:{cancelNewChat(){this.isNew=!1,this.$store.dispatch("fetchChats",{latest:!0})},newChat(){this.isNew=!0}}},j$e={key:0},B$e={key:1,class:"chat-list panel panel-default"},z$e={class:"panel-heading -sticky"},q$e={class:"title"},H$e={class:"panel-body"},V$e={key:0,class:"timeline"},W$e={key:1,class:"empty-chat-list-alert"};function G$e(e,t,n,s,r,o){const i=O("ChatNew"),a=O("ChatListItem"),c=O("List");return e.isNew?(p(),b("div",j$e,[T(i,{onCancel:e.cancelNewChat},null,8,["onCancel"])])):(p(),b("div",B$e,[g("div",z$e,[g("h1",q$e,w(e.$t("chats.chats")),1),g("button",{class:"button-default",onClick:t[0]||(t[0]=(...u)=>e.newChat&&e.newChat(...u))},w(e.$t("chats.new")),1)]),g("div",H$e,[e.sortedChatList.length>0?(p(),b("div",V$e,[T(c,{items:e.sortedChatList},{item:X(({item:u})=>[(p(),Y(a,{key:u.id,compact:!1,chat:u},null,8,["chat"]))]),_:1},8,["items"])])):(p(),b("div",W$e,[g("span",null,w(e.$t("chats.empty_chat_list_placeholder")),1)]))])]))}const K$e=ge(U$e,[["render",G$e]]),x$e={name:"Timeago",props:["date"],computed:{displayDate(){const e=new Date;return e.setHours(0,0,0,0),this.date.getTime()===e.getTime()?this.$t("display_date.today"):this.date.toLocaleDateString(Tr.internalToBrowserLocale(this.$i18n.locale),{day:"numeric",month:"long"})}}};function Y$e(e,t,n,s,r,o){return p(),b("time",null,w(o.displayDate),1)}const X$e=ge(x$e,[["render",Y$e]]);et.add(Xn,bd);const J$e={name:"ChatMessage",props:["author","edited","noHeading","chatViewItem","hoveredMessageChain"],emits:["hover"],components:{Popover:Jn,Attachment:Qp,StatusContent:Ka,UserAvatar:er,Gallery:em,LinkPreview:eO,ChatMessageDate:X$e,UserPopover:gr(()=>Ve(()=>Promise.resolve().then(()=>Q2),void 0))},computed:{createdAt(){return this.chatViewItem.data.created_at.toLocaleTimeString("en",{hour:"2-digit",minute:"2-digit",hour12:!1})},isCurrentUser(){return this.message.account_id===this.currentUser.id},message(){return this.chatViewItem.data},isMessage(){return this.chatViewItem.type==="message"},messageForStatusContent(){return{summary:"",emojis:this.message.emojis,raw_html:this.message.content||"",text:this.message.content||"",attachments:this.message.attachments}},hasAttachment(){return this.message.attachments.length>0},...sn(Xe,{betterShadow:e=>e.browserSupport.cssFilter}),...mn({currentUser:e=>e.users.currentUser,restrictedNicknames:e=>e.instance.restrictedNicknames}),popoverMarginStyle(){return this.isCurrentUser?{}:{left:50}},...bn(["mergedConfig","findUser"])},data(){return{hovered:!1,menuOpened:!1}},methods:{onHover(e){this.$emit("hover",{isHovered:e,messageChainId:this.chatViewItem.messageChainId})},async deleteMessage(){window.confirm(this.$t("chats.delete_confirm"))&&await this.$store.dispatch("deleteChatMessage",{messageId:this.chatViewItem.data.id,chatId:this.chatViewItem.data.chat_id}),this.hovered=!1,this.menuOpened=!1}}},Z$e={key:0,class:"avatar-wrapper"},Q$e={class:"chat-message-inner"},eke={class:"dropdown-menu"},tke={class:"menu-item dropdown-item -icon"},nke=["title"],ske={class:"created-at"},rke={key:1,class:"chat-message-date-separator"};function oke(e,t,n,s,r,o){const i=O("UserAvatar"),a=O("UserPopover"),c=O("FAIcon"),u=O("Popover"),f=O("StatusContent"),h=O("ChatMessageDate");return e.isMessage?(p(),b("div",{key:0,class:he(["chat-message-wrapper",{"hovered-message-chain":e.hoveredMessageChain}]),onMouseover:t[5]||(t[5]=v=>e.onHover(!0)),onMouseleave:t[6]||(t[6]=v=>e.onHover(!1))},[g("div",{class:he(["chat-message",[{outgoing:e.isCurrentUser,incoming:!e.isCurrentUser}]])},[e.isCurrentUser?E("",!0):(p(),b("div",Z$e,[e.chatViewItem.isHead?(p(),Y(a,{key:0,"user-id":e.author.id},{default:X(()=>[T(i,{compact:!0,user:e.author},null,8,["user"])]),_:1},8,["user-id"])):E("",!0)])),g("div",Q$e,[g("div",{class:"status-body",style:hn({"min-width":e.message.attachment?"80%":""})},[g("div",{class:he(["media status",{"without-attachment":!e.hasAttachment,pending:e.chatViewItem.data.pending,error:e.chatViewItem.data.error}]),style:{position:"relative"},onMouseenter:t[3]||(t[3]=v=>e.hovered=!0),onMouseleave:t[4]||(t[4]=v=>e.hovered=!1)},[g("div",{class:he(["chat-message-menu",{visible:e.hovered||e.menuOpened}])},[T(u,{trigger:"click",placement:"top","bound-to-selector":".chat-view-inner","bound-to":{x:"container"},margin:e.popoverMarginStyle,onShow:t[1]||(t[1]=v=>e.menuOpened=!0),onClose:t[2]||(t[2]=v=>e.menuOpened=!1)},{content:X(()=>[g("div",eke,[g("div",tke,[g("button",{class:"main-button",onClick:t[0]||(t[0]=(...v)=>e.deleteMessage&&e.deleteMessage(...v))},[T(c,{icon:"times"}),de(" "+w(e.$t("chats.delete")),1)])])])]),trigger:X(()=>[g("button",{class:"button-default menu-icon",title:e.$t("chats.more")},[T(c,{icon:"ellipsis-h"})],8,nke)]),_:1},8,["margin"])],2),T(f,{class:"message-content",status:e.messageForStatusContent,"full-content":!0},{footer:X(()=>[g("span",ske,w(e.createdAt),1)]),_:1},8,["status"])],34)],4)])],2)],34)):(p(),b("div",rke,[T(h,{date:e.chatViewItem.date},null,8,["date"])]))}const ike=ge(J$e,[["render",oke]]),su=()=>({scrollTop:window.scrollY,scrollHeight:document.documentElement.scrollHeight,offsetHeight:window.innerHeight}),ake=(e,t)=>e.scrollTop+(t.scrollHeight-e.scrollHeight),lke=(e=0)=>{const t=window.scrollY+e;return document.documentElement.scrollHeight-window.innerHeight<=t},cke=()=>document.documentElement.scrollHeight>window.innerHeight;et.add(za,qa);const pA=10,mA=10,uke=100,dke=1500,qf=10,fke={components:{ChatMessage:ike,ChatTitle:UO,PostStatusForm:lc},data(){return{jumpToBottomButtonVisible:!1,hoveredMessageChainId:void 0,lastScrollPosition:{},scrollableContainerHeight:"100%",errorLoadingChat:!1,messageRetriers:{}}},created(){this.startFetching(),window.addEventListener("resize",this.handleResize)},mounted(){window.addEventListener("scroll",this.handleScroll),typeof document.hidden<"u"&&document.addEventListener("visibilitychange",this.handleVisibilityChange,!1),this.$nextTick(()=>{this.handleResize()})},unmounted(){window.removeEventListener("scroll",this.handleScroll),window.removeEventListener("resize",this.handleResize),typeof document.hidden<"u"&&document.removeEventListener("visibilitychange",this.handleVisibilityChange,!1),this.$store.dispatch("clearCurrentChat")},computed:{recipient(){return this.currentChat&&this.currentChat.account},recipientId(){return this.$route.params.recipient_id},formPlaceholder(){return this.recipient?this.$t("chats.message_user",{nickname:this.recipient.screen_name_ui}):""},chatViewItems(){return Gr.getView(this.currentChatMessageService)},newMessageCount(){return this.currentChatMessageService&&this.currentChatMessageService.newMessageCount},streamingEnabled(){return this.mergedConfig.useStreamingApi&&this.mastoUserSocketStatus===Ks.JOINED},...bn(["currentChat","currentChatMessageService","findOpenedChatByRecipientId","mergedConfig"]),...sn(Xe,{mobileLayout:e=>e.layoutType==="mobile"}),...mn({backendInteractor:e=>e.api.backendInteractor,mastoUserSocketStatus:e=>e.api.mastoUserSocketStatus,currentUser:e=>e.users.currentUser})},watch:{chatViewItems(){const e=this.bottomedOut(pA);this.$nextTick(()=>{e&&this.scrollDown()})},$route:function(){this.startFetching()},mastoUserSocketStatus(e){e===Ks.JOINED&&this.fetchChat({isFirstFetch:!0})}},methods:{onMessageHover({isHovered:e,messageChainId:t}){this.hoveredMessageChainId=e?t:void 0},onFilesDropped(){this.$nextTick(()=>{this.handleResize()})},handleVisibilityChange(){this.$nextTick(()=>{!document.hidden&&this.bottomedOut(pA)&&this.scrollDown({forceRead:!0})})},handleResize(e={}){const{delayed:t=!1}=e;if(t){setTimeout(()=>{this.handleResize({...e,delayed:!1})},uke);return}this.$nextTick(()=>{const{offsetHeight:n=void 0}=su(),s=n-this.lastScrollPosition.offsetHeight;s!==0&&!this.bottomedOut()&&this.$nextTick(()=>{window.scrollBy({top:-Math.trunc(s)})}),this.lastScrollPosition=su()})},scrollDown(e={}){const{behavior:t="auto",forceRead:n=!1}=e;this.$nextTick(()=>{window.scrollTo({top:document.documentElement.scrollHeight,behavior:t})}),n&&this.readChat()},readChat(){if(!(this.currentChatMessageService&&this.currentChatMessageService.maxId)||document.hidden)return;const e=this.currentChatMessageService.maxId;this.$store.dispatch("readChat",{id:this.currentChat.id,lastReadId:e})},bottomedOut(e){return lke(e)},reachedTop(){return window.scrollY<=0},cullOlderCheck(){window.setTimeout(()=>{this.bottomedOut(mA)&&this.$store.dispatch("cullOlderMessages",this.currentChatMessageService.chatId)},5e3)},handleScroll:Fi.throttle(function(){this.lastScrollPosition=su(),this.currentChat&&(this.reachedTop()?this.fetchChat({maxId:this.currentChatMessageService.minId}):this.bottomedOut(mA)?(this.jumpToBottomButtonVisible=!1,this.cullOlderCheck(),this.newMessageCount>0&&window.setTimeout(()=>{this.$el&&this.readChat()},dke)):this.jumpToBottomButtonVisible=!0)},200),handleScrollUp(e){const t=su();window.scrollTo({top:ake(e,t)})},fetchChat({isFirstFetch:e=!1,fetchLatest:t=!1,maxId:n}){const s=this.currentChatMessageService;if(!s||t&&this.streamingEnabled)return;const r=s.chatId,o=!!n,i=t&&s.maxId;return this.backendInteractor.chatMessages({id:r,maxId:n,sinceId:i}).then(a=>{e&&Gr.clear(s);const c=su();this.$store.dispatch("addChatMessages",{chatId:r,messages:a}).then(()=>{this.$nextTick(()=>{o&&this.handleScrollUp(c),!cke()&&a.length>0&&this.fetchChat({maxId:this.currentChatMessageService.minId})})})})},async startFetching(){let e=this.findOpenedChatByRecipientId(this.recipientId);if(!e)try{e=await this.backendInteractor.getOrCreateChat({accountId:this.recipientId})}catch(t){console.error("Error creating or getting a chat",t),this.errorLoadingChat=!0}e&&(this.$nextTick(()=>{this.scrollDown({forceRead:!0})}),this.$store.dispatch("addOpenedChat",{chat:e}),this.doStartFetching())},doStartFetching(){this.$store.dispatch("startFetchingCurrentChat",{fetcher:()=>Ga(()=>this.fetchChat({fetchLatest:!0}),5e3)}),this.fetchChat({isFirstFetch:!0})},handleAttachmentPosting(){this.$nextTick(()=>{this.handleResize(),this.scrollDown({forceRead:!0})})},sendMessage({status:e,media:t,idempotencyKey:n}){const s={id:this.currentChat.id,content:e,idempotencyKey:n};t[0]&&(s.mediaId=t[0].id);const r=Jee({attachments:t,chatId:this.currentChat.id,content:e,userId:this.currentUser.id,idempotencyKey:n});return this.$store.dispatch("addChatMessages",{chatId:this.currentChat.id,messages:[r]}).then(()=>{this.handleAttachmentPosting()}),this.doSendMessage({params:s,fakeMessage:r,retriesLeft:qf})},doSendMessage({params:e,fakeMessage:t,retriesLeft:n=qf}){if(!(n<=0))return this.backendInteractor.sendChatMessage(e).then(s=>(this.$store.dispatch("addChatMessages",{chatId:this.currentChat.id,updateMaxId:!1,messages:[{...s,fakeId:t.id}]}),s)).catch(s=>(console.error("Error sending message",s),this.$store.dispatch("handleMessageError",{chatId:this.currentChat.id,fakeId:t.id,isRetry:n!==qf}),(s.statusCode>=500&&s.statusCode<600||s.message==="Failed to fetch")&&(this.messageRetriers[t.id]=setTimeout(()=>{this.doSendMessage({params:e,fakeMessage:t,retriesLeft:n-1})},1e3*2**(qf-n))),{})),Promise.resolve(t)},goBack(){this.$router.push({name:"chats",params:{username:this.currentUser.screen_name}})}}},hke={class:"chat-view"},pke={class:"chat-view-inner"},mke={ref:"inner",class:"panel-default panel chat-view-body"},gke={ref:"header",class:"panel-heading -sticky chat-view-heading"},vke={class:"title text-center"},bke={key:1,class:"chat-loading-error"},yke={class:"alert error"},_ke={ref:"footer",class:"panel-body footer"},wke={key:0,class:"badge -notification unread-chat-count unread-message-count"};function Ske(e,t,n,s,r,o){const i=O("FAIcon"),a=O("ChatTitle"),c=O("ChatMessage"),u=O("PostStatusForm");return p(),b("div",hke,[g("div",pke,[g("div",mke,[g("div",gke,[g("button",{class:"button-unstyled go-back-button",onClick:t[0]||(t[0]=(...f)=>e.goBack&&e.goBack(...f))},[T(i,{size:"lg",icon:"chevron-left"})]),g("div",vke,[T(a,{user:e.recipient,"with-avatar":!0},null,8,["user"])])],512),g("div",{class:"chat-message-list message-list",style:hn({height:e.scrollableContainerHeight})},[e.errorLoadingChat?(p(),b("div",bke,[g("div",yke,w(e.$t("chats.error_loading_chat")),1)])):(p(!0),b(Se,{key:0},We(e.chatViewItems,f=>(p(),Y(c,{key:f.id,author:e.recipient,"chat-view-item":f,"hovered-message-chain":f.messageChainId===e.hoveredMessageChainId,onHover:e.onMessageHover},null,8,["author","chat-view-item","hovered-message-chain","onHover"]))),128))],4),g("div",_ke,[g("div",{class:he(["jump-to-bottom-button",{visible:e.jumpToBottomButtonVisible}]),onClick:t[1]||(t[1]=f=>e.scrollDown({behavior:"smooth"}))},[g("span",null,[T(i,{icon:"chevron-down"}),e.newMessageCount?(p(),b("div",wke,w(e.newMessageCount),1)):E("",!0)])],2),T(u,{"disable-subject":!0,"disable-scope-selector":!0,"disable-notice":!0,"disable-lock-warning":!0,"disable-polls":!0,"disable-sensitivity-checkbox":!0,"disable-submit":e.errorLoadingChat||!e.currentChat,"disable-preview":!0,"disable-draft":!0,"optimistic-posting":!0,"post-handler":e.sendMessage,"submit-on-enter":!e.mobileLayout,"preserve-focus":!e.mobileLayout,"auto-focus":!e.mobileLayout,placeholder:e.formPlaceholder,"file-limit":1,"max-height":"160","emoji-picker-placement":"top",onResize:e.handleResize},null,8,["disable-submit","post-handler","submit-on-enter","preserve-focus","auto-focus","placeholder","onResize"])],512)],512)])])}const $ke=ge(fke,[["render",Ske]]),kke={props:["user","relationship"],data(){return{inProgress:!1,showingConfirmRemoveFollower:!1}},components:{ConfirmModal:Nr},computed:{label(){return this.inProgress?this.$t("user_card.follow_progress"):this.$t("user_card.remove_follower")},shouldConfirmRemoveUserFromFollowers(){return this.$store.getters.mergedConfig.modalOnRemoveUserFromFollowers}},methods:{showConfirmRemoveUserFromFollowers(){this.showingConfirmRemoveFollower=!0},hideConfirmRemoveUserFromFollowers(){this.showingConfirmRemoveFollower=!1},onClick(){this.shouldConfirmRemoveUserFromFollowers?this.showConfirmRemoveUserFromFollowers():this.doRemoveUserFromFollowers()},doRemoveUserFromFollowers(){this.inProgress=!0,this.$store.dispatch("removeUserFromFollowers",this.relationship.id).then(()=>{this.inProgress=!1}),this.hideConfirmRemoveUserFromFollowers()}}},Cke=["disabled","title"],Tke=["textContent"];function Ake(e,t,n,s,r,o){const i=O("i18n-t"),a=O("confirm-modal");return p(),b("button",{class:he(["btn button-default follow-button",{toggled:e.inProgress}]),disabled:e.inProgress,title:e.$t("user_card.remove_follower"),onClick:t[0]||(t[0]=(...c)=>e.onClick&&e.onClick(...c))},[de(w(e.label)+" ",1),(p(),Y(Yn,{to:"#modal"},[e.showingConfirmRemoveFollower?(p(),Y(a,{key:0,title:e.$t("user_card.remove_follower_confirm_title"),"confirm-text":e.$t("user_card.remove_follower_confirm_accept_button"),"cancel-text":e.$t("user_card.remove_follower_confirm_cancel_button"),onAccepted:e.doRemoveUserFromFollowers,onCancelled:e.hideConfirmRemoveUserFromFollowers},{default:X(()=>[T(i,{scope:"global",keypath:"user_card.remove_follower_confirm",tag:"span"},{user:X(()=>[g("span",{textContent:w(e.user.screen_name_ui)},null,8,Tke)]),_:1})]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0)]))],10,Cke)}const Eke=ge(kke,[["render",Ake]]),Ike={props:["user","noFollowsYou"],components:{BasicUserCard:Ad,RemoteFollow:lO,FollowButton:dO,RemoveFollowerButton:Eke},computed:{isMe(){return this.$store.state.users.currentUser.id===this.user.id},loggedIn(){return this.$store.state.users.currentUser},relationship(){return this.$store.getters.relationship(this.user.id)}}},Pke={class:"follow-card-content-container"},Lke={key:0,class:"faint"},Oke={key:0,class:"follow-card-follow-button"};function Rke(e,t,n,s,r,o){const i=O("RemoteFollow"),a=O("FollowButton"),c=O("RemoveFollowerButton"),u=O("basic-user-card");return p(),Y(u,{user:e.user},{default:X(()=>[g("div",Pke,[e.isMe||!e.noFollowsYou&&e.relationship.followed_by?(p(),b("span",Lke,w(e.isMe?e.$t("user_card.its_you"):e.$t("user_card.follows_you")),1)):E("",!0),e.loggedIn?e.isMe?E("",!0):(p(),b(Se,{key:2},[T(a,{relationship:e.relationship,"label-following":e.$t("user_card.follow_unfollow"),class:"follow-card-follow-button",user:e.user},null,8,["relationship","label-following","user"]),e.noFollowsYou&&e.relationship.followed_by?(p(),Y(c,{key:0,user:e.user,relationship:e.relationship,class:"follow-card-button"},null,8,["user","relationship"])):E("",!0)],64)):(p(),b(Se,{key:1},[e.relationship.following?E("",!0):(p(),b("div",Oke,[T(i,{user:e.user},null,8,["user"])]))],64))])]),_:1},8,["user"])}const nw=ge(Ike,[["render",Rke]]);var m0,gA;function Mke(){if(gA)return m0;gA=1;var e=TP(),t=PP(),n=Np(),s=Qs(),r=Va(),o=Fp(),i=Up(),a=Dp(),c="[object Map]",u="[object Set]",f=Object.prototype,h=f.hasOwnProperty;function v(y){if(y==null)return!0;if(r(y)&&(s(y)||typeof y=="string"||typeof y.splice=="function"||o(y)||a(y)||n(y)))return!y.length;var S=t(y);if(S==c||S==u)return!y.size;if(i(y))return!e(y).length;for(var k in y)if(h.call(y,k))return!1;return!0}return m0=v,m0}var Nke=Mke();const Fke=bs(Nke);var Dke=jp();const Uke=bs(Dke),jke=e=>Uke(e)?e.options:e,Bke=e=>jke(e).props;function zke(e){return typeof e=="function"||Object.prototype.toString.call(e)==="[object Object]"&&!Mi(e)}et.add(Zs);const jO=({fetch:e,select:t,unmounted:n,childPropName:s="entries",additionalPropNames:r=[]})=>o=>({props:Object.keys(Bke(o)).filter(c=>c!==s).concat(r),data(){return{loading:!1,bottomedOut:!1,error:!1,entries:[]}},created(){window.addEventListener("scroll",this.scrollLoad),this.entries.length===0&&this.fetchEntries()},unmounted(){window.removeEventListener("scroll",this.scrollLoad),n&&n(this.$props,this.$store)},methods:{updateEntries(){this.entries=t(this.$props,this.$store)||[]},fetchEntries(){this.loading||(this.loading=!0,this.error=!1,e(this.$props,this.$store).then(c=>{this.loading=!1,this.bottomedOut=Fke(c)}).catch(()=>{this.loading=!1,this.error=!0}).finally(()=>{this.updateEntries()}))},scrollLoad(c){const u=document.body.getBoundingClientRect(),f=Math.max(u.height,-u.y);this.loading===!1&&this.bottomedOut===!1&&this.$el.offsetHeight>0&&window.innerHeight+window.pageYOffset>=f-750&&this.fetchEntries()}},render(){const c={...this.$props,[s]:this.entries},u=this.$slots;return T("div",{class:"with-load-more"},[T(o,c,zke(u)?u:{default:()=>[u]}),T("div",{class:"with-load-more-footer"},[this.error&&T("button",{onClick:this.fetchEntries,class:"button-unstyled -link -fullwidth alert error"},[this.$t("general.generic_error")]),!this.error&&this.loading&&T(D2,{spin:!0,icon:"circle-notch"},null),!this.error&&!this.loading&&!this.bottomedOut&&T("a",{onClick:this.fetchEntries,role:"button",tabindex:"0"},[this.$t("general.more")])])])}});et.add(Zs);const qke=jO({fetch:(e,t)=>t.dispatch("fetchFollowers",e.userId),select:(e,t)=>Hi(t.getters.findUser(e.userId),"followerIds",[]).map(n=>t.getters.findUser(n)),childPropName:"items",additionalPropNames:["userId"]})(Td),Hke=jO({fetch:(e,t)=>t.dispatch("fetchFriends",e.userId),select:(e,t)=>Hi(t.getters.findUser(e.userId),"friendIds",[]).map(n=>t.getters.findUser(n)),childPropName:"items",additionalPropNames:["userId"]})(Td),g0="statuses",Vke={data(){return{error:!1,userId:null,tab:g0,footerRef:null}},created(){const e=this.$route.params;this.load({name:e.name,id:e.id}),this.tab=Hi(this.$route,"query.tab",g0)},unmounted(){this.stopFetching()},computed:{timeline(){return this.$store.state.statuses.timelines.user},favorites(){return this.$store.state.statuses.timelines.favorites},media(){return this.$store.state.statuses.timelines.media},isUs(){return this.userId&&this.$store.state.users.currentUser.id&&this.userId===this.$store.state.users.currentUser.id},user(){return this.$store.getters.findUser(this.userId)},isExternal(){return this.$route.name==="external-user-profile"},followsTabVisible(){return this.isUs||!this.user.hide_follows},followersTabVisible(){return this.isUs||!this.user.hide_followers},favoritesTabVisible(){return this.isUs||this.$store.state.instance.pleromaPublicFavouritesAvailable&&!this.user.hide_favorites}},methods:{setFooterRef(e){this.footerRef=e},load(e){const t=(i,a)=>{a!==this.$store.state.statuses.timelines[i].userId&&this.$store.commit("clearTimeline",{timeline:i}),this.$store.dispatch("startFetchingTimeline",{timeline:i,userId:a})},n=i=>{this.userId=i,t("user",i),t("media",i),this.isUs?t("favorites"):this.user.hide_favorites||t("favorites",i),this.$store.dispatch("fetchPinnedStatuses",i)};this.userId=null,this.error=!1;const s=e.id,r=e.name,o=s?this.$store.getters.findUser(s):this.$store.getters.findUserByName(r);o?n(o.id):(s?this.$store.dispatch("fetchUser",s):this.$store.dispatch("fetchUserByName",r)).then(({id:i})=>n(i)).catch(i=>{const a=Hi(i,"error.error");a==="No user with such user_id"?this.error=this.$t("user_profile.profile_does_not_exist"):a?this.error=a:this.error=this.$t("user_profile.profile_loading_error")})},stopFetching(){this.$store.dispatch("stopFetchingTimeline","user"),this.$store.dispatch("stopFetchingTimeline","favorites"),this.$store.dispatch("stopFetchingTimeline","media")},switchUser(e){this.stopFetching(),this.load(e)},onTabSwitch(e){this.tab=e,this.$router.replace({query:{tab:e}})},linkClicked({target:e}){e.tagName==="SPAN"&&(e=e.parentNode),e.tagName==="A"&&window.open(e.href,"_blank")}},watch:{"$route.params.id":function(e){e&&this.switchUser({id:e})},"$route.params.name":function(e){e&&this.switchUser({name:e})},"$route.query":function(e){this.tab=e.tab||g0}},components:{UserCard:Cd,Timeline:lo,FollowerList:qke,FriendList:Hke,FollowCard:nw,TabSwitcher:lm,Conversation:am,RichContent:Mr}},Wke={key:0,class:"user-profile panel panel-default"},Gke={class:"panel-body card-wrapper"},Kke=["label","disabled"],xke=["label","disabled"],Yke={key:1,class:"panel user-profile-placeholder"},Xke={class:"panel-heading"},Jke={class:"title"},Zke={class:"panel-body"},Qke={key:0,class:"alert error"},e3e={class:"error-message"};function t3e(e,t,n,s,r,o){const i=O("UserCard"),a=O("Timeline"),c=O("FollowCard"),u=O("FriendList"),f=O("FollowerList"),h=O("tab-switcher"),v=O("FAIcon");return p(),b("div",null,[e.user?(p(),b("div",Wke,[g("div",Gke,[T(i,{"user-id":e.userId,switcher:!0,selected:e.timeline.viewing,"avatar-action":"zoom","has-note-editor":!0},null,8,["user-id","selected"])]),T(h,{"active-tab":e.tab,"render-only-focused":!0,"on-switch":e.onTabSwitch},{default:X(()=>[T(a,{key:"statuses",label:e.$t("user_card.statuses"),count:e.user.statuses_count,embedded:!0,title:e.$t("user_profile.timeline_title"),timeline:e.timeline,"timeline-name":"user","user-id":e.userId,"pinned-status-ids":e.user.pinnedStatusIds,"in-profile":!0,"footer-slipgate":e.footerRef},null,8,["label","count","title","timeline","user-id","pinned-status-ids","footer-slipgate"]),e.followsTabVisible?(p(),b("div",{key:"followees",class:"panel-body",label:e.$t("user_card.followees"),disabled:!e.user.friends_count},[T(u,{"user-id":e.userId,"non-interactive":!0},{item:X(({item:y})=>[T(c,{user:y},null,8,["user"])]),_:1},8,["user-id"])],8,Kke)):E("",!0),e.followersTabVisible?(p(),b("div",{key:"followers",class:"panel-body",label:e.$t("user_card.followers"),disabled:!e.user.followers_count},[T(f,{"user-id":e.userId,"non-interactive":!0},{item:X(({item:y})=>[T(c,{user:y,"no-follows-you":e.isUs},null,8,["user","no-follows-you"])]),_:1},8,["user-id"])],8,xke)):E("",!0),T(a,{key:"media",label:e.$t("user_card.media"),disabled:!e.media.visibleStatuses.length,embedded:!0,title:e.$t("user_card.media"),"timeline-name":"media",timeline:e.media,"user-id":e.userId,"in-profile":!0,"footer-slipgate":e.footerRef},null,8,["label","disabled","title","timeline","user-id","footer-slipgate"]),e.favoritesTabVisible?(p(),Y(a,{key:"favorites",label:e.$t("user_card.favorites"),disabled:!e.favorites.visibleStatuses.length,embedded:!0,title:e.$t("user_card.favorites"),"timeline-name":"favorites",timeline:e.favorites,"user-id":e.isUs?void 0:e.userId,"in-profile":!0,"footer-slipgate":e.footerRef},null,8,["label","disabled","title","timeline","user-id","footer-slipgate"])):E("",!0)]),_:1},8,["active-tab","on-switch"]),g("div",{ref:e.setFooterRef,class:"panel-footer"},null,512)])):(p(),b("div",Yke,[g("div",Xke,[g("h1",Jke,w(e.$t("settings.profile_tab")),1)]),g("div",Zke,[e.error?(p(),b("div",Qke,[g("span",e3e,w(e.error),1)])):(p(),Y(v,{key:1,spin:"",icon:"circle-notch"}))])]))])}const v0=ge(Vke,[["render",t3e]]);var b0,vA;function n3e(){if(vA)return b0;vA=1;var e=f2(),t=Va();function n(s,r){var o=-1,i=t(s)?Array(s.length):[];return e(s,function(a,c,u){i[++o]=r(a,c,u)}),i}return b0=n,b0}var y0,bA;function s3e(){if(bA)return y0;bA=1;var e=RP(),t=_2(),n=n3e(),s=Qs();function r(o,i){var a=s(o)?e:n;return a(o,t(i,3))}return y0=r,y0}var r3e=s3e();const BO=bs(r3e);et.add(Zs,Ba);const o3e={components:{FollowCard:nw,Conversation:am,Status:ea,TabSwitcher:lm},props:["query"],data(){return{loaded:!1,loading:!1,searchTerm:this.query||"",userIds:[],statuses:[],hashtags:[],currenResultTab:"statuses",statusesOffset:0,lastStatusFetchCount:0,lastQuery:""}},computed:{users(){return this.userIds.map(e=>this.$store.getters.findUser(e))},visibleStatuses(){const e=this.$store.state.statuses.allStatusesObject;return this.statuses.filter(t=>e[t.id]&&!e[t.id].deleted)}},mounted(){this.search(this.query)},watch:{query(e){this.searchTerm=e,this.search(e)}},methods:{newQuery(e){this.$router.push({name:"search",query:{query:e}}),this.$refs.searchInput.focus()},search(e,t=null){if(!e){this.loading=!1;return}this.loading=!0,this.$refs.searchInput.blur(),this.lastQuery!==e&&(this.userIds=[],this.hashtags=[],this.statuses=[],this.statusesOffset=0,this.lastStatusFetchCount=0),this.$store.dispatch("search",{q:e,resolve:!0,offset:this.statusesOffset,type:t}).then(n=>{this.loading=!1;const s=this.statuses.length;this.userIds=this.userIds.concat(BO(n.accounts,"id")),this.statuses=Z.uniqBy(this.statuses.concat(n.statuses),"id"),this.hashtags=this.hashtags.concat(n.hashtags),this.currenResultTab=this.getActiveTab(),this.loaded=!0,this.statusesOffset=this.statuses.length,this.lastStatusFetchCount=this.statuses.length-s,this.lastQuery=e})},resultCount(e){const t=this[e].length;return t===0?"":` (${t})`},onResultTabSwitch(e){this.currenResultTab=e},getActiveTab(){return this.visibleStatuses.length>0?"statuses":this.users.length>0?"people":this.hashtags.length>0?"hashtags":"statuses"},lastHistoryRecord(e){return e.history&&e.history[0]}}},i3e={class:"Search panel panel-default"},a3e={class:"panel-heading"},l3e={class:"title"},c3e={class:"panel-body search-input-container"},u3e=["placeholder"],d3e={key:0,class:"panel-body text-center loading-icon"},f3e={key:1},h3e={class:"search-nav-heading"},p3e=["label"],m3e=["label"],g3e=["label"],v3e={class:"panel-body"},b3e={key:0},y3e={class:"new-status-notification text-center"},_3e={key:1,class:"text-center loading-icon"},w3e={key:2,class:"search-result-heading"},S3e={key:1},$3e={key:0,class:"search-result-heading"},k3e={key:2},C3e={key:0,class:"search-result-heading"},T3e={class:"name"},A3e={key:0},E3e={key:0},I3e={key:1},P3e={key:0,class:"count"};function L3e(e,t,n,s,r,o){const i=O("FAIcon"),a=O("tab-switcher"),c=O("Status"),u=O("FollowCard"),f=O("router-link");return p(),b("div",i3e,[g("div",a3e,[g("h1",l3e,w(e.$t("nav.search")),1)]),g("div",c3e,[at(g("input",{ref:"searchInput","onUpdate:modelValue":t[0]||(t[0]=h=>e.searchTerm=h),class:"input search-input",placeholder:e.$t("nav.search"),onKeyup:t[1]||(t[1]=zo(h=>e.newQuery(e.searchTerm),["enter"]))},null,40,u3e),[[Nt,e.searchTerm]]),g("button",{class:"btn button-default search-button",type:"submit",onClick:t[2]||(t[2]=h=>e.newQuery(e.searchTerm))},[T(i,{icon:"search"})])]),e.loading&&e.statusesOffset==0?(p(),b("div",d3e,[T(i,{icon:"circle-notch",spin:"",size:"lg"})])):e.loaded?(p(),b("div",f3e,[g("div",h3e,[T(a,{ref:"tabSwitcher","on-switch":e.onResultTabSwitch,"active-tab":e.currenResultTab},{default:X(()=>[g("span",{key:"statuses",label:e.$t("user_card.statuses")+e.resultCount("visibleStatuses")},null,8,p3e),g("span",{key:"people",label:e.$t("search.people")+e.resultCount("users")},null,8,m3e),g("span",{key:"hashtags",label:e.$t("search.hashtags")+e.resultCount("hashtags")},null,8,g3e)]),_:1},8,["on-switch","active-tab"])])])):E("",!0),g("div",v3e,[e.currenResultTab==="statuses"?(p(),b("div",b3e,[(p(!0),b(Se,null,We(e.visibleStatuses,h=>(p(),Y(c,{key:h.id,collapsable:!1,expandable:!1,compact:!1,class:"search-result",statusoid:h,"no-heading":!1},null,8,["statusoid"]))),128)),!e.loading&&e.loaded&&e.lastStatusFetchCount>0?(p(),b("button",{key:0,class:"more-statuses-button button-unstyled -link",onClick:t[3]||(t[3]=Te(h=>e.search(e.searchTerm,"statuses"),["prevent"]))},[g("div",y3e,w(e.$t("search.load_more")),1)])):e.loading&&e.statusesOffset>0?(p(),b("div",_3e,[T(i,{icon:"circle-notch",spin:"",size:"lg"})])):E("",!0),(e.visibleStatuses.length===0||e.lastStatusFetchCount===0)&&!e.loading&&e.loaded?(p(),b("div",w3e,[g("h4",null,w(e.visibleStatuses.length===0?e.$t("search.no_results"):e.$t("search.no_more_results")),1)])):E("",!0)])):e.currenResultTab==="people"?(p(),b("div",S3e,[e.users.length===0&&!e.loading&&e.loaded?(p(),b("div",$3e,[g("h4",null,w(e.$t("search.no_results")),1)])):E("",!0),(p(!0),b(Se,null,We(e.users,h=>(p(),Y(u,{key:h.id,user:h,class:"list-item search-result"},null,8,["user"]))),128))])):e.currenResultTab==="hashtags"?(p(),b("div",k3e,[e.hashtags.length===0&&!e.loading&&e.loaded?(p(),b("div",C3e,[g("h4",null,w(e.$t("search.no_results")),1)])):E("",!0),(p(!0),b(Se,null,We(e.hashtags,h=>(p(),b("div",{key:h.url,class:"status trend search-result"},[T(f,{class:"list-item hashtag",to:{name:"tag-timeline",params:{tag:h.name}}},{default:X(()=>[g("span",T3e," #"+w(h.name),1),e.lastHistoryRecord(h)?(p(),b("div",A3e,[e.lastHistoryRecord(h).accounts==1?(p(),b("span",E3e,w(e.$t("search.person_talking",{count:e.lastHistoryRecord(h).accounts})),1)):(p(),b("span",I3e,w(e.$t("search.people_talking",{count:e.lastHistoryRecord(h).accounts})),1))])):E("",!0)]),_:2},1032,["to"]),e.lastHistoryRecord(h)?(p(),b("div",P3e,w(e.lastHistoryRecord(h).uses),1)):E("",!0)]))),128))])):E("",!0)]),t[4]||(t[4]=g("div",{class:"search-result-footer text-center panel-footer faint"},null,-1))])}const O3e=ge(o3e,[["render",L3e]]);function yA(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable})),n.push.apply(n,s)}return n}function Ci(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?yA(Object(n),!0).forEach(function(s){R3e(e,s,n[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yA(Object(n)).forEach(function(s){Object.defineProperty(e,s,Object.getOwnPropertyDescriptor(n,s))})}return e}function R3e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _A(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return Object.keys(e).reduce((n,s)=>(t.includes(s)||(n[s]=Lt(e[s])),n),{})}function xh(e){return typeof e=="function"}function M3e(e){return Bo(e)||Wo(e)}function zO(e,t,n){let s=e;const r=t.split(".");for(let o=0;o<r.length;o++){if(!s[r[o]])return n;s=s[r[o]]}return s}function _0(e,t,n){return vt(()=>e.some(s=>zO(t,s,{[n]:!1})[n]))}function wA(e,t,n){return vt(()=>e.reduce((s,r)=>{const o=zO(t,r,{[n]:!1})[n]||[];return s.concat(o)},[]))}function qO(e,t,n,s){return e.call(s,Lt(t),Lt(n),s)}function HO(e){return e.$valid!==void 0?!e.$valid:!e}function N3e(e,t,n,s,r,o,i){let{$lazy:a,$rewardEarly:c}=r,u=arguments.length>7&&arguments[7]!==void 0?arguments[7]:[],f=arguments.length>8?arguments[8]:void 0,h=arguments.length>9?arguments[9]:void 0,v=arguments.length>10?arguments[10]:void 0;const y=Kn(!!s.value),S=Kn(0);n.value=!1;const k=os([t,s].concat(u,v),()=>{if(a&&!s.value||c&&!h.value&&!n.value)return;let I;try{I=qO(e,t,f,i)}catch(C){I=Promise.reject(C)}S.value++,n.value=!!S.value,y.value=!1,Promise.resolve(I).then(C=>{S.value--,n.value=!!S.value,o.value=C,y.value=HO(C)}).catch(C=>{S.value--,n.value=!!S.value,o.value=C,y.value=!0})},{immediate:!0,deep:typeof t=="object"});return{$invalid:y,$unwatch:k}}function F3e(e,t,n,s,r,o,i,a){let{$lazy:c,$rewardEarly:u}=s;const f=()=>({}),h=vt(()=>{if(c&&!n.value||u&&!a.value)return!1;let v=!0;try{const y=qO(e,t,i,o);r.value=y,v=HO(y)}catch(y){r.value=y}return v});return{$unwatch:f,$invalid:h}}function D3e(e,t,n,s,r,o,i,a,c,u,f){const h=Kn(!1),v=e.$params||{},y=Kn(null);let S,k;e.$async?{$invalid:S,$unwatch:k}=N3e(e.$validator,t,h,n,s,y,r,e.$watchTargets,c,u,f):{$invalid:S,$unwatch:k}=F3e(e.$validator,t,n,s,y,r,c,u);const I=e.$message;return{$message:xh(I)?vt(()=>I(_A({$pending:h,$invalid:S,$params:_A(v),$model:t,$response:y,$validator:o,$propertyPath:a,$property:i}))):I||"",$params:v,$pending:h,$invalid:S,$response:y,$unwatch:k}}function U3e(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};const t=Lt(e),n=Object.keys(t),s={},r={},o={};let i=null;return n.forEach(a=>{const c=t[a];switch(!0){case xh(c.$validator):s[a]=c;break;case xh(c):s[a]={$validator:c};break;case a==="$validationGroups":i=c;break;case a.startsWith("$"):o[a]=c;break;default:r[a]=c}}),{rules:s,nestedValidators:r,config:o,validationGroups:i}}const j3e="__root";function B3e(e,t,n,s,r,o,i,a,c){const u=Object.keys(e),f=s.get(r,e),h=Kn(!1),v=Kn(!1),y=Kn(0);if(f){if(!f.$partial)return f;f.$unwatch(),h.value=f.$dirty.value}const S={$dirty:h,$path:r,$touch:()=>{h.value||(h.value=!0)},$reset:()=>{h.value&&(h.value=!1)},$commit:()=>{}};return u.length?(u.forEach(k=>{S[k]=D3e(e[k],t,S.$dirty,o,i,k,n,r,c,v,y)}),S.$externalResults=vt(()=>a.value?[].concat(a.value).map((k,I)=>({$propertyPath:r,$property:n,$validator:"$externalResults",$uid:`${r}-externalResult-${I}`,$message:k,$params:{},$response:null,$pending:!1})):[]),S.$invalid=vt(()=>{const k=u.some(I=>Lt(S[I].$invalid));return v.value=k,!!S.$externalResults.value.length||k}),S.$pending=vt(()=>u.some(k=>Lt(S[k].$pending))),S.$error=vt(()=>S.$dirty.value?S.$pending.value||S.$invalid.value:!1),S.$silentErrors=vt(()=>u.filter(k=>Lt(S[k].$invalid)).map(k=>{const I=S[k];return Pr({$propertyPath:r,$property:n,$validator:k,$uid:`${r}-${k}`,$message:I.$message,$params:I.$params,$response:I.$response,$pending:I.$pending})}).concat(S.$externalResults.value)),S.$errors=vt(()=>S.$dirty.value?S.$silentErrors.value:[]),S.$unwatch=()=>u.forEach(k=>{S[k].$unwatch()}),S.$commit=()=>{v.value=!0,y.value=Date.now()},s.set(r,e,S),S):(f&&s.set(r,e,S),S)}function z3e(e,t,n,s,r,o,i){const a=Object.keys(e);return a.length?a.reduce((c,u)=>(c[u]=Vy({validations:e[u],state:t,key:u,parentKey:n,resultsCache:s,globalConfig:r,instance:o,externalResults:i}),c),{}):{}}function q3e(e,t,n){const s=vt(()=>[t,n].filter(S=>S).reduce((S,k)=>S.concat(Object.values(Lt(k))),[])),r=vt({get(){return e.$dirty.value||(s.value.length?s.value.every(S=>S.$dirty):!1)},set(S){e.$dirty.value=S}}),o=vt(()=>{const S=Lt(e.$silentErrors)||[],k=s.value.filter(I=>(Lt(I).$silentErrors||[]).length).reduce((I,C)=>I.concat(...C.$silentErrors),[]);return S.concat(k)}),i=vt(()=>{const S=Lt(e.$errors)||[],k=s.value.filter(I=>(Lt(I).$errors||[]).length).reduce((I,C)=>I.concat(...C.$errors),[]);return S.concat(k)}),a=vt(()=>s.value.some(S=>S.$invalid)||Lt(e.$invalid)||!1),c=vt(()=>s.value.some(S=>Lt(S.$pending))||Lt(e.$pending)||!1),u=vt(()=>s.value.some(S=>S.$dirty)||s.value.some(S=>S.$anyDirty)||r.value),f=vt(()=>r.value?c.value||a.value:!1),h=()=>{e.$touch(),s.value.forEach(S=>{S.$touch()})},v=()=>{e.$commit(),s.value.forEach(S=>{S.$commit()})},y=()=>{e.$reset(),s.value.forEach(S=>{S.$reset()})};return s.value.length&&s.value.every(S=>S.$dirty)&&h(),{$dirty:r,$errors:i,$invalid:a,$anyDirty:u,$error:f,$pending:c,$touch:h,$reset:y,$silentErrors:o,$commit:v}}function Vy(e){let{validations:t,state:n,key:s,parentKey:r,childResults:o,resultsCache:i,globalConfig:a={},instance:c,externalResults:u}=e;const f=r?`${r}.${s}`:s,{rules:h,nestedValidators:v,config:y,validationGroups:S}=U3e(t),k=Ci(Ci({},a),y),I=s?vt(()=>{const dt=Lt(n);return dt?Lt(dt[s]):void 0}):n,C=Ci({},Lt(u)||{}),$=vt(()=>{const dt=Lt(u);return s?dt?Lt(dt[s]):void 0:dt}),P=B3e(h,I,s,i,f,k,c,$,n),A=z3e(v,I,f,i,k,c,$),R={};S&&Object.entries(S).forEach(dt=>{let[bt,It]=dt;R[bt]={$invalid:_0(It,A,"$invalid"),$error:_0(It,A,"$error"),$pending:_0(It,A,"$pending"),$errors:wA(It,A,"$errors"),$silentErrors:wA(It,A,"$silentErrors")}});const{$dirty:B,$errors:N,$invalid:W,$anyDirty:V,$error:U,$pending:ie,$touch:le,$reset:Pe,$silentErrors:qe,$commit:Ke}=q3e(P,A,o),Ge=s?vt({get:()=>Lt(I),set:dt=>{B.value=!0;const bt=Lt(n),It=Lt(u);It&&(It[s]=C[s]),Sn(bt[s])?bt[s].value=dt:bt[s]=dt}}):null;s&&k.$autoDirty&&os(I,()=>{B.value||le();const dt=Lt(u);dt&&(dt[s]=C[s])},{flush:"sync"});async function ze(){return le(),k.$rewardEarly&&(Ke(),await Ri()),await Ri(),new Promise(dt=>{if(!ie.value)return dt(!W.value);const bt=os(ie,()=>{dt(!W.value),bt()})})}function ot(dt){return(o.value||{})[dt]}function Ct(){Sn(u)?u.value=C:Object.keys(C).length===0?Object.keys(u).forEach(dt=>{delete u[dt]}):Object.assign(u,C)}return Pr(Ci(Ci(Ci({},P),{},{$model:Ge,$dirty:B,$error:U,$errors:N,$invalid:W,$anyDirty:V,$pending:ie,$touch:le,$reset:Pe,$path:f||j3e,$silentErrors:qe,$validate:ze,$commit:Ke},o&&{$getResultsForChild:ot,$clearExternalResults:Ct,$validationGroups:R}),A))}class H3e{constructor(){this.storage=new Map}set(t,n,s){this.storage.set(t,{rules:n,result:s})}checkRulesValidity(t,n,s){const r=Object.keys(s),o=Object.keys(n);return o.length!==r.length||!o.every(a=>r.includes(a))?!1:o.every(a=>n[a].$params?Object.keys(n[a].$params).every(c=>Lt(s[a].$params[c])===Lt(n[a].$params[c])):!0)}get(t,n){const s=this.storage.get(t);if(!s)return;const{rules:r,result:o}=s,i=this.checkRulesValidity(t,n,r),a=o.$unwatch?o.$unwatch:()=>({});return i?o:{$dirty:o.$dirty,$partial:!0,$unwatch:a}}}const ih={COLLECT_ALL:!0,COLLECT_NONE:!1},SA=Symbol("vuelidate#injectChildResults"),$A=Symbol("vuelidate#removeChildResults");function V3e(e){let{$scope:t,instance:n}=e;const s={},r=Kn([]),o=vt(()=>r.value.reduce((f,h)=>(f[h]=Lt(s[h]),f),{}));function i(f,h){let{$registerAs:v,$scope:y,$stopPropagation:S}=h;S||t===ih.COLLECT_NONE||y===ih.COLLECT_NONE||t!==ih.COLLECT_ALL&&t!==y||(s[v]=f,r.value.push(v))}n.__vuelidateInjectInstances=[].concat(n.__vuelidateInjectInstances||[],i);function a(f){r.value=r.value.filter(h=>h!==f),delete s[f]}n.__vuelidateRemoveInstances=[].concat(n.__vuelidateRemoveInstances||[],a);const c=Ys(SA,[]);Ml(SA,n.__vuelidateInjectInstances);const u=Ys($A,[]);return Ml($A,n.__vuelidateRemoveInstances),{childResults:o,sendValidationResultsToParent:c,removeValidationResultsFromParent:u}}function VO(e){return new Proxy(e,{get(t,n){return typeof t[n]=="object"?VO(t[n]):vt(()=>t[n])}})}let kA=0;function W3e(e,t){var n;let s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};arguments.length===1&&(s=e,e=void 0,t=void 0);let{$registerAs:r,$scope:o=ih.COLLECT_ALL,$stopPropagation:i,$externalResults:a,currentVueInstance:c}=s;const u=c||((n=ro())===null||n===void 0?void 0:n.proxy),f=u?u.$options:{};r||(kA+=1,r=`_vuelidate_${kA}`);const h=Kn({}),v=new H3e,{childResults:y,sendValidationResultsToParent:S,removeValidationResultsFromParent:k}=u?V3e({$scope:o,instance:u}):{childResults:Kn({})};if(!e&&f.validations){const I=f.validations;t=Kn({}),C8(()=>{t.value=u,os(()=>xh(I)?I.call(t.value,new VO(t.value)):I,C=>{h.value=Vy({validations:C,state:t,childResults:y,resultsCache:v,globalConfig:s,instance:u,externalResults:a||u.vuelidateExternalResults})},{immediate:!0})}),s=f.validationsConfig||s}else{const I=Sn(e)||M3e(e)?e:Pr(e||{});os(I,C=>{h.value=Vy({validations:C,state:t,childResults:y,resultsCache:v,globalConfig:s,instance:u??{},externalResults:a})},{immediate:!0})}return u&&(S.forEach(I=>I(h,{$registerAs:r,$scope:o,$stopPropagation:i})),cp(()=>k.forEach(I=>I(r)))),vt(()=>Ci(Ci({},Lt(h.value)),y.value))}const sw=e=>{if(e=Lt(e),Array.isArray(e))return!!e.length;if(e==null)return!1;if(e===!1)return!0;if(e instanceof Date)return!isNaN(e.getTime());if(typeof e=="object"){for(let t in e)return!0;return!1}return!!String(e).length};function xa(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return s=>(s=Lt(s),!sw(s)||t.every(r=>(r.lastIndex=0,r.test(s))))}xa(/^[a-zA-Z]*$/);xa(/^[a-zA-Z0-9]*$/);xa(/^\d*(\.\d+)?$/);const G3e=/^(?:[A-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*|"(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21\x23-\x5b\x5d-\x7f]|[\x01-\x09\x0b\x0c\x0e-\x7f])*")@(?:(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]{2,}(?:[a-z0-9-]*[a-z0-9])?|\[(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?|[a-z0-9-]*[a-z0-9]:(?:[\x01-\x08\x0b\x0c\x0e-\x1f\x21-\x5a\x53-\x7f]|\\[\x01-\x09\x0b\x0c\x0e-\x7f])+)\])$/i;xa(G3e);function K3e(e){return typeof e=="string"&&(e=e.trim()),sw(e)}var Hf={$validator:K3e,$message:"Value is required",$params:{type:"required"}};const CA=(e,t)=>e?sw(typeof t=="string"?t.trim():t):!0;function x3e(e){return function(t,n){if(typeof e!="function")return CA(Lt(e),t);const s=e.call(this,t,n);return CA(s,t)}}function w0(e){return{$validator:x3e(e),$message:"The value is required",$params:{type:"requiredIf",prop:e}}}function Y3e(e){return t=>Lt(t)===Lt(e)}function X3e(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"other";return{$validator:Y3e(e),$message:n=>`The value must be equal to the ${t} value`,$params:{equalTo:e,otherName:t,type:"sameAs"}}}const J3e=/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i;xa(J3e);xa(/(^[0-9]*$)|(^-[0-9]+$)/);xa(/^[-]?\d*(\.\d+)?$/);et.add(FJ);const Z3e={components:{Popover:Jn},props:["isProfile"]},Q3e={key:0,class:"ProfileSettingIndicator"},eCe={class:"profilesetting-tooltip"};function tCe(e,t,n,s,r,o){const i=O("FAIcon"),a=O("Popover");return n.isProfile?(p(),b("span",Q3e,[T(a,{trigger:"hover"},{trigger:X(()=>[t[0]||(t[0]=de("   ",-1)),T(i,{icon:"server","aria-label":e.$t("settings.setting_server_side")},null,8,["aria-label"])]),content:X(()=>[g("div",eCe,w(e.$t("settings.setting_server_side")),1)]),_:1})])):E("",!0)}const nCe=ge(Z3e,[["render",tCe]]),sCe={components:{Select:Zi,ProfileSettingIndicator:nCe},props:{modelValue:{type:[Array,String],required:!0},profile:{type:Boolean,default:!1}},emits:["update:modelValue"],computed:{languages(){return Tr.languages},controlledLanguage:{get:function(){return Array.isArray(this.modelValue)?this.modelValue:[this.modelValue]},set:function(e){this.$emit("update:modelValue",e)}}},methods:{getLanguageName(e){return Tr.getLanguageName(e)},addLanguage(){this.controlledLanguage=[...this.controlledLanguage,""]},setLanguageAt(e,t){const n=[...this.controlledLanguage];n[e]=t,this.controlledLanguage=n},removeLanguageAt(e){const t=[...this.controlledLanguage];t.splice(e,1),this.controlledLanguage=t}}},rCe={class:"interface-language-switcher"},oCe={class:"setting-list"},iCe=["value"],aCe=["onClick"];function lCe(e,t,n,s,r,o){const i=O("ProfileSettingIndicator"),a=O("Select");return p(),b("div",rCe,[g("label",null,[Ot(e.$slots,"default"),T(i,{"is-profile":e.profile},null,8,["is-profile"])]),g("ul",oCe,[(p(!0),b(Se,null,We(e.controlledLanguage.keys(),c=>(p(),b("li",{key:c},[g("label",null,[de(w(c===0?e.$t("settings.primary_language"):e.$t("settings.fallback_language",{index:c},c))+" ",1),T(a,{class:"language-select","model-value":e.controlledLanguage[c],"onUpdate:modelValue":u=>e.setLanguageAt(c,u)},{default:X(()=>[(p(!0),b(Se,null,We(e.languages,u=>(p(),b("option",{key:u.code,value:u.code},w(u.name),9,iCe))),128))]),_:2},1032,["model-value","onUpdate:modelValue"])]),e.controlledLanguage.length>1&&c!==0?(p(),b("button",{key:0,class:"button-default btn",onClick:()=>e.removeLanguageAt(c)},w(e.$t("settings.remove_language")),9,aCe)):E("",!0)]))),128)),g("li",null,[g("button",{class:"button-default btn",onClick:t[0]||(t[0]=(...c)=>e.addLanguage&&e.addLanguage(...c))},w(e.$t("settings.add_language")),1)])])])}const cCe=ge(sCe,[["render",lCe]]),uCe={computed:{content(){return this.$store.state.instance.tos},embedded(){return this.$store.state.instance.embeddedToS}}},dCe={class:"terms-of-service-panel"},fCe={class:"panel panel-default"},hCe={key:0,class:"panel-heading -sticky"},pCe={class:"title"},mCe={class:"panel-body"},gCe=["innerHTML"];function vCe(e,t,n,s,r,o){return p(),b("div",dCe,[g("div",fCe,[e.embedded?E("",!0):(p(),b("div",hCe,[g("div",pCe,w(e.$t("about.terms")),1)])),g("div",mCe,[g("div",{class:"tos-content",innerHTML:e.content},null,8,gCe)])])])}const WO=ge(uCe,[["render",vCe]]),bCe={setup(){return{v$:W3e()}},data:()=>({user:{email:"",fullname:"",username:"",password:"",confirm:"",birthday:"",reason:"",language:[""]},captcha:{}}),components:{InterfaceLanguageSwitcher:cCe,TermsOfServicePanel:WO},validations(){return{user:{email:{required:w0(()=>this.accountActivationRequired)},username:{required:Hf},fullname:{required:Hf},password:{required:Hf},confirm:{required:Hf,sameAs:X3e(this.user.password)},birthday:{required:w0(()=>this.birthdayRequired),maxValue:e=>!this.birthdayRequired||new Date(e).getTime()<=this.birthdayMin.getTime()},reason:{required:w0(()=>this.accountApprovalRequired)},language:{}}}},created(){(!this.registrationOpen&&!this.token||this.signedIn)&&this.$router.push({name:"root"}),this.setCaptcha()},computed:{token(){return this.$route.params.token},bioPlaceholder(){return this.replaceNewlines(this.$t("registration.bio_placeholder"))},reasonPlaceholder(){return this.replaceNewlines(this.$t("registration.reason_placeholder"))},birthdayMin(){const e=this.birthdayMinAge,t=new Date;t.setUTCMilliseconds(0),t.setUTCSeconds(0),t.setUTCMinutes(0),t.setUTCHours(0);const n=new Date;return n.setTime(t.getTime()-e*Xo),n},birthdayMinAttr(){return this.birthdayMin.toJSON().replace(/T.+$/,"")},birthdayMinFormatted(){const e=Tr.internalToBrowserLocale(this.$i18n.locale);return this.user.birthday&&new Date(Date.parse(this.birthdayMin)).toLocaleDateString(e,{timeZone:"UTC",day:"numeric",month:"long",year:"numeric"})},...mn({registrationOpen:e=>e.instance.registrationOpen,signedIn:e=>!!e.users.currentUser,isPending:e=>e.users.signUpPending,serverValidationErrors:e=>e.users.signUpErrors,signUpNotice:e=>e.users.signUpNotice,hasSignUpNotice:e=>!!e.users.signUpNotice.message,termsOfService:e=>e.instance.tos,embeddedToS:e=>e.instance.embeddedToS,accountActivationRequired:e=>e.instance.accountActivationRequired,accountApprovalRequired:e=>e.instance.accountApprovalRequired,birthdayRequired:e=>e.instance.birthdayRequired,birthdayMinAge:e=>e.instance.birthdayMinAge})},methods:{...LB(["signUp","getCaptcha"]),async submit(){if(this.user.nickname=this.user.username,this.user.token=this.token,this.user.captcha_solution=this.captcha.solution,this.user.captcha_token=this.captcha.token,this.user.captcha_answer_data=this.captcha.answer_data,this.user.language&&(this.user.language=Tr.internalToBackendLocaleMulti(this.user.language.filter(e=>e))),this.v$.$touch(),!this.v$.$invalid)try{await this.signUp(this.user)==="ok"&&this.$router.push({name:"friends"})}catch(e){console.warn("Registration failed: ",e),this.setCaptcha()}},setCaptcha(){this.getCaptcha().then(e=>{this.captcha=e})},replaceNewlines(e){return e.replace(/\s*\n\s*/g,`
`)}}},yCe={class:"column-inner"},_Ce={class:"settings panel panel-default"},wCe={class:"panel-heading"},SCe={class:"title"},$Ce={key:0,class:"panel-body"},kCe={class:"container"},CCe={class:"text-fields"},TCe={class:"form--label",for:"sign-up-username"},ACe=["disabled","placeholder"],ECe={key:0,class:"form-error"},ICe={key:0},PCe={class:"form--label",for:"sign-up-fullname"},LCe=["disabled","placeholder"],OCe={key:1,class:"form-error"},RCe={key:0},MCe={class:"form--label",for:"email"},NCe=["disabled","aria-required"],FCe={key:2,class:"form-error"},DCe={key:0},UCe={class:"form-group"},jCe={class:"form--label",for:"bio"},BCe=["disabled","placeholder"],zCe={class:"form--label",for:"sign-up-password"},qCe=["disabled"],HCe={key:3,class:"form-error"},VCe={key:0},WCe={class:"form--label",for:"sign-up-password-confirmation"},GCe=["disabled"],KCe={key:4,class:"form-error"},xCe={key:0},YCe={key:1},XCe={class:"form--label",for:"sign-up-birthday"},JCe=["disabled","max","aria-required"],ZCe={key:5,class:"form-error"},QCe={key:0},e4e={key:1},t4e={key:6,class:"form-group"},n4e={class:"form--label",for:"reason"},s4e=["disabled","placeholder"],r4e={key:7,id:"captcha-group",class:"form-group"},o4e={class:"form--label",for:"captcha-label"},i4e=["src"],a4e=["disabled"],l4e={key:8,class:"form-group"},c4e={for:"token"},u4e={class:"form-group"},d4e=["disabled"],f4e=["innerHTML"],h4e={key:0,class:"form-group"},p4e={class:"alert error"},m4e={key:1},g4e={class:"registration-notice"};function v4e(e,t,n,s,r,o){const i=O("TermsOfServicePanel"),a=O("interface-language-switcher");return p(),b("div",yCe,[!e.hasSignUpNotice&&!e.embeddedToS?(p(),Y(i,{key:0})):E("",!0),g("div",_Ce,[g("div",wCe,[g("h1",SCe,w(e.$t("registration.registration")),1)]),e.hasSignUpNotice?(p(),b("div",m4e,[g("p",g4e,w(e.signUpNotice.message),1)])):(p(),b("div",$Ce,[g("form",{class:"registration-form",onSubmit:t[12]||(t[12]=Te(c=>e.submit(e.user),["prevent"]))},[g("div",kCe,[g("div",CCe,[g("div",{class:he(["form-group",{"form-group--error":e.v$.user.username.$error}])},[g("label",TCe,w(e.$t("login.username")),1),at(g("input",{id:"sign-up-username","onUpdate:modelValue":t[0]||(t[0]=c=>e.v$.user.username.$model=c),disabled:e.isPending,class:"input form-control","aria-required":!0,placeholder:e.$t("registration.username_placeholder")},null,8,ACe),[[Nt,e.v$.user.username.$model,void 0,{trim:!0}]])],2),e.v$.user.username.$dirty?(p(),b("div",ECe,[g("ul",null,[e.v$.user.username.required?E("",!0):(p(),b("li",ICe,[g("span",null,w(e.$t("registration.validations.username_required")),1)]))])])):E("",!0),g("div",{class:he(["form-group",{"form-group--error":e.v$.user.fullname.$error}])},[g("label",PCe,w(e.$t("registration.fullname")),1),at(g("input",{id:"sign-up-fullname","onUpdate:modelValue":t[1]||(t[1]=c=>e.v$.user.fullname.$model=c),disabled:e.isPending,class:"input form-control","aria-required":!0,placeholder:e.$t("registration.fullname_placeholder")},null,8,LCe),[[Nt,e.v$.user.fullname.$model,void 0,{trim:!0}]])],2),e.v$.user.fullname.$dirty?(p(),b("div",OCe,[g("ul",null,[e.v$.user.fullname.required?E("",!0):(p(),b("li",RCe,[g("span",null,w(e.$t("registration.validations.fullname_required")),1)]))])])):E("",!0),g("div",{class:he(["form-group",{"form-group--error":e.v$.user.email.$error}])},[g("label",MCe,w(e.accountActivationRequired?e.$t("registration.email"):e.$t("registration.email_optional")),1),at(g("input",{id:"email","onUpdate:modelValue":t[2]||(t[2]=c=>e.v$.user.email.$model=c),disabled:e.isPending,class:"input form-control",type:"email","aria-required":e.accountActivationRequired},null,8,NCe),[[Nt,e.v$.user.email.$model]])],2),e.v$.user.email.$dirty?(p(),b("div",FCe,[g("ul",null,[e.v$.user.email.required?E("",!0):(p(),b("li",DCe,[g("span",null,w(e.$t("registration.validations.email_required")),1)]))])])):E("",!0),g("div",UCe,[g("label",jCe,w(e.$t("registration.bio_optional")),1),at(g("textarea",{id:"bio","onUpdate:modelValue":t[3]||(t[3]=c=>e.user.bio=c),disabled:e.isPending,class:"input form-control",placeholder:e.bioPlaceholder},null,8,BCe),[[Nt,e.user.bio]])]),g("div",{class:he(["form-group",{"form-group--error":e.v$.user.password.$error}])},[g("label",zCe,w(e.$t("login.password")),1),at(g("input",{id:"sign-up-password","onUpdate:modelValue":t[4]||(t[4]=c=>e.user.password=c),disabled:e.isPending,class:"input form-control",type:"password","aria-required":!0},null,8,qCe),[[Nt,e.user.password]])],2),e.v$.user.password.$dirty?(p(),b("div",HCe,[g("ul",null,[e.v$.user.password.required?E("",!0):(p(),b("li",VCe,[g("span",null,w(e.$t("registration.validations.password_required")),1)]))])])):E("",!0),g("div",{class:he(["form-group",{"form-group--error":e.v$.user.confirm.$error}])},[g("label",WCe,w(e.$t("registration.password_confirm")),1),at(g("input",{id:"sign-up-password-confirmation","onUpdate:modelValue":t[5]||(t[5]=c=>e.user.confirm=c),disabled:e.isPending,class:"input form-control",type:"password","aria-required":!0},null,8,GCe),[[Nt,e.user.confirm]])],2),e.v$.user.confirm.$dirty?(p(),b("div",KCe,[g("ul",null,[e.v$.user.confirm.required.$invalid?(p(),b("li",xCe,[g("span",null,w(e.$t("registration.validations.password_confirmation_required")),1)])):E("",!0),e.v$.user.confirm.sameAs.$invalid?(p(),b("li",YCe,[g("span",null,w(e.$t("registration.validations.password_confirmation_match")),1)])):E("",!0)])])):E("",!0),g("div",{class:he(["form-group",{"form-group--error":e.v$.user.birthday.$error}])},[g("label",XCe,w(e.birthdayRequired?e.$t("registration.birthday"):e.$t("registration.birthday_optional")),1),at(g("input",{id:"sign-up-birthday","onUpdate:modelValue":t[6]||(t[6]=c=>e.user.birthday=c),disabled:e.isPending,class:"input form-control",type:"date",max:e.birthdayRequired?e.birthdayMinAttr:void 0,"aria-required":e.birthdayRequired},null,8,JCe),[[Nt,e.user.birthday]])],2),e.v$.user.birthday.$dirty?(p(),b("div",ZCe,[g("ul",null,[e.v$.user.birthday.required.$invalid?(p(),b("li",QCe,[g("span",null,w(e.$t("registration.validations.birthday_required")),1)])):E("",!0),e.v$.user.birthday.maxValue.$invalid?(p(),b("li",e4e,[g("span",null,w(e.$t("registration.validations.birthday_min_age",{date:e.birthdayMinFormatted})),1)])):E("",!0)])])):E("",!0),g("div",{class:he(["form-group",{"form-group--error":e.v$.user.language.$error}])},[T(a,{for:"email-language","prompt-text":e.$t("registration.email_language"),language:e.v$.user.language.$model,"set-language":c=>e.v$.user.language.$model=c,onClick:t[7]||(t[7]=Te(()=>{},["stop","prevent"]))},null,8,["prompt-text","language","set-language"])],2),e.accountApprovalRequired?(p(),b("div",t4e,[g("label",n4e,w(e.$t("registration.reason")),1),at(g("textarea",{id:"reason","onUpdate:modelValue":t[8]||(t[8]=c=>e.user.reason=c),disabled:e.isPending,class:"input form-control",placeholder:e.reasonPlaceholder},null,8,s4e),[[Nt,e.user.reason]])])):E("",!0),e.captcha.type!="none"?(p(),b("div",r4e,[g("label",o4e,w(e.$t("registration.captcha")),1),["kocaptcha","native"].includes(e.captcha.type)?(p(),b(Se,{key:0},[g("img",{src:e.captcha.url,onClick:t[9]||(t[9]=(...c)=>e.setCaptcha&&e.setCaptcha(...c))},null,8,i4e),g("sub",null,w(e.$t("registration.new_captcha")),1),at(g("input",{id:"captcha-answer","onUpdate:modelValue":t[10]||(t[10]=c=>e.captcha.solution=c),disabled:e.isPending,class:"input form-control",type:"text",autocomplete:"off",autocorrect:"off",autocapitalize:"off",spellcheck:"false"},null,8,a4e),[[Nt,e.captcha.solution]])],64)):E("",!0)])):E("",!0),e.token?(p(),b("div",l4e,[g("label",c4e,w(e.$t("registration.token")),1),at(g("input",{id:"token","onUpdate:modelValue":t[11]||(t[11]=c=>e.token=c),disabled:"true",class:"input form-control",type:"text"},null,512),[[Nt,e.token]])])):E("",!0),g("div",u4e,[g("button",{disabled:e.isPending,type:"submit",class:"btn button-default"},w(e.$t("registration.register")),9,d4e)])]),e.embeddedToS?(p(),b("div",{key:0,class:"terms-of-service",innerHTML:e.termsOfService},null,8,f4e)):E("",!0)]),e.serverValidationErrors.length?(p(),b("div",h4e,[g("div",p4e,[(p(!0),b(Se,null,We(e.serverValidationErrors,c=>(p(),b("span",{key:c},w(c),1))),128))])])):E("",!0)],32)]))])])}const TA=ge(bCe,[["render",v4e]]),b4e="/auth/password",y4e=({instance:e,email:t})=>{const n={email:t},s=Z.reduce(n,(o,i,a)=>{const c=`${a}=${encodeURIComponent(i)}`;return`${o}&${c}`},""),r=`${e}${b4e}?${s}`;return window.fetch(r,{method:"POST"})};et.add(Xn);const _4e={data:()=>({user:{email:""},isPending:!1,success:!1,throttled:!1,error:null}),computed:{...mn({signedIn:e=>!!e.users.currentUser,instance:e=>e.instance}),mailerEnabled(){return this.instance.mailerEnabled}},created(){this.signedIn&&this.$router.push({name:"root"})},props:{passwordResetRequested:{default:!1,type:Boolean}},methods:{dismissError(){this.error=null},submit(){this.isPending=!0;const e=this.user.email,t=this.instance.server;y4e({instance:t,email:e}).then(({status:n})=>{this.isPending=!1,this.user.email="",n===204?(this.success=!0,this.error=null):n===429&&(this.throttled=!0,this.error=this.$t("password_reset.too_many_requests"))}).catch(()=>{this.isPending=!1,this.user.email="",this.error=this.$t("general.generic_error")})}}},w4e={class:"settings panel panel-default"},S4e={class:"panel-heading"},$4e={class:"title"},k4e={class:"panel-body"},C4e={class:"container"},T4e={key:0},A4e={key:0},E4e={key:1},I4e={key:1},P4e={key:0},L4e={class:"form-group text-center"},O4e={key:2},R4e={key:0,class:"alert password-reset-required error"},M4e={class:"form-group"},N4e=["disabled","placeholder"],F4e={class:"form-group"},D4e=["disabled"],U4e={key:3,class:"alert error notice-dismissible"};function j4e(e,t,n,s,r,o){const i=O("router-link"),a=O("FAIcon");return p(),b("div",w4e,[g("div",S4e,[g("h1",$4e,w(e.$t("password_reset.password_reset")),1)]),g("div",k4e,[g("form",{class:"password-reset-form",onSubmit:t[2]||(t[2]=Te((...c)=>e.submit&&e.submit(...c),["prevent"]))},[g("div",C4e,[e.mailerEnabled?e.success||e.throttled?(p(),b("div",I4e,[e.success?(p(),b("p",P4e,w(e.$t("password_reset.check_email")),1)):E("",!0),g("div",L4e,[T(i,{to:{name:"root"}},{default:X(()=>[de(w(e.$t("password_reset.return_home")),1)]),_:1})])])):(p(),b("div",O4e,[e.passwordResetRequested?(p(),b("p",R4e,w(e.$t("password_reset.password_reset_required")),1)):E("",!0),g("p",null,w(e.$t("password_reset.instruction")),1),g("div",M4e,[at(g("input",{ref:"email","onUpdate:modelValue":t[0]||(t[0]=c=>e.user.email=c),disabled:e.isPending,placeholder:e.$t("password_reset.placeholder"),class:"input form-control",type:"input"},null,8,N4e),[[Nt,e.user.email]])]),g("div",F4e,[g("button",{disabled:e.isPending,type:"submit",class:"btn button-default btn-block"},w(e.$t("settings.save")),9,D4e)])])):(p(),b("div",T4e,[e.passwordResetRequested?(p(),b("p",A4e,w(e.$t("password_reset.password_reset_required_but_mailer_is_disabled")),1)):(p(),b("p",E4e,w(e.$t("password_reset.password_reset_disabled")),1))])),e.error?(p(),b("p",U4e,[g("span",null,w(e.error),1),g("a",{class:"fa-scale-110 fa-old-padding dismiss",onClick:t[1]||(t[1]=Te(c=>e.dismissError(),["prevent"]))},[T(a,{icon:"times"})])])):E("",!0)])],32)])])}const B4e=ge(_4e,[["render",j4e]]),z4e={props:["user"],components:{BasicUserCard:Ad,ConfirmModal:Nr},data(){return{showingApproveConfirmDialog:!1,showingDenyConfirmDialog:!1}},methods:{findFollowRequestNotificationId(){const e=y_(this.$store).find(t=>t.from_profile.id===this.user.id&&t.type==="follow_request");return e&&e.id},showApproveConfirmDialog(){this.showingApproveConfirmDialog=!0},hideApproveConfirmDialog(){this.showingApproveConfirmDialog=!1},showDenyConfirmDialog(){this.showingDenyConfirmDialog=!0},hideDenyConfirmDialog(){this.showingDenyConfirmDialog=!1},approveUser(){this.shouldConfirmApprove?this.showApproveConfirmDialog():this.doApprove()},doApprove(){this.$store.state.api.backendInteractor.approveUser({id:this.user.id}),this.$store.dispatch("removeFollowRequest",this.user);const e=this.findFollowRequestNotificationId();this.$store.dispatch("markSingleNotificationAsSeen",{id:e}),this.$store.dispatch("updateNotification",{id:e,updater:t=>{t.type="follow"}}),this.hideApproveConfirmDialog()},denyUser(){this.shouldConfirmDeny?this.showDenyConfirmDialog():this.doDeny()},doDeny(){const e=this.findFollowRequestNotificationId();this.$store.state.api.backendInteractor.denyUser({id:this.user.id}).then(()=>{this.$store.dispatch("dismissNotificationLocal",{id:e}),this.$store.dispatch("removeFollowRequest",this.user)}),this.hideDenyConfirmDialog()}},computed:{mergedConfig(){return this.$store.getters.mergedConfig},shouldConfirmApprove(){return this.mergedConfig.modalOnApproveFollow},shouldConfirmDeny(){return this.mergedConfig.modalOnDenyFollow}}},q4e={class:"follow-request-card-content-container"};function H4e(e,t,n,s,r,o){const i=O("confirm-modal"),a=O("basic-user-card");return p(),Y(a,{user:e.user},{default:X(()=>[g("div",q4e,[g("button",{class:"btn button-default",onClick:t[0]||(t[0]=(...c)=>e.approveUser&&e.approveUser(...c))},w(e.$t("user_card.approve")),1),g("button",{class:"btn button-default",onClick:t[1]||(t[1]=(...c)=>e.denyUser&&e.denyUser(...c))},w(e.$t("user_card.deny")),1)]),(p(),Y(Yn,{to:"#modal"},[e.showingApproveConfirmDialog?(p(),Y(i,{key:0,title:e.$t("user_card.approve_confirm_title"),"confirm-text":e.$t("user_card.approve_confirm_accept_button"),"cancel-text":e.$t("user_card.approve_confirm_cancel_button"),onAccepted:e.doApprove,onCancelled:e.hideApproveConfirmDialog},{default:X(()=>[de(w(e.$t("user_card.approve_confirm",{user:e.user.screen_name_ui})),1)]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0),e.showingDenyConfirmDialog?(p(),Y(i,{key:1,title:e.$t("user_card.deny_confirm_title"),"confirm-text":e.$t("user_card.deny_confirm_accept_button"),"cancel-text":e.$t("user_card.deny_confirm_cancel_button"),onAccepted:e.doDeny,onCancelled:e.hideDenyConfirmDialog},{default:X(()=>[de(w(e.$t("user_card.deny_confirm",{user:e.user.screen_name_ui})),1)]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0)]))]),_:1},8,["user"])}const V4e=ge(z4e,[["render",H4e]]),W4e={components:{FollowRequestCard:V4e},computed:{requests(){return this.$store.state.api.followRequests}}},G4e={class:"settings panel panel-default"},K4e={class:"panel-heading"},x4e={class:"title"},Y4e={class:"panel-body"};function X4e(e,t,n,s,r,o){const i=O("FollowRequestCard");return p(),b("div",G4e,[g("div",K4e,[g("h1",x4e,w(e.$t("nav.friend_requests")),1)]),g("div",Y4e,[(p(!0),b(Se,null,We(e.requests,a=>(p(),Y(i,{key:a.id,user:a,class:"list-item"},null,8,["user"]))),128))])])}const J4e=ge(W4e,[["render",X4e]]),Z4e={props:["code"],mounted(){if(this.code){const e=Ar(),{clientId:t,clientSecret:n}=e;Rh.getToken({clientId:t,clientSecret:n,instance:this.$store.state.instance.server,code:this.code}).then(s=>{e.setToken(s.access_token),this.$store.dispatch("loginUser",s.access_token),this.$router.push({name:"friends"})})}}};function Q4e(e,t,n,s,r,o){return p(),b("h1",null,"...")}const eTe=ge(Z4e,[["render",Q4e]]),tTe={components:{FollowCard:nw},data(){return{users:[]}},mounted(){this.getWhoToFollow()},methods:{showWhoToFollow(e){e.forEach(t=>{this.$store.state.api.backendInteractor.fetchUser({id:t.acct}).then(n=>{n.error||(this.$store.commit("addNewUsers",[n]),this.users.push(n))})})},getWhoToFollow(){const e=this.$store.state.users.currentUser.credentials;e&&Ln.suggestions({credentials:e}).then(t=>{this.showWhoToFollow(t)})}}},nTe={class:"panel panel-default"},sTe={class:"panel-heading"},rTe={class:"title"},oTe={class:"panel-body"};function iTe(e,t,n,s,r,o){const i=O("FollowCard");return p(),b("div",nTe,[g("div",sTe,[g("h1",rTe,w(e.$t("who_to_follow.who_to_follow")),1)]),g("div",oTe,[(p(!0),b(Se,null,We(e.users,a=>(p(),Y(i,{key:a.id,user:a,class:"list-item"},null,8,["user"]))),128))])])}const aTe=ge(tTe,[["render",iTe]]);var S0,AA;function lTe(){if(AA)return S0;AA=1;function e(t,n,s,r){for(var o=-1,i=t==null?0:t.length;++o<i;){var a=t[o];n(r,a,s(a),t)}return r}return S0=e,S0}var $0,EA;function cTe(){if(EA)return $0;EA=1;var e=f2();function t(n,s,r,o){return e(n,function(i,a,c){s(o,i,r(i),c)}),o}return $0=t,$0}var k0,IA;function uTe(){if(IA)return k0;IA=1;var e=lTe(),t=cTe(),n=_2(),s=Qs();function r(o,i){return function(a,c){var u=s(a)?e:t,f=i?i():{};return u(a,o,n(c,2),f)}}return k0=r,k0}var C0,PA;function dTe(){if(PA)return C0;PA=1;var e=tm(),t=uTe(),n=Object.prototype,s=n.hasOwnProperty,r=t(function(o,i,a){s.call(o,a)?o[a].push(i):e(o,a,[i])});return C0=r,C0}var fTe=dTe();const hTe=bs(fTe),pTe={created(){this.$store.state.instance.staffAccounts.forEach(t=>this.$store.dispatch("fetchUserIfMissing",t))},components:{BasicUserCard:Ad},computed:{groupedStaffAccounts(){const e=BO(this.staffAccounts,this.findUserByName).filter(n=>n),t=hTe(e,"role");return[{role:"admin",users:t.admin},{role:"moderator",users:t.moderator}].filter(n=>n.users)},...bn(["findUserByName"]),...mn({staffAccounts:e=>e.instance.staffAccounts})}},mTe={class:"staff-panel"},gTe={class:"panel panel-default base01-background"},vTe={class:"panel-heading timeline-heading base02-background -sticky"},bTe={class:"title"},yTe={class:"panel-body"};function _Te(e,t,n,s,r,o){const i=O("basic-user-card");return p(),b("div",mTe,[g("div",gTe,[g("div",vTe,[g("div",bTe,w(e.$t("about.staff")),1)]),g("div",yTe,[(p(!0),b(Se,null,We(e.groupedStaffAccounts,a=>(p(),b("div",{key:a.role,class:"staff-group"},[g("h4",null,w(e.$t("general.role."+a.role)),1),(p(!0),b(Se,null,We(a.users,c=>(p(),Y(i,{key:c.screen_name,user:c},null,8,["user"]))),128))]))),128))])])])}const wTe=ge(pTe,[["render",_Te]]),kl=(e,t,n)=>e.map(s=>t[n]&&t[n][s]&&t[n][s].reason?{instance:s,reason:t[n][s].reason}:{instance:s,reason:""}),STe={computed:{...mn({federationPolicy:e=>Z.get(e,"instance.federationPolicy"),mrfPolicies:e=>Z.get(e,"instance.federationPolicy.mrf_policies",[]),quarantineInstances:e=>kl(Z.get(e,"instance.federationPolicy.quarantined_instances",[]),Z.get(e,"instance.federationPolicy.quarantined_instances_info",[]),"quarantined_instances"),acceptInstances:e=>kl(Z.get(e,"instance.federationPolicy.mrf_simple.accept",[]),Z.get(e,"instance.federationPolicy.mrf_simple_info",[]),"accept"),rejectInstances:e=>kl(Z.get(e,"instance.federationPolicy.mrf_simple.reject",[]),Z.get(e,"instance.federationPolicy.mrf_simple_info",[]),"reject"),ftlRemovalInstances:e=>kl(Z.get(e,"instance.federationPolicy.mrf_simple.federated_timeline_removal",[]),Z.get(e,"instance.federationPolicy.mrf_simple_info",[]),"federated_timeline_removal"),mediaNsfwInstances:e=>kl(Z.get(e,"instance.federationPolicy.mrf_simple.media_nsfw",[]),Z.get(e,"instance.federationPolicy.mrf_simple_info",[]),"media_nsfw"),mediaRemovalInstances:e=>kl(Z.get(e,"instance.federationPolicy.mrf_simple.media_removal",[]),Z.get(e,"instance.federationPolicy.mrf_simple_info",[]),"media_removal"),keywordsFtlRemoval:e=>Z.get(e,"instance.federationPolicy.mrf_keyword.federated_timeline_removal",[]),keywordsReject:e=>Z.get(e,"instance.federationPolicy.mrf_keyword.reject",[]),keywordsReplace:e=>Z.get(e,"instance.federationPolicy.mrf_keyword.replace",[])}),hasInstanceSpecificPolicies(){return this.quarantineInstances.length||this.acceptInstances.length||this.rejectInstances.length||this.ftlRemovalInstances.length||this.mediaNsfwInstances.length||this.mediaRemovalInstances.length},hasKeywordPolicies(){return this.keywordsFtlRemoval.length||this.keywordsReject.length||this.keywordsReplace.length}}},$Te={key:0,class:"mrf-transparency-panel"},kTe={class:"panel panel-default base01-background"},CTe={class:"panel-heading timeline-heading base02-background -sticky"},TTe={class:"title"},ATe={class:"panel-body"},ETe={class:"mrf-section"},ITe=["textContent"],PTe={key:0},LTe={key:1},OTe={key:0},RTe={key:1},MTe={key:2},NTe={key:0},FTe={key:1},DTe={key:3},UTe={key:0},jTe={key:1},BTe={key:4},zTe={key:0},qTe={key:1},HTe={key:5},VTe={key:0},WTe={key:1},GTe={key:6},KTe={key:0},xTe={key:1},YTe={key:7},XTe={key:8},JTe=["textContent"],ZTe={key:9},QTe=["textContent"],e6e={key:10};function t6e(e,t,n,s,r,o){return e.federationPolicy?(p(),b("div",$Te,[g("div",kTe,[g("div",CTe,[g("div",TTe,w(e.$t("about.mrf.federation")),1)]),g("div",ATe,[g("div",ETe,[g("h2",null,w(e.$t("about.mrf.mrf_policies")),1),g("p",null,w(e.$t("about.mrf.mrf_policies_desc")),1),g("ul",null,[(p(!0),b(Se,null,We(e.mrfPolicies,i=>(p(),b("li",{key:i,textContent:w(i)},null,8,ITe))),128))]),e.hasInstanceSpecificPolicies?(p(),b("h2",PTe,w(e.$t("about.mrf.simple.simple_policies")),1)):E("",!0),e.acceptInstances.length?(p(),b("div",LTe,[g("h4",null,w(e.$t("about.mrf.simple.accept")),1),g("p",null,w(e.$t("about.mrf.simple.accept_desc")),1),g("table",null,[g("tbody",null,[g("tr",null,[g("th",null,w(e.$t("about.mrf.simple.instance")),1),g("th",null,w(e.$t("about.mrf.simple.reason")),1)]),(p(!0),b(Se,null,We(e.acceptInstances,i=>(p(),b("tr",{key:i.instance+"_accept"},[g("td",null,w(i.instance),1),i.reason===""?(p(),b("td",OTe,w(e.$t("about.mrf.simple.not_applicable")),1)):(p(),b("td",RTe,w(i.reason),1))]))),128))])])])):E("",!0),e.rejectInstances.length?(p(),b("div",MTe,[g("h4",null,w(e.$t("about.mrf.simple.reject")),1),g("p",null,w(e.$t("about.mrf.simple.reject_desc")),1),g("table",null,[g("tbody",null,[g("tr",null,[g("th",null,w(e.$t("about.mrf.simple.instance")),1),g("th",null,w(e.$t("about.mrf.simple.reason")),1)]),(p(!0),b(Se,null,We(e.rejectInstances,i=>(p(),b("tr",{key:i.instance+"_reject"},[g("td",null,w(i.instance),1),i.reason===""?(p(),b("td",NTe,w(e.$t("about.mrf.simple.not_applicable")),1)):(p(),b("td",FTe,w(i.reason),1))]))),128))])])])):E("",!0),e.quarantineInstances.length?(p(),b("div",DTe,[g("h4",null,w(e.$t("about.mrf.simple.quarantine")),1),g("p",null,w(e.$t("about.mrf.simple.quarantine_desc")),1),g("table",null,[g("tbody",null,[g("tr",null,[g("th",null,w(e.$t("about.mrf.simple.instance")),1),g("th",null,w(e.$t("about.mrf.simple.reason")),1)]),(p(!0),b(Se,null,We(e.quarantineInstances,i=>(p(),b("tr",{key:i.instance+"_quarantine"},[g("td",null,w(i.instance),1),i.reason===""?(p(),b("td",UTe,w(e.$t("about.mrf.simple.not_applicable")),1)):(p(),b("td",jTe,w(i.reason),1))]))),128))])])])):E("",!0),e.ftlRemovalInstances.length?(p(),b("div",BTe,[g("h4",null,w(e.$t("about.mrf.simple.ftl_removal")),1),g("p",null,w(e.$t("about.mrf.simple.ftl_removal_desc")),1),g("table",null,[g("tbody",null,[g("tr",null,[g("th",null,w(e.$t("about.mrf.simple.instance")),1),g("th",null,w(e.$t("about.mrf.simple.reason")),1)]),(p(!0),b(Se,null,We(e.ftlRemovalInstances,i=>(p(),b("tr",{key:i.instance+"_ftl_removal"},[g("td",null,w(i.instance),1),i.reason===""?(p(),b("td",zTe,w(e.$t("about.mrf.simple.not_applicable")),1)):(p(),b("td",qTe,w(i.reason),1))]))),128))])])])):E("",!0),e.mediaNsfwInstances.length?(p(),b("div",HTe,[g("h4",null,w(e.$t("about.mrf.simple.media_nsfw")),1),g("p",null,w(e.$t("about.mrf.simple.media_nsfw_desc")),1),g("table",null,[g("tbody",null,[g("tr",null,[g("th",null,w(e.$t("about.mrf.simple.instance")),1),g("th",null,w(e.$t("about.mrf.simple.reason")),1)]),(p(!0),b(Se,null,We(e.mediaNsfwInstances,i=>(p(),b("tr",{key:i.instance+"_media_nsfw"},[g("td",null,w(i.instance),1),i.reason===""?(p(),b("td",VTe,w(e.$t("about.mrf.simple.not_applicable")),1)):(p(),b("td",WTe,w(i.reason),1))]))),128))])])])):E("",!0),e.mediaRemovalInstances.length?(p(),b("div",GTe,[g("h4",null,w(e.$t("about.mrf.simple.media_removal")),1),g("p",null,w(e.$t("about.mrf.simple.media_removal_desc")),1),g("table",null,[g("tbody",null,[g("tr",null,[g("th",null,w(e.$t("about.mrf.simple.instance")),1),g("th",null,w(e.$t("about.mrf.simple.reason")),1)]),(p(!0),b(Se,null,We(e.mediaRemovalInstances,i=>(p(),b("tr",{key:i.instance+"_media_removal"},[g("td",null,w(i.instance),1),i.reason===""?(p(),b("td",KTe,w(e.$t("about.mrf.simple.not_applicable")),1)):(p(),b("td",xTe,w(i.reason),1))]))),128))])])])):E("",!0),e.hasKeywordPolicies?(p(),b("h2",YTe,w(e.$t("about.mrf.keyword.keyword_policies")),1)):E("",!0),e.keywordsFtlRemoval.length?(p(),b("div",XTe,[g("h4",null,w(e.$t("about.mrf.keyword.ftl_removal")),1),g("ul",null,[(p(!0),b(Se,null,We(e.keywordsFtlRemoval,i=>(p(),b("li",{key:i,textContent:w(i)},null,8,JTe))),128))])])):E("",!0),e.keywordsReject.length?(p(),b("div",ZTe,[g("h4",null,w(e.$t("about.mrf.keyword.reject")),1),g("ul",null,[(p(!0),b(Se,null,We(e.keywordsReject,i=>(p(),b("li",{key:i,textContent:w(i)},null,8,QTe))),128))])])):E("",!0),e.keywordsReplace.length?(p(),b("div",e6e,[g("h4",null,w(e.$t("about.mrf.keyword.replace")),1),g("ul",null,[(p(!0),b(Se,null,We(e.keywordsReplace,i=>(p(),b("li",{key:i},w(i.pattern)+" "+w(e.$t("about.mrf.keyword.is_replaced_by"))+" "+w(i.replacement),1))),128))])])):E("",!0)])])])])):E("",!0)}const n6e=ge(STe,[["render",t6e]]),s6e={components:{InstanceSpecificPanel:AO,FeaturesPanel:EO,TermsOfServicePanel:WO,StaffPanel:wTe,MRFTransparencyPanel:n6e},computed:{showFeaturesPanel(){return this.$store.state.instance.showFeaturesPanel},showInstanceSpecificPanel(){return this.$store.state.instance.showInstanceSpecificPanel&&!this.$store.getters.mergedConfig.hideISP&&this.$store.state.instance.instanceSpecificPanelContent}}},r6e={class:"column-inner"};function o6e(e,t,n,s,r,o){const i=O("instance-specific-panel"),a=O("staff-panel"),c=O("terms-of-service-panel"),u=O("MRFTransparencyPanel"),f=O("features-panel");return p(),b("div",r6e,[e.showInstanceSpecificPanel?(p(),Y(i,{key:0})):E("",!0),T(a),T(c),T(u),e.showFeaturesPanel?(p(),Y(f,{key:1})):E("",!0)])}const i6e=ge(s6e,[["render",o6e]]),a6e={data:()=>({error:!1}),mounted(){this.redirect()},methods:{redirect(){const e=this.$route.params.username+"@"+this.$route.params.hostname;this.$store.state.api.backendInteractor.fetchUser({id:e}).then(t=>{if(t.error)this.error=!0;else{this.$store.commit("addNewUsers",[t]);const n=t.id;this.$router.replace({name:"external-user-profile",params:{id:n}})}}).catch(()=>{this.error=!0})}}},l6e={class:"panel panel-default"},c6e={class:"panel-heading"},u6e={class:"title"},d6e={class:"panel-body"},f6e={key:0};function h6e(e,t,n,s,r,o){return p(),b("div",l6e,[g("div",c6e,[g("h1",u6e,w(e.$t("remote_user_resolver.remote_user_resolver")),1)]),g("div",d6e,[g("p",null,w(e.$t("remote_user_resolver.searching_for"))+" @"+w(e.$route.params.username)+"@"+w(e.$route.params.hostname),1),e.error?(p(),b("p",f6e,w(e.$t("remote_user_resolver.error")),1)):E("",!0)])])}const LA=ge(a6e,[["render",h6e]]);et.add(bd);const p6e={props:["list"]},m6e={class:"list-card"};function g6e(e,t,n,s,r,o){const i=O("router-link"),a=O("FAIcon");return p(),b("div",m6e,[T(i,{to:{name:"lists-timeline",params:{id:e.list.id}},class:"list-name"},{default:X(()=>[de(w(e.list.title),1)]),_:1},8,["to"]),T(i,{to:{name:"lists-edit",params:{id:e.list.id}},class:"button-list-edit"},{default:X(()=>[T(a,{class:"fa-scale-110 fa-old-padding",icon:"ellipsis-h"})]),_:1},8,["to"])])}const v6e=ge(p6e,[["render",g6e]]),b6e={data(){return{isNew:!1}},components:{ListsCard:v6e},computed:{lists(){return Fn().allLists}},methods:{cancelNewList(){this.isNew=!1},newList(){this.isNew=!0}}},y6e={class:"Lists panel panel-default"},_6e={class:"panel-heading"},w6e={class:"title"},S6e={class:"title"},$6e={class:"panel-body"};function k6e(e,t,n,s,r,o){const i=O("router-link"),a=O("ListsCard");return p(),b("div",y6e,[g("div",_6e,[g("div",w6e,[g("h1",S6e,w(e.$t("lists.lists")),1)]),T(i,{to:{name:"lists-new"},class:"button-default btn new-list-button"},{default:X(()=>[de(w(e.$t("lists.new")),1)]),_:1})]),g("div",$6e,[(p(!0),b(Se,null,We(e.lists.slice().reverse(),c=>(p(),Y(a,{key:c,list:c,class:"list-item"},null,8,["list"]))),128))])])}const C6e=ge(b6e,[["render",k6e]]),T6e={data(){return{listId:null}},components:{Timeline:lo},computed:{timeline(){return this.$store.state.statuses.timelines.list}},watch:{$route:function(e){e.name==="lists-timeline"&&e.params.id!==this.listId&&(this.listId=e.params.id,this.$store.dispatch("stopFetchingTimeline","list"),this.$store.commit("clearTimeline",{timeline:"list"}),Fn().fetchList({listId:this.listId}),this.$store.dispatch("startFetchingTimeline",{timeline:"list",listId:this.listId}))}},created(){this.listId=this.$route.params.id,Fn().fetchList({listId:this.listId}),this.$store.dispatch("startFetchingTimeline",{timeline:"list",listId:this.listId})},unmounted(){this.$store.dispatch("stopFetchingTimeline","list"),this.$store.commit("clearTimeline",{timeline:"list"})}};function A6e(e,t,n,s,r,o){const i=O("Timeline");return p(),Y(i,{title:"list.name",timeline:e.timeline,"list-id":e.listId,"timeline-name":"list"},null,8,["timeline","list-id"])}const E6e=ge(T6e,[["render",A6e]]);et.add(Ba,qa);const I6e={components:{Checkbox:io},emits:["loading","loadingDone","results"],data(){return{loading:!1,query:"",followingOnly:!0}},methods:{onInput:Z.debounce(function(){this.search(this.query)},2e3),search(e){if(!e){this.loading=!1;return}this.loading=!0,this.$emit("loading"),this.userIds=[],this.$store.dispatch("search",{q:e,resolve:!0,type:"accounts",following:this.followingOnly}).then(t=>{this.$emit("results",t.accounts.map(n=>n.id))}).finally(()=>{this.loading=!1,this.$emit("loadingDone")})}}},P6e={class:"ListsUserSearch"},L6e={class:"input-wrap"},O6e={class:"input-search"},R6e=["placeholder"],M6e={class:"input-wrap"};function N6e(e,t,n,s,r,o){const i=O("FAIcon"),a=O("Checkbox");return p(),b("div",P6e,[g("div",L6e,[g("div",O6e,[T(i,{class:"search-icon fa-scale-110 fa-old-padding",icon:"search"})]),at(g("input",{ref:"search","onUpdate:modelValue":t[0]||(t[0]=c=>e.query=c),class:"input",placeholder:e.$t("lists.search"),onInput:t[1]||(t[1]=(...c)=>e.onInput&&e.onInput(...c))},null,40,R6e),[[Nt,e.query]])]),g("div",M6e,[T(a,{modelValue:e.followingOnly,"onUpdate:modelValue":t[2]||(t[2]=c=>e.followingOnly=c),onChange:e.onInput},{default:X(()=>[de(w(e.$t("lists.following_only")),1)]),_:1},8,["modelValue","onChange"])])])}const F6e=ge(I6e,[["render",N6e]]);et.add(Ba,qa);const D6e={components:{BasicUserCard:Ad,UserAvatar:er,ListsUserSearch:F6e,TabSwitcher:lm,PanelLoading:fO},data(){return{title:"",titleDraft:"",membersUserIds:[],removedUserIds:new Set([]),searchUserIds:[],addedUserIds:new Set([]),searchLoading:!1,reallyDelete:!1}},created(){this.id&&(Fn().fetchList({listId:this.id}).then(()=>{this.title=this.findListTitle(this.id),this.titleDraft=this.title}),Fn().fetchListAccounts({listId:this.id}).then(()=>{this.membersUserIds=this.findListAccounts(this.id),this.membersUserIds.forEach(e=>{this.$store.dispatch("fetchUserIfMissing",e)})}))},computed:{id(){return this.$route.params.id},membersUsers(){return[...this.membersUserIds,...this.addedUserIds].map(e=>this.findUser(e)).filter(e=>e)},searchUsers(){return this.searchUserIds.map(e=>this.findUser(e)).filter(e=>e)},...mn({currentUser:e=>e.users.currentUser}),...sn(Fn,["findListTitle","findListAccounts"]),...bn(["findUser"])},methods:{onInput(){this.search(this.query)},toggleRemoveMember(e){this.removedUserIds.has(e.id)?(this.id&&this.addUser(e),this.removedUserIds.delete(e.id)):(this.id&&this.removeUser(e.id),this.removedUserIds.add(e.id))},toggleAddFromSearch(e){this.addedUserIds.has(e.id)?(this.id&&this.removeUser(e.id),this.addedUserIds.delete(e.id)):(this.id&&this.addUser(e),this.addedUserIds.add(e.id))},isRemoved(e){return this.removedUserIds.has(e.id)},isAdded(e){return this.addedUserIds.has(e.id)},addUser(e){Fn().addListAccount({accountId:e.id,listId:this.id})},removeUser(e){Fn().removeListAccount({accountId:e,listId:this.id})},onSearchLoading(){this.searchLoading=!0},onSearchLoadingDone(){this.searchLoading=!1},onSearchResults(e){this.searchLoading=!1,this.searchUserIds=e},updateListTitle(){Fn().setList({listId:this.id,title:this.titleDraft}).then(()=>{this.title=this.findListTitle(this.id)})},createList(){Fn().createList({title:this.titleDraft}).then(e=>Fn().setListAccounts({listId:e.id,accountIds:[...this.addedUserIds]}).then(()=>e.id)).then(e=>{this.$router.push({name:"lists-timeline",params:{id:e}})}).catch(e=>{Xe().pushGlobalNotice({messageKey:"lists.error",messageArgs:[e.message],level:"error"})})},deleteList(){Fn().deleteList({listId:this.id}),this.$router.push({name:"lists"})}}},U6e={class:"panel-default panel ListEdit"},j6e={ref:"header",class:"panel-heading list-edit-heading"},B6e={class:"title"},z6e={class:"panel-body"},q6e={class:"input-wrap"},H6e={for:"list-edit-title"},V6e=["label"],W6e={class:"users-list"},G6e=["onClick"],K6e=["label"],x6e={key:0,class:"loading"},Y6e={key:1,class:"users-list"},X6e={key:0},J6e=["onClick"],Z6e=["onClick"],Q6e={class:"panel-footer"};function eAe(e,t,n,s,r,o){const i=O("FAIcon"),a=O("i18n-t"),c=O("BasicUserCard"),u=O("ListsUserSearch"),f=O("PanelLoading"),h=O("tab-switcher");return p(),b("div",U6e,[g("div",j6e,[g("button",{class:"button-unstyled go-back-button",onClick:t[0]||(t[0]=(...v)=>e.$router.back&&e.$router.back(...v))},[T(i,{size:"lg",icon:"chevron-left"})]),g("div",B6e,[e.id?(p(),Y(a,{key:0,keypath:"lists.editing_list",scope:"global"},{listTitle:X(()=>[de(w(e.title),1)]),_:1})):(p(),Y(a,{key:1,keypath:"lists.creating_list",scope:"global"}))])],512),g("div",z6e,[g("div",q6e,[g("label",H6e,w(e.$t("lists.title")),1),t[7]||(t[7]=de(" "+w(" ")+" ",-1)),at(g("input",{id:"list-edit-title",ref:"title","onUpdate:modelValue":t[1]||(t[1]=v=>e.titleDraft=v),class:"input"},null,512),[[Nt,e.titleDraft]]),e.id?(p(),b("button",{key:0,class:"btn button-default follow-button",onClick:t[2]||(t[2]=(...v)=>e.updateListTitle&&e.updateListTitle(...v))},w(e.$t("lists.update_title")),1)):E("",!0)]),T(h,{class:"list-member-management","scrollable-tabs":!0},{default:X(()=>[e.id||e.addedUserIds.size>0?(p(),b("div",{key:0,label:e.$t("lists.manage_members"),class:"members-list"},[g("div",W6e,[(p(!0),b(Se,null,We(e.membersUsers,v=>(p(),b("div",{key:v.id,class:"member"},[T(c,{user:v},{default:X(()=>[g("button",{class:"btn button-default follow-button",onClick:y=>e.toggleRemoveMember(v)},w(e.isRemoved(v)?e.$t("general.undo"):e.$t("lists.remove_from_list")),9,G6e)]),_:2},1032,["user"])]))),128))])],8,V6e)):E("",!0),g("div",{class:"search-list",label:e.$t("lists.add_members")},[T(u,{onResults:e.onSearchResults,onLoading:e.onSearchLoading,onLoadingDone:e.onSearchLoadingDone},null,8,["onResults","onLoading","onLoadingDone"]),e.searchLoading?(p(),b("div",x6e,[T(f)])):(p(),b("div",Y6e,[(p(!0),b(Se,null,We(e.searchUsers,v=>(p(),b("div",{key:v.id,class:"member"},[T(c,{user:v},{default:X(()=>[e.membersUserIds.includes(v.id)?(p(),b("span",X6e,w(e.$t("lists.is_in_list")),1)):E("",!0),e.membersUserIds.includes(v.id)?(p(),b("button",{key:2,class:"btn button-default follow-button",onClick:y=>e.toggleRemoveMember(v)},w(e.isRemoved(v)?e.$t("general.undo"):e.$t("lists.remove_from_list")),9,Z6e)):(p(),b("button",{key:1,class:"btn button-default follow-button",onClick:y=>e.toggleAddFromSearch(v)},w(e.isAdded(v)?e.$t("general.undo"):e.$t("lists.add_to_list")),9,J6e))]),_:2},1032,["user"])]))),128))]))],8,K6e)]),_:1})]),g("div",Q6e,[t[8]||(t[8]=g("span",{class:"spacer"},null,-1)),e.id?e.reallyDelete?(p(),b(Se,{key:2},[de(w(e.$t("lists.really_delete"))+" ",1),g("button",{class:"btn button-default footer-button",onClick:t[5]||(t[5]=(...v)=>e.deleteList&&e.deleteList(...v))},w(e.$t("general.yes")),1),g("button",{class:"btn button-default footer-button",onClick:t[6]||(t[6]=v=>e.reallyDelete=!1)},w(e.$t("general.no")),1)],64)):(p(),b("button",{key:1,class:"btn button-default footer-button",onClick:t[4]||(t[4]=v=>e.reallyDelete=!0)},w(e.$t("lists.delete")),1)):(p(),b("button",{key:0,class:"btn button-default footer-button",onClick:t[3]||(t[3]=(...v)=>e.createList&&e.createList(...v))},w(e.$t("lists.create")),1))])])}const OA=ge(D6e,[["render",eAe]]),tAe={components:{Checkbox:io},props:{announcement:Object,disabled:Boolean}},nAe={class:"announcement-editor"},sAe=["placeholder","disabled"],rAe={class:"announcement-metadata"},oAe={for:"announcement-start-time"},iAe=["type","disabled"],aAe={class:"announcement-metadata"},lAe={for:"announcement-end-time"},cAe=["type","disabled"],uAe={class:"announcement-metadata"};function dAe(e,t,n,s,r,o){const i=O("Checkbox");return p(),b("div",nAe,[at(g("textarea",{ref:"textarea","onUpdate:modelValue":t[0]||(t[0]=a=>e.announcement.content=a),class:"input post-textarea",rows:"1",cols:"1",placeholder:e.$t("announcements.post_placeholder"),disabled:e.disabled},null,8,sAe),[[Nt,e.announcement.content]]),g("span",rAe,[g("label",oAe,w(e.$t("announcements.start_time_prompt")),1),at(g("input",{id:"announcement-start-time","onUpdate:modelValue":t[1]||(t[1]=a=>e.announcement.startsAt=a),class:"input",type:e.announcement.allDay?"date":"datetime-local",disabled:e.disabled},null,8,iAe),[[ku,e.announcement.startsAt]])]),g("span",aAe,[g("label",lAe,w(e.$t("announcements.end_time_prompt")),1),at(g("input",{id:"announcement-end-time","onUpdate:modelValue":t[2]||(t[2]=a=>e.announcement.endsAt=a),class:"input",type:e.announcement.allDay?"date":"datetime-local",disabled:e.disabled},null,8,cAe),[[ku,e.announcement.endsAt]])]),g("span",uAe,[T(i,{id:"announcement-all-day",modelValue:e.announcement.allDay,"onUpdate:modelValue":t[3]||(t[3]=a=>e.announcement.allDay=a),disabled:e.disabled},{default:X(()=>[de(w(e.$t("announcements.all_day_prompt")),1)]),_:1},8,["modelValue","disabled"])])])}const GO=ge(tAe,[["render",dAe]]),fAe={components:{AnnouncementEditor:GO,RichContent:Mr},data(){return{editing:!1,editedAnnouncement:{content:"",startsAt:void 0,endsAt:void 0,allDay:void 0},editError:""}},props:{announcement:Object},computed:{...mn({currentUser:e=>e.users.currentUser}),canEditAnnouncement(){return this.currentUser&&this.currentUser.privileges.includes("announcements_manage_announcements")},content(){return this.announcement.content},isRead(){return this.announcement.read},publishedAt(){const e=this.announcement.published_at;if(e)return this.formatTimeOrDate(e,Tr.internalToBrowserLocale(this.$i18n.locale))},startsAt(){const e=this.announcement.starts_at;if(e)return this.formatTimeOrDate(e,Tr.internalToBrowserLocale(this.$i18n.locale))},endsAt(){const e=this.announcement.ends_at;if(e)return this.formatTimeOrDate(e,Tr.internalToBrowserLocale(this.$i18n.locale))},inactive(){return this.announcement.inactive}},methods:{markAsRead(){if(!this.isRead)return ms().markAnnouncementAsRead(this.announcement.id)},deleteAnnouncement(){return ms().deleteAnnouncement(this.announcement.id)},formatTimeOrDate(e,t){const n=new Date(e);return this.announcement.all_day?n.toLocaleDateString(t):n.toLocaleString(t)},enterEditMode(){this.editedAnnouncement.content=this.announcement.pleroma.raw_content,this.editedAnnouncement.startsAt=this.announcement.starts_at,this.editedAnnouncement.endsAt=this.announcement.ends_at,this.editedAnnouncement.allDay=this.announcement.all_day,this.editing=!0},submitEdit(){ms().editAnnouncement({id:this.announcement.id,...this.editedAnnouncement}).then(()=>{this.editing=!1}).catch(e=>{this.editError=e.error})},cancelEdit(){this.editing=!1},clearError(){this.editError=void 0}}},hAe={class:"announcement"},pAe={class:"heading"},mAe={class:"body"},gAe={class:"footer"},vAe={key:0,class:"times"},bAe={key:0},yAe={key:1},_Ae={key:2},wAe={key:1,class:"actions"},SAe=["disabled","title"],$Ae={key:2,class:"actions"},kAe={key:0,class:"alert error"};function CAe(e,t,n,s,r,o){const i=O("rich-content"),a=O("announcement-editor"),c=O("FAIcon");return p(),b("div",hAe,[g("div",pAe,[g("h4",null,w(e.$t("announcements.title")),1)]),g("div",mAe,[e.editing?(p(),Y(a,{key:1,announcement:e.editedAnnouncement},null,8,["announcement"])):(p(),Y(i,{key:0,html:e.content,emoji:e.announcement.emojis,"handle-links":!0},null,8,["html","emoji"]))]),g("div",gAe,[e.editing?E("",!0):(p(),b("div",vAe,[e.publishedAt?(p(),b("span",bAe,w(e.$t("announcements.published_time_display",{time:e.publishedAt})),1)):E("",!0),e.startsAt?(p(),b("span",yAe,w(e.$t("announcements.start_time_display",{time:e.startsAt})),1)):E("",!0),e.endsAt?(p(),b("span",_Ae,w(e.$t("announcements.end_time_display",{time:e.endsAt})),1)):E("",!0)])),e.editing?(p(),b("div",$Ae,[g("button",{class:"btn button-default",onClick:t[3]||(t[3]=(...u)=>e.submitEdit&&e.submitEdit(...u))},w(e.$t("announcements.submit_edit_action")),1),g("button",{class:"btn button-default",onClick:t[4]||(t[4]=(...u)=>e.cancelEdit&&e.cancelEdit(...u))},w(e.$t("announcements.cancel_edit_action")),1),e.editing&&e.editError?(p(),b("div",kAe,[de(w(e.$t("announcements.edit_error",{error:e.error}))+" ",1),g("button",{class:"button-unstyled",onClick:t[5]||(t[5]=(...u)=>e.clearError&&e.clearError(...u))},[T(c,{class:"fa-scale-110 fa-old-padding",icon:"times",title:e.$t("announcements.close_error")},null,8,["title"])])])):E("",!0)])):(p(),b("div",wAe,[e.currentUser?(p(),b("button",{key:0,class:he(["btn button-default",{toggled:e.isRead}]),disabled:e.inactive,title:e.inactive?e.$t("announcements.inactive_message"):"",onClick:t[0]||(t[0]=(...u)=>e.markAsRead&&e.markAsRead(...u))},w(e.$t("announcements.mark_as_read_action")),11,SAe)):E("",!0),e.canEditAnnouncement?(p(),b("button",{key:1,class:"btn button-default",onClick:t[1]||(t[1]=(...u)=>e.enterEditMode&&e.enterEditMode(...u))},w(e.$t("announcements.edit_action")),1)):E("",!0),e.canEditAnnouncement?(p(),b("button",{key:2,class:"btn button-default",onClick:t[2]||(t[2]=(...u)=>e.deleteAnnouncement&&e.deleteAnnouncement(...u))},w(e.$t("announcements.delete_action")),1)):E("",!0)]))])])}const TAe=ge(fAe,[["render",CAe]]),AAe={components:{Announcement:TAe,AnnouncementEditor:GO},data(){return{newAnnouncement:{content:"",startsAt:void 0,endsAt:void 0,allDay:!1},posting:!1,error:void 0}},mounted(){ms().fetchAnnouncements()},computed:{...mn({currentUser:e=>e.users.currentUser}),announcements(){return ms().announcements},canPostAnnouncement(){return this.currentUser&&this.currentUser.privileges.includes("announcements_manage_announcements")}},methods:{postAnnouncement(){this.posting=!0,ms().postAnnouncement(this.newAnnouncement).then(()=>{this.newAnnouncement.content="",this.startsAt=void 0,this.endsAt=void 0}).catch(e=>{this.error=e.error}).finally(()=>{this.posting=!1})},clearError(){this.error=void 0}}},EAe={class:"panel panel-default announcements-page"},IAe={class:"panel-heading"},PAe={class:"title"},LAe={class:"panel-body"},OAe={key:0},RAe={class:"post-form"},MAe={class:"heading"},NAe={class:"body"},FAe={class:"footer"},DAe=["disabled"],UAe={key:0,class:"alert error"};function jAe(e,t,n,s,r,o){const i=O("announcement-editor"),a=O("FAIcon"),c=O("announcement");return p(),b("div",EAe,[g("div",IAe,[g("h1",PAe,w(e.$t("announcements.page_header")),1)]),g("div",LAe,[e.canPostAnnouncement?(p(),b("section",OAe,[g("div",RAe,[g("div",MAe,[g("h4",null,w(e.$t("announcements.post_form_header")),1)]),g("div",NAe,[T(i,{announcement:e.newAnnouncement,disabled:e.posting},null,8,["announcement","disabled"])]),g("div",FAe,[g("button",{class:"btn button-default post-button",disabled:e.posting,onClick:t[0]||(t[0]=Te((...u)=>e.postAnnouncement&&e.postAnnouncement(...u),["prevent"]))},w(e.$t("announcements.post_action")),9,DAe),e.error?(p(),b("div",UAe,[de(w(e.$t("announcements.post_error",{error:e.error}))+" ",1),g("button",{class:"button-unstyled",onClick:t[1]||(t[1]=(...u)=>e.clearError&&e.clearError(...u))},[T(a,{class:"fa-scale-110 fa-old-padding",icon:"times",title:e.$t("announcements.close_error")},null,8,["title"])])])):E("",!0)])])])):E("",!0),(p(!0),b(Se,null,We(e.announcements,u=>(p(),b("section",{key:u.id},[T(c,{announcement:u},null,8,["announcement"])]))),128))])])}const BAe=ge(AAe,[["render",jAe]]),zAe={created(){this.$store.commit("clearTimeline",{timeline:"quotes"}),this.$store.dispatch("startFetchingTimeline",{timeline:"quotes",statusId:this.statusId})},components:{Timeline:lo},computed:{statusId(){return this.$route.params.id},timeline(){return this.$store.state.statuses.timelines.quotes}},watch:{statusId(){this.$store.commit("clearTimeline",{timeline:"quotes"}),this.$store.dispatch("startFetchingTimeline",{timeline:"quotes",statusId:this.statusId})}},unmounted(){this.$store.dispatch("stopFetchingTimeline","quotes")}};function qAe(e,t,n,s,r,o){const i=O("Timeline");return p(),Y(i,{title:e.$t("nav.quotes"),timeline:e.timeline,"timeline-name":"quotes","status-id":e.statusId},null,8,["title","timeline","status-id"])}const HAe=ge(zAe,[["render",qAe]]);et.add(Ip);const VAe={components:{PostStatusForm:lc,EditStatusForm:FO,ConfirmModal:Nr,StatusContent:Ka,Gallery:em},props:{draft:{type:Object,required:!0}},data(){return{referenceDraft:Z.cloneDeep(this.draft),editing:!1,showingConfirmDialog:!1}},computed:{relAttrs(){return this.draft.type==="edit"?{statusId:this.draft.refId}:this.draft.type==="reply"?{replyTo:this.draft.refId}:{}},safeToSave(){var e;return this.draft.status||((e=this.draft.files)==null?void 0:e.length)||this.draft.hasPoll},postStatusFormProps(){return{draftId:this.draft.id,...this.relAttrs}},refStatus(){return this.draft.refId?this.$store.state.statuses.allStatusesObject[this.draft.refId]:void 0},localCollapseSubjectDefault(){return this.$store.getters.mergedConfig.collapseMessageWithSubject},nsfwClickthrough(){return!(!this.draft.nsfw||this.draft.summary&&this.localCollapseSubjectDefault)}},watch:{editing(e){e||(this.safeToSave?this.$store.dispatch("addOrSaveDraft",{draft:this.draft}):this.$store.dispatch("addOrSaveDraft",{draft:this.referenceDraft}))}},methods:{toggleEditing(){this.editing=!this.editing},abandon(){this.showingConfirmDialog=!0},doAbandon(){this.$store.dispatch("abandonDraft",{id:this.draft.id}).then(()=>{this.hideConfirmDialog()})},hideConfirmDialog(){this.showingConfirmDialog=!1}}},WAe={class:"Draft"},GAe={key:0,class:"status-content"},KAe={class:"status-preview"},xAe={class:"status_content"},YAe={key:0},XAe={key:1},JAe={key:2,class:"faint"},ZAe=["title"],QAe={class:"poll-indicator"},e8e={key:1},t8e={class:"actions"},n8e=["aria-expanded"];function s8e(e,t,n,s,r,o){var S;const i=O("router-link"),a=O("i18n-t"),c=O("StatusContent"),u=O("gallery"),f=O("FAIcon"),h=O("PostStatusForm"),v=O("EditStatusForm"),y=O("confirm-modal");return p(),b("article",WAe,[e.editing?E("",!0):(p(),b("div",GAe,[g("div",null,[e.draft.type==="reply"||e.draft.type==="edit"?(p(),Y(a,{key:0,tag:"span",keypath:e.draft.type==="reply"?"drafts.replying":"drafts.editing"},{statusLink:X(()=>[T(i,{class:"faint-link",to:{name:"conversation",params:{id:e.draft.refId}}},{default:X(()=>[de(w(e.refStatus?e.refStatus.external_url:e.$t("drafts.unavailable")),1)]),_:1},8,["to"])]),_:1},8,["keypath"])):E("",!0),e.draft.refId&&e.refStatus?(p(),Y(c,{key:1,class:"status-content",status:e.refStatus,compact:!0},null,8,["status"])):E("",!0)]),g("div",KAe,[g("span",xAe,[e.draft.spoilerText?(p(),b("p",YAe,[g("i",null,w(e.draft.spoilerText)+": ",1)])):E("",!0),e.draft.status?(p(),b("p",XAe,w(e.draft.status),1)):(p(),b("p",JAe,w(e.$t("drafts.empty")),1))]),((S=e.draft.files)==null?void 0:S.length)!==0?(p(),Y(u,{key:0,class:"attachments media-body",compact:!0,nsfw:e.nsfwClickthrough,attachments:e.draft.files,limit:1,size:"small",onPlay:t[0]||(t[0]=k=>e.$emit("mediaplay",e.attachment.id)),onPause:t[1]||(t[1]=k=>e.$emit("mediapause",e.attachment.id))},null,8,["nsfw","attachments"])):E("",!0),e.draft.poll.options?(p(),b("div",{key:1,class:"poll-indicator-container",title:e.$t("drafts.poll_tooltip")},[g("div",QAe,[T(f,{icon:"poll-h",size:"3x"})])],8,ZAe)):E("",!0)])])),e.editing?(p(),b("div",e8e,[e.draft.type!=="edit"?(p(),Y(h,An({key:0,"hide-draft":!0},e.postStatusFormProps),null,16)):(p(),Y(v,{key:1,"hide-draft":!0,params:e.postStatusFormProps},null,8,["params"]))])):E("",!0),(p(),Y(Yn,{to:"#modal"},[e.showingConfirmDialog?(p(),Y(y,{key:0,title:e.$t("drafts.abandon_confirm_title"),"confirm-text":e.$t("drafts.abandon_confirm_accept_button"),"cancel-text":e.$t("drafts.abandon_confirm_cancel_button"),onAccepted:e.doAbandon,onCancelled:e.hideConfirmDialog},{default:X(()=>[de(w(e.$t("drafts.abandon_confirm")),1)]),_:1},8,["title","confirm-text","cancel-text","onAccepted","onCancelled"])):E("",!0)])),g("div",t8e,[g("button",{class:"btn button-default","aria-expanded":e.editing,onClick:t[2]||(t[2]=Te((...k)=>e.toggleEditing&&e.toggleEditing(...k),["prevent","stop"]))},w(e.editing?e.$t("drafts.save"):e.$t("drafts.continue")),9,n8e),g("button",{class:"btn button-default",onClick:t[3]||(t[3]=Te((...k)=>e.abandon&&e.abandon(...k),["prevent","stop"]))},w(e.$t("drafts.abandon")),1)])])}const r8e=ge(VAe,[["render",s8e]]),o8e={components:{Draft:r8e,List:Td},computed:{drafts(){return this.$store.getters.draftsArray}}},i8e={class:"Drafts"},a8e={class:"panel panel-default"},l8e={class:"panel-heading -sticky"},c8e={class:"title"},u8e={class:"panel-body"},d8e={key:0,class:"empty-drafs-list-alert"};function f8e(e,t,n,s,r,o){const i=O("Draft"),a=O("List");return p(),b("div",i8e,[g("div",a8e,[g("div",l8e,[g("div",c8e,w(e.$t("drafts.drafts")),1)]),g("div",u8e,[e.drafts.length===0?(p(),b("div",d8e,w(e.$t("drafts.no_drafts")),1)):(p(),Y(a,{key:1,items:e.drafts,"non-interactive":!0},{item:X(({item:c})=>[T(i,{class:"draft",draft:c},null,8,["draft"])]),_:1},8,["items"]))])])])}const h8e=ge(o8e,[["render",f8e]]);et.add(bd);const p8e={props:["folder","allBookmarks"],computed:{firstLetter(){return this.folder?this.folder.name[0]:null}}},m8e={key:0,class:"bookmark-folder-card"},g8e={class:"icon"},v8e={key:1,class:"bookmark-folder-card"},b8e=["src","alt","title"],y8e={key:1,class:"iconEmoji"},_8e={key:2,class:"icon iconLetter fa-scale-110"};function w8e(e,t,n,s,r,o){const i=O("FAIcon"),a=O("router-link");return e.allBookmarks?(p(),b("div",m8e,[T(a,{to:{name:"bookmarks"},class:"bookmark-folder-name"},{default:X(()=>[g("span",g8e,[T(i,{"fixed-width":"",class:"fa-scale-110 menu-icon",icon:"bookmark"})]),de(w(e.$t("nav.all_bookmarks")),1)]),_:1})])):(p(),b("div",v8e,[T(a,{to:{name:"bookmark-folder",params:{id:e.folder.id}},class:"bookmark-folder-name"},{default:X(()=>[e.folder.emoji_url?(p(),b("img",{key:0,class:"iconEmoji iconEmoji-image",src:e.folder.emoji_url,alt:e.folder.emoji,title:e.folder.emoji},null,8,b8e)):e.folder.emoji?(p(),b("span",y8e,[g("span",null,w(e.folder.emoji),1)])):e.firstLetter?(p(),b("span",_8e,w(e.firstLetter),1)):E("",!0),de(w(e.folder.name),1)]),_:1},8,["to"]),T(a,{to:{name:"bookmark-folder-edit",params:{id:e.folder.id}},class:"button-folder-edit"},{default:X(()=>[T(i,{class:"fa-scale-110 fa-old-padding",icon:"ellipsis-h"})]),_:1},8,["to"])]))}const S8e=ge(p8e,[["render",w8e]]),$8e={data(){return{isNew:!1}},components:{BookmarkFolderCard:S8e},computed:{bookmarkFolders(){return no().allFolders}},methods:{cancelNewFolder(){this.isNew=!1},newFolder(){this.isNew=!0}}},k8e={class:"Bookmark-folders panel panel-default"},C8e={class:"panel-heading"},T8e={class:"title"},A8e={class:"panel-body"};function E8e(e,t,n,s,r,o){const i=O("router-link"),a=O("BookmarkFolderCard");return p(),b("div",k8e,[g("div",C8e,[g("h1",T8e,w(e.$t("nav.bookmark_folders")),1),T(i,{to:{name:"bookmark-folder-new"},class:"button-default btn new-folder-button"},{default:X(()=>[de(w(e.$t("bookmark_folders.new")),1)]),_:1})]),g("div",A8e,[T(a,{"all-bookmarks":!0,class:"list-item"}),(p(!0),b(Se,null,We(e.bookmarkFolders.slice().reverse(),c=>(p(),Y(a,{key:c,folder:c,class:"list-item"},null,8,["folder"]))),128))])])}const I8e=ge($8e,[["render",E8e]]),P8e={data(){return{name:"",nameDraft:"",emoji:"",emojiUrl:null,emojiDraft:"",emojiUrlDraft:null,emojiPickerExpanded:!1,reallyDelete:!1}},components:{EmojiPicker:j2},created(){if(!this.id)return;const e=this.$store.state.users.currentUser.credentials;Ln.fetchBookmarkFolders({credentials:e}).then(t=>{const n=t.find(s=>s.id===this.id);n&&(this.nameDraft=this.name=n.name,this.emojiDraft=this.emoji=n.emoji,this.emojiUrlDraft=this.emojiUrl=n.emoji_url)})},computed:{id(){return this.$route.params.id}},methods:{selectEmoji(e){this.emojiDraft=e.insertion,this.emojiUrlDraft=e.insertionUrl},showEmojiPicker(){this.emojiPickerExpanded||this.$refs.picker.showPicker()},onShowPicker(){this.emojiPickerExpanded=!0},onClosePicker(){this.emojiPickerExpanded=!1},updateFolder(){no().updateBookmarkFolder({folderId:this.id,name:this.nameDraft,emoji:this.emojiDraft}).then(()=>{this.$router.push({name:"bookmark-folders"})})},createFolder(){no().createBookmarkFolder({name:this.nameDraft,emoji:this.emojiDraft}).then(()=>{this.$router.push({name:"bookmark-folders"})}).catch(e=>{Xe().pushGlobalNotice({messageKey:"bookmark_folders.error",messageArgs:[e.message],level:"error"})})},deleteFolder(){no().deleteBookmarkFolder({folderId:this.id}),this.$router.push({name:"bookmark-folders"})}}},L8e={class:"panel-default panel BookmarkFolderEdit"},O8e={ref:"header",class:"panel-heading folder-edit-heading"},R8e={class:"title"},M8e={class:"panel-body"},N8e={class:"input-wrap"},F8e={for:"folder-edit-title"},D8e=["title"],U8e=["src","alt","title"],j8e={key:1,class:"iconEmoji"},B8e={class:"input-wrap"},z8e={for:"folder-edit-title"},q8e={class:"panel-footer"},H8e={key:3};function V8e(e,t,n,s,r,o){const i=O("FAIcon"),a=O("i18n-t"),c=O("EmojiPicker");return p(),b("div",L8e,[g("div",O8e,[g("button",{class:"button-unstyled go-back-button",onClick:t[0]||(t[0]=(...u)=>e.$router.back&&e.$router.back(...u))},[T(i,{size:"lg",icon:"chevron-left"})]),g("h1",R8e,[e.id?(p(),Y(a,{key:0,keypath:"bookmark_folders.editing_folder",scope:"global"},{folderName:X(()=>[de(w(e.name),1)]),_:1})):(p(),Y(a,{key:1,keypath:"bookmark_folders.creating_folder",scope:"global"}))])],512),g("div",M8e,[g("div",N8e,[g("label",F8e,w(e.$t("bookmark_folders.emoji")),1),g("button",{class:"input input-emoji",title:e.$t("bookmark_folder.emoji_pick"),onClick:t[1]||(t[1]=(...u)=>e.showEmojiPicker&&e.showEmojiPicker(...u))},[e.emojiUrlDraft?(p(),b("img",{key:0,class:"iconEmoji iconEmoji-image",src:e.emojiUrlDraft,alt:e.emojiDraft,title:e.emojiDraft},null,8,U8e)):e.emojiDraft?(p(),b("span",j8e,[g("span",null,w(e.emojiDraft),1)])):E("",!0)],8,D8e),T(c,{ref:"picker",class:"emoji-picker-panel",onEmoji:e.selectEmoji,onShow:e.onShowPicker,onClose:e.onClosePicker},null,8,["onEmoji","onShow","onClose"])]),g("div",B8e,[g("label",z8e,w(e.$t("bookmark_folders.name")),1),at(g("input",{id:"folder-edit-title",ref:"name","onUpdate:modelValue":t[2]||(t[2]=u=>e.nameDraft=u),class:"input"},null,512),[[Nt,e.nameDraft]])])]),g("div",q8e,[t[8]||(t[8]=g("span",{class:"spacer"},null,-1)),e.id?e.reallyDelete?(p(),b(Se,{key:2},[de(w(e.$t("bookmark_folders.really_delete"))+" ",1),g("button",{class:"btn button-default footer-button",onClick:t[5]||(t[5]=(...u)=>e.deleteFolder&&e.deleteFolder(...u))},w(e.$t("general.yes")),1),g("button",{class:"btn button-default footer-button",onClick:t[6]||(t[6]=u=>e.reallyDelete=!1)},w(e.$t("general.no")),1)],64)):(p(),b("button",{key:1,class:"btn button-default footer-button",onClick:t[4]||(t[4]=u=>e.reallyDelete=!0)},w(e.$t("bookmark_folders.delete")),1)):(p(),b("button",{key:0,class:"btn button-default footer-button",onClick:t[3]||(t[3]=(...u)=>e.createFolder&&e.createFolder(...u))},w(e.$t("bookmark_folders.create")),1)),e.id&&!e.reallyDelete?(p(),b("div",H8e,[g("button",{class:"btn button-default follow-button",onClick:t[7]||(t[7]=(...u)=>e.updateFolder&&e.updateFolder(...u))},w(e.$t("bookmark_folders.update_folder")),1)])):E("",!0)])])}const RA=ge(P8e,[["render",V8e]]),W8e=e=>{const t=(s,r,o)=>{e.state.users.currentUser?o():o(e.state.instance.redirectRootNoLogin||"/main/all")};let n=[{name:"root",path:"/",redirect:()=>(e.state.users.currentUser?e.state.instance.redirectRootLogin:e.state.instance.redirectRootNoLogin)||"/main/all"},{name:"public-external-timeline",path:"/main/all",component:FSe},{name:"public-timeline",path:"/main/public",component:PSe},{name:"friends",path:"/main/friends",component:jSe,beforeEnter:t},{name:"tag-timeline",path:"/tag/:tag",component:qSe},{name:"bookmarks",path:"/bookmarks",component:dA},{name:"bubble",path:"/bubble",component:RSe},{name:"conversation",path:"/notice/:id",component:KSe,meta:{dontScroll:!0}},{name:"quotes",path:"/notice/:id/quotes",component:HAe},{name:"remote-user-profile-acct",path:"/remote-users/:_(@)?:username([^/@]+)@:hostname([^/@]+)",component:LA,beforeEnter:t},{name:"remote-user-profile",path:"/remote-users/:hostname/:username",component:LA,beforeEnter:t},{name:"external-user-profile",path:"/users/$:id",component:v0},{name:"interactions",path:"/users/:username/interactions",component:i$e,beforeEnter:t},{name:"dms",path:"/users/:username/dms",component:c$e,beforeEnter:t},{name:"registration",path:"/registration",component:TA},{name:"password-reset",path:"/password-reset",component:B4e,props:!0},{name:"registration-token",path:"/registration/:token",component:TA},{name:"friend-requests",path:"/friend-requests",component:J4e,beforeEnter:t},{name:"notifications",path:"/:username/notifications",component:im,props:()=>({disableTeleport:!0}),beforeEnter:t},{name:"login",path:"/login",component:HL},{name:"shout-panel",path:"/shout-panel",component:IO,props:()=>({floating:!1})},{name:"oauth-callback",path:"/oauth-callback",component:eTe,props:s=>({code:s.query.code})},{name:"search",path:"/search",component:O3e,props:s=>({query:s.query.query})},{name:"who-to-follow",path:"/who-to-follow",component:aTe,beforeEnter:t},{name:"about",path:"/about",component:i6e},{name:"announcements",path:"/announcements",component:BAe},{name:"drafts",path:"/drafts",component:h8e},{name:"user-profile",path:"/users/:name",component:v0},{name:"legacy-user-profile",path:"/:name",component:v0},{name:"lists",path:"/lists",component:C6e},{name:"lists-timeline",path:"/lists/:id",component:E6e},{name:"lists-edit",path:"/lists/:id/edit",component:OA},{name:"lists-new",path:"/lists/new",component:OA},{name:"edit-navigation",path:"/nav-edit",component:TO,props:()=>({forceExpand:!0,forceEditMode:!0}),beforeEnter:t},{name:"bookmark-folders",path:"/bookmark_folders",component:I8e},{name:"bookmark-folder-new",path:"/bookmarks/new-folder",component:RA},{name:"bookmark-folder",path:"/bookmarks/:id",component:dA},{name:"bookmark-folder-edit",path:"/bookmarks/:id/edit",component:RA}];return e.state.instance.pleromaChatMessagesAvailable&&(n=n.concat([{name:"chat",path:"/users/:username/chats/:recipient_id",component:$ke,meta:{dontScroll:!1},beforeEnter:t},{name:"chats",path:"/users/:username/chats",component:K$e,meta:{dontScroll:!1},beforeEnter:t}])),n};function G8e(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}else return Array.from(e)}var rw=!1;if(typeof window<"u"){var MA={get passive(){rw=!0}};window.addEventListener("testPassive",null,MA),window.removeEventListener("testPassive",null,MA)}var KO=typeof window<"u"&&window.navigator&&window.navigator.platform&&(/iP(ad|hone|od)/.test(window.navigator.platform)||window.navigator.platform==="MacIntel"&&window.navigator.maxTouchPoints>1),Li=[],Yh=!1,xO=-1,ju=void 0,Bu=void 0,YO=function(t){return Li.some(function(n){return!!(n.options.allowTouchMove&&n.options.allowTouchMove(t))})},Xh=function(t){var n=t||window.event;return YO(n.target)||n.touches.length>1?!0:(n.preventDefault&&n.preventDefault(),!1)},K8e=function(t){if(Bu===void 0){var n=!!t&&t.reserveScrollBarGap===!0,s=window.innerWidth-document.documentElement.clientWidth;n&&s>0&&(Bu=document.body.style.paddingRight,document.body.style.paddingRight=s+"px")}ju===void 0&&(ju=document.body.style.overflow,document.body.style.overflow="hidden")},x8e=function(){Bu!==void 0&&(document.body.style.paddingRight=Bu,Bu=void 0),ju!==void 0&&(document.body.style.overflow=ju,ju=void 0)},Y8e=function(t){return t?t.scrollHeight-t.scrollTop<=t.clientHeight:!1},X8e=function(t,n){var s=t.targetTouches[0].clientY-xO;return YO(t.target)?!1:n&&n.scrollTop===0&&s>0||Y8e(n)&&s<0?Xh(t):(t.stopPropagation(),!0)},J8e=function(t,n){if(!t){console.error("disableBodyScroll unsuccessful - targetElement must be provided when calling disableBodyScroll on IOS devices.");return}if(!Li.some(function(r){return r.targetElement===t})){var s={targetElement:t,options:n||{}};Li=[].concat(G8e(Li),[s]),KO?(t.ontouchstart=function(r){r.targetTouches.length===1&&(xO=r.targetTouches[0].clientY)},t.ontouchmove=function(r){r.targetTouches.length===1&&X8e(r,t)},Yh||(document.addEventListener("touchmove",Xh,rw?{passive:!1}:void 0),Yh=!0)):K8e(n)}},Z8e=function(t){if(!t){console.error("enableBodyScroll unsuccessful - targetElement must be provided when calling enableBodyScroll on IOS devices.");return}Li=Li.filter(function(n){return n.targetElement!==t}),KO?(t.ontouchstart=null,t.ontouchmove=null,Yh&&Li.length===0&&(document.removeEventListener("touchmove",Xh,rw?{passive:!1}:void 0),Yh=!1)):Li.length||x8e()};let Ca,Ta;const Jh=new Set([]),NA=e=>{const t=window.innerWidth-document.documentElement.clientWidth;J8e(e,{reserveScrollBarGap:!0}),Jh.add(e),setTimeout(()=>{if(Jh.size<=1){if(Ca===void 0){const n=document.getElementById("nav");Ca=window.getComputedStyle(n).getPropertyValue("padding-right"),n.style.paddingRight=Ca?`calc(${Ca} + ${t}px)`:`${t}px`}if(Ta===void 0){const n=document.getElementById("app_bg_wrapper");Ta=window.getComputedStyle(n).getPropertyValue("right"),n.style.right=Ta?`calc(${Ta} + ${t}px)`:`${t}px`}document.body.classList.add("scroll-locked")}})},FA=e=>{Jh.delete(e),setTimeout(()=>{Jh.size===0&&(Ca!==void 0&&(document.getElementById("nav").style.paddingRight=Ca,Ca=void 0),Ta!==void 0&&(document.getElementById("app_bg_wrapper").style.right=Ta,Ta=void 0),document.body.classList.remove("scroll-locked"))}),Z8e(e)},Q8e={mounted:(e,t)=>{t.value&&NA(e)},updated:(e,t)=>{t.oldValue!==t.value&&(t.value?NA(e):FA(e))},unmounted:e=>{FA(e)}},eEe=e=>{e.directive("body-scroll-lock",Q8e)};B5.autoAddCss=!1;let T0=null;const tEe=()=>document.getElementById("initial-results")?(T0||(T0=JSON.parse(document.getElementById("initial-results").textContent)),T0):null,nEe=e=>{const t=atob(e),n=Uint8Array.from([...t].map(r=>r.charCodeAt(0)));return new TextDecoder().decode(n)},Zh=async e=>{const t=tEe();if(!t||!t[e])return window.fetch(e);const n=nEe(t[e]),s=JSON.parse(n);return{ok:!0,json:()=>s,text:()=>s}},sEe=async({store:e})=>{var t,n;try{const s=await Zh("/api/v1/instance");if(s.ok){const r=await s.json(),o=r.max_toot_chars,i=r.pleroma.vapid_public_key;e.dispatch("setInstanceOption",{name:"pleromaExtensionsAvailable",value:r.pleroma}),e.dispatch("setInstanceOption",{name:"textlimit",value:o}),e.dispatch("setInstanceOption",{name:"accountApprovalRequired",value:r.approval_required}),e.dispatch("setInstanceOption",{name:"birthdayRequired",value:!!((t=r.pleroma)!=null&&t.metadata.birthday_required)}),e.dispatch("setInstanceOption",{name:"birthdayMinAge",value:((n=r.pleroma)==null?void 0:n.metadata.birthday_min_age)||0}),i&&e.dispatch("setInstanceOption",{name:"vapidPublicKey",value:i})}else throw s}catch(s){console.error("Could not load instance config, potentially fatal"),console.error(s)}},rEe=async()=>{try{const e=await window.fetch("/api/pleroma/frontend_configurations");if(e.ok)return(await e.json()).pleroma_fe;throw e}catch(e){console.error("Could not load backend-provided frontend config, potentially fatal"),console.error(e)}},oEe=async()=>{try{const e=await window.fetch("/static/config.json");if(e.ok)return e.json();throw e}catch(e){return console.warn("Failed to load static/config.json, continuing without it."),console.warn(e),{}}},iEe=async({apiConfig:e,staticConfig:t,store:n})=>{const s=window.___pleromafe_dev_overrides||{},r=window.___pleromafe_mode.NODE_ENV;let o={};s.staticConfigPreference&&r==="development"?(console.warn("OVERRIDING API CONFIG WITH STATIC CONFIG"),o=Object.assign({},e,t)):o=Object.assign({},t,e);const i=a=>{n.dispatch("setInstanceOption",{name:a,value:o[a]})};i("theme"),i("style"),i("palette"),i("embeddedToS"),i("nsfwCensorImage"),i("background"),i("hidePostStats"),i("hideBotIndication"),i("hideUserStats"),i("hideFilteredStatuses"),i("logo"),n.dispatch("setInstanceOption",{name:"logoMask",value:typeof o.logoMask>"u"?!0:o.logoMask}),n.dispatch("setInstanceOption",{name:"logoMargin",value:typeof o.logoMargin>"u"?0:o.logoMargin}),i("logoLeft"),Yo().setInitialStrategy(o.loginMethod),i("redirectRootNoLogin"),i("redirectRootLogin"),i("showInstanceSpecificPanel"),i("minimalScopesMode"),i("hideMutedPosts"),i("collapseMessageWithSubject"),i("scopeCopy"),i("subjectLineBehavior"),i("postContentType"),i("alwaysShowSubjectInput"),i("showFeaturesPanel"),i("hideSitename"),i("sidebarRight")},aEe=async({store:e})=>{try{const t=await window.fetch("/static/terms-of-service.html");if(t.ok){const n=await t.text();e.dispatch("setInstanceOption",{name:"tos",value:n})}else throw t}catch(t){console.warn(`Can't load TOS
`,t)}},lEe=async({store:e})=>{try{const t=await Zh("/instance/panel.html");if(t.ok){const n=await t.text();e.dispatch("setInstanceOption",{name:"instanceSpecificPanelContent",value:n})}else throw t}catch(t){console.warn(`Can't load instance panel
`,t)}},cEe=async({store:e})=>{try{const t=await window.fetch("/static/stickers.json");if(t.ok){const n=await t.json(),s=(await Promise.all(Object.entries(n).map(async([r,o])=>{const i=await window.fetch(o+"pack.json");let a={};return i.ok&&(a=await i.json()),{pack:r,path:o,meta:a}}))).sort((r,o)=>r.meta.title.localeCompare(o.meta.title));e.dispatch("setInstanceOption",{name:"stickers",value:s})}else throw t}catch(t){console.warn(`Can't load stickers
`,t)}},uEe=async({store:e})=>{const t=Ar();t.userToken&&e.commit("setBackendInteractor",Ph(t.getToken))},dEe=({store:e,accounts:t})=>{const n=t.map(s=>s.split("/").pop());e.dispatch("setInstanceOption",{name:"staffAccounts",value:n})},fEe=async({store:e})=>{try{let t=await Zh("/nodeinfo/2.1.json");if(t.ok||(t=await Zh("/nodeinfo/2.0.json")),t.ok){const n=await t.json(),s=n.metadata,r=s.features;e.dispatch("setInstanceOption",{name:"name",value:s.nodeName}),e.dispatch("setInstanceOption",{name:"registrationOpen",value:n.openRegistrations}),e.dispatch("setInstanceOption",{name:"mediaProxyAvailable",value:r.includes("media_proxy")}),e.dispatch("setInstanceOption",{name:"safeDM",value:r.includes("safe_dm_mentions")}),e.dispatch("setInstanceOption",{name:"shoutAvailable",value:r.includes("chat")}),e.dispatch("setInstanceOption",{name:"pleromaChatMessagesAvailable",value:r.includes("pleroma_chat_messages")}),e.dispatch("setInstanceOption",{name:"pleromaCustomEmojiReactionsAvailable",value:r.includes("pleroma_custom_emoji_reactions")||r.includes("custom_emoji_reactions")}),e.dispatch("setInstanceOption",{name:"pleromaBookmarkFoldersAvailable",value:r.includes("pleroma:bookmark_folders")}),e.dispatch("setInstanceOption",{name:"gopherAvailable",value:r.includes("gopher")}),e.dispatch("setInstanceOption",{name:"pollsAvailable",value:r.includes("polls")}),e.dispatch("setInstanceOption",{name:"editingAvailable",value:r.includes("editing")}),e.dispatch("setInstanceOption",{name:"pollLimits",value:s.pollLimits}),e.dispatch("setInstanceOption",{name:"mailerEnabled",value:s.mailerEnabled}),e.dispatch("setInstanceOption",{name:"quotingAvailable",value:r.includes("quote_posting")}),e.dispatch("setInstanceOption",{name:"groupActorAvailable",value:r.includes("pleroma:group_actors")}),e.dispatch("setInstanceOption",{name:"blockExpiration",value:r.includes("pleroma:block_expiration")}),e.dispatch("setInstanceOption",{name:"localBubbleInstances",value:s.localBubbleInstances??[]});const o=s.uploadLimits;e.dispatch("setInstanceOption",{name:"uploadlimit",value:parseInt(o.general)}),e.dispatch("setInstanceOption",{name:"avatarlimit",value:parseInt(o.avatar)}),e.dispatch("setInstanceOption",{name:"backgroundlimit",value:parseInt(o.background)}),e.dispatch("setInstanceOption",{name:"bannerlimit",value:parseInt(o.banner)}),e.dispatch("setInstanceOption",{name:"fieldsLimits",value:s.fieldsLimits}),e.dispatch("setInstanceOption",{name:"restrictedNicknames",value:s.restrictedNicknames}),e.dispatch("setInstanceOption",{name:"postFormats",value:s.postFormats});const i=s.suggestions;e.dispatch("setInstanceOption",{name:"suggestionsEnabled",value:i.enabled}),e.dispatch("setInstanceOption",{name:"suggestionsWeb",value:i.web});const a=n.software;e.dispatch("setInstanceOption",{name:"backendVersion",value:a.version}),e.dispatch("setInstanceOption",{name:"backendRepository",value:a.repository});const c=s.private;e.dispatch("setInstanceOption",{name:"private",value:c});const u=window.___pleromafe_commit_hash;e.dispatch("setInstanceOption",{name:"frontendVersion",value:u});const f=s.federation;e.dispatch("setInstanceOption",{name:"tagPolicyAvailable",value:typeof f.mrf_policies>"u"?!1:s.federation.mrf_policies.includes("TagPolicy")}),e.dispatch("setInstanceOption",{name:"federationPolicy",value:f}),e.dispatch("setInstanceOption",{name:"federating",value:typeof f.enabled>"u"?!0:f.enabled});const h=s.accountActivationRequired;e.dispatch("setInstanceOption",{name:"accountActivationRequired",value:h});const v=s.staffAccounts;dEe({store:e,accounts:v})}else throw t}catch(t){console.warn("Could not load nodeinfo"),console.warn(t)}},hEe=async({store:e})=>{const t=await Promise.all([rEe(),oEe()]),n=t[0],s=t[1];uEe({store:e}),await iEe({store:e,apiConfig:n,staticConfig:s})},pEe=async({store:e})=>{const t=Ar();return t.getUserToken?e.dispatch("loginUser",t.getUserToken):Promise.resolve()},mEe=async({pinia:e,store:t,storageError:n,i18n:s})=>{const r=sB(twe);r.use(e);const o=async()=>{const u=Object.assign({"../stores/announcements.js":mz,"../stores/auth_flow.js":zse,"../stores/bookmark_folders.js":yee,"../stores/editStatus.js":qse,"../stores/i18n.js":hz,"../stores/interface.js":Gx,"../stores/lists.js":mee,"../stores/media_viewer.js":Gse,"../stores/oauth.js":Mee,"../stores/oauth_tokens.js":xse,"../stores/polls.js":Yse,"../stores/post_status.js":Xse,"../stores/reports.js":oee,"../stores/serverSideStorage.js":DZ,"../stores/shout.js":ite,"../stores/statusHistory.js":Jse});await Promise.all(Object.entries(u).map(async([f,h])=>{const v=S=>S.startsWith("use"),y=Object.keys(h).find(v);if(y&&typeof h[y]=="function"){const S=h[y]().$persistLoaded;if(!(S instanceof Promise))throw new Error(`${f} store's $persistLoaded is not a Promise. The persist plugin is not applied.`);await S}else throw new Error(`Store module ${f} does not export a 'use...' function`)}))};try{await o()}catch(u){console.error("Cannot load stores:",u),n=u}n&&Xe().pushGlobalNotice({messageKey:"errors.storage_unavailable",level:"error"}),Xe().setLayoutWidth(Lh()),Xe().setLayoutHeight(Oh()),wh.initFaviconService(),iz(t),window.addEventListener("focus",()=>lz());const i=window.___pleromafe_dev_overrides||{},a=typeof i.target<"u"?i.target:window.location.origin;t.dispatch("setInstanceOption",{name:"server",value:a}),await hEe({store:t});try{await Xe().applyTheme().catch(u=>{console.error("Error setting theme",u)})}catch(u){return window.splashError(u),Promise.reject(u)}X0(t.state.config,s.global),await Promise.all([pEe({store:t}),lEe({store:t}),fEe({store:t}),sEe({store:t})]).catch(u=>Promise.reject(u)),t.dispatch("fetchMutes"),t.dispatch("loadDrafts"),ms().startFetchingAnnouncements(),aEe({store:t}),cEe({store:t});const c=Qre({history:Ere(),routes:W8e(t),scrollBehavior:(u,f,h)=>u.matched.some(v=>v.meta.dontScroll)?!1:h||{left:0,top:0}});return bp().setI18n(s),r.use(c),r.use(t),r.use(s),window.resetThemes=()=>{Xe().resetThemeV3(),Xe().resetThemeV3Palette(),Xe().resetThemeV2()},r.use(roe),r.use(eEe),r.use(Ooe),r.component("FAIcon",D2),r.component("FALayers",Yoe),r.config.unwrapInjectedRef=!0,r.mount("#app"),r};var gEe={NODE_ENV:"production",HAS_MODULE_SERVICE_WORKER:!1};Array.prototype.toSorted||(Array.prototype.toSorted=function(e){return[...this].sort(e)});const vEe=(window.navigator.language||"en").split("-")[0],wa=$se({locale:"en",fallbackLocale:"en",messages:wp.default});wp.setLanguage(wa.global,vEe);const bEe={paths:["serverSideStorage.cache","config","users.lastLoginName","oauth"]};(async()=>{const e=Math.floor(Math.random()*2)>0?"_fox":"",t=(n,s)=>{const r=document.querySelector("#throbber");r.addEventListener("animationend",()=>{document.querySelector("#mascot").src=`/static/pleromatan_orz${e}.png`}),r.classList.add("dead"),document.querySelector("#status").textContent=n.global.t("splash.error"),console.error("PleromaFE failed to initialize: ",s),document.querySelector("#statusError").textContent=s,document.querySelector("#statusStack").textContent=s.stack,document.querySelector("#statusError").style="display: block",document.querySelector("#statusStack").style="display: block"};window.splashError=n=>t(wa,n),window.splashUpdate=n=>{document.querySelector("#status")&&(document.querySelector("#status").textContent=wa.global.t(n))};try{let n;const s=[Bse],r=RB();r.use(jse());try{const i=await Use(bEe);s.push(i)}catch(i){console.error("Storage error",i),n=i}document.querySelector("#splash").classList.remove("initial-hidden"),document.querySelector("#mascot").src=`/static/pleromatan_apology${e}_small.webp`,document.querySelector("#status").removeAttribute("class"),document.querySelector("#status").textContent=wa.global.t("splash.loading"),document.querySelector("#splash-credit").textContent=wa.global.t("update.art_by",{linkToArtist:"pipivovott"});const o=PB({modules:Rte,plugins:s,options:{devtools:!1},strict:!1});return window.vuex=o,await mEe({pinia:r,store:o,storageError:n,i18n:wa})}catch(n){t(wa,n)}})();window.___pleromafe_mode=gEe;window.___pleromafe_commit_hash="0ecbae967";window.___pleromafe_dev_overrides=void 0;export{z2 as $,he as A,O as B,Nr as C,de as D,Yn as E,_n as F,hn as G,lm as H,Uu as I,Se as J,We as K,Zs as L,dd as M,mn as N,Kse as O,Jn as P,wP as Q,XZ as R,_2 as S,X8 as T,Qs as U,sc as V,at as W,Nt as X,Ot as Y,Ad as Z,ge as _,g as a,Rx as a$,cO as a0,Td as a1,Bke as a2,D2 as a3,Fke as a4,Mi as a5,jO as a6,BO as a7,Hi as a8,Zi as a9,Wx as aA,ZK as aB,Ku as aC,vk as aD,Ch as aE,XK as aF,vt as aG,Ri as aH,Jp as aI,Cr as aJ,QE as aK,kh as aL,Y0 as aM,$h as aN,gk as aO,QK as aP,Pa as aQ,Y_ as aR,jEe as aS,zEe as aT,Lx as aU,Px as aV,kEe as aW,Sx as aX,Nx as aY,Ui as aZ,Mx as a_,NEe as aa,jee as ab,Wi as ac,Tr as ad,nCe as ae,Cd as af,r2 as ag,lh as ah,dp as ai,cae as aj,cCe as ak,wEe as al,_Ee as am,SEe as an,gd as ao,OEe as ap,BEe as aq,Wfe as ar,Z_ as as,o2 as at,H5 as au,PZ as av,FEe as aw,mZ as ax,jy as ay,r5 as az,gp as b,Hse as b$,Ra as b0,Ix as b1,Ox as b2,Iu as b3,Sk as b4,$Ee as b5,Cx as b6,_p as b7,yEe as b8,Ys as b9,CG as bA,$G as bB,wG as bC,yG as bD,vG as bE,mG as bF,hG as bG,dG as bH,lu as bI,n2 as bJ,JJ as bK,IEe as bL,MEe as bM,Rp as bN,e2 as bO,J_ as bP,X5 as bQ,AEe as bR,REe as bS,ic as bT,DEe as bU,x_ as bV,CEe as bW,LEe as bX,An as bY,Qp as bZ,tae as b_,Kn as ba,os as bb,ro as bc,Pr as bd,Ml as be,hK as bf,dK as bg,cK as bh,aK as bi,oK as bj,sK as bk,tK as bl,QG as bm,JG as bn,YG as bo,KG as bp,WG as bq,HG as br,zG as bs,jG as bt,DG as bu,NG as bv,RG as bw,LG as bx,IG as by,AG as bz,b as c,Ji as c0,EEe as c1,TEe as c2,gr as d,io as e,et as f,bs as g,Zo as h,Xn as i,qEe as j,PEe as k,Z as l,sn as m,UEe as n,p as o,za as p,fO as q,Ve as r,t_ as s,w as t,Xe as u,Y as v,X as w,T as x,E as y,Te as z};
//# sourceMappingURL=main.AC3URMfQ.js.map