@glodon-aiot/react-components 3.3.0-beta.14 → 3.3.0-beta.17
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/_virtual/_commonjsHelpers.mjs +8 -0
- package/dist/es/_virtual/index.mjs +4 -0
- package/dist/es/_virtual/index2.mjs +4 -0
- package/dist/es/_virtual/index3.mjs +4 -0
- package/dist/es/_virtual/lib.mjs +4 -0
- package/dist/es/_virtual/prism-core.mjs +4 -0
- package/dist/es/_virtual/types.mjs +4 -0
- package/dist/es/_virtual/ua-parser.min.mjs +4 -0
- package/dist/es/components/Copy/index.mjs +44 -0
- package/dist/es/components/Copy/style.less.mjs +4 -0
- package/dist/es/components/Markdown/ATag/index.mjs +47 -0
- package/dist/es/components/Markdown/Code/index.mjs +69 -0
- package/dist/es/components/Markdown/Image/index.mjs +60 -0
- package/dist/es/components/Markdown/Video/index.mjs +22 -0
- package/dist/es/components/Markdown/index.mjs +75 -0
- package/dist/es/components/Markdown/style.less.mjs +4 -0
- package/dist/es/index.mjs +30 -25
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayLikeToArray.mjs +9 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/arrayWithoutHoles.mjs +8 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/defineProperty.mjs +12 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/extends.mjs +13 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/iterableToArray.mjs +7 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/nonIterableSpread.mjs +7 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutProperties.mjs +15 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/objectWithoutPropertiesLoose.mjs +15 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toConsumableArray.mjs +10 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPrimitive.mjs +16 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/toPropertyKey.mjs +9 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/typeof.mjs +11 -0
- package/dist/es/node_modules/@babel/runtime/helpers/esm/unsupportedIterableToArray.mjs +12 -0
- package/dist/es/node_modules/@react-spring/animated/dist/react-spring-animated.esm.mjs +201 -0
- package/dist/es/node_modules/@react-spring/core/dist/react-spring-core.esm.mjs +1087 -0
- package/dist/es/node_modules/@react-spring/rafz/dist/react-spring-rafz.esm.mjs +104 -0
- package/dist/es/node_modules/@react-spring/shared/dist/react-spring-shared.esm.mjs +568 -0
- package/dist/es/node_modules/@react-spring/web/dist/react-spring-web.esm.mjs +158 -0
- package/dist/es/node_modules/@use-gesture/core/dist/actions-fe213e88.esm.mjs +908 -0
- package/dist/es/node_modules/@use-gesture/core/dist/maths-0ab39ae9.esm.mjs +35 -0
- package/dist/es/node_modules/@use-gesture/core/dist/use-gesture-core.esm.mjs +242 -0
- package/dist/es/node_modules/@use-gesture/react/dist/use-gesture-react.esm.mjs +33 -0
- package/dist/es/node_modules/antd-mobile/es/components/config-provider/config-provider.mjs +20 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/image-viewer.mjs +78 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/index.mjs +14 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/methods.mjs +34 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slide.mjs +178 -0
- package/dist/es/node_modules/antd-mobile/es/components/image-viewer/slides.mjs +83 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/index.mjs +5 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/mask/mask.mjs +84 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/index.mjs +5 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/components/safe-area/safe-area.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/global/global.css.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/global/index.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/locales/zh-CN.mjs +141 -0
- package/dist/es/node_modules/antd-mobile/es/utils/attach-properties-to-component.mjs +9 -0
- package/dist/es/node_modules/antd-mobile/es/utils/bound.mjs +7 -0
- package/dist/es/node_modules/antd-mobile/es/utils/can-use-dom.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/utils/convert-px.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/dev-log.mjs +7 -0
- package/dist/es/node_modules/antd-mobile/es/utils/get-container.mjs +6 -0
- package/dist/es/node_modules/antd-mobile/es/utils/get-scroll-parent.mjs +22 -0
- package/dist/es/node_modules/antd-mobile/es/utils/is-dev.mjs +4 -0
- package/dist/es/node_modules/antd-mobile/es/utils/matrix.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/native-props.mjs +12 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-imperatively.mjs +47 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-body.mjs +12 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render-to-container.mjs +13 -0
- package/dist/es/node_modules/antd-mobile/es/utils/render.mjs +52 -0
- package/dist/es/node_modules/antd-mobile/es/utils/rubberband.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/should-render.mjs +10 -0
- package/dist/es/node_modules/antd-mobile/es/utils/supports-passive.mjs +15 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-drag-and-pinch.mjs +6 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-initialized.mjs +8 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-lock-scroll.mjs +54 -0
- package/dist/es/node_modules/antd-mobile/es/utils/use-touch.mjs +32 -0
- package/dist/es/node_modules/antd-mobile/es/utils/with-default-props.mjs +11 -0
- package/dist/es/node_modules/antd-mobile/es/utils/with-stop-propagation.mjs +19 -0
- package/dist/es/node_modules/character-reference-invalid/index.json.mjs +33 -0
- package/dist/es/node_modules/classnames/index.mjs +42 -0
- package/dist/es/node_modules/hast-util-parse-selector/index.mjs +14 -0
- package/dist/es/node_modules/is-alphabetical/index.mjs +8 -0
- package/dist/es/node_modules/is-alphanumerical/index.mjs +9 -0
- package/dist/es/node_modules/is-decimal/index.mjs +8 -0
- package/dist/es/node_modules/is-hexadecimal/index.mjs +8 -0
- package/dist/es/node_modules/parse-entities/decode-entity.browser.mjs +8 -0
- package/dist/es/node_modules/parse-entities/index.mjs +83 -0
- package/dist/es/node_modules/parse-entities/node_modules/character-entities-legacy/index.json.mjs +217 -0
- package/dist/es/node_modules/property-information/find.mjs +25 -0
- package/dist/es/node_modules/property-information/html.mjs +10 -0
- package/dist/es/node_modules/property-information/lib/aria.mjs +63 -0
- package/dist/es/node_modules/property-information/lib/html.mjs +354 -0
- package/dist/es/node_modules/property-information/lib/util/case-insensitive-transform.mjs +8 -0
- package/dist/es/node_modules/property-information/lib/util/case-sensitive-transform.mjs +7 -0
- package/dist/es/node_modules/property-information/lib/util/create.mjs +13 -0
- package/dist/es/node_modules/property-information/lib/util/defined-info.mjs +18 -0
- package/dist/es/node_modules/property-information/lib/util/info.mjs +19 -0
- package/dist/es/node_modules/property-information/lib/util/merge.mjs +11 -0
- package/dist/es/node_modules/property-information/lib/util/schema.mjs +10 -0
- package/dist/es/node_modules/property-information/lib/util/types.mjs +15 -0
- package/dist/es/node_modules/property-information/lib/xlink.mjs +20 -0
- package/dist/es/node_modules/property-information/lib/xml.mjs +16 -0
- package/dist/es/node_modules/property-information/lib/xmlns.mjs +16 -0
- package/dist/es/node_modules/property-information/normalize.mjs +7 -0
- package/dist/es/node_modules/react-device-detect/dist/lib.mjs +723 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/checkForListedLanguage.mjs +7 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/create-element.mjs +101 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/highlight.mjs +283 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/languages/prism/supported-languages.mjs +4 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/prism.mjs +10 -0
- package/dist/es/node_modules/react-syntax-highlighter/dist/esm/styles/prism/prism.mjs +195 -0
- package/dist/es/node_modules/refractor/core.mjs +111 -0
- package/dist/es/node_modules/refractor/index.mjs +553 -0
- package/dist/es/node_modules/refractor/lang/abap.mjs +60 -0
- package/dist/es/node_modules/refractor/lang/abnf.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/actionscript.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/ada.mjs +28 -0
- package/dist/es/node_modules/refractor/lang/agda.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/al.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/antlr4.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/apacheconf.mjs +59 -0
- package/dist/es/node_modules/refractor/lang/apex.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/apl.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/applescript.mjs +26 -0
- package/dist/es/node_modules/refractor/lang/aql.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/arduino.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/arff.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/asciidoc.mjs +208 -0
- package/dist/es/node_modules/refractor/lang/asm6502.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/asmatmel.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/aspnet.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/autohotkey.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/autoit.mjs +43 -0
- package/dist/es/node_modules/refractor/lang/avisynth.mjs +167 -0
- package/dist/es/node_modules/refractor/lang/avro-idl.mjs +50 -0
- package/dist/es/node_modules/refractor/lang/bash.mjs +206 -0
- package/dist/es/node_modules/refractor/lang/basic.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/batch.mjs +95 -0
- package/dist/es/node_modules/refractor/lang/bbcode.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/bicep.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/birb.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/bison.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/bnf.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/brainfuck.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/brightscript.mjs +55 -0
- package/dist/es/node_modules/refractor/lang/bro.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/bsl.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/c.mjs +78 -0
- package/dist/es/node_modules/refractor/lang/cfscript.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/chaiscript.mjs +65 -0
- package/dist/es/node_modules/refractor/lang/cil.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/clike.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/clojure.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/cmake.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/cobol.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/coffeescript.mjs +86 -0
- package/dist/es/node_modules/refractor/lang/concurnas.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/coq.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/cpp.mjs +98 -0
- package/dist/es/node_modules/refractor/lang/crystal.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/csharp.mjs +277 -0
- package/dist/es/node_modules/refractor/lang/cshtml.mjs +104 -0
- package/dist/es/node_modules/refractor/lang/csp.mjs +61 -0
- package/dist/es/node_modules/refractor/lang/css-extras.mjs +109 -0
- package/dist/es/node_modules/refractor/lang/css.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/csv.mjs +16 -0
- package/dist/es/node_modules/refractor/lang/cypher.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/d.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/dart.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/dataweave.mjs +49 -0
- package/dist/es/node_modules/refractor/lang/dax.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/dhall.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/diff.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/django.mjs +60 -0
- package/dist/es/node_modules/refractor/lang/dns-zone-file.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/docker.mjs +83 -0
- package/dist/es/node_modules/refractor/lang/dot.mjs +75 -0
- package/dist/es/node_modules/refractor/lang/ebnf.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/editorconfig.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/eiffel.mjs +46 -0
- package/dist/es/node_modules/refractor/lang/ejs.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/elixir.mjs +100 -0
- package/dist/es/node_modules/refractor/lang/elm.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/erb.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/erlang.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/etlua.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/excel-formula.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/factor.mjs +569 -0
- package/dist/es/node_modules/refractor/lang/false.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/firestore-security-rules.mjs +43 -0
- package/dist/es/node_modules/refractor/lang/flow.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/fortran.mjs +49 -0
- package/dist/es/node_modules/refractor/lang/fsharp.mjs +76 -0
- package/dist/es/node_modules/refractor/lang/ftl.mjs +102 -0
- package/dist/es/node_modules/refractor/lang/gap.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/gcode.mjs +28 -0
- package/dist/es/node_modules/refractor/lang/gdscript.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/gedcom.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/gherkin.mjs +94 -0
- package/dist/es/node_modules/refractor/lang/git.mjs +75 -0
- package/dist/es/node_modules/refractor/lang/glsl.mjs +18 -0
- package/dist/es/node_modules/refractor/lang/gml.mjs +19 -0
- package/dist/es/node_modules/refractor/lang/gn.mjs +55 -0
- package/dist/es/node_modules/refractor/lang/go-module.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/go.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/graphql.mjs +133 -0
- package/dist/es/node_modules/refractor/lang/groovy.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/haml.mjs +132 -0
- package/dist/es/node_modules/refractor/lang/handlebars.mjs +46 -0
- package/dist/es/node_modules/refractor/lang/haskell.mjs +76 -0
- package/dist/es/node_modules/refractor/lang/haxe.mjs +84 -0
- package/dist/es/node_modules/refractor/lang/hcl.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/hlsl.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/hoon.mjs +26 -0
- package/dist/es/node_modules/refractor/lang/hpkp.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/hsts.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/http.mjs +126 -0
- package/dist/es/node_modules/refractor/lang/ichigojam.mjs +25 -0
- package/dist/es/node_modules/refractor/lang/icon.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/icu-message-format.mjs +136 -0
- package/dist/es/node_modules/refractor/lang/idris.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/iecst.mjs +38 -0
- package/dist/es/node_modules/refractor/lang/ignore.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/inform7.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/ini.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/io.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/j.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/java.mjs +86 -0
- package/dist/es/node_modules/refractor/lang/javadoc.mjs +89 -0
- package/dist/es/node_modules/refractor/lang/javadoclike.mjs +60 -0
- package/dist/es/node_modules/refractor/lang/javascript.mjs +114 -0
- package/dist/es/node_modules/refractor/lang/javastacktrace.mjs +146 -0
- package/dist/es/node_modules/refractor/lang/jexl.mjs +26 -0
- package/dist/es/node_modules/refractor/lang/jolie.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/jq.mjs +71 -0
- package/dist/es/node_modules/refractor/lang/js-extras.mjs +104 -0
- package/dist/es/node_modules/refractor/lang/js-templates.mjs +153 -0
- package/dist/es/node_modules/refractor/lang/jsdoc.mjs +83 -0
- package/dist/es/node_modules/refractor/lang/json.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/json5.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/jsonp.mjs +20 -0
- package/dist/es/node_modules/refractor/lang/jsstacktrace.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/jsx.mjs +61 -0
- package/dist/es/node_modules/refractor/lang/julia.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/keepalived.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/keyman.mjs +55 -0
- package/dist/es/node_modules/refractor/lang/kotlin.mjs +81 -0
- package/dist/es/node_modules/refractor/lang/kumir.mjs +85 -0
- package/dist/es/node_modules/refractor/lang/kusto.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/latex.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/latte.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/less.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/lilypond.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/liquid.mjs +68 -0
- package/dist/es/node_modules/refractor/lang/lisp.mjs +158 -0
- package/dist/es/node_modules/refractor/lang/livescript.mjs +119 -0
- package/dist/es/node_modules/refractor/lang/llvm.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/log.mjs +103 -0
- package/dist/es/node_modules/refractor/lang/lolcode.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/lua.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/magma.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/makefile.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/markdown.mjs +306 -0
- package/dist/es/node_modules/refractor/lang/markup-templating.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/markup.mjs +154 -0
- package/dist/es/node_modules/refractor/lang/matlab.mjs +25 -0
- package/dist/es/node_modules/refractor/lang/maxscript.mjs +70 -0
- package/dist/es/node_modules/refractor/lang/mel.mjs +49 -0
- package/dist/es/node_modules/refractor/lang/mermaid.mjs +116 -0
- package/dist/es/node_modules/refractor/lang/mizar.mjs +24 -0
- package/dist/es/node_modules/refractor/lang/mongodb.mjs +287 -0
- package/dist/es/node_modules/refractor/lang/monkey.mjs +40 -0
- package/dist/es/node_modules/refractor/lang/moonscript.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/n1ql.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/n4js.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/nand2tetris-hdl.mjs +21 -0
- package/dist/es/node_modules/refractor/lang/naniscript.mjs +140 -0
- package/dist/es/node_modules/refractor/lang/nasm.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/neon.mjs +52 -0
- package/dist/es/node_modules/refractor/lang/nevod.mjs +125 -0
- package/dist/es/node_modules/refractor/lang/nginx.mjs +61 -0
- package/dist/es/node_modules/refractor/lang/nim.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/nix.mjs +45 -0
- package/dist/es/node_modules/refractor/lang/nsis.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/objectivec.mjs +23 -0
- package/dist/es/node_modules/refractor/lang/ocaml.mjs +64 -0
- package/dist/es/node_modules/refractor/lang/opencl.mjs +62 -0
- package/dist/es/node_modules/refractor/lang/openqasm.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/oz.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/parigp.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/parser.mjs +80 -0
- package/dist/es/node_modules/refractor/lang/pascal.mjs +66 -0
- package/dist/es/node_modules/refractor/lang/pascaligo.mjs +70 -0
- package/dist/es/node_modules/refractor/lang/pcaxis.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/peoplecode.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/perl.mjs +134 -0
- package/dist/es/node_modules/refractor/lang/php-extras.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/php.mjs +301 -0
- package/dist/es/node_modules/refractor/lang/phpdoc.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/plsql.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/powerquery.mjs +44 -0
- package/dist/es/node_modules/refractor/lang/powershell.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/processing.mjs +25 -0
- package/dist/es/node_modules/refractor/lang/prolog.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/promql.mjs +74 -0
- package/dist/es/node_modules/refractor/lang/properties.mjs +21 -0
- package/dist/es/node_modules/refractor/lang/protobuf.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/psl.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/pug.mjs +173 -0
- package/dist/es/node_modules/refractor/lang/puppet.mjs +140 -0
- package/dist/es/node_modules/refractor/lang/pure.mjs +72 -0
- package/dist/es/node_modules/refractor/lang/purebasic.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/purescript.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/python.mjs +73 -0
- package/dist/es/node_modules/refractor/lang/q.mjs +62 -0
- package/dist/es/node_modules/refractor/lang/qml.mjs +67 -0
- package/dist/es/node_modules/refractor/lang/qore.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/qsharp.mjs +93 -0
- package/dist/es/node_modules/refractor/lang/r.mjs +31 -0
- package/dist/es/node_modules/refractor/lang/racket.mjs +29 -0
- package/dist/es/node_modules/refractor/lang/reason.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/regex.mjs +97 -0
- package/dist/es/node_modules/refractor/lang/rego.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/renpy.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/rest.mjs +199 -0
- package/dist/es/node_modules/refractor/lang/rip.mjs +41 -0
- package/dist/es/node_modules/refractor/lang/roboconf.mjs +39 -0
- package/dist/es/node_modules/refractor/lang/robotframework.mjs +95 -0
- package/dist/es/node_modules/refractor/lang/ruby.mjs +159 -0
- package/dist/es/node_modules/refractor/lang/rust.mjs +122 -0
- package/dist/es/node_modules/refractor/lang/sas.mjs +305 -0
- package/dist/es/node_modules/refractor/lang/sass.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/scala.mjs +59 -0
- package/dist/es/node_modules/refractor/lang/scheme.mjs +120 -0
- package/dist/es/node_modules/refractor/lang/scss.mjs +82 -0
- package/dist/es/node_modules/refractor/lang/shell-session.mjs +69 -0
- package/dist/es/node_modules/refractor/lang/smali.mjs +84 -0
- package/dist/es/node_modules/refractor/lang/smalltalk.mjs +47 -0
- package/dist/es/node_modules/refractor/lang/smarty.mjs +106 -0
- package/dist/es/node_modules/refractor/lang/sml.mjs +64 -0
- package/dist/es/node_modules/refractor/lang/solidity.mjs +28 -0
- package/dist/es/node_modules/refractor/lang/solution-file.mjs +58 -0
- package/dist/es/node_modules/refractor/lang/soy.mjs +77 -0
- package/dist/es/node_modules/refractor/lang/sparql.mjs +24 -0
- package/dist/es/node_modules/refractor/lang/splunk-spl.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/sqf.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/sql.mjs +42 -0
- package/dist/es/node_modules/refractor/lang/squirrel.mjs +50 -0
- package/dist/es/node_modules/refractor/lang/stan.mjs +63 -0
- package/dist/es/node_modules/refractor/lang/stylus.mjs +141 -0
- package/dist/es/node_modules/refractor/lang/swift.mjs +125 -0
- package/dist/es/node_modules/refractor/lang/systemd.mjs +65 -0
- package/dist/es/node_modules/refractor/lang/t4-cs.mjs +17 -0
- package/dist/es/node_modules/refractor/lang/t4-templating.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/t4-vb.mjs +17 -0
- package/dist/es/node_modules/refractor/lang/tap.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/tcl.mjs +51 -0
- package/dist/es/node_modules/refractor/lang/textile.mjs +248 -0
- package/dist/es/node_modules/refractor/lang/toml.mjs +54 -0
- package/dist/es/node_modules/refractor/lang/tremor.mjs +67 -0
- package/dist/es/node_modules/refractor/lang/tsx.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/tt2.mjs +53 -0
- package/dist/es/node_modules/refractor/lang/turtle.mjs +62 -0
- package/dist/es/node_modules/refractor/lang/twig.mjs +48 -0
- package/dist/es/node_modules/refractor/lang/typescript.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/typoscript.mjs +81 -0
- package/dist/es/node_modules/refractor/lang/unrealscript.mjs +50 -0
- package/dist/es/node_modules/refractor/lang/uorazor.mjs +57 -0
- package/dist/es/node_modules/refractor/lang/uri.mjs +92 -0
- package/dist/es/node_modules/refractor/lang/v.mjs +85 -0
- package/dist/es/node_modules/refractor/lang/vala.mjs +87 -0
- package/dist/es/node_modules/refractor/lang/vbnet.mjs +34 -0
- package/dist/es/node_modules/refractor/lang/velocity.mjs +75 -0
- package/dist/es/node_modules/refractor/lang/verilog.mjs +38 -0
- package/dist/es/node_modules/refractor/lang/vhdl.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/vim.mjs +22 -0
- package/dist/es/node_modules/refractor/lang/visual-basic.mjs +38 -0
- package/dist/es/node_modules/refractor/lang/warpscript.mjs +33 -0
- package/dist/es/node_modules/refractor/lang/wasm.mjs +36 -0
- package/dist/es/node_modules/refractor/lang/web-idl.mjs +89 -0
- package/dist/es/node_modules/refractor/lang/wiki.mjs +86 -0
- package/dist/es/node_modules/refractor/lang/wolfram.mjs +37 -0
- package/dist/es/node_modules/refractor/lang/wren.mjs +97 -0
- package/dist/es/node_modules/refractor/lang/xeora.mjs +121 -0
- package/dist/es/node_modules/refractor/lang/xml-doc.mjs +35 -0
- package/dist/es/node_modules/refractor/lang/xojo.mjs +30 -0
- package/dist/es/node_modules/refractor/lang/xquery.mjs +89 -0
- package/dist/es/node_modules/refractor/lang/yaml.mjs +78 -0
- package/dist/es/node_modules/refractor/lang/yang.mjs +32 -0
- package/dist/es/node_modules/refractor/lang/zig.mjs +80 -0
- package/dist/es/node_modules/refractor/node_modules/comma-separated-tokens/index.mjs +16 -0
- package/dist/es/node_modules/refractor/node_modules/hastscript/factory.mjs +77 -0
- package/dist/es/node_modules/refractor/node_modules/hastscript/html.mjs +8 -0
- package/dist/es/node_modules/refractor/node_modules/hastscript/index.mjs +5 -0
- package/dist/es/node_modules/refractor/node_modules/prismjs/components/prism-core.mjs +720 -0
- package/dist/es/node_modules/refractor/node_modules/space-separated-tokens/index.mjs +14 -0
- package/dist/es/node_modules/tslib/tslib.es6.mjs +30 -0
- package/dist/es/node_modules/ua-parser-js/dist/ua-parser.min.mjs +123 -0
- package/dist/es/node_modules/xtend/immutable.mjs +12 -0
- package/dist/es/utils/clipboard.mjs +38 -0
- package/dist/es/utils/markdown/index.mjs +29 -0
- package/dist/lib/index.js +25 -1
- package/dist/src/components/Copy/index.d.ts +5 -0
- package/dist/src/components/Markdown/ATag/index.d.ts +2 -0
- package/dist/src/components/Markdown/Code/index.d.ts +2 -0
- package/dist/src/components/Markdown/Image/index.d.ts +2 -0
- package/dist/src/components/Markdown/Video/index.d.ts +2 -0
- package/dist/src/components/Markdown/index.d.ts +9 -0
- package/dist/src/index.d.ts +2 -0
- package/dist/src/utils/clipboard.d.ts +11 -0
- package/dist/src/utils/markdown/index.d.ts +10 -0
- package/package.json +18 -2
- package/dist/es/style.css +0 -1
- package/dist/lib/style.css +0 -1
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { __exports as a } from "../../../../_virtual/index2.mjs";
|
|
2
|
+
a.parse = p;
|
|
3
|
+
a.stringify = s;
|
|
4
|
+
var e = "", i = " ", n = /[ \t\n\r\f]+/g;
|
|
5
|
+
function p(r) {
|
|
6
|
+
var t = String(r || e).trim();
|
|
7
|
+
return t === e ? [] : t.split(n);
|
|
8
|
+
}
|
|
9
|
+
function s(r) {
|
|
10
|
+
return r.join(i).trim();
|
|
11
|
+
}
|
|
12
|
+
export {
|
|
13
|
+
a as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
function a(p, f, e, t) {
|
|
2
|
+
function i(r) {
|
|
3
|
+
return r instanceof e ? r : new e(function(o) {
|
|
4
|
+
o(r);
|
|
5
|
+
});
|
|
6
|
+
}
|
|
7
|
+
return new (e || (e = Promise))(function(r, o) {
|
|
8
|
+
function s(n) {
|
|
9
|
+
try {
|
|
10
|
+
u(t.next(n));
|
|
11
|
+
} catch (c) {
|
|
12
|
+
o(c);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
function d(n) {
|
|
16
|
+
try {
|
|
17
|
+
u(t.throw(n));
|
|
18
|
+
} catch (c) {
|
|
19
|
+
o(c);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
function u(n) {
|
|
23
|
+
n.done ? r(n.value) : i(n.value).then(s, d);
|
|
24
|
+
}
|
|
25
|
+
u((t = t.apply(p, f || [])).next());
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
a as __awaiter
|
|
30
|
+
};
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { commonjsGlobal as ki } from "../../../_virtual/_commonjsHelpers.mjs";
|
|
2
|
+
import { __module as J } from "../../../_virtual/ua-parser.min.mjs";
|
|
3
|
+
(function(Q, $) {
|
|
4
|
+
(function(x, m) {
|
|
5
|
+
var pi = "1.0.40", R = "", ii = "?", j = "function", M = "undefined", V = "object", q = "string", ei = "major", e = "model", a = "name", i = "type", o = "vendor", r = "version", p = "architecture", E = "console", n = "mobile", b = "tablet", u = "smarttv", g = "wearable", G = "embedded", F = 500, z = "Amazon", O = "Apple", oi = "ASUS", ai = "BlackBerry", C = "Browser", P = "Chrome", hi = "Edge", U = "Firefox", S = "Google", ri = "Huawei", H = "LG", W = "Microsoft", ti = "Motorola", T = "Opera", A = "Samsung", si = "Sharp", B = "Sony", Y = "Xiaomi", X = "Zebra", ni = "Facebook", bi = "Chromium OS", wi = "Mac OS", li = " Browser", vi = function(w, l) {
|
|
6
|
+
var s = {};
|
|
7
|
+
for (var d in w)
|
|
8
|
+
l[d] && l[d].length % 2 === 0 ? s[d] = l[d].concat(w[d]) : s[d] = w[d];
|
|
9
|
+
return s;
|
|
10
|
+
}, I = function(w) {
|
|
11
|
+
for (var l = {}, s = 0; s < w.length; s++)
|
|
12
|
+
l[w[s].toUpperCase()] = w[s];
|
|
13
|
+
return l;
|
|
14
|
+
}, ci = function(w, l) {
|
|
15
|
+
return typeof w === q ? y(l).indexOf(y(w)) !== -1 : !1;
|
|
16
|
+
}, y = function(w) {
|
|
17
|
+
return w.toLowerCase();
|
|
18
|
+
}, fi = function(w) {
|
|
19
|
+
return typeof w === q ? w.replace(/[^\d\.]/g, R).split(".")[0] : m;
|
|
20
|
+
}, Z = function(w, l) {
|
|
21
|
+
if (typeof w === q)
|
|
22
|
+
return w = w.replace(/^\s\s*/, R), typeof l === M ? w : w.substring(0, F);
|
|
23
|
+
}, N = function(w, l) {
|
|
24
|
+
for (var s = 0, d, k, v, c, t, f; s < l.length && !t; ) {
|
|
25
|
+
var K = l[s], ui = l[s + 1];
|
|
26
|
+
for (d = k = 0; d < K.length && !t && K[d]; )
|
|
27
|
+
if (t = K[d++].exec(w), t)
|
|
28
|
+
for (v = 0; v < ui.length; v++)
|
|
29
|
+
f = t[++k], c = ui[v], typeof c === V && c.length > 0 ? c.length === 2 ? typeof c[1] == j ? this[c[0]] = c[1].call(this, f) : this[c[0]] = c[1] : c.length === 3 ? typeof c[1] === j && !(c[1].exec && c[1].test) ? this[c[0]] = f ? c[1].call(this, f, c[2]) : m : this[c[0]] = f ? f.replace(c[1], c[2]) : m : c.length === 4 && (this[c[0]] = f ? c[3].call(this, f.replace(c[1], c[2])) : m) : this[c] = f || m;
|
|
30
|
+
s += 2;
|
|
31
|
+
}
|
|
32
|
+
}, L = function(w, l) {
|
|
33
|
+
for (var s in l)
|
|
34
|
+
if (typeof l[s] === V && l[s].length > 0) {
|
|
35
|
+
for (var d = 0; d < l[s].length; d++)
|
|
36
|
+
if (ci(l[s][d], w))
|
|
37
|
+
return s === ii ? m : s;
|
|
38
|
+
} else if (ci(l[s], w))
|
|
39
|
+
return s === ii ? m : s;
|
|
40
|
+
return l.hasOwnProperty("*") ? l["*"] : w;
|
|
41
|
+
}, gi = {
|
|
42
|
+
"1.0": "/8",
|
|
43
|
+
1.2: "/1",
|
|
44
|
+
1.3: "/3",
|
|
45
|
+
"2.0": "/412",
|
|
46
|
+
"2.0.2": "/416",
|
|
47
|
+
"2.0.3": "/417",
|
|
48
|
+
"2.0.4": "/419",
|
|
49
|
+
"?": "/"
|
|
50
|
+
}, di = {
|
|
51
|
+
ME: "4.90",
|
|
52
|
+
"NT 3.11": "NT3.51",
|
|
53
|
+
"NT 4.0": "NT4.0",
|
|
54
|
+
2e3: "NT 5.0",
|
|
55
|
+
XP: ["NT 5.1", "NT 5.2"],
|
|
56
|
+
Vista: "NT 6.0",
|
|
57
|
+
7: "NT 6.1",
|
|
58
|
+
8: "NT 6.2",
|
|
59
|
+
8.1: "NT 6.3",
|
|
60
|
+
10: ["NT 6.4", "NT 10.0"],
|
|
61
|
+
RT: "ARM"
|
|
62
|
+
}, mi = {
|
|
63
|
+
browser: [[/\b(?:crmo|crios)\/([\w\.]+)/i], [r, [a, "Chrome"]], [/edg(?:e|ios|a)?\/([\w\.]+)/i], [r, [a, "Edge"]], [/(opera mini)\/([-\w\.]+)/i, /(opera [mobiletab]{3,6})\b.+version\/([-\w\.]+)/i, /(opera)(?:.+version\/|[\/ ]+)([\w\.]+)/i], [a, r], [/opios[\/ ]+([\w\.]+)/i], [r, [a, T + " Mini"]], [/\bop(?:rg)?x\/([\w\.]+)/i], [r, [a, T + " GX"]], [/\bopr\/([\w\.]+)/i], [r, [a, T]], [/\bb[ai]*d(?:uhd|[ub]*[aekoprswx]{5,6})[\/ ]?([\w\.]+)/i], [r, [a, "Baidu"]], [/\b(?:mxbrowser|mxios|myie2)\/?([-\w\.]*)\b/i], [r, [a, "Maxthon"]], [/(kindle)\/([\w\.]+)/i, /(lunascape|maxthon|netfront|jasmine|blazer|sleipnir)[\/ ]?([\w\.]*)/i, /(avant|iemobile|slim(?:browser|boat|jet))[\/ ]?([\d\.]*)/i, /(?:ms|\()(ie) ([\w\.]+)/i, /(flock|rockmelt|midori|epiphany|silk|skyfire|ovibrowser|bolt|iron|vivaldi|iridium|phantomjs|bowser|qupzilla|falkon|rekonq|puffin|brave|whale(?!.+naver)|qqbrowserlite|duckduckgo|klar|helio|(?=comodo_)?dragon)\/([-\w\.]+)/i, /(heytap|ovi|115)browser\/([\d\.]+)/i, /(weibo)__([\d\.]+)/i], [a, r], [/quark(?:pc)?\/([-\w\.]+)/i], [r, [a, "Quark"]], [/\bddg\/([\w\.]+)/i], [r, [a, "DuckDuckGo"]], [/(?:\buc? ?browser|(?:juc.+)ucweb)[\/ ]?([\w\.]+)/i], [r, [a, "UC" + C]], [/microm.+\bqbcore\/([\w\.]+)/i, /\bqbcore\/([\w\.]+).+microm/i, /micromessenger\/([\w\.]+)/i], [r, [a, "WeChat"]], [/konqueror\/([\w\.]+)/i], [r, [a, "Konqueror"]], [/trident.+rv[: ]([\w\.]{1,9})\b.+like gecko/i], [r, [a, "IE"]], [/ya(?:search)?browser\/([\w\.]+)/i], [r, [a, "Yandex"]], [/slbrowser\/([\w\.]+)/i], [r, [a, "Smart Lenovo " + C]], [/(avast|avg)\/([\w\.]+)/i], [[a, /(.+)/, "$1 Secure " + C], r], [/\bfocus\/([\w\.]+)/i], [r, [a, U + " Focus"]], [/\bopt\/([\w\.]+)/i], [r, [a, T + " Touch"]], [/coc_coc\w+\/([\w\.]+)/i], [r, [a, "Coc Coc"]], [/dolfin\/([\w\.]+)/i], [r, [a, "Dolphin"]], [/coast\/([\w\.]+)/i], [r, [a, T + " Coast"]], [/miuibrowser\/([\w\.]+)/i], [r, [a, "MIUI" + li]], [/fxios\/([\w\.-]+)/i], [r, [a, U]], [/\bqihoobrowser\/?([\w\.]*)/i], [r, [a, "360"]], [/\b(qq)\/([\w\.]+)/i], [[a, /(.+)/, "$1Browser"], r], [/(oculus|sailfish|huawei|vivo|pico)browser\/([\w\.]+)/i], [[a, /(.+)/, "$1" + li], r], [/samsungbrowser\/([\w\.]+)/i], [r, [a, A + " Internet"]], [/metasr[\/ ]?([\d\.]+)/i], [r, [a, "Sogou Explorer"]], [/(sogou)mo\w+\/([\d\.]+)/i], [[a, "Sogou Mobile"], r], [/(electron)\/([\w\.]+) safari/i, /(tesla)(?: qtcarbrowser|\/(20\d\d\.[-\w\.]+))/i, /m?(qqbrowser|2345(?=browser|chrome|explorer))\w*[\/ ]?v?([\w\.]+)/i], [a, r], [/(lbbrowser|rekonq)/i, /\[(linkedin)app\]/i], [a], [/ome\/([\w\.]+) \w* ?(iron) saf/i, /ome\/([\w\.]+).+qihu (360)[es]e/i], [r, a], [/((?:fban\/fbios|fb_iab\/fb4a)(?!.+fbav)|;fbav\/([\w\.]+);)/i], [[a, ni], r], [/(Klarna)\/([\w\.]+)/i, /(kakao(?:talk|story))[\/ ]([\w\.]+)/i, /(naver)\(.*?(\d+\.[\w\.]+).*\)/i, /safari (line)\/([\w\.]+)/i, /\b(line)\/([\w\.]+)\/iab/i, /(alipay)client\/([\w\.]+)/i, /(twitter)(?:and| f.+e\/([\w\.]+))/i, /(chromium|instagram|snapchat)[\/ ]([-\w\.]+)/i], [a, r], [/\bgsa\/([\w\.]+) .*safari\//i], [r, [a, "GSA"]], [/musical_ly(?:.+app_?version\/|_)([\w\.]+)/i], [r, [a, "TikTok"]], [/headlesschrome(?:\/([\w\.]+)| )/i], [r, [a, P + " Headless"]], [/ wv\).+(chrome)\/([\w\.]+)/i], [[a, P + " WebView"], r], [/droid.+ version\/([\w\.]+)\b.+(?:mobile safari|safari)/i], [r, [a, "Android " + C]], [/(chrome|omniweb|arora|[tizenoka]{5} ?browser)\/v?([\w\.]+)/i], [a, r], [/version\/([\w\.\,]+) .*mobile\/\w+ (safari)/i], [r, [a, "Mobile Safari"]], [/version\/([\w(\.|\,)]+) .*(mobile ?safari|safari)/i], [r, a], [/webkit.+?(mobile ?safari|safari)(\/[\w\.]+)/i], [a, [r, L, gi]], [/(webkit|khtml)\/([\w\.]+)/i], [a, r], [/(navigator|netscape\d?)\/([-\w\.]+)/i], [[a, "Netscape"], r], [/(wolvic|librewolf)\/([\w\.]+)/i], [a, r], [/mobile vr; rv:([\w\.]+)\).+firefox/i], [r, [a, U + " Reality"]], [/ekiohf.+(flow)\/([\w\.]+)/i, /(swiftfox)/i, /(icedragon|iceweasel|camino|chimera|fennec|maemo browser|minimo|conkeror)[\/ ]?([\w\.\+]+)/i, /(seamonkey|k-meleon|icecat|iceape|firebird|phoenix|palemoon|basilisk|waterfox)\/([-\w\.]+)$/i, /(firefox)\/([\w\.]+)/i, /(mozilla)\/([\w\.]+) .+rv\:.+gecko\/\d+/i, /(polaris|lynx|dillo|icab|doris|amaya|w3m|netsurf|obigo|mosaic|(?:go|ice|up)[\. ]?browser)[-\/ ]?v?([\w\.]+)/i, /(links) \(([\w\.]+)/i], [a, [r, /_/g, "."]], [/(cobalt)\/([\w\.]+)/i], [a, [r, /master.|lts./, ""]]],
|
|
64
|
+
cpu: [[/(?:(amd|x(?:(?:86|64)[-_])?|wow|win)64)[;\)]/i], [[p, "amd64"]], [/(ia32(?=;))/i], [[p, y]], [/((?:i[346]|x)86)[;\)]/i], [[p, "ia32"]], [/\b(aarch64|arm(v?8e?l?|_?64))\b/i], [[p, "arm64"]], [/\b(arm(?:v[67])?ht?n?[fl]p?)\b/i], [[p, "armhf"]], [/windows (ce|mobile); ppc;/i], [[p, "arm"]], [/((?:ppc|powerpc)(?:64)?)(?: mac|;|\))/i], [[p, /ower/, R, y]], [/(sun4\w)[;\)]/i], [[p, "sparc"]], [/((?:avr32|ia64(?=;))|68k(?=\))|\barm(?=v(?:[1-7]|[5-7]1)l?|;|eabi)|(?=atmel )avr|(?:irix|mips|sparc)(?:64)?\b|pa-risc)/i], [[p, y]]],
|
|
65
|
+
device: [[/\b(sch-i[89]0\d|shw-m380s|sm-[ptx]\w{2,4}|gt-[pn]\d{2,4}|sgh-t8[56]9|nexus 10)/i], [e, [o, A], [i, b]], [/\b((?:s[cgp]h|gt|sm)-(?![lr])\w+|sc[g-]?[\d]+a?|galaxy nexus)/i, /samsung[- ]((?!sm-[lr])[-\w]+)/i, /sec-(sgh\w+)/i], [e, [o, A], [i, n]], [/(?:\/|\()(ip(?:hone|od)[\w, ]*)(?:\/|;)/i], [e, [o, O], [i, n]], [/\((ipad);[-\w\),; ]+apple/i, /applecoremedia\/[\w\.]+ \((ipad)/i, /\b(ipad)\d\d?,\d\d?[;\]].+ios/i], [e, [o, O], [i, b]], [/(macintosh);/i], [e, [o, O]], [/\b(sh-?[altvz]?\d\d[a-ekm]?)/i], [e, [o, si], [i, n]], [/(?:honor)([-\w ]+)[;\)]/i], [e, [o, "Honor"], [i, n]], [/\b((?:ag[rs][23]?|bah2?|sht?|btv)-a?[lw]\d{2})\b(?!.+d\/s)/i], [e, [o, ri], [i, b]], [/(?:huawei)([-\w ]+)[;\)]/i, /\b(nexus 6p|\w{2,4}e?-[atu]?[ln][\dx][012359c][adn]?)\b(?!.+d\/s)/i], [e, [o, ri], [i, n]], [/\b(poco[\w ]+|m2\d{3}j\d\d[a-z]{2})(?: bui|\))/i, /\b; (\w+) build\/hm\1/i, /\b(hm[-_ ]?note?[_ ]?(?:\d\w)?) bui/i, /\b(redmi[\-_ ]?(?:note|k)?[\w_ ]+)(?: bui|\))/i, /oid[^\)]+; (m?[12][0-389][01]\w{3,6}[c-y])( bui|; wv|\))/i, /\b(mi[-_ ]?(?:a\d|one|one[_ ]plus|note lte|max|cc)?[_ ]?(?:\d?\w?)[_ ]?(?:plus|se|lite|pro)?)(?: bui|\))/i], [[e, /_/g, " "], [o, Y], [i, n]], [/oid[^\)]+; (2\d{4}(283|rpbf)[cgl])( bui|\))/i, /\b(mi[-_ ]?(?:pad)(?:[\w_ ]+))(?: bui|\))/i], [[e, /_/g, " "], [o, Y], [i, b]], [/; (\w+) bui.+ oppo/i, /\b(cph[12]\d{3}|p(?:af|c[al]|d\w|e[ar])[mt]\d0|x9007|a101op)\b/i], [e, [o, "OPPO"], [i, n]], [/\b(opd2\d{3}a?) bui/i], [e, [o, "OPPO"], [i, b]], [/vivo (\w+)(?: bui|\))/i, /\b(v[12]\d{3}\w?[at])(?: bui|;)/i], [e, [o, "Vivo"], [i, n]], [/\b(rmx[1-3]\d{3})(?: bui|;|\))/i], [e, [o, "Realme"], [i, n]], [/\b(milestone|droid(?:[2-4x]| (?:bionic|x2|pro|razr))?:?( 4g)?)\b[\w ]+build\//i, /\bmot(?:orola)?[- ](\w*)/i, /((?:moto[\w\(\) ]+|xt\d{3,4}|nexus 6)(?= bui|\)))/i], [e, [o, ti], [i, n]], [/\b(mz60\d|xoom[2 ]{0,2}) build\//i], [e, [o, ti], [i, b]], [/((?=lg)?[vl]k\-?\d{3}) bui| 3\.[-\w; ]{10}lg?-([06cv9]{3,4})/i], [e, [o, H], [i, b]], [/(lm(?:-?f100[nv]?|-[\w\.]+)(?= bui|\))|nexus [45])/i, /\blg[-e;\/ ]+((?!browser|netcast|android tv)\w+)/i, /\blg-?([\d\w]+) bui/i], [e, [o, H], [i, n]], [/(ideatab[-\w ]+)/i, /lenovo ?(s[56]000[-\w]+|tab(?:[\w ]+)|yt[-\d\w]{6}|tb[-\d\w]{6})/i], [e, [o, "Lenovo"], [i, b]], [/(?:maemo|nokia).*(n900|lumia \d+)/i, /nokia[-_ ]?([-\w\.]*)/i], [[e, /_/g, " "], [o, "Nokia"], [i, n]], [/(pixel c)\b/i], [e, [o, S], [i, b]], [/droid.+; (pixel[\daxl ]{0,6})(?: bui|\))/i], [e, [o, S], [i, n]], [/droid.+; (a?\d[0-2]{2}so|[c-g]\d{4}|so[-gl]\w+|xq-a\w[4-7][12])(?= bui|\).+chrome\/(?![1-6]{0,1}\d\.))/i], [e, [o, B], [i, n]], [/sony tablet [ps]/i, /\b(?:sony)?sgp\w+(?: bui|\))/i], [[e, "Xperia Tablet"], [o, B], [i, b]], [/ (kb2005|in20[12]5|be20[12][59])\b/i, /(?:one)?(?:plus)? (a\d0\d\d)(?: b|\))/i], [e, [o, "OnePlus"], [i, n]], [/(alexa)webm/i, /(kf[a-z]{2}wi|aeo(?!bc)\w\w)( bui|\))/i, /(kf[a-z]+)( bui|\)).+silk\//i], [e, [o, z], [i, b]], [/((?:sd|kf)[0349hijorstuw]+)( bui|\)).+silk\//i], [[e, /(.+)/g, "Fire Phone $1"], [o, z], [i, n]], [/(playbook);[-\w\),; ]+(rim)/i], [e, o, [i, b]], [/\b((?:bb[a-f]|st[hv])100-\d)/i, /\(bb10; (\w+)/i], [e, [o, ai], [i, n]], [/(?:\b|asus_)(transfo[prime ]{4,10} \w+|eeepc|slider \w+|nexus 7|padfone|p00[cj])/i], [e, [o, oi], [i, b]], [/ (z[bes]6[027][012][km][ls]|zenfone \d\w?)\b/i], [e, [o, oi], [i, n]], [/(nexus 9)/i], [e, [o, "HTC"], [i, b]], [/(htc)[-;_ ]{1,2}([\w ]+(?=\)| bui)|\w+)/i, /(zte)[- ]([\w ]+?)(?: bui|\/|\))/i, /(alcatel|geeksphone|nexian|panasonic(?!(?:;|\.))|sony(?!-bra))[-_ ]?([-\w]*)/i], [o, [e, /_/g, " "], [i, n]], [/droid [\w\.]+; ((?:8[14]9[16]|9(?:0(?:48|60|8[01])|1(?:3[27]|66)|2(?:6[69]|9[56])|466))[gqswx])\w*(\)| bui)/i], [e, [o, "TCL"], [i, b]], [/(itel) ((\w+))/i], [[o, y], e, [i, L, {
|
|
66
|
+
tablet: ["p10001l", "w7001"],
|
|
67
|
+
"*": "mobile"
|
|
68
|
+
}]], [/droid.+; ([ab][1-7]-?[0178a]\d\d?)/i], [e, [o, "Acer"], [i, b]], [/droid.+; (m[1-5] note) bui/i, /\bmz-([-\w]{2,})/i], [e, [o, "Meizu"], [i, n]], [/; ((?:power )?armor(?:[\w ]{0,8}))(?: bui|\))/i], [e, [o, "Ulefone"], [i, n]], [/; (energy ?\w+)(?: bui|\))/i, /; energizer ([\w ]+)(?: bui|\))/i], [e, [o, "Energizer"], [i, n]], [/; cat (b35);/i, /; (b15q?|s22 flip|s48c|s62 pro)(?: bui|\))/i], [e, [o, "Cat"], [i, n]], [/((?:new )?andromax[\w- ]+)(?: bui|\))/i], [e, [o, "Smartfren"], [i, n]], [/droid.+; (a(?:015|06[35]|142p?))/i], [e, [o, "Nothing"], [i, n]], [/(blackberry|benq|palm(?=\-)|sonyericsson|acer|asus|dell|meizu|motorola|polytron|infinix|tecno|micromax|advan)[-_ ]?([-\w]*)/i, /; (imo) ((?!tab)[\w ]+?)(?: bui|\))/i, /(hp) ([\w ]+\w)/i, /(asus)-?(\w+)/i, /(microsoft); (lumia[\w ]+)/i, /(lenovo)[-_ ]?([-\w]+)/i, /(jolla)/i, /(oppo) ?([\w ]+) bui/i], [o, e, [i, n]], [/(imo) (tab \w+)/i, /(kobo)\s(ereader|touch)/i, /(archos) (gamepad2?)/i, /(hp).+(touchpad(?!.+tablet)|tablet)/i, /(kindle)\/([\w\.]+)/i, /(nook)[\w ]+build\/(\w+)/i, /(dell) (strea[kpr\d ]*[\dko])/i, /(le[- ]+pan)[- ]+(\w{1,9}) bui/i, /(trinity)[- ]*(t\d{3}) bui/i, /(gigaset)[- ]+(q\w{1,9}) bui/i, /(vodafone) ([\w ]+)(?:\)| bui)/i], [o, e, [i, b]], [/(surface duo)/i], [e, [o, W], [i, b]], [/droid [\d\.]+; (fp\du?)(?: b|\))/i], [e, [o, "Fairphone"], [i, n]], [/(u304aa)/i], [e, [o, "AT&T"], [i, n]], [/\bsie-(\w*)/i], [e, [o, "Siemens"], [i, n]], [/\b(rct\w+) b/i], [e, [o, "RCA"], [i, b]], [/\b(venue[\d ]{2,7}) b/i], [e, [o, "Dell"], [i, b]], [/\b(q(?:mv|ta)\w+) b/i], [e, [o, "Verizon"], [i, b]], [/\b(?:barnes[& ]+noble |bn[rt])([\w\+ ]*) b/i], [e, [o, "Barnes & Noble"], [i, b]], [/\b(tm\d{3}\w+) b/i], [e, [o, "NuVision"], [i, b]], [/\b(k88) b/i], [e, [o, "ZTE"], [i, b]], [/\b(nx\d{3}j) b/i], [e, [o, "ZTE"], [i, n]], [/\b(gen\d{3}) b.+49h/i], [e, [o, "Swiss"], [i, n]], [/\b(zur\d{3}) b/i], [e, [o, "Swiss"], [i, b]], [/\b((zeki)?tb.*\b) b/i], [e, [o, "Zeki"], [i, b]], [/\b([yr]\d{2}) b/i, /\b(dragon[- ]+touch |dt)(\w{5}) b/i], [[o, "Dragon Touch"], e, [i, b]], [/\b(ns-?\w{0,9}) b/i], [e, [o, "Insignia"], [i, b]], [/\b((nxa|next)-?\w{0,9}) b/i], [e, [o, "NextBook"], [i, b]], [/\b(xtreme\_)?(v(1[045]|2[015]|[3469]0|7[05])) b/i], [[o, "Voice"], e, [i, n]], [/\b(lvtel\-)?(v1[12]) b/i], [[o, "LvTel"], e, [i, n]], [/\b(ph-1) /i], [e, [o, "Essential"], [i, n]], [/\b(v(100md|700na|7011|917g).*\b) b/i], [e, [o, "Envizen"], [i, b]], [/\b(trio[-\w\. ]+) b/i], [e, [o, "MachSpeed"], [i, b]], [/\btu_(1491) b/i], [e, [o, "Rotor"], [i, b]], [/(shield[\w ]+) b/i], [e, [o, "Nvidia"], [i, b]], [/(sprint) (\w+)/i], [o, e, [i, n]], [/(kin\.[onetw]{3})/i], [[e, /\./g, " "], [o, W], [i, n]], [/droid.+; (cc6666?|et5[16]|mc[239][23]x?|vc8[03]x?)\)/i], [e, [o, X], [i, b]], [/droid.+; (ec30|ps20|tc[2-8]\d[kx])\)/i], [e, [o, X], [i, n]], [/smart-tv.+(samsung)/i], [o, [i, u]], [/hbbtv.+maple;(\d+)/i], [[e, /^/, "SmartTV"], [o, A], [i, u]], [/(nux; netcast.+smarttv|lg (netcast\.tv-201\d|android tv))/i], [[o, H], [i, u]], [/(apple) ?tv/i], [o, [e, O + " TV"], [i, u]], [/crkey/i], [[e, P + "cast"], [o, S], [i, u]], [/droid.+aft(\w+)( bui|\))/i], [e, [o, z], [i, u]], [/\(dtv[\);].+(aquos)/i, /(aquos-tv[\w ]+)\)/i], [e, [o, si], [i, u]], [/(bravia[\w ]+)( bui|\))/i], [e, [o, B], [i, u]], [/(mitv-\w{5}) bui/i], [e, [o, Y], [i, u]], [/Hbbtv.*(technisat) (.*);/i], [o, e, [i, u]], [/\b(roku)[\dx]*[\)\/]((?:dvp-)?[\d\.]*)/i, /hbbtv\/\d+\.\d+\.\d+ +\([\w\+ ]*; *([\w\d][^;]*);([^;]*)/i], [[o, Z], [e, Z], [i, u]], [/\b(android tv|smart[- ]?tv|opera tv|tv; rv:)\b/i], [[i, u]], [/(ouya)/i, /(nintendo) ([wids3utch]+)/i], [o, e, [i, E]], [/droid.+; (shield) bui/i], [e, [o, "Nvidia"], [i, E]], [/(playstation [345portablevi]+)/i], [e, [o, B], [i, E]], [/\b(xbox(?: one)?(?!; xbox))[\); ]/i], [e, [o, W], [i, E]], [/\b(sm-[lr]\d\d[05][fnuw]?s?)\b/i], [e, [o, A], [i, g]], [/((pebble))app/i], [o, e, [i, g]], [/(watch)(?: ?os[,\/]|\d,\d\/)[\d\.]+/i], [e, [o, O], [i, g]], [/droid.+; (glass) \d/i], [e, [o, S], [i, g]], [/droid.+; (wt63?0{2,3})\)/i], [e, [o, X], [i, g]], [/droid.+; (glass) \d/i], [e, [o, S], [i, g]], [/(pico) (4|neo3(?: link|pro)?)/i], [o, e, [i, g]], [/; (quest( \d| pro)?)/i], [e, [o, ni], [i, g]], [/(tesla)(?: qtcarbrowser|\/[-\w\.]+)/i], [o, [i, G]], [/(aeobc)\b/i], [e, [o, z], [i, G]], [/droid .+?; ([^;]+?)(?: bui|; wv\)|\) applew).+? mobile safari/i], [e, [i, n]], [/droid .+?; ([^;]+?)(?: bui|\) applew).+?(?! mobile) safari/i], [e, [i, b]], [/\b((tablet|tab)[;\/]|focus\/\d(?!.+mobile))/i], [[i, b]], [/(phone|mobile(?:[;\/]| [ \w\/\.]*safari)|pda(?=.+windows ce))/i], [[i, n]], [/(android[-\w\. ]{0,9});.+buil/i], [e, [o, "Generic"]]],
|
|
69
|
+
engine: [[/windows.+ edge\/([\w\.]+)/i], [r, [a, hi + "HTML"]], [/(arkweb)\/([\w\.]+)/i], [a, r], [/webkit\/537\.36.+chrome\/(?!27)([\w\.]+)/i], [r, [a, "Blink"]], [/(presto)\/([\w\.]+)/i, /(webkit|trident|netfront|netsurf|amaya|lynx|w3m|goanna|servo)\/([\w\.]+)/i, /ekioh(flow)\/([\w\.]+)/i, /(khtml|tasman|links)[\/ ]\(?([\w\.]+)/i, /(icab)[\/ ]([23]\.[\d\.]+)/i, /\b(libweb)/i], [a, r], [/rv\:([\w\.]{1,9})\b.+(gecko)/i], [r, a]],
|
|
70
|
+
os: [[/microsoft (windows) (vista|xp)/i], [a, r], [/(windows (?:phone(?: os)?|mobile))[\/ ]?([\d\.\w ]*)/i], [a, [r, L, di]], [/windows nt 6\.2; (arm)/i, /windows[\/ ]?([ntce\d\. ]+\w)(?!.+xbox)/i, /(?:win(?=3|9|n)|win 9x )([nt\d\.]+)/i], [[r, L, di], [a, "Windows"]], [/ip[honead]{2,4}\b(?:.*os ([\w]+) like mac|; opera)/i, /(?:ios;fbsv\/|iphone.+ios[\/ ])([\d\.]+)/i, /cfnetwork\/.+darwin/i], [[r, /_/g, "."], [a, "iOS"]], [/(mac os x) ?([\w\. ]*)/i, /(macintosh|mac_powerpc\b)(?!.+haiku)/i], [[a, wi], [r, /_/g, "."]], [/droid ([\w\.]+)\b.+(android[- ]x86|harmonyos)/i], [r, a], [/(android|webos|qnx|bada|rim tablet os|maemo|meego|sailfish|openharmony)[-\/ ]?([\w\.]*)/i, /(blackberry)\w*\/([\w\.]*)/i, /(tizen|kaios)[\/ ]([\w\.]+)/i, /\((series40);/i], [a, r], [/\(bb(10);/i], [r, [a, ai]], [/(?:symbian ?os|symbos|s60(?=;)|series60)[-\/ ]?([\w\.]*)/i], [r, [a, "Symbian"]], [/mozilla\/[\d\.]+ \((?:mobile|tablet|tv|mobile; [\w ]+); rv:.+ gecko\/([\w\.]+)/i], [r, [a, U + " OS"]], [/web0s;.+rt(tv)/i, /\b(?:hp)?wos(?:browser)?\/([\w\.]+)/i], [r, [a, "webOS"]], [/watch(?: ?os[,\/]|\d,\d\/)([\d\.]+)/i], [r, [a, "watchOS"]], [/crkey\/([\d\.]+)/i], [r, [a, P + "cast"]], [/(cros) [\w]+(?:\)| ([\w\.]+)\b)/i], [[a, bi], r], [/panasonic;(viera)/i, /(netrange)mmh/i, /(nettv)\/(\d+\.[\w\.]+)/i, /(nintendo|playstation) ([wids345portablevuch]+)/i, /(xbox); +xbox ([^\);]+)/i, /\b(joli|palm)\b ?(?:os)?\/?([\w\.]*)/i, /(mint)[\/\(\) ]?(\w*)/i, /(mageia|vectorlinux)[; ]/i, /([kxln]?ubuntu|debian|suse|opensuse|gentoo|arch(?= linux)|slackware|fedora|mandriva|centos|pclinuxos|red ?hat|zenwalk|linpus|raspbian|plan 9|minix|risc os|contiki|deepin|manjaro|elementary os|sabayon|linspire)(?: gnu\/linux)?(?: enterprise)?(?:[- ]linux)?(?:-gnu)?[-\/ ]?(?!chrom|package)([-\w\.]*)/i, /(hurd|linux) ?([\w\.]*)/i, /(gnu) ?([\w\.]*)/i, /\b([-frentopcghs]{0,5}bsd|dragonfly)[\/ ]?(?!amd|[ix346]{1,2}86)([\w\.]*)/i, /(haiku) (\w+)/i], [a, r], [/(sunos) ?([\w\.\d]*)/i], [[a, "Solaris"], r], [/((?:open)?solaris)[-\/ ]?([\w\.]*)/i, /(aix) ((\d)(?=\.|\)| )[\w\.])*/i, /\b(beos|os\/2|amigaos|morphos|openvms|fuchsia|hp-ux|serenityos)/i, /(unix) ?([\w\.]*)/i], [a, r]]
|
|
71
|
+
}, h = function(w, l) {
|
|
72
|
+
if (typeof w === V && (l = w, w = m), !(this instanceof h))
|
|
73
|
+
return new h(w, l).getResult();
|
|
74
|
+
var s = typeof x !== M && x.navigator ? x.navigator : m, d = w || (s && s.userAgent ? s.userAgent : R), k = s && s.userAgentData ? s.userAgentData : m, v = l ? vi(mi, l) : mi, c = s && s.userAgent == d;
|
|
75
|
+
return this.getBrowser = function() {
|
|
76
|
+
var t = {};
|
|
77
|
+
return t[a] = m, t[r] = m, N.call(t, d, v.browser), t[ei] = fi(t[r]), c && s && s.brave && typeof s.brave.isBrave == j && (t[a] = "Brave"), t;
|
|
78
|
+
}, this.getCPU = function() {
|
|
79
|
+
var t = {};
|
|
80
|
+
return t[p] = m, N.call(t, d, v.cpu), t;
|
|
81
|
+
}, this.getDevice = function() {
|
|
82
|
+
var t = {};
|
|
83
|
+
return t[o] = m, t[e] = m, t[i] = m, N.call(t, d, v.device), c && !t[i] && k && k.mobile && (t[i] = n), c && t[e] == "Macintosh" && s && typeof s.standalone !== M && s.maxTouchPoints && s.maxTouchPoints > 2 && (t[e] = "iPad", t[i] = b), t;
|
|
84
|
+
}, this.getEngine = function() {
|
|
85
|
+
var t = {};
|
|
86
|
+
return t[a] = m, t[r] = m, N.call(t, d, v.engine), t;
|
|
87
|
+
}, this.getOS = function() {
|
|
88
|
+
var t = {};
|
|
89
|
+
return t[a] = m, t[r] = m, N.call(t, d, v.os), c && !t[a] && k && k.platform && k.platform != "Unknown" && (t[a] = k.platform.replace(/chrome os/i, bi).replace(/macos/i, wi)), t;
|
|
90
|
+
}, this.getResult = function() {
|
|
91
|
+
return {
|
|
92
|
+
ua: this.getUA(),
|
|
93
|
+
browser: this.getBrowser(),
|
|
94
|
+
engine: this.getEngine(),
|
|
95
|
+
os: this.getOS(),
|
|
96
|
+
device: this.getDevice(),
|
|
97
|
+
cpu: this.getCPU()
|
|
98
|
+
};
|
|
99
|
+
}, this.getUA = function() {
|
|
100
|
+
return d;
|
|
101
|
+
}, this.setUA = function(t) {
|
|
102
|
+
return d = typeof t === q && t.length > F ? Z(t, F) : t, this;
|
|
103
|
+
}, this.setUA(d), this;
|
|
104
|
+
};
|
|
105
|
+
h.VERSION = pi, h.BROWSER = I([a, r, ei]), h.CPU = I([p]), h.DEVICE = I([e, o, i, E, n, u, b, g, G]), h.ENGINE = h.OS = I([a, r]), Q.exports && ($ = Q.exports = h), $.UAParser = h;
|
|
106
|
+
var _ = typeof x !== M && (x.jQuery || x.Zepto);
|
|
107
|
+
if (_ && !_.ua) {
|
|
108
|
+
var D = new h();
|
|
109
|
+
_.ua = D.getResult(), _.ua.get = function() {
|
|
110
|
+
return D.getUA();
|
|
111
|
+
}, _.ua.set = function(w) {
|
|
112
|
+
D.setUA(w);
|
|
113
|
+
var l = D.getResult();
|
|
114
|
+
for (var s in l)
|
|
115
|
+
_.ua[s] = l[s];
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
})(typeof window == "object" ? window : ki);
|
|
119
|
+
})(J, J.exports);
|
|
120
|
+
var _i = J.exports;
|
|
121
|
+
export {
|
|
122
|
+
_i as u
|
|
123
|
+
};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
var l = (n, o, a) => new Promise((r, e) => {
|
|
2
|
+
var s = (t) => {
|
|
3
|
+
try {
|
|
4
|
+
c(a.next(t));
|
|
5
|
+
} catch (i) {
|
|
6
|
+
e(i);
|
|
7
|
+
}
|
|
8
|
+
}, f = (t) => {
|
|
9
|
+
try {
|
|
10
|
+
c(a.throw(t));
|
|
11
|
+
} catch (i) {
|
|
12
|
+
e(i);
|
|
13
|
+
}
|
|
14
|
+
}, c = (t) => t.done ? r(t.value) : Promise.resolve(t.value).then(s, f);
|
|
15
|
+
c((a = a.apply(n, o)).next());
|
|
16
|
+
});
|
|
17
|
+
const d = (a) => l(void 0, [a], function* ({
|
|
18
|
+
target: n,
|
|
19
|
+
value: o
|
|
20
|
+
}) {
|
|
21
|
+
try {
|
|
22
|
+
let r = "";
|
|
23
|
+
if (!navigator.clipboard)
|
|
24
|
+
return console.warn("Browser don't have support for native clipboard."), !1;
|
|
25
|
+
if (n) {
|
|
26
|
+
const e = document.querySelector(n);
|
|
27
|
+
if (!e || !e.textContent)
|
|
28
|
+
return console.warn("Element not found"), !1;
|
|
29
|
+
o = e.textContent;
|
|
30
|
+
}
|
|
31
|
+
return o && (r = o), yield navigator.clipboard.writeText(r), !0;
|
|
32
|
+
} catch (r) {
|
|
33
|
+
return !1;
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
export {
|
|
37
|
+
d as copyToClipboard
|
|
38
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
function c(i) {
|
|
2
|
+
const t = i.split(/(```[\s\S]*?```|`[^`]*?`|<code>[\s\S]*?<\/code>)/);
|
|
3
|
+
let s = "";
|
|
4
|
+
for (let e = 0; e < t.length; e++)
|
|
5
|
+
if (e % 2 === 0) {
|
|
6
|
+
let l = t[e].replaceAll(/\\\[([\s\S]*?)\\\]/g, (r, n) => `$$${n}$$`).replaceAll(/\\\(([\s\S]*?)\\\)/g, (r, n) => `$${n}$`);
|
|
7
|
+
s += l;
|
|
8
|
+
} else
|
|
9
|
+
s += t[e];
|
|
10
|
+
return s;
|
|
11
|
+
}
|
|
12
|
+
function p(i) {
|
|
13
|
+
var n;
|
|
14
|
+
const t = (() => {
|
|
15
|
+
try {
|
|
16
|
+
return new URL(i);
|
|
17
|
+
} catch (o) {
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
})();
|
|
21
|
+
if (!t)
|
|
22
|
+
return null;
|
|
23
|
+
const e = ((n = t.pathname.split(".").pop()) == null ? void 0 : n.toLowerCase()) || "", l = ["jpg", "jpeg", "gif", "png"], r = ["mp4", "wmv", "avi", "mov"];
|
|
24
|
+
return l.includes(e) ? "image" : r.includes(e) ? "video" : null;
|
|
25
|
+
}
|
|
26
|
+
export {
|
|
27
|
+
p as checkMediaType,
|
|
28
|
+
c as replaceLatexDelimiters
|
|
29
|
+
};
|