@everymatrix/casino-wagering-bonus-progress 1.55.0 → 1.56.2

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.
@@ -0,0 +1 @@
1
+ "use strict";var st=Object.defineProperty,rt=Object.defineProperties;var it=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var ot=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable;var B=(t,e,n)=>e in t?st(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,H=(t,e)=>{for(var n in e||(e={}))ot.call(e,n)&&B(t,n,e[n]);if(D)for(var n of D(e))ct.call(e,n)&&B(t,n,e[n]);return t},J=(t,e)=>rt(t,it(e));var h=(t,e,n)=>(B(t,typeof e!="symbol"?e+"":e,n),n);var U=(t,e,n)=>new Promise((r,o)=>{var s=c=>{try{u(n.next(c))}catch(f){o(f)}},l=c=>{try{u(n.throw(c))}catch(f){o(f)}},u=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,l);u((n=n.apply(t,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function F(){}function v(t,e){for(const n in e)t[n]=e[n];return t}function X(t){return t()}function q(){return Object.create(null)}function I(t){t.forEach(X)}function Y(t){return typeof t=="function"}function lt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function ut(t){return Object.keys(t).length===0}const ft=["",!0,1,"true","contenteditable"];function w(t,e){t.appendChild(e)}function $t(t,e,n){const r=at(t);if(!r.getElementById(e)){const o=x("style");o.id=e,o.textContent=n,dt(r,o)}}function at(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function dt(t,e){return w(t.head||t,e),e.sheet}function Z(t,e,n){t.insertBefore(e,n||null)}function R(t){t.parentNode&&t.parentNode.removeChild(t)}function x(t){return document.createElement(t)}function O(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function G(t){return document.createTextNode(t)}function ht(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function tt(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function m(t,e){for(const n in e)tt(t,n,e[n])}function _t(t){return Array.from(t.childNodes)}function gt(t,e){e=""+e,t.data!==e&&(t.data=e)}function mt(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function pt(t,e,n){~ft.indexOf(n)?mt(t,e):gt(t,e)}function bt(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}let V;function N(t){V=t}const P=[],K=[];let C=[];const Q=[],yt=Promise.resolve();let W=!1;function wt(){W||(W=!0,yt.then(M))}function L(t){C.push(t)}const z=new Set;let E=0;function M(){if(E!==0)return;const t=V;do{try{for(;E<P.length;){const e=P[E];E++,N(e),kt(e.$$)}}catch(e){throw P.length=0,E=0,e}for(N(null),P.length=0,E=0;K.length;)K.pop()();for(let e=0;e<C.length;e+=1){const n=C[e];z.has(n)||(z.add(n),n())}C.length=0}while(P.length);for(;Q.length;)Q.pop()();W=!1,z.clear(),N(t)}function kt(t){if(t.fragment!==null){t.update(),I(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(L)}}function Et(t){const e=[],n=[];C.forEach(r=>t.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),C=e}const Pt=new Set;function Ct(t,e){t&&t.i&&(Pt.delete(t),t.i(e))}function j(t,e){const n={},r={},o={$$scope:1};let s=t.length;for(;s--;){const l=t[s],u=e[s];if(u){for(const c in l)c in u||(r[c]=1);for(const c in u)o[c]||(n[c]=u[c],o[c]=1);t[s]=u}else for(const c in l)o[c]=1}for(const l in r)l in n||(n[l]=void 0);return n}function vt(t,e,n){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,n),L(()=>{const s=t.$$.on_mount.map(X).filter(Y);t.$$.on_destroy?t.$$.on_destroy.push(...s):I(s),t.$$.on_mount=[]}),o.forEach(L)}function Ot(t,e){const n=t.$$;n.fragment!==null&&(Et(n.after_update),I(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function jt(t,e){t.$$.dirty[0]===-1&&(P.push(t),wt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Nt(t,e,n,r,o,s,l=null,u=[-1]){const c=V;N(t);const f=t.$$={fragment:null,ctx:[],props:s,update:F,not_equal:o,bound:q(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:q(),dirty:u,skip_bound:!1,root:e.target||c.$$.root};l&&l(f.root);let _=!1;if(f.ctx=n?n(t,e.props||{},(a,g,...d)=>{const y=d.length?d[0]:g;return f.ctx&&o(f.ctx[a],f.ctx[a]=y)&&(!f.skip_bound&&f.bound[a]&&f.bound[a](y),_&&jt(t,a)),g}):[],f.update(),_=!0,I(f.before_update),f.fragment=r?r(f.ctx):!1,e.target){if(e.hydrate){const a=_t(e.target);f.fragment&&f.fragment.l(a),a.forEach(R)}else f.fragment&&f.fragment.c();e.intro&&Ct(t.$$.fragment),vt(t,e.target,e.anchor),M()}N(c)}let et;typeof HTMLElement=="function"&&(et=class extends HTMLElement{constructor(e,n,r){super();h(this,"$$ctor");h(this,"$$s");h(this,"$$c");h(this,"$$cn",!1);h(this,"$$d",{});h(this,"$$r",!1);h(this,"$$p_d",{});h(this,"$$l",{});h(this,"$$l_u",new Map);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 o=this.$$c.$on(e,n);this.$$l_u.set(n,o)}super.addEventListener(e,n,r)}removeEventListener(e,n,r){if(super.removeEventListener(e,n,r),this.$$c){const o=this.$$l_u.get(n);o&&(o(),this.$$l_u.delete(n))}}connectedCallback(){return U(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(s){return()=>{let l;return{c:function(){l=x("slot"),s!=="default"&&tt(l,"name",s)},m:function(f,_){Z(f,l,_)},d:function(f){f&&R(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=bt(this);for(const s of this.$$s)s in r&&(n[s]=[e(s)]);for(const s of this.attributes){const l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=A(l,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:J(H({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const o=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const l=A(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};this.$$c.$$.after_update.push(o),o();for(const s in this.$$l)for(const l of this.$$l[s]){const u=this.$$c.$on(s,l);this.$$l_u.set(l,u)}this.$$l={}}})}attributeChangedCallback(e,n,r){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=A(e,r,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.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function A(t,e,n,r){var s;const o=(s=n[t])==null?void 0:s.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(o){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(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 Ft(t,e,n,r,o,s){let l=class extends et{constructor(){super(t,n,o),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(u=>(e[u].attribute||u).toLowerCase())}};return Object.keys(e).forEach(u=>{Object.defineProperty(l.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(c){var f;c=A(u,c,e),this.$$d[u]=c,(f=this.$$c)==null||f.$set({[u]:c})}})}),r.forEach(u=>{Object.defineProperty(l.prototype,u,{get(){var c;return(c=this.$$c)==null?void 0:c[u]}})}),t.element=l,l}class St{constructor(){h(this,"$$");h(this,"$$set")}$destroy(){Ot(this,1),this.$destroy=F}$on(e,n){if(!Y(n))return F;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o!==-1&&r.splice(o,1)}}$set(e){this.$$set&&!ut(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const At="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(At);function Lt(t){$t(t,"svelte-1xvg6od","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ProgressText{fill:#FFFFFF;text-anchor:middle;dominant-baseline:middle;font-style:normal;font-weight:700;font-size:22.0351951033px}.ProgressTextMobile{font-size:5.1282051282vw}circle.ring{stroke:#F2F4F6;fill:transparent}circle.ring-progress{transition:0.35s stroke-dashoffset;stroke:#C4C4C4;transform:rotate(-90deg);transform-origin:50% 50%}circle.ring-progress.active{stroke:#00AEEF}circle.center{fill:#C4C4C4}circle.center.active{fill:#00AEEF}")}function Mt(t){let e,n,r,o,s,l,u,c,f;L(t[11]);let _=[{class:"ring",r:t[3],cx:t[9],cy:t[9],"stroke-width":`${t[5]}px`}],a={};for(let i=0;i<_.length;i+=1)a=v(a,_[i]);let g=[{class:`ring ring-progress ${t[1]===t[6].InProgress?"active":""}`,r:t[3],cx:t[9],cy:t[9],"stroke-width":`${t[5]}px`,"stroke-dasharray":`${t[8]} ${t[8]}`,"stroke-dashoffset":t[8]-Number(t[0])/100*t[8]}],d={};for(let i=0;i<g.length;i+=1)d=v(d,g[i]);let y=[{class:`center ${t[1]===t[6].InProgress?"active":""}`,r:t[3]-t[5]/2-3,cx:t[9],cy:t[9]}],k={};for(let i=0;i<y.length;i+=1)k=v(k,y[i]);let $=[{x:t[9],y:t[9]},t[7]("ProgressText")],p={};for(let i=0;i<$.length;i+=1)p=v(p,$[i]);let T=[{width:t[4],height:t[4]}],S={};for(let i=0;i<T.length;i+=1)S=v(S,T[i]);return{c(){e=O("svg"),n=O("circle"),r=O("circle"),o=O("circle"),s=O("text"),l=G(t[0]),u=G("%"),m(n,a),m(r,d),m(o,k),m(s,p),m(e,S)},m(i,b){Z(i,e,b),w(e,n),w(e,r),w(e,o),w(e,s),w(s,l),w(s,u),c||(f=ht(window,"resize",t[11]),c=!0)},p(i,[b]){m(n,a=j(_,[b&552&&{class:"ring",r:i[3],cx:i[9],cy:i[9],"stroke-width":`${i[5]}px`}])),m(r,d=j(g,[b&875&&{class:`ring ring-progress ${i[1]===i[6].InProgress?"active":""}`,r:i[3],cx:i[9],cy:i[9],"stroke-width":`${i[5]}px`,"stroke-dasharray":`${i[8]} ${i[8]}`,"stroke-dashoffset":i[8]-Number(i[0])/100*i[8]}])),m(o,k=j(y,[b&618&&{class:`center ${i[1]===i[6].InProgress?"active":""}`,r:i[3]-i[5]/2-3,cx:i[9],cy:i[9]}])),b&1&&pt(l,i[0],p.contenteditable),m(s,p=j($,[b&512&&{x:i[9],y:i[9]},b&128&&i[7]("ProgressText")])),m(e,S=j(T,[b&16&&{width:i[4],height:i[4]}]))},i:F,o:F,d(i){i&&R(e),c=!1,f()}}}function It(t,e,n){let r,o,s,l,u,c,f,{percent:_=""}=e,{status:a=""}=e;var g;(function($){$.BeforeClaimed="BeforeClaimed",$.InProgress="active",$.ForfeitedOrCompleted="ForfeitedOrCompleted"})(g||(g={}));let d=200;const y=($,p="")=>({part:$,class:[$,p].join(" ")});function k(){n(2,d=window.innerWidth)}return t.$$set=$=>{"percent"in $&&n(0,_=$.percent),"status"in $&&n(1,a=$.status)},t.$$.update=()=>{t.$$.dirty&4&&n(10,r=d<=576),t.$$.dirty&1028&&n(4,o=r?d/4:100),t.$$.dirty&16&&n(5,s=o/7.5),t.$$.dirty&48&&n(3,l=o/2-s/2),t.$$.dirty&16&&n(9,u=o/2),t.$$.dirty&8&&n(8,c=l*2*Math.PI),t.$$.dirty&1024&&n(7,f=($,p="")=>y(`${$}${r?` ${$}Mobile`:""}`,p))},[_,a,d,l,o,s,g,f,c,u,r,k]}class nt extends St{constructor(e){super(),Nt(this,e,It,Mt,lt,{percent:0,status:1},Lt)}get percent(){return this.$$.ctx[0]}set percent(e){this.$$set({percent:e}),M()}get status(){return this.$$.ctx[1]}set status(e){this.$$set({status:e}),M()}}Ft(nt,{percent:{},status:{}},[],[],!0);exports.default=nt;
@@ -1,7 +1,8 @@
1
1
  function j() {
2
2
  }
3
3
  function P(t, e) {
4
- for (const n in e) t[n] = e[n];
4
+ for (const n in e)
5
+ t[n] = e[n];
5
6
  return (
6
7
  /** @type {T & S} */
7
8
  t
@@ -37,7 +38,8 @@ function x(t, e, n) {
37
38
  }
38
39
  }
39
40
  function tt(t) {
40
- if (!t) return document;
41
+ if (!t)
42
+ return document;
41
43
  const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
42
44
  return e && /** @type {ShadowRoot} */
43
45
  e.host ? (
@@ -129,7 +131,8 @@ function M() {
129
131
  } catch (e) {
130
132
  throw E.length = 0, k = 0, e;
131
133
  }
132
- for (N(null), E.length = 0, k = 0; D.length; ) D.pop()();
134
+ for (N(null), E.length = 0, k = 0; D.length; )
135
+ D.pop()();
133
136
  for (let e = 0; e < C.length; e += 1) {
134
137
  const n = C[e];
135
138
  B.has(n) || (B.add(n), n());
@@ -10,7 +10,7 @@ var T = (t, e, n) => e in t ? nt(t, e, { enumerable: !0, configurable: !0, writa
10
10
  ot.call(e, n) && T(t, n, e[n]);
11
11
  return t;
12
12
  }, J = (t, e) => st(t, rt(e));
13
- var h = (t, e, n) => T(t, typeof e != "symbol" ? e + "" : e, n);
13
+ var h = (t, e, n) => (T(t, typeof e != "symbol" ? e + "" : e, n), n);
14
14
  var U = (t, e, n) => new Promise((r, o) => {
15
15
  var s = (c) => {
16
16
  try {
@@ -30,7 +30,8 @@ var U = (t, e, n) => new Promise((r, o) => {
30
30
  function F() {
31
31
  }
32
32
  function v(t, e) {
33
- for (const n in e) t[n] = e[n];
33
+ for (const n in e)
34
+ t[n] = e[n];
34
35
  return (
35
36
  /** @type {T & S} */
36
37
  t
@@ -66,7 +67,8 @@ function ft(t, e, n) {
66
67
  }
67
68
  }
68
69
  function $t(t) {
69
- if (!t) return document;
70
+ if (!t)
71
+ return document;
70
72
  const e = t.getRootNode ? t.getRootNode() : t.ownerDocument;
71
73
  return e && /** @type {ShadowRoot} */
72
74
  e.host ? (
@@ -158,7 +160,8 @@ function S() {
158
160
  } catch (e) {
159
161
  throw P.length = 0, E = 0, e;
160
162
  }
161
- for (j(null), P.length = 0, E = 0; K.length; ) K.pop()();
163
+ for (j(null), P.length = 0, E = 0; K.length; )
164
+ K.pop()();
162
165
  for (let e = 0; e < C.length; e += 1) {
163
166
  const n = C[e];
164
167
  z.has(n) || (z.add(n), n());
@@ -1 +1 @@
1
- "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoWageringBonusProgress-zQo4yjHd.cjs")).then(({default:t})=>{!customElements.get("casino-wagering-bonus-progress")&&customElements.define("casino-wagering-bonus-progress",t.element)})}
1
+ "use strict";if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>require("../components/CasinoWageringBonusProgress-6XtWKsAS.cjs")).then(({default:t})=>{!customElements.get("casino-wagering-bonus-progress")&&customElements.define("casino-wagering-bonus-progress",t.element)})}
@@ -10,7 +10,7 @@ if (typeof window != "undefined") {
10
10
  }
11
11
  };
12
12
  };
13
- customElements.define = n(customElements.define), import("../components/CasinoWageringBonusProgress-Dvj2_Nd0.js").then(({ default: t }) => {
13
+ customElements.define = n(customElements.define), import("../components/CasinoWageringBonusProgress-LCiteHbW.js").then(({ default: t }) => {
14
14
  !customElements.get("casino-wagering-bonus-progress") && customElements.define("casino-wagering-bonus-progress", t.element);
15
15
  });
16
16
  }
@@ -1,4 +1,4 @@
1
- import { C as t } from "../components/CasinoWageringBonusProgress-BNOMED5f.js";
1
+ import { C as t } from "../components/CasinoWageringBonusProgress-DmWbuAbi.js";
2
2
  function r(s) {
3
3
  return function(...n) {
4
4
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@everymatrix/casino-wagering-bonus-progress",
3
- "version": "1.55.0",
3
+ "version": "1.56.2",
4
4
  "type": "module",
5
5
  "main": "esnext/casino-wagering-bonus-progress.js",
6
6
  "module": "esnext/casino-wagering-bonus-progress.js",
@@ -1 +0,0 @@
1
- "use strict";var st=Object.defineProperty,rt=Object.defineProperties;var it=Object.getOwnPropertyDescriptors;var D=Object.getOwnPropertySymbols;var ot=Object.prototype.hasOwnProperty,ct=Object.prototype.propertyIsEnumerable;var B=(t,e,n)=>e in t?st(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n,H=(t,e)=>{for(var n in e||(e={}))ot.call(e,n)&&B(t,n,e[n]);if(D)for(var n of D(e))ct.call(e,n)&&B(t,n,e[n]);return t},J=(t,e)=>rt(t,it(e));var h=(t,e,n)=>B(t,typeof e!="symbol"?e+"":e,n);var U=(t,e,n)=>new Promise((r,o)=>{var s=c=>{try{u(n.next(c))}catch(f){o(f)}},l=c=>{try{u(n.throw(c))}catch(f){o(f)}},u=c=>c.done?r(c.value):Promise.resolve(c.value).then(s,l);u((n=n.apply(t,e)).next())});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function F(){}function v(t,e){for(const n in e)t[n]=e[n];return t}function X(t){return t()}function q(){return Object.create(null)}function I(t){t.forEach(X)}function Y(t){return typeof t=="function"}function lt(t,e){return t!=t?e==e:t!==e||t&&typeof t=="object"||typeof t=="function"}function ut(t){return Object.keys(t).length===0}const ft=["",!0,1,"true","contenteditable"];function w(t,e){t.appendChild(e)}function $t(t,e,n){const r=at(t);if(!r.getElementById(e)){const o=x("style");o.id=e,o.textContent=n,dt(r,o)}}function at(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}function dt(t,e){return w(t.head||t,e),e.sheet}function Z(t,e,n){t.insertBefore(e,n||null)}function R(t){t.parentNode&&t.parentNode.removeChild(t)}function x(t){return document.createElement(t)}function O(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function G(t){return document.createTextNode(t)}function ht(t,e,n,r){return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n,r)}function tt(t,e,n){n==null?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function m(t,e){for(const n in e)tt(t,n,e[n])}function _t(t){return Array.from(t.childNodes)}function gt(t,e){e=""+e,t.data!==e&&(t.data=e)}function mt(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function pt(t,e,n){~ft.indexOf(n)?mt(t,e):gt(t,e)}function bt(t){const e={};return t.childNodes.forEach(n=>{e[n.slot||"default"]=!0}),e}let V;function N(t){V=t}const P=[],K=[];let C=[];const Q=[],yt=Promise.resolve();let W=!1;function wt(){W||(W=!0,yt.then(M))}function L(t){C.push(t)}const z=new Set;let E=0;function M(){if(E!==0)return;const t=V;do{try{for(;E<P.length;){const e=P[E];E++,N(e),kt(e.$$)}}catch(e){throw P.length=0,E=0,e}for(N(null),P.length=0,E=0;K.length;)K.pop()();for(let e=0;e<C.length;e+=1){const n=C[e];z.has(n)||(z.add(n),n())}C.length=0}while(P.length);for(;Q.length;)Q.pop()();W=!1,z.clear(),N(t)}function kt(t){if(t.fragment!==null){t.update(),I(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(L)}}function Et(t){const e=[],n=[];C.forEach(r=>t.indexOf(r)===-1?e.push(r):n.push(r)),n.forEach(r=>r()),C=e}const Pt=new Set;function Ct(t,e){t&&t.i&&(Pt.delete(t),t.i(e))}function j(t,e){const n={},r={},o={$$scope:1};let s=t.length;for(;s--;){const l=t[s],u=e[s];if(u){for(const c in l)c in u||(r[c]=1);for(const c in u)o[c]||(n[c]=u[c],o[c]=1);t[s]=u}else for(const c in l)o[c]=1}for(const l in r)l in n||(n[l]=void 0);return n}function vt(t,e,n){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,n),L(()=>{const s=t.$$.on_mount.map(X).filter(Y);t.$$.on_destroy?t.$$.on_destroy.push(...s):I(s),t.$$.on_mount=[]}),o.forEach(L)}function Ot(t,e){const n=t.$$;n.fragment!==null&&(Et(n.after_update),I(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function jt(t,e){t.$$.dirty[0]===-1&&(P.push(t),wt(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Nt(t,e,n,r,o,s,l=null,u=[-1]){const c=V;N(t);const f=t.$$={fragment:null,ctx:[],props:s,update:F,not_equal:o,bound:q(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:q(),dirty:u,skip_bound:!1,root:e.target||c.$$.root};l&&l(f.root);let _=!1;if(f.ctx=n?n(t,e.props||{},(a,g,...d)=>{const y=d.length?d[0]:g;return f.ctx&&o(f.ctx[a],f.ctx[a]=y)&&(!f.skip_bound&&f.bound[a]&&f.bound[a](y),_&&jt(t,a)),g}):[],f.update(),_=!0,I(f.before_update),f.fragment=r?r(f.ctx):!1,e.target){if(e.hydrate){const a=_t(e.target);f.fragment&&f.fragment.l(a),a.forEach(R)}else f.fragment&&f.fragment.c();e.intro&&Ct(t.$$.fragment),vt(t,e.target,e.anchor),M()}N(c)}let et;typeof HTMLElement=="function"&&(et=class extends HTMLElement{constructor(e,n,r){super();h(this,"$$ctor");h(this,"$$s");h(this,"$$c");h(this,"$$cn",!1);h(this,"$$d",{});h(this,"$$r",!1);h(this,"$$p_d",{});h(this,"$$l",{});h(this,"$$l_u",new Map);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 o=this.$$c.$on(e,n);this.$$l_u.set(n,o)}super.addEventListener(e,n,r)}removeEventListener(e,n,r){if(super.removeEventListener(e,n,r),this.$$c){const o=this.$$l_u.get(n);o&&(o(),this.$$l_u.delete(n))}}connectedCallback(){return U(this,null,function*(){if(this.$$cn=!0,!this.$$c){let e=function(s){return()=>{let l;return{c:function(){l=x("slot"),s!=="default"&&tt(l,"name",s)},m:function(f,_){Z(f,l,_)},d:function(f){f&&R(l)}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},r=bt(this);for(const s of this.$$s)s in r&&(n[s]=[e(s)]);for(const s of this.attributes){const l=this.$$g_p(s.name);l in this.$$d||(this.$$d[l]=A(l,s.value,this.$$p_d,"toProp"))}for(const s in this.$$p_d)!(s in this.$$d)&&this[s]!==void 0&&(this.$$d[s]=this[s],delete this[s]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:J(H({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const o=()=>{this.$$r=!0;for(const s in this.$$p_d)if(this.$$d[s]=this.$$c.$$.ctx[this.$$c.$$.props[s]],this.$$p_d[s].reflect){const l=A(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};this.$$c.$$.after_update.push(o),o();for(const s in this.$$l)for(const l of this.$$l[s]){const u=this.$$c.$on(s,l);this.$$l_u.set(l,u)}this.$$l={}}})}attributeChangedCallback(e,n,r){var o;this.$$r||(e=this.$$g_p(e),this.$$d[e]=A(e,r,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.$$c=void 0)})}$$g_p(e){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===e||!this.$$p_d[n].attribute&&n.toLowerCase()===e)||e}});function A(t,e,n,r){var s;const o=(s=n[t])==null?void 0:s.type;if(e=o==="Boolean"&&typeof e!="boolean"?e!=null:e,!r||!n[t])return e;if(r==="toAttribute")switch(o){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(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 Ft(t,e,n,r,o,s){let l=class extends et{constructor(){super(t,n,o),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map(u=>(e[u].attribute||u).toLowerCase())}};return Object.keys(e).forEach(u=>{Object.defineProperty(l.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(c){var f;c=A(u,c,e),this.$$d[u]=c,(f=this.$$c)==null||f.$set({[u]:c})}})}),r.forEach(u=>{Object.defineProperty(l.prototype,u,{get(){var c;return(c=this.$$c)==null?void 0:c[u]}})}),t.element=l,l}class St{constructor(){h(this,"$$");h(this,"$$set")}$destroy(){Ot(this,1),this.$destroy=F}$on(e,n){if(!Y(n))return F;const r=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return r.push(n),()=>{const o=r.indexOf(n);o!==-1&&r.splice(o,1)}}$set(e){this.$$set&&!ut(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const At="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(At);function Lt(t){$t(t,"svelte-1xvg6od","*,*::before,*::after{margin:0;padding:0;list-style:none;text-decoration:none;outline:none;box-sizing:border-box}.ProgressText{fill:#FFFFFF;text-anchor:middle;dominant-baseline:middle;font-style:normal;font-weight:700;font-size:22.0351951033px}.ProgressTextMobile{font-size:5.1282051282vw}circle.ring{stroke:#F2F4F6;fill:transparent}circle.ring-progress{transition:0.35s stroke-dashoffset;stroke:#C4C4C4;transform:rotate(-90deg);transform-origin:50% 50%}circle.ring-progress.active{stroke:#00AEEF}circle.center{fill:#C4C4C4}circle.center.active{fill:#00AEEF}")}function Mt(t){let e,n,r,o,s,l,u,c,f;L(t[11]);let _=[{class:"ring",r:t[3],cx:t[9],cy:t[9],"stroke-width":`${t[5]}px`}],a={};for(let i=0;i<_.length;i+=1)a=v(a,_[i]);let g=[{class:`ring ring-progress ${t[1]===t[6].InProgress?"active":""}`,r:t[3],cx:t[9],cy:t[9],"stroke-width":`${t[5]}px`,"stroke-dasharray":`${t[8]} ${t[8]}`,"stroke-dashoffset":t[8]-Number(t[0])/100*t[8]}],d={};for(let i=0;i<g.length;i+=1)d=v(d,g[i]);let y=[{class:`center ${t[1]===t[6].InProgress?"active":""}`,r:t[3]-t[5]/2-3,cx:t[9],cy:t[9]}],k={};for(let i=0;i<y.length;i+=1)k=v(k,y[i]);let $=[{x:t[9],y:t[9]},t[7]("ProgressText")],p={};for(let i=0;i<$.length;i+=1)p=v(p,$[i]);let T=[{width:t[4],height:t[4]}],S={};for(let i=0;i<T.length;i+=1)S=v(S,T[i]);return{c(){e=O("svg"),n=O("circle"),r=O("circle"),o=O("circle"),s=O("text"),l=G(t[0]),u=G("%"),m(n,a),m(r,d),m(o,k),m(s,p),m(e,S)},m(i,b){Z(i,e,b),w(e,n),w(e,r),w(e,o),w(e,s),w(s,l),w(s,u),c||(f=ht(window,"resize",t[11]),c=!0)},p(i,[b]){m(n,a=j(_,[b&552&&{class:"ring",r:i[3],cx:i[9],cy:i[9],"stroke-width":`${i[5]}px`}])),m(r,d=j(g,[b&875&&{class:`ring ring-progress ${i[1]===i[6].InProgress?"active":""}`,r:i[3],cx:i[9],cy:i[9],"stroke-width":`${i[5]}px`,"stroke-dasharray":`${i[8]} ${i[8]}`,"stroke-dashoffset":i[8]-Number(i[0])/100*i[8]}])),m(o,k=j(y,[b&618&&{class:`center ${i[1]===i[6].InProgress?"active":""}`,r:i[3]-i[5]/2-3,cx:i[9],cy:i[9]}])),b&1&&pt(l,i[0],p.contenteditable),m(s,p=j($,[b&512&&{x:i[9],y:i[9]},b&128&&i[7]("ProgressText")])),m(e,S=j(T,[b&16&&{width:i[4],height:i[4]}]))},i:F,o:F,d(i){i&&R(e),c=!1,f()}}}function It(t,e,n){let r,o,s,l,u,c,f,{percent:_=""}=e,{status:a=""}=e;var g;(function($){$.BeforeClaimed="BeforeClaimed",$.InProgress="active",$.ForfeitedOrCompleted="ForfeitedOrCompleted"})(g||(g={}));let d=200;const y=($,p="")=>({part:$,class:[$,p].join(" ")});function k(){n(2,d=window.innerWidth)}return t.$$set=$=>{"percent"in $&&n(0,_=$.percent),"status"in $&&n(1,a=$.status)},t.$$.update=()=>{t.$$.dirty&4&&n(10,r=d<=576),t.$$.dirty&1028&&n(4,o=r?d/4:100),t.$$.dirty&16&&n(5,s=o/7.5),t.$$.dirty&48&&n(3,l=o/2-s/2),t.$$.dirty&16&&n(9,u=o/2),t.$$.dirty&8&&n(8,c=l*2*Math.PI),t.$$.dirty&1024&&n(7,f=($,p="")=>y(`${$}${r?` ${$}Mobile`:""}`,p))},[_,a,d,l,o,s,g,f,c,u,r,k]}class nt extends St{constructor(e){super(),Nt(this,e,It,Mt,lt,{percent:0,status:1},Lt)}get percent(){return this.$$.ctx[0]}set percent(e){this.$$set({percent:e}),M()}get status(){return this.$$.ctx[1]}set status(e){this.$$set({status:e}),M()}}Ft(nt,{percent:{},status:{}},[],[],!0);exports.default=nt;