//// [usingDeclarations.1.ts]
import { _ as _assert_this_initialized } from "@swc/helpers/_/_assert_this_initialized";
import { _ as _async_to_generator } from "@swc/helpers/_/_async_to_generator";
import { _ as _await_async_generator } from "@swc/helpers/_/_await_async_generator";
import { _ as _call_super } from "@swc/helpers/_/_call_super";
import { _ as _class_call_check } from "@swc/helpers/_/_class_call_check";
import { _ as _create_class } from "@swc/helpers/_/_create_class";
import { _ as _define_property } from "@swc/helpers/_/_define_property";
import { _ as _inherits } from "@swc/helpers/_/_inherits";
import { _ as _ts_add_disposable_resource } from "@swc/helpers/_/_ts_add_disposable_resource";
import { _ as _ts_dispose_resources } from "@swc/helpers/_/_ts_dispose_resources";
import { _ as _ts_generator } from "@swc/helpers/_/_ts_generator";
import { _ as _wrap_async_generator } from "@swc/helpers/_/_wrap_async_generator";
var env = {
    stack: [],
    error: void 0,
    hasError: false
};
try {
    var _C1;
    var d1 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false);
    var a = function a() {
        var env = {
            stack: [],
            error: void 0,
            hasError: false
        };
        try {
            var d6 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false);
        } catch (e) {
            env.error = e;
            env.hasError = true;
        } finally{
            _ts_dispose_resources(env);
        }
    };
    var C1 = (_C1 = /*#__PURE__*/ function() {
        "use strict";
        function C1() {
            _class_call_check(this, C1);
            this.a = function() {
                var env = {
                    stack: [],
                    error: void 0,
                    hasError: false
                };
                try {
                    var d7 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false);
                } catch (e) {
                    env.error = e;
                    env.hasError = true;
                } finally{
                    _ts_dispose_resources(env);
                }
            };
            var env = {
                stack: [],
                error: void 0,
                hasError: false
            };
            try {
                var d8 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false);
            } catch (e) {
                env.error = e;
                env.hasError = true;
            } finally{
                _ts_dispose_resources(env);
            }
        }
        var _proto = C1.prototype;
        _proto.m = function m() {
            var env = {
                stack: [],
                error: void 0,
                hasError: false
            };
            try {
                var d10 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false);
            } catch (e) {
                env.error = e;
                env.hasError = true;
            } finally{
                _ts_dispose_resources(env);
            }
        };
        _proto.am = function am() {
            return _async_to_generator(function() {
                var env, d13, e;
                return _ts_generator(this, function(_state) {
                    switch(_state.label){
                        case 0:
                            env = {
                                stack: [],
                                error: void 0,
                                hasError: false
                            };
                            _state.label = 1;
                        case 1:
                            _state.trys.push([
                                1,
                                3,
                                4,
                                5
                            ]);
                            d13 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false);
                            return [
                                4,
                                null
                            ];
                        case 2:
                            _state.sent();
                            return [
                                3,
                                5
                            ];
                        case 3:
                            e = _state.sent();
                            env.error = e;
                            env.hasError = true;
                            return [
                                3,
                                5
                            ];
                        case 4:
                            _ts_dispose_resources(env);
                            return [
                                7
                            ];
                        case 5:
                            return [
                                2
                            ];
                    }
                });
            })();
        };
        _proto.g = function g() {
            var env, d14, e;
            return _ts_generator(this, function(_state) {
                switch(_state.label){
                    case 0:
                        env = {
                            stack: [],
                            error: void 0,
                            hasError: false
                        };
                        _state.label = 1;
                    case 1:
                        _state.trys.push([
                            1,
                            3,
                            4,
                            5
                        ]);
                        d14 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false);
                        return [
                            4
                        ];
                    case 2:
                        _state.sent();
                        return [
                            3,
                            5
                        ];
                    case 3:
                        e = _state.sent();
                        env.error = e;
                        env.hasError = true;
                        return [
                            3,
                            5
                        ];
                    case 4:
                        _ts_dispose_resources(env);
                        return [
                            7
                        ];
                    case 5:
                        return [
                            2
                        ];
                }
            });
        };
        _proto.ag = function ag() {
            return _wrap_async_generator(function() {
                var env, d15, e;
                return _ts_generator(this, function(_state) {
                    switch(_state.label){
                        case 0:
                            env = {
                                stack: [],
                                error: void 0,
                                hasError: false
                            };
                            _state.label = 1;
                        case 1:
                            _state.trys.push([
                                1,
                                4,
                                5,
                                6
                            ]);
                            d15 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false);
                            return [
                                4
                            ];
                        case 2:
                            _state.sent();
                            return [
                                4,
                                _await_async_generator(null)
                            ];
                        case 3:
                            _state.sent();
                            return [
                                3,
                                6
                            ];
                        case 4:
                            e = _state.sent();
                            env.error = e;
                            env.hasError = true;
                            return [
                                3,
                                6
                            ];
                        case 5:
                            _ts_dispose_resources(env);
                            return [
                                7
                            ];
                        case 6:
                            return [
                                2
                            ];
                    }
                });
            })();
        };
        _create_class(C1, [
            {
                key: "x",
                get: function get() {
                    var env = {
                        stack: [],
                        error: void 0,
                        hasError: false
                    };
                    try {
                        var d11 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false);
                        return 0;
                    } catch (e) {
                        env.error = e;
                        env.hasError = true;
                    } finally{
                        _ts_dispose_resources(env);
                    }
                },
                set: function set(v) {
                    var env = {
                        stack: [],
                        error: void 0,
                        hasError: false
                    };
                    try {
                        var d12 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false);
                    } catch (e) {
                        env.error = e;
                        env.hasError = true;
                    } finally{
                        _ts_dispose_resources(env);
                    }
                }
            }
        ]);
        return C1;
    }(), function() {
        var env = {
            stack: [],
            error: void 0,
            hasError: false
        };
        try {
            var d9 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false);
        } catch (e) {
            env.error = e;
            env.hasError = true;
        } finally{
            _ts_dispose_resources(env);
        }
    }(), _C1);
    var C2 = /*#__PURE__*/ function(C1) {
        "use strict";
        _inherits(C2, C1);
        function C2() {
            _class_call_check(this, C2);
            var _this;
            var env = {
                stack: [],
                error: void 0,
                hasError: false
            };
            try {
                var d16 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false);
                _this = _call_super(this, C2);
            } catch (e) {
                env.error = e;
                env.hasError = true;
            } finally{
                _ts_dispose_resources(env);
            }
            return _assert_this_initialized(_this);
        }
        return C2;
    }(C1);
    var C3 = /*#__PURE__*/ function(C1) {
        "use strict";
        _inherits(C3, C1);
        function C3() {
            _class_call_check(this, C3);
            var _this;
            var env = {
                stack: [],
                error: void 0,
                hasError: false
            };
            try {
                var d17 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false);
                _this = _call_super(this, C3), _this.y = 1;
            } catch (e) {
                env.error = e;
                env.hasError = true;
            } finally{
                _ts_dispose_resources(env);
            }
            return _assert_this_initialized(_this);
        }
        return C3;
    }(C1);
    (function(N) {
        var env = {
            stack: [],
            error: void 0,
            hasError: false
        };
        try {
            var d18 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false);
        } catch (e) {
            env.error = e;
            env.hasError = true;
        } finally{
            _ts_dispose_resources(env);
        }
    })(N || (N = {}));
    {
        var env1 = {
            stack: [],
            error: void 0,
            hasError: false
        };
        try {
            var d19 = _ts_add_disposable_resource(env1, _define_property({}, Symbol.dispose, function() {}), false);
        } catch (e) {
            env1.error = e;
            env1.hasError = true;
        } finally{
            _ts_dispose_resources(env1);
        }
    }
    switch(Math.random()){
        case 0:
            var env2 = {
                stack: [],
                error: void 0,
                hasError: false
            };
            try {
                var d20 = _ts_add_disposable_resource(env2, _define_property({}, Symbol.dispose, function() {}), false);
                break;
            } catch (e) {
                env2.error = e;
                env2.hasError = true;
            } finally{
                _ts_dispose_resources(env2);
            }
        case 1:
            var env3 = {
                stack: [],
                error: void 0,
                hasError: false
            };
            try {
                var d21 = _ts_add_disposable_resource(env3, _define_property({}, Symbol.dispose, function() {}), false);
                break;
            } catch (e) {
                env3.error = e;
                env3.hasError = true;
            } finally{
                _ts_dispose_resources(env3);
            }
    }
    if (true) switch(0){
        case 0:
            var env4 = {
                stack: [],
                error: void 0,
                hasError: false
            };
            try {
                var d22 = _ts_add_disposable_resource(env4, _define_property({}, Symbol.dispose, function() {}), false);
                break;
            } catch (e) {
                env4.error = e;
                env4.hasError = true;
            } finally{
                _ts_dispose_resources(env4);
            }
    }
    try {
        var env5 = {
            stack: [],
            error: void 0,
            hasError: false
        };
        try {
            var d23 = _ts_add_disposable_resource(env5, _define_property({}, Symbol.dispose, function() {}), false);
        } catch (e) {
            env5.error = e;
            env5.hasError = true;
        } finally{
            _ts_dispose_resources(env5);
        }
    } catch (unused) {
        var env6 = {
            stack: [],
            error: void 0,
            hasError: false
        };
        try {
            var d24 = _ts_add_disposable_resource(env6, _define_property({}, Symbol.dispose, function() {}), false);
        } catch (e) {
            env6.error = e;
            env6.hasError = true;
        } finally{
            _ts_dispose_resources(env6);
        }
    } finally{
        var env7 = {
            stack: [],
            error: void 0,
            hasError: false
        };
        try {
            var d25 = _ts_add_disposable_resource(env7, _define_property({}, Symbol.dispose, function() {}), false);
        } catch (e) {
            env7.error = e;
            env7.hasError = true;
        } finally{
            _ts_dispose_resources(env7);
        }
    }
    if (true) {
        var env8 = {
            stack: [],
            error: void 0,
            hasError: false
        };
        try {
            var d26 = _ts_add_disposable_resource(env8, _define_property({}, Symbol.dispose, function() {}), false);
        } catch (e) {
            env8.error = e;
            env8.hasError = true;
        } finally{
            _ts_dispose_resources(env8);
        }
    } else {
        var env9 = {
            stack: [],
            error: void 0,
            hasError: false
        };
        try {
            var d27 = _ts_add_disposable_resource(env9, _define_property({}, Symbol.dispose, function() {}), false);
        } catch (e) {
            env9.error = e;
            env9.hasError = true;
        } finally{
            _ts_dispose_resources(env9);
        }
    }
    while(true){
        var env10 = {
            stack: [],
            error: void 0,
            hasError: false
        };
        try {
            var d28 = _ts_add_disposable_resource(env10, _define_property({}, Symbol.dispose, function() {}), false);
            break;
        } catch (e) {
            env10.error = e;
            env10.hasError = true;
        } finally{
            _ts_dispose_resources(env10);
        }
    }
    do {
        var env11 = {
            stack: [],
            error: void 0,
            hasError: false
        };
        try {
            var d29 = _ts_add_disposable_resource(env11, _define_property({}, Symbol.dispose, function() {}), false);
            break;
        } catch (e) {
            env11.error = e;
            env11.hasError = true;
        } finally{
            _ts_dispose_resources(env11);
        }
    }while (true);
    for(;;){
        var env12 = {
            stack: [],
            error: void 0,
            hasError: false
        };
        try {
            var d30 = _ts_add_disposable_resource(env12, _define_property({}, Symbol.dispose, function() {}), false);
            break;
        } catch (e) {
            env12.error = e;
            env12.hasError = true;
        } finally{
            _ts_dispose_resources(env12);
        }
    }
    for(var x in {}){
        var env13 = {
            stack: [],
            error: void 0,
            hasError: false
        };
        try {
            var d31 = _ts_add_disposable_resource(env13, _define_property({}, Symbol.dispose, function() {}), false);
        } catch (e) {
            env13.error = e;
            env13.hasError = true;
        } finally{
            _ts_dispose_resources(env13);
        }
    }
    for(var _i = 0, _iter = []; _i < _iter.length; _i++){
        var x1 = _iter[_i];
        var env14 = {
            stack: [],
            error: void 0,
            hasError: false
        };
        try {
            var d32 = _ts_add_disposable_resource(env14, _define_property({}, Symbol.dispose, function() {}), false);
        } catch (e) {
            env14.error = e;
            env14.hasError = true;
        } finally{
            _ts_dispose_resources(env14);
        }
    }
    var N;
} catch (e) {
    env.error = e;
    env.hasError = true;
} finally{
    _ts_dispose_resources(env);
}
function f() {
    var env = {
        stack: [],
        error: void 0,
        hasError: false
    };
    try {
        var d2 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false);
    } catch (e) {
        env.error = e;
        env.hasError = true;
    } finally{
        _ts_dispose_resources(env);
    }
}
function af() {
    return _async_to_generator(function() {
        var env, d3, e;
        return _ts_generator(this, function(_state) {
            switch(_state.label){
                case 0:
                    env = {
                        stack: [],
                        error: void 0,
                        hasError: false
                    };
                    _state.label = 1;
                case 1:
                    _state.trys.push([
                        1,
                        3,
                        4,
                        5
                    ]);
                    d3 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false);
                    return [
                        4,
                        null
                    ];
                case 2:
                    _state.sent();
                    return [
                        3,
                        5
                    ];
                case 3:
                    e = _state.sent();
                    env.error = e;
                    env.hasError = true;
                    return [
                        3,
                        5
                    ];
                case 4:
                    _ts_dispose_resources(env);
                    return [
                        7
                    ];
                case 5:
                    return [
                        2
                    ];
            }
        });
    })();
}
function g() {
    var env, d4, e;
    return _ts_generator(this, function(_state) {
        switch(_state.label){
            case 0:
                env = {
                    stack: [],
                    error: void 0,
                    hasError: false
                };
                _state.label = 1;
            case 1:
                _state.trys.push([
                    1,
                    3,
                    4,
                    5
                ]);
                d4 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false);
                return [
                    4
                ];
            case 2:
                _state.sent();
                return [
                    3,
                    5
                ];
            case 3:
                e = _state.sent();
                env.error = e;
                env.hasError = true;
                return [
                    3,
                    5
                ];
            case 4:
                _ts_dispose_resources(env);
                return [
                    7
                ];
            case 5:
                return [
                    2
                ];
        }
    });
}
function ag() {
    return _wrap_async_generator(function() {
        var env, d5, e;
        return _ts_generator(this, function(_state) {
            switch(_state.label){
                case 0:
                    env = {
                        stack: [],
                        error: void 0,
                        hasError: false
                    };
                    _state.label = 1;
                case 1:
                    _state.trys.push([
                        1,
                        4,
                        5,
                        6
                    ]);
                    d5 = _ts_add_disposable_resource(env, _define_property({}, Symbol.dispose, function() {}), false);
                    return [
                        4
                    ];
                case 2:
                    _state.sent();
                    return [
                        4,
                        _await_async_generator(null)
                    ];
                case 3:
                    _state.sent();
                    return [
                        3,
                        6
                    ];
                case 4:
                    e = _state.sent();
                    env.error = e;
                    env.hasError = true;
                    return [
                        3,
                        6
                    ];
                case 5:
                    _ts_dispose_resources(env);
                    return [
                        7
                    ];
                case 6:
                    return [
                        2
                    ];
            }
        });
    })();
}
export { };
