maildo 1.3.12 → 1.3.13
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 +1 -1
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
#maildo-app{color-scheme:light dark;--maildo-spacing:
|
|
1
|
+
#maildo-app{--lightningcss-light:initial;--lightningcss-dark: ;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:var(--lightningcss-light,#fff)var(--lightningcss-dark,#181c25);--maildo-color:var(--lightningcss-light,#5b5d62)var(--lightningcss-dark,#c2c7d0);--maildo-link-color:#646cff;--maildo-link-hover-color:var(--lightningcss-light,#62659f)var(--lightningcss-dark,#8a8ff8)}@media (prefers-color-scheme:dark){#maildo-app{--lightningcss-light: ;--lightningcss-dark:initial}}#maildo-app *{font-family:Inter,system-ui,Avenir,Helvetica,Arial,sans-serif;font-size:initial;font-weight:revert;line-height:initial;border:none;margin:0;padding:0}#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);-webkit-text-decoration:inherit;text-decoration:inherit;font-weight:400}#maildo-app a:hover{color:var(--maildo-link-hover-color)}#maildo-app dialog{-webkit-backdrop-filter:blur(.05rem);z-index:999;background-color:#08090abf;border:0;justify-content:center;align-items:center;width:100vw;height:100vh;padding:0;display:flex;position:fixed;inset:0}#maildo-app dialog article{width:auto;max-width:75vw;max-height:90vh;padding:var(--maildo-modal-spacing-v) var(--maildo-modal-spacing-h);border-radius:var(--maildo-border-radius);background-color:var(--maildo-modal-bg-color);overflow:auto;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);text-align:center;background-color:#50505014}#maildo-app dialog section{margin-bottom:calc(var(--maildo-spacing) * .5);padding:calc(var(--maildo-spacing) * .25) 0;flex-direction:column;align-items:center;display:flex}#maildo-app dialog section a{width:100%;padding:calc(var(--maildo-spacing) * .5);text-align:center;border-radius:1rem}#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:var(--lightningcss-light,#c46363)var(--lightningcss-dark,#f18888);background-color:#d471710f}#maildo-app dialog section a[href=\#outlook]{color:#5fb3f8}#maildo-app dialog section a[href=\#outlook]:hover{color:var(--lightningcss-light,#539cd7)var(--lightningcss-dark,#7fc3fb);background-color:#5fb3f80f}#maildo-app dialog section a[href=\#yahoo]{color:#c069f3}#maildo-app dialog section a[href=\#yahoo]:hover{color:var(--lightningcss-light,#ab58db)var(--lightningcss-dark,#cf87f9);background-color:#c069f30f}#maildo-app dialog section a[href=\#whatsapp]{color:#36bc96}#maildo-app dialog section a[href=\#whatsapp]:hover{color:var(--lightningcss-light,#2aa280)var(--lightningcss-dark,#42d9ae);background-color:#36bc960f}#maildo-app dialog section a[href=\#skype]{color:#38b0d1}#maildo-app dialog section a[href=\#skype]:hover{color:var(--lightningcss-light,#2f94b0)var(--lightningcss-dark,#41bddf);background-color:#38b0d10f}#maildo-app dialog footer{padding:var(--maildo-spacing)}
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const i of s)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const i={};return s.integrity&&(i.integrity=s.integrity),s.referrerPolicy&&(i.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?i.credentials="include":s.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(s){if(s.ep)return;s.ep=!0;const i=n(s);fetch(s.href,i)}})();const dt=!1;var er=Array.isArray,tr=Array.prototype.indexOf,Ae=Array.prototype.includes,nr=Array.from,tn=Object.defineProperty,Fe=Object.getOwnPropertyDescriptor,nn=Object.getOwnPropertyDescriptors,rr=Object.prototype,sr=Array.prototype,kt=Object.getPrototypeOf,qt=Object.isExtensible;const _e=()=>{};function ir(e){return e()}function ht(e){for(var t=0;t<e.length;t++)e[t]()}function rn(){var e,t,n=new Promise((r,s)=>{e=r,t=s});return{promise:n,resolve:e,reject:t}}const R=2,Be=4,Me=8,sn=1<<24,fe=16,J=32,be=64,pt=128,Y=512,M=1024,$=2048,K=4096,W=8192,ie=16384,Oe=32768,Ce=65536,Yt=1<<17,or=1<<18,Ne=1<<19,on=1<<20,ge=65536,_t=1<<21,xt=1<<22,oe=1<<23,je=Symbol("$state"),he=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function ln(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function lr(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function ar(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function fr(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function ur(e){throw new Error("https://svelte.dev/e/effect_orphan")}function cr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function dr(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function hr(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function pr(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function _r(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const vr=1,gr=2,C=Symbol(),an="http://www.w3.org/1999/xhtml";function mr(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function fn(e){return e===this.v}function un(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function cn(e){return!un(e,this.v)}let Ve=!1,br=!1;function yr(){Ve=!0}let w=null;function De(e){w=e}function dn(e){return hn().get(e)}function Bt(e,t){return hn().set(e,t),t}function ot(e,t=!1,n){w={p:w,i:!1,c:null,e:null,s:e,x:null,l:Ve&&!t?{s:null,u:null,$:[]}:null}}function lt(e){var t=w,n=t.e;if(n!==null){t.e=null;for(var r of n)Dn(r)}return t.i=!0,w=t.p,{}}function ze(){return!Ve||w!==null&&w.l===null}function hn(e){return w===null&&ln(),w.c??=new Map(wr(w)||void 0)}function wr(e){let t=e.p;for(;t!==null;){const n=t.c;if(n!==null)return n;t=t.p}return null}let xe=[];function Er(){var e=xe;xe=[],ht(e)}function Te(e){if(xe.length===0){var t=xe;queueMicrotask(()=>{t===xe&&Er()})}xe.push(e)}function pn(e){var t=y;if(t===null)return b.f|=oe,e;if((t.f&Oe)===0&&(t.f&Be)===0)throw e;se(e,t)}function se(e,t){for(;t!==null;){if((t.f&pt)!==0){if((t.f&Oe)===0)throw e;try{t.b.error(e);return}catch(n){e=n}}t=t.parent}throw e}const kr=-7169;function x(e,t){e.f=e.f&kr|t}function St(e){(e.f&Y)!==0||e.deps===null?x(e,M):x(e,K)}function _n(e){if(e!==null)for(const t of e)(t.f&R)===0||(t.f&ge)===0||(t.f^=ge,_n(t.deps))}function vn(e,t,n){(e.f&$)!==0?t.add(e):(e.f&K)!==0&&n.add(e),_n(e.deps),x(e,M)}const Qe=new Set;let k=null,z=null,q=[],Tt=null,Re=null;class le{current=new Map;previous=new Map;#e=new Set;#l=new Set;#t=0;#o=0;#n=null;#i=new Set;#r=new Set;#s=new Map;is_fork=!1;#a=!1;#u(){return this.is_fork||this.#o>0}skip_effect(t){this.#s.has(t)||this.#s.set(t,{d:[],m:[]})}unskip_effect(t){var n=this.#s.get(t);if(n){this.#s.delete(t);for(var r of n.d)x(r,$),H(r);for(r of n.m)x(r,K),H(r)}}process(t){q=[],this.apply();var n=Re=[],r=[];for(const s of t)this.#f(s,n,r);if(Re=null,this.#u()){this.#c(r),this.#c(n);for(const[s,i]of this.#s)bn(s,i)}else{k=null;for(const s of this.#e)s(this);this.#e.clear(),this.#t===0&&this.#d(),Vt(r),Vt(n),this.#i.clear(),this.#r.clear(),this.#n?.resolve()}z=null}#f(t,n,r){t.f^=M;for(var s=t.first;s!==null;){var i=s.f,a=(i&(J|be))!==0,f=a&&(i&M)!==0,o=f||(i&W)!==0||this.#s.has(s);if(!o&&s.fn!==null){a?s.f^=M:(i&Be)!==0?n.push(s):Ge(s)&&((i&fe)!==0&&this.#r.add(s),$e(s));var l=s.first;if(l!==null){s=l;continue}}for(;s!==null;){var u=s.next;if(u!==null){s=u;break}s=s.parent}}}#c(t){for(var n=0;n<t.length;n+=1)vn(t[n],this.#i,this.#r)}capture(t,n){n!==C&&!this.previous.has(t)&&this.previous.set(t,n),(t.f&oe)===0&&(this.current.set(t,t.v),z?.set(t,t.v))}activate(){k=this,this.apply()}deactivate(){k===this&&(k=null,z=null)}flush(){if(q.length>0)k=this,xr();else if(this.#t===0&&!this.is_fork){for(const t of this.#e)t(this);this.#e.clear(),this.#d(),this.#n?.resolve()}this.deactivate()}discard(){for(const t of this.#l)t(this);this.#l.clear()}#d(){if(Qe.size>1){this.previous.clear();var t=k,n=z,r=!0;for(const i of Qe){if(i===this){r=!1;continue}const a=[];for(const[o,l]of this.current){if(i.current.has(o))if(r&&l!==i.current.get(o))i.current.set(o,l);else continue;a.push(o)}if(a.length===0)continue;const f=[...i.current.keys()].filter(o=>!this.current.has(o));if(f.length>0){var s=q;q=[];const o=new Set,l=new Map;for(const u of a)gn(u,f,o,l);if(q.length>0){k=i,i.apply();for(const u of q)i.#f(u,[],[]);i.deactivate()}q=s}}k=t,z=n}this.#s.clear(),Qe.delete(this)}increment(t){this.#t+=1,t&&(this.#o+=1)}decrement(t){this.#t-=1,t&&(this.#o-=1),!this.#a&&(this.#a=!0,Te(()=>{this.#a=!1,this.#u()?q.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#i)this.#r.delete(t),x(t,$),H(t);for(const t of this.#r)x(t,K),H(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#l.add(t)}settled(){return(this.#n??=rn()).promise}static ensure(){if(k===null){const t=k=new le;Qe.add(k),Te(()=>{k===t&&t.flush()})}return k}apply(){}}function xr(){var e=null;try{for(var t=0;q.length>0;){var n=le.ensure();if(t++>1e3){var r,s;Sr()}n.process(q),ae.clear()}}finally{q=[],Tt=null,Re=null}}function Sr(){try{cr()}catch(e){se(e,Tt)}}let Q=null;function Vt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if((r.f&(ie|W))===0&&Ge(r)&&(Q=new Set,$e(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&On(r),Q?.size>0)){ae.clear();for(const s of Q){if((s.f&(ie|W))!==0)continue;const i=[s];let a=s.parent;for(;a!==null;)Q.has(a)&&(Q.delete(a),i.push(a)),a=a.parent;for(let f=i.length-1;f>=0;f--){const o=i[f];(o.f&(ie|W))===0&&$e(o)}}Q.clear()}}Q=null}}function gn(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(const s of e.reactions){const i=s.f;(i&R)!==0?gn(s,t,n,r):(i&(xt|fe))!==0&&(i&$)===0&&mn(s,t,r)&&(x(s,$),H(s))}}function mn(e,t,n){const r=n.get(e);if(r!==void 0)return r;if(e.deps!==null)for(const s of e.deps){if(Ae.call(t,s))return!0;if((s.f&R)!==0&&mn(s,t,n))return n.set(s,!0),!0}return n.set(e,!1),!1}function H(e){var t=Tt=e,n=t.b;if(n?.is_pending&&(e.f&(Be|Me|sn))!==0&&(e.f&Oe)===0){n.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var r=t.f;if(Re!==null&&t===y&&(e.f&Me)===0)return;if((r&(be|J))!==0){if((r&M)===0)return;t.f^=M}}q.push(t)}function bn(e,t){if(!((e.f&J)!==0&&(e.f&M)!==0)){(e.f&$)!==0?t.d.push(e):(e.f&K)!==0&&t.m.push(e),x(e,M);for(var n=e.first;n!==null;)bn(n,t),n=n.next}}function Tr(e){let t=0,n=He(0),r;return()=>{Ct()&&(p(n),Gr(()=>(t===0&&(r=ft(()=>e(()=>Ie(n)))),t+=1,()=>{Te(()=>{t-=1,t===0&&(r?.(),r=void 0,Ie(n))})})))}}var Ar=Ce|Ne;function Mr(e,t,n,r){new Cr(e,t,n,r)}class Cr{parent;is_pending=!1;transform_error;#e;#l=null;#t;#o;#n;#i=null;#r=null;#s=null;#a=null;#u=0;#f=0;#c=!1;#d=new Set;#p=new Set;#h=null;#b=Tr(()=>(this.#h=He(this.#u),()=>{this.#h=null}));constructor(t,n,r,s){this.#e=t,this.#t=n,this.#o=i=>{var a=y;a.b=this,a.f|=pt,r(i)},this.parent=y.b,this.transform_error=s??this.parent?.transform_error??(i=>i),this.#n=Rn(()=>{this.#g()},Ar)}#y(){try{this.#i=X(()=>this.#o(this.#e))}catch(t){this.error(t)}}#w(t){const n=this.#t.failed;n&&(this.#s=X(()=>{n(this.#e,()=>t,()=>()=>{})}))}#E(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#r=X(()=>t(this.#e)),Te(()=>{var n=this.#a=document.createDocumentFragment(),r=nt();n.append(r),this.#i=this.#v(()=>(le.ensure(),X(()=>this.#o(r)))),this.#f===0&&(this.#e.before(n),this.#a=null,qe(this.#r,()=>{this.#r=null}),this.#_())}))}#g(){try{if(this.is_pending=this.has_pending_snippet(),this.#f=0,this.#u=0,this.#i=X(()=>{this.#o(this.#e)}),this.#f>0){var t=this.#a=document.createDocumentFragment();Ln(this.#i,t);const n=this.#t.pending;this.#r=X(()=>n(this.#e))}else this.#_()}catch(n){this.error(n)}}#_(){this.is_pending=!1;for(const t of this.#d)x(t,$),H(t);for(const t of this.#p)x(t,K),H(t);this.#d.clear(),this.#p.clear()}defer_effect(t){vn(t,this.#d,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#v(t){var n=y,r=b,s=w;Z(this.#n),V(this.#n),De(this.#n.ctx);try{return t()}catch(i){return pn(i),null}finally{Z(n),V(r),De(s)}}#m(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#m(t);return}this.#f+=t,this.#f===0&&(this.#_(),this.#r&&qe(this.#r,()=>{this.#r=null}),this.#a&&(this.#e.before(this.#a),this.#a=null))}update_pending_count(t){this.#m(t),this.#u+=t,!(!this.#h||this.#c)&&(this.#c=!0,Te(()=>{this.#c=!1,this.#h&&tt(this.#h,this.#u)}))}get_effect_pending(){return this.#b(),p(this.#h)}error(t){var n=this.#t.onerror;let r=this.#t.failed;if(!n&&!r)throw t;this.#i&&(j(this.#i),this.#i=null),this.#r&&(j(this.#r),this.#r=null),this.#s&&(j(this.#s),this.#s=null);var s=!1,i=!1;const a=()=>{if(s){mr();return}s=!0,i&&_r(),this.#s!==null&&qe(this.#s,()=>{this.#s=null}),this.#v(()=>{le.ensure(),this.#g()})},f=o=>{try{i=!0,n?.(o,a),i=!1}catch(l){se(l,this.#n&&this.#n.parent)}r&&(this.#s=this.#v(()=>{le.ensure();try{return X(()=>{var l=y;l.b=this,l.f|=pt,r(this.#e,()=>o,()=>a)})}catch(l){return se(l,this.#n.parent),null}}))};Te(()=>{var o;try{o=this.transform_error(t)}catch(l){se(l,this.#n&&this.#n.parent);return}o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(f,l=>se(l,this.#n&&this.#n.parent)):f(o)})}}function Dr(e,t,n,r){const s=ze()?At:Nr;var i=e.filter(c=>!c.settled);if(n.length===0&&i.length===0){r(t.map(s));return}var a=y,f=Rr(),o=i.length===1?i[0].promise:i.length>1?Promise.all(i.map(c=>c.promise)):null;function l(c){f();try{r(c)}catch(d){(a.f&ie)===0&&se(d,a)}vt()}if(n.length===0){o.then(()=>l(t.map(s)));return}function u(){f(),Promise.all(n.map(c=>Or(c))).then(c=>l([...t.map(s),...c])).catch(c=>se(c,a))}o?o.then(u):u()}function Rr(){var e=y,t=b,n=w,r=k;return function(i=!0){Z(e),V(t),De(n),i&&r?.activate()}}function vt(e=!0){Z(null),V(null),De(null),e&&k?.deactivate()}function $r(){var e=y.b,t=k,n=e.is_rendered();return e.update_pending_count(1),t.increment(n),()=>{e.update_pending_count(-1),t.decrement(n)}}function At(e){var t=R|$,n=b!==null&&(b.f&R)!==0?b:null;return y!==null&&(y.f|=Ne),{ctx:w,deps:null,effects:null,equals:fn,f:t,fn:e,reactions:null,rv:0,v:C,wv:0,parent:n??y,ac:null}}function Or(e,t,n){y===null&&lr();var s=void 0,i=He(C),a=!b,f=new Map;return Hr(()=>{var o=rn();s=o.promise;try{Promise.resolve(e()).then(o.resolve,o.reject).finally(vt)}catch(d){o.reject(d),vt()}var l=k;if(a){var u=$r();f.get(l)?.reject(he),f.delete(l),f.set(l,o)}const c=(d,v=void 0)=>{if(l.activate(),v)v!==he&&(i.f|=oe,tt(i,v));else{(i.f&oe)!==0&&(i.f^=oe),tt(i,d);for(const[_,g]of f){if(f.delete(_),_===l)break;g.reject(he)}}u&&u()};o.promise.then(c,d=>c(null,d||"unknown"))}),Cn(()=>{for(const o of f.values())o.reject(he)}),new Promise(o=>{function l(u){function c(){u===s?o(i):l(s)}u.then(c,c)}l(s)})}function Nr(e){const t=At(e);return t.equals=cn,t}function Pr(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)j(t[n])}}function Lr(e){for(var t=e.parent;t!==null;){if((t.f&R)===0)return(t.f&ie)===0?t:null;t=t.parent}return null}function Mt(e){var t,n=y;Z(Lr(e));try{e.f&=~ge,Pr(e),t=In(e)}finally{Z(n)}return t}function yn(e){var t=Mt(e);if(!e.equals(t)&&(e.wv=Fn(),(!k?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){x(e,M);return}me||(z!==null?(Ct()||k?.is_fork)&&z.set(e,t):St(e))}function Ur(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(he),t.teardown=_e,t.ac=null,Ye(t,0),Dt(t))}function wn(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&$e(t)}let gt=new Set;const ae=new Map;let En=!1;function He(e,t){var n={f:0,v:e,reactions:null,equals:fn,rv:0,wv:0};return n}function D(e,t){const n=He(e);return Jr(n),n}function Fr(e,t=!1,n=!0){const r=He(e);return t||(r.equals=cn),Ve&&n&&w!==null&&w.l!==null&&(w.l.s??=[]).push(r),r}function E(e,t,n=!1){b!==null&&(!G||(b.f&Yt)!==0)&&ze()&&(b.f&(R|fe|xt|Yt))!==0&&(B===null||!Ae.call(B,e))&&pr();let r=n?Pe(t):t;return tt(e,r)}function tt(e,t){if(!e.equals(t)){var n=e.v;me?ae.set(e,t):ae.set(e,n),e.v=t;var r=le.ensure();if(r.capture(e,n),(e.f&R)!==0){const s=e;(e.f&$)!==0&&Mt(s),St(s)}e.wv=Fn(),kn(e,$),ze()&&y!==null&&(y.f&M)!==0&&(y.f&(J|be))===0&&(I===null?Qr([e]):I.push(e)),!r.is_fork&>.size>0&&!En&&jr()}return t}function jr(){En=!1;for(const e of gt)(e.f&M)!==0&&x(e,K),Ge(e)&&$e(e);gt.clear()}function Ie(e){E(e,e.v+1)}function kn(e,t){var n=e.reactions;if(n!==null)for(var r=ze(),s=n.length,i=0;i<s;i++){var a=n[i],f=a.f;if(!(!r&&a===y)){var o=(f&$)===0;if(o&&x(a,t),(f&R)!==0){var l=a;z?.delete(l),(f&ge)===0&&(f&Y&&(a.f|=ge),kn(l,K))}else o&&((f&fe)!==0&&Q!==null&&Q.add(a),H(a))}}}function Pe(e){if(typeof e!="object"||e===null||je in e)return e;const t=kt(e);if(t!==rr&&t!==sr)return e;var n=new Map,r=er(e),s=D(0),i=ve,a=f=>{if(ve===i)return f();var o=b,l=ve;V(null),Gt(i);var u=f();return V(o),Gt(l),u};return r&&n.set("length",D(e.length)),new Proxy(e,{defineProperty(f,o,l){(!("value"in l)||l.configurable===!1||l.enumerable===!1||l.writable===!1)&&dr();var u=n.get(o);return u===void 0?a(()=>{var c=D(l.value);return n.set(o,c),c}):E(u,l.value,!0),!0},deleteProperty(f,o){var l=n.get(o);if(l===void 0){if(o in f){const u=a(()=>D(C));n.set(o,u),Ie(s)}}else E(l,C),Ie(s);return!0},get(f,o,l){if(o===je)return e;var u=n.get(o),c=o in f;if(u===void 0&&(!c||Fe(f,o)?.writable)&&(u=a(()=>{var v=Pe(c?f[o]:C),_=D(v);return _}),n.set(o,u)),u!==void 0){var d=p(u);return d===C?void 0:d}return Reflect.get(f,o,l)},getOwnPropertyDescriptor(f,o){var l=Reflect.getOwnPropertyDescriptor(f,o);if(l&&"value"in l){var u=n.get(o);u&&(l.value=p(u))}else if(l===void 0){var c=n.get(o),d=c?.v;if(c!==void 0&&d!==C)return{enumerable:!0,configurable:!0,value:d,writable:!0}}return l},has(f,o){if(o===je)return!0;var l=n.get(o),u=l!==void 0&&l.v!==C||Reflect.has(f,o);if(l!==void 0||y!==null&&(!u||Fe(f,o)?.writable)){l===void 0&&(l=a(()=>{var d=u?Pe(f[o]):C,v=D(d);return v}),n.set(o,l));var c=p(l);if(c===C)return!1}return u},set(f,o,l,u){var c=n.get(o),d=o in f;if(r&&o==="length")for(var v=l;v<c.v;v+=1){var _=n.get(v+"");_!==void 0?E(_,C):v in f&&(_=a(()=>D(C)),n.set(v+"",_))}if(c===void 0)(!d||Fe(f,o)?.writable)&&(c=a(()=>D(void 0)),E(c,Pe(l)),n.set(o,c));else{d=c.v!==C;var g=a(()=>Pe(l));E(c,g)}var T=Reflect.getOwnPropertyDescriptor(f,o);if(T?.set&&T.set.call(u,l),!d){if(r&&typeof o=="string"){var S=n.get("length"),O=Number(o);Number.isInteger(O)&&O>=S.v&&E(S,O+1)}Ie(s)}return!0},ownKeys(f){p(s);var o=Reflect.ownKeys(f).filter(c=>{var d=n.get(c);return d===void 0||d.v!==C});for(var[l,u]of n)u.v!==C&&!(l in f)&&o.push(l);return o},setPrototypeOf(){hr()}})}var zt,xn,Sn,Tn;function Ir(){if(zt===void 0){zt=window,xn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;Sn=Fe(t,"firstChild").get,Tn=Fe(t,"nextSibling").get,qt(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),qt(n)&&(n.__t=void 0)}}function nt(e=""){return document.createTextNode(e)}function rt(e){return Sn.call(e)}function at(e){return Tn.call(e)}function N(e,t){return rt(e)}function Le(e,t=!1){{var n=rt(e);return n instanceof Comment&&n.data===""?at(n):n}}function A(e,t=1,n=!1){let r=e;for(;t--;)r=at(r);return r}function qr(){return!1}function Yr(e,t,n){return document.createElementNS(an,e,void 0)}function An(e){var t=b,n=y;V(null),Z(null);try{return e()}finally{V(t),Z(n)}}function Mn(e){y===null&&(b===null&&ur(),fr()),me&&ar()}function Br(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function te(e,t){var n=y;n!==null&&(n.f&W)!==0&&(e|=W);var r={ctx:w,deps:null,nodes:null,f:e|$|Y,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},s=r;if((e&Be)!==0)Re!==null?Re.push(r):H(r);else if(t!==null){try{$e(r)}catch(a){throw j(r),a}s.deps===null&&s.teardown===null&&s.nodes===null&&s.first===s.last&&(s.f&Ne)===0&&(s=s.first,(e&fe)!==0&&(e&Ce)!==0&&s!==null&&(s.f|=Ce))}if(s!==null&&(s.parent=n,n!==null&&Br(s,n),b!==null&&(b.f&R)!==0&&(e&be)===0)){var i=b;(i.effects??=[]).push(s)}return r}function Ct(){return b!==null&&!G}function Cn(e){const t=te(Me,null);return x(t,M),t.teardown=e,t}function mt(e){Mn();var t=y.f,n=!b&&(t&J)!==0&&(t&Oe)===0;if(n){var r=w;(r.e??=[]).push(e)}else return Dn(e)}function Dn(e){return te(Be|on,e)}function Vr(e){return Mn(),te(Me|on,e)}function zr(e){le.ensure();const t=te(be|Ne,e);return(n={})=>new Promise(r=>{n.outro?qe(t,()=>{j(t),r(void 0)}):(j(t),r(void 0))})}function Hr(e){return te(xt|Ne,e)}function Gr(e,t=0){return te(Me|t,e)}function ke(e,t=[],n=[],r=[]){Dr(r,t,n,s=>{te(Me,()=>e(...s.map(p)))})}function Rn(e,t=0){var n=te(fe|t,e);return n}function X(e){return te(J|Ne,e)}function $n(e){var t=e.teardown;if(t!==null){const n=me,r=b;Ht(!0),V(null);try{t.call(null)}finally{Ht(n),V(r)}}}function Dt(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){const s=n.ac;s!==null&&An(()=>{s.abort(he)});var r=n.next;(n.f&be)!==0?n.parent=null:j(n,t),n=r}}function Kr(e){for(var t=e.first;t!==null;){var n=t.next;(t.f&J)===0&&j(t),t=n}}function j(e,t=!0){var n=!1;(t||(e.f&or)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Wr(e.nodes.start,e.nodes.end),n=!0),Dt(e,t&&!n),Ye(e,0),x(e,ie);var r=e.nodes&&e.nodes.t;if(r!==null)for(const i of r)i.stop();$n(e);var s=e.parent;s!==null&&s.first!==null&&On(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Wr(e,t){for(;e!==null;){var n=e===t?null:at(e);e.remove(),e=n}}function On(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 qe(e,t,n=!0){var r=[];Nn(e,r,!0);var s=()=>{n&&j(e),t&&t()},i=r.length;if(i>0){var a=()=>--i||s();for(var f of r)f.out(a)}else s()}function Nn(e,t,n){if((e.f&W)===0){e.f^=W;var r=e.nodes&&e.nodes.t;if(r!==null)for(const f of r)(f.is_global||n)&&t.push(f);for(var s=e.first;s!==null;){var i=s.next,a=(s.f&Ce)!==0||(s.f&J)!==0&&(e.f&fe)!==0;Nn(s,t,a?n:!1),s=i}}}function Zr(e){Pn(e,!0)}function Pn(e,t){if((e.f&W)!==0){e.f^=W,(e.f&M)===0&&(x(e,$),H(e));for(var n=e.first;n!==null;){var r=n.next,s=(n.f&Ce)!==0||(n.f&J)!==0;Pn(n,s?t:!1),n=r}var i=e.nodes&&e.nodes.t;if(i!==null)for(const a of i)(a.is_global||t)&&a.in()}}function Ln(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var s=n===r?null:at(n);t.append(n),n=s}}let et=!1,me=!1;function Ht(e){me=e}let b=null,G=!1;function V(e){b=e}let y=null;function Z(e){y=e}let B=null;function Jr(e){b!==null&&(B===null?B=[e]:B.push(e))}let P=null,F=0,I=null;function Qr(e){I=e}let Un=1,pe=0,ve=pe;function Gt(e){ve=e}function Fn(){return++Un}function Ge(e){var t=e.f;if((t&$)!==0)return!0;if(t&R&&(e.f&=~ge),(t&K)!==0){for(var n=e.deps,r=n.length,s=0;s<r;s++){var i=n[s];if(Ge(i)&&yn(i),i.wv>e.wv)return!0}(t&Y)!==0&&z===null&&x(e,M)}return!1}function jn(e,t,n=!0){var r=e.reactions;if(r!==null&&!(B!==null&&Ae.call(B,e)))for(var s=0;s<r.length;s++){var i=r[s];(i.f&R)!==0?jn(i,t,!1):t===i&&(n?x(i,$):(i.f&M)!==0&&x(i,K),H(i))}}function In(e){var t=P,n=F,r=I,s=b,i=B,a=w,f=G,o=ve,l=e.f;P=null,F=0,I=null,b=(l&(J|be))===0?e:null,B=null,De(e.ctx),G=!1,ve=++pe,e.ac!==null&&(An(()=>{e.ac.abort(he)}),e.ac=null);try{e.f|=_t;var u=e.fn,c=u();e.f|=Oe;var d=e.deps,v=k?.is_fork;if(P!==null){var _;if(v||Ye(e,F),d!==null&&F>0)for(d.length=F+P.length,_=0;_<P.length;_++)d[F+_]=P[_];else e.deps=d=P;if(Ct()&&(e.f&Y)!==0)for(_=F;_<d.length;_++)(d[_].reactions??=[]).push(e)}else!v&&d!==null&&F<d.length&&(Ye(e,F),d.length=F);if(ze()&&I!==null&&!G&&d!==null&&(e.f&(R|K|$))===0)for(_=0;_<I.length;_++)jn(I[_],e);if(s!==null&&s!==e){if(pe++,s.deps!==null)for(let g=0;g<n;g+=1)s.deps[g].rv=pe;if(t!==null)for(const g of t)g.rv=pe;I!==null&&(r===null?r=I:r.push(...I))}return(e.f&oe)!==0&&(e.f^=oe),c}catch(g){return pn(g)}finally{e.f^=_t,P=t,F=n,I=r,b=s,B=i,De(a),G=f,ve=o}}function Xr(e,t){let n=t.reactions;if(n!==null){var r=tr.call(n,e);if(r!==-1){var s=n.length-1;s===0?n=t.reactions=null:(n[r]=n[s],n.pop())}}if(n===null&&(t.f&R)!==0&&(P===null||!Ae.call(P,t))){var i=t;(i.f&Y)!==0&&(i.f^=Y,i.f&=~ge),St(i),Ur(i),Ye(i,0)}}function Ye(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Xr(e,n[r])}function $e(e){var t=e.f;if((t&ie)===0){x(e,M);var n=y,r=et;y=e,et=!0;try{(t&(fe|sn))!==0?Kr(e):Dt(e),$n(e);var s=In(e);e.teardown=typeof s=="function"?s:null,e.wv=Un;var i;dt&&br&&(e.f&$)!==0&&e.deps}finally{et=r,y=n}}}function p(e){var t=e.f,n=(t&R)!==0;if(b!==null&&!G){var r=y!==null&&(y.f&ie)!==0;if(!r&&(B===null||!Ae.call(B,e))){var s=b.deps;if((b.f&_t)!==0)e.rv<pe&&(e.rv=pe,P===null&&s!==null&&s[F]===e?F++:P===null?P=[e]:P.push(e));else{(b.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[b]:Ae.call(i,b)||i.push(b)}}}if(me&&ae.has(e))return ae.get(e);if(n){var a=e;if(me){var f=a.v;return((a.f&M)===0&&a.reactions!==null||Yn(a))&&(f=Mt(a)),ae.set(a,f),f}var o=(a.f&Y)===0&&!G&&b!==null&&(et||(b.f&Y)!==0),l=(a.f&Oe)===0;Ge(a)&&(o&&(a.f|=Y),yn(a)),o&&!l&&(wn(a),qn(a))}if(z?.has(e))return z.get(e);if((e.f&oe)!==0)throw e.v;return e.v}function qn(e){if(e.f|=Y,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&R)!==0&&(t.f&Y)===0&&(wn(t),qn(t))}function Yn(e){if(e.v===C)return!0;if(e.deps===null)return!1;for(const t of e.deps)if(ae.has(t)||(t.f&R)!==0&&Yn(t))return!0;return!1}function ft(e){var t=G;try{return G=!0,e()}finally{G=t}}function es(e){if(!(typeof e!="object"||!e||e instanceof EventTarget)){if(je in e)bt(e);else if(!Array.isArray(e))for(let t in e){const n=e[t];typeof n=="object"&&n&&je in n&&bt(n)}}}function bt(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{bt(e[r],t)}catch{}const n=kt(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){const r=nn(n);for(let s in r){const i=r[s].get;if(i)try{i.call(e)}catch{}}}}}const ts=["touchstart","touchmove"];function ns(e){return ts.includes(e)}const Ue=Symbol("events"),Bn=new Set,yt=new Set;function ee(e,t,n){(t[Ue]??={})[e]=n}function Vn(e){for(var t=0;t<e.length;t++)Bn.add(e[t]);for(var n of yt)n(e)}let Kt=null;function Wt(e){var t=this,n=t.ownerDocument,r=e.type,s=e.composedPath?.()||[],i=s[0]||e.target;Kt=e;var a=0,f=Kt===e&&e[Ue];if(f){var o=s.indexOf(f);if(o!==-1&&(t===document||t===window)){e[Ue]=t;return}var l=s.indexOf(t);if(l===-1)return;o<=l&&(a=o)}if(i=s[a]||e.target,i!==t){tn(e,"currentTarget",{configurable:!0,get(){return i||n}});var u=b,c=y;V(null),Z(null);try{for(var d,v=[];i!==null;){var _=i.assignedSlot||i.parentNode||i.host||null;try{var g=i[Ue]?.[r];g!=null&&(!i.disabled||e.target===i)&&g.call(i,e)}catch(T){d?v.push(T):d=T}if(e.cancelBubble||_===t||_===null)break;i=_}if(d){for(let T of v)queueMicrotask(()=>{throw T});throw d}}finally{e[Ue]=t,delete e.currentTarget,V(u),Z(c)}}}const rs=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function ss(e){return rs?.createHTML(e)??e}function is(e){var t=Yr("template");return t.innerHTML=ss(e.replaceAll("<!>","<!---->")),t.content}function Zt(e,t){var n=y;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function ye(e,t){var n=(t&vr)!==0,r=(t&gr)!==0,s,i=!e.startsWith("<!>");return()=>{s===void 0&&(s=is(i?e:"<!>"+e),n||(s=rt(s)));var a=r||xn?document.importNode(s,!0):s.cloneNode(!0);if(n){var f=rt(a),o=a.lastChild;Zt(f,o)}else Zt(a,a);return a}}function de(e,t){e!==null&&e.before(t)}function re(e,t){var n=t==null?"":typeof t=="object"?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function os(e,t){return ls(e,t)}const Xe=new Map;function ls(e,{target:t,anchor:n,props:r={},events:s,context:i,intro:a=!0,transformError:f}){Ir();var o=void 0,l=zr(()=>{var u=n??t.appendChild(nt());Mr(u,{pending:()=>{}},v=>{ot({});var _=w;i&&(_.c=i),s&&(r.$$events=s),o=e(v,r)||{},lt()},f);var c=new Set,d=v=>{for(var _=0;_<v.length;_++){var g=v[_];if(!c.has(g)){c.add(g);var T=ns(g);for(const ue of[t,document]){var S=Xe.get(ue);S===void 0&&(S=new Map,Xe.set(ue,S));var O=S.get(g);O===void 0?(ue.addEventListener(g,Wt,{passive:T}),S.set(g,1)):S.set(g,O+1)}}}};return d(nr(Bn)),yt.add(d),()=>{for(var v of c)for(const T of[t,document]){var _=Xe.get(T),g=_.get(v);--g==0?(T.removeEventListener(v,Wt),_.delete(v),_.size===0&&Xe.delete(T)):_.set(v,g)}yt.delete(d),u!==n&&u.parentNode?.removeChild(u)}});return as.set(o,l),o}let as=new WeakMap;class fs{anchor;#e=new Map;#l=new Map;#t=new Map;#o=new Set;#n=!0;constructor(t,n=!0){this.anchor=t,this.#n=n}#i=t=>{if(this.#e.has(t)){var n=this.#e.get(t),r=this.#l.get(n);if(r)Zr(r),this.#o.delete(n);else{var s=this.#t.get(n);s&&(this.#l.set(n,s.effect),this.#t.delete(n),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),r=s.effect)}for(const[i,a]of this.#e){if(this.#e.delete(i),i===t)break;const f=this.#t.get(a);f&&(j(f.effect),this.#t.delete(a))}for(const[i,a]of this.#l){if(i===n||this.#o.has(i))continue;const f=()=>{if(Array.from(this.#e.values()).includes(i)){var l=document.createDocumentFragment();Ln(a,l),l.append(nt()),this.#t.set(i,{effect:a,fragment:l})}else j(a);this.#o.delete(i),this.#l.delete(i)};this.#n||!r?(this.#o.add(i),qe(a,f,!1)):f()}}};#r=t=>{this.#e.delete(t);const n=Array.from(this.#e.values());for(const[r,s]of this.#t)n.includes(r)||(j(s.effect),this.#t.delete(r))};ensure(t,n){var r=k,s=qr();if(n&&!this.#l.has(t)&&!this.#t.has(t))if(s){var i=document.createDocumentFragment(),a=nt();i.append(a),this.#t.set(t,{effect:X(()=>n(a)),fragment:i})}else this.#l.set(t,X(()=>n(this.anchor)));if(this.#e.set(r,t),s){for(const[f,o]of this.#l)f===t?r.unskip_effect(o):r.skip_effect(o);for(const[f,o]of this.#t)f===t?r.unskip_effect(o.effect):r.skip_effect(o.effect);r.oncommit(this.#i),r.ondiscard(this.#r)}else this.#i(r)}}function Se(e,t,n=!1){var r=new fs(e),s=n?Ce:0;function i(a,f){r.ensure(a,f)}Rn(()=>{var a=!1;t((f,o=0)=>{a=!0,i(o,f)}),a||i(!1,null)},s)}const us=Symbol("is custom element"),cs=Symbol("is html");function wt(e,t,n,r){var s=ds(e);s[t]!==(s[t]=n)&&(n==null?e.removeAttribute(t):typeof n!="string"&&hs(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ds(e){return e.__attributes??={[us]:e.nodeName.includes("-"),[cs]:e.namespaceURI===an}}var Jt=new Map;function hs(e){var t=e.getAttribute("is")||e.nodeName,n=Jt.get(t);if(n)return n;Jt.set(t,n=[]);for(var r,s=e,i=Element.prototype;i!==s;){r=nn(s);for(var a in r)r[a].set&&n.push(a);s=kt(s)}return n}function ps(e=!1){const t=w,n=t.l.u;if(!n)return;let r=()=>es(t.s);if(e){let s=0,i={};const a=At(()=>{let f=!1;const o=t.s;for(const l in o)o[l]!==i[l]&&(i[l]=o[l],f=!0);return f&&s++,s});r=()=>p(a)}n.b.length&&Vr(()=>{Qt(t,r),ht(n.b)}),mt(()=>{const s=ft(()=>n.m.map(ir));return()=>{for(const i of s)typeof i=="function"&&i()}}),n.a.length&&mt(()=>{Qt(t,r),ht(n.a)})}function Qt(e,t){if(e.l.s)for(const n of e.l.s)p(n);t()}function zn(e,t,n){if(e==null)return t(void 0),_e;const r=ft(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}const Ee=[];function Xt(e,t=_e){let n=null;const r=new Set;function s(f){if(un(e,f)&&(e=f,n)){const o=!Ee.length;for(const l of r)l[1](),Ee.push(l,e);if(o){for(let l=0;l<Ee.length;l+=2)Ee[l][0](Ee[l+1]);Ee.length=0}}}function i(f){s(f(e))}function a(f,o=_e){const l=[f,o];return r.add(l),r.size===1&&(n=t(s,i)||_e),f(e),()=>{r.delete(l),r.size===0&&n&&(n(),n=null)}}return{set:s,update:i,subscribe:a}}function _s(e){let t;return zn(e,n=>t=n)(),t}let Et=Symbol();function st(e,t,n){const r=n[t]??={store:null,source:Fr(void 0),unsubscribe:_e};if(r.store!==e&&!(Et in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=_e;else{var s=!0;r.unsubscribe=zn(e,i=>{s?r.source.v=i:E(r.source,i)}),s=!1}return e&&Et in n?_s(e):p(r.source)}function it(e,t){return e.set(t),t}function Rt(){const e={};function t(){Cn(()=>{for(var n in e)e[n].unsubscribe();tn(e,Et,{enumerable:!1,value:!0})})}return[e,t]}function $t(e){w===null&&ln(),Ve&&w.l!==null?vs(w).m.push(e):mt(()=>{const t=ft(e);if(typeof t=="function")return t})}function vs(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}const gs="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(gs);yr();var ms=ye("<strong>cc</strong> <br/>",1),bs=ye("<strong>bcc</strong> <br/>",1),ys=ye("<strong>subject</strong> <br/>",1),ws=ye("<strong>body</strong> <br/>",1),Es=ye('<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 ks(e,t){ot(t,!0);const n=()=>st(f,"$selectedMailto",r),[r,s]=Rt(),i="type-url",a="type-data",f=dn("selectedMailto");let o="",l=D(""),u=D(""),c=D(""),d=D(""),v=D(""),_=D(""),g=D(!1);function T(){const h=new URL(n().href),{searchParams:m}=h;E(l,h.pathname,!0),E(u,m.get("cc"),!0),E(c,m.get("bcc"),!0),E(d,m.get("subject"),!0),E(v,m.get("body"),!0)}function S(){const{dataset:h}=n();E(l,h.address&&h.domain?`${h.address}@${h.domain}`:"",!0),E(u,h.ccAddress&&h.ccDomain?`${h.ccAddress}@${h.ccDomain}`:"",!0),E(c,h.bccAddress&&h.bccDomain?`${h.bccAddress}@${h.bccDomain}`:"",!0),E(d,h.subject,!0),E(v,h.body,!0)}function O(){switch(o){case i:return n().href;case a:const h=new URLSearchParams;p(u)&&h.set("cc",p(u)),p(c)&&h.set("bcc",p(c)),p(d)&&h.set("subject",p(d)),p(v)&&h.set("body",p(v));const m=new URL(`mailto:${p(l)}`);return m.search=h.toString(),m.toString();default:return console.error(`Invalid mailto type: ${o}`),""}}function ue(h){h.preventDefault();const m="https://mail.google.com/mail/?extsrc=mailto&url="+encodeURIComponent(p(_));window.open(m,"_blank","noopener, noreferrer"),ne()}function Ke(h){h.preventDefault();const m=new URLSearchParams;m.set("path","/mail/action/compose"),p(l)&&m.set("to",p(l)),p(d)&&m.set("subject",p(d)),p(v)&&m.set("body",p(v));const U=new URL("https://outlook.live.com/owa/");U.search=m.toString(),window.open(U.toString(),"_blank","noopener, noreferrer"),ne()}function We(h){h.preventDefault();const m=new URLSearchParams;p(l)&&m.set("to",p(l)),p(d)&&m.set("subject",p(d)),p(v)&&m.set("body",p(v));const U=new URL("https://compose.mail.yahoo.com");U.search=m.toString(),window.open(U.toString(),"_blank","noopener, noreferrer"),ne()}async function Ze(h){h.preventDefault();try{await navigator.clipboard.writeText(p(l)),E(g,!0),setTimeout(ne,1500)}catch(m){console.error("Unable to copy to clipboard.",m)}}function ne(h=null){h&&h.currentTarget!==h.target||it(f,null)}$t(()=>{n().href.startsWith("mailto:")?(o=i,T()):(o=a,S()),E(_,O(),!0)});var we=Es(),ut=N(we),Je=N(ut),L=N(Je),ce=A(Je,2),ct=N(ce),Ot=N(ct);{var Hn=h=>{var m=ms(),U=A(Le(m));ke(()=>re(U,` ${p(u)??""}`)),de(h,m)};Se(Ot,h=>{p(u)&&h(Hn)})}var Nt=A(Ot,2);{var Gn=h=>{var m=bs(),U=A(Le(m));ke(()=>re(U,` ${p(c)??""}`)),de(h,m)};Se(Nt,h=>{p(c)&&h(Gn)})}var Pt=A(Nt,2);{var Kn=h=>{var m=ys(),U=A(Le(m));ke(()=>re(U,` ${p(d)??""}`)),de(h,m)};Se(Pt,h=>{p(d)&&h(Kn)})}var Wn=A(Pt,2);{var Zn=h=>{var m=ws(),U=A(Le(m));ke(()=>re(U,` ${p(v)??""}`)),de(h,m)};Se(Wn,h=>{p(v)&&h(Zn)})}var Jn=A(ce,2),Lt=N(Jn),Ut=A(Lt,2),Ft=A(Ut,2),jt=A(Ft,2),It=A(jt,2),Qn=N(It),Xn=N(Qn);ke(()=>{re(L,p(l)),wt(jt,"href",p(_)),re(Xn,p(g)?"copied":"copy")}),ee("click",we,ne),ee("click",Lt,ue),ee("click",Ut,Ke),ee("click",Ft,We),ee("click",It,Ze),de(e,we),lt(),s()}Vn(["click"]);var xs=ye('<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 Ss(e,t){ot(t,!0);const n=()=>st(a,"$selectedCallto",r),[r,s]=Rt(),i=/^(tel:)|^(callto:)/,a=dn("selectedCallto");let f=D(""),o=D(!1);function l(){E(f,n().href.replace(i,""),!0)}function u(){const{dataset:L}=n();E(f,L.tel,!0)}function c(L){L.preventDefault();const ct=`https://wa.me/${p(f).replaceAll(/\D/g,"").replace(/^0+/,"")}`;window.open(ct,"_blank","noopener, noreferrer"),_()}function d(L){L.preventDefault();const ce=`skype:${encodeURIComponent(p(f))}`;window.open(ce,"_blank","noopener, noreferrer"),_()}async function v(L){L.preventDefault();try{await navigator.clipboard.writeText(p(f)),E(o,!0),setTimeout(_,1500)}catch(ce){console.error("Unable to copy to clipboard.",ce)}}function _(L=null){L&&L.currentTarget!==L.target||it(a,null)}$t(()=>{i.test(n().href)?l():u()});var g=xs(),T=N(g),S=N(T),O=N(S),ue=A(S,2),Ke=N(ue),We=A(Ke,2),Ze=A(We,2),ne=A(Ze,2),we=A(ne,2),ut=N(we),Je=N(ut);ke(()=>{re(O,p(f)),wt(Ze,"href",`tel:${p(f)}`),wt(ne,"href",`sms:${p(f)}`),re(Je,p(o)?"copied":"copy")}),ee("click",g,_),ee("click",Ke,c),ee("click",We,d),ee("click",we,v),de(e,g),lt(),s()}Vn(["click"]);var Ts=ye("<!> <!>",1);function As(e,t){ot(t,!1);const n=()=>st(o,"$selectedMailto",s),r=()=>st(l,"$selectedCallto",s),[s,i]=Rt(),a='a[href^="mailto:"]:not(.no-maildo), a[href="#maildo"][data-address], a.maildo[data-address]',f='a[href^="tel:"]:not(.no-maildo), a[href^="callto:"]:not(.no-maildo), a[href="#maildo"][data-tel], a.maildo[data-tel]',o=Xt(null);Bt("selectedMailto",o);const l=Xt(null);Bt("selectedCallto",l),$t(()=>{const g=document.querySelectorAll(a),T=document.querySelectorAll(f);g.forEach(S=>{S.addEventListener("click",O=>{O.preventDefault(),it(o,S)})}),T.forEach(S=>{S.addEventListener("click",O=>{O.preventDefault(),it(l,S)})})}),ps();var u=Ts(),c=Le(u);{var d=g=>{ks(g,{})};Se(c,g=>{n()&&g(d)})}var v=A(c,2);{var _=g=>{Ss(g,{})};Se(v,g=>{r()&&g(_)})}de(e,u),lt(),i()}const en="maildo-app";function Ms(){let e=document.getElementById(en);if(!e)e=document.createElement("slot"),e.id=en,document.body.appendChild(e);else if(e.childElementCount>0){console.warn("App target already exists");return}os(As,{target:e})}Ms();
|
|
1
|
+
(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),e.crossOrigin===`use-credentials`?t.credentials=`include`:e.crossOrigin===`anonymous`?t.credentials=`omit`:t.credentials=`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var e=Array.isArray,t=Array.prototype.indexOf,n=Array.prototype.includes,r=Array.from,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyDescriptors,s=Object.prototype,c=Array.prototype,l=Object.getPrototypeOf,u=Object.isExtensible,d=()=>{};function f(e){return e()}function p(e){for(var t=0;t<e.length;t++)e[t]()}function m(){var e,t;return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}var h=1024,g=2048,_=4096,ee=8192,te=16384,ne=32768,re=1<<25,ie=65536,v=1<<19,y=1<<20,b=65536,ae=1<<21,oe=1<<22,se=1<<23,ce=Symbol(`$state`),le=Symbol(``),x=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},ue=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function de(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function fe(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function pe(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function me(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function he(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function ge(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function _e(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function ve(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function ye(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function be(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function xe(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Se={},S=Symbol(),Ce=`http://www.w3.org/1999/xhtml`;function we(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Te(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var C=!1;function Ee(e){C=e}var w;function T(e){if(e===null)throw we(),Se;return w=e}function De(){return T(L(w))}function E(e){if(C){if(L(w)!==null)throw we(),Se;w=e}}function Oe(e=1){if(C){for(var t=e,n=w;t--;)n=L(n);w=n}}function ke(e=!0){for(var t=0,n=w;;){if(n.nodeType===8){var r=n.data;if(r===`]`){if(t===0)return n;--t}else (r===`[`||r===`[!`||r[0]===`[`&&!isNaN(Number(r.slice(1))))&&(t+=1)}var i=L(n);e&&n.remove(),n=i}}function Ae(e){if(!e||e.nodeType!==8)throw we(),Se;return e.data}function je(e){return e===this.v}function Me(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Ne(e){return!Me(e,this.v)}var Pe=!1,Fe=!1;function Ie(){Fe=!0}var D=null;function Le(e){D=e}function Re(e){return Ue(`getContext`).get(e)}function ze(e,t){let n=Ue(`setContext`);if(Pe){var r=K.f;!U&&r&32&&!D.i||_e()}return n.set(e,t),t}function Be(e,t=!1,n){D={p:D,i:!1,c:null,e:null,s:e,x:null,r:K,l:Fe&&!t?{s:null,u:null,$:[]}:null}}function Ve(e){var t=D,n=t.e;if(n!==null){t.e=null;for(var r of n)mn(r)}return e!==void 0&&(t.x=e),t.i=!0,D=t.p,e??{}}function He(){return!Fe||D!==null&&D.l===null}function Ue(e){return D===null&&de(e),D.c??=new Map(We(D)||void 0)}function We(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var Ge=[];function Ke(){var e=Ge;Ge=[],p(e)}function qe(e){if(Ge.length===0&&!dt){var t=Ge;queueMicrotask(()=>{t===Ge&&Ke()})}Ge.push(e)}function Je(e){var t=K;if(t===null)return U.f|=se,e;if(!(t.f&32768)&&!(t.f&4))throw e;Ye(e,t)}function Ye(e,t){for(;t!==null;){if(t.f&128){if(!(t.f&32768))throw e;try{t.b.error(e);return}catch(t){e=t}}t=t.parent}throw e}var Xe=~(g|_|h);function O(e,t){e.f=e.f&Xe|t}function Ze(e){e.f&512||e.deps===null?O(e,h):O(e,_)}function Qe(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=b,Qe(t.deps))}function $e(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),Qe(e.deps),O(e,h)}function et(e,t,n){if(e==null)return t(void 0),n&&n(void 0),d;let r=Xn(()=>e.subscribe(t,n));return r.unsubscribe?()=>r.unsubscribe():r}var tt=[];function nt(e,t=d){let n=null,r=new Set;function i(t){if(Me(e,t)&&(e=t,n)){let t=!tt.length;for(let t of r)t[1](),tt.push(t,e);if(t){for(let e=0;e<tt.length;e+=2)tt[e][0](tt[e+1]);tt.length=0}}}function a(t){i(t(e))}function o(o,s=d){let c=[o,s];return r.add(c),r.size===1&&(n=t(i,a)||d),o(e),()=>{r.delete(c),r.size===0&&n&&(n(),n=null)}}return{set:i,update:a,subscribe:o}}function rt(e){let t;return et(e,e=>t=e)(),t}var it=!1,at=Symbol();function ot(e,t,n){let r=n[t]??={store:null,source:Gt(void 0),unsubscribe:d};if(r.store!==e&&!(at in n))if(r.unsubscribe(),r.store=e??null,e==null)r.source.v=void 0,r.unsubscribe=d;else{var i=!0;r.unsubscribe=et(e,e=>{i?r.source.v=e:F(r.source,e)}),i=!1}return e&&at in n?rt(e):Q(r.source)}function st(e,t){return lt(e,t),t}function ct(){let e={};function t(){fn(()=>{for(var t in e)e[t].unsubscribe();i(e,at,{enumerable:!1,value:!0})})}return[e,t]}function lt(e,t){it=!0;try{e.set(t)}finally{it=!1}}var k=new Set,A=null,j=null,ut=null,dt=!1,ft=!1,pt=null,mt=null,ht=0,gt=1,_t=class e{id=gt++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=[];#s=new Set;#c=new Set;#l=new Map;is_fork=!1;#u=!1;#d=new Set;#f(){return this.is_fork||this.#r.size>0}#p(){for(let n of this.#d)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#l.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#l.has(e)||this.#l.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#l.get(e);if(t){this.#l.delete(e);for(var n of t.d)O(n,g),this.schedule(n);for(n of t.m)O(n,_),this.schedule(n)}}#m(){if(ht++>1e3&&(k.delete(this),vt()),!this.#f()){for(let e of this.#s)this.#c.delete(e),O(e,g),this.schedule(e);for(let e of this.#c)O(e,_),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=pt=[],r=[],i=mt=[];for(let e of t)try{this.#h(e,n,r)}catch(t){throw wt(e),t}if(A=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(pt=null,mt=null,this.#f()||this.#p()){this.#g(r),this.#g(n);for(let[e,t]of this.#l)Ct(e,t)}else{this.#n.size===0&&k.delete(this),this.#s.clear(),this.#c.clear();for(let e of this.#e)e(this);this.#e.clear(),yt(r),yt(n),this.#i?.resolve()}var o=A;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(k.add(o),o.#m()),k.has(this)||this.#_()}#h(e,t,n){e.f^=h;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#l.has(r))&&r.fn!==null){a?r.f^=h:i&4?t.push(r):Pe&&i&16777224?n.push(r):Hn(r)&&(i&16&&this.#c.add(r),qn(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#g(e){for(var t=0;t<e.length;t+=1)$e(e[t],this.#s,this.#c)}capture(e,t,n=!1){t!==S&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,n]),j?.set(e,e.v))}activate(){A=this}deactivate(){A=null,j=null}flush(){try{ft=!0,A=this,this.#m()}finally{ht=0,ut=null,pt=null,mt=null,ft=!1,A=null,j=null,N.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),k.delete(this)}register_created_effect(e){this.#o.push(e)}#_(){for(let l of k){var e=l.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(l.current.has(r)){var n=l.current.get(r)[0];if(e&&i!==n)l.current.set(r,[i,a]);else continue}t.push(r)}var r=[...l.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&l.discard();else if(t.length>0){l.activate();var i=new Set,a=new Map;for(var o of t)bt(o,r,i,a);a=new Map;var s=[...l.current.keys()].filter(e=>this.current.has(e)?this.current.get(e)[0]!==e:!0);for(let e of this.#o)!(e.f&155648)&&xt(e,s,a)&&(e.f&4194320?(O(e,g),l.schedule(e)):l.#s.add(e));if(l.#a.length>0){l.apply();for(var c of l.#a)l.#h(c,[],[]);l.#a=[]}l.deactivate()}}for(let e of k)e.#d.has(this)&&(e.#d.delete(this),e.#d.size===0&&!e.#f()&&(e.activate(),e.#m()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#u||n||(this.#u=!0,qe(()=>{this.#u=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#s.add(t);for(let e of t)this.#c.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=m()).promise}static ensure(){if(A===null){let t=A=new e;ft||(k.add(A),dt||qe(()=>{A===t&&t.flush()}))}return A}apply(){if(!Pe||!this.is_fork&&k.size===1){j=null;return}j=new Map;for(let[e,[t]]of this.current)j.set(e,t);for(let n of k)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#d.add(n);else for(let[e,t]of n.previous)j.has(e)||j.set(e,t)}}schedule(e){if(ut=e,e.b?.is_pending&&e.f&16777228&&!(e.f&32768)){e.b.defer_effect(e);return}for(var t=e;t.parent!==null;){t=t.parent;var n=t.f;if(pt!==null&&t===K&&(Pe||(U===null||!(U.f&2))&&!it))return;if(n&96){if(!(n&1024))return;t.f^=h}}this.#a.push(t)}};function vt(){try{ge()}catch(e){Ye(e,ut)}}var M=null;function yt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&Hn(r)&&(M=new Set,qn(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Tn(r),M?.size>0)){N.clear();for(let e of M){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)M.has(n)&&(M.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||qn(n)}}M.clear()}}M=null}}function bt(e,t,n,r){if(!n.has(e)&&(n.add(e),e.reactions!==null))for(let i of e.reactions){let e=i.f;e&2?bt(i,t,n,r):e&4194320&&!(e&2048)&&xt(i,t,r)&&(O(i,g),St(i))}}function xt(e,t,r){let i=r.get(e);if(i!==void 0)return i;if(e.deps!==null)for(let i of e.deps){if(n.call(t,i))return!0;if(i.f&2&&xt(i,t,r))return r.set(i,!0),!0}return r.set(e,!1),!1}function St(e){A.schedule(e)}function Ct(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),O(e,h);for(var n=e.first;n!==null;)Ct(n,t),n=n.next}}function wt(e){O(e,h);for(var t=e.first;t!==null;)wt(t),t=t.next}function Tt(e){let t=0,n=Wt(0),r;return()=>{dn()&&(Q(n),vn(()=>(t===0&&(r=Xn(()=>e(()=>Jt(n)))),t+=1,()=>{qe(()=>{--t,t===0&&(r?.(),r=void 0,Jt(n))})})))}}var Et=ie|v;function Dt(e,t,n,r){new Ot(e,t,n,r)}var Ot=class{parent;is_pending=!1;transform_error;#e;#t=C?w:null;#n;#r;#i;#a=null;#o=null;#s=null;#c=null;#l=0;#u=0;#d=!1;#f=new Set;#p=new Set;#m=null;#h=Tt(()=>(this.#m=Wt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=K;t.b=this,t.f|=128,n(e)},this.parent=K.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=bn(()=>{if(C){let e=this.#t;De();let t=e.data===`[!`;if(e.data.startsWith(`[?`)){let t=JSON.parse(e.data.slice(2));this.#_(t)}else t?this.#v():this.#g()}else this.#y()},Et),C&&(this.#e=w)}#g(){try{this.#a=V(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=V(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=V(()=>e(this.#e)),qe(()=>{var e=this.#c=document.createDocumentFragment(),t=I();e.append(t),this.#a=this.#x(()=>V(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,En(this.#o,()=>{this.#o=null}),this.#b(A))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=V(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();An(this.#a,e);let t=this.#n.pending;this.#o=V(()=>t(this.#e))}else this.#b(A)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){$e(e,this.#f,this.#p)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#n.pending}#x(e){var t=K,n=U,r=D;q(this.#i),G(this.#i),Le(this.#i.ctx);try{return _t.ensure(),e()}catch(e){return Je(e),null}finally{q(t),G(n),Le(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&En(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,qe(()=>{this.#d=!1,this.#m&&Kt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),Q(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(H(this.#a),null),this.#o&&=(H(this.#o),null),this.#s&&=(H(this.#s),null),C&&(T(this.#t),Oe(),T(ke()));var r=!1,i=!1;let a=()=>{if(r){Te();return}r=!0,i&&xe(),this.#s!==null&&En(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Ye(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return V(()=>{var t=K;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Ye(e,this.#i.parent),null}}))};qe(()=>{var t;try{t=this.transform_error(e)}catch(e){Ye(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Ye(e,this.#i&&this.#i.parent)):o(t)})}};function kt(e,t,n,r){let i=He()?Nt:Ft;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=K,s=At(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||Ye(e,o)}jt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Mt();function d(){Promise.all(n.map(e=>Pt(e))).then(e=>l([...t.map(i),...e])).catch(e=>Ye(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),jt()}):d()}function At(){var e=K,t=U,n=D,r=A;return function(i=!0){q(e),G(t),Le(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function jt(e=!0){q(null),G(null),Le(null),e&&A?.deactivate()}function Mt(){var e=K,t=e.b,n=A,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Nt(e){var t=2|g,n=U!==null&&U.f&2?U:null;return K!==null&&(K.f|=v),{ctx:D,deps:null,effects:null,equals:je,f:t,fn:e,reactions:null,rv:0,v:S,wv:0,parent:n??K,ac:null}}function Pt(e,t,n){let r=K;r===null&&fe();var i=void 0,a=Wt(S),o=!U,s=new Map;return _n(()=>{var t=K,n=m();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(jt)}catch(e){n.reject(e),jt()}var c=A;if(o){if(t.f&32768)var l=Mt();if(r.b.is_rendered())s.get(c)?.reject(x),s.delete(c);else{for(let e of s.values())e.reject(x);s.clear()}s.set(c,n)}let u=(e,n=void 0)=>{if(l&&l(n===x),!(n===x||t.f&16384)){if(c.activate(),n)a.f|=se,Kt(a,n);else{a.f&8388608&&(a.f^=se),Kt(a,e);for(let[e,t]of s){if(s.delete(e),e===c)break;t.reject(x)}}c.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),fn(()=>{for(let e of s.values())e.reject(x)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function Ft(e){let t=Nt(e);return t.equals=Ne,t}function It(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)H(t[n])}}function Lt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Rt(e){var t,n=K;q(Lt(e));try{e.f&=~b,It(e),t=Wn(e)}finally{q(n)}return t}function zt(e){var t=e.v,n=Rt(e);if(!e.equals(n)&&(e.wv=Vn(),(!A?.is_fork||e.deps===null)&&(e.v=n,A?.capture(e,t,!0),e.deps===null))){O(e,h);return}Nn||(j===null?Ze(e):(dn()||A?.is_fork)&&j.set(e,n))}function Bt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(x),t.teardown=d,t.ac=null,Kn(t,0),Sn(t))}function Vt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&qn(t)}var Ht=new Set,N=new Map,Ut=!1;function Wt(e,t){return{f:0,v:e,reactions:null,equals:je,rv:0,wv:0}}function P(e,t){let n=Wt(e,t);return Fn(n),n}function Gt(e,t=!1,n=!0){let r=Wt(e);return t||(r.equals=Ne),Fe&&n&&D!==null&&D.l!==null&&(D.l.s??=[]).push(r),r}function F(e,t,r=!1){return U!==null&&(!W||U.f&131072)&&He()&&U.f&4325394&&(J===null||!n.call(J,e))&&be(),Kt(e,r?Xt(t):t,mt)}function Kt(e,t,n=null){if(!e.equals(t)){var r=e.v;Nn?N.set(e,t):N.set(e,r),e.v=t;var i=_t.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Rt(t),j===null&&Ze(t)}e.wv=Vn(),Yt(e,g,n),He()&&K!==null&&K.f&1024&&!(K.f&96)&&(Z===null?In([e]):Z.push(e)),!i.is_fork&&Ht.size>0&&!Ut&&qt()}return t}function qt(){Ut=!1;for(let e of Ht)e.f&1024&&O(e,_),Hn(e)&&qn(e);Ht.clear()}function Jt(e){F(e,e.v+1)}function Yt(e,t,n){var r=e.reactions;if(r!==null)for(var i=He(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===K)){var l=(c&g)===0;if(l&&O(s,t),c&2){var u=s;j?.delete(u),c&65536||(c&512&&(s.f|=b),Yt(u,_,n))}else if(l){var d=s;c&16&&M!==null&&M.add(d),n===null?St(d):n.push(d)}}}}function Xt(t){if(typeof t!=`object`||!t||ce in t)return t;let n=l(t);if(n!==s&&n!==c)return t;var r=new Map,i=e(t),o=P(0),u=null,d=zn,f=e=>{if(zn===d)return e();var t=U,n=zn;G(null),Bn(d);var r=e();return G(t),Bn(n),r};return i&&r.set(`length`,P(t.length,u)),new Proxy(t,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&ve();var i=r.get(t);return i===void 0?f(()=>{var e=P(n.value,u);return r.set(t,e),e}):F(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>P(S,u));r.set(t,e),Jt(o)}}else F(n,S),Jt(o);return!0},get(e,n,i){if(n===ce)return t;var o=r.get(n),s=n in e;if(o===void 0&&(!s||a(e,n)?.writable)&&(o=f(()=>P(Xt(s?e[n]:S),u)),r.set(n,o)),o!==void 0){var c=Q(o);return c===S?void 0:c}return Reflect.get(e,n,i)},getOwnPropertyDescriptor(e,t){var n=Reflect.getOwnPropertyDescriptor(e,t);if(n&&`value`in n){var i=r.get(t);i&&(n.value=Q(i))}else if(n===void 0){var a=r.get(t),o=a?.v;if(a!==void 0&&o!==S)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===ce)return!0;var n=r.get(t),i=n!==void 0&&n.v!==S||Reflect.has(e,t);return(n!==void 0||K!==null&&(!i||a(e,t)?.writable))&&(n===void 0&&(n=f(()=>P(i?Xt(e[t]):S,u)),r.set(t,n)),Q(n)===S)?!1:i},set(e,t,n,s){var c=r.get(t),l=t in e;if(i&&t===`length`)for(var d=n;d<c.v;d+=1){var p=r.get(d+``);p===void 0?d in e&&(p=f(()=>P(S,u)),r.set(d+``,p)):F(p,S)}if(c===void 0)(!l||a(e,t)?.writable)&&(c=f(()=>P(void 0,u)),F(c,Xt(n)),r.set(t,c));else{l=c.v!==S;var m=f(()=>Xt(n));F(c,m)}var h=Reflect.getOwnPropertyDescriptor(e,t);if(h?.set&&h.set.call(s,n),!l){if(i&&typeof t==`string`){var g=r.get(`length`),_=Number(t);Number.isInteger(_)&&_>=g.v&&F(g,_+1)}Jt(o)}return!0},ownKeys(e){Q(o);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==S});for(var[n,i]of r)i.v!==S&&!(n in e)&&t.push(n);return t},setPrototypeOf(){ye()}})}var Zt,Qt,$t,en;function tn(){if(Zt===void 0){Zt=window,Qt=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;$t=a(t,`firstChild`).get,en=a(t,`nextSibling`).get,u(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),u(n)&&(n.__t=void 0)}}function I(e=``){return document.createTextNode(e)}function nn(e){return $t.call(e)}function L(e){return en.call(e)}function R(e,t){if(!C)return nn(e);var n=nn(w);if(n===null)n=w.appendChild(I());else if(t&&n.nodeType!==3){var r=I();return n?.before(r),T(r),r}return t&&sn(n),T(n),n}function rn(e,t=!1){if(!C){var n=nn(e);return n instanceof Comment&&n.data===``?L(n):n}if(t){if(w?.nodeType!==3){var r=I();return w?.before(r),T(r),r}sn(w)}return w}function z(e,t=1,n=!1){let r=C?w:e;for(var i;t--;)i=r,r=L(r);if(!C)return r;if(n){if(r?.nodeType!==3){var a=I();return r===null?i?.after(a):r.before(a),T(a),a}sn(r)}return T(r),r}function an(){return!Pe||M!==null?!1:(K.f&ne)!==0}function on(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function sn(e){if(e.nodeValue.length<65536)return;let t=e.nextSibling;for(;t!==null&&t.nodeType===3;)t.remove(),e.nodeValue+=t.nodeValue,t=e.nextSibling}function cn(e){var t=U,n=K;G(null),q(null);try{return e()}finally{G(t),q(n)}}function ln(e){K===null&&(U===null&&he(e),me()),Nn&&pe(e)}function un(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function B(e,t){var n=K;n!==null&&n.f&8192&&(e|=ee);var r={ctx:D,deps:null,nodes:null,f:e|g|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null};A?.register_created_effect(r);var i=r;if(e&4)pt===null?_t.ensure().schedule(r):pt.push(r);else if(t!==null){try{qn(r)}catch(e){throw H(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=ie))}if(i!==null&&(i.parent=n,n!==null&&un(i,n),U!==null&&U.f&2&&!(e&64))){var a=U;(a.effects??=[]).push(i)}return r}function dn(){return U!==null&&!W}function fn(e){let t=B(8,null);return O(t,h),t.teardown=e,t}function pn(e){ln(`$effect`);var t=K.f;if(!U&&t&32&&!(t&32768)){var n=D;(n.e??=[]).push(e)}else return mn(e)}function mn(e){return B(4|y,e)}function hn(e){return ln(`$effect.pre`),B(8|y,e)}function gn(e){_t.ensure();let t=B(64|v,e);return(e={})=>new Promise(n=>{e.outro?En(t,()=>{H(t),n(void 0)}):(H(t),n(void 0))})}function _n(e){return B(oe|v,e)}function vn(e,t=0){return B(8|t,e)}function yn(e,t=[],n=[],r=[]){kt(r,t,n,t=>{B(8,()=>e(...t.map(Q)))})}function bn(e,t=0){return B(16|t,e)}function V(e){return B(32|v,e)}function xn(e){var t=e.teardown;if(t!==null){let e=Nn,n=U;Pn(!0),G(null);try{t.call(null)}finally{Pn(e),G(n)}}}function Sn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&cn(()=>{e.abort(x)});var r=n.next;n.f&64?n.parent=null:H(n,t),n=r}}function Cn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||H(t),t=n}}function H(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(wn(e.nodes.start,e.nodes.end),n=!0),O(e,re),Sn(e,t&&!n),Kn(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();xn(e),e.f^=re,e.f|=te;var i=e.parent;i!==null&&i.first!==null&&Tn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function wn(e,t){for(;e!==null;){var n=e===t?null:L(e);e.remove(),e=n}}function Tn(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 En(e,t,n=!0){var r=[];Dn(e,r,!0);var i=()=>{n&&H(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Dn(e,t,n){if(!(e.f&8192)){e.f^=ee;var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)(e.is_global||n)&&t.push(e);for(var i=e.first;i!==null;){var a=i.next,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;Dn(i,t,o?n:!1),i=a}}}function On(e){kn(e,!0)}function kn(e,t){if(e.f&8192){e.f^=ee,e.f&1024||(O(e,g),_t.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;kn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function An(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:L(n);t.append(n),n=i}}var jn=null,Mn=!1,Nn=!1;function Pn(e){Nn=e}var U=null,W=!1;function G(e){U=e}var K=null;function q(e){K=e}var J=null;function Fn(e){U!==null&&(!Pe||U.f&2)&&(J===null?J=[e]:J.push(e))}var Y=null,X=0,Z=null;function In(e){Z=e}var Ln=1,Rn=0,zn=Rn;function Bn(e){zn=e}function Vn(){return++Ln}function Hn(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~b),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(Hn(a)&&zt(a),a.wv>e.wv)return!0}t&512&&j===null&&O(e,h)}return!1}function Un(e,t,r=!0){var i=e.reactions;if(i!==null&&!(!Pe&&J!==null&&n.call(J,e)))for(var a=0;a<i.length;a++){var o=i[a];o.f&2?Un(o,t,!1):t===o&&(r?O(o,g):o.f&1024&&O(o,_),St(o))}}function Wn(e){var t=Y,n=X,r=Z,i=U,a=J,o=D,s=W,c=zn,l=e.f;Y=null,X=0,Z=null,U=l&96?null:e,J=null,Le(e.ctx),W=!1,zn=++Rn,e.ac!==null&&(cn(()=>{e.ac.abort(x)}),e.ac=null);try{e.f|=ae;var u=e.fn,d=u();e.f|=ne;var f=e.deps,p=A?.is_fork;if(Y!==null){var m;if(p||Kn(e,X),f!==null&&X>0)for(f.length=X+Y.length,m=0;m<Y.length;m++)f[X+m]=Y[m];else e.deps=f=Y;if(dn()&&e.f&512)for(m=X;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&X<f.length&&(Kn(e,X),f.length=X);if(He()&&Z!==null&&!W&&f!==null&&!(e.f&6146))for(m=0;m<Z.length;m++)Un(Z[m],e);if(i!==null&&i!==e){if(Rn++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=Rn;if(t!==null)for(let e of t)e.rv=Rn;Z!==null&&(r===null?r=Z:r.push(...Z))}return e.f&8388608&&(e.f^=se),d}catch(e){return Je(e)}finally{e.f^=ae,Y=t,X=n,Z=r,U=i,J=a,Le(o),W=s,zn=c}}function Gn(e,r){let i=r.reactions;if(i!==null){var a=t.call(i,e);if(a!==-1){var o=i.length-1;o===0?i=r.reactions=null:(i[a]=i[o],i.pop())}}if(i===null&&r.f&2&&(Y===null||!n.call(Y,r))){var s=r;s.f&512&&(s.f^=512,s.f&=~b),Ze(s),Bt(s),Kn(s,0)}}function Kn(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)Gn(e,n[r])}function qn(e){var t=e.f;if(!(t&16384)){O(e,h);var n=K,r=Mn;K=e,Mn=!0;try{t&16777232?Cn(e):Sn(e),xn(e);var i=Wn(e);e.teardown=typeof i==`function`?i:null,e.wv=Ln}finally{Mn=r,K=n}}}function Q(e){var t=(e.f&2)!=0;if(jn?.add(e),U!==null&&!W&&!(K!==null&&K.f&16384)&&(J===null||!n.call(J,e))){var r=U.deps;if(U.f&2097152)e.rv<Rn&&(e.rv=Rn,Y===null&&r!==null&&r[X]===e?X++:Y===null?Y=[e]:Y.push(e));else{(U.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[U]:n.call(i,U)||i.push(U)}}if(Nn&&N.has(e))return N.get(e);if(t){var a=e;if(Nn){var o=a.v;return(!(a.f&1024)&&a.reactions!==null||Yn(a))&&(o=Rt(a)),N.set(a,o),o}var s=(a.f&512)==0&&!W&&U!==null&&(Mn||(U.f&512)!=0),c=(a.f&ne)===0;Hn(a)&&(s&&(a.f|=512),zt(a)),s&&!c&&(Vt(a),Jn(a))}if(j?.has(e))return j.get(e);if(e.f&8388608)throw e.v;return e.v}function Jn(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Vt(t),Jn(t))}function Yn(e){if(e.v===S)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(N.has(t)||t.f&2&&Yn(t))return!0;return!1}function Xn(e){var t=W;try{return W=!0,e()}finally{W=t}}function Zn(e){if(!(typeof e!=`object`||!e||e instanceof EventTarget)){if(ce in e)Qn(e);else if(!Array.isArray(e))for(let t in e){let n=e[t];typeof n==`object`&&n&&ce in n&&Qn(n)}}}function Qn(e,t=new Set){if(typeof e==`object`&&e&&!(e instanceof EventTarget)&&!t.has(e)){t.add(e),e instanceof Date&&e.getTime();for(let n in e)try{Qn(e[n],t)}catch{}let n=l(e);if(n!==Object.prototype&&n!==Array.prototype&&n!==Map.prototype&&n!==Set.prototype&&n!==Date.prototype){let t=o(n);for(let n in t){let r=t[n].get;if(r)try{r.call(e)}catch{}}}}}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var $n=[`touchstart`,`touchmove`];function er(e){return $n.includes(e)}var tr=Symbol(`events`),nr=new Set,rr=new Set;function $(e,t,n){(t[tr]??={})[e]=n}function ir(e){for(var t=0;t<e.length;t++)nr.add(e[t]);for(var n of rr)n(e)}var ar=null;function or(e){var t=this,n=t.ownerDocument,r=e.type,a=e.composedPath?.()||[],o=a[0]||e.target;ar=e;var s=0,c=ar===e&&e[tr];if(c){var l=a.indexOf(c);if(l!==-1&&(t===document||t===window)){e[tr]=t;return}var u=a.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(o=a[s]||e.target,o!==t){i(e,`currentTarget`,{configurable:!0,get(){return o||n}});var d=U,f=K;G(null),q(null);try{for(var p,m=[];o!==null;){var h=o.assignedSlot||o.parentNode||o.host||null;try{var g=o[tr]?.[r];g!=null&&(!o.disabled||e.target===o)&&g.call(o,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;o=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[tr]=t,delete e.currentTarget,G(d),q(f)}}}var sr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function cr(e){return sr?.createHTML(e)??e}function lr(e){var t=on(`template`);return t.innerHTML=cr(e.replaceAll(`<!>`,`<!---->`)),t.content}function ur(e,t){var n=K;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function dr(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(C)return ur(w,null),w;i===void 0&&(i=lr(a?e:`<!>`+e),n||(i=nn(i)));var t=r||Qt?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=nn(t),s=t.lastChild;ur(o,s)}else ur(t,t);return t}}function fr(e,t){if(C){var n=K;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=w),De();return}e!==null&&e.before(t)}function pr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function mr(e,t){return gr(e,t)}var hr=new Map;function gr(e,{target:t,anchor:n,props:i={},events:a,context:o,intro:s=!0,transformError:c}){tn();var l=void 0,u=gn(()=>{var s=n??t.appendChild(I());Dt(s,{pending:()=>{}},t=>{Be({});var n=D;if(o&&(n.c=o),a&&(i.$$events=a),C&&ur(t,null),l=e(t,i)||{},C&&(K.nodes.end=w,w===null||w.nodeType!==8||w.data!==`]`))throw we(),Se;Ve()},c);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=er(r);for(let e of[t,document]){var a=hr.get(e);a===void 0&&(a=new Map,hr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,or,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(r(nr)),rr.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=hr.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,or),r.delete(e),r.size===0&&hr.delete(n)):r.set(e,i)}rr.delete(d),s!==n&&s.parentNode?.removeChild(s)}});return _r.set(l,u),l}var _r=new WeakMap,vr=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)On(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(H(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();An(r,t),t.append(I()),this.#n.set(e,{effect:r,fragment:t})}else H(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),En(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(H(n.effect),this.#n.delete(e))};ensure(e,t){var n=A,r=an();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=I();i.append(a),this.#n.set(e,{effect:V(()=>t(a)),fragment:i})}else this.#t.set(e,V(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else C&&(this.anchor=w),this.#a(n)}};function yr(e,t,n=!1){var r;C&&(r=w,De());var i=new vr(e),a=n?ie:0;function o(e,t){if(C){var n=Ae(r);if(e!==parseInt(n.substring(1))){var a=ke();T(a),i.anchor=a,Ee(!1),i.ensure(e,t),Ee(!0);return}}i.ensure(e,t)}bn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}var br=Symbol(`is custom element`),xr=Symbol(`is html`),Sr=ue?`link`:`LINK`;function Cr(e,t,n,r){var i=wr(e);C&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===Sr)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[le]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&Er(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function wr(e){return e.__attributes??={[br]:e.nodeName.includes(`-`),[xr]:e.namespaceURI===Ce}}var Tr=new Map;function Er(e){var t=e.getAttribute(`is`)||e.nodeName,n=Tr.get(t);if(n)return n;Tr.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var s in r=o(i),r)r[s].set&&n.push(s);i=l(i)}return n}function Dr(e=!1){let t=D,n=t.l.u;if(!n)return;let r=()=>Zn(t.s);if(e){let e=0,n={},i=Nt(()=>{let r=!1,i=t.s;for(let e in i)i[e]!==n[e]&&(n[e]=i[e],r=!0);return r&&e++,e});r=()=>Q(i)}n.b.length&&hn(()=>{Or(t,r),p(n.b)}),pn(()=>{let e=Xn(()=>n.m.map(f));return()=>{for(let t of e)typeof t==`function`&&t()}}),n.a.length&&pn(()=>{Or(t,r),p(n.a)})}function Or(e,t){if(e.l.s)for(let t of e.l.s)Q(t);t()}function kr(e){D===null&&de(`onMount`),Fe&&D.l!==null?Ar(D).m.push(e):pn(()=>{let t=Xn(e);if(typeof t==`function`)return t})}function Ar(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`),Ie();var jr=dr(`<strong>cc</strong> <br/>`,1),Mr=dr(`<strong>bcc</strong> <br/>`,1),Nr=dr(`<strong>subject</strong> <br/>`,1),Pr=dr(`<strong>body</strong> <br/>`,1),Fr=dr(`<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 Ir(e,t){Be(t,!0);let n=()=>ot(s,`$selectedMailto`,r),[r,i]=ct(),a=`type-url`,o=`type-data`,s=Re(`selectedMailto`),c=``,l=P(``),u=P(``),d=P(``),f=P(``),p=P(``),m=P(``),h=P(!1);function g(){let e=new URL(n().href),{searchParams:t}=e;F(l,e.pathname,!0),F(u,t.get(`cc`),!0),F(d,t.get(`bcc`),!0),F(f,t.get(`subject`),!0),F(p,t.get(`body`),!0)}function _(){let{dataset:e}=n();F(l,e.address&&e.domain?`${e.address}@${e.domain}`:``,!0),F(u,e.ccAddress&&e.ccDomain?`${e.ccAddress}@${e.ccDomain}`:``,!0),F(d,e.bccAddress&&e.bccDomain?`${e.bccAddress}@${e.bccDomain}`:``,!0),F(f,e.subject,!0),F(p,e.body,!0)}function ee(){switch(c){case a:return n().href;case o:let e=new URLSearchParams;Q(u)&&e.set(`cc`,Q(u)),Q(d)&&e.set(`bcc`,Q(d)),Q(f)&&e.set(`subject`,Q(f)),Q(p)&&e.set(`body`,Q(p));let t=new URL(`mailto:${Q(l)}`);return t.search=e.toString(),t.toString();default:return console.error(`Invalid mailto type: ${c}`),``}}function te(e){e.preventDefault();let t=`https://mail.google.com/mail/?extsrc=mailto&url=`+encodeURIComponent(Q(m));window.open(t,`_blank`,`noopener, noreferrer`),v()}function ne(e){e.preventDefault();let t=new URLSearchParams;t.set(`path`,`/mail/action/compose`),Q(l)&&t.set(`to`,Q(l)),Q(f)&&t.set(`subject`,Q(f)),Q(p)&&t.set(`body`,Q(p));let n=new URL(`https://outlook.live.com/owa/`);n.search=t.toString(),window.open(n.toString(),`_blank`,`noopener, noreferrer`),v()}function re(e){e.preventDefault();let t=new URLSearchParams;Q(l)&&t.set(`to`,Q(l)),Q(f)&&t.set(`subject`,Q(f)),Q(p)&&t.set(`body`,Q(p));let n=new URL(`https://compose.mail.yahoo.com`);n.search=t.toString(),window.open(n.toString(),`_blank`,`noopener, noreferrer`),v()}async function ie(e){e.preventDefault();try{await navigator.clipboard.writeText(Q(l)),F(h,!0),setTimeout(v,1500)}catch(e){console.error(`Unable to copy to clipboard.`,e)}}function v(e=null){e&&e.currentTarget!==e.target||st(s,null)}kr(()=>{n().href.startsWith(`mailto:`)?(c=a,g()):(c=o,_()),F(m,ee(),!0)});var y=Fr(),b=R(y),ae=R(b),oe=R(ae,!0);E(ae);var se=z(ae,2),ce=R(se),le=R(ce),x=e=>{var t=jr(),n=z(rn(t));Oe(),yn(()=>pr(n,` ${Q(u)??``}`)),fr(e,t)};yr(le,e=>{Q(u)&&e(x)});var ue=z(le,2),de=e=>{var t=Mr(),n=z(rn(t));Oe(),yn(()=>pr(n,` ${Q(d)??``}`)),fr(e,t)};yr(ue,e=>{Q(d)&&e(de)});var fe=z(ue,2),pe=e=>{var t=Nr(),n=z(rn(t));Oe(),yn(()=>pr(n,` ${Q(f)??``}`)),fr(e,t)};yr(fe,e=>{Q(f)&&e(pe)});var me=z(fe,2),he=e=>{var t=Pr(),n=z(rn(t));Oe(),yn(()=>pr(n,` ${Q(p)??``}`)),fr(e,t)};yr(me,e=>{Q(p)&&e(he)}),E(ce),E(se);var ge=z(se,2),_e=R(ge),ve=z(_e,2),ye=z(ve,2),be=z(ye,2),xe=z(be,2),Se=R(xe),S=R(Se,!0);E(Se),E(xe),E(ge),Oe(2),E(b),E(y),yn(()=>{pr(oe,Q(l)),Cr(be,`href`,Q(m)),pr(S,Q(h)?`copied`:`copy`)}),$(`click`,y,v),$(`click`,_e,te),$(`click`,ve,ne),$(`click`,ye,re),$(`click`,xe,ie),fr(e,y),Ve(),i()}ir([`click`]);var Lr=dr(`<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 Rr(e,t){Be(t,!0);let n=()=>ot(o,`$selectedCallto`,r),[r,i]=ct(),a=/^(tel:)|^(callto:)/,o=Re(`selectedCallto`),s=P(``),c=P(!1);function l(){F(s,n().href.replace(a,``),!0)}function u(){let{dataset:e}=n();F(s,e.tel,!0)}function d(e){e.preventDefault();let t=`https://wa.me/${Q(s).replaceAll(/\D/g,``).replace(/^0+/,``)}`;window.open(t,`_blank`,`noopener, noreferrer`),m()}function f(e){e.preventDefault();let t=`skype:${encodeURIComponent(Q(s))}`;window.open(t,`_blank`,`noopener, noreferrer`),m()}async function p(e){e.preventDefault();try{await navigator.clipboard.writeText(Q(s)),F(c,!0),setTimeout(m,1500)}catch(e){console.error(`Unable to copy to clipboard.`,e)}}function m(e=null){e&&e.currentTarget!==e.target||st(o,null)}kr(()=>{a.test(n().href)?l():u()});var h=Lr(),g=R(h),_=R(g),ee=R(_,!0);E(_);var te=z(_,2),ne=R(te),re=z(ne,2),ie=z(re,2),v=z(ie,2),y=z(v,2),b=R(y),ae=R(b,!0);E(b),E(y),E(te),Oe(2),E(g),E(h),yn(()=>{pr(ee,Q(s)),Cr(ie,`href`,`tel:${Q(s)}`),Cr(v,`href`,`sms:${Q(s)}`),pr(ae,Q(c)?`copied`:`copy`)}),$(`click`,h,m),$(`click`,ne,d),$(`click`,re,f),$(`click`,y,p),fr(e,h),Ve(),i()}ir([`click`]);var zr=dr(`<!> <!>`,1);function Br(e,t){Be(t,!1);let n=()=>ot(o,`$selectedMailto`,i),r=()=>ot(s,`$selectedCallto`,i),[i,a]=ct(),o=nt(null);ze(`selectedMailto`,o);let s=nt(null);ze(`selectedCallto`,s),kr(()=>{let e=document.querySelectorAll(`a[href^="mailto:"]:not(.no-maildo), a[href="#maildo"][data-address], a.maildo[data-address]`),t=document.querySelectorAll(`a[href^="tel:"]:not(.no-maildo), a[href^="callto:"]:not(.no-maildo), a[href="#maildo"][data-tel], a.maildo[data-tel]`);e.forEach(e=>{e.addEventListener(`click`,t=>{t.preventDefault(),st(o,e)})}),t.forEach(e=>{e.addEventListener(`click`,t=>{t.preventDefault(),st(s,e)})})}),Dr();var c=zr(),l=rn(c),u=e=>{Ir(e,{})};yr(l,e=>{n()&&e(u)});var d=z(l,2),f=e=>{Rr(e,{})};yr(d,e=>{r()&&e(f)}),fr(e,c),Ve(),a()}var Vr=`maildo-app`;function Hr(){let e=document.getElementById(Vr);if(!e)e=document.createElement(`slot`),e.id=Vr,document.body.appendChild(e);else if(e.childElementCount>0){console.warn(`App target already exists`);return}mr(Br,{target:e})}Hr();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "maildo",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.13",
|
|
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": "^
|
|
19
|
+
"@sveltejs/vite-plugin-svelte": "^7.0.0",
|
|
20
20
|
"svelte": "^5.53.6",
|
|
21
|
-
"vite": "^
|
|
21
|
+
"vite": "^8.0.3"
|
|
22
22
|
},
|
|
23
23
|
"scripts": {
|
|
24
24
|
"dev": "vite",
|