System.register(["./index-legacy-9fc2ee5c.js","./vendor-legacy-aeda4e3d.js"],function(e,r){"use strict";var t,n,i,o,a,s;return{setters:[e=>{t=e.a,n=e.f,i=e.x,o=e.r,a=e.y},e=>{s=e.U}],execute:function(){e("t",(e,r,i)=>{switch(e){case 1:return s(new Date).add(r||0,"day").format("DD/MM/YYYY");case 2:return n("daily_settlement");case 3:const e=t();return s(i).add(r||0,"day").tz(e.timezone).format("DD/MM/YYYY HH:mm:ss")}}),e("k",e=>{switch(e){case 0:return{color:"#2654FF",name:n("In_position")};case 1:return{color:"#838B9C",name:n("Settled")};case 2:return{color:"#17AC74",name:n("host_redeemed")}}}),e("l",(e,r)=>e.slice().sort((e,t)=>e[r].toLowerCase().localeCompare(t[r].toLowerCase()))),e("a",(e,r)=>e.slice().sort((e,t)=>t[r].toLowerCase().localeCompare(e[r].toLowerCase()))),e("L",(e,r,t,n=0)=>{if(n)e.forEach(e=>{switch(i(r[e.coin]?.open,r[e.coin]?.close)){case"rise":default:e.latestPrice=Number(r[e.coin][t]);break;case"fall":e.latestPrice=-Number(r[e.coin][t])}}),o=e;else var o=e.map(function(e){return{...e,latestPrice:r[e.coin][t]?Number(r[e.coin][t]):0}});return o.slice(0).sort(function(e,r){return e.latestPrice-r.latestPrice})}),e("b",(e,r,t,n=0)=>{if(n)e.forEach(e=>{switch(i(r[e.coin]?.open,r[e.coin]?.close)){case"rise":default:e.latestPrice=Number(r[e.coin][t]);break;case"fall":e.latestPrice=-Number(r[e.coin][t])}}),o=e;else var o=e.map(function(e){return{...e,latestPrice:r[e.coin][t]?Number(r[e.coin][t]):0}});return o.slice(0).sort(function(e,r){return r.latestPrice-e.latestPrice})}),e("j",(e,r)=>e.filter(function(e){return 2===e.customizeFlag?-1!==e.showSymbol.indexOf(r.toUpperCase()):-1!==e.coin.indexOf(r.toLowerCase())})),e("f",(e,r,t)=>{let n=[];return n=r.length?2==t?e.filter((e,t)=>-1!==e.coin.indexOf(r.toLowerCase())):e.filter((e,t)=>-1!==e.showSymbol.indexOf(r.toUpperCase())):e,n}),e("i",e=>(e=Math.round(Number(e)),`${Math.floor(e/60).toString().padStart(2,"0")}:${(e%60).toString().padStart(2,"0")}`)),e("g",e=>{e=Math.round(Number(e));const r=Math.floor(e/3600),t=Math.floor((e-3600*r)/60),n=e-3600*r-60*t;return`${r.toString().padStart(2,"0")}:${t.toString().padStart(2,"0")}:${n.toString().padStart(2,"0")}`}),e("h",(e,r)=>{let t=[];return e.length>0?(e.forEach(e=>{e.symbol===r&&t.push(e)}),t):e}),e("e",(e,r,t,n,i,a)=>{r=Number(r),t=Number(t),n=Number(n);const s=o(n,i);if(a)if(e){if(r>t)return"-"+n;if(r===t)return"0.00";if(r<t)return"+"+s}else{if(r>t)return"+"+s;if(r===t)return"0.00";if(r<t)return"-"+n}else if(e){if(r>t)return"-"+s;if(r===t)return"0.00";if(r<t)return"+"+s}else{if(r>t)return"+"+s;if(r===t)return"0.00";if(r<t)return"-"+s}}),e("d",(e,r,t)=>{if(r=Number(r),t=Number(t),e){if(r>t)return"hightDown";if(r===t)return"";if(r<t)return"hightUp"}else{if(r>t)return"hightUp";if(r===t)return"";if(r<t)return"hightDown"}}),e("c",(e,r)=>e>r?"-"+a(e,r):e===r?0:e<r?"+"+a(r,e):void 0),e("p",(e,r)=>e>r?"hightDown":e===r?"":e<r?"hightUp":void 0),e("m",(e,r)=>{if(r){const t=e.indexOf(r);return e.substring(0,t)}return e})}}});
