From 8b7bb489151c65dd5a38660f516e8ba22848216a Mon Sep 17 00:00:00 2001 From: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com> Date: Sat, 2 Mar 2024 20:14:14 +0100 Subject: [PATCH 01/13] Bump swc, enable stacker feature Bump swc --- Cargo.lock | 523 ++++++++++++----------- crates/macros/Cargo.toml | 2 +- packages/transformers/js/core/Cargo.toml | 3 +- 3 files changed, 288 insertions(+), 240 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index bc873b34805..2bb0fa86150 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -29,9 +29,9 @@ checksum = "f26201604c87b1e01bd3d98f8d5d9a8fcbb815e8cedb41ffccbeb4bf593a35fe" [[package]] name = "ahash" -version = "0.8.11" +version = "0.8.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e89da841a80418a9b391ebaea17f5c112ffaaa96f621d2c285b5174da76b9011" +checksum = "8b79b82693f705137f8fb9b37871d99e4f9a7df12b917eed79c3d3954830a60b" dependencies = [ "cfg-if", "getrandom", @@ -151,6 +151,12 @@ version = "0.21.5" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "35636a1494ede3b646cc98f74f8e62c773a38a659ebc777a2cf26b9b74171df9" +[[package]] +name = "base64" +version = "0.22.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "9475866fec1451be56a3c2400fd081ff546538961565ccb5b7142cbd22bc7a51" + [[package]] name = "base64-simd" version = "0.7.0" @@ -204,14 +210,15 @@ dependencies = [ [[package]] name = "browserslist-rs" -version = "0.14.0" +version = "0.15.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f2557836820eed97f79071bb3294b2640e71e0bc4301336a210a1b8b4947c15" +checksum = "405bbd46590a441abe5db3e5c8af005aa42e640803fecb51912703e93e4ce8d3" dependencies = [ "ahash", "anyhow", "chrono", "either", + "indexmap 2.2.6", "itertools 0.12.0", "nom", "once_cell", @@ -655,15 +662,6 @@ dependencies = [ "stable_deref_trait", ] -[[package]] -name = "encoding_rs" -version = "0.8.33" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7268b386296a025e474d5140678f75d6de9493ae55a5d709eeb9dd08149945e1" -dependencies = [ - "cfg-if", -] - [[package]] name = "equivalent" version = "1.0.1" @@ -801,6 +799,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "eac8f7d7865dcb88bd4373ab671c8cf4508703796caa2b1985a9ca867b3fcb78" dependencies = [ "futures-core", + "futures-sink", ] [[package]] @@ -835,6 +834,7 @@ checksum = "3d6401deb83407ab3da39eba7e33987a73c3df0c82b4bb5813ee871c19c41d48" dependencies = [ "futures-core", "futures-io", + "futures-sink", "futures-task", "memchr", "pin-project-lite", @@ -905,25 +905,6 @@ dependencies = [ "walkdir", ] -[[package]] -name = "h2" -version = "0.3.25" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4fbd2820c5e49886948654ab546d0688ff24530286bdcf8fca3cefb16d4618eb" -dependencies = [ - "bytes", - "fnv", - "futures-core", - "futures-sink", - "futures-util", - "http", - "indexmap 2.2.6", - "slab", - "tokio", - "tokio-util", - "tracing", -] - [[package]] name = "hashbrown" version = "0.12.3" @@ -953,33 +934,34 @@ checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70" [[package]] name = "hostname" -version = "0.3.1" +version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3c731c3e10504cc8ed35cfe2f1db4c9274c3d35fa486e3b31df46f068ef3e867" +checksum = "f9c7c7c8ac16c798734b8a24560c1362120597c40d5e1459f09498f8f6c8f2ba" dependencies = [ + "cfg-if", "libc", - "match_cfg", - "winapi", + "windows", ] [[package]] name = "hstr" -version = "0.2.6" +version = "0.2.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de90d3db62411eb62eddabe402d706ac4970f7ac8d088c05f11069cad9be9857" +checksum = "96274be293b8877e61974a607105d09c84caebe9620b47774aa8a6b942042dd4" dependencies = [ + "hashbrown 0.14.3", "new_debug_unreachable", "once_cell", "phf", "rustc-hash", - "smallvec", + "triomphe", ] [[package]] name = "http" -version = "0.2.12" +version = "1.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "601cbb57e577e2f5ef5be8e7b83f0f63994f25aa94d673e54a92d5c516d101f1" +checksum = "21b9ddb458710bc376481b842f5da65cdf31522de232c1ca8146abce2a358258" dependencies = [ "bytes", "fnv", @@ -988,12 +970,24 @@ dependencies = [ [[package]] name = "http-body" -version = "0.4.6" +version = "1.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "1cac85db508abc24a2e48553ba12a996e87244a0395ce011e62b37158745d643" +dependencies = [ + "bytes", + "http", +] + +[[package]] +name = "http-body-util" +version = "0.1.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7ceab25649e9960c0311ea418d17bee82c0dcec1bd053b5f9a66e265a693bed2" +checksum = "0475f8b2ac86659c21b64320d5d653f9efe42acd2a4e560073ec61a155a34f1d" dependencies = [ "bytes", + "futures-core", "http", + "http-body", "pin-project-lite", ] @@ -1011,53 +1005,74 @@ checksum = "df3b46402a9d5adb4c86a0cf463f42e19994e3ee891101b1841f30a545cb49a9" [[package]] name = "hyper" -version = "0.14.28" +version = "1.3.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bf96e135eb83a2a8ddf766e426a841d8ddd7449d5f00d34ea02b41d2f19eef80" +checksum = "fe575dd17d0862a9a33781c8c4696a55c320909004a67a00fb286ba8b1bc496d" dependencies = [ "bytes", "futures-channel", - "futures-core", "futures-util", - "h2", "http", "http-body", "httparse", - "httpdate", "itoa", "pin-project-lite", - "socket2", + "smallvec", "tokio", - "tower-service", - "tracing", "want", ] [[package]] name = "hyper-rustls" -version = "0.24.2" +version = "0.26.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ec3efd23720e2049821a693cbc7e65ea87c72f1c58ff2f9522ff332b1491e590" +checksum = "a0bea761b46ae2b24eb4aef630d8d1c398157b6fc29e6350ecf090a0b70c952c" dependencies = [ "futures-util", "http", "hyper", - "rustls 0.21.11", + "hyper-util", + "rustls 0.22.4", + "rustls-pki-types", "tokio", "tokio-rustls", + "tower-service", ] [[package]] name = "hyper-tls" -version = "0.5.0" +version = "0.6.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6183ddfa99b85da61a140bea0efc93fdf56ceaa041b37d553518030827f9905" +checksum = "70206fc6890eaca9fde8a0bf71caa2ddfc9fe045ac9e5c70df101a7dbde866e0" dependencies = [ "bytes", + "http-body-util", "hyper", + "hyper-util", "native-tls", "tokio", "tokio-native-tls", + "tower-service", +] + +[[package]] +name = "hyper-util" +version = "0.1.3" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "ca38ef113da30126bbff9cd1705f9273e15d45498615d138b0c20279ac7a76aa" +dependencies = [ + "bytes", + "futures-channel", + "futures-util", + "http", + "http-body", + "hyper", + "pin-project-lite", + "socket2 0.5.6", + "tokio", + "tower", + "tower-service", + "tracing", ] [[package]] @@ -1071,7 +1086,7 @@ dependencies = [ "iana-time-zone-haiku", "js-sys", "wasm-bindgen", - "windows-core", + "windows-core 0.51.1", ] [[package]] @@ -1353,12 +1368,6 @@ version = "0.4.21" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "90ed8c1e510134f979dbc4f070f87d4313098b704861a105fe34231c70a3901c" -[[package]] -name = "match_cfg" -version = "0.1.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ffbee8634e0d45d258acb448e7eaab3fce7a0a467395d4d9f228e3c1f01fb2e4" - [[package]] name = "memchr" version = "2.6.3" @@ -2099,11 +2108,31 @@ dependencies = [ "siphasher", ] +[[package]] +name = "pin-project" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b6bf43b791c5b9e34c3d182969b4abb522f9343702850a2e57f460d00d09b4b3" +dependencies = [ + "pin-project-internal", +] + +[[package]] +name = "pin-project-internal" +version = "1.1.5" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "2f38a4412a78282e09a2cf38d195ea5420d15ba0602cb375210efbc877243965" +dependencies = [ + "proc-macro2", + "quote", + "syn", +] + [[package]] name = "pin-project-lite" -version = "0.2.14" +version = "0.2.9" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bda66fc9667c18cb2758a2ac84d1167245054bcf85d5d1aaa6923f45801bdd02" +checksum = "e0a7ae3ac2f1173085d398531c705756c94a4c56843785df85a60c1a0afac116" [[package]] name = "pin-utils" @@ -2188,9 +2217,9 @@ dependencies = [ [[package]] name = "preset_env_base" -version = "0.4.10" +version = "0.4.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d4e9bedef66806cb32828719aa5cad298e363ad50d190538db40b5631b89d456" +checksum = "08ccd15679953ae0d5fa716af78b58c0bfdc69a0534bfe9ea423abd1eaaf527b" dependencies = [ "ahash", "anyhow", @@ -2224,9 +2253,9 @@ dependencies = [ [[package]] name = "quote" -version = "1.0.35" +version = "1.0.36" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "291ec9ab5efd934aaf503a6466c5d5251535d108ee747472c3977cc5acc868ef" +checksum = "0fa76aaf39101c457836aec0ce2316dbdc3ab723cdda1c6bd4e6ad4208acaca7" dependencies = [ "proc-macro2", ] @@ -2326,21 +2355,22 @@ checksum = "456c603be3e8d448b072f410900c09faf164fbce2d480456f50eea6e25f9c848" [[package]] name = "reqwest" -version = "0.11.27" +version = "0.12.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "dd67538700a17451e7cba03ac727fb961abb7607553461627b97de0b89cf4a62" +checksum = "566cafdd92868e0939d3fb961bd0dc25fcfaaed179291093b3d43e6b3150ea10" dependencies = [ - "base64", + "base64 0.22.0", "bytes", - "encoding_rs", + "futures-channel", "futures-core", "futures-util", - "h2", "http", "http-body", + "http-body-util", "hyper", "hyper-rustls", "hyper-tls", + "hyper-util", "ipnet", "js-sys", "log", @@ -2349,13 +2379,13 @@ dependencies = [ "once_cell", "percent-encoding", "pin-project-lite", - "rustls 0.21.11", + "rustls 0.22.4", "rustls-pemfile", + "rustls-pki-types", "serde", "serde_json", "serde_urlencoded", "sync_wrapper", - "system-configuration", "tokio", "tokio-native-tls", "tokio-rustls", @@ -2364,7 +2394,7 @@ dependencies = [ "wasm-bindgen", "wasm-bindgen-futures", "web-sys", - "webpki-roots 0.25.4", + "webpki-roots 0.26.1", "winreg", ] @@ -2462,18 +2492,19 @@ dependencies = [ [[package]] name = "rustls-pemfile" -version = "1.0.4" +version = "2.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1c74cae0a4cf6ccbbf5f359f08efdf8ee7e1dc532573bf0db71968cb56b1448c" +checksum = "29993a25686778eb88d4189742cd713c9bce943bc54251a33509dc63cbacf73d" dependencies = [ - "base64", + "base64 0.22.0", + "rustls-pki-types", ] [[package]] name = "rustls-pki-types" -version = "1.4.1" +version = "1.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ecd36cc4259e3e4514335c4a138c6b43171a8d61d8f5c9348f9fc7529416f247" +checksum = "beb461507cee2c2ff151784c52762cf4d9ff6a61f3e80968600ed24fa837fa54" [[package]] name = "rustls-webpki" @@ -2609,9 +2640,9 @@ checksum = "388a1df253eca08550bef6c72392cfe7c30914bf41df5269b68cbd6ff8f570a3" [[package]] name = "sentry" -version = "0.32.2" +version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "766448f12e44d68e675d5789a261515c46ac6ccd240abdd451a9c46c84a49523" +checksum = "00421ed8fa0c995f07cde48ba6c89e80f2b312f74ff637326f392fbfd23abe02" dependencies = [ "httpdate", "native-tls", @@ -2631,9 +2662,9 @@ dependencies = [ [[package]] name = "sentry-anyhow" -version = "0.32.2" +version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4da4015667c99f88d68ca7ff02b90c762d6154a4ceb7c02922b9a1dbd3959eeb" +checksum = "ddcbce6e6785c2d91e67c55196f60ac561fab5946b6c7d60cc29f498fc126076" dependencies = [ "anyhow", "sentry-backtrace", @@ -2642,9 +2673,9 @@ dependencies = [ [[package]] name = "sentry-backtrace" -version = "0.32.2" +version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "32701cad8b3c78101e1cd33039303154791b0ff22e7802ed8cc23212ef478b45" +checksum = "a79194074f34b0cbe5dd33896e5928bbc6ab63a889bd9df2264af5acb186921e" dependencies = [ "backtrace", "once_cell", @@ -2654,9 +2685,9 @@ dependencies = [ [[package]] name = "sentry-contexts" -version = "0.32.2" +version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17ddd2a91a13805bd8dab4ebf47323426f758c35f7bf24eacc1aded9668f3824" +checksum = "eba8870c5dba2bfd9db25c75574a11429f6b95957b0a78ac02e2970dd7a5249a" dependencies = [ "hostname", "libc", @@ -2668,9 +2699,9 @@ dependencies = [ [[package]] name = "sentry-core" -version = "0.32.2" +version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b1189f68d7e7e102ef7171adf75f83a59607fafd1a5eecc9dc06c026ff3bdec4" +checksum = "46a75011ea1c0d5c46e9e57df03ce81f5c7f0a9e199086334a1f9c0a541e0826" dependencies = [ "once_cell", "rand", @@ -2681,9 +2712,9 @@ dependencies = [ [[package]] name = "sentry-debug-images" -version = "0.32.2" +version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7b4d0a615e5eeca5699030620c119a094e04c14cf6b486ea1030460a544111a7" +checksum = "7ec2a486336559414ab66548da610da5e9626863c3c4ffca07d88f7dc71c8de8" dependencies = [ "findshlibs", "once_cell", @@ -2692,9 +2723,9 @@ dependencies = [ [[package]] name = "sentry-panic" -version = "0.32.2" +version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1c18d0b5fba195a4950f2f4c31023725c76f00aabb5840b7950479ece21b5ca" +checksum = "2eaa3ecfa3c8750c78dcfd4637cfa2598b95b52897ed184b4dc77fcf7d95060d" dependencies = [ "sentry-backtrace", "sentry-core", @@ -2702,9 +2733,9 @@ dependencies = [ [[package]] name = "sentry-tracing" -version = "0.32.2" +version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3012699a9957d7f97047fd75d116e22d120668327db6e7c59824582e16e791b2" +checksum = "f715932bf369a61b7256687c6f0554141b7ce097287e30e3f7ed6e9de82498fe" dependencies = [ "sentry-backtrace", "sentry-core", @@ -2714,9 +2745,9 @@ dependencies = [ [[package]] name = "sentry-types" -version = "0.32.2" +version = "0.32.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c7173fd594569091f68a7c37a886e202f4d0c1db1e1fa1d18a051ba695b2e2ec" +checksum = "4519c900ce734f7a0eb7aba0869dfb225a7af8820634a7dd51449e3b093cfb7c" dependencies = [ "debugid", "hex", @@ -2750,9 +2781,9 @@ dependencies = [ [[package]] name = "serde_bytes" -version = "0.11.7" +version = "0.11.14" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "cfc50e8183eeeb6178dcb167ae34a8051d63535023ae38b5d8d12beae193d37b" +checksum = "8b8497c313fd43ab992087548117643f6fcd935cbf36f176ffda0aacf9591734" dependencies = [ "serde", ] @@ -2877,9 +2908,9 @@ dependencies = [ [[package]] name = "smallvec" -version = "1.11.1" +version = "1.13.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "942b4a808e05215192e39f4ab80813e599068285906cc91aa64f923db842bd5a" +checksum = "3c5e1a9a646d36c3599cd173a41282daf47c44583ad367b8e6837255952e5c67" [[package]] name = "smartstring" @@ -2894,28 +2925,22 @@ dependencies = [ [[package]] name = "socket2" -version = "0.5.6" +version = "0.4.10" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "05ffd9c0a93b7543e062e759284fcf5f5e3b098501104bfbdde4d404db792871" +checksum = "9f7916fc008ca5542385b89a3d3ce689953c143e9304a9bf8beec1de48994c0d" dependencies = [ "libc", - "windows-sys 0.52.0", + "winapi", ] [[package]] -name = "sourcemap" -version = "6.4.1" +name = "socket2" +version = "0.5.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e4cbf65ca7dc576cf50e21f8d0712d96d4fcfd797389744b7b222a85cdf5bd90" +checksum = "05ffd9c0a93b7543e062e759284fcf5f5e3b098501104bfbdde4d404db792871" dependencies = [ - "data-encoding", - "debugid", - "if_chain", - "rustc_version 0.2.3", - "serde", - "serde_json", - "unicode-id", - "url", + "libc", + "windows-sys 0.52.0", ] [[package]] @@ -3054,9 +3079,9 @@ checksum = "81cdd64d312baedb58e21336b31bc043b77e01cc99033ce76ef539f78e965ebc" [[package]] name = "swc_atoms" -version = "0.6.5" +version = "0.6.7" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7d538eaaa6f085161d088a04cf0a3a5a52c5a7f2b3bd9b83f73f058b0ed357c0" +checksum = "bb6567e4e67485b3e7662b486f1565bdae54bd5b9d6b16b2ba1a9babb1e42125" dependencies = [ "hstr", "once_cell", @@ -3066,9 +3091,9 @@ dependencies = [ [[package]] name = "swc_cached" -version = "0.3.19" +version = "0.3.20" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "630c761c74ac8021490b78578cc2223aa4a568241e26505c27bf0e4fd4ad8ec2" +checksum = "83406221c501860fce9c27444f44125eafe9e598b8b81be7563d7036784cd05c" dependencies = [ "ahash", "anyhow", @@ -3096,7 +3121,7 @@ dependencies = [ "rustc-hash", "serde", "siphasher", - "sourcemap 8.0.1", + "sourcemap", "swc_atoms", "swc_eq_ignore_macros", "swc_visit", @@ -3107,9 +3132,9 @@ dependencies = [ [[package]] name = "swc_config" -version = "0.1.10" +version = "0.1.13" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c29e3b76a63111ef318f161bc413dfc093f21da1afca9ba5cdd6442b7069d65b" +checksum = "7be1a689e146be1eae53139482cb061dcf0fa01dff296bbe7b96fff92d8e2936" dependencies = [ "anyhow", "indexmap 2.2.6", @@ -3121,9 +3146,9 @@ dependencies = [ [[package]] name = "swc_config_macro" -version = "0.1.3" +version = "0.1.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8b2574f75082322a27d990116cd2a24de52945fc94172b24ca0b3e9e2a6ceb6b" +checksum = "7c5f56139042c1a95b54f5ca48baa0e0172d369bcc9d3d473dad1de36bae8399" dependencies = [ "proc-macro2", "quote", @@ -3133,9 +3158,9 @@ dependencies = [ [[package]] name = "swc_core" -version = "0.89.6" +version = "0.91.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a0d3b3ef135a76e7476cfd0af40eacad54e3a743f446a79eba60507bb72a9d34" +checksum = "928db865b085ffb7fb4b41eefebb9a49223f2130e7acaf994131cebabff2eca9" dependencies = [ "swc_atoms", "swc_common", @@ -3149,15 +3174,16 @@ dependencies = [ "swc_ecma_transforms_proposal", "swc_ecma_transforms_react", "swc_ecma_transforms_typescript", + "swc_ecma_utils", "swc_ecma_visit", "vergen", ] [[package]] name = "swc_ecma_ast" -version = "0.111.1" +version = "0.113.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e12b4d0f3b31d293dac16fc13a50f8a282a3bdb658f2a000ffe09b1b638f45c9" +checksum = "cae9f905b3485ab348bf9009f71852f27c560d28a0d1f1ec69f0640b86eb1adc" dependencies = [ "bitflags 2.5.0", "is-macro", @@ -3167,21 +3193,21 @@ dependencies = [ "string_enum", "swc_atoms", "swc_common", - "unicode-id", + "unicode-id-start", ] [[package]] name = "swc_ecma_codegen" -version = "0.147.2" +version = "0.149.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d585ce1ac775bd454058c76db662807ff39fdac56696158482dc0e5d95b7ca0c" +checksum = "4fef147127a2926ca26171c7afcbf028ff86dc543ced87d316713f25620a15b9" dependencies = [ "memchr", "num-bigint", "once_cell", "rustc-hash", "serde", - "sourcemap 6.4.1", + "sourcemap", "swc_atoms", "swc_common", "swc_ecma_ast", @@ -3191,9 +3217,9 @@ dependencies = [ [[package]] name = "swc_ecma_codegen_macros" -version = "0.7.4" +version = "0.7.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "394b8239424b339a12012ceb18726ed0244fce6bf6345053cb9320b2791dcaa5" +checksum = "090e409af49c8d1a3c13b3aab1ed09dd4eda982207eb3e63c2ad342f072b49c8" dependencies = [ "proc-macro2", "quote", @@ -3203,9 +3229,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_bugfixes" -version = "0.3.4" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e6b916b9fa1410f907cb9c3120d9ddefe1e94f5365ff207cbbb260fad9037038" +checksum = "47dad0d8b1c4ca3264a8c5ac59a10127e4f1c3ec5ed271692c8897228f306d05" dependencies = [ "swc_atoms", "swc_common", @@ -3220,9 +3246,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_common" -version = "0.3.2" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5029cf18d05b77221984df0fce21c81e31d36d4ae360f2df94a7cf8817e7528e" +checksum = "d888bcaea9c3b8178ea4abf65adf64457a95a5dd3a3c109a69e02c3c38878e96" dependencies = [ "swc_common", "swc_ecma_ast", @@ -3233,9 +3259,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2015" -version = "0.3.4" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ae6cdbcd73b42e20ad33a9df635ef5fbcf5a24d775790e246ec327cb5ff60227" +checksum = "248532f9ae603be6bf4763f66f74ad0dfd82d6307be876ccf4c5d081826a1161" dependencies = [ "arrayvec", "indexmap 2.2.6", @@ -3259,9 +3285,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2016" -version = "0.3.4" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d6db2e972fc617f2bbfbdf55c4f3e11e20855957253f2096973b4e4061ae97fe" +checksum = "8d7222c8114ae47fb2e46a65f426b125edab523192e835aecbe3136541f96500" dependencies = [ "swc_atoms", "swc_common", @@ -3276,9 +3302,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2017" -version = "0.3.4" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "9b12acf9671a08d8c89c9abf28c140c00fefe1d4023ba33171e61511e39da763" +checksum = "8ccdc725616ef5a558fb905b991cf328a3a36a4d1b8423173708a02568077a14" dependencies = [ "serde", "swc_atoms", @@ -3294,9 +3320,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2018" -version = "0.3.4" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "8287e7473bc0aa3b73ccc211ec640a015f5cc6e4c5ebfff23ada5181861ebf2c" +checksum = "4a6c329c3980fb20c6c3f7f2afc94975bfe640d53dbb90b74a4707a514f16882" dependencies = [ "serde", "swc_atoms", @@ -3313,9 +3339,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2019" -version = "0.3.4" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0ac21edb2916c4d1334dee6223b8c0b858b0368bc40616e301b9dda9665ad5ea" +checksum = "f1934f5021e80f6b76e5e0bd06e331d719eb9541c13cb5c128a2b994931952a4" dependencies = [ "swc_atoms", "swc_common", @@ -3329,9 +3355,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2020" -version = "0.3.4" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "4f2c002579929769624e6003912d34815343a9c2db4171fc248fbb5c5c2cf179" +checksum = "0aeddeba198fef2e0ed2bc4a5a0b412a04063f062dc47f93e191b492fc07db4f" dependencies = [ "serde", "swc_atoms", @@ -3347,9 +3373,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2021" -version = "0.3.3" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "21957526c2191ddfe1af17360129d2c900f5a26614b0e479706926d82c2db827" +checksum = "288ad7b2cc410dc4fb08687915c1f588f6a714d737e0a4d4128657124902bcae" dependencies = [ "swc_atoms", "swc_common", @@ -3363,9 +3389,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es2022" -version = "0.3.3" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c882fee687bceff1f2fcc5acca2f8180aad303d31652650ba2c01da501ecc336" +checksum = "5fb9ab1987e7f9959e31f4a5f9c617ad640a01d8c3c6f02293ad2835adac7790" dependencies = [ "swc_atoms", "swc_common", @@ -3382,9 +3408,9 @@ dependencies = [ [[package]] name = "swc_ecma_compat_es3" -version = "0.3.4" +version = "0.5.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3a9767a20448d7c8ffa4668c0883842f2dc535faeb7e41ea4004896e29a74194" +checksum = "bc88d41bf1d86c163997a48b10ad47a40d2d0c8b9c6ee03ead151d0022975789" dependencies = [ "swc_common", "swc_ecma_ast", @@ -3397,9 +3423,9 @@ dependencies = [ [[package]] name = "swc_ecma_parser" -version = "0.142.1" +version = "0.144.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c3eedda441af51ca25caebb88837649a40e2a39b763344a53cfedd869740c71" +checksum = "0499e69683ae5d67a20ff0279b94bc90f29df7922a46331b54d5dd367bf89570" dependencies = [ "either", "new_debug_unreachable", @@ -3419,9 +3445,9 @@ dependencies = [ [[package]] name = "swc_ecma_preset_env" -version = "0.205.7" +version = "0.207.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "da9dd1ed14585df2e8e3f0bfbb8635dee2f1997d7defb7e8a28da3970bd51115" +checksum = "b5969314bf66a4cca45b0401689dd0c74e568c69243ce46f2342d59219e1283c" dependencies = [ "anyhow", "dashmap", @@ -3444,9 +3470,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms" -version = "0.228.7" +version = "0.230.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0076f239ab0c220c792a0cbafa3140ae2e0b58acf1886f7008d59d68de5b78ef" +checksum = "b37b4301415b83165109b94c99f9ac62b38fd1da625bfc830883d65d29a473f9" dependencies = [ "swc_atoms", "swc_common", @@ -3460,9 +3486,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_base" -version = "0.136.3" +version = "0.138.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a491da2eaab98914d1f85bd81a35db6432ad0577ae64746bb9e5594cb0b79b47" +checksum = "6511cbe8c60eced9a8e77b66aadbda26424f14a1662c68c17aeb73ac78ad83c2" dependencies = [ "better_scoped_tls", "bitflags 2.5.0", @@ -3483,9 +3509,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_classes" -version = "0.125.3" +version = "0.127.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1022bd4545eb9ae2cb9666a3c2cf84c1cfc0a38ec14fb61bbabf660baf60242f" +checksum = "53043d81678f3c693604eeb1d1f0fe6ba10f303104a31b954dbeebed9cadf530" dependencies = [ "swc_atoms", "swc_common", @@ -3497,9 +3523,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_compat" -version = "0.162.4" +version = "0.164.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "de609d44d2e0dfec1968cdf3fed6faaa9e6e1b15191a25b7d70109e32a0db1c0" +checksum = "7d4e2942c5d8b7afdf81b8d1eec2f4a961aa9fc89ab05ebe5cbd0f6066b60afc" dependencies = [ "arrayvec", "indexmap 2.2.6", @@ -3533,9 +3559,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_macros" -version = "0.5.4" +version = "0.5.5" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "17e309b88f337da54ef7fe4c5b99c2c522927071f797ee6c9fb8b6bf2d100481" +checksum = "500a1dadad1e0e41e417d633b3d6d5de677c9e0d3159b94ba3348436cdb15aab" dependencies = [ "proc-macro2", "quote", @@ -3545,9 +3571,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_optimization" -version = "0.197.7" +version = "0.199.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "445efca981669a08cc8bab2bd9d0420eb688e7086d6a4babc6b670473877a2c2" +checksum = "32ea30b3df748236c619409f222f0ba68ebeebc08dfff109d2195664a15689f9" dependencies = [ "dashmap", "indexmap 2.2.6", @@ -3569,9 +3595,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_proposal" -version = "0.170.7" +version = "0.172.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2e2ffc3af6d736769ab1fff18b3f26c67c66bf0d78c1f15cbcd8575d698b16e6" +checksum = "7fbc414d6a9c5479cfb4c6e92fcdac504582bd7bc89a0ed7f8808b72dc8bd1f0" dependencies = [ "either", "rustc-hash", @@ -3589,11 +3615,11 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_react" -version = "0.182.6" +version = "0.184.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "46493a5f10abf9da23e609a7cbe961f99223d2b640d80caa39ce7ede6d75eb3a" +checksum = "565a76c4ca47ce31d78301c0beab878e4c2cb4f624691254d834ec8c0e236755" dependencies = [ - "base64", + "base64 0.21.5", "dashmap", "indexmap 2.2.6", "once_cell", @@ -3613,9 +3639,9 @@ dependencies = [ [[package]] name = "swc_ecma_transforms_typescript" -version = "0.187.7" +version = "0.189.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "aa929a7518e22fba9859e0cd26563cde6bda8fe5a055fffaa26f3696e934ad34" +checksum = "e209026c1d3c577cafac257d87e7c0d23119282fbdc8ed03d7f56077e95beb90" dependencies = [ "ryu-js", "serde", @@ -3630,14 +3656,15 @@ dependencies = [ [[package]] name = "swc_ecma_utils" -version = "0.126.2" +version = "0.128.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2f6edc4064cd932c6d267c05f0b161e6aaa4df4f900d5e1db8c92eda8edcc410" +checksum = "fe5242670bc74e0a0b64b9d4912b37be36944517ce0881314162aeb4381272c3" dependencies = [ "indexmap 2.2.6", "num_cpus", "once_cell", "rustc-hash", + "stacker", "swc_atoms", "swc_common", "swc_ecma_ast", @@ -3648,9 +3675,9 @@ dependencies = [ [[package]] name = "swc_ecma_visit" -version = "0.97.1" +version = "0.99.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "26ecefeec816318f1d449b4bac2e28a4243a167cc16620e15c3c1f2d91085770" +checksum = "28a6ce28ad8e591f8d627f1f9cb26b25e5d83052a9bc1b674d95fc28040cfa98" dependencies = [ "num-bigint", "swc_atoms", @@ -3673,9 +3700,9 @@ dependencies = [ [[package]] name = "swc_fast_graph" -version = "0.21.15" +version = "0.21.22" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c9c9e567014e157af520f74b1a5bc151fece681136754b80b3fec6b908e26a0" +checksum = "f3fdd64bc3d161d6c1ea9a8ae5779e4ba132afc67e7b8ece5420bfc9c6e1275d" dependencies = [ "indexmap 2.2.6", "petgraph", @@ -3730,9 +3757,9 @@ dependencies = [ [[package]] name = "syn" -version = "2.0.53" +version = "2.0.58" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7383cd0e49fff4b6b90ca5670bfd3e9d6a733b3f90c686605aa7eec8c4996032" +checksum = "44cfb93f38070beee36b3fef7d4f5a16f27751d94b187b666a5cc5e9b0d30687" dependencies = [ "proc-macro2", "quote", @@ -3745,27 +3772,6 @@ version = "0.1.2" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "2047c6ded9c721764247e62cd3b03c09ffc529b2ba5b10ec482ae507a4a70160" -[[package]] -name = "system-configuration" -version = "0.5.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "ba3a3adc5c275d719af8cb4272ea1c4a6d668a777f37e115f6d11ddbc1c8e0e7" -dependencies = [ - "bitflags 1.3.2", - "core-foundation", - "system-configuration-sys", -] - -[[package]] -name = "system-configuration-sys" -version = "0.5.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a75fb188eb626b924683e3b95e3a48e63551fcfb51949de2f06a9d91dbee93c9" -dependencies = [ - "core-foundation-sys", - "libc", -] - [[package]] name = "tap" version = "1.0.1" @@ -3808,18 +3814,18 @@ checksum = "222a222a5bfe1bba4a77b45ec488a741b3cb8872e5e499451fd7d0129c9c7c3d" [[package]] name = "thiserror" -version = "1.0.59" +version = "1.0.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f0126ad08bff79f29fc3ae6a55cc72352056dfff61e3ff8bb7129476d44b23aa" +checksum = "579e9083ca58dd9dcf91a9923bb9054071b9ebbd800b342194c9feb0ee89fc18" dependencies = [ "thiserror-impl", ] [[package]] name = "thiserror-impl" -version = "1.0.59" +version = "1.0.60" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "d1cd413b5d558b4c5bf3680e324a6fa5014e7b7c067a51e69dbdf47eb7148b66" +checksum = "e2470041c06ec3ac1ab38d0356a6119054dedaea53e12fbefc0de730a1c08524" dependencies = [ "proc-macro2", "quote", @@ -3883,16 +3889,18 @@ checksum = "cda74da7e1a664f795bb1f8a87ec406fb89a02522cf6e50620d016add6dbbf5c" [[package]] name = "tokio" -version = "1.37.0" +version = "1.29.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "1adbebffeca75fcfd058afa480fb6c0b81e165a0323f9c9d39c9697e37c46787" +checksum = "532826ff75199d5833b9d2c5fe410f29235e25704ee5f0ef599fb51c21f4a4da" dependencies = [ + "autocfg", "backtrace", "bytes", "libc", "mio", + "num_cpus", "pin-project-lite", - "socket2", + "socket2 0.4.10", "windows-sys 0.48.0", ] @@ -3908,26 +3916,13 @@ dependencies = [ [[package]] name = "tokio-rustls" -version = "0.24.1" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "c28327cf380ac148141087fbfb9de9d7bd4e84ab5d2c28fbc911d753de8a7081" -dependencies = [ - "rustls 0.21.11", - "tokio", -] - -[[package]] -name = "tokio-util" -version = "0.7.8" +version = "0.25.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "806fe8c2c87eccc8b3267cbae29ed3ab2d0bd37fca70ab622e46aaa9375ddb7d" +checksum = "775e0c0f0adb3a2f22a00c4745d728b479985fc15ee7ca6a2608388c5569860f" dependencies = [ - "bytes", - "futures-core", - "futures-sink", - "pin-project-lite", + "rustls 0.22.4", + "rustls-pki-types", "tokio", - "tracing", ] [[package]] @@ -3964,6 +3959,28 @@ dependencies = [ "winnow", ] +[[package]] +name = "tower" +version = "0.4.13" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b8fa9be0de6cf49e536ce1851f987bd21a43b771b09473c3549a6c853db37c1c" +dependencies = [ + "futures-core", + "futures-util", + "pin-project", + "pin-project-lite", + "tokio", + "tower-layer", + "tower-service", + "tracing", +] + +[[package]] +name = "tower-layer" +version = "0.3.2" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "c20c8dbed6283a09604c3e69b4b7eeb54e298b8a600d4d5ecb5ad39de609f1d0" + [[package]] name = "tower-service" version = "0.3.2" @@ -3976,6 +3993,7 @@ version = "0.1.40" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "c3523ab5a71916ccf420eebdf5521fcef02141234bbc0b8a49f2fdc4544364ef" dependencies = [ + "log", "pin-project-lite", "tracing-attributes", "tracing-core", @@ -4011,6 +4029,16 @@ dependencies = [ "tracing-core", ] +[[package]] +name = "triomphe" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "859eb650cfee7434994602c3a68b25d77ad9e68c8a6cd491616ef86661382eb3" +dependencies = [ + "serde", + "stable_deref_trait", +] + [[package]] name = "try-lock" version = "0.2.5" @@ -4101,7 +4129,7 @@ version = "2.9.6" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "11f214ce18d8b2cbe84ed3aa6486ed3f5b285cf8d8fbdbce9f3f767a724adc35" dependencies = [ - "base64", + "base64 0.21.5", "log", "native-tls", "once_cell", @@ -4335,6 +4363,16 @@ version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +[[package]] +name = "windows" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "e48a53791691ab099e5e2ad123536d0fff50652600abaf43bbf952894110d0be" +dependencies = [ + "windows-core 0.52.0", + "windows-targets 0.52.4", +] + [[package]] name = "windows-core" version = "0.51.1" @@ -4344,6 +4382,15 @@ dependencies = [ "windows-targets 0.48.5", ] +[[package]] +name = "windows-core" +version = "0.52.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "33ab640c8d7e35bf8ba19b884ba838ceb4fba93a4e8c65a9059d08afcfc683d9" +dependencies = [ + "windows-targets 0.52.4", +] + [[package]] name = "windows-sys" version = "0.48.0" @@ -4487,9 +4534,9 @@ dependencies = [ [[package]] name = "winreg" -version = "0.50.0" +version = "0.52.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "524e57b2c537c0f9b1e69f1965311ec12182b4122e45035b1508cd24d2adadb1" +checksum = "a277a57398d4bfa075df44f501a17cfdf8542d224f0d36095a2adc7aee4ef0a5" dependencies = [ "cfg-if", "windows-sys 0.48.0", diff --git a/crates/macros/Cargo.toml b/crates/macros/Cargo.toml index bf7818c194f..3519436e196 100644 --- a/crates/macros/Cargo.toml +++ b/crates/macros/Cargo.toml @@ -9,7 +9,7 @@ napi = ["dep:napi", "dep:napi-derive", "dep:crossbeam-channel"] [dependencies] indexmap = "1.9.2" -swc_core = { version = "0.89.6", features = [ +swc_core = { version = "0.91.4", features = [ "common", "common_ahash", "common_sourcemap", diff --git a/packages/transformers/js/core/Cargo.toml b/packages/transformers/js/core/Cargo.toml index 1fd992b563a..a14b0139454 100644 --- a/packages/transformers/js/core/Cargo.toml +++ b/packages/transformers/js/core/Cargo.toml @@ -8,7 +8,7 @@ edition = "2021" crate-type = ["rlib"] [dependencies] -swc_core = { version = "0.89.6", features = [ +swc_core = { version = "0.91.4", features = [ "common", "common_ahash", "common_sourcemap", @@ -23,6 +23,7 @@ swc_core = { version = "0.89.6", features = [ "ecma_transforms_react", "ecma_transforms_typescript", "ecma_visit", + "stacker" ] } indoc = "1.0.3" serde = "1.0.123" From 7bf0e1a057c4d1a98e6eba1d391e15ba8eb529e7 Mon Sep 17 00:00:00 2001 From: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com> Date: Sat, 16 Mar 2024 11:17:18 +0100 Subject: [PATCH 02/13] Adapt for breaking swc AST change --- packages/transformers/js/core/src/collect.rs | 102 +++++++-------- .../transformers/js/core/src/env_replacer.rs | 118 +++++++++--------- packages/transformers/js/core/src/hoist.rs | 18 +-- packages/transformers/js/core/src/modules.rs | 6 +- 4 files changed, 109 insertions(+), 135 deletions(-) diff --git a/packages/transformers/js/core/src/collect.rs b/packages/transformers/js/core/src/collect.rs index 49d45e69093..f8bc987776e 100644 --- a/packages/transformers/js/core/src/collect.rs +++ b/packages/transformers/js/core/src/collect.rs @@ -10,6 +10,7 @@ use swc_core::common::DUMMY_SP; use swc_core::ecma::ast::*; use swc_core::ecma::atoms::js_word; use swc_core::ecma::atoms::JsWord; +use swc_core::ecma::visit::noop_visit_type; use swc_core::ecma::visit::Visit; use swc_core::ecma::visit::VisitWith; @@ -837,29 +838,27 @@ impl Visit for Collect { self.in_assign = false; node.right.visit_with(self); - if let PatOrExpr::Pat(pat) = &node.left { - if has_binding_identifier(pat, &"exports".into(), self.unresolved_mark) { - // Must wrap for cases like - // ``` - // function logExports() { - // console.log(exports); - // } - // exports.test = 2; - // logExports(); - // exports = {test: 4}; - // logExports(); - // ``` - self.static_cjs_exports = false; - self.has_cjs_exports = true; - self.should_wrap = true; - self.add_bailout(node.span, BailoutReason::ExportsReassignment); - } else if has_binding_identifier(pat, &"module".into(), self.unresolved_mark) { - // Same for `module`. If it is reassigned we can't correctly statically analyze. - self.static_cjs_exports = false; - self.has_cjs_exports = true; - self.should_wrap = true; - self.add_bailout(node.span, BailoutReason::ModuleReassignment); - } + if has_binding_identifier(&node.left, &"exports".into(), self.unresolved_mark) { + // Must wrap for cases like + // ``` + // function logExports() { + // console.log(exports); + // } + // exports.test = 2; + // logExports(); + // exports = {test: 4}; + // logExports(); + // ``` + self.static_cjs_exports = false; + self.has_cjs_exports = true; + self.should_wrap = true; + self.add_bailout(node.span, BailoutReason::ExportsReassignment); + } else if has_binding_identifier(&node.left, &"module".into(), self.unresolved_mark) { + // Same for `module`. If it is reassigned we can't correctly statically analyze. + self.static_cjs_exports = false; + self.has_cjs_exports = true; + self.should_wrap = true; + self.add_bailout(node.span, BailoutReason::ModuleReassignment); } } @@ -1111,7 +1110,7 @@ impl Collect { } ObjectPatProp::Assign(assign) => { if self.non_const_bindings.contains_key(&id!(assign.key)) { - idents.push(assign.key.clone()); + idents.push(assign.key.id.clone()); } } ObjectPatProp::Rest(rest) => { @@ -1139,43 +1138,28 @@ impl Collect { } } -fn has_binding_identifier(node: &Pat, sym: &JsWord, unresolved_mark: Mark) -> bool { - match node { - Pat::Ident(ident) => { - if ident.id.sym == *sym && is_unresolved(&ident, unresolved_mark) { - return true; - } - } - Pat::Object(object) => { - for prop in &object.props { - match prop { - ObjectPatProp::KeyValue(kv) => { - if has_binding_identifier(&kv.value, sym, unresolved_mark) { - return true; - } - } - ObjectPatProp::Assign(assign) => { - if assign.key.sym == *sym && is_unresolved(&assign.key, unresolved_mark) { - return true; - } - } - ObjectPatProp::Rest(rest) => { - if has_binding_identifier(&rest.arg, sym, unresolved_mark) { - return true; - } - } - } - } - } - Pat::Array(array) => { - for el in array.elems.iter().flatten() { - if has_binding_identifier(el, sym, unresolved_mark) { - return true; - } +fn has_binding_identifier(node: &AssignTarget, sym: &JsWord, unresolved_mark: Mark) -> bool { + pub struct BindingIdentFinder<'a> { + sym: &'a JsWord, + unresolved_mark: Mark, + found: bool, + } + + impl Visit for BindingIdentFinder<'_> { + noop_visit_type!(); + + fn visit_binding_ident(&mut self, ident: &BindingIdent) { + if ident.id.sym == *self.sym && is_unresolved(&ident, self.unresolved_mark) { + self.found = true; } } - _ => {} } - false + let mut visitor = BindingIdentFinder { + sym, + unresolved_mark, + found: false, + }; + node.visit_with(&mut visitor); + visitor.found } diff --git a/packages/transformers/js/core/src/env_replacer.rs b/packages/transformers/js/core/src/env_replacer.rs index 6d50b302699..8a20a03845a 100644 --- a/packages/transformers/js/core/src/env_replacer.rs +++ b/packages/transformers/js/core/src/env_replacer.rs @@ -27,20 +27,16 @@ impl<'a> Fold for EnvReplacer<'a> { // Replace assignments to process.browser with `true` // TODO: this seems questionable but we did it in the JS version?? if let Expr::Assign(ref assign) = node { - if let PatOrExpr::Pat(ref pat) = assign.left { - if let Pat::Expr(ref expr) = &**pat { - if let Expr::Member(ref member) = &**expr { - if self.is_browser - && match_member_expr(member, vec!["process", "browser"], self.unresolved_mark) - { - let mut res = assign.clone(); - res.right = Box::new(Expr::Lit(Lit::Bool(Bool { - value: true, - span: DUMMY_SP, - }))); - return Expr::Assign(res); - } - } + if let AssignTarget::Simple(SimpleAssignTarget::Member(member)) = &assign.left { + if self.is_browser + && match_member_expr(member, vec!["process", "browser"], self.unresolved_mark) + { + let mut res = assign.clone(); + res.right = Box::new(Expr::Lit(Lit::Bool(Bool { + value: true, + span: DUMMY_SP, + }))); + return Expr::Assign(res); } } } @@ -90,56 +86,58 @@ impl<'a> Fold for EnvReplacer<'a> { return node.fold_children_with(self); } - let expr = match &assign.left { - PatOrExpr::Pat(pat) => { - if let Pat::Expr(expr) = &**pat { - Some(&**expr) - } else if let Expr::Member(member) = &*assign.right { - if assign.op == AssignOp::Assign - && match_member_expr(member, vec!["process", "env"], self.unresolved_mark) - { - let mut decls = vec![]; - self.collect_pat_bindings(pat, &mut decls); + // process.env.FOO = ...; + if let AssignTarget::Simple(SimpleAssignTarget::Member(member)) = &assign.left { + if let Expr::Member(obj) = &*member.obj { + if match_member_expr(obj, vec!["process", "env"], self.unresolved_mark) { + self.emit_mutating_error(assign.span); + return *assign.right.clone().fold_with(self); + } + } + } - let mut exprs: Vec> = decls - .iter() - .map(|decl| { - Box::new(Expr::Assign(AssignExpr { - span: DUMMY_SP, - op: AssignOp::Assign, - left: PatOrExpr::Pat(Box::new(decl.name.clone())), - right: Box::new(if let Some(init) = &decl.init { - *init.clone() - } else { - Expr::Ident(get_undefined_ident(self.unresolved_mark)) - }), - })) - }) - .collect(); + if let Expr::Member(member) = &*assign.right { + if assign.op == AssignOp::Assign + && match_member_expr(member, vec!["process", "env"], self.unresolved_mark) + { + let pat = match &assign.left { + // ({x, y, z, ...} = process.env); + AssignTarget::Simple(SimpleAssignTarget::Ident(ident)) => { + Some(Pat::Ident(ident.clone())) + } + // foo = process.env; + AssignTarget::Pat(AssignTargetPat::Object(obj)) => Some(obj.clone().into()), + _ => None, + }; + if let Some(pat) = pat { + let mut decls = vec![]; + self.collect_pat_bindings(&pat, &mut decls); - exprs.push(Box::new(Expr::Object(ObjectLit { - span: DUMMY_SP, - props: vec![], - }))); + let mut exprs: Vec> = decls + .iter() + .map(|decl| { + Box::new(Expr::Assign(AssignExpr { + span: DUMMY_SP, + op: AssignOp::Assign, + left: decl.name.clone().try_into().unwrap(), + right: Box::new(if let Some(init) = &decl.init { + *init.clone() + } else { + Expr::Ident(get_undefined_ident(self.unresolved_mark)) + }), + })) + }) + .collect(); - return Expr::Seq(SeqExpr { - span: assign.span, - exprs, - }); - } - None - } else { - None - } - } - PatOrExpr::Expr(expr) => Some(&**expr), - }; + exprs.push(Box::new(Expr::Object(ObjectLit { + span: DUMMY_SP, + props: vec![], + }))); - if let Some(Expr::Member(MemberExpr { obj, .. })) = &expr { - if let Expr::Member(member) = &**obj { - if match_member_expr(member, vec!["process", "env"], self.unresolved_mark) { - self.emit_mutating_error(assign.span); - return *assign.right.clone().fold_with(self); + return Expr::Seq(SeqExpr { + span: assign.span, + exprs, + }); } } } diff --git a/packages/transformers/js/core/src/hoist.rs b/packages/transformers/js/core/src/hoist.rs index b05d923a5a4..62080e56d50 100644 --- a/packages/transformers/js/core/src/hoist.rs +++ b/packages/transformers/js/core/src/hoist.rs @@ -889,21 +889,13 @@ impl<'a> Fold for Hoist<'a> { return node.fold_children_with(self); } - let expr = match &node.left { - PatOrExpr::Expr(expr) => expr, - PatOrExpr::Pat(pat) => match &**pat { - Pat::Expr(expr) => expr, - _ => return node.fold_children_with(self), - }, - }; - - if let Expr::Member(member) = &**expr { + if let AssignTarget::Simple(SimpleAssignTarget::Member(member)) = &node.left { if match_member_expr(member, vec!["module", "exports"], self.unresolved_mark) { let ident = BindingIdent::from(self.get_export_ident(member.span, &"*".into())); return AssignExpr { span: node.span, op: node.op, - left: PatOrExpr::Pat(Box::new(Pat::Ident(ident))), + left: AssignTarget::Simple(SimpleAssignTarget::Ident(ident.into())), right: node.right.fold_with(self), }; } @@ -955,13 +947,13 @@ impl<'a> Fold for Hoist<'a> { span: node.span, op: node.op, left: if self.collect.static_cjs_exports { - PatOrExpr::Pat(Box::new(Pat::Ident(ident))) + AssignTarget::Simple(SimpleAssignTarget::Ident(ident.into())) } else { - PatOrExpr::Pat(Box::new(Pat::Expr(Box::new(Expr::Member(MemberExpr { + AssignTarget::Simple(SimpleAssignTarget::Member(MemberExpr { span: member.span, obj: Box::new(Expr::Ident(ident.id)), prop: member.prop.clone().fold_with(self), - }))))) + })) }, right: node.right.fold_with(self), }; diff --git a/packages/transformers/js/core/src/modules.rs b/packages/transformers/js/core/src/modules.rs index 801382cff80..574d71a0ae0 100644 --- a/packages/transformers/js/core/src/modules.rs +++ b/packages/transformers/js/core/src/modules.rs @@ -221,11 +221,11 @@ impl ESMFold { ModuleItem::Stmt(Stmt::Expr(ExprStmt { expr: Box::new(Expr::Assign(AssignExpr { op: AssignOp::Assign, - left: PatOrExpr::Expr(Box::new(Expr::Member(MemberExpr { + left: AssignTarget::Simple(SimpleAssignTarget::Member(MemberExpr { obj: Box::new(Expr::Ident(Ident::new("exports".into(), DUMMY_SP))), prop: MemberProp::Ident(Ident::new(name, DUMMY_SP)), span: DUMMY_SP, - }))), + })), right: Box::new(right), span: DUMMY_SP, })), @@ -594,7 +594,7 @@ impl Fold for ESMFold { if self.in_export_decl { self.create_export( node.key.sym.clone(), - Expr::Ident(node.key.clone()), + Expr::Ident(node.key.id.clone()), DUMMY_SP, ); } From dd832752c4064bb866938e76437f37f45fcaf878 Mon Sep 17 00:00:00 2001 From: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com> Date: Sun, 14 Apr 2024 11:06:44 +0200 Subject: [PATCH 03/13] Support testing with Miri --- crates/node-bindings/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/node-bindings/src/lib.rs b/crates/node-bindings/src/lib.rs index cf3769faf65..1e45e156b1e 100644 --- a/crates/node-bindings/src/lib.rs +++ b/crates/node-bindings/src/lib.rs @@ -7,11 +7,11 @@ use std::alloc::Layout; mod init_sentry; -#[cfg(target_os = "macos")] +#[cfg(all(target_os = "macos", not(miri)))] #[global_allocator] static GLOBAL: jemallocator::Jemalloc = jemallocator::Jemalloc; -#[cfg(windows)] +#[cfg(all(windows, not(miri)))] #[global_allocator] static ALLOC: mimalloc::MiMalloc = mimalloc::MiMalloc; From 90679431d573b39b6e769b624b590636ce2d61d9 Mon Sep 17 00:00:00 2001 From: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com> Date: Tue, 16 Apr 2024 14:46:38 +0200 Subject: [PATCH 04/13] Grow stack when visiting expressions --- crates/macros/Cargo.toml | 1 + crates/macros/src/lib.rs | 3 ++- packages/transformers/js/core/Cargo.toml | 1 + packages/transformers/js/core/src/collect.rs | 3 ++- packages/transformers/js/core/src/dependency_collector.rs | 3 ++- packages/transformers/js/core/src/env_replacer.rs | 6 +++--- packages/transformers/js/core/src/fs.rs | 5 +++-- packages/transformers/js/core/src/global_replacer.rs | 3 ++- packages/transformers/js/core/src/hoist.rs | 3 ++- packages/transformers/js/core/src/modules.rs | 3 ++- packages/transformers/js/core/src/node_replacer.rs | 3 ++- packages/transformers/js/core/src/typeof_replacer.rs | 4 +++- 12 files changed, 25 insertions(+), 13 deletions(-) diff --git a/crates/macros/Cargo.toml b/crates/macros/Cargo.toml index 3519436e196..a73940baef1 100644 --- a/crates/macros/Cargo.toml +++ b/crates/macros/Cargo.toml @@ -16,6 +16,7 @@ swc_core = { version = "0.91.4", features = [ "ecma_ast", "ecma_parser", "ecma_visit", + "stacker" ] } serde = "1.0.123" napi-derive = { version = "2.12.5", optional = true } diff --git a/crates/macros/src/lib.rs b/crates/macros/src/lib.rs index c3362b9ed3e..4f058c03946 100644 --- a/crates/macros/src/lib.rs +++ b/crates/macros/src/lib.rs @@ -1,6 +1,7 @@ use std::collections::HashMap; use std::collections::HashSet; use std::sync::Arc; +use swc_core::ecma::utils::stack_size::maybe_grow_default; use indexmap::IndexMap; use swc_core::common::util::take::Take; @@ -254,7 +255,7 @@ impl<'a> Fold for Macros<'a> { return Expr::Call(call); } - node.fold_children_with(self) + maybe_grow_default(|| node.fold_children_with(self)) } fn fold_var_decl(&mut self, mut node: VarDecl) -> VarDecl { diff --git a/packages/transformers/js/core/Cargo.toml b/packages/transformers/js/core/Cargo.toml index a14b0139454..52464b1bfc0 100644 --- a/packages/transformers/js/core/Cargo.toml +++ b/packages/transformers/js/core/Cargo.toml @@ -22,6 +22,7 @@ swc_core = { version = "0.91.4", features = [ "ecma_transforms_proposal", "ecma_transforms_react", "ecma_transforms_typescript", + "ecma_utils", "ecma_visit", "stacker" ] } diff --git a/packages/transformers/js/core/src/collect.rs b/packages/transformers/js/core/src/collect.rs index f8bc987776e..778bf98c735 100644 --- a/packages/transformers/js/core/src/collect.rs +++ b/packages/transformers/js/core/src/collect.rs @@ -10,6 +10,7 @@ use swc_core::common::DUMMY_SP; use swc_core::ecma::ast::*; use swc_core::ecma::atoms::js_word; use swc_core::ecma::atoms::JsWord; +use swc_core::ecma::utils::stack_size::maybe_grow_default; use swc_core::ecma::visit::noop_visit_type; use swc_core::ecma::visit::Visit; use swc_core::ecma::visit::VisitWith; @@ -789,7 +790,7 @@ impl Visit for Collect { } } _ => { - node.visit_children_with(self); + maybe_grow_default(|| node.visit_children_with(self)); } } } diff --git a/packages/transformers/js/core/src/dependency_collector.rs b/packages/transformers/js/core/src/dependency_collector.rs index 4be80bea033..1230be5b3e3 100644 --- a/packages/transformers/js/core/src/dependency_collector.rs +++ b/packages/transformers/js/core/src/dependency_collector.rs @@ -4,6 +4,7 @@ use std::fmt; use std::hash::Hash; use std::hash::Hasher; use std::path::Path; +use swc_core::ecma::utils::stack_size::maybe_grow_default; use path_slash::PathBufExt; use serde::Deserialize; @@ -886,7 +887,7 @@ impl<'a> Fold for DependencyCollector<'a> { return ast::Expr::Ident(get_undefined_ident(self.unresolved_mark)); } - node.fold_children_with(self) + maybe_grow_default(|| node.fold_children_with(self)) } } diff --git a/packages/transformers/js/core/src/env_replacer.rs b/packages/transformers/js/core/src/env_replacer.rs index 8a20a03845a..920b96c3ada 100644 --- a/packages/transformers/js/core/src/env_replacer.rs +++ b/packages/transformers/js/core/src/env_replacer.rs @@ -7,8 +7,8 @@ use swc_core::common::Mark; use swc_core::common::DUMMY_SP; use swc_core::ecma::ast; use swc_core::ecma::atoms::JsWord; -use swc_core::ecma::visit::Fold; -use swc_core::ecma::visit::FoldWith; +use swc_core::ecma::utils::stack_size::maybe_grow_default; +use swc_core::ecma::visit::{Fold, FoldWith}; use crate::utils::*; @@ -166,7 +166,7 @@ impl<'a> Fold for EnvReplacer<'a> { } } - node.fold_children_with(self) + maybe_grow_default(|| node.fold_children_with(self)) } fn fold_var_decl(&mut self, node: VarDecl) -> VarDecl { diff --git a/packages/transformers/js/core/src/fs.rs b/packages/transformers/js/core/src/fs.rs index a7154f511ab..43b7781b058 100644 --- a/packages/transformers/js/core/src/fs.rs +++ b/packages/transformers/js/core/src/fs.rs @@ -8,6 +8,7 @@ use swc_core::common::Span; use swc_core::common::DUMMY_SP; use swc_core::ecma::ast::*; use swc_core::ecma::atoms::JsWord; +use swc_core::ecma::utils::stack_size::maybe_grow_default; use swc_core::ecma::visit::Fold; use swc_core::ecma::visit::FoldWith; use swc_core::ecma::visit::VisitWith; @@ -71,7 +72,7 @@ impl<'a> Fold for InlineFS<'a> { } } - node.fold_children_with(self) + maybe_grow_default(|| node.fold_children_with(self)) } } @@ -228,7 +229,7 @@ struct Evaluator<'a> { impl<'a> Fold for Evaluator<'a> { fn fold_expr(&mut self, node: Expr) -> Expr { - let node = node.fold_children_with(self); + let node = maybe_grow_default(|| node.fold_children_with(self)); match &node { Expr::Ident(ident) => match ident.sym.to_string().as_str() { diff --git a/packages/transformers/js/core/src/global_replacer.rs b/packages/transformers/js/core/src/global_replacer.rs index 2d3527e25ae..f784584c832 100644 --- a/packages/transformers/js/core/src/global_replacer.rs +++ b/packages/transformers/js/core/src/global_replacer.rs @@ -1,4 +1,5 @@ use std::path::Path; +use swc_core::ecma::utils::stack_size::maybe_grow_default; use indexmap::IndexMap; use path_slash::PathBufExt; @@ -55,7 +56,7 @@ impl<'a> Fold for GlobalReplacer<'a> { }) } } - _ => node.fold_children_with(self), + _ => maybe_grow_default(|| node.fold_children_with(self)), }; if let Ident(id) = &mut node { diff --git a/packages/transformers/js/core/src/hoist.rs b/packages/transformers/js/core/src/hoist.rs index 62080e56d50..070cdc01cc3 100644 --- a/packages/transformers/js/core/src/hoist.rs +++ b/packages/transformers/js/core/src/hoist.rs @@ -13,6 +13,7 @@ use swc_core::common::DUMMY_SP; use swc_core::ecma::ast::*; use swc_core::ecma::atoms::js_word; use swc_core::ecma::atoms::JsWord; +use swc_core::ecma::utils::stack_size::maybe_grow_default; use swc_core::ecma::visit::Fold; use swc_core::ecma::visit::FoldWith; @@ -755,7 +756,7 @@ impl<'a> Fold for Hoist<'a> { _ => {} } - node.fold_children_with(self) + maybe_grow_default(|| node.fold_children_with(self)) } fn fold_seq_expr(&mut self, node: SeqExpr) -> SeqExpr { diff --git a/packages/transformers/js/core/src/modules.rs b/packages/transformers/js/core/src/modules.rs index 574d71a0ae0..65235f3c3de 100644 --- a/packages/transformers/js/core/src/modules.rs +++ b/packages/transformers/js/core/src/modules.rs @@ -11,6 +11,7 @@ use swc_core::ecma::atoms::js_word; use swc_core::ecma::atoms::JsWord; use swc_core::ecma::preset_env::Feature; use swc_core::ecma::preset_env::Versions; +use swc_core::ecma::utils::stack_size::maybe_grow_default; use swc_core::ecma::visit::Fold; use swc_core::ecma::visit::FoldWith; @@ -623,7 +624,7 @@ impl Fold for ESMFold { node } } - _ => node.fold_children_with(self), + _ => maybe_grow_default(|| node.fold_children_with(self)), } } diff --git a/packages/transformers/js/core/src/node_replacer.rs b/packages/transformers/js/core/src/node_replacer.rs index dc8848cbccc..36aa06d20e2 100644 --- a/packages/transformers/js/core/src/node_replacer.rs +++ b/packages/transformers/js/core/src/node_replacer.rs @@ -8,6 +8,7 @@ use swc_core::common::SyntaxContext; use swc_core::common::DUMMY_SP; use swc_core::ecma::ast; use swc_core::ecma::atoms::JsWord; +use swc_core::ecma::utils::stack_size::maybe_grow_default; use swc_core::ecma::visit::Fold; use swc_core::ecma::visit::FoldWith; @@ -53,7 +54,7 @@ impl<'a> Fold for NodeReplacer<'a> { }) } } - _ => node.fold_children_with(self), + _ => maybe_grow_default(|| node.fold_children_with(self)), }; if let Ident(id) = &mut node { diff --git a/packages/transformers/js/core/src/typeof_replacer.rs b/packages/transformers/js/core/src/typeof_replacer.rs index 427d43aea9c..65d022158ac 100644 --- a/packages/transformers/js/core/src/typeof_replacer.rs +++ b/packages/transformers/js/core/src/typeof_replacer.rs @@ -4,6 +4,7 @@ use swc_core::ecma::ast::Lit; use swc_core::ecma::ast::Str; use swc_core::ecma::ast::UnaryOp; use swc_core::ecma::atoms::js_word; +use swc_core::ecma::utils::stack_size::maybe_grow_default; use swc_core::ecma::visit::Fold; use swc_core::ecma::visit::FoldWith; @@ -45,6 +46,7 @@ impl Fold for TypeofReplacer { } } } - node.fold_children_with(self) + + maybe_grow_default(|| node.fold_children_with(self)) } } From 8c47bf679d31290e87c1819b3ef6f65df9b4e580 Mon Sep 17 00:00:00 2001 From: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com> Date: Tue, 16 Apr 2024 11:37:43 +0200 Subject: [PATCH 05/13] WIP add example --- Cargo.lock | 8 + crates/test/Cargo.toml | 9 + crates/test/src/main.rs | 47 + isbl.js | 3192 ++++++++++++++++++++++ packages/transformers/js/core/src/lib.rs | 66 +- 5 files changed, 3289 insertions(+), 33 deletions(-) create mode 100644 crates/test/Cargo.toml create mode 100644 crates/test/src/main.rs create mode 100644 isbl.js diff --git a/Cargo.lock b/Cargo.lock index 2bb0fa86150..5a07f5daa55 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1884,6 +1884,14 @@ dependencies = [ "xxhash-rust", ] +[[package]] +name = "parcel-test" +version = "0.1.0" +dependencies = [ + "parcel-js-swc-core", + "rayon", +] + [[package]] name = "parcel_config" version = "0.1.0" diff --git a/crates/test/Cargo.toml b/crates/test/Cargo.toml new file mode 100644 index 00000000000..59133080ddb --- /dev/null +++ b/crates/test/Cargo.toml @@ -0,0 +1,9 @@ +[package] +authors = ["Devon Govett "] +name = "parcel-test" +version = "0.1.0" +edition = "2021" + +[dependencies] +parcel-js-swc-core = { path = "../../packages/transformers/js/core" } +rayon = "1.7.0" diff --git a/crates/test/src/main.rs b/crates/test/src/main.rs new file mode 100644 index 00000000000..1b24c5681fb --- /dev/null +++ b/crates/test/src/main.rs @@ -0,0 +1,47 @@ +use std::collections::HashMap; + +fn main() { + let foo = std::fs::read_to_string("isbl.js").unwrap(); + + let config = parcel_js_swc_core::Config { + filename: "file.js".to_string(), + code: foo.into_bytes(), + module_id: "xyz".to_string(), + project_root: "/app/".to_string(), + replace_env: true, + env: HashMap::new(), + inline_fs: false, + insert_node_globals: false, + node_replacer: false, + is_browser: false, + is_worker: false, + is_type_script: false, + is_jsx: false, + jsx_pragma: None, + jsx_pragma_frag: None, + automatic_jsx_runtime: false, + jsx_import_source: None, + decorators: false, + use_define_for_class_fields: false, + is_development: false, + react_refresh: false, + targets: None, + source_maps: false, + scope_hoist: false, + source_type: parcel_js_swc_core::SourceType::Module, + supports_module_workers: false, + is_library: false, + is_esm_output: false, + trace_bailouts: false, + is_swc_helpers: false, + standalone: false, + inline_constants: false, + }; + + rayon::scope(|scope| { + scope.spawn(move |_| { + let result = parcel_js_swc_core::transform(config, None).unwrap(); + println!("{:?}", String::from_utf8(result.code).unwrap()); + }) + }); +} diff --git a/isbl.js b/isbl.js new file mode 100644 index 00000000000..67e7f124086 --- /dev/null +++ b/isbl.js @@ -0,0 +1,3192 @@ +/* +Language: ISBL +Author: Dmitriy Tarasov +Description: built-in language DIRECTUM +Category: enterprise +*/ + +function isbl(hljs) { + // Определение идентификаторов + const UNDERSCORE_IDENT_RE = '[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*'; + + // Определение имен функций + const FUNCTION_NAME_IDENT_RE = '[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*'; + + // keyword : ключевые слова + const KEYWORD = + 'and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока ' + + 'except exitfor finally foreach все if если in в not не or или try while пока '; + + // SYSRES Constants + const sysres_constants = + 'SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT ' + + 'SYSRES_CONST_ACCES_RIGHT_TYPE_FULL ' + + 'SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW ' + + 'SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE ' + + 'SYSRES_CONST_ACCESS_NO_ACCESS_VIEW ' + + 'SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE ' + + 'SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE ' + + 'SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE ' + + 'SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE ' + + 'SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE ' + + 'SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE ' + + 'SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE ' + + 'SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE ' + + 'SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE ' + + 'SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE ' + + 'SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE ' + + 'SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE ' + + 'SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE ' + + 'SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE ' + + 'SYSRES_CONST_ACCESS_RIGHTS_VIEW ' + + 'SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE ' + + 'SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE ' + + 'SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE ' + + 'SYSRES_CONST_ACCESS_TYPE_CHANGE ' + + 'SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE ' + + 'SYSRES_CONST_ACCESS_TYPE_EXISTS ' + + 'SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE ' + + 'SYSRES_CONST_ACCESS_TYPE_FULL ' + + 'SYSRES_CONST_ACCESS_TYPE_FULL_CODE ' + + 'SYSRES_CONST_ACCESS_TYPE_VIEW ' + + 'SYSRES_CONST_ACCESS_TYPE_VIEW_CODE ' + + 'SYSRES_CONST_ACTION_TYPE_ABORT ' + + 'SYSRES_CONST_ACTION_TYPE_ACCEPT ' + + 'SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS ' + + 'SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT ' + + 'SYSRES_CONST_ACTION_TYPE_CHANGE_CARD ' + + 'SYSRES_CONST_ACTION_TYPE_CHANGE_KIND ' + + 'SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE ' + + 'SYSRES_CONST_ACTION_TYPE_CONTINUE ' + + 'SYSRES_CONST_ACTION_TYPE_COPY ' + + 'SYSRES_CONST_ACTION_TYPE_CREATE ' + + 'SYSRES_CONST_ACTION_TYPE_CREATE_VERSION ' + + 'SYSRES_CONST_ACTION_TYPE_DELETE ' + + 'SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT ' + + 'SYSRES_CONST_ACTION_TYPE_DELETE_VERSION ' + + 'SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS ' + + 'SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS ' + + 'SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE ' + + 'SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD ' + + 'SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD ' + + 'SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK ' + + 'SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK ' + + 'SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK ' + + 'SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK ' + + 'SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE ' + + 'SYSRES_CONST_ACTION_TYPE_LOCK ' + + 'SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER ' + + 'SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY ' + + 'SYSRES_CONST_ACTION_TYPE_MARK_AS_READED ' + + 'SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED ' + + 'SYSRES_CONST_ACTION_TYPE_MODIFY ' + + 'SYSRES_CONST_ACTION_TYPE_MODIFY_CARD ' + + 'SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE ' + + 'SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION ' + + 'SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE ' + + 'SYSRES_CONST_ACTION_TYPE_PERFORM ' + + 'SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY ' + + 'SYSRES_CONST_ACTION_TYPE_RESTART ' + + 'SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE ' + + 'SYSRES_CONST_ACTION_TYPE_REVISION ' + + 'SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL ' + + 'SYSRES_CONST_ACTION_TYPE_SIGN ' + + 'SYSRES_CONST_ACTION_TYPE_START ' + + 'SYSRES_CONST_ACTION_TYPE_UNLOCK ' + + 'SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER ' + + 'SYSRES_CONST_ACTION_TYPE_VERSION_STATE ' + + 'SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY ' + + 'SYSRES_CONST_ACTION_TYPE_VIEW ' + + 'SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY ' + + 'SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY ' + + 'SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY ' + + 'SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE ' + + 'SYSRES_CONST_ADD_REFERENCE_MODE_NAME ' + + 'SYSRES_CONST_ADDITION_REQUISITE_CODE ' + + 'SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE ' + + 'SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME ' + + 'SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME ' + + 'SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME ' + + 'SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE ' + + 'SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION ' + + 'SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS ' + + 'SYSRES_CONST_ALL_USERS_GROUP ' + + 'SYSRES_CONST_ALL_USERS_GROUP_NAME ' + + 'SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME ' + + 'SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE ' + + 'SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME ' + + 'SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE ' + + 'SYSRES_CONST_APPROVING_SIGNATURE_NAME ' + + 'SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE ' + + 'SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE ' + + 'SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE ' + + 'SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN ' + + 'SYSRES_CONST_ATTACH_TYPE_DOC ' + + 'SYSRES_CONST_ATTACH_TYPE_EDOC ' + + 'SYSRES_CONST_ATTACH_TYPE_FOLDER ' + + 'SYSRES_CONST_ATTACH_TYPE_JOB ' + + 'SYSRES_CONST_ATTACH_TYPE_REFERENCE ' + + 'SYSRES_CONST_ATTACH_TYPE_TASK ' + + 'SYSRES_CONST_AUTH_ENCODED_PASSWORD ' + + 'SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE ' + + 'SYSRES_CONST_AUTH_NOVELL ' + + 'SYSRES_CONST_AUTH_PASSWORD ' + + 'SYSRES_CONST_AUTH_PASSWORD_CODE ' + + 'SYSRES_CONST_AUTH_WINDOWS ' + + 'SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME ' + + 'SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE ' + + 'SYSRES_CONST_AUTO_ENUM_METHOD_FLAG ' + + 'SYSRES_CONST_AUTO_NUMERATION_CODE ' + + 'SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG ' + + 'SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE ' + + 'SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE ' + + 'SYSRES_CONST_AUTOTEXT_USAGE_ALL ' + + 'SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE ' + + 'SYSRES_CONST_AUTOTEXT_USAGE_SIGN ' + + 'SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE ' + + 'SYSRES_CONST_AUTOTEXT_USAGE_WORK ' + + 'SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE ' + + 'SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE ' + + 'SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE ' + + 'SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE ' + + 'SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE ' + + 'SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR ' + + 'SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR ' + + 'SYSRES_CONST_BTN_PART ' + + 'SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE ' + + 'SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE ' + + 'SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE ' + + 'SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT ' + + 'SYSRES_CONST_CARD_PART ' + + 'SYSRES_CONST_CARD_REFERENCE_MODE_NAME ' + + 'SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE ' + + 'SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE ' + + 'SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE ' + + 'SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE ' + + 'SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE ' + + 'SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE ' + + 'SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE ' + + 'SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE ' + + 'SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE ' + + 'SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE ' + + 'SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN ' + + 'SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER ' + + 'SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS ' + + 'SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS ' + + 'SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE ' + + 'SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER ' + + 'SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE ' + + 'SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT ' + + 'SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT ' + + 'SYSRES_CONST_CODE_COMPONENT_TYPE_URL ' + + 'SYSRES_CONST_CODE_REQUISITE_ACCESS ' + + 'SYSRES_CONST_CODE_REQUISITE_CODE ' + + 'SYSRES_CONST_CODE_REQUISITE_COMPONENT ' + + 'SYSRES_CONST_CODE_REQUISITE_DESCRIPTION ' + + 'SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT ' + + 'SYSRES_CONST_CODE_REQUISITE_RECORD ' + + 'SYSRES_CONST_COMMENT_REQ_CODE ' + + 'SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE ' + + 'SYSRES_CONST_COMP_CODE_GRD ' + + 'SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE ' + + 'SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS ' + + 'SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS ' + + 'SYSRES_CONST_COMPONENT_TYPE_DOCS ' + + 'SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS ' + + 'SYSRES_CONST_COMPONENT_TYPE_EDOCS ' + + 'SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE ' + + 'SYSRES_CONST_COMPONENT_TYPE_OTHER ' + + 'SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES ' + + 'SYSRES_CONST_COMPONENT_TYPE_REFERENCES ' + + 'SYSRES_CONST_COMPONENT_TYPE_REPORTS ' + + 'SYSRES_CONST_COMPONENT_TYPE_SCRIPTS ' + + 'SYSRES_CONST_COMPONENT_TYPE_URL ' + + 'SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE ' + + 'SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION ' + + 'SYSRES_CONST_CONST_FIRM_STATUS_COMMON ' + + 'SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL ' + + 'SYSRES_CONST_CONST_NEGATIVE_VALUE ' + + 'SYSRES_CONST_CONST_POSITIVE_VALUE ' + + 'SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE ' + + 'SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE ' + + 'SYSRES_CONST_CONTENTS_REQUISITE_CODE ' + + 'SYSRES_CONST_DATA_TYPE_BOOLEAN ' + + 'SYSRES_CONST_DATA_TYPE_DATE ' + + 'SYSRES_CONST_DATA_TYPE_FLOAT ' + + 'SYSRES_CONST_DATA_TYPE_INTEGER ' + + 'SYSRES_CONST_DATA_TYPE_PICK ' + + 'SYSRES_CONST_DATA_TYPE_REFERENCE ' + + 'SYSRES_CONST_DATA_TYPE_STRING ' + + 'SYSRES_CONST_DATA_TYPE_TEXT ' + + 'SYSRES_CONST_DATA_TYPE_VARIANT ' + + 'SYSRES_CONST_DATE_CLOSE_REQ_CODE ' + + 'SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR ' + + 'SYSRES_CONST_DATE_OPEN_REQ_CODE ' + + 'SYSRES_CONST_DATE_REQUISITE ' + + 'SYSRES_CONST_DATE_REQUISITE_CODE ' + + 'SYSRES_CONST_DATE_REQUISITE_NAME ' + + 'SYSRES_CONST_DATE_REQUISITE_TYPE ' + + 'SYSRES_CONST_DATE_TYPE_CHAR ' + + 'SYSRES_CONST_DATETIME_FORMAT_VALUE ' + + 'SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE ' + + 'SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE ' + + 'SYSRES_CONST_DESCRIPTION_REQUISITE_CODE ' + + 'SYSRES_CONST_DET1_PART ' + + 'SYSRES_CONST_DET2_PART ' + + 'SYSRES_CONST_DET3_PART ' + + 'SYSRES_CONST_DET4_PART ' + + 'SYSRES_CONST_DET5_PART ' + + 'SYSRES_CONST_DET6_PART ' + + 'SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE ' + + 'SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE ' + + 'SYSRES_CONST_DETAIL_REQ_CODE ' + + 'SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE ' + + 'SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME ' + + 'SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE ' + + 'SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME ' + + 'SYSRES_CONST_DOCUMENT_STORAGES_CODE ' + + 'SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME ' + + 'SYSRES_CONST_DOUBLE_REQUISITE_CODE ' + + 'SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE ' + + 'SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE ' + + 'SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE ' + + 'SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE ' + + 'SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE ' + + 'SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE ' + + 'SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE ' + + 'SYSRES_CONST_EDITORS_REFERENCE_CODE ' + + 'SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE ' + + 'SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE ' + + 'SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE ' + + 'SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE ' + + 'SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE ' + + 'SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE ' + + 'SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE ' + + 'SYSRES_CONST_EDOC_DATE_REQUISITE_CODE ' + + 'SYSRES_CONST_EDOC_KIND_REFERENCE_CODE ' + + 'SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE ' + + 'SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE ' + + 'SYSRES_CONST_EDOC_NONE_ENCODE_CODE ' + + 'SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE ' + + 'SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE ' + + 'SYSRES_CONST_EDOC_READONLY_ACCESS_CODE ' + + 'SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE ' + + 'SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE ' + + 'SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE ' + + 'SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE ' + + 'SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE ' + + 'SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE ' + + 'SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE ' + + 'SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE ' + + 'SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE ' + + 'SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE ' + + 'SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE ' + + 'SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE ' + + 'SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE ' + + 'SYSRES_CONST_EDOC_WRITE_ACCES_CODE ' + + 'SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE ' + + 'SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE ' + + 'SYSRES_CONST_END_DATE_REQUISITE_CODE ' + + 'SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE ' + + 'SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE ' + + 'SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE ' + + 'SYSRES_CONST_EXIST_CONST ' + + 'SYSRES_CONST_EXIST_VALUE ' + + 'SYSRES_CONST_EXPORT_LOCK_TYPE_ASK ' + + 'SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK ' + + 'SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK ' + + 'SYSRES_CONST_EXPORT_VERSION_TYPE_ASK ' + + 'SYSRES_CONST_EXPORT_VERSION_TYPE_LAST ' + + 'SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE ' + + 'SYSRES_CONST_EXTENSION_REQUISITE_CODE ' + + 'SYSRES_CONST_FILTER_NAME_REQUISITE_CODE ' + + 'SYSRES_CONST_FILTER_REQUISITE_CODE ' + + 'SYSRES_CONST_FILTER_TYPE_COMMON_CODE ' + + 'SYSRES_CONST_FILTER_TYPE_COMMON_NAME ' + + 'SYSRES_CONST_FILTER_TYPE_USER_CODE ' + + 'SYSRES_CONST_FILTER_TYPE_USER_NAME ' + + 'SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME ' + + 'SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR ' + + 'SYSRES_CONST_FLOAT_REQUISITE_TYPE ' + + 'SYSRES_CONST_FOLDER_AUTHOR_VALUE ' + + 'SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS ' + + 'SYSRES_CONST_FOLDER_KIND_COMPONENTS ' + + 'SYSRES_CONST_FOLDER_KIND_EDOCS ' + + 'SYSRES_CONST_FOLDER_KIND_JOBS ' + + 'SYSRES_CONST_FOLDER_KIND_TASKS ' + + 'SYSRES_CONST_FOLDER_TYPE_COMMON ' + + 'SYSRES_CONST_FOLDER_TYPE_COMPONENT ' + + 'SYSRES_CONST_FOLDER_TYPE_FAVORITES ' + + 'SYSRES_CONST_FOLDER_TYPE_INBOX ' + + 'SYSRES_CONST_FOLDER_TYPE_OUTBOX ' + + 'SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH ' + + 'SYSRES_CONST_FOLDER_TYPE_SEARCH ' + + 'SYSRES_CONST_FOLDER_TYPE_SHORTCUTS ' + + 'SYSRES_CONST_FOLDER_TYPE_USER ' + + 'SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG ' + + 'SYSRES_CONST_FULL_SUBSTITUTE_TYPE ' + + 'SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE ' + + 'SYSRES_CONST_FUNCTION_CANCEL_RESULT ' + + 'SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM ' + + 'SYSRES_CONST_FUNCTION_CATEGORY_USER ' + + 'SYSRES_CONST_FUNCTION_FAILURE_RESULT ' + + 'SYSRES_CONST_FUNCTION_SAVE_RESULT ' + + 'SYSRES_CONST_GENERATED_REQUISITE ' + + 'SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR ' + + 'SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE ' + + 'SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE ' + + 'SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME ' + + 'SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE ' + + 'SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME ' + + 'SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE ' + + 'SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE ' + + 'SYSRES_CONST_GROUP_NAME_REQUISITE_CODE ' + + 'SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE ' + + 'SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE ' + + 'SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE ' + + 'SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE ' + + 'SYSRES_CONST_GROUP_USER_REQUISITE_CODE ' + + 'SYSRES_CONST_GROUPS_REFERENCE_CODE ' + + 'SYSRES_CONST_GROUPS_REQUISITE_CODE ' + + 'SYSRES_CONST_HIDDEN_MODE_NAME ' + + 'SYSRES_CONST_HIGH_LVL_REQUISITE_CODE ' + + 'SYSRES_CONST_HISTORY_ACTION_CREATE_CODE ' + + 'SYSRES_CONST_HISTORY_ACTION_DELETE_CODE ' + + 'SYSRES_CONST_HISTORY_ACTION_EDIT_CODE ' + + 'SYSRES_CONST_HOUR_CHAR ' + + 'SYSRES_CONST_ID_REQUISITE_CODE ' + + 'SYSRES_CONST_IDSPS_REQUISITE_CODE ' + + 'SYSRES_CONST_IMAGE_MODE_COLOR ' + + 'SYSRES_CONST_IMAGE_MODE_GREYSCALE ' + + 'SYSRES_CONST_IMAGE_MODE_MONOCHROME ' + + 'SYSRES_CONST_IMPORTANCE_HIGH ' + + 'SYSRES_CONST_IMPORTANCE_LOW ' + + 'SYSRES_CONST_IMPORTANCE_NORMAL ' + + 'SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE ' + + 'SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE ' + + 'SYSRES_CONST_INT_REQUISITE ' + + 'SYSRES_CONST_INT_REQUISITE_TYPE ' + + 'SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR ' + + 'SYSRES_CONST_INTEGER_TYPE_CHAR ' + + 'SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE ' + + 'SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE ' + + 'SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE ' + + 'SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE ' + + 'SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE ' + + 'SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE ' + + 'SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE ' + + 'SYSRES_CONST_JOB_BLOCK_DESCRIPTION ' + + 'SYSRES_CONST_JOB_KIND_CONTROL_JOB ' + + 'SYSRES_CONST_JOB_KIND_JOB ' + + 'SYSRES_CONST_JOB_KIND_NOTICE ' + + 'SYSRES_CONST_JOB_STATE_ABORTED ' + + 'SYSRES_CONST_JOB_STATE_COMPLETE ' + + 'SYSRES_CONST_JOB_STATE_WORKING ' + + 'SYSRES_CONST_KIND_REQUISITE_CODE ' + + 'SYSRES_CONST_KIND_REQUISITE_NAME ' + + 'SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE ' + + 'SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE ' + + 'SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE ' + + 'SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE ' + + 'SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE ' + + 'SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE ' + + 'SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE ' + + 'SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE ' + + 'SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE ' + + 'SYSRES_CONST_KOD_INPUT_TYPE ' + + 'SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE ' + + 'SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE ' + + 'SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR ' + + 'SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT ' + + 'SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT ' + + 'SYSRES_CONST_LINK_OBJECT_KIND_EDOC ' + + 'SYSRES_CONST_LINK_OBJECT_KIND_FOLDER ' + + 'SYSRES_CONST_LINK_OBJECT_KIND_JOB ' + + 'SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE ' + + 'SYSRES_CONST_LINK_OBJECT_KIND_TASK ' + + 'SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE ' + + 'SYSRES_CONST_LIST_REFERENCE_MODE_NAME ' + + 'SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE ' + + 'SYSRES_CONST_MAIN_VIEW_CODE ' + + 'SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG ' + + 'SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE ' + + 'SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE ' + + 'SYSRES_CONST_MAXIMIZED_MODE_NAME ' + + 'SYSRES_CONST_ME_VALUE ' + + 'SYSRES_CONST_MESSAGE_ATTENTION_CAPTION ' + + 'SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION ' + + 'SYSRES_CONST_MESSAGE_ERROR_CAPTION ' + + 'SYSRES_CONST_MESSAGE_INFORMATION_CAPTION ' + + 'SYSRES_CONST_MINIMIZED_MODE_NAME ' + + 'SYSRES_CONST_MINUTE_CHAR ' + + 'SYSRES_CONST_MODULE_REQUISITE_CODE ' + + 'SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION ' + + 'SYSRES_CONST_MONTH_FORMAT_VALUE ' + + 'SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE ' + + 'SYSRES_CONST_NAME_REQUISITE_CODE ' + + 'SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE ' + + 'SYSRES_CONST_NAMEAN_INPUT_TYPE ' + + 'SYSRES_CONST_NEGATIVE_PICK_VALUE ' + + 'SYSRES_CONST_NEGATIVE_VALUE ' + + 'SYSRES_CONST_NO ' + + 'SYSRES_CONST_NO_PICK_VALUE ' + + 'SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE ' + + 'SYSRES_CONST_NO_VALUE ' + + 'SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE ' + + 'SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE ' + + 'SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE ' + + 'SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE ' + + 'SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE ' + + 'SYSRES_CONST_NORMAL_MODE_NAME ' + + 'SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE ' + + 'SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME ' + + 'SYSRES_CONST_NOTE_REQUISITE_CODE ' + + 'SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION ' + + 'SYSRES_CONST_NUM_REQUISITE ' + + 'SYSRES_CONST_NUM_STR_REQUISITE_CODE ' + + 'SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG ' + + 'SYSRES_CONST_NUMERATION_AUTO_STRONG ' + + 'SYSRES_CONST_NUMERATION_FROM_DICTONARY ' + + 'SYSRES_CONST_NUMERATION_MANUAL ' + + 'SYSRES_CONST_NUMERIC_TYPE_CHAR ' + + 'SYSRES_CONST_NUMREQ_REQUISITE_CODE ' + + 'SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE ' + + 'SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE ' + + 'SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE ' + + 'SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE ' + + 'SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE ' + + 'SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX ' + + 'SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR ' + + 'SYSRES_CONST_ORIGINALREF_REQUISITE_CODE ' + + 'SYSRES_CONST_OURFIRM_REF_CODE ' + + 'SYSRES_CONST_OURFIRM_REQUISITE_CODE ' + + 'SYSRES_CONST_OURFIRM_VAR ' + + 'SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE ' + + 'SYSRES_CONST_PICK_NEGATIVE_RESULT ' + + 'SYSRES_CONST_PICK_POSITIVE_RESULT ' + + 'SYSRES_CONST_PICK_REQUISITE ' + + 'SYSRES_CONST_PICK_REQUISITE_TYPE ' + + 'SYSRES_CONST_PICK_TYPE_CHAR ' + + 'SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE ' + + 'SYSRES_CONST_PLATFORM_VERSION_COMMENT ' + + 'SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE ' + + 'SYSRES_CONST_POSITIVE_PICK_VALUE ' + + 'SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE ' + + 'SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE ' + + 'SYSRES_CONST_PRIORITY_REQUISITE_CODE ' + + 'SYSRES_CONST_QUALIFIED_TASK_TYPE ' + + 'SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE ' + + 'SYSRES_CONST_RECSTAT_REQUISITE_CODE ' + + 'SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR ' + + 'SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE ' + + 'SYSRES_CONST_REF_REQUISITE ' + + 'SYSRES_CONST_REF_REQUISITE_TYPE ' + + 'SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE ' + + 'SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE ' + + 'SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE ' + + 'SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE ' + + 'SYSRES_CONST_REFERENCE_TYPE_CHAR ' + + 'SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME ' + + 'SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE ' + + 'SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE ' + + 'SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING ' + + 'SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN ' + + 'SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY ' + + 'SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE ' + + 'SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL ' + + 'SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE ' + + 'SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE ' + + 'SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE ' + + 'SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE ' + + 'SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE ' + + 'SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE ' + + 'SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE ' + + 'SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE ' + + 'SYSRES_CONST_REQ_MODE_AVAILABLE_CODE ' + + 'SYSRES_CONST_REQ_MODE_EDIT_CODE ' + + 'SYSRES_CONST_REQ_MODE_HIDDEN_CODE ' + + 'SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE ' + + 'SYSRES_CONST_REQ_MODE_VIEW_CODE ' + + 'SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE ' + + 'SYSRES_CONST_REQ_SECTION_VALUE ' + + 'SYSRES_CONST_REQ_TYPE_VALUE ' + + 'SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT ' + + 'SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL ' + + 'SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME ' + + 'SYSRES_CONST_REQUISITE_FORMAT_LEFT ' + + 'SYSRES_CONST_REQUISITE_FORMAT_RIGHT ' + + 'SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT ' + + 'SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE ' + + 'SYSRES_CONST_REQUISITE_SECTION_ACTIONS ' + + 'SYSRES_CONST_REQUISITE_SECTION_BUTTON ' + + 'SYSRES_CONST_REQUISITE_SECTION_BUTTONS ' + + 'SYSRES_CONST_REQUISITE_SECTION_CARD ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE10 ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE11 ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE12 ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE13 ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE14 ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE15 ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE16 ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE17 ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE18 ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE19 ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE2 ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE20 ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE21 ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE22 ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE23 ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE24 ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE3 ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE4 ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE5 ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE6 ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE7 ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE8 ' + + 'SYSRES_CONST_REQUISITE_SECTION_TABLE9 ' + + 'SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE ' + + 'SYSRES_CONST_RIGHT_ALIGNMENT_CODE ' + + 'SYSRES_CONST_ROLES_REFERENCE_CODE ' + + 'SYSRES_CONST_ROUTE_STEP_AFTER_RUS ' + + 'SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS ' + + 'SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS ' + + 'SYSRES_CONST_ROUTE_TYPE_COMPLEX ' + + 'SYSRES_CONST_ROUTE_TYPE_PARALLEL ' + + 'SYSRES_CONST_ROUTE_TYPE_SERIAL ' + + 'SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE ' + + 'SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE ' + + 'SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE ' + + 'SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION ' + + 'SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE ' + + 'SYSRES_CONST_SEARCHES_COMPONENT_CONTENT ' + + 'SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME ' + + 'SYSRES_CONST_SEARCHES_EDOC_CONTENT ' + + 'SYSRES_CONST_SEARCHES_FOLDER_CONTENT ' + + 'SYSRES_CONST_SEARCHES_JOB_CONTENT ' + + 'SYSRES_CONST_SEARCHES_REFERENCE_CODE ' + + 'SYSRES_CONST_SEARCHES_TASK_CONTENT ' + + 'SYSRES_CONST_SECOND_CHAR ' + + 'SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE ' + + 'SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE ' + + 'SYSRES_CONST_SECTION_REQUISITE_CODE ' + + 'SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE ' + + 'SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE ' + + 'SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE ' + + 'SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE ' + + 'SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE ' + + 'SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE ' + + 'SYSRES_CONST_SELECT_REFERENCE_MODE_NAME ' + + 'SYSRES_CONST_SELECT_TYPE_SELECTABLE ' + + 'SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD ' + + 'SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD ' + + 'SYSRES_CONST_SELECT_TYPE_UNSLECTABLE ' + + 'SYSRES_CONST_SERVER_TYPE_MAIN ' + + 'SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE ' + + 'SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE ' + + 'SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE ' + + 'SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE ' + + 'SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE ' + + 'SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE ' + + 'SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE ' + + 'SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE ' + + 'SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE ' + + 'SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE ' + + 'SYSRES_CONST_STATE_REQ_NAME ' + + 'SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE ' + + 'SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE ' + + 'SYSRES_CONST_STATE_REQUISITE_CODE ' + + 'SYSRES_CONST_STATIC_ROLE_TYPE_CODE ' + + 'SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE ' + + 'SYSRES_CONST_STATUS_VALUE_AUTOCLEANING ' + + 'SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE ' + + 'SYSRES_CONST_STATUS_VALUE_COMPLETE ' + + 'SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE ' + + 'SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE ' + + 'SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE ' + + 'SYSRES_CONST_STATUS_VALUE_RED_SQUARE ' + + 'SYSRES_CONST_STATUS_VALUE_SUSPEND ' + + 'SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE ' + + 'SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE ' + + 'SYSRES_CONST_STORAGE_TYPE_FILE ' + + 'SYSRES_CONST_STORAGE_TYPE_SQL_SERVER ' + + 'SYSRES_CONST_STR_REQUISITE ' + + 'SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE ' + + 'SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR ' + + 'SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR ' + + 'SYSRES_CONST_STRING_REQUISITE_CODE ' + + 'SYSRES_CONST_STRING_REQUISITE_TYPE ' + + 'SYSRES_CONST_STRING_TYPE_CHAR ' + + 'SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE ' + + 'SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION ' + + 'SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE ' + + 'SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE ' + + 'SYSRES_CONST_SYSTEM_VERSION_COMMENT ' + + 'SYSRES_CONST_TASK_ACCESS_TYPE_ALL ' + + 'SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS ' + + 'SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL ' + + 'SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION ' + + 'SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD ' + + 'SYSRES_CONST_TASK_ENCODE_TYPE_NONE ' + + 'SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD ' + + 'SYSRES_CONST_TASK_ROUTE_ALL_CONDITION ' + + 'SYSRES_CONST_TASK_ROUTE_AND_CONDITION ' + + 'SYSRES_CONST_TASK_ROUTE_OR_CONDITION ' + + 'SYSRES_CONST_TASK_STATE_ABORTED ' + + 'SYSRES_CONST_TASK_STATE_COMPLETE ' + + 'SYSRES_CONST_TASK_STATE_CONTINUED ' + + 'SYSRES_CONST_TASK_STATE_CONTROL ' + + 'SYSRES_CONST_TASK_STATE_INIT ' + + 'SYSRES_CONST_TASK_STATE_WORKING ' + + 'SYSRES_CONST_TASK_TITLE ' + + 'SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE ' + + 'SYSRES_CONST_TASK_TYPES_REFERENCE_CODE ' + + 'SYSRES_CONST_TEMPLATES_REFERENCE_CODE ' + + 'SYSRES_CONST_TEST_DATE_REQUISITE_NAME ' + + 'SYSRES_CONST_TEST_DEV_DATABASE_NAME ' + + 'SYSRES_CONST_TEST_DEV_SYSTEM_CODE ' + + 'SYSRES_CONST_TEST_EDMS_DATABASE_NAME ' + + 'SYSRES_CONST_TEST_EDMS_MAIN_CODE ' + + 'SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME ' + + 'SYSRES_CONST_TEST_EDMS_SECOND_CODE ' + + 'SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME ' + + 'SYSRES_CONST_TEST_EDMS_SYSTEM_CODE ' + + 'SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME ' + + 'SYSRES_CONST_TEXT_REQUISITE ' + + 'SYSRES_CONST_TEXT_REQUISITE_CODE ' + + 'SYSRES_CONST_TEXT_REQUISITE_TYPE ' + + 'SYSRES_CONST_TEXT_TYPE_CHAR ' + + 'SYSRES_CONST_TYPE_CODE_REQUISITE_CODE ' + + 'SYSRES_CONST_TYPE_REQUISITE_CODE ' + + 'SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR ' + + 'SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE ' + + 'SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE ' + + 'SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE ' + + 'SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE ' + + 'SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME ' + + 'SYSRES_CONST_USE_ACCESS_TYPE_CODE ' + + 'SYSRES_CONST_USE_ACCESS_TYPE_NAME ' + + 'SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE ' + + 'SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE ' + + 'SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE ' + + 'SYSRES_CONST_USER_CATEGORY_NORMAL ' + + 'SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE ' + + 'SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE ' + + 'SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE ' + + 'SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE ' + + 'SYSRES_CONST_USER_COMMON_CATEGORY ' + + 'SYSRES_CONST_USER_COMMON_CATEGORY_CODE ' + + 'SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE ' + + 'SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE ' + + 'SYSRES_CONST_USER_LOGIN_REQUISITE_CODE ' + + 'SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE ' + + 'SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE ' + + 'SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE ' + + 'SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE ' + + 'SYSRES_CONST_USER_SERVICE_CATEGORY ' + + 'SYSRES_CONST_USER_SERVICE_CATEGORY_CODE ' + + 'SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE ' + + 'SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME ' + + 'SYSRES_CONST_USER_STATUS_DEVELOPER_CODE ' + + 'SYSRES_CONST_USER_STATUS_DEVELOPER_NAME ' + + 'SYSRES_CONST_USER_STATUS_DISABLED_CODE ' + + 'SYSRES_CONST_USER_STATUS_DISABLED_NAME ' + + 'SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE ' + + 'SYSRES_CONST_USER_STATUS_USER_CODE ' + + 'SYSRES_CONST_USER_STATUS_USER_NAME ' + + 'SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED ' + + 'SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER ' + + 'SYSRES_CONST_USER_TYPE_REQUISITE_CODE ' + + 'SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE ' + + 'SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE ' + + 'SYSRES_CONST_USERS_REFERENCE_CODE ' + + 'SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME ' + + 'SYSRES_CONST_USERS_REQUISITE_CODE ' + + 'SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE ' + + 'SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE ' + + 'SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE ' + + 'SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE ' + + 'SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE ' + + 'SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME ' + + 'SYSRES_CONST_VIEW_DEFAULT_CODE ' + + 'SYSRES_CONST_VIEW_DEFAULT_NAME ' + + 'SYSRES_CONST_VIEWER_REQUISITE_CODE ' + + 'SYSRES_CONST_WAITING_BLOCK_DESCRIPTION ' + + 'SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING ' + + 'SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING ' + + 'SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE ' + + 'SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE ' + + 'SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE ' + + 'SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE ' + + 'SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE ' + + 'SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS ' + + 'SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS ' + + 'SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD ' + + 'SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT ' + + 'SYSRES_CONST_XML_ENCODING ' + + 'SYSRES_CONST_XREC_STAT_REQUISITE_CODE ' + + 'SYSRES_CONST_XRECID_FIELD_NAME ' + + 'SYSRES_CONST_YES ' + + 'SYSRES_CONST_YES_NO_2_REQUISITE_CODE ' + + 'SYSRES_CONST_YES_NO_REQUISITE_CODE ' + + 'SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE ' + + 'SYSRES_CONST_YES_PICK_VALUE ' + + 'SYSRES_CONST_YES_VALUE '; + + // Base constant + const base_constants = 'CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE '; + + // Base group name + const base_group_name_constants = + 'ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME '; + + // Decision block properties + const decision_block_properties_constants = + 'DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY ' + + 'DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY '; + + // File extension + const file_extension_constants = + 'ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION ' + + 'SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION '; + + // Job block properties + const job_block_properties_constants = + 'JOB_BLOCK_ABORT_DEADLINE_PROPERTY ' + + 'JOB_BLOCK_AFTER_FINISH_EVENT ' + + 'JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT ' + + 'JOB_BLOCK_ATTACHMENT_PROPERTY ' + + 'JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY ' + + 'JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY ' + + 'JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT ' + + 'JOB_BLOCK_BEFORE_START_EVENT ' + + 'JOB_BLOCK_CREATED_JOBS_PROPERTY ' + + 'JOB_BLOCK_DEADLINE_PROPERTY ' + + 'JOB_BLOCK_EXECUTION_RESULTS_PROPERTY ' + + 'JOB_BLOCK_IS_PARALLEL_PROPERTY ' + + 'JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY ' + + 'JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY ' + + 'JOB_BLOCK_JOB_TEXT_PROPERTY ' + + 'JOB_BLOCK_NAME_PROPERTY ' + + 'JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY ' + + 'JOB_BLOCK_PERFORMER_PROPERTY ' + + 'JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY ' + + 'JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY ' + + 'JOB_BLOCK_SUBJECT_PROPERTY '; + + // Language code + const language_code_constants = + 'ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE '; + + // Launching external applications + const launching_external_applications_constants = + 'smHidden smMaximized smMinimized smNormal wmNo wmYes '; + + // Link kind + const link_kind_constants = + 'COMPONENT_TOKEN_LINK_KIND ' + + 'DOCUMENT_LINK_KIND ' + + 'EDOCUMENT_LINK_KIND ' + + 'FOLDER_LINK_KIND ' + + 'JOB_LINK_KIND ' + + 'REFERENCE_LINK_KIND ' + + 'TASK_LINK_KIND '; + + // Lock type + const lock_type_constants = + 'COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE '; + + // Monitor block properties + const monitor_block_properties_constants = + 'MONITOR_BLOCK_AFTER_FINISH_EVENT ' + + 'MONITOR_BLOCK_BEFORE_START_EVENT ' + + 'MONITOR_BLOCK_DEADLINE_PROPERTY ' + + 'MONITOR_BLOCK_INTERVAL_PROPERTY ' + + 'MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY ' + + 'MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY ' + + 'MONITOR_BLOCK_NAME_PROPERTY ' + + 'MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY ' + + 'MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY '; + + // Notice block properties + const notice_block_properties_constants = + 'NOTICE_BLOCK_AFTER_FINISH_EVENT ' + + 'NOTICE_BLOCK_ATTACHMENT_PROPERTY ' + + 'NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY ' + + 'NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY ' + + 'NOTICE_BLOCK_BEFORE_START_EVENT ' + + 'NOTICE_BLOCK_CREATED_NOTICES_PROPERTY ' + + 'NOTICE_BLOCK_DEADLINE_PROPERTY ' + + 'NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY ' + + 'NOTICE_BLOCK_NAME_PROPERTY ' + + 'NOTICE_BLOCK_NOTICE_TEXT_PROPERTY ' + + 'NOTICE_BLOCK_PERFORMER_PROPERTY ' + + 'NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY ' + + 'NOTICE_BLOCK_SUBJECT_PROPERTY '; + + // Object events + const object_events_constants = + 'dseAfterCancel ' + + 'dseAfterClose ' + + 'dseAfterDelete ' + + 'dseAfterDeleteOutOfTransaction ' + + 'dseAfterInsert ' + + 'dseAfterOpen ' + + 'dseAfterScroll ' + + 'dseAfterUpdate ' + + 'dseAfterUpdateOutOfTransaction ' + + 'dseBeforeCancel ' + + 'dseBeforeClose ' + + 'dseBeforeDelete ' + + 'dseBeforeDetailUpdate ' + + 'dseBeforeInsert ' + + 'dseBeforeOpen ' + + 'dseBeforeUpdate ' + + 'dseOnAnyRequisiteChange ' + + 'dseOnCloseRecord ' + + 'dseOnDeleteError ' + + 'dseOnOpenRecord ' + + 'dseOnPrepareUpdate ' + + 'dseOnUpdateError ' + + 'dseOnUpdateRatifiedRecord ' + + 'dseOnValidDelete ' + + 'dseOnValidUpdate ' + + 'reOnChange ' + + 'reOnChangeValues ' + + 'SELECTION_BEGIN_ROUTE_EVENT ' + + 'SELECTION_END_ROUTE_EVENT '; + + // Object params + const object_params_constants = + 'CURRENT_PERIOD_IS_REQUIRED ' + + 'PREVIOUS_CARD_TYPE_NAME ' + + 'SHOW_RECORD_PROPERTIES_FORM '; + + // Other + const other_constants = + 'ACCESS_RIGHTS_SETTING_DIALOG_CODE ' + + 'ADMINISTRATOR_USER_CODE ' + + 'ANALYTIC_REPORT_TYPE ' + + 'asrtHideLocal ' + + 'asrtHideRemote ' + + 'CALCULATED_ROLE_TYPE_CODE ' + + 'COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE ' + + 'DCTS_TEST_PROTOCOLS_FOLDER_PATH ' + + 'E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED ' + + 'E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER ' + + 'E_EDOC_VERSION_ALREDY_SIGNED ' + + 'E_EDOC_VERSION_ALREDY_SIGNED_BY_USER ' + + 'EDOC_TYPES_CODE_REQUISITE_FIELD_NAME ' + + 'EDOCUMENTS_ALIAS_NAME ' + + 'FILES_FOLDER_PATH ' + + 'FILTER_OPERANDS_DELIMITER ' + + 'FILTER_OPERATIONS_DELIMITER ' + + 'FORMCARD_NAME ' + + 'FORMLIST_NAME ' + + 'GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE ' + + 'GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE ' + + 'INTEGRATED_REPORT_TYPE ' + + 'IS_BUILDER_APPLICATION_ROLE ' + + 'IS_BUILDER_APPLICATION_ROLE2 ' + + 'IS_BUILDER_USERS ' + + 'ISBSYSDEV ' + + 'LOG_FOLDER_PATH ' + + 'mbCancel ' + + 'mbNo ' + + 'mbNoToAll ' + + 'mbOK ' + + 'mbYes ' + + 'mbYesToAll ' + + 'MEMORY_DATASET_DESRIPTIONS_FILENAME ' + + 'mrNo ' + + 'mrNoToAll ' + + 'mrYes ' + + 'mrYesToAll ' + + 'MULTIPLE_SELECT_DIALOG_CODE ' + + 'NONOPERATING_RECORD_FLAG_FEMININE ' + + 'NONOPERATING_RECORD_FLAG_MASCULINE ' + + 'OPERATING_RECORD_FLAG_FEMININE ' + + 'OPERATING_RECORD_FLAG_MASCULINE ' + + 'PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE ' + + 'PROGRAM_INITIATED_LOOKUP_ACTION ' + + 'ratDelete ' + + 'ratEdit ' + + 'ratInsert ' + + 'REPORT_TYPE ' + + 'REQUIRED_PICK_VALUES_VARIABLE ' + + 'rmCard ' + + 'rmList ' + + 'SBRTE_PROGID_DEV ' + + 'SBRTE_PROGID_RELEASE ' + + 'STATIC_ROLE_TYPE_CODE ' + + 'SUPPRESS_EMPTY_TEMPLATE_CREATION ' + + 'SYSTEM_USER_CODE ' + + 'UPDATE_DIALOG_DATASET ' + + 'USED_IN_OBJECT_HINT_PARAM ' + + 'USER_INITIATED_LOOKUP_ACTION ' + + 'USER_NAME_FORMAT ' + + 'USER_SELECTION_RESTRICTIONS ' + + 'WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ' + + 'ELS_SUBTYPE_CONTROL_NAME ' + + 'ELS_FOLDER_KIND_CONTROL_NAME ' + + 'REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME '; + + // Privileges + const privileges_constants = + 'PRIVILEGE_COMPONENT_FULL_ACCESS ' + + 'PRIVILEGE_DEVELOPMENT_EXPORT ' + + 'PRIVILEGE_DEVELOPMENT_IMPORT ' + + 'PRIVILEGE_DOCUMENT_DELETE ' + + 'PRIVILEGE_ESD ' + + 'PRIVILEGE_FOLDER_DELETE ' + + 'PRIVILEGE_MANAGE_ACCESS_RIGHTS ' + + 'PRIVILEGE_MANAGE_REPLICATION ' + + 'PRIVILEGE_MANAGE_SESSION_SERVER ' + + 'PRIVILEGE_OBJECT_FULL_ACCESS ' + + 'PRIVILEGE_OBJECT_VIEW ' + + 'PRIVILEGE_RESERVE_LICENSE ' + + 'PRIVILEGE_SYSTEM_CUSTOMIZE ' + + 'PRIVILEGE_SYSTEM_DEVELOP ' + + 'PRIVILEGE_SYSTEM_INSTALL ' + + 'PRIVILEGE_TASK_DELETE ' + + 'PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE ' + + 'PRIVILEGES_PSEUDOREFERENCE_CODE '; + + // Pseudoreference code + const pseudoreference_code_constants = + 'ACCESS_TYPES_PSEUDOREFERENCE_CODE ' + + 'ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ' + + 'ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ' + + 'ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE ' + + 'AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE ' + + 'COMPONENTS_PSEUDOREFERENCE_CODE ' + + 'FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE ' + + 'GROUPS_PSEUDOREFERENCE_CODE ' + + 'RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE ' + + 'REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE ' + + 'REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE ' + + 'REFTYPES_PSEUDOREFERENCE_CODE ' + + 'REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE ' + + 'SEND_PROTOCOL_PSEUDOREFERENCE_CODE ' + + 'SUBSTITUTES_PSEUDOREFERENCE_CODE ' + + 'SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE ' + + 'UNITS_PSEUDOREFERENCE_CODE ' + + 'USERS_PSEUDOREFERENCE_CODE ' + + 'VIEWERS_PSEUDOREFERENCE_CODE '; + + // Requisite ISBCertificateType values + const requisite_ISBCertificateType_values_constants = + 'CERTIFICATE_TYPE_ENCRYPT ' + + 'CERTIFICATE_TYPE_SIGN ' + + 'CERTIFICATE_TYPE_SIGN_AND_ENCRYPT '; + + // Requisite ISBEDocStorageType values + const requisite_ISBEDocStorageType_values_constants = + 'STORAGE_TYPE_FILE ' + + 'STORAGE_TYPE_NAS_CIFS ' + + 'STORAGE_TYPE_SAPERION ' + + 'STORAGE_TYPE_SQL_SERVER '; + + // Requisite CompType2 values + const requisite_compType2_values_constants = + 'COMPTYPE2_REQUISITE_DOCUMENTS_VALUE ' + + 'COMPTYPE2_REQUISITE_TASKS_VALUE ' + + 'COMPTYPE2_REQUISITE_FOLDERS_VALUE ' + + 'COMPTYPE2_REQUISITE_REFERENCES_VALUE '; + + // Requisite name + const requisite_name_constants = + 'SYSREQ_CODE ' + + 'SYSREQ_COMPTYPE2 ' + + 'SYSREQ_CONST_AVAILABLE_FOR_WEB ' + + 'SYSREQ_CONST_COMMON_CODE ' + + 'SYSREQ_CONST_COMMON_VALUE ' + + 'SYSREQ_CONST_FIRM_CODE ' + + 'SYSREQ_CONST_FIRM_STATUS ' + + 'SYSREQ_CONST_FIRM_VALUE ' + + 'SYSREQ_CONST_SERVER_STATUS ' + + 'SYSREQ_CONTENTS ' + + 'SYSREQ_DATE_OPEN ' + + 'SYSREQ_DATE_CLOSE ' + + 'SYSREQ_DESCRIPTION ' + + 'SYSREQ_DESCRIPTION_LOCALIZE_ID ' + + 'SYSREQ_DOUBLE ' + + 'SYSREQ_EDOC_ACCESS_TYPE ' + + 'SYSREQ_EDOC_AUTHOR ' + + 'SYSREQ_EDOC_CREATED ' + + 'SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE ' + + 'SYSREQ_EDOC_EDITOR ' + + 'SYSREQ_EDOC_ENCODE_TYPE ' + + 'SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME ' + + 'SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION ' + + 'SYSREQ_EDOC_EXPORT_DATE ' + + 'SYSREQ_EDOC_EXPORTER ' + + 'SYSREQ_EDOC_KIND ' + + 'SYSREQ_EDOC_LIFE_STAGE_NAME ' + + 'SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE ' + + 'SYSREQ_EDOC_MODIFIED ' + + 'SYSREQ_EDOC_NAME ' + + 'SYSREQ_EDOC_NOTE ' + + 'SYSREQ_EDOC_QUALIFIED_ID ' + + 'SYSREQ_EDOC_SESSION_KEY ' + + 'SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME ' + + 'SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION ' + + 'SYSREQ_EDOC_SIGNATURE_TYPE ' + + 'SYSREQ_EDOC_SIGNED ' + + 'SYSREQ_EDOC_STORAGE ' + + 'SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE ' + + 'SYSREQ_EDOC_STORAGES_CHECK_RIGHTS ' + + 'SYSREQ_EDOC_STORAGES_COMPUTER_NAME ' + + 'SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE ' + + 'SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE ' + + 'SYSREQ_EDOC_STORAGES_FUNCTION ' + + 'SYSREQ_EDOC_STORAGES_INITIALIZED ' + + 'SYSREQ_EDOC_STORAGES_LOCAL_PATH ' + + 'SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME ' + + 'SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT ' + + 'SYSREQ_EDOC_STORAGES_SERVER_NAME ' + + 'SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME ' + + 'SYSREQ_EDOC_STORAGES_TYPE ' + + 'SYSREQ_EDOC_TEXT_MODIFIED ' + + 'SYSREQ_EDOC_TYPE_ACT_CODE ' + + 'SYSREQ_EDOC_TYPE_ACT_DESCRIPTION ' + + 'SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID ' + + 'SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE ' + + 'SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS ' + + 'SYSREQ_EDOC_TYPE_ACT_SECTION ' + + 'SYSREQ_EDOC_TYPE_ADD_PARAMS ' + + 'SYSREQ_EDOC_TYPE_COMMENT ' + + 'SYSREQ_EDOC_TYPE_EVENT_TEXT ' + + 'SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR ' + + 'SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID ' + + 'SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID ' + + 'SYSREQ_EDOC_TYPE_NUMERATION_METHOD ' + + 'SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE ' + + 'SYSREQ_EDOC_TYPE_REQ_CODE ' + + 'SYSREQ_EDOC_TYPE_REQ_DESCRIPTION ' + + 'SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID ' + + 'SYSREQ_EDOC_TYPE_REQ_IS_LEADING ' + + 'SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED ' + + 'SYSREQ_EDOC_TYPE_REQ_NUMBER ' + + 'SYSREQ_EDOC_TYPE_REQ_ON_CHANGE ' + + 'SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS ' + + 'SYSREQ_EDOC_TYPE_REQ_ON_SELECT ' + + 'SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND ' + + 'SYSREQ_EDOC_TYPE_REQ_SECTION ' + + 'SYSREQ_EDOC_TYPE_VIEW_CARD ' + + 'SYSREQ_EDOC_TYPE_VIEW_CODE ' + + 'SYSREQ_EDOC_TYPE_VIEW_COMMENT ' + + 'SYSREQ_EDOC_TYPE_VIEW_IS_MAIN ' + + 'SYSREQ_EDOC_TYPE_VIEW_NAME ' + + 'SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID ' + + 'SYSREQ_EDOC_VERSION_AUTHOR ' + + 'SYSREQ_EDOC_VERSION_CRC ' + + 'SYSREQ_EDOC_VERSION_DATA ' + + 'SYSREQ_EDOC_VERSION_EDITOR ' + + 'SYSREQ_EDOC_VERSION_EXPORT_DATE ' + + 'SYSREQ_EDOC_VERSION_EXPORTER ' + + 'SYSREQ_EDOC_VERSION_HIDDEN ' + + 'SYSREQ_EDOC_VERSION_LIFE_STAGE ' + + 'SYSREQ_EDOC_VERSION_MODIFIED ' + + 'SYSREQ_EDOC_VERSION_NOTE ' + + 'SYSREQ_EDOC_VERSION_SIGNATURE_TYPE ' + + 'SYSREQ_EDOC_VERSION_SIGNED ' + + 'SYSREQ_EDOC_VERSION_SIZE ' + + 'SYSREQ_EDOC_VERSION_SOURCE ' + + 'SYSREQ_EDOC_VERSION_TEXT_MODIFIED ' + + 'SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE ' + + 'SYSREQ_FOLDER_KIND ' + + 'SYSREQ_FUNC_CATEGORY ' + + 'SYSREQ_FUNC_COMMENT ' + + 'SYSREQ_FUNC_GROUP ' + + 'SYSREQ_FUNC_GROUP_COMMENT ' + + 'SYSREQ_FUNC_GROUP_NUMBER ' + + 'SYSREQ_FUNC_HELP ' + + 'SYSREQ_FUNC_PARAM_DEF_VALUE ' + + 'SYSREQ_FUNC_PARAM_IDENT ' + + 'SYSREQ_FUNC_PARAM_NUMBER ' + + 'SYSREQ_FUNC_PARAM_TYPE ' + + 'SYSREQ_FUNC_TEXT ' + + 'SYSREQ_GROUP_CATEGORY ' + + 'SYSREQ_ID ' + + 'SYSREQ_LAST_UPDATE ' + + 'SYSREQ_LEADER_REFERENCE ' + + 'SYSREQ_LINE_NUMBER ' + + 'SYSREQ_MAIN_RECORD_ID ' + + 'SYSREQ_NAME ' + + 'SYSREQ_NAME_LOCALIZE_ID ' + + 'SYSREQ_NOTE ' + + 'SYSREQ_ORIGINAL_RECORD ' + + 'SYSREQ_OUR_FIRM ' + + 'SYSREQ_PROFILING_SETTINGS_BATCH_LOGING ' + + 'SYSREQ_PROFILING_SETTINGS_BATCH_SIZE ' + + 'SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED ' + + 'SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED ' + + 'SYSREQ_PROFILING_SETTINGS_START_LOGGED ' + + 'SYSREQ_RECORD_STATUS ' + + 'SYSREQ_REF_REQ_FIELD_NAME ' + + 'SYSREQ_REF_REQ_FORMAT ' + + 'SYSREQ_REF_REQ_GENERATED ' + + 'SYSREQ_REF_REQ_LENGTH ' + + 'SYSREQ_REF_REQ_PRECISION ' + + 'SYSREQ_REF_REQ_REFERENCE ' + + 'SYSREQ_REF_REQ_SECTION ' + + 'SYSREQ_REF_REQ_STORED ' + + 'SYSREQ_REF_REQ_TOKENS ' + + 'SYSREQ_REF_REQ_TYPE ' + + 'SYSREQ_REF_REQ_VIEW ' + + 'SYSREQ_REF_TYPE_ACT_CODE ' + + 'SYSREQ_REF_TYPE_ACT_DESCRIPTION ' + + 'SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID ' + + 'SYSREQ_REF_TYPE_ACT_ON_EXECUTE ' + + 'SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS ' + + 'SYSREQ_REF_TYPE_ACT_SECTION ' + + 'SYSREQ_REF_TYPE_ADD_PARAMS ' + + 'SYSREQ_REF_TYPE_COMMENT ' + + 'SYSREQ_REF_TYPE_COMMON_SETTINGS ' + + 'SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME ' + + 'SYSREQ_REF_TYPE_EVENT_TEXT ' + + 'SYSREQ_REF_TYPE_MAIN_LEADING_REF ' + + 'SYSREQ_REF_TYPE_NAME_IN_SINGULAR ' + + 'SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID ' + + 'SYSREQ_REF_TYPE_NAME_LOCALIZE_ID ' + + 'SYSREQ_REF_TYPE_NUMERATION_METHOD ' + + 'SYSREQ_REF_TYPE_REQ_CODE ' + + 'SYSREQ_REF_TYPE_REQ_DESCRIPTION ' + + 'SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID ' + + 'SYSREQ_REF_TYPE_REQ_IS_CONTROL ' + + 'SYSREQ_REF_TYPE_REQ_IS_FILTER ' + + 'SYSREQ_REF_TYPE_REQ_IS_LEADING ' + + 'SYSREQ_REF_TYPE_REQ_IS_REQUIRED ' + + 'SYSREQ_REF_TYPE_REQ_NUMBER ' + + 'SYSREQ_REF_TYPE_REQ_ON_CHANGE ' + + 'SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS ' + + 'SYSREQ_REF_TYPE_REQ_ON_SELECT ' + + 'SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND ' + + 'SYSREQ_REF_TYPE_REQ_SECTION ' + + 'SYSREQ_REF_TYPE_VIEW_CARD ' + + 'SYSREQ_REF_TYPE_VIEW_CODE ' + + 'SYSREQ_REF_TYPE_VIEW_COMMENT ' + + 'SYSREQ_REF_TYPE_VIEW_IS_MAIN ' + + 'SYSREQ_REF_TYPE_VIEW_NAME ' + + 'SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID ' + + 'SYSREQ_REFERENCE_TYPE_ID ' + + 'SYSREQ_STATE ' + + 'SYSREQ_STATЕ ' + + 'SYSREQ_SYSTEM_SETTINGS_VALUE ' + + 'SYSREQ_TYPE ' + + 'SYSREQ_UNIT ' + + 'SYSREQ_UNIT_ID ' + + 'SYSREQ_USER_GROUPS_GROUP_FULL_NAME ' + + 'SYSREQ_USER_GROUPS_GROUP_NAME ' + + 'SYSREQ_USER_GROUPS_GROUP_SERVER_NAME ' + + 'SYSREQ_USERS_ACCESS_RIGHTS ' + + 'SYSREQ_USERS_AUTHENTICATION ' + + 'SYSREQ_USERS_CATEGORY ' + + 'SYSREQ_USERS_COMPONENT ' + + 'SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC ' + + 'SYSREQ_USERS_DOMAIN ' + + 'SYSREQ_USERS_FULL_USER_NAME ' + + 'SYSREQ_USERS_GROUP ' + + 'SYSREQ_USERS_IS_MAIN_SERVER ' + + 'SYSREQ_USERS_LOGIN ' + + 'SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC ' + + 'SYSREQ_USERS_STATUS ' + + 'SYSREQ_USERS_USER_CERTIFICATE ' + + 'SYSREQ_USERS_USER_CERTIFICATE_INFO ' + + 'SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME ' + + 'SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION ' + + 'SYSREQ_USERS_USER_CERTIFICATE_STATE ' + + 'SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME ' + + 'SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT ' + + 'SYSREQ_USERS_USER_DEFAULT_CERTIFICATE ' + + 'SYSREQ_USERS_USER_DESCRIPTION ' + + 'SYSREQ_USERS_USER_GLOBAL_NAME ' + + 'SYSREQ_USERS_USER_LOGIN ' + + 'SYSREQ_USERS_USER_MAIN_SERVER ' + + 'SYSREQ_USERS_USER_TYPE ' + + 'SYSREQ_WORK_RULES_FOLDER_ID '; + + // Result + const result_constants = 'RESULT_VAR_NAME RESULT_VAR_NAME_ENG '; + + // Rule identification + const rule_identification_constants = + 'AUTO_NUMERATION_RULE_ID ' + + 'CANT_CHANGE_ID_REQUISITE_RULE_ID ' + + 'CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID ' + + 'CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID ' + + 'CHECK_CODE_REQUISITE_RULE_ID ' + + 'CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID ' + + 'CHECK_FILTRATER_CHANGES_RULE_ID ' + + 'CHECK_RECORD_INTERVAL_RULE_ID ' + + 'CHECK_REFERENCE_INTERVAL_RULE_ID ' + + 'CHECK_REQUIRED_DATA_FULLNESS_RULE_ID ' + + 'CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID ' + + 'MAKE_RECORD_UNRATIFIED_RULE_ID ' + + 'RESTORE_AUTO_NUMERATION_RULE_ID ' + + 'SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID ' + + 'SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID ' + + 'SET_IDSPS_VALUE_RULE_ID ' + + 'SET_NEXT_CODE_VALUE_RULE_ID ' + + 'SET_OURFIRM_BOUNDS_RULE_ID ' + + 'SET_OURFIRM_REQUISITE_RULE_ID '; + + // Script block properties + const script_block_properties_constants = + 'SCRIPT_BLOCK_AFTER_FINISH_EVENT ' + + 'SCRIPT_BLOCK_BEFORE_START_EVENT ' + + 'SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY ' + + 'SCRIPT_BLOCK_NAME_PROPERTY ' + + 'SCRIPT_BLOCK_SCRIPT_PROPERTY '; + + // Subtask block properties + const subtask_block_properties_constants = + 'SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY ' + + 'SUBTASK_BLOCK_AFTER_FINISH_EVENT ' + + 'SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT ' + + 'SUBTASK_BLOCK_ATTACHMENTS_PROPERTY ' + + 'SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY ' + + 'SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY ' + + 'SUBTASK_BLOCK_BEFORE_START_EVENT ' + + 'SUBTASK_BLOCK_CREATED_TASK_PROPERTY ' + + 'SUBTASK_BLOCK_CREATION_EVENT ' + + 'SUBTASK_BLOCK_DEADLINE_PROPERTY ' + + 'SUBTASK_BLOCK_IMPORTANCE_PROPERTY ' + + 'SUBTASK_BLOCK_INITIATOR_PROPERTY ' + + 'SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY ' + + 'SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY ' + + 'SUBTASK_BLOCK_JOBS_TYPE_PROPERTY ' + + 'SUBTASK_BLOCK_NAME_PROPERTY ' + + 'SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY ' + + 'SUBTASK_BLOCK_PERFORMERS_PROPERTY ' + + 'SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY ' + + 'SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY ' + + 'SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY ' + + 'SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY ' + + 'SUBTASK_BLOCK_START_EVENT ' + + 'SUBTASK_BLOCK_STEP_CONTROL_PROPERTY ' + + 'SUBTASK_BLOCK_SUBJECT_PROPERTY ' + + 'SUBTASK_BLOCK_TASK_CONTROL_PROPERTY ' + + 'SUBTASK_BLOCK_TEXT_PROPERTY ' + + 'SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY ' + + 'SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY ' + + 'SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY '; + + // System component + const system_component_constants = + 'SYSCOMP_CONTROL_JOBS ' + + 'SYSCOMP_FOLDERS ' + + 'SYSCOMP_JOBS ' + + 'SYSCOMP_NOTICES ' + + 'SYSCOMP_TASKS '; + + // System dialogs + const system_dialogs_constants = + 'SYSDLG_CREATE_EDOCUMENT ' + + 'SYSDLG_CREATE_EDOCUMENT_VERSION ' + + 'SYSDLG_CURRENT_PERIOD ' + + 'SYSDLG_EDIT_FUNCTION_HELP ' + + 'SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE ' + + 'SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS ' + + 'SYSDLG_EXPORT_SINGLE_EDOCUMENT ' + + 'SYSDLG_IMPORT_EDOCUMENT ' + + 'SYSDLG_MULTIPLE_SELECT ' + + 'SYSDLG_SETUP_ACCESS_RIGHTS ' + + 'SYSDLG_SETUP_DEFAULT_RIGHTS ' + + 'SYSDLG_SETUP_FILTER_CONDITION ' + + 'SYSDLG_SETUP_SIGN_RIGHTS ' + + 'SYSDLG_SETUP_TASK_OBSERVERS ' + + 'SYSDLG_SETUP_TASK_ROUTE ' + + 'SYSDLG_SETUP_USERS_LIST ' + + 'SYSDLG_SIGN_EDOCUMENT ' + + 'SYSDLG_SIGN_MULTIPLE_EDOCUMENTS '; + + // System reference names + const system_reference_names_constants = + 'SYSREF_ACCESS_RIGHTS_TYPES ' + + 'SYSREF_ADMINISTRATION_HISTORY ' + + 'SYSREF_ALL_AVAILABLE_COMPONENTS ' + + 'SYSREF_ALL_AVAILABLE_PRIVILEGES ' + + 'SYSREF_ALL_REPLICATING_COMPONENTS ' + + 'SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS ' + + 'SYSREF_CALENDAR_EVENTS ' + + 'SYSREF_COMPONENT_TOKEN_HISTORY ' + + 'SYSREF_COMPONENT_TOKENS ' + + 'SYSREF_COMPONENTS ' + + 'SYSREF_CONSTANTS ' + + 'SYSREF_DATA_RECEIVE_PROTOCOL ' + + 'SYSREF_DATA_SEND_PROTOCOL ' + + 'SYSREF_DIALOGS ' + + 'SYSREF_DIALOGS_REQUISITES ' + + 'SYSREF_EDITORS ' + + 'SYSREF_EDOC_CARDS ' + + 'SYSREF_EDOC_TYPES ' + + 'SYSREF_EDOCUMENT_CARD_REQUISITES ' + + 'SYSREF_EDOCUMENT_CARD_TYPES ' + + 'SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE ' + + 'SYSREF_EDOCUMENT_CARDS ' + + 'SYSREF_EDOCUMENT_HISTORY ' + + 'SYSREF_EDOCUMENT_KINDS ' + + 'SYSREF_EDOCUMENT_REQUISITES ' + + 'SYSREF_EDOCUMENT_SIGNATURES ' + + 'SYSREF_EDOCUMENT_TEMPLATES ' + + 'SYSREF_EDOCUMENT_TEXT_STORAGES ' + + 'SYSREF_EDOCUMENT_VIEWS ' + + 'SYSREF_FILTERER_SETUP_CONFLICTS ' + + 'SYSREF_FILTRATER_SETTING_CONFLICTS ' + + 'SYSREF_FOLDER_HISTORY ' + + 'SYSREF_FOLDERS ' + + 'SYSREF_FUNCTION_GROUPS ' + + 'SYSREF_FUNCTION_PARAMS ' + + 'SYSREF_FUNCTIONS ' + + 'SYSREF_JOB_HISTORY ' + + 'SYSREF_LINKS ' + + 'SYSREF_LOCALIZATION_DICTIONARY ' + + 'SYSREF_LOCALIZATION_LANGUAGES ' + + 'SYSREF_MODULES ' + + 'SYSREF_PRIVILEGES ' + + 'SYSREF_RECORD_HISTORY ' + + 'SYSREF_REFERENCE_REQUISITES ' + + 'SYSREF_REFERENCE_TYPE_VIEWS ' + + 'SYSREF_REFERENCE_TYPES ' + + 'SYSREF_REFERENCES ' + + 'SYSREF_REFERENCES_REQUISITES ' + + 'SYSREF_REMOTE_SERVERS ' + + 'SYSREF_REPLICATION_SESSIONS_LOG ' + + 'SYSREF_REPLICATION_SESSIONS_PROTOCOL ' + + 'SYSREF_REPORTS ' + + 'SYSREF_ROLES ' + + 'SYSREF_ROUTE_BLOCK_GROUPS ' + + 'SYSREF_ROUTE_BLOCKS ' + + 'SYSREF_SCRIPTS ' + + 'SYSREF_SEARCHES ' + + 'SYSREF_SERVER_EVENTS ' + + 'SYSREF_SERVER_EVENTS_HISTORY ' + + 'SYSREF_STANDARD_ROUTE_GROUPS ' + + 'SYSREF_STANDARD_ROUTES ' + + 'SYSREF_STATUSES ' + + 'SYSREF_SYSTEM_SETTINGS ' + + 'SYSREF_TASK_HISTORY ' + + 'SYSREF_TASK_KIND_GROUPS ' + + 'SYSREF_TASK_KINDS ' + + 'SYSREF_TASK_RIGHTS ' + + 'SYSREF_TASK_SIGNATURES ' + + 'SYSREF_TASKS ' + + 'SYSREF_UNITS ' + + 'SYSREF_USER_GROUPS ' + + 'SYSREF_USER_GROUPS_REFERENCE ' + + 'SYSREF_USER_SUBSTITUTION ' + + 'SYSREF_USERS ' + + 'SYSREF_USERS_REFERENCE ' + + 'SYSREF_VIEWERS ' + + 'SYSREF_WORKING_TIME_CALENDARS '; + + // Table name + const table_name_constants = + 'ACCESS_RIGHTS_TABLE_NAME ' + + 'EDMS_ACCESS_TABLE_NAME ' + + 'EDOC_TYPES_TABLE_NAME '; + + // Test + const test_constants = + 'TEST_DEV_DB_NAME ' + + 'TEST_DEV_SYSTEM_CODE ' + + 'TEST_EDMS_DB_NAME ' + + 'TEST_EDMS_MAIN_CODE ' + + 'TEST_EDMS_MAIN_DB_NAME ' + + 'TEST_EDMS_SECOND_CODE ' + + 'TEST_EDMS_SECOND_DB_NAME ' + + 'TEST_EDMS_SYSTEM_CODE ' + + 'TEST_ISB5_MAIN_CODE ' + + 'TEST_ISB5_SECOND_CODE ' + + 'TEST_SQL_SERVER_2005_NAME ' + + 'TEST_SQL_SERVER_NAME '; + + // Using the dialog windows + const using_the_dialog_windows_constants = + 'ATTENTION_CAPTION ' + + 'cbsCommandLinks ' + + 'cbsDefault ' + + 'CONFIRMATION_CAPTION ' + + 'ERROR_CAPTION ' + + 'INFORMATION_CAPTION ' + + 'mrCancel ' + + 'mrOk '; + + // Using the document + const using_the_document_constants = + 'EDOC_VERSION_ACTIVE_STAGE_CODE ' + + 'EDOC_VERSION_DESIGN_STAGE_CODE ' + + 'EDOC_VERSION_OBSOLETE_STAGE_CODE '; + + // Using the EA and encryption + const using_the_EA_and_encryption_constants = + 'cpDataEnciphermentEnabled ' + + 'cpDigitalSignatureEnabled ' + + 'cpID ' + + 'cpIssuer ' + + 'cpPluginVersion ' + + 'cpSerial ' + + 'cpSubjectName ' + + 'cpSubjSimpleName ' + + 'cpValidFromDate ' + + 'cpValidToDate '; + + // Using the ISBL-editor + const using_the_ISBL_editor_constants = + 'ISBL_SYNTAX ' + 'NO_SYNTAX ' + 'XML_SYNTAX '; + + // Wait block properties + const wait_block_properties_constants = + 'WAIT_BLOCK_AFTER_FINISH_EVENT ' + + 'WAIT_BLOCK_BEFORE_START_EVENT ' + + 'WAIT_BLOCK_DEADLINE_PROPERTY ' + + 'WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY ' + + 'WAIT_BLOCK_NAME_PROPERTY ' + + 'WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY '; + + // SYSRES Common + const sysres_common_constants = + 'SYSRES_COMMON ' + + 'SYSRES_CONST ' + + 'SYSRES_MBFUNC ' + + 'SYSRES_SBDATA ' + + 'SYSRES_SBGUI ' + + 'SYSRES_SBINTF ' + + 'SYSRES_SBREFDSC ' + + 'SYSRES_SQLERRORS ' + + 'SYSRES_SYSCOMP '; + + // Константы ==> built_in + const CONSTANTS = + sysres_constants + + base_constants + + base_group_name_constants + + decision_block_properties_constants + + file_extension_constants + + job_block_properties_constants + + language_code_constants + + launching_external_applications_constants + + link_kind_constants + + lock_type_constants + + monitor_block_properties_constants + + notice_block_properties_constants + + object_events_constants + + object_params_constants + + other_constants + + privileges_constants + + pseudoreference_code_constants + + requisite_ISBCertificateType_values_constants + + requisite_ISBEDocStorageType_values_constants + + requisite_compType2_values_constants + + requisite_name_constants + + result_constants + + rule_identification_constants + + script_block_properties_constants + + subtask_block_properties_constants + + system_component_constants + + system_dialogs_constants + + system_reference_names_constants + + table_name_constants + + test_constants + + using_the_dialog_windows_constants + + using_the_document_constants + + using_the_EA_and_encryption_constants + + using_the_ISBL_editor_constants + + wait_block_properties_constants + + sysres_common_constants; + + // enum TAccountType + const TAccountType = 'atUser atGroup atRole '; + + // enum TActionEnabledMode + const TActionEnabledMode = + 'aemEnabledAlways ' + + 'aemDisabledAlways ' + + 'aemEnabledOnBrowse ' + + 'aemEnabledOnEdit ' + + 'aemDisabledOnBrowseEmpty '; + + // enum TAddPosition + const TAddPosition = 'apBegin apEnd '; + + // enum TAlignment + const TAlignment = 'alLeft alRight '; + + // enum TAreaShowMode + const TAreaShowMode = + 'asmNever ' + + 'asmNoButCustomize ' + + 'asmAsLastTime ' + + 'asmYesButCustomize ' + + 'asmAlways '; + + // enum TCertificateInvalidationReason + const TCertificateInvalidationReason = 'cirCommon cirRevoked '; + + // enum TCertificateType + const TCertificateType = 'ctSignature ctEncode ctSignatureEncode '; + + // enum TCheckListBoxItemState + const TCheckListBoxItemState = 'clbUnchecked clbChecked clbGrayed '; + + // enum TCloseOnEsc + const TCloseOnEsc = 'ceISB ceAlways ceNever '; + + // enum TCompType + const TCompType = + 'ctDocument ' + + 'ctReference ' + + 'ctScript ' + + 'ctUnknown ' + + 'ctReport ' + + 'ctDialog ' + + 'ctFunction ' + + 'ctFolder ' + + 'ctEDocument ' + + 'ctTask ' + + 'ctJob ' + + 'ctNotice ' + + 'ctControlJob '; + + // enum TConditionFormat + const TConditionFormat = 'cfInternal cfDisplay '; + + // enum TConnectionIntent + const TConnectionIntent = 'ciUnspecified ciWrite ciRead '; + + // enum TContentKind + const TContentKind = + 'ckFolder ' + + 'ckEDocument ' + + 'ckTask ' + + 'ckJob ' + + 'ckComponentToken ' + + 'ckAny ' + + 'ckReference ' + + 'ckScript ' + + 'ckReport ' + + 'ckDialog '; + + // enum TControlType + const TControlType = + 'ctISBLEditor ' + + 'ctBevel ' + + 'ctButton ' + + 'ctCheckListBox ' + + 'ctComboBox ' + + 'ctComboEdit ' + + 'ctGrid ' + + 'ctDBCheckBox ' + + 'ctDBComboBox ' + + 'ctDBEdit ' + + 'ctDBEllipsis ' + + 'ctDBMemo ' + + 'ctDBNavigator ' + + 'ctDBRadioGroup ' + + 'ctDBStatusLabel ' + + 'ctEdit ' + + 'ctGroupBox ' + + 'ctInplaceHint ' + + 'ctMemo ' + + 'ctPanel ' + + 'ctListBox ' + + 'ctRadioButton ' + + 'ctRichEdit ' + + 'ctTabSheet ' + + 'ctWebBrowser ' + + 'ctImage ' + + 'ctHyperLink ' + + 'ctLabel ' + + 'ctDBMultiEllipsis ' + + 'ctRibbon ' + + 'ctRichView ' + + 'ctInnerPanel ' + + 'ctPanelGroup ' + + 'ctBitButton '; + + // enum TCriterionContentType + const TCriterionContentType = + 'cctDate ' + + 'cctInteger ' + + 'cctNumeric ' + + 'cctPick ' + + 'cctReference ' + + 'cctString ' + + 'cctText '; + + // enum TCultureType + const TCultureType = 'cltInternal cltPrimary cltGUI '; + + // enum TDataSetEventType + const TDataSetEventType = + 'dseBeforeOpen ' + + 'dseAfterOpen ' + + 'dseBeforeClose ' + + 'dseAfterClose ' + + 'dseOnValidDelete ' + + 'dseBeforeDelete ' + + 'dseAfterDelete ' + + 'dseAfterDeleteOutOfTransaction ' + + 'dseOnDeleteError ' + + 'dseBeforeInsert ' + + 'dseAfterInsert ' + + 'dseOnValidUpdate ' + + 'dseBeforeUpdate ' + + 'dseOnUpdateRatifiedRecord ' + + 'dseAfterUpdate ' + + 'dseAfterUpdateOutOfTransaction ' + + 'dseOnUpdateError ' + + 'dseAfterScroll ' + + 'dseOnOpenRecord ' + + 'dseOnCloseRecord ' + + 'dseBeforeCancel ' + + 'dseAfterCancel ' + + 'dseOnUpdateDeadlockError ' + + 'dseBeforeDetailUpdate ' + + 'dseOnPrepareUpdate ' + + 'dseOnAnyRequisiteChange '; + + // enum TDataSetState + const TDataSetState = 'dssEdit dssInsert dssBrowse dssInActive '; + + // enum TDateFormatType + const TDateFormatType = 'dftDate dftShortDate dftDateTime dftTimeStamp '; + + // enum TDateOffsetType + const TDateOffsetType = 'dotDays dotHours dotMinutes dotSeconds '; + + // enum TDateTimeKind + const TDateTimeKind = 'dtkndLocal dtkndUTC '; + + // enum TDeaAccessRights + const TDeaAccessRights = 'arNone arView arEdit arFull '; + + // enum TDocumentDefaultAction + const TDocumentDefaultAction = 'ddaView ddaEdit '; + + // enum TEditMode + const TEditMode = + 'emLock ' + + 'emEdit ' + + 'emSign ' + + 'emExportWithLock ' + + 'emImportWithUnlock ' + + 'emChangeVersionNote ' + + 'emOpenForModify ' + + 'emChangeLifeStage ' + + 'emDelete ' + + 'emCreateVersion ' + + 'emImport ' + + 'emUnlockExportedWithLock ' + + 'emStart ' + + 'emAbort ' + + 'emReInit ' + + 'emMarkAsReaded ' + + 'emMarkAsUnreaded ' + + 'emPerform ' + + 'emAccept ' + + 'emResume ' + + 'emChangeRights ' + + 'emEditRoute ' + + 'emEditObserver ' + + 'emRecoveryFromLocalCopy ' + + 'emChangeWorkAccessType ' + + 'emChangeEncodeTypeToCertificate ' + + 'emChangeEncodeTypeToPassword ' + + 'emChangeEncodeTypeToNone ' + + 'emChangeEncodeTypeToCertificatePassword ' + + 'emChangeStandardRoute ' + + 'emGetText ' + + 'emOpenForView ' + + 'emMoveToStorage ' + + 'emCreateObject ' + + 'emChangeVersionHidden ' + + 'emDeleteVersion ' + + 'emChangeLifeCycleStage ' + + 'emApprovingSign ' + + 'emExport ' + + 'emContinue ' + + 'emLockFromEdit ' + + 'emUnLockForEdit ' + + 'emLockForServer ' + + 'emUnlockFromServer ' + + 'emDelegateAccessRights ' + + 'emReEncode '; + + // enum TEditorCloseObservType + const TEditorCloseObservType = 'ecotFile ecotProcess '; + + // enum TEdmsApplicationAction + const TEdmsApplicationAction = 'eaGet eaCopy eaCreate eaCreateStandardRoute '; + + // enum TEDocumentLockType + const TEDocumentLockType = 'edltAll edltNothing edltQuery '; + + // enum TEDocumentStepShowMode + const TEDocumentStepShowMode = 'essmText essmCard '; + + // enum TEDocumentStepVersionType + const TEDocumentStepVersionType = 'esvtLast esvtLastActive esvtSpecified '; + + // enum TEDocumentStorageFunction + const TEDocumentStorageFunction = 'edsfExecutive edsfArchive '; + + // enum TEDocumentStorageType + const TEDocumentStorageType = 'edstSQLServer edstFile '; + + // enum TEDocumentVersionSourceType + const TEDocumentVersionSourceType = + 'edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile '; + + // enum TEDocumentVersionState + const TEDocumentVersionState = 'vsDefault vsDesign vsActive vsObsolete '; + + // enum TEncodeType + const TEncodeType = 'etNone etCertificate etPassword etCertificatePassword '; + + // enum TExceptionCategory + const TExceptionCategory = 'ecException ecWarning ecInformation '; + + // enum TExportedSignaturesType + const TExportedSignaturesType = 'estAll estApprovingOnly '; + + // enum TExportedVersionType + const TExportedVersionType = 'evtLast evtLastActive evtQuery '; + + // enum TFieldDataType + const TFieldDataType = + 'fdtString ' + + 'fdtNumeric ' + + 'fdtInteger ' + + 'fdtDate ' + + 'fdtText ' + + 'fdtUnknown ' + + 'fdtWideString ' + + 'fdtLargeInteger '; + + // enum TFolderType + const TFolderType = + 'ftInbox ' + + 'ftOutbox ' + + 'ftFavorites ' + + 'ftCommonFolder ' + + 'ftUserFolder ' + + 'ftComponents ' + + 'ftQuickLaunch ' + + 'ftShortcuts ' + + 'ftSearch '; + + // enum TGridRowHeight + const TGridRowHeight = 'grhAuto ' + 'grhX1 ' + 'grhX2 ' + 'grhX3 '; + + // enum THyperlinkType + const THyperlinkType = 'hltText ' + 'hltRTF ' + 'hltHTML '; + + // enum TImageFileFormat + const TImageFileFormat = + 'iffBMP ' + + 'iffJPEG ' + + 'iffMultiPageTIFF ' + + 'iffSinglePageTIFF ' + + 'iffTIFF ' + + 'iffPNG '; + + // enum TImageMode + const TImageMode = 'im8bGrayscale ' + 'im24bRGB ' + 'im1bMonochrome '; + + // enum TImageType + const TImageType = 'itBMP ' + 'itJPEG ' + 'itWMF ' + 'itPNG '; + + // enum TInplaceHintKind + const TInplaceHintKind = + 'ikhInformation ' + 'ikhWarning ' + 'ikhError ' + 'ikhNoIcon '; + + // enum TISBLContext + const TISBLContext = + 'icUnknown ' + + 'icScript ' + + 'icFunction ' + + 'icIntegratedReport ' + + 'icAnalyticReport ' + + 'icDataSetEventHandler ' + + 'icActionHandler ' + + 'icFormEventHandler ' + + 'icLookUpEventHandler ' + + 'icRequisiteChangeEventHandler ' + + 'icBeforeSearchEventHandler ' + + 'icRoleCalculation ' + + 'icSelectRouteEventHandler ' + + 'icBlockPropertyCalculation ' + + 'icBlockQueryParamsEventHandler ' + + 'icChangeSearchResultEventHandler ' + + 'icBlockEventHandler ' + + 'icSubTaskInitEventHandler ' + + 'icEDocDataSetEventHandler ' + + 'icEDocLookUpEventHandler ' + + 'icEDocActionHandler ' + + 'icEDocFormEventHandler ' + + 'icEDocRequisiteChangeEventHandler ' + + 'icStructuredConversionRule ' + + 'icStructuredConversionEventBefore ' + + 'icStructuredConversionEventAfter ' + + 'icWizardEventHandler ' + + 'icWizardFinishEventHandler ' + + 'icWizardStepEventHandler ' + + 'icWizardStepFinishEventHandler ' + + 'icWizardActionEnableEventHandler ' + + 'icWizardActionExecuteEventHandler ' + + 'icCreateJobsHandler ' + + 'icCreateNoticesHandler ' + + 'icBeforeLookUpEventHandler ' + + 'icAfterLookUpEventHandler ' + + 'icTaskAbortEventHandler ' + + 'icWorkflowBlockActionHandler ' + + 'icDialogDataSetEventHandler ' + + 'icDialogActionHandler ' + + 'icDialogLookUpEventHandler ' + + 'icDialogRequisiteChangeEventHandler ' + + 'icDialogFormEventHandler ' + + 'icDialogValidCloseEventHandler ' + + 'icBlockFormEventHandler ' + + 'icTaskFormEventHandler ' + + 'icReferenceMethod ' + + 'icEDocMethod ' + + 'icDialogMethod ' + + 'icProcessMessageHandler '; + + // enum TItemShow + const TItemShow = 'isShow ' + 'isHide ' + 'isByUserSettings '; + + // enum TJobKind + const TJobKind = 'jkJob ' + 'jkNotice ' + 'jkControlJob '; + + // enum TJoinType + const TJoinType = + 'jtInner ' + 'jtLeft ' + 'jtRight ' + 'jtFull ' + 'jtCross '; + + // enum TLabelPos + const TLabelPos = 'lbpAbove ' + 'lbpBelow ' + 'lbpLeft ' + 'lbpRight '; + + // enum TLicensingType + const TLicensingType = 'eltPerConnection ' + 'eltPerUser '; + + // enum TLifeCycleStageFontColor + const TLifeCycleStageFontColor = + 'sfcUndefined ' + + 'sfcBlack ' + + 'sfcGreen ' + + 'sfcRed ' + + 'sfcBlue ' + + 'sfcOrange ' + + 'sfcLilac '; + + // enum TLifeCycleStageFontStyle + const TLifeCycleStageFontStyle = + 'sfsItalic ' + 'sfsStrikeout ' + 'sfsNormal '; + + // enum TLockableDevelopmentComponentType + const TLockableDevelopmentComponentType = + 'ldctStandardRoute ' + + 'ldctWizard ' + + 'ldctScript ' + + 'ldctFunction ' + + 'ldctRouteBlock ' + + 'ldctIntegratedReport ' + + 'ldctAnalyticReport ' + + 'ldctReferenceType ' + + 'ldctEDocumentType ' + + 'ldctDialog ' + + 'ldctServerEvents '; + + // enum TMaxRecordCountRestrictionType + const TMaxRecordCountRestrictionType = + 'mrcrtNone ' + 'mrcrtUser ' + 'mrcrtMaximal ' + 'mrcrtCustom '; + + // enum TRangeValueType + const TRangeValueType = + 'vtEqual ' + 'vtGreaterOrEqual ' + 'vtLessOrEqual ' + 'vtRange '; + + // enum TRelativeDate + const TRelativeDate = + 'rdYesterday ' + + 'rdToday ' + + 'rdTomorrow ' + + 'rdThisWeek ' + + 'rdThisMonth ' + + 'rdThisYear ' + + 'rdNextMonth ' + + 'rdNextWeek ' + + 'rdLastWeek ' + + 'rdLastMonth '; + + // enum TReportDestination + const TReportDestination = 'rdWindow ' + 'rdFile ' + 'rdPrinter '; + + // enum TReqDataType + const TReqDataType = + 'rdtString ' + + 'rdtNumeric ' + + 'rdtInteger ' + + 'rdtDate ' + + 'rdtReference ' + + 'rdtAccount ' + + 'rdtText ' + + 'rdtPick ' + + 'rdtUnknown ' + + 'rdtLargeInteger ' + + 'rdtDocument '; + + // enum TRequisiteEventType + const TRequisiteEventType = 'reOnChange ' + 'reOnChangeValues '; + + // enum TSBTimeType + const TSBTimeType = 'ttGlobal ' + 'ttLocal ' + 'ttUser ' + 'ttSystem '; + + // enum TSearchShowMode + const TSearchShowMode = + 'ssmBrowse ' + 'ssmSelect ' + 'ssmMultiSelect ' + 'ssmBrowseModal '; + + // enum TSelectMode + const TSelectMode = 'smSelect ' + 'smLike ' + 'smCard '; + + // enum TSignatureType + const TSignatureType = 'stNone ' + 'stAuthenticating ' + 'stApproving '; + + // enum TSignerContentType + const TSignerContentType = 'sctString ' + 'sctStream '; + + // enum TStringsSortType + const TStringsSortType = 'sstAnsiSort ' + 'sstNaturalSort '; + + // enum TStringValueType + const TStringValueType = 'svtEqual ' + 'svtContain '; + + // enum TStructuredObjectAttributeType + const TStructuredObjectAttributeType = + 'soatString ' + + 'soatNumeric ' + + 'soatInteger ' + + 'soatDatetime ' + + 'soatReferenceRecord ' + + 'soatText ' + + 'soatPick ' + + 'soatBoolean ' + + 'soatEDocument ' + + 'soatAccount ' + + 'soatIntegerCollection ' + + 'soatNumericCollection ' + + 'soatStringCollection ' + + 'soatPickCollection ' + + 'soatDatetimeCollection ' + + 'soatBooleanCollection ' + + 'soatReferenceRecordCollection ' + + 'soatEDocumentCollection ' + + 'soatAccountCollection ' + + 'soatContents ' + + 'soatUnknown '; + + // enum TTaskAbortReason + const TTaskAbortReason = 'tarAbortByUser ' + 'tarAbortByWorkflowException '; + + // enum TTextValueType + const TTextValueType = 'tvtAllWords ' + 'tvtExactPhrase ' + 'tvtAnyWord '; + + // enum TUserObjectStatus + const TUserObjectStatus = + 'usNone ' + + 'usCompleted ' + + 'usRedSquare ' + + 'usBlueSquare ' + + 'usYellowSquare ' + + 'usGreenSquare ' + + 'usOrangeSquare ' + + 'usPurpleSquare ' + + 'usFollowUp '; + + // enum TUserType + const TUserType = + 'utUnknown ' + + 'utUser ' + + 'utDeveloper ' + + 'utAdministrator ' + + 'utSystemDeveloper ' + + 'utDisconnected '; + + // enum TValuesBuildType + const TValuesBuildType = + 'btAnd ' + 'btDetailAnd ' + 'btOr ' + 'btNotOr ' + 'btOnly '; + + // enum TViewMode + const TViewMode = 'vmView ' + 'vmSelect ' + 'vmNavigation '; + + // enum TViewSelectionMode + const TViewSelectionMode = + 'vsmSingle ' + 'vsmMultiple ' + 'vsmMultipleCheck ' + 'vsmNoSelection '; + + // enum TWizardActionType + const TWizardActionType = + 'wfatPrevious ' + 'wfatNext ' + 'wfatCancel ' + 'wfatFinish '; + + // enum TWizardFormElementProperty + const TWizardFormElementProperty = + 'wfepUndefined ' + + 'wfepText3 ' + + 'wfepText6 ' + + 'wfepText9 ' + + 'wfepSpinEdit ' + + 'wfepDropDown ' + + 'wfepRadioGroup ' + + 'wfepFlag ' + + 'wfepText12 ' + + 'wfepText15 ' + + 'wfepText18 ' + + 'wfepText21 ' + + 'wfepText24 ' + + 'wfepText27 ' + + 'wfepText30 ' + + 'wfepRadioGroupColumn1 ' + + 'wfepRadioGroupColumn2 ' + + 'wfepRadioGroupColumn3 '; + + // enum TWizardFormElementType + const TWizardFormElementType = + 'wfetQueryParameter ' + 'wfetText ' + 'wfetDelimiter ' + 'wfetLabel '; + + // enum TWizardParamType + const TWizardParamType = + 'wptString ' + + 'wptInteger ' + + 'wptNumeric ' + + 'wptBoolean ' + + 'wptDateTime ' + + 'wptPick ' + + 'wptText ' + + 'wptUser ' + + 'wptUserList ' + + 'wptEDocumentInfo ' + + 'wptEDocumentInfoList ' + + 'wptReferenceRecordInfo ' + + 'wptReferenceRecordInfoList ' + + 'wptFolderInfo ' + + 'wptTaskInfo ' + + 'wptContents ' + + 'wptFileName ' + + 'wptDate '; + + // enum TWizardStepResult + const TWizardStepResult = + 'wsrComplete ' + + 'wsrGoNext ' + + 'wsrGoPrevious ' + + 'wsrCustom ' + + 'wsrCancel ' + + 'wsrGoFinal '; + + // enum TWizardStepType + const TWizardStepType = + 'wstForm ' + + 'wstEDocument ' + + 'wstTaskCard ' + + 'wstReferenceRecordCard ' + + 'wstFinal '; + + // enum TWorkAccessType + const TWorkAccessType = 'waAll ' + 'waPerformers ' + 'waManual '; + + // enum TWorkflowBlockType + const TWorkflowBlockType = + 'wsbStart ' + + 'wsbFinish ' + + 'wsbNotice ' + + 'wsbStep ' + + 'wsbDecision ' + + 'wsbWait ' + + 'wsbMonitor ' + + 'wsbScript ' + + 'wsbConnector ' + + 'wsbSubTask ' + + 'wsbLifeCycleStage ' + + 'wsbPause '; + + // enum TWorkflowDataType + const TWorkflowDataType = + 'wdtInteger ' + + 'wdtFloat ' + + 'wdtString ' + + 'wdtPick ' + + 'wdtDateTime ' + + 'wdtBoolean ' + + 'wdtTask ' + + 'wdtJob ' + + 'wdtFolder ' + + 'wdtEDocument ' + + 'wdtReferenceRecord ' + + 'wdtUser ' + + 'wdtGroup ' + + 'wdtRole ' + + 'wdtIntegerCollection ' + + 'wdtFloatCollection ' + + 'wdtStringCollection ' + + 'wdtPickCollection ' + + 'wdtDateTimeCollection ' + + 'wdtBooleanCollection ' + + 'wdtTaskCollection ' + + 'wdtJobCollection ' + + 'wdtFolderCollection ' + + 'wdtEDocumentCollection ' + + 'wdtReferenceRecordCollection ' + + 'wdtUserCollection ' + + 'wdtGroupCollection ' + + 'wdtRoleCollection ' + + 'wdtContents ' + + 'wdtUserList ' + + 'wdtSearchDescription ' + + 'wdtDeadLine ' + + 'wdtPickSet ' + + 'wdtAccountCollection '; + + // enum TWorkImportance + const TWorkImportance = 'wiLow ' + 'wiNormal ' + 'wiHigh '; + + // enum TWorkRouteType + const TWorkRouteType = 'wrtSoft ' + 'wrtHard '; + + // enum TWorkState + const TWorkState = + 'wsInit ' + + 'wsRunning ' + + 'wsDone ' + + 'wsControlled ' + + 'wsAborted ' + + 'wsContinued '; + + // enum TWorkTextBuildingMode + const TWorkTextBuildingMode = + 'wtmFull ' + 'wtmFromCurrent ' + 'wtmOnlyCurrent '; + + // Перечисления + const ENUMS = + TAccountType + + TActionEnabledMode + + TAddPosition + + TAlignment + + TAreaShowMode + + TCertificateInvalidationReason + + TCertificateType + + TCheckListBoxItemState + + TCloseOnEsc + + TCompType + + TConditionFormat + + TConnectionIntent + + TContentKind + + TControlType + + TCriterionContentType + + TCultureType + + TDataSetEventType + + TDataSetState + + TDateFormatType + + TDateOffsetType + + TDateTimeKind + + TDeaAccessRights + + TDocumentDefaultAction + + TEditMode + + TEditorCloseObservType + + TEdmsApplicationAction + + TEDocumentLockType + + TEDocumentStepShowMode + + TEDocumentStepVersionType + + TEDocumentStorageFunction + + TEDocumentStorageType + + TEDocumentVersionSourceType + + TEDocumentVersionState + + TEncodeType + + TExceptionCategory + + TExportedSignaturesType + + TExportedVersionType + + TFieldDataType + + TFolderType + + TGridRowHeight + + THyperlinkType + + TImageFileFormat + + TImageMode + + TImageType + + TInplaceHintKind + + TISBLContext + + TItemShow + + TJobKind + + TJoinType + + TLabelPos + + TLicensingType + + TLifeCycleStageFontColor + + TLifeCycleStageFontStyle + + TLockableDevelopmentComponentType + + TMaxRecordCountRestrictionType + + TRangeValueType + + TRelativeDate + + TReportDestination + + TReqDataType + + TRequisiteEventType + + TSBTimeType + + TSearchShowMode + + TSelectMode + + TSignatureType + + TSignerContentType + + TStringsSortType + + TStringValueType + + TStructuredObjectAttributeType + + TTaskAbortReason + + TTextValueType + + TUserObjectStatus + + TUserType + + TValuesBuildType + + TViewMode + + TViewSelectionMode + + TWizardActionType + + TWizardFormElementProperty + + TWizardFormElementType + + TWizardParamType + + TWizardStepResult + + TWizardStepType + + TWorkAccessType + + TWorkflowBlockType + + TWorkflowDataType + + TWorkImportance + + TWorkRouteType + + TWorkState + + TWorkTextBuildingMode; + + // Системные функции ==> SYSFUNCTIONS + const system_functions = + 'AddSubString ' + + 'AdjustLineBreaks ' + + 'AmountInWords ' + + 'Analysis ' + + 'ArrayDimCount ' + + 'ArrayHighBound ' + + 'ArrayLowBound ' + + 'ArrayOf ' + + 'ArrayReDim ' + + 'Assert ' + + 'Assigned ' + + 'BeginOfMonth ' + + 'BeginOfPeriod ' + + 'BuildProfilingOperationAnalysis ' + + 'CallProcedure ' + + 'CanReadFile ' + + 'CArrayElement ' + + 'CDataSetRequisite ' + + 'ChangeDate ' + + 'ChangeReferenceDataset ' + + 'Char ' + + 'CharPos ' + + 'CheckParam ' + + 'CheckParamValue ' + + 'CompareStrings ' + + 'ConstantExists ' + + 'ControlState ' + + 'ConvertDateStr ' + + 'Copy ' + + 'CopyFile ' + + 'CreateArray ' + + 'CreateCachedReference ' + + 'CreateConnection ' + + 'CreateDialog ' + + 'CreateDualListDialog ' + + 'CreateEditor ' + + 'CreateException ' + + 'CreateFile ' + + 'CreateFolderDialog ' + + 'CreateInputDialog ' + + 'CreateLinkFile ' + + 'CreateList ' + + 'CreateLock ' + + 'CreateMemoryDataSet ' + + 'CreateObject ' + + 'CreateOpenDialog ' + + 'CreateProgress ' + + 'CreateQuery ' + + 'CreateReference ' + + 'CreateReport ' + + 'CreateSaveDialog ' + + 'CreateScript ' + + 'CreateSQLPivotFunction ' + + 'CreateStringList ' + + 'CreateTreeListSelectDialog ' + + 'CSelectSQL ' + + 'CSQL ' + + 'CSubString ' + + 'CurrentUserID ' + + 'CurrentUserName ' + + 'CurrentVersion ' + + 'DataSetLocateEx ' + + 'DateDiff ' + + 'DateTimeDiff ' + + 'DateToStr ' + + 'DayOfWeek ' + + 'DeleteFile ' + + 'DirectoryExists ' + + 'DisableCheckAccessRights ' + + 'DisableCheckFullShowingRestriction ' + + 'DisableMassTaskSendingRestrictions ' + + 'DropTable ' + + 'DupeString ' + + 'EditText ' + + 'EnableCheckAccessRights ' + + 'EnableCheckFullShowingRestriction ' + + 'EnableMassTaskSendingRestrictions ' + + 'EndOfMonth ' + + 'EndOfPeriod ' + + 'ExceptionExists ' + + 'ExceptionsOff ' + + 'ExceptionsOn ' + + 'Execute ' + + 'ExecuteProcess ' + + 'Exit ' + + 'ExpandEnvironmentVariables ' + + 'ExtractFileDrive ' + + 'ExtractFileExt ' + + 'ExtractFileName ' + + 'ExtractFilePath ' + + 'ExtractParams ' + + 'FileExists ' + + 'FileSize ' + + 'FindFile ' + + 'FindSubString ' + + 'FirmContext ' + + 'ForceDirectories ' + + 'Format ' + + 'FormatDate ' + + 'FormatNumeric ' + + 'FormatSQLDate ' + + 'FormatString ' + + 'FreeException ' + + 'GetComponent ' + + 'GetComponentLaunchParam ' + + 'GetConstant ' + + 'GetLastException ' + + 'GetReferenceRecord ' + + 'GetRefTypeByRefID ' + + 'GetTableID ' + + 'GetTempFolder ' + + 'IfThen ' + + 'In ' + + 'IndexOf ' + + 'InputDialog ' + + 'InputDialogEx ' + + 'InteractiveMode ' + + 'IsFileLocked ' + + 'IsGraphicFile ' + + 'IsNumeric ' + + 'Length ' + + 'LoadString ' + + 'LoadStringFmt ' + + 'LocalTimeToUTC ' + + 'LowerCase ' + + 'Max ' + + 'MessageBox ' + + 'MessageBoxEx ' + + 'MimeDecodeBinary ' + + 'MimeDecodeString ' + + 'MimeEncodeBinary ' + + 'MimeEncodeString ' + + 'Min ' + + 'MoneyInWords ' + + 'MoveFile ' + + 'NewID ' + + 'Now ' + + 'OpenFile ' + + 'Ord ' + + 'Precision ' + + 'Raise ' + + 'ReadCertificateFromFile ' + + 'ReadFile ' + + 'ReferenceCodeByID ' + + 'ReferenceNumber ' + + 'ReferenceRequisiteMode ' + + 'ReferenceRequisiteValue ' + + 'RegionDateSettings ' + + 'RegionNumberSettings ' + + 'RegionTimeSettings ' + + 'RegRead ' + + 'RegWrite ' + + 'RenameFile ' + + 'Replace ' + + 'Round ' + + 'SelectServerCode ' + + 'SelectSQL ' + + 'ServerDateTime ' + + 'SetConstant ' + + 'SetManagedFolderFieldsState ' + + 'ShowConstantsInputDialog ' + + 'ShowMessage ' + + 'Sleep ' + + 'Split ' + + 'SQL ' + + 'SQL2XLSTAB ' + + 'SQLProfilingSendReport ' + + 'StrToDate ' + + 'SubString ' + + 'SubStringCount ' + + 'SystemSetting ' + + 'Time ' + + 'TimeDiff ' + + 'Today ' + + 'Transliterate ' + + 'Trim ' + + 'UpperCase ' + + 'UserStatus ' + + 'UTCToLocalTime ' + + 'ValidateXML ' + + 'VarIsClear ' + + 'VarIsEmpty ' + + 'VarIsNull ' + + 'WorkTimeDiff ' + + 'WriteFile ' + + 'WriteFileEx ' + + 'WriteObjectHistory ' + + 'Анализ ' + + 'БазаДанных ' + + 'БлокЕсть ' + + 'БлокЕстьРасш ' + + 'БлокИнфо ' + + 'БлокСнять ' + + 'БлокСнятьРасш ' + + 'БлокУстановить ' + + 'Ввод ' + + 'ВводМеню ' + + 'ВедС ' + + 'ВедСпр ' + + 'ВерхняяГраницаМассива ' + + 'ВнешПрогр ' + + 'Восст ' + + 'ВременнаяПапка ' + + 'Время ' + + 'ВыборSQL ' + + 'ВыбратьЗапись ' + + 'ВыделитьСтр ' + + 'Вызвать ' + + 'Выполнить ' + + 'ВыпПрогр ' + + 'ГрафическийФайл ' + + 'ГруппаДополнительно ' + + 'ДатаВремяСерв ' + + 'ДеньНедели ' + + 'ДиалогДаНет ' + + 'ДлинаСтр ' + + 'ДобПодстр ' + + 'ЕПусто ' + + 'ЕслиТо ' + + 'ЕЧисло ' + + 'ЗамПодстр ' + + 'ЗаписьСправочника ' + + 'ЗначПоляСпр ' + + 'ИДТипСпр ' + + 'ИзвлечьДиск ' + + 'ИзвлечьИмяФайла ' + + 'ИзвлечьПуть ' + + 'ИзвлечьРасширение ' + + 'ИзмДат ' + + 'ИзменитьРазмерМассива ' + + 'ИзмеренийМассива ' + + 'ИмяОрг ' + + 'ИмяПоляСпр ' + + 'Индекс ' + + 'ИндикаторЗакрыть ' + + 'ИндикаторОткрыть ' + + 'ИндикаторШаг ' + + 'ИнтерактивныйРежим ' + + 'ИтогТблСпр ' + + 'КодВидВедСпр ' + + 'КодВидСпрПоИД ' + + 'КодПоAnalit ' + + 'КодСимвола ' + + 'КодСпр ' + + 'КолПодстр ' + + 'КолПроп ' + + 'КонМес ' + + 'Конст ' + + 'КонстЕсть ' + + 'КонстЗнач ' + + 'КонТран ' + + 'КопироватьФайл ' + + 'КопияСтр ' + + 'КПериод ' + + 'КСтрТблСпр ' + + 'Макс ' + + 'МаксСтрТблСпр ' + + 'Массив ' + + 'Меню ' + + 'МенюРасш ' + + 'Мин ' + + 'НаборДанныхНайтиРасш ' + + 'НаимВидСпр ' + + 'НаимПоAnalit ' + + 'НаимСпр ' + + 'НастроитьПереводыСтрок ' + + 'НачМес ' + + 'НачТран ' + + 'НижняяГраницаМассива ' + + 'НомерСпр ' + + 'НПериод ' + + 'Окно ' + + 'Окр ' + + 'Окружение ' + + 'ОтлИнфДобавить ' + + 'ОтлИнфУдалить ' + + 'Отчет ' + + 'ОтчетАнал ' + + 'ОтчетИнт ' + + 'ПапкаСуществует ' + + 'Пауза ' + + 'ПВыборSQL ' + + 'ПереименоватьФайл ' + + 'Переменные ' + + 'ПереместитьФайл ' + + 'Подстр ' + + 'ПоискПодстр ' + + 'ПоискСтр ' + + 'ПолучитьИДТаблицы ' + + 'ПользовательДополнительно ' + + 'ПользовательИД ' + + 'ПользовательИмя ' + + 'ПользовательСтатус ' + + 'Прервать ' + + 'ПроверитьПараметр ' + + 'ПроверитьПараметрЗнач ' + + 'ПроверитьУсловие ' + + 'РазбСтр ' + + 'РазнВремя ' + + 'РазнДат ' + + 'РазнДатаВремя ' + + 'РазнРабВремя ' + + 'РегУстВрем ' + + 'РегУстДат ' + + 'РегУстЧсл ' + + 'РедТекст ' + + 'РеестрЗапись ' + + 'РеестрСписокИменПарам ' + + 'РеестрЧтение ' + + 'РеквСпр ' + + 'РеквСпрПр ' + + 'Сегодня ' + + 'Сейчас ' + + 'Сервер ' + + 'СерверПроцессИД ' + + 'СертификатФайлСчитать ' + + 'СжПроб ' + + 'Символ ' + + 'СистемаДиректумКод ' + + 'СистемаИнформация ' + + 'СистемаКод ' + + 'Содержит ' + + 'СоединениеЗакрыть ' + + 'СоединениеОткрыть ' + + 'СоздатьДиалог ' + + 'СоздатьДиалогВыбораИзДвухСписков ' + + 'СоздатьДиалогВыбораПапки ' + + 'СоздатьДиалогОткрытияФайла ' + + 'СоздатьДиалогСохраненияФайла ' + + 'СоздатьЗапрос ' + + 'СоздатьИндикатор ' + + 'СоздатьИсключение ' + + 'СоздатьКэшированныйСправочник ' + + 'СоздатьМассив ' + + 'СоздатьНаборДанных ' + + 'СоздатьОбъект ' + + 'СоздатьОтчет ' + + 'СоздатьПапку ' + + 'СоздатьРедактор ' + + 'СоздатьСоединение ' + + 'СоздатьСписок ' + + 'СоздатьСписокСтрок ' + + 'СоздатьСправочник ' + + 'СоздатьСценарий ' + + 'СоздСпр ' + + 'СостСпр ' + + 'Сохр ' + + 'СохрСпр ' + + 'СписокСистем ' + + 'Спр ' + + 'Справочник ' + + 'СпрБлокЕсть ' + + 'СпрБлокСнять ' + + 'СпрБлокСнятьРасш ' + + 'СпрБлокУстановить ' + + 'СпрИзмНабДан ' + + 'СпрКод ' + + 'СпрНомер ' + + 'СпрОбновить ' + + 'СпрОткрыть ' + + 'СпрОтменить ' + + 'СпрПарам ' + + 'СпрПолеЗнач ' + + 'СпрПолеИмя ' + + 'СпрРекв ' + + 'СпрРеквВведЗн ' + + 'СпрРеквНовые ' + + 'СпрРеквПр ' + + 'СпрРеквПредЗн ' + + 'СпрРеквРежим ' + + 'СпрРеквТипТекст ' + + 'СпрСоздать ' + + 'СпрСост ' + + 'СпрСохранить ' + + 'СпрТблИтог ' + + 'СпрТблСтр ' + + 'СпрТблСтрКол ' + + 'СпрТблСтрМакс ' + + 'СпрТблСтрМин ' + + 'СпрТблСтрПред ' + + 'СпрТблСтрСлед ' + + 'СпрТблСтрСозд ' + + 'СпрТблСтрУд ' + + 'СпрТекПредст ' + + 'СпрУдалить ' + + 'СравнитьСтр ' + + 'СтрВерхРегистр ' + + 'СтрНижнРегистр ' + + 'СтрТблСпр ' + + 'СумПроп ' + + 'Сценарий ' + + 'СценарийПарам ' + + 'ТекВерсия ' + + 'ТекОрг ' + + 'Точн ' + + 'Тран ' + + 'Транслитерация ' + + 'УдалитьТаблицу ' + + 'УдалитьФайл ' + + 'УдСпр ' + + 'УдСтрТблСпр ' + + 'Уст ' + + 'УстановкиКонстант ' + + 'ФайлАтрибутСчитать ' + + 'ФайлАтрибутУстановить ' + + 'ФайлВремя ' + + 'ФайлВремяУстановить ' + + 'ФайлВыбрать ' + + 'ФайлЗанят ' + + 'ФайлЗаписать ' + + 'ФайлИскать ' + + 'ФайлКопировать ' + + 'ФайлМожноЧитать ' + + 'ФайлОткрыть ' + + 'ФайлПереименовать ' + + 'ФайлПерекодировать ' + + 'ФайлПереместить ' + + 'ФайлПросмотреть ' + + 'ФайлРазмер ' + + 'ФайлСоздать ' + + 'ФайлСсылкаСоздать ' + + 'ФайлСуществует ' + + 'ФайлСчитать ' + + 'ФайлУдалить ' + + 'ФмтSQLДат ' + + 'ФмтДат ' + + 'ФмтСтр ' + + 'ФмтЧсл ' + + 'Формат ' + + 'ЦМассивЭлемент ' + + 'ЦНаборДанныхРеквизит ' + + 'ЦПодстр '; + + // Предопределенные переменные ==> built_in + const predefined_variables = + 'AltState ' + + 'Application ' + + 'CallType ' + + 'ComponentTokens ' + + 'CreatedJobs ' + + 'CreatedNotices ' + + 'ControlState ' + + 'DialogResult ' + + 'Dialogs ' + + 'EDocuments ' + + 'EDocumentVersionSource ' + + 'Folders ' + + 'GlobalIDs ' + + 'Job ' + + 'Jobs ' + + 'InputValue ' + + 'LookUpReference ' + + 'LookUpRequisiteNames ' + + 'LookUpSearch ' + + 'Object ' + + 'ParentComponent ' + + 'Processes ' + + 'References ' + + 'Requisite ' + + 'ReportName ' + + 'Reports ' + + 'Result ' + + 'Scripts ' + + 'Searches ' + + 'SelectedAttachments ' + + 'SelectedItems ' + + 'SelectMode ' + + 'Sender ' + + 'ServerEvents ' + + 'ServiceFactory ' + + 'ShiftState ' + + 'SubTask ' + + 'SystemDialogs ' + + 'Tasks ' + + 'Wizard ' + + 'Wizards ' + + 'Work ' + + 'ВызовСпособ ' + + 'ИмяОтчета ' + + 'РеквЗнач '; + + // Интерфейсы ==> type + const interfaces = + 'IApplication ' + + 'IAccessRights ' + + 'IAccountRepository ' + + 'IAccountSelectionRestrictions ' + + 'IAction ' + + 'IActionList ' + + 'IAdministrationHistoryDescription ' + + 'IAnchors ' + + 'IApplication ' + + 'IArchiveInfo ' + + 'IAttachment ' + + 'IAttachmentList ' + + 'ICheckListBox ' + + 'ICheckPointedList ' + + 'IColumn ' + + 'IComponent ' + + 'IComponentDescription ' + + 'IComponentToken ' + + 'IComponentTokenFactory ' + + 'IComponentTokenInfo ' + + 'ICompRecordInfo ' + + 'IConnection ' + + 'IContents ' + + 'IControl ' + + 'IControlJob ' + + 'IControlJobInfo ' + + 'IControlList ' + + 'ICrypto ' + + 'ICrypto2 ' + + 'ICustomJob ' + + 'ICustomJobInfo ' + + 'ICustomListBox ' + + 'ICustomObjectWizardStep ' + + 'ICustomWork ' + + 'ICustomWorkInfo ' + + 'IDataSet ' + + 'IDataSetAccessInfo ' + + 'IDataSigner ' + + 'IDateCriterion ' + + 'IDateRequisite ' + + 'IDateRequisiteDescription ' + + 'IDateValue ' + + 'IDeaAccessRights ' + + 'IDeaObjectInfo ' + + 'IDevelopmentComponentLock ' + + 'IDialog ' + + 'IDialogFactory ' + + 'IDialogPickRequisiteItems ' + + 'IDialogsFactory ' + + 'IDICSFactory ' + + 'IDocRequisite ' + + 'IDocumentInfo ' + + 'IDualListDialog ' + + 'IECertificate ' + + 'IECertificateInfo ' + + 'IECertificates ' + + 'IEditControl ' + + 'IEditorForm ' + + 'IEdmsExplorer ' + + 'IEdmsObject ' + + 'IEdmsObjectDescription ' + + 'IEdmsObjectFactory ' + + 'IEdmsObjectInfo ' + + 'IEDocument ' + + 'IEDocumentAccessRights ' + + 'IEDocumentDescription ' + + 'IEDocumentEditor ' + + 'IEDocumentFactory ' + + 'IEDocumentInfo ' + + 'IEDocumentStorage ' + + 'IEDocumentVersion ' + + 'IEDocumentVersionListDialog ' + + 'IEDocumentVersionSource ' + + 'IEDocumentWizardStep ' + + 'IEDocVerSignature ' + + 'IEDocVersionState ' + + 'IEnabledMode ' + + 'IEncodeProvider ' + + 'IEncrypter ' + + 'IEvent ' + + 'IEventList ' + + 'IException ' + + 'IExternalEvents ' + + 'IExternalHandler ' + + 'IFactory ' + + 'IField ' + + 'IFileDialog ' + + 'IFolder ' + + 'IFolderDescription ' + + 'IFolderDialog ' + + 'IFolderFactory ' + + 'IFolderInfo ' + + 'IForEach ' + + 'IForm ' + + 'IFormTitle ' + + 'IFormWizardStep ' + + 'IGlobalIDFactory ' + + 'IGlobalIDInfo ' + + 'IGrid ' + + 'IHasher ' + + 'IHistoryDescription ' + + 'IHyperLinkControl ' + + 'IImageButton ' + + 'IImageControl ' + + 'IInnerPanel ' + + 'IInplaceHint ' + + 'IIntegerCriterion ' + + 'IIntegerList ' + + 'IIntegerRequisite ' + + 'IIntegerValue ' + + 'IISBLEditorForm ' + + 'IJob ' + + 'IJobDescription ' + + 'IJobFactory ' + + 'IJobForm ' + + 'IJobInfo ' + + 'ILabelControl ' + + 'ILargeIntegerCriterion ' + + 'ILargeIntegerRequisite ' + + 'ILargeIntegerValue ' + + 'ILicenseInfo ' + + 'ILifeCycleStage ' + + 'IList ' + + 'IListBox ' + + 'ILocalIDInfo ' + + 'ILocalization ' + + 'ILock ' + + 'IMemoryDataSet ' + + 'IMessagingFactory ' + + 'IMetadataRepository ' + + 'INotice ' + + 'INoticeInfo ' + + 'INumericCriterion ' + + 'INumericRequisite ' + + 'INumericValue ' + + 'IObject ' + + 'IObjectDescription ' + + 'IObjectImporter ' + + 'IObjectInfo ' + + 'IObserver ' + + 'IPanelGroup ' + + 'IPickCriterion ' + + 'IPickProperty ' + + 'IPickRequisite ' + + 'IPickRequisiteDescription ' + + 'IPickRequisiteItem ' + + 'IPickRequisiteItems ' + + 'IPickValue ' + + 'IPrivilege ' + + 'IPrivilegeList ' + + 'IProcess ' + + 'IProcessFactory ' + + 'IProcessMessage ' + + 'IProgress ' + + 'IProperty ' + + 'IPropertyChangeEvent ' + + 'IQuery ' + + 'IReference ' + + 'IReferenceCriterion ' + + 'IReferenceEnabledMode ' + + 'IReferenceFactory ' + + 'IReferenceHistoryDescription ' + + 'IReferenceInfo ' + + 'IReferenceRecordCardWizardStep ' + + 'IReferenceRequisiteDescription ' + + 'IReferencesFactory ' + + 'IReferenceValue ' + + 'IRefRequisite ' + + 'IReport ' + + 'IReportFactory ' + + 'IRequisite ' + + 'IRequisiteDescription ' + + 'IRequisiteDescriptionList ' + + 'IRequisiteFactory ' + + 'IRichEdit ' + + 'IRouteStep ' + + 'IRule ' + + 'IRuleList ' + + 'ISchemeBlock ' + + 'IScript ' + + 'IScriptFactory ' + + 'ISearchCriteria ' + + 'ISearchCriterion ' + + 'ISearchDescription ' + + 'ISearchFactory ' + + 'ISearchFolderInfo ' + + 'ISearchForObjectDescription ' + + 'ISearchResultRestrictions ' + + 'ISecuredContext ' + + 'ISelectDialog ' + + 'IServerEvent ' + + 'IServerEventFactory ' + + 'IServiceDialog ' + + 'IServiceFactory ' + + 'ISignature ' + + 'ISignProvider ' + + 'ISignProvider2 ' + + 'ISignProvider3 ' + + 'ISimpleCriterion ' + + 'IStringCriterion ' + + 'IStringList ' + + 'IStringRequisite ' + + 'IStringRequisiteDescription ' + + 'IStringValue ' + + 'ISystemDialogsFactory ' + + 'ISystemInfo ' + + 'ITabSheet ' + + 'ITask ' + + 'ITaskAbortReasonInfo ' + + 'ITaskCardWizardStep ' + + 'ITaskDescription ' + + 'ITaskFactory ' + + 'ITaskInfo ' + + 'ITaskRoute ' + + 'ITextCriterion ' + + 'ITextRequisite ' + + 'ITextValue ' + + 'ITreeListSelectDialog ' + + 'IUser ' + + 'IUserList ' + + 'IValue ' + + 'IView ' + + 'IWebBrowserControl ' + + 'IWizard ' + + 'IWizardAction ' + + 'IWizardFactory ' + + 'IWizardFormElement ' + + 'IWizardParam ' + + 'IWizardPickParam ' + + 'IWizardReferenceParam ' + + 'IWizardStep ' + + 'IWorkAccessRights ' + + 'IWorkDescription ' + + 'IWorkflowAskableParam ' + + 'IWorkflowAskableParams ' + + 'IWorkflowBlock ' + + 'IWorkflowBlockResult ' + + 'IWorkflowEnabledMode ' + + 'IWorkflowParam ' + + 'IWorkflowPickParam ' + + 'IWorkflowReferenceParam ' + + 'IWorkState ' + + 'IWorkTreeCustomNode ' + + 'IWorkTreeJobNode ' + + 'IWorkTreeTaskNode ' + + 'IXMLEditorForm ' + + 'SBCrypto '; + + // built_in : встроенные или библиотечные объекты (константы, перечисления) + const BUILTIN = CONSTANTS + ENUMS; + + // class: встроенные наборы значений, системные объекты, фабрики + const CLASS = predefined_variables; + + // literal : примитивные типы + const LITERAL = 'null true false nil '; + + // number : числа + const NUMBERS = { + className: 'number', + begin: hljs.NUMBER_RE, + relevance: 0, + }; + + // string : строки + const STRINGS = { + className: 'string', + variants: [ + { + begin: '"', + end: '"', + }, + { + begin: "'", + end: "'", + }, + ], + }; + + // Токены + const DOCTAGS = { + className: 'doctag', + begin: '\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b', + relevance: 0, + }; + + // Однострочный комментарий + const ISBL_LINE_COMMENT_MODE = { + className: 'comment', + begin: '//', + end: '$', + relevance: 0, + contains: [hljs.PHRASAL_WORDS_MODE, DOCTAGS], + }; + + // Многострочный комментарий + const ISBL_BLOCK_COMMENT_MODE = { + className: 'comment', + begin: '/\\*', + end: '\\*/', + relevance: 0, + contains: [hljs.PHRASAL_WORDS_MODE, DOCTAGS], + }; + + // comment : комментарии + const COMMENTS = { + variants: [ISBL_LINE_COMMENT_MODE, ISBL_BLOCK_COMMENT_MODE], + }; + + // keywords : ключевые слова + const KEYWORDS = { + $pattern: UNDERSCORE_IDENT_RE, + keyword: KEYWORD, + built_in: BUILTIN, + class: CLASS, + literal: LITERAL, + }; + + // methods : методы + const METHODS = { + begin: '\\.\\s*' + hljs.UNDERSCORE_IDENT_RE, + keywords: KEYWORDS, + relevance: 0, + }; + + // type : встроенные типы + const TYPES = { + className: 'type', + begin: ':[ \\t]*(' + interfaces.trim().replace(/\s/g, '|') + ')', + end: '[ \\t]*=', + excludeEnd: true, + }; + + // variables : переменные + const VARIABLES = { + className: 'variable', + keywords: KEYWORDS, + begin: UNDERSCORE_IDENT_RE, + relevance: 0, + contains: [TYPES, METHODS], + }; + + // Имена функций + const FUNCTION_TITLE = FUNCTION_NAME_IDENT_RE + '\\('; + + const TITLE_MODE = { + className: 'title', + keywords: { + $pattern: UNDERSCORE_IDENT_RE, + built_in: system_functions, + }, + begin: FUNCTION_TITLE, + end: '\\(', + returnBegin: true, + excludeEnd: true, + }; + + // function : функции + const FUNCTIONS = { + className: 'function', + begin: FUNCTION_TITLE, + end: '\\)$', + returnBegin: true, + keywords: KEYWORDS, + illegal: '[\\[\\]\\|\\$\\?%,~#@]', + contains: [TITLE_MODE, METHODS, VARIABLES, STRINGS, NUMBERS, COMMENTS], + }; + + return { + name: 'ISBL', + aliases: ['isbl'], + case_insensitive: true, + keywords: KEYWORDS, + illegal: '\\$|\\?|%|,|;$|~|#|@|, - module_id: String, - project_root: String, - replace_env: bool, - env: HashMap, - inline_fs: bool, - insert_node_globals: bool, - node_replacer: bool, - is_browser: bool, - is_worker: bool, - is_type_script: bool, - is_jsx: bool, - jsx_pragma: Option, - jsx_pragma_frag: Option, - automatic_jsx_runtime: bool, - jsx_import_source: Option, - decorators: bool, - use_define_for_class_fields: bool, - is_development: bool, - react_refresh: bool, - targets: Option>, - source_maps: bool, - scope_hoist: bool, - source_type: SourceType, - supports_module_workers: bool, - is_library: bool, - is_esm_output: bool, - trace_bailouts: bool, - is_swc_helpers: bool, - standalone: bool, - inline_constants: bool, + pub code: Vec, + pub module_id: String, + pub project_root: String, + pub replace_env: bool, + pub env: HashMap, + pub inline_fs: bool, + pub insert_node_globals: bool, + pub node_replacer: bool, + pub is_browser: bool, + pub is_worker: bool, + pub is_type_script: bool, + pub is_jsx: bool, + pub jsx_pragma: Option, + pub jsx_pragma_frag: Option, + pub automatic_jsx_runtime: bool, + pub jsx_import_source: Option, + pub decorators: bool, + pub use_define_for_class_fields: bool, + pub is_development: bool, + pub react_refresh: bool, + pub targets: Option>, + pub source_maps: bool, + pub scope_hoist: bool, + pub source_type: SourceType, + pub supports_module_workers: bool, + pub is_library: bool, + pub is_esm_output: bool, + pub trace_bailouts: bool, + pub is_swc_helpers: bool, + pub standalone: bool, + pub inline_constants: bool, } #[derive(Serialize, Debug, Default)] pub struct TransformResult { #[serde(with = "serde_bytes")] - code: Vec, + pub code: Vec, map: Option, shebang: Option, dependencies: Vec, From bfaa5dcbe6652597978bfce6a8e1a3c59e650f28 Mon Sep 17 00:00:00 2001 From: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com> Date: Wed, 17 Apr 2024 10:57:46 +0200 Subject: [PATCH 06/13] Revert "WIP add example" This reverts commit d4dba2c51d8a375c41d4786ce015f5761d9066d6. --- Cargo.lock | 8 - crates/test/Cargo.toml | 9 - crates/test/src/main.rs | 47 - isbl.js | 3192 ---------------------- packages/transformers/js/core/src/lib.rs | 66 +- 5 files changed, 33 insertions(+), 3289 deletions(-) delete mode 100644 crates/test/Cargo.toml delete mode 100644 crates/test/src/main.rs delete mode 100644 isbl.js diff --git a/Cargo.lock b/Cargo.lock index 5a07f5daa55..2bb0fa86150 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1884,14 +1884,6 @@ dependencies = [ "xxhash-rust", ] -[[package]] -name = "parcel-test" -version = "0.1.0" -dependencies = [ - "parcel-js-swc-core", - "rayon", -] - [[package]] name = "parcel_config" version = "0.1.0" diff --git a/crates/test/Cargo.toml b/crates/test/Cargo.toml deleted file mode 100644 index 59133080ddb..00000000000 --- a/crates/test/Cargo.toml +++ /dev/null @@ -1,9 +0,0 @@ -[package] -authors = ["Devon Govett "] -name = "parcel-test" -version = "0.1.0" -edition = "2021" - -[dependencies] -parcel-js-swc-core = { path = "../../packages/transformers/js/core" } -rayon = "1.7.0" diff --git a/crates/test/src/main.rs b/crates/test/src/main.rs deleted file mode 100644 index 1b24c5681fb..00000000000 --- a/crates/test/src/main.rs +++ /dev/null @@ -1,47 +0,0 @@ -use std::collections::HashMap; - -fn main() { - let foo = std::fs::read_to_string("isbl.js").unwrap(); - - let config = parcel_js_swc_core::Config { - filename: "file.js".to_string(), - code: foo.into_bytes(), - module_id: "xyz".to_string(), - project_root: "/app/".to_string(), - replace_env: true, - env: HashMap::new(), - inline_fs: false, - insert_node_globals: false, - node_replacer: false, - is_browser: false, - is_worker: false, - is_type_script: false, - is_jsx: false, - jsx_pragma: None, - jsx_pragma_frag: None, - automatic_jsx_runtime: false, - jsx_import_source: None, - decorators: false, - use_define_for_class_fields: false, - is_development: false, - react_refresh: false, - targets: None, - source_maps: false, - scope_hoist: false, - source_type: parcel_js_swc_core::SourceType::Module, - supports_module_workers: false, - is_library: false, - is_esm_output: false, - trace_bailouts: false, - is_swc_helpers: false, - standalone: false, - inline_constants: false, - }; - - rayon::scope(|scope| { - scope.spawn(move |_| { - let result = parcel_js_swc_core::transform(config, None).unwrap(); - println!("{:?}", String::from_utf8(result.code).unwrap()); - }) - }); -} diff --git a/isbl.js b/isbl.js deleted file mode 100644 index 67e7f124086..00000000000 --- a/isbl.js +++ /dev/null @@ -1,3192 +0,0 @@ -/* -Language: ISBL -Author: Dmitriy Tarasov -Description: built-in language DIRECTUM -Category: enterprise -*/ - -function isbl(hljs) { - // Определение идентификаторов - const UNDERSCORE_IDENT_RE = '[A-Za-zА-Яа-яёЁ_!][A-Za-zА-Яа-яёЁ_0-9]*'; - - // Определение имен функций - const FUNCTION_NAME_IDENT_RE = '[A-Za-zА-Яа-яёЁ_][A-Za-zА-Яа-яёЁ_0-9]*'; - - // keyword : ключевые слова - const KEYWORD = - 'and и else иначе endexcept endfinally endforeach конецвсе endif конецесли endwhile конецпока ' + - 'except exitfor finally foreach все if если in в not не or или try while пока '; - - // SYSRES Constants - const sysres_constants = - 'SYSRES_CONST_ACCES_RIGHT_TYPE_EDIT ' + - 'SYSRES_CONST_ACCES_RIGHT_TYPE_FULL ' + - 'SYSRES_CONST_ACCES_RIGHT_TYPE_VIEW ' + - 'SYSRES_CONST_ACCESS_MODE_REQUISITE_CODE ' + - 'SYSRES_CONST_ACCESS_NO_ACCESS_VIEW ' + - 'SYSRES_CONST_ACCESS_NO_ACCESS_VIEW_CODE ' + - 'SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_CODE ' + - 'SYSRES_CONST_ACCESS_RIGHTS_ADD_REQUISITE_YES_CODE ' + - 'SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_CODE ' + - 'SYSRES_CONST_ACCESS_RIGHTS_CHANGE_REQUISITE_YES_CODE ' + - 'SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_CODE ' + - 'SYSRES_CONST_ACCESS_RIGHTS_DELETE_REQUISITE_YES_CODE ' + - 'SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_CODE ' + - 'SYSRES_CONST_ACCESS_RIGHTS_EXECUTE_REQUISITE_YES_CODE ' + - 'SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_CODE ' + - 'SYSRES_CONST_ACCESS_RIGHTS_NO_ACCESS_REQUISITE_YES_CODE ' + - 'SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_CODE ' + - 'SYSRES_CONST_ACCESS_RIGHTS_RATIFY_REQUISITE_YES_CODE ' + - 'SYSRES_CONST_ACCESS_RIGHTS_REQUISITE_CODE ' + - 'SYSRES_CONST_ACCESS_RIGHTS_VIEW ' + - 'SYSRES_CONST_ACCESS_RIGHTS_VIEW_CODE ' + - 'SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_CODE ' + - 'SYSRES_CONST_ACCESS_RIGHTS_VIEW_REQUISITE_YES_CODE ' + - 'SYSRES_CONST_ACCESS_TYPE_CHANGE ' + - 'SYSRES_CONST_ACCESS_TYPE_CHANGE_CODE ' + - 'SYSRES_CONST_ACCESS_TYPE_EXISTS ' + - 'SYSRES_CONST_ACCESS_TYPE_EXISTS_CODE ' + - 'SYSRES_CONST_ACCESS_TYPE_FULL ' + - 'SYSRES_CONST_ACCESS_TYPE_FULL_CODE ' + - 'SYSRES_CONST_ACCESS_TYPE_VIEW ' + - 'SYSRES_CONST_ACCESS_TYPE_VIEW_CODE ' + - 'SYSRES_CONST_ACTION_TYPE_ABORT ' + - 'SYSRES_CONST_ACTION_TYPE_ACCEPT ' + - 'SYSRES_CONST_ACTION_TYPE_ACCESS_RIGHTS ' + - 'SYSRES_CONST_ACTION_TYPE_ADD_ATTACHMENT ' + - 'SYSRES_CONST_ACTION_TYPE_CHANGE_CARD ' + - 'SYSRES_CONST_ACTION_TYPE_CHANGE_KIND ' + - 'SYSRES_CONST_ACTION_TYPE_CHANGE_STORAGE ' + - 'SYSRES_CONST_ACTION_TYPE_CONTINUE ' + - 'SYSRES_CONST_ACTION_TYPE_COPY ' + - 'SYSRES_CONST_ACTION_TYPE_CREATE ' + - 'SYSRES_CONST_ACTION_TYPE_CREATE_VERSION ' + - 'SYSRES_CONST_ACTION_TYPE_DELETE ' + - 'SYSRES_CONST_ACTION_TYPE_DELETE_ATTACHMENT ' + - 'SYSRES_CONST_ACTION_TYPE_DELETE_VERSION ' + - 'SYSRES_CONST_ACTION_TYPE_DISABLE_DELEGATE_ACCESS_RIGHTS ' + - 'SYSRES_CONST_ACTION_TYPE_ENABLE_DELEGATE_ACCESS_RIGHTS ' + - 'SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE ' + - 'SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_CERTIFICATE_AND_PASSWORD ' + - 'SYSRES_CONST_ACTION_TYPE_ENCRYPTION_BY_PASSWORD ' + - 'SYSRES_CONST_ACTION_TYPE_EXPORT_WITH_LOCK ' + - 'SYSRES_CONST_ACTION_TYPE_EXPORT_WITHOUT_LOCK ' + - 'SYSRES_CONST_ACTION_TYPE_IMPORT_WITH_UNLOCK ' + - 'SYSRES_CONST_ACTION_TYPE_IMPORT_WITHOUT_UNLOCK ' + - 'SYSRES_CONST_ACTION_TYPE_LIFE_CYCLE_STAGE ' + - 'SYSRES_CONST_ACTION_TYPE_LOCK ' + - 'SYSRES_CONST_ACTION_TYPE_LOCK_FOR_SERVER ' + - 'SYSRES_CONST_ACTION_TYPE_LOCK_MODIFY ' + - 'SYSRES_CONST_ACTION_TYPE_MARK_AS_READED ' + - 'SYSRES_CONST_ACTION_TYPE_MARK_AS_UNREADED ' + - 'SYSRES_CONST_ACTION_TYPE_MODIFY ' + - 'SYSRES_CONST_ACTION_TYPE_MODIFY_CARD ' + - 'SYSRES_CONST_ACTION_TYPE_MOVE_TO_ARCHIVE ' + - 'SYSRES_CONST_ACTION_TYPE_OFF_ENCRYPTION ' + - 'SYSRES_CONST_ACTION_TYPE_PASSWORD_CHANGE ' + - 'SYSRES_CONST_ACTION_TYPE_PERFORM ' + - 'SYSRES_CONST_ACTION_TYPE_RECOVER_FROM_LOCAL_COPY ' + - 'SYSRES_CONST_ACTION_TYPE_RESTART ' + - 'SYSRES_CONST_ACTION_TYPE_RESTORE_FROM_ARCHIVE ' + - 'SYSRES_CONST_ACTION_TYPE_REVISION ' + - 'SYSRES_CONST_ACTION_TYPE_SEND_BY_MAIL ' + - 'SYSRES_CONST_ACTION_TYPE_SIGN ' + - 'SYSRES_CONST_ACTION_TYPE_START ' + - 'SYSRES_CONST_ACTION_TYPE_UNLOCK ' + - 'SYSRES_CONST_ACTION_TYPE_UNLOCK_FROM_SERVER ' + - 'SYSRES_CONST_ACTION_TYPE_VERSION_STATE ' + - 'SYSRES_CONST_ACTION_TYPE_VERSION_VISIBILITY ' + - 'SYSRES_CONST_ACTION_TYPE_VIEW ' + - 'SYSRES_CONST_ACTION_TYPE_VIEW_SHADOW_COPY ' + - 'SYSRES_CONST_ACTION_TYPE_WORKFLOW_DESCRIPTION_MODIFY ' + - 'SYSRES_CONST_ACTION_TYPE_WRITE_HISTORY ' + - 'SYSRES_CONST_ACTIVE_VERSION_STATE_PICK_VALUE ' + - 'SYSRES_CONST_ADD_REFERENCE_MODE_NAME ' + - 'SYSRES_CONST_ADDITION_REQUISITE_CODE ' + - 'SYSRES_CONST_ADDITIONAL_PARAMS_REQUISITE_CODE ' + - 'SYSRES_CONST_ADITIONAL_JOB_END_DATE_REQUISITE_NAME ' + - 'SYSRES_CONST_ADITIONAL_JOB_READ_REQUISITE_NAME ' + - 'SYSRES_CONST_ADITIONAL_JOB_START_DATE_REQUISITE_NAME ' + - 'SYSRES_CONST_ADITIONAL_JOB_STATE_REQUISITE_NAME ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_ADDING_USER_TO_GROUP_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_COMP_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_GROUP_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_CREATION_USER_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_CREATION_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_DATABASE_USER_DELETION_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_COMP_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_GROUP_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_DELETION_USER_FROM_GROUP_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_FILTERER_RESTRICTION_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_PRIVILEGE_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_GRANTING_RIGHTS_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_IS_MAIN_SERVER_CHANGED_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_IS_PUBLIC_CHANGED_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_FILTERER_RESTRICTION_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_PRIVILEGE_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_REMOVING_RIGHTS_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_CREATION_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_SERVER_LOGIN_DELETION_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_CATEGORY_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_COMP_TITLE_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_FULL_NAME_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_GROUP_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_PARENT_GROUP_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_AUTH_TYPE_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_LOGIN_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_UPDATING_USER_STATUS_ACTION_CODE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE ' + - 'SYSRES_CONST_ADMINISTRATION_HISTORY_USER_PASSWORD_CHANGE_ACTION ' + - 'SYSRES_CONST_ALL_ACCEPT_CONDITION_RUS ' + - 'SYSRES_CONST_ALL_USERS_GROUP ' + - 'SYSRES_CONST_ALL_USERS_GROUP_NAME ' + - 'SYSRES_CONST_ALL_USERS_SERVER_GROUP_NAME ' + - 'SYSRES_CONST_ALLOWED_ACCESS_TYPE_CODE ' + - 'SYSRES_CONST_ALLOWED_ACCESS_TYPE_NAME ' + - 'SYSRES_CONST_APP_VIEWER_TYPE_REQUISITE_CODE ' + - 'SYSRES_CONST_APPROVING_SIGNATURE_NAME ' + - 'SYSRES_CONST_APPROVING_SIGNATURE_REQUISITE_CODE ' + - 'SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE ' + - 'SYSRES_CONST_ASSISTANT_SUBSTITUE_TYPE_CODE ' + - 'SYSRES_CONST_ATTACH_TYPE_COMPONENT_TOKEN ' + - 'SYSRES_CONST_ATTACH_TYPE_DOC ' + - 'SYSRES_CONST_ATTACH_TYPE_EDOC ' + - 'SYSRES_CONST_ATTACH_TYPE_FOLDER ' + - 'SYSRES_CONST_ATTACH_TYPE_JOB ' + - 'SYSRES_CONST_ATTACH_TYPE_REFERENCE ' + - 'SYSRES_CONST_ATTACH_TYPE_TASK ' + - 'SYSRES_CONST_AUTH_ENCODED_PASSWORD ' + - 'SYSRES_CONST_AUTH_ENCODED_PASSWORD_CODE ' + - 'SYSRES_CONST_AUTH_NOVELL ' + - 'SYSRES_CONST_AUTH_PASSWORD ' + - 'SYSRES_CONST_AUTH_PASSWORD_CODE ' + - 'SYSRES_CONST_AUTH_WINDOWS ' + - 'SYSRES_CONST_AUTHENTICATING_SIGNATURE_NAME ' + - 'SYSRES_CONST_AUTHENTICATING_SIGNATURE_REQUISITE_CODE ' + - 'SYSRES_CONST_AUTO_ENUM_METHOD_FLAG ' + - 'SYSRES_CONST_AUTO_NUMERATION_CODE ' + - 'SYSRES_CONST_AUTO_STRONG_ENUM_METHOD_FLAG ' + - 'SYSRES_CONST_AUTOTEXT_NAME_REQUISITE_CODE ' + - 'SYSRES_CONST_AUTOTEXT_TEXT_REQUISITE_CODE ' + - 'SYSRES_CONST_AUTOTEXT_USAGE_ALL ' + - 'SYSRES_CONST_AUTOTEXT_USAGE_ALL_CODE ' + - 'SYSRES_CONST_AUTOTEXT_USAGE_SIGN ' + - 'SYSRES_CONST_AUTOTEXT_USAGE_SIGN_CODE ' + - 'SYSRES_CONST_AUTOTEXT_USAGE_WORK ' + - 'SYSRES_CONST_AUTOTEXT_USAGE_WORK_CODE ' + - 'SYSRES_CONST_AUTOTEXT_USE_ANYWHERE_CODE ' + - 'SYSRES_CONST_AUTOTEXT_USE_ON_SIGNING_CODE ' + - 'SYSRES_CONST_AUTOTEXT_USE_ON_WORK_CODE ' + - 'SYSRES_CONST_BEGIN_DATE_REQUISITE_CODE ' + - 'SYSRES_CONST_BLACK_LIFE_CYCLE_STAGE_FONT_COLOR ' + - 'SYSRES_CONST_BLUE_LIFE_CYCLE_STAGE_FONT_COLOR ' + - 'SYSRES_CONST_BTN_PART ' + - 'SYSRES_CONST_CALCULATED_ROLE_TYPE_CODE ' + - 'SYSRES_CONST_CALL_TYPE_VARIABLE_BUTTON_VALUE ' + - 'SYSRES_CONST_CALL_TYPE_VARIABLE_PROGRAM_VALUE ' + - 'SYSRES_CONST_CANCEL_MESSAGE_FUNCTION_RESULT ' + - 'SYSRES_CONST_CARD_PART ' + - 'SYSRES_CONST_CARD_REFERENCE_MODE_NAME ' + - 'SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_ENCRYPT_VALUE ' + - 'SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_AND_ENCRYPT_VALUE ' + - 'SYSRES_CONST_CERTIFICATE_TYPE_REQUISITE_SIGN_VALUE ' + - 'SYSRES_CONST_CHECK_PARAM_VALUE_DATE_PARAM_TYPE ' + - 'SYSRES_CONST_CHECK_PARAM_VALUE_FLOAT_PARAM_TYPE ' + - 'SYSRES_CONST_CHECK_PARAM_VALUE_INTEGER_PARAM_TYPE ' + - 'SYSRES_CONST_CHECK_PARAM_VALUE_PICK_PARAM_TYPE ' + - 'SYSRES_CONST_CHECK_PARAM_VALUE_REEFRENCE_PARAM_TYPE ' + - 'SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_FEMININE ' + - 'SYSRES_CONST_CLOSED_RECORD_FLAG_VALUE_MASCULINE ' + - 'SYSRES_CONST_CODE_COMPONENT_TYPE_ADMIN ' + - 'SYSRES_CONST_CODE_COMPONENT_TYPE_DEVELOPER ' + - 'SYSRES_CONST_CODE_COMPONENT_TYPE_DOCS ' + - 'SYSRES_CONST_CODE_COMPONENT_TYPE_EDOC_CARDS ' + - 'SYSRES_CONST_CODE_COMPONENT_TYPE_EXTERNAL_EXECUTABLE ' + - 'SYSRES_CONST_CODE_COMPONENT_TYPE_OTHER ' + - 'SYSRES_CONST_CODE_COMPONENT_TYPE_REFERENCE ' + - 'SYSRES_CONST_CODE_COMPONENT_TYPE_REPORT ' + - 'SYSRES_CONST_CODE_COMPONENT_TYPE_SCRIPT ' + - 'SYSRES_CONST_CODE_COMPONENT_TYPE_URL ' + - 'SYSRES_CONST_CODE_REQUISITE_ACCESS ' + - 'SYSRES_CONST_CODE_REQUISITE_CODE ' + - 'SYSRES_CONST_CODE_REQUISITE_COMPONENT ' + - 'SYSRES_CONST_CODE_REQUISITE_DESCRIPTION ' + - 'SYSRES_CONST_CODE_REQUISITE_EXCLUDE_COMPONENT ' + - 'SYSRES_CONST_CODE_REQUISITE_RECORD ' + - 'SYSRES_CONST_COMMENT_REQ_CODE ' + - 'SYSRES_CONST_COMMON_SETTINGS_REQUISITE_CODE ' + - 'SYSRES_CONST_COMP_CODE_GRD ' + - 'SYSRES_CONST_COMPONENT_GROUP_TYPE_REQUISITE_CODE ' + - 'SYSRES_CONST_COMPONENT_TYPE_ADMIN_COMPONENTS ' + - 'SYSRES_CONST_COMPONENT_TYPE_DEVELOPER_COMPONENTS ' + - 'SYSRES_CONST_COMPONENT_TYPE_DOCS ' + - 'SYSRES_CONST_COMPONENT_TYPE_EDOC_CARDS ' + - 'SYSRES_CONST_COMPONENT_TYPE_EDOCS ' + - 'SYSRES_CONST_COMPONENT_TYPE_EXTERNAL_EXECUTABLE ' + - 'SYSRES_CONST_COMPONENT_TYPE_OTHER ' + - 'SYSRES_CONST_COMPONENT_TYPE_REFERENCE_TYPES ' + - 'SYSRES_CONST_COMPONENT_TYPE_REFERENCES ' + - 'SYSRES_CONST_COMPONENT_TYPE_REPORTS ' + - 'SYSRES_CONST_COMPONENT_TYPE_SCRIPTS ' + - 'SYSRES_CONST_COMPONENT_TYPE_URL ' + - 'SYSRES_CONST_COMPONENTS_REMOTE_SERVERS_VIEW_CODE ' + - 'SYSRES_CONST_CONDITION_BLOCK_DESCRIPTION ' + - 'SYSRES_CONST_CONST_FIRM_STATUS_COMMON ' + - 'SYSRES_CONST_CONST_FIRM_STATUS_INDIVIDUAL ' + - 'SYSRES_CONST_CONST_NEGATIVE_VALUE ' + - 'SYSRES_CONST_CONST_POSITIVE_VALUE ' + - 'SYSRES_CONST_CONST_SERVER_STATUS_DONT_REPLICATE ' + - 'SYSRES_CONST_CONST_SERVER_STATUS_REPLICATE ' + - 'SYSRES_CONST_CONTENTS_REQUISITE_CODE ' + - 'SYSRES_CONST_DATA_TYPE_BOOLEAN ' + - 'SYSRES_CONST_DATA_TYPE_DATE ' + - 'SYSRES_CONST_DATA_TYPE_FLOAT ' + - 'SYSRES_CONST_DATA_TYPE_INTEGER ' + - 'SYSRES_CONST_DATA_TYPE_PICK ' + - 'SYSRES_CONST_DATA_TYPE_REFERENCE ' + - 'SYSRES_CONST_DATA_TYPE_STRING ' + - 'SYSRES_CONST_DATA_TYPE_TEXT ' + - 'SYSRES_CONST_DATA_TYPE_VARIANT ' + - 'SYSRES_CONST_DATE_CLOSE_REQ_CODE ' + - 'SYSRES_CONST_DATE_FORMAT_DATE_ONLY_CHAR ' + - 'SYSRES_CONST_DATE_OPEN_REQ_CODE ' + - 'SYSRES_CONST_DATE_REQUISITE ' + - 'SYSRES_CONST_DATE_REQUISITE_CODE ' + - 'SYSRES_CONST_DATE_REQUISITE_NAME ' + - 'SYSRES_CONST_DATE_REQUISITE_TYPE ' + - 'SYSRES_CONST_DATE_TYPE_CHAR ' + - 'SYSRES_CONST_DATETIME_FORMAT_VALUE ' + - 'SYSRES_CONST_DEA_ACCESS_RIGHTS_ACTION_CODE ' + - 'SYSRES_CONST_DESCRIPTION_LOCALIZE_ID_REQUISITE_CODE ' + - 'SYSRES_CONST_DESCRIPTION_REQUISITE_CODE ' + - 'SYSRES_CONST_DET1_PART ' + - 'SYSRES_CONST_DET2_PART ' + - 'SYSRES_CONST_DET3_PART ' + - 'SYSRES_CONST_DET4_PART ' + - 'SYSRES_CONST_DET5_PART ' + - 'SYSRES_CONST_DET6_PART ' + - 'SYSRES_CONST_DETAIL_DATASET_KEY_REQUISITE_CODE ' + - 'SYSRES_CONST_DETAIL_PICK_REQUISITE_CODE ' + - 'SYSRES_CONST_DETAIL_REQ_CODE ' + - 'SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_CODE ' + - 'SYSRES_CONST_DO_NOT_USE_ACCESS_TYPE_NAME ' + - 'SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_CODE ' + - 'SYSRES_CONST_DO_NOT_USE_ON_VIEW_ACCESS_TYPE_NAME ' + - 'SYSRES_CONST_DOCUMENT_STORAGES_CODE ' + - 'SYSRES_CONST_DOCUMENT_TEMPLATES_TYPE_NAME ' + - 'SYSRES_CONST_DOUBLE_REQUISITE_CODE ' + - 'SYSRES_CONST_EDITOR_CLOSE_FILE_OBSERV_TYPE_CODE ' + - 'SYSRES_CONST_EDITOR_CLOSE_PROCESS_OBSERV_TYPE_CODE ' + - 'SYSRES_CONST_EDITOR_TYPE_REQUISITE_CODE ' + - 'SYSRES_CONST_EDITORS_APPLICATION_NAME_REQUISITE_CODE ' + - 'SYSRES_CONST_EDITORS_CREATE_SEVERAL_PROCESSES_REQUISITE_CODE ' + - 'SYSRES_CONST_EDITORS_EXTENSION_REQUISITE_CODE ' + - 'SYSRES_CONST_EDITORS_OBSERVER_BY_PROCESS_TYPE ' + - 'SYSRES_CONST_EDITORS_REFERENCE_CODE ' + - 'SYSRES_CONST_EDITORS_REPLACE_SPEC_CHARS_REQUISITE_CODE ' + - 'SYSRES_CONST_EDITORS_USE_PLUGINS_REQUISITE_CODE ' + - 'SYSRES_CONST_EDITORS_VIEW_DOCUMENT_OPENED_TO_EDIT_CODE ' + - 'SYSRES_CONST_EDOC_CARD_TYPE_REQUISITE_CODE ' + - 'SYSRES_CONST_EDOC_CARD_TYPES_LINK_REQUISITE_CODE ' + - 'SYSRES_CONST_EDOC_CERTIFICATE_AND_PASSWORD_ENCODE_CODE ' + - 'SYSRES_CONST_EDOC_CERTIFICATE_ENCODE_CODE ' + - 'SYSRES_CONST_EDOC_DATE_REQUISITE_CODE ' + - 'SYSRES_CONST_EDOC_KIND_REFERENCE_CODE ' + - 'SYSRES_CONST_EDOC_KINDS_BY_TEMPLATE_ACTION_CODE ' + - 'SYSRES_CONST_EDOC_MANAGE_ACCESS_CODE ' + - 'SYSRES_CONST_EDOC_NONE_ENCODE_CODE ' + - 'SYSRES_CONST_EDOC_NUMBER_REQUISITE_CODE ' + - 'SYSRES_CONST_EDOC_PASSWORD_ENCODE_CODE ' + - 'SYSRES_CONST_EDOC_READONLY_ACCESS_CODE ' + - 'SYSRES_CONST_EDOC_SHELL_LIFE_TYPE_VIEW_VALUE ' + - 'SYSRES_CONST_EDOC_SIZE_RESTRICTION_PRIORITY_REQUISITE_CODE ' + - 'SYSRES_CONST_EDOC_STORAGE_CHECK_ACCESS_RIGHTS_REQUISITE_CODE ' + - 'SYSRES_CONST_EDOC_STORAGE_COMPUTER_NAME_REQUISITE_CODE ' + - 'SYSRES_CONST_EDOC_STORAGE_DATABASE_NAME_REQUISITE_CODE ' + - 'SYSRES_CONST_EDOC_STORAGE_EDIT_IN_STORAGE_REQUISITE_CODE ' + - 'SYSRES_CONST_EDOC_STORAGE_LOCAL_PATH_REQUISITE_CODE ' + - 'SYSRES_CONST_EDOC_STORAGE_SHARED_SOURCE_NAME_REQUISITE_CODE ' + - 'SYSRES_CONST_EDOC_TEMPLATE_REQUISITE_CODE ' + - 'SYSRES_CONST_EDOC_TYPES_REFERENCE_CODE ' + - 'SYSRES_CONST_EDOC_VERSION_ACTIVE_STAGE_CODE ' + - 'SYSRES_CONST_EDOC_VERSION_DESIGN_STAGE_CODE ' + - 'SYSRES_CONST_EDOC_VERSION_OBSOLETE_STAGE_CODE ' + - 'SYSRES_CONST_EDOC_WRITE_ACCES_CODE ' + - 'SYSRES_CONST_EDOCUMENT_CARD_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE ' + - 'SYSRES_CONST_ENCODE_CERTIFICATE_TYPE_CODE ' + - 'SYSRES_CONST_END_DATE_REQUISITE_CODE ' + - 'SYSRES_CONST_ENUMERATION_TYPE_REQUISITE_CODE ' + - 'SYSRES_CONST_EXECUTE_ACCESS_RIGHTS_TYPE_CODE ' + - 'SYSRES_CONST_EXECUTIVE_FILE_STORAGE_TYPE ' + - 'SYSRES_CONST_EXIST_CONST ' + - 'SYSRES_CONST_EXIST_VALUE ' + - 'SYSRES_CONST_EXPORT_LOCK_TYPE_ASK ' + - 'SYSRES_CONST_EXPORT_LOCK_TYPE_WITH_LOCK ' + - 'SYSRES_CONST_EXPORT_LOCK_TYPE_WITHOUT_LOCK ' + - 'SYSRES_CONST_EXPORT_VERSION_TYPE_ASK ' + - 'SYSRES_CONST_EXPORT_VERSION_TYPE_LAST ' + - 'SYSRES_CONST_EXPORT_VERSION_TYPE_LAST_ACTIVE ' + - 'SYSRES_CONST_EXTENSION_REQUISITE_CODE ' + - 'SYSRES_CONST_FILTER_NAME_REQUISITE_CODE ' + - 'SYSRES_CONST_FILTER_REQUISITE_CODE ' + - 'SYSRES_CONST_FILTER_TYPE_COMMON_CODE ' + - 'SYSRES_CONST_FILTER_TYPE_COMMON_NAME ' + - 'SYSRES_CONST_FILTER_TYPE_USER_CODE ' + - 'SYSRES_CONST_FILTER_TYPE_USER_NAME ' + - 'SYSRES_CONST_FILTER_VALUE_REQUISITE_NAME ' + - 'SYSRES_CONST_FLOAT_NUMBER_FORMAT_CHAR ' + - 'SYSRES_CONST_FLOAT_REQUISITE_TYPE ' + - 'SYSRES_CONST_FOLDER_AUTHOR_VALUE ' + - 'SYSRES_CONST_FOLDER_KIND_ANY_OBJECTS ' + - 'SYSRES_CONST_FOLDER_KIND_COMPONENTS ' + - 'SYSRES_CONST_FOLDER_KIND_EDOCS ' + - 'SYSRES_CONST_FOLDER_KIND_JOBS ' + - 'SYSRES_CONST_FOLDER_KIND_TASKS ' + - 'SYSRES_CONST_FOLDER_TYPE_COMMON ' + - 'SYSRES_CONST_FOLDER_TYPE_COMPONENT ' + - 'SYSRES_CONST_FOLDER_TYPE_FAVORITES ' + - 'SYSRES_CONST_FOLDER_TYPE_INBOX ' + - 'SYSRES_CONST_FOLDER_TYPE_OUTBOX ' + - 'SYSRES_CONST_FOLDER_TYPE_QUICK_LAUNCH ' + - 'SYSRES_CONST_FOLDER_TYPE_SEARCH ' + - 'SYSRES_CONST_FOLDER_TYPE_SHORTCUTS ' + - 'SYSRES_CONST_FOLDER_TYPE_USER ' + - 'SYSRES_CONST_FROM_DICTIONARY_ENUM_METHOD_FLAG ' + - 'SYSRES_CONST_FULL_SUBSTITUTE_TYPE ' + - 'SYSRES_CONST_FULL_SUBSTITUTE_TYPE_CODE ' + - 'SYSRES_CONST_FUNCTION_CANCEL_RESULT ' + - 'SYSRES_CONST_FUNCTION_CATEGORY_SYSTEM ' + - 'SYSRES_CONST_FUNCTION_CATEGORY_USER ' + - 'SYSRES_CONST_FUNCTION_FAILURE_RESULT ' + - 'SYSRES_CONST_FUNCTION_SAVE_RESULT ' + - 'SYSRES_CONST_GENERATED_REQUISITE ' + - 'SYSRES_CONST_GREEN_LIFE_CYCLE_STAGE_FONT_COLOR ' + - 'SYSRES_CONST_GROUP_ACCOUNT_TYPE_VALUE_CODE ' + - 'SYSRES_CONST_GROUP_CATEGORY_NORMAL_CODE ' + - 'SYSRES_CONST_GROUP_CATEGORY_NORMAL_NAME ' + - 'SYSRES_CONST_GROUP_CATEGORY_SERVICE_CODE ' + - 'SYSRES_CONST_GROUP_CATEGORY_SERVICE_NAME ' + - 'SYSRES_CONST_GROUP_COMMON_CATEGORY_FIELD_VALUE ' + - 'SYSRES_CONST_GROUP_FULL_NAME_REQUISITE_CODE ' + - 'SYSRES_CONST_GROUP_NAME_REQUISITE_CODE ' + - 'SYSRES_CONST_GROUP_RIGHTS_T_REQUISITE_CODE ' + - 'SYSRES_CONST_GROUP_SERVER_CODES_REQUISITE_CODE ' + - 'SYSRES_CONST_GROUP_SERVER_NAME_REQUISITE_CODE ' + - 'SYSRES_CONST_GROUP_SERVICE_CATEGORY_FIELD_VALUE ' + - 'SYSRES_CONST_GROUP_USER_REQUISITE_CODE ' + - 'SYSRES_CONST_GROUPS_REFERENCE_CODE ' + - 'SYSRES_CONST_GROUPS_REQUISITE_CODE ' + - 'SYSRES_CONST_HIDDEN_MODE_NAME ' + - 'SYSRES_CONST_HIGH_LVL_REQUISITE_CODE ' + - 'SYSRES_CONST_HISTORY_ACTION_CREATE_CODE ' + - 'SYSRES_CONST_HISTORY_ACTION_DELETE_CODE ' + - 'SYSRES_CONST_HISTORY_ACTION_EDIT_CODE ' + - 'SYSRES_CONST_HOUR_CHAR ' + - 'SYSRES_CONST_ID_REQUISITE_CODE ' + - 'SYSRES_CONST_IDSPS_REQUISITE_CODE ' + - 'SYSRES_CONST_IMAGE_MODE_COLOR ' + - 'SYSRES_CONST_IMAGE_MODE_GREYSCALE ' + - 'SYSRES_CONST_IMAGE_MODE_MONOCHROME ' + - 'SYSRES_CONST_IMPORTANCE_HIGH ' + - 'SYSRES_CONST_IMPORTANCE_LOW ' + - 'SYSRES_CONST_IMPORTANCE_NORMAL ' + - 'SYSRES_CONST_IN_DESIGN_VERSION_STATE_PICK_VALUE ' + - 'SYSRES_CONST_INCOMING_WORK_RULE_TYPE_CODE ' + - 'SYSRES_CONST_INT_REQUISITE ' + - 'SYSRES_CONST_INT_REQUISITE_TYPE ' + - 'SYSRES_CONST_INTEGER_NUMBER_FORMAT_CHAR ' + - 'SYSRES_CONST_INTEGER_TYPE_CHAR ' + - 'SYSRES_CONST_IS_GENERATED_REQUISITE_NEGATIVE_VALUE ' + - 'SYSRES_CONST_IS_PUBLIC_ROLE_REQUISITE_CODE ' + - 'SYSRES_CONST_IS_REMOTE_USER_NEGATIVE_VALUE ' + - 'SYSRES_CONST_IS_REMOTE_USER_POSITIVE_VALUE ' + - 'SYSRES_CONST_IS_STORED_REQUISITE_NEGATIVE_VALUE ' + - 'SYSRES_CONST_IS_STORED_REQUISITE_STORED_VALUE ' + - 'SYSRES_CONST_ITALIC_LIFE_CYCLE_STAGE_DRAW_STYLE ' + - 'SYSRES_CONST_JOB_BLOCK_DESCRIPTION ' + - 'SYSRES_CONST_JOB_KIND_CONTROL_JOB ' + - 'SYSRES_CONST_JOB_KIND_JOB ' + - 'SYSRES_CONST_JOB_KIND_NOTICE ' + - 'SYSRES_CONST_JOB_STATE_ABORTED ' + - 'SYSRES_CONST_JOB_STATE_COMPLETE ' + - 'SYSRES_CONST_JOB_STATE_WORKING ' + - 'SYSRES_CONST_KIND_REQUISITE_CODE ' + - 'SYSRES_CONST_KIND_REQUISITE_NAME ' + - 'SYSRES_CONST_KINDS_CREATE_SHADOW_COPIES_REQUISITE_CODE ' + - 'SYSRES_CONST_KINDS_DEFAULT_EDOC_LIFE_STAGE_REQUISITE_CODE ' + - 'SYSRES_CONST_KINDS_EDOC_ALL_TEPLATES_ALLOWED_REQUISITE_CODE ' + - 'SYSRES_CONST_KINDS_EDOC_ALLOW_LIFE_CYCLE_STAGE_CHANGING_REQUISITE_CODE ' + - 'SYSRES_CONST_KINDS_EDOC_ALLOW_MULTIPLE_ACTIVE_VERSIONS_REQUISITE_CODE ' + - 'SYSRES_CONST_KINDS_EDOC_SHARE_ACCES_RIGHTS_BY_DEFAULT_CODE ' + - 'SYSRES_CONST_KINDS_EDOC_TEMPLATE_REQUISITE_CODE ' + - 'SYSRES_CONST_KINDS_EDOC_TYPE_REQUISITE_CODE ' + - 'SYSRES_CONST_KINDS_SIGNERS_REQUISITES_CODE ' + - 'SYSRES_CONST_KOD_INPUT_TYPE ' + - 'SYSRES_CONST_LAST_UPDATE_DATE_REQUISITE_CODE ' + - 'SYSRES_CONST_LIFE_CYCLE_START_STAGE_REQUISITE_CODE ' + - 'SYSRES_CONST_LILAC_LIFE_CYCLE_STAGE_FONT_COLOR ' + - 'SYSRES_CONST_LINK_OBJECT_KIND_COMPONENT ' + - 'SYSRES_CONST_LINK_OBJECT_KIND_DOCUMENT ' + - 'SYSRES_CONST_LINK_OBJECT_KIND_EDOC ' + - 'SYSRES_CONST_LINK_OBJECT_KIND_FOLDER ' + - 'SYSRES_CONST_LINK_OBJECT_KIND_JOB ' + - 'SYSRES_CONST_LINK_OBJECT_KIND_REFERENCE ' + - 'SYSRES_CONST_LINK_OBJECT_KIND_TASK ' + - 'SYSRES_CONST_LINK_REF_TYPE_REQUISITE_CODE ' + - 'SYSRES_CONST_LIST_REFERENCE_MODE_NAME ' + - 'SYSRES_CONST_LOCALIZATION_DICTIONARY_MAIN_VIEW_CODE ' + - 'SYSRES_CONST_MAIN_VIEW_CODE ' + - 'SYSRES_CONST_MANUAL_ENUM_METHOD_FLAG ' + - 'SYSRES_CONST_MASTER_COMP_TYPE_REQUISITE_CODE ' + - 'SYSRES_CONST_MASTER_TABLE_REC_ID_REQUISITE_CODE ' + - 'SYSRES_CONST_MAXIMIZED_MODE_NAME ' + - 'SYSRES_CONST_ME_VALUE ' + - 'SYSRES_CONST_MESSAGE_ATTENTION_CAPTION ' + - 'SYSRES_CONST_MESSAGE_CONFIRMATION_CAPTION ' + - 'SYSRES_CONST_MESSAGE_ERROR_CAPTION ' + - 'SYSRES_CONST_MESSAGE_INFORMATION_CAPTION ' + - 'SYSRES_CONST_MINIMIZED_MODE_NAME ' + - 'SYSRES_CONST_MINUTE_CHAR ' + - 'SYSRES_CONST_MODULE_REQUISITE_CODE ' + - 'SYSRES_CONST_MONITORING_BLOCK_DESCRIPTION ' + - 'SYSRES_CONST_MONTH_FORMAT_VALUE ' + - 'SYSRES_CONST_NAME_LOCALIZE_ID_REQUISITE_CODE ' + - 'SYSRES_CONST_NAME_REQUISITE_CODE ' + - 'SYSRES_CONST_NAME_SINGULAR_REQUISITE_CODE ' + - 'SYSRES_CONST_NAMEAN_INPUT_TYPE ' + - 'SYSRES_CONST_NEGATIVE_PICK_VALUE ' + - 'SYSRES_CONST_NEGATIVE_VALUE ' + - 'SYSRES_CONST_NO ' + - 'SYSRES_CONST_NO_PICK_VALUE ' + - 'SYSRES_CONST_NO_SIGNATURE_REQUISITE_CODE ' + - 'SYSRES_CONST_NO_VALUE ' + - 'SYSRES_CONST_NONE_ACCESS_RIGHTS_TYPE_CODE ' + - 'SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE ' + - 'SYSRES_CONST_NONOPERATING_RECORD_FLAG_VALUE_MASCULINE ' + - 'SYSRES_CONST_NORMAL_ACCESS_RIGHTS_TYPE_CODE ' + - 'SYSRES_CONST_NORMAL_LIFE_CYCLE_STAGE_DRAW_STYLE ' + - 'SYSRES_CONST_NORMAL_MODE_NAME ' + - 'SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_CODE ' + - 'SYSRES_CONST_NOT_ALLOWED_ACCESS_TYPE_NAME ' + - 'SYSRES_CONST_NOTE_REQUISITE_CODE ' + - 'SYSRES_CONST_NOTICE_BLOCK_DESCRIPTION ' + - 'SYSRES_CONST_NUM_REQUISITE ' + - 'SYSRES_CONST_NUM_STR_REQUISITE_CODE ' + - 'SYSRES_CONST_NUMERATION_AUTO_NOT_STRONG ' + - 'SYSRES_CONST_NUMERATION_AUTO_STRONG ' + - 'SYSRES_CONST_NUMERATION_FROM_DICTONARY ' + - 'SYSRES_CONST_NUMERATION_MANUAL ' + - 'SYSRES_CONST_NUMERIC_TYPE_CHAR ' + - 'SYSRES_CONST_NUMREQ_REQUISITE_CODE ' + - 'SYSRES_CONST_OBSOLETE_VERSION_STATE_PICK_VALUE ' + - 'SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE ' + - 'SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_CODE ' + - 'SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_FEMININE ' + - 'SYSRES_CONST_OPERATING_RECORD_FLAG_VALUE_MASCULINE ' + - 'SYSRES_CONST_OPTIONAL_FORM_COMP_REQCODE_PREFIX ' + - 'SYSRES_CONST_ORANGE_LIFE_CYCLE_STAGE_FONT_COLOR ' + - 'SYSRES_CONST_ORIGINALREF_REQUISITE_CODE ' + - 'SYSRES_CONST_OURFIRM_REF_CODE ' + - 'SYSRES_CONST_OURFIRM_REQUISITE_CODE ' + - 'SYSRES_CONST_OURFIRM_VAR ' + - 'SYSRES_CONST_OUTGOING_WORK_RULE_TYPE_CODE ' + - 'SYSRES_CONST_PICK_NEGATIVE_RESULT ' + - 'SYSRES_CONST_PICK_POSITIVE_RESULT ' + - 'SYSRES_CONST_PICK_REQUISITE ' + - 'SYSRES_CONST_PICK_REQUISITE_TYPE ' + - 'SYSRES_CONST_PICK_TYPE_CHAR ' + - 'SYSRES_CONST_PLAN_STATUS_REQUISITE_CODE ' + - 'SYSRES_CONST_PLATFORM_VERSION_COMMENT ' + - 'SYSRES_CONST_PLUGINS_SETTINGS_DESCRIPTION_REQUISITE_CODE ' + - 'SYSRES_CONST_POSITIVE_PICK_VALUE ' + - 'SYSRES_CONST_POWER_TO_CREATE_ACTION_CODE ' + - 'SYSRES_CONST_POWER_TO_SIGN_ACTION_CODE ' + - 'SYSRES_CONST_PRIORITY_REQUISITE_CODE ' + - 'SYSRES_CONST_QUALIFIED_TASK_TYPE ' + - 'SYSRES_CONST_QUALIFIED_TASK_TYPE_CODE ' + - 'SYSRES_CONST_RECSTAT_REQUISITE_CODE ' + - 'SYSRES_CONST_RED_LIFE_CYCLE_STAGE_FONT_COLOR ' + - 'SYSRES_CONST_REF_ID_T_REF_TYPE_REQUISITE_CODE ' + - 'SYSRES_CONST_REF_REQUISITE ' + - 'SYSRES_CONST_REF_REQUISITE_TYPE ' + - 'SYSRES_CONST_REF_REQUISITES_REFERENCE_CODE_SELECTED_REQUISITE ' + - 'SYSRES_CONST_REFERENCE_RECORD_HISTORY_CREATE_ACTION_CODE ' + - 'SYSRES_CONST_REFERENCE_RECORD_HISTORY_DELETE_ACTION_CODE ' + - 'SYSRES_CONST_REFERENCE_RECORD_HISTORY_MODIFY_ACTION_CODE ' + - 'SYSRES_CONST_REFERENCE_TYPE_CHAR ' + - 'SYSRES_CONST_REFERENCE_TYPE_REQUISITE_NAME ' + - 'SYSRES_CONST_REFERENCES_ADD_PARAMS_REQUISITE_CODE ' + - 'SYSRES_CONST_REFERENCES_DISPLAY_REQUISITE_REQUISITE_CODE ' + - 'SYSRES_CONST_REMOTE_SERVER_STATUS_WORKING ' + - 'SYSRES_CONST_REMOTE_SERVER_TYPE_MAIN ' + - 'SYSRES_CONST_REMOTE_SERVER_TYPE_SECONDARY ' + - 'SYSRES_CONST_REMOTE_USER_FLAG_VALUE_CODE ' + - 'SYSRES_CONST_REPORT_APP_EDITOR_INTERNAL ' + - 'SYSRES_CONST_REPORT_BASE_REPORT_ID_REQUISITE_CODE ' + - 'SYSRES_CONST_REPORT_BASE_REPORT_REQUISITE_CODE ' + - 'SYSRES_CONST_REPORT_SCRIPT_REQUISITE_CODE ' + - 'SYSRES_CONST_REPORT_TEMPLATE_REQUISITE_CODE ' + - 'SYSRES_CONST_REPORT_VIEWER_CODE_REQUISITE_CODE ' + - 'SYSRES_CONST_REQ_ALLOW_COMPONENT_DEFAULT_VALUE ' + - 'SYSRES_CONST_REQ_ALLOW_RECORD_DEFAULT_VALUE ' + - 'SYSRES_CONST_REQ_ALLOW_SERVER_COMPONENT_DEFAULT_VALUE ' + - 'SYSRES_CONST_REQ_MODE_AVAILABLE_CODE ' + - 'SYSRES_CONST_REQ_MODE_EDIT_CODE ' + - 'SYSRES_CONST_REQ_MODE_HIDDEN_CODE ' + - 'SYSRES_CONST_REQ_MODE_NOT_AVAILABLE_CODE ' + - 'SYSRES_CONST_REQ_MODE_VIEW_CODE ' + - 'SYSRES_CONST_REQ_NUMBER_REQUISITE_CODE ' + - 'SYSRES_CONST_REQ_SECTION_VALUE ' + - 'SYSRES_CONST_REQ_TYPE_VALUE ' + - 'SYSRES_CONST_REQUISITE_FORMAT_BY_UNIT ' + - 'SYSRES_CONST_REQUISITE_FORMAT_DATE_FULL ' + - 'SYSRES_CONST_REQUISITE_FORMAT_DATE_TIME ' + - 'SYSRES_CONST_REQUISITE_FORMAT_LEFT ' + - 'SYSRES_CONST_REQUISITE_FORMAT_RIGHT ' + - 'SYSRES_CONST_REQUISITE_FORMAT_WITHOUT_UNIT ' + - 'SYSRES_CONST_REQUISITE_NUMBER_REQUISITE_CODE ' + - 'SYSRES_CONST_REQUISITE_SECTION_ACTIONS ' + - 'SYSRES_CONST_REQUISITE_SECTION_BUTTON ' + - 'SYSRES_CONST_REQUISITE_SECTION_BUTTONS ' + - 'SYSRES_CONST_REQUISITE_SECTION_CARD ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE10 ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE11 ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE12 ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE13 ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE14 ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE15 ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE16 ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE17 ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE18 ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE19 ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE2 ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE20 ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE21 ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE22 ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE23 ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE24 ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE3 ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE4 ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE5 ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE6 ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE7 ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE8 ' + - 'SYSRES_CONST_REQUISITE_SECTION_TABLE9 ' + - 'SYSRES_CONST_REQUISITES_PSEUDOREFERENCE_REQUISITE_NUMBER_REQUISITE_CODE ' + - 'SYSRES_CONST_RIGHT_ALIGNMENT_CODE ' + - 'SYSRES_CONST_ROLES_REFERENCE_CODE ' + - 'SYSRES_CONST_ROUTE_STEP_AFTER_RUS ' + - 'SYSRES_CONST_ROUTE_STEP_AND_CONDITION_RUS ' + - 'SYSRES_CONST_ROUTE_STEP_OR_CONDITION_RUS ' + - 'SYSRES_CONST_ROUTE_TYPE_COMPLEX ' + - 'SYSRES_CONST_ROUTE_TYPE_PARALLEL ' + - 'SYSRES_CONST_ROUTE_TYPE_SERIAL ' + - 'SYSRES_CONST_SBDATASETDESC_NEGATIVE_VALUE ' + - 'SYSRES_CONST_SBDATASETDESC_POSITIVE_VALUE ' + - 'SYSRES_CONST_SBVIEWSDESC_POSITIVE_VALUE ' + - 'SYSRES_CONST_SCRIPT_BLOCK_DESCRIPTION ' + - 'SYSRES_CONST_SEARCH_BY_TEXT_REQUISITE_CODE ' + - 'SYSRES_CONST_SEARCHES_COMPONENT_CONTENT ' + - 'SYSRES_CONST_SEARCHES_CRITERIA_ACTION_NAME ' + - 'SYSRES_CONST_SEARCHES_EDOC_CONTENT ' + - 'SYSRES_CONST_SEARCHES_FOLDER_CONTENT ' + - 'SYSRES_CONST_SEARCHES_JOB_CONTENT ' + - 'SYSRES_CONST_SEARCHES_REFERENCE_CODE ' + - 'SYSRES_CONST_SEARCHES_TASK_CONTENT ' + - 'SYSRES_CONST_SECOND_CHAR ' + - 'SYSRES_CONST_SECTION_REQUISITE_ACTIONS_VALUE ' + - 'SYSRES_CONST_SECTION_REQUISITE_CARD_VALUE ' + - 'SYSRES_CONST_SECTION_REQUISITE_CODE ' + - 'SYSRES_CONST_SECTION_REQUISITE_DETAIL_1_VALUE ' + - 'SYSRES_CONST_SECTION_REQUISITE_DETAIL_2_VALUE ' + - 'SYSRES_CONST_SECTION_REQUISITE_DETAIL_3_VALUE ' + - 'SYSRES_CONST_SECTION_REQUISITE_DETAIL_4_VALUE ' + - 'SYSRES_CONST_SECTION_REQUISITE_DETAIL_5_VALUE ' + - 'SYSRES_CONST_SECTION_REQUISITE_DETAIL_6_VALUE ' + - 'SYSRES_CONST_SELECT_REFERENCE_MODE_NAME ' + - 'SYSRES_CONST_SELECT_TYPE_SELECTABLE ' + - 'SYSRES_CONST_SELECT_TYPE_SELECTABLE_ONLY_CHILD ' + - 'SYSRES_CONST_SELECT_TYPE_SELECTABLE_WITH_CHILD ' + - 'SYSRES_CONST_SELECT_TYPE_UNSLECTABLE ' + - 'SYSRES_CONST_SERVER_TYPE_MAIN ' + - 'SYSRES_CONST_SERVICE_USER_CATEGORY_FIELD_VALUE ' + - 'SYSRES_CONST_SETTINGS_USER_REQUISITE_CODE ' + - 'SYSRES_CONST_SIGNATURE_AND_ENCODE_CERTIFICATE_TYPE_CODE ' + - 'SYSRES_CONST_SIGNATURE_CERTIFICATE_TYPE_CODE ' + - 'SYSRES_CONST_SINGULAR_TITLE_REQUISITE_CODE ' + - 'SYSRES_CONST_SQL_SERVER_AUTHENTIFICATION_FLAG_VALUE_CODE ' + - 'SYSRES_CONST_SQL_SERVER_ENCODE_AUTHENTIFICATION_FLAG_VALUE_CODE ' + - 'SYSRES_CONST_STANDART_ROUTE_REFERENCE_CODE ' + - 'SYSRES_CONST_STANDART_ROUTE_REFERENCE_COMMENT_REQUISITE_CODE ' + - 'SYSRES_CONST_STANDART_ROUTES_GROUPS_REFERENCE_CODE ' + - 'SYSRES_CONST_STATE_REQ_NAME ' + - 'SYSRES_CONST_STATE_REQUISITE_ACTIVE_VALUE ' + - 'SYSRES_CONST_STATE_REQUISITE_CLOSED_VALUE ' + - 'SYSRES_CONST_STATE_REQUISITE_CODE ' + - 'SYSRES_CONST_STATIC_ROLE_TYPE_CODE ' + - 'SYSRES_CONST_STATUS_PLAN_DEFAULT_VALUE ' + - 'SYSRES_CONST_STATUS_VALUE_AUTOCLEANING ' + - 'SYSRES_CONST_STATUS_VALUE_BLUE_SQUARE ' + - 'SYSRES_CONST_STATUS_VALUE_COMPLETE ' + - 'SYSRES_CONST_STATUS_VALUE_GREEN_SQUARE ' + - 'SYSRES_CONST_STATUS_VALUE_ORANGE_SQUARE ' + - 'SYSRES_CONST_STATUS_VALUE_PURPLE_SQUARE ' + - 'SYSRES_CONST_STATUS_VALUE_RED_SQUARE ' + - 'SYSRES_CONST_STATUS_VALUE_SUSPEND ' + - 'SYSRES_CONST_STATUS_VALUE_YELLOW_SQUARE ' + - 'SYSRES_CONST_STDROUTE_SHOW_TO_USERS_REQUISITE_CODE ' + - 'SYSRES_CONST_STORAGE_TYPE_FILE ' + - 'SYSRES_CONST_STORAGE_TYPE_SQL_SERVER ' + - 'SYSRES_CONST_STR_REQUISITE ' + - 'SYSRES_CONST_STRIKEOUT_LIFE_CYCLE_STAGE_DRAW_STYLE ' + - 'SYSRES_CONST_STRING_FORMAT_LEFT_ALIGN_CHAR ' + - 'SYSRES_CONST_STRING_FORMAT_RIGHT_ALIGN_CHAR ' + - 'SYSRES_CONST_STRING_REQUISITE_CODE ' + - 'SYSRES_CONST_STRING_REQUISITE_TYPE ' + - 'SYSRES_CONST_STRING_TYPE_CHAR ' + - 'SYSRES_CONST_SUBSTITUTES_PSEUDOREFERENCE_CODE ' + - 'SYSRES_CONST_SUBTASK_BLOCK_DESCRIPTION ' + - 'SYSRES_CONST_SYSTEM_SETTING_CURRENT_USER_PARAM_VALUE ' + - 'SYSRES_CONST_SYSTEM_SETTING_EMPTY_VALUE_PARAM_VALUE ' + - 'SYSRES_CONST_SYSTEM_VERSION_COMMENT ' + - 'SYSRES_CONST_TASK_ACCESS_TYPE_ALL ' + - 'SYSRES_CONST_TASK_ACCESS_TYPE_ALL_MEMBERS ' + - 'SYSRES_CONST_TASK_ACCESS_TYPE_MANUAL ' + - 'SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION ' + - 'SYSRES_CONST_TASK_ENCODE_TYPE_CERTIFICATION_AND_PASSWORD ' + - 'SYSRES_CONST_TASK_ENCODE_TYPE_NONE ' + - 'SYSRES_CONST_TASK_ENCODE_TYPE_PASSWORD ' + - 'SYSRES_CONST_TASK_ROUTE_ALL_CONDITION ' + - 'SYSRES_CONST_TASK_ROUTE_AND_CONDITION ' + - 'SYSRES_CONST_TASK_ROUTE_OR_CONDITION ' + - 'SYSRES_CONST_TASK_STATE_ABORTED ' + - 'SYSRES_CONST_TASK_STATE_COMPLETE ' + - 'SYSRES_CONST_TASK_STATE_CONTINUED ' + - 'SYSRES_CONST_TASK_STATE_CONTROL ' + - 'SYSRES_CONST_TASK_STATE_INIT ' + - 'SYSRES_CONST_TASK_STATE_WORKING ' + - 'SYSRES_CONST_TASK_TITLE ' + - 'SYSRES_CONST_TASK_TYPES_GROUPS_REFERENCE_CODE ' + - 'SYSRES_CONST_TASK_TYPES_REFERENCE_CODE ' + - 'SYSRES_CONST_TEMPLATES_REFERENCE_CODE ' + - 'SYSRES_CONST_TEST_DATE_REQUISITE_NAME ' + - 'SYSRES_CONST_TEST_DEV_DATABASE_NAME ' + - 'SYSRES_CONST_TEST_DEV_SYSTEM_CODE ' + - 'SYSRES_CONST_TEST_EDMS_DATABASE_NAME ' + - 'SYSRES_CONST_TEST_EDMS_MAIN_CODE ' + - 'SYSRES_CONST_TEST_EDMS_MAIN_DB_NAME ' + - 'SYSRES_CONST_TEST_EDMS_SECOND_CODE ' + - 'SYSRES_CONST_TEST_EDMS_SECOND_DB_NAME ' + - 'SYSRES_CONST_TEST_EDMS_SYSTEM_CODE ' + - 'SYSRES_CONST_TEST_NUMERIC_REQUISITE_NAME ' + - 'SYSRES_CONST_TEXT_REQUISITE ' + - 'SYSRES_CONST_TEXT_REQUISITE_CODE ' + - 'SYSRES_CONST_TEXT_REQUISITE_TYPE ' + - 'SYSRES_CONST_TEXT_TYPE_CHAR ' + - 'SYSRES_CONST_TYPE_CODE_REQUISITE_CODE ' + - 'SYSRES_CONST_TYPE_REQUISITE_CODE ' + - 'SYSRES_CONST_UNDEFINED_LIFE_CYCLE_STAGE_FONT_COLOR ' + - 'SYSRES_CONST_UNITS_SECTION_ID_REQUISITE_CODE ' + - 'SYSRES_CONST_UNITS_SECTION_REQUISITE_CODE ' + - 'SYSRES_CONST_UNOPERATING_RECORD_FLAG_VALUE_CODE ' + - 'SYSRES_CONST_UNSTORED_DATA_REQUISITE_CODE ' + - 'SYSRES_CONST_UNSTORED_DATA_REQUISITE_NAME ' + - 'SYSRES_CONST_USE_ACCESS_TYPE_CODE ' + - 'SYSRES_CONST_USE_ACCESS_TYPE_NAME ' + - 'SYSRES_CONST_USER_ACCOUNT_TYPE_VALUE_CODE ' + - 'SYSRES_CONST_USER_ADDITIONAL_INFORMATION_REQUISITE_CODE ' + - 'SYSRES_CONST_USER_AND_GROUP_ID_FROM_PSEUDOREFERENCE_REQUISITE_CODE ' + - 'SYSRES_CONST_USER_CATEGORY_NORMAL ' + - 'SYSRES_CONST_USER_CERTIFICATE_REQUISITE_CODE ' + - 'SYSRES_CONST_USER_CERTIFICATE_STATE_REQUISITE_CODE ' + - 'SYSRES_CONST_USER_CERTIFICATE_SUBJECT_NAME_REQUISITE_CODE ' + - 'SYSRES_CONST_USER_CERTIFICATE_THUMBPRINT_REQUISITE_CODE ' + - 'SYSRES_CONST_USER_COMMON_CATEGORY ' + - 'SYSRES_CONST_USER_COMMON_CATEGORY_CODE ' + - 'SYSRES_CONST_USER_FULL_NAME_REQUISITE_CODE ' + - 'SYSRES_CONST_USER_GROUP_TYPE_REQUISITE_CODE ' + - 'SYSRES_CONST_USER_LOGIN_REQUISITE_CODE ' + - 'SYSRES_CONST_USER_REMOTE_CONTROLLER_REQUISITE_CODE ' + - 'SYSRES_CONST_USER_REMOTE_SYSTEM_REQUISITE_CODE ' + - 'SYSRES_CONST_USER_RIGHTS_T_REQUISITE_CODE ' + - 'SYSRES_CONST_USER_SERVER_NAME_REQUISITE_CODE ' + - 'SYSRES_CONST_USER_SERVICE_CATEGORY ' + - 'SYSRES_CONST_USER_SERVICE_CATEGORY_CODE ' + - 'SYSRES_CONST_USER_STATUS_ADMINISTRATOR_CODE ' + - 'SYSRES_CONST_USER_STATUS_ADMINISTRATOR_NAME ' + - 'SYSRES_CONST_USER_STATUS_DEVELOPER_CODE ' + - 'SYSRES_CONST_USER_STATUS_DEVELOPER_NAME ' + - 'SYSRES_CONST_USER_STATUS_DISABLED_CODE ' + - 'SYSRES_CONST_USER_STATUS_DISABLED_NAME ' + - 'SYSRES_CONST_USER_STATUS_SYSTEM_DEVELOPER_CODE ' + - 'SYSRES_CONST_USER_STATUS_USER_CODE ' + - 'SYSRES_CONST_USER_STATUS_USER_NAME ' + - 'SYSRES_CONST_USER_STATUS_USER_NAME_DEPRECATED ' + - 'SYSRES_CONST_USER_TYPE_FIELD_VALUE_USER ' + - 'SYSRES_CONST_USER_TYPE_REQUISITE_CODE ' + - 'SYSRES_CONST_USERS_CONTROLLER_REQUISITE_CODE ' + - 'SYSRES_CONST_USERS_IS_MAIN_SERVER_REQUISITE_CODE ' + - 'SYSRES_CONST_USERS_REFERENCE_CODE ' + - 'SYSRES_CONST_USERS_REGISTRATION_CERTIFICATES_ACTION_NAME ' + - 'SYSRES_CONST_USERS_REQUISITE_CODE ' + - 'SYSRES_CONST_USERS_SYSTEM_REQUISITE_CODE ' + - 'SYSRES_CONST_USERS_USER_ACCESS_RIGHTS_TYPR_REQUISITE_CODE ' + - 'SYSRES_CONST_USERS_USER_AUTHENTICATION_REQUISITE_CODE ' + - 'SYSRES_CONST_USERS_USER_COMPONENT_REQUISITE_CODE ' + - 'SYSRES_CONST_USERS_USER_GROUP_REQUISITE_CODE ' + - 'SYSRES_CONST_USERS_VIEW_CERTIFICATES_ACTION_NAME ' + - 'SYSRES_CONST_VIEW_DEFAULT_CODE ' + - 'SYSRES_CONST_VIEW_DEFAULT_NAME ' + - 'SYSRES_CONST_VIEWER_REQUISITE_CODE ' + - 'SYSRES_CONST_WAITING_BLOCK_DESCRIPTION ' + - 'SYSRES_CONST_WIZARD_FORM_LABEL_TEST_STRING ' + - 'SYSRES_CONST_WIZARD_QUERY_PARAM_HEIGHT_ETALON_STRING ' + - 'SYSRES_CONST_WIZARD_REFERENCE_COMMENT_REQUISITE_CODE ' + - 'SYSRES_CONST_WORK_RULES_DESCRIPTION_REQUISITE_CODE ' + - 'SYSRES_CONST_WORK_TIME_CALENDAR_REFERENCE_CODE ' + - 'SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE ' + - 'SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE ' + - 'SYSRES_CONST_WORK_WORKFLOW_HARD_ROUTE_TYPE_VALUE_CODE_RUS ' + - 'SYSRES_CONST_WORK_WORKFLOW_SOFT_ROUTE_TYPE_VALUE_CODE_RUS ' + - 'SYSRES_CONST_WORKFLOW_ROUTE_TYPR_HARD ' + - 'SYSRES_CONST_WORKFLOW_ROUTE_TYPR_SOFT ' + - 'SYSRES_CONST_XML_ENCODING ' + - 'SYSRES_CONST_XREC_STAT_REQUISITE_CODE ' + - 'SYSRES_CONST_XRECID_FIELD_NAME ' + - 'SYSRES_CONST_YES ' + - 'SYSRES_CONST_YES_NO_2_REQUISITE_CODE ' + - 'SYSRES_CONST_YES_NO_REQUISITE_CODE ' + - 'SYSRES_CONST_YES_NO_T_REF_TYPE_REQUISITE_CODE ' + - 'SYSRES_CONST_YES_PICK_VALUE ' + - 'SYSRES_CONST_YES_VALUE '; - - // Base constant - const base_constants = 'CR FALSE nil NO_VALUE NULL TAB TRUE YES_VALUE '; - - // Base group name - const base_group_name_constants = - 'ADMINISTRATORS_GROUP_NAME CUSTOMIZERS_GROUP_NAME DEVELOPERS_GROUP_NAME SERVICE_USERS_GROUP_NAME '; - - // Decision block properties - const decision_block_properties_constants = - 'DECISION_BLOCK_FIRST_OPERAND_PROPERTY DECISION_BLOCK_NAME_PROPERTY DECISION_BLOCK_OPERATION_PROPERTY ' + - 'DECISION_BLOCK_RESULT_TYPE_PROPERTY DECISION_BLOCK_SECOND_OPERAND_PROPERTY '; - - // File extension - const file_extension_constants = - 'ANY_FILE_EXTENTION COMPRESSED_DOCUMENT_EXTENSION EXTENDED_DOCUMENT_EXTENSION ' + - 'SHORT_COMPRESSED_DOCUMENT_EXTENSION SHORT_EXTENDED_DOCUMENT_EXTENSION '; - - // Job block properties - const job_block_properties_constants = - 'JOB_BLOCK_ABORT_DEADLINE_PROPERTY ' + - 'JOB_BLOCK_AFTER_FINISH_EVENT ' + - 'JOB_BLOCK_AFTER_QUERY_PARAMETERS_EVENT ' + - 'JOB_BLOCK_ATTACHMENT_PROPERTY ' + - 'JOB_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY ' + - 'JOB_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY ' + - 'JOB_BLOCK_BEFORE_QUERY_PARAMETERS_EVENT ' + - 'JOB_BLOCK_BEFORE_START_EVENT ' + - 'JOB_BLOCK_CREATED_JOBS_PROPERTY ' + - 'JOB_BLOCK_DEADLINE_PROPERTY ' + - 'JOB_BLOCK_EXECUTION_RESULTS_PROPERTY ' + - 'JOB_BLOCK_IS_PARALLEL_PROPERTY ' + - 'JOB_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY ' + - 'JOB_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY ' + - 'JOB_BLOCK_JOB_TEXT_PROPERTY ' + - 'JOB_BLOCK_NAME_PROPERTY ' + - 'JOB_BLOCK_NEED_SIGN_ON_PERFORM_PROPERTY ' + - 'JOB_BLOCK_PERFORMER_PROPERTY ' + - 'JOB_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY ' + - 'JOB_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY ' + - 'JOB_BLOCK_SUBJECT_PROPERTY '; - - // Language code - const language_code_constants = - 'ENGLISH_LANGUAGE_CODE RUSSIAN_LANGUAGE_CODE '; - - // Launching external applications - const launching_external_applications_constants = - 'smHidden smMaximized smMinimized smNormal wmNo wmYes '; - - // Link kind - const link_kind_constants = - 'COMPONENT_TOKEN_LINK_KIND ' + - 'DOCUMENT_LINK_KIND ' + - 'EDOCUMENT_LINK_KIND ' + - 'FOLDER_LINK_KIND ' + - 'JOB_LINK_KIND ' + - 'REFERENCE_LINK_KIND ' + - 'TASK_LINK_KIND '; - - // Lock type - const lock_type_constants = - 'COMPONENT_TOKEN_LOCK_TYPE EDOCUMENT_VERSION_LOCK_TYPE '; - - // Monitor block properties - const monitor_block_properties_constants = - 'MONITOR_BLOCK_AFTER_FINISH_EVENT ' + - 'MONITOR_BLOCK_BEFORE_START_EVENT ' + - 'MONITOR_BLOCK_DEADLINE_PROPERTY ' + - 'MONITOR_BLOCK_INTERVAL_PROPERTY ' + - 'MONITOR_BLOCK_INTERVAL_TYPE_PROPERTY ' + - 'MONITOR_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY ' + - 'MONITOR_BLOCK_NAME_PROPERTY ' + - 'MONITOR_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY ' + - 'MONITOR_BLOCK_SEARCH_SCRIPT_PROPERTY '; - - // Notice block properties - const notice_block_properties_constants = - 'NOTICE_BLOCK_AFTER_FINISH_EVENT ' + - 'NOTICE_BLOCK_ATTACHMENT_PROPERTY ' + - 'NOTICE_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY ' + - 'NOTICE_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY ' + - 'NOTICE_BLOCK_BEFORE_START_EVENT ' + - 'NOTICE_BLOCK_CREATED_NOTICES_PROPERTY ' + - 'NOTICE_BLOCK_DEADLINE_PROPERTY ' + - 'NOTICE_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY ' + - 'NOTICE_BLOCK_NAME_PROPERTY ' + - 'NOTICE_BLOCK_NOTICE_TEXT_PROPERTY ' + - 'NOTICE_BLOCK_PERFORMER_PROPERTY ' + - 'NOTICE_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY ' + - 'NOTICE_BLOCK_SUBJECT_PROPERTY '; - - // Object events - const object_events_constants = - 'dseAfterCancel ' + - 'dseAfterClose ' + - 'dseAfterDelete ' + - 'dseAfterDeleteOutOfTransaction ' + - 'dseAfterInsert ' + - 'dseAfterOpen ' + - 'dseAfterScroll ' + - 'dseAfterUpdate ' + - 'dseAfterUpdateOutOfTransaction ' + - 'dseBeforeCancel ' + - 'dseBeforeClose ' + - 'dseBeforeDelete ' + - 'dseBeforeDetailUpdate ' + - 'dseBeforeInsert ' + - 'dseBeforeOpen ' + - 'dseBeforeUpdate ' + - 'dseOnAnyRequisiteChange ' + - 'dseOnCloseRecord ' + - 'dseOnDeleteError ' + - 'dseOnOpenRecord ' + - 'dseOnPrepareUpdate ' + - 'dseOnUpdateError ' + - 'dseOnUpdateRatifiedRecord ' + - 'dseOnValidDelete ' + - 'dseOnValidUpdate ' + - 'reOnChange ' + - 'reOnChangeValues ' + - 'SELECTION_BEGIN_ROUTE_EVENT ' + - 'SELECTION_END_ROUTE_EVENT '; - - // Object params - const object_params_constants = - 'CURRENT_PERIOD_IS_REQUIRED ' + - 'PREVIOUS_CARD_TYPE_NAME ' + - 'SHOW_RECORD_PROPERTIES_FORM '; - - // Other - const other_constants = - 'ACCESS_RIGHTS_SETTING_DIALOG_CODE ' + - 'ADMINISTRATOR_USER_CODE ' + - 'ANALYTIC_REPORT_TYPE ' + - 'asrtHideLocal ' + - 'asrtHideRemote ' + - 'CALCULATED_ROLE_TYPE_CODE ' + - 'COMPONENTS_REFERENCE_DEVELOPER_VIEW_CODE ' + - 'DCTS_TEST_PROTOCOLS_FOLDER_PATH ' + - 'E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED ' + - 'E_EDOC_VERSION_ALREADY_APPROVINGLY_SIGNED_BY_USER ' + - 'E_EDOC_VERSION_ALREDY_SIGNED ' + - 'E_EDOC_VERSION_ALREDY_SIGNED_BY_USER ' + - 'EDOC_TYPES_CODE_REQUISITE_FIELD_NAME ' + - 'EDOCUMENTS_ALIAS_NAME ' + - 'FILES_FOLDER_PATH ' + - 'FILTER_OPERANDS_DELIMITER ' + - 'FILTER_OPERATIONS_DELIMITER ' + - 'FORMCARD_NAME ' + - 'FORMLIST_NAME ' + - 'GET_EXTENDED_DOCUMENT_EXTENSION_CREATION_MODE ' + - 'GET_EXTENDED_DOCUMENT_EXTENSION_IMPORT_MODE ' + - 'INTEGRATED_REPORT_TYPE ' + - 'IS_BUILDER_APPLICATION_ROLE ' + - 'IS_BUILDER_APPLICATION_ROLE2 ' + - 'IS_BUILDER_USERS ' + - 'ISBSYSDEV ' + - 'LOG_FOLDER_PATH ' + - 'mbCancel ' + - 'mbNo ' + - 'mbNoToAll ' + - 'mbOK ' + - 'mbYes ' + - 'mbYesToAll ' + - 'MEMORY_DATASET_DESRIPTIONS_FILENAME ' + - 'mrNo ' + - 'mrNoToAll ' + - 'mrYes ' + - 'mrYesToAll ' + - 'MULTIPLE_SELECT_DIALOG_CODE ' + - 'NONOPERATING_RECORD_FLAG_FEMININE ' + - 'NONOPERATING_RECORD_FLAG_MASCULINE ' + - 'OPERATING_RECORD_FLAG_FEMININE ' + - 'OPERATING_RECORD_FLAG_MASCULINE ' + - 'PROFILING_SETTINGS_COMMON_SETTINGS_CODE_VALUE ' + - 'PROGRAM_INITIATED_LOOKUP_ACTION ' + - 'ratDelete ' + - 'ratEdit ' + - 'ratInsert ' + - 'REPORT_TYPE ' + - 'REQUIRED_PICK_VALUES_VARIABLE ' + - 'rmCard ' + - 'rmList ' + - 'SBRTE_PROGID_DEV ' + - 'SBRTE_PROGID_RELEASE ' + - 'STATIC_ROLE_TYPE_CODE ' + - 'SUPPRESS_EMPTY_TEMPLATE_CREATION ' + - 'SYSTEM_USER_CODE ' + - 'UPDATE_DIALOG_DATASET ' + - 'USED_IN_OBJECT_HINT_PARAM ' + - 'USER_INITIATED_LOOKUP_ACTION ' + - 'USER_NAME_FORMAT ' + - 'USER_SELECTION_RESTRICTIONS ' + - 'WORKFLOW_TEST_PROTOCOLS_FOLDER_PATH ' + - 'ELS_SUBTYPE_CONTROL_NAME ' + - 'ELS_FOLDER_KIND_CONTROL_NAME ' + - 'REPEAT_PROCESS_CURRENT_OBJECT_EXCEPTION_NAME '; - - // Privileges - const privileges_constants = - 'PRIVILEGE_COMPONENT_FULL_ACCESS ' + - 'PRIVILEGE_DEVELOPMENT_EXPORT ' + - 'PRIVILEGE_DEVELOPMENT_IMPORT ' + - 'PRIVILEGE_DOCUMENT_DELETE ' + - 'PRIVILEGE_ESD ' + - 'PRIVILEGE_FOLDER_DELETE ' + - 'PRIVILEGE_MANAGE_ACCESS_RIGHTS ' + - 'PRIVILEGE_MANAGE_REPLICATION ' + - 'PRIVILEGE_MANAGE_SESSION_SERVER ' + - 'PRIVILEGE_OBJECT_FULL_ACCESS ' + - 'PRIVILEGE_OBJECT_VIEW ' + - 'PRIVILEGE_RESERVE_LICENSE ' + - 'PRIVILEGE_SYSTEM_CUSTOMIZE ' + - 'PRIVILEGE_SYSTEM_DEVELOP ' + - 'PRIVILEGE_SYSTEM_INSTALL ' + - 'PRIVILEGE_TASK_DELETE ' + - 'PRIVILEGE_USER_PLUGIN_SETTINGS_CUSTOMIZE ' + - 'PRIVILEGES_PSEUDOREFERENCE_CODE '; - - // Pseudoreference code - const pseudoreference_code_constants = - 'ACCESS_TYPES_PSEUDOREFERENCE_CODE ' + - 'ALL_AVAILABLE_COMPONENTS_PSEUDOREFERENCE_CODE ' + - 'ALL_AVAILABLE_PRIVILEGES_PSEUDOREFERENCE_CODE ' + - 'ALL_REPLICATE_COMPONENTS_PSEUDOREFERENCE_CODE ' + - 'AVAILABLE_DEVELOPERS_COMPONENTS_PSEUDOREFERENCE_CODE ' + - 'COMPONENTS_PSEUDOREFERENCE_CODE ' + - 'FILTRATER_SETTINGS_CONFLICTS_PSEUDOREFERENCE_CODE ' + - 'GROUPS_PSEUDOREFERENCE_CODE ' + - 'RECEIVE_PROTOCOL_PSEUDOREFERENCE_CODE ' + - 'REFERENCE_REQUISITE_PSEUDOREFERENCE_CODE ' + - 'REFERENCE_REQUISITES_PSEUDOREFERENCE_CODE ' + - 'REFTYPES_PSEUDOREFERENCE_CODE ' + - 'REPLICATION_SEANCES_DIARY_PSEUDOREFERENCE_CODE ' + - 'SEND_PROTOCOL_PSEUDOREFERENCE_CODE ' + - 'SUBSTITUTES_PSEUDOREFERENCE_CODE ' + - 'SYSTEM_SETTINGS_PSEUDOREFERENCE_CODE ' + - 'UNITS_PSEUDOREFERENCE_CODE ' + - 'USERS_PSEUDOREFERENCE_CODE ' + - 'VIEWERS_PSEUDOREFERENCE_CODE '; - - // Requisite ISBCertificateType values - const requisite_ISBCertificateType_values_constants = - 'CERTIFICATE_TYPE_ENCRYPT ' + - 'CERTIFICATE_TYPE_SIGN ' + - 'CERTIFICATE_TYPE_SIGN_AND_ENCRYPT '; - - // Requisite ISBEDocStorageType values - const requisite_ISBEDocStorageType_values_constants = - 'STORAGE_TYPE_FILE ' + - 'STORAGE_TYPE_NAS_CIFS ' + - 'STORAGE_TYPE_SAPERION ' + - 'STORAGE_TYPE_SQL_SERVER '; - - // Requisite CompType2 values - const requisite_compType2_values_constants = - 'COMPTYPE2_REQUISITE_DOCUMENTS_VALUE ' + - 'COMPTYPE2_REQUISITE_TASKS_VALUE ' + - 'COMPTYPE2_REQUISITE_FOLDERS_VALUE ' + - 'COMPTYPE2_REQUISITE_REFERENCES_VALUE '; - - // Requisite name - const requisite_name_constants = - 'SYSREQ_CODE ' + - 'SYSREQ_COMPTYPE2 ' + - 'SYSREQ_CONST_AVAILABLE_FOR_WEB ' + - 'SYSREQ_CONST_COMMON_CODE ' + - 'SYSREQ_CONST_COMMON_VALUE ' + - 'SYSREQ_CONST_FIRM_CODE ' + - 'SYSREQ_CONST_FIRM_STATUS ' + - 'SYSREQ_CONST_FIRM_VALUE ' + - 'SYSREQ_CONST_SERVER_STATUS ' + - 'SYSREQ_CONTENTS ' + - 'SYSREQ_DATE_OPEN ' + - 'SYSREQ_DATE_CLOSE ' + - 'SYSREQ_DESCRIPTION ' + - 'SYSREQ_DESCRIPTION_LOCALIZE_ID ' + - 'SYSREQ_DOUBLE ' + - 'SYSREQ_EDOC_ACCESS_TYPE ' + - 'SYSREQ_EDOC_AUTHOR ' + - 'SYSREQ_EDOC_CREATED ' + - 'SYSREQ_EDOC_DELEGATE_RIGHTS_REQUISITE_CODE ' + - 'SYSREQ_EDOC_EDITOR ' + - 'SYSREQ_EDOC_ENCODE_TYPE ' + - 'SYSREQ_EDOC_ENCRYPTION_PLUGIN_NAME ' + - 'SYSREQ_EDOC_ENCRYPTION_PLUGIN_VERSION ' + - 'SYSREQ_EDOC_EXPORT_DATE ' + - 'SYSREQ_EDOC_EXPORTER ' + - 'SYSREQ_EDOC_KIND ' + - 'SYSREQ_EDOC_LIFE_STAGE_NAME ' + - 'SYSREQ_EDOC_LOCKED_FOR_SERVER_CODE ' + - 'SYSREQ_EDOC_MODIFIED ' + - 'SYSREQ_EDOC_NAME ' + - 'SYSREQ_EDOC_NOTE ' + - 'SYSREQ_EDOC_QUALIFIED_ID ' + - 'SYSREQ_EDOC_SESSION_KEY ' + - 'SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_NAME ' + - 'SYSREQ_EDOC_SESSION_KEY_ENCRYPTION_PLUGIN_VERSION ' + - 'SYSREQ_EDOC_SIGNATURE_TYPE ' + - 'SYSREQ_EDOC_SIGNED ' + - 'SYSREQ_EDOC_STORAGE ' + - 'SYSREQ_EDOC_STORAGES_ARCHIVE_STORAGE ' + - 'SYSREQ_EDOC_STORAGES_CHECK_RIGHTS ' + - 'SYSREQ_EDOC_STORAGES_COMPUTER_NAME ' + - 'SYSREQ_EDOC_STORAGES_EDIT_IN_STORAGE ' + - 'SYSREQ_EDOC_STORAGES_EXECUTIVE_STORAGE ' + - 'SYSREQ_EDOC_STORAGES_FUNCTION ' + - 'SYSREQ_EDOC_STORAGES_INITIALIZED ' + - 'SYSREQ_EDOC_STORAGES_LOCAL_PATH ' + - 'SYSREQ_EDOC_STORAGES_SAPERION_DATABASE_NAME ' + - 'SYSREQ_EDOC_STORAGES_SEARCH_BY_TEXT ' + - 'SYSREQ_EDOC_STORAGES_SERVER_NAME ' + - 'SYSREQ_EDOC_STORAGES_SHARED_SOURCE_NAME ' + - 'SYSREQ_EDOC_STORAGES_TYPE ' + - 'SYSREQ_EDOC_TEXT_MODIFIED ' + - 'SYSREQ_EDOC_TYPE_ACT_CODE ' + - 'SYSREQ_EDOC_TYPE_ACT_DESCRIPTION ' + - 'SYSREQ_EDOC_TYPE_ACT_DESCRIPTION_LOCALIZE_ID ' + - 'SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE ' + - 'SYSREQ_EDOC_TYPE_ACT_ON_EXECUTE_EXISTS ' + - 'SYSREQ_EDOC_TYPE_ACT_SECTION ' + - 'SYSREQ_EDOC_TYPE_ADD_PARAMS ' + - 'SYSREQ_EDOC_TYPE_COMMENT ' + - 'SYSREQ_EDOC_TYPE_EVENT_TEXT ' + - 'SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR ' + - 'SYSREQ_EDOC_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID ' + - 'SYSREQ_EDOC_TYPE_NAME_LOCALIZE_ID ' + - 'SYSREQ_EDOC_TYPE_NUMERATION_METHOD ' + - 'SYSREQ_EDOC_TYPE_PSEUDO_REQUISITE_CODE ' + - 'SYSREQ_EDOC_TYPE_REQ_CODE ' + - 'SYSREQ_EDOC_TYPE_REQ_DESCRIPTION ' + - 'SYSREQ_EDOC_TYPE_REQ_DESCRIPTION_LOCALIZE_ID ' + - 'SYSREQ_EDOC_TYPE_REQ_IS_LEADING ' + - 'SYSREQ_EDOC_TYPE_REQ_IS_REQUIRED ' + - 'SYSREQ_EDOC_TYPE_REQ_NUMBER ' + - 'SYSREQ_EDOC_TYPE_REQ_ON_CHANGE ' + - 'SYSREQ_EDOC_TYPE_REQ_ON_CHANGE_EXISTS ' + - 'SYSREQ_EDOC_TYPE_REQ_ON_SELECT ' + - 'SYSREQ_EDOC_TYPE_REQ_ON_SELECT_KIND ' + - 'SYSREQ_EDOC_TYPE_REQ_SECTION ' + - 'SYSREQ_EDOC_TYPE_VIEW_CARD ' + - 'SYSREQ_EDOC_TYPE_VIEW_CODE ' + - 'SYSREQ_EDOC_TYPE_VIEW_COMMENT ' + - 'SYSREQ_EDOC_TYPE_VIEW_IS_MAIN ' + - 'SYSREQ_EDOC_TYPE_VIEW_NAME ' + - 'SYSREQ_EDOC_TYPE_VIEW_NAME_LOCALIZE_ID ' + - 'SYSREQ_EDOC_VERSION_AUTHOR ' + - 'SYSREQ_EDOC_VERSION_CRC ' + - 'SYSREQ_EDOC_VERSION_DATA ' + - 'SYSREQ_EDOC_VERSION_EDITOR ' + - 'SYSREQ_EDOC_VERSION_EXPORT_DATE ' + - 'SYSREQ_EDOC_VERSION_EXPORTER ' + - 'SYSREQ_EDOC_VERSION_HIDDEN ' + - 'SYSREQ_EDOC_VERSION_LIFE_STAGE ' + - 'SYSREQ_EDOC_VERSION_MODIFIED ' + - 'SYSREQ_EDOC_VERSION_NOTE ' + - 'SYSREQ_EDOC_VERSION_SIGNATURE_TYPE ' + - 'SYSREQ_EDOC_VERSION_SIGNED ' + - 'SYSREQ_EDOC_VERSION_SIZE ' + - 'SYSREQ_EDOC_VERSION_SOURCE ' + - 'SYSREQ_EDOC_VERSION_TEXT_MODIFIED ' + - 'SYSREQ_EDOCKIND_DEFAULT_VERSION_STATE_CODE ' + - 'SYSREQ_FOLDER_KIND ' + - 'SYSREQ_FUNC_CATEGORY ' + - 'SYSREQ_FUNC_COMMENT ' + - 'SYSREQ_FUNC_GROUP ' + - 'SYSREQ_FUNC_GROUP_COMMENT ' + - 'SYSREQ_FUNC_GROUP_NUMBER ' + - 'SYSREQ_FUNC_HELP ' + - 'SYSREQ_FUNC_PARAM_DEF_VALUE ' + - 'SYSREQ_FUNC_PARAM_IDENT ' + - 'SYSREQ_FUNC_PARAM_NUMBER ' + - 'SYSREQ_FUNC_PARAM_TYPE ' + - 'SYSREQ_FUNC_TEXT ' + - 'SYSREQ_GROUP_CATEGORY ' + - 'SYSREQ_ID ' + - 'SYSREQ_LAST_UPDATE ' + - 'SYSREQ_LEADER_REFERENCE ' + - 'SYSREQ_LINE_NUMBER ' + - 'SYSREQ_MAIN_RECORD_ID ' + - 'SYSREQ_NAME ' + - 'SYSREQ_NAME_LOCALIZE_ID ' + - 'SYSREQ_NOTE ' + - 'SYSREQ_ORIGINAL_RECORD ' + - 'SYSREQ_OUR_FIRM ' + - 'SYSREQ_PROFILING_SETTINGS_BATCH_LOGING ' + - 'SYSREQ_PROFILING_SETTINGS_BATCH_SIZE ' + - 'SYSREQ_PROFILING_SETTINGS_PROFILING_ENABLED ' + - 'SYSREQ_PROFILING_SETTINGS_SQL_PROFILING_ENABLED ' + - 'SYSREQ_PROFILING_SETTINGS_START_LOGGED ' + - 'SYSREQ_RECORD_STATUS ' + - 'SYSREQ_REF_REQ_FIELD_NAME ' + - 'SYSREQ_REF_REQ_FORMAT ' + - 'SYSREQ_REF_REQ_GENERATED ' + - 'SYSREQ_REF_REQ_LENGTH ' + - 'SYSREQ_REF_REQ_PRECISION ' + - 'SYSREQ_REF_REQ_REFERENCE ' + - 'SYSREQ_REF_REQ_SECTION ' + - 'SYSREQ_REF_REQ_STORED ' + - 'SYSREQ_REF_REQ_TOKENS ' + - 'SYSREQ_REF_REQ_TYPE ' + - 'SYSREQ_REF_REQ_VIEW ' + - 'SYSREQ_REF_TYPE_ACT_CODE ' + - 'SYSREQ_REF_TYPE_ACT_DESCRIPTION ' + - 'SYSREQ_REF_TYPE_ACT_DESCRIPTION_LOCALIZE_ID ' + - 'SYSREQ_REF_TYPE_ACT_ON_EXECUTE ' + - 'SYSREQ_REF_TYPE_ACT_ON_EXECUTE_EXISTS ' + - 'SYSREQ_REF_TYPE_ACT_SECTION ' + - 'SYSREQ_REF_TYPE_ADD_PARAMS ' + - 'SYSREQ_REF_TYPE_COMMENT ' + - 'SYSREQ_REF_TYPE_COMMON_SETTINGS ' + - 'SYSREQ_REF_TYPE_DISPLAY_REQUISITE_NAME ' + - 'SYSREQ_REF_TYPE_EVENT_TEXT ' + - 'SYSREQ_REF_TYPE_MAIN_LEADING_REF ' + - 'SYSREQ_REF_TYPE_NAME_IN_SINGULAR ' + - 'SYSREQ_REF_TYPE_NAME_IN_SINGULAR_LOCALIZE_ID ' + - 'SYSREQ_REF_TYPE_NAME_LOCALIZE_ID ' + - 'SYSREQ_REF_TYPE_NUMERATION_METHOD ' + - 'SYSREQ_REF_TYPE_REQ_CODE ' + - 'SYSREQ_REF_TYPE_REQ_DESCRIPTION ' + - 'SYSREQ_REF_TYPE_REQ_DESCRIPTION_LOCALIZE_ID ' + - 'SYSREQ_REF_TYPE_REQ_IS_CONTROL ' + - 'SYSREQ_REF_TYPE_REQ_IS_FILTER ' + - 'SYSREQ_REF_TYPE_REQ_IS_LEADING ' + - 'SYSREQ_REF_TYPE_REQ_IS_REQUIRED ' + - 'SYSREQ_REF_TYPE_REQ_NUMBER ' + - 'SYSREQ_REF_TYPE_REQ_ON_CHANGE ' + - 'SYSREQ_REF_TYPE_REQ_ON_CHANGE_EXISTS ' + - 'SYSREQ_REF_TYPE_REQ_ON_SELECT ' + - 'SYSREQ_REF_TYPE_REQ_ON_SELECT_KIND ' + - 'SYSREQ_REF_TYPE_REQ_SECTION ' + - 'SYSREQ_REF_TYPE_VIEW_CARD ' + - 'SYSREQ_REF_TYPE_VIEW_CODE ' + - 'SYSREQ_REF_TYPE_VIEW_COMMENT ' + - 'SYSREQ_REF_TYPE_VIEW_IS_MAIN ' + - 'SYSREQ_REF_TYPE_VIEW_NAME ' + - 'SYSREQ_REF_TYPE_VIEW_NAME_LOCALIZE_ID ' + - 'SYSREQ_REFERENCE_TYPE_ID ' + - 'SYSREQ_STATE ' + - 'SYSREQ_STATЕ ' + - 'SYSREQ_SYSTEM_SETTINGS_VALUE ' + - 'SYSREQ_TYPE ' + - 'SYSREQ_UNIT ' + - 'SYSREQ_UNIT_ID ' + - 'SYSREQ_USER_GROUPS_GROUP_FULL_NAME ' + - 'SYSREQ_USER_GROUPS_GROUP_NAME ' + - 'SYSREQ_USER_GROUPS_GROUP_SERVER_NAME ' + - 'SYSREQ_USERS_ACCESS_RIGHTS ' + - 'SYSREQ_USERS_AUTHENTICATION ' + - 'SYSREQ_USERS_CATEGORY ' + - 'SYSREQ_USERS_COMPONENT ' + - 'SYSREQ_USERS_COMPONENT_USER_IS_PUBLIC ' + - 'SYSREQ_USERS_DOMAIN ' + - 'SYSREQ_USERS_FULL_USER_NAME ' + - 'SYSREQ_USERS_GROUP ' + - 'SYSREQ_USERS_IS_MAIN_SERVER ' + - 'SYSREQ_USERS_LOGIN ' + - 'SYSREQ_USERS_REFERENCE_USER_IS_PUBLIC ' + - 'SYSREQ_USERS_STATUS ' + - 'SYSREQ_USERS_USER_CERTIFICATE ' + - 'SYSREQ_USERS_USER_CERTIFICATE_INFO ' + - 'SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_NAME ' + - 'SYSREQ_USERS_USER_CERTIFICATE_PLUGIN_VERSION ' + - 'SYSREQ_USERS_USER_CERTIFICATE_STATE ' + - 'SYSREQ_USERS_USER_CERTIFICATE_SUBJECT_NAME ' + - 'SYSREQ_USERS_USER_CERTIFICATE_THUMBPRINT ' + - 'SYSREQ_USERS_USER_DEFAULT_CERTIFICATE ' + - 'SYSREQ_USERS_USER_DESCRIPTION ' + - 'SYSREQ_USERS_USER_GLOBAL_NAME ' + - 'SYSREQ_USERS_USER_LOGIN ' + - 'SYSREQ_USERS_USER_MAIN_SERVER ' + - 'SYSREQ_USERS_USER_TYPE ' + - 'SYSREQ_WORK_RULES_FOLDER_ID '; - - // Result - const result_constants = 'RESULT_VAR_NAME RESULT_VAR_NAME_ENG '; - - // Rule identification - const rule_identification_constants = - 'AUTO_NUMERATION_RULE_ID ' + - 'CANT_CHANGE_ID_REQUISITE_RULE_ID ' + - 'CANT_CHANGE_OURFIRM_REQUISITE_RULE_ID ' + - 'CHECK_CHANGING_REFERENCE_RECORD_USE_RULE_ID ' + - 'CHECK_CODE_REQUISITE_RULE_ID ' + - 'CHECK_DELETING_REFERENCE_RECORD_USE_RULE_ID ' + - 'CHECK_FILTRATER_CHANGES_RULE_ID ' + - 'CHECK_RECORD_INTERVAL_RULE_ID ' + - 'CHECK_REFERENCE_INTERVAL_RULE_ID ' + - 'CHECK_REQUIRED_DATA_FULLNESS_RULE_ID ' + - 'CHECK_REQUIRED_REQUISITES_FULLNESS_RULE_ID ' + - 'MAKE_RECORD_UNRATIFIED_RULE_ID ' + - 'RESTORE_AUTO_NUMERATION_RULE_ID ' + - 'SET_FIRM_CONTEXT_FROM_RECORD_RULE_ID ' + - 'SET_FIRST_RECORD_IN_LIST_FORM_RULE_ID ' + - 'SET_IDSPS_VALUE_RULE_ID ' + - 'SET_NEXT_CODE_VALUE_RULE_ID ' + - 'SET_OURFIRM_BOUNDS_RULE_ID ' + - 'SET_OURFIRM_REQUISITE_RULE_ID '; - - // Script block properties - const script_block_properties_constants = - 'SCRIPT_BLOCK_AFTER_FINISH_EVENT ' + - 'SCRIPT_BLOCK_BEFORE_START_EVENT ' + - 'SCRIPT_BLOCK_EXECUTION_RESULTS_PROPERTY ' + - 'SCRIPT_BLOCK_NAME_PROPERTY ' + - 'SCRIPT_BLOCK_SCRIPT_PROPERTY '; - - // Subtask block properties - const subtask_block_properties_constants = - 'SUBTASK_BLOCK_ABORT_DEADLINE_PROPERTY ' + - 'SUBTASK_BLOCK_AFTER_FINISH_EVENT ' + - 'SUBTASK_BLOCK_ASSIGN_PARAMS_EVENT ' + - 'SUBTASK_BLOCK_ATTACHMENTS_PROPERTY ' + - 'SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_GROUP_PROPERTY ' + - 'SUBTASK_BLOCK_ATTACHMENTS_RIGHTS_TYPE_PROPERTY ' + - 'SUBTASK_BLOCK_BEFORE_START_EVENT ' + - 'SUBTASK_BLOCK_CREATED_TASK_PROPERTY ' + - 'SUBTASK_BLOCK_CREATION_EVENT ' + - 'SUBTASK_BLOCK_DEADLINE_PROPERTY ' + - 'SUBTASK_BLOCK_IMPORTANCE_PROPERTY ' + - 'SUBTASK_BLOCK_INITIATOR_PROPERTY ' + - 'SUBTASK_BLOCK_IS_RELATIVE_ABORT_DEADLINE_PROPERTY ' + - 'SUBTASK_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY ' + - 'SUBTASK_BLOCK_JOBS_TYPE_PROPERTY ' + - 'SUBTASK_BLOCK_NAME_PROPERTY ' + - 'SUBTASK_BLOCK_PARALLEL_ROUTE_PROPERTY ' + - 'SUBTASK_BLOCK_PERFORMERS_PROPERTY ' + - 'SUBTASK_BLOCK_RELATIVE_ABORT_DEADLINE_TYPE_PROPERTY ' + - 'SUBTASK_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY ' + - 'SUBTASK_BLOCK_REQUIRE_SIGN_PROPERTY ' + - 'SUBTASK_BLOCK_STANDARD_ROUTE_PROPERTY ' + - 'SUBTASK_BLOCK_START_EVENT ' + - 'SUBTASK_BLOCK_STEP_CONTROL_PROPERTY ' + - 'SUBTASK_BLOCK_SUBJECT_PROPERTY ' + - 'SUBTASK_BLOCK_TASK_CONTROL_PROPERTY ' + - 'SUBTASK_BLOCK_TEXT_PROPERTY ' + - 'SUBTASK_BLOCK_UNLOCK_ATTACHMENTS_ON_STOP_PROPERTY ' + - 'SUBTASK_BLOCK_USE_STANDARD_ROUTE_PROPERTY ' + - 'SUBTASK_BLOCK_WAIT_FOR_TASK_COMPLETE_PROPERTY '; - - // System component - const system_component_constants = - 'SYSCOMP_CONTROL_JOBS ' + - 'SYSCOMP_FOLDERS ' + - 'SYSCOMP_JOBS ' + - 'SYSCOMP_NOTICES ' + - 'SYSCOMP_TASKS '; - - // System dialogs - const system_dialogs_constants = - 'SYSDLG_CREATE_EDOCUMENT ' + - 'SYSDLG_CREATE_EDOCUMENT_VERSION ' + - 'SYSDLG_CURRENT_PERIOD ' + - 'SYSDLG_EDIT_FUNCTION_HELP ' + - 'SYSDLG_EDOCUMENT_KINDS_FOR_TEMPLATE ' + - 'SYSDLG_EXPORT_MULTIPLE_EDOCUMENTS ' + - 'SYSDLG_EXPORT_SINGLE_EDOCUMENT ' + - 'SYSDLG_IMPORT_EDOCUMENT ' + - 'SYSDLG_MULTIPLE_SELECT ' + - 'SYSDLG_SETUP_ACCESS_RIGHTS ' + - 'SYSDLG_SETUP_DEFAULT_RIGHTS ' + - 'SYSDLG_SETUP_FILTER_CONDITION ' + - 'SYSDLG_SETUP_SIGN_RIGHTS ' + - 'SYSDLG_SETUP_TASK_OBSERVERS ' + - 'SYSDLG_SETUP_TASK_ROUTE ' + - 'SYSDLG_SETUP_USERS_LIST ' + - 'SYSDLG_SIGN_EDOCUMENT ' + - 'SYSDLG_SIGN_MULTIPLE_EDOCUMENTS '; - - // System reference names - const system_reference_names_constants = - 'SYSREF_ACCESS_RIGHTS_TYPES ' + - 'SYSREF_ADMINISTRATION_HISTORY ' + - 'SYSREF_ALL_AVAILABLE_COMPONENTS ' + - 'SYSREF_ALL_AVAILABLE_PRIVILEGES ' + - 'SYSREF_ALL_REPLICATING_COMPONENTS ' + - 'SYSREF_AVAILABLE_DEVELOPERS_COMPONENTS ' + - 'SYSREF_CALENDAR_EVENTS ' + - 'SYSREF_COMPONENT_TOKEN_HISTORY ' + - 'SYSREF_COMPONENT_TOKENS ' + - 'SYSREF_COMPONENTS ' + - 'SYSREF_CONSTANTS ' + - 'SYSREF_DATA_RECEIVE_PROTOCOL ' + - 'SYSREF_DATA_SEND_PROTOCOL ' + - 'SYSREF_DIALOGS ' + - 'SYSREF_DIALOGS_REQUISITES ' + - 'SYSREF_EDITORS ' + - 'SYSREF_EDOC_CARDS ' + - 'SYSREF_EDOC_TYPES ' + - 'SYSREF_EDOCUMENT_CARD_REQUISITES ' + - 'SYSREF_EDOCUMENT_CARD_TYPES ' + - 'SYSREF_EDOCUMENT_CARD_TYPES_REFERENCE ' + - 'SYSREF_EDOCUMENT_CARDS ' + - 'SYSREF_EDOCUMENT_HISTORY ' + - 'SYSREF_EDOCUMENT_KINDS ' + - 'SYSREF_EDOCUMENT_REQUISITES ' + - 'SYSREF_EDOCUMENT_SIGNATURES ' + - 'SYSREF_EDOCUMENT_TEMPLATES ' + - 'SYSREF_EDOCUMENT_TEXT_STORAGES ' + - 'SYSREF_EDOCUMENT_VIEWS ' + - 'SYSREF_FILTERER_SETUP_CONFLICTS ' + - 'SYSREF_FILTRATER_SETTING_CONFLICTS ' + - 'SYSREF_FOLDER_HISTORY ' + - 'SYSREF_FOLDERS ' + - 'SYSREF_FUNCTION_GROUPS ' + - 'SYSREF_FUNCTION_PARAMS ' + - 'SYSREF_FUNCTIONS ' + - 'SYSREF_JOB_HISTORY ' + - 'SYSREF_LINKS ' + - 'SYSREF_LOCALIZATION_DICTIONARY ' + - 'SYSREF_LOCALIZATION_LANGUAGES ' + - 'SYSREF_MODULES ' + - 'SYSREF_PRIVILEGES ' + - 'SYSREF_RECORD_HISTORY ' + - 'SYSREF_REFERENCE_REQUISITES ' + - 'SYSREF_REFERENCE_TYPE_VIEWS ' + - 'SYSREF_REFERENCE_TYPES ' + - 'SYSREF_REFERENCES ' + - 'SYSREF_REFERENCES_REQUISITES ' + - 'SYSREF_REMOTE_SERVERS ' + - 'SYSREF_REPLICATION_SESSIONS_LOG ' + - 'SYSREF_REPLICATION_SESSIONS_PROTOCOL ' + - 'SYSREF_REPORTS ' + - 'SYSREF_ROLES ' + - 'SYSREF_ROUTE_BLOCK_GROUPS ' + - 'SYSREF_ROUTE_BLOCKS ' + - 'SYSREF_SCRIPTS ' + - 'SYSREF_SEARCHES ' + - 'SYSREF_SERVER_EVENTS ' + - 'SYSREF_SERVER_EVENTS_HISTORY ' + - 'SYSREF_STANDARD_ROUTE_GROUPS ' + - 'SYSREF_STANDARD_ROUTES ' + - 'SYSREF_STATUSES ' + - 'SYSREF_SYSTEM_SETTINGS ' + - 'SYSREF_TASK_HISTORY ' + - 'SYSREF_TASK_KIND_GROUPS ' + - 'SYSREF_TASK_KINDS ' + - 'SYSREF_TASK_RIGHTS ' + - 'SYSREF_TASK_SIGNATURES ' + - 'SYSREF_TASKS ' + - 'SYSREF_UNITS ' + - 'SYSREF_USER_GROUPS ' + - 'SYSREF_USER_GROUPS_REFERENCE ' + - 'SYSREF_USER_SUBSTITUTION ' + - 'SYSREF_USERS ' + - 'SYSREF_USERS_REFERENCE ' + - 'SYSREF_VIEWERS ' + - 'SYSREF_WORKING_TIME_CALENDARS '; - - // Table name - const table_name_constants = - 'ACCESS_RIGHTS_TABLE_NAME ' + - 'EDMS_ACCESS_TABLE_NAME ' + - 'EDOC_TYPES_TABLE_NAME '; - - // Test - const test_constants = - 'TEST_DEV_DB_NAME ' + - 'TEST_DEV_SYSTEM_CODE ' + - 'TEST_EDMS_DB_NAME ' + - 'TEST_EDMS_MAIN_CODE ' + - 'TEST_EDMS_MAIN_DB_NAME ' + - 'TEST_EDMS_SECOND_CODE ' + - 'TEST_EDMS_SECOND_DB_NAME ' + - 'TEST_EDMS_SYSTEM_CODE ' + - 'TEST_ISB5_MAIN_CODE ' + - 'TEST_ISB5_SECOND_CODE ' + - 'TEST_SQL_SERVER_2005_NAME ' + - 'TEST_SQL_SERVER_NAME '; - - // Using the dialog windows - const using_the_dialog_windows_constants = - 'ATTENTION_CAPTION ' + - 'cbsCommandLinks ' + - 'cbsDefault ' + - 'CONFIRMATION_CAPTION ' + - 'ERROR_CAPTION ' + - 'INFORMATION_CAPTION ' + - 'mrCancel ' + - 'mrOk '; - - // Using the document - const using_the_document_constants = - 'EDOC_VERSION_ACTIVE_STAGE_CODE ' + - 'EDOC_VERSION_DESIGN_STAGE_CODE ' + - 'EDOC_VERSION_OBSOLETE_STAGE_CODE '; - - // Using the EA and encryption - const using_the_EA_and_encryption_constants = - 'cpDataEnciphermentEnabled ' + - 'cpDigitalSignatureEnabled ' + - 'cpID ' + - 'cpIssuer ' + - 'cpPluginVersion ' + - 'cpSerial ' + - 'cpSubjectName ' + - 'cpSubjSimpleName ' + - 'cpValidFromDate ' + - 'cpValidToDate '; - - // Using the ISBL-editor - const using_the_ISBL_editor_constants = - 'ISBL_SYNTAX ' + 'NO_SYNTAX ' + 'XML_SYNTAX '; - - // Wait block properties - const wait_block_properties_constants = - 'WAIT_BLOCK_AFTER_FINISH_EVENT ' + - 'WAIT_BLOCK_BEFORE_START_EVENT ' + - 'WAIT_BLOCK_DEADLINE_PROPERTY ' + - 'WAIT_BLOCK_IS_RELATIVE_DEADLINE_PROPERTY ' + - 'WAIT_BLOCK_NAME_PROPERTY ' + - 'WAIT_BLOCK_RELATIVE_DEADLINE_TYPE_PROPERTY '; - - // SYSRES Common - const sysres_common_constants = - 'SYSRES_COMMON ' + - 'SYSRES_CONST ' + - 'SYSRES_MBFUNC ' + - 'SYSRES_SBDATA ' + - 'SYSRES_SBGUI ' + - 'SYSRES_SBINTF ' + - 'SYSRES_SBREFDSC ' + - 'SYSRES_SQLERRORS ' + - 'SYSRES_SYSCOMP '; - - // Константы ==> built_in - const CONSTANTS = - sysres_constants + - base_constants + - base_group_name_constants + - decision_block_properties_constants + - file_extension_constants + - job_block_properties_constants + - language_code_constants + - launching_external_applications_constants + - link_kind_constants + - lock_type_constants + - monitor_block_properties_constants + - notice_block_properties_constants + - object_events_constants + - object_params_constants + - other_constants + - privileges_constants + - pseudoreference_code_constants + - requisite_ISBCertificateType_values_constants + - requisite_ISBEDocStorageType_values_constants + - requisite_compType2_values_constants + - requisite_name_constants + - result_constants + - rule_identification_constants + - script_block_properties_constants + - subtask_block_properties_constants + - system_component_constants + - system_dialogs_constants + - system_reference_names_constants + - table_name_constants + - test_constants + - using_the_dialog_windows_constants + - using_the_document_constants + - using_the_EA_and_encryption_constants + - using_the_ISBL_editor_constants + - wait_block_properties_constants + - sysres_common_constants; - - // enum TAccountType - const TAccountType = 'atUser atGroup atRole '; - - // enum TActionEnabledMode - const TActionEnabledMode = - 'aemEnabledAlways ' + - 'aemDisabledAlways ' + - 'aemEnabledOnBrowse ' + - 'aemEnabledOnEdit ' + - 'aemDisabledOnBrowseEmpty '; - - // enum TAddPosition - const TAddPosition = 'apBegin apEnd '; - - // enum TAlignment - const TAlignment = 'alLeft alRight '; - - // enum TAreaShowMode - const TAreaShowMode = - 'asmNever ' + - 'asmNoButCustomize ' + - 'asmAsLastTime ' + - 'asmYesButCustomize ' + - 'asmAlways '; - - // enum TCertificateInvalidationReason - const TCertificateInvalidationReason = 'cirCommon cirRevoked '; - - // enum TCertificateType - const TCertificateType = 'ctSignature ctEncode ctSignatureEncode '; - - // enum TCheckListBoxItemState - const TCheckListBoxItemState = 'clbUnchecked clbChecked clbGrayed '; - - // enum TCloseOnEsc - const TCloseOnEsc = 'ceISB ceAlways ceNever '; - - // enum TCompType - const TCompType = - 'ctDocument ' + - 'ctReference ' + - 'ctScript ' + - 'ctUnknown ' + - 'ctReport ' + - 'ctDialog ' + - 'ctFunction ' + - 'ctFolder ' + - 'ctEDocument ' + - 'ctTask ' + - 'ctJob ' + - 'ctNotice ' + - 'ctControlJob '; - - // enum TConditionFormat - const TConditionFormat = 'cfInternal cfDisplay '; - - // enum TConnectionIntent - const TConnectionIntent = 'ciUnspecified ciWrite ciRead '; - - // enum TContentKind - const TContentKind = - 'ckFolder ' + - 'ckEDocument ' + - 'ckTask ' + - 'ckJob ' + - 'ckComponentToken ' + - 'ckAny ' + - 'ckReference ' + - 'ckScript ' + - 'ckReport ' + - 'ckDialog '; - - // enum TControlType - const TControlType = - 'ctISBLEditor ' + - 'ctBevel ' + - 'ctButton ' + - 'ctCheckListBox ' + - 'ctComboBox ' + - 'ctComboEdit ' + - 'ctGrid ' + - 'ctDBCheckBox ' + - 'ctDBComboBox ' + - 'ctDBEdit ' + - 'ctDBEllipsis ' + - 'ctDBMemo ' + - 'ctDBNavigator ' + - 'ctDBRadioGroup ' + - 'ctDBStatusLabel ' + - 'ctEdit ' + - 'ctGroupBox ' + - 'ctInplaceHint ' + - 'ctMemo ' + - 'ctPanel ' + - 'ctListBox ' + - 'ctRadioButton ' + - 'ctRichEdit ' + - 'ctTabSheet ' + - 'ctWebBrowser ' + - 'ctImage ' + - 'ctHyperLink ' + - 'ctLabel ' + - 'ctDBMultiEllipsis ' + - 'ctRibbon ' + - 'ctRichView ' + - 'ctInnerPanel ' + - 'ctPanelGroup ' + - 'ctBitButton '; - - // enum TCriterionContentType - const TCriterionContentType = - 'cctDate ' + - 'cctInteger ' + - 'cctNumeric ' + - 'cctPick ' + - 'cctReference ' + - 'cctString ' + - 'cctText '; - - // enum TCultureType - const TCultureType = 'cltInternal cltPrimary cltGUI '; - - // enum TDataSetEventType - const TDataSetEventType = - 'dseBeforeOpen ' + - 'dseAfterOpen ' + - 'dseBeforeClose ' + - 'dseAfterClose ' + - 'dseOnValidDelete ' + - 'dseBeforeDelete ' + - 'dseAfterDelete ' + - 'dseAfterDeleteOutOfTransaction ' + - 'dseOnDeleteError ' + - 'dseBeforeInsert ' + - 'dseAfterInsert ' + - 'dseOnValidUpdate ' + - 'dseBeforeUpdate ' + - 'dseOnUpdateRatifiedRecord ' + - 'dseAfterUpdate ' + - 'dseAfterUpdateOutOfTransaction ' + - 'dseOnUpdateError ' + - 'dseAfterScroll ' + - 'dseOnOpenRecord ' + - 'dseOnCloseRecord ' + - 'dseBeforeCancel ' + - 'dseAfterCancel ' + - 'dseOnUpdateDeadlockError ' + - 'dseBeforeDetailUpdate ' + - 'dseOnPrepareUpdate ' + - 'dseOnAnyRequisiteChange '; - - // enum TDataSetState - const TDataSetState = 'dssEdit dssInsert dssBrowse dssInActive '; - - // enum TDateFormatType - const TDateFormatType = 'dftDate dftShortDate dftDateTime dftTimeStamp '; - - // enum TDateOffsetType - const TDateOffsetType = 'dotDays dotHours dotMinutes dotSeconds '; - - // enum TDateTimeKind - const TDateTimeKind = 'dtkndLocal dtkndUTC '; - - // enum TDeaAccessRights - const TDeaAccessRights = 'arNone arView arEdit arFull '; - - // enum TDocumentDefaultAction - const TDocumentDefaultAction = 'ddaView ddaEdit '; - - // enum TEditMode - const TEditMode = - 'emLock ' + - 'emEdit ' + - 'emSign ' + - 'emExportWithLock ' + - 'emImportWithUnlock ' + - 'emChangeVersionNote ' + - 'emOpenForModify ' + - 'emChangeLifeStage ' + - 'emDelete ' + - 'emCreateVersion ' + - 'emImport ' + - 'emUnlockExportedWithLock ' + - 'emStart ' + - 'emAbort ' + - 'emReInit ' + - 'emMarkAsReaded ' + - 'emMarkAsUnreaded ' + - 'emPerform ' + - 'emAccept ' + - 'emResume ' + - 'emChangeRights ' + - 'emEditRoute ' + - 'emEditObserver ' + - 'emRecoveryFromLocalCopy ' + - 'emChangeWorkAccessType ' + - 'emChangeEncodeTypeToCertificate ' + - 'emChangeEncodeTypeToPassword ' + - 'emChangeEncodeTypeToNone ' + - 'emChangeEncodeTypeToCertificatePassword ' + - 'emChangeStandardRoute ' + - 'emGetText ' + - 'emOpenForView ' + - 'emMoveToStorage ' + - 'emCreateObject ' + - 'emChangeVersionHidden ' + - 'emDeleteVersion ' + - 'emChangeLifeCycleStage ' + - 'emApprovingSign ' + - 'emExport ' + - 'emContinue ' + - 'emLockFromEdit ' + - 'emUnLockForEdit ' + - 'emLockForServer ' + - 'emUnlockFromServer ' + - 'emDelegateAccessRights ' + - 'emReEncode '; - - // enum TEditorCloseObservType - const TEditorCloseObservType = 'ecotFile ecotProcess '; - - // enum TEdmsApplicationAction - const TEdmsApplicationAction = 'eaGet eaCopy eaCreate eaCreateStandardRoute '; - - // enum TEDocumentLockType - const TEDocumentLockType = 'edltAll edltNothing edltQuery '; - - // enum TEDocumentStepShowMode - const TEDocumentStepShowMode = 'essmText essmCard '; - - // enum TEDocumentStepVersionType - const TEDocumentStepVersionType = 'esvtLast esvtLastActive esvtSpecified '; - - // enum TEDocumentStorageFunction - const TEDocumentStorageFunction = 'edsfExecutive edsfArchive '; - - // enum TEDocumentStorageType - const TEDocumentStorageType = 'edstSQLServer edstFile '; - - // enum TEDocumentVersionSourceType - const TEDocumentVersionSourceType = - 'edvstNone edvstEDocumentVersionCopy edvstFile edvstTemplate edvstScannedFile '; - - // enum TEDocumentVersionState - const TEDocumentVersionState = 'vsDefault vsDesign vsActive vsObsolete '; - - // enum TEncodeType - const TEncodeType = 'etNone etCertificate etPassword etCertificatePassword '; - - // enum TExceptionCategory - const TExceptionCategory = 'ecException ecWarning ecInformation '; - - // enum TExportedSignaturesType - const TExportedSignaturesType = 'estAll estApprovingOnly '; - - // enum TExportedVersionType - const TExportedVersionType = 'evtLast evtLastActive evtQuery '; - - // enum TFieldDataType - const TFieldDataType = - 'fdtString ' + - 'fdtNumeric ' + - 'fdtInteger ' + - 'fdtDate ' + - 'fdtText ' + - 'fdtUnknown ' + - 'fdtWideString ' + - 'fdtLargeInteger '; - - // enum TFolderType - const TFolderType = - 'ftInbox ' + - 'ftOutbox ' + - 'ftFavorites ' + - 'ftCommonFolder ' + - 'ftUserFolder ' + - 'ftComponents ' + - 'ftQuickLaunch ' + - 'ftShortcuts ' + - 'ftSearch '; - - // enum TGridRowHeight - const TGridRowHeight = 'grhAuto ' + 'grhX1 ' + 'grhX2 ' + 'grhX3 '; - - // enum THyperlinkType - const THyperlinkType = 'hltText ' + 'hltRTF ' + 'hltHTML '; - - // enum TImageFileFormat - const TImageFileFormat = - 'iffBMP ' + - 'iffJPEG ' + - 'iffMultiPageTIFF ' + - 'iffSinglePageTIFF ' + - 'iffTIFF ' + - 'iffPNG '; - - // enum TImageMode - const TImageMode = 'im8bGrayscale ' + 'im24bRGB ' + 'im1bMonochrome '; - - // enum TImageType - const TImageType = 'itBMP ' + 'itJPEG ' + 'itWMF ' + 'itPNG '; - - // enum TInplaceHintKind - const TInplaceHintKind = - 'ikhInformation ' + 'ikhWarning ' + 'ikhError ' + 'ikhNoIcon '; - - // enum TISBLContext - const TISBLContext = - 'icUnknown ' + - 'icScript ' + - 'icFunction ' + - 'icIntegratedReport ' + - 'icAnalyticReport ' + - 'icDataSetEventHandler ' + - 'icActionHandler ' + - 'icFormEventHandler ' + - 'icLookUpEventHandler ' + - 'icRequisiteChangeEventHandler ' + - 'icBeforeSearchEventHandler ' + - 'icRoleCalculation ' + - 'icSelectRouteEventHandler ' + - 'icBlockPropertyCalculation ' + - 'icBlockQueryParamsEventHandler ' + - 'icChangeSearchResultEventHandler ' + - 'icBlockEventHandler ' + - 'icSubTaskInitEventHandler ' + - 'icEDocDataSetEventHandler ' + - 'icEDocLookUpEventHandler ' + - 'icEDocActionHandler ' + - 'icEDocFormEventHandler ' + - 'icEDocRequisiteChangeEventHandler ' + - 'icStructuredConversionRule ' + - 'icStructuredConversionEventBefore ' + - 'icStructuredConversionEventAfter ' + - 'icWizardEventHandler ' + - 'icWizardFinishEventHandler ' + - 'icWizardStepEventHandler ' + - 'icWizardStepFinishEventHandler ' + - 'icWizardActionEnableEventHandler ' + - 'icWizardActionExecuteEventHandler ' + - 'icCreateJobsHandler ' + - 'icCreateNoticesHandler ' + - 'icBeforeLookUpEventHandler ' + - 'icAfterLookUpEventHandler ' + - 'icTaskAbortEventHandler ' + - 'icWorkflowBlockActionHandler ' + - 'icDialogDataSetEventHandler ' + - 'icDialogActionHandler ' + - 'icDialogLookUpEventHandler ' + - 'icDialogRequisiteChangeEventHandler ' + - 'icDialogFormEventHandler ' + - 'icDialogValidCloseEventHandler ' + - 'icBlockFormEventHandler ' + - 'icTaskFormEventHandler ' + - 'icReferenceMethod ' + - 'icEDocMethod ' + - 'icDialogMethod ' + - 'icProcessMessageHandler '; - - // enum TItemShow - const TItemShow = 'isShow ' + 'isHide ' + 'isByUserSettings '; - - // enum TJobKind - const TJobKind = 'jkJob ' + 'jkNotice ' + 'jkControlJob '; - - // enum TJoinType - const TJoinType = - 'jtInner ' + 'jtLeft ' + 'jtRight ' + 'jtFull ' + 'jtCross '; - - // enum TLabelPos - const TLabelPos = 'lbpAbove ' + 'lbpBelow ' + 'lbpLeft ' + 'lbpRight '; - - // enum TLicensingType - const TLicensingType = 'eltPerConnection ' + 'eltPerUser '; - - // enum TLifeCycleStageFontColor - const TLifeCycleStageFontColor = - 'sfcUndefined ' + - 'sfcBlack ' + - 'sfcGreen ' + - 'sfcRed ' + - 'sfcBlue ' + - 'sfcOrange ' + - 'sfcLilac '; - - // enum TLifeCycleStageFontStyle - const TLifeCycleStageFontStyle = - 'sfsItalic ' + 'sfsStrikeout ' + 'sfsNormal '; - - // enum TLockableDevelopmentComponentType - const TLockableDevelopmentComponentType = - 'ldctStandardRoute ' + - 'ldctWizard ' + - 'ldctScript ' + - 'ldctFunction ' + - 'ldctRouteBlock ' + - 'ldctIntegratedReport ' + - 'ldctAnalyticReport ' + - 'ldctReferenceType ' + - 'ldctEDocumentType ' + - 'ldctDialog ' + - 'ldctServerEvents '; - - // enum TMaxRecordCountRestrictionType - const TMaxRecordCountRestrictionType = - 'mrcrtNone ' + 'mrcrtUser ' + 'mrcrtMaximal ' + 'mrcrtCustom '; - - // enum TRangeValueType - const TRangeValueType = - 'vtEqual ' + 'vtGreaterOrEqual ' + 'vtLessOrEqual ' + 'vtRange '; - - // enum TRelativeDate - const TRelativeDate = - 'rdYesterday ' + - 'rdToday ' + - 'rdTomorrow ' + - 'rdThisWeek ' + - 'rdThisMonth ' + - 'rdThisYear ' + - 'rdNextMonth ' + - 'rdNextWeek ' + - 'rdLastWeek ' + - 'rdLastMonth '; - - // enum TReportDestination - const TReportDestination = 'rdWindow ' + 'rdFile ' + 'rdPrinter '; - - // enum TReqDataType - const TReqDataType = - 'rdtString ' + - 'rdtNumeric ' + - 'rdtInteger ' + - 'rdtDate ' + - 'rdtReference ' + - 'rdtAccount ' + - 'rdtText ' + - 'rdtPick ' + - 'rdtUnknown ' + - 'rdtLargeInteger ' + - 'rdtDocument '; - - // enum TRequisiteEventType - const TRequisiteEventType = 'reOnChange ' + 'reOnChangeValues '; - - // enum TSBTimeType - const TSBTimeType = 'ttGlobal ' + 'ttLocal ' + 'ttUser ' + 'ttSystem '; - - // enum TSearchShowMode - const TSearchShowMode = - 'ssmBrowse ' + 'ssmSelect ' + 'ssmMultiSelect ' + 'ssmBrowseModal '; - - // enum TSelectMode - const TSelectMode = 'smSelect ' + 'smLike ' + 'smCard '; - - // enum TSignatureType - const TSignatureType = 'stNone ' + 'stAuthenticating ' + 'stApproving '; - - // enum TSignerContentType - const TSignerContentType = 'sctString ' + 'sctStream '; - - // enum TStringsSortType - const TStringsSortType = 'sstAnsiSort ' + 'sstNaturalSort '; - - // enum TStringValueType - const TStringValueType = 'svtEqual ' + 'svtContain '; - - // enum TStructuredObjectAttributeType - const TStructuredObjectAttributeType = - 'soatString ' + - 'soatNumeric ' + - 'soatInteger ' + - 'soatDatetime ' + - 'soatReferenceRecord ' + - 'soatText ' + - 'soatPick ' + - 'soatBoolean ' + - 'soatEDocument ' + - 'soatAccount ' + - 'soatIntegerCollection ' + - 'soatNumericCollection ' + - 'soatStringCollection ' + - 'soatPickCollection ' + - 'soatDatetimeCollection ' + - 'soatBooleanCollection ' + - 'soatReferenceRecordCollection ' + - 'soatEDocumentCollection ' + - 'soatAccountCollection ' + - 'soatContents ' + - 'soatUnknown '; - - // enum TTaskAbortReason - const TTaskAbortReason = 'tarAbortByUser ' + 'tarAbortByWorkflowException '; - - // enum TTextValueType - const TTextValueType = 'tvtAllWords ' + 'tvtExactPhrase ' + 'tvtAnyWord '; - - // enum TUserObjectStatus - const TUserObjectStatus = - 'usNone ' + - 'usCompleted ' + - 'usRedSquare ' + - 'usBlueSquare ' + - 'usYellowSquare ' + - 'usGreenSquare ' + - 'usOrangeSquare ' + - 'usPurpleSquare ' + - 'usFollowUp '; - - // enum TUserType - const TUserType = - 'utUnknown ' + - 'utUser ' + - 'utDeveloper ' + - 'utAdministrator ' + - 'utSystemDeveloper ' + - 'utDisconnected '; - - // enum TValuesBuildType - const TValuesBuildType = - 'btAnd ' + 'btDetailAnd ' + 'btOr ' + 'btNotOr ' + 'btOnly '; - - // enum TViewMode - const TViewMode = 'vmView ' + 'vmSelect ' + 'vmNavigation '; - - // enum TViewSelectionMode - const TViewSelectionMode = - 'vsmSingle ' + 'vsmMultiple ' + 'vsmMultipleCheck ' + 'vsmNoSelection '; - - // enum TWizardActionType - const TWizardActionType = - 'wfatPrevious ' + 'wfatNext ' + 'wfatCancel ' + 'wfatFinish '; - - // enum TWizardFormElementProperty - const TWizardFormElementProperty = - 'wfepUndefined ' + - 'wfepText3 ' + - 'wfepText6 ' + - 'wfepText9 ' + - 'wfepSpinEdit ' + - 'wfepDropDown ' + - 'wfepRadioGroup ' + - 'wfepFlag ' + - 'wfepText12 ' + - 'wfepText15 ' + - 'wfepText18 ' + - 'wfepText21 ' + - 'wfepText24 ' + - 'wfepText27 ' + - 'wfepText30 ' + - 'wfepRadioGroupColumn1 ' + - 'wfepRadioGroupColumn2 ' + - 'wfepRadioGroupColumn3 '; - - // enum TWizardFormElementType - const TWizardFormElementType = - 'wfetQueryParameter ' + 'wfetText ' + 'wfetDelimiter ' + 'wfetLabel '; - - // enum TWizardParamType - const TWizardParamType = - 'wptString ' + - 'wptInteger ' + - 'wptNumeric ' + - 'wptBoolean ' + - 'wptDateTime ' + - 'wptPick ' + - 'wptText ' + - 'wptUser ' + - 'wptUserList ' + - 'wptEDocumentInfo ' + - 'wptEDocumentInfoList ' + - 'wptReferenceRecordInfo ' + - 'wptReferenceRecordInfoList ' + - 'wptFolderInfo ' + - 'wptTaskInfo ' + - 'wptContents ' + - 'wptFileName ' + - 'wptDate '; - - // enum TWizardStepResult - const TWizardStepResult = - 'wsrComplete ' + - 'wsrGoNext ' + - 'wsrGoPrevious ' + - 'wsrCustom ' + - 'wsrCancel ' + - 'wsrGoFinal '; - - // enum TWizardStepType - const TWizardStepType = - 'wstForm ' + - 'wstEDocument ' + - 'wstTaskCard ' + - 'wstReferenceRecordCard ' + - 'wstFinal '; - - // enum TWorkAccessType - const TWorkAccessType = 'waAll ' + 'waPerformers ' + 'waManual '; - - // enum TWorkflowBlockType - const TWorkflowBlockType = - 'wsbStart ' + - 'wsbFinish ' + - 'wsbNotice ' + - 'wsbStep ' + - 'wsbDecision ' + - 'wsbWait ' + - 'wsbMonitor ' + - 'wsbScript ' + - 'wsbConnector ' + - 'wsbSubTask ' + - 'wsbLifeCycleStage ' + - 'wsbPause '; - - // enum TWorkflowDataType - const TWorkflowDataType = - 'wdtInteger ' + - 'wdtFloat ' + - 'wdtString ' + - 'wdtPick ' + - 'wdtDateTime ' + - 'wdtBoolean ' + - 'wdtTask ' + - 'wdtJob ' + - 'wdtFolder ' + - 'wdtEDocument ' + - 'wdtReferenceRecord ' + - 'wdtUser ' + - 'wdtGroup ' + - 'wdtRole ' + - 'wdtIntegerCollection ' + - 'wdtFloatCollection ' + - 'wdtStringCollection ' + - 'wdtPickCollection ' + - 'wdtDateTimeCollection ' + - 'wdtBooleanCollection ' + - 'wdtTaskCollection ' + - 'wdtJobCollection ' + - 'wdtFolderCollection ' + - 'wdtEDocumentCollection ' + - 'wdtReferenceRecordCollection ' + - 'wdtUserCollection ' + - 'wdtGroupCollection ' + - 'wdtRoleCollection ' + - 'wdtContents ' + - 'wdtUserList ' + - 'wdtSearchDescription ' + - 'wdtDeadLine ' + - 'wdtPickSet ' + - 'wdtAccountCollection '; - - // enum TWorkImportance - const TWorkImportance = 'wiLow ' + 'wiNormal ' + 'wiHigh '; - - // enum TWorkRouteType - const TWorkRouteType = 'wrtSoft ' + 'wrtHard '; - - // enum TWorkState - const TWorkState = - 'wsInit ' + - 'wsRunning ' + - 'wsDone ' + - 'wsControlled ' + - 'wsAborted ' + - 'wsContinued '; - - // enum TWorkTextBuildingMode - const TWorkTextBuildingMode = - 'wtmFull ' + 'wtmFromCurrent ' + 'wtmOnlyCurrent '; - - // Перечисления - const ENUMS = - TAccountType + - TActionEnabledMode + - TAddPosition + - TAlignment + - TAreaShowMode + - TCertificateInvalidationReason + - TCertificateType + - TCheckListBoxItemState + - TCloseOnEsc + - TCompType + - TConditionFormat + - TConnectionIntent + - TContentKind + - TControlType + - TCriterionContentType + - TCultureType + - TDataSetEventType + - TDataSetState + - TDateFormatType + - TDateOffsetType + - TDateTimeKind + - TDeaAccessRights + - TDocumentDefaultAction + - TEditMode + - TEditorCloseObservType + - TEdmsApplicationAction + - TEDocumentLockType + - TEDocumentStepShowMode + - TEDocumentStepVersionType + - TEDocumentStorageFunction + - TEDocumentStorageType + - TEDocumentVersionSourceType + - TEDocumentVersionState + - TEncodeType + - TExceptionCategory + - TExportedSignaturesType + - TExportedVersionType + - TFieldDataType + - TFolderType + - TGridRowHeight + - THyperlinkType + - TImageFileFormat + - TImageMode + - TImageType + - TInplaceHintKind + - TISBLContext + - TItemShow + - TJobKind + - TJoinType + - TLabelPos + - TLicensingType + - TLifeCycleStageFontColor + - TLifeCycleStageFontStyle + - TLockableDevelopmentComponentType + - TMaxRecordCountRestrictionType + - TRangeValueType + - TRelativeDate + - TReportDestination + - TReqDataType + - TRequisiteEventType + - TSBTimeType + - TSearchShowMode + - TSelectMode + - TSignatureType + - TSignerContentType + - TStringsSortType + - TStringValueType + - TStructuredObjectAttributeType + - TTaskAbortReason + - TTextValueType + - TUserObjectStatus + - TUserType + - TValuesBuildType + - TViewMode + - TViewSelectionMode + - TWizardActionType + - TWizardFormElementProperty + - TWizardFormElementType + - TWizardParamType + - TWizardStepResult + - TWizardStepType + - TWorkAccessType + - TWorkflowBlockType + - TWorkflowDataType + - TWorkImportance + - TWorkRouteType + - TWorkState + - TWorkTextBuildingMode; - - // Системные функции ==> SYSFUNCTIONS - const system_functions = - 'AddSubString ' + - 'AdjustLineBreaks ' + - 'AmountInWords ' + - 'Analysis ' + - 'ArrayDimCount ' + - 'ArrayHighBound ' + - 'ArrayLowBound ' + - 'ArrayOf ' + - 'ArrayReDim ' + - 'Assert ' + - 'Assigned ' + - 'BeginOfMonth ' + - 'BeginOfPeriod ' + - 'BuildProfilingOperationAnalysis ' + - 'CallProcedure ' + - 'CanReadFile ' + - 'CArrayElement ' + - 'CDataSetRequisite ' + - 'ChangeDate ' + - 'ChangeReferenceDataset ' + - 'Char ' + - 'CharPos ' + - 'CheckParam ' + - 'CheckParamValue ' + - 'CompareStrings ' + - 'ConstantExists ' + - 'ControlState ' + - 'ConvertDateStr ' + - 'Copy ' + - 'CopyFile ' + - 'CreateArray ' + - 'CreateCachedReference ' + - 'CreateConnection ' + - 'CreateDialog ' + - 'CreateDualListDialog ' + - 'CreateEditor ' + - 'CreateException ' + - 'CreateFile ' + - 'CreateFolderDialog ' + - 'CreateInputDialog ' + - 'CreateLinkFile ' + - 'CreateList ' + - 'CreateLock ' + - 'CreateMemoryDataSet ' + - 'CreateObject ' + - 'CreateOpenDialog ' + - 'CreateProgress ' + - 'CreateQuery ' + - 'CreateReference ' + - 'CreateReport ' + - 'CreateSaveDialog ' + - 'CreateScript ' + - 'CreateSQLPivotFunction ' + - 'CreateStringList ' + - 'CreateTreeListSelectDialog ' + - 'CSelectSQL ' + - 'CSQL ' + - 'CSubString ' + - 'CurrentUserID ' + - 'CurrentUserName ' + - 'CurrentVersion ' + - 'DataSetLocateEx ' + - 'DateDiff ' + - 'DateTimeDiff ' + - 'DateToStr ' + - 'DayOfWeek ' + - 'DeleteFile ' + - 'DirectoryExists ' + - 'DisableCheckAccessRights ' + - 'DisableCheckFullShowingRestriction ' + - 'DisableMassTaskSendingRestrictions ' + - 'DropTable ' + - 'DupeString ' + - 'EditText ' + - 'EnableCheckAccessRights ' + - 'EnableCheckFullShowingRestriction ' + - 'EnableMassTaskSendingRestrictions ' + - 'EndOfMonth ' + - 'EndOfPeriod ' + - 'ExceptionExists ' + - 'ExceptionsOff ' + - 'ExceptionsOn ' + - 'Execute ' + - 'ExecuteProcess ' + - 'Exit ' + - 'ExpandEnvironmentVariables ' + - 'ExtractFileDrive ' + - 'ExtractFileExt ' + - 'ExtractFileName ' + - 'ExtractFilePath ' + - 'ExtractParams ' + - 'FileExists ' + - 'FileSize ' + - 'FindFile ' + - 'FindSubString ' + - 'FirmContext ' + - 'ForceDirectories ' + - 'Format ' + - 'FormatDate ' + - 'FormatNumeric ' + - 'FormatSQLDate ' + - 'FormatString ' + - 'FreeException ' + - 'GetComponent ' + - 'GetComponentLaunchParam ' + - 'GetConstant ' + - 'GetLastException ' + - 'GetReferenceRecord ' + - 'GetRefTypeByRefID ' + - 'GetTableID ' + - 'GetTempFolder ' + - 'IfThen ' + - 'In ' + - 'IndexOf ' + - 'InputDialog ' + - 'InputDialogEx ' + - 'InteractiveMode ' + - 'IsFileLocked ' + - 'IsGraphicFile ' + - 'IsNumeric ' + - 'Length ' + - 'LoadString ' + - 'LoadStringFmt ' + - 'LocalTimeToUTC ' + - 'LowerCase ' + - 'Max ' + - 'MessageBox ' + - 'MessageBoxEx ' + - 'MimeDecodeBinary ' + - 'MimeDecodeString ' + - 'MimeEncodeBinary ' + - 'MimeEncodeString ' + - 'Min ' + - 'MoneyInWords ' + - 'MoveFile ' + - 'NewID ' + - 'Now ' + - 'OpenFile ' + - 'Ord ' + - 'Precision ' + - 'Raise ' + - 'ReadCertificateFromFile ' + - 'ReadFile ' + - 'ReferenceCodeByID ' + - 'ReferenceNumber ' + - 'ReferenceRequisiteMode ' + - 'ReferenceRequisiteValue ' + - 'RegionDateSettings ' + - 'RegionNumberSettings ' + - 'RegionTimeSettings ' + - 'RegRead ' + - 'RegWrite ' + - 'RenameFile ' + - 'Replace ' + - 'Round ' + - 'SelectServerCode ' + - 'SelectSQL ' + - 'ServerDateTime ' + - 'SetConstant ' + - 'SetManagedFolderFieldsState ' + - 'ShowConstantsInputDialog ' + - 'ShowMessage ' + - 'Sleep ' + - 'Split ' + - 'SQL ' + - 'SQL2XLSTAB ' + - 'SQLProfilingSendReport ' + - 'StrToDate ' + - 'SubString ' + - 'SubStringCount ' + - 'SystemSetting ' + - 'Time ' + - 'TimeDiff ' + - 'Today ' + - 'Transliterate ' + - 'Trim ' + - 'UpperCase ' + - 'UserStatus ' + - 'UTCToLocalTime ' + - 'ValidateXML ' + - 'VarIsClear ' + - 'VarIsEmpty ' + - 'VarIsNull ' + - 'WorkTimeDiff ' + - 'WriteFile ' + - 'WriteFileEx ' + - 'WriteObjectHistory ' + - 'Анализ ' + - 'БазаДанных ' + - 'БлокЕсть ' + - 'БлокЕстьРасш ' + - 'БлокИнфо ' + - 'БлокСнять ' + - 'БлокСнятьРасш ' + - 'БлокУстановить ' + - 'Ввод ' + - 'ВводМеню ' + - 'ВедС ' + - 'ВедСпр ' + - 'ВерхняяГраницаМассива ' + - 'ВнешПрогр ' + - 'Восст ' + - 'ВременнаяПапка ' + - 'Время ' + - 'ВыборSQL ' + - 'ВыбратьЗапись ' + - 'ВыделитьСтр ' + - 'Вызвать ' + - 'Выполнить ' + - 'ВыпПрогр ' + - 'ГрафическийФайл ' + - 'ГруппаДополнительно ' + - 'ДатаВремяСерв ' + - 'ДеньНедели ' + - 'ДиалогДаНет ' + - 'ДлинаСтр ' + - 'ДобПодстр ' + - 'ЕПусто ' + - 'ЕслиТо ' + - 'ЕЧисло ' + - 'ЗамПодстр ' + - 'ЗаписьСправочника ' + - 'ЗначПоляСпр ' + - 'ИДТипСпр ' + - 'ИзвлечьДиск ' + - 'ИзвлечьИмяФайла ' + - 'ИзвлечьПуть ' + - 'ИзвлечьРасширение ' + - 'ИзмДат ' + - 'ИзменитьРазмерМассива ' + - 'ИзмеренийМассива ' + - 'ИмяОрг ' + - 'ИмяПоляСпр ' + - 'Индекс ' + - 'ИндикаторЗакрыть ' + - 'ИндикаторОткрыть ' + - 'ИндикаторШаг ' + - 'ИнтерактивныйРежим ' + - 'ИтогТблСпр ' + - 'КодВидВедСпр ' + - 'КодВидСпрПоИД ' + - 'КодПоAnalit ' + - 'КодСимвола ' + - 'КодСпр ' + - 'КолПодстр ' + - 'КолПроп ' + - 'КонМес ' + - 'Конст ' + - 'КонстЕсть ' + - 'КонстЗнач ' + - 'КонТран ' + - 'КопироватьФайл ' + - 'КопияСтр ' + - 'КПериод ' + - 'КСтрТблСпр ' + - 'Макс ' + - 'МаксСтрТблСпр ' + - 'Массив ' + - 'Меню ' + - 'МенюРасш ' + - 'Мин ' + - 'НаборДанныхНайтиРасш ' + - 'НаимВидСпр ' + - 'НаимПоAnalit ' + - 'НаимСпр ' + - 'НастроитьПереводыСтрок ' + - 'НачМес ' + - 'НачТран ' + - 'НижняяГраницаМассива ' + - 'НомерСпр ' + - 'НПериод ' + - 'Окно ' + - 'Окр ' + - 'Окружение ' + - 'ОтлИнфДобавить ' + - 'ОтлИнфУдалить ' + - 'Отчет ' + - 'ОтчетАнал ' + - 'ОтчетИнт ' + - 'ПапкаСуществует ' + - 'Пауза ' + - 'ПВыборSQL ' + - 'ПереименоватьФайл ' + - 'Переменные ' + - 'ПереместитьФайл ' + - 'Подстр ' + - 'ПоискПодстр ' + - 'ПоискСтр ' + - 'ПолучитьИДТаблицы ' + - 'ПользовательДополнительно ' + - 'ПользовательИД ' + - 'ПользовательИмя ' + - 'ПользовательСтатус ' + - 'Прервать ' + - 'ПроверитьПараметр ' + - 'ПроверитьПараметрЗнач ' + - 'ПроверитьУсловие ' + - 'РазбСтр ' + - 'РазнВремя ' + - 'РазнДат ' + - 'РазнДатаВремя ' + - 'РазнРабВремя ' + - 'РегУстВрем ' + - 'РегУстДат ' + - 'РегУстЧсл ' + - 'РедТекст ' + - 'РеестрЗапись ' + - 'РеестрСписокИменПарам ' + - 'РеестрЧтение ' + - 'РеквСпр ' + - 'РеквСпрПр ' + - 'Сегодня ' + - 'Сейчас ' + - 'Сервер ' + - 'СерверПроцессИД ' + - 'СертификатФайлСчитать ' + - 'СжПроб ' + - 'Символ ' + - 'СистемаДиректумКод ' + - 'СистемаИнформация ' + - 'СистемаКод ' + - 'Содержит ' + - 'СоединениеЗакрыть ' + - 'СоединениеОткрыть ' + - 'СоздатьДиалог ' + - 'СоздатьДиалогВыбораИзДвухСписков ' + - 'СоздатьДиалогВыбораПапки ' + - 'СоздатьДиалогОткрытияФайла ' + - 'СоздатьДиалогСохраненияФайла ' + - 'СоздатьЗапрос ' + - 'СоздатьИндикатор ' + - 'СоздатьИсключение ' + - 'СоздатьКэшированныйСправочник ' + - 'СоздатьМассив ' + - 'СоздатьНаборДанных ' + - 'СоздатьОбъект ' + - 'СоздатьОтчет ' + - 'СоздатьПапку ' + - 'СоздатьРедактор ' + - 'СоздатьСоединение ' + - 'СоздатьСписок ' + - 'СоздатьСписокСтрок ' + - 'СоздатьСправочник ' + - 'СоздатьСценарий ' + - 'СоздСпр ' + - 'СостСпр ' + - 'Сохр ' + - 'СохрСпр ' + - 'СписокСистем ' + - 'Спр ' + - 'Справочник ' + - 'СпрБлокЕсть ' + - 'СпрБлокСнять ' + - 'СпрБлокСнятьРасш ' + - 'СпрБлокУстановить ' + - 'СпрИзмНабДан ' + - 'СпрКод ' + - 'СпрНомер ' + - 'СпрОбновить ' + - 'СпрОткрыть ' + - 'СпрОтменить ' + - 'СпрПарам ' + - 'СпрПолеЗнач ' + - 'СпрПолеИмя ' + - 'СпрРекв ' + - 'СпрРеквВведЗн ' + - 'СпрРеквНовые ' + - 'СпрРеквПр ' + - 'СпрРеквПредЗн ' + - 'СпрРеквРежим ' + - 'СпрРеквТипТекст ' + - 'СпрСоздать ' + - 'СпрСост ' + - 'СпрСохранить ' + - 'СпрТблИтог ' + - 'СпрТблСтр ' + - 'СпрТблСтрКол ' + - 'СпрТблСтрМакс ' + - 'СпрТблСтрМин ' + - 'СпрТблСтрПред ' + - 'СпрТблСтрСлед ' + - 'СпрТблСтрСозд ' + - 'СпрТблСтрУд ' + - 'СпрТекПредст ' + - 'СпрУдалить ' + - 'СравнитьСтр ' + - 'СтрВерхРегистр ' + - 'СтрНижнРегистр ' + - 'СтрТблСпр ' + - 'СумПроп ' + - 'Сценарий ' + - 'СценарийПарам ' + - 'ТекВерсия ' + - 'ТекОрг ' + - 'Точн ' + - 'Тран ' + - 'Транслитерация ' + - 'УдалитьТаблицу ' + - 'УдалитьФайл ' + - 'УдСпр ' + - 'УдСтрТблСпр ' + - 'Уст ' + - 'УстановкиКонстант ' + - 'ФайлАтрибутСчитать ' + - 'ФайлАтрибутУстановить ' + - 'ФайлВремя ' + - 'ФайлВремяУстановить ' + - 'ФайлВыбрать ' + - 'ФайлЗанят ' + - 'ФайлЗаписать ' + - 'ФайлИскать ' + - 'ФайлКопировать ' + - 'ФайлМожноЧитать ' + - 'ФайлОткрыть ' + - 'ФайлПереименовать ' + - 'ФайлПерекодировать ' + - 'ФайлПереместить ' + - 'ФайлПросмотреть ' + - 'ФайлРазмер ' + - 'ФайлСоздать ' + - 'ФайлСсылкаСоздать ' + - 'ФайлСуществует ' + - 'ФайлСчитать ' + - 'ФайлУдалить ' + - 'ФмтSQLДат ' + - 'ФмтДат ' + - 'ФмтСтр ' + - 'ФмтЧсл ' + - 'Формат ' + - 'ЦМассивЭлемент ' + - 'ЦНаборДанныхРеквизит ' + - 'ЦПодстр '; - - // Предопределенные переменные ==> built_in - const predefined_variables = - 'AltState ' + - 'Application ' + - 'CallType ' + - 'ComponentTokens ' + - 'CreatedJobs ' + - 'CreatedNotices ' + - 'ControlState ' + - 'DialogResult ' + - 'Dialogs ' + - 'EDocuments ' + - 'EDocumentVersionSource ' + - 'Folders ' + - 'GlobalIDs ' + - 'Job ' + - 'Jobs ' + - 'InputValue ' + - 'LookUpReference ' + - 'LookUpRequisiteNames ' + - 'LookUpSearch ' + - 'Object ' + - 'ParentComponent ' + - 'Processes ' + - 'References ' + - 'Requisite ' + - 'ReportName ' + - 'Reports ' + - 'Result ' + - 'Scripts ' + - 'Searches ' + - 'SelectedAttachments ' + - 'SelectedItems ' + - 'SelectMode ' + - 'Sender ' + - 'ServerEvents ' + - 'ServiceFactory ' + - 'ShiftState ' + - 'SubTask ' + - 'SystemDialogs ' + - 'Tasks ' + - 'Wizard ' + - 'Wizards ' + - 'Work ' + - 'ВызовСпособ ' + - 'ИмяОтчета ' + - 'РеквЗнач '; - - // Интерфейсы ==> type - const interfaces = - 'IApplication ' + - 'IAccessRights ' + - 'IAccountRepository ' + - 'IAccountSelectionRestrictions ' + - 'IAction ' + - 'IActionList ' + - 'IAdministrationHistoryDescription ' + - 'IAnchors ' + - 'IApplication ' + - 'IArchiveInfo ' + - 'IAttachment ' + - 'IAttachmentList ' + - 'ICheckListBox ' + - 'ICheckPointedList ' + - 'IColumn ' + - 'IComponent ' + - 'IComponentDescription ' + - 'IComponentToken ' + - 'IComponentTokenFactory ' + - 'IComponentTokenInfo ' + - 'ICompRecordInfo ' + - 'IConnection ' + - 'IContents ' + - 'IControl ' + - 'IControlJob ' + - 'IControlJobInfo ' + - 'IControlList ' + - 'ICrypto ' + - 'ICrypto2 ' + - 'ICustomJob ' + - 'ICustomJobInfo ' + - 'ICustomListBox ' + - 'ICustomObjectWizardStep ' + - 'ICustomWork ' + - 'ICustomWorkInfo ' + - 'IDataSet ' + - 'IDataSetAccessInfo ' + - 'IDataSigner ' + - 'IDateCriterion ' + - 'IDateRequisite ' + - 'IDateRequisiteDescription ' + - 'IDateValue ' + - 'IDeaAccessRights ' + - 'IDeaObjectInfo ' + - 'IDevelopmentComponentLock ' + - 'IDialog ' + - 'IDialogFactory ' + - 'IDialogPickRequisiteItems ' + - 'IDialogsFactory ' + - 'IDICSFactory ' + - 'IDocRequisite ' + - 'IDocumentInfo ' + - 'IDualListDialog ' + - 'IECertificate ' + - 'IECertificateInfo ' + - 'IECertificates ' + - 'IEditControl ' + - 'IEditorForm ' + - 'IEdmsExplorer ' + - 'IEdmsObject ' + - 'IEdmsObjectDescription ' + - 'IEdmsObjectFactory ' + - 'IEdmsObjectInfo ' + - 'IEDocument ' + - 'IEDocumentAccessRights ' + - 'IEDocumentDescription ' + - 'IEDocumentEditor ' + - 'IEDocumentFactory ' + - 'IEDocumentInfo ' + - 'IEDocumentStorage ' + - 'IEDocumentVersion ' + - 'IEDocumentVersionListDialog ' + - 'IEDocumentVersionSource ' + - 'IEDocumentWizardStep ' + - 'IEDocVerSignature ' + - 'IEDocVersionState ' + - 'IEnabledMode ' + - 'IEncodeProvider ' + - 'IEncrypter ' + - 'IEvent ' + - 'IEventList ' + - 'IException ' + - 'IExternalEvents ' + - 'IExternalHandler ' + - 'IFactory ' + - 'IField ' + - 'IFileDialog ' + - 'IFolder ' + - 'IFolderDescription ' + - 'IFolderDialog ' + - 'IFolderFactory ' + - 'IFolderInfo ' + - 'IForEach ' + - 'IForm ' + - 'IFormTitle ' + - 'IFormWizardStep ' + - 'IGlobalIDFactory ' + - 'IGlobalIDInfo ' + - 'IGrid ' + - 'IHasher ' + - 'IHistoryDescription ' + - 'IHyperLinkControl ' + - 'IImageButton ' + - 'IImageControl ' + - 'IInnerPanel ' + - 'IInplaceHint ' + - 'IIntegerCriterion ' + - 'IIntegerList ' + - 'IIntegerRequisite ' + - 'IIntegerValue ' + - 'IISBLEditorForm ' + - 'IJob ' + - 'IJobDescription ' + - 'IJobFactory ' + - 'IJobForm ' + - 'IJobInfo ' + - 'ILabelControl ' + - 'ILargeIntegerCriterion ' + - 'ILargeIntegerRequisite ' + - 'ILargeIntegerValue ' + - 'ILicenseInfo ' + - 'ILifeCycleStage ' + - 'IList ' + - 'IListBox ' + - 'ILocalIDInfo ' + - 'ILocalization ' + - 'ILock ' + - 'IMemoryDataSet ' + - 'IMessagingFactory ' + - 'IMetadataRepository ' + - 'INotice ' + - 'INoticeInfo ' + - 'INumericCriterion ' + - 'INumericRequisite ' + - 'INumericValue ' + - 'IObject ' + - 'IObjectDescription ' + - 'IObjectImporter ' + - 'IObjectInfo ' + - 'IObserver ' + - 'IPanelGroup ' + - 'IPickCriterion ' + - 'IPickProperty ' + - 'IPickRequisite ' + - 'IPickRequisiteDescription ' + - 'IPickRequisiteItem ' + - 'IPickRequisiteItems ' + - 'IPickValue ' + - 'IPrivilege ' + - 'IPrivilegeList ' + - 'IProcess ' + - 'IProcessFactory ' + - 'IProcessMessage ' + - 'IProgress ' + - 'IProperty ' + - 'IPropertyChangeEvent ' + - 'IQuery ' + - 'IReference ' + - 'IReferenceCriterion ' + - 'IReferenceEnabledMode ' + - 'IReferenceFactory ' + - 'IReferenceHistoryDescription ' + - 'IReferenceInfo ' + - 'IReferenceRecordCardWizardStep ' + - 'IReferenceRequisiteDescription ' + - 'IReferencesFactory ' + - 'IReferenceValue ' + - 'IRefRequisite ' + - 'IReport ' + - 'IReportFactory ' + - 'IRequisite ' + - 'IRequisiteDescription ' + - 'IRequisiteDescriptionList ' + - 'IRequisiteFactory ' + - 'IRichEdit ' + - 'IRouteStep ' + - 'IRule ' + - 'IRuleList ' + - 'ISchemeBlock ' + - 'IScript ' + - 'IScriptFactory ' + - 'ISearchCriteria ' + - 'ISearchCriterion ' + - 'ISearchDescription ' + - 'ISearchFactory ' + - 'ISearchFolderInfo ' + - 'ISearchForObjectDescription ' + - 'ISearchResultRestrictions ' + - 'ISecuredContext ' + - 'ISelectDialog ' + - 'IServerEvent ' + - 'IServerEventFactory ' + - 'IServiceDialog ' + - 'IServiceFactory ' + - 'ISignature ' + - 'ISignProvider ' + - 'ISignProvider2 ' + - 'ISignProvider3 ' + - 'ISimpleCriterion ' + - 'IStringCriterion ' + - 'IStringList ' + - 'IStringRequisite ' + - 'IStringRequisiteDescription ' + - 'IStringValue ' + - 'ISystemDialogsFactory ' + - 'ISystemInfo ' + - 'ITabSheet ' + - 'ITask ' + - 'ITaskAbortReasonInfo ' + - 'ITaskCardWizardStep ' + - 'ITaskDescription ' + - 'ITaskFactory ' + - 'ITaskInfo ' + - 'ITaskRoute ' + - 'ITextCriterion ' + - 'ITextRequisite ' + - 'ITextValue ' + - 'ITreeListSelectDialog ' + - 'IUser ' + - 'IUserList ' + - 'IValue ' + - 'IView ' + - 'IWebBrowserControl ' + - 'IWizard ' + - 'IWizardAction ' + - 'IWizardFactory ' + - 'IWizardFormElement ' + - 'IWizardParam ' + - 'IWizardPickParam ' + - 'IWizardReferenceParam ' + - 'IWizardStep ' + - 'IWorkAccessRights ' + - 'IWorkDescription ' + - 'IWorkflowAskableParam ' + - 'IWorkflowAskableParams ' + - 'IWorkflowBlock ' + - 'IWorkflowBlockResult ' + - 'IWorkflowEnabledMode ' + - 'IWorkflowParam ' + - 'IWorkflowPickParam ' + - 'IWorkflowReferenceParam ' + - 'IWorkState ' + - 'IWorkTreeCustomNode ' + - 'IWorkTreeJobNode ' + - 'IWorkTreeTaskNode ' + - 'IXMLEditorForm ' + - 'SBCrypto '; - - // built_in : встроенные или библиотечные объекты (константы, перечисления) - const BUILTIN = CONSTANTS + ENUMS; - - // class: встроенные наборы значений, системные объекты, фабрики - const CLASS = predefined_variables; - - // literal : примитивные типы - const LITERAL = 'null true false nil '; - - // number : числа - const NUMBERS = { - className: 'number', - begin: hljs.NUMBER_RE, - relevance: 0, - }; - - // string : строки - const STRINGS = { - className: 'string', - variants: [ - { - begin: '"', - end: '"', - }, - { - begin: "'", - end: "'", - }, - ], - }; - - // Токены - const DOCTAGS = { - className: 'doctag', - begin: '\\b(?:TODO|DONE|BEGIN|END|STUB|CHG|FIXME|NOTE|BUG|XXX)\\b', - relevance: 0, - }; - - // Однострочный комментарий - const ISBL_LINE_COMMENT_MODE = { - className: 'comment', - begin: '//', - end: '$', - relevance: 0, - contains: [hljs.PHRASAL_WORDS_MODE, DOCTAGS], - }; - - // Многострочный комментарий - const ISBL_BLOCK_COMMENT_MODE = { - className: 'comment', - begin: '/\\*', - end: '\\*/', - relevance: 0, - contains: [hljs.PHRASAL_WORDS_MODE, DOCTAGS], - }; - - // comment : комментарии - const COMMENTS = { - variants: [ISBL_LINE_COMMENT_MODE, ISBL_BLOCK_COMMENT_MODE], - }; - - // keywords : ключевые слова - const KEYWORDS = { - $pattern: UNDERSCORE_IDENT_RE, - keyword: KEYWORD, - built_in: BUILTIN, - class: CLASS, - literal: LITERAL, - }; - - // methods : методы - const METHODS = { - begin: '\\.\\s*' + hljs.UNDERSCORE_IDENT_RE, - keywords: KEYWORDS, - relevance: 0, - }; - - // type : встроенные типы - const TYPES = { - className: 'type', - begin: ':[ \\t]*(' + interfaces.trim().replace(/\s/g, '|') + ')', - end: '[ \\t]*=', - excludeEnd: true, - }; - - // variables : переменные - const VARIABLES = { - className: 'variable', - keywords: KEYWORDS, - begin: UNDERSCORE_IDENT_RE, - relevance: 0, - contains: [TYPES, METHODS], - }; - - // Имена функций - const FUNCTION_TITLE = FUNCTION_NAME_IDENT_RE + '\\('; - - const TITLE_MODE = { - className: 'title', - keywords: { - $pattern: UNDERSCORE_IDENT_RE, - built_in: system_functions, - }, - begin: FUNCTION_TITLE, - end: '\\(', - returnBegin: true, - excludeEnd: true, - }; - - // function : функции - const FUNCTIONS = { - className: 'function', - begin: FUNCTION_TITLE, - end: '\\)$', - returnBegin: true, - keywords: KEYWORDS, - illegal: '[\\[\\]\\|\\$\\?%,~#@]', - contains: [TITLE_MODE, METHODS, VARIABLES, STRINGS, NUMBERS, COMMENTS], - }; - - return { - name: 'ISBL', - aliases: ['isbl'], - case_insensitive: true, - keywords: KEYWORDS, - illegal: '\\$|\\?|%|,|;$|~|#|@|, - pub module_id: String, - pub project_root: String, - pub replace_env: bool, - pub env: HashMap, - pub inline_fs: bool, - pub insert_node_globals: bool, - pub node_replacer: bool, - pub is_browser: bool, - pub is_worker: bool, - pub is_type_script: bool, - pub is_jsx: bool, - pub jsx_pragma: Option, - pub jsx_pragma_frag: Option, - pub automatic_jsx_runtime: bool, - pub jsx_import_source: Option, - pub decorators: bool, - pub use_define_for_class_fields: bool, - pub is_development: bool, - pub react_refresh: bool, - pub targets: Option>, - pub source_maps: bool, - pub scope_hoist: bool, - pub source_type: SourceType, - pub supports_module_workers: bool, - pub is_library: bool, - pub is_esm_output: bool, - pub trace_bailouts: bool, - pub is_swc_helpers: bool, - pub standalone: bool, - pub inline_constants: bool, + code: Vec, + module_id: String, + project_root: String, + replace_env: bool, + env: HashMap, + inline_fs: bool, + insert_node_globals: bool, + node_replacer: bool, + is_browser: bool, + is_worker: bool, + is_type_script: bool, + is_jsx: bool, + jsx_pragma: Option, + jsx_pragma_frag: Option, + automatic_jsx_runtime: bool, + jsx_import_source: Option, + decorators: bool, + use_define_for_class_fields: bool, + is_development: bool, + react_refresh: bool, + targets: Option>, + source_maps: bool, + scope_hoist: bool, + source_type: SourceType, + supports_module_workers: bool, + is_library: bool, + is_esm_output: bool, + trace_bailouts: bool, + is_swc_helpers: bool, + standalone: bool, + inline_constants: bool, } #[derive(Serialize, Debug, Default)] pub struct TransformResult { #[serde(with = "serde_bytes")] - pub code: Vec, + code: Vec, map: Option, shebang: Option, dependencies: Vec, From 46045721d11845834e2b4a03bd899ae89db399e8 Mon Sep 17 00:00:00 2001 From: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com> Date: Mon, 29 Apr 2024 22:06:05 +0200 Subject: [PATCH 07/13] Add swc update script --- scripts/swc-update-all.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 scripts/swc-update-all.sh diff --git a/scripts/swc-update-all.sh b/scripts/swc-update-all.sh new file mode 100755 index 00000000000..f9e1e74af8f --- /dev/null +++ b/scripts/swc-update-all.sh @@ -0,0 +1,18 @@ +#!/usr/bin/env bash + +# This bumps all swc crates in Cargo.lock to the latest version. +# Before, update the swc_core version range in all Cargo.tomls to the latest version. + +set -eu + +echo "Listing all swc crates" + +swc_crates=$(cargo metadata --format-version=1 --all-features | jq '.packages .[] | select(.repository == "https://github.com/swc-project/swc.git" or .repository == "https://github.com/swc-project/plugins.git") | .name' -r) + +command="cargo update" +for crate in $swc_crates; do + command="$command -p $crate" +done + +echo "Running: $command" +eval $command From 55eedf9c488cd85913ccc7374760df5760f246e8 Mon Sep 17 00:00:00 2001 From: Niklas Mischkulnig <4586894+mischnic@users.noreply.github.com> Date: Mon, 29 Apr 2024 22:02:29 +0200 Subject: [PATCH 08/13] Update test fixtures --- packages/core/core/test/Parcel.test.js | 10 +++++----- packages/core/integration-tests/test/cache.js | 6 +++--- packages/core/integration-tests/test/html.js | 4 ++-- .../test/incremental-bundling.js | 16 ++++++++-------- .../core/integration-tests/test/javascript.js | 16 ++++++++-------- .../integration-tests/test/output-formats.js | 2 +- .../core/integration-tests/test/sourcemaps.js | 10 +++++----- packages/core/integration-tests/test/svg.js | 2 +- 8 files changed, 33 insertions(+), 33 deletions(-) diff --git a/packages/core/core/test/Parcel.test.js b/packages/core/core/test/Parcel.test.js index 36b2681a5e0..fec67bc03bf 100644 --- a/packages/core/core/test/Parcel.test.js +++ b/packages/core/core/test/Parcel.test.js @@ -86,13 +86,13 @@ describe('ParcelAPI', function () { afterEach(() => workerFarm.end()); describe('parcel.unstable_transform()', () => { - it('should transforms simple file', async () => { + it('should transform simple file', async () => { let parcel = createParcel({workerFarm}); let res = await parcel.unstable_transform({ filePath: path.join(__dirname, 'fixtures/parcel/index.js'), }); let code = await res[0].getCode(); - assert(code.includes('exports.default = "test"')); + assert(code.includes(`exports.default = 'test'`)); }); it('should transform with standalone mode', async () => { @@ -103,9 +103,9 @@ describe('ParcelAPI', function () { }); let code = await res[0].getCode(); - assert(code.includes('require("./index.js")')); - assert(code.includes('new URL("index.js", "file:" + __filename);')); - assert(code.includes('import("index.js")')); + assert(code.includes(`require("./index.js")`)); + assert(code.includes(`new URL("index.js", "file:" + __filename);`)); + assert(code.includes(`import('index.js')`)); }); }); diff --git a/packages/core/integration-tests/test/cache.js b/packages/core/integration-tests/test/cache.js index d5246bccf46..610ad380477 100644 --- a/packages/core/integration-tests/test/cache.js +++ b/packages/core/integration-tests/test/cache.js @@ -5875,17 +5875,17 @@ describe('cache', function () { }, async update(b) { let res = await run(b.bundleGraph); - assert(res.includes(`let a = "a"`)); + assert(res.includes(`let a = 'a'`)); await overlayFS.writeFile( path.join(inputDir, 'src/entries/a.js'), - `export let a = "b";`, + `export let a = 'b';`, ); }, }); let res = await run(b.bundleGraph); - assert(res.includes(`let a = "b"`)); + assert(res.includes(`let a = 'b'`)); }); it('should invalidate when switching to a different packager for an inline bundle', async function () { diff --git a/packages/core/integration-tests/test/html.js b/packages/core/integration-tests/test/html.js index 9121106a27a..aa9b044765b 100644 --- a/packages/core/integration-tests/test/html.js +++ b/packages/core/integration-tests/test/html.js @@ -2689,7 +2689,7 @@ describe('html', function () { await getNextBuild(b); let html = await outputFS.readFile('/dist/index.html', 'utf8'); - assert(html.includes(`console.log("test")`)); + assert(html.includes(`console.log('test')`)); await overlayFS.writeFile( path.join(__dirname, '/html-inline-js-require/test.js'), @@ -2698,7 +2698,7 @@ describe('html', function () { await getNextBuild(b); html = await outputFS.readFile(path.join(distDir, '/index.html'), 'utf8'); - assert(html.includes(`console.log("foo")`)); + assert(html.includes(`console.log('foo')`)); }); it('should invalidate parent bundle when nested inline bundles change', async function () { diff --git a/packages/core/integration-tests/test/incremental-bundling.js b/packages/core/integration-tests/test/incremental-bundling.js index 4eacb8f4c36..0e767145fe3 100644 --- a/packages/core/integration-tests/test/incremental-bundling.js +++ b/packages/core/integration-tests/test/incremental-bundling.js @@ -90,7 +90,7 @@ console.log('adding a new console');`, result.bundleGraph.getBundles()[0].filePath, 'utf8', ); - assert(contents.includes(`console.log("adding a new console")`)); + assert(contents.includes(`console.log('adding a new console')`)); } finally { if (subscription) { await subscription.unsubscribe(); @@ -132,7 +132,7 @@ console.log('adding a new console');`, result.bundleGraph.getBundles()[0].filePath, 'utf8', ); - assert(contents.includes(`console.log("adding a new console")`)); + assert(contents.includes(`console.log('adding a new console')`)); } finally { if (subscription) { await subscription.unsubscribe(); @@ -174,7 +174,7 @@ console.log('adding a new console');`, result.bundleGraph.getBundles()[0].filePath, 'utf8', ); - assert(contents.includes(`console.log("adding a new console")`)); + assert(contents.includes(`console.log('adding a new console')`)); } finally { if (subscription) { await subscription.unsubscribe(); @@ -217,7 +217,7 @@ console.log(a); 'utf8', ); assert( - contents.includes(`console.log("index.js - updated string");`), + contents.includes(`console.log('index.js - updated string');`), ); } finally { if (subscription) { @@ -308,7 +308,7 @@ module.exports = a;`, 'utf8', ); - assert(contents.includes(`console.log("adding a new console")`)); + assert(contents.includes(`console.log('adding a new console')`)); let bundleOutput = await run(result.bundleGraph); assert.equal(bundleOutput, 'a updated'); @@ -404,7 +404,7 @@ console.log(a, 'updated');`, 'utf8', ); - assert(contents.includes(`console.log((0, _a.a), "updated");`)); + assert(contents.includes(`console.log((0, _a.a), 'updated');`)); let bundleCSS = result.bundleGraph.getBundles()[1]; assert.equal(bundleCSS.type, 'css'); @@ -504,7 +504,7 @@ console.log(a); 'utf8', ); - assert(contents.includes(`console.log("index.js", (0, _b.b));`)); + assert(contents.includes(`console.log('index.js', (0, _b.b));`)); } finally { if (subscription) { await subscription.unsubscribe(); @@ -612,7 +612,7 @@ console.log(a, b); ); assert( dynamicContent.includes(`parcelHelpers.export(exports, "b", ()=>b); -const b = "b";`), +const b = 'b';`), ); } finally { if (subscription) { diff --git a/packages/core/integration-tests/test/javascript.js b/packages/core/integration-tests/test/javascript.js index e1d9c7839f8..4f941fb5645 100644 --- a/packages/core/integration-tests/test/javascript.js +++ b/packages/core/integration-tests/test/javascript.js @@ -1109,8 +1109,8 @@ describe('javascript', function () { let main = await outputFS.readFile(b.getBundles()[0].filePath, 'utf8'); dedicated = await outputFS.readFile(dedicated.filePath, 'utf8'); shared = await outputFS.readFile(shared.filePath, 'utf8'); - assert(/new Worker(.*?, {[\n\s]+type: "module"[\n\s]+})/.test(main)); - assert(/new SharedWorker(.*?, {[\n\s]+type: "module"[\n\s]+})/.test(main)); + assert(/new Worker(.*?, {[\n\s]+type: 'module'[\n\s]+})/.test(main)); + assert(/new SharedWorker(.*?, {[\n\s]+type: 'module'[\n\s]+})/.test(main)); }); for (let shouldScopeHoist of [true, false]) { @@ -1263,8 +1263,8 @@ describe('javascript', function () { ); let main = await outputFS.readFile(b.getBundles()[0].filePath, 'utf8'); - assert(/new Worker(.*?, {[\n\s]+name: "worker"[\n\s]+})/.test(main)); - assert(/new SharedWorker(.*?, {[\n\s]+name: "shared"[\n\s]+})/.test(main)); + assert(/new Worker(.*?, {[\n\s]+name: 'worker'[\n\s]+})/.test(main)); + assert(/new SharedWorker(.*?, {[\n\s]+name: 'shared'[\n\s]+})/.test(main)); }); it('should error if importing in a worker without type: module', async function () { @@ -1463,7 +1463,7 @@ describe('javascript', function () { ]); let res = await outputFS.readFile(b.getBundles()[0].filePath, 'utf8'); - assert(res.includes(`importScripts("imported.js")`)); + assert(res.includes(`importScripts('imported.js')`)); }); it('should ignore importScripts in script workers when not passed a string literal', async function () { @@ -1509,7 +1509,7 @@ describe('javascript', function () { ]); let res = await outputFS.readFile(b.getBundles()[1].filePath, 'utf8'); - assert(res.includes(`importScripts("https://unpkg.com/parcel")`)); + assert(res.includes(`importScripts('https://unpkg.com/parcel')`)); }); it('should support bundling service-workers', async function () { @@ -1584,7 +1584,7 @@ describe('javascript', function () { let main = bundles.find(b => !b.env.isWorker()); let mainContents = await outputFS.readFile(main.filePath, 'utf8'); assert( - /navigator.serviceWorker.register\(.*?, {[\n\s]*scope: "foo"[\n\s]*}\)/.test( + /navigator.serviceWorker.register\(.*?, {[\n\s]*scope: 'foo'[\n\s]*}\)/.test( mainContents, ), ); @@ -4386,7 +4386,7 @@ describe('javascript', function () { let res = await run(b); assert.equal( res.default, - `

test

\n\n`, + `

test

\n\n`, ); }); diff --git a/packages/core/integration-tests/test/output-formats.js b/packages/core/integration-tests/test/output-formats.js index 22832c2138b..b86e43255e9 100644 --- a/packages/core/integration-tests/test/output-formats.js +++ b/packages/core/integration-tests/test/output-formats.js @@ -1060,7 +1060,7 @@ describe('output formats', function () { .find(bundle => bundle.name.startsWith('async')); assert( new RegExp( - `getBundleURL\\("[a-zA-Z0-9]+"\\) \\+ "` + + `getBundleURL\\('[a-zA-Z0-9]+'\\) \\+ "` + path.basename(asyncBundle.filePath) + '"', ).test(entry), diff --git a/packages/core/integration-tests/test/sourcemaps.js b/packages/core/integration-tests/test/sourcemaps.js index 39040fd4a4e..8e9d1ecf171 100644 --- a/packages/core/integration-tests/test/sourcemaps.js +++ b/packages/core/integration-tests/test/sourcemaps.js @@ -1258,7 +1258,7 @@ describe('sourcemaps', function () { source: input, generated: raw, str: "console.log('foo')", - generatedStr: `console.log("foo")`, + generatedStr: `console.log('foo')`, sourcePath, }); @@ -1267,7 +1267,7 @@ describe('sourcemaps', function () { source: input, generated: raw, str: "console.log('bar')", - generatedStr: `console.log("bar")`, + generatedStr: `console.log('bar')`, sourcePath, }); @@ -1276,7 +1276,7 @@ describe('sourcemaps', function () { source: input, generated: raw, str: "console.log('baz')", - generatedStr: `console.log("baz")`, + generatedStr: `console.log('baz')`, sourcePath, }); @@ -1285,7 +1285,7 @@ describe('sourcemaps', function () { source: input, generated: raw, str: "console.log('idhf')", - generatedStr: `console.log("idhf")`, + generatedStr: `console.log('idhf')`, sourcePath, }); }); @@ -1425,7 +1425,7 @@ describe('sourcemaps', function () { source: sourceContent, generated: raw, str: `foo = 'Lorem ipsum`, - generatedStr: `foo = "Lorem ipsum`, + generatedStr: `foo = 'Lorem ipsum`, sourcePath, }); }); diff --git a/packages/core/integration-tests/test/svg.js b/packages/core/integration-tests/test/svg.js index f8e2d06ad5f..6eebd2c937f 100644 --- a/packages/core/integration-tests/test/svg.js +++ b/packages/core/integration-tests/test/svg.js @@ -195,7 +195,7 @@ describe('svg', function () { ), ); assert(svg.includes('