var lr=Object.defineProperty,ar=Object.defineProperties;var ur=Object.getOwnPropertyDescriptors;var We=Object.getOwnPropertySymbols;var fr=Object.prototype.hasOwnProperty,cr=Object.prototype.propertyIsEnumerable;var Je=_=>{throw TypeError(_)};var re=(_,v,m)=>v in _?lr(_,v,{enumerable:!0,configurable:!0,writable:!0,value:m}):_[v]=m,dt=(_,v)=>{for(var m in v||(v={}))fr.call(v,m)&&re(_,m,v[m]);if(We)for(var m of We(v))cr.call(v,m)&&re(_,m,v[m]);return _},Et=(_,v)=>ar(_,ur(v));var O=(_,v,m)=>re(_,typeof v!="symbol"?v+"":v,m),Ze=(_,v,m)=>v.has(_)||Je("Cannot "+m);var T=(_,v,m)=>(Ze(_,v,"read from private field"),m?m.call(_):v.get(_)),ie=(_,v,m)=>v.has(_)?Je("Cannot add the same private member more than once"):v instanceof WeakSet?v.add(_):v.set(_,m),se=(_,v,m,H)=>(Ze(_,v,"write to private field"),H?H.call(_,m):v.set(_,m),m);var Q=(_,v,m)=>new Promise((H,_t)=>{var St=P=>{try{w(m.next(P))}catch(Y){_t(Y)}},V=P=>{try{w(m.throw(P))}catch(Y){_t(Y)}},w=P=>P.done?H(P.value):Promise.resolve(P.value).then(St,V);w((m=m.apply(_,v)).next())});(function(_){typeof define=="function"&&define.amd?define(_):_()})(function(){"use strict";var q,D;const _="5";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(_);const v=1,m=2,H="[",_t="[!",St="]",V={},w=Symbol(),P=!1;function Y(t){console.warn("hydration_mismatch")}var oe=Array.isArray,Ge=Array.from,Rt=Object.keys,Tt=Object.defineProperty,X=Object.getOwnPropertyDescriptor,Qe=Object.prototype,Xe=Array.prototype,tn=Object.getPrototypeOf;function en(t){for(var e=0;e{et(e)}}function pn(t){return gt(le,t,!1)}function wn(t){return gt(xt,t,!0)}function Ht(t){return de(t)}function de(t,e=0){return gt(xt|Mt|e,t,!0)}function Vt(t,e=!0){return gt(xt|I,t,!0,e)}function _e(t){var e=t.teardown;if(e!==null){const n=y;it(null);try{e.call(null)}finally{it(n)}}}function ve(t){var e=t.deriveds;if(e!==null){t.deriveds=null;for(var n=0;n{et(t),e&&e()})}function bn(t,e){var n=t.length;if(n>0){var r=()=>--n||e();for(var i of t)i.out(r)}else e()}function pe(t,e,n){if(!(t.f&tt)){if(t.f^=tt,t.transitions!==null)for(const o of t.transitions)(o.is_global||n)&&e.push(o);for(var r=t.first;r!==null;){var i=r.next,s=(r.f&Bt)!==0||(r.f&I)!==0;pe(r,e,s?n:!1),r=i}}}function we(t){ye(t,!0)}function ye(t,e){if(t.f&tt){t.f^=tt,wt(t)&&Nt(t);for(var n=t.first;n!==null;){var r=n.next,i=(n.f&Bt)!==0||(n.f&I)!==0;ye(n,i?e:!1),n=r}if(t.transitions!==null)for(const s of t.transitions)(s.is_global||e)&&s.in()}}let Dt=!1,Yt=[];function be(){Dt=!1;const t=Yt.slice();Yt=[],en(t)}function En(t){Dt||(Dt=!0,queueMicrotask(be)),Yt.push(t)}function Sn(){Dt&&be()}const Ee=0,Rn=1;let Ct=Ee,pt=!1,nt=!1;function Se(t){nt=t}let J=[],rt=0,hr=[],y=null;function it(t){y=t}let $=null;function st(t){$=t}let U=null;function Tn(t){U=t}let b=null,k=0,j=null;function xn(t){j=t}let Re=0,ot=!1,E=null;function Te(){return++Re}function Kt(){return E!==null&&E.l===null}function wt(t){var o,l,u,a;var e=t.f;if(e&W)return!0;if(e&mt){var n=t.deps,r=(e&vt)!==0;if(n!==null){var i;if(e&Lt){for(i=0;it.version)return!0}}r||F(t,x)}return!1}function kn(t,e,n){throw t}function xe(t){var h,d;var e=b,n=k,r=j,i=y,s=ot,o=U,l=E,u=t.f;b=null,k=0,j=null,y=u&(I|kt)?null:t,ot=!nt&&(u&vt)!==0,U=null,E=t.ctx;try{var a=(0,t.fn)(),f=t.deps;if(b!==null){var c;if(yt(t,k),f!==null&&k>0)for(f.length=k+b.length,c=0;c1e3&&(rt=0,un()),rt++}function Le(t){var e=t.length;if(e!==0){ke();var n=nt;nt=!0;try{for(var r=0;r1001)return;const t=J;J=[],Le(t),pt||(rt=0)}function At(t){Ct===Ee&&(pt||(pt=!0,queueMicrotask(Cn)));for(var e=t;e.parent!==null;){e=e.parent;var n=e.f;if(n&(kt|I)){if(!(n&x))return;e.f^=x}}J.push(e)}function De(t,e){var n=t.first,r=[];t:for(;n!==null;){var i=n.f,s=(i&I)!==0,o=s&&(i&x)!==0;if(!o&&!(i&tt))if(i&xt){s?n.f^=x:wt(n)&&Nt(n);var l=n.first;if(l!==null){n=l;continue}}else i&le&&r.push(n);var u=n.next;if(u===null){let c=n.parent;for(;c!==null;){if(t===c)break t;var a=c.next;if(a!==null){n=a;continue t}c=c.parent}}n=u}for(var f=0;f0||i.length>0)&&Ce(),rt=0,r}finally{Ct=e,J=n}}function S(t){var l,u;var e=t.f,n=(e&K)!==0;if(n&&e&$t){var r=fe(t);return zt(t),r}if(y!==null){U!==null&&U.includes(t)&&dn();var i=y.deps;b===null&&i!==null&&i[k]===t?k++:b===null?b=[t]:b.push(t),j!==null&&$!==null&&$.f&x&&!($.f&I)&&j.includes(t)&&(F($,W),At($))}else if(n&&t.deps===null){var s=t,o=s.parent;o!==null&&!((l=o.deriveds)!=null&&l.includes(s))&&((u=o.deriveds)!=null?u:o.deriveds=[]).push(s)}return n&&(s=t,wt(s)&&ce(s)),t.v}const Nn=~(W|mt|x);function F(t,e){t.f=t.f&Nn|e}function Ne(t,e=!1,n){E={p:E,c:null,e:null,m:!1,s:t,x:null,l:null},e||(E.l={s:null,u:null,r1:[],r2:N(!1)})}function Ae(t){const e=E;if(e!==null){const o=e.e;if(o!==null){var n=$,r=y;e.e=null;try{for(var i=0;i=Ft.v&&A(Ft,ht+1)}Oe(o)}return!0},ownKeys(u){S(o);var a=Reflect.ownKeys(u).filter(h=>{var d=i.get(h);return d===void 0||d.v!==w});for(var[f,c]of i)c.v!==w&&!(f in u)&&a.push(f);return a},setPrototypeOf(){hn()}})}function Oe(t,e=1){A(t,t.v+e)}var Pe,Ue,Ie;function Wt(){if(Pe===void 0){Pe=window;var t=Element.prototype,e=Node.prototype;Ue=X(e,"firstChild").get,Ie=X(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 Ot(t=""){return document.createTextNode(t)}function lt(t){return Ue.call(t)}function Z(t){return Ie.call(t)}function Jt(t,e){if(!R)return lt(t);var n=lt(p);if(n===null)n=p.appendChild(Ot());else if(e&&n.nodeType!==3){var r=Ot();return n==null||n.before(r),z(r),r}return z(n),n}function An(t,e){if(!R){var n=lt(t);return n instanceof Comment&&n.data===""?Z(n):n}return p}function On(t,e=1,n=!1){let r=R?p:t;for(;e--;)r=Z(r);if(!R)return r;var i=r.nodeType;if(n&&i!==3){var s=Ot();return r==null||r.before(s),z(s),s}return z(r),r}function Pn(t){t.textContent=""}let R=!1;function at(t){R=t}let p;function z(t){if(t===null)throw Y(),V;return p=t}function Zt(){return z(Z(p))}function Gt(t){if(R){if(Z(p)!==null)throw Y(),V;p=t}}function Un(){for(var t=0,e=p;;){if(e.nodeType===8){var n=e.data;if(n===St){if(t===0)return e;t-=1}else(n===H||n===_t)&&(t+=1)}var r=Z(e);e.remove(),e=r}}const In=new Set,Fe=new Set;function Pt(t){var ht;var e=this,n=e.ownerDocument,r=t.type,i=((ht=t.composedPath)==null?void 0:ht.call(t))||[],s=i[0]||t.target,o=0,l=t.__root;if(l){var u=i.indexOf(l);if(u!==-1&&(e===document||e===window)){t.__root=e;return}var a=i.indexOf(e);if(a===-1)return;u<=a&&(o=u)}if(s=i[o]||t.target,s!==e){Tt(t,"currentTarget",{configurable:!0,get(){return s||n}});var f=y,c=$;it(null),st(null);try{for(var h,d=[];s!==null;){var g=s.assignedSlot||s.parentNode||s.host||null;try{var C=s["__"+r];if(C!==void 0&&!s.disabled)if(oe(C)){var[ct,...Ft]=C;ct.apply(s,[t,...Ft])}else C.call(s,t)}catch(G){h?d.push(G):h=G}if(t.cancelBubble||g===e||g===null)break;s=g}if(h){for(let G of d)queueMicrotask(()=>{throw G});throw h}}finally{t.__root=e,delete t.currentTarget,it(f),st(c)}}}function Fn(t){var e=document.createElement("template");return e.innerHTML=t,e.content}function Ut(t,e){var n=$;n.nodes_start===null&&(n.nodes_start=t,n.nodes_end=e)}function Me(t,e){var n=(e&v)!==0,r=(e&m)!==0,i,s=!t.startsWith("");return()=>{if(R)return Ut(p,null),p;i===void 0&&(i=Fn(s?t:""+t),n||(i=lt(i)));var o=r?document.importNode(i,!0):i.cloneNode(!0);if(n){var l=lt(o),u=o.lastChild;Ut(l,u)}else Ut(o,o);return o}}function Qt(t,e){if(R){$.nodes_end=p,Zt();return}t!==null&&t.before(e)}const Mn=["touchstart","touchmove"];function Bn(t){return Mn.includes(t)}function Be(t,e){var r;var n=e==null?"":typeof e=="object"?e+"":e;n!==((r=t.__t)!=null?r:t.__t=t.nodeValue)&&(t.__t=n,t.nodeValue=n==null?"":n+"")}function qe(t,e){return je(t,e)}function qn(t,e){var o;Wt(),e.intro=(o=e.intro)!=null?o:!1;const n=e.target,r=R,i=p;try{for(var s=lt(n);s&&(s.nodeType!==8||s.data!==H);)s=Z(s);if(!s)throw V;at(!0),z(s),Zt();const l=je(t,Et(dt({},e),{anchor:s}));if(p===null||p.nodeType!==8||p.data!==St)throw Y(),V;return at(!1),l}catch(l){if(l===V)return e.recover===!1&&fn(),Wt(),Pn(n),at(!1),qe(t,e);throw l}finally{at(r),z(i)}}const ut=new Map;function je(t,{target:e,anchor:n,props:r={},events:i,context:s,intro:o=!0}){Wt();var l=new Set,u=c=>{for(var h=0;h{var c=n!=null?n:e.appendChild(Ot());return Vt(()=>{if(s){Ne({});var h=E;h.c=s}i&&(r.$$events=i),R&&Ut(c,null),a=t(c,r)||{},R&&($.nodes_end=p),s&&Ae()}),()=>{var g;for(var h of l){e.removeEventListener(h,Pt);var d=ut.get(h);--d===0?(document.removeEventListener(h,Pt),ut.delete(h)):ut.set(h,d)}Fe.delete(u),Xt.delete(a),c!==n&&((g=c.parentNode)==null||g.removeChild(c))}});return Xt.set(a,f),a}let Xt=new WeakMap;function jn(t){const e=Xt.get(t);e&&e()}function zn(t,e,n,r=null,i=!1){R&&Zt();var s=t,o=null,l=null,u=null,a=i?Bt:0;de(()=>{if(u===(u=!!e()))return;let f=!1;if(R){const c=s.data===_t;u===c&&(s=Un(),z(s),at(!1),f=!0)}u?(o?we(o):o=Vt(()=>n(s)),l&&ge(l,()=>{l=null})):(l?we(l):r&&(l=Vt(()=>r(s))),o&&ge(o,()=>{o=null})),f&&at(!0)},a),R&&(s=p)}function Hn(t,e){En(()=>{var i;var n=t.getRootNode(),r=n.host?n:(i=n.head)!=null?i:n.ownerDocument.head;if(!r.querySelector("#"+e.hash)){const s=document.createElement("style");s.id=e.hash,s.textContent=e.code,r.appendChild(s)}})}function ze(t,e,n){if(n){if(t.classList.contains(e))return;t.classList.add(e)}else{if(!t.classList.contains(e))return;t.classList.remove(e)}}function Vn(t){return new Yn(t)}class Yn{constructor(e){ie(this,q);ie(this,D);var s,o;var n=new Map,r=(l,u)=>{var a=vn(u);return n.set(l,a),a};const i=new Proxy(Et(dt({},e.props||{}),{$$events:{}}),{get(l,u){var a;return S((a=n.get(u))!=null?a:r(u,Reflect.get(l,u)))},has(l,u){var a;return S((a=n.get(u))!=null?a:r(u,Reflect.get(l,u))),Reflect.has(l,u)},set(l,u,a){var f;return A((f=n.get(u))!=null?f:r(u,a),a),Reflect.set(l,u,a)}});se(this,D,(e.hydrate?qn:qe)(e.component,{target:e.target,props:i,context:e.context,intro:(s=e.intro)!=null?s:!1,recover:e.recover})),(!((o=e==null?void 0:e.props)!=null&&o.$$host)||e.sync===!1)&&Ce(),se(this,q,i.$$events);for(const l of Object.keys(T(this,D)))l==="$set"||l==="$destroy"||l==="$on"||Tt(this,l,{get(){return T(this,D)[l]},set(u){T(this,D)[l]=u},enumerable:!0});T(this,D).$set=l=>{Object.assign(i,l)},T(this,D).$destroy=()=>{jn(T(this,D))}}$set(e){T(this,D).$set(e)}$on(e,n){T(this,q)[e]=T(this,q)[e]||[];const r=(...i)=>n.call(this,...i);return T(this,q)[e].push(r),()=>{T(this,q)[e]=T(this,q)[e].filter(i=>i!==r)}}$destroy(){T(this,D).$destroy()}}q=new WeakMap,D=new WeakMap;let He;typeof HTMLElement=="function"&&(He=class extends HTMLElement{constructor(e,n,r){super();O(this,"$$ctor");O(this,"$$s");O(this,"$$c");O(this,"$$cn",!1);O(this,"$$d",{});O(this,"$$r",!1);O(this,"$$p_d",{});O(this,"$$l",{});O(this,"$$l_u",new Map);O(this,"$$me");this.$$ctor=e,this.$$s=n,r&&this.attachShadow({mode:"open"})}addEventListener(e,n,r){if(this.$$l[e]=this.$$l[e]||[],this.$$l[e].push(n),this.$$c){const i=this.$$c.$on(e,n);this.$$l_u.set(n,i)}super.addEventListener(e,n,r)}removeEventListener(e,n,r){if(super.removeEventListener(e,n,r),this.$$c){const i=this.$$l_u.get(n);i&&(i(),this.$$l_u.delete(n))}}connectedCallback(){return Q(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(i){return s=>{const o=document.createElement("slot");i!=="default"&&(o.name=i),Qt(s,o)}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=Kn(this);for(const i of this.$$s)i in r&&(i==="default"&&!this.$$d.children?(this.$$d.children=e(i),n.default=!0):n[i]=e(i));for(const i of this.attributes){const s=this.$$g_p(i.name);s in this.$$d||(this.$$d[s]=It(s,i.value,this.$$p_d,"toProp"))}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=Vn({component:this.$$ctor,target:this.shadowRoot||this,props:Et(dt({},this.$$d),{$$slots:n,$$host:this})}),this.$$me=he(()=>{wn(()=>{var i;this.$$r=!0;for(const s of Rt(this.$$c)){if(!((i=this.$$p_d[s])!=null&&i.reflect))continue;this.$$d[s]=this.$$c[s];const o=It(s,this.$$d[s],this.$$p_d,"toAttribute");o==null?this.removeAttribute(this.$$p_d[s].attribute||s):this.setAttribute(this.$$p_d[s].attribute||s,o)}this.$$r=!1})});for(const i in this.$$l)for(const s of this.$$l[i]){const o=this.$$c.$on(i,s);this.$$l_u.set(s,o)}this.$$l={}}})}attributeChangedCallback(e,n,r){var i;this.$$r||(e=this.$$g_p(e),this.$$d[e]=It(e,r,this.$$p_d,"toProp"),(i=this.$$c)==null||i.$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 Rt(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function It(t,e,n,r){var s;const i=(s=n[t])==null?void 0:s.type;if(e=i==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(i){case"Object":case"Array":return e==null?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e==null?null:e;default:return e}else switch(i){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":return e;case"Number":return e!=null?+e:e;default:return e}}function Kn(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}function Wn(t,e,n,r,i,s){let o=class extends He{constructor(){super(t,n,i),this.$$p_d=e}static get observedAttributes(){return Rt(e).map(l=>(e[l].attribute||l).toLowerCase())}};return Rt(e).forEach(l=>{Tt(o.prototype,l,{get(){return this.$$c&&l in this.$$c?this.$$c[l]:this.$$d[l]},set(u){var c;u=It(l,u,e),this.$$d[l]=u;var a=this.$$c;if(a){var f=(c=X(a,l))==null?void 0:c.get;f?a[l]=u:a.$set({[l]:u})}}})}),r.forEach(l=>{Tt(o.prototype,l,{get(){var u;return(u=this.$$c)==null?void 0:u[l]}})}),t.element=o,o}const Jn=[...["1d","7d","30d","90d","365d","all"],"1h","1jan","3y","5y","10y"];var L=(t=>(t[t.EUR=0]="EUR",t[t.USD=1]="USD",t[t.BTC=2]="BTC",t))(L||{});(t=>{function e(i){return Intl.NumberFormat("en-US",{style:"currency",currency:t.toString(i)}).formatToParts(0).filter(s=>s.type==="currency")[0].value}t.toSymbol=e;function n(i){return t[i]}t.toString=n;function r(i){return t[i]}t.fromString=r})(L||(L={}));class B{constructor(e,n){this._amount=e,this._currency=n}format(e,n={}){return Intl.NumberFormat(e,dt({style:"currency",currencyDisplay:"narrowSymbol",currency:L.toString(this._currency),minimumFractionDigits:0,maximumFractionDigits:0},n)).format(this._amount)}get amount(){return this._amount}get currency(){return this._currency}}const ft=["en-US","fr-FR","de-DE","it-IT","es-ES","nl-NL","nl-BE","fr-BE","de-BE","pt-PT","fi-FI","se-FI","ga-IE","en-IE","lb-LU","fr-LU","de-LU"];class Zn{constructor(e,n){this._asset=e,this._delta=n}_getOptionalSpace(e){return e==="fr-FR"?" ":""}format(e,n={}){return`${Intl.NumberFormat(e,n).format(this._delta)}${this._getOptionalSpace(e)}%`}get positive(){return this._delta>0}formatVariant(e,n){let r={signDisplay:"exceptZero",maximumFractionDigits:2};switch(n){case 1:return`${this._asset.format(e,r)} (${this.format(e,r)})`;case 2:return`${this.format(e,r)} (${this._asset.format(e,r)})`;case 3:return this.format(e,r);case 4:return this.format(e,{signDisplay:"always",maximumFractionDigits:0})}}}var te;(t=>{function e(n,r){return{price:new B(n.price,r),delta:new Zn(new B(n.deltaAmount,r),n.delta*100),low:new B(n.low,r),high:new B(n.high,r)}}t.from=e})(te||(te={}));var ee;(t=>{function e(n){const r=L.fromString(n.currency),i=Jn.reduce((s,o)=>Et(dt({},s),{[o]:te.from(n.periods[o],r)}),{});return{lastUpdate:new Date(n.timestamp),currency:r,price:new B(n.currentPrice,r),delta:i["1d"].delta,marketCap:new B(n.marketCap,r),marketSupply:new B(n.marketSupply,2),maxSupply:new B(n.maxSupply,2),period24hVolume:new B(n.period24hVolume,r),periods:i}}t.from=e})(ee||(ee={}));const Gn="https://api.bitstack-app.com/pricetagger";class Qn{constructor(e=Gn){this._url=e}fetchMarketData(e){return Q(this,null,function*(){const n=new URLSearchParams({currency:L.toString(e)});return(yield fetch(new URL(`${this._url}/v1/stats/web?${n}`))).json()})}fetchOhlc(e,n){return Q(this,null,function*(){const r=new URLSearchParams({period:e,currency:L.toString(n)});return(yield fetch(new URL(`${this._url}/v1/stats/web/ohlc?${r}`))).arrayBuffer()})}getOhlc(e,n){return Q(this,null,function*(){let r=new Uint8Array(yield this.fetchOhlc(e,n));const i=Math.ceil(new Uint16Array(r.slice(8,10).buffer)[0]/64)*64;r=r.slice(i);const s=new Float64Array(r.buffer),o=new Array(s.length/2);for(let l=0;l0?n[0]:null;if(e){const o=ne(e),l=bt(o);if(l)return l;const u=o.split("-")[0],a=Ye(u),f=bt(a);if(f)return f}if(r){const o=ne(r),l=bt(o);if(l)return l;if(o.length===2){const u=Ye(o),a=bt(u);if(a)return a}}const i=navigator.language||navigator.userLanguage||"en-US",s=bt(i);return s||"en-US"}const Ke="change-currency";function tr(t){const e=new URL(window.location.toString());e.searchParams.set("c",L.toString(t)),window.history.pushState({},null,e),window.dispatchEvent(new CustomEvent(Ke,{detail:t})),window.localStorage.setItem(Ve,L.toString(t))}function er(){var n;const t=[()=>{const r=new URL(window.location.toString());return r.searchParams.has("c")?L.fromString(r.searchParams.get("c")):null},()=>{const r=window.localStorage.getItem(Ve);return r?L.fromString(r):null}];let e=L.EUR;for(const r of t)e=(n=r())!=null?n:e;return tr(e),e}const nr={"@context":"https://schema.org","@type":"WebPage",name:"Middle exchange rates of foreign currencies – table A",mainEntity:{"@type":"ItemList",name:"Table No. 047/A/NBP/2016 of 2016-03-09",itemListElement:[{"@type":"ExchangeRateSpecification",currency:"BTC",currentExchangeRate:{"@type":"UnitPriceSpecification",price:"80000",priceCurrency:"EUR"}},{"@type":"ExchangeRateSpecification",currency:"BTC",currentExchangeRate:{"@type":"UnitPriceSpecification",price:"90000",priceCurrency:"USD"}}]}};var rr=Me('
',1),ir=Me("
");const sr={hash:"svelte-nzgkba",code:` .paragraph-small-semibold.svelte-nzgkba { color: #232A3C; margin-top: 0; margin-bottom: 2px; font-family: Bitstack, sans-serif; font-size: 14px; font-weight: 600; line-height: 100%; text-decoration: none; } .label-semibold.svelte-nzgkba { color: #40BD75; margin-top: 0; margin-bottom: 0; font-family: Bitstack, sans-serif; font-size: 12px; font-weight: 600; line-height: 100%; text-decoration: none; } .label-semibold-green.svelte-nzgkba { color: #40BD75; } .label-semibold-red.svelte-nzgkba { color: #DA4C4C; } `};function or(t,e){Ne(e,!0),Hn(t,sr),`${JSON.stringify(nr)}`;const n=new Qn;let r=jt(null),i=jt(M(er())),s=jt(M(Xn()));window.addEventListener(Ke,a=>{A(i,M(a.detail)),o()});const o=()=>Q(this,null,function*(){A(r,M(yield n.getMarketData(S(i))))});o(),setInterval(o,1e4);var l=ir(),u=Jt(l);zn(u,()=>S(r),a=>{var f=rr(),c=An(f),h=Jt(c,!0);Ht(()=>Be(h,S(r).price.format(S(s)))),Gt(c);var d=On(c,2),g=Jt(d,!0);Ht(()=>Be(g,S(r).delta.formatVariant(S(s),3))),Gt(d),Ht(()=>{ze(d,"label-semibold-green",S(r).delta.positive),ze(d,"label-semibold-red",!S(r).delta.positive)}),Qt(a,f)},a=>{}),Gt(l),Qt(t,l),Ae()}customElements.define("bitcoin-price-widget",Wn(or,{},[],[],!0))});