{"remainingRequest":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/babel-loader/lib/index.js!/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/cache-loader/dist/cjs.js??ref--1-0!/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/vue-loader/lib/index.js??vue-loader-options!/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/@abi-software/flatmapvuer/src/components/FlatmapVuer.vue?vue&type=script&lang=js&","dependencies":[{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/@abi-software/flatmapvuer/src/components/FlatmapVuer.vue","mtime":499162500000},{"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/cache-loader/dist/cjs.js","mtime":499162500000},{"path":"/home/cmiss/Jenkins/workspace/mapintegratedvuer/node_modules/vue-loader/lib/index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:aW1wb3J0IF9jcmVhdGVGb3JPZkl0ZXJhdG9ySGVscGVyIGZyb20gIi9ob21lL2NtaXNzL0plbmtpbnMvd29ya3NwYWNlL21hcGludGVncmF0ZWR2dWVyL25vZGVfbW9kdWxlcy9AYmFiZWwvcnVudGltZS9oZWxwZXJzL2VzbS9jcmVhdGVGb3JPZkl0ZXJhdG9ySGVscGVyLmpzIjsKaW1wb3J0IF9yZWdlbmVyYXRvclJ1bnRpbWUgZnJvbSAiL2hvbWUvY21pc3MvSmVua2lucy93b3Jrc3BhY2UvbWFwaW50ZWdyYXRlZHZ1ZXIvbm9kZV9tb2R1bGVzL0BiYWJlbC9ydW50aW1lL2hlbHBlcnMvZXNtL3JlZ2VuZXJhdG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KICAgICAgICB0aGlzLm1hcEltcC5zZXRCYWNrZ3JvdW5kQ29sb3VyKHRoaXMuY3VycmVudEJhY2tncm91bmQsIDEpOwogICAgICB9CiAgICB9LAogICAgdG9nZ2xlRHJhd2VyOiBmdW5jdGlvbiB0b2dnbGVEcmF3ZXIoKSB7CiAgICAgIHRoaXMuZHJhd2VyT3BlbiA9ICF0aGlzLmRyYXdlck9wZW47CiAgICB9LAogICAgLyoqCiAgICAgKiBGdW5jdGlvbiB0byB0b2dnbGUgY29sb3VyL2dyZXlzY2FsZSBvZiBvcmdhbnMuCiAgICAgKi8KICAgIHNldENvbG91cjogZnVuY3Rpb24gc2V0Q29sb3VyKGZsYWcpIHsKICAgICAgdGhpcy5jb2xvdXJSYWRpbyA9IGZsYWc7CiAgICAgIGlmICh0aGlzLm1hcEltcCkgewogICAgICAgIHRoaXMubWFwSW1wLnNldENvbG91cih7CiAgICAgICAgICBjb2xvdXI6IGZsYWcsCiAgICAgICAgICBvdXRsaW5lOiB0aGlzLm91dGxpbmVzUmFkaW8KICAgICAgICB9KTsKICAgICAgfQogICAgfSwKICAgIC8qKgogICAgICogRnVuY3Rpb24gdG8gdG9nZ2xlIG91dGxpbmVzIGYgb3JnYW5zLgogICAgICovCiAgICBzZXRPdXRsaW5lczogZnVuY3Rpb24gc2V0T3V0bGluZXMoZmxhZykgewogICAgICB0aGlzLm91dGxpbmVSYWRpbyA9IGZsYWc7CiAgICAgIGlmICh0aGlzLm1hcEltcCkgewogICAgICAgIHRoaXMubWFwSW1wLnNldENvbG91cih7CiAgICAgICAgICBjb2xvdXI6IHRoaXMuY29sb3VyUmFkaW8sCiAgICAgICAgICBvdXRsaW5lOiBmbGFnCiAgICAgICAgfSk7CiAgICAgIH0KICAgIH0sCiAgICAvKioKICAgICAqIEZ1bmN0aW9uIHRvIHRvZ2dsZSBwYXRocyB0byBkZWZhdWx0LgogICAgICogQWxzbyBjYWxsZWQgd2hlbiB0aGUgYXNzb2NpYXRlZCBidXR0b24ga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gICAgICAgICBhcmdzW19rZXkgLSAyXSA9IGFyZ3VtZW50c1tfa2V5XTsKICAgICAgICAgIH0KICAgICAgICAgIHZhciBwYXlsb2FkID0gewogICAgICAgICAgICBkYXRhc2V0OiBkYXRhLmRhdGFzZXQsCiAgICAgICAgICAgIGJpb2xvZ2ljYWxTZXg6IGJpb2xvZ2ljYWxTZXgsCiAgICAgICAgICAgIHRheG9ub215OiB0YXhvbm9teSwKICAgICAgICAgICAgcmVzb3VyY2U6IHJlc291cmNlLAogICAgICAgICAgICBsYWJlbDogbGFiZWwsCiAgICAgICAgICAgIGZlYXR1cmU6IGRhdGEsCiAgICAgICAgICAgIHVzZXJEYXRhOiBhcmdzLAogICAgICAgICAgICBldmVudFR5cGU6IGV2ZW50VHlwZQogICAgICAgICAgfTsKICAgICAgICAgIGlmIChkYXRhICYmIGRhdGEudHlwZSAhPT0gIm1hcmtlciIgJiYgZXZlbnRUeXBlID09PSAiY2xpY2siKSB7CiAgICAgICAgICAgIF90aGlzNS5jaGVja0FuZENyZWF0ZVBvcHVwcyhwYXlsb2FkKTsKICAgICAgICAgIH0KICAgICAgICAgIF90aGlzNS4kZW1pdCgicmVzb3VyY2Utc2VsZWN0ZWQiLCBwYXlsb2FkKTsKICAgICAgICB9IGVsc2UgewogICAgICAgICAgX3RoaXM1LiRlbWl0KCJwYW4tem9vbS1jYWxsYmFjayIsIGRhdGEpOwogICAgICAgIH0KICAgICAgfTsKICAgIH0sCiAgICAvLyBjaGVja05ldXJvbkNsaWNrZWQgc2hvd3MgYSBuZXVyb24gcGF0aCBwb3AgdXAgaWYgYSBwYXRoIHdhcyByZWNlbnRseSBjbGlja2VkCiAgICBjaGVja0FuZENyZWF0ZVBvcHVwczogZnVuY3Rpb24gKCkgewogICAgICB2YXIgX2NoZWNrQW5kQ3JlYXRlUG9wdXBzID0gX2FzeW5jVG9HZW5lcmF0b3IoIC8qI19fUFVSRV9fKi9fcmVnZW5lcmF0b3JSdW50aW1lKCkubWFyayhmdW5jdGlvbiBfY2FsbGVlKGRhdGEpIHsKICAgICAgICB2YXIgcmVzdWx0czsKICAgICAgICByZXR1cm4gX3JlZ2VuZXJhdG9yUnVudGltZSgpLndyYXAoZnVuY3Rpb24gX2NhbGxlZSQoX2NvbnRleHQpIHsKICAgICAgICAgIHdoaWxlICgxKSBzd2l0Y2ggKF9jb250ZXh0LnByZXYgPSBfY29udGV4dC5uZXh0KSB7CiAgICAgICAgICAgIGNhc2UgMDoKICAgICAgICAgICAgICBfY29udGV4dC5uZXh0ID0gMjsKICAgICAgICAgICAgICByZXR1cm4gdGhpcy5mbGF0bWFwUXVlcmllcy5yZXRyaWV2ZUZsYXRtYXBLbm93bGVkZ2VGb3JFdmVudChkYXRhKTsKICAgICAgICAgICAgY2FzZSAyOgogICAgICAgICAgICAgIHJlc3VsdHMgPSBfY29udGV4dC5zZW50OwogICAgICAgICAgICAgIGlmICghcmVzdWx0cykgewogICAgICAgICAgICAgICAgaWYgKGRhdGEuZmVhdHVyZS5oeXBlcmxpbmtzICYmIGRhdGEuZmVhdHVyZS5oeXBlcmxpbmtzLmxlbmd0aCA+IDApIHsKICAgICAgICAgICAgICAgICAgdGhpcy5yZXNvdXJjZUZvclRvb2x0aXAgPSBkYXRhLnJlc291cmNlWzBdOwogICAgICAgICAgICAgICAgICB0aGlzLmNyZWF0ZVRvb2x0aXBGcm9tTmV1cm9uQ3VyYXRpb24oZGF0YSk7CiAgICAgICAgICAgICAgICB9CiAgICAgICAgICAgICAgfSBlbHNlIHsKICAgICAgICAgICAgICAgIHRoaXMucmVzb3VyY2VGb3JUb29sdGlwID0gZGF0YS5yZXNvdXJjZVswXTsKICAgICAgICAgICAgICAgIHRoaXMuY3JlYXRlVG9vbHRpcEZyb21OZXVyb25DdXJhdGlvbihkYXRhKTsKICAgICAgICAgICAgICB9CiAgICAgICAgICAgIGNhc2UgNDoKICAgICAgICAgICAgY2FzZSAiZW5kIjoKICAgICAgICAgICAgICByZXR1cm4gX2NvbnRleHQuc3Rv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IHsKICAgICAgdGhpcy4kZWwucXVlcnlTZWxlY3RvckFsbCgiLm1hcGJveGdsLXBvcHVwLWNsb3NlLWJ1dHRvbiIpLmZvckVhY2goZnVuY3Rpb24gKGl0ZW0pIHsKICAgICAgICBpdGVtLmNsaWNrKCk7CiAgICAgIH0pOwogICAgfSwKICAgIGdldExhYmVsczogZnVuY3Rpb24gZ2V0TGFiZWxzKCkgewogICAgICB2YXIgbGFiZWxzID0gW107CiAgICAgIGlmICh0aGlzLm1hcEltcCkgewogICAgICAgIHZhciBhbm5vdGF0aW9ucyA9IHRoaXMubWFwSW1wLmFubm90YXRpb25zOwogICAgICAgIHZhciBfaXRlcmF0b3IgPSBfY3JlYXRlRm9yT2ZJdGVyYXRvckhlbHBlcihhbm5vdGF0aW9ucy52YWx1ZXMoKSksCiAgICAgICAgICBfc3RlcDsKICAgICAgICB0cnkgewogICAgICAgICAgZm9yIChfaXRlcmF0b3IucygpOyAhKF9zdGVwID0gX2l0ZXJhdG9yLm4oKSkuZG9uZTspIHsKICAgICAgICAgICAgdmFyIHZhbHVlID0gX3N0ZXAudmFsdWU7CiAgICAgICAgICAgIGlmICh2YWx1ZS5sYWJlbCkgbGFiZWxzLnB1c2godmFsdWUubGFiZWwpOwogICAgICAgICAgfQogICAgICAgIH0gY2F0Y2ggKGVycikgewogICAgICAgICAgX2l0ZXJhdG9yLmUoZXJyKTsKICAgICAgICB9IGZpbmFsbHkgewogICAgICAgICAgX2l0ZXJhdG9yLmYoKTsKICAgICAgICB9CiAgICAgICAgcmV0dXJuIEFycmF5LmZyb20obmV3IFNldChsYWJlbHMpKTsKICAgICAgfQogICAgfSwKICAgIGdldFN0YXRlOiBmdW5jdGlvbiBnZXRTdGF0ZSgpIHsKICAgICAgaWYgKHRoaXMubWFwSW1wKSB7CiAgICAgICAgdmFyIHN0YXRlID0gewogICAgICAgICAgZW50cnk6IHRoaXMuZW50cnksCiAgICAgICAgICB2aWV3cG9ydDogdGhpcy5tYXBJbXAuZ2V0U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gaWYgKHN0YXRlLnV1aWQpIHsKICAgICAgICAgICAgaWRlbnRpZmllciA9IHsKICAgICAgICAgICAgICB1dWlkOiBzdGF0ZS51dWlkCiAgICAgICAgICAgIH07CiAgICAgICAgICB9IGVsc2UgaWYgKHN0YXRlLmVudHJ5KSB7CiAgICAgICAgICAgIGlkZW50aWZpZXIudGF4b24gPSBzdGF0ZS5lbnRyeTsKICAgICAgICAgICAgaWYgKHN0YXRlLmJpb2xvZ2ljYWxTZXgpIHsKICAgICAgICAgICAgICBpZGVudGlmaWVyWyJiaW9sb2dpY2FsU2V4Il0gPSBzdGF0ZS5iaW9sb2dpY2FsU2V4OwogICAgICAgICAgICB9IGVsc2UgaWYgKGlkZW50aWZpZXIudGF4b24gPT09ICJOQ0JJVGF4b246OTYwNiIpIHsKICAgICAgICAgICAgICAvL0ZvciBiYWNrd2FyZCBjb21wYXRpYmlsaXR5CiAgICAgICAgICAgICAgaWRlbnRpZmllclsiYmlvbG9naWNhbFNleCJdID0gIlBBVE86MDAwMDM4NCI7CiAgICAgICAgICAgIH0KICAgICAgICAgIH0KICAgICAgICB9IGVsc2UgewogICAgICAgICAgLy8gU2V0IHRoZSBiaW9sb2ljYWxTZXggbm93IGlmIG1hcCBpcyBub3QgcmVzdW1lZCBmcm9tCiAgICAgICAgICAvLyBhIHNhdmVkIHN0YXRlCiAgICAgICAgICBpZiAodGhpcy5iaW9sb2dpY2FsU2V4KSB7CiAgICAgICAgICAgIGlkZW50aWZpZXJbImJpb2xvZ2ljYWxTZXgiXSA9IHRoaXMuYmlvbG9naWNhbFNleDsKICAgICAgICAgIH0KICAgICAgICB9CiAgICAgICAgdmFyIHByb21pc2UxID0gdGhpcy5tYXBNYW5hZ2VyLmxvYWRNYXAoaWRlbnRpZmllciwgdGhpcy4kcmVmcy5kaXNwbGF5LCB0aGlzLmV2ZW50Q2FsbGJhY2soKSwgewogICAgICAgICAgLy9mdWxsc2NyZWVuQ29udHJvbDogZmFsc2UsCiAgICAgICAgICAvL2Fubm90YXRhYmxlOiBmYWxzZSwKICAgICAgICAgIC8vZGVidWc6IHRydWUsCiAgICAgICAgICBmZWF0dXJlSW5mbzogdGhpcy5mZWF0dXJlSW5mbywKICAgICAgICAgICJtaW4tem9vbSI6IHRoaXMubWluWm9vbSwKICAgICAgICAgIGxheWVyQ29udHJvbDogdHJ1ZSwKICAgICAgICAgIHBhdGhDb250cm9sczogdHJ1ZSwKICAgICAgICAgIHNlYXJjaGFibGU6IHRoaXMuc2VhcmNoYWJsZSwKICAgICAgICAgIHRvb2x0aXBzOiB0aGlzLnRvb2x0aXBzLAogICAgICAgICAgbWluaW1hcDogbWluaW1hcAogICAgICAgIH0pOwogICAgICAgIHByb21pc2UxLnRoZW4oZnVuY3Rpb24gKHJldHVybmVkT2JqZWN0KSB7CiAgICAgICAgICBfdGhpczcubWFwSW1wID0gcmV0dXJuZWRPYmplY3Q7CiAgICAgICAgICBfdGhpczcub25GbGF0bWFwUmVhZHkoKTsKICAgICAgICAgIGlmIChfdGhpczcuX3N0YXRlVG9CZVNldCkgX3RoaXM3LnJlc3RvcmVNYXBTdGF0ZShfdGhpczcuX3N0YXRlVG9CZVNldCk7ZWxzZSB7CiAgICAgICAgICAgIF90aGlzNy5yZXN0b3JlTWFwU3RhdGUoc3RhdGUpOwogICAgICAgICAgfQogICAgICAgIH0pOwogICAgICB9IGVsc2UgaWYgKHN0YXRlKSB7CiAgICAgICAgdGhpcy5fc3RhdGVUb0JlU2V0ID0gewogICAgICAgICAgdmlld3BvcnQ6IHN0YXRlLnZpZXdwb3J0LAogICAgICAgICAgc2VhcmNoVGVybTogc3RhdGUuc2VhcmNoVGVybQogICAgICAgIH07CiAgICAgICAgaWYgKHRoaXMubWFwSW1wICYmICF0aGlzLmxvYWRpbmcpIHRoaXMucmVzdG9yZU1hcFN0YXRlKHRoaXMuX3N0YXRlVG9CZVNldCk7CiAgICAgIH0KICAgIH0sCiAgICBjb21wdXRlUGF0aENvbnRyb2xzTWF4aW11bUhlaWdodDogZnVuY3Rpb24gY29tcHV0ZVBhdGhDb250cm9sc01heGltdW1IZWlnaHQoKSB7CiAgICAgIHZhciBlbGVtID0gdGhpcy4kcmVmcy5kaXNwbGF5OwogICAgICBpZiAoZWxlbSkgewogICAgICAgIHZhciBjb21wdXRlZCA9IGdldENvbXB1dGVkU3R5bGUoZWxlbSk7CiAgICAgICAgdmFyIHBhZGRpbmcgPSBwYXJzZUludChjb21wdXRlZC5wYWRkaW5nVG9wKSArIHBhcnNlSW50KGNvbXB1dGVkLnBhZGRpbmdCb3R0b20pOwogICAgICAgIHZhciBoZWlnaHQgPSBlbGVtLmNsaWVudEhlaWdodCAtIHBhZGRpbmc7CiAgICAgICAgdGhpcy5wYXRod2F5c01heEhlaWdodCA9IGhlaWdodCAtIDE1MDsKICAgICAgfQogICAgfSwKICAgIG1hcFJlc2l6ZTogZnVuY3Rpb24gbWFwUmVzaXplKCkgewogICAgICB0cnkgewogICAgICAgIGlmICh0aGlzLm1hcEltcCkgewogICAgICAgICAgdGhpcy5tYXBJbXAucmVzaXplKCk7CiAgICAgICAgICB0aGlzLnNob3dNaW5pbWFwKHRoaXMuZGlzcGxheU1pbmltYXApOwogICAgICAgICAgaWYgKHRoaXMubWFwSW1wLl9taW5pbWFwKSB7CiAgICAgICAgICAgIHRoaXMubWFwSW1wLl9taW5pbWFwLnJlc2l6ZSgpOwogICAgICAgICAgfQogICAgICAgIH0KICAgICAgICB0aGlzLmNvbXB1dGVQYXRoQ29udHJvbHNNYXhpbXVtSGVpZ2h0KCk7CiAgICAgIH0gY2F0Y2ggKF91bnVzZWQpIHsKICAgICAgICBjb25zb2xlLmVycm9yKCJNYXAgcmVzaXplIGVycm9yIik7CiAgICAgIH0KICAgIH0sCiAgICBvbkZsYXRtYXBSZWFkeTogZnVuY3Rpb24gb25GbGF0bWFwUmVhZHkoKSB7CiAgICAgIC8vIG9uRmxhdG1hcFJlYWR5IGlzIHVzZWQgZm9yIGZ1bmN0aW9ucyB0aGF0IG5lZW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HMucmVzdWx0c1swXS50ZXh0KSB7CiAgICAgICAgICAgICAgdGhpcy5tYXBJbXAuc2hvd1BvcHVwKHNlYXJjaFJlc3VsdHMucmVzdWx0c1swXS5mZWF0dXJlSWQsIHNlYXJjaFJlc3VsdHMucmVzdWx0c1swXS50ZXh0LCB7CiAgICAgICAgICAgICAgICBjbGFzc05hbWU6ICJjdXN0b20tcG9wdXAiLAogICAgICAgICAgICAgICAgcG9zaXRpb25BdExhc3RDbGljazogZmFsc2UKICAgICAgICAgICAgICB9KTsKICAgICAgICAgICAgfQogICAgICAgICAgICByZXR1cm4gdHJ1ZTsKICAgICAgICAgIH0gZWxzZSB0aGlzLm1hcEltcC5jbGVhclNlYXJjaFJlc3VsdHMoKTsKICAgICAgICB9CiAgICAgIH0KICAgICAgcmV0dXJuIGZhbHNlOwogICAgfSwKICAgIC8qKgogICAgICogR2V0IHRoZSBsaXN0IG9mIHN1Z2dlc3RlZCB0ZXJtcwogICAgICovCiAgICBzZWFyY2hTdWdnZXN0aW9uczogZnVuY3Rpb24gc2VhcmNoU3VnZ2VzdGlvbnModGVybSkgewogICAgICBpZiAodGhpcy5tYXBJbXApIHJldHVybiB0aGlzLm1hcEltcC5zZWFyY2godGVybSk7CiAgICAgIHJldHVybiBbXTsKICAgIH0KICB9LAogIHByb3BzOiB7CiAgICBlbnRyeTogU3RyaW5nLAogICAgYmlvbG9naWNhbFNleDogewogICAgICB0eXBlOiBTdHJpbmcsCiAgICAgIGRlZmF1bHQ6ICIiCiAgICB9LAogICAgZmVhdHVyZUluZm86IHsKICAgICAgdHlwZTogQm9vbGVhbiwKICAgICAgZGVmYXVsdDogZmFsc2UKICAgIH0sCiAgICBtaW5ab29tOiB7CiAgICAgIHR5cGU6IE51bWJlciwKICAgICAgZGVmYXVsdDogNAogICAgfSwKICAgIHBhdGhDb250cm9sczogewogICAgICB0eXBlOiBCb29sZWFuLAogICAgICBkZWZhdWx0OiBmYWxzZQogICAgfSwKICAgIHNlYXJjaGFibGU6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GF0aCB3aXRoIFNDS0FOIiwKICAgICAgICBrZXk6ICJWQUxJRCIKICAgICAgfV0sCiAgICAgIGNlbnRyZUxpbmVzOiBbewogICAgICAgIGxhYmVsOiAiRGlzcGxheSBOZXJ2ZXMiLAogICAgICAgIGtleTogImNlbnRyZWxpbmVzIiwKICAgICAgICBlbmFibGVkOiBmYWxzZQogICAgICB9XSwKICAgICAgc3lzdGVtczogW10sCiAgICAgIHBhdGh3YXlzTWF4SGVpZ2h0OiAxMDAwLAogICAgICBob3ZlclZpc2liaWxpdGllczogW3sKICAgICAgICB2YWx1ZTogZmFsc2UKICAgICAgfSwgewogICAgICAgIHZhbHVlOiBmYWxzZQogICAgICB9LCB7CiAgICAgICAgdmFsdWU6IGZhbHNlCiAgICAgIH0sIHsKICAgICAgICB2YWx1ZTogZmFsc2UKICAgICAgfSwgewogICAgICAgIHZhbHVlOiBmYWxzZQogICAgICB9LCB7CiAgICAgICAgdmFsdWU6IGZhbHNlCiAgICAgIH0sIHsKICAgICAgICB2YWx1ZTogZmFsc2UKICAgICAgfSwgewogICAgICAgIHZhbHVlOiBmYWxzZQogICAgICB9XSwKICAgICAgaXNGQzogZmFsc2UsCiAgICAgIGluSGVscDogZmFsc2UsCiAgICAgIGN1cnJlbnRCYWNrZ3JvdW5kOiAid2hpdGUiLAogICAgICBhdmFpbGFibGVCYWNrZ3JvdW5kOiBbIndoaXRlIiwgImxpZ2h0c2t5Ymx1ZSIsICJibGFjayJdLAogICAgICBsb2FkaW5nOiBmYWxzZSwKICAgICAgZmxhdG1hcE1hcmtlcjogZmxhdG1hcE1hcmtlciwKICAgICAgdG9vbHRpcEVudHJ5OiBjcmVhdGVVbmZpbGxlZFRvb2x0aXBEYXRhKCksCiAgICAgIGNvbm5lY3Rpdml0eVRvb2x0aXBWaXNpYmxlOiBmYWxzZSwKICAgICAgcmVzb3VyY2VGb3JUb29sdGlwOiB1bmRlZmluZWQsCiAgICAgIGRyYXdlck9wZW46IGZhbHNlLAogICAgICBj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ang","locale","flatmapMarker","FlatmapQueries","use","_Col","_Loading","directive","_Radio","_RadioGroup","_Row","ResizeSensor","require","createUnfilledTooltipData","destinations","origins","components","destinationsWithDatasets","originsWithDatasets","componentsWithDatasets","resource","undefined","name","beforeCreate","mapManager","mapImp","methods","viewLatestMap","biologicalSex","entry","state","viewport","getState","$emit","backgroundChangeCallback","colour","currentBackground","setBackgroundColour","toggleDrawer","drawerOpen","setColour","flag","colourRadio","outline","outlinesRadio","setOutlines","outlineRadio","resetView","resetMap","$refs","centrelinesSelection","reset","skcanSelection","layersSelection","systemsSelection","pathwaysSelection","zoomIn","zoomOut","centreLinesSelected","payload","enableCentrelines","value","sckanSelected","enableSckanPath","key","checkAllSCKAN","_this","keys","forEach","systemSelected","enableSystem","checkAllSystems","_this2","layersSelected","enableLayer","checkAllLayers","_this3","pathwaysSelected","enablePath","checkAllPathways","_this4","enablePanZoomEvents","eventCallback","_this5","eventType","data","label","models","taxonomy","_len","arguments","length","args","Array","_key","dataset","feature","userData","type","checkAndCreatePopups","_checkAndCreatePopups","_asyncToGenerator","_regeneratorRuntime","mark","_callee","results","wrap","_callee$","_context","prev","next","flatmapQueries","retrieveFlatmapKnowledgeForEvent","sent","hyperlinks","resourceForTooltip","createTooltipFromNeuronCuration","stop","_x","apply","popUpCssHacks","ftooltip","document","querySelector","style","display","tooltip","$el","onclick","resourceSelected","action","tooltipEntry","createTooltipData","displayTooltip","showPopup","featureId","node","options","myOptions","className","positionAtLastClick","showMarkerPopup","closeMinimap","minimapEl","flatmapContainer","minimapSmall","classList","add","remove","addResizeButtonToMinimap","minimapResize","parentNode","removeChild","appendChild","minimapResizeShow","setHelpMode","helpMode","inHelp","hoverVisibilities","item","openFlatmapHelpPopup","closeFlatmapHelpPopup","showToolitip","tooltipNumber","_this6","tooltipWait","setTimeout","hideToolitip","clearTimeout","modelFeatureIds","heartId","featureIdsForModel","elm","anchor","querySelectorAll","click","getLabels","labels","annotations","_iterator","_createForOfIteratorHelper","values","_step","s","n","done","push","err","e","f","from","Set","identifier","getIdentifier","uuid","setState","createFlatmap","restoreMapState","searchTerm","searchAndShowResult","_this7","loading","minimap","displayMinimap","position","taxon","promise1","loadMap","featureInfo","minZoom","layerControl","pathControls","searchable","tooltips","then","returnedObject","onFlatmapReady","_stateToBeSet","computePathControlsMaximumHeight","elem","computed","getComputedStyle","padding","parseInt","paddingTop","paddingBottom","height","clientHeight","pathwaysMaxHeight","mapResize","resize","showMinimap","_minimap","_unused","console","error","sensor","isFC","setBackgroundOpacity","pathways","pathTypes","systems","getSystems","showPathwaysDrawer","term","displayLabel","clearSearchResults","searchResults","search","showSearchResults","text","searchSuggestions","props","String","default","Boolean","Number","renderAtMounted","displayWarning","warningMessage","isLegacy","displayLatestChanges","latestChangesMessage","Object","flatmapAPI","sparcAPI","provide","layers","sckanDisplay","centreLines","enabled","availableBackground","connectivityTooltipVisible","watch","val","handler","immediate","deep","mounted","flatmap","MapManager","initialise"],"sources":["node_modules/@abi-software/flatmapvuer/src/components/FlatmapVuer.vue"],"sourcesContent":["\n \n \n \n \n \n \n \n \n \n Legacy Map\n Click here for the latest map\n \n \n Beta\n \n \n \n \n \n What's new?\n \n \n \n \n \n\n \n \n \n \n \n \n \n \n \n Fit to\n \n window\n \n \n \n \n \n \n \n \n \n \n 0\"\n title=\"Systems\"\n labelKey=\"name\"\n identifierKey=\"id\"\n :selections=\"systems\"\n colourStyle=\"background\"\n @changed=\"systemSelected\"\n @checkAll=\"checkAllSystems\"\n ref=\"systemsSelection\"\n key=\"systemsSelection\"\n />\n 0\"\n title=\"Nerves\"\n labelKey=\"label\"\n identifierKey=\"key\"\n :selections=\"centreLines\"\n @changed=\"centreLinesSelected\"\n ref=\"centrelinesSelection\"\n key=\"centrelinesSelection\"\n />\n \n 0\"\n title=\"Pathways\"\n labelKey=\"label\"\n identifierKey=\"type\"\n colourStyle=\"line\"\n :selections=\"pathways\"\n @changed=\"pathwaysSelected\"\n @checkAll=\"checkAllPathways\"\n ref=\"pathwaysSelection\"\n key=\"pathwaysSelection\"\n />\n \n \n \n \n \n \n Organs display\n \n \n Colour\n Greyscale\n \n \n \n Outlines display\n \n \n Show\n Hide\n \n \n \n Change background\n \n \n \n \n \n \n \n \n \n \n\n\n\n\n\n\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4RA;AACA,OAAAA,GAAA;AACA,OAAAC,OAAA;AACA,OAAAC,eAAA;AACA,SAAAC,UAAA,EAAAC,iBAAA;AACA,OAAAC,UAAA;AAQA,OAAAC,IAAA;AACA,OAAAC,MAAA;AACA,OAAAC,aAAA;AACA,SAAAC,cAAA;AAEAF,MAAA,CAAAG,GAAA,CAAAJ,IAAA;AACAN,GAAA,CAAAU,GAAA,CAAAC,IAAA;AACAX,GAAA,CAAAU,GAAA,CAAAE,QAAA,CAAAC,SAAA;AACAb,GAAA,CAAAU,GAAA,CAAAI,MAAA;AACAd,GAAA,CAAAU,GAAA,CAAAK,WAAA;AACAf,GAAA,CAAAU,GAAA,CAAAM,IAAA;AACA,IAAAC,YAAA,GAAAC,OAAA;AAEA,IAAAC,yBAAA,YAAAA,0BAAA;EACA;IACAC,YAAA;IACAC,OAAA;IACAC,UAAA;IACAC,wBAAA;IACAC,mBAAA;IACAC,sBAAA;IACAC,QAAA,EAAAC;EACA;AACA;AAEA;EACAC,IAAA;EACAN,UAAA;IACAnB,UAAA,EAAAA,UAAA;IACAC,iBAAA,EAAAA,iBAAA;IACAH,OAAA,EAAAA,OAAA;IACAC,eAAA,EAAAA,eAAA;IACAG,UAAA,EAAAA;EACA;EACAwB,YAAA,WAAAA,aAAA;IACA,KAAAC,UAAA,GAAAH,SAAA;IACA,KAAAI,MAAA,GAAAJ,SAAA;EACA;EACAK,OAAA;IACAC,aAAA,WAAAA,cAAA;MACA,IAAAC,aAAA,QAAAA,aAAA,QAAAA,aAAA,GAAAP,SAAA;MACA;MACA,SAAAQ,KAAA;QACAD,aAAA;MACA;MACA,IAAAE,KAAA;QACAD,KAAA,OAAAA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