Browse Source

Dashboard 2 - EG-West

dashboard2
Dirk Alders 4 months ago
parent
commit
97486731b5
100 changed files with 25617 additions and 338 deletions
  1. 292
    1
      .config.nodes.json
  2. 272
    0
      .config.nodes.json.backup
  3. 1066
    140
      .flows.json.backup
  4. 1066
    127
      flows.json
  5. 1
    0
      node_modules/.bin/acorn
  6. 1
    0
      node_modules/.bin/csv2json
  7. 1
    0
      node_modules/.bin/csv2tsv
  8. 1
    0
      node_modules/.bin/dsv2dsv
  9. 1
    0
      node_modules/.bin/dsv2json
  10. 1
    0
      node_modules/.bin/escodegen
  11. 1
    0
      node_modules/.bin/esgenerate
  12. 1
    0
      node_modules/.bin/esparse
  13. 1
    0
      node_modules/.bin/esvalidate
  14. 1
    0
      node_modules/.bin/json2csv
  15. 1
    0
      node_modules/.bin/json2dsv
  16. 1
    0
      node_modules/.bin/json2tsv
  17. 1
    0
      node_modules/.bin/nanoid
  18. 1
    0
      node_modules/.bin/parser
  19. 1
    0
      node_modules/.bin/tsv2csv
  20. 1
    0
      node_modules/.bin/tsv2json
  21. 1473
    70
      node_modules/.package-lock.json
  22. 22
    0
      node_modules/@babel/helper-string-parser/LICENSE
  23. 19
    0
      node_modules/@babel/helper-string-parser/README.md
  24. 295
    0
      node_modules/@babel/helper-string-parser/lib/index.js
  25. 1
    0
      node_modules/@babel/helper-string-parser/lib/index.js.map
  26. 31
    0
      node_modules/@babel/helper-string-parser/package.json
  27. 22
    0
      node_modules/@babel/helper-validator-identifier/LICENSE
  28. 19
    0
      node_modules/@babel/helper-validator-identifier/README.md
  29. 70
    0
      node_modules/@babel/helper-validator-identifier/lib/identifier.js
  30. 1
    0
      node_modules/@babel/helper-validator-identifier/lib/identifier.js.map
  31. 57
    0
      node_modules/@babel/helper-validator-identifier/lib/index.js
  32. 1
    0
      node_modules/@babel/helper-validator-identifier/lib/index.js.map
  33. 35
    0
      node_modules/@babel/helper-validator-identifier/lib/keyword.js
  34. 1
    0
      node_modules/@babel/helper-validator-identifier/lib/keyword.js.map
  35. 31
    0
      node_modules/@babel/helper-validator-identifier/package.json
  36. 73
    0
      node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js
  37. 1073
    0
      node_modules/@babel/parser/CHANGELOG.md
  38. 19
    0
      node_modules/@babel/parser/LICENSE
  39. 19
    0
      node_modules/@babel/parser/README.md
  40. 15
    0
      node_modules/@babel/parser/bin/babel-parser.js
  41. 5
    0
      node_modules/@babel/parser/index.cjs
  42. 13987
    0
      node_modules/@babel/parser/lib/index.js
  43. 1
    0
      node_modules/@babel/parser/lib/index.js.map
  44. 50
    0
      node_modules/@babel/parser/package.json
  45. 253
    0
      node_modules/@babel/parser/typings/babel-parser.d.ts
  46. 22
    0
      node_modules/@babel/types/LICENSE
  47. 19
    0
      node_modules/@babel/types/README.md
  48. 16
    0
      node_modules/@babel/types/lib/asserts/assertNode.js
  49. 1
    0
      node_modules/@babel/types/lib/asserts/assertNode.js.map
  50. 1235
    0
      node_modules/@babel/types/lib/asserts/generated/index.js
  51. 1
    0
      node_modules/@babel/types/lib/asserts/generated/index.js.map
  52. 3
    0
      node_modules/@babel/types/lib/ast-types/generated/index.js
  53. 1
    0
      node_modules/@babel/types/lib/ast-types/generated/index.js.map
  54. 18
    0
      node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js
  55. 1
    0
      node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js.map
  56. 31
    0
      node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js
  57. 1
    0
      node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js.map
  58. 1991
    0
      node_modules/@babel/types/lib/builders/generated/index.js
  59. 1
    0
      node_modules/@babel/types/lib/builders/generated/index.js.map
  60. 1532
    0
      node_modules/@babel/types/lib/builders/generated/uppercase.js
  61. 1
    0
      node_modules/@babel/types/lib/builders/generated/uppercase.js.map
  62. 12
    0
      node_modules/@babel/types/lib/builders/productions.js
  63. 1
    0
      node_modules/@babel/types/lib/builders/productions.js.map
  64. 24
    0
      node_modules/@babel/types/lib/builders/react/buildChildren.js
  65. 1
    0
      node_modules/@babel/types/lib/builders/react/buildChildren.js.map
  66. 22
    0
      node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js
  67. 1
    0
      node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js.map
  68. 17
    0
      node_modules/@babel/types/lib/builders/validateNode.js
  69. 1
    0
      node_modules/@babel/types/lib/builders/validateNode.js.map
  70. 12
    0
      node_modules/@babel/types/lib/clone/clone.js
  71. 1
    0
      node_modules/@babel/types/lib/clone/clone.js.map
  72. 12
    0
      node_modules/@babel/types/lib/clone/cloneDeep.js
  73. 1
    0
      node_modules/@babel/types/lib/clone/cloneDeep.js.map
  74. 12
    0
      node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js
  75. 1
    0
      node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js.map
  76. 107
    0
      node_modules/@babel/types/lib/clone/cloneNode.js
  77. 1
    0
      node_modules/@babel/types/lib/clone/cloneNode.js.map
  78. 12
    0
      node_modules/@babel/types/lib/clone/cloneWithoutLoc.js
  79. 1
    0
      node_modules/@babel/types/lib/clone/cloneWithoutLoc.js.map
  80. 15
    0
      node_modules/@babel/types/lib/comments/addComment.js
  81. 1
    0
      node_modules/@babel/types/lib/comments/addComment.js.map
  82. 22
    0
      node_modules/@babel/types/lib/comments/addComments.js
  83. 1
    0
      node_modules/@babel/types/lib/comments/addComments.js.map
  84. 12
    0
      node_modules/@babel/types/lib/comments/inheritInnerComments.js
  85. 1
    0
      node_modules/@babel/types/lib/comments/inheritInnerComments.js.map
  86. 12
    0
      node_modules/@babel/types/lib/comments/inheritLeadingComments.js
  87. 1
    0
      node_modules/@babel/types/lib/comments/inheritLeadingComments.js.map
  88. 12
    0
      node_modules/@babel/types/lib/comments/inheritTrailingComments.js
  89. 1
    0
      node_modules/@babel/types/lib/comments/inheritTrailingComments.js.map
  90. 17
    0
      node_modules/@babel/types/lib/comments/inheritsComments.js
  91. 1
    0
      node_modules/@babel/types/lib/comments/inheritsComments.js.map
  92. 15
    0
      node_modules/@babel/types/lib/comments/removeComments.js
  93. 1
    0
      node_modules/@babel/types/lib/comments/removeComments.js.map
  94. 59
    0
      node_modules/@babel/types/lib/constants/generated/index.js
  95. 1
    0
      node_modules/@babel/types/lib/constants/generated/index.js.map
  96. 31
    0
      node_modules/@babel/types/lib/constants/index.js
  97. 1
    0
      node_modules/@babel/types/lib/constants/index.js.map
  98. 14
    0
      node_modules/@babel/types/lib/converters/ensureBlock.js
  99. 1
    0
      node_modules/@babel/types/lib/converters/ensureBlock.js.map
  100. 0
    0
      node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js

+ 292
- 1
.config.nodes.json View File

1
 {
1
 {
2
     "node-red": {
2
     "node-red": {
3
         "name": "node-red",
3
         "name": "node-red",
4
-        "version": "3.1.8",
4
+        "version": "3.1.9",
5
         "local": false,
5
         "local": false,
6
         "user": false,
6
         "user": false,
7
         "nodes": {
7
         "nodes": {
805
                 "file": "/opt/smarthome/nodered/cfg/node_modules/node-red-contrib-logger/loggerNode.js"
805
                 "file": "/opt/smarthome/nodered/cfg/node_modules/node-red-contrib-logger/loggerNode.js"
806
             }
806
             }
807
         }
807
         }
808
+    },
809
+    "@flowfuse/node-red-dashboard": {
810
+        "name": "@flowfuse/node-red-dashboard",
811
+        "version": "1.15.0",
812
+        "local": true,
813
+        "user": true,
814
+        "nodes": {
815
+            "ui-base": {
816
+                "name": "ui-base",
817
+                "types": [
818
+                    "ui-base"
819
+                ],
820
+                "enabled": true,
821
+                "local": true,
822
+                "user": false,
823
+                "module": "@flowfuse/node-red-dashboard",
824
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/config/ui_base.js"
825
+            },
826
+            "ui-page": {
827
+                "name": "ui-page",
828
+                "types": [
829
+                    "ui-page"
830
+                ],
831
+                "enabled": true,
832
+                "local": true,
833
+                "user": false,
834
+                "module": "@flowfuse/node-red-dashboard",
835
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/config/ui_page.js"
836
+            },
837
+            "ui-link": {
838
+                "name": "ui-link",
839
+                "types": [
840
+                    "ui-link"
841
+                ],
842
+                "enabled": true,
843
+                "local": true,
844
+                "user": false,
845
+                "module": "@flowfuse/node-red-dashboard",
846
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/config/ui_link.js"
847
+            },
848
+            "ui-group": {
849
+                "name": "ui-group",
850
+                "types": [
851
+                    "ui-group"
852
+                ],
853
+                "enabled": true,
854
+                "local": true,
855
+                "user": false,
856
+                "module": "@flowfuse/node-red-dashboard",
857
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/config/ui_group.js"
858
+            },
859
+            "ui-theme": {
860
+                "name": "ui-theme",
861
+                "types": [
862
+                    "ui-theme"
863
+                ],
864
+                "enabled": true,
865
+                "local": true,
866
+                "user": false,
867
+                "module": "@flowfuse/node-red-dashboard",
868
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/config/ui_theme.js"
869
+            },
870
+            "ui-form": {
871
+                "name": "ui-form",
872
+                "types": [
873
+                    "ui-form"
874
+                ],
875
+                "enabled": true,
876
+                "local": true,
877
+                "user": false,
878
+                "module": "@flowfuse/node-red-dashboard",
879
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_form.js"
880
+            },
881
+            "ui-text-input": {
882
+                "name": "ui-text-input",
883
+                "types": [
884
+                    "ui-text-input"
885
+                ],
886
+                "enabled": true,
887
+                "local": true,
888
+                "user": false,
889
+                "module": "@flowfuse/node-red-dashboard",
890
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_text_input.js"
891
+            },
892
+            "ui-number-input": {
893
+                "name": "ui-number-input",
894
+                "types": [
895
+                    "ui-number-input"
896
+                ],
897
+                "enabled": true,
898
+                "local": true,
899
+                "user": false,
900
+                "module": "@flowfuse/node-red-dashboard",
901
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_number_input.js"
902
+            },
903
+            "ui-file-input": {
904
+                "name": "ui-file-input",
905
+                "types": [
906
+                    "ui-file-input"
907
+                ],
908
+                "enabled": true,
909
+                "local": true,
910
+                "user": false,
911
+                "module": "@flowfuse/node-red-dashboard",
912
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_file_input.js"
913
+            },
914
+            "ui-button": {
915
+                "name": "ui-button",
916
+                "types": [
917
+                    "ui-button"
918
+                ],
919
+                "enabled": true,
920
+                "local": true,
921
+                "user": false,
922
+                "module": "@flowfuse/node-red-dashboard",
923
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_button.js"
924
+            },
925
+            "ui-button-group": {
926
+                "name": "ui-button-group",
927
+                "types": [
928
+                    "ui-button-group"
929
+                ],
930
+                "enabled": true,
931
+                "local": true,
932
+                "user": false,
933
+                "module": "@flowfuse/node-red-dashboard",
934
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_button_group.js"
935
+            },
936
+            "ui-dropdown": {
937
+                "name": "ui-dropdown",
938
+                "types": [
939
+                    "ui-dropdown"
940
+                ],
941
+                "enabled": true,
942
+                "local": true,
943
+                "user": false,
944
+                "module": "@flowfuse/node-red-dashboard",
945
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_dropdown.js"
946
+            },
947
+            "ui-radio-group": {
948
+                "name": "ui-radio-group",
949
+                "types": [
950
+                    "ui-radio-group"
951
+                ],
952
+                "enabled": true,
953
+                "local": true,
954
+                "user": false,
955
+                "module": "@flowfuse/node-red-dashboard",
956
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_radio_group.js"
957
+            },
958
+            "ui-slider": {
959
+                "name": "ui-slider",
960
+                "types": [
961
+                    "ui-slider"
962
+                ],
963
+                "enabled": true,
964
+                "local": true,
965
+                "user": false,
966
+                "module": "@flowfuse/node-red-dashboard",
967
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_slider.js"
968
+            },
969
+            "ui-switch": {
970
+                "name": "ui-switch",
971
+                "types": [
972
+                    "ui-switch"
973
+                ],
974
+                "enabled": true,
975
+                "local": true,
976
+                "user": false,
977
+                "module": "@flowfuse/node-red-dashboard",
978
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_switch.js"
979
+            },
980
+            "ui-text": {
981
+                "name": "ui-text",
982
+                "types": [
983
+                    "ui-text"
984
+                ],
985
+                "enabled": true,
986
+                "local": true,
987
+                "user": false,
988
+                "module": "@flowfuse/node-red-dashboard",
989
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_text.js"
990
+            },
991
+            "ui-table": {
992
+                "name": "ui-table",
993
+                "types": [
994
+                    "ui-table"
995
+                ],
996
+                "enabled": true,
997
+                "local": true,
998
+                "user": false,
999
+                "module": "@flowfuse/node-red-dashboard",
1000
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_table.js"
1001
+            },
1002
+            "ui-chart": {
1003
+                "name": "ui-chart",
1004
+                "types": [
1005
+                    "ui-chart"
1006
+                ],
1007
+                "enabled": true,
1008
+                "local": true,
1009
+                "user": false,
1010
+                "module": "@flowfuse/node-red-dashboard",
1011
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_chart.js"
1012
+            },
1013
+            "ui-gauge": {
1014
+                "name": "ui-gauge",
1015
+                "types": [
1016
+                    "ui-gauge"
1017
+                ],
1018
+                "enabled": true,
1019
+                "local": true,
1020
+                "user": false,
1021
+                "module": "@flowfuse/node-red-dashboard",
1022
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_gauge.js"
1023
+            },
1024
+            "ui-notification": {
1025
+                "name": "ui-notification",
1026
+                "types": [
1027
+                    "ui-notification"
1028
+                ],
1029
+                "enabled": true,
1030
+                "local": true,
1031
+                "user": false,
1032
+                "module": "@flowfuse/node-red-dashboard",
1033
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_notification.js"
1034
+            },
1035
+            "ui-markdown": {
1036
+                "name": "ui-markdown",
1037
+                "types": [
1038
+                    "ui-markdown"
1039
+                ],
1040
+                "enabled": true,
1041
+                "local": true,
1042
+                "user": false,
1043
+                "module": "@flowfuse/node-red-dashboard",
1044
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_markdown.js"
1045
+            },
1046
+            "ui-template": {
1047
+                "name": "ui-template",
1048
+                "types": [
1049
+                    "ui-template"
1050
+                ],
1051
+                "enabled": true,
1052
+                "local": true,
1053
+                "user": false,
1054
+                "module": "@flowfuse/node-red-dashboard",
1055
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_template.js"
1056
+            },
1057
+            "ui-event": {
1058
+                "name": "ui-event",
1059
+                "types": [
1060
+                    "ui-event"
1061
+                ],
1062
+                "enabled": true,
1063
+                "local": true,
1064
+                "user": false,
1065
+                "module": "@flowfuse/node-red-dashboard",
1066
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_event.js"
1067
+            },
1068
+            "ui-control": {
1069
+                "name": "ui-control",
1070
+                "types": [
1071
+                    "ui-control"
1072
+                ],
1073
+                "enabled": true,
1074
+                "local": true,
1075
+                "user": false,
1076
+                "module": "@flowfuse/node-red-dashboard",
1077
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_control.js"
1078
+            }
1079
+        }
1080
+    },
1081
+    "@flowfuse/node-red-dashboard-2-ui-led": {
1082
+        "name": "@flowfuse/node-red-dashboard-2-ui-led",
1083
+        "version": "1.0.0",
1084
+        "local": true,
1085
+        "user": true,
1086
+        "nodes": {
1087
+            "ui-led": {
1088
+                "name": "ui-led",
1089
+                "types": [
1090
+                    "ui-led"
1091
+                ],
1092
+                "enabled": true,
1093
+                "local": true,
1094
+                "user": false,
1095
+                "module": "@flowfuse/node-red-dashboard-2-ui-led",
1096
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard-2-ui-led/nodes/ui-led.js"
1097
+            }
1098
+        }
808
     }
1099
     }
809
 }
1100
 }

+ 272
- 0
.config.nodes.json.backup View File

805
                 "file": "/opt/smarthome/nodered/cfg/node_modules/node-red-contrib-logger/loggerNode.js"
805
                 "file": "/opt/smarthome/nodered/cfg/node_modules/node-red-contrib-logger/loggerNode.js"
806
             }
806
             }
807
         }
807
         }
808
+    },
809
+    "@flowfuse/node-red-dashboard": {
810
+        "name": "@flowfuse/node-red-dashboard",
811
+        "version": "1.15.0",
812
+        "local": true,
813
+        "user": true,
814
+        "nodes": {
815
+            "ui-base": {
816
+                "name": "ui-base",
817
+                "types": [
818
+                    "ui-base"
819
+                ],
820
+                "enabled": true,
821
+                "local": true,
822
+                "user": false,
823
+                "module": "@flowfuse/node-red-dashboard",
824
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/config/ui_base.js"
825
+            },
826
+            "ui-page": {
827
+                "name": "ui-page",
828
+                "types": [
829
+                    "ui-page"
830
+                ],
831
+                "enabled": true,
832
+                "local": true,
833
+                "user": false,
834
+                "module": "@flowfuse/node-red-dashboard",
835
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/config/ui_page.js"
836
+            },
837
+            "ui-link": {
838
+                "name": "ui-link",
839
+                "types": [
840
+                    "ui-link"
841
+                ],
842
+                "enabled": true,
843
+                "local": true,
844
+                "user": false,
845
+                "module": "@flowfuse/node-red-dashboard",
846
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/config/ui_link.js"
847
+            },
848
+            "ui-group": {
849
+                "name": "ui-group",
850
+                "types": [
851
+                    "ui-group"
852
+                ],
853
+                "enabled": true,
854
+                "local": true,
855
+                "user": false,
856
+                "module": "@flowfuse/node-red-dashboard",
857
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/config/ui_group.js"
858
+            },
859
+            "ui-theme": {
860
+                "name": "ui-theme",
861
+                "types": [
862
+                    "ui-theme"
863
+                ],
864
+                "enabled": true,
865
+                "local": true,
866
+                "user": false,
867
+                "module": "@flowfuse/node-red-dashboard",
868
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/config/ui_theme.js"
869
+            },
870
+            "ui-form": {
871
+                "name": "ui-form",
872
+                "types": [
873
+                    "ui-form"
874
+                ],
875
+                "enabled": true,
876
+                "local": true,
877
+                "user": false,
878
+                "module": "@flowfuse/node-red-dashboard",
879
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_form.js"
880
+            },
881
+            "ui-text-input": {
882
+                "name": "ui-text-input",
883
+                "types": [
884
+                    "ui-text-input"
885
+                ],
886
+                "enabled": true,
887
+                "local": true,
888
+                "user": false,
889
+                "module": "@flowfuse/node-red-dashboard",
890
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_text_input.js"
891
+            },
892
+            "ui-number-input": {
893
+                "name": "ui-number-input",
894
+                "types": [
895
+                    "ui-number-input"
896
+                ],
897
+                "enabled": true,
898
+                "local": true,
899
+                "user": false,
900
+                "module": "@flowfuse/node-red-dashboard",
901
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_number_input.js"
902
+            },
903
+            "ui-file-input": {
904
+                "name": "ui-file-input",
905
+                "types": [
906
+                    "ui-file-input"
907
+                ],
908
+                "enabled": true,
909
+                "local": true,
910
+                "user": false,
911
+                "module": "@flowfuse/node-red-dashboard",
912
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_file_input.js"
913
+            },
914
+            "ui-button": {
915
+                "name": "ui-button",
916
+                "types": [
917
+                    "ui-button"
918
+                ],
919
+                "enabled": true,
920
+                "local": true,
921
+                "user": false,
922
+                "module": "@flowfuse/node-red-dashboard",
923
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_button.js"
924
+            },
925
+            "ui-button-group": {
926
+                "name": "ui-button-group",
927
+                "types": [
928
+                    "ui-button-group"
929
+                ],
930
+                "enabled": true,
931
+                "local": true,
932
+                "user": false,
933
+                "module": "@flowfuse/node-red-dashboard",
934
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_button_group.js"
935
+            },
936
+            "ui-dropdown": {
937
+                "name": "ui-dropdown",
938
+                "types": [
939
+                    "ui-dropdown"
940
+                ],
941
+                "enabled": true,
942
+                "local": true,
943
+                "user": false,
944
+                "module": "@flowfuse/node-red-dashboard",
945
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_dropdown.js"
946
+            },
947
+            "ui-radio-group": {
948
+                "name": "ui-radio-group",
949
+                "types": [
950
+                    "ui-radio-group"
951
+                ],
952
+                "enabled": true,
953
+                "local": true,
954
+                "user": false,
955
+                "module": "@flowfuse/node-red-dashboard",
956
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_radio_group.js"
957
+            },
958
+            "ui-slider": {
959
+                "name": "ui-slider",
960
+                "types": [
961
+                    "ui-slider"
962
+                ],
963
+                "enabled": true,
964
+                "local": true,
965
+                "user": false,
966
+                "module": "@flowfuse/node-red-dashboard",
967
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_slider.js"
968
+            },
969
+            "ui-switch": {
970
+                "name": "ui-switch",
971
+                "types": [
972
+                    "ui-switch"
973
+                ],
974
+                "enabled": true,
975
+                "local": true,
976
+                "user": false,
977
+                "module": "@flowfuse/node-red-dashboard",
978
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_switch.js"
979
+            },
980
+            "ui-text": {
981
+                "name": "ui-text",
982
+                "types": [
983
+                    "ui-text"
984
+                ],
985
+                "enabled": true,
986
+                "local": true,
987
+                "user": false,
988
+                "module": "@flowfuse/node-red-dashboard",
989
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_text.js"
990
+            },
991
+            "ui-table": {
992
+                "name": "ui-table",
993
+                "types": [
994
+                    "ui-table"
995
+                ],
996
+                "enabled": true,
997
+                "local": true,
998
+                "user": false,
999
+                "module": "@flowfuse/node-red-dashboard",
1000
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_table.js"
1001
+            },
1002
+            "ui-chart": {
1003
+                "name": "ui-chart",
1004
+                "types": [
1005
+                    "ui-chart"
1006
+                ],
1007
+                "enabled": true,
1008
+                "local": true,
1009
+                "user": false,
1010
+                "module": "@flowfuse/node-red-dashboard",
1011
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_chart.js"
1012
+            },
1013
+            "ui-gauge": {
1014
+                "name": "ui-gauge",
1015
+                "types": [
1016
+                    "ui-gauge"
1017
+                ],
1018
+                "enabled": true,
1019
+                "local": true,
1020
+                "user": false,
1021
+                "module": "@flowfuse/node-red-dashboard",
1022
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_gauge.js"
1023
+            },
1024
+            "ui-notification": {
1025
+                "name": "ui-notification",
1026
+                "types": [
1027
+                    "ui-notification"
1028
+                ],
1029
+                "enabled": true,
1030
+                "local": true,
1031
+                "user": false,
1032
+                "module": "@flowfuse/node-red-dashboard",
1033
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_notification.js"
1034
+            },
1035
+            "ui-markdown": {
1036
+                "name": "ui-markdown",
1037
+                "types": [
1038
+                    "ui-markdown"
1039
+                ],
1040
+                "enabled": true,
1041
+                "local": true,
1042
+                "user": false,
1043
+                "module": "@flowfuse/node-red-dashboard",
1044
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_markdown.js"
1045
+            },
1046
+            "ui-template": {
1047
+                "name": "ui-template",
1048
+                "types": [
1049
+                    "ui-template"
1050
+                ],
1051
+                "enabled": true,
1052
+                "local": true,
1053
+                "user": false,
1054
+                "module": "@flowfuse/node-red-dashboard",
1055
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_template.js"
1056
+            },
1057
+            "ui-event": {
1058
+                "name": "ui-event",
1059
+                "types": [
1060
+                    "ui-event"
1061
+                ],
1062
+                "enabled": true,
1063
+                "local": true,
1064
+                "user": false,
1065
+                "module": "@flowfuse/node-red-dashboard",
1066
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_event.js"
1067
+            },
1068
+            "ui-control": {
1069
+                "name": "ui-control",
1070
+                "types": [
1071
+                    "ui-control"
1072
+                ],
1073
+                "enabled": true,
1074
+                "local": true,
1075
+                "user": false,
1076
+                "module": "@flowfuse/node-red-dashboard",
1077
+                "file": "/opt/smarthome/nodered/cfg/node_modules/@flowfuse/node-red-dashboard/nodes/widgets/ui_control.js"
1078
+            }
1079
+        }
808
     }
1080
     }
809
 }
1081
 }

+ 1066
- 140
.flows.json.backup
File diff suppressed because it is too large
View File


+ 1066
- 127
flows.json
File diff suppressed because it is too large
View File


+ 1
- 0
node_modules/.bin/acorn View File

1
+../acorn/bin/acorn

+ 1
- 0
node_modules/.bin/csv2json View File

1
+../d3-dsv/bin/dsv2json.js

+ 1
- 0
node_modules/.bin/csv2tsv View File

1
+../d3-dsv/bin/dsv2dsv.js

+ 1
- 0
node_modules/.bin/dsv2dsv View File

1
+../d3-dsv/bin/dsv2dsv.js

+ 1
- 0
node_modules/.bin/dsv2json View File

1
+../d3-dsv/bin/dsv2json.js

+ 1
- 0
node_modules/.bin/escodegen View File

1
+../escodegen/bin/escodegen.js

+ 1
- 0
node_modules/.bin/esgenerate View File

1
+../escodegen/bin/esgenerate.js

+ 1
- 0
node_modules/.bin/esparse View File

1
+../esprima/bin/esparse.js

+ 1
- 0
node_modules/.bin/esvalidate View File

1
+../esprima/bin/esvalidate.js

+ 1
- 0
node_modules/.bin/json2csv View File

1
+../d3-dsv/bin/json2dsv.js

+ 1
- 0
node_modules/.bin/json2dsv View File

1
+../d3-dsv/bin/json2dsv.js

+ 1
- 0
node_modules/.bin/json2tsv View File

1
+../d3-dsv/bin/json2dsv.js

+ 1
- 0
node_modules/.bin/nanoid View File

1
+../nanoid/bin/nanoid.cjs

+ 1
- 0
node_modules/.bin/parser View File

1
+../@babel/parser/bin/babel-parser.js

+ 1
- 0
node_modules/.bin/tsv2csv View File

1
+../d3-dsv/bin/dsv2dsv.js

+ 1
- 0
node_modules/.bin/tsv2json View File

1
+../d3-dsv/bin/dsv2json.js

+ 1473
- 70
node_modules/.package-lock.json
File diff suppressed because it is too large
View File


+ 22
- 0
node_modules/@babel/helper-string-parser/LICENSE View File

1
+MIT License
2
+
3
+Copyright (c) 2014-present Sebastian McKenzie and other contributors
4
+
5
+Permission is hereby granted, free of charge, to any person obtaining
6
+a copy of this software and associated documentation files (the
7
+"Software"), to deal in the Software without restriction, including
8
+without limitation the rights to use, copy, modify, merge, publish,
9
+distribute, sublicense, and/or sell copies of the Software, and to
10
+permit persons to whom the Software is furnished to do so, subject to
11
+the following conditions:
12
+
13
+The above copyright notice and this permission notice shall be
14
+included in all copies or substantial portions of the Software.
15
+
16
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 19
- 0
node_modules/@babel/helper-string-parser/README.md View File

1
+# @babel/helper-string-parser
2
+
3
+> A utility package to parse strings
4
+
5
+See our website [@babel/helper-string-parser](https://babeljs.io/docs/babel-helper-string-parser) for more information.
6
+
7
+## Install
8
+
9
+Using npm:
10
+
11
+```sh
12
+npm install --save @babel/helper-string-parser
13
+```
14
+
15
+or using yarn:
16
+
17
+```sh
18
+yarn add @babel/helper-string-parser
19
+```

+ 295
- 0
node_modules/@babel/helper-string-parser/lib/index.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.readCodePoint = readCodePoint;
7
+exports.readInt = readInt;
8
+exports.readStringContents = readStringContents;
9
+var _isDigit = function isDigit(code) {
10
+  return code >= 48 && code <= 57;
11
+};
12
+const forbiddenNumericSeparatorSiblings = {
13
+  decBinOct: new Set([46, 66, 69, 79, 95, 98, 101, 111]),
14
+  hex: new Set([46, 88, 95, 120])
15
+};
16
+const isAllowedNumericSeparatorSibling = {
17
+  bin: ch => ch === 48 || ch === 49,
18
+  oct: ch => ch >= 48 && ch <= 55,
19
+  dec: ch => ch >= 48 && ch <= 57,
20
+  hex: ch => ch >= 48 && ch <= 57 || ch >= 65 && ch <= 70 || ch >= 97 && ch <= 102
21
+};
22
+function readStringContents(type, input, pos, lineStart, curLine, errors) {
23
+  const initialPos = pos;
24
+  const initialLineStart = lineStart;
25
+  const initialCurLine = curLine;
26
+  let out = "";
27
+  let firstInvalidLoc = null;
28
+  let chunkStart = pos;
29
+  const {
30
+    length
31
+  } = input;
32
+  for (;;) {
33
+    if (pos >= length) {
34
+      errors.unterminated(initialPos, initialLineStart, initialCurLine);
35
+      out += input.slice(chunkStart, pos);
36
+      break;
37
+    }
38
+    const ch = input.charCodeAt(pos);
39
+    if (isStringEnd(type, ch, input, pos)) {
40
+      out += input.slice(chunkStart, pos);
41
+      break;
42
+    }
43
+    if (ch === 92) {
44
+      out += input.slice(chunkStart, pos);
45
+      const res = readEscapedChar(input, pos, lineStart, curLine, type === "template", errors);
46
+      if (res.ch === null && !firstInvalidLoc) {
47
+        firstInvalidLoc = {
48
+          pos,
49
+          lineStart,
50
+          curLine
51
+        };
52
+      } else {
53
+        out += res.ch;
54
+      }
55
+      ({
56
+        pos,
57
+        lineStart,
58
+        curLine
59
+      } = res);
60
+      chunkStart = pos;
61
+    } else if (ch === 8232 || ch === 8233) {
62
+      ++pos;
63
+      ++curLine;
64
+      lineStart = pos;
65
+    } else if (ch === 10 || ch === 13) {
66
+      if (type === "template") {
67
+        out += input.slice(chunkStart, pos) + "\n";
68
+        ++pos;
69
+        if (ch === 13 && input.charCodeAt(pos) === 10) {
70
+          ++pos;
71
+        }
72
+        ++curLine;
73
+        chunkStart = lineStart = pos;
74
+      } else {
75
+        errors.unterminated(initialPos, initialLineStart, initialCurLine);
76
+      }
77
+    } else {
78
+      ++pos;
79
+    }
80
+  }
81
+  return {
82
+    pos,
83
+    str: out,
84
+    firstInvalidLoc,
85
+    lineStart,
86
+    curLine,
87
+    containsInvalid: !!firstInvalidLoc
88
+  };
89
+}
90
+function isStringEnd(type, ch, input, pos) {
91
+  if (type === "template") {
92
+    return ch === 96 || ch === 36 && input.charCodeAt(pos + 1) === 123;
93
+  }
94
+  return ch === (type === "double" ? 34 : 39);
95
+}
96
+function readEscapedChar(input, pos, lineStart, curLine, inTemplate, errors) {
97
+  const throwOnInvalid = !inTemplate;
98
+  pos++;
99
+  const res = ch => ({
100
+    pos,
101
+    ch,
102
+    lineStart,
103
+    curLine
104
+  });
105
+  const ch = input.charCodeAt(pos++);
106
+  switch (ch) {
107
+    case 110:
108
+      return res("\n");
109
+    case 114:
110
+      return res("\r");
111
+    case 120:
112
+      {
113
+        let code;
114
+        ({
115
+          code,
116
+          pos
117
+        } = readHexChar(input, pos, lineStart, curLine, 2, false, throwOnInvalid, errors));
118
+        return res(code === null ? null : String.fromCharCode(code));
119
+      }
120
+    case 117:
121
+      {
122
+        let code;
123
+        ({
124
+          code,
125
+          pos
126
+        } = readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors));
127
+        return res(code === null ? null : String.fromCodePoint(code));
128
+      }
129
+    case 116:
130
+      return res("\t");
131
+    case 98:
132
+      return res("\b");
133
+    case 118:
134
+      return res("\u000b");
135
+    case 102:
136
+      return res("\f");
137
+    case 13:
138
+      if (input.charCodeAt(pos) === 10) {
139
+        ++pos;
140
+      }
141
+    case 10:
142
+      lineStart = pos;
143
+      ++curLine;
144
+    case 8232:
145
+    case 8233:
146
+      return res("");
147
+    case 56:
148
+    case 57:
149
+      if (inTemplate) {
150
+        return res(null);
151
+      } else {
152
+        errors.strictNumericEscape(pos - 1, lineStart, curLine);
153
+      }
154
+    default:
155
+      if (ch >= 48 && ch <= 55) {
156
+        const startPos = pos - 1;
157
+        const match = /^[0-7]+/.exec(input.slice(startPos, pos + 2));
158
+        let octalStr = match[0];
159
+        let octal = parseInt(octalStr, 8);
160
+        if (octal > 255) {
161
+          octalStr = octalStr.slice(0, -1);
162
+          octal = parseInt(octalStr, 8);
163
+        }
164
+        pos += octalStr.length - 1;
165
+        const next = input.charCodeAt(pos);
166
+        if (octalStr !== "0" || next === 56 || next === 57) {
167
+          if (inTemplate) {
168
+            return res(null);
169
+          } else {
170
+            errors.strictNumericEscape(startPos, lineStart, curLine);
171
+          }
172
+        }
173
+        return res(String.fromCharCode(octal));
174
+      }
175
+      return res(String.fromCharCode(ch));
176
+  }
177
+}
178
+function readHexChar(input, pos, lineStart, curLine, len, forceLen, throwOnInvalid, errors) {
179
+  const initialPos = pos;
180
+  let n;
181
+  ({
182
+    n,
183
+    pos
184
+  } = readInt(input, pos, lineStart, curLine, 16, len, forceLen, false, errors, !throwOnInvalid));
185
+  if (n === null) {
186
+    if (throwOnInvalid) {
187
+      errors.invalidEscapeSequence(initialPos, lineStart, curLine);
188
+    } else {
189
+      pos = initialPos - 1;
190
+    }
191
+  }
192
+  return {
193
+    code: n,
194
+    pos
195
+  };
196
+}
197
+function readInt(input, pos, lineStart, curLine, radix, len, forceLen, allowNumSeparator, errors, bailOnError) {
198
+  const start = pos;
199
+  const forbiddenSiblings = radix === 16 ? forbiddenNumericSeparatorSiblings.hex : forbiddenNumericSeparatorSiblings.decBinOct;
200
+  const isAllowedSibling = radix === 16 ? isAllowedNumericSeparatorSibling.hex : radix === 10 ? isAllowedNumericSeparatorSibling.dec : radix === 8 ? isAllowedNumericSeparatorSibling.oct : isAllowedNumericSeparatorSibling.bin;
201
+  let invalid = false;
202
+  let total = 0;
203
+  for (let i = 0, e = len == null ? Infinity : len; i < e; ++i) {
204
+    const code = input.charCodeAt(pos);
205
+    let val;
206
+    if (code === 95 && allowNumSeparator !== "bail") {
207
+      const prev = input.charCodeAt(pos - 1);
208
+      const next = input.charCodeAt(pos + 1);
209
+      if (!allowNumSeparator) {
210
+        if (bailOnError) return {
211
+          n: null,
212
+          pos
213
+        };
214
+        errors.numericSeparatorInEscapeSequence(pos, lineStart, curLine);
215
+      } else if (Number.isNaN(next) || !isAllowedSibling(next) || forbiddenSiblings.has(prev) || forbiddenSiblings.has(next)) {
216
+        if (bailOnError) return {
217
+          n: null,
218
+          pos
219
+        };
220
+        errors.unexpectedNumericSeparator(pos, lineStart, curLine);
221
+      }
222
+      ++pos;
223
+      continue;
224
+    }
225
+    if (code >= 97) {
226
+      val = code - 97 + 10;
227
+    } else if (code >= 65) {
228
+      val = code - 65 + 10;
229
+    } else if (_isDigit(code)) {
230
+      val = code - 48;
231
+    } else {
232
+      val = Infinity;
233
+    }
234
+    if (val >= radix) {
235
+      if (val <= 9 && bailOnError) {
236
+        return {
237
+          n: null,
238
+          pos
239
+        };
240
+      } else if (val <= 9 && errors.invalidDigit(pos, lineStart, curLine, radix)) {
241
+        val = 0;
242
+      } else if (forceLen) {
243
+        val = 0;
244
+        invalid = true;
245
+      } else {
246
+        break;
247
+      }
248
+    }
249
+    ++pos;
250
+    total = total * radix + val;
251
+  }
252
+  if (pos === start || len != null && pos - start !== len || invalid) {
253
+    return {
254
+      n: null,
255
+      pos
256
+    };
257
+  }
258
+  return {
259
+    n: total,
260
+    pos
261
+  };
262
+}
263
+function readCodePoint(input, pos, lineStart, curLine, throwOnInvalid, errors) {
264
+  const ch = input.charCodeAt(pos);
265
+  let code;
266
+  if (ch === 123) {
267
+    ++pos;
268
+    ({
269
+      code,
270
+      pos
271
+    } = readHexChar(input, pos, lineStart, curLine, input.indexOf("}", pos) - pos, true, throwOnInvalid, errors));
272
+    ++pos;
273
+    if (code !== null && code > 0x10ffff) {
274
+      if (throwOnInvalid) {
275
+        errors.invalidCodePoint(pos, lineStart, curLine);
276
+      } else {
277
+        return {
278
+          code: null,
279
+          pos
280
+        };
281
+      }
282
+    }
283
+  } else {
284
+    ({
285
+      code,
286
+      pos
287
+    } = readHexChar(input, pos, lineStart, curLine, 4, false, throwOnInvalid, errors));
288
+  }
289
+  return {
290
+    code,
291
+    pos
292
+  };
293
+}
294
+
295
+//# sourceMappingURL=index.js.map

+ 1
- 0
node_modules/@babel/helper-string-parser/lib/index.js.map
File diff suppressed because it is too large
View File


+ 31
- 0
node_modules/@babel/helper-string-parser/package.json View File

1
+{
2
+  "name": "@babel/helper-string-parser",
3
+  "version": "7.24.8",
4
+  "description": "A utility package to parse strings",
5
+  "repository": {
6
+    "type": "git",
7
+    "url": "https://github.com/babel/babel.git",
8
+    "directory": "packages/babel-helper-string-parser"
9
+  },
10
+  "homepage": "https://babel.dev/docs/en/next/babel-helper-string-parser",
11
+  "license": "MIT",
12
+  "publishConfig": {
13
+    "access": "public"
14
+  },
15
+  "main": "./lib/index.js",
16
+  "devDependencies": {
17
+    "charcodes": "^0.2.0"
18
+  },
19
+  "engines": {
20
+    "node": ">=6.9.0"
21
+  },
22
+  "author": "The Babel Team (https://babel.dev/team)",
23
+  "exports": {
24
+    ".": {
25
+      "types": "./lib/index.d.ts",
26
+      "default": "./lib/index.js"
27
+    },
28
+    "./package.json": "./package.json"
29
+  },
30
+  "type": "commonjs"
31
+}

+ 22
- 0
node_modules/@babel/helper-validator-identifier/LICENSE View File

1
+MIT License
2
+
3
+Copyright (c) 2014-present Sebastian McKenzie and other contributors
4
+
5
+Permission is hereby granted, free of charge, to any person obtaining
6
+a copy of this software and associated documentation files (the
7
+"Software"), to deal in the Software without restriction, including
8
+without limitation the rights to use, copy, modify, merge, publish,
9
+distribute, sublicense, and/or sell copies of the Software, and to
10
+permit persons to whom the Software is furnished to do so, subject to
11
+the following conditions:
12
+
13
+The above copyright notice and this permission notice shall be
14
+included in all copies or substantial portions of the Software.
15
+
16
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 19
- 0
node_modules/@babel/helper-validator-identifier/README.md View File

1
+# @babel/helper-validator-identifier
2
+
3
+> Validate identifier/keywords name
4
+
5
+See our website [@babel/helper-validator-identifier](https://babeljs.io/docs/babel-helper-validator-identifier) for more information.
6
+
7
+## Install
8
+
9
+Using npm:
10
+
11
+```sh
12
+npm install --save @babel/helper-validator-identifier
13
+```
14
+
15
+or using yarn:
16
+
17
+```sh
18
+yarn add @babel/helper-validator-identifier
19
+```

+ 70
- 0
node_modules/@babel/helper-validator-identifier/lib/identifier.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.isIdentifierChar = isIdentifierChar;
7
+exports.isIdentifierName = isIdentifierName;
8
+exports.isIdentifierStart = isIdentifierStart;
9
+let nonASCIIidentifierStartChars = "\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e\u066f\u0671-\u06d3\u06d5\u06e5\u06e6\u06ee\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u0870-\u0887\u0889-\u088e\u08a0-\u08c9\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc\u09dd\u09df-\u09e1\u09f0\u09f1\u09fc\u0a05-\u0a0a\u0a0f\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32\u0a33\u0a35\u0a36\u0a38\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0\u0ae1\u0af9\u0b05-\u0b0c\u0b0f\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32\u0b33\u0b35-\u0b39\u0b3d\u0b5c\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99\u0b9a\u0b9c\u0b9e\u0b9f\u0ba3\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c5d\u0c60\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cdd\u0cde\u0ce0\u0ce1\u0cf1\u0cf2\u0d04-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32\u0e33\u0e40-\u0e46\u0e81\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u1711\u171f-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4c\u1b83-\u1ba0\u1bae\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2ce4\u2ceb-\u2cee\u2cf2\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31bf\u31f0-\u31ff\u3400-\u4dbf\u4e00-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7ca\ua7d0\ua7d1\ua7d3\ua7d5-\ua7d9\ua7f2-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab69\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40\ufb41\ufb43\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc";
10
+let nonASCIIidentifierChars = "\u200c\u200d\xb7\u0300-\u036f\u0387\u0483-\u0487\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u0669\u0670\u06d6-\u06dc\u06df-\u06e4\u06e7\u06e8\u06ea-\u06ed\u06f0-\u06f9\u0711\u0730-\u074a\u07a6-\u07b0\u07c0-\u07c9\u07eb-\u07f3\u07fd\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0859-\u085b\u0898-\u089f\u08ca-\u08e1\u08e3-\u0903\u093a-\u093c\u093e-\u094f\u0951-\u0957\u0962\u0963\u0966-\u096f\u0981-\u0983\u09bc\u09be-\u09c4\u09c7\u09c8\u09cb-\u09cd\u09d7\u09e2\u09e3\u09e6-\u09ef\u09fe\u0a01-\u0a03\u0a3c\u0a3e-\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a66-\u0a71\u0a75\u0a81-\u0a83\u0abc\u0abe-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ae2\u0ae3\u0ae6-\u0aef\u0afa-\u0aff\u0b01-\u0b03\u0b3c\u0b3e-\u0b44\u0b47\u0b48\u0b4b-\u0b4d\u0b55-\u0b57\u0b62\u0b63\u0b66-\u0b6f\u0b82\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd7\u0be6-\u0bef\u0c00-\u0c04\u0c3c\u0c3e-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0c66-\u0c6f\u0c81-\u0c83\u0cbc\u0cbe-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0ce6-\u0cef\u0cf3\u0d00-\u0d03\u0d3b\u0d3c\u0d3e-\u0d44\u0d46-\u0d48\u0d4a-\u0d4d\u0d57\u0d62\u0d63\u0d66-\u0d6f\u0d81-\u0d83\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2\u0df3\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0e50-\u0e59\u0eb1\u0eb4-\u0ebc\u0ec8-\u0ece\u0ed0-\u0ed9\u0f18\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e\u0f3f\u0f71-\u0f84\u0f86\u0f87\u0f8d-\u0f97\u0f99-\u0fbc\u0fc6\u102b-\u103e\u1040-\u1049\u1056-\u1059\u105e-\u1060\u1062-\u1064\u1067-\u106d\u1071-\u1074\u1082-\u108d\u108f-\u109d\u135d-\u135f\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17b4-\u17d3\u17dd\u17e0-\u17e9\u180b-\u180d\u180f-\u1819\u18a9\u1920-\u192b\u1930-\u193b\u1946-\u194f\u19d0-\u19da\u1a17-\u1a1b\u1a55-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1ab0-\u1abd\u1abf-\u1ace\u1b00-\u1b04\u1b34-\u1b44\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1b82\u1ba1-\u1bad\u1bb0-\u1bb9\u1be6-\u1bf3\u1c24-\u1c37\u1c40-\u1c49\u1c50-\u1c59\u1cd0-\u1cd2\u1cd4-\u1ce8\u1ced\u1cf4\u1cf7-\u1cf9\u1dc0-\u1dff\u200c\u200d\u203f\u2040\u2054\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2cef-\u2cf1\u2d7f\u2de0-\u2dff\u302a-\u302f\u3099\u309a\u30fb\ua620-\ua629\ua66f\ua674-\ua67d\ua69e\ua69f\ua6f0\ua6f1\ua802\ua806\ua80b\ua823-\ua827\ua82c\ua880\ua881\ua8b4-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f1\ua8ff-\ua909\ua926-\ua92d\ua947-\ua953\ua980-\ua983\ua9b3-\ua9c0\ua9d0-\ua9d9\ua9e5\ua9f0-\ua9f9\uaa29-\uaa36\uaa43\uaa4c\uaa4d\uaa50-\uaa59\uaa7b-\uaa7d\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uaaeb-\uaaef\uaaf5\uaaf6\uabe3-\uabea\uabec\uabed\uabf0-\uabf9\ufb1e\ufe00-\ufe0f\ufe20-\ufe2f\ufe33\ufe34\ufe4d-\ufe4f\uff10-\uff19\uff3f\uff65";
11
+const nonASCIIidentifierStart = new RegExp("[" + nonASCIIidentifierStartChars + "]");
12
+const nonASCIIidentifier = new RegExp("[" + nonASCIIidentifierStartChars + nonASCIIidentifierChars + "]");
13
+nonASCIIidentifierStartChars = nonASCIIidentifierChars = null;
14
+const astralIdentifierStartCodes = [0, 11, 2, 25, 2, 18, 2, 1, 2, 14, 3, 13, 35, 122, 70, 52, 268, 28, 4, 48, 48, 31, 14, 29, 6, 37, 11, 29, 3, 35, 5, 7, 2, 4, 43, 157, 19, 35, 5, 35, 5, 39, 9, 51, 13, 10, 2, 14, 2, 6, 2, 1, 2, 10, 2, 14, 2, 6, 2, 1, 68, 310, 10, 21, 11, 7, 25, 5, 2, 41, 2, 8, 70, 5, 3, 0, 2, 43, 2, 1, 4, 0, 3, 22, 11, 22, 10, 30, 66, 18, 2, 1, 11, 21, 11, 25, 71, 55, 7, 1, 65, 0, 16, 3, 2, 2, 2, 28, 43, 28, 4, 28, 36, 7, 2, 27, 28, 53, 11, 21, 11, 18, 14, 17, 111, 72, 56, 50, 14, 50, 14, 35, 349, 41, 7, 1, 79, 28, 11, 0, 9, 21, 43, 17, 47, 20, 28, 22, 13, 52, 58, 1, 3, 0, 14, 44, 33, 24, 27, 35, 30, 0, 3, 0, 9, 34, 4, 0, 13, 47, 15, 3, 22, 0, 2, 0, 36, 17, 2, 24, 20, 1, 64, 6, 2, 0, 2, 3, 2, 14, 2, 9, 8, 46, 39, 7, 3, 1, 3, 21, 2, 6, 2, 1, 2, 4, 4, 0, 19, 0, 13, 4, 159, 52, 19, 3, 21, 2, 31, 47, 21, 1, 2, 0, 185, 46, 42, 3, 37, 47, 21, 0, 60, 42, 14, 0, 72, 26, 38, 6, 186, 43, 117, 63, 32, 7, 3, 0, 3, 7, 2, 1, 2, 23, 16, 0, 2, 0, 95, 7, 3, 38, 17, 0, 2, 0, 29, 0, 11, 39, 8, 0, 22, 0, 12, 45, 20, 0, 19, 72, 264, 8, 2, 36, 18, 0, 50, 29, 113, 6, 2, 1, 2, 37, 22, 0, 26, 5, 2, 1, 2, 31, 15, 0, 328, 18, 16, 0, 2, 12, 2, 33, 125, 0, 80, 921, 103, 110, 18, 195, 2637, 96, 16, 1071, 18, 5, 4026, 582, 8634, 568, 8, 30, 18, 78, 18, 29, 19, 47, 17, 3, 32, 20, 6, 18, 689, 63, 129, 74, 6, 0, 67, 12, 65, 1, 2, 0, 29, 6135, 9, 1237, 43, 8, 8936, 3, 2, 6, 2, 1, 2, 290, 16, 0, 30, 2, 3, 0, 15, 3, 9, 395, 2309, 106, 6, 12, 4, 8, 8, 9, 5991, 84, 2, 70, 2, 1, 3, 0, 3, 1, 3, 3, 2, 11, 2, 0, 2, 6, 2, 64, 2, 3, 3, 7, 2, 6, 2, 27, 2, 3, 2, 4, 2, 0, 4, 6, 2, 339, 3, 24, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 30, 2, 24, 2, 7, 1845, 30, 7, 5, 262, 61, 147, 44, 11, 6, 17, 0, 322, 29, 19, 43, 485, 27, 757, 6, 2, 3, 2, 1, 2, 14, 2, 196, 60, 67, 8, 0, 1205, 3, 2, 26, 2, 1, 2, 0, 3, 0, 2, 9, 2, 3, 2, 0, 2, 0, 7, 0, 5, 0, 2, 0, 2, 0, 2, 2, 2, 1, 2, 0, 3, 0, 2, 0, 2, 0, 2, 0, 2, 0, 2, 1, 2, 0, 3, 3, 2, 6, 2, 3, 2, 3, 2, 0, 2, 9, 2, 16, 6, 2, 2, 4, 2, 16, 4421, 42719, 33, 4153, 7, 221, 3, 5761, 15, 7472, 16, 621, 2467, 541, 1507, 4938, 6, 4191];
15
+const astralIdentifierCodes = [509, 0, 227, 0, 150, 4, 294, 9, 1368, 2, 2, 1, 6, 3, 41, 2, 5, 0, 166, 1, 574, 3, 9, 9, 370, 1, 81, 2, 71, 10, 50, 3, 123, 2, 54, 14, 32, 10, 3, 1, 11, 3, 46, 10, 8, 0, 46, 9, 7, 2, 37, 13, 2, 9, 6, 1, 45, 0, 13, 2, 49, 13, 9, 3, 2, 11, 83, 11, 7, 0, 3, 0, 158, 11, 6, 9, 7, 3, 56, 1, 2, 6, 3, 1, 3, 2, 10, 0, 11, 1, 3, 6, 4, 4, 193, 17, 10, 9, 5, 0, 82, 19, 13, 9, 214, 6, 3, 8, 28, 1, 83, 16, 16, 9, 82, 12, 9, 9, 84, 14, 5, 9, 243, 14, 166, 9, 71, 5, 2, 1, 3, 3, 2, 0, 2, 1, 13, 9, 120, 6, 3, 6, 4, 0, 29, 9, 41, 6, 2, 3, 9, 0, 10, 10, 47, 15, 406, 7, 2, 7, 17, 9, 57, 21, 2, 13, 123, 5, 4, 0, 2, 1, 2, 6, 2, 0, 9, 9, 49, 4, 2, 1, 2, 4, 9, 9, 330, 3, 10, 1, 2, 0, 49, 6, 4, 4, 14, 9, 5351, 0, 7, 14, 13835, 9, 87, 9, 39, 4, 60, 6, 26, 9, 1014, 0, 2, 54, 8, 3, 82, 0, 12, 1, 19628, 1, 4706, 45, 3, 22, 543, 4, 4, 5, 9, 7, 3, 6, 31, 3, 149, 2, 1418, 49, 513, 54, 5, 49, 9, 0, 15, 0, 23, 4, 2, 14, 1361, 6, 2, 16, 3, 6, 2, 1, 2, 4, 101, 0, 161, 6, 10, 9, 357, 0, 62, 13, 499, 13, 983, 6, 110, 6, 6, 9, 4759, 9, 787719, 239];
16
+function isInAstralSet(code, set) {
17
+  let pos = 0x10000;
18
+  for (let i = 0, length = set.length; i < length; i += 2) {
19
+    pos += set[i];
20
+    if (pos > code) return false;
21
+    pos += set[i + 1];
22
+    if (pos >= code) return true;
23
+  }
24
+  return false;
25
+}
26
+function isIdentifierStart(code) {
27
+  if (code < 65) return code === 36;
28
+  if (code <= 90) return true;
29
+  if (code < 97) return code === 95;
30
+  if (code <= 122) return true;
31
+  if (code <= 0xffff) {
32
+    return code >= 0xaa && nonASCIIidentifierStart.test(String.fromCharCode(code));
33
+  }
34
+  return isInAstralSet(code, astralIdentifierStartCodes);
35
+}
36
+function isIdentifierChar(code) {
37
+  if (code < 48) return code === 36;
38
+  if (code < 58) return true;
39
+  if (code < 65) return false;
40
+  if (code <= 90) return true;
41
+  if (code < 97) return code === 95;
42
+  if (code <= 122) return true;
43
+  if (code <= 0xffff) {
44
+    return code >= 0xaa && nonASCIIidentifier.test(String.fromCharCode(code));
45
+  }
46
+  return isInAstralSet(code, astralIdentifierStartCodes) || isInAstralSet(code, astralIdentifierCodes);
47
+}
48
+function isIdentifierName(name) {
49
+  let isFirst = true;
50
+  for (let i = 0; i < name.length; i++) {
51
+    let cp = name.charCodeAt(i);
52
+    if ((cp & 0xfc00) === 0xd800 && i + 1 < name.length) {
53
+      const trail = name.charCodeAt(++i);
54
+      if ((trail & 0xfc00) === 0xdc00) {
55
+        cp = 0x10000 + ((cp & 0x3ff) << 10) + (trail & 0x3ff);
56
+      }
57
+    }
58
+    if (isFirst) {
59
+      isFirst = false;
60
+      if (!isIdentifierStart(cp)) {
61
+        return false;
62
+      }
63
+    } else if (!isIdentifierChar(cp)) {
64
+      return false;
65
+    }
66
+  }
67
+  return !isFirst;
68
+}
69
+
70
+//# sourceMappingURL=identifier.js.map

+ 1
- 0
node_modules/@babel/helper-validator-identifier/lib/identifier.js.map
File diff suppressed because it is too large
View File


+ 57
- 0
node_modules/@babel/helper-validator-identifier/lib/index.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+Object.defineProperty(exports, "isIdentifierChar", {
7
+  enumerable: true,
8
+  get: function () {
9
+    return _identifier.isIdentifierChar;
10
+  }
11
+});
12
+Object.defineProperty(exports, "isIdentifierName", {
13
+  enumerable: true,
14
+  get: function () {
15
+    return _identifier.isIdentifierName;
16
+  }
17
+});
18
+Object.defineProperty(exports, "isIdentifierStart", {
19
+  enumerable: true,
20
+  get: function () {
21
+    return _identifier.isIdentifierStart;
22
+  }
23
+});
24
+Object.defineProperty(exports, "isKeyword", {
25
+  enumerable: true,
26
+  get: function () {
27
+    return _keyword.isKeyword;
28
+  }
29
+});
30
+Object.defineProperty(exports, "isReservedWord", {
31
+  enumerable: true,
32
+  get: function () {
33
+    return _keyword.isReservedWord;
34
+  }
35
+});
36
+Object.defineProperty(exports, "isStrictBindOnlyReservedWord", {
37
+  enumerable: true,
38
+  get: function () {
39
+    return _keyword.isStrictBindOnlyReservedWord;
40
+  }
41
+});
42
+Object.defineProperty(exports, "isStrictBindReservedWord", {
43
+  enumerable: true,
44
+  get: function () {
45
+    return _keyword.isStrictBindReservedWord;
46
+  }
47
+});
48
+Object.defineProperty(exports, "isStrictReservedWord", {
49
+  enumerable: true,
50
+  get: function () {
51
+    return _keyword.isStrictReservedWord;
52
+  }
53
+});
54
+var _identifier = require("./identifier.js");
55
+var _keyword = require("./keyword.js");
56
+
57
+//# sourceMappingURL=index.js.map

+ 1
- 0
node_modules/@babel/helper-validator-identifier/lib/index.js.map View File

1
+{"version":3,"names":["_identifier","require","_keyword"],"sources":["../src/index.ts"],"sourcesContent":["export {\n  isIdentifierName,\n  isIdentifierChar,\n  isIdentifierStart,\n} from \"./identifier.ts\";\nexport {\n  isReservedWord,\n  isStrictBindOnlyReservedWord,\n  isStrictBindReservedWord,\n  isStrictReservedWord,\n  isKeyword,\n} from \"./keyword.ts\";\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,WAAA,GAAAC,OAAA;AAKA,IAAAC,QAAA,GAAAD,OAAA","ignoreList":[]}

+ 35
- 0
node_modules/@babel/helper-validator-identifier/lib/keyword.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.isKeyword = isKeyword;
7
+exports.isReservedWord = isReservedWord;
8
+exports.isStrictBindOnlyReservedWord = isStrictBindOnlyReservedWord;
9
+exports.isStrictBindReservedWord = isStrictBindReservedWord;
10
+exports.isStrictReservedWord = isStrictReservedWord;
11
+const reservedWords = {
12
+  keyword: ["break", "case", "catch", "continue", "debugger", "default", "do", "else", "finally", "for", "function", "if", "return", "switch", "throw", "try", "var", "const", "while", "with", "new", "this", "super", "class", "extends", "export", "import", "null", "true", "false", "in", "instanceof", "typeof", "void", "delete"],
13
+  strict: ["implements", "interface", "let", "package", "private", "protected", "public", "static", "yield"],
14
+  strictBind: ["eval", "arguments"]
15
+};
16
+const keywords = new Set(reservedWords.keyword);
17
+const reservedWordsStrictSet = new Set(reservedWords.strict);
18
+const reservedWordsStrictBindSet = new Set(reservedWords.strictBind);
19
+function isReservedWord(word, inModule) {
20
+  return inModule && word === "await" || word === "enum";
21
+}
22
+function isStrictReservedWord(word, inModule) {
23
+  return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word);
24
+}
25
+function isStrictBindOnlyReservedWord(word) {
26
+  return reservedWordsStrictBindSet.has(word);
27
+}
28
+function isStrictBindReservedWord(word, inModule) {
29
+  return isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word);
30
+}
31
+function isKeyword(word) {
32
+  return keywords.has(word);
33
+}
34
+
35
+//# sourceMappingURL=keyword.js.map

+ 1
- 0
node_modules/@babel/helper-validator-identifier/lib/keyword.js.map View File

1
+{"version":3,"names":["reservedWords","keyword","strict","strictBind","keywords","Set","reservedWordsStrictSet","reservedWordsStrictBindSet","isReservedWord","word","inModule","isStrictReservedWord","has","isStrictBindOnlyReservedWord","isStrictBindReservedWord","isKeyword"],"sources":["../src/keyword.ts"],"sourcesContent":["const reservedWords = {\n  keyword: [\n    \"break\",\n    \"case\",\n    \"catch\",\n    \"continue\",\n    \"debugger\",\n    \"default\",\n    \"do\",\n    \"else\",\n    \"finally\",\n    \"for\",\n    \"function\",\n    \"if\",\n    \"return\",\n    \"switch\",\n    \"throw\",\n    \"try\",\n    \"var\",\n    \"const\",\n    \"while\",\n    \"with\",\n    \"new\",\n    \"this\",\n    \"super\",\n    \"class\",\n    \"extends\",\n    \"export\",\n    \"import\",\n    \"null\",\n    \"true\",\n    \"false\",\n    \"in\",\n    \"instanceof\",\n    \"typeof\",\n    \"void\",\n    \"delete\",\n  ],\n  strict: [\n    \"implements\",\n    \"interface\",\n    \"let\",\n    \"package\",\n    \"private\",\n    \"protected\",\n    \"public\",\n    \"static\",\n    \"yield\",\n  ],\n  strictBind: [\"eval\", \"arguments\"],\n};\nconst keywords = new Set(reservedWords.keyword);\nconst reservedWordsStrictSet = new Set(reservedWords.strict);\nconst reservedWordsStrictBindSet = new Set(reservedWords.strictBind);\n\n/**\n * Checks if word is a reserved word in non-strict mode\n */\nexport function isReservedWord(word: string, inModule: boolean): boolean {\n  return (inModule && word === \"await\") || word === \"enum\";\n}\n\n/**\n * Checks if word is a reserved word in non-binding strict mode\n *\n * Includes non-strict reserved words\n */\nexport function isStrictReservedWord(word: string, inModule: boolean): boolean {\n  return isReservedWord(word, inModule) || reservedWordsStrictSet.has(word);\n}\n\n/**\n * Checks if word is a reserved word in binding strict mode, but it is allowed as\n * a normal identifier.\n */\nexport function isStrictBindOnlyReservedWord(word: string): boolean {\n  return reservedWordsStrictBindSet.has(word);\n}\n\n/**\n * Checks if word is a reserved word in binding strict mode\n *\n * Includes non-strict reserved words and non-binding strict reserved words\n */\nexport function isStrictBindReservedWord(\n  word: string,\n  inModule: boolean,\n): boolean {\n  return (\n    isStrictReservedWord(word, inModule) || isStrictBindOnlyReservedWord(word)\n  );\n}\n\nexport function isKeyword(word: string): boolean {\n  return keywords.has(word);\n}\n"],"mappings":";;;;;;;;;;AAAA,MAAMA,aAAa,GAAG;EACpBC,OAAO,EAAE,CACP,OAAO,EACP,MAAM,EACN,OAAO,EACP,UAAU,EACV,UAAU,EACV,SAAS,EACT,IAAI,EACJ,MAAM,EACN,SAAS,EACT,KAAK,EACL,UAAU,EACV,IAAI,EACJ,QAAQ,EACR,QAAQ,EACR,OAAO,EACP,KAAK,EACL,KAAK,EACL,OAAO,EACP,OAAO,EACP,MAAM,EACN,KAAK,EACL,MAAM,EACN,OAAO,EACP,OAAO,EACP,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,MAAM,EACN,MAAM,EACN,OAAO,EACP,IAAI,EACJ,YAAY,EACZ,QAAQ,EACR,MAAM,EACN,QAAQ,CACT;EACDC,MAAM,EAAE,CACN,YAAY,EACZ,WAAW,EACX,KAAK,EACL,SAAS,EACT,SAAS,EACT,WAAW,EACX,QAAQ,EACR,QAAQ,EACR,OAAO,CACR;EACDC,UAAU,EAAE,CAAC,MAAM,EAAE,WAAW;AAClC,CAAC;AACD,MAAMC,QAAQ,GAAG,IAAIC,GAAG,CAACL,aAAa,CAACC,OAAO,CAAC;AAC/C,MAAMK,sBAAsB,GAAG,IAAID,GAAG,CAACL,aAAa,CAACE,MAAM,CAAC;AAC5D,MAAMK,0BAA0B,GAAG,IAAIF,GAAG,CAACL,aAAa,CAACG,UAAU,CAAC;AAK7D,SAASK,cAAcA,CAACC,IAAY,EAAEC,QAAiB,EAAW;EACvE,OAAQA,QAAQ,IAAID,IAAI,KAAK,OAAO,IAAKA,IAAI,KAAK,MAAM;AAC1D;AAOO,SAASE,oBAAoBA,CAACF,IAAY,EAAEC,QAAiB,EAAW;EAC7E,OAAOF,cAAc,CAACC,IAAI,EAAEC,QAAQ,CAAC,IAAIJ,sBAAsB,CAACM,GAAG,CAACH,IAAI,CAAC;AAC3E;AAMO,SAASI,4BAA4BA,CAACJ,IAAY,EAAW;EAClE,OAAOF,0BAA0B,CAACK,GAAG,CAACH,IAAI,CAAC;AAC7C;AAOO,SAASK,wBAAwBA,CACtCL,IAAY,EACZC,QAAiB,EACR;EACT,OACEC,oBAAoB,CAACF,IAAI,EAAEC,QAAQ,CAAC,IAAIG,4BAA4B,CAACJ,IAAI,CAAC;AAE9E;AAEO,SAASM,SAASA,CAACN,IAAY,EAAW;EAC/C,OAAOL,QAAQ,CAACQ,GAAG,CAACH,IAAI,CAAC;AAC3B","ignoreList":[]}

+ 31
- 0
node_modules/@babel/helper-validator-identifier/package.json View File

1
+{
2
+  "name": "@babel/helper-validator-identifier",
3
+  "version": "7.24.7",
4
+  "description": "Validate identifier/keywords name",
5
+  "repository": {
6
+    "type": "git",
7
+    "url": "https://github.com/babel/babel.git",
8
+    "directory": "packages/babel-helper-validator-identifier"
9
+  },
10
+  "license": "MIT",
11
+  "publishConfig": {
12
+    "access": "public"
13
+  },
14
+  "main": "./lib/index.js",
15
+  "exports": {
16
+    ".": {
17
+      "types": "./lib/index.d.ts",
18
+      "default": "./lib/index.js"
19
+    },
20
+    "./package.json": "./package.json"
21
+  },
22
+  "devDependencies": {
23
+    "@unicode/unicode-15.1.0": "^1.5.2",
24
+    "charcodes": "^0.2.0"
25
+  },
26
+  "engines": {
27
+    "node": ">=6.9.0"
28
+  },
29
+  "author": "The Babel Team (https://babel.dev/team)",
30
+  "type": "commonjs"
31
+}

+ 73
- 0
node_modules/@babel/helper-validator-identifier/scripts/generate-identifier-regex.js View File

1
+"use strict";
2
+
3
+// Always use the latest available version of Unicode!
4
+// https://tc39.github.io/ecma262/#sec-conformance
5
+const version = "15.1.0";
6
+
7
+const start = require(
8
+  "@unicode/unicode-" + version + "/Binary_Property/ID_Start/code-points.js"
9
+).filter(function (ch) {
10
+  return ch > 0x7f;
11
+});
12
+let last = -1;
13
+const cont = require(
14
+  "@unicode/unicode-" + version + "/Binary_Property/ID_Continue/code-points.js"
15
+).filter(function (ch) {
16
+  return ch > 0x7f && search(start, ch, last + 1) === -1;
17
+});
18
+
19
+function search(arr, ch, starting) {
20
+  for (let i = starting; arr[i] <= ch && i < arr.length; last = i++) {
21
+    if (arr[i] === ch) return i;
22
+  }
23
+  return -1;
24
+}
25
+
26
+function pad(str, width) {
27
+  while (str.length < width) str = "0" + str;
28
+  return str;
29
+}
30
+
31
+function esc(code) {
32
+  const hex = code.toString(16);
33
+  if (hex.length <= 2) return "\\x" + pad(hex, 2);
34
+  else return "\\u" + pad(hex, 4);
35
+}
36
+
37
+function generate(chars) {
38
+  const astral = [];
39
+  let re = "";
40
+  for (let i = 0, at = 0x10000; i < chars.length; i++) {
41
+    const from = chars[i];
42
+    let to = from;
43
+    while (i < chars.length - 1 && chars[i + 1] === to + 1) {
44
+      i++;
45
+      to++;
46
+    }
47
+    if (to <= 0xffff) {
48
+      if (from === to) re += esc(from);
49
+      else if (from + 1 === to) re += esc(from) + esc(to);
50
+      else re += esc(from) + "-" + esc(to);
51
+    } else {
52
+      astral.push(from - at, to - from);
53
+      at = to;
54
+    }
55
+  }
56
+  return { nonASCII: re, astral: astral };
57
+}
58
+
59
+const startData = generate(start);
60
+const contData = generate(cont);
61
+
62
+console.log("/* prettier-ignore */");
63
+console.log('let nonASCIIidentifierStartChars = "' + startData.nonASCII + '";');
64
+console.log("/* prettier-ignore */");
65
+console.log('let nonASCIIidentifierChars = "' + contData.nonASCII + '";');
66
+console.log("/* prettier-ignore */");
67
+console.log(
68
+  "const astralIdentifierStartCodes = " + JSON.stringify(startData.astral) + ";"
69
+);
70
+console.log("/* prettier-ignore */");
71
+console.log(
72
+  "const astralIdentifierCodes = " + JSON.stringify(contData.astral) + ";"
73
+);

+ 1073
- 0
node_modules/@babel/parser/CHANGELOG.md
File diff suppressed because it is too large
View File


+ 19
- 0
node_modules/@babel/parser/LICENSE View File

1
+Copyright (C) 2012-2014 by various contributors (see AUTHORS)
2
+
3
+Permission is hereby granted, free of charge, to any person obtaining a copy
4
+of this software and associated documentation files (the "Software"), to deal
5
+in the Software without restriction, including without limitation the rights
6
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7
+copies of the Software, and to permit persons to whom the Software is
8
+furnished to do so, subject to the following conditions:
9
+
10
+The above copyright notice and this permission notice shall be included in
11
+all copies or substantial portions of the Software.
12
+
13
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19
+THE SOFTWARE.

+ 19
- 0
node_modules/@babel/parser/README.md View File

1
+# @babel/parser
2
+
3
+> A JavaScript parser
4
+
5
+See our website [@babel/parser](https://babeljs.io/docs/babel-parser) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20parser%22+is%3Aopen) associated with this package.
6
+
7
+## Install
8
+
9
+Using npm:
10
+
11
+```sh
12
+npm install --save-dev @babel/parser
13
+```
14
+
15
+or using yarn:
16
+
17
+```sh
18
+yarn add @babel/parser --dev
19
+```

+ 15
- 0
node_modules/@babel/parser/bin/babel-parser.js View File

1
+#!/usr/bin/env node
2
+/* eslint no-var: 0 */
3
+
4
+var parser = require("..");
5
+var fs = require("fs");
6
+
7
+var filename = process.argv[2];
8
+if (!filename) {
9
+  console.error("no filename specified");
10
+} else {
11
+  var file = fs.readFileSync(filename, "utf8");
12
+  var ast = parser.parse(file);
13
+
14
+  console.log(JSON.stringify(ast, null, "  "));
15
+}

+ 5
- 0
node_modules/@babel/parser/index.cjs View File

1
+try {
2
+  module.exports = require("./lib/index.cjs");
3
+} catch {
4
+  module.exports = require("./lib/index.js");
5
+}

+ 13987
- 0
node_modules/@babel/parser/lib/index.js
File diff suppressed because it is too large
View File


+ 1
- 0
node_modules/@babel/parser/lib/index.js.map
File diff suppressed because it is too large
View File


+ 50
- 0
node_modules/@babel/parser/package.json View File

1
+{
2
+  "name": "@babel/parser",
3
+  "version": "7.25.4",
4
+  "description": "A JavaScript parser",
5
+  "author": "The Babel Team (https://babel.dev/team)",
6
+  "homepage": "https://babel.dev/docs/en/next/babel-parser",
7
+  "bugs": "https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A+parser+%28babylon%29%22+is%3Aopen",
8
+  "license": "MIT",
9
+  "publishConfig": {
10
+    "access": "public"
11
+  },
12
+  "keywords": [
13
+    "babel",
14
+    "javascript",
15
+    "parser",
16
+    "tc39",
17
+    "ecmascript",
18
+    "@babel/parser"
19
+  ],
20
+  "repository": {
21
+    "type": "git",
22
+    "url": "https://github.com/babel/babel.git",
23
+    "directory": "packages/babel-parser"
24
+  },
25
+  "main": "./lib/index.js",
26
+  "types": "./typings/babel-parser.d.ts",
27
+  "files": [
28
+    "bin",
29
+    "lib",
30
+    "typings/babel-parser.d.ts",
31
+    "index.cjs"
32
+  ],
33
+  "engines": {
34
+    "node": ">=6.0.0"
35
+  },
36
+  "# dependencies": "This package doesn't actually have runtime dependencies. @babel/types is only needed for type definitions.",
37
+  "dependencies": {
38
+    "@babel/types": "^7.25.4"
39
+  },
40
+  "devDependencies": {
41
+    "@babel/code-frame": "^7.24.7",
42
+    "@babel/helper-check-duplicate-nodes": "^7.24.7",
43
+    "@babel/helper-fixtures": "^7.24.8",
44
+    "@babel/helper-string-parser": "^7.24.8",
45
+    "@babel/helper-validator-identifier": "^7.24.7",
46
+    "charcodes": "^0.2.0"
47
+  },
48
+  "bin": "./bin/babel-parser.js",
49
+  "type": "commonjs"
50
+}

+ 253
- 0
node_modules/@babel/parser/typings/babel-parser.d.ts View File

1
+// This file is auto-generated! Do not modify it directly.
2
+/* eslint-disable @typescript-eslint/consistent-type-imports, @typescript-eslint/no-redundant-type-constituents, prettier/prettier */
3
+import * as _babel_types from '@babel/types';
4
+
5
+type BABEL_8_BREAKING = false;
6
+type IF_BABEL_7<V> = false extends BABEL_8_BREAKING ? V : never;
7
+
8
+type Plugin =
9
+  | "asyncDoExpressions"
10
+  | IF_BABEL_7<"asyncGenerators">
11
+  | IF_BABEL_7<"bigInt">
12
+  | IF_BABEL_7<"classPrivateMethods">
13
+  | IF_BABEL_7<"classPrivateProperties">
14
+  | IF_BABEL_7<"classProperties">
15
+  | IF_BABEL_7<"classStaticBlock">
16
+  | "decimal"
17
+  | "decorators-legacy"
18
+  | "deferredImportEvaluation"
19
+  | "decoratorAutoAccessors"
20
+  | "destructuringPrivate"
21
+  | "doExpressions"
22
+  | IF_BABEL_7<"dynamicImport">
23
+  | "explicitResourceManagement"
24
+  | "exportDefaultFrom"
25
+  | IF_BABEL_7<"exportNamespaceFrom">
26
+  | "flow"
27
+  | "flowComments"
28
+  | "functionBind"
29
+  | "functionSent"
30
+  | "importMeta"
31
+  | "jsx"
32
+  | IF_BABEL_7<"logicalAssignment">
33
+  | "importAssertions" // deprecated
34
+  | "importAttributes"
35
+  | "importReflection"
36
+  | "moduleBlocks"
37
+  | IF_BABEL_7<"moduleStringNames">
38
+  | IF_BABEL_7<"nullishCoalescingOperator">
39
+  | IF_BABEL_7<"numericSeparator">
40
+  | IF_BABEL_7<"objectRestSpread">
41
+  | IF_BABEL_7<"optionalCatchBinding">
42
+  | IF_BABEL_7<"optionalChaining">
43
+  | "partialApplication"
44
+  | "placeholders"
45
+  | IF_BABEL_7<"privateIn">
46
+  | IF_BABEL_7<"regexpUnicodeSets">
47
+  | "sourcePhaseImports"
48
+  | "throwExpressions"
49
+  | IF_BABEL_7<"topLevelAwait">
50
+  | "v8intrinsic"
51
+  | ParserPluginWithOptions[0];
52
+
53
+type ParserPluginWithOptions =
54
+  | ["decorators", DecoratorsPluginOptions]
55
+  | ["estree", { classFeatures?: boolean }]
56
+  | ["importAttributes", { deprecatedAssertSyntax: boolean }]
57
+  | IF_BABEL_7<["moduleAttributes", { version: "may-2020" }]>
58
+  | ["optionalChainingAssign", { version: "2023-07" }]
59
+  | ["pipelineOperator", PipelineOperatorPluginOptions]
60
+  | ["recordAndTuple", RecordAndTuplePluginOptions]
61
+  | ["flow", FlowPluginOptions]
62
+  | ["typescript", TypeScriptPluginOptions];
63
+
64
+type PluginConfig = Plugin | ParserPluginWithOptions;
65
+
66
+interface DecoratorsPluginOptions {
67
+  decoratorsBeforeExport?: boolean;
68
+  allowCallParenthesized?: boolean;
69
+}
70
+
71
+interface PipelineOperatorPluginOptions {
72
+  proposal: "minimal" | "fsharp" | "hack" | "smart";
73
+  topicToken?: "%" | "#" | "@@" | "^^" | "^";
74
+}
75
+
76
+interface RecordAndTuplePluginOptions {
77
+  syntaxType: "bar" | "hash";
78
+}
79
+
80
+interface FlowPluginOptions {
81
+  all?: boolean;
82
+  enums?: boolean;
83
+}
84
+
85
+interface TypeScriptPluginOptions {
86
+  dts?: boolean;
87
+  disallowAmbiguousJSXLike?: boolean;
88
+}
89
+
90
+// Type definitions for @babel/parser
91
+// Project: https://github.com/babel/babel/tree/main/packages/babel-parser
92
+// Definitions by: Troy Gerwien <https://github.com/yortus>
93
+//                 Marvin Hagemeister <https://github.com/marvinhagemeister>
94
+//                 Avi Vahl <https://github.com/AviVahl>
95
+// TypeScript Version: 2.9
96
+
97
+/**
98
+ * Parse the provided code as an entire ECMAScript program.
99
+ */
100
+declare function parse(
101
+  input: string,
102
+  options?: ParserOptions
103
+): ParseResult<_babel_types.File>;
104
+
105
+/**
106
+ * Parse the provided code as a single expression.
107
+ */
108
+declare function parseExpression(
109
+  input: string,
110
+  options?: ParserOptions
111
+): ParseResult<_babel_types.Expression>;
112
+
113
+interface ParserOptions {
114
+  /**
115
+   * By default, import and export declarations can only appear at a program's top level.
116
+   * Setting this option to true allows them anywhere where a statement is allowed.
117
+   */
118
+  allowImportExportEverywhere?: boolean;
119
+
120
+  /**
121
+   * By default, await use is not allowed outside of an async function.
122
+   * Set this to true to accept such code.
123
+   */
124
+  allowAwaitOutsideFunction?: boolean;
125
+
126
+  /**
127
+   * By default, a return statement at the top level raises an error.
128
+   * Set this to true to accept such code.
129
+   */
130
+  allowReturnOutsideFunction?: boolean;
131
+
132
+  /**
133
+   * By default, new.target use is not allowed outside of a function or class.
134
+   * Set this to true to accept such code.
135
+   */
136
+  allowNewTargetOutsideFunction?: boolean;
137
+
138
+  allowSuperOutsideMethod?: boolean;
139
+
140
+  /**
141
+   * By default, exported identifiers must refer to a declared variable.
142
+   * Set this to true to allow export statements to reference undeclared variables.
143
+   */
144
+  allowUndeclaredExports?: boolean;
145
+
146
+  /**
147
+   * By default, Babel parser JavaScript code according to Annex B syntax.
148
+   * Set this to `false` to disable such behavior.
149
+   */
150
+  annexB?: boolean;
151
+
152
+  /**
153
+   * By default, Babel attaches comments to adjacent AST nodes.
154
+   * When this option is set to false, comments are not attached.
155
+   * It can provide up to 30% performance improvement when the input code has many comments.
156
+   * @babel/eslint-parser will set it for you.
157
+   * It is not recommended to use attachComment: false with Babel transform,
158
+   * as doing so removes all the comments in output code, and renders annotations such as
159
+   * /* istanbul ignore next *\/ nonfunctional.
160
+   */
161
+  attachComment?: boolean;
162
+
163
+  /**
164
+   * By default, Babel always throws an error when it finds some invalid code.
165
+   * When this option is set to true, it will store the parsing error and
166
+   * try to continue parsing the invalid input file.
167
+   */
168
+  errorRecovery?: boolean;
169
+
170
+  /**
171
+   * Indicate the mode the code should be parsed in.
172
+   * Can be one of "script", "module", or "unambiguous". Defaults to "script".
173
+   * "unambiguous" will make @babel/parser attempt to guess, based on the presence
174
+   * of ES6 import or export statements.
175
+   * Files with ES6 imports and exports are considered "module" and are otherwise "script".
176
+   */
177
+  sourceType?: "script" | "module" | "unambiguous";
178
+
179
+  /**
180
+   * Correlate output AST nodes with their source filename.
181
+   * Useful when generating code and source maps from the ASTs of multiple input files.
182
+   */
183
+  sourceFilename?: string;
184
+
185
+  /**
186
+   * By default, the first line of code parsed is treated as line 1.
187
+   * You can provide a line number to alternatively start with.
188
+   * Useful for integration with other source tools.
189
+   */
190
+  startLine?: number;
191
+
192
+  /**
193
+   * By default, the parsed code is treated as if it starts from line 1, column 0.
194
+   * You can provide a column number to alternatively start with.
195
+   * Useful for integration with other source tools.
196
+   */
197
+  startColumn?: number;
198
+
199
+  /**
200
+   * Array containing the plugins that you want to enable.
201
+   */
202
+  plugins?: ParserPlugin[];
203
+
204
+  /**
205
+   * Should the parser work in strict mode.
206
+   * Defaults to true if sourceType === 'module'. Otherwise, false.
207
+   */
208
+  strictMode?: boolean;
209
+
210
+  /**
211
+   * Adds a ranges property to each node: [node.start, node.end]
212
+   */
213
+  ranges?: boolean;
214
+
215
+  /**
216
+   * Adds all parsed tokens to a tokens property on the File node.
217
+   */
218
+  tokens?: boolean;
219
+
220
+  /**
221
+   * By default, the parser adds information about parentheses by setting
222
+   * `extra.parenthesized` to `true` as needed.
223
+   * When this option is `true` the parser creates `ParenthesizedExpression`
224
+   * AST nodes instead of using the `extra` property.
225
+   */
226
+  createParenthesizedExpressions?: boolean;
227
+
228
+  /**
229
+   * The default is false in Babel 7 and true in Babel 8
230
+   * Set this to true to parse it as an `ImportExpression` node.
231
+   * Otherwise `import(foo)` is parsed as `CallExpression(Import, [Identifier(foo)])`.
232
+   */
233
+  createImportExpressions?: boolean;
234
+}
235
+
236
+type ParserPlugin = PluginConfig;
237
+
238
+
239
+declare const tokTypes: {
240
+  // todo(flow->ts) real token type
241
+  [name: string]: any;
242
+};
243
+
244
+interface ParseError {
245
+  code: string;
246
+  reasonCode: string;
247
+}
248
+
249
+type ParseResult<Result> = Result & {
250
+  errors: ParseError[];
251
+};
252
+
253
+export { DecoratorsPluginOptions, FlowPluginOptions, ParseError, ParseResult, ParserOptions, ParserPlugin, ParserPluginWithOptions, PipelineOperatorPluginOptions, RecordAndTuplePluginOptions, TypeScriptPluginOptions, parse, parseExpression, tokTypes };

+ 22
- 0
node_modules/@babel/types/LICENSE View File

1
+MIT License
2
+
3
+Copyright (c) 2014-present Sebastian McKenzie and other contributors
4
+
5
+Permission is hereby granted, free of charge, to any person obtaining
6
+a copy of this software and associated documentation files (the
7
+"Software"), to deal in the Software without restriction, including
8
+without limitation the rights to use, copy, modify, merge, publish,
9
+distribute, sublicense, and/or sell copies of the Software, and to
10
+permit persons to whom the Software is furnished to do so, subject to
11
+the following conditions:
12
+
13
+The above copyright notice and this permission notice shall be
14
+included in all copies or substantial portions of the Software.
15
+
16
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

+ 19
- 0
node_modules/@babel/types/README.md View File

1
+# @babel/types
2
+
3
+> Babel Types is a Lodash-esque utility library for AST nodes
4
+
5
+See our website [@babel/types](https://babeljs.io/docs/babel-types) for more information or the [issues](https://github.com/babel/babel/issues?utf8=%E2%9C%93&q=is%3Aissue+label%3A%22pkg%3A%20types%22+is%3Aopen) associated with this package.
6
+
7
+## Install
8
+
9
+Using npm:
10
+
11
+```sh
12
+npm install --save-dev @babel/types
13
+```
14
+
15
+or using yarn:
16
+
17
+```sh
18
+yarn add @babel/types --dev
19
+```

+ 16
- 0
node_modules/@babel/types/lib/asserts/assertNode.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.default = assertNode;
7
+var _isNode = require("../validators/isNode.js");
8
+function assertNode(node) {
9
+  if (!(0, _isNode.default)(node)) {
10
+    var _node$type;
11
+    const type = (_node$type = node == null ? void 0 : node.type) != null ? _node$type : JSON.stringify(node);
12
+    throw new TypeError(`Not a valid node of type "${type}"`);
13
+  }
14
+}
15
+
16
+//# sourceMappingURL=assertNode.js.map

+ 1
- 0
node_modules/@babel/types/lib/asserts/assertNode.js.map View File

1
+{"version":3,"names":["_isNode","require","assertNode","node","isNode","_node$type","type","JSON","stringify","TypeError"],"sources":["../../src/asserts/assertNode.ts"],"sourcesContent":["import isNode from \"../validators/isNode.ts\";\nimport type * as t from \"../index.ts\";\n\nexport default function assertNode(node?: any): asserts node is t.Node {\n  if (!isNode(node)) {\n    const type = node?.type ?? JSON.stringify(node);\n    throw new TypeError(`Not a valid node of type \"${type}\"`);\n  }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,OAAA,GAAAC,OAAA;AAGe,SAASC,UAAUA,CAACC,IAAU,EAA0B;EACrE,IAAI,CAAC,IAAAC,eAAM,EAACD,IAAI,CAAC,EAAE;IAAA,IAAAE,UAAA;IACjB,MAAMC,IAAI,IAAAD,UAAA,GAAGF,IAAI,oBAAJA,IAAI,CAAEG,IAAI,YAAAD,UAAA,GAAIE,IAAI,CAACC,SAAS,CAACL,IAAI,CAAC;IAC/C,MAAM,IAAIM,SAAS,CAAC,6BAA6BH,IAAI,GAAG,CAAC;EAC3D;AACF","ignoreList":[]}

+ 1235
- 0
node_modules/@babel/types/lib/asserts/generated/index.js
File diff suppressed because it is too large
View File


+ 1
- 0
node_modules/@babel/types/lib/asserts/generated/index.js.map
File diff suppressed because it is too large
View File


+ 3
- 0
node_modules/@babel/types/lib/ast-types/generated/index.js View File

1
+
2
+
3
+//# sourceMappingURL=index.js.map

+ 1
- 0
node_modules/@babel/types/lib/ast-types/generated/index.js.map
File diff suppressed because it is too large
View File


+ 18
- 0
node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.default = createFlowUnionType;
7
+var _index = require("../generated/index.js");
8
+var _removeTypeDuplicates = require("../../modifications/flow/removeTypeDuplicates.js");
9
+function createFlowUnionType(types) {
10
+  const flattened = (0, _removeTypeDuplicates.default)(types);
11
+  if (flattened.length === 1) {
12
+    return flattened[0];
13
+  } else {
14
+    return (0, _index.unionTypeAnnotation)(flattened);
15
+  }
16
+}
17
+
18
+//# sourceMappingURL=createFlowUnionType.js.map

+ 1
- 0
node_modules/@babel/types/lib/builders/flow/createFlowUnionType.js.map View File

1
+{"version":3,"names":["_index","require","_removeTypeDuplicates","createFlowUnionType","types","flattened","removeTypeDuplicates","length","unionTypeAnnotation"],"sources":["../../../src/builders/flow/createFlowUnionType.ts"],"sourcesContent":["import { unionTypeAnnotation } from \"../generated/index.ts\";\nimport removeTypeDuplicates from \"../../modifications/flow/removeTypeDuplicates.ts\";\nimport type * as t from \"../../index.ts\";\n\n/**\n * Takes an array of `types` and flattens them, removing duplicates and\n * returns a `UnionTypeAnnotation` node containing them.\n */\nexport default function createFlowUnionType<T extends t.FlowType>(\n  types: [T] | Array<T>,\n): T | t.UnionTypeAnnotation {\n  const flattened = removeTypeDuplicates(types);\n\n  if (flattened.length === 1) {\n    return flattened[0] as T;\n  } else {\n    return unionTypeAnnotation(flattened);\n  }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAD,OAAA;AAOe,SAASE,mBAAmBA,CACzCC,KAAqB,EACM;EAC3B,MAAMC,SAAS,GAAG,IAAAC,6BAAoB,EAACF,KAAK,CAAC;EAE7C,IAAIC,SAAS,CAACE,MAAM,KAAK,CAAC,EAAE;IAC1B,OAAOF,SAAS,CAAC,CAAC,CAAC;EACrB,CAAC,MAAM;IACL,OAAO,IAAAG,0BAAmB,EAACH,SAAS,CAAC;EACvC;AACF","ignoreList":[]}

+ 31
- 0
node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.default = void 0;
7
+var _index = require("../generated/index.js");
8
+var _default = exports.default = createTypeAnnotationBasedOnTypeof;
9
+function createTypeAnnotationBasedOnTypeof(type) {
10
+  switch (type) {
11
+    case "string":
12
+      return (0, _index.stringTypeAnnotation)();
13
+    case "number":
14
+      return (0, _index.numberTypeAnnotation)();
15
+    case "undefined":
16
+      return (0, _index.voidTypeAnnotation)();
17
+    case "boolean":
18
+      return (0, _index.booleanTypeAnnotation)();
19
+    case "function":
20
+      return (0, _index.genericTypeAnnotation)((0, _index.identifier)("Function"));
21
+    case "object":
22
+      return (0, _index.genericTypeAnnotation)((0, _index.identifier)("Object"));
23
+    case "symbol":
24
+      return (0, _index.genericTypeAnnotation)((0, _index.identifier)("Symbol"));
25
+    case "bigint":
26
+      return (0, _index.anyTypeAnnotation)();
27
+  }
28
+  throw new Error("Invalid typeof value: " + type);
29
+}
30
+
31
+//# sourceMappingURL=createTypeAnnotationBasedOnTypeof.js.map

+ 1
- 0
node_modules/@babel/types/lib/builders/flow/createTypeAnnotationBasedOnTypeof.js.map View File

1
+{"version":3,"names":["_index","require","_default","exports","default","createTypeAnnotationBasedOnTypeof","type","stringTypeAnnotation","numberTypeAnnotation","voidTypeAnnotation","booleanTypeAnnotation","genericTypeAnnotation","identifier","anyTypeAnnotation","Error"],"sources":["../../../src/builders/flow/createTypeAnnotationBasedOnTypeof.ts"],"sourcesContent":["import {\n  anyTypeAnnotation,\n  stringTypeAnnotation,\n  numberTypeAnnotation,\n  voidTypeAnnotation,\n  booleanTypeAnnotation,\n  genericTypeAnnotation,\n  identifier,\n} from \"../generated/index.ts\";\nimport type * as t from \"../../index.ts\";\n\nexport default createTypeAnnotationBasedOnTypeof as {\n  (type: \"string\"): t.StringTypeAnnotation;\n  (type: \"number\"): t.NumberTypeAnnotation;\n  (type: \"undefined\"): t.VoidTypeAnnotation;\n  (type: \"boolean\"): t.BooleanTypeAnnotation;\n  (type: \"function\"): t.GenericTypeAnnotation;\n  (type: \"object\"): t.GenericTypeAnnotation;\n  (type: \"symbol\"): t.GenericTypeAnnotation;\n  (type: \"bigint\"): t.AnyTypeAnnotation;\n};\n\n/**\n * Create a type annotation based on typeof expression.\n */\nfunction createTypeAnnotationBasedOnTypeof(type: string): t.FlowType {\n  switch (type) {\n    case \"string\":\n      return stringTypeAnnotation();\n    case \"number\":\n      return numberTypeAnnotation();\n    case \"undefined\":\n      return voidTypeAnnotation();\n    case \"boolean\":\n      return booleanTypeAnnotation();\n    case \"function\":\n      return genericTypeAnnotation(identifier(\"Function\"));\n    case \"object\":\n      return genericTypeAnnotation(identifier(\"Object\"));\n    case \"symbol\":\n      return genericTypeAnnotation(identifier(\"Symbol\"));\n    case \"bigint\":\n      // todo: use BigInt annotation when Flow supports BigInt\n      // https://github.com/facebook/flow/issues/6639\n      return anyTypeAnnotation();\n  }\n  throw new Error(\"Invalid typeof value: \" + type);\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAQ+B,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAGhBC,iCAAiC;AAchD,SAASA,iCAAiCA,CAACC,IAAY,EAAc;EACnE,QAAQA,IAAI;IACV,KAAK,QAAQ;MACX,OAAO,IAAAC,2BAAoB,EAAC,CAAC;IAC/B,KAAK,QAAQ;MACX,OAAO,IAAAC,2BAAoB,EAAC,CAAC;IAC/B,KAAK,WAAW;MACd,OAAO,IAAAC,yBAAkB,EAAC,CAAC;IAC7B,KAAK,SAAS;MACZ,OAAO,IAAAC,4BAAqB,EAAC,CAAC;IAChC,KAAK,UAAU;MACb,OAAO,IAAAC,4BAAqB,EAAC,IAAAC,iBAAU,EAAC,UAAU,CAAC,CAAC;IACtD,KAAK,QAAQ;MACX,OAAO,IAAAD,4BAAqB,EAAC,IAAAC,iBAAU,EAAC,QAAQ,CAAC,CAAC;IACpD,KAAK,QAAQ;MACX,OAAO,IAAAD,4BAAqB,EAAC,IAAAC,iBAAU,EAAC,QAAQ,CAAC,CAAC;IACpD,KAAK,QAAQ;MAGX,OAAO,IAAAC,wBAAiB,EAAC,CAAC;EAC9B;EACA,MAAM,IAAIC,KAAK,CAAC,wBAAwB,GAAGR,IAAI,CAAC;AAClD","ignoreList":[]}

+ 1991
- 0
node_modules/@babel/types/lib/builders/generated/index.js
File diff suppressed because it is too large
View File


+ 1
- 0
node_modules/@babel/types/lib/builders/generated/index.js.map
File diff suppressed because it is too large
View File


+ 1532
- 0
node_modules/@babel/types/lib/builders/generated/uppercase.js
File diff suppressed because it is too large
View File


+ 1
- 0
node_modules/@babel/types/lib/builders/generated/uppercase.js.map
File diff suppressed because it is too large
View File


+ 12
- 0
node_modules/@babel/types/lib/builders/productions.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.buildUndefinedNode = buildUndefinedNode;
7
+var _index = require("./generated/index.js");
8
+function buildUndefinedNode() {
9
+  return (0, _index.unaryExpression)("void", (0, _index.numericLiteral)(0), true);
10
+}
11
+
12
+//# sourceMappingURL=productions.js.map

+ 1
- 0
node_modules/@babel/types/lib/builders/productions.js.map View File

1
+{"version":3,"names":["_index","require","buildUndefinedNode","unaryExpression","numericLiteral"],"sources":["../../src/builders/productions.ts"],"sourcesContent":["import { numericLiteral, unaryExpression } from \"./generated/index.ts\";\n\nexport function buildUndefinedNode() {\n  return unaryExpression(\"void\", numericLiteral(0), true);\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAEO,SAASC,kBAAkBA,CAAA,EAAG;EACnC,OAAO,IAAAC,sBAAe,EAAC,MAAM,EAAE,IAAAC,qBAAc,EAAC,CAAC,CAAC,EAAE,IAAI,CAAC;AACzD","ignoreList":[]}

+ 24
- 0
node_modules/@babel/types/lib/builders/react/buildChildren.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.default = buildChildren;
7
+var _index = require("../../validators/generated/index.js");
8
+var _cleanJSXElementLiteralChild = require("../../utils/react/cleanJSXElementLiteralChild.js");
9
+function buildChildren(node) {
10
+  const elements = [];
11
+  for (let i = 0; i < node.children.length; i++) {
12
+    let child = node.children[i];
13
+    if ((0, _index.isJSXText)(child)) {
14
+      (0, _cleanJSXElementLiteralChild.default)(child, elements);
15
+      continue;
16
+    }
17
+    if ((0, _index.isJSXExpressionContainer)(child)) child = child.expression;
18
+    if ((0, _index.isJSXEmptyExpression)(child)) continue;
19
+    elements.push(child);
20
+  }
21
+  return elements;
22
+}
23
+
24
+//# sourceMappingURL=buildChildren.js.map

+ 1
- 0
node_modules/@babel/types/lib/builders/react/buildChildren.js.map View File

1
+{"version":3,"names":["_index","require","_cleanJSXElementLiteralChild","buildChildren","node","elements","i","children","length","child","isJSXText","cleanJSXElementLiteralChild","isJSXExpressionContainer","expression","isJSXEmptyExpression","push"],"sources":["../../../src/builders/react/buildChildren.ts"],"sourcesContent":["import {\n  isJSXText,\n  isJSXExpressionContainer,\n  isJSXEmptyExpression,\n} from \"../../validators/generated/index.ts\";\nimport cleanJSXElementLiteralChild from \"../../utils/react/cleanJSXElementLiteralChild.ts\";\nimport type * as t from \"../../index.ts\";\n\ntype ReturnedChild =\n  | t.JSXSpreadChild\n  | t.JSXElement\n  | t.JSXFragment\n  | t.Expression;\n\nexport default function buildChildren(\n  node: t.JSXElement | t.JSXFragment,\n): ReturnedChild[] {\n  const elements = [];\n\n  for (let i = 0; i < node.children.length; i++) {\n    let child: any = node.children[i];\n\n    if (isJSXText(child)) {\n      cleanJSXElementLiteralChild(child, elements);\n      continue;\n    }\n\n    if (isJSXExpressionContainer(child)) child = child.expression;\n    if (isJSXEmptyExpression(child)) continue;\n\n    elements.push(child);\n  }\n\n  return elements;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAKA,IAAAC,4BAAA,GAAAD,OAAA;AASe,SAASE,aAAaA,CACnCC,IAAkC,EACjB;EACjB,MAAMC,QAAQ,GAAG,EAAE;EAEnB,KAAK,IAAIC,CAAC,GAAG,CAAC,EAAEA,CAAC,GAAGF,IAAI,CAACG,QAAQ,CAACC,MAAM,EAAEF,CAAC,EAAE,EAAE;IAC7C,IAAIG,KAAU,GAAGL,IAAI,CAACG,QAAQ,CAACD,CAAC,CAAC;IAEjC,IAAI,IAAAI,gBAAS,EAACD,KAAK,CAAC,EAAE;MACpB,IAAAE,oCAA2B,EAACF,KAAK,EAAEJ,QAAQ,CAAC;MAC5C;IACF;IAEA,IAAI,IAAAO,+BAAwB,EAACH,KAAK,CAAC,EAAEA,KAAK,GAAGA,KAAK,CAACI,UAAU;IAC7D,IAAI,IAAAC,2BAAoB,EAACL,KAAK,CAAC,EAAE;IAEjCJ,QAAQ,CAACU,IAAI,CAACN,KAAK,CAAC;EACtB;EAEA,OAAOJ,QAAQ;AACjB","ignoreList":[]}

+ 22
- 0
node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.default = createTSUnionType;
7
+var _index = require("../generated/index.js");
8
+var _removeTypeDuplicates = require("../../modifications/typescript/removeTypeDuplicates.js");
9
+var _index2 = require("../../validators/generated/index.js");
10
+function createTSUnionType(typeAnnotations) {
11
+  const types = typeAnnotations.map(type => {
12
+    return (0, _index2.isTSTypeAnnotation)(type) ? type.typeAnnotation : type;
13
+  });
14
+  const flattened = (0, _removeTypeDuplicates.default)(types);
15
+  if (flattened.length === 1) {
16
+    return flattened[0];
17
+  } else {
18
+    return (0, _index.tsUnionType)(flattened);
19
+  }
20
+}
21
+
22
+//# sourceMappingURL=createTSUnionType.js.map

+ 1
- 0
node_modules/@babel/types/lib/builders/typescript/createTSUnionType.js.map View File

1
+{"version":3,"names":["_index","require","_removeTypeDuplicates","_index2","createTSUnionType","typeAnnotations","types","map","type","isTSTypeAnnotation","typeAnnotation","flattened","removeTypeDuplicates","length","tsUnionType"],"sources":["../../../src/builders/typescript/createTSUnionType.ts"],"sourcesContent":["import { tsUnionType } from \"../generated/index.ts\";\nimport removeTypeDuplicates from \"../../modifications/typescript/removeTypeDuplicates.ts\";\nimport { isTSTypeAnnotation } from \"../../validators/generated/index.ts\";\nimport type * as t from \"../../index.ts\";\n\n/**\n * Takes an array of `types` and flattens them, removing duplicates and\n * returns a `UnionTypeAnnotation` node containing them.\n */\nexport default function createTSUnionType(\n  typeAnnotations: Array<t.TSTypeAnnotation | t.TSType>,\n): t.TSType {\n  const types = typeAnnotations.map(type => {\n    return isTSTypeAnnotation(type) ? type.typeAnnotation : type;\n  });\n  const flattened = removeTypeDuplicates(types);\n\n  if (flattened.length === 1) {\n    return flattened[0];\n  } else {\n    return tsUnionType(flattened);\n  }\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AACA,IAAAC,qBAAA,GAAAD,OAAA;AACA,IAAAE,OAAA,GAAAF,OAAA;AAOe,SAASG,iBAAiBA,CACvCC,eAAqD,EAC3C;EACV,MAAMC,KAAK,GAAGD,eAAe,CAACE,GAAG,CAACC,IAAI,IAAI;IACxC,OAAO,IAAAC,0BAAkB,EAACD,IAAI,CAAC,GAAGA,IAAI,CAACE,cAAc,GAAGF,IAAI;EAC9D,CAAC,CAAC;EACF,MAAMG,SAAS,GAAG,IAAAC,6BAAoB,EAACN,KAAK,CAAC;EAE7C,IAAIK,SAAS,CAACE,MAAM,KAAK,CAAC,EAAE;IAC1B,OAAOF,SAAS,CAAC,CAAC,CAAC;EACrB,CAAC,MAAM;IACL,OAAO,IAAAG,kBAAW,EAACH,SAAS,CAAC;EAC/B;AACF","ignoreList":[]}

+ 17
- 0
node_modules/@babel/types/lib/builders/validateNode.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.default = validateNode;
7
+var _validate = require("../validators/validate.js");
8
+var _index = require("../index.js");
9
+function validateNode(node) {
10
+  const keys = _index.BUILDER_KEYS[node.type];
11
+  for (const key of keys) {
12
+    (0, _validate.default)(node, key, node[key]);
13
+  }
14
+  return node;
15
+}
16
+
17
+//# sourceMappingURL=validateNode.js.map

+ 1
- 0
node_modules/@babel/types/lib/builders/validateNode.js.map View File

1
+{"version":3,"names":["_validate","require","_index","validateNode","node","keys","BUILDER_KEYS","type","key","validate"],"sources":["../../src/builders/validateNode.ts"],"sourcesContent":["import validate from \"../validators/validate.ts\";\nimport type * as t from \"../index.ts\";\nimport { BUILDER_KEYS } from \"../index.ts\";\n\nexport default function validateNode<N extends t.Node>(node: N) {\n  // todo: because keys not in BUILDER_KEYS are not validated - this actually allows invalid nodes in some cases\n  const keys = BUILDER_KEYS[node.type] as (keyof N & string)[];\n  for (const key of keys) {\n    validate(node, key, node[key]);\n  }\n  return node;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,SAAA,GAAAC,OAAA;AAEA,IAAAC,MAAA,GAAAD,OAAA;AAEe,SAASE,YAAYA,CAAmBC,IAAO,EAAE;EAE9D,MAAMC,IAAI,GAAGC,mBAAY,CAACF,IAAI,CAACG,IAAI,CAAyB;EAC5D,KAAK,MAAMC,GAAG,IAAIH,IAAI,EAAE;IACtB,IAAAI,iBAAQ,EAACL,IAAI,EAAEI,GAAG,EAAEJ,IAAI,CAACI,GAAG,CAAC,CAAC;EAChC;EACA,OAAOJ,IAAI;AACb","ignoreList":[]}

+ 12
- 0
node_modules/@babel/types/lib/clone/clone.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.default = clone;
7
+var _cloneNode = require("./cloneNode.js");
8
+function clone(node) {
9
+  return (0, _cloneNode.default)(node, false);
10
+}
11
+
12
+//# sourceMappingURL=clone.js.map

+ 1
- 0
node_modules/@babel/types/lib/clone/clone.js.map View File

1
+{"version":3,"names":["_cloneNode","require","clone","node","cloneNode"],"sources":["../../src/clone/clone.ts"],"sourcesContent":["import cloneNode from \"./cloneNode.ts\";\nimport type * as t from \"../index.ts\";\n\n/**\n * Create a shallow clone of a `node`, including only\n * properties belonging to the node.\n * @deprecated Use t.cloneNode instead.\n */\nexport default function clone<T extends t.Node>(node: T): T {\n  return cloneNode(node, /* deep */ false);\n}\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAQe,SAASC,KAAKA,CAAmBC,IAAO,EAAK;EAC1D,OAAO,IAAAC,kBAAS,EAACD,IAAI,EAAa,KAAK,CAAC;AAC1C","ignoreList":[]}

+ 12
- 0
node_modules/@babel/types/lib/clone/cloneDeep.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.default = cloneDeep;
7
+var _cloneNode = require("./cloneNode.js");
8
+function cloneDeep(node) {
9
+  return (0, _cloneNode.default)(node);
10
+}
11
+
12
+//# sourceMappingURL=cloneDeep.js.map

+ 1
- 0
node_modules/@babel/types/lib/clone/cloneDeep.js.map View File

1
+{"version":3,"names":["_cloneNode","require","cloneDeep","node","cloneNode"],"sources":["../../src/clone/cloneDeep.ts"],"sourcesContent":["import cloneNode from \"./cloneNode.ts\";\nimport type * as t from \"../index.ts\";\n\n/**\n * Create a deep clone of a `node` and all of it's child nodes\n * including only properties belonging to the node.\n * @deprecated Use t.cloneNode instead.\n */\nexport default function cloneDeep<T extends t.Node>(node: T): T {\n  return cloneNode(node);\n}\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAQe,SAASC,SAASA,CAAmBC,IAAO,EAAK;EAC9D,OAAO,IAAAC,kBAAS,EAACD,IAAI,CAAC;AACxB","ignoreList":[]}

+ 12
- 0
node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.default = cloneDeepWithoutLoc;
7
+var _cloneNode = require("./cloneNode.js");
8
+function cloneDeepWithoutLoc(node) {
9
+  return (0, _cloneNode.default)(node, true, true);
10
+}
11
+
12
+//# sourceMappingURL=cloneDeepWithoutLoc.js.map

+ 1
- 0
node_modules/@babel/types/lib/clone/cloneDeepWithoutLoc.js.map View File

1
+{"version":3,"names":["_cloneNode","require","cloneDeepWithoutLoc","node","cloneNode"],"sources":["../../src/clone/cloneDeepWithoutLoc.ts"],"sourcesContent":["import cloneNode from \"./cloneNode.ts\";\nimport type * as t from \"../index.ts\";\n/**\n * Create a deep clone of a `node` and all of it's child nodes\n * including only properties belonging to the node.\n * excluding `_private` and location properties.\n */\nexport default function cloneDeepWithoutLoc<T extends t.Node>(node: T): T {\n  return cloneNode(node, /* deep */ true, /* withoutLoc */ true);\n}\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAOe,SAASC,mBAAmBA,CAAmBC,IAAO,EAAK;EACxE,OAAO,IAAAC,kBAAS,EAACD,IAAI,EAAa,IAAI,EAAmB,IAAI,CAAC;AAChE","ignoreList":[]}

+ 107
- 0
node_modules/@babel/types/lib/clone/cloneNode.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.default = cloneNode;
7
+var _index = require("../definitions/index.js");
8
+var _index2 = require("../validators/generated/index.js");
9
+const {
10
+  hasOwn
11
+} = {
12
+  hasOwn: Function.call.bind(Object.prototype.hasOwnProperty)
13
+};
14
+function cloneIfNode(obj, deep, withoutLoc, commentsCache) {
15
+  if (obj && typeof obj.type === "string") {
16
+    return cloneNodeInternal(obj, deep, withoutLoc, commentsCache);
17
+  }
18
+  return obj;
19
+}
20
+function cloneIfNodeOrArray(obj, deep, withoutLoc, commentsCache) {
21
+  if (Array.isArray(obj)) {
22
+    return obj.map(node => cloneIfNode(node, deep, withoutLoc, commentsCache));
23
+  }
24
+  return cloneIfNode(obj, deep, withoutLoc, commentsCache);
25
+}
26
+function cloneNode(node, deep = true, withoutLoc = false) {
27
+  return cloneNodeInternal(node, deep, withoutLoc, new Map());
28
+}
29
+function cloneNodeInternal(node, deep = true, withoutLoc = false, commentsCache) {
30
+  if (!node) return node;
31
+  const {
32
+    type
33
+  } = node;
34
+  const newNode = {
35
+    type: node.type
36
+  };
37
+  if ((0, _index2.isIdentifier)(node)) {
38
+    newNode.name = node.name;
39
+    if (hasOwn(node, "optional") && typeof node.optional === "boolean") {
40
+      newNode.optional = node.optional;
41
+    }
42
+    if (hasOwn(node, "typeAnnotation")) {
43
+      newNode.typeAnnotation = deep ? cloneIfNodeOrArray(node.typeAnnotation, true, withoutLoc, commentsCache) : node.typeAnnotation;
44
+    }
45
+    if (hasOwn(node, "decorators")) {
46
+      newNode.decorators = deep ? cloneIfNodeOrArray(node.decorators, true, withoutLoc, commentsCache) : node.decorators;
47
+    }
48
+  } else if (!hasOwn(_index.NODE_FIELDS, type)) {
49
+    throw new Error(`Unknown node type: "${type}"`);
50
+  } else {
51
+    for (const field of Object.keys(_index.NODE_FIELDS[type])) {
52
+      if (hasOwn(node, field)) {
53
+        if (deep) {
54
+          newNode[field] = (0, _index2.isFile)(node) && field === "comments" ? maybeCloneComments(node.comments, deep, withoutLoc, commentsCache) : cloneIfNodeOrArray(node[field], true, withoutLoc, commentsCache);
55
+        } else {
56
+          newNode[field] = node[field];
57
+        }
58
+      }
59
+    }
60
+  }
61
+  if (hasOwn(node, "loc")) {
62
+    if (withoutLoc) {
63
+      newNode.loc = null;
64
+    } else {
65
+      newNode.loc = node.loc;
66
+    }
67
+  }
68
+  if (hasOwn(node, "leadingComments")) {
69
+    newNode.leadingComments = maybeCloneComments(node.leadingComments, deep, withoutLoc, commentsCache);
70
+  }
71
+  if (hasOwn(node, "innerComments")) {
72
+    newNode.innerComments = maybeCloneComments(node.innerComments, deep, withoutLoc, commentsCache);
73
+  }
74
+  if (hasOwn(node, "trailingComments")) {
75
+    newNode.trailingComments = maybeCloneComments(node.trailingComments, deep, withoutLoc, commentsCache);
76
+  }
77
+  if (hasOwn(node, "extra")) {
78
+    newNode.extra = Object.assign({}, node.extra);
79
+  }
80
+  return newNode;
81
+}
82
+function maybeCloneComments(comments, deep, withoutLoc, commentsCache) {
83
+  if (!comments || !deep) {
84
+    return comments;
85
+  }
86
+  return comments.map(comment => {
87
+    const cache = commentsCache.get(comment);
88
+    if (cache) return cache;
89
+    const {
90
+      type,
91
+      value,
92
+      loc
93
+    } = comment;
94
+    const ret = {
95
+      type,
96
+      value,
97
+      loc
98
+    };
99
+    if (withoutLoc) {
100
+      ret.loc = null;
101
+    }
102
+    commentsCache.set(comment, ret);
103
+    return ret;
104
+  });
105
+}
106
+
107
+//# sourceMappingURL=cloneNode.js.map

+ 1
- 0
node_modules/@babel/types/lib/clone/cloneNode.js.map
File diff suppressed because it is too large
View File


+ 12
- 0
node_modules/@babel/types/lib/clone/cloneWithoutLoc.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.default = cloneWithoutLoc;
7
+var _cloneNode = require("./cloneNode.js");
8
+function cloneWithoutLoc(node) {
9
+  return (0, _cloneNode.default)(node, false, true);
10
+}
11
+
12
+//# sourceMappingURL=cloneWithoutLoc.js.map

+ 1
- 0
node_modules/@babel/types/lib/clone/cloneWithoutLoc.js.map View File

1
+{"version":3,"names":["_cloneNode","require","cloneWithoutLoc","node","cloneNode"],"sources":["../../src/clone/cloneWithoutLoc.ts"],"sourcesContent":["import cloneNode from \"./cloneNode.ts\";\nimport type * as t from \"../index.ts\";\n\n/**\n * Create a shallow clone of a `node` excluding `_private` and location properties.\n */\nexport default function cloneWithoutLoc<T extends t.Node>(node: T): T {\n  return cloneNode(node, /* deep */ false, /* withoutLoc */ true);\n}\n"],"mappings":";;;;;;AAAA,IAAAA,UAAA,GAAAC,OAAA;AAMe,SAASC,eAAeA,CAAmBC,IAAO,EAAK;EACpE,OAAO,IAAAC,kBAAS,EAACD,IAAI,EAAa,KAAK,EAAmB,IAAI,CAAC;AACjE","ignoreList":[]}

+ 15
- 0
node_modules/@babel/types/lib/comments/addComment.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.default = addComment;
7
+var _addComments = require("./addComments.js");
8
+function addComment(node, type, content, line) {
9
+  return (0, _addComments.default)(node, type, [{
10
+    type: line ? "CommentLine" : "CommentBlock",
11
+    value: content
12
+  }]);
13
+}
14
+
15
+//# sourceMappingURL=addComment.js.map

+ 1
- 0
node_modules/@babel/types/lib/comments/addComment.js.map View File

1
+{"version":3,"names":["_addComments","require","addComment","node","type","content","line","addComments","value"],"sources":["../../src/comments/addComment.ts"],"sourcesContent":["import addComments from \"./addComments.ts\";\nimport type * as t from \"../index.ts\";\n\n/**\n * Add comment of certain type to a node.\n */\nexport default function addComment<T extends t.Node>(\n  node: T,\n  type: t.CommentTypeShorthand,\n  content: string,\n  line?: boolean,\n): T {\n  return addComments(node, type, [\n    {\n      type: line ? \"CommentLine\" : \"CommentBlock\",\n      value: content,\n    } as t.Comment,\n  ]);\n}\n"],"mappings":";;;;;;AAAA,IAAAA,YAAA,GAAAC,OAAA;AAMe,SAASC,UAAUA,CAChCC,IAAO,EACPC,IAA4B,EAC5BC,OAAe,EACfC,IAAc,EACX;EACH,OAAO,IAAAC,oBAAW,EAACJ,IAAI,EAAEC,IAAI,EAAE,CAC7B;IACEA,IAAI,EAAEE,IAAI,GAAG,aAAa,GAAG,cAAc;IAC3CE,KAAK,EAAEH;EACT,CAAC,CACF,CAAC;AACJ","ignoreList":[]}

+ 22
- 0
node_modules/@babel/types/lib/comments/addComments.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.default = addComments;
7
+function addComments(node, type, comments) {
8
+  if (!comments || !node) return node;
9
+  const key = `${type}Comments`;
10
+  if (node[key]) {
11
+    if (type === "leading") {
12
+      node[key] = comments.concat(node[key]);
13
+    } else {
14
+      node[key].push(...comments);
15
+    }
16
+  } else {
17
+    node[key] = comments;
18
+  }
19
+  return node;
20
+}
21
+
22
+//# sourceMappingURL=addComments.js.map

+ 1
- 0
node_modules/@babel/types/lib/comments/addComments.js.map View File

1
+{"version":3,"names":["addComments","node","type","comments","key","concat","push"],"sources":["../../src/comments/addComments.ts"],"sourcesContent":["import type * as t from \"../index.ts\";\n\n/**\n * Add comments of certain type to a node.\n */\nexport default function addComments<T extends t.Node>(\n  node: T,\n  type: t.CommentTypeShorthand,\n  comments: Array<t.Comment>,\n): T {\n  if (!comments || !node) return node;\n\n  const key = `${type}Comments` as const;\n\n  if (node[key]) {\n    if (type === \"leading\") {\n      node[key] = comments.concat(node[key]);\n    } else {\n      node[key].push(...comments);\n    }\n  } else {\n    node[key] = comments;\n  }\n\n  return node;\n}\n"],"mappings":";;;;;;AAKe,SAASA,WAAWA,CACjCC,IAAO,EACPC,IAA4B,EAC5BC,QAA0B,EACvB;EACH,IAAI,CAACA,QAAQ,IAAI,CAACF,IAAI,EAAE,OAAOA,IAAI;EAEnC,MAAMG,GAAG,GAAG,GAAGF,IAAI,UAAmB;EAEtC,IAAID,IAAI,CAACG,GAAG,CAAC,EAAE;IACb,IAAIF,IAAI,KAAK,SAAS,EAAE;MACtBD,IAAI,CAACG,GAAG,CAAC,GAAGD,QAAQ,CAACE,MAAM,CAACJ,IAAI,CAACG,GAAG,CAAC,CAAC;IACxC,CAAC,MAAM;MACLH,IAAI,CAACG,GAAG,CAAC,CAACE,IAAI,CAAC,GAAGH,QAAQ,CAAC;IAC7B;EACF,CAAC,MAAM;IACLF,IAAI,CAACG,GAAG,CAAC,GAAGD,QAAQ;EACtB;EAEA,OAAOF,IAAI;AACb","ignoreList":[]}

+ 12
- 0
node_modules/@babel/types/lib/comments/inheritInnerComments.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.default = inheritInnerComments;
7
+var _inherit = require("../utils/inherit.js");
8
+function inheritInnerComments(child, parent) {
9
+  (0, _inherit.default)("innerComments", child, parent);
10
+}
11
+
12
+//# sourceMappingURL=inheritInnerComments.js.map

+ 1
- 0
node_modules/@babel/types/lib/comments/inheritInnerComments.js.map View File

1
+{"version":3,"names":["_inherit","require","inheritInnerComments","child","parent","inherit"],"sources":["../../src/comments/inheritInnerComments.ts"],"sourcesContent":["import inherit from \"../utils/inherit.ts\";\nimport type * as t from \"../index.ts\";\n\nexport default function inheritInnerComments(\n  child: t.Node,\n  parent: t.Node,\n): void {\n  inherit(\"innerComments\", child, parent);\n}\n"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAGe,SAASC,oBAAoBA,CAC1CC,KAAa,EACbC,MAAc,EACR;EACN,IAAAC,gBAAO,EAAC,eAAe,EAAEF,KAAK,EAAEC,MAAM,CAAC;AACzC","ignoreList":[]}

+ 12
- 0
node_modules/@babel/types/lib/comments/inheritLeadingComments.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.default = inheritLeadingComments;
7
+var _inherit = require("../utils/inherit.js");
8
+function inheritLeadingComments(child, parent) {
9
+  (0, _inherit.default)("leadingComments", child, parent);
10
+}
11
+
12
+//# sourceMappingURL=inheritLeadingComments.js.map

+ 1
- 0
node_modules/@babel/types/lib/comments/inheritLeadingComments.js.map View File

1
+{"version":3,"names":["_inherit","require","inheritLeadingComments","child","parent","inherit"],"sources":["../../src/comments/inheritLeadingComments.ts"],"sourcesContent":["import inherit from \"../utils/inherit.ts\";\nimport type * as t from \"../index.ts\";\n\nexport default function inheritLeadingComments(\n  child: t.Node,\n  parent: t.Node,\n): void {\n  inherit(\"leadingComments\", child, parent);\n}\n"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAGe,SAASC,sBAAsBA,CAC5CC,KAAa,EACbC,MAAc,EACR;EACN,IAAAC,gBAAO,EAAC,iBAAiB,EAAEF,KAAK,EAAEC,MAAM,CAAC;AAC3C","ignoreList":[]}

+ 12
- 0
node_modules/@babel/types/lib/comments/inheritTrailingComments.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.default = inheritTrailingComments;
7
+var _inherit = require("../utils/inherit.js");
8
+function inheritTrailingComments(child, parent) {
9
+  (0, _inherit.default)("trailingComments", child, parent);
10
+}
11
+
12
+//# sourceMappingURL=inheritTrailingComments.js.map

+ 1
- 0
node_modules/@babel/types/lib/comments/inheritTrailingComments.js.map View File

1
+{"version":3,"names":["_inherit","require","inheritTrailingComments","child","parent","inherit"],"sources":["../../src/comments/inheritTrailingComments.ts"],"sourcesContent":["import inherit from \"../utils/inherit.ts\";\nimport type * as t from \"../index.ts\";\n\nexport default function inheritTrailingComments(\n  child: t.Node,\n  parent: t.Node,\n): void {\n  inherit(\"trailingComments\", child, parent);\n}\n"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AAGe,SAASC,uBAAuBA,CAC7CC,KAAa,EACbC,MAAc,EACR;EACN,IAAAC,gBAAO,EAAC,kBAAkB,EAAEF,KAAK,EAAEC,MAAM,CAAC;AAC5C","ignoreList":[]}

+ 17
- 0
node_modules/@babel/types/lib/comments/inheritsComments.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.default = inheritsComments;
7
+var _inheritTrailingComments = require("./inheritTrailingComments.js");
8
+var _inheritLeadingComments = require("./inheritLeadingComments.js");
9
+var _inheritInnerComments = require("./inheritInnerComments.js");
10
+function inheritsComments(child, parent) {
11
+  (0, _inheritTrailingComments.default)(child, parent);
12
+  (0, _inheritLeadingComments.default)(child, parent);
13
+  (0, _inheritInnerComments.default)(child, parent);
14
+  return child;
15
+}
16
+
17
+//# sourceMappingURL=inheritsComments.js.map

+ 1
- 0
node_modules/@babel/types/lib/comments/inheritsComments.js.map View File

1
+{"version":3,"names":["_inheritTrailingComments","require","_inheritLeadingComments","_inheritInnerComments","inheritsComments","child","parent","inheritTrailingComments","inheritLeadingComments","inheritInnerComments"],"sources":["../../src/comments/inheritsComments.ts"],"sourcesContent":["import inheritTrailingComments from \"./inheritTrailingComments.ts\";\nimport inheritLeadingComments from \"./inheritLeadingComments.ts\";\nimport inheritInnerComments from \"./inheritInnerComments.ts\";\nimport type * as t from \"../index.ts\";\n\n/**\n * Inherit all unique comments from `parent` node to `child` node.\n */\nexport default function inheritsComments<T extends t.Node>(\n  child: T,\n  parent: t.Node,\n): T {\n  inheritTrailingComments(child, parent);\n  inheritLeadingComments(child, parent);\n  inheritInnerComments(child, parent);\n\n  return child;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,wBAAA,GAAAC,OAAA;AACA,IAAAC,uBAAA,GAAAD,OAAA;AACA,IAAAE,qBAAA,GAAAF,OAAA;AAMe,SAASG,gBAAgBA,CACtCC,KAAQ,EACRC,MAAc,EACX;EACH,IAAAC,gCAAuB,EAACF,KAAK,EAAEC,MAAM,CAAC;EACtC,IAAAE,+BAAsB,EAACH,KAAK,EAAEC,MAAM,CAAC;EACrC,IAAAG,6BAAoB,EAACJ,KAAK,EAAEC,MAAM,CAAC;EAEnC,OAAOD,KAAK;AACd","ignoreList":[]}

+ 15
- 0
node_modules/@babel/types/lib/comments/removeComments.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.default = removeComments;
7
+var _index = require("../constants/index.js");
8
+function removeComments(node) {
9
+  _index.COMMENT_KEYS.forEach(key => {
10
+    node[key] = null;
11
+  });
12
+  return node;
13
+}
14
+
15
+//# sourceMappingURL=removeComments.js.map

+ 1
- 0
node_modules/@babel/types/lib/comments/removeComments.js.map View File

1
+{"version":3,"names":["_index","require","removeComments","node","COMMENT_KEYS","forEach","key"],"sources":["../../src/comments/removeComments.ts"],"sourcesContent":["import { COMMENT_KEYS } from \"../constants/index.ts\";\nimport type * as t from \"../index.ts\";\n\n/**\n * Remove comment properties from a node.\n */\nexport default function removeComments<T extends t.Node>(node: T): T {\n  COMMENT_KEYS.forEach(key => {\n    node[key] = null;\n  });\n\n  return node;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,MAAA,GAAAC,OAAA;AAMe,SAASC,cAAcA,CAAmBC,IAAO,EAAK;EACnEC,mBAAY,CAACC,OAAO,CAACC,GAAG,IAAI;IAC1BH,IAAI,CAACG,GAAG,CAAC,GAAG,IAAI;EAClB,CAAC,CAAC;EAEF,OAAOH,IAAI;AACb","ignoreList":[]}

+ 59
- 0
node_modules/@babel/types/lib/constants/generated/index.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.WHILE_TYPES = exports.USERWHITESPACABLE_TYPES = exports.UNARYLIKE_TYPES = exports.TYPESCRIPT_TYPES = exports.TSTYPE_TYPES = exports.TSTYPEELEMENT_TYPES = exports.TSENTITYNAME_TYPES = exports.TSBASETYPE_TYPES = exports.TERMINATORLESS_TYPES = exports.STATEMENT_TYPES = exports.STANDARDIZED_TYPES = exports.SCOPABLE_TYPES = exports.PUREISH_TYPES = exports.PROPERTY_TYPES = exports.PRIVATE_TYPES = exports.PATTERN_TYPES = exports.PATTERNLIKE_TYPES = exports.OBJECTMEMBER_TYPES = exports.MODULESPECIFIER_TYPES = exports.MODULEDECLARATION_TYPES = exports.MISCELLANEOUS_TYPES = exports.METHOD_TYPES = exports.LVAL_TYPES = exports.LOOP_TYPES = exports.LITERAL_TYPES = exports.JSX_TYPES = exports.IMPORTOREXPORTDECLARATION_TYPES = exports.IMMUTABLE_TYPES = exports.FUNCTION_TYPES = exports.FUNCTIONPARENT_TYPES = exports.FOR_TYPES = exports.FORXSTATEMENT_TYPES = exports.FLOW_TYPES = exports.FLOWTYPE_TYPES = exports.FLOWPREDICATE_TYPES = exports.FLOWDECLARATION_TYPES = exports.FLOWBASEANNOTATION_TYPES = exports.EXPRESSION_TYPES = exports.EXPRESSIONWRAPPER_TYPES = exports.EXPORTDECLARATION_TYPES = exports.ENUMMEMBER_TYPES = exports.ENUMBODY_TYPES = exports.DECLARATION_TYPES = exports.CONDITIONAL_TYPES = exports.COMPLETIONSTATEMENT_TYPES = exports.CLASS_TYPES = exports.BLOCK_TYPES = exports.BLOCKPARENT_TYPES = exports.BINARY_TYPES = exports.ACCESSOR_TYPES = void 0;
7
+var _index = require("../../definitions/index.js");
8
+const STANDARDIZED_TYPES = exports.STANDARDIZED_TYPES = _index.FLIPPED_ALIAS_KEYS["Standardized"];
9
+const EXPRESSION_TYPES = exports.EXPRESSION_TYPES = _index.FLIPPED_ALIAS_KEYS["Expression"];
10
+const BINARY_TYPES = exports.BINARY_TYPES = _index.FLIPPED_ALIAS_KEYS["Binary"];
11
+const SCOPABLE_TYPES = exports.SCOPABLE_TYPES = _index.FLIPPED_ALIAS_KEYS["Scopable"];
12
+const BLOCKPARENT_TYPES = exports.BLOCKPARENT_TYPES = _index.FLIPPED_ALIAS_KEYS["BlockParent"];
13
+const BLOCK_TYPES = exports.BLOCK_TYPES = _index.FLIPPED_ALIAS_KEYS["Block"];
14
+const STATEMENT_TYPES = exports.STATEMENT_TYPES = _index.FLIPPED_ALIAS_KEYS["Statement"];
15
+const TERMINATORLESS_TYPES = exports.TERMINATORLESS_TYPES = _index.FLIPPED_ALIAS_KEYS["Terminatorless"];
16
+const COMPLETIONSTATEMENT_TYPES = exports.COMPLETIONSTATEMENT_TYPES = _index.FLIPPED_ALIAS_KEYS["CompletionStatement"];
17
+const CONDITIONAL_TYPES = exports.CONDITIONAL_TYPES = _index.FLIPPED_ALIAS_KEYS["Conditional"];
18
+const LOOP_TYPES = exports.LOOP_TYPES = _index.FLIPPED_ALIAS_KEYS["Loop"];
19
+const WHILE_TYPES = exports.WHILE_TYPES = _index.FLIPPED_ALIAS_KEYS["While"];
20
+const EXPRESSIONWRAPPER_TYPES = exports.EXPRESSIONWRAPPER_TYPES = _index.FLIPPED_ALIAS_KEYS["ExpressionWrapper"];
21
+const FOR_TYPES = exports.FOR_TYPES = _index.FLIPPED_ALIAS_KEYS["For"];
22
+const FORXSTATEMENT_TYPES = exports.FORXSTATEMENT_TYPES = _index.FLIPPED_ALIAS_KEYS["ForXStatement"];
23
+const FUNCTION_TYPES = exports.FUNCTION_TYPES = _index.FLIPPED_ALIAS_KEYS["Function"];
24
+const FUNCTIONPARENT_TYPES = exports.FUNCTIONPARENT_TYPES = _index.FLIPPED_ALIAS_KEYS["FunctionParent"];
25
+const PUREISH_TYPES = exports.PUREISH_TYPES = _index.FLIPPED_ALIAS_KEYS["Pureish"];
26
+const DECLARATION_TYPES = exports.DECLARATION_TYPES = _index.FLIPPED_ALIAS_KEYS["Declaration"];
27
+const PATTERNLIKE_TYPES = exports.PATTERNLIKE_TYPES = _index.FLIPPED_ALIAS_KEYS["PatternLike"];
28
+const LVAL_TYPES = exports.LVAL_TYPES = _index.FLIPPED_ALIAS_KEYS["LVal"];
29
+const TSENTITYNAME_TYPES = exports.TSENTITYNAME_TYPES = _index.FLIPPED_ALIAS_KEYS["TSEntityName"];
30
+const LITERAL_TYPES = exports.LITERAL_TYPES = _index.FLIPPED_ALIAS_KEYS["Literal"];
31
+const IMMUTABLE_TYPES = exports.IMMUTABLE_TYPES = _index.FLIPPED_ALIAS_KEYS["Immutable"];
32
+const USERWHITESPACABLE_TYPES = exports.USERWHITESPACABLE_TYPES = _index.FLIPPED_ALIAS_KEYS["UserWhitespacable"];
33
+const METHOD_TYPES = exports.METHOD_TYPES = _index.FLIPPED_ALIAS_KEYS["Method"];
34
+const OBJECTMEMBER_TYPES = exports.OBJECTMEMBER_TYPES = _index.FLIPPED_ALIAS_KEYS["ObjectMember"];
35
+const PROPERTY_TYPES = exports.PROPERTY_TYPES = _index.FLIPPED_ALIAS_KEYS["Property"];
36
+const UNARYLIKE_TYPES = exports.UNARYLIKE_TYPES = _index.FLIPPED_ALIAS_KEYS["UnaryLike"];
37
+const PATTERN_TYPES = exports.PATTERN_TYPES = _index.FLIPPED_ALIAS_KEYS["Pattern"];
38
+const CLASS_TYPES = exports.CLASS_TYPES = _index.FLIPPED_ALIAS_KEYS["Class"];
39
+const IMPORTOREXPORTDECLARATION_TYPES = exports.IMPORTOREXPORTDECLARATION_TYPES = _index.FLIPPED_ALIAS_KEYS["ImportOrExportDeclaration"];
40
+const EXPORTDECLARATION_TYPES = exports.EXPORTDECLARATION_TYPES = _index.FLIPPED_ALIAS_KEYS["ExportDeclaration"];
41
+const MODULESPECIFIER_TYPES = exports.MODULESPECIFIER_TYPES = _index.FLIPPED_ALIAS_KEYS["ModuleSpecifier"];
42
+const ACCESSOR_TYPES = exports.ACCESSOR_TYPES = _index.FLIPPED_ALIAS_KEYS["Accessor"];
43
+const PRIVATE_TYPES = exports.PRIVATE_TYPES = _index.FLIPPED_ALIAS_KEYS["Private"];
44
+const FLOW_TYPES = exports.FLOW_TYPES = _index.FLIPPED_ALIAS_KEYS["Flow"];
45
+const FLOWTYPE_TYPES = exports.FLOWTYPE_TYPES = _index.FLIPPED_ALIAS_KEYS["FlowType"];
46
+const FLOWBASEANNOTATION_TYPES = exports.FLOWBASEANNOTATION_TYPES = _index.FLIPPED_ALIAS_KEYS["FlowBaseAnnotation"];
47
+const FLOWDECLARATION_TYPES = exports.FLOWDECLARATION_TYPES = _index.FLIPPED_ALIAS_KEYS["FlowDeclaration"];
48
+const FLOWPREDICATE_TYPES = exports.FLOWPREDICATE_TYPES = _index.FLIPPED_ALIAS_KEYS["FlowPredicate"];
49
+const ENUMBODY_TYPES = exports.ENUMBODY_TYPES = _index.FLIPPED_ALIAS_KEYS["EnumBody"];
50
+const ENUMMEMBER_TYPES = exports.ENUMMEMBER_TYPES = _index.FLIPPED_ALIAS_KEYS["EnumMember"];
51
+const JSX_TYPES = exports.JSX_TYPES = _index.FLIPPED_ALIAS_KEYS["JSX"];
52
+const MISCELLANEOUS_TYPES = exports.MISCELLANEOUS_TYPES = _index.FLIPPED_ALIAS_KEYS["Miscellaneous"];
53
+const TYPESCRIPT_TYPES = exports.TYPESCRIPT_TYPES = _index.FLIPPED_ALIAS_KEYS["TypeScript"];
54
+const TSTYPEELEMENT_TYPES = exports.TSTYPEELEMENT_TYPES = _index.FLIPPED_ALIAS_KEYS["TSTypeElement"];
55
+const TSTYPE_TYPES = exports.TSTYPE_TYPES = _index.FLIPPED_ALIAS_KEYS["TSType"];
56
+const TSBASETYPE_TYPES = exports.TSBASETYPE_TYPES = _index.FLIPPED_ALIAS_KEYS["TSBaseType"];
57
+const MODULEDECLARATION_TYPES = exports.MODULEDECLARATION_TYPES = IMPORTOREXPORTDECLARATION_TYPES;
58
+
59
+//# sourceMappingURL=index.js.map

+ 1
- 0
node_modules/@babel/types/lib/constants/generated/index.js.map
File diff suppressed because it is too large
View File


+ 31
- 0
node_modules/@babel/types/lib/constants/index.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.UPDATE_OPERATORS = exports.UNARY_OPERATORS = exports.STRING_UNARY_OPERATORS = exports.STATEMENT_OR_BLOCK_KEYS = exports.NUMBER_UNARY_OPERATORS = exports.NUMBER_BINARY_OPERATORS = exports.NOT_LOCAL_BINDING = exports.LOGICAL_OPERATORS = exports.INHERIT_KEYS = exports.FOR_INIT_KEYS = exports.FLATTENABLE_KEYS = exports.EQUALITY_BINARY_OPERATORS = exports.COMPARISON_BINARY_OPERATORS = exports.COMMENT_KEYS = exports.BOOLEAN_UNARY_OPERATORS = exports.BOOLEAN_NUMBER_BINARY_OPERATORS = exports.BOOLEAN_BINARY_OPERATORS = exports.BLOCK_SCOPED_SYMBOL = exports.BINARY_OPERATORS = exports.ASSIGNMENT_OPERATORS = void 0;
7
+const STATEMENT_OR_BLOCK_KEYS = exports.STATEMENT_OR_BLOCK_KEYS = ["consequent", "body", "alternate"];
8
+const FLATTENABLE_KEYS = exports.FLATTENABLE_KEYS = ["body", "expressions"];
9
+const FOR_INIT_KEYS = exports.FOR_INIT_KEYS = ["left", "init"];
10
+const COMMENT_KEYS = exports.COMMENT_KEYS = ["leadingComments", "trailingComments", "innerComments"];
11
+const LOGICAL_OPERATORS = exports.LOGICAL_OPERATORS = ["||", "&&", "??"];
12
+const UPDATE_OPERATORS = exports.UPDATE_OPERATORS = ["++", "--"];
13
+const BOOLEAN_NUMBER_BINARY_OPERATORS = exports.BOOLEAN_NUMBER_BINARY_OPERATORS = [">", "<", ">=", "<="];
14
+const EQUALITY_BINARY_OPERATORS = exports.EQUALITY_BINARY_OPERATORS = ["==", "===", "!=", "!=="];
15
+const COMPARISON_BINARY_OPERATORS = exports.COMPARISON_BINARY_OPERATORS = [...EQUALITY_BINARY_OPERATORS, "in", "instanceof"];
16
+const BOOLEAN_BINARY_OPERATORS = exports.BOOLEAN_BINARY_OPERATORS = [...COMPARISON_BINARY_OPERATORS, ...BOOLEAN_NUMBER_BINARY_OPERATORS];
17
+const NUMBER_BINARY_OPERATORS = exports.NUMBER_BINARY_OPERATORS = ["-", "/", "%", "*", "**", "&", "|", ">>", ">>>", "<<", "^"];
18
+const BINARY_OPERATORS = exports.BINARY_OPERATORS = ["+", ...NUMBER_BINARY_OPERATORS, ...BOOLEAN_BINARY_OPERATORS, "|>"];
19
+const ASSIGNMENT_OPERATORS = exports.ASSIGNMENT_OPERATORS = ["=", "+=", ...NUMBER_BINARY_OPERATORS.map(op => op + "="), ...LOGICAL_OPERATORS.map(op => op + "=")];
20
+const BOOLEAN_UNARY_OPERATORS = exports.BOOLEAN_UNARY_OPERATORS = ["delete", "!"];
21
+const NUMBER_UNARY_OPERATORS = exports.NUMBER_UNARY_OPERATORS = ["+", "-", "~"];
22
+const STRING_UNARY_OPERATORS = exports.STRING_UNARY_OPERATORS = ["typeof"];
23
+const UNARY_OPERATORS = exports.UNARY_OPERATORS = ["void", "throw", ...BOOLEAN_UNARY_OPERATORS, ...NUMBER_UNARY_OPERATORS, ...STRING_UNARY_OPERATORS];
24
+const INHERIT_KEYS = exports.INHERIT_KEYS = {
25
+  optional: ["typeAnnotation", "typeParameters", "returnType"],
26
+  force: ["start", "loc", "end"]
27
+};
28
+const BLOCK_SCOPED_SYMBOL = exports.BLOCK_SCOPED_SYMBOL = Symbol.for("var used to be block scoped");
29
+const NOT_LOCAL_BINDING = exports.NOT_LOCAL_BINDING = Symbol.for("should not be considered a local binding");
30
+
31
+//# sourceMappingURL=index.js.map

+ 1
- 0
node_modules/@babel/types/lib/constants/index.js.map View File

1
+{"version":3,"names":["STATEMENT_OR_BLOCK_KEYS","exports","FLATTENABLE_KEYS","FOR_INIT_KEYS","COMMENT_KEYS","LOGICAL_OPERATORS","UPDATE_OPERATORS","BOOLEAN_NUMBER_BINARY_OPERATORS","EQUALITY_BINARY_OPERATORS","COMPARISON_BINARY_OPERATORS","BOOLEAN_BINARY_OPERATORS","NUMBER_BINARY_OPERATORS","BINARY_OPERATORS","ASSIGNMENT_OPERATORS","map","op","BOOLEAN_UNARY_OPERATORS","NUMBER_UNARY_OPERATORS","STRING_UNARY_OPERATORS","UNARY_OPERATORS","INHERIT_KEYS","optional","force","BLOCK_SCOPED_SYMBOL","Symbol","for","NOT_LOCAL_BINDING"],"sources":["../../src/constants/index.ts"],"sourcesContent":["export const STATEMENT_OR_BLOCK_KEYS = [\"consequent\", \"body\", \"alternate\"];\nexport const FLATTENABLE_KEYS = [\"body\", \"expressions\"];\nexport const FOR_INIT_KEYS = [\"left\", \"init\"];\nexport const COMMENT_KEYS = [\n  \"leadingComments\",\n  \"trailingComments\",\n  \"innerComments\",\n] as const;\n\nexport const LOGICAL_OPERATORS = [\"||\", \"&&\", \"??\"];\nexport const UPDATE_OPERATORS = [\"++\", \"--\"];\n\nexport const BOOLEAN_NUMBER_BINARY_OPERATORS = [\">\", \"<\", \">=\", \"<=\"];\nexport const EQUALITY_BINARY_OPERATORS = [\"==\", \"===\", \"!=\", \"!==\"];\nexport const COMPARISON_BINARY_OPERATORS = [\n  ...EQUALITY_BINARY_OPERATORS,\n  \"in\",\n  \"instanceof\",\n];\nexport const BOOLEAN_BINARY_OPERATORS = [\n  ...COMPARISON_BINARY_OPERATORS,\n  ...BOOLEAN_NUMBER_BINARY_OPERATORS,\n];\nexport const NUMBER_BINARY_OPERATORS = [\n  \"-\",\n  \"/\",\n  \"%\",\n  \"*\",\n  \"**\",\n  \"&\",\n  \"|\",\n  \">>\",\n  \">>>\",\n  \"<<\",\n  \"^\",\n];\nexport const BINARY_OPERATORS = [\n  \"+\",\n  ...NUMBER_BINARY_OPERATORS,\n  ...BOOLEAN_BINARY_OPERATORS,\n  \"|>\",\n];\n\nexport const ASSIGNMENT_OPERATORS = [\n  \"=\",\n  \"+=\",\n  ...NUMBER_BINARY_OPERATORS.map(op => op + \"=\"),\n  ...LOGICAL_OPERATORS.map(op => op + \"=\"),\n];\n\nexport const BOOLEAN_UNARY_OPERATORS = [\"delete\", \"!\"];\nexport const NUMBER_UNARY_OPERATORS = [\"+\", \"-\", \"~\"];\nexport const STRING_UNARY_OPERATORS = [\"typeof\"];\nexport const UNARY_OPERATORS = [\n  \"void\",\n  \"throw\",\n  ...BOOLEAN_UNARY_OPERATORS,\n  ...NUMBER_UNARY_OPERATORS,\n  ...STRING_UNARY_OPERATORS,\n];\n\nexport const INHERIT_KEYS = {\n  optional: [\"typeAnnotation\", \"typeParameters\", \"returnType\"],\n  force: [\"start\", \"loc\", \"end\"],\n} as const;\n\nexport const BLOCK_SCOPED_SYMBOL = Symbol.for(\"var used to be block scoped\");\nexport const NOT_LOCAL_BINDING = Symbol.for(\n  \"should not be considered a local binding\",\n);\n"],"mappings":";;;;;;AAAO,MAAMA,uBAAuB,GAAAC,OAAA,CAAAD,uBAAA,GAAG,CAAC,YAAY,EAAE,MAAM,EAAE,WAAW,CAAC;AACnE,MAAME,gBAAgB,GAAAD,OAAA,CAAAC,gBAAA,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC;AAChD,MAAMC,aAAa,GAAAF,OAAA,CAAAE,aAAA,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC;AACtC,MAAMC,YAAY,GAAAH,OAAA,CAAAG,YAAA,GAAG,CAC1B,iBAAiB,EACjB,kBAAkB,EAClB,eAAe,CACP;AAEH,MAAMC,iBAAiB,GAAAJ,OAAA,CAAAI,iBAAA,GAAG,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC;AAC5C,MAAMC,gBAAgB,GAAAL,OAAA,CAAAK,gBAAA,GAAG,CAAC,IAAI,EAAE,IAAI,CAAC;AAErC,MAAMC,+BAA+B,GAAAN,OAAA,CAAAM,+BAAA,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,CAAC;AAC9D,MAAMC,yBAAyB,GAAAP,OAAA,CAAAO,yBAAA,GAAG,CAAC,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,CAAC;AAC5D,MAAMC,2BAA2B,GAAAR,OAAA,CAAAQ,2BAAA,GAAG,CACzC,GAAGD,yBAAyB,EAC5B,IAAI,EACJ,YAAY,CACb;AACM,MAAME,wBAAwB,GAAAT,OAAA,CAAAS,wBAAA,GAAG,CACtC,GAAGD,2BAA2B,EAC9B,GAAGF,+BAA+B,CACnC;AACM,MAAMI,uBAAuB,GAAAV,OAAA,CAAAU,uBAAA,GAAG,CACrC,GAAG,EACH,GAAG,EACH,GAAG,EACH,GAAG,EACH,IAAI,EACJ,GAAG,EACH,GAAG,EACH,IAAI,EACJ,KAAK,EACL,IAAI,EACJ,GAAG,CACJ;AACM,MAAMC,gBAAgB,GAAAX,OAAA,CAAAW,gBAAA,GAAG,CAC9B,GAAG,EACH,GAAGD,uBAAuB,EAC1B,GAAGD,wBAAwB,EAC3B,IAAI,CACL;AAEM,MAAMG,oBAAoB,GAAAZ,OAAA,CAAAY,oBAAA,GAAG,CAClC,GAAG,EACH,IAAI,EACJ,GAAGF,uBAAuB,CAACG,GAAG,CAACC,EAAE,IAAIA,EAAE,GAAG,GAAG,CAAC,EAC9C,GAAGV,iBAAiB,CAACS,GAAG,CAACC,EAAE,IAAIA,EAAE,GAAG,GAAG,CAAC,CACzC;AAEM,MAAMC,uBAAuB,GAAAf,OAAA,CAAAe,uBAAA,GAAG,CAAC,QAAQ,EAAE,GAAG,CAAC;AAC/C,MAAMC,sBAAsB,GAAAhB,OAAA,CAAAgB,sBAAA,GAAG,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;AAC9C,MAAMC,sBAAsB,GAAAjB,OAAA,CAAAiB,sBAAA,GAAG,CAAC,QAAQ,CAAC;AACzC,MAAMC,eAAe,GAAAlB,OAAA,CAAAkB,eAAA,GAAG,CAC7B,MAAM,EACN,OAAO,EACP,GAAGH,uBAAuB,EAC1B,GAAGC,sBAAsB,EACzB,GAAGC,sBAAsB,CAC1B;AAEM,MAAME,YAAY,GAAAnB,OAAA,CAAAmB,YAAA,GAAG;EAC1BC,QAAQ,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,EAAE,YAAY,CAAC;EAC5DC,KAAK,EAAE,CAAC,OAAO,EAAE,KAAK,EAAE,KAAK;AAC/B,CAAU;AAEH,MAAMC,mBAAmB,GAAAtB,OAAA,CAAAsB,mBAAA,GAAGC,MAAM,CAACC,GAAG,CAAC,6BAA6B,CAAC;AACrE,MAAMC,iBAAiB,GAAAzB,OAAA,CAAAyB,iBAAA,GAAGF,MAAM,CAACC,GAAG,CACzC,0CACF,CAAC","ignoreList":[]}

+ 14
- 0
node_modules/@babel/types/lib/converters/ensureBlock.js View File

1
+"use strict";
2
+
3
+Object.defineProperty(exports, "__esModule", {
4
+  value: true
5
+});
6
+exports.default = ensureBlock;
7
+var _toBlock = require("./toBlock.js");
8
+function ensureBlock(node, key = "body") {
9
+  const result = (0, _toBlock.default)(node[key], node);
10
+  node[key] = result;
11
+  return result;
12
+}
13
+
14
+//# sourceMappingURL=ensureBlock.js.map

+ 1
- 0
node_modules/@babel/types/lib/converters/ensureBlock.js.map View File

1
+{"version":3,"names":["_toBlock","require","ensureBlock","node","key","result","toBlock"],"sources":["../../src/converters/ensureBlock.ts"],"sourcesContent":["import toBlock from \"./toBlock.ts\";\nimport type * as t from \"../index.ts\";\n\n/**\n * Ensure the `key` (defaults to \"body\") of a `node` is a block.\n * Casting it to a block if it is not.\n *\n * Returns the BlockStatement\n */\nexport default function ensureBlock(\n  node: t.Node,\n  key: string = \"body\",\n): t.BlockStatement {\n  // @ts-expect-error Fixme: key may not exist in node, consider remove key = \"body\"\n  const result = toBlock(node[key], node);\n  // @ts-expect-error Fixme: key may not exist in node, consider remove key = \"body\"\n  node[key] = result;\n  return result;\n}\n"],"mappings":";;;;;;AAAA,IAAAA,QAAA,GAAAC,OAAA;AASe,SAASC,WAAWA,CACjCC,IAAY,EACZC,GAAW,GAAG,MAAM,EACF;EAElB,MAAMC,MAAM,GAAG,IAAAC,gBAAO,EAACH,IAAI,CAACC,GAAG,CAAC,EAAED,IAAI,CAAC;EAEvCA,IAAI,CAACC,GAAG,CAAC,GAAGC,MAAM;EAClB,OAAOA,MAAM;AACf","ignoreList":[]}

+ 0
- 0
node_modules/@babel/types/lib/converters/gatherSequenceExpressions.js View File


Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save