@konemono/nostr-share-component 0.4.3 → 0.5.1

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,4 +1,4 @@
1
- var NostrShare=function(b){"use strict";var Rn=Object.defineProperty;var cr=b=>{throw TypeError(b)};var Dn=(b,w,k)=>w in b?Rn(b,w,{enumerable:!0,configurable:!0,writable:!0,value:k}):b[w]=k;var j=(b,w,k)=>Dn(b,typeof w!="symbol"?w+"":w,k),fr=(b,w,k)=>w.has(b)||cr("Cannot "+k);var z=(b,w,k)=>(fr(b,w,"read from private field"),k?k.call(b):w.get(b)),pe=(b,w,k)=>w.has(b)?cr("Cannot add the same private member more than once"):w instanceof WeakSet?w.add(b):w.set(b,k),ge=(b,w,k,St)=>(fr(b,w,"write to private field"),St?St.call(b,k):w.set(b,k),k);var G,D;const w="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(w);const k=1,St=2,vr=16,hr=8,dr=1,_r=2,be="[",Kt="[!",Wt="]",_t={},pr=Symbol(),gr=["touchstart","touchmove"];function br(t){return gr.includes(t)}const $e=!1;var me=Array.isArray,Jt=Array.from,Ct=Object.keys,Nt=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyDescriptors,mr=Object.getPrototypeOf;function yr(t){for(var e=0;e<t.length;e++)t[e]()}const I=2,ye=4,At=8,Xt=16,F=32,nt=64,Zt=128,ot=256,Ot=512,A=1024,W=2048,pt=4096,P=8192,lt=16384,xr=32768,Qt=65536,wr=1<<19,xe=1<<20,Er=Symbol("$state"),we=Symbol("legacy props"),kr=Symbol("");function Ee(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 zr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ar(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Or(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let ke=!1;function Rt(t,e){var r={f:0,v:t,reactions:null,equals:Ee,version:0};return r}function Rr(t){return Dr(Rt(t))}function te(t,e=!1){const r=Rt(t);return e||(r.equals=Sr),r}function Dr(t){return y!==null&&y.f&I&&(H===null?Ur([t]):H.push(t)),t}function Dt(t,e){return y!==null&&Kr()&&y.f&(I|Xt)&&(H===null||!H.includes(t))&&Or(),Te(t,e)}function Te(t,e){return t.equals(e)||(t.v=e,t.version=Ge(),Se(t,W),p!==null&&p.f&A&&!(p.f&F)&&(T!==null&&T.includes(t)?(U(p,W),Vt(p)):X===null?Gr([t]):X.push(t))),e}function Se(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,o=0;o<n;o++){var l=r[o],s=l.f;s&W||(U(l,e),s&(A|ot)&&(s&I?Se(l,pt):Vt(l)))}}function ee(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let $=!1;function q(t){$=t}let g;function M(t){if(t===null)throw ee(),_t;return g=t}function gt(){return M(B(g))}function st(t){if($){if(B(g)!==null)throw ee(),_t;g=t}}function Ir(t=1){if($){for(var e=t,r=g;e--;)r=B(r);g=r}}function re(){for(var t=0,e=g;;){if(e.nodeType===8){var r=e.data;if(r===Wt){if(t===0)return e;t-=1}else(r===be||r===Kt)&&(t+=1)}var n=B(e);e.remove(),e=n}}var Ce,Ne,ze;function ne(){if(Ce===void 0){Ce=window;var t=Element.prototype,e=Node.prototype;Ne=zt(e,"firstChild").get,ze=zt(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 V(t){return Ne.call(t)}function B(t){return ze.call(t)}function $t(t,e){if(!$)return V(t);var r=V(g);if(r===null)r=g.appendChild(bt());else if(e&&r.nodeType!==3){var n=bt();return r==null||r.before(n),M(n),n}return M(r),r}function Ae(t,e){if(!$){var r=V(t);return r instanceof Comment&&r.data===""?B(r):r}return g}function It(t,e=1,r=!1){let n=$?g:t;for(var o;e--;)o=n,n=B(n);if(!$)return n;var l=n==null?void 0:n.nodeType;if(r&&l!==3){var s=bt();return n===null?o==null||o.after(s):n.before(s),M(s),s}return M(n),n}function Oe(t){t.textContent=""}function Re(t){var e=I|W;p===null?e|=ot:p.f|=xe;var r=y!==null&&y.f&I?y:null;const n={children:null,ctx:L,deps:null,equals:Ee,f:e,fn:t,reactions:null,v:null,version:0,parent:r??p};return r!==null&&(r.children??(r.children=[])).push(n),n}function De(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&I?oe(n):Y(n)}}}function Mr(t){for(var e=t.parent;e!==null;){if(!(e.f&I))return e;e=e.parent}return null}function Ie(t){var e,r=p;J(Mr(t));try{De(t),e=Ke(t)}finally{J(r)}return e}function Me(t){var e=Ie(t),r=(et||t.f&ot)&&t.deps!==null?pt:A;U(t,r),t.equals(e)||(t.v=e,t.version=Ge())}function oe(t){De(t),Et(t,0),U(t,lt),t.v=t.children=t.deps=t.ctx=t.reactions=null}function Lr(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function it(t,e,r,n=!0){var o=(t&nt)!==0,l=p,s={ctx:L,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|W,first:null,fn:e,last:null,next:null,parent:o?null:l,prev:null,teardown:null,transitions:null,version:0};if(r){var i=at;try{Ye(!0),qt(s),s.f|=xr}catch(v){throw Y(s),v}finally{Ye(i)}}else e!==null&&Vt(s);var u=r&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&xe)===0;if(!u&&!o&&n&&(l!==null&&Lr(s,l),y!==null&&y.f&I)){var c=y;(c.children??(c.children=[])).push(s)}return s}function jr(t){const e=it(nt,t,!0);return()=>{Y(e)}}function Fr(t){const e=it(nt,t,!0);return(r={})=>new Promise(n=>{r.outro?Mt(e,()=>{Y(e),n(void 0)}):(Y(e),n(void 0))})}function Pr(t){return it(ye,t,!1)}function Hr(t){return it(At,t,!0)}function le(t){return se(t)}function se(t,e=0){return it(At|Xt|e,t,!0)}function mt(t,e=!0){return it(At|F,t,!0,e)}function Le(t){var e=t.teardown;if(e!==null){const r=y;ct(null);try{e.call(null)}finally{ct(r)}}}function je(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)oe(e[r])}}function Fe(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 qr(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&wr)&&t.nodes_start!==null){for(var n=t.nodes_start,o=t.nodes_end;n!==null;){var l=n===o?null:B(n);n.remove(),n=l}r=!0}Fe(t,e&&!r),je(t),Et(t,0),U(t,lt);var s=t.transitions;if(s!==null)for(const u of s)u.stop();Le(t);var i=t.parent;i!==null&&i.first!==null&&Pe(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Pe(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 Mt(t,e){var r=[];ie(t,r,!0),He(r,()=>{Y(t),e&&e()})}function He(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var o of t)o.out(n)}else e()}function ie(t,e,r){if(!(t.f&P)){if(t.f^=P,t.transitions!==null)for(const s of t.transitions)(s.is_global||r)&&e.push(s);for(var n=t.first;n!==null;){var o=n.next,l=(n.f&Qt)!==0||(n.f&F)!==0;ie(n,e,l?r:!1),n=o}}}function Lt(t){qe(t,!0)}function qe(t,e){if(t.f&P){wt(t)&&qt(t),t.f^=P;for(var r=t.first;r!==null;){var n=r.next,o=(r.f&Qt)!==0||(r.f&F)!==0;qe(r,o?e:!1),r=n}if(t.transitions!==null)for(const l of t.transitions)(l.is_global||e)&&l.in()}}let jt=!1,ae=[];function Ve(){jt=!1;const t=ae.slice();ae=[],yr(t)}function Vr(t){jt||(jt=!0,queueMicrotask(Ve)),ae.push(t)}function Br(){jt&&Ve()}const Be=0,Yr=1;let Ft=!1,Pt=Be,yt=!1,xt=null,at=!1;function Ye(t){at=t}let tt=[],ut=0,In=[],y=null;function ct(t){y=t}let p=null;function J(t){p=t}let H=null;function Ur(t){H=t}let T=null,O=0,X=null;function Gr(t){X=t}let Ue=1,et=!1,L=null;function Ge(){return++Ue}function Kr(){return!ke}function wt(t){var s,i;var e=t.f;if(e&W)return!0;if(e&pt){var r=t.deps,n=(e&ot)!==0;if(r!==null){var o;if(e&Ot){for(o=0;o<r.length;o++)((s=r[o]).reactions??(s.reactions=[])).push(t);t.f^=Ot}for(o=0;o<r.length;o++){var l=r[o];if(wt(l)&&Me(l),n&&p!==null&&!et&&!((i=l==null?void 0:l.reactions)!=null&&i.includes(t))&&(l.reactions??(l.reactions=[])).push(t),l.version>t.version)return!0}}(!n||p!==null&&!et)&&U(t,A)}return!1}function Wr(t,e){for(var r=e;r!==null;){if(r.f&Zt)try{r.fn(t);return}catch{r.f^=Zt}r=r.parent}throw Ft=!1,t}function Jr(t){return(t.f&lt)===0&&(t.parent===null||(t.parent.f&Zt)===0)}function Ht(t,e,r,n){if(Ft){if(r===null&&(Ft=!1),Jr(e))throw t;return}r!==null&&(Ft=!0);{Wr(t,e);return}}function Ke(t){var h;var e=T,r=O,n=X,o=y,l=et,s=H,i=L,u=t.f;T=null,O=0,X=null,y=u&(F|nt)?null:t,et=!at&&(u&ot)!==0,H=null,L=t.ctx;try{var c=(0,t.fn)(),v=t.deps;if(T!==null){var a;if(Et(t,O),v!==null&&O>0)for(v.length=O+T.length,a=0;a<T.length;a++)v[O+a]=T[a];else t.deps=v=T;if(!et)for(a=O;a<v.length;a++)((h=v[a]).reactions??(h.reactions=[])).push(t)}else v!==null&&O<v.length&&(Et(t,O),v.length=O);return c}finally{T=e,O=r,X=n,y=o,et=l,H=s,L=i}}function Xr(t,e){let r=e.reactions;if(r!==null){var n=r.indexOf(t);if(n!==-1){var o=r.length-1;o===0?r=e.reactions=null:(r[n]=r[o],r.pop())}}r===null&&e.f&I&&(T===null||!T.includes(e))&&(U(e,pt),e.f&(ot|Ot)||(e.f^=Ot),Et(e,0))}function Et(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Xr(t,r[n])}function qt(t){var e=t.f;if(!(e&lt)){U(t,A);var r=p,n=L;p=t;try{e&Xt?qr(t):Fe(t),je(t),Le(t);var o=Ke(t);t.teardown=typeof o=="function"?o:null,t.version=Ue}catch(l){Ht(l,t,r,n||t.ctx)}finally{p=r}}}function We(){if(ut>1e3){ut=0;try{Cr()}catch(t){if(xt!==null)Ht(t,xt,null);else throw t}}ut++}function Je(t){var e=t.length;if(e!==0){We();var r=at;at=!0;try{for(var n=0;n<e;n++){var o=t[n];o.f&A||(o.f^=A);var l=[];Xe(o,l),Zr(l)}}finally{at=r}}}function Zr(t){var e=t.length;if(e!==0)for(var r=0;r<e;r++){var n=t[r];if(!(n.f&(lt|P)))try{wt(n)&&(qt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Pe(n):n.fn=null))}catch(o){Ht(o,n,null,n.ctx)}}}function Qr(){if(yt=!1,ut>1001)return;const t=tt;tt=[],Je(t),yt||(ut=0,xt=null)}function Vt(t){Pt===Be&&(yt||(yt=!0,queueMicrotask(Qr))),xt=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(nt|F)){if(!(r&A))return;e.f^=A}}tt.push(e)}function Xe(t,e){var r=t.first,n=[];t:for(;r!==null;){var o=r.f,l=(o&F)!==0,s=l&&(o&A)!==0,i=r.next;if(!s&&!(o&P))if(o&At){if(l)r.f^=A;else try{wt(r)&&qt(r)}catch(a){Ht(a,r,null,r.ctx)}var u=r.first;if(u!==null){r=u;continue}}else o&ye&&n.push(r);if(i===null){let a=r.parent;for(;a!==null;){if(t===a)break t;var c=a.next;if(c!==null){r=c;continue t}a=a.parent}}r=i}for(var v=0;v<n.length;v++)u=n[v],e.push(u),Xe(u,e)}function Z(t){var e=Pt,r=tt;try{We();const o=[];Pt=Yr,tt=o,yt=!1,Je(r);var n=t==null?void 0:t();return Br(),(tt.length>0||o.length>0)&&Z(),ut=0,xt=null,n}finally{Pt=e,tt=r}}function R(t){var v;var e=t.f,r=(e&I)!==0;if(r&&e&lt){var n=Ie(t);return oe(t),n}if(y!==null){H!==null&&H.includes(t)&&Ar();var o=y.deps;T===null&&o!==null&&o[O]===t?O++:T===null?T=[t]:T.push(t),X!==null&&p!==null&&p.f&A&&!(p.f&F)&&X.includes(t)&&(U(p,W),Vt(p))}else if(r&&t.deps===null)for(var l=t,s=l.parent,i=l;s!==null;)if(s.f&I){var u=s;i=u,s=u.parent}else{var c=s;(v=c.deriveds)!=null&&v.includes(i)||(c.deriveds??(c.deriveds=[])).push(i);break}return r&&(l=t,wt(l)&&Me(l)),t.v}function tn(t){const e=y;try{return y=null,t()}finally{y=e}}const en=~(W|pt|A);function U(t,e){t.f=t.f&en|e}function Bt(t,e=!1,r){L={p:L,c:null,e:null,m:!1,s:t,x:null,l:null}}function Yt(t){const e=L;if(e!==null){t!==void 0&&(e.x=t);const s=e.e;if(s!==null){var r=p,n=y;e.e=null;try{for(var o=0;o<s.length;o++){var l=s[o];J(l.effect),ct(l.reaction),Pr(l.fn)}}finally{J(r),ct(n)}}L=e.p,e.m=!0}return t||{}}const Ze=new Set,ue=new Set;function Qe(t){for(var e=0;e<t.length;e++)Ze.add(t[e]);for(var r of ue)r(t)}function Ut(t){var _;var e=this,r=e.ownerDocument,n=t.type,o=((_=t.composedPath)==null?void 0:_.call(t))||[],l=o[0]||t.target,s=0,i=t.__root;if(i){var u=o.indexOf(i);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var c=o.indexOf(e);if(c===-1)return;u<=c&&(s=u)}if(l=o[s]||t.target,l!==e){Nt(t,"currentTarget",{configurable:!0,get(){return l||r}});var v=y,a=p;ct(null),J(null);try{for(var h,f=[];l!==null;){var d=l.assignedSlot||l.parentNode||l.host||null;try{var x=l["__"+n];if(x!==void 0&&!l.disabled)if(me(x)){var[C,...S]=x;C.apply(l,[t,...S])}else x.call(l,t)}catch(m){h?f.push(m):h=m}if(t.cancelBubble||d===e||d===null)break;l=d}if(h){for(let m of f)queueMicrotask(()=>{throw m});throw h}}finally{t.__root=e,delete t.currentTarget,ct(v),J(a)}}}function tr(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function ft(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,o,l=!t.startsWith("<!>");return()=>{if($)return ft(g,null),g;o===void 0&&(o=tr(l?t:"<!>"+t),r||(o=V(o)));var s=n?document.importNode(o,!0):o.cloneNode(!0);if(r){var i=V(s),u=s.lastChild;ft(i,u)}else ft(s,s);return s}}function rn(t,e,r="svg"){var n=!t.startsWith("<!>"),o=`<${r}>${n?t:"<!>"+t}</${r}>`,l;return()=>{if($)return ft(g,null),g;if(!l){var s=tr(o),i=V(s);l=V(i)}var u=l.cloneNode(!0);return ft(u,u),u}}function rt(t,e){if($){p.nodes_end=g,gt();return}t!==null&&t.before(e)}function nn(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 er(t,e){return rr(t,e)}function on(t,e){ne(),e.intro=e.intro??!1;const r=e.target,n=$,o=g;try{for(var l=V(r);l&&(l.nodeType!==8||l.data!==be);)l=B(l);if(!l)throw _t;q(!0),M(l),gt();const s=rr(t,{...e,anchor:l});if(g===null||g.nodeType!==8||g.data!==Wt)throw ee(),_t;return q(!1),s}catch(s){if(s===_t)return e.recover===!1&&Nr(),ne(),Oe(r),q(!1),er(t,e);throw s}finally{q(n),M(o)}}const vt=new Map;function rr(t,{target:e,anchor:r,props:n={},events:o,context:l,intro:s=!0}){ne();var i=new Set,u=a=>{for(var h=0;h<a.length;h++){var f=a[h];if(!i.has(f)){i.add(f);var d=br(f);e.addEventListener(f,Ut,{passive:d});var x=vt.get(f);x===void 0?(document.addEventListener(f,Ut,{passive:d}),vt.set(f,1)):vt.set(f,x+1)}}};u(Jt(Ze)),ue.add(u);var c=void 0,v=Fr(()=>{var a=r??e.appendChild(bt());return mt(()=>{if(l){Bt({});var h=L;h.c=l}o&&(n.$$events=o),$&&ft(a,null),c=t(a,n)||{},$&&(p.nodes_end=g),l&&Yt()}),()=>{var d;for(var h of i){e.removeEventListener(h,Ut);var f=vt.get(h);--f===0?(document.removeEventListener(h,Ut),vt.delete(h)):vt.set(h,f)}ue.delete(u),a!==r&&((d=a.parentNode)==null||d.removeChild(a))}});return ce.set(c,v),c}let ce=new WeakMap;function ln(t,e){const r=ce.get(t);return r?(ce.delete(t),r(e)):Promise.resolve()}function nr(t,e,r=!1){$&&gt();var n=t,o=null,l=null,s=pr,i=r?Qt:0,u=!1;const c=(a,h=!0)=>{u=!0,v(h,a)},v=(a,h)=>{if(s===(s=a))return;let f=!1;if($){const d=n.data===Kt;!!s===d&&(n=re(),M(n),q(!1),f=!0)}s?(o?Lt(o):h&&(o=mt(()=>h(n))),l&&Mt(l,()=>{l=null})):(l?Lt(l):h&&(l=mt(()=>h(n))),o&&Mt(o,()=>{o=null})),f&&q(!0)};se(()=>{u=!1,e(c),u||v(null,null)},i),$&&(n=g)}function sn(t,e){return e}function an(t,e,r,n){for(var o=[],l=e.length,s=0;s<l;s++)ie(e[s].e,o,!0);var i=l>0&&o.length===0&&r!==null;if(i){var u=r.parentNode;Oe(u),u.append(r),n.clear(),Q(t,e[0].prev,e[l-1].next)}He(o,()=>{for(var c=0;c<l;c++){var v=e[c];i||(n.delete(v.k),Q(t,v.prev,v.next)),Y(v.e,!i)}})}function un(t,e,r,n,o,l=null){var s=t,i={flags:e,items:new Map,first:null};{var u=t;s=$?M(V(u)):u.appendChild(bt())}$&&gt();var c=null,v=!1;se(()=>{var a=r(),h=me(a)?a:a==null?[]:Jt(a),f=h.length;if(v&&f===0)return;v=f===0;let d=!1;if($){var x=s.data===Kt;x!==(f===0)&&(s=re(),M(s),q(!1),d=!0)}if($){for(var C=null,S,_=0;_<f;_++){if(g.nodeType===8&&g.data===Wt){s=g,d=!0,q(!1);break}var m=h[_],K=n(m,_);S=or(g,i,C,null,m,K,_,o,e),i.items.set(K,S),C=S}f>0&&M(re())}if(!$){var E=y;cn(h,i,s,o,e,(E.f&P)!==0,n)}l!==null&&(f===0?c?Lt(c):c=mt(()=>l(s)):c!==null&&Mt(c,()=>{c=null})),d&&q(!0)}),$&&(s=g)}function cn(t,e,r,n,o,l,s,i){var u=t.length,c=e.items,v=e.first,a=v,h,f=null,d=[],x=[],C,S,_,m;for(m=0;m<u;m+=1){if(C=t[m],S=s(C,m),_=c.get(S),_===void 0){var K=a?a.e.nodes_start:r;f=or(K,e,f,f===null?e.first:f.next,C,S,m,n,o),c.set(S,f),d=[],x=[],a=f.next;continue}if(fn(_,C,m),_.e.f&P&&Lt(_.e),_!==a){if(h!==void 0&&h.has(_)){if(d.length<x.length){var E=x[0],N;f=E.prev;var dt=d[0],de=d[d.length-1];for(N=0;N<d.length;N+=1)lr(d[N],E,r);for(N=0;N<x.length;N+=1)h.delete(x[N]);Q(e,dt.prev,de.next),Q(e,f,dt),Q(e,de,E),a=E,f=de,m-=1,d=[],x=[]}else h.delete(_),lr(_,a,r),Q(e,_.prev,_.next),Q(e,_,f===null?e.first:f.next),Q(e,f,_),f=_;continue}for(d=[],x=[];a!==null&&a.k!==S;)(l||!(a.e.f&P))&&(h??(h=new Set)).add(a),x.push(a),a=a.next;if(a===null)continue;_=a}d.push(_),f=_,a=_.next}if(a!==null||h!==void 0){for(var _e=h===void 0?[]:Jt(h);a!==null;)(l||!(a.e.f&P))&&_e.push(a),a=a.next;var An=_e.length;if(An>0){var On=u===0?r:null;an(e,_e,On,c)}}p.first=e.first&&e.first.e,p.last=f&&f.e}function fn(t,e,r,n){Te(t.v,e),t.i=r}function or(t,e,r,n,o,l,s,i,u,c){var v=(u&k)!==0,a=(u&vr)===0,h=v?a?te(o):Rt(o):o,f=u&St?Rt(s):s,d={i:f,v:h,k:l,a:null,e:null,prev:r,next:n};try{return d.e=mt(()=>i(t,h,f),$),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 lr(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,o=e?e.e.nodes_start:r,l=t.e.nodes_start;l!==n;){var s=B(l);o.before(l),l=s}}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 vn(t,e,r,n,o){var i;$&&gt();var l=(i=e.$$slots)==null?void 0:i[r],s=!1;l===!0&&(l=e.children,s=!0),l===void 0?o!==null&&o(t):l(t,s?()=>n:n)}function fe(t,e){Vr(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const o=document.createElement("style");o.id=e.hash,o.textContent=e.code,n.appendChild(o)}})}function Tt(t,e,r,n){var o=t.__attributes??(t.__attributes={});$&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||o[e]!==(o[e]=r)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[kr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&hn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var sr=new Map;function hn(t){var e=sr.get(t.nodeName);if(e)return e;sr.set(t.nodeName,e=[]);for(var r,n=t,o=Element.prototype;o!==n;){r=$r(n);for(var l in r)r[l].set&&e.push(l);n=mr(n)}return e}function dn(t){for(var e=p,r=p;e!==null&&!(e.f&(F|nt));)e=e.parent;try{return J(e),t()}finally{J(r)}}function ht(t,e,r,n){var K;var o=!ke,l=(r&hr)!==0,s=!1,i;i=t[e];var u=Er in t||we in t,c=((K=zt(t,e))==null?void 0:K.set)??(u&&l&&e in t?E=>t[e]=E:void 0),v=n,a=!0,h=!1,f=()=>(h=!0,a&&(a=!1,v=n),v);i===void 0&&n!==void 0&&(c&&o&&zr(),i=f(),c&&c(i));var d;if(d=()=>{var E=t[e];return E===void 0?f():(a=!0,h=!1,E)},c){var x=t.$$legacy;return function(E,N){return arguments.length>0?((!N||x||s)&&c(N?d():E),E):d()}}var C=!1,S=!1,_=te(i),m=dn(()=>Re(()=>{var E=d(),N=R(_);return C?(C=!1,S=!0,N):(S=!1,_.v=E)}));return function(E,N){if(arguments.length>0){const dt=N?R(m):E;return m.equals(dt)||(C=!0,Dt(_,dt),h&&v!==void 0&&(v=dt),tn(()=>R(m))),E}return R(m)}}function _n(t){return new pn(t)}class pn{constructor(e){pe(this,G);pe(this,D);var l;var r=new Map,n=(s,i)=>{var u=te(i);return r.set(s,u),u};const o=new Proxy({...e.props||{},$$events:{}},{get(s,i){return R(r.get(i)??n(i,Reflect.get(s,i)))},has(s,i){return i===we?!0:(R(r.get(i)??n(i,Reflect.get(s,i))),Reflect.has(s,i))},set(s,i,u){return Dt(r.get(i)??n(i,u),u),Reflect.set(s,i,u)}});ge(this,D,(e.hydrate?on:er)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Z(),ge(this,G,o.$$events);for(const s of Object.keys(z(this,D)))s==="$set"||s==="$destroy"||s==="$on"||Nt(this,s,{get(){return z(this,D)[s]},set(i){z(this,D)[s]=i},enumerable:!0});z(this,D).$set=s=>{Object.assign(o,s)},z(this,D).$destroy=()=>{ln(z(this,D))}}$set(e){z(this,D).$set(e)}$on(e,r){z(this,G)[e]=z(this,G)[e]||[];const n=(...o)=>r.call(this,...o);return z(this,G)[e].push(n),()=>{z(this,G)[e]=z(this,G)[e].filter(o=>o!==n)}}$destroy(){z(this,D).$destroy()}}G=new WeakMap,D=new WeakMap;let ir;typeof HTMLElement=="function"&&(ir=class extends HTMLElement{constructor(e,r,n){super();j(this,"$$ctor");j(this,"$$s");j(this,"$$c");j(this,"$$cn",!1);j(this,"$$d",{});j(this,"$$r",!1);j(this,"$$p_d",{});j(this,"$$l",{});j(this,"$$l_u",new Map);j(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 o=this.$$c.$on(e,r);this.$$l_u.set(r,o)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const o=this.$$l_u.get(r);o&&(o(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(o){return l=>{const s=document.createElement("slot");o!=="default"&&(s.name=o),rt(l,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=gn(this);for(const o of this.$$s)o in n&&(o==="default"&&!this.$$d.children?(this.$$d.children=e(o),r.default=!0):r[o]=e(o));for(const o of this.attributes){const l=this.$$g_p(o.name);l in this.$$d||(this.$$d[l]=Gt(l,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=_n({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=jr(()=>{Hr(()=>{var o;this.$$r=!0;for(const l of Ct(this.$$c)){if(!((o=this.$$p_d[l])!=null&&o.reflect))continue;this.$$d[l]=this.$$c[l];const s=Gt(l,this.$$d[l],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,s)}this.$$r=!1})});for(const o in this.$$l)for(const l of this.$$l[o]){const s=this.$$c.$on(o,l);this.$$l_u.set(l,s)}this.$$l={}}}attributeChangedCallback(e,r,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Gt(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$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 Ct(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Gt(t,e,r,n){var l;const o=(l=r[t])==null?void 0:l.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(o){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(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function gn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function ve(t,e,r,n,o,l){let s=class extends ir{constructor(){super(t,r,o),this.$$p_d=e}static get observedAttributes(){return Ct(e).map(i=>(e[i].attribute||i).toLowerCase())}};return Ct(e).forEach(i=>{Nt(s.prototype,i,{get(){return this.$$c&&i in this.$$c?this.$$c[i]:this.$$d[i]},set(u){var a;u=Gt(i,u,e),this.$$d[i]=u;var c=this.$$c;if(c){var v=(a=zt(c,i))==null?void 0:a.get;v?c[i]=u:c.$set({[i]:u})}}})}),n.forEach(i=>{Nt(s.prototype,i,{get(){var u;return(u=this.$$c)==null?void 0:u[i]}})}),t.element=s,s}const bn=[{name:"nokakoi",url:"https://nokakoi.com/app/?text={text}",icon:"https://nokakoi.com/favicon.ico"},{name:"Nos Haiku",url:"https://nos-haiku.vercel.app/antenna?content={text}",icon:"https://nos-haiku.vercel.app/favicon.png"},{name:"nostter",url:"https://nostter.app/post?content={text}",icon:"https://nostter.app/favicon.ico"},{name:"Lumilumi",url:"https://lumilumi.app/post?text={text}",icon:"https://lumilumi.app/favicon.ico"}];var $n=t=>t.stopPropagation(),mn=(t,e,r)=>e(R(r).url),yn=kt('<button class="item svelte-1sy5hzc"><img> <span class="item-name"> </span></button>'),xn=kt('<div class="overlay svelte-1sy5hzc"><div class="inner svelte-1sy5hzc"><button class="close-button svelte-1sy5hzc" aria-label="Close">✖</button> <h2 class="title svelte-1sy5hzc">Select Share Client</h2> <div class="list svelte-1sy5hzc"></div> <div class="footer svelte-1sy5hzc"><a target="_blank" referrerpolicy="no-referrer" href="https://tsukemonogit.github.io/nostr-share-component/" class="svelte-1sy5hzc">nostr-share-component</a></div></div></div>');const wn={hash:"svelte-1sy5hzc",code:`
1
+ var NostrShare=function(b){"use strict";var Rn=Object.defineProperty;var cr=b=>{throw TypeError(b)};var In=(b,w,k)=>w in b?Rn(b,w,{enumerable:!0,configurable:!0,writable:!0,value:k}):b[w]=k;var F=(b,w,k)=>In(b,typeof w!="symbol"?w+"":w,k),fr=(b,w,k)=>w.has(b)||cr("Cannot "+k);var z=(b,w,k)=>(fr(b,w,"read from private field"),k?k.call(b):w.get(b)),pe=(b,w,k)=>w.has(b)?cr("Cannot add the same private member more than once"):w instanceof WeakSet?w.add(b):w.set(b,k),ge=(b,w,k,Ct)=>(fr(b,w,"write to private field"),Ct?Ct.call(b,k):w.set(b,k),k);var W,I;const w="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(w);const k=1,Ct=2,vr=16,dr=8,hr=1,_r=2,be="[",Kt="[!",Wt="]",_t={},pr=Symbol(),gr=["touchstart","touchmove"];function br(t){return gr.includes(t)}const $e=!1;var me=Array.isArray,Jt=Array.from,St=Object.keys,Nt=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyDescriptors,mr=Object.getPrototypeOf;function yr(t){for(var e=0;e<t.length;e++)t[e]()}const D=2,ye=4,At=8,Xt=16,P=32,ot=64,Zt=128,lt=256,Ot=512,A=1024,J=2048,pt=4096,H=8192,st=16384,xr=32768,Qt=65536,wr=1<<19,xe=1<<20,Er=Symbol("$state"),we=Symbol("legacy props"),kr=Symbol("");function Ee(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 Cr(t){return!Tr(t,this.v)}function Sr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nr(){throw new Error("https://svelte.dev/e/hydration_failed")}function zr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ar(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Or(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let ke=!1;function Rt(t,e){var r={f:0,v:t,reactions:null,equals:Ee,version:0};return r}function Rr(t){return Ir(Rt(t))}function te(t,e=!1){const r=Rt(t);return e||(r.equals=Cr),r}function Ir(t){return y!==null&&y.f&D&&(q===null?Yr([t]):q.push(t)),t}function It(t,e){return y!==null&&Kr()&&y.f&(D|Xt)&&(q===null||!q.includes(t))&&Or(),Te(t,e)}function Te(t,e){return t.equals(e)||(t.v=e,t.version=Ge(),Ce(t,J),p!==null&&p.f&A&&!(p.f&P)&&(T!==null&&T.includes(t)?(K(p,J),Vt(p)):Z===null?Gr([t]):Z.push(t))),e}function Ce(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,o=0;o<n;o++){var l=r[o],s=l.f;s&J||(K(l,e),s&(A|lt)&&(s&D?Ce(l,pt):Vt(l)))}}function ee(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let $=!1;function B(t){$=t}let g;function M(t){if(t===null)throw ee(),_t;return g=t}function gt(){return M(Y(g))}function it(t){if($){if(Y(g)!==null)throw ee(),_t;g=t}}function Dr(t=1){if($){for(var e=t,r=g;e--;)r=Y(r);g=r}}function re(){for(var t=0,e=g;;){if(e.nodeType===8){var r=e.data;if(r===Wt){if(t===0)return e;t-=1}else(r===be||r===Kt)&&(t+=1)}var n=Y(e);e.remove(),e=n}}var Se,Ne,ze;function ne(){if(Se===void 0){Se=window;var t=Element.prototype,e=Node.prototype;Ne=zt(e,"firstChild").get,ze=zt(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 U(t){return Ne.call(t)}function Y(t){return ze.call(t)}function $t(t,e){if(!$)return U(t);var r=U(g);if(r===null)r=g.appendChild(bt());else if(e&&r.nodeType!==3){var n=bt();return r==null||r.before(n),M(n),n}return M(r),r}function Ae(t,e){if(!$){var r=U(t);return r instanceof Comment&&r.data===""?Y(r):r}return g}function Dt(t,e=1,r=!1){let n=$?g:t;for(var o;e--;)o=n,n=Y(n);if(!$)return n;var l=n==null?void 0:n.nodeType;if(r&&l!==3){var s=bt();return n===null?o==null||o.after(s):n.before(s),M(s),s}return M(n),n}function Oe(t){t.textContent=""}function Re(t){var e=D|J;p===null?e|=lt:p.f|=xe;var r=y!==null&&y.f&D?y:null;const n={children:null,ctx:L,deps:null,equals:Ee,f:e,fn:t,reactions:null,v:null,version:0,parent:r??p};return r!==null&&(r.children??(r.children=[])).push(n),n}function Ie(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?oe(n):G(n)}}}function Mr(t){for(var e=t.parent;e!==null;){if(!(e.f&D))return e;e=e.parent}return null}function De(t){var e,r=p;X(Mr(t));try{Ie(t),e=Ke(t)}finally{X(r)}return e}function Me(t){var e=De(t),r=(rt||t.f&lt)&&t.deps!==null?pt:A;K(t,r),t.equals(e)||(t.v=e,t.version=Ge())}function oe(t){Ie(t),Et(t,0),K(t,st),t.v=t.children=t.deps=t.ctx=t.reactions=null}function Lr(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function at(t,e,r,n=!0){var o=(t&ot)!==0,l=p,s={ctx:L,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|J,first:null,fn:e,last:null,next:null,parent:o?null:l,prev:null,teardown:null,transitions:null,version:0};if(r){var i=ut;try{Ue(!0),qt(s),s.f|=xr}catch(c){throw G(s),c}finally{Ue(i)}}else e!==null&&Vt(s);var u=r&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&xe)===0;if(!u&&!o&&n&&(l!==null&&Lr(s,l),y!==null&&y.f&D)){var v=y;(v.children??(v.children=[])).push(s)}return s}function jr(t){const e=at(ot,t,!0);return()=>{G(e)}}function Fr(t){const e=at(ot,t,!0);return(r={})=>new Promise(n=>{r.outro?Mt(e,()=>{G(e),n(void 0)}):(G(e),n(void 0))})}function Pr(t){return at(ye,t,!1)}function Hr(t){return at(At,t,!0)}function le(t){return se(t)}function se(t,e=0){return at(At|Xt|e,t,!0)}function mt(t,e=!0){return at(At|P,t,!0,e)}function Le(t){var e=t.teardown;if(e!==null){const r=y;ft(null);try{e.call(null)}finally{ft(r)}}}function je(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)oe(e[r])}}function Fe(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;G(r,e),r=n}}function qr(t){for(var e=t.first;e!==null;){var r=e.next;e.f&P||G(e),e=r}}function G(t,e=!0){var r=!1;if((e||t.f&wr)&&t.nodes_start!==null){for(var n=t.nodes_start,o=t.nodes_end;n!==null;){var l=n===o?null:Y(n);n.remove(),n=l}r=!0}Fe(t,e&&!r),je(t),Et(t,0),K(t,st);var s=t.transitions;if(s!==null)for(const u of s)u.stop();Le(t);var i=t.parent;i!==null&&i.first!==null&&Pe(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Pe(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 Mt(t,e){var r=[];ie(t,r,!0),He(r,()=>{G(t),e&&e()})}function He(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var o of t)o.out(n)}else e()}function ie(t,e,r){if(!(t.f&H)){if(t.f^=H,t.transitions!==null)for(const s of t.transitions)(s.is_global||r)&&e.push(s);for(var n=t.first;n!==null;){var o=n.next,l=(n.f&Qt)!==0||(n.f&P)!==0;ie(n,e,l?r:!1),n=o}}}function Lt(t){qe(t,!0)}function qe(t,e){if(t.f&H){wt(t)&&qt(t),t.f^=H;for(var r=t.first;r!==null;){var n=r.next,o=(r.f&Qt)!==0||(r.f&P)!==0;qe(r,o?e:!1),r=n}if(t.transitions!==null)for(const l of t.transitions)(l.is_global||e)&&l.in()}}let jt=!1,ae=[];function Ve(){jt=!1;const t=ae.slice();ae=[],yr(t)}function Vr(t){jt||(jt=!0,queueMicrotask(Ve)),ae.push(t)}function Br(){jt&&Ve()}const Be=0,Ur=1;let Ft=!1,Pt=Be,yt=!1,xt=null,ut=!1;function Ue(t){ut=t}let et=[],ct=0,Dn=[],y=null;function ft(t){y=t}let p=null;function X(t){p=t}let q=null;function Yr(t){q=t}let T=null,O=0,Z=null;function Gr(t){Z=t}let Ye=1,rt=!1,L=null;function Ge(){return++Ye}function Kr(){return!ke}function wt(t){var s,i;var e=t.f;if(e&J)return!0;if(e&pt){var r=t.deps,n=(e&lt)!==0;if(r!==null){var o;if(e&Ot){for(o=0;o<r.length;o++)((s=r[o]).reactions??(s.reactions=[])).push(t);t.f^=Ot}for(o=0;o<r.length;o++){var l=r[o];if(wt(l)&&Me(l),n&&p!==null&&!rt&&!((i=l==null?void 0:l.reactions)!=null&&i.includes(t))&&(l.reactions??(l.reactions=[])).push(t),l.version>t.version)return!0}}(!n||p!==null&&!rt)&&K(t,A)}return!1}function Wr(t,e){for(var r=e;r!==null;){if(r.f&Zt)try{r.fn(t);return}catch{r.f^=Zt}r=r.parent}throw Ft=!1,t}function Jr(t){return(t.f&st)===0&&(t.parent===null||(t.parent.f&Zt)===0)}function Ht(t,e,r,n){if(Ft){if(r===null&&(Ft=!1),Jr(e))throw t;return}r!==null&&(Ft=!0);{Wr(t,e);return}}function Ke(t){var h;var e=T,r=O,n=Z,o=y,l=rt,s=q,i=L,u=t.f;T=null,O=0,Z=null,y=u&(P|ot)?null:t,rt=!ut&&(u&lt)!==0,q=null,L=t.ctx;try{var v=(0,t.fn)(),c=t.deps;if(T!==null){var a;if(Et(t,O),c!==null&&O>0)for(c.length=O+T.length,a=0;a<T.length;a++)c[O+a]=T[a];else t.deps=c=T;if(!rt)for(a=O;a<c.length;a++)((h=c[a]).reactions??(h.reactions=[])).push(t)}else c!==null&&O<c.length&&(Et(t,O),c.length=O);return v}finally{T=e,O=r,Z=n,y=o,rt=l,q=s,L=i}}function Xr(t,e){let r=e.reactions;if(r!==null){var n=r.indexOf(t);if(n!==-1){var o=r.length-1;o===0?r=e.reactions=null:(r[n]=r[o],r.pop())}}r===null&&e.f&D&&(T===null||!T.includes(e))&&(K(e,pt),e.f&(lt|Ot)||(e.f^=Ot),Et(e,0))}function Et(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Xr(t,r[n])}function qt(t){var e=t.f;if(!(e&st)){K(t,A);var r=p,n=L;p=t;try{e&Xt?qr(t):Fe(t),je(t),Le(t);var o=Ke(t);t.teardown=typeof o=="function"?o:null,t.version=Ye}catch(l){Ht(l,t,r,n||t.ctx)}finally{p=r}}}function We(){if(ct>1e3){ct=0;try{Sr()}catch(t){if(xt!==null)Ht(t,xt,null);else throw t}}ct++}function Je(t){var e=t.length;if(e!==0){We();var r=ut;ut=!0;try{for(var n=0;n<e;n++){var o=t[n];o.f&A||(o.f^=A);var l=[];Xe(o,l),Zr(l)}}finally{ut=r}}}function Zr(t){var e=t.length;if(e!==0)for(var r=0;r<e;r++){var n=t[r];if(!(n.f&(st|H)))try{wt(n)&&(qt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Pe(n):n.fn=null))}catch(o){Ht(o,n,null,n.ctx)}}}function Qr(){if(yt=!1,ct>1001)return;const t=et;et=[],Je(t),yt||(ct=0,xt=null)}function Vt(t){Pt===Be&&(yt||(yt=!0,queueMicrotask(Qr))),xt=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(ot|P)){if(!(r&A))return;e.f^=A}}et.push(e)}function Xe(t,e){var r=t.first,n=[];t:for(;r!==null;){var o=r.f,l=(o&P)!==0,s=l&&(o&A)!==0,i=r.next;if(!s&&!(o&H))if(o&At){if(l)r.f^=A;else try{wt(r)&&qt(r)}catch(a){Ht(a,r,null,r.ctx)}var u=r.first;if(u!==null){r=u;continue}}else o&ye&&n.push(r);if(i===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=i}for(var c=0;c<n.length;c++)u=n[c],e.push(u),Xe(u,e)}function V(t){var e=Pt,r=et;try{We();const o=[];Pt=Ur,et=o,yt=!1,Je(r);var n=t==null?void 0:t();return Br(),(et.length>0||o.length>0)&&V(),ct=0,xt=null,n}finally{Pt=e,et=r}}function R(t){var c;var e=t.f,r=(e&D)!==0;if(r&&e&st){var n=De(t);return oe(t),n}if(y!==null){q!==null&&q.includes(t)&&Ar();var o=y.deps;T===null&&o!==null&&o[O]===t?O++:T===null?T=[t]:T.push(t),Z!==null&&p!==null&&p.f&A&&!(p.f&P)&&Z.includes(t)&&(K(p,J),Vt(p))}else if(r&&t.deps===null)for(var l=t,s=l.parent,i=l;s!==null;)if(s.f&D){var u=s;i=u,s=u.parent}else{var v=s;(c=v.deriveds)!=null&&c.includes(i)||(v.deriveds??(v.deriveds=[])).push(i);break}return r&&(l=t,wt(l)&&Me(l)),t.v}function tn(t){const e=y;try{return y=null,t()}finally{y=e}}const en=~(J|pt|A);function K(t,e){t.f=t.f&en|e}function Bt(t,e=!1,r){L={p:L,c:null,e:null,m:!1,s:t,x:null,l:null}}function Ut(t){const e=L;if(e!==null){t!==void 0&&(e.x=t);const s=e.e;if(s!==null){var r=p,n=y;e.e=null;try{for(var o=0;o<s.length;o++){var l=s[o];X(l.effect),ft(l.reaction),Pr(l.fn)}}finally{X(r),ft(n)}}L=e.p,e.m=!0}return t||{}}const Ze=new Set,ue=new Set;function Qe(t){for(var e=0;e<t.length;e++)Ze.add(t[e]);for(var r of ue)r(t)}function Yt(t){var _;var e=this,r=e.ownerDocument,n=t.type,o=((_=t.composedPath)==null?void 0:_.call(t))||[],l=o[0]||t.target,s=0,i=t.__root;if(i){var u=o.indexOf(i);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var v=o.indexOf(e);if(v===-1)return;u<=v&&(s=u)}if(l=o[s]||t.target,l!==e){Nt(t,"currentTarget",{configurable:!0,get(){return l||r}});var c=y,a=p;ft(null),X(null);try{for(var h,d=[];l!==null;){var f=l.assignedSlot||l.parentNode||l.host||null;try{var m=l["__"+n];if(m!==void 0&&!l.disabled)if(me(m)){var[C,...S]=m;C.apply(l,[t,...S])}else m.call(l,t)}catch(x){h?d.push(x):h=x}if(t.cancelBubble||f===e||f===null)break;l=f}if(h){for(let x of d)queueMicrotask(()=>{throw x});throw h}}finally{t.__root=e,delete t.currentTarget,ft(c),X(a)}}}function tr(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function vt(t,e){var r=p;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function kt(t,e){var r=(e&hr)!==0,n=(e&_r)!==0,o,l=!t.startsWith("<!>");return()=>{if($)return vt(g,null),g;o===void 0&&(o=tr(l?t:"<!>"+t),r||(o=U(o)));var s=n?document.importNode(o,!0):o.cloneNode(!0);if(r){var i=U(s),u=s.lastChild;vt(i,u)}else vt(s,s);return s}}function rn(t,e,r="svg"){var n=!t.startsWith("<!>"),o=`<${r}>${n?t:"<!>"+t}</${r}>`,l;return()=>{if($)return vt(g,null),g;if(!l){var s=tr(o),i=U(s);l=U(i)}var u=l.cloneNode(!0);return vt(u,u),u}}function nt(t,e){if($){p.nodes_end=g,gt();return}t!==null&&t.before(e)}function nn(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 er(t,e){return rr(t,e)}function on(t,e){ne(),e.intro=e.intro??!1;const r=e.target,n=$,o=g;try{for(var l=U(r);l&&(l.nodeType!==8||l.data!==be);)l=Y(l);if(!l)throw _t;B(!0),M(l),gt();const s=rr(t,{...e,anchor:l});if(g===null||g.nodeType!==8||g.data!==Wt)throw ee(),_t;return B(!1),s}catch(s){if(s===_t)return e.recover===!1&&Nr(),ne(),Oe(r),B(!1),er(t,e);throw s}finally{B(n),M(o)}}const dt=new Map;function rr(t,{target:e,anchor:r,props:n={},events:o,context:l,intro:s=!0}){ne();var i=new Set,u=a=>{for(var h=0;h<a.length;h++){var d=a[h];if(!i.has(d)){i.add(d);var f=br(d);e.addEventListener(d,Yt,{passive:f});var m=dt.get(d);m===void 0?(document.addEventListener(d,Yt,{passive:f}),dt.set(d,1)):dt.set(d,m+1)}}};u(Jt(Ze)),ue.add(u);var v=void 0,c=Fr(()=>{var a=r??e.appendChild(bt());return mt(()=>{if(l){Bt({});var h=L;h.c=l}o&&(n.$$events=o),$&&vt(a,null),v=t(a,n)||{},$&&(p.nodes_end=g),l&&Ut()}),()=>{var f;for(var h of i){e.removeEventListener(h,Yt);var d=dt.get(h);--d===0?(document.removeEventListener(h,Yt),dt.delete(h)):dt.set(h,d)}ue.delete(u),a!==r&&((f=a.parentNode)==null||f.removeChild(a))}});return ce.set(v,c),v}let ce=new WeakMap;function ln(t,e){const r=ce.get(t);return r?(ce.delete(t),r(e)):Promise.resolve()}function nr(t,e,r=!1){$&&gt();var n=t,o=null,l=null,s=pr,i=r?Qt:0,u=!1;const v=(a,h=!0)=>{u=!0,c(h,a)},c=(a,h)=>{if(s===(s=a))return;let d=!1;if($){const f=n.data===Kt;!!s===f&&(n=re(),M(n),B(!1),d=!0)}s?(o?Lt(o):h&&(o=mt(()=>h(n))),l&&Mt(l,()=>{l=null})):(l?Lt(l):h&&(l=mt(()=>h(n))),o&&Mt(o,()=>{o=null})),d&&B(!0)};se(()=>{u=!1,e(v),u||c(null,null)},i),$&&(n=g)}function sn(t,e){return e}function an(t,e,r,n){for(var o=[],l=e.length,s=0;s<l;s++)ie(e[s].e,o,!0);var i=l>0&&o.length===0&&r!==null;if(i){var u=r.parentNode;Oe(u),u.append(r),n.clear(),Q(t,e[0].prev,e[l-1].next)}He(o,()=>{for(var v=0;v<l;v++){var c=e[v];i||(n.delete(c.k),Q(t,c.prev,c.next)),G(c.e,!i)}})}function un(t,e,r,n,o,l=null){var s=t,i={flags:e,items:new Map,first:null};{var u=t;s=$?M(U(u)):u.appendChild(bt())}$&&gt();var v=null,c=!1;se(()=>{var a=r(),h=me(a)?a:a==null?[]:Jt(a),d=h.length;if(c&&d===0)return;c=d===0;let f=!1;if($){var m=s.data===Kt;m!==(d===0)&&(s=re(),M(s),B(!1),f=!0)}if($){for(var C=null,S,_=0;_<d;_++){if(g.nodeType===8&&g.data===Wt){s=g,f=!0,B(!1);break}var x=h[_],j=n(x,_);S=or(g,i,C,null,x,j,_,o,e),i.items.set(j,S),C=S}d>0&&M(re())}if(!$){var E=y;cn(h,i,s,o,e,(E.f&H)!==0,n)}l!==null&&(d===0?v?Lt(v):v=mt(()=>l(s)):v!==null&&Mt(v,()=>{v=null})),f&&B(!0)}),$&&(s=g)}function cn(t,e,r,n,o,l,s,i){var u=t.length,v=e.items,c=e.first,a=c,h,d=null,f=[],m=[],C,S,_,x;for(x=0;x<u;x+=1){if(C=t[x],S=s(C,x),_=v.get(S),_===void 0){var j=a?a.e.nodes_start:r;d=or(j,e,d,d===null?e.first:d.next,C,S,x,n,o),v.set(S,d),f=[],m=[],a=d.next;continue}if(fn(_,C,x),_.e.f&H&&Lt(_.e),_!==a){if(h!==void 0&&h.has(_)){if(f.length<m.length){var E=m[0],N;d=E.prev;var ht=f[0],he=f[f.length-1];for(N=0;N<f.length;N+=1)lr(f[N],E,r);for(N=0;N<m.length;N+=1)h.delete(m[N]);Q(e,ht.prev,he.next),Q(e,d,ht),Q(e,he,E),a=E,d=he,x-=1,f=[],m=[]}else h.delete(_),lr(_,a,r),Q(e,_.prev,_.next),Q(e,_,d===null?e.first:d.next),Q(e,d,_),d=_;continue}for(f=[],m=[];a!==null&&a.k!==S;)(l||!(a.e.f&H))&&(h??(h=new Set)).add(a),m.push(a),a=a.next;if(a===null)continue;_=a}f.push(_),d=_,a=_.next}if(a!==null||h!==void 0){for(var _e=h===void 0?[]:Jt(h);a!==null;)(l||!(a.e.f&H))&&_e.push(a),a=a.next;var An=_e.length;if(An>0){var On=u===0?r:null;an(e,_e,On,v)}}p.first=e.first&&e.first.e,p.last=d&&d.e}function fn(t,e,r,n){Te(t.v,e),t.i=r}function or(t,e,r,n,o,l,s,i,u,v){var c=(u&k)!==0,a=(u&vr)===0,h=c?a?te(o):Rt(o):o,d=u&Ct?Rt(s):s,f={i:d,v:h,k:l,a:null,e:null,prev:r,next:n};try{return f.e=mt(()=>i(t,h,d),$),f.e.prev=r&&r.e,f.e.next=n&&n.e,r===null?e.first=f:(r.next=f,r.e.next=f.e),n!==null&&(n.prev=f,n.e.prev=f.e),f}finally{}}function lr(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,o=e?e.e.nodes_start:r,l=t.e.nodes_start;l!==n;){var s=Y(l);o.before(l),l=s}}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 vn(t,e,r,n,o){var i;$&&gt();var l=(i=e.$$slots)==null?void 0:i[r],s=!1;l===!0&&(l=e.children,s=!0),l===void 0?o!==null&&o(t):l(t,s?()=>n:n)}function fe(t,e){Vr(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const o=document.createElement("style");o.id=e.hash,o.textContent=e.code,n.appendChild(o)}})}function Tt(t,e,r,n){var o=t.__attributes??(t.__attributes={});$&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||o[e]!==(o[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,o=Element.prototype;o!==n;){r=$r(n);for(var l in r)r[l].set&&e.push(l);n=mr(n)}return e}function hn(t){for(var e=p,r=p;e!==null&&!(e.f&(P|ot));)e=e.parent;try{return X(e),t()}finally{X(r)}}function tt(t,e,r,n){var j;var o=!ke,l=(r&dr)!==0,s=!1,i;i=t[e];var u=Er in t||we in t,v=((j=zt(t,e))==null?void 0:j.set)??(u&&l&&e in t?E=>t[e]=E:void 0),c=n,a=!0,h=!1,d=()=>(h=!0,a&&(a=!1,c=n),c);i===void 0&&n!==void 0&&(v&&o&&zr(),i=d(),v&&v(i));var f;if(f=()=>{var E=t[e];return E===void 0?d():(a=!0,h=!1,E)},v){var m=t.$$legacy;return function(E,N){return arguments.length>0?((!N||m||s)&&v(N?f():E),E):f()}}var C=!1,S=!1,_=te(i),x=hn(()=>Re(()=>{var E=f(),N=R(_);return C?(C=!1,S=!0,N):(S=!1,_.v=E)}));return function(E,N){if(arguments.length>0){const ht=N?R(x):E;return x.equals(ht)||(C=!0,It(_,ht),h&&c!==void 0&&(c=ht),tn(()=>R(x))),E}return R(x)}}function _n(t){return new pn(t)}class pn{constructor(e){pe(this,W);pe(this,I);var l;var r=new Map,n=(s,i)=>{var u=te(i);return r.set(s,u),u};const o=new Proxy({...e.props||{},$$events:{}},{get(s,i){return R(r.get(i)??n(i,Reflect.get(s,i)))},has(s,i){return i===we?!0:(R(r.get(i)??n(i,Reflect.get(s,i))),Reflect.has(s,i))},set(s,i,u){return It(r.get(i)??n(i,u),u),Reflect.set(s,i,u)}});ge(this,I,(e.hydrate?on:er)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&V(),ge(this,W,o.$$events);for(const s of Object.keys(z(this,I)))s==="$set"||s==="$destroy"||s==="$on"||Nt(this,s,{get(){return z(this,I)[s]},set(i){z(this,I)[s]=i},enumerable:!0});z(this,I).$set=s=>{Object.assign(o,s)},z(this,I).$destroy=()=>{ln(z(this,I))}}$set(e){z(this,I).$set(e)}$on(e,r){z(this,W)[e]=z(this,W)[e]||[];const n=(...o)=>r.call(this,...o);return z(this,W)[e].push(n),()=>{z(this,W)[e]=z(this,W)[e].filter(o=>o!==n)}}$destroy(){z(this,I).$destroy()}}W=new WeakMap,I=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 o=this.$$c.$on(e,r);this.$$l_u.set(r,o)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const o=this.$$l_u.get(r);o&&(o(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(o){return l=>{const s=document.createElement("slot");o!=="default"&&(s.name=o),nt(l,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=gn(this);for(const o of this.$$s)o in n&&(o==="default"&&!this.$$d.children?(this.$$d.children=e(o),r.default=!0):r[o]=e(o));for(const o of this.attributes){const l=this.$$g_p(o.name);l in this.$$d||(this.$$d[l]=Gt(l,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=_n({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=jr(()=>{Hr(()=>{var o;this.$$r=!0;for(const l of St(this.$$c)){if(!((o=this.$$p_d[l])!=null&&o.reflect))continue;this.$$d[l]=this.$$c[l];const s=Gt(l,this.$$d[l],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,s)}this.$$r=!1})});for(const o in this.$$l)for(const l of this.$$l[o]){const s=this.$$c.$on(o,l);this.$$l_u.set(l,s)}this.$$l={}}}attributeChangedCallback(e,r,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Gt(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$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 Gt(t,e,r,n){var l;const o=(l=r[t])==null?void 0:l.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(o){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(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function gn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function ve(t,e,r,n,o,l){let s=class extends ir{constructor(){super(t,r,o),this.$$p_d=e}static get observedAttributes(){return St(e).map(i=>(e[i].attribute||i).toLowerCase())}};return St(e).forEach(i=>{Nt(s.prototype,i,{get(){return this.$$c&&i in this.$$c?this.$$c[i]:this.$$d[i]},set(u){var a;u=Gt(i,u,e),this.$$d[i]=u;var v=this.$$c;if(v){var c=(a=zt(v,i))==null?void 0:a.get;c?v[i]=u:v.$set({[i]:u})}}})}),n.forEach(i=>{Nt(s.prototype,i,{get(){var u;return(u=this.$$c)==null?void 0:u[i]}})}),t.element=s,s}const bn=[{name:"eHagaki",url:"https://lokuyow.github.io/ehagaki/?content={text}",icon:"https://lokuyow.github.io/ehagaki/favicon.ico"},{name:"nokakoi",url:"https://nokakoi.com/app/?text={text}",icon:"https://nokakoi.com/favicon.ico"},{name:"Nos Haiku",url:"https://nos-haiku.vercel.app/antenna?content={text}",icon:"https://nos-haiku.vercel.app/favicon.png"},{name:"nostter",url:"https://nostter.app/post?content={text}",icon:"https://nostter.app/favicon.ico"},{name:"Lumilumi",url:"https://lumilumi.app/post?text={text}&tags={tags}",icon:"https://lumilumi.app/favicon.ico"}];var $n=t=>t.stopPropagation(),mn=(t,e,r)=>e(R(r).url),yn=kt('<button class="item svelte-1sy5hzc"><img> <span class="item-name"> </span></button>'),xn=kt('<div class="overlay svelte-1sy5hzc"><div class="inner svelte-1sy5hzc"><button class="close-button svelte-1sy5hzc" aria-label="Close">✖</button> <h2 class="title svelte-1sy5hzc">Select Share Client</h2> <div class="list svelte-1sy5hzc"></div> <div class="footer svelte-1sy5hzc"><a target="_blank" referrerpolicy="no-referrer" href="https://tsukemonogit.github.io/nostr-share-component/" class="svelte-1sy5hzc">nostr-share-component</a></div></div></div>');const wn={hash:"svelte-1sy5hzc",code:`
2
2
  /* オーバーレイ背景 */.overlay.svelte-1sy5hzc {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;z-index:50;}
3
3
 
4
4
  /* ダイアログ本体 */.inner.svelte-1sy5hzc {display:flex;flex-direction:column;position:relative;background-color:var(--bg-color);padding:1rem;border-radius:12px; /* 柔らかい角丸 */box-shadow:0 8px 16px rgba(0, 0, 0, 0.2);width:90%;max-width:400px;gap:1rem; /* スペーシング */}
@@ -11,8 +11,8 @@ var NostrShare=function(b){"use strict";var Rn=Object.defineProperty;var cr=b=>{
11
11
  box-shadow 0.2s ease;}.item.svelte-1sy5hzc:hover {background-color:var(--button2-hover-color); /* グレー200 */box-shadow:0 2px 6px rgba(0, 0, 0, 0.1);}.item.svelte-1sy5hzc:active {background-color:var(--button2-active-color); /* グレー300 */}
12
12
 
13
13
  /* バツボタン */.close-button.svelte-1sy5hzc {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-1sy5hzc:hover {background-color:var(--button2-hover-color); /* グレー300 */}.close-button.svelte-1sy5hzc:active {background-color:var(--button2-active-color); /* グレー400 */transform:scale(0.95); /* 押した感覚を演出 */}.footer.svelte-1sy5hzc {margin-top:1rem;text-align:center;font-size:0.75rem;border-top:1px solid var(--border-color); /* 線を追加 */padding-top:0.5rem; /* 線とコンテンツの間にスペースを追加 */}a.svelte-1sy5hzc {font-weight:500;color:var(--button1-border-color);}a.svelte-1sy5hzc:hover {color:var(--button2-text-color);}`};function he(t,e){Bt(e,!0),fe(t,wn);let r=ht(e,"text",7,""),n=ht(e,"handleClose",7);const o=c=>{r()===""&&r(`${document.title}
15
- ${window.location.href}`);const v=c.replace("{text}",encodeURIComponent(r()));console.log(v),window.open(v,"_blank","noreferrer"),n()()};var l=xn();l.__click=function(...c){var v;(v=n())==null||v.apply(this,c)};var s=$t(l);s.__click=[$n];var i=$t(s);i.__click=function(...c){var v;(v=n())==null||v.apply(this,c)};var u=It(i,4);return un(u,21,()=>bn,sn,(c,v)=>{var a=yn();a.__click=[mn,o,v];var h=$t(a);Tt(h,"width",24);var f=It(h,2),d=$t(f,!0);st(f),st(a),le(()=>{Tt(h,"src",R(v).icon),Tt(h,"alt",R(v).name),nn(d,R(v).name)}),rt(c,a)}),st(u),Ir(2),st(s),st(l),rt(t,l),Yt({get text(){return r()},set text(c=""){r(c),Z()},get handleClose(){return n()},set handleClose(c){n(c),Z()}})}Qe(["click"]),customElements.define("nostr-share-dialog",ve(he,{text:{},handleClose:{}},[],[],!0));var En=rn(`<svg class="nostr-icon svelte-givlj7" 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" xml:space="preserve"><g><path class="st0 svelte-givlj7" 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
14
+ transform 0.1s ease;}.close-button.svelte-1sy5hzc:hover {background-color:var(--button2-hover-color); /* グレー300 */}.close-button.svelte-1sy5hzc:active {background-color:var(--button2-active-color); /* グレー400 */transform:scale(0.95); /* 押した感覚を演出 */}.footer.svelte-1sy5hzc {margin-top:1rem;text-align:center;font-size:0.75rem;border-top:1px solid var(--border-color); /* 線を追加 */padding-top:0.5rem; /* 線とコンテンツの間にスペースを追加 */}a.svelte-1sy5hzc {font-weight:500;color:var(--button1-border-color);}a.svelte-1sy5hzc:hover {color:var(--button2-text-color);}`};function de(t,e){Bt(e,!0),fe(t,wn);let r=tt(e,"text",7,""),n=tt(e,"tags",7,""),o=tt(e,"handleClose",7);const l=c=>{r()===""&&r(`${document.title}
15
+ ${window.location.href}`);let a=c.replace("{text}",encodeURIComponent(r()??""));a=a.replace("{tags}",encodeURIComponent(n()??"")),console.log(a),window.open(a,"_blank","noreferrer"),o()()};var s=xn();s.__click=function(...c){var a;(a=o())==null||a.apply(this,c)};var i=$t(s);i.__click=[$n];var u=$t(i);u.__click=function(...c){var a;(a=o())==null||a.apply(this,c)};var v=Dt(u,4);return un(v,21,()=>bn,sn,(c,a)=>{var h=yn();h.__click=[mn,l,a];var d=$t(h);Tt(d,"width",24);var f=Dt(d,2),m=$t(f,!0);it(f),it(h),le(()=>{Tt(d,"src",R(a).icon),Tt(d,"alt",R(a).name),nn(m,R(a).name)}),nt(c,h)}),it(v),Dr(2),it(i),it(s),nt(t,s),Ut({get text(){return r()},set text(c=""){r(c),V()},get tags(){return n()},set tags(c=""){n(c),V()},get handleClose(){return o()},set handleClose(c){o(c),V()}})}Qe(["click"]),customElements.define("nostr-share-dialog",ve(de,{text:{},tags:{},handleClose:{}},[],[],!0));var En=rn(`<svg class="nostr-icon svelte-givlj7" 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" xml:space="preserve"><g><path class="st0 svelte-givlj7" 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
16
16
  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
17
17
  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
18
18
  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-givlj7" cx="137.9" cy="99" r="12.1"></circle><path class="st1 svelte-givlj7" 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
@@ -28,8 +28,8 @@ ${window.location.href}`);const v=c.replace("{text}",encodeURIComponent(r()));co
28
28
  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
29
29
  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
30
30
  s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"></path></g></svg>`);const kn={hash:"svelte-givlj7",code:`
31
- /* アイコン内部のSVG */.nostr-icon.svelte-givlj7 {margin:auto;display:flex;align-items:center;justify-content:center;}.st0.svelte-givlj7 {fill:none;}.st1.svelte-givlj7 {fill:var(--bg-color);}.st2.svelte-givlj7 {fill:var(--nostr-color);}`};function ar(t,e){Bt(e,!0),fe(t,kn);let r=ht(e,"size",7,28);var n=En();return le(()=>Tt(n,"style",`enable-background:new 0 0 256 256; width: ${r()??""}px; height: ${r()??""}px;`)),rt(t,n),Yt({get size(){return r()},set size(o=28){r(o),Z()}})}ve(ar,{size:{}},[],[],!0);const Tn=(t,e)=>{Dt(e,!0)};var Sn=kt('<span part="text" class="svelte-1h3gn4x">Nostr</span>'),Cn=kt("<!> <!>",1),Nn=kt('<button part="button" title="Share on Nostr" class="svelte-1h3gn4x"><!></button> <!>',1);const zn={hash:"svelte-1h3gn4x",code:`:host {font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
32
- Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;display:flex;justify-content:center;align-items:center;--text-color-main: #2e2e2e;--button1-text-color: #662482;--button1-bg-color: #ececec;--button1-hover-color: #b1b1b1;--button1-active-color: #999999;--button1-border-color: #b9b9b9;--button2-text-color: rgb(73, 73, 73);--button2-bg-color: #f3f4f6;--button2-hover-color: #e5e7eb;--nostr-color: #662482;--bg-color: #ffffff;--border-color: #d1d5db;}
33
- @media (prefers-color-scheme: dark) {:host {display:flex;justify-content:center;align-items:center;--text-color-main: #ffffff;--button1-text-color: #eec5ff;--button1-bg-color: #363636;--button1-hover-color: #555555;--button1-active-color: #757575;--button1-border-color: #555555;--button2-text-color: #f1f1f1;--button2-bg-color: #1f1f1f;--button2-hover-color: #3b3b3b;--nostr-color: #eec5ff;--bg-color: #000000;--border-color: #333333;}
34
- }[part="button"].svelte-1h3gn4x {display:flex;align-items:center;justify-content:center;cursor:pointer;gap:0.5em;transition:all 0.1s ease-in-out;border-radius:8px;font-weight:bold;}[part="button"].svelte-1h3gn4x:active {transform:scale(0.98);}[data-nostr-share="default"].svelte-1h3gn4x {padding:6px 16px;background-color:var(--button1-bg-color);color:var(--button2-text-color);border:1px solid var(--button1-border-color);}[data-nostr-share="mini"].svelte-1h3gn4x {padding:2px 6px;background-color:var(--button1-bg-color);color:var(--button2-text-color);border:1px solid var(--button1-border-color);}[data-nostr-share="default"].svelte-1h3gn4x:hover,
35
- [data-nostr-share="mini"].svelte-1h3gn4x:hover {background-color:var(--button1-hover-color);box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}[data-nostr-share="icon"].svelte-1h3gn4x {width:var(--icon-size);height:var(--icon-size);padding:2px;border-radius:50%;background-color:transparent;border:none;}[data-nostr-share="icon"].svelte-1h3gn4x:hover {background-color:var(--button1-hover-color);box-shadow:0 0 6px rgba(0, 0, 0, 0.1);}[part="text"].svelte-1h3gn4x {font-size:medium;}[data-nostr-share="mini"].svelte-1h3gn4x [part="text"]:where(.svelte-1h3gn4x) {font-size:small;}`};function ur(t,e){Bt(e,!0),fe(t,zn);let r=ht(e,"data-text",7),n=ht(e,"data-type",7,"default"),o=ht(e,"icon-size",7,28),l=Rr(!1);const s=()=>{Dt(l,!1)},i=typeof o()=="string"?parseInt(o(),10):o();var u=Nn(),c=Ae(u);c.__click=[Tn,l];var v=$t(c);vn(v,e,"default",{},f=>{var d=Cn(),x=Ae(d),C=Re(()=>n()==="icon"?i:28);ar(x,{get size(){return R(C)}});var S=It(x,2);{var _=m=>{var K=Sn();rt(m,K)};nr(S,m=>{n()!=="icon"&&m(_)})}rt(f,d)}),st(c);var a=It(c,2);{var h=f=>{he(f,{handleClose:s,get text(){return r()}})};nr(a,f=>{R(l)&&f(h)})}return le(()=>Tt(c,"data-nostr-share",n())),rt(t,u),Yt({get"data-text"(){return r()},set"data-text"(f){r(f),Z()},get"data-type"(){return n()},set"data-type"(f="default"){n(f),Z()},get"icon-size"(){return o()},set"icon-size"(f=28){o(f),Z()}})}return Qe(["click"]),customElements.define("nostr-share",ve(ur,{"data-text":{},"data-type":{},"icon-size":{}},["default"],[],!0)),b.Dialog=he,b.NostrShare=ur,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),b}({});
31
+ /* アイコン内部のSVG */.nostr-icon.svelte-givlj7 {margin:auto;display:flex;align-items:center;justify-content:center;}.st0.svelte-givlj7 {fill:none;}.st1.svelte-givlj7 {fill:var(--bg-color);}.st2.svelte-givlj7 {fill:var(--nostr-color);}`};function ar(t,e){Bt(e,!0),fe(t,kn);let r=tt(e,"size",7,28);var n=En();return le(()=>Tt(n,"style",`enable-background:new 0 0 256 256; width: ${r()??""}px; height: ${r()??""}px;`)),nt(t,n),Ut({get size(){return r()},set size(o=28){r(o),V()}})}ve(ar,{size:{}},[],[],!0);const Tn=(t,e)=>{It(e,!0)};var Cn=kt('<span part="text" class="svelte-d3fvt">Nostr</span>'),Sn=kt("<!> <!>",1),Nn=kt('<button part="button" title="Share on Nostr" class="svelte-d3fvt"><!></button> <!>',1);const zn={hash:"svelte-d3fvt",code:`:host {font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
32
+ Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;position:absolute;top:0;left:0;display:flex;justify-content:center;align-items:center;--text-color-main: #2e2e2e;--button1-text-color: #662482;--button1-bg-color: #ececec;--button1-hover-color: #b1b1b1;--button1-active-color: #999999;--button1-border-color: #b9b9b9;--button2-text-color: rgb(73, 73, 73);--button2-bg-color: #f3f4f6;--button2-hover-color: #e5e7eb;--nostr-color: #662482;--bg-color: #ffffff;--border-color: #d1d5db;}
33
+ @media (prefers-color-scheme: dark) {:host {top:0;left:0;position:absolute;display:flex;justify-content:center;align-items:center;--text-color-main: #ffffff;--button1-text-color: #eec5ff;--button1-bg-color: #363636;--button1-hover-color: #555555;--button1-active-color: #757575;--button1-border-color: #555555;--button2-text-color: #f1f1f1;--button2-bg-color: #1f1f1f;--button2-hover-color: #3b3b3b;--nostr-color: #eec5ff;--bg-color: #000000;--border-color: #333333;}
34
+ }[part="button"].svelte-d3fvt {display:flex;align-items:center;justify-content:center;cursor:pointer;gap:0.5em;transition:all 0.1s ease-in-out;border-radius:8px;font-weight:bold;}[part="button"].svelte-d3fvt:active {transform:scale(0.98);}[data-nostr-share="default"].svelte-d3fvt {padding:6px 16px;background-color:var(--button1-bg-color);color:var(--button2-text-color);border:1px solid var(--button1-border-color);}[data-nostr-share="mini"].svelte-d3fvt {padding:2px 6px;background-color:var(--button1-bg-color);color:var(--button2-text-color);border:1px solid var(--button1-border-color);}[data-nostr-share="default"].svelte-d3fvt:hover,
35
+ [data-nostr-share="mini"].svelte-d3fvt:hover {background-color:var(--button1-hover-color);box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}[data-nostr-share="icon"].svelte-d3fvt {width:var(--icon-size);height:var(--icon-size);padding:2px;border-radius:50%;background-color:transparent;border:none;}[data-nostr-share="icon"].svelte-d3fvt:hover {background-color:var(--button1-hover-color);box-shadow:0 0 6px rgba(0, 0, 0, 0.1);}[part="text"].svelte-d3fvt {font-size:medium;}[data-nostr-share="mini"].svelte-d3fvt [part="text"]:where(.svelte-d3fvt) {font-size:small;}`};function ur(t,e){Bt(e,!0),fe(t,zn);let r=tt(e,"data-text",7,""),n=tt(e,"data-tags",7,""),o=tt(e,"data-type",7,"default"),l=tt(e,"icon-size",7,28),s=Rr(!1);const i=()=>{It(s,!1)},u=typeof l()=="string"?parseInt(l(),10):l();var v=Nn(),c=Ae(v);c.__click=[Tn,s];var a=$t(c);vn(a,e,"default",{},f=>{var m=Sn(),C=Ae(m),S=Re(()=>o()==="icon"?u:28);ar(C,{get size(){return R(S)}});var _=Dt(C,2);{var x=j=>{var E=Cn();nt(j,E)};nr(_,j=>{o()!=="icon"&&j(x)})}nt(f,m)}),it(c);var h=Dt(c,2);{var d=f=>{de(f,{handleClose:i,get text(){return r()},get tags(){return n()}})};nr(h,f=>{R(s)&&f(d)})}return le(()=>Tt(c,"data-nostr-share",o())),nt(t,v),Ut({get"data-text"(){return r()},set"data-text"(f=""){r(f),V()},get"data-tags"(){return n()},set"data-tags"(f=""){n(f),V()},get"data-type"(){return o()},set"data-type"(f="default"){o(f),V()},get"icon-size"(){return l()},set"icon-size"(f=28){l(f),V()}})}return Qe(["click"]),customElements.define("nostr-share",ve(ur,{"data-text":{},"data-tags":{},"data-type":{},"icon-size":{}},["default"],[],!0)),b.Dialog=de,b.NostrShare=ur,Object.defineProperty(b,Symbol.toStringTag,{value:"Module"}),b}({});
@@ -1,4 +1,4 @@
1
- (function(g,$){typeof exports=="object"&&typeof module<"u"?$(exports):typeof define=="function"&&define.amd?define(["exports"],$):(g=typeof globalThis<"u"?globalThis:g||self,$(g.NostrShare={}))})(this,function(g){"use strict";var Rn=Object.defineProperty;var cr=g=>{throw TypeError(g)};var Dn=(g,$,k)=>$ in g?Rn(g,$,{enumerable:!0,configurable:!0,writable:!0,value:k}):g[$]=k;var j=(g,$,k)=>Dn(g,typeof $!="symbol"?$+"":$,k),fr=(g,$,k)=>$.has(g)||cr("Cannot "+k);var z=(g,$,k)=>(fr(g,$,"read from private field"),k?k.call(g):$.get(g)),pe=(g,$,k)=>$.has(g)?cr("Cannot add the same private member more than once"):$ instanceof WeakSet?$.add(g):$.set(g,k),ge=(g,$,k,St)=>(fr(g,$,"write to private field"),St?St.call(g,k):$.set(g,k),k);var G,D;const $="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add($);const k=1,St=2,vr=16,hr=8,dr=1,_r=2,be="[",Kt="[!",Wt="]",_t={},pr=Symbol(),gr=["touchstart","touchmove"];function br(t){return gr.includes(t)}const $e=!1;var me=Array.isArray,Jt=Array.from,Ct=Object.keys,Nt=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyDescriptors,mr=Object.getPrototypeOf;function yr(t){for(var e=0;e<t.length;e++)t[e]()}const I=2,ye=4,At=8,Xt=16,F=32,nt=64,Zt=128,ot=256,Ot=512,A=1024,W=2048,pt=4096,P=8192,lt=16384,xr=32768,Qt=65536,wr=1<<19,xe=1<<20,Er=Symbol("$state"),we=Symbol("legacy props"),kr=Symbol("");function Ee(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 zr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ar(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Or(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let ke=!1;function Rt(t,e){var r={f:0,v:t,reactions:null,equals:Ee,version:0};return r}function Rr(t){return Dr(Rt(t))}function te(t,e=!1){const r=Rt(t);return e||(r.equals=Sr),r}function Dr(t){return x!==null&&x.f&I&&(H===null?Ur([t]):H.push(t)),t}function Dt(t,e){return x!==null&&Kr()&&x.f&(I|Xt)&&(H===null||!H.includes(t))&&Or(),Te(t,e)}function Te(t,e){return t.equals(e)||(t.v=e,t.version=Ge(),Se(t,W),p!==null&&p.f&A&&!(p.f&F)&&(T!==null&&T.includes(t)?(U(p,W),Vt(p)):X===null?Gr([t]):X.push(t))),e}function Se(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,o=0;o<n;o++){var l=r[o],s=l.f;s&W||(U(l,e),s&(A|ot)&&(s&I?Se(l,pt):Vt(l)))}}function ee(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let m=!1;function q(t){m=t}let b;function M(t){if(t===null)throw ee(),_t;return b=t}function gt(){return M(B(b))}function st(t){if(m){if(B(b)!==null)throw ee(),_t;b=t}}function Ir(t=1){if(m){for(var e=t,r=b;e--;)r=B(r);b=r}}function re(){for(var t=0,e=b;;){if(e.nodeType===8){var r=e.data;if(r===Wt){if(t===0)return e;t-=1}else(r===be||r===Kt)&&(t+=1)}var n=B(e);e.remove(),e=n}}var Ce,Ne,ze;function ne(){if(Ce===void 0){Ce=window;var t=Element.prototype,e=Node.prototype;Ne=zt(e,"firstChild").get,ze=zt(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 V(t){return Ne.call(t)}function B(t){return ze.call(t)}function $t(t,e){if(!m)return V(t);var r=V(b);if(r===null)r=b.appendChild(bt());else if(e&&r.nodeType!==3){var n=bt();return r==null||r.before(n),M(n),n}return M(r),r}function Ae(t,e){if(!m){var r=V(t);return r instanceof Comment&&r.data===""?B(r):r}return b}function It(t,e=1,r=!1){let n=m?b:t;for(var o;e--;)o=n,n=B(n);if(!m)return n;var l=n==null?void 0:n.nodeType;if(r&&l!==3){var s=bt();return n===null?o==null||o.after(s):n.before(s),M(s),s}return M(n),n}function Oe(t){t.textContent=""}function Re(t){var e=I|W;p===null?e|=ot:p.f|=xe;var r=x!==null&&x.f&I?x:null;const n={children:null,ctx:L,deps:null,equals:Ee,f:e,fn:t,reactions:null,v:null,version:0,parent:r??p};return r!==null&&(r.children??(r.children=[])).push(n),n}function De(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&I?oe(n):Y(n)}}}function Mr(t){for(var e=t.parent;e!==null;){if(!(e.f&I))return e;e=e.parent}return null}function Ie(t){var e,r=p;J(Mr(t));try{De(t),e=Ke(t)}finally{J(r)}return e}function Me(t){var e=Ie(t),r=(et||t.f&ot)&&t.deps!==null?pt:A;U(t,r),t.equals(e)||(t.v=e,t.version=Ge())}function oe(t){De(t),Et(t,0),U(t,lt),t.v=t.children=t.deps=t.ctx=t.reactions=null}function Lr(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function it(t,e,r,n=!0){var o=(t&nt)!==0,l=p,s={ctx:L,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|W,first:null,fn:e,last:null,next:null,parent:o?null:l,prev:null,teardown:null,transitions:null,version:0};if(r){var i=at;try{Ye(!0),qt(s),s.f|=xr}catch(v){throw Y(s),v}finally{Ye(i)}}else e!==null&&Vt(s);var u=r&&s.deps===null&&s.first===null&&s.nodes_start===null&&s.teardown===null&&(s.f&xe)===0;if(!u&&!o&&n&&(l!==null&&Lr(s,l),x!==null&&x.f&I)){var c=x;(c.children??(c.children=[])).push(s)}return s}function jr(t){const e=it(nt,t,!0);return()=>{Y(e)}}function Fr(t){const e=it(nt,t,!0);return(r={})=>new Promise(n=>{r.outro?Mt(e,()=>{Y(e),n(void 0)}):(Y(e),n(void 0))})}function Pr(t){return it(ye,t,!1)}function Hr(t){return it(At,t,!0)}function le(t){return se(t)}function se(t,e=0){return it(At|Xt|e,t,!0)}function mt(t,e=!0){return it(At|F,t,!0,e)}function Le(t){var e=t.teardown;if(e!==null){const r=x;ct(null);try{e.call(null)}finally{ct(r)}}}function je(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)oe(e[r])}}function Fe(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 qr(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&wr)&&t.nodes_start!==null){for(var n=t.nodes_start,o=t.nodes_end;n!==null;){var l=n===o?null:B(n);n.remove(),n=l}r=!0}Fe(t,e&&!r),je(t),Et(t,0),U(t,lt);var s=t.transitions;if(s!==null)for(const u of s)u.stop();Le(t);var i=t.parent;i!==null&&i.first!==null&&Pe(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Pe(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 Mt(t,e){var r=[];ie(t,r,!0),He(r,()=>{Y(t),e&&e()})}function He(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var o of t)o.out(n)}else e()}function ie(t,e,r){if(!(t.f&P)){if(t.f^=P,t.transitions!==null)for(const s of t.transitions)(s.is_global||r)&&e.push(s);for(var n=t.first;n!==null;){var o=n.next,l=(n.f&Qt)!==0||(n.f&F)!==0;ie(n,e,l?r:!1),n=o}}}function Lt(t){qe(t,!0)}function qe(t,e){if(t.f&P){wt(t)&&qt(t),t.f^=P;for(var r=t.first;r!==null;){var n=r.next,o=(r.f&Qt)!==0||(r.f&F)!==0;qe(r,o?e:!1),r=n}if(t.transitions!==null)for(const l of t.transitions)(l.is_global||e)&&l.in()}}let jt=!1,ae=[];function Ve(){jt=!1;const t=ae.slice();ae=[],yr(t)}function Vr(t){jt||(jt=!0,queueMicrotask(Ve)),ae.push(t)}function Br(){jt&&Ve()}const Be=0,Yr=1;let Ft=!1,Pt=Be,yt=!1,xt=null,at=!1;function Ye(t){at=t}let tt=[],ut=0,In=[],x=null;function ct(t){x=t}let p=null;function J(t){p=t}let H=null;function Ur(t){H=t}let T=null,O=0,X=null;function Gr(t){X=t}let Ue=1,et=!1,L=null;function Ge(){return++Ue}function Kr(){return!ke}function wt(t){var s,i;var e=t.f;if(e&W)return!0;if(e&pt){var r=t.deps,n=(e&ot)!==0;if(r!==null){var o;if(e&Ot){for(o=0;o<r.length;o++)((s=r[o]).reactions??(s.reactions=[])).push(t);t.f^=Ot}for(o=0;o<r.length;o++){var l=r[o];if(wt(l)&&Me(l),n&&p!==null&&!et&&!((i=l==null?void 0:l.reactions)!=null&&i.includes(t))&&(l.reactions??(l.reactions=[])).push(t),l.version>t.version)return!0}}(!n||p!==null&&!et)&&U(t,A)}return!1}function Wr(t,e){for(var r=e;r!==null;){if(r.f&Zt)try{r.fn(t);return}catch{r.f^=Zt}r=r.parent}throw Ft=!1,t}function Jr(t){return(t.f&lt)===0&&(t.parent===null||(t.parent.f&Zt)===0)}function Ht(t,e,r,n){if(Ft){if(r===null&&(Ft=!1),Jr(e))throw t;return}r!==null&&(Ft=!0);{Wr(t,e);return}}function Ke(t){var h;var e=T,r=O,n=X,o=x,l=et,s=H,i=L,u=t.f;T=null,O=0,X=null,x=u&(F|nt)?null:t,et=!at&&(u&ot)!==0,H=null,L=t.ctx;try{var c=(0,t.fn)(),v=t.deps;if(T!==null){var a;if(Et(t,O),v!==null&&O>0)for(v.length=O+T.length,a=0;a<T.length;a++)v[O+a]=T[a];else t.deps=v=T;if(!et)for(a=O;a<v.length;a++)((h=v[a]).reactions??(h.reactions=[])).push(t)}else v!==null&&O<v.length&&(Et(t,O),v.length=O);return c}finally{T=e,O=r,X=n,x=o,et=l,H=s,L=i}}function Xr(t,e){let r=e.reactions;if(r!==null){var n=r.indexOf(t);if(n!==-1){var o=r.length-1;o===0?r=e.reactions=null:(r[n]=r[o],r.pop())}}r===null&&e.f&I&&(T===null||!T.includes(e))&&(U(e,pt),e.f&(ot|Ot)||(e.f^=Ot),Et(e,0))}function Et(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Xr(t,r[n])}function qt(t){var e=t.f;if(!(e&lt)){U(t,A);var r=p,n=L;p=t;try{e&Xt?qr(t):Fe(t),je(t),Le(t);var o=Ke(t);t.teardown=typeof o=="function"?o:null,t.version=Ue}catch(l){Ht(l,t,r,n||t.ctx)}finally{p=r}}}function We(){if(ut>1e3){ut=0;try{Cr()}catch(t){if(xt!==null)Ht(t,xt,null);else throw t}}ut++}function Je(t){var e=t.length;if(e!==0){We();var r=at;at=!0;try{for(var n=0;n<e;n++){var o=t[n];o.f&A||(o.f^=A);var l=[];Xe(o,l),Zr(l)}}finally{at=r}}}function Zr(t){var e=t.length;if(e!==0)for(var r=0;r<e;r++){var n=t[r];if(!(n.f&(lt|P)))try{wt(n)&&(qt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Pe(n):n.fn=null))}catch(o){Ht(o,n,null,n.ctx)}}}function Qr(){if(yt=!1,ut>1001)return;const t=tt;tt=[],Je(t),yt||(ut=0,xt=null)}function Vt(t){Pt===Be&&(yt||(yt=!0,queueMicrotask(Qr))),xt=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(nt|F)){if(!(r&A))return;e.f^=A}}tt.push(e)}function Xe(t,e){var r=t.first,n=[];t:for(;r!==null;){var o=r.f,l=(o&F)!==0,s=l&&(o&A)!==0,i=r.next;if(!s&&!(o&P))if(o&At){if(l)r.f^=A;else try{wt(r)&&qt(r)}catch(a){Ht(a,r,null,r.ctx)}var u=r.first;if(u!==null){r=u;continue}}else o&ye&&n.push(r);if(i===null){let a=r.parent;for(;a!==null;){if(t===a)break t;var c=a.next;if(c!==null){r=c;continue t}a=a.parent}}r=i}for(var v=0;v<n.length;v++)u=n[v],e.push(u),Xe(u,e)}function Z(t){var e=Pt,r=tt;try{We();const o=[];Pt=Yr,tt=o,yt=!1,Je(r);var n=t==null?void 0:t();return Br(),(tt.length>0||o.length>0)&&Z(),ut=0,xt=null,n}finally{Pt=e,tt=r}}function R(t){var v;var e=t.f,r=(e&I)!==0;if(r&&e&lt){var n=Ie(t);return oe(t),n}if(x!==null){H!==null&&H.includes(t)&&Ar();var o=x.deps;T===null&&o!==null&&o[O]===t?O++:T===null?T=[t]:T.push(t),X!==null&&p!==null&&p.f&A&&!(p.f&F)&&X.includes(t)&&(U(p,W),Vt(p))}else if(r&&t.deps===null)for(var l=t,s=l.parent,i=l;s!==null;)if(s.f&I){var u=s;i=u,s=u.parent}else{var c=s;(v=c.deriveds)!=null&&v.includes(i)||(c.deriveds??(c.deriveds=[])).push(i);break}return r&&(l=t,wt(l)&&Me(l)),t.v}function tn(t){const e=x;try{return x=null,t()}finally{x=e}}const en=~(W|pt|A);function U(t,e){t.f=t.f&en|e}function Bt(t,e=!1,r){L={p:L,c:null,e:null,m:!1,s:t,x:null,l:null}}function Yt(t){const e=L;if(e!==null){t!==void 0&&(e.x=t);const s=e.e;if(s!==null){var r=p,n=x;e.e=null;try{for(var o=0;o<s.length;o++){var l=s[o];J(l.effect),ct(l.reaction),Pr(l.fn)}}finally{J(r),ct(n)}}L=e.p,e.m=!0}return t||{}}const Ze=new Set,ue=new Set;function Qe(t){for(var e=0;e<t.length;e++)Ze.add(t[e]);for(var r of ue)r(t)}function Ut(t){var _;var e=this,r=e.ownerDocument,n=t.type,o=((_=t.composedPath)==null?void 0:_.call(t))||[],l=o[0]||t.target,s=0,i=t.__root;if(i){var u=o.indexOf(i);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var c=o.indexOf(e);if(c===-1)return;u<=c&&(s=u)}if(l=o[s]||t.target,l!==e){Nt(t,"currentTarget",{configurable:!0,get(){return l||r}});var v=x,a=p;ct(null),J(null);try{for(var h,f=[];l!==null;){var d=l.assignedSlot||l.parentNode||l.host||null;try{var w=l["__"+n];if(w!==void 0&&!l.disabled)if(me(w)){var[C,...S]=w;C.apply(l,[t,...S])}else w.call(l,t)}catch(y){h?f.push(y):h=y}if(t.cancelBubble||d===e||d===null)break;l=d}if(h){for(let y of f)queueMicrotask(()=>{throw y});throw h}}finally{t.__root=e,delete t.currentTarget,ct(v),J(a)}}}function tr(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function ft(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,o,l=!t.startsWith("<!>");return()=>{if(m)return ft(b,null),b;o===void 0&&(o=tr(l?t:"<!>"+t),r||(o=V(o)));var s=n?document.importNode(o,!0):o.cloneNode(!0);if(r){var i=V(s),u=s.lastChild;ft(i,u)}else ft(s,s);return s}}function rn(t,e,r="svg"){var n=!t.startsWith("<!>"),o=`<${r}>${n?t:"<!>"+t}</${r}>`,l;return()=>{if(m)return ft(b,null),b;if(!l){var s=tr(o),i=V(s);l=V(i)}var u=l.cloneNode(!0);return ft(u,u),u}}function rt(t,e){if(m){p.nodes_end=b,gt();return}t!==null&&t.before(e)}function nn(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 er(t,e){return rr(t,e)}function on(t,e){ne(),e.intro=e.intro??!1;const r=e.target,n=m,o=b;try{for(var l=V(r);l&&(l.nodeType!==8||l.data!==be);)l=B(l);if(!l)throw _t;q(!0),M(l),gt();const s=rr(t,{...e,anchor:l});if(b===null||b.nodeType!==8||b.data!==Wt)throw ee(),_t;return q(!1),s}catch(s){if(s===_t)return e.recover===!1&&Nr(),ne(),Oe(r),q(!1),er(t,e);throw s}finally{q(n),M(o)}}const vt=new Map;function rr(t,{target:e,anchor:r,props:n={},events:o,context:l,intro:s=!0}){ne();var i=new Set,u=a=>{for(var h=0;h<a.length;h++){var f=a[h];if(!i.has(f)){i.add(f);var d=br(f);e.addEventListener(f,Ut,{passive:d});var w=vt.get(f);w===void 0?(document.addEventListener(f,Ut,{passive:d}),vt.set(f,1)):vt.set(f,w+1)}}};u(Jt(Ze)),ue.add(u);var c=void 0,v=Fr(()=>{var a=r??e.appendChild(bt());return mt(()=>{if(l){Bt({});var h=L;h.c=l}o&&(n.$$events=o),m&&ft(a,null),c=t(a,n)||{},m&&(p.nodes_end=b),l&&Yt()}),()=>{var d;for(var h of i){e.removeEventListener(h,Ut);var f=vt.get(h);--f===0?(document.removeEventListener(h,Ut),vt.delete(h)):vt.set(h,f)}ue.delete(u),a!==r&&((d=a.parentNode)==null||d.removeChild(a))}});return ce.set(c,v),c}let ce=new WeakMap;function ln(t,e){const r=ce.get(t);return r?(ce.delete(t),r(e)):Promise.resolve()}function nr(t,e,r=!1){m&&gt();var n=t,o=null,l=null,s=pr,i=r?Qt:0,u=!1;const c=(a,h=!0)=>{u=!0,v(h,a)},v=(a,h)=>{if(s===(s=a))return;let f=!1;if(m){const d=n.data===Kt;!!s===d&&(n=re(),M(n),q(!1),f=!0)}s?(o?Lt(o):h&&(o=mt(()=>h(n))),l&&Mt(l,()=>{l=null})):(l?Lt(l):h&&(l=mt(()=>h(n))),o&&Mt(o,()=>{o=null})),f&&q(!0)};se(()=>{u=!1,e(c),u||v(null,null)},i),m&&(n=b)}function sn(t,e){return e}function an(t,e,r,n){for(var o=[],l=e.length,s=0;s<l;s++)ie(e[s].e,o,!0);var i=l>0&&o.length===0&&r!==null;if(i){var u=r.parentNode;Oe(u),u.append(r),n.clear(),Q(t,e[0].prev,e[l-1].next)}He(o,()=>{for(var c=0;c<l;c++){var v=e[c];i||(n.delete(v.k),Q(t,v.prev,v.next)),Y(v.e,!i)}})}function un(t,e,r,n,o,l=null){var s=t,i={flags:e,items:new Map,first:null};{var u=t;s=m?M(V(u)):u.appendChild(bt())}m&&gt();var c=null,v=!1;se(()=>{var a=r(),h=me(a)?a:a==null?[]:Jt(a),f=h.length;if(v&&f===0)return;v=f===0;let d=!1;if(m){var w=s.data===Kt;w!==(f===0)&&(s=re(),M(s),q(!1),d=!0)}if(m){for(var C=null,S,_=0;_<f;_++){if(b.nodeType===8&&b.data===Wt){s=b,d=!0,q(!1);break}var y=h[_],K=n(y,_);S=or(b,i,C,null,y,K,_,o,e),i.items.set(K,S),C=S}f>0&&M(re())}if(!m){var E=x;cn(h,i,s,o,e,(E.f&P)!==0,n)}l!==null&&(f===0?c?Lt(c):c=mt(()=>l(s)):c!==null&&Mt(c,()=>{c=null})),d&&q(!0)}),m&&(s=b)}function cn(t,e,r,n,o,l,s,i){var u=t.length,c=e.items,v=e.first,a=v,h,f=null,d=[],w=[],C,S,_,y;for(y=0;y<u;y+=1){if(C=t[y],S=s(C,y),_=c.get(S),_===void 0){var K=a?a.e.nodes_start:r;f=or(K,e,f,f===null?e.first:f.next,C,S,y,n,o),c.set(S,f),d=[],w=[],a=f.next;continue}if(fn(_,C,y),_.e.f&P&&Lt(_.e),_!==a){if(h!==void 0&&h.has(_)){if(d.length<w.length){var E=w[0],N;f=E.prev;var dt=d[0],de=d[d.length-1];for(N=0;N<d.length;N+=1)lr(d[N],E,r);for(N=0;N<w.length;N+=1)h.delete(w[N]);Q(e,dt.prev,de.next),Q(e,f,dt),Q(e,de,E),a=E,f=de,y-=1,d=[],w=[]}else h.delete(_),lr(_,a,r),Q(e,_.prev,_.next),Q(e,_,f===null?e.first:f.next),Q(e,f,_),f=_;continue}for(d=[],w=[];a!==null&&a.k!==S;)(l||!(a.e.f&P))&&(h??(h=new Set)).add(a),w.push(a),a=a.next;if(a===null)continue;_=a}d.push(_),f=_,a=_.next}if(a!==null||h!==void 0){for(var _e=h===void 0?[]:Jt(h);a!==null;)(l||!(a.e.f&P))&&_e.push(a),a=a.next;var An=_e.length;if(An>0){var On=u===0?r:null;an(e,_e,On,c)}}p.first=e.first&&e.first.e,p.last=f&&f.e}function fn(t,e,r,n){Te(t.v,e),t.i=r}function or(t,e,r,n,o,l,s,i,u,c){var v=(u&k)!==0,a=(u&vr)===0,h=v?a?te(o):Rt(o):o,f=u&St?Rt(s):s,d={i:f,v:h,k:l,a:null,e:null,prev:r,next:n};try{return d.e=mt(()=>i(t,h,f),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 lr(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,o=e?e.e.nodes_start:r,l=t.e.nodes_start;l!==n;){var s=B(l);o.before(l),l=s}}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 vn(t,e,r,n,o){var i;m&&gt();var l=(i=e.$$slots)==null?void 0:i[r],s=!1;l===!0&&(l=e.children,s=!0),l===void 0?o!==null&&o(t):l(t,s?()=>n:n)}function fe(t,e){Vr(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const o=document.createElement("style");o.id=e.hash,o.textContent=e.code,n.appendChild(o)}})}function Tt(t,e,r,n){var o=t.__attributes??(t.__attributes={});m&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||o[e]!==(o[e]=r)&&(e==="style"&&"__styles"in t&&(t.__styles={}),e==="loading"&&(t[kr]=r),r==null?t.removeAttribute(e):typeof r!="string"&&hn(t).includes(e)?t[e]=r:t.setAttribute(e,r))}var sr=new Map;function hn(t){var e=sr.get(t.nodeName);if(e)return e;sr.set(t.nodeName,e=[]);for(var r,n=t,o=Element.prototype;o!==n;){r=$r(n);for(var l in r)r[l].set&&e.push(l);n=mr(n)}return e}function dn(t){for(var e=p,r=p;e!==null&&!(e.f&(F|nt));)e=e.parent;try{return J(e),t()}finally{J(r)}}function ht(t,e,r,n){var K;var o=!ke,l=(r&hr)!==0,s=!1,i;i=t[e];var u=Er in t||we in t,c=((K=zt(t,e))==null?void 0:K.set)??(u&&l&&e in t?E=>t[e]=E:void 0),v=n,a=!0,h=!1,f=()=>(h=!0,a&&(a=!1,v=n),v);i===void 0&&n!==void 0&&(c&&o&&zr(),i=f(),c&&c(i));var d;if(d=()=>{var E=t[e];return E===void 0?f():(a=!0,h=!1,E)},c){var w=t.$$legacy;return function(E,N){return arguments.length>0?((!N||w||s)&&c(N?d():E),E):d()}}var C=!1,S=!1,_=te(i),y=dn(()=>Re(()=>{var E=d(),N=R(_);return C?(C=!1,S=!0,N):(S=!1,_.v=E)}));return function(E,N){if(arguments.length>0){const dt=N?R(y):E;return y.equals(dt)||(C=!0,Dt(_,dt),h&&v!==void 0&&(v=dt),tn(()=>R(y))),E}return R(y)}}function _n(t){return new pn(t)}class pn{constructor(e){pe(this,G);pe(this,D);var l;var r=new Map,n=(s,i)=>{var u=te(i);return r.set(s,u),u};const o=new Proxy({...e.props||{},$$events:{}},{get(s,i){return R(r.get(i)??n(i,Reflect.get(s,i)))},has(s,i){return i===we?!0:(R(r.get(i)??n(i,Reflect.get(s,i))),Reflect.has(s,i))},set(s,i,u){return Dt(r.get(i)??n(i,u),u),Reflect.set(s,i,u)}});ge(this,D,(e.hydrate?on:er)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((l=e==null?void 0:e.props)!=null&&l.$$host)||e.sync===!1)&&Z(),ge(this,G,o.$$events);for(const s of Object.keys(z(this,D)))s==="$set"||s==="$destroy"||s==="$on"||Nt(this,s,{get(){return z(this,D)[s]},set(i){z(this,D)[s]=i},enumerable:!0});z(this,D).$set=s=>{Object.assign(o,s)},z(this,D).$destroy=()=>{ln(z(this,D))}}$set(e){z(this,D).$set(e)}$on(e,r){z(this,G)[e]=z(this,G)[e]||[];const n=(...o)=>r.call(this,...o);return z(this,G)[e].push(n),()=>{z(this,G)[e]=z(this,G)[e].filter(o=>o!==n)}}$destroy(){z(this,D).$destroy()}}G=new WeakMap,D=new WeakMap;let ir;typeof HTMLElement=="function"&&(ir=class extends HTMLElement{constructor(e,r,n){super();j(this,"$$ctor");j(this,"$$s");j(this,"$$c");j(this,"$$cn",!1);j(this,"$$d",{});j(this,"$$r",!1);j(this,"$$p_d",{});j(this,"$$l",{});j(this,"$$l_u",new Map);j(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 o=this.$$c.$on(e,r);this.$$l_u.set(r,o)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const o=this.$$l_u.get(r);o&&(o(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(o){return l=>{const s=document.createElement("slot");o!=="default"&&(s.name=o),rt(l,s)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=gn(this);for(const o of this.$$s)o in n&&(o==="default"&&!this.$$d.children?(this.$$d.children=e(o),r.default=!0):r[o]=e(o));for(const o of this.attributes){const l=this.$$g_p(o.name);l in this.$$d||(this.$$d[l]=Gt(l,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=_n({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=jr(()=>{Hr(()=>{var o;this.$$r=!0;for(const l of Ct(this.$$c)){if(!((o=this.$$p_d[l])!=null&&o.reflect))continue;this.$$d[l]=this.$$c[l];const s=Gt(l,this.$$d[l],this.$$p_d,"toAttribute");s==null?this.removeAttribute(this.$$p_d[l].attribute||l):this.setAttribute(this.$$p_d[l].attribute||l,s)}this.$$r=!1})});for(const o in this.$$l)for(const l of this.$$l[o]){const s=this.$$c.$on(o,l);this.$$l_u.set(l,s)}this.$$l={}}}attributeChangedCallback(e,r,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Gt(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$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 Ct(this.$$p_d).find(r=>this.$$p_d[r].attribute===e||!this.$$p_d[r].attribute&&r.toLowerCase()===e)||e}});function Gt(t,e,r,n){var l;const o=(l=r[t])==null?void 0:l.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(o){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(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function gn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function ve(t,e,r,n,o,l){let s=class extends ir{constructor(){super(t,r,o),this.$$p_d=e}static get observedAttributes(){return Ct(e).map(i=>(e[i].attribute||i).toLowerCase())}};return Ct(e).forEach(i=>{Nt(s.prototype,i,{get(){return this.$$c&&i in this.$$c?this.$$c[i]:this.$$d[i]},set(u){var a;u=Gt(i,u,e),this.$$d[i]=u;var c=this.$$c;if(c){var v=(a=zt(c,i))==null?void 0:a.get;v?c[i]=u:c.$set({[i]:u})}}})}),n.forEach(i=>{Nt(s.prototype,i,{get(){var u;return(u=this.$$c)==null?void 0:u[i]}})}),t.element=s,s}const bn=[{name:"nokakoi",url:"https://nokakoi.com/app/?text={text}",icon:"https://nokakoi.com/favicon.ico"},{name:"Nos Haiku",url:"https://nos-haiku.vercel.app/antenna?content={text}",icon:"https://nos-haiku.vercel.app/favicon.png"},{name:"nostter",url:"https://nostter.app/post?content={text}",icon:"https://nostter.app/favicon.ico"},{name:"Lumilumi",url:"https://lumilumi.app/post?text={text}",icon:"https://lumilumi.app/favicon.ico"}];var $n=t=>t.stopPropagation(),mn=(t,e,r)=>e(R(r).url),yn=kt('<button class="item svelte-1sy5hzc"><img> <span class="item-name"> </span></button>'),xn=kt('<div class="overlay svelte-1sy5hzc"><div class="inner svelte-1sy5hzc"><button class="close-button svelte-1sy5hzc" aria-label="Close">✖</button> <h2 class="title svelte-1sy5hzc">Select Share Client</h2> <div class="list svelte-1sy5hzc"></div> <div class="footer svelte-1sy5hzc"><a target="_blank" referrerpolicy="no-referrer" href="https://tsukemonogit.github.io/nostr-share-component/" class="svelte-1sy5hzc">nostr-share-component</a></div></div></div>');const wn={hash:"svelte-1sy5hzc",code:`
1
+ (function(g,$){typeof exports=="object"&&typeof module<"u"?$(exports):typeof define=="function"&&define.amd?define(["exports"],$):(g=typeof globalThis<"u"?globalThis:g||self,$(g.NostrShare={}))})(this,function(g){"use strict";var Rn=Object.defineProperty;var cr=g=>{throw TypeError(g)};var In=(g,$,k)=>$ in g?Rn(g,$,{enumerable:!0,configurable:!0,writable:!0,value:k}):g[$]=k;var F=(g,$,k)=>In(g,typeof $!="symbol"?$+"":$,k),fr=(g,$,k)=>$.has(g)||cr("Cannot "+k);var z=(g,$,k)=>(fr(g,$,"read from private field"),k?k.call(g):$.get(g)),pe=(g,$,k)=>$.has(g)?cr("Cannot add the same private member more than once"):$ instanceof WeakSet?$.add(g):$.set(g,k),ge=(g,$,k,Ct)=>(fr(g,$,"write to private field"),Ct?Ct.call(g,k):$.set(g,k),k);var W,I;const $="5";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add($);const k=1,Ct=2,vr=16,dr=8,hr=1,_r=2,be="[",Kt="[!",Wt="]",_t={},pr=Symbol(),gr=["touchstart","touchmove"];function br(t){return gr.includes(t)}const $e=!1;var me=Array.isArray,Jt=Array.from,St=Object.keys,Nt=Object.defineProperty,zt=Object.getOwnPropertyDescriptor,$r=Object.getOwnPropertyDescriptors,mr=Object.getPrototypeOf;function yr(t){for(var e=0;e<t.length;e++)t[e]()}const D=2,ye=4,At=8,Xt=16,P=32,ot=64,Zt=128,st=256,Ot=512,A=1024,J=2048,pt=4096,H=8192,lt=16384,xr=32768,Qt=65536,wr=1<<19,xe=1<<20,Er=Symbol("$state"),we=Symbol("legacy props"),kr=Symbol("");function Ee(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 Cr(t){return!Tr(t,this.v)}function Sr(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function Nr(){throw new Error("https://svelte.dev/e/hydration_failed")}function zr(t){throw new Error("https://svelte.dev/e/props_invalid_value")}function Ar(){throw new Error("https://svelte.dev/e/state_unsafe_local_read")}function Or(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}let ke=!1;function Rt(t,e){var r={f:0,v:t,reactions:null,equals:Ee,version:0};return r}function Rr(t){return Ir(Rt(t))}function te(t,e=!1){const r=Rt(t);return e||(r.equals=Cr),r}function Ir(t){return x!==null&&x.f&D&&(q===null?Yr([t]):q.push(t)),t}function It(t,e){return x!==null&&Kr()&&x.f&(D|Xt)&&(q===null||!q.includes(t))&&Or(),Te(t,e)}function Te(t,e){return t.equals(e)||(t.v=e,t.version=Ge(),Ce(t,J),p!==null&&p.f&A&&!(p.f&P)&&(T!==null&&T.includes(t)?(K(p,J),Vt(p)):Z===null?Gr([t]):Z.push(t))),e}function Ce(t,e){var r=t.reactions;if(r!==null)for(var n=r.length,o=0;o<n;o++){var s=r[o],l=s.f;l&J||(K(s,e),l&(A|st)&&(l&D?Ce(s,pt):Vt(s)))}}function ee(t){console.warn("https://svelte.dev/e/hydration_mismatch")}let m=!1;function B(t){m=t}let b;function M(t){if(t===null)throw ee(),_t;return b=t}function gt(){return M(Y(b))}function it(t){if(m){if(Y(b)!==null)throw ee(),_t;b=t}}function Dr(t=1){if(m){for(var e=t,r=b;e--;)r=Y(r);b=r}}function re(){for(var t=0,e=b;;){if(e.nodeType===8){var r=e.data;if(r===Wt){if(t===0)return e;t-=1}else(r===be||r===Kt)&&(t+=1)}var n=Y(e);e.remove(),e=n}}var Se,Ne,ze;function ne(){if(Se===void 0){Se=window;var t=Element.prototype,e=Node.prototype;Ne=zt(e,"firstChild").get,ze=zt(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 U(t){return Ne.call(t)}function Y(t){return ze.call(t)}function $t(t,e){if(!m)return U(t);var r=U(b);if(r===null)r=b.appendChild(bt());else if(e&&r.nodeType!==3){var n=bt();return r==null||r.before(n),M(n),n}return M(r),r}function Ae(t,e){if(!m){var r=U(t);return r instanceof Comment&&r.data===""?Y(r):r}return b}function Dt(t,e=1,r=!1){let n=m?b:t;for(var o;e--;)o=n,n=Y(n);if(!m)return n;var s=n==null?void 0:n.nodeType;if(r&&s!==3){var l=bt();return n===null?o==null||o.after(l):n.before(l),M(l),l}return M(n),n}function Oe(t){t.textContent=""}function Re(t){var e=D|J;p===null?e|=st:p.f|=xe;var r=x!==null&&x.f&D?x:null;const n={children:null,ctx:L,deps:null,equals:Ee,f:e,fn:t,reactions:null,v:null,version:0,parent:r??p};return r!==null&&(r.children??(r.children=[])).push(n),n}function Ie(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?oe(n):G(n)}}}function Mr(t){for(var e=t.parent;e!==null;){if(!(e.f&D))return e;e=e.parent}return null}function De(t){var e,r=p;X(Mr(t));try{Ie(t),e=Ke(t)}finally{X(r)}return e}function Me(t){var e=De(t),r=(rt||t.f&st)&&t.deps!==null?pt:A;K(t,r),t.equals(e)||(t.v=e,t.version=Ge())}function oe(t){Ie(t),Et(t,0),K(t,lt),t.v=t.children=t.deps=t.ctx=t.reactions=null}function Lr(t,e){var r=e.last;r===null?e.last=e.first=t:(r.next=t,t.prev=r,e.last=t)}function at(t,e,r,n=!0){var o=(t&ot)!==0,s=p,l={ctx:L,deps:null,deriveds:null,nodes_start:null,nodes_end:null,f:t|J,first:null,fn:e,last:null,next:null,parent:o?null:s,prev:null,teardown:null,transitions:null,version:0};if(r){var i=ut;try{Ue(!0),qt(l),l.f|=xr}catch(c){throw G(l),c}finally{Ue(i)}}else e!==null&&Vt(l);var u=r&&l.deps===null&&l.first===null&&l.nodes_start===null&&l.teardown===null&&(l.f&xe)===0;if(!u&&!o&&n&&(s!==null&&Lr(l,s),x!==null&&x.f&D)){var v=x;(v.children??(v.children=[])).push(l)}return l}function jr(t){const e=at(ot,t,!0);return()=>{G(e)}}function Fr(t){const e=at(ot,t,!0);return(r={})=>new Promise(n=>{r.outro?Mt(e,()=>{G(e),n(void 0)}):(G(e),n(void 0))})}function Pr(t){return at(ye,t,!1)}function Hr(t){return at(At,t,!0)}function se(t){return le(t)}function le(t,e=0){return at(At|Xt|e,t,!0)}function mt(t,e=!0){return at(At|P,t,!0,e)}function Le(t){var e=t.teardown;if(e!==null){const r=x;ft(null);try{e.call(null)}finally{ft(r)}}}function je(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var r=0;r<e.length;r+=1)oe(e[r])}}function Fe(t,e=!1){var r=t.first;for(t.first=t.last=null;r!==null;){var n=r.next;G(r,e),r=n}}function qr(t){for(var e=t.first;e!==null;){var r=e.next;e.f&P||G(e),e=r}}function G(t,e=!0){var r=!1;if((e||t.f&wr)&&t.nodes_start!==null){for(var n=t.nodes_start,o=t.nodes_end;n!==null;){var s=n===o?null:Y(n);n.remove(),n=s}r=!0}Fe(t,e&&!r),je(t),Et(t,0),K(t,lt);var l=t.transitions;if(l!==null)for(const u of l)u.stop();Le(t);var i=t.parent;i!==null&&i.first!==null&&Pe(t),t.next=t.prev=t.teardown=t.ctx=t.deps=t.fn=t.nodes_start=t.nodes_end=null}function Pe(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 Mt(t,e){var r=[];ie(t,r,!0),He(r,()=>{G(t),e&&e()})}function He(t,e){var r=t.length;if(r>0){var n=()=>--r||e();for(var o of t)o.out(n)}else e()}function ie(t,e,r){if(!(t.f&H)){if(t.f^=H,t.transitions!==null)for(const l of t.transitions)(l.is_global||r)&&e.push(l);for(var n=t.first;n!==null;){var o=n.next,s=(n.f&Qt)!==0||(n.f&P)!==0;ie(n,e,s?r:!1),n=o}}}function Lt(t){qe(t,!0)}function qe(t,e){if(t.f&H){wt(t)&&qt(t),t.f^=H;for(var r=t.first;r!==null;){var n=r.next,o=(r.f&Qt)!==0||(r.f&P)!==0;qe(r,o?e:!1),r=n}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||e)&&s.in()}}let jt=!1,ae=[];function Ve(){jt=!1;const t=ae.slice();ae=[],yr(t)}function Vr(t){jt||(jt=!0,queueMicrotask(Ve)),ae.push(t)}function Br(){jt&&Ve()}const Be=0,Ur=1;let Ft=!1,Pt=Be,yt=!1,xt=null,ut=!1;function Ue(t){ut=t}let et=[],ct=0,Dn=[],x=null;function ft(t){x=t}let p=null;function X(t){p=t}let q=null;function Yr(t){q=t}let T=null,O=0,Z=null;function Gr(t){Z=t}let Ye=1,rt=!1,L=null;function Ge(){return++Ye}function Kr(){return!ke}function wt(t){var l,i;var e=t.f;if(e&J)return!0;if(e&pt){var r=t.deps,n=(e&st)!==0;if(r!==null){var o;if(e&Ot){for(o=0;o<r.length;o++)((l=r[o]).reactions??(l.reactions=[])).push(t);t.f^=Ot}for(o=0;o<r.length;o++){var s=r[o];if(wt(s)&&Me(s),n&&p!==null&&!rt&&!((i=s==null?void 0:s.reactions)!=null&&i.includes(t))&&(s.reactions??(s.reactions=[])).push(t),s.version>t.version)return!0}}(!n||p!==null&&!rt)&&K(t,A)}return!1}function Wr(t,e){for(var r=e;r!==null;){if(r.f&Zt)try{r.fn(t);return}catch{r.f^=Zt}r=r.parent}throw Ft=!1,t}function Jr(t){return(t.f&lt)===0&&(t.parent===null||(t.parent.f&Zt)===0)}function Ht(t,e,r,n){if(Ft){if(r===null&&(Ft=!1),Jr(e))throw t;return}r!==null&&(Ft=!0);{Wr(t,e);return}}function Ke(t){var h;var e=T,r=O,n=Z,o=x,s=rt,l=q,i=L,u=t.f;T=null,O=0,Z=null,x=u&(P|ot)?null:t,rt=!ut&&(u&st)!==0,q=null,L=t.ctx;try{var v=(0,t.fn)(),c=t.deps;if(T!==null){var a;if(Et(t,O),c!==null&&O>0)for(c.length=O+T.length,a=0;a<T.length;a++)c[O+a]=T[a];else t.deps=c=T;if(!rt)for(a=O;a<c.length;a++)((h=c[a]).reactions??(h.reactions=[])).push(t)}else c!==null&&O<c.length&&(Et(t,O),c.length=O);return v}finally{T=e,O=r,Z=n,x=o,rt=s,q=l,L=i}}function Xr(t,e){let r=e.reactions;if(r!==null){var n=r.indexOf(t);if(n!==-1){var o=r.length-1;o===0?r=e.reactions=null:(r[n]=r[o],r.pop())}}r===null&&e.f&D&&(T===null||!T.includes(e))&&(K(e,pt),e.f&(st|Ot)||(e.f^=Ot),Et(e,0))}function Et(t,e){var r=t.deps;if(r!==null)for(var n=e;n<r.length;n++)Xr(t,r[n])}function qt(t){var e=t.f;if(!(e&lt)){K(t,A);var r=p,n=L;p=t;try{e&Xt?qr(t):Fe(t),je(t),Le(t);var o=Ke(t);t.teardown=typeof o=="function"?o:null,t.version=Ye}catch(s){Ht(s,t,r,n||t.ctx)}finally{p=r}}}function We(){if(ct>1e3){ct=0;try{Sr()}catch(t){if(xt!==null)Ht(t,xt,null);else throw t}}ct++}function Je(t){var e=t.length;if(e!==0){We();var r=ut;ut=!0;try{for(var n=0;n<e;n++){var o=t[n];o.f&A||(o.f^=A);var s=[];Xe(o,s),Zr(s)}}finally{ut=r}}}function Zr(t){var e=t.length;if(e!==0)for(var r=0;r<e;r++){var n=t[r];if(!(n.f&(lt|H)))try{wt(n)&&(qt(n),n.deps===null&&n.first===null&&n.nodes_start===null&&(n.teardown===null?Pe(n):n.fn=null))}catch(o){Ht(o,n,null,n.ctx)}}}function Qr(){if(yt=!1,ct>1001)return;const t=et;et=[],Je(t),yt||(ct=0,xt=null)}function Vt(t){Pt===Be&&(yt||(yt=!0,queueMicrotask(Qr))),xt=t;for(var e=t;e.parent!==null;){e=e.parent;var r=e.f;if(r&(ot|P)){if(!(r&A))return;e.f^=A}}et.push(e)}function Xe(t,e){var r=t.first,n=[];t:for(;r!==null;){var o=r.f,s=(o&P)!==0,l=s&&(o&A)!==0,i=r.next;if(!l&&!(o&H))if(o&At){if(s)r.f^=A;else try{wt(r)&&qt(r)}catch(a){Ht(a,r,null,r.ctx)}var u=r.first;if(u!==null){r=u;continue}}else o&ye&&n.push(r);if(i===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=i}for(var c=0;c<n.length;c++)u=n[c],e.push(u),Xe(u,e)}function V(t){var e=Pt,r=et;try{We();const o=[];Pt=Ur,et=o,yt=!1,Je(r);var n=t==null?void 0:t();return Br(),(et.length>0||o.length>0)&&V(),ct=0,xt=null,n}finally{Pt=e,et=r}}function R(t){var c;var e=t.f,r=(e&D)!==0;if(r&&e&lt){var n=De(t);return oe(t),n}if(x!==null){q!==null&&q.includes(t)&&Ar();var o=x.deps;T===null&&o!==null&&o[O]===t?O++:T===null?T=[t]:T.push(t),Z!==null&&p!==null&&p.f&A&&!(p.f&P)&&Z.includes(t)&&(K(p,J),Vt(p))}else if(r&&t.deps===null)for(var s=t,l=s.parent,i=s;l!==null;)if(l.f&D){var u=l;i=u,l=u.parent}else{var v=l;(c=v.deriveds)!=null&&c.includes(i)||(v.deriveds??(v.deriveds=[])).push(i);break}return r&&(s=t,wt(s)&&Me(s)),t.v}function tn(t){const e=x;try{return x=null,t()}finally{x=e}}const en=~(J|pt|A);function K(t,e){t.f=t.f&en|e}function Bt(t,e=!1,r){L={p:L,c:null,e:null,m:!1,s:t,x:null,l:null}}function Ut(t){const e=L;if(e!==null){t!==void 0&&(e.x=t);const l=e.e;if(l!==null){var r=p,n=x;e.e=null;try{for(var o=0;o<l.length;o++){var s=l[o];X(s.effect),ft(s.reaction),Pr(s.fn)}}finally{X(r),ft(n)}}L=e.p,e.m=!0}return t||{}}const Ze=new Set,ue=new Set;function Qe(t){for(var e=0;e<t.length;e++)Ze.add(t[e]);for(var r of ue)r(t)}function Yt(t){var _;var e=this,r=e.ownerDocument,n=t.type,o=((_=t.composedPath)==null?void 0:_.call(t))||[],s=o[0]||t.target,l=0,i=t.__root;if(i){var u=o.indexOf(i);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var v=o.indexOf(e);if(v===-1)return;u<=v&&(l=u)}if(s=o[l]||t.target,s!==e){Nt(t,"currentTarget",{configurable:!0,get(){return s||r}});var c=x,a=p;ft(null),X(null);try{for(var h,d=[];s!==null;){var f=s.assignedSlot||s.parentNode||s.host||null;try{var y=s["__"+n];if(y!==void 0&&!s.disabled)if(me(y)){var[C,...S]=y;C.apply(s,[t,...S])}else y.call(s,t)}catch(w){h?d.push(w):h=w}if(t.cancelBubble||f===e||f===null)break;s=f}if(h){for(let w of d)queueMicrotask(()=>{throw w});throw h}}finally{t.__root=e,delete t.currentTarget,ft(c),X(a)}}}function tr(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function vt(t,e){var r=p;r.nodes_start===null&&(r.nodes_start=t,r.nodes_end=e)}function kt(t,e){var r=(e&hr)!==0,n=(e&_r)!==0,o,s=!t.startsWith("<!>");return()=>{if(m)return vt(b,null),b;o===void 0&&(o=tr(s?t:"<!>"+t),r||(o=U(o)));var l=n?document.importNode(o,!0):o.cloneNode(!0);if(r){var i=U(l),u=l.lastChild;vt(i,u)}else vt(l,l);return l}}function rn(t,e,r="svg"){var n=!t.startsWith("<!>"),o=`<${r}>${n?t:"<!>"+t}</${r}>`,s;return()=>{if(m)return vt(b,null),b;if(!s){var l=tr(o),i=U(l);s=U(i)}var u=s.cloneNode(!0);return vt(u,u),u}}function nt(t,e){if(m){p.nodes_end=b,gt();return}t!==null&&t.before(e)}function nn(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 er(t,e){return rr(t,e)}function on(t,e){ne(),e.intro=e.intro??!1;const r=e.target,n=m,o=b;try{for(var s=U(r);s&&(s.nodeType!==8||s.data!==be);)s=Y(s);if(!s)throw _t;B(!0),M(s),gt();const l=rr(t,{...e,anchor:s});if(b===null||b.nodeType!==8||b.data!==Wt)throw ee(),_t;return B(!1),l}catch(l){if(l===_t)return e.recover===!1&&Nr(),ne(),Oe(r),B(!1),er(t,e);throw l}finally{B(n),M(o)}}const dt=new Map;function rr(t,{target:e,anchor:r,props:n={},events:o,context:s,intro:l=!0}){ne();var i=new Set,u=a=>{for(var h=0;h<a.length;h++){var d=a[h];if(!i.has(d)){i.add(d);var f=br(d);e.addEventListener(d,Yt,{passive:f});var y=dt.get(d);y===void 0?(document.addEventListener(d,Yt,{passive:f}),dt.set(d,1)):dt.set(d,y+1)}}};u(Jt(Ze)),ue.add(u);var v=void 0,c=Fr(()=>{var a=r??e.appendChild(bt());return mt(()=>{if(s){Bt({});var h=L;h.c=s}o&&(n.$$events=o),m&&vt(a,null),v=t(a,n)||{},m&&(p.nodes_end=b),s&&Ut()}),()=>{var f;for(var h of i){e.removeEventListener(h,Yt);var d=dt.get(h);--d===0?(document.removeEventListener(h,Yt),dt.delete(h)):dt.set(h,d)}ue.delete(u),a!==r&&((f=a.parentNode)==null||f.removeChild(a))}});return ce.set(v,c),v}let ce=new WeakMap;function sn(t,e){const r=ce.get(t);return r?(ce.delete(t),r(e)):Promise.resolve()}function nr(t,e,r=!1){m&&gt();var n=t,o=null,s=null,l=pr,i=r?Qt:0,u=!1;const v=(a,h=!0)=>{u=!0,c(h,a)},c=(a,h)=>{if(l===(l=a))return;let d=!1;if(m){const f=n.data===Kt;!!l===f&&(n=re(),M(n),B(!1),d=!0)}l?(o?Lt(o):h&&(o=mt(()=>h(n))),s&&Mt(s,()=>{s=null})):(s?Lt(s):h&&(s=mt(()=>h(n))),o&&Mt(o,()=>{o=null})),d&&B(!0)};le(()=>{u=!1,e(v),u||c(null,null)},i),m&&(n=b)}function ln(t,e){return e}function an(t,e,r,n){for(var o=[],s=e.length,l=0;l<s;l++)ie(e[l].e,o,!0);var i=s>0&&o.length===0&&r!==null;if(i){var u=r.parentNode;Oe(u),u.append(r),n.clear(),Q(t,e[0].prev,e[s-1].next)}He(o,()=>{for(var v=0;v<s;v++){var c=e[v];i||(n.delete(c.k),Q(t,c.prev,c.next)),G(c.e,!i)}})}function un(t,e,r,n,o,s=null){var l=t,i={flags:e,items:new Map,first:null};{var u=t;l=m?M(U(u)):u.appendChild(bt())}m&&gt();var v=null,c=!1;le(()=>{var a=r(),h=me(a)?a:a==null?[]:Jt(a),d=h.length;if(c&&d===0)return;c=d===0;let f=!1;if(m){var y=l.data===Kt;y!==(d===0)&&(l=re(),M(l),B(!1),f=!0)}if(m){for(var C=null,S,_=0;_<d;_++){if(b.nodeType===8&&b.data===Wt){l=b,f=!0,B(!1);break}var w=h[_],j=n(w,_);S=or(b,i,C,null,w,j,_,o,e),i.items.set(j,S),C=S}d>0&&M(re())}if(!m){var E=x;cn(h,i,l,o,e,(E.f&H)!==0,n)}s!==null&&(d===0?v?Lt(v):v=mt(()=>s(l)):v!==null&&Mt(v,()=>{v=null})),f&&B(!0)}),m&&(l=b)}function cn(t,e,r,n,o,s,l,i){var u=t.length,v=e.items,c=e.first,a=c,h,d=null,f=[],y=[],C,S,_,w;for(w=0;w<u;w+=1){if(C=t[w],S=l(C,w),_=v.get(S),_===void 0){var j=a?a.e.nodes_start:r;d=or(j,e,d,d===null?e.first:d.next,C,S,w,n,o),v.set(S,d),f=[],y=[],a=d.next;continue}if(fn(_,C,w),_.e.f&H&&Lt(_.e),_!==a){if(h!==void 0&&h.has(_)){if(f.length<y.length){var E=y[0],N;d=E.prev;var ht=f[0],he=f[f.length-1];for(N=0;N<f.length;N+=1)sr(f[N],E,r);for(N=0;N<y.length;N+=1)h.delete(y[N]);Q(e,ht.prev,he.next),Q(e,d,ht),Q(e,he,E),a=E,d=he,w-=1,f=[],y=[]}else h.delete(_),sr(_,a,r),Q(e,_.prev,_.next),Q(e,_,d===null?e.first:d.next),Q(e,d,_),d=_;continue}for(f=[],y=[];a!==null&&a.k!==S;)(s||!(a.e.f&H))&&(h??(h=new Set)).add(a),y.push(a),a=a.next;if(a===null)continue;_=a}f.push(_),d=_,a=_.next}if(a!==null||h!==void 0){for(var _e=h===void 0?[]:Jt(h);a!==null;)(s||!(a.e.f&H))&&_e.push(a),a=a.next;var An=_e.length;if(An>0){var On=u===0?r:null;an(e,_e,On,v)}}p.first=e.first&&e.first.e,p.last=d&&d.e}function fn(t,e,r,n){Te(t.v,e),t.i=r}function or(t,e,r,n,o,s,l,i,u,v){var c=(u&k)!==0,a=(u&vr)===0,h=c?a?te(o):Rt(o):o,d=u&Ct?Rt(l):l,f={i:d,v:h,k:s,a:null,e:null,prev:r,next:n};try{return f.e=mt(()=>i(t,h,d),m),f.e.prev=r&&r.e,f.e.next=n&&n.e,r===null?e.first=f:(r.next=f,r.e.next=f.e),n!==null&&(n.prev=f,n.e.prev=f.e),f}finally{}}function sr(t,e,r){for(var n=t.next?t.next.e.nodes_start:r,o=e?e.e.nodes_start:r,s=t.e.nodes_start;s!==n;){var l=Y(s);o.before(s),s=l}}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 vn(t,e,r,n,o){var i;m&&gt();var s=(i=e.$$slots)==null?void 0:i[r],l=!1;s===!0&&(s=e.children,l=!0),s===void 0?o!==null&&o(t):s(t,l?()=>n:n)}function fe(t,e){Vr(()=>{var r=t.getRootNode(),n=r.host?r:r.head??r.ownerDocument.head;if(!n.querySelector("#"+e.hash)){const o=document.createElement("style");o.id=e.hash,o.textContent=e.code,n.appendChild(o)}})}function Tt(t,e,r,n){var o=t.__attributes??(t.__attributes={});m&&(o[e]=t.getAttribute(e),e==="src"||e==="srcset"||e==="href"&&t.nodeName==="LINK")||o[e]!==(o[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 lr=new Map;function dn(t){var e=lr.get(t.nodeName);if(e)return e;lr.set(t.nodeName,e=[]);for(var r,n=t,o=Element.prototype;o!==n;){r=$r(n);for(var s in r)r[s].set&&e.push(s);n=mr(n)}return e}function hn(t){for(var e=p,r=p;e!==null&&!(e.f&(P|ot));)e=e.parent;try{return X(e),t()}finally{X(r)}}function tt(t,e,r,n){var j;var o=!ke,s=(r&dr)!==0,l=!1,i;i=t[e];var u=Er in t||we in t,v=((j=zt(t,e))==null?void 0:j.set)??(u&&s&&e in t?E=>t[e]=E:void 0),c=n,a=!0,h=!1,d=()=>(h=!0,a&&(a=!1,c=n),c);i===void 0&&n!==void 0&&(v&&o&&zr(),i=d(),v&&v(i));var f;if(f=()=>{var E=t[e];return E===void 0?d():(a=!0,h=!1,E)},v){var y=t.$$legacy;return function(E,N){return arguments.length>0?((!N||y||l)&&v(N?f():E),E):f()}}var C=!1,S=!1,_=te(i),w=hn(()=>Re(()=>{var E=f(),N=R(_);return C?(C=!1,S=!0,N):(S=!1,_.v=E)}));return function(E,N){if(arguments.length>0){const ht=N?R(w):E;return w.equals(ht)||(C=!0,It(_,ht),h&&c!==void 0&&(c=ht),tn(()=>R(w))),E}return R(w)}}function _n(t){return new pn(t)}class pn{constructor(e){pe(this,W);pe(this,I);var s;var r=new Map,n=(l,i)=>{var u=te(i);return r.set(l,u),u};const o=new Proxy({...e.props||{},$$events:{}},{get(l,i){return R(r.get(i)??n(i,Reflect.get(l,i)))},has(l,i){return i===we?!0:(R(r.get(i)??n(i,Reflect.get(l,i))),Reflect.has(l,i))},set(l,i,u){return It(r.get(i)??n(i,u),u),Reflect.set(l,i,u)}});ge(this,I,(e.hydrate?on:er)(e.component,{target:e.target,anchor:e.anchor,props:o,context:e.context,intro:e.intro??!1,recover:e.recover})),(!((s=e==null?void 0:e.props)!=null&&s.$$host)||e.sync===!1)&&V(),ge(this,W,o.$$events);for(const l of Object.keys(z(this,I)))l==="$set"||l==="$destroy"||l==="$on"||Nt(this,l,{get(){return z(this,I)[l]},set(i){z(this,I)[l]=i},enumerable:!0});z(this,I).$set=l=>{Object.assign(o,l)},z(this,I).$destroy=()=>{sn(z(this,I))}}$set(e){z(this,I).$set(e)}$on(e,r){z(this,W)[e]=z(this,W)[e]||[];const n=(...o)=>r.call(this,...o);return z(this,W)[e].push(n),()=>{z(this,W)[e]=z(this,W)[e].filter(o=>o!==n)}}$destroy(){z(this,I).$destroy()}}W=new WeakMap,I=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 o=this.$$c.$on(e,r);this.$$l_u.set(r,o)}super.addEventListener(e,r,n)}removeEventListener(e,r,n){if(super.removeEventListener(e,r,n),this.$$c){const o=this.$$l_u.get(r);o&&(o(),this.$$l_u.delete(r))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let e=function(o){return s=>{const l=document.createElement("slot");o!=="default"&&(l.name=o),nt(s,l)}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const r={},n=gn(this);for(const o of this.$$s)o in n&&(o==="default"&&!this.$$d.children?(this.$$d.children=e(o),r.default=!0):r[o]=e(o));for(const o of this.attributes){const s=this.$$g_p(o.name);s in this.$$d||(this.$$d[s]=Gt(s,o.value,this.$$p_d,"toProp"))}for(const o in this.$$p_d)!(o in this.$$d)&&this[o]!==void 0&&(this.$$d[o]=this[o],delete this[o]);this.$$c=_n({component:this.$$ctor,target:this.shadowRoot||this,props:{...this.$$d,$$slots:r,$$host:this}}),this.$$me=jr(()=>{Hr(()=>{var o;this.$$r=!0;for(const s of St(this.$$c)){if(!((o=this.$$p_d[s])!=null&&o.reflect))continue;this.$$d[s]=this.$$c[s];const l=Gt(s,this.$$d[s],this.$$p_d,"toAttribute");l==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,l)}this.$$r=!1})});for(const o in this.$$l)for(const s of this.$$l[o]){const l=this.$$c.$on(o,s);this.$$l_u.set(s,l)}this.$$l={}}}attributeChangedCallback(e,r,n){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=Gt(e,n,this.$$p_d,"toProp"),(o=this.$$c)==null||o.$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 Gt(t,e,r,n){var s;const o=(s=r[t])==null?void 0:s.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!n||!r[t])return e;if(n==="toAttribute")switch(o){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(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function gn(t){const e={};return t.childNodes.forEach(r=>{e[r.slot||"default"]=!0}),e}function ve(t,e,r,n,o,s){let l=class extends ir{constructor(){super(t,r,o),this.$$p_d=e}static get observedAttributes(){return St(e).map(i=>(e[i].attribute||i).toLowerCase())}};return St(e).forEach(i=>{Nt(l.prototype,i,{get(){return this.$$c&&i in this.$$c?this.$$c[i]:this.$$d[i]},set(u){var a;u=Gt(i,u,e),this.$$d[i]=u;var v=this.$$c;if(v){var c=(a=zt(v,i))==null?void 0:a.get;c?v[i]=u:v.$set({[i]:u})}}})}),n.forEach(i=>{Nt(l.prototype,i,{get(){var u;return(u=this.$$c)==null?void 0:u[i]}})}),t.element=l,l}const bn=[{name:"eHagaki",url:"https://lokuyow.github.io/ehagaki/?content={text}",icon:"https://lokuyow.github.io/ehagaki/favicon.ico"},{name:"nokakoi",url:"https://nokakoi.com/app/?text={text}",icon:"https://nokakoi.com/favicon.ico"},{name:"Nos Haiku",url:"https://nos-haiku.vercel.app/antenna?content={text}",icon:"https://nos-haiku.vercel.app/favicon.png"},{name:"nostter",url:"https://nostter.app/post?content={text}",icon:"https://nostter.app/favicon.ico"},{name:"Lumilumi",url:"https://lumilumi.app/post?text={text}&tags={tags}",icon:"https://lumilumi.app/favicon.ico"}];var $n=t=>t.stopPropagation(),mn=(t,e,r)=>e(R(r).url),yn=kt('<button class="item svelte-1sy5hzc"><img> <span class="item-name"> </span></button>'),xn=kt('<div class="overlay svelte-1sy5hzc"><div class="inner svelte-1sy5hzc"><button class="close-button svelte-1sy5hzc" aria-label="Close">✖</button> <h2 class="title svelte-1sy5hzc">Select Share Client</h2> <div class="list svelte-1sy5hzc"></div> <div class="footer svelte-1sy5hzc"><a target="_blank" referrerpolicy="no-referrer" href="https://tsukemonogit.github.io/nostr-share-component/" class="svelte-1sy5hzc">nostr-share-component</a></div></div></div>');const wn={hash:"svelte-1sy5hzc",code:`
2
2
  /* オーバーレイ背景 */.overlay.svelte-1sy5hzc {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;z-index:50;}
3
3
 
4
4
  /* ダイアログ本体 */.inner.svelte-1sy5hzc {display:flex;flex-direction:column;position:relative;background-color:var(--bg-color);padding:1rem;border-radius:12px; /* 柔らかい角丸 */box-shadow:0 8px 16px rgba(0, 0, 0, 0.2);width:90%;max-width:400px;gap:1rem; /* スペーシング */}
@@ -11,8 +11,8 @@
11
11
  box-shadow 0.2s ease;}.item.svelte-1sy5hzc:hover {background-color:var(--button2-hover-color); /* グレー200 */box-shadow:0 2px 6px rgba(0, 0, 0, 0.1);}.item.svelte-1sy5hzc:active {background-color:var(--button2-active-color); /* グレー300 */}
12
12
 
13
13
  /* バツボタン */.close-button.svelte-1sy5hzc {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-1sy5hzc:hover {background-color:var(--button2-hover-color); /* グレー300 */}.close-button.svelte-1sy5hzc:active {background-color:var(--button2-active-color); /* グレー400 */transform:scale(0.95); /* 押した感覚を演出 */}.footer.svelte-1sy5hzc {margin-top:1rem;text-align:center;font-size:0.75rem;border-top:1px solid var(--border-color); /* 線を追加 */padding-top:0.5rem; /* 線とコンテンツの間にスペースを追加 */}a.svelte-1sy5hzc {font-weight:500;color:var(--button1-border-color);}a.svelte-1sy5hzc:hover {color:var(--button2-text-color);}`};function he(t,e){Bt(e,!0),fe(t,wn);let r=ht(e,"text",7,""),n=ht(e,"handleClose",7);const o=c=>{r()===""&&r(`${document.title}
15
- ${window.location.href}`);const v=c.replace("{text}",encodeURIComponent(r()));console.log(v),window.open(v,"_blank","noreferrer"),n()()};var l=xn();l.__click=function(...c){var v;(v=n())==null||v.apply(this,c)};var s=$t(l);s.__click=[$n];var i=$t(s);i.__click=function(...c){var v;(v=n())==null||v.apply(this,c)};var u=It(i,4);return un(u,21,()=>bn,sn,(c,v)=>{var a=yn();a.__click=[mn,o,v];var h=$t(a);Tt(h,"width",24);var f=It(h,2),d=$t(f,!0);st(f),st(a),le(()=>{Tt(h,"src",R(v).icon),Tt(h,"alt",R(v).name),nn(d,R(v).name)}),rt(c,a)}),st(u),Ir(2),st(s),st(l),rt(t,l),Yt({get text(){return r()},set text(c=""){r(c),Z()},get handleClose(){return n()},set handleClose(c){n(c),Z()}})}Qe(["click"]),customElements.define("nostr-share-dialog",ve(he,{text:{},handleClose:{}},[],[],!0));var En=rn(`<svg class="nostr-icon svelte-givlj7" 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" xml:space="preserve"><g><path class="st0 svelte-givlj7" 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
14
+ transform 0.1s ease;}.close-button.svelte-1sy5hzc:hover {background-color:var(--button2-hover-color); /* グレー300 */}.close-button.svelte-1sy5hzc:active {background-color:var(--button2-active-color); /* グレー400 */transform:scale(0.95); /* 押した感覚を演出 */}.footer.svelte-1sy5hzc {margin-top:1rem;text-align:center;font-size:0.75rem;border-top:1px solid var(--border-color); /* 線を追加 */padding-top:0.5rem; /* 線とコンテンツの間にスペースを追加 */}a.svelte-1sy5hzc {font-weight:500;color:var(--button1-border-color);}a.svelte-1sy5hzc:hover {color:var(--button2-text-color);}`};function de(t,e){Bt(e,!0),fe(t,wn);let r=tt(e,"text",7,""),n=tt(e,"tags",7,""),o=tt(e,"handleClose",7);const s=c=>{r()===""&&r(`${document.title}
15
+ ${window.location.href}`);let a=c.replace("{text}",encodeURIComponent(r()??""));a=a.replace("{tags}",encodeURIComponent(n()??"")),console.log(a),window.open(a,"_blank","noreferrer"),o()()};var l=xn();l.__click=function(...c){var a;(a=o())==null||a.apply(this,c)};var i=$t(l);i.__click=[$n];var u=$t(i);u.__click=function(...c){var a;(a=o())==null||a.apply(this,c)};var v=Dt(u,4);return un(v,21,()=>bn,ln,(c,a)=>{var h=yn();h.__click=[mn,s,a];var d=$t(h);Tt(d,"width",24);var f=Dt(d,2),y=$t(f,!0);it(f),it(h),se(()=>{Tt(d,"src",R(a).icon),Tt(d,"alt",R(a).name),nn(y,R(a).name)}),nt(c,h)}),it(v),Dr(2),it(i),it(l),nt(t,l),Ut({get text(){return r()},set text(c=""){r(c),V()},get tags(){return n()},set tags(c=""){n(c),V()},get handleClose(){return o()},set handleClose(c){o(c),V()}})}Qe(["click"]),customElements.define("nostr-share-dialog",ve(de,{text:{},tags:{},handleClose:{}},[],[],!0));var En=rn(`<svg class="nostr-icon svelte-givlj7" 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" xml:space="preserve"><g><path class="st0 svelte-givlj7" 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
16
16
  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
17
17
  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
18
18
  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-givlj7" cx="137.9" cy="99" r="12.1"></circle><path class="st1 svelte-givlj7" 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
@@ -28,8 +28,8 @@ ${window.location.href}`);const v=c.replace("{text}",encodeURIComponent(r()));co
28
28
  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
29
29
  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
30
30
  s-5.4,12.1-12.1,12.1S125.7,105.8,125.7,99z"></path></g></svg>`);const kn={hash:"svelte-givlj7",code:`
31
- /* アイコン内部のSVG */.nostr-icon.svelte-givlj7 {margin:auto;display:flex;align-items:center;justify-content:center;}.st0.svelte-givlj7 {fill:none;}.st1.svelte-givlj7 {fill:var(--bg-color);}.st2.svelte-givlj7 {fill:var(--nostr-color);}`};function ar(t,e){Bt(e,!0),fe(t,kn);let r=ht(e,"size",7,28);var n=En();return le(()=>Tt(n,"style",`enable-background:new 0 0 256 256; width: ${r()??""}px; height: ${r()??""}px;`)),rt(t,n),Yt({get size(){return r()},set size(o=28){r(o),Z()}})}ve(ar,{size:{}},[],[],!0);const Tn=(t,e)=>{Dt(e,!0)};var Sn=kt('<span part="text" class="svelte-1h3gn4x">Nostr</span>'),Cn=kt("<!> <!>",1),Nn=kt('<button part="button" title="Share on Nostr" class="svelte-1h3gn4x"><!></button> <!>',1);const zn={hash:"svelte-1h3gn4x",code:`:host {font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
32
- Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;display:flex;justify-content:center;align-items:center;--text-color-main: #2e2e2e;--button1-text-color: #662482;--button1-bg-color: #ececec;--button1-hover-color: #b1b1b1;--button1-active-color: #999999;--button1-border-color: #b9b9b9;--button2-text-color: rgb(73, 73, 73);--button2-bg-color: #f3f4f6;--button2-hover-color: #e5e7eb;--nostr-color: #662482;--bg-color: #ffffff;--border-color: #d1d5db;}
33
- @media (prefers-color-scheme: dark) {:host {display:flex;justify-content:center;align-items:center;--text-color-main: #ffffff;--button1-text-color: #eec5ff;--button1-bg-color: #363636;--button1-hover-color: #555555;--button1-active-color: #757575;--button1-border-color: #555555;--button2-text-color: #f1f1f1;--button2-bg-color: #1f1f1f;--button2-hover-color: #3b3b3b;--nostr-color: #eec5ff;--bg-color: #000000;--border-color: #333333;}
34
- }[part="button"].svelte-1h3gn4x {display:flex;align-items:center;justify-content:center;cursor:pointer;gap:0.5em;transition:all 0.1s ease-in-out;border-radius:8px;font-weight:bold;}[part="button"].svelte-1h3gn4x:active {transform:scale(0.98);}[data-nostr-share="default"].svelte-1h3gn4x {padding:6px 16px;background-color:var(--button1-bg-color);color:var(--button2-text-color);border:1px solid var(--button1-border-color);}[data-nostr-share="mini"].svelte-1h3gn4x {padding:2px 6px;background-color:var(--button1-bg-color);color:var(--button2-text-color);border:1px solid var(--button1-border-color);}[data-nostr-share="default"].svelte-1h3gn4x:hover,
35
- [data-nostr-share="mini"].svelte-1h3gn4x:hover {background-color:var(--button1-hover-color);box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}[data-nostr-share="icon"].svelte-1h3gn4x {width:var(--icon-size);height:var(--icon-size);padding:2px;border-radius:50%;background-color:transparent;border:none;}[data-nostr-share="icon"].svelte-1h3gn4x:hover {background-color:var(--button1-hover-color);box-shadow:0 0 6px rgba(0, 0, 0, 0.1);}[part="text"].svelte-1h3gn4x {font-size:medium;}[data-nostr-share="mini"].svelte-1h3gn4x [part="text"]:where(.svelte-1h3gn4x) {font-size:small;}`};function ur(t,e){Bt(e,!0),fe(t,zn);let r=ht(e,"data-text",7),n=ht(e,"data-type",7,"default"),o=ht(e,"icon-size",7,28),l=Rr(!1);const s=()=>{Dt(l,!1)},i=typeof o()=="string"?parseInt(o(),10):o();var u=Nn(),c=Ae(u);c.__click=[Tn,l];var v=$t(c);vn(v,e,"default",{},f=>{var d=Cn(),w=Ae(d),C=Re(()=>n()==="icon"?i:28);ar(w,{get size(){return R(C)}});var S=It(w,2);{var _=y=>{var K=Sn();rt(y,K)};nr(S,y=>{n()!=="icon"&&y(_)})}rt(f,d)}),st(c);var a=It(c,2);{var h=f=>{he(f,{handleClose:s,get text(){return r()}})};nr(a,f=>{R(l)&&f(h)})}return le(()=>Tt(c,"data-nostr-share",n())),rt(t,u),Yt({get"data-text"(){return r()},set"data-text"(f){r(f),Z()},get"data-type"(){return n()},set"data-type"(f="default"){n(f),Z()},get"icon-size"(){return o()},set"icon-size"(f=28){o(f),Z()}})}Qe(["click"]),customElements.define("nostr-share",ve(ur,{"data-text":{},"data-type":{},"icon-size":{}},["default"],[],!0)),g.Dialog=he,g.NostrShare=ur,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
31
+ /* アイコン内部のSVG */.nostr-icon.svelte-givlj7 {margin:auto;display:flex;align-items:center;justify-content:center;}.st0.svelte-givlj7 {fill:none;}.st1.svelte-givlj7 {fill:var(--bg-color);}.st2.svelte-givlj7 {fill:var(--nostr-color);}`};function ar(t,e){Bt(e,!0),fe(t,kn);let r=tt(e,"size",7,28);var n=En();return se(()=>Tt(n,"style",`enable-background:new 0 0 256 256; width: ${r()??""}px; height: ${r()??""}px;`)),nt(t,n),Ut({get size(){return r()},set size(o=28){r(o),V()}})}ve(ar,{size:{}},[],[],!0);const Tn=(t,e)=>{It(e,!0)};var Cn=kt('<span part="text" class="svelte-d3fvt">Nostr</span>'),Sn=kt("<!> <!>",1),Nn=kt('<button part="button" title="Share on Nostr" class="svelte-d3fvt"><!></button> <!>',1);const zn={hash:"svelte-d3fvt",code:`:host {font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
32
+ Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;position:absolute;top:0;left:0;display:flex;justify-content:center;align-items:center;--text-color-main: #2e2e2e;--button1-text-color: #662482;--button1-bg-color: #ececec;--button1-hover-color: #b1b1b1;--button1-active-color: #999999;--button1-border-color: #b9b9b9;--button2-text-color: rgb(73, 73, 73);--button2-bg-color: #f3f4f6;--button2-hover-color: #e5e7eb;--nostr-color: #662482;--bg-color: #ffffff;--border-color: #d1d5db;}
33
+ @media (prefers-color-scheme: dark) {:host {top:0;left:0;position:absolute;display:flex;justify-content:center;align-items:center;--text-color-main: #ffffff;--button1-text-color: #eec5ff;--button1-bg-color: #363636;--button1-hover-color: #555555;--button1-active-color: #757575;--button1-border-color: #555555;--button2-text-color: #f1f1f1;--button2-bg-color: #1f1f1f;--button2-hover-color: #3b3b3b;--nostr-color: #eec5ff;--bg-color: #000000;--border-color: #333333;}
34
+ }[part="button"].svelte-d3fvt {display:flex;align-items:center;justify-content:center;cursor:pointer;gap:0.5em;transition:all 0.1s ease-in-out;border-radius:8px;font-weight:bold;}[part="button"].svelte-d3fvt:active {transform:scale(0.98);}[data-nostr-share="default"].svelte-d3fvt {padding:6px 16px;background-color:var(--button1-bg-color);color:var(--button2-text-color);border:1px solid var(--button1-border-color);}[data-nostr-share="mini"].svelte-d3fvt {padding:2px 6px;background-color:var(--button1-bg-color);color:var(--button2-text-color);border:1px solid var(--button1-border-color);}[data-nostr-share="default"].svelte-d3fvt:hover,
35
+ [data-nostr-share="mini"].svelte-d3fvt:hover {background-color:var(--button1-hover-color);box-shadow:0 0 4px rgba(0, 0, 0, 0.1);}[data-nostr-share="icon"].svelte-d3fvt {width:var(--icon-size);height:var(--icon-size);padding:2px;border-radius:50%;background-color:transparent;border:none;}[data-nostr-share="icon"].svelte-d3fvt:hover {background-color:var(--button1-hover-color);box-shadow:0 0 6px rgba(0, 0, 0, 0.1);}[part="text"].svelte-d3fvt {font-size:medium;}[data-nostr-share="mini"].svelte-d3fvt [part="text"]:where(.svelte-d3fvt) {font-size:small;}`};function ur(t,e){Bt(e,!0),fe(t,zn);let r=tt(e,"data-text",7,""),n=tt(e,"data-tags",7,""),o=tt(e,"data-type",7,"default"),s=tt(e,"icon-size",7,28),l=Rr(!1);const i=()=>{It(l,!1)},u=typeof s()=="string"?parseInt(s(),10):s();var v=Nn(),c=Ae(v);c.__click=[Tn,l];var a=$t(c);vn(a,e,"default",{},f=>{var y=Sn(),C=Ae(y),S=Re(()=>o()==="icon"?u:28);ar(C,{get size(){return R(S)}});var _=Dt(C,2);{var w=j=>{var E=Cn();nt(j,E)};nr(_,j=>{o()!=="icon"&&j(w)})}nt(f,y)}),it(c);var h=Dt(c,2);{var d=f=>{de(f,{handleClose:i,get text(){return r()},get tags(){return n()}})};nr(h,f=>{R(l)&&f(d)})}return se(()=>Tt(c,"data-nostr-share",o())),nt(t,v),Ut({get"data-text"(){return r()},set"data-text"(f=""){r(f),V()},get"data-tags"(){return n()},set"data-tags"(f=""){n(f),V()},get"data-type"(){return o()},set"data-type"(f="default"){o(f),V()},get"icon-size"(){return s()},set"icon-size"(f=28){s(f),V()}})}Qe(["click"]),customElements.define("nostr-share",ve(ur,{"data-text":{},"data-tags":{},"data-type":{},"icon-size":{}},["default"],[],!0)),g.Dialog=de,g.NostrShare=ur,Object.defineProperty(g,Symbol.toStringTag,{value:"Module"})});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@konemono/nostr-share-component",
3
- "version": "0.4.3",
3
+ "version": "0.5.1",
4
4
  "type": "module",
5
5
  "main": "dist/nostr-share-component.umd.js",
6
6
  "module": "dist/nostr-share-component.es.js",