uptime/client/_number_.ea472d13.js

22 lines
202 KiB
JavaScript
Raw Normal View History

import{S as t,i as e,s as i,e as s,b as n,d as o,f as a,h as r,j as l,t as h,k as c,l as d,o as u,r as f,m as g,a as p,n as m,c as b,g as x,G as _,p as y,A as v,q as w,w as M,x as k,y as S,z as D,u as P,v as C,Q as O,R as A,T,U as L,V as E,W as R,D as I,X as z,Y as F,Z as $}from"./client.5a380abf.js";import{h as V,L as B,c as N,a as W}from"./createOctokit.d7cad40f.js";function H(t){let e,i,l,h,c,d,u,M,k,S,D,P,C,O,A=t[1].name+"",T=("up"===t[1].status?f.i18n.up:f.i18n.down)+"",L=f.i18n.overallUptimeTitle+"",E=t[1].uptime+"",R=(void 0===t[1].showAverageResponseTime||t[1].showAverageResponseTime)&&Y(t);return{c(){e=s("h1"),i=s("a"),l=g(A),c=p(),d=s("span"),u=g(T),k=p(),S=s("dl"),D=s("dt"),P=g(L),C=s("dd"),O=g(E),R&&R.c(),this.h()},l(t){e=n(t,"H1",{});var s=o(e);i=n(s,"A",{class:!0,href:!0});var r=o(i);l=m(r,A),r.forEach(a),c=b(s),d=n(s,"SPAN",{class:!0});var h=o(d);u=m(h,T),h.forEach(a),s.forEach(a),k=b(t),S=n(t,"DL",{});var f=o(S);D=n(f,"DT",{});var g=o(D);P=m(g,L),g.forEach(a),C=n(f,"DD",{});var p=o(C);O=m(p,E),p.forEach(a),R&&R.l(f),f.forEach(a),this.h()},h(){x(i,"class","no-underline svelte-1d3m0a"),x(i,"href",h=t[1].url.startsWith("$")?"#":t[1].url),x(d,"class",M=_(`tag ${t[1].status}`)+" svelte-1d3m0a")},m(t,s){r(t,e,s),y(e,i),y(i,l),y(e,c),y(e,d),y(d,u),r(t,k,s),r(t,S,s),y(S,D),y(D,P),y(S,C),y(C,O),R&&R.m(S,null)},p(t,e){2&e&&A!==(A=t[1].name+"")&&v(l,A),2&e&&h!==(h=t[1].url.startsWith("$")?"#":t[1].url)&&x(i,"href",h),2&e&&T!==(T=("up"===t[1].status?f.i18n.up:f.i18n.down)+"")&&v(u,T),2&e&&M!==(M=_(`tag ${t[1].status}`)+" svelte-1d3m0a")&&x(d,"class",M),2&e&&E!==(E=t[1].uptime+"")&&v(O,E),void 0===t[1].showAverageResponseTime||t[1].showAverageResponseTime?R?R.p(t,e):(R=Y(t),R.c(),R.m(S,null)):R&&(R.d(1),R=null)},i:w,o:w,d(t){t&&a(e),t&&a(k),t&&a(S),R&&R.d()}}}function j(t){let e,i;return e=new B({}),{c(){M(e.$$.fragment)},l(t){k(e.$$.fragment,t)},m(t,s){S(e,t,s),i=!0},p:w,i(t){i||(d(e.$$.fragment,t),i=!0)},o(t){h(e.$$.fragment,t),i=!1},d(t){D(e,t)}}}function Y(t){let e,i,l,h,c,d=f.i18n.averageResponseTimeTitle+"",u=t[1].time+"",p=f.i18n.ms+"";return{c(){e=s("dt"),i=g(d),l=s("dd"),h=g(u),c=g(p)},l(t){e=n(t,"DT",{});var s=o(e);i=m(s,d),s.forEach(a),l=n(t,"DD",{});var r=o(l);h=m(r,u),c=m(r,p),r.forEach(a)},m(t,s){r(t,e,s),y(e,i),r(t,l,s),y(l,h),y(l,c)},p(t,e){2&e&&u!==(u=t[1].time+"")&&v(h,u)},d(t){t&&a(e),t&&a(l)}}}function U(t){let e,i,u,f;const g=[j,H],p=[];function m(t,e){return t[0]?0:t[1]?1:-1}return~(i=m(t))&&(u=p[i]=g[i](t)),{c(){e=s("section"),u&&u.c()},l(t){e=n(t,"SECTION",{});var i=o(e);u&&u.l(i),i.forEach(a)},m(t,s){r(t,e,s),~i&&p[i].m(e,null),f=!0},p(t,[s]){let n=i;i=m(t),i===n?~i&&p[i].p(t,s):(u&&(l(),h(p[n],1,1,(()=>{p[n]=null})),c()),~i?(u=p[i],u?u.p(t,s):(u=p[i]=g[i](t),u.c()),d(u,1),u.m(e,null)):u=null)},i(t){f||(d(u),f=!0)},o(t){h(u),f=!1},d(t){t&&a(e),~i&&p[i].d()}}}function X(t,e,i){let{slug:s}=e,n=!0,{apiBaseUrl:o}=f["status-website"]||{};o||(o="https://api.github.com");const a=o.includes("api.github.com")?"https://raw.githubusercontent.com":o,r=f.owner,l=f.repo;let h=null;return u((async()=>{try{const t=await fetch(`${a}/${r}/${l}/master/history/summary.json`);i(1,h=(await t.json()).find((t=>t.slug===s)))}catch(t){V(t)}i(0,n=!1)})),t.$$set=t=>{"slug"in t&&i(2,s=t.slug)},[n,h,s]}class q extends t{constructor(t){super(),e(this,t,X,U,i,{slug:2})}}function K(t,e,i){const s=t.slice();return s[6]=e[i],s}function G(t){let e,i,l,h,c=f.i18n.pastIncidents+"",d=t[1],u=[];for(let e=0;e<d.length;e+=1)u[e]=Q(K(t,d,e));return{c(){e=s("h2"),i=g(c),l=p();for(let t=0;t<u.length;t+=1)u[t].c();h=P(),this.h()},l(t){e=n(t,"H2",{class:!0});var s=o(e);i=m(s,c),s.forEach(a),l=b(t);for(let e=0;e<u.length;e+=1)u[e].l(t);h=P(),this.h()},h(){x(e,"class","svelte-18y4uo2")},m(t,s){r(t,e,s),y(e,i),r(t,l,s);for(let e=0;e<u.length;e+=1)u[e].m(t,s);r(t,h,s)},p(t,e){if(2&e){let i;for(d=t[1],i=0;i<d.length;i+=1){const s=K(t,d,i);u[i]?u[i].p(s,e):(u[i]=Q(s),u[i].c(),u[i].m(h.parentNode,h))}for(;i<u.length;i+=1)u[i].d(1);u.length=d.length}},i:w,o:w,d(t){t&&a(e),t&&a(l),C(u,t),t&&a(h)}}}function Z(t){let e,i;return e=new B({}),{c(){M(e.
/*!
* Chart.js v3.8.0
* https://www.chartjs.org
* (c) 2022 Chart.js Contributors
* Released under the MIT License
*/
const st="undefined"==typeof window?function(t){return t()}:window.requestAnimationFrame;function nt(t,e,i){const s=i||(t=>Array.prototype.slice.call(t));let n=!1,o=[];return function(...i){o=s(i),n||(n=!0,st.call(window,(()=>{n=!1,t.apply(e,o)})))}}const ot=t=>"start"===t?"left":"end"===t?"right":"center",at=(t,e,i)=>"start"===t?e:"end"===t?i:(e+i)/2;function rt(){}const lt=function(){let t=0;return function(){return t++}}();function ht(t){return null==t}function ct(t){if(Array.isArray&&Array.isArray(t))return!0;const e=Object.prototype.toString.call(t);return"[object"===e.slice(0,7)&&"Array]"===e.slice(-6)}function dt(t){return null!==t&&"[object Object]"===Object.prototype.toString.call(t)}const ut=t=>("number"==typeof t||t instanceof Number)&&isFinite(+t);function ft(t,e){return ut(t)?t:e}function gt(t,e){return void 0===t?e:t}const pt=(t,e)=>"string"==typeof t&&t.endsWith("%")?parseFloat(t)/100*e:+t;function mt(t,e,i){if(t&&"function"==typeof t.call)return t.apply(i,e)}function bt(t,e,i,s){let n,o,a;if(ct(t))if(o=t.length,s)for(n=o-1;n>=0;n--)e.call(i,t[n],n);else for(n=0;n<o;n++)e.call(i,t[n],n);else if(dt(t))for(a=Object.keys(t),o=a.length,n=0;n<o;n++)e.call(i,t[a[n]],a[n])}function xt(t,e){let i,s,n,o;if(!t||!e||t.length!==e.length)return!1;for(i=0,s=t.length;i<s;++i)if(n=t[i],o=e[i],n.datasetIndex!==o.datasetIndex||n.index!==o.index)return!1;return!0}function _t(t){if(ct(t))return t.map(_t);if(dt(t)){const e=Object.create(null),i=Object.keys(t),s=i.length;let n=0;for(;n<s;++n)e[i[n]]=_t(t[i[n]]);return e}return t}function yt(t){return-1===["__proto__","prototype","constructor"].indexOf(t)}function vt(t,e,i,s){if(!yt(t))return;const n=e[t],o=i[t];dt(n)&&dt(o)?wt(n,o,s):e[t]=_t(o)}function wt(t,e,i){const s=ct(e)?e:[e],n=s.length;if(!dt(t))return t;const o=(i=i||{}).merger||vt;for(let a=0;a<n;++a){if(!dt(e=s[a]))continue;const n=Object.keys(e);for(let s=0,a=n.length;s<a;++s)o(n[s],t,e,i)}return t}function Mt(t,e){return wt(t,e,{merger:kt})}function kt(t,e,i){if(!yt(t))return;const s=e[t],n=i[t];dt(s)&&dt(n)?Mt(s,n):Object.prototype.hasOwnProperty.call(e,t)||(e[t]=_t(n))}function St(t,e){const i=t.indexOf(".",e);return-1===i?t.length:i}function Dt(t,e){if(""===e)return t;let i=0,s=St(e,i);for(;t&&s>i;)t=t[e.slice(i,s)],i=s+1,s=St(e,i);return t}function Pt(t){return t.charAt(0).toUpperCase()+t.slice(1)}const Ct=t=>void 0!==t,Ot=t=>"function"==typeof t,At=(t,e)=>{if(t.size!==e.size)return!1;for(const i of t)if(!e.has(i))return!1;return!0};const Tt=Math.PI,Lt=2*Tt,Et=Lt+Tt,Rt=Number.POSITIVE_INFINITY,It=Tt/180,zt=Tt/2,Ft=Tt/4,$t=2*Tt/3,Vt=Math.log10,Bt=Math.sign;function Nt(t){const e=Math.round(t);t=Ht(t,e,t/1e3)?e:t;const i=Math.pow(10,Math.floor(Vt(t))),s=t/i;return(s<=1?1:s<=2?2:s<=5?5:10)*i}function Wt(t){return!isNaN(parseFloat(t))&&isFinite(t)}function Ht(t,e,i){return Math.abs(t-e)<i}function jt(t,e,i){let s,n,o;for(s=0,n=t.length;s<n;s++)o=t[s][i],isNaN(o)||(e.min=Math.min(e.min,o),e.max=Math.max(e.max,o))}function Yt(t){return t*(Tt/180)}function Ut(t){return t*(180/Tt)}function Xt(t){if(!ut(t))return;let e=1,i=0;for(;Math.round(t*e)/e!==t;)e*=10,i++;return i}function qt(t,e){const i=e.x-t.x,s=e.y-t.y,n=Math.sqrt(i*i+s*s);let o=Math.atan2(s,i);return o<-.5*Tt&&(o+=Lt),{angle:o,distance:n}}function Kt(t,e){return Math.sqrt(Math.pow(e.x-t.x,2)+Math.pow(e.y-t.y,2))}function Gt(t,e){return(t-e+Et)%Lt-Tt}function Zt(t){return(t%Lt+Lt)%Lt}function Jt(t,e,i,s){const n=Zt(t),o=Zt(e),a=Zt(i),r=Zt(o-n),l=Zt(a-n),h=Zt(n-o),c=Zt(n-a);return n===o||n===a||s&&o===a||r>l&&h<c}function Qt(t,e,i){return Math.max(e,Math.min(i,t))}function te(t,e,i,s=1e-6){return t>=Math.min(e,i)-s&&t<=Math.max(e,i)+s}const ee=t=>0===t||1===t,ie=(t,e,i)=>-Math.pow(2,10*(t-=1))*Math.sin((t-e)*Lt/i),se=(t,e,i)=>Math.pow(2,-10*t)*Math.sin((t-e)*Lt/i)+1,ne={linear:t=>t,easeInQuad:t=>t*t,easeOutQuad:t=>-t*(t-2),easeInOutQuad:t=>(t/=.5)<1?.5*t*t:-.5*(--t*(t-2)-1),easeInCubic:t=>t*t*t,easeOutCubic:t=>(t-=1)*t*t+1,easeInOutCubic:t=>(t/=.5)<1?.5*t*t*t:.5*((t-=2)*t*t+2),easeInQuart:t=>t*t*t*t,easeOutQuart:t=>-((t-=1)*t*t*t-1),easeInOutQuart:t=>(t/=.5)<
/*!
* @kurkle/color v0.2.1
* https://github.com/kurkle/color#readme
* (c) 2022 Jukka Kurkela
* Released under the MIT License
*/
function oe(t){return t+.5|0}const ae=(t,e,i)=>Math.max(Math.min(t,i),e);function re(t){return ae(oe(2.55*t),0,255)}function le(t){return ae(oe(255*t),0,255)}function he(t){return ae(oe(t/2.55)/100,0,1)}function ce(t){return ae(oe(100*t),0,100)}const de={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},ue=[..."0123456789ABCDEF"],fe=t=>ue[15&t],ge=t=>ue[(240&t)>>4]+ue[15&t],pe=t=>(240&t)>>4==(15&t);function me(t){var e=(t=>pe(t.r)&&pe(t.g)&&pe(t.b)&&pe(t.a))(t)?fe:ge;return t?"#"+e(t.r)+e(t.g)+e(t.b)+((t,e)=>t<255?e(t):"")(t.a,e):void 0}const be=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function xe(t,e,i){const s=e*Math.min(i,1-i),n=(e,n=(e+t/30)%12)=>i-s*Math.max(Math.min(n-3,9-n,1),-1);return[n(0),n(8),n(4)]}function _e(t,e,i){const s=(s,n=(s+t/60)%6)=>i-i*e*Math.max(Math.min(n,4-n,1),0);return[s(5),s(3),s(1)]}function ye(t,e,i){const s=xe(t,1,.5);let n;for(e+i>1&&(n=1/(e+i),e*=n,i*=n),n=0;n<3;n++)s[n]*=1-e-i,s[n]+=e;return s}function ve(t){const e=t.r/255,i=t.g/255,s=t.b/255,n=Math.max(e,i,s),o=Math.min(e,i,s),a=(n+o)/2;let r,l,h;return n!==o&&(h=n-o,l=a>.5?h/(2-n-o):h/(n+o),r=function(t,e,i,s,n){return t===n?(e-i)/s+(e<i?6:0):e===n?(i-t)/s+2:(t-e)/s+4}(e,i,s,h,n),r=60*r+.5),[0|r,l||0,a]}function we(t,e,i,s){return(Array.isArray(e)?t(e[0],e[1],e[2]):t(e,i,s)).map(le)}function Me(t,e,i){return we(xe,t,e,i)}function ke(t){return(t%360+360)%360}function Se(t){const e=be.exec(t);let i,s=255;if(!e)return;e[5]!==i&&(s=e[6]?re(+e[5]):le(+e[5]));const n=ke(+e[2]),o=+e[3]/100,a=+e[4]/100;return i="hwb"===e[1]?function(t,e,i){return we(ye,t,e,i)}(n,o,a):"hsv"===e[1]?function(t,e,i){return we(_e,t,e,i)}(n,o,a):Me(n,o,a),{r:i[0],g:i[1],b:i[2],a:s}}const De={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Pe={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:
/*!
* Chart.js v3.8.0
* https://www.chartjs.org
* (c) 2022 Chart.js Contributors
* Released under the MIT License
*/var ms=new class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,s){const n=e.listeners[s],o=e.duration;n.forEach((s=>s({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)})))}_refresh(){this._request||(this._running=!0,this._request=st.call(window,(()=>{this._update(),this._request=null,this._running&&this._refresh()})))}_update(t=Date.now()){let e=0;this._charts.forEach(((i,s)=>{if(!i.running||!i.items.length)return;const n=i.items;let o,a=n.length-1,r=!1;for(;a>=0;--a)o=n[a],o._active?(o._total>i.duration&&(i.duration=o._total),o.tick(t),r=!0):(n[a]=n[n.length-1],n.pop());r&&(s.draw(),this._notify(s,i,t,"progress")),n.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),e+=n.length})),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){e&&e.length&&this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce(((t,e)=>Math.max(t,e._duration)),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!!(e&&e.running&&e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}};const bs={boolean:(t,e,i)=>i>.5?e:t,color(t,e,i){const s=Be(t||"transparent"),n=s.valid&&Be(e||"transparent");return n&&n.valid?n.mix(s,i).hexString():e},number:(t,e,i)=>t+(e-t)*i};class xs{constructor(t,e,i,s){const n=e[i];s=gi([t.to,s,n,t.from]);const o=gi([t.from,n,s]);this._active=!0,this._fn=t.fn||bs[t.type||typeof o],this._easing=ne[t.easing]||ne.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=o,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const s=this._target[this._prop],n=i-this._start,o=this._duration-n;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=n,this._loop=!!t.loop,this._to=gi([t.to,e,s,t.from]),this._from=gi([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,s=this._prop,n=this._from,o=this._loop,a=this._to;let r;if(this._active=n!==a&&(o||e<i),!this._active)return this._target[s]=a,void this._notify(!0);e<0?this._target[s]=n:(r=e/i%2,r=o&&r>1?2-r:r,r=this._easing(Math.min(1,Math.max(0,r))),this._target[s]=this._fn(n,a,r))}wait(){const t=this._promises||(this._promises=[]);return new Promise(((e,i)=>{t.push({res:e,rej:i})}))}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let t=0;t<i.length;t++)i[t][e]()}}Ue.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0});const _s=Object.keys(Ue.animation);Ue.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),Ue.set("animations",{colors:{type:"color",properties:["color","borderColor","backgroundColor"]},numbers:{type:"number",properties:["x","y","borderWidth","radius","tension"]}}),Ue.describe("animations",{_fallback:"animation"}),Ue.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}});class ys{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!dt(t))return;const e=this._properties;Object.getOwnPropertyNames(t).forEach((i=>{const s=t[i];if(!dt(s))return;const n={};for(const t of _s)n[t]=s[t];(ct(s.p