From 2ebc06ca96b748cd4999fa7e115ab837d4b083a4 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 12 Jun 2021 05:16:50 +0000 Subject: [PATCH] chore(gh-bot): :rocket: deploy to github pages --- docs/404.html | 5 ----- docs/index.html | 6 ------ docs/js/main.min.js | 10 +--------- 3 files changed, 1 insertion(+), 20 deletions(-) delete mode 100644 docs/404.html delete mode 100644 docs/index.html diff --git a/docs/404.html b/docs/404.html deleted file mode 100644 index 60fd733..0000000 --- a/docs/404.html +++ /dev/null @@ -1,5 +0,0 @@ -<<<<<<< HEAD -404 Page

404 Page

You might be lost, wanna go back home?

-======= -404 Page

404 Page

You might be lost, wanna go back home?

->>>>>>> 500ff313fcdea9c6a5c08a094a976387088813cf diff --git a/docs/index.html b/docs/index.html deleted file mode 100644 index 5e6ee1a..0000000 --- a/docs/index.html +++ /dev/null @@ -1,6 +0,0 @@ -bundle - a quick npm package size checker

bundle

a quick npm package size checker (Visit Counter)

...

* Check the console for error messages and bundled code.

* Every 10 results the console will be cleared.


* Note: Treeshaking is available, but since esbuild and rollup doesn't have access to each packages package.json, it assumes that there are sideEffects.


* If an error occurs try using a different CDN, by default bundle uses esm.sh but you can use others, here is a list of CDN's that I know of:

about

* All text with cross through lines, are no longer true

I used monaco-editor for the code-editor, esbuild rollup as a bundler, pako as a js port of the zlib and gzip libraries, pretty-bytes to convert the gzip size to human readable values, and countapi-js to keep track of the number of page visits, in a private and secure way.

This project was greatly influenced by -<<<<<<< HEAD - hardfists neo-tools and mizchi's uniroll project.

bundle is a quick and easy way to bundle your projects and see the minified and gzip size, it's similar to bundlephobia but does all the work locally on you computer and can treeshake multiple packages (both commonjs and esm) into a bundle, it currently doesn't support JSX, but packages without JSX are good.

The project isn't perfect, I am still working on an autocomplete, hover intellisence, better mobile support and the high memory usage of esbuild and monaco as well as some edge case packages, e.g. fastify.

If there is something I missed, a mistake, or a feature you would like added please create an issue or a pull request and I'll try to get to it. You can contribute to this project at okikio/bundle.

bundle uses Conventional Commits as the style of commit, and the Commitizen CLI to make commits easier.

You can join the discussion on github discussions.

-======= - hardfists neo-tools and mizchi's uniroll project.

bundle is a quick and easy way to bundle your projects and see the minified and gzip size, it's similar to bundlephobia but does all the work locally on you computer and can treeshake multiple packages (both commonjs and esm) into a bundle, it currently doesn't support JSX, but packages without JSX are good.

The project isn't perfect, I am still working on an autocomplete, hover intellisence, better mobile support and the high memory usage of esbuild and monaco as well as some edge case packages, e.g. fastify.

If there is something I missed, a mistake, or a feature you would like added please create an issue or a pull request and I'll try to get to it. You can contribute to this project at okikio/bundle.

bundle uses Conventional Commits as the style of commit, and the Commitizen CLI to make commits easier.

You can join the discussion on github discussions.

->>>>>>> 500ff313fcdea9c6a5c08a094a976387088813cf diff --git a/docs/js/main.min.js b/docs/js/main.min.js index ec09cbc..a89adf2 100644 --- a/docs/js/main.min.js +++ b/docs/js/main.min.js @@ -1,9 +1 @@ -<<<<<<< HEAD -function Et(t){let e=document.createElement("a");return e.setAttribute("href",t),e.cloneNode(!1).href}function St(t){return new Promise(((e,i)=>{let s="$importModule$"+Math.random().toString(32).slice(2),n=document.createElement("script"),r=()=>{delete window[s],n.onerror=null,n.onload=null,n.remove(),URL.revokeObjectURL(n.src),n.src=""};n.defer="defer",n.type="module",n.onerror=()=>{i(new Error(`Failed to import: ${t}`)),r()},n.onload=()=>{e(window[s]),r()};let a=`import * as m from "${Et(t)}"; window.${s} = m;`,o=new Blob([a],{type:"text/javascript"});n.src=URL.createObjectURL(o),document.head.appendChild(n)}))}var it=St,At={},st=!1;try{st=!0}catch(t){}var rt=async t=>await(st?import(t):it(t)),vt=new Event("theme-change",{bubbles:!0,cancelable:!0,composed:!1}),nt=()=>{let t=window.localStorage.getItem("theme");return"string"==typeof t?t:null},Ot=t=>{"string"==typeof t&&window.localStorage.setItem("theme",t)},Pt=()=>{let t=window.matchMedia("(prefers-color-scheme: dark)");return"boolean"==typeof t.matches?t.matches?"dark":"light":null},V=document.querySelector("html"),at=()=>{let t=V.getAttribute("data-theme");return"string"==typeof t&&t.length?t:nt()},M=t=>{V.setAttribute("data-theme",t),V.classList.toggle("dark","dark"==t),Ot(t),document.dispatchEvent(vt)},xt=()=>{try{let t=nt();null===t&&(t=Pt()),t&&M(t),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(t=>{M(t.matches?"dark":"light")})),window.matchMedia("(prefers-color-scheme: light)").addEventListener("change",(t=>{M(t.matches?"light":"dark")}))}catch(t){console.warn("Theming isn't available on this browser.",t)}};xt();var ot=()=>{try{let t=Array.from(document.querySelectorAll(".theme-toggle"));if(t[0])for(let e of t)e.addEventListener("click",(()=>{M("dark"===at()?"light":"dark")}))}catch(t){console.warn("Theming seems to break on this browser.",t)}let t=document.querySelector(".navbar"),e=!0;window.addEventListener("scroll",(()=>{if(e){let i;e=!1,i=requestAnimationFrame((()=>{t.classList.toggle("shadow",window.scrollY>=5),e=!0,i=window.cancelAnimationFrame(i)}))}}),{passive:!0})},Y=class{constructor(t){this.map=new Map(t)}getMap(){return this.map}get(t){return this.map.get(t)}keys(){return Array.from(this.map.keys())}values(){return Array.from(this.map.values())}set(t,e){return this.map.set(t,e),this}add(t){let e=this.size;return this.set(e,t),this}get size(){return this.map.size}get length(){return this.map.size}last(t=1){let e=this.keys()[this.size-t];return this.get(e)}delete(t){return this.map.delete(t)}remove(t){return this.map.delete(t),this}clear(){return this.map.clear(),this}has(t){return this.map.has(t)}entries(){return this.map.entries()}forEach(t,e){return this.map.forEach(t,e),this}[Symbol.iterator](){return this.entries()}},Tt=(t,e,...i)=>{t.forEach((t=>{t[e](...i)}))},lt=({callback:t=(()=>{}),scope:e=null,name:i="event"})=>({callback:t,scope:e,name:i}),q=class extends Y{constructor(t="event"){super(),this.name=t}},Dt=class extends Y{constructor(){super()}getEvent(t){let e=this.get(t);return e instanceof q?e:(this.set(t,new q(t)),this.get(t))}newListener(t,e,i){let s=this.getEvent(t);return s.add(lt({name:t,callback:e,scope:i})),s}on(t,e,i){if(void 0===t||null==t)return this;"string"==typeof t&&(t=t.trim().split(/\s/g));let s,n,r="object"==typeof t&&!Array.isArray(t),a=r?e:i;return r||(n=e),Object.keys(t).forEach((e=>{s=r?e:t[e],r&&(n=t[e]),this.newListener(s,n,a)}),this),this}removeListener(t,e,i){let s=this.get(t);if(s instanceof q&&e){let n=lt({name:t,callback:e,scope:i});s.forEach(((t,e)=>{if(t.callback===n.callback&&t.scope===n.scope)return s.remove(e)}))}return s}off(t,e,i){if(void 0===t||null==t)return this;"string"==typeof t&&(t=t.trim().split(/\s/g));let s,n,r="object"==typeof t&&!Array.isArray(t),a=r?e:i;return r||(n=e),Object.keys(t).forEach((e=>{s=r?e:t[e],r&&(n=t[e]),"function"==typeof n?this.removeListener(s,n,a):this.remove(s)}),this),this}once(t,e,i){if(void 0===t||null==t)return this;"string"==typeof t&&(t=t.trim().split(/\s/g));let s="object"==typeof t&&!Array.isArray(t);return Object.keys(t).forEach((n=>{let r=s?n:t[n],a=s?t[n]:e,o=s?e:i,l=(...t)=>{a.apply(o,t),this.removeListener(r,l,o)};this.newListener(r,l,o)}),this),this}emit(t,...e){return void 0===t||null==t||("string"==typeof t&&(t=t.trim().split(/\s/g)),t.forEach((t=>{let i=this.get(t);i instanceof q&&i.forEach((t=>{let{callback:i,scope:s}=t;i.apply(s,e)}))}),this)),this}clear(){return Tt(this,"clear"),super.clear(),this}},Z=t=>"string"==typeof t?t.includes("%")?parseFloat(t)/100:"from"==t?0:"to"==t?1:parseFloat(t):t,zt=t=>{let e=new Set,i=Object.keys(t),s=i.length;for(let n=0;nt.offset-e.offset))},G=(t="")=>e=>"string"==typeof e?e:`${e}${t}`,N=G(),W=G("px"),B=G("deg"),H=t=>Array.isArray(t)||"string"==typeof t?("string"==typeof t&&(t=t.split(",")),t):[t],z=t=>Array.isArray(t)||"string"==typeof t?Boolean(t.length):null!=t&&null!=t,R=t=>e=>z(e)?H(e).map((e=>{if("number"!=typeof e&&"string"!=typeof e)return e;let i=Number(e),s=Number.isNaN(i)?"string"==typeof e?e.trim():e:i;return t(s)})):[],Lt=(...t)=>{let e=0,i=[],s=(t=t.map((t=>{let i=H(t),s=i.length;return s>e&&(e=s),i}))).length;for(let n=0;nH(t).map(R(e)),ht=["translate","translate3d","translateX","translateY","translateZ","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective"],ct=t=>{let e="",i=ht.length;for(let s=0;st.includes("--")?t:`${t}`.replace(/-([a-z])/g,((t,e)=>e.toUpperCase())),mt=t=>{let e,i,s=Object.keys(t),n={};for(let r=0,a=s.length;r""+t,ut=["margin","padding","size","width","height","left","right","top","bottom","radius","gap","basis","inset","outline-offset","perspective","thickness","position","distance","spacing"].join("|"),jt=t=>{let{perspective:e,rotate:i,rotate3d:s,rotateX:n,rotateY:r,rotateZ:a,translate:o,translate3d:l,translateX:h,translateY:u,translateZ:c,scale:m,scale3d:p,scaleX:d,scaleY:f,scaleZ:g,skew:y,skewX:b,skewY:w,...k}=mt(t);o=C(o,W),l=C(l,W),h=v(h),u=v(u),c=v(c),i=C(i,B),s=C(s,N),n=S(n),r=S(r),a=S(a),m=C(m,N),p=C(p,N),d=T(d),f=T(f),g=T(g),y=C(y,B),b=S(b),w=S(w),e=v(e);let E=Lt(o,l,h,u,c,i,s,n,r,a,m,p,d,f,g,y,b,w,e).filter(z).map(ct);return k=F(k,((t,e)=>{let i;if(!/color/gi.test(e)){let s=/rotate/gi.test(e),n=new RegExp(ut,"gi").test(e);if(s||n)return s?i=S:n&&(i=v),i(t).map((t=>{let e=t.trim().split(" ");return i(e).join(" ")}))}return[].concat(t).map(Q)})),Object.assign({},z(E)?{transform:E}:null,k)},Mt=t=>t.map((t=>{let{translate:e,translate3d:i,translateX:s,translateY:n,translateZ:r,rotate:a,rotate3d:o,rotateX:l,rotateY:h,rotateZ:u,scale:c,scale3d:m,scaleX:p,scaleY:d,scaleZ:f,skew:g,skewX:y,skewY:b,perspective:w,easing:k,iterations:E,offset:A,...O}=mt(t);return e=v(e),i=v(i),s=v(s)[0],n=v(n)[0],r=v(r)[0],a=S(a),o=T(o),l=S(l)[0],h=S(h)[0],u=S(u)[0],c=T(c),m=T(m),p=T(p)[0],d=T(d)[0],f=T(f)[0],g=S(g),y=S(y)[0],b=S(b)[0],w=v(w)[0],[O,e,i,s,n,r,a,o,l,h,u,c,m,p,d,f,g,y,b,w]})).map((([t,...e])=>{let i=ct(e);return t=F(t,((t,e)=>{let i;if(!/color/gi.test(e)){let s=/rotate/gi.test(e),n=new RegExp(ut,"gi").test(e);if(s||n){return s?i=S:n&&(i=v),i(Q(t).trim().split(" ")).join(" ")}}return Q(t)})),Object.assign({},z(i)?{transform:i}:null,t)})),It=t=>"string"==typeof t?Array.from(document.querySelectorAll(t)):[t],qt=t=>[].concat(...t),J=t=>Array.isArray(t)?qt(t.map(J)):"string"==typeof t||t instanceof Node?It(t):t instanceof NodeList||t instanceof HTMLCollection?Array.from(t):[],Nt=(t,e,i)=>"function"==typeof t?t.apply(i,e):t,F=(t,e)=>{let i,s,n=Object.keys(t),r={};for(let a=0,o=n.length;aF(t,(t=>Nt(t,e,i))),ft={in:"ease-in",out:"ease-out","in-out":"ease-in-out","in-sine":"cubic-bezier(0.47, 0, 0.745, 0.715)","out-sine":"cubic-bezier(0.39, 0.575, 0.565, 1)","in-out-sine":"cubic-bezier(0.445, 0.05, 0.55, 0.95)","in-quad":"cubic-bezier(0.55, 0.085, 0.68, 0.53)","out-quad":"cubic-bezier(0.25, 0.46, 0.45, 0.94)","in-out-quad":"cubic-bezier(0.455, 0.03, 0.515, 0.955)","in-cubic":"cubic-bezier(0.55, 0.055, 0.675, 0.19)","out-cubic":"cubic-bezier(0.215, 0.61, 0.355, 1)","in-out-cubic":"cubic-bezier(0.645, 0.045, 0.355, 1)","in-quart":"cubic-bezier(0.895, 0.03, 0.685, 0.22)","out-quart":"cubic-bezier(0.165, 0.84, 0.44, 1)","in-out-quart":"cubic-bezier(0.77, 0, 0.175, 1)","in-quint":"cubic-bezier(0.755, 0.05, 0.855, 0.06)","out-quint":"cubic-bezier(0.23, 1, 0.32, 1)","in-out-quint":"cubic-bezier(0.86, 0, 0.07, 1)","in-expo":"cubic-bezier(0.95, 0.05, 0.795, 0.035)","out-expo":"cubic-bezier(0.19, 1, 0.22, 1)","in-out-expo":"cubic-bezier(1, 0, 0, 1)","in-circ":"cubic-bezier(0.6, 0.04, 0.98, 0.335)","out-circ":"cubic-bezier(0.075, 0.82, 0.165, 1)","in-out-circ":"cubic-bezier(0.785, 0.135, 0.15, 0.86)","in-back":"cubic-bezier(0.6, -0.28, 0.735, 0.045)","out-back":"cubic-bezier(0.175, 0.885, 0.32, 1.275)","in-out-back":"cubic-bezier(0.68, -0.55, 0.265, 1.55)"},Rt=Object.keys(ft),dt=t=>{let e=t.replace(/^ease-/,"");return Rt.includes(e)?ft[e]:t},Ft={keyframes:[],offset:[],loop:1,delay:0,speed:1,endDelay:0,easing:"ease",timelineOffset:0,autoplay:!0,duration:1e3,fillMode:"none",direction:"normal",padEndDelay:!1,timeline:document.timeline,extend:{}},Ut=t=>{var e;let{options:i,...s}=t,n=i instanceof _?i.options:Array.isArray(i)?null==(e=null==i?void 0:i[0])?void 0:e.options:i;return Object.assign({},n,s)},U=(t,e)=>{let i={...e};for(;t.length;){let{[t.pop()]:e,...s}=i;i=s}return i},gt=class{constructor(t){this.options={},this.properties={},this.totalDuration=-1/0,this.minDelay=1/0,this.maxSpeed=1/0,this.emitter=new Dt,this.targets=new Y,this.targetIndexes=new WeakMap,this.keyframeEffects=new WeakMap,this.computedOptions=new WeakMap,this.animations=new WeakMap,this.computedKeyframes=new WeakMap,this.loop=this.loop.bind(this),this.onVisibilityChange=this.onVisibilityChange.bind(this),this.on("error",console.error),this.updateOptions(t),this.mainAnimation&&(this.visibilityPlayState=this.getPlayState(),gt.pauseOnPageHidden&&document.addEventListener("visibilitychange",this.onVisibilityChange,!1)),this.newPromise()}onVisibilityChange(){document.hidden?(this.visibilityPlayState=this.getPlayState(),this.is("running")&&(this.loop(),this.pause())):"running"==this.visibilityPlayState&&this.is("paused")&&this.play()}newPromise(){return this.promise=new Promise(((t,e)=>{var i,s,n,r;null==(s=null==(i=null==this?void 0:this.emitter)?void 0:i.once)||s.call(i,"finish",(()=>t([this]))),null==(r=null==(n=null==this?void 0:this.emitter)?void 0:n.once)||r.call(n,"error",(t=>e(t)))})),this.promise}then(t,e){var i,s;return t=null==t?void 0:t.bind(this),e=null==e?void 0:e.bind(this),null==(s=null==(i=null==this?void 0:this.promise)?void 0:i.then)||s.call(i,t,e),this}catch(t){var e,i;return t=null==t?void 0:t.bind(this),null==(i=null==(e=this.promise)?void 0:e.catch)||i.call(e,t),this}finally(t){var e,i;return t=null==t?void 0:t.bind(this),null==(i=null==(e=this.promise)?void 0:e.finally)||i.call(e,t),this}loop(){this.stopLoop(),this.animationFrame=window.requestAnimationFrame(this.loop),this.emit("update",this.getProgress(),this)}stopLoop(){window.cancelAnimationFrame(this.animationFrame)}allAnimations(t){return this.targets.forEach((e=>{let i=this.keyframeEffects.get(e),s=this.animations.get(i);return t(s,e)})),this}all(t){return this.mainAnimation&&t(this.mainAnimation,this.mainElement),this.allAnimations(t),this}beginEvent(){0==this.getProgress()&&this.emit("begin",this)}play(){let t=this.getPlayState();return this.beginEvent(),this.all((t=>t.play())),this.emit("play",t,this),this.is(t)||this.emit("playstate-change",t,this),this.loop(),this}pause(){let t=this.getPlayState();return this.all((t=>t.pause())),this.emit("pause",t,this),this.is(t)||this.emit("playstate-change",t,this),this.stopLoop(),this}reverse(){return this.all((t=>t.reverse())),this}reset(){return this.setProgress(0),this.options.autoplay?this.play():this.pause(),this}cancel(){return this.all((t=>t.cancel())),this}finish(){return this.all((t=>t.finish())),this}stop(){this.cancel(),this.stopLoop(),document.removeEventListener("visibilitychange",this.onVisibilityChange,!1),this.targets.forEach((t=>this.removeTarget(t))),this.emit("stop"),this.emitter.clear(),this.mainkeyframeEffect=null,this.mainAnimation=null,this.mainElement=null,this.promise=null,this.computedOptions=null,this.animations=null,this.keyframeEffects=null,this.emitter=null,this.targets=null,this.options=null,this.properties=null}getAnimation(t){let e=this.keyframeEffects.get(t);return this.animations.get(e)}getTiming(t){var e,i,s,n;return{...null!=(e=this.computedOptions.get(t))?e:{},...null!=(n=null==(s=(i=this.keyframeEffects.get(t)).getTiming)?void 0:s.call(i))?n:{}}}getCurrentTime(){return this.mainAnimation.currentTime}getProgress(){return this.getCurrentTime()/this.totalDuration*100}getSpeed(){return this.mainAnimation.playbackRate}getPlayState(){return this.mainAnimation.playState}is(t){return this.getPlayState()==t}setCurrentTime(t){return this.all((e=>e.currentTime=t)),this.emit("update",this.getProgress()),this}setProgress(t){let e=t/100*this.totalDuration;return this.setCurrentTime(e),this}setSpeed(t=1){return this.maxSpeed=t,this.all((e=>{e.updatePlaybackRate?e.updatePlaybackRate(t):e.playbackRate=t})),this}createArrayOfComputedOptions(t,e){let i=[];return this.targets.forEach(((s,n)=>{var r,a;let o=null!=(r=this.computedOptions.get(s))?r:{},l=e=>{var i,s;let n=e;return"loop"==e&&(n="iterations"),"fillMode"==e&&(n="fill"),null!=(s=null!=(i=t[e])?i:o[n])?s:this.options[e]},h=Object.assign({easing:l("easing"),iterations:l("loop"),direction:l("direction"),endDelay:l("endDelay"),duration:l("duration"),speed:l("speed"),delay:l("delay"),timelineOffset:l("timelineOffset"),keyframes:l("keyframes")},null!=(a=l("extend"))?a:{}),u=pt(h,[n,e,s],this);"string"==typeof u.easing&&(u.easing=dt(u.easing)),!0===u.iterations&&(u.iterations=1/0),u.fill=l("fillMode");let{timelineOffset:c,speed:m,endDelay:p,delay:d,duration:f,iterations:g,...y}=u;g=Number(g),f=Number(f),p=Number(p),m=Number(m),d=Number(d)+Number(c);let b=d+f*g+p;this.totalDurationd&&(this.minDelay=d),this.maxSpeed>m&&(this.maxSpeed=m)})),i}createAnimations(t,e){let{arrOfComputedOptions:i,padEndDelay:s,oldCSSProperties:n,onfinish:r,oncancel:a,timeline:o}=t;this.targets.forEach(((t,l)=>{var h,u,c;let{speed:m,keyframes:p,tempDurations:d,...f}=i[l];s&&0==f.endDelay&&Math.abs(f.iterations)!=Math.abs(1/0)&&(f.endDelay=this.totalDuration-d);let g,y,b=p;"object"==typeof b&&(b=zt(b));let v,w,k=null!=(h=this.computedKeyframes.get(t))?h:{},E=Object.assign({},n,k),S=F(E,((t,e)=>{var i;return null!=(i=this.properties[e])?i:t}));if(y=z(b)?b:S,Array.isArray(y))g=y.map((t=>{let{easing:e,offset:i,...s}=U(["speed","loop"],t);return Object.assign({},s,"string"==typeof e?{easing:dt(e)}:null,"string"==typeof i||"number"==typeof i?{offset:Z(i)}:null)})),g=Mt(g);else{let i=U(["keyframes"],y),{offset:s,...n}=pt(i,[l,e,t],this);n=jt(n);let r=s;g=Object.assign({},n,z(r)?{offset:r.map(Z)}:null)}this.keyframeEffects.has(t)?(w=this.keyframeEffects.get(t),v=this.animations.get(w),null==(u=null==w?void 0:w.setKeyframes)||u.call(w,g),null==(c=null==w?void 0:w.updateTiming)||c.call(w,f)):(w=new KeyframeEffect(t,g,f),v=new Animation(w,o),this.keyframeEffects.set(t,w),this.animations.set(w,v)),v.playbackRate=m,v.onfinish=()=>{"function"==typeof r&&r.call(this,t,l,e,v)},v.oncancel=()=>{"function"==typeof a&&a.call(this,t,l,e,v)},this.computedOptions.set(t,f),this.computedKeyframes.set(t,g)}))}updateOptions(t={}){var e,i;try{let s=Ut(t);this.options=Object.assign({},Ft,this.options,s);let n=["easing","loop","endDelay","duration","speed","delay","timelineOffset","direction","extend","fillMode","offset"],{padEndDelay:r,autoplay:a,target:o,targets:l,timeline:h,onfinish:u,oncancel:c,...m}=U(n,this.options);this.properties=U([...n,"keyframes","padEndDelay","onfinish","oncancel","autoplay","target","targets","timeline"],s);let p=this.targets.values(),d=[...new Set([...p,...J(l),...J(o)])];this.targets.clear(),d.forEach(((t,e)=>{this.targets.set(e,t),this.targetIndexes.set(t,e)}));let f=this.targets.size,g=this.createArrayOfComputedOptions(s,f);if(this.createAnimations({arrOfComputedOptions:g,padEndDelay:r,oldCSSProperties:m,onfinish:u,oncancel:c,timeline:h},f),f<=0&&(this.maxSpeed==1/0&&(this.maxSpeed=Number(this.options.speed)),this.minDelay==1/0&&(this.minDelay=Number(this.options.delay)+Number(this.options.timelineOffset)),this.totalDuration==-1/0&&(this.totalDuration=Number(this.options.duration))),this.mainAnimation?(null==(i=null==(e=this.mainkeyframeEffect)?void 0:e.updateTiming)||i.call(e,{duration:this.totalDuration}),(!this.mainkeyframeEffect.setKeyframes||!this.mainkeyframeEffect.updateTiming)&&console.warn("@okikio/animate - `KeyframeEffect.setKeyframes` and/or `KeyframeEffect.updateTiming` are not supported in this browser.")):(this.mainkeyframeEffect=new KeyframeEffect(this.mainElement,null,{duration:this.totalDuration}),this.mainAnimation=new Animation(this.mainkeyframeEffect,h)),this.mainAnimation.playbackRate=this.maxSpeed,this.mainAnimation.onfinish=()=>{if(this.mainAnimation){let t=this.getPlayState();this.is(t)||this.emit("playstate-change",t,this),this.loop(),this.stopLoop()}this.emit("finish",this)},this.mainAnimation.oncancel=()=>{if(this.mainAnimation){let t=this.getPlayState();this.is(t)||this.emit("playstate-change",t,this),this.loop(),this.stopLoop()}this.emit("cancel",this)},a){let t=window.setTimeout((()=>{this.emit("begin",this),t=window.clearTimeout(t)}),0);this.play()}else this.pause()}catch(t){this.emit("error",t)}}add(t){let e=this.getProgress(),i=this.is("running"),s=this.is("paused");this.updateOptions({target:t}),this.setProgress(e),i?this.play():s&&this.pause()}removeTarget(t){let e=this.keyframeEffects.get(t);this.animations.delete(e),e=null,this.computedKeyframes.delete(t),this.computedOptions.delete(t),this.keyframeEffects.delete(t);let i=this.targetIndexes.get(t);this.targets.delete(i),this.targetIndexes.delete(t)}remove(t){this.removeTarget(t);let e=new Set([].concat(this.targets.values()));this.options.target=[...e],this.options.targets=[],e.clear(),e=null;let i=this.getProgress(),s=this.is("running"),n=this.is("paused");this.updateOptions(),s?this.play():n&&this.pause(),this.setProgress(i)}on(t,e,i){var s;return null==(s=null==this?void 0:this.emitter)||s.on(t,e,null!=i?i:this),this}off(t,e,i){var s;return null==(s=null==this?void 0:this.emitter)||s.off(t,e,null!=i?i:this),this}emit(t,...e){var i;return null==(i=null==this?void 0:this.emitter)||i.emit(t,...e),this}toJSON(){return this.options}get[Symbol.toStringTag](){return"Animate"}},_=gt;_.pauseOnPageHidden=!0;var yt=(t={})=>new _(t);(async()=>{})(),ot();var K,I=document.querySelector(".center-container"),tt=document.querySelector(".file-size"),Xt=document.querySelector("#run"),bt=document.querySelector("#bundle-time"),X=yt({target:I,opacity:[1,0],delay:1e3,easing:"ease-in",duration:500,autoplay:!1});(async()=>{K=(await rt("./monaco.min.js")).build(),X.play(),await X,null==I||I.remove(),X.stop(),I=null,X=null})();var Kt=new Intl.RelativeTimeFormat("en",{style:"narrow",numeric:"auto"}),wt=new Worker("./js/rollup.min.js"),et=0,$="",kt=Date.now();Xt.addEventListener("click",(()=>{$=""+(null==K?void 0:K.getValue()),tt.innerHTML='
',bt.textContent="",kt=Date.now(),wt.postMessage($)})),wt.onmessage=({data:t})=>{if(t.error)return console.warn(t.type+" (please create a new issue in the repo)\n",t.error),void(tt.textContent="Error");let{size:e,content:i}=t.value;et>10&&(console.clear(),et=0);let s=$.split("\n");console.groupCollapsed(`${e} =>`,`${s[0]}${s.length>1?"\n...":""}`),console.groupCollapsed("Input Code: "),console.log($),console.groupEnd(),console.groupCollapsed("Bundled Code: "),console.log(i),console.groupEnd(),console.groupEnd(),et++,bt.textContent=`Bundled ${Kt.format((Date.now()-kt)/1e3,"seconds")}`,tt.textContent=""+e}; -======= -var Xt=Object.create;var st=Object.defineProperty;var Kt=Object.getOwnPropertyDescriptor;var Yt=Object.getOwnPropertyNames;var Gt=Object.getPrototypeOf,Zt=Object.prototype.hasOwnProperty;var Wt=t=>st(t,"__esModule",{value:!0});var nt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports);var Jt=(t,e,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Yt(e))!Zt.call(t,s)&&s!=="default"&&st(t,s,{get:()=>e[s],enumerable:!(r=Kt(e,s))||r.enumerable});return t},Qt=t=>Jt(Wt(st(t!=null?Xt(Gt(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t);var zt=nt((M,Mt)=>{var Lt=typeof self!="undefined"?self:M,J=function(){function t(){this.fetch=!1,this.DOMException=Lt.DOMException}return t.prototype=Lt,new t}();(function(t){var e=function(r){var s={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(i){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};function n(i){return i&&DataView.prototype.isPrototypeOf(i)}if(s.arrayBuffer)var o=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(i){return i&&o.indexOf(Object.prototype.toString.call(i))>-1};function h(i){if(typeof i!="string"&&(i=String(i)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(i))throw new TypeError("Invalid character in header field name");return i.toLowerCase()}function c(i){return typeof i!="string"&&(i=String(i)),i}function p(i){var a={next:function(){var u=i.shift();return{done:u===void 0,value:u}}};return s.iterable&&(a[Symbol.iterator]=function(){return a}),a}function f(i){this.map={},i instanceof f?i.forEach(function(a,u){this.append(u,a)},this):Array.isArray(i)?i.forEach(function(a){this.append(a[0],a[1])},this):i&&Object.getOwnPropertyNames(i).forEach(function(a){this.append(a,i[a])},this)}f.prototype.append=function(i,a){i=h(i),a=c(a);var u=this.map[i];this.map[i]=u?u+", "+a:a},f.prototype.delete=function(i){delete this.map[h(i)]},f.prototype.get=function(i){return i=h(i),this.has(i)?this.map[i]:null},f.prototype.has=function(i){return this.map.hasOwnProperty(h(i))},f.prototype.set=function(i,a){this.map[h(i)]=c(a)},f.prototype.forEach=function(i,a){for(var u in this.map)this.map.hasOwnProperty(u)&&i.call(a,this.map[u],u,this)},f.prototype.keys=function(){var i=[];return this.forEach(function(a,u){i.push(u)}),p(i)},f.prototype.values=function(){var i=[];return this.forEach(function(a){i.push(a)}),p(i)},f.prototype.entries=function(){var i=[];return this.forEach(function(a,u){i.push([u,a])}),p(i)},s.iterable&&(f.prototype[Symbol.iterator]=f.prototype.entries);function A(i){if(i.bodyUsed)return Promise.reject(new TypeError("Already read"));i.bodyUsed=!0}function E(i){return new Promise(function(a,u){i.onload=function(){a(i.result)},i.onerror=function(){u(i.error)}})}function w(i){var a=new FileReader,u=E(a);return a.readAsArrayBuffer(i),u}function b(i){var a=new FileReader,u=E(a);return a.readAsText(i),u}function S(i){for(var a=new Uint8Array(i),u=new Array(a.length),k=0;k-1?a:i}function m(i,a){a=a||{};var u=a.body;if(i instanceof m){if(i.bodyUsed)throw new TypeError("Already read");this.url=i.url,this.credentials=i.credentials,a.headers||(this.headers=new f(i.headers)),this.method=i.method,this.mode=i.mode,this.signal=i.signal,!u&&i._bodyInit!=null&&(u=i._bodyInit,i.bodyUsed=!0)}else this.url=String(i);if(this.credentials=a.credentials||this.credentials||"same-origin",(a.headers||!this.headers)&&(this.headers=new f(a.headers)),this.method=x(a.method||this.method||"GET"),this.mode=a.mode||this.mode||null,this.signal=a.signal||this.signal,this.referrer=null,(this.method==="GET"||this.method==="HEAD")&&u)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(u)}m.prototype.clone=function(){return new m(this,{body:this._bodyInit})};function g(i){var a=new FormData;return i.trim().split("&").forEach(function(u){if(u){var k=u.split("="),T=k.shift().replace(/\+/g," "),y=k.join("=").replace(/\+/g," ");a.append(decodeURIComponent(T),decodeURIComponent(y))}}),a}function B(i){var a=new f,u=i.replace(/\r?\n[\t ]+/g," ");return u.split(/\r?\n/).forEach(function(k){var T=k.split(":"),y=T.shift().trim();if(y){var X=T.join(":").trim();a.append(y,X)}}),a}d.call(m.prototype);function P(i,a){a||(a={}),this.type="default",this.status=a.status===void 0?200:a.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in a?a.statusText:"OK",this.headers=new f(a.headers),this.url=a.url||"",this._initBody(i)}d.call(P.prototype),P.prototype.clone=function(){return new P(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new f(this.headers),url:this.url})},P.error=function(){var i=new P(null,{status:0,statusText:""});return i.type="error",i};var C=[301,302,303,307,308];P.redirect=function(i,a){if(C.indexOf(a)===-1)throw new RangeError("Invalid status code");return new P(null,{status:a,headers:{location:i}})},r.DOMException=t.DOMException;try{new r.DOMException}catch(i){r.DOMException=function(a,u){this.message=a,this.name=u;var k=Error(a);this.stack=k.stack},r.DOMException.prototype=Object.create(Error.prototype),r.DOMException.prototype.constructor=r.DOMException}function j(i,a){return new Promise(function(u,k){var T=new m(i,a);if(T.signal&&T.signal.aborted)return k(new r.DOMException("Aborted","AbortError"));var y=new XMLHttpRequest;function X(){y.abort()}y.onload=function(){var N={status:y.status,statusText:y.statusText,headers:B(y.getAllResponseHeaders()||"")};N.url="responseURL"in y?y.responseURL:N.headers.get("X-Request-URL");var it="response"in y?y.response:y.responseText;u(new P(it,N))},y.onerror=function(){k(new TypeError("Network request failed"))},y.ontimeout=function(){k(new TypeError("Network request failed"))},y.onabort=function(){k(new r.DOMException("Aborted","AbortError"))},y.open(T.method,T.url,!0),T.credentials==="include"?y.withCredentials=!0:T.credentials==="omit"&&(y.withCredentials=!1),"responseType"in y&&s.blob&&(y.responseType="blob"),T.headers.forEach(function(N,it){y.setRequestHeader(it,N)}),T.signal&&(T.signal.addEventListener("abort",X),y.onreadystatechange=function(){y.readyState===4&&T.signal.removeEventListener("abort",X)}),y.send(typeof T._bodyInit=="undefined"?null:T._bodyInit)})}return j.polyfill=!0,t.fetch||(t.fetch=j,t.Headers=f,t.Request=m,t.Response=P),r.Headers=f,r.Request=m,r.Response=P,r.fetch=j,Object.defineProperty(r,"__esModule",{value:!0}),r}({})})(J);J.fetch.ponyfill=!0;delete J.fetch.polyfill;var F=J;M=F.fetch;M.default=F.fetch;M.fetch=F.fetch;M.Headers=F.Headers;M.Request=F.Request;M.Response=F.Response;Mt.exports=M});var Ut=nt((_e,_)=>{var U=zt(),q="https://api.countapi.xyz",yt=/^[A-Za-z0-9_\-.]{3,64}$/,ve=new RegExp(yt),Q=_.exports.validatePath=function(t,e){if(typeof e=="undefined"){if(typeof t=="undefined")return Promise.reject("Missing key");e=t,t=void 0}function r(s){return ve.test(s)||s===":HOST:"||s===":PATHNAME:"}return new Promise(function(s,n){if(!r(e)){n(`Key must match ${yt}. Got '${t}'`);return}if(!r(t)&&typeof t!="undefined"&&t!==null){n(`Namespace must match ${yt} or be empty. Got '${t}'`);return}var o="";typeof t!="undefined"&&(o+=t+"/"),o+=e,s({path:o})})},It=_.exports.validateTuple=function(t,e,r){if(typeof r=="undefined"){if(typeof e=="undefined")return Promise.reject("Missing key or value");r=e,e=void 0}return typeof r!="number"?Promise.reject("Value is NaN"):Q(t,e).then(function(s){return Object.assign({},{value:r},s)})};function $(t){return[200,400,403,404].includes(t.status)?t.json().then(function(r){return t.status==400?Promise.reject(r.error):Object.assign({},{status:t.status,path:t.headers.get("X-Path")},r)}):Promise.reject("Response from server: "+t.status)}function Ee(t){return Object.keys(t||{}).map(e=>encodeURIComponent(e)+"="+encodeURIComponent(t[e])).join("&")}_.exports.get=function(t,e){return Q(t,e).then(function(r){return U(`${q}/get/${r.path}`).then($)})};_.exports.set=function(t,e,r){return It(t,e,r).then(function(s){return U(`${q}/set/${s.path}?value=${s.value}`).then($)})};_.exports.update=function(t,e,r){return It(t,e,r).then(function(s){return U(`${q}/update/${s.path}?amount=${s.value}`).then($)})};_.exports.hit=function(t,e){return Q(t,e).then(function(r){return U(`${q}/hit/${r.path}`).then($)})};_.exports.info=function(t,e){return Q(t,e).then(function(r){return U(`${q}/info/${r.path}`).then($)})};_.exports.create=function(t){var e=Ee(t);return U(`${q}/create${e.length>0?"?"+e:""}`).then($)};_.exports.stats=function(){return U(`${q}/stats`).then($)};_.exports.visits=function(t){return this.hit(":HOST:",t||":PATHNAME:")};_.exports.event=function(t){return this.hit(":HOST:",t)}});var $t=nt((Be,qt)=>{qt.exports=Ut()});function te(t){let e=document.createElement("a");return e.setAttribute("href",t),e.cloneNode(!1).href}function ee(t){return new Promise((e,r)=>{let s="$importModule$"+Math.random().toString(32).slice(2),n=document.createElement("script"),o=()=>{delete window[s],n.onerror=null,n.onload=null,n.remove(),URL.revokeObjectURL(n.src),n.src=""};n.defer="defer",n.type="module",n.onerror=()=>{r(new Error(`Failed to import: ${t}`)),o()},n.onload=()=>{e(window[s]),o()};let h=`import * as m from "${te(t)}"; window.${s} = m;`,c=new Blob([h],{type:"text/javascript"});n.src=URL.createObjectURL(c),document.head.appendChild(n)})}var wt=ee;var re={},vt=!1;try{let t=re;vt=!0}catch(t){}var Et=async t=>await(vt?import(t):wt(t));var ie=new Event("theme-change",{bubbles:!0,cancelable:!0,composed:!1}),At=()=>{let t=window.localStorage.getItem("theme");return typeof t=="string"?t:null},se=t=>{typeof t=="string"&&window.localStorage.setItem("theme",t)},ne=()=>{let t=window.matchMedia("(prefers-color-scheme: dark)");return typeof t.matches=="boolean"?t.matches?"dark":"light":null},at=document.querySelector("html"),St=()=>{let t=at.getAttribute("data-theme");return typeof t=="string"&&t.length?t:At()},H=t=>{at.setAttribute("data-theme",t),at.classList.toggle("dark",t=="dark"),se(t),document.dispatchEvent(ie)},ae=()=>{try{let t=At();t===null&&(t=ne()),t&&H(t),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",e=>{H(e.matches?"dark":"light")}),window.matchMedia("(prefers-color-scheme: light)").addEventListener("change",e=>{H(e.matches?"light":"dark")})}catch(t){console.warn("Theming isn't available on this browser.",t)}};ae();var Pt=()=>{try{let r=Array.from(document.querySelectorAll(".theme-toggle"));if(r[0])for(let s of r)s.addEventListener("click",()=>{H(St()==="dark"?"light":"dark")})}catch(r){console.warn("Theming seems to break on this browser.",r)}let t=document.querySelector(".navbar"),e=!0;window.addEventListener("scroll",()=>{if(e){let r;e=!1,r=requestAnimationFrame(()=>{t.classList.toggle("shadow",window.scrollY>=5),e=!0,r=window.cancelAnimationFrame(r)})}},{passive:!0})};var ot=class{constructor(t){this.map=new Map(t)}getMap(){return this.map}get(t){return this.map.get(t)}keys(){return Array.from(this.map.keys())}values(){return Array.from(this.map.values())}set(t,e){return this.map.set(t,e),this}add(t){let e=this.size;return this.set(e,t),this}get size(){return this.map.size}get length(){return this.map.size}last(t=1){let e=this.keys()[this.size-t];return this.get(e)}delete(t){return this.map.delete(t)}remove(t){return this.map.delete(t),this}clear(){return this.map.clear(),this}has(t){return this.map.has(t)}entries(){return this.map.entries()}forEach(t,e){return this.map.forEach(t,e),this}[Symbol.iterator](){return this.entries()}},oe=(t,e,...r)=>{t.forEach(s=>{s[e](...r)})},Ot=({callback:t=()=>{},scope:e=null,name:r="event"})=>({callback:t,scope:e,name:r}),K=class extends ot{constructor(t="event"){super();this.name=t}},le=class extends ot{constructor(){super()}getEvent(t){let e=this.get(t);return e instanceof K?e:(this.set(t,new K(t)),this.get(t))}newListener(t,e,r){let s=this.getEvent(t);return s.add(Ot({name:t,callback:e,scope:r})),s}on(t,e,r){if(typeof t=="undefined"||t==null)return this;typeof t=="string"&&(t=t.trim().split(/\s/g));let s,n,o=typeof t=="object"&&!Array.isArray(t),l=o?e:r;return o||(n=e),Object.keys(t).forEach(h=>{s=o?h:t[h],o&&(n=t[h]),this.newListener(s,n,l)},this),this}removeListener(t,e,r){let s=this.get(t);if(s instanceof K&&e){let n=Ot({name:t,callback:e,scope:r});s.forEach((o,l)=>{if(o.callback===n.callback&&o.scope===n.scope)return s.remove(l)})}return s}off(t,e,r){if(typeof t=="undefined"||t==null)return this;typeof t=="string"&&(t=t.trim().split(/\s/g));let s,n,o=typeof t=="object"&&!Array.isArray(t),l=o?e:r;return o||(n=e),Object.keys(t).forEach(h=>{s=o?h:t[h],o&&(n=t[h]),typeof n=="function"?this.removeListener(s,n,l):this.remove(s)},this),this}once(t,e,r){if(typeof t=="undefined"||t==null)return this;typeof t=="string"&&(t=t.trim().split(/\s/g));let s=typeof t=="object"&&!Array.isArray(t);return Object.keys(t).forEach(n=>{let o=s?n:t[n],l=s?t[n]:e,h=s?e:r,c=(...p)=>{l.apply(h,p),this.removeListener(o,c,h)};this.newListener(o,c,h)},this),this}emit(t,...e){return typeof t=="undefined"||t==null?this:(typeof t=="string"&&(t=t.trim().split(/\s/g)),t.forEach(r=>{let s=this.get(r);s instanceof K&&s.forEach(n=>{let{callback:o,scope:l}=n;o.apply(l,e)})},this),this)}clear(){return oe(this,"clear"),super.clear(),this}},lt=t=>typeof t=="string"?t.includes("%")?parseFloat(t)/100:t=="from"?0:t=="to"?1:parseFloat(t):t,ue=t=>{let e=new Set,r=Object.keys(t),s=r.length;for(let n=0;nn.offset-o.offset)};var ut=(t="")=>e=>typeof e=="string"?e:`${e}${t}`,Y=ut(),ht=ut("px"),ct=ut("deg"),ft=t=>Array.isArray(t)||typeof t=="string"?(typeof t=="string"&&(t=t.split(",")),t):[t],z=t=>Array.isArray(t)||typeof t=="string"?Boolean(t.length):t!=null&&t!=null,G=t=>e=>z(e)?ft(e).map(r=>{if(typeof r!="number"&&typeof r!="string")return r;let s=Number(r),n=Number.isNaN(s)?typeof r=="string"?r.trim():r:s;return t(n)}):[],he=(...t)=>{let e=0;t=t.map(n=>{let o=ft(n),l=o.length;return l>e&&(e=l),o});let r=[],s=t.length;for(let n=0;nft(t).map(G(e)),xt=["translate","translate3d","translateX","translateY","translateZ","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective"],Tt=t=>{let e="",r=xt.length;for(let s=0;st.includes("--")?t:`${t}`.replace(/-([a-z])/g,(e,r)=>r.toUpperCase()),kt=t=>{let e=Object.keys(t),r,s,n={};for(let o=0,l=e.length;o""+t,Dt=["margin","padding","size","width","height","left","right","top","bottom","radius","gap","basis","inset","outline-offset","perspective","thickness","position","distance","spacing"].join("|"),fe=t=>{let{perspective:e,rotate:r,rotate3d:s,rotateX:n,rotateY:o,rotateZ:l,translate:h,translate3d:c,translateX:p,translateY:f,translateZ:A,scale:E,scale3d:w,scaleX:b,scaleY:S,scaleZ:v,skew:d,skewX:O,skewY:x,...m}=kt(t);h=I(h,ht),c=I(c,ht),p=R(p),f=R(f),A=R(A),r=I(r,ct),s=I(s,Y),n=D(n),o=D(o),l=D(l),E=I(E,Y),w=I(w,Y),b=L(b),S=L(S),v=L(v),d=I(d,ct),O=D(O),x=D(x),e=R(e);let g=he(h,c,p,f,A,r,s,n,o,l,E,w,b,S,v,d,O,x,e).filter(z).map(Tt);return m=Z(m,(B,P)=>{let C;if(!/color/gi.test(P)){let j=/rotate/gi.test(P),i=new RegExp(Dt,"gi").test(P);if(j||i)return j?C=D:i&&(C=R),C(B).map(a=>{let u=a.trim().split(" ");return C(u).join(" ")})}return[].concat(B).map(pt)}),Object.assign({},z(g)?{transform:g}:null,m)},pe=t=>t.map(e=>{let{translate:r,translate3d:s,translateX:n,translateY:o,translateZ:l,rotate:h,rotate3d:c,rotateX:p,rotateY:f,rotateZ:A,scale:E,scale3d:w,scaleX:b,scaleY:S,scaleZ:v,skew:d,skewX:O,skewY:x,perspective:m,easing:g,iterations:B,offset:P,...C}=kt(e);return r=R(r),s=R(s),n=R(n)[0],o=R(o)[0],l=R(l)[0],h=D(h),c=L(c),p=D(p)[0],f=D(f)[0],A=D(A)[0],E=L(E),w=L(w),b=L(b)[0],S=L(S)[0],v=L(v)[0],d=D(d),O=D(O)[0],x=D(x)[0],m=R(m)[0],[C,r,s,n,o,l,h,c,p,f,A,E,w,b,S,v,d,O,x,m]}).map(([e,...r])=>{let s=Tt(r);return e=Z(e,(n,o)=>{let l;if(!/color/gi.test(o)){let h=/rotate/gi.test(o),c=new RegExp(Dt,"gi").test(o);if(h||c){h?l=D:c&&(l=R);let p=pt(n).trim().split(" ");return l(p).join(" ")}}return pt(n)}),Object.assign({},z(s)?{transform:s}:null,e)}),me=t=>typeof t=="string"?Array.from(document.querySelectorAll(t)):[t],de=t=>[].concat(...t),mt=t=>Array.isArray(t)?de(t.map(mt)):typeof t=="string"||t instanceof Node?me(t):t instanceof NodeList||t instanceof HTMLCollection?Array.from(t):[],ye=(t,e,r)=>typeof t=="function"?t.apply(r,e):t,Z=(t,e)=>{let r=Object.keys(t),s,n,o={};for(let l=0,h=r.length;lZ(t,s=>ye(s,e,r)),Rt={in:"ease-in",out:"ease-out","in-out":"ease-in-out","in-sine":"cubic-bezier(0.47, 0, 0.745, 0.715)","out-sine":"cubic-bezier(0.39, 0.575, 0.565, 1)","in-out-sine":"cubic-bezier(0.445, 0.05, 0.55, 0.95)","in-quad":"cubic-bezier(0.55, 0.085, 0.68, 0.53)","out-quad":"cubic-bezier(0.25, 0.46, 0.45, 0.94)","in-out-quad":"cubic-bezier(0.455, 0.03, 0.515, 0.955)","in-cubic":"cubic-bezier(0.55, 0.055, 0.675, 0.19)","out-cubic":"cubic-bezier(0.215, 0.61, 0.355, 1)","in-out-cubic":"cubic-bezier(0.645, 0.045, 0.355, 1)","in-quart":"cubic-bezier(0.895, 0.03, 0.685, 0.22)","out-quart":"cubic-bezier(0.165, 0.84, 0.44, 1)","in-out-quart":"cubic-bezier(0.77, 0, 0.175, 1)","in-quint":"cubic-bezier(0.755, 0.05, 0.855, 0.06)","out-quint":"cubic-bezier(0.23, 1, 0.32, 1)","in-out-quint":"cubic-bezier(0.86, 0, 0.07, 1)","in-expo":"cubic-bezier(0.95, 0.05, 0.795, 0.035)","out-expo":"cubic-bezier(0.19, 1, 0.22, 1)","in-out-expo":"cubic-bezier(1, 0, 0, 1)","in-circ":"cubic-bezier(0.6, 0.04, 0.98, 0.335)","out-circ":"cubic-bezier(0.075, 0.82, 0.165, 1)","in-out-circ":"cubic-bezier(0.785, 0.135, 0.15, 0.86)","in-back":"cubic-bezier(0.6, -0.28, 0.735, 0.045)","out-back":"cubic-bezier(0.175, 0.885, 0.32, 1.275)","in-out-back":"cubic-bezier(0.68, -0.55, 0.265, 1.55)"},ge=Object.keys(Rt),_t=t=>{let e=t.replace(/^ease-/,"");return ge.includes(e)?Rt[e]:t},be={keyframes:[],offset:[],loop:1,delay:0,speed:1,endDelay:0,easing:"ease",timelineOffset:0,autoplay:!0,duration:1e3,fillMode:"none",direction:"normal",padEndDelay:!1,timeline:document.timeline,extend:{}},we=t=>{var n;let{options:e,...r}=t,s=e instanceof dt?e.options:Array.isArray(e)?(n=e==null?void 0:e[0])==null?void 0:n.options:e;return Object.assign({},s,r)},W=(t,e)=>{let r={...e};for(;t.length;){let{[t.pop()]:s,...n}=r;r=n}return r},Bt=class{constructor(t){this.options={},this.properties={},this.totalDuration=-Infinity,this.minDelay=Infinity,this.maxSpeed=Infinity,this.emitter=new le,this.targets=new ot,this.targetIndexes=new WeakMap,this.keyframeEffects=new WeakMap,this.computedOptions=new WeakMap,this.animations=new WeakMap,this.computedKeyframes=new WeakMap,this.loop=this.loop.bind(this),this.onVisibilityChange=this.onVisibilityChange.bind(this),this.on("error",console.error),this.updateOptions(t),this.mainAnimation&&(this.visibilityPlayState=this.getPlayState(),Bt.pauseOnPageHidden&&document.addEventListener("visibilitychange",this.onVisibilityChange,!1)),this.newPromise()}onVisibilityChange(){document.hidden?(this.visibilityPlayState=this.getPlayState(),this.is("running")&&(this.loop(),this.pause())):this.visibilityPlayState=="running"&&this.is("paused")&&this.play()}newPromise(){return this.promise=new Promise((t,e)=>{var r,s,n,o;(s=(r=this==null?void 0:this.emitter)==null?void 0:r.once)==null||s.call(r,"finish",()=>t([this])),(o=(n=this==null?void 0:this.emitter)==null?void 0:n.once)==null||o.call(n,"error",l=>e(l))}),this.promise}then(t,e){var r,s;return t=t==null?void 0:t.bind(this),e=e==null?void 0:e.bind(this),(s=(r=this==null?void 0:this.promise)==null?void 0:r.then)==null||s.call(r,t,e),this}catch(t){var e,r;return t=t==null?void 0:t.bind(this),(r=(e=this.promise)==null?void 0:e.catch)==null||r.call(e,t),this}finally(t){var e,r;return t=t==null?void 0:t.bind(this),(r=(e=this.promise)==null?void 0:e.finally)==null||r.call(e,t),this}loop(){this.stopLoop(),this.animationFrame=window.requestAnimationFrame(this.loop),this.emit("update",this.getProgress(),this)}stopLoop(){window.cancelAnimationFrame(this.animationFrame)}allAnimations(t){return this.targets.forEach(e=>{let r=this.keyframeEffects.get(e),s=this.animations.get(r);return t(s,e)}),this}all(t){return this.mainAnimation&&t(this.mainAnimation,this.mainElement),this.allAnimations(t),this}beginEvent(){this.getProgress()==0&&this.emit("begin",this)}play(){let t=this.getPlayState();return this.beginEvent(),this.all(e=>e.play()),this.emit("play",t,this),this.is(t)||this.emit("playstate-change",t,this),this.loop(),this}pause(){let t=this.getPlayState();return this.all(e=>e.pause()),this.emit("pause",t,this),this.is(t)||this.emit("playstate-change",t,this),this.stopLoop(),this}reverse(){return this.all(t=>t.reverse()),this}reset(){return this.setProgress(0),this.options.autoplay?this.play():this.pause(),this}cancel(){return this.all(t=>t.cancel()),this}finish(){return this.all(t=>t.finish()),this}stop(){this.cancel(),this.stopLoop(),document.removeEventListener("visibilitychange",this.onVisibilityChange,!1),this.targets.forEach(t=>this.removeTarget(t)),this.emit("stop"),this.emitter.clear(),this.mainkeyframeEffect=null,this.mainAnimation=null,this.mainElement=null,this.promise=null,this.computedOptions=null,this.animations=null,this.keyframeEffects=null,this.emitter=null,this.targets=null,this.options=null,this.properties=null}getAnimation(t){let e=this.keyframeEffects.get(t);return this.animations.get(e)}getTiming(t){var s,n,o,l;let e=(s=this.computedOptions.get(t))!=null?s:{},r=(l=(o=(n=this.keyframeEffects.get(t)).getTiming)==null?void 0:o.call(n))!=null?l:{};return{...e,...r}}getCurrentTime(){return this.mainAnimation.currentTime}getProgress(){return this.getCurrentTime()/this.totalDuration*100}getSpeed(){return this.mainAnimation.playbackRate}getPlayState(){return this.mainAnimation.playState}is(t){return this.getPlayState()==t}setCurrentTime(t){return this.all(e=>e.currentTime=t),this.emit("update",this.getProgress()),this}setProgress(t){let e=t/100*this.totalDuration;return this.setCurrentTime(e),this}setSpeed(t=1){return this.maxSpeed=t,this.all(e=>{e.updatePlaybackRate?e.updatePlaybackRate(t):e.playbackRate=t}),this}createArrayOfComputedOptions(t,e){let r=[];return this.targets.forEach((s,n)=>{var d,O;let o=(d=this.computedOptions.get(s))!=null?d:{},l=x=>{var g,B;let m=x;return x=="loop"&&(m="iterations"),x=="fillMode"&&(m="fill"),(B=(g=t[x])!=null?g:o[m])!=null?B:this.options[x]},h=Object.assign({easing:l("easing"),iterations:l("loop"),direction:l("direction"),endDelay:l("endDelay"),duration:l("duration"),speed:l("speed"),delay:l("delay"),timelineOffset:l("timelineOffset"),keyframes:l("keyframes")},(O=l("extend"))!=null?O:{}),c=jt(h,[n,e,s],this);typeof c.easing=="string"&&(c.easing=_t(c.easing)),c.iterations===!0&&(c.iterations=Infinity),c.fill=l("fillMode");let{timelineOffset:p,speed:f,endDelay:A,delay:E,duration:w,iterations:b,...S}=c;b=Number(b),w=Number(w),A=Number(A),f=Number(f),E=Number(E)+Number(p);let v=E+w*b+A;this.totalDurationE&&(this.minDelay=E),this.maxSpeed>f&&(this.maxSpeed=f)}),r}createAnimations(t,e){let{arrOfComputedOptions:r,padEndDelay:s,oldCSSProperties:n,onfinish:o,oncancel:l,timeline:h}=t;this.targets.forEach((c,p)=>{var B,P,C;let{speed:f,keyframes:A,tempDurations:E,...w}=r[p];s&&w.endDelay==0&&Math.abs(w.iterations)!=Math.abs(Infinity)&&(w.endDelay=this.totalDuration-E);let b,S,v=A;typeof v=="object"&&(v=ue(v));let d=(B=this.computedKeyframes.get(c))!=null?B:{},O=Object.assign({},n,d),x=Z(O,(j,i)=>{var a;return(a=this.properties[i])!=null?a:j});if(S=z(v)?v:x,Array.isArray(S))b=S.map(j=>{let{easing:i,offset:a,...u}=W(["speed","loop"],j);return Object.assign({},u,typeof i=="string"?{easing:_t(i)}:null,typeof a=="string"||typeof a=="number"?{offset:lt(a)}:null)}),b=pe(b);else{let j=W(["keyframes"],S),{offset:i,...a}=jt(j,[p,e,c],this);a=fe(a);let u=i;b=Object.assign({},a,z(u)?{offset:u.map(lt)}:null)}let m,g;this.keyframeEffects.has(c)?(g=this.keyframeEffects.get(c),m=this.animations.get(g),(P=g==null?void 0:g.setKeyframes)==null||P.call(g,b),(C=g==null?void 0:g.updateTiming)==null||C.call(g,w)):(g=new KeyframeEffect(c,b,w),m=new Animation(g,h),this.keyframeEffects.set(c,g),this.animations.set(g,m)),m.playbackRate=f,m.onfinish=()=>{typeof o=="function"&&o.call(this,c,p,e,m)},m.oncancel=()=>{typeof l=="function"&&l.call(this,c,p,e,m)},this.computedOptions.set(c,w),this.computedKeyframes.set(c,b)})}updateOptions(t={}){var e,r;try{let s=we(t);this.options=Object.assign({},be,this.options,s);let n=["easing","loop","endDelay","duration","speed","delay","timelineOffset","direction","extend","fillMode","offset"],{padEndDelay:o,autoplay:l,target:h,targets:c,timeline:p,onfinish:f,oncancel:A,...E}=W(n,this.options);this.properties=W([...n,"keyframes","padEndDelay","onfinish","oncancel","autoplay","target","targets","timeline"],s);let w=this.targets.values(),b=[...new Set([...w,...mt(c),...mt(h)])];this.targets.clear(),b.forEach((d,O)=>{this.targets.set(O,d),this.targetIndexes.set(d,O)});let S=this.targets.size,v=this.createArrayOfComputedOptions(s,S);if(this.createAnimations({arrOfComputedOptions:v,padEndDelay:o,oldCSSProperties:E,onfinish:f,oncancel:A,timeline:p},S),S<=0&&(this.maxSpeed==Infinity&&(this.maxSpeed=Number(this.options.speed)),this.minDelay==Infinity&&(this.minDelay=Number(this.options.delay)+Number(this.options.timelineOffset)),this.totalDuration==-Infinity&&(this.totalDuration=Number(this.options.duration))),this.mainAnimation?((r=(e=this.mainkeyframeEffect)==null?void 0:e.updateTiming)==null||r.call(e,{duration:this.totalDuration}),(!this.mainkeyframeEffect.setKeyframes||!this.mainkeyframeEffect.updateTiming)&&console.warn("@okikio/animate - `KeyframeEffect.setKeyframes` and/or `KeyframeEffect.updateTiming` are not supported in this browser.")):(this.mainkeyframeEffect=new KeyframeEffect(this.mainElement,null,{duration:this.totalDuration}),this.mainAnimation=new Animation(this.mainkeyframeEffect,p)),this.mainAnimation.playbackRate=this.maxSpeed,this.mainAnimation.onfinish=()=>{if(this.mainAnimation){let d=this.getPlayState();this.is(d)||this.emit("playstate-change",d,this),this.loop(),this.stopLoop()}this.emit("finish",this)},this.mainAnimation.oncancel=()=>{if(this.mainAnimation){let d=this.getPlayState();this.is(d)||this.emit("playstate-change",d,this),this.loop(),this.stopLoop()}this.emit("cancel",this)},l){let d=window.setTimeout(()=>{this.emit("begin",this),d=window.clearTimeout(d)},0);this.play()}else this.pause()}catch(s){this.emit("error",s)}}add(t){let e=this.getProgress(),r=this.is("running"),s=this.is("paused");this.updateOptions({target:t}),this.setProgress(e),r?this.play():s&&this.pause()}removeTarget(t){let e=this.keyframeEffects.get(t);this.animations.delete(e),e=null,this.computedKeyframes.delete(t),this.computedOptions.delete(t),this.keyframeEffects.delete(t);let r=this.targetIndexes.get(t);this.targets.delete(r),this.targetIndexes.delete(t)}remove(t){this.removeTarget(t);let e=new Set([].concat(this.targets.values()));this.options.target=[...e],this.options.targets=[],e.clear(),e=null;let r=this.getProgress(),s=this.is("running"),n=this.is("paused");this.updateOptions(),s?this.play():n&&this.pause(),this.setProgress(r)}on(t,e,r){var s;return(s=this==null?void 0:this.emitter)==null||s.on(t,e,r!=null?r:this),this}off(t,e,r){var s;return(s=this==null?void 0:this.emitter)==null||s.off(t,e,r!=null?r:this),this}emit(t,...e){var r;return(r=this==null?void 0:this.emitter)==null||r.emit(t,...e),this}toJSON(){return this.options}get[Symbol.toStringTag](){return"Animate"}},dt=Bt;dt.pauseOnPageHidden=!0;var Ct=(t={})=>new dt(t);var Ft=Qt($t());(async()=>{try{let{value:t}=await(0,Ft.hit)("bundle.js.org","visits"),e=document.querySelector("#visit-counter");e&&(e.textContent=`${t} Page Visits`)}catch(t){console.warn("Visit Counter Error (please create a new issue in the repo)",t)}})();Pt();var V=document.querySelector(".center-container"),gt=document.querySelector(".file-size"),Ae=document.querySelector("#run"),Nt=document.querySelector("#bundle-time"),tt=Ct({target:V,opacity:[1,0],delay:1e3,easing:"ease-in",duration:500,autoplay:!1}),et;(async()=>{et=(await Et("./monaco.min.js")).build(),tt.play(),await tt,V==null||V.remove(),tt.stop(),V=null,tt=null})();var Se=new Intl.RelativeTimeFormat("en",{style:"narrow",numeric:"auto"}),Ht=new Worker("./js/rollup.min.js"),bt=0,rt="",Vt=Date.now();Ae.addEventListener("click",()=>{rt=""+(et==null?void 0:et.getValue()),gt.innerHTML='
',Nt.textContent="",Vt=Date.now(),Ht.postMessage(rt)});Ht.onmessage=({data:t})=>{if(t.error){console.warn(t.type+` (please create a new issue in the repo) -`,t.error),gt.textContent="Error";return}let{size:e,content:r}=t.value;bt>10&&(console.clear(),bt=0);let s=rt.split(` -`);console.groupCollapsed(`${e} =>`,`${s[0]}${s.length>1?` -...`:""}`),console.groupCollapsed("Input Code: "),console.log(rt),console.groupEnd(),console.groupCollapsed("Bundled Code: "),console.log(r),console.groupEnd(),console.groupEnd(),bt++,Nt.textContent=`Bundled ${Se.format((Date.now()-Vt)/1e3,"seconds")}`,gt.textContent=""+e}; -//# sourceMappingURL=main.min.js.map ->>>>>>> 500ff313fcdea9c6a5c08a094a976387088813cf +var Xt=Object.create,st=Object.defineProperty,Kt=Object.getOwnPropertyDescriptor,Yt=Object.getOwnPropertyNames,Gt=Object.getPrototypeOf,Zt=Object.prototype.hasOwnProperty,Wt=t=>st(t,"__esModule",{value:!0}),nt=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Jt=(t,e,i)=>{if(e&&"object"==typeof e||"function"==typeof e)for(let r of Yt(e))!Zt.call(t,r)&&"default"!==r&&st(t,r,{get:()=>e[r],enumerable:!(i=Kt(e,r))||i.enumerable});return t},Qt=t=>Jt(Wt(st(null!=t?Xt(Gt(t)):{},"default",t&&t.__esModule&&"default"in t?{get:()=>t.default,enumerable:!0}:{value:t,enumerable:!0})),t),zt=nt(((t,e)=>{var i,r="undefined"!=typeof self?self:t,n=function(){function t(){this.fetch=!1,this.DOMException=r.DOMException}return t.prototype=r,new t}();i=n,function(t){var e="URLSearchParams"in i,r="Symbol"in i&&"iterator"in Symbol,n="FileReader"in i&&"Blob"in i&&function(){try{return new Blob,!0}catch(t){return!1}}(),s="FormData"in i,o="ArrayBuffer"in i;if(o)var a=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],l=ArrayBuffer.isView||function(t){return t&&a.indexOf(Object.prototype.toString.call(t))>-1};function u(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function h(t){return"string"!=typeof t&&(t=String(t)),t}function c(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return r&&(e[Symbol.iterator]=function(){return e}),e}function p(t){this.map={},t instanceof p?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function d(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function f(t){return new Promise((function(e,i){t.onload=function(){e(t.result)},t.onerror=function(){i(t.error)}}))}function m(t){var e=new FileReader,i=f(e);return e.readAsArrayBuffer(t),i}function y(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function g(){return this.bodyUsed=!1,this._initBody=function(t){this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:n&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:s&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:e&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o&&n&&function(t){return t&&DataView.prototype.isPrototypeOf(t)}(t)?(this._bodyArrayBuffer=y(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o&&(ArrayBuffer.prototype.isPrototypeOf(t)||l(t))?this._bodyArrayBuffer=y(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):e&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},n&&(this.blob=function(){var t=d(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?d(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(m)}),this.text=function(){var t=d(this);if(t)return t;if(this._bodyBlob)return function(t){var e=new FileReader,i=f(e);return e.readAsText(t),i}(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),i=new Array(e.length),r=0;r-1?e:t}(e.method||this.method||"GET"),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&i)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(i)}function w(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var i=t.split("="),r=i.shift().replace(/\+/g," "),n=i.join("=").replace(/\+/g," ");e.append(decodeURIComponent(r),decodeURIComponent(n))}})),e}function E(t){var e=new p;return t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var i=t.split(":"),r=i.shift().trim();if(r){var n=i.join(":").trim();e.append(r,n)}})),e}function A(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new p(e.headers),this.url=e.url||"",this._initBody(t)}v.prototype.clone=function(){return new v(this,{body:this._bodyInit})},g.call(v.prototype),g.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new p(this.headers),url:this.url})},A.error=function(){var t=new A(null,{status:0,statusText:""});return t.type="error",t};var O=[301,302,303,307,308];A.redirect=function(t,e){if(-1===O.indexOf(e))throw new RangeError("Invalid status code");return new A(null,{status:e,headers:{location:t}})},t.DOMException=i.DOMException;try{new t.DOMException}catch(e){t.DOMException=function(t,e){this.message=t,this.name=e;var i=Error(t);this.stack=i.stack},t.DOMException.prototype=Object.create(Error.prototype),t.DOMException.prototype.constructor=t.DOMException}function k(e,i){return new Promise((function(r,s){var o=new v(e,i);if(o.signal&&o.signal.aborted)return s(new t.DOMException("Aborted","AbortError"));var a=new XMLHttpRequest;function l(){a.abort()}a.onload=function(){var t={status:a.status,statusText:a.statusText,headers:E(a.getAllResponseHeaders()||"")};t.url="responseURL"in a?a.responseURL:t.headers.get("X-Request-URL");var e="response"in a?a.response:a.responseText;r(new A(e,t))},a.onerror=function(){s(new TypeError("Network request failed"))},a.ontimeout=function(){s(new TypeError("Network request failed"))},a.onabort=function(){s(new t.DOMException("Aborted","AbortError"))},a.open(o.method,o.url,!0),"include"===o.credentials?a.withCredentials=!0:"omit"===o.credentials&&(a.withCredentials=!1),"responseType"in a&&n&&(a.responseType="blob"),o.headers.forEach((function(t,e){a.setRequestHeader(e,t)})),o.signal&&(o.signal.addEventListener("abort",l),a.onreadystatechange=function(){4===a.readyState&&o.signal.removeEventListener("abort",l)}),a.send(void 0===o._bodyInit?null:o._bodyInit)}))}k.polyfill=!0,i.fetch||(i.fetch=k,i.Headers=p,i.Request=v,i.Response=A),t.Headers=p,t.Request=v,t.Response=A,t.fetch=k,Object.defineProperty(t,"__esModule",{value:!0})}({}),n.fetch.ponyfill=!0,delete n.fetch.polyfill;var s=n;(t=s.fetch).default=s.fetch,t.fetch=s.fetch,t.Headers=s.Headers,t.Request=s.Request,t.Response=s.Response,e.exports=t})),Ut=nt(((t,e)=>{var i=zt(),r="https://api.countapi.xyz",n=/^[A-Za-z0-9_\-.]{3,64}$/,s=new RegExp(n),o=e.exports.validatePath=function(t,e){if(void 0===e){if(void 0===t)return Promise.reject("Missing key");e=t,t=void 0}function i(t){return s.test(t)||":HOST:"===t||":PATHNAME:"===t}return new Promise((function(r,s){if(i(e))if(i(t)||null==t){var o="";void 0!==t&&(o+=t+"/"),r({path:o+=e})}else s(`Namespace must match ${n} or be empty. Got '${t}'`);else s(`Key must match ${n}. Got '${t}'`)}))},a=e.exports.validateTuple=function(t,e,i){if(void 0===i){if(void 0===e)return Promise.reject("Missing key or value");i=e,e=void 0}return"number"!=typeof i?Promise.reject("Value is NaN"):o(t,e).then((function(t){return Object.assign({},{value:i},t)}))};function l(t){return[200,400,403,404].includes(t.status)?t.json().then((function(e){return 400==t.status?Promise.reject(e.error):Object.assign({},{status:t.status,path:t.headers.get("X-Path")},e)})):Promise.reject("Response from server: "+t.status)}e.exports.get=function(t,e){return o(t,e).then((function(t){return i(`${r}/get/${t.path}`).then(l)}))},e.exports.set=function(t,e,n){return a(t,e,n).then((function(t){return i(`${r}/set/${t.path}?value=${t.value}`).then(l)}))},e.exports.update=function(t,e,n){return a(t,e,n).then((function(t){return i(`${r}/update/${t.path}?amount=${t.value}`).then(l)}))},e.exports.hit=function(t,e){return o(t,e).then((function(t){return i(`${r}/hit/${t.path}`).then(l)}))},e.exports.info=function(t,e){return o(t,e).then((function(t){return i(`${r}/info/${t.path}`).then(l)}))},e.exports.create=function(t){var e=function(t){return Object.keys(t||{}).map((e=>encodeURIComponent(e)+"="+encodeURIComponent(t[e]))).join("&")}(t);return i(`${r}/create${e.length>0?"?"+e:""}`).then(l)},e.exports.stats=function(){return i(`${r}/stats`).then(l)},e.exports.visits=function(t){return this.hit(":HOST:",t||":PATHNAME:")},e.exports.event=function(t){return this.hit(":HOST:",t)}})),$t=nt(((t,e)=>{e.exports=Ut()}));function te(t){let e=document.createElement("a");return e.setAttribute("href",t),e.cloneNode(!1).href}function ee(t){return new Promise(((e,i)=>{let r="$importModule$"+Math.random().toString(32).slice(2),n=document.createElement("script"),s=()=>{delete window[r],n.onerror=null,n.onload=null,n.remove(),URL.revokeObjectURL(n.src),n.src=""};n.defer="defer",n.type="module",n.onerror=()=>{i(new Error(`Failed to import: ${t}`)),s()},n.onload=()=>{e(window[r]),s()};let o=`import * as m from "${te(t)}"; window.${r} = m;`,a=new Blob([o],{type:"text/javascript"});n.src=URL.createObjectURL(a),document.head.appendChild(n)}))}var wt=ee,re={},vt=!1;try{vt=!0}catch(t){}var Et=async t=>await(vt?import(t):wt(t)),ie=new Event("theme-change",{bubbles:!0,cancelable:!0,composed:!1}),At=()=>{let t=window.localStorage.getItem("theme");return"string"==typeof t?t:null},se=t=>{"string"==typeof t&&window.localStorage.setItem("theme",t)},ne=()=>{let t=window.matchMedia("(prefers-color-scheme: dark)");return"boolean"==typeof t.matches?t.matches?"dark":"light":null},at=document.querySelector("html"),St=()=>{let t=at.getAttribute("data-theme");return"string"==typeof t&&t.length?t:At()},H=t=>{at.setAttribute("data-theme",t),at.classList.toggle("dark","dark"==t),se(t),document.dispatchEvent(ie)},ae=()=>{try{let t=At();null===t&&(t=ne()),t&&H(t),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",(t=>{H(t.matches?"dark":"light")})),window.matchMedia("(prefers-color-scheme: light)").addEventListener("change",(t=>{H(t.matches?"light":"dark")}))}catch(t){console.warn("Theming isn't available on this browser.",t)}};ae();var Pt=()=>{try{let t=Array.from(document.querySelectorAll(".theme-toggle"));if(t[0])for(let e of t)e.addEventListener("click",(()=>{H("dark"===St()?"light":"dark")}))}catch(t){console.warn("Theming seems to break on this browser.",t)}let t=document.querySelector(".navbar"),e=!0;window.addEventListener("scroll",(()=>{if(e){let i;e=!1,i=requestAnimationFrame((()=>{t.classList.toggle("shadow",window.scrollY>=5),e=!0,i=window.cancelAnimationFrame(i)}))}}),{passive:!0})},ot=class{constructor(t){this.map=new Map(t)}getMap(){return this.map}get(t){return this.map.get(t)}keys(){return Array.from(this.map.keys())}values(){return Array.from(this.map.values())}set(t,e){return this.map.set(t,e),this}add(t){let e=this.size;return this.set(e,t),this}get size(){return this.map.size}get length(){return this.map.size}last(t=1){let e=this.keys()[this.size-t];return this.get(e)}delete(t){return this.map.delete(t)}remove(t){return this.map.delete(t),this}clear(){return this.map.clear(),this}has(t){return this.map.has(t)}entries(){return this.map.entries()}forEach(t,e){return this.map.forEach(t,e),this}[Symbol.iterator](){return this.entries()}},oe=(t,e,...i)=>{t.forEach((t=>{t[e](...i)}))},Ot=({callback:t=(()=>{}),scope:e=null,name:i="event"})=>({callback:t,scope:e,name:i}),K=class extends ot{constructor(t="event"){super(),this.name=t}},le=class extends ot{constructor(){super()}getEvent(t){let e=this.get(t);return e instanceof K?e:(this.set(t,new K(t)),this.get(t))}newListener(t,e,i){let r=this.getEvent(t);return r.add(Ot({name:t,callback:e,scope:i})),r}on(t,e,i){if(void 0===t||null==t)return this;"string"==typeof t&&(t=t.trim().split(/\s/g));let r,n,s="object"==typeof t&&!Array.isArray(t),o=s?e:i;return s||(n=e),Object.keys(t).forEach((e=>{r=s?e:t[e],s&&(n=t[e]),this.newListener(r,n,o)}),this),this}removeListener(t,e,i){let r=this.get(t);if(r instanceof K&&e){let n=Ot({name:t,callback:e,scope:i});r.forEach(((t,e)=>{if(t.callback===n.callback&&t.scope===n.scope)return r.remove(e)}))}return r}off(t,e,i){if(void 0===t||null==t)return this;"string"==typeof t&&(t=t.trim().split(/\s/g));let r,n,s="object"==typeof t&&!Array.isArray(t),o=s?e:i;return s||(n=e),Object.keys(t).forEach((e=>{r=s?e:t[e],s&&(n=t[e]),"function"==typeof n?this.removeListener(r,n,o):this.remove(r)}),this),this}once(t,e,i){if(void 0===t||null==t)return this;"string"==typeof t&&(t=t.trim().split(/\s/g));let r="object"==typeof t&&!Array.isArray(t);return Object.keys(t).forEach((n=>{let s=r?n:t[n],o=r?t[n]:e,a=r?e:i,l=(...t)=>{o.apply(a,t),this.removeListener(s,l,a)};this.newListener(s,l,a)}),this),this}emit(t,...e){return void 0===t||null==t||("string"==typeof t&&(t=t.trim().split(/\s/g)),t.forEach((t=>{let i=this.get(t);i instanceof K&&i.forEach((t=>{let{callback:i,scope:r}=t;i.apply(r,e)}))}),this)),this}clear(){return oe(this,"clear"),super.clear(),this}},lt=t=>"string"==typeof t?t.includes("%")?parseFloat(t)/100:"from"==t?0:"to"==t?1:parseFloat(t):t,ue=t=>{let e=new Set,i=Object.keys(t),r=i.length;for(let n=0;nt.offset-e.offset))},ut=(t="")=>e=>"string"==typeof e?e:`${e}${t}`,Y=ut(),ht=ut("px"),ct=ut("deg"),ft=t=>Array.isArray(t)||"string"==typeof t?("string"==typeof t&&(t=t.split(",")),t):[t],z=t=>Array.isArray(t)||"string"==typeof t?Boolean(t.length):null!=t&&null!=t,G=t=>e=>z(e)?ft(e).map((e=>{if("number"!=typeof e&&"string"!=typeof e)return e;let i=Number(e),r=Number.isNaN(i)?"string"==typeof e?e.trim():e:i;return t(r)})):[],he=(...t)=>{let e=0,i=[],r=(t=t.map((t=>{let i=ft(t),r=i.length;return r>e&&(e=r),i}))).length;for(let n=0;nft(t).map(G(e)),xt=["translate","translate3d","translateX","translateY","translateZ","rotate","rotate3d","rotateX","rotateY","rotateZ","scale","scale3d","scaleX","scaleY","scaleZ","skew","skewX","skewY","perspective"],Tt=t=>{let e="",i=xt.length;for(let r=0;rt.includes("--")?t:`${t}`.replace(/-([a-z])/g,((t,e)=>e.toUpperCase())),kt=t=>{let e,i,r=Object.keys(t),n={};for(let s=0,o=r.length;s""+t,Dt=["margin","padding","size","width","height","left","right","top","bottom","radius","gap","basis","inset","outline-offset","perspective","thickness","position","distance","spacing"].join("|"),fe=t=>{let{perspective:e,rotate:i,rotate3d:r,rotateX:n,rotateY:s,rotateZ:o,translate:a,translate3d:l,translateX:u,translateY:h,translateZ:c,scale:p,scale3d:d,scaleX:f,scaleY:m,scaleZ:y,skew:g,skewX:b,skewY:v,...w}=kt(t);a=I(a,ht),l=I(l,ht),u=R(u),h=R(h),c=R(c),i=I(i,ct),r=I(r,Y),n=D(n),s=D(s),o=D(o),p=I(p,Y),d=I(d,Y),f=L(f),m=L(m),y=L(y),g=I(g,ct),b=D(b),v=D(v),e=R(e);let E=he(a,l,u,h,c,i,r,n,s,o,p,d,f,m,y,g,b,v,e).filter(z).map(Tt);return w=Z(w,((t,e)=>{let i;if(!/color/gi.test(e)){let r=/rotate/gi.test(e),n=new RegExp(Dt,"gi").test(e);if(r||n)return r?i=D:n&&(i=R),i(t).map((t=>{let e=t.trim().split(" ");return i(e).join(" ")}))}return[].concat(t).map(pt)})),Object.assign({},z(E)?{transform:E}:null,w)},pe=t=>t.map((t=>{let{translate:e,translate3d:i,translateX:r,translateY:n,translateZ:s,rotate:o,rotate3d:a,rotateX:l,rotateY:u,rotateZ:h,scale:c,scale3d:p,scaleX:d,scaleY:f,scaleZ:m,skew:y,skewX:g,skewY:b,perspective:v,easing:w,iterations:E,offset:A,...O}=kt(t);return e=R(e),i=R(i),r=R(r)[0],n=R(n)[0],s=R(s)[0],o=D(o),a=L(a),l=D(l)[0],u=D(u)[0],h=D(h)[0],c=L(c),p=L(p),d=L(d)[0],f=L(f)[0],m=L(m)[0],y=D(y),g=D(g)[0],b=D(b)[0],v=R(v)[0],[O,e,i,r,n,s,o,a,l,u,h,c,p,d,f,m,y,g,b,v]})).map((([t,...e])=>{let i=Tt(e);return t=Z(t,((t,e)=>{let i;if(!/color/gi.test(e)){let r=/rotate/gi.test(e),n=new RegExp(Dt,"gi").test(e);if(r||n){return r?i=D:n&&(i=R),i(pt(t).trim().split(" ")).join(" ")}}return pt(t)})),Object.assign({},z(i)?{transform:i}:null,t)})),me=t=>"string"==typeof t?Array.from(document.querySelectorAll(t)):[t],de=t=>[].concat(...t),mt=t=>Array.isArray(t)?de(t.map(mt)):"string"==typeof t||t instanceof Node?me(t):t instanceof NodeList||t instanceof HTMLCollection?Array.from(t):[],ye=(t,e,i)=>"function"==typeof t?t.apply(i,e):t,Z=(t,e)=>{let i,r,n=Object.keys(t),s={};for(let o=0,a=n.length;oZ(t,(t=>ye(t,e,i))),Rt={in:"ease-in",out:"ease-out","in-out":"ease-in-out","in-sine":"cubic-bezier(0.47, 0, 0.745, 0.715)","out-sine":"cubic-bezier(0.39, 0.575, 0.565, 1)","in-out-sine":"cubic-bezier(0.445, 0.05, 0.55, 0.95)","in-quad":"cubic-bezier(0.55, 0.085, 0.68, 0.53)","out-quad":"cubic-bezier(0.25, 0.46, 0.45, 0.94)","in-out-quad":"cubic-bezier(0.455, 0.03, 0.515, 0.955)","in-cubic":"cubic-bezier(0.55, 0.055, 0.675, 0.19)","out-cubic":"cubic-bezier(0.215, 0.61, 0.355, 1)","in-out-cubic":"cubic-bezier(0.645, 0.045, 0.355, 1)","in-quart":"cubic-bezier(0.895, 0.03, 0.685, 0.22)","out-quart":"cubic-bezier(0.165, 0.84, 0.44, 1)","in-out-quart":"cubic-bezier(0.77, 0, 0.175, 1)","in-quint":"cubic-bezier(0.755, 0.05, 0.855, 0.06)","out-quint":"cubic-bezier(0.23, 1, 0.32, 1)","in-out-quint":"cubic-bezier(0.86, 0, 0.07, 1)","in-expo":"cubic-bezier(0.95, 0.05, 0.795, 0.035)","out-expo":"cubic-bezier(0.19, 1, 0.22, 1)","in-out-expo":"cubic-bezier(1, 0, 0, 1)","in-circ":"cubic-bezier(0.6, 0.04, 0.98, 0.335)","out-circ":"cubic-bezier(0.075, 0.82, 0.165, 1)","in-out-circ":"cubic-bezier(0.785, 0.135, 0.15, 0.86)","in-back":"cubic-bezier(0.6, -0.28, 0.735, 0.045)","out-back":"cubic-bezier(0.175, 0.885, 0.32, 1.275)","in-out-back":"cubic-bezier(0.68, -0.55, 0.265, 1.55)"},ge=Object.keys(Rt),_t=t=>{let e=t.replace(/^ease-/,"");return ge.includes(e)?Rt[e]:t},be={keyframes:[],offset:[],loop:1,delay:0,speed:1,endDelay:0,easing:"ease",timelineOffset:0,autoplay:!0,duration:1e3,fillMode:"none",direction:"normal",padEndDelay:!1,timeline:document.timeline,extend:{}},we=t=>{var e;let{options:i,...r}=t,n=i instanceof dt?i.options:Array.isArray(i)?null==(e=null==i?void 0:i[0])?void 0:e.options:i;return Object.assign({},n,r)},W=(t,e)=>{let i={...e};for(;t.length;){let{[t.pop()]:e,...r}=i;i=r}return i},Bt=class{constructor(t){this.options={},this.properties={},this.totalDuration=-1/0,this.minDelay=1/0,this.maxSpeed=1/0,this.emitter=new le,this.targets=new ot,this.targetIndexes=new WeakMap,this.keyframeEffects=new WeakMap,this.computedOptions=new WeakMap,this.animations=new WeakMap,this.computedKeyframes=new WeakMap,this.loop=this.loop.bind(this),this.onVisibilityChange=this.onVisibilityChange.bind(this),this.on("error",console.error),this.updateOptions(t),this.mainAnimation&&(this.visibilityPlayState=this.getPlayState(),Bt.pauseOnPageHidden&&document.addEventListener("visibilitychange",this.onVisibilityChange,!1)),this.newPromise()}onVisibilityChange(){document.hidden?(this.visibilityPlayState=this.getPlayState(),this.is("running")&&(this.loop(),this.pause())):"running"==this.visibilityPlayState&&this.is("paused")&&this.play()}newPromise(){return this.promise=new Promise(((t,e)=>{var i,r,n,s;null==(r=null==(i=null==this?void 0:this.emitter)?void 0:i.once)||r.call(i,"finish",(()=>t([this]))),null==(s=null==(n=null==this?void 0:this.emitter)?void 0:n.once)||s.call(n,"error",(t=>e(t)))})),this.promise}then(t,e){var i,r;return t=null==t?void 0:t.bind(this),e=null==e?void 0:e.bind(this),null==(r=null==(i=null==this?void 0:this.promise)?void 0:i.then)||r.call(i,t,e),this}catch(t){var e,i;return t=null==t?void 0:t.bind(this),null==(i=null==(e=this.promise)?void 0:e.catch)||i.call(e,t),this}finally(t){var e,i;return t=null==t?void 0:t.bind(this),null==(i=null==(e=this.promise)?void 0:e.finally)||i.call(e,t),this}loop(){this.stopLoop(),this.animationFrame=window.requestAnimationFrame(this.loop),this.emit("update",this.getProgress(),this)}stopLoop(){window.cancelAnimationFrame(this.animationFrame)}allAnimations(t){return this.targets.forEach((e=>{let i=this.keyframeEffects.get(e),r=this.animations.get(i);return t(r,e)})),this}all(t){return this.mainAnimation&&t(this.mainAnimation,this.mainElement),this.allAnimations(t),this}beginEvent(){0==this.getProgress()&&this.emit("begin",this)}play(){let t=this.getPlayState();return this.beginEvent(),this.all((t=>t.play())),this.emit("play",t,this),this.is(t)||this.emit("playstate-change",t,this),this.loop(),this}pause(){let t=this.getPlayState();return this.all((t=>t.pause())),this.emit("pause",t,this),this.is(t)||this.emit("playstate-change",t,this),this.stopLoop(),this}reverse(){return this.all((t=>t.reverse())),this}reset(){return this.setProgress(0),this.options.autoplay?this.play():this.pause(),this}cancel(){return this.all((t=>t.cancel())),this}finish(){return this.all((t=>t.finish())),this}stop(){this.cancel(),this.stopLoop(),document.removeEventListener("visibilitychange",this.onVisibilityChange,!1),this.targets.forEach((t=>this.removeTarget(t))),this.emit("stop"),this.emitter.clear(),this.mainkeyframeEffect=null,this.mainAnimation=null,this.mainElement=null,this.promise=null,this.computedOptions=null,this.animations=null,this.keyframeEffects=null,this.emitter=null,this.targets=null,this.options=null,this.properties=null}getAnimation(t){let e=this.keyframeEffects.get(t);return this.animations.get(e)}getTiming(t){var e,i,r,n;return{...null!=(e=this.computedOptions.get(t))?e:{},...null!=(n=null==(r=(i=this.keyframeEffects.get(t)).getTiming)?void 0:r.call(i))?n:{}}}getCurrentTime(){return this.mainAnimation.currentTime}getProgress(){return this.getCurrentTime()/this.totalDuration*100}getSpeed(){return this.mainAnimation.playbackRate}getPlayState(){return this.mainAnimation.playState}is(t){return this.getPlayState()==t}setCurrentTime(t){return this.all((e=>e.currentTime=t)),this.emit("update",this.getProgress()),this}setProgress(t){let e=t/100*this.totalDuration;return this.setCurrentTime(e),this}setSpeed(t=1){return this.maxSpeed=t,this.all((e=>{e.updatePlaybackRate?e.updatePlaybackRate(t):e.playbackRate=t})),this}createArrayOfComputedOptions(t,e){let i=[];return this.targets.forEach(((r,n)=>{var s,o;let a=null!=(s=this.computedOptions.get(r))?s:{},l=e=>{var i,r;let n=e;return"loop"==e&&(n="iterations"),"fillMode"==e&&(n="fill"),null!=(r=null!=(i=t[e])?i:a[n])?r:this.options[e]},u=Object.assign({easing:l("easing"),iterations:l("loop"),direction:l("direction"),endDelay:l("endDelay"),duration:l("duration"),speed:l("speed"),delay:l("delay"),timelineOffset:l("timelineOffset"),keyframes:l("keyframes")},null!=(o=l("extend"))?o:{}),h=jt(u,[n,e,r],this);"string"==typeof h.easing&&(h.easing=_t(h.easing)),!0===h.iterations&&(h.iterations=1/0),h.fill=l("fillMode");let{timelineOffset:c,speed:p,endDelay:d,delay:f,duration:m,iterations:y,...g}=h;y=Number(y),m=Number(m),d=Number(d),p=Number(p),f=Number(f)+Number(c);let b=f+m*y+d;this.totalDurationf&&(this.minDelay=f),this.maxSpeed>p&&(this.maxSpeed=p)})),i}createAnimations(t,e){let{arrOfComputedOptions:i,padEndDelay:r,oldCSSProperties:n,onfinish:s,oncancel:o,timeline:a}=t;this.targets.forEach(((t,l)=>{var u,h,c;let{speed:p,keyframes:d,tempDurations:f,...m}=i[l];r&&0==m.endDelay&&Math.abs(m.iterations)!=Math.abs(1/0)&&(m.endDelay=this.totalDuration-f);let y,g,b=d;"object"==typeof b&&(b=ue(b));let v,w,E=null!=(u=this.computedKeyframes.get(t))?u:{},A=Object.assign({},n,E),O=Z(A,((t,e)=>{var i;return null!=(i=this.properties[e])?i:t}));if(g=z(b)?b:O,Array.isArray(g))y=g.map((t=>{let{easing:e,offset:i,...r}=W(["speed","loop"],t);return Object.assign({},r,"string"==typeof e?{easing:_t(e)}:null,"string"==typeof i||"number"==typeof i?{offset:lt(i)}:null)})),y=pe(y);else{let i=W(["keyframes"],g),{offset:r,...n}=jt(i,[l,e,t],this);n=fe(n);let s=r;y=Object.assign({},n,z(s)?{offset:s.map(lt)}:null)}this.keyframeEffects.has(t)?(w=this.keyframeEffects.get(t),v=this.animations.get(w),null==(h=null==w?void 0:w.setKeyframes)||h.call(w,y),null==(c=null==w?void 0:w.updateTiming)||c.call(w,m)):(w=new KeyframeEffect(t,y,m),v=new Animation(w,a),this.keyframeEffects.set(t,w),this.animations.set(w,v)),v.playbackRate=p,v.onfinish=()=>{"function"==typeof s&&s.call(this,t,l,e,v)},v.oncancel=()=>{"function"==typeof o&&o.call(this,t,l,e,v)},this.computedOptions.set(t,m),this.computedKeyframes.set(t,y)}))}updateOptions(t={}){var e,i;try{let r=we(t);this.options=Object.assign({},be,this.options,r);let n=["easing","loop","endDelay","duration","speed","delay","timelineOffset","direction","extend","fillMode","offset"],{padEndDelay:s,autoplay:o,target:a,targets:l,timeline:u,onfinish:h,oncancel:c,...p}=W(n,this.options);this.properties=W([...n,"keyframes","padEndDelay","onfinish","oncancel","autoplay","target","targets","timeline"],r);let d=this.targets.values(),f=[...new Set([...d,...mt(l),...mt(a)])];this.targets.clear(),f.forEach(((t,e)=>{this.targets.set(e,t),this.targetIndexes.set(t,e)}));let m=this.targets.size,y=this.createArrayOfComputedOptions(r,m);if(this.createAnimations({arrOfComputedOptions:y,padEndDelay:s,oldCSSProperties:p,onfinish:h,oncancel:c,timeline:u},m),m<=0&&(this.maxSpeed==1/0&&(this.maxSpeed=Number(this.options.speed)),this.minDelay==1/0&&(this.minDelay=Number(this.options.delay)+Number(this.options.timelineOffset)),this.totalDuration==-1/0&&(this.totalDuration=Number(this.options.duration))),this.mainAnimation?(null==(i=null==(e=this.mainkeyframeEffect)?void 0:e.updateTiming)||i.call(e,{duration:this.totalDuration}),(!this.mainkeyframeEffect.setKeyframes||!this.mainkeyframeEffect.updateTiming)&&console.warn("@okikio/animate - `KeyframeEffect.setKeyframes` and/or `KeyframeEffect.updateTiming` are not supported in this browser.")):(this.mainkeyframeEffect=new KeyframeEffect(this.mainElement,null,{duration:this.totalDuration}),this.mainAnimation=new Animation(this.mainkeyframeEffect,u)),this.mainAnimation.playbackRate=this.maxSpeed,this.mainAnimation.onfinish=()=>{if(this.mainAnimation){let t=this.getPlayState();this.is(t)||this.emit("playstate-change",t,this),this.loop(),this.stopLoop()}this.emit("finish",this)},this.mainAnimation.oncancel=()=>{if(this.mainAnimation){let t=this.getPlayState();this.is(t)||this.emit("playstate-change",t,this),this.loop(),this.stopLoop()}this.emit("cancel",this)},o){let t=window.setTimeout((()=>{this.emit("begin",this),t=window.clearTimeout(t)}),0);this.play()}else this.pause()}catch(t){this.emit("error",t)}}add(t){let e=this.getProgress(),i=this.is("running"),r=this.is("paused");this.updateOptions({target:t}),this.setProgress(e),i?this.play():r&&this.pause()}removeTarget(t){let e=this.keyframeEffects.get(t);this.animations.delete(e),e=null,this.computedKeyframes.delete(t),this.computedOptions.delete(t),this.keyframeEffects.delete(t);let i=this.targetIndexes.get(t);this.targets.delete(i),this.targetIndexes.delete(t)}remove(t){this.removeTarget(t);let e=new Set([].concat(this.targets.values()));this.options.target=[...e],this.options.targets=[],e.clear(),e=null;let i=this.getProgress(),r=this.is("running"),n=this.is("paused");this.updateOptions(),r?this.play():n&&this.pause(),this.setProgress(i)}on(t,e,i){var r;return null==(r=null==this?void 0:this.emitter)||r.on(t,e,null!=i?i:this),this}off(t,e,i){var r;return null==(r=null==this?void 0:this.emitter)||r.off(t,e,null!=i?i:this),this}emit(t,...e){var i;return null==(i=null==this?void 0:this.emitter)||i.emit(t,...e),this}toJSON(){return this.options}get[Symbol.toStringTag](){return"Animate"}},dt=Bt;dt.pauseOnPageHidden=!0;var Ct=(t={})=>new dt(t),Ft=Qt($t());(async()=>{try{let{value:t}=await(0,Ft.hit)("bundle.js.org","visits"),e=document.querySelector("#visit-counter");e&&(e.textContent=`${t} Page Visits`)}catch(t){console.warn("Visit Counter Error (please create a new issue in the repo)",t)}})(),Pt();var et,V=document.querySelector(".center-container"),gt=document.querySelector(".file-size"),Ae=document.querySelector("#run"),Nt=document.querySelector("#bundle-time"),tt=Ct({target:V,opacity:[1,0],delay:1e3,easing:"ease-in",duration:500,autoplay:!1});(async()=>{et=(await Et("./monaco.min.js")).build(),tt.play(),await tt,null==V||V.remove(),tt.stop(),V=null,tt=null})();var Se=new Intl.RelativeTimeFormat("en",{style:"narrow",numeric:"auto"}),Ht=new Worker("./js/rollup.min.js"),bt=0,rt="",Vt=Date.now();Ae.addEventListener("click",(()=>{rt=""+(null==et?void 0:et.getValue()),gt.innerHTML='
',Nt.textContent="",Vt=Date.now(),Ht.postMessage(rt)})),Ht.onmessage=({data:t})=>{if(t.error)return console.warn(t.type+" (please create a new issue in the repo)\n",t.error),void(gt.textContent="Error");let{size:e,content:i}=t.value;bt>10&&(console.clear(),bt=0);let r=rt.split("\n");console.groupCollapsed(`${e} =>`,`${r[0]}${r.length>1?"\n...":""}`),console.groupCollapsed("Input Code: "),console.log(rt),console.groupEnd(),console.groupCollapsed("Bundled Code: "),console.log(i),console.groupEnd(),console.groupEnd(),bt++,Nt.textContent=`Bundled ${Se.format((Date.now()-Vt)/1e3,"seconds")}`,gt.textContent=""+e}; \ No newline at end of file -- knotmirror 0.0.1