maildo 1.3.4 → 1.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.css CHANGED
@@ -1 +1 @@
1
- #maildo-app{color-scheme:light dark;--maildo-spacing: 1rem;--maildo-modal-spacing-v: var(--maildo-spacing);--maildo-modal-spacing-h: calc(var(--maildo-spacing) * 2);--maildo-border-radius: .6rem;--maildo-modal-bg-color: light-dark(#fff, #181c25);--maildo-color: light-dark(#5b5d62, #c2c7d0);--maildo-link-color: #646cff;--maildo-link-hover-color: light-dark(#62659f, #8a8ff8)}#maildo-app *{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;font-size:initial;font-weight:revert;line-height:initial;padding:0;margin:0;border:none}#maildo-app h1,#maildo-app h2,#maildo-app h3,#maildo-app h4,#maildo-app h5,#maildo-app h6,#maildo-app p{color:var(--maildo-color)}#maildo-app h1,#maildo-app h2,#maildo-app h3,#maildo-app h4,#maildo-app h5,#maildo-app h6{margin:0;margin-bottom:var(--maildo-spacing)}#maildo-app p{margin:1rem 0}#maildo-app a{color:var(--maildo-link-color);text-decoration:inherit;font-weight:400}#maildo-app a:hover{color:var(--maildo-link-hover-color)}#maildo-app dialog{width:100vw;height:100vh;position:fixed;top:0;right:0;bottom:0;left:0;padding:0;border:0;display:flex;align-items:center;justify-content:center;background-color:#08090abf;backdrop-filter:blur(.05rem);-webkit-backdrop-filter:blur(.05rem);z-index:999}#maildo-app dialog article{max-width:75vw;max-height:90vh;width:auto;overflow:auto;padding:var(--maildo-modal-spacing-v) var(--maildo-modal-spacing-h);border-radius:var(--maildo-border-radius);background-color:var(--maildo-modal-bg-color);box-shadow:.15rem .2rem .7rem .05rem #0a0a0aa3}#maildo-app dialog article h4,#maildo-app dialog article p{text-align:center}#maildo-app dialog article a>strong{font-weight:500}#maildo-app dialog article footer{margin-left:calc(var(--maildo-modal-spacing-h) * -1);margin-right:calc(var(--maildo-modal-spacing-h) * -1);margin-bottom:calc(var(--maildo-modal-spacing-v) * -1);border-bottom-left-radius:var(--maildo-border-radius);border-bottom-right-radius:var(--maildo-border-radius);background-color:#50505014;text-align:center}#maildo-app dialog section{margin-bottom:calc(var(--maildo-spacing) * .5);padding:calc(var(--maildo-spacing) * .25) 0;display:flex;flex-direction:column;align-items:center}#maildo-app dialog section a{width:100%;padding:calc(var(--maildo-spacing) * .5);border-radius:1rem;text-align:center}#maildo-app dialog section a:hover{background-color:#535bf20b}#maildo-app dialog section a[href="#gmail"]{color:#d47171}#maildo-app dialog section a[href="#gmail"]:hover{color:light-dark(#c46363,#f18888);background-color:#d471710f}#maildo-app dialog section a[href="#outlook"]{color:#5fb3f8}#maildo-app dialog section a[href="#outlook"]:hover{color:light-dark(#539cd7,#7fc3fb);background-color:#5fb3f80f}#maildo-app dialog section a[href="#yahoo"]{color:#c069f3}#maildo-app dialog section a[href="#yahoo"]:hover{color:light-dark(#ab58db,#cf87f9);background-color:#c069f30f}#maildo-app dialog section a[href="#whatsapp"]{color:#36bc96}#maildo-app dialog section a[href="#whatsapp"]:hover{color:light-dark(#2aa280,#42d9ae);background-color:#36bc960f}#maildo-app dialog section a[href="#skype"]{color:#38b0d1}#maildo-app dialog section a[href="#skype"]:hover{color:light-dark(#2f94b0,#41bddf);background-color:#38b0d10f}#maildo-app dialog footer{padding:var(--maildo-spacing)}
1
+ #maildo-app{color-scheme:light dark;--maildo-spacing: 1rem;--maildo-modal-spacing-v: var(--maildo-spacing);--maildo-modal-spacing-h: calc(var(--maildo-spacing) * 2);--maildo-border-radius: .6rem;--maildo-modal-bg-color: light-dark(#fff, #181c25);--maildo-color: light-dark(#5b5d62, #c2c7d0);--maildo-link-color: #646cff;--maildo-link-hover-color: light-dark(#62659f, #8a8ff8)}#maildo-app *{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;font-size:initial;font-weight:revert;line-height:initial;padding:0;margin:0;border:none}#maildo-app h1,#maildo-app h2,#maildo-app h3,#maildo-app h4,#maildo-app h5,#maildo-app h6,#maildo-app p{color:var(--maildo-color)}#maildo-app h1,#maildo-app h2,#maildo-app h3,#maildo-app h4,#maildo-app h5,#maildo-app h6{margin:0;margin-bottom:var(--maildo-spacing)}#maildo-app p{margin:1rem 0}#maildo-app a{color:var(--maildo-link-color);text-decoration:inherit;font-weight:400}#maildo-app a:hover{color:var(--maildo-link-hover-color)}#maildo-app dialog{width:100vw;height:100vh;position:fixed;inset:0;padding:0;border:0;display:flex;align-items:center;justify-content:center;background-color:#08090abf;backdrop-filter:blur(.05rem);-webkit-backdrop-filter:blur(.05rem);z-index:999}#maildo-app dialog article{max-width:75vw;max-height:90vh;width:auto;overflow:auto;padding:var(--maildo-modal-spacing-v) var(--maildo-modal-spacing-h);border-radius:var(--maildo-border-radius);background-color:var(--maildo-modal-bg-color);box-shadow:.15rem .2rem .7rem .05rem #0a0a0aa3}#maildo-app dialog article h4,#maildo-app dialog article p{text-align:center}#maildo-app dialog article a>strong{font-weight:500}#maildo-app dialog article footer{margin-left:calc(var(--maildo-modal-spacing-h) * -1);margin-right:calc(var(--maildo-modal-spacing-h) * -1);margin-bottom:calc(var(--maildo-modal-spacing-v) * -1);border-bottom-left-radius:var(--maildo-border-radius);border-bottom-right-radius:var(--maildo-border-radius);background-color:#50505014;text-align:center}#maildo-app dialog section{margin-bottom:calc(var(--maildo-spacing) * .5);padding:calc(var(--maildo-spacing) * .25) 0;display:flex;flex-direction:column;align-items:center}#maildo-app dialog section a{width:100%;padding:calc(var(--maildo-spacing) * .5);border-radius:1rem;text-align:center}#maildo-app dialog section a:hover{background-color:#535bf20b}#maildo-app dialog section a[href="#gmail"]{color:#d47171}#maildo-app dialog section a[href="#gmail"]:hover{color:light-dark(#c46363,#f18888);background-color:#d471710f}#maildo-app dialog section a[href="#outlook"]{color:#5fb3f8}#maildo-app dialog section a[href="#outlook"]:hover{color:light-dark(#539cd7,#7fc3fb);background-color:#5fb3f80f}#maildo-app dialog section a[href="#yahoo"]{color:#c069f3}#maildo-app dialog section a[href="#yahoo"]:hover{color:light-dark(#ab58db,#cf87f9);background-color:#c069f30f}#maildo-app dialog section a[href="#whatsapp"]{color:#36bc96}#maildo-app dialog section a[href="#whatsapp"]:hover{color:light-dark(#2aa280,#42d9ae);background-color:#36bc960f}#maildo-app dialog section a[href="#skype"]{color:#38b0d1}#maildo-app dialog section a[href="#skype"]:hover{color:light-dark(#2f94b0,#41bddf);background-color:#38b0d10f}#maildo-app dialog footer{padding:var(--maildo-spacing)}
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- (function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&r(u)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();const ce=!1;var Se=Array.isArray,gn=Array.prototype.indexOf,mn=Array.from,Ae=Object.defineProperty,ct=Object.getOwnPropertyDescriptor,De=Object.getOwnPropertyDescriptors,wn=Object.prototype,bn=Array.prototype,Kt=Object.getPrototypeOf,_e=Object.isExtensible;const ot=()=>{};function yn(t){return t()}function ve(t){for(var e=0;e<t.length;e++)t[e]()}const P=2,$e=4,$t=8,Gt=16,Y=32,it=64,yt=128,R=256,Et=512,O=1024,j=2048,J=4096,lt=8192,Ct=16384,En=32768,zt=65536,xn=1<<19,Ce=1<<20,It=1<<21,_t=Symbol("$state");function Oe(t){return t===this.v}function Ne(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Tn(t){return!Ne(t,this.v)}function kn(t){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Sn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function An(t){throw new Error("https://svelte.dev/e/effect_orphan")}function Dn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function $n(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Cn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function On(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let dt=!1,Nn=!1;function Mn(){dt=!0}const Rn=1,Ln=2,$=Symbol(),Pn="http://www.w3.org/1999/xhtml";function Me(t){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}let g=null;function de(t){g=t}function Re(t){return Le().get(t)}function pe(t,e){return Le().set(t,e),e}function Ot(t,e=!1,n){var r=g={p:g,c:null,d:!1,e:null,m:!1,s:t,x:null,l:null};dt&&!e&&(g.l={s:null,u:null,r1:[],r2:Zt(!1)}),He(()=>{r.d=!0})}function Nt(t){const e=g;if(e!==null){const u=e.e;if(u!==null){var n=y,r=w;e.e=null;try{for(var o=0;o<u.length;o++){var l=u[o];at(l.effect),K(l.reaction),We(l.fn)}}finally{at(n),K(r)}}g=e.p,e.m=!0}return{}}function Mt(){return!dt||g!==null&&g.l===null}function Le(t){return g===null&&Me(),g.c??(g.c=new Map(Un(g)||void 0))}function Un(t){let e=t.p;for(;e!==null;){const n=e.c;if(n!==null)return n;e=e.p}return null}function et(t){if(typeof t!="object"||t===null||_t in t)return t;const e=Kt(t);if(e!==wn&&e!==bn)return t;var n=new Map,r=Se(t),o=T(0),l=w,u=s=>{var i=w;K(l);var a=s();return K(i),a};return r&&n.set("length",T(t.length)),new Proxy(t,{defineProperty(s,i,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&$n();var d=n.get(i);return d===void 0?(d=u(()=>T(a.value)),n.set(i,d)):b(d,u(()=>et(a.value))),!0},deleteProperty(s,i){var a=n.get(i);if(a===void 0)i in s&&(n.set(i,u(()=>T($))),Ut(o));else{if(r&&typeof i=="string"){var d=n.get("length"),c=Number(i);Number.isInteger(c)&&c<d.v&&b(d,c)}b(a,$),Ut(o)}return!0},get(s,i,a){var v;if(i===_t)return t;var d=n.get(i),c=i in s;if(d===void 0&&(!c||(v=ct(s,i))!=null&&v.writable)&&(d=u(()=>T(et(c?s[i]:$))),n.set(i,d)),d!==void 0){var f=_(d);return f===$?void 0:f}return Reflect.get(s,i,a)},getOwnPropertyDescriptor(s,i){var a=Reflect.getOwnPropertyDescriptor(s,i);if(a&&"value"in a){var d=n.get(i);d&&(a.value=_(d))}else if(a===void 0){var c=n.get(i),f=c==null?void 0:c.v;if(c!==void 0&&f!==$)return{enumerable:!0,configurable:!0,value:f,writable:!0}}return a},has(s,i){var f;if(i===_t)return!0;var a=n.get(i),d=a!==void 0&&a.v!==$||Reflect.has(s,i);if(a!==void 0||y!==null&&(!d||(f=ct(s,i))!=null&&f.writable)){a===void 0&&(a=u(()=>T(d?et(s[i]):$)),n.set(i,a));var c=_(a);if(c===$)return!1}return d},set(s,i,a,d){var D;var c=n.get(i),f=i in s;if(r&&i==="length")for(var v=a;v<c.v;v+=1){var E=n.get(v+"");E!==void 0?b(E,$):v in s&&(E=u(()=>T($)),n.set(v+"",E))}c===void 0?(!f||(D=ct(s,i))!=null&&D.writable)&&(c=u(()=>T(void 0)),b(c,u(()=>et(a))),n.set(i,c)):(f=c.v!==$,b(c,u(()=>et(a))));var m=Reflect.getOwnPropertyDescriptor(s,i);if(m!=null&&m.set&&m.set.call(d,a),!f){if(r&&typeof i=="string"){var I=n.get("length"),k=Number(i);Number.isInteger(k)&&k>=I.v&&b(I,k+1)}Ut(o)}return!0},ownKeys(s){_(o);var i=Reflect.ownKeys(s).filter(c=>{var f=n.get(c);return f===void 0||f.v!==$});for(var[a,d]of n)d.v!==$&&!(a in s)&&i.push(a);return i},setPrototypeOf(){Cn()}})}function Ut(t,e=1){b(t,t.v+e)}function Pe(t){var e=P|j,n=w!==null&&(w.f&P)!==0?w:null;return y===null||n!==null&&(n.f&R)!==0?e|=R:y.f|=Ce,{ctx:g,deps:null,effects:null,equals:Oe,f:e,fn:t,reactions:null,rv:0,v:null,wv:0,parent:n??y}}function Ue(t){var e=t.effects;if(e!==null){t.effects=null;for(var n=0;n<e.length;n+=1)Z(e[n])}}function In(t){for(var e=t.parent;e!==null;){if((e.f&P)===0)return e;e=e.parent}return null}function Ie(t){var e,n=y;at(In(t));try{Ue(t),e=nn(t)}finally{at(n)}return e}function Fe(t){var e=Ie(t),n=(W||(t.f&R)!==0)&&t.deps!==null?J:O;U(t,n),t.equals(e)||(t.v=e,t.wv=tn())}const vt=new Map;function Zt(t,e){var n={f:0,v:t,reactions:null,equals:Oe,rv:0,wv:0};return n}function T(t,e){const n=Zt(t);return Zn(n),n}function Fn(t,e=!1){var r;const n=Zt(t);return e||(n.equals=Tn),dt&&g!==null&&g.l!==null&&((r=g.l).s??(r.s=[])).push(n),n}function b(t,e,n=!1){w!==null&&!F&&Mt()&&(w.f&(P|Gt))!==0&&!(A!=null&&A.includes(t))&&On();let r=n?et(e):e;return jn(t,r)}function jn(t,e){if(!t.equals(e)){var n=t.v;pt?vt.set(t,e):vt.set(t,n),t.v=e,(t.f&P)!==0&&((t.f&j)!==0&&Ie(t),U(t,(t.f&R)===0?O:J)),t.wv=tn(),je(t,j),Mt()&&y!==null&&(y.f&O)!==0&&(y.f&(Y|it))===0&&(L===null?Jn([t]):L.push(t))}return e}function je(t,e){var n=t.reactions;if(n!==null)for(var r=Mt(),o=n.length,l=0;l<o;l++){var u=n[l],s=u.f;(s&j)===0&&(!r&&u===y||(U(u,e),(s&(O|R))!==0&&((s&P)!==0?je(u,J):Lt(u))))}}var he,qe,Ye,Be;function qn(){if(he===void 0){he=window,qe=/Firefox/.test(navigator.userAgent);var t=Element.prototype,e=Node.prototype,n=Text.prototype;Ye=ct(e,"firstChild").get,Be=ct(e,"nextSibling").get,_e(t)&&(t.__click=void 0,t.__className=void 0,t.__attributes=null,t.__style=void 0,t.__e=void 0),_e(n)&&(n.__t=void 0)}}function Yn(t=""){return document.createTextNode(t)}function xt(t){return Ye.call(t)}function Jt(t){return Be.call(t)}function C(t,e){return xt(t)}function ft(t,e){{var n=xt(t);return n instanceof Comment&&n.data===""?Jt(n):n}}function x(t,e=1,n=!1){let r=t;for(;e--;)r=Jt(r);return r}function Ve(t){y===null&&w===null&&An(),w!==null&&(w.f&R)!==0&&y===null&&Sn(),pt&&kn()}function Bn(t,e){var n=e.last;n===null?e.last=e.first=t:(n.next=t,t.prev=n,e.last=t)}function st(t,e,n,r=!0){var o=y,l={ctx:g,deps:null,nodes_start:null,nodes_end:null,f:t|j,first:null,fn:e,last:null,next:null,parent:o,prev:null,teardown:null,transitions:null,wv:0};if(n)try{Qt(l),l.f|=En}catch(i){throw Z(l),i}else e!==null&&Lt(l);var u=n&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&(Ce|yt))===0;if(!u&&r&&(o!==null&&Bn(l,o),w!==null&&(w.f&P)!==0)){var s=w;(s.effects??(s.effects=[])).push(l)}return l}function He(t){const e=st($t,null,!1);return U(e,O),e.teardown=t,e}function Ft(t){Ve();var e=y!==null&&(y.f&Y)!==0&&g!==null&&!g.m;if(e){var n=g;(n.e??(n.e=[])).push({fn:t,effect:y,reaction:w})}else{var r=We(t);return r}}function Vn(t){return Ve(),Wn(t)}function Hn(t){const e=st(it,t,!0);return(n={})=>new Promise(r=>{n.outro?qt(e,()=>{Z(e),r(void 0)}):(Z(e),r(void 0))})}function We(t){return st($e,t,!1)}function Wn(t){return st($t,t,!0)}function nt(t,e=[],n=Pe){const r=e.map(n);return Ke(()=>t(...r.map(_)))}function Ke(t,e=0){return st($t|Gt|e,t,!0)}function jt(t,e=!0){return st($t|Y,t,!0,e)}function Ge(t){var e=t.teardown;if(e!==null){const n=pt,r=w;me(!0),K(null);try{e.call(null)}finally{me(n),K(r)}}}function ze(t,e=!1){var n=t.first;for(t.first=t.last=null;n!==null;){var r=n.next;(n.f&it)!==0?n.parent=null:Z(n,e),n=r}}function Kn(t){for(var e=t.first;e!==null;){var n=e.next;(e.f&Y)===0&&Z(e),e=n}}function Z(t,e=!0){var n=!1;(e||(t.f&xn)!==0)&&t.nodes_start!==null&&(Gn(t.nodes_start,t.nodes_end),n=!0),ze(t,e&&!n),St(t,0),U(t,Ct);var r=t.transitions;if(r!==null)for(const l of r)l.stop();Ge(t);var o=t.parent;o!==null&&o.first!==null&&Ze(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Gn(t,e){for(;t!==null;){var n=t===e?null:Jt(t);t.remove(),t=n}}function Ze(t){var e=t.parent,n=t.prev,r=t.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),e!==null&&(e.first===t&&(e.first=r),e.last===t&&(e.last=n))}function qt(t,e){var n=[];Je(t,n,!0),zn(n,()=>{Z(t),e&&e()})}function zn(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var o of t)o.out(r)}else e()}function Je(t,e,n){if((t.f&lt)===0){if(t.f^=lt,t.transitions!==null)for(const u of t.transitions)(u.is_global||n)&&e.push(u);for(var r=t.first;r!==null;){var o=r.next,l=(r.f&zt)!==0||(r.f&Y)!==0;Je(r,e,l?n:!1),r=o}}}function ge(t){Qe(t,!0)}function Qe(t,e){if((t.f&lt)!==0){t.f^=lt,(t.f&O)===0&&(t.f^=O),ht(t)&&(U(t,j),Lt(t));for(var n=t.first;n!==null;){var r=n.next,o=(n.f&zt)!==0||(n.f&Y)!==0;Qe(n,o?e:!1),n=r}if(t.transitions!==null)for(const l of t.transitions)(l.is_global||e)&&l.in()}}let wt=!1,Yt=!1,Tt=null,z=!1,pt=!1;function me(t){pt=t}let bt=[];let w=null,F=!1;function K(t){w=t}let y=null;function at(t){y=t}let A=null;function Zn(t){w!==null&&w.f&It&&(A===null?A=[t]:A.push(t))}let S=null,M=0,L=null;function Jn(t){L=t}let Xe=1,kt=0,W=!1;function tn(){return++Xe}function ht(t){var c;var e=t.f;if((e&j)!==0)return!0;if((e&J)!==0){var n=t.deps,r=(e&R)!==0;if(n!==null){var o,l,u=(e&Et)!==0,s=r&&y!==null&&!W,i=n.length;if(u||s){var a=t,d=a.parent;for(o=0;o<i;o++)l=n[o],(u||!((c=l==null?void 0:l.reactions)!=null&&c.includes(a)))&&(l.reactions??(l.reactions=[])).push(a);u&&(a.f^=Et),s&&d!==null&&(d.f&R)===0&&(a.f^=R)}for(o=0;o<i;o++)if(l=n[o],ht(l)&&Fe(l),l.wv>t.wv)return!0}(!r||y!==null&&!W)&&U(t,O)}return!1}function Qn(t,e){for(var n=e;n!==null;){if((n.f&yt)!==0)try{n.fn(t);return}catch{n.f^=yt}n=n.parent}throw wt=!1,t}function we(t){return(t.f&Ct)===0&&(t.parent===null||(t.parent.f&yt)===0)}function Rt(t,e,n,r){if(wt){if(n===null&&(wt=!1),we(e))throw t;return}if(n!==null&&(wt=!0),Qn(t,e),we(e))throw t}function en(t,e,n=!0){var r=t.reactions;if(r!==null)for(var o=0;o<r.length;o++){var l=r[o];A!=null&&A.includes(t)||((l.f&P)!==0?en(l,e,!1):e===l&&(n?U(l,j):(l.f&O)!==0&&U(l,J),Lt(l)))}}function nn(t){var v;var e=S,n=M,r=L,o=w,l=W,u=A,s=g,i=F,a=t.f;S=null,M=0,L=null,W=(a&R)!==0&&(F||!z||w===null),w=(a&(Y|it))===0?t:null,A=null,de(t.ctx),F=!1,kt++,t.f|=It;try{var d=(0,t.fn)(),c=t.deps;if(S!==null){var f;if(St(t,M),c!==null&&M>0)for(c.length=M+S.length,f=0;f<S.length;f++)c[M+f]=S[f];else t.deps=c=S;if(!W)for(f=M;f<c.length;f++)((v=c[f]).reactions??(v.reactions=[])).push(t)}else c!==null&&M<c.length&&(St(t,M),c.length=M);if(Mt()&&L!==null&&!F&&c!==null&&(t.f&(P|J|j))===0)for(f=0;f<L.length;f++)en(L[f],t);return o!==null&&o!==t&&(kt++,L!==null&&(r===null?r=L:r.push(...L))),d}finally{S=e,M=n,L=r,w=o,W=l,A=u,de(s),F=i,t.f^=It}}function Xn(t,e){let n=e.reactions;if(n!==null){var r=gn.call(n,t);if(r!==-1){var o=n.length-1;o===0?n=e.reactions=null:(n[r]=n[o],n.pop())}}n===null&&(e.f&P)!==0&&(S===null||!S.includes(e))&&(U(e,J),(e.f&(R|Et))===0&&(e.f^=Et),Ue(e),St(e,0))}function St(t,e){var n=t.deps;if(n!==null)for(var r=e;r<n.length;r++)Xn(t,n[r])}function Qt(t){var e=t.f;if((e&Ct)===0){U(t,O);var n=y,r=g,o=z;y=t,z=!0;try{(e&Gt)!==0?Kn(t):ze(t),Ge(t);var l=nn(t);t.teardown=typeof l=="function"?l:null,t.wv=Xe;var u=t.deps,s;ce&&Nn&&t.f&j}catch(i){Rt(i,t,n,r||t.ctx)}finally{z=o,y=n}}}function tr(){try{Dn()}catch(t){if(Tt!==null)Rt(t,Tt,null);else throw t}}function er(){var t=z;try{var e=0;for(z=!0;bt.length>0;){e++>1e3&&tr();var n=bt,r=n.length;bt=[];for(var o=0;o<r;o++){var l=rr(n[o]);nr(l)}vt.clear()}}finally{Yt=!1,z=t,Tt=null}}function nr(t){var e=t.length;if(e!==0)for(var n=0;n<e;n++){var r=t[n];if((r.f&(Ct|lt))===0)try{ht(r)&&(Qt(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null?Ze(r):r.fn=null))}catch(o){Rt(o,r,null,r.ctx)}}}function Lt(t){Yt||(Yt=!0,queueMicrotask(er));for(var e=Tt=t;e.parent!==null;){e=e.parent;var n=e.f;if((n&(it|Y))!==0){if((n&O)===0)return;e.f^=O}}bt.push(e)}function rr(t){for(var e=[],n=t;n!==null;){var r=n.f,o=(r&(Y|it))!==0,l=o&&(r&O)!==0;if(!l&&(r&lt)===0){if((r&$e)!==0)e.push(n);else if(o)n.f^=O;else try{ht(n)&&Qt(n)}catch(i){Rt(i,n,null,n.ctx)}var u=n.first;if(u!==null){n=u;continue}}var s=n.parent;for(n=n.next;n===null&&s!==null;)n=s.next,s=s.parent}return e}function _(t){var e=t.f,n=(e&P)!==0;if(w!==null&&!F){if(!(A!=null&&A.includes(t))){var r=w.deps;t.rv<kt&&(t.rv=kt,S===null&&r!==null&&r[M]===t?M++:S===null?S=[t]:(!W||!S.includes(t))&&S.push(t))}}else if(n&&t.deps===null&&t.effects===null){var o=t,l=o.parent;l!==null&&(l.f&R)===0&&(o.f^=R)}return n&&(o=t,ht(o)&&Fe(o)),pt&&vt.has(t)?vt.get(t):t.v}function Xt(t){var e=F;try{return F=!0,t()}finally{F=e}}const or=-7169;function U(t,e){t.f=t.f&or|e}function lr(t){if(!(typeof t!="object"||!t||t instanceof EventTarget)){if(_t in t)Bt(t);else if(!Array.isArray(t))for(let e in t){const n=t[e];typeof n=="object"&&n&&_t in n&&Bt(n)}}}function Bt(t,e=new Set){if(typeof t=="object"&&t!==null&&!(t instanceof EventTarget)&&!e.has(t)){e.add(t),t instanceof Date&&t.getTime();for(let r in t)try{Bt(t[r],e)}catch{}const n=Kt(t);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=De(n);for(let o in r){const l=r[o].get;if(l)try{l.call(t)}catch{}}}}}const ar=["touchstart","touchmove"];function ir(t){return ar.includes(t)}const rn=new Set,Vt=new Set;function on(t){for(var e=0;e<t.length;e++)rn.add(t[e]);for(var n of Vt)n(t)}function mt(t){var D;var e=this,n=e.ownerDocument,r=t.type,o=((D=t.composedPath)==null?void 0:D.call(t))||[],l=o[0]||t.target,u=0,s=t.__root;if(s){var i=o.indexOf(s);if(i!==-1&&(e===document||e===window)){t.__root=e;return}var a=o.indexOf(e);if(a===-1)return;i<=a&&(u=i)}if(l=o[u]||t.target,l!==e){Ae(t,"currentTarget",{configurable:!0,get(){return l||n}});var d=w,c=y;K(null),at(null);try{for(var f,v=[];l!==null;){var E=l.assignedSlot||l.parentNode||l.host||null;try{var m=l["__"+r];if(m!=null&&(!l.disabled||t.target===l))if(Se(m)){var[I,...k]=m;I.apply(l,[t,...k])}else m.call(l,t)}catch(q){f?v.push(q):f=q}if(t.cancelBubble||E===e||E===null)break;l=E}if(f){for(let q of v)queueMicrotask(()=>{throw q});throw f}}finally{t.__root=e,delete t.currentTarget,K(d),at(c)}}}function sr(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function be(t,e){var n=y;n.nodes_start===null&&(n.nodes_start=t,n.nodes_end=e)}function Q(t,e){var n=(e&Rn)!==0,r=(e&Ln)!==0,o,l=!t.startsWith("<!>");return()=>{o===void 0&&(o=sr(l?t:"<!>"+t),n||(o=xt(o)));var u=r||qe?document.importNode(o,!0):o.cloneNode(!0);if(n){var s=xt(u),i=u.lastChild;be(s,i)}else be(u,u);return u}}function G(t,e){t!==null&&t.before(e)}function H(t,e){var n=e==null?"":typeof e=="object"?e+"":e;n!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=n,t.nodeValue=n+"")}function ur(t,e){return fr(t,e)}const X=new Map;function fr(t,{target:e,anchor:n,props:r={},events:o,context:l,intro:u=!0}){qn();var s=new Set,i=c=>{for(var f=0;f<c.length;f++){var v=c[f];if(!s.has(v)){s.add(v);var E=ir(v);e.addEventListener(v,mt,{passive:E});var m=X.get(v);m===void 0?(document.addEventListener(v,mt,{passive:E}),X.set(v,1)):X.set(v,m+1)}}};i(mn(rn)),Vt.add(i);var a=void 0,d=Hn(()=>{var c=n??e.appendChild(Yn());return jt(()=>{if(l){Ot({});var f=g;f.c=l}o&&(r.$$events=o),a=t(c,r)||{},l&&Nt()}),()=>{var E;for(var f of s){e.removeEventListener(f,mt);var v=X.get(f);--v===0?(document.removeEventListener(f,mt),X.delete(f)):X.set(f,v)}Vt.delete(i),c!==n&&((E=c.parentNode)==null||E.removeChild(c))}});return cr.set(a,d),a}let cr=new WeakMap;function rt(t,e,[n,r]=[0,0]){var o=t,l=null,u=null,s=$,i=n>0?zt:0,a=!1;const d=(f,v=!0)=>{a=!0,c(v,f)},c=(f,v)=>{s!==(s=f)&&(s?(l?ge(l):v&&(l=jt(()=>v(o))),u&&qt(u,()=>{u=null})):(u?ge(u):v&&(u=jt(()=>v(o,[n+1,r]))),l&&qt(l,()=>{l=null})))};Ke(()=>{a=!1,e(d),a||c(null,null)},i)}const _r=Symbol("is custom element"),vr=Symbol("is html");function Ht(t,e,n,r){var o=dr(t);o[e]!==(o[e]=n)&&(n==null?t.removeAttribute(e):typeof n!="string"&&pr(t).includes(e)?t[e]=n:t.setAttribute(e,n))}function dr(t){return t.__attributes??(t.__attributes={[_r]:t.nodeName.includes("-"),[vr]:t.namespaceURI===Pn})}var ye=new Map;function pr(t){var e=ye.get(t.nodeName);if(e)return e;ye.set(t.nodeName,e=[]);for(var n,r=t,o=Element.prototype;o!==r;){n=De(r);for(var l in n)n[l].set&&e.push(l);r=Kt(r)}return e}function hr(t=!1){const e=g,n=e.l.u;if(!n)return;let r=()=>lr(e.s);if(t){let o=0,l={};const u=Pe(()=>{let s=!1;const i=e.s;for(const a in i)i[a]!==l[a]&&(l[a]=i[a],s=!0);return s&&o++,o});r=()=>_(u)}n.b.length&&Vn(()=>{Ee(e,r),ve(n.b)}),Ft(()=>{const o=Xt(()=>n.m.map(yn));return()=>{for(const l of o)typeof l=="function"&&l()}}),n.a.length&&Ft(()=>{Ee(e,r),ve(n.a)})}function Ee(t,e){if(t.l.s)for(const n of t.l.s)_(n);e()}function ln(t,e,n){if(t==null)return e(void 0),ot;const r=Xt(()=>t.subscribe(e,n));return r.unsubscribe?()=>r.unsubscribe():r}const tt=[];function xe(t,e=ot){let n=null;const r=new Set;function o(s){if(Ne(t,s)&&(t=s,n)){const i=!tt.length;for(const a of r)a[1](),tt.push(a,t);if(i){for(let a=0;a<tt.length;a+=2)tt[a][0](tt[a+1]);tt.length=0}}}function l(s){o(s(t))}function u(s,i=ot){const a=[s,i];return r.add(a),r.size===1&&(n=e(o,l)||ot),s(t),()=>{r.delete(a),r.size===0&&n&&(n(),n=null)}}return{set:o,update:l,subscribe:u}}function gr(t){let e;return ln(t,n=>e=n)(),e}let Wt=Symbol();function At(t,e,n){const r=n[e]??(n[e]={store:null,source:Fn(void 0),unsubscribe:ot});if(r.store!==t&&!(Wt in n))if(r.unsubscribe(),r.store=t??null,t==null)r.source.v=void 0,r.unsubscribe=ot;else{var o=!0;r.unsubscribe=ln(t,l=>{o?r.source.v=l:b(r.source,l)}),o=!1}return t&&Wt in n?gr(t):_(r.source)}function Dt(t,e){return t.set(e),e}function te(){const t={};function e(){He(()=>{for(var n in t)t[n].unsubscribe();Ae(t,Wt,{enumerable:!1,value:!0})})}return[t,e]}function ee(t){g===null&&Me(),dt&&g.l!==null?mr(g).m.push(t):Ft(()=>{const e=Xt(t);if(typeof e=="function")return e})}function mr(t){var e=t.l;return e.u??(e.u={a:[],b:[],m:[]})}const wr="5";var ke;typeof window<"u"&&((ke=window.__svelte??(window.__svelte={})).v??(ke.v=new Set)).add(wr);Mn();function br(t,e,n){t.preventDefault();const r="https://mail.google.com/mail/?extsrc=mailto&url="+encodeURIComponent(_(e));window.open(r,"_blank","noopener, noreferrer"),n()}async function yr(t,e,n,r){t.preventDefault();try{await navigator.clipboard.writeText(_(e)),b(n,!0),setTimeout(r,1500)}catch(o){console.error("Unable to copy to clipboard.",o)}}var Er=Q("<strong>cc</strong> <br>",1),xr=Q("<strong>bcc</strong> <br>",1),Tr=Q("<strong>subject</strong> <br>",1),kr=Q("<strong>body</strong> <br>",1),Sr=Q('<dialog open><article><h4> </h4> <p><small><!> <!> <!> <!></small></p> <section><a href="#gmail">open in <strong>Gmail</strong></a> <a href="#outlook">open in <strong>Outlook</strong></a> <a href="#yahoo">open in <strong>Yahoo Mail</strong></a> <a><strong>open</strong> default</a> <a href="#copy"><strong> </strong></a></section> <footer><small><a href="https://github.com/Sammy-T/maildo" target="_blank">maildo</a></small></footer></article></dialog>');function Ar(t,e){Ot(e,!0);const[n,r]=te(),o=()=>At(s,"$selectedMailto",n),l="type-url",u="type-data",s=Re("selectedMailto");let i="",a=T(""),d=T(""),c=T(""),f=T(""),v=T(""),E=T(""),m=T(!1);function I(){const p=new URL(o().href),{searchParams:h}=p;b(a,p.pathname,!0),b(d,h.get("cc"),!0),b(c,h.get("bcc"),!0),b(f,h.get("subject"),!0),b(v,h.get("body"),!0)}function k(){const{dataset:p}=o();b(a,p.address&&p.domain?`${p.address}@${p.domain}`:"",!0),b(d,p.ccAddress&&p.ccDomain?`${p.ccAddress}@${p.ccDomain}`:"",!0),b(c,p.bccAddress&&p.bccDomain?`${p.bccAddress}@${p.bccDomain}`:"",!0),b(f,p.subject,!0),b(v,p.body,!0)}function D(){switch(i){case l:return o().href;case u:const p=new URLSearchParams;_(d)&&p.set("cc",_(d)),_(c)&&p.set("bcc",_(c)),_(f)&&p.set("subject",_(f)),_(v)&&p.set("body",_(v));const h=new URL(`mailto:${_(a)}`);return h.search=p.toString(),h.toString();default:return console.error(`Invalid mailto type: ${i}`),""}}function q(p){p.preventDefault();const h=new URLSearchParams;h.set("path","/mail/action/compose"),_(a)&&h.set("to",_(a)),_(f)&&h.set("subject",_(f)),_(v)&&h.set("body",_(v));const N=new URL("https://outlook.live.com/owa/");N.search=h.toString(),window.open(N.toString(),"_blank","noopener, noreferrer"),B()}function gt(p){p.preventDefault();const h=new URLSearchParams;_(a)&&h.set("to",_(a)),_(f)&&h.set("subject",_(f)),_(v)&&h.set("body",_(v));const N=new URL("https://compose.mail.yahoo.com");N.search=h.toString(),window.open(N.toString(),"_blank","noopener, noreferrer"),B()}function B(p=null){p&&p.currentTarget!==p.target||Dt(s,null)}ee(()=>{o().href.startsWith("mailto:")?(i=l,I()):(i=u,k()),b(E,D(),!0)});var ut=Sr();ut.__click=B;var Pt=C(ut),V=C(Pt),an=C(V),ne=x(V,2),sn=C(ne),re=C(sn);{var un=p=>{var h=Er(),N=x(ft(h));nt(()=>H(N,` ${_(d)??""}`)),G(p,h)};rt(re,p=>{_(d)&&p(un)})}var oe=x(re,2);{var fn=p=>{var h=xr(),N=x(ft(h));nt(()=>H(N,` ${_(c)??""}`)),G(p,h)};rt(oe,p=>{_(c)&&p(fn)})}var le=x(oe,2);{var cn=p=>{var h=Tr(),N=x(ft(h));nt(()=>H(N,` ${_(f)??""}`)),G(p,h)};rt(le,p=>{_(f)&&p(cn)})}var _n=x(le,2);{var vn=p=>{var h=kr(),N=x(ft(h));nt(()=>H(N,` ${_(v)??""}`)),G(p,h)};rt(_n,p=>{_(v)&&p(vn)})}var dn=x(ne,2),ae=C(dn);ae.__click=[br,E,B];var ie=x(ae,2);ie.__click=q;var se=x(ie,2);se.__click=gt;var ue=x(se,2),fe=x(ue,2);fe.__click=[yr,a,m,B];var pn=C(fe),hn=C(pn);nt(()=>{H(an,_(a)),Ht(ue,"href",_(E)),H(hn,_(m)?"copied":"copy")}),G(t,ut),Nt(),r()}on(["click"]);function Dr(t,e,n){t.preventDefault();const o=`https://wa.me/${_(e).replaceAll(/\D/g,"").replace(/^0+/,"")}`;window.open(o,"_blank","noopener, noreferrer"),n()}function $r(t,e,n){t.preventDefault();const r=`skype:${encodeURIComponent(_(e))}`;window.open(r,"_blank","noopener, noreferrer"),n()}async function Cr(t,e,n,r){t.preventDefault();try{await navigator.clipboard.writeText(_(e)),b(n,!0),setTimeout(r,1500)}catch(o){console.error("Unable to copy to clipboard.",o)}}var Or=Q('<dialog open><article><h4> </h4> <section><a href="#whatsapp">open in <strong>WhatsApp</strong></a> <a href="#skype">open in <strong>Skype</strong></a> <a><strong>call</strong> as default</a> <a><strong>text</strong> as default</a> <a href="#copy"><strong> </strong></a></section> <footer><small><a href="https://github.com/Sammy-T/maildo" target="_blank">maildo</a></small></footer></article></dialog>');function Nr(t,e){Ot(e,!0);const[n,r]=te(),o=()=>At(u,"$selectedCallto",n),l=/^(tel:)|^(callto:)/,u=Re("selectedCallto");let s=T(""),i=T(!1);function a(){b(s,o().href.replace(l,""),!0)}function d(){const{dataset:V}=o();b(s,V.tel,!0)}function c(V=null){V&&V.currentTarget!==V.target||Dt(u,null)}ee(()=>{l.test(o().href)?a():d()});var f=Or();f.__click=c;var v=C(f),E=C(v),m=C(E),I=x(E,2),k=C(I);k.__click=[Dr,s,c];var D=x(k,2);D.__click=[$r,s,c];var q=x(D,2),gt=x(q,2),B=x(gt,2);B.__click=[Cr,s,i,c];var ut=C(B),Pt=C(ut);nt(()=>{H(m,_(s)),Ht(q,"href",`tel:${_(s)}`),Ht(gt,"href",`sms:${_(s)}`),H(Pt,_(i)?"copied":"copy")}),G(t,f),Nt(),r()}on(["click"]);var Mr=Q("<!> <!>",1);function Rr(t,e){Ot(e,!1);const[n,r]=te(),o=()=>At(i,"$selectedMailto",n),l=()=>At(a,"$selectedCallto",n),u='a[href^="mailto:"]:not(.no-maildo), a[href="#maildo"][data-address], a.maildo[data-address]',s='a[href^="tel:"]:not(.no-maildo), a[href^="callto:"]:not(.no-maildo), a[href="#maildo"][data-tel], a.maildo[data-tel]',i=xe(null);pe("selectedMailto",i);const a=xe(null);pe("selectedCallto",a),ee(()=>{const m=document.querySelectorAll(u),I=document.querySelectorAll(s);m.forEach(k=>{k.addEventListener("click",D=>{D.preventDefault(),Dt(i,k)})}),I.forEach(k=>{k.addEventListener("click",D=>{D.preventDefault(),Dt(a,k)})})}),hr();var d=Mr(),c=ft(d);{var f=m=>{Ar(m,{})};rt(c,m=>{o()&&m(f)})}var v=x(c,2);{var E=m=>{Nr(m,{})};rt(v,m=>{l()&&m(E)})}G(t,d),Nt(),r()}const Te="maildo-app";function Lr(){let t=document.getElementById(Te);if(!t)t=document.createElement("slot"),t.id=Te,document.body.appendChild(t);else if(t.childElementCount>0){console.warn("App target already exists");return}ur(Rr,{target:t})}Lr();
1
+ (function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))r(o);new MutationObserver(o=>{for(const l of o)if(l.type==="childList")for(const i of l.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(o){const l={};return o.integrity&&(l.integrity=o.integrity),o.referrerPolicy&&(l.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?l.credentials="include":o.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function r(o){if(o.ep)return;o.ep=!0;const l=n(o);fetch(o.href,l)}})();const jt=!1;var qt=Array.isArray,Ln=Array.prototype.indexOf,Un=Array.from,Oe=Object.defineProperty,Ee=Object.getOwnPropertyDescriptor,Yt=Object.getOwnPropertyDescriptors,In=Object.prototype,Fn=Array.prototype,et=Object.getPrototypeOf,kt=Object.isExtensible;const ce=()=>{};function jn(e){return e()}function Tt(e){for(var t=0;t<e.length;t++)e[t]()}function qn(){var e,t,n=new Promise((r,o)=>{e=r,t=o});return{promise:n,resolve:e,reject:t}}const L=2,Vt=4,tt=8,he=16,V=32,le=64,Bt=128,I=256,Re=512,$=1024,F=2048,J=4096,z=8192,ge=16384,nt=32768,rt=65536,St=1<<17,Yn=1<<18,Se=1<<19,Wt=1<<20,We=1<<21,ot=1<<22,ne=1<<23,xe=Symbol("$state"),lt=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function Vn(){throw new Error("https://svelte.dev/e/await_outside_boundary")}function Ht(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Bn(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Wn(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Hn(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function Kn(e){throw new Error("https://svelte.dev/e/effect_orphan")}function Gn(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function zn(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function Zn(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function Jn(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}const Qn=1,Xn=2,S=Symbol(),er="http://www.w3.org/1999/xhtml";function Kt(e){return e===this.v}function Gt(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function zt(e){return!Gt(e,this.v)}let Ae=!1,tr=!1;function nr(){Ae=!0}let E=null;function Me(e){E=e}function Zt(e){return Jt().get(e)}function At(e,t){return Jt().set(e,t),t}function Fe(e,t=!1,n){E={p:E,c:null,e:null,s:e,x:null,l:Ae&&!t?{s:null,u:null,$:[]}:null}}function je(e){var t=E,n=t.e;if(n!==null){t.e=null;for(var r of n)cn(r)}return E=t.p,{}}function Ce(){return!Ae||E!==null&&E.l===null}function Jt(e){return E===null&&Ht(),E.c??=new Map(rr(E)||void 0)}function rr(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}const or=new WeakMap;function lr(e){var t=m;if(t===null)return g.f|=ne,e;if((t.f&nt)===0){if((t.f&Bt)===0)throw!t.parent&&e instanceof Error&&Qt(e),e;t.b.error(e)}else st(e,t)}function st(e,t){for(;t!==null;){if((t.f&Bt)!==0)try{t.b.error(e);return}catch(n){e=n}t=t.parent}throw e instanceof Error&&Qt(e),e}function Qt(e){const t=or.get(e);t&&(Oe(e,"message",{value:t.message}),Oe(e,"stack",{value:t.stack}))}function sr(){for(var e=m.b;e!==null&&!e.has_pending_snippet();)e=e.parent;return e===null&&Vn(),e}function it(e){var t=L|F,n=g!==null&&(g.f&L)!==0?g:null;return m===null||n!==null&&(n.f&I)!==0?t|=I:m.f|=Se,{ctx:E,deps:null,effects:null,equals:Kt,f:t,fn:e,reactions:null,rv:0,v:S,wv:0,parent:n??m,ac:null}}function ir(e,t){let n=m;n===null&&Bn();var r=n.b,o=void 0,l=ft(S),i=null,u=!g;return yr(()=>{try{var s=e();i&&Promise.resolve(s).catch(()=>{})}catch(c){s=Promise.reject(c)}var a=()=>s;o=i?.then(a,a)??Promise.resolve(s),i=o;var f=C,_=r.pending;u&&(r.update_pending_count(1),_||f.increment());const d=(c,v=void 0)=>{i=null,_||f.activate(),v?v!==lt&&(l.f|=ne,Ke(l,v)):((l.f&ne)!==0&&(l.f^=ne),Ke(l,c)),u&&(r.update_pending_count(-1),_||f.decrement()),tn()};if(o.then(d,c=>d(null,c||"unknown")),f)return()=>{queueMicrotask(()=>f.neuter())}}),new Promise(s=>{function a(f){function _(){f===o?s(l):a(o)}f.then(_,_)}a(o)})}function ar(e){const t=it(e);return t.equals=zt,t}function Xt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)oe(t[n])}}function ur(e){for(var t=e.parent;t!==null;){if((t.f&L)===0)return t;t=t.parent}return null}function at(e){var t,n=m;Z(ur(e));try{Xt(e),t=yn(e)}finally{Z(n)}return t}function en(e){var t=at(e);if(e.equals(t)||(e.v=t,e.wv=bn()),!me){var n=(K||(e.f&I)!==0)&&e.deps!==null?J:$;M(e,n)}}function fr(e,t,n){const r=Ce()?it:ar;if(t.length===0){n(e.map(r));return}var o=C,l=m,i=cr(),u=sr();Promise.all(t.map(s=>ir(s))).then(s=>{o?.activate(),i();try{n([...e.map(r),...s])}catch(a){(l.f&ge)===0&&st(a,l)}o?.deactivate(),tn()}).catch(s=>{u.error(s)})}function cr(){var e=m,t=g,n=E,r=C;return function(){Z(e),q(t),Me(n),r?.activate()}}function tn(){Z(null),q(null),Me(null)}const Ve=new Set;let C=null,Ct=new Set,Ne=[];function nn(){const e=Ne.shift();Ne.length>0&&queueMicrotask(nn),e()}let ke=[],ut=null,He=!1;class ve{current=new Map;#a=new Map;#o=new Set;#e=0;#u=null;#f=!1;#n=[];#l=[];#r=[];#t=[];#s=[];#c=[];#_=[];skipped_effects=new Set;process(t){ke=[];for(const o of t)this.#v(o);if(this.#n.length===0&&this.#e===0){this.#d();var n=this.#r,r=this.#t;this.#r=[],this.#t=[],this.#s=[],C=null,$t(n),$t(r),C===null?C=this:Ve.delete(this),this.#u?.resolve()}else this.#i(this.#r),this.#i(this.#t),this.#i(this.#s);for(const o of this.#n)de(o);for(const o of this.#l)de(o);this.#n=[],this.#l=[]}#v(t){t.f^=$;for(var n=t.first;n!==null;){var r=n.f,o=(r&(V|le))!==0,l=o&&(r&$)!==0,i=l||(r&z)!==0||this.skipped_effects.has(n);if(!i&&n.fn!==null){if(o)n.f^=$;else if((r&Vt)!==0)this.#t.push(n);else if((r&$)===0)if((r&ot)!==0){var u=n.b?.pending?this.#l:this.#n;u.push(n)}else qe(n)&&((n.f&he)!==0&&this.#s.push(n),de(n));var s=n.first;if(s!==null){n=s;continue}}var a=n.parent;for(n=n.next;n===null&&a!==null;)n=a.next,a=a.parent}}#i(t){for(const n of t)((n.f&F)!==0?this.#c:this.#_).push(n),M(n,$);t.length=0}capture(t,n){this.#a.has(t)||this.#a.set(t,n),this.current.set(t,t.v)}activate(){C=this}deactivate(){C=null;for(const t of Ct)if(Ct.delete(t),t(),C!==null)break}neuter(){this.#f=!0}flush(){ke.length>0?_r():this.#d(),C===this&&(this.#e===0&&Ve.delete(this),this.deactivate())}#d(){if(!this.#f)for(const t of this.#o)t();this.#o.clear()}increment(){this.#e+=1}decrement(){if(this.#e-=1,this.#e===0){for(const t of this.#c)M(t,F),pe(t);for(const t of this.#_)M(t,J),pe(t);this.#r=[],this.#t=[],this.flush()}else this.deactivate()}add_callback(t){this.#o.add(t)}settled(){return(this.#u??=qn()).promise}static ensure(){if(C===null){const t=C=new ve;Ve.add(C),ve.enqueue(()=>{C===t&&t.flush()})}return C}static enqueue(t){Ne.length===0&&queueMicrotask(nn),Ne.unshift(t)}}function _r(){var e=_e;He=!0;try{var t=0;for(Ot(!0);ke.length>0;){var n=ve.ensure();if(t++>1e3){var r,o;dr()}n.process(ke),G.clear()}}finally{He=!1,Ot(e),ut=null}}function dr(){try{Gn()}catch(e){st(e,ut)}}let ee=null;function $t(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(ge|z))===0&&qe(r)&&(ee=[],de(r),r.deps===null&&r.first===null&&r.nodes_start===null&&(r.teardown===null&&r.ac===null?vn(r):r.fn=null),ee?.length>0)){G.clear();for(const o of ee)de(o);ee=[]}}ee=null}}function pe(e){for(var t=ut=e;t.parent!==null;){t=t.parent;var n=t.f;if(He&&t===m&&(n&he)!==0)return;if((n&(le|V))!==0){if((n&$)===0)return;t.f^=$}}ke.push(t)}const G=new Map;function ft(e,t){var n={f:0,v:e,reactions:null,equals:Kt,rv:0,wv:0};return n}function A(e,t){const n=ft(e);return Ar(n),n}function vr(e,t=!1,n=!0){const r=ft(e);return t||(r.equals=zt),Ae&&n&&E!==null&&E.l!==null&&(E.l.s??=[]).push(r),r}function y(e,t,n=!1){g!==null&&(!j||(g.f&St)!==0)&&Ce()&&(g.f&(L|he|ot|St))!==0&&!Y?.includes(e)&&Jn();let r=n?we(t):t;return Ke(e,r)}function Ke(e,t){if(!e.equals(t)){var n=e.v;me?G.set(e,t):G.set(e,n),e.v=t;var r=ve.ensure();r.capture(e,n),(e.f&L)!==0&&((e.f&F)!==0&&at(e),M(e,(e.f&I)===0?$:J)),e.wv=bn(),rn(e,F),Ce()&&m!==null&&(m.f&$)!==0&&(m.f&(V|le))===0&&(U===null?Cr([e]):U.push(e))}return t}function Be(e){y(e,e.v+1)}function rn(e,t){var n=e.reactions;if(n!==null)for(var r=Ce(),o=n.length,l=0;l<o;l++){var i=n[l],u=i.f;if(!(!r&&i===m)){var s=(u&F)===0;s&&M(i,t),(u&L)!==0?rn(i,J):s&&((u&he)!==0&&ee!==null&&ee.push(i),pe(i))}}}function we(e){if(typeof e!="object"||e===null||xe in e)return e;const t=et(e);if(t!==In&&t!==Fn)return e;var n=new Map,r=qt(e),o=A(0),l=re,i=u=>{if(re===l)return u();var s=g,a=re;q(null),Mt(l);var f=u();return q(s),Mt(a),f};return r&&n.set("length",A(e.length)),new Proxy(e,{defineProperty(u,s,a){(!("value"in a)||a.configurable===!1||a.enumerable===!1||a.writable===!1)&&zn();var f=n.get(s);return f===void 0?f=i(()=>{var _=A(a.value);return n.set(s,_),_}):y(f,a.value,!0),!0},deleteProperty(u,s){var a=n.get(s);if(a===void 0){if(s in u){const f=i(()=>A(S));n.set(s,f),Be(o)}}else y(a,S),Be(o);return!0},get(u,s,a){if(s===xe)return e;var f=n.get(s),_=s in u;if(f===void 0&&(!_||Ee(u,s)?.writable)&&(f=i(()=>{var c=we(_?u[s]:S),v=A(c);return v}),n.set(s,f)),f!==void 0){var d=p(f);return d===S?void 0:d}return Reflect.get(u,s,a)},getOwnPropertyDescriptor(u,s){var a=Reflect.getOwnPropertyDescriptor(u,s);if(a&&"value"in a){var f=n.get(s);f&&(a.value=p(f))}else if(a===void 0){var _=n.get(s),d=_?.v;if(_!==void 0&&d!==S)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return a},has(u,s){if(s===xe)return!0;var a=n.get(s),f=a!==void 0&&a.v!==S||Reflect.has(u,s);if(a!==void 0||m!==null&&(!f||Ee(u,s)?.writable)){a===void 0&&(a=i(()=>{var d=f?we(u[s]):S,c=A(d);return c}),n.set(s,a));var _=p(a);if(_===S)return!1}return f},set(u,s,a,f){var _=n.get(s),d=s in u;if(r&&s==="length")for(var c=a;c<_.v;c+=1){var v=n.get(c+"");v!==void 0?y(v,S):c in u&&(v=i(()=>A(S)),n.set(c+"",v))}if(_===void 0)(!d||Ee(u,s)?.writable)&&(_=i(()=>A(void 0)),y(_,we(a)),n.set(s,_));else{d=_.v!==S;var w=i(()=>we(a));y(_,w)}var O=Reflect.getOwnPropertyDescriptor(u,s);if(O?.set&&O.set.call(f,a),!d){if(r&&typeof s=="string"){var k=n.get("length"),x=Number(s);Number.isInteger(x)&&x>=k.v&&y(k,x+1)}Be(o)}return!0},ownKeys(u){p(o);var s=Reflect.ownKeys(u).filter(_=>{var d=n.get(_);return d===void 0||d.v!==S});for(var[a,f]of n)f.v!==S&&!(a in u)&&s.push(a);return s},setPrototypeOf(){Zn()}})}var Dt,on,ln,sn;function pr(){if(Dt===void 0){Dt=window,on=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;ln=Ee(t,"firstChild").get,sn=Ee(t,"nextSibling").get,kt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),kt(n)&&(n.__t=void 0)}}function an(e=""){return document.createTextNode(e)}function Pe(e){return ln.call(e)}function ct(e){return sn.call(e)}function R(e,t){return Pe(e)}function ye(e,t){{var n=Pe(e);return n instanceof Comment&&n.data===""?ct(n):n}}function T(e,t=1,n=!1){let r=e;for(;t--;)r=ct(r);return r}function hr(){return!1}function un(e){var t=g,n=m;q(null),Z(null);try{return e()}finally{q(t),Z(n)}}function fn(e){m===null&&g===null&&Kn(),g!==null&&(g.f&I)!==0&&m===null&&Hn(),me&&Wn()}function gr(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function Q(e,t,n,r=!0){var o=m;o!==null&&(o.f&z)!==0&&(e|=z);var l={ctx:E,deps:null,nodes_start:null,nodes_end:null,f:e|F,first:null,fn:t,last:null,next:null,parent:o,b:o&&o.b,prev:null,teardown:null,transitions:null,wv:0,ac:null};if(n)try{de(l),l.f|=nt}catch(s){throw oe(l),s}else t!==null&&pe(l);if(r){var i=l;if(n&&i.deps===null&&i.teardown===null&&i.nodes_start===null&&i.first===i.last&&(i.f&Se)===0&&(i=i.first),i!==null&&(i.parent=o,o!==null&&gr(i,o),g!==null&&(g.f&L)!==0&&(e&le)===0)){var u=g;(u.effects??=[]).push(i)}}return l}function mr(e){const t=Q(tt,null,!1);return M(t,$),t.teardown=e,t}function Ge(e){fn();var t=m.f,n=!g&&(t&V)!==0&&(t&nt)===0;if(n){var r=E;(r.e??=[]).push(e)}else return cn(e)}function cn(e){return Q(Vt|Wt,e,!1)}function br(e){return fn(),Q(tt|Wt,e,!0)}function wr(e){ve.ensure();const t=Q(le|Se,e,!0);return(n={})=>new Promise(r=>{n.outro?pn(t,()=>{oe(t),r(void 0)}):(oe(t),r(void 0))})}function yr(e){return Q(ot|Se,e,!0)}function ue(e,t=[],n=[]){fr(t,n,r=>{Q(tt,()=>e(...r.map(p)),!0)})}function Er(e,t=0){var n=Q(he|t,e,!0);return n}function ze(e,t=!0){return Q(V|Se,e,!0,t)}function _n(e){var t=e.teardown;if(t!==null){const n=me,r=g;Rt(!0),q(null);try{t.call(null)}finally{Rt(n),q(r)}}}function dn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const o=n.ac;o!==null&&un(()=>{o.abort(lt)});var r=n.next;(n.f&le)!==0?n.parent=null:oe(n,t),n=r}}function xr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&V)===0&&oe(t),t=n}}function oe(e,t=!0){var n=!1;(t||(e.f&Yn)!==0)&&e.nodes_start!==null&&e.nodes_end!==null&&(kr(e.nodes_start,e.nodes_end),n=!0),dn(e,t&&!n),Le(e,0),M(e,ge);var r=e.transitions;if(r!==null)for(const l of r)l.stop();_n(e);var o=e.parent;o!==null&&o.first!==null&&vn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=e.ac=null}function kr(e,t){for(;e!==null;){var n=e===t?null:ct(e);e.remove(),e=n}}function vn(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function pn(e,t){var n=[];hn(e,n,!0),Tr(n,()=>{oe(e),t&&t()})}function Tr(e,t){var n=e.length;if(n>0){var r=()=>--n||t();for(var o of e)o.out(r)}else t()}function hn(e,t,n){if((e.f&z)===0){if(e.f^=z,e.transitions!==null)for(const i of e.transitions)(i.is_global||n)&&t.push(i);for(var r=e.first;r!==null;){var o=r.next,l=(r.f&rt)!==0||(r.f&V)!==0;hn(r,t,l?n:!1),r=o}}}function Sr(e){gn(e,!0)}function gn(e,t){if((e.f&z)!==0){e.f^=z,(e.f&$)===0&&(M(e,F),pe(e));for(var n=e.first;n!==null;){var r=n.next,o=(n.f&rt)!==0||(n.f&V)!==0;gn(n,o?t:!1),n=r}if(e.transitions!==null)for(const l of e.transitions)(l.is_global||t)&&l.in()}}let _e=!1;function Ot(e){_e=e}let me=!1;function Rt(e){me=e}let g=null,j=!1;function q(e){g=e}let m=null;function Z(e){m=e}let Y=null;function Ar(e){g!==null&&(Y===null?Y=[e]:Y.push(e))}let D=null,P=0,U=null;function Cr(e){U=e}let mn=1,Te=0,re=Te;function Mt(e){re=e}let K=!1;function bn(){return++mn}function qe(e){var t=e.f;if((t&F)!==0)return!0;if((t&J)!==0){var n=e.deps,r=(t&I)!==0;if(n!==null){var o,l,i=(t&Re)!==0,u=r&&m!==null&&!K,s=n.length;if((i||u)&&(m===null||(m.f&ge)===0)){var a=e,f=a.parent;for(o=0;o<s;o++)l=n[o],(i||!l?.reactions?.includes(a))&&(l.reactions??=[]).push(a);i&&(a.f^=Re),u&&f!==null&&(f.f&I)===0&&(a.f^=I)}for(o=0;o<s;o++)if(l=n[o],qe(l)&&en(l),l.wv>e.wv)return!0}(!r||m!==null&&!K)&&M(e,$)}return!1}function wn(e,t,n=!0){var r=e.reactions;if(r!==null&&!Y?.includes(e))for(var o=0;o<r.length;o++){var l=r[o];(l.f&L)!==0?wn(l,t,!1):t===l&&(n?M(l,F):(l.f&$)!==0&&M(l,J),pe(l))}}function yn(e){var t=D,n=P,r=U,o=g,l=K,i=Y,u=E,s=j,a=re,f=e.f;D=null,P=0,U=null,K=(f&I)!==0&&(j||!_e||g===null),g=(f&(V|le))===0?e:null,Y=null,Me(e.ctx),j=!1,re=++Te,e.ac!==null&&(un(()=>{e.ac.abort(lt)}),e.ac=null);try{e.f|=We;var _=e.fn,d=_(),c=e.deps;if(D!==null){var v;if(Le(e,P),c!==null&&P>0)for(c.length=P+D.length,v=0;v<D.length;v++)c[P+v]=D[v];else e.deps=c=D;if(!K||(f&L)!==0&&e.reactions!==null)for(v=P;v<c.length;v++)(c[v].reactions??=[]).push(e)}else c!==null&&P<c.length&&(Le(e,P),c.length=P);if(Ce()&&U!==null&&!j&&c!==null&&(e.f&(L|J|F))===0)for(v=0;v<U.length;v++)wn(U[v],e);return o!==null&&o!==e&&(Te++,U!==null&&(r===null?r=U:r.push(...U))),(e.f&ne)!==0&&(e.f^=ne),d}catch(w){return lr(w)}finally{e.f^=We,D=t,P=n,U=r,g=o,K=l,Y=i,Me(u),j=s,re=a}}function $r(e,t){let n=t.reactions;if(n!==null){var r=Ln.call(n,e);if(r!==-1){var o=n.length-1;o===0?n=t.reactions=null:(n[r]=n[o],n.pop())}}n===null&&(t.f&L)!==0&&(D===null||!D.includes(t))&&(M(t,J),(t.f&(I|Re))===0&&(t.f^=Re),Xt(t),Le(t,0))}function Le(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)$r(e,n[r])}function de(e){var t=e.f;if((t&ge)===0){M(e,$);var n=m,r=_e;m=e,_e=!0;try{(t&he)!==0?xr(e):dn(e),_n(e);var o=yn(e);e.teardown=typeof o=="function"?o:null,e.wv=mn;var l;jt&&tr&&(e.f&F)!==0&&e.deps}finally{_e=r,m=n}}}function p(e){var t=e.f,n=(t&L)!==0;if(g!==null&&!j){var r=m!==null&&(m.f&ge)!==0;if(!r&&!Y?.includes(e)){var o=g.deps;if((g.f&We)!==0)e.rv<Te&&(e.rv=Te,D===null&&o!==null&&o[P]===e?P++:D===null?D=[e]:(!K||!D.includes(e))&&D.push(e));else{(g.deps??=[]).push(e);var l=e.reactions;l===null?e.reactions=[g]:l.includes(g)||l.push(g)}}}else if(n&&e.deps===null&&e.effects===null){var i=e,u=i.parent;u!==null&&(u.f&I)===0&&(i.f^=I)}if(me){if(G.has(e))return G.get(e);if(n){i=e;var s=i.v;return((i.f&$)===0&&i.reactions!==null||En(i))&&(s=at(i)),G.set(i,s),s}}else n&&(i=e,qe(i)&&en(i));if((e.f&ne)!==0)throw e.v;return e.v}function En(e){if(e.v===S)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(G.has(t)||(t.f&L)!==0&&En(t))return!0;return!1}function _t(e){var t=j;try{return j=!0,e()}finally{j=t}}const Dr=-7169;function M(e,t){e.f=e.f&Dr|t}function Or(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(xe in e)Ze(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&xe in n&&Ze(n)}}}function Ze(e,t=new Set){if(typeof e=="object"&&e!==null&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let r in e)try{Ze(e[r],t)}catch{}const n=et(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=Yt(n);for(let o in r){const l=r[o].get;if(l)try{l.call(e)}catch{}}}}}const Rr=["touchstart","touchmove"];function Mr(e){return Rr.includes(e)}const xn=new Set,Je=new Set;function kn(e){for(var t=0;t<e.length;t++)xn.add(e[t]);for(var n of Je)n(e)}let Nt=null;function De(e){var t=this,n=t.ownerDocument,r=e.type,o=e.composedPath?.()||[],l=o[0]||e.target;Nt=e;var i=0,u=Nt===e&&e.__root;if(u){var s=o.indexOf(u);if(s!==-1&&(t===document||t===window)){e.__root=t;return}var a=o.indexOf(t);if(a===-1)return;s<=a&&(i=s)}if(l=o[i]||e.target,l!==t){Oe(e,"currentTarget",{configurable:!0,get(){return l||n}});var f=g,_=m;q(null),Z(null);try{for(var d,c=[];l!==null;){var v=l.assignedSlot||l.parentNode||l.host||null;try{var w=l["__"+r];if(w!=null&&(!l.disabled||e.target===l))if(qt(w)){var[O,...k]=w;O.apply(l,[e,...k])}else w.call(l,e)}catch(x){d?c.push(x):d=x}if(e.cancelBubble||v===t||v===null)break;l=v}if(d){for(let x of c)queueMicrotask(()=>{throw x});throw d}}finally{e.__root=t,delete e.currentTarget,q(f),Z(_)}}}function Nr(e){var t=document.createElement("template");return t.innerHTML=e.replaceAll("<!>","<!---->"),t.content}function Pt(e,t){var n=m;n.nodes_start===null&&(n.nodes_start=e,n.nodes_end=t)}function se(e,t){var n=(t&Qn)!==0,r=(t&Xn)!==0,o,l=!e.startsWith("<!>");return()=>{o===void 0&&(o=Nr(l?e:"<!>"+e),n||(o=Pe(o)));var i=r||on?document.importNode(o,!0):o.cloneNode(!0);if(n){var u=Pe(i),s=i.lastChild;Pt(u,s)}else Pt(i,i);return i}}function te(e,t){e!==null&&e.before(t)}function H(e,t){var n=t==null?"":typeof t=="object"?t+"":t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=n+"")}function Pr(e,t){return Lr(e,t)}const ie=new Map;function Lr(e,{target:t,anchor:n,props:r={},events:o,context:l,intro:i=!0}){pr();var u=new Set,s=_=>{for(var d=0;d<_.length;d++){var c=_[d];if(!u.has(c)){u.add(c);var v=Mr(c);t.addEventListener(c,De,{passive:v});var w=ie.get(c);w===void 0?(document.addEventListener(c,De,{passive:v}),ie.set(c,1)):ie.set(c,w+1)}}};s(Un(xn)),Je.add(s);var a=void 0,f=wr(()=>{var _=n??t.appendChild(an());return ze(()=>{if(l){Fe({});var d=E;d.c=l}o&&(r.$$events=o),a=e(_,r)||{},l&&je()}),()=>{for(var d of u){t.removeEventListener(d,De);var c=ie.get(d);--c===0?(document.removeEventListener(d,De),ie.delete(d)):ie.set(d,c)}Je.delete(s),_!==n&&_.parentNode?.removeChild(_)}});return Ur.set(a,f),a}let Ur=new WeakMap;function fe(e,t,n=!1){var r=e,o=null,l=null,i=S,u=n?rt:0,s=!1;const a=(c,v=!0)=>{s=!0,d(v,c)};var f=null;function _(){f!==null&&(f.lastChild.remove(),r.before(f),f=null);var c=i?o:l,v=i?l:o;c&&Sr(c),v&&pn(v,()=>{i?l=null:o=null})}const d=(c,v)=>{if(i!==(i=c)){var w=hr(),O=r;if(w&&(f=document.createDocumentFragment(),f.append(O=an())),i?o??=v&&ze(()=>v(O)):l??=v&&ze(()=>v(O)),w){var k=C,x=i?o:l,X=i?l:o;x&&k.skipped_effects.delete(x),X&&k.skipped_effects.add(X),k.add_callback(_)}else _()}};Er(()=>{s=!1,t(a),s||d(null,null)},u)}const Ir=Symbol("is custom element"),Fr=Symbol("is html");function Qe(e,t,n,r){var o=jr(e);o[t]!==(o[t]=n)&&(n==null?e.removeAttribute(t):typeof n!="string"&&qr(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function jr(e){return e.__attributes??={[Ir]:e.nodeName.includes("-"),[Fr]:e.namespaceURI===er}}var Lt=new Map;function qr(e){var t=e.getAttribute("is")||e.nodeName,n=Lt.get(t);if(n)return n;Lt.set(t,n=[]);for(var r,o=e,l=Element.prototype;l!==o;){r=Yt(o);for(var i in r)r[i].set&&n.push(i);o=et(o)}return n}function Yr(e=!1){const t=E,n=t.l.u;if(!n)return;let r=()=>Or(t.s);if(e){let o=0,l={};const i=it(()=>{let u=!1;const s=t.s;for(const a in s)s[a]!==l[a]&&(l[a]=s[a],u=!0);return u&&o++,o});r=()=>p(i)}n.b.length&&br(()=>{Ut(t,r),Tt(n.b)}),Ge(()=>{const o=_t(()=>n.m.map(jn));return()=>{for(const l of o)typeof l=="function"&&l()}}),n.a.length&&Ge(()=>{Ut(t,r),Tt(n.a)})}function Ut(e,t){if(e.l.s)for(const n of e.l.s)p(n);t()}function Tn(e,t,n){if(e==null)return t(void 0),ce;const r=_t(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const ae=[];function It(e,t=ce){let n=null;const r=new Set;function o(u){if(Gt(e,u)&&(e=u,n)){const s=!ae.length;for(const a of r)a[1](),ae.push(a,e);if(s){for(let a=0;a<ae.length;a+=2)ae[a][0](ae[a+1]);ae.length=0}}}function l(u){o(u(e))}function i(u,s=ce){const a=[u,s];return r.add(a),r.size===1&&(n=t(o,l)||ce),u(e),()=>{r.delete(a),r.size===0&&n&&(n(),n=null)}}return{set:o,update:l,subscribe:i}}function Vr(e){let t;return Tn(e,n=>t=n)(),t}let Xe=Symbol();function Ue(e,t,n){const r=n[t]??={store:null,source:vr(void 0),unsubscribe:ce};if(r.store!==e&&!(Xe in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=ce;else{var o=!0;r.unsubscribe=Tn(e,l=>{o?r.source.v=l:y(r.source,l)}),o=!1}return e&&Xe in n?Vr(e):p(r.source)}function Ie(e,t){return e.set(t),t}function dt(){const e={};function t(){mr(()=>{for(var n in e)e[n].unsubscribe();Oe(e,Xe,{enumerable:!1,value:!0})})}return[e,t]}function vt(e){E===null&&Ht(),Ae&&E.l!==null?Br(E).m.push(e):Ge(()=>{const t=_t(e);if(typeof t=="function")return t})}function Br(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}const Wr="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(Wr);nr();function Hr(e,t,n){e.preventDefault();const r="https://mail.google.com/mail/?extsrc=mailto&url="+encodeURIComponent(p(t));window.open(r,"_blank","noopener, noreferrer"),n()}async function Kr(e,t,n,r){e.preventDefault();try{await navigator.clipboard.writeText(p(t)),y(n,!0),setTimeout(r,1500)}catch(o){console.error("Unable to copy to clipboard.",o)}}var Gr=se("<strong>cc</strong> <br/>",1),zr=se("<strong>bcc</strong> <br/>",1),Zr=se("<strong>subject</strong> <br/>",1),Jr=se("<strong>body</strong> <br/>",1),Qr=se('<dialog open><article><h4> </h4> <p><small><!> <!> <!> <!></small></p> <section><a href="#gmail">open in <strong>Gmail</strong></a> <a href="#outlook">open in <strong>Outlook</strong></a> <a href="#yahoo">open in <strong>Yahoo Mail</strong></a> <a><strong>open</strong> default</a> <a href="#copy"><strong> </strong></a></section> <footer><small><a href="https://github.com/Sammy-T/maildo" target="_blank">maildo</a></small></footer></article></dialog>');function Xr(e,t){Fe(t,!0);const[n,r]=dt(),o=()=>Ue(u,"$selectedMailto",n),l="type-url",i="type-data",u=Zt("selectedMailto");let s="",a=A(""),f=A(""),_=A(""),d=A(""),c=A(""),v=A(""),w=A(!1);function O(){const h=new URL(o().href),{searchParams:b}=h;y(a,h.pathname,!0),y(f,b.get("cc"),!0),y(_,b.get("bcc"),!0),y(d,b.get("subject"),!0),y(c,b.get("body"),!0)}function k(){const{dataset:h}=o();y(a,h.address&&h.domain?`${h.address}@${h.domain}`:"",!0),y(f,h.ccAddress&&h.ccDomain?`${h.ccAddress}@${h.ccDomain}`:"",!0),y(_,h.bccAddress&&h.bccDomain?`${h.bccAddress}@${h.bccDomain}`:"",!0),y(d,h.subject,!0),y(c,h.body,!0)}function x(){switch(s){case l:return o().href;case i:const h=new URLSearchParams;p(f)&&h.set("cc",p(f)),p(_)&&h.set("bcc",p(_)),p(d)&&h.set("subject",p(d)),p(c)&&h.set("body",p(c));const b=new URL(`mailto:${p(a)}`);return b.search=h.toString(),b.toString();default:return console.error(`Invalid mailto type: ${s}`),""}}function X(h){h.preventDefault();const b=new URLSearchParams;b.set("path","/mail/action/compose"),p(a)&&b.set("to",p(a)),p(d)&&b.set("subject",p(d)),p(c)&&b.set("body",p(c));const N=new URL("https://outlook.live.com/owa/");N.search=b.toString(),window.open(N.toString(),"_blank","noopener, noreferrer"),B()}function $e(h){h.preventDefault();const b=new URLSearchParams;p(a)&&b.set("to",p(a)),p(d)&&b.set("subject",p(d)),p(c)&&b.set("body",p(c));const N=new URL("https://compose.mail.yahoo.com");N.search=b.toString(),window.open(N.toString(),"_blank","noopener, noreferrer"),B()}function B(h=null){h&&h.currentTarget!==h.target||Ie(u,null)}vt(()=>{o().href.startsWith("mailto:")?(s=l,O()):(s=i,k()),y(v,x(),!0)});var be=Qr();be.__click=B;var Ye=R(be),W=R(Ye),Sn=R(W),pt=T(W,2),An=R(pt),ht=R(An);{var Cn=h=>{var b=Gr(),N=T(ye(b));ue(()=>H(N,` ${p(f)??""}`)),te(h,b)};fe(ht,h=>{p(f)&&h(Cn)})}var gt=T(ht,2);{var $n=h=>{var b=zr(),N=T(ye(b));ue(()=>H(N,` ${p(_)??""}`)),te(h,b)};fe(gt,h=>{p(_)&&h($n)})}var mt=T(gt,2);{var Dn=h=>{var b=Zr(),N=T(ye(b));ue(()=>H(N,` ${p(d)??""}`)),te(h,b)};fe(mt,h=>{p(d)&&h(Dn)})}var On=T(mt,2);{var Rn=h=>{var b=Jr(),N=T(ye(b));ue(()=>H(N,` ${p(c)??""}`)),te(h,b)};fe(On,h=>{p(c)&&h(Rn)})}var Mn=T(pt,2),bt=R(Mn);bt.__click=[Hr,v,B];var wt=T(bt,2);wt.__click=X;var yt=T(wt,2);yt.__click=$e;var Et=T(yt,2),xt=T(Et,2);xt.__click=[Kr,a,w,B];var Nn=R(xt),Pn=R(Nn);ue(()=>{H(Sn,p(a)),Qe(Et,"href",p(v)),H(Pn,p(w)?"copied":"copy")}),te(e,be),je(),r()}kn(["click"]);function eo(e,t,n){e.preventDefault();const o=`https://wa.me/${p(t).replaceAll(/\D/g,"").replace(/^0+/,"")}`;window.open(o,"_blank","noopener, noreferrer"),n()}function to(e,t,n){e.preventDefault();const r=`skype:${encodeURIComponent(p(t))}`;window.open(r,"_blank","noopener, noreferrer"),n()}async function no(e,t,n,r){e.preventDefault();try{await navigator.clipboard.writeText(p(t)),y(n,!0),setTimeout(r,1500)}catch(o){console.error("Unable to copy to clipboard.",o)}}var ro=se('<dialog open><article><h4> </h4> <section><a href="#whatsapp">open in <strong>WhatsApp</strong></a> <a href="#skype">open in <strong>Skype</strong></a> <a><strong>call</strong> as default</a> <a><strong>text</strong> as default</a> <a href="#copy"><strong> </strong></a></section> <footer><small><a href="https://github.com/Sammy-T/maildo" target="_blank">maildo</a></small></footer></article></dialog>');function oo(e,t){Fe(t,!0);const[n,r]=dt(),o=()=>Ue(i,"$selectedCallto",n),l=/^(tel:)|^(callto:)/,i=Zt("selectedCallto");let u=A(""),s=A(!1);function a(){y(u,o().href.replace(l,""),!0)}function f(){const{dataset:W}=o();y(u,W.tel,!0)}function _(W=null){W&&W.currentTarget!==W.target||Ie(i,null)}vt(()=>{l.test(o().href)?a():f()});var d=ro();d.__click=_;var c=R(d),v=R(c),w=R(v),O=T(v,2),k=R(O);k.__click=[eo,u,_];var x=T(k,2);x.__click=[to,u,_];var X=T(x,2),$e=T(X,2),B=T($e,2);B.__click=[no,u,s,_];var be=R(B),Ye=R(be);ue(()=>{H(w,p(u)),Qe(X,"href",`tel:${p(u)}`),Qe($e,"href",`sms:${p(u)}`),H(Ye,p(s)?"copied":"copy")}),te(e,d),je(),r()}kn(["click"]);var lo=se("<!> <!>",1);function so(e,t){Fe(t,!1);const[n,r]=dt(),o=()=>Ue(s,"$selectedMailto",n),l=()=>Ue(a,"$selectedCallto",n),i='a[href^="mailto:"]:not(.no-maildo), a[href="#maildo"][data-address], a.maildo[data-address]',u='a[href^="tel:"]:not(.no-maildo), a[href^="callto:"]:not(.no-maildo), a[href="#maildo"][data-tel], a.maildo[data-tel]',s=It(null);At("selectedMailto",s);const a=It(null);At("selectedCallto",a),vt(()=>{const w=document.querySelectorAll(i),O=document.querySelectorAll(u);w.forEach(k=>{k.addEventListener("click",x=>{x.preventDefault(),Ie(s,k)})}),O.forEach(k=>{k.addEventListener("click",x=>{x.preventDefault(),Ie(a,k)})})}),Yr();var f=lo(),_=ye(f);{var d=w=>{Xr(w,{})};fe(_,w=>{o()&&w(d)})}var c=T(_,2);{var v=w=>{oo(w,{})};fe(c,w=>{l()&&w(v)})}te(e,f),je(),r()}const Ft="maildo-app";function io(){let e=document.getElementById(Ft);if(!e)e=document.createElement("slot"),e.id=Ft,document.body.appendChild(e);else if(e.childElementCount>0){console.warn("App target already exists");return}Pr(so,{target:e})}io();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "maildo",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "Mailto links extended.",
5
5
  "keywords": [],
6
6
  "author": "Sammy-T",
@@ -16,9 +16,9 @@
16
16
  "dist/**.css"
17
17
  ],
18
18
  "devDependencies": {
19
- "@sveltejs/vite-plugin-svelte": "^5.0.3",
19
+ "@sveltejs/vite-plugin-svelte": "^6.1.0",
20
20
  "svelte": "^5.25.3",
21
- "vite": "^6.2.3"
21
+ "vite": "^7.1.4"
22
22
  },
23
23
  "scripts": {
24
24
  "dev": "vite",