@g9tm/lynxcontrols-studio 0.0.0-stage → 2.8.1

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.
Files changed (76) hide show
  1. package/README.md +184 -2
  2. package/catalog/cards/G9NleTimeline.md +17 -0
  3. package/catalog/cards/G9Surface.md +16 -0
  4. package/catalog/cards/G9TransformBox.md +17 -0
  5. package/catalog/catalog.json +2255 -0
  6. package/catalog/index.md +7 -0
  7. package/dist/.tsbuildinfo +1 -0
  8. package/dist/index.d.ts +4 -0
  9. package/dist/index.d.ts.map +1 -0
  10. package/dist/index.jsx +3 -0
  11. package/dist/nle-timeline/core.d.ts +5 -0
  12. package/dist/nle-timeline/core.d.ts.map +1 -0
  13. package/dist/nle-timeline/core.js +4 -0
  14. package/dist/nle-timeline/core.jsx +4 -0
  15. package/dist/nle-timeline/edits.d.ts +65 -0
  16. package/dist/nle-timeline/edits.d.ts.map +1 -0
  17. package/dist/nle-timeline/edits.js +344 -0
  18. package/dist/nle-timeline/edits.js.map +1 -0
  19. package/dist/nle-timeline/edits.jsx +342 -0
  20. package/dist/nle-timeline/engine.d.ts +159 -0
  21. package/dist/nle-timeline/engine.d.ts.map +1 -0
  22. package/dist/nle-timeline/engine.js +899 -0
  23. package/dist/nle-timeline/engine.js.map +1 -0
  24. package/dist/nle-timeline/engine.jsx +897 -0
  25. package/dist/nle-timeline/index.d.ts +6 -0
  26. package/dist/nle-timeline/index.d.ts.map +1 -0
  27. package/dist/nle-timeline/index.jsx +5 -0
  28. package/dist/nle-timeline/layout.d.ts +116 -0
  29. package/dist/nle-timeline/layout.d.ts.map +1 -0
  30. package/dist/nle-timeline/layout.js +310 -0
  31. package/dist/nle-timeline/layout.js.map +1 -0
  32. package/dist/nle-timeline/layout.jsx +308 -0
  33. package/dist/nle-timeline/model.d.ts +140 -0
  34. package/dist/nle-timeline/model.d.ts.map +1 -0
  35. package/dist/nle-timeline/model.js +155 -0
  36. package/dist/nle-timeline/model.js.map +1 -0
  37. package/dist/nle-timeline/model.jsx +153 -0
  38. package/dist/nle-timeline/nle.d.ts +72 -0
  39. package/dist/nle-timeline/nle.d.ts.map +1 -0
  40. package/dist/nle-timeline/nle.jsx +92 -0
  41. package/dist/surface/core.d.ts +2 -0
  42. package/dist/surface/core.d.ts.map +1 -0
  43. package/dist/surface/core.js +1 -0
  44. package/dist/surface/core.jsx +1 -0
  45. package/dist/surface/index.d.ts +3 -0
  46. package/dist/surface/index.d.ts.map +1 -0
  47. package/dist/surface/index.jsx +2 -0
  48. package/dist/surface/protocol.d.ts +40 -0
  49. package/dist/surface/protocol.d.ts.map +1 -0
  50. package/dist/surface/protocol.js +19 -0
  51. package/dist/surface/protocol.js.map +1 -0
  52. package/dist/surface/protocol.jsx +17 -0
  53. package/dist/surface/surface.d.ts +53 -0
  54. package/dist/surface/surface.d.ts.map +1 -0
  55. package/dist/surface/surface.jsx +62 -0
  56. package/dist/transform-box/core.d.ts +3 -0
  57. package/dist/transform-box/core.d.ts.map +1 -0
  58. package/dist/transform-box/core.js +2 -0
  59. package/dist/transform-box/core.jsx +2 -0
  60. package/dist/transform-box/engine.d.ts +152 -0
  61. package/dist/transform-box/engine.d.ts.map +1 -0
  62. package/dist/transform-box/engine.js +636 -0
  63. package/dist/transform-box/engine.js.map +1 -0
  64. package/dist/transform-box/engine.jsx +634 -0
  65. package/dist/transform-box/geometry.d.ts +129 -0
  66. package/dist/transform-box/geometry.d.ts.map +1 -0
  67. package/dist/transform-box/geometry.js +506 -0
  68. package/dist/transform-box/geometry.js.map +1 -0
  69. package/dist/transform-box/geometry.jsx +504 -0
  70. package/dist/transform-box/index.d.ts +4 -0
  71. package/dist/transform-box/index.d.ts.map +1 -0
  72. package/dist/transform-box/index.jsx +3 -0
  73. package/dist/transform-box/transform-box.d.ts +65 -0
  74. package/dist/transform-box/transform-box.d.ts.map +1 -0
  75. package/dist/transform-box/transform-box.jsx +104 -0
  76. package/package.json +56 -4
@@ -0,0 +1,7 @@
1
+ # Catalog index: `@g9tm/lynxcontrols-studio` 2.8.1
2
+
3
+ One line per component; the card (`cards/<Export>.md`) has its props and an example.
4
+
5
+ - G9NleTimeline — The editing timeline.
6
+ - G9Surface — A viewport a driver registered by the host page draws into (`<g9-surface>`): the page names the driver, sends it JSON through the port and hears its events.
7
+ - G9TransformBox — Selection boxes and handles over any content (`<g9-transform-box>`): move, scale, rotate, smart guides, safe zones, pinch and wheel zoom.
@@ -0,0 +1 @@
1
+ {"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.dom.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.arraybuffer.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.decorators.d.ts","../../../node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/@types/react/global.d.ts","../../../node_modules/@types/react/node_modules/csstype/index.d.ts","../../../node_modules/@types/prop-types/index.d.ts","../../../node_modules/@types/react/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/animation.d.ts","../../../node_modules/csstype/index.d.ts","../../../node_modules/@lynx-js/types/types/common/csstype.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/animation.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/element.d.ts","../../../node_modules/@lynx-js/types/types/common/events.d.ts","../../../node_modules/@lynx-js/types/types/common/system-info.d.ts","../../../node_modules/@lynx-js/types/types/common/performance.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/events.d.ts","../../../node_modules/@lynx-js/types/types/main-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/common/lynx.d.ts","../../../node_modules/@lynx-js/types/types/common/global.d.ts","../../../node_modules/@lynx-js/types/types/common/props.d.ts","../../../node_modules/@lynx-js/types/types/common/element/component.d.ts","../../../node_modules/@lynx-js/types/types/common/element/filter-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/common.d.ts","../../../node_modules/@lynx-js/types/types/common/element/inline-image.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list.d.ts","../../../node_modules/@lynx-js/types/types/common/element/list-item.d.ts","../../../node_modules/@lynx-js/types/types/common/element/page.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/text.d.ts","../../../node_modules/@lynx-js/types/types/common/element/view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/input.d.ts","../../../node_modules/@lynx-js/types/types/common/element/textarea.d.ts","../../../node_modules/@lynx-js/types/types/common/element/title-bar-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/svg.d.ts","../../../node_modules/@lynx-js/types/types/common/element/refresh.d.ts","../../../node_modules/@lynx-js/types/types/common/element/scroll-coordinator.d.ts","../../../node_modules/@lynx-js/types/types/common/element/viewpager.d.ts","../../../node_modules/@lynx-js/types/types/common/element/blur-view.d.ts","../../../node_modules/@lynx-js/types/types/common/element/webview.d.ts","../../../node_modules/@lynx-js/types/types/common/element/markdown.d.ts","../../../node_modules/@lynx-js/types/types/common/element/video.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx-performance-entry.d.ts","../../../node_modules/@lynx-js/types/types/common/element/frame.d.ts","../../../node_modules/@lynx-js/types/types/common/element/overlay.d.ts","../../../node_modules/@lynx-js/types/types/common/element/element.d.ts","../../../node_modules/@lynx-js/types/types/common/element/methods.d.ts","../../../node_modules/@lynx-js/types/types/common/element/attributes.d.ts","../../../node_modules/@lynx-js/types/types/common/element/index.d.ts","../../../node_modules/@lynx-js/types/types/common/console.d.ts","../../../node_modules/@lynx-js/types/types/common/index.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/event.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/nodes-ref.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/app.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/performance.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/fetch.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/lynx.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/native-modules.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/text-encoder-decoder.d.ts","../../../node_modules/@lynx-js/types/types/background-thread/index.d.ts","../../../node_modules/@lynx-js/types/types/index.d.ts","../../../node_modules/@types/react/jsx-runtime.d.ts","../../../node_modules/@lynx-js/react/runtime/jsx-runtime/index.d.ts","../src/nle-timeline/model.ts","../src/nle-timeline/layout.ts","../src/nle-timeline/edits.ts","../src/nle-timeline/engine.ts","../../../node_modules/@lynx-js/react/runtime/lib/runtime-marker.d.ts","../../../node_modules/preact/src/jsx.d.ts","../../../node_modules/preact/src/dom.d.ts","../../../node_modules/preact/src/index.d.ts","../../../node_modules/preact/hooks/src/index.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/hooks/react.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/runwithforce.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/lynx.d.ts","../../../node_modules/preact/compat/src/suspense.d.ts","../../../node_modules/preact/compat/src/index.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/children.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/element.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/portalspending.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/portals.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/lynx/suspense.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/hooks/uselynxglobaleventlistener.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/globalprops.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/initdata.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/lynx-data-processors.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/background-function/run-on-background.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/snapshot/worklet/call/runonmainthread.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/api/animation/effect.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/api/animation/animation.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/api/element.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/worklet-runtime/bindings/types.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/main-thread-ref.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/core/main-thread-object.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/lynx-api.d.ts","../../../node_modules/@lynx-js/react/runtime/lib/index.d.ts","../../../node_modules/@lynx-js/react/types/react.docs.d.ts","../../../node_modules/@lynx-js/react/types/react.d.ts","../../foundation/dist/collections.d.ts","../../foundation/dist/culture/bidi.d.ts","../../foundation/dist/culture/digits.d.ts","../../foundation/dist/culture/culture.d.ts","../../foundation/dist/culture/calendar.d.ts","../../foundation/dist/culture/coordinates.d.ts","../../foundation/dist/culture/date-format.d.ts","../../foundation/dist/culture/duration.d.ts","../../foundation/dist/culture/natural-date.d.ts","../../foundation/dist/culture/numbers.d.ts","../../foundation/dist/culture/strings.d.ts","../../foundation/dist/culture/relative-time.d.ts","../../foundation/dist/culture/text.d.ts","../../foundation/dist/culture/words.d.ts","../../foundation/dist/culture/index.d.ts","../../foundation/dist/enums/index.d.ts","../../foundation/dist/errors.d.ts","../../foundation/dist/exec/diagnostics.d.ts","../../foundation/dist/services/abort.d.ts","../../foundation/dist/exec/options.d.ts","../../foundation/dist/services/clock.d.ts","../../foundation/dist/exec/trace.d.ts","../../foundation/dist/exec/safe-executor.d.ts","../../foundation/dist/exec/index.d.ts","../../foundation/dist/icons/generated/glyph-svg.d.ts","../../foundation/dist/icons/glyph.d.ts","../../foundation/dist/icons/icon.d.ts","../../foundation/dist/icons/glyph-slots.d.ts","../../foundation/dist/icons/icon-fonts.d.ts","../../foundation/dist/icons/packs.d.ts","../../foundation/dist/icons/svg.d.ts","../../foundation/dist/icons/index.d.ts","../../foundation/dist/layout/index.d.ts","../../foundation/dist/route/address.d.ts","../../foundation/dist/route/catalogue.d.ts","../../foundation/dist/route/journey.d.ts","../../foundation/dist/route/sink.d.ts","../../foundation/dist/route/resolve.d.ts","../../foundation/dist/route/view.d.ts","../../foundation/dist/route/index.d.ts","../../foundation/dist/services/feedback.d.ts","../../foundation/dist/services/preferences.d.ts","../../foundation/dist/services/contracts.d.ts","../../foundation/dist/services/image-src.d.ts","../../foundation/dist/services/keys.d.ts","../../foundation/dist/services/motion.d.ts","../../foundation/dist/services/index.d.ts","../../foundation/dist/tokens/generated/palettes.d.ts","../../foundation/dist/theme/aliases.d.ts","../../foundation/dist/tokens/shape.d.ts","../../foundation/dist/theme/color.d.ts","../../foundation/dist/theme/theme.d.ts","../../foundation/dist/theme/brand.d.ts","../../foundation/dist/theme/appearance.d.ts","../../foundation/dist/theme/token-themes.d.ts","../../foundation/dist/theme/sanitize.d.ts","../../foundation/dist/theme/appearance-kit.d.ts","../../foundation/dist/theme/contrast.d.ts","../../foundation/dist/theme/control-colors.d.ts","../../foundation/dist/theme/css-color.d.ts","../../foundation/dist/theme/design.d.ts","../../foundation/dist/theme/oklch.d.ts","../../foundation/dist/theme/recipe.d.ts","../../foundation/dist/tokens/generated/metrics.d.ts","../../foundation/dist/tokens/layout-metrics.d.ts","../../foundation/dist/tokens/css-vars.d.ts","../../foundation/dist/tokens/derived.d.ts","../../foundation/dist/theme/variants.d.ts","../../foundation/dist/theme/index.d.ts","../../foundation/dist/tokens/root.d.ts","../../foundation/dist/tokens/index.d.ts","../../foundation/dist/index.d.ts","../../controls/dist/anchor/registry.d.ts","../../controls/dist/anchor/hooks.d.ts","../../controls/dist/base/control.d.ts","../../controls/dist/base/corner-badge.d.ts","../../controls/dist/base/disposer.d.ts","../../controls/dist/base/press.d.ts","../../controls/dist/base/pressable.d.ts","../../controls/dist/display/shimmer.d.ts","../../controls/dist/sheet/options.d.ts","../../controls/dist/guide/settings.d.ts","../../controls/dist/popup/types.d.ts","../../controls/dist/provider/settings.d.ts","../../controls/dist/icon/icon.d.ts","../../controls/dist/base/selection-item.d.ts","../../controls/dist/base/timers.d.ts","../../controls/dist/base/tone.d.ts","../../controls/dist/base/use-controllable-state.d.ts","../../controls/dist/base/use-stable-callback.d.ts","../../controls/dist/base/index.d.ts","../src/nle-timeline/nle.tsx","../src/nle-timeline/index.ts","../src/surface/protocol.ts","../src/surface/surface.tsx","../src/surface/index.ts","../src/transform-box/geometry.ts","../src/transform-box/engine.ts","../src/transform-box/transform-box.tsx","../src/transform-box/index.ts","../src/index.ts","../src/nle-timeline/core.ts","../src/surface/core.ts","../src/transform-box/core.ts"],"fileIdsList":[[41,96,97,133,225,228,232],[106,107,112,118],[41,107],[41,106,107,112,118],[41,127],[103,106,108,110,112,113,114,116,117,130],[41,118,119,120,121,122,123,128,129],[108,109],[106,112],[41,96,133,225,228,232],[41,96,106,115,133,225,228,232],[106],[124],[126],[125],[41,96,98,132,133,225,228,232],[41,108,130,131],[42,86,87,88],[53],[42,78,87,88,89,90,92,93,94],[42,86,87,88,90,91],[86,88],[42,86],[49,78],[43],[44],[51,55],[47],[41,51,55,56,57,58,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,79,80],[47,51,55,78],[47,51,55],[56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,79,80,81,82,83],[58,59],[47,51,55,59],[47,61,64],[46],[48,52,53,95],[44,47,48,49,51,53,54,55,84,85],[44,47],[52,86,95],[45,86],[46,47,55],[45,46,50,51],[49,86],[38,39,40],[41],[104,106,107,111],[104,105],[96,133,206,225,228,232],[96,133,205,225,228,232],[96,133,206,207,225,228,232],[133],[208,209,210,211,212,219,220,221,222,223],[133,208,211],[205,218],[205,214],[41,133,205,217],[133,205,218],[133,205,214,215,216],[133,205,213,218],[137],[136],[136,137,138],[135,136,137,138,139,140,141,142,143,144,145,146,147],[138],[144],[151,153,155,156],[152],[144,151,152,153,154,155],[151,154],[160],[159],[158,159,160,161,162,163,164],[134,148,149,150,157,165,166,173,180,202,204],[150],[150,167],[167,168,169,170,171,172],[168],[167,168,170],[167],[150,152,154,170,174,175],[152,154,174,175,176,177,178,179],[181],[181,183,185,187,188,189],[181,183,185,186],[181,184,185],[184,185],[184],[183,185],[182,184,185,186,187,188,190,191,192,193,194,195,196,201],[181,184],[181,185,187],[149,181,184,200],[181,197,198],[181,199],[181,183,197,198,199,200,203],[181,183,199],[98,226,229,233],[98,99,100,101,102],[98,99,100],[98,99,100,101],[98,99,100,101,102,225],[98,99],[98],[96,98,99,102,133,224,225,228,232],[98,227],[98,227,228],[96,98,133,224,225,227,228,232],[98,230,231],[98,230],[98,230,231,232],[96,98,133,224,225,228,230,231,232]],"fileInfos":[{"version":"c430d44666289dae81f30fa7b2edebf186ecc91a2d4c71266ea6ae76388792e1","affectsGlobalScope":true,"impliedFormat":1},{"version":"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","impliedFormat":1},{"version":"3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","impliedFormat":1},{"version":"e44bb8bbac7f10ecc786703fe0a6a4b952189f908707980ba8f3c8975a760962","impliedFormat":1},{"version":"5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","impliedFormat":1},{"version":"68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","impliedFormat":1},{"version":"080941d9f9ff9307f7e27a83bcd888b7c8270716c39af943532438932ec1d0b9","affectsGlobalScope":true,"impliedFormat":1},{"version":"c57796738e7f83dbc4b8e65132f11a377649c00dd3eee333f672b8f0a6bea671","affectsGlobalScope":true,"impliedFormat":1},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true,"impliedFormat":1},{"version":"515d0b7b9bea2e31ea4ec968e9edd2c39d3eebf4a2d5cbd04e88639819ae3b71","affectsGlobalScope":true,"impliedFormat":1},{"version":"0559b1f683ac7505ae451f9a96ce4c3c92bdc71411651ca6ddb0e88baaaad6a3","affectsGlobalScope":true,"impliedFormat":1},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true,"impliedFormat":1},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true,"impliedFormat":1},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true,"impliedFormat":1},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true,"impliedFormat":1},{"version":"fb0f136d372979348d59b3f5020b4cdb81b5504192b1cacff5d1fbba29378aa1","affectsGlobalScope":true,"impliedFormat":1},{"version":"d15bea3d62cbbdb9797079416b8ac375ae99162a7fba5de2c6c505446486ac0a","affectsGlobalScope":true,"impliedFormat":1},{"version":"68d18b664c9d32a7336a70235958b8997ebc1c3b8505f4f1ae2b7e7753b87618","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb3d66c8327153d8fa7dd03f9c58d351107fe824c79e9b56b462935176cdf12a","affectsGlobalScope":true,"impliedFormat":1},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true,"impliedFormat":1},{"version":"69ab18c3b76cd9b1be3d188eaf8bba06112ebbe2f47f6c322b5105a6fbc45a2e","affectsGlobalScope":true,"impliedFormat":1},{"version":"a680117f487a4d2f30ea46f1b4b7f58bef1480456e18ba53ee85c2746eeca012","affectsGlobalScope":true,"impliedFormat":1},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true,"impliedFormat":1},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true,"impliedFormat":1},{"version":"954296b30da6d508a104a3a0b5d96b76495c709785c1d11610908e63481ee667","affectsGlobalScope":true,"impliedFormat":1},{"version":"ac9538681b19688c8eae65811b329d3744af679e0bdfa5d842d0e32524c73e1c","affectsGlobalScope":true,"impliedFormat":1},{"version":"0a969edff4bd52585473d24995c5ef223f6652d6ef46193309b3921d65dd4376","affectsGlobalScope":true,"impliedFormat":1},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true,"impliedFormat":1},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true,"impliedFormat":1},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true,"impliedFormat":1},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true,"impliedFormat":1},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true,"impliedFormat":1},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true,"impliedFormat":1},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true,"impliedFormat":1},{"version":"8e7f8264d0fb4c5339605a15daadb037bf238c10b654bb3eee14208f860a32ea","affectsGlobalScope":true,"impliedFormat":1},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true,"impliedFormat":1},{"version":"eb5b19b86227ace1d29ea4cf81387279d04bb34051e944bc53df69f58914b788","affectsGlobalScope":true,"impliedFormat":1},{"version":"d6fdd3074ba01fc8aff89a11055a33516aff7a42a3599fc0e7dce64047a5e3fd","impliedFormat":1},{"version":"87d9d29dbc745f182683f63187bf3d53fd8673e5fca38ad5eaab69798ed29fbc","impliedFormat":1},{"version":"035312d4945d13efa134ae482f6dc56a1a9346f7ac3be7ccbad5741058ce87f3","affectsGlobalScope":true,"impliedFormat":1},{"version":"07b03f752ae52a7130e06c5a8399d3a0dde07a1a634f8430b80cd6236c56b5c8","impliedFormat":1},{"version":"8a8eb4ebffd85e589a1cc7c178e291626c359543403d58c9cd22b81fab5b1fb9","impliedFormat":1},{"version":"acbac4ca6cd4b2b459debc4a274535775cb6278a8315be383fafa623ab78f18e","impliedFormat":1},{"version":"e421d0b097c78304a2597c1f33da586630e1dc665ae381c0c36e5ebc4aaf4566","impliedFormat":1},{"version":"adf624c89a0d509a789f3c0bf522969d2c47033dbeb50920b37cd89be475a65e","impliedFormat":1},{"version":"f4664d05efc95a0fb8ee228d391e5271a1c8fc9bc3452c7bd760f9ca18b5a837","impliedFormat":1},{"version":"b32b532dcbe0a91d71fd94cb780e94bdfdce10be21608d914c29fb4b8939b24a","impliedFormat":1},{"version":"eb2b64881998b562a4fe9330e55aa2466cd3a41a1a57e93feac6555218cec06f","impliedFormat":1},{"version":"6db1694d205177322d792d924335b046b80607445a45c0d2de1fcffd190b48c0","impliedFormat":1},{"version":"d5465281e0aaffe267f46382c5f014740dc16e7fd8e1c57a0b0ddf8a2eab9be4","impliedFormat":1},{"version":"f7e5c3960dd9df65d83408b9be446f7119fa1db1dd8266dd343349d90c3bf2ce","impliedFormat":1},{"version":"09c6491ed74af89a4155feafedecaf77780f5751c66d4b65b18d30fc0e053a75","impliedFormat":1},{"version":"188b01044640e5ef65f6edf0dd6e6454f02dd19f4ead66b9e03ebe26cc7298ca","affectsGlobalScope":true,"impliedFormat":1},{"version":"d34d6de13412a24e8d9252040d972edce68b4db8d8a64a3f7fd63ca1fda3a67f","impliedFormat":1},{"version":"5bf51107315834a209b08395b141e262b7d143d14f6b4e4d403d8e020cef7e32","impliedFormat":1},{"version":"db0dcbe48d5cb38315083b412c8ab6995b0d42dc73b286833e296827feb0e5b4","impliedFormat":1},{"version":"b3e4a49a3ba19463662e7b821544948b953d2f6708370d42406bda558084000c","impliedFormat":1},{"version":"7c5e49b3d96da389b07d4ae3705c9f33a03dadcd04e6c0e76edece6d636f4ce7","impliedFormat":1},{"version":"24e9add3c802e7c9431b2c99edbbda02c1899901fd955dfb2e9ee3e9cdc93c4c","impliedFormat":1},{"version":"cd6611fd8cd9d40de1bdec02a3c5027c968c4aaf7639ee88ee48b2c41edeaddc","impliedFormat":1},{"version":"32d1e153cac16ca3a3f5f6b68fae76cddcda509950fa00d038c465776359db0c","impliedFormat":1},{"version":"0d85d0fa55dd433acf924675d7e976c025c8521c91a76079844cd15e52855ccf","impliedFormat":1},{"version":"89da6ea3ee9735e712691227b0e5ee74381779f9ad8b0f4fb7ced0247b16735a","impliedFormat":1},{"version":"77fbe475cb649a3598aa8f932ab5f6fe011444d94b52d329078c1f6d63c5d3bd","impliedFormat":1},{"version":"7618f7fdf0abf7f712cefe766ac1ab7fcd1f8e753c513e57d3ada9ada3a57257","impliedFormat":1},{"version":"db0441149b37984c225e945a112713d07616b34552d64f814c5cbf8e8c95f165","impliedFormat":1},{"version":"51f5a8fa3de5f13b21ba2604b4de8f0aae3d97acadab981d536a282ea26257af","impliedFormat":1},{"version":"0e323630cbfda771430e2720f6a2f02f257becd8fb9722aa975ae773fb572210","impliedFormat":1},{"version":"56dbc770513baae28f7cfbadeba5078bb13a37a13132a5292e98a8b103312b98","impliedFormat":1},{"version":"84ff906032fe12e816bfb7441cee6726243e5a7316c4f2d6b0a6c149f1a91a16","impliedFormat":1},{"version":"446e9432c63958893f65b4f7eea86fb5b506c2e0e7dd971a1f75e361b333a3db","impliedFormat":1},{"version":"dcbbe1fb0f2c0efc12e29db8bbccb5b82513384d01d7a55342065cb0611da272","impliedFormat":1},{"version":"af209189a194cf5ad1f7b22dd680b52843fec2e30f1283be20b2977872fd4424","impliedFormat":1},{"version":"18e37ffc10db360e66b0af639e55bcc66496830994734f64a97c6751458f7f3a","impliedFormat":1},{"version":"14137199a98201c616a7ee925bfaa9809b659dfbec733f86fa5dc5348a897de6","impliedFormat":1},{"version":"f64cd565aca17df45f4666473da75e4ce51a2610e2ed1c31198e9f9325747a24","impliedFormat":1},{"version":"e415a17ab6a413d6be640457231e045541405eab1f0f370c7dd1e5567aa25999","impliedFormat":1},{"version":"8c03a41d6dc701b6648db83d71a92dc27147d7677ab5d70f32675e7e37b3795a","impliedFormat":1},{"version":"e27b62f2410bb10697800d1c09ae2c48db46cd1eca18ffdd35022b1802bfd6d5","impliedFormat":1},{"version":"2ec0bfa713f313f8b2dc2bf64c5962433722ea7b413f69428106a65584656dc9","impliedFormat":1},{"version":"b2d74af681f440a07e714ae9a33e3ea49c79870b9674058114c0404d2aa2f190","impliedFormat":1},{"version":"24f31e43eb3505e5d2946315e7b8ee8b426dfbe92c3031e435a4eb2d9dd8d69f","affectsGlobalScope":true,"impliedFormat":1},{"version":"5b6a59d1e98f908badf07f243deb42ebd926b4e3d33ec00a5f50cbb8d0464488","impliedFormat":1},{"version":"c669ee7ba01fa6a60b17c3535f96b65fa82dfd2a475a8760364f2f3952f9bcbd","impliedFormat":1},{"version":"a8b121f6a75d603075e62793ff0c109112e882dd6ca2b70bdccbd8d8f753429b","impliedFormat":1},{"version":"f378d7ed5e3ecbe382ade55127a9c98e826c76f786e06effad6fde91a7023d55","impliedFormat":1},{"version":"4e3e9539df72b3bfcc56fa13140070020dac72f1eff39237b11253482cb99847","impliedFormat":1},{"version":"5a47b3a2bbe2c9b015fe356462afe0abe391c592fffbe277126e2415e0811967","impliedFormat":1},{"version":"b1248e5931d2a49c697203e69449c58dacd3d19f12d76bf11d816600a0cf423b","impliedFormat":1},{"version":"0b02aebd8c41453aefd3b1f33b9b9862a57770f8b21e916ecc5b35c0bedcc52b","impliedFormat":1},{"version":"e52840670587e82e129c9bfc6a2f42d9c2f2e1fd6ce176fea998383a8c941ea5","impliedFormat":1},{"version":"31ca1ee726f5d7c7709913b98be76fc40fdfaaca6ad7fafc222108981e11227c","impliedFormat":1},{"version":"556db73da59f5162cdf5c7ea1bc3b063b6ccb758078ef6517ad6f6e4ae7b199a","impliedFormat":1},{"version":"0a2c8ef08611f5a5f711c7b10ba70d10dc1c6af0c9dba8168cbbf34911b74188","impliedFormat":1},{"version":"1d6ef45145a9939a43062fe18188d4f7bdfdf4547978e1f6b7c9089fe53e81e5","impliedFormat":1},{"version":"42c169fb8c2d42f4f668c624a9a11e719d5d07dacbebb63cbcf7ef365b0a75b3","impliedFormat":1},{"version":"509a86836776d5c821901abc16a2d21de674d2c8943ceb8d018049bf324bc56c","impliedFormat":99},{"version":"1cfd0e7caab381334daa3a8ca55cc68f316f499e0108cefe3bbea2afee07d67d","signature":"b9a0a8878be333f74aeef1ea08b53b41fa62f4bc6231d2fc6f1c86cb5d00075d"},{"version":"ada45a57078d1d3c7f9872b9a7a9ede9b58e3232996239bc3e52c7a5adaf3018","signature":"3547e21928e71b427c65a546b834d0b366c292cf7274fc27a9b26aaae2f3971d"},{"version":"15e5e06bdf09c6a43e42c9fba9735afe41d92d5a9301ac4c692a3ba9d1675a6f","signature":"450705d6b605cc8181cae69d5623f52c8acd91825e5186d1d72d28590899d17e"},{"version":"cef4857c69ba0a3f10784fc3cdc818234825a08d50ede84b595b126f439a4c0c","signature":"c72679da57356e5f841dc83c10e58dd9a508a964546c72857ac91cb98192ca45"},{"version":"8e609bb71c20b858c77f0e9f90bb1319db8477b13f9f965f1a1e18524bf50881","impliedFormat":99},{"version":"8a2ef120c4da7aab664148ed8d283aa0b98df4d5f15c570d830c8998ef05718b","impliedFormat":1},{"version":"4433d18f82991634feae5150a68f9b30f5b05b55416af8ff9f7251fb29431ed5","impliedFormat":1},{"version":"cc5d0b221824b7d8597e8a2bbdad2383af877eb564eaca392992049839e88c9e","impliedFormat":1},{"version":"21898d939444825cee1232af435330610b09171bea22a2f892cf2058d764b63d","impliedFormat":1},{"version":"2baebea93983e898000858daeeeb2ac29938891b6b8db72ebce294837fc9499f","impliedFormat":99},{"version":"d9d320cf31f6d63659484f6c9ca4db4ae673daefa65118dd8589838925ff1397","impliedFormat":99},{"version":"027cf2216d065a97bf5a8ea126b3ea2734fab6cfe32adaff81ab4e94a1b51bbe","impliedFormat":99},{"version":"f6e6313fad233c5141220f7d25eae120cdd6e5079fbe0aba56821a1e99d05df8","impliedFormat":1},{"version":"9534c35b4577c193e499178deb47419fdadddd5e53af5ec8cb88218848013f65","impliedFormat":1},{"version":"97f43a6558157a3abae4e32256cc74ba34f69ab30473008ffa13011bf0932986","impliedFormat":99},{"version":"45b8adde5735e97329752dd5598b7ecd85202f221a1d0e8aa90137ce5810f21c","impliedFormat":99},{"version":"dfe6945467765f8e7843442a9dfbcf6b5526b6465b07b4c75a54a750329b5f17","impliedFormat":99},{"version":"7f9f6c9fe0e48c401d855d849e28112ffe2425569eca01b08b8c6112b8200695","impliedFormat":99},{"version":"68fcdc663627d12d336b420b19b3e54258844d0cbca0879f711c22aafd853352","impliedFormat":99},{"version":"d3dd47deefa1cc5dd6f1b866132506ec8dfd678ae0ddaa44de188505df14fcc4","impliedFormat":99},{"version":"a5946bc88dac85da2afacdfa3471ff3bc2bbda7c0e34efde184cf17e6bceb6bc","impliedFormat":99},{"version":"75b68165b9bcc07579562f182d327e83583b89b91d62e76b86f4001feee699ba","impliedFormat":99},{"version":"a9d1030f6773d29b383f49e2c647a7e6e464906e1de97a6bc33d2528d957c4d7","impliedFormat":99},{"version":"37b997d60987b68ce8117da783442b4602c8a85d47680823d469fdc90d29e3b8","impliedFormat":99},{"version":"600850ecc310012e3b1a562629d97a1d78662ae8c477357513dd2e6aa704079b","impliedFormat":99},{"version":"335226d599a9382c9bea07d37e23bf998c1022c0f67e4d6d2b69633de6ac118f","impliedFormat":99},{"version":"ae430fd9bac320e71c3fe9299d90dcf67555d9a4f97ecaa35947b430ba8648ea","impliedFormat":99},{"version":"9061ff14146280f47d740b344ddd641c16df526ecaa868c348852277a9fb8686","impliedFormat":99},{"version":"49ee4555c2fafa01119cccc62436baad88ed937ff55d6a655e764ada6b0721e3","impliedFormat":99},{"version":"e059fb9064bc023bc06945ddda6b00e711c18e8657c82514b51c1c1b828642e9","impliedFormat":99},{"version":"f01b3b376946defc432893dcbbbc79472076b6a55a316b0a461a1b38d09e961c","impliedFormat":99},{"version":"da74d8af20172cfee988a2daf92c560f3fdc816fb9c0537f2cc37ef27b1552a8","impliedFormat":99},{"version":"feed66ae8815d1981ad575482766fb9a82385e75cce35ae2f13be58e50c4349f","impliedFormat":99},{"version":"21305b3c41b1e29c0f0d8f43fe227bca82493f6e4c6407a3363c6f729f1c04ba","affectsGlobalScope":true,"impliedFormat":99},{"version":"20c1041fbd4f1537686af4b707872b87c90a22201f8979e5def4554d28b46a5b","impliedFormat":99},"d533d1fe3018752aa47ee74ae5dbdca34377441b891176ad99bd33366a64372f","577287aa28cdd2976297531706a5baea4ba5171512f500731d3feba37057d851","44b82e4f46178400732ea809a906f7ffb9dd38efab331ca23e7ca4586bf903ef","d3dcff003bac57338c3e60be409d0ff167ec1ff513539a5534c7679332dbc992","16d64c89cec74fa23e8cee7c72acc7549f117dcf7845051870c40366c7522d09","706c787ed201e67534e550d765eecfb18a8c39f46e04fcec600d0bb9d1bb6231","11f9f682c02d51de68eed569f8de1e91c56df296a78f3a6c520b93d52aac2308","28b43630d8d29a300e1e5b0f5efb04c8f994d372fff1b653ce8bb70d4e011e1a","08521f5befe6ec3f1c3a881651321f875ca6fc79db15a6130283d409f5d47d1b","b06c48902c3d127098839c1a6500f41d3e21b2f07f277ba7de23ec730df7275d","946d8fa2088c22a4cbc85875ec7c700c93cf53d7b52057fe4e6730fd613c7925","a7a0e658ca429cfb5268d4bf2e2e6e9fe871ffd06b6588d65424ba4eba35338f","d2c14eeaa5c837048a6ef04e2c1a4f3a53bad9a1a8c34e7584c2fc760c53b877","995ad7257ddc7f156739058b64eeb7589ef7886ae4b6b769adffd5eca2cf0aa7","68a17e1da58e68e0921d31489ac6731167bd14aef9e10136f7a8c3cfc46abf72","5e621ae454f5ff6bfea91a558b93eb3dee64eac6f66ad8d6739a4a7c396a42f7","ccd708c3fff99b4ec315e14315dce6b9e85f4c96d10131e9fd219edb6efbdb26","abc924fce33b86b9f8588de3a5be04c609fafa6cb1dc42629b3e9e3e18f7d018","f919e3a8b2d274b631ee4fee0c50eba1d3f39ceaccba04dff915e9f61e9f153c","3ae17ae844491c7326d070c3e70a94a9239394e7a1e84eb203eb1d57470e752e","d1b2970d348eb9f89ef0f0c6730d27e9331067a28f21c8bd667ba1138d5d3e93","b2c4833e6308888c3947953770b3343deaf4276c803bb36148991a3fb90b4f6a","41b7c8204ea79a93e380a228f5c744e9c9a80183133ac62633a4c76e3fdbd7db","d0a441df587b0632c16a813117f110574d903ddd0bc4d28599cc82ff8af7c094","b24ac81f4fcff56ed9827736abcf2f92ea5f86e16d66eb2ee3ccfa0bb8143bc9","068309ff581d08c276c4a772ddf3ab9c8090e591fc9917fdc6cdffc12c95a5bf","bc3f7915b03647e3e83822de983d6e9c12b42e70fac64f6083a656615d4608b2","bb3ccaacf5c19a7170939b7f735c6a94537fd95ad16b4247a6ad572b23183e74","932cf396945e35e7462ca1cddc06353805dfad9108f52dd63d7a63ee0c126ed3","7ec540fd5fb0761576c417b27ea61ec08123412487b020942c893510dce970db","f858a10d167e011155bfe5a3532f599e677bced6727c07366f380c02010650d4","465f5d53f09ac1978002bc264b8a4c0aea749c79dd2bd1917dffe57fddcb9543","cf4ef9c41637cb6995fee096890a0e6113141bcce82cc7d5754c281f03ad889e","40f34f36aba872decb7540030db33dc84f1a53d4778fd8c8ad840d68f2023f3a","10347593c1b262343845f577673e5956217a8a571c859d83e2de50a54729541f","e0a192de84052b553230c5f649307dfb49df6dce54fdc538de15078d895f5f66","228e7d711e429183ddf7fc8c331d00540557ade296fb8132d5bfc48d5c933f89","e8906c76ded4f87db27adfe3e8f9e1a729be51a6a0c2c458f31662c6278b1925","49bca6d49d9c5a525146bba60a48e448e1eabe79be789a7b5238ac10a2f620b3","08fe86bcae8e02f769d215958438d6858dc19aeed2a61c7d7327f052b0db25fc","cd3a9799c8e0996b4d31d5235a8ae105b79a7fa31ba8f660ca35b043048ef757","ee4e73f46ce2f6517e82434bd9fc63c8b6b2179d37d74525899f124a76d06669","bdf4198c8184d08a5f3c270beeebd39e25fe6a296c1c49e9397ca64b00eaff93","eb14fd861c19490984176eb4d5174447ffe26259c005ec0e5ff7aaed5b14d4d1","5f96841314e358366bcb3b3d07c8b8d924e90dcd00dcf2202900cbfaeefc1a03","216aa3f63d62f13b158445ff6a3bea8ccfd110f2bf219d607175518c9cc5b29d","50e18e1d1cd61d9748be189663736f32ffbed5b20df882ab96bcf1fc14f4140a","faa64d270fa523f80fd31bc7340ee7f6a21632c2ea0cea6535bf5a34bcc6adf7","931d70c96033881193232b90c39210c6cd14865f28b339843c56b5688e7fd10d","6687ad856daa2112d8a29e1eaa432b5f50a359c137d8fa103856cb082fa37d73","29e6e980f179ac2981d68954462dfd4a4545f73c021f6a4c8a5f442c0e16e56c","2c4d14bebf5c2fdddef90b2e6e49ce0b2adea7429d2900f1848f3d01b8a845c7","d4924e2b191fee9b43aaeef651c87a7084281d425a30a9a8cf50de8f92b64f6d","73f7f257234435f66832b1c05ce78d071f41475fb7fbac76f5a71bf1ea1321b8","293e5036d0dd23f18b391ca6f878bc1116a5482d1f26e8535765291553eb9f57","a324358754f94c05fa3bd4748c35928c38ffc911e454d4fc076c7aff6c428c15","b86da197c889098bd93ce46049240f5580827b24e6c2ce9919ed4cffd81b4756","a59554ba3751ea9ad27f6948f1c71ef57f1e28bb526a53eacb0dfa76bc1df452","ea5a5d5873c239b97d846fb8c78437e08ffd731924764f746c0ebcb7731d7648","da401323d4c96e3f5b8fa8b7ecd200d47a9e340b09cefbea553d2b2b5a345e60","ead4a7fd25e5e2b756a5e71546bd8eae855c7b0ecbffd891f7fb0b6f7d80c0c1","4a81e2e28cab8b353156bef9c19c0b3640958945d655fd3798756d468b50707a","cc44cf86b3ddb7d61f7de3fd32116089decb662a8b6421013bd4a8ee9a079881","ab7ed47f18899e74299db14911a028a0aaf1acae17f870a64ead7d91953d40b3","298f8d2584216932ea238927177ef343d0b8da735eb40a5ba96b1f92e3675e33","c8082c78975419ed5a9f7daa655643425cdd98fee91bb82fd92d25f908c78465","24a588d942a36d853d18dfe63711e9b180ea0448b956dadce7833f4d6455f0c8","c263cc53a55cc822c360481e94d0fe999acebf92f01f2ca84225a168a182657f","bd0e9a77d36caab3832f67ccdb482a8db24294efd149cb881061517dd6cc7da4","09dbd5c05f35b9ca743ea2a908c48be0d0b685e8ec1c1bcbb76443762fec1131","54b0b4ef21d120cb5267b91ed038d20d0905ba5d928c6eda2b546a0f03572dd7","56cac1d8d4be53381e236d675f43c1b2342161ca45d31dfaaf340b0612d14bc5","a93ea60536dfdeb6d9b1a44a68639e7fdb3a54cf220dec9bd7c1182914a243b4","1dd2073db39016abc797e46c711630cd39c497c28063e3a75993940c72eb9792","46ba01e044b843967d3516ad99c53b2dab67a6287d206cac025a37c285571473","1492a06643311a66d01dc0c15259c0dbe7c4d336e7a85cb7ece67085afd2e84f","47ace7a5fa09cb19907ed7cb83a867b05ecff3e10bb229888e24f82b2c03b869","65f72380cb90b44b22370dfb07890bdd557d2e211ffb023363d8c87621c2535a","a3b964ed1ea0bd077d61c56e5beb931c24b26dbeead5a5a978406e2779a8429c","c1e64c51dadfcea7b7995040c64b5ac7e8f954f2a4adf4eb92e7a462ba5275e8","163944787e14d74c0aa4f0ed2deeade6ef7521682e957dc24b494bcdab9a1bdc","15e170fc85990c9cbdc7d3799b9490183b2d15202f1ccd0794abe5afb6f351eb","2f166c686866f475aee63ff5f7cf42413169d34e60c03fc5c761b2281ea49df0","3c3556af7c4fe1d9298a4188663ecdf527f3ad1c17f184d69dc6ff02a306645e","1dd2df92910c1304d53da9d5f9411228e19ffd14a4cff04bddc54b8eebe91b73","720ae785d5a42f60200705dd3039c58702806e39203a9a36d58226801b81606e","665236eec0c0da8d3f7cdba8f01f98233425d8c065058e513b33385e417a56d2","1e771191631caaa4b5d3429c51e23c23c2f609ea1e99f4183e913c5e7fd2311b","50e8918146f4e8a9240bf867a07cf8aa0deb21fee8d4507e74ff62c8c6af42e9","666640b08e3ce76b6a8c76ce1f9f5b986923d3c76663b7fa4bc36e3af734ec46","bee442fd64d8e508dc335dafcdf34cdae7691eca0da3210ee63fc011621361ce",{"version":"ece2605841e1ac0e3f9966df7c148d3d2b43e06a53a446946aa9fe990ab689d0","signature":"f8171366df2e6c1d7b1732f874e5992db2ad3e97c332e906d78fd56df4e952a6"},{"version":"29319757d44e8524d5188340b89c8b1a58edb89a83be72da5f8465bebe14210f","signature":"d50a743b88987b506f4be53d3b84359c12c4ef1ea88a5014935232893713db3e"},{"version":"57854a106c40cf2dd72cbd3d384f1ed47a62d03291a532c3b1c8e60cd66a25c7","signature":"98c640a7d02a7b3d1ce8f42cbc80737ac4686610c6a30722b92daf3bdb4fcc35"},{"version":"e40aeb8f991fb7bf41a8005739b0a2f9c47590dc1400965cae3f31746f89d6e9","signature":"c731e0b0642b2fbd002f6fb7ce3017b04dd7740784721d765c72964155c7b9d4"},"31b545f0cfd330ab850bc14e4b5d18e4fa436ad114e033b4ad6a6ce83db9aed6",{"version":"adceea5b1d55b85c48656aa6cbfce2e2dac4924fbdef3840f514f68cd5574958","signature":"3480f58bfc280cd923ae4883cbcea3cdbf7cbc14482fdfdc50d915e18392a548"},{"version":"ff0c2ea7dcf32bccbdbc5ebab252916a6d4cab7f4a6e93d1d08e6f08a28074aa","signature":"b851d25d5ece08da43fba7d69162e8c1a5df25470550522c6d8aeafa933d97d7"},{"version":"7871aa85a768aafffdbc946d2d9e338d4aa293f3cd3225532e40bf22ffe800e6","signature":"a852588ab44227305e1fa1b91b9bf5a5b323272938be178cf99644765eb23d1d"},{"version":"a8253a968547804aede204782ce3f7d8b9ab90830ddd30ca6f461b6daffffcc5","signature":"011c075eae8a4ccd38b21c99170dc530ce4658e3f3736f266d20b30b0f721055"},{"version":"3a20e8f5aa32578185d228b95aaecf4ba33b22f01914bbf254737daa03def044","signature":"914d290e93cbc848eeef7faf215be17c7abd9b3d799365866a370388ac6b285d"},{"version":"6c7960c2959faaa62e1e086d8ad30cfc6db6d92f353d23d557f2a7d06e5e5195","signature":"573c65dd71016a629ca587fd6d317c670743b144f83941aa0d62ce60c7cb613f"},{"version":"9dbec6d8959d5f40f68f2858e46db860f252d9990a1283ed52c5931b97a4fadd","signature":"21f8c0791eb1629f48f83f6e1ebc4ea56d29b024401db1b1811a2fce359c5f57"},{"version":"bcd774b6c8c488a6d6d89f6461e854778b59ec16a66298b4557729a23e21850a","signature":"1f7f4ab753aa9e65a278569240fd0f42d6f6b3c666df99d4133ac5623c435c90"}],"root":[[99,102],[225,237]],"options":{"composite":true,"declaration":true,"declarationDir":"./","declarationMap":true,"emitDeclarationOnly":true,"exactOptionalPropertyTypes":true,"jsx":4,"jsxImportSource":"@lynx-js/react","module":99,"noFallthroughCasesInSwitch":true,"noImplicitOverride":true,"noUncheckedIndexedAccess":true,"outDir":"./","rootDir":"../src","skipLibCheck":true,"strict":true,"target":6,"tsBuildInfoFile":"./.tsbuildinfo","verbatimModuleSyntax":true},"referencedMap":[[98,1],[119,2],[108,3],[120,4],[128,5],[131,6],[130,7],[110,8],[113,9],[114,10],[116,11],[117,12],[125,13],[124,14],[126,15],[127,14],[133,16],[132,17],[89,18],[91,19],[95,20],[92,21],[93,22],[88,23],[90,24],[44,25],[83,26],[74,27],[59,28],[56,27],[81,29],[57,27],[79,30],[58,31],[84,32],[60,33],[67,31],[62,27],[61,34],[76,31],[82,35],[80,31],[63,27],[71,31],[72,31],[64,34],[70,31],[65,34],[68,31],[69,27],[77,31],[66,27],[73,31],[75,31],[47,36],[54,37],[86,38],[55,39],[96,40],[45,36],[46,41],[51,42],[52,43],[50,44],[41,45],[97,46],[112,47],[111,12],[107,12],[105,12],[106,48],[104,12],[207,49],[206,50],[208,51],[209,52],[224,53],[212,54],[219,55],[213,52],[215,56],[218,57],[216,58],[217,59],[214,60],[138,61],[139,62],[137,62],[140,63],[148,64],[142,65],[143,62],[145,66],[144,61],[146,62],[157,67],[153,68],[156,69],[155,70],[161,71],[162,71],[160,72],[165,73],[164,72],[205,74],[167,75],[168,76],[173,77],[169,78],[171,79],[170,80],[176,81],[180,82],[182,83],[190,84],[187,85],[186,86],[184,75],[191,83],[192,87],[193,88],[194,89],[202,90],[195,88],[196,85],[185,91],[188,92],[201,93],[199,94],[200,95],[204,96],[203,97],[234,98],[235,99],[101,100],[102,101],[226,102],[100,103],[99,104],[225,105],[236,106],[229,107],[227,104],[228,108],[237,109],[231,110],[230,104],[233,111],[232,112]],"latestChangedDtsFile":"./transform-box/core.d.ts","version":"5.9.3"}
@@ -0,0 +1,4 @@
1
+ export * from './nle-timeline/index.js';
2
+ export * from './surface/index.js';
3
+ export * from './transform-box/index.js';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAOA,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC"}
package/dist/index.jsx ADDED
@@ -0,0 +1,3 @@
1
+ export * from "./nle-timeline/index.jsx";
2
+ export * from "./surface/index.jsx";
3
+ export * from "./transform-box/index.jsx";
@@ -0,0 +1,5 @@
1
+ export * from './edits.js';
2
+ export * from './engine.js';
3
+ export * from './layout.js';
4
+ export * from './model.js';
5
+ //# sourceMappingURL=core.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/nle-timeline/core.ts"],"names":[],"mappings":"AAEA,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from "./edits.js";
2
+ export * from "./engine.js";
3
+ export * from "./layout.js";
4
+ export * from "./model.js";
@@ -0,0 +1,4 @@
1
+ export * from "./edits.jsx";
2
+ export * from "./engine.jsx";
3
+ export * from "./layout.jsx";
4
+ export * from "./model.jsx";
@@ -0,0 +1,65 @@
1
+ import { type NleClip, type NleDoc } from './model.js';
2
+ /** One clip's new placement. */
3
+ export interface NleClipChange {
4
+ readonly id: string;
5
+ readonly lane: string;
6
+ readonly start: number;
7
+ readonly duration: number;
8
+ readonly sourceIn: number;
9
+ }
10
+ /** The changes of an edit, by clip id. */
11
+ export type NleChanges = Map<string, NleClipChange>;
12
+ /** A clip's change record, with `over`'s fields replacing its own. */
13
+ export declare function changeOf(clip: NleClip, over?: Partial<NleClipChange>): NleClipChange;
14
+ /** Only the entries that differ from the doc. */
15
+ export declare function differing(doc: NleDoc, changes: NleChanges): NleClipChange[];
16
+ /** Writes changes into the doc (the optimistic view until the host's patch). */
17
+ export declare function commit(doc: NleDoc, changes: Iterable<NleClipChange>): void;
18
+ /** Packs a main lane's clips end to end from 0 in the given order. */
19
+ export declare function packMain(order: readonly NleClip[], laneId: string, changes: NleChanges, override?: NleChanges): void;
20
+ /** The main lane's order with `clip` inserted where its centre time falls among the others. */
21
+ export declare function insertByCentre(others: readonly NleClip[], clip: NleClip, centre: number): NleClip[];
22
+ /** What a move needs: the lead clip, the clips that move, the offset, the lane under the pointer and the snap targets. */
23
+ export interface MoveInput {
24
+ /** The clip under the pointer. */
25
+ readonly lead: string;
26
+ /** Every clip that moves (the selection, lead included). */
27
+ readonly ids: readonly string[];
28
+ /** Seconds the pointer moved. */
29
+ readonly dt: number;
30
+ /** The lane under the pointer (the lead's new lane if compatible). */
31
+ readonly lane: string | null;
32
+ /** Snap targets (sorted) and reach (seconds); null = no snapping. */
33
+ readonly targets: readonly number[] | null;
34
+ readonly within: number;
35
+ }
36
+ /** A computed move: the changes, and the time a moved edge snapped to. */
37
+ export interface MoveResult {
38
+ readonly changes: NleChanges;
39
+ /** The time a moved edge snapped to (draw a line), or null. */
40
+ readonly snap: number | null;
41
+ }
42
+ /** A move: free clips by dt (snapped by their edges); a main clip reorders; a lane change lifts or drops. */
43
+ export declare function computeMove(doc: NleDoc, input: MoveInput): MoveResult;
44
+ /** What a trim needs: the clip, the edge, the offset and the snap targets. */
45
+ export interface TrimInput {
46
+ readonly id: string;
47
+ readonly edge: 'start' | 'end';
48
+ /** Seconds the edge moved (positive = later). */
49
+ readonly dt: number;
50
+ readonly targets: readonly number[] | null;
51
+ readonly within: number;
52
+ }
53
+ /** The shortest a clip may be. */
54
+ export declare function minDuration(doc: NleDoc): number;
55
+ /** A trim: the end or the start, inside the source's window; a main clip's followers ripple. */
56
+ export declare function computeTrim(doc: NleDoc, input: TrimInput): MoveResult;
57
+ /** Trim to the playhead: `[` sets the start, `]` the end (when the playhead is inside the clip). */
58
+ export declare function trimToTime(doc: NleDoc, id: string, edge: 'start' | 'end', time: number): MoveResult;
59
+ /** Keyboard nudge: free clips by `frames`; a main clip swaps with its neighbour. */
60
+ export declare function computeNudge(doc: NleDoc, ids: readonly string[], frames: number): NleChanges;
61
+ /** Keyboard lane move: the clip to the nearest compatible lane above (-1) or below (+1). */
62
+ export declare function computeLaneStep(doc: NleDoc, id: string, step: -1 | 1): NleChanges;
63
+ /** What a split at `time` cuts: the selected clips under it, else the main lane's clip under it. */
64
+ export declare function splitTargets(doc: NleDoc, time: number): string[];
65
+ //# sourceMappingURL=edits.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"edits.d.ts","sourceRoot":"","sources":["../../src/nle-timeline/edits.ts"],"names":[],"mappings":"AAKA,OAAO,EAA4C,KAAK,OAAO,EAAE,KAAK,MAAM,EAA0B,MAAM,SAAS,CAAC;AAEtH,gCAAgC;AAChC,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,EAAE,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAED,0CAA0C;AAC1C,MAAM,MAAM,UAAU,GAAG,GAAG,CAAC,MAAM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layout.js";
2
+ import { compatible, frameOf, laneById, laneClips, quantize } from "./model.js";
3
+ const EPS = 1e-6;
4
+ function changeOf(clip, over = {}) {
5
+ var _over_lane, _over_start, _over_duration, _ref, _over_sourceIn;
6
+ return {
7
+ id: clip.id,
8
+ lane: null != (_over_lane = over.lane) ? _over_lane : clip.lane,
9
+ start: null != (_over_start = over.start) ? _over_start : clip.start,
10
+ duration: null != (_over_duration = over.duration) ? _over_duration : clip.duration,
11
+ sourceIn: null != (_ref = null != (_over_sourceIn = over.sourceIn) ? _over_sourceIn : clip.sourceIn) ? _ref : 0
12
+ };
13
+ }
14
+ function differing(doc, changes) {
15
+ const out = [];
16
+ for (const change of changes.values()){
17
+ var _clip_sourceIn;
18
+ const clip = doc.clips.get(change.id);
19
+ if (!clip || clip.lane !== change.lane || Math.abs(clip.start - change.start) > EPS || Math.abs(clip.duration - change.duration) > EPS || Math.abs((null != (_clip_sourceIn = clip.sourceIn) ? _clip_sourceIn : 0) - change.sourceIn) > EPS) out.push(change);
20
+ }
21
+ return out;
22
+ }
23
+ function commit(doc, changes) {
24
+ let any = false;
25
+ for (const change of changes){
26
+ const clip = doc.clips.get(change.id);
27
+ if (clip) {
28
+ doc.clips.set(change.id, {
29
+ ...clip,
30
+ lane: change.lane,
31
+ start: change.start,
32
+ duration: change.duration,
33
+ sourceIn: change.sourceIn
34
+ });
35
+ any = true;
36
+ }
37
+ }
38
+ if (any) {
39
+ doc.index = null;
40
+ doc.version++;
41
+ }
42
+ }
43
+ function packMain(order, laneId, changes, override) {
44
+ let t = 0;
45
+ for (const clip of order){
46
+ var _ref;
47
+ const own = null == override ? void 0 : override.get(clip.id);
48
+ const duration = null != (_ref = null == own ? void 0 : own.duration) ? _ref : clip.duration;
49
+ changes.set(clip.id, changeOf(clip, {
50
+ ...own,
51
+ lane: laneId,
52
+ start: t,
53
+ duration
54
+ }));
55
+ t += duration;
56
+ }
57
+ }
58
+ function insertByCentre(others, clip, centre) {
59
+ const order = [];
60
+ let t = 0;
61
+ let placed = false;
62
+ for (const other of others){
63
+ if (!placed && centre < t + other.duration / 2) {
64
+ order.push(clip);
65
+ placed = true;
66
+ }
67
+ order.push(other);
68
+ t += other.duration;
69
+ }
70
+ if (!placed) order.push(clip);
71
+ return order;
72
+ }
73
+ function computeMove(doc, input) {
74
+ const changes = new Map();
75
+ const lead = doc.clips.get(input.lead);
76
+ if (!lead) return {
77
+ changes,
78
+ snap: null
79
+ };
80
+ const fromLane = laneById(doc, lead.lane);
81
+ const toLaneRaw = input.lane ? laneById(doc, input.lane) : void 0;
82
+ const toLane = fromLane && toLaneRaw && !toLaneRaw.locked && compatible(fromLane, toLaneRaw) ? toLaneRaw : fromLane;
83
+ if (!fromLane || !toLane || fromLane.locked) return {
84
+ changes,
85
+ snap: null
86
+ };
87
+ const ids = 'main' === fromLane.kind || 'main' === toLane.kind || toLane.id !== fromLane.id ? [
88
+ lead.id
89
+ ] : input.ids;
90
+ const moving = ids.map((id)=>doc.clips.get(id)).filter((c)=>Boolean(c) && !(null == c ? void 0 : c.locked));
91
+ if (!moving.length) return {
92
+ changes,
93
+ snap: null
94
+ };
95
+ let dt = input.dt;
96
+ let snap = null;
97
+ const minStart = Math.min(...moving.map((c)=>c.start));
98
+ if (input.targets && 'main' !== toLane.kind) {
99
+ let best = null;
100
+ for (const clip of moving)for (const edge of [
101
+ clip.start + dt,
102
+ clip.start + clip.duration + dt
103
+ ]){
104
+ const t = nearest(input.targets, edge, input.within);
105
+ if (null !== t && (!best || Math.abs(t - edge) < Math.abs(best.d))) best = {
106
+ d: t - edge,
107
+ t
108
+ };
109
+ }
110
+ if (best) {
111
+ dt += best.d;
112
+ snap = best.t;
113
+ }
114
+ }
115
+ if (minStart + dt < 0) {
116
+ dt = -minStart;
117
+ snap = null;
118
+ }
119
+ if ('main' !== fromLane.kind && 'main' !== toLane.kind) {
120
+ for (const clip of moving)changes.set(clip.id, changeOf(clip, {
121
+ lane: toLane.id,
122
+ start: quantize(doc, clip.start + dt)
123
+ }));
124
+ return {
125
+ changes,
126
+ snap
127
+ };
128
+ }
129
+ const centre = lead.start + input.dt + lead.duration / 2;
130
+ if ('main' === fromLane.kind && toLane.id === fromLane.id) {
131
+ const others = laneClips(doc, fromLane.id).filter((c)=>c.id !== lead.id);
132
+ packMain(insertByCentre(others, lead, centre), fromLane.id, changes);
133
+ return {
134
+ changes,
135
+ snap: null
136
+ };
137
+ }
138
+ if ('main' === fromLane.kind) {
139
+ packMain(laneClips(doc, fromLane.id).filter((c)=>c.id !== lead.id), fromLane.id, changes);
140
+ changes.set(lead.id, changeOf(lead, {
141
+ lane: toLane.id,
142
+ start: quantize(doc, Math.max(0, lead.start + dt))
143
+ }));
144
+ return {
145
+ changes,
146
+ snap
147
+ };
148
+ }
149
+ const others = laneClips(doc, toLane.id);
150
+ packMain(insertByCentre(others, lead, centre), toLane.id, changes);
151
+ return {
152
+ changes,
153
+ snap: null
154
+ };
155
+ }
156
+ function minDuration(doc) {
157
+ return Math.max(frameOf(doc), 0.05);
158
+ }
159
+ function computeTrim(doc, input) {
160
+ var _clip_sourceIn;
161
+ const changes = new Map();
162
+ const clip = doc.clips.get(input.id);
163
+ const lane = clip ? laneById(doc, clip.lane) : void 0;
164
+ if (!clip || !lane || clip.locked || lane.locked) return {
165
+ changes,
166
+ snap: null
167
+ };
168
+ const speed = clip.speed && clip.speed > 0 ? clip.speed : 1;
169
+ const sourceIn = null != (_clip_sourceIn = clip.sourceIn) ? _clip_sourceIn : 0;
170
+ const min = minDuration(doc);
171
+ let snap = null;
172
+ const main = 'main' === lane.kind;
173
+ if ('end' === input.edge) {
174
+ let end = clip.start + clip.duration + input.dt;
175
+ if (input.targets && !main) {
176
+ const t = nearest(input.targets, end, input.within);
177
+ if (null !== t) {
178
+ end = t;
179
+ snap = t;
180
+ }
181
+ } else if (input.targets && main) {
182
+ const t = nearest(input.targets, end, input.within);
183
+ if (null !== t) {
184
+ end = t;
185
+ snap = t;
186
+ }
187
+ }
188
+ let duration = end - clip.start;
189
+ const maxBySource = void 0 !== clip.sourceDuration ? (clip.sourceDuration - sourceIn) / speed : 1 / 0;
190
+ if (duration > maxBySource) {
191
+ duration = maxBySource;
192
+ snap = null;
193
+ }
194
+ if (duration < min) {
195
+ duration = min;
196
+ snap = null;
197
+ }
198
+ duration = Math.max(min, quantize(doc, duration));
199
+ const own = changeOf(clip, {
200
+ duration
201
+ });
202
+ if (main) packMain(laneClips(doc, lane.id), lane.id, changes, new Map([
203
+ [
204
+ clip.id,
205
+ own
206
+ ]
207
+ ]));
208
+ else changes.set(clip.id, own);
209
+ return {
210
+ changes,
211
+ snap
212
+ };
213
+ }
214
+ let dt = input.dt;
215
+ if (input.targets && !main) {
216
+ const t = nearest(input.targets, clip.start + dt, input.within);
217
+ if (null !== t) {
218
+ dt = t - clip.start;
219
+ snap = t;
220
+ }
221
+ }
222
+ const maxDt = clip.duration - min;
223
+ const minDtBySource = void 0 === clip.sourceDuration ? -1 / 0 : -sourceIn / speed;
224
+ const minDtByZero = main ? -1 / 0 : -clip.start;
225
+ if (dt > maxDt) {
226
+ dt = maxDt;
227
+ snap = null;
228
+ }
229
+ if (dt < Math.max(minDtBySource, minDtByZero)) {
230
+ dt = Math.max(minDtBySource, minDtByZero);
231
+ snap = null;
232
+ }
233
+ dt = quantize(doc, dt);
234
+ const duration = Math.max(min, clip.duration - dt);
235
+ const newIn = Math.max(0, sourceIn + dt * speed);
236
+ if (!main) {
237
+ changes.set(clip.id, changeOf(clip, {
238
+ start: clip.start + dt,
239
+ duration,
240
+ sourceIn: newIn
241
+ }));
242
+ return {
243
+ changes,
244
+ snap
245
+ };
246
+ }
247
+ packMain(laneClips(doc, lane.id), lane.id, changes, new Map([
248
+ [
249
+ clip.id,
250
+ changeOf(clip, {
251
+ duration,
252
+ sourceIn: newIn
253
+ })
254
+ ]
255
+ ]));
256
+ return {
257
+ changes,
258
+ snap: null
259
+ };
260
+ }
261
+ function trimToTime(doc, id, edge, time) {
262
+ const clip = doc.clips.get(id);
263
+ if (!clip) return {
264
+ changes: new Map(),
265
+ snap: null
266
+ };
267
+ if (time <= clip.start + EPS || time >= clip.start + clip.duration - EPS) return {
268
+ changes: new Map(),
269
+ snap: null
270
+ };
271
+ const dt = 'end' === edge ? time - (clip.start + clip.duration) : time - clip.start;
272
+ return computeTrim(doc, {
273
+ id,
274
+ edge,
275
+ dt,
276
+ targets: null,
277
+ within: 0
278
+ });
279
+ }
280
+ function computeNudge(doc, ids, frames) {
281
+ const changes = new Map();
282
+ const step = frameOf(doc) * frames;
283
+ for (const id of ids){
284
+ const clip = doc.clips.get(id);
285
+ const lane = clip ? laneById(doc, clip.lane) : void 0;
286
+ if (clip && lane && !clip.locked && !lane.locked) {
287
+ if ('main' === lane.kind) {
288
+ const order = laneClips(doc, lane.id).slice();
289
+ const i = order.findIndex((c)=>c.id === id);
290
+ const j = i + (frames > 0 ? 1 : -1);
291
+ if (j < 0 || j >= order.length) continue;
292
+ [order[i], order[j]] = [
293
+ order[j],
294
+ order[i]
295
+ ];
296
+ packMain(order, lane.id, changes);
297
+ return changes;
298
+ }
299
+ changes.set(id, changeOf(clip, {
300
+ start: quantize(doc, Math.max(0, clip.start + step))
301
+ }));
302
+ }
303
+ }
304
+ return changes;
305
+ }
306
+ function computeLaneStep(doc, id, step) {
307
+ const clip = doc.clips.get(id);
308
+ const from = clip ? laneById(doc, clip.lane) : void 0;
309
+ const changes = new Map();
310
+ if (!clip || !from || from.locked || clip.locked) return changes;
311
+ const lanes = doc.lanes.filter((l)=>!l.hidden);
312
+ let i = lanes.findIndex((l)=>l.id === from.id) + step;
313
+ while(i >= 0 && i < lanes.length && (!compatible(from, lanes[i]) || lanes[i].locked))i += step;
314
+ const to = lanes[i];
315
+ if (!to) return changes;
316
+ return computeMove(doc, {
317
+ lead: id,
318
+ ids: [
319
+ id
320
+ ],
321
+ dt: 0,
322
+ lane: to.id,
323
+ targets: null,
324
+ within: 0
325
+ }).changes;
326
+ }
327
+ function splitTargets(doc, time) {
328
+ const inside = (c)=>time > c.start + EPS && time < c.start + c.duration - EPS;
329
+ const selected = doc.selection.map((id)=>doc.clips.get(id)).filter((c)=>Boolean(c) && inside(c));
330
+ const free = (c)=>{
331
+ const lane = laneById(doc, c.lane);
332
+ return !c.locked && Boolean(lane) && !(null == lane ? void 0 : lane.locked);
333
+ };
334
+ if (selected.length) return selected.filter(free).map((c)=>c.id);
335
+ for (const lane of doc.lanes)if ('main' === lane.kind) {
336
+ for (const clip of laneClips(doc, lane.id))if (inside(clip) && free(clip)) return [
337
+ clip.id
338
+ ];
339
+ }
340
+ return [];
341
+ }
342
+ export { changeOf, commit, computeLaneStep, computeMove, computeNudge, computeTrim, differing, insertByCentre, minDuration, packMain, splitTargets, trimToTime };
343
+
344
+ //# sourceMappingURL=edits.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nle-timeline/edits.js","sources":["../../src/nle-timeline/edits.ts"],"sourcesContent":["// The timeline's edits as pure functions: move (free placement, the magnetic main lane's reorder, lifting a clip out of\n// it and dropping one in), trim (with the source's limits; the main lane ripples), nudges and what a split or a delete\n// targets. Each returns the changed clips; the engine shows them at once and sends them out as an `nleedit`.\n\nimport { nearest } from './layout';\nimport { compatible, frameOf, laneById, laneClips, type NleClip, type NleDoc, type NleLane, quantize } from './model';\n\n/** One clip's new placement. */\nexport interface NleClipChange {\n readonly id: string;\n readonly lane: string;\n readonly start: number;\n readonly duration: number;\n readonly sourceIn: number;\n}\n\n/** The changes of an edit, by clip id. */\nexport type NleChanges = Map<string, NleClipChange>;\n\nconst EPS = 1e-6;\n\n/** A clip's change record, with `over`'s fields replacing its own. */\nexport function changeOf(clip: NleClip, over: Partial<NleClipChange> = {}): NleClipChange {\n return {\n id: clip.id,\n lane: over.lane ?? clip.lane,\n start: over.start ?? clip.start,\n duration: over.duration ?? clip.duration,\n sourceIn: over.sourceIn ?? clip.sourceIn ?? 0,\n };\n}\n\n/** Only the entries that differ from the doc. */\nexport function differing(doc: NleDoc, changes: NleChanges): NleClipChange[] {\n const out: NleClipChange[] = [];\n for (const change of changes.values()) {\n const clip = doc.clips.get(change.id);\n if (\n !clip ||\n clip.lane !== change.lane ||\n Math.abs(clip.start - change.start) > EPS ||\n Math.abs(clip.duration - change.duration) > EPS ||\n Math.abs((clip.sourceIn ?? 0) - change.sourceIn) > EPS\n )\n out.push(change);\n }\n return out;\n}\n\n/** Writes changes into the doc (the optimistic view until the host's patch). */\nexport function commit(doc: NleDoc, changes: Iterable<NleClipChange>): void {\n let any = false;\n for (const change of changes) {\n const clip = doc.clips.get(change.id);\n if (!clip) continue;\n doc.clips.set(change.id, {\n ...clip,\n lane: change.lane,\n start: change.start,\n duration: change.duration,\n sourceIn: change.sourceIn,\n });\n any = true;\n }\n if (any) {\n doc.index = null;\n doc.version++;\n }\n}\n\n/** Packs a main lane's clips end to end from 0 in the given order. */\nexport function packMain(order: readonly NleClip[], laneId: string, changes: NleChanges, override?: NleChanges): void {\n let t = 0;\n for (const clip of order) {\n const own = override?.get(clip.id);\n const duration = own?.duration ?? clip.duration;\n changes.set(clip.id, changeOf(clip, { ...own, lane: laneId, start: t, duration }));\n t += duration;\n }\n}\n\n/** The main lane's order with `clip` inserted where its centre time falls among the others. */\nexport function insertByCentre(others: readonly NleClip[], clip: NleClip, centre: number): NleClip[] {\n const order: NleClip[] = [];\n let t = 0;\n let placed = false;\n for (const other of others) {\n if (!placed && centre < t + other.duration / 2) {\n order.push(clip);\n placed = true;\n }\n order.push(other);\n t += other.duration;\n }\n if (!placed) order.push(clip);\n return order;\n}\n\n/** What a move needs: the lead clip, the clips that move, the offset, the lane under the pointer and the snap targets. */\nexport interface MoveInput {\n /** The clip under the pointer. */\n readonly lead: string;\n /** Every clip that moves (the selection, lead included). */\n readonly ids: readonly string[];\n /** Seconds the pointer moved. */\n readonly dt: number;\n /** The lane under the pointer (the lead's new lane if compatible). */\n readonly lane: string | null;\n /** Snap targets (sorted) and reach (seconds); null = no snapping. */\n readonly targets: readonly number[] | null;\n readonly within: number;\n}\n\n/** A computed move: the changes, and the time a moved edge snapped to. */\nexport interface MoveResult {\n readonly changes: NleChanges;\n /** The time a moved edge snapped to (draw a line), or null. */\n readonly snap: number | null;\n}\n\n/** A move: free clips by dt (snapped by their edges); a main clip reorders; a lane change lifts or drops. */\nexport function computeMove(doc: NleDoc, input: MoveInput): MoveResult {\n const changes: NleChanges = new Map();\n const lead = doc.clips.get(input.lead);\n if (!lead) return { changes, snap: null };\n const fromLane = laneById(doc, lead.lane);\n const toLaneRaw = input.lane ? laneById(doc, input.lane) : undefined;\n const toLane: NleLane | undefined =\n fromLane && toLaneRaw && !toLaneRaw.locked && compatible(fromLane, toLaneRaw) ? toLaneRaw : fromLane;\n if (!fromLane || !toLane || fromLane.locked) return { changes, snap: null };\n\n // a main clip in a multi-selection moves alone (its neighbours define its place)\n const ids = fromLane.kind === 'main' || toLane.kind === 'main' || toLane.id !== fromLane.id ? [lead.id] : input.ids;\n const moving = ids.map((id) => doc.clips.get(id)).filter((c): c is NleClip => Boolean(c) && !c?.locked);\n if (!moving.length) return { changes, snap: null };\n\n // the free part: dt, snapped by the nearest edge of any moving clip, clamped at 0\n let dt = input.dt;\n let snap: number | null = null;\n const minStart = Math.min(...moving.map((c) => c.start));\n if (input.targets && toLane.kind !== 'main') {\n let best: { d: number; t: number } | null = null;\n for (const clip of moving)\n for (const edge of [clip.start + dt, clip.start + clip.duration + dt]) {\n const t = nearest(input.targets, edge, input.within);\n if (t !== null && (!best || Math.abs(t - edge) < Math.abs(best.d))) best = { d: t - edge, t };\n }\n if (best) {\n dt += best.d;\n snap = best.t;\n }\n }\n if (minStart + dt < 0) {\n dt = -minStart;\n snap = null;\n }\n\n if (fromLane.kind !== 'main' && toLane.kind !== 'main') {\n for (const clip of moving)\n changes.set(clip.id, changeOf(clip, { lane: toLane.id, start: quantize(doc, clip.start + dt) }));\n return { changes, snap };\n }\n\n const centre = lead.start + input.dt + lead.duration / 2;\n if (fromLane.kind === 'main' && toLane.id === fromLane.id) {\n const others = laneClips(doc, fromLane.id).filter((c) => c.id !== lead.id);\n packMain(insertByCentre(others, lead, centre), fromLane.id, changes);\n return { changes, snap: null };\n }\n if (fromLane.kind === 'main') {\n // lifted out: the main lane closes the gap, the clip lands freely\n packMain(\n laneClips(doc, fromLane.id).filter((c) => c.id !== lead.id),\n fromLane.id,\n changes,\n );\n changes.set(lead.id, changeOf(lead, { lane: toLane.id, start: quantize(doc, Math.max(0, lead.start + dt)) }));\n return { changes, snap };\n }\n // dropped into the main lane at its centre\n const others = laneClips(doc, toLane.id);\n packMain(insertByCentre(others, lead, centre), toLane.id, changes);\n return { changes, snap: null };\n}\n\n/** What a trim needs: the clip, the edge, the offset and the snap targets. */\nexport interface TrimInput {\n readonly id: string;\n readonly edge: 'start' | 'end';\n /** Seconds the edge moved (positive = later). */\n readonly dt: number;\n readonly targets: readonly number[] | null;\n readonly within: number;\n}\n\n/** The shortest a clip may be. */\nexport function minDuration(doc: NleDoc): number {\n return Math.max(frameOf(doc), 0.05);\n}\n\n/** A trim: the end or the start, inside the source's window; a main clip's followers ripple. */\nexport function computeTrim(doc: NleDoc, input: TrimInput): MoveResult {\n const changes: NleChanges = new Map();\n const clip = doc.clips.get(input.id);\n const lane = clip ? laneById(doc, clip.lane) : undefined;\n if (!clip || !lane || clip.locked || lane.locked) return { changes, snap: null };\n const speed = clip.speed && clip.speed > 0 ? clip.speed : 1;\n const sourceIn = clip.sourceIn ?? 0;\n const min = minDuration(doc);\n let snap: number | null = null;\n const main = lane.kind === 'main';\n\n if (input.edge === 'end') {\n let end = clip.start + clip.duration + input.dt;\n if (input.targets && !main) {\n const t = nearest(input.targets, end, input.within);\n if (t !== null) {\n end = t;\n snap = t;\n }\n } else if (input.targets && main) {\n const t = nearest(input.targets, end, input.within);\n if (t !== null) {\n end = t;\n snap = t;\n }\n }\n let duration = end - clip.start;\n const maxBySource = clip.sourceDuration !== undefined ? (clip.sourceDuration - sourceIn) / speed : Infinity;\n if (duration > maxBySource) {\n duration = maxBySource;\n snap = null;\n }\n if (duration < min) {\n duration = min;\n snap = null;\n }\n duration = Math.max(min, quantize(doc, duration));\n const own = changeOf(clip, { duration });\n if (!main) changes.set(clip.id, own);\n else packMain(laneClips(doc, lane.id), lane.id, changes, new Map([[clip.id, own]]));\n return { changes, snap };\n }\n\n // start: later shortens, earlier lengthens (down to the source's start and, on a free lane, the time 0)\n let dt = input.dt;\n if (input.targets && !main) {\n const t = nearest(input.targets, clip.start + dt, input.within);\n if (t !== null) {\n dt = t - clip.start;\n snap = t;\n }\n }\n const maxDt = clip.duration - min;\n // an unlimited source (a still, a generator) has no start to reach\n const minDtBySource = clip.sourceDuration === undefined ? -Infinity : -sourceIn / speed;\n const minDtByZero = main ? -Infinity : -clip.start;\n if (dt > maxDt) {\n dt = maxDt;\n snap = null;\n }\n if (dt < Math.max(minDtBySource, minDtByZero)) {\n dt = Math.max(minDtBySource, minDtByZero);\n snap = null;\n }\n dt = quantize(doc, dt);\n const duration = Math.max(min, clip.duration - dt);\n const newIn = Math.max(0, sourceIn + dt * speed);\n if (!main) {\n changes.set(clip.id, changeOf(clip, { start: clip.start + dt, duration, sourceIn: newIn }));\n return { changes, snap };\n }\n packMain(\n laneClips(doc, lane.id),\n lane.id,\n changes,\n new Map([[clip.id, changeOf(clip, { duration, sourceIn: newIn })]]),\n );\n return { changes, snap: null };\n}\n\n/** Trim to the playhead: `[` sets the start, `]` the end (when the playhead is inside the clip). */\nexport function trimToTime(doc: NleDoc, id: string, edge: 'start' | 'end', time: number): MoveResult {\n const clip = doc.clips.get(id);\n if (!clip) return { changes: new Map(), snap: null };\n if (time <= clip.start + EPS || time >= clip.start + clip.duration - EPS) return { changes: new Map(), snap: null };\n const dt = edge === 'end' ? time - (clip.start + clip.duration) : time - clip.start;\n return computeTrim(doc, { id, edge, dt, targets: null, within: 0 });\n}\n\n/** Keyboard nudge: free clips by `frames`; a main clip swaps with its neighbour. */\nexport function computeNudge(doc: NleDoc, ids: readonly string[], frames: number): NleChanges {\n const changes: NleChanges = new Map();\n const step = frameOf(doc) * frames;\n for (const id of ids) {\n const clip = doc.clips.get(id);\n const lane = clip ? laneById(doc, clip.lane) : undefined;\n if (!clip || !lane || clip.locked || lane.locked) continue;\n if (lane.kind === 'main') {\n const order = laneClips(doc, lane.id).slice();\n const i = order.findIndex((c) => c.id === id);\n const j = i + (frames > 0 ? 1 : -1);\n if (j < 0 || j >= order.length) continue;\n [order[i], order[j]] = [order[j] as NleClip, order[i] as NleClip];\n packMain(order, lane.id, changes);\n return changes;\n }\n changes.set(id, changeOf(clip, { start: quantize(doc, Math.max(0, clip.start + step)) }));\n }\n return changes;\n}\n\n/** Keyboard lane move: the clip to the nearest compatible lane above (-1) or below (+1). */\nexport function computeLaneStep(doc: NleDoc, id: string, step: -1 | 1): NleChanges {\n const clip = doc.clips.get(id);\n const from = clip ? laneById(doc, clip.lane) : undefined;\n const changes: NleChanges = new Map();\n if (!clip || !from || from.locked || clip.locked) return changes;\n const lanes = doc.lanes.filter((l) => !l.hidden);\n let i = lanes.findIndex((l) => l.id === from.id) + step;\n while (i >= 0 && i < lanes.length && (!compatible(from, lanes[i] as NleLane) || (lanes[i] as NleLane).locked))\n i += step;\n const to = lanes[i];\n if (!to) return changes;\n return computeMove(doc, { lead: id, ids: [id], dt: 0, lane: to.id, targets: null, within: 0 }).changes;\n}\n\n/** What a split at `time` cuts: the selected clips under it, else the main lane's clip under it. */\nexport function splitTargets(doc: NleDoc, time: number): string[] {\n const inside = (c: NleClip) => time > c.start + EPS && time < c.start + c.duration - EPS;\n const selected = doc.selection\n .map((id) => doc.clips.get(id))\n .filter((c): c is NleClip => Boolean(c) && inside(c as NleClip));\n const free = (c: NleClip) => {\n const lane = laneById(doc, c.lane);\n return !c.locked && Boolean(lane) && !lane?.locked;\n };\n if (selected.length) return selected.filter(free).map((c) => c.id);\n for (const lane of doc.lanes)\n if (lane.kind === 'main')\n for (const clip of laneClips(doc, lane.id)) if (inside(clip) && free(clip)) return [clip.id];\n return [];\n}\n"],"names":["EPS","changeOf","clip","over","_over_lane","_over_start","_over_duration","_ref","differing","doc","changes","out","change","_clip_sourceIn","Math","commit","any","packMain","order","laneId","override","t","own","duration","insertByCentre","others","centre","placed","other","computeMove","input","Map","lead","fromLane","laneById","toLaneRaw","undefined","toLane","compatible","ids","moving","id","c","Boolean","dt","snap","minStart","best","edge","nearest","quantize","laneClips","minDuration","frameOf","computeTrim","lane","speed","sourceIn","min","main","end","maxBySource","Infinity","maxDt","minDtBySource","minDtByZero","newIn","trimToTime","time","computeNudge","frames","step","i","j","computeLaneStep","from","lanes","l","to","splitTargets","inside","selected","free"],"mappings":";;AAmBA,MAAMA,MAAM;AAGL,SAASC,SAASC,IAAa,EAAEC,OAA+B,CAAC,CAAC;QAG/DC,YACCC,aACGC,gBACAC,MAAAA;IALZ,OAAO;QACL,IAAIL,KAAK,EAAE;QACX,MAAM,QAAAE,CAAAA,aAAAA,KAAK,IAAI,AAAD,IAARA,aAAaF,KAAK,IAAI;QAC5B,OAAO,QAAAG,CAAAA,cAAAA,KAAK,KAAK,AAAD,IAATA,cAAcH,KAAK,KAAK;QAC/B,UAAU,QAAAI,CAAAA,iBAAAA,KAAK,QAAQ,AAAD,IAAZA,iBAAiBJ,KAAK,QAAQ;QACxC,UAAU,QAAAK,CAAAA,OAAAA,QAAAA,CAAAA,iBAAAA,KAAK,QAAQ,AAAD,IAAZA,iBAAiBL,KAAK,QAAQ,AAAD,IAA7BK,OAAkC;IAC9C;AACF;AAGO,SAASC,UAAUC,GAAW,EAAEC,OAAmB;IACxD,MAAMC,MAAuB,EAAE;IAC/B,KAAK,MAAMC,UAAUF,QAAQ,MAAM,GAAI;YAOzBG;QANZ,MAAMX,OAAOO,IAAI,KAAK,CAAC,GAAG,CAACG,OAAO,EAAE;QACpC,IACE,CAACV,QACDA,KAAK,IAAI,KAAKU,OAAO,IAAI,IACzBE,KAAK,GAAG,CAACZ,KAAK,KAAK,GAAGU,OAAO,KAAK,IAAIZ,OACtCc,KAAK,GAAG,CAACZ,KAAK,QA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