@glodon-aiot/react-components 3.3.0-beta.17 → 3.3.0-beta.19
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/es/components/Markdown/Code/index.mjs +43 -43
- package/dist/es/components/Markdown/Image/index.mjs +10 -11
- package/dist/es/index.mjs +1 -1
- package/dist/lib/index.js +2 -25
- package/package.json +5 -1
- package/dist/es/_virtual/_commonjsHelpers.mjs +0 -8
- package/dist/es/_virtual/index.mjs +0 -4
- package/dist/es/_virtual/index2.mjs +0 -4
- package/dist/es/_virtual/index3.mjs +0 -4
- package/dist/es/_virtual/lib.mjs +0 -4
- package/dist/es/_virtual/prism-core.mjs +0 -4
- package/dist/es/_virtual/types.mjs +0 -4
- package/dist/es/_virtual/ua-parser.min.mjs +0 -4
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +0 -9
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +0 -8
- package/dist/es/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +0 -12
- package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +0 -13
- package/dist/es/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +0 -7
- package/dist/es/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +0 -7
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +0 -15
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +0 -15
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +0 -10
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +0 -16
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +0 -9
- package/dist/es/node_modules/@babel/runtime/helpers/esm/typeof.mjs +0 -11
- package/dist/es/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +0 -12
- package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +0 -201
- package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +0 -1087
- package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +0 -104
- package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +0 -568
- package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +0 -158
- package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +0 -908
- package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +0 -35
- package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +0 -242
- package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +0 -33
- package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +0 -20
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.css.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +0 -78
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +0 -14
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +0 -34
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +0 -178
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +0 -83
- package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +0 -5
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.css.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +0 -84
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +0 -5
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.css.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +0 -9
- package/dist/es/node_modules/antd-mobile/es/global/global.css.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/global/index.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +0 -141
- package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +0 -9
- package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +0 -7
- package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +0 -11
- package/dist/es/node_modules/antd-mobile/es/utils/dev-log.mjs +0 -7
- package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +0 -6
- package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +0 -22
- package/dist/es/node_modules/antd-mobile/es/utils/is-dev.mjs +0 -4
- package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +0 -11
- package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +0 -12
- package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +0 -47
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +0 -12
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +0 -13
- package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +0 -52
- package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +0 -11
- package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +0 -10
- package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +0 -15
- package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +0 -6
- package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +0 -8
- package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +0 -54
- package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +0 -32
- package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +0 -11
- package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +0 -19
- package/dist/es/node_modules/character-reference-invalid/index.json.mjs +0 -33
- package/dist/es/node_modules/classnames/index.mjs +0 -42
- package/dist/es/node_modules/hast-util-parse-selector/index.mjs +0 -14
- package/dist/es/node_modules/is-alphabetical/index.mjs +0 -8
- package/dist/es/node_modules/is-alphanumerical/index.mjs +0 -9
- package/dist/es/node_modules/is-decimal/index.mjs +0 -8
- package/dist/es/node_modules/is-hexadecimal/index.mjs +0 -8
- package/dist/es/node_modules/parse-entities/decode-entity.browser.mjs +0 -8
- package/dist/es/node_modules/parse-entities/index.mjs +0 -83
- package/dist/es/node_modules/parse-entities/node_modules/character-entities-legacy/index.json.mjs +0 -217
- package/dist/es/node_modules/property-information/find.mjs +0 -25
- package/dist/es/node_modules/property-information/html.mjs +0 -10
- package/dist/es/node_modules/property-information/lib/aria.mjs +0 -63
- package/dist/es/node_modules/property-information/lib/html.mjs +0 -354
- package/dist/es/node_modules/property-information/lib/util/case-insensitive-transform.mjs +0 -8
- package/dist/es/node_modules/property-information/lib/util/case-sensitive-transform.mjs +0 -7
- package/dist/es/node_modules/property-information/lib/util/create.mjs +0 -13
- package/dist/es/node_modules/property-information/lib/util/defined-info.mjs +0 -18
- package/dist/es/node_modules/property-information/lib/util/info.mjs +0 -19
- package/dist/es/node_modules/property-information/lib/util/merge.mjs +0 -11
- package/dist/es/node_modules/property-information/lib/util/schema.mjs +0 -10
- package/dist/es/node_modules/property-information/lib/util/types.mjs +0 -15
- package/dist/es/node_modules/property-information/lib/xlink.mjs +0 -20
- package/dist/es/node_modules/property-information/lib/xml.mjs +0 -16
- package/dist/es/node_modules/property-information/lib/xmlns.mjs +0 -16
- package/dist/es/node_modules/property-information/normalize.mjs +0 -7
- package/dist/es/node_modules/react-device-detect/dist/lib.mjs +0 -723
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +0 -7
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +0 -101
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +0 -283
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +0 -4
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +0 -10
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +0 -195
- package/dist/es/node_modules/refractor/core.mjs +0 -111
- package/dist/es/node_modules/refractor/index.mjs +0 -553
- package/dist/es/node_modules/refractor/lang/abap.mjs +0 -60
- package/dist/es/node_modules/refractor/lang/abnf.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/actionscript.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/ada.mjs +0 -28
- package/dist/es/node_modules/refractor/lang/agda.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/al.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/antlr4.mjs +0 -72
- package/dist/es/node_modules/refractor/lang/apacheconf.mjs +0 -59
- package/dist/es/node_modules/refractor/lang/apex.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/apl.mjs +0 -44
- package/dist/es/node_modules/refractor/lang/applescript.mjs +0 -26
- package/dist/es/node_modules/refractor/lang/aql.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/arduino.mjs +0 -20
- package/dist/es/node_modules/refractor/lang/arff.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/asciidoc.mjs +0 -208
- package/dist/es/node_modules/refractor/lang/asm6502.mjs +0 -41
- package/dist/es/node_modules/refractor/lang/asmatmel.mjs +0 -53
- package/dist/es/node_modules/refractor/lang/aspnet.mjs +0 -53
- package/dist/es/node_modules/refractor/lang/autohotkey.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/autoit.mjs +0 -43
- package/dist/es/node_modules/refractor/lang/avisynth.mjs +0 -167
- package/dist/es/node_modules/refractor/lang/avro-idl.mjs +0 -50
- package/dist/es/node_modules/refractor/lang/bash.mjs +0 -206
- package/dist/es/node_modules/refractor/lang/basic.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/batch.mjs +0 -95
- package/dist/es/node_modules/refractor/lang/bbcode.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/bicep.mjs +0 -72
- package/dist/es/node_modules/refractor/lang/birb.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/bison.mjs +0 -52
- package/dist/es/node_modules/refractor/lang/bnf.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/brainfuck.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/brightscript.mjs +0 -55
- package/dist/es/node_modules/refractor/lang/bro.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/bsl.mjs +0 -77
- package/dist/es/node_modules/refractor/lang/c.mjs +0 -78
- package/dist/es/node_modules/refractor/lang/cfscript.mjs +0 -44
- package/dist/es/node_modules/refractor/lang/chaiscript.mjs +0 -65
- package/dist/es/node_modules/refractor/lang/cil.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/clike.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/clojure.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/cmake.mjs +0 -41
- package/dist/es/node_modules/refractor/lang/cobol.mjs +0 -58
- package/dist/es/node_modules/refractor/lang/coffeescript.mjs +0 -86
- package/dist/es/node_modules/refractor/lang/concurnas.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/coq.mjs +0 -52
- package/dist/es/node_modules/refractor/lang/cpp.mjs +0 -98
- package/dist/es/node_modules/refractor/lang/crystal.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/csharp.mjs +0 -277
- package/dist/es/node_modules/refractor/lang/cshtml.mjs +0 -104
- package/dist/es/node_modules/refractor/lang/csp.mjs +0 -61
- package/dist/es/node_modules/refractor/lang/css-extras.mjs +0 -109
- package/dist/es/node_modules/refractor/lang/css.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/csv.mjs +0 -16
- package/dist/es/node_modules/refractor/lang/cypher.mjs +0 -44
- package/dist/es/node_modules/refractor/lang/d.mjs +0 -77
- package/dist/es/node_modules/refractor/lang/dart.mjs +0 -72
- package/dist/es/node_modules/refractor/lang/dataweave.mjs +0 -49
- package/dist/es/node_modules/refractor/lang/dax.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/dhall.mjs +0 -74
- package/dist/es/node_modules/refractor/lang/diff.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/django.mjs +0 -60
- package/dist/es/node_modules/refractor/lang/dns-zone-file.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/docker.mjs +0 -83
- package/dist/es/node_modules/refractor/lang/dot.mjs +0 -75
- package/dist/es/node_modules/refractor/lang/ebnf.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/editorconfig.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/eiffel.mjs +0 -46
- package/dist/es/node_modules/refractor/lang/ejs.mjs +0 -33
- package/dist/es/node_modules/refractor/lang/elixir.mjs +0 -100
- package/dist/es/node_modules/refractor/lang/elm.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/erb.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/erlang.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/etlua.mjs +0 -33
- package/dist/es/node_modules/refractor/lang/excel-formula.mjs +0 -74
- package/dist/es/node_modules/refractor/lang/factor.mjs +0 -569
- package/dist/es/node_modules/refractor/lang/false.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/firestore-security-rules.mjs +0 -43
- package/dist/es/node_modules/refractor/lang/flow.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/fortran.mjs +0 -49
- package/dist/es/node_modules/refractor/lang/fsharp.mjs +0 -76
- package/dist/es/node_modules/refractor/lang/ftl.mjs +0 -102
- package/dist/es/node_modules/refractor/lang/gap.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/gcode.mjs +0 -28
- package/dist/es/node_modules/refractor/lang/gdscript.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/gedcom.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/gherkin.mjs +0 -94
- package/dist/es/node_modules/refractor/lang/git.mjs +0 -75
- package/dist/es/node_modules/refractor/lang/glsl.mjs +0 -18
- package/dist/es/node_modules/refractor/lang/gml.mjs +0 -19
- package/dist/es/node_modules/refractor/lang/gn.mjs +0 -55
- package/dist/es/node_modules/refractor/lang/go-module.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/go.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/graphql.mjs +0 -133
- package/dist/es/node_modules/refractor/lang/groovy.mjs +0 -58
- package/dist/es/node_modules/refractor/lang/haml.mjs +0 -132
- package/dist/es/node_modules/refractor/lang/handlebars.mjs +0 -46
- package/dist/es/node_modules/refractor/lang/haskell.mjs +0 -76
- package/dist/es/node_modules/refractor/lang/haxe.mjs +0 -84
- package/dist/es/node_modules/refractor/lang/hcl.mjs +0 -68
- package/dist/es/node_modules/refractor/lang/hlsl.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/hoon.mjs +0 -26
- package/dist/es/node_modules/refractor/lang/hpkp.mjs +0 -20
- package/dist/es/node_modules/refractor/lang/hsts.mjs +0 -20
- package/dist/es/node_modules/refractor/lang/http.mjs +0 -126
- package/dist/es/node_modules/refractor/lang/ichigojam.mjs +0 -25
- package/dist/es/node_modules/refractor/lang/icon.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/icu-message-format.mjs +0 -136
- package/dist/es/node_modules/refractor/lang/idris.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/iecst.mjs +0 -38
- package/dist/es/node_modules/refractor/lang/ignore.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/inform7.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/ini.mjs +0 -52
- package/dist/es/node_modules/refractor/lang/io.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/j.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/java.mjs +0 -86
- package/dist/es/node_modules/refractor/lang/javadoc.mjs +0 -89
- package/dist/es/node_modules/refractor/lang/javadoclike.mjs +0 -60
- package/dist/es/node_modules/refractor/lang/javascript.mjs +0 -114
- package/dist/es/node_modules/refractor/lang/javastacktrace.mjs +0 -146
- package/dist/es/node_modules/refractor/lang/jexl.mjs +0 -26
- package/dist/es/node_modules/refractor/lang/jolie.mjs +0 -51
- package/dist/es/node_modules/refractor/lang/jq.mjs +0 -71
- package/dist/es/node_modules/refractor/lang/js-extras.mjs +0 -104
- package/dist/es/node_modules/refractor/lang/js-templates.mjs +0 -153
- package/dist/es/node_modules/refractor/lang/jsdoc.mjs +0 -83
- package/dist/es/node_modules/refractor/lang/json.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/json5.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/jsonp.mjs +0 -20
- package/dist/es/node_modules/refractor/lang/jsstacktrace.mjs +0 -53
- package/dist/es/node_modules/refractor/lang/jsx.mjs +0 -61
- package/dist/es/node_modules/refractor/lang/julia.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/keepalived.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/keyman.mjs +0 -55
- package/dist/es/node_modules/refractor/lang/kotlin.mjs +0 -81
- package/dist/es/node_modules/refractor/lang/kumir.mjs +0 -85
- package/dist/es/node_modules/refractor/lang/kusto.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/latex.mjs +0 -68
- package/dist/es/node_modules/refractor/lang/latte.mjs +0 -68
- package/dist/es/node_modules/refractor/lang/less.mjs +0 -51
- package/dist/es/node_modules/refractor/lang/lilypond.mjs +0 -77
- package/dist/es/node_modules/refractor/lang/liquid.mjs +0 -68
- package/dist/es/node_modules/refractor/lang/lisp.mjs +0 -158
- package/dist/es/node_modules/refractor/lang/livescript.mjs +0 -119
- package/dist/es/node_modules/refractor/lang/llvm.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/log.mjs +0 -103
- package/dist/es/node_modules/refractor/lang/lolcode.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/lua.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/magma.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/makefile.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/markdown.mjs +0 -306
- package/dist/es/node_modules/refractor/lang/markup-templating.mjs +0 -74
- package/dist/es/node_modules/refractor/lang/markup.mjs +0 -154
- package/dist/es/node_modules/refractor/lang/matlab.mjs +0 -25
- package/dist/es/node_modules/refractor/lang/maxscript.mjs +0 -70
- package/dist/es/node_modules/refractor/lang/mel.mjs +0 -49
- package/dist/es/node_modules/refractor/lang/mermaid.mjs +0 -116
- package/dist/es/node_modules/refractor/lang/mizar.mjs +0 -24
- package/dist/es/node_modules/refractor/lang/mongodb.mjs +0 -287
- package/dist/es/node_modules/refractor/lang/monkey.mjs +0 -40
- package/dist/es/node_modules/refractor/lang/moonscript.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/n1ql.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/n4js.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/nand2tetris-hdl.mjs +0 -21
- package/dist/es/node_modules/refractor/lang/naniscript.mjs +0 -140
- package/dist/es/node_modules/refractor/lang/nasm.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/neon.mjs +0 -52
- package/dist/es/node_modules/refractor/lang/nevod.mjs +0 -125
- package/dist/es/node_modules/refractor/lang/nginx.mjs +0 -61
- package/dist/es/node_modules/refractor/lang/nim.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/nix.mjs +0 -45
- package/dist/es/node_modules/refractor/lang/nsis.mjs +0 -37
- package/dist/es/node_modules/refractor/lang/objectivec.mjs +0 -23
- package/dist/es/node_modules/refractor/lang/ocaml.mjs +0 -64
- package/dist/es/node_modules/refractor/lang/opencl.mjs +0 -62
- package/dist/es/node_modules/refractor/lang/openqasm.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/oz.mjs +0 -37
- package/dist/es/node_modules/refractor/lang/parigp.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/parser.mjs +0 -80
- package/dist/es/node_modules/refractor/lang/pascal.mjs +0 -66
- package/dist/es/node_modules/refractor/lang/pascaligo.mjs +0 -70
- package/dist/es/node_modules/refractor/lang/pcaxis.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/peoplecode.mjs +0 -51
- package/dist/es/node_modules/refractor/lang/perl.mjs +0 -134
- package/dist/es/node_modules/refractor/lang/php-extras.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/php.mjs +0 -301
- package/dist/es/node_modules/refractor/lang/phpdoc.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/plsql.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/powerquery.mjs +0 -44
- package/dist/es/node_modules/refractor/lang/powershell.mjs +0 -58
- package/dist/es/node_modules/refractor/lang/processing.mjs +0 -25
- package/dist/es/node_modules/refractor/lang/prolog.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/promql.mjs +0 -74
- package/dist/es/node_modules/refractor/lang/properties.mjs +0 -21
- package/dist/es/node_modules/refractor/lang/protobuf.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/psl.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/pug.mjs +0 -173
- package/dist/es/node_modules/refractor/lang/puppet.mjs +0 -140
- package/dist/es/node_modules/refractor/lang/pure.mjs +0 -72
- package/dist/es/node_modules/refractor/lang/purebasic.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/purescript.mjs +0 -41
- package/dist/es/node_modules/refractor/lang/python.mjs +0 -73
- package/dist/es/node_modules/refractor/lang/q.mjs +0 -62
- package/dist/es/node_modules/refractor/lang/qml.mjs +0 -67
- package/dist/es/node_modules/refractor/lang/qore.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/qsharp.mjs +0 -93
- package/dist/es/node_modules/refractor/lang/r.mjs +0 -31
- package/dist/es/node_modules/refractor/lang/racket.mjs +0 -29
- package/dist/es/node_modules/refractor/lang/reason.mjs +0 -33
- package/dist/es/node_modules/refractor/lang/regex.mjs +0 -97
- package/dist/es/node_modules/refractor/lang/rego.mjs +0 -37
- package/dist/es/node_modules/refractor/lang/renpy.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/rest.mjs +0 -199
- package/dist/es/node_modules/refractor/lang/rip.mjs +0 -41
- package/dist/es/node_modules/refractor/lang/roboconf.mjs +0 -39
- package/dist/es/node_modules/refractor/lang/robotframework.mjs +0 -95
- package/dist/es/node_modules/refractor/lang/ruby.mjs +0 -159
- package/dist/es/node_modules/refractor/lang/rust.mjs +0 -122
- package/dist/es/node_modules/refractor/lang/sas.mjs +0 -305
- package/dist/es/node_modules/refractor/lang/sass.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/scala.mjs +0 -59
- package/dist/es/node_modules/refractor/lang/scheme.mjs +0 -120
- package/dist/es/node_modules/refractor/lang/scss.mjs +0 -82
- package/dist/es/node_modules/refractor/lang/shell-session.mjs +0 -69
- package/dist/es/node_modules/refractor/lang/smali.mjs +0 -84
- package/dist/es/node_modules/refractor/lang/smalltalk.mjs +0 -47
- package/dist/es/node_modules/refractor/lang/smarty.mjs +0 -106
- package/dist/es/node_modules/refractor/lang/sml.mjs +0 -64
- package/dist/es/node_modules/refractor/lang/solidity.mjs +0 -28
- package/dist/es/node_modules/refractor/lang/solution-file.mjs +0 -58
- package/dist/es/node_modules/refractor/lang/soy.mjs +0 -77
- package/dist/es/node_modules/refractor/lang/sparql.mjs +0 -24
- package/dist/es/node_modules/refractor/lang/splunk-spl.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/sqf.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/sql.mjs +0 -42
- package/dist/es/node_modules/refractor/lang/squirrel.mjs +0 -50
- package/dist/es/node_modules/refractor/lang/stan.mjs +0 -63
- package/dist/es/node_modules/refractor/lang/stylus.mjs +0 -141
- package/dist/es/node_modules/refractor/lang/swift.mjs +0 -125
- package/dist/es/node_modules/refractor/lang/systemd.mjs +0 -65
- package/dist/es/node_modules/refractor/lang/t4-cs.mjs +0 -17
- package/dist/es/node_modules/refractor/lang/t4-templating.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/t4-vb.mjs +0 -17
- package/dist/es/node_modules/refractor/lang/tap.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/tcl.mjs +0 -51
- package/dist/es/node_modules/refractor/lang/textile.mjs +0 -248
- package/dist/es/node_modules/refractor/lang/toml.mjs +0 -54
- package/dist/es/node_modules/refractor/lang/tremor.mjs +0 -67
- package/dist/es/node_modules/refractor/lang/tsx.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/tt2.mjs +0 -53
- package/dist/es/node_modules/refractor/lang/turtle.mjs +0 -62
- package/dist/es/node_modules/refractor/lang/twig.mjs +0 -48
- package/dist/es/node_modules/refractor/lang/typescript.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/typoscript.mjs +0 -81
- package/dist/es/node_modules/refractor/lang/unrealscript.mjs +0 -50
- package/dist/es/node_modules/refractor/lang/uorazor.mjs +0 -57
- package/dist/es/node_modules/refractor/lang/uri.mjs +0 -92
- package/dist/es/node_modules/refractor/lang/v.mjs +0 -85
- package/dist/es/node_modules/refractor/lang/vala.mjs +0 -87
- package/dist/es/node_modules/refractor/lang/vbnet.mjs +0 -34
- package/dist/es/node_modules/refractor/lang/velocity.mjs +0 -75
- package/dist/es/node_modules/refractor/lang/verilog.mjs +0 -38
- package/dist/es/node_modules/refractor/lang/vhdl.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/vim.mjs +0 -22
- package/dist/es/node_modules/refractor/lang/visual-basic.mjs +0 -38
- package/dist/es/node_modules/refractor/lang/warpscript.mjs +0 -33
- package/dist/es/node_modules/refractor/lang/wasm.mjs +0 -36
- package/dist/es/node_modules/refractor/lang/web-idl.mjs +0 -89
- package/dist/es/node_modules/refractor/lang/wiki.mjs +0 -86
- package/dist/es/node_modules/refractor/lang/wolfram.mjs +0 -37
- package/dist/es/node_modules/refractor/lang/wren.mjs +0 -97
- package/dist/es/node_modules/refractor/lang/xeora.mjs +0 -121
- package/dist/es/node_modules/refractor/lang/xml-doc.mjs +0 -35
- package/dist/es/node_modules/refractor/lang/xojo.mjs +0 -30
- package/dist/es/node_modules/refractor/lang/xquery.mjs +0 -89
- package/dist/es/node_modules/refractor/lang/yaml.mjs +0 -78
- package/dist/es/node_modules/refractor/lang/yang.mjs +0 -32
- package/dist/es/node_modules/refractor/lang/zig.mjs +0 -80
- package/dist/es/node_modules/refractor/node_modules/comma-separated-tokens/index.mjs +0 -16
- package/dist/es/node_modules/refractor/node_modules/hastscript/factory.mjs +0 -77
- package/dist/es/node_modules/refractor/node_modules/hastscript/html.mjs +0 -8
- package/dist/es/node_modules/refractor/node_modules/hastscript/index.mjs +0 -5
- package/dist/es/node_modules/refractor/node_modules/prismjs/components/prism-core.mjs +0 -720
- package/dist/es/node_modules/refractor/node_modules/space-separated-tokens/index.mjs +0 -14
- package/dist/es/node_modules/tslib/tslib.es6.mjs +0 -30
- package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +0 -123
- package/dist/es/node_modules/xtend/immutable.mjs +0 -12
|
@@ -1,1087 +0,0 @@
|
|
|
1
|
-
var L = (e, t, i) => new Promise((s, n) => {
|
|
2
|
-
var o = (r) => {
|
|
3
|
-
try {
|
|
4
|
-
l(i.next(r));
|
|
5
|
-
} catch (d) {
|
|
6
|
-
n(d);
|
|
7
|
-
}
|
|
8
|
-
}, c = (r) => {
|
|
9
|
-
try {
|
|
10
|
-
l(i.throw(r));
|
|
11
|
-
} catch (d) {
|
|
12
|
-
n(d);
|
|
13
|
-
}
|
|
14
|
-
}, l = (r) => r.done ? s(r.value) : Promise.resolve(r.value).then(o, c);
|
|
15
|
-
l((i = i.apply(e, t)).next());
|
|
16
|
-
});
|
|
17
|
-
import { easings as se, Globals as q, createStringInterpolator as ne, useMemoOne as oe, createInterpolator as ae, isEqual as E, is as a, getFluidValue as O, toArray as R, each as S, frameLoop as _t, callFluidObservers as st, FluidValue as re, deprecateInterpolate as ue, useForceUpdate as ce, usePrev as St, useIsomorphicLayoutEffect as he, useOnce as de, hasFluidValue as U, addFluidObserver as ot, removeFluidObserver as Dt, eachProp as $, flush as it, flushCalls as J, noop as At, deprecateDirectCall as le, isAnimatedString as Nt, getFluidObservers as wt } from "../../shared/dist/react-spring-shared.esm.mjs";
|
|
18
|
-
import * as Qt from "react";
|
|
19
|
-
import { useContext as kt, useMemo as et, useRef as It } from "react";
|
|
20
|
-
import { getAnimatedType as ht, setAnimated as zt, getAnimated as j, getPayload as yt, AnimatedValue as fe, AnimatedString as Ct } from "../../animated/dist/react-spring-animated.esm.mjs";
|
|
21
|
-
import { raf as T } from "../../rafz/dist/react-spring-rafz.esm.mjs";
|
|
22
|
-
function w() {
|
|
23
|
-
return w = Object.assign ? Object.assign.bind() : function(e) {
|
|
24
|
-
for (var t = 1; t < arguments.length; t++) {
|
|
25
|
-
var i = arguments[t];
|
|
26
|
-
for (var s in i)
|
|
27
|
-
Object.prototype.hasOwnProperty.call(i, s) && (e[s] = i[s]);
|
|
28
|
-
}
|
|
29
|
-
return e;
|
|
30
|
-
}, w.apply(this, arguments);
|
|
31
|
-
}
|
|
32
|
-
function D(e, ...t) {
|
|
33
|
-
return a.fun(e) ? e(...t) : e;
|
|
34
|
-
}
|
|
35
|
-
const W = (e, t) => e === !0 || !!(t && e && (a.fun(e) ? e(t) : R(e).includes(t))), $t = (e, t) => a.obj(e) ? t && e[t] : e, Bt = (e, t) => e.default === !0 ? e[t] : e.default ? e.default[t] : void 0, me = (e) => e, vt = (e, t = me) => {
|
|
36
|
-
let i = pe;
|
|
37
|
-
e.default && e.default !== !0 && (e = e.default, i = Object.keys(e));
|
|
38
|
-
const s = {};
|
|
39
|
-
for (const n of i) {
|
|
40
|
-
const o = t(e[n], n);
|
|
41
|
-
a.und(o) || (s[n] = o);
|
|
42
|
-
}
|
|
43
|
-
return s;
|
|
44
|
-
}, pe = ["config", "onProps", "onStart", "onChange", "onPause", "onResume", "onRest"], ge = {
|
|
45
|
-
config: 1,
|
|
46
|
-
from: 1,
|
|
47
|
-
to: 1,
|
|
48
|
-
ref: 1,
|
|
49
|
-
loop: 1,
|
|
50
|
-
reset: 1,
|
|
51
|
-
pause: 1,
|
|
52
|
-
cancel: 1,
|
|
53
|
-
reverse: 1,
|
|
54
|
-
immediate: 1,
|
|
55
|
-
default: 1,
|
|
56
|
-
delay: 1,
|
|
57
|
-
onProps: 1,
|
|
58
|
-
onStart: 1,
|
|
59
|
-
onChange: 1,
|
|
60
|
-
onPause: 1,
|
|
61
|
-
onResume: 1,
|
|
62
|
-
onRest: 1,
|
|
63
|
-
onResolve: 1,
|
|
64
|
-
items: 1,
|
|
65
|
-
trail: 1,
|
|
66
|
-
sort: 1,
|
|
67
|
-
expires: 1,
|
|
68
|
-
initial: 1,
|
|
69
|
-
enter: 1,
|
|
70
|
-
update: 1,
|
|
71
|
-
leave: 1,
|
|
72
|
-
children: 1,
|
|
73
|
-
onDestroyed: 1,
|
|
74
|
-
keys: 1,
|
|
75
|
-
callId: 1,
|
|
76
|
-
parentId: 1
|
|
77
|
-
};
|
|
78
|
-
function _e(e) {
|
|
79
|
-
const t = {};
|
|
80
|
-
let i = 0;
|
|
81
|
-
if ($(e, (s, n) => {
|
|
82
|
-
ge[n] || (t[n] = s, i++);
|
|
83
|
-
}), i)
|
|
84
|
-
return t;
|
|
85
|
-
}
|
|
86
|
-
function Lt(e) {
|
|
87
|
-
const t = _e(e);
|
|
88
|
-
if (t) {
|
|
89
|
-
const i = {
|
|
90
|
-
to: t
|
|
91
|
-
};
|
|
92
|
-
return $(e, (s, n) => n in t || (i[n] = s)), i;
|
|
93
|
-
}
|
|
94
|
-
return w({}, e);
|
|
95
|
-
}
|
|
96
|
-
function Y(e) {
|
|
97
|
-
return e = O(e), a.arr(e) ? e.map(Y) : Nt(e) ? q.createStringInterpolator({
|
|
98
|
-
range: [0, 1],
|
|
99
|
-
output: [e, e]
|
|
100
|
-
})(1) : e;
|
|
101
|
-
}
|
|
102
|
-
function ye(e) {
|
|
103
|
-
for (const t in e)
|
|
104
|
-
return !0;
|
|
105
|
-
return !1;
|
|
106
|
-
}
|
|
107
|
-
function dt(e) {
|
|
108
|
-
return a.fun(e) || a.arr(e) && a.obj(e[0]);
|
|
109
|
-
}
|
|
110
|
-
function ve(e, t) {
|
|
111
|
-
var i;
|
|
112
|
-
(i = e.ref) == null || i.delete(e), t == null || t.delete(e);
|
|
113
|
-
}
|
|
114
|
-
function Pe(e, t) {
|
|
115
|
-
if (t && e.ref !== t) {
|
|
116
|
-
var i;
|
|
117
|
-
(i = e.ref) == null || i.delete(e), t.add(e), e.ref = t;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
const be = {
|
|
121
|
-
default: {
|
|
122
|
-
tension: 170,
|
|
123
|
-
friction: 26
|
|
124
|
-
},
|
|
125
|
-
gentle: {
|
|
126
|
-
tension: 120,
|
|
127
|
-
friction: 14
|
|
128
|
-
},
|
|
129
|
-
wobbly: {
|
|
130
|
-
tension: 180,
|
|
131
|
-
friction: 12
|
|
132
|
-
},
|
|
133
|
-
stiff: {
|
|
134
|
-
tension: 210,
|
|
135
|
-
friction: 20
|
|
136
|
-
},
|
|
137
|
-
slow: {
|
|
138
|
-
tension: 280,
|
|
139
|
-
friction: 60
|
|
140
|
-
},
|
|
141
|
-
molasses: {
|
|
142
|
-
tension: 280,
|
|
143
|
-
friction: 120
|
|
144
|
-
}
|
|
145
|
-
}, lt = w({}, be.default, {
|
|
146
|
-
mass: 1,
|
|
147
|
-
damping: 1,
|
|
148
|
-
easing: se.linear,
|
|
149
|
-
clamp: !1
|
|
150
|
-
});
|
|
151
|
-
class Se {
|
|
152
|
-
constructor() {
|
|
153
|
-
this.tension = void 0, this.friction = void 0, this.frequency = void 0, this.damping = void 0, this.mass = void 0, this.velocity = 0, this.restVelocity = void 0, this.precision = void 0, this.progress = void 0, this.duration = void 0, this.easing = void 0, this.clamp = void 0, this.bounce = void 0, this.decay = void 0, this.round = void 0, Object.assign(this, lt);
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
function Ae(e, t, i) {
|
|
157
|
-
i && (i = w({}, i), Rt(i, t), t = w({}, i, t)), Rt(e, t), Object.assign(e, t);
|
|
158
|
-
for (const c in lt)
|
|
159
|
-
e[c] == null && (e[c] = lt[c]);
|
|
160
|
-
let {
|
|
161
|
-
mass: s,
|
|
162
|
-
frequency: n,
|
|
163
|
-
damping: o
|
|
164
|
-
} = e;
|
|
165
|
-
return a.und(n) || (n < 0.01 && (n = 0.01), o < 0 && (o = 0), e.tension = Math.pow(2 * Math.PI / n, 2) * s, e.friction = 4 * Math.PI * o * s / n), e;
|
|
166
|
-
}
|
|
167
|
-
function Rt(e, t) {
|
|
168
|
-
if (!a.und(t.decay))
|
|
169
|
-
e.duration = void 0;
|
|
170
|
-
else {
|
|
171
|
-
const i = !a.und(t.tension) || !a.und(t.friction);
|
|
172
|
-
(i || !a.und(t.frequency) || !a.und(t.damping) || !a.und(t.mass)) && (e.duration = void 0, e.decay = void 0), i && (e.frequency = void 0);
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
const Vt = [];
|
|
176
|
-
class we {
|
|
177
|
-
constructor() {
|
|
178
|
-
this.changed = !1, this.values = Vt, this.toValues = null, this.fromValues = Vt, this.to = void 0, this.from = void 0, this.config = new Se(), this.immediate = !1;
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
function Gt(e, {
|
|
182
|
-
key: t,
|
|
183
|
-
props: i,
|
|
184
|
-
defaultProps: s,
|
|
185
|
-
state: n,
|
|
186
|
-
actions: o
|
|
187
|
-
}) {
|
|
188
|
-
return new Promise((c, l) => {
|
|
189
|
-
var r;
|
|
190
|
-
let d, u, f = W((r = i.cancel) != null ? r : s == null ? void 0 : s.cancel, t);
|
|
191
|
-
if (f)
|
|
192
|
-
y();
|
|
193
|
-
else {
|
|
194
|
-
a.und(i.pause) || (n.paused = W(i.pause, t));
|
|
195
|
-
let m = s == null ? void 0 : s.pause;
|
|
196
|
-
m !== !0 && (m = n.paused || W(m, t)), d = D(i.delay || 0, t), m ? (n.resumeQueue.add(b), o.pause()) : (o.resume(), b());
|
|
197
|
-
}
|
|
198
|
-
function v() {
|
|
199
|
-
n.resumeQueue.add(b), n.timeouts.delete(u), u.cancel(), d = u.time - T.now();
|
|
200
|
-
}
|
|
201
|
-
function b() {
|
|
202
|
-
d > 0 && !q.skipAnimation ? (n.delayed = !0, u = T.setTimeout(y, d), n.pauseQueue.add(v), n.timeouts.add(u)) : y();
|
|
203
|
-
}
|
|
204
|
-
function y() {
|
|
205
|
-
n.delayed && (n.delayed = !1), n.pauseQueue.delete(v), n.timeouts.delete(u), e <= (n.cancelId || 0) && (f = !0);
|
|
206
|
-
try {
|
|
207
|
-
o.start(w({}, i, {
|
|
208
|
-
callId: e,
|
|
209
|
-
cancel: f
|
|
210
|
-
}), c);
|
|
211
|
-
} catch (m) {
|
|
212
|
-
l(m);
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
});
|
|
216
|
-
}
|
|
217
|
-
const Pt = (e, t) => t.length == 1 ? t[0] : t.some((i) => i.cancelled) ? z(e.get()) : t.every((i) => i.noop) ? Ht(e.get()) : V(e.get(), t.every((i) => i.finished)), Ht = (e) => ({
|
|
218
|
-
value: e,
|
|
219
|
-
noop: !0,
|
|
220
|
-
finished: !0,
|
|
221
|
-
cancelled: !1
|
|
222
|
-
}), V = (e, t, i = !1) => ({
|
|
223
|
-
value: e,
|
|
224
|
-
finished: t,
|
|
225
|
-
cancelled: i
|
|
226
|
-
}), z = (e) => ({
|
|
227
|
-
value: e,
|
|
228
|
-
cancelled: !0,
|
|
229
|
-
finished: !1
|
|
230
|
-
});
|
|
231
|
-
function Kt(e, t, i, s) {
|
|
232
|
-
const {
|
|
233
|
-
callId: n,
|
|
234
|
-
parentId: o,
|
|
235
|
-
onRest: c
|
|
236
|
-
} = t, {
|
|
237
|
-
asyncTo: l,
|
|
238
|
-
promise: r
|
|
239
|
-
} = i;
|
|
240
|
-
return !o && e === l && !t.reset ? r : i.promise = (() => L(this, null, function* () {
|
|
241
|
-
i.asyncId = n, i.asyncTo = e;
|
|
242
|
-
const d = vt(t, (h, p) => p === "onRest" ? void 0 : h);
|
|
243
|
-
let u, f;
|
|
244
|
-
const v = new Promise((h, p) => (u = h, f = p)), b = (h) => {
|
|
245
|
-
const p = n <= (i.cancelId || 0) && z(s) || n !== i.asyncId && V(s, !1);
|
|
246
|
-
if (p)
|
|
247
|
-
throw h.result = p, f(h), h;
|
|
248
|
-
}, y = (h, p) => {
|
|
249
|
-
const g = new Tt(), P = new Ft();
|
|
250
|
-
return (() => L(this, null, function* () {
|
|
251
|
-
if (q.skipAnimation)
|
|
252
|
-
throw X(i), P.result = V(s, !1), f(P), P;
|
|
253
|
-
b(g);
|
|
254
|
-
const _ = a.obj(h) ? w({}, h) : w({}, p, {
|
|
255
|
-
to: h
|
|
256
|
-
});
|
|
257
|
-
_.parentId = n, $(d, (I, Q) => {
|
|
258
|
-
a.und(_[Q]) && (_[Q] = I);
|
|
259
|
-
});
|
|
260
|
-
const A = yield s.start(_);
|
|
261
|
-
return b(g), i.paused && (yield new Promise((I) => {
|
|
262
|
-
i.resumeQueue.add(I);
|
|
263
|
-
})), A;
|
|
264
|
-
}))();
|
|
265
|
-
};
|
|
266
|
-
let m;
|
|
267
|
-
if (q.skipAnimation)
|
|
268
|
-
return X(i), V(s, !1);
|
|
269
|
-
try {
|
|
270
|
-
let h;
|
|
271
|
-
a.arr(e) ? h = ((p) => L(this, null, function* () {
|
|
272
|
-
for (const g of p)
|
|
273
|
-
yield y(g);
|
|
274
|
-
}))(e) : h = Promise.resolve(e(y, s.stop.bind(s))), yield Promise.all([h.then(u), v]), m = V(s.get(), !0, !1);
|
|
275
|
-
} catch (h) {
|
|
276
|
-
if (h instanceof Tt)
|
|
277
|
-
m = h.result;
|
|
278
|
-
else if (h instanceof Ft)
|
|
279
|
-
m = h.result;
|
|
280
|
-
else
|
|
281
|
-
throw h;
|
|
282
|
-
} finally {
|
|
283
|
-
n == i.asyncId && (i.asyncId = o, i.asyncTo = o ? l : void 0, i.promise = o ? r : void 0);
|
|
284
|
-
}
|
|
285
|
-
return a.fun(c) && T.batchedUpdates(() => {
|
|
286
|
-
c(m, s, s.item);
|
|
287
|
-
}), m;
|
|
288
|
-
}))();
|
|
289
|
-
}
|
|
290
|
-
function X(e, t) {
|
|
291
|
-
it(e.timeouts, (i) => i.cancel()), e.pauseQueue.clear(), e.resumeQueue.clear(), e.asyncId = e.asyncTo = e.promise = void 0, t && (e.cancelId = t);
|
|
292
|
-
}
|
|
293
|
-
class Tt extends Error {
|
|
294
|
-
constructor() {
|
|
295
|
-
super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise."), this.result = void 0;
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
class Ft extends Error {
|
|
299
|
-
constructor() {
|
|
300
|
-
super("SkipAnimationSignal"), this.result = void 0;
|
|
301
|
-
}
|
|
302
|
-
}
|
|
303
|
-
const ft = (e) => e instanceof bt;
|
|
304
|
-
let Ie = 1;
|
|
305
|
-
class bt extends re {
|
|
306
|
-
constructor(...t) {
|
|
307
|
-
super(...t), this.id = Ie++, this.key = void 0, this._priority = 0;
|
|
308
|
-
}
|
|
309
|
-
get priority() {
|
|
310
|
-
return this._priority;
|
|
311
|
-
}
|
|
312
|
-
set priority(t) {
|
|
313
|
-
this._priority != t && (this._priority = t, this._onPriorityChange(t));
|
|
314
|
-
}
|
|
315
|
-
get() {
|
|
316
|
-
const t = j(this);
|
|
317
|
-
return t && t.getValue();
|
|
318
|
-
}
|
|
319
|
-
to(...t) {
|
|
320
|
-
return q.to(this, t);
|
|
321
|
-
}
|
|
322
|
-
interpolate(...t) {
|
|
323
|
-
return ue(), q.to(this, t);
|
|
324
|
-
}
|
|
325
|
-
toJSON() {
|
|
326
|
-
return this.get();
|
|
327
|
-
}
|
|
328
|
-
observerAdded(t) {
|
|
329
|
-
t == 1 && this._attach();
|
|
330
|
-
}
|
|
331
|
-
observerRemoved(t) {
|
|
332
|
-
t == 0 && this._detach();
|
|
333
|
-
}
|
|
334
|
-
_attach() {
|
|
335
|
-
}
|
|
336
|
-
_detach() {
|
|
337
|
-
}
|
|
338
|
-
_onChange(t, i = !1) {
|
|
339
|
-
st(this, {
|
|
340
|
-
type: "change",
|
|
341
|
-
parent: this,
|
|
342
|
-
value: t,
|
|
343
|
-
idle: i
|
|
344
|
-
});
|
|
345
|
-
}
|
|
346
|
-
_onPriorityChange(t) {
|
|
347
|
-
this.idle || _t.sort(this), st(this, {
|
|
348
|
-
type: "priority",
|
|
349
|
-
parent: this,
|
|
350
|
-
priority: t
|
|
351
|
-
});
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
const N = Symbol.for("SpringPhase"), Jt = 1, mt = 2, pt = 4, ut = (e) => (e[N] & Jt) > 0, M = (e) => (e[N] & mt) > 0, G = (e) => (e[N] & pt) > 0, Ot = (e, t) => t ? e[N] |= mt | Jt : e[N] &= ~mt, xt = (e, t) => t ? e[N] |= pt : e[N] &= ~pt;
|
|
355
|
-
class Ce extends bt {
|
|
356
|
-
constructor(t, i) {
|
|
357
|
-
if (super(), this.key = void 0, this.animation = new we(), this.queue = void 0, this.defaultProps = {}, this._state = {
|
|
358
|
-
paused: !1,
|
|
359
|
-
delayed: !1,
|
|
360
|
-
pauseQueue: /* @__PURE__ */ new Set(),
|
|
361
|
-
resumeQueue: /* @__PURE__ */ new Set(),
|
|
362
|
-
timeouts: /* @__PURE__ */ new Set()
|
|
363
|
-
}, this._pendingCalls = /* @__PURE__ */ new Set(), this._lastCallId = 0, this._lastToId = 0, this._memoizedDuration = 0, !a.und(t) || !a.und(i)) {
|
|
364
|
-
const s = a.obj(t) ? w({}, t) : w({}, i, {
|
|
365
|
-
from: t
|
|
366
|
-
});
|
|
367
|
-
a.und(s.default) && (s.default = !0), this.start(s);
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
get idle() {
|
|
371
|
-
return !(M(this) || this._state.asyncTo) || G(this);
|
|
372
|
-
}
|
|
373
|
-
get goal() {
|
|
374
|
-
return O(this.animation.to);
|
|
375
|
-
}
|
|
376
|
-
get velocity() {
|
|
377
|
-
const t = j(this);
|
|
378
|
-
return t instanceof fe ? t.lastVelocity || 0 : t.getPayload().map((i) => i.lastVelocity || 0);
|
|
379
|
-
}
|
|
380
|
-
get hasAnimated() {
|
|
381
|
-
return ut(this);
|
|
382
|
-
}
|
|
383
|
-
get isAnimating() {
|
|
384
|
-
return M(this);
|
|
385
|
-
}
|
|
386
|
-
get isPaused() {
|
|
387
|
-
return G(this);
|
|
388
|
-
}
|
|
389
|
-
get isDelayed() {
|
|
390
|
-
return this._state.delayed;
|
|
391
|
-
}
|
|
392
|
-
advance(t) {
|
|
393
|
-
let i = !0, s = !1;
|
|
394
|
-
const n = this.animation;
|
|
395
|
-
let {
|
|
396
|
-
config: o,
|
|
397
|
-
toValues: c
|
|
398
|
-
} = n;
|
|
399
|
-
const l = yt(n.to);
|
|
400
|
-
!l && U(n.to) && (c = R(O(n.to))), n.values.forEach((u, f) => {
|
|
401
|
-
if (u.done)
|
|
402
|
-
return;
|
|
403
|
-
const v = u.constructor == Ct ? 1 : l ? l[f].lastPosition : c[f];
|
|
404
|
-
let b = n.immediate, y = v;
|
|
405
|
-
if (!b) {
|
|
406
|
-
if (y = u.lastPosition, o.tension <= 0) {
|
|
407
|
-
u.done = !0;
|
|
408
|
-
return;
|
|
409
|
-
}
|
|
410
|
-
let m = u.elapsedTime += t;
|
|
411
|
-
const h = n.fromValues[f], p = u.v0 != null ? u.v0 : u.v0 = a.arr(o.velocity) ? o.velocity[f] : o.velocity;
|
|
412
|
-
let g;
|
|
413
|
-
const P = o.precision || (h == v ? 5e-3 : Math.min(1, Math.abs(v - h) * 1e-3));
|
|
414
|
-
if (a.und(o.duration))
|
|
415
|
-
if (o.decay) {
|
|
416
|
-
const _ = o.decay === !0 ? 0.998 : o.decay, A = Math.exp(-(1 - _) * m);
|
|
417
|
-
y = h + p / (1 - _) * (1 - A), b = Math.abs(u.lastPosition - y) <= P, g = p * A;
|
|
418
|
-
} else {
|
|
419
|
-
g = u.lastVelocity == null ? p : u.lastVelocity;
|
|
420
|
-
const _ = o.restVelocity || P / 10, A = o.clamp ? 0 : o.bounce, I = !a.und(A), Q = h == v ? u.v0 > 0 : h < v;
|
|
421
|
-
let x, tt = !1;
|
|
422
|
-
const C = 1, B = Math.ceil(t / C);
|
|
423
|
-
for (let F = 0; F < B && (x = Math.abs(g) > _, !(!x && (b = Math.abs(v - y) <= P, b))); ++F) {
|
|
424
|
-
I && (tt = y == v || y > v == Q, tt && (g = -g * A, y = v));
|
|
425
|
-
const k = -o.tension * 1e-6 * (y - v), rt = -o.friction * 1e-3 * g, ie = (k + rt) / o.mass;
|
|
426
|
-
g = g + ie * C, y = y + g * C;
|
|
427
|
-
}
|
|
428
|
-
}
|
|
429
|
-
else {
|
|
430
|
-
let _ = 1;
|
|
431
|
-
o.duration > 0 && (this._memoizedDuration !== o.duration && (this._memoizedDuration = o.duration, u.durationProgress > 0 && (u.elapsedTime = o.duration * u.durationProgress, m = u.elapsedTime += t)), _ = (o.progress || 0) + m / this._memoizedDuration, _ = _ > 1 ? 1 : _ < 0 ? 0 : _, u.durationProgress = _), y = h + o.easing(_) * (v - h), g = (y - u.lastPosition) / t, b = _ == 1;
|
|
432
|
-
}
|
|
433
|
-
u.lastVelocity = g, Number.isNaN(y) && (console.warn("Got NaN while animating:", this), b = !0);
|
|
434
|
-
}
|
|
435
|
-
l && !l[f].done && (b = !1), b ? u.done = !0 : i = !1, u.setValue(y, o.round) && (s = !0);
|
|
436
|
-
});
|
|
437
|
-
const r = j(this), d = r.getValue();
|
|
438
|
-
if (i) {
|
|
439
|
-
const u = O(n.to);
|
|
440
|
-
(d !== u || s) && !o.decay ? (r.setValue(u), this._onChange(u)) : s && o.decay && this._onChange(d), this._stop();
|
|
441
|
-
} else
|
|
442
|
-
s && this._onChange(d);
|
|
443
|
-
}
|
|
444
|
-
set(t) {
|
|
445
|
-
return T.batchedUpdates(() => {
|
|
446
|
-
this._stop(), this._focus(t), this._set(t);
|
|
447
|
-
}), this;
|
|
448
|
-
}
|
|
449
|
-
pause() {
|
|
450
|
-
this._update({
|
|
451
|
-
pause: !0
|
|
452
|
-
});
|
|
453
|
-
}
|
|
454
|
-
resume() {
|
|
455
|
-
this._update({
|
|
456
|
-
pause: !1
|
|
457
|
-
});
|
|
458
|
-
}
|
|
459
|
-
finish() {
|
|
460
|
-
if (M(this)) {
|
|
461
|
-
const {
|
|
462
|
-
to: t,
|
|
463
|
-
config: i
|
|
464
|
-
} = this.animation;
|
|
465
|
-
T.batchedUpdates(() => {
|
|
466
|
-
this._onStart(), i.decay || this._set(t, !1), this._stop();
|
|
467
|
-
});
|
|
468
|
-
}
|
|
469
|
-
return this;
|
|
470
|
-
}
|
|
471
|
-
update(t) {
|
|
472
|
-
return (this.queue || (this.queue = [])).push(t), this;
|
|
473
|
-
}
|
|
474
|
-
start(t, i) {
|
|
475
|
-
let s;
|
|
476
|
-
return a.und(t) ? (s = this.queue || [], this.queue = []) : s = [a.obj(t) ? t : w({}, i, {
|
|
477
|
-
to: t
|
|
478
|
-
})], Promise.all(s.map((n) => this._update(n))).then((n) => Pt(this, n));
|
|
479
|
-
}
|
|
480
|
-
stop(t) {
|
|
481
|
-
const {
|
|
482
|
-
to: i
|
|
483
|
-
} = this.animation;
|
|
484
|
-
return this._focus(this.get()), X(this._state, t && this._lastCallId), T.batchedUpdates(() => this._stop(i, t)), this;
|
|
485
|
-
}
|
|
486
|
-
reset() {
|
|
487
|
-
this._update({
|
|
488
|
-
reset: !0
|
|
489
|
-
});
|
|
490
|
-
}
|
|
491
|
-
eventObserved(t) {
|
|
492
|
-
t.type == "change" ? this._start() : t.type == "priority" && (this.priority = t.priority + 1);
|
|
493
|
-
}
|
|
494
|
-
_prepareNode(t) {
|
|
495
|
-
const i = this.key || "";
|
|
496
|
-
let {
|
|
497
|
-
to: s,
|
|
498
|
-
from: n
|
|
499
|
-
} = t;
|
|
500
|
-
s = a.obj(s) ? s[i] : s, (s == null || dt(s)) && (s = void 0), n = a.obj(n) ? n[i] : n, n == null && (n = void 0);
|
|
501
|
-
const o = {
|
|
502
|
-
to: s,
|
|
503
|
-
from: n
|
|
504
|
-
};
|
|
505
|
-
return ut(this) || (t.reverse && ([s, n] = [n, s]), n = O(n), a.und(n) ? j(this) || this._set(s) : this._set(n)), o;
|
|
506
|
-
}
|
|
507
|
-
_update(t, i) {
|
|
508
|
-
let s = w({}, t);
|
|
509
|
-
const {
|
|
510
|
-
key: n,
|
|
511
|
-
defaultProps: o
|
|
512
|
-
} = this;
|
|
513
|
-
s.default && Object.assign(o, vt(s, (r, d) => /^on/.test(d) ? $t(r, n) : r)), jt(this, s, "onProps"), K(this, "onProps", s, this);
|
|
514
|
-
const c = this._prepareNode(s);
|
|
515
|
-
if (Object.isFrozen(this))
|
|
516
|
-
throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");
|
|
517
|
-
const l = this._state;
|
|
518
|
-
return Gt(++this._lastCallId, {
|
|
519
|
-
key: n,
|
|
520
|
-
props: s,
|
|
521
|
-
defaultProps: o,
|
|
522
|
-
state: l,
|
|
523
|
-
actions: {
|
|
524
|
-
pause: () => {
|
|
525
|
-
G(this) || (xt(this, !0), J(l.pauseQueue), K(this, "onPause", V(this, H(this, this.animation.to)), this));
|
|
526
|
-
},
|
|
527
|
-
resume: () => {
|
|
528
|
-
G(this) && (xt(this, !1), M(this) && this._resume(), J(l.resumeQueue), K(this, "onResume", V(this, H(this, this.animation.to)), this));
|
|
529
|
-
},
|
|
530
|
-
start: this._merge.bind(this, c)
|
|
531
|
-
}
|
|
532
|
-
}).then((r) => {
|
|
533
|
-
if (s.loop && r.finished && !(i && r.noop)) {
|
|
534
|
-
const d = Wt(s);
|
|
535
|
-
if (d)
|
|
536
|
-
return this._update(d, !0);
|
|
537
|
-
}
|
|
538
|
-
return r;
|
|
539
|
-
});
|
|
540
|
-
}
|
|
541
|
-
_merge(t, i, s) {
|
|
542
|
-
if (i.cancel)
|
|
543
|
-
return this.stop(!0), s(z(this));
|
|
544
|
-
const n = !a.und(t.to), o = !a.und(t.from);
|
|
545
|
-
if (n || o)
|
|
546
|
-
if (i.callId > this._lastToId)
|
|
547
|
-
this._lastToId = i.callId;
|
|
548
|
-
else
|
|
549
|
-
return s(z(this));
|
|
550
|
-
const {
|
|
551
|
-
key: c,
|
|
552
|
-
defaultProps: l,
|
|
553
|
-
animation: r
|
|
554
|
-
} = this, {
|
|
555
|
-
to: d,
|
|
556
|
-
from: u
|
|
557
|
-
} = r;
|
|
558
|
-
let {
|
|
559
|
-
to: f = d,
|
|
560
|
-
from: v = u
|
|
561
|
-
} = t;
|
|
562
|
-
o && !n && (!i.default || a.und(f)) && (f = v), i.reverse && ([f, v] = [v, f]);
|
|
563
|
-
const b = !E(v, u);
|
|
564
|
-
b && (r.from = v), v = O(v);
|
|
565
|
-
const y = !E(f, d);
|
|
566
|
-
y && this._focus(f);
|
|
567
|
-
const m = dt(i.to), {
|
|
568
|
-
config: h
|
|
569
|
-
} = r, {
|
|
570
|
-
decay: p,
|
|
571
|
-
velocity: g
|
|
572
|
-
} = h;
|
|
573
|
-
(n || o) && (h.velocity = 0), i.config && !m && Ae(h, D(i.config, c), i.config !== l.config ? D(l.config, c) : void 0);
|
|
574
|
-
let P = j(this);
|
|
575
|
-
if (!P || a.und(f))
|
|
576
|
-
return s(V(this, !0));
|
|
577
|
-
const _ = a.und(i.reset) ? o && !i.default : !a.und(v) && W(i.reset, c), A = _ ? v : this.get(), I = Y(f), Q = a.num(I) || a.arr(I) || Nt(I), x = !m && (!Q || W(l.immediate || i.immediate, c));
|
|
578
|
-
if (y) {
|
|
579
|
-
const F = ht(f);
|
|
580
|
-
if (F !== P.constructor)
|
|
581
|
-
if (x)
|
|
582
|
-
P = this._set(I);
|
|
583
|
-
else
|
|
584
|
-
throw Error(`Cannot animate between ${P.constructor.name} and ${F.name}, as the "to" prop suggests`);
|
|
585
|
-
}
|
|
586
|
-
const tt = P.constructor;
|
|
587
|
-
let C = U(f), B = !1;
|
|
588
|
-
if (!C) {
|
|
589
|
-
const F = _ || !ut(this) && b;
|
|
590
|
-
(y || F) && (B = E(Y(A), I), C = !B), (!E(r.immediate, x) && !x || !E(h.decay, p) || !E(h.velocity, g)) && (C = !0);
|
|
591
|
-
}
|
|
592
|
-
if (B && M(this) && (r.changed && !_ ? C = !0 : C || this._stop(d)), !m && ((C || U(d)) && (r.values = P.getPayload(), r.toValues = U(f) ? null : tt == Ct ? [1] : R(I)), r.immediate != x && (r.immediate = x, !x && !_ && this._set(d)), C)) {
|
|
593
|
-
const {
|
|
594
|
-
onRest: F
|
|
595
|
-
} = r;
|
|
596
|
-
S(Ve, (rt) => jt(this, i, rt));
|
|
597
|
-
const k = V(this, H(this, d));
|
|
598
|
-
J(this._pendingCalls, k), this._pendingCalls.add(s), r.changed && T.batchedUpdates(() => {
|
|
599
|
-
r.changed = !_, F == null || F(k, this), _ ? D(l.onRest, k) : r.onStart == null || r.onStart(k, this);
|
|
600
|
-
});
|
|
601
|
-
}
|
|
602
|
-
_ && this._set(A), m ? s(Kt(i.to, i, this._state, this)) : C ? this._start() : M(this) && !y ? this._pendingCalls.add(s) : s(Ht(A));
|
|
603
|
-
}
|
|
604
|
-
_focus(t) {
|
|
605
|
-
const i = this.animation;
|
|
606
|
-
t !== i.to && (wt(this) && this._detach(), i.to = t, wt(this) && this._attach());
|
|
607
|
-
}
|
|
608
|
-
_attach() {
|
|
609
|
-
let t = 0;
|
|
610
|
-
const {
|
|
611
|
-
to: i
|
|
612
|
-
} = this.animation;
|
|
613
|
-
U(i) && (ot(i, this), ft(i) && (t = i.priority + 1)), this.priority = t;
|
|
614
|
-
}
|
|
615
|
-
_detach() {
|
|
616
|
-
const {
|
|
617
|
-
to: t
|
|
618
|
-
} = this.animation;
|
|
619
|
-
U(t) && Dt(t, this);
|
|
620
|
-
}
|
|
621
|
-
_set(t, i = !0) {
|
|
622
|
-
const s = O(t);
|
|
623
|
-
if (!a.und(s)) {
|
|
624
|
-
const n = j(this);
|
|
625
|
-
if (!n || !E(s, n.getValue())) {
|
|
626
|
-
const o = ht(s);
|
|
627
|
-
!n || n.constructor != o ? zt(this, o.create(s)) : n.setValue(s), n && T.batchedUpdates(() => {
|
|
628
|
-
this._onChange(s, i);
|
|
629
|
-
});
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
return j(this);
|
|
633
|
-
}
|
|
634
|
-
_onStart() {
|
|
635
|
-
const t = this.animation;
|
|
636
|
-
t.changed || (t.changed = !0, K(this, "onStart", V(this, H(this, t.to)), this));
|
|
637
|
-
}
|
|
638
|
-
_onChange(t, i) {
|
|
639
|
-
i || (this._onStart(), D(this.animation.onChange, t, this)), D(this.defaultProps.onChange, t, this), super._onChange(t, i);
|
|
640
|
-
}
|
|
641
|
-
_start() {
|
|
642
|
-
const t = this.animation;
|
|
643
|
-
j(this).reset(O(t.to)), t.immediate || (t.fromValues = t.values.map((i) => i.lastPosition)), M(this) || (Ot(this, !0), G(this) || this._resume());
|
|
644
|
-
}
|
|
645
|
-
_resume() {
|
|
646
|
-
q.skipAnimation ? this.finish() : _t.start(this);
|
|
647
|
-
}
|
|
648
|
-
_stop(t, i) {
|
|
649
|
-
if (M(this)) {
|
|
650
|
-
Ot(this, !1);
|
|
651
|
-
const s = this.animation;
|
|
652
|
-
S(s.values, (o) => {
|
|
653
|
-
o.done = !0;
|
|
654
|
-
}), s.toValues && (s.onChange = s.onPause = s.onResume = void 0), st(this, {
|
|
655
|
-
type: "idle",
|
|
656
|
-
parent: this
|
|
657
|
-
});
|
|
658
|
-
const n = i ? z(this.get()) : V(this.get(), H(this, t != null ? t : s.to));
|
|
659
|
-
J(this._pendingCalls, n), s.changed && (s.changed = !1, K(this, "onRest", n, this));
|
|
660
|
-
}
|
|
661
|
-
}
|
|
662
|
-
}
|
|
663
|
-
function H(e, t) {
|
|
664
|
-
const i = Y(t), s = Y(e.get());
|
|
665
|
-
return E(s, i);
|
|
666
|
-
}
|
|
667
|
-
function Wt(e, t = e.loop, i = e.to) {
|
|
668
|
-
let s = D(t);
|
|
669
|
-
if (s) {
|
|
670
|
-
const n = s !== !0 && Lt(s), o = (n || e).reverse, c = !n || n.reset;
|
|
671
|
-
return Z(w({}, e, {
|
|
672
|
-
loop: t,
|
|
673
|
-
default: !1,
|
|
674
|
-
pause: void 0,
|
|
675
|
-
to: !o || dt(i) ? i : void 0,
|
|
676
|
-
from: c ? e.from : void 0,
|
|
677
|
-
reset: c
|
|
678
|
-
}, n));
|
|
679
|
-
}
|
|
680
|
-
}
|
|
681
|
-
function Z(e) {
|
|
682
|
-
const {
|
|
683
|
-
to: t,
|
|
684
|
-
from: i
|
|
685
|
-
} = e = Lt(e), s = /* @__PURE__ */ new Set();
|
|
686
|
-
return a.obj(t) && Et(t, s), a.obj(i) && Et(i, s), e.keys = s.size ? Array.from(s) : null, e;
|
|
687
|
-
}
|
|
688
|
-
function Re(e) {
|
|
689
|
-
const t = Z(e);
|
|
690
|
-
return a.und(t.default) && (t.default = vt(t)), t;
|
|
691
|
-
}
|
|
692
|
-
function Et(e, t) {
|
|
693
|
-
$(e, (i, s) => i != null && t.add(s));
|
|
694
|
-
}
|
|
695
|
-
const Ve = ["onStart", "onRest", "onChange", "onPause", "onResume"];
|
|
696
|
-
function jt(e, t, i) {
|
|
697
|
-
e.animation[i] = t[i] !== Bt(t, i) ? $t(t[i], e.key) : void 0;
|
|
698
|
-
}
|
|
699
|
-
function K(e, t, ...i) {
|
|
700
|
-
var s, n, o, c;
|
|
701
|
-
(s = (n = e.animation)[t]) == null || s.call(n, ...i), (o = (c = e.defaultProps)[t]) == null || o.call(c, ...i);
|
|
702
|
-
}
|
|
703
|
-
const Te = ["onStart", "onChange", "onRest"];
|
|
704
|
-
let Fe = 1;
|
|
705
|
-
class Oe {
|
|
706
|
-
constructor(t, i) {
|
|
707
|
-
this.id = Fe++, this.springs = {}, this.queue = [], this.ref = void 0, this._flush = void 0, this._initialProps = void 0, this._lastAsyncId = 0, this._active = /* @__PURE__ */ new Set(), this._changed = /* @__PURE__ */ new Set(), this._started = !1, this._item = void 0, this._state = {
|
|
708
|
-
paused: !1,
|
|
709
|
-
pauseQueue: /* @__PURE__ */ new Set(),
|
|
710
|
-
resumeQueue: /* @__PURE__ */ new Set(),
|
|
711
|
-
timeouts: /* @__PURE__ */ new Set()
|
|
712
|
-
}, this._events = {
|
|
713
|
-
onStart: /* @__PURE__ */ new Map(),
|
|
714
|
-
onChange: /* @__PURE__ */ new Map(),
|
|
715
|
-
onRest: /* @__PURE__ */ new Map()
|
|
716
|
-
}, this._onFrame = this._onFrame.bind(this), i && (this._flush = i), t && this.start(w({
|
|
717
|
-
default: !0
|
|
718
|
-
}, t));
|
|
719
|
-
}
|
|
720
|
-
get idle() {
|
|
721
|
-
return !this._state.asyncTo && Object.values(this.springs).every((t) => t.idle && !t.isDelayed && !t.isPaused);
|
|
722
|
-
}
|
|
723
|
-
get item() {
|
|
724
|
-
return this._item;
|
|
725
|
-
}
|
|
726
|
-
set item(t) {
|
|
727
|
-
this._item = t;
|
|
728
|
-
}
|
|
729
|
-
get() {
|
|
730
|
-
const t = {};
|
|
731
|
-
return this.each((i, s) => t[s] = i.get()), t;
|
|
732
|
-
}
|
|
733
|
-
set(t) {
|
|
734
|
-
for (const i in t) {
|
|
735
|
-
const s = t[i];
|
|
736
|
-
a.und(s) || this.springs[i].set(s);
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
update(t) {
|
|
740
|
-
return t && this.queue.push(Z(t)), this;
|
|
741
|
-
}
|
|
742
|
-
start(t) {
|
|
743
|
-
let {
|
|
744
|
-
queue: i
|
|
745
|
-
} = this;
|
|
746
|
-
return t ? i = R(t).map(Z) : this.queue = [], this._flush ? this._flush(this, i) : (ee(this, i), gt(this, i));
|
|
747
|
-
}
|
|
748
|
-
stop(t, i) {
|
|
749
|
-
if (t !== !!t && (i = t), i) {
|
|
750
|
-
const s = this.springs;
|
|
751
|
-
S(R(i), (n) => s[n].stop(!!t));
|
|
752
|
-
} else
|
|
753
|
-
X(this._state, this._lastAsyncId), this.each((s) => s.stop(!!t));
|
|
754
|
-
return this;
|
|
755
|
-
}
|
|
756
|
-
pause(t) {
|
|
757
|
-
if (a.und(t))
|
|
758
|
-
this.start({
|
|
759
|
-
pause: !0
|
|
760
|
-
});
|
|
761
|
-
else {
|
|
762
|
-
const i = this.springs;
|
|
763
|
-
S(R(t), (s) => i[s].pause());
|
|
764
|
-
}
|
|
765
|
-
return this;
|
|
766
|
-
}
|
|
767
|
-
resume(t) {
|
|
768
|
-
if (a.und(t))
|
|
769
|
-
this.start({
|
|
770
|
-
pause: !1
|
|
771
|
-
});
|
|
772
|
-
else {
|
|
773
|
-
const i = this.springs;
|
|
774
|
-
S(R(t), (s) => i[s].resume());
|
|
775
|
-
}
|
|
776
|
-
return this;
|
|
777
|
-
}
|
|
778
|
-
each(t) {
|
|
779
|
-
$(this.springs, t);
|
|
780
|
-
}
|
|
781
|
-
_onFrame() {
|
|
782
|
-
const {
|
|
783
|
-
onStart: t,
|
|
784
|
-
onChange: i,
|
|
785
|
-
onRest: s
|
|
786
|
-
} = this._events, n = this._active.size > 0, o = this._changed.size > 0;
|
|
787
|
-
(n && !this._started || o && !this._started) && (this._started = !0, it(t, ([r, d]) => {
|
|
788
|
-
d.value = this.get(), r(d, this, this._item);
|
|
789
|
-
}));
|
|
790
|
-
const c = !n && this._started, l = o || c && s.size ? this.get() : null;
|
|
791
|
-
o && i.size && it(i, ([r, d]) => {
|
|
792
|
-
d.value = l, r(d, this, this._item);
|
|
793
|
-
}), c && (this._started = !1, it(s, ([r, d]) => {
|
|
794
|
-
d.value = l, r(d, this, this._item);
|
|
795
|
-
}));
|
|
796
|
-
}
|
|
797
|
-
eventObserved(t) {
|
|
798
|
-
if (t.type == "change")
|
|
799
|
-
this._changed.add(t.parent), t.idle || this._active.add(t.parent);
|
|
800
|
-
else if (t.type == "idle")
|
|
801
|
-
this._active.delete(t.parent);
|
|
802
|
-
else
|
|
803
|
-
return;
|
|
804
|
-
T.onFrame(this._onFrame);
|
|
805
|
-
}
|
|
806
|
-
}
|
|
807
|
-
function gt(e, t) {
|
|
808
|
-
return Promise.all(t.map((i) => Yt(e, i))).then((i) => Pt(e, i));
|
|
809
|
-
}
|
|
810
|
-
function Yt(e, t, i) {
|
|
811
|
-
return L(this, null, function* () {
|
|
812
|
-
const {
|
|
813
|
-
keys: s,
|
|
814
|
-
to: n,
|
|
815
|
-
from: o,
|
|
816
|
-
loop: c,
|
|
817
|
-
onRest: l,
|
|
818
|
-
onResolve: r
|
|
819
|
-
} = t, d = a.obj(t.default) && t.default;
|
|
820
|
-
c && (t.loop = !1), n === !1 && (t.to = null), o === !1 && (t.from = null);
|
|
821
|
-
const u = a.arr(n) || a.fun(n) ? n : void 0;
|
|
822
|
-
u ? (t.to = void 0, t.onRest = void 0, d && (d.onRest = void 0)) : S(Te, (m) => {
|
|
823
|
-
const h = t[m];
|
|
824
|
-
if (a.fun(h)) {
|
|
825
|
-
const p = e._events[m];
|
|
826
|
-
t[m] = ({
|
|
827
|
-
finished: g,
|
|
828
|
-
cancelled: P
|
|
829
|
-
}) => {
|
|
830
|
-
const _ = p.get(h);
|
|
831
|
-
_ ? (g || (_.finished = !1), P && (_.cancelled = !0)) : p.set(h, {
|
|
832
|
-
value: null,
|
|
833
|
-
finished: g || !1,
|
|
834
|
-
cancelled: P || !1
|
|
835
|
-
});
|
|
836
|
-
}, d && (d[m] = t[m]);
|
|
837
|
-
}
|
|
838
|
-
});
|
|
839
|
-
const f = e._state;
|
|
840
|
-
t.pause === !f.paused ? (f.paused = t.pause, J(t.pause ? f.pauseQueue : f.resumeQueue)) : f.paused && (t.pause = !0);
|
|
841
|
-
const v = (s || Object.keys(e.springs)).map((m) => e.springs[m].start(t)), b = t.cancel === !0 || Bt(t, "cancel") === !0;
|
|
842
|
-
(u || b && f.asyncId) && v.push(Gt(++e._lastAsyncId, {
|
|
843
|
-
props: t,
|
|
844
|
-
state: f,
|
|
845
|
-
actions: {
|
|
846
|
-
pause: At,
|
|
847
|
-
resume: At,
|
|
848
|
-
start(m, h) {
|
|
849
|
-
b ? (X(f, e._lastAsyncId), h(z(e))) : (m.onRest = l, h(Kt(u, m, f, e)));
|
|
850
|
-
}
|
|
851
|
-
}
|
|
852
|
-
})), f.paused && (yield new Promise((m) => {
|
|
853
|
-
f.resumeQueue.add(m);
|
|
854
|
-
}));
|
|
855
|
-
const y = Pt(e, yield Promise.all(v));
|
|
856
|
-
if (c && y.finished && !(i && y.noop)) {
|
|
857
|
-
const m = Wt(t, c, n);
|
|
858
|
-
if (m)
|
|
859
|
-
return ee(e, [m]), Yt(e, m, !0);
|
|
860
|
-
}
|
|
861
|
-
return r && T.batchedUpdates(() => r(y, e, e.item)), y;
|
|
862
|
-
});
|
|
863
|
-
}
|
|
864
|
-
function qt(e, t) {
|
|
865
|
-
const i = w({}, e.springs);
|
|
866
|
-
return t && S(R(t), (s) => {
|
|
867
|
-
a.und(s.keys) && (s = Z(s)), a.obj(s.to) || (s = w({}, s, {
|
|
868
|
-
to: void 0
|
|
869
|
-
})), te(i, s, (n) => Zt(n));
|
|
870
|
-
}), Xt(e, i), i;
|
|
871
|
-
}
|
|
872
|
-
function Xt(e, t) {
|
|
873
|
-
$(t, (i, s) => {
|
|
874
|
-
e.springs[s] || (e.springs[s] = i, ot(i, e));
|
|
875
|
-
});
|
|
876
|
-
}
|
|
877
|
-
function Zt(e, t) {
|
|
878
|
-
const i = new Ce();
|
|
879
|
-
return i.key = e, t && ot(i, t), i;
|
|
880
|
-
}
|
|
881
|
-
function te(e, t, i) {
|
|
882
|
-
t.keys && S(t.keys, (s) => {
|
|
883
|
-
(e[s] || (e[s] = i(s)))._prepareNode(t);
|
|
884
|
-
});
|
|
885
|
-
}
|
|
886
|
-
function ee(e, t) {
|
|
887
|
-
S(t, (i) => {
|
|
888
|
-
te(e.springs, i, (s) => Zt(s, e));
|
|
889
|
-
});
|
|
890
|
-
}
|
|
891
|
-
function xe(e, t) {
|
|
892
|
-
if (e == null)
|
|
893
|
-
return {};
|
|
894
|
-
var i = {}, s = Object.keys(e), n, o;
|
|
895
|
-
for (o = 0; o < s.length; o++)
|
|
896
|
-
n = s[o], !(t.indexOf(n) >= 0) && (i[n] = e[n]);
|
|
897
|
-
return i;
|
|
898
|
-
}
|
|
899
|
-
const Ee = ["children"], at = (e) => {
|
|
900
|
-
let {
|
|
901
|
-
children: t
|
|
902
|
-
} = e, i = xe(e, Ee);
|
|
903
|
-
const s = kt(nt), n = i.pause || !!s.pause, o = i.immediate || !!s.immediate;
|
|
904
|
-
i = oe(() => ({
|
|
905
|
-
pause: n,
|
|
906
|
-
immediate: o
|
|
907
|
-
}), [n, o]);
|
|
908
|
-
const {
|
|
909
|
-
Provider: c
|
|
910
|
-
} = nt;
|
|
911
|
-
return Qt.createElement(c, {
|
|
912
|
-
value: i
|
|
913
|
-
}, t);
|
|
914
|
-
}, nt = je(at, {});
|
|
915
|
-
at.Provider = nt.Provider;
|
|
916
|
-
at.Consumer = nt.Consumer;
|
|
917
|
-
function je(e, t) {
|
|
918
|
-
return Object.assign(e, Qt.createContext(t)), e.Provider._context = e, e.Consumer._context = e, e;
|
|
919
|
-
}
|
|
920
|
-
const qe = () => {
|
|
921
|
-
const e = [], t = function(n) {
|
|
922
|
-
le();
|
|
923
|
-
const o = [];
|
|
924
|
-
return S(e, (c, l) => {
|
|
925
|
-
if (a.und(n))
|
|
926
|
-
o.push(c.start());
|
|
927
|
-
else {
|
|
928
|
-
const r = i(n, c, l);
|
|
929
|
-
r && o.push(c.start(r));
|
|
930
|
-
}
|
|
931
|
-
}), o;
|
|
932
|
-
};
|
|
933
|
-
t.current = e, t.add = function(s) {
|
|
934
|
-
e.includes(s) || e.push(s);
|
|
935
|
-
}, t.delete = function(s) {
|
|
936
|
-
const n = e.indexOf(s);
|
|
937
|
-
~n && e.splice(n, 1);
|
|
938
|
-
}, t.pause = function() {
|
|
939
|
-
return S(e, (s) => s.pause(...arguments)), this;
|
|
940
|
-
}, t.resume = function() {
|
|
941
|
-
return S(e, (s) => s.resume(...arguments)), this;
|
|
942
|
-
}, t.set = function(s) {
|
|
943
|
-
S(e, (n) => n.set(s));
|
|
944
|
-
}, t.start = function(s) {
|
|
945
|
-
const n = [];
|
|
946
|
-
return S(e, (o, c) => {
|
|
947
|
-
if (a.und(s))
|
|
948
|
-
n.push(o.start());
|
|
949
|
-
else {
|
|
950
|
-
const l = this._getProps(s, o, c);
|
|
951
|
-
l && n.push(o.start(l));
|
|
952
|
-
}
|
|
953
|
-
}), n;
|
|
954
|
-
}, t.stop = function() {
|
|
955
|
-
return S(e, (s) => s.stop(...arguments)), this;
|
|
956
|
-
}, t.update = function(s) {
|
|
957
|
-
return S(e, (n, o) => n.update(this._getProps(s, n, o))), this;
|
|
958
|
-
};
|
|
959
|
-
const i = function(n, o, c) {
|
|
960
|
-
return a.fun(n) ? n(c, o) : n;
|
|
961
|
-
};
|
|
962
|
-
return t._getProps = i, t;
|
|
963
|
-
};
|
|
964
|
-
function Me(e, t, i) {
|
|
965
|
-
const s = a.fun(t) && t;
|
|
966
|
-
s && !i && (i = []);
|
|
967
|
-
const n = et(() => s || arguments.length == 3 ? qe() : void 0, []), o = It(0), c = ce(), l = et(() => ({
|
|
968
|
-
ctrls: [],
|
|
969
|
-
queue: [],
|
|
970
|
-
flush(p, g) {
|
|
971
|
-
const P = qt(p, g);
|
|
972
|
-
return o.current > 0 && !l.queue.length && !Object.keys(P).some((A) => !p.springs[A]) ? gt(p, g) : new Promise((A) => {
|
|
973
|
-
Xt(p, P), l.queue.push(() => {
|
|
974
|
-
A(gt(p, g));
|
|
975
|
-
}), c();
|
|
976
|
-
});
|
|
977
|
-
}
|
|
978
|
-
}), []), r = It([...l.ctrls]), d = [], u = St(e) || 0;
|
|
979
|
-
et(() => {
|
|
980
|
-
S(r.current.slice(e, u), (p) => {
|
|
981
|
-
ve(p, n), p.stop(!0);
|
|
982
|
-
}), r.current.length = e, f(u, e);
|
|
983
|
-
}, [e]), et(() => {
|
|
984
|
-
f(0, Math.min(u, e));
|
|
985
|
-
}, i);
|
|
986
|
-
function f(p, g) {
|
|
987
|
-
for (let P = p; P < g; P++) {
|
|
988
|
-
const _ = r.current[P] || (r.current[P] = new Oe(null, l.flush)), A = s ? s(P, _) : t[P];
|
|
989
|
-
A && (d[P] = Re(A));
|
|
990
|
-
}
|
|
991
|
-
}
|
|
992
|
-
const v = r.current.map((p, g) => qt(p, d[g])), b = kt(at), y = St(b), m = b !== y && ye(b);
|
|
993
|
-
he(() => {
|
|
994
|
-
o.current++, l.ctrls = r.current;
|
|
995
|
-
const {
|
|
996
|
-
queue: p
|
|
997
|
-
} = l;
|
|
998
|
-
p.length && (l.queue = [], S(p, (g) => g())), S(r.current, (g, P) => {
|
|
999
|
-
n == null || n.add(g), m && g.start({
|
|
1000
|
-
default: b
|
|
1001
|
-
});
|
|
1002
|
-
const _ = d[P];
|
|
1003
|
-
_ && (Pe(g, _.ref), g.ref ? g.queue.push(_) : g.start(_));
|
|
1004
|
-
});
|
|
1005
|
-
}), de(() => () => {
|
|
1006
|
-
S(l.ctrls, (p) => p.stop(!0));
|
|
1007
|
-
});
|
|
1008
|
-
const h = v.map((p) => w({}, p));
|
|
1009
|
-
return n ? [h, n] : h;
|
|
1010
|
-
}
|
|
1011
|
-
function Be(e, t) {
|
|
1012
|
-
const i = a.fun(e), [[s], n] = Me(1, i ? e : [e], i ? t || [] : t);
|
|
1013
|
-
return i || arguments.length == 2 ? [s, n] : s;
|
|
1014
|
-
}
|
|
1015
|
-
let Mt;
|
|
1016
|
-
(function(e) {
|
|
1017
|
-
e.MOUNT = "mount", e.ENTER = "enter", e.UPDATE = "update", e.LEAVE = "leave";
|
|
1018
|
-
})(Mt || (Mt = {}));
|
|
1019
|
-
class Ue extends bt {
|
|
1020
|
-
constructor(t, i) {
|
|
1021
|
-
super(), this.key = void 0, this.idle = !0, this.calc = void 0, this._active = /* @__PURE__ */ new Set(), this.source = t, this.calc = ae(...i);
|
|
1022
|
-
const s = this._get(), n = ht(s);
|
|
1023
|
-
zt(this, n.create(s));
|
|
1024
|
-
}
|
|
1025
|
-
advance(t) {
|
|
1026
|
-
const i = this._get(), s = this.get();
|
|
1027
|
-
E(i, s) || (j(this).setValue(i), this._onChange(i, this.idle)), !this.idle && Ut(this._active) && ct(this);
|
|
1028
|
-
}
|
|
1029
|
-
_get() {
|
|
1030
|
-
const t = a.arr(this.source) ? this.source.map(O) : R(O(this.source));
|
|
1031
|
-
return this.calc(...t);
|
|
1032
|
-
}
|
|
1033
|
-
_start() {
|
|
1034
|
-
this.idle && !Ut(this._active) && (this.idle = !1, S(yt(this), (t) => {
|
|
1035
|
-
t.done = !1;
|
|
1036
|
-
}), q.skipAnimation ? (T.batchedUpdates(() => this.advance()), ct(this)) : _t.start(this));
|
|
1037
|
-
}
|
|
1038
|
-
_attach() {
|
|
1039
|
-
let t = 1;
|
|
1040
|
-
S(R(this.source), (i) => {
|
|
1041
|
-
U(i) && ot(i, this), ft(i) && (i.idle || this._active.add(i), t = Math.max(t, i.priority + 1));
|
|
1042
|
-
}), this.priority = t, this._start();
|
|
1043
|
-
}
|
|
1044
|
-
_detach() {
|
|
1045
|
-
S(R(this.source), (t) => {
|
|
1046
|
-
U(t) && Dt(t, this);
|
|
1047
|
-
}), this._active.clear(), ct(this);
|
|
1048
|
-
}
|
|
1049
|
-
eventObserved(t) {
|
|
1050
|
-
t.type == "change" ? t.idle ? this.advance() : (this._active.add(t.parent), this._start()) : t.type == "idle" ? this._active.delete(t.parent) : t.type == "priority" && (this.priority = R(this.source).reduce((i, s) => Math.max(i, (ft(s) ? s.priority : 0) + 1), 0));
|
|
1051
|
-
}
|
|
1052
|
-
}
|
|
1053
|
-
function De(e) {
|
|
1054
|
-
return e.idle !== !1;
|
|
1055
|
-
}
|
|
1056
|
-
function Ut(e) {
|
|
1057
|
-
return !e.size || Array.from(e).every(De);
|
|
1058
|
-
}
|
|
1059
|
-
function ct(e) {
|
|
1060
|
-
e.idle || (e.idle = !0, S(yt(e), (t) => {
|
|
1061
|
-
t.done = !0;
|
|
1062
|
-
}), st(e, {
|
|
1063
|
-
type: "idle",
|
|
1064
|
-
parent: e
|
|
1065
|
-
}));
|
|
1066
|
-
}
|
|
1067
|
-
q.assign({
|
|
1068
|
-
createStringInterpolator: ne,
|
|
1069
|
-
to: (e, t) => new Ue(e, t)
|
|
1070
|
-
});
|
|
1071
|
-
export {
|
|
1072
|
-
Tt as BailSignal,
|
|
1073
|
-
Oe as Controller,
|
|
1074
|
-
bt as FrameValue,
|
|
1075
|
-
q as Globals,
|
|
1076
|
-
Ue as Interpolation,
|
|
1077
|
-
at as SpringContext,
|
|
1078
|
-
qe as SpringRef,
|
|
1079
|
-
Ce as SpringValue,
|
|
1080
|
-
be as config,
|
|
1081
|
-
ae as createInterpolator,
|
|
1082
|
-
se as easings,
|
|
1083
|
-
Lt as inferTo,
|
|
1084
|
-
he as useIsomorphicLayoutEffect,
|
|
1085
|
-
Be as useSpring,
|
|
1086
|
-
Me as useSprings
|
|
1087
|
-
};
|