py-terser 0.1.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- py_terser-0.1.0/.editorconfig +128 -0
- py_terser-0.1.0/.github/.editorconfig +6 -0
- py_terser-0.1.0/.github/ACKNOWLEDGMENTS.md +5 -0
- py_terser-0.1.0/.github/CODEOWNERS +1 -0
- py_terser-0.1.0/.gitignore +20 -0
- py_terser-0.1.0/.idea/.gitignore +2 -0
- py_terser-0.1.0/.idea/inspectionProfiles/profiles_settings.xml +7 -0
- py_terser-0.1.0/.idea/jsonSchemas.xml +25 -0
- py_terser-0.1.0/.idea/misc.xml +6 -0
- py_terser-0.1.0/.idea/modules.xml +8 -0
- py_terser-0.1.0/.idea/py-terser.iml +14 -0
- py_terser-0.1.0/.idea/pyLspTools.xml +23 -0
- py_terser-0.1.0/.idea/pyProjectModel.xml +6 -0
- py_terser-0.1.0/.idea/pySourceRootDetection.xml +13 -0
- py_terser-0.1.0/.idea/vcs.xml +6 -0
- py_terser-0.1.0/.idea/workspace.xml +263 -0
- py_terser-0.1.0/AGENTS.md +1 -0
- py_terser-0.1.0/CLAUDE.md +44 -0
- py_terser-0.1.0/LICENSE.md +20 -0
- py_terser-0.1.0/PKG-INFO +52 -0
- py_terser-0.1.0/README.md +14 -0
- py_terser-0.1.0/pyproject.toml +109 -0
- py_terser-0.1.0/src/alpha93/commons/__init__.py +3 -0
- py_terser-0.1.0/src/alpha93/commons/_intrinsics.py +4 -0
- py_terser-0.1.0/src/alpha93/commons/_intrinsics.pyi +4 -0
- py_terser-0.1.0/src/alpha93/commons/_scopes.py +58 -0
- py_terser-0.1.0/src/alpha93/commons/_scopes.pyi +56 -0
- py_terser-0.1.0/src/alpha93/commons/env/__init__.py +8 -0
- py_terser-0.1.0/src/alpha93/commons/env/__init__.pyi +10 -0
- py_terser-0.1.0/src/alpha93/commons/py.typed +0 -0
- py_terser-0.1.0/src/alpha93/commons/pydantic/__init__.py +1 -0
- py_terser-0.1.0/src/alpha93/commons/pydantic/dataclasses.py +24 -0
- py_terser-0.1.0/src/alpha93/commons/pydantic/types.py +2 -0
- py_terser-0.1.0/src/alpha93/commons/pydantic/types.pyi +7 -0
- py_terser-0.1.0/src/alpha93/commons/types.py +11 -0
- py_terser-0.1.0/src/alpha93/commons/types.pyi +34 -0
- py_terser-0.1.0/src/alpha93/commons/utils/__init__.py +1 -0
- py_terser-0.1.0/src/alpha93/commons/utils/_mapping.py +80 -0
- py_terser-0.1.0/src/alpha93/commons/utils/_mapping.pyi +52 -0
- py_terser-0.1.0/src/alpha93/progression/__init__.py +6 -0
- py_terser-0.1.0/src/alpha93/progression/abc/__init__.py +2 -0
- py_terser-0.1.0/src/alpha93/progression/abc/_reporter.py +30 -0
- py_terser-0.1.0/src/alpha93/progression/abc/_reporter.pyi +32 -0
- py_terser-0.1.0/src/alpha93/progression/abc/_step.py +71 -0
- py_terser-0.1.0/src/alpha93/progression/headless.py +69 -0
- py_terser-0.1.0/src/alpha93/progression/reporter.py +43 -0
- py_terser-0.1.0/src/alpha93/progression/tasks.py +73 -0
- py_terser-0.1.0/src/terser/__init__.py +18 -0
- py_terser-0.1.0/src/terser/__main__.py +4 -0
- py_terser-0.1.0/src/terser/_minify.py +108 -0
- py_terser-0.1.0/src/terser/_pipeline/__init__.py +16 -0
- py_terser-0.1.0/src/terser/_pipeline/linker.py +91 -0
- py_terser-0.1.0/src/terser/_pipeline/mangler/README.md +93 -0
- py_terser-0.1.0/src/terser/_pipeline/mangler/__init__.py +9 -0
- py_terser-0.1.0/src/terser/_pipeline/mangler/_constants.py +256 -0
- py_terser-0.1.0/src/terser/_pipeline/mangler/_globals.py +153 -0
- py_terser-0.1.0/src/terser/_pipeline/mangler/_locals.py +287 -0
- py_terser-0.1.0/src/terser/_pipeline/mangler/name_generator.py +50 -0
- py_terser-0.1.0/src/terser/_pipeline/mangler/util.py +144 -0
- py_terser-0.1.0/src/terser/_pipeline/parser/__init__.py +3 -0
- py_terser-0.1.0/src/terser/_pipeline/parser/_scope.py +205 -0
- py_terser-0.1.0/src/terser/_pipeline/parser/parser.py +41 -0
- py_terser-0.1.0/src/terser/_pipeline/parser/parser.pyi +16 -0
- py_terser-0.1.0/src/terser/_pipeline/path_provider.py +270 -0
- py_terser-0.1.0/src/terser/_pipeline/pipeline.py +9 -0
- py_terser-0.1.0/src/terser/_pipeline/preprocessor.py +122 -0
- py_terser-0.1.0/src/terser/_pipeline/printer/__init__.py +4 -0
- py_terser-0.1.0/src/terser/_pipeline/printer/expression_printer.py +735 -0
- py_terser-0.1.0/src/terser/_pipeline/printer/module_printer.py +860 -0
- py_terser-0.1.0/src/terser/_pipeline/printer/string/__init__.py +0 -0
- py_terser-0.1.0/src/terser/_pipeline/printer/string/f_string.py +553 -0
- py_terser-0.1.0/src/terser/_pipeline/printer/string/ministring.py +179 -0
- py_terser-0.1.0/src/terser/_pipeline/printer/string/t_string.py +327 -0
- py_terser-0.1.0/src/terser/_pipeline/printer/token_printer.py +308 -0
- py_terser-0.1.0/src/terser/_pipeline/resolver/__init__.py +6 -0
- py_terser-0.1.0/src/terser/_pipeline/resolver/binder/__init__.py +19 -0
- py_terser-0.1.0/src/terser/_pipeline/resolver/binder/_all.py +35 -0
- py_terser-0.1.0/src/terser/_pipeline/resolver/binder/_bind.py +114 -0
- py_terser-0.1.0/src/terser/_pipeline/resolver/binder/_mark_exports.py +26 -0
- py_terser-0.1.0/src/terser/_pipeline/resolver/binder/_resolve_imports.py +78 -0
- py_terser-0.1.0/src/terser/_pipeline/resolver/binding.py +528 -0
- py_terser-0.1.0/src/terser/_pipeline/resolver/resolver.py +244 -0
- py_terser-0.1.0/src/terser/_pipeline/resolver/util.py +152 -0
- py_terser-0.1.0/src/terser/_pipeline/transforms/README.md +57 -0
- py_terser-0.1.0/src/terser/_pipeline/transforms/__init__.py +27 -0
- py_terser-0.1.0/src/terser/_pipeline/transforms/__init__.pyi +6 -0
- py_terser-0.1.0/src/terser/_pipeline/transforms/_suite.py +243 -0
- py_terser-0.1.0/src/terser/_pipeline/transforms/combine_imports.py +80 -0
- py_terser-0.1.0/src/terser/_pipeline/transforms/constant_folding.py +157 -0
- py_terser-0.1.0/src/terser/_pipeline/transforms/contracts.py +67 -0
- py_terser-0.1.0/src/terser/_pipeline/transforms/remove_annotations.py +125 -0
- py_terser-0.1.0/src/terser/_pipeline/transforms/remove_asserts.py +27 -0
- py_terser-0.1.0/src/terser/_pipeline/transforms/remove_debug.py +71 -0
- py_terser-0.1.0/src/terser/_pipeline/transforms/remove_exception_brackets.py +118 -0
- py_terser-0.1.0/src/terser/_pipeline/transforms/remove_explicit_return_none.py +35 -0
- py_terser-0.1.0/src/terser/_pipeline/transforms/remove_literal_statements.py +63 -0
- py_terser-0.1.0/src/terser/_pipeline/transforms/remove_object_base.py +25 -0
- py_terser-0.1.0/src/terser/_pipeline/transforms/remove_pass.py +28 -0
- py_terser-0.1.0/src/terser/_pipeline/transforms/remove_posargs.py +12 -0
- py_terser-0.1.0/src/terser/ast/__init__.py +18 -0
- py_terser-0.1.0/src/terser/ast/_compare.py +112 -0
- py_terser-0.1.0/src/terser/ast/_printer.py +176 -0
- py_terser-0.1.0/src/terser/ast/_visitor.py +47 -0
- py_terser-0.1.0/src/terser/ast/ast.py +99 -0
- py_terser-0.1.0/src/terser/ast/ast.pyi +209 -0
- py_terser-0.1.0/src/terser/ast/ref/__init__.py +25 -0
- py_terser-0.1.0/src/terser/ast/ref/_module/__init__.py +12 -0
- py_terser-0.1.0/src/terser/ast/ref/_module/_module.py +53 -0
- py_terser-0.1.0/src/terser/ast/ref/_module/_spec.py +135 -0
- py_terser-0.1.0/src/terser/ast/ref/_node.py +57 -0
- py_terser-0.1.0/src/terser/ast/ref/_node.pyi +42 -0
- py_terser-0.1.0/src/terser/ast/ref/_scoped.py +43 -0
- py_terser-0.1.0/src/terser/cli/__init__.py +4 -0
- py_terser-0.1.0/src/terser/cli/_argparse.py +126 -0
- py_terser-0.1.0/src/terser/cli/_argv.py +142 -0
- py_terser-0.1.0/src/terser/cli/_tqdm.py +206 -0
- py_terser-0.1.0/src/terser/cli/main.py +131 -0
- py_terser-0.1.0/src/terser/config.py +67 -0
- py_terser-0.1.0/src/terser/exceptions.py +28 -0
- py_terser-0.1.0/src/terser/hatch.py +91 -0
- py_terser-0.1.0/src/terser/hooks.py +8 -0
- py_terser-0.1.0/src/terser/project.py +240 -0
- py_terser-0.1.0/src/terser/py.typed +0 -0
- py_terser-0.1.0/src/terser/terser.py +59 -0
- py_terser-0.1.0/src/terser/utils/__init__.py +0 -0
- py_terser-0.1.0/src/terser/utils/cli_helper.py +34 -0
- py_terser-0.1.0/src/terser/utils/contracts.py +82 -0
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
[*]
|
|
5
|
+
charset = utf-8
|
|
6
|
+
end_of_line = lf
|
|
7
|
+
indent_style = space
|
|
8
|
+
insert_final_newline = true
|
|
9
|
+
trim_trailing_whitespace = true
|
|
10
|
+
|
|
11
|
+
indent_size = 4
|
|
12
|
+
ij_continuation_indent_size = 4
|
|
13
|
+
|
|
14
|
+
tab_width = 4
|
|
15
|
+
max_line_length = 120
|
|
16
|
+
ij_visual_guides = 16, 80
|
|
17
|
+
|
|
18
|
+
ij_formatter_tags_enabled = true
|
|
19
|
+
ij_formatter_on_tag = @formatter:on
|
|
20
|
+
ij_formatter_off_tag = @formatter:off
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
[.editorconfig]
|
|
24
|
+
ij_editorconfig_space_before_colon = false
|
|
25
|
+
ij_editorconfig_space_after_colon = false
|
|
26
|
+
ij_editorconfig_space_before_comma = false
|
|
27
|
+
ij_editorconfig_space_after_comma = true
|
|
28
|
+
ij_editorconfig_spaces_around_assignment_operators = true
|
|
29
|
+
|
|
30
|
+
ij_editorconfig_align_group_field_declarations = false
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
[*.toml]
|
|
34
|
+
ij_toml_keep_indents_on_empty_lines = false
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
[*.{py,pyw,pyc,pyi}]
|
|
38
|
+
ij_python_blank_line_at_file_end = true
|
|
39
|
+
ij_python_blank_lines_after_imports = 1
|
|
40
|
+
ij_python_blank_lines_after_local_imports = 0
|
|
41
|
+
ij_python_blank_lines_around_class = 1
|
|
42
|
+
ij_python_blank_lines_around_method = 1
|
|
43
|
+
ij_python_blank_lines_around_top_level_classes_functions = 2
|
|
44
|
+
ij_python_blank_lines_before_first_method = 0
|
|
45
|
+
|
|
46
|
+
ij_continuation_indent_size = 8
|
|
47
|
+
ij_python_use_continuation_indent_for_arguments = false
|
|
48
|
+
ij_python_use_continuation_indent_for_collection_and_comprehensions = false
|
|
49
|
+
ij_python_use_continuation_indent_for_parameters = false
|
|
50
|
+
ij_python_add_indent_inside_injections = false
|
|
51
|
+
|
|
52
|
+
ij_python_use_trailing_comma_in_arguments_list = true
|
|
53
|
+
ij_python_use_trailing_comma_in_collections = true
|
|
54
|
+
ij_python_use_trailing_comma_in_parameter_list = true
|
|
55
|
+
|
|
56
|
+
ij_python_call_parameters_new_line_after_left_paren = false
|
|
57
|
+
ij_python_call_parameters_right_paren_on_new_line = false
|
|
58
|
+
ij_python_call_parameters_wrap = normal
|
|
59
|
+
ij_python_dict_new_line_after_left_brace = false
|
|
60
|
+
ij_python_dict_new_line_before_right_brace = false
|
|
61
|
+
ij_python_dict_wrapping = normal
|
|
62
|
+
ij_python_format_injected_fragments = true
|
|
63
|
+
ij_python_from_import_new_line_after_left_parenthesis = false
|
|
64
|
+
ij_python_from_import_new_line_before_right_parenthesis = false
|
|
65
|
+
ij_python_from_import_parentheses_force_if_multiline = false
|
|
66
|
+
ij_python_from_import_trailing_comma_if_multiline = false
|
|
67
|
+
ij_python_from_import_wrapping = normal
|
|
68
|
+
ij_python_hang_closing_brackets = false
|
|
69
|
+
ij_python_keep_blank_lines_in_code = 1
|
|
70
|
+
ij_python_keep_blank_lines_in_declarations = 1
|
|
71
|
+
ij_python_keep_indents_on_empty_lines = false
|
|
72
|
+
ij_python_keep_line_breaks = true
|
|
73
|
+
ij_python_list_new_line_after_left_bracket = false
|
|
74
|
+
ij_python_list_new_line_before_right_bracket = false
|
|
75
|
+
ij_python_list_wrapping = normal
|
|
76
|
+
ij_python_method_parameters_new_line_after_left_paren = false
|
|
77
|
+
ij_python_method_parameters_right_paren_on_new_line = false
|
|
78
|
+
ij_python_method_parameters_wrap = normal
|
|
79
|
+
ij_python_new_line_after_colon = false
|
|
80
|
+
ij_python_new_line_after_colon_multi_clause = true
|
|
81
|
+
ij_python_optimize_imports_always_split_from_imports = false
|
|
82
|
+
ij_python_optimize_imports_case_insensitive_order = false
|
|
83
|
+
ij_python_optimize_imports_join_from_imports_with_same_source = false
|
|
84
|
+
ij_python_optimize_imports_sort_by_type_first = true
|
|
85
|
+
ij_python_optimize_imports_sort_imports = true
|
|
86
|
+
ij_python_optimize_imports_sort_names_in_from_imports = false
|
|
87
|
+
ij_python_set_new_line_after_left_brace = false
|
|
88
|
+
ij_python_set_new_line_before_right_brace = false
|
|
89
|
+
ij_python_set_wrapping = normal
|
|
90
|
+
|
|
91
|
+
ij_python_space_before_backslash = true
|
|
92
|
+
ij_python_space_before_for_semicolon = false
|
|
93
|
+
ij_python_space_before_lbracket = false
|
|
94
|
+
ij_python_space_before_method_call_parentheses = false
|
|
95
|
+
ij_python_space_before_method_parentheses = false
|
|
96
|
+
|
|
97
|
+
ij_python_space_before_comma = false
|
|
98
|
+
ij_python_space_after_comma = true
|
|
99
|
+
ij_python_space_before_number_sign = true
|
|
100
|
+
ij_python_space_after_number_sign = true
|
|
101
|
+
ij_python_space_before_py_colon = false
|
|
102
|
+
ij_python_space_after_py_colon = true
|
|
103
|
+
|
|
104
|
+
ij_python_space_within_empty_method_call_parentheses = false
|
|
105
|
+
ij_python_space_within_empty_method_parentheses = false
|
|
106
|
+
ij_python_spaces_around_additive_operators = true
|
|
107
|
+
ij_python_spaces_around_assignment_operators = true
|
|
108
|
+
ij_python_spaces_around_bitwise_operators = true
|
|
109
|
+
ij_python_spaces_around_eq_in_keyword_argument = false
|
|
110
|
+
ij_python_spaces_around_eq_in_named_parameter = false
|
|
111
|
+
ij_python_spaces_around_equality_operators = true
|
|
112
|
+
ij_python_spaces_around_multiplicative_operators = true
|
|
113
|
+
ij_python_spaces_around_power_operator = true
|
|
114
|
+
ij_python_spaces_around_relational_operators = true
|
|
115
|
+
ij_python_spaces_around_shift_operators = true
|
|
116
|
+
ij_python_spaces_within_braces = false
|
|
117
|
+
ij_python_spaces_within_brackets = false
|
|
118
|
+
ij_python_spaces_within_method_call_parentheses = false
|
|
119
|
+
ij_python_spaces_within_method_parentheses = false
|
|
120
|
+
ij_python_tuple_new_line_after_left_parenthesis = false
|
|
121
|
+
ij_python_tuple_new_line_before_right_parenthesis = false
|
|
122
|
+
ij_python_tuple_wrapping = normal
|
|
123
|
+
|
|
124
|
+
ij_python_align_collections_and_comprehensions = false
|
|
125
|
+
ij_python_align_multiline_imports = false
|
|
126
|
+
ij_python_align_multiline_parameters = false
|
|
127
|
+
ij_python_align_multiline_parameters_in_calls = false
|
|
128
|
+
ij_python_dict_alignment = 0
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
* @AlphaKR93
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="JsonSchemaMappingsProjectConfiguration">
|
|
4
|
+
<state>
|
|
5
|
+
<map>
|
|
6
|
+
<entry key="pyproject.toml">
|
|
7
|
+
<value>
|
|
8
|
+
<SchemaInfo>
|
|
9
|
+
<option name="name" value="pyproject.toml" />
|
|
10
|
+
<option name="relativePathToSchema" value="https://json.schemastore.org/pyproject.json" />
|
|
11
|
+
<option name="applicationDefined" value="true" />
|
|
12
|
+
<option name="patterns">
|
|
13
|
+
<list>
|
|
14
|
+
<Item>
|
|
15
|
+
<option name="path" value="pyproject.toml" />
|
|
16
|
+
</Item>
|
|
17
|
+
</list>
|
|
18
|
+
</option>
|
|
19
|
+
</SchemaInfo>
|
|
20
|
+
</value>
|
|
21
|
+
</entry>
|
|
22
|
+
</map>
|
|
23
|
+
</state>
|
|
24
|
+
</component>
|
|
25
|
+
</project>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="ProjectModuleManager">
|
|
4
|
+
<modules>
|
|
5
|
+
<module fileurl="file://$PROJECT_DIR$/.idea/py-terser.iml" filepath="$PROJECT_DIR$/.idea/py-terser.iml" />
|
|
6
|
+
</modules>
|
|
7
|
+
</component>
|
|
8
|
+
</project>
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<module external.system.id="pyproject.toml" type="PYTHON_MODULE" version="4">
|
|
3
|
+
<component name="NewModuleRootManager">
|
|
4
|
+
<content url="file://$MODULE_DIR$">
|
|
5
|
+
<sourceFolder url="file://$MODULE_DIR$/src" isTestSource="false" />
|
|
6
|
+
<excludeFolder url="file://$MODULE_DIR$/.venv" />
|
|
7
|
+
<excludeFolder url="file://$MODULE_DIR$/out" />
|
|
8
|
+
<excludeFolder url="file://$MODULE_DIR$/tmp" />
|
|
9
|
+
<excludeFolder url="file://$MODULE_DIR$/test_src" />
|
|
10
|
+
</content>
|
|
11
|
+
<orderEntry type="jdk" jdkName="uv (dev)" jdkType="Python SDK" />
|
|
12
|
+
<orderEntry type="sourceFolder" forTests="false" />
|
|
13
|
+
</component>
|
|
14
|
+
</module>
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="PyToolsState">
|
|
4
|
+
<option name="tools">
|
|
5
|
+
<map>
|
|
6
|
+
<entry key="ruff">
|
|
7
|
+
<value>
|
|
8
|
+
<ToolEntry>
|
|
9
|
+
<option name="enabled" value="true" />
|
|
10
|
+
</ToolEntry>
|
|
11
|
+
</value>
|
|
12
|
+
</entry>
|
|
13
|
+
<entry key="ty">
|
|
14
|
+
<value>
|
|
15
|
+
<ToolEntry>
|
|
16
|
+
<option name="enabled" value="true" />
|
|
17
|
+
</ToolEntry>
|
|
18
|
+
</value>
|
|
19
|
+
</entry>
|
|
20
|
+
</map>
|
|
21
|
+
</option>
|
|
22
|
+
</component>
|
|
23
|
+
</project>
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="PySourceRootDetectionService">
|
|
4
|
+
<option name="sourcePathsSet">
|
|
5
|
+
<set>
|
|
6
|
+
<option value="$PROJECT_DIR$/src/python_minifier" />
|
|
7
|
+
<option value="$PROJECT_DIR$/src/python_minifier/parser" />
|
|
8
|
+
<option value="$PROJECT_DIR$/src/alpha93" />
|
|
9
|
+
<option value="$PROJECT_DIR$/src/terser" />
|
|
10
|
+
</set>
|
|
11
|
+
</option>
|
|
12
|
+
</component>
|
|
13
|
+
</project>
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<project version="4">
|
|
3
|
+
<component name="AutoImportSettings">
|
|
4
|
+
<option name="autoReloadType" value="ALL" />
|
|
5
|
+
</component>
|
|
6
|
+
<component name="ChangeListManager">
|
|
7
|
+
<list default="true" id="7efcefc3-ef6c-429f-afab-91c43b550702" name="변경" comment="" />
|
|
8
|
+
<option name="SHOW_DIALOG" value="false" />
|
|
9
|
+
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
10
|
+
<option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
|
|
11
|
+
<option name="LAST_RESOLUTION" value="IGNORE" />
|
|
12
|
+
</component>
|
|
13
|
+
<component name="EmbeddingIndexingInfo">
|
|
14
|
+
<option name="cachedIndexableFilesCount" value="119" />
|
|
15
|
+
<option name="fileBasedEmbeddingIndicesEnabled" value="true" />
|
|
16
|
+
</component>
|
|
17
|
+
<component name="FileTemplateManagerImpl">
|
|
18
|
+
<option name="RECENT_TEMPLATES">
|
|
19
|
+
<list>
|
|
20
|
+
<option value="Python Stub" />
|
|
21
|
+
<option value="Python Script" />
|
|
22
|
+
</list>
|
|
23
|
+
</option>
|
|
24
|
+
</component>
|
|
25
|
+
<component name="Git.Settings">
|
|
26
|
+
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
|
27
|
+
</component>
|
|
28
|
+
<component name="HighlightingSettingsPerFile">
|
|
29
|
+
<setting file="file://$PROJECT_DIR$/src/terser/_pipeline/project.py" root0="FORCE_HIGHLIGHTING" />
|
|
30
|
+
<setting file="file://$APPLICATION_HOME_DIR$/plugins/python-ce/helpers/typeshed/stdlib/ast.pyi" root0="SKIP_INSPECTION" />
|
|
31
|
+
<setting file="file://$APPLICATION_HOME_DIR$/plugins/python-ce/helpers/typeshed/stdlib/builtins.pyi" root0="SKIP_INSPECTION" />
|
|
32
|
+
</component>
|
|
33
|
+
<component name="McpProjectServerCommands">
|
|
34
|
+
<commands />
|
|
35
|
+
<urls />
|
|
36
|
+
</component>
|
|
37
|
+
<component name="NextEditCompletionFeaturesState">
|
|
38
|
+
<decayedCancelled>
|
|
39
|
+
<entry key="MS100" value="1.0231956898838015" />
|
|
40
|
+
<entry key="MS500" value="1.514342561159633" />
|
|
41
|
+
<entry key="S2" value="2.9942939503227315" />
|
|
42
|
+
<entry key="S5" value="4.341908110009445" />
|
|
43
|
+
<entry key="S10" value="5.064264168485632" />
|
|
44
|
+
<entry key="S30" value="5.660441103470189" />
|
|
45
|
+
<entry key="S60" value="5.826482866729463" />
|
|
46
|
+
<entry key="M2" value="5.912444324038461" />
|
|
47
|
+
<entry key="M5" value="6.260157064405609" />
|
|
48
|
+
<entry key="M10" value="10.8046889165633" />
|
|
49
|
+
<entry key="M15" value="20.981911201485115" />
|
|
50
|
+
<entry key="M30" value="73.94671917729204" />
|
|
51
|
+
<entry key="H1" value="232.01360364462053" />
|
|
52
|
+
<entry key="H2" value="684.3626716533637" />
|
|
53
|
+
<entry key="H4" value="1767.7153788749995" />
|
|
54
|
+
<entry key="D1" value="8454.591121234724" />
|
|
55
|
+
<entry key="W1" value="13432.924092493642" />
|
|
56
|
+
</decayedCancelled>
|
|
57
|
+
<decayedSelected>
|
|
58
|
+
<entry key="MS100" value="0.0" />
|
|
59
|
+
<entry key="MS500" value="0.0" />
|
|
60
|
+
<entry key="S2" value="3.237446969380213E-301" />
|
|
61
|
+
<entry key="S5" value="6.3691445473314364E-121" />
|
|
62
|
+
<entry key="S10" value="7.983113337773576E-61" />
|
|
63
|
+
<entry key="S30" value="9.899583791366639E-21" />
|
|
64
|
+
<entry key="S60" value="1.2234335231454593E-10" />
|
|
65
|
+
<entry key="M2" value="1.6275730049511694E-5" />
|
|
66
|
+
<entry key="M5" value="0.025498279495392306" />
|
|
67
|
+
<entry key="M10" value="0.37682038250483063" />
|
|
68
|
+
<entry key="M15" value="1.0493286525473333" />
|
|
69
|
+
<entry key="M30" value="3.8296418971011805" />
|
|
70
|
+
<entry key="H1" value="12.744580269992792" />
|
|
71
|
+
<entry key="H2" value="43.07719460304047" />
|
|
72
|
+
<entry key="H4" value="115.76558089101108" />
|
|
73
|
+
<entry key="D1" value="515.7790093448459" />
|
|
74
|
+
<entry key="W1" value="805.6901896186541" />
|
|
75
|
+
</decayedSelected>
|
|
76
|
+
<decayedShown>
|
|
77
|
+
<entry key="MS100" value="0.07743116195015069" />
|
|
78
|
+
<entry key="MS500" value="0.9536202103524644" />
|
|
79
|
+
<entry key="S2" value="2.6681083594930173" />
|
|
80
|
+
<entry key="S5" value="4.143832480054311" />
|
|
81
|
+
<entry key="S10" value="4.94706781599457" />
|
|
82
|
+
<entry key="S30" value="5.61638121638161" />
|
|
83
|
+
<entry key="S60" value="5.803757714763531" />
|
|
84
|
+
<entry key="M2" value="5.90091788243608" />
|
|
85
|
+
<entry key="M5" value="6.280605789826685" />
|
|
86
|
+
<entry key="M10" value="11.176250877658072" />
|
|
87
|
+
<entry key="M15" value="22.02401357764071" />
|
|
88
|
+
<entry key="M30" value="77.76388674222902" />
|
|
89
|
+
<entry key="H1" value="244.73785625147002" />
|
|
90
|
+
<entry key="H2" value="727.4064494781361" />
|
|
91
|
+
<entry key="H4" value="1883.3929989583853" />
|
|
92
|
+
<entry key="D1" value="8969.273851053456" />
|
|
93
|
+
<entry key="W1" value="14236.779567213976" />
|
|
94
|
+
</decayedShown>
|
|
95
|
+
</component>
|
|
96
|
+
<component name="ProjectColorInfo">{
|
|
97
|
+
"associatedIndex": 8,
|
|
98
|
+
"fromUser": false
|
|
99
|
+
}</component>
|
|
100
|
+
<component name="ProjectId" id="3GLMD2HwGkKK6T50CwHyG2f2s9B" />
|
|
101
|
+
<component name="ProjectLevelVcsManager">
|
|
102
|
+
<ConfirmationsSetting value="1" id="Add" />
|
|
103
|
+
</component>
|
|
104
|
+
<component name="ProjectViewState">
|
|
105
|
+
<option name="hideEmptyMiddlePackages" value="true" />
|
|
106
|
+
<option name="showLibraryContents" value="true" />
|
|
107
|
+
</component>
|
|
108
|
+
<component name="PropertiesComponent"><![CDATA[{
|
|
109
|
+
"keyToString": {
|
|
110
|
+
"Git.Working.Tree.Tab.closed.by.user": "closed",
|
|
111
|
+
"ModuleVcsDetector.initialDetectionPerformed": "true",
|
|
112
|
+
"Python.test.executor": "Debug",
|
|
113
|
+
"RunOnceActivity.GPG_PINENTRY_CONFIGURATION_PROPOSAL": "true",
|
|
114
|
+
"RunOnceActivity.MCP Project settings loaded": "true",
|
|
115
|
+
"RunOnceActivity.ShowReadmeOnStart": "true",
|
|
116
|
+
"RunOnceActivity.TerminalTabsStorage.copyFrom.TerminalArrangementManager.252": "true",
|
|
117
|
+
"RunOnceActivity.git.unshallow": "true",
|
|
118
|
+
"codeWithMe.voiceChat.enabledByDefault": "false",
|
|
119
|
+
"last.edited.regexp": "# else",
|
|
120
|
+
"last_opened_file_path": "/home/alphakr93/Documents/Projects/MadeByAlpha/py-terser/claude/all-transforms"
|
|
121
|
+
}
|
|
122
|
+
}]]></component>
|
|
123
|
+
<component name="PyConsoleOptionsProvider">
|
|
124
|
+
<option name="myPythonConsoleState">
|
|
125
|
+
<console-settings module-name="py-terser" is-module-sdk="true">
|
|
126
|
+
<option name="myUseModuleSdk" value="true" />
|
|
127
|
+
<option name="myModuleName" value="py-terser" />
|
|
128
|
+
</console-settings>
|
|
129
|
+
</option>
|
|
130
|
+
<option name="myCodeCompletionOption" value="런타임" />
|
|
131
|
+
</component>
|
|
132
|
+
<component name="PyDebuggerOptionsProvider">
|
|
133
|
+
<option name="mySaveCallSignatures" value="true" />
|
|
134
|
+
<option name="mySupportQtDebugging" value="false" />
|
|
135
|
+
<option name="myDebuggerBackend" value="PYDEVD" />
|
|
136
|
+
</component>
|
|
137
|
+
<component name="RecentsManager">
|
|
138
|
+
<key name="CopyFile.RECENT_KEYS">
|
|
139
|
+
<recent name="$PROJECT_DIR$/src/alpha93/progression/abc" />
|
|
140
|
+
<recent name="$PROJECT_DIR$/src" />
|
|
141
|
+
<recent name="$PROJECT_DIR$/src/terser/_pipeline/resolver" />
|
|
142
|
+
<recent name="$PROJECT_DIR$/src/terser/_pipeline/linker" />
|
|
143
|
+
<recent name="$PROJECT_DIR$/src/python_minifier/linker/binder" />
|
|
144
|
+
</key>
|
|
145
|
+
<key name="MoveFile.RECENT_KEYS">
|
|
146
|
+
<recent name="$PROJECT_DIR$/src/alpha93" />
|
|
147
|
+
<recent name="$PROJECT_DIR$/src/commons/pydantic" />
|
|
148
|
+
<recent name="$PROJECT_DIR$/src/alpha93/progression" />
|
|
149
|
+
<recent name="$PROJECT_DIR$/src/terser" />
|
|
150
|
+
<recent name="$PROJECT_DIR$/src/terser/ast" />
|
|
151
|
+
</key>
|
|
152
|
+
</component>
|
|
153
|
+
<component name="RunAnythingCache">
|
|
154
|
+
<option name="myCommands">
|
|
155
|
+
<command value="/정렬" />
|
|
156
|
+
</option>
|
|
157
|
+
</component>
|
|
158
|
+
<component name="RunManager">
|
|
159
|
+
<configuration name="test" type="PythonConfigurationType" factoryName="Python" temporary="true" nameIsGenerated="true">
|
|
160
|
+
<module name="py-terser" />
|
|
161
|
+
<option name="ENV_FILES" value="" />
|
|
162
|
+
<option name="INTERPRETER_OPTIONS" value="" />
|
|
163
|
+
<option name="PARENT_ENVS" value="true" />
|
|
164
|
+
<envs>
|
|
165
|
+
<env name="PYTHONUNBUFFERED" value="1" />
|
|
166
|
+
</envs>
|
|
167
|
+
<option name="SDK_HOME" value="" />
|
|
168
|
+
<option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
|
|
169
|
+
<option name="IS_MODULE_SDK" value="true" />
|
|
170
|
+
<option name="ADD_CONTENT_ROOTS" value="true" />
|
|
171
|
+
<option name="ADD_SOURCE_ROOTS" value="true" />
|
|
172
|
+
<option name="DEBUG_JUST_MY_CODE" value="false" />
|
|
173
|
+
<EXTENSION ID="PythonCoverageRunConfigurationExtension" runner="coverage.py" />
|
|
174
|
+
<option name="RUN_TOOL" value="" />
|
|
175
|
+
<option name="SCRIPT_NAME" value="$PROJECT_DIR$/test.py" />
|
|
176
|
+
<option name="PARAMETERS" value="" />
|
|
177
|
+
<option name="SHOW_COMMAND_LINE" value="false" />
|
|
178
|
+
<option name="EMULATE_TERMINAL" value="false" />
|
|
179
|
+
<option name="MODULE_MODE" value="false" />
|
|
180
|
+
<option name="REDIRECT_INPUT" value="false" />
|
|
181
|
+
<option name="INPUT_FILE" value="" />
|
|
182
|
+
<method v="2" />
|
|
183
|
+
</configuration>
|
|
184
|
+
<recent_temporary>
|
|
185
|
+
<list>
|
|
186
|
+
<item itemvalue="Python.test" />
|
|
187
|
+
</list>
|
|
188
|
+
</recent_temporary>
|
|
189
|
+
</component>
|
|
190
|
+
<component name="SharedIndexes">
|
|
191
|
+
<attachedChunks>
|
|
192
|
+
<set>
|
|
193
|
+
<option value="bundled-python-sdk-17dd2e523595-5bd6d13a2a75-com.jetbrains.pycharm.pro.sharedIndexes.bundled-PY-262.8665.186" />
|
|
194
|
+
</set>
|
|
195
|
+
</attachedChunks>
|
|
196
|
+
</component>
|
|
197
|
+
<component name="TaskManager">
|
|
198
|
+
<task active="true" id="Default" summary="디폴트 작업">
|
|
199
|
+
<changelist id="7efcefc3-ef6c-429f-afab-91c43b550702" name="변경" comment="" />
|
|
200
|
+
<created>1783746273996</created>
|
|
201
|
+
<option name="number" value="Default" />
|
|
202
|
+
<option name="presentableId" value="Default" />
|
|
203
|
+
<updated>1783746273996</updated>
|
|
204
|
+
<workItem from="1783746275055" duration="10454000" />
|
|
205
|
+
<workItem from="1783828678994" duration="40676000" />
|
|
206
|
+
<workItem from="1784344603996" duration="32462000" />
|
|
207
|
+
<workItem from="1784442907884" duration="4524000" />
|
|
208
|
+
<workItem from="1784600524572" duration="18450000" />
|
|
209
|
+
<workItem from="1784741004898" duration="42172000" />
|
|
210
|
+
<workItem from="1784869658704" duration="1379000" />
|
|
211
|
+
<workItem from="1784897026024" duration="9770000" />
|
|
212
|
+
<workItem from="1784955705358" duration="27436000" />
|
|
213
|
+
</task>
|
|
214
|
+
<servers />
|
|
215
|
+
</component>
|
|
216
|
+
<component name="Vcs.Log.Tabs.Properties">
|
|
217
|
+
<option name="TAB_STATES">
|
|
218
|
+
<map>
|
|
219
|
+
<entry key="MAIN">
|
|
220
|
+
<value>
|
|
221
|
+
<State>
|
|
222
|
+
<option name="FILTERS">
|
|
223
|
+
<map>
|
|
224
|
+
<entry key="branch">
|
|
225
|
+
<value>
|
|
226
|
+
<list>
|
|
227
|
+
<option value="dev" />
|
|
228
|
+
</list>
|
|
229
|
+
</value>
|
|
230
|
+
</entry>
|
|
231
|
+
</map>
|
|
232
|
+
</option>
|
|
233
|
+
</State>
|
|
234
|
+
</value>
|
|
235
|
+
</entry>
|
|
236
|
+
</map>
|
|
237
|
+
</option>
|
|
238
|
+
</component>
|
|
239
|
+
<component name="VcsManagerConfiguration">
|
|
240
|
+
<MESSAGE value="wip: work" />
|
|
241
|
+
<MESSAGE value="wip: work" />
|
|
242
|
+
<MESSAGE value="wip: work" />
|
|
243
|
+
<MESSAGE value="wip: work" />
|
|
244
|
+
<MESSAGE value="wip: work" />
|
|
245
|
+
<MESSAGE value="feat(progression): implement headless reporter and tqdm-backed CLI reporter Add concrete Reporter/BaseReporter/HeadlessReporter and the missing tasks/context.py, matching the existing steps/context.py pattern. Implement TqdmReporter in terser.cli._tqdm by subclassing progression's BaseStepContext/IterableStep/IterableTaskContext/AsyncIterableTaskContext/Task so tqdm behavior composes with the abstract interface instead of duplicating it. Authored-By: Claude Sonnet 5 <noreply@anthropic.com>" />
|
|
246
|
+
<MESSAGE value="feat(progression): implement headless reporter and tqdm-backed CLI reporter Add concrete Reporter/BaseReporter/HeadlessReporter and the missing tasks/context.py, matching the existing steps/context.py pattern. Implement TqdmReporter in terser.cli._tqdm by subclassing progression's BaseStepContext/IterableStep/IterableTaskContext/AsyncIterableTaskContext/Task so tqdm behavior composes with the abstract interface instead of duplicating it. Authored-By: Claude Sonnet 5 <noreply@anthropic.com>" />
|
|
247
|
+
<option name="LAST_COMMIT_MESSAGE" value="feat(progression): implement headless reporter and tqdm-backed CLI reporter Add concrete Reporter/BaseReporter/HeadlessReporter and the missing tasks/context.py, matching the existing steps/context.py pattern. Implement TqdmReporter in terser.cli._tqdm by subclassing progression's BaseStepContext/IterableStep/IterableTaskContext/AsyncIterableTaskContext/Task so tqdm behavior composes with the abstract interface instead of duplicating it. Authored-By: Claude Sonnet 5 <noreply@anthropic.com>" />
|
|
248
|
+
</component>
|
|
249
|
+
<component name="XDebuggerManager">
|
|
250
|
+
<breakpoint-manager>
|
|
251
|
+
<breakpoints>
|
|
252
|
+
<line-breakpoint enabled="true" suspend="THREAD" type="python-line">
|
|
253
|
+
<url>file://$PROJECT_DIR$/test.py</url>
|
|
254
|
+
<line>19</line>
|
|
255
|
+
<option name="timeStamp" value="4" />
|
|
256
|
+
</line-breakpoint>
|
|
257
|
+
</breakpoints>
|
|
258
|
+
</breakpoint-manager>
|
|
259
|
+
</component>
|
|
260
|
+
<component name="com.intellij.coverage.CoverageDataManagerImpl">
|
|
261
|
+
<SUITE FILE_PATH="coverage/dev$test.coverage" NAME="test 커버리지 결과" MODIFIED="1784979519653" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="false" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
|
|
262
|
+
</component>
|
|
263
|
+
</project>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
CLAUDE.md
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
# CLAUDE.md
|
|
2
|
+
|
|
3
|
+
`py-terser` (package `terser`) is a fork of [dflook/python-minifier](https://github.com/dflook/python-minifier), being rewritten to minify across a whole project. Planned to provide hatch build hook along with the CLI. The goal is to add a project-wide pipeline in addition to the original single-file pipeline. Source root is `src/`, package manager is `uv`.
|
|
4
|
+
|
|
5
|
+
Codebase is in mid-migration (dead imports, commented-out code, `# TEMP` markers, empty stubs) — ignore name errors that appear in the type checker. There is no test suite/framework wired up yet. `test.py` at the root is an ad-hoc manual script for IDE debugging, not a pytest target; do not run or modify it.
|
|
6
|
+
|
|
7
|
+
## Architecture
|
|
8
|
+
|
|
9
|
+
Pipelines live under `terser._pipeline`, consists of these components:
|
|
10
|
+
|
|
11
|
+
- `minify()` — new async minifier, shared across single-file and project-wide mode.
|
|
12
|
+
1. Preprocess (`preprocessor.py`) — strips shebang, handles preprocessing (directives).
|
|
13
|
+
2. Parse (`parser/parser.py`) — parses source into `ast.Module`, wrapping it in a `ModuleRef` (attached via the `ref()`/`NodeRef` mechanism, see below).
|
|
14
|
+
3. Apply pre-transforms — apply transforms with `FLAGS <= 0`.
|
|
15
|
+
4. Resolve names (`resolver/`) — two phase: `resolver.resolve()` in `resolver.py` walks the AST, binding every name to a `Binding` in its namespace (`ScopedNode`), mirroring CPython scoping rules. `binder/` (in `resolver/binder/__init__.py`, running `resolve_all` → `mark_exports` → `resolve_imports` → `bind`) then figures out `__all__`, module exports, and unresolved import targets (`UnresolvedModuleRef`) *within* a single module, deferring cross-module linking.
|
|
16
|
+
5. Apply module transforms — apply transforms with `FLAGS <= 1`, repeat `config.passes` times. Stop iteration if `_is_node_modified` of all transforms is `False`.
|
|
17
|
+
6. Module-level mangle — apply mangling for module-level names (locals/nonlocals, `__` prefixed names).
|
|
18
|
+
- Transformers — per-node rewrite passes, inherits `SuiteTransformer`. Some transformers need bindings already resolved (see `FLAGS`) — check the ordering there before adding a new one.
|
|
19
|
+
- Mangler — name-shortening (rename, hoist literals). Currently disconnected from the new minifier.
|
|
20
|
+
|
|
21
|
+
### Project-wide architecture
|
|
22
|
+
|
|
23
|
+
Project-wide pipeline stages live under `terser._pipeline`, run roughly in this order:
|
|
24
|
+
|
|
25
|
+
1. Resolve paths — `PathProvider` (`path_provider.py`) takes a set of file/dir paths, walks directories for `*.py`/`*.pyw`, and `align()`s them into a namespace tree of `ModuleSpec` (`terser.ast.ref.module.spec`). This must run and resolve (`await pp.resolve()`) before any module is parsed, since parsing needs a module's `ModuleSpec` to know its dotted path and how to resolve relative imports.
|
|
26
|
+
2. Process individual modules asynchronously (multi-threaded) via `minify`.
|
|
27
|
+
3. Linking (`linker.py`) — the actual project-aware step: once every module in the project has been through resolver, `link()` matches each module's `import_targets`/`wildcard_targets` against the full `project: dict[str, ModuleRef]` to resolve `import x.y` and`from x import *` across files. Wildcard imports can only be expanded once the target module's exports are known, which is why this is a separate, later pass.
|
|
28
|
+
4. Apply project transforms — apply transforms with `FLAGS <= 2`, repeat `config.passes` times.
|
|
29
|
+
5. Project-level mangle — apply project-wide mangling using linked information.
|
|
30
|
+
6. Apply mangle-sensitive transforms — apply transforms with `FLAGS <= 4`.
|
|
31
|
+
|
|
32
|
+
### Node references (`terser.ast.ref`)
|
|
33
|
+
|
|
34
|
+
AST nodes are plain `ast.AST` subclasses (re-exported from `terser/ast/ast.py`); metadata (parent, namespace, bindings, module spec, etc.) is never stored on the node itself. Instead, `NodeRef.new()` attaches a side-table object to each node via a hidden attribute, retrieved with `ref(node)`.
|
|
35
|
+
|
|
36
|
+
Which `NodeRef` subclass wraps a node is decided by `NodeRef._KLASSES[type(node)]`: plain nodes get a bare `NodeRef`, namespace-introducing nodes (`SCOPED_T` in `_scoped.py`) get a `ScopedNode` (adds `bindings`/`globals`/`nonlocals`), and `ast.Module` specifically gets `ModuleRef` (`ast/ref/_module/_module.py`, inherits `ScopedNode`), which additionally carries the module's `ModuleSpec`, `preserved`/`all`/`tainted` state, and the `import_targets`/`wildcard_targets` maps that `linker.py` consumes. When adding a new node kind that needs extra metadata, register it in `_KLASSES` rather than adding attributes to the AST node class.
|
|
37
|
+
|
|
38
|
+
### Name binding (`terser._pipeline.resolver.binder`)
|
|
39
|
+
|
|
40
|
+
After applying the pre-transform (phase 3 of `minify()`), the declaration of the name is bound. Bindings include `NameBinding`, `ImportBinding`, `UnresolvedBinding`, and `BuiltinBinding`. These will be used for project-wide processing.
|
|
41
|
+
|
|
42
|
+
## Stub files
|
|
43
|
+
|
|
44
|
+
There are some hand-written stubs (per the user's Python type-checking convention: complex types go in `.pyi` rather than runtime annotations to save resources) — check these when a type-checker error exists and the runtime source doesn't explain it.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
======
|
|
3
|
+
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
6
|
+
in the Software without restriction, including without limitation the rights
|
|
7
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
9
|
+
furnished to do so, subject to the following conditions:
|
|
10
|
+
|
|
11
|
+
The above copyright notice and this permission notice shall be included in all
|
|
12
|
+
copies or substantial portions of the Software.
|
|
13
|
+
|
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
15
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
16
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
17
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
18
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
19
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
20
|
+
SOFTWARE.
|