@infinityfx/lively 4.0.6 → 4.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/layout/layout-group.js +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/.rollup.cache/F/projects/code/lively/dist/animatable.js +0 -147
- package/.rollup.cache/F/projects/code/lively/dist/animatable.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/animate.js +0 -26
- package/.rollup.cache/F/projects/code/lively/dist/animate.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/core/action.js +0 -28
- package/.rollup.cache/F/projects/code/lively/dist/core/action.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/core/cache.js +0 -55
- package/.rollup.cache/F/projects/code/lively/dist/core/cache.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/core/clip.js +0 -71
- package/.rollup.cache/F/projects/code/lively/dist/core/clip.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/core/link.js +0 -39
- package/.rollup.cache/F/projects/code/lively/dist/core/link.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/core/timeline.js +0 -107
- package/.rollup.cache/F/projects/code/lively/dist/core/timeline.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/core/track.js +0 -147
- package/.rollup.cache/F/projects/code/lively/dist/core/track.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/core/utils.js +0 -95
- package/.rollup.cache/F/projects/code/lively/dist/core/utils.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/hooks/use-audio.js +0 -63
- package/.rollup.cache/F/projects/code/lively/dist/hooks/use-audio.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/hooks/use-link.js +0 -7
- package/.rollup.cache/F/projects/code/lively/dist/hooks/use-link.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/hooks/use-path.js +0 -15
- package/.rollup.cache/F/projects/code/lively/dist/hooks/use-path.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/hooks/use-reduced-motion.js +0 -14
- package/.rollup.cache/F/projects/code/lively/dist/hooks/use-reduced-motion.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/hooks/use-scroll.js +0 -21
- package/.rollup.cache/F/projects/code/lively/dist/hooks/use-scroll.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/hooks/use-spring.js +0 -37
- package/.rollup.cache/F/projects/code/lively/dist/hooks/use-spring.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/hooks/use-trigger.js +0 -15
- package/.rollup.cache/F/projects/code/lively/dist/hooks/use-trigger.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/hooks/use-viewport.js +0 -27
- package/.rollup.cache/F/projects/code/lively/dist/hooks/use-viewport.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/hooks/use-visible.js +0 -26
- package/.rollup.cache/F/projects/code/lively/dist/hooks/use-visible.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/hooks.js +0 -11
- package/.rollup.cache/F/projects/code/lively/dist/hooks.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/index.js +0 -4
- package/.rollup.cache/F/projects/code/lively/dist/index.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/layout/layout-group.js +0 -209
- package/.rollup.cache/F/projects/code/lively/dist/layout/layout-group.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/layout/morph.js +0 -48
- package/.rollup.cache/F/projects/code/lively/dist/layout/morph.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/layout/typable.js +0 -21
- package/.rollup.cache/F/projects/code/lively/dist/layout/typable.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/layout.js +0 -5
- package/.rollup.cache/F/projects/code/lively/dist/layout.js.map +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/tsconfig.tsbuildinfo +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/types/animatable.d.ts +0 -112
- package/.rollup.cache/F/projects/code/lively/dist/types/animate.d.ts +0 -19
- package/.rollup.cache/F/projects/code/lively/dist/types/core/action.d.ts +0 -15
- package/.rollup.cache/F/projects/code/lively/dist/types/core/cache.d.ts +0 -23
- package/.rollup.cache/F/projects/code/lively/dist/types/core/clip.d.ts +0 -52
- package/.rollup.cache/F/projects/code/lively/dist/types/core/link.d.ts +0 -14
- package/.rollup.cache/F/projects/code/lively/dist/types/core/timeline.d.ts +0 -41
- package/.rollup.cache/F/projects/code/lively/dist/types/core/track.d.ts +0 -32
- package/.rollup.cache/F/projects/code/lively/dist/types/core/utils.d.ts +0 -39
- package/.rollup.cache/F/projects/code/lively/dist/types/hooks/use-audio.d.ts +0 -7
- package/.rollup.cache/F/projects/code/lively/dist/types/hooks/use-link.d.ts +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/types/hooks/use-path.d.ts +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/types/hooks/use-reduced-motion.d.ts +0 -1
- package/.rollup.cache/F/projects/code/lively/dist/types/hooks/use-scroll.d.ts +0 -9
- package/.rollup.cache/F/projects/code/lively/dist/types/hooks/use-spring.d.ts +0 -6
- package/.rollup.cache/F/projects/code/lively/dist/types/hooks/use-trigger.d.ts +0 -4
- package/.rollup.cache/F/projects/code/lively/dist/types/hooks/use-viewport.d.ts +0 -2
- package/.rollup.cache/F/projects/code/lively/dist/types/hooks/use-visible.d.ts +0 -6
- package/.rollup.cache/F/projects/code/lively/dist/types/hooks.d.ts +0 -10
- package/.rollup.cache/F/projects/code/lively/dist/types/index.d.ts +0 -3
- package/.rollup.cache/F/projects/code/lively/dist/types/layout/layout-group.d.ts +0 -16
- package/.rollup.cache/F/projects/code/lively/dist/types/layout/morph.d.ts +0 -24
- package/.rollup.cache/F/projects/code/lively/dist/types/layout/typable.d.ts +0 -11
- package/.rollup.cache/F/projects/code/lively/dist/types/layout.d.ts +0 -4
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import{jsx as e}from"react/jsx-runtime";import{useRef as r,useState as n,useLayoutEffect as t,Children as i,isValidElement as
|
|
2
|
+
import{jsx as e}from"react/jsx-runtime";import{useRef as r,useState as n,useLayoutEffect as t,Children as i,isValidElement as c,cloneElement as o}from"react";import u from"../animatable.js";import{Groups as s}from"./morph.js";function d(e,r,n=[]){const t="nodes"in e?e.nodes:e;for(let e=0;e<t.length;e++){const i=[...n,e];let c=r(t[e],i);if(c||(c=d(t[e].nodes,r,i)),c)return c}}function l(e,r){return d(e,((e,n)=>{if(e.key===r)return n}))||null}function a(e,r){let n=e[r[0]];for(let e=1;e<r.length&&n;e++)n=n.nodes[r[e]];return n}function p(e,r,n,t){const i=r[r.length-1],c=r.length>1?a(e,r.slice(0,-1))?.nodes:e;c&&(t?c.splice(i,n,t):c.splice(i,n))}function m({tree:e,nodes:r,mounting:n,partialIndex:t=[],keys:u=new Set,parent:s=["",0]}){return i.forEach(r,((r,i)=>{const d=c(r),p=d&&(Array.isArray(r.props.children)||c(r.props.children)),f=d&&r.type.isLively&&"id"in r.props,h=p&&(!r.type.isLively||r.props.traverseLayout),y=[...t,i],g=p&&!r.type.isLively?o(r,void 0,[]):r,[k,v]=s,x=f?r.props.id:`$l.${k?k+".":""}${y.slice(-v).join("")}`,j=l(e,x),w=j?a(e,j):void 0;w&&(f||w.key.startsWith("$l."))?(j&&j.join("")!==y.join("")&&n.set(x,{replace:!0,node:w,index:y}),w.node=g):n.set(x,{node:{key:x,node:g,nodes:[]},index:y}),h&&m({tree:e,nodes:r.props.children,mounting:n,partialIndex:y,keys:u,parent:f?[x,1]:v?[k,v+1]:void 0}),u.add(x)})),u}function f(e){const r=e.map((e=>c(e.node)?e.nodes.length?o(e.node,{key:e.key},f(e.nodes)):o(e.node,{key:e.key}):e.node));return r.length>1?r:r[0]}function h({children:i,transition:c,initialMount:o=!0}){const a=r(!o),h=r(null),[y,g]=n({}),k=r([]),v=r(new Map),x=r(void 0),j=r(0),w=r(new Set),E=m({tree:k.current,nodes:i,mounting:v.current});if(v.current.forEach(((e,r)=>{E.has(r)||v.current.delete(r)})),d(k.current,(e=>{E.has(e.key)||w.current.add(e.key)})),w.current.size&&h.current){for(const e of h.current.children){const r=e.current?.id,n=w.current.has(r);if(e.current)if(n&&E.has(r))w.current.delete(r),e.current.trigger("mount",{immediate:!0}),e.current.timeline.mounted=!0;else if(n&&e.current.timeline.mounted){const r=Date.now()+1e3*e.current.trigger("unmount",{immediate:!0});if(j.current=Math.max(j.current,r),e.current.group){const r=s[e.current.group].get(e.current.timeline);r&&(r.state="unmounted")}e.current.timeline.mounted=!1}}const e=j.current-Date.now();clearTimeout(x.current);const r=(e=!0)=>{w.current.forEach((e=>{const r=l(k.current,e);r&&p(k.current,r,1)})),w.current.clear(),e&&g({})};e>0?x.current=setTimeout(r,e):r(!1)}return!w.current.size&&v.current.size&&(v.current.forEach((({node:e,index:r,replace:n},t)=>{if(n){const e=l(k.current,t);e&&p(k.current,e,1)}p(k.current,r,0,e)})),v.current.clear()),t((()=>{if(!h.current)return;let e,r=h.current.children.slice();for(;e=r.pop();)a.current&&e.current&&(e.current.timeline.mounted=!0),e.current?.id&&e.current.timeline.mounted&&e.current.adaptive&&null!==l(k.current,e.current.id)&&(e.current.timeline.transition(void 0,c),r.push(...e.current.children));a.current=!1})),e(u,{ref:h,passthrough:!0,cachable:[],children:f(k.current)})}export{h as default};
|
|
3
3
|
//# sourceMappingURL=layout-group.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.es2023.d.ts","../node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.es2023.array.d.ts","../node_modules/typescript/lib/lib.es2023.collection.d.ts","../node_modules/typescript/lib/lib.es2023.intl.d.ts","../node_modules/typescript/lib/lib.esnext.array.d.ts","../node_modules/typescript/lib/lib.esnext.collection.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../node_modules/typescript/lib/lib.esnext.string.d.ts","../node_modules/typescript/lib/lib.esnext.promise.d.ts","../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../node_modules/typescript/lib/lib.esnext.object.d.ts","../node_modules/typescript/lib/lib.esnext.regexp.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/tslib/tslib.d.ts","../node_modules/@types/react/global.d.ts","../node_modules/csstype/index.d.ts","../node_modules/@types/react/index.d.ts","../node_modules/@types/react/jsx-runtime.d.ts","../src/core/cache.ts","../src/core/utils.ts","../src/core/track.ts","../src/core/action.ts","../src/core/link.ts","../src/core/clip.ts","../src/hooks/use-trigger.ts","../src/core/timeline.ts","../src/animatable.tsx","../src/animate.tsx","../src/hooks/use-link.ts","../src/hooks/use-reduced-motion.ts","../src/hooks/use-scroll.ts","../src/hooks/use-path.ts","../src/hooks/use-viewport.ts","../src/hooks/use-visible.ts","../src/hooks/use-audio.ts","../src/hooks/use-spring.ts","../src/hooks.ts","../src/index.ts","../src/layout/morph.tsx","../src/layout/layout-group.tsx","../src/layout/typable.tsx","../src/layout.ts","../node_modules/@types/estree/index.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/@types/minimatch/index.d.ts","../node_modules/@types/glob/index.d.ts","../node_modules/@types/react-dom/index.d.ts","../node_modules/@types/resolve/index.d.ts"],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","17edc026abf73c5c2dd508652d63f68ec4efd9d4856e3469890d27598209feb5",{"version":"4af6b0c727b7a2896463d512fafd23634229adf69ac7c00e2ae15a09cb084fad","affectsGlobalScope":true},{"version":"9c00a480825408b6a24c63c1b71362232927247595d7c97659bc24dc68ae0757","affectsGlobalScope":true},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true},{"version":"ae37d6ccd1560b0203ab88d46987393adaaa78c919e51acf32fb82c86502e98c","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"5e07ed3809d48205d5b985642a59f2eba47c402374a7cf8006b686f79efadcbd","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"d3d7b04b45033f57351c8434f60b6be1ea71a2dfec2d0a0c3c83badbb0e3e693","affectsGlobalScope":true},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true},{"version":"d8670852241d4c6e03f2b89d67497a4bbefe29ecaa5a444e2c11a9b05e6fccc6","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true},{"version":"08a58483392df5fcc1db57d782e87734f77ae9eab42516028acbfe46f29a3ef7","affectsGlobalScope":true},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true},{"version":"0b11f3ca66aa33124202c80b70cd203219c3d4460cfc165e0707aa9ec710fc53","affectsGlobalScope":true},{"version":"6a3f5a0129cc80cf439ab71164334d649b47059a4f5afca90282362407d0c87f","affectsGlobalScope":true},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true},{"version":"15b98a533864d324e5f57cd3cfc0579b231df58c1c0f6063ea0fcb13c3c74ff9","affectsGlobalScope":true},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"4a882ffbb4ed09d9b7734f784aebb1dfe488d63725c40759165c5d9c657ca029",{"version":"36a2e4c9a67439aca5f91bb304611d5ae6e20d420503e96c230cf8fcdc948d94","affectsGlobalScope":true},"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","a305ee2f90e34e9e70aba9a9e9a154ce20c4d5cd1499cd21b8dc3617e1e5c810","42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","6a72b3d16fadf637354af566b7a3116bd9ae1bf82fa85748194b3882e20c9872","52c1a3fdd80165b67812bceca098e2db1813d95a5608b18210b68184562342e7","1825af831be2fe27a3fa623856a83ff35157198bc09280cd84ee00c25e780a76","8452afbcac66e3f8db08aab3219468c89bead4225ae22f7bda79651460cfba26","39644538dbe46560bb25c9b6790905fe59e913c4a501c77d447d8b9b21c9081f","a5c68267225c3b6f3071a915d4ccd162951aae82261dad851a958d67ea75452e","46ac9c11b5e6212e5156bb535756b60477ac624fc3bb532e551de6e6c46aa9ac","5ba6ee52b56c32cab54ddf22f9df9f3d7fe77c89b39d9a856df5b7fe78bc168d","c484a1f31d668a5251eaae8793d4c8f5178fceb79e4f79c04b652cffb679b481","b0fcfb391f7c9be72769287279ee7abec02afe97ea1c3d5149bf75a3584d94a9","689fd50b4138b903d4d8da8dc8f1bed8774cdbfc5e88126b45b14127bc6efcba","2e9d408dec35668f3826e2727dbe2d00911bf7a20098bc4c9d14100edab3f491","786ad2486cb2ade3053ed5a26156b0959948ee980e94e6abec39b1083bdd74f5","1395307a4ebd06ac6a42d5601212bcf6fafd04224aef2d768c6c08d1a984dd90","9cb80606efae65c3becb06fb24e807dd0a13189018a0f08ce6efd50814590608","beef36f7445ee01729a0fa35cd9a1b7e8be09e90bd9505308db48fa588afd924","f0e7ead8f0fa3e6fd8e388ca2a296f19a882c6ed878b3b495710ac7ecd675b2d","a45aeec17b5236108953988910bba0a01aa89d4f5445ef81636e7cbae5349357","af61ce607434278e95414e782453447cec403851a8beb0e3dc02e8d8a209d77d","d7dcf8f20df9be3094d0cb73a8e5cbf3e5a69615b1d794fe121f4d6be70aeefc","27fc90c97940f3dba18af3fa5df35a2974d440902fef3c6e7cb50778b7a797f9","4ad1d3c33ada1561eb545b889c51e5f1fa5d302048733fa304f1b78fc1df8c7c","56efa6c25db1b4e7d363f2f945e54a78ba3c2b6e7a3263b29fe77b64fc00a0f1","60944089907f8fb7c2ff36faeef7a2078a5d6ce0ed09f02981edcfea4ed29893","785b9d575b49124ce01b46f5b9402157c7611e6532effa562ac6aebec0074dfc","9122ed7070e054b73ebab37c2373a196def2d90e7d1a9a7fcd9d46b0e51fae78","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"77f0b5c6a193a699c9f7d7fb0578e64e562d271afa740783665d2a827104a873","affectsGlobalScope":true},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"3e4624c306340ad303cc536a07004e81336c3f088308a9e4a9f4c957a3cda2fd","affectsGlobalScope":true},"0c0cee62cb619aed81133b904f644515ba3064487002a7da83fd8aa07b1b4abd","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","025fc13211ed47d2798269017af3ec869122a050d5431a6ad3c1997900e65c58","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","75ecef44f126e2ae018b4abbd85b6e8a2e2ba1638ebec56cc64274643ce3567b","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"249a2b90439cdfd51709539fbfa4dfe0791cbae6efce1e9b327ba8f8cd703f49","affectsGlobalScope":true},"40b991dc3365179e1365643589e168d7ea0588b4dd5bbb3a974ffefa7cb05e7f","bf057bb805c5e1c0e795ac7c759d40ebbe0e9894df9be3413bbdd8d1a2fc229e","74f2bb83d1ccf390f48681be57a30c09e85b4c7a801267746e382b2386fc667e","7bac475dcdd9f7e4e9da934d32c305bc889c4ce3c8ac0ef45a93a8d670fff607","5d357e7965026197a3152fa4e990fa7a4cbaf1578a17dff920ff1a71a325e198","8acf99b1c8682276a63ea5bb68433782715892726b97e4604a415e4e56bce41c",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"3b145a2351f5cf16abf999c8d5f4481c74dffdc54ec1e9a89992e2622e1226c5","a907bf91df26df2400858ef75f749498fb5cf00062bf90a737ac3949cc07978d","d270fd4b565eda11a0a737c181892316b7a1ace06c7988d0246219c3df11db06","70caef0271088abc5f5ae7ff6d84421d35bb192b690fbaa1b2ecf2b0ef01deb6",{"version":"59a638a504490fecaacf0020b9814b6abee37edb66047eb1ab9f7c2274bf1da0","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","d1a78a3c5708807e8de3e399f91df4797c62e44b02195eefc2209b2e713e54ee","8c4c1a64db28930732033c31418f817dcb9d09d706766707ae6d38f23faf0c53","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","12a70315c8281e46d65696086dd25827408e967b305a22276ae2779fe519e0fe","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","29d613c3964ea75b2b4e0d17098245c34529282e9cc72b7e4eeb2a7b12c27cb7",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","a381f079c4804442f179d742fdb2e495fe28d67a47cac673485f75ae2e77aeca","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"bfe39beb986d2a2e512c091cbe924f1c415bc65de54de0e2f6a0dc6f84c183d9","affectsGlobalScope":true},"2af17363f8a062e3a8cd1b26030af0058b3f86e783f4fc6aa9f57247f240ebaa","06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","dfe08140492cdc135fb7fd9c4a652c05207b61a436906079b87da1d3111314bf","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa","089e1f8603cbc35ab977c8dcc662eb754b82fca32ed1dfb16bd682726c2d5432","8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"82fc37849846a3a0264047621d5beb6ce2ddeb2f83bdee2c79523af3c3282d97","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","fd326577c62145816fe1acc306c734c2396487f76719d3785d4e825b34540b33","df1f0af64d4087d4032c57bf23d3d6199b9e276a29a6ad89794f0d2442d6b85e","8baa5d0febc68db886c40bf341e5c90dc215a90cd64552e47e8184be6b7e3358"],"root":[[79,102]],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationDir":"./types","emitDeclarationOnly":false,"esModuleInterop":true,"importHelpers":true,"jsx":4,"module":99,"noEmitHelpers":true,"noUncheckedIndexedAccess":false,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7},"fileIdsList":[[148],[119,120,148,155,156],[104,148],[107,148],[108,113,148],[109,119,120,127,136,147,148],[109,110,119,127,148],[111,148],[112,113,120,128,148],[113,136,144,148],[114,116,119,127,148],[115,148],[116,117,148],[118,119,148],[119,148],[119,120,121,136,147,148],[119,120,121,136,139,148],[148,152],[122,127,136,147,148],[119,120,122,123,127,136,144,147,148],[122,124,136,144,147,148],[104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154],[119,125,148],[126,147,148],[116,119,127,136,148],[128,148],[129,148],[107,130,148],[131,146,148,152],[132,148],[133,148],[119,134,148],[134,135,148,150],[119,136,137,138,139,148],[136,138,148],[136,137,148],[139,148],[140,148],[119,142,143,148],[142,143,148],[113,127,136,144,148],[145,148],[127,146,148],[108,122,133,147,148],[113,148],[136,148,149],[148,150],[148,151],[108,113,119,121,130,136,147,148,150,152],[136,148,153],[77,148],[75,76,148],[74,77,78,79,80,84,85,86,148],[74,77,78,84,87,148],[74,78,81,84,148],[74,78,80,81,82,83,148],[74,78,84,148],[74,78,79,80,81,83,84,148],[74,78,79,80,82,84,148],[74,78,85,89,90,91,92,93,94,95,96,148],[74,77,78,83,89,148],[74,77,78,83,148],[74,77,78,148],[74,77,78,89,148],[74,77,78,85,93,148],[74,78,87,88,148],[74,78,99,100,101,148],[74,77,78,81,87,99,148],[74,77,78,80,81,86,87,148],[74,77,78,87,148]],"referencedMap":[[103,1],[157,2],[156,1],[104,3],[105,3],[107,4],[108,5],[109,6],[110,7],[111,8],[112,9],[113,10],[114,11],[115,12],[116,13],[117,13],[118,14],[119,15],[120,16],[121,17],[106,18],[154,1],[122,19],[123,20],[124,21],[155,22],[125,23],[126,24],[127,25],[128,26],[129,27],[130,28],[131,29],[132,30],[133,31],[134,32],[135,33],[136,34],[138,35],[137,36],[139,37],[140,38],[141,1],[142,39],[143,40],[144,41],[145,42],[146,43],[147,44],[148,45],[149,46],[150,47],[151,48],[152,49],[153,50],[158,51],[75,1],[77,52],[78,51],[159,1],[76,1],[74,1],[72,1],[73,1],[12,1],[13,1],[15,1],[14,1],[2,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[23,1],[3,1],[24,1],[4,1],[25,1],[29,1],[26,1],[27,1],[28,1],[30,1],[31,1],[32,1],[5,1],[33,1],[34,1],[35,1],[36,1],[6,1],[40,1],[37,1],[38,1],[39,1],[41,1],[7,1],[42,1],[47,1],[48,1],[43,1],[44,1],[45,1],[46,1],[8,1],[52,1],[49,1],[50,1],[51,1],[53,1],[9,1],[54,1],[55,1],[56,1],[59,1],[57,1],[58,1],[60,1],[61,1],[10,1],[62,1],[1,1],[63,1],[64,1],[11,1],[69,1],[66,1],[65,1],[70,1],[68,1],[71,1],[67,1],[87,53],[88,54],[82,55],[79,55],[84,56],[83,57],[86,58],[81,59],[80,55],[97,60],[95,61],[89,62],[92,63],[90,63],[91,64],[96,64],[85,63],[93,61],[94,65],[98,66],[102,67],[100,68],[99,69],[101,70]]},"version":"5.5.2"}
|
|
1
|
+
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.d.ts","../node_modules/typescript/lib/lib.es2023.d.ts","../node_modules/typescript/lib/lib.esnext.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2016.intl.d.ts","../node_modules/typescript/lib/lib.es2017.date.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.es2022.regexp.d.ts","../node_modules/typescript/lib/lib.es2023.array.d.ts","../node_modules/typescript/lib/lib.es2023.collection.d.ts","../node_modules/typescript/lib/lib.es2023.intl.d.ts","../node_modules/typescript/lib/lib.esnext.array.d.ts","../node_modules/typescript/lib/lib.esnext.collection.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.esnext.disposable.d.ts","../node_modules/typescript/lib/lib.esnext.string.d.ts","../node_modules/typescript/lib/lib.esnext.promise.d.ts","../node_modules/typescript/lib/lib.esnext.decorators.d.ts","../node_modules/typescript/lib/lib.esnext.object.d.ts","../node_modules/typescript/lib/lib.esnext.regexp.d.ts","../node_modules/typescript/lib/lib.decorators.d.ts","../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../node_modules/tslib/tslib.d.ts","../node_modules/@types/react/global.d.ts","../node_modules/csstype/index.d.ts","../node_modules/@types/react/index.d.ts","../node_modules/@types/react/jsx-runtime.d.ts","../src/core/cache.ts","../src/core/utils.ts","../src/core/track.ts","../src/core/action.ts","../src/core/link.ts","../src/core/clip.ts","../src/hooks/use-trigger.ts","../src/core/timeline.ts","../src/animatable.tsx","../src/animate.tsx","../src/hooks/use-link.ts","../src/hooks/use-reduced-motion.ts","../src/hooks/use-scroll.ts","../src/hooks/use-path.ts","../src/hooks/use-viewport.ts","../src/hooks/use-visible.ts","../src/hooks/use-audio.ts","../src/hooks/use-spring.ts","../src/hooks.ts","../src/index.ts","../src/layout/morph.tsx","../src/layout/layout-group.tsx","../src/layout/typable.tsx","../src/layout.ts","../node_modules/@types/estree/index.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/@types/minimatch/index.d.ts","../node_modules/@types/glob/index.d.ts","../node_modules/@types/react-dom/index.d.ts","../node_modules/@types/resolve/index.d.ts"],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4","feecb1be483ed332fad555aff858affd90a48ab19ba7272ee084704eb7167569","5514e54f17d6d74ecefedc73c504eadffdeda79c7ea205cf9febead32d45c4bc","27bdc30a0e32783366a5abeda841bc22757c1797de8681bbe81fbc735eeb1c10","17edc026abf73c5c2dd508652d63f68ec4efd9d4856e3469890d27598209feb5",{"version":"4af6b0c727b7a2896463d512fafd23634229adf69ac7c00e2ae15a09cb084fad","affectsGlobalScope":true},{"version":"9c00a480825408b6a24c63c1b71362232927247595d7c97659bc24dc68ae0757","affectsGlobalScope":true},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true},{"version":"ae37d6ccd1560b0203ab88d46987393adaaa78c919e51acf32fb82c86502e98c","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"5e07ed3809d48205d5b985642a59f2eba47c402374a7cf8006b686f79efadcbd","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"af3dd424cf267428f30ccfc376f47a2c0114546b55c44d8c0f1d57d841e28d74","affectsGlobalScope":true},{"version":"995c005ab91a498455ea8dfb63aa9f83fa2ea793c3d8aa344be4a1678d06d399","affectsGlobalScope":true},{"version":"d3d7b04b45033f57351c8434f60b6be1ea71a2dfec2d0a0c3c83badbb0e3e693","affectsGlobalScope":true},{"version":"956d27abdea9652e8368ce029bb1e0b9174e9678a273529f426df4b3d90abd60","affectsGlobalScope":true},{"version":"4fa6ed14e98aa80b91f61b9805c653ee82af3502dc21c9da5268d3857772ca05","affectsGlobalScope":true},{"version":"e6633e05da3ff36e6da2ec170d0d03ccf33de50ca4dc6f5aeecb572cedd162fb","affectsGlobalScope":true},{"version":"d8670852241d4c6e03f2b89d67497a4bbefe29ecaa5a444e2c11a9b05e6fccc6","affectsGlobalScope":true},{"version":"8444af78980e3b20b49324f4a16ba35024fef3ee069a0eb67616ea6ca821c47a","affectsGlobalScope":true},{"version":"caccc56c72713969e1cfe5c3d44e5bab151544d9d2b373d7dbe5a1e4166652be","affectsGlobalScope":true},{"version":"3287d9d085fbd618c3971944b65b4be57859f5415f495b33a6adc994edd2f004","affectsGlobalScope":true},{"version":"b4b67b1a91182421f5df999988c690f14d813b9850b40acd06ed44691f6727ad","affectsGlobalScope":true},{"version":"08a58483392df5fcc1db57d782e87734f77ae9eab42516028acbfe46f29a3ef7","affectsGlobalScope":true},{"version":"436aaf437562f276ec2ddbee2f2cdedac7664c1e4c1d2c36839ddd582eeb3d0a","affectsGlobalScope":true},{"version":"8e3c06ea092138bf9fa5e874a1fdbc9d54805d074bee1de31b99a11e2fec239d","affectsGlobalScope":true},{"version":"0b11f3ca66aa33124202c80b70cd203219c3d4460cfc165e0707aa9ec710fc53","affectsGlobalScope":true},{"version":"6a3f5a0129cc80cf439ab71164334d649b47059a4f5afca90282362407d0c87f","affectsGlobalScope":true},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true},{"version":"15b98a533864d324e5f57cd3cfc0579b231df58c1c0f6063ea0fcb13c3c74ff9","affectsGlobalScope":true},{"version":"0a6282c8827e4b9a95f4bf4f5c205673ada31b982f50572d27103df8ceb8013c","affectsGlobalScope":true},{"version":"ac77cb3e8c6d3565793eb90a8373ee8033146315a3dbead3bde8db5eaf5e5ec6","affectsGlobalScope":true},{"version":"d4b1d2c51d058fc21ec2629fff7a76249dec2e36e12960ea056e3ef89174080f","affectsGlobalScope":true},{"version":"2fef54945a13095fdb9b84f705f2b5994597640c46afeb2ce78352fab4cb3279","affectsGlobalScope":true},{"version":"56e4ed5aab5f5920980066a9409bfaf53e6d21d3f8d020c17e4de584d29600ad","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"4a882ffbb4ed09d9b7734f784aebb1dfe488d63725c40759165c5d9c657ca029",{"version":"36a2e4c9a67439aca5f91bb304611d5ae6e20d420503e96c230cf8fcdc948d94","affectsGlobalScope":true},"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","a305ee2f90e34e9e70aba9a9e9a154ce20c4d5cd1499cd21b8dc3617e1e5c810","42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","6a72b3d16fadf637354af566b7a3116bd9ae1bf82fa85748194b3882e20c9872","52c1a3fdd80165b67812bceca098e2db1813d95a5608b18210b68184562342e7","1825af831be2fe27a3fa623856a83ff35157198bc09280cd84ee00c25e780a76","8452afbcac66e3f8db08aab3219468c89bead4225ae22f7bda79651460cfba26","39644538dbe46560bb25c9b6790905fe59e913c4a501c77d447d8b9b21c9081f","a5c68267225c3b6f3071a915d4ccd162951aae82261dad851a958d67ea75452e","46ac9c11b5e6212e5156bb535756b60477ac624fc3bb532e551de6e6c46aa9ac","5ba6ee52b56c32cab54ddf22f9df9f3d7fe77c89b39d9a856df5b7fe78bc168d","c484a1f31d668a5251eaae8793d4c8f5178fceb79e4f79c04b652cffb679b481","b0fcfb391f7c9be72769287279ee7abec02afe97ea1c3d5149bf75a3584d94a9","689fd50b4138b903d4d8da8dc8f1bed8774cdbfc5e88126b45b14127bc6efcba","2e9d408dec35668f3826e2727dbe2d00911bf7a20098bc4c9d14100edab3f491","786ad2486cb2ade3053ed5a26156b0959948ee980e94e6abec39b1083bdd74f5","1395307a4ebd06ac6a42d5601212bcf6fafd04224aef2d768c6c08d1a984dd90","9cb80606efae65c3becb06fb24e807dd0a13189018a0f08ce6efd50814590608","beef36f7445ee01729a0fa35cd9a1b7e8be09e90bd9505308db48fa588afd924","f0e7ead8f0fa3e6fd8e388ca2a296f19a882c6ed878b3b495710ac7ecd675b2d","a45aeec17b5236108953988910bba0a01aa89d4f5445ef81636e7cbae5349357","af61ce607434278e95414e782453447cec403851a8beb0e3dc02e8d8a209d77d","d7dcf8f20df9be3094d0cb73a8e5cbf3e5a69615b1d794fe121f4d6be70aeefc","27fc90c97940f3dba18af3fa5df35a2974d440902fef3c6e7cb50778b7a797f9","99d7bd2cad131f6fd91549fb3292dd269315a5629c97d2c36b30ca5d0c3a937d","56efa6c25db1b4e7d363f2f945e54a78ba3c2b6e7a3263b29fe77b64fc00a0f1","60944089907f8fb7c2ff36faeef7a2078a5d6ce0ed09f02981edcfea4ed29893","785b9d575b49124ce01b46f5b9402157c7611e6532effa562ac6aebec0074dfc","9122ed7070e054b73ebab37c2373a196def2d90e7d1a9a7fcd9d46b0e51fae78","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"77f0b5c6a193a699c9f7d7fb0578e64e562d271afa740783665d2a827104a873","affectsGlobalScope":true},"21a167fec8f933752fb8157f06d28fab6817af3ad9b0bdb1908a10762391eab9",{"version":"3e4624c306340ad303cc536a07004e81336c3f088308a9e4a9f4c957a3cda2fd","affectsGlobalScope":true},"0c0cee62cb619aed81133b904f644515ba3064487002a7da83fd8aa07b1b4abd","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","025fc13211ed47d2798269017af3ec869122a050d5431a6ad3c1997900e65c58","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","75ecef44f126e2ae018b4abbd85b6e8a2e2ba1638ebec56cc64274643ce3567b","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"249a2b90439cdfd51709539fbfa4dfe0791cbae6efce1e9b327ba8f8cd703f49","affectsGlobalScope":true},"40b991dc3365179e1365643589e168d7ea0588b4dd5bbb3a974ffefa7cb05e7f","bf057bb805c5e1c0e795ac7c759d40ebbe0e9894df9be3413bbdd8d1a2fc229e","74f2bb83d1ccf390f48681be57a30c09e85b4c7a801267746e382b2386fc667e","7bac475dcdd9f7e4e9da934d32c305bc889c4ce3c8ac0ef45a93a8d670fff607","5d357e7965026197a3152fa4e990fa7a4cbaf1578a17dff920ff1a71a325e198","8acf99b1c8682276a63ea5bb68433782715892726b97e4604a415e4e56bce41c",{"version":"e8b18c6385ff784228a6f369694fcf1a6b475355ba89090a88de13587a9391d5","affectsGlobalScope":true},"3b145a2351f5cf16abf999c8d5f4481c74dffdc54ec1e9a89992e2622e1226c5","a907bf91df26df2400858ef75f749498fb5cf00062bf90a737ac3949cc07978d","d270fd4b565eda11a0a737c181892316b7a1ace06c7988d0246219c3df11db06","70caef0271088abc5f5ae7ff6d84421d35bb192b690fbaa1b2ecf2b0ef01deb6",{"version":"59a638a504490fecaacf0020b9814b6abee37edb66047eb1ab9f7c2274bf1da0","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","d1a78a3c5708807e8de3e399f91df4797c62e44b02195eefc2209b2e713e54ee","8c4c1a64db28930732033c31418f817dcb9d09d706766707ae6d38f23faf0c53","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","12a70315c8281e46d65696086dd25827408e967b305a22276ae2779fe519e0fe","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff",{"version":"806ef4cac3b3d9fa4a48d849c8e084d7c72fcd7b16d76e06049a9ed742ff79c0","affectsGlobalScope":true},"44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","29d613c3964ea75b2b4e0d17098245c34529282e9cc72b7e4eeb2a7b12c27cb7",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"664d8f2d59164f2e08c543981453893bc7e003e4dfd29651ce09db13e9457980","a381f079c4804442f179d742fdb2e495fe28d67a47cac673485f75ae2e77aeca","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"bfe39beb986d2a2e512c091cbe924f1c415bc65de54de0e2f6a0dc6f84c183d9","affectsGlobalScope":true},"2af17363f8a062e3a8cd1b26030af0058b3f86e783f4fc6aa9f57247f240ebaa","06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","dfe08140492cdc135fb7fd9c4a652c05207b61a436906079b87da1d3111314bf","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa","089e1f8603cbc35ab977c8dcc662eb754b82fca32ed1dfb16bd682726c2d5432","8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"82fc37849846a3a0264047621d5beb6ce2ddeb2f83bdee2c79523af3c3282d97","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","fd326577c62145816fe1acc306c734c2396487f76719d3785d4e825b34540b33","df1f0af64d4087d4032c57bf23d3d6199b9e276a29a6ad89794f0d2442d6b85e","8baa5d0febc68db886c40bf341e5c90dc215a90cd64552e47e8184be6b7e3358"],"root":[[79,102]],"options":{"allowSyntheticDefaultImports":true,"declaration":true,"declarationDir":"./types","emitDeclarationOnly":false,"esModuleInterop":true,"importHelpers":true,"jsx":4,"module":99,"noEmitHelpers":true,"noUncheckedIndexedAccess":false,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7},"fileIdsList":[[148],[119,120,148,155,156],[104,148],[107,148],[108,113,148],[109,119,120,127,136,147,148],[109,110,119,127,148],[111,148],[112,113,120,128,148],[113,136,144,148],[114,116,119,127,148],[115,148],[116,117,148],[118,119,148],[119,148],[119,120,121,136,147,148],[119,120,121,136,139,148],[148,152],[122,127,136,147,148],[119,120,122,123,127,136,144,147,148],[122,124,136,144,147,148],[104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154],[119,125,148],[126,147,148],[116,119,127,136,148],[128,148],[129,148],[107,130,148],[131,146,148,152],[132,148],[133,148],[119,134,148],[134,135,148,150],[119,136,137,138,139,148],[136,138,148],[136,137,148],[139,148],[140,148],[119,142,143,148],[142,143,148],[113,127,136,144,148],[145,148],[127,146,148],[108,122,133,147,148],[113,148],[136,148,149],[148,150],[148,151],[108,113,119,121,130,136,147,148,150,152],[136,148,153],[77,148],[75,76,148],[74,77,78,79,80,84,85,86,148],[74,77,78,84,87,148],[74,78,81,84,148],[74,78,80,81,82,83,148],[74,78,84,148],[74,78,79,80,81,83,84,148],[74,78,79,80,82,84,148],[74,78,85,89,90,91,92,93,94,95,96,148],[74,77,78,83,89,148],[74,77,78,83,148],[74,77,78,148],[74,77,78,89,148],[74,77,78,85,93,148],[74,78,87,88,148],[74,78,99,100,101,148],[74,77,78,81,87,99,148],[74,77,78,80,81,86,87,148],[74,77,78,87,148]],"referencedMap":[[103,1],[157,2],[156,1],[104,3],[105,3],[107,4],[108,5],[109,6],[110,7],[111,8],[112,9],[113,10],[114,11],[115,12],[116,13],[117,13],[118,14],[119,15],[120,16],[121,17],[106,18],[154,1],[122,19],[123,20],[124,21],[155,22],[125,23],[126,24],[127,25],[128,26],[129,27],[130,28],[131,29],[132,30],[133,31],[134,32],[135,33],[136,34],[138,35],[137,36],[139,37],[140,38],[141,1],[142,39],[143,40],[144,41],[145,42],[146,43],[147,44],[148,45],[149,46],[150,47],[151,48],[152,49],[153,50],[158,51],[75,1],[77,52],[78,51],[159,1],[76,1],[74,1],[72,1],[73,1],[12,1],[13,1],[15,1],[14,1],[2,1],[16,1],[17,1],[18,1],[19,1],[20,1],[21,1],[22,1],[23,1],[3,1],[24,1],[4,1],[25,1],[29,1],[26,1],[27,1],[28,1],[30,1],[31,1],[32,1],[5,1],[33,1],[34,1],[35,1],[36,1],[6,1],[40,1],[37,1],[38,1],[39,1],[41,1],[7,1],[42,1],[47,1],[48,1],[43,1],[44,1],[45,1],[46,1],[8,1],[52,1],[49,1],[50,1],[51,1],[53,1],[9,1],[54,1],[55,1],[56,1],[59,1],[57,1],[58,1],[60,1],[61,1],[10,1],[62,1],[1,1],[63,1],[64,1],[11,1],[69,1],[66,1],[65,1],[70,1],[68,1],[71,1],[67,1],[87,53],[88,54],[82,55],[79,55],[84,56],[83,57],[86,58],[81,59],[80,55],[97,60],[95,61],[89,62],[92,63],[90,63],[91,64],[96,64],[85,63],[93,61],[94,65],[98,66],[102,67],[100,68],[99,69],[101,70]]},"version":"5.5.2"}
|
package/package.json
CHANGED
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
3
|
-
import { Children, cloneElement, createContext, isValidElement, useCallback, useEffect, useImperativeHandle, useRef, use, useMemo, useLayoutEffect } from "react";
|
|
4
|
-
import Clip from "./core/clip";
|
|
5
|
-
import Timeline from "./core/timeline";
|
|
6
|
-
import { combineRefs, merge, pick } from "./core/utils";
|
|
7
|
-
export const AnimatableContext = createContext(null);
|
|
8
|
-
/**
|
|
9
|
-
* Wrap around a react component to animate it.
|
|
10
|
-
*
|
|
11
|
-
* @see {@link https://lively.infinityfx.dev/docs/components/animatable}
|
|
12
|
-
*/
|
|
13
|
-
export default function Animatable(props) {
|
|
14
|
-
const self = useRef(null);
|
|
15
|
-
const children = useRef([]);
|
|
16
|
-
const parent = use(AnimatableContext);
|
|
17
|
-
const mergedProps = props.inherit && parent ? merge({}, props, pick(parent, ['group', 'animations', 'triggers', 'animate', 'initial', 'stagger', 'staggerLimit', 'deform', 'disabled', 'paused'])) : props;
|
|
18
|
-
const { id = '', inherit, triggers = [], disabled, adaptive = false, manual = false, paused } = mergedProps;
|
|
19
|
-
const index = props.order !== undefined ? props.order : (inherit && parent?.index || -1) + 1;
|
|
20
|
-
const triggersState = useRef([]);
|
|
21
|
-
// aggregate animation definitions into a set of named animation clips
|
|
22
|
-
const clipMap = useMemo(() => {
|
|
23
|
-
const map = { animate: Clip.from(mergedProps.animate, mergedProps.initial) };
|
|
24
|
-
for (const name in mergedProps.animations) {
|
|
25
|
-
map[name] = Clip.from(mergedProps.animations[name], mergedProps.initial);
|
|
26
|
-
}
|
|
27
|
-
return map;
|
|
28
|
-
}, []);
|
|
29
|
-
const timeline = useRef(new Timeline({
|
|
30
|
-
...mergedProps,
|
|
31
|
-
// seperate out animation clips that trigger on mount
|
|
32
|
-
// needed when a child element remounts without the parent having unmounted
|
|
33
|
-
mountClips: triggers.reduce((clips, { name, on }) => {
|
|
34
|
-
if (on === 'mount')
|
|
35
|
-
clips.push(clipMap[name || 'animate']);
|
|
36
|
-
return clips;
|
|
37
|
-
}, [])
|
|
38
|
-
}));
|
|
39
|
-
// plays an animation and cascades this animation to the necessary children
|
|
40
|
-
// returns the total duration of the animation in seconds
|
|
41
|
-
const play = useCallback((animation, options = {}, layer = 1) => {
|
|
42
|
-
const clip = clipMap[animation];
|
|
43
|
-
// if this component is disabled or part of a cascade animation but not getting its play instruction from a parent, then return 0
|
|
44
|
-
if (disabled || (inherit && layer < 2))
|
|
45
|
-
return 0;
|
|
46
|
-
merge(options, { reverse: clip?.reverse }); // optimize syntax?
|
|
47
|
-
let cascadeDelay = 0, layerDelay = (options.delay || 0), duration = clip ? timeline.current.time(clip) : 0;
|
|
48
|
-
// cascade the animation to children that have their inherit property set
|
|
49
|
-
for (const child of children.current) {
|
|
50
|
-
if (!child.current?.inherit)
|
|
51
|
-
continue;
|
|
52
|
-
cascadeDelay = Math.max(child.current.play(animation, merge({
|
|
53
|
-
delay: layerDelay + duration
|
|
54
|
-
}, options), layer + 1), cascadeDelay);
|
|
55
|
-
}
|
|
56
|
-
const delay = (options.reverse ? cascadeDelay : layerDelay) * (index / layer + (1 / layer));
|
|
57
|
-
if (clip)
|
|
58
|
-
timeline.current.add(clip, merge({ delay }, options));
|
|
59
|
-
if (props.onAnimationEnd)
|
|
60
|
-
setTimeout(props.onAnimationEnd.bind({}, animation), (duration + delay) * 1000);
|
|
61
|
-
return duration + delay;
|
|
62
|
-
}, [disabled, inherit, index]);
|
|
63
|
-
function trigger(trigger, options = {}) {
|
|
64
|
-
let duration = 0;
|
|
65
|
-
for (const { name, on, ...config } of triggers) {
|
|
66
|
-
if (on !== trigger)
|
|
67
|
-
continue;
|
|
68
|
-
// when cascading to children dont use parent animation name, but infer from triggers of children
|
|
69
|
-
duration = Math.max(play(name || 'animate', merge(config, options)), duration);
|
|
70
|
-
}
|
|
71
|
-
return duration;
|
|
72
|
-
}
|
|
73
|
-
useImperativeHandle(combineRefs(self, props.ref), () => ({
|
|
74
|
-
play,
|
|
75
|
-
trigger,
|
|
76
|
-
timeline: timeline.current,
|
|
77
|
-
children: children.current,
|
|
78
|
-
inherit,
|
|
79
|
-
adaptive,
|
|
80
|
-
group: mergedProps.group,
|
|
81
|
-
id
|
|
82
|
-
}), [triggers]);
|
|
83
|
-
useEffect(() => timeline.current.pause(!!(paused || disabled)), [paused, disabled]);
|
|
84
|
-
useEffect(() => {
|
|
85
|
-
// go over all triggers to check whether animations should be played
|
|
86
|
-
for (let i = 0; i < triggers.length; i++) {
|
|
87
|
-
let { name, on, ...options } = triggers[i];
|
|
88
|
-
if (typeof on === 'string')
|
|
89
|
-
continue;
|
|
90
|
-
const value = typeof on === 'boolean' ? on : on.called, prev = triggersState.current[i];
|
|
91
|
-
if (prev !== undefined && value && value !== prev)
|
|
92
|
-
play(name || 'animate', options);
|
|
93
|
-
triggersState.current[i] = value;
|
|
94
|
-
}
|
|
95
|
-
}, [triggers]);
|
|
96
|
-
useLayoutEffect(() => {
|
|
97
|
-
const cache = () => timeline.current.cache(); // maybe dont do this mid transition (also transition on resize within layoutgroup)
|
|
98
|
-
timeline.current.link(mergedProps.animate);
|
|
99
|
-
window.addEventListener('resize', cache);
|
|
100
|
-
parent?.add(self);
|
|
101
|
-
// wait for all fonts to be loaded to avoid layout shifts when playing mount animations
|
|
102
|
-
document.fonts.ready.then(() => {
|
|
103
|
-
if (!manual && !timeline.current.mounted)
|
|
104
|
-
trigger('mount');
|
|
105
|
-
timeline.current.mounted = true;
|
|
106
|
-
});
|
|
107
|
-
return () => {
|
|
108
|
-
window.removeEventListener('resize', cache);
|
|
109
|
-
timeline.current.unlink();
|
|
110
|
-
parent?.remove(self);
|
|
111
|
-
};
|
|
112
|
-
}, []);
|
|
113
|
-
return _jsx(AnimatableContext, { value: {
|
|
114
|
-
...(props.passthrough ? parent : { index, ...mergedProps }),
|
|
115
|
-
add: (child) => {
|
|
116
|
-
if (props.passthrough)
|
|
117
|
-
parent?.add(child);
|
|
118
|
-
if (!children.current.includes(child))
|
|
119
|
-
children.current.push(child);
|
|
120
|
-
},
|
|
121
|
-
remove: (child) => {
|
|
122
|
-
if (props.passthrough)
|
|
123
|
-
parent?.remove(child);
|
|
124
|
-
const i = children.current.indexOf(child) || -1;
|
|
125
|
-
if (i >= 0)
|
|
126
|
-
children.current.splice(i, 1);
|
|
127
|
-
}
|
|
128
|
-
}, children: Children.map(props.children, child => {
|
|
129
|
-
if (!isValidElement(child))
|
|
130
|
-
return child;
|
|
131
|
-
return cloneElement(child, {
|
|
132
|
-
ref: combineRefs(el => timeline.current.insert(el), child.props.ref),
|
|
133
|
-
// make all svg paths a length of 1 so then can be animated consistently
|
|
134
|
-
pathLength: 1,
|
|
135
|
-
style: merge({
|
|
136
|
-
backfaceVisibility: 'hidden',
|
|
137
|
-
willChange: 'transform'
|
|
138
|
-
}, child.props.style, clipMap.animate.initial, {
|
|
139
|
-
strokeDasharray: 1
|
|
140
|
-
}),
|
|
141
|
-
// if this component caches position data, then child components that cache their position data should not check past this component
|
|
142
|
-
'data-lively-offset-boundary': ['x', 'y'].some(key => props.cachable?.includes(key)) || props.cachable === undefined ? true : undefined
|
|
143
|
-
});
|
|
144
|
-
}) });
|
|
145
|
-
}
|
|
146
|
-
Animatable.isLively = true;
|
|
147
|
-
//# sourceMappingURL=animatable.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"animatable.js","sourceRoot":"","sources":["../src/animatable.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,MAAM,EAAE,GAAG,EAAE,OAAO,EAAE,eAAe,EAAE,MAAM,OAAO,CAAC;AAClK,OAAO,IAA4C,MAAM,aAAa,CAAC;AAEvE,OAAO,QAAyB,MAAM,iBAAiB,CAAC;AACxD,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,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AAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,CAAC,QAAQ,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS;aACrJ,CAAC,CAAC;QACP,CAAC,CAAC,GACc,CAAC;AACzB,CAAC;AAED,UAAU,CAAC,QAAQ,GAAG,IAAI,CAAC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
3
|
-
import { Children, cloneElement, isValidElement } from "react";
|
|
4
|
-
import Animatable from "./animatable";
|
|
5
|
-
/**
|
|
6
|
-
* Automated cascade animations.
|
|
7
|
-
*
|
|
8
|
-
* @see {@link https://lively.infinityfx.dev/docs/components/animate}
|
|
9
|
-
*/
|
|
10
|
-
export default function Animate({ children, animations = [{ translate: ['0px 16px', '0px 0px'], opacity: [0, 1], duration: .35 }], levels = 2, ...props }) {
|
|
11
|
-
function render(children, level = levels) {
|
|
12
|
-
let idx = levels - level, clip;
|
|
13
|
-
while (!(clip = animations[idx]) && idx >= 0)
|
|
14
|
-
idx--;
|
|
15
|
-
if (level < 1 || Children.count(children) < 1)
|
|
16
|
-
return children;
|
|
17
|
-
return _jsx(Animatable, { ...props, animate: clip, inherit: level < levels ? true : props.inherit, children: Children.map(children, child => {
|
|
18
|
-
if (!isValidElement(child))
|
|
19
|
-
return child;
|
|
20
|
-
return cloneElement(child, {}, render(child.props.children, level - 1));
|
|
21
|
-
}) });
|
|
22
|
-
}
|
|
23
|
-
return _jsx(_Fragment, { children: render(children) });
|
|
24
|
-
}
|
|
25
|
-
Animate.isLively = true;
|
|
26
|
-
//# sourceMappingURL=animate.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"animate.js","sourceRoot":"","sources":["../src/animate.tsx"],"names":[],"mappings":"AAAA,YAAY,CAAC;;AAEb,OAAO,EAAE,QAAQ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AC;AACnC,CAAC;AAED,OAAO,CAAC,QAAQ,GAAG,IAAI,CAAC"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
export default class Action {
|
|
2
|
-
constructor(track, keyframes, config, dynamic = {}) {
|
|
3
|
-
this.commit = true;
|
|
4
|
-
this.onfinish = null;
|
|
5
|
-
this.composite = config.composite;
|
|
6
|
-
config.composite = config.composite === 'combine' ? 'accumulate' : 'replace';
|
|
7
|
-
this.animation = track.element.animate(keyframes, config);
|
|
8
|
-
this.dynamic = dynamic;
|
|
9
|
-
this.track = track;
|
|
10
|
-
this.animation.onfinish = this.finish.bind(this);
|
|
11
|
-
}
|
|
12
|
-
finish() {
|
|
13
|
-
try {
|
|
14
|
-
if (this.commit)
|
|
15
|
-
this.animation.commitStyles();
|
|
16
|
-
}
|
|
17
|
-
catch (ex) { }
|
|
18
|
-
this.animation.cancel();
|
|
19
|
-
this.onfinish?.();
|
|
20
|
-
}
|
|
21
|
-
step(index) {
|
|
22
|
-
const progress = this.animation.effect?.getComputedTiming().progress || 0;
|
|
23
|
-
for (const prop in this.dynamic) {
|
|
24
|
-
this.track.apply(prop, this.dynamic[prop]?.call(this.track, progress, index));
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=action.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"action.js","sourceRoot":"","sources":["../../src/core/action.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,OAAO,OAAO,MAAM;IASvB,YAAY,KAAY,EAAE,SAAgD,EAAE,MAAmF,EAAE,UAA6B,EAAE;QANhM,WAAM,GAAY,IAAI,CAAC;QAIvB,aAAQ,GAAwB,IAAI,CAAC;QAGjC,IAAI,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC;QACjC,MAAc,CAAC,SAAS,GAAG,MAAM,CAAC,SAAS,KAAK,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,SAAS,CAAC;QACtF,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,OAAO,CAAC,SAAS,EAAE,MAAyC,CAAC,CAAC;QAC7F,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QAEnB,IAAI,CAAC,SAAS,CAAC,QAAQ,GAAG,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IACrD,CAAC;IAED,MAAM;QACF,IAAI,CAAC;YACD,IAAI,IAAI,CAAC,MAAM;gBAAE,IAAI,CAAC,SAAS,CAAC,YAAY,EAAE,CAAC;QACnD,CAAC;QAAC,OAAO,EAAE,EAAE,CAAC,CAAA,CAAC;QACf,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,CAAC;QAExB,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC;IACtB,CAAC;IAED,IAAI,CAAC,KAAa;QACd,MAAM,QAAQ,GAAG,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,iBAAiB,EAAE,CAAC,QAAQ,IAAI,CAAC,CAAC;QAE1E,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YAC9B,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,IAAI,CAAC,OAAO,CAAC,IAA+B,CAAC,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC;QAC7G,CAAC;IACL,CAAC;CAEJ"}
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import Clip from "./clip";
|
|
2
|
-
export class StyleCache {
|
|
3
|
-
constructor(element, include = ['x', 'y', 'sx', 'sy', 'borderRadius', 'backgroundColor', 'color', 'rotate']) {
|
|
4
|
-
this.element = element;
|
|
5
|
-
this.include = include.map(key => key === 'strokeLength' ? 'strokeDashoffset' : key);
|
|
6
|
-
this.computed = getComputedStyle(element);
|
|
7
|
-
this.data = this.read();
|
|
8
|
-
}
|
|
9
|
-
read() {
|
|
10
|
-
const data = {};
|
|
11
|
-
// @ts-expect-error
|
|
12
|
-
for (const prop of this.include)
|
|
13
|
-
data[prop] = this.computed[prop];
|
|
14
|
-
if (this.element instanceof SVGElement)
|
|
15
|
-
return data;
|
|
16
|
-
data.sx = this.element.offsetWidth;
|
|
17
|
-
data.sy = this.element.offsetHeight;
|
|
18
|
-
data.x = data.sx / 2;
|
|
19
|
-
data.y = data.sy / 2;
|
|
20
|
-
let parent = this.element;
|
|
21
|
-
while (parent) {
|
|
22
|
-
data.x += parent.offsetLeft;
|
|
23
|
-
data.y += parent.offsetTop;
|
|
24
|
-
parent = parent.offsetParent;
|
|
25
|
-
if (parent?.dataset.livelyOffsetBoundary)
|
|
26
|
-
break;
|
|
27
|
-
}
|
|
28
|
-
return data;
|
|
29
|
-
}
|
|
30
|
-
update() {
|
|
31
|
-
this.data = this.read();
|
|
32
|
-
}
|
|
33
|
-
difference(from = this.data, { duration = 0.5, easing = 'ease', reverse = false }) {
|
|
34
|
-
const to = this.read(); // multiple simultanious transitions a problem?
|
|
35
|
-
const scale = [[1, 1], [1, 1]], translate = [['0px', '0px'], ['0px', '0px']];
|
|
36
|
-
const keyframes1 = { duration, easing, reverse, composite: 'combine' }, keyframes2 = { ...keyframes1, composite: 'override' };
|
|
37
|
-
for (const key of this.include) {
|
|
38
|
-
switch (key) {
|
|
39
|
-
case 'x':
|
|
40
|
-
case 'y':
|
|
41
|
-
translate[0][key == 'x' ? 0 : 1] = from[key] - to[key] + 'px';
|
|
42
|
-
break;
|
|
43
|
-
case 'sx':
|
|
44
|
-
case 'sy':
|
|
45
|
-
scale[0][key == 'sx' ? 0 : 1] = to[key] === 0 ? 1 : from[key] / to[key];
|
|
46
|
-
break;
|
|
47
|
-
default: keyframes2[key] = [from[key], to[key]];
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
keyframes1.scale = scale.map(val => val.join(' '));
|
|
51
|
-
keyframes1.translate = translate.map(val => val.join(' '));
|
|
52
|
-
return [new Clip(keyframes1), new Clip(keyframes2)];
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
//# sourceMappingURL=cache.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cache.js","sourceRoot":"","sources":["../../src/core/cache.ts"],"names":[],"mappings":"AAAA,OAAO,IAAuC,MAAM,QAAQ,CAAC;AAe7D,MAAM,OAAO,UAAU;IAOnB,YAAY,OAAiC,EAAE,UAAyB,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,cAAc,EAAE,iBAAiB,EAAE,OAAO,EAAE,QAAQ,CAAC;QAChJ,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,KAAK,cAAc,CAAC,CAAC,CAAC,kBAAkB,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QACrF,IAAI,CAAC,QAAQ,GAAG,gBAAgB,CAAC,OAAO,CAAC,CAAC;QAC1C,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,EAAE,CAAC;IAC5B,CAAC;IAED,IAAI;QACA,MAAM,IAAI,GAAG,EAAe,CAAC;QAE7B,mBAAmB;QACnB,KAAK,MAAM,IAAI,IAAI,IAAI,CAAC,OAAO;YAAE,IAAI,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;QAElE,IAAI,IAAI,CAAC,OAAO,YAAY,UAAU;YAAE,OAAO,IAAI,CAAC;QACpD,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,WAAW,CAAC;QACnC,IAAI,CAAC,EAAE,GAAG,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC;QACpC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAC,EAAE,GAAG,CAAC,CAAC;QACrB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AG,IAAI,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC;oBAC9D,MAAM;gBACV,KAAK,IAAI,CAAC;gBACV,KAAK,IAAI;oBACL,KAAK,CAAC,CAAC,CAAC,CAAC,GAAG,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC;oBACxE,MAAM;gBACV,OAAO,CAAC,CAAC,UAAU,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,CAAC,GAAY,CAAC,EAAE,EAAE,CAAC,GAAY,CAAC,CAAC,CAAC;YACtE,CAAC;QACL,CAAC;QAED,UAAU,CAAC,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QACnD,UAAU,CAAC,SAAS,GAAG,SAAS,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QAE3D,OAAO,CAAC,IAAI,IAAI,CAAC,UAAU,CAAC,EAAE,IAAI,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC;IACxD,CAAC;CAEJ"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import Action from "./action";
|
|
2
|
-
import { isLink } from "./link";
|
|
3
|
-
import { createDynamic, distributeAnimatableKeyframes, merge, normalizeAnimatableKeyframes } from "./utils";
|
|
4
|
-
export default class Clip {
|
|
5
|
-
constructor({ duration = 1, delay = 0, repeat = 1, alternate = false, easing = 'ease', reverse = false, composite = 'none', ...properties }, initial = {}) {
|
|
6
|
-
this.dynamic = {};
|
|
7
|
-
const keyframes = {};
|
|
8
|
-
for (let prop in properties) {
|
|
9
|
-
let val = properties[prop], init = initial[prop];
|
|
10
|
-
if (val instanceof Function) {
|
|
11
|
-
if (!isLink(val))
|
|
12
|
-
this.dynamic[prop] = val;
|
|
13
|
-
continue;
|
|
14
|
-
}
|
|
15
|
-
const arr = Array.isArray(val) ? val : [val];
|
|
16
|
-
if (arr.length < 2 && init !== undefined)
|
|
17
|
-
arr.unshift(init);
|
|
18
|
-
if (arr[0] === null)
|
|
19
|
-
init !== undefined ? arr[0] = init : arr.splice(0, 1);
|
|
20
|
-
if (!normalizeAnimatableKeyframes(arr))
|
|
21
|
-
continue;
|
|
22
|
-
if (prop === 'borderRadius') {
|
|
23
|
-
this.dynamic[prop] = createDynamic(prop, Object.values(distributeAnimatableKeyframes(prop, arr)), easing);
|
|
24
|
-
continue;
|
|
25
|
-
}
|
|
26
|
-
distributeAnimatableKeyframes(prop, arr, keyframes);
|
|
27
|
-
}
|
|
28
|
-
this.keyframes = Object.values(keyframes);
|
|
29
|
-
this.initial = merge({}, initial, this.keyframes.length ? this.keyframes[0] : {});
|
|
30
|
-
// this.initial.strokeDashoffset = lengthToOffset((this.initial as any).strokeLength);
|
|
31
|
-
delete this.initial.offset;
|
|
32
|
-
this.isEmpty = !this.keyframes.length && !Object.keys(this.dynamic).length;
|
|
33
|
-
this.duration = this.isEmpty ? 0 : duration;
|
|
34
|
-
this.delay = delay;
|
|
35
|
-
this.repeat = repeat;
|
|
36
|
-
this.alternate = alternate;
|
|
37
|
-
this.easing = easing;
|
|
38
|
-
this.reverse = reverse;
|
|
39
|
-
this.composite = composite;
|
|
40
|
-
}
|
|
41
|
-
static from(data, initial) {
|
|
42
|
-
return data instanceof Clip ? data : new Clip(data || {}, initial);
|
|
43
|
-
}
|
|
44
|
-
unique(config) {
|
|
45
|
-
const clip = new Clip({});
|
|
46
|
-
for (const key in this) {
|
|
47
|
-
if (this.hasOwnProperty(key)) {
|
|
48
|
-
clip[key] = key in config ? config[key] : this[key];
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
return clip;
|
|
52
|
-
}
|
|
53
|
-
play(track, { composite = this.composite, reverse = this.reverse, commit = true, delay = 0 }) {
|
|
54
|
-
if (this.isEmpty)
|
|
55
|
-
return;
|
|
56
|
-
const action = new Action(track, this.keyframes, {
|
|
57
|
-
duration: this.duration * 1000,
|
|
58
|
-
delay: (delay + this.delay) * 1000,
|
|
59
|
-
iterations: this.repeat,
|
|
60
|
-
direction: this.alternate ?
|
|
61
|
-
(reverse ? 'alternate-reverse' : 'alternate') :
|
|
62
|
-
(reverse ? 'reverse' : 'normal'),
|
|
63
|
-
fill: 'both',
|
|
64
|
-
easing: this.easing,
|
|
65
|
-
composite
|
|
66
|
-
}, this.dynamic);
|
|
67
|
-
action.commit = commit;
|
|
68
|
-
track.push(action);
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=clip.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"clip.js","sourceRoot":"","sources":["../../src/core/clip.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,UAAU,CAAC;AAC9B,OAAO,EAAQ,MAAM,EAAE,MAAM,QAAQ,CAAC;AAEtC,OAAO,EAAE,aAAa,EAAE,6BAA6B,EAAE,KAAK,EAAE,4BAA4B,EAAE,MAAM,SAAS,CAAC;AAiC5G,MAAM,CAAC,OAAO,OAAO,IAAI;IAcrB,YAAY,EAAE,QAAQ,GAAG,CAAC,EAAE,KAAK,GAAG,CAAC,EAAE,MAAM,GAAG,CAAC,EAAE,SAAS,GAAG,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,OAAO,GAAG,KAAK,EAAE,SAAS,GAAG,MAAM,EAAE,GAAG,UAAU,EAAkB,EAAE,UAA8B,EAAE;QAV7L,YAAO,GAAsB,EAAE,CAAC;QAW5B,MAAM,SAAS,GAEX,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GAAY,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;YAC1E,CAAC;QACL,CAAC;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;IAED,IAAI,CAAC,KAAY,EAAE,EAAE,SAAS,GAAG,IAAI,CAAC,SAAS,EAAE,OAAO,GAAG,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,EAAE,KAAK,GAAG,CAAC,EAAuF;QACpL,IAAI,IAAI,CAAC,OAAO;YAAE,OAAO;QAEzB,MAAM,MAAM,GAAG,IAAI,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,SAAS,EAAE;YAC7C,QAAQ,EAAE,IAAI,CAAC,QAAQ,GAAG,IAAI;YAC9B,KAAK,EAAE,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,IAAI;YAClC,UAAU,EAAE,IAAI,CAAC,MAAM;YACvB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,CAAC;gBACvB,CAAC,OAAO,CAAC,CAAC,CAAC,mBAAmB,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC;gBAC/C,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,QAAQ,CAAC;YACpC,IAAI,EAAE,MAAM;YACZ,MAAM,EAAE,IAAI,CAAC,MAAM;YACnB,SAAS;SACZ,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;QAEjB,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC;QAEvB,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvB,CAAC;CAEJ"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
const links = new Set();
|
|
2
|
-
export function createLink(initial, computed) {
|
|
3
|
-
let internal = {
|
|
4
|
-
value: initial,
|
|
5
|
-
cached: initial,
|
|
6
|
-
subscriptions: new Set()
|
|
7
|
-
};
|
|
8
|
-
const Link = function (arg) {
|
|
9
|
-
if (arg instanceof Function)
|
|
10
|
-
return createLink(internal.value, (index) => arg(Link(), index));
|
|
11
|
-
return computed ? computed(arg || 0) : internal.value;
|
|
12
|
-
};
|
|
13
|
-
Link.set = (value, options) => {
|
|
14
|
-
internal.value = value;
|
|
15
|
-
links.forEach(link => {
|
|
16
|
-
if (!link.key.deref())
|
|
17
|
-
return links.delete(link);
|
|
18
|
-
link.observe(options || {});
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
Link.subscribe = (callback) => internal.subscriptions.add(callback);
|
|
22
|
-
Link.unsubscribe = (callback) => internal.subscriptions.delete(callback);
|
|
23
|
-
function observe(options) {
|
|
24
|
-
const current = Link();
|
|
25
|
-
if (current !== internal.cached) {
|
|
26
|
-
internal.cached = current;
|
|
27
|
-
internal.subscriptions.forEach(subscription => subscription(options));
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
links.add({
|
|
31
|
-
key: new WeakRef(Link),
|
|
32
|
-
observe
|
|
33
|
-
});
|
|
34
|
-
return Link;
|
|
35
|
-
}
|
|
36
|
-
export function isLink(val) {
|
|
37
|
-
return val.subscribe !== undefined;
|
|
38
|
-
}
|
|
39
|
-
//# sourceMappingURL=link.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"link.js","sourceRoot":"","sources":["../../src/core/link.ts"],"names":[],"mappings":"AAgBA,MAAM,KAAK,GAAG,IAAI,GAAG,EAGjB,CAAC;AAEL,MAAM,UAAU,UAAU,CAAO,OAAU,EAAE,QAAsB;IAC/D,IAAI,QAAQ,GAAG;QACX,KAAK,EAAE,OAAO;QACd,MAAM,EAAE,OAAO;QACf,aAAa,EAAE,IAAI,GAAG,EAAuB;KAChD,CAAC;IAEF,MAAM,IAAI,GAAY,UAAU,GAAQ;QACpC,IAAI,GAAG,YAAY,QAAQ;YAAE,OAAO,UAAU,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAC,KAAa,EAAE,EAAE,CAAC,GAAG,CAAC,IAAI,EAAE,EAAE,KAAK,CAAC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