{"remainingRequest":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/babel-loader/lib/index.js!/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/eslint-loader/index.js??ref--14-0!/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/store/modules/splitFlow.js","dependencies":[{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/store/modules/splitFlow.js","mtime":1702265337638},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/babel.config.js","mtime":1684261475125},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/babel-loader/lib/index.js","mtime":456789000000},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/eslint-loader/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IF9zbGljZWRUb0FycmF5IGZyb20gIi9ob21lL2NtaXNzL0plbmtpbnMvd29ya3NwYWNlL21hcGludGVncmF0ZWR2dWVyL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2VzbS9zbGljZWRUb0FycmF5LmpzIjsKaW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMub2JqZWN0LmVudHJpZXMuanMiOwppbXBvcnQgImNvcmUtanMvbW9kdWxlcy9lcy5hcnJheS5pbmNsdWRlcy5qcyI7CmltcG9ydCAiY29yZS1qcy9tb2R1bGVzL2VzLmFycmF5LnB1c2guanMiOwppbXBvcnQgImNvcmUtanMvbW9kdWxlcy9lcy5vYmplY3QudG8tc3RyaW5nLmpzIjsKaW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvZXMuYXJyYXkuZmluZC5qcyI7CmltcG9ydCAiY29yZS1qcy9tb2R1bGVzL2VzLm9iamVjdC5rZXlzLmpzIjsKaW1wb3J0ICJjb3JlLWpzL21vZHVsZXMvd2ViLmRvbS1jb2xsZWN0aW9ucy5pdGVyYXRvci5qcyI7CmltcG9ydCAiY29yZS1qcy9tb2R1bGVzL2VzLmZ1bmN0aW9uLm5hbWUuanMiOwovKiBlc2xpbnQtZGlzYWJsZSBuby1hbGVydCwgbm8tY29uc29sZSAqLwppbXBvcnQgVnVlIGZyb20gInZ1ZSI7CnZhciBwcmVzZXRMYXlvdXRzID0gZnVuY3Rpb24gcHJlc2V0TGF5b3V0cyh2aWV3KSB7CiAgc3dpdGNoICh2aWV3KSB7CiAgICBjYXNlICIyaG9ycGFuZWwiOgogICAgICByZXR1cm4gewogICAgICAgICJzcGxpdC0xIjogewogICAgICAgICAgY29udGVudDogZmFsc2UsCiAgICAgICAgICBob3Jpem9udGFsOiB0cnVlLAogICAgICAgICAgY2hpbGRyZW46IFsicGFuZS0xIiwgInBhbmUtMiJdCiAgICAgICAgfSwKICAgICAgICAicGFuZS0xIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAxCiAgICAgICAgfSwKICAgICAgICAicGFuZS0yIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAyCiAgICAgICAgfQogICAgICB9OwogICAgY2FzZSAiMnZlcnRwYW5lbCI6CiAgICAgIHJldHVybiB7CiAgICAgICAgInNwbGl0LTEiOiB7CiAgICAgICAgICBjb250ZW50OiBmYWxzZSwKICAgICAgICAgIGhvcml6b250YWw6IGZhbHNlLAogICAgICAgICAgY2hpbGRyZW46IFsicGFuZS0xIiwgInBhbmUtMiJdCiAgICAgICAgfSwKICAgICAgICAicGFuZS0xIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAxCiAgICAgICAgfSwKICAgICAgICAicGFuZS0yIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAyCiAgICAgICAgfQogICAgICB9OwogICAgY2FzZSAiM3BhbmVsIjoKICAgICAgcmV0dXJuIHsKICAgICAgICAic3BsaXQtMSI6IHsKICAgICAgICAgIGNvbnRlbnQ6IGZhbHNlLAogICAgICAgICAgaG9yaXpvbnRhbDogZmFsc2UsCiAgICAgICAgICBjaGlsZHJlbjogWyJwYW5lLTEiLCAic3BsaXQtMiJdCiAgICAgICAgfSwKICAgICAgICAic3BsaXQtMiI6IHsKICAgICAgICAgIGNvbnRlbnQ6IGZhbHNlLAogICAgICAgICAgaG9yaXpvbnRhbDogdHJ1ZSwKICAgICAgICAgIGNoaWxkcmVuOiBbInBhbmUtMiIsICJwYW5lLTMiXQogICAgICAgIH0sCiAgICAgICAgInBhbmUtMSI6IHsKICAgICAgICAgIGNvbnRlbnQ6IHRydWUsCiAgICAgICAgICBpZDogMQogICAgICAgIH0sCiAgICAgICAgInBhbmUtMiI6IHsKICAgICAgICAgIGNvbnRlbnQ6IHRydWUsCiAgICAgICAgICBpZDogMgogICAgICAgIH0sCiAgICAgICAgInBhbmUtMyI6IHsKICAgICAgICAgIGNvbnRlbnQ6IHRydWUsCiAgICAgICAgICBpZDogMwogICAgICAgIH0KICAgICAgfTsKICAgIGNhc2UgIjRwYW5lbCI6CiAgICAgIHJldHVybiB7CiAgICAgICAgInNwbGl0LTEiOiB7CiAgICAgICAgICBjb250ZW50OiBmYWxzZSwKICAgICAgICAgIGhvcml6b250YWw6IGZhbHNlLAogICAgICAgICAgY2hpbGRyZW46IFsic3BsaXQtMyIsICJzcGxpdC0yIl0KICAgICAgICB9LAogICAgICAgICJzcGxpdC0yIjogewogICAgICAgICAgY29udGVudDogZmFsc2UsCiAgICAgICAgICBob3Jpem9udGFsOiB0cnVlLAogICAgICAgICAgY2hpbGRyZW46IFsicGFuZS0yIiwgInBhbmUtMyJdCiAgICAgICAgfSwKICAgICAgICAic3BsaXQtMyI6IHsKICAgICAgICAgIGNvbnRlbnQ6IGZhbHNlLAogICAgICAgICAgaG9yaXpvbnRhbDogdHJ1ZSwKICAgICAgICAgIGNoaWxkcmVuOiBbInBhbmUtMSIsICJwYW5lLTQiXQogICAgICAgIH0sCiAgICAgICAgInBhbmUtMSI6IHsKICAgICAgICAgIGNvbnRlbnQ6IHRydWUsCiAgICAgICAgICBpZDogMQogICAgICAgIH0sCiAgICAgICAgInBhbmUtMiI6IHsKICAgICAgICAgIGNvbnRlbnQ6IHRydWUsCiAgICAgICAgICBpZDogMgogICAgICAgIH0sCiAgICAgICAgInBhbmUtMyI6IHsKICAgICAgICAgIGNvbnRlbnQ6IHRydWUsCiAgICAgICAgICBpZDogMwogICAgICAgIH0sCiAgICAgICAgInBhbmUtNCI6IHsKICAgICAgICAgIGNvbnRlbnQ6IHRydWUsCiAgICAgICAgICBpZDogNAogICAgICAgIH0KICAgICAgfTsKICAgIGNhc2UgIjVwYW5lbCI6CiAgICAgIHJldHVybiB7CiAgICAgICAgInNwbGl0LTEiOiB7CiAgICAgICAgICBjb250ZW50OiBmYWxzZSwKICAgICAgICAgIGhvcml6b250YWw6IHRydWUsCiAgICAgICAgICBjaGlsZHJlbjogWyJzcGxpdC0zIiwgInNwbGl0LTIiXQogICAgICAgIH0sCiAgICAgICAgInNwbGl0LTIiOiB7CiAgICAgICAgICBjb250ZW50OiBmYWxzZSwKICAgICAgICAgIGhvcml6b250YWw6IGZhbHNlLAogICAgICAgICAgY2hpbGRyZW46IFsicGFuZS0yIiwgInBhbmUtMyJdCiAgICAgICAgfSwKICAgICAgICAic3BsaXQtMyI6IHsKICAgICAgICAgIGNvbnRlbnQ6IGZhbHNlLAogICAgICAgICAgaG9yaXpvbnRhbDogZmFsc2UsCiAgICAgICAgICBjaGlsZHJlbjogWyJwYW5lLTEiLCAicGFuZS00IiwgInBhbmUtNSJdCiAgICAgICAgfSwKICAgICAgICAicGFuZS0xIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAxCiAgICAgICAgfSwKICAgICAgICAicGFuZS0yIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAyCiAgICAgICAgfSwKICAgICAgICAicGFuZS0zIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAzCiAgICAgICAgfSwKICAgICAgICAicGFuZS00IjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiA0CiAgICAgICAgfSwKICAgICAgICAicGFuZS01IjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiA1CiAgICAgICAgfQogICAgICB9OwogICAgY2FzZSAiNnBhbmVsIjoKICAgICAgcmV0dXJuIHsKICAgICAgICAic3BsaXQtMSI6IHsKICAgICAgICAgIGNvbnRlbnQ6IGZhbHNlLAogICAgICAgICAgaG9yaXpvbnRhbDogdHJ1ZSwKICAgICAgICAgIGNoaWxkcmVuOiBbInNwbGl0LTMiLCAic3BsaXQtMiJdCiAgICAgICAgfSwKICAgICAgICAic3BsaXQtMiI6IHsKICAgICAgICAgIGNvbnRlbnQ6IGZhbHNlLAogICAgICAgICAgaG9yaXpvbnRhbDogZmFsc2UsCiAgICAgICAgICBjaGlsZHJlbjogWyJwYW5lLTIiLCAicGFuZS0zIiwgInBhbmUtNSJdCiAgICAgICAgfSwKICAgICAgICAic3BsaXQtMyI6IHsKICAgICAgICAgIGNvbnRlbnQ6IGZhbHNlLAogICAgICAgICAgaG9yaXpvbnRhbDogZmFsc2UsCiAgICAgICAgICBjaGlsZHJlbjogWyJwYW5lLTEiLCAicGFuZS00IiwgInBhbmUtNiJdCiAgICAgICAgfSwKICAgICAgICAicGFuZS0xIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAxCiAgICAgICAgfSwKICAgICAgICAicGFuZS0yIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAyCiAgICAgICAgfSwKICAgICAgICAicGFuZS0zIjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiAzCiAgICAgICAgfSwKICAgICAgICAicGFuZS00IjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiA0CiAgICAgICAgfSwKICAgICAgICAicGFuZS01IjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiA1CiAgICAgICAgfSwKICAgICAgICAicGFuZS02IjogewogICAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICAgIGlkOiA2CiAgICAgICAgfQogICAgICB9OwogICAgY2FzZSAiNnBhbmVsVmVydGljYWwiOgogICAgICByZXR1cm4gewogICAgICAgICJzcGxpdC0xIjogewogICAgICAgICAgY29udGVudDogZmFsc2UsCiAgICAgICAgICBob3Jpem9udGFsOiBmYWxzZSwKICAgICAgICAgIGNoaWxkcmVuOiBbInNwbGl0LTMiLCAic3BsaXQtMiJdCiAgICAgICAgfSwKICAgICAgICAic3BsaXQtMiI6IHsKICAgICAgICAgIGNvbnRlbnQ6IGZhbHNlLAogICAgICAgICAgaG9yaXpvbnRhbDogdHJ1ZSwKICAgICAgICAgIGNoaWxkcmVuOiBbInBhbmUtMiIsICJwYW5lLTMiLCAicGFuZS01Il0KICAgICAgICB9LAogICAgICAgICJzcGxpdC0zIjogewogICAgICAgICAgY29udGVudDogZmFsc2UsCiAgICAgICAgICBob3Jpem9udGFsOiB0cnVlLAogICAgICAgICAgY2hpbGRyZW46IFsicGFuZS0xIiwgInBhbmUtNCIsICJwYW5lLTYiXQogICAgICAgIH0sCiAgICAgICAgInBhbmUtMSI6IHsKICAgICAgICAgIGNvbnRlbnQ6IHRydWUsCiAgICAgICAgICBpZDogMQogICAgICAgIH0sCiAgICAgICAgInBhbmUtMiI6IHsKICAgICAgICAgIGNvbnRlbnQ6IHRydWUsCiAgICAgICAgICBpZDogMgogICAgICAgIH0sCiAgICAgICAgInBhbmUtMyI6IHsKICAgICAgICAgIGNvbnRlbnQ6IHRydWUsCiAgICAgICAgICBpZDogMwogICAgICAgIH0sCiAgICAgICAgInBhbmUtNCI6IHsKICAgICAgICAgIGNvbnRlbnQ6IHRydWUsCiAgICAgICAgICBpZDogNAogICAgICAgIH0sCiAgICAgICAgInBhbmUtNSI6IHsKICAgICAgICAgIGNvbnRlbnQ6IHRydWUsCiAgICAgICAgICBpZDogNQogICAgICAgIH0sCiAgICAgICAgInBhbmUtNiI6IHsKICAgICAgICAgIGNvbnRlbnQ6IHRydWUsCiAgICAgICAgICBpZDogNgogICAgICAgIH0KICAgICAgfTsKICAgIGNhc2UgInNpbmdsZXBhbmVsIjoKICAgIGRlZmF1bHQ6CiAgICAgIHJldHVybiB7CiAgICAgICAgInNwbGl0LTEiOiB7CiAgICAgICAgICBjb250ZW50OiBmYWxzZSwKICAgICAgICAgIGhvcml6b250YWw6IGZhbHNlLAogICAgICAgICAgY2hpbGRyZW46IFsicGFuZS0xIl0KICAgICAgICB9LAogICAgICAgICJwYW5lLTEiOiB7CiAgICAgICAgICBjb250ZW50OiB0cnVlLAogICAgICAgICAgaWQ6IDEKICAgICAgICB9CiAgICAgIH07CiAgfQp9OwoKLy9BIG1ldGhvZCB0byBhc3NpZ24gdW51c2VkIGVudHJ5IHRvIHBhbmUgd2l0aCBkdXBsaWNhdGVkIGlkCnZhciBhdXRvQXNzaWduRW50cnlJZHNUb1BhbmUgPSBmdW5jdGlvbiBhdXRvQXNzaWduRW50cnlJZHNUb1BhbmUoZW50cmllcywgbGF5b3V0KSB7CiAgdmFyIGFzc2lnbmVkSWRzID0gW107CiAgdmFyIGludmFsaWRJZEtleXMgPSBbXTsKICBmb3IgKHZhciBfaSA9IDAsIF9PYmplY3QkZW50cmllcyA9IE9iamVjdC5lbnRyaWVzKGxheW91dCk7IF9pIDwgX09iamVjdCRlbnRyaWVzLmxlbmd0aDsgX2krKykgewogICAgdmFyIF9PYmplY3QkZW50cmllcyRfaSA9IF9zbGljZWRUb0FycmF5KF9PYmplY3QkZW50cmllc1tfaV0sIDIpLAogICAgICBrZXkgPSBfT2JqZWN0JGVudHJpZXMkX2lbMF0sCiAgICAgIHZhbHVlID0gX09iamVjdCRlbnRyaW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ZSA9IF9PYmplY3QkZW50cmllczIkX2lbMV07CiAgICBpZiAodmFsdWUuY29udGVudCkgewogICAgICBwYW5lc1trZXldID0gdmFsdWU7CiAgICB9CiAgfQogIHJldHVybiBwYW5lczsKfTsKdmFyIG5ld0xheW91dFdpdGhPcmlnSW5mbyA9IGZ1bmN0aW9uIG5ld0xheW91dFdpdGhPcmlnSW5mbyhvcmlnaW5hbCwgYWN0aXZlVmlldykgewogIHZhciBwYW5lcyA9IGV4dHJhY3RQYW5lSW5mbyhvcmlnaW5hbCk7CiAgdmFyIGN1c3RvbUxheW91dCA9IHByZXNldExheW91dHMoYWN0aXZlVmlldyk7CiAgZm9yICh2YXIgX2kzID0gMCwgX09iamVjdCRlbnRyaWVzMyA9IE9iamVjdC5lbnRyaWVzKHBhbmVzKTsgX2kzIDwgX09iamVjdCRlbnRyaWVzMy5sZW5ndGg7IF9pMysrKSB7CiAgICB2YXIgX09iamVjdCRlbnRyaWVzMyRfaSA9IF9zbGljZWRUb0FycmF5KF9PYmplY3QkZW50cmllczNbX2kzXSwgMiksCiAgICAgIGtleSA9IF9PYmplY3QkZW50cmllczMkX2lbMF0sCiAgICAgIHZhbHVlID0gX09iamVjdCRlbnRyaWVzMyRfaVsxXTsKICAgIGN1c3RvbUxheW91dFtrZXldID0gdmFsdWU7CiAgfQogIHJldHVybiBjdXN0b21MYXlvdXQ7Cn07CnZhciBmaW5kS2V5V2l0aElkID0gZnVuY3Rpb24gZmluZEtleVdpdGhJZChsYXlvdXQsIGlkKSB7CiAgcmV0dXJuIE9iamVjdC5rZXlzKGxheW91dCkuZmluZChmdW5jdGlvbiAoa2V5KSB7CiAgICByZXR1cm4gbGF5b3V0W2tleV1bImlkIl0gPT09IGlkOwogIH0pOwp9Owp2YXIgc3RhdGUgPSBmdW5jdGlvbiBzdGF0ZSgpIHsKICByZXR1cm4gewogICAgYWN0aXZlVmlldzogInNpbmdsZXBhbmVsIiwKICAgIHZpZXdJY29uczogW3sKICAgICAgaWNvbjogInNpbmdsZXBhbmVsIiwKICAgICAgbmFtZTogIlNpbmdsZSB2aWV3IiwKICAgICAgbWluOiAxCiAgICB9LCB7CiAgICAgIGljb246ICIyaG9ycGFuZWwiLAogICAgICBuYW1lOiAiSG9yaXpvbnRhbCBzcGxpdCIsCiAgICAgIG1pbjogMgogICAgfSwgewogICAgICBpY29uOiAiMnZlcnRwYW5lbCIsCiAgICAgIG5hbWU6ICJWZXJ0aWNhbCBzcGxpdCIsCiAgICAgIG1pbjogMgogICAgfSwgewogICAgICBpY29uOiAiM3BhbmVsIiwKICAgICAgbmFtZTogIlRocmVlIHBhbmVzIiwKICAgICAgbWluOiAzCiAgICB9LCB7CiAgICAgIGljb246ICI0cGFuZWwiLAogICAgICBuYW1lOiAiRm91ciBwYW5lcyIsCiAgICAgIG1pbjogNAogICAgfSwgewogICAgICBpY29uOiAiNXBhbmVsIiwKICAgICAgbmFtZTogIkZpdmUgcGFuZXMiLAogICAgICBtaW46IDUKICAgIH0sIHsKICAgICAgaWNvbjogIjZwYW5lbCIsCiAgICAgIG5hbWU6ICJTaXggKGhvcml6b250YWwpIiwKICAgICAgbWluOiA2CiAgICB9LCB7CiAgICAgIGljb246ICI2cGFuZWxWZXJ0aWNhbCIsCiAgICAgIG5hbWU6ICJTaXggKHZlcnRpY2FsKSIsCiAgICAgIG1pbjogNgogICAgfQogICAgLy97IGljb246ICJjdXN0b21pc2UiLCBuYW1lOiAiQ3VzdG9taXNlIiwgbWluOiAyIH0KICAgIF0sCgogICAgY3VzdG9tTGF5b3V0OiB7CiAgICAgICJzcGxpdC0xIjogewogICAgICAgIGNvbnRlbnQ6IGZhbHNlLAogICAgICAgIGhvcml6b250YWw6IGZhbHNlLAogICAgICAgIGNoaWxkcmVuOiBbInBhbmUtMSJdCiAgICAgIH0sCiAgICAgICJwYW5lLTEiOiB7CiAgICAgICAgY29udGVudDogdHJ1ZSwKICAgICAgICBpZDogMQogICAgICB9CiAgICAgIC8qCiAgICAgIEV4YW1wbGUgbG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ICAgIGZvciAodmFyIGkgPSAwOyBpIDwgbmV3U3RhdGUuc2xvdEluZm8ubGVuZ3RoOyBpKyspIHsKICAgICAgICAgICAgc3dpdGNoIChuZXdTdGF0ZS5zbG90SW5mb1tpXS5uYW1lKSB7CiAgICAgICAgICAgICAgY2FzZSAiZmlyc3QiOgogICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMSJdLmlkID0gbmV3U3RhdGUuc2xvdEluZm9baV0uaWQ7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICBjYXNlICJzZWNvbmQiOgogICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICBpZiAoInBhbmUtMiIgaW4gY3VzdG9tTGF5b3V0KSBjdXN0b21MYXlvdXRbInBhbmUtMiJdLmlkID0gbmV3U3RhdGUuc2xvdEluZm9baV0uaWQ7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICBjYXNlICJ0aHJpZCI6CiAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgIGlmICgicGFuZS0zIiBpbiBjdXN0b21MYXlvdXQpIGN1c3RvbUxheW91dFsicGFuZS0zIl0uaWQgPSBuZXdTdGF0ZS5zbG90SW5mb1tpXS5pZDsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgIGNhc2UgImZvdXJ0aCI6CiAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgIGlmICgicGFuZS00IiBpbiBjdXN0b21MYXlvdXQpIGN1c3RvbUxheW91dFsicGFuZS00Il0uaWQgPSBuZXdTdGF0ZS5zbG90SW5mb1tpXS5pZDsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgIGNhc2UgImZpZnRoIjoKICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgaWYgKCJwYW5lLTUiIGluIGN1c3RvbUxheW91dCkgY3VzdG9tTGF5b3V0WyJwYW5lLTUiXS5pZCA9IG5ld1N0YXRlLnNsb3RJbmZvW2ldLmlkOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgY2FzZSAic2l4dGgiOgogICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICBpZiAoInBhbmUtNiIgaW4gY3VzdG9tTGF5b3V0KSBjdXN0b21MYXlvdXRbInBhbmUtNiJdLmlkID0gbmV3U3RhdGUuc2xvdEluZm9baV0uaWQ7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICBkZWZhdWx0OgogICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9CiAgICAgIH0KICAgICAgZm9yICh2YXIgX2k1ID0gMCwgX09iamVjdCRlbnRyaWVzNSA9IE9iamVjdC5lbnRyaWVzKGN1c3RvbUxheW91dCk7IF9pNSA8IF9PYmplY3QkZW50cmllczUubGVuZ3RoOyBfaTUrKykgewogICAgICAgIHZhciBfT2JqZWN0JGVudHJpZXM1JF9pID0gX3NsaWNlZFRvQXJyYXkoX09iamVjdCRlbnRyaWVzNVtfaTVdLCAyKSwKICAgICAgICAgIGtleSA9IF9PYmplY3QkZW50cmllczUkX2lbMF0sCiAgICAgICAgICB2YWx1ZSA9IF9PYmplY3QkZW50cmllczUkX2lbMV07CiAgICAgICAgVnVlLnNldChzdGF0ZS5jdXN0b21MYXlvdXQsIGtleSwgdmFsdWUpOwogICAgICB9CiAgICAgIGlmIChuZXdTdGF0ZS5nbG9iYWxDYWxsYmFjaykgewogICAgICAgIHN0YXRlLmdsb2JhbENhbGxiYWNrID0gbmV3U3RhdGUuZ2xvYmFsQ2FsbGJhY2s7CiAgICAgIH0KICAgICAgZm9yICh2YXIgX2k2ID0gMCwgX09iam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YmplY3QkZW50cmllczdbX2k3XSwgMiksCiAgICAgICAgICAgIGtleSA9IF9PYmplY3QkZW50cmllczckX2lbMF0sCiAgICAgICAgICAgIHZhbHVlID0gX09iamVjdCRlbnRyaWVzNyRfaVsxXTsKICAgICAgICAgIFZ1ZS5zZXQoc3RhdGUuY3VzdG9tTGF5b3V0LCBrZXksIHZhbHVlKTsKICAgICAgICB9CiAgICAgICAgc3RhdGUuc3luY01vZGUgPSB0cnVlOwogICAgICAgIHN0YXRlLmdsb2JhbENhbGxiYWNrID0gdHJ1ZTsKICAgICAgfSBlbHNlIHsKICAgICAgICBzdGF0ZS5hY3RpdmVWaWV3ID0gInNpbmdsZXBhbmVsIjsKICAgICAgICB2YXIgX2N1c3RvbUxheW91dCA9IG5ld0xheW91dFdpdGhPcmlnSW5mbyhzdGF0ZS5jdXN0b21MYXlvdXQsIHN0YXRlLmFjdGl2ZVZpZXcpOwogICAgICAgIGZvciAodmFyIF9pOCA9IDAsIF9PYmplY3QkZW50cmllczggPSBPYmplY3QuZW50cmllcyhfY3VzdG9tTGF5b3V0KTsgX2k4IDwgX09iamVjdCRlbnRyaWVzOC5sZW5ndGg7IF9pOCsrKSB7CiAgICAgICAgICB2YXIgX09iamVjdCRlbnRyaWVzOCRfaSA9IF9zbGljZWRUb0FycmF5KF9PYmplY3QkZW50cmllczhbX2k4XSwgMiksCiAgICAgICAgICAgIF9rZXkyID0gX09iamVjdCRlbnRyaWVzOCRfaVswXSwKICAgICAgICAgICAgX3ZhbHVlMiA9IF9PYmplY3QkZW50cmllczgkX2lbMV07CiAgICAgICAgICBWdWUuc2V0KHN0YXRlLmN1c3RvbUxheW91dCwgX2tleTIsIF92YWx1ZTIpOwogICAgICAgIH0KICAgICAgICBzdGF0ZS5zeW5jTW9kZSA9IGZhbHNlOwogICAgICAgIHN0YXRlLmdsb2JhbENhbGxiYWNrID0gZmFsc2U7CiAgICAgIH0KICAgIH0KICB9LAogIGNsb3NlU2xvdDogZnVuY3Rpb24gY2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AgICBicmVhazsKICAgICAgICAgIGNhc2UgIjNwYW5lbCI6CiAgICAgICAgICAgIHN0YXRlLmFjdGl2ZVZpZXcgPSAiMnZlcnRwYW5lbCI7CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgY2FzZSAiNHBhbmVsIjoKICAgICAgICAgICAgc3RhdGUuYWN0aXZlVmlldyA9ICIzcGFuZWwiOwogICAgICAgICAgICBicmVhazsKICAgICAgICAgIGNhc2UgIjVwYW5lbCI6CiAgICAgICAgICAgIHN0YXRlLmFjdGl2ZVZpZXcgPSAiNHBhbmVsIjsKICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICBjYXNlICI2cGFuZWxWZXJ0aWNhbCI6CiAgICAgICAgICBjYXNlICI2cGFuZWwiOgogICAgICAgICAgICBzdGF0ZS5hY3RpdmVWaWV3ID0gIjVwYW5lbCI7CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgZGVmYXVsdDoKICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgfQogICAgICAgIHZhciBjdXN0b21MYXlvdXQgPSBuZXdMYXlvdXRXaXRoT3JpZ0luZm8oc3RhdGUuY3VzdG9tTGF5b3V0LCBzdGF0ZS5hY3RpdmVWaWV3KTsKICAgICAgICB2YXIga2V5ID0gZmluZEtleVdpdGhJZChjdXN0b21MYXlvdXQsIHBheWxvYWQuaWQpOwoKICAgICAgICAvLyBUaGUgZm9sbG93aW5nIG1vdmUgdGhlIGVudHJ5IGlkIHRvIHRoZSBhcHByb3ByaWF0ZSBzbG90CiAgICAgICAgLy8gYW5kIHJlbW92ZSB0aGUgdGFyZ2V0IGlkCiAgICAgICAgc3dpdGNoIChrZXkpIHsKICAgICAgICAgIGNhc2UgInBhbmUtMSI6CiAgICAgICAgICAgIHsKICAgICAgICAgICAgICBzd2l0Y2ggKHBWaWV3KSB7CiAgICAgICAgICAgICAgICBjYXNlICIyaG9ycGFuZWwiOgogICAgICAgICAgICAgICAgY2FzZSAiMnZlcnRwYW5lbCI6CiAgICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMSJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTIiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMiJdLmlkID0gYXZhaWxhYmxlSWQ7CiAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICBjYXNlICIzcGFuZWwiOgogICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTEiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS0yIl0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTIiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS0zIl0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTMiXS5pZCA9IGF2YWlsYWJsZUlkOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgY2FzZSAiNHBhbmVsIjoKICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0xIl0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtMiJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0yIl0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtMyJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0zIl0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtNCJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS00Il0uaWQgPSBhdmFpbGFibGVJZDsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGNhc2UgIjVwYW5lbCI6CiAgICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMSJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTIiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMiJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTMiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMyJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTQiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNCJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTUiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNSJdLmlkID0gYXZhaWxhYmxlSWQ7CiAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICBjYXNlICI2cGFuZWxWZXJ0aWNhbCI6CiAgICAgICAgICAgICAgICBjYXNlICI2cGFuZWwiOgogICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTEiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS0yIl0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTIiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS0zIl0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTMiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS00Il0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTQiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS01Il0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTUiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS02Il0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTYiXS5pZCA9IGF2YWlsYWJsZUlkOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgZGVmYXVsdDoKICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgfQogICAgICAgICAgICB9CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgY2FzZSAicGFuZS0yIjoKICAgICAgICAgICAgewogICAgICAgICAgICAgIHN3aXRjaCAocFZpZXcpIHsKICAgICAgICAgICAgICAgIGNhc2UgIjJob3JwYW5lbCI6CiAgICAgICAgICAgICAgICBjYXNlICIydmVydHBhbmVsIjoKICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0yIl0uaWQgPSBhdmFpbGFibGVJZDsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGNhc2UgIjNwYW5lbCI6CiAgICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMiJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTMiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMyJdLmlkID0gYXZhaWxhYmxlSWQ7CiAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICBjYXNlICI0cGFuZWwiOgogICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTIiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS0zIl0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTMiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS00Il0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTQiXS5pZCA9IGF2YWlsYWJsZUlkOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgY2FzZSAiNXBhbmVsIjoKICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0yIl0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtMyJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0zIl0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtNCJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS00Il0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtNSJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS01Il0uaWQgPSBhdmFpbGFibGVJZDsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGNhc2UgIjZwYW5lbFZlcnRpY2FsIjoKICAgICAgICAgICAgICAgIGNhc2UgIjZwYW5lbCI6CiAgICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMiJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTMiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMyJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTQiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNCJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTUiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNSJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTYiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNiJdLmlkID0gYXZhaWxhYmxlSWQ7CiAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICBkZWZhdWx0OgogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICBjYXNlICJwYW5lLTMiOgogICAgICAgICAgICB7CiAgICAgICAgICAgICAgc3dpdGNoIChwVmlldykgewogICAgICAgICAgICAgICAgY2FzZSAiM3BhbmVsIjoKICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0zIl0uaWQgPSBhdmFpbGFibGVJZDsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGNhc2UgIjRwYW5lbCI6CiAgICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtMyJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTQiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNCJdLmlkID0gYXZhaWxhYmxlSWQ7CiAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICBjYXNlICI1cGFuZWwiOgogICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTMiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS00Il0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTQiXS5pZCA9IGN1c3RvbUxheW91dFsicGFuZS01Il0uaWQ7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTUiXS5pZCA9IGF2YWlsYWJsZUlkOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgY2FzZSAiNnBhbmVsVmVydGljYWwiOgogICAgICAgICAgICAgICAgY2FzZSAiNnBhbmVsIjoKICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS0zIl0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtNCJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS00Il0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtNSJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS01Il0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtNiJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS02Il0uaWQgPSBhdmFpbGFibGVJZDsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBicmVhazsKICAgICAgICAgIGNhc2UgInBhbmUtNCI6CiAgICAgICAgICAgIHsKICAgICAgICAgICAgICBzd2l0Y2ggKHBWaWV3KSB7CiAgICAgICAgICAgICAgICBjYXNlICI0cGFuZWwiOgogICAgICAgICAgICAgICAgICB7CiAgICAgICAgICAgICAgICAgICAgY3VzdG9tTGF5b3V0WyJwYW5lLTQiXS5pZCA9IGF2YWlsYWJsZUlkOwogICAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgICAgY2FzZSAiNXBhbmVsIjoKICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS00Il0uaWQgPSBjdXN0b21MYXlvdXRbInBhbmUtNSJdLmlkOwogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS01Il0uaWQgPSBhdmFpbGFibGVJZDsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGNhc2UgIjZwYW5lbFZlcnRpY2FsIjoKICAgICAgICAgICAgICAgIGNhc2UgIjZwYW5lbCI6CiAgICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNCJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTUiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNSJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTYiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNiJdLmlkID0gYXZhaWxhYmxlSWQ7CiAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICBkZWZhdWx0OgogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICBjYXNlICJwYW5lLTUiOgogICAgICAgICAgICB7CiAgICAgICAgICAgICAgc3dpdGNoIChwVmlldykgewogICAgICAgICAgICAgICAgY2FzZSAiNXBhbmVsIjoKICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS01Il0uaWQgPSBhdmFpbGFibGVJZDsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGNhc2UgIjZwYW5lbFZlcnRpY2FsIjoKICAgICAgICAgICAgICAgIGNhc2UgIjZwYW5lbCI6CiAgICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNSJdLmlkID0gY3VzdG9tTGF5b3V0WyJwYW5lLTYiXS5pZDsKICAgICAgICAgICAgICAgICAgICBjdXN0b21MYXlvdXRbInBhbmUtNiJdLmlkID0gYXZhaWxhYmxlSWQ7CiAgICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICAgICAgICBkZWZhdWx0OgogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIH0KICAgICAgICAgICAgYnJlYWs7CiAgICAgICAgICBjYXNlICJwYW5lLTYiOgogICAgICAgICAgICB7CiAgICAgICAgICAgICAgc3dpdGNoIChwVmlldykgewogICAgICAgICAgICAgICAgY2FzZSAiNnBhbmVsVmVydGljYWwiOgogICAgICAgICAgICAgICAgY2FzZSAiNnBhbmVsIjoKICAgICAgICAgICAgICAgICAgewogICAgICAgICAgICAgICAgICAgIGN1c3RvbUxheW91dFsicGFuZS02Il0uaWQgPSBhdmFpbGFibGVJZDsKICAgICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgICBicmVhazsKICAgICAgICAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgICAgICAgIGJyZWFrOwogICAgICAgICAgICAgIH0KICAgICAgICAgICAgfQogICAgICAgICAgICBicmVhazsKICAgICAgICAgIGRlZmF1bHQ6CiAgICAgICAgICAgIGJyZWFrOwogICAgICAgIH0KICAgICAgICBmb3IgKHZhciBfaTkgPSAwLCBfT2JqZWN0JGVudHJpZXM5ID0gT2JqZWN0LmVudHJpZXMoY3VzdG9tTGF5b3V0KTsgX2k5IDwgX09iamVjdCRlbnRyaWVzOS5sZW5ndGg7IF9pOSsrKSB7CiAgICAgICAgICB2YXIgX09iamVjdCRlbnRyaWVzOSRfaSA9IF9zbGljZWRUb0FycmF5KF9PYmplY3QkZW50cmllczlbX2k5XSwgMiksCiAgICAgICAgICAgIF9rZXkzID0gX09iamVjdCRlbnRyaWVzOSRfaVswXSwKICAgICAgICAgICAgdmFsdWUgPSBfT2JqZWN0JGVudHJpZXM5JF9pWzFdOwogICAgICAgICAgVnVlLnNldChzdGF0ZS5jdXN0b21MYXlvdXQsIF9rZXkzLCB2YWx1ZSk7CiAgICAgICAgfQogICAgICB9CiAgICB9CiAgfQp9OwpleHBvcnQgZGVmYXVsdCB7CiAgbmFtZXNwYWNlZDogdHJ1ZSwKICBzdGF0ZTogc3RhdGUsCiAgZ2V0dGVyczogZ2V0dGVycywKICBtdXRhdGlvbnM6IG11dGF0aW9ucwp9Ow=="},{"version":3,"names":["Vue","presetLayouts","view","content","horizontal","children","id","autoAssignEntryIdsToPane","entries","layout","assignedIds","invalidIdKeys","_i","_Object$entries","Object","length","_Object$entries$_i","_slicedToArray","key","value","includes","push","forEach","done","i","extractPaneInfo","panes","_i2","_Object$entries2","_Object$entries2$_i","newLayoutWithOrigInfo","original","activeView","customLayout","_i3","_Object$entries3","_Object$entries3$_i","findKeyWithId","keys","find","state","viewIcons","icon","name","min","splitters","globalCallback","syncMode","getters","getPaneNameById","getState","mutations","assignOrSwapPaneWithIds","payload","sourceKey","source","targetKey","target","toggleGlobalCallback","flag","updateActiveView","view1","view2","_i4","_Object$entries4","_Object$entries4$_i","set","setSplitter","setState","newState","undefined","console","log","slotInfo","_i5","_Object$entries5","_Object$entries5$_i","_i6","_Object$entries6","_Object$entries6$_i","setIdToPrimaryPane","currentKey","firstPaneId","setSyncMode","originalKey","newId","_i7","_Object$entries7","_Object$entries7$_i","_i8","_Object$entries8","_Object$entries8$_i","closeSlot","availableId","pView","_i9","_Object$entries9","_Object$entries9$_i","namespaced"],"sources":["/home/cmiss/Jenkins/workspace/mapintegratedvuer/src/store/modules/splitFlow.js"],"sourcesContent":["/* eslint-disable no-alert, no-console */\nimport Vue from \"vue\";\n\nconst presetLayouts = (view) => {\n switch (view) {\n case \"2horpanel\":\n return {\n \"split-1\": {content: false, horizontal: true, children: [\"pane-1\", \"pane-2\"]},\n \"pane-1\": {content: true, id: 1},\n \"pane-2\": {content: true, id: 2},\n };\n case \"2vertpanel\": \n return {\n \"split-1\": {content: false, horizontal: false, children: [\"pane-1\", \"pane-2\"]},\n \"pane-1\": {content: true, id: 1},\n \"pane-2\": {content: true, id: 2},\n }\n case \"3panel\": \n return {\n \"split-1\": {content: false, horizontal: false, children: [\"pane-1\", \"split-2\"]},\n \"split-2\": {content: false, horizontal: true, children: [\"pane-2\", \"pane-3\"]},\n \"pane-1\": {content: true, id: 1},\n \"pane-2\": {content: true, id: 2},\n \"pane-3\": {content: true, id: 3},\n }\n case \"4panel\": \n return {\n \"split-1\": {content: false, horizontal: false, children: [\"split-3\", \"split-2\"]},\n \"split-2\": {content: false, horizontal: true, children: [\"pane-2\", \"pane-3\"]},\n \"split-3\": {content: false, horizontal: true, children: [\"pane-1\", \"pane-4\"]},\n \"pane-1\": {content: true, id: 1},\n \"pane-2\": {content: true, id: 2},\n \"pane-3\": {content: true, id: 3},\n \"pane-4\": {content: true, id: 4},\n }\n case \"5panel\": \n return {\n \"split-1\": {content: false, horizontal: true, children: [\"split-3\", \"split-2\"]},\n \"split-2\": {content: false, horizontal: false, children: [\"pane-2\", \"pane-3\"]},\n \"split-3\": {content: false, horizontal: false, children: [\"pane-1\",\"pane-4\", \"pane-5\"]},\n \"pane-1\": {content: true, id: 1},\n \"pane-2\": {content: true, id: 2},\n \"pane-3\": {content: true, id: 3},\n \"pane-4\": {content: true, id: 4},\n \"pane-5\": {content: true, id: 5},\n }\n case \"6panel\": \n return {\n \"split-1\": {content: false, horizontal: true, children: [\"split-3\", \"split-2\"]},\n \"split-2\": {content: false, horizontal: false, children: [\"pane-2\", \"pane-3\", \"pane-5\"]},\n \"split-3\": {content: false, horizontal: false, children: [\"pane-1\",\"pane-4\", \"pane-6\"]},\n \"pane-1\": {content: true, id: 1},\n \"pane-2\": {content: true, id: 2},\n \"pane-3\": {content: true, id: 3},\n \"pane-4\": {content: true, id: 4},\n \"pane-5\": {content: true, id: 5},\n \"pane-6\": {content: true, id: 6},\n }\n case \"6panelVertical\":\n return {\n \"split-1\": {content: false, horizontal: false, children: [\"split-3\", \"split-2\"]},\n \"split-2\": {content: false, horizontal: true, children: [\"pane-2\", \"pane-3\", \"pane-5\"]},\n \"split-3\": {content: false, horizontal: true, children: [\"pane-1\",\"pane-4\", \"pane-6\"]},\n \"pane-1\": {content: true, id: 1},\n \"pane-2\": {content: true, id: 2},\n \"pane-3\": {content: true, id: 3},\n \"pane-4\": {content: true, id: 4},\n \"pane-5\": {content: true, id: 5},\n \"pane-6\": {content: true, id: 6},\n }\n case \"singlepanel\":\n default:\n return {\n \"split-1\": {content: false, horizontal: false, children: [\"pane-1\"]},\n \"pane-1\": {content: true, id: 1},\n }\n }\n}\n\n//A method to assign unused entry to pane with duplicated id\nconst autoAssignEntryIdsToPane = (entries, layout) => {\n const assignedIds = [];\n const invalidIdKeys = [];\n for (const [key, value] of Object.entries(layout)) {\n if (value.content) {\n if (assignedIds.includes(value.id)) {\n //id has got an assigned pane, cache it and find one\n //later\n invalidIdKeys.push(key);\n } else {\n assignedIds.push(value.id);\n }\n }\n }\n invalidIdKeys.forEach((key) => {\n let done = false;\n for (let i = 0; i < entries.length && !done; i++) {\n if (!(assignedIds.includes(entries[i].id))) {\n layout[key].id = entries[i].id;\n assignedIds.push(entries.id);\n done = true;\n }\n }\n });\n}\n\nconst extractPaneInfo = (layout) => {\n const panes = {};\n for (const [key, value] of Object.entries(layout)) {\n if (value.content) {\n panes[key] = value;\n }\n }\n return panes;\n}\n\nconst newLayoutWithOrigInfo = (original, activeView) => {\n const panes = extractPaneInfo(original);\n const customLayout = presetLayouts(activeView);\n for (const [key, value] of Object.entries(panes)) {\n customLayout[key] = value;\n }\n return customLayout;\n}\n\nconst findKeyWithId = (layout, id) => {\n return Object.keys(layout).find(key => layout[key][\"id\"] === id);\n}\n\nconst state = () => ({\n activeView: \"singlepanel\",\n viewIcons: [\n { icon: \"singlepanel\", name: \"Single view\", min: 1 },\n { icon: \"2horpanel\", name: \"Horizontal split\", min: 2 },\n { icon: \"2vertpanel\", name: \"Vertical split\", min: 2 },\n { icon: \"3panel\", name: \"Three panes\", min: 3 },\n { icon: \"4panel\", name: \"Four panes\", min: 4 },\n { icon: \"5panel\", name: \"Five panes\", min: 5 },\n { icon: \"6panel\", name: \"Six (horizontal)\", min: 6 },\n { icon: \"6panelVertical\", name: \"Six (vertical)\", min: 6 },\n //{ icon: \"customise\", name: \"Customise\", min: 2 }\n ],\n customLayout: {\n \"split-1\": {content: false, horizontal: false, children: [\"pane-1\"]},\n \"pane-1\": {content: true, id: 1},\n /*\n Example layout\n\n \"split-1\": {content: false, horizontal: true, children: [\"split-2\", \"pane-1\"]},\n \"split-2\": {content: false, horizontal: false, children: [\"pane-2\", \"pane-3\"]},\n \"pane-1\": {content: true, id: 1},\n \"pane-2\": {content: true, id: 2},\n \"pane-3\": {content: true, id: 3},\n */\n },\n splitters: { \"first\": 50, \"second\": 50, \"third\": 50 },\n globalCallback: false,\n syncMode: false,\n});\n\nconst getters = {\n getPaneNameById: (state) => (id) => {\n return findKeyWithId(state.customLayout, id);\n },\n getState: (state) => () => {\n return {\n activeView: state.activeView,\n splitters: state.splitters,\n globalCallback: state.globalCallback,\n customLayout: state.customLayout,\n syncMode: state.syncMode,\n };\n },\n}\n\nconst mutations = {\n assignOrSwapPaneWithIds(state, payload) {\n let sourceKey = findKeyWithId(state.customLayout, payload.source);\n let targetKey = findKeyWithId(state.customLayout, payload.target);\n // Check if it is on syncMode\n if (state.syncMode && (!(targetKey || sourceKey))) {\n //exit syncMod if the two panel in sync mode are not swapping\n state.syncMode = false;\n state.globalCallback = false;\n }\n if (targetKey) {\n state.customLayout[targetKey].id = payload.source;\n }\n if (sourceKey) {\n state.customLayout[sourceKey].id = payload.target;\n }\n },\n toggleGlobalCallback(state, flag) {\n state.globalCallback = flag;\n },\n updateActiveView(state, payload) {\n //Deactivate sync mode if current or future view\n //is not in 2 split panels/\n if (state.syncMode) {\n const view1 = state.viewIcons.find(\n view => state.activeView === view.icon);\n const view2 = state.viewIcons.find(\n view => payload.view === view.icon);\n if (!(view1.min == 2 && view2.min == 2)) {\n state.syncMode = false;\n state.globalCallback = false;\n }\n }\n state.activeView = payload.view;\n const customLayout = newLayoutWithOrigInfo(\n state.customLayout, state.activeView);\n autoAssignEntryIdsToPane(payload.entries, customLayout);\n for (const [key, value] of Object.entries(customLayout)) {\n Vue.set(state.customLayout, key, value);\n }\n },\n setSplitter(state, payload) {\n if (state.splitters[payload.name])\n state.splitters[payload.name] = payload.value;\n },\n setState(state, newState) {\n if (newState) {\n let customLayout = undefined;\n if (newState.activeView) {\n state.activeView = newState.activeView;\n }\n if (newState.customLayout) {\n customLayout = newState.customLayout;\n } else {\n customLayout = presetLayouts(state.activeView);\n console.log(newState, customLayout)\n if (newState.slotInfo) {\n for (let i = 0; i < newState.slotInfo.length; i++) {\n switch (newState.slotInfo[i].name) {\n case \"first\": {\n customLayout[\"pane-1\"].id = newState.slotInfo[i].id;\n } break;\n case \"second\": {\n if(\"pane-2\" in customLayout)\n customLayout[\"pane-2\"].id = newState.slotInfo[i].id;\n } break;\n case \"thrid\": {\n if(\"pane-3\" in customLayout)\n customLayout[\"pane-3\"].id = newState.slotInfo[i].id;\n } break;\n case \"fourth\": {\n if(\"pane-4\" in customLayout)\n customLayout[\"pane-4\"].id = newState.slotInfo[i].id;\n } break;\n case \"fifth\": {\n if(\"pane-5\" in customLayout)\n customLayout[\"pane-5\"].id = newState.slotInfo[i].id;\n } break;\n case \"sixth\": {\n if(\"pane-6\" in customLayout)\n customLayout[\"pane-6\"].id = newState.slotInfo[i].id;\n } break;\n default:\n break;\n }\n }\n }\n }\n for (const [key, value] of Object.entries(customLayout)) {\n Vue.set(state.customLayout, key, value);\n }\n if (newState.globalCallback) {\n state.globalCallback = newState.globalCallback;\n }\n for (const [key, value] of Object.entries(newState.splitters)) {\n state.splitters[key] = value;\n }\n if (newState.syncMode) {\n state.syncMode = newState.syncMode;\n }\n }\n },\n setIdToPrimaryPane(state, id) {\n const currentKey = findKeyWithId(state.customLayout, id);\n const firstPaneId = state.customLayout[\"pane-1\"].id;\n state.customLayout[\"pane-1\"].id = id;\n if (currentKey) {\n state.customLayout[currentKey].id = firstPaneId;\n }\n },\n setSyncMode(state, payload) {\n if (payload) {\n //Force the second slot to be the new viewer in payload and change the \n //view to the payload's layout\n //state.customLayout[\"pane-2\"].id = id;\n if (payload.flag === true) {\n state.activeView = payload.layout;\n //Extract pane info form original state and copy to the new layout\n const customLayout = newLayoutWithOrigInfo(\n state.customLayout, state.activeView);\n const originalKey = findKeyWithId(customLayout, 1);\n const firstPaneId = customLayout[\"pane-1\"].id;\n if (originalKey !== \"pane-1\") {\n customLayout[\"pane-1\"].id = firstPaneId;\n }\n customLayout[\"pane-1\"].id = 1;\n customLayout[\"pane-2\"].id = payload.newId;\n for (const [key, value] of Object.entries(customLayout)) {\n Vue.set(state.customLayout, key, value);\n }\n state.syncMode = true;\n state.globalCallback = true;\n } else {\n state.activeView = \"singlepanel\";\n const customLayout = newLayoutWithOrigInfo(\n state.customLayout, state.activeView);\n for (const [key, value] of Object.entries(customLayout)) {\n Vue.set(state.customLayout, key, value);\n }\n state.syncMode = false;\n state.globalCallback = false;\n }\n }\n },\n closeSlot(state, payload) {\n if (payload) {\n state.syncMode = false;\n state.globalCallback = false;\n let availableId = 0;\n //Primary id cannot be changed\n if (payload.id === 1) {\n availableId = 1;\n } else if (payload.entries) {\n for (let i = 0; i < payload.entries.length &&\n availableId == 0; i++) {\n //Find the first entry not currently in use\n if (findKeyWithId(payload.entries[i].id) === undefined) {\n availableId = payload.entries[i].id;\n }\n }\n }\n //Switch the view\n if (state.activeView !== \"customise\") {\n //closePaneWithStandardLayout\n const pView = state.activeView;\n switch (state.activeView) {\n case \"2horpanel\":\n case \"2vertpanel\":\n state.activeView = \"singlepanel\";\n break;\n case \"3panel\":\n state.activeView = \"2vertpanel\";\n break;\n case \"4panel\":\n state.activeView = \"3panel\";\n break;\n case \"5panel\":\n state.activeView = \"4panel\";\n break;\n case \"6panelVertical\":\n case \"6panel\":\n state.activeView = \"5panel\";\n break;\n default:\n break;\n }\n const customLayout = newLayoutWithOrigInfo(\n state.customLayout, state.activeView);\n const key = findKeyWithId(customLayout, payload.id);\n \n // The following move the entry id to the appropriate slot\n // and remove the target id\n switch (key) {\n case \"pane-1\": {\n switch (pView) {\n case \"2horpanel\":\n case \"2vertpanel\": {\n customLayout[\"pane-1\"].id = customLayout[\"pane-2\"].id;\n customLayout[\"pane-2\"].id = availableId;\n } break;\n case \"3panel\": {\n customLayout[\"pane-1\"].id = customLayout[\"pane-2\"].id;\n customLayout[\"pane-2\"].id = customLayout[\"pane-3\"].id;\n customLayout[\"pane-3\"].id = availableId;\n } break;\n case \"4panel\": {\n customLayout[\"pane-1\"].id = customLayout[\"pane-2\"].id;\n customLayout[\"pane-2\"].id = customLayout[\"pane-3\"].id;\n customLayout[\"pane-3\"].id = customLayout[\"pane-4\"].id;\n customLayout[\"pane-4\"].id = availableId;\n } break;\n case \"5panel\": {\n customLayout[\"pane-1\"].id = customLayout[\"pane-2\"].id;\n customLayout[\"pane-2\"].id = customLayout[\"pane-3\"].id;\n customLayout[\"pane-3\"].id = customLayout[\"pane-4\"].id;\n customLayout[\"pane-4\"].id = customLayout[\"pane-5\"].id;\n customLayout[\"pane-5\"].id = availableId;\n } break;\n case \"6panelVertical\":\n case \"6panel\":\n {\n customLayout[\"pane-1\"].id = customLayout[\"pane-2\"].id;\n customLayout[\"pane-2\"].id = customLayout[\"pane-3\"].id;\n customLayout[\"pane-3\"].id = customLayout[\"pane-4\"].id;\n customLayout[\"pane-4\"].id = customLayout[\"pane-5\"].id;\n customLayout[\"pane-5\"].id = customLayout[\"pane-6\"].id;\n customLayout[\"pane-6\"].id = availableId;\n } break;\n default:\n break;\n }\n } break;\n case \"pane-2\": {\n switch (pView) {\n case \"2horpanel\":\n case \"2vertpanel\": {\n customLayout[\"pane-2\"].id = availableId;\n } break;\n case \"3panel\": {\n customLayout[\"pane-2\"].id = customLayout[\"pane-3\"].id;\n customLayout[\"pane-3\"].id = availableId;\n } break;\n case \"4panel\": {\n customLayout[\"pane-2\"].id = customLayout[\"pane-3\"].id;\n customLayout[\"pane-3\"].id = customLayout[\"pane-4\"].id;\n customLayout[\"pane-4\"].id = availableId;\n } break;\n case \"5panel\": {\n customLayout[\"pane-2\"].id = customLayout[\"pane-3\"].id;\n customLayout[\"pane-3\"].id = customLayout[\"pane-4\"].id;\n customLayout[\"pane-4\"].id = customLayout[\"pane-5\"].id;\n customLayout[\"pane-5\"].id = availableId;\n } break;\n case \"6panelVertical\":\n case \"6panel\":\n {\n customLayout[\"pane-2\"].id = customLayout[\"pane-3\"].id;\n customLayout[\"pane-3\"].id = customLayout[\"pane-4\"].id;\n customLayout[\"pane-4\"].id = customLayout[\"pane-5\"].id;\n customLayout[\"pane-5\"].id = customLayout[\"pane-6\"].id;\n customLayout[\"pane-6\"].id = availableId;\n } break;\n default:\n break;\n }\n } break;\n case \"pane-3\": {\n switch (pView) {\n case \"3panel\": {\n customLayout[\"pane-3\"].id = availableId;\n } break;\n case \"4panel\": {\n customLayout[\"pane-3\"].id = customLayout[\"pane-4\"].id;\n customLayout[\"pane-4\"].id = availableId;\n } break;\n case \"5panel\": {\n customLayout[\"pane-3\"].id = customLayout[\"pane-4\"].id;\n customLayout[\"pane-4\"].id = customLayout[\"pane-5\"].id;\n customLayout[\"pane-5\"].id = availableId;\n } break;\n case \"6panelVertical\":\n case \"6panel\":\n {\n customLayout[\"pane-3\"].id = customLayout[\"pane-4\"].id;\n customLayout[\"pane-4\"].id = customLayout[\"pane-5\"].id;\n customLayout[\"pane-5\"].id = customLayout[\"pane-6\"].id;\n customLayout[\"pane-6\"].id = availableId;\n } break;\n default:\n break;\n }\n } break;\n case \"pane-4\": {\n switch (pView) {\n case \"4panel\": {\n customLayout[\"pane-4\"].id = availableId;\n } break;\n case \"5panel\": {\n customLayout[\"pane-4\"].id = customLayout[\"pane-5\"].id;\n customLayout[\"pane-5\"].id = availableId;\n } break;\n case \"6panelVertical\":\n case \"6panel\": {\n customLayout[\"pane-4\"].id = customLayout[\"pane-5\"].id;\n customLayout[\"pane-5\"].id = customLayout[\"pane-6\"].id;\n customLayout[\"pane-6\"].id = availableId;\n } break;\n default:\n break;\n }\n } break;\n case \"pane-5\": {\n switch (pView) {\n case \"5panel\": {\n customLayout[\"pane-5\"].id = availableId;\n } break;\n case \"6panelVertical\":\n case \"6panel\": {\n customLayout[\"pane-5\"].id = customLayout[\"pane-6\"].id;\n customLayout[\"pane-6\"].id = availableId;\n } break;\n default:\n break;\n }\n } break;\n case \"pane-6\" : {\n switch (pView) {\n case \"6panelVertical\":\n case \"6panel\":\n {\n customLayout[\"pane-6\"].id = availableId;\n } break;\n default:\n break;\n }\n } break;\n default:\n break;\n }\n for (const [key, value] of Object.entries(customLayout)) {\n Vue.set(state.customLayout, key, value);\n }\n }\n }\n },\n};\n\nexport default {\n namespaced: true,\n state,\n getters,\n mutations\n}\n"],"mappings":";;;;;;;;;AAAA;AACA,OAAOA,GAAG,MAAM,KAAK;AAErB,IAAMC,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,IAAI,EAAK;EAC9B,QAAQA,IAAI;IACV,KAAK,WAAW;MACd,OAAO;QACL,SAAS,EAAE;UAACC,OAAO,EAAE,KAAK;UAAEC,UAAU,EAAE,IAAI;UAAEC,QAAQ,EAAE,CAAC,QAAQ,EAAE,QAAQ;QAAC,CAAC;QAC7E,QAAQ,EAAE;UAACF,OAAO,EAAE,IAAI;UAAGG,EAAE,EAAE;QAAC,CAAC;QACjC,QAAQ,EAAE;UAACH,OAAO,EAAE,IAAI;UAAGG,EAAE,EAAE;QAAC;MAClC,CAAC;IACH,KAAK,YAAY;MACf,OAAO;QACL,SAA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