@hpcc-js/comms 2.102.3 → 2.102.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,2 +1,2 @@
1
- "use strict";var util=require("@hpcc-js/util"),xmldom=require("@xmldom/xmldom"),fetch$1=require("node-fetch"),https=require("https"),undici=require("undici"),AbortController=require("abort-controller"),safeBuffer=require("safe-buffer"),cp=require("child_process"),fs=require("fs"),os=require("os"),path=require("path"),tmp=require("tmp");function _interopNamespaceDefault(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var https__namespace=_interopNamespaceDefault(https),cp__namespace=_interopNamespaceDefault(cp),fs__namespace=_interopNamespaceDefault(fs),os__namespace=_interopNamespaceDefault(os),path__namespace=_interopNamespaceDefault(path),tmp__namespace=_interopNamespaceDefault(tmp),trustwave="\nTrustwave Secure Global Extended Validation CA, Level 1\nSecureTrust Corporation\n00F6F61CE4A3635BB0CA8AACEEFCB2D0F0\n-----BEGIN CERTIFICATE-----\nMIIE+DCCA+CgAwIBAgIRAPb2HOSjY1uwyoqs7vyy0PAwDQYJKoZIhvcNAQELBQAw\nSjELMAkGA1UEBhMCVVMxIDAeBgNVBAoTF1NlY3VyZVRydXN0IENvcnBvcmF0aW9u\nMRkwFwYDVQQDExBTZWN1cmUgR2xvYmFsIENBMB4XDTE1MDgxMjIwMTcyOVoXDTI1\nMDgwOTIwMTcyOVowgbgxCzAJBgNVBAYTAlVTMREwDwYDVQQIEwhJbGxpbm9pczEQ\nMA4GA1UEBxMHQ2hpY2FnbzEhMB8GA1UEChMYVHJ1c3R3YXZlIEhvbGRpbmdzLCBJ\nbmMuMUAwPgYDVQQDEzdUcnVzdHdhdmUgU2VjdXJlIEdsb2JhbCBFeHRlbmRlZCBW\nYWxpZGF0aW9uIENBLC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nckIi+J3udyFrbO5p64JBvtc0K4kAOPFSKpHssFcnRLPx\nFXgGxXq6ohD4Py+xaEApslYFfMy89N6DKs/v/10/+/xD831RFEUMUoQxBimsmmNf\n+cLoMwF5bpoSz9JcWqCmSlK0Nla1dPphaoA/MObLN2iQPpeM3yF5dTUm1tPxe39W\nOlr6nLU1xO+yRDrlGLXrVDP1l1/qGVuwi+xufIAcdFycLLBjSSNX7LOIK3tbva7A\nWctLUs+qhIlUrbPyFERm7YOY4SttWdozeYFNfg==\n-----END CERTIFICATE-----\n\nSecureTrust Domain Validation CA, Level 1\nSecureTrust Corporation\n06F1EC00E80B1BAF9870A7C4B6CBE401A32D68\n-----BEGIN CERTIFICATE-----\nMIIEfzCCA2egAwIBAgITBvHsAOgLG6+YcKfEtsvkAaMtaDANBgkqhkiG9w0BAQsF\nADBIMQswCQYDVQQGEwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRp\nb24xFzAVBgNVBAMTDlNlY3VyZVRydXN0IENBMB4XDTE5MDEyOTEyNTk1OVoXDTI5\nMDEyOTEyNTk1OVowfDEyMDAGA1UEAxMpU2VjdXJlVHJ1c3QgRG9tYWluIFZhbGlk\nYXRpb24gQ0EsIExldmVsIDExFDASBgNVBAoTC1NlY3VyZVRydXN0MRAwDgYDVQQH\nEwdDaGljYWdvMREwDwYDVQQIEwhJbGxpbm9pczELMAkGA1UEBhMCVVMwggEiMA0G\nCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCjRHBw8iIivBBrfE6HqexQK0oMt2Y/\nx8jO3fN96KEazZwEoGidwloRBk2Q7VfVvZ0ZDk+qwJZGLZJLS1ntGaZLH4/Iel+r\nPnp36IVF7J5MNDB+K81a/y9svEMfDu0p3FdlBUyhHvizZ/zFNP3tolmQfZ7T0mGL\n7lutlNAzFYoVTUlVeF5cSC8Yca906TEKyizYXuXcY8Diee+t+fQRHmSI5Hk5kyXD\nYFWcf2tXEfdkuFlDjJ7HPdFyfJz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HA6Ly9jcmwudHJ1\nc3R3YXZlLmNvbS9TVENBLmNybDA2BggrBgEFBQcBAQQqMCgwJgYIKwYBBQUHMAGG\nGmh0dHA6Ly9vY3NwLnRydXN0d2F2ZS5jb20vMA0GCSqGSIb3DQEBCwUAA4IBAQB1\nfzAmGGmtbJyIvOfjq2McCpUoYkXAq6JTN51+nb9NDAihhDoTKMde+801bC1/l54h\nxPPm4HImM6GK6LFckDew/FGwbdRbEznUOJ7uVL5ploNBIjte23kTBUZa9fx3+aXK\nhUTAipSyPtNjnOwVVBVXzrMynfMhdsyRRe7gLXNFYCXIxtks3IkIpuYnc86NAuV9\nnBLFlZzgmbAsW+tMc5QsNvQJ9pQ539K8cqZaM+HFCScreDERxmNtHHbMw+hCa2yL\nOj4ntekgWLO8KQbE0lPUNLIM17QK8aktJavj+GezBztKMmJJwhVYQy9nxS388ApX\nxcZsEgIzOCeH0SOWg4FA\n-----END CERTIFICATE-----\n\nSecureTrust Organization Validation CA, Level 1\nSecureTrust Corporation\n06F1EC00E58E9ADD372C871D25843FDAB852D9\n-----BEGIN CERTIFICATE-----\nMIIEkDCCA3igAwIBAgITBvHsAOWOmt03LIcdJYQ/2rhS2TANBgkqhkiG9w0BAQsF\nADBIMQswCQYDVQQGEwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRp\nb24xFzAVBgNVBAMTDlNlY3VyZVRydXN0IENBMB4XDTE5MDEyOTEyNTk1OVoXDTI5\nMDEyOTEyNTk1OVowgYIxODA2BgNVBAMTL1NlY3VyZVRydXN0IE9yZ2FuaXphdGlv\nbiBWYWxpZGF0aW9uIENBLCBMZXZlbCAxMRQwEgYDVQQKEwtTZWN1cmVUcnVzdDEQ\nMA4GA1UEBxMHQ2hpY2FnbzERMA8GA1UECBMISWxsaW5vaXMxCzAJBgNVBAYTAlVT\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4QVBCdYToXFIfzd1SQfi\nTEgg1bwH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5OIKh4RGYjxXe3LpgiTKBWik/ZWTFL5sZSjetrJFl50NONzTc8E+BJtrx\nVCHAI2OcWyloxrYd4zMipw0YjDw=\n-----END CERTIFICATE-----\n\nTrustwave Domain Validation SHA256 CA, Level 1\nSecureTrust Corporation\n00DDEDF6F64298490E694C36EFA422C88F\n-----BEGIN CERTIFICATE-----\nMIIE7jCCA9agAwIBAgIRAN3t9vZCmEkOaUw276QiyI8wDQYJKoZIhvcNAQELBQAw\nSDELMAkGA1UEBhMCVVMxIDAeBgNVBAoTF1NlY3VyZVRydXN0IENvcnBvcmF0aW9u\nMRcwFQYDVQQDEw5TZWN1cmVUcnVzdCBDQTAeFw0xNDEwMDExOTIyMzJaFw0yNDA5\nMjgxOTIyMzJaMIGvMQswCQYDVQQGEwJVUzERMA8GA1UECBMISWxsaW5vaXMxEDAO\nBgNVBAcTB0NoaWNhZ28xITAfBgNVBAoTGFRydXN0d2F2ZSBIb2xkaW5ncywgSW5j\nLjE3MDUGA1UEAxMuVHJ1c3R3YXZlIERvbWFpbiBWYWxpZGF0aW9uIFNIQTI1NiBD\nQSwgTGV2ZWwgMTEfMB0GCSqGSIb3DQEJARYQY2FAdHJ1c3R3YXZlLmNvbTCCASIw\nDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALNr4Z91k7AKM+Pz5XXWTIuVeMts\nPU2W/pI4WdEHG9Zab1EOWPLbthB6fzUJLLLBBk1wy2OM9yG1HywB/CwfGHcoKS8Z\n/efGV+ZKTzEpIestriUWx7wUnzxKzGML48Xv7sNuY1Crru5Hgce1Ax5uOfP7OB6t\norbMunvKQC10WcSrqFg6LapZ0UhgGmQzdjYguOBF6WZJR3QLghQaNrSUZuA6neXR\ncUsBgmzrxiEVHyzt+lmnYFMFvKVwGOyIZ2RU2LAFthS6UDDrSLGsJysxc1MK1Sti\n/VP8e8wj9rJdmiWNfA+lz6hDAPzRbv+WVJNoHEGbIx8rai+rVMiLy2HIbPsCAwEA\nAaOCAWkwggFlMBIGA1U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KwYBBQUHMAGGGWh0dHA6Ly9vY3NwLnRydXN0d2F2\nZS5jb20wNQYIKwYBBQUHMAKGKWh0dHA6Ly9zc2wudHJ1c3R3YXZlLmNvbS9pc3N1\nZXJzL1NUQ0EuY3J0MBMGA1UdJQQMMAoGCCsGAQUFBwMBMB8GA1UdIwQYMBaAFEIy\nthb6BP3+XUt6w/33TEAdWkOvMBsGA1UdEQQUMBKBEGNhQHRydXN0d2F2ZS5jb20w\nDQYJKoZIhvcNAQELBQADggEBAFcdG0/3P/CkeGb76tz/mn1viDZiftD05i9Jw70k\nH9ulRwdCHgzhSZVN5zHvG919oHA9WHbxH04J+iAnVl1+FjoDNN+A+2icy2WXqH9w\ngaNUGyUwLdo0JCfgUeGbrCF6WUYCj47pS7zAY02CdGlstZZsqouXK3RnOMKOD3Dq\nf5kiSh56KvhW/F0OZY7PAbdV79LVAiSTiAFdoe/jMjmj8fqXOiCIjllqH/O9/DAm\nRwQStFpauwR+nBbFhq4sYwlZQvJ0NvIxN5JOTECTkMM+X21kf8mrwRdxBfw0YEPa\nUTeZhFr48Fwvnt4jpo7gqpJzt7jjsbWPd1FHtey2Q8zmSHY=\n-----END CERTIFICATE-----\n\nTrustwave Extended Validation SHA256 CA, Level 1\nSecureTrust Corporation\n00C1BD27B383958D0D8BCA5E4F08D009D9\n-----BEGIN CERTIFICATE-----\nMIIFGDCCBACgAwIBAgIRAMG9J7ODlY0Ni8peTwjQCdkwDQYJKoZIhvcNAQELBQAw\nSDELMAkGA1UEBhMCVVMxIDAeBgNVBAoTF1NlY3VyZVRydXN0IENvcnBvcmF0aW9u\nMRcwFQYDVQQDEw5TZWN1cmVUcnVzdCBDQTAeFw0xNDEwMTMxODE3MzlaFw0yNDEw\nMTAxODE3MzlaMIGxMQswCQYDVQQGEwJVUzERMA8GA1UECBMISWxsaW5vaXMxEDAO\nBgNVBAcTB0NoaWNhZ28xITAfBgNVBAoTGFRydXN0d2F2ZSBIb2xkaW5ncywgSW5j\nLjE5MDcGA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Ut6w/33TEAdWkOvMA0GCSqGSIb3DQEBCwUAA4IBAQCly1p1\nrvcOlRS+ODBLb2kYHd4q+cXDl65X+IQ7hOlXg9dpa7CzSAGNNpzhyYMbE48mB/RE\nBXxbZkMzEhWPFj+4jdGNsmX0zjEWatJWsnNVxpA7hDR0iZssezu86oDQ/sbVoaXj\n0a5jB2cZsnMS5287CNDk5i+ImruhbMAYV9sadliXoDy3y01Sv+FLMx39C5UhYhWU\ngvoT9igbSCoc/DPOukEDqsnKMmDqTf3JzuFI1CbJcR6M8R1hAda4mZrxIdGcbT8R\nXp8JQ8Vuv/+plPMcAiZ2Bzed0hPVr5A1Mz8K8w9OyORGlRwjWS65jsr26bjMCcfj\npvuAANrc0Alu4nJC\n-----END CERTIFICATE-----\n\nTrustwave Extended Validation SHA256 CA, Level 1\nSecureTrust Corporation\n35962F305C5A0BEC400D4E9877528C65\n-----BEGIN CERTIFICATE-----\nMIIFCzCCA/OgAwIBAgIQNZYvMFxaC+xADU6Yd1KMZTANBgkqhkiG9w0BAQsFADBI\nMQswCQYDVQQGEwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24x\nFzAVBgNVBAMTDlNlY3VyZVRydXN0IENBMB4XDTE2MDkwMTE0MzUzNFoXDTI0MDky\nOTE0MzUzNFowgbExCzAJBgNVBAYTAlVTMREwDwYDVQQIEwhJbGxpbm9pczEQMA4G\nA1UEBxMHQ2hpY2FnbzEhMB8GA1UEChMYVHJ1c3R3YXZlIEhvbGRpbmdzLCBJbmMu\nMTkwNwYDVQQDEzBUcnVzdHdhdmUgRXh0ZW5kZWQgVmFsaWRhdGlvbiBTSEEyNTYg\nQ0EsIExldmVsIDExHzAdBgkqhkiG9w0BCQEWEGNhQHRydXN0d2F2ZS5jb20wggEi\nMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCt72YcuqK/rz0VYiTs9p5Au5ai\nzyV1Ffis0sd4Pv9fsmtN9pe4hBot+tQ4O3J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xiWEmt71rzz+0\nS59OtA/ihnbGP9Xrnhe7wf1ybCNOO5gZQMKr/OszfLZ7oVKACGOPLlcSZRRW98gA\nszE+1ZvlHkdjamfTSs4yMvUorYn9NhXnjAWl28NuD9m3FPiE2O50ezEDnHTiaOQ=\n-----END CERTIFICATE-----\n\nTrustwave Organization Validation SHA256 CA, Level 1\nSecureTrust Corporation\n4B2C6646F434775B67DF34A04DD504E6\n-----BEGIN CERTIFICATE-----\nMIIE/TCCA+WgAwIBAgIQSyxmRvQ0d1tn3zSgTdUE5jANBgkqhkiG9w0BAQsFADBI\nMQswCQYDVQQGEwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24x\nFzAVBgNVBAMTDlNlY3VyZVRydXN0IENBMB4XDTE0MTAwMTE5MjIzNloXDTI0MDky\nODE5MjIzNlowgbUxCzAJBgNVBAYTAlVTMREwDwYDVQQIEwhJbGxpbm9pczEQMA4G\nA1UEBxMHQ2hpY2FnbzEhMB8GA1UEChMYVHJ1c3R3YXZlIEhvbGRpbmdzLCBJbmMu\nMT0wOwYDVQQDEzRUcnVzdHdhdmUgT3JnYW5pemF0aW9uIFZhbGlkYXRpb24gU0hB\nMjU2IENBLCBMZXZlbCAxMR8wHQYJKoZIhvcNAQkBFhBjYUB0cnVzdHdhdmUuY29t\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA49OohlJHBJ/juiQTmibO\nS28pHvCCp1bPOc6elQ62DCYE/A14JXUtI8yaUc9nFjh6dNzR7KjFPEq/qDplQl7f\n1Tvh5ifBNNP2wQ6e820TWlPO4HhR/5g4+3iFmJ1N7kFrxDp1/P8e3+9lcJsXckXC\ntfFkQ9slogJqnaCsipgdrH4gQhicFAL5YqHw2AKfctZLSPpxhI3xISMV/lIQwZPW\nI2221v9ALckokh5pW6dTK8x8yNUUye1zt5msWzqunfBjVYVUj5/LXu46hS99Mfxu\n80ARJRyHsXIuHbMzwVXGqKVPZfKAdHBl5e3ElCjNwNy+Hgi09vS7PoAUhjCf/wbO\nnQIDAQABo4IBczCCAW8wEgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQUys4d\nGAN3HhzzfFiymnCoCIAW9K4wDgYDVR0PAQH/BAQDAgGGMEgGA1UdIARBMD8wPQYP\nKwYBBAGB7RgDAwMDBAQDMCowKAYIKwYBBQUHAgEWHGh0dHBzOi8vc3NsLnRydXN0\nd2F2ZS5jb20vQ0EwMgYDVR0fBCswKTAnoCWgI4YhaHR0cDovL2NybC50cnVzdHdh\ndmUuY29tL1NUQ0EuY3JsMGwGCCsGAQUFBwEBBGAwXjAlBggrBgEFBQcwAYYZaHR0\ncDovL29jc3AudHJ1c3R3YXZlLmNvbTA1BggrBgEFBQcwAoYpaHR0cDovL3NzbC50\ncnVzdHdhdmUuY29tL2lzc3VlcnMvU1RDQS5jcnQwHQYDVR0lBBYwFAYIKwYBBQUH\nAwIGCCsGAQUFBwMBMB8GA1UdIwQYMBaAFEIythb6BP3+XUt6w/33TEAdWkOvMA0G\nCSqGSIb3DQEBCwUAA4IBAQBN/Qb6x5VSQHIt/FqvXAkjfCI7jwXGzRoxThavUqv0\npJr1azXKv2L2ye9Sl4OCqiDHZ8ZJZ/Z19Ae1yvGTpG++0O5dWTHZ8qy/JSj17Mg1\nvWiefVpJKtkYflzhC9B9/eB3QuKVTRKDqm1ZC9kbm3MWOwtnEOw4WURWS1X2v4Hv\n2AJaXe11ZRqjx7/c6U50tYp3eVpRDCw7bOIXRffLG0oibhjHiEu8dgq7KkTSrx9m\nQFS6T2x9GLiJKhj2mEfPuGr73TfBPyKsRBymOpG67LThKVnwoUfH3pghA6VkZp5Z\n1Vm6AcDm+eelf5XPvZtNve4evLVPYueA3TmGyxXh1m2d\n-----END CERTIFICATE-----\n\nTrustwave Organization Validation SHA256 CA, Level 1\nSecureTrust Corporation\n0092B8744F71CED0E26C72A3D8D5D925B2\n-----BEGIN CERTIFICATE-----\nMIIFEDCCA/igAwI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BBQUHAgEWHGh0dHBzOi8vc3NsLnRydXN0d2F2ZS5j\nb20vQ0EwbAYIKwYBBQUHAQEEYDBeMCUGCCsGAQUFBzABhhlodHRwOi8vb2NzcC50\ncnVzdHdhdmUuY29tMDUGCCsGAQUFBzAChilodHRwOi8vc3NsLnRydXN0d2F2ZS5j\nb20vaXNzdWVycy9TVENBLmNydDAdBgNVHSUEFjAUBggrBgEFBQcDAgYIKwYBBQUH\nAwEwHwYDVR0jBBgwFoAUQjK2FvoE/f5dS3rD/fdMQB1aQ68wGwYDVR0RBBQwEoEQ\nY2FAdHJ1c3R3YXZlLmNvbTANBgkqhkiG9w0BAQsFAAOCAQEAC0OvN7/UJBcRDXch\nA4b2qJo7mBD05+XR96N7vucMaanz26CnUxs1o8DcBckpqyEXCxdOanIr+/UJNbBL\nXLJCzNLJEJcgV9TjbVu33eQR23yMuXD+cZsqLMF+L5IIM47W8dlwKJvMy0xs7Jb1\nS3NOIhcoVu+XPzRsgKv8Yi2B6l278RfzegiCx4vYJv0pBjFzizEiFH9bWTYIOlIJ\nJSM57hoICgjCTS8BoEgndwWIyc/nEmlYaUwmCo9QynY+UmW1WPWmVITEJPMdMK6A\nZqvvaWmuHJ6/vURaz+Hoc5D3z0yJDDCkv52bXV04ZoF6cbcWry7JvNA+djvay/4B\nRR4SZQ==\n-----END CERTIFICATE-----\n\nSecureTrust TWG Secure Email CA, Level 2\nTrustwave Holdings, Inc.\n072F30E9C25181828DAC4F5F7DE4AFC87AD132\n-----BEGIN CERTIFICATE-----\nMIIG2zCCBMOgAwIBAgITBy8w6cJRgYKNrE9ffeSvyHrRMjANBgkqhkiG9w0BAQsF\nADCBiDELMAkGA1UEBhMCVVMxETAPBgNVBAgMCElsbGlub2lzMRAwDgYDVQQHDAdD\naGljYWdvMSEwHwYDVQQKDBhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4xMTAvBgNV\nBAMMKFRydXN0d2F2ZSBHbG9iYWwgQ2VydGlmaWNhdGlvbiBBdX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vVD4O6xV97/9nv2Eng==\n-----END CERTIFICATE-----\n\nTrustwave Global Domain Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D9AD30465CF22697F246B101EC92953B\n-----BEGIN CERTIFICATE-----\nMIIHCDCCBPCgAwIBAgITBs6C2a0wRlzyJpfyRrEB7JKVOzANBgkqhkiG9w0BAQsF\nADCBiDELMAkGA1UEBhMCVVMxETAPBgNVBAgMCElsbGlub2lzMRAwDgYDVQQHDAdD\naGljYWdvMSEwHwYDVQQKDBhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4xMTAvBgNV\nBAMMKFRydXN0d2F2ZSBHbG9iYWwgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcN\nMTgwMjA2MTIyMTIxWhcNMjgwMjI0MDUwMTIxWjCBjjE3MDUGA1UEAxMuVHJ1c3R3\nYXZlIEdsb2JhbCBEb21haW4gVmFsaWRhdGlvbiBDQSwgTGV2ZWwgMTEhMB8GA1UE\nChMYVHJ1c3R3YXZlIEhvbGRpbmdzLCBJbmMuMRAwDgYDVQQHEwdDaGljYWdvMREw\nDwYDVQQIEwhJbGxpbm9pczELMAkGA1UEBhMCVVMwggIiMA0GCSqGSIb3DQEBAQUA\nA4ICDwAwggIKAoICAQChh5brvvk/kFUZwhlUhqdsUmsMCBjzYqBBLnTyNrKPr4nd\nS9s2h2JvA+9TY7NnJc/Mq1eN5V6zqvbn/LN3c8W06f76xrVvFEKs5SzCefUS/V3Z\nC18dgwXXFrP+RgfK2kqfTHGIPrWoRSnUiLn3iUNEBtJ06oXjAqAMnAyL5AzD+eHm\nZzRK/yCw/gMPnVp2S7Dstka607fS4fW9Sl33mOMNwJRxEjQWHHR25PAb4muP6wjN\nvmoLMgiDMKseHSFVtC7SpmO89PsrUV6MahKJrZcAfquAyoO1zR2c2eGaCI/m8oSx\n3B7KiMZJ3NZims/siMp/5szemsutf36WJ31nmr7PqLJGJdVpoxbLckWIhZnNYSFm\n/pTutpNONqpyYC2gGSXdw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QsMCowKKAmoCSGImh0dHA6Ly9jcmwudHJ1\nc3R3YXZlLmNvbS9UV0dDQS5jcmwwbgYIKwYBBQUHAQEEYjBgMCYGCCsGAQUFBzAB\nhhpodHRwOi8vb2NzcC50cnVzdHdhdmUuY29tLzA2BggrBgEFBQcwAoYqaHR0cDov\nL3NzbC50cnVzdHdhdmUuY29tL2lzc3VlcnMvVFdHQ0EuY3J0MA0GCSqGSIb3DQEB\nCwUAA4ICAQBwnSHECaf+hfGrm3Cg+aRr57ytoOSzI1DjlTNcM7k4uSt6kJRPHJ4c\nldIujMaETV52RgE6ykaMGkuIwQOIsLI6SXwjU1f5gXFUbDTS3KTWc/jwQeyLmdOe\nhvc+wBSFv8d10Sx/Qiti8mqsTqr0+N94Cx01+SkiWxWWoSZOAPkz8DMQGlD4yndK\nceTMGtQ03cLnD/36Mv6tz/Ds9l/OExrJGGxHD0tmYwYwBZpPHm7BBY2ZzycVxLcg\n+uuggcX1pg5MhJ1rDyod+7X+ilvTgH7ftHCmxvR7viMLwSUuytZ05zb2teRQgU+8\niWnPEHO/ADm5VD1Zb5Rx0579/YEENBJtGUPPJzo+JEpiZIOIlwZ69ETWWNCLZr0V\nvoi+SDl65cr+dgR9JreJ2I4W9FzS45ruxYEC8LGKEmV46sAk1YLbnIBmhehAKy9t\nP8RVz3QXYJ6rLOAuXF7R2eVV0SqfivW9bVzvBZTUTFsbdSMBAAF1BJjdRqYR63DI\ncQASY7CRoUiak1NTgPkzeV8VcNJmUt8c2eKJIifqBAjquH6+6UXs9Ol0aMPn6v0y\nB+TSuxhX2sSrpna9QcOh/QyoR5Hvcd81rZSbMc7yasKoUMXviotV1SfEqs3RU5Ts\nwnU4NHPn5ITRiuh5VMuvB/VnjnPC953u5uqAGtZ8BkC7X9cu5E0rMQ==\n-----END CERTIFICATE-----\n\nTrustwave Global Organization Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D9A69703AEFE5D37D18858C74026B004\n-----BEGIN CERTIFICATE-----\nMIIH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wjptve+jZ4gQ+A1ioYUavR3pSfBNzuJW30nZCWFadKc\nNXOPoAPkK8JLxgRBH3JboeBCXG6xgy/pXrTjyhW7/SS+Z+7eKkp9jgdTVQ12yUtc\nCiYWUuM4l240D/z+s03WOEcLTluESwFkJhzs3D9i5crTL72uSkDDmlh8HXoPAyYO\nl3Mn9cGWhd8M8IeQRXmb6O7gvvQZDoSXDVDbjBKcW1lFpi0wBxIBzLaOi4CX4OhI\nJHJ/H3duOMaltuzXLSLkc26jwHzMeq8seQRSXraXJi1t5oBKlmEWFEgq6xlH7mLW\n3TOqS19cuiSWl/CsnlLGaW8MH5YHmk+MJxQE1BcLBs6ciapvHlhLEd9EUpU=\n-----END CERTIFICATE-----\n\nSecureTrust TWG ECDSA P-256 Secure Email CA, Level 2\nTrustwave Holdings, Inc.\n072F30E9C4627001DECFEBF6BF5D3B1066D7E3\n-----BEGIN CERTIFICATE-----\nMIIDbTCCAxKgAwIBAgITBy8w6cRicAHez+v2v107EGbX4zAKBggqhkjOPQQDAjCB\nkTELMAkGA1UEBhMCVVMxETAPBgNVBAgTCElsbGlub2lzMRAwDgYDVQQHEwdDaGlj\nYWdvMSEwHwYDVQQKExhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4xOjA4BgNVBAMT\nMVRydXN0d2F2ZSBHbG9iYWwgRUNDIFAyNTYgQ2VydGlmaWNhdGlvbiBBdXRob3Jp\ndHkwHhcNMjAxMDA4MDY0OTQxWhcNMzAxMDA4MDY0ODQxWjBiMQswCQYDVQQGEwJV\nUzEUMBIGA1UEChMLU2VjdXJlVHJ1c3QxPTA7BgNVBAMTNFNlY3VyZVRydXN0IFRX\nRyBFQ0RTQSBQLTI1NiBTZWN1cmUgRW1haWwgQ0EsIExldmVsIDIwWTATBgcqhkjO\nPQIBBggqhkjOPQMBBwNCAAT4KazLm94aiykBGkNQVkBrjmK77RlP627D2n3EwK3s\n49ljRkN6wiTWXHx3jPD5BBE/7mWhGWnphzGu1Deb6yzco4IBdTCC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GAQUFBwEBBGYwZDAmBggrBgEFBQcwAYYaaHR0\ncDovL29jc3AudHJ1c3R3YXZlLmNvbS8wOgYIKwYBBQUHMAKGLmh0dHA6Ly9zc2wu\ndHJ1c3R3YXZlLmNvbS9pc3N1ZXJzL1RXR1AyNTZDQS5jcnQwCgYIKoZIzj0EAwID\nSQAwRgIhALahroq1NScrFeCvG5uMgMKH/bo190D+Mkh2ZIojrUOfAiEAosFXFE73\n0WLRPjX2uOkLhXuA4cQEb1R1oeGDH4MNVOo=\n-----END CERTIFICATE-----\n\nTrustwave Global ECDSA P-256 Organization Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D9A8B57C104843994DACD79E28633E5F\n-----BEGIN CERTIFICATE-----\nMIIDqDCCA0+gAwIBAgITBs6C2ai1fBBIQ5lNrNeeKGM+XzAKBggqhkjOPQQDAjCB\nkTELMAkGA1UEBhMCVVMxETAPBgNVBAgTCElsbGlub2lzMRAwDgYDVQQHEwdDaGlj\nYWdvMSEwHwYDVQQKExhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4xOjA4BgNVBAMT\nMVRydXN0d2F2ZSBHbG9iYWwgRUNDIFAyNTYgQ2VydGlmaWNhdGlvbiBBdXRob3Jp\ndHkwHhcNMTgwMjA2MTIyMTIxWhcNMjgwMjI0MDUwMTIxWjCBoDFJMEcGA1UEAxNA\nVHJ1c3R3YXZlIEdsb2JhbCBFQ0RTQSBQLTI1NiBPcmdhbml6YXRpb24gVmFsaWRh\ndGlvbiBDQSwgTGV2ZWwgMTEhMB8GA1UEChMYVHJ1c3R3YXZlIEhvbGRpbmdzLCBJ\nbmMuMRAwDgYDVQQHEwdDaGljYWdvMREwDwYDVQQIEwhJbGxpbm9pczELMAkGA1UE\nBhMCVVMwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQmHWo0mogvX1J61xysTqsn\n6qV06wxUH68/QJ2aDIka6beTrDoTZv3mIkyPxFTPy+9idjgSAERlBsDirgO2/NiY\no4IBczCCAW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jcmwwcgYIKwYBBQUHAQEEZjBk\nMCYGCCsGAQUFBzABhhpodHRwOi8vb2NzcC50cnVzdHdhdmUuY29tLzA6BggrBgEF\nBQcwAoYuaHR0cDovL3NzbC50cnVzdHdhdmUuY29tL2lzc3VlcnMvVFdHUDM4NENB\nLmNydDAKBggqhkjOPQQDAwNnADBkAjA6fS1jRjt+DvnWSI58v4lX+8DCXbdEhDaB\nbBOS/rXwS/ntsFXqTf0B90GPv3AWlFMCMBbz6nXMwX0jKRkaFZOZx9tvwUapdq7M\n6jYpT/NnAzH68x1t3/7ysZ8lPuKIqAwdKQ==\n-----END CERTIFICATE-----\n\nTrustwave Global ECDSA P-384 Extended Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D9A331594530006781829387E40DBCB6\n-----BEGIN CERTIFICATE-----\nMIID4zCCA2igAwIBAgITBs6C2aMxWUUwAGeBgpOH5A28tjAKBggqhkjOPQQDAzCB\nkTELMAkGA1UEBhMCVVMxETAPBgNVBAgTCElsbGlub2lzMRAwDgYDVQQHEwdDaGlj\nYWdvMSEwHwYDVQQKExhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4xOjA4BgNVBAMT\nMVRydXN0d2F2ZSBHbG9iYWwgRUNDIFAzODQgQ2VydGlmaWNhdGlvbiBBdXRob3Jp\ndHkwHhcNMTgwMjA2MTIyMTIwWhcNMjgwMjI0MDUwMTIwWjCBnDFFMEMGA1UEAxM8\nVHJ1c3R3YXZlIEdsb2JhbCBFQ0RTQSBQLTM4NCBFeHRlbmRlZCBWYWxpZGF0aW9u\nIENBLCBMZXZlbCAxMSEwHwYDVQQKExhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4x\nEDAOBgNVBAcTB0NoaWNhZ28xETAPBgNVBAgTCElsbGlub2lzMQswCQYDVQQGEwJV\nUzB2MBAGByqGSM49AgEGBSuBBAAiA2IABKcVGieqBjW3BuVza9VhkBlpGLHLZqQg\nI0GXaTpt5CogNWz6BmlZ1yAPjRnDUVfVwl57ATRtV7u+5TPFzKZ+RheFVc0iA8vl\nQ2JINGRz8XLDaivvuygQtFKSzCWn4e66cKOCAXMwggFvMBIGA1UdEwEB/wQIMAYB\nAf8CAQAwDgYDVR0PAQH/BAQDAgGGMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEF\nBQcDATAdBgNVHQ4EFgQUMFfit09gayJACkNfT/oNzXO8JCcwHwYDVR0jBBgwFoAU\nVamEidLBMr0Yy2ymB07I552+gpAwPQYDVR0gBDYwNDAyBgRVHSAAMCowKAYIKwYB\nBQUHAgEWHGh0dHBzOi8vc3NsLnRydXN0d2F2ZS5jb20vQ0EwNwYDVR0fBDAwLjAs\noCqgKIYmaHR0cDovL2NybC50cnVzdHdhdmUuY29tL1RXR1AzODRDQS5jcmwwcgYI\nKwYBBQUHAQEEZjBkMCYGCCsGAQUFBzABhhpodHRwOi8vb2NzcC50cnVzdHdhdmUu\nY29tLzA6BggrBgEFBQcwAoYuaHR0cDovL3NzbC50cnVzdHdhdmUuY29tL2lzc3Vl\ncnMvVFdHUDM4NENBLmNydDAKBggqhkjOPQQDAwNpADBmAjEA6pScrGT+SruK7iON\n7iDJZfhQsjfQIhaq9sHiEXd89B8ibWOb57no/K265dPxeuALAjEA27NTMZM344eT\nX3df9B22dY5ZshsUMIiRcMo1K4B/GBO8SIA0jParkHS5g4WO5K7O\n-----END CERTIFICATE-----\n\nTrustwave Global ECDSA P-384 Organization Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D9A9D8E29837EF90BEAF59DC6551BED6\n-----BEGIN CERTIFICATE-----\nMIID5jCCA2ygAwIBAgITBs6C2anY4pg375C+r1ncZVG+1jAKBggqhkjOPQQDAzCB\nkTELMAkGA1UEBhMCVVMxETAPBgNVBAgTCElsbGlub2lzMRAwDgYDVQQHEwdDaGlj\nYWdvMSEwHwYDVQQKExhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4xOjA4BgNVBAMT\nMVRydXN0d2F2ZSBHbG9iYWwgR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t4A\neyzefTDNwyXjUiRD/n0kaNNW+lcsLpw7ouw1OU8mwQ0C7LoPJljpXRjvOwIDAQAB\no4IBaTCCAWUwEgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQUDDOjV6rjq9ZL\ncBs2nqPtYVDmr3QwDgYDVR0PAQH/BAQDAgGGMEgGA1UdIARBMD8wPQYPKwYBBAGB\n7RgDAwMFBAMDMCowKAYIKwYBBQUHAgEWHGh0dHBzOi8vc3NsLnRydXN0d2F2ZS5j\nb20vQ0EwMgYDVR0fBCswKTAnoCWgI4YhaHR0cDovL2NybC50cnVzdHdhdmUuY29t\nL1hHQ0EuY3JsMGwGCCsGAQUFBwEBBGAwXjAlBggrBgEFBQcwAYYZaHR0cDovL29j\nc3AudHJ1c3R3YXZlLmNvbTA1BggrBgEFBQcwAoYpaHR0cDovL3NzbC50cnVzdHdh\ndmUuY29tL2lzc3VlcnMvWEdDQS5jcnQwEwYDVR0lBAwwCgYIKwYBBQUHAwQwHwYD\nVR0jBBgwFoAUxk+iPQZjhAmczmLkBKyNXLXpthswDQYJKoZIhvcNAQELBQADggEB\nAIdGLHufUegzFKVBQVWs3YAIFqCcJvdak14TMRImxJsnQWLz+jIW0olC0JATY6Ng\nxAbjIJA4wtW/tA+rgE6WcA5y3bLN3bRMQVDSu6X26hkVjvwo4/VYykOp3e9Cqlfe\ngJAsrqBQKXkUpEbYEmmorXxj6/74e//xwXTz0XS0BS9cXhONlTQffyJnMeLaunzQ\nS1x/MvALfPCHCZCTOfLDmwylKtHHu+V2Ks0HV+ZrzCBRR5W3MhGTU7PpNEMQwyGF\n+MG5eZTd0jyxOSOjaXQm7iDh0tG/iKZZegn5AhNdaHE74QEHTjK+teLQlo60QGBk\necyzakgVYZ/Ezalz8nQwhCA=\n-----END CERTIFICATE-----\n\nTrustwave XRamp Global Extended Validation CA, Level 1\nXRamp Security Services Inc\n00D3D519C2B2EB5C7040F64CBC957BBD2C\n-----BEGIN CERTIFICATE-----\nMIIFM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jNuThOssFgy50X31ieemKyJo90lZvkWx3SD92YHJtZuSPT\nMaCm/zjdzyBP6VhWOmfD0faZmZ26NraAL4hHT4a/RDqA5Dccprrql5gR0IRiR2Qe\nqu5AvzSxnI9O4fKSTx+O856X3vOmeWqJcU9LJxdI/uz0UA9PSX3MReO9ekDFQdxh\nVicGaeVyQYHTtgGJoC86cnn+OjC/QezHYj6RS8fZMXZC+fc8Y+wmjHMMfRod6qh8\nh6jCJ3zhM0EPz8/8AKAigJ5Kp28AsEFFtyLKaEjFQqKu3R3y4G5OBVixwJAWKqQ9\nEEC+j2Jjg6mcgn0tAumDMHzLJ8n9HmYAsC7TIS+OMxZsmO0QqAfWzJPP29FpHOTK\nyeC2nOnOcXHebD8WpHk=\n-----END CERTIFICATE-----\n\nTrustwave Global ECC P256 Certification Authority\nTrustwave Holdings, Inc.\n0D6A5F083F285C3E5195DF5D\n-----BEGIN CERTIFICATE-----\nMIICYDCCAgegAwIBAgIMDWpfCD8oXD5Rld9dMAoGCCqGSM49BAMCMIGRMQswCQYD\nVQQGEwJVUzERMA8GA1UECBMISWxsaW5vaXMxEDAOBgNVBAcTB0NoaWNhZ28xITAf\nBgNVBAoTGFRydXN0d2F2ZSBIb2xkaW5ncywgSW5jLjE6MDgGA1UEAxMxVHJ1c3R3\nYXZlIEdsb2JhbCBFQ0MgUDI1NiBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0x\nNzA4MjMxOTM1MTBaFw00MjA4MjMxOTM1MTBaMIGRMQswCQYDVQQGEwJVUzERMA8G\nA1UECBMISWxsaW5vaXMxEDAOBgNVBAcTB0NoaWNhZ28xITAfBgNVBAoTGFRydXN0\nd2F2ZSBIb2xkaW5ncywgSW5jLjE6MDgGA1UEAxMxVHJ1c3R3YXZlIEdsb2JhbCBF\nQ0MgUDI1NiBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTBZMBMGByqGSM49AgEGCCqG\nSM49AwEHA0IABH77bOYj43MyCMpg5lOcunSNGL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DVR0TAQH/BAUwAwEB/zAPBgNVHQ8BAf8EBQMDBwYAMB0G\nA1UdDgQWBBRVqYSJ0sEyvRjLbKYHTsjnnb6CkDAKBggqhkjOPQQDAwNnADBkAjA3\nAZKXRRJ+oPM+rRk6ct30UJMDEr5E0k9BpIycnR+j9sKS50gU/k6bpZFXrsY3crsC\nMGclCrEMXu6pY5Jv5ZAL/mYiykf9ijH3g/56vxC+GCsej/YpHpRZ744hN8tRmKVu\nSw==\n-----END CERTIFICATE-----\n",PKG_NAME="@hpcc-js/comms",PKG_VERSION="2.102.3",BUILD_VERSION="2.108.9",extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},extendStatics(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var __assign=function(){return __assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign.apply(this,arguments)};function __awaiter(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,c)}u((r=r.apply(e,t||[])).next())})}function __generator(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=c(0),s.throw=c(1),s.return=c(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}function __spreadArray(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var logger$7=util.scopedLogger("comms/connection.ts");function instanceOfIOptions(e){return"baseUrl"in e}var DefaultOptions={type:"post",baseUrl:"",userID:"",password:"",rejectUnauthorized:!0,timeoutSecs:60};function instanceOfIConnection(e){return"function"==typeof e.opts&&"function"==typeof e.send&&"function"==typeof e.clone}function encode(e,t){return void 0===t||!0===t?encodeURIComponent(e):""+e}function serializeRequest(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n=""),n&&(n+="."),"object"!=typeof e)return encode(e,t);var r=[],o=function(o){if(e.hasOwnProperty(o))if(e[o]instanceof Array){var i=!1;e[o].forEach(function(e,s){"object"==typeof e?(i=!0,r.push(serializeRequest(e,t,n+encode("".concat(o,".").concat(s),t)))):r.push(n+encode("".concat(o,"_i").concat(s),t)+"="+serializeRequest(e,t))}),i&&r.push(n+encode("".concat(o,".itemcount"),t)+"="+e[o].length)}else"object"==typeof e[o]?e[o]&&e[o].Item instanceof Array?(r.push(serializeRequest(e[o].Item,t,n+encode(o,t))),r.push(n+encode("".concat(o,".itemcount"),t)+"="+e[o].Item.length)):r.push(serializeRequest(e[o],t,n+encode(o,t))):void 0!==e[o]?r.push(n+encode(o,t)+"="+encode(e[o],t)):r.push(n+encode(o,t))};for(var i in e)o(i);return r.join("&")}function deserializeResponse(e){return JSON.parse(e)}function jsonp(e,t,n,r,o){return void 0===n&&(n={}),void 0===r&&(r="json"),o&&console.warn("Header attributes ignored for JSONP connections"),new Promise(function(o,i){var s=1e3*e.timeoutSecs,c="jsonp_callback_"+Math.round(999999*Math.random());window[c]=function(e){s=0,l(),o("json"===r&&"string"==typeof e?deserializeResponse(e):e)};var u=document.createElement("script"),a=util.join(e.baseUrl,t);a+=a.indexOf("?")>=0?"&":"?",u.src=a+"jsonp="+c+"&"+serializeRequest(n,e.encodeRequest),document.body.appendChild(u);var p=setInterval(function(){s<=0?clearInterval(p):(s-=5e3)<=0?(clearInterval(p),logger$7.error("Request timeout: "+u.src),l(),i(Error("Request timeout: "+u.src))):logger$7.debug("Request pending ("+s/1e3+" sec): "+u.src)},5e3);function l(){delete window[c],document.body.removeChild(u)}})}function authHeader(e){return e.userID?{Authorization:"Basic ".concat(btoa("".concat(e.userID,":").concat(e.password)))}:{}}var _omitMap={};function doFetch(e,t,n,r,o){function i(e){if(e.ok)return"json"===o?e.json():e.text();throw new Error(e.statusText)}return r=__assign(__assign({},authHeader(e)),r),n=__assign(__assign({credentials:_omitMap[e.baseUrl]?"omit":"include"},n),{headers:r}),fetch.__setGlobalDispatcher&&fetch.__setGlobalDispatcher(fetch.__defaultAgent),0===e.baseUrl.indexOf("https:")&&(!1===e.rejectUnauthorized&&fetch.__rejectUnauthorizedAgent?fetch.__setGlobalDispatcher?fetch.__setGlobalDispatcher(fetch.__rejectUnauthorizedAgent):n.agent=fetch.__rejectUnauthorizedAgent:fetch.__trustwaveAgent&&(n.agent=fetch.__trustwaveAgent)),util.promiseTimeout(1e3*e.timeoutSecs,fetch(util.join(e.baseUrl,t),n).then(i).catch(function(r){return n.credentials=_omitMap[e.baseUrl]?"include":"omit",fetch(util.join(e.baseUrl,t),n).then(i).then(function(t){return _omitMap[e.baseUrl]=!_omitMap[e.baseUrl],t})}))}function post(e,t,n,r,o){var i;return void 0===r&&(r="json"),n.upload_&&(delete n.upload_,t+="?upload_"),n.abortSignal_&&(i=n.abortSignal_,delete n.abortSignal_),doFetch(e,t,{method:"post",body:serializeRequest(n,e.encodeRequest),signal:i},__assign({"Content-Type":"application/x-www-form-urlencoded"},o),r)}function get(e,t,n,r,o){var i;return void 0===r&&(r="json"),n.abortSignal_&&(i=n.abortSignal_,delete n.abortSignal_),doFetch(e,"".concat(t,"?").concat(serializeRequest(n,e.encodeRequest)),{method:"get",signal:i},__assign({},o),r)}function send(e,t,n,r,o){var i;switch(void 0===r&&(r="json"),e.type){case"jsonp":i=jsonp(e,t,n,r,o);break;case"get":i=get(e,t,n,r,o);break;default:i=post(e,t,n,r,o)}return i}var hookedSend=send;function hookSend(e){var t=hookedSend;return e&&(hookedSend=e),t}var Connection=function(){function e(e){this.opts(e)}return Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this._opts.baseUrl},enumerable:!1,configurable:!0}),e.prototype.opts=function(e){return 0===arguments.length?this._opts:(this._opts=__assign(__assign({},DefaultOptions),e),this)},e.prototype.send=function(e,t,n,r){return void 0===n&&(n="json"),this._opts.hookSend?this._opts.hookSend(this._opts,e,t,n,hookedSend,r):hookedSend(this._opts,e,t,n,r)},e.prototype.clone=function(){return new e(this.opts())},e}();function setTransportFactory(e){var t=exports.createConnection;return exports.createConnection=e,t}function isArray(e){return"[object Array]"===Object.prototype.toString.call(e)}exports.createConnection=function(e){return new Connection(e)};var ESPExceptions=function(e){function t(t,n,r){var o=e.call(this,"ESPException: "+r.Source)||this;return o.isESPExceptions=!0,o.action=t,o.request=n,o.Source=r.Source,o.Exception=r.Exception,r.Exception.length?o.message="".concat(r.Exception[0].Code,": ").concat(r.Exception[0].Message):o.message="",o}return __extends(t,e),t}(Error);function isExceptions(e){return e instanceof ESPExceptions||e.isESPExceptions&&Array.isArray(e.Exception)}function isConnection(e){return void 0!==e.send}var ESPConnection=function(){function e(e,t,n){this._connection=isConnection(e)?e:exports.createConnection(e),this._service=t,this._version=n}return Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this._connection.opts().baseUrl},enumerable:!1,configurable:!0}),e.prototype.service=function(e){return void 0===e?this._service:(this._service=e,this)},e.prototype.version=function(e){return void 0===e?this._version:(this._version=e,this)},e.prototype.toESPStringArray=function(e,t){if(isArray(e[t])){for(var n=0;n<e[t].length;++n)e[t+"_i"+n]=e[t][n];delete e[t]}return e},e.prototype.opts=function(e){return void 0===e?this._connection.opts():(this._connection.opts(e),this)},e.prototype.send=function(e,t,n,r,o,i){void 0===t&&(t={}),void 0===n&&(n="json"),void 0===r&&(r=!1);var s,c=__assign(__assign({},t),{ver_:this._version});r&&(c.upload_=!0),o&&(c.abortSignal_=o);var u="json";switch(n){case"text":s=util.join(this._service,e),u="text";break;case"xsd":s=util.join(this._service,e+".xsd"),u="text";break;case"json2":s=util.join(this._service,e+"/json"),n="json";var a=e.split("/");e=a.pop();break;default:s=util.join(this._service,e+".json")}return this._connection.send(s,c,u).then(function(t){if("json"===n){var r=void 0;if(t&&t.Exceptions)throw new ESPExceptions(e,c,t.Exceptions);if(t&&(r=t[i||e+"Response"]),!r)throw new ESPExceptions(e,c,{Source:"ESPConnection.send",Exception:[{Code:0,Message:"Missing Response"}]});return r}return t}).catch(function(t){if(t.isESPExceptions)throw t;throw new ESPExceptions(e,c,{Source:"ESPConnection.send",Exception:[{Code:0,Message:t.message}]})})},e.prototype.clone=function(){return new e(this._connection.clone(),this._service,this._version)},e}(),Service=function(){function e(e,t,n){this._connection=new ESPConnection(e,t,n)}return Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this._connection.opts().baseUrl},enumerable:!1,configurable:!0}),e.prototype.opts=function(){return this._connection.opts()},e.prototype.connection=function(){return this._connection.clone()},e}();exports.FileSpray=void 0,function(e){var t;(t=e.DFUWUActions||(e.DFUWUActions={})).Delete="Delete",t.Protect="Protect",t.Unprotect="Unprotect",t.Restore="Restore",t.SetToFailed="SetToFailed",t.Archive="Archive"}(exports.FileSpray||(exports.FileSpray={}));var FileSprayServiceBase=function(e){function t(t){return e.call(this,t,"FileSpray","1.26")||this}return __extends(t,e),t.prototype.AbortDFUWorkunit=function(e){return this._connection.send("AbortDFUWorkunit",e,"json",!1,void 0,"AbortDFUWorkunitResponse")},t.prototype.Copy=function(e){return this._connection.send("Copy",e,"json",!1,void 0,"CopyResponse")},t.prototype.CreateDFUPublisherWorkunit=function(e){return this._connection.send("CreateDFUPublisherWorkunit",e,"json",!1,void 0,"CreateDFUPublisherWorkunitResponse")},t.prototype.CreateDFUWorkunit=function(e){return this._connection.send("CreateDFUWorkunit",e,"json",!1,void 0,"CreateDFUWorkunitResponse")},t.prototype.DFUWUFile=function(e){return this._connection.send("DFUWUFile",e,"json",!1,void 0,"DFUWUFileResponse")},t.prototype.DFUWUSearch=function(e){return this._connection.send("DFUWUSearch",e,"json",!1,void 0,"DFUWUSearchResponse")},t.prototype.DFUWorkunitsAction=function(e){return this._connection.send("DFUWorkunitsAction",e,"json",!1,void 0,"DFUWorkunitsActionResponse")},t.prototype.DeleteDFUWorkunit=function(e){return this._connection.send("DeleteDFUWorkunit",e,"json",!1,void 0,"DeleteDFUWorkunitResponse")},t.prototype.DeleteDFUWorkunits=function(e){return this._connection.send("DeleteDFUWorkunits",e,"json",!1,void 0,"DeleteDFUWorkunitsResponse")},t.prototype.DeleteDropZoneFiles=function(e){return this._connection.send("DeleteDropZoneFiles",e,"json",!1,void 0,"DFUWorkunitsActionResponse")},t.prototype.Despray=function(e){return this._connection.send("Despray",e,"json",!1,void 0,"DesprayResponse")},t.prototype.DfuMonitor=function(e){return this._connection.send("DfuMonitor",e,"json",!1,void 0,"DfuMonitorResponse")},t.prototype.DropZoneFileSearch=function(e){return this._connection.send("DropZoneFileSearch",e,"json",!1,void 0,"DropZoneFileSearchResponse")},t.prototype.DropZoneFiles=function(e){return this._connection.send("DropZoneFiles",e,"json",!1,void 0,"DropZoneFilesResponse")},t.prototype.EchoDateTime=function(e){return this._connection.send("EchoDateTime",e,"json",!1,void 0,"EchoDateTimeResponse")},t.prototype.FileList=function(e){return this._connection.send("FileList",e,"json",!1,void 0,"FileListResponse")},t.prototype.GetDFUExceptions=function(e){return this._connection.send("GetDFUExceptions",e,"json",!1,void 0,"GetDFUExceptionsResponse")},t.prototype.GetDFUProgress=function(e){return this._connection.send("GetDFUProgress",e,"json",!1,void 0,"ProgressResponse")},t.prototype.GetDFUServerQueues=function(e){return this._connection.send("GetDFUServerQueues",e,"json",!1,void 0,"GetDFUServerQueuesResponse")},t.prototype.GetDFUWorkunit=function(e){return this._connection.send("GetDFUWorkunit",e,"json",!1,void 0,"GetDFUWorkunitResponse")},t.prototype.GetDFUWorkunits=function(e){return this._connection.send("GetDFUWorkunits",e,"json",!1,void 0,"GetDFUWorkunitsResponse")},t.prototype.GetRemoteTargets=function(e){return this._connection.send("GetRemoteTargets",e,"json",!1,void 0,"GetRemoteTargetsResponse")},t.prototype.GetSprayTargets=function(e){return this._connection.send("GetSprayTargets",e,"json",!1,void 0,"GetSprayTargetsResponse")},t.prototype.OpenSave=function(e){return this._connection.send("OpenSave",e,"json",!1,void 0,"OpenSaveResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"FileSprayPingResponse")},t.prototype.Rename=function(e){return this._connection.send("Rename",e,"json",!1,void 0,"RenameResponse")},t.prototype.Replicate=function(e){return this._connection.send("Replicate",e,"json",!1,void 0,"ReplicateResponse")},t.prototype.ShowResult=function(e){return this._connection.send("ShowResult",e,"json",!1,void 0,"ShowResultResponse")},t.prototype.SprayFixed=function(e){return this._connection.send("SprayFixed",e,"json",!1,void 0,"SprayFixedResponse")},t.prototype.SprayVariable=function(e){return this._connection.send("SprayVariable",e,"json",!1,void 0,"SprayResponse")},t.prototype.SubmitDFUWorkunit=function(e){return this._connection.send("SubmitDFUWorkunit",e,"json",!1,void 0,"SubmitDFUWorkunitResponse")},t.prototype.UpdateDFUWorkunit=function(e){return this._connection.send("UpdateDFUWorkunit",e,"json",!1,void 0,"UpdateDFUWorkunitResponse")},t}(Service);exports.FileSprayStates=void 0,function(e){e[e.unknown=0]="unknown",e[e.scheduled=1]="scheduled",e[e.queued=2]="queued",e[e.started=3]="started",e[e.aborted=4]="aborted",e[e.failed=5]="failed",e[e.finished=6]="finished",e[e.monitoring=7]="monitoring",e[e.aborting=8]="aborting",e[e.notfound=999]="notfound"}(exports.FileSprayStates||(exports.FileSprayStates={}));var FileSprayService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.DFUWUFileEx=function(e){return this._connection.send("DFUWUFile",e,"text")},t.prototype.SprayFixedEx=function(e){return this._connection.send("SprayFixed",e)},t.prototype.SprayVariableEx=function(e){return this._connection.send("SprayVariable",e,"json",!1,null,"SprayResponse")},t.prototype.DesprayEx=function(e){return this._connection.send("Despray",e)},t.prototype.UpdateDFUWorkunitEx=function(e){return this._connection.send("UpdateDFUWorkunit",e,"json",!1,void 0,"UpdateDFUWorkunitResponse")},t}(FileSprayServiceBase);exports.WsAccess=void 0,function(e){var t,n,r,o,i;(t=e.ViewMemberType||(e.ViewMemberType={})).User="User",t.Group="Group",(n=e.UserSortBy||(e.UserSortBy={})).username="username",n.fullname="fullname",n.passwordexpiration="passwordexpiration",n.employeeID="employeeID",n.employeeNumber="employeeNumber",(r=e.GroupSortBy||(e.GroupSortBy={})).Name="Name",r.ManagedBy="ManagedBy",(o=e.AccountTypeReq||(e.AccountTypeReq={})).Any="Any",o.User="User",o.Group="Group",(i=e.ResourcePermissionSortBy||(e.ResourcePermissionSortBy={})).Name="Name",i.Type="Type",(e.ResourceSortBy||(e.ResourceSortBy={})).Name="Name"}(exports.WsAccess||(exports.WsAccess={}));var AccessServiceBase=function(e){function t(t){return e.call(this,t,"ws_access","1.17")||this}return __extends(t,e),t.prototype.AccountPermissions=function(e){return this._connection.send("AccountPermissions",e,"json",!1,void 0,"AccountPermissionsResponse")},t.prototype.AccountPermissionsV2=function(e){return this._connection.send("AccountPermissionsV2",e,"json",!1,void 0,"AccountPermissionsV2Response")},t.prototype.AddUser=function(e){return this._connection.send("AddUser",e,"json",!1,void 0,"AddUserResponse")},t.prototype.AddView=function(e){return this._connection.send("AddView",e,"json",!1,void 0,"AddViewResponse")},t.prototype.AddViewColumn=function(e){return this._connection.send("AddViewColumn",e,"json",!1,void 0,"AddViewColumnResponse")},t.prototype.AddViewMember=function(e){return this._connection.send("AddViewMember",e,"json",!1,void 0,"AddViewMemberResponse")},t.prototype.ClearPermissionsCache=function(e){return this._connection.send("ClearPermissionsCache",e,"json",!1,void 0,"ClearPermissionsCacheResponse")},t.prototype.DeleteView=function(e){return this._connection.send("DeleteView",e,"json",!1,void 0,"DeleteViewResponse")},t.prototype.DeleteViewColumn=function(e){return this._connection.send("DeleteViewColumn",e,"json",!1,void 0,"DeleteViewColumnResponse")},t.prototype.DeleteViewMember=function(e){return this._connection.send("DeleteViewMember",e,"json",!1,void 0,"DeleteViewMemberResponse")},t.prototype.DisableScopeScans=function(e){return this._connection.send("DisableScopeScans",e,"json",!1,void 0,"DisableScopeScansResponse")},t.prototype.EnableScopeScans=function(e){return this._connection.send("EnableScopeScans",e,"json",!1,void 0,"EnableScopeScansResponse")},t.prototype.FilePermission=function(e){return this._connection.send("FilePermission",e,"json",!1,void 0,"FilePermissionResponse")},t.prototype.GroupAction=function(e){return this._connection.send("GroupAction",e,"json",!1,void 0,"GroupActionResponse")},t.prototype.GroupAdd=function(e){return this._connection.send("GroupAdd",e,"json",!1,void 0,"GroupAddResponse")},t.prototype.GroupEdit=function(e){return this._connection.send("GroupEdit",e,"json",!1,void 0,"GroupEditResponse")},t.prototype.GroupMemberEdit=function(e){return this._connection.send("GroupMemberEdit",e,"json",!1,void 0,"GroupMemberEditResponse")},t.prototype.GroupMemberEditInput=function(e){return this._connection.send("GroupMemberEditInput",e,"json",!1,void 0,"GroupMemberEditInputResponse")},t.prototype.GroupMemberQuery=function(e){return this._connection.send("GroupMemberQuery",e,"json",!1,void 0,"GroupMemberQueryResponse")},t.prototype.GroupQuery=function(e){return this._connection.send("GroupQuery",e,"json",!1,void 0,"GroupQueryResponse")},t.prototype.Groups=function(e){return this._connection.send("Groups",e,"json",!1,void 0,"GroupResponse")},t.prototype.PermissionAction=function(e){return this._connection.send("PermissionAction",e,"json",!1,void 0,"PermissionActionResponse")},t.prototype.Permissions=function(e){return this._connection.send("Permissions",e,"json",!1,void 0,"BasednsResponse")},t.prototype.PermissionsReset=function(e){return this._connection.send("PermissionsReset",e,"json",!1,void 0,"PermissionsResetResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"ws_accessPingResponse")},t.prototype.QueryScopeScansEnabled=function(e){return this._connection.send("QueryScopeScansEnabled",e,"json",!1,void 0,"QueryScopeScansEnabledResponse")},t.prototype.QueryUserViewColumns=function(e){return this._connection.send("QueryUserViewColumns",e,"json",!1,void 0,"QueryUserViewColumnsResponse")},t.prototype.QueryViewColumns=function(e){return this._connection.send("QueryViewColumns",e,"json",!1,void 0,"QueryViewColumnsResponse")},t.prototype.QueryViewMembers=function(e){return this._connection.send("QueryViewMembers",e,"json",!1,void 0,"QueryViewMembersResponse")},t.prototype.QueryViews=function(e){return this._connection.send("QueryViews",e,"json",!1,void 0,"QueryViewsResponse")},t.prototype.ResourceAdd=function(e){return this._connection.send("ResourceAdd",e,"json",!1,void 0,"ResourceAddResponse")},t.prototype.ResourceDelete=function(e){return this._connection.send("ResourceDelete",e,"json",!1,void 0,"ResourceDeleteResponse")},t.prototype.ResourcePermissionQuery=function(e){return this._connection.send("ResourcePermissionQuery",e,"json",!1,void 0,"ResourcePermissionQueryResponse")},t.prototype.ResourcePermissions=function(e){return this._connection.send("ResourcePermissions",e,"json",!1,void 0,"ResourcePermissionsResponse")},t.prototype.ResourceQuery=function(e){return this._connection.send("ResourceQuery",e,"json",!1,void 0,"ResourceQueryResponse")},t.prototype.Resources=function(e){return this._connection.send("Resources",e,"json",!1,void 0,"ResourcesResponse")},t.prototype.UserAccountExport=function(e){return this._connection.send("UserAccountExport",e,"json",!1,void 0,"UserAccountExportResponse")},t.prototype.UserAction=function(e){return this._connection.send("UserAction",e,"json",!1,void 0,"UserActionResponse")},t.prototype.UserEdit=function(e){return this._connection.send("UserEdit",e,"json",!1,void 0,"UserEditResponse")},t.prototype.UserGroupEdit=function(e){return this._connection.send("UserGroupEdit",e,"json",!1,void 0,"UserGroupEditResponse")},t.prototype.UserGroupEditInput=function(e){return this._connection.send("UserGroupEditInput",e,"json",!1,void 0,"UserGroupEditInputResponse")},t.prototype.UserInfoEdit=function(e){return this._connection.send("UserInfoEdit",e,"json",!1,void 0,"UserInfoEditResponse")},t.prototype.UserInfoEditInput=function(e){return this._connection.send("UserInfoEditInput",e,"json",!1,void 0,"UserInfoEditInputResponse")},t.prototype.UserPosix=function(e){return this._connection.send("UserPosix",e,"json",!1,void 0,"UserPosixResponse")},t.prototype.UserPosixInput=function(e){return this._connection.send("UserPosixInput",e,"json",!1,void 0,"UserPosixInputResponse")},t.prototype.UserQuery=function(e){return this._connection.send("UserQuery",e,"json",!1,void 0,"UserQueryResponse")},t.prototype.UserResetPass=function(e){return this._connection.send("UserResetPass",e,"json",!1,void 0,"UserResetPassResponse")},t.prototype.UserResetPassInput=function(e){return this._connection.send("UserResetPassInput",e,"json",!1,void 0,"UserResetPassInputResponse")},t.prototype.UserSudoers=function(e){return this._connection.send("UserSudoers",e,"json",!1,void 0,"UserSudoersResponse")},t.prototype.UserSudoersInput=function(e){return this._connection.send("UserSudoersInput",e,"json",!1,void 0,"UserSudoersInputResponse")},t.prototype.Users=function(e){return this._connection.send("Users",e,"json",!1,void 0,"UserResponse")},t}(Service),AccessService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(AccessServiceBase),AccountServiceBase=function(e){function t(t){return e.call(this,t,"ws_account","1.06")||this}return __extends(t,e),t.prototype.MyAccount=function(e){return this._connection.send("MyAccount",e,"json",!1,void 0,"MyAccountResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"ws_accountPingResponse")},t.prototype.UpdateUser=function(e){return this._connection.send("UpdateUser",e,"json",!1,void 0,"UpdateUserResponse")},t.prototype.UpdateUserInput=function(e){return this._connection.send("UpdateUserInput",e,"json",!1,void 0,"UpdateUserInputResponse")},t.prototype.VerifyUser=function(e){return this._connection.send("VerifyUser",e,"json",!1,void 0,"VerifyUserResponse")},t}(Service),AccountService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.VerifyUser=function(e){return this._connection.send("VerifyUser",e).catch(function(e){if(e.isESPExceptions&&e.Exception.some(function(e){return 20043===e.Code}))return{retcode:20043,Exceptions:{Source:"wsAccount",Exception:e.Exception}};throw e})},t}(AccountServiceBase),CloudServiceBase=function(e){function t(t){return e.call(this,t,"WsCloud","1.02")||this}return __extends(t,e),t.prototype.GetPODs=function(e){return this._connection.send("GetPODs",e,"json",!1,void 0,"GetPODsResponse")},t.prototype.GetServices=function(e){return this._connection.send("GetServices",e,"json",!1,void 0,"GetServicesResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"WsCloudPingResponse")},t}(Service),logger$6=util.scopedLogger("@hpcc-js/comms/services/wsCloud.ts");function isGetPODsResponse_v1_02(e){return void 0!==(null==e?void 0:e.Pods)}function mapPorts(e){var t,n,r;return null!==(r=null===(n=null===(t=e.spec)||void 0===t?void 0:t.containers)||void 0===n?void 0:n.reduce(function(e,t){var n;return null===(n=t.ports)||void 0===n||n.forEach(function(t){e.push({ContainerPort:t.containerPort,Name:t.name,Protocol:t.protocol})}),e},[]))&&void 0!==r?r:[]}function mapPods(e){return e.filter(function(e){var t,n,r=null!==(n=null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.labels)&&void 0!==n?n:{};return r.hasOwnProperty("app.kubernetes.io/part-of")&&"HPCC-Platform"===r["app.kubernetes.io/part-of"]}).map(function(e){var t,n,r,o,i,s,c,u,a,p,l,d,h=new Date(null===(t=e.metadata)||void 0===t?void 0:t.creationTimestamp);return{Name:e.metadata.name,Status:null===(n=e.status)||void 0===n?void 0:n.phase,CreationTimestamp:h.toISOString(),ContainerName:null!==(i=null===(o=null===(r=e.status)||void 0===r?void 0:r.containerStatuses)||void 0===o?void 0:o.reduce(function(e,t){return t.name&&e.push(t.name),e},[]).join(", "))&&void 0!==i?i:"",ContainerCount:null!==(u=null===(c=null===(s=e.spec)||void 0===s?void 0:s.containers)||void 0===c?void 0:c.length)&&void 0!==u?u:0,ContainerReadyCount:null===(p=null===(a=e.status)||void 0===a?void 0:a.containerStatuses)||void 0===p?void 0:p.reduce(function(e,t){return e+(t.ready?1:0)},0),ContainerRestartCount:null===(d=null===(l=e.status)||void 0===l?void 0:l.containerStatuses)||void 0===d?void 0:d.reduce(function(e,t){return e+t.restartCount},0),Ports:{Port:mapPorts(e)}}})}var CloudService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.getPODs=function(){return e.prototype.GetPODs.call(this,{}).then(function(e){var t,n,r;if(isGetPODsResponse_v1_02(e))return null!==(n=null===(t=e.Pods)||void 0===t?void 0:t.Pod)&&void 0!==n?n:[];try{var o="string"==typeof e.Result?JSON.parse(e.Result):e.Result;return mapPods(null!==(r=null==o?void 0:o.items)&&void 0!==r?r:[])}catch(e){return logger$6.error("Error parsing V1Pods json '".concat(e.message,"'")),[]}})},t}(CloudServiceBase),CodesignService=function(){function e(e){this._connection=new ESPConnection(e,"ws_codesign","1.1")}return e.prototype.connectionOptions=function(){return this._connection.opts()},e.prototype.ListUserIDs=function(e){return this._connection.send("ListUserIDs",e).then(function(e){return e.UserIDs.Item}).catch(function(e){return[]})},e.prototype.Sign=function(e){return this._connection.send("Sign",__assign({SigningMethod:"gpg"},e))},e.prototype.Verify=function(e){return this._connection.send("Verify",e)},e}(),DaliServiceBase=function(e){function t(t){return e.call(this,t,"WSDali","1.07")||this}return __extends(t,e),t.prototype.Add=function(e){return this._connection.send("Add",e,"json",!1,void 0,"ResultResponse")},t.prototype.ClearTraceTransactions=function(e){return this._connection.send("ClearTraceTransactions",e,"json",!1,void 0,"ResultResponse")},t.prototype.Count=function(e){return this._connection.send("Count",e,"json",!1,void 0,"CountResponse")},t.prototype.DFSCheck=function(e){return this._connection.send("DFSCheck",e,"json",!1,void 0,"ResultResponse")},t.prototype.DFSExists=function(e){return this._connection.send("DFSExists",e,"json",!1,void 0,"BooleanResponse")},t.prototype.DFSLS=function(e){return this._connection.send("DFSLS",e,"json",!1,void 0,"ResultResponse")},t.prototype.Delete=function(e){return this._connection.send("Delete",e,"json",!1,void 0,"ResultResponse")},t.prototype.DisconnectClientConnection=function(e){return this._connection.send("DisconnectClientConnection",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetClients=function(e){return this._connection.send("GetClients",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetConnections=function(e){return this._connection.send("GetConnections",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetDFSCSV=function(e){return this._connection.send("GetDFSCSV",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetDFSMap=function(e){return this._connection.send("GetDFSMap",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetDFSParents=function(e){return this._connection.send("GetDFSParents",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetLogicalFile=function(e){return this._connection.send("GetLogicalFile",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetLogicalFilePart=function(e){return this._connection.send("GetLogicalFilePart",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetProtectedList=function(e){return this._connection.send("GetProtectedList",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetSDSStats=function(e){return this._connection.send("GetSDSStats",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetSDSSubscribers=function(e){return this._connection.send("GetSDSSubscribers",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetValue=function(e){return this._connection.send("GetValue",e,"json",!1,void 0,"ResultResponse")},t.prototype.Import=function(e){return this._connection.send("Import",e,"json",!1,void 0,"ResultResponse")},t.prototype.ListSDSLocks=function(e){return this._connection.send("ListSDSLocks",e,"json",!1,void 0,"ResultResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"WSDaliPingResponse")},t.prototype.SaveSDSStore=function(e){return this._connection.send("SaveSDSStore",e,"json",!1,void 0,"ResultResponse")},t.prototype.SetLogicalFilePartAttr=function(e){return this._connection.send("SetLogicalFilePartAttr",e,"json",!1,void 0,"ResultResponse")},t.prototype.SetProtected=function(e){return this._connection.send("SetProtected",e,"json",!1,void 0,"ResultResponse")},t.prototype.SetTraceSlowTransactions=function(e){return this._connection.send("SetTraceSlowTransactions",e,"json",!1,void 0,"ResultResponse")},t.prototype.SetTraceTransactions=function(e){return this._connection.send("SetTraceTransactions",e,"json",!1,void 0,"ResultResponse")},t.prototype.SetUnprotected=function(e){return this._connection.send("SetUnprotected",e,"json",!1,void 0,"ResultResponse")},t.prototype.SetValue=function(e){return this._connection.send("SetValue",e,"json",!1,void 0,"ResultResponse")},t.prototype.UnlockSDSLock=function(e){return this._connection.send("UnlockSDSLock",e,"json",!1,void 0,"ResultResponse")},t}(Service),DaliService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.Export=function(e){return __awaiter(this,void 0,void 0,function(){var t,n,r,o;return __generator(this,function(i){switch(i.label){case 0:return t=new URLSearchParams,e.Path&&t.append("Path",e.Path),void 0!==e.Safe&&t.append("Safe",String(e.Safe)),[4,fetch("".concat("/WsDali/Export","?").concat(t.toString()))];case 1:return n=i.sent(),r=n.headers.get("Content-Disposition"),[4,n.blob()];case 2:return o=i.sent(),[2,{filename:r?r.split("filename=")[1]:"WsDali_Export",content:o}]}})})},t}(DaliServiceBase);exports.WsDfu=void 0,function(e){var t,n,r;!function(e){e.Delete="Delete",e.AddToSuperfile="Add To Superfile",e.ChangeProtection="Change Protection",e.ChangeRestriction="Change Restriction"}(e.DFUArrayActions||(e.DFUArrayActions={})),function(e){e[e.NoChange=0]="NoChange",e[e.Protect=1]="Protect",e[e.Unprotect=2]="Unprotect",e[e.UnprotectAll=3]="UnprotectAll"}(e.DFUChangeProtection||(e.DFUChangeProtection={})),function(e){e[e.NoChange=0]="NoChange",e[e.Restrict=1]="Restrict",e[e.Unrestricted=2]="Unrestricted"}(e.DFUChangeRestriction||(e.DFUChangeRestriction={})),function(e){e.xml="xml",e.def="def"}(e.DFUDefFileFormat||(e.DFUDefFileFormat={})),(t=e.FileAccessRole||(e.FileAccessRole={})).Token="Token",t.Engine="Engine",t.External="External",(n=e.SecAccessType||(e.SecAccessType={})).None="None",n.Access="Access",n.Read="Read",n.Write="Write",n.Full="Full",(r=e.DFUFileType||(e.DFUFileType={})).Flat="Flat",r.Index="Index",r.Xml="Xml",r.Csv="Csv",r.Json="Json",r.IndexLocal="IndexLocal",r.IndexPartitioned="IndexPartitioned",r.Unset="Unset"}(exports.WsDfu||(exports.WsDfu={}));var DfuServiceBase=function(e){function t(t){return e.call(this,t,"WsDfu","1.65")||this}return __extends(t,e),t.prototype.Add=function(e){return this._connection.send("Add",e,"json",!1,void 0,"AddResponse")},t.prototype.AddRemote=function(e){return this._connection.send("AddRemote",e,"json",!1,void 0,"AddRemoteResponse")},t.prototype.AddtoSuperfile=function(e){return this._connection.send("AddtoSuperfile",e,"json",!1,void 0,"AddtoSuperfileResponse")},t.prototype.DFUArrayAction=function(e){return this._connection.send("DFUArrayAction",e,"json",!1,void 0,"DFUArrayActionResponse")},t.prototype.DFUBrowseData=function(e){return this._connection.send("DFUBrowseData",e,"json",!1,void 0,"DFUBrowseDataResponse")},t.prototype.DFUDefFile=function(e){return this._connection.send("DFUDefFile",e,"json",!1,void 0,"DFUDefFileResponse")},t.prototype.DFUFileAccess=function(e){return this._connection.send("DFUFileAccess",e,"json",!1,void 0,"DFUFileAccessResponse")},t.prototype.DFUFileAccessV2=function(e){return this._connection.send("DFUFileAccessV2",e,"json",!1,void 0,"DFUFileAccessResponse")},t.prototype.DFUFileCreate=function(e){return this._connection.send("DFUFileCreate",e,"json",!1,void 0,"DFUFileCreateResponse")},t.prototype.DFUFileCreateV2=function(e){return this._connection.send("DFUFileCreateV2",e,"json",!1,void 0,"DFUFileCreateResponse")},t.prototype.DFUFilePublish=function(e){return this._connection.send("DFUFilePublish",e,"json",!1,void 0,"DFUFilePublishResponse")},t.prototype.DFUFileView=function(e){return this._connection.send("DFUFileView",e,"json",!1,void 0,"DFUFileViewResponse")},t.prototype.DFUGetDataColumns=function(e){return this._connection.send("DFUGetDataColumns",e,"json",!1,void 0,"DFUGetDataColumnsResponse")},t.prototype.DFUGetFileMetaData=function(e){return this._connection.send("DFUGetFileMetaData",e,"json",!1,void 0,"DFUGetFileMetaDataResponse")},t.prototype.DFUInfo=function(e){return this._connection.send("DFUInfo",e,"json",!1,void 0,"DFUInfoResponse")},t.prototype.DFUQuery=function(e){return this._connection.send("DFUQuery",e,"json",!1,void 0,"DFUQueryResponse")},t.prototype.DFURecordTypeInfo=function(e){return this._connection.send("DFURecordTypeInfo",e,"json",!1,void 0,"DFURecordTypeInfoResponse")},t.prototype.DFUSearch=function(e){return this._connection.send("DFUSearch",e,"json",!1,void 0,"DFUSearchResponse")},t.prototype.DFUSearchData=function(e){return this._connection.send("DFUSearchData",e,"json",!1,void 0,"DFUSearchDataResponse")},t.prototype.DFUSpace=function(e){return this._connection.send("DFUSpace",e,"json",!1,void 0,"DFUSpaceResponse")},t.prototype.EclRecordTypeInfo=function(e){return this._connection.send("EclRecordTypeInfo",e,"json",!1,void 0,"EclRecordTypeInfoResponse")},t.prototype.EraseHistory=function(e){return this._connection.send("EraseHistory",e,"json",!1,void 0,"EraseHistoryResponse")},t.prototype.ListHistory=function(e){return this._connection.send("ListHistory",e,"json",!1,void 0,"ListHistoryResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"WsDfuPingResponse")},t.prototype.Savexml=function(e){return this._connection.send("Savexml",e,"json",!1,void 0,"SavexmlResponse")},t.prototype.SuperfileAction=function(e){return this._connection.send("SuperfileAction",e,"json",!1,void 0,"SuperfileActionResponse")},t.prototype.SuperfileList=function(e){return this._connection.send("SuperfileList",e,"json",!1,void 0,"SuperfileListResponse")},t}(Service),DFUArrayActions=exports.WsDfu.DFUArrayActions,DFUDefFileFormat=exports.WsDfu.DFUDefFileFormat,DFUChangeProtection=exports.WsDfu.DFUChangeProtection,DFUChangeRestriction=exports.WsDfu.DFUChangeRestriction,DFUService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.DFUFile=function(e){return this._connection.send("DFUDefFile",e,"text")},t.prototype.recursiveFetchLogicalFiles=function(e){return __awaiter(this,void 0,void 0,function(){var t,n,r,o,i,s=this;return __generator(this,function(c){switch(c.label){case 0:return t=[],n=[],[4,Promise.all(e.map(function(e){return s.DFUInfo({Cluster:e.NodeGroup,Name:e.Name,IncludeJsonTypeInfo:!1,IncludeBinTypeInfo:!1,ForceIndexInfo:!1}).then(function(e){for(var r,o,i,s,c,u,a=0,p=null!==(i=null===(o=null===(r=null==e?void 0:e.FileDetail)||void 0===r?void 0:r.Superfiles)||void 0===o?void 0:o.DFULogicalFile)&&void 0!==i?i:[];a<p.length;a++){var l=p[a];t.push(l)}for(var d=0,h=null!==(u=null===(c=null===(s=null==e?void 0:e.FileDetail)||void 0===s?void 0:s.subfiles)||void 0===c?void 0:c.Item)&&void 0!==u?u:[];d<h.length;d++){l=h[d];n.push(l)}})}))];case 1:return c.sent(),o=(r=n).concat,t.length?[4,this.recursiveFetchLogicalFiles(t)]:[3,3];case 2:return i=c.sent(),[3,4];case 3:i=[],c.label=4;case 4:return[2,o.apply(r,[i])]}})})},t}(DfuServiceBase),DFUXRefService=function(e){function t(t){return e.call(this,t,"WsDFUXRef","1.01")||this}return __extends(t,e),t.prototype.DFUXRefArrayAction=function(e){return this._connection.send("DFUXRefArrayAction",e)},t.prototype.DFUXRefBuild=function(e){return this._connection.send("DFUXRefBuild",e)},t.prototype.DFUXRefBuildCancel=function(e){return this._connection.send("DFUXRefBuildCancel",e)},t.prototype.DFUXRefCleanDirectories=function(e){return this._connection.send("DFUXRefCleanDirectories",e)},t.prototype.DFUXRefDirectories=function(e){return this._connection.send("DFUXRefDirectories",e,void 0,void 0,void 0,"DFUXRefDirectoriesQueryResponse")},t.prototype.DFUXRefFoundFiles=function(e){return this._connection.send("DFUXRefFoundFiles",e,void 0,void 0,void 0,"DFUXRefFoundFilesQueryResponse")},t.prototype.DFUXRefList=function(e){return void 0===e&&(e={}),this._connection.send("DFUXRefList",e)},t.prototype.DFUXRefLostFiles=function(e){return this._connection.send("DFUXRefLostFiles",e,void 0,void 0,void 0,"DFUXRefLostFilesQueryResponse")},t.prototype.DFUXRefMessages=function(e){return this._connection.send("DFUXRefMessages",e,void 0,void 0,void 0,"DFUXRefMessagesQueryResponse")},t.prototype.DFUXRefOrphanFiles=function(e){return this._connection.send("DFUXRefOrphanFiles",e,void 0,void 0,void 0,"DFUXRefOrphanFilesQueryResponse")},t.prototype.DFUXRefUnusedFiles=function(e){return this._connection.send("DFUXRefUnusedFiles",e)},t}(Service);function jsonToIField(e,t){var n=typeof t;switch(n){case"boolean":case"number":case"string":return{id:e,type:n};case"object":if(t.Row instanceof Array&&(t=t.Row),t instanceof Array)return{id:e,type:"dataset",children:jsonToIFieldArr(t[0])};if(t instanceof Object){if(t.Item&&t.Item instanceof Array&&1===t.Item.length){var r=typeof t.Item[0];if("string"===r||"number"===r)return{id:e,type:"set",fieldType:r};throw new Error("Unknown field type")}return{id:e,type:"object",fields:jsonToIFieldObj(t)}}default:throw new Error("Unknown field type")}}function jsonToIFieldArr(e){e.Row&&e.Row instanceof Array&&(e=e.Row[0]);var t=[];for(var n in e)t.push(jsonToIField(n,e[n]));return t}function jsonToIFieldObj(e){var t={};for(var n in e)t[n]=jsonToIField(n,e[n]);return t}var EclService=function(e){function t(t){return e.call(this,t,"WsEcl","0")||this}return __extends(t,e),t.prototype.opts=function(){return this._connection.opts()},t.prototype.requestJson=function(e,t){return this._connection.send("example/request/query/".concat(e,"/").concat(t,"/json"),{},"text").then(function(e){var t=JSON.parse(e);for(var n in t)return t[n];return{}}).then(jsonToIFieldArr)},t.prototype.responseJson=function(e,t){return this._connection.send("example/response/query/".concat(e,"/").concat(t,"/json"),{},"text").then(function(e){var t=JSON.parse(e);for(var n in t)return t[n].Results;return{}}).then(function(e){var t={};for(var n in e)t[n]=jsonToIFieldArr(e[n]);return t})},t.prototype.submit=function(e,t,n){var r="submit/query/".concat(e,"/").concat(t);return this._connection.send(r,n,"json2").then(function(e){if(e.Results&&e.Results.Exception)throw new ESPExceptions(r,n,{Source:"wsEcl.submit",Exception:e.Results.Exception});return e.Results})},t}(Service),ElkServiceBase=function(e){function t(t){return e.call(this,t,"ws_elk","1")||this}return __extends(t,e),t.prototype.GetConfigDetails=function(e){return this._connection.send("GetConfigDetails",e)},t.prototype.Ping=function(e){return this._connection.send("Ping",e)},t}(Service),ElkService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(ElkServiceBase);exports.WsLogaccess=void 0,function(e){var t,n,r,o,i,s,c,u;(t=e.LogColumnType||(e.LogColumnType={})).global="global",t.workunits="workunits",t.components="components",t.audience="audience",t.class="class",t.instance="instance",t.node="node",t.message="message",t.logid="logid",t.processid="processid",t.threadid="threadid",t.timestamp="timestamp",t.pod="pod",t.traceid="traceid",t.spanid="spanid",(n=e.LogColumnValueType||(e.LogColumnValueType={})).string="string",n.numeric="numeric",n.datetime="datetime",n.enum="enum",n.epoch="epoch",(r=e.LogAccessType||(e.LogAccessType={}))[r.All=0]="All",r[r.ByJobID=1]="ByJobID",r[r.ByComponent=2]="ByComponent",r[r.ByLogType=3]="ByLogType",r[r.ByTargetAudience=4]="ByTargetAudience",r[r.BySourceInstance=5]="BySourceInstance",r[r.BySourceNode=6]="BySourceNode",r[r.ByFieldName=7]="ByFieldName",r[r.ByPod=8]="ByPod",r[r.ByTraceID=9]="ByTraceID",r[r.BySpanID=10]="BySpanID",(o=e.LogAccessStatusCode||(e.LogAccessStatusCode={}))[o.Success=0]="Success",o[o.Warning=1]="Warning",o[o.Fail=2]="Fail",(i=e.LogAccessFilterOperator||(e.LogAccessFilterOperator={}))[i.NONE=0]="NONE",i[i.AND=1]="AND",i[i.OR=2]="OR",(s=e.LogSelectColumnMode||(e.LogSelectColumnMode={}))[s.MIN=0]="MIN",s[s.DEFAULT=1]="DEFAULT",s[s.ALL=2]="ALL",s[s.CUSTOM=3]="CUSTOM",(c=e.SortColumType||(e.SortColumType={}))[c.ByDate=0]="ByDate",c[c.ByJobID=1]="ByJobID",c[c.ByComponent=2]="ByComponent",c[c.ByLogType=3]="ByLogType",c[c.ByTargetAudience=4]="ByTargetAudience",c[c.BySourceInstance=5]="BySourceInstance",c[c.BySourceNode=6]="BySourceNode",c[c.ByFieldName=7]="ByFieldName",c[c.ByPod=8]="ByPod",c[c.ByTraceID=9]="ByTraceID",c[c.BySpanID=10]="BySpanID",(u=e.SortDirection||(e.SortDirection={}))[u.ASC=0]="ASC",u[u.DSC=1]="DSC"}(exports.WsLogaccess||(exports.WsLogaccess={}));var LogaccessServiceBase=function(e){function t(t){return e.call(this,t,"ws_logaccess","1.08")||this}return __extends(t,e),t.prototype.GetHealthReport=function(e){return this._connection.send("GetHealthReport",e,"json",!1,void 0,"GetHealthReportResponse")},t.prototype.GetLogAccessInfo=function(e){return this._connection.send("GetLogAccessInfo",e,"json",!1,void 0,"GetLogAccessInfoResponse")},t.prototype.GetLogs=function(e){return this._connection.send("GetLogs",e,"json",!1,void 0,"GetLogsResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"ws_logaccessPingResponse")},t}(Service),logger$5=util.scopedLogger("@hpcc-js/comms/services/wsLogaccess.ts"),LogaccessService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.GetLogAccessInfo=function(t){return void 0===t&&(t={}),this._logAccessInfo||(this._logAccessInfo=e.prototype.GetLogAccessInfo.call(this,t)),this._logAccessInfo},t.prototype.GetLogs=function(t){return e.prototype.GetLogs.call(this,t)},t.prototype.GetLogsEx=function(e){return __awaiter(this,void 0,void 0,function(){var t,n,r,o,i,s,c,u,a,p,l,d,h,f,g,y,A,m;return __generator(this,function(b){switch(b.label){case 0:return[4,this.GetLogAccessInfo()];case 1:for(c in t=b.sent(),n={},t.Columns.Column.forEach(function(e){return n[e.LogType]=e.Name}),r=function(e){var t,r={};for(var o in n)(null==e?void 0:e.fields)?r[o]=null!==(t=Object.assign.apply(Object,__spreadArray([{}],e.fields,!1))[n[o]])&&void 0!==t?t:"":r[o]="";return r},o={Filter:{leftBinaryFilter:{BinaryLogFilter:[{leftFilter:{LogCategory:exports.WsLogaccess.LogAccessType.All}}]}},Range:{StartDate:new Date(0).toISOString()},LogLineStartFrom:null!==(a=e.LogLineStartFrom)&&void 0!==a?a:0,LogLineLimit:null!==(p=e.LogLineLimit)&&void 0!==p?p:100,SelectColumnMode:exports.WsLogaccess.LogSelectColumnMode.DEFAULT,Format:"JSON",SortBy:{SortCondition:[{BySortType:exports.WsLogaccess.SortColumType.ByDate,ColumnName:"",Direction:0}]}},i=[],s=function(t){var r,o;if(t in n&&(r=Object.values(exports.WsLogaccess.LogColumnType).includes(t)?t:n[t]),r){switch(r){case exports.WsLogaccess.LogColumnType.workunits:case"hpcc.log.jobid":o=exports.WsLogaccess.LogAccessType.ByJobID;break;case exports.WsLogaccess.LogColumnType.audience:case"hpcc.log.audience":o=exports.WsLogaccess.LogAccessType.ByTargetAudience;break;case exports.WsLogaccess.LogColumnType.class:case"hpcc.log.class":o=exports.WsLogaccess.LogAccessType.ByLogType;break;case exports.WsLogaccess.LogColumnType.components:case"kubernetes.container.name":o=exports.WsLogaccess.LogAccessType.ByComponent;break;default:o=exports.WsLogaccess.LogAccessType.ByFieldName,r=n[t]}if(Array.isArray(e[t]))e[t].forEach(function(e){o===exports.WsLogaccess.LogAccessType.ByComponent&&(e+="*"),i.push({LogCategory:o,SearchField:r,SearchByValue:e})});else{var s=e[t];o===exports.WsLogaccess.LogAccessType.ByComponent&&(s+="*"),i.push({LogCategory:o,SearchField:r,SearchByValue:s})}}},e)s(c);return i.length>2?(u=o.Filter.leftBinaryFilter.BinaryLogFilter[0],i.forEach(function(e,t){var n=exports.WsLogaccess.LogAccessFilterOperator.AND;t>0?(i[t-1].SearchField===e.SearchField&&(n=exports.WsLogaccess.LogAccessFilterOperator.OR),t===i.length-1?(u.Operator=n,u.rightFilter=e):(u.Operator=n,u.rightBinaryFilter={BinaryLogFilter:[{leftFilter:e}]},u=u.rightBinaryFilter.BinaryLogFilter[0])):u.leftFilter=e})):(delete o.Filter.leftBinaryFilter,o.Filter.leftFilter={LogCategory:exports.WsLogaccess.LogAccessType.All},(null===(l=i[0])||void 0===l?void 0:l.SearchField)&&(o.Filter.leftFilter={LogCategory:null===(d=i[0])||void 0===d?void 0:d.LogCategory,SearchField:null===(h=i[0])||void 0===h?void 0:h.SearchField,SearchByValue:null===(f=i[0])||void 0===f?void 0:f.SearchByValue}),(null===(g=i[1])||void 0===g?void 0:g.SearchField)&&(o.Filter.Operator=exports.WsLogaccess.LogAccessFilterOperator.AND,i[0].SearchField===i[1].SearchField&&(o.Filter.Operator=exports.WsLogaccess.LogAccessFilterOperator.OR),o.Filter.rightFilter={LogCategory:null===(y=i[1])||void 0===y?void 0:y.LogCategory,SearchField:null===(A=i[1])||void 0===A?void 0:A.SearchField,SearchByValue:null===(m=i[1])||void 0===m?void 0:m.SearchByValue})),e.StartDate&&(o.Range.StartDate=e.StartDate.toISOString()),e.EndDate&&(o.Range.EndDate=e.EndDate.toISOString()),[2,this.GetLogs(o).then(function(e){var n,o,i;try{var s=JSON.parse(e.LogLines),c=[];switch(t.RemoteLogManagerType){case"azureloganalyticscurl":case"elasticstack":case"grafanacurl":c=null!==(o=null===(n=s.lines)||void 0===n?void 0:n.map(r))&&void 0!==o?o:[];break;default:logger$5.warning("Unknown RemoteLogManagerType: ".concat(t.RemoteLogManagerType)),c=[]}return{lines:c,total:null!==(i=e.TotalLogLinesAvailable)&&void 0!==i?i:1e4}}catch(e){logger$5.error(e)}return{lines:[],total:0}})]}})})},t}(LogaccessServiceBase);function ascending(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function bisector(e){return 1===e.length&&(e=ascendingComparator(e)),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)>0?o=i:r=i+1}return r}}}function ascendingComparator(e){return function(t,n){return ascending(e(t),n)}}function number(e){return null===e?NaN:+e}function d3Max(e,t){var n,r,o=e.length,i=-1;if(null==t){for(;++i<o;)if(null!=(n=e[i])&&n>=n)for(r=n;++i<o;)null!=(n=e[i])&&n>r&&(r=n)}else for(;++i<o;)if(null!=(n=t(e[i],i,e))&&n>=n)for(r=n;++i<o;)null!=(n=t(e[i],i,e))&&n>r&&(r=n);return r}function d3Mean(e,t){var n,r=e.length,o=r,i=-1,s=0;if(null==t)for(;++i<r;)isNaN(n=number(e[i]))?--o:s+=n;else for(;++i<r;)isNaN(n=number(t(e[i],i,e)))?--o:s+=n;if(o)return s/o}bisector(ascending);var MachineServiceBase=function(e){function t(t){return e.call(this,t,"ws_machine","1.17")||this}return __extends(t,e),t.prototype.GetComponentStatus=function(e){return this._connection.send("GetComponentStatus",e)},t.prototype.GetComponentUsage=function(e){return this._connection.send("GetComponentUsage",e)},t.prototype.GetMachineInfo=function(e){return this._connection.send("GetMachineInfo",e)},t.prototype.GetMachineInfoEx=function(e){return this._connection.send("GetMachineInfoEx",e)},t.prototype.GetMetrics=function(e){return this._connection.send("GetMetrics",e)},t.prototype.GetNodeGroupUsage=function(e){return this._connection.send("GetNodeGroupUsage",e)},t.prototype.GetTargetClusterInfo=function(e){return this._connection.send("GetTargetClusterInfo",e)},t.prototype.GetTargetClusterUsage=function(e){return this._connection.send("GetTargetClusterUsage",e)},t.prototype.Ping=function(e){return this._connection.send("Ping",e)},t.prototype.UpdateComponentStatus=function(e){return this._connection.send("UpdateComponentStatus",e)},t}(Service),MachineService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.GetTargetClusterUsageEx=function(e,t){return void 0===t&&(t=!1),this._connection.send("GetTargetClusterUsage",{TargetClusters:e?{Item:e}:{},BypassCachedResult:t}).then(function(e){return util.exists("TargetClusterUsages.TargetClusterUsage",e)?e.TargetClusterUsages.TargetClusterUsage:[]}).then(function(e){return e.filter(function(e){return!!e.ComponentUsages}).map(function(e){var t=e.ComponentUsages.ComponentUsage.map(function(e){var t=(e.MachineUsages&&e.MachineUsages.MachineUsage?e.MachineUsages.MachineUsage:[]).map(function(e){var t=e.DiskUsages&&e.DiskUsages.DiskUsage?e.DiskUsages.DiskUsage.map(function(e){return __assign(__assign({},e),{InUse:1024*e.InUse,Total:1024*(e.InUse+e.Available),PercentUsed:100-e.PercentAvailable})}):[];return{Name:e.Name,NetAddress:e.NetAddress,Description:e.Description,DiskUsages:t,mean:d3Mean(t.filter(function(e){return!isNaN(e.PercentUsed)}),function(e){return e.PercentUsed}),max:d3Max(t.filter(function(e){return!isNaN(e.PercentUsed)}),function(e){return e.PercentUsed})}});return{Type:e.Type,Name:e.Name,Description:e.Description,MachineUsages:t,MachineUsagesDescription:t.reduce(function(e,t){return e+(t.Description||"")},""),mean:d3Mean(t.filter(function(e){return!isNaN(e.mean)}),function(e){return e.mean}),max:d3Max(t.filter(function(e){return!isNaN(e.max)}),function(e){return e.max})}});return{Name:e.Name,Description:e.Description,ComponentUsages:t,ComponentUsagesDescription:t.reduce(function(e,t){return e+(t.MachineUsagesDescription||"")},""),mean:d3Mean(t.filter(function(e){return!isNaN(e.mean)}),function(e){return e.mean}),max:d3Max(t.filter(function(e){return!isNaN(e.max)}),function(e){return e.max})}})})},t}(MachineServiceBase),PackageProcessServiceBase=function(e){function t(t){return e.call(this,t,"WsPackageProcess","1.04")||this}return __extends(t,e),t.prototype.ActivatePackage=function(e){return this._connection.send("ActivatePackage",e)},t.prototype.AddPackage=function(e){return this._connection.send("AddPackage",e)},t.prototype.AddPartToPackageMap=function(e){return this._connection.send("AddPartToPackageMap",e)},t.prototype.CopyPackageMap=function(e){return this._connection.send("CopyPackageMap",e)},t.prototype.DeActivatePackage=function(e){return this._connection.send("DeActivatePackage",e)},t.prototype.DeletePackage=function(e){return this._connection.send("DeletePackage",e)},t.prototype.Echo=function(e){return this._connection.send("Echo",e)},t.prototype.GetPackage=function(e){return this._connection.send("GetPackage",e)},t.prototype.GetPackageMapById=function(e){return this._connection.send("GetPackageMapById",e)},t.prototype.GetPackageMapSelectOptions=function(e){return this._connection.send("GetPackageMapSelectOptions",e)},t.prototype.GetPartFromPackageMap=function(e){return this._connection.send("GetPartFromPackageMap",e)},t.prototype.GetQueryFileMapping=function(e){return this._connection.send("GetQueryFileMapping",e)},t.prototype.ListPackage=function(e){return this._connection.send("ListPackage",e)},t.prototype.ListPackages=function(e){return this._connection.send("ListPackages",e)},t.prototype.Ping=function(e){return this._connection.send("Ping",e)},t.prototype.RemovePartFromPackageMap=function(e){return this._connection.send("RemovePartFromPackageMap",e)},t.prototype.ValidatePackage=function(e){return this._connection.send("ValidatePackage",e)},t}(Service),PackageProcessService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(PackageProcessServiceBase),ResourcesServiceBase=function(e){function t(t){return e.call(this,t,"WsResources","1.01")||this}return __extends(t,e),t.prototype.Ping=function(e){return this._connection.send("Ping",e)},t.prototype.ServiceQuery=function(e){return this._connection.send("ServiceQuery",e)},t.prototype.WebLinksQuery=function(e){return this._connection.send("WebLinksQuery",e)},t}(Service),ResourcesService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(ResourcesServiceBase);exports.WsSasha=void 0,function(e){var t;(t=e.WUTypes||(e.WUTypes={})).ECL="ECL",t.DFU="DFU"}(exports.WsSasha||(exports.WsSasha={}));var SashaServiceBase=function(e){function t(t){return e.call(this,t,"WSSasha","1.01")||this}return __extends(t,e),t.prototype.ArchiveWU=function(e){return this._connection.send("ArchiveWU",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetVersion=function(e){return this._connection.send("GetVersion",e,"json",!1,void 0,"ResultResponse")},t.prototype.ListWU=function(e){return this._connection.send("ListWU",e,"json",!1,void 0,"ResultResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"WSSashaPingResponse")},t.prototype.RestoreWU=function(e){return this._connection.send("RestoreWU",e,"json",!1,void 0,"ResultResponse")},t}(Service),SashaService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(SashaServiceBase);exports.WsSMC=void 0,function(e){var t,n;(t=e.LockModes||(e.LockModes={})).ALL="ALL",t.READ="READ",t.WRITE="WRITE",t.HOLD="HOLD",t.SUB="SUB",(n=e.RoxieControlCmdType||(e.RoxieControlCmdType={})).Attach="Attach",n.Detach="Detach",n.State="State",n.Reload="Reload",n.ReloadRetry="ReloadRetry",n.MemLock="MemLock",n.MemUnlock="MemUnlock",n.GetMemLocked="GetMemLocked"}(exports.WsSMC||(exports.WsSMC={}));var SMCServiceBase=function(e){function t(t){return e.call(this,t,"WsSMC","1.27")||this}return __extends(t,e),t.prototype.Activity=function(e){return this._connection.send("Activity",e,"json",!1,void 0,"ActivityResponse")},t.prototype.BrowseResources=function(e){return this._connection.send("BrowseResources",e,"json",!1,void 0,"BrowseResourcesResponse")},t.prototype.ClearQueue=function(e){return this._connection.send("ClearQueue",e,"json",!1,void 0,"SMCQueueResponse")},t.prototype.GetBuildInfo=function(e){return this._connection.send("GetBuildInfo",e,"json",!1,void 0,"GetBuildInfoResponse")},t.prototype.GetStatusServerInfo=function(e){return this._connection.send("GetStatusServerInfo",e,"json",!1,void 0,"GetStatusServerInfoResponse")},t.prototype.GetThorQueueAvailability=function(e){return this._connection.send("GetThorQueueAvailability",e,"json",!1,void 0,"GetThorQueueAvailabilityResponse")},t.prototype.Index=function(e){return this._connection.send("Index",e,"json",!1,void 0,"SMCIndexResponse")},t.prototype.LockQuery=function(e){return this._connection.send("LockQuery",e,"json",!1,void 0,"LockQueryResponse")},t.prototype.MoveJobBack=function(e){return this._connection.send("MoveJobBack",e,"json",!1,void 0,"SMCJobResponse")},t.prototype.MoveJobDown=function(e){return this._connection.send("MoveJobDown",e,"json",!1,void 0,"SMCJobResponse")},t.prototype.MoveJobFront=function(e){return this._connection.send("MoveJobFront",e,"json",!1,void 0,"SMCJobResponse")},t.prototype.MoveJobUp=function(e){return this._connection.send("MoveJobUp",e,"json",!1,void 0,"SMCJobResponse")},t.prototype.NotInCommunityEdition=function(e){return this._connection.send("NotInCommunityEdition",e,"json",!1,void 0,"NotInCommunityEditionResponse")},t.prototype.PauseQueue=function(e){return this._connection.send("PauseQueue",e,"json",!1,void 0,"SMCQueueResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"WsSMCPingResponse")},t.prototype.RemoveJob=function(e){return this._connection.send("RemoveJob",e,"json",!1,void 0,"SMCJobResponse")},t.prototype.ResumeQueue=function(e){return this._connection.send("ResumeQueue",e,"json",!1,void 0,"SMCQueueResponse")},t.prototype.RoxieControlCmd=function(e){return this._connection.send("RoxieControlCmd",e,"json",!1,void 0,"RoxieControlCmdResponse")},t.prototype.RoxieXrefCmd=function(e){return this._connection.send("RoxieXrefCmd",e,"json",!1,void 0,"RoxieXrefCmdResponse")},t.prototype.SetBanner=function(e){return this._connection.send("SetBanner",e,"json",!1,void 0,"SetBannerResponse")},t.prototype.SetJobPriority=function(e){return this._connection.send("SetJobPriority",e,"json",!1,void 0,"SMCPriorityResponse")},t.prototype.StopQueue=function(e){return this._connection.send("StopQueue",e,"json",!1,void 0,"SMCQueueResponse")},t}(Service),SMCService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.connectionOptions=function(){return this._connection.opts()},t.prototype.Activity=function(t){return e.prototype.Activity.call(this,t).then(function(e){return __assign({Running:{ActiveWorkunit:[]}},e)})},t}(SMCServiceBase),StoreService=function(e){function t(t){return e.call(this,t,"WsStore","1")||this}return __extends(t,e),t.prototype.CreateStore=function(e){return this._connection.send("Fetch",e)},t.prototype.Delete=function(e){return this._connection.send("Delete",e).catch(function(e){if(e.isESPExceptions&&e.Exception.some(function(e){return-1===e.Code}))return{Exceptions:void 0,Success:!0};throw e})},t.prototype.DeleteNamespace=function(e){return this._connection.send("DeleteNamespace",e)},t.prototype.Fetch=function(e){return this._connection.send("Fetch",e).catch(function(e){if(e.isESPExceptions&&e.Exception.some(function(e){return-1===e.Code}))return{Exceptions:void 0,Value:void 0};throw e})},t.prototype.FetchAll=function(e){return this._connection.send("FetchAll",e)},t.prototype.FetchKeyMD=function(e){return this._connection.send("FetchKeyMD",e)},t.prototype.ListKeys=function(e){return this._connection.send("ListKeys",e)},t.prototype.ListNamespaces=function(e){return this._connection.send("ListNamespaces",e)},t.prototype.Set=function(e){return this._connection.send("Set",e)},t}(Service);exports.WsTopology=void 0,function(e){var t;(t=e.RoxieQueueFilter||(e.RoxieQueueFilter={})).All="All",t.QueriesOnly="QueriesOnly",t.WorkunitsOnly="WorkunitsOnly"}(exports.WsTopology||(exports.WsTopology={}));var TopologyServiceBase=function(e){function t(t){return e.call(this,t,"WsTopology","1.32")||this}return __extends(t,e),t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"WsTopologyPingResponse")},t.prototype.SystemLog=function(e){return this._connection.send("SystemLog",e,"json",!1,void 0,"SystemLogResponse")},t.prototype.TpClusterInfo=function(e){return this._connection.send("TpClusterInfo",e,"json",!1,void 0,"TpClusterInfoResponse")},t.prototype.TpClusterQuery=function(e){return this._connection.send("TpClusterQuery",e,"json",!1,void 0,"TpClusterQueryResponse")},t.prototype.TpDropZoneQuery=function(e){return this._connection.send("TpDropZoneQuery",e,"json",!1,void 0,"TpDropZoneQueryResponse")},t.prototype.TpGetComponentFile=function(e){return this._connection.send("TpGetComponentFile",e,"json",!1,void 0,"TpGetComponentFileResponse")},t.prototype.TpGetServicePlugins=function(e){return this._connection.send("TpGetServicePlugins",e,"json",!1,void 0,"TpGetServicePluginsResponse")},t.prototype.TpGroupQuery=function(e){return this._connection.send("TpGroupQuery",e,"json",!1,void 0,"TpGroupQueryResponse")},t.prototype.TpListLogFiles=function(e){return this._connection.send("TpListLogFiles",e,"json",!1,void 0,"TpListLogFilesResponse")},t.prototype.TpListTargetClusters=function(e){return this._connection.send("TpListTargetClusters",e,"json",!1,void 0,"TpListTargetClustersResponse")},t.prototype.TpLogFile=function(e){return this._connection.send("TpLogFile",e,"json",!1,void 0,"TpLogFileResponse")},t.prototype.TpLogFileDisplay=function(e){return this._connection.send("TpLogFileDisplay",e,"json",!1,void 0,"TpLogFileResponse")},t.prototype.TpLogicalClusterQuery=function(e){return this._connection.send("TpLogicalClusterQuery",e,"json",!1,void 0,"TpLogicalClusterQueryResponse")},t.prototype.TpMachineInfo=function(e){return this._connection.send("TpMachineInfo",e,"json",!1,void 0,"TpMachineInfoResponse")},t.prototype.TpMachineQuery=function(e){return this._connection.send("TpMachineQuery",e,"json",!1,void 0,"TpMachineQueryResponse")},t.prototype.TpServiceQuery=function(e){return this._connection.send("TpServiceQuery",e,"json",!1,void 0,"TpServiceQueryResponse")},t.prototype.TpSetMachineStatus=function(e){return this._connection.send("TpSetMachineStatus",e,"json",!1,void 0,"TpSetMachineStatusResponse")},t.prototype.TpSwapNode=function(e){return this._connection.send("TpSwapNode",e,"json",!1,void 0,"TpSwapNodeResponse")},t.prototype.TpTargetClusterQuery=function(e){return this._connection.send("TpTargetClusterQuery",e,"json",!1,void 0,"TpTargetClusterQueryResponse")},t.prototype.TpThorStatus=function(e){return this._connection.send("TpThorStatus",e,"json",!1,void 0,"TpThorStatusResponse")},t.prototype.TpXMLFile=function(e){return this._connection.send("TpXMLFile",e,"json",!1,void 0,"TpXMLFileResponse")},t}(Service),TopologyService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.connectionOptions=function(){return this._connection.opts()},t.prototype.protocol=function(){return this._connection.opts().baseUrl.split("//")[0]},t.prototype.ip=function(){return this._connection.opts().baseUrl.split("//")[1].split(":")[0]},t.prototype.DefaultTpLogicalClusterQuery=function(e){return void 0===e&&(e={}),this.TpLogicalClusterQuery(e).then(function(e){return e.default?e.default:(e.TpLogicalClusters.TpLogicalCluster.some(function(e,r){return 0===r&&(n=e),"hthor"===e.Type&&(t=e,!0)}),t||n);var t,n})},t}(TopologyServiceBase);exports.WsWorkunits=void 0,function(e){var t,n,r,o,i,s,c,u,a,p,l,d,h,f,g;(t=e.ECLWUActions||(e.ECLWUActions={})).Abort="Abort",t.Delete="Delete",t.Deschedule="Deschedule",t.Reschedule="Reschedule",t.Pause="Pause",t.PauseNow="PauseNow",t.Protect="Protect",t.Unprotect="Unprotect",t.Restore="Restore",t.Resume="Resume",t.SetToFailed="SetToFailed",t.Archive="Archive",(n=e.LogSelectColumnMode||(e.LogSelectColumnMode={}))[n.MIN=0]="MIN",n[n.DEFAULT=1]="DEFAULT",n[n.ALL=2]="ALL",n[n.CUSTOM=3]="CUSTOM",(r=e.SortDirection||(e.SortDirection={}))[r.ASC=0]="ASC",r[r.DSC=1]="DSC",(o=e.LogEventClass||(e.LogEventClass={})).ALL="ALL",o.DIS="DIS",o.ERR="ERR",o.WRN="WRN",o.INF="INF",o.PRO="PRO",o.MET="MET",o.EVT="EVT",(i=e.WUDetailsAttrValueType||(e.WUDetailsAttrValueType={})).Single="Single",i.List="List",i.Multi="Multi",(s=e.EclDefinitionActions||(e.EclDefinitionActions={})).SyntaxCheck="SyntaxCheck",s.Deploy="Deploy",s.Publish="Publish",(c=e.ErrorMessageFormat||(e.ErrorMessageFormat={})).xml="xml",c.json="json",c.text="text",(u=e.LogAccessLogFormat||(e.LogAccessLogFormat={}))[u.XML=0]="XML",u[u.JSON=1]="JSON",u[u.CSV=2]="CSV",(a=e.WUExceptionSeverity||(e.WUExceptionSeverity={})).info="info",a.warning="warning",a.error="error",a.alert="alert",(p=e.WUQueryFilterSuspendedType||(e.WUQueryFilterSuspendedType={})).Allqueries="All queries",p.Notsuspended="Not suspended",p.Suspended="Suspended",p.Suspendedbyuser="Suspended by user",p.Suspendedbyfirstnode="Suspended by first node",p.Suspendedbyanynode="Suspended by any node",(l=e.WUQuerySetFilterType||(e.WUQuerySetFilterType={})).All="All",l.Id="Id",l.Name="Name",l.Alias="Alias",l.Status="Status",(d=e.WUProtectFilter||(e.WUProtectFilter={})).All="All",d.Protected="Protected",d.NotProtected="NotProtected",(e.QuerySetAliasActionTypes||(e.QuerySetAliasActionTypes={})).Deactivate="Deactivate",(h=e.QuerysetImportActivation||(e.QuerysetImportActivation={})).None="None",h.ActivateImportedActive="ActivateImportedActive",(f=e.QuerySetQueryActionTypes||(e.QuerySetQueryActionTypes={})).Suspend="Suspend",f.Unsuspend="Unsuspend",f.ToggleSuspend="ToggleSuspend",f.Activate="Activate",f.Delete="Delete",f.DeleteQueriesAndWUs="DeleteQueriesAndWUs",f.RemoveAllAliases="RemoveAllAliases",f.ResetQueryStats="ResetQueryStats",(g=e.WUQueryActivationMode||(e.WUQueryActivationMode={}))[g.DoNotActivateQuery=0]="DoNotActivateQuery",g[g.ActivateQuery=1]="ActivateQuery",g[g.ActivateQuerySuspendPrevious=2]="ActivateQuerySuspendPrevious",g[g.ActivateQueryDeletePrevious=3]="ActivateQueryDeletePrevious"}(exports.WsWorkunits||(exports.WsWorkunits={}));var WorkunitsServiceBase=function(e){function t(t){return e.call(this,t,"WsWorkunits","2.02")||this}return __extends(t,e),t.prototype.GVCAjaxGraph=function(e){return this._connection.send("GVCAjaxGraph",e,"json",!1,void 0,"GVCAjaxGraphResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"WsWorkunitsPingResponse")},t.prototype.WUAbort=function(e){return this._connection.send("WUAbort",e,"json",!1,void 0,"WUAbortResponse")},t.prototype.WUAction=function(e){return this._connection.send("WUAction",e,"json",!1,void 0,"WUActionResponse")},t.prototype.WUAddLocalFileToWorkunit=function(e){return this._connection.send("WUAddLocalFileToWorkunit",e,"json",!1,void 0,"WUAddLocalFileToWorkunitResponse")},t.prototype.WUAnalyseHotspot=function(e){return this._connection.send("WUAnalyseHotspot",e,"json",!1,void 0,"WUAnalyseHotspotResponse")},t.prototype.WUCDebug=function(e){return this._connection.send("WUCDebug",e,"json",!1,void 0,"WUDebugResponse")},t.prototype.WUCheckFeatures=function(e){return this._connection.send("WUCheckFeatures",e,"json",!1,void 0,"WUCheckFeaturesResponse")},t.prototype.WUClusterJobQueueLOG=function(e){return this._connection.send("WUClusterJobQueueLOG",e,"json",!1,void 0,"WUClusterJobQueueLOGResponse")},t.prototype.WUClusterJobQueueXLS=function(e){return this._connection.send("WUClusterJobQueueXLS",e,"json",!1,void 0,"WUClusterJobQueueXLSResponse")},t.prototype.WUClusterJobSummaryXLS=function(e){return this._connection.send("WUClusterJobSummaryXLS",e,"json",!1,void 0,"WUClusterJobSummaryXLSResponse")},t.prototype.WUClusterJobXLS=function(e){return this._connection.send("WUClusterJobXLS",e,"json",!1,void 0,"WUClusterJobXLSResponse")},t.prototype.WUCompileECL=function(e){return this._connection.send("WUCompileECL",e,"json",!1,void 0,"WUCompileECLResponse")},t.prototype.WUCopyLogicalFiles=function(e){return this._connection.send("WUCopyLogicalFiles",e,"json",!1,void 0,"WUCopyLogicalFilesResponse")},t.prototype.WUCopyQuerySet=function(e){return this._connection.send("WUCopyQuerySet",e,"json",!1,void 0,"WUCopyQuerySetResponse")},t.prototype.WUCreate=function(e){return this._connection.send("WUCreate",e,"json",!1,void 0,"WUCreateResponse")},t.prototype.WUCreateAndUpdate=function(e){return this._connection.send("WUCreateAndUpdate",e,"json",!1,void 0,"WUUpdateResponse")},t.prototype.WUCreateZAPInfo=function(e){return this._connection.send("WUCreateZAPInfo",e,"json",!1,void 0,"WUCreateZAPInfoResponse")},t.prototype.WUDelete=function(e){return this._connection.send("WUDelete",e,"json",!1,void 0,"WUDeleteResponse")},t.prototype.WUDeployWorkunit=function(e){return this._connection.send("WUDeployWorkunit",e,"json",!1,void 0,"WUDeployWorkunitResponse")},t.prototype.WUDetails=function(e){return this._connection.send("WUDetails",e,"json",!1,void 0,"WUDetailsResponse")},t.prototype.WUDetailsMeta=function(e){return this._connection.send("WUDetailsMeta",e,"json",!1,void 0,"WUDetailsMetaResponse")},t.prototype.WUEclDefinitionAction=function(e){return this._connection.send("WUEclDefinitionAction",e,"json",!1,void 0,"WUEclDefinitionActionResponse")},t.prototype.WUExport=function(e){return this._connection.send("WUExport",e,"json",!1,void 0,"WUExportResponse")},t.prototype.WUFile=function(e){return this._connection.send("WUFile",e,"json",!1,void 0,"WULogFileResponse")},t.prototype.WUFullResult=function(e){return this._connection.send("WUFullResult",e,"json",!1,void 0,"WUFullResultResponse")},t.prototype.WUGVCGraphInfo=function(e){return this._connection.send("WUGVCGraphInfo",e,"json",!1,void 0,"WUGVCGraphInfoResponse")},t.prototype.WUGetArchiveFile=function(e){return this._connection.send("WUGetArchiveFile",e,"json",!1,void 0,"WUGetArchiveFileResponse")},t.prototype.WUGetDependancyTrees=function(e){return this._connection.send("WUGetDependancyTrees",e,"json",!1,void 0,"WUGetDependancyTreesResponse")},t.prototype.WUGetGraph=function(e){return this._connection.send("WUGetGraph",e,"json",!1,void 0,"WUGetGraphResponse")},t.prototype.WUGetGraphNameAndTypes=function(e){return this._connection.send("WUGetGraphNameAndTypes",e,"json",!1,void 0,"WUGetGraphNameAndTypesResponse")},t.prototype.WUGetNumFileToCopy=function(e){return this._connection.send("WUGetNumFileToCopy",e,"json",!1,void 0,"WUGetNumFileToCopyResponse")},t.prototype.WUGetPlugins=function(e){return this._connection.send("WUGetPlugins",e,"json",!1,void 0,"WUGetPluginsResponse")},t.prototype.WUGetStats=function(e){return this._connection.send("WUGetStats",e,"json",!1,void 0,"WUGetStatsResponse")},t.prototype.WUGetThorJobList=function(e){return this._connection.send("WUGetThorJobList",e,"json",!1,void 0,"WUGetThorJobListResponse")},t.prototype.WUGetThorJobQueue=function(e){return this._connection.send("WUGetThorJobQueue",e,"json",!1,void 0,"WUGetThorJobQueueResponse")},t.prototype.WUGetZAPInfo=function(e){return this._connection.send("WUGetZAPInfo",e,"json",!1,void 0,"WUGetZAPInfoResponse")},t.prototype.WUGraphInfo=function(e){return this._connection.send("WUGraphInfo",e,"json",!1,void 0,"WUGraphInfoResponse")},t.prototype.WUGraphTiming=function(e){return this._connection.send("WUGraphTiming",e,"json",!1,void 0,"WUGraphTimingResponse")},t.prototype.WUInfo=function(e){return this._connection.send("WUInfo",e,"json",!1,void 0,"WUInfoResponse")},t.prototype.WUInfoDetails=function(e){return this._connection.send("WUInfoDetails",e,"json",!1,void 0,"WUInfoResponse")},t.prototype.WUJobList=function(e){return this._connection.send("WUJobList",e,"json",!1,void 0,"WUJobListResponse")},t.prototype.WULightWeightQuery=function(e){return this._connection.send("WULightWeightQuery",e,"json",!1,void 0,"WULightWeightQueryResponse")},t.prototype.WUListArchiveFiles=function(e){return this._connection.send("WUListArchiveFiles",e,"json",!1,void 0,"WUListArchiveFilesResponse")},t.prototype.WUListLocalFileRequired=function(e){return this._connection.send("WUListLocalFileRequired",e,"json",!1,void 0,"WUListLocalFileRequiredResponse")},t.prototype.WUListQueries=function(e){return this._connection.send("WUListQueries",e,"json",!1,void 0,"WUListQueriesResponse")},t.prototype.WUListQueriesUsingFile=function(e){return this._connection.send("WUListQueriesUsingFile",e,"json",!1,void 0,"WUListQueriesUsingFileResponse")},t.prototype.WUMultiQuerysetDetails=function(e){return this._connection.send("WUMultiQuerysetDetails",e,"json",!1,void 0,"WUMultiQuerySetDetailsResponse")},t.prototype.WUProcessGraph=function(e){return this._connection.send("WUProcessGraph",e,"json",!1,void 0,"WUProcessGraphResponse")},t.prototype.WUProtect=function(e){return this._connection.send("WUProtect",e,"json",!1,void 0,"WUProtectResponse")},t.prototype.WUPublishWorkunit=function(e){return this._connection.send("WUPublishWorkunit",e,"json",!1,void 0,"WUPublishWorkunitResponse")},t.prototype.WUPushEvent=function(e){return this._connection.send("WUPushEvent",e,"json",!1,void 0,"WUPushEventResponse")},t.prototype.WUQuery=function(e){return this._connection.send("WUQuery",e,"json",!1,void 0,"WUQueryResponse")},t.prototype.WUQueryConfig=function(e){return this._connection.send("WUQueryConfig",e,"json",!1,void 0,"WUQueryConfigResponse")},t.prototype.WUQueryDetails=function(e){return this._connection.send("WUQueryDetails",e,"json",!1,void 0,"WUQueryDetailsResponse")},t.prototype.WUQueryDetailsLightWeight=function(e){return this._connection.send("WUQueryDetailsLightWeight",e,"json",!1,void 0,"WUQueryDetailsResponse")},t.prototype.WUQueryFiles=function(e){return this._connection.send("WUQueryFiles",e,"json",!1,void 0,"WUQueryFilesResponse")},t.prototype.WUQueryGetGraph=function(e){return this._connection.send("WUQueryGetGraph",e,"json",!1,void 0,"WUQueryGetGraphResponse")},t.prototype.WUQueryGetSummaryStats=function(e){return this._connection.send("WUQueryGetSummaryStats",e,"json",!1,void 0,"WUQueryGetSummaryStatsResponse")},t.prototype.WUQuerysetAliasAction=function(e){return this._connection.send("WUQuerysetAliasAction",e,"json",!1,void 0,"WUQuerySetAliasActionResponse")},t.prototype.WUQuerysetCopyQuery=function(e){return this._connection.send("WUQuerysetCopyQuery",e,"json",!1,void 0,"WUQuerySetCopyQueryResponse")},t.prototype.WUQuerysetDetails=function(e){return this._connection.send("WUQuerysetDetails",e,"json",!1,void 0,"WUQuerySetDetailsResponse")},t.prototype.WUQuerysetExport=function(e){return this._connection.send("WUQuerysetExport",e,"json",!1,void 0,"WUQuerysetExportResponse")},t.prototype.WUQuerysetImport=function(e){return this._connection.send("WUQuerysetImport",e,"json",!1,void 0,"WUQuerysetImportResponse")},t.prototype.WUQuerysetQueryAction=function(e){return this._connection.send("WUQuerysetQueryAction",e,"json",!1,void 0,"WUQuerySetQueryActionResponse")},t.prototype.WUQuerysets=function(e){return this._connection.send("WUQuerysets",e,"json",!1,void 0,"WUQuerysetsResponse")},t.prototype.WURecreateQuery=function(e){return this._connection.send("WURecreateQuery",e,"json",!1,void 0,"WURecreateQueryResponse")},t.prototype.WUResubmit=function(e){return this._connection.send("WUResubmit",e,"json",!1,void 0,"WUResubmitResponse")},t.prototype.WUResult=function(e){return this._connection.send("WUResult",e,"json",!1,void 0,"WUResultResponse")},t.prototype.WUResultBin=function(e){return this._connection.send("WUResultBin",e,"json",!1,void 0,"WUResultBinResponse")},t.prototype.WUResultSummary=function(e){return this._connection.send("WUResultSummary",e,"json",!1,void 0,"WUResultSummaryResponse")},t.prototype.WUResultView=function(e){return this._connection.send("WUResultView",e,"json",!1,void 0,"WUResultViewResponse")},t.prototype.WURun=function(e){return this._connection.send("WURun",e,"json",!1,void 0,"WURunResponse")},t.prototype.WUSchedule=function(e){return this._connection.send("WUSchedule",e,"json",!1,void 0,"WUScheduleResponse")},t.prototype.WUShowScheduled=function(e){return this._connection.send("WUShowScheduled",e,"json",!1,void 0,"WUShowScheduledResponse")},t.prototype.WUSubmit=function(e){return this._connection.send("WUSubmit",e,"json",!1,void 0,"WUSubmitResponse")},t.prototype.WUSyntaxCheckECL=function(e){return this._connection.send("WUSyntaxCheckECL",e,"json",!1,void 0,"WUSyntaxCheckResponse")},t.prototype.WUUpdate=function(e){return this._connection.send("WUUpdate",e,"json",!1,void 0,"WUUpdateResponse")},t.prototype.WUUpdateQueryEntry=function(e){return this._connection.send("WUUpdateQueryEntry",e,"json",!1,void 0,"WUUpdateQueryEntryResponse")},t.prototype.WUWaitCompiled=function(e){return this._connection.send("WUWaitCompiled",e,"json",!1,void 0,"WUWaitResponse")},t.prototype.WUWaitComplete=function(e){return this._connection.send("WUWaitComplete",e,"json",!1,void 0,"WUWaitResponse")},t}(Service);function isECLResult(e){return"string"==typeof e.Name}function isWUQueryECLWorkunit(e){return void 0!==e.TotalClusterTime}function isWUInfoWorkunit(e){return void 0!==e.StateEx}exports.WUStateID=void 0,function(e){e[e.Unknown=0]="Unknown",e[e.Compiled=1]="Compiled",e[e.Running=2]="Running",e[e.Completed=3]="Completed",e[e.Failed=4]="Failed",e[e.Archived=5]="Archived",e[e.Aborting=6]="Aborting",e[e.Aborted=7]="Aborted",e[e.Blocked=8]="Blocked",e[e.Submitted=9]="Submitted",e[e.Scheduled=10]="Scheduled",e[e.Compiling=11]="Compiling",e[e.Wait=12]="Wait",e[e.UploadingFiled=13]="UploadingFiled",e[e.DebugPaused=14]="DebugPaused",e[e.DebugRunning=15]="DebugRunning",e[e.Paused=16]="Paused",e[e.LAST=17]="LAST",e[e.NotFound=999]="NotFound"}(exports.WUStateID||(exports.WUStateID={})),exports.WUUpdate=void 0,function(e){var t;(t=e.Action||(e.Action={}))[t.Unknown=0]="Unknown",t[t.Compile=1]="Compile",t[t.Check=2]="Check",t[t.Run=3]="Run",t[t.ExecuteExisting=4]="ExecuteExisting",t[t.Pause=5]="Pause",t[t.PauseNow=6]="PauseNow",t[t.Resume=7]="Resume",t[t.Debug=8]="Debug",t[t.__size=9]="__size"}(exports.WUUpdate||(exports.WUUpdate={}));var WorkunitsService=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.Ping=function(){return this._connection.send("Ping",{},"json",!1,void 0,"WsWorkunitsPingResponse").then(function(e){return{result:!0}}).catch(function(e){return{result:!1,error:e}})},t.prototype.WUQuery=function(e,t){return void 0===e&&(e={}),this._connection.send("WUQuery",e,"json",!1,t).then(function(e){return util.deepMixin({Workunits:{ECLWorkunit:[]}},e)})},t.prototype.WUInfo=function(t){var n=__assign({Wuid:"",TruncateEclTo64k:!0,IncludeExceptions:!1,IncludeGraphs:!1,IncludeSourceFiles:!1,IncludeResults:!1,IncludeResultsViewNames:!1,IncludeVariables:!1,IncludeTimers:!1,IncludeDebugValues:!1,IncludeApplicationValues:!1,IncludeWorkflows:!1,IncludeXmlSchemas:!1,IncludeResourceURLs:!1,IncludeECL:!1,IncludeHelpers:!1,IncludeAllowedClusters:!1,IncludeTotalClusterTime:!1,IncludeServiceNames:!1,SuppressResultSchemas:!0},t);return e.prototype.WUInfo.call(this,n)},t.prototype.WUCreate=function(){return e.prototype.WUCreate.call(this,{})},t.prototype.WUUpdate=function(e){return this._connection.send("WUUpdate",e,"json",!0)},t.prototype.WUResubmit=function(t){return this._connection.toESPStringArray(t,"Wuids"),e.prototype.WUResubmit.call(this,t)},t.prototype.WUAction=function(t){return t.ActionType=t.WUActionType,e.prototype.WUAction.call(this,t)},t.prototype.WUResult=function(e,t){return this._connection.send("WUResult",e,"json",!1,t)},t.prototype.WUFileEx=function(e){return this._connection.send("WUFile",e,"text")},t.prototype.WUDetailsMeta=function(t){return this._WUDetailsMetaPromise||(this._WUDetailsMetaPromise=e.prototype.WUDetailsMeta.call(this,t)),this._WUDetailsMetaPromise},t.prototype.WUCDebugEx=function(e){return this._connection.send("WUCDebug",e,void 0,void 0,void 0,"WUDebug").then(function(e){var t=util.xml2json(e.Result).children();return t.length?t[0]:null})},t}(WorkunitsServiceBase),WorkunitsServiceEx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.WUPublishWorkunitEx=function(e){return this._connection.send("WUPublishWorkunit",e)},t}(WorkunitsServiceBase);function formatDecimal(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function formatDecimalParts(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function exponent(e){return(e=formatDecimalParts(Math.abs(e)))?e[1]:NaN}function formatGroup(e,t){return function(n,r){for(var o=n.length,i=[],s=0,c=e[0],u=0;o>0&&c>0&&(u+c+1>r&&(c=Math.max(1,r-u)),i.push(n.substring(o-=c,o+c)),!((u+=c+1)>r));)c=e[s=(s+1)%e.length];return i.reverse().join(t)}}function formatNumerals(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var prefixExponent,re=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(e){if(!(t=re.exec(e)))throw new Error("invalid format: "+e);var t;return new FormatSpecifier({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function FormatSpecifier(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function formatTrim(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}function formatPrefixAuto(e,t){var n=formatDecimalParts(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(prefixExponent=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=r.length;return i===s?r:i>s?r+new Array(i-s+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+formatDecimalParts(e,Math.max(0,t+i-1))[0]}function formatRounded(e,t){var n=formatDecimalParts(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}formatSpecifier.prototype=FormatSpecifier.prototype,FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var formatTypes={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:formatDecimal,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return formatRounded(100*e,t)},r:formatRounded,s:formatPrefixAuto,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function identity(e){return e}var locale$1,format,map=Array.prototype.map,prefixes=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function formatLocale$1(e){var t=void 0===e.grouping||void 0===e.thousands?identity:formatGroup(map.call(e.grouping,Number),e.thousands+""),n=void 0===e.currency?"":e.currency[0]+"",r=void 0===e.currency?"":e.currency[1]+"",o=e.decimal+"",i=void 0===e.numerals?identity:formatNumerals(map.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",c=e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function a(e){var a=(e=formatSpecifier(e)).fill,p=e.align,l=e.sign,d=e.symbol,h=e.zero,f=e.width,g=e.comma,y=e.precision,A=e.trim,m=e.type;"n"===m?(g=!0,m="g"):formatTypes[m]||(void 0===y&&(y=12),A=!0,m="g"),(h||"0"===a&&"="===p)&&(h=!0,a="0",p="=");var b="$"===d?n:"#"===d&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",v="$"===d?r:/[%p]/.test(m)?s:"",C=formatTypes[m],D=/[defgprs%]/.test(m);function S(e){var n,r,s,d=b,S=v;if("c"===m)S=C(e)+S,e="";else{var B=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:C(Math.abs(e),y),A&&(e=formatTrim(e)),B&&0===+e&&"+"!==l&&(B=!1),d=(B?"("===l?l:c:"-"===l||"("===l?"":l)+d,S=("s"===m?prefixes[8+prefixExponent/3]:"")+S+(B&&"("===l?")":""),D)for(n=-1,r=e.length;++n<r;)if(48>(s=e.charCodeAt(n))||s>57){S=(46===s?o+e.slice(n+1):e.slice(n))+S,e=e.slice(0,n);break}}g&&!h&&(e=t(e,1/0));var w=d.length+e.length+S.length,E=w<f?new Array(f-w+1).join(a):"";switch(g&&h&&(e=t(E+e,E.length?f-S.length:1/0),E=""),p){case"<":e=d+e+S+E;break;case"=":e=d+E+e+S;break;case"^":e=E.slice(0,w=E.length>>1)+d+e+S+E.slice(w);break;default:e=E+d+e+S}return i(e)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),S.toString=function(){return e+""},S}return{format:a,formatPrefix:function(e,t){var n=a(((e=formatSpecifier(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(exponent(t)/3))),o=Math.pow(10,-r),i=prefixes[8+r/3];return function(e){return n(o*e)+i}}}}function defaultLocale$1(e){return locale$1=formatLocale$1(e),format=locale$1.format,locale$1.formatPrefix,locale$1}defaultLocale$1({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var t0=new Date,t1=new Date;function newInterval(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var s,c=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return c;do{c.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return c},o.filter=function(n){return newInterval(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(o.count=function(t,r){return t0.setTime(+t),t1.setTime(+r),e(t0),e(t1),Math.floor(n(t0,t1))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e===0}:function(t){return o.count(0,t)%e===0}):o:null}),o}var durationMinute=6e4,durationDay=864e5,durationWeek=6048e5,day=newInterval(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*durationMinute)/durationDay},function(e){return e.getDate()-1});function weekday(e){return newInterval(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*durationMinute)/durationWeek})}day.range;var sunday=weekday(0),monday=weekday(1),tuesday=weekday(2),wednesday=weekday(3),thursday=weekday(4),friday=weekday(5),saturday=weekday(6);sunday.range,monday.range,tuesday.range,wednesday.range,thursday.range,friday.range,saturday.range;var year=newInterval(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});year.every=function(e){return isFinite(e=Math.floor(e))&&e>0?newInterval(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null},year.range;var utcDay=newInterval(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/durationDay},function(e){return e.getUTCDate()-1});function utcWeekday(e){return newInterval(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/durationWeek})}utcDay.range;var utcSunday=utcWeekday(0),utcMonday=utcWeekday(1),utcTuesday=utcWeekday(2),utcWednesday=utcWeekday(3),utcThursday=utcWeekday(4),utcFriday=utcWeekday(5),utcSaturday=utcWeekday(6);utcSunday.range,utcMonday.range,utcTuesday.range,utcWednesday.range,utcThursday.range,utcFriday.range,utcSaturday.range;var utcYear=newInterval(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});function localDate(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function utcDate(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function newDate(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function formatLocale(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,s=e.shortDays,c=e.months,u=e.shortMonths,a=formatRe(o),p=formatLookup(o),l=formatRe(i),d=formatLookup(i),h=formatRe(s),f=formatLookup(s),g=formatRe(c),y=formatLookup(c),A=formatRe(u),m=formatLookup(u),b={a:function(e){return s[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return c[e.getMonth()]},c:null,d:formatDayOfMonth,e:formatDayOfMonth,f:formatMicroseconds,g:formatYearISO,G:formatFullYearISO,H:formatHour24,I:formatHour12,j:formatDayOfYear,L:formatMilliseconds,m:formatMonthNumber,M:formatMinutes,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatSeconds,u:formatWeekdayNumberMonday,U:formatWeekNumberSunday,V:formatWeekNumberISO,w:formatWeekdayNumberSunday,W:formatWeekNumberMonday,x:null,X:null,y:formatYear,Y:formatFullYear,Z:formatZone,"%":formatLiteralPercent},v={a:function(e){return s[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return c[e.getUTCMonth()]},c:null,d:formatUTCDayOfMonth,e:formatUTCDayOfMonth,f:formatUTCMicroseconds,g:formatUTCYearISO,G:formatUTCFullYearISO,H:formatUTCHour24,I:formatUTCHour12,j:formatUTCDayOfYear,L:formatUTCMilliseconds,m:formatUTCMonthNumber,M:formatUTCMinutes,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatUTCSeconds,u:formatUTCWeekdayNumberMonday,U:formatUTCWeekNumberSunday,V:formatUTCWeekNumberISO,w:formatUTCWeekdayNumberSunday,W:formatUTCWeekNumberMonday,x:null,X:null,y:formatUTCYear,Y:formatUTCFullYear,Z:formatUTCZone,"%":formatLiteralPercent},C={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.w=d[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=A.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return B(e,t,n,r)},d:parseDayOfMonth,e:parseDayOfMonth,f:parseMicroseconds,g:parseYear,G:parseFullYear,H:parseHour24,I:parseHour24,j:parseDayOfYear,L:parseMilliseconds,m:parseMonthNumber,M:parseMinutes,p:function(e,t,n){var r=a.exec(t.slice(n));return r?(e.p=p[r[0].toLowerCase()],n+r[0].length):-1},q:parseQuarter,Q:parseUnixTimestamp,s:parseUnixTimestampSeconds,S:parseSeconds,u:parseWeekdayNumberMonday,U:parseWeekNumberSunday,V:parseWeekNumberISO,w:parseWeekdayNumberSunday,W:parseWeekNumberMonday,x:function(e,t,r){return B(e,n,t,r)},X:function(e,t,n){return B(e,r,t,n)},y:parseYear,Y:parseFullYear,Z:parseZone,"%":parseLiteralPercent};function D(e,t){return function(n){var r,o,i,s=[],c=-1,u=0,a=e.length;for(n instanceof Date||(n=new Date(+n));++c<a;)37===e.charCodeAt(c)&&(s.push(e.slice(u,c)),null!=(o=pads[r=e.charAt(++c)])?r=e.charAt(++c):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),s.push(r),u=c+1);return s.push(e.slice(u,c)),s.join("")}}function S(e,t){return function(n){var r,o,i=newDate(1900,void 0,1);if(B(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=utcDate(newDate(i.y,0,1))).getUTCDay(),r=o>4||0===o?utcMonday.ceil(r):utcMonday(r),r=utcDay.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=localDate(newDate(i.y,0,1))).getDay(),r=o>4||0===o?monday.ceil(r):monday(r),r=day.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?utcDate(newDate(i.y,0,1)).getUTCDay():localDate(newDate(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,utcDate(i)):localDate(i)}}function B(e,t,n,r){for(var o,i,s=0,c=t.length,u=n.length;s<c;){if(r>=u)return-1;if(37===(o=t.charCodeAt(s++))){if(o=t.charAt(s++),!(i=C[o in pads?t.charAt(s++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=D(n,b),b.X=D(r,b),b.c=D(t,b),v.x=D(n,v),v.X=D(r,v),v.c=D(t,v),{format:function(e){var t=D(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=D(e+="",v);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}utcYear.every=function(e){return isFinite(e=Math.floor(e))&&e>0?newInterval(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null},utcYear.range;var locale,utcFormat,utcParse,pads={"-":"",_:" ",0:"0"},numberRe=/^\s*\d+/,percentRe=/^%/,requoteRe=/[\\^$*+?|[\]().{}]/g;function pad(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function requote(e){return e.replace(requoteRe,"\\$&")}function formatRe(e){return new RegExp("^(?:"+e.map(requote).join("|")+")","i")}function formatLookup(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function parseWeekdayNumberSunday(e,t,n){var r=numberRe.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function parseWeekdayNumberMonday(e,t,n){var r=numberRe.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function parseWeekNumberSunday(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function parseWeekNumberISO(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function parseWeekNumberMonday(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function parseFullYear(e,t,n){var r=numberRe.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function parseYear(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function parseZone(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function parseQuarter(e,t,n){var r=numberRe.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function parseMonthNumber(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function parseDayOfMonth(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function parseDayOfYear(e,t,n){var r=numberRe.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function parseHour24(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function parseMinutes(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function parseSeconds(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function parseMilliseconds(e,t,n){var r=numberRe.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function parseMicroseconds(e,t,n){var r=numberRe.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function parseLiteralPercent(e,t,n){var r=percentRe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function parseUnixTimestamp(e,t,n){var r=numberRe.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function parseUnixTimestampSeconds(e,t,n){var r=numberRe.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function formatDayOfMonth(e,t){return pad(e.getDate(),t,2)}function formatHour24(e,t){return pad(e.getHours(),t,2)}function formatHour12(e,t){return pad(e.getHours()%12||12,t,2)}function formatDayOfYear(e,t){return pad(1+day.count(year(e),e),t,3)}function formatMilliseconds(e,t){return pad(e.getMilliseconds(),t,3)}function formatMicroseconds(e,t){return formatMilliseconds(e,t)+"000"}function formatMonthNumber(e,t){return pad(e.getMonth()+1,t,2)}function formatMinutes(e,t){return pad(e.getMinutes(),t,2)}function formatSeconds(e,t){return pad(e.getSeconds(),t,2)}function formatWeekdayNumberMonday(e){var t=e.getDay();return 0===t?7:t}function formatWeekNumberSunday(e,t){return pad(sunday.count(year(e)-1,e),t,2)}function dISO(e){var t=e.getDay();return t>=4||0===t?thursday(e):thursday.ceil(e)}function formatWeekNumberISO(e,t){return e=dISO(e),pad(thursday.count(year(e),e)+(4===year(e).getDay()),t,2)}function formatWeekdayNumberSunday(e){return e.getDay()}function formatWeekNumberMonday(e,t){return pad(monday.count(year(e)-1,e),t,2)}function formatYear(e,t){return pad(e.getFullYear()%100,t,2)}function formatYearISO(e,t){return pad((e=dISO(e)).getFullYear()%100,t,2)}function formatFullYear(e,t){return pad(e.getFullYear()%1e4,t,4)}function formatFullYearISO(e,t){var n=e.getDay();return pad((e=n>=4||0===n?thursday(e):thursday.ceil(e)).getFullYear()%1e4,t,4)}function formatZone(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pad(t/60|0,"0",2)+pad(t%60,"0",2)}function formatUTCDayOfMonth(e,t){return pad(e.getUTCDate(),t,2)}function formatUTCHour24(e,t){return pad(e.getUTCHours(),t,2)}function formatUTCHour12(e,t){return pad(e.getUTCHours()%12||12,t,2)}function formatUTCDayOfYear(e,t){return pad(1+utcDay.count(utcYear(e),e),t,3)}function formatUTCMilliseconds(e,t){return pad(e.getUTCMilliseconds(),t,3)}function formatUTCMicroseconds(e,t){return formatUTCMilliseconds(e,t)+"000"}function formatUTCMonthNumber(e,t){return pad(e.getUTCMonth()+1,t,2)}function formatUTCMinutes(e,t){return pad(e.getUTCMinutes(),t,2)}function formatUTCSeconds(e,t){return pad(e.getUTCSeconds(),t,2)}function formatUTCWeekdayNumberMonday(e){var t=e.getUTCDay();return 0===t?7:t}function formatUTCWeekNumberSunday(e,t){return pad(utcSunday.count(utcYear(e)-1,e),t,2)}function UTCdISO(e){var t=e.getUTCDay();return t>=4||0===t?utcThursday(e):utcThursday.ceil(e)}function formatUTCWeekNumberISO(e,t){return e=UTCdISO(e),pad(utcThursday.count(utcYear(e),e)+(4===utcYear(e).getUTCDay()),t,2)}function formatUTCWeekdayNumberSunday(e){return e.getUTCDay()}function formatUTCWeekNumberMonday(e,t){return pad(utcMonday.count(utcYear(e)-1,e),t,2)}function formatUTCYear(e,t){return pad(e.getUTCFullYear()%100,t,2)}function formatUTCYearISO(e,t){return pad((e=UTCdISO(e)).getUTCFullYear()%100,t,2)}function formatUTCFullYear(e,t){return pad(e.getUTCFullYear()%1e4,t,4)}function formatUTCFullYearISO(e,t){var n=e.getUTCDay();return pad((e=n>=4||0===n?utcThursday(e):utcThursday.ceil(e)).getUTCFullYear()%1e4,t,4)}function formatUTCZone(){return"+0000"}function formatLiteralPercent(){return"%"}function formatUnixTimestamp(e){return+e}function formatUnixTimestampSeconds(e){return Math.floor(+e/1e3)}function defaultLocale(e){return(locale=formatLocale(e)).format,locale.parse,utcFormat=locale.utcFormat,utcParse=locale.utcParse,locale}defaultLocale({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var ECLGraph=function(e){function t(t,n,r){var o=e.call(this)||this;o.wu=t;for(var i=0,s=0,c=r;s<c.length;s++){var u=c[s];if(u.GraphName===n.Name&&!u.HasSubGraphId){i=Math.round(1e3*u.Seconds)/1e3;break}}return o.set(__assign({Time:i},n)),o}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Label",{get:function(){return this.get("Label")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Type",{get:function(){return this.get("Type")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Complete",{get:function(){return this.get("Complete")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WhenStarted",{get:function(){return this.get("WhenStarted")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WhenFinished",{get:function(){return this.get("WhenFinished")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Time",{get:function(){return this.get("Time")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Running",{get:function(){return this.get("Running")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RunningId",{get:function(){return this.get("RunningId")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Failed",{get:function(){return this.get("Failed")},enumerable:!1,configurable:!0}),t.prototype.fetchScopeGraph=function(e){return e?this.wu.fetchGraphDetails([e],["subgraph"]).then(function(e){return createGraph(e)}):this.wu.fetchGraphDetails([this.Name],["graph"]).then(function(e){return createGraph(e)})},t}(util.StateObject),GraphCache=function(e){function t(){return e.call(this,function(e){return util.Cache.hash([e.Name])})||this}return __extends(t,e),t}(util.Cache);function walkXmlJson$1(e,t,n){(n=n||[]).push(e),t(e.name,e.$,e.children(),n),e.children().forEach(function(e){walkXmlJson$1(e,t,n)}),n.pop()}function flattenAtt(e){var t={};return e.forEach(function(e){"att"===e.name&&(t[e.$.name]=e.$.value)}),t}var XGMMLGraph=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Graph),XGMMLSubgraph=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Subgraph),XGMMLVertex=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Vertex),XGMMLEdge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Edge);function createXGMMLGraph(e,t){var n={},r={},o={},i=new XGMMLGraph(function(e){return e._.id}),s=[i.root];return walkXmlJson$1(t,function(e,t,i,c){var u=s[s.length-1];switch(e){case"graph":break;case"node":if(i.length&&i[0].children().length&&"graph"===i[0].children()[0].name){var a=u.createSubgraph(flattenAtt(i));s.push(a),n[t.id]=a}var p=u.createVertex(flattenAtt(i));r[t.id]=p;break;case"edge":var l=u.createEdge(r[t.source],r[t.target],flattenAtt(i));o[t.id]=l}}),i}var ScopeGraph=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Graph),ScopeSubgraph=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Subgraph),ScopeVertex=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Vertex),ScopeEdge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Edge);function createGraph(e){for(var t,n={},r={},o={},i=0,s=e;i<s.length;i++){switch((d=s[i]).ScopeType){case"graph":t=new ScopeGraph(function(e){return e._.Id},d),n[d.ScopeName]=t.root;break;case"subgraph":t||(t=new ScopeGraph(function(e){return e._.Id},d),n[d.ScopeName]=t.root);for(var c=d.parentScope().split(":"),u=n[d.parentScope()];c.length&&!u;)u=n[c.join(":")],c.pop();if(u){var a=u;n[d.ScopeName]=a.createSubgraph(d)}else console.warn("Missing SG:Parent (".concat(d.Id,"): ").concat(d.parentScope()));break;case"activity":var p=n[d.parentScope()];p?o[d.ScopeName]=p.createVertex(d):console.warn("Missing A:Parent (".concat(d.Id,"): ").concat(d.parentScope()));break;case"edge":r[d.ScopeName]=d;break;case"function":(h=o[d.parentScope()])?h._.children().push(d):console.warn("Missing F:Parent (".concat(d.Id,"): ").concat(d.parentScope()))}}for(var l in r){var d,h;if(h=n[(d=r[l]).parentScope()]){var f=h;try{var g=t.vertex(d.attr("IdSource").RawValue),y=t.vertex(d.attr("IdTarget").RawValue);f.createEdge(g,y,d)}catch(e){console.warn("Invalid Edge: ".concat(l))}}else console.warn("Missing E:Parent (".concat(d.Id,"): ").concat(d.parentScope()))}return t}var Resource=function(e){function t(t,n){var r=e.call(this)||this;r.wu=t;var o=n.split("\\").join("/"),i=o.split("/"),s="res/"+r.wu.Wuid+"/",c="",u="";return 0===o.indexOf(s)&&(c=o.substr(s.length),u=i[i.length-1]),r.set({URL:n,DisplayName:u,DisplayPath:c}),r}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"URL",{get:function(){return this.get("URL")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DisplayName",{get:function(){return this.get("DisplayName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DisplayPath",{get:function(){return this.get("DisplayPath")},enumerable:!1,configurable:!0}),t}(util.StateObject),XSDNode=function(){function e(e){this.e=e}return e.prototype.fix=function(){delete this.e},e}(),XSDXMLNode=function(e){function t(t){var n=e.call(this,t)||this;return n.isSet=!1,n.attrs={},n._children=[],n}return __extends(t,e),t.prototype.append=function(e){this._children.push(e),this.type||(this.type="hpcc:childDataset")},t.prototype.fix=function(){var e;this.name=this.e.$.name,this.type=this.e.$.type;for(var t=this._children.length-1;t>=0;--t){var n=this._children[t];"Row"===n.name&&void 0===n.type&&((e=this._children).push.apply(e,n._children),this._children.splice(t,1))}var r=this.setOfType();r&&(this.type=r,this.isSet=!0,this._children=[])},t.prototype.children=function(){return this._children},t.prototype.isAll=function(e){return"All"===e.name&&void 0===e.type},t.prototype.setOfType=function(){var e=this.children();if(void 0===this.type&&2===e.length){if(this.isAll(e[0]))return e[1].type;if(this.isAll(e[1]))return e[0].type}},t.prototype.charWidth=function(){var e=-1;switch(this.type){case"xs:boolean":e=5;break;case"xs:integer":case"xs:nonNegativeInteger":case"xs:double":e=8;break;case"xs:string":e=32;break;default:for(var t=this.type.lastIndexOf("_"),n=t>0?t:this.type.length,r=n-1;r>=0&&-1!=="0123456789".indexOf(this.type.charAt(r));--r);r+1<n&&(e=parseInt(this.type.substring(r+1,n),10)),0===this.type.indexOf("data")&&(e*=2)}return e<this.name.length&&(e=this.name.length),e},t}(XSDNode),XSDSimpleType=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.append=function(e){switch(e.name){case"xs:restriction":this._restricition=e;break;case"xs:maxLength":this._maxLength=e}},t.prototype.fix=function(){this.name=this.e.$.name,this.type=this._restricition.$.base,this.maxLength=this._maxLength?+this._maxLength.$.value:void 0,delete this._restricition,delete this._maxLength,e.prototype.fix.call(this)},t}(XSDNode),XSDSchema=function(){function e(){this.simpleTypes={}}return e.prototype.fields=function(){return this.root.children()},e}(),XSDParser=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.schema=new XSDSchema,t.simpleTypes={},t.xsdStack=new util.Stack,t}return __extends(t,e),t.prototype.startXMLNode=function(t){switch(e.prototype.startXMLNode.call(this,t),t.name){case"xs:element":var n=new XSDXMLNode(t);this.schema.root?this.xsdStack.depth()&&this.xsdStack.top().append(n):this.schema.root=n,this.xsdStack.push(n);break;case"xs:simpleType":this.simpleType=new XSDSimpleType(t)}},t.prototype.endXMLNode=function(t){switch(t.name){case"xs:element":this.xsdStack.pop().fix();break;case"xs:simpleType":this.simpleType.fix(),this.simpleTypes[this.simpleType.name]=this.simpleType,delete this.simpleType;break;case"xs:appinfo":var n=this.xsdStack.top();for(var r in t.$)n.attrs[r]=t.$[r];break;default:this.simpleType&&this.simpleType.append(t)}e.prototype.endXMLNode.call(this,t)},t}(util.SAXStackParser);function parseXSD(e){var t=new XSDParser;return t.parse(e),t.schema}var XSDParser2=function(e){function t(t){var n=e.call(this)||this;return n.schema=new XSDSchema,n.simpleTypes={},n.xsdStack=new util.Stack,n._rootName=t,n}return __extends(t,e),t.prototype.startXMLNode=function(t){switch(e.prototype.startXMLNode.call(this,t),t.name){case"xsd:element":var n=new XSDXMLNode(t);this.schema.root||this._rootName!==t.$.name||(this.schema.root=n),this.xsdStack.depth()&&this.xsdStack.top().append(n),this.xsdStack.push(n);break;case"xsd:simpleType":this.simpleType=new XSDSimpleType(t)}},t.prototype.endXMLNode=function(t){"xsd:element"===t.name&&this.xsdStack.pop().fix();e.prototype.endXMLNode.call(this,t)},t}(XSDParser);function parseXSD2(e,t){var n=new XSDParser2(t);return n.parse(e),n.schema}var GlobalResultCache=function(e){function t(){return e.call(this,function(e){return"".concat(e.BaseUrl,"-").concat(e.Wuid,"-").concat(e.ResultName)})||this}return __extends(t,e),t}(util.Cache),_results=new GlobalResultCache,Result=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.connection=t instanceof WorkunitsService?t:new WorkunitsService(t),"boolean"==typeof o&&!0===o?i.set({NodeGroup:n,LogicalFileName:r}):isECLResult(r)&&Array.isArray(o)?i.set(__assign(__assign({},r),{Wuid:n,ResultName:r.Name,ResultViews:o})):void 0===o?"number"==typeof r?i.set({Wuid:n,ResultSequence:r}):"string"==typeof r?i.set({Wuid:n,ResultName:r}):console.warn("Unknown Result.attach (1)"):console.warn("Unknown Result.attach (2)"),i}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultName",{get:function(){return this.get("ResultName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultSequence",{get:function(){return this.get("ResultSequence")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LogicalFileName",{get:function(){return this.get("LogicalFileName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Sequence",{get:function(){return this.get("Sequence")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Value",{get:function(){return this.get("Value")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Link",{get:function(){return this.get("Link")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FileName",{get:function(){return this.get("FileName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsSupplied",{get:function(){return this.get("IsSupplied")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowFileContent",{get:function(){return this.get("ShowFileContent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Total",{get:function(){return this.get("Total")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ECLSchemas",{get:function(){return this.get("ECLSchemas")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"NodeGroup",{get:function(){return this.get("NodeGroup")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultViews",{get:function(){return this.get("ResultViews")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"XmlSchema",{get:function(){return this.get("XmlSchema")},enumerable:!1,configurable:!0}),t.attach=function(e,n,r,o){var i;return Array.isArray(o)?(i=_results.get({BaseUrl:e.baseUrl,Wuid:n,ResultName:r.Name},function(){return new t(e,n,r,o)})).set(r):void 0===o&&("number"==typeof r?i=_results.get({BaseUrl:e.baseUrl,Wuid:n,ResultName:"Sequence_"+r},function(){return new t(e,n,r)}):"string"==typeof r&&(i=_results.get({BaseUrl:e.baseUrl,Wuid:n,ResultName:r},function(){return new t(e,n,r)}))),i},t.attachLogicalFile=function(e,n,r){return _results.get({BaseUrl:e.baseUrl,Wuid:n,ResultName:r},function(){return new t(e,n,r,!0)})},t.prototype.isComplete=function(){return-1!==this.Total},t.prototype.fetchXMLSchema=function(e){var t=this;return void 0===e&&(e=!1),this._fetchXMLSchemaPromise&&!e||(this._fetchXMLSchemaPromise=this.WUResult().then(function(e){var n,r;return(null===(r=null===(n=e.Result)||void 0===n?void 0:n.XmlSchema)||void 0===r?void 0:r.xml)?(t.xsdSchema=parseXSD(e.Result.XmlSchema.xml),t.xsdSchema):null})),this._fetchXMLSchemaPromise},t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,this.fetchRows(0,1,!0)];case 1:return e.sent(),[2,this]}})})},t.prototype.fetchRows=function(e,t,n,r,o){var i=this;return void 0===e&&(e=0),void 0===t&&(t=-1),void 0===n&&(n=!1),void 0===r&&(r={}),this.WUResult(e,t,!n,r,o).then(function(e){var t=e.Result;return delete e.Result,i.set(__assign({},e)),util.exists("XmlSchema.xml",t)&&(i.xsdSchema=parseXSD(t.XmlSchema.xml)),util.exists("Row",t)?t.Row:i.ResultName&&util.exists(i.ResultName,t)?t[i.ResultName].Row:[]})},t.prototype.rootField=function(){return this.xsdSchema?this.xsdSchema.root:null},t.prototype.fields=function(){return this.xsdSchema?this.xsdSchema.root.children():[]},t.prototype.WUResult=function(e,t,n,r,o){void 0===e&&(e=0),void 0===t&&(t=1),void 0===n&&(n=!1),void 0===r&&(r={});var i={NamedValue:{itemcount:0}};for(var s in r)i.NamedValue[i.NamedValue.itemcount++]={Name:s,Value:r[s]};var c={FilterBy:i};return this.Wuid&&void 0!==this.ResultName?(c.Wuid=this.Wuid,c.ResultName=this.ResultName):this.Wuid&&void 0!==this.ResultSequence?(c.Wuid=this.Wuid,c.Sequence=this.ResultSequence):this.LogicalFileName&&this.NodeGroup?(c.LogicalName=this.LogicalFileName,c.Cluster=this.NodeGroup):this.LogicalFileName&&(c.LogicalName=this.LogicalFileName),c.Start=e,c.Count=t,c.SuppressXmlSchema=n,this.connection.WUResult(c,o).then(function(e){return e})},t}(util.StateObject),ResultCache=function(e){function t(){return e.call(this,function(e){return util.Cache.hash([e.Sequence,e.Name,e.Value,e.FileName])})||this}return __extends(t,e),t}(util.Cache),Attribute=function(e){function t(t,n){var r=e.call(this)||this;return r.scope=t,r.set(n),r}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RawValue",{get:function(){return this.get("RawValue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Formatted",{get:function(){return this.get("Formatted")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FormattedEnd",{get:function(){return this.get("FormattedEnd")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Measure",{get:function(){return this.get("Measure")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Creator",{get:function(){return this.get("Creator")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CreatorType",{get:function(){return this.get("CreatorType")},enumerable:!1,configurable:!0}),t}(util.StateObject),BaseScope=function(e){function t(t){var n=e.call(this)||this;return n._attributeMap={},n._children=[],n.update(t),n}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ScopeName",{get:function(){return this.get("ScopeName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Id",{get:function(){return this.get("Id")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ScopeType",{get:function(){return this.get("ScopeType")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Properties",{get:function(){return this.get("Properties",{Property:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Notes",{get:function(){return this.get("Notes",{Note:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SinkActivity",{get:function(){return this.get("SinkActivity")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CAttributes",{get:function(){var e=this,t=[],n={start:null,end:null};return this.Properties.Property.forEach(function(r){"ts"===r.Measure&&r.Name.indexOf("Started")>=0?n.start=r:e.ScopeName&&"ts"===r.Measure&&r.Name.indexOf("Finished")>=0?n.end=r:t.push(new Attribute(e,r))}),n.start&&n.end?(n.start.FormattedEnd=n.end.Formatted,t.push(new Attribute(this,n.start))):n.start?t.push(new Attribute(this,n.start)):n.end&&t.push(new Attribute(this,n.end)),t},enumerable:!1,configurable:!0}),t.prototype.update=function(e){var t=this;for(var n in this.set(e),this.CAttributes.forEach(function(e){t._attributeMap[e.Name]=e}),this.Properties.Property=[],this._attributeMap)this._attributeMap.hasOwnProperty(n)&&this.Properties.Property.push(this._attributeMap[n].properties)},t.prototype.parentScope=function(){var e=this.ScopeName.split(":");return e.pop(),e.join(":")},t.prototype.children=function(e){return arguments.length?(this._children=e,this):this._children},t.prototype.walk=function(e){if(e.start(this))return!0;for(var t=0,n=this.children();t<n.length;t++){if(n[t].walk(e))return!0}return e.end(this)},t.prototype.formattedAttrs=function(){var e={};for(var t in this._attributeMap)e[t]=this._attributeMap[t].Formatted||this._attributeMap[t].RawValue;return e},t.prototype.rawAttrs=function(){var e={};for(var t in this._attributeMap)e[t]=this._attributeMap[t].RawValue;return e},t.prototype.hasAttr=function(e){return void 0!==this._attributeMap[e]},t.prototype.attr=function(e){return this._attributeMap[e]||new Attribute(this,{Creator:"",CreatorType:"",Formatted:"",Measure:"",Name:"",RawValue:""})},t.prototype.attrMeasure=function(e){return this._attributeMap[e].Measure},t.prototype.calcTooltip=function(e){var t="",n=[];t=this.Id,n.push('<tr><td class="key">ID:</td><td class="value">'.concat(this.Id,"</td></tr>")),e&&n.push('<tr><td class="key">Parent ID:</td><td class="value">'.concat(e.Id,"</td></tr>")),n.push('<tr><td class="key">Scope:</td><td class="value">'.concat(this.ScopeName,"</td></tr>"));var r=this.formattedAttrs();for(var o in r)"Label"===o?t=r[o]:n.push('<tr><td class="key">'.concat(o,'</td><td class="value">').concat(r[o],"</td></tr>"));return'<div class="eclwatch_WUGraph_Tooltip" style="max-width:480px">\n <h4 align="center">'.concat(t,"</h4>\n <table>\n ").concat(n.join(""),"\n </table>\n </div>")},t}(util.StateObject),Scope=function(e){function t(t,n){var r=e.call(this,n)||this;return r.wu=t,r}return __extends(t,e),t}(BaseScope),SourceFile=function(e){function t(t,n,r){var o=e.call(this)||this;return o.connection=t instanceof WorkunitsService?t:new WorkunitsService(t),o.set(__assign({Wuid:n},r)),o}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FileCluster",{get:function(){return this.get("FileCluster")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsSuperFile",{get:function(){return this.get("IsSuperFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Subs",{get:function(){return this.get("Subs")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Count",{get:function(){return this.get("Count")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ECLSourceFiles",{get:function(){return this.get("ECLSourceFiles")},enumerable:!1,configurable:!0}),t}(util.StateObject),Timer=function(e){function t(t,n,r){var o=e.call(this)||this;o.connection=t instanceof WorkunitsService?t:new WorkunitsService(t);var i=util.espTime2Seconds(r.Value);return o.set(__assign({Wuid:n,Seconds:Math.round(1e3*i)/1e3,HasSubGraphId:void 0!==r.SubGraphId},r)),o}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Value",{get:function(){return this.get("Value")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Seconds",{get:function(){return this.get("Seconds")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"GraphName",{get:function(){return this.get("GraphName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SubGraphId",{get:function(){return this.get("SubGraphId")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HasSubGraphId",{get:function(){return this.get("HasSubGraphId")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.get("count")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Timestamp",{get:function(){return this.get("Timestamp")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"When",{get:function(){return this.get("When")},enumerable:!1,configurable:!0}),t}(util.StateObject),formatter=utcFormat("%Y-%m-%dT%H:%M:%S.%LZ"),parser=utcParse("%Y-%m-%dT%H:%M:%S.%LZ"),d3FormatNum=format(",");function formatNum(e){return e&&!isNaN(+e)?d3FormatNum(+e):e}function safeDelete(e,t,n){void 0!==e[t]&&void 0!==e[t][n]&&"__proto__"!==t&&"constructor"!==t&&"prototype"!==t&&delete e[t][n]}var DEFINITION_LIST="DefinitionList",definitionRegex=/([a-zA-Z]:)?(.*[\\\/])(.*)(\((\d+),(\d+)\))/,PropertyType=["Avg","Min","Max","Delta","StdDev"],RelatedProperty=["SkewMin","SkewMax","NodeMin","NodeMax"],metricKeyRegex=/[A-Z][a-z]*/g;function _splitMetric(e){for(var t=0,n=RelatedProperty;t<n.length;t++){var r=n[t];if(0===(a=e.indexOf(r)))return{measure:i="",ext:r,label:s=e.slice(a+r.length)}}var o=e.match(metricKeyRegex);if(null==o?void 0:o.length){for(var i=o.shift(),s=o.join(""),c=0,u=PropertyType;c<u.length;c++){var a,p=u[c];if(0===(a=s.indexOf(p)))return{measure:i,ext:p,label:s=s.slice(a+p.length)}}return{measure:i,ext:"",label:s}}return{measure:"",ext:"",label:e}}var splitLabelCache={};function splitMetric(e){var t=splitLabelCache[e];return t||(t=_splitMetric(e),splitLabelCache[e]=t),t}function formatValue(e,t){var n,r;return null!==(r=null===(n=e.__formattedProps)||void 0===n?void 0:n[t])&&void 0!==r?r:e[t]}function safeParseFloat(e){if(void 0!==e){var t=parseFloat(e);return isNaN(t)?void 0:t}}function formatValues(e,t,n){var r=splitMetric(t);if(!n[r.measure]){n[r.label]=!0;var o=safeParseFloat(e["".concat(r.measure,"Avg").concat(r.label)]),i=safeParseFloat(e["".concat(r.measure,"Min").concat(r.label)]),s=safeParseFloat(e["".concat(r.measure,"Max").concat(r.label)]),c=safeParseFloat(e["".concat(r.measure,"StdDev").concat(r.label)]),u=Math.max((o-i)/c,(s-o)/c);return{Key:"".concat(r.measure).concat(r.label),Value:formatValue(e,"".concat(r.measure).concat(r.label)),Avg:formatValue(e,"".concat(r.measure,"Avg").concat(r.label)),Min:formatValue(e,"".concat(r.measure,"Min").concat(r.label)),Max:formatValue(e,"".concat(r.measure,"Max").concat(r.label)),Delta:formatValue(e,"".concat(r.measure,"Delta").concat(r.label)),StdDev:formatValue(e,"".concat(r.measure,"StdDev").concat(r.label)),StdDevs:isNaN(u)?void 0:u,SkewMin:formatValue(e,"SkewMin".concat(r.label)),SkewMax:formatValue(e,"SkewMax".concat(r.label)),NodeMin:formatValue(e,"NodeMin".concat(r.label)),NodeMax:formatValue(e,"NodeMax".concat(r.label))}}return null}var _activity,logger$4=util.scopedLogger("workunit.ts"),WorkunitCache=function(e){function t(){return e.call(this,function(e){return"".concat(e.BaseUrl,"-").concat(e.Wuid)})||this}return __extends(t,e),t}(util.Cache),_workunits$1=new WorkunitCache,Workunit=function(e){function t(t,n){var r=e.call(this)||this;return r._debugMode=!1,r._resultCache=new ResultCache,r._graphCache=new GraphCache,r.connection=new WorkunitsService(t),r.topologyConnection=new TopologyService(t),r.clearState(n),r}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Owner",{get:function(){return this.get("Owner","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Cluster",{get:function(){return this.get("Cluster","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Jobname",{get:function(){return this.get("Jobname","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Description",{get:function(){return this.get("Description","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ActionEx",{get:function(){return this.get("ActionEx","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"StateID",{get:function(){return this.get("StateID",exports.WUStateID.Unknown)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"State",{get:function(){return this.get("State")||exports.WUStateID[this.StateID]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Protected",{get:function(){return this.get("Protected",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Exceptions",{get:function(){return this.get("Exceptions",{ECLException:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultViews",{get:function(){return this.get("ResultViews",{View:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultCount",{get:function(){return this.get("ResultCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Results",{get:function(){return this.get("Results",{ECLResult:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CResults",{get:function(){var e=this;return this.Results.ECLResult.map(function(t){return e._resultCache.get(t,function(){return Result.attach(e.connection,e.Wuid,t,e.ResultViews.View)})})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SequenceResults",{get:function(){var e={};return this.CResults.forEach(function(t){e[t.Sequence]=t}),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Timers",{get:function(){return this.get("Timers",{ECLTimer:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CTimers",{get:function(){var e=this;return this.Timers.ECLTimer.map(function(t){return new Timer(e.connection,e.Wuid,t)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"GraphCount",{get:function(){return this.get("GraphCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Graphs",{get:function(){return this.get("Graphs",{ECLGraph:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CGraphs",{get:function(){var e=this;return this.Graphs.ECLGraph.map(function(t){return e._graphCache.get(t,function(){return new ECLGraph(e,t,e.CTimers)})})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ThorLogList",{get:function(){return this.get("ThorLogList")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResourceURLCount",{get:function(){return this.get("ResourceURLCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResourceURLs",{get:function(){return this.get("ResourceURLs",{URL:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CResourceURLs",{get:function(){var e=this;return this.ResourceURLs.URL.map(function(t){return new Resource(e,t)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TotalClusterTime",{get:function(){return this.get("TotalClusterTime","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DateTimeScheduled",{get:function(){return this.get("DateTimeScheduled")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsPausing",{get:function(){return this.get("IsPausing")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ThorLCR",{get:function(){return this.get("ThorLCR")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ApplicationValues",{get:function(){return this.get("ApplicationValues",{ApplicationValue:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HasArchiveQuery",{get:function(){return this.get("HasArchiveQuery")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"StateEx",{get:function(){return this.get("StateEx")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PriorityClass",{get:function(){return this.get("PriorityClass")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PriorityLevel",{get:function(){return this.get("PriorityLevel")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Snapshot",{get:function(){return this.get("Snapshot")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultLimit",{get:function(){return this.get("ResultLimit")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"EventSchedule",{get:function(){return this.get("EventSchedule")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Query",{get:function(){return this.get("Query")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HelpersCount",{get:function(){return this.get("HelpersCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Helpers",{get:function(){return this.get("Helpers",{ECLHelpFile:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DebugValues",{get:function(){return this.get("DebugValues")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AllowedClusters",{get:function(){return this.get("AllowedClusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ErrorCount",{get:function(){return this.get("ErrorCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WarningCount",{get:function(){return this.get("WarningCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"InfoCount",{get:function(){return this.get("InfoCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AlertCount",{get:function(){return this.get("AlertCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceFileCount",{get:function(){return this.get("SourceFileCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceFiles",{get:function(){return this.get("SourceFiles",{ECLSourceFile:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CSourceFiles",{get:function(){var e=this;return this.SourceFiles.ECLSourceFile.map(function(t){return new SourceFile(e.connection,e.Wuid,t)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VariableCount",{get:function(){return this.get("VariableCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Variables",{get:function(){return this.get("Variables",{ECLResult:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TimerCount",{get:function(){return this.get("TimerCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HasDebugValue",{get:function(){return this.get("HasDebugValue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ApplicationValueCount",{get:function(){return this.get("ApplicationValueCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"XmlParams",{get:function(){return this.get("XmlParams")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AccessFlag",{get:function(){return this.get("AccessFlag")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ClusterFlag",{get:function(){return this.get("ClusterFlag")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultViewCount",{get:function(){return this.get("ResultViewCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DebugValueCount",{get:function(){return this.get("DebugValueCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WorkflowCount",{get:function(){return this.get("WorkflowCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Archived",{get:function(){return this.get("Archived")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RoxieCluster",{get:function(){return this.get("RoxieCluster")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DebugState",{get:function(){return this.get("DebugState",{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Queue",{get:function(){return this.get("Queue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Active",{get:function(){return this.get("Active")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Action",{get:function(){return this.get("Action")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Scope",{get:function(){return this.get("Scope")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AbortBy",{get:function(){return this.get("AbortBy")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AbortTime",{get:function(){return this.get("AbortTime")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Workflows",{get:function(){return this.get("Workflows")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TimingData",{get:function(){return this.get("TimingData")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HelpersDesc",{get:function(){return this.get("HelpersDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"GraphsDesc",{get:function(){return this.get("GraphsDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceFilesDesc",{get:function(){return this.get("SourceFilesDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultsDesc",{get:function(){return this.get("ResultsDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VariablesDesc",{get:function(){return this.get("VariablesDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TimersDesc",{get:function(){return this.get("TimersDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DebugValuesDesc",{get:function(){return this.get("DebugValuesDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ApplicationValuesDesc",{get:function(){return this.get("ApplicationValuesDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WorkflowsDesc",{get:function(){return this.get("WorkflowsDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ServiceNames",{get:function(){return this.get("ServiceNames")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CompileCost",{get:function(){return this.get("CompileCost")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ExecuteCost",{get:function(){return this.get("ExecuteCost")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FileAccessCost",{get:function(){return this.get("FileAccessCost")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"NoAccess",{get:function(){return this.get("NoAccess")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ECLWUProcessList",{get:function(){return this.get("ECLWUProcessList")},enumerable:!1,configurable:!0}),t.create=function(e){var n=new t(e);return n.connection.WUCreate().then(function(e){return _workunits$1.set(n),n.set(e.Workunit),n})},t.attach=function(e,n,r){var o=_workunits$1.get({BaseUrl:e.baseUrl,Wuid:n},function(){return new t(e,n)});return r&&o.set(r),o},t.existsLocal=function(e,t){return _workunits$1.has({BaseUrl:e,Wuid:t})},t.submit=function(e,n,r,o){return void 0===o&&(o=!1),t.create(e).then(function(e){return e.update({QueryText:r})}).then(function(e){return o?e.submit(n,exports.WUUpdate.Action.Compile):e.submit(n)})},t.compile=function(e,n,r){return t.submit(e,n,r,!0)},t.query=function(e,n){return new WorkunitsService(e).WUQuery(n).then(function(n){return n.Workunits.ECLWorkunit.map(function(n){return t.attach(e,n.Wuid,n)})})},t.prototype.clearState=function(e){this.clear({Wuid:e,StateID:exports.WUStateID.Unknown})},t.prototype.update=function(e){var t=this;return this.connection.WUUpdate(__assign(__assign({},e),{Wuid:this.Wuid,StateOrig:this.StateID,JobnameOrig:this.Jobname,DescriptionOrig:this.Description,ProtectedOrig:this.Protected,ClusterOrig:this.Cluster})).then(function(e){return t.set(e.Workunit),t})},t.prototype.submit=function(e,t,n){var r,o=this;return void 0===t&&(t=exports.WUUpdate.Action.Run),r=void 0!==e?Promise.resolve(e):this.topologyConnection.DefaultTpLogicalClusterQuery().then(function(e){return e.Name}),this._debugMode=!1,t===exports.WUUpdate.Action.Debug&&(t=exports.WUUpdate.Action.Run,this._debugMode=!0),r.then(function(e){return o.connection.WUUpdate({Wuid:o.Wuid,Action:t,ResultLimit:n,DebugValues:{DebugValue:[{Name:"Debug",Value:o._debugMode?"1":""}]}}).then(function(n){return o.set(n.Workunit),o._submitAction=t,o.connection.WUSubmit({Wuid:o.Wuid,Cluster:e})})}).then(function(){return o})},t.prototype.isComplete=function(){switch(this.StateID){case exports.WUStateID.Compiled:return"compile"===this.ActionEx||this._submitAction===exports.WUUpdate.Action.Compile;case exports.WUStateID.Completed:case exports.WUStateID.Failed:case exports.WUStateID.Aborted:case exports.WUStateID.NotFound:return!0}return!1},t.prototype.isFailed=function(){switch(this.StateID){case exports.WUStateID.Aborted:case exports.WUStateID.Failed:return!0}return!1},t.prototype.isDeleted=function(){return this.StateID===exports.WUStateID.NotFound},t.prototype.isDebugging=function(){switch(this.StateID){case exports.WUStateID.DebugPaused:case exports.WUStateID.DebugRunning:return!0}return this._debugMode},t.prototype.isRunning=function(){switch(this.StateID){case exports.WUStateID.Compiled:case exports.WUStateID.Running:case exports.WUStateID.Aborting:case exports.WUStateID.Blocked:case exports.WUStateID.DebugPaused:case exports.WUStateID.DebugRunning:return!0}return!1},t.prototype.setToFailed=function(){return this.WUAction(exports.WsWorkunits.ECLWUActions.SetToFailed)},t.prototype.pause=function(){return this.WUAction(exports.WsWorkunits.ECLWUActions.Pause)},t.prototype.pauseNow=function(){return this.WUAction(exports.WsWorkunits.ECLWUActions.PauseNow)},t.prototype.resume=function(){return this.WUAction(exports.WsWorkunits.ECLWUActions.Resume)},t.prototype.abort=function(){return this.WUAction(exports.WsWorkunits.ECLWUActions.Abort)},t.prototype.protect=function(){return this.WUAction(exports.WsWorkunits.ECLWUActions.Protect)},t.prototype.unprotect=function(){return this.WUAction(exports.WsWorkunits.ECLWUActions.Unprotect)},t.prototype.delete=function(){return this.WUAction(exports.WsWorkunits.ECLWUActions.Delete)},t.prototype.restore=function(){return this.WUAction(exports.WsWorkunits.ECLWUActions.Restore)},t.prototype.deschedule=function(){return this.WUAction(exports.WsWorkunits.ECLWUActions.Deschedule)},t.prototype.reschedule=function(){return this.WUAction(exports.WsWorkunits.ECLWUActions.Reschedule)},t.prototype.resubmit=function(){var e=this;return this.WUResubmit({CloneWorkunit:!1,ResetWorkflow:!1}).then(function(){return e.clearState(e.Wuid),e.refresh().then(function(){return e._monitor(),e})})},t.prototype.clone=function(){var e=this;return this.WUResubmit({CloneWorkunit:!0,ResetWorkflow:!1}).then(function(n){return t.attach(e.connection.opts(),n.WUs.WU[0].WUID).refresh()})},t.prototype.refreshState=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,this.WUQuery()];case 1:return e.sent(),this.StateID!==exports.WUStateID.Compiled||this.ActionEx||this._submitAction?[3,3]:[4,this.refreshInfo()];case 2:e.sent(),e.label=3;case 3:return[2,this]}})})},t.prototype.refreshInfo=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){switch(t.label){case 0:return[4,this.WUInfo(e)];case 1:return t.sent(),[2,this]}})})},t.prototype.refreshDebug=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,this.debugStatus()];case 1:return e.sent(),[2,this]}})})},t.prototype.refresh=function(){return __awaiter(this,arguments,void 0,function(e,t){return void 0===e&&(e=!1),__generator(this,function(n){switch(n.label){case 0:return e?[4,Promise.all([this.refreshInfo(t),this.refreshDebug()])]:[3,2];case 1:return n.sent(),[3,4];case 2:return[4,this.refreshState()];case 3:n.sent(),n.label=4;case 4:return[2,this]}})})},t.prototype.eclExceptions=function(){return this.Exceptions.ECLException},t.prototype.fetchArchive=function(){return this.connection.WUFileEx({Wuid:this.Wuid,Type:"ArchiveQuery"})},t.prototype.fetchECLExceptions=function(){var e=this;return this.WUInfo({IncludeExceptions:!0}).then(function(){return e.eclExceptions()})},t.prototype.fetchResults=function(){var e=this;return this.WUInfo({IncludeResults:!0}).then(function(){return e.CResults})},t.prototype.fetchGraphs=function(){var e=this;return this.WUInfo({IncludeGraphs:!0}).then(function(){return e.CGraphs})},t.prototype.fetchQuery=function(){var e=this;return this.WUInfo({IncludeECL:!0,TruncateEclTo64k:!1}).then(function(){return e.Query})},t.prototype.fetchHelpers=function(){var e=this;return this.WUInfo({IncludeHelpers:!0}).then(function(){var t;return(null===(t=e.Helpers)||void 0===t?void 0:t.ECLHelpFile)||[]})},t.prototype.fetchAllowedClusters=function(){var e=this;return this.WUInfo({IncludeAllowedClusters:!0}).then(function(){var t;return(null===(t=e.AllowedClusters)||void 0===t?void 0:t.AllowedCluster)||[]})},t.prototype.fetchTotalClusterTime=function(){var e=this;return this.WUInfo({IncludeTotalClusterTime:!0}).then(function(){return e.TotalClusterTime})},t.prototype.fetchServiceNames=function(){var e=this;return this.WUInfo({IncludeServiceNames:!0}).then(function(){var t;return null===(t=e.ServiceNames)||void 0===t?void 0:t.Item})},t.prototype.fetchDetailsMeta=function(e){return void 0===e&&(e={}),this.WUDetailsMeta(e)},t.prototype.fetchDetailsRaw=function(e){return void 0===e&&(e={}),this.WUDetails(e).then(function(e){return e.Scopes.Scope})},t.prototype.normalizeDetails=function(e,t){for(var n,r,o={id:{Measure:"label"},name:{Measure:"label"},type:{Measure:"label"}},i=[],s=function(t){var s={},c={};if(t&&t.Id&&t.Properties&&t.Properties.Property){var u=function(i){var u=t.Properties.Property[i];if("ns"===u.Measure&&(u.Measure="s"),"Kind"===u.Name){var a=parseInt(u.RawValue,10);u.Formatted=null!==(n=e.Activities.Activity.filter(function(e){return e.Kind===a})[0].Name)&&void 0!==n?n:u.RawValue}switch(o[u.Name]=__assign({},u),safeDelete(o,u.Name,"RawValue"),safeDelete(o,u.Name,"Formatted"),u.Measure){case"bool":s[u.Name]=!!+u.RawValue;break;case"sz":case"ns":case"cnt":case"node":case"skw":s[u.Name]=+u.RawValue;break;case"s":s[u.Name]=+u.RawValue/1e9;break;case"ts":s[u.Name]=new Date(+u.RawValue/1e3).toISOString();break;case"cost":s[u.Name]=+u.RawValue/1e6;break;default:s[u.Name]=u.RawValue}c[u.Name]=formatNum(null!==(r=u.Formatted)&&void 0!==r?r:s[u.Name])};for(var a in t.Properties.Property)u(a)}var p=__assign({id:t.Id,name:t.ScopeName,type:t.ScopeType,Kind:t.Kind,Label:t.Label,__formattedProps:c,__groupedProps:{},__groupedRawProps:{},__StdDevs:0,__StdDevsSource:""},s);if(p[DEFINITION_LIST])try{var l=JSON.parse(p[DEFINITION_LIST].split("\\").join("\\\\"));p[DEFINITION_LIST]=[],l.forEach(function(e,t){var n,r=e.match(definitionRegex);if(r){var o=(null!==(n=r[1])&&void 0!==n?n:"")+r[2]+r[3],i=parseInt(r[5]),s=parseInt(r[6]);p[DEFINITION_LIST].push({filePath:o,line:i,col:s})}})}catch(e){logger$4.error('Unexpected "DefinitionList": '.concat(p[DEFINITION_LIST]))}var d={};for(var a in p)if(0!==a.indexOf("__")){var h=formatValues(p,a,d);h&&(p.__groupedProps[h.Key]=h,!isNaN(h.StdDevs)&&p.__StdDevs<h.StdDevs&&(p.__StdDevs=h.StdDevs,p.__StdDevsSource=h.Key))}i.push(p)},c=0,u=t;c<u.length;c++){s(u[c])}return{meta:e,columns:o,data:i}},t.prototype.fetchDetailsNormalized=function(e){var t=this;return void 0===e&&(e={}),Promise.all([this.fetchDetailsMeta(),this.fetchDetailsRaw(e)]).then(function(e){return t.normalizeDetails(e[0],e[1])})},t.prototype.fetchInfo=function(e){return void 0===e&&(e={}),this.WUInfo(e)},t.prototype.fetchDetails=function(e){var t=this;return void 0===e&&(e={}),this.WUDetails(e).then(function(e){return e.Scopes.Scope.map(function(e){return new Scope(t,e)})})},t.prototype.fetchDetailsHierarchy=function(e){var t=this;return void 0===e&&(e={}),this.WUDetails(e).then(function(e){var n=[],r={};for(var o in e.Scopes.Scope.forEach(function(e){if(r[e.ScopeName])return r[e.ScopeName].update(e),null;var n=new Scope(t,e);return r[n.ScopeName]=n,n}),r)if(r.hasOwnProperty(o)){var i=r[o],s=i.parentScope();s&&r[s]?r[s].children().push(i):n.push(i)}return n})},t.prototype.fetchGraphDetails=function(e,t){return void 0===e&&(e=[]),this.fetchDetails({ScopeFilter:{MaxDepth:999999,Ids:e,ScopeTypes:t},NestedFilter:{Depth:999999,ScopeTypes:["graph","subgraph","activity","edge","function"]},PropertiesToReturn:{AllStatistics:!0,AllAttributes:!0,AllHints:!0,AllProperties:!0,AllScopes:!0},ScopeOptions:{IncludeId:!0,IncludeScope:!0,IncludeScopeType:!0},PropertyOptions:{IncludeName:!0,IncludeRawValue:!0,IncludeFormatted:!0,IncludeMeasure:!0,IncludeCreator:!1,IncludeCreatorType:!1}})},t.prototype.fetchScopeGraphs=function(e){return void 0===e&&(e=[]),this.fetchGraphDetails(e,["graph"]).then(function(e){return createGraph(e)})},t.prototype.fetchTimeElapsed=function(){return this.fetchDetails({ScopeFilter:{PropertyFilters:{PropertyFilter:[{Name:"TimeElapsed"}]}}}).then(function(e){var t={};e.forEach(function(e){t[e.ScopeName]=t[e.ScopeName]||{scope:e.ScopeName,start:null,elapsed:null,finish:null},e.CAttributes.forEach(function(n){"TimeElapsed"===n.Name?t[e.ScopeName].elapsed=+n.RawValue:"ts"===n.Measure&&n.Name.indexOf("Started")>=0&&(t[e.ScopeName].start=n.Formatted)})});var n=[];for(var r in t){var o=t[r];if(o.start&&o.elapsed){var i=parser(o.start);i.setMilliseconds(i.getMilliseconds()+o.elapsed/1e6),o.finish=formatter(i),n.push(o)}}return n.sort(function(e,t){return e.start<t.start?-1:e.start>t.start?1:0}),n})},t.prototype._monitor=function(){this.isComplete()?this._monitorTickCount=0:e.prototype._monitor.call(this)},t.prototype._monitorTimeoutDuration=function(){var t=e.prototype._monitorTimeoutDuration.call(this);return this._monitorTickCount<=1?1e3:this._monitorTickCount<=3?3e3:this._monitorTickCount<=5?5e3:this._monitorTickCount<=7?1e4:t},t.prototype.on=function(t,n,r){var o=this;if(this.isCallback(n))switch(t){case"completed":e.prototype.on.call(this,"propChanged","StateID",function(e){o.isComplete()&&n([e])});break;case"changed":e.prototype.on.call(this,t,n)}else if("changed"===t)e.prototype.on.call(this,t,n,r);return this._monitor(),this},t.prototype.watchUntilComplete=function(e){var t=this;return new Promise(function(n,r){var o=t.watch(function(r){e&&e(r),t.isComplete()&&(o.release(),n(t))})})},t.prototype.watchUntilRunning=function(e){var t=this;return new Promise(function(n,r){var o=t.watch(function(r){e&&e(r),(t.isComplete()||t.isRunning())&&(o.release(),n(t))})})},t.prototype.WUQuery=function(e){var t=this;return void 0===e&&(e={}),this.connection.WUQuery(__assign(__assign({},e),{Wuid:this.Wuid})).then(function(e){return t.set(e.Workunits.ECLWorkunit[0]),e}).catch(function(e){if(!e.Exception.some(function(e){return 20081===e.Code&&(t.clearState(t.Wuid),t.set("StateID",exports.WUStateID.NotFound),!0)}))throw logger$4.warning("Unexpected ESP exception: ".concat(e.message)),e;return{}})},t.prototype.WUCreate=function(){var e=this;return this.connection.WUCreate().then(function(t){return e.set(t.Workunit),_workunits$1.set(e),t})},t.prototype.WUInfo=function(e){var t=this;void 0===e&&(e={});var n=e.IncludeResults||e.IncludeResultsViewNames;return this.connection.WUInfo(__assign(__assign({},e),{Wuid:this.Wuid,IncludeResults:n,IncludeResultsViewNames:n,SuppressResultSchemas:!1})).then(function(e){return t.set(e.Workunit),n&&t.set({ResultViews:e.ResultViews}),e}).catch(function(e){if(!e.Exception.some(function(e){return 20080===e.Code&&(t.clearState(t.Wuid),t.set("StateID",exports.WUStateID.NotFound),!0)}))throw logger$4.warning("Unexpected ESP exception: ".concat(e.message)),e;return{}})},t.prototype.WUResubmit=function(e){return this.connection.WUResubmit(util.deepMixinT({},e,{Wuids:{Item:[this.Wuid]}}))},t.prototype.WUDetailsMeta=function(e){return this.connection.WUDetailsMeta(e)},t.prototype.WUDetails=function(e){return this.connection.WUDetails(util.deepMixinT({ScopeFilter:{MaxDepth:9999},ScopeOptions:{IncludeMatchedScopesInResults:!0,IncludeScope:!0,IncludeId:!1,IncludeScopeType:!1},PropertyOptions:{IncludeName:!0,IncludeRawValue:!1,IncludeFormatted:!0,IncludeMeasure:!0,IncludeCreator:!1,IncludeCreatorType:!1}},e,{WUID:this.Wuid})).then(function(e){return util.deepMixinT({Scopes:{Scope:[]}},e)})},t.prototype.WUAction=function(e){var t=this;return this.connection.WUAction({Wuids:{Item:[this.Wuid]},WUActionType:e}).then(function(e){return t.refresh().then(function(){return t._monitor(),e})})},t.prototype.publish=function(e){return this.connection.WUPublishWorkunit({Wuid:this.Wuid,Cluster:this.Cluster,JobName:e||this.Jobname,AllowForeignFiles:!0,Activate:exports.WsWorkunits.WUQueryActivationMode.ActivateQuery,Wait:5e3})},t.prototype.publishEx=function(e){var t=new WorkunitsServiceEx({baseUrl:""}),n=__assign({Wuid:this.Wuid,Cluster:this.Cluster,JobName:this.Jobname,AllowForeignFiles:!0,Activate:1,Wait:5e3},e);return t.WUPublishWorkunitEx(n)},t.prototype.WUCDebug=function(e,t){void 0===t&&(t={});var n="";for(var r in t)t.hasOwnProperty(r)&&(n+=" ".concat(r,"='").concat(t[r],"'"));return this.connection.WUCDebugEx({Wuid:this.Wuid,Command:"<debug:".concat(e," uid='").concat(this.Wuid,"'").concat(n,"/>")}).then(function(e){return e})},t.prototype.debug=function(e,t){return this.isDebugging()?this.WUCDebug(e,t).then(function(t){var n=t.children(e);return n.length?n[0]:new util.XMLNode(e)}).catch(function(t){return logger$4.error(t),Promise.resolve(new util.XMLNode(e))}):Promise.resolve(new util.XMLNode(e))},t.prototype.debugStatus=function(){var e=this;return this.isDebugging()?this.debug("status").then(function(t){var n=__assign(__assign({},e.DebugState),t.$);return e.set({DebugState:n}),t}):Promise.resolve({DebugState:{state:"unknown"}})},t.prototype.debugContinue=function(e){return void 0===e&&(e=""),this.debug("continue",{mode:e})},t.prototype.debugStep=function(e){return this.debug("step",{mode:e})},t.prototype.debugPause=function(){return this.debug("interrupt")},t.prototype.debugQuit=function(){return this.debug("quit")},t.prototype.debugDeleteAllBreakpoints=function(){return this.debug("delete",{idx:0})},t.prototype.debugBreakpointResponseParser=function(e){return e.children().map(function(e){if("break"===e.name)return e.$})},t.prototype.debugBreakpointAdd=function(e,t,n){var r=this;return this.debug("breakpoint",{id:e,mode:t,action:n}).then(function(e){return r.debugBreakpointResponseParser(e)})},t.prototype.debugBreakpointList=function(){var e=this;return this.debug("list").then(function(t){return e.debugBreakpointResponseParser(t)})},t.prototype.debugGraph=function(){var e=this;return this._debugAllGraph&&this.DebugState._prevGraphSequenceNum===this.DebugState.graphSequenceNum?Promise.resolve(this._debugAllGraph):this.debug("graph",{name:"all"}).then(function(t){return e.DebugState._prevGraphSequenceNum=e.DebugState.graphSequenceNum,e._debugAllGraph=createXGMMLGraph(e.Wuid,t),e._debugAllGraph})},t.prototype.debugBreakpointValid=function(e){return this.debugGraph().then(function(t){return breakpointLocations(t,e)})},t.prototype.debugPrint=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=10),this.debug("print",{edgeID:e,startRow:t,numRows:n}).then(function(e){return e.children().map(function(e){var t={};return e.children().forEach(function(e){t[e.name]=e.content}),t})})},t}(util.StateObject),ATTR_DEFINITION="definition";function hasECLDefinition(e){return void 0!==e._[ATTR_DEFINITION]}function getECLDefinition(e){var t=/([a-z]:\\(?:[-\w\.\d]+\\)*(?:[-\w\.\d]+)?|(?:\/[\w\.\-]+)+)\((\d*),(\d*)\)/.exec(e._[ATTR_DEFINITION]);if(t){var n=t[1],r=t[2],o=t[3];return n.replace(/\/\.\//g,"/"),{id:e._.id,file:n,line:+r,column:+o}}throw new Error("Bad definition: ".concat(e._[ATTR_DEFINITION]))}function breakpointLocations(e,t){for(var n=[],r=0,o=e.vertices;r<o.length;r++){var i=o[r];if(hasECLDefinition(i)){var s=getECLDefinition(i);(s&&!t||t===s.file)&&n.push(s)}}return n.sort(function(e,t){return e.line-t.line})}var Activity=function(e){function t(t){var n=e.call(this)||this;return n.lazyRefresh=util.debounce(function(){return __awaiter(n,void 0,void 0,function(){var e;return __generator(this,function(t){switch(t.label){case 0:return[4,this.connection.Activity({})];case 1:return e=t.sent(),this.set(e),[2,this]}})})}),n.connection=t instanceof SMCService?t:new SMCService(t),n.clear({}),n}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Exceptions",{get:function(){return this.get("Exceptions")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Build",{get:function(){return this.get("Build")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ThorClusterList",{get:function(){return this.get("ThorClusterList")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RoxieClusterList",{get:function(){return this.get("RoxieClusterList")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HThorClusterList",{get:function(){return this.get("HThorClusterList")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DFUJobs",{get:function(){return this.get("DFUJobs")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Running",{get:function(){return this.get("Running",{ActiveWorkunit:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BannerContent",{get:function(){return this.get("BannerContent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BannerColor",{get:function(){return this.get("BannerColor")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BannerSize",{get:function(){return this.get("BannerSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BannerScroll",{get:function(){return this.get("BannerScroll")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ChatURL",{get:function(){return this.get("ChatURL")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowBanner",{get:function(){return this.get("ShowBanner")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowChatURL",{get:function(){return this.get("ShowChatURL")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SortBy",{get:function(){return this.get("SortBy")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Descending",{get:function(){return this.get("Descending")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SuperUser",{get:function(){return this.get("SuperUser")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AccessRight",{get:function(){return this.get("AccessRight")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ServerJobQueues",{get:function(){return this.get("ServerJobQueues")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ActivityTime",{get:function(){return this.get("ActivityTime")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DaliDetached",{get:function(){return this.get("DaliDetached")},enumerable:!1,configurable:!0}),t.attach=function(e,n){return _activity||(_activity=new t(e)),n&&_activity.set(n),_activity},t.prototype.runningWorkunits=function(e){var t=this;return void 0===e&&(e=""),this.Running.ActiveWorkunit.filter(function(t){return""===e||t.ClusterName===e}).map(function(e){return Workunit.attach(t.connection.connectionOptions(),e.Wuid,e)})},t.prototype.setBanner=function(e){var t=this;return this.connection.SetBanner(__assign({},e)).then(function(e){return t.set(e),t})},t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.lazyRefresh()]})})},t}(util.StateObject),logger$3=util.scopedLogger("logicalFile.ts"),LogicalFileCache=function(e){function t(){return e.call(this,function(e){return"".concat(e.BaseUrl,"-").concat(e.Cluster,"-").concat(e.Name)})||this}return __extends(t,e),t}(util.Cache),_store$1=new LogicalFileCache,LogicalFile=function(e){function t(t,n,r){var o=e.call(this)||this;return o.connection=t instanceof DFUService?t:new DFUService(t),o.clear({Cluster:n,Name:r}),o}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Cluster",{get:function(){return this.get("Cluster")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Filename",{get:function(){return this.get("Filename")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Prefix",{get:function(){return this.get("Prefix")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"NodeGroup",{get:function(){return this.get("NodeGroup")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"NumParts",{get:function(){return this.get("NumParts")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Description",{get:function(){return this.get("Description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Dir",{get:function(){return this.get("Dir")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PathMask",{get:function(){return this.get("PathMask")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Filesize",{get:function(){return this.get("Filesize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FileSizeInt64",{get:function(){return this.get("FileSizeInt64")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RecordSize",{get:function(){return this.get("RecordSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RecordCount",{get:function(){return this.get("RecordCount")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RecordSizeInt64",{get:function(){return this.get("RecordSizeInt64")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RecordCountInt64",{get:function(){return this.get("RecordCountInt64")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Owner",{get:function(){return this.get("Owner")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"JobName",{get:function(){return this.get("JobName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Persistent",{get:function(){return this.get("Persistent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Format",{get:function(){return this.get("Format")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MaxRecordSize",{get:function(){return this.get("MaxRecordSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CsvSeparate",{get:function(){return this.get("CsvSeparate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CsvQuote",{get:function(){return this.get("CsvQuote")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CsvTerminate",{get:function(){return this.get("CsvTerminate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CsvEscape",{get:function(){return this.get("CsvEscape")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Modified",{get:function(){return this.get("Modified")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Ecl",{get:function(){return this.get("Ecl")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Stat",{get:function(){return this.get("Stat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DFUFilePartsOnClusters",{get:function(){return this.get("DFUFilePartsOnClusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSuperfile",{get:function(){return this.get("isSuperfile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowFileContent",{get:function(){return this.get("ShowFileContent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"subfiles",{get:function(){return this.get("subfiles")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Superfiles",{get:function(){return this.get("Superfiles")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ProtectList",{get:function(){return this.get("ProtectList")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FromRoxieCluster",{get:function(){return this.get("FromRoxieCluster")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Graphs",{get:function(){return this.get("Graphs")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"UserPermission",{get:function(){return this.get("UserPermission")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ContentType",{get:function(){return this.get("ContentType")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CompressedFileSize",{get:function(){return this.get("CompressedFileSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PercentCompressed",{get:function(){return this.get("PercentCompressed")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsCompressed",{get:function(){return this.get("IsCompressed")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BrowseData",{get:function(){return this.get("BrowseData")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"jsonInfo",{get:function(){return this.get("jsonInfo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"binInfo",{get:function(){return this.get("binInfo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PackageID",{get:function(){return this.get("PackageID")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Partition",{get:function(){return this.get("Partition")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Blooms",{get:function(){return this.get("Blooms")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ExpireDays",{get:function(){return this.get("ExpireDays")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"KeyType",{get:function(){return this.get("KeyType")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsRestricted",{get:function(){return this.get("IsRestricted")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AtRestCost",{get:function(){return this.get("AtRestCost")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AccessCost",{get:function(){return this.get("AccessCost")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"StateID",{get:function(){return this.get("StateID")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ExpirationDate",{get:function(){return this.get("ExpirationDate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ExtendedIndexInfo",{get:function(){return this.get("ExtendedIndexInfo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),t.attach=function(e,n,r,o){var i=_store$1.get({BaseUrl:e.baseUrl,Cluster:n,Name:r},function(){return new t(e,n,r)});return o&&i.set(o),i},t.prototype.filePartsOnCluster=function(){var e;return __spreadArray([],(null===(e=this.DFUFilePartsOnClusters)||void 0===e?void 0:e.DFUFilePartsOnCluster)||[],!0)},t.prototype.fileParts=function(){for(var e,t,n=[],r=0,o=(null===(e=this.DFUFilePartsOnClusters)||void 0===e?void 0:e.DFUFilePartsOnCluster)||[];r<o.length;r++)for(var i=o[r],s=0,c=(null===(t=null==i?void 0:i.DFUFileParts)||void 0===t?void 0:t.DFUPart)||[];s<c.length;s++){var u=c[s],a=__assign(__assign({},i),u);delete a.DFUFileParts,n.push(a)}return n},t.prototype.update=function(e){var t=this;return this.connection.DFUInfo(__assign(__assign({},e),{Cluster:this.Cluster,Name:this.Name})).then(function(e){return t.set(__assign({Cluster:t.Cluster},e.FileDetail)),e})},t.prototype.fetchInfo=function(){var e=this;return this.connection.DFUInfo({Cluster:this.Cluster,Name:this.Name}).then(function(t){var n,r;return e.set(__assign(__assign({Cluster:e.Cluster},t.FileDetail),{ProtectList:null!==(r=null===(n=null==t?void 0:t.FileDetail)||void 0===n?void 0:n.ProtectList)&&void 0!==r?r:{DFUFileProtect:[]}})),t.FileDetail}).catch(function(t){if(!t.Exception.some(function(t){return 20038===t.Code&&(e.set("Name",e.Name+" (Deleted)"),e.set("StateID",999),!0)}))throw logger$3.warning("Unexpected ESP exception: ".concat(t.message)),t;return{}})},t.prototype.fetchDefFile=function(e){return this.connection.DFUFile({Name:this.Name,Format:e})},t.prototype.fetchAllLogicalFiles=function(){return this.connection.recursiveFetchLogicalFiles([this])},t.prototype.fetchListHistory=function(){return this.connection.ListHistory({Name:this.Name}).then(function(e){var t;return(null===(t=null==e?void 0:e.History)||void 0===t?void 0:t.Origin)||[]})},t.prototype.eraseHistory=function(){return this.connection.EraseHistory({Name:this.Name}).then(function(e){var t;return(null===(t=null==e?void 0:e.History)||void 0===t?void 0:t.Origin)||[]})},t}(util.StateObject),MachineCache=function(e){function t(){return e.call(this,function(e){return e.Address})||this}return __extends(t,e),t}(util.Cache),_machines=new MachineCache,Machine=function(e){function t(t){var n=e.call(this)||this;return n.connection=t instanceof MachineService?t:new MachineService(t),n}return __extends(t,e),Object.defineProperty(t.prototype,"Address",{get:function(){return this.get("Address")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ConfigAddress",{get:function(){return this.get("ConfigAddress")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ProcessType",{get:function(){return this.get("ProcessType")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DisplayType",{get:function(){return this.get("DisplayType")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Description",{get:function(){return this.get("Description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AgentVersion",{get:function(){return this.get("AgentVersion")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Contact",{get:function(){return this.get("Contact")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Location",{get:function(){return this.get("Location")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"UpTime",{get:function(){return this.get("UpTime")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ComponentName",{get:function(){return this.get("ComponentName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ComponentPath",{get:function(){return this.get("ComponentPath")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RoxieState",{get:function(){return this.get("RoxieState")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RoxieStateDetails",{get:function(){return this.get("RoxieStateDetails")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"OS",{get:function(){return this.get("OS")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ProcessNumber",{get:function(){return this.get("ProcessNumber")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Channels",{get:function(){return this.get("Channels")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Processors",{get:function(){return this.get("Processors")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Storage",{get:function(){return this.get("Storage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Running",{get:function(){return this.get("Running")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PhysicalMemory",{get:function(){return this.get("PhysicalMemory")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VirtualMemory",{get:function(){return this.get("VirtualMemory")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ComponentInfo",{get:function(){return this.get("ComponentInfo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Exception",{get:function(){return this.get("Exception")},enumerable:!1,configurable:!0}),t.attach=function(e,n,r){var o=_machines.get({Address:n},function(){return new t(e)});return r&&o.set(r),o},t}(util.StateObject),TargetClusterCache=function(e){function t(){return e.call(this,function(e){return"".concat(e.BaseUrl,"-").concat(e.Name)})||this}return __extends(t,e),t}(util.Cache),_targetCluster=new TargetClusterCache,TargetCluster=function(e){function t(t,n){var r=e.call(this)||this;return t instanceof TopologyService?(r.connection=t,r.machineConnection=new MachineService(t.connectionOptions())):(r.connection=new TopologyService(t),r.machineConnection=new MachineService(t)),r.clear({Name:n}),r}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Prefix",{get:function(){return this.get("Prefix")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Type",{get:function(){return this.get("Type")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsDefault",{get:function(){return this.get("IsDefault")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TpClusters",{get:function(){return this.get("TpClusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TpEclCCServers",{get:function(){return this.get("TpEclCCServers")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TpEclServers",{get:function(){return this.get("TpEclServers")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TpEclAgents",{get:function(){return this.get("TpEclAgents")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TpEclSchedulers",{get:function(){return this.get("TpEclSchedulers")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MachineInfoEx",{get:function(){return this.get("MachineInfoEx",[])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMachineInfoEx",{get:function(){var e=this;return this.MachineInfoEx.map(function(t){return Machine.attach(e.machineConnection,t.Address,t)})},enumerable:!1,configurable:!0}),t.attach=function(e,n,r){var o=_targetCluster.get({BaseUrl:e.baseUrl,Name:n},function(){return new t(e,n)});return r&&o.set(r),o},t.prototype.fetchMachines=function(e){var t=this;return void 0===e&&(e={}),this.machineConnection.GetTargetClusterInfo(__assign({TargetClusters:{Item:["".concat(this.Type,":").concat(this.Name)]}},e)).then(function(e){for(var n=[],r=0,o=e.TargetClusterInfoList.TargetClusterInfo;r<o.length;r++)for(var i=0,s=o[r].Processes.MachineInfoEx;i<s.length;i++){var c=s[i];n.push(c)}return t.set("MachineInfoEx",n),t.CMachineInfoEx})},t.prototype.machineStats=function(){for(var e=0,t=0,n=0,r=0,o=this.CMachineInfoEx;r<o.length;r++)for(var i=0,s=o[r].Storage.StorageInfo;i<s.length;i++){var c=s[i];t+=c.Available,n+=c.Total;var u=1-c.Available/c.Total;u>e&&(e=u)}return{maxDisk:e,meanDisk:1-(n?t/n:1)}},t.prototype.fetchUsage=function(){return this.machineConnection.GetTargetClusterUsageEx([this.Name])},t}(util.StateObject);function targetClusters(e){return(e instanceof TopologyService?e:new TopologyService(e)).TpListTargetClusters({}).then(function(t){return t.TargetClusters.TpClusterNameType.map(function(t){return TargetCluster.attach(e,t.Name,t)})})}var _defaultTargetCluster={};function defaultTargetCluster(e){if(!_defaultTargetCluster[e.baseUrl]){var t=void 0;t=e instanceof TopologyService?e:new TopologyService(e),_defaultTargetCluster[e.baseUrl]=t.TpListTargetClusters({}).then(function(t){var n,r,o;t.TargetClusters.TpClusterNameType.forEach(function(e){n||(n=e),r||!0!==e.IsDefault||(r=e),o||"hthor"!==e.Type||(o=e)});var i=r||o||n;return TargetCluster.attach(e,i.Name,i)})}return _defaultTargetCluster[e.baseUrl]}var GRAPH_TYPE,GRAPH_TYPE_STRING,TopologyCache=function(e){function t(){return e.call(this,function(e){return e.BaseUrl})||this}return __extends(t,e),t}(util.Cache),_topology=new TopologyCache,Topology=function(e){function t(t){var n=e.call(this)||this;return n.connection=t instanceof TopologyService?t:new TopologyService(t),n}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TargetClusters",{get:function(){return this.get("TargetClusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CTargetClusters",{get:function(){var e=this;return this.TargetClusters.map(function(t){return TargetCluster.attach(e.connection,t.Name,t)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LogicalClusters",{get:function(){return this.get("LogicalClusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Services",{get:function(){return this.get("Services")},enumerable:!1,configurable:!0}),t.attach=function(e,n){var r=_topology.get({BaseUrl:e.baseUrl},function(){return new t(e)});return n&&r.set(n),r},t.prototype.GetESPServiceBaseURL=function(e){var t=this;return void 0===e&&(e=""),this.connection.TpServiceQuery({}).then(function(n){var r=t.connection.protocol(),o=t.connection.ip(),i="https:"===r?"18002":"8002";if(util.exists("ServiceList.TpEspServers.TpEspServer",n))for(var s=0,c=n.ServiceList.TpEspServers.TpEspServer;s<c.length;s++){var u=c[s];if(util.exists("TpBindings.TpBinding",u))for(var a=0,p=u.TpBindings.TpBinding;a<p.length;a++){var l=p[a];l.Service===e&&l.Protocol+":"===r&&(i=l.Port)}}return"".concat(r,"//").concat(o,":").concat(i,"/")})},t.prototype.fetchTargetClusters=function(){var e=this;return this.connection.TpTargetClusterQuery({Type:"ROOT"}).then(function(t){var n,r;return e.set({TargetClusters:null!==(r=null===(n=t.TpTargetClusters)||void 0===n?void 0:n.TpTargetCluster)&&void 0!==r?r:[]}),e.CTargetClusters})},t.prototype.fetchLogicalClusters=function(e){var t=this;return void 0===e&&(e={}),this.connection.TpLogicalClusterQuery(e).then(function(e){return t.set({LogicalClusters:e.TpLogicalClusters.TpLogicalCluster}),t.LogicalClusters})},t.prototype.fetchServices=function(e){var t=this;return void 0===e&&(e={}),this.connection.TpServiceQuery(e).then(function(e){return t.set({Services:e.ServiceList}),t.Services})},t.prototype.refresh=function(e){var t=this;return void 0===e&&(e=!1),this._prevRefresh&&!e||(this._prevRefresh=Promise.all([this.fetchTargetClusters(),this.fetchLogicalClusters(),this.fetchServices()]).then(function(){return t})),this._prevRefresh},t.prototype.on=function(t,n,r){if(this.isCallback(n)){if("changed"===t)e.prototype.on.call(this,t,n)}else if("changed"===t)e.prototype.on.call(this,t,n,r);return this._monitor(),this},t}(util.StateObject);function safeAssign(e,t,n){"__proto__"!==t&&"constructor"!==t&&"prototype"!==t&&(e[t]=n)}function xmlEncode(e){return(e=""+e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"&#10;").replace(/\r/g,"&#13;")}function espTime2Seconds(e){if(!e)return 0;if(!isNaN(+e))return parseFloat(e);var t=/(?:(?:(\d+).days.)?(?:(\d+)h)?(?:(\d+)m)?(?:(\d+\.\d+|\d+)s))|(?:(\d+\.\d+|\d+)ms|(\d+\.\d+|\d+)us|(\d+\.\d+|\d+)ns)/.exec(e);return t?24*(+t[1]||0)*60*60+60*(+t[2]||0)*60+60*(+t[3]||0)+(+t[4]||0)+(+t[5]||0)/1e3+(+t[6]||0)/1e6+(+t[7]||0)/1e9:0}function unitTest(e,t){var n=e.indexOf(t);return-1!==n?parseFloat(e.substring(0,n)):-1}function espSize2Bytes(e){if(!e)return 0;if(!isNaN(+e))return parseFloat(e);var t=unitTest(e,"Kb");return t>=0?1024*t:(t=unitTest(e,"Mb"))>=0?t*Math.pow(1024,2):(t=unitTest(e,"Gb"))>=0?t*Math.pow(1024,3):(t=unitTest(e,"Tb"))>=0?t*Math.pow(1024,4):(t=unitTest(e,"Pb"))>=0?t*Math.pow(1024,5):(t=unitTest(e,"Eb"))>=0?t*Math.pow(1024,6):(t=unitTest(e,"Zb"))>=0?t*Math.pow(1024,7):(t=unitTest(e,"b"))>=0?t:0}function espSkew2Number(e){return e?parseFloat(e):0}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.GRAPH=1]="GRAPH",e[e.SUBGRAPH=2]="SUBGRAPH",e[e.VERTEX=3]="VERTEX",e[e.EDGE=4]="EDGE",e[e.LAST=5]="LAST"}(GRAPH_TYPE||(GRAPH_TYPE={})),function(e){e.UNKNOWN="Unknown",e.GRAPH="Graph",e.SUBGRAPH="Cluster",e.VERTEX="Vertex",e.EDGE="Edge",e.LAST="Last"}(GRAPH_TYPE_STRING||(GRAPH_TYPE_STRING={}));var LocalisedXGMMLWriter=function(){function e(e){this.graph=e,this.m_xgmml="",this.m_visibleSubgraphs={},this.m_visibleVertices={},this.m_semiVisibleVertices={},this.m_visibleEdges={}}return e.prototype.calcVisibility=function(e,t,n,r){var o=this;this.noSpills=r,e.forEach(function(e){o.graph.isVertex(e)?(o.calcInVertexVisibility(e,n),o.calcOutVertexVisibility(e,n)):o.graph.isEdge(e)?(o.calcInVertexVisibility(e.getSource(),n-1),o.calcOutVertexVisibility(e.getTarget(),n-1)):o.graph.isSubgraph(e)&&(o.m_visibleSubgraphs[e.__hpcc_id]=e,o.calcSubgraphVisibility(e,t-1))}),this.calcVisibility2()},e.prototype.calcInVertexVisibility=function(e,t){var n=this;this.noSpills&&e.isSpill()&&t++,this.m_visibleVertices[e.__hpcc_id]=e,t>0&&e.getInEdges().forEach(function(e){n.calcInVertexVisibility(e.getSource(),t-1)})},e.prototype.calcOutVertexVisibility=function(e,t){var n=this;this.noSpills&&e.isSpill()&&t++,this.m_visibleVertices[e.__hpcc_id]=e,t>0&&e.getOutEdges().forEach(function(e){n.calcOutVertexVisibility(e.getTarget(),t-1)})},e.prototype.calcSubgraphVisibility=function(e,t){var n=this;if(!(t<0)){t>0&&e.__hpcc_subgraphs.forEach(function(e,r){n.calcSubgraphVisibility(e,t-1)}),e.__hpcc_subgraphs.forEach(function(e,t){n.m_visibleSubgraphs[e.__hpcc_id]=e}),e.__hpcc_vertices.forEach(function(e,t){n.m_visibleVertices[e.__hpcc_id]=e});var r={};this.graph.edges.forEach(function(t,o){t.getSource().__hpcc_parent!==t.getTarget().__hpcc_parent&&e===n.getCommonAncestor(t)&&(r[t.getSource().__hpcc_parent.__hpcc_id+"::"+t.getTarget().__hpcc_parent.__hpcc_id]||(r[t.getSource().__hpcc_parent.__hpcc_id+"::"+t.getTarget().__hpcc_parent.__hpcc_id]=!0,n.m_visibleEdges[t.__hpcc_id]=t))})}},e.prototype.buildVertexString=function(e,t){var n="",r="",o=e.getProperties();for(var i in o)t&&i.indexOf("_kind")>=0?r+='<att name="_kind" value="point"/>':"id"===i||"label"===i?n+=" "+i+'="'+xmlEncode(o[i])+'"':r+='<att name="'+i+'" value="'+xmlEncode(o[i])+'"/>';return"<node"+n+">"+r+"</node>"},e.prototype.buildEdgeString=function(e){var t="",n="",r=e.getProperties();for(var o in r)"id"===o.toLowerCase()||"label"===o.toLowerCase()||"source"===o.toLowerCase()||"target"===o.toLowerCase()?t+=" "+o+'="'+xmlEncode(r[o])+'"':n+='<att name="'+o+'" value="'+xmlEncode(r[o])+'"/>';return"<edge"+t+">"+n+"</edge>"},e.prototype.getAncestors=function(e,t){for(var n=e.__hpcc_parent;n;)t.push(n),n=n.__hpcc_parent},e.prototype.getCommonAncestorV=function(e,t){var n=[],r=[];this.getAncestors(e,n),this.getAncestors(t,r);for(var o=n.length-1,i=r.length-1,s=null;o>=0&&i>=0&&n[o]===r[i];)s=n[o],--o,--i;return s},e.prototype.getCommonAncestor=function(e){return this.getCommonAncestorV(e.getSource(),e.getTarget())},e.prototype.calcAncestorVisibility=function(e){var t=this,n=[];this.getAncestors(e,n),n.forEach(function(e,n){t.m_visibleSubgraphs[e.__hpcc_id]=e})},e.prototype.calcVisibility2=function(){var e=this;for(var t in this.m_visibleVertices){var n=this.m_visibleVertices[t];n.getInEdges().forEach(function(t,n){e.m_visibleEdges[t.__hpcc_id]=t}),n.getOutEdges().forEach(function(t,n){e.m_visibleEdges[t.__hpcc_id]=t}),this.calcAncestorVisibility(n)}this.calcSemiVisibleVertices()},e.prototype.addSemiVisibleEdge=function(e){e&&!this.m_visibleEdges[e.__hpcc_id]&&(this.m_visibleEdges[e.__hpcc_id]=e)},e.prototype.addSemiVisibleVertex=function(e){this.m_visibleVertices[e.__hpcc_id]||(this.m_semiVisibleVertices[e.__hpcc_id]=e,this.calcAncestorVisibility(e))},e.prototype.calcSemiVisibleVertices=function(){for(var e in this.m_visibleEdges){var t=this.m_visibleEdges[e],n=t.getSource();for(this.addSemiVisibleVertex(n);this.noSpills&&n.isSpill();){var r=n.getInEdges();if(!r.length)break;this.addSemiVisibleEdge(r[0]),n=r[0].getSource(),this.addSemiVisibleVertex(n)}var o=t.getTarget();for(this.addSemiVisibleVertex(o);this.noSpills&&o.isSpill();){var i=o.getOutEdges();if(!i.length)break;this.addSemiVisibleEdge(i[0]),o=i[0].getTarget(),this.addSemiVisibleVertex(o)}}},e.prototype.writeXgmml=function(){var e=this;this.subgraphVisited(this.graph.subgraphs[0],!0),this.graph.edges.forEach(function(t,n){e.edgeVisited(t)})},e.prototype.subgraphVisited=function(e,t){if(void 0===t&&(t=!1),this.m_visibleSubgraphs[e.__hpcc_id]){var n="";this.m_xgmml+=t?"":'<node id="'+e.__hpcc_id+'"><att><graph>';var r=this.m_xgmml.length;if(e.walkSubgraphs(this),e.walkVertices(this),r===this.m_xgmml.length){var o=e.__hpcc_vertices[0];o&&(this.m_xgmml+=this.buildVertexString(o,!0))}var i=e.getProperties();for(var s in i)n+='<att name="'+s+'" value="'+xmlEncode(i[s])+'"/>';this.m_xgmml+=t?"":"</graph></att>"+n+"</node>"}return!1},e.prototype.vertexVisited=function(e){this.m_visibleVertices[e.__hpcc_id]?this.m_xgmml+=this.buildVertexString(e,!1):this.m_semiVisibleVertices[e.__hpcc_id]&&(this.m_xgmml+=this.buildVertexString(e,!0))},e.prototype.edgeVisited=function(e){this.m_visibleEdges[e.__hpcc_id]&&(this.m_xgmml+=this.buildEdgeString(e))},e}(),GraphItem=function(){function e(e,t){this.__hpcc_graph=e,this.__hpcc_id=t,this._globalID=t}return e.prototype.getProperties=function(){var e={};for(var t in this)0!==t.indexOf("__")&&this.hasOwnProperty(t)&&(e[t]=this[t]);return e},e}(),Subgraph=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r._globalType="0"===n?"Graph":"Cluster",r.__hpcc_subgraphs=[],r.__hpcc_vertices=[],r.__hpcc_edges=[],r.id=n,r}return __extends(t,e),t.prototype.addSubgraph=function(e){e.__hpcc_parent=this,this.__hpcc_subgraphs.some(function(t){return e===t})||this.__hpcc_subgraphs.push(e)},t.prototype.addVertex=function(e){e.__hpcc_parent=this,this.__hpcc_vertices.some(function(t){return e===t})||this.__hpcc_vertices.push(e)},t.prototype.removeVertex=function(e){this.__hpcc_vertices=this.__hpcc_vertices.filter(function(t){return e!==t})},t.prototype.addEdge=function(e){e.__hpcc_parent=this,this.__hpcc_edges.some(function(t){return e===t})||this.__hpcc_edges.push(e)},t.prototype.removeEdge=function(e){this.__hpcc_edges=this.__hpcc_edges.filter(function(t){return e!==t})},t.prototype.remove=function(){var e=this;this.__hpcc_subgraphs.forEach(function(t){return t.__hpcc_parent=e.__hpcc_parent}),this.__hpcc_vertices.forEach(function(t){return t.__hpcc_parent=e.__hpcc_parent}),this.__hpcc_edges.forEach(function(t){return t.__hpcc_parent=e.__hpcc_parent}),delete this.__hpcc_parent,this.__hpcc_graph.removeItem(this)},t.prototype.walkSubgraphs=function(e){this.__hpcc_subgraphs.forEach(function(t,n){e.subgraphVisited(t)&&t.walkSubgraphs(e)})},t.prototype.walkVertices=function(e){this.__hpcc_vertices.forEach(function(t,n){e.vertexVisited(t)})},t}(GraphItem),Vertex=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r._globalType="Vertex",r}return __extends(t,e),t.prototype.isSpill=function(){return this._isSpill},t.prototype.remove=function(){var e,t=this.getInVertices();t.length<=1&&console.warn(this.__hpcc_id+": remove only supports single or zero inputs activities..."),this.getInEdges().forEach(function(e){e.remove()}),this.getOutEdges().forEach(function(e){e.setSource(t[0])}),null===(e=this.__hpcc_parent)||void 0===e||e.removeVertex(this),this.__hpcc_graph.removeItem(this)},t.prototype.getInVertices=function(){return this.getInEdges().map(function(e){return e.getSource()})},t.prototype.getInEdges=function(){var e=this;return this.__hpcc_graph.edges.filter(function(t){return t.getTarget()===e})},t.prototype.getOutVertices=function(){return this.getOutEdges().map(function(e){return e.getTarget()})},t.prototype.getOutEdges=function(){var e=this;return this.__hpcc_graph.edges.filter(function(t){return t.getSource()===e})},t}(GraphItem),Edge=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r._globalType="Edge",r._globalType="Edge",r}return __extends(t,e),t.prototype.remove=function(){var e=this;this.__hpcc_graph.subgraphs.forEach(function(t){t.removeEdge(e)}),this.__hpcc_graph.removeItem(this)},t.prototype.getSource=function(){return this.__hpcc_graph.idx[this._sourceActivity||this.source]},t.prototype.setSource=function(e){this._sourceActivity?this._sourceActivity=e.__hpcc_id:this.source&&(this.source=e.__hpcc_id),this.__widget&&this.__widget.setSource(this.getSource().__widget)},t.prototype.getTarget=function(){return this.__hpcc_graph.idx[this._targetActivity||this.target]},t}(GraphItem),QueryGraph=function(){function e(){this.idx={},this.subgraphs=[],this.vertices=[],this.edges=[],this.xgmml="",this.clear()}return e.prototype.clear=function(){this.xgmml="",this.idx={},this.subgraphs=[],this.vertices=[],this.edges=[]},e.prototype.load=function(e){this.clear(),this.merge(e)},e.prototype.merge=function(e){this.xgmml=e;var t=(new DOMParser).parseFromString(e,"text/xml");this.walkDocument(t.documentElement,"0")},e.prototype.isSubgraph=function(e){return e instanceof Subgraph},e.prototype.isVertex=function(e){return e instanceof Vertex},e.prototype.isEdge=function(e){return e instanceof Edge},e.prototype.getGlobalType=function(t){return t instanceof Vertex?GRAPH_TYPE.VERTEX:t instanceof Edge?GRAPH_TYPE.EDGE:t instanceof Subgraph?GRAPH_TYPE.SUBGRAPH:t instanceof e?GRAPH_TYPE.GRAPH:GRAPH_TYPE.UNKNOWN},e.prototype.getGlobalTypeString=function(t){return t instanceof Vertex?GRAPH_TYPE_STRING.VERTEX:t instanceof Edge?GRAPH_TYPE_STRING.EDGE:t instanceof Subgraph?GRAPH_TYPE_STRING.SUBGRAPH:t instanceof e?GRAPH_TYPE_STRING.GRAPH:GRAPH_TYPE_STRING.UNKNOWN},e.prototype.getItem=function(e,t){if(!this.idx[t])switch(e.tagName){case"graph":var n=new Subgraph(this,t);this.subgraphs.push(n),this.idx[t]=n;break;case"node":var r=new Vertex(this,t);this.vertices.push(r),this.idx[t]=r;break;case"edge":var o=new Edge(this,t);this.edges.push(o),this.idx[t]=o;break;default:console.warn("Graph.getItem - Unknown Node Type!")}var i=this.idx[t];return Array.from(e.attributes).forEach(function(e){safeAssign(i,e.name,e.value)}),i},e.prototype.removeItem=function(e){delete this.idx[e.__hpcc_id],e instanceof Subgraph?this.subgraphs=this.subgraphs.filter(function(t){return e!==t}):e instanceof Vertex?this.vertices=this.vertices.filter(function(t){return e!==t}):e instanceof Edge&&(this.edges=this.edges.filter(function(t){return e!==t}))},e.prototype.getChildByTagName=function(e,t){var n=null;return Array.from(e.childNodes).some(function(e,r){if(e.tagName===t)return n=e,!0}),n},e.prototype.walkDocument=function(e,t){var n=this,r=this.getItem(e,t);return e.childNodes.forEach(function(e,t){if(1===e.nodeType)switch(e.tagName){case"graph":break;case"node":var o=!1,i=n.getChildByTagName(e,"att");if(i){var s=n.getChildByTagName(i,"graph");if(s){o=!0;var c=n.walkDocument(s,e.getAttribute("id"));r.addSubgraph(c)}}if(!o){var u=n.walkDocument(e,e.getAttribute("id"));r.addVertex(u)}break;case"att":var a=e.getAttribute("name"),p="_"+a,l=e.getAttribute("value");0===a.indexOf("Time")?(safeAssign(r,p,l),safeAssign(r,a,""+espTime2Seconds(l))):0===a.indexOf("Size")?(safeAssign(r,p,l),safeAssign(r,a,""+espSize2Bytes(l))):0===a.indexOf("Skew")?(safeAssign(r,p,l),safeAssign(r,a,""+espSkew2Number(l))):safeAssign(r,a,l);break;case"edge":var d=n.walkDocument(e,e.getAttribute("id"));if(void 0!==d.NumRowsProcessed?d._eclwatchCount=d.NumRowsProcessed.replace(/\B(?=(\d{3})+(?!\d))/g,","):void 0!==d.Count?d._eclwatchCount=d.Count.replace(/\B(?=(\d{3})+(?!\d))/g,","):void 0!==d.count&&(d._eclwatchCount=d.count.replace(/\B(?=(\d{3})+(?!\d))/g,",")),d.inputProgress&&(d._eclwatchInputProgress="["+d.inputProgress.replace(/\B(?=(\d{3})+(?!\d))/g,",")+"]"),d.SkewMaxRowsProcessed&&d.SkewMinRowsProcessed&&(d._eclwatchSkew="+"+d.SkewMaxRowsProcessed+", "+d.SkewMinRowsProcessed),d._dependsOn);else if(d._childGraph);else if(d._sourceActivity||d._targetActivity){d._isSpill=!0;var h=d.getSource();h&&(h._isSpill=!0);var f=d.getTarget();f&&(f._isSpill=!0)}r.addEdge(d)}}),r},e.prototype.removeSubgraphs=function(){__spreadArray([],this.subgraphs,!0).forEach(function(e){e.__hpcc_parent instanceof Subgraph&&e.remove()})},e.prototype.removeSpillVertices=function(){__spreadArray([],this.vertices,!0).forEach(function(e){e.isSpill()&&e.remove()})},e.prototype.getLocalisedXGMML=function(e,t,n,r){var o=new LocalisedXGMMLWriter(this);return o.calcVisibility(e,t,n,r),o.writeXgmml(),"<graph>"+o.m_xgmml+"</graph>"},e}(),logger$2=util.scopedLogger("@hpcc-js/comms/ecl/query.ts"),siFormatter=format("~s");function isNumber(e){return!isNaN(parseFloat(e))&&!isNaN(e-0)}var States,QueryCache=function(e){function t(){return e.call(this,function(e){return util.Cache.hash([e.QueryId,e.QuerySet])})||this}return __extends(t,e),t}(util.Cache),_queries=new QueryCache,Query=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.wsWorkunitsService=t instanceof WorkunitsService?t:new WorkunitsService(t),i.topology=Topology.attach(i.wsWorkunitsService.opts()),i.set(__assign({QuerySet:n,QueryId:r},o)),i}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.wsWorkunitsService.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Exceptions",{get:function(){return this.get("Exceptions")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"QueryId",{get:function(){return this.get("QueryId")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"QuerySet",{get:function(){return this.get("QuerySet")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"QueryName",{get:function(){return this.get("QueryName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Dll",{get:function(){return this.get("Dll")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Suspended",{get:function(){return this.get("Suspended")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Activated",{get:function(){return this.get("Activated")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SuspendedBy",{get:function(){return this.get("SuspendedBy")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Clusters",{get:function(){return this.get("Clusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PublishedBy",{get:function(){return this.get("PublishedBy")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Comment",{get:function(){return this.get("Comment")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LogicalFiles",{get:function(){return this.get("LogicalFiles")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SuperFiles",{get:function(){return this.get("SuperFiles")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsLibrary",{get:function(){return this.get("IsLibrary")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Priority",{get:function(){return this.get("Priority")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WUSnapShot",{get:function(){return this.get("WUSnapShot")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CompileTime",{get:function(){return this.get("CompileTime")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LibrariesUsed",{get:function(){return this.get("LibrariesUsed")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CountGraphs",{get:function(){return this.get("CountGraphs")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResourceURLCount",{get:function(){return this.get("ResourceURLCount")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WsEclAddresses",{get:function(){return this.get("WsEclAddresses")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WUGraphs",{get:function(){return this.get("WUGraphs")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WUTimers",{get:function(){return this.get("WUTimers")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PriorityID",{get:function(){return this.get("PriorityID")},enumerable:!1,configurable:!0}),t.attach=function(e,n,r,o){var i=_queries.get({BaseUrl:e.baseUrl,QuerySet:n,QueryId:r},function(){return new t(e,n,r)});return o&&i.set(o),i},t.prototype.wsEclService=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return this._eclService||(this._eclService=this.topology.fetchServices({}).then(function(e){for(var t,n,r,o,i=0,s=null!==(n=null===(t=null==e?void 0:e.TpEspServers)||void 0===t?void 0:t.TpEspServer)&&void 0!==n?n:[];i<s.length;i++)for(var c=s[i],u=0,a=null!==(o=null===(r=null==c?void 0:c.TpBindings)||void 0===r?void 0:r.TpBinding)&&void 0!==o?o:[];u<a.length;u++){var p=a[u];if("ws_ecl"===(null==p?void 0:p.Service)){var l="".concat(p.Protocol,"://").concat(globalThis.location.hostname,":").concat(p.Port);return new EclService({baseUrl:l})}}})),[2,this._eclService]})})},t.prototype.fetchDetails=function(){return __awaiter(this,void 0,void 0,function(){var e;return __generator(this,function(t){switch(t.label){case 0:return[4,this.wsWorkunitsService.WUQueryDetails({QuerySet:this.QuerySet,QueryId:this.QueryId,IncludeStateOnClusters:!0,IncludeSuperFiles:!0,IncludeWsEclAddresses:!0,CheckAllNodes:!1})];case 1:return e=t.sent(),this.set(__assign({},e)),[2]}})})},t.prototype.fetchRequestSchema=function(){return __awaiter(this,void 0,void 0,function(){var e,t,n,r;return __generator(this,function(o){switch(o.label){case 0:return[4,this.wsEclService()];case 1:e=o.sent(),o.label=2;case 2:return o.trys.push([2,4,,5]),t=this,[4,null==e?void 0:e.requestJson(this.QuerySet,this.QueryId)];case 3:return t._requestSchema=null!==(r=o.sent())&&void 0!==r?r:[],[3,5];case 4:return n=o.sent(),logger$2.debug(n),this._requestSchema=[],[3,5];case 5:return[2]}})})},t.prototype.fetchResponseSchema=function(){return __awaiter(this,void 0,void 0,function(){var e,t,n,r;return __generator(this,function(o){switch(o.label){case 0:return[4,this.wsEclService()];case 1:e=o.sent(),o.label=2;case 2:return o.trys.push([2,4,,5]),t=this,[4,null==e?void 0:e.responseJson(this.QuerySet,this.QueryId)];case 3:return t._responseSchema=null!==(r=o.sent())&&void 0!==r?r:{},[3,5];case 4:return n=o.sent(),logger$2.debug(n),this._responseSchema={},[3,5];case 5:return[2]}})})},t.prototype.fetchSchema=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,Promise.all([this.fetchRequestSchema(),this.fetchResponseSchema()])];case 1:return e.sent(),[2]}})})},t.prototype.fetchSummaryStats=function(){return this.wsWorkunitsService.WUQueryGetSummaryStats({Target:this.QuerySet,QueryId:this.QueryId})},t.prototype.fetchGraph=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=""),this.wsWorkunitsService.WUQueryGetGraph({Target:this.QuerySet,QueryId:this.QueryId,GraphName:e,SubGraphId:t}).then(function(e){for(var t,n=new QueryGraph,r=!0,o=0,i=(null===(t=null==e?void 0:e.Graphs)||void 0===t?void 0:t.ECLGraphEx)||[];o<i.length;o++){var s=i[o];r?(n.load(s.Graph),r=!1):n.merge(s.Graph)}return n})},t.prototype.fetchDetailsNormalized=function(e){void 0===e&&(e={});var t=Workunit.attach(this.wsWorkunitsService,this.Wuid);return t?Promise.all([this.fetchGraph(),t.fetchDetailsMeta(),t.fetchDetailsRaw(e)]).then(function(e){var n=e[0],r=e[1],o=e[2].map(function(e){if("a"===e.Id[0]||"e"===e.Id[0]){var t=n.idx[e.Id.substring(1)],r=function(n){if("_"!==n.charAt(0)&&n.charAt(0)===n.charAt(0).toUpperCase()&&("string"==typeof t[n]||"number"==typeof t[n]||"boolean"==typeof t[n])&&!e.Properties.Property.some(function(e){return e.Name===n})){var r=isNumber(t[n])?parseFloat(t[n]):t[n],o=t[n];n.indexOf("Time")>=0&&(o=siFormatter(r/=1e9)+"s"),e.Properties.Property.push({Name:n,RawValue:r,Formatted:o})}};for(var o in t)r(o)}return e});return t.normalizeDetails(r,o)}):Promise.resolve({meta:void 0,columns:void 0,data:void 0})},t.prototype.submit=function(e){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(r){switch(r.label){case 0:return[4,this.wsEclService()];case 1:t=r.sent();try{return[2,null!==(n=null==t?void 0:t.submit(this.QuerySet,this.QueryId,e).then(function(e){for(var t in e)e[t]=e[t].Row;return e}))&&void 0!==n?n:[]]}catch(e){return logger$2.debug(e),[2,[]]}return[2]}})})},t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,Promise.all([this.fetchDetails(),this.fetchSchema()])];case 1:return e.sent(),[2,this]}})})},t.prototype.requestFields=function(){return this._requestSchema?this._requestSchema:[]},t.prototype.responseFields=function(){return this._responseSchema?this._responseSchema:{}},t.prototype.resultNames=function(){var e=[];for(var t in this.responseFields())e.push(t);return e},t.prototype.resultFields=function(e){return this._responseSchema[e]?this._responseSchema[e]:[]},t}(util.StateObject),StoreCache=function(e){function t(){return e.call(this,function(e){return"".concat(e.BaseUrl,"-").concat(e.Name,":").concat(e.UserSpecific,"-").concat(e.Namespace)})||this}return __extends(t,e),t}(util.Cache),_store=new StoreCache,ValueChangedMessage=function(e){function t(t,n,r){var o=e.call(this)||this;return o.key=t,o.value=n,o.oldValue=r,o}return __extends(t,e),Object.defineProperty(t.prototype,"canConflate",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.conflate=function(e){return this.key===e.key&&(this.value=e.value,!0)},t.prototype.void=function(){return this.value===this.oldValue},t}(util.Message),Store=function(){function e(e,t,n,r){this._dispatch=new util.Dispatch,this._knownValues={},this.connection=e instanceof StoreService?e:new StoreService(e),this.Name=t,this.UserSpecific=r,this.Namespace=n}return Object.defineProperty(e.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),e.attach=function(t,n,r,o){return void 0===n&&(n="HPCCApps"),void 0===o&&(o=!0),_store.get({BaseUrl:t.baseUrl,Name:n,UserSpecific:o,Namespace:r},function(){return new e(t,n,r,o)})},e.prototype.create=function(){this.connection.CreateStore({Name:this.Name,UserSpecific:this.UserSpecific,Type:"",Description:""})},e.prototype.set=function(e,t,n){var r=this;return void 0===n&&(n=!0),this.connection.Set({StoreName:this.Name,UserSpecific:this.UserSpecific,Namespace:this.Namespace,Key:e,Value:t}).then(function(o){var i=r._knownValues[e];r._knownValues[e]=t,n&&r._dispatch.post(new ValueChangedMessage(e,t,i))}).catch(function(n){console.error('Store.set("'.concat(e,'", "').concat(t,'") failed:'),n)})},e.prototype.get=function(e,t){var n=this;return void 0===t&&(t=!0),this.connection.Fetch({StoreName:this.Name,UserSpecific:this.UserSpecific,Namespace:this.Namespace,Key:e}).then(function(r){var o=n._knownValues[e];return n._knownValues[e]=r.Value,t&&n._dispatch.post(new ValueChangedMessage(e,r.Value,o)),r.Value}).catch(function(t){console.error("Store.get(".concat(e,") failed:"),t)})},e.prototype.getAll=function(e){var t=this;return void 0===e&&(e=!0),this.connection.FetchAll({StoreName:this.Name,UserSpecific:this.UserSpecific,Namespace:this.Namespace}).then(function(n){var r={},o=t._knownValues;if(t._knownValues={},n.Pairs.Pair.forEach(function(n){var i=t._knownValues[n.Key];t._knownValues[n.Key]=n.Value,delete o[n.Key],r[n.Key]=n.Value,e&&t._dispatch.post(new ValueChangedMessage(n.Key,n.Value,i))}),e)for(var i in o)t._dispatch.post(new ValueChangedMessage(i,void 0,o[i]));return r}).catch(function(e){return console.error("Store.getAll failed:",e),{}})},e.prototype.delete=function(e,t){var n=this;return void 0===t&&(t=!0),this.connection.Delete({StoreName:this.Name,UserSpecific:this.UserSpecific,Namespace:this.Namespace,Key:e}).then(function(r){var o=n._knownValues[e];delete n._knownValues[e],t&&n._dispatch.post(new ValueChangedMessage(e,void 0,o))}).catch(function(t){console.error("Store.delete(".concat(e,") failed:"),t)})},e.prototype.monitor=function(e){return this._dispatch.attach(e)},e}(),logger$1=util.scopedLogger("@hpcc-js/comms/dfuWorkunit.ts");!function(e){e[e.Unknown=0]="Unknown",e[e.Scheduled=1]="Scheduled",e[e.Queued=2]="Queued",e[e.Started=3]="Started",e[e.Aborted=4]="Aborted",e[e.Failed=5]="Failed",e[e.Finished=6]="Finished",e[e.Monitoring=7]="Monitoring",e[e.Aborting=8]="Aborting",e[e.NotFound=999]="NotFound"}(States||(States={}));var DFUWorkunitCache=function(e){function t(){return e.call(this,function(e){return"".concat(e.BaseUrl,"-").concat(e.ID)})||this}return __extends(t,e),t}(util.Cache),_workunits=new DFUWorkunitCache,DFUWorkunit=function(e){function t(t,n){var r=e.call(this)||this;return r.connection=new FileSprayService(t),r.topologyConnection=new TopologyService(t),r.clearState(n),r}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ID",{get:function(){return this.get("ID")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DFUServerName",{get:function(){return this.get("DFUServerName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ClusterName",{get:function(){return this.get("ClusterName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"JobName",{get:function(){return this.get("JobName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Queue",{get:function(){return this.get("Queue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"User",{get:function(){return this.get("User")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProtected",{get:function(){return this.get("isProtected")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Command",{get:function(){return this.get("Command")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CommandMessage",{get:function(){return this.get("CommandMessage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PercentDone",{get:function(){return this.get("PercentDone")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SecsLeft",{get:function(){return this.get("SecsLeft")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ProgressMessage",{get:function(){return this.get("ProgressMessage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SummaryMessage",{get:function(){return this.get("SummaryMessage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"State",{get:function(){return this.get("State",States.Unknown)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceLogicalName",{get:function(){return this.get("SourceLogicalName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceIP",{get:function(){return this.get("SourceIP")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceFilePath",{get:function(){return this.get("SourceFilePath")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceDali",{get:function(){return this.get("SourceDali")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceRecordSize",{get:function(){return this.get("SourceRecordSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceFormat",{get:function(){return this.get("SourceFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RowTag",{get:function(){return this.get("RowTag")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceNumParts",{get:function(){return this.get("SourceNumParts")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceDirectory",{get:function(){return this.get("SourceDirectory")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestLogicalName",{get:function(){return this.get("DestLogicalName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestGroupName",{get:function(){return this.get("DestGroupName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestDirectory",{get:function(){return this.get("DestDirectory")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestIP",{get:function(){return this.get("DestIP")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestFilePath",{get:function(){return this.get("DestFilePath")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestFormat",{get:function(){return this.get("DestFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestNumParts",{get:function(){return this.get("DestNumParts")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestRecordSize",{get:function(){return this.get("DestRecordSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Replicate",{get:function(){return this.get("Replicate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Overwrite",{get:function(){return this.get("Overwrite")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Compress",{get:function(){return this.get("Compress")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceCsvSeparate",{get:function(){return this.get("SourceCsvSeparate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceCsvQuote",{get:function(){return this.get("SourceCsvQuote")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceCsvTerminate",{get:function(){return this.get("SourceCsvTerminate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceCsvEscape",{get:function(){return this.get("SourceCsvEscape")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TimeStarted",{get:function(){return this.get("TimeStarted")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TimeStopped",{get:function(){return this.get("TimeStopped")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"StateMessage",{get:function(){return this.get("StateMessage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MonitorEventName",{get:function(){return this.get("MonitorEventName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MonitorSub",{get:function(){return this.get("MonitorSub")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MonitorShotLimit",{get:function(){return this.get("MonitorShotLimit")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceDiffKeyName",{get:function(){return this.get("SourceDiffKeyName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestDiffKeyName",{get:function(){return this.get("DestDiffKeyName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Archived",{get:function(){return this.get("Archived")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"encrypt",{get:function(){return this.get("encrypt")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"decrypt",{get:function(){return this.get("decrypt")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"failIfNoSourceFile",{get:function(){return this.get("failIfNoSourceFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"recordStructurePresent",{get:function(){return this.get("recordStructurePresent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quotedTerminator",{get:function(){return this.get("quotedTerminator")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"preserveCompression",{get:function(){return this.get("preserveCompression")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expireDays",{get:function(){return this.get("expireDays")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PreserveFileParts",{get:function(){return this.get("PreserveFileParts")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FileAccessCost",{get:function(){return this.get("FileAccessCost")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"KbPerSecAve",{get:function(){return this.get("KbPerSecAve")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"KbPerSec",{get:function(){return this.get("KbPerSec")},enumerable:!1,configurable:!0}),t.create=function(e,n){var r=new t(e);return r.connection.CreateDFUWorkunit({DFUServerQueue:n}).then(function(e){return _workunits.set(r),r.set(e.result),r})},t.attach=function(e,n,r){var o=_workunits.get({BaseUrl:e.baseUrl,ID:n},function(){return new t(e,n)});return r&&o.set(r),o},t.sprayFixed=function(e,n){var r=new FileSprayService(e);return r.SprayFixedEx(__assign({},n)).then(function(n){var o=n.wuid;return r.GetDFUWorkunit({wuid:o}).then(function(n){return t.attach(e,o,n.result)})})},t.sprayVariable=function(e,n){var r=new FileSprayService(e);return r.SprayVariableEx(__assign({},n)).then(function(n){var o=n.wuid;return r.GetDFUWorkunit({wuid:o}).then(function(n){return t.attach(e,o,n.result)})})},t.despray=function(e,n){var r=new FileSprayService(e);return r.DesprayEx(__assign({},n)).then(function(n){var o=n.wuid;return r.GetDFUWorkunit({wuid:o}).then(function(n){return t.attach(e,o,n.result)})})},t.prototype.update=function(e){var t,n,r,o;return this.connection.UpdateDFUWorkunitEx({wu:{JobName:null!==(n=null===(t=null==e?void 0:e.wu)||void 0===t?void 0:t.JobName)&&void 0!==n?n:this.JobName,isProtected:null!==(o=null===(r=null==e?void 0:e.wu)||void 0===r?void 0:r.isProtected)&&void 0!==o?o:this.isProtected,ID:this.ID,State:this.State},ClusterOrig:this.ClusterName,JobNameOrig:this.JobName,isProtectedOrig:this.isProtected,StateOrig:this.State})},t.prototype.isComplete=function(){switch(this.State){case States.Finished:case States.Failed:case States.Aborted:case States.NotFound:return!0}return!1},t.prototype.isFailed=function(){return!(!this.isComplete()||this.State===States.Finished)},t.prototype.isDeleted=function(){return this.State===States.NotFound},t.prototype.isRunning=function(){return!this.isComplete()},t.prototype.abort=function(){return this.connection.AbortDFUWorkunit({wuid:this.ID})},t.prototype.delete=function(){var e=this;return this.DFUWUAction(exports.FileSpray.DFUWUActions.Delete).then(function(t){return e.refresh().then(function(){return e._monitor(),t})})},t.prototype.refresh=function(){return __awaiter(this,arguments,void 0,function(e){return __generator(this,function(e){switch(e.label){case 0:return[4,this.GetDFUWorkunit()];case 1:return e.sent(),[2,this]}})})},t.prototype.fetchXML=function(e){return this.DFUWUFile()},t.prototype._monitor=function(){this.isComplete()?this._monitorTickCount=0:e.prototype._monitor.call(this)},t.prototype._monitorTimeoutDuration=function(){var t=e.prototype._monitorTimeoutDuration.call(this);return this._monitorTickCount<=1?3e3:this._monitorTickCount<=5?6e3:this._monitorTickCount<=7?12e3:t},t.prototype.DFUWUFile=function(e){return void 0===e&&(e={}),this.connection.DFUWUFileEx(__assign(__assign({},e),{Wuid:this.ID})).then(function(e){return e}).catch(function(e){return""})},t.prototype.DFUWUAction=function(e){var t=this;return this.connection.DFUWorkunitsAction({wuids:{Item:[this.ID]},Type:e}).then(function(n){return e===exports.FileSpray.DFUWUActions.Delete?n:t.refresh().then(function(){return t._monitor(),n})})},t.prototype.on=function(t,n,r){var o=this;if(this.isCallback(n))switch(t){case"finished":e.prototype.on.call(this,"propChanged","State",function(e){o.isComplete()&&n([e])});break;case"changed":e.prototype.on.call(this,t,n)}else if("changed"===t)e.prototype.on.call(this,t,n,r);return this._monitor(),this},t.prototype.watchUntilComplete=function(e){var t=this;return new Promise(function(n,r){var o=t.watch(function(r){e&&e(r),t.isComplete()&&(o.release(),n(t))})})},t.prototype.watchUntilRunning=function(e){var t=this;return new Promise(function(n,r){var o=t.watch(function(r){e&&e(r),(t.isComplete()||t.isRunning())&&(o.release(),n(t))})})},t.prototype.clearState=function(e){this.clear({ID:e,State:States.Unknown})},t.prototype.GetDFUWorkunit=function(e){var t=this;return void 0===e&&(e={}),this.connection.GetDFUWorkunit(__assign(__assign({},e),{wuid:this.ID})).then(function(e){return t.set(e.result),e}).catch(function(e){if(!e.Exception.some(function(e){return(20080===e.Code||20081===e.Code)&&(t.clearState(t.ID),t.set("State",States.NotFound),!0)}))throw logger$1.warning("Unexpected ESP exception: ".concat(e.message)),e;return{}})},t}(util.StateObject);util.scopedLogger("clienttools/eclmeta");var Attr=function(e){this.__attrs=e.$,this.name=e.$.name},Field=function(){function e(e,t){this.__attrs=t.$,this.definition=e,this.name=t.$.name,this.type=t.$.type}return Object.defineProperty(e.prototype,"scope",{get:function(){return this.definition},enumerable:!1,configurable:!0}),e}(),ECLScope=function(){function e(e,t,n,r,o,i,s,c){void 0===o&&(o=1),void 0===i&&(i=0),void 0===s&&(s=0),void 0===c&&(c=Number.MAX_VALUE),this.name=e,this.type=t,this.sourcePath=path__namespace.normalize(n),this.line=+o-1,this.start=+i,this.body=+s,this.end=+c,this.definitions=this.parseDefinitions(r)}return Object.defineProperty(e.prototype,"scope",{get:function(){return this},enumerable:!1,configurable:!0}),e.prototype.parseDefinitions=function(e){var t=this;return void 0===e&&(e=[]),e.map(function(e){return new Definition(t.sourcePath,e)})},e.prototype.contains=function(e){return e>=this.start&&e<=this.end},e.prototype.scopeStackAt=function(e){var t=[];return this.contains(e)&&(t.push(this),this.definitions.forEach(function(n){t=n.scopeStackAt(e).concat(t)})),t},e.prototype._resolve=function(e,t){void 0===e&&(e=[]);var n=t.split("."),r=n.shift(),o=util.find(e,function(e){return"string"==typeof e.name&&"string"==typeof r&&e.name.toLowerCase()===r.toLowerCase()});return o&&o.definitions.length&&n.length?this._resolve(o.definitions,n.join(".")):o},e.prototype.resolve=function(e){return this._resolve(this.definitions,e)},e.prototype.suggestions=function(){var e=this;return this.definitions.map(function(t){return{name:t.name,type:e.type}})},e}(),Definition=function(e){function t(t,n){var r=e.call(this,n.$.name,n.$.type,t,n.children("Definition"),n.$.line,n.$.start,n.$.body,n.$.end)||this;return r.__attrs=n.$,r.exported=!!n.$.exported,r.shared=!!n.$.shared,r.fullname=n.$.fullname,r.inherittype=n.$.inherittype,r.attrs=r.parseAttrs(n.children("Attr")),r.fields=r.parseFields(n.children("Field")),r}return __extends(t,e),t.prototype.parseAttrs=function(e){return void 0===e&&(e=[]),e.map(function(e){return new Attr(e)})},t.prototype.parseFields=function(e){var t=this;return void 0===e&&(e=[]),e.map(function(e){return new Field(t,e)})},t.prototype.suggestions=function(){return e.prototype.suggestions.call(this).concat(this.fields.map(function(e){return{name:e.name,type:e.type}}))},t}(ECLScope),Import=function(e){this.__attrs=e.$,this.name=e.$.name,this.ref=e.$.ref,this.start=e.$.start,this.end=e.$.end,this.line=e.$.line},Source=function(e){function t(t){var n=e.call(this,t.$.name,"source",t.$.sourcePath,t.children("Definition"))||this;n.__attrs=t.$;var r=t.$.name.split(".");r.pop();var o=new util.XMLNode("");return o.appendAttribute("name","$"),o.appendAttribute("ref",r.join(".")),n.imports=__spreadArray([new Import(o)],n.parseImports(t.children("Import")),!0),n}return __extends(t,e),t.prototype.parseImports=function(e){return void 0===e&&(e=[]),e.map(function(e){return new Import(e)})},t.prototype.resolve=function(t,n){var r;r||void 0===n||this.scopeStackAt(n).some(function(e){return!!(r=e.resolve(t))});return r||(r=e.prototype.resolve.call(this,t)),r},t}(ECLScope),isHiddenDirectory=function(e){return 0===path__namespace.basename(e).indexOf(".")},isDirectory=function(e){return fs__namespace.lstatSync(e).isDirectory()&&!isHiddenDirectory(e)},isEcl=function(e){return[".ecl",".ecllib"].indexOf(path__namespace.extname(e).toLowerCase())>=0},modAttrs=function(e){return fs__namespace.readdirSync(e).map(function(t){return path__namespace.join(e,t)}).filter(function(e){return isDirectory(e)||isEcl(e)})},File=function(e){function t(t,n){return e.call(this,t,"file",n,[])||this}return __extends(t,e),t.prototype.suggestions=function(){return[]},t}(ECLScope),Folder=function(e){function t(t,n){return e.call(this,t,"folder",n,[])||this}return __extends(t,e),t.prototype.suggestions=function(){return modAttrs(this.sourcePath).map(function(e){return{name:path__namespace.basename(e,".ecl"),type:"folder"}})},t}(ECLScope),Workspace=function(){function e(e,t){this._sourceByID=new util.DictionaryNoCase,this._sourceByPath=new util.Dictionary,this._test=new util.DictionaryNoCase,this._workspacePath=e,this._eclccPath=t}return e.prototype.refresh=function(){this.primeWorkspace(),this.primeClientTools()},e.prototype.primeClientTools=function(){var e=this;return locateClientTools(this._eclccPath,"",this._workspacePath).then(function(t){return e._clientTools=t,t.paths()}).then(function(t){for(var n=0,r=["ECLCC_ECLLIBRARY_PATH","ECLCC_PLUGIN_PATH"];n<r.length;n++){var o=r[n];t[o]&&fs__namespace.existsSync(t[o])&&e.walkChildFolders(t[o],t[o])}return e})},e.prototype.primeWorkspace=function(){fs__namespace.existsSync(this._workspacePath)&&this.visitFolder(this._workspacePath,this._workspacePath)},e.prototype.walkChildFolders=function(e,t,n){void 0===n&&(n=!1);for(var r=0,o=modAttrs(e);r<o.length;r++){var i=o[r];isDirectory(i)?this.visitFolder(i,t,n):this.visitFile(i,t,n)}},e.prototype.visitFile=function(e,t,n){void 0===n&&(n=!1);var r=path__namespace.parse(e),o=path__namespace.join(r.dir,r.name),i=path__namespace.relative(t,o).split(path__namespace.sep).join(".");!n&&this._test.has(i)||this._test.set(i,new File("",e))},e.prototype.visitFolder=function(e,t,n){void 0===n&&(n=!1);var r=path__namespace.relative(t,e).split(path__namespace.sep).join(".");!n&&this._test.has(r)||(this._test.set(r,new Folder(r,e)),this.walkChildFolders(e,t,n))},e.prototype.buildStack=function(e,t,n){var r=t.split(".");n&&e[e.length-1]===r[0]&&r.shift();var o=__spreadArray(__spreadArray([],e,!0),r,!0),i=o.join(".");return{stack:o,qid:i}},e.prototype.walkECLScope=function(e,t){var n=this.buildStack(e,t.name,!0);this._test.set(n.qid,t);for(var r=0,o=t.definitions;r<o.length;r++){var i=o[r];this.walkDefinition(n.stack,i)}},e.prototype.walkField=function(e,t){var n=this.buildStack(e,t.name,!1);this._test.set(n.qid,t)},e.prototype.walkDefinition=function(e,t){var n=this.buildStack(e,t.name,!0);this.walkECLScope(e,t);for(var r=0,o=t.fields;r<o.length;r++){var i=o[r];this.walkField(n.stack,i)}},e.prototype.walkSource=function(e){this.walkECLScope([],e)},e.prototype.parseSources=function(e){void 0===e&&(e=[]);for(var t=0,n=e;t<n.length;t++){var r=n[t];if(r.$.name){var o=new Source(r);if(this._sourceByID.set(o.name,o),this._sourceByPath.set(o.sourcePath,o),o.name){var i=o.name.split(".").length;if(i>1){for(var s=o.sourcePath;i>1;)s=path__namespace.dirname(s),--i;this.visitFolder(s,path__namespace.dirname(s))}}this.walkSource(o)}}},e.prototype.parseMetaXML=function(e){var t=new MetaParser;return t.parse(e),this.parseSources(t.sources),t.sources.map(function(e){return path__namespace.normalize(e.$.sourcePath)})},e.prototype.resolveQualifiedID=function(e,t,n){var r;if(!r&&this._test.has(t)&&(r=this._test.get(t).scope),!r&&this._sourceByPath.has(e)){for(var o=this._sourceByPath.get(e),i=t.split("."),s=0,c=o.imports;s<c.length;s++){var u=c[s];if(u.name.toLowerCase()===i[0].toLowerCase()){u.ref?i[0]=u.ref:i.shift();break}}var a=i.join(".");!r&&this._test.has(a)&&(r=this._test.get(a).scope),r||(a=__spreadArray(__spreadArray([],o.name.split("."),!0),i,!0).join("."),this._test.has(a)&&(r=this._test.get(a).scope))}return r},e.prototype.resolvePartialID=function(e,t,n){var r=(t=t.toLowerCase()).split(".");r.pop();var o=1===r.length?r[0]:r.join(".");return this.resolveQualifiedID(e,o,n)},e}(),workspaceCache=new util.Dictionary;function attachWorkspace(e,t){var n=path__namespace.normalize(e);if(!workspaceCache.has(n)){var r=new Workspace(n,t);workspaceCache.set(n,r),r.refresh()}return workspaceCache.get(n)}function isQualifiedIDChar(e,t,n){if(t<0)return!1;var r=e.charAt(t);return(n?/[a-zA-Z\d_\.$]/:/[a-zA-Z\d_]/).test(r)}function qualifiedIDBoundary(e,t,n){for(;isQualifiedIDChar(e,t,n);)t+=n?-1:1;return t+(n?1:-1)}var MetaParser=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sources=[],t}return __extends(t,e),t.prototype.endXMLNode=function(t){if("Source"===t.name)this.sources.push(t);e.prototype.endXMLNode.call(this,t)},t}(util.SAXStackParser),logger=util.scopedLogger("clienttools/eclcc"),exeExt="Windows_NT"===os__namespace.type()?".exe":"";function tidyCRLF(e){return e.split("\r\n").join("\n").split("\r").join("\n")}var Version=function(){function e(e){this.prefix="",this.major=0,this.minor=0,this.patch=0,this.postfix="";var t=e.split(" ");if(t.length){var n=/(?:(\w+)_)?(\d+)\.(\d+)\.(\d+)(?:-(.*))?/.exec(t[t.length-1]);n&&(this.prefix=n[1]||"",this.major=+n[2]||0,this.minor=+n[3]||0,this.patch=+n[4]||0,this.postfix=n[5]||"")}}return e.prototype.parse=function(e){},e.prototype.exists=function(){return 0!==this.major||0!==this.minor||0!==this.patch||""!==this.postfix},e.prototype.compare=function(e){return this.major>e.major?1:this.major<e.major?-1:this.minor>e.minor?1:this.minor<e.minor?-1:this.patch>e.patch?1:this.patch<e.patch?-1:""===this.postfix&&""!==e.postfix?1:this.postfix.localeCompare(e.postfix)},e.prototype.toString=function(){return"".concat(this.prefix,"_").concat(this.major,".").concat(this.minor,".").concat(this.patch,"-").concat(this.postfix)},e}(),ERROR="error",WARN="warning",Errors=function(){function e(e){this.errWarn=[],this.errOther=[],this._checked=e}return e.prototype.checked=function(){return this._checked},e.prototype.all=function(){return this.errWarn},e.prototype.errors=function(){return this.errWarn.filter(function(e){return e.severity===ERROR})},e.prototype.hasError=function(){return this.errors().length>0},e.prototype.warnings=function(){return this.errWarn.filter(function(e){return e.severity===WARN})},e.prototype.hasWarning=function(){return this.warnings().length>0},e.prototype.info=function(){return this.errWarn.filter(function(e){return[ERROR,WARN].indexOf(e.severity)<0})},e.prototype.hasOther=function(){return this.info().length>0},e.prototype.unknown=function(){return this.errOther},e.prototype.hasUnknown=function(){return this.unknown().length>0},e}(),EclccErrors=function(e){function t(t,n){var r=e.call(this,n)||this;if(t&&t.length)for(var o=0,i=t.split(os__namespace.EOL);o<i.length;o++){var s=i[o],c=/([a-zA-Z]:\\(?:[- \w\.\d]+\\)*(?:[- \w\.\d]+)?|(?:\/[\w\.\-]+)+)\((\d*),(\d*)\) ?: ?(error|warning|info) C(\d*) ?: ?(.*)/.exec(s);if(c){var u=c[1],a=c[2],p=c[3],l=c[4],d=+a,h=+p,f=c[5]+": "+c[6];r.errWarn.push({filePath:u,line:d,col:h,msg:f,severity:l})}else if(c=/(error|warning|info): (.*)/i.exec(s)){l=c[1],f=c[2];r.errWarn.push({filePath:"",line:0,col:0,msg:f,severity:l})}else(c=/\d error(s?), \d warning(s?)/.exec(s))||(logger.warning('parseECLErrors: Unable to parse "'.concat(s,'"')),r.errOther.push(s))}return r._checked=n,r}return __extends(t,e),t}(Errors),EnvchkErrors=function(e){function t(t,n,r){var o=e.call(this,r)||this,i=fs__namespace.readFileSync(t,"utf8");if(i=i.replace(/\r\n/g,"\n"),o._lines=i.split("\n"),n&&n.length)for(var s=0,c=n.split(os__namespace.EOL);s<c.length;s++){var u=c[s],a=/(Warning|Error) : Path\=(\S*?)(\[\S*\])? Message\=(.*)/.exec(u);if(a){var p=a[1],l=a[2],d=a[3],h=a[4],f="".concat(l," ").concat(d||"",": ").concat(h),g=o.locate(l),y=g[0],A=g[1];o.errWarn.push({filePath:t,line:y,col:A,msg:f,severity:p})}else a||(logger.warning('parseECLErrors: Unable to parse "'.concat(u,'"')),o.errOther.push(u))}return o._checked=r,o}return __extends(t,e),t.prototype.locate=function(e){var t=e.split("/");if(t.length&&""===t[0]&&t.shift(),t.length>0)for(var n=0,r=0,o=this._lines;r<o.length;r++){var i=o[r],s="<"+t[0];if((i.indexOf(s+" ")>=0||i.indexOf(s+">")>=0)&&(t.shift(),0===t.length))return[n+1,i.indexOf(s)+1];++n}return[0,0]},t}(Errors);function walkXmlJson(e,t,n){for(var r in(n=n||[]).push(e),e)if(e.hasOwnProperty(r)){var o=e[r];t(r,o,n),o instanceof Array?o.forEach(function(e){walkXmlJson(e,t,n)}):"object"==typeof o&&walkXmlJson(o,t,n)}n.pop()}var allClientToolsCache,LocalWorkunit=function(){function e(e){this.jsonWU=e}return e.prototype.bpGetValidLocations=function(e){var t=[];if(util.exists("W_LOCAL.Graphs",this.jsonWU)){var n="";walkXmlJson(this.jsonWU.W_LOCAL.Graphs,function(r,o,i){if("$"===r&&o.id&&(n=o.id),"$"===r&&"definition"===o.name){var s=/([a-z,A-Z]:\\(?:[-\w\.\d]+\\)*(?:[-\w\.\d]+)?|(?:\/[\w\.\-]+)+)\((\d*),(\d*)\)/.exec(o.value);if(s){var c=s[1],u=+s[2],a=+s[3];e===c&&t.push({file:c,line:u,col:a,id:n})}}})}return t},e}(),ClientTools=function(){function e(e,t,n,r,o,i){void 0===n&&(n=[]),void 0===r&&(r=!1),void 0===o&&(o=[]),this._paths={},this.eclccPath=e,this.binPath=path__namespace.dirname(this.eclccPath),this.envchkPath=path__namespace.join(this.binPath,"envchk"+exeExt),this.eclBundlePath=path__namespace.join(this.binPath,"ecl-bundle"+exeExt),this.cwd=path__namespace.normalize(t||this.binPath),this.includeFolders=n,this._legacyMode=r,this._args=o,this._version=i}return e.prototype.clone=function(t,n,r,o){return void 0===r&&(r=!1),void 0===o&&(o=[]),new e(this.eclccPath,t,n,r,o,this._version)},e.prototype.exists=function(e){try{return fs__namespace.accessSync(e),!0}catch(e){}return!1},e.prototype.args=function(e){void 0===e&&(e=[]);var t=__spreadArray([],this._args,!0);return this._legacyMode&&t.push("-legacy"),t.concat(this.includeFolders.map(function(e){return"-I"+path__namespace.normalize(e)})).concat(e)},e.prototype.version=function(){var e=this;return this._version?Promise.resolve(this._version):this.execFile(this.eclccPath,this.binPath,this.args(["--version"]),"eclcc","Cannot find ".concat(this.eclccPath)).then(function(t){return e._version=new Version(t.stdout),e._version})},e.prototype.versionSync=function(){return this._version},e.prototype.paths=function(){var e=this;return this.execFile(this.eclccPath,this.cwd,this.args(["-showpaths"]),"eclcc","Cannot find ".concat(this.eclccPath)).then(function(t){if(t&&t.stdout&&t.stdout.length)for(var n=0,r=t.stdout.split(/\r?\n/);n<r.length;n++){var o=r[n].split("=");2===o.length&&(e._paths[o[0]]=o[1])}return e._paths})},e.prototype.loadXMLDoc=function(e,t){return new Promise(function(n,r){var o=fs__namespace.readFileSync(e,"ascii"),i=util.xml2json(o);t&&fs__namespace.unlink(e,function(e){}),n(i)})},e.prototype.createWU=function(e){var t=this,n=tmp__namespace.tmpNameSync({prefix:"eclcc-wu-tmp",postfix:""}),r=["-o"+n,"-wu"].concat([e]);return this.execFile(this.eclccPath,this.cwd,this.args(r),"eclcc","Cannot find ".concat(this.eclccPath)).then(function(e){var r=path__namespace.normalize(n+".xml");return(t.exists(r)?t.loadXMLDoc(r,!0):Promise.resolve({})).then(function(e){return new LocalWorkunit(e)})})},e.prototype.createArchive=function(e){var t=["-E"].concat([e]);return this.execFile(this.eclccPath,this.cwd,this.args(t),"eclcc","Cannot find ".concat(this.eclccPath)).then(function(e){return{content:e.stdout,err:new EclccErrors(e.stderr,[])}})},e.prototype.attachWorkspace=function(){return attachWorkspace(this.cwd)},e.prototype.fetchMeta=function(e){return Promise.all([attachWorkspace(this.cwd),this.execFile(this.eclccPath,this.cwd,this.args(["-M",e]),"eclcc","Cannot find ".concat(this.eclccPath))]).then(function(e){var t,n=e[0],r=e[1];try{r&&r.stdout&&r.stdout.length&&n.parseMetaXML(r.stdout)}catch(e){logger.error("fetchMeta: Error parsing XML - ".concat(null!==(t=null==e?void 0:e.message)&&void 0!==t?t:"unknown"))}return n})},e.prototype.syntaxCheck=function(e,t){return void 0===t&&(t=["-syntax"]),Promise.all([attachWorkspace(this.cwd),this.execFile(this.eclccPath,this.cwd,this.args(__spreadArray(__spreadArray([],t,!0),["-M",e],!1)),"eclcc","Cannot find ".concat(this.eclccPath))]).then(function(e){var t,n=e[0],r=e[1],o=[];try{r&&r.stdout&&r.stdout.length&&(o=n.parseMetaXML(r.stdout))}catch(e){logger.error("syntaxCheck: Error parsing XML - ".concat(null!==(t=null==e?void 0:e.message)&&void 0!==t?t:"unknown"))}return new EclccErrors(r?r.stderr:"",o)})},e.prototype.envCheck=function(e,t){return void 0===t&&(t=[]),Promise.all([attachWorkspace(this.cwd),this.execFile(this.envchkPath,this.cwd,this.args(__spreadArray(__spreadArray([],t,!0),[e],!1)),"envchk","Cannot find ".concat(this.envchkPath))]).then(function(t){t[0];var n=t[1];return new EnvchkErrors(e,n?n.stderr:"",[])})},e.prototype.bundleList=function(){var e=this,t=/\|(.*)\|(.*)\|(.*)\|/g;return Promise.all([fetch("https://raw.githubusercontent.com/hpcc-systems/ecl-bundles/master/README.rst").then(function(e){return e.text()}).then(function(e){for(var n=[],r=t.exec(e);r;)n.push({name:r[1].trim(),description:r[2].trim(),url:r[3].trim()}),r=t.exec(e);return n}),this.execFile(this.eclBundlePath,this.cwd,this.args(["list"]),"ecl-bundle","Cannot find ".concat(this.eclBundlePath)).then(function(e){return tidyCRLF(e.stdout).split("\n")}).then(function(t){var n={};return Promise.all(t.filter(function(e){return!!e}).map(function(t){return e.execFile(e.eclBundlePath,e.cwd,e.args(["info",t]),"ecl-bundle","Cannot find ".concat(e.eclBundlePath)).then(function(e){return tidyCRLF(e.stdout).split("\n")}).then(function(e){var r={};e.forEach(function(e){var t=e.split(":");r[t.shift().trim()]=t.join(":").trim()}),n[t]={name:t,props:r}})})).then(function(){return n})})]).then(function(e){var t=e[0],n=e[1];for(var r in t.forEach(function(e){n[e.name]&&(e.props=n[e.name].props,delete n[e.name])}),n)t.push({name:r,url:"",description:"",props:n[r].props});return t}).catch(function(e){return[]})},e.prototype.bundleInstall=function(e){return Promise.all([attachWorkspace(this.cwd),this.execFile(this.eclBundlePath,this.cwd,this.args(["install",e]),"ecl-bundle","Cannot find ".concat(this.eclBundlePath))]).then(function(e){return e[0],e[1]})},e.prototype.bundleUninstall=function(e){return Promise.all([attachWorkspace(this.cwd),this.execFile(this.eclBundlePath,this.cwd,this.args(["uninstall",e]),"ecl-bundle","Cannot find ".concat(this.eclBundlePath))]).then(function(e){return e[0],e[1]})},e.prototype.execFile=function(e,t,n,r,o){return new Promise(function(r,o){logger.debug("".concat(e," ").concat(n.join(" ")));var i=cp__namespace.spawn(e,n,{cwd:t}),s="",c="";i.stdout.on("data",function(e){s+=e.toString()}),i.stderr.on("data",function(e){c+=e.toString()}),i.on("close",function(e,t){r({code:e,stdout:s.trim(),stderr:c.trim()})})})},e}();function locateClientToolsInFolder(e,t){if(e){var n=path__namespace.join(e,"HPCCSystems");if(fs__namespace.existsSync(n)&&fs__namespace.statSync(n).isDirectory()){if("Windows_NT"!==os__namespace.type()){var r=path__namespace.join(n,"bin","eclcc");fs__namespace.existsSync(r)&&t.push(new ClientTools(r))}fs__namespace.readdirSync(n).forEach(function(e){var r=path__namespace.join(n,e,"clienttools","bin","eclcc"+exeExt);if(fs__namespace.existsSync(r)){var o=path__namespace.basename(e);new Version(o).exists()&&t.push(new ClientTools(r))}})}}}function clearAllClientToolsCache(){allClientToolsCache=void 0}function locateAllClientTools(){if(allClientToolsCache)return allClientToolsCache;var e=[];switch(os__namespace.type()){case"Windows_NT":var t=process.env["ProgramFiles(x86)"]||"";t&&locateClientToolsInFolder(t,e);var n=process.env.ProgramFiles||"";n&&locateClientToolsInFolder(n,e),t||n||locateClientToolsInFolder("c:\\Program Files (x86)",e);break;case"Linux":case"Darwin":locateClientToolsInFolder("/opt",e)}return allClientToolsCache=Promise.all(e.map(function(e){return e.version()})).then(function(){return e.sort(function(e,t){return t.versionSync().compare(e.versionSync())}),e})}var eclccPathMsg="";function logEclccPath(e){var t="Using eclccPath setting: ".concat(e);eclccPathMsg!==t&&(logger.info(t),eclccPathMsg=t)}function locateClientTools(e,t,n,r,o,i){return void 0===e&&(e=""),void 0===t&&(t=""),void 0===n&&(n="."),void 0===r&&(r=[]),void 0===o&&(o=!1),void 0===i&&(i=[]),e&&fs__namespace.existsSync(e)?(logEclccPath(e),Promise.resolve(new ClientTools(e,n,r,o,i))):locateAllClientTools().then(function(e){if(!e.length)throw new Error("Unable to locate ECL Client Tools.");for(var s,c,u=new Version(t),a=0,p=e;a<p.length;a++){var l=p[a],d=l.versionSync();if(d.exists()&&(s||(s=l),c||u.major!==d.major||(c=l),u.major===d.major&&u.minor===d.minor))return l.clone(n,r,o,i)}var h=c||s;return logEclccPath(h.eclccPath),h.clone(n,r,o,i)})}util.root.DOMParser=xmldom.DOMParser,void 0===util.root.fetch?(util.root.fetch=fetch$1,util.root.fetch.__rejectUnauthorizedAgent=new https__namespace.Agent({rejectUnauthorized:!1})):(util.root.fetch.__defaultAgent=new undici.Agent,util.root.fetch.__rejectUnauthorizedAgent=new undici.Agent({connect:{rejectUnauthorized:!1}}),util.root.fetch.__setGlobalDispatcher=undici.setGlobalDispatcher),void 0===util.root.AbortController&&(util.root.AbortController=AbortController);var globalCA="";void 0!==https__namespace.globalAgent.options.ca&&(Array.isArray(https__namespace.globalAgent.options.ca)&&https__namespace.globalAgent.options.ca.length?"string"==typeof https__namespace.globalAgent.options.ca[0]?globalCA=https__namespace.globalAgent.options.ca.join("\n"):https__namespace.globalAgent.options.ca[0]instanceof safeBuffer.Buffer&&(globalCA=https__namespace.globalAgent.options.ca.map(function(e){return e.toString()}).join("\n")):"string"==typeof https__namespace.globalAgent.options.ca?globalCA=https__namespace.globalAgent.options.ca:https__namespace.globalAgent.options.ca instanceof safeBuffer.Buffer&&(globalCA=https__namespace.globalAgent.options.ca.toString()),globalCA+="\n"),util.root.fetch.__trustwaveAgent=new https__namespace.Agent({ca:globalCA+trustwave}),void 0===util.root.btoa&&(util.root.btoa=function(e){return safeBuffer.Buffer.from(e||"","utf8").toString("base64")}),exports.AccessService=AccessService,exports.AccountService=AccountService,exports.Activity=Activity,exports.Attr=Attr,exports.Attribute=Attribute,exports.BUILD_VERSION=BUILD_VERSION,exports.BaseScope=BaseScope,exports.ClientTools=ClientTools,exports.CloudService=CloudService,exports.CodesignService=CodesignService,exports.Connection=Connection,exports.DFUArrayActions=DFUArrayActions,exports.DFUChangeProtection=DFUChangeProtection,exports.DFUChangeRestriction=DFUChangeRestriction,exports.DFUDefFileFormat=DFUDefFileFormat,exports.DFUService=DFUService,exports.DFUWorkunit=DFUWorkunit,exports.DFUWorkunitCache=DFUWorkunitCache,exports.DFUXRefService=DFUXRefService,exports.DaliService=DaliService,exports.Definition=Definition,exports.ECLGraph=ECLGraph,exports.ECLScope=ECLScope,exports.ESPConnection=ESPConnection,exports.ESPExceptions=ESPExceptions,exports.EclService=EclService,exports.EclccErrors=EclccErrors,exports.ElkService=ElkService,exports.EnvchkErrors=EnvchkErrors,exports.Errors=Errors,exports.Field=Field,exports.File=File,exports.FileSprayService=FileSprayService,exports.Folder=Folder,exports.GlobalResultCache=GlobalResultCache,exports.GraphCache=GraphCache,exports.Import=Import,exports.LocalWorkunit=LocalWorkunit,exports.LogaccessService=LogaccessService,exports.LogicalFile=LogicalFile,exports.LogicalFileCache=LogicalFileCache,exports.Machine=Machine,exports.MachineCache=MachineCache,exports.MachineService=MachineService,exports.PKG_NAME=PKG_NAME,exports.PKG_VERSION=PKG_VERSION,exports.PackageProcessService=PackageProcessService,exports.PropertyType=PropertyType,exports.Query=Query,exports.QueryGraph=QueryGraph,exports.RelatedProperty=RelatedProperty,exports.Resource=Resource,exports.ResourcesService=ResourcesService,exports.Result=Result,exports.ResultCache=ResultCache,exports.SMCService=SMCService,exports.SashaService=SashaService,exports.Scope=Scope,exports.ScopeEdge=ScopeEdge,exports.ScopeGraph=ScopeGraph,exports.ScopeSubgraph=ScopeSubgraph,exports.ScopeVertex=ScopeVertex,exports.Service=Service,exports.Source=Source,exports.SourceFile=SourceFile,exports.Store=Store,exports.StoreCache=StoreCache,exports.StoreService=StoreService,exports.TargetCluster=TargetCluster,exports.TargetClusterCache=TargetClusterCache,exports.Timer=Timer,exports.Topology=Topology,exports.TopologyCache=TopologyCache,exports.TopologyService=TopologyService,exports.ValueChangedMessage=ValueChangedMessage,exports.Version=Version,exports.Workspace=Workspace,exports.Workunit=Workunit,exports.WorkunitCache=WorkunitCache,exports.WorkunitsService=WorkunitsService,exports.WorkunitsServiceEx=WorkunitsServiceEx,exports.XGMMLEdge=XGMMLEdge,exports.XGMMLGraph=XGMMLGraph,exports.XGMMLSubgraph=XGMMLSubgraph,exports.XGMMLVertex=XGMMLVertex,exports.XSDNode=XSDNode,exports.XSDSchema=XSDSchema,exports.XSDSimpleType=XSDSimpleType,exports.XSDXMLNode=XSDXMLNode,exports.attachWorkspace=attachWorkspace,exports.clearAllClientToolsCache=clearAllClientToolsCache,exports.createGraph=createGraph,exports.createXGMMLGraph=createXGMMLGraph,exports.defaultTargetCluster=defaultTargetCluster,exports.deserializeResponse=deserializeResponse,exports.get=get,exports.hookSend=hookSend,exports.instanceOfIConnection=instanceOfIConnection,exports.instanceOfIOptions=instanceOfIOptions,exports.isArray=isArray,exports.isECLResult=isECLResult,exports.isExceptions=isExceptions,exports.isWUInfoWorkunit=isWUInfoWorkunit,exports.isWUQueryECLWorkunit=isWUQueryECLWorkunit,exports.jsonp=jsonp,exports.locateAllClientTools=locateAllClientTools,exports.locateClientTools=locateClientTools,exports.parseXSD=parseXSD,exports.parseXSD2=parseXSD2,exports.post=post,exports.qualifiedIDBoundary=qualifiedIDBoundary,exports.send=send,exports.serializeRequest=serializeRequest,exports.setTransportFactory=setTransportFactory,exports.splitMetric=splitMetric,exports.targetClusters=targetClusters,exports.walkXmlJson=walkXmlJson;
1
+ "use strict";var util=require("@hpcc-js/util"),xmldom=require("@xmldom/xmldom"),fetch$1=require("node-fetch"),https=require("https"),undici=require("undici"),AbortController=require("abort-controller"),safeBuffer=require("safe-buffer"),cp=require("child_process"),fs=require("fs"),os=require("os"),path=require("path"),tmp=require("tmp");function _interopNamespaceDefault(e){var t=Object.create(null);return e&&Object.keys(e).forEach(function(n){if("default"!==n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}}),t.default=e,Object.freeze(t)}var https__namespace=_interopNamespaceDefault(https),cp__namespace=_interopNamespaceDefault(cp),fs__namespace=_interopNamespaceDefault(fs),os__namespace=_interopNamespaceDefault(os),path__namespace=_interopNamespaceDefault(path),tmp__namespace=_interopNamespaceDefault(tmp),trustwave="\nTrustwave Secure Global Extended Validation CA, Level 1\nSecureTrust Corporation\n00F6F61CE4A3635BB0CA8AACEEFCB2D0F0\n-----BEGIN CERTIFICATE-----\nMIIE+DCCA+CgAwIBAgIRAPb2HOSjY1uwyoqs7vyy0PAwDQYJKoZIhvcNAQELBQAw\nSjELMAkGA1UEBhMCVVMxIDAeBgNVBAoTF1NlY3VyZVRydXN0IENvcnBvcmF0aW9u\nMRkwFwYDVQQDExBTZWN1cmUgR2xvYmFsIENBMB4XDTE1MDgxMjIwMTcyOVoXDTI1\nMDgwOTIwMTcyOVowgbgxCzAJBgNVBAYTAlVTMREwDwYDVQQIEwhJbGxpbm9pczEQ\nMA4GA1UEBxMHQ2hpY2FnbzEhMB8GA1UEChMYVHJ1c3R3YXZlIEhvbGRpbmdzLCBJ\nbmMuMUAwPgYDVQQDEzdUcnVzdHdhdmUgU2VjdXJlIEdsb2JhbCBFeHRlbmRlZCBW\nYWxpZGF0aW9uIENBLCBMZXZlbCAxMR8wHQYJKoZIhvcNAQkBFhBjYUB0cnVzdHdh\ndmUuY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAx6D45slgLGq8\n2G/NPFnuFscv7UM1eRoQyx3h0Dd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MObLN2iQPpeM3yF5dTUm1tPxe39W\nOlr6nLU1xO+yRDrlGLXrVDP1l1/qGVuwi+xufIAcdFycLLBjSSNX7LOIK3tbva7A\nWctLUs+qhIlUrbPyFERm7YOY4SttWdozeYFNfg==\n-----END CERTIFICATE-----\n\nSecureTrust Domain Validation CA, Level 1\nSecureTrust Corporation\n06F1EC00E80B1BAF9870A7C4B6CBE401A32D68\n-----BEGIN CERTIFICATE-----\nMIIEfzCCA2egAwIBAgITBvHsAOgLG6+YcKfEtsvkAaMtaDANBgkqhkiG9w0BAQsF\nADBIMQswCQYDVQQGEwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRp\nb24xFzAVBgNVBAMTDlNlY3VyZVRydXN0IENBMB4XDTE5MDEyOTEyNTk1OVoXDTI5\nMDEyOTEyNTk1OVowfDEyMDAGA1UEAxMpU2VjdXJlVHJ1c3QgRG9tYWluIFZhbGlk\nYXRpb24gQ0EsIExldmVsIDExFDASBgNVBAoTC1NlY3VyZVRydXN0MRAwDgYDVQQH\nEwdDaGljYWdvMREwDwYDVQQIEwhJbGxpbm9pczELMAkGA1UEBhMCVVMwggEiMA0G\nCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCjRHBw8iIivBBrfE6HqexQK0oMt2Y/\nx8jO3fN96KEazZwEoGidwloRBk2Q7VfVvZ0ZDk+qwJZGLZJLS1ntGaZLH4/Iel+r\nPnp36IVF7J5MNDB+K81a/y9svEMfDu0p3FdlBUyhHvizZ/zFNP3tolmQfZ7T0mGL\n7lutlNAzFYoVTUlVeF5cSC8Yca906TEKyizYXuXcY8Diee+t+fQRHmSI5Hk5kyXD\nYFWcf2tXEfdkuFlDjJ7HPdFyfJzrNjD+cbqt8R5rZKnK1GNVP1dXm0cIYS+BMlMa\nCC1yF18oygbnOZLw5fDv9bxs4MOgF8E/Iypw0hLQHVkuD8wAvxVgPsqvAgMBAAGj\nggEsMIIBKDASBgNVHRMBAf8ECDAGAQH/AgEA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A4IBAQB1\nfzAmGGmtbJyIvOfjq2McCpUoYkXAq6JTN51+nb9NDAihhDoTKMde+801bC1/l54h\nxPPm4HImM6GK6LFckDew/FGwbdRbEznUOJ7uVL5ploNBIjte23kTBUZa9fx3+aXK\nhUTAipSyPtNjnOwVVBVXzrMynfMhdsyRRe7gLXNFYCXIxtks3IkIpuYnc86NAuV9\nnBLFlZzgmbAsW+tMc5QsNvQJ9pQ539K8cqZaM+HFCScreDERxmNtHHbMw+hCa2yL\nOj4ntekgWLO8KQbE0lPUNLIM17QK8aktJavj+GezBztKMmJJwhVYQy9nxS388ApX\nxcZsEgIzOCeH0SOWg4FA\n-----END CERTIFICATE-----\n\nSecureTrust Organization Validation CA, Level 1\nSecureTrust Corporation\n06F1EC00E58E9ADD372C871D25843FDAB852D9\n-----BEGIN CERTIFICATE-----\nMIIEkDCCA3igAwIBAgITBvHsAOWOmt03LIcdJYQ/2rhS2TANBgkqhkiG9w0BAQsF\nADBIMQswCQYDVQQGEwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRp\nb24xFzAVBgNVBAMTDlNlY3VyZVRydXN0IENBMB4XDTE5MDEyOTEyNTk1OVoXDTI5\nMDEyOTEyNTk1OVowgYIxODA2BgNVBAMTL1NlY3VyZVRydXN0IE9yZ2FuaXphdGlv\nbiBWYWxpZGF0aW9uIENBLCBMZXZlbCAxMRQwEgYDVQQKEwtTZWN1cmVUcnVzdDEQ\nMA4GA1UEBxMHQ2hpY2FnbzERMA8GA1UECBMISWxsaW5vaXMxCzAJBgNVBAYTAlVT\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4QVBCdYToXFIfzd1SQfi\nTEgg1bwHXM2cE2VsyxwWK8NEFH8zMYdKy2hYOAjbfpm0xE6q4TQzS8KL2vAtCNyY\nVrwX7d3IvKR25H5s1LUDeQXSl1JBBZCtgJf2caJcwaYa6n2pZ0EKt3wBB+QteSFn\n57ENB37T13y7Nn8gC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FBwIBFhxodHRwczovL3NzbC50cnVzdHdhdmUu\nY29tL0NBMDIGA1UdHwQrMCkwJ6AloCOGIWh0dHA6Ly9jcmwudHJ1c3R3YXZlLmNv\nbS9TVENBLmNybDBsBggrBgEFBQcBAQRgMF4wJQYIKwYBBQUHMAGGGWh0dHA6Ly9v\nY3NwLnRydXN0d2F2ZS5jb20wNQYIKwYBBQUHMAKGKWh0dHA6Ly9zc2wudHJ1c3R3\nYXZlLmNvbS9pc3N1ZXJzL1NUQ0EuY3J0MBMGA1UdJQQMMAoGCCsGAQUFBwMBMB8G\nA1UdIwQYMBaAFEIythb6BP3+XUt6w/33TEAdWkOvMA0GCSqGSIb3DQEBCwUAA4IB\nAQAjoDrTysopn7t+onDZ6rZSQW8rYlWZQpSiNHrq9xAAcMExrhcN0bQC9OQ+VRci\noMDascvwum7hVkyh2w2Ad7lC3Ir9gIuA8HycjqQJ4t1eSF3geYyf8lp259ztZ/TO\nxSAwJ9W0Szc8fslOA0SWlyA3lnRVcYVu54Idc1dPXXBxwlQ1NUCYgcsXZs+6QjLL\nYhYL85DhuitQSddoYemGpfVJnaYH9tBiWmwtzwc4qsVqTsKEJ/1zYAy2GrEAv8sB\nFKSfMNMopBmmDA8/aCIW/tH6KTD2DC15QQwL6yAUbSa5mhzFSA9O8zmF881YwBVG\nn+z3isMPClgpNw/eWSbaSLZ+\n-----END CERTIFICATE-----\n\nTrustwave Domain Validation SHA256 CA, Level 1\nSecureTrust Corporation\n390A3F7EECA8FB4347DCAF701861662B\n-----BEGIN CERTIFICATE-----\nMIIE/zCCA+egAwIBAgIQOQo/fuyo+0NH3K9wGGFmKzANBgkqhkiG9w0BAQsFADBI\nMQswCQYDVQQGEwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24x\nFzAVBgNVBAMTDlNlY3VyZVRydXN0IENBMB4XDTE2MDkwMTE0MzUzMloXDTI0MDky\nOTE0MzUzMlowga8xCzAJBgNVBAYTAlVTMREwDwY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MAoGCCsGAQUFBwMBMB8GA1UdIwQYMBaAFEIy\nthb6BP3+XUt6w/33TEAdWkOvMBsGA1UdEQQUMBKBEGNhQHRydXN0d2F2ZS5jb20w\nDQYJKoZIhvcNAQELBQADggEBAFcdG0/3P/CkeGb76tz/mn1viDZiftD05i9Jw70k\nH9ulRwdCHgzhSZVN5zHvG919oHA9WHbxH04J+iAnVl1+FjoDNN+A+2icy2WXqH9w\ngaNUGyUwLdo0JCfgUeGbrCF6WUYCj47pS7zAY02CdGlstZZsqouXK3RnOMKOD3Dq\nf5kiSh56KvhW/F0OZY7PAbdV79LVAiSTiAFdoe/jMjmj8fqXOiCIjllqH/O9/DAm\nRwQStFpauwR+nBbFhq4sYwlZQvJ0NvIxN5JOTECTkMM+X21kf8mrwRdxBfw0YEPa\nUTeZhFr48Fwvnt4jpo7gqpJzt7jjsbWPd1FHtey2Q8zmSHY=\n-----END CERTIFICATE-----\n\nTrustwave Extended Validation SHA256 CA, Level 1\nSecureTrust Corporation\n00C1BD27B383958D0D8BCA5E4F08D009D9\n-----BEGIN CERTIFICATE-----\nMIIFGDCCBACgAwIBAgIRAMG9J7ODlY0Ni8peTwjQCdkwDQYJKoZIhvcNAQELBQAw\nSDELMAkGA1UEBhMCVVMxIDAeBgNVBAoTF1NlY3VyZVRydXN0IENvcnBvcmF0aW9u\nMRcwFQYDVQQDEw5TZWN1cmVUcnVzdCBDQTAeFw0xNDEwMTMxODE3MzlaFw0yNDEw\nMTAxODE3MzlaMIGxMQswCQYDVQQGEwJVUzERMA8GA1UECBMISWxsaW5vaXMxEDAO\nBgNVBAcTB0NoaWNhZ28xITAfBgNVBAoTGFRydXN0d2F2ZSBIb2xkaW5ncywgSW5j\nLjE5MDcGA1UEAxMwVHJ1c3R3YXZlIEV4dGVuZGVkIFZhbGlkYXRpb24gU0hBMjU2\nIENBLCBMZXZlbCAxMR8wHQYJKoZIhvcNAQkBFhBjYUB0cnVzdHdhdmUuY29tMIIB\nIjANBgkqhkiG9w0BA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jEWatJWsnNVxpA7hDR0iZssezu86oDQ/sbVoaXj\n0a5jB2cZsnMS5287CNDk5i+ImruhbMAYV9sadliXoDy3y01Sv+FLMx39C5UhYhWU\ngvoT9igbSCoc/DPOukEDqsnKMmDqTf3JzuFI1CbJcR6M8R1hAda4mZrxIdGcbT8R\nXp8JQ8Vuv/+plPMcAiZ2Bzed0hPVr5A1Mz8K8w9OyORGlRwjWS65jsr26bjMCcfj\npvuAANrc0Alu4nJC\n-----END CERTIFICATE-----\n\nTrustwave Extended Validation SHA256 CA, Level 1\nSecureTrust Corporation\n35962F305C5A0BEC400D4E9877528C65\n-----BEGIN CERTIFICATE-----\nMIIFCzCCA/OgAwIBAgIQNZYvMFxaC+xADU6Yd1KMZTANBgkqhkiG9w0BAQsFADBI\nMQswCQYDVQQGEwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24x\nFzAVBgNVBAMTDlNlY3VyZVRydXN0IENBMB4XDTE2MDkwMTE0MzUzNFoXDTI0MDky\nOTE0MzUzNFowgbExCzAJBgNVBAYTAlVTMREwDwYDVQQIEwhJbGxpbm9pczEQMA4G\nA1UEBxMHQ2hpY2FnbzEhMB8GA1UEChMYVHJ1c3R3YXZlIEhvbGRpbmdzLCBJbmMu\nMTkwNwYDVQQDEzBUcnVzdHdhdmUgRXh0ZW5kZWQgVmFsaWRhdGlvbiBTSEEyNTYg\nQ0EsIExldmVsIDExHzAdBgkqhkiG9w0BCQEWEGNhQHRydXN0d2F2ZS5jb20wggEi\nMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCt72YcuqK/rz0VYiTs9p5Au5ai\nzyV1Ffis0sd4Pv9fsmtN9pe4hBot+tQ4O3JFpmzQu0mwQeCmvt1SicMgfr0+ME+s\neD6EEu7uhvi50THcnTc1BJ2dH9+o9jRkwfY0/t71MVIopy1n9KbMDyMZyVWZ2JMa\nDVtPHrGBa49ar06mshBKCQ/k1F7UZ5NDtT8TXPEuprDo95B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=\n-----END CERTIFICATE-----\n\nTrustwave Organization Validation SHA256 CA, Level 1\nSecureTrust Corporation\n4B2C6646F434775B67DF34A04DD504E6\n-----BEGIN CERTIFICATE-----\nMIIE/TCCA+WgAwIBAgIQSyxmRvQ0d1tn3zSgTdUE5jANBgkqhkiG9w0BAQsFADBI\nMQswCQYDVQQGEwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24x\nFzAVBgNVBAMTDlNlY3VyZVRydXN0IENBMB4XDTE0MTAwMTE5MjIzNloXDTI0MDky\nODE5MjIzNlowgbUxCzAJBgNVBAYTAlVTMREwDwYDVQQIEwhJbGxpbm9pczEQMA4G\nA1UEBxMHQ2hpY2FnbzEhMB8GA1UEChMYVHJ1c3R3YXZlIEhvbGRpbmdzLCBJbmMu\nMT0wOwYDVQQDEzRUcnVzdHdhdmUgT3JnYW5pemF0aW9uIFZhbGlkYXRpb24gU0hB\nMjU2IENBLCBMZXZlbCAxMR8wHQYJKoZIhvcNAQkBFhBjYUB0cnVzdHdhdmUuY29t\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA49OohlJHBJ/juiQTmibO\nS28pHvCCp1bPOc6elQ62DCYE/A14JXUtI8yaUc9nFjh6dNzR7KjFPEq/qDplQl7f\n1Tvh5ifBNNP2wQ6e820TWlPO4HhR/5g4+3iFmJ1N7kFrxDp1/P8e3+9lcJsXckXC\ntfFkQ9slogJqnaCsipgdrH4gQhicFAL5YqHw2AKfctZLSPpxhI3xISMV/lIQwZPW\nI2221v9ALckokh5pW6dTK8x8yNUUye1zt5msWzqunfBjVYVUj5/LXu46hS99Mfxu\n80ARJRyHsXIuHbMzwVXGqKVPZfKAdHBl5e3ElCjNwNy+Hgi09vS7PoAUhjCf/wbO\nnQIDAQABo4IBczCCAW8wEgYDVR0TAQH/BAgwBgEB/wIBADAdBgNVHQ4EFgQUys4d\nGAN3HhzzfFiymnCoCIAW9K4wDgYDVR0PAQH/BAQDAgGGMEgGA1UdIARBMD8wPQYP\nKwYBBAGB7RgDAwMDBAQDMCowKAYIKwYBBQUHAgEWHGh0dHBzOi8vc3NsLnRydXN0\nd2F2ZS5jb20vQ0EwMgYDVR0fBCswKTAnoCWgI4YhaHR0cDovL2NybC50cnVzdHdh\ndmUuY29tL1NUQ0EuY3JsMGwGCCsGAQUFBwEBBGAwXjAlBggrBgEFBQcwAYYZaHR0\ncDovL29jc3AudHJ1c3R3YXZlLmNvbTA1BggrBgEFBQcwAoYpaHR0cDovL3NzbC50\ncnVzdHdhdmUuY29tL2lzc3VlcnMvU1RDQS5jcnQwHQYDVR0lBBYwFAYIKwYBBQUH\nAwIGCCsGAQUFBwMBMB8GA1UdIwQYMBaAFEIythb6BP3+XUt6w/33TEAdWkOvMA0G\nCSqGSIb3DQEBCwUAA4IBAQBN/Qb6x5VSQHIt/FqvXAkjfCI7jwXGzRoxThavUqv0\npJr1azXKv2L2ye9Sl4OCqiDHZ8ZJZ/Z19Ae1yvGTpG++0O5dWTHZ8qy/JSj17Mg1\nvWiefVpJKtkYflzhC9B9/eB3QuKVTRKDqm1ZC9kbm3MWOwtnEOw4WURWS1X2v4Hv\n2AJaXe11ZRqjx7/c6U50tYp3eVpRDCw7bOIXRffLG0oibhjHiEu8dgq7KkTSrx9m\nQFS6T2x9GLiJKhj2mEfPuGr73TfBPyKsRBymOpG67LThKVnwoUfH3pghA6VkZp5Z\n1Vm6AcDm+eelf5XPvZtNve4evLVPYueA3TmGyxXh1m2d\n-----END CERTIFICATE-----\n\nTrustwave Organization Validation SHA256 CA, Level 1\nSecureTrust Corporation\n0092B8744F71CED0E26C72A3D8D5D925B2\n-----BEGIN CERTIFICATE-----\nMIIFEDCCA/igAwIBAgIRAJK4dE9xztDibHKj2NXZJbIwDQYJKoZIhvcNAQELBQAw\nSDELMAkGA1UEBhMCVVMxIDAeBgNVBAoTF1NlY3VyZVRydXN0IENvcnBvcmF0aW9u\nMRcwFQYDVQQDEw5TZWN1cmVUcn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8ELjAsMCqgKKAmhiRodHRwOi8vY3JsLnNlY3VyZXRydXN0LmNvbS9UV0dD\nQS5jcmwwdAYIKwYBBQUHAQEEaDBmMCgGCCsGAQUFBzABhhxodHRwOi8vb2NzcC5z\nZWN1cmV0cnVzdC5jb20vMDoGCCsGAQUFBzAChi5odHRwOi8vY2VydHMuc2VjdXJl\ndHJ1c3QuY29tL2lzc3VlcnMvVFdHQ0EuY3J0MA0GCSqGSIb3DQEBCwUAA4ICAQBb\ntCXryLFewOafyNENB3NzgAQVVztwaWSyvF5FYSqav95JKcoHZzy3wG7aKlTPtGnq\n1QzJst03qPmZJ3j63obz2AvfEEzLEMlsPmOTy3B9oIrNzd2QhpGW1oF6pIgGB/VP\n5zh7U2ibUC+zRLmihwt+j2+7NBbuLbPozgxDTWh2f9O4rJb5bv98Q8RdbGrypBb9\nhOhDvmNCCfjSe+Q8myqsvawEG5p7s8gsIK/V3xbyqDihXjsGc7xeEWNftlU91jBL\nKPRbrLmXhhWnHJjYs4y5IHu735HA3aAT4TqURS9dGHOMVDRumkFpLqR2W7ptpDki\nOtIFZjO5smU29OD4AlcNUXqQuKEFasyTtkRlORnWhU37c36HB8dc57xWQKOf8pMq\n7lK+ublO9G4mO1Aqr9mioTN4oMONFJG4W5dWwG9baNg682ZACkvPaw45MqSztL3A\nKb4s2cDTWu/D34hV3oafkTwu8B7B2mFZnWRJ9q4akPmZF45uw4RZx2ALaYGGGs67\n+r5qS300As9ONg8hxfVkFQSHOc00IiBkgi3OpoCofEKTgDwZwHVqOJyyPjk6H9Sh\nZANmUOT2mGDLwl86Ar5bTu8ipzlsyDYQMFjho7WaVs8I5OXyVdONXDYLIOtpITGT\n1fRcXFzxYHhrNuFwrdj2zBVyvVD4O6xV97/9nv2Eng==\n-----END CERTIFICATE-----\n\nTrustwave Global Domain Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D9AD30465CF22697F246B101EC92953B\n-----BEGIN CERTIFICATE-----\nMIIHCDCCBPCgAwIBAg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B5QWDeXiDxzqIRzA0iE1kHeTXRZ3\n7qgGXUcce7ciW5KqeRApjQbD5BSZG2EKkQ7aaOhvxK0LiuxHZnjPW4/fdEcaCuku\nMT5qMDiF2U85V9BvanEy/xkYn4I2UeK4EdSXe7q6j+CIJz9WnoLQDbIS04GqIWe0\nVRQUlx3idUWYSJU/SG8KrEHhlJLmgSjshCwtT6qo4vHwT5WcWDLIbjMqgL1iQ6JS\n4gxXuOGia3d0I4/wec5x23EWwx9V8BtDJ8N7NDeRNmZ8RXOHSYJsVQYIQuFUEXE1\nv3WMSIxuyQMyR5FYSCG9xnKRFzNmiPngDil5IA==\n-----END CERTIFICATE-----\n\nTrustwave Global Extended Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D99FB3B180C281020314A2D1C7640017\n-----BEGIN CERTIFICATE-----\nMIIHFDCCBPygAwIBAgITBs6C2Z+zsYDCgQIDFKLRx2QAFzANBgkqhkiG9w0BAQsF\nADCBiDELMAkGA1UEBhMCVVMxETAPBgNVBAgMCElsbGlub2lzMRAwDgYDVQQHDAdD\naGljYWdvMSEwHwYDVQQKDBhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4xMTAvBgNV\nBAMMKFRydXN0d2F2ZSBHbG9iYWwgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcN\nMTgwMjA2MTIyMTIwWhcNMjgwMjI0MDUwMTIwWjCBkDE5MDcGA1UEAxMwVHJ1c3R3\nYXZlIEdsb2JhbCBFeHRlbmRlZCBWYWxpZGF0aW9uIENBLCBMZXZlbCAxMSEwHwYD\nVQQKExhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4xEDAOBgNVBAcTB0NoaWNhZ28x\nETAPBgNVBAgTCElsbGlub2lzMQswCQYDVQQGEwJVUzCCAiIwDQYJKoZIhvcNAQEB\nBQADggIPADCCAgoCggIBAMRO7orfWjfmz6Y6qoAmDp2lqCJcdvbRQ8w18rl1JE3j\nf/1CScZLrnLg4RDm8JiRcvFuvo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2BggrBgEFBQcwAoYqaHR0cDov\nL3NzbC50cnVzdHdhdmUuY29tL2lzc3VlcnMvVFdHQ0EuY3J0MA0GCSqGSIb3DQEB\nCwUAA4ICAQBwnSHECaf+hfGrm3Cg+aRr57ytoOSzI1DjlTNcM7k4uSt6kJRPHJ4c\nldIujMaETV52RgE6ykaMGkuIwQOIsLI6SXwjU1f5gXFUbDTS3KTWc/jwQeyLmdOe\nhvc+wBSFv8d10Sx/Qiti8mqsTqr0+N94Cx01+SkiWxWWoSZOAPkz8DMQGlD4yndK\nceTMGtQ03cLnD/36Mv6tz/Ds9l/OExrJGGxHD0tmYwYwBZpPHm7BBY2ZzycVxLcg\n+uuggcX1pg5MhJ1rDyod+7X+ilvTgH7ftHCmxvR7viMLwSUuytZ05zb2teRQgU+8\niWnPEHO/ADm5VD1Zb5Rx0579/YEENBJtGUPPJzo+JEpiZIOIlwZ69ETWWNCLZr0V\nvoi+SDl65cr+dgR9JreJ2I4W9FzS45ruxYEC8LGKEmV46sAk1YLbnIBmhehAKy9t\nP8RVz3QXYJ6rLOAuXF7R2eVV0SqfivW9bVzvBZTUTFsbdSMBAAF1BJjdRqYR63DI\ncQASY7CRoUiak1NTgPkzeV8VcNJmUt8c2eKJIifqBAjquH6+6UXs9Ol0aMPn6v0y\nB+TSuxhX2sSrpna9QcOh/QyoR5Hvcd81rZSbMc7yasKoUMXviotV1SfEqs3RU5Ts\nwnU4NHPn5ITRiuh5VMuvB/VnjnPC953u5uqAGtZ8BkC7X9cu5E0rMQ==\n-----END CERTIFICATE-----\n\nTrustwave Global Organization Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D9A69703AEFE5D37D18858C74026B004\n-----BEGIN CERTIFICATE-----\nMIIHGDCCBQCgAwIBAgITBs6C2aaXA67+XTfRiFjHQCawBDANBgkqhkiG9w0BAQsF\nADCBiDELMAkGA1UEBhMCVVMxETAPBgNVBAgMCElsbGlub2lzMRAwDgYDVQQHDAdD\naGljYWdvMSEwHwYDVQQK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R1AyNTZDQS5jcnQwCgYIKoZIzj0EAwID\nSQAwRgIhALahroq1NScrFeCvG5uMgMKH/bo190D+Mkh2ZIojrUOfAiEAosFXFE73\n0WLRPjX2uOkLhXuA4cQEb1R1oeGDH4MNVOo=\n-----END CERTIFICATE-----\n\nTrustwave Global ECDSA P-256 Organization Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D9A8B57C104843994DACD79E28633E5F\n-----BEGIN CERTIFICATE-----\nMIIDqDCCA0+gAwIBAgITBs6C2ai1fBBIQ5lNrNeeKGM+XzAKBggqhkjOPQQDAjCB\nkTELMAkGA1UEBhMCVVMxETAPBgNVBAgTCElsbGlub2lzMRAwDgYDVQQHEwdDaGlj\nYWdvMSEwHwYDVQQKExhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4xOjA4BgNVBAMT\nMVRydXN0d2F2ZSBHbG9iYWwgRUNDIFAyNTYgQ2VydGlmaWNhdGlvbiBBdXRob3Jp\ndHkwHhcNMTgwMjA2MTIyMTIxWhcNMjgwMjI0MDUwMTIxWjCBoDFJMEcGA1UEAxNA\nVHJ1c3R3YXZlIEdsb2JhbCBFQ0RTQSBQLTI1NiBPcmdhbml6YXRpb24gVmFsaWRh\ndGlvbiBDQSwgTGV2ZWwgMTEhMB8GA1UEChMYVHJ1c3R3YXZlIEhvbGRpbmdzLCBJ\nbmMuMRAwDgYDVQQHEwdDaGljYWdvMREwDwYDVQQIEwhJbGxpbm9pczELMAkGA1UE\nBhMCVVMwWTATBgcqhkjOPQIBBggqhkjOPQMBBwNCAAQmHWo0mogvX1J61xysTqsn\n6qV06wxUH68/QJ2aDIka6beTrDoTZv3mIkyPxFTPy+9idjgSAERlBsDirgO2/NiY\no4IBczCCAW8wEgYDVR0TAQH/BAgwBgEB/wIBADAOBgNVHQ8BAf8EBAMCAYYwHQYD\nVR0lBBYwFAYIKwYBBQUHAwIGCCsGAQUFBwMBMB0GA1UdDgQWBBSv+Ju8XTSl3tA+\nFCldDY4lrbClhTAf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hkjO\nPQIBBgUrgQQAIgNiAAR4nTJ6MvtPBb7+L3tklhdDw0tr5FNY5Q1hsp6NR5OzZVeG\nx/X3VrCvkOsae1OEZHNqWCnnI1s/ix9qn/2+q0pPpXrT6wkN/HOQzpQaJWzCF7yX\nIfIB0o+x1Pr17UOX2qGjggF1MIIBcTASBgNVHRMBAf8ECDAGAQH/AgEAMA4GA1Ud\nDwEB/wQEAwIBhjATBgNVHSUEDDAKBggrBgEFBQcDBDAdBgNVHQ4EFgQUJd3xyUp6\n6EP6L9hCmkRrWAcU2mwwHwYDVR0jBBgwFoAUVamEidLBMr0Yy2ymB07I552+gpAw\nQQYDVR0gBDowODA2BgRVHSAAMC4wLAYIKwYBBQUHAgEWIGh0dHBzOi8vY2VydHMu\nc2VjdXJldHJ1c3QuY29tL0NBMDkGA1UdHwQyMDAwLqAsoCqGKGh0dHA6Ly9jcmwu\nc2VjdXJldHJ1c3QuY29tL1RXR1AzODRDQS5jcmwweAYIKwYBBQUHAQEEbDBqMCgG\nCCsGAQUFBzABhhxodHRwOi8vb2NzcC5zZWN1cmV0cnVzdC5jb20vMD4GCCsGAQUF\nBzAChjJodHRwOi8vY2VydHMuc2VjdXJldHJ1c3QuY29tL2lzc3VlcnMvVFdHUDM4\nNENBLmNydDAKBggqhkjOPQQDAwNpADBmAjEA8X5zwZHtdHjLIn60rwG3Z3NAa6cU\n6gOFxyF+ksTCXvWCUP0oFUqsRPMKMYE2mtdQAjEA2diuEHTPUgCQ0ynhLjged8BO\nFyzL3UlFieGGp90v58gUpfjoFq0BReAw7MPYo/Qa\n-----END CERTIFICATE-----\n\nTrustwave Global ECDSA P-384 Domain Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D9B07A17CC5376157813389A2930A44A\n-----BEGIN CERTIFICATE-----\nMIID1TCCA1ygAwIBAgITBs6C2bB6F8xTdhV4EziaKTCkSjAKBggqhkjOPQQDAzCB\nkTELMAkGA1UEBhMCVVMxETAPBgNVBAgTCElsbGlub2lzMR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VFdHUDM4NENB\nLmNydDAKBggqhkjOPQQDAwNnADBkAjA6fS1jRjt+DvnWSI58v4lX+8DCXbdEhDaB\nbBOS/rXwS/ntsFXqTf0B90GPv3AWlFMCMBbz6nXMwX0jKRkaFZOZx9tvwUapdq7M\n6jYpT/NnAzH68x1t3/7ysZ8lPuKIqAwdKQ==\n-----END CERTIFICATE-----\n\nTrustwave Global ECDSA P-384 Extended Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D9A331594530006781829387E40DBCB6\n-----BEGIN CERTIFICATE-----\nMIID4zCCA2igAwIBAgITBs6C2aMxWUUwAGeBgpOH5A28tjAKBggqhkjOPQQDAzCB\nkTELMAkGA1UEBhMCVVMxETAPBgNVBAgTCElsbGlub2lzMRAwDgYDVQQHEwdDaGlj\nYWdvMSEwHwYDVQQKExhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4xOjA4BgNVBAMT\nMVRydXN0d2F2ZSBHbG9iYWwgRUNDIFAzODQgQ2VydGlmaWNhdGlvbiBBdXRob3Jp\ndHkwHhcNMTgwMjA2MTIyMTIwWhcNMjgwMjI0MDUwMTIwWjCBnDFFMEMGA1UEAxM8\nVHJ1c3R3YXZlIEdsb2JhbCBFQ0RTQSBQLTM4NCBFeHRlbmRlZCBWYWxpZGF0aW9u\nIENBLCBMZXZlbCAxMSEwHwYDVQQKExhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4x\nEDAOBgNVBAcTB0NoaWNhZ28xETAPBgNVBAgTCElsbGlub2lzMQswCQYDVQQGEwJV\nUzB2MBAGByqGSM49AgEGBSuBBAAiA2IABKcVGieqBjW3BuVza9VhkBlpGLHLZqQg\nI0GXaTpt5CogNWz6BmlZ1yAPjRnDUVfVwl57ATRtV7u+5TPFzKZ+RheFVc0iA8vl\nQ2JINGRz8XLDaivvuygQtFKSzCWn4e66cKOCAXMwggFvMBIGA1UdEwEB/wQIMAYB\nAf8CAQAwDgYDVR0PAQH/BAQDAgGGMB0GA1UdJQQWMBQGCCsGAQUFBwMCBggrBgEF\nBQcDATAdBgNVHQ4EFgQUMFfit09gayJACkNfT/oNzXO8JCcwHwYDVR0jBBgwFoAU\nVamEidLBMr0Yy2ymB07I552+gpAwPQYDVR0gBDYwNDAyBgRVHSAAMCowKAYIKwYB\nBQUHAgEWHGh0dHBzOi8vc3NsLnRydXN0d2F2ZS5jb20vQ0EwNwYDVR0fBDAwLjAs\noCqgKIYmaHR0cDovL2NybC50cnVzdHdhdmUuY29tL1RXR1AzODRDQS5jcmwwcgYI\nKwYBBQUHAQEEZjBkMCYGCCsGAQUFBzABhhpodHRwOi8vb2NzcC50cnVzdHdhdmUu\nY29tLzA6BggrBgEFBQcwAoYuaHR0cDovL3NzbC50cnVzdHdhdmUuY29tL2lzc3Vl\ncnMvVFdHUDM4NENBLmNydDAKBggqhkjOPQQDAwNpADBmAjEA6pScrGT+SruK7iON\n7iDJZfhQsjfQIhaq9sHiEXd89B8ibWOb57no/K265dPxeuALAjEA27NTMZM344eT\nX3df9B22dY5ZshsUMIiRcMo1K4B/GBO8SIA0jParkHS5g4WO5K7O\n-----END CERTIFICATE-----\n\nTrustwave Global ECDSA P-384 Organization Validation CA, Level 1\nTrustwave Holdings, Inc.\n06CE82D9A9D8E29837EF90BEAF59DC6551BED6\n-----BEGIN CERTIFICATE-----\nMIID5jCCA2ygAwIBAgITBs6C2anY4pg375C+r1ncZVG+1jAKBggqhkjOPQQDAzCB\nkTELMAkGA1UEBhMCVVMxETAPBgNVBAgTCElsbGlub2lzMRAwDgYDVQQHEwdDaGlj\nYWdvMSEwHwYDVQQKExhUcnVzdHdhdmUgSG9sZGluZ3MsIEluYy4xOjA4BgNVBAMT\nMVRydXN0d2F2ZSBHbG9iYWwgRUNDIFAzODQgQ2VydGlmaWNhdGlvbiBBdXRob3Jp\ndHkwHhcNMTgwMjA2MTIyMTIxWhcNMjgwMjI0MDUwMTIxWjCBoDFJMEcGA1UEAxNA\nVHJ1c3R3YXZlIEdsb2JhbCBFQ0RTQ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s2nqPtYVDmr3QwDgYDVR0PAQH/BAQDAgGGMEgGA1UdIARBMD8wPQYPKwYBBAGB\n7RgDAwMFBAMDMCowKAYIKwYBBQUHAgEWHGh0dHBzOi8vc3NsLnRydXN0d2F2ZS5j\nb20vQ0EwMgYDVR0fBCswKTAnoCWgI4YhaHR0cDovL2NybC50cnVzdHdhdmUuY29t\nL1hHQ0EuY3JsMGwGCCsGAQUFBwEBBGAwXjAlBggrBgEFBQcwAYYZaHR0cDovL29j\nc3AudHJ1c3R3YXZlLmNvbTA1BggrBgEFBQcwAoYpaHR0cDovL3NzbC50cnVzdHdh\ndmUuY29tL2lzc3VlcnMvWEdDQS5jcnQwEwYDVR0lBAwwCgYIKwYBBQUHAwQwHwYD\nVR0jBBgwFoAUxk+iPQZjhAmczmLkBKyNXLXpthswDQYJKoZIhvcNAQELBQADggEB\nAIdGLHufUegzFKVBQVWs3YAIFqCcJvdak14TMRImxJsnQWLz+jIW0olC0JATY6Ng\nxAbjIJA4wtW/tA+rgE6WcA5y3bLN3bRMQVDSu6X26hkVjvwo4/VYykOp3e9Cqlfe\ngJAsrqBQKXkUpEbYEmmorXxj6/74e//xwXTz0XS0BS9cXhONlTQffyJnMeLaunzQ\nS1x/MvALfPCHCZCTOfLDmwylKtHHu+V2Ks0HV+ZrzCBRR5W3MhGTU7PpNEMQwyGF\n+MG5eZTd0jyxOSOjaXQm7iDh0tG/iKZZegn5AhNdaHE74QEHTjK+teLQlo60QGBk\necyzakgVYZ/Ezalz8nQwhCA=\n-----END CERTIFICATE-----\n\nTrustwave XRamp Global Extended Validation CA, Level 1\nXRamp Security Services Inc\n00D3D519C2B2EB5C7040F64CBC957BBD2C\n-----BEGIN CERTIFICATE-----\nMIIFMDCCBBigAwIBAgIRANPVGcKy61xwQPZMvJV7vSwwDQYJKoZIhvcNAQELBQAw\ngYIxCzAJBgNVBAYTAlVTMR4wHAYDVQQLExV3d3cueHJhbXBzZWN1cml0eS5jb20x\nJDAiBgNVBAoTG1hSYW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Er5E0k9BpIycnR+j9sKS50gU/k6bpZFXrsY3crsC\nMGclCrEMXu6pY5Jv5ZAL/mYiykf9ijH3g/56vxC+GCsej/YpHpRZ744hN8tRmKVu\nSw==\n-----END CERTIFICATE-----\n",PKG_NAME="@hpcc-js/comms",PKG_VERSION="2.102.4",BUILD_VERSION="2.108.10",extendStatics=function(e,t){return extendStatics=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},extendStatics(e,t)};function __extends(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}extendStatics(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var __assign=function(){return __assign=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},__assign.apply(this,arguments)};function __awaiter(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{u(r.next(e))}catch(e){i(e)}}function c(e){try{u(r.throw(e))}catch(e){i(e)}}function u(e){var t;e.done?o(e.value):(t=e.value,t instanceof n?t:new n(function(e){e(t)})).then(s,c)}u((r=r.apply(e,t||[])).next())})}function __generator(e,t){var n,r,o,i={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]},s=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return s.next=c(0),s.throw=c(1),s.return=c(2),"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function c(c){return function(u){return function(c){if(n)throw new TypeError("Generator is already executing.");for(;s&&(s=0,c[0]&&(i=0)),i;)try{if(n=1,r&&(o=2&c[0]?r.return:c[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,c[1])).done)return o;switch(r=0,o&&(c=[2&c[0],o.value]),c[0]){case 0:case 1:o=c;break;case 4:return i.label++,{value:c[1],done:!1};case 5:i.label++,r=c[1],c=[0];continue;case 7:c=i.ops.pop(),i.trys.pop();continue;default:if(!(o=i.trys,(o=o.length>0&&o[o.length-1])||6!==c[0]&&2!==c[0])){i=0;continue}if(3===c[0]&&(!o||c[1]>o[0]&&c[1]<o[3])){i.label=c[1];break}if(6===c[0]&&i.label<o[1]){i.label=o[1],o=c;break}if(o&&i.label<o[2]){i.label=o[2],i.ops.push(c);break}o[2]&&i.ops.pop(),i.trys.pop();continue}c=t.call(e,i)}catch(e){c=[6,e],r=0}finally{n=o=0}if(5&c[0])throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}([c,u])}}}function __spreadArray(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var logger$7=util.scopedLogger("comms/connection.ts");function instanceOfIOptions(e){return"baseUrl"in e}var DefaultOptions={type:"post",baseUrl:"",userID:"",password:"",rejectUnauthorized:!0,timeoutSecs:60};function instanceOfIConnection(e){return"function"==typeof e.opts&&"function"==typeof e.send&&"function"==typeof e.clone}function encode(e,t){return void 0===t||!0===t?encodeURIComponent(e):""+e}function serializeRequest(e,t,n){if(void 0===t&&(t=!0),void 0===n&&(n=""),n&&(n+="."),"object"!=typeof e)return encode(e,t);var r=[],o=function(o){if(e.hasOwnProperty(o))if(e[o]instanceof Array){var i=!1;e[o].forEach(function(e,s){"object"==typeof e?(i=!0,r.push(serializeRequest(e,t,n+encode("".concat(o,".").concat(s),t)))):r.push(n+encode("".concat(o,"_i").concat(s),t)+"="+serializeRequest(e,t))}),i&&r.push(n+encode("".concat(o,".itemcount"),t)+"="+e[o].length)}else"object"==typeof e[o]?e[o]&&e[o].Item instanceof Array?(r.push(serializeRequest(e[o].Item,t,n+encode(o,t))),r.push(n+encode("".concat(o,".itemcount"),t)+"="+e[o].Item.length)):r.push(serializeRequest(e[o],t,n+encode(o,t))):void 0!==e[o]?r.push(n+encode(o,t)+"="+encode(e[o],t)):r.push(n+encode(o,t))};for(var i in e)o(i);return r.join("&")}function deserializeResponse(e){return JSON.parse(e)}function jsonp(e,t,n,r,o){return void 0===n&&(n={}),void 0===r&&(r="json"),o&&console.warn("Header attributes ignored for JSONP connections"),new Promise(function(o,i){var s=1e3*e.timeoutSecs,c="jsonp_callback_"+Math.round(999999*Math.random());window[c]=function(e){s=0,l(),o("json"===r&&"string"==typeof e?deserializeResponse(e):e)};var u=document.createElement("script"),a=util.join(e.baseUrl,t);a+=a.indexOf("?")>=0?"&":"?",u.src=a+"jsonp="+c+"&"+serializeRequest(n,e.encodeRequest),document.body.appendChild(u);var p=setInterval(function(){s<=0?clearInterval(p):(s-=5e3)<=0?(clearInterval(p),logger$7.error("Request timeout: "+u.src),l(),i(Error("Request timeout: "+u.src))):logger$7.debug("Request pending ("+s/1e3+" sec): "+u.src)},5e3);function l(){delete window[c],document.body.removeChild(u)}})}function authHeader(e){return e.userID?{Authorization:"Basic ".concat(btoa("".concat(e.userID,":").concat(e.password)))}:{}}var _omitMap={};function doFetch(e,t,n,r,o){function i(e){if(e.ok)return"json"===o?e.json():e.text();throw new Error(e.statusText)}return r=__assign(__assign({},authHeader(e)),r),n=__assign(__assign({credentials:_omitMap[e.baseUrl]?"omit":"include"},n),{headers:r}),fetch.__setGlobalDispatcher&&fetch.__setGlobalDispatcher(fetch.__defaultAgent),0===e.baseUrl.indexOf("https:")&&(!1===e.rejectUnauthorized&&fetch.__rejectUnauthorizedAgent?fetch.__setGlobalDispatcher?fetch.__setGlobalDispatcher(fetch.__rejectUnauthorizedAgent):n.agent=fetch.__rejectUnauthorizedAgent:fetch.__trustwaveAgent&&(n.agent=fetch.__trustwaveAgent)),util.promiseTimeout(1e3*e.timeoutSecs,fetch(util.join(e.baseUrl,t),n).then(i).catch(function(r){return n.credentials=_omitMap[e.baseUrl]?"include":"omit",fetch(util.join(e.baseUrl,t),n).then(i).then(function(t){return _omitMap[e.baseUrl]=!_omitMap[e.baseUrl],t})}))}function post(e,t,n,r,o){var i;return void 0===r&&(r="json"),n.upload_&&(delete n.upload_,t+="?upload_"),n.abortSignal_&&(i=n.abortSignal_,delete n.abortSignal_),doFetch(e,t,{method:"post",body:serializeRequest(n,e.encodeRequest),signal:i},__assign({"Content-Type":"application/x-www-form-urlencoded"},o),r)}function get(e,t,n,r,o){var i;return void 0===r&&(r="json"),n.abortSignal_&&(i=n.abortSignal_,delete n.abortSignal_),doFetch(e,"".concat(t,"?").concat(serializeRequest(n,e.encodeRequest)),{method:"get",signal:i},__assign({},o),r)}function send(e,t,n,r,o){var i;switch(void 0===r&&(r="json"),e.type){case"jsonp":i=jsonp(e,t,n,r,o);break;case"get":i=get(e,t,n,r,o);break;default:i=post(e,t,n,r,o)}return i}var hookedSend=send;function hookSend(e){var t=hookedSend;return e&&(hookedSend=e),t}var Connection=function(){function e(e){this.opts(e)}return Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this._opts.baseUrl},enumerable:!1,configurable:!0}),e.prototype.opts=function(e){return 0===arguments.length?this._opts:(this._opts=__assign(__assign({},DefaultOptions),e),this)},e.prototype.send=function(e,t,n,r){return void 0===n&&(n="json"),this._opts.hookSend?this._opts.hookSend(this._opts,e,t,n,hookedSend,r):hookedSend(this._opts,e,t,n,r)},e.prototype.clone=function(){return new e(this.opts())},e}();function setTransportFactory(e){var t=exports.createConnection;return exports.createConnection=e,t}function isArray(e){return"[object Array]"===Object.prototype.toString.call(e)}exports.createConnection=function(e){return new Connection(e)};var ESPExceptions=function(e){function t(t,n,r){var o=e.call(this,"ESPException: "+r.Source)||this;return o.isESPExceptions=!0,o.action=t,o.request=n,o.Source=r.Source,o.Exception=r.Exception,r.Exception.length?o.message="".concat(r.Exception[0].Code,": ").concat(r.Exception[0].Message):o.message="",o}return __extends(t,e),t}(Error);function isExceptions(e){return e instanceof ESPExceptions||e.isESPExceptions&&Array.isArray(e.Exception)}function isConnection(e){return void 0!==e.send}var ESPConnection=function(){function e(e,t,n){this._connection=isConnection(e)?e:exports.createConnection(e),this._service=t,this._version=n}return Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this._connection.opts().baseUrl},enumerable:!1,configurable:!0}),e.prototype.service=function(e){return void 0===e?this._service:(this._service=e,this)},e.prototype.version=function(e){return void 0===e?this._version:(this._version=e,this)},e.prototype.toESPStringArray=function(e,t){if(isArray(e[t])){for(var n=0;n<e[t].length;++n)e[t+"_i"+n]=e[t][n];delete e[t]}return e},e.prototype.opts=function(e){return void 0===e?this._connection.opts():(this._connection.opts(e),this)},e.prototype.send=function(e,t,n,r,o,i){void 0===t&&(t={}),void 0===n&&(n="json"),void 0===r&&(r=!1);var s,c=__assign(__assign({},t),{ver_:this._version});r&&(c.upload_=!0),o&&(c.abortSignal_=o);var u="json";switch(n){case"text":s=util.join(this._service,e),u="text";break;case"xsd":s=util.join(this._service,e+".xsd"),u="text";break;case"json2":s=util.join(this._service,e+"/json"),n="json";var a=e.split("/");e=a.pop();break;default:s=util.join(this._service,e+".json")}return this._connection.send(s,c,u).then(function(t){if("json"===n){var r=void 0;if(t&&t.Exceptions)throw new ESPExceptions(e,c,t.Exceptions);if(t&&(r=t[i||e+"Response"]),!r)throw new ESPExceptions(e,c,{Source:"ESPConnection.send",Exception:[{Code:0,Message:"Missing Response"}]});return r}return t}).catch(function(t){if(t.isESPExceptions)throw t;throw new ESPExceptions(e,c,{Source:"ESPConnection.send",Exception:[{Code:0,Message:t.message}]})})},e.prototype.clone=function(){return new e(this._connection.clone(),this._service,this._version)},e}(),Service=function(){function e(e,t,n){this._connection=new ESPConnection(e,t,n)}return Object.defineProperty(e.prototype,"baseUrl",{get:function(){return this._connection.opts().baseUrl},enumerable:!1,configurable:!0}),e.prototype.opts=function(){return this._connection.opts()},e.prototype.connection=function(){return this._connection.clone()},e}();exports.FileSpray=void 0,function(e){var t;(t=e.DFUWUActions||(e.DFUWUActions={})).Delete="Delete",t.Protect="Protect",t.Unprotect="Unprotect",t.Restore="Restore",t.SetToFailed="SetToFailed",t.Archive="Archive"}(exports.FileSpray||(exports.FileSpray={}));var FileSprayServiceBase=function(e){function t(t){return e.call(this,t,"FileSpray","1.26")||this}return __extends(t,e),t.prototype.AbortDFUWorkunit=function(e){return this._connection.send("AbortDFUWorkunit",e,"json",!1,void 0,"AbortDFUWorkunitResponse")},t.prototype.Copy=function(e){return this._connection.send("Copy",e,"json",!1,void 0,"CopyResponse")},t.prototype.CreateDFUPublisherWorkunit=function(e){return this._connection.send("CreateDFUPublisherWorkunit",e,"json",!1,void 0,"CreateDFUPublisherWorkunitResponse")},t.prototype.CreateDFUWorkunit=function(e){return this._connection.send("CreateDFUWorkunit",e,"json",!1,void 0,"CreateDFUWorkunitResponse")},t.prototype.DFUWUFile=function(e){return this._connection.send("DFUWUFile",e,"json",!1,void 0,"DFUWUFileResponse")},t.prototype.DFUWUSearch=function(e){return this._connection.send("DFUWUSearch",e,"json",!1,void 0,"DFUWUSearchResponse")},t.prototype.DFUWorkunitsAction=function(e){return this._connection.send("DFUWorkunitsAction",e,"json",!1,void 0,"DFUWorkunitsActionResponse")},t.prototype.DeleteDFUWorkunit=function(e){return this._connection.send("DeleteDFUWorkunit",e,"json",!1,void 0,"DeleteDFUWorkunitResponse")},t.prototype.DeleteDFUWorkunits=function(e){return this._connection.send("DeleteDFUWorkunits",e,"json",!1,void 0,"DeleteDFUWorkunitsResponse")},t.prototype.DeleteDropZoneFiles=function(e){return this._connection.send("DeleteDropZoneFiles",e,"json",!1,void 0,"DFUWorkunitsActionResponse")},t.prototype.Despray=function(e){return this._connection.send("Despray",e,"json",!1,void 0,"DesprayResponse")},t.prototype.DfuMonitor=function(e){return this._connection.send("DfuMonitor",e,"json",!1,void 0,"DfuMonitorResponse")},t.prototype.DropZoneFileSearch=function(e){return this._connection.send("DropZoneFileSearch",e,"json",!1,void 0,"DropZoneFileSearchResponse")},t.prototype.DropZoneFiles=function(e){return this._connection.send("DropZoneFiles",e,"json",!1,void 0,"DropZoneFilesResponse")},t.prototype.EchoDateTime=function(e){return this._connection.send("EchoDateTime",e,"json",!1,void 0,"EchoDateTimeResponse")},t.prototype.FileList=function(e){return this._connection.send("FileList",e,"json",!1,void 0,"FileListResponse")},t.prototype.GetDFUExceptions=function(e){return this._connection.send("GetDFUExceptions",e,"json",!1,void 0,"GetDFUExceptionsResponse")},t.prototype.GetDFUProgress=function(e){return this._connection.send("GetDFUProgress",e,"json",!1,void 0,"ProgressResponse")},t.prototype.GetDFUServerQueues=function(e){return this._connection.send("GetDFUServerQueues",e,"json",!1,void 0,"GetDFUServerQueuesResponse")},t.prototype.GetDFUWorkunit=function(e){return this._connection.send("GetDFUWorkunit",e,"json",!1,void 0,"GetDFUWorkunitResponse")},t.prototype.GetDFUWorkunits=function(e){return this._connection.send("GetDFUWorkunits",e,"json",!1,void 0,"GetDFUWorkunitsResponse")},t.prototype.GetRemoteTargets=function(e){return this._connection.send("GetRemoteTargets",e,"json",!1,void 0,"GetRemoteTargetsResponse")},t.prototype.GetSprayTargets=function(e){return this._connection.send("GetSprayTargets",e,"json",!1,void 0,"GetSprayTargetsResponse")},t.prototype.OpenSave=function(e){return this._connection.send("OpenSave",e,"json",!1,void 0,"OpenSaveResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"FileSprayPingResponse")},t.prototype.Rename=function(e){return this._connection.send("Rename",e,"json",!1,void 0,"RenameResponse")},t.prototype.Replicate=function(e){return this._connection.send("Replicate",e,"json",!1,void 0,"ReplicateResponse")},t.prototype.ShowResult=function(e){return this._connection.send("ShowResult",e,"json",!1,void 0,"ShowResultResponse")},t.prototype.SprayFixed=function(e){return this._connection.send("SprayFixed",e,"json",!1,void 0,"SprayFixedResponse")},t.prototype.SprayVariable=function(e){return this._connection.send("SprayVariable",e,"json",!1,void 0,"SprayResponse")},t.prototype.SubmitDFUWorkunit=function(e){return this._connection.send("SubmitDFUWorkunit",e,"json",!1,void 0,"SubmitDFUWorkunitResponse")},t.prototype.UpdateDFUWorkunit=function(e){return this._connection.send("UpdateDFUWorkunit",e,"json",!1,void 0,"UpdateDFUWorkunitResponse")},t}(Service);exports.FileSprayStates=void 0,function(e){e[e.unknown=0]="unknown",e[e.scheduled=1]="scheduled",e[e.queued=2]="queued",e[e.started=3]="started",e[e.aborted=4]="aborted",e[e.failed=5]="failed",e[e.finished=6]="finished",e[e.monitoring=7]="monitoring",e[e.aborting=8]="aborting",e[e.notfound=999]="notfound"}(exports.FileSprayStates||(exports.FileSprayStates={}));var FileSprayService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.DFUWUFileEx=function(e){return this._connection.send("DFUWUFile",e,"text")},t.prototype.SprayFixedEx=function(e){return this._connection.send("SprayFixed",e)},t.prototype.SprayVariableEx=function(e){return this._connection.send("SprayVariable",e,"json",!1,null,"SprayResponse")},t.prototype.DesprayEx=function(e){return this._connection.send("Despray",e)},t.prototype.UpdateDFUWorkunitEx=function(e){return this._connection.send("UpdateDFUWorkunit",e,"json",!1,void 0,"UpdateDFUWorkunitResponse")},t}(FileSprayServiceBase);exports.WsAccess=void 0,function(e){var t,n,r,o,i;(t=e.ViewMemberType||(e.ViewMemberType={})).User="User",t.Group="Group",(n=e.UserSortBy||(e.UserSortBy={})).username="username",n.fullname="fullname",n.passwordexpiration="passwordexpiration",n.employeeID="employeeID",n.employeeNumber="employeeNumber",(r=e.GroupSortBy||(e.GroupSortBy={})).Name="Name",r.ManagedBy="ManagedBy",(o=e.AccountTypeReq||(e.AccountTypeReq={})).Any="Any",o.User="User",o.Group="Group",(i=e.ResourcePermissionSortBy||(e.ResourcePermissionSortBy={})).Name="Name",i.Type="Type",(e.ResourceSortBy||(e.ResourceSortBy={})).Name="Name"}(exports.WsAccess||(exports.WsAccess={}));var AccessServiceBase=function(e){function t(t){return e.call(this,t,"ws_access","1.17")||this}return __extends(t,e),t.prototype.AccountPermissions=function(e){return this._connection.send("AccountPermissions",e,"json",!1,void 0,"AccountPermissionsResponse")},t.prototype.AccountPermissionsV2=function(e){return this._connection.send("AccountPermissionsV2",e,"json",!1,void 0,"AccountPermissionsV2Response")},t.prototype.AddUser=function(e){return this._connection.send("AddUser",e,"json",!1,void 0,"AddUserResponse")},t.prototype.AddView=function(e){return this._connection.send("AddView",e,"json",!1,void 0,"AddViewResponse")},t.prototype.AddViewColumn=function(e){return this._connection.send("AddViewColumn",e,"json",!1,void 0,"AddViewColumnResponse")},t.prototype.AddViewMember=function(e){return this._connection.send("AddViewMember",e,"json",!1,void 0,"AddViewMemberResponse")},t.prototype.ClearPermissionsCache=function(e){return this._connection.send("ClearPermissionsCache",e,"json",!1,void 0,"ClearPermissionsCacheResponse")},t.prototype.DeleteView=function(e){return this._connection.send("DeleteView",e,"json",!1,void 0,"DeleteViewResponse")},t.prototype.DeleteViewColumn=function(e){return this._connection.send("DeleteViewColumn",e,"json",!1,void 0,"DeleteViewColumnResponse")},t.prototype.DeleteViewMember=function(e){return this._connection.send("DeleteViewMember",e,"json",!1,void 0,"DeleteViewMemberResponse")},t.prototype.DisableScopeScans=function(e){return this._connection.send("DisableScopeScans",e,"json",!1,void 0,"DisableScopeScansResponse")},t.prototype.EnableScopeScans=function(e){return this._connection.send("EnableScopeScans",e,"json",!1,void 0,"EnableScopeScansResponse")},t.prototype.FilePermission=function(e){return this._connection.send("FilePermission",e,"json",!1,void 0,"FilePermissionResponse")},t.prototype.GroupAction=function(e){return this._connection.send("GroupAction",e,"json",!1,void 0,"GroupActionResponse")},t.prototype.GroupAdd=function(e){return this._connection.send("GroupAdd",e,"json",!1,void 0,"GroupAddResponse")},t.prototype.GroupEdit=function(e){return this._connection.send("GroupEdit",e,"json",!1,void 0,"GroupEditResponse")},t.prototype.GroupMemberEdit=function(e){return this._connection.send("GroupMemberEdit",e,"json",!1,void 0,"GroupMemberEditResponse")},t.prototype.GroupMemberEditInput=function(e){return this._connection.send("GroupMemberEditInput",e,"json",!1,void 0,"GroupMemberEditInputResponse")},t.prototype.GroupMemberQuery=function(e){return this._connection.send("GroupMemberQuery",e,"json",!1,void 0,"GroupMemberQueryResponse")},t.prototype.GroupQuery=function(e){return this._connection.send("GroupQuery",e,"json",!1,void 0,"GroupQueryResponse")},t.prototype.Groups=function(e){return this._connection.send("Groups",e,"json",!1,void 0,"GroupResponse")},t.prototype.PermissionAction=function(e){return this._connection.send("PermissionAction",e,"json",!1,void 0,"PermissionActionResponse")},t.prototype.Permissions=function(e){return this._connection.send("Permissions",e,"json",!1,void 0,"BasednsResponse")},t.prototype.PermissionsReset=function(e){return this._connection.send("PermissionsReset",e,"json",!1,void 0,"PermissionsResetResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"ws_accessPingResponse")},t.prototype.QueryScopeScansEnabled=function(e){return this._connection.send("QueryScopeScansEnabled",e,"json",!1,void 0,"QueryScopeScansEnabledResponse")},t.prototype.QueryUserViewColumns=function(e){return this._connection.send("QueryUserViewColumns",e,"json",!1,void 0,"QueryUserViewColumnsResponse")},t.prototype.QueryViewColumns=function(e){return this._connection.send("QueryViewColumns",e,"json",!1,void 0,"QueryViewColumnsResponse")},t.prototype.QueryViewMembers=function(e){return this._connection.send("QueryViewMembers",e,"json",!1,void 0,"QueryViewMembersResponse")},t.prototype.QueryViews=function(e){return this._connection.send("QueryViews",e,"json",!1,void 0,"QueryViewsResponse")},t.prototype.ResourceAdd=function(e){return this._connection.send("ResourceAdd",e,"json",!1,void 0,"ResourceAddResponse")},t.prototype.ResourceDelete=function(e){return this._connection.send("ResourceDelete",e,"json",!1,void 0,"ResourceDeleteResponse")},t.prototype.ResourcePermissionQuery=function(e){return this._connection.send("ResourcePermissionQuery",e,"json",!1,void 0,"ResourcePermissionQueryResponse")},t.prototype.ResourcePermissions=function(e){return this._connection.send("ResourcePermissions",e,"json",!1,void 0,"ResourcePermissionsResponse")},t.prototype.ResourceQuery=function(e){return this._connection.send("ResourceQuery",e,"json",!1,void 0,"ResourceQueryResponse")},t.prototype.Resources=function(e){return this._connection.send("Resources",e,"json",!1,void 0,"ResourcesResponse")},t.prototype.UserAccountExport=function(e){return this._connection.send("UserAccountExport",e,"json",!1,void 0,"UserAccountExportResponse")},t.prototype.UserAction=function(e){return this._connection.send("UserAction",e,"json",!1,void 0,"UserActionResponse")},t.prototype.UserEdit=function(e){return this._connection.send("UserEdit",e,"json",!1,void 0,"UserEditResponse")},t.prototype.UserGroupEdit=function(e){return this._connection.send("UserGroupEdit",e,"json",!1,void 0,"UserGroupEditResponse")},t.prototype.UserGroupEditInput=function(e){return this._connection.send("UserGroupEditInput",e,"json",!1,void 0,"UserGroupEditInputResponse")},t.prototype.UserInfoEdit=function(e){return this._connection.send("UserInfoEdit",e,"json",!1,void 0,"UserInfoEditResponse")},t.prototype.UserInfoEditInput=function(e){return this._connection.send("UserInfoEditInput",e,"json",!1,void 0,"UserInfoEditInputResponse")},t.prototype.UserPosix=function(e){return this._connection.send("UserPosix",e,"json",!1,void 0,"UserPosixResponse")},t.prototype.UserPosixInput=function(e){return this._connection.send("UserPosixInput",e,"json",!1,void 0,"UserPosixInputResponse")},t.prototype.UserQuery=function(e){return this._connection.send("UserQuery",e,"json",!1,void 0,"UserQueryResponse")},t.prototype.UserResetPass=function(e){return this._connection.send("UserResetPass",e,"json",!1,void 0,"UserResetPassResponse")},t.prototype.UserResetPassInput=function(e){return this._connection.send("UserResetPassInput",e,"json",!1,void 0,"UserResetPassInputResponse")},t.prototype.UserSudoers=function(e){return this._connection.send("UserSudoers",e,"json",!1,void 0,"UserSudoersResponse")},t.prototype.UserSudoersInput=function(e){return this._connection.send("UserSudoersInput",e,"json",!1,void 0,"UserSudoersInputResponse")},t.prototype.Users=function(e){return this._connection.send("Users",e,"json",!1,void 0,"UserResponse")},t}(Service),AccessService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(AccessServiceBase),AccountServiceBase=function(e){function t(t){return e.call(this,t,"ws_account","1.06")||this}return __extends(t,e),t.prototype.MyAccount=function(e){return this._connection.send("MyAccount",e,"json",!1,void 0,"MyAccountResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"ws_accountPingResponse")},t.prototype.UpdateUser=function(e){return this._connection.send("UpdateUser",e,"json",!1,void 0,"UpdateUserResponse")},t.prototype.UpdateUserInput=function(e){return this._connection.send("UpdateUserInput",e,"json",!1,void 0,"UpdateUserInputResponse")},t.prototype.VerifyUser=function(e){return this._connection.send("VerifyUser",e,"json",!1,void 0,"VerifyUserResponse")},t}(Service),AccountService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.VerifyUser=function(e){return this._connection.send("VerifyUser",e).catch(function(e){if(e.isESPExceptions&&e.Exception.some(function(e){return 20043===e.Code}))return{retcode:20043,Exceptions:{Source:"wsAccount",Exception:e.Exception}};throw e})},t}(AccountServiceBase),CloudServiceBase=function(e){function t(t){return e.call(this,t,"WsCloud","1.02")||this}return __extends(t,e),t.prototype.GetPODs=function(e){return this._connection.send("GetPODs",e,"json",!1,void 0,"GetPODsResponse")},t.prototype.GetServices=function(e){return this._connection.send("GetServices",e,"json",!1,void 0,"GetServicesResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"WsCloudPingResponse")},t}(Service),logger$6=util.scopedLogger("@hpcc-js/comms/services/wsCloud.ts");function isGetPODsResponse_v1_02(e){return void 0!==(null==e?void 0:e.Pods)}function mapPorts(e){var t,n,r;return null!==(r=null===(n=null===(t=e.spec)||void 0===t?void 0:t.containers)||void 0===n?void 0:n.reduce(function(e,t){var n;return null===(n=t.ports)||void 0===n||n.forEach(function(t){e.push({ContainerPort:t.containerPort,Name:t.name,Protocol:t.protocol})}),e},[]))&&void 0!==r?r:[]}function mapPods(e){return e.filter(function(e){var t,n,r=null!==(n=null===(t=null==e?void 0:e.metadata)||void 0===t?void 0:t.labels)&&void 0!==n?n:{};return r.hasOwnProperty("app.kubernetes.io/part-of")&&"HPCC-Platform"===r["app.kubernetes.io/part-of"]}).map(function(e){var t,n,r,o,i,s,c,u,a,p,l,d,h=new Date(null===(t=e.metadata)||void 0===t?void 0:t.creationTimestamp);return{Name:e.metadata.name,Status:null===(n=e.status)||void 0===n?void 0:n.phase,CreationTimestamp:h.toISOString(),ContainerName:null!==(i=null===(o=null===(r=e.status)||void 0===r?void 0:r.containerStatuses)||void 0===o?void 0:o.reduce(function(e,t){return t.name&&e.push(t.name),e},[]).join(", "))&&void 0!==i?i:"",ContainerCount:null!==(u=null===(c=null===(s=e.spec)||void 0===s?void 0:s.containers)||void 0===c?void 0:c.length)&&void 0!==u?u:0,ContainerReadyCount:null===(p=null===(a=e.status)||void 0===a?void 0:a.containerStatuses)||void 0===p?void 0:p.reduce(function(e,t){return e+(t.ready?1:0)},0),ContainerRestartCount:null===(d=null===(l=e.status)||void 0===l?void 0:l.containerStatuses)||void 0===d?void 0:d.reduce(function(e,t){return e+t.restartCount},0),Ports:{Port:mapPorts(e)}}})}var CloudService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.getPODs=function(){return e.prototype.GetPODs.call(this,{}).then(function(e){var t,n,r;if(isGetPODsResponse_v1_02(e))return null!==(n=null===(t=e.Pods)||void 0===t?void 0:t.Pod)&&void 0!==n?n:[];try{var o="string"==typeof e.Result?JSON.parse(e.Result):e.Result;return mapPods(null!==(r=null==o?void 0:o.items)&&void 0!==r?r:[])}catch(e){return logger$6.error("Error parsing V1Pods json '".concat(e.message,"'")),[]}})},t}(CloudServiceBase),CodesignService=function(){function e(e){this._connection=new ESPConnection(e,"ws_codesign","1.1")}return e.prototype.connectionOptions=function(){return this._connection.opts()},e.prototype.ListUserIDs=function(e){return this._connection.send("ListUserIDs",e).then(function(e){return e.UserIDs.Item}).catch(function(e){return[]})},e.prototype.Sign=function(e){return this._connection.send("Sign",__assign({SigningMethod:"gpg"},e))},e.prototype.Verify=function(e){return this._connection.send("Verify",e)},e}(),DaliServiceBase=function(e){function t(t){return e.call(this,t,"WSDali","1.07")||this}return __extends(t,e),t.prototype.Add=function(e){return this._connection.send("Add",e,"json",!1,void 0,"ResultResponse")},t.prototype.ClearTraceTransactions=function(e){return this._connection.send("ClearTraceTransactions",e,"json",!1,void 0,"ResultResponse")},t.prototype.Count=function(e){return this._connection.send("Count",e,"json",!1,void 0,"CountResponse")},t.prototype.DFSCheck=function(e){return this._connection.send("DFSCheck",e,"json",!1,void 0,"ResultResponse")},t.prototype.DFSExists=function(e){return this._connection.send("DFSExists",e,"json",!1,void 0,"BooleanResponse")},t.prototype.DFSLS=function(e){return this._connection.send("DFSLS",e,"json",!1,void 0,"ResultResponse")},t.prototype.Delete=function(e){return this._connection.send("Delete",e,"json",!1,void 0,"ResultResponse")},t.prototype.DisconnectClientConnection=function(e){return this._connection.send("DisconnectClientConnection",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetClients=function(e){return this._connection.send("GetClients",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetConnections=function(e){return this._connection.send("GetConnections",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetDFSCSV=function(e){return this._connection.send("GetDFSCSV",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetDFSMap=function(e){return this._connection.send("GetDFSMap",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetDFSParents=function(e){return this._connection.send("GetDFSParents",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetLogicalFile=function(e){return this._connection.send("GetLogicalFile",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetLogicalFilePart=function(e){return this._connection.send("GetLogicalFilePart",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetProtectedList=function(e){return this._connection.send("GetProtectedList",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetSDSStats=function(e){return this._connection.send("GetSDSStats",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetSDSSubscribers=function(e){return this._connection.send("GetSDSSubscribers",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetValue=function(e){return this._connection.send("GetValue",e,"json",!1,void 0,"ResultResponse")},t.prototype.Import=function(e){return this._connection.send("Import",e,"json",!1,void 0,"ResultResponse")},t.prototype.ListSDSLocks=function(e){return this._connection.send("ListSDSLocks",e,"json",!1,void 0,"ResultResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"WSDaliPingResponse")},t.prototype.SaveSDSStore=function(e){return this._connection.send("SaveSDSStore",e,"json",!1,void 0,"ResultResponse")},t.prototype.SetLogicalFilePartAttr=function(e){return this._connection.send("SetLogicalFilePartAttr",e,"json",!1,void 0,"ResultResponse")},t.prototype.SetProtected=function(e){return this._connection.send("SetProtected",e,"json",!1,void 0,"ResultResponse")},t.prototype.SetTraceSlowTransactions=function(e){return this._connection.send("SetTraceSlowTransactions",e,"json",!1,void 0,"ResultResponse")},t.prototype.SetTraceTransactions=function(e){return this._connection.send("SetTraceTransactions",e,"json",!1,void 0,"ResultResponse")},t.prototype.SetUnprotected=function(e){return this._connection.send("SetUnprotected",e,"json",!1,void 0,"ResultResponse")},t.prototype.SetValue=function(e){return this._connection.send("SetValue",e,"json",!1,void 0,"ResultResponse")},t.prototype.UnlockSDSLock=function(e){return this._connection.send("UnlockSDSLock",e,"json",!1,void 0,"ResultResponse")},t}(Service),DaliService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.Export=function(e){return __awaiter(this,void 0,void 0,function(){var t,n,r,o;return __generator(this,function(i){switch(i.label){case 0:return t=new URLSearchParams,e.Path&&t.append("Path",e.Path),void 0!==e.Safe&&t.append("Safe",String(e.Safe)),[4,fetch("".concat("/WsDali/Export","?").concat(t.toString()))];case 1:return n=i.sent(),r=n.headers.get("Content-Disposition"),[4,n.blob()];case 2:return o=i.sent(),[2,{filename:r?r.split("filename=")[1]:"WsDali_Export",content:o}]}})})},t}(DaliServiceBase);exports.WsDfu=void 0,function(e){var t,n,r;!function(e){e.Delete="Delete",e.AddToSuperfile="Add To Superfile",e.ChangeProtection="Change Protection",e.ChangeRestriction="Change Restriction"}(e.DFUArrayActions||(e.DFUArrayActions={})),function(e){e[e.NoChange=0]="NoChange",e[e.Protect=1]="Protect",e[e.Unprotect=2]="Unprotect",e[e.UnprotectAll=3]="UnprotectAll"}(e.DFUChangeProtection||(e.DFUChangeProtection={})),function(e){e[e.NoChange=0]="NoChange",e[e.Restrict=1]="Restrict",e[e.Unrestricted=2]="Unrestricted"}(e.DFUChangeRestriction||(e.DFUChangeRestriction={})),function(e){e.xml="xml",e.def="def"}(e.DFUDefFileFormat||(e.DFUDefFileFormat={})),(t=e.FileAccessRole||(e.FileAccessRole={})).Token="Token",t.Engine="Engine",t.External="External",(n=e.SecAccessType||(e.SecAccessType={})).None="None",n.Access="Access",n.Read="Read",n.Write="Write",n.Full="Full",(r=e.DFUFileType||(e.DFUFileType={})).Flat="Flat",r.Index="Index",r.Xml="Xml",r.Csv="Csv",r.Json="Json",r.IndexLocal="IndexLocal",r.IndexPartitioned="IndexPartitioned",r.Unset="Unset"}(exports.WsDfu||(exports.WsDfu={}));var DfuServiceBase=function(e){function t(t){return e.call(this,t,"WsDfu","1.65")||this}return __extends(t,e),t.prototype.Add=function(e){return this._connection.send("Add",e,"json",!1,void 0,"AddResponse")},t.prototype.AddRemote=function(e){return this._connection.send("AddRemote",e,"json",!1,void 0,"AddRemoteResponse")},t.prototype.AddtoSuperfile=function(e){return this._connection.send("AddtoSuperfile",e,"json",!1,void 0,"AddtoSuperfileResponse")},t.prototype.DFUArrayAction=function(e){return this._connection.send("DFUArrayAction",e,"json",!1,void 0,"DFUArrayActionResponse")},t.prototype.DFUBrowseData=function(e){return this._connection.send("DFUBrowseData",e,"json",!1,void 0,"DFUBrowseDataResponse")},t.prototype.DFUDefFile=function(e){return this._connection.send("DFUDefFile",e,"json",!1,void 0,"DFUDefFileResponse")},t.prototype.DFUFileAccess=function(e){return this._connection.send("DFUFileAccess",e,"json",!1,void 0,"DFUFileAccessResponse")},t.prototype.DFUFileAccessV2=function(e){return this._connection.send("DFUFileAccessV2",e,"json",!1,void 0,"DFUFileAccessResponse")},t.prototype.DFUFileCreate=function(e){return this._connection.send("DFUFileCreate",e,"json",!1,void 0,"DFUFileCreateResponse")},t.prototype.DFUFileCreateV2=function(e){return this._connection.send("DFUFileCreateV2",e,"json",!1,void 0,"DFUFileCreateResponse")},t.prototype.DFUFilePublish=function(e){return this._connection.send("DFUFilePublish",e,"json",!1,void 0,"DFUFilePublishResponse")},t.prototype.DFUFileView=function(e){return this._connection.send("DFUFileView",e,"json",!1,void 0,"DFUFileViewResponse")},t.prototype.DFUGetDataColumns=function(e){return this._connection.send("DFUGetDataColumns",e,"json",!1,void 0,"DFUGetDataColumnsResponse")},t.prototype.DFUGetFileMetaData=function(e){return this._connection.send("DFUGetFileMetaData",e,"json",!1,void 0,"DFUGetFileMetaDataResponse")},t.prototype.DFUInfo=function(e){return this._connection.send("DFUInfo",e,"json",!1,void 0,"DFUInfoResponse")},t.prototype.DFUQuery=function(e){return this._connection.send("DFUQuery",e,"json",!1,void 0,"DFUQueryResponse")},t.prototype.DFURecordTypeInfo=function(e){return this._connection.send("DFURecordTypeInfo",e,"json",!1,void 0,"DFURecordTypeInfoResponse")},t.prototype.DFUSearch=function(e){return this._connection.send("DFUSearch",e,"json",!1,void 0,"DFUSearchResponse")},t.prototype.DFUSearchData=function(e){return this._connection.send("DFUSearchData",e,"json",!1,void 0,"DFUSearchDataResponse")},t.prototype.DFUSpace=function(e){return this._connection.send("DFUSpace",e,"json",!1,void 0,"DFUSpaceResponse")},t.prototype.EclRecordTypeInfo=function(e){return this._connection.send("EclRecordTypeInfo",e,"json",!1,void 0,"EclRecordTypeInfoResponse")},t.prototype.EraseHistory=function(e){return this._connection.send("EraseHistory",e,"json",!1,void 0,"EraseHistoryResponse")},t.prototype.ListHistory=function(e){return this._connection.send("ListHistory",e,"json",!1,void 0,"ListHistoryResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"WsDfuPingResponse")},t.prototype.Savexml=function(e){return this._connection.send("Savexml",e,"json",!1,void 0,"SavexmlResponse")},t.prototype.SuperfileAction=function(e){return this._connection.send("SuperfileAction",e,"json",!1,void 0,"SuperfileActionResponse")},t.prototype.SuperfileList=function(e){return this._connection.send("SuperfileList",e,"json",!1,void 0,"SuperfileListResponse")},t}(Service),DFUArrayActions=exports.WsDfu.DFUArrayActions,DFUDefFileFormat=exports.WsDfu.DFUDefFileFormat,DFUChangeProtection=exports.WsDfu.DFUChangeProtection,DFUChangeRestriction=exports.WsDfu.DFUChangeRestriction,DFUService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.DFUFile=function(e){return this._connection.send("DFUDefFile",e,"text")},t.prototype.recursiveFetchLogicalFiles=function(e){return __awaiter(this,void 0,void 0,function(){var t,n,r,o,i,s=this;return __generator(this,function(c){switch(c.label){case 0:return t=[],n=[],[4,Promise.all(e.map(function(e){return s.DFUInfo({Cluster:e.NodeGroup,Name:e.Name,IncludeJsonTypeInfo:!1,IncludeBinTypeInfo:!1,ForceIndexInfo:!1}).then(function(e){for(var r,o,i,s,c,u,a=0,p=null!==(i=null===(o=null===(r=null==e?void 0:e.FileDetail)||void 0===r?void 0:r.Superfiles)||void 0===o?void 0:o.DFULogicalFile)&&void 0!==i?i:[];a<p.length;a++){var l=p[a];t.push(l)}for(var d=0,h=null!==(u=null===(c=null===(s=null==e?void 0:e.FileDetail)||void 0===s?void 0:s.subfiles)||void 0===c?void 0:c.Item)&&void 0!==u?u:[];d<h.length;d++){l=h[d];n.push(l)}})}))];case 1:return c.sent(),o=(r=n).concat,t.length?[4,this.recursiveFetchLogicalFiles(t)]:[3,3];case 2:return i=c.sent(),[3,4];case 3:i=[],c.label=4;case 4:return[2,o.apply(r,[i])]}})})},t}(DfuServiceBase),DFUXRefService=function(e){function t(t){return e.call(this,t,"WsDFUXRef","1.01")||this}return __extends(t,e),t.prototype.DFUXRefArrayAction=function(e){return this._connection.send("DFUXRefArrayAction",e)},t.prototype.DFUXRefBuild=function(e){return this._connection.send("DFUXRefBuild",e)},t.prototype.DFUXRefBuildCancel=function(e){return this._connection.send("DFUXRefBuildCancel",e)},t.prototype.DFUXRefCleanDirectories=function(e){return this._connection.send("DFUXRefCleanDirectories",e)},t.prototype.DFUXRefDirectories=function(e){return this._connection.send("DFUXRefDirectories",e,void 0,void 0,void 0,"DFUXRefDirectoriesQueryResponse")},t.prototype.DFUXRefFoundFiles=function(e){return this._connection.send("DFUXRefFoundFiles",e,void 0,void 0,void 0,"DFUXRefFoundFilesQueryResponse")},t.prototype.DFUXRefList=function(e){return void 0===e&&(e={}),this._connection.send("DFUXRefList",e)},t.prototype.DFUXRefLostFiles=function(e){return this._connection.send("DFUXRefLostFiles",e,void 0,void 0,void 0,"DFUXRefLostFilesQueryResponse")},t.prototype.DFUXRefMessages=function(e){return this._connection.send("DFUXRefMessages",e,void 0,void 0,void 0,"DFUXRefMessagesQueryResponse")},t.prototype.DFUXRefOrphanFiles=function(e){return this._connection.send("DFUXRefOrphanFiles",e,void 0,void 0,void 0,"DFUXRefOrphanFilesQueryResponse")},t.prototype.DFUXRefUnusedFiles=function(e){return this._connection.send("DFUXRefUnusedFiles",e)},t}(Service);function jsonToIField(e,t){var n=typeof t;switch(n){case"boolean":case"number":case"string":return{id:e,type:n};case"object":if(t.Row instanceof Array&&(t=t.Row),t instanceof Array)return{id:e,type:"dataset",children:jsonToIFieldArr(t[0])};if(t instanceof Object){if(t.Item&&t.Item instanceof Array&&1===t.Item.length){var r=typeof t.Item[0];if("string"===r||"number"===r)return{id:e,type:"set",fieldType:r};throw new Error("Unknown field type")}return{id:e,type:"object",fields:jsonToIFieldObj(t)}}default:throw new Error("Unknown field type")}}function jsonToIFieldArr(e){e.Row&&e.Row instanceof Array&&(e=e.Row[0]);var t=[];for(var n in e)t.push(jsonToIField(n,e[n]));return t}function jsonToIFieldObj(e){var t={};for(var n in e)t[n]=jsonToIField(n,e[n]);return t}var EclService=function(e){function t(t){return e.call(this,t,"WsEcl","0")||this}return __extends(t,e),t.prototype.opts=function(){return this._connection.opts()},t.prototype.requestJson=function(e,t){return this._connection.send("example/request/query/".concat(e,"/").concat(t,"/json"),{},"text").then(function(e){var t=JSON.parse(e);for(var n in t)return t[n];return{}}).then(jsonToIFieldArr)},t.prototype.responseJson=function(e,t){return this._connection.send("example/response/query/".concat(e,"/").concat(t,"/json"),{},"text").then(function(e){var t=JSON.parse(e);for(var n in t)return t[n].Results;return{}}).then(function(e){var t={};for(var n in e)t[n]=jsonToIFieldArr(e[n]);return t})},t.prototype.submit=function(e,t,n){var r="submit/query/".concat(e,"/").concat(t);return this._connection.send(r,n,"json2").then(function(e){if(e.Results&&e.Results.Exception)throw new ESPExceptions(r,n,{Source:"wsEcl.submit",Exception:e.Results.Exception});return e.Results})},t}(Service),ElkServiceBase=function(e){function t(t){return e.call(this,t,"ws_elk","1")||this}return __extends(t,e),t.prototype.GetConfigDetails=function(e){return this._connection.send("GetConfigDetails",e)},t.prototype.Ping=function(e){return this._connection.send("Ping",e)},t}(Service),ElkService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(ElkServiceBase);exports.WsLogaccess=void 0,function(e){var t,n,r,o,i,s,c,u;(t=e.LogColumnType||(e.LogColumnType={})).global="global",t.workunits="workunits",t.components="components",t.audience="audience",t.class="class",t.instance="instance",t.node="node",t.message="message",t.logid="logid",t.processid="processid",t.threadid="threadid",t.timestamp="timestamp",t.pod="pod",t.traceid="traceid",t.spanid="spanid",(n=e.LogColumnValueType||(e.LogColumnValueType={})).string="string",n.numeric="numeric",n.datetime="datetime",n.enum="enum",n.epoch="epoch",(r=e.LogAccessType||(e.LogAccessType={}))[r.All=0]="All",r[r.ByJobID=1]="ByJobID",r[r.ByComponent=2]="ByComponent",r[r.ByLogType=3]="ByLogType",r[r.ByTargetAudience=4]="ByTargetAudience",r[r.BySourceInstance=5]="BySourceInstance",r[r.BySourceNode=6]="BySourceNode",r[r.ByFieldName=7]="ByFieldName",r[r.ByPod=8]="ByPod",r[r.ByTraceID=9]="ByTraceID",r[r.BySpanID=10]="BySpanID",(o=e.LogAccessStatusCode||(e.LogAccessStatusCode={}))[o.Success=0]="Success",o[o.Warning=1]="Warning",o[o.Fail=2]="Fail",(i=e.LogAccessFilterOperator||(e.LogAccessFilterOperator={}))[i.NONE=0]="NONE",i[i.AND=1]="AND",i[i.OR=2]="OR",(s=e.LogSelectColumnMode||(e.LogSelectColumnMode={}))[s.MIN=0]="MIN",s[s.DEFAULT=1]="DEFAULT",s[s.ALL=2]="ALL",s[s.CUSTOM=3]="CUSTOM",(c=e.SortColumType||(e.SortColumType={}))[c.ByDate=0]="ByDate",c[c.ByJobID=1]="ByJobID",c[c.ByComponent=2]="ByComponent",c[c.ByLogType=3]="ByLogType",c[c.ByTargetAudience=4]="ByTargetAudience",c[c.BySourceInstance=5]="BySourceInstance",c[c.BySourceNode=6]="BySourceNode",c[c.ByFieldName=7]="ByFieldName",c[c.ByPod=8]="ByPod",c[c.ByTraceID=9]="ByTraceID",c[c.BySpanID=10]="BySpanID",(u=e.SortDirection||(e.SortDirection={}))[u.ASC=0]="ASC",u[u.DSC=1]="DSC"}(exports.WsLogaccess||(exports.WsLogaccess={}));var LogaccessServiceBase=function(e){function t(t){return e.call(this,t,"ws_logaccess","1.08")||this}return __extends(t,e),t.prototype.GetHealthReport=function(e){return this._connection.send("GetHealthReport",e,"json",!1,void 0,"GetHealthReportResponse")},t.prototype.GetLogAccessInfo=function(e){return this._connection.send("GetLogAccessInfo",e,"json",!1,void 0,"GetLogAccessInfoResponse")},t.prototype.GetLogs=function(e){return this._connection.send("GetLogs",e,"json",!1,void 0,"GetLogsResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"ws_logaccessPingResponse")},t}(Service),logger$5=util.scopedLogger("@hpcc-js/comms/services/wsLogaccess.ts"),LogaccessService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.GetLogAccessInfo=function(t){return void 0===t&&(t={}),this._logAccessInfo||(this._logAccessInfo=e.prototype.GetLogAccessInfo.call(this,t)),this._logAccessInfo},t.prototype.GetLogs=function(t){return e.prototype.GetLogs.call(this,t)},t.prototype.GetLogsEx=function(e){return __awaiter(this,void 0,void 0,function(){var t,n,r,o,i,s,c,u,a,p,l,d,h,f,g,y,A,m;return __generator(this,function(b){switch(b.label){case 0:return[4,this.GetLogAccessInfo()];case 1:for(c in t=b.sent(),n={},t.Columns.Column.forEach(function(e){return n[e.LogType]=e.Name}),r=function(e){var t,r={};for(var o in n)(null==e?void 0:e.fields)?r[o]=null!==(t=Object.assign.apply(Object,__spreadArray([{}],e.fields,!1))[n[o]])&&void 0!==t?t:"":r[o]="";return r},o={Filter:{leftBinaryFilter:{BinaryLogFilter:[{leftFilter:{LogCategory:exports.WsLogaccess.LogAccessType.All}}]}},Range:{StartDate:new Date(0).toISOString()},LogLineStartFrom:null!==(a=e.LogLineStartFrom)&&void 0!==a?a:0,LogLineLimit:null!==(p=e.LogLineLimit)&&void 0!==p?p:100,SelectColumnMode:exports.WsLogaccess.LogSelectColumnMode.DEFAULT,Format:"JSON",SortBy:{SortCondition:[{BySortType:exports.WsLogaccess.SortColumType.ByDate,ColumnName:"",Direction:0}]}},i=[],s=function(t){var r,o;if(t in n&&(r=Object.values(exports.WsLogaccess.LogColumnType).includes(t)?t:n[t]),r){switch(r){case exports.WsLogaccess.LogColumnType.workunits:case"hpcc.log.jobid":o=exports.WsLogaccess.LogAccessType.ByJobID;break;case exports.WsLogaccess.LogColumnType.audience:case"hpcc.log.audience":o=exports.WsLogaccess.LogAccessType.ByTargetAudience;break;case exports.WsLogaccess.LogColumnType.class:case"hpcc.log.class":o=exports.WsLogaccess.LogAccessType.ByLogType;break;case exports.WsLogaccess.LogColumnType.components:case"kubernetes.container.name":o=exports.WsLogaccess.LogAccessType.ByComponent;break;default:o=exports.WsLogaccess.LogAccessType.ByFieldName,r=n[t]}if(Array.isArray(e[t]))e[t].forEach(function(e){o===exports.WsLogaccess.LogAccessType.ByComponent&&(e+="*"),i.push({LogCategory:o,SearchField:r,SearchByValue:e})});else{var s=e[t];o===exports.WsLogaccess.LogAccessType.ByComponent&&(s+="*"),i.push({LogCategory:o,SearchField:r,SearchByValue:s})}}},e)s(c);return i.length>2?(u=o.Filter.leftBinaryFilter.BinaryLogFilter[0],i.forEach(function(e,t){var n=exports.WsLogaccess.LogAccessFilterOperator.AND;t>0?(i[t-1].SearchField===e.SearchField&&(n=exports.WsLogaccess.LogAccessFilterOperator.OR),t===i.length-1?(u.Operator=n,u.rightFilter=e):(u.Operator=n,u.rightBinaryFilter={BinaryLogFilter:[{leftFilter:e}]},u=u.rightBinaryFilter.BinaryLogFilter[0])):u.leftFilter=e})):(delete o.Filter.leftBinaryFilter,o.Filter.leftFilter={LogCategory:exports.WsLogaccess.LogAccessType.All},(null===(l=i[0])||void 0===l?void 0:l.SearchField)&&(o.Filter.leftFilter={LogCategory:null===(d=i[0])||void 0===d?void 0:d.LogCategory,SearchField:null===(h=i[0])||void 0===h?void 0:h.SearchField,SearchByValue:null===(f=i[0])||void 0===f?void 0:f.SearchByValue}),(null===(g=i[1])||void 0===g?void 0:g.SearchField)&&(o.Filter.Operator=exports.WsLogaccess.LogAccessFilterOperator.AND,i[0].SearchField===i[1].SearchField&&(o.Filter.Operator=exports.WsLogaccess.LogAccessFilterOperator.OR),o.Filter.rightFilter={LogCategory:null===(y=i[1])||void 0===y?void 0:y.LogCategory,SearchField:null===(A=i[1])||void 0===A?void 0:A.SearchField,SearchByValue:null===(m=i[1])||void 0===m?void 0:m.SearchByValue})),e.StartDate&&(o.Range.StartDate=e.StartDate.toISOString()),e.EndDate&&(o.Range.EndDate=e.EndDate.toISOString()),[2,this.GetLogs(o).then(function(e){var n,o,i;try{var s=JSON.parse(e.LogLines),c=[];switch(t.RemoteLogManagerType){case"azureloganalyticscurl":case"elasticstack":case"grafanacurl":c=null!==(o=null===(n=s.lines)||void 0===n?void 0:n.map(r))&&void 0!==o?o:[];break;default:logger$5.warning("Unknown RemoteLogManagerType: ".concat(t.RemoteLogManagerType)),c=[]}return{lines:c,total:null!==(i=e.TotalLogLinesAvailable)&&void 0!==i?i:1e4}}catch(e){logger$5.error(e)}return{lines:[],total:0}})]}})})},t}(LogaccessServiceBase);function ascending(e,t){return e<t?-1:e>t?1:e>=t?0:NaN}function bisector(e){return 1===e.length&&(e=ascendingComparator(e)),{left:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)<0?r=i+1:o=i}return r},right:function(t,n,r,o){for(null==r&&(r=0),null==o&&(o=t.length);r<o;){var i=r+o>>>1;e(t[i],n)>0?o=i:r=i+1}return r}}}function ascendingComparator(e){return function(t,n){return ascending(e(t),n)}}function number(e){return null===e?NaN:+e}function d3Max(e,t){var n,r,o=e.length,i=-1;if(null==t){for(;++i<o;)if(null!=(n=e[i])&&n>=n)for(r=n;++i<o;)null!=(n=e[i])&&n>r&&(r=n)}else for(;++i<o;)if(null!=(n=t(e[i],i,e))&&n>=n)for(r=n;++i<o;)null!=(n=t(e[i],i,e))&&n>r&&(r=n);return r}function d3Mean(e,t){var n,r=e.length,o=r,i=-1,s=0;if(null==t)for(;++i<r;)isNaN(n=number(e[i]))?--o:s+=n;else for(;++i<r;)isNaN(n=number(t(e[i],i,e)))?--o:s+=n;if(o)return s/o}bisector(ascending);var MachineServiceBase=function(e){function t(t){return e.call(this,t,"ws_machine","1.17")||this}return __extends(t,e),t.prototype.GetComponentStatus=function(e){return this._connection.send("GetComponentStatus",e)},t.prototype.GetComponentUsage=function(e){return this._connection.send("GetComponentUsage",e)},t.prototype.GetMachineInfo=function(e){return this._connection.send("GetMachineInfo",e)},t.prototype.GetMachineInfoEx=function(e){return this._connection.send("GetMachineInfoEx",e)},t.prototype.GetMetrics=function(e){return this._connection.send("GetMetrics",e)},t.prototype.GetNodeGroupUsage=function(e){return this._connection.send("GetNodeGroupUsage",e)},t.prototype.GetTargetClusterInfo=function(e){return this._connection.send("GetTargetClusterInfo",e)},t.prototype.GetTargetClusterUsage=function(e){return this._connection.send("GetTargetClusterUsage",e)},t.prototype.Ping=function(e){return this._connection.send("Ping",e)},t.prototype.UpdateComponentStatus=function(e){return this._connection.send("UpdateComponentStatus",e)},t}(Service),MachineService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.GetTargetClusterUsageEx=function(e,t){return void 0===t&&(t=!1),this._connection.send("GetTargetClusterUsage",{TargetClusters:e?{Item:e}:{},BypassCachedResult:t}).then(function(e){return util.exists("TargetClusterUsages.TargetClusterUsage",e)?e.TargetClusterUsages.TargetClusterUsage:[]}).then(function(e){return e.filter(function(e){return!!e.ComponentUsages}).map(function(e){var t=e.ComponentUsages.ComponentUsage.map(function(e){var t=(e.MachineUsages&&e.MachineUsages.MachineUsage?e.MachineUsages.MachineUsage:[]).map(function(e){var t=e.DiskUsages&&e.DiskUsages.DiskUsage?e.DiskUsages.DiskUsage.map(function(e){return __assign(__assign({},e),{InUse:1024*e.InUse,Total:1024*(e.InUse+e.Available),PercentUsed:100-e.PercentAvailable})}):[];return{Name:e.Name,NetAddress:e.NetAddress,Description:e.Description,DiskUsages:t,mean:d3Mean(t.filter(function(e){return!isNaN(e.PercentUsed)}),function(e){return e.PercentUsed}),max:d3Max(t.filter(function(e){return!isNaN(e.PercentUsed)}),function(e){return e.PercentUsed})}});return{Type:e.Type,Name:e.Name,Description:e.Description,MachineUsages:t,MachineUsagesDescription:t.reduce(function(e,t){return e+(t.Description||"")},""),mean:d3Mean(t.filter(function(e){return!isNaN(e.mean)}),function(e){return e.mean}),max:d3Max(t.filter(function(e){return!isNaN(e.max)}),function(e){return e.max})}});return{Name:e.Name,Description:e.Description,ComponentUsages:t,ComponentUsagesDescription:t.reduce(function(e,t){return e+(t.MachineUsagesDescription||"")},""),mean:d3Mean(t.filter(function(e){return!isNaN(e.mean)}),function(e){return e.mean}),max:d3Max(t.filter(function(e){return!isNaN(e.max)}),function(e){return e.max})}})})},t}(MachineServiceBase),PackageProcessServiceBase=function(e){function t(t){return e.call(this,t,"WsPackageProcess","1.04")||this}return __extends(t,e),t.prototype.ActivatePackage=function(e){return this._connection.send("ActivatePackage",e)},t.prototype.AddPackage=function(e){return this._connection.send("AddPackage",e)},t.prototype.AddPartToPackageMap=function(e){return this._connection.send("AddPartToPackageMap",e)},t.prototype.CopyPackageMap=function(e){return this._connection.send("CopyPackageMap",e)},t.prototype.DeActivatePackage=function(e){return this._connection.send("DeActivatePackage",e)},t.prototype.DeletePackage=function(e){return this._connection.send("DeletePackage",e)},t.prototype.Echo=function(e){return this._connection.send("Echo",e)},t.prototype.GetPackage=function(e){return this._connection.send("GetPackage",e)},t.prototype.GetPackageMapById=function(e){return this._connection.send("GetPackageMapById",e)},t.prototype.GetPackageMapSelectOptions=function(e){return this._connection.send("GetPackageMapSelectOptions",e)},t.prototype.GetPartFromPackageMap=function(e){return this._connection.send("GetPartFromPackageMap",e)},t.prototype.GetQueryFileMapping=function(e){return this._connection.send("GetQueryFileMapping",e)},t.prototype.ListPackage=function(e){return this._connection.send("ListPackage",e)},t.prototype.ListPackages=function(e){return this._connection.send("ListPackages",e)},t.prototype.Ping=function(e){return this._connection.send("Ping",e)},t.prototype.RemovePartFromPackageMap=function(e){return this._connection.send("RemovePartFromPackageMap",e)},t.prototype.ValidatePackage=function(e){return this._connection.send("ValidatePackage",e)},t}(Service),PackageProcessService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(PackageProcessServiceBase),ResourcesServiceBase=function(e){function t(t){return e.call(this,t,"WsResources","1.01")||this}return __extends(t,e),t.prototype.Ping=function(e){return this._connection.send("Ping",e)},t.prototype.ServiceQuery=function(e){return this._connection.send("ServiceQuery",e)},t.prototype.WebLinksQuery=function(e){return this._connection.send("WebLinksQuery",e)},t}(Service),ResourcesService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(ResourcesServiceBase);exports.WsSasha=void 0,function(e){var t;(t=e.WUTypes||(e.WUTypes={})).ECL="ECL",t.DFU="DFU"}(exports.WsSasha||(exports.WsSasha={}));var SashaServiceBase=function(e){function t(t){return e.call(this,t,"WSSasha","1.01")||this}return __extends(t,e),t.prototype.ArchiveWU=function(e){return this._connection.send("ArchiveWU",e,"json",!1,void 0,"ResultResponse")},t.prototype.GetVersion=function(e){return this._connection.send("GetVersion",e,"json",!1,void 0,"ResultResponse")},t.prototype.ListWU=function(e){return this._connection.send("ListWU",e,"json",!1,void 0,"ResultResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"WSSashaPingResponse")},t.prototype.RestoreWU=function(e){return this._connection.send("RestoreWU",e,"json",!1,void 0,"ResultResponse")},t}(Service),SashaService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(SashaServiceBase);exports.WsSMC=void 0,function(e){var t,n;(t=e.LockModes||(e.LockModes={})).ALL="ALL",t.READ="READ",t.WRITE="WRITE",t.HOLD="HOLD",t.SUB="SUB",(n=e.RoxieControlCmdType||(e.RoxieControlCmdType={})).Attach="Attach",n.Detach="Detach",n.State="State",n.Reload="Reload",n.ReloadRetry="ReloadRetry",n.MemLock="MemLock",n.MemUnlock="MemUnlock",n.GetMemLocked="GetMemLocked"}(exports.WsSMC||(exports.WsSMC={}));var SMCServiceBase=function(e){function t(t){return e.call(this,t,"WsSMC","1.27")||this}return __extends(t,e),t.prototype.Activity=function(e){return this._connection.send("Activity",e,"json",!1,void 0,"ActivityResponse")},t.prototype.BrowseResources=function(e){return this._connection.send("BrowseResources",e,"json",!1,void 0,"BrowseResourcesResponse")},t.prototype.ClearQueue=function(e){return this._connection.send("ClearQueue",e,"json",!1,void 0,"SMCQueueResponse")},t.prototype.GetBuildInfo=function(e){return this._connection.send("GetBuildInfo",e,"json",!1,void 0,"GetBuildInfoResponse")},t.prototype.GetStatusServerInfo=function(e){return this._connection.send("GetStatusServerInfo",e,"json",!1,void 0,"GetStatusServerInfoResponse")},t.prototype.GetThorQueueAvailability=function(e){return this._connection.send("GetThorQueueAvailability",e,"json",!1,void 0,"GetThorQueueAvailabilityResponse")},t.prototype.Index=function(e){return this._connection.send("Index",e,"json",!1,void 0,"SMCIndexResponse")},t.prototype.LockQuery=function(e){return this._connection.send("LockQuery",e,"json",!1,void 0,"LockQueryResponse")},t.prototype.MoveJobBack=function(e){return this._connection.send("MoveJobBack",e,"json",!1,void 0,"SMCJobResponse")},t.prototype.MoveJobDown=function(e){return this._connection.send("MoveJobDown",e,"json",!1,void 0,"SMCJobResponse")},t.prototype.MoveJobFront=function(e){return this._connection.send("MoveJobFront",e,"json",!1,void 0,"SMCJobResponse")},t.prototype.MoveJobUp=function(e){return this._connection.send("MoveJobUp",e,"json",!1,void 0,"SMCJobResponse")},t.prototype.NotInCommunityEdition=function(e){return this._connection.send("NotInCommunityEdition",e,"json",!1,void 0,"NotInCommunityEditionResponse")},t.prototype.PauseQueue=function(e){return this._connection.send("PauseQueue",e,"json",!1,void 0,"SMCQueueResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"WsSMCPingResponse")},t.prototype.RemoveJob=function(e){return this._connection.send("RemoveJob",e,"json",!1,void 0,"SMCJobResponse")},t.prototype.ResumeQueue=function(e){return this._connection.send("ResumeQueue",e,"json",!1,void 0,"SMCQueueResponse")},t.prototype.RoxieControlCmd=function(e){return this._connection.send("RoxieControlCmd",e,"json",!1,void 0,"RoxieControlCmdResponse")},t.prototype.RoxieXrefCmd=function(e){return this._connection.send("RoxieXrefCmd",e,"json",!1,void 0,"RoxieXrefCmdResponse")},t.prototype.SetBanner=function(e){return this._connection.send("SetBanner",e,"json",!1,void 0,"SetBannerResponse")},t.prototype.SetJobPriority=function(e){return this._connection.send("SetJobPriority",e,"json",!1,void 0,"SMCPriorityResponse")},t.prototype.StopQueue=function(e){return this._connection.send("StopQueue",e,"json",!1,void 0,"SMCQueueResponse")},t}(Service),SMCService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.connectionOptions=function(){return this._connection.opts()},t.prototype.Activity=function(t){return e.prototype.Activity.call(this,t).then(function(e){return __assign({Running:{ActiveWorkunit:[]}},e)})},t}(SMCServiceBase),StoreService=function(e){function t(t){return e.call(this,t,"WsStore","1")||this}return __extends(t,e),t.prototype.CreateStore=function(e){return this._connection.send("Fetch",e)},t.prototype.Delete=function(e){return this._connection.send("Delete",e).catch(function(e){if(e.isESPExceptions&&e.Exception.some(function(e){return-1===e.Code}))return{Exceptions:void 0,Success:!0};throw e})},t.prototype.DeleteNamespace=function(e){return this._connection.send("DeleteNamespace",e)},t.prototype.Fetch=function(e){return this._connection.send("Fetch",e).catch(function(e){if(e.isESPExceptions&&e.Exception.some(function(e){return-1===e.Code}))return{Exceptions:void 0,Value:void 0};throw e})},t.prototype.FetchAll=function(e){return this._connection.send("FetchAll",e)},t.prototype.FetchKeyMD=function(e){return this._connection.send("FetchKeyMD",e)},t.prototype.ListKeys=function(e){return this._connection.send("ListKeys",e)},t.prototype.ListNamespaces=function(e){return this._connection.send("ListNamespaces",e)},t.prototype.Set=function(e){return this._connection.send("Set",e)},t}(Service);exports.WsTopology=void 0,function(e){var t;(t=e.RoxieQueueFilter||(e.RoxieQueueFilter={})).All="All",t.QueriesOnly="QueriesOnly",t.WorkunitsOnly="WorkunitsOnly"}(exports.WsTopology||(exports.WsTopology={}));var TopologyServiceBase=function(e){function t(t){return e.call(this,t,"WsTopology","1.32")||this}return __extends(t,e),t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"WsTopologyPingResponse")},t.prototype.SystemLog=function(e){return this._connection.send("SystemLog",e,"json",!1,void 0,"SystemLogResponse")},t.prototype.TpClusterInfo=function(e){return this._connection.send("TpClusterInfo",e,"json",!1,void 0,"TpClusterInfoResponse")},t.prototype.TpClusterQuery=function(e){return this._connection.send("TpClusterQuery",e,"json",!1,void 0,"TpClusterQueryResponse")},t.prototype.TpDropZoneQuery=function(e){return this._connection.send("TpDropZoneQuery",e,"json",!1,void 0,"TpDropZoneQueryResponse")},t.prototype.TpGetComponentFile=function(e){return this._connection.send("TpGetComponentFile",e,"json",!1,void 0,"TpGetComponentFileResponse")},t.prototype.TpGetServicePlugins=function(e){return this._connection.send("TpGetServicePlugins",e,"json",!1,void 0,"TpGetServicePluginsResponse")},t.prototype.TpGroupQuery=function(e){return this._connection.send("TpGroupQuery",e,"json",!1,void 0,"TpGroupQueryResponse")},t.prototype.TpListLogFiles=function(e){return this._connection.send("TpListLogFiles",e,"json",!1,void 0,"TpListLogFilesResponse")},t.prototype.TpListTargetClusters=function(e){return this._connection.send("TpListTargetClusters",e,"json",!1,void 0,"TpListTargetClustersResponse")},t.prototype.TpLogFile=function(e){return this._connection.send("TpLogFile",e,"json",!1,void 0,"TpLogFileResponse")},t.prototype.TpLogFileDisplay=function(e){return this._connection.send("TpLogFileDisplay",e,"json",!1,void 0,"TpLogFileResponse")},t.prototype.TpLogicalClusterQuery=function(e){return this._connection.send("TpLogicalClusterQuery",e,"json",!1,void 0,"TpLogicalClusterQueryResponse")},t.prototype.TpMachineInfo=function(e){return this._connection.send("TpMachineInfo",e,"json",!1,void 0,"TpMachineInfoResponse")},t.prototype.TpMachineQuery=function(e){return this._connection.send("TpMachineQuery",e,"json",!1,void 0,"TpMachineQueryResponse")},t.prototype.TpServiceQuery=function(e){return this._connection.send("TpServiceQuery",e,"json",!1,void 0,"TpServiceQueryResponse")},t.prototype.TpSetMachineStatus=function(e){return this._connection.send("TpSetMachineStatus",e,"json",!1,void 0,"TpSetMachineStatusResponse")},t.prototype.TpSwapNode=function(e){return this._connection.send("TpSwapNode",e,"json",!1,void 0,"TpSwapNodeResponse")},t.prototype.TpTargetClusterQuery=function(e){return this._connection.send("TpTargetClusterQuery",e,"json",!1,void 0,"TpTargetClusterQueryResponse")},t.prototype.TpThorStatus=function(e){return this._connection.send("TpThorStatus",e,"json",!1,void 0,"TpThorStatusResponse")},t.prototype.TpXMLFile=function(e){return this._connection.send("TpXMLFile",e,"json",!1,void 0,"TpXMLFileResponse")},t}(Service),TopologyService=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.connectionOptions=function(){return this._connection.opts()},t.prototype.protocol=function(){return this._connection.opts().baseUrl.split("//")[0]},t.prototype.ip=function(){return this._connection.opts().baseUrl.split("//")[1].split(":")[0]},t.prototype.DefaultTpLogicalClusterQuery=function(e){return void 0===e&&(e={}),this.TpLogicalClusterQuery(e).then(function(e){return e.default?e.default:(e.TpLogicalClusters.TpLogicalCluster.some(function(e,r){return 0===r&&(n=e),"hthor"===e.Type&&(t=e,!0)}),t||n);var t,n})},t}(TopologyServiceBase);exports.WsWorkunits=void 0,function(e){var t,n,r,o,i,s,c,u,a,p,l,d,h,f,g;(t=e.ECLWUActions||(e.ECLWUActions={})).Abort="Abort",t.Delete="Delete",t.Deschedule="Deschedule",t.Reschedule="Reschedule",t.Pause="Pause",t.PauseNow="PauseNow",t.Protect="Protect",t.Unprotect="Unprotect",t.Restore="Restore",t.Resume="Resume",t.SetToFailed="SetToFailed",t.Archive="Archive",(n=e.LogSelectColumnMode||(e.LogSelectColumnMode={}))[n.MIN=0]="MIN",n[n.DEFAULT=1]="DEFAULT",n[n.ALL=2]="ALL",n[n.CUSTOM=3]="CUSTOM",(r=e.SortDirection||(e.SortDirection={}))[r.ASC=0]="ASC",r[r.DSC=1]="DSC",(o=e.LogEventClass||(e.LogEventClass={})).ALL="ALL",o.DIS="DIS",o.ERR="ERR",o.WRN="WRN",o.INF="INF",o.PRO="PRO",o.MET="MET",o.EVT="EVT",(i=e.WUDetailsAttrValueType||(e.WUDetailsAttrValueType={})).Single="Single",i.List="List",i.Multi="Multi",(s=e.EclDefinitionActions||(e.EclDefinitionActions={})).SyntaxCheck="SyntaxCheck",s.Deploy="Deploy",s.Publish="Publish",(c=e.ErrorMessageFormat||(e.ErrorMessageFormat={})).xml="xml",c.json="json",c.text="text",(u=e.LogAccessLogFormat||(e.LogAccessLogFormat={}))[u.XML=0]="XML",u[u.JSON=1]="JSON",u[u.CSV=2]="CSV",(a=e.WUExceptionSeverity||(e.WUExceptionSeverity={})).info="info",a.warning="warning",a.error="error",a.alert="alert",(p=e.WUQueryFilterSuspendedType||(e.WUQueryFilterSuspendedType={})).Allqueries="All queries",p.Notsuspended="Not suspended",p.Suspended="Suspended",p.Suspendedbyuser="Suspended by user",p.Suspendedbyfirstnode="Suspended by first node",p.Suspendedbyanynode="Suspended by any node",(l=e.WUQuerySetFilterType||(e.WUQuerySetFilterType={})).All="All",l.Id="Id",l.Name="Name",l.Alias="Alias",l.Status="Status",(d=e.WUProtectFilter||(e.WUProtectFilter={})).All="All",d.Protected="Protected",d.NotProtected="NotProtected",(e.QuerySetAliasActionTypes||(e.QuerySetAliasActionTypes={})).Deactivate="Deactivate",(h=e.QuerysetImportActivation||(e.QuerysetImportActivation={})).None="None",h.ActivateImportedActive="ActivateImportedActive",(f=e.QuerySetQueryActionTypes||(e.QuerySetQueryActionTypes={})).Suspend="Suspend",f.Unsuspend="Unsuspend",f.ToggleSuspend="ToggleSuspend",f.Activate="Activate",f.Delete="Delete",f.DeleteQueriesAndWUs="DeleteQueriesAndWUs",f.RemoveAllAliases="RemoveAllAliases",f.ResetQueryStats="ResetQueryStats",(g=e.WUQueryActivationMode||(e.WUQueryActivationMode={}))[g.DoNotActivateQuery=0]="DoNotActivateQuery",g[g.ActivateQuery=1]="ActivateQuery",g[g.ActivateQuerySuspendPrevious=2]="ActivateQuerySuspendPrevious",g[g.ActivateQueryDeletePrevious=3]="ActivateQueryDeletePrevious"}(exports.WsWorkunits||(exports.WsWorkunits={}));var WorkunitsServiceBase=function(e){function t(t){return e.call(this,t,"WsWorkunits","2.02")||this}return __extends(t,e),t.prototype.GVCAjaxGraph=function(e){return this._connection.send("GVCAjaxGraph",e,"json",!1,void 0,"GVCAjaxGraphResponse")},t.prototype.Ping=function(e){return this._connection.send("Ping",e,"json",!1,void 0,"WsWorkunitsPingResponse")},t.prototype.WUAbort=function(e){return this._connection.send("WUAbort",e,"json",!1,void 0,"WUAbortResponse")},t.prototype.WUAction=function(e){return this._connection.send("WUAction",e,"json",!1,void 0,"WUActionResponse")},t.prototype.WUAddLocalFileToWorkunit=function(e){return this._connection.send("WUAddLocalFileToWorkunit",e,"json",!1,void 0,"WUAddLocalFileToWorkunitResponse")},t.prototype.WUAnalyseHotspot=function(e){return this._connection.send("WUAnalyseHotspot",e,"json",!1,void 0,"WUAnalyseHotspotResponse")},t.prototype.WUCDebug=function(e){return this._connection.send("WUCDebug",e,"json",!1,void 0,"WUDebugResponse")},t.prototype.WUCheckFeatures=function(e){return this._connection.send("WUCheckFeatures",e,"json",!1,void 0,"WUCheckFeaturesResponse")},t.prototype.WUClusterJobQueueLOG=function(e){return this._connection.send("WUClusterJobQueueLOG",e,"json",!1,void 0,"WUClusterJobQueueLOGResponse")},t.prototype.WUClusterJobQueueXLS=function(e){return this._connection.send("WUClusterJobQueueXLS",e,"json",!1,void 0,"WUClusterJobQueueXLSResponse")},t.prototype.WUClusterJobSummaryXLS=function(e){return this._connection.send("WUClusterJobSummaryXLS",e,"json",!1,void 0,"WUClusterJobSummaryXLSResponse")},t.prototype.WUClusterJobXLS=function(e){return this._connection.send("WUClusterJobXLS",e,"json",!1,void 0,"WUClusterJobXLSResponse")},t.prototype.WUCompileECL=function(e){return this._connection.send("WUCompileECL",e,"json",!1,void 0,"WUCompileECLResponse")},t.prototype.WUCopyLogicalFiles=function(e){return this._connection.send("WUCopyLogicalFiles",e,"json",!1,void 0,"WUCopyLogicalFilesResponse")},t.prototype.WUCopyQuerySet=function(e){return this._connection.send("WUCopyQuerySet",e,"json",!1,void 0,"WUCopyQuerySetResponse")},t.prototype.WUCreate=function(e){return this._connection.send("WUCreate",e,"json",!1,void 0,"WUCreateResponse")},t.prototype.WUCreateAndUpdate=function(e){return this._connection.send("WUCreateAndUpdate",e,"json",!1,void 0,"WUUpdateResponse")},t.prototype.WUCreateZAPInfo=function(e){return this._connection.send("WUCreateZAPInfo",e,"json",!1,void 0,"WUCreateZAPInfoResponse")},t.prototype.WUDelete=function(e){return this._connection.send("WUDelete",e,"json",!1,void 0,"WUDeleteResponse")},t.prototype.WUDeployWorkunit=function(e){return this._connection.send("WUDeployWorkunit",e,"json",!1,void 0,"WUDeployWorkunitResponse")},t.prototype.WUDetails=function(e){return this._connection.send("WUDetails",e,"json",!1,void 0,"WUDetailsResponse")},t.prototype.WUDetailsMeta=function(e){return this._connection.send("WUDetailsMeta",e,"json",!1,void 0,"WUDetailsMetaResponse")},t.prototype.WUEclDefinitionAction=function(e){return this._connection.send("WUEclDefinitionAction",e,"json",!1,void 0,"WUEclDefinitionActionResponse")},t.prototype.WUExport=function(e){return this._connection.send("WUExport",e,"json",!1,void 0,"WUExportResponse")},t.prototype.WUFile=function(e){return this._connection.send("WUFile",e,"json",!1,void 0,"WULogFileResponse")},t.prototype.WUFullResult=function(e){return this._connection.send("WUFullResult",e,"json",!1,void 0,"WUFullResultResponse")},t.prototype.WUGVCGraphInfo=function(e){return this._connection.send("WUGVCGraphInfo",e,"json",!1,void 0,"WUGVCGraphInfoResponse")},t.prototype.WUGetArchiveFile=function(e){return this._connection.send("WUGetArchiveFile",e,"json",!1,void 0,"WUGetArchiveFileResponse")},t.prototype.WUGetDependancyTrees=function(e){return this._connection.send("WUGetDependancyTrees",e,"json",!1,void 0,"WUGetDependancyTreesResponse")},t.prototype.WUGetGraph=function(e){return this._connection.send("WUGetGraph",e,"json",!1,void 0,"WUGetGraphResponse")},t.prototype.WUGetGraphNameAndTypes=function(e){return this._connection.send("WUGetGraphNameAndTypes",e,"json",!1,void 0,"WUGetGraphNameAndTypesResponse")},t.prototype.WUGetNumFileToCopy=function(e){return this._connection.send("WUGetNumFileToCopy",e,"json",!1,void 0,"WUGetNumFileToCopyResponse")},t.prototype.WUGetPlugins=function(e){return this._connection.send("WUGetPlugins",e,"json",!1,void 0,"WUGetPluginsResponse")},t.prototype.WUGetStats=function(e){return this._connection.send("WUGetStats",e,"json",!1,void 0,"WUGetStatsResponse")},t.prototype.WUGetThorJobList=function(e){return this._connection.send("WUGetThorJobList",e,"json",!1,void 0,"WUGetThorJobListResponse")},t.prototype.WUGetThorJobQueue=function(e){return this._connection.send("WUGetThorJobQueue",e,"json",!1,void 0,"WUGetThorJobQueueResponse")},t.prototype.WUGetZAPInfo=function(e){return this._connection.send("WUGetZAPInfo",e,"json",!1,void 0,"WUGetZAPInfoResponse")},t.prototype.WUGraphInfo=function(e){return this._connection.send("WUGraphInfo",e,"json",!1,void 0,"WUGraphInfoResponse")},t.prototype.WUGraphTiming=function(e){return this._connection.send("WUGraphTiming",e,"json",!1,void 0,"WUGraphTimingResponse")},t.prototype.WUInfo=function(e){return this._connection.send("WUInfo",e,"json",!1,void 0,"WUInfoResponse")},t.prototype.WUInfoDetails=function(e){return this._connection.send("WUInfoDetails",e,"json",!1,void 0,"WUInfoResponse")},t.prototype.WUJobList=function(e){return this._connection.send("WUJobList",e,"json",!1,void 0,"WUJobListResponse")},t.prototype.WULightWeightQuery=function(e){return this._connection.send("WULightWeightQuery",e,"json",!1,void 0,"WULightWeightQueryResponse")},t.prototype.WUListArchiveFiles=function(e){return this._connection.send("WUListArchiveFiles",e,"json",!1,void 0,"WUListArchiveFilesResponse")},t.prototype.WUListLocalFileRequired=function(e){return this._connection.send("WUListLocalFileRequired",e,"json",!1,void 0,"WUListLocalFileRequiredResponse")},t.prototype.WUListQueries=function(e){return this._connection.send("WUListQueries",e,"json",!1,void 0,"WUListQueriesResponse")},t.prototype.WUListQueriesUsingFile=function(e){return this._connection.send("WUListQueriesUsingFile",e,"json",!1,void 0,"WUListQueriesUsingFileResponse")},t.prototype.WUMultiQuerysetDetails=function(e){return this._connection.send("WUMultiQuerysetDetails",e,"json",!1,void 0,"WUMultiQuerySetDetailsResponse")},t.prototype.WUProcessGraph=function(e){return this._connection.send("WUProcessGraph",e,"json",!1,void 0,"WUProcessGraphResponse")},t.prototype.WUProtect=function(e){return this._connection.send("WUProtect",e,"json",!1,void 0,"WUProtectResponse")},t.prototype.WUPublishWorkunit=function(e){return this._connection.send("WUPublishWorkunit",e,"json",!1,void 0,"WUPublishWorkunitResponse")},t.prototype.WUPushEvent=function(e){return this._connection.send("WUPushEvent",e,"json",!1,void 0,"WUPushEventResponse")},t.prototype.WUQuery=function(e){return this._connection.send("WUQuery",e,"json",!1,void 0,"WUQueryResponse")},t.prototype.WUQueryConfig=function(e){return this._connection.send("WUQueryConfig",e,"json",!1,void 0,"WUQueryConfigResponse")},t.prototype.WUQueryDetails=function(e){return this._connection.send("WUQueryDetails",e,"json",!1,void 0,"WUQueryDetailsResponse")},t.prototype.WUQueryDetailsLightWeight=function(e){return this._connection.send("WUQueryDetailsLightWeight",e,"json",!1,void 0,"WUQueryDetailsResponse")},t.prototype.WUQueryFiles=function(e){return this._connection.send("WUQueryFiles",e,"json",!1,void 0,"WUQueryFilesResponse")},t.prototype.WUQueryGetGraph=function(e){return this._connection.send("WUQueryGetGraph",e,"json",!1,void 0,"WUQueryGetGraphResponse")},t.prototype.WUQueryGetSummaryStats=function(e){return this._connection.send("WUQueryGetSummaryStats",e,"json",!1,void 0,"WUQueryGetSummaryStatsResponse")},t.prototype.WUQuerysetAliasAction=function(e){return this._connection.send("WUQuerysetAliasAction",e,"json",!1,void 0,"WUQuerySetAliasActionResponse")},t.prototype.WUQuerysetCopyQuery=function(e){return this._connection.send("WUQuerysetCopyQuery",e,"json",!1,void 0,"WUQuerySetCopyQueryResponse")},t.prototype.WUQuerysetDetails=function(e){return this._connection.send("WUQuerysetDetails",e,"json",!1,void 0,"WUQuerySetDetailsResponse")},t.prototype.WUQuerysetExport=function(e){return this._connection.send("WUQuerysetExport",e,"json",!1,void 0,"WUQuerysetExportResponse")},t.prototype.WUQuerysetImport=function(e){return this._connection.send("WUQuerysetImport",e,"json",!1,void 0,"WUQuerysetImportResponse")},t.prototype.WUQuerysetQueryAction=function(e){return this._connection.send("WUQuerysetQueryAction",e,"json",!1,void 0,"WUQuerySetQueryActionResponse")},t.prototype.WUQuerysets=function(e){return this._connection.send("WUQuerysets",e,"json",!1,void 0,"WUQuerysetsResponse")},t.prototype.WURecreateQuery=function(e){return this._connection.send("WURecreateQuery",e,"json",!1,void 0,"WURecreateQueryResponse")},t.prototype.WUResubmit=function(e){return this._connection.send("WUResubmit",e,"json",!1,void 0,"WUResubmitResponse")},t.prototype.WUResult=function(e){return this._connection.send("WUResult",e,"json",!1,void 0,"WUResultResponse")},t.prototype.WUResultBin=function(e){return this._connection.send("WUResultBin",e,"json",!1,void 0,"WUResultBinResponse")},t.prototype.WUResultSummary=function(e){return this._connection.send("WUResultSummary",e,"json",!1,void 0,"WUResultSummaryResponse")},t.prototype.WUResultView=function(e){return this._connection.send("WUResultView",e,"json",!1,void 0,"WUResultViewResponse")},t.prototype.WURun=function(e){return this._connection.send("WURun",e,"json",!1,void 0,"WURunResponse")},t.prototype.WUSchedule=function(e){return this._connection.send("WUSchedule",e,"json",!1,void 0,"WUScheduleResponse")},t.prototype.WUShowScheduled=function(e){return this._connection.send("WUShowScheduled",e,"json",!1,void 0,"WUShowScheduledResponse")},t.prototype.WUSubmit=function(e){return this._connection.send("WUSubmit",e,"json",!1,void 0,"WUSubmitResponse")},t.prototype.WUSyntaxCheckECL=function(e){return this._connection.send("WUSyntaxCheckECL",e,"json",!1,void 0,"WUSyntaxCheckResponse")},t.prototype.WUUpdate=function(e){return this._connection.send("WUUpdate",e,"json",!1,void 0,"WUUpdateResponse")},t.prototype.WUUpdateQueryEntry=function(e){return this._connection.send("WUUpdateQueryEntry",e,"json",!1,void 0,"WUUpdateQueryEntryResponse")},t.prototype.WUWaitCompiled=function(e){return this._connection.send("WUWaitCompiled",e,"json",!1,void 0,"WUWaitResponse")},t.prototype.WUWaitComplete=function(e){return this._connection.send("WUWaitComplete",e,"json",!1,void 0,"WUWaitResponse")},t}(Service);function isECLResult(e){return"string"==typeof e.Name}function isWUQueryECLWorkunit(e){return void 0!==e.TotalClusterTime}function isWUInfoWorkunit(e){return void 0!==e.StateEx}exports.WUStateID=void 0,function(e){e[e.Unknown=0]="Unknown",e[e.Compiled=1]="Compiled",e[e.Running=2]="Running",e[e.Completed=3]="Completed",e[e.Failed=4]="Failed",e[e.Archived=5]="Archived",e[e.Aborting=6]="Aborting",e[e.Aborted=7]="Aborted",e[e.Blocked=8]="Blocked",e[e.Submitted=9]="Submitted",e[e.Scheduled=10]="Scheduled",e[e.Compiling=11]="Compiling",e[e.Wait=12]="Wait",e[e.UploadingFiled=13]="UploadingFiled",e[e.DebugPaused=14]="DebugPaused",e[e.DebugRunning=15]="DebugRunning",e[e.Paused=16]="Paused",e[e.LAST=17]="LAST",e[e.NotFound=999]="NotFound"}(exports.WUStateID||(exports.WUStateID={})),exports.WUUpdate=void 0,function(e){var t;(t=e.Action||(e.Action={}))[t.Unknown=0]="Unknown",t[t.Compile=1]="Compile",t[t.Check=2]="Check",t[t.Run=3]="Run",t[t.ExecuteExisting=4]="ExecuteExisting",t[t.Pause=5]="Pause",t[t.PauseNow=6]="PauseNow",t[t.Resume=7]="Resume",t[t.Debug=8]="Debug",t[t.__size=9]="__size"}(exports.WUUpdate||(exports.WUUpdate={}));var WorkunitsService=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.Ping=function(){return this._connection.send("Ping",{},"json",!1,void 0,"WsWorkunitsPingResponse").then(function(e){return{result:!0}}).catch(function(e){return{result:!1,error:e}})},t.prototype.WUQuery=function(e,t){return void 0===e&&(e={}),this._connection.send("WUQuery",e,"json",!1,t).then(function(e){return util.deepMixin({Workunits:{ECLWorkunit:[]}},e)})},t.prototype.WUInfo=function(t){var n=__assign({Wuid:"",TruncateEclTo64k:!0,IncludeExceptions:!1,IncludeGraphs:!1,IncludeSourceFiles:!1,IncludeResults:!1,IncludeResultsViewNames:!1,IncludeVariables:!1,IncludeTimers:!1,IncludeDebugValues:!1,IncludeApplicationValues:!1,IncludeWorkflows:!1,IncludeXmlSchemas:!1,IncludeResourceURLs:!1,IncludeECL:!1,IncludeHelpers:!1,IncludeAllowedClusters:!1,IncludeTotalClusterTime:!1,IncludeServiceNames:!1,SuppressResultSchemas:!0},t);return e.prototype.WUInfo.call(this,n)},t.prototype.WUCreate=function(){return e.prototype.WUCreate.call(this,{})},t.prototype.WUUpdate=function(e){return this._connection.send("WUUpdate",e,"json",!0)},t.prototype.WUResubmit=function(t){return this._connection.toESPStringArray(t,"Wuids"),e.prototype.WUResubmit.call(this,t)},t.prototype.WUAction=function(t){return t.ActionType=t.WUActionType,e.prototype.WUAction.call(this,t)},t.prototype.WUResult=function(e,t){return this._connection.send("WUResult",e,"json",!1,t)},t.prototype.WUFileEx=function(e){return this._connection.send("WUFile",e,"text")},t.prototype.WUDetailsMeta=function(t){return this._WUDetailsMetaPromise||(this._WUDetailsMetaPromise=e.prototype.WUDetailsMeta.call(this,t)),this._WUDetailsMetaPromise},t.prototype.WUCDebugEx=function(e){return this._connection.send("WUCDebug",e,void 0,void 0,void 0,"WUDebug").then(function(e){var t=util.xml2json(e.Result).children();return t.length?t[0]:null})},t}(WorkunitsServiceBase),WorkunitsServiceEx=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t.prototype.WUPublishWorkunitEx=function(e){return this._connection.send("WUPublishWorkunit",e)},t}(WorkunitsServiceBase);function formatDecimal(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function formatDecimalParts(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function exponent(e){return(e=formatDecimalParts(Math.abs(e)))?e[1]:NaN}function formatGroup(e,t){return function(n,r){for(var o=n.length,i=[],s=0,c=e[0],u=0;o>0&&c>0&&(u+c+1>r&&(c=Math.max(1,r-u)),i.push(n.substring(o-=c,o+c)),!((u+=c+1)>r));)c=e[s=(s+1)%e.length];return i.reverse().join(t)}}function formatNumerals(e){return function(t){return t.replace(/[0-9]/g,function(t){return e[+t]})}}var prefixExponent,re=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function formatSpecifier(e){if(!(t=re.exec(e)))throw new Error("invalid format: "+e);var t;return new FormatSpecifier({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}function FormatSpecifier(e){this.fill=void 0===e.fill?" ":e.fill+"",this.align=void 0===e.align?">":e.align+"",this.sign=void 0===e.sign?"-":e.sign+"",this.symbol=void 0===e.symbol?"":e.symbol+"",this.zero=!!e.zero,this.width=void 0===e.width?void 0:+e.width,this.comma=!!e.comma,this.precision=void 0===e.precision?void 0:+e.precision,this.trim=!!e.trim,this.type=void 0===e.type?"":e.type+""}function formatTrim(e){e:for(var t,n=e.length,r=1,o=-1;r<n;++r)switch(e[r]){case".":o=t=r;break;case"0":0===o&&(o=r),t=r;break;default:if(!+e[r])break e;o>0&&(o=0)}return o>0?e.slice(0,o)+e.slice(t+1):e}function formatPrefixAuto(e,t){var n=formatDecimalParts(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(prefixExponent=3*Math.max(-8,Math.min(8,Math.floor(o/3))))+1,s=r.length;return i===s?r:i>s?r+new Array(i-s+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+formatDecimalParts(e,Math.max(0,t+i-1))[0]}function formatRounded(e,t){var n=formatDecimalParts(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}formatSpecifier.prototype=FormatSpecifier.prototype,FormatSpecifier.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(void 0===this.width?"":Math.max(1,0|this.width))+(this.comma?",":"")+(void 0===this.precision?"":"."+Math.max(0,0|this.precision))+(this.trim?"~":"")+this.type};var formatTypes={"%":function(e,t){return(100*e).toFixed(t)},b:function(e){return Math.round(e).toString(2)},c:function(e){return e+""},d:formatDecimal,e:function(e,t){return e.toExponential(t)},f:function(e,t){return e.toFixed(t)},g:function(e,t){return e.toPrecision(t)},o:function(e){return Math.round(e).toString(8)},p:function(e,t){return formatRounded(100*e,t)},r:formatRounded,s:formatPrefixAuto,X:function(e){return Math.round(e).toString(16).toUpperCase()},x:function(e){return Math.round(e).toString(16)}};function identity(e){return e}var locale$1,format,map=Array.prototype.map,prefixes=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function formatLocale$1(e){var t=void 0===e.grouping||void 0===e.thousands?identity:formatGroup(map.call(e.grouping,Number),e.thousands+""),n=void 0===e.currency?"":e.currency[0]+"",r=void 0===e.currency?"":e.currency[1]+"",o=e.decimal+"",i=void 0===e.numerals?identity:formatNumerals(map.call(e.numerals,String)),s=void 0===e.percent?"%":e.percent+"",c=e.minus+"",u=void 0===e.nan?"NaN":e.nan+"";function a(e){var a=(e=formatSpecifier(e)).fill,p=e.align,l=e.sign,d=e.symbol,h=e.zero,f=e.width,g=e.comma,y=e.precision,A=e.trim,m=e.type;"n"===m?(g=!0,m="g"):formatTypes[m]||(void 0===y&&(y=12),A=!0,m="g"),(h||"0"===a&&"="===p)&&(h=!0,a="0",p="=");var b="$"===d?n:"#"===d&&/[boxX]/.test(m)?"0"+m.toLowerCase():"",v="$"===d?r:/[%p]/.test(m)?s:"",C=formatTypes[m],D=/[defgprs%]/.test(m);function S(e){var n,r,s,d=b,S=v;if("c"===m)S=C(e)+S,e="";else{var B=(e=+e)<0||1/e<0;if(e=isNaN(e)?u:C(Math.abs(e),y),A&&(e=formatTrim(e)),B&&0===+e&&"+"!==l&&(B=!1),d=(B?"("===l?l:c:"-"===l||"("===l?"":l)+d,S=("s"===m?prefixes[8+prefixExponent/3]:"")+S+(B&&"("===l?")":""),D)for(n=-1,r=e.length;++n<r;)if(48>(s=e.charCodeAt(n))||s>57){S=(46===s?o+e.slice(n+1):e.slice(n))+S,e=e.slice(0,n);break}}g&&!h&&(e=t(e,1/0));var w=d.length+e.length+S.length,E=w<f?new Array(f-w+1).join(a):"";switch(g&&h&&(e=t(E+e,E.length?f-S.length:1/0),E=""),p){case"<":e=d+e+S+E;break;case"=":e=d+E+e+S;break;case"^":e=E.slice(0,w=E.length>>1)+d+e+S+E.slice(w);break;default:e=E+d+e+S}return i(e)}return y=void 0===y?6:/[gprs]/.test(m)?Math.max(1,Math.min(21,y)):Math.max(0,Math.min(20,y)),S.toString=function(){return e+""},S}return{format:a,formatPrefix:function(e,t){var n=a(((e=formatSpecifier(e)).type="f",e)),r=3*Math.max(-8,Math.min(8,Math.floor(exponent(t)/3))),o=Math.pow(10,-r),i=prefixes[8+r/3];return function(e){return n(o*e)+i}}}}function defaultLocale$1(e){return locale$1=formatLocale$1(e),format=locale$1.format,locale$1.formatPrefix,locale$1}defaultLocale$1({decimal:".",thousands:",",grouping:[3],currency:["$",""],minus:"-"});var t0=new Date,t1=new Date;function newInterval(e,t,n,r){function o(t){return e(t=0===arguments.length?new Date:new Date(+t)),t}return o.floor=function(t){return e(t=new Date(+t)),t},o.ceil=function(n){return e(n=new Date(n-1)),t(n,1),e(n),n},o.round=function(e){var t=o(e),n=o.ceil(e);return e-t<n-e?t:n},o.offset=function(e,n){return t(e=new Date(+e),null==n?1:Math.floor(n)),e},o.range=function(n,r,i){var s,c=[];if(n=o.ceil(n),i=null==i?1:Math.floor(i),!(n<r&&i>0))return c;do{c.push(s=new Date(+n)),t(n,i),e(n)}while(s<n&&n<r);return c},o.filter=function(n){return newInterval(function(t){if(t>=t)for(;e(t),!n(t);)t.setTime(t-1)},function(e,r){if(e>=e)if(r<0)for(;++r<=0;)for(;t(e,-1),!n(e););else for(;--r>=0;)for(;t(e,1),!n(e););})},n&&(o.count=function(t,r){return t0.setTime(+t),t1.setTime(+r),e(t0),e(t1),Math.floor(n(t0,t1))},o.every=function(e){return e=Math.floor(e),isFinite(e)&&e>0?e>1?o.filter(r?function(t){return r(t)%e===0}:function(t){return o.count(0,t)%e===0}):o:null}),o}var durationMinute=6e4,durationDay=864e5,durationWeek=6048e5,day=newInterval(function(e){e.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*durationMinute)/durationDay},function(e){return e.getDate()-1});function weekday(e){return newInterval(function(t){t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},function(e,t){e.setDate(e.getDate()+7*t)},function(e,t){return(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*durationMinute)/durationWeek})}day.range;var sunday=weekday(0),monday=weekday(1),tuesday=weekday(2),wednesday=weekday(3),thursday=weekday(4),friday=weekday(5),saturday=weekday(6);sunday.range,monday.range,tuesday.range,wednesday.range,thursday.range,friday.range,saturday.range;var year=newInterval(function(e){e.setMonth(0,1),e.setHours(0,0,0,0)},function(e,t){e.setFullYear(e.getFullYear()+t)},function(e,t){return t.getFullYear()-e.getFullYear()},function(e){return e.getFullYear()});year.every=function(e){return isFinite(e=Math.floor(e))&&e>0?newInterval(function(t){t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},function(t,n){t.setFullYear(t.getFullYear()+n*e)}):null},year.range;var utcDay=newInterval(function(e){e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+t)},function(e,t){return(t-e)/durationDay},function(e){return e.getUTCDate()-1});function utcWeekday(e){return newInterval(function(t){t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},function(e,t){e.setUTCDate(e.getUTCDate()+7*t)},function(e,t){return(t-e)/durationWeek})}utcDay.range;var utcSunday=utcWeekday(0),utcMonday=utcWeekday(1),utcTuesday=utcWeekday(2),utcWednesday=utcWeekday(3),utcThursday=utcWeekday(4),utcFriday=utcWeekday(5),utcSaturday=utcWeekday(6);utcSunday.range,utcMonday.range,utcTuesday.range,utcWednesday.range,utcThursday.range,utcFriday.range,utcSaturday.range;var utcYear=newInterval(function(e){e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},function(e,t){e.setUTCFullYear(e.getUTCFullYear()+t)},function(e,t){return t.getUTCFullYear()-e.getUTCFullYear()},function(e){return e.getUTCFullYear()});function localDate(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function utcDate(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function newDate(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function formatLocale(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,s=e.shortDays,c=e.months,u=e.shortMonths,a=formatRe(o),p=formatLookup(o),l=formatRe(i),d=formatLookup(i),h=formatRe(s),f=formatLookup(s),g=formatRe(c),y=formatLookup(c),A=formatRe(u),m=formatLookup(u),b={a:function(e){return s[e.getDay()]},A:function(e){return i[e.getDay()]},b:function(e){return u[e.getMonth()]},B:function(e){return c[e.getMonth()]},c:null,d:formatDayOfMonth,e:formatDayOfMonth,f:formatMicroseconds,g:formatYearISO,G:formatFullYearISO,H:formatHour24,I:formatHour12,j:formatDayOfYear,L:formatMilliseconds,m:formatMonthNumber,M:formatMinutes,p:function(e){return o[+(e.getHours()>=12)]},q:function(e){return 1+~~(e.getMonth()/3)},Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatSeconds,u:formatWeekdayNumberMonday,U:formatWeekNumberSunday,V:formatWeekNumberISO,w:formatWeekdayNumberSunday,W:formatWeekNumberMonday,x:null,X:null,y:formatYear,Y:formatFullYear,Z:formatZone,"%":formatLiteralPercent},v={a:function(e){return s[e.getUTCDay()]},A:function(e){return i[e.getUTCDay()]},b:function(e){return u[e.getUTCMonth()]},B:function(e){return c[e.getUTCMonth()]},c:null,d:formatUTCDayOfMonth,e:formatUTCDayOfMonth,f:formatUTCMicroseconds,g:formatUTCYearISO,G:formatUTCFullYearISO,H:formatUTCHour24,I:formatUTCHour12,j:formatUTCDayOfYear,L:formatUTCMilliseconds,m:formatUTCMonthNumber,M:formatUTCMinutes,p:function(e){return o[+(e.getUTCHours()>=12)]},q:function(e){return 1+~~(e.getUTCMonth()/3)},Q:formatUnixTimestamp,s:formatUnixTimestampSeconds,S:formatUTCSeconds,u:formatUTCWeekdayNumberMonday,U:formatUTCWeekNumberSunday,V:formatUTCWeekNumberISO,w:formatUTCWeekdayNumberSunday,W:formatUTCWeekNumberMonday,x:null,X:null,y:formatUTCYear,Y:formatUTCFullYear,Z:formatUTCZone,"%":formatLiteralPercent},C={a:function(e,t,n){var r=h.exec(t.slice(n));return r?(e.w=f[r[0].toLowerCase()],n+r[0].length):-1},A:function(e,t,n){var r=l.exec(t.slice(n));return r?(e.w=d[r[0].toLowerCase()],n+r[0].length):-1},b:function(e,t,n){var r=A.exec(t.slice(n));return r?(e.m=m[r[0].toLowerCase()],n+r[0].length):-1},B:function(e,t,n){var r=g.exec(t.slice(n));return r?(e.m=y[r[0].toLowerCase()],n+r[0].length):-1},c:function(e,n,r){return B(e,t,n,r)},d:parseDayOfMonth,e:parseDayOfMonth,f:parseMicroseconds,g:parseYear,G:parseFullYear,H:parseHour24,I:parseHour24,j:parseDayOfYear,L:parseMilliseconds,m:parseMonthNumber,M:parseMinutes,p:function(e,t,n){var r=a.exec(t.slice(n));return r?(e.p=p[r[0].toLowerCase()],n+r[0].length):-1},q:parseQuarter,Q:parseUnixTimestamp,s:parseUnixTimestampSeconds,S:parseSeconds,u:parseWeekdayNumberMonday,U:parseWeekNumberSunday,V:parseWeekNumberISO,w:parseWeekdayNumberSunday,W:parseWeekNumberMonday,x:function(e,t,r){return B(e,n,t,r)},X:function(e,t,n){return B(e,r,t,n)},y:parseYear,Y:parseFullYear,Z:parseZone,"%":parseLiteralPercent};function D(e,t){return function(n){var r,o,i,s=[],c=-1,u=0,a=e.length;for(n instanceof Date||(n=new Date(+n));++c<a;)37===e.charCodeAt(c)&&(s.push(e.slice(u,c)),null!=(o=pads[r=e.charAt(++c)])?r=e.charAt(++c):o="e"===r?" ":"0",(i=t[r])&&(r=i(n,o)),s.push(r),u=c+1);return s.push(e.slice(u,c)),s.join("")}}function S(e,t){return function(n){var r,o,i=newDate(1900,void 0,1);if(B(i,e,n+="",0)!=n.length)return null;if("Q"in i)return new Date(i.Q);if("s"in i)return new Date(1e3*i.s+("L"in i?i.L:0));if(t&&!("Z"in i)&&(i.Z=0),"p"in i&&(i.H=i.H%12+12*i.p),void 0===i.m&&(i.m="q"in i?i.q:0),"V"in i){if(i.V<1||i.V>53)return null;"w"in i||(i.w=1),"Z"in i?(o=(r=utcDate(newDate(i.y,0,1))).getUTCDay(),r=o>4||0===o?utcMonday.ceil(r):utcMonday(r),r=utcDay.offset(r,7*(i.V-1)),i.y=r.getUTCFullYear(),i.m=r.getUTCMonth(),i.d=r.getUTCDate()+(i.w+6)%7):(o=(r=localDate(newDate(i.y,0,1))).getDay(),r=o>4||0===o?monday.ceil(r):monday(r),r=day.offset(r,7*(i.V-1)),i.y=r.getFullYear(),i.m=r.getMonth(),i.d=r.getDate()+(i.w+6)%7)}else("W"in i||"U"in i)&&("w"in i||(i.w="u"in i?i.u%7:"W"in i?1:0),o="Z"in i?utcDate(newDate(i.y,0,1)).getUTCDay():localDate(newDate(i.y,0,1)).getDay(),i.m=0,i.d="W"in i?(i.w+6)%7+7*i.W-(o+5)%7:i.w+7*i.U-(o+6)%7);return"Z"in i?(i.H+=i.Z/100|0,i.M+=i.Z%100,utcDate(i)):localDate(i)}}function B(e,t,n,r){for(var o,i,s=0,c=t.length,u=n.length;s<c;){if(r>=u)return-1;if(37===(o=t.charCodeAt(s++))){if(o=t.charAt(s++),!(i=C[o in pads?t.charAt(s++):o])||(r=i(e,n,r))<0)return-1}else if(o!=n.charCodeAt(r++))return-1}return r}return b.x=D(n,b),b.X=D(r,b),b.c=D(t,b),v.x=D(n,v),v.X=D(r,v),v.c=D(t,v),{format:function(e){var t=D(e+="",b);return t.toString=function(){return e},t},parse:function(e){var t=S(e+="",!1);return t.toString=function(){return e},t},utcFormat:function(e){var t=D(e+="",v);return t.toString=function(){return e},t},utcParse:function(e){var t=S(e+="",!0);return t.toString=function(){return e},t}}}utcYear.every=function(e){return isFinite(e=Math.floor(e))&&e>0?newInterval(function(t){t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},function(t,n){t.setUTCFullYear(t.getUTCFullYear()+n*e)}):null},utcYear.range;var locale,utcFormat,utcParse,pads={"-":"",_:" ",0:"0"},numberRe=/^\s*\d+/,percentRe=/^%/,requoteRe=/[\\^$*+?|[\]().{}]/g;function pad(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function requote(e){return e.replace(requoteRe,"\\$&")}function formatRe(e){return new RegExp("^(?:"+e.map(requote).join("|")+")","i")}function formatLookup(e){for(var t={},n=-1,r=e.length;++n<r;)t[e[n].toLowerCase()]=n;return t}function parseWeekdayNumberSunday(e,t,n){var r=numberRe.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function parseWeekdayNumberMonday(e,t,n){var r=numberRe.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function parseWeekNumberSunday(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function parseWeekNumberISO(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function parseWeekNumberMonday(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function parseFullYear(e,t,n){var r=numberRe.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function parseYear(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function parseZone(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function parseQuarter(e,t,n){var r=numberRe.exec(t.slice(n,n+1));return r?(e.q=3*r[0]-3,n+r[0].length):-1}function parseMonthNumber(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function parseDayOfMonth(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function parseDayOfYear(e,t,n){var r=numberRe.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function parseHour24(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function parseMinutes(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function parseSeconds(e,t,n){var r=numberRe.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function parseMilliseconds(e,t,n){var r=numberRe.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function parseMicroseconds(e,t,n){var r=numberRe.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function parseLiteralPercent(e,t,n){var r=percentRe.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function parseUnixTimestamp(e,t,n){var r=numberRe.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function parseUnixTimestampSeconds(e,t,n){var r=numberRe.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function formatDayOfMonth(e,t){return pad(e.getDate(),t,2)}function formatHour24(e,t){return pad(e.getHours(),t,2)}function formatHour12(e,t){return pad(e.getHours()%12||12,t,2)}function formatDayOfYear(e,t){return pad(1+day.count(year(e),e),t,3)}function formatMilliseconds(e,t){return pad(e.getMilliseconds(),t,3)}function formatMicroseconds(e,t){return formatMilliseconds(e,t)+"000"}function formatMonthNumber(e,t){return pad(e.getMonth()+1,t,2)}function formatMinutes(e,t){return pad(e.getMinutes(),t,2)}function formatSeconds(e,t){return pad(e.getSeconds(),t,2)}function formatWeekdayNumberMonday(e){var t=e.getDay();return 0===t?7:t}function formatWeekNumberSunday(e,t){return pad(sunday.count(year(e)-1,e),t,2)}function dISO(e){var t=e.getDay();return t>=4||0===t?thursday(e):thursday.ceil(e)}function formatWeekNumberISO(e,t){return e=dISO(e),pad(thursday.count(year(e),e)+(4===year(e).getDay()),t,2)}function formatWeekdayNumberSunday(e){return e.getDay()}function formatWeekNumberMonday(e,t){return pad(monday.count(year(e)-1,e),t,2)}function formatYear(e,t){return pad(e.getFullYear()%100,t,2)}function formatYearISO(e,t){return pad((e=dISO(e)).getFullYear()%100,t,2)}function formatFullYear(e,t){return pad(e.getFullYear()%1e4,t,4)}function formatFullYearISO(e,t){var n=e.getDay();return pad((e=n>=4||0===n?thursday(e):thursday.ceil(e)).getFullYear()%1e4,t,4)}function formatZone(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+pad(t/60|0,"0",2)+pad(t%60,"0",2)}function formatUTCDayOfMonth(e,t){return pad(e.getUTCDate(),t,2)}function formatUTCHour24(e,t){return pad(e.getUTCHours(),t,2)}function formatUTCHour12(e,t){return pad(e.getUTCHours()%12||12,t,2)}function formatUTCDayOfYear(e,t){return pad(1+utcDay.count(utcYear(e),e),t,3)}function formatUTCMilliseconds(e,t){return pad(e.getUTCMilliseconds(),t,3)}function formatUTCMicroseconds(e,t){return formatUTCMilliseconds(e,t)+"000"}function formatUTCMonthNumber(e,t){return pad(e.getUTCMonth()+1,t,2)}function formatUTCMinutes(e,t){return pad(e.getUTCMinutes(),t,2)}function formatUTCSeconds(e,t){return pad(e.getUTCSeconds(),t,2)}function formatUTCWeekdayNumberMonday(e){var t=e.getUTCDay();return 0===t?7:t}function formatUTCWeekNumberSunday(e,t){return pad(utcSunday.count(utcYear(e)-1,e),t,2)}function UTCdISO(e){var t=e.getUTCDay();return t>=4||0===t?utcThursday(e):utcThursday.ceil(e)}function formatUTCWeekNumberISO(e,t){return e=UTCdISO(e),pad(utcThursday.count(utcYear(e),e)+(4===utcYear(e).getUTCDay()),t,2)}function formatUTCWeekdayNumberSunday(e){return e.getUTCDay()}function formatUTCWeekNumberMonday(e,t){return pad(utcMonday.count(utcYear(e)-1,e),t,2)}function formatUTCYear(e,t){return pad(e.getUTCFullYear()%100,t,2)}function formatUTCYearISO(e,t){return pad((e=UTCdISO(e)).getUTCFullYear()%100,t,2)}function formatUTCFullYear(e,t){return pad(e.getUTCFullYear()%1e4,t,4)}function formatUTCFullYearISO(e,t){var n=e.getUTCDay();return pad((e=n>=4||0===n?utcThursday(e):utcThursday.ceil(e)).getUTCFullYear()%1e4,t,4)}function formatUTCZone(){return"+0000"}function formatLiteralPercent(){return"%"}function formatUnixTimestamp(e){return+e}function formatUnixTimestampSeconds(e){return Math.floor(+e/1e3)}function defaultLocale(e){return(locale=formatLocale(e)).format,locale.parse,utcFormat=locale.utcFormat,utcParse=locale.utcParse,locale}defaultLocale({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});var ECLGraph=function(e){function t(t,n,r){var o=e.call(this)||this;o.wu=t;for(var i=0,s=0,c=r;s<c.length;s++){var u=c[s];if(u.GraphName===n.Name&&!u.HasSubGraphId){i=Math.round(1e3*u.Seconds)/1e3;break}}return o.set(__assign({Time:i},n)),o}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Label",{get:function(){return this.get("Label")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Type",{get:function(){return this.get("Type")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Complete",{get:function(){return this.get("Complete")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WhenStarted",{get:function(){return this.get("WhenStarted")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WhenFinished",{get:function(){return this.get("WhenFinished")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Time",{get:function(){return this.get("Time")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Running",{get:function(){return this.get("Running")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RunningId",{get:function(){return this.get("RunningId")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Failed",{get:function(){return this.get("Failed")},enumerable:!1,configurable:!0}),t.prototype.fetchScopeGraph=function(e){return e?this.wu.fetchGraphDetails([e],["subgraph"]).then(function(e){return createGraph(e)}):this.wu.fetchGraphDetails([this.Name],["graph"]).then(function(e){return createGraph(e)})},t}(util.StateObject),GraphCache=function(e){function t(){return e.call(this,function(e){return util.Cache.hash([e.Name])})||this}return __extends(t,e),t}(util.Cache);function walkXmlJson$1(e,t,n){(n=n||[]).push(e),t(e.name,e.$,e.children(),n),e.children().forEach(function(e){walkXmlJson$1(e,t,n)}),n.pop()}function flattenAtt(e){var t={};return e.forEach(function(e){"att"===e.name&&(t[e.$.name]=e.$.value)}),t}var XGMMLGraph=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Graph),XGMMLSubgraph=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Subgraph),XGMMLVertex=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Vertex),XGMMLEdge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Edge);function createXGMMLGraph(e,t){var n={},r={},o={},i=new XGMMLGraph(function(e){return e._.id}),s=[i.root];return walkXmlJson$1(t,function(e,t,i,c){var u=s[s.length-1];switch(e){case"graph":break;case"node":if(i.length&&i[0].children().length&&"graph"===i[0].children()[0].name){var a=u.createSubgraph(flattenAtt(i));s.push(a),n[t.id]=a}var p=u.createVertex(flattenAtt(i));r[t.id]=p;break;case"edge":var l=u.createEdge(r[t.source],r[t.target],flattenAtt(i));o[t.id]=l}}),i}var ScopeGraph=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Graph),ScopeSubgraph=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Subgraph),ScopeVertex=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Vertex),ScopeEdge=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return __extends(t,e),t}(util.Edge);function createGraph(e){for(var t,n={},r={},o={},i=0,s=e;i<s.length;i++){switch((d=s[i]).ScopeType){case"graph":t=new ScopeGraph(function(e){return e._.Id},d),n[d.ScopeName]=t.root;break;case"subgraph":t||(t=new ScopeGraph(function(e){return e._.Id},d),n[d.ScopeName]=t.root);for(var c=d.parentScope().split(":"),u=n[d.parentScope()];c.length&&!u;)u=n[c.join(":")],c.pop();if(u){var a=u;n[d.ScopeName]=a.createSubgraph(d)}else console.warn("Missing SG:Parent (".concat(d.Id,"): ").concat(d.parentScope()));break;case"activity":var p=n[d.parentScope()];p?o[d.ScopeName]=p.createVertex(d):console.warn("Missing A:Parent (".concat(d.Id,"): ").concat(d.parentScope()));break;case"edge":r[d.ScopeName]=d;break;case"function":(h=o[d.parentScope()])?h._.children().push(d):console.warn("Missing F:Parent (".concat(d.Id,"): ").concat(d.parentScope()))}}for(var l in r){var d,h;if(h=n[(d=r[l]).parentScope()]){var f=h;try{var g=t.vertex(d.attr("IdSource").RawValue),y=t.vertex(d.attr("IdTarget").RawValue);f.createEdge(g,y,d)}catch(e){console.warn("Invalid Edge: ".concat(l))}}else console.warn("Missing E:Parent (".concat(d.Id,"): ").concat(d.parentScope()))}return t}var Resource=function(e){function t(t,n){var r=e.call(this)||this;r.wu=t;var o=n.split("\\").join("/"),i=o.split("/"),s="res/"+r.wu.Wuid+"/",c="",u="";return 0===o.indexOf(s)&&(c=o.substr(s.length),u=i[i.length-1]),r.set({URL:n,DisplayName:u,DisplayPath:c}),r}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"URL",{get:function(){return this.get("URL")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DisplayName",{get:function(){return this.get("DisplayName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DisplayPath",{get:function(){return this.get("DisplayPath")},enumerable:!1,configurable:!0}),t}(util.StateObject),XSDNode=function(){function e(e){this.e=e}return e.prototype.fix=function(){delete this.e},e}(),XSDXMLNode=function(e){function t(t){var n=e.call(this,t)||this;return n.isSet=!1,n.attrs={},n._children=[],n}return __extends(t,e),t.prototype.append=function(e){this._children.push(e),this.type||(this.type="hpcc:childDataset")},t.prototype.fix=function(){var e;this.name=this.e.$.name,this.type=this.e.$.type;for(var t=this._children.length-1;t>=0;--t){var n=this._children[t];"Row"===n.name&&void 0===n.type&&((e=this._children).push.apply(e,n._children),this._children.splice(t,1))}var r=this.setOfType();r&&(this.type=r,this.isSet=!0,this._children=[])},t.prototype.children=function(){return this._children},t.prototype.isAll=function(e){return"All"===e.name&&void 0===e.type},t.prototype.setOfType=function(){var e=this.children();if(void 0===this.type&&2===e.length){if(this.isAll(e[0]))return e[1].type;if(this.isAll(e[1]))return e[0].type}},t.prototype.charWidth=function(){var e=-1;switch(this.type){case"xs:boolean":e=5;break;case"xs:integer":case"xs:nonNegativeInteger":case"xs:double":e=8;break;case"xs:string":e=32;break;default:for(var t=this.type.lastIndexOf("_"),n=t>0?t:this.type.length,r=n-1;r>=0&&-1!=="0123456789".indexOf(this.type.charAt(r));--r);r+1<n&&(e=parseInt(this.type.substring(r+1,n),10)),0===this.type.indexOf("data")&&(e*=2)}return e<this.name.length&&(e=this.name.length),e},t}(XSDNode),XSDSimpleType=function(e){function t(t){return e.call(this,t)||this}return __extends(t,e),t.prototype.append=function(e){switch(e.name){case"xs:restriction":this._restricition=e;break;case"xs:maxLength":this._maxLength=e}},t.prototype.fix=function(){this.name=this.e.$.name,this.type=this._restricition.$.base,this.maxLength=this._maxLength?+this._maxLength.$.value:void 0,delete this._restricition,delete this._maxLength,e.prototype.fix.call(this)},t}(XSDNode),XSDSchema=function(){function e(){this.simpleTypes={}}return e.prototype.fields=function(){return this.root.children()},e}(),XSDParser=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.schema=new XSDSchema,t.simpleTypes={},t.xsdStack=new util.Stack,t}return __extends(t,e),t.prototype.startXMLNode=function(t){switch(e.prototype.startXMLNode.call(this,t),t.name){case"xs:element":var n=new XSDXMLNode(t);this.schema.root?this.xsdStack.depth()&&this.xsdStack.top().append(n):this.schema.root=n,this.xsdStack.push(n);break;case"xs:simpleType":this.simpleType=new XSDSimpleType(t)}},t.prototype.endXMLNode=function(t){switch(t.name){case"xs:element":this.xsdStack.pop().fix();break;case"xs:simpleType":this.simpleType.fix(),this.simpleTypes[this.simpleType.name]=this.simpleType,delete this.simpleType;break;case"xs:appinfo":var n=this.xsdStack.top();for(var r in t.$)n.attrs[r]=t.$[r];break;default:this.simpleType&&this.simpleType.append(t)}e.prototype.endXMLNode.call(this,t)},t}(util.SAXStackParser);function parseXSD(e){var t=new XSDParser;return t.parse(e),t.schema}var XSDParser2=function(e){function t(t){var n=e.call(this)||this;return n.schema=new XSDSchema,n.simpleTypes={},n.xsdStack=new util.Stack,n._rootName=t,n}return __extends(t,e),t.prototype.startXMLNode=function(t){switch(e.prototype.startXMLNode.call(this,t),t.name){case"xsd:element":var n=new XSDXMLNode(t);this.schema.root||this._rootName!==t.$.name||(this.schema.root=n),this.xsdStack.depth()&&this.xsdStack.top().append(n),this.xsdStack.push(n);break;case"xsd:simpleType":this.simpleType=new XSDSimpleType(t)}},t.prototype.endXMLNode=function(t){"xsd:element"===t.name&&this.xsdStack.pop().fix();e.prototype.endXMLNode.call(this,t)},t}(XSDParser);function parseXSD2(e,t){var n=new XSDParser2(t);return n.parse(e),n.schema}var GlobalResultCache=function(e){function t(){return e.call(this,function(e){return"".concat(e.BaseUrl,"-").concat(e.Wuid,"-").concat(e.ResultName)})||this}return __extends(t,e),t}(util.Cache),_results=new GlobalResultCache,Result=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.connection=t instanceof WorkunitsService?t:new WorkunitsService(t),"boolean"==typeof o&&!0===o?i.set({NodeGroup:n,LogicalFileName:r}):isECLResult(r)&&Array.isArray(o)?i.set(__assign(__assign({},r),{Wuid:n,ResultName:r.Name,ResultViews:o})):void 0===o?"number"==typeof r?i.set({Wuid:n,ResultSequence:r}):"string"==typeof r?i.set({Wuid:n,ResultName:r}):console.warn("Unknown Result.attach (1)"):console.warn("Unknown Result.attach (2)"),i}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultName",{get:function(){return this.get("ResultName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultSequence",{get:function(){return this.get("ResultSequence")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LogicalFileName",{get:function(){return this.get("LogicalFileName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Sequence",{get:function(){return this.get("Sequence")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Value",{get:function(){return this.get("Value")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Link",{get:function(){return this.get("Link")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FileName",{get:function(){return this.get("FileName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsSupplied",{get:function(){return this.get("IsSupplied")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowFileContent",{get:function(){return this.get("ShowFileContent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Total",{get:function(){return this.get("Total")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ECLSchemas",{get:function(){return this.get("ECLSchemas")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"NodeGroup",{get:function(){return this.get("NodeGroup")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultViews",{get:function(){return this.get("ResultViews")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"XmlSchema",{get:function(){return this.get("XmlSchema")},enumerable:!1,configurable:!0}),t.attach=function(e,n,r,o){var i;return Array.isArray(o)?(i=_results.get({BaseUrl:e.baseUrl,Wuid:n,ResultName:r.Name},function(){return new t(e,n,r,o)})).set(r):void 0===o&&("number"==typeof r?i=_results.get({BaseUrl:e.baseUrl,Wuid:n,ResultName:"Sequence_"+r},function(){return new t(e,n,r)}):"string"==typeof r&&(i=_results.get({BaseUrl:e.baseUrl,Wuid:n,ResultName:r},function(){return new t(e,n,r)}))),i},t.attachLogicalFile=function(e,n,r){return _results.get({BaseUrl:e.baseUrl,Wuid:n,ResultName:r},function(){return new t(e,n,r,!0)})},t.prototype.isComplete=function(){return-1!==this.Total},t.prototype.fetchXMLSchema=function(e){var t=this;return void 0===e&&(e=!1),this._fetchXMLSchemaPromise&&!e||(this._fetchXMLSchemaPromise=this.WUResult().then(function(e){var n,r;return(null===(r=null===(n=e.Result)||void 0===n?void 0:n.XmlSchema)||void 0===r?void 0:r.xml)?(t.xsdSchema=parseXSD(e.Result.XmlSchema.xml),t.xsdSchema):null})),this._fetchXMLSchemaPromise},t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,this.fetchRows(0,1,!0)];case 1:return e.sent(),[2,this]}})})},t.prototype.fetchRows=function(e,t,n,r,o){var i=this;return void 0===e&&(e=0),void 0===t&&(t=-1),void 0===n&&(n=!1),void 0===r&&(r={}),this.WUResult(e,t,!n,r,o).then(function(e){var t=e.Result;return delete e.Result,i.set(__assign({},e)),util.exists("XmlSchema.xml",t)&&(i.xsdSchema=parseXSD(t.XmlSchema.xml)),util.exists("Row",t)?t.Row:i.ResultName&&util.exists(i.ResultName,t)?t[i.ResultName].Row:[]})},t.prototype.rootField=function(){return this.xsdSchema?this.xsdSchema.root:null},t.prototype.fields=function(){return this.xsdSchema?this.xsdSchema.root.children():[]},t.prototype.WUResult=function(e,t,n,r,o){void 0===e&&(e=0),void 0===t&&(t=1),void 0===n&&(n=!1),void 0===r&&(r={});var i={NamedValue:{itemcount:0}};for(var s in r)i.NamedValue[i.NamedValue.itemcount++]={Name:s,Value:r[s]};var c={FilterBy:i};return this.Wuid&&void 0!==this.ResultName?(c.Wuid=this.Wuid,c.ResultName=this.ResultName):this.Wuid&&void 0!==this.ResultSequence?(c.Wuid=this.Wuid,c.Sequence=this.ResultSequence):this.LogicalFileName&&this.NodeGroup?(c.LogicalName=this.LogicalFileName,c.Cluster=this.NodeGroup):this.LogicalFileName&&(c.LogicalName=this.LogicalFileName),c.Start=e,c.Count=t,c.SuppressXmlSchema=n,this.connection.WUResult(c,o).then(function(e){return e})},t}(util.StateObject),ResultCache=function(e){function t(){return e.call(this,function(e){return util.Cache.hash([e.Sequence,e.Name,e.Value,e.FileName])})||this}return __extends(t,e),t}(util.Cache),Attribute=function(e){function t(t,n){var r=e.call(this)||this;return r.scope=t,r.set(n),r}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RawValue",{get:function(){return this.get("RawValue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Formatted",{get:function(){return this.get("Formatted")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FormattedEnd",{get:function(){return this.get("FormattedEnd")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Measure",{get:function(){return this.get("Measure")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Creator",{get:function(){return this.get("Creator")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CreatorType",{get:function(){return this.get("CreatorType")},enumerable:!1,configurable:!0}),t}(util.StateObject),BaseScope=function(e){function t(t){var n=e.call(this)||this;return n._attributeMap={},n._children=[],n.update(t),n}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ScopeName",{get:function(){return this.get("ScopeName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Id",{get:function(){return this.get("Id")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ScopeType",{get:function(){return this.get("ScopeType")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Properties",{get:function(){return this.get("Properties",{Property:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Notes",{get:function(){return this.get("Notes",{Note:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SinkActivity",{get:function(){return this.get("SinkActivity")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CAttributes",{get:function(){var e=this,t=[],n={start:null,end:null};return this.Properties.Property.forEach(function(r){"ts"===r.Measure&&r.Name.indexOf("Started")>=0?n.start=r:e.ScopeName&&"ts"===r.Measure&&r.Name.indexOf("Finished")>=0?n.end=r:t.push(new Attribute(e,r))}),n.start&&n.end?(n.start.FormattedEnd=n.end.Formatted,t.push(new Attribute(this,n.start))):n.start?t.push(new Attribute(this,n.start)):n.end&&t.push(new Attribute(this,n.end)),t},enumerable:!1,configurable:!0}),t.prototype.update=function(e){var t=this;for(var n in this.set(e),this.CAttributes.forEach(function(e){t._attributeMap[e.Name]=e}),this.Properties.Property=[],this._attributeMap)this._attributeMap.hasOwnProperty(n)&&this.Properties.Property.push(this._attributeMap[n].properties)},t.prototype.parentScope=function(){var e=this.ScopeName.split(":");return e.pop(),e.join(":")},t.prototype.children=function(e){return arguments.length?(this._children=e,this):this._children},t.prototype.walk=function(e){if(e.start(this))return!0;for(var t=0,n=this.children();t<n.length;t++){if(n[t].walk(e))return!0}return e.end(this)},t.prototype.formattedAttrs=function(){var e={};for(var t in this._attributeMap)e[t]=this._attributeMap[t].Formatted||this._attributeMap[t].RawValue;return e},t.prototype.rawAttrs=function(){var e={};for(var t in this._attributeMap)e[t]=this._attributeMap[t].RawValue;return e},t.prototype.hasAttr=function(e){return void 0!==this._attributeMap[e]},t.prototype.attr=function(e){return this._attributeMap[e]||new Attribute(this,{Creator:"",CreatorType:"",Formatted:"",Measure:"",Name:"",RawValue:""})},t.prototype.attrMeasure=function(e){return this._attributeMap[e].Measure},t.prototype.calcTooltip=function(e){var t="",n=[];t=this.Id,n.push('<tr><td class="key">ID:</td><td class="value">'.concat(this.Id,"</td></tr>")),e&&n.push('<tr><td class="key">Parent ID:</td><td class="value">'.concat(e.Id,"</td></tr>")),n.push('<tr><td class="key">Scope:</td><td class="value">'.concat(this.ScopeName,"</td></tr>"));var r=this.formattedAttrs();for(var o in r)"Label"===o?t=r[o]:n.push('<tr><td class="key">'.concat(o,'</td><td class="value">').concat(r[o],"</td></tr>"));return'<div class="eclwatch_WUGraph_Tooltip" style="max-width:480px">\n <h4 align="center">'.concat(t,"</h4>\n <table>\n ").concat(n.join(""),"\n </table>\n </div>")},t}(util.StateObject),Scope=function(e){function t(t,n){var r=e.call(this,n)||this;return r.wu=t,r}return __extends(t,e),t}(BaseScope),SourceFile=function(e){function t(t,n,r){var o=e.call(this)||this;return o.connection=t instanceof WorkunitsService?t:new WorkunitsService(t),o.set(__assign({Wuid:n},r)),o}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FileCluster",{get:function(){return this.get("FileCluster")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsSuperFile",{get:function(){return this.get("IsSuperFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Subs",{get:function(){return this.get("Subs")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Count",{get:function(){return this.get("Count")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ECLSourceFiles",{get:function(){return this.get("ECLSourceFiles")},enumerable:!1,configurable:!0}),t}(util.StateObject),Timer=function(e){function t(t,n,r){var o=e.call(this)||this;o.connection=t instanceof WorkunitsService?t:new WorkunitsService(t);var i=util.espTime2Seconds(r.Value);return o.set(__assign({Wuid:n,Seconds:Math.round(1e3*i)/1e3,HasSubGraphId:void 0!==r.SubGraphId},r)),o}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Value",{get:function(){return this.get("Value")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Seconds",{get:function(){return this.get("Seconds")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"GraphName",{get:function(){return this.get("GraphName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SubGraphId",{get:function(){return this.get("SubGraphId")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HasSubGraphId",{get:function(){return this.get("HasSubGraphId")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"count",{get:function(){return this.get("count")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Timestamp",{get:function(){return this.get("Timestamp")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"When",{get:function(){return this.get("When")},enumerable:!1,configurable:!0}),t}(util.StateObject),formatter=utcFormat("%Y-%m-%dT%H:%M:%S.%LZ"),parser=utcParse("%Y-%m-%dT%H:%M:%S.%LZ"),d3FormatNum=format(",");function formatNum(e){return e&&!isNaN(+e)?d3FormatNum(+e):e}function safeDelete(e,t,n){void 0!==e[t]&&void 0!==e[t][n]&&"__proto__"!==t&&"constructor"!==t&&"prototype"!==t&&delete e[t][n]}var DEFINITION_LIST="DefinitionList",definitionRegex=/([a-zA-Z]:)?(.*[\\\/])(.*)(\((\d+),(\d+)\))/,PropertyType=["Avg","Min","Max","Delta","StdDev"],RelatedProperty=["SkewMin","SkewMax","NodeMin","NodeMax"],metricKeyRegex=/[A-Z][a-z]*/g;function _splitMetric(e){for(var t=0,n=RelatedProperty;t<n.length;t++){var r=n[t];if(0===(a=e.indexOf(r)))return{measure:i="",ext:r,label:s=e.slice(a+r.length)}}var o=e.match(metricKeyRegex);if(null==o?void 0:o.length){for(var i=o.shift(),s=o.join(""),c=0,u=PropertyType;c<u.length;c++){var a,p=u[c];if(0===(a=s.indexOf(p)))return{measure:i,ext:p,label:s=s.slice(a+p.length)}}return{measure:i,ext:"",label:s}}return{measure:"",ext:"",label:e}}var splitLabelCache={};function splitMetric(e){var t=splitLabelCache[e];return t||(t=_splitMetric(e),splitLabelCache[e]=t),t}function formatValue(e,t){var n,r;return null!==(r=null===(n=e.__formattedProps)||void 0===n?void 0:n[t])&&void 0!==r?r:e[t]}function safeParseFloat(e){if(void 0!==e){var t=parseFloat(e);return isNaN(t)?void 0:t}}function formatValues(e,t,n){var r=splitMetric(t);if(!n[r.measure]){n[r.label]=!0;var o=safeParseFloat(e["".concat(r.measure,"Avg").concat(r.label)]),i=safeParseFloat(e["".concat(r.measure,"Min").concat(r.label)]),s=safeParseFloat(e["".concat(r.measure,"Max").concat(r.label)]),c=safeParseFloat(e["".concat(r.measure,"StdDev").concat(r.label)]),u=Math.max((o-i)/c,(s-o)/c);return{Key:"".concat(r.measure).concat(r.label),Value:formatValue(e,"".concat(r.measure).concat(r.label)),Avg:formatValue(e,"".concat(r.measure,"Avg").concat(r.label)),Min:formatValue(e,"".concat(r.measure,"Min").concat(r.label)),Max:formatValue(e,"".concat(r.measure,"Max").concat(r.label)),Delta:formatValue(e,"".concat(r.measure,"Delta").concat(r.label)),StdDev:formatValue(e,"".concat(r.measure,"StdDev").concat(r.label)),StdDevs:isNaN(u)?void 0:u,SkewMin:formatValue(e,"SkewMin".concat(r.label)),SkewMax:formatValue(e,"SkewMax".concat(r.label)),NodeMin:formatValue(e,"NodeMin".concat(r.label)),NodeMax:formatValue(e,"NodeMax".concat(r.label))}}return null}var _activity,logger$4=util.scopedLogger("workunit.ts"),WorkunitCache=function(e){function t(){return e.call(this,function(e){return"".concat(e.BaseUrl,"-").concat(e.Wuid)})||this}return __extends(t,e),t}(util.Cache),_workunits$1=new WorkunitCache,Workunit=function(e){function t(t,n){var r=e.call(this)||this;return r._debugMode=!1,r._resultCache=new ResultCache,r._graphCache=new GraphCache,r.connection=new WorkunitsService(t),r.topologyConnection=new TopologyService(t),r.clearState(n),r}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Owner",{get:function(){return this.get("Owner","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Cluster",{get:function(){return this.get("Cluster","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Jobname",{get:function(){return this.get("Jobname","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Description",{get:function(){return this.get("Description","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ActionEx",{get:function(){return this.get("ActionEx","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"StateID",{get:function(){return this.get("StateID",exports.WUStateID.Unknown)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"State",{get:function(){return this.get("State")||exports.WUStateID[this.StateID]},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Protected",{get:function(){return this.get("Protected",!1)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Exceptions",{get:function(){return this.get("Exceptions",{ECLException:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultViews",{get:function(){return this.get("ResultViews",{View:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultCount",{get:function(){return this.get("ResultCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Results",{get:function(){return this.get("Results",{ECLResult:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CResults",{get:function(){var e=this;return this.Results.ECLResult.map(function(t){return e._resultCache.get(t,function(){return Result.attach(e.connection,e.Wuid,t,e.ResultViews.View)})})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SequenceResults",{get:function(){var e={};return this.CResults.forEach(function(t){e[t.Sequence]=t}),e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Timers",{get:function(){return this.get("Timers",{ECLTimer:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CTimers",{get:function(){var e=this;return this.Timers.ECLTimer.map(function(t){return new Timer(e.connection,e.Wuid,t)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"GraphCount",{get:function(){return this.get("GraphCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Graphs",{get:function(){return this.get("Graphs",{ECLGraph:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CGraphs",{get:function(){var e=this;return this.Graphs.ECLGraph.map(function(t){return e._graphCache.get(t,function(){return new ECLGraph(e,t,e.CTimers)})})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ThorLogList",{get:function(){return this.get("ThorLogList")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResourceURLCount",{get:function(){return this.get("ResourceURLCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResourceURLs",{get:function(){return this.get("ResourceURLs",{URL:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CResourceURLs",{get:function(){var e=this;return this.ResourceURLs.URL.map(function(t){return new Resource(e,t)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TotalClusterTime",{get:function(){return this.get("TotalClusterTime","")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DateTimeScheduled",{get:function(){return this.get("DateTimeScheduled")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsPausing",{get:function(){return this.get("IsPausing")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ThorLCR",{get:function(){return this.get("ThorLCR")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ApplicationValues",{get:function(){return this.get("ApplicationValues",{ApplicationValue:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HasArchiveQuery",{get:function(){return this.get("HasArchiveQuery")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"StateEx",{get:function(){return this.get("StateEx")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PriorityClass",{get:function(){return this.get("PriorityClass")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PriorityLevel",{get:function(){return this.get("PriorityLevel")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Snapshot",{get:function(){return this.get("Snapshot")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultLimit",{get:function(){return this.get("ResultLimit")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"EventSchedule",{get:function(){return this.get("EventSchedule")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Query",{get:function(){return this.get("Query")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HelpersCount",{get:function(){return this.get("HelpersCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Helpers",{get:function(){return this.get("Helpers",{ECLHelpFile:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DebugValues",{get:function(){return this.get("DebugValues")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AllowedClusters",{get:function(){return this.get("AllowedClusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ErrorCount",{get:function(){return this.get("ErrorCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WarningCount",{get:function(){return this.get("WarningCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"InfoCount",{get:function(){return this.get("InfoCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AlertCount",{get:function(){return this.get("AlertCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceFileCount",{get:function(){return this.get("SourceFileCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceFiles",{get:function(){return this.get("SourceFiles",{ECLSourceFile:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CSourceFiles",{get:function(){var e=this;return this.SourceFiles.ECLSourceFile.map(function(t){return new SourceFile(e.connection,e.Wuid,t)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VariableCount",{get:function(){return this.get("VariableCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Variables",{get:function(){return this.get("Variables",{ECLResult:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TimerCount",{get:function(){return this.get("TimerCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HasDebugValue",{get:function(){return this.get("HasDebugValue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ApplicationValueCount",{get:function(){return this.get("ApplicationValueCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"XmlParams",{get:function(){return this.get("XmlParams")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AccessFlag",{get:function(){return this.get("AccessFlag")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ClusterFlag",{get:function(){return this.get("ClusterFlag")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultViewCount",{get:function(){return this.get("ResultViewCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DebugValueCount",{get:function(){return this.get("DebugValueCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WorkflowCount",{get:function(){return this.get("WorkflowCount",0)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Archived",{get:function(){return this.get("Archived")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RoxieCluster",{get:function(){return this.get("RoxieCluster")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DebugState",{get:function(){return this.get("DebugState",{})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Queue",{get:function(){return this.get("Queue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Active",{get:function(){return this.get("Active")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Action",{get:function(){return this.get("Action")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Scope",{get:function(){return this.get("Scope")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AbortBy",{get:function(){return this.get("AbortBy")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AbortTime",{get:function(){return this.get("AbortTime")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Workflows",{get:function(){return this.get("Workflows")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TimingData",{get:function(){return this.get("TimingData")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HelpersDesc",{get:function(){return this.get("HelpersDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"GraphsDesc",{get:function(){return this.get("GraphsDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceFilesDesc",{get:function(){return this.get("SourceFilesDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResultsDesc",{get:function(){return this.get("ResultsDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VariablesDesc",{get:function(){return this.get("VariablesDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TimersDesc",{get:function(){return this.get("TimersDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DebugValuesDesc",{get:function(){return this.get("DebugValuesDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ApplicationValuesDesc",{get:function(){return this.get("ApplicationValuesDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WorkflowsDesc",{get:function(){return this.get("WorkflowsDesc")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ServiceNames",{get:function(){return this.get("ServiceNames")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CompileCost",{get:function(){return this.get("CompileCost")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ExecuteCost",{get:function(){return this.get("ExecuteCost")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FileAccessCost",{get:function(){return this.get("FileAccessCost")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"NoAccess",{get:function(){return this.get("NoAccess")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ECLWUProcessList",{get:function(){return this.get("ECLWUProcessList")},enumerable:!1,configurable:!0}),t.create=function(e){var n=new t(e);return n.connection.WUCreate().then(function(e){return _workunits$1.set(n),n.set(e.Workunit),n})},t.attach=function(e,n,r){var o=_workunits$1.get({BaseUrl:e.baseUrl,Wuid:n},function(){return new t(e,n)});return r&&o.set(r),o},t.existsLocal=function(e,t){return _workunits$1.has({BaseUrl:e,Wuid:t})},t.submit=function(e,n,r,o){return void 0===o&&(o=!1),t.create(e).then(function(e){return e.update({QueryText:r})}).then(function(e){return o?e.submit(n,exports.WUUpdate.Action.Compile):e.submit(n)})},t.compile=function(e,n,r){return t.submit(e,n,r,!0)},t.query=function(e,n){return new WorkunitsService(e).WUQuery(n).then(function(n){return n.Workunits.ECLWorkunit.map(function(n){return t.attach(e,n.Wuid,n)})})},t.prototype.clearState=function(e){this.clear({Wuid:e,StateID:exports.WUStateID.Unknown})},t.prototype.update=function(e){var t=this;return this.connection.WUUpdate(__assign(__assign({},e),{Wuid:this.Wuid,StateOrig:this.StateID,JobnameOrig:this.Jobname,DescriptionOrig:this.Description,ProtectedOrig:this.Protected,ClusterOrig:this.Cluster})).then(function(e){return t.set(e.Workunit),t})},t.prototype.submit=function(e,t,n){var r,o=this;return void 0===t&&(t=exports.WUUpdate.Action.Run),r=void 0!==e?Promise.resolve(e):this.topologyConnection.DefaultTpLogicalClusterQuery().then(function(e){return e.Name}),this._debugMode=!1,t===exports.WUUpdate.Action.Debug&&(t=exports.WUUpdate.Action.Run,this._debugMode=!0),r.then(function(e){return o.connection.WUUpdate({Wuid:o.Wuid,Action:t,ResultLimit:n,DebugValues:{DebugValue:[{Name:"Debug",Value:o._debugMode?"1":""}]}}).then(function(n){return o.set(n.Workunit),o._submitAction=t,o.connection.WUSubmit({Wuid:o.Wuid,Cluster:e})})}).then(function(){return o})},t.prototype.isComplete=function(){switch(this.StateID){case exports.WUStateID.Compiled:return"compile"===this.ActionEx||this._submitAction===exports.WUUpdate.Action.Compile;case exports.WUStateID.Completed:case exports.WUStateID.Failed:case exports.WUStateID.Aborted:case exports.WUStateID.NotFound:return!0}return!1},t.prototype.isFailed=function(){switch(this.StateID){case exports.WUStateID.Aborted:case exports.WUStateID.Failed:return!0}return!1},t.prototype.isDeleted=function(){return this.StateID===exports.WUStateID.NotFound},t.prototype.isDebugging=function(){switch(this.StateID){case exports.WUStateID.DebugPaused:case exports.WUStateID.DebugRunning:return!0}return this._debugMode},t.prototype.isRunning=function(){switch(this.StateID){case exports.WUStateID.Compiled:case exports.WUStateID.Running:case exports.WUStateID.Aborting:case exports.WUStateID.Blocked:case exports.WUStateID.DebugPaused:case exports.WUStateID.DebugRunning:return!0}return!1},t.prototype.setToFailed=function(){return this.WUAction(exports.WsWorkunits.ECLWUActions.SetToFailed)},t.prototype.pause=function(){return this.WUAction(exports.WsWorkunits.ECLWUActions.Pause)},t.prototype.pauseNow=function(){return this.WUAction(exports.WsWorkunits.ECLWUActions.PauseNow)},t.prototype.resume=function(){return this.WUAction(exports.WsWorkunits.ECLWUActions.Resume)},t.prototype.abort=function(){return this.WUAction(exports.WsWorkunits.ECLWUActions.Abort)},t.prototype.protect=function(){return this.WUAction(exports.WsWorkunits.ECLWUActions.Protect)},t.prototype.unprotect=function(){return this.WUAction(exports.WsWorkunits.ECLWUActions.Unprotect)},t.prototype.delete=function(){return this.WUAction(exports.WsWorkunits.ECLWUActions.Delete)},t.prototype.restore=function(){return this.WUAction(exports.WsWorkunits.ECLWUActions.Restore)},t.prototype.deschedule=function(){return this.WUAction(exports.WsWorkunits.ECLWUActions.Deschedule)},t.prototype.reschedule=function(){return this.WUAction(exports.WsWorkunits.ECLWUActions.Reschedule)},t.prototype.resubmit=function(){var e=this;return this.WUResubmit({CloneWorkunit:!1,ResetWorkflow:!1}).then(function(){return e.clearState(e.Wuid),e.refresh().then(function(){return e._monitor(),e})})},t.prototype.clone=function(){var e=this;return this.WUResubmit({CloneWorkunit:!0,ResetWorkflow:!1}).then(function(n){return t.attach(e.connection.opts(),n.WUs.WU[0].WUID).refresh()})},t.prototype.refreshState=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,this.WUQuery()];case 1:return e.sent(),this.StateID!==exports.WUStateID.Compiled||this.ActionEx||this._submitAction?[3,3]:[4,this.refreshInfo()];case 2:e.sent(),e.label=3;case 3:return[2,this]}})})},t.prototype.refreshInfo=function(e){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(t){switch(t.label){case 0:return[4,this.WUInfo(e)];case 1:return t.sent(),[2,this]}})})},t.prototype.refreshDebug=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,this.debugStatus()];case 1:return e.sent(),[2,this]}})})},t.prototype.refresh=function(){return __awaiter(this,arguments,void 0,function(e,t){return void 0===e&&(e=!1),__generator(this,function(n){switch(n.label){case 0:return e?[4,Promise.all([this.refreshInfo(t),this.refreshDebug()])]:[3,2];case 1:return n.sent(),[3,4];case 2:return[4,this.refreshState()];case 3:n.sent(),n.label=4;case 4:return[2,this]}})})},t.prototype.eclExceptions=function(){return this.Exceptions.ECLException},t.prototype.fetchArchive=function(){return this.connection.WUFileEx({Wuid:this.Wuid,Type:"ArchiveQuery"})},t.prototype.fetchECLExceptions=function(){var e=this;return this.WUInfo({IncludeExceptions:!0}).then(function(){return e.eclExceptions()})},t.prototype.fetchResults=function(){var e=this;return this.WUInfo({IncludeResults:!0}).then(function(){return e.CResults})},t.prototype.fetchGraphs=function(){var e=this;return this.WUInfo({IncludeGraphs:!0}).then(function(){return e.CGraphs})},t.prototype.fetchQuery=function(){var e=this;return this.WUInfo({IncludeECL:!0,TruncateEclTo64k:!1}).then(function(){return e.Query})},t.prototype.fetchHelpers=function(){var e=this;return this.WUInfo({IncludeHelpers:!0}).then(function(){var t;return(null===(t=e.Helpers)||void 0===t?void 0:t.ECLHelpFile)||[]})},t.prototype.fetchAllowedClusters=function(){var e=this;return this.WUInfo({IncludeAllowedClusters:!0}).then(function(){var t;return(null===(t=e.AllowedClusters)||void 0===t?void 0:t.AllowedCluster)||[]})},t.prototype.fetchTotalClusterTime=function(){var e=this;return this.WUInfo({IncludeTotalClusterTime:!0}).then(function(){return e.TotalClusterTime})},t.prototype.fetchServiceNames=function(){var e=this;return this.WUInfo({IncludeServiceNames:!0}).then(function(){var t;return null===(t=e.ServiceNames)||void 0===t?void 0:t.Item})},t.prototype.fetchDetailsMeta=function(e){return void 0===e&&(e={}),this.WUDetailsMeta(e)},t.prototype.fetchDetailsRaw=function(e){return void 0===e&&(e={}),this.WUDetails(e).then(function(e){return e.Scopes.Scope})},t.prototype.normalizeDetails=function(e,t){for(var n,r,o={id:{Measure:"label"},name:{Measure:"label"},type:{Measure:"label"}},i=[],s=function(t){var s={},c={};if(t&&t.Id&&t.Properties&&t.Properties.Property){var u=function(i){var u=t.Properties.Property[i];if("ns"===u.Measure&&(u.Measure="s"),"Kind"===u.Name){var a=parseInt(u.RawValue,10);u.Formatted=null!==(n=e.Activities.Activity.filter(function(e){return e.Kind===a})[0].Name)&&void 0!==n?n:u.RawValue}switch(o[u.Name]=__assign({},u),safeDelete(o,u.Name,"RawValue"),safeDelete(o,u.Name,"Formatted"),u.Measure){case"bool":s[u.Name]=!!+u.RawValue;break;case"sz":case"ns":case"cnt":case"node":case"skw":s[u.Name]=+u.RawValue;break;case"s":s[u.Name]=+u.RawValue/1e9;break;case"ts":s[u.Name]=new Date(+u.RawValue/1e3).toISOString();break;case"cost":s[u.Name]=+u.RawValue/1e6;break;default:s[u.Name]=u.RawValue}c[u.Name]=formatNum(null!==(r=u.Formatted)&&void 0!==r?r:s[u.Name])};for(var a in t.Properties.Property)u(a)}var p=__assign({id:t.Id,name:t.ScopeName,type:t.ScopeType,Kind:t.Kind,Label:t.Label,__formattedProps:c,__groupedProps:{},__groupedRawProps:{},__StdDevs:0,__StdDevsSource:""},s);if(p[DEFINITION_LIST])try{var l=JSON.parse(p[DEFINITION_LIST].split("\\").join("\\\\"));p[DEFINITION_LIST]=[],l.forEach(function(e,t){var n,r=e.match(definitionRegex);if(r){var o=(null!==(n=r[1])&&void 0!==n?n:"")+r[2]+r[3],i=parseInt(r[5]),s=parseInt(r[6]);p[DEFINITION_LIST].push({filePath:o,line:i,col:s})}})}catch(e){logger$4.error('Unexpected "DefinitionList": '.concat(p[DEFINITION_LIST]))}var d={};for(var a in p)if(0!==a.indexOf("__")){var h=formatValues(p,a,d);h&&(p.__groupedProps[h.Key]=h,!isNaN(h.StdDevs)&&p.__StdDevs<h.StdDevs&&(p.__StdDevs=h.StdDevs,p.__StdDevsSource=h.Key))}i.push(p)},c=0,u=t;c<u.length;c++){s(u[c])}return{meta:e,columns:o,data:i}},t.prototype.fetchDetailsNormalized=function(e){var t=this;return void 0===e&&(e={}),Promise.all([this.fetchDetailsMeta(),this.fetchDetailsRaw(e)]).then(function(e){return t.normalizeDetails(e[0],e[1])})},t.prototype.fetchInfo=function(e){return void 0===e&&(e={}),this.WUInfo(e)},t.prototype.fetchDetails=function(e){var t=this;return void 0===e&&(e={}),this.WUDetails(e).then(function(e){return e.Scopes.Scope.map(function(e){return new Scope(t,e)})})},t.prototype.fetchDetailsHierarchy=function(e){var t=this;return void 0===e&&(e={}),this.WUDetails(e).then(function(e){var n=[],r={};for(var o in e.Scopes.Scope.forEach(function(e){if(r[e.ScopeName])return r[e.ScopeName].update(e),null;var n=new Scope(t,e);return r[n.ScopeName]=n,n}),r)if(r.hasOwnProperty(o)){var i=r[o],s=i.parentScope();s&&r[s]?r[s].children().push(i):n.push(i)}return n})},t.prototype.fetchGraphDetails=function(e,t){return void 0===e&&(e=[]),this.fetchDetails({ScopeFilter:{MaxDepth:999999,Ids:e,ScopeTypes:t},NestedFilter:{Depth:999999,ScopeTypes:["graph","subgraph","activity","edge","function"]},PropertiesToReturn:{AllStatistics:!0,AllAttributes:!0,AllHints:!0,AllProperties:!0,AllScopes:!0},ScopeOptions:{IncludeId:!0,IncludeScope:!0,IncludeScopeType:!0},PropertyOptions:{IncludeName:!0,IncludeRawValue:!0,IncludeFormatted:!0,IncludeMeasure:!0,IncludeCreator:!1,IncludeCreatorType:!1}})},t.prototype.fetchScopeGraphs=function(e){return void 0===e&&(e=[]),this.fetchGraphDetails(e,["graph"]).then(function(e){return createGraph(e)})},t.prototype.fetchTimeElapsed=function(){return this.fetchDetails({ScopeFilter:{PropertyFilters:{PropertyFilter:[{Name:"TimeElapsed"}]}}}).then(function(e){var t={};e.forEach(function(e){t[e.ScopeName]=t[e.ScopeName]||{scope:e.ScopeName,start:null,elapsed:null,finish:null},e.CAttributes.forEach(function(n){"TimeElapsed"===n.Name?t[e.ScopeName].elapsed=+n.RawValue:"ts"===n.Measure&&n.Name.indexOf("Started")>=0&&(t[e.ScopeName].start=n.Formatted)})});var n=[];for(var r in t){var o=t[r];if(o.start&&o.elapsed){var i=parser(o.start);i.setMilliseconds(i.getMilliseconds()+o.elapsed/1e6),o.finish=formatter(i),n.push(o)}}return n.sort(function(e,t){return e.start<t.start?-1:e.start>t.start?1:0}),n})},t.prototype._monitor=function(){this.isComplete()?this._monitorTickCount=0:e.prototype._monitor.call(this)},t.prototype._monitorTimeoutDuration=function(){var t=e.prototype._monitorTimeoutDuration.call(this);return this._monitorTickCount<=1?1e3:this._monitorTickCount<=3?3e3:this._monitorTickCount<=5?5e3:this._monitorTickCount<=7?1e4:t},t.prototype.on=function(t,n,r){var o=this;if(this.isCallback(n))switch(t){case"completed":e.prototype.on.call(this,"propChanged","StateID",function(e){o.isComplete()&&n([e])});break;case"changed":e.prototype.on.call(this,t,n)}else if("changed"===t)e.prototype.on.call(this,t,n,r);return this._monitor(),this},t.prototype.watchUntilComplete=function(e){var t=this;return new Promise(function(n,r){var o=t.watch(function(r){e&&e(r),t.isComplete()&&(o.release(),n(t))})})},t.prototype.watchUntilRunning=function(e){var t=this;return new Promise(function(n,r){var o=t.watch(function(r){e&&e(r),(t.isComplete()||t.isRunning())&&(o.release(),n(t))})})},t.prototype.WUQuery=function(e){var t=this;return void 0===e&&(e={}),this.connection.WUQuery(__assign(__assign({},e),{Wuid:this.Wuid})).then(function(e){return t.set(e.Workunits.ECLWorkunit[0]),e}).catch(function(e){if(!e.Exception.some(function(e){return 20081===e.Code&&(t.clearState(t.Wuid),t.set("StateID",exports.WUStateID.NotFound),!0)}))throw logger$4.warning("Unexpected ESP exception: ".concat(e.message)),e;return{}})},t.prototype.WUCreate=function(){var e=this;return this.connection.WUCreate().then(function(t){return e.set(t.Workunit),_workunits$1.set(e),t})},t.prototype.WUInfo=function(e){var t=this;void 0===e&&(e={});var n=e.IncludeResults||e.IncludeResultsViewNames;return this.connection.WUInfo(__assign(__assign({},e),{Wuid:this.Wuid,IncludeResults:n,IncludeResultsViewNames:n,SuppressResultSchemas:!1})).then(function(e){return t.set(e.Workunit),n&&t.set({ResultViews:e.ResultViews}),e}).catch(function(e){if(!e.Exception.some(function(e){return 20080===e.Code&&(t.clearState(t.Wuid),t.set("StateID",exports.WUStateID.NotFound),!0)}))throw logger$4.warning("Unexpected ESP exception: ".concat(e.message)),e;return{}})},t.prototype.WUResubmit=function(e){return this.connection.WUResubmit(util.deepMixinT({},e,{Wuids:{Item:[this.Wuid]}}))},t.prototype.WUDetailsMeta=function(e){return this.connection.WUDetailsMeta(e)},t.prototype.WUDetails=function(e){return this.connection.WUDetails(util.deepMixinT({ScopeFilter:{MaxDepth:9999},ScopeOptions:{IncludeMatchedScopesInResults:!0,IncludeScope:!0,IncludeId:!1,IncludeScopeType:!1},PropertyOptions:{IncludeName:!0,IncludeRawValue:!1,IncludeFormatted:!0,IncludeMeasure:!0,IncludeCreator:!1,IncludeCreatorType:!1}},e,{WUID:this.Wuid})).then(function(e){return util.deepMixinT({Scopes:{Scope:[]}},e)})},t.prototype.WUAction=function(e){var t=this;return this.connection.WUAction({Wuids:{Item:[this.Wuid]},WUActionType:e}).then(function(e){return t.refresh().then(function(){return t._monitor(),e})})},t.prototype.publish=function(e){return this.connection.WUPublishWorkunit({Wuid:this.Wuid,Cluster:this.Cluster,JobName:e||this.Jobname,AllowForeignFiles:!0,Activate:exports.WsWorkunits.WUQueryActivationMode.ActivateQuery,Wait:5e3})},t.prototype.publishEx=function(e){var t=new WorkunitsServiceEx({baseUrl:""}),n=__assign({Wuid:this.Wuid,Cluster:this.Cluster,JobName:this.Jobname,AllowForeignFiles:!0,Activate:1,Wait:5e3},e);return t.WUPublishWorkunitEx(n)},t.prototype.WUCDebug=function(e,t){void 0===t&&(t={});var n="";for(var r in t)t.hasOwnProperty(r)&&(n+=" ".concat(r,"='").concat(t[r],"'"));return this.connection.WUCDebugEx({Wuid:this.Wuid,Command:"<debug:".concat(e," uid='").concat(this.Wuid,"'").concat(n,"/>")}).then(function(e){return e})},t.prototype.debug=function(e,t){return this.isDebugging()?this.WUCDebug(e,t).then(function(t){var n=t.children(e);return n.length?n[0]:new util.XMLNode(e)}).catch(function(t){return logger$4.error(t),Promise.resolve(new util.XMLNode(e))}):Promise.resolve(new util.XMLNode(e))},t.prototype.debugStatus=function(){var e=this;return this.isDebugging()?this.debug("status").then(function(t){var n=__assign(__assign({},e.DebugState),t.$);return e.set({DebugState:n}),t}):Promise.resolve({DebugState:{state:"unknown"}})},t.prototype.debugContinue=function(e){return void 0===e&&(e=""),this.debug("continue",{mode:e})},t.prototype.debugStep=function(e){return this.debug("step",{mode:e})},t.prototype.debugPause=function(){return this.debug("interrupt")},t.prototype.debugQuit=function(){return this.debug("quit")},t.prototype.debugDeleteAllBreakpoints=function(){return this.debug("delete",{idx:0})},t.prototype.debugBreakpointResponseParser=function(e){return e.children().map(function(e){if("break"===e.name)return e.$})},t.prototype.debugBreakpointAdd=function(e,t,n){var r=this;return this.debug("breakpoint",{id:e,mode:t,action:n}).then(function(e){return r.debugBreakpointResponseParser(e)})},t.prototype.debugBreakpointList=function(){var e=this;return this.debug("list").then(function(t){return e.debugBreakpointResponseParser(t)})},t.prototype.debugGraph=function(){var e=this;return this._debugAllGraph&&this.DebugState._prevGraphSequenceNum===this.DebugState.graphSequenceNum?Promise.resolve(this._debugAllGraph):this.debug("graph",{name:"all"}).then(function(t){return e.DebugState._prevGraphSequenceNum=e.DebugState.graphSequenceNum,e._debugAllGraph=createXGMMLGraph(e.Wuid,t),e._debugAllGraph})},t.prototype.debugBreakpointValid=function(e){return this.debugGraph().then(function(t){return breakpointLocations(t,e)})},t.prototype.debugPrint=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=10),this.debug("print",{edgeID:e,startRow:t,numRows:n}).then(function(e){return e.children().map(function(e){var t={};return e.children().forEach(function(e){t[e.name]=e.content}),t})})},t}(util.StateObject),ATTR_DEFINITION="definition";function hasECLDefinition(e){return void 0!==e._[ATTR_DEFINITION]}function getECLDefinition(e){var t=/([a-z]:\\(?:[-\w\.\d]+\\)*(?:[-\w\.\d]+)?|(?:\/[\w\.\-]+)+)\((\d*),(\d*)\)/.exec(e._[ATTR_DEFINITION]);if(t){var n=t[1],r=t[2],o=t[3];return n.replace(/\/\.\//g,"/"),{id:e._.id,file:n,line:+r,column:+o}}throw new Error("Bad definition: ".concat(e._[ATTR_DEFINITION]))}function breakpointLocations(e,t){for(var n=[],r=0,o=e.vertices;r<o.length;r++){var i=o[r];if(hasECLDefinition(i)){var s=getECLDefinition(i);(s&&!t||t===s.file)&&n.push(s)}}return n.sort(function(e,t){return e.line-t.line})}var Activity=function(e){function t(t){var n=e.call(this)||this;return n.lazyRefresh=util.debounce(function(){return __awaiter(n,void 0,void 0,function(){var e;return __generator(this,function(t){switch(t.label){case 0:return[4,this.connection.Activity({})];case 1:return e=t.sent(),this.set(e),[2,this]}})})}),n.connection=t instanceof SMCService?t:new SMCService(t),n.clear({}),n}return __extends(t,e),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Exceptions",{get:function(){return this.get("Exceptions")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Build",{get:function(){return this.get("Build")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ThorClusterList",{get:function(){return this.get("ThorClusterList")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RoxieClusterList",{get:function(){return this.get("RoxieClusterList")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"HThorClusterList",{get:function(){return this.get("HThorClusterList")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DFUJobs",{get:function(){return this.get("DFUJobs")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Running",{get:function(){return this.get("Running",{ActiveWorkunit:[]})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BannerContent",{get:function(){return this.get("BannerContent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BannerColor",{get:function(){return this.get("BannerColor")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BannerSize",{get:function(){return this.get("BannerSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BannerScroll",{get:function(){return this.get("BannerScroll")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ChatURL",{get:function(){return this.get("ChatURL")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowBanner",{get:function(){return this.get("ShowBanner")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowChatURL",{get:function(){return this.get("ShowChatURL")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SortBy",{get:function(){return this.get("SortBy")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Descending",{get:function(){return this.get("Descending")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SuperUser",{get:function(){return this.get("SuperUser")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AccessRight",{get:function(){return this.get("AccessRight")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ServerJobQueues",{get:function(){return this.get("ServerJobQueues")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ActivityTime",{get:function(){return this.get("ActivityTime")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DaliDetached",{get:function(){return this.get("DaliDetached")},enumerable:!1,configurable:!0}),t.attach=function(e,n){return _activity||(_activity=new t(e)),n&&_activity.set(n),_activity},t.prototype.runningWorkunits=function(e){var t=this;return void 0===e&&(e=""),this.Running.ActiveWorkunit.filter(function(t){return""===e||t.ClusterName===e}).map(function(e){return Workunit.attach(t.connection.connectionOptions(),e.Wuid,e)})},t.prototype.setBanner=function(e){var t=this;return this.connection.SetBanner(__assign({},e)).then(function(e){return t.set(e),t})},t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return[2,this.lazyRefresh()]})})},t}(util.StateObject),logger$3=util.scopedLogger("logicalFile.ts"),LogicalFileCache=function(e){function t(){return e.call(this,function(e){return"".concat(e.BaseUrl,"-").concat(e.Cluster,"-").concat(e.Name)})||this}return __extends(t,e),t}(util.Cache),_store$1=new LogicalFileCache,LogicalFile=function(e){function t(t,n,r){var o=e.call(this)||this;return o.connection=t instanceof DFUService?t:new DFUService(t),o.clear({Cluster:n,Name:r}),o}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Cluster",{get:function(){return this.get("Cluster")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Filename",{get:function(){return this.get("Filename")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Prefix",{get:function(){return this.get("Prefix")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"NodeGroup",{get:function(){return this.get("NodeGroup")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"NumParts",{get:function(){return this.get("NumParts")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Description",{get:function(){return this.get("Description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Dir",{get:function(){return this.get("Dir")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PathMask",{get:function(){return this.get("PathMask")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Filesize",{get:function(){return this.get("Filesize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FileSizeInt64",{get:function(){return this.get("FileSizeInt64")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RecordSize",{get:function(){return this.get("RecordSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RecordCount",{get:function(){return this.get("RecordCount")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RecordSizeInt64",{get:function(){return this.get("RecordSizeInt64")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RecordCountInt64",{get:function(){return this.get("RecordCountInt64")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Owner",{get:function(){return this.get("Owner")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"JobName",{get:function(){return this.get("JobName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Persistent",{get:function(){return this.get("Persistent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Format",{get:function(){return this.get("Format")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MaxRecordSize",{get:function(){return this.get("MaxRecordSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CsvSeparate",{get:function(){return this.get("CsvSeparate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CsvQuote",{get:function(){return this.get("CsvQuote")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CsvTerminate",{get:function(){return this.get("CsvTerminate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CsvEscape",{get:function(){return this.get("CsvEscape")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Modified",{get:function(){return this.get("Modified")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Ecl",{get:function(){return this.get("Ecl")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Stat",{get:function(){return this.get("Stat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DFUFilePartsOnClusters",{get:function(){return this.get("DFUFilePartsOnClusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isSuperfile",{get:function(){return this.get("isSuperfile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ShowFileContent",{get:function(){return this.get("ShowFileContent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"subfiles",{get:function(){return this.get("subfiles")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Superfiles",{get:function(){return this.get("Superfiles")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ProtectList",{get:function(){return this.get("ProtectList")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FromRoxieCluster",{get:function(){return this.get("FromRoxieCluster")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Graphs",{get:function(){return this.get("Graphs")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"UserPermission",{get:function(){return this.get("UserPermission")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ContentType",{get:function(){return this.get("ContentType")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CompressedFileSize",{get:function(){return this.get("CompressedFileSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PercentCompressed",{get:function(){return this.get("PercentCompressed")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsCompressed",{get:function(){return this.get("IsCompressed")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"BrowseData",{get:function(){return this.get("BrowseData")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"jsonInfo",{get:function(){return this.get("jsonInfo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"binInfo",{get:function(){return this.get("binInfo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PackageID",{get:function(){return this.get("PackageID")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Partition",{get:function(){return this.get("Partition")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Blooms",{get:function(){return this.get("Blooms")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ExpireDays",{get:function(){return this.get("ExpireDays")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"KeyType",{get:function(){return this.get("KeyType")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsRestricted",{get:function(){return this.get("IsRestricted")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AtRestCost",{get:function(){return this.get("AtRestCost")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AccessCost",{get:function(){return this.get("AccessCost")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"StateID",{get:function(){return this.get("StateID")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ExpirationDate",{get:function(){return this.get("ExpirationDate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ExtendedIndexInfo",{get:function(){return this.get("ExtendedIndexInfo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),t.attach=function(e,n,r,o){var i=_store$1.get({BaseUrl:e.baseUrl,Cluster:n,Name:r},function(){return new t(e,n,r)});return o&&i.set(o),i},t.prototype.filePartsOnCluster=function(){var e;return __spreadArray([],(null===(e=this.DFUFilePartsOnClusters)||void 0===e?void 0:e.DFUFilePartsOnCluster)||[],!0)},t.prototype.fileParts=function(){for(var e,t,n=[],r=0,o=(null===(e=this.DFUFilePartsOnClusters)||void 0===e?void 0:e.DFUFilePartsOnCluster)||[];r<o.length;r++)for(var i=o[r],s=0,c=(null===(t=null==i?void 0:i.DFUFileParts)||void 0===t?void 0:t.DFUPart)||[];s<c.length;s++){var u=c[s],a=__assign(__assign({},i),u);delete a.DFUFileParts,n.push(a)}return n},t.prototype.update=function(e){var t=this;return this.connection.DFUInfo(__assign(__assign({},e),{Cluster:this.Cluster,Name:this.Name})).then(function(e){return t.set(__assign({Cluster:t.Cluster},e.FileDetail)),e})},t.prototype.fetchInfo=function(){var e=this;return this.connection.DFUInfo({Cluster:this.Cluster,Name:this.Name}).then(function(t){var n,r;return e.set(__assign(__assign({Cluster:e.Cluster},t.FileDetail),{ProtectList:null!==(r=null===(n=null==t?void 0:t.FileDetail)||void 0===n?void 0:n.ProtectList)&&void 0!==r?r:{DFUFileProtect:[]}})),t.FileDetail}).catch(function(t){if(!t.Exception.some(function(t){return 20038===t.Code&&(e.set("Name",e.Name+" (Deleted)"),e.set("StateID",999),!0)}))throw logger$3.warning("Unexpected ESP exception: ".concat(t.message)),t;return{}})},t.prototype.fetchDefFile=function(e){return this.connection.DFUFile({Name:this.Name,Format:e})},t.prototype.fetchAllLogicalFiles=function(){return this.connection.recursiveFetchLogicalFiles([this])},t.prototype.fetchListHistory=function(){return this.connection.ListHistory({Name:this.Name}).then(function(e){var t;return(null===(t=null==e?void 0:e.History)||void 0===t?void 0:t.Origin)||[]})},t.prototype.eraseHistory=function(){return this.connection.EraseHistory({Name:this.Name}).then(function(e){var t;return(null===(t=null==e?void 0:e.History)||void 0===t?void 0:t.Origin)||[]})},t}(util.StateObject),MachineCache=function(e){function t(){return e.call(this,function(e){return e.Address})||this}return __extends(t,e),t}(util.Cache),_machines=new MachineCache,Machine=function(e){function t(t){var n=e.call(this)||this;return n.connection=t instanceof MachineService?t:new MachineService(t),n}return __extends(t,e),Object.defineProperty(t.prototype,"Address",{get:function(){return this.get("Address")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ConfigAddress",{get:function(){return this.get("ConfigAddress")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ProcessType",{get:function(){return this.get("ProcessType")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DisplayType",{get:function(){return this.get("DisplayType")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Description",{get:function(){return this.get("Description")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"AgentVersion",{get:function(){return this.get("AgentVersion")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Contact",{get:function(){return this.get("Contact")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Location",{get:function(){return this.get("Location")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"UpTime",{get:function(){return this.get("UpTime")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ComponentName",{get:function(){return this.get("ComponentName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ComponentPath",{get:function(){return this.get("ComponentPath")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RoxieState",{get:function(){return this.get("RoxieState")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RoxieStateDetails",{get:function(){return this.get("RoxieStateDetails")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"OS",{get:function(){return this.get("OS")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ProcessNumber",{get:function(){return this.get("ProcessNumber")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Channels",{get:function(){return this.get("Channels")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Processors",{get:function(){return this.get("Processors")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Storage",{get:function(){return this.get("Storage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Running",{get:function(){return this.get("Running")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PhysicalMemory",{get:function(){return this.get("PhysicalMemory")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"VirtualMemory",{get:function(){return this.get("VirtualMemory")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ComponentInfo",{get:function(){return this.get("ComponentInfo")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Exception",{get:function(){return this.get("Exception")},enumerable:!1,configurable:!0}),t.attach=function(e,n,r){var o=_machines.get({Address:n},function(){return new t(e)});return r&&o.set(r),o},t}(util.StateObject),TargetClusterCache=function(e){function t(){return e.call(this,function(e){return"".concat(e.BaseUrl,"-").concat(e.Name)})||this}return __extends(t,e),t}(util.Cache),_targetCluster=new TargetClusterCache,TargetCluster=function(e){function t(t,n){var r=e.call(this)||this;return t instanceof TopologyService?(r.connection=t,r.machineConnection=new MachineService(t.connectionOptions())):(r.connection=new TopologyService(t),r.machineConnection=new MachineService(t)),r.clear({Name:n}),r}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Name",{get:function(){return this.get("Name")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Prefix",{get:function(){return this.get("Prefix")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Type",{get:function(){return this.get("Type")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsDefault",{get:function(){return this.get("IsDefault")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TpClusters",{get:function(){return this.get("TpClusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TpEclCCServers",{get:function(){return this.get("TpEclCCServers")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TpEclServers",{get:function(){return this.get("TpEclServers")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TpEclAgents",{get:function(){return this.get("TpEclAgents")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TpEclSchedulers",{get:function(){return this.get("TpEclSchedulers")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MachineInfoEx",{get:function(){return this.get("MachineInfoEx",[])},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CMachineInfoEx",{get:function(){var e=this;return this.MachineInfoEx.map(function(t){return Machine.attach(e.machineConnection,t.Address,t)})},enumerable:!1,configurable:!0}),t.attach=function(e,n,r){var o=_targetCluster.get({BaseUrl:e.baseUrl,Name:n},function(){return new t(e,n)});return r&&o.set(r),o},t.prototype.fetchMachines=function(e){var t=this;return void 0===e&&(e={}),this.machineConnection.GetTargetClusterInfo(__assign({TargetClusters:{Item:["".concat(this.Type,":").concat(this.Name)]}},e)).then(function(e){for(var n=[],r=0,o=e.TargetClusterInfoList.TargetClusterInfo;r<o.length;r++)for(var i=0,s=o[r].Processes.MachineInfoEx;i<s.length;i++){var c=s[i];n.push(c)}return t.set("MachineInfoEx",n),t.CMachineInfoEx})},t.prototype.machineStats=function(){for(var e=0,t=0,n=0,r=0,o=this.CMachineInfoEx;r<o.length;r++)for(var i=0,s=o[r].Storage.StorageInfo;i<s.length;i++){var c=s[i];t+=c.Available,n+=c.Total;var u=1-c.Available/c.Total;u>e&&(e=u)}return{maxDisk:e,meanDisk:1-(n?t/n:1)}},t.prototype.fetchUsage=function(){return this.machineConnection.GetTargetClusterUsageEx([this.Name])},t}(util.StateObject);function targetClusters(e){return(e instanceof TopologyService?e:new TopologyService(e)).TpListTargetClusters({}).then(function(t){return t.TargetClusters.TpClusterNameType.map(function(t){return TargetCluster.attach(e,t.Name,t)})})}var _defaultTargetCluster={};function defaultTargetCluster(e){if(!_defaultTargetCluster[e.baseUrl]){var t=void 0;t=e instanceof TopologyService?e:new TopologyService(e),_defaultTargetCluster[e.baseUrl]=t.TpListTargetClusters({}).then(function(t){var n,r,o;t.TargetClusters.TpClusterNameType.forEach(function(e){n||(n=e),r||!0!==e.IsDefault||(r=e),o||"hthor"!==e.Type||(o=e)});var i=r||o||n;return TargetCluster.attach(e,i.Name,i)})}return _defaultTargetCluster[e.baseUrl]}var GRAPH_TYPE,GRAPH_TYPE_STRING,TopologyCache=function(e){function t(){return e.call(this,function(e){return e.BaseUrl})||this}return __extends(t,e),t}(util.Cache),_topology=new TopologyCache,Topology=function(e){function t(t){var n=e.call(this)||this;return n.connection=t instanceof TopologyService?t:new TopologyService(t),n}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TargetClusters",{get:function(){return this.get("TargetClusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CTargetClusters",{get:function(){var e=this;return this.TargetClusters.map(function(t){return TargetCluster.attach(e.connection,t.Name,t)})},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LogicalClusters",{get:function(){return this.get("LogicalClusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Services",{get:function(){return this.get("Services")},enumerable:!1,configurable:!0}),t.attach=function(e,n){var r=_topology.get({BaseUrl:e.baseUrl},function(){return new t(e)});return n&&r.set(n),r},t.prototype.GetESPServiceBaseURL=function(e){var t=this;return void 0===e&&(e=""),this.connection.TpServiceQuery({}).then(function(n){var r=t.connection.protocol(),o=t.connection.ip(),i="https:"===r?"18002":"8002";if(util.exists("ServiceList.TpEspServers.TpEspServer",n))for(var s=0,c=n.ServiceList.TpEspServers.TpEspServer;s<c.length;s++){var u=c[s];if(util.exists("TpBindings.TpBinding",u))for(var a=0,p=u.TpBindings.TpBinding;a<p.length;a++){var l=p[a];l.Service===e&&l.Protocol+":"===r&&(i=l.Port)}}return"".concat(r,"//").concat(o,":").concat(i,"/")})},t.prototype.fetchTargetClusters=function(){var e=this;return this.connection.TpTargetClusterQuery({Type:"ROOT"}).then(function(t){var n,r;return e.set({TargetClusters:null!==(r=null===(n=t.TpTargetClusters)||void 0===n?void 0:n.TpTargetCluster)&&void 0!==r?r:[]}),e.CTargetClusters})},t.prototype.fetchLogicalClusters=function(e){var t=this;return void 0===e&&(e={}),this.connection.TpLogicalClusterQuery(e).then(function(e){return t.set({LogicalClusters:e.TpLogicalClusters.TpLogicalCluster}),t.LogicalClusters})},t.prototype.fetchServices=function(e){var t=this;return void 0===e&&(e={}),this.connection.TpServiceQuery(e).then(function(e){return t.set({Services:e.ServiceList}),t.Services})},t.prototype.refresh=function(e){var t=this;return void 0===e&&(e=!1),this._prevRefresh&&!e||(this._prevRefresh=Promise.all([this.fetchTargetClusters(),this.fetchLogicalClusters(),this.fetchServices()]).then(function(){return t})),this._prevRefresh},t.prototype.on=function(t,n,r){if(this.isCallback(n)){if("changed"===t)e.prototype.on.call(this,t,n)}else if("changed"===t)e.prototype.on.call(this,t,n,r);return this._monitor(),this},t}(util.StateObject);function safeAssign(e,t,n){"__proto__"!==t&&"constructor"!==t&&"prototype"!==t&&(e[t]=n)}function xmlEncode(e){return(e=""+e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&apos;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\n/g,"&#10;").replace(/\r/g,"&#13;")}function espTime2Seconds(e){if(!e)return 0;if(!isNaN(+e))return parseFloat(e);var t=/(?:(?:(\d+).days.)?(?:(\d+)h)?(?:(\d+)m)?(?:(\d+\.\d+|\d+)s))|(?:(\d+\.\d+|\d+)ms|(\d+\.\d+|\d+)us|(\d+\.\d+|\d+)ns)/.exec(e);return t?24*(+t[1]||0)*60*60+60*(+t[2]||0)*60+60*(+t[3]||0)+(+t[4]||0)+(+t[5]||0)/1e3+(+t[6]||0)/1e6+(+t[7]||0)/1e9:0}function unitTest(e,t){var n=e.indexOf(t);return-1!==n?parseFloat(e.substring(0,n)):-1}function espSize2Bytes(e){if(!e)return 0;if(!isNaN(+e))return parseFloat(e);var t=unitTest(e,"Kb");return t>=0?1024*t:(t=unitTest(e,"Mb"))>=0?t*Math.pow(1024,2):(t=unitTest(e,"Gb"))>=0?t*Math.pow(1024,3):(t=unitTest(e,"Tb"))>=0?t*Math.pow(1024,4):(t=unitTest(e,"Pb"))>=0?t*Math.pow(1024,5):(t=unitTest(e,"Eb"))>=0?t*Math.pow(1024,6):(t=unitTest(e,"Zb"))>=0?t*Math.pow(1024,7):(t=unitTest(e,"b"))>=0?t:0}function espSkew2Number(e){return e?parseFloat(e):0}!function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.GRAPH=1]="GRAPH",e[e.SUBGRAPH=2]="SUBGRAPH",e[e.VERTEX=3]="VERTEX",e[e.EDGE=4]="EDGE",e[e.LAST=5]="LAST"}(GRAPH_TYPE||(GRAPH_TYPE={})),function(e){e.UNKNOWN="Unknown",e.GRAPH="Graph",e.SUBGRAPH="Cluster",e.VERTEX="Vertex",e.EDGE="Edge",e.LAST="Last"}(GRAPH_TYPE_STRING||(GRAPH_TYPE_STRING={}));var LocalisedXGMMLWriter=function(){function e(e){this.graph=e,this.m_xgmml="",this.m_visibleSubgraphs={},this.m_visibleVertices={},this.m_semiVisibleVertices={},this.m_visibleEdges={}}return e.prototype.calcVisibility=function(e,t,n,r){var o=this;this.noSpills=r,e.forEach(function(e){o.graph.isVertex(e)?(o.calcInVertexVisibility(e,n),o.calcOutVertexVisibility(e,n)):o.graph.isEdge(e)?(o.calcInVertexVisibility(e.getSource(),n-1),o.calcOutVertexVisibility(e.getTarget(),n-1)):o.graph.isSubgraph(e)&&(o.m_visibleSubgraphs[e.__hpcc_id]=e,o.calcSubgraphVisibility(e,t-1))}),this.calcVisibility2()},e.prototype.calcInVertexVisibility=function(e,t){var n=this;this.noSpills&&e.isSpill()&&t++,this.m_visibleVertices[e.__hpcc_id]=e,t>0&&e.getInEdges().forEach(function(e){n.calcInVertexVisibility(e.getSource(),t-1)})},e.prototype.calcOutVertexVisibility=function(e,t){var n=this;this.noSpills&&e.isSpill()&&t++,this.m_visibleVertices[e.__hpcc_id]=e,t>0&&e.getOutEdges().forEach(function(e){n.calcOutVertexVisibility(e.getTarget(),t-1)})},e.prototype.calcSubgraphVisibility=function(e,t){var n=this;if(!(t<0)){t>0&&e.__hpcc_subgraphs.forEach(function(e,r){n.calcSubgraphVisibility(e,t-1)}),e.__hpcc_subgraphs.forEach(function(e,t){n.m_visibleSubgraphs[e.__hpcc_id]=e}),e.__hpcc_vertices.forEach(function(e,t){n.m_visibleVertices[e.__hpcc_id]=e});var r={};this.graph.edges.forEach(function(t,o){t.getSource().__hpcc_parent!==t.getTarget().__hpcc_parent&&e===n.getCommonAncestor(t)&&(r[t.getSource().__hpcc_parent.__hpcc_id+"::"+t.getTarget().__hpcc_parent.__hpcc_id]||(r[t.getSource().__hpcc_parent.__hpcc_id+"::"+t.getTarget().__hpcc_parent.__hpcc_id]=!0,n.m_visibleEdges[t.__hpcc_id]=t))})}},e.prototype.buildVertexString=function(e,t){var n="",r="",o=e.getProperties();for(var i in o)t&&i.indexOf("_kind")>=0?r+='<att name="_kind" value="point"/>':"id"===i||"label"===i?n+=" "+i+'="'+xmlEncode(o[i])+'"':r+='<att name="'+i+'" value="'+xmlEncode(o[i])+'"/>';return"<node"+n+">"+r+"</node>"},e.prototype.buildEdgeString=function(e){var t="",n="",r=e.getProperties();for(var o in r)"id"===o.toLowerCase()||"label"===o.toLowerCase()||"source"===o.toLowerCase()||"target"===o.toLowerCase()?t+=" "+o+'="'+xmlEncode(r[o])+'"':n+='<att name="'+o+'" value="'+xmlEncode(r[o])+'"/>';return"<edge"+t+">"+n+"</edge>"},e.prototype.getAncestors=function(e,t){for(var n=e.__hpcc_parent;n;)t.push(n),n=n.__hpcc_parent},e.prototype.getCommonAncestorV=function(e,t){var n=[],r=[];this.getAncestors(e,n),this.getAncestors(t,r);for(var o=n.length-1,i=r.length-1,s=null;o>=0&&i>=0&&n[o]===r[i];)s=n[o],--o,--i;return s},e.prototype.getCommonAncestor=function(e){return this.getCommonAncestorV(e.getSource(),e.getTarget())},e.prototype.calcAncestorVisibility=function(e){var t=this,n=[];this.getAncestors(e,n),n.forEach(function(e,n){t.m_visibleSubgraphs[e.__hpcc_id]=e})},e.prototype.calcVisibility2=function(){var e=this;for(var t in this.m_visibleVertices){var n=this.m_visibleVertices[t];n.getInEdges().forEach(function(t,n){e.m_visibleEdges[t.__hpcc_id]=t}),n.getOutEdges().forEach(function(t,n){e.m_visibleEdges[t.__hpcc_id]=t}),this.calcAncestorVisibility(n)}this.calcSemiVisibleVertices()},e.prototype.addSemiVisibleEdge=function(e){e&&!this.m_visibleEdges[e.__hpcc_id]&&(this.m_visibleEdges[e.__hpcc_id]=e)},e.prototype.addSemiVisibleVertex=function(e){this.m_visibleVertices[e.__hpcc_id]||(this.m_semiVisibleVertices[e.__hpcc_id]=e,this.calcAncestorVisibility(e))},e.prototype.calcSemiVisibleVertices=function(){for(var e in this.m_visibleEdges){var t=this.m_visibleEdges[e],n=t.getSource();for(this.addSemiVisibleVertex(n);this.noSpills&&n.isSpill();){var r=n.getInEdges();if(!r.length)break;this.addSemiVisibleEdge(r[0]),n=r[0].getSource(),this.addSemiVisibleVertex(n)}var o=t.getTarget();for(this.addSemiVisibleVertex(o);this.noSpills&&o.isSpill();){var i=o.getOutEdges();if(!i.length)break;this.addSemiVisibleEdge(i[0]),o=i[0].getTarget(),this.addSemiVisibleVertex(o)}}},e.prototype.writeXgmml=function(){var e=this;this.subgraphVisited(this.graph.subgraphs[0],!0),this.graph.edges.forEach(function(t,n){e.edgeVisited(t)})},e.prototype.subgraphVisited=function(e,t){if(void 0===t&&(t=!1),this.m_visibleSubgraphs[e.__hpcc_id]){var n="";this.m_xgmml+=t?"":'<node id="'+e.__hpcc_id+'"><att><graph>';var r=this.m_xgmml.length;if(e.walkSubgraphs(this),e.walkVertices(this),r===this.m_xgmml.length){var o=e.__hpcc_vertices[0];o&&(this.m_xgmml+=this.buildVertexString(o,!0))}var i=e.getProperties();for(var s in i)n+='<att name="'+s+'" value="'+xmlEncode(i[s])+'"/>';this.m_xgmml+=t?"":"</graph></att>"+n+"</node>"}return!1},e.prototype.vertexVisited=function(e){this.m_visibleVertices[e.__hpcc_id]?this.m_xgmml+=this.buildVertexString(e,!1):this.m_semiVisibleVertices[e.__hpcc_id]&&(this.m_xgmml+=this.buildVertexString(e,!0))},e.prototype.edgeVisited=function(e){this.m_visibleEdges[e.__hpcc_id]&&(this.m_xgmml+=this.buildEdgeString(e))},e}(),GraphItem=function(){function e(e,t){this.__hpcc_graph=e,this.__hpcc_id=t,this._globalID=t}return e.prototype.getProperties=function(){var e={};for(var t in this)0!==t.indexOf("__")&&this.hasOwnProperty(t)&&(e[t]=this[t]);return e},e}(),Subgraph=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r._globalType="0"===n?"Graph":"Cluster",r.__hpcc_subgraphs=[],r.__hpcc_vertices=[],r.__hpcc_edges=[],r.id=n,r}return __extends(t,e),t.prototype.addSubgraph=function(e){e.__hpcc_parent=this,this.__hpcc_subgraphs.some(function(t){return e===t})||this.__hpcc_subgraphs.push(e)},t.prototype.addVertex=function(e){e.__hpcc_parent=this,this.__hpcc_vertices.some(function(t){return e===t})||this.__hpcc_vertices.push(e)},t.prototype.removeVertex=function(e){this.__hpcc_vertices=this.__hpcc_vertices.filter(function(t){return e!==t})},t.prototype.addEdge=function(e){e.__hpcc_parent=this,this.__hpcc_edges.some(function(t){return e===t})||this.__hpcc_edges.push(e)},t.prototype.removeEdge=function(e){this.__hpcc_edges=this.__hpcc_edges.filter(function(t){return e!==t})},t.prototype.remove=function(){var e=this;this.__hpcc_subgraphs.forEach(function(t){return t.__hpcc_parent=e.__hpcc_parent}),this.__hpcc_vertices.forEach(function(t){return t.__hpcc_parent=e.__hpcc_parent}),this.__hpcc_edges.forEach(function(t){return t.__hpcc_parent=e.__hpcc_parent}),delete this.__hpcc_parent,this.__hpcc_graph.removeItem(this)},t.prototype.walkSubgraphs=function(e){this.__hpcc_subgraphs.forEach(function(t,n){e.subgraphVisited(t)&&t.walkSubgraphs(e)})},t.prototype.walkVertices=function(e){this.__hpcc_vertices.forEach(function(t,n){e.vertexVisited(t)})},t}(GraphItem),Vertex=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r._globalType="Vertex",r}return __extends(t,e),t.prototype.isSpill=function(){return this._isSpill},t.prototype.remove=function(){var e,t=this.getInVertices();t.length<=1&&console.warn(this.__hpcc_id+": remove only supports single or zero inputs activities..."),this.getInEdges().forEach(function(e){e.remove()}),this.getOutEdges().forEach(function(e){e.setSource(t[0])}),null===(e=this.__hpcc_parent)||void 0===e||e.removeVertex(this),this.__hpcc_graph.removeItem(this)},t.prototype.getInVertices=function(){return this.getInEdges().map(function(e){return e.getSource()})},t.prototype.getInEdges=function(){var e=this;return this.__hpcc_graph.edges.filter(function(t){return t.getTarget()===e})},t.prototype.getOutVertices=function(){return this.getOutEdges().map(function(e){return e.getTarget()})},t.prototype.getOutEdges=function(){var e=this;return this.__hpcc_graph.edges.filter(function(t){return t.getSource()===e})},t}(GraphItem),Edge=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r._globalType="Edge",r._globalType="Edge",r}return __extends(t,e),t.prototype.remove=function(){var e=this;this.__hpcc_graph.subgraphs.forEach(function(t){t.removeEdge(e)}),this.__hpcc_graph.removeItem(this)},t.prototype.getSource=function(){return this.__hpcc_graph.idx[this._sourceActivity||this.source]},t.prototype.setSource=function(e){this._sourceActivity?this._sourceActivity=e.__hpcc_id:this.source&&(this.source=e.__hpcc_id),this.__widget&&this.__widget.setSource(this.getSource().__widget)},t.prototype.getTarget=function(){return this.__hpcc_graph.idx[this._targetActivity||this.target]},t}(GraphItem),QueryGraph=function(){function e(){this.idx={},this.subgraphs=[],this.vertices=[],this.edges=[],this.xgmml="",this.clear()}return e.prototype.clear=function(){this.xgmml="",this.idx={},this.subgraphs=[],this.vertices=[],this.edges=[]},e.prototype.load=function(e){this.clear(),this.merge(e)},e.prototype.merge=function(e){this.xgmml=e;var t=(new DOMParser).parseFromString(e,"text/xml");this.walkDocument(t.documentElement,"0")},e.prototype.isSubgraph=function(e){return e instanceof Subgraph},e.prototype.isVertex=function(e){return e instanceof Vertex},e.prototype.isEdge=function(e){return e instanceof Edge},e.prototype.getGlobalType=function(t){return t instanceof Vertex?GRAPH_TYPE.VERTEX:t instanceof Edge?GRAPH_TYPE.EDGE:t instanceof Subgraph?GRAPH_TYPE.SUBGRAPH:t instanceof e?GRAPH_TYPE.GRAPH:GRAPH_TYPE.UNKNOWN},e.prototype.getGlobalTypeString=function(t){return t instanceof Vertex?GRAPH_TYPE_STRING.VERTEX:t instanceof Edge?GRAPH_TYPE_STRING.EDGE:t instanceof Subgraph?GRAPH_TYPE_STRING.SUBGRAPH:t instanceof e?GRAPH_TYPE_STRING.GRAPH:GRAPH_TYPE_STRING.UNKNOWN},e.prototype.getItem=function(e,t){if(!this.idx[t])switch(e.tagName){case"graph":var n=new Subgraph(this,t);this.subgraphs.push(n),this.idx[t]=n;break;case"node":var r=new Vertex(this,t);this.vertices.push(r),this.idx[t]=r;break;case"edge":var o=new Edge(this,t);this.edges.push(o),this.idx[t]=o;break;default:console.warn("Graph.getItem - Unknown Node Type!")}var i=this.idx[t];return Array.from(e.attributes).forEach(function(e){safeAssign(i,e.name,e.value)}),i},e.prototype.removeItem=function(e){delete this.idx[e.__hpcc_id],e instanceof Subgraph?this.subgraphs=this.subgraphs.filter(function(t){return e!==t}):e instanceof Vertex?this.vertices=this.vertices.filter(function(t){return e!==t}):e instanceof Edge&&(this.edges=this.edges.filter(function(t){return e!==t}))},e.prototype.getChildByTagName=function(e,t){var n=null;return Array.from(e.childNodes).some(function(e,r){if(e.tagName===t)return n=e,!0}),n},e.prototype.walkDocument=function(e,t){var n=this,r=this.getItem(e,t);return e.childNodes.forEach(function(e,t){if(1===e.nodeType)switch(e.tagName){case"graph":break;case"node":var o=!1,i=n.getChildByTagName(e,"att");if(i){var s=n.getChildByTagName(i,"graph");if(s){o=!0;var c=n.walkDocument(s,e.getAttribute("id"));r.addSubgraph(c)}}if(!o){var u=n.walkDocument(e,e.getAttribute("id"));r.addVertex(u)}break;case"att":var a=e.getAttribute("name"),p="_"+a,l=e.getAttribute("value");0===a.indexOf("Time")?(safeAssign(r,p,l),safeAssign(r,a,""+espTime2Seconds(l))):0===a.indexOf("Size")?(safeAssign(r,p,l),safeAssign(r,a,""+espSize2Bytes(l))):0===a.indexOf("Skew")?(safeAssign(r,p,l),safeAssign(r,a,""+espSkew2Number(l))):safeAssign(r,a,l);break;case"edge":var d=n.walkDocument(e,e.getAttribute("id"));if(void 0!==d.NumRowsProcessed?d._eclwatchCount=d.NumRowsProcessed.replace(/\B(?=(\d{3})+(?!\d))/g,","):void 0!==d.Count?d._eclwatchCount=d.Count.replace(/\B(?=(\d{3})+(?!\d))/g,","):void 0!==d.count&&(d._eclwatchCount=d.count.replace(/\B(?=(\d{3})+(?!\d))/g,",")),d.inputProgress&&(d._eclwatchInputProgress="["+d.inputProgress.replace(/\B(?=(\d{3})+(?!\d))/g,",")+"]"),d.SkewMaxRowsProcessed&&d.SkewMinRowsProcessed&&(d._eclwatchSkew="+"+d.SkewMaxRowsProcessed+", "+d.SkewMinRowsProcessed),d._dependsOn);else if(d._childGraph);else if(d._sourceActivity||d._targetActivity){d._isSpill=!0;var h=d.getSource();h&&(h._isSpill=!0);var f=d.getTarget();f&&(f._isSpill=!0)}r.addEdge(d)}}),r},e.prototype.removeSubgraphs=function(){__spreadArray([],this.subgraphs,!0).forEach(function(e){e.__hpcc_parent instanceof Subgraph&&e.remove()})},e.prototype.removeSpillVertices=function(){__spreadArray([],this.vertices,!0).forEach(function(e){e.isSpill()&&e.remove()})},e.prototype.getLocalisedXGMML=function(e,t,n,r){var o=new LocalisedXGMMLWriter(this);return o.calcVisibility(e,t,n,r),o.writeXgmml(),"<graph>"+o.m_xgmml+"</graph>"},e}(),logger$2=util.scopedLogger("@hpcc-js/comms/ecl/query.ts"),siFormatter=format("~s");function isNumber(e){return!isNaN(parseFloat(e))&&!isNaN(e-0)}var States,QueryCache=function(e){function t(){return e.call(this,function(e){return util.Cache.hash([e.QueryId,e.QuerySet])})||this}return __extends(t,e),t}(util.Cache),_queries=new QueryCache,Query=function(e){function t(t,n,r,o){var i=e.call(this)||this;return i.wsWorkunitsService=t instanceof WorkunitsService?t:new WorkunitsService(t),i.topology=Topology.attach(i.wsWorkunitsService.opts()),i.set(__assign({QuerySet:n,QueryId:r},o)),i}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.wsWorkunitsService.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Exceptions",{get:function(){return this.get("Exceptions")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"QueryId",{get:function(){return this.get("QueryId")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"QuerySet",{get:function(){return this.get("QuerySet")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"QueryName",{get:function(){return this.get("QueryName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Wuid",{get:function(){return this.get("Wuid")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Dll",{get:function(){return this.get("Dll")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Suspended",{get:function(){return this.get("Suspended")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Activated",{get:function(){return this.get("Activated")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SuspendedBy",{get:function(){return this.get("SuspendedBy")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Clusters",{get:function(){return this.get("Clusters")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PublishedBy",{get:function(){return this.get("PublishedBy")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Comment",{get:function(){return this.get("Comment")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LogicalFiles",{get:function(){return this.get("LogicalFiles")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SuperFiles",{get:function(){return this.get("SuperFiles")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"IsLibrary",{get:function(){return this.get("IsLibrary")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Priority",{get:function(){return this.get("Priority")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WUSnapShot",{get:function(){return this.get("WUSnapShot")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CompileTime",{get:function(){return this.get("CompileTime")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"LibrariesUsed",{get:function(){return this.get("LibrariesUsed")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CountGraphs",{get:function(){return this.get("CountGraphs")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ResourceURLCount",{get:function(){return this.get("ResourceURLCount")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WsEclAddresses",{get:function(){return this.get("WsEclAddresses")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WUGraphs",{get:function(){return this.get("WUGraphs")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"WUTimers",{get:function(){return this.get("WUTimers")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PriorityID",{get:function(){return this.get("PriorityID")},enumerable:!1,configurable:!0}),t.attach=function(e,n,r,o){var i=_queries.get({BaseUrl:e.baseUrl,QuerySet:n,QueryId:r},function(){return new t(e,n,r)});return o&&i.set(o),i},t.prototype.wsEclService=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){return this._eclService||(this._eclService=this.topology.fetchServices({}).then(function(e){for(var t,n,r,o,i=0,s=null!==(n=null===(t=null==e?void 0:e.TpEspServers)||void 0===t?void 0:t.TpEspServer)&&void 0!==n?n:[];i<s.length;i++)for(var c=s[i],u=0,a=null!==(o=null===(r=null==c?void 0:c.TpBindings)||void 0===r?void 0:r.TpBinding)&&void 0!==o?o:[];u<a.length;u++){var p=a[u];if("ws_ecl"===(null==p?void 0:p.Service)){var l="".concat(p.Protocol,"://").concat(globalThis.location.hostname,":").concat(p.Port);return new EclService({baseUrl:l})}}})),[2,this._eclService]})})},t.prototype.fetchDetails=function(){return __awaiter(this,void 0,void 0,function(){var e;return __generator(this,function(t){switch(t.label){case 0:return[4,this.wsWorkunitsService.WUQueryDetails({QuerySet:this.QuerySet,QueryId:this.QueryId,IncludeStateOnClusters:!0,IncludeSuperFiles:!0,IncludeWsEclAddresses:!0,CheckAllNodes:!1})];case 1:return e=t.sent(),this.set(__assign({},e)),[2]}})})},t.prototype.fetchRequestSchema=function(){return __awaiter(this,void 0,void 0,function(){var e,t,n,r;return __generator(this,function(o){switch(o.label){case 0:return[4,this.wsEclService()];case 1:e=o.sent(),o.label=2;case 2:return o.trys.push([2,4,,5]),t=this,[4,null==e?void 0:e.requestJson(this.QuerySet,this.QueryId)];case 3:return t._requestSchema=null!==(r=o.sent())&&void 0!==r?r:[],[3,5];case 4:return n=o.sent(),logger$2.debug(n),this._requestSchema=[],[3,5];case 5:return[2]}})})},t.prototype.fetchResponseSchema=function(){return __awaiter(this,void 0,void 0,function(){var e,t,n,r;return __generator(this,function(o){switch(o.label){case 0:return[4,this.wsEclService()];case 1:e=o.sent(),o.label=2;case 2:return o.trys.push([2,4,,5]),t=this,[4,null==e?void 0:e.responseJson(this.QuerySet,this.QueryId)];case 3:return t._responseSchema=null!==(r=o.sent())&&void 0!==r?r:{},[3,5];case 4:return n=o.sent(),logger$2.debug(n),this._responseSchema={},[3,5];case 5:return[2]}})})},t.prototype.fetchSchema=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,Promise.all([this.fetchRequestSchema(),this.fetchResponseSchema()])];case 1:return e.sent(),[2]}})})},t.prototype.fetchSummaryStats=function(){return this.wsWorkunitsService.WUQueryGetSummaryStats({Target:this.QuerySet,QueryId:this.QueryId})},t.prototype.fetchGraph=function(e,t){return void 0===e&&(e=""),void 0===t&&(t=""),this.wsWorkunitsService.WUQueryGetGraph({Target:this.QuerySet,QueryId:this.QueryId,GraphName:e,SubGraphId:t}).then(function(e){for(var t,n=new QueryGraph,r=!0,o=0,i=(null===(t=null==e?void 0:e.Graphs)||void 0===t?void 0:t.ECLGraphEx)||[];o<i.length;o++){var s=i[o];r?(n.load(s.Graph),r=!1):n.merge(s.Graph)}return n})},t.prototype.fetchDetailsNormalized=function(e){void 0===e&&(e={});var t=Workunit.attach(this.wsWorkunitsService,this.Wuid);return t?Promise.all([this.fetchGraph(),t.fetchDetailsMeta(),t.fetchDetailsRaw(e)]).then(function(e){var n=e[0],r=e[1],o=e[2].map(function(e){if("a"===e.Id[0]||"e"===e.Id[0]){var t=n.idx[e.Id.substring(1)],r=function(n){if("_"!==n.charAt(0)&&n.charAt(0)===n.charAt(0).toUpperCase()&&("string"==typeof t[n]||"number"==typeof t[n]||"boolean"==typeof t[n])&&!e.Properties.Property.some(function(e){return e.Name===n})){var r=isNumber(t[n])?parseFloat(t[n]):t[n],o=t[n];n.indexOf("Time")>=0&&(o=siFormatter(r/=1e9)+"s"),e.Properties.Property.push({Name:n,RawValue:r,Formatted:o})}};for(var o in t)r(o)}return e});return t.normalizeDetails(r,o)}):Promise.resolve({meta:void 0,columns:void 0,data:void 0})},t.prototype.submit=function(e){return __awaiter(this,void 0,void 0,function(){var t,n;return __generator(this,function(r){switch(r.label){case 0:return[4,this.wsEclService()];case 1:t=r.sent();try{return[2,null!==(n=null==t?void 0:t.submit(this.QuerySet,this.QueryId,e).then(function(e){for(var t in e)e[t]=e[t].Row;return e}))&&void 0!==n?n:[]]}catch(e){return logger$2.debug(e),[2,[]]}return[2]}})})},t.prototype.refresh=function(){return __awaiter(this,void 0,void 0,function(){return __generator(this,function(e){switch(e.label){case 0:return[4,Promise.all([this.fetchDetails(),this.fetchSchema()])];case 1:return e.sent(),[2,this]}})})},t.prototype.requestFields=function(){return this._requestSchema?this._requestSchema:[]},t.prototype.responseFields=function(){return this._responseSchema?this._responseSchema:{}},t.prototype.resultNames=function(){var e=[];for(var t in this.responseFields())e.push(t);return e},t.prototype.resultFields=function(e){return this._responseSchema[e]?this._responseSchema[e]:[]},t}(util.StateObject),StoreCache=function(e){function t(){return e.call(this,function(e){return"".concat(e.BaseUrl,"-").concat(e.Name,":").concat(e.UserSpecific,"-").concat(e.Namespace)})||this}return __extends(t,e),t}(util.Cache),_store=new StoreCache,ValueChangedMessage=function(e){function t(t,n,r){var o=e.call(this)||this;return o.key=t,o.value=n,o.oldValue=r,o}return __extends(t,e),Object.defineProperty(t.prototype,"canConflate",{get:function(){return!0},enumerable:!1,configurable:!0}),t.prototype.conflate=function(e){return this.key===e.key&&(this.value=e.value,!0)},t.prototype.void=function(){return this.value===this.oldValue},t}(util.Message),Store=function(){function e(e,t,n,r){this._dispatch=new util.Dispatch,this._knownValues={},this.connection=e instanceof StoreService?e:new StoreService(e),this.Name=t,this.UserSpecific=r,this.Namespace=n}return Object.defineProperty(e.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),e.attach=function(t,n,r,o){return void 0===n&&(n="HPCCApps"),void 0===o&&(o=!0),_store.get({BaseUrl:t.baseUrl,Name:n,UserSpecific:o,Namespace:r},function(){return new e(t,n,r,o)})},e.prototype.create=function(){this.connection.CreateStore({Name:this.Name,UserSpecific:this.UserSpecific,Type:"",Description:""})},e.prototype.set=function(e,t,n){var r=this;return void 0===n&&(n=!0),this.connection.Set({StoreName:this.Name,UserSpecific:this.UserSpecific,Namespace:this.Namespace,Key:e,Value:t}).then(function(o){var i=r._knownValues[e];r._knownValues[e]=t,n&&r._dispatch.post(new ValueChangedMessage(e,t,i))}).catch(function(n){console.error('Store.set("'.concat(e,'", "').concat(t,'") failed:'),n)})},e.prototype.get=function(e,t){var n=this;return void 0===t&&(t=!0),this.connection.Fetch({StoreName:this.Name,UserSpecific:this.UserSpecific,Namespace:this.Namespace,Key:e}).then(function(r){var o=n._knownValues[e];return n._knownValues[e]=r.Value,t&&n._dispatch.post(new ValueChangedMessage(e,r.Value,o)),r.Value}).catch(function(t){console.error("Store.get(".concat(e,") failed:"),t)})},e.prototype.getAll=function(e){var t=this;return void 0===e&&(e=!0),this.connection.FetchAll({StoreName:this.Name,UserSpecific:this.UserSpecific,Namespace:this.Namespace}).then(function(n){var r={},o=t._knownValues;if(t._knownValues={},n.Pairs.Pair.forEach(function(n){var i=t._knownValues[n.Key];t._knownValues[n.Key]=n.Value,delete o[n.Key],r[n.Key]=n.Value,e&&t._dispatch.post(new ValueChangedMessage(n.Key,n.Value,i))}),e)for(var i in o)t._dispatch.post(new ValueChangedMessage(i,void 0,o[i]));return r}).catch(function(e){return console.error("Store.getAll failed:",e),{}})},e.prototype.delete=function(e,t){var n=this;return void 0===t&&(t=!0),this.connection.Delete({StoreName:this.Name,UserSpecific:this.UserSpecific,Namespace:this.Namespace,Key:e}).then(function(r){var o=n._knownValues[e];delete n._knownValues[e],t&&n._dispatch.post(new ValueChangedMessage(e,void 0,o))}).catch(function(t){console.error("Store.delete(".concat(e,") failed:"),t)})},e.prototype.monitor=function(e){return this._dispatch.attach(e)},e}(),logger$1=util.scopedLogger("@hpcc-js/comms/dfuWorkunit.ts");!function(e){e[e.Unknown=0]="Unknown",e[e.Scheduled=1]="Scheduled",e[e.Queued=2]="Queued",e[e.Started=3]="Started",e[e.Aborted=4]="Aborted",e[e.Failed=5]="Failed",e[e.Finished=6]="Finished",e[e.Monitoring=7]="Monitoring",e[e.Aborting=8]="Aborting",e[e.NotFound=999]="NotFound"}(States||(States={}));var DFUWorkunitCache=function(e){function t(){return e.call(this,function(e){return"".concat(e.BaseUrl,"-").concat(e.ID)})||this}return __extends(t,e),t}(util.Cache),_workunits=new DFUWorkunitCache,DFUWorkunit=function(e){function t(t,n){var r=e.call(this)||this;return r.connection=new FileSprayService(t),r.topologyConnection=new TopologyService(t),r.clearState(n),r}return __extends(t,e),Object.defineProperty(t.prototype,"BaseUrl",{get:function(){return this.connection.baseUrl},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"properties",{get:function(){return this.get()},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ID",{get:function(){return this.get("ID")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DFUServerName",{get:function(){return this.get("DFUServerName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ClusterName",{get:function(){return this.get("ClusterName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"JobName",{get:function(){return this.get("JobName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Queue",{get:function(){return this.get("Queue")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"User",{get:function(){return this.get("User")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"isProtected",{get:function(){return this.get("isProtected")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Command",{get:function(){return this.get("Command")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"CommandMessage",{get:function(){return this.get("CommandMessage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PercentDone",{get:function(){return this.get("PercentDone")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SecsLeft",{get:function(){return this.get("SecsLeft")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"ProgressMessage",{get:function(){return this.get("ProgressMessage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SummaryMessage",{get:function(){return this.get("SummaryMessage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"State",{get:function(){return this.get("State",States.Unknown)},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceLogicalName",{get:function(){return this.get("SourceLogicalName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceIP",{get:function(){return this.get("SourceIP")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceFilePath",{get:function(){return this.get("SourceFilePath")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceDali",{get:function(){return this.get("SourceDali")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceRecordSize",{get:function(){return this.get("SourceRecordSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceFormat",{get:function(){return this.get("SourceFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"RowTag",{get:function(){return this.get("RowTag")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceNumParts",{get:function(){return this.get("SourceNumParts")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceDirectory",{get:function(){return this.get("SourceDirectory")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestLogicalName",{get:function(){return this.get("DestLogicalName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestGroupName",{get:function(){return this.get("DestGroupName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestDirectory",{get:function(){return this.get("DestDirectory")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestIP",{get:function(){return this.get("DestIP")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestFilePath",{get:function(){return this.get("DestFilePath")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestFormat",{get:function(){return this.get("DestFormat")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestNumParts",{get:function(){return this.get("DestNumParts")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestRecordSize",{get:function(){return this.get("DestRecordSize")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Replicate",{get:function(){return this.get("Replicate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Overwrite",{get:function(){return this.get("Overwrite")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Compress",{get:function(){return this.get("Compress")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceCsvSeparate",{get:function(){return this.get("SourceCsvSeparate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceCsvQuote",{get:function(){return this.get("SourceCsvQuote")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceCsvTerminate",{get:function(){return this.get("SourceCsvTerminate")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceCsvEscape",{get:function(){return this.get("SourceCsvEscape")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TimeStarted",{get:function(){return this.get("TimeStarted")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"TimeStopped",{get:function(){return this.get("TimeStopped")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"StateMessage",{get:function(){return this.get("StateMessage")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MonitorEventName",{get:function(){return this.get("MonitorEventName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MonitorSub",{get:function(){return this.get("MonitorSub")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"MonitorShotLimit",{get:function(){return this.get("MonitorShotLimit")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"SourceDiffKeyName",{get:function(){return this.get("SourceDiffKeyName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"DestDiffKeyName",{get:function(){return this.get("DestDiffKeyName")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"Archived",{get:function(){return this.get("Archived")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"encrypt",{get:function(){return this.get("encrypt")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"decrypt",{get:function(){return this.get("decrypt")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"failIfNoSourceFile",{get:function(){return this.get("failIfNoSourceFile")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"recordStructurePresent",{get:function(){return this.get("recordStructurePresent")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"quotedTerminator",{get:function(){return this.get("quotedTerminator")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"preserveCompression",{get:function(){return this.get("preserveCompression")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"expireDays",{get:function(){return this.get("expireDays")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"PreserveFileParts",{get:function(){return this.get("PreserveFileParts")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"FileAccessCost",{get:function(){return this.get("FileAccessCost")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"KbPerSecAve",{get:function(){return this.get("KbPerSecAve")},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"KbPerSec",{get:function(){return this.get("KbPerSec")},enumerable:!1,configurable:!0}),t.create=function(e,n){var r=new t(e);return r.connection.CreateDFUWorkunit({DFUServerQueue:n}).then(function(e){return _workunits.set(r),r.set(e.result),r})},t.attach=function(e,n,r){var o=_workunits.get({BaseUrl:e.baseUrl,ID:n},function(){return new t(e,n)});return r&&o.set(r),o},t.sprayFixed=function(e,n){var r=new FileSprayService(e);return r.SprayFixedEx(__assign({},n)).then(function(n){var o=n.wuid;return r.GetDFUWorkunit({wuid:o}).then(function(n){return t.attach(e,o,n.result)})})},t.sprayVariable=function(e,n){var r=new FileSprayService(e);return r.SprayVariableEx(__assign({},n)).then(function(n){var o=n.wuid;return r.GetDFUWorkunit({wuid:o}).then(function(n){return t.attach(e,o,n.result)})})},t.despray=function(e,n){var r=new FileSprayService(e);return r.DesprayEx(__assign({},n)).then(function(n){var o=n.wuid;return r.GetDFUWorkunit({wuid:o}).then(function(n){return t.attach(e,o,n.result)})})},t.prototype.update=function(e){var t,n,r,o;return this.connection.UpdateDFUWorkunitEx({wu:{JobName:null!==(n=null===(t=null==e?void 0:e.wu)||void 0===t?void 0:t.JobName)&&void 0!==n?n:this.JobName,isProtected:null!==(o=null===(r=null==e?void 0:e.wu)||void 0===r?void 0:r.isProtected)&&void 0!==o?o:this.isProtected,ID:this.ID,State:this.State},ClusterOrig:this.ClusterName,JobNameOrig:this.JobName,isProtectedOrig:this.isProtected,StateOrig:this.State})},t.prototype.isComplete=function(){switch(this.State){case States.Finished:case States.Failed:case States.Aborted:case States.NotFound:return!0}return!1},t.prototype.isFailed=function(){return!(!this.isComplete()||this.State===States.Finished)},t.prototype.isDeleted=function(){return this.State===States.NotFound},t.prototype.isRunning=function(){return!this.isComplete()},t.prototype.abort=function(){return this.connection.AbortDFUWorkunit({wuid:this.ID})},t.prototype.delete=function(){var e=this;return this.DFUWUAction(exports.FileSpray.DFUWUActions.Delete).then(function(t){return e.refresh().then(function(){return e._monitor(),t})})},t.prototype.refresh=function(){return __awaiter(this,arguments,void 0,function(e){return __generator(this,function(e){switch(e.label){case 0:return[4,this.GetDFUWorkunit()];case 1:return e.sent(),[2,this]}})})},t.prototype.fetchXML=function(e){return this.DFUWUFile()},t.prototype._monitor=function(){this.isComplete()?this._monitorTickCount=0:e.prototype._monitor.call(this)},t.prototype._monitorTimeoutDuration=function(){var t=e.prototype._monitorTimeoutDuration.call(this);return this._monitorTickCount<=1?3e3:this._monitorTickCount<=5?6e3:this._monitorTickCount<=7?12e3:t},t.prototype.DFUWUFile=function(e){return void 0===e&&(e={}),this.connection.DFUWUFileEx(__assign(__assign({},e),{Wuid:this.ID})).then(function(e){return e}).catch(function(e){return""})},t.prototype.DFUWUAction=function(e){var t=this;return this.connection.DFUWorkunitsAction({wuids:{Item:[this.ID]},Type:e}).then(function(n){return e===exports.FileSpray.DFUWUActions.Delete?n:t.refresh().then(function(){return t._monitor(),n})})},t.prototype.on=function(t,n,r){var o=this;if(this.isCallback(n))switch(t){case"finished":e.prototype.on.call(this,"propChanged","State",function(e){o.isComplete()&&n([e])});break;case"changed":e.prototype.on.call(this,t,n)}else if("changed"===t)e.prototype.on.call(this,t,n,r);return this._monitor(),this},t.prototype.watchUntilComplete=function(e){var t=this;return new Promise(function(n,r){var o=t.watch(function(r){e&&e(r),t.isComplete()&&(o.release(),n(t))})})},t.prototype.watchUntilRunning=function(e){var t=this;return new Promise(function(n,r){var o=t.watch(function(r){e&&e(r),(t.isComplete()||t.isRunning())&&(o.release(),n(t))})})},t.prototype.clearState=function(e){this.clear({ID:e,State:States.Unknown})},t.prototype.GetDFUWorkunit=function(e){var t=this;return void 0===e&&(e={}),this.connection.GetDFUWorkunit(__assign(__assign({},e),{wuid:this.ID})).then(function(e){return t.set(e.result),e}).catch(function(e){if(!e.Exception.some(function(e){return(20080===e.Code||20081===e.Code)&&(t.clearState(t.ID),t.set("State",States.NotFound),!0)}))throw logger$1.warning("Unexpected ESP exception: ".concat(e.message)),e;return{}})},t}(util.StateObject);util.scopedLogger("clienttools/eclmeta");var Attr=function(e){this.__attrs=e.$,this.name=e.$.name},Field=function(){function e(e,t){this.__attrs=t.$,this.definition=e,this.name=t.$.name,this.type=t.$.type}return Object.defineProperty(e.prototype,"scope",{get:function(){return this.definition},enumerable:!1,configurable:!0}),e}(),ECLScope=function(){function e(e,t,n,r,o,i,s,c){void 0===o&&(o=1),void 0===i&&(i=0),void 0===s&&(s=0),void 0===c&&(c=Number.MAX_VALUE),this.name=e,this.type=t,this.sourcePath=path__namespace.normalize(n),this.line=+o-1,this.start=+i,this.body=+s,this.end=+c,this.definitions=this.parseDefinitions(r)}return Object.defineProperty(e.prototype,"scope",{get:function(){return this},enumerable:!1,configurable:!0}),e.prototype.parseDefinitions=function(e){var t=this;return void 0===e&&(e=[]),e.map(function(e){return new Definition(t.sourcePath,e)})},e.prototype.contains=function(e){return e>=this.start&&e<=this.end},e.prototype.scopeStackAt=function(e){var t=[];return this.contains(e)&&(t.push(this),this.definitions.forEach(function(n){t=n.scopeStackAt(e).concat(t)})),t},e.prototype._resolve=function(e,t){void 0===e&&(e=[]);var n=t.split("."),r=n.shift(),o=util.find(e,function(e){return"string"==typeof e.name&&"string"==typeof r&&e.name.toLowerCase()===r.toLowerCase()});return o&&o.definitions.length&&n.length?this._resolve(o.definitions,n.join(".")):o},e.prototype.resolve=function(e){return this._resolve(this.definitions,e)},e.prototype.suggestions=function(){var e=this;return this.definitions.map(function(t){return{name:t.name,type:e.type}})},e}(),Definition=function(e){function t(t,n){var r=e.call(this,n.$.name,n.$.type,t,n.children("Definition"),n.$.line,n.$.start,n.$.body,n.$.end)||this;return r.__attrs=n.$,r.exported=!!n.$.exported,r.shared=!!n.$.shared,r.fullname=n.$.fullname,r.inherittype=n.$.inherittype,r.attrs=r.parseAttrs(n.children("Attr")),r.fields=r.parseFields(n.children("Field")),r}return __extends(t,e),t.prototype.parseAttrs=function(e){return void 0===e&&(e=[]),e.map(function(e){return new Attr(e)})},t.prototype.parseFields=function(e){var t=this;return void 0===e&&(e=[]),e.map(function(e){return new Field(t,e)})},t.prototype.suggestions=function(){return e.prototype.suggestions.call(this).concat(this.fields.map(function(e){return{name:e.name,type:e.type}}))},t}(ECLScope),Import=function(e){this.__attrs=e.$,this.name=e.$.name,this.ref=e.$.ref,this.start=e.$.start,this.end=e.$.end,this.line=e.$.line},Source=function(e){function t(t){var n=e.call(this,t.$.name,"source",t.$.sourcePath,t.children("Definition"))||this;n.__attrs=t.$;var r=t.$.name.split(".");r.pop();var o=new util.XMLNode("");return o.appendAttribute("name","$"),o.appendAttribute("ref",r.join(".")),n.imports=__spreadArray([new Import(o)],n.parseImports(t.children("Import")),!0),n}return __extends(t,e),t.prototype.parseImports=function(e){return void 0===e&&(e=[]),e.map(function(e){return new Import(e)})},t.prototype.resolve=function(t,n){var r;r||void 0===n||this.scopeStackAt(n).some(function(e){return!!(r=e.resolve(t))});return r||(r=e.prototype.resolve.call(this,t)),r},t}(ECLScope),isHiddenDirectory=function(e){return 0===path__namespace.basename(e).indexOf(".")},isDirectory=function(e){return fs__namespace.lstatSync(e).isDirectory()&&!isHiddenDirectory(e)},isEcl=function(e){return[".ecl",".ecllib"].indexOf(path__namespace.extname(e).toLowerCase())>=0},modAttrs=function(e){return fs__namespace.readdirSync(e).map(function(t){return path__namespace.join(e,t)}).filter(function(e){return isDirectory(e)||isEcl(e)})},File=function(e){function t(t,n){return e.call(this,t,"file",n,[])||this}return __extends(t,e),t.prototype.suggestions=function(){return[]},t}(ECLScope),Folder=function(e){function t(t,n){return e.call(this,t,"folder",n,[])||this}return __extends(t,e),t.prototype.suggestions=function(){return modAttrs(this.sourcePath).map(function(e){return{name:path__namespace.basename(e,".ecl"),type:"folder"}})},t}(ECLScope),Workspace=function(){function e(e,t){this._sourceByID=new util.DictionaryNoCase,this._sourceByPath=new util.Dictionary,this._test=new util.DictionaryNoCase,this._workspacePath=e,this._eclccPath=t}return e.prototype.refresh=function(){this.primeWorkspace(),this.primeClientTools()},e.prototype.primeClientTools=function(){var e=this;return locateClientTools(this._eclccPath,"",this._workspacePath).then(function(t){return e._clientTools=t,t.paths()}).then(function(t){for(var n=0,r=["ECLCC_ECLLIBRARY_PATH","ECLCC_PLUGIN_PATH"];n<r.length;n++){var o=r[n];t[o]&&fs__namespace.existsSync(t[o])&&e.walkChildFolders(t[o],t[o])}return e})},e.prototype.primeWorkspace=function(){fs__namespace.existsSync(this._workspacePath)&&this.visitFolder(this._workspacePath,this._workspacePath)},e.prototype.walkChildFolders=function(e,t,n){void 0===n&&(n=!1);for(var r=0,o=modAttrs(e);r<o.length;r++){var i=o[r];isDirectory(i)?this.visitFolder(i,t,n):this.visitFile(i,t,n)}},e.prototype.visitFile=function(e,t,n){void 0===n&&(n=!1);var r=path__namespace.parse(e),o=path__namespace.join(r.dir,r.name),i=path__namespace.relative(t,o).split(path__namespace.sep).join(".");!n&&this._test.has(i)||this._test.set(i,new File("",e))},e.prototype.visitFolder=function(e,t,n){void 0===n&&(n=!1);var r=path__namespace.relative(t,e).split(path__namespace.sep).join(".");!n&&this._test.has(r)||(this._test.set(r,new Folder(r,e)),this.walkChildFolders(e,t,n))},e.prototype.buildStack=function(e,t,n){var r=t.split(".");n&&e[e.length-1]===r[0]&&r.shift();var o=__spreadArray(__spreadArray([],e,!0),r,!0),i=o.join(".");return{stack:o,qid:i}},e.prototype.walkECLScope=function(e,t){var n=this.buildStack(e,t.name,!0);this._test.set(n.qid,t);for(var r=0,o=t.definitions;r<o.length;r++){var i=o[r];this.walkDefinition(n.stack,i)}},e.prototype.walkField=function(e,t){var n=this.buildStack(e,t.name,!1);this._test.set(n.qid,t)},e.prototype.walkDefinition=function(e,t){var n=this.buildStack(e,t.name,!0);this.walkECLScope(e,t);for(var r=0,o=t.fields;r<o.length;r++){var i=o[r];this.walkField(n.stack,i)}},e.prototype.walkSource=function(e){this.walkECLScope([],e)},e.prototype.parseSources=function(e){void 0===e&&(e=[]);for(var t=0,n=e;t<n.length;t++){var r=n[t];if(r.$.name){var o=new Source(r);if(this._sourceByID.set(o.name,o),this._sourceByPath.set(o.sourcePath,o),o.name){var i=o.name.split(".").length;if(i>1){for(var s=o.sourcePath;i>1;)s=path__namespace.dirname(s),--i;this.visitFolder(s,path__namespace.dirname(s))}}this.walkSource(o)}}},e.prototype.parseMetaXML=function(e){var t=new MetaParser;return t.parse(e),this.parseSources(t.sources),t.sources.map(function(e){return path__namespace.normalize(e.$.sourcePath)})},e.prototype.resolveQualifiedID=function(e,t,n){var r;if(!r&&this._test.has(t)&&(r=this._test.get(t).scope),!r&&this._sourceByPath.has(e)){for(var o=this._sourceByPath.get(e),i=t.split("."),s=0,c=o.imports;s<c.length;s++){var u=c[s];if(u.name.toLowerCase()===i[0].toLowerCase()){u.ref?i[0]=u.ref:i.shift();break}}var a=i.join(".");!r&&this._test.has(a)&&(r=this._test.get(a).scope),r||(a=__spreadArray(__spreadArray([],o.name.split("."),!0),i,!0).join("."),this._test.has(a)&&(r=this._test.get(a).scope))}return r},e.prototype.resolvePartialID=function(e,t,n){var r=(t=t.toLowerCase()).split(".");r.pop();var o=1===r.length?r[0]:r.join(".");return this.resolveQualifiedID(e,o,n)},e}(),workspaceCache=new util.Dictionary;function attachWorkspace(e,t){var n=path__namespace.normalize(e);if(!workspaceCache.has(n)){var r=new Workspace(n,t);workspaceCache.set(n,r),r.refresh()}return workspaceCache.get(n)}function isQualifiedIDChar(e,t,n){if(t<0)return!1;var r=e.charAt(t);return(n?/[a-zA-Z\d_\.$]/:/[a-zA-Z\d_]/).test(r)}function qualifiedIDBoundary(e,t,n){for(;isQualifiedIDChar(e,t,n);)t+=n?-1:1;return t+(n?1:-1)}var MetaParser=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sources=[],t}return __extends(t,e),t.prototype.endXMLNode=function(t){if("Source"===t.name)this.sources.push(t);e.prototype.endXMLNode.call(this,t)},t}(util.SAXStackParser),logger=util.scopedLogger("clienttools/eclcc"),exeExt="Windows_NT"===os__namespace.type()?".exe":"";function tidyCRLF(e){return e.split("\r\n").join("\n").split("\r").join("\n")}var Version=function(){function e(e){this.prefix="",this.major=0,this.minor=0,this.patch=0,this.postfix="";var t=e.split(" ");if(t.length){var n=/(?:(\w+)_)?(\d+)\.(\d+)\.(\d+)(?:-(.*))?/.exec(t[t.length-1]);n&&(this.prefix=n[1]||"",this.major=+n[2]||0,this.minor=+n[3]||0,this.patch=+n[4]||0,this.postfix=n[5]||"")}}return e.prototype.parse=function(e){},e.prototype.exists=function(){return 0!==this.major||0!==this.minor||0!==this.patch||""!==this.postfix},e.prototype.compare=function(e){return this.major>e.major?1:this.major<e.major?-1:this.minor>e.minor?1:this.minor<e.minor?-1:this.patch>e.patch?1:this.patch<e.patch?-1:""===this.postfix&&""!==e.postfix?1:this.postfix.localeCompare(e.postfix)},e.prototype.toString=function(){return"".concat(this.prefix,"_").concat(this.major,".").concat(this.minor,".").concat(this.patch,"-").concat(this.postfix)},e}(),ERROR="error",WARN="warning",Errors=function(){function e(e){this.errWarn=[],this.errOther=[],this._checked=e}return e.prototype.checked=function(){return this._checked},e.prototype.all=function(){return this.errWarn},e.prototype.errors=function(){return this.errWarn.filter(function(e){return e.severity===ERROR})},e.prototype.hasError=function(){return this.errors().length>0},e.prototype.warnings=function(){return this.errWarn.filter(function(e){return e.severity===WARN})},e.prototype.hasWarning=function(){return this.warnings().length>0},e.prototype.info=function(){return this.errWarn.filter(function(e){return[ERROR,WARN].indexOf(e.severity)<0})},e.prototype.hasOther=function(){return this.info().length>0},e.prototype.unknown=function(){return this.errOther},e.prototype.hasUnknown=function(){return this.unknown().length>0},e}(),EclccErrors=function(e){function t(t,n){var r=e.call(this,n)||this;if(t&&t.length)for(var o=0,i=t.split(os__namespace.EOL);o<i.length;o++){var s=i[o],c=/([a-zA-Z]:\\(?:[- \w\.\d]+\\)*(?:[- \w\.\d]+)?|(?:\/[\w\.\-]+)+)\((\d*),(\d*)\) ?: ?(error|warning|info) C(\d*) ?: ?(.*)/.exec(s);if(c){var u=c[1],a=c[2],p=c[3],l=c[4],d=+a,h=+p,f=c[5]+": "+c[6];r.errWarn.push({filePath:u,line:d,col:h,msg:f,severity:l})}else if(c=/(error|warning|info): (.*)/i.exec(s)){l=c[1],f=c[2];r.errWarn.push({filePath:"",line:0,col:0,msg:f,severity:l})}else(c=/\d error(s?), \d warning(s?)/.exec(s))||(logger.warning('parseECLErrors: Unable to parse "'.concat(s,'"')),r.errOther.push(s))}return r._checked=n,r}return __extends(t,e),t}(Errors),EnvchkErrors=function(e){function t(t,n,r){var o=e.call(this,r)||this,i=fs__namespace.readFileSync(t,"utf8");if(i=i.replace(/\r\n/g,"\n"),o._lines=i.split("\n"),n&&n.length)for(var s=0,c=n.split(os__namespace.EOL);s<c.length;s++){var u=c[s],a=/(Warning|Error) : Path\=(\S*?)(\[\S*\])? Message\=(.*)/.exec(u);if(a){var p=a[1],l=a[2],d=a[3],h=a[4],f="".concat(l," ").concat(d||"",": ").concat(h),g=o.locate(l),y=g[0],A=g[1];o.errWarn.push({filePath:t,line:y,col:A,msg:f,severity:p})}else a||(logger.warning('parseECLErrors: Unable to parse "'.concat(u,'"')),o.errOther.push(u))}return o._checked=r,o}return __extends(t,e),t.prototype.locate=function(e){var t=e.split("/");if(t.length&&""===t[0]&&t.shift(),t.length>0)for(var n=0,r=0,o=this._lines;r<o.length;r++){var i=o[r],s="<"+t[0];if((i.indexOf(s+" ")>=0||i.indexOf(s+">")>=0)&&(t.shift(),0===t.length))return[n+1,i.indexOf(s)+1];++n}return[0,0]},t}(Errors);function walkXmlJson(e,t,n){for(var r in(n=n||[]).push(e),e)if(e.hasOwnProperty(r)){var o=e[r];t(r,o,n),o instanceof Array?o.forEach(function(e){walkXmlJson(e,t,n)}):"object"==typeof o&&walkXmlJson(o,t,n)}n.pop()}var allClientToolsCache,LocalWorkunit=function(){function e(e){this.jsonWU=e}return e.prototype.bpGetValidLocations=function(e){var t=[];if(util.exists("W_LOCAL.Graphs",this.jsonWU)){var n="";walkXmlJson(this.jsonWU.W_LOCAL.Graphs,function(r,o,i){if("$"===r&&o.id&&(n=o.id),"$"===r&&"definition"===o.name){var s=/([a-z,A-Z]:\\(?:[-\w\.\d]+\\)*(?:[-\w\.\d]+)?|(?:\/[\w\.\-]+)+)\((\d*),(\d*)\)/.exec(o.value);if(s){var c=s[1],u=+s[2],a=+s[3];e===c&&t.push({file:c,line:u,col:a,id:n})}}})}return t},e}(),ClientTools=function(){function e(e,t,n,r,o,i){void 0===n&&(n=[]),void 0===r&&(r=!1),void 0===o&&(o=[]),this._paths={},this.eclccPath=e,this.binPath=path__namespace.dirname(this.eclccPath),this.envchkPath=path__namespace.join(this.binPath,"envchk"+exeExt),this.eclBundlePath=path__namespace.join(this.binPath,"ecl-bundle"+exeExt),this.cwd=path__namespace.normalize(t||this.binPath),this.includeFolders=n,this._legacyMode=r,this._args=o,this._version=i}return e.prototype.clone=function(t,n,r,o){return void 0===r&&(r=!1),void 0===o&&(o=[]),new e(this.eclccPath,t,n,r,o,this._version)},e.prototype.exists=function(e){try{return fs__namespace.accessSync(e),!0}catch(e){}return!1},e.prototype.args=function(e){void 0===e&&(e=[]);var t=__spreadArray([],this._args,!0);return this._legacyMode&&t.push("-legacy"),t.concat(this.includeFolders.map(function(e){return"-I"+path__namespace.normalize(e)})).concat(e)},e.prototype.version=function(){var e=this;return this._version?Promise.resolve(this._version):this.execFile(this.eclccPath,this.binPath,this.args(["--version"]),"eclcc","Cannot find ".concat(this.eclccPath)).then(function(t){return e._version=new Version(t.stdout),e._version})},e.prototype.versionSync=function(){return this._version},e.prototype.paths=function(){var e=this;return this.execFile(this.eclccPath,this.cwd,this.args(["-showpaths"]),"eclcc","Cannot find ".concat(this.eclccPath)).then(function(t){if(t&&t.stdout&&t.stdout.length)for(var n=0,r=t.stdout.split(/\r?\n/);n<r.length;n++){var o=r[n].split("=");2===o.length&&(e._paths[o[0]]=o[1])}return e._paths})},e.prototype.loadXMLDoc=function(e,t){return new Promise(function(n,r){var o=fs__namespace.readFileSync(e,"ascii"),i=util.xml2json(o);t&&fs__namespace.unlink(e,function(e){}),n(i)})},e.prototype.createWU=function(e){var t=this,n=tmp__namespace.tmpNameSync({prefix:"eclcc-wu-tmp",postfix:""}),r=["-o"+n,"-wu"].concat([e]);return this.execFile(this.eclccPath,this.cwd,this.args(r),"eclcc","Cannot find ".concat(this.eclccPath)).then(function(e){var r=path__namespace.normalize(n+".xml");return(t.exists(r)?t.loadXMLDoc(r,!0):Promise.resolve({})).then(function(e){return new LocalWorkunit(e)})})},e.prototype.createArchive=function(e){var t=["-E"].concat([e]);return this.execFile(this.eclccPath,this.cwd,this.args(t),"eclcc","Cannot find ".concat(this.eclccPath)).then(function(e){return{content:e.stdout,err:new EclccErrors(e.stderr,[])}})},e.prototype.attachWorkspace=function(){return attachWorkspace(this.cwd)},e.prototype.fetchMeta=function(e){return Promise.all([attachWorkspace(this.cwd),this.execFile(this.eclccPath,this.cwd,this.args(["-M",e]),"eclcc","Cannot find ".concat(this.eclccPath))]).then(function(e){var t,n=e[0],r=e[1];try{r&&r.stdout&&r.stdout.length&&n.parseMetaXML(r.stdout)}catch(e){logger.error("fetchMeta: Error parsing XML - ".concat(null!==(t=null==e?void 0:e.message)&&void 0!==t?t:"unknown"))}return n})},e.prototype.syntaxCheck=function(e,t){return void 0===t&&(t=["-syntax"]),Promise.all([attachWorkspace(this.cwd),this.execFile(this.eclccPath,this.cwd,this.args(__spreadArray(__spreadArray([],t,!0),["-M",e],!1)),"eclcc","Cannot find ".concat(this.eclccPath))]).then(function(e){var t,n=e[0],r=e[1],o=[];try{r&&r.stdout&&r.stdout.length&&(o=n.parseMetaXML(r.stdout))}catch(e){logger.error("syntaxCheck: Error parsing XML - ".concat(null!==(t=null==e?void 0:e.message)&&void 0!==t?t:"unknown"))}return new EclccErrors(r?r.stderr:"",o)})},e.prototype.envCheck=function(e,t){return void 0===t&&(t=[]),Promise.all([attachWorkspace(this.cwd),this.execFile(this.envchkPath,this.cwd,this.args(__spreadArray(__spreadArray([],t,!0),[e],!1)),"envchk","Cannot find ".concat(this.envchkPath))]).then(function(t){t[0];var n=t[1];return new EnvchkErrors(e,n?n.stderr:"",[])})},e.prototype.bundleList=function(){var e=this,t=/\|(.*)\|(.*)\|(.*)\|/g;return Promise.all([fetch("https://raw.githubusercontent.com/hpcc-systems/ecl-bundles/master/README.rst").then(function(e){return e.text()}).then(function(e){for(var n=[],r=t.exec(e);r;)n.push({name:r[1].trim(),description:r[2].trim(),url:r[3].trim()}),r=t.exec(e);return n}),this.execFile(this.eclBundlePath,this.cwd,this.args(["list"]),"ecl-bundle","Cannot find ".concat(this.eclBundlePath)).then(function(e){return tidyCRLF(e.stdout).split("\n")}).then(function(t){var n={};return Promise.all(t.filter(function(e){return!!e}).map(function(t){return e.execFile(e.eclBundlePath,e.cwd,e.args(["info",t]),"ecl-bundle","Cannot find ".concat(e.eclBundlePath)).then(function(e){return tidyCRLF(e.stdout).split("\n")}).then(function(e){var r={};e.forEach(function(e){var t=e.split(":");r[t.shift().trim()]=t.join(":").trim()}),n[t]={name:t,props:r}})})).then(function(){return n})})]).then(function(e){var t=e[0],n=e[1];for(var r in t.forEach(function(e){n[e.name]&&(e.props=n[e.name].props,delete n[e.name])}),n)t.push({name:r,url:"",description:"",props:n[r].props});return t}).catch(function(e){return[]})},e.prototype.bundleInstall=function(e){return Promise.all([attachWorkspace(this.cwd),this.execFile(this.eclBundlePath,this.cwd,this.args(["install",e]),"ecl-bundle","Cannot find ".concat(this.eclBundlePath))]).then(function(e){return e[0],e[1]})},e.prototype.bundleUninstall=function(e){return Promise.all([attachWorkspace(this.cwd),this.execFile(this.eclBundlePath,this.cwd,this.args(["uninstall",e]),"ecl-bundle","Cannot find ".concat(this.eclBundlePath))]).then(function(e){return e[0],e[1]})},e.prototype.execFile=function(e,t,n,r,o){return new Promise(function(r,o){logger.debug("".concat(e," ").concat(n.join(" ")));var i=cp__namespace.spawn(e,n,{cwd:t}),s="",c="";i.stdout.on("data",function(e){s+=e.toString()}),i.stderr.on("data",function(e){c+=e.toString()}),i.on("close",function(e,t){r({code:e,stdout:s.trim(),stderr:c.trim()})})})},e}();function locateClientToolsInFolder(e,t){if(e){var n=path__namespace.join(e,"HPCCSystems");if(fs__namespace.existsSync(n)&&fs__namespace.statSync(n).isDirectory()){if("Windows_NT"!==os__namespace.type()){var r=path__namespace.join(n,"bin","eclcc");fs__namespace.existsSync(r)&&t.push(new ClientTools(r))}fs__namespace.readdirSync(n).forEach(function(e){var r=path__namespace.join(n,e,"clienttools","bin","eclcc"+exeExt);if(fs__namespace.existsSync(r)){var o=path__namespace.basename(e);new Version(o).exists()&&t.push(new ClientTools(r))}})}}}function clearAllClientToolsCache(){allClientToolsCache=void 0}function locateAllClientTools(){if(allClientToolsCache)return allClientToolsCache;var e=[];switch(os__namespace.type()){case"Windows_NT":var t=process.env["ProgramFiles(x86)"]||"";t&&locateClientToolsInFolder(t,e);var n=process.env.ProgramFiles||"";n&&locateClientToolsInFolder(n,e),t||n||locateClientToolsInFolder("c:\\Program Files (x86)",e);break;case"Linux":case"Darwin":locateClientToolsInFolder("/opt",e)}return allClientToolsCache=Promise.all(e.map(function(e){return e.version()})).then(function(){return e.sort(function(e,t){return t.versionSync().compare(e.versionSync())}),e})}var eclccPathMsg="";function logEclccPath(e){var t="Using eclccPath setting: ".concat(e);eclccPathMsg!==t&&(logger.info(t),eclccPathMsg=t)}function locateClientTools(e,t,n,r,o,i){return void 0===e&&(e=""),void 0===t&&(t=""),void 0===n&&(n="."),void 0===r&&(r=[]),void 0===o&&(o=!1),void 0===i&&(i=[]),e&&fs__namespace.existsSync(e)?(logEclccPath(e),Promise.resolve(new ClientTools(e,n,r,o,i))):locateAllClientTools().then(function(e){if(!e.length)throw new Error("Unable to locate ECL Client Tools.");for(var s,c,u=new Version(t),a=0,p=e;a<p.length;a++){var l=p[a],d=l.versionSync();if(d.exists()&&(s||(s=l),c||u.major!==d.major||(c=l),u.major===d.major&&u.minor===d.minor))return l.clone(n,r,o,i)}var h=c||s;return logEclccPath(h.eclccPath),h.clone(n,r,o,i)})}util.root.DOMParser=xmldom.DOMParser,void 0===util.root.fetch?(util.root.fetch=fetch$1,util.root.fetch.__rejectUnauthorizedAgent=new https__namespace.Agent({rejectUnauthorized:!1})):(util.root.fetch.__defaultAgent=new undici.Agent,util.root.fetch.__rejectUnauthorizedAgent=new undici.Agent({connect:{rejectUnauthorized:!1}}),util.root.fetch.__setGlobalDispatcher=undici.setGlobalDispatcher),void 0===util.root.AbortController&&(util.root.AbortController=AbortController);var globalCA="";void 0!==https__namespace.globalAgent.options.ca&&(Array.isArray(https__namespace.globalAgent.options.ca)&&https__namespace.globalAgent.options.ca.length?"string"==typeof https__namespace.globalAgent.options.ca[0]?globalCA=https__namespace.globalAgent.options.ca.join("\n"):https__namespace.globalAgent.options.ca[0]instanceof safeBuffer.Buffer&&(globalCA=https__namespace.globalAgent.options.ca.map(function(e){return e.toString()}).join("\n")):"string"==typeof https__namespace.globalAgent.options.ca?globalCA=https__namespace.globalAgent.options.ca:https__namespace.globalAgent.options.ca instanceof safeBuffer.Buffer&&(globalCA=https__namespace.globalAgent.options.ca.toString()),globalCA+="\n"),util.root.fetch.__trustwaveAgent=new https__namespace.Agent({ca:globalCA+trustwave}),void 0===util.root.btoa&&(util.root.btoa=function(e){return safeBuffer.Buffer.from(e||"","utf8").toString("base64")}),exports.AccessService=AccessService,exports.AccountService=AccountService,exports.Activity=Activity,exports.Attr=Attr,exports.Attribute=Attribute,exports.BUILD_VERSION=BUILD_VERSION,exports.BaseScope=BaseScope,exports.ClientTools=ClientTools,exports.CloudService=CloudService,exports.CodesignService=CodesignService,exports.Connection=Connection,exports.DFUArrayActions=DFUArrayActions,exports.DFUChangeProtection=DFUChangeProtection,exports.DFUChangeRestriction=DFUChangeRestriction,exports.DFUDefFileFormat=DFUDefFileFormat,exports.DFUService=DFUService,exports.DFUWorkunit=DFUWorkunit,exports.DFUWorkunitCache=DFUWorkunitCache,exports.DFUXRefService=DFUXRefService,exports.DaliService=DaliService,exports.Definition=Definition,exports.ECLGraph=ECLGraph,exports.ECLScope=ECLScope,exports.ESPConnection=ESPConnection,exports.ESPExceptions=ESPExceptions,exports.EclService=EclService,exports.EclccErrors=EclccErrors,exports.ElkService=ElkService,exports.EnvchkErrors=EnvchkErrors,exports.Errors=Errors,exports.Field=Field,exports.File=File,exports.FileSprayService=FileSprayService,exports.Folder=Folder,exports.GlobalResultCache=GlobalResultCache,exports.GraphCache=GraphCache,exports.Import=Import,exports.LocalWorkunit=LocalWorkunit,exports.LogaccessService=LogaccessService,exports.LogicalFile=LogicalFile,exports.LogicalFileCache=LogicalFileCache,exports.Machine=Machine,exports.MachineCache=MachineCache,exports.MachineService=MachineService,exports.PKG_NAME=PKG_NAME,exports.PKG_VERSION=PKG_VERSION,exports.PackageProcessService=PackageProcessService,exports.PropertyType=PropertyType,exports.Query=Query,exports.QueryGraph=QueryGraph,exports.RelatedProperty=RelatedProperty,exports.Resource=Resource,exports.ResourcesService=ResourcesService,exports.Result=Result,exports.ResultCache=ResultCache,exports.SMCService=SMCService,exports.SashaService=SashaService,exports.Scope=Scope,exports.ScopeEdge=ScopeEdge,exports.ScopeGraph=ScopeGraph,exports.ScopeSubgraph=ScopeSubgraph,exports.ScopeVertex=ScopeVertex,exports.Service=Service,exports.Source=Source,exports.SourceFile=SourceFile,exports.Store=Store,exports.StoreCache=StoreCache,exports.StoreService=StoreService,exports.TargetCluster=TargetCluster,exports.TargetClusterCache=TargetClusterCache,exports.Timer=Timer,exports.Topology=Topology,exports.TopologyCache=TopologyCache,exports.TopologyService=TopologyService,exports.ValueChangedMessage=ValueChangedMessage,exports.Version=Version,exports.Workspace=Workspace,exports.Workunit=Workunit,exports.WorkunitCache=WorkunitCache,exports.WorkunitsService=WorkunitsService,exports.WorkunitsServiceEx=WorkunitsServiceEx,exports.XGMMLEdge=XGMMLEdge,exports.XGMMLGraph=XGMMLGraph,exports.XGMMLSubgraph=XGMMLSubgraph,exports.XGMMLVertex=XGMMLVertex,exports.XSDNode=XSDNode,exports.XSDSchema=XSDSchema,exports.XSDSimpleType=XSDSimpleType,exports.XSDXMLNode=XSDXMLNode,exports.attachWorkspace=attachWorkspace,exports.clearAllClientToolsCache=clearAllClientToolsCache,exports.createGraph=createGraph,exports.createXGMMLGraph=createXGMMLGraph,exports.defaultTargetCluster=defaultTargetCluster,exports.deserializeResponse=deserializeResponse,exports.get=get,exports.hookSend=hookSend,exports.instanceOfIConnection=instanceOfIConnection,exports.instanceOfIOptions=instanceOfIOptions,exports.isArray=isArray,exports.isECLResult=isECLResult,exports.isExceptions=isExceptions,exports.isWUInfoWorkunit=isWUInfoWorkunit,exports.isWUQueryECLWorkunit=isWUQueryECLWorkunit,exports.jsonp=jsonp,exports.locateAllClientTools=locateAllClientTools,exports.locateClientTools=locateClientTools,exports.parseXSD=parseXSD,exports.parseXSD2=parseXSD2,exports.post=post,exports.qualifiedIDBoundary=qualifiedIDBoundary,exports.send=send,exports.serializeRequest=serializeRequest,exports.setTransportFactory=setTransportFactory,exports.splitMetric=splitMetric,exports.targetClusters=targetClusters,exports.walkXmlJson=walkXmlJson;
2
2
  //# sourceMappingURL=index.node.min.js.map