palettecn 0.1.0
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/index.mjs +10 -0
- package/dist/web/nitro.json +17 -0
- package/dist/web/public/assets/abap-BdvmRIgS.js +1 -0
- package/dist/web/public/assets/actionscript-3-et0rQaqm.js +1 -0
- package/dist/web/public/assets/ada-DPgrustg.js +1 -0
- package/dist/web/public/assets/andromeeda-DJl1yeV_.js +1 -0
- package/dist/web/public/assets/angular-html-Dm7s7tSx.js +1 -0
- package/dist/web/public/assets/angular-ts-B_ywTULt.js +1 -0
- package/dist/web/public/assets/apache-CFpsYX8S.js +1 -0
- package/dist/web/public/assets/apex-CN5n6pbI.js +1 -0
- package/dist/web/public/assets/apl-Dm11wHHc.js +1 -0
- package/dist/web/public/assets/applescript-JrY23hsL.js +1 -0
- package/dist/web/public/assets/ara-DR83hn3A.js +1 -0
- package/dist/web/public/assets/asciidoc-Dpu9XLB1.js +1 -0
- package/dist/web/public/assets/asm-BYI3A31V.js +1 -0
- package/dist/web/public/assets/astro-DP1naDCT.js +1 -0
- package/dist/web/public/assets/aurora-x-Nav5jnoQ.js +1 -0
- package/dist/web/public/assets/awk-BIoTx_w6.js +1 -0
- package/dist/web/public/assets/ayu-dark-H5QV5J7K.js +1 -0
- package/dist/web/public/assets/ayu-light-BrwTNGnU.js +1 -0
- package/dist/web/public/assets/ayu-mirage-Bg6FpF5w.js +1 -0
- package/dist/web/public/assets/ballerina-BFvDNd4T.js +1 -0
- package/dist/web/public/assets/bat-DtQkx7Ny.js +1 -0
- package/dist/web/public/assets/beancount-BIjKALa1.js +1 -0
- package/dist/web/public/assets/berry-BPkDN_EZ.js +1 -0
- package/dist/web/public/assets/bibtex-Dur2CNW6.js +1 -0
- package/dist/web/public/assets/bicep-BMz1bZ7m.js +1 -0
- package/dist/web/public/assets/bird2-91rdr9s7.js +1 -0
- package/dist/web/public/assets/blade-DD5O596X.js +1 -0
- package/dist/web/public/assets/bsl-FmB7U2qd.js +1 -0
- package/dist/web/public/assets/bundle-mjs-Bso3xn9x.js +1 -0
- package/dist/web/public/assets/c-DqqBLLyl.js +1 -0
- package/dist/web/public/assets/c3-CJTbEooS.js +1 -0
- package/dist/web/public/assets/cadence-C0GI7BZZ.js +1 -0
- package/dist/web/public/assets/cairo-B5JMmIC0.js +1 -0
- package/dist/web/public/assets/catppuccin-frappe-D76-cUjK.js +1 -0
- package/dist/web/public/assets/catppuccin-latte-DUHNJ_6_.js +1 -0
- package/dist/web/public/assets/catppuccin-macchiato-CFhPH2wd.js +1 -0
- package/dist/web/public/assets/catppuccin-mocha-BRD0cvUW.js +1 -0
- package/dist/web/public/assets/chunk-FRKYWMV7-DUkk3w4h.js +122 -0
- package/dist/web/public/assets/clarity-KgUVrNfC.js +1 -0
- package/dist/web/public/assets/clojure-BhQuoGIG.js +1 -0
- package/dist/web/public/assets/cmake-CA59gUFQ.js +1 -0
- package/dist/web/public/assets/cobol-CCFShgGZ.js +1 -0
- package/dist/web/public/assets/codeowners-CD36YqjJ.js +1 -0
- package/dist/web/public/assets/codeql-CrMosKUt.js +1 -0
- package/dist/web/public/assets/coffee-C-Mn3tBT.js +1 -0
- package/dist/web/public/assets/common-lisp-DYnOjAFz.js +1 -0
- package/dist/web/public/assets/components-DiZ1dSl3.js +77 -0
- package/dist/web/public/assets/coq-BaHtq3Qt.js +1 -0
- package/dist/web/public/assets/cpp-D8Y73ItU.js +1 -0
- package/dist/web/public/assets/crystal-CnXWqbxx.js +1 -0
- package/dist/web/public/assets/csharp-D6sghVPa.js +1 -0
- package/dist/web/public/assets/css-CUGjdPw_.js +1 -0
- package/dist/web/public/assets/csv-DuxyxUAI.js +1 -0
- package/dist/web/public/assets/cue-D9NRAX0_.js +1 -0
- package/dist/web/public/assets/cypher-HJRdtilF.js +1 -0
- package/dist/web/public/assets/d-B4Ont7_X.js +1 -0
- package/dist/web/public/assets/dark-plus-DZSBycyp.js +1 -0
- package/dist/web/public/assets/dart-Dp4asavE.js +1 -0
- package/dist/web/public/assets/dax-DBUubp6S.js +1 -0
- package/dist/web/public/assets/desktop-DQ0n6zIQ.js +1 -0
- package/dist/web/public/assets/diff-CFHlrffC.js +1 -0
- package/dist/web/public/assets/docker-BuefmsF5.js +1 -0
- package/dist/web/public/assets/dotenv-BKTsUQ_r.js +1 -0
- package/dist/web/public/assets/dracula-MOn9qacs.js +1 -0
- package/dist/web/public/assets/dracula-soft-C4r_sC_D.js +1 -0
- package/dist/web/public/assets/dream-maker-BNdv5lLS.js +1 -0
- package/dist/web/public/assets/edge-C-Mi8Oda.js +1 -0
- package/dist/web/public/assets/elixir-CTS5wQtX.js +1 -0
- package/dist/web/public/assets/elm-rM310x8D.js +1 -0
- package/dist/web/public/assets/emacs-lisp-D9FIGRtM.js +1 -0
- package/dist/web/public/assets/erb-oaGjGVGO.js +1 -0
- package/dist/web/public/assets/erlang-q4Mkyw3m.js +1 -0
- package/dist/web/public/assets/everforest-dark-CNa2QFRn.js +1 -0
- package/dist/web/public/assets/everforest-light-DRbUDqJT.js +1 -0
- package/dist/web/public/assets/fennel-DpqQTaVZ.js +1 -0
- package/dist/web/public/assets/field-1-Ujza0S5j.js +1 -0
- package/dist/web/public/assets/fish-hyk5x6Q4.js +1 -0
- package/dist/web/public/assets/fluent-DMll-MGX.js +1 -0
- package/dist/web/public/assets/fortran-fixed-form-BmdfKovV.js +1 -0
- package/dist/web/public/assets/fortran-free-form-MCAifii4.js +1 -0
- package/dist/web/public/assets/fsharp-DLlBn9Nl.js +1 -0
- package/dist/web/public/assets/gdresource-BzFzBRli.js +1 -0
- package/dist/web/public/assets/gdscript-D3R4J0Cv.js +1 -0
- package/dist/web/public/assets/gdshader-BAubtqqN.js +1 -0
- package/dist/web/public/assets/genie-BnIIX2pC.js +1 -0
- package/dist/web/public/assets/gherkin-CL3NUuB1.js +1 -0
- package/dist/web/public/assets/git-commit-BYPE8h85.js +1 -0
- package/dist/web/public/assets/git-rebase-Bmmgf6eN.js +1 -0
- package/dist/web/public/assets/github-dark-default-C6I2oE4c.js +1 -0
- package/dist/web/public/assets/github-dark-dimmed-DEqwxg6D.js +1 -0
- package/dist/web/public/assets/github-dark-high-contrast-DDt3j0cs.js +1 -0
- package/dist/web/public/assets/github-dark-oLN6SDKl.js +1 -0
- package/dist/web/public/assets/github-light-DaN-N2Gj.js +1 -0
- package/dist/web/public/assets/github-light-default-B3EwMbS7.js +1 -0
- package/dist/web/public/assets/github-light-high-contrast-Cl9D0f_e.js +1 -0
- package/dist/web/public/assets/gleam-Cvj8QRtQ.js +1 -0
- package/dist/web/public/assets/glimmer-js-CahbROb1.js +1 -0
- package/dist/web/public/assets/glimmer-ts-JMFYNbot.js +1 -0
- package/dist/web/public/assets/global-XWAvxWcA.css +2 -0
- package/dist/web/public/assets/glsl-BCuCNM3V.js +1 -0
- package/dist/web/public/assets/gn-DxCHSEMl.js +1 -0
- package/dist/web/public/assets/gnuplot-CkGXHK7B.js +1 -0
- package/dist/web/public/assets/go-B_NLCuTj.js +1 -0
- package/dist/web/public/assets/graphql-RXOfHGfI.js +1 -0
- package/dist/web/public/assets/groovy-DVge8oRs.js +1 -0
- package/dist/web/public/assets/gruvbox-dark-hard-BwZz1yni.js +1 -0
- package/dist/web/public/assets/gruvbox-dark-medium-Bqy6jkuO.js +1 -0
- package/dist/web/public/assets/gruvbox-dark-soft-DjUvyUfH.js +1 -0
- package/dist/web/public/assets/gruvbox-light-hard-BTLmfPdm.js +1 -0
- package/dist/web/public/assets/gruvbox-light-medium-DeWqsWs6.js +1 -0
- package/dist/web/public/assets/gruvbox-light-soft-BL8ld-1F.js +1 -0
- package/dist/web/public/assets/hack-BBQpwyf_.js +1 -0
- package/dist/web/public/assets/haml-mWELc9kh.js +1 -0
- package/dist/web/public/assets/handlebars-COrUo8cC.js +1 -0
- package/dist/web/public/assets/haskell-DRmM8XlQ.js +1 -0
- package/dist/web/public/assets/haxe-BEhq8ZEr.js +1 -0
- package/dist/web/public/assets/hcl-B5ZIaGS0.js +1 -0
- package/dist/web/public/assets/highlighted-body-TPN3WLV5-YJgGFx4e.js +1 -0
- package/dist/web/public/assets/hjson-B9uRLqIO.js +1 -0
- package/dist/web/public/assets/hlsl-Hv1kKjrS.js +1 -0
- package/dist/web/public/assets/horizon-ClXGBjWw.js +1 -0
- package/dist/web/public/assets/horizon-bright-CvUCr3ux.js +1 -0
- package/dist/web/public/assets/houston-NqkqG60q.js +1 -0
- package/dist/web/public/assets/html-cmigv1ou.js +1 -0
- package/dist/web/public/assets/html-derivative-B3me0pSu.js +1 -0
- package/dist/web/public/assets/http-BojM9cyU.js +1 -0
- package/dist/web/public/assets/hurl-BxEmMiGP.js +1 -0
- package/dist/web/public/assets/hxml-CoBuVbfs.js +1 -0
- package/dist/web/public/assets/hy-CeISYGGU.js +1 -0
- package/dist/web/public/assets/imba-xjcDFXUW.js +1 -0
- package/dist/web/public/assets/ini-D0ZCSj6e.js +1 -0
- package/dist/web/public/assets/inter-cyrillic-ext-wght-normal-BOeWTOD4.woff2 +0 -0
- package/dist/web/public/assets/inter-cyrillic-wght-normal-DqGufNeO.woff2 +0 -0
- package/dist/web/public/assets/inter-greek-ext-wght-normal-DlzME5K_.woff2 +0 -0
- package/dist/web/public/assets/inter-greek-wght-normal-CkhJZR-_.woff2 +0 -0
- package/dist/web/public/assets/inter-latin-ext-wght-normal-DO1Apj_S.woff2 +0 -0
- package/dist/web/public/assets/inter-latin-wght-normal-Dx4kXJAl.woff2 +0 -0
- package/dist/web/public/assets/inter-vietnamese-wght-normal-CBcvBZtf.woff2 +0 -0
- package/dist/web/public/assets/java-BvheClGI.js +1 -0
- package/dist/web/public/assets/javascript-DjlJORDg.js +1 -0
- package/dist/web/public/assets/jinja-Bi4sG72X.js +1 -0
- package/dist/web/public/assets/jison-BTz5Ik2Y.js +1 -0
- package/dist/web/public/assets/json-CiTd40Rg.js +1 -0
- package/dist/web/public/assets/json5-FR9EyF7a.js +1 -0
- package/dist/web/public/assets/jsonc-CHIeFfsD.js +1 -0
- package/dist/web/public/assets/jsonl-B4WQkwTf.js +1 -0
- package/dist/web/public/assets/jsonnet-vd-gzGkL.js +1 -0
- package/dist/web/public/assets/jssm-C_bj1LkZ.js +1 -0
- package/dist/web/public/assets/jsx-Bx-RZMFH.js +1 -0
- package/dist/web/public/assets/jsx-runtime-n8k0hwt8.js +1 -0
- package/dist/web/public/assets/julia-BKcIfSxk.js +1 -0
- package/dist/web/public/assets/just-IkZCagAs.js +1 -0
- package/dist/web/public/assets/kanagawa-dragon-B3Cz89vt.js +1 -0
- package/dist/web/public/assets/kanagawa-lotus-CRe_W5Ft.js +1 -0
- package/dist/web/public/assets/kanagawa-wave-BPqZ5XB7.js +1 -0
- package/dist/web/public/assets/kdl-BzL_Ak31.js +1 -0
- package/dist/web/public/assets/kotlin-BQQFk6ql.js +1 -0
- package/dist/web/public/assets/kusto-vWe6OLKV.js +1 -0
- package/dist/web/public/assets/laserwave-CwtvEUcj.js +1 -0
- package/dist/web/public/assets/latex-9N90_WFU.js +1 -0
- package/dist/web/public/assets/lean-CaqenOqv.js +1 -0
- package/dist/web/public/assets/less-CERnPzn6.js +1 -0
- package/dist/web/public/assets/light-plus-B9_M_OKq.js +1 -0
- package/dist/web/public/assets/liquid-CQLPDP7m.js +1 -0
- package/dist/web/public/assets/llvm-BylJXvm7.js +1 -0
- package/dist/web/public/assets/log-CBBcNcbO.js +1 -0
- package/dist/web/public/assets/logo-r-8Jc8Xk.js +1 -0
- package/dist/web/public/assets/lua-BBL6LXKd.js +1 -0
- package/dist/web/public/assets/luau-B2g7L-zP.js +1 -0
- package/dist/web/public/assets/main-0lKVDR64.css +2 -0
- package/dist/web/public/assets/main-CcNf0BOb.js +126 -0
- package/dist/web/public/assets/make-DK-HzJ2w.js +1 -0
- package/dist/web/public/assets/markdown-FgdsukgR.js +1 -0
- package/dist/web/public/assets/marko-CLZwt2N2.js +1 -0
- package/dist/web/public/assets/material-theme-DOJ9PS4O.js +1 -0
- package/dist/web/public/assets/material-theme-darker-DOurH5jT.js +1 -0
- package/dist/web/public/assets/material-theme-lighter-BfPWxCP6.js +1 -0
- package/dist/web/public/assets/material-theme-ocean-BcO5PKoq.js +1 -0
- package/dist/web/public/assets/material-theme-palenight-ClWQBDDd.js +1 -0
- package/dist/web/public/assets/matlab-DwyUVNXd.js +1 -0
- package/dist/web/public/assets/mdc-Bo8CRPg4.js +1 -0
- package/dist/web/public/assets/mdx-3EBShbsD.js +1 -0
- package/dist/web/public/assets/mermaid-ByG2-SLz.js +1 -0
- package/dist/web/public/assets/mermaid-O7DHMXV3-COAgR3aM.js +1 -0
- package/dist/web/public/assets/min-dark-ClJ2x5pc.js +1 -0
- package/dist/web/public/assets/min-light-BsOUz5iE.js +1 -0
- package/dist/web/public/assets/mipsasm-BKDtQCf3.js +1 -0
- package/dist/web/public/assets/mojo-DmEAK7iv.js +1 -0
- package/dist/web/public/assets/monokai-BKc3VADO.js +1 -0
- package/dist/web/public/assets/moonbit-Qm8v_cKN.js +1 -0
- package/dist/web/public/assets/move-CMectUPk.js +1 -0
- package/dist/web/public/assets/narrat-Bdm8NaK8.js +1 -0
- package/dist/web/public/assets/nextflow-BpSt05nC.js +1 -0
- package/dist/web/public/assets/nextflow-groovy-BZ-bqJ-u.js +1 -0
- package/dist/web/public/assets/nginx-ChZL5FWE.js +1 -0
- package/dist/web/public/assets/night-owl-CbFc5pXO.js +1 -0
- package/dist/web/public/assets/night-owl-light-zYbVCVuz.js +1 -0
- package/dist/web/public/assets/nim-5JnPAJWa.js +1 -0
- package/dist/web/public/assets/nix-P5P-2qHs.js +1 -0
- package/dist/web/public/assets/nord-C7hKGudV.js +1 -0
- package/dist/web/public/assets/nushell-DKPnC5RG.js +1 -0
- package/dist/web/public/assets/objective-c-BPwXtM0v.js +1 -0
- package/dist/web/public/assets/objective-cpp-CWYEdWNG.js +1 -0
- package/dist/web/public/assets/ocaml-CL7OJ02v.js +1 -0
- package/dist/web/public/assets/odin-Dtay25eA.js +1 -0
- package/dist/web/public/assets/one-dark-pro-CrdFNNwF.js +1 -0
- package/dist/web/public/assets/one-light-BUiz8X4B.js +1 -0
- package/dist/web/public/assets/openscad-WD4sXUUp.js +1 -0
- package/dist/web/public/assets/pascal-A6-MZnZ8.js +1 -0
- package/dist/web/public/assets/perl-Yq3AfnVV.js +1 -0
- package/dist/web/public/assets/php-CCj0foPx.js +1 -0
- package/dist/web/public/assets/pkl-cmPbg8fI.js +1 -0
- package/dist/web/public/assets/plastic-DtQ_LnDB.js +1 -0
- package/dist/web/public/assets/plsql-DwmuVd7q.js +1 -0
- package/dist/web/public/assets/po-CkVxkZaj.js +1 -0
- package/dist/web/public/assets/poimandres-Dt0xZuaa.js +1 -0
- package/dist/web/public/assets/polar-hStNz_W2.js +1 -0
- package/dist/web/public/assets/postcss-ZIk0AQ7M.js +1 -0
- package/dist/web/public/assets/powerquery-D0gqoHHD.js +1 -0
- package/dist/web/public/assets/powershell-DXB5HoVh.js +1 -0
- package/dist/web/public/assets/prisma-DmTrfxC0.js +1 -0
- package/dist/web/public/assets/prolog-CdoyriEj.js +1 -0
- package/dist/web/public/assets/proto-4MrN11dS.js +1 -0
- package/dist/web/public/assets/pug-svYJKDOQ.js +1 -0
- package/dist/web/public/assets/puppet-MEaLGpAP.js +1 -0
- package/dist/web/public/assets/purescript-CPxCorqB.js +1 -0
- package/dist/web/public/assets/python-f4fp5z0z.js +1 -0
- package/dist/web/public/assets/qml-BzEtWdqI.js +1 -0
- package/dist/web/public/assets/qmldir-DCjSceJ_.js +1 -0
- package/dist/web/public/assets/qss-BdM02NUc.js +1 -0
- package/dist/web/public/assets/r-luosIeJH.js +1 -0
- package/dist/web/public/assets/racket-D2tfa8Zc.js +1 -0
- package/dist/web/public/assets/raku-KeGPJVZg.js +1 -0
- package/dist/web/public/assets/razor-Bokxs4Qx.js +1 -0
- package/dist/web/public/assets/red-C0qZ-1lN.js +1 -0
- package/dist/web/public/assets/reg-DdnswvOj.js +1 -0
- package/dist/web/public/assets/regexp-CYC8h6V9.js +1 -0
- package/dist/web/public/assets/rel-RhzEfSRc.js +1 -0
- package/dist/web/public/assets/riscv-dS5TzX10.js +1 -0
- package/dist/web/public/assets/ron-CQjQSCVp.js +1 -0
- package/dist/web/public/assets/rose-pine-C89ViLdr.js +1 -0
- package/dist/web/public/assets/rose-pine-dawn-Dq2gf0yi.js +1 -0
- package/dist/web/public/assets/rose-pine-moon-CBDvXVs_.js +1 -0
- package/dist/web/public/assets/rosmsg-nvjuSIGu.js +1 -0
- package/dist/web/public/assets/routes-BXqJCOpL.js +542 -0
- package/dist/web/public/assets/rst-1xwvVGf7.js +1 -0
- package/dist/web/public/assets/ruby-Blad-eDx.js +1 -0
- package/dist/web/public/assets/rust-rV8q_xyI.js +1 -0
- package/dist/web/public/assets/sas-DUPWtptg.js +1 -0
- package/dist/web/public/assets/sass-CuxdoNN0.js +1 -0
- package/dist/web/public/assets/scala-Df4L7N3R.js +1 -0
- package/dist/web/public/assets/scheme-DalRmAPH.js +1 -0
- package/dist/web/public/assets/scss-CYQ8LEwP.js +1 -0
- package/dist/web/public/assets/sdbl-B_TmFnGf.js +1 -0
- package/dist/web/public/assets/shaderlab-DYEMDY3e.js +1 -0
- package/dist/web/public/assets/shellscript-DjKZ34ac.js +1 -0
- package/dist/web/public/assets/shellsession-C3kcnBnh.js +1 -0
- package/dist/web/public/assets/slack-dark-ak_jOeLl.js +1 -0
- package/dist/web/public/assets/slack-ochin-ByiYhLwu.js +1 -0
- package/dist/web/public/assets/smalltalk-DTTnjjZJ.js +1 -0
- package/dist/web/public/assets/snazzy-light-BBRYeY60.js +1 -0
- package/dist/web/public/assets/solarized-dark-BtoLnWkw.js +1 -0
- package/dist/web/public/assets/solarized-light-CtzUA7GI.js +1 -0
- package/dist/web/public/assets/solidity-CSIHEQ2t.js +1 -0
- package/dist/web/public/assets/soy-BN0uzUAI.js +1 -0
- package/dist/web/public/assets/sparql-B6k9tA6Q.js +1 -0
- package/dist/web/public/assets/splunk-DkRzN7V_.js +1 -0
- package/dist/web/public/assets/sql-Bx-WX28V.js +1 -0
- package/dist/web/public/assets/ssh-config-Bqp7ng33.js +1 -0
- package/dist/web/public/assets/stata-HAj7doU8.js +1 -0
- package/dist/web/public/assets/stylus-CdbCxDLX.js +1 -0
- package/dist/web/public/assets/surrealql-BkGf0I3k.js +1 -0
- package/dist/web/public/assets/svelte-DtWg6ssL.js +1 -0
- package/dist/web/public/assets/swift-yRu2dtgr.js +1 -0
- package/dist/web/public/assets/synthwave-84-2WIu6MHX.js +1 -0
- package/dist/web/public/assets/system-verilog-GUE_oP1V.js +1 -0
- package/dist/web/public/assets/systemd-FLIJAQZV.js +1 -0
- package/dist/web/public/assets/talonscript-DTR-8ILs.js +1 -0
- package/dist/web/public/assets/tasl-WHNWP-1F.js +1 -0
- package/dist/web/public/assets/tcl-BaBXNNp6.js +1 -0
- package/dist/web/public/assets/templ-Dc9vj00n.js +1 -0
- package/dist/web/public/assets/terraform-uJUFpr8t.js +1 -0
- package/dist/web/public/assets/tex-DA3dAz55.js +1 -0
- package/dist/web/public/assets/tokyo-night-BbogFqAr.js +1 -0
- package/dist/web/public/assets/toml-CyR4Gqq1.js +1 -0
- package/dist/web/public/assets/ts-tags-BD1j21LH.js +1 -0
- package/dist/web/public/assets/tsv-COLVYI6A.js +1 -0
- package/dist/web/public/assets/tsx-CFm2E6uK.js +1 -0
- package/dist/web/public/assets/turtle-PQwt4gkb.js +1 -0
- package/dist/web/public/assets/twig-DrUXy85s.js +1 -0
- package/dist/web/public/assets/typescript-Dy-5sXFx.js +1 -0
- package/dist/web/public/assets/typespec-Bb7qHV0g.js +1 -0
- package/dist/web/public/assets/typst-Bj_JElGz.js +1 -0
- package/dist/web/public/assets/v-BTkrtik4.js +1 -0
- package/dist/web/public/assets/vala-AXT1CI9v.js +1 -0
- package/dist/web/public/assets/vb-DzTKUgW8.js +1 -0
- package/dist/web/public/assets/verilog-aI3j5Xj8.js +1 -0
- package/dist/web/public/assets/vesper-BmnwIC_B.js +1 -0
- package/dist/web/public/assets/vhdl-4IgBB7vO.js +1 -0
- package/dist/web/public/assets/viml-D_XMKSR6.js +1 -0
- package/dist/web/public/assets/vitesse-black-DhmxIXiA.js +1 -0
- package/dist/web/public/assets/vitesse-dark-dvEH_9qt.js +1 -0
- package/dist/web/public/assets/vitesse-light-Ca0W2L1O.js +1 -0
- package/dist/web/public/assets/vue-DC_yTvy2.js +1 -0
- package/dist/web/public/assets/vue-html-Bp8x4gdt.js +1 -0
- package/dist/web/public/assets/vue-vine-ZcUkuUUp.js +1 -0
- package/dist/web/public/assets/vyper-Dz2f7-FK.js +1 -0
- package/dist/web/public/assets/wasm-CuXPCj65.js +1 -0
- package/dist/web/public/assets/wasm-DHkXUMsP.js +1 -0
- package/dist/web/public/assets/wenyan-BRAtM0Iv.js +1 -0
- package/dist/web/public/assets/wgsl-CMpn9jTa.js +1 -0
- package/dist/web/public/assets/wikitext-DRmBVmVA.js +1 -0
- package/dist/web/public/assets/wit-Drp_HLqJ.js +1 -0
- package/dist/web/public/assets/wolfram-C33umj7M.js +1 -0
- package/dist/web/public/assets/xml-BHoOtGbO.js +1 -0
- package/dist/web/public/assets/xsl-CN1PlFqm.js +1 -0
- package/dist/web/public/assets/yaml-DT0mpn8u.js +1 -0
- package/dist/web/public/assets/zenscript-BlYQ_Frf.js +1 -0
- package/dist/web/public/assets/zig-Buk7I0y-.js +1 -0
- package/dist/web/server/_chunks/ssr-renderer.mjs +15 -0
- package/dist/web/server/_libs/@ai-sdk/anthropic+[...].mjs +14021 -0
- package/dist/web/server/_libs/@ai-sdk/moonshotai+[...].mjs +898 -0
- package/dist/web/server/_libs/@ai-sdk/react+[...].mjs +8969 -0
- package/dist/web/server/_libs/@emotion/is-prop-valid+[...].mjs +34 -0
- package/dist/web/server/_libs/@floating-ui/core+[...].mjs +698 -0
- package/dist/web/server/_libs/@floating-ui/dom+[...].mjs +644 -0
- package/dist/web/server/_libs/@floating-ui/react-dom+[...].mjs +475 -0
- package/dist/web/server/_libs/@lobehub/icons+[...].mjs +3079 -0
- package/dist/web/server/_libs/@radix-ui/react-arrow+[...].mjs +184 -0
- package/dist/web/server/_libs/@radix-ui/react-collapsible+[...].mjs +374 -0
- package/dist/web/server/_libs/@radix-ui/react-dialog+[...].mjs +1503 -0
- package/dist/web/server/_libs/@radix-ui/react-menu+[...].mjs +1236 -0
- package/dist/web/server/_libs/@radix-ui/react-select+[...].mjs +1007 -0
- package/dist/web/server/_libs/@shikijs/core+[...].mjs +9017 -0
- package/dist/web/server/_libs/@shikijs/engine-javascript+[...].mjs +3159 -0
- package/dist/web/server/_libs/@streamdown/math+[...].mjs +37559 -0
- package/dist/web/server/_libs/@tanstack/react-router+[...].mjs +14074 -0
- package/dist/web/server/_libs/_.mjs +3 -0
- package/dist/web/server/_libs/_2.mjs +3 -0
- package/dist/web/server/_libs/_3.mjs +2 -0
- package/dist/web/server/_libs/_4.mjs +2 -0
- package/dist/web/server/_libs/ai-sdk__gateway+vercel__oidc.mjs +1255 -0
- package/dist/web/server/_libs/ai-sdk__google.mjs +1630 -0
- package/dist/web/server/_libs/ai-sdk__openai+zod.mjs +4951 -0
- package/dist/web/server/_libs/ai-sdk__provider-utils.mjs +411 -0
- package/dist/web/server/_libs/ai-sdk__provider.mjs +222 -0
- package/dist/web/server/_libs/bail.mjs +13 -0
- package/dist/web/server/_libs/character-entities.mjs +2135 -0
- package/dist/web/server/_libs/class-variance-authority+clsx.mjs +69 -0
- package/dist/web/server/_libs/color+[...].mjs +2185 -0
- package/dist/web/server/_libs/copy-text-to-clipboard.mjs +40 -0
- package/dist/web/server/_libs/d3-array.mjs +231 -0
- package/dist/web/server/_libs/d3-color.mjs +330 -0
- package/dist/web/server/_libs/d3-format.mjs +252 -0
- package/dist/web/server/_libs/d3-interpolate.mjs +207 -0
- package/dist/web/server/_libs/d3-path.mjs +77 -0
- package/dist/web/server/_libs/d3-scale+[...].mjs +1907 -0
- package/dist/web/server/_libs/d3-shape.mjs +818 -0
- package/dist/web/server/_libs/date-fns.mjs +3012 -0
- package/dist/web/server/_libs/date-fns__tz.mjs +249 -0
- package/dist/web/server/_libs/decimal.js-light.mjs +884 -0
- package/dist/web/server/_libs/decode-named-character-reference+[...].mjs +19 -0
- package/dist/web/server/_libs/dexie.mjs +3745 -0
- package/dist/web/server/_libs/escape-string-regexp.mjs +7 -0
- package/dist/web/server/_libs/estree-util-is-identifier-name.mjs +20 -0
- package/dist/web/server/_libs/eventemitter3.mjs +237 -0
- package/dist/web/server/_libs/extend.mjs +75 -0
- package/dist/web/server/_libs/fast-equals.mjs +423 -0
- package/dist/web/server/_libs/framer-motion+[...].mjs +9573 -0
- package/dist/web/server/_libs/fuzzysort.mjs +621 -0
- package/dist/web/server/_libs/h3+rou3+srvx.mjs +1158 -0
- package/dist/web/server/_libs/hast-util-raw+[...].mjs +800 -0
- package/dist/web/server/_libs/hast-util-sanitize.mjs +780 -0
- package/dist/web/server/_libs/hast-util-to-jsx-runtime+[...].mjs +853 -0
- package/dist/web/server/_libs/hookable.mjs +41 -0
- package/dist/web/server/_libs/html-url-attributes.mjs +44 -0
- package/dist/web/server/_libs/is-plain-obj.mjs +8 -0
- package/dist/web/server/_libs/lodash.mjs +4532 -0
- package/dist/web/server/_libs/lucide-react.mjs +605 -0
- package/dist/web/server/_libs/markdown-table.mjs +289 -0
- package/dist/web/server/_libs/marked.mjs +1511 -0
- package/dist/web/server/_libs/mdast-util-find-and-replace.mjs +198 -0
- package/dist/web/server/_libs/mdast-util-from-markdown+[...].mjs +8121 -0
- package/dist/web/server/_libs/mdast-util-gfm+[...].mjs +2060 -0
- package/dist/web/server/_libs/mdast-util-to-hast+[...].mjs +1770 -0
- package/dist/web/server/_libs/micromark-extension-gfm+[...].mjs +2235 -0
- package/dist/web/server/_libs/nanoid.mjs +26 -0
- package/dist/web/server/_libs/next-themes.mjs +124 -0
- package/dist/web/server/_libs/prop-types.mjs +69 -0
- package/dist/web/server/_libs/radix-ui__number.mjs +6 -0
- package/dist/web/server/_libs/radix-ui__primitive.mjs +9 -0
- package/dist/web/server/_libs/radix-ui__react-collection.mjs +80 -0
- package/dist/web/server/_libs/radix-ui__react-direction.mjs +11 -0
- package/dist/web/server/_libs/radix-ui__react-label.mjs +23 -0
- package/dist/web/server/_libs/radix-ui__react-menubar.mjs +400 -0
- package/dist/web/server/_libs/radix-ui__react-popover.mjs +251 -0
- package/dist/web/server/_libs/radix-ui__react-progress.mjs +81 -0
- package/dist/web/server/_libs/radix-ui__react-scroll-area.mjs +669 -0
- package/dist/web/server/_libs/radix-ui__react-separator.mjs +32 -0
- package/dist/web/server/_libs/radix-ui__react-slider.mjs +464 -0
- package/dist/web/server/_libs/radix-ui__react-switch.mjs +120 -0
- package/dist/web/server/_libs/radix-ui__react-tabs.mjs +145 -0
- package/dist/web/server/_libs/radix-ui__react-tooltip.mjs +494 -0
- package/dist/web/server/_libs/react-day-picker.mjs +3510 -0
- package/dist/web/server/_libs/react-is.mjs +48 -0
- package/dist/web/server/_libs/react-resizable-panels.mjs +1517 -0
- package/dist/web/server/_libs/react-smooth.mjs +1024 -0
- package/dist/web/server/_libs/recharts+[...].mjs +12998 -0
- package/dist/web/server/_libs/rehype-harden.mjs +210 -0
- package/dist/web/server/_libs/rehype-raw.mjs +37 -0
- package/dist/web/server/_libs/rehype-sanitize.mjs +27 -0
- package/dist/web/server/_libs/remark-gfm.mjs +34 -0
- package/dist/web/server/_libs/remark-parse.mjs +37 -0
- package/dist/web/server/_libs/remark-rehype.mjs +169 -0
- package/dist/web/server/_libs/remend.mjs +544 -0
- package/dist/web/server/_libs/scule.mjs +55 -0
- package/dist/web/server/_libs/shiki+streamdown__code.mjs +1748 -0
- package/dist/web/server/_libs/shiki.mjs +16 -0
- package/dist/web/server/_libs/shikijs__engine-oniguruma.mjs +387 -0
- package/dist/web/server/_libs/shikijs__langs.mjs +1357 -0
- package/dist/web/server/_libs/shikijs__themes.mjs +268 -0
- package/dist/web/server/_libs/sonner.mjs +909 -0
- package/dist/web/server/_libs/streamdown+[...].mjs +5842 -0
- package/dist/web/server/_libs/tanstack__history.mjs +342 -0
- package/dist/web/server/_libs/tanstack__query-core.mjs +2073 -0
- package/dist/web/server/_libs/tanstack__react-query.mjs +146 -0
- package/dist/web/server/_libs/tanstack__router-core.mjs +6 -0
- package/dist/web/server/_libs/tanstack__zod-adapter.mjs +16 -0
- package/dist/web/server/_libs/ufo.mjs +64 -0
- package/dist/web/server/_libs/ungap__structured-clone.mjs +197 -0
- package/dist/web/server/_libs/use-stick-to-bottom.mjs +410 -0
- package/dist/web/server/_libs/vercel__oidc.mjs +393 -0
- package/dist/web/server/_libs/zhipu-ai-provider.mjs +13483 -0
- package/dist/web/server/_libs/zustand.mjs +48 -0
- package/dist/web/server/_runtime.mjs +35 -0
- package/dist/web/server/_ssr/components-BzCiScpA.mjs +1452 -0
- package/dist/web/server/_ssr/dist-3Mu7PF0n.mjs +137 -0
- package/dist/web/server/_ssr/dist-BRaLXgxZ.mjs +17 -0
- package/dist/web/server/_ssr/field-1-agM60DBf.mjs +167 -0
- package/dist/web/server/_ssr/get-providers-BoYkp0Of.mjs +40 -0
- package/dist/web/server/_ssr/initialize-provider-B6W8V5Eg.mjs +19 -0
- package/dist/web/server/_ssr/model-list-CDFjdz2P.mjs +60 -0
- package/dist/web/server/_ssr/router-BmmOCtJZ.mjs +168 -0
- package/dist/web/server/_ssr/routes-CvlpZK4Q.mjs +2630 -0
- package/dist/web/server/_ssr/schemas-DsZ5O3zp.mjs +67 -0
- package/dist/web/server/_ssr/send-message-DUT1vRvx.mjs +135 -0
- package/dist/web/server/_ssr/ssr.mjs +5253 -0
- package/dist/web/server/_ssr/start-rewezkfD.mjs +4 -0
- package/dist/web/server/_ssr/submit-key-CcCv6-yy.mjs +62 -0
- package/dist/web/server/_ssr/suggestions-B0Uc3p7F.mjs +38 -0
- package/dist/web/server/_ssr/use-providers-Bwqg2U3N.mjs +1554 -0
- package/dist/web/server/_tanstack-start-manifest_v-BMIvh4y6.mjs +60 -0
- package/dist/web/server/index.mjs +2531 -0
- package/dist/web/server/node_modules/tslib/modules/index.js +70 -0
- package/dist/web/server/node_modules/tslib/modules/package.json +3 -0
- package/dist/web/server/node_modules/tslib/package.json +47 -0
- package/dist/web/server/node_modules/tslib/tslib.js +484 -0
- package/package.json +32 -0
|
@@ -0,0 +1,1024 @@
|
|
|
1
|
+
import { i as __toESM } from "../_runtime.mjs";
|
|
2
|
+
import { u as require_react } from "./@ai-sdk/react+[...].mjs";
|
|
3
|
+
import { t as require_prop_types } from "./prop-types.mjs";
|
|
4
|
+
import { t as deepEqual } from "./fast-equals.mjs";
|
|
5
|
+
//#region ../../node_modules/.pnpm/react-smooth@4.0.4_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-smooth/es6/setRafTimeout.js
|
|
6
|
+
function safeRequestAnimationFrame(callback) {
|
|
7
|
+
if (typeof requestAnimationFrame !== "undefined") requestAnimationFrame(callback);
|
|
8
|
+
}
|
|
9
|
+
function setRafTimeout(callback) {
|
|
10
|
+
var timeout = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
11
|
+
var currTime = -1;
|
|
12
|
+
requestAnimationFrame(function shouldUpdate(now) {
|
|
13
|
+
if (currTime < 0) currTime = now;
|
|
14
|
+
if (now - currTime > timeout) {
|
|
15
|
+
callback(now);
|
|
16
|
+
currTime = -1;
|
|
17
|
+
} else safeRequestAnimationFrame(shouldUpdate);
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
//#region ../../node_modules/.pnpm/react-smooth@4.0.4_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-smooth/es6/AnimateManager.js
|
|
22
|
+
function _typeof$3(o) {
|
|
23
|
+
"@babel/helpers - typeof";
|
|
24
|
+
return _typeof$3 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
25
|
+
return typeof o;
|
|
26
|
+
} : function(o) {
|
|
27
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
28
|
+
}, _typeof$3(o);
|
|
29
|
+
}
|
|
30
|
+
function _toArray(arr) {
|
|
31
|
+
return _arrayWithHoles$2(arr) || _iterableToArray$3(arr) || _unsupportedIterableToArray$3(arr) || _nonIterableRest$2();
|
|
32
|
+
}
|
|
33
|
+
function _nonIterableRest$2() {
|
|
34
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
35
|
+
}
|
|
36
|
+
function _unsupportedIterableToArray$3(o, minLen) {
|
|
37
|
+
if (!o) return;
|
|
38
|
+
if (typeof o === "string") return _arrayLikeToArray$3(o, minLen);
|
|
39
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
40
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
41
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
42
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$3(o, minLen);
|
|
43
|
+
}
|
|
44
|
+
function _arrayLikeToArray$3(arr, len) {
|
|
45
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
46
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
47
|
+
return arr2;
|
|
48
|
+
}
|
|
49
|
+
function _iterableToArray$3(iter) {
|
|
50
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
51
|
+
}
|
|
52
|
+
function _arrayWithHoles$2(arr) {
|
|
53
|
+
if (Array.isArray(arr)) return arr;
|
|
54
|
+
}
|
|
55
|
+
function createAnimateManager() {
|
|
56
|
+
var currStyle = {};
|
|
57
|
+
var handleChange = function handleChange() {
|
|
58
|
+
return null;
|
|
59
|
+
};
|
|
60
|
+
var shouldStop = false;
|
|
61
|
+
var setStyle = function setStyle(_style) {
|
|
62
|
+
if (shouldStop) return;
|
|
63
|
+
if (Array.isArray(_style)) {
|
|
64
|
+
if (!_style.length) return;
|
|
65
|
+
var _styles = _toArray(_style), curr = _styles[0], restStyles = _styles.slice(1);
|
|
66
|
+
if (typeof curr === "number") {
|
|
67
|
+
setRafTimeout(setStyle.bind(null, restStyles), curr);
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
70
|
+
setStyle(curr);
|
|
71
|
+
setRafTimeout(setStyle.bind(null, restStyles));
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
if (_typeof$3(_style) === "object") {
|
|
75
|
+
currStyle = _style;
|
|
76
|
+
handleChange(currStyle);
|
|
77
|
+
}
|
|
78
|
+
if (typeof _style === "function") _style();
|
|
79
|
+
};
|
|
80
|
+
return {
|
|
81
|
+
stop: function stop() {
|
|
82
|
+
shouldStop = true;
|
|
83
|
+
},
|
|
84
|
+
start: function start(style) {
|
|
85
|
+
shouldStop = false;
|
|
86
|
+
setStyle(style);
|
|
87
|
+
},
|
|
88
|
+
subscribe: function subscribe(_handleChange) {
|
|
89
|
+
handleChange = _handleChange;
|
|
90
|
+
return function() {
|
|
91
|
+
handleChange = function handleChange() {
|
|
92
|
+
return null;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
}
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
//#endregion
|
|
99
|
+
//#region ../../node_modules/.pnpm/react-smooth@4.0.4_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-smooth/es6/util.js
|
|
100
|
+
function _typeof$2(o) {
|
|
101
|
+
"@babel/helpers - typeof";
|
|
102
|
+
return _typeof$2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
103
|
+
return typeof o;
|
|
104
|
+
} : function(o) {
|
|
105
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
106
|
+
}, _typeof$2(o);
|
|
107
|
+
}
|
|
108
|
+
function ownKeys$2(e, r) {
|
|
109
|
+
var t = Object.keys(e);
|
|
110
|
+
if (Object.getOwnPropertySymbols) {
|
|
111
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
112
|
+
r && (o = o.filter(function(r) {
|
|
113
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
114
|
+
})), t.push.apply(t, o);
|
|
115
|
+
}
|
|
116
|
+
return t;
|
|
117
|
+
}
|
|
118
|
+
function _objectSpread$2(e) {
|
|
119
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
120
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
121
|
+
r % 2 ? ownKeys$2(Object(t), !0).forEach(function(r) {
|
|
122
|
+
_defineProperty$2(e, r, t[r]);
|
|
123
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$2(Object(t)).forEach(function(r) {
|
|
124
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
125
|
+
});
|
|
126
|
+
}
|
|
127
|
+
return e;
|
|
128
|
+
}
|
|
129
|
+
function _defineProperty$2(obj, key, value) {
|
|
130
|
+
key = _toPropertyKey$2(key);
|
|
131
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
132
|
+
value,
|
|
133
|
+
enumerable: true,
|
|
134
|
+
configurable: true,
|
|
135
|
+
writable: true
|
|
136
|
+
});
|
|
137
|
+
else obj[key] = value;
|
|
138
|
+
return obj;
|
|
139
|
+
}
|
|
140
|
+
function _toPropertyKey$2(arg) {
|
|
141
|
+
var key = _toPrimitive$2(arg, "string");
|
|
142
|
+
return _typeof$2(key) === "symbol" ? key : String(key);
|
|
143
|
+
}
|
|
144
|
+
function _toPrimitive$2(input, hint) {
|
|
145
|
+
if (_typeof$2(input) !== "object" || input === null) return input;
|
|
146
|
+
var prim = input[Symbol.toPrimitive];
|
|
147
|
+
if (prim !== void 0) {
|
|
148
|
+
var res = prim.call(input, hint || "default");
|
|
149
|
+
if (_typeof$2(res) !== "object") return res;
|
|
150
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
151
|
+
}
|
|
152
|
+
return (hint === "string" ? String : Number)(input);
|
|
153
|
+
}
|
|
154
|
+
var getIntersectionKeys = function getIntersectionKeys(preObj, nextObj) {
|
|
155
|
+
return [Object.keys(preObj), Object.keys(nextObj)].reduce(function(a, b) {
|
|
156
|
+
return a.filter(function(c) {
|
|
157
|
+
return b.includes(c);
|
|
158
|
+
});
|
|
159
|
+
});
|
|
160
|
+
};
|
|
161
|
+
var identity = function identity(param) {
|
|
162
|
+
return param;
|
|
163
|
+
};
|
|
164
|
+
var getDashCase = function getDashCase(name) {
|
|
165
|
+
return name.replace(/([A-Z])/g, function(v) {
|
|
166
|
+
return "-".concat(v.toLowerCase());
|
|
167
|
+
});
|
|
168
|
+
};
|
|
169
|
+
var mapObject = function mapObject(fn, obj) {
|
|
170
|
+
return Object.keys(obj).reduce(function(res, key) {
|
|
171
|
+
return _objectSpread$2(_objectSpread$2({}, res), {}, _defineProperty$2({}, key, fn(key, obj[key])));
|
|
172
|
+
}, {});
|
|
173
|
+
};
|
|
174
|
+
var getTransitionVal = function getTransitionVal(props, duration, easing) {
|
|
175
|
+
return props.map(function(prop) {
|
|
176
|
+
return "".concat(getDashCase(prop), " ").concat(duration, "ms ").concat(easing);
|
|
177
|
+
}).join(",");
|
|
178
|
+
};
|
|
179
|
+
var isDev = false;
|
|
180
|
+
var warn = function warn(condition, format, a, b, c, d, e, f) {
|
|
181
|
+
if (isDev && typeof console !== "undefined" && console.warn) {
|
|
182
|
+
if (format === void 0) console.warn("LogUtils requires an error message argument");
|
|
183
|
+
if (!condition) if (format === void 0) console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");
|
|
184
|
+
else {
|
|
185
|
+
var args = [
|
|
186
|
+
a,
|
|
187
|
+
b,
|
|
188
|
+
c,
|
|
189
|
+
d,
|
|
190
|
+
e,
|
|
191
|
+
f
|
|
192
|
+
];
|
|
193
|
+
var argIndex = 0;
|
|
194
|
+
console.warn(format.replace(/%s/g, function() {
|
|
195
|
+
return args[argIndex++];
|
|
196
|
+
}));
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
};
|
|
200
|
+
//#endregion
|
|
201
|
+
//#region ../../node_modules/.pnpm/react-smooth@4.0.4_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-smooth/es6/easing.js
|
|
202
|
+
function _slicedToArray$1(arr, i) {
|
|
203
|
+
return _arrayWithHoles$1(arr) || _iterableToArrayLimit$1(arr, i) || _unsupportedIterableToArray$2(arr, i) || _nonIterableRest$1();
|
|
204
|
+
}
|
|
205
|
+
function _nonIterableRest$1() {
|
|
206
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
207
|
+
}
|
|
208
|
+
function _iterableToArrayLimit$1(r, l) {
|
|
209
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
210
|
+
if (null != t) {
|
|
211
|
+
var e, n, i, u, a = [], f = !0, o = !1;
|
|
212
|
+
try {
|
|
213
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
214
|
+
if (Object(t) !== t) return;
|
|
215
|
+
f = !1;
|
|
216
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
217
|
+
} catch (r) {
|
|
218
|
+
o = !0, n = r;
|
|
219
|
+
} finally {
|
|
220
|
+
try {
|
|
221
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
222
|
+
} finally {
|
|
223
|
+
if (o) throw n;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
return a;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
function _arrayWithHoles$1(arr) {
|
|
230
|
+
if (Array.isArray(arr)) return arr;
|
|
231
|
+
}
|
|
232
|
+
function _toConsumableArray$2(arr) {
|
|
233
|
+
return _arrayWithoutHoles$2(arr) || _iterableToArray$2(arr) || _unsupportedIterableToArray$2(arr) || _nonIterableSpread$2();
|
|
234
|
+
}
|
|
235
|
+
function _nonIterableSpread$2() {
|
|
236
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
237
|
+
}
|
|
238
|
+
function _unsupportedIterableToArray$2(o, minLen) {
|
|
239
|
+
if (!o) return;
|
|
240
|
+
if (typeof o === "string") return _arrayLikeToArray$2(o, minLen);
|
|
241
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
242
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
243
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
244
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2(o, minLen);
|
|
245
|
+
}
|
|
246
|
+
function _iterableToArray$2(iter) {
|
|
247
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
248
|
+
}
|
|
249
|
+
function _arrayWithoutHoles$2(arr) {
|
|
250
|
+
if (Array.isArray(arr)) return _arrayLikeToArray$2(arr);
|
|
251
|
+
}
|
|
252
|
+
function _arrayLikeToArray$2(arr, len) {
|
|
253
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
254
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
255
|
+
return arr2;
|
|
256
|
+
}
|
|
257
|
+
var ACCURACY = 1e-4;
|
|
258
|
+
var cubicBezierFactor = function cubicBezierFactor(c1, c2) {
|
|
259
|
+
return [
|
|
260
|
+
0,
|
|
261
|
+
3 * c1,
|
|
262
|
+
3 * c2 - 6 * c1,
|
|
263
|
+
3 * c1 - 3 * c2 + 1
|
|
264
|
+
];
|
|
265
|
+
};
|
|
266
|
+
var multyTime = function multyTime(params, t) {
|
|
267
|
+
return params.map(function(param, i) {
|
|
268
|
+
return param * Math.pow(t, i);
|
|
269
|
+
}).reduce(function(pre, curr) {
|
|
270
|
+
return pre + curr;
|
|
271
|
+
});
|
|
272
|
+
};
|
|
273
|
+
var cubicBezier = function cubicBezier(c1, c2) {
|
|
274
|
+
return function(t) {
|
|
275
|
+
return multyTime(cubicBezierFactor(c1, c2), t);
|
|
276
|
+
};
|
|
277
|
+
};
|
|
278
|
+
var derivativeCubicBezier = function derivativeCubicBezier(c1, c2) {
|
|
279
|
+
return function(t) {
|
|
280
|
+
var params = cubicBezierFactor(c1, c2);
|
|
281
|
+
return multyTime([].concat(_toConsumableArray$2(params.map(function(param, i) {
|
|
282
|
+
return param * i;
|
|
283
|
+
}).slice(1)), [0]), t);
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
var configBezier = function configBezier() {
|
|
287
|
+
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) args[_key] = arguments[_key];
|
|
288
|
+
var x1 = args[0], y1 = args[1], x2 = args[2], y2 = args[3];
|
|
289
|
+
if (args.length === 1) switch (args[0]) {
|
|
290
|
+
case "linear":
|
|
291
|
+
x1 = 0;
|
|
292
|
+
y1 = 0;
|
|
293
|
+
x2 = 1;
|
|
294
|
+
y2 = 1;
|
|
295
|
+
break;
|
|
296
|
+
case "ease":
|
|
297
|
+
x1 = .25;
|
|
298
|
+
y1 = .1;
|
|
299
|
+
x2 = .25;
|
|
300
|
+
y2 = 1;
|
|
301
|
+
break;
|
|
302
|
+
case "ease-in":
|
|
303
|
+
x1 = .42;
|
|
304
|
+
y1 = 0;
|
|
305
|
+
x2 = 1;
|
|
306
|
+
y2 = 1;
|
|
307
|
+
break;
|
|
308
|
+
case "ease-out":
|
|
309
|
+
x1 = .42;
|
|
310
|
+
y1 = 0;
|
|
311
|
+
x2 = .58;
|
|
312
|
+
y2 = 1;
|
|
313
|
+
break;
|
|
314
|
+
case "ease-in-out":
|
|
315
|
+
x1 = 0;
|
|
316
|
+
y1 = 0;
|
|
317
|
+
x2 = .58;
|
|
318
|
+
y2 = 1;
|
|
319
|
+
break;
|
|
320
|
+
default:
|
|
321
|
+
var easing = args[0].split("(");
|
|
322
|
+
if (easing[0] === "cubic-bezier" && easing[1].split(")")[0].split(",").length === 4) {
|
|
323
|
+
var _easing$1$split$0$spl2 = _slicedToArray$1(easing[1].split(")")[0].split(",").map(function(x) {
|
|
324
|
+
return parseFloat(x);
|
|
325
|
+
}), 4);
|
|
326
|
+
x1 = _easing$1$split$0$spl2[0];
|
|
327
|
+
y1 = _easing$1$split$0$spl2[1];
|
|
328
|
+
x2 = _easing$1$split$0$spl2[2];
|
|
329
|
+
y2 = _easing$1$split$0$spl2[3];
|
|
330
|
+
} else warn(false, "[configBezier]: arguments should be one of oneOf 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', instead received %s", args);
|
|
331
|
+
}
|
|
332
|
+
warn([
|
|
333
|
+
x1,
|
|
334
|
+
x2,
|
|
335
|
+
y1,
|
|
336
|
+
y2
|
|
337
|
+
].every(function(num) {
|
|
338
|
+
return typeof num === "number" && num >= 0 && num <= 1;
|
|
339
|
+
}), "[configBezier]: arguments should be x1, y1, x2, y2 of [0, 1] instead received %s", args);
|
|
340
|
+
var curveX = cubicBezier(x1, x2);
|
|
341
|
+
var curveY = cubicBezier(y1, y2);
|
|
342
|
+
var derCurveX = derivativeCubicBezier(x1, x2);
|
|
343
|
+
var rangeValue = function rangeValue(value) {
|
|
344
|
+
if (value > 1) return 1;
|
|
345
|
+
if (value < 0) return 0;
|
|
346
|
+
return value;
|
|
347
|
+
};
|
|
348
|
+
var bezier = function bezier(_t) {
|
|
349
|
+
var t = _t > 1 ? 1 : _t;
|
|
350
|
+
var x = t;
|
|
351
|
+
for (var i = 0; i < 8; ++i) {
|
|
352
|
+
var evalT = curveX(x) - t;
|
|
353
|
+
var derVal = derCurveX(x);
|
|
354
|
+
if (Math.abs(evalT - t) < ACCURACY || derVal < ACCURACY) return curveY(x);
|
|
355
|
+
x = rangeValue(x - evalT / derVal);
|
|
356
|
+
}
|
|
357
|
+
return curveY(x);
|
|
358
|
+
};
|
|
359
|
+
bezier.isStepper = false;
|
|
360
|
+
return bezier;
|
|
361
|
+
};
|
|
362
|
+
var configSpring = function configSpring() {
|
|
363
|
+
var config = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
364
|
+
var _config$stiff = config.stiff, stiff = _config$stiff === void 0 ? 100 : _config$stiff, _config$damping = config.damping, damping = _config$damping === void 0 ? 8 : _config$damping, _config$dt = config.dt, dt = _config$dt === void 0 ? 17 : _config$dt;
|
|
365
|
+
var stepper = function stepper(currX, destX, currV) {
|
|
366
|
+
var newV = currV + (-(currX - destX) * stiff - currV * damping) * dt / 1e3;
|
|
367
|
+
var newX = currV * dt / 1e3 + currX;
|
|
368
|
+
if (Math.abs(newX - destX) < ACCURACY && Math.abs(newV) < ACCURACY) return [destX, 0];
|
|
369
|
+
return [newX, newV];
|
|
370
|
+
};
|
|
371
|
+
stepper.isStepper = true;
|
|
372
|
+
stepper.dt = dt;
|
|
373
|
+
return stepper;
|
|
374
|
+
};
|
|
375
|
+
var configEasing = function configEasing() {
|
|
376
|
+
for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) args[_key2] = arguments[_key2];
|
|
377
|
+
var easing = args[0];
|
|
378
|
+
if (typeof easing === "string") switch (easing) {
|
|
379
|
+
case "ease":
|
|
380
|
+
case "ease-in-out":
|
|
381
|
+
case "ease-out":
|
|
382
|
+
case "ease-in":
|
|
383
|
+
case "linear": return configBezier(easing);
|
|
384
|
+
case "spring": return configSpring();
|
|
385
|
+
default:
|
|
386
|
+
if (easing.split("(")[0] === "cubic-bezier") return configBezier(easing);
|
|
387
|
+
warn(false, "[configEasing]: first argument should be one of 'ease', 'ease-in', 'ease-out', 'ease-in-out','cubic-bezier(x1,y1,x2,y2)', 'linear' and 'spring', instead received %s", args);
|
|
388
|
+
}
|
|
389
|
+
if (typeof easing === "function") return easing;
|
|
390
|
+
warn(false, "[configEasing]: first argument type should be function or string, instead received %s", args);
|
|
391
|
+
return null;
|
|
392
|
+
};
|
|
393
|
+
//#endregion
|
|
394
|
+
//#region ../../node_modules/.pnpm/react-smooth@4.0.4_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-smooth/es6/configUpdate.js
|
|
395
|
+
function _typeof$1(o) {
|
|
396
|
+
"@babel/helpers - typeof";
|
|
397
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
398
|
+
return typeof o;
|
|
399
|
+
} : function(o) {
|
|
400
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
401
|
+
}, _typeof$1(o);
|
|
402
|
+
}
|
|
403
|
+
function _toConsumableArray$1(arr) {
|
|
404
|
+
return _arrayWithoutHoles$1(arr) || _iterableToArray$1(arr) || _unsupportedIterableToArray$1(arr) || _nonIterableSpread$1();
|
|
405
|
+
}
|
|
406
|
+
function _nonIterableSpread$1() {
|
|
407
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
408
|
+
}
|
|
409
|
+
function _iterableToArray$1(iter) {
|
|
410
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
411
|
+
}
|
|
412
|
+
function _arrayWithoutHoles$1(arr) {
|
|
413
|
+
if (Array.isArray(arr)) return _arrayLikeToArray$1(arr);
|
|
414
|
+
}
|
|
415
|
+
function ownKeys$1(e, r) {
|
|
416
|
+
var t = Object.keys(e);
|
|
417
|
+
if (Object.getOwnPropertySymbols) {
|
|
418
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
419
|
+
r && (o = o.filter(function(r) {
|
|
420
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
421
|
+
})), t.push.apply(t, o);
|
|
422
|
+
}
|
|
423
|
+
return t;
|
|
424
|
+
}
|
|
425
|
+
function _objectSpread$1(e) {
|
|
426
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
427
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
428
|
+
r % 2 ? ownKeys$1(Object(t), !0).forEach(function(r) {
|
|
429
|
+
_defineProperty$1(e, r, t[r]);
|
|
430
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys$1(Object(t)).forEach(function(r) {
|
|
431
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
return e;
|
|
435
|
+
}
|
|
436
|
+
function _defineProperty$1(obj, key, value) {
|
|
437
|
+
key = _toPropertyKey$1(key);
|
|
438
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
439
|
+
value,
|
|
440
|
+
enumerable: true,
|
|
441
|
+
configurable: true,
|
|
442
|
+
writable: true
|
|
443
|
+
});
|
|
444
|
+
else obj[key] = value;
|
|
445
|
+
return obj;
|
|
446
|
+
}
|
|
447
|
+
function _toPropertyKey$1(arg) {
|
|
448
|
+
var key = _toPrimitive$1(arg, "string");
|
|
449
|
+
return _typeof$1(key) === "symbol" ? key : String(key);
|
|
450
|
+
}
|
|
451
|
+
function _toPrimitive$1(input, hint) {
|
|
452
|
+
if (_typeof$1(input) !== "object" || input === null) return input;
|
|
453
|
+
var prim = input[Symbol.toPrimitive];
|
|
454
|
+
if (prim !== void 0) {
|
|
455
|
+
var res = prim.call(input, hint || "default");
|
|
456
|
+
if (_typeof$1(res) !== "object") return res;
|
|
457
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
458
|
+
}
|
|
459
|
+
return (hint === "string" ? String : Number)(input);
|
|
460
|
+
}
|
|
461
|
+
function _slicedToArray(arr, i) {
|
|
462
|
+
return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray$1(arr, i) || _nonIterableRest();
|
|
463
|
+
}
|
|
464
|
+
function _nonIterableRest() {
|
|
465
|
+
throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
466
|
+
}
|
|
467
|
+
function _unsupportedIterableToArray$1(o, minLen) {
|
|
468
|
+
if (!o) return;
|
|
469
|
+
if (typeof o === "string") return _arrayLikeToArray$1(o, minLen);
|
|
470
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
471
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
472
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
473
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$1(o, minLen);
|
|
474
|
+
}
|
|
475
|
+
function _arrayLikeToArray$1(arr, len) {
|
|
476
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
477
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
478
|
+
return arr2;
|
|
479
|
+
}
|
|
480
|
+
function _iterableToArrayLimit(r, l) {
|
|
481
|
+
var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
482
|
+
if (null != t) {
|
|
483
|
+
var e, n, i, u, a = [], f = !0, o = !1;
|
|
484
|
+
try {
|
|
485
|
+
if (i = (t = t.call(r)).next, 0 === l) {
|
|
486
|
+
if (Object(t) !== t) return;
|
|
487
|
+
f = !1;
|
|
488
|
+
} else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
|
|
489
|
+
} catch (r) {
|
|
490
|
+
o = !0, n = r;
|
|
491
|
+
} finally {
|
|
492
|
+
try {
|
|
493
|
+
if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return;
|
|
494
|
+
} finally {
|
|
495
|
+
if (o) throw n;
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
return a;
|
|
499
|
+
}
|
|
500
|
+
}
|
|
501
|
+
function _arrayWithHoles(arr) {
|
|
502
|
+
if (Array.isArray(arr)) return arr;
|
|
503
|
+
}
|
|
504
|
+
var alpha = function alpha(begin, end, k) {
|
|
505
|
+
return begin + (end - begin) * k;
|
|
506
|
+
};
|
|
507
|
+
var needContinue = function needContinue(_ref) {
|
|
508
|
+
return _ref.from !== _ref.to;
|
|
509
|
+
};
|
|
510
|
+
var calStepperVals = function calStepperVals(easing, preVals, steps) {
|
|
511
|
+
var nextStepVals = mapObject(function(key, val) {
|
|
512
|
+
if (needContinue(val)) {
|
|
513
|
+
var _easing2 = _slicedToArray(easing(val.from, val.to, val.velocity), 2), newX = _easing2[0], newV = _easing2[1];
|
|
514
|
+
return _objectSpread$1(_objectSpread$1({}, val), {}, {
|
|
515
|
+
from: newX,
|
|
516
|
+
velocity: newV
|
|
517
|
+
});
|
|
518
|
+
}
|
|
519
|
+
return val;
|
|
520
|
+
}, preVals);
|
|
521
|
+
if (steps < 1) return mapObject(function(key, val) {
|
|
522
|
+
if (needContinue(val)) return _objectSpread$1(_objectSpread$1({}, val), {}, {
|
|
523
|
+
velocity: alpha(val.velocity, nextStepVals[key].velocity, steps),
|
|
524
|
+
from: alpha(val.from, nextStepVals[key].from, steps)
|
|
525
|
+
});
|
|
526
|
+
return val;
|
|
527
|
+
}, preVals);
|
|
528
|
+
return calStepperVals(easing, nextStepVals, steps - 1);
|
|
529
|
+
};
|
|
530
|
+
var configUpdate_default = (function(from, to, easing, duration, render) {
|
|
531
|
+
var interKeys = getIntersectionKeys(from, to);
|
|
532
|
+
var timingStyle = interKeys.reduce(function(res, key) {
|
|
533
|
+
return _objectSpread$1(_objectSpread$1({}, res), {}, _defineProperty$1({}, key, [from[key], to[key]]));
|
|
534
|
+
}, {});
|
|
535
|
+
var stepperStyle = interKeys.reduce(function(res, key) {
|
|
536
|
+
return _objectSpread$1(_objectSpread$1({}, res), {}, _defineProperty$1({}, key, {
|
|
537
|
+
from: from[key],
|
|
538
|
+
velocity: 0,
|
|
539
|
+
to: to[key]
|
|
540
|
+
}));
|
|
541
|
+
}, {});
|
|
542
|
+
var cafId = -1;
|
|
543
|
+
var preTime;
|
|
544
|
+
var beginTime;
|
|
545
|
+
var update = function update() {
|
|
546
|
+
return null;
|
|
547
|
+
};
|
|
548
|
+
var getCurrStyle = function getCurrStyle() {
|
|
549
|
+
return mapObject(function(key, val) {
|
|
550
|
+
return val.from;
|
|
551
|
+
}, stepperStyle);
|
|
552
|
+
};
|
|
553
|
+
var shouldStopAnimation = function shouldStopAnimation() {
|
|
554
|
+
return !Object.values(stepperStyle).filter(needContinue).length;
|
|
555
|
+
};
|
|
556
|
+
update = easing.isStepper ? function stepperUpdate(now) {
|
|
557
|
+
if (!preTime) preTime = now;
|
|
558
|
+
var steps = (now - preTime) / easing.dt;
|
|
559
|
+
stepperStyle = calStepperVals(easing, stepperStyle, steps);
|
|
560
|
+
render(_objectSpread$1(_objectSpread$1(_objectSpread$1({}, from), to), getCurrStyle(stepperStyle)));
|
|
561
|
+
preTime = now;
|
|
562
|
+
if (!shouldStopAnimation()) cafId = requestAnimationFrame(update);
|
|
563
|
+
} : function timingUpdate(now) {
|
|
564
|
+
if (!beginTime) beginTime = now;
|
|
565
|
+
var t = (now - beginTime) / duration;
|
|
566
|
+
var currStyle = mapObject(function(key, val) {
|
|
567
|
+
return alpha.apply(void 0, _toConsumableArray$1(val).concat([easing(t)]));
|
|
568
|
+
}, timingStyle);
|
|
569
|
+
render(_objectSpread$1(_objectSpread$1(_objectSpread$1({}, from), to), currStyle));
|
|
570
|
+
if (t < 1) cafId = requestAnimationFrame(update);
|
|
571
|
+
else {
|
|
572
|
+
var finalStyle = mapObject(function(key, val) {
|
|
573
|
+
return alpha.apply(void 0, _toConsumableArray$1(val).concat([easing(1)]));
|
|
574
|
+
}, timingStyle);
|
|
575
|
+
render(_objectSpread$1(_objectSpread$1(_objectSpread$1({}, from), to), finalStyle));
|
|
576
|
+
}
|
|
577
|
+
};
|
|
578
|
+
return function() {
|
|
579
|
+
requestAnimationFrame(update);
|
|
580
|
+
return function() {
|
|
581
|
+
cancelAnimationFrame(cafId);
|
|
582
|
+
};
|
|
583
|
+
};
|
|
584
|
+
});
|
|
585
|
+
//#endregion
|
|
586
|
+
//#region ../../node_modules/.pnpm/react-smooth@4.0.4_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-smooth/es6/Animate.js
|
|
587
|
+
var import_react = /* @__PURE__ */ __toESM(require_react());
|
|
588
|
+
var import_prop_types = /* @__PURE__ */ __toESM(require_prop_types());
|
|
589
|
+
function _typeof(o) {
|
|
590
|
+
"@babel/helpers - typeof";
|
|
591
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(o) {
|
|
592
|
+
return typeof o;
|
|
593
|
+
} : function(o) {
|
|
594
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
595
|
+
}, _typeof(o);
|
|
596
|
+
}
|
|
597
|
+
var _excluded = [
|
|
598
|
+
"children",
|
|
599
|
+
"begin",
|
|
600
|
+
"duration",
|
|
601
|
+
"attributeName",
|
|
602
|
+
"easing",
|
|
603
|
+
"isActive",
|
|
604
|
+
"steps",
|
|
605
|
+
"from",
|
|
606
|
+
"to",
|
|
607
|
+
"canBegin",
|
|
608
|
+
"onAnimationEnd",
|
|
609
|
+
"shouldReAnimate",
|
|
610
|
+
"onAnimationReStart"
|
|
611
|
+
];
|
|
612
|
+
function _objectWithoutProperties(source, excluded) {
|
|
613
|
+
if (source == null) return {};
|
|
614
|
+
var target = _objectWithoutPropertiesLoose(source, excluded);
|
|
615
|
+
var key, i;
|
|
616
|
+
if (Object.getOwnPropertySymbols) {
|
|
617
|
+
var sourceSymbolKeys = Object.getOwnPropertySymbols(source);
|
|
618
|
+
for (i = 0; i < sourceSymbolKeys.length; i++) {
|
|
619
|
+
key = sourceSymbolKeys[i];
|
|
620
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
621
|
+
if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue;
|
|
622
|
+
target[key] = source[key];
|
|
623
|
+
}
|
|
624
|
+
}
|
|
625
|
+
return target;
|
|
626
|
+
}
|
|
627
|
+
function _objectWithoutPropertiesLoose(source, excluded) {
|
|
628
|
+
if (source == null) return {};
|
|
629
|
+
var target = {};
|
|
630
|
+
var sourceKeys = Object.keys(source);
|
|
631
|
+
var key, i;
|
|
632
|
+
for (i = 0; i < sourceKeys.length; i++) {
|
|
633
|
+
key = sourceKeys[i];
|
|
634
|
+
if (excluded.indexOf(key) >= 0) continue;
|
|
635
|
+
target[key] = source[key];
|
|
636
|
+
}
|
|
637
|
+
return target;
|
|
638
|
+
}
|
|
639
|
+
function _toConsumableArray(arr) {
|
|
640
|
+
return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread();
|
|
641
|
+
}
|
|
642
|
+
function _nonIterableSpread() {
|
|
643
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
644
|
+
}
|
|
645
|
+
function _unsupportedIterableToArray(o, minLen) {
|
|
646
|
+
if (!o) return;
|
|
647
|
+
if (typeof o === "string") return _arrayLikeToArray(o, minLen);
|
|
648
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
649
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
650
|
+
if (n === "Map" || n === "Set") return Array.from(o);
|
|
651
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen);
|
|
652
|
+
}
|
|
653
|
+
function _iterableToArray(iter) {
|
|
654
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
655
|
+
}
|
|
656
|
+
function _arrayWithoutHoles(arr) {
|
|
657
|
+
if (Array.isArray(arr)) return _arrayLikeToArray(arr);
|
|
658
|
+
}
|
|
659
|
+
function _arrayLikeToArray(arr, len) {
|
|
660
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
661
|
+
for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
|
|
662
|
+
return arr2;
|
|
663
|
+
}
|
|
664
|
+
function ownKeys(e, r) {
|
|
665
|
+
var t = Object.keys(e);
|
|
666
|
+
if (Object.getOwnPropertySymbols) {
|
|
667
|
+
var o = Object.getOwnPropertySymbols(e);
|
|
668
|
+
r && (o = o.filter(function(r) {
|
|
669
|
+
return Object.getOwnPropertyDescriptor(e, r).enumerable;
|
|
670
|
+
})), t.push.apply(t, o);
|
|
671
|
+
}
|
|
672
|
+
return t;
|
|
673
|
+
}
|
|
674
|
+
function _objectSpread(e) {
|
|
675
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
676
|
+
var t = null != arguments[r] ? arguments[r] : {};
|
|
677
|
+
r % 2 ? ownKeys(Object(t), !0).forEach(function(r) {
|
|
678
|
+
_defineProperty(e, r, t[r]);
|
|
679
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function(r) {
|
|
680
|
+
Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r));
|
|
681
|
+
});
|
|
682
|
+
}
|
|
683
|
+
return e;
|
|
684
|
+
}
|
|
685
|
+
function _defineProperty(obj, key, value) {
|
|
686
|
+
key = _toPropertyKey(key);
|
|
687
|
+
if (key in obj) Object.defineProperty(obj, key, {
|
|
688
|
+
value,
|
|
689
|
+
enumerable: true,
|
|
690
|
+
configurable: true,
|
|
691
|
+
writable: true
|
|
692
|
+
});
|
|
693
|
+
else obj[key] = value;
|
|
694
|
+
return obj;
|
|
695
|
+
}
|
|
696
|
+
function _classCallCheck(instance, Constructor) {
|
|
697
|
+
if (!(instance instanceof Constructor)) throw new TypeError("Cannot call a class as a function");
|
|
698
|
+
}
|
|
699
|
+
function _defineProperties(target, props) {
|
|
700
|
+
for (var i = 0; i < props.length; i++) {
|
|
701
|
+
var descriptor = props[i];
|
|
702
|
+
descriptor.enumerable = descriptor.enumerable || false;
|
|
703
|
+
descriptor.configurable = true;
|
|
704
|
+
if ("value" in descriptor) descriptor.writable = true;
|
|
705
|
+
Object.defineProperty(target, _toPropertyKey(descriptor.key), descriptor);
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
function _createClass(Constructor, protoProps, staticProps) {
|
|
709
|
+
if (protoProps) _defineProperties(Constructor.prototype, protoProps);
|
|
710
|
+
if (staticProps) _defineProperties(Constructor, staticProps);
|
|
711
|
+
Object.defineProperty(Constructor, "prototype", { writable: false });
|
|
712
|
+
return Constructor;
|
|
713
|
+
}
|
|
714
|
+
function _toPropertyKey(arg) {
|
|
715
|
+
var key = _toPrimitive(arg, "string");
|
|
716
|
+
return _typeof(key) === "symbol" ? key : String(key);
|
|
717
|
+
}
|
|
718
|
+
function _toPrimitive(input, hint) {
|
|
719
|
+
if (_typeof(input) !== "object" || input === null) return input;
|
|
720
|
+
var prim = input[Symbol.toPrimitive];
|
|
721
|
+
if (prim !== void 0) {
|
|
722
|
+
var res = prim.call(input, hint || "default");
|
|
723
|
+
if (_typeof(res) !== "object") return res;
|
|
724
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
725
|
+
}
|
|
726
|
+
return (hint === "string" ? String : Number)(input);
|
|
727
|
+
}
|
|
728
|
+
function _inherits(subClass, superClass) {
|
|
729
|
+
if (typeof superClass !== "function" && superClass !== null) throw new TypeError("Super expression must either be null or a function");
|
|
730
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: {
|
|
731
|
+
value: subClass,
|
|
732
|
+
writable: true,
|
|
733
|
+
configurable: true
|
|
734
|
+
} });
|
|
735
|
+
Object.defineProperty(subClass, "prototype", { writable: false });
|
|
736
|
+
if (superClass) _setPrototypeOf(subClass, superClass);
|
|
737
|
+
}
|
|
738
|
+
function _setPrototypeOf(o, p) {
|
|
739
|
+
_setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) {
|
|
740
|
+
o.__proto__ = p;
|
|
741
|
+
return o;
|
|
742
|
+
};
|
|
743
|
+
return _setPrototypeOf(o, p);
|
|
744
|
+
}
|
|
745
|
+
function _createSuper(Derived) {
|
|
746
|
+
var hasNativeReflectConstruct = _isNativeReflectConstruct();
|
|
747
|
+
return function _createSuperInternal() {
|
|
748
|
+
var Super = _getPrototypeOf(Derived), result;
|
|
749
|
+
if (hasNativeReflectConstruct) {
|
|
750
|
+
var NewTarget = _getPrototypeOf(this).constructor;
|
|
751
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
752
|
+
} else result = Super.apply(this, arguments);
|
|
753
|
+
return _possibleConstructorReturn(this, result);
|
|
754
|
+
};
|
|
755
|
+
}
|
|
756
|
+
function _possibleConstructorReturn(self, call) {
|
|
757
|
+
if (call && (_typeof(call) === "object" || typeof call === "function")) return call;
|
|
758
|
+
else if (call !== void 0) throw new TypeError("Derived constructors may only return object or undefined");
|
|
759
|
+
return _assertThisInitialized(self);
|
|
760
|
+
}
|
|
761
|
+
function _assertThisInitialized(self) {
|
|
762
|
+
if (self === void 0) throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
763
|
+
return self;
|
|
764
|
+
}
|
|
765
|
+
function _isNativeReflectConstruct() {
|
|
766
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
767
|
+
if (Reflect.construct.sham) return false;
|
|
768
|
+
if (typeof Proxy === "function") return true;
|
|
769
|
+
try {
|
|
770
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
771
|
+
return true;
|
|
772
|
+
} catch (e) {
|
|
773
|
+
return false;
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
function _getPrototypeOf(o) {
|
|
777
|
+
_getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) {
|
|
778
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
779
|
+
};
|
|
780
|
+
return _getPrototypeOf(o);
|
|
781
|
+
}
|
|
782
|
+
var Animate = /* @__PURE__ */ function(_PureComponent) {
|
|
783
|
+
_inherits(Animate, _PureComponent);
|
|
784
|
+
var _super = _createSuper(Animate);
|
|
785
|
+
function Animate(props, context) {
|
|
786
|
+
var _this;
|
|
787
|
+
_classCallCheck(this, Animate);
|
|
788
|
+
_this = _super.call(this, props, context);
|
|
789
|
+
var _this$props = _this.props, isActive = _this$props.isActive, attributeName = _this$props.attributeName, from = _this$props.from, to = _this$props.to, steps = _this$props.steps, children = _this$props.children, duration = _this$props.duration;
|
|
790
|
+
_this.handleStyleChange = _this.handleStyleChange.bind(_assertThisInitialized(_this));
|
|
791
|
+
_this.changeStyle = _this.changeStyle.bind(_assertThisInitialized(_this));
|
|
792
|
+
if (!isActive || duration <= 0) {
|
|
793
|
+
_this.state = { style: {} };
|
|
794
|
+
if (typeof children === "function") _this.state = { style: to };
|
|
795
|
+
return _possibleConstructorReturn(_this);
|
|
796
|
+
}
|
|
797
|
+
if (steps && steps.length) _this.state = { style: steps[0].style };
|
|
798
|
+
else if (from) {
|
|
799
|
+
if (typeof children === "function") {
|
|
800
|
+
_this.state = { style: from };
|
|
801
|
+
return _possibleConstructorReturn(_this);
|
|
802
|
+
}
|
|
803
|
+
_this.state = { style: attributeName ? _defineProperty({}, attributeName, from) : from };
|
|
804
|
+
} else _this.state = { style: {} };
|
|
805
|
+
return _this;
|
|
806
|
+
}
|
|
807
|
+
_createClass(Animate, [
|
|
808
|
+
{
|
|
809
|
+
key: "componentDidMount",
|
|
810
|
+
value: function componentDidMount() {
|
|
811
|
+
var _this$props2 = this.props, isActive = _this$props2.isActive, canBegin = _this$props2.canBegin;
|
|
812
|
+
this.mounted = true;
|
|
813
|
+
if (!isActive || !canBegin) return;
|
|
814
|
+
this.runAnimation(this.props);
|
|
815
|
+
}
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
key: "componentDidUpdate",
|
|
819
|
+
value: function componentDidUpdate(prevProps) {
|
|
820
|
+
var _this$props3 = this.props, isActive = _this$props3.isActive, canBegin = _this$props3.canBegin, attributeName = _this$props3.attributeName, shouldReAnimate = _this$props3.shouldReAnimate, to = _this$props3.to, currentFrom = _this$props3.from;
|
|
821
|
+
var style = this.state.style;
|
|
822
|
+
if (!canBegin) return;
|
|
823
|
+
if (!isActive) {
|
|
824
|
+
var newState = { style: attributeName ? _defineProperty({}, attributeName, to) : to };
|
|
825
|
+
if (this.state && style) {
|
|
826
|
+
if (attributeName && style[attributeName] !== to || !attributeName && style !== to) this.setState(newState);
|
|
827
|
+
}
|
|
828
|
+
return;
|
|
829
|
+
}
|
|
830
|
+
if (deepEqual(prevProps.to, to) && prevProps.canBegin && prevProps.isActive) return;
|
|
831
|
+
var isTriggered = !prevProps.canBegin || !prevProps.isActive;
|
|
832
|
+
if (this.manager) this.manager.stop();
|
|
833
|
+
if (this.stopJSAnimation) this.stopJSAnimation();
|
|
834
|
+
var from = isTriggered || shouldReAnimate ? currentFrom : prevProps.to;
|
|
835
|
+
if (this.state && style) {
|
|
836
|
+
var _newState = { style: attributeName ? _defineProperty({}, attributeName, from) : from };
|
|
837
|
+
if (attributeName && style[attributeName] !== from || !attributeName && style !== from) this.setState(_newState);
|
|
838
|
+
}
|
|
839
|
+
this.runAnimation(_objectSpread(_objectSpread({}, this.props), {}, {
|
|
840
|
+
from,
|
|
841
|
+
begin: 0
|
|
842
|
+
}));
|
|
843
|
+
}
|
|
844
|
+
},
|
|
845
|
+
{
|
|
846
|
+
key: "componentWillUnmount",
|
|
847
|
+
value: function componentWillUnmount() {
|
|
848
|
+
this.mounted = false;
|
|
849
|
+
var onAnimationEnd = this.props.onAnimationEnd;
|
|
850
|
+
if (this.unSubscribe) this.unSubscribe();
|
|
851
|
+
if (this.manager) {
|
|
852
|
+
this.manager.stop();
|
|
853
|
+
this.manager = null;
|
|
854
|
+
}
|
|
855
|
+
if (this.stopJSAnimation) this.stopJSAnimation();
|
|
856
|
+
if (onAnimationEnd) onAnimationEnd();
|
|
857
|
+
}
|
|
858
|
+
},
|
|
859
|
+
{
|
|
860
|
+
key: "handleStyleChange",
|
|
861
|
+
value: function handleStyleChange(style) {
|
|
862
|
+
this.changeStyle(style);
|
|
863
|
+
}
|
|
864
|
+
},
|
|
865
|
+
{
|
|
866
|
+
key: "changeStyle",
|
|
867
|
+
value: function changeStyle(style) {
|
|
868
|
+
if (this.mounted) this.setState({ style });
|
|
869
|
+
}
|
|
870
|
+
},
|
|
871
|
+
{
|
|
872
|
+
key: "runJSAnimation",
|
|
873
|
+
value: function runJSAnimation(props) {
|
|
874
|
+
var _this2 = this;
|
|
875
|
+
var from = props.from, to = props.to, duration = props.duration, easing = props.easing, begin = props.begin, onAnimationEnd = props.onAnimationEnd, onAnimationStart = props.onAnimationStart;
|
|
876
|
+
var startAnimation = configUpdate_default(from, to, configEasing(easing), duration, this.changeStyle);
|
|
877
|
+
this.manager.start([
|
|
878
|
+
onAnimationStart,
|
|
879
|
+
begin,
|
|
880
|
+
function finalStartAnimation() {
|
|
881
|
+
_this2.stopJSAnimation = startAnimation();
|
|
882
|
+
},
|
|
883
|
+
duration,
|
|
884
|
+
onAnimationEnd
|
|
885
|
+
]);
|
|
886
|
+
}
|
|
887
|
+
},
|
|
888
|
+
{
|
|
889
|
+
key: "runStepAnimation",
|
|
890
|
+
value: function runStepAnimation(props) {
|
|
891
|
+
var _this3 = this;
|
|
892
|
+
var steps = props.steps, begin = props.begin, onAnimationStart = props.onAnimationStart;
|
|
893
|
+
var _steps$ = steps[0], initialStyle = _steps$.style, _steps$$duration = _steps$.duration, initialTime = _steps$$duration === void 0 ? 0 : _steps$$duration;
|
|
894
|
+
return this.manager.start([onAnimationStart].concat(_toConsumableArray(steps.reduce(function addStyle(sequence, nextItem, index) {
|
|
895
|
+
if (index === 0) return sequence;
|
|
896
|
+
var duration = nextItem.duration, _nextItem$easing = nextItem.easing, easing = _nextItem$easing === void 0 ? "ease" : _nextItem$easing, style = nextItem.style, nextProperties = nextItem.properties, onAnimationEnd = nextItem.onAnimationEnd;
|
|
897
|
+
var preItem = index > 0 ? steps[index - 1] : nextItem;
|
|
898
|
+
var properties = nextProperties || Object.keys(style);
|
|
899
|
+
if (typeof easing === "function" || easing === "spring") return [].concat(_toConsumableArray(sequence), [_this3.runJSAnimation.bind(_this3, {
|
|
900
|
+
from: preItem.style,
|
|
901
|
+
to: style,
|
|
902
|
+
duration,
|
|
903
|
+
easing
|
|
904
|
+
}), duration]);
|
|
905
|
+
var transition = getTransitionVal(properties, duration, easing);
|
|
906
|
+
var newStyle = _objectSpread(_objectSpread(_objectSpread({}, preItem.style), style), {}, { transition });
|
|
907
|
+
return [].concat(_toConsumableArray(sequence), [
|
|
908
|
+
newStyle,
|
|
909
|
+
duration,
|
|
910
|
+
onAnimationEnd
|
|
911
|
+
]).filter(identity);
|
|
912
|
+
}, [initialStyle, Math.max(initialTime, begin)])), [props.onAnimationEnd]));
|
|
913
|
+
}
|
|
914
|
+
},
|
|
915
|
+
{
|
|
916
|
+
key: "runAnimation",
|
|
917
|
+
value: function runAnimation(props) {
|
|
918
|
+
if (!this.manager) this.manager = createAnimateManager();
|
|
919
|
+
var begin = props.begin, duration = props.duration, attributeName = props.attributeName, propsTo = props.to, easing = props.easing, onAnimationStart = props.onAnimationStart, onAnimationEnd = props.onAnimationEnd, steps = props.steps, children = props.children;
|
|
920
|
+
var manager = this.manager;
|
|
921
|
+
this.unSubscribe = manager.subscribe(this.handleStyleChange);
|
|
922
|
+
if (typeof easing === "function" || typeof children === "function" || easing === "spring") {
|
|
923
|
+
this.runJSAnimation(props);
|
|
924
|
+
return;
|
|
925
|
+
}
|
|
926
|
+
if (steps.length > 1) {
|
|
927
|
+
this.runStepAnimation(props);
|
|
928
|
+
return;
|
|
929
|
+
}
|
|
930
|
+
var to = attributeName ? _defineProperty({}, attributeName, propsTo) : propsTo;
|
|
931
|
+
var transition = getTransitionVal(Object.keys(to), duration, easing);
|
|
932
|
+
manager.start([
|
|
933
|
+
onAnimationStart,
|
|
934
|
+
begin,
|
|
935
|
+
_objectSpread(_objectSpread({}, to), {}, { transition }),
|
|
936
|
+
duration,
|
|
937
|
+
onAnimationEnd
|
|
938
|
+
]);
|
|
939
|
+
}
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
key: "render",
|
|
943
|
+
value: function render() {
|
|
944
|
+
var _this$props4 = this.props, children = _this$props4.children;
|
|
945
|
+
_this$props4.begin;
|
|
946
|
+
var duration = _this$props4.duration;
|
|
947
|
+
_this$props4.attributeName;
|
|
948
|
+
_this$props4.easing;
|
|
949
|
+
var isActive = _this$props4.isActive;
|
|
950
|
+
_this$props4.steps;
|
|
951
|
+
_this$props4.from;
|
|
952
|
+
_this$props4.to;
|
|
953
|
+
_this$props4.canBegin;
|
|
954
|
+
_this$props4.onAnimationEnd;
|
|
955
|
+
_this$props4.shouldReAnimate;
|
|
956
|
+
_this$props4.onAnimationReStart;
|
|
957
|
+
var others = _objectWithoutProperties(_this$props4, _excluded);
|
|
958
|
+
var count = import_react.Children.count(children);
|
|
959
|
+
var stateStyle = this.state.style;
|
|
960
|
+
if (typeof children === "function") return children(stateStyle);
|
|
961
|
+
if (!isActive || count === 0 || duration <= 0) return children;
|
|
962
|
+
var cloneContainer = function cloneContainer(container) {
|
|
963
|
+
var _container$props = container.props, _container$props$styl = _container$props.style, style = _container$props$styl === void 0 ? {} : _container$props$styl, className = _container$props.className;
|
|
964
|
+
return /* @__PURE__ */ (0, import_react.cloneElement)(container, _objectSpread(_objectSpread({}, others), {}, {
|
|
965
|
+
style: _objectSpread(_objectSpread({}, style), stateStyle),
|
|
966
|
+
className
|
|
967
|
+
}));
|
|
968
|
+
};
|
|
969
|
+
if (count === 1) return cloneContainer(import_react.Children.only(children));
|
|
970
|
+
return /* @__PURE__ */ import_react.createElement("div", null, import_react.Children.map(children, function(child) {
|
|
971
|
+
return cloneContainer(child);
|
|
972
|
+
}));
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
]);
|
|
976
|
+
return Animate;
|
|
977
|
+
}(import_react.PureComponent);
|
|
978
|
+
Animate.displayName = "Animate";
|
|
979
|
+
Animate.defaultProps = {
|
|
980
|
+
begin: 0,
|
|
981
|
+
duration: 1e3,
|
|
982
|
+
from: "",
|
|
983
|
+
to: "",
|
|
984
|
+
attributeName: "",
|
|
985
|
+
easing: "ease",
|
|
986
|
+
isActive: true,
|
|
987
|
+
canBegin: true,
|
|
988
|
+
steps: [],
|
|
989
|
+
onAnimationEnd: function onAnimationEnd() {},
|
|
990
|
+
onAnimationStart: function onAnimationStart() {}
|
|
991
|
+
};
|
|
992
|
+
Animate.propTypes = {
|
|
993
|
+
from: import_prop_types.default.oneOfType([import_prop_types.default.object, import_prop_types.default.string]),
|
|
994
|
+
to: import_prop_types.default.oneOfType([import_prop_types.default.object, import_prop_types.default.string]),
|
|
995
|
+
attributeName: import_prop_types.default.string,
|
|
996
|
+
duration: import_prop_types.default.number,
|
|
997
|
+
begin: import_prop_types.default.number,
|
|
998
|
+
easing: import_prop_types.default.oneOfType([import_prop_types.default.string, import_prop_types.default.func]),
|
|
999
|
+
steps: import_prop_types.default.arrayOf(import_prop_types.default.shape({
|
|
1000
|
+
duration: import_prop_types.default.number.isRequired,
|
|
1001
|
+
style: import_prop_types.default.object.isRequired,
|
|
1002
|
+
easing: import_prop_types.default.oneOfType([import_prop_types.default.oneOf([
|
|
1003
|
+
"ease",
|
|
1004
|
+
"ease-in",
|
|
1005
|
+
"ease-out",
|
|
1006
|
+
"ease-in-out",
|
|
1007
|
+
"linear"
|
|
1008
|
+
]), import_prop_types.default.func]),
|
|
1009
|
+
properties: import_prop_types.default.arrayOf("string"),
|
|
1010
|
+
onAnimationEnd: import_prop_types.default.func
|
|
1011
|
+
})),
|
|
1012
|
+
children: import_prop_types.default.oneOfType([import_prop_types.default.node, import_prop_types.default.func]),
|
|
1013
|
+
isActive: import_prop_types.default.bool,
|
|
1014
|
+
canBegin: import_prop_types.default.bool,
|
|
1015
|
+
onAnimationEnd: import_prop_types.default.func,
|
|
1016
|
+
shouldReAnimate: import_prop_types.default.bool,
|
|
1017
|
+
onAnimationStart: import_prop_types.default.func,
|
|
1018
|
+
onAnimationReStart: import_prop_types.default.func
|
|
1019
|
+
};
|
|
1020
|
+
//#endregion
|
|
1021
|
+
//#region ../../node_modules/.pnpm/react-smooth@4.0.4_react-dom@19.2.4_react@19.2.4__react@19.2.4/node_modules/react-smooth/es6/index.js
|
|
1022
|
+
var es6_default = Animate;
|
|
1023
|
+
//#endregion
|
|
1024
|
+
export { es6_default as t };
|