|
1 |
| -(function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.Keyframes={}))})(this,function(exports){"use strict";var Ke=Object.defineProperty;var Xe=(e,t,n)=>t in e?Ke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var v=(e,t,n)=>Xe(e,typeof t!="symbol"?t+"":t,n);function clamp(e,t,n){return e<t?t:e>n?n:e}function scale(e,t,n,o=0,c=1){const a=(c-o)/(n-t);return(e-t)*a+o}function lerp(e,t,n){return(1-e)*t+e*n}function deCasteljau(e,t){const n=t.length-1,o=[...t];for(let c=1;c<=n;c++)for(let a=0;a<=n-c;a++)o[a]=lerp(e,o[a],o[a+1]);return o[0]}function cubicBezier(e,t,n,o,c){return[deCasteljau(e,[0,t,o,1]),deCasteljau(e,[0,n,c,1])]}function interpBezier(e,t){const n=t.map(c=>c[0]),o=t.map(c=>c[1]);return[deCasteljau(e,n),deCasteljau(e,o)]}function linear(e){return e}function easeInQuad(e){return e*e}function easeOutQuad(e){return-e*(e-2)}function easeInOutQuad(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)}function easeInCubic(e){return e*e*e}function easeOutCubic(e){return(e=e-1)*e*e+1}function easeInOutCubic(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}function smoothStep3(e){return e*e*(3-2*e)}const CSSBezier=(e,t,n,o)=>c=>(c=cubicBezier(c,e,t,n,o)[1],c);function easeInBounce(e){return e=CSSBezier(.09,.91,.5,1.5)(e),e}function bounceInEase(e){return e=CSSBezier(.09,.91,.5,1.5)(e),e}function bounceInEaseHalf(e){return e=interpBezier(e,[[0,0],[.026,1.746],[.633,1.06],[1,0]])[1],e}function jumpStart(e,t){return Math.floor(e*t)/t}function jumpEnd(e,t){return Math.ceil(e*t)/t}function jumpBoth(e,t){return e===0||e===1?e:jumpStart(e,t)}function jumpNone(e,t){return Math.round(e*t)/t}function steppedEase(e,t="jump-start"){switch(t){case"jump-none":return n=>jumpNone(n,e);case"jump-start":case"start":return n=>jumpStart(n,e);case"jump-end":case"end":return n=>jumpEnd(n,e);case"jump-both":return n=>jumpBoth(n,e)}}function stepStart(){return steppedEase(1,"jump-start")}function stepEnd(){return steppedEase(1,"jump-end")}const bezierPresets={ease:[.25,.1,.25,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1],"ease-in-back":[.6,-.28,.735,.045],"ease-out-back":[.175,.885,.32,1.275],"ease-in-out-back":[.68,-.55,.265,1.55]},timingFunctions={linear,easeInQuad,easeOutQuad,easeInOutQuad,easeInCubic,easeOutCubic,easeInOutCubic,easeInBounce,bounceInEase,bounceInEaseHalf,smoothStep3,ease:CSSBezier(...bezierPresets.ease),"ease-in":CSSBezier(...bezierPresets["ease-in"]),"ease-out":CSSBezier(...bezierPresets["ease-out"]),"ease-in-out":CSSBezier(...bezierPresets["ease-in-out"]),"ease-in-back":CSSBezier(...bezierPresets["ease-in-back"]),"ease-out-back":CSSBezier(...bezierPresets["ease-out-back"]),"ease-in-out-back":CSSBezier(...bezierPresets["ease-in-out-back"]),steps:steppedEase,"step-start":stepStart,"step-end":stepEnd};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var parsimmon_umd_min={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(typeof self<"u"?self:commonjsGlobal,function(){return function(n){var o={};function c(a){if(o[a])return o[a].exports;var f=o[a]={i:a,l:!1,exports:{}};return n[a].call(f.exports,f,f.exports,c),f.l=!0,f.exports}return c.m=n,c.c=o,c.d=function(a,f,g){c.o(a,f)||Object.defineProperty(a,f,{configurable:!1,enumerable:!0,get:g})},c.r=function(a){Object.defineProperty(a,"__esModule",{value:!0})},c.n=function(a){var f=a&&a.__esModule?function(){return a.default}:function(){return a};return c.d(f,"a",f),f},c.o=function(a,f){return Object.prototype.hasOwnProperty.call(a,f)},c.p="",c(c.s=0)}([function(n,o,c){function a(i){if(!(this instanceof a))return new a(i);this._=i}var f=a.prototype;function g(i,l){for(var u=0;u<i;u++)l(u)}function b(i,l,u){return function(d,p){g(p.length,function(h){d(p[h],h,p)})}(function(d,p,h){l=i(l,d,p,h)},u),l}function y(i,l){return b(function(u,d,p,h){return u.concat([i(d,p,h)])},[],l)}function E(i,l){var u={v:0,buf:l};return g(i,function(){var d;u={v:u.v<<1|(d=u.buf,d[0]>>7),buf:function(p){var h=b(function(m,w,k,O){return m.concat(k===O.length-1?Buffer.from([w,0]).readUInt16BE(0):O.readUInt16BE(k))},[],p);return Buffer.from(y(function(m){return(m<<1&65535)>>8},h))}(u.buf)}}),u}function oe(){return typeof Buffer<"u"}function z(){if(!oe())throw new Error("Buffer global does not exist; please use webpack if you need to parse Buffers in the browser.")}function W(i){z();var l=b(function(h,m){return h+m},0,i);if(l%8!=0)throw new Error("The bits ["+i.join(", ")+"] add up to "+l+" which is not an even number of bytes; the total should be divisible by 8");var u,d=l/8,p=(u=function(h){return h>48},b(function(h,m){return h||(u(m)?m:h)},null,i));if(p)throw new Error(p+" bit range requested exceeds 48 bit (6 byte) Number max.");return new a(function(h,m){var w=d+m;return w>h.length?V(m,d.toString()+" bytes"):C(w,b(function(k,O){var T=E(O,k.buf);return{coll:k.coll.concat(T.v),buf:T.buf}},{coll:[],buf:h.slice(m,w)},i).coll)})}function S(i,l){return new a(function(u,d){return z(),d+l>u.length?V(d,l+" bytes for "+i):C(d+l,u.slice(d,d+l))})}function F(i,l){if(typeof(u=l)!="number"||Math.floor(u)!==u||l<0||l>6)throw new Error(i+" requires integer length in range [0, 6].");var u}function A(i){return F("uintBE",i),S("uintBE("+i+")",i).map(function(l){return l.readUIntBE(0,i)})}function _(i){return F("uintLE",i),S("uintLE("+i+")",i).map(function(l){return l.readUIntLE(0,i)})}function se(i){return F("intBE",i),S("intBE("+i+")",i).map(function(l){return l.readIntBE(0,i)})}function le(i){return F("intLE",i),S("intLE("+i+")",i).map(function(l){return l.readIntLE(0,i)})}function te(i){return i instanceof a}function D(i){return{}.toString.call(i)==="[object Array]"}function re(i){return oe()&&Buffer.isBuffer(i)}function C(i,l){return{status:!0,index:i,value:l,furthest:-1,expected:[]}}function V(i,l){return D(l)||(l=[l]),{status:!1,index:-1,value:null,furthest:i,expected:l}}function M(i,l){if(!l||i.furthest>l.furthest)return i;var u=i.furthest===l.furthest?function(d,p){if(function(){if(a._supportsSet!==void 0)return a._supportsSet;var L=typeof Set<"u";return a._supportsSet=L,L}()&&Array.from){for(var h=new Set(d),m=0;m<p.length;m++)h.add(p[m]);var w=Array.from(h);return w.sort(),w}for(var k={},O=0;O<d.length;O++)k[d[O]]=!0;for(var T=0;T<p.length;T++)k[p[T]]=!0;var j=[];for(var I in k)({}).hasOwnProperty.call(k,I)&&j.push(I);return j.sort(),j}(i.expected,l.expected):l.expected;return{status:i.status,index:i.index,value:i.value,furthest:l.furthest,expected:u}}var ue={};function ke(i,l){if(re(i))return{offset:l,line:-1,column:-1};i in ue||(ue[i]={});for(var u=ue[i],d=0,p=0,h=0,m=l;m>=0;){if(m in u){d=u[m].line,h===0&&(h=u[m].lineStart);break}(i.charAt(m)===` |
| 1 | +(function(e,t){typeof exports=="object"&&typeof module<"u"?t(exports):typeof define=="function"&&define.amd?define(["exports"],t):(e=typeof globalThis<"u"?globalThis:e||self,t(e.Keyframes={}))})(this,function(exports){"use strict";var Ke=Object.defineProperty;var Xe=(e,t,n)=>t in e?Ke(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var v=(e,t,n)=>Xe(e,typeof t!="symbol"?t+"":t,n);function clamp(e,t,n){return e<t?t:e>n?n:e}function scale(e,t,n,o=0,c=1){const a=(c-o)/(n-t);return(e-t)*a+o}function lerp(e,t,n){return(1-e)*t+e*n}function deCasteljau(e,t){const n=t.length-1,o=[...t];for(let c=1;c<=n;c++)for(let a=0;a<=n-c;a++)o[a]=lerp(e,o[a],o[a+1]);return o[0]}function cubicBezier(e,t,n,o,c){return[deCasteljau(e,[0,t,o,1]),deCasteljau(e,[0,n,c,1])]}function interpBezier(e,t){const n=t.map(c=>c[0]),o=t.map(c=>c[1]);return[deCasteljau(e,n),deCasteljau(e,o)]}function linear(e){return e}function easeInQuad(e){return e*e}function easeOutQuad(e){return-e*(e-2)}function easeInOutQuad(e){return(e/=.5)<1?.5*e*e:-.5*(--e*(e-2)-1)}function easeInCubic(e){return e*e*e}function easeOutCubic(e){return(e=e-1)*e*e+1}function easeInOutCubic(e){return(e/=.5)<1?.5*e*e*e:.5*((e-=2)*e*e+2)}function smoothStep3(e){return e*e*(3-2*e)}const CSSBezier=(e,t,n,o)=>c=>(c=cubicBezier(c,e,t,n,o)[1],c);function easeInBounce(e){return e=CSSBezier(.09,.91,.5,1.5)(e),e}function bounceInEase(e){return e=CSSBezier(.09,.91,.5,1.5)(e),e}function bounceInEaseHalf(e){return e=interpBezier(e,[[0,0],[.026,1.746],[.633,1.06],[1,0]])[1],e}function jumpStart(e,t){return Math.floor(e*t)/t}function jumpEnd(e,t){return Math.ceil(e*t)/t}function jumpBoth(e,t){return e===0||e===1?e:jumpStart(e,t)}function jumpNone(e,t){return Math.round(e*t)/t}function steppedEase(e,t="jump-start"){switch(t){case"jump-none":return n=>jumpNone(n,e);case"jump-start":case"start":return n=>jumpStart(n,e);case"jump-end":case"end":return n=>jumpEnd(n,e);case"jump-both":case"both":return n=>jumpBoth(n,e)}}function stepStart(){return steppedEase(1,"jump-start")}function stepEnd(){return steppedEase(1,"jump-end")}const bezierPresets={ease:[.25,.1,.25,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1],"ease-in-back":[.6,-.28,.735,.045],"ease-out-back":[.175,.885,.32,1.275],"ease-in-out-back":[.68,-.55,.265,1.55]},timingFunctions={linear,easeInQuad,easeOutQuad,easeInOutQuad,easeInCubic,easeOutCubic,easeInOutCubic,easeInBounce,bounceInEase,bounceInEaseHalf,smoothStep3,ease:CSSBezier(...bezierPresets.ease),"ease-in":CSSBezier(...bezierPresets["ease-in"]),"ease-out":CSSBezier(...bezierPresets["ease-out"]),"ease-in-out":CSSBezier(...bezierPresets["ease-in-out"]),"ease-in-back":CSSBezier(...bezierPresets["ease-in-back"]),"ease-out-back":CSSBezier(...bezierPresets["ease-out-back"]),"ease-in-out-back":CSSBezier(...bezierPresets["ease-in-out-back"]),steps:steppedEase,"step-start":stepStart,"step-end":stepEnd};var commonjsGlobal=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var parsimmon_umd_min={exports:{}};(function(e,t){(function(n,o){e.exports=o()})(typeof self<"u"?self:commonjsGlobal,function(){return function(n){var o={};function c(a){if(o[a])return o[a].exports;var f=o[a]={i:a,l:!1,exports:{}};return n[a].call(f.exports,f,f.exports,c),f.l=!0,f.exports}return c.m=n,c.c=o,c.d=function(a,f,g){c.o(a,f)||Object.defineProperty(a,f,{configurable:!1,enumerable:!0,get:g})},c.r=function(a){Object.defineProperty(a,"__esModule",{value:!0})},c.n=function(a){var f=a&&a.__esModule?function(){return a.default}:function(){return a};return c.d(f,"a",f),f},c.o=function(a,f){return Object.prototype.hasOwnProperty.call(a,f)},c.p="",c(c.s=0)}([function(n,o,c){function a(i){if(!(this instanceof a))return new a(i);this._=i}var f=a.prototype;function g(i,l){for(var u=0;u<i;u++)l(u)}function b(i,l,u){return function(d,p){g(p.length,function(h){d(p[h],h,p)})}(function(d,p,h){l=i(l,d,p,h)},u),l}function y(i,l){return b(function(u,d,p,h){return u.concat([i(d,p,h)])},[],l)}function E(i,l){var u={v:0,buf:l};return g(i,function(){var d;u={v:u.v<<1|(d=u.buf,d[0]>>7),buf:function(p){var h=b(function(m,w,k,O){return m.concat(k===O.length-1?Buffer.from([w,0]).readUInt16BE(0):O.readUInt16BE(k))},[],p);return Buffer.from(y(function(m){return(m<<1&65535)>>8},h))}(u.buf)}}),u}function oe(){return typeof Buffer<"u"}function z(){if(!oe())throw new Error("Buffer global does not exist; please use webpack if you need to parse Buffers in the browser.")}function W(i){z();var l=b(function(h,m){return h+m},0,i);if(l%8!=0)throw new Error("The bits ["+i.join(", ")+"] add up to "+l+" which is not an even number of bytes; the total should be divisible by 8");var u,d=l/8,p=(u=function(h){return h>48},b(function(h,m){return h||(u(m)?m:h)},null,i));if(p)throw new Error(p+" bit range requested exceeds 48 bit (6 byte) Number max.");return new a(function(h,m){var w=d+m;return w>h.length?V(m,d.toString()+" bytes"):C(w,b(function(k,O){var T=E(O,k.buf);return{coll:k.coll.concat(T.v),buf:T.buf}},{coll:[],buf:h.slice(m,w)},i).coll)})}function S(i,l){return new a(function(u,d){return z(),d+l>u.length?V(d,l+" bytes for "+i):C(d+l,u.slice(d,d+l))})}function F(i,l){if(typeof(u=l)!="number"||Math.floor(u)!==u||l<0||l>6)throw new Error(i+" requires integer length in range [0, 6].");var u}function A(i){return F("uintBE",i),S("uintBE("+i+")",i).map(function(l){return l.readUIntBE(0,i)})}function _(i){return F("uintLE",i),S("uintLE("+i+")",i).map(function(l){return l.readUIntLE(0,i)})}function se(i){return F("intBE",i),S("intBE("+i+")",i).map(function(l){return l.readIntBE(0,i)})}function le(i){return F("intLE",i),S("intLE("+i+")",i).map(function(l){return l.readIntLE(0,i)})}function te(i){return i instanceof a}function D(i){return{}.toString.call(i)==="[object Array]"}function re(i){return oe()&&Buffer.isBuffer(i)}function C(i,l){return{status:!0,index:i,value:l,furthest:-1,expected:[]}}function V(i,l){return D(l)||(l=[l]),{status:!1,index:-1,value:null,furthest:i,expected:l}}function M(i,l){if(!l||i.furthest>l.furthest)return i;var u=i.furthest===l.furthest?function(d,p){if(function(){if(a._supportsSet!==void 0)return a._supportsSet;var L=typeof Set<"u";return a._supportsSet=L,L}()&&Array.from){for(var h=new Set(d),m=0;m<p.length;m++)h.add(p[m]);var w=Array.from(h);return w.sort(),w}for(var k={},O=0;O<d.length;O++)k[d[O]]=!0;for(var T=0;T<p.length;T++)k[p[T]]=!0;var j=[];for(var I in k)({}).hasOwnProperty.call(k,I)&&j.push(I);return j.sort(),j}(i.expected,l.expected):l.expected;return{status:i.status,index:i.index,value:i.value,furthest:l.furthest,expected:u}}var ue={};function ke(i,l){if(re(i))return{offset:l,line:-1,column:-1};i in ue||(ue[i]={});for(var u=ue[i],d=0,p=0,h=0,m=l;m>=0;){if(m in u){d=u[m].line,h===0&&(h=u[m].lineStart);break}(i.charAt(m)===` |
2 | 2 | `||i.charAt(m)==="\r"&&i.charAt(m+1)!==`
|
3 | 3 | `)&&(p++,h===0&&(h=m+1)),m--}var w=d+p,k=l-h;return u[l]={line:w,lineStart:h},{offset:l,line:w+1,column:k+1}}function G(i){if(!te(i))throw new Error("not a parser: "+i)}function ce(i,l){return typeof i=="string"?i.charAt(l):i[l]}function X(i){if(typeof i!="number")throw new Error("not a number: "+i)}function U(i){if(typeof i!="function")throw new Error("not a function: "+i)}function ne(i){if(typeof i!="string")throw new Error("not a string: "+i)}var Me=2,Ae=3,N=8,Re=5*N,je=4*N,ve=" ";function fe(i,l){return new Array(l+1).join(i)}function de(i,l,u){var d=l-i.length;return d<=0?i:fe(u,d)+i}function Se(i,l,u,d){return{from:i-l>0?i-l:0,to:i+u>d?d:i+u}}function Le(i,l){var u,d,p,h,m,w=l.index,k=w.offset,O=1;if(k===i.length)return"Got the end of the input";if(re(i)){var T=k-k%N,j=k-T,I=Se(T,Re,je+N,i.length),L=y(function(B){return y(function(Q){return de(Q.toString(16),2,"0")},B)},function(B,Q){var Z=B.length,H=[],J=0;if(Z<=Q)return[B.slice()];for(var ee=0;ee<Z;ee++)H[J]||H.push([]),H[J].push(B[ee]),(ee+1)%Q==0&&J++;return H}(i.slice(I.from,I.to).toJSON().data,N));h=function(B){return B.from===0&&B.to===1?{from:B.from,to:B.to}:{from:B.from/N,to:Math.floor(B.to/N)}}(I),d=T/N,u=3*j,j>=4&&(u+=1),O=2,p=y(function(B){return B.length<=4?B.join(" "):B.slice(0,4).join(" ")+" "+B.slice(4).join(" ")},L),(m=(8*(h.to>0?h.to-1:h.to)).toString(16).length)<2&&(m=2)}else{var Y=i.split(/\r\n|[\n\r\u2028\u2029]/);u=w.column-1,d=w.line-1,h=Se(d,Me,Ae,Y.length),p=Y.slice(h.from,h.to),m=h.to.toString().length}var Ge=d-h.from;return re(i)&&(m=(8*(h.to>0?h.to-1:h.to)).toString(16).length)<2&&(m=2),b(function(B,Q,Z){var H,J=Z===Ge,ee=J?"> ":ve;return H=re(i)?de((8*(h.from+Z)).toString(16),m,"0"):de((h.from+Z+1).toString(),m," "),[].concat(B,[ee+H+" | "+Q],J?[ve+fe(" ",m)+" | "+de("",u," ")+fe("^",O)]:[])},[],p).join(`
|
4 | 4 | `)}function Pe(i,l){return[`
|
|
0 commit comments