@konemono/nostr-share-component 0.0.17 → 0.0.18

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.
@@ -1,83 +1,42 @@
1
- var NostrShare=function(b){"use strict";var Dn=Object.defineProperty;var fr=b=>{throw TypeError(b)};var Mn=(b,x,k)=>x in b?Dn(b,x,{enumerable:!0,configurable:!0,writable:!0,value:k}):b[x]=k;var F=(b,x,k)=>Mn(b,typeof x!="symbol"?x+"":x,k),cr=(b,x,k)=>x.has(b)||fr("Cannot "+k);var A=(b,x,k)=>(cr(b,x,"read from private field"),k?k.call(b):x.get(b)),de=(b,x,k)=>x.has(b)?fr("Cannot add the same private member more than once"):x instanceof WeakSet?x.add(b):x.set(b,k),_e=(b,x,k,Tt)=>(cr(b,x,"write to private field"),Tt?Tt.call(b,k):x.set(b,k),k);var K,q;const x="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(x);const k=1,Tt=2,vr=16,hr=8,dr=1,_r=2,pe="[",jt="[!",Gt="]",ot={},pr=Symbol(),gr=["touchstart","touchmove"];function $r(t){return gr.includes(t)}const ge=!1;var $e=Array.isArray,Kt=Array.from,St=Object.keys,Ct=Object.defineProperty,Nt=Object.getOwnPropertyDescriptor,mr=Object.getOwnPropertyDescriptors,br=Object.getPrototypeOf;function wr(t){for(var e=0;e<t.length;e++)t[e]()}const M=2,me=4,At=8,Wt=16,P=32,at=64,Jt=128,ut=256,Rt=512,R=1024,W=2048,mt=4096,H=8192,ft=16384,yr=32768,Xt=65536,xr=1<<19,be=1<<20,Er=Symbol("$state"),we=Symbol("legacy props"),kr=Symbol("");function ye(t){return t===this.v}function Tr(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Sr(t){return!Tr(t,this.v)}function Cr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ar(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Rr(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Or(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let xe=!1;function Ot(t,e){var r={f:0,v:t,reactions:null,equals:ye,version:0};return r}function qr(t){return Dr(Ot(t))}function Zt(t,e=!1){const r=Ot(t);return e||(r.equals=Sr),r}function Dr(t){return y!==null&&y.f&M&&(Y===null?Gr([t]):Y.push(t)),t}function qt(t,e){return y!==null&&Wr()&&y.f&(M|Wt)&&(Y===null||!Y.includes(t))&&Or(),Ee(t,e)}function Ee(t,e){return t.equals(e)||(t.v=e,t.version=Ye(),ke(t,W),p!==null&&p.f&R&&!(p.f&P)&&(T!==null&&T.includes(t)?(G(p,W),Bt(p)):Z===null?Kr([t]):Z.push(t))),e}function ke(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,l=0;l<n;l++){var s=r[l],i=s.f;i&W||(G(s,e),i&(R|ut)&&(i&M?ke(s,mt):Bt(s)))}}function Dt(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let g=!1;function j(t){g=t}let $;function I(t){if(t===null)throw Dt(),ot;return $=t}function rt(){return I(V($))}function nt(t){if(g){if(V($)!==null)throw Dt(),ot;$=t}}function Mr(t=1){if(g){for(var e=t,r=$;e--;)r=V(r);$=r}}function Qt(){for(var t=0,e=$;;){if(e.nodeType===8){var r=e.data;if(r===Gt){if(t===0)return e;t-=1}else(r===pe||r===jt)&&(t+=1)}var n=V(e);e.remove(),e=n}}var Te,Se,Ce;function te(){if(Te===void 0){Te=window;var t=Element.prototype,e=Node.prototype;Se=Nt(e,"firstChild").get,Ce=Nt(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0}}function bt(t=""){return document.createTextNode(t)}function J(t){return Se.call(t)}function V(t){return Ce.call(t)}function ct(t,e){if(!g)return J(t);var r=J($);return r===null&&(r=$.appendChild(bt())),I(r),r}function ee(t,e){if(!g){var r=J(t);return r instanceof Comment&&r.data===""?V(r):r}return $}function re(t,e=1,r=!1){let n=g?$:t;for(var l;e--;)l=n,n=V(n);if(!g)return n;var s=n==null?void 0:n.nodeType;if(r&&s!==3){var i=bt();return n===null?l==null||l.after(i):n.before(i),I(i),i}return I(n),n}function Ne(t){t.textContent=""}function Ir(t){var e=M|W;p===null?e|=ut:p.f|=be;var r=y!==null&&y.f&M?y:null;const n={children:null,ctx:L,deps:null,equals:ye,f:e,fn:t,reactions:null,v:null,version:0,parent:r??p};return r!==null&&(r.children??(r.children=[])).push(n),n}function Ae(t){var e=t.children;if(e!==null){t.children=null;for(var r=0;r<e.length;r+=1){var n=e[r];n.f&M?ne(n):B(n)}}}function Lr(t){for(var e=t.parent;e!==null;){if(!(e.f&M))return e;e=e.parent}return null}function Re(t){var e,r=p;X(Lr(t));try{Ae(t),e=Ue(t)}finally{X(r)}return e}function Oe(t){var e=Re(t),r=(st||t.f&ut)&&t.deps!==null?mt:R;G(t,r),t.equals(e)||(t.v=e,t.version=Ye())}function ne(t){Ae(t),Et(t,0),G(t,ft),t.v=t.children=t.deps=t.ctx=t.reactions=null}function zr(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function vt(t,e,r,n=!0){var l=(t&at)!==0,s=p,i={ctx:L,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|W,first:null,fn:e,last:null,next:null,parent:l?null:s,prev:null,teardown:null,transitions:null,version:0};if(r){var o=dt;try{Ve(!0),Vt(i),i.f|=yr}catch(h){throw B(i),h}finally{Ve(o)}}else e!==null&&Bt(i);var u=r&&i.deps===null&&i.first===null&&i.nodes_start===null&&i.teardown===null&&(i.f&be)===0;if(!u&&!l&&n&&(s!==null&&zr(i,s),y!==null&&y.f&M)){var v=y;(v.children??(v.children=[])).push(i)}return i}function Fr(t){const e=vt(at,t,!0);return()=>{B(e)}}function Pr(t){const e=vt(at,t,!0);return(r={})=>new Promise(n=>{r.outro?It(e,()=>{B(e),n(void 0)}):(B(e),n(void 0))})}function Hr(t){return vt(me,t,!1)}function Vr(t){return vt(At,t,!0)}function qe(t){return Mt(t)}function Mt(t,e=0){return vt(At|Wt|e,t,!0)}function ht(t,e=!0){return vt(At|P,t,!0,e)}function De(t){var e=t.teardown;if(e!==null){const r=y;pt(null);try{e.call(null)}finally{pt(r)}}}function Me(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)ne(e[r])}}function Ie(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;B(r,e),r=n}}function Br(t){for(var e=t.first;e!==null;){var r=e.next;e.f&P||B(e),e=r}}function B(t,e=!0){var r=!1;if((e||t.f&xr)&&t.nodes_start!==null){for(var n=t.nodes_start,l=t.nodes_end;n!==null;){var s=n===l?null:V(n);n.remove(),n=s}r=!0}Ie(t,e&&!r),Me(t),Et(t,0),G(t,ft);var i=t.transitions;if(i!==null)for(const u of i)u.stop();De(t);var o=t.parent;o!==null&&o.first!==null&&Le(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Le(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function It(t,e){var r=[];le(t,r,!0),ze(r,()=>{B(t),e&&e()})}function ze(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var l of t)l.out(n)}else e()}function le(t,e,r){if(!(t.f&H)){if(t.f^=H,t.transitions!==null)for(const i of t.transitions)(i.is_global||r)&&e.push(i);for(var n=t.first;n!==null;){var l=n.next,s=(n.f&Xt)!==0||(n.f&P)!==0;le(n,e,s?r:!1),n=l}}}function Lt(t){Fe(t,!0)}function Fe(t,e){if(t.f&H){xt(t)&&Vt(t),t.f^=H;for(var r=t.first;r!==null;){var n=r.next,l=(r.f&Xt)!==0||(r.f&P)!==0;Fe(r,l?e:!1),r=n}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||e)&&s.in()}}let zt=!1,se=[];function Pe(){zt=!1;const t=se.slice();se=[],wr(t)}function Yr(t){zt||(zt=!0,queueMicrotask(Pe)),se.push(t)}function Ur(){zt&&Pe()}const He=0,jr=1;let Ft=!1,Pt=He,wt=!1,yt=null,dt=!1;function Ve(t){dt=t}let lt=[],_t=0,In=[],y=null;function pt(t){y=t}let p=null;function X(t){p=t}let Y=null;function Gr(t){Y=t}let T=null,O=0,Z=null;function Kr(t){Z=t}let Be=1,st=!1,L=null;function Ye(){return++Be}function Wr(){return!xe}function xt(t){var i,o;var e=t.f;if(e&W)return!0;if(e&mt){var r=t.deps,n=(e&ut)!==0;if(r!==null){var l;if(e&Rt){for(l=0;l<r.length;l++)((i=r[l]).reactions??(i.reactions=[])).push(t);t.f^=Rt}for(l=0;l<r.length;l++){var s=r[l];if(xt(s)&&Oe(s),n&&p!==null&&!st&&!((o=s==null?void 0:s.reactions)!=null&&o.includes(t))&&(s.reactions??(s.reactions=[])).push(t),s.version>t.version)return!0}}(!n||p!==null&&!st)&&G(t,R)}return!1}function Jr(t,e){for(var r=e;r!==null;){if(r.f&Jt)try{r.fn(t);return}catch{r.f^=Jt}r=r.parent}throw Ft=!1,t}function Xr(t){return(t.f&ft)===0&&(t.parent===null||(t.parent.f&Jt)===0)}function Ht(t,e,r,n){if(Ft){if(r===null&&(Ft=!1),Xr(e))throw t;return}r!==null&&(Ft=!0);{Jr(t,e);return}}function Ue(t){var c;var e=T,r=O,n=Z,l=y,s=st,i=Y,o=L,u=t.f;T=null,O=0,Z=null,y=u&(P|at)?null:t,st=!dt&&(u&ut)!==0,Y=null,L=t.ctx;try{var v=(0,t.fn)(),h=t.deps;if(T!==null){var a;if(Et(t,O),h!==null&&O>0)for(h.length=O+T.length,a=0;a<T.length;a++)h[O+a]=T[a];else t.deps=h=T;if(!st)for(a=O;a<h.length;a++)((c=h[a]).reactions??(c.reactions=[])).push(t)}else h!==null&&O<h.length&&(Et(t,O),h.length=O);return v}finally{T=e,O=r,Z=n,y=l,st=s,Y=i,L=o}}function Zr(t,e){let r=e.reactions;if(r!==null){var n=r.indexOf(t);if(n!==-1){var l=r.length-1;l===0?r=e.reactions=null:(r[n]=r[l],r.pop())}}r===null&&e.f&M&&(T===null||!T.includes(e))&&(G(e,mt),e.f&(ut|Rt)||(e.f^=Rt),Et(e,0))}function Et(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Zr(t,r[n])}function Vt(t){var e=t.f;if(!(e&ft)){G(t,R);var r=p,n=L;p=t;try{e&Wt?Br(t):Ie(t),Me(t),De(t);var l=Ue(t);t.teardown=typeof l=="function"?l:null,t.version=Be}catch(s){Ht(s,t,r,n||t.ctx)}finally{p=r}}}function je(){if(_t>1e3){_t=0;try{Cr()}catch(t){if(yt!==null)Ht(t,yt,null);else throw t}}_t++}function Ge(t){var e=t.length;if(e!==0){je();var r=dt;dt=!0;try{for(var n=0;n<e;n++){var l=t[n];l.f&R||(l.f^=R);var s=[];Ke(l,s),Qr(s)}}finally{dt=r}}}function Qr(t){var e=t.length;if(e!==0)for(var r=0;r<e;r++){var n=t[r];if(!(n.f&(ft|H)))try{xt(n)&&(Vt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Le(n):n.fn=null))}catch(l){Ht(l,n,null,n.ctx)}}}function tn(){if(wt=!1,_t>1001)return;const t=lt;lt=[],Ge(t),wt||(_t=0,yt=null)}function Bt(t){Pt===He&&(wt||(wt=!0,queueMicrotask(tn))),yt=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(at|P)){if(!(r&R))return;e.f^=R}}lt.push(e)}function Ke(t,e){var r=t.first,n=[];t:for(;r!==null;){var l=r.f,s=(l&P)!==0,i=s&&(l&R)!==0,o=r.next;if(!i&&!(l&H))if(l&At){if(s)r.f^=R;else try{xt(r)&&Vt(r)}catch(a){Ht(a,r,null,r.ctx)}var u=r.first;if(u!==null){r=u;continue}}else l&me&&n.push(r);if(o===null){let a=r.parent;for(;a!==null;){if(t===a)break t;var v=a.next;if(v!==null){r=v;continue t}a=a.parent}}r=o}for(var h=0;h<n.length;h++)u=n[h],e.push(u),Ke(u,e)}function U(t){var e=Pt,r=lt;try{je();const l=[];Pt=jr,lt=l,wt=!1,Ge(r);var n=t==null?void 0:t();return Ur(),(lt.length>0||l.length>0)&&U(),_t=0,yt=null,n}finally{Pt=e,lt=r}}function z(t){var h;var e=t.f,r=(e&M)!==0;if(r&&e&ft){var n=Re(t);return ne(t),n}if(y!==null){Y!==null&&Y.includes(t)&&Rr();var l=y.deps;T===null&&l!==null&&l[O]===t?O++:T===null?T=[t]:T.push(t),Z!==null&&p!==null&&p.f&R&&!(p.f&P)&&Z.includes(t)&&(G(p,W),Bt(p))}else if(r&&t.deps===null)for(var s=t,i=s.parent,o=s;i!==null;)if(i.f&M){var u=i;o=u,i=u.parent}else{var v=i;(h=v.deriveds)!=null&&h.includes(o)||(v.deriveds??(v.deriveds=[])).push(o);break}return r&&(s=t,xt(s)&&Oe(s)),t.v}function en(t){const e=y;try{return y=null,t()}finally{y=e}}const rn=~(W|mt|R);function G(t,e){t.f=t.f&rn|e}function ie(t,e=!1,r){L={p:L,c:null,e:null,m:!1,s:t,x:null,l:null}}function oe(t){const e=L;if(e!==null){t!==void 0&&(e.x=t);const i=e.e;if(i!==null){var r=p,n=y;e.e=null;try{for(var l=0;l<i.length;l++){var s=i[l];X(s.effect),pt(s.reaction),Hr(s.fn)}}finally{X(r),pt(n)}}L=e.p,e.m=!0}return t||{}}const We=new Set,ae=new Set;function Je(t){for(var e=0;e<t.length;e++)We.add(t[e]);for(var r of ae)r(t)}function Yt(t){var _;var e=this,r=e.ownerDocument,n=t.type,l=((_=t.composedPath)==null?void 0:_.call(t))||[],s=l[0]||t.target,i=0,o=t.__root;if(o){var u=l.indexOf(o);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var v=l.indexOf(e);if(v===-1)return;u<=v&&(i=u)}if(s=l[i]||t.target,s!==e){Ct(t,"currentTarget",{configurable:!0,get(){return s||r}});var h=y,a=p;pt(null),X(null);try{for(var c,f=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var w=s["__"+n];if(w!==void 0&&!s.disabled)if($e(w)){var[C,...S]=w;C.apply(s,[t,...S])}else w.call(s,t)}catch(m){c?f.push(m):c=m}if(t.cancelBubble||d===e||d===null)break;s=d}if(c){for(let m of f)queueMicrotask(()=>{throw m});throw c}}finally{t.__root=e,delete t.currentTarget,pt(h),X(a)}}}function Xe(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Q(t,e){var r=p;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function kt(t,e){var r=(e&dr)!==0,n=(e&_r)!==0,l,s=!t.startsWith("<!>");return()=>{if(g)return Q($,null),$;l===void 0&&(l=Xe(s?t:"<!>"+t),r||(l=J(l)));var i=n?document.importNode(l,!0):l.cloneNode(!0);if(r){var o=J(i),u=i.lastChild;Q(o,u)}else Q(i,i);return i}}function nn(){if(g)return Q($,null),$;var t=document.createDocumentFragment(),e=document.createComment(""),r=bt();return t.append(e,r),Q(e,r),t}function it(t,e){if(g){p.nodes_end=$,rt();return}t!==null&&t.before(e)}function ln(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=r,t.nodeValue=r==null?"":r+"")}function Ze(t,e){return Qe(t,e)}function sn(t,e){te(),e.intro=e.intro??!1;const r=e.target,n=g,l=$;try{for(var s=J(r);s&&(s.nodeType!==8||s.data!==pe);)s=V(s);if(!s)throw ot;j(!0),I(s),rt();const i=Qe(t,{...e,anchor:s});if($===null||$.nodeType!==8||$.data!==Gt)throw Dt(),ot;return j(!1),i}catch(i){if(i===ot)return e.recover===!1&&Nr(),te(),Ne(r),j(!1),Ze(t,e);throw i}finally{j(n),I(l)}}const gt=new Map;function Qe(t,{target:e,anchor:r,props:n={},events:l,context:s,intro:i=!0}){te();var o=new Set,u=a=>{for(var c=0;c<a.length;c++){var f=a[c];if(!o.has(f)){o.add(f);var d=$r(f);e.addEventListener(f,Yt,{passive:d});var w=gt.get(f);w===void 0?(document.addEventListener(f,Yt,{passive:d}),gt.set(f,1)):gt.set(f,w+1)}}};u(Kt(We)),ae.add(u);var v=void 0,h=Pr(()=>{var a=r??e.appendChild(bt());return ht(()=>{if(s){ie({});var c=L;c.c=s}l&&(n.$$events=l),g&&Q(a,null),v=t(a,n)||{},g&&(p.nodes_end=$),s&&oe()}),()=>{var d;for(var c of o){e.removeEventListener(c,Yt);var f=gt.get(c);--f===0?(document.removeEventListener(c,Yt),gt.delete(c)):gt.set(c,f)}ae.delete(u),a!==r&&((d=a.parentNode)==null||d.removeChild(a))}});return ue.set(v,h),v}let ue=new WeakMap;function on(t,e){const r=ue.get(t);return r?(ue.delete(t),r(e)):Promise.resolve()}function tr(t,e,r=!1){g&&rt();var n=t,l=null,s=null,i=pr,o=r?Xt:0,u=!1;const v=(a,c=!0)=>{u=!0,h(c,a)},h=(a,c)=>{if(i===(i=a))return;let f=!1;if(g){const d=n.data===jt;!!i===d&&(n=Qt(),I(n),j(!1),f=!0)}i?(l?Lt(l):c&&(l=ht(()=>c(n))),s&&It(s,()=>{s=null})):(s?Lt(s):c&&(s=ht(()=>c(n))),l&&It(l,()=>{l=null})),f&&j(!0)};Mt(()=>{u=!1,e(v),u||h(null,null)},o),g&&(n=$)}function an(t,e){return e}function un(t,e,r,n){for(var l=[],s=e.length,i=0;i<s;i++)le(e[i].e,l,!0);var o=s>0&&l.length===0&&r!==null;if(o){var u=r.parentNode;Ne(u),u.append(r),n.clear(),tt(t,e[0].prev,e[s-1].next)}ze(l,()=>{for(var v=0;v<s;v++){var h=e[v];o||(n.delete(h.k),tt(t,h.prev,h.next)),B(h.e,!o)}})}function fn(t,e,r,n,l,s=null){var i=t,o={flags:e,items:new Map,first:null};{var u=t;i=g?I(J(u)):u.appendChild(bt())}g&&rt();var v=null,h=!1;Mt(()=>{var a=r(),c=$e(a)?a:a==null?[]:Kt(a),f=c.length;if(h&&f===0)return;h=f===0;let d=!1;if(g){var w=i.data===jt;w!==(f===0)&&(i=Qt(),I(i),j(!1),d=!0)}if(g){for(var C=null,S,_=0;_<f;_++){if($.nodeType===8&&$.data===Gt){i=$,d=!0,j(!1);break}var m=c[_],D=n(m,_);S=er($,o,C,null,m,D,_,l,e),o.items.set(D,S),C=S}f>0&&I(Qt())}if(!g){var E=y;cn(c,o,i,l,e,(E.f&H)!==0,n)}s!==null&&(f===0?v?Lt(v):v=ht(()=>s(i)):v!==null&&It(v,()=>{v=null})),d&&j(!0)}),g&&(i=$)}function cn(t,e,r,n,l,s,i,o){var u=t.length,v=e.items,h=e.first,a=h,c,f=null,d=[],w=[],C,S,_,m;for(m=0;m<u;m+=1){if(C=t[m],S=i(C,m),_=v.get(S),_===void 0){var D=a?a.e.nodes_start:r;f=er(D,e,f,f===null?e.first:f.next,C,S,m,n,l),v.set(S,f),d=[],w=[],a=f.next;continue}if(vn(_,C,m),_.e.f&H&&Lt(_.e),_!==a){if(c!==void 0&&c.has(_)){if(d.length<w.length){var E=w[0],N;f=E.prev;var $t=d[0],ve=d[d.length-1];for(N=0;N<d.length;N+=1)rr(d[N],E,r);for(N=0;N<w.length;N+=1)c.delete(w[N]);tt(e,$t.prev,ve.next),tt(e,f,$t),tt(e,ve,E),a=E,f=ve,m-=1,d=[],w=[]}else c.delete(_),rr(_,a,r),tt(e,_.prev,_.next),tt(e,_,f===null?e.first:f.next),tt(e,f,_),f=_;continue}for(d=[],w=[];a!==null&&a.k!==S;)(s||!(a.e.f&H))&&(c??(c=new Set)).add(a),w.push(a),a=a.next;if(a===null)continue;_=a}d.push(_),f=_,a=_.next}if(a!==null||c!==void 0){for(var he=c===void 0?[]:Kt(c);a!==null;)(s||!(a.e.f&H))&&he.push(a),a=a.next;var On=he.length;if(On>0){var qn=u===0?r:null;un(e,he,qn,v)}}p.first=e.first&&e.first.e,p.last=f&&f.e}function vn(t,e,r,n){Ee(t.v,e),t.i=r}function er(t,e,r,n,l,s,i,o,u,v){var h=(u&k)!==0,a=(u&vr)===0,c=h?a?Zt(l):Ot(l):l,f=u&Tt?Ot(i):i,d={i:f,v:c,k:s,a:null,e:null,prev:r,next:n};try{return d.e=ht(()=>o(t,c,f),g),d.e.prev=r&&r.e,d.e.next=n&&n.e,r===null?e.first=d:(r.next=d,r.e.next=d.e),n!==null&&(n.prev=d,n.e.prev=d.e),d}finally{}}function rr(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,l=e?e.e.nodes_start:r,s=t.e.nodes_start;s!==n;){var i=V(s);l.before(s),s=i}}function tt(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function nr(t,e,r,n,l){var s=t,i="",o;Mt(()=>{if(i===(i=e()??"")){g&&rt();return}o!==void 0&&(B(o),o=void 0),i!==""&&(o=ht(()=>{if(g){$.data;for(var u=rt(),v=u;u!==null&&(u.nodeType!==8||u.data!=="");)v=u,u=V(u);if(u===null)throw Dt(),ot;Q($,v),s=I(u);return}var h=i+"",a=Xe(h);Q(J(a),a.lastChild),s.before(a)}))})}function hn(t,e,r,n,l){var o;g&&rt();var s=(o=e.$$slots)==null?void 0:o[r],i=!1;s===!0&&(s=e.children,i=!0),s===void 0?l!==null&&l(t):s(t,i?()=>n:n)}function lr(t,e){Yr(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const l=document.createElement("style");l.id=e.hash,l.textContent=e.code,n.appendChild(l)}})}function fe(t,e,r,n){var l=t.__attributes??(t.__attributes={});g&&(l[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||l[e]!==(l[e]=r)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[kr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&dn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var sr=new Map;function dn(t){var e=sr.get(t.nodeName);if(e)return e;sr.set(t.nodeName,e=[]);for(var r,n=t,l=Element.prototype;l!==n;){r=mr(n);for(var s in r)r[s].set&&e.push(s);n=br(n)}return e}function _n(t,e){var r=t.__className,n=pn(e);g&&t.className===n?t.__className=n:(r!==n||g&&t.className!==n)&&(e==null?t.removeAttribute("class"):t.className=n,t.__className=n)}function pn(t){return t??""}function gn(t){for(var e=p,r=p;e!==null&&!(e.f&(P|at));)e=e.parent;try{return X(e),t()}finally{X(r)}}function et(t,e,r,n){var D;var l=!xe,s=(r&hr)!==0,i=!1,o;o=t[e];var u=Er in t||we in t,v=((D=Nt(t,e))==null?void 0:D.set)??(u&&s&&e in t?E=>t[e]=E:void 0),h=n,a=!0,c=!1,f=()=>(c=!0,a&&(a=!1,h=n),h);o===void 0&&n!==void 0&&(v&&l&&Ar(),o=f(),v&&v(o));var d;if(d=()=>{var E=t[e];return E===void 0?f():(a=!0,c=!1,E)},v){var w=t.$$legacy;return function(E,N){return arguments.length>0?((!N||w||i)&&v(N?d():E),E):d()}}var C=!1,S=!1,_=Zt(o),m=gn(()=>Ir(()=>{var E=d(),N=z(_);return C?(C=!1,S=!0,N):(S=!1,_.v=E)}));return function(E,N){if(arguments.length>0){const $t=N?z(m):E;return m.equals($t)||(C=!0,qt(_,$t),c&&h!==void 0&&(h=$t),en(()=>z(m))),E}return z(m)}}function $n(t){return new mn(t)}class mn{constructor(e){de(this,K);de(this,q);var s;var r=new Map,n=(i,o)=>{var u=Zt(o);return r.set(i,u),u};const l=new Proxy({...e.props||{},$$events:{}},{get(i,o){return z(r.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===we?!0:(z(r.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,u){return qt(r.get(o)??n(o,u),u),Reflect.set(i,o,u)}});_e(this,q,(e.hydrate?sn:Ze)(e.component,{target:e.target,anchor:e.anchor,props:l,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&U(),_e(this,K,l.$$events);for(const i of Object.keys(A(this,q)))i==="$set"||i==="$destroy"||i==="$on"||Ct(this,i,{get(){return A(this,q)[i]},set(o){A(this,q)[i]=o},enumerable:!0});A(this,q).$set=i=>{Object.assign(l,i)},A(this,q).$destroy=()=>{on(A(this,q))}}$set(e){A(this,q).$set(e)}$on(e,r){A(this,K)[e]=A(this,K)[e]||[];const n=(...l)=>r.call(this,...l);return A(this,K)[e].push(n),()=>{A(this,K)[e]=A(this,K)[e].filter(l=>l!==n)}}$destroy(){A(this,q).$destroy()}}K=new WeakMap,q=new WeakMap;let ir;typeof HTMLElement=="function"&&(ir=class extends HTMLElement{constructor(e,r,n){super();F(this,"$$ctor");F(this,"$$s");F(this,"$$c");F(this,"$$cn",!1);F(this,"$$d",{});F(this,"$$r",!1);F(this,"$$p_d",{});F(this,"$$l",{});F(this,"$$l_u",new Map);F(this,"$$me");this.$$ctor=e,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(e,r,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(r),this.$$c){const l=this.$$c.$on(e,r);this.$$l_u.set(r,l)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const l=this.$$l_u.get(r);l&&(l(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return s=>{const i=document.createElement("slot");l!=="default"&&(i.name=l),it(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=bn(this);for(const l of this.$$s)l in n&&(l==="default"&&!this.$$d.children?(this.$$d.children=e(l),r.default=!0):r[l]=e(l));for(const l of this.attributes){const s=this.$$g_p(l.name);s in this.$$d||(this.$$d[s]=Ut(s,l.value,this.$$p_d,"toProp"))}for(const l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=$n({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Fr(()=>{Vr(()=>{var l;this.$$r=!0;for(const s of St(this.$$c)){if(!((l=this.$$p_d[s])!=null&&l.reflect))continue;this.$$d[s]=this.$$c[s];const i=Ut(s,this.$$d[s],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,i)}this.$$r=!1})});for(const l in this.$$l)for(const s of this.$$l[l]){const i=this.$$c.$on(l,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(e,r,n){var l;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Ut(e,n,this.$$p_d,"toProp"),(l=this.$$c)==null||l.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return St(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Ut(t,e,r,n){var s;const l=(s=r[t])==null?void 0:s.type;if(e=l==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(l){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(l){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function bn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function or(t,e,r,n,l,s){let i=class extends ir{constructor(){super(t,r,l),this.$$p_d=e}static get observedAttributes(){return St(e).map(o=>(e[o].attribute||o).toLowerCase())}};return St(e).forEach(o=>{Ct(i.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){var a;u=Ut(o,u,e),this.$$d[o]=u;var v=this.$$c;if(v){var h=(a=Nt(v,o))==null?void 0:a.get;h?v[o]=u:v.$set({[o]:u})}}})}),n.forEach(o=>{Ct(i.prototype,o,{get(){var u;return(u=this.$$c)==null?void 0:u[o]}})}),t.element=i,i}const wn=[{name:"nostter",url:"https://nostter.app/post?content={text}&url={url}&title={title}",icon:"https://nostter.app/favicon.ico"},{name:"lumilumi",url:"https://lumilumi.vercel.app/post?url={url}&text={text}&title={title}",icon:"https://lumilumi.vercel.app/favicon.ico"}];var yn=t=>t.stopPropagation(),xn=(t,e,r)=>e(z(r).url),En=kt('<button class="item svelte-qvlz7l"><img> </button>'),kn=kt('<div class="overlay svelte-qvlz7l"><div class="inner svelte-qvlz7l"><button class="close-button svelte-qvlz7l" aria-label="Close">✖</button> <h2 class="title svelte-qvlz7l">Share</h2> <div class="list svelte-qvlz7l"></div></div></div>');const Tn={hash:"svelte-qvlz7l",code:`
2
- /* オーバーレイ背景 */.overlay.svelte-qvlz7l {position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.3); /* 少し濃い背景 */display:flex;justify-content:center;align-items:center;}
3
-
4
- /* ダイアログ本体 */.inner.svelte-qvlz7l {display:flex;flex-direction:column;position:relative;background-color:#ffffff;padding:1.5rem;border-radius:12px; /* 柔らかい角丸 */box-shadow:0 8px 16px rgba(0, 0, 0, 0.2);width:90%;max-width:400px;gap:1rem; /* スペーシング */}
5
-
6
- /* タイトル */.title.svelte-qvlz7l {margin:0;font-size:1.25rem;font-weight:bold;text-align:center;color:#374151; /* グレー700 */}
7
-
8
- /* リスト */.list.svelte-qvlz7l {display:flex;flex-direction:column;gap:0.75rem; /* ゆったりした間隔 */}
9
-
10
- /* リストアイテム */.item.svelte-qvlz7l {display:flex;align-items:center;gap:0.5rem;padding:0.75rem 1rem;background-color:#f9fafb; /* グレー100 */border:1px solid #d1d5db; /* グレー300 */border-radius:8px;font-size:1rem;font-weight:medium;cursor:pointer;transition:background-color 0.2s ease,
11
- box-shadow 0.2s ease;}.item.svelte-qvlz7l:hover {background-color:#e5e7eb; /* グレー200 */box-shadow:0 2px 6px rgba(0, 0, 0, 0.1);}.item.svelte-qvlz7l:active {background-color:#d1d5db; /* グレー300 */}
12
-
13
- /* バツボタン */.close-button.svelte-qvlz7l {position:absolute;right:12px;top:12px;width:36px;height:36px;display:flex;justify-content:center;align-items:center;background-color:#f3f4f6; /* グレー200 */border:none;border-radius:50%;font-size:1.25rem;color:#374151; /* グレー700 */cursor:pointer;transition:background-color 0.2s ease,
14
- transform 0.1s ease;}.close-button.svelte-qvlz7l:hover {background-color:#e5e7eb; /* グレー300 */}.close-button.svelte-qvlz7l:active {background-color:#d1d5db; /* グレー400 */transform:scale(0.95); /* 押した感覚を演出 */}`};function ce(t,e){ie(e,!0),lr(t,Tn);let r=et(e,"url",7,""),n=et(e,"text",7,""),l=et(e,"shareTitle",7,""),s=et(e,"handleClose",7);const i=a=>{const c=a.replace("{url}",encodeURIComponent(r())).replace("{title}",encodeURIComponent(l())).replace("{text}",encodeURIComponent(n()));console.log(c),window.open(c,"_blank","noreferrer"),s()()};var o=kn();o.__click=function(...a){var c;(c=s())==null||c.apply(this,a)};var u=ct(o);u.__click=[yn];var v=ct(u);v.__click=function(...a){var c;(c=s())==null||c.apply(this,a)};var h=re(v,4);return fn(h,21,()=>wn,an,(a,c)=>{var f=En();f.__click=[xn,i,c];var d=ct(f);fe(d,"width",24);var w=re(d);nt(f),qe(()=>{fe(d,"src",z(c).icon),fe(d,"alt",z(c).name),ln(w,` ${z(c).name??""}`)}),it(a,f)}),nt(h),nt(u),nt(o),it(t,o),oe({get url(){return r()},set url(a=""){r(a),U()},get text(){return n()},set text(a=""){n(a),U()},get shareTitle(){return l()},set shareTitle(a=""){l(a),U()},get handleClose(){return s()},set handleClose(a){s(a),U()}})}Je(["click"]),customElements.define("nostr-share-dialog",or(ce,{url:{},text:{},shareTitle:{},handleClose:{}},[],[],!0));const ar=`<svg
15
- version="1.1"
16
- id="_8"
17
- xmlns="http://www.w3.org/2000/svg"
18
- xmlns:xlink="http://www.w3.org/1999/xlink"
19
- x="0px"
20
- y="0px"
21
- viewBox="0 0 256 256"
22
- style="enable-background:new 0 0 256 256;"
23
- xml:space="preserve"
24
- >
25
- <style type="text/css">
26
- .st0 {
27
- fill: none;
28
- }
29
- .st1 {
30
- fill: #ffffff;
31
- }
32
- .st2 {
33
- fill: #662482;
1
+ var NostrShare=function(b){"use strict";var An=Object.defineProperty;var ur=b=>{throw TypeError(b)};var zn=(b,y,E)=>y in b?An(b,y,{enumerable:!0,configurable:!0,writable:!0,value:E}):b[y]=E;var L=(b,y,E)=>zn(b,typeof y!="symbol"?y+"":y,E),ar=(b,y,E)=>y.has(b)||ur("Cannot "+E);var A=(b,y,E)=>(ar(b,y,"read from private field"),E?E.call(b):y.get(b)),he=(b,y,E)=>y.has(b)?ur("Cannot add the same private member more than once"):y instanceof WeakSet?y.add(b):y.set(b,E),de=(b,y,E,yt)=>(ar(b,y,"write to private field"),yt?yt.call(b,E):y.set(b,E),E);var K,R;const y="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(y);const E=1,yt=2,cr=16,fr=8,vr=1,hr=2,_e="[",jt="[!",Gt="]",ht={},dr=Symbol(),_r=["touchstart","touchmove"];function pr(t){return _r.includes(t)}const pe=!1;var ge=Array.isArray,Kt=Array.from,kt=Object.keys,Et=Object.defineProperty,Tt=Object.getOwnPropertyDescriptor,gr=Object.getOwnPropertyDescriptors,br=Object.getPrototypeOf;function $r(t){for(var e=0;e<t.length;e++)t[e]()}const D=2,be=4,St=8,Wt=16,F=32,nt=64,Jt=128,lt=256,Ct=512,z=1024,W=2048,dt=4096,P=8192,st=16384,mr=32768,Xt=65536,xr=1<<19,$e=1<<20,wr=Symbol("$state"),me=Symbol("legacy props"),yr=Symbol("");function xe(t){return t===this.v}function kr(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Er(t){return!kr(t,this.v)}function Tr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Sr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Cr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Nr(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Ar(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let we=!1;function Nt(t,e){var r={f:0,v:t,reactions:null,equals:xe,version:0};return r}function zr(t){return qr(Nt(t))}function Zt(t,e=!1){const r=Nt(t);return e||(r.equals=Er),r}function qr(t){return w!==null&&w.f&D&&(V===null?Ur([t]):V.push(t)),t}function At(t,e){return w!==null&&jr()&&w.f&(D|Wt)&&(V===null||!V.includes(t))&&Ar(),ye(t,e)}function ye(t,e){return t.equals(e)||(t.v=e,t.version=Ue(),ke(t,W),g!==null&&g.f&z&&!(g.f&F)&&(T!==null&&T.includes(t)?(G(g,W),Ht(g)):Z===null?Yr([t]):Z.push(t))),e}function ke(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,l=0;l<n;l++){var s=r[l],o=s.f;o&W||(G(s,e),o&(z|lt)&&(o&D?ke(s,dt):Ht(s)))}}function Qt(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let $=!1;function Y(t){$=t}let x;function H(t){if(t===null)throw Qt(),ht;return x=t}function _t(){return H(J(x))}function pt(t){if($){if(J(x)!==null)throw Qt(),ht;x=t}}function te(){for(var t=0,e=x;;){if(e.nodeType===8){var r=e.data;if(r===Gt){if(t===0)return e;t-=1}else(r===_e||r===jt)&&(t+=1)}var n=J(e);e.remove(),e=n}}var Ee,Te,Se;function ee(){if(Ee===void 0){Ee=window;var t=Element.prototype,e=Node.prototype;Te=Tt(e,"firstChild").get,Se=Tt(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0}}function zt(t=""){return document.createTextNode(t)}function tt(t){return Te.call(t)}function J(t){return Se.call(t)}function qt(t,e){if(!$)return tt(t);var r=tt(x);return r===null&&(r=x.appendChild(zt())),H(r),r}function Ce(t,e){if(!$){var r=tt(t);return r instanceof Comment&&r.data===""?J(r):r}return x}function Ot(t,e=1,r=!1){let n=$?x:t;for(var l;e--;)l=n,n=J(n);if(!$)return n;var s=n==null?void 0:n.nodeType;if(r&&s!==3){var o=zt();return n===null?l==null||l.after(o):n.before(o),H(o),o}return H(n),n}function Ne(t){t.textContent=""}function Or(t){var e=D|W;g===null?e|=lt:g.f|=$e;var r=w!==null&&w.f&D?w:null;const n={children:null,ctx:I,deps:null,equals:xe,f:e,fn:t,reactions:null,v:null,version:0,parent:r??g};return r!==null&&(r.children??(r.children=[])).push(n),n}function Ae(t){var e=t.children;if(e!==null){t.children=null;for(var r=0;r<e.length;r+=1){var n=e[r];n.f&D?re(n):j(n)}}}function Rr(t){for(var e=t.parent;e!==null;){if(!(e.f&D))return e;e=e.parent}return null}function ze(t){var e,r=g;X(Rr(t));try{Ae(t),e=Ye(t)}finally{X(r)}return e}function qe(t){var e=ze(t),r=(rt||t.f&lt)&&t.deps!==null?dt:z;G(t,r),t.equals(e)||(t.v=e,t.version=Ue())}function re(t){Ae(t),xt(t,0),G(t,st),t.v=t.children=t.deps=t.ctx=t.reactions=null}function Dr(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function ot(t,e,r,n=!0){var l=(t&nt)!==0,s=g,o={ctx:I,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|W,first:null,fn:e,last:null,next:null,parent:l?null:s,prev:null,teardown:null,transitions:null,version:0};if(r){var u=it;try{Ve(!0),Pt(o),o.f|=mr}catch(h){throw j(o),h}finally{Ve(u)}}else e!==null&&Ht(o);var a=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&$e)===0;if(!a&&!l&&n&&(s!==null&&Dr(o,s),w!==null&&w.f&D)){var f=w;(f.children??(f.children=[])).push(o)}return o}function Ir(t){const e=ot(nt,t,!0);return()=>{j(e)}}function Mr(t){const e=ot(nt,t,!0);return(r={})=>new Promise(n=>{r.outro?Rt(e,()=>{j(e),n(void 0)}):(j(e),n(void 0))})}function Lr(t){return ot(be,t,!1)}function Fr(t){return ot(St,t,!0)}function Oe(t){return ne(t)}function ne(t,e=0){return ot(St|Wt|e,t,!0)}function gt(t,e=!0){return ot(St|F,t,!0,e)}function Re(t){var e=t.teardown;if(e!==null){const r=w;at(null);try{e.call(null)}finally{at(r)}}}function De(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)re(e[r])}}function Ie(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;j(r,e),r=n}}function Pr(t){for(var e=t.first;e!==null;){var r=e.next;e.f&F||j(e),e=r}}function j(t,e=!0){var r=!1;if((e||t.f&xr)&&t.nodes_start!==null){for(var n=t.nodes_start,l=t.nodes_end;n!==null;){var s=n===l?null:J(n);n.remove(),n=s}r=!0}Ie(t,e&&!r),De(t),xt(t,0),G(t,st);var o=t.transitions;if(o!==null)for(const a of o)a.stop();Re(t);var u=t.parent;u!==null&&u.first!==null&&Me(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Me(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function Rt(t,e){var r=[];le(t,r,!0),Le(r,()=>{j(t),e&&e()})}function Le(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var l of t)l.out(n)}else e()}function le(t,e,r){if(!(t.f&P)){if(t.f^=P,t.transitions!==null)for(const o of t.transitions)(o.is_global||r)&&e.push(o);for(var n=t.first;n!==null;){var l=n.next,s=(n.f&Xt)!==0||(n.f&F)!==0;le(n,e,s?r:!1),n=l}}}function Dt(t){Fe(t,!0)}function Fe(t,e){if(t.f&P){mt(t)&&Pt(t),t.f^=P;for(var r=t.first;r!==null;){var n=r.next,l=(r.f&Xt)!==0||(r.f&F)!==0;Fe(r,l?e:!1),r=n}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||e)&&s.in()}}let It=!1,se=[];function Pe(){It=!1;const t=se.slice();se=[],$r(t)}function Hr(t){It||(It=!0,queueMicrotask(Pe)),se.push(t)}function Vr(){It&&Pe()}const He=0,Br=1;let Mt=!1,Lt=He,bt=!1,$t=null,it=!1;function Ve(t){it=t}let et=[],ut=0,qn=[],w=null;function at(t){w=t}let g=null;function X(t){g=t}let V=null;function Ur(t){V=t}let T=null,q=0,Z=null;function Yr(t){Z=t}let Be=1,rt=!1,I=null;function Ue(){return++Be}function jr(){return!we}function mt(t){var o,u;var e=t.f;if(e&W)return!0;if(e&dt){var r=t.deps,n=(e&lt)!==0;if(r!==null){var l;if(e&Ct){for(l=0;l<r.length;l++)((o=r[l]).reactions??(o.reactions=[])).push(t);t.f^=Ct}for(l=0;l<r.length;l++){var s=r[l];if(mt(s)&&qe(s),n&&g!==null&&!rt&&!((u=s==null?void 0:s.reactions)!=null&&u.includes(t))&&(s.reactions??(s.reactions=[])).push(t),s.version>t.version)return!0}}(!n||g!==null&&!rt)&&G(t,z)}return!1}function Gr(t,e){for(var r=e;r!==null;){if(r.f&Jt)try{r.fn(t);return}catch{r.f^=Jt}r=r.parent}throw Mt=!1,t}function Kr(t){return(t.f&st)===0&&(t.parent===null||(t.parent.f&Jt)===0)}function Ft(t,e,r,n){if(Mt){if(r===null&&(Mt=!1),Kr(e))throw t;return}r!==null&&(Mt=!0);{Gr(t,e);return}}function Ye(t){var c;var e=T,r=q,n=Z,l=w,s=rt,o=V,u=I,a=t.f;T=null,q=0,Z=null,w=a&(F|nt)?null:t,rt=!it&&(a&lt)!==0,V=null,I=t.ctx;try{var f=(0,t.fn)(),h=t.deps;if(T!==null){var i;if(xt(t,q),h!==null&&q>0)for(h.length=q+T.length,i=0;i<T.length;i++)h[q+i]=T[i];else t.deps=h=T;if(!rt)for(i=q;i<h.length;i++)((c=h[i]).reactions??(c.reactions=[])).push(t)}else h!==null&&q<h.length&&(xt(t,q),h.length=q);return f}finally{T=e,q=r,Z=n,w=l,rt=s,V=o,I=u}}function Wr(t,e){let r=e.reactions;if(r!==null){var n=r.indexOf(t);if(n!==-1){var l=r.length-1;l===0?r=e.reactions=null:(r[n]=r[l],r.pop())}}r===null&&e.f&D&&(T===null||!T.includes(e))&&(G(e,dt),e.f&(lt|Ct)||(e.f^=Ct),xt(e,0))}function xt(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Wr(t,r[n])}function Pt(t){var e=t.f;if(!(e&st)){G(t,z);var r=g,n=I;g=t;try{e&Wt?Pr(t):Ie(t),De(t),Re(t);var l=Ye(t);t.teardown=typeof l=="function"?l:null,t.version=Be}catch(s){Ft(s,t,r,n||t.ctx)}finally{g=r}}}function je(){if(ut>1e3){ut=0;try{Tr()}catch(t){if($t!==null)Ft(t,$t,null);else throw t}}ut++}function Ge(t){var e=t.length;if(e!==0){je();var r=it;it=!0;try{for(var n=0;n<e;n++){var l=t[n];l.f&z||(l.f^=z);var s=[];Ke(l,s),Jr(s)}}finally{it=r}}}function Jr(t){var e=t.length;if(e!==0)for(var r=0;r<e;r++){var n=t[r];if(!(n.f&(st|P)))try{mt(n)&&(Pt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Me(n):n.fn=null))}catch(l){Ft(l,n,null,n.ctx)}}}function Xr(){if(bt=!1,ut>1001)return;const t=et;et=[],Ge(t),bt||(ut=0,$t=null)}function Ht(t){Lt===He&&(bt||(bt=!0,queueMicrotask(Xr))),$t=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(nt|F)){if(!(r&z))return;e.f^=z}}et.push(e)}function Ke(t,e){var r=t.first,n=[];t:for(;r!==null;){var l=r.f,s=(l&F)!==0,o=s&&(l&z)!==0,u=r.next;if(!o&&!(l&P))if(l&St){if(s)r.f^=z;else try{mt(r)&&Pt(r)}catch(i){Ft(i,r,null,r.ctx)}var a=r.first;if(a!==null){r=a;continue}}else l&be&&n.push(r);if(u===null){let i=r.parent;for(;i!==null;){if(t===i)break t;var f=i.next;if(f!==null){r=f;continue t}i=i.parent}}r=u}for(var h=0;h<n.length;h++)a=n[h],e.push(a),Ke(a,e)}function O(t){var e=Lt,r=et;try{je();const l=[];Lt=Br,et=l,bt=!1,Ge(r);var n=t==null?void 0:t();return Vr(),(et.length>0||l.length>0)&&O(),ut=0,$t=null,n}finally{Lt=e,et=r}}function M(t){var h;var e=t.f,r=(e&D)!==0;if(r&&e&st){var n=ze(t);return re(t),n}if(w!==null){V!==null&&V.includes(t)&&Nr();var l=w.deps;T===null&&l!==null&&l[q]===t?q++:T===null?T=[t]:T.push(t),Z!==null&&g!==null&&g.f&z&&!(g.f&F)&&Z.includes(t)&&(G(g,W),Ht(g))}else if(r&&t.deps===null)for(var s=t,o=s.parent,u=s;o!==null;)if(o.f&D){var a=o;u=a,o=a.parent}else{var f=o;(h=f.deriveds)!=null&&h.includes(u)||(f.deriveds??(f.deriveds=[])).push(u);break}return r&&(s=t,mt(s)&&qe(s)),t.v}function Zr(t){const e=w;try{return w=null,t()}finally{w=e}}const Qr=~(W|dt|z);function G(t,e){t.f=t.f&Qr|e}function oe(t,e=!1,r){I={p:I,c:null,e:null,m:!1,s:t,x:null,l:null}}function ie(t){const e=I;if(e!==null){t!==void 0&&(e.x=t);const o=e.e;if(o!==null){var r=g,n=w;e.e=null;try{for(var l=0;l<o.length;l++){var s=o[l];X(s.effect),at(s.reaction),Lr(s.fn)}}finally{X(r),at(n)}}I=e.p,e.m=!0}return t||{}}const We=new Set,ue=new Set;function Je(t){for(var e=0;e<t.length;e++)We.add(t[e]);for(var r of ue)r(t)}function Vt(t){var p;var e=this,r=e.ownerDocument,n=t.type,l=((p=t.composedPath)==null?void 0:p.call(t))||[],s=l[0]||t.target,o=0,u=t.__root;if(u){var a=l.indexOf(u);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var f=l.indexOf(e);if(f===-1)return;a<=f&&(o=a)}if(s=l[o]||t.target,s!==e){Et(t,"currentTarget",{configurable:!0,get(){return s||r}});var h=w,i=g;at(null),X(null);try{for(var c,v=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var _=s["__"+n];if(_!==void 0&&!s.disabled)if(ge(_)){var[S,...C]=_;S.apply(s,[t,...C])}else _.call(s,t)}catch(m){c?v.push(m):c=m}if(t.cancelBubble||d===e||d===null)break;s=d}if(c){for(let m of v)queueMicrotask(()=>{throw m});throw c}}finally{t.__root=e,delete t.currentTarget,at(h),X(i)}}}function tn(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Bt(t,e){var r=g;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function wt(t,e){var r=(e&vr)!==0,n=(e&hr)!==0,l,s=!t.startsWith("<!>");return()=>{if($)return Bt(x,null),x;l===void 0&&(l=tn(s?t:"<!>"+t),r||(l=tt(l)));var o=n?document.importNode(l,!0):l.cloneNode(!0);if(r){var u=tt(o),a=o.lastChild;Bt(u,a)}else Bt(o,o);return o}}function ct(t,e){if($){g.nodes_end=x,_t();return}t!==null&&t.before(e)}function en(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=r,t.nodeValue=r==null?"":r+"")}function Xe(t,e){return Ze(t,e)}function rn(t,e){ee(),e.intro=e.intro??!1;const r=e.target,n=$,l=x;try{for(var s=tt(r);s&&(s.nodeType!==8||s.data!==_e);)s=J(s);if(!s)throw ht;Y(!0),H(s),_t();const o=Ze(t,{...e,anchor:s});if(x===null||x.nodeType!==8||x.data!==Gt)throw Qt(),ht;return Y(!1),o}catch(o){if(o===ht)return e.recover===!1&&Sr(),ee(),Ne(r),Y(!1),Xe(t,e);throw o}finally{Y(n),H(l)}}const ft=new Map;function Ze(t,{target:e,anchor:r,props:n={},events:l,context:s,intro:o=!0}){ee();var u=new Set,a=i=>{for(var c=0;c<i.length;c++){var v=i[c];if(!u.has(v)){u.add(v);var d=pr(v);e.addEventListener(v,Vt,{passive:d});var _=ft.get(v);_===void 0?(document.addEventListener(v,Vt,{passive:d}),ft.set(v,1)):ft.set(v,_+1)}}};a(Kt(We)),ue.add(a);var f=void 0,h=Mr(()=>{var i=r??e.appendChild(zt());return gt(()=>{if(s){oe({});var c=I;c.c=s}l&&(n.$$events=l),$&&Bt(i,null),f=t(i,n)||{},$&&(g.nodes_end=x),s&&ie()}),()=>{var d;for(var c of u){e.removeEventListener(c,Vt);var v=ft.get(c);--v===0?(document.removeEventListener(c,Vt),ft.delete(c)):ft.set(c,v)}ue.delete(a),i!==r&&((d=i.parentNode)==null||d.removeChild(i))}});return ae.set(f,h),f}let ae=new WeakMap;function nn(t,e){const r=ae.get(t);return r?(ae.delete(t),r(e)):Promise.resolve()}function Qe(t,e,r=!1){$&&_t();var n=t,l=null,s=null,o=dr,u=r?Xt:0,a=!1;const f=(i,c=!0)=>{a=!0,h(c,i)},h=(i,c)=>{if(o===(o=i))return;let v=!1;if($){const d=n.data===jt;!!o===d&&(n=te(),H(n),Y(!1),v=!0)}o?(l?Dt(l):c&&(l=gt(()=>c(n))),s&&Rt(s,()=>{s=null})):(s?Dt(s):c&&(s=gt(()=>c(n))),l&&Rt(l,()=>{l=null})),v&&Y(!0)};ne(()=>{a=!1,e(f),a||h(null,null)},u),$&&(n=x)}function ln(t,e){return e}function sn(t,e,r,n){for(var l=[],s=e.length,o=0;o<s;o++)le(e[o].e,l,!0);var u=s>0&&l.length===0&&r!==null;if(u){var a=r.parentNode;Ne(a),a.append(r),n.clear(),Q(t,e[0].prev,e[s-1].next)}Le(l,()=>{for(var f=0;f<s;f++){var h=e[f];u||(n.delete(h.k),Q(t,h.prev,h.next)),j(h.e,!u)}})}function on(t,e,r,n,l,s=null){var o=t,u={flags:e,items:new Map,first:null};{var a=t;o=$?H(tt(a)):a.appendChild(zt())}$&&_t();var f=null,h=!1;ne(()=>{var i=r(),c=ge(i)?i:i==null?[]:Kt(i),v=c.length;if(h&&v===0)return;h=v===0;let d=!1;if($){var _=o.data===jt;_!==(v===0)&&(o=te(),H(o),Y(!1),d=!0)}if($){for(var S=null,C,p=0;p<v;p++){if(x.nodeType===8&&x.data===Gt){o=x,d=!0,Y(!1);break}var m=c[p],U=n(m,p);C=tr(x,u,S,null,m,U,p,l,e),u.items.set(U,C),S=C}v>0&&H(te())}if(!$){var k=w;un(c,u,o,l,e,(k.f&P)!==0,n)}s!==null&&(v===0?f?Dt(f):f=gt(()=>s(o)):f!==null&&Rt(f,()=>{f=null})),d&&Y(!0)}),$&&(o=x)}function un(t,e,r,n,l,s,o,u){var a=t.length,f=e.items,h=e.first,i=h,c,v=null,d=[],_=[],S,C,p,m;for(m=0;m<a;m+=1){if(S=t[m],C=o(S,m),p=f.get(C),p===void 0){var U=i?i.e.nodes_start:r;v=tr(U,e,v,v===null?e.first:v.next,S,C,m,n,l),f.set(C,v),d=[],_=[],i=v.next;continue}if(an(p,S,m),p.e.f&P&&Dt(p.e),p!==i){if(c!==void 0&&c.has(p)){if(d.length<_.length){var k=_[0],N;v=k.prev;var vt=d[0],fe=d[d.length-1];for(N=0;N<d.length;N+=1)er(d[N],k,r);for(N=0;N<_.length;N+=1)c.delete(_[N]);Q(e,vt.prev,fe.next),Q(e,v,vt),Q(e,fe,k),i=k,v=fe,m-=1,d=[],_=[]}else c.delete(p),er(p,i,r),Q(e,p.prev,p.next),Q(e,p,v===null?e.first:v.next),Q(e,v,p),v=p;continue}for(d=[],_=[];i!==null&&i.k!==C;)(s||!(i.e.f&P))&&(c??(c=new Set)).add(i),_.push(i),i=i.next;if(i===null)continue;p=i}d.push(p),v=p,i=p.next}if(i!==null||c!==void 0){for(var ve=c===void 0?[]:Kt(c);i!==null;)(s||!(i.e.f&P))&&ve.push(i),i=i.next;var Cn=ve.length;if(Cn>0){var Nn=a===0?r:null;sn(e,ve,Nn,f)}}g.first=e.first&&e.first.e,g.last=v&&v.e}function an(t,e,r,n){ye(t.v,e),t.i=r}function tr(t,e,r,n,l,s,o,u,a,f){var h=(a&E)!==0,i=(a&cr)===0,c=h?i?Zt(l):Nt(l):l,v=a&yt?Nt(o):o,d={i:v,v:c,k:s,a:null,e:null,prev:r,next:n};try{return d.e=gt(()=>u(t,c,v),$),d.e.prev=r&&r.e,d.e.next=n&&n.e,r===null?e.first=d:(r.next=d,r.e.next=d.e),n!==null&&(n.prev=d,n.e.prev=d.e),d}finally{}}function er(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,l=e?e.e.nodes_start:r,s=t.e.nodes_start;s!==n;){var o=J(s);l.before(s),s=o}}function Q(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function cn(t,e,r,n,l){var u;$&&_t();var s=(u=e.$$slots)==null?void 0:u[r],o=!1;s===!0&&(s=e.children,o=!0),s===void 0?l!==null&&l(t):s(t,o?()=>n:n)}function rr(t,e){Hr(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const l=document.createElement("style");l.id=e.hash,l.textContent=e.code,n.appendChild(l)}})}function Ut(t,e,r,n){var l=t.__attributes??(t.__attributes={});$&&(l[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||l[e]!==(l[e]=r)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[yr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&fn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var nr=new Map;function fn(t){var e=nr.get(t.nodeName);if(e)return e;nr.set(t.nodeName,e=[]);for(var r,n=t,l=Element.prototype;l!==n;){r=gr(n);for(var s in r)r[s].set&&e.push(s);n=br(n)}return e}function lr(t,e){var r=t.__className,n=vn(e);$&&t.className===n?t.__className=n:(r!==n||$&&t.className!==n)&&(e==null?t.removeAttribute("class"):t.className=n,t.__className=n)}function vn(t){return t??""}function hn(t){for(var e=g,r=g;e!==null&&!(e.f&(F|nt));)e=e.parent;try{return X(e),t()}finally{X(r)}}function B(t,e,r,n){var U;var l=!we,s=(r&fr)!==0,o=!1,u;u=t[e];var a=wr in t||me in t,f=((U=Tt(t,e))==null?void 0:U.set)??(a&&s&&e in t?k=>t[e]=k:void 0),h=n,i=!0,c=!1,v=()=>(c=!0,i&&(i=!1,h=n),h);u===void 0&&n!==void 0&&(f&&l&&Cr(),u=v(),f&&f(u));var d;if(d=()=>{var k=t[e];return k===void 0?v():(i=!0,c=!1,k)},f){var _=t.$$legacy;return function(k,N){return arguments.length>0?((!N||_||o)&&f(N?d():k),k):d()}}var S=!1,C=!1,p=Zt(u),m=hn(()=>Or(()=>{var k=d(),N=M(p);return S?(S=!1,C=!0,N):(C=!1,p.v=k)}));return function(k,N){if(arguments.length>0){const vt=N?M(m):k;return m.equals(vt)||(S=!0,At(p,vt),c&&h!==void 0&&(h=vt),Zr(()=>M(m))),k}return M(m)}}function dn(t){return new _n(t)}class _n{constructor(e){he(this,K);he(this,R);var s;var r=new Map,n=(o,u)=>{var a=Zt(u);return r.set(o,a),a};const l=new Proxy({...e.props||{},$$events:{}},{get(o,u){return M(r.get(u)??n(u,Reflect.get(o,u)))},has(o,u){return u===me?!0:(M(r.get(u)??n(u,Reflect.get(o,u))),Reflect.has(o,u))},set(o,u,a){return At(r.get(u)??n(u,a),a),Reflect.set(o,u,a)}});de(this,R,(e.hydrate?rn:Xe)(e.component,{target:e.target,anchor:e.anchor,props:l,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&O(),de(this,K,l.$$events);for(const o of Object.keys(A(this,R)))o==="$set"||o==="$destroy"||o==="$on"||Et(this,o,{get(){return A(this,R)[o]},set(u){A(this,R)[o]=u},enumerable:!0});A(this,R).$set=o=>{Object.assign(l,o)},A(this,R).$destroy=()=>{nn(A(this,R))}}$set(e){A(this,R).$set(e)}$on(e,r){A(this,K)[e]=A(this,K)[e]||[];const n=(...l)=>r.call(this,...l);return A(this,K)[e].push(n),()=>{A(this,K)[e]=A(this,K)[e].filter(l=>l!==n)}}$destroy(){A(this,R).$destroy()}}K=new WeakMap,R=new WeakMap;let sr;typeof HTMLElement=="function"&&(sr=class extends HTMLElement{constructor(e,r,n){super();L(this,"$$ctor");L(this,"$$s");L(this,"$$c");L(this,"$$cn",!1);L(this,"$$d",{});L(this,"$$r",!1);L(this,"$$p_d",{});L(this,"$$l",{});L(this,"$$l_u",new Map);L(this,"$$me");this.$$ctor=e,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(e,r,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(r),this.$$c){const l=this.$$c.$on(e,r);this.$$l_u.set(r,l)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const l=this.$$l_u.get(r);l&&(l(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return s=>{const o=document.createElement("slot");l!=="default"&&(o.name=l),ct(s,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=pn(this);for(const l of this.$$s)l in n&&(l==="default"&&!this.$$d.children?(this.$$d.children=e(l),r.default=!0):r[l]=e(l));for(const l of this.attributes){const s=this.$$g_p(l.name);s in this.$$d||(this.$$d[s]=Yt(s,l.value,this.$$p_d,"toProp"))}for(const l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=dn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Ir(()=>{Fr(()=>{var l;this.$$r=!0;for(const s of kt(this.$$c)){if(!((l=this.$$p_d[s])!=null&&l.reflect))continue;this.$$d[s]=this.$$c[s];const o=Yt(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1})});for(const l in this.$$l)for(const s of this.$$l[l]){const o=this.$$c.$on(l,s);this.$$l_u.set(s,o)}this.$$l={}}}attributeChangedCallback(e,r,n){var l;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Yt(e,n,this.$$p_d,"toProp"),(l=this.$$c)==null||l.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return kt(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Yt(t,e,r,n){var s;const l=(s=r[t])==null?void 0:s.type;if(e=l==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(l){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(l){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function pn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function or(t,e,r,n,l,s){let o=class extends sr{constructor(){super(t,r,l),this.$$p_d=e}static get observedAttributes(){return kt(e).map(u=>(e[u].attribute||u).toLowerCase())}};return kt(e).forEach(u=>{Et(o.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(a){var i;a=Yt(u,a,e),this.$$d[u]=a;var f=this.$$c;if(f){var h=(i=Tt(f,u))==null?void 0:i.get;h?f[u]=a:f.$set({[u]:a})}}})}),n.forEach(u=>{Et(o.prototype,u,{get(){var a;return(a=this.$$c)==null?void 0:a[u]}})}),t.element=o,o}const gn=[{name:"nostter",url:"https://nostter.app/post?content={text}&url={url}&title={title}",icon:"https://nostter.app/favicon.ico"},{name:"lumilumi",url:"https://lumilumi.vercel.app/post?url={url}&text={text}&title={title}",icon:"https://lumilumi.vercel.app/favicon.ico"}];var bn=t=>t.stopPropagation(),$n=(t,e,r)=>e(M(r).url),mn=wt('<button class="item svelte-13vsz3z"><img> </button>'),xn=wt('<div class="overlay svelte-13vsz3z"><div class="inner svelte-13vsz3z"><button class="close-button svelte-13vsz3z" aria-label="Close">✖</button> <h2 class="title svelte-13vsz3z">Share</h2> <div class="list svelte-13vsz3z"></div></div></div>');const wn={hash:"svelte-13vsz3z",code:`
2
+ /* オーバーレイ背景 */.overlay.svelte-13vsz3z {position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.3); /* 少し濃い背景 */display:flex;justify-content:center;align-items:center;}
3
+
4
+ /* ダイアログ本体 */.inner.svelte-13vsz3z {display:flex;flex-direction:column;position:relative;background-color:var(--bg-color);padding:1.5rem;border-radius:12px; /* 柔らかい角丸 */box-shadow:0 8px 16px rgba(0, 0, 0, 0.2);width:90%;max-width:400px;gap:1rem; /* スペーシング */}
5
+
6
+ /* タイトル */.title.svelte-13vsz3z {margin:0;font-size:1.25rem;font-weight:bold;text-align:center;color:var(--text-color-main); /* グレー700 */}
7
+
8
+ /* リスト */.list.svelte-13vsz3z {display:flex;flex-wrap:wrap;justify-content:center;gap:0.75rem; /* ゆったりした間隔 */}
9
+
10
+ /* リストアイテム */.item.svelte-13vsz3z {color:var(--button2-text-color);display:flex;width:120px;justify-content:center;align-items:center;gap:0.5rem;padding:0.75rem 1rem;background-color:var(--button2-bg-color); /* グレー100 */border:1px solid var(--border-color); /* グレー300 */border-radius:8px;font-size:1rem;cursor:pointer;transition:background-color 0.2s ease,
11
+ box-shadow 0.2s ease;}.item.svelte-13vsz3z:hover {background-color:var(--button2-hover-color); /* グレー200 */box-shadow:0 2px 6px rgba(0, 0, 0, 0.1);}.item.svelte-13vsz3z:active {background-color:var(--button2-active-color); /* グレー300 */}
12
+
13
+ /* バツボタン */.close-button.svelte-13vsz3z {position:absolute;right:12px;top:12px;width:36px;height:36px;display:flex;justify-content:center;align-items:center;background-color:var(--button2-bg-color); /* グレー200 */border:none;border-radius:50%;font-size:1.25rem;color:var(--button2-text-color); /* グレー700 */cursor:pointer;transition:background-color 0.2s ease,
14
+ transform 0.1s ease;}.close-button.svelte-13vsz3z:hover {background-color:var(--button2-hover-color); /* グレー300 */}.close-button.svelte-13vsz3z:active {background-color:var(--button2-active-color); /* グレー400 */transform:scale(0.95); /* 押した感覚を演出 */}`};function ce(t,e){oe(e,!0),rr(t,wn);let r=B(e,"url",7,""),n=B(e,"text",7,""),l=B(e,"shareTitle",7,""),s=B(e,"handleClose",7);const o=i=>{const c=i.replace("{url}",encodeURIComponent(r())).replace("{title}",encodeURIComponent(l())).replace("{text}",encodeURIComponent(n()));console.log(c),window.open(c,"_blank","noreferrer"),s()()};var u=xn();u.__click=function(...i){var c;(c=s())==null||c.apply(this,i)};var a=qt(u);a.__click=[bn];var f=qt(a);f.__click=function(...i){var c;(c=s())==null||c.apply(this,i)};var h=Ot(f,4);return on(h,21,()=>gn,ln,(i,c)=>{var v=mn();v.__click=[$n,o,c];var d=qt(v);Ut(d,"width",24);var _=Ot(d);pt(v),Oe(()=>{Ut(d,"src",M(c).icon),Ut(d,"alt",M(c).name),en(_,` ${M(c).name??""}`)}),ct(i,v)}),pt(h),pt(a),pt(u),ct(t,u),ie({get url(){return r()},set url(i=""){r(i),O()},get text(){return n()},set text(i=""){n(i),O()},get shareTitle(){return l()},set shareTitle(i=""){l(i),O()},get handleClose(){return s()},set handleClose(i){s(i),O()}})}Je(["click"]),customElements.define("nostr-share-dialog",or(ce,{url:{},text:{},shareTitle:{},handleClose:{}},[],[],!0));const yn=(t,e)=>{At(e,!0)};var kn=wt("<span>Share</span>"),En=wt(`<svg class="nostr-icon svelte-1k7qocb" version="1.1" id="_8" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 256 256" style="enable-background:new 0 0 256 256;" xml:space="preserve"><g><path class="st0 svelte-1k7qocb" d="M0,0v256h256V0H0z M231.2,159.2c0,20.7,0,31.1-3.5,42.2c-4.4,12.2-14,21.8-26.2,26.2
15
+ c-11.1,3.5-21.5,3.5-42.2,3.5H96.8c-20.7,0-31.1,0-42.2-3.5c-12.2-4.4-21.8-14-26.2-26.2c-3.5-11.1-3.5-21.5-3.5-42.2V96.8
16
+ c0-20.7,0-31.1,3.5-42.2c4.4-12.2,14-21.8,26.2-26.2c11.2-3.5,21.5-3.5,42.2-3.5h62.5c20.7,0,31.1,0,42.2,3.5
17
+ c12.2,4.4,21.8,14,26.2,26.2c3.5,11.1,3.5,21.5,3.5,42.2V159.2z"></path><circle class="st1 svelte-1k7qocb" cx="137.9" cy="99" r="12.1"></circle><path class="st1 svelte-1k7qocb" d="M210.8,115.9c0-47.3-27.7-68.7-64.4-68.7c-16.4,0-31,4.4-42.4,12.5c-3.8,2.7-9,0.1-9-4.5
18
+ c0-3.1-2.5-5.7-5.7-5.7H57.7c-3.1,0-5.7,2.5-5.7,5.7v144c0,3.1,2.5,5.7,5.7,5.7h33.7c3.1,0,5.6-2.5,5.6-5.6v-8.4
19
+ c0-62.8-33.2-109.8-0.4-116c30-5.7,64.1-3,64.5,20.1c0,2,0.3,8,8.6,11.2c5,2,12.6,2.6,22.6,2.4c0,0,9.1-0.7,9.1,8.5
20
+ c0,11.5-20.4,10.7-20.4,10.7c-6.7,0.3-22.6-1.5-31.7,1.2c-4.8,1.5-9,4.2-11.5,9.1c-4.2,8.3-6.2,26.5-6.5,45.5v15.5
21
+ c0,3.1,2.5,5.7,5.7,5.7h68c3.1,0,5.7-2.5,5.7-5.7l0,0V115.9z"></path><path class="st2 svelte-1k7qocb" d="M227.6,54.6c-4.4-12.2-14-21.8-26.2-26.2c-11.1-3.5-21.5-3.5-42.2-3.5H96.8c-20.7,0-31.1,0-42.2,3.5
22
+ c-12.2,4.4-21.8,14-26.2,26.2c-3.5,11.2-3.5,21.5-3.5,42.2v62.5c0,20.7,0,31.1,3.5,42.2c4.4,12.2,14,21.8,26.2,26.2
23
+ c11.2,3.5,21.5,3.5,42.2,3.5h62.5c20.7,0,31.1,0,42.2-3.5c12.2-4.4,21.8-14,26.2-26.2c3.5-11.1,3.5-21.5,3.5-42.2V96.8
24
+ C231.2,76.1,231.2,65.7,227.6,54.6z M205.1,204.8h-68c-3.1,0-5.7-2.5-5.7-5.7v-15.5c0.3-19,2.3-37.2,6.5-45.5
25
+ c2.5-5,6.7-7.7,11.5-9.1c9-2.7,24.9-0.9,31.7-1.2c0,0,20.4,0.8,20.4-10.7c0-9.3-9.1-8.5-9.1-8.5c-10,0.3-17.7-0.4-22.6-2.4
26
+ c-8.3-3.3-8.6-9.2-8.6-11.2c-0.4-23.1-34.5-25.9-64.5-20.1c-32.8,6.2,0.4,53.3,0.4,116v8.4c-0.1,3.1-2.5,5.6-5.6,5.6H57.7
27
+ c-3.1,0-5.7-2.5-5.7-5.7v-144c0-3.1,2.5-5.7,5.7-5.7h31.7c3.1,0,5.7,2.5,5.7,5.7c0,4.7,5.2,7.2,9,4.5c11.4-8.2,26-12.5,42.4-12.5
28
+ c36.7,0,64.4,21.4,64.4,68.7v83.2l0,0C210.8,202.3,208.3,204.8,205.1,204.8z M125.7,99c0-6.7,5.4-12.1,12.1-12.1S150,92.3,150,99
29
+ s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"></path></g></svg> <!>`,1),Tn=wt("<button><!></button> <!>",1);const Sn={hash:"svelte-1k7qocb",code:`:host {font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
30
+ Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;--text-color-main: #374151;--button1-text-color: #662482;--button1-bg-color: #f3f4f6;--button1-hover-color: #313131;--button2-text-color: rgb(211, 211, 211);--button2-bg-color: #f3f4f6;--button2-hover-color: #e5e7eb;--nostr-color: #662482;--bg-color: #ffffff;--border-color: #d1d5db;}
31
+ @media (prefers-color-scheme: dark) {:host {--text-color-main: #ffffff;--button1-text-color: #eec5ff;--button1-bg-color: #363636;--button1-hover-color: #555555;--button2-text-color: #f1f1f1;--button2-bg-color: #1f1f1f;--button2-hover-color: #3b3b3b;--nostr-color: #eec5ff;--bg-color: #000000;--border-color: #333333;}
34
32
  }
35
- </style>
36
- <g>
37
- <path
38
- class="st0"
39
- d="M0,0v256h256V0H0z M231.2,159.2c0,20.7,0,31.1-3.5,42.2c-4.4,12.2-14,21.8-26.2,26.2
40
- c-11.1,3.5-21.5,3.5-42.2,3.5H96.8c-20.7,0-31.1,0-42.2-3.5c-12.2-4.4-21.8-14-26.2-26.2c-3.5-11.1-3.5-21.5-3.5-42.2V96.8
41
- c0-20.7,0-31.1,3.5-42.2c4.4-12.2,14-21.8,26.2-26.2c11.2-3.5,21.5-3.5,42.2-3.5h62.5c20.7,0,31.1,0,42.2,3.5
42
- c12.2,4.4,21.8,14,26.2,26.2c3.5,11.1,3.5,21.5,3.5,42.2V159.2z"
43
- />
44
- <circle class="st1" cx="137.9" cy="99" r="12.1" />
45
- <path
46
- class="st1"
47
- d="M210.8,115.9c0-47.3-27.7-68.7-64.4-68.7c-16.4,0-31,4.4-42.4,12.5c-3.8,2.7-9,0.1-9-4.5
48
- c0-3.1-2.5-5.7-5.7-5.7H57.7c-3.1,0-5.7,2.5-5.7,5.7v144c0,3.1,2.5,5.7,5.7,5.7h33.7c3.1,0,5.6-2.5,5.6-5.6v-8.4
49
- c0-62.8-33.2-109.8-0.4-116c30-5.7,64.1-3,64.5,20.1c0,2,0.3,8,8.6,11.2c5,2,12.6,2.6,22.6,2.4c0,0,9.1-0.7,9.1,8.5
50
- c0,11.5-20.4,10.7-20.4,10.7c-6.7,0.3-22.6-1.5-31.7,1.2c-4.8,1.5-9,4.2-11.5,9.1c-4.2,8.3-6.2,26.5-6.5,45.5v15.5
51
- c0,3.1,2.5,5.7,5.7,5.7h68c3.1,0,5.7-2.5,5.7-5.7l0,0V115.9z"
52
- />
53
- <path
54
- class="st2"
55
- d="M227.6,54.6c-4.4-12.2-14-21.8-26.2-26.2c-11.1-3.5-21.5-3.5-42.2-3.5H96.8c-20.7,0-31.1,0-42.2,3.5
56
- c-12.2,4.4-21.8,14-26.2,26.2c-3.5,11.2-3.5,21.5-3.5,42.2v62.5c0,20.7,0,31.1,3.5,42.2c4.4,12.2,14,21.8,26.2,26.2
57
- c11.2,3.5,21.5,3.5,42.2,3.5h62.5c20.7,0,31.1,0,42.2-3.5c12.2-4.4,21.8-14,26.2-26.2c3.5-11.1,3.5-21.5,3.5-42.2V96.8
58
- C231.2,76.1,231.2,65.7,227.6,54.6z M205.1,204.8h-68c-3.1,0-5.7-2.5-5.7-5.7v-15.5c0.3-19,2.3-37.2,6.5-45.5
59
- c2.5-5,6.7-7.7,11.5-9.1c9-2.7,24.9-0.9,31.7-1.2c0,0,20.4,0.8,20.4-10.7c0-9.3-9.1-8.5-9.1-8.5c-10,0.3-17.7-0.4-22.6-2.4
60
- c-8.3-3.3-8.6-9.2-8.6-11.2c-0.4-23.1-34.5-25.9-64.5-20.1c-32.8,6.2,0.4,53.3,0.4,116v8.4c-0.1,3.1-2.5,5.6-5.6,5.6H57.7
61
- c-3.1,0-5.7-2.5-5.7-5.7v-144c0-3.1,2.5-5.7,5.7-5.7h31.7c3.1,0,5.7,2.5,5.7,5.7c0,4.7,5.2,7.2,9,4.5c11.4-8.2,26-12.5,42.4-12.5
62
- c36.7,0,64.4,21.4,64.4,68.7v83.2l0,0C210.8,202.3,208.3,204.8,205.1,204.8z M125.7,99c0-6.7,5.4-12.1,12.1-12.1S150,92.3,150,99
63
- s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"
64
- />
65
- </g>
66
- </svg>`,Sn=(t,e)=>{qt(e,!0)};var Cn=kt('<div class="nostrShare-svg svelte-16pn564"><!></div>'),Nn=kt('<div class="nostrShare-svg svelte-16pn564"><!></div> <span class="nostrShare-text svelte-16pn564">Share</span>',1),An=kt("<button><!></button> <!>",1);const Rn={hash:"svelte-16pn564",code:`
67
- /* ボタン全体の基本スタイル */.nostrShare-button.svelte-16pn564,
68
- .nostrShare-icon.svelte-16pn564 {display:flex;align-items:center;justify-content:center;border:none;outline:none;cursor:pointer;transition:all 0.2s ease-in-out;}
33
+ /* ボタン全体の基本スタイル */.nostrShare-button.svelte-1k7qocb,
34
+ .nostrShare-icon.svelte-1k7qocb {color:var(--button1-text-color);display:flex;align-items:center;justify-content:center;border:none;outline:none;cursor:pointer;transition:all 0.2s ease-in-out;}
69
35
 
70
- /* ボタンスタイル */.nostrShare-button.svelte-16pn564 {padding:8px 16px;margin:4px;font-family:-apple-system,
71
- BlinkMacSystemFont,
72
- Helvetica Neue,
73
- Arial,
74
- Hiragino Kaku Gothic ProN,
75
- Hiragino Sans,
76
- Meiryo,
77
- sans-serif;font-weight:bold;border-radius:8px;background-color:#f3f4f6; /* グレー */color:#374151; /* ダークグレー */}.nostrShare-button.svelte-16pn564:hover {background-color:#e5e7eb; /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-button.svelte-16pn564:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
36
+ /* ボタンスタイル */.nostrShare-button.svelte-1k7qocb {padding:8px 16px;margin:4px;font-weight:bold;border-radius:8px;background-color:var(--button1-bg-color); /* グレー */color:var(--button2-text-color); /* ダークグレー */}.nostrShare-button.svelte-1k7qocb:hover {background-color:var(--button1-hover-color); /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-button.svelte-1k7qocb:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
78
37
 
79
- /* テキスト用スタイル */.nostrShare-text.svelte-16pn564 {margin-left:8px;font-size:14px;}
38
+ /* テキスト用スタイル */.nostrShare-text.svelte-1k7qocb {margin-left:8px;font-size:14px;color:var(--button2-text-color);}
80
39
 
81
- /* アイコンスタイル */.nostrShare-icon.svelte-16pn564 {width:40px;height:40px;margin:4px;border-radius:50%;background-color:#f3f4f6;color:#374151;}.nostrShare-icon.svelte-16pn564:hover {background-color:#e5e7eb;box-shadow:0 0 6px rgba(0, 0, 0, 0.1);}.nostrShare-icon.svelte-16pn564:active {background-color:#d1d5db;transform:scale(0.95);}
40
+ /* アイコンスタイル */.nostrShare-icon.svelte-1k7qocb {width:36px;height:36px;margin:4px;border-radius:50%;background-color:var(--button1-bg-color); /* グレー */}.nostrShare-icon.svelte-1k7qocb:hover {background-color:var(--button1-hover-color); /* グレー */box-shadow:0 0 6px rgba(0, 0, 0, 0.1);}.nostrShare-icon.svelte-1k7qocb:active {background-color:#d1d5db;transform:scale(0.95);}
82
41
 
83
- /* アイコン内部のSVG */.nostrShare-svg.svelte-16pn564 {width:24px;height:24px;display:flex;align-items:center;justify-content:center;}`};function ur(t,e){ie(e,!0),lr(t,Rn);let r=et(e,"url",7),n=et(e,"text",7),l=et(e,"shareTitle",7),s=et(e,"icon",7,!1),i=qr(!1);const o=()=>{qt(i,!1)};var u=An(),v=ee(u);v.__click=[Sn,i];var h=ct(v);hn(h,e,"default",{},f=>{var d=nn(),w=ee(d);{var C=_=>{var m=Cn(),D=ct(m);nr(D,()=>ar),nt(m),it(_,m)},S=_=>{var m=Nn(),D=ee(m),E=ct(D);nr(E,()=>ar),nt(D),Mr(2),it(_,m)};tr(w,_=>{s()?_(C):_(S,!1)})}it(f,d)}),nt(v);var a=re(v,2);{var c=f=>{ce(f,{handleClose:o,get url(){return r()},get text(){return n()},get shareTitle(){return l()}})};tr(a,f=>{z(i)&&f(c)})}return qe(()=>_n(v,`${(e.class?e.class:s()?"nostrShare-icon":"nostrShare-button")??""} svelte-16pn564`)),it(t,u),oe({get url(){return r()},set url(f){r(f),U()},get text(){return n()},set text(f){n(f),U()},get shareTitle(){return l()},set shareTitle(f){l(f),U()},get icon(){return s()},set icon(f=!1){s(f),U()}})}return Je(["click"]),customElements.define("nostr-share",or(ur,{url:{},text:{},shareTitle:{},icon:{}},["default"],[],!0)),b.Dialog=ce,b.NostrShare=ur,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),b}({});
42
+ /* アイコン内部のSVG */.nostr-icon.svelte-1k7qocb {width:24px;height:24px;display:flex;align-items:center;justify-content:center;}.st0.svelte-1k7qocb {fill:none;}.st1.svelte-1k7qocb {fill:var(--button1-bg-color);}.st2.svelte-1k7qocb {fill:var(--nostr-color);}`};function ir(t,e){oe(e,!0),rr(t,Sn);let r=B(e,"url",7),n=B(e,"text",7),l=B(e,"shareTitle",7),s=B(e,"icon",7,!1),o=B(e,"class",7),u=B(e,"style",7),a=zr(!1);const f=()=>{At(a,!1)};var h=Tn(),i=Ce(h);i.__click=[yn,a];var c=qt(i);cn(c,e,"default",{},_=>{var S=En(),C=Ot(Ce(S),2);{var p=m=>{var U=kn();lr(U,"nostrShare-text svelte-1k7qocb"),ct(m,U)};Qe(C,m=>{s()||m(p)})}ct(_,S)}),pt(i);var v=Ot(i,2);{var d=_=>{ce(_,{handleClose:f,get url(){return r()},get text(){return n()},get shareTitle(){return l()}})};Qe(v,_=>{M(a)&&_(d)})}return Oe(()=>{lr(i,`${`${o()||(s()?"nostrShare-icon":"nostrShare-button")}`??""} svelte-1k7qocb`),Ut(i,"style",u()||"")}),ct(t,h),ie({get url(){return r()},set url(_){r(_),O()},get text(){return n()},set text(_){n(_),O()},get shareTitle(){return l()},set shareTitle(_){l(_),O()},get icon(){return s()},set icon(_=!1){s(_),O()},get class(){return o()},set class(_){o(_),O()},get style(){return u()},set style(_){u(_),O()}})}return Je(["click"]),customElements.define("nostr-share",or(ir,{url:{},text:{},shareTitle:{},icon:{},class:{},style:{}},["default"],[],!0)),b.Dialog=ce,b.NostrShare=ir,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),b}({});
@@ -1,83 +1,42 @@
1
- (function(g,w){typeof exports=="object"&&typeof module<"u"?w(exports):typeof define=="function"&&define.amd?define(["exports"],w):(g=typeof globalThis<"u"?globalThis:g||self,w(g.NostrShare={}))})(this,function(g){"use strict";var Dn=Object.defineProperty;var fr=g=>{throw TypeError(g)};var Mn=(g,w,k)=>w in g?Dn(g,w,{enumerable:!0,configurable:!0,writable:!0,value:k}):g[w]=k;var F=(g,w,k)=>Mn(g,typeof w!="symbol"?w+"":w,k),cr=(g,w,k)=>w.has(g)||fr("Cannot "+k);var A=(g,w,k)=>(cr(g,w,"read from private field"),k?k.call(g):w.get(g)),dt=(g,w,k)=>w.has(g)?fr("Cannot add the same private member more than once"):w instanceof WeakSet?w.add(g):w.set(g,k),_t=(g,w,k,Te)=>(cr(g,w,"write to private field"),Te?Te.call(g,k):w.set(g,k),k);var K,q;const w="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(w);const k=1,Te=2,vr=16,hr=8,dr=1,_r=2,pt="[",je="[!",Ge="]",oe={},pr=Symbol(),gr=["touchstart","touchmove"];function $r(e){return gr.includes(e)}const gt=!1;var $t=Array.isArray,Ke=Array.from,Se=Object.keys,Ce=Object.defineProperty,Ne=Object.getOwnPropertyDescriptor,mr=Object.getOwnPropertyDescriptors,br=Object.getPrototypeOf;function wr(e){for(var t=0;t<e.length;t++)e[t]()}const M=2,mt=4,Ae=8,We=16,P=32,ae=64,Je=128,ue=256,Re=512,R=1024,W=2048,me=4096,H=8192,fe=16384,yr=32768,Xe=65536,xr=1<<19,bt=1<<20,Er=Symbol("$state"),wt=Symbol("legacy props"),kr=Symbol("");function yt(e){return e===this.v}function Tr(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Sr(e){return!Tr(e,this.v)}function Cr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Ar(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function Rr(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Or(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let xt=!1;function Oe(e,t){var r={f:0,v:e,reactions:null,equals:yt,version:0};return r}function qr(e){return Dr(Oe(e))}function Ze(e,t=!1){const r=Oe(e);return t||(r.equals=Sr),r}function Dr(e){return x!==null&&x.f&M&&(Y===null?Gr([e]):Y.push(e)),e}function qe(e,t){return x!==null&&Wr()&&x.f&(M|We)&&(Y===null||!Y.includes(e))&&Or(),Et(e,t)}function Et(e,t){return e.equals(t)||(e.v=t,e.version=Yt(),kt(e,W),p!==null&&p.f&R&&!(p.f&P)&&(T!==null&&T.includes(e)?(G(p,W),Be(p)):Z===null?Kr([e]):Z.push(e))),t}function kt(e,t){var r=e.reactions;if(r!==null)for(var n=r.length,l=0;l<n;l++){var s=r[l],i=s.f;i&W||(G(s,t),i&(R|ue)&&(i&M?kt(s,me):Be(s)))}}function De(e){console.warn("https://svelte.dev/e/hydration_mismatch")}let $=!1;function j(e){$=e}let m;function I(e){if(e===null)throw De(),oe;return m=e}function re(){return I(V(m))}function ne(e){if($){if(V(m)!==null)throw De(),oe;m=e}}function Mr(e=1){if($){for(var t=e,r=m;t--;)r=V(r);m=r}}function Qe(){for(var e=0,t=m;;){if(t.nodeType===8){var r=t.data;if(r===Ge){if(e===0)return t;e-=1}else(r===pt||r===je)&&(e+=1)}var n=V(t);t.remove(),t=n}}var Tt,St,Ct;function et(){if(Tt===void 0){Tt=window;var e=Element.prototype,t=Node.prototype;St=Ne(t,"firstChild").get,Ct=Ne(t,"nextSibling").get,e.__click=void 0,e.__className="",e.__attributes=null,e.__styles=null,e.__e=void 0,Text.prototype.__t=void 0}}function be(e=""){return document.createTextNode(e)}function J(e){return St.call(e)}function V(e){return Ct.call(e)}function ce(e,t){if(!$)return J(e);var r=J(m);return r===null&&(r=m.appendChild(be())),I(r),r}function tt(e,t){if(!$){var r=J(e);return r instanceof Comment&&r.data===""?V(r):r}return m}function rt(e,t=1,r=!1){let n=$?m:e;for(var l;t--;)l=n,n=V(n);if(!$)return n;var s=n==null?void 0:n.nodeType;if(r&&s!==3){var i=be();return n===null?l==null||l.after(i):n.before(i),I(i),i}return I(n),n}function Nt(e){e.textContent=""}function Ir(e){var t=M|W;p===null?t|=ue:p.f|=bt;var r=x!==null&&x.f&M?x:null;const n={children:null,ctx:L,deps:null,equals:yt,f:t,fn:e,reactions:null,v:null,version:0,parent:r??p};return r!==null&&(r.children??(r.children=[])).push(n),n}function At(e){var t=e.children;if(t!==null){e.children=null;for(var r=0;r<t.length;r+=1){var n=t[r];n.f&M?nt(n):B(n)}}}function Lr(e){for(var t=e.parent;t!==null;){if(!(t.f&M))return t;t=t.parent}return null}function Rt(e){var t,r=p;X(Lr(e));try{At(e),t=Ut(e)}finally{X(r)}return t}function Ot(e){var t=Rt(e),r=(se||e.f&ue)&&e.deps!==null?me:R;G(e,r),e.equals(t)||(e.v=t,e.version=Yt())}function nt(e){At(e),Ee(e,0),G(e,fe),e.v=e.children=e.deps=e.ctx=e.reactions=null}function zr(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function ve(e,t,r,n=!0){var l=(e&ae)!==0,s=p,i={ctx:L,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:e|W,first:null,fn:t,last:null,next:null,parent:l?null:s,prev:null,teardown:null,transitions:null,version:0};if(r){var o=de;try{Vt(!0),Ve(i),i.f|=yr}catch(h){throw B(i),h}finally{Vt(o)}}else t!==null&&Be(i);var u=r&&i.deps===null&&i.first===null&&i.nodes_start===null&&i.teardown===null&&(i.f&bt)===0;if(!u&&!l&&n&&(s!==null&&zr(i,s),x!==null&&x.f&M)){var v=x;(v.children??(v.children=[])).push(i)}return i}function Fr(e){const t=ve(ae,e,!0);return()=>{B(t)}}function Pr(e){const t=ve(ae,e,!0);return(r={})=>new Promise(n=>{r.outro?Ie(t,()=>{B(t),n(void 0)}):(B(t),n(void 0))})}function Hr(e){return ve(mt,e,!1)}function Vr(e){return ve(Ae,e,!0)}function qt(e){return Me(e)}function Me(e,t=0){return ve(Ae|We|t,e,!0)}function he(e,t=!0){return ve(Ae|P,e,!0,t)}function Dt(e){var t=e.teardown;if(t!==null){const r=x;pe(null);try{t.call(null)}finally{pe(r)}}}function Mt(e){var t=e.deriveds;if(t!==null){e.deriveds=null;for(var r=0;r<t.length;r+=1)nt(t[r])}}function It(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){var n=r.next;B(r,t),r=n}}function Br(e){for(var t=e.first;t!==null;){var r=t.next;t.f&P||B(t),t=r}}function B(e,t=!0){var r=!1;if((t||e.f&xr)&&e.nodes_start!==null){for(var n=e.nodes_start,l=e.nodes_end;n!==null;){var s=n===l?null:V(n);n.remove(),n=s}r=!0}It(e,t&&!r),Mt(e),Ee(e,0),G(e,fe);var i=e.transitions;if(i!==null)for(const u of i)u.stop();Dt(e);var o=e.parent;o!==null&&o.first!==null&&Lt(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes_start=e.nodes_end=null}function Lt(e){var t=e.parent,r=e.prev,n=e.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),t!==null&&(t.first===e&&(t.first=n),t.last===e&&(t.last=r))}function Ie(e,t){var r=[];lt(e,r,!0),zt(r,()=>{B(e),t&&t()})}function zt(e,t){var r=e.length;if(r>0){var n=()=>--r||t();for(var l of e)l.out(n)}else t()}function lt(e,t,r){if(!(e.f&H)){if(e.f^=H,e.transitions!==null)for(const i of e.transitions)(i.is_global||r)&&t.push(i);for(var n=e.first;n!==null;){var l=n.next,s=(n.f&Xe)!==0||(n.f&P)!==0;lt(n,t,s?r:!1),n=l}}}function Le(e){Ft(e,!0)}function Ft(e,t){if(e.f&H){xe(e)&&Ve(e),e.f^=H;for(var r=e.first;r!==null;){var n=r.next,l=(r.f&Xe)!==0||(r.f&P)!==0;Ft(r,l?t:!1),r=n}if(e.transitions!==null)for(const s of e.transitions)(s.is_global||t)&&s.in()}}let ze=!1,st=[];function Pt(){ze=!1;const e=st.slice();st=[],wr(e)}function Yr(e){ze||(ze=!0,queueMicrotask(Pt)),st.push(e)}function Ur(){ze&&Pt()}const Ht=0,jr=1;let Fe=!1,Pe=Ht,we=!1,ye=null,de=!1;function Vt(e){de=e}let le=[],_e=0,In=[],x=null;function pe(e){x=e}let p=null;function X(e){p=e}let Y=null;function Gr(e){Y=e}let T=null,O=0,Z=null;function Kr(e){Z=e}let Bt=1,se=!1,L=null;function Yt(){return++Bt}function Wr(){return!xt}function xe(e){var i,o;var t=e.f;if(t&W)return!0;if(t&me){var r=e.deps,n=(t&ue)!==0;if(r!==null){var l;if(t&Re){for(l=0;l<r.length;l++)((i=r[l]).reactions??(i.reactions=[])).push(e);e.f^=Re}for(l=0;l<r.length;l++){var s=r[l];if(xe(s)&&Ot(s),n&&p!==null&&!se&&!((o=s==null?void 0:s.reactions)!=null&&o.includes(e))&&(s.reactions??(s.reactions=[])).push(e),s.version>e.version)return!0}}(!n||p!==null&&!se)&&G(e,R)}return!1}function Jr(e,t){for(var r=t;r!==null;){if(r.f&Je)try{r.fn(e);return}catch{r.f^=Je}r=r.parent}throw Fe=!1,e}function Xr(e){return(e.f&fe)===0&&(e.parent===null||(e.parent.f&Je)===0)}function He(e,t,r,n){if(Fe){if(r===null&&(Fe=!1),Xr(t))throw e;return}r!==null&&(Fe=!0);{Jr(e,t);return}}function Ut(e){var c;var t=T,r=O,n=Z,l=x,s=se,i=Y,o=L,u=e.f;T=null,O=0,Z=null,x=u&(P|ae)?null:e,se=!de&&(u&ue)!==0,Y=null,L=e.ctx;try{var v=(0,e.fn)(),h=e.deps;if(T!==null){var a;if(Ee(e,O),h!==null&&O>0)for(h.length=O+T.length,a=0;a<T.length;a++)h[O+a]=T[a];else e.deps=h=T;if(!se)for(a=O;a<h.length;a++)((c=h[a]).reactions??(c.reactions=[])).push(e)}else h!==null&&O<h.length&&(Ee(e,O),h.length=O);return v}finally{T=t,O=r,Z=n,x=l,se=s,Y=i,L=o}}function Zr(e,t){let r=t.reactions;if(r!==null){var n=r.indexOf(e);if(n!==-1){var l=r.length-1;l===0?r=t.reactions=null:(r[n]=r[l],r.pop())}}r===null&&t.f&M&&(T===null||!T.includes(t))&&(G(t,me),t.f&(ue|Re)||(t.f^=Re),Ee(t,0))}function Ee(e,t){var r=e.deps;if(r!==null)for(var n=t;n<r.length;n++)Zr(e,r[n])}function Ve(e){var t=e.f;if(!(t&fe)){G(e,R);var r=p,n=L;p=e;try{t&We?Br(e):It(e),Mt(e),Dt(e);var l=Ut(e);e.teardown=typeof l=="function"?l:null,e.version=Bt}catch(s){He(s,e,r,n||e.ctx)}finally{p=r}}}function jt(){if(_e>1e3){_e=0;try{Cr()}catch(e){if(ye!==null)He(e,ye,null);else throw e}}_e++}function Gt(e){var t=e.length;if(t!==0){jt();var r=de;de=!0;try{for(var n=0;n<t;n++){var l=e[n];l.f&R||(l.f^=R);var s=[];Kt(l,s),Qr(s)}}finally{de=r}}}function Qr(e){var t=e.length;if(t!==0)for(var r=0;r<t;r++){var n=e[r];if(!(n.f&(fe|H)))try{xe(n)&&(Ve(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Lt(n):n.fn=null))}catch(l){He(l,n,null,n.ctx)}}}function en(){if(we=!1,_e>1001)return;const e=le;le=[],Gt(e),we||(_e=0,ye=null)}function Be(e){Pe===Ht&&(we||(we=!0,queueMicrotask(en))),ye=e;for(var t=e;t.parent!==null;){t=t.parent;var r=t.f;if(r&(ae|P)){if(!(r&R))return;t.f^=R}}le.push(t)}function Kt(e,t){var r=e.first,n=[];e:for(;r!==null;){var l=r.f,s=(l&P)!==0,i=s&&(l&R)!==0,o=r.next;if(!i&&!(l&H))if(l&Ae){if(s)r.f^=R;else try{xe(r)&&Ve(r)}catch(a){He(a,r,null,r.ctx)}var u=r.first;if(u!==null){r=u;continue}}else l&mt&&n.push(r);if(o===null){let a=r.parent;for(;a!==null;){if(e===a)break e;var v=a.next;if(v!==null){r=v;continue e}a=a.parent}}r=o}for(var h=0;h<n.length;h++)u=n[h],t.push(u),Kt(u,t)}function U(e){var t=Pe,r=le;try{jt();const l=[];Pe=jr,le=l,we=!1,Gt(r);var n=e==null?void 0:e();return Ur(),(le.length>0||l.length>0)&&U(),_e=0,ye=null,n}finally{Pe=t,le=r}}function z(e){var h;var t=e.f,r=(t&M)!==0;if(r&&t&fe){var n=Rt(e);return nt(e),n}if(x!==null){Y!==null&&Y.includes(e)&&Rr();var l=x.deps;T===null&&l!==null&&l[O]===e?O++:T===null?T=[e]:T.push(e),Z!==null&&p!==null&&p.f&R&&!(p.f&P)&&Z.includes(e)&&(G(p,W),Be(p))}else if(r&&e.deps===null)for(var s=e,i=s.parent,o=s;i!==null;)if(i.f&M){var u=i;o=u,i=u.parent}else{var v=i;(h=v.deriveds)!=null&&h.includes(o)||(v.deriveds??(v.deriveds=[])).push(o);break}return r&&(s=e,xe(s)&&Ot(s)),e.v}function tn(e){const t=x;try{return x=null,e()}finally{x=t}}const rn=~(W|me|R);function G(e,t){e.f=e.f&rn|t}function it(e,t=!1,r){L={p:L,c:null,e:null,m:!1,s:e,x:null,l:null}}function ot(e){const t=L;if(t!==null){e!==void 0&&(t.x=e);const i=t.e;if(i!==null){var r=p,n=x;t.e=null;try{for(var l=0;l<i.length;l++){var s=i[l];X(s.effect),pe(s.reaction),Hr(s.fn)}}finally{X(r),pe(n)}}L=t.p,t.m=!0}return e||{}}const Wt=new Set,at=new Set;function Jt(e){for(var t=0;t<e.length;t++)Wt.add(e[t]);for(var r of at)r(e)}function Ye(e){var _;var t=this,r=t.ownerDocument,n=e.type,l=((_=e.composedPath)==null?void 0:_.call(e))||[],s=l[0]||e.target,i=0,o=e.__root;if(o){var u=l.indexOf(o);if(u!==-1&&(t===document||t===window)){e.__root=t;return}var v=l.indexOf(t);if(v===-1)return;u<=v&&(i=u)}if(s=l[i]||e.target,s!==t){Ce(e,"currentTarget",{configurable:!0,get(){return s||r}});var h=x,a=p;pe(null),X(null);try{for(var c,f=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var y=s["__"+n];if(y!==void 0&&!s.disabled)if($t(y)){var[C,...S]=y;C.apply(s,[e,...S])}else y.call(s,e)}catch(b){c?f.push(b):c=b}if(e.cancelBubble||d===t||d===null)break;s=d}if(c){for(let b of f)queueMicrotask(()=>{throw b});throw c}}finally{e.__root=t,delete e.currentTarget,pe(h),X(a)}}}function Xt(e){var t=document.createElement("template");return t.innerHTML=e,t.content}function Q(e,t){var r=p;r.nodes_start===null&&(r.nodes_start=e,r.nodes_end=t)}function ke(e,t){var r=(t&dr)!==0,n=(t&_r)!==0,l,s=!e.startsWith("<!>");return()=>{if($)return Q(m,null),m;l===void 0&&(l=Xt(s?e:"<!>"+e),r||(l=J(l)));var i=n?document.importNode(l,!0):l.cloneNode(!0);if(r){var o=J(i),u=i.lastChild;Q(o,u)}else Q(i,i);return i}}function nn(){if($)return Q(m,null),m;var e=document.createDocumentFragment(),t=document.createComment(""),r=be();return e.append(t,r),Q(t,r),e}function ie(e,t){if($){p.nodes_end=m,re();return}e!==null&&e.before(t)}function ln(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??(e.__t=e.nodeValue))&&(e.__t=r,e.nodeValue=r==null?"":r+"")}function Zt(e,t){return Qt(e,t)}function sn(e,t){et(),t.intro=t.intro??!1;const r=t.target,n=$,l=m;try{for(var s=J(r);s&&(s.nodeType!==8||s.data!==pt);)s=V(s);if(!s)throw oe;j(!0),I(s),re();const i=Qt(e,{...t,anchor:s});if(m===null||m.nodeType!==8||m.data!==Ge)throw De(),oe;return j(!1),i}catch(i){if(i===oe)return t.recover===!1&&Nr(),et(),Nt(r),j(!1),Zt(e,t);throw i}finally{j(n),I(l)}}const ge=new Map;function Qt(e,{target:t,anchor:r,props:n={},events:l,context:s,intro:i=!0}){et();var o=new Set,u=a=>{for(var c=0;c<a.length;c++){var f=a[c];if(!o.has(f)){o.add(f);var d=$r(f);t.addEventListener(f,Ye,{passive:d});var y=ge.get(f);y===void 0?(document.addEventListener(f,Ye,{passive:d}),ge.set(f,1)):ge.set(f,y+1)}}};u(Ke(Wt)),at.add(u);var v=void 0,h=Pr(()=>{var a=r??t.appendChild(be());return he(()=>{if(s){it({});var c=L;c.c=s}l&&(n.$$events=l),$&&Q(a,null),v=e(a,n)||{},$&&(p.nodes_end=m),s&&ot()}),()=>{var d;for(var c of o){t.removeEventListener(c,Ye);var f=ge.get(c);--f===0?(document.removeEventListener(c,Ye),ge.delete(c)):ge.set(c,f)}at.delete(u),a!==r&&((d=a.parentNode)==null||d.removeChild(a))}});return ut.set(v,h),v}let ut=new WeakMap;function on(e,t){const r=ut.get(e);return r?(ut.delete(e),r(t)):Promise.resolve()}function er(e,t,r=!1){$&&re();var n=e,l=null,s=null,i=pr,o=r?Xe:0,u=!1;const v=(a,c=!0)=>{u=!0,h(c,a)},h=(a,c)=>{if(i===(i=a))return;let f=!1;if($){const d=n.data===je;!!i===d&&(n=Qe(),I(n),j(!1),f=!0)}i?(l?Le(l):c&&(l=he(()=>c(n))),s&&Ie(s,()=>{s=null})):(s?Le(s):c&&(s=he(()=>c(n))),l&&Ie(l,()=>{l=null})),f&&j(!0)};Me(()=>{u=!1,t(v),u||h(null,null)},o),$&&(n=m)}function an(e,t){return t}function un(e,t,r,n){for(var l=[],s=t.length,i=0;i<s;i++)lt(t[i].e,l,!0);var o=s>0&&l.length===0&&r!==null;if(o){var u=r.parentNode;Nt(u),u.append(r),n.clear(),ee(e,t[0].prev,t[s-1].next)}zt(l,()=>{for(var v=0;v<s;v++){var h=t[v];o||(n.delete(h.k),ee(e,h.prev,h.next)),B(h.e,!o)}})}function fn(e,t,r,n,l,s=null){var i=e,o={flags:t,items:new Map,first:null};{var u=e;i=$?I(J(u)):u.appendChild(be())}$&&re();var v=null,h=!1;Me(()=>{var a=r(),c=$t(a)?a:a==null?[]:Ke(a),f=c.length;if(h&&f===0)return;h=f===0;let d=!1;if($){var y=i.data===je;y!==(f===0)&&(i=Qe(),I(i),j(!1),d=!0)}if($){for(var C=null,S,_=0;_<f;_++){if(m.nodeType===8&&m.data===Ge){i=m,d=!0,j(!1);break}var b=c[_],D=n(b,_);S=tr(m,o,C,null,b,D,_,l,t),o.items.set(D,S),C=S}f>0&&I(Qe())}if(!$){var E=x;cn(c,o,i,l,t,(E.f&H)!==0,n)}s!==null&&(f===0?v?Le(v):v=he(()=>s(i)):v!==null&&Ie(v,()=>{v=null})),d&&j(!0)}),$&&(i=m)}function cn(e,t,r,n,l,s,i,o){var u=e.length,v=t.items,h=t.first,a=h,c,f=null,d=[],y=[],C,S,_,b;for(b=0;b<u;b+=1){if(C=e[b],S=i(C,b),_=v.get(S),_===void 0){var D=a?a.e.nodes_start:r;f=tr(D,t,f,f===null?t.first:f.next,C,S,b,n,l),v.set(S,f),d=[],y=[],a=f.next;continue}if(vn(_,C,b),_.e.f&H&&Le(_.e),_!==a){if(c!==void 0&&c.has(_)){if(d.length<y.length){var E=y[0],N;f=E.prev;var $e=d[0],vt=d[d.length-1];for(N=0;N<d.length;N+=1)rr(d[N],E,r);for(N=0;N<y.length;N+=1)c.delete(y[N]);ee(t,$e.prev,vt.next),ee(t,f,$e),ee(t,vt,E),a=E,f=vt,b-=1,d=[],y=[]}else c.delete(_),rr(_,a,r),ee(t,_.prev,_.next),ee(t,_,f===null?t.first:f.next),ee(t,f,_),f=_;continue}for(d=[],y=[];a!==null&&a.k!==S;)(s||!(a.e.f&H))&&(c??(c=new Set)).add(a),y.push(a),a=a.next;if(a===null)continue;_=a}d.push(_),f=_,a=_.next}if(a!==null||c!==void 0){for(var ht=c===void 0?[]:Ke(c);a!==null;)(s||!(a.e.f&H))&&ht.push(a),a=a.next;var On=ht.length;if(On>0){var qn=u===0?r:null;un(t,ht,qn,v)}}p.first=t.first&&t.first.e,p.last=f&&f.e}function vn(e,t,r,n){Et(e.v,t),e.i=r}function tr(e,t,r,n,l,s,i,o,u,v){var h=(u&k)!==0,a=(u&vr)===0,c=h?a?Ze(l):Oe(l):l,f=u&Te?Oe(i):i,d={i:f,v:c,k:s,a:null,e:null,prev:r,next:n};try{return d.e=he(()=>o(e,c,f),$),d.e.prev=r&&r.e,d.e.next=n&&n.e,r===null?t.first=d:(r.next=d,r.e.next=d.e),n!==null&&(n.prev=d,n.e.prev=d.e),d}finally{}}function rr(e,t,r){for(var n=e.next?e.next.e.nodes_start:r,l=t?t.e.nodes_start:r,s=e.e.nodes_start;s!==n;){var i=V(s);l.before(s),s=i}}function ee(e,t,r){t===null?e.first=r:(t.next=r,t.e.next=r&&r.e),r!==null&&(r.prev=t,r.e.prev=t&&t.e)}function nr(e,t,r,n,l){var s=e,i="",o;Me(()=>{if(i===(i=t()??"")){$&&re();return}o!==void 0&&(B(o),o=void 0),i!==""&&(o=he(()=>{if($){m.data;for(var u=re(),v=u;u!==null&&(u.nodeType!==8||u.data!=="");)v=u,u=V(u);if(u===null)throw De(),oe;Q(m,v),s=I(u);return}var h=i+"",a=Xt(h);Q(J(a),a.lastChild),s.before(a)}))})}function hn(e,t,r,n,l){var o;$&&re();var s=(o=t.$$slots)==null?void 0:o[r],i=!1;s===!0&&(s=t.children,i=!0),s===void 0?l!==null&&l(e):s(e,i?()=>n:n)}function lr(e,t){Yr(()=>{var r=e.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+t.hash)){const l=document.createElement("style");l.id=t.hash,l.textContent=t.code,n.appendChild(l)}})}function ft(e,t,r,n){var l=e.__attributes??(e.__attributes={});$&&(l[t]=e.getAttribute(t),t==="src"||t==="srcset"||t==="href"&&e.nodeName==="LINK")||l[t]!==(l[t]=r)&&(t==="style"&&"__styles"in e&&(e.__styles={}),t==="loading"&&(e[kr]=r),r==null?e.removeAttribute(t):typeof r!="string"&&dn(e).includes(t)?e[t]=r:e.setAttribute(t,r))}var sr=new Map;function dn(e){var t=sr.get(e.nodeName);if(t)return t;sr.set(e.nodeName,t=[]);for(var r,n=e,l=Element.prototype;l!==n;){r=mr(n);for(var s in r)r[s].set&&t.push(s);n=br(n)}return t}function _n(e,t){var r=e.__className,n=pn(t);$&&e.className===n?e.__className=n:(r!==n||$&&e.className!==n)&&(t==null?e.removeAttribute("class"):e.className=n,e.__className=n)}function pn(e){return e??""}function gn(e){for(var t=p,r=p;t!==null&&!(t.f&(P|ae));)t=t.parent;try{return X(t),e()}finally{X(r)}}function te(e,t,r,n){var D;var l=!xt,s=(r&hr)!==0,i=!1,o;o=e[t];var u=Er in e||wt in e,v=((D=Ne(e,t))==null?void 0:D.set)??(u&&s&&t in e?E=>e[t]=E:void 0),h=n,a=!0,c=!1,f=()=>(c=!0,a&&(a=!1,h=n),h);o===void 0&&n!==void 0&&(v&&l&&Ar(),o=f(),v&&v(o));var d;if(d=()=>{var E=e[t];return E===void 0?f():(a=!0,c=!1,E)},v){var y=e.$$legacy;return function(E,N){return arguments.length>0?((!N||y||i)&&v(N?d():E),E):d()}}var C=!1,S=!1,_=Ze(o),b=gn(()=>Ir(()=>{var E=d(),N=z(_);return C?(C=!1,S=!0,N):(S=!1,_.v=E)}));return function(E,N){if(arguments.length>0){const $e=N?z(b):E;return b.equals($e)||(C=!0,qe(_,$e),c&&h!==void 0&&(h=$e),tn(()=>z(b))),E}return z(b)}}function $n(e){return new mn(e)}class mn{constructor(t){dt(this,K);dt(this,q);var s;var r=new Map,n=(i,o)=>{var u=Ze(o);return r.set(i,u),u};const l=new Proxy({...t.props||{},$$events:{}},{get(i,o){return z(r.get(o)??n(o,Reflect.get(i,o)))},has(i,o){return o===wt?!0:(z(r.get(o)??n(o,Reflect.get(i,o))),Reflect.has(i,o))},set(i,o,u){return qe(r.get(o)??n(o,u),u),Reflect.set(i,o,u)}});_t(this,q,(t.hydrate?sn:Zt)(t.component,{target:t.target,anchor:t.anchor,props:l,context:t.context,intro:t.intro??!1,recover:t.recover})),(!((s=t==null?void 0:t.props)!=null&&s.$$host)||t.sync===!1)&&U(),_t(this,K,l.$$events);for(const i of Object.keys(A(this,q)))i==="$set"||i==="$destroy"||i==="$on"||Ce(this,i,{get(){return A(this,q)[i]},set(o){A(this,q)[i]=o},enumerable:!0});A(this,q).$set=i=>{Object.assign(l,i)},A(this,q).$destroy=()=>{on(A(this,q))}}$set(t){A(this,q).$set(t)}$on(t,r){A(this,K)[t]=A(this,K)[t]||[];const n=(...l)=>r.call(this,...l);return A(this,K)[t].push(n),()=>{A(this,K)[t]=A(this,K)[t].filter(l=>l!==n)}}$destroy(){A(this,q).$destroy()}}K=new WeakMap,q=new WeakMap;let ir;typeof HTMLElement=="function"&&(ir=class extends HTMLElement{constructor(t,r,n){super();F(this,"$$ctor");F(this,"$$s");F(this,"$$c");F(this,"$$cn",!1);F(this,"$$d",{});F(this,"$$r",!1);F(this,"$$p_d",{});F(this,"$$l",{});F(this,"$$l_u",new Map);F(this,"$$me");this.$$ctor=t,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(t,r,n){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(r),this.$$c){const l=this.$$c.$on(t,r);this.$$l_u.set(r,l)}super.addEventListener(t,r,n)}removeEventListener(t,r,n){if(super.removeEventListener(t,r,n),this.$$c){const l=this.$$l_u.get(r);l&&(l(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(l){return s=>{const i=document.createElement("slot");l!=="default"&&(i.name=l),ie(s,i)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=bn(this);for(const l of this.$$s)l in n&&(l==="default"&&!this.$$d.children?(this.$$d.children=t(l),r.default=!0):r[l]=t(l));for(const l of this.attributes){const s=this.$$g_p(l.name);s in this.$$d||(this.$$d[s]=Ue(s,l.value,this.$$p_d,"toProp"))}for(const l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=$n({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Fr(()=>{Vr(()=>{var l;this.$$r=!0;for(const s of Se(this.$$c)){if(!((l=this.$$p_d[s])!=null&&l.reflect))continue;this.$$d[s]=this.$$c[s];const i=Ue(s,this.$$d[s],this.$$p_d,"toAttribute");i==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,i)}this.$$r=!1})});for(const l in this.$$l)for(const s of this.$$l[l]){const i=this.$$c.$on(l,s);this.$$l_u.set(s,i)}this.$$l={}}}attributeChangedCallback(t,r,n){var l;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Ue(t,n,this.$$p_d,"toProp"),(l=this.$$c)==null||l.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(t){return Se(this.$$p_d).find(r=>this.$$p_d[r].attribute===t||!this.$$p_d[r].attribute&&r.toLowerCase()===t)||t}});function Ue(e,t,r,n){var s;const l=(s=r[e])==null?void 0:s.type;if(t=l==="Boolean"&&typeof t!="boolean"?t!=null:t,!n||!r[e])return t;if(n==="toAttribute")switch(l){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t??null;default:return t}else switch(l){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function bn(e){const t={};return e.childNodes.forEach(r=>{t[r.slot||"default"]=!0}),t}function or(e,t,r,n,l,s){let i=class extends ir{constructor(){super(e,r,l),this.$$p_d=t}static get observedAttributes(){return Se(t).map(o=>(t[o].attribute||o).toLowerCase())}};return Se(t).forEach(o=>{Ce(i.prototype,o,{get(){return this.$$c&&o in this.$$c?this.$$c[o]:this.$$d[o]},set(u){var a;u=Ue(o,u,t),this.$$d[o]=u;var v=this.$$c;if(v){var h=(a=Ne(v,o))==null?void 0:a.get;h?v[o]=u:v.$set({[o]:u})}}})}),n.forEach(o=>{Ce(i.prototype,o,{get(){var u;return(u=this.$$c)==null?void 0:u[o]}})}),e.element=i,i}const wn=[{name:"nostter",url:"https://nostter.app/post?content={text}&url={url}&title={title}",icon:"https://nostter.app/favicon.ico"},{name:"lumilumi",url:"https://lumilumi.vercel.app/post?url={url}&text={text}&title={title}",icon:"https://lumilumi.vercel.app/favicon.ico"}];var yn=e=>e.stopPropagation(),xn=(e,t,r)=>t(z(r).url),En=ke('<button class="item svelte-qvlz7l"><img> </button>'),kn=ke('<div class="overlay svelte-qvlz7l"><div class="inner svelte-qvlz7l"><button class="close-button svelte-qvlz7l" aria-label="Close">✖</button> <h2 class="title svelte-qvlz7l">Share</h2> <div class="list svelte-qvlz7l"></div></div></div>');const Tn={hash:"svelte-qvlz7l",code:`
2
- /* オーバーレイ背景 */.overlay.svelte-qvlz7l {position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.3); /* 少し濃い背景 */display:flex;justify-content:center;align-items:center;}
3
-
4
- /* ダイアログ本体 */.inner.svelte-qvlz7l {display:flex;flex-direction:column;position:relative;background-color:#ffffff;padding:1.5rem;border-radius:12px; /* 柔らかい角丸 */box-shadow:0 8px 16px rgba(0, 0, 0, 0.2);width:90%;max-width:400px;gap:1rem; /* スペーシング */}
5
-
6
- /* タイトル */.title.svelte-qvlz7l {margin:0;font-size:1.25rem;font-weight:bold;text-align:center;color:#374151; /* グレー700 */}
7
-
8
- /* リスト */.list.svelte-qvlz7l {display:flex;flex-direction:column;gap:0.75rem; /* ゆったりした間隔 */}
9
-
10
- /* リストアイテム */.item.svelte-qvlz7l {display:flex;align-items:center;gap:0.5rem;padding:0.75rem 1rem;background-color:#f9fafb; /* グレー100 */border:1px solid #d1d5db; /* グレー300 */border-radius:8px;font-size:1rem;font-weight:medium;cursor:pointer;transition:background-color 0.2s ease,
11
- box-shadow 0.2s ease;}.item.svelte-qvlz7l:hover {background-color:#e5e7eb; /* グレー200 */box-shadow:0 2px 6px rgba(0, 0, 0, 0.1);}.item.svelte-qvlz7l:active {background-color:#d1d5db; /* グレー300 */}
12
-
13
- /* バツボタン */.close-button.svelte-qvlz7l {position:absolute;right:12px;top:12px;width:36px;height:36px;display:flex;justify-content:center;align-items:center;background-color:#f3f4f6; /* グレー200 */border:none;border-radius:50%;font-size:1.25rem;color:#374151; /* グレー700 */cursor:pointer;transition:background-color 0.2s ease,
14
- transform 0.1s ease;}.close-button.svelte-qvlz7l:hover {background-color:#e5e7eb; /* グレー300 */}.close-button.svelte-qvlz7l:active {background-color:#d1d5db; /* グレー400 */transform:scale(0.95); /* 押した感覚を演出 */}`};function ct(e,t){it(t,!0),lr(e,Tn);let r=te(t,"url",7,""),n=te(t,"text",7,""),l=te(t,"shareTitle",7,""),s=te(t,"handleClose",7);const i=a=>{const c=a.replace("{url}",encodeURIComponent(r())).replace("{title}",encodeURIComponent(l())).replace("{text}",encodeURIComponent(n()));console.log(c),window.open(c,"_blank","noreferrer"),s()()};var o=kn();o.__click=function(...a){var c;(c=s())==null||c.apply(this,a)};var u=ce(o);u.__click=[yn];var v=ce(u);v.__click=function(...a){var c;(c=s())==null||c.apply(this,a)};var h=rt(v,4);return fn(h,21,()=>wn,an,(a,c)=>{var f=En();f.__click=[xn,i,c];var d=ce(f);ft(d,"width",24);var y=rt(d);ne(f),qt(()=>{ft(d,"src",z(c).icon),ft(d,"alt",z(c).name),ln(y,` ${z(c).name??""}`)}),ie(a,f)}),ne(h),ne(u),ne(o),ie(e,o),ot({get url(){return r()},set url(a=""){r(a),U()},get text(){return n()},set text(a=""){n(a),U()},get shareTitle(){return l()},set shareTitle(a=""){l(a),U()},get handleClose(){return s()},set handleClose(a){s(a),U()}})}Jt(["click"]),customElements.define("nostr-share-dialog",or(ct,{url:{},text:{},shareTitle:{},handleClose:{}},[],[],!0));const ar=`<svg
15
- version="1.1"
16
- id="_8"
17
- xmlns="http://www.w3.org/2000/svg"
18
- xmlns:xlink="http://www.w3.org/1999/xlink"
19
- x="0px"
20
- y="0px"
21
- viewBox="0 0 256 256"
22
- style="enable-background:new 0 0 256 256;"
23
- xml:space="preserve"
24
- >
25
- <style type="text/css">
26
- .st0 {
27
- fill: none;
28
- }
29
- .st1 {
30
- fill: #ffffff;
31
- }
32
- .st2 {
33
- fill: #662482;
1
+ (function(b,$){typeof exports=="object"&&typeof module<"u"?$(exports):typeof define=="function"&&define.amd?define(["exports"],$):(b=typeof globalThis<"u"?globalThis:b||self,$(b.NostrShare={}))})(this,function(b){"use strict";var An=Object.defineProperty;var ur=b=>{throw TypeError(b)};var zn=(b,$,E)=>$ in b?An(b,$,{enumerable:!0,configurable:!0,writable:!0,value:E}):b[$]=E;var L=(b,$,E)=>zn(b,typeof $!="symbol"?$+"":$,E),ar=(b,$,E)=>$.has(b)||ur("Cannot "+E);var A=(b,$,E)=>(ar(b,$,"read from private field"),E?E.call(b):$.get(b)),he=(b,$,E)=>$.has(b)?ur("Cannot add the same private member more than once"):$ instanceof WeakSet?$.add(b):$.set(b,E),de=(b,$,E,wt)=>(ar(b,$,"write to private field"),wt?wt.call(b,E):$.set(b,E),E);var K,R;const $="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add($);const E=1,wt=2,cr=16,fr=8,vr=1,hr=2,_e="[",Yt="[!",Gt="]",ht={},dr=Symbol(),_r=["touchstart","touchmove"];function pr(t){return _r.includes(t)}const pe=!1;var ge=Array.isArray,Kt=Array.from,kt=Object.keys,Et=Object.defineProperty,Tt=Object.getOwnPropertyDescriptor,gr=Object.getOwnPropertyDescriptors,br=Object.getPrototypeOf;function $r(t){for(var e=0;e<t.length;e++)t[e]()}const D=2,be=4,St=8,Wt=16,F=32,nt=64,Jt=128,lt=256,Ct=512,z=1024,W=2048,dt=4096,P=8192,st=16384,mr=32768,Xt=65536,xr=1<<19,$e=1<<20,yr=Symbol("$state"),me=Symbol("legacy props"),wr=Symbol("");function xe(t){return t===this.v}function kr(t,e){return t!=t?e==e:t!==e||t!==null&&typeof t=="object"||typeof t=="function"}function Er(t){return!kr(t,this.v)}function Tr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Sr(){throw new Error("https://svelte.dev/e/hydration_failed")}function Cr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Nr(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Ar(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let ye=!1;function Nt(t,e){var r={f:0,v:t,reactions:null,equals:xe,version:0};return r}function zr(t){return qr(Nt(t))}function Zt(t,e=!1){const r=Nt(t);return e||(r.equals=Er),r}function qr(t){return w!==null&&w.f&D&&(V===null?Ur([t]):V.push(t)),t}function At(t,e){return w!==null&&Yr()&&w.f&(D|Wt)&&(V===null||!V.includes(t))&&Ar(),we(t,e)}function we(t,e){return t.equals(e)||(t.v=e,t.version=Ue(),ke(t,W),g!==null&&g.f&z&&!(g.f&F)&&(T!==null&&T.includes(t)?(G(g,W),Ht(g)):Z===null?jr([t]):Z.push(t))),e}function ke(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,l=0;l<n;l++){var s=r[l],o=s.f;o&W||(G(s,e),o&(z|lt)&&(o&D?ke(s,dt):Ht(s)))}}function Qt(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let m=!1;function j(t){m=t}let y;function H(t){if(t===null)throw Qt(),ht;return y=t}function _t(){return H(J(y))}function pt(t){if(m){if(J(y)!==null)throw Qt(),ht;y=t}}function te(){for(var t=0,e=y;;){if(e.nodeType===8){var r=e.data;if(r===Gt){if(t===0)return e;t-=1}else(r===_e||r===Yt)&&(t+=1)}var n=J(e);e.remove(),e=n}}var Ee,Te,Se;function ee(){if(Ee===void 0){Ee=window;var t=Element.prototype,e=Node.prototype;Te=Tt(e,"firstChild").get,Se=Tt(e,"nextSibling").get,t.__click=void 0,t.__className="",t.__attributes=null,t.__styles=null,t.__e=void 0,Text.prototype.__t=void 0}}function zt(t=""){return document.createTextNode(t)}function tt(t){return Te.call(t)}function J(t){return Se.call(t)}function qt(t,e){if(!m)return tt(t);var r=tt(y);return r===null&&(r=y.appendChild(zt())),H(r),r}function Ce(t,e){if(!m){var r=tt(t);return r instanceof Comment&&r.data===""?J(r):r}return y}function Ot(t,e=1,r=!1){let n=m?y:t;for(var l;e--;)l=n,n=J(n);if(!m)return n;var s=n==null?void 0:n.nodeType;if(r&&s!==3){var o=zt();return n===null?l==null||l.after(o):n.before(o),H(o),o}return H(n),n}function Ne(t){t.textContent=""}function Or(t){var e=D|W;g===null?e|=lt:g.f|=$e;var r=w!==null&&w.f&D?w:null;const n={children:null,ctx:I,deps:null,equals:xe,f:e,fn:t,reactions:null,v:null,version:0,parent:r??g};return r!==null&&(r.children??(r.children=[])).push(n),n}function Ae(t){var e=t.children;if(e!==null){t.children=null;for(var r=0;r<e.length;r+=1){var n=e[r];n.f&D?re(n):Y(n)}}}function Rr(t){for(var e=t.parent;e!==null;){if(!(e.f&D))return e;e=e.parent}return null}function ze(t){var e,r=g;X(Rr(t));try{Ae(t),e=je(t)}finally{X(r)}return e}function qe(t){var e=ze(t),r=(rt||t.f&lt)&&t.deps!==null?dt:z;G(t,r),t.equals(e)||(t.v=e,t.version=Ue())}function re(t){Ae(t),xt(t,0),G(t,st),t.v=t.children=t.deps=t.ctx=t.reactions=null}function Dr(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function ot(t,e,r,n=!0){var l=(t&nt)!==0,s=g,o={ctx:I,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|W,first:null,fn:e,last:null,next:null,parent:l?null:s,prev:null,teardown:null,transitions:null,version:0};if(r){var u=it;try{Ve(!0),Pt(o),o.f|=mr}catch(h){throw Y(o),h}finally{Ve(u)}}else e!==null&&Ht(o);var a=r&&o.deps===null&&o.first===null&&o.nodes_start===null&&o.teardown===null&&(o.f&$e)===0;if(!a&&!l&&n&&(s!==null&&Dr(o,s),w!==null&&w.f&D)){var f=w;(f.children??(f.children=[])).push(o)}return o}function Ir(t){const e=ot(nt,t,!0);return()=>{Y(e)}}function Mr(t){const e=ot(nt,t,!0);return(r={})=>new Promise(n=>{r.outro?Rt(e,()=>{Y(e),n(void 0)}):(Y(e),n(void 0))})}function Lr(t){return ot(be,t,!1)}function Fr(t){return ot(St,t,!0)}function Oe(t){return ne(t)}function ne(t,e=0){return ot(St|Wt|e,t,!0)}function gt(t,e=!0){return ot(St|F,t,!0,e)}function Re(t){var e=t.teardown;if(e!==null){const r=w;at(null);try{e.call(null)}finally{at(r)}}}function De(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)re(e[r])}}function Ie(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;Y(r,e),r=n}}function Pr(t){for(var e=t.first;e!==null;){var r=e.next;e.f&F||Y(e),e=r}}function Y(t,e=!0){var r=!1;if((e||t.f&xr)&&t.nodes_start!==null){for(var n=t.nodes_start,l=t.nodes_end;n!==null;){var s=n===l?null:J(n);n.remove(),n=s}r=!0}Ie(t,e&&!r),De(t),xt(t,0),G(t,st);var o=t.transitions;if(o!==null)for(const a of o)a.stop();Re(t);var u=t.parent;u!==null&&u.first!==null&&Me(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Me(t){var e=t.parent,r=t.prev,n=t.next;r!==null&&(r.next=n),n!==null&&(n.prev=r),e!==null&&(e.first===t&&(e.first=n),e.last===t&&(e.last=r))}function Rt(t,e){var r=[];le(t,r,!0),Le(r,()=>{Y(t),e&&e()})}function Le(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var l of t)l.out(n)}else e()}function le(t,e,r){if(!(t.f&P)){if(t.f^=P,t.transitions!==null)for(const o of t.transitions)(o.is_global||r)&&e.push(o);for(var n=t.first;n!==null;){var l=n.next,s=(n.f&Xt)!==0||(n.f&F)!==0;le(n,e,s?r:!1),n=l}}}function Dt(t){Fe(t,!0)}function Fe(t,e){if(t.f&P){mt(t)&&Pt(t),t.f^=P;for(var r=t.first;r!==null;){var n=r.next,l=(r.f&Xt)!==0||(r.f&F)!==0;Fe(r,l?e:!1),r=n}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||e)&&s.in()}}let It=!1,se=[];function Pe(){It=!1;const t=se.slice();se=[],$r(t)}function Hr(t){It||(It=!0,queueMicrotask(Pe)),se.push(t)}function Vr(){It&&Pe()}const He=0,Br=1;let Mt=!1,Lt=He,bt=!1,$t=null,it=!1;function Ve(t){it=t}let et=[],ut=0,qn=[],w=null;function at(t){w=t}let g=null;function X(t){g=t}let V=null;function Ur(t){V=t}let T=null,q=0,Z=null;function jr(t){Z=t}let Be=1,rt=!1,I=null;function Ue(){return++Be}function Yr(){return!ye}function mt(t){var o,u;var e=t.f;if(e&W)return!0;if(e&dt){var r=t.deps,n=(e&lt)!==0;if(r!==null){var l;if(e&Ct){for(l=0;l<r.length;l++)((o=r[l]).reactions??(o.reactions=[])).push(t);t.f^=Ct}for(l=0;l<r.length;l++){var s=r[l];if(mt(s)&&qe(s),n&&g!==null&&!rt&&!((u=s==null?void 0:s.reactions)!=null&&u.includes(t))&&(s.reactions??(s.reactions=[])).push(t),s.version>t.version)return!0}}(!n||g!==null&&!rt)&&G(t,z)}return!1}function Gr(t,e){for(var r=e;r!==null;){if(r.f&Jt)try{r.fn(t);return}catch{r.f^=Jt}r=r.parent}throw Mt=!1,t}function Kr(t){return(t.f&st)===0&&(t.parent===null||(t.parent.f&Jt)===0)}function Ft(t,e,r,n){if(Mt){if(r===null&&(Mt=!1),Kr(e))throw t;return}r!==null&&(Mt=!0);{Gr(t,e);return}}function je(t){var c;var e=T,r=q,n=Z,l=w,s=rt,o=V,u=I,a=t.f;T=null,q=0,Z=null,w=a&(F|nt)?null:t,rt=!it&&(a&lt)!==0,V=null,I=t.ctx;try{var f=(0,t.fn)(),h=t.deps;if(T!==null){var i;if(xt(t,q),h!==null&&q>0)for(h.length=q+T.length,i=0;i<T.length;i++)h[q+i]=T[i];else t.deps=h=T;if(!rt)for(i=q;i<h.length;i++)((c=h[i]).reactions??(c.reactions=[])).push(t)}else h!==null&&q<h.length&&(xt(t,q),h.length=q);return f}finally{T=e,q=r,Z=n,w=l,rt=s,V=o,I=u}}function Wr(t,e){let r=e.reactions;if(r!==null){var n=r.indexOf(t);if(n!==-1){var l=r.length-1;l===0?r=e.reactions=null:(r[n]=r[l],r.pop())}}r===null&&e.f&D&&(T===null||!T.includes(e))&&(G(e,dt),e.f&(lt|Ct)||(e.f^=Ct),xt(e,0))}function xt(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Wr(t,r[n])}function Pt(t){var e=t.f;if(!(e&st)){G(t,z);var r=g,n=I;g=t;try{e&Wt?Pr(t):Ie(t),De(t),Re(t);var l=je(t);t.teardown=typeof l=="function"?l:null,t.version=Be}catch(s){Ft(s,t,r,n||t.ctx)}finally{g=r}}}function Ye(){if(ut>1e3){ut=0;try{Tr()}catch(t){if($t!==null)Ft(t,$t,null);else throw t}}ut++}function Ge(t){var e=t.length;if(e!==0){Ye();var r=it;it=!0;try{for(var n=0;n<e;n++){var l=t[n];l.f&z||(l.f^=z);var s=[];Ke(l,s),Jr(s)}}finally{it=r}}}function Jr(t){var e=t.length;if(e!==0)for(var r=0;r<e;r++){var n=t[r];if(!(n.f&(st|P)))try{mt(n)&&(Pt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Me(n):n.fn=null))}catch(l){Ft(l,n,null,n.ctx)}}}function Xr(){if(bt=!1,ut>1001)return;const t=et;et=[],Ge(t),bt||(ut=0,$t=null)}function Ht(t){Lt===He&&(bt||(bt=!0,queueMicrotask(Xr))),$t=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(nt|F)){if(!(r&z))return;e.f^=z}}et.push(e)}function Ke(t,e){var r=t.first,n=[];t:for(;r!==null;){var l=r.f,s=(l&F)!==0,o=s&&(l&z)!==0,u=r.next;if(!o&&!(l&P))if(l&St){if(s)r.f^=z;else try{mt(r)&&Pt(r)}catch(i){Ft(i,r,null,r.ctx)}var a=r.first;if(a!==null){r=a;continue}}else l&be&&n.push(r);if(u===null){let i=r.parent;for(;i!==null;){if(t===i)break t;var f=i.next;if(f!==null){r=f;continue t}i=i.parent}}r=u}for(var h=0;h<n.length;h++)a=n[h],e.push(a),Ke(a,e)}function O(t){var e=Lt,r=et;try{Ye();const l=[];Lt=Br,et=l,bt=!1,Ge(r);var n=t==null?void 0:t();return Vr(),(et.length>0||l.length>0)&&O(),ut=0,$t=null,n}finally{Lt=e,et=r}}function M(t){var h;var e=t.f,r=(e&D)!==0;if(r&&e&st){var n=ze(t);return re(t),n}if(w!==null){V!==null&&V.includes(t)&&Nr();var l=w.deps;T===null&&l!==null&&l[q]===t?q++:T===null?T=[t]:T.push(t),Z!==null&&g!==null&&g.f&z&&!(g.f&F)&&Z.includes(t)&&(G(g,W),Ht(g))}else if(r&&t.deps===null)for(var s=t,o=s.parent,u=s;o!==null;)if(o.f&D){var a=o;u=a,o=a.parent}else{var f=o;(h=f.deriveds)!=null&&h.includes(u)||(f.deriveds??(f.deriveds=[])).push(u);break}return r&&(s=t,mt(s)&&qe(s)),t.v}function Zr(t){const e=w;try{return w=null,t()}finally{w=e}}const Qr=~(W|dt|z);function G(t,e){t.f=t.f&Qr|e}function oe(t,e=!1,r){I={p:I,c:null,e:null,m:!1,s:t,x:null,l:null}}function ie(t){const e=I;if(e!==null){t!==void 0&&(e.x=t);const o=e.e;if(o!==null){var r=g,n=w;e.e=null;try{for(var l=0;l<o.length;l++){var s=o[l];X(s.effect),at(s.reaction),Lr(s.fn)}}finally{X(r),at(n)}}I=e.p,e.m=!0}return t||{}}const We=new Set,ue=new Set;function Je(t){for(var e=0;e<t.length;e++)We.add(t[e]);for(var r of ue)r(t)}function Vt(t){var p;var e=this,r=e.ownerDocument,n=t.type,l=((p=t.composedPath)==null?void 0:p.call(t))||[],s=l[0]||t.target,o=0,u=t.__root;if(u){var a=l.indexOf(u);if(a!==-1&&(e===document||e===window)){t.__root=e;return}var f=l.indexOf(e);if(f===-1)return;a<=f&&(o=a)}if(s=l[o]||t.target,s!==e){Et(t,"currentTarget",{configurable:!0,get(){return s||r}});var h=w,i=g;at(null),X(null);try{for(var c,v=[];s!==null;){var d=s.assignedSlot||s.parentNode||s.host||null;try{var _=s["__"+n];if(_!==void 0&&!s.disabled)if(ge(_)){var[S,...C]=_;S.apply(s,[t,...C])}else _.call(s,t)}catch(x){c?v.push(x):c=x}if(t.cancelBubble||d===e||d===null)break;s=d}if(c){for(let x of v)queueMicrotask(()=>{throw x});throw c}}finally{t.__root=e,delete t.currentTarget,at(h),X(i)}}}function tn(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Bt(t,e){var r=g;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function yt(t,e){var r=(e&vr)!==0,n=(e&hr)!==0,l,s=!t.startsWith("<!>");return()=>{if(m)return Bt(y,null),y;l===void 0&&(l=tn(s?t:"<!>"+t),r||(l=tt(l)));var o=n?document.importNode(l,!0):l.cloneNode(!0);if(r){var u=tt(o),a=o.lastChild;Bt(u,a)}else Bt(o,o);return o}}function ct(t,e){if(m){g.nodes_end=y,_t();return}t!==null&&t.before(e)}function en(t,e){var r=e==null?"":typeof e=="object"?e+"":e;r!==(t.__t??(t.__t=t.nodeValue))&&(t.__t=r,t.nodeValue=r==null?"":r+"")}function Xe(t,e){return Ze(t,e)}function rn(t,e){ee(),e.intro=e.intro??!1;const r=e.target,n=m,l=y;try{for(var s=tt(r);s&&(s.nodeType!==8||s.data!==_e);)s=J(s);if(!s)throw ht;j(!0),H(s),_t();const o=Ze(t,{...e,anchor:s});if(y===null||y.nodeType!==8||y.data!==Gt)throw Qt(),ht;return j(!1),o}catch(o){if(o===ht)return e.recover===!1&&Sr(),ee(),Ne(r),j(!1),Xe(t,e);throw o}finally{j(n),H(l)}}const ft=new Map;function Ze(t,{target:e,anchor:r,props:n={},events:l,context:s,intro:o=!0}){ee();var u=new Set,a=i=>{for(var c=0;c<i.length;c++){var v=i[c];if(!u.has(v)){u.add(v);var d=pr(v);e.addEventListener(v,Vt,{passive:d});var _=ft.get(v);_===void 0?(document.addEventListener(v,Vt,{passive:d}),ft.set(v,1)):ft.set(v,_+1)}}};a(Kt(We)),ue.add(a);var f=void 0,h=Mr(()=>{var i=r??e.appendChild(zt());return gt(()=>{if(s){oe({});var c=I;c.c=s}l&&(n.$$events=l),m&&Bt(i,null),f=t(i,n)||{},m&&(g.nodes_end=y),s&&ie()}),()=>{var d;for(var c of u){e.removeEventListener(c,Vt);var v=ft.get(c);--v===0?(document.removeEventListener(c,Vt),ft.delete(c)):ft.set(c,v)}ue.delete(a),i!==r&&((d=i.parentNode)==null||d.removeChild(i))}});return ae.set(f,h),f}let ae=new WeakMap;function nn(t,e){const r=ae.get(t);return r?(ae.delete(t),r(e)):Promise.resolve()}function Qe(t,e,r=!1){m&&_t();var n=t,l=null,s=null,o=dr,u=r?Xt:0,a=!1;const f=(i,c=!0)=>{a=!0,h(c,i)},h=(i,c)=>{if(o===(o=i))return;let v=!1;if(m){const d=n.data===Yt;!!o===d&&(n=te(),H(n),j(!1),v=!0)}o?(l?Dt(l):c&&(l=gt(()=>c(n))),s&&Rt(s,()=>{s=null})):(s?Dt(s):c&&(s=gt(()=>c(n))),l&&Rt(l,()=>{l=null})),v&&j(!0)};ne(()=>{a=!1,e(f),a||h(null,null)},u),m&&(n=y)}function ln(t,e){return e}function sn(t,e,r,n){for(var l=[],s=e.length,o=0;o<s;o++)le(e[o].e,l,!0);var u=s>0&&l.length===0&&r!==null;if(u){var a=r.parentNode;Ne(a),a.append(r),n.clear(),Q(t,e[0].prev,e[s-1].next)}Le(l,()=>{for(var f=0;f<s;f++){var h=e[f];u||(n.delete(h.k),Q(t,h.prev,h.next)),Y(h.e,!u)}})}function on(t,e,r,n,l,s=null){var o=t,u={flags:e,items:new Map,first:null};{var a=t;o=m?H(tt(a)):a.appendChild(zt())}m&&_t();var f=null,h=!1;ne(()=>{var i=r(),c=ge(i)?i:i==null?[]:Kt(i),v=c.length;if(h&&v===0)return;h=v===0;let d=!1;if(m){var _=o.data===Yt;_!==(v===0)&&(o=te(),H(o),j(!1),d=!0)}if(m){for(var S=null,C,p=0;p<v;p++){if(y.nodeType===8&&y.data===Gt){o=y,d=!0,j(!1);break}var x=c[p],U=n(x,p);C=tr(y,u,S,null,x,U,p,l,e),u.items.set(U,C),S=C}v>0&&H(te())}if(!m){var k=w;un(c,u,o,l,e,(k.f&P)!==0,n)}s!==null&&(v===0?f?Dt(f):f=gt(()=>s(o)):f!==null&&Rt(f,()=>{f=null})),d&&j(!0)}),m&&(o=y)}function un(t,e,r,n,l,s,o,u){var a=t.length,f=e.items,h=e.first,i=h,c,v=null,d=[],_=[],S,C,p,x;for(x=0;x<a;x+=1){if(S=t[x],C=o(S,x),p=f.get(C),p===void 0){var U=i?i.e.nodes_start:r;v=tr(U,e,v,v===null?e.first:v.next,S,C,x,n,l),f.set(C,v),d=[],_=[],i=v.next;continue}if(an(p,S,x),p.e.f&P&&Dt(p.e),p!==i){if(c!==void 0&&c.has(p)){if(d.length<_.length){var k=_[0],N;v=k.prev;var vt=d[0],fe=d[d.length-1];for(N=0;N<d.length;N+=1)er(d[N],k,r);for(N=0;N<_.length;N+=1)c.delete(_[N]);Q(e,vt.prev,fe.next),Q(e,v,vt),Q(e,fe,k),i=k,v=fe,x-=1,d=[],_=[]}else c.delete(p),er(p,i,r),Q(e,p.prev,p.next),Q(e,p,v===null?e.first:v.next),Q(e,v,p),v=p;continue}for(d=[],_=[];i!==null&&i.k!==C;)(s||!(i.e.f&P))&&(c??(c=new Set)).add(i),_.push(i),i=i.next;if(i===null)continue;p=i}d.push(p),v=p,i=p.next}if(i!==null||c!==void 0){for(var ve=c===void 0?[]:Kt(c);i!==null;)(s||!(i.e.f&P))&&ve.push(i),i=i.next;var Cn=ve.length;if(Cn>0){var Nn=a===0?r:null;sn(e,ve,Nn,f)}}g.first=e.first&&e.first.e,g.last=v&&v.e}function an(t,e,r,n){we(t.v,e),t.i=r}function tr(t,e,r,n,l,s,o,u,a,f){var h=(a&E)!==0,i=(a&cr)===0,c=h?i?Zt(l):Nt(l):l,v=a&wt?Nt(o):o,d={i:v,v:c,k:s,a:null,e:null,prev:r,next:n};try{return d.e=gt(()=>u(t,c,v),m),d.e.prev=r&&r.e,d.e.next=n&&n.e,r===null?e.first=d:(r.next=d,r.e.next=d.e),n!==null&&(n.prev=d,n.e.prev=d.e),d}finally{}}function er(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,l=e?e.e.nodes_start:r,s=t.e.nodes_start;s!==n;){var o=J(s);l.before(s),s=o}}function Q(t,e,r){e===null?t.first=r:(e.next=r,e.e.next=r&&r.e),r!==null&&(r.prev=e,r.e.prev=e&&e.e)}function cn(t,e,r,n,l){var u;m&&_t();var s=(u=e.$$slots)==null?void 0:u[r],o=!1;s===!0&&(s=e.children,o=!0),s===void 0?l!==null&&l(t):s(t,o?()=>n:n)}function rr(t,e){Hr(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const l=document.createElement("style");l.id=e.hash,l.textContent=e.code,n.appendChild(l)}})}function Ut(t,e,r,n){var l=t.__attributes??(t.__attributes={});m&&(l[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||l[e]!==(l[e]=r)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[wr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&fn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var nr=new Map;function fn(t){var e=nr.get(t.nodeName);if(e)return e;nr.set(t.nodeName,e=[]);for(var r,n=t,l=Element.prototype;l!==n;){r=gr(n);for(var s in r)r[s].set&&e.push(s);n=br(n)}return e}function lr(t,e){var r=t.__className,n=vn(e);m&&t.className===n?t.__className=n:(r!==n||m&&t.className!==n)&&(e==null?t.removeAttribute("class"):t.className=n,t.__className=n)}function vn(t){return t??""}function hn(t){for(var e=g,r=g;e!==null&&!(e.f&(F|nt));)e=e.parent;try{return X(e),t()}finally{X(r)}}function B(t,e,r,n){var U;var l=!ye,s=(r&fr)!==0,o=!1,u;u=t[e];var a=yr in t||me in t,f=((U=Tt(t,e))==null?void 0:U.set)??(a&&s&&e in t?k=>t[e]=k:void 0),h=n,i=!0,c=!1,v=()=>(c=!0,i&&(i=!1,h=n),h);u===void 0&&n!==void 0&&(f&&l&&Cr(),u=v(),f&&f(u));var d;if(d=()=>{var k=t[e];return k===void 0?v():(i=!0,c=!1,k)},f){var _=t.$$legacy;return function(k,N){return arguments.length>0?((!N||_||o)&&f(N?d():k),k):d()}}var S=!1,C=!1,p=Zt(u),x=hn(()=>Or(()=>{var k=d(),N=M(p);return S?(S=!1,C=!0,N):(C=!1,p.v=k)}));return function(k,N){if(arguments.length>0){const vt=N?M(x):k;return x.equals(vt)||(S=!0,At(p,vt),c&&h!==void 0&&(h=vt),Zr(()=>M(x))),k}return M(x)}}function dn(t){return new _n(t)}class _n{constructor(e){he(this,K);he(this,R);var s;var r=new Map,n=(o,u)=>{var a=Zt(u);return r.set(o,a),a};const l=new Proxy({...e.props||{},$$events:{}},{get(o,u){return M(r.get(u)??n(u,Reflect.get(o,u)))},has(o,u){return u===me?!0:(M(r.get(u)??n(u,Reflect.get(o,u))),Reflect.has(o,u))},set(o,u,a){return At(r.get(u)??n(u,a),a),Reflect.set(o,u,a)}});de(this,R,(e.hydrate?rn:Xe)(e.component,{target:e.target,anchor:e.anchor,props:l,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&O(),de(this,K,l.$$events);for(const o of Object.keys(A(this,R)))o==="$set"||o==="$destroy"||o==="$on"||Et(this,o,{get(){return A(this,R)[o]},set(u){A(this,R)[o]=u},enumerable:!0});A(this,R).$set=o=>{Object.assign(l,o)},A(this,R).$destroy=()=>{nn(A(this,R))}}$set(e){A(this,R).$set(e)}$on(e,r){A(this,K)[e]=A(this,K)[e]||[];const n=(...l)=>r.call(this,...l);return A(this,K)[e].push(n),()=>{A(this,K)[e]=A(this,K)[e].filter(l=>l!==n)}}$destroy(){A(this,R).$destroy()}}K=new WeakMap,R=new WeakMap;let sr;typeof HTMLElement=="function"&&(sr=class extends HTMLElement{constructor(e,r,n){super();L(this,"$$ctor");L(this,"$$s");L(this,"$$c");L(this,"$$cn",!1);L(this,"$$d",{});L(this,"$$r",!1);L(this,"$$p_d",{});L(this,"$$l",{});L(this,"$$l_u",new Map);L(this,"$$me");this.$$ctor=e,this.$$s=r,n&&this.attachShadow({mode:"open"})}addEventListener(e,r,n){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(r),this.$$c){const l=this.$$c.$on(e,r);this.$$l_u.set(r,l)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const l=this.$$l_u.get(r);l&&(l(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(l){return s=>{const o=document.createElement("slot");l!=="default"&&(o.name=l),ct(s,o)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=pn(this);for(const l of this.$$s)l in n&&(l==="default"&&!this.$$d.children?(this.$$d.children=e(l),r.default=!0):r[l]=e(l));for(const l of this.attributes){const s=this.$$g_p(l.name);s in this.$$d||(this.$$d[s]=jt(s,l.value,this.$$p_d,"toProp"))}for(const l in this.$$p_d)!(l in this.$$d)&&this[l]!==void 0&&(this.$$d[l]=this[l],delete this[l]);this.$$c=dn({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=Ir(()=>{Fr(()=>{var l;this.$$r=!0;for(const s of kt(this.$$c)){if(!((l=this.$$p_d[s])!=null&&l.reflect))continue;this.$$d[s]=this.$$c[s];const o=jt(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1})});for(const l in this.$$l)for(const s of this.$$l[l]){const o=this.$$c.$on(l,s);this.$$l_u.set(s,o)}this.$$l={}}}attributeChangedCallback(e,r,n){var l;this.$$r||(e=this.$$g_p(e),this.$$d[e]=jt(e,n,this.$$p_d,"toProp"),(l=this.$$c)==null||l.$set({[e]:this.$$d[e]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$me(),this.$$c=void 0)})}$$g_p(e){return kt(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function jt(t,e,r,n){var s;const l=(s=r[t])==null?void 0:s.type;if(e=l==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(l){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(l){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function pn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function or(t,e,r,n,l,s){let o=class extends sr{constructor(){super(t,r,l),this.$$p_d=e}static get observedAttributes(){return kt(e).map(u=>(e[u].attribute||u).toLowerCase())}};return kt(e).forEach(u=>{Et(o.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(a){var i;a=jt(u,a,e),this.$$d[u]=a;var f=this.$$c;if(f){var h=(i=Tt(f,u))==null?void 0:i.get;h?f[u]=a:f.$set({[u]:a})}}})}),n.forEach(u=>{Et(o.prototype,u,{get(){var a;return(a=this.$$c)==null?void 0:a[u]}})}),t.element=o,o}const gn=[{name:"nostter",url:"https://nostter.app/post?content={text}&url={url}&title={title}",icon:"https://nostter.app/favicon.ico"},{name:"lumilumi",url:"https://lumilumi.vercel.app/post?url={url}&text={text}&title={title}",icon:"https://lumilumi.vercel.app/favicon.ico"}];var bn=t=>t.stopPropagation(),$n=(t,e,r)=>e(M(r).url),mn=yt('<button class="item svelte-13vsz3z"><img> </button>'),xn=yt('<div class="overlay svelte-13vsz3z"><div class="inner svelte-13vsz3z"><button class="close-button svelte-13vsz3z" aria-label="Close">✖</button> <h2 class="title svelte-13vsz3z">Share</h2> <div class="list svelte-13vsz3z"></div></div></div>');const yn={hash:"svelte-13vsz3z",code:`
2
+ /* オーバーレイ背景 */.overlay.svelte-13vsz3z {position:fixed;top:0;left:0;width:100vw;height:100vh;background-color:rgba(0, 0, 0, 0.3); /* 少し濃い背景 */display:flex;justify-content:center;align-items:center;}
3
+
4
+ /* ダイアログ本体 */.inner.svelte-13vsz3z {display:flex;flex-direction:column;position:relative;background-color:var(--bg-color);padding:1.5rem;border-radius:12px; /* 柔らかい角丸 */box-shadow:0 8px 16px rgba(0, 0, 0, 0.2);width:90%;max-width:400px;gap:1rem; /* スペーシング */}
5
+
6
+ /* タイトル */.title.svelte-13vsz3z {margin:0;font-size:1.25rem;font-weight:bold;text-align:center;color:var(--text-color-main); /* グレー700 */}
7
+
8
+ /* リスト */.list.svelte-13vsz3z {display:flex;flex-wrap:wrap;justify-content:center;gap:0.75rem; /* ゆったりした間隔 */}
9
+
10
+ /* リストアイテム */.item.svelte-13vsz3z {color:var(--button2-text-color);display:flex;width:120px;justify-content:center;align-items:center;gap:0.5rem;padding:0.75rem 1rem;background-color:var(--button2-bg-color); /* グレー100 */border:1px solid var(--border-color); /* グレー300 */border-radius:8px;font-size:1rem;cursor:pointer;transition:background-color 0.2s ease,
11
+ box-shadow 0.2s ease;}.item.svelte-13vsz3z:hover {background-color:var(--button2-hover-color); /* グレー200 */box-shadow:0 2px 6px rgba(0, 0, 0, 0.1);}.item.svelte-13vsz3z:active {background-color:var(--button2-active-color); /* グレー300 */}
12
+
13
+ /* バツボタン */.close-button.svelte-13vsz3z {position:absolute;right:12px;top:12px;width:36px;height:36px;display:flex;justify-content:center;align-items:center;background-color:var(--button2-bg-color); /* グレー200 */border:none;border-radius:50%;font-size:1.25rem;color:var(--button2-text-color); /* グレー700 */cursor:pointer;transition:background-color 0.2s ease,
14
+ transform 0.1s ease;}.close-button.svelte-13vsz3z:hover {background-color:var(--button2-hover-color); /* グレー300 */}.close-button.svelte-13vsz3z:active {background-color:var(--button2-active-color); /* グレー400 */transform:scale(0.95); /* 押した感覚を演出 */}`};function ce(t,e){oe(e,!0),rr(t,yn);let r=B(e,"url",7,""),n=B(e,"text",7,""),l=B(e,"shareTitle",7,""),s=B(e,"handleClose",7);const o=i=>{const c=i.replace("{url}",encodeURIComponent(r())).replace("{title}",encodeURIComponent(l())).replace("{text}",encodeURIComponent(n()));console.log(c),window.open(c,"_blank","noreferrer"),s()()};var u=xn();u.__click=function(...i){var c;(c=s())==null||c.apply(this,i)};var a=qt(u);a.__click=[bn];var f=qt(a);f.__click=function(...i){var c;(c=s())==null||c.apply(this,i)};var h=Ot(f,4);return on(h,21,()=>gn,ln,(i,c)=>{var v=mn();v.__click=[$n,o,c];var d=qt(v);Ut(d,"width",24);var _=Ot(d);pt(v),Oe(()=>{Ut(d,"src",M(c).icon),Ut(d,"alt",M(c).name),en(_,` ${M(c).name??""}`)}),ct(i,v)}),pt(h),pt(a),pt(u),ct(t,u),ie({get url(){return r()},set url(i=""){r(i),O()},get text(){return n()},set text(i=""){n(i),O()},get shareTitle(){return l()},set shareTitle(i=""){l(i),O()},get handleClose(){return s()},set handleClose(i){s(i),O()}})}Je(["click"]),customElements.define("nostr-share-dialog",or(ce,{url:{},text:{},shareTitle:{},handleClose:{}},[],[],!0));const wn=(t,e)=>{At(e,!0)};var kn=yt("<span>Share</span>"),En=yt(`<svg class="nostr-icon svelte-1k7qocb" version="1.1" id="_8" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" viewBox="0 0 256 256" style="enable-background:new 0 0 256 256;" xml:space="preserve"><g><path class="st0 svelte-1k7qocb" d="M0,0v256h256V0H0z M231.2,159.2c0,20.7,0,31.1-3.5,42.2c-4.4,12.2-14,21.8-26.2,26.2
15
+ c-11.1,3.5-21.5,3.5-42.2,3.5H96.8c-20.7,0-31.1,0-42.2-3.5c-12.2-4.4-21.8-14-26.2-26.2c-3.5-11.1-3.5-21.5-3.5-42.2V96.8
16
+ c0-20.7,0-31.1,3.5-42.2c4.4-12.2,14-21.8,26.2-26.2c11.2-3.5,21.5-3.5,42.2-3.5h62.5c20.7,0,31.1,0,42.2,3.5
17
+ c12.2,4.4,21.8,14,26.2,26.2c3.5,11.1,3.5,21.5,3.5,42.2V159.2z"></path><circle class="st1 svelte-1k7qocb" cx="137.9" cy="99" r="12.1"></circle><path class="st1 svelte-1k7qocb" d="M210.8,115.9c0-47.3-27.7-68.7-64.4-68.7c-16.4,0-31,4.4-42.4,12.5c-3.8,2.7-9,0.1-9-4.5
18
+ c0-3.1-2.5-5.7-5.7-5.7H57.7c-3.1,0-5.7,2.5-5.7,5.7v144c0,3.1,2.5,5.7,5.7,5.7h33.7c3.1,0,5.6-2.5,5.6-5.6v-8.4
19
+ c0-62.8-33.2-109.8-0.4-116c30-5.7,64.1-3,64.5,20.1c0,2,0.3,8,8.6,11.2c5,2,12.6,2.6,22.6,2.4c0,0,9.1-0.7,9.1,8.5
20
+ c0,11.5-20.4,10.7-20.4,10.7c-6.7,0.3-22.6-1.5-31.7,1.2c-4.8,1.5-9,4.2-11.5,9.1c-4.2,8.3-6.2,26.5-6.5,45.5v15.5
21
+ c0,3.1,2.5,5.7,5.7,5.7h68c3.1,0,5.7-2.5,5.7-5.7l0,0V115.9z"></path><path class="st2 svelte-1k7qocb" d="M227.6,54.6c-4.4-12.2-14-21.8-26.2-26.2c-11.1-3.5-21.5-3.5-42.2-3.5H96.8c-20.7,0-31.1,0-42.2,3.5
22
+ c-12.2,4.4-21.8,14-26.2,26.2c-3.5,11.2-3.5,21.5-3.5,42.2v62.5c0,20.7,0,31.1,3.5,42.2c4.4,12.2,14,21.8,26.2,26.2
23
+ c11.2,3.5,21.5,3.5,42.2,3.5h62.5c20.7,0,31.1,0,42.2-3.5c12.2-4.4,21.8-14,26.2-26.2c3.5-11.1,3.5-21.5,3.5-42.2V96.8
24
+ C231.2,76.1,231.2,65.7,227.6,54.6z M205.1,204.8h-68c-3.1,0-5.7-2.5-5.7-5.7v-15.5c0.3-19,2.3-37.2,6.5-45.5
25
+ c2.5-5,6.7-7.7,11.5-9.1c9-2.7,24.9-0.9,31.7-1.2c0,0,20.4,0.8,20.4-10.7c0-9.3-9.1-8.5-9.1-8.5c-10,0.3-17.7-0.4-22.6-2.4
26
+ c-8.3-3.3-8.6-9.2-8.6-11.2c-0.4-23.1-34.5-25.9-64.5-20.1c-32.8,6.2,0.4,53.3,0.4,116v8.4c-0.1,3.1-2.5,5.6-5.6,5.6H57.7
27
+ c-3.1,0-5.7-2.5-5.7-5.7v-144c0-3.1,2.5-5.7,5.7-5.7h31.7c3.1,0,5.7,2.5,5.7,5.7c0,4.7,5.2,7.2,9,4.5c11.4-8.2,26-12.5,42.4-12.5
28
+ c36.7,0,64.4,21.4,64.4,68.7v83.2l0,0C210.8,202.3,208.3,204.8,205.1,204.8z M125.7,99c0-6.7,5.4-12.1,12.1-12.1S150,92.3,150,99
29
+ s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"></path></g></svg> <!>`,1),Tn=yt("<button><!></button> <!>",1);const Sn={hash:"svelte-1k7qocb",code:`:host {font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
30
+ Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;--text-color-main: #374151;--button1-text-color: #662482;--button1-bg-color: #f3f4f6;--button1-hover-color: #313131;--button2-text-color: rgb(211, 211, 211);--button2-bg-color: #f3f4f6;--button2-hover-color: #e5e7eb;--nostr-color: #662482;--bg-color: #ffffff;--border-color: #d1d5db;}
31
+ @media (prefers-color-scheme: dark) {:host {--text-color-main: #ffffff;--button1-text-color: #eec5ff;--button1-bg-color: #363636;--button1-hover-color: #555555;--button2-text-color: #f1f1f1;--button2-bg-color: #1f1f1f;--button2-hover-color: #3b3b3b;--nostr-color: #eec5ff;--bg-color: #000000;--border-color: #333333;}
34
32
  }
35
- </style>
36
- <g>
37
- <path
38
- class="st0"
39
- d="M0,0v256h256V0H0z M231.2,159.2c0,20.7,0,31.1-3.5,42.2c-4.4,12.2-14,21.8-26.2,26.2
40
- c-11.1,3.5-21.5,3.5-42.2,3.5H96.8c-20.7,0-31.1,0-42.2-3.5c-12.2-4.4-21.8-14-26.2-26.2c-3.5-11.1-3.5-21.5-3.5-42.2V96.8
41
- c0-20.7,0-31.1,3.5-42.2c4.4-12.2,14-21.8,26.2-26.2c11.2-3.5,21.5-3.5,42.2-3.5h62.5c20.7,0,31.1,0,42.2,3.5
42
- c12.2,4.4,21.8,14,26.2,26.2c3.5,11.1,3.5,21.5,3.5,42.2V159.2z"
43
- />
44
- <circle class="st1" cx="137.9" cy="99" r="12.1" />
45
- <path
46
- class="st1"
47
- d="M210.8,115.9c0-47.3-27.7-68.7-64.4-68.7c-16.4,0-31,4.4-42.4,12.5c-3.8,2.7-9,0.1-9-4.5
48
- c0-3.1-2.5-5.7-5.7-5.7H57.7c-3.1,0-5.7,2.5-5.7,5.7v144c0,3.1,2.5,5.7,5.7,5.7h33.7c3.1,0,5.6-2.5,5.6-5.6v-8.4
49
- c0-62.8-33.2-109.8-0.4-116c30-5.7,64.1-3,64.5,20.1c0,2,0.3,8,8.6,11.2c5,2,12.6,2.6,22.6,2.4c0,0,9.1-0.7,9.1,8.5
50
- c0,11.5-20.4,10.7-20.4,10.7c-6.7,0.3-22.6-1.5-31.7,1.2c-4.8,1.5-9,4.2-11.5,9.1c-4.2,8.3-6.2,26.5-6.5,45.5v15.5
51
- c0,3.1,2.5,5.7,5.7,5.7h68c3.1,0,5.7-2.5,5.7-5.7l0,0V115.9z"
52
- />
53
- <path
54
- class="st2"
55
- d="M227.6,54.6c-4.4-12.2-14-21.8-26.2-26.2c-11.1-3.5-21.5-3.5-42.2-3.5H96.8c-20.7,0-31.1,0-42.2,3.5
56
- c-12.2,4.4-21.8,14-26.2,26.2c-3.5,11.2-3.5,21.5-3.5,42.2v62.5c0,20.7,0,31.1,3.5,42.2c4.4,12.2,14,21.8,26.2,26.2
57
- c11.2,3.5,21.5,3.5,42.2,3.5h62.5c20.7,0,31.1,0,42.2-3.5c12.2-4.4,21.8-14,26.2-26.2c3.5-11.1,3.5-21.5,3.5-42.2V96.8
58
- C231.2,76.1,231.2,65.7,227.6,54.6z M205.1,204.8h-68c-3.1,0-5.7-2.5-5.7-5.7v-15.5c0.3-19,2.3-37.2,6.5-45.5
59
- c2.5-5,6.7-7.7,11.5-9.1c9-2.7,24.9-0.9,31.7-1.2c0,0,20.4,0.8,20.4-10.7c0-9.3-9.1-8.5-9.1-8.5c-10,0.3-17.7-0.4-22.6-2.4
60
- c-8.3-3.3-8.6-9.2-8.6-11.2c-0.4-23.1-34.5-25.9-64.5-20.1c-32.8,6.2,0.4,53.3,0.4,116v8.4c-0.1,3.1-2.5,5.6-5.6,5.6H57.7
61
- c-3.1,0-5.7-2.5-5.7-5.7v-144c0-3.1,2.5-5.7,5.7-5.7h31.7c3.1,0,5.7,2.5,5.7,5.7c0,4.7,5.2,7.2,9,4.5c11.4-8.2,26-12.5,42.4-12.5
62
- c36.7,0,64.4,21.4,64.4,68.7v83.2l0,0C210.8,202.3,208.3,204.8,205.1,204.8z M125.7,99c0-6.7,5.4-12.1,12.1-12.1S150,92.3,150,99
63
- s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"
64
- />
65
- </g>
66
- </svg>`,Sn=(e,t)=>{qe(t,!0)};var Cn=ke('<div class="nostrShare-svg svelte-16pn564"><!></div>'),Nn=ke('<div class="nostrShare-svg svelte-16pn564"><!></div> <span class="nostrShare-text svelte-16pn564">Share</span>',1),An=ke("<button><!></button> <!>",1);const Rn={hash:"svelte-16pn564",code:`
67
- /* ボタン全体の基本スタイル */.nostrShare-button.svelte-16pn564,
68
- .nostrShare-icon.svelte-16pn564 {display:flex;align-items:center;justify-content:center;border:none;outline:none;cursor:pointer;transition:all 0.2s ease-in-out;}
33
+ /* ボタン全体の基本スタイル */.nostrShare-button.svelte-1k7qocb,
34
+ .nostrShare-icon.svelte-1k7qocb {color:var(--button1-text-color);display:flex;align-items:center;justify-content:center;border:none;outline:none;cursor:pointer;transition:all 0.2s ease-in-out;}
69
35
 
70
- /* ボタンスタイル */.nostrShare-button.svelte-16pn564 {padding:8px 16px;margin:4px;font-family:-apple-system,
71
- BlinkMacSystemFont,
72
- Helvetica Neue,
73
- Arial,
74
- Hiragino Kaku Gothic ProN,
75
- Hiragino Sans,
76
- Meiryo,
77
- sans-serif;font-weight:bold;border-radius:8px;background-color:#f3f4f6; /* グレー */color:#374151; /* ダークグレー */}.nostrShare-button.svelte-16pn564:hover {background-color:#e5e7eb; /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-button.svelte-16pn564:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
36
+ /* ボタンスタイル */.nostrShare-button.svelte-1k7qocb {padding:8px 16px;margin:4px;font-weight:bold;border-radius:8px;background-color:var(--button1-bg-color); /* グレー */color:var(--button2-text-color); /* ダークグレー */}.nostrShare-button.svelte-1k7qocb:hover {background-color:var(--button1-hover-color); /* 少し明るいグレー */box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}.nostrShare-button.svelte-1k7qocb:active {background-color:#d1d5db; /* ダークグレー */transform:scale(0.98);}
78
37
 
79
- /* テキスト用スタイル */.nostrShare-text.svelte-16pn564 {margin-left:8px;font-size:14px;}
38
+ /* テキスト用スタイル */.nostrShare-text.svelte-1k7qocb {margin-left:8px;font-size:14px;color:var(--button2-text-color);}
80
39
 
81
- /* アイコンスタイル */.nostrShare-icon.svelte-16pn564 {width:40px;height:40px;margin:4px;border-radius:50%;background-color:#f3f4f6;color:#374151;}.nostrShare-icon.svelte-16pn564:hover {background-color:#e5e7eb;box-shadow:0 0 6px rgba(0, 0, 0, 0.1);}.nostrShare-icon.svelte-16pn564:active {background-color:#d1d5db;transform:scale(0.95);}
40
+ /* アイコンスタイル */.nostrShare-icon.svelte-1k7qocb {width:36px;height:36px;margin:4px;border-radius:50%;background-color:var(--button1-bg-color); /* グレー */}.nostrShare-icon.svelte-1k7qocb:hover {background-color:var(--button1-hover-color); /* グレー */box-shadow:0 0 6px rgba(0, 0, 0, 0.1);}.nostrShare-icon.svelte-1k7qocb:active {background-color:#d1d5db;transform:scale(0.95);}
82
41
 
83
- /* アイコン内部のSVG */.nostrShare-svg.svelte-16pn564 {width:24px;height:24px;display:flex;align-items:center;justify-content:center;}`};function ur(e,t){it(t,!0),lr(e,Rn);let r=te(t,"url",7),n=te(t,"text",7),l=te(t,"shareTitle",7),s=te(t,"icon",7,!1),i=qr(!1);const o=()=>{qe(i,!1)};var u=An(),v=tt(u);v.__click=[Sn,i];var h=ce(v);hn(h,t,"default",{},f=>{var d=nn(),y=tt(d);{var C=_=>{var b=Cn(),D=ce(b);nr(D,()=>ar),ne(b),ie(_,b)},S=_=>{var b=Nn(),D=tt(b),E=ce(D);nr(E,()=>ar),ne(D),Mr(2),ie(_,b)};er(y,_=>{s()?_(C):_(S,!1)})}ie(f,d)}),ne(v);var a=rt(v,2);{var c=f=>{ct(f,{handleClose:o,get url(){return r()},get text(){return n()},get shareTitle(){return l()}})};er(a,f=>{z(i)&&f(c)})}return qt(()=>_n(v,`${(t.class?t.class:s()?"nostrShare-icon":"nostrShare-button")??""} svelte-16pn564`)),ie(e,u),ot({get url(){return r()},set url(f){r(f),U()},get text(){return n()},set text(f){n(f),U()},get shareTitle(){return l()},set shareTitle(f){l(f),U()},get icon(){return s()},set icon(f=!1){s(f),U()}})}Jt(["click"]),customElements.define("nostr-share",or(ur,{url:{},text:{},shareTitle:{},icon:{}},["default"],[],!0)),g.Dialog=ct,g.NostrShare=ur,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
42
+ /* アイコン内部のSVG */.nostr-icon.svelte-1k7qocb {width:24px;height:24px;display:flex;align-items:center;justify-content:center;}.st0.svelte-1k7qocb {fill:none;}.st1.svelte-1k7qocb {fill:var(--button1-bg-color);}.st2.svelte-1k7qocb {fill:var(--nostr-color);}`};function ir(t,e){oe(e,!0),rr(t,Sn);let r=B(e,"url",7),n=B(e,"text",7),l=B(e,"shareTitle",7),s=B(e,"icon",7,!1),o=B(e,"class",7),u=B(e,"style",7),a=zr(!1);const f=()=>{At(a,!1)};var h=Tn(),i=Ce(h);i.__click=[wn,a];var c=qt(i);cn(c,e,"default",{},_=>{var S=En(),C=Ot(Ce(S),2);{var p=x=>{var U=kn();lr(U,"nostrShare-text svelte-1k7qocb"),ct(x,U)};Qe(C,x=>{s()||x(p)})}ct(_,S)}),pt(i);var v=Ot(i,2);{var d=_=>{ce(_,{handleClose:f,get url(){return r()},get text(){return n()},get shareTitle(){return l()}})};Qe(v,_=>{M(a)&&_(d)})}return Oe(()=>{lr(i,`${`${o()||(s()?"nostrShare-icon":"nostrShare-button")}`??""} svelte-1k7qocb`),Ut(i,"style",u()||"")}),ct(t,h),ie({get url(){return r()},set url(_){r(_),O()},get text(){return n()},set text(_){n(_),O()},get shareTitle(){return l()},set shareTitle(_){l(_),O()},get icon(){return s()},set icon(_=!1){s(_),O()},get class(){return o()},set class(_){o(_),O()},get style(){return u()},set style(_){u(_),O()}})}Je(["click"]),customElements.define("nostr-share",or(ir,{url:{},text:{},shareTitle:{},icon:{},class:{},style:{}},["default"],[],!0)),b.Dialog=ce,b.NostrShare=ir,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konemono/nostr-share-component",
3
- "version": "0.0.17",
3
+ "version": "0.0.18",
4
4
  "type": "module",
5
5
  "main": "dist/nostr-share-component.umd.js",
6
6
  "module": "dist/nostr-share-component.es.js",