summaryrefslogtreecommitdiffstats
path: root/addon-sdk/source/lib/dev
diff options
context:
space:
mode:
Diffstat (limited to 'addon-sdk/source/lib/dev')
-rw-r--r--addon-sdk/source/lib/dev/debuggee.js95
-rw-r--r--addon-sdk/source/lib/dev/frame-script.js120
-rw-r--r--addon-sdk/source/lib/dev/panel.js259
-rw-r--r--addon-sdk/source/lib/dev/panel/view.js14
-rw-r--r--addon-sdk/source/lib/dev/ports.js64
-rw-r--r--addon-sdk/source/lib/dev/theme.js135
-rw-r--r--addon-sdk/source/lib/dev/theme/hooks.js17
-rw-r--r--addon-sdk/source/lib/dev/toolbox.js107
-rw-r--r--addon-sdk/source/lib/dev/utils.js40
-rw-r--r--addon-sdk/source/lib/dev/volcan.js3848
10 files changed, 0 insertions, 4699 deletions
diff --git a/addon-sdk/source/lib/dev/debuggee.js b/addon-sdk/source/lib/dev/debuggee.js
deleted file mode 100644
index 0ca0bd37a..000000000
--- a/addon-sdk/source/lib/dev/debuggee.js
+++ /dev/null
@@ -1,95 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-"use strict";
-
-module.metadata = {
- "stability": "experimental"
-};
-
-const { Cu } = require("chrome");
-const { Class } = require("../sdk/core/heritage");
-const { MessagePort, MessageChannel } = require("../sdk/messaging");
-const { require: devtoolsRequire } = Cu.import("resource://devtools/shared/Loader.jsm", {});
-const { DebuggerServer } = devtoolsRequire("devtools/server/main");
-
-const outputs = new WeakMap();
-const inputs = new WeakMap();
-const targets = new WeakMap();
-const transports = new WeakMap();
-
-const inputFor = port => inputs.get(port);
-const outputFor = port => outputs.get(port);
-const transportFor = port => transports.get(port);
-
-const fromTarget = target => {
- const debuggee = new Debuggee();
- const { port1, port2 } = new MessageChannel();
- inputs.set(debuggee, port1);
- outputs.set(debuggee, port2);
- targets.set(debuggee, target);
-
- return debuggee;
-};
-exports.fromTarget = fromTarget;
-
-const Debuggee = Class({
- extends: MessagePort.prototype,
- close: function() {
- const server = transportFor(this);
- if (server) {
- transports.delete(this);
- server.close();
- }
- outputFor(this).close();
- },
- start: function() {
- const target = targets.get(this);
- if (target.isLocalTab) {
- // Since a remote protocol connection will be made, let's start the
- // DebuggerServer here, once and for all tools.
- if (!DebuggerServer.initialized) {
- DebuggerServer.init();
- DebuggerServer.addBrowserActors();
- }
-
- transports.set(this, DebuggerServer.connectPipe());
- }
- // TODO: Implement support for remote connections (See Bug 980421)
- else {
- throw Error("Remote targets are not yet supported");
- }
-
- // pipe messages send to the debuggee to an actual
- // server via remote debugging protocol transport.
- inputFor(this).addEventListener("message", ({data}) =>
- transportFor(this).send(data));
-
- // pipe messages received from the remote debugging
- // server transport onto the this debuggee.
- transportFor(this).hooks = {
- onPacket: packet => inputFor(this).postMessage(packet),
- onClosed: () => inputFor(this).close()
- };
-
- inputFor(this).start();
- outputFor(this).start();
- },
- postMessage: function(data) {
- return outputFor(this).postMessage(data);
- },
- get onmessage() {
- return outputFor(this).onmessage;
- },
- set onmessage(onmessage) {
- outputFor(this).onmessage = onmessage;
- },
- addEventListener: function(...args) {
- return outputFor(this).addEventListener(...args);
- },
- removeEventListener: function(...args) {
- return outputFor(this).removeEventListener(...args);
- }
-});
-exports.Debuggee = Debuggee;
diff --git a/addon-sdk/source/lib/dev/frame-script.js b/addon-sdk/source/lib/dev/frame-script.js
deleted file mode 100644
index 33a197419..000000000
--- a/addon-sdk/source/lib/dev/frame-script.js
+++ /dev/null
@@ -1,120 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-"use strict";
-(function({content, sendSyncMessage, addMessageListener, sendAsyncMessage}) {
-
-const Cc = Components.classes;
-const Ci = Components.interfaces;
-const observerService = Cc["@mozilla.org/observer-service;1"]
- .getService(Ci.nsIObserverService);
-
-const channels = new Map();
-const handles = new WeakMap();
-
-// Takes remote port handle and creates a local one.
-// also set's up a messaging channel between them.
-// This is temporary workaround until Bug 914974 is fixed
-// and port can be transfered through message manager.
-const demarshal = (handle) => {
- if (handle.type === "MessagePort") {
- if (!channels.has(handle.id)) {
- const channel = new content.MessageChannel();
- channels.set(handle.id, channel);
- handles.set(channel.port1, handle);
- channel.port1.onmessage = onOutPort;
- }
- return channels.get(handle.id).port2;
- }
- return null;
-};
-
-const onOutPort = event => {
- const handle = handles.get(event.target);
- sendAsyncMessage("sdk/port/message", {
- port: handle,
- message: event.data
- });
-};
-
-const onInPort = ({data}) => {
- const channel = channels.get(data.port.id);
- if (channel)
- channel.port1.postMessage(data.message);
-};
-
-const onOutEvent = event =>
- sendSyncMessage("sdk/event/" + event.type,
- { type: event.type,
- data: event.data });
-
-const onInMessage = (message) => {
- const {type, data, origin, bubbles, cancelable, ports} = message.data;
-
- const event = new content.MessageEvent(type, {
- bubbles: bubbles,
- cancelable: cancelable,
- data: data,
- origin: origin,
- target: content,
- source: content,
- ports: ports.map(demarshal)
- });
- content.dispatchEvent(event);
-};
-
-const onReady = event => {
- channels.clear();
-};
-
-addMessageListener("sdk/event/message", onInMessage);
-addMessageListener("sdk/port/message", onInPort);
-
-const observer = {
- handleEvent: ({target, type}) => {
- observer.observe(target, type);
- },
- observe: (document, topic, data) => {
- // When frame associated with message manager is removed from document `docShell`
- // is set to `null` but observer is still kept alive. At this point accesing
- // `content.document` throws "can't access dead object" exceptions. In order to
- // avoid leaking observer and logged errors observer is going to be removed when
- // `docShell` is set to `null`.
- if (!docShell) {
- observerService.removeObserver(observer, topic);
- }
- else if (document === content.document) {
- if (topic.endsWith("-document-interactive")) {
- sendAsyncMessage("sdk/event/ready", {
- type: "ready",
- readyState: document.readyState,
- uri: document.documentURI
- });
- }
- if (topic.endsWith("-document-loaded")) {
- sendAsyncMessage("sdk/event/load", {
- type: "load",
- readyState: document.readyState,
- uri: document.documentURI
- });
- }
- if (topic === "unload") {
- channels.clear();
- sendAsyncMessage("sdk/event/unload", {
- type: "unload",
- readyState: "uninitialized",
- uri: document.documentURI
- });
- }
- }
- }
-};
-
-observerService.addObserver(observer, "content-document-interactive", false);
-observerService.addObserver(observer, "content-document-loaded", false);
-observerService.addObserver(observer, "chrome-document-interactive", false);
-observerService.addObserver(observer, "chrome-document-loaded", false);
-addEventListener("unload", observer, false);
-
-})(this);
diff --git a/addon-sdk/source/lib/dev/panel.js b/addon-sdk/source/lib/dev/panel.js
deleted file mode 100644
index 1ef6a303a..000000000
--- a/addon-sdk/source/lib/dev/panel.js
+++ /dev/null
@@ -1,259 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-"use strict";
-
-module.metadata = {
- "stability": "experimental"
-};
-
-const { Cu } = require("chrome");
-const { Class } = require("../sdk/core/heritage");
-const { curry } = require("../sdk/lang/functional");
-const { EventTarget } = require("../sdk/event/target");
-const { Disposable, setup, dispose } = require("../sdk/core/disposable");
-const { emit, off, setListeners } = require("../sdk/event/core");
-const { when } = require("../sdk/event/utils");
-const { getFrameElement } = require("../sdk/window/utils");
-const { contract, validate } = require("../sdk/util/contract");
-const { data: { url: resolve }} = require("../sdk/self");
-const { identify } = require("../sdk/ui/id");
-const { isLocalURL, URL } = require("../sdk/url");
-const { encode } = require("../sdk/base64");
-const { marshal, demarshal } = require("./ports");
-const { fromTarget } = require("./debuggee");
-const { removed } = require("../sdk/dom/events");
-const { id: addonID } = require("../sdk/self");
-const { viewFor } = require("../sdk/view/core");
-const { createView } = require("./panel/view");
-
-const OUTER_FRAME_URI = module.uri.replace(/\.js$/, ".html");
-const FRAME_SCRIPT = module.uri.replace("/panel.js", "/frame-script.js");
-const XUL_NS = "http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul";
-const HTML_NS = "http://www.w3.org/1999/xhtml";
-
-const makeID = name =>
- ("dev-panel-" + addonID + "-" + name).
- split("/").join("-").
- split(".").join("-").
- split(" ").join("-").
- replace(/[^A-Za-z0-9_\-]/g, "");
-
-
-// Weak mapping between `Panel` instances and their frame's
-// `nsIMessageManager`.
-const managers = new WeakMap();
-// Return `nsIMessageManager` for the given `Panel` instance.
-const managerFor = x => managers.get(x);
-
-// Weak mappinging between iframe's and their owner
-// `Panel` instances.
-const panels = new WeakMap();
-const panelFor = frame => panels.get(frame);
-
-// Weak mapping between panels and debugees they're targeting.
-const debuggees = new WeakMap();
-const debuggeeFor = panel => debuggees.get(panel);
-
-const frames = new WeakMap();
-const frameFor = panel => frames.get(panel);
-
-const setAttributes = (node, attributes) => {
- for (var key in attributes)
- node.setAttribute(key, attributes[key]);
-};
-
-const onStateChange = ({target, data}) => {
- const panel = panelFor(target);
- panel.readyState = data.readyState;
- emit(panel, data.type, { target: panel, type: data.type });
-};
-
-// port event listener on the message manager that demarshalls
-// and forwards to the actual receiver. This is a workaround
-// until Bug 914974 is fixed.
-const onPortMessage = ({data, target}) => {
- const port = demarshal(target, data.port);
- if (port)
- port.postMessage(data.message);
-};
-
-// When frame is removed from the toolbox destroy panel
-// associated with it to release all the resources.
-const onFrameRemove = frame => {
- panelFor(frame).destroy();
-};
-
-const onFrameInited = frame => {
- frame.style.visibility = "visible";
-}
-
-const inited = frame => new Promise(resolve => {
- const { messageManager } = frame.frameLoader;
- const listener = message => {
- messageManager.removeMessageListener("sdk/event/ready", listener);
- resolve(frame);
- };
- messageManager.addMessageListener("sdk/event/ready", listener);
-});
-
-const getTarget = ({target}) => target;
-
-const Panel = Class({
- extends: Disposable,
- implements: [EventTarget],
- get id() {
- return makeID(this.name || this.label);
- },
- readyState: "uninitialized",
- ready: function() {
- const { readyState } = this;
- const isReady = readyState === "complete" ||
- readyState === "interactive";
- return isReady ? Promise.resolve(this) :
- when(this, "ready").then(getTarget);
- },
- loaded: function() {
- const { readyState } = this;
- const isLoaded = readyState === "complete";
- return isLoaded ? Promise.resolve(this) :
- when(this, "load").then(getTarget);
- },
- unloaded: function() {
- const { readyState } = this;
- const isUninitialized = readyState === "uninitialized";
- return isUninitialized ? Promise.resolve(this) :
- when(this, "unload").then(getTarget);
- },
- postMessage: function(data, ports=[]) {
- const manager = managerFor(this);
- manager.sendAsyncMessage("sdk/event/message", {
- type: "message",
- bubbles: false,
- cancelable: false,
- data: data,
- origin: this.url,
- ports: ports.map(marshal(manager))
- });
- }
-});
-exports.Panel = Panel;
-
-validate.define(Panel, contract({
- label: {
- is: ["string"],
- msg: "The `option.label` must be a provided"
- },
- tooltip: {
- is: ["string", "undefined"],
- msg: "The `option.tooltip` must be a string"
- },
- icon: {
- is: ["string"],
- map: x => x && resolve(x),
- ok: x => isLocalURL(x),
- msg: "The `options.icon` must be a valid local URI."
- },
- url: {
- map: x => resolve(x.toString()),
- is: ["string"],
- ok: x => isLocalURL(x),
- msg: "The `options.url` must be a valid local URI."
- },
- invertIconForLightTheme: {
- is: ["boolean", "undefined"],
- msg: "The `options.invertIconForLightTheme` must be a boolean."
- },
- invertIconForDarkTheme: {
- is: ["boolean", "undefined"],
- msg: "The `options.invertIconForDarkTheme` must be a boolean."
- }
-}));
-
-setup.define(Panel, (panel, {window, toolbox, url}) => {
- // Hack: Given that iframe created by devtools API is no good for us,
- // we obtain original iframe and replace it with the one that has
- // desired configuration.
- const original = getFrameElement(window);
- const container = original.parentNode;
- original.remove();
- const frame = createView(panel, container.ownerDocument);
-
- // Following modifications are a temporary workaround until Bug 1049188
- // is fixed.
- // Enforce certain iframe customizations regardless of users request.
- setAttributes(frame, {
- "id": original.id,
- "src": url,
- "flex": 1,
- "forceOwnRefreshDriver": "",
- "tooltip": "aHTMLTooltip"
- });
- frame.style.visibility = "hidden";
- frame.classList.add("toolbox-panel-iframe");
- // Inject iframe into designated node until add-on author decides
- // to inject it elsewhere instead.
- if (!frame.parentNode)
- container.appendChild(frame);
-
- // associate view with a panel
- frames.set(panel, frame);
-
- // associate panel model with a frame view.
- panels.set(frame, panel);
-
- const debuggee = fromTarget(toolbox.target);
- // associate debuggee with a panel.
- debuggees.set(panel, debuggee);
-
-
- // Setup listeners for the frame message manager.
- const { messageManager } = frame.frameLoader;
- messageManager.addMessageListener("sdk/event/ready", onStateChange);
- messageManager.addMessageListener("sdk/event/load", onStateChange);
- messageManager.addMessageListener("sdk/event/unload", onStateChange);
- messageManager.addMessageListener("sdk/port/message", onPortMessage);
- messageManager.loadFrameScript(FRAME_SCRIPT, false);
-
- managers.set(panel, messageManager);
-
- // destroy panel if frame is removed.
- removed(frame).then(onFrameRemove);
- // show frame when it is initialized.
- inited(frame).then(onFrameInited);
-
-
- // set listeners if there are ones defined on the prototype.
- setListeners(panel, Object.getPrototypeOf(panel));
-
-
- panel.setup({ debuggee: debuggee });
-});
-
-createView.define(Panel, (panel, document) => {
- const frame = document.createElement("iframe");
- setAttributes(frame, {
- "sandbox": "allow-scripts",
- // We end up using chrome iframe with forced message manager
- // as fixing a swapFrameLoader seemed like a giant task (see
- // Bug 1075490).
- "type": "chrome",
- "forcemessagemanager": true,
- "transparent": true,
- "seamless": "seamless",
- });
- return frame;
-});
-
-dispose.define(Panel, function(panel) {
- debuggeeFor(panel).close();
-
- debuggees.delete(panel);
- managers.delete(panel);
- frames.delete(panel);
- panel.readyState = "destroyed";
- panel.dispose();
-});
-
-viewFor.define(Panel, frameFor);
diff --git a/addon-sdk/source/lib/dev/panel/view.js b/addon-sdk/source/lib/dev/panel/view.js
deleted file mode 100644
index 41cf9c221..000000000
--- a/addon-sdk/source/lib/dev/panel/view.js
+++ /dev/null
@@ -1,14 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-"use strict";
-
-module.metadata = {
- "stability": "experimental"
-};
-
-const { method } = require("method/core");
-
-const createView = method("dev/panel/view#createView");
-exports.createView = createView;
diff --git a/addon-sdk/source/lib/dev/ports.js b/addon-sdk/source/lib/dev/ports.js
deleted file mode 100644
index a41f59eb7..000000000
--- a/addon-sdk/source/lib/dev/ports.js
+++ /dev/null
@@ -1,64 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-"use strict";
-
-module.metadata = {
- "stability": "experimental"
-};
-
-// This module provides `marshal` and `demarshal` functions
-// that can be used to send MessagePort's over `nsIFrameMessageManager`
-// until Bug 914974 is fixed.
-
-const { add, iterator } = require("../sdk/lang/weak-set");
-const { curry } = require("../sdk/lang/functional");
-
-var id = 0;
-const ports = new WeakMap();
-
-// Takes `nsIFrameMessageManager` and `MessagePort` instances
-// and returns a handle representing given `port`. Messages
-// received on given `port` will be forwarded to a message
-// manager under `sdk/port/message` and messages like:
-// { port: { type: "MessagePort", id: 2}, data: data }
-// Where id is an identifier associated with a given `port`
-// and `data` is an `event.data` received on port.
-const marshal = curry((manager, port) => {
- if (!ports.has(port)) {
- id = id + 1;
- const handle = {type: "MessagePort", id: id};
- // Bind id to the given port
- ports.set(port, handle);
-
- // Obtain a weak reference to a port.
- add(exports, port);
-
- port.onmessage = event => {
- manager.sendAsyncMessage("sdk/port/message", {
- port: handle,
- message: event.data
- });
- };
-
- return handle;
- }
- return ports.get(port);
-});
-exports.marshal = marshal;
-
-// Takes `nsIFrameMessageManager` instance and a handle returned
-// `marshal(manager, port)` returning a `port` that was passed
-// to it. Note that `port` may be GC-ed in which case returned
-// value will be `null`.
-const demarshal = curry((manager, {type, id}) => {
- if (type === "MessagePort") {
- for (let port of iterator(exports)) {
- if (id === ports.get(port).id)
- return port;
- }
- }
- return null;
-});
-exports.demarshal = demarshal;
diff --git a/addon-sdk/source/lib/dev/theme.js b/addon-sdk/source/lib/dev/theme.js
deleted file mode 100644
index 05930a502..000000000
--- a/addon-sdk/source/lib/dev/theme.js
+++ /dev/null
@@ -1,135 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-"use strict";
-
-module.metadata = {
- "stability": "experimental"
-};
-
-const { Class } = require("../sdk/core/heritage");
-const { EventTarget } = require("../sdk/event/target");
-const { Disposable, setup, dispose } = require("../sdk/core/disposable");
-const { contract, validate } = require("../sdk/util/contract");
-const { id: addonID } = require("../sdk/self");
-const { onEnable, onDisable } = require("dev/theme/hooks");
-const { isString, instanceOf, isFunction } = require("sdk/lang/type");
-const { add } = require("sdk/util/array");
-const { data } = require("../sdk/self");
-const { isLocalURL } = require("../sdk/url");
-
-const makeID = name =>
- ("dev-theme-" + addonID + (name ? "-" + name : "")).
- split(/[ . /]/).join("-").
- replace(/[^A-Za-z0-9_\-]/g, "");
-
-const Theme = Class({
- extends: Disposable,
- implements: [EventTarget],
-
- initialize: function(options) {
- this.name = options.name;
- this.label = options.label;
- this.styles = options.styles;
-
- // Event handlers
- this.onEnable = options.onEnable;
- this.onDisable = options.onDisable;
- },
- get id() {
- return makeID(this.name || this.label);
- },
- setup: function() {
- // Any initialization steps done at the registration time.
- },
- getStyles: function() {
- if (!this.styles) {
- return [];
- }
-
- if (isString(this.styles)) {
- if (isLocalURL(this.styles)) {
- return [data.url(this.styles)];
- }
- }
-
- let result = [];
- for (let style of this.styles) {
- if (isString(style)) {
- if (isLocalURL(style)) {
- style = data.url(style);
- }
- add(result, style);
- } else if (instanceOf(style, Theme)) {
- result = result.concat(style.getStyles());
- }
- }
- return result;
- },
- getClassList: function() {
- let result = [];
- for (let style of this.styles) {
- if (instanceOf(style, Theme)) {
- result = result.concat(style.getClassList());
- }
- }
-
- if (this.name) {
- add(result, this.name);
- }
-
- return result;
- }
-});
-
-exports.Theme = Theme;
-
-// Initialization & dispose
-
-setup.define(Theme, (theme) => {
- theme.classList = [];
- theme.setup();
-});
-
-dispose.define(Theme, function(theme) {
- theme.dispose();
-});
-
-// Validation
-
-validate.define(Theme, contract({
- label: {
- is: ["string"],
- msg: "The `option.label` must be a provided"
- },
-}));
-
-// Support theme events: apply and unapply the theme.
-
-onEnable.define(Theme, (theme, {window, oldTheme}) => {
- if (isFunction(theme.onEnable)) {
- theme.onEnable(window, oldTheme);
- }
-});
-
-onDisable.define(Theme, (theme, {window, newTheme}) => {
- if (isFunction(theme.onDisable)) {
- theme.onDisable(window, newTheme);
- }
-});
-
-// Support for built-in themes
-
-const LightTheme = Theme({
- name: "theme-light",
- styles: "chrome://devtools/skin/light-theme.css",
-});
-
-const DarkTheme = Theme({
- name: "theme-dark",
- styles: "chrome://devtools/skin/dark-theme.css",
-});
-
-exports.LightTheme = LightTheme;
-exports.DarkTheme = DarkTheme;
diff --git a/addon-sdk/source/lib/dev/theme/hooks.js b/addon-sdk/source/lib/dev/theme/hooks.js
deleted file mode 100644
index 9987f853b..000000000
--- a/addon-sdk/source/lib/dev/theme/hooks.js
+++ /dev/null
@@ -1,17 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-"use strict";
-
-module.metadata = {
- "stability": "experimental"
-};
-
-const { method } = require("method/core");
-
-const onEnable = method("dev/theme/hooks#onEnable");
-const onDisable = method("dev/theme/hooks#onDisable");
-
-exports.onEnable = onEnable;
-exports.onDisable = onDisable;
diff --git a/addon-sdk/source/lib/dev/toolbox.js b/addon-sdk/source/lib/dev/toolbox.js
deleted file mode 100644
index 43f37759f..000000000
--- a/addon-sdk/source/lib/dev/toolbox.js
+++ /dev/null
@@ -1,107 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-"use strict";
-
-module.metadata = {
- "stability": "experimental"
-};
-
-const { Cu, Cc, Ci } = require("chrome");
-const { Class } = require("../sdk/core/heritage");
-const { Disposable, setup } = require("../sdk/core/disposable");
-const { contract, validate } = require("../sdk/util/contract");
-const { each, pairs, values } = require("../sdk/util/sequence");
-const { onEnable, onDisable } = require("../dev/theme/hooks");
-
-const { gDevTools } = Cu.import("resource://devtools/client/framework/gDevTools.jsm", {});
-
-// This is temporary workaround to allow loading of the developer tools client - volcan
-// into a toolbox panel, this hack won't be necessary as soon as devtools patch will be
-// shipped in nightly, after which it can be removed. Bug 1038517
-const registerSDKURI = () => {
- const ioService = Cc['@mozilla.org/network/io-service;1']
- .getService(Ci.nsIIOService);
- const resourceHandler = ioService.getProtocolHandler("resource")
- .QueryInterface(Ci.nsIResProtocolHandler);
-
- const uri = module.uri.replace("dev/toolbox.js", "");
- resourceHandler.setSubstitution("sdk", ioService.newURI(uri, null, null));
-};
-
-registerSDKURI();
-
-const Tool = Class({
- extends: Disposable,
- setup: function(params={}) {
- const { panels } = validate(this, params);
- const { themes } = validate(this, params);
-
- this.panels = panels;
- this.themes = themes;
-
- each(([key, Panel]) => {
- const { url, label, tooltip, icon, invertIconForLightTheme,
- invertIconForDarkTheme } = validate(Panel.prototype);
- const { id } = Panel.prototype;
-
- gDevTools.registerTool({
- id: id,
- url: "about:blank",
- label: label,
- tooltip: tooltip,
- icon: icon,
- invertIconForLightTheme: invertIconForLightTheme,
- invertIconForDarkTheme: invertIconForDarkTheme,
- isTargetSupported: target => target.isLocalTab,
- build: (window, toolbox) => {
- const panel = new Panel();
- setup(panel, { window: window,
- toolbox: toolbox,
- url: url });
-
- return panel.ready();
- }
- });
- }, pairs(panels));
-
- each(([key, theme]) => {
- validate(theme);
- setup(theme);
-
- gDevTools.registerTheme({
- id: theme.id,
- label: theme.label,
- stylesheets: theme.getStyles(),
- classList: theme.getClassList(),
- onApply: (window, oldTheme) => {
- onEnable(theme, { window: window,
- oldTheme: oldTheme });
- },
- onUnapply: (window, newTheme) => {
- onDisable(theme, { window: window,
- newTheme: newTheme });
- }
- });
- }, pairs(themes));
- },
- dispose: function() {
- each(Panel => gDevTools.unregisterTool(Panel.prototype.id),
- values(this.panels));
-
- each(Theme => gDevTools.unregisterTheme(Theme.prototype.id),
- values(this.themes));
- }
-});
-
-validate.define(Tool, contract({
- panels: {
- is: ["object", "undefined"]
- },
- themes: {
- is: ["object", "undefined"]
- }
-}));
-
-exports.Tool = Tool;
diff --git a/addon-sdk/source/lib/dev/utils.js b/addon-sdk/source/lib/dev/utils.js
deleted file mode 100644
index 48db39e04..000000000
--- a/addon-sdk/source/lib/dev/utils.js
+++ /dev/null
@@ -1,40 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-"use strict";
-
-const { Cu } = require("chrome");
-const { gDevTools } = Cu.import("resource://devtools/client/framework/gDevTools.jsm", {});
-const { devtools } = Cu.import("resource://devtools/shared/Loader.jsm", {});
-
-const { getActiveTab } = require("../sdk/tabs/utils");
-const { getMostRecentBrowserWindow } = require("../sdk/window/utils");
-
-const targetFor = target => {
- target = target || getActiveTab(getMostRecentBrowserWindow());
- return devtools.TargetFactory.forTab(target);
-};
-
-const getId = id => ((id.prototype && id.prototype.id) || id.id || id);
-
-const getCurrentPanel = toolbox => toolbox.getCurrentPanel();
-exports.getCurrentPanel = getCurrentPanel;
-
-const openToolbox = (id, tab) => {
- id = getId(id);
- return gDevTools.showToolbox(targetFor(tab), id);
-};
-exports.openToolbox = openToolbox;
-
-const closeToolbox = tab => gDevTools.closeToolbox(targetFor(tab));
-exports.closeToolbox = closeToolbox;
-
-const getToolbox = tab => gDevTools.getToolbox(targetFor(tab));
-exports.getToolbox = getToolbox;
-
-const openToolboxPanel = (id, tab) => {
- id = getId(id);
- return gDevTools.showToolbox(targetFor(tab), id).then(getCurrentPanel);
-};
-exports.openToolboxPanel = openToolboxPanel;
diff --git a/addon-sdk/source/lib/dev/volcan.js b/addon-sdk/source/lib/dev/volcan.js
deleted file mode 100644
index 6a68ed12d..000000000
--- a/addon-sdk/source/lib/dev/volcan.js
+++ /dev/null
@@ -1,3848 +0,0 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
-!function(e){if("object"==typeof exports)module.exports=e();else if("function"==typeof define&&define.amd)define(e);else{var f;"undefined"!=typeof window?f=window:"undefined"!=typeof global?f=global:"undefined"!=typeof self&&(f=self),f.volcan=e()}}(function(){var define,module,exports;return (function e(t,n,r){function s(o,u){if(!n[o]){if(!t[o]){var a=typeof require=="function"&&require;if(!u&&a)return a(o,!0);if(i)return i(o,!0);throw new Error("Cannot find module '"+o+"'")}var f=n[o]={exports:{}};t[o][0].call(f.exports,function(e){var n=t[o][1][e];return s(n?n:e)},f,f.exports,e,t,n,r)}return n[o].exports}var i=typeof require=="function"&&require;for(var o=0;o<r.length;o++)s(r[o]);return s})({1:[function(_dereq_,module,exports){
-"use strict";
-
-var Client = _dereq_("../client").Client;
-
-function connect(port) {
- var client = new Client();
- return client.connect(port);
-}
-exports.connect = connect;
-
-},{"../client":4}],2:[function(_dereq_,module,exports){
-"use strict";
-
-exports.Promise = Promise;
-
-},{}],3:[function(_dereq_,module,exports){
-"use strict";
-
-var describe = Object.getOwnPropertyDescriptor;
-var Class = function(fields) {
- var names = Object.keys(fields);
- var constructor = names.indexOf("constructor") >= 0 ? fields.constructor :
- function() {};
- var ancestor = fields.extends || Object;
-
- var descriptor = names.reduce(function(descriptor, key) {
- descriptor[key] = describe(fields, key);
- return descriptor;
- }, {});
-
- var prototype = Object.create(ancestor.prototype, descriptor);
-
- constructor.prototype = prototype;
- prototype.constructor = constructor;
-
- return constructor;
-};
-exports.Class = Class;
-
-},{}],4:[function(_dereq_,module,exports){
-"use strict";
-
-var Class = _dereq_("./class").Class;
-var TypeSystem = _dereq_("./type-system").TypeSystem;
-var values = _dereq_("./util").values;
-var Promise = _dereq_("es6-promise").Promise;
-var MessageEvent = _dereq_("./event").MessageEvent;
-
-var specification = _dereq_("./specification/core.json");
-
-function recoverActorDescriptions(error) {
- console.warn("Failed to fetch protocol specification (see reason below). " +
- "Using a fallback protocal specification!",
- error);
- return _dereq_("./specification/protocol.json");
-}
-
-// Type to represent superviser actor relations to actors they supervise
-// in terms of lifetime management.
-var Supervisor = Class({
- constructor: function(id) {
- this.id = id;
- this.workers = [];
- }
-});
-
-var Telemetry = Class({
- add: function(id, ms) {
- console.log("telemetry::", id, ms)
- }
-});
-
-// Consider making client a root actor.
-
-var Client = Class({
- constructor: function() {
- this.root = null;
- this.telemetry = new Telemetry();
-
- this.setupConnection();
- this.setupLifeManagement();
- this.setupTypeSystem();
- },
-
- setupConnection: function() {
- this.requests = [];
- },
- setupLifeManagement: function() {
- this.cache = Object.create(null);
- this.graph = Object.create(null);
- this.get = this.get.bind(this);
- this.release = this.release.bind(this);
- },
- setupTypeSystem: function() {
- this.typeSystem = new TypeSystem(this);
- this.typeSystem.registerTypes(specification);
- },
-
- connect: function(port) {
- var client = this;
- return new Promise(function(resolve, reject) {
- client.port = port;
- port.onmessage = client.receive.bind(client);
- client.onReady = resolve;
- client.onFail = reject;
-
- port.start();
- });
- },
- send: function(packet) {
- this.port.postMessage(packet);
- },
- request: function(packet) {
- var client = this;
- return new Promise(function(resolve, reject) {
- client.requests.push(packet.to, { resolve: resolve, reject: reject });
- client.send(packet);
- });
- },
-
- receive: function(event) {
- var packet = event.data;
- if (!this.root) {
- if (packet.from !== "root")
- throw Error("Initial packet must be from root");
- if (!("applicationType" in packet))
- throw Error("Initial packet must contain applicationType field");
-
- this.root = this.typeSystem.read("root", null, "root");
- this.root
- .protocolDescription()
- .catch(recoverActorDescriptions)
- .then(this.typeSystem.registerTypes.bind(this.typeSystem))
- .then(this.onReady.bind(this, this.root), this.onFail);
- } else {
- var actor = this.get(packet.from) || this.root;
- var event = actor.events[packet.type];
- if (event) {
- var message = new MessageEvent(packet.type, {
- data: event.read(packet)
- });
- actor.dispatchEvent(message);
- } else {
- var index = this.requests.indexOf(actor.id);
- if (index >= 0) {
- var request = this.requests.splice(index, 2).pop();
- if (packet.error)
- request.reject(packet);
- else
- request.resolve(packet);
- } else {
- console.error(Error("Unexpected packet " + JSON.stringify(packet, 2, 2)),
- packet,
- this.requests.slice(0));
- }
- }
- }
- },
-
- get: function(id) {
- return this.cache[id];
- },
- supervisorOf: function(actor) {
- for (var id in this.graph) {
- if (this.graph[id].indexOf(actor.id) >= 0) {
- return id;
- }
- }
- },
- workersOf: function(actor) {
- return this.graph[actor.id];
- },
- supervise: function(actor, worker) {
- var workers = this.workersOf(actor)
- if (workers.indexOf(worker.id) < 0) {
- workers.push(worker.id);
- }
- },
- unsupervise: function(actor, worker) {
- var workers = this.workersOf(actor);
- var index = workers.indexOf(worker.id)
- if (index >= 0) {
- workers.splice(index, 1)
- }
- },
-
- register: function(actor) {
- var registered = this.get(actor.id);
- if (!registered) {
- this.cache[actor.id] = actor;
- this.graph[actor.id] = [];
- } else if (registered !== actor) {
- throw new Error("Different actor with same id is already registered");
- }
- },
- unregister: function(actor) {
- if (this.get(actor.id)) {
- delete this.cache[actor.id];
- delete this.graph[actor.id];
- }
- },
-
- release: function(actor) {
- var supervisor = this.supervisorOf(actor);
- if (supervisor)
- this.unsupervise(supervisor, actor);
-
- var workers = this.workersOf(actor)
-
- if (workers) {
- workers.map(this.get).forEach(this.release)
- }
- this.unregister(actor);
- }
-});
-exports.Client = Client;
-
-},{"./class":3,"./event":5,"./specification/core.json":23,"./specification/protocol.json":24,"./type-system":25,"./util":26,"es6-promise":2}],5:[function(_dereq_,module,exports){
-"use strict";
-
-var Symbol = _dereq_("es6-symbol")
-var EventEmitter = _dereq_("events").EventEmitter;
-var Class = _dereq_("./class").Class;
-
-var $bound = Symbol("EventTarget/handleEvent");
-var $emitter = Symbol("EventTarget/emitter");
-
-function makeHandler(handler) {
- return function(event) {
- handler.handleEvent(event);
- }
-}
-
-var EventTarget = Class({
- constructor: function() {
- Object.defineProperty(this, $emitter, {
- enumerable: false,
- configurable: true,
- writable: true,
- value: new EventEmitter()
- });
- },
- addEventListener: function(type, handler) {
- if (typeof(handler) === "function") {
- this[$emitter].on(type, handler);
- }
- else if (handler && typeof(handler) === "object") {
- if (!handler[$bound]) handler[$bound] = makeHandler(handler);
- this[$emitter].on(type, handler[$bound]);
- }
- },
- removeEventListener: function(type, handler) {
- if (typeof(handler) === "function")
- this[$emitter].removeListener(type, handler);
- else if (handler && handler[$bound])
- this[$emitter].removeListener(type, handler[$bound]);
- },
- dispatchEvent: function(event) {
- event.target = this;
- this[$emitter].emit(event.type, event);
- }
-});
-exports.EventTarget = EventTarget;
-
-var MessageEvent = Class({
- constructor: function(type, options) {
- options = options || {};
- this.type = type;
- this.data = options.data === void(0) ? null : options.data;
-
- this.lastEventId = options.lastEventId || "";
- this.origin = options.origin || "";
- this.bubbles = options.bubbles || false;
- this.cancelable = options.cancelable || false;
- },
- source: null,
- ports: null,
- preventDefault: function() {
- },
- stopPropagation: function() {
- },
- stopImmediatePropagation: function() {
- }
-});
-exports.MessageEvent = MessageEvent;
-
-},{"./class":3,"es6-symbol":7,"events":6}],6:[function(_dereq_,module,exports){
-// Copyright Joyent, Inc. and other Node contributors.
-//
-// Permission is hereby granted, free of charge, to any person obtaining a
-// copy of this software and associated documentation files (the
-// "Software"), to deal in the Software without restriction, including
-// without limitation the rights to use, copy, modify, merge, publish,
-// distribute, sublicense, and/or sell copies of the Software, and to permit
-// persons to whom the Software is furnished to do so, subject to the
-// following conditions:
-//
-// The above copyright notice and this permission notice shall be included
-// in all copies or substantial portions of the Software.
-//
-// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
-// OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
-// MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
-// NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
-// DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR
-// OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
-// USE OR OTHER DEALINGS IN THE SOFTWARE.
-
-function EventEmitter() {
- this._events = this._events || {};
- this._maxListeners = this._maxListeners || undefined;
-}
-module.exports = EventEmitter;
-
-// Backwards-compat with node 0.10.x
-EventEmitter.EventEmitter = EventEmitter;
-
-EventEmitter.prototype._events = undefined;
-EventEmitter.prototype._maxListeners = undefined;
-
-// By default EventEmitters will print a warning if more than 10 listeners are
-// added to it. This is a useful default which helps finding memory leaks.
-EventEmitter.defaultMaxListeners = 10;
-
-// Obviously not all Emitters should be limited to 10. This function allows
-// that to be increased. Set to zero for unlimited.
-EventEmitter.prototype.setMaxListeners = function(n) {
- if (!isNumber(n) || n < 0 || isNaN(n))
- throw TypeError('n must be a positive number');
- this._maxListeners = n;
- return this;
-};
-
-EventEmitter.prototype.emit = function(type) {
- var er, handler, len, args, i, listeners;
-
- if (!this._events)
- this._events = {};
-
- // If there is no 'error' event listener then throw.
- if (type === 'error') {
- if (!this._events.error ||
- (isObject(this._events.error) && !this._events.error.length)) {
- er = arguments[1];
- if (er instanceof Error) {
- throw er; // Unhandled 'error' event
- } else {
- throw TypeError('Uncaught, unspecified "error" event.');
- }
- return false;
- }
- }
-
- handler = this._events[type];
-
- if (isUndefined(handler))
- return false;
-
- if (isFunction(handler)) {
- switch (arguments.length) {
- // fast cases
- case 1:
- handler.call(this);
- break;
- case 2:
- handler.call(this, arguments[1]);
- break;
- case 3:
- handler.call(this, arguments[1], arguments[2]);
- break;
- // slower
- default:
- len = arguments.length;
- args = new Array(len - 1);
- for (i = 1; i < len; i++)
- args[i - 1] = arguments[i];
- handler.apply(this, args);
- }
- } else if (isObject(handler)) {
- len = arguments.length;
- args = new Array(len - 1);
- for (i = 1; i < len; i++)
- args[i - 1] = arguments[i];
-
- listeners = handler.slice();
- len = listeners.length;
- for (i = 0; i < len; i++)
- listeners[i].apply(this, args);
- }
-
- return true;
-};
-
-EventEmitter.prototype.addListener = function(type, listener) {
- var m;
-
- if (!isFunction(listener))
- throw TypeError('listener must be a function');
-
- if (!this._events)
- this._events = {};
-
- // To avoid recursion in the case that type === "newListener"! Before
- // adding it to the listeners, first emit "newListener".
- if (this._events.newListener)
- this.emit('newListener', type,
- isFunction(listener.listener) ?
- listener.listener : listener);
-
- if (!this._events[type])
- // Optimize the case of one listener. Don't need the extra array object.
- this._events[type] = listener;
- else if (isObject(this._events[type]))
- // If we've already got an array, just append.
- this._events[type].push(listener);
- else
- // Adding the second element, need to change to array.
- this._events[type] = [this._events[type], listener];
-
- // Check for listener leak
- if (isObject(this._events[type]) && !this._events[type].warned) {
- var m;
- if (!isUndefined(this._maxListeners)) {
- m = this._maxListeners;
- } else {
- m = EventEmitter.defaultMaxListeners;
- }
-
- if (m && m > 0 && this._events[type].length > m) {
- this._events[type].warned = true;
- console.error('(node) warning: possible EventEmitter memory ' +
- 'leak detected. %d listeners added. ' +
- 'Use emitter.setMaxListeners() to increase limit.',
- this._events[type].length);
- if (typeof console.trace === 'function') {
- // not supported in IE 10
- console.trace();
- }
- }
- }
-
- return this;
-};
-
-EventEmitter.prototype.on = EventEmitter.prototype.addListener;
-
-EventEmitter.prototype.once = function(type, listener) {
- if (!isFunction(listener))
- throw TypeError('listener must be a function');
-
- var fired = false;
-
- function g() {
- this.removeListener(type, g);
-
- if (!fired) {
- fired = true;
- listener.apply(this, arguments);
- }
- }
-
- g.listener = listener;
- this.on(type, g);
-
- return this;
-};
-
-// emits a 'removeListener' event iff the listener was removed
-EventEmitter.prototype.removeListener = function(type, listener) {
- var list, position, length, i;
-
- if (!isFunction(listener))
- throw TypeError('listener must be a function');
-
- if (!this._events || !this._events[type])
- return this;
-
- list = this._events[type];
- length = list.length;
- position = -1;
-
- if (list === listener ||
- (isFunction(list.listener) && list.listener === listener)) {
- delete this._events[type];
- if (this._events.removeListener)
- this.emit('removeListener', type, listener);
-
- } else if (isObject(list)) {
- for (i = length; i-- > 0;) {
- if (list[i] === listener ||
- (list[i].listener && list[i].listener === listener)) {
- position = i;
- break;
- }
- }
-
- if (position < 0)
- return this;
-
- if (list.length === 1) {
- list.length = 0;
- delete this._events[type];
- } else {
- list.splice(position, 1);
- }
-
- if (this._events.removeListener)
- this.emit('removeListener', type, listener);
- }
-
- return this;
-};
-
-EventEmitter.prototype.removeAllListeners = function(type) {
- var key, listeners;
-
- if (!this._events)
- return this;
-
- // not listening for removeListener, no need to emit
- if (!this._events.removeListener) {
- if (arguments.length === 0)
- this._events = {};
- else if (this._events[type])
- delete this._events[type];
- return this;
- }
-
- // emit removeListener for all listeners on all events
- if (arguments.length === 0) {
- for (key in this._events) {
- if (key === 'removeListener') continue;
- this.removeAllListeners(key);
- }
- this.removeAllListeners('removeListener');
- this._events = {};
- return this;
- }
-
- listeners = this._events[type];
-
- if (isFunction(listeners)) {
- this.removeListener(type, listeners);
- } else {
- // LIFO order
- while (listeners.length)
- this.removeListener(type, listeners[listeners.length - 1]);
- }
- delete this._events[type];
-
- return this;
-};
-
-EventEmitter.prototype.listeners = function(type) {
- var ret;
- if (!this._events || !this._events[type])
- ret = [];
- else if (isFunction(this._events[type]))
- ret = [this._events[type]];
- else
- ret = this._events[type].slice();
- return ret;
-};
-
-EventEmitter.listenerCount = function(emitter, type) {
- var ret;
- if (!emitter._events || !emitter._events[type])
- ret = 0;
- else if (isFunction(emitter._events[type]))
- ret = 1;
- else
- ret = emitter._events[type].length;
- return ret;
-};
-
-function isFunction(arg) {
- return typeof arg === 'function';
-}
-
-function isNumber(arg) {
- return typeof arg === 'number';
-}
-
-function isObject(arg) {
- return typeof arg === 'object' && arg !== null;
-}
-
-function isUndefined(arg) {
- return arg === void 0;
-}
-
-},{}],7:[function(_dereq_,module,exports){
-'use strict';
-
-module.exports = _dereq_('./is-implemented')() ? Symbol : _dereq_('./polyfill');
-
-},{"./is-implemented":8,"./polyfill":22}],8:[function(_dereq_,module,exports){
-'use strict';
-
-module.exports = function () {
- var symbol;
- if (typeof Symbol !== 'function') return false;
- symbol = Symbol('test symbol');
- try {
- if (String(symbol) !== 'Symbol (test symbol)') return false;
- } catch (e) { return false; }
- if (typeof Symbol.iterator === 'symbol') return true;
-
- // Return 'true' for polyfills
- if (typeof Symbol.isConcatSpreadable !== 'object') return false;
- if (typeof Symbol.isRegExp !== 'object') return false;
- if (typeof Symbol.iterator !== 'object') return false;
- if (typeof Symbol.toPrimitive !== 'object') return false;
- if (typeof Symbol.toStringTag !== 'object') return false;
- if (typeof Symbol.unscopables !== 'object') return false;
-
- return true;
-};
-
-},{}],9:[function(_dereq_,module,exports){
-'use strict';
-
-var assign = _dereq_('es5-ext/object/assign')
- , normalizeOpts = _dereq_('es5-ext/object/normalize-options')
- , isCallable = _dereq_('es5-ext/object/is-callable')
- , contains = _dereq_('es5-ext/string/#/contains')
-
- , d;
-
-d = module.exports = function (dscr, value/*, options*/) {
- var c, e, w, options, desc;
- if ((arguments.length < 2) || (typeof dscr !== 'string')) {
- options = value;
- value = dscr;
- dscr = null;
- } else {
- options = arguments[2];
- }
- if (dscr == null) {
- c = w = true;
- e = false;
- } else {
- c = contains.call(dscr, 'c');
- e = contains.call(dscr, 'e');
- w = contains.call(dscr, 'w');
- }
-
- desc = { value: value, configurable: c, enumerable: e, writable: w };
- return !options ? desc : assign(normalizeOpts(options), desc);
-};
-
-d.gs = function (dscr, get, set/*, options*/) {
- var c, e, options, desc;
- if (typeof dscr !== 'string') {
- options = set;
- set = get;
- get = dscr;
- dscr = null;
- } else {
- options = arguments[3];
- }
- if (get == null) {
- get = undefined;
- } else if (!isCallable(get)) {
- options = get;
- get = set = undefined;
- } else if (set == null) {
- set = undefined;
- } else if (!isCallable(set)) {
- options = set;
- set = undefined;
- }
- if (dscr == null) {
- c = true;
- e = false;
- } else {
- c = contains.call(dscr, 'c');
- e = contains.call(dscr, 'e');
- }
-
- desc = { get: get, set: set, configurable: c, enumerable: e };
- return !options ? desc : assign(normalizeOpts(options), desc);
-};
-
-},{"es5-ext/object/assign":10,"es5-ext/object/is-callable":13,"es5-ext/object/normalize-options":17,"es5-ext/string/#/contains":19}],10:[function(_dereq_,module,exports){
-'use strict';
-
-module.exports = _dereq_('./is-implemented')()
- ? Object.assign
- : _dereq_('./shim');
-
-},{"./is-implemented":11,"./shim":12}],11:[function(_dereq_,module,exports){
-'use strict';
-
-module.exports = function () {
- var assign = Object.assign, obj;
- if (typeof assign !== 'function') return false;
- obj = { foo: 'raz' };
- assign(obj, { bar: 'dwa' }, { trzy: 'trzy' });
- return (obj.foo + obj.bar + obj.trzy) === 'razdwatrzy';
-};
-
-},{}],12:[function(_dereq_,module,exports){
-'use strict';
-
-var keys = _dereq_('../keys')
- , value = _dereq_('../valid-value')
-
- , max = Math.max;
-
-module.exports = function (dest, src/*, …srcn*/) {
- var error, i, l = max(arguments.length, 2), assign;
- dest = Object(value(dest));
- assign = function (key) {
- try { dest[key] = src[key]; } catch (e) {
- if (!error) error = e;
- }
- };
- for (i = 1; i < l; ++i) {
- src = arguments[i];
- keys(src).forEach(assign);
- }
- if (error !== undefined) throw error;
- return dest;
-};
-
-},{"../keys":14,"../valid-value":18}],13:[function(_dereq_,module,exports){
-// Deprecated
-
-'use strict';
-
-module.exports = function (obj) { return typeof obj === 'function'; };
-
-},{}],14:[function(_dereq_,module,exports){
-'use strict';
-
-module.exports = _dereq_('./is-implemented')()
- ? Object.keys
- : _dereq_('./shim');
-
-},{"./is-implemented":15,"./shim":16}],15:[function(_dereq_,module,exports){
-'use strict';
-
-module.exports = function () {
- try {
- Object.keys('primitive');
- return true;
- } catch (e) { return false; }
-};
-
-},{}],16:[function(_dereq_,module,exports){
-'use strict';
-
-var keys = Object.keys;
-
-module.exports = function (object) {
- return keys(object == null ? object : Object(object));
-};
-
-},{}],17:[function(_dereq_,module,exports){
-'use strict';
-
-var assign = _dereq_('./assign')
-
- , forEach = Array.prototype.forEach
- , create = Object.create, getPrototypeOf = Object.getPrototypeOf
-
- , process;
-
-process = function (src, obj) {
- var proto = getPrototypeOf(src);
- return assign(proto ? process(proto, obj) : obj, src);
-};
-
-module.exports = function (options/*, …options*/) {
- var result = create(null);
- forEach.call(arguments, function (options) {
- if (options == null) return;
- process(Object(options), result);
- });
- return result;
-};
-
-},{"./assign":10}],18:[function(_dereq_,module,exports){
-'use strict';
-
-module.exports = function (value) {
- if (value == null) throw new TypeError("Cannot use null or undefined");
- return value;
-};
-
-},{}],19:[function(_dereq_,module,exports){
-'use strict';
-
-module.exports = _dereq_('./is-implemented')()
- ? String.prototype.contains
- : _dereq_('./shim');
-
-},{"./is-implemented":20,"./shim":21}],20:[function(_dereq_,module,exports){
-'use strict';
-
-var str = 'razdwatrzy';
-
-module.exports = function () {
- if (typeof str.contains !== 'function') return false;
- return ((str.contains('dwa') === true) && (str.contains('foo') === false));
-};
-
-},{}],21:[function(_dereq_,module,exports){
-'use strict';
-
-var indexOf = String.prototype.indexOf;
-
-module.exports = function (searchString/*, position*/) {
- return indexOf.call(this, searchString, arguments[1]) > -1;
-};
-
-},{}],22:[function(_dereq_,module,exports){
-'use strict';
-
-var d = _dereq_('d')
-
- , create = Object.create, defineProperties = Object.defineProperties
- , generateName, Symbol;
-
-generateName = (function () {
- var created = create(null);
- return function (desc) {
- var postfix = 0;
- while (created[desc + (postfix || '')]) ++postfix;
- desc += (postfix || '');
- created[desc] = true;
- return '@@' + desc;
- };
-}());
-
-module.exports = Symbol = function (description) {
- var symbol;
- if (this instanceof Symbol) {
- throw new TypeError('TypeError: Symbol is not a constructor');
- }
- symbol = create(Symbol.prototype);
- description = (description === undefined ? '' : String(description));
- return defineProperties(symbol, {
- __description__: d('', description),
- __name__: d('', generateName(description))
- });
-};
-
-Object.defineProperties(Symbol, {
- create: d('', Symbol('create')),
- hasInstance: d('', Symbol('hasInstance')),
- isConcatSpreadable: d('', Symbol('isConcatSpreadable')),
- isRegExp: d('', Symbol('isRegExp')),
- iterator: d('', Symbol('iterator')),
- toPrimitive: d('', Symbol('toPrimitive')),
- toStringTag: d('', Symbol('toStringTag')),
- unscopables: d('', Symbol('unscopables'))
-});
-
-defineProperties(Symbol.prototype, {
- properToString: d(function () {
- return 'Symbol (' + this.__description__ + ')';
- }),
- toString: d('', function () { return this.__name__; })
-});
-Object.defineProperty(Symbol.prototype, Symbol.toPrimitive, d('',
- function (hint) {
- throw new TypeError("Conversion of symbol objects is not allowed");
- }));
-Object.defineProperty(Symbol.prototype, Symbol.toStringTag, d('c', 'Symbol'));
-
-},{"d":9}],23:[function(_dereq_,module,exports){
-module.exports={
- "types": {
- "root": {
- "category": "actor",
- "typeName": "root",
- "methods": [
- {
- "name": "echo",
- "request": {
- "string": { "_arg": 0, "type": "string" }
- },
- "response": {
- "string": { "_retval": "string" }
- }
- },
- {
- "name": "listTabs",
- "request": {},
- "response": { "_retval": "tablist" }
- },
- {
- "name": "protocolDescription",
- "request": {},
- "response": { "_retval": "json" }
- }
- ],
- "events": {
- "tabListChanged": {}
- }
- },
- "tablist": {
- "category": "dict",
- "typeName": "tablist",
- "specializations": {
- "selected": "number",
- "tabs": "array:tab",
- "url": "string",
- "consoleActor": "console",
- "inspectorActor": "inspector",
- "styleSheetsActor": "stylesheets",
- "styleEditorActor": "styleeditor",
- "memoryActor": "memory",
- "eventLoopLagActor": "eventLoopLag",
- "preferenceActor": "preference",
- "deviceActor": "device",
-
- "profilerActor": "profiler",
- "chromeDebugger": "chromeDebugger",
- "webappsActor": "webapps"
- }
- },
- "tab": {
- "category": "actor",
- "typeName": "tab",
- "fields": {
- "title": "string",
- "url": "string",
- "outerWindowID": "number",
- "inspectorActor": "inspector",
- "callWatcherActor": "call-watcher",
- "canvasActor": "canvas",
- "webglActor": "webgl",
- "webaudioActor": "webaudio",
- "storageActor": "storage",
- "gcliActor": "gcli",
- "memoryActor": "memory",
- "eventLoopLag": "eventLoopLag",
- "styleSheetsActor": "stylesheets",
- "styleEditorActor": "styleeditor",
-
- "consoleActor": "console",
- "traceActor": "trace"
- },
- "methods": [
- {
- "name": "attach",
- "request": {},
- "response": { "_retval": "json" }
- }
- ],
- "events": {
- "tabNavigated": {
- "typeName": "tabNavigated"
- }
- }
- },
- "console": {
- "category": "actor",
- "typeName": "console",
- "methods": [
- {
- "name": "evaluateJS",
- "request": {
- "text": {
- "_option": 0,
- "type": "string"
- },
- "url": {
- "_option": 1,
- "type": "string"
- },
- "bindObjectActor": {
- "_option": 2,
- "type": "nullable:string"
- },
- "frameActor": {
- "_option": 2,
- "type": "nullable:string"
- },
- "selectedNodeActor": {
- "_option": 2,
- "type": "nullable:string"
- }
- },
- "response": {
- "_retval": "evaluatejsresponse"
- }
- }
- ],
- "events": {}
- },
- "evaluatejsresponse": {
- "category": "dict",
- "typeName": "evaluatejsresponse",
- "specializations": {
- "result": "object",
- "exception": "object",
- "exceptionMessage": "string",
- "input": "string"
- }
- },
- "object": {
- "category": "actor",
- "typeName": "object",
- "methods": [
- {
- "name": "property",
- "request": {
- "name": {
- "_arg": 0,
- "type": "string"
- }
- },
- "response": {
- "descriptor": {
- "_retval": "json"
- }
- }
- }
- ]
- }
- }
-}
-
-},{}],24:[function(_dereq_,module,exports){
-module.exports={
- "types": {
- "longstractor": {
- "category": "actor",
- "typeName": "longstractor",
- "methods": [
- {
- "name": "substring",
- "request": {
- "type": "substring",
- "start": {
- "_arg": 0,
- "type": "primitive"
- },
- "end": {
- "_arg": 1,
- "type": "primitive"
- }
- },
- "response": {
- "substring": {
- "_retval": "primitive"
- }
- }
- },
- {
- "name": "release",
- "release": true,
- "request": {
- "type": "release"
- },
- "response": {}
- }
- ],
- "events": {}
- },
- "stylesheet": {
- "category": "actor",
- "typeName": "stylesheet",
- "methods": [
- {
- "name": "toggleDisabled",
- "request": {
- "type": "toggleDisabled"
- },
- "response": {
- "disabled": {
- "_retval": "boolean"
- }
- }
- },
- {
- "name": "getText",
- "request": {
- "type": "getText"
- },
- "response": {
- "text": {
- "_retval": "longstring"
- }
- }
- },
- {
- "name": "getOriginalSources",
- "request": {
- "type": "getOriginalSources"
- },
- "response": {
- "originalSources": {
- "_retval": "nullable:array:originalsource"
- }
- }
- },
- {
- "name": "getOriginalLocation",
- "request": {
- "type": "getOriginalLocation",
- "line": {
- "_arg": 0,
- "type": "number"
- },
- "column": {
- "_arg": 1,
- "type": "number"
- }
- },
- "response": {
- "_retval": "originallocationresponse"
- }
- },
- {
- "name": "update",
- "request": {
- "type": "update",
- "text": {
- "_arg": 0,
- "type": "string"
- },
- "transition": {
- "_arg": 1,
- "type": "boolean"
- }
- },
- "response": {}
- }
- ],
- "events": {
- "property-change": {
- "type": "propertyChange",
- "property": {
- "_arg": 0,
- "type": "string"
- },
- "value": {
- "_arg": 1,
- "type": "json"
- }
- },
- "style-applied": {
- "type": "styleApplied"
- }
- }
- },
- "originalsource": {
- "category": "actor",
- "typeName": "originalsource",
- "methods": [
- {
- "name": "getText",
- "request": {
- "type": "getText"
- },
- "response": {
- "text": {
- "_retval": "longstring"
- }
- }
- }
- ],
- "events": {}
- },
- "stylesheets": {
- "category": "actor",
- "typeName": "stylesheets",
- "methods": [
- {
- "name": "getStyleSheets",
- "request": {
- "type": "getStyleSheets"
- },
- "response": {
- "styleSheets": {
- "_retval": "array:stylesheet"
- }
- }
- },
- {
- "name": "addStyleSheet",
- "request": {
- "type": "addStyleSheet",
- "text": {
- "_arg": 0,
- "type": "string"
- }
- },
- "response": {
- "styleSheet": {
- "_retval": "stylesheet"
- }
- }
- }
- ],
- "events": {}
- },
- "originallocationresponse": {
- "category": "dict",
- "typeName": "originallocationresponse",
- "specializations": {
- "source": "string",
- "line": "number",
- "column": "number"
- }
- },
- "domnode": {
- "category": "actor",
- "typeName": "domnode",
- "methods": [
- {
- "name": "getNodeValue",
- "request": {
- "type": "getNodeValue"
- },
- "response": {
- "value": {
- "_retval": "longstring"
- }
- }
- },
- {
- "name": "setNodeValue",
- "request": {
- "type": "setNodeValue",
- "value": {
- "_arg": 0,
- "type": "primitive"
- }
- },
- "response": {}
- },
- {
- "name": "getImageData",
- "request": {
- "type": "getImageData",
- "maxDim": {
- "_arg": 0,
- "type": "nullable:number"
- }
- },
- "response": {
- "_retval": "imageData"
- }
- },
- {
- "name": "modifyAttributes",
- "request": {
- "type": "modifyAttributes",
- "modifications": {
- "_arg": 0,
- "type": "array:json"
- }
- },
- "response": {}
- }
- ],
- "events": {}
- },
- "appliedstyle": {
- "category": "dict",
- "typeName": "appliedstyle",
- "specializations": {
- "rule": "domstylerule#actorid",
- "inherited": "nullable:domnode#actorid"
- }
- },
- "matchedselector": {
- "category": "dict",
- "typeName": "matchedselector",
- "specializations": {
- "rule": "domstylerule#actorid",
- "selector": "string",
- "value": "string",
- "status": "number"
- }
- },
- "matchedselectorresponse": {
- "category": "dict",
- "typeName": "matchedselectorresponse",
- "specializations": {
- "rules": "array:domstylerule",
- "sheets": "array:stylesheet",
- "matched": "array:matchedselector"
- }
- },
- "appliedStylesReturn": {
- "category": "dict",
- "typeName": "appliedStylesReturn",
- "specializations": {
- "entries": "array:appliedstyle",
- "rules": "array:domstylerule",
- "sheets": "array:stylesheet"
- }
- },
- "pagestyle": {
- "category": "actor",
- "typeName": "pagestyle",
- "methods": [
- {
- "name": "getComputed",
- "request": {
- "type": "getComputed",
- "node": {
- "_arg": 0,
- "type": "domnode"
- },
- "markMatched": {
- "_option": 1,
- "type": "boolean"
- },
- "onlyMatched": {
- "_option": 1,
- "type": "boolean"
- },
- "filter": {
- "_option": 1,
- "type": "string"
- }
- },
- "response": {
- "computed": {
- "_retval": "json"
- }
- }
- },
- {
- "name": "getMatchedSelectors",
- "request": {
- "type": "getMatchedSelectors",
- "node": {
- "_arg": 0,
- "type": "domnode"
- },
- "property": {
- "_arg": 1,
- "type": "string"
- },
- "filter": {
- "_option": 2,
- "type": "string"
- }
- },
- "response": {
- "_retval": "matchedselectorresponse"
- }
- },
- {
- "name": "getApplied",
- "request": {
- "type": "getApplied",
- "node": {
- "_arg": 0,
- "type": "domnode"
- },
- "inherited": {
- "_option": 1,
- "type": "boolean"
- },
- "matchedSelectors": {
- "_option": 1,
- "type": "boolean"
- },
- "filter": {
- "_option": 1,
- "type": "string"
- }
- },
- "response": {
- "_retval": "appliedStylesReturn"
- }
- },
- {
- "name": "getLayout",
- "request": {
- "type": "getLayout",
- "node": {
- "_arg": 0,
- "type": "domnode"
- },
- "autoMargins": {
- "_option": 1,
- "type": "boolean"
- }
- },
- "response": {
- "_retval": "json"
- }
- }
- ],
- "events": {}
- },
- "domstylerule": {
- "category": "actor",
- "typeName": "domstylerule",
- "methods": [
- {
- "name": "modifyProperties",
- "request": {
- "type": "modifyProperties",
- "modifications": {
- "_arg": 0,
- "type": "array:json"
- }
- },
- "response": {
- "rule": {
- "_retval": "domstylerule"
- }
- }
- }
- ],
- "events": {}
- },
- "highlighter": {
- "category": "actor",
- "typeName": "highlighter",
- "methods": [
- {
- "name": "showBoxModel",
- "request": {
- "type": "showBoxModel",
- "node": {
- "_arg": 0,
- "type": "domnode"
- },
- "region": {
- "_option": 1,
- "type": "primitive"
- }
- },
- "response": {}
- },
- {
- "name": "hideBoxModel",
- "request": {
- "type": "hideBoxModel"
- },
- "response": {}
- },
- {
- "name": "pick",
- "request": {
- "type": "pick"
- },
- "response": {}
- },
- {
- "name": "cancelPick",
- "request": {
- "type": "cancelPick"
- },
- "response": {}
- }
- ],
- "events": {}
- },
- "imageData": {
- "category": "dict",
- "typeName": "imageData",
- "specializations": {
- "data": "nullable:longstring",
- "size": "json"
- }
- },
- "disconnectedNode": {
- "category": "dict",
- "typeName": "disconnectedNode",
- "specializations": {
- "node": "domnode",
- "newParents": "array:domnode"
- }
- },
- "disconnectedNodeArray": {
- "category": "dict",
- "typeName": "disconnectedNodeArray",
- "specializations": {
- "nodes": "array:domnode",
- "newParents": "array:domnode"
- }
- },
- "dommutation": {
- "category": "dict",
- "typeName": "dommutation",
- "specializations": {}
- },
- "domnodelist": {
- "category": "actor",
- "typeName": "domnodelist",
- "methods": [
- {
- "name": "item",
- "request": {
- "type": "item",
- "item": {
- "_arg": 0,
- "type": "primitive"
- }
- },
- "response": {
- "_retval": "disconnectedNode"
- }
- },
- {
- "name": "items",
- "request": {
- "type": "items",
- "start": {
- "_arg": 0,
- "type": "nullable:number"
- },
- "end": {
- "_arg": 1,
- "type": "nullable:number"
- }
- },
- "response": {
- "_retval": "disconnectedNodeArray"
- }
- },
- {
- "name": "release",
- "release": true,
- "request": {
- "type": "release"
- },
- "response": {}
- }
- ],
- "events": {}
- },
- "domtraversalarray": {
- "category": "dict",
- "typeName": "domtraversalarray",
- "specializations": {
- "nodes": "array:domnode"
- }
- },
- "domwalker": {
- "category": "actor",
- "typeName": "domwalker",
- "methods": [
- {
- "name": "release",
- "release": true,
- "request": {
- "type": "release"
- },
- "response": {}
- },
- {
- "name": "pick",
- "request": {
- "type": "pick"
- },
- "response": {
- "_retval": "disconnectedNode"
- }
- },
- {
- "name": "cancelPick",
- "request": {
- "type": "cancelPick"
- },
- "response": {}
- },
- {
- "name": "highlight",
- "request": {
- "type": "highlight",
- "node": {
- "_arg": 0,
- "type": "nullable:domnode"
- }
- },
- "response": {}
- },
- {
- "name": "document",
- "request": {
- "type": "document",
- "node": {
- "_arg": 0,
- "type": "nullable:domnode"
- }
- },
- "response": {
- "node": {
- "_retval": "domnode"
- }
- }
- },
- {
- "name": "documentElement",
- "request": {
- "type": "documentElement",
- "node": {
- "_arg": 0,
- "type": "nullable:domnode"
- }
- },
- "response": {
- "node": {
- "_retval": "domnode"
- }
- }
- },
- {
- "name": "parents",
- "request": {
- "type": "parents",
- "node": {
- "_arg": 0,
- "type": "domnode"
- },
- "sameDocument": {
- "_option": 1,
- "type": "primitive"
- }
- },
- "response": {
- "nodes": {
- "_retval": "array:domnode"
- }
- }
- },
- {
- "name": "retainNode",
- "request": {
- "type": "retainNode",
- "node": {
- "_arg": 0,
- "type": "domnode"
- }
- },
- "response": {}
- },
- {
- "name": "unretainNode",
- "request": {
- "type": "unretainNode",
- "node": {
- "_arg": 0,
- "type": "domnode"
- }
- },
- "response": {}
- },
- {
- "name": "releaseNode",
- "request": {
- "type": "releaseNode",
- "node": {
- "_arg": 0,
- "type": "domnode"
- },
- "force": {
- "_option": 1,
- "type": "primitive"
- }
- },
- "response": {}
- },
- {
- "name": "children",
- "request": {
- "type": "children",
- "node": {
- "_arg": 0,
- "type": "domnode"
- },
- "maxNodes": {
- "_option": 1,
- "type": "primitive"
- },
- "center": {
- "_option": 1,
- "type": "domnode"
- },
- "start": {
- "_option": 1,
- "type": "domnode"
- },
- "whatToShow": {
- "_option": 1,
- "type": "primitive"
- }
- },
- "response": {
- "_retval": "domtraversalarray"
- }
- },
- {
- "name": "siblings",
- "request": {
- "type": "siblings",
- "node": {
- "_arg": 0,
- "type": "domnode"
- },
- "maxNodes": {
- "_option": 1,
- "type": "primitive"
- },
- "center": {
- "_option": 1,
- "type": "domnode"
- },
- "start": {
- "_option": 1,
- "type": "domnode"
- },
- "whatToShow": {
- "_option": 1,
- "type": "primitive"
- }
- },
- "response": {
- "_retval": "domtraversalarray"
- }
- },
- {
- "name": "nextSibling",
- "request": {
- "type": "nextSibling",
- "node": {
- "_arg": 0,
- "type": "domnode"
- },
- "whatToShow": {
- "_option": 1,
- "type": "primitive"
- }
- },
- "response": {
- "node": {
- "_retval": "nullable:domnode"
- }
- }
- },
- {
- "name": "previousSibling",
- "request": {
- "type": "previousSibling",
- "node": {
- "_arg": 0,
- "type": "domnode"
- },
- "whatToShow": {
- "_option": 1,
- "type": "primitive"
- }
- },
- "response": {
- "node": {
- "_retval": "nullable:domnode"
- }
- }
- },
- {
- "name": "querySelector",
- "request": {
- "type": "querySelector",
- "node": {
- "_arg": 0,
- "type": "domnode"
- },
- "selector": {
- "_arg": 1,
- "type": "primitive"
- }
- },
- "response": {
- "_retval": "disconnectedNode"
- }
- },
- {
- "name": "querySelectorAll",
- "request": {
- "type": "querySelectorAll",
- "node": {
- "_arg": 0,
- "type": "domnode"
- },
- "selector": {
- "_arg": 1,
- "type": "primitive"
- }
- },
- "response": {
- "list": {
- "_retval": "domnodelist"
- }
- }
- },
- {
- "name": "getSuggestionsForQuery",
- "request": {
- "type": "getSuggestionsForQuery",
- "query": {
- "_arg": 0,
- "type": "primitive"
- },
- "completing": {
- "_arg": 1,
- "type": "primitive"
- },
- "selectorState": {
- "_arg": 2,
- "type": "primitive"
- }
- },
- "response": {
- "list": {
- "_retval": "array:array:string"
- }
- }
- },
- {
- "name": "addPseudoClassLock",
- "request": {
- "type": "addPseudoClassLock",
- "node": {
- "_arg": 0,
- "type": "domnode"
- },
- "pseudoClass": {
- "_arg": 1,
- "type": "primitive"
- },
- "parents": {
- "_option": 2,
- "type": "primitive"
- }
- },
- "response": {}
- },
- {
- "name": "hideNode",
- "request": {
- "type": "hideNode",
- "node": {
- "_arg": 0,
- "type": "domnode"
- }
- },
- "response": {}
- },
- {
- "name": "unhideNode",
- "request": {
- "type": "unhideNode",
- "node": {
- "_arg": 0,
- "type": "domnode"
- }
- },
- "response": {}
- },
- {
- "name": "removePseudoClassLock",
- "request": {
- "type": "removePseudoClassLock",
- "node": {
- "_arg": 0,
- "type": "domnode"
- },
- "pseudoClass": {
- "_arg": 1,
- "type": "primitive"
- },
- "parents": {
- "_option": 2,
- "type": "primitive"
- }
- },
- "response": {}
- },
- {
- "name": "clearPseudoClassLocks",
- "request": {
- "type": "clearPseudoClassLocks",
- "node": {
- "_arg": 0,
- "type": "nullable:domnode"
- }
- },
- "response": {}
- },
- {
- "name": "innerHTML",
- "request": {
- "type": "innerHTML",
- "node": {
- "_arg": 0,
- "type": "domnode"
- }
- },
- "response": {
- "value": {
- "_retval": "longstring"
- }
- }
- },
- {
- "name": "outerHTML",
- "request": {
- "type": "outerHTML",
- "node": {
- "_arg": 0,
- "type": "domnode"
- }
- },
- "response": {
- "value": {
- "_retval": "longstring"
- }
- }
- },
- {
- "name": "setOuterHTML",
- "request": {
- "type": "setOuterHTML",
- "node": {
- "_arg": 0,
- "type": "domnode"
- },
- "value": {
- "_arg": 1,
- "type": "primitive"
- }
- },
- "response": {}
- },
- {
- "name": "removeNode",
- "request": {
- "type": "removeNode",
- "node": {
- "_arg": 0,
- "type": "domnode"
- }
- },
- "response": {
- "nextSibling": {
- "_retval": "nullable:domnode"
- }
- }
- },
- {
- "name": "insertBefore",
- "request": {
- "type": "insertBefore",
- "node": {
- "_arg": 0,
- "type": "domnode"
- },
- "parent": {
- "_arg": 1,
- "type": "domnode"
- },
- "sibling": {
- "_arg": 2,
- "type": "nullable:domnode"
- }
- },
- "response": {}
- },
- {
- "name": "getMutations",
- "request": {
- "type": "getMutations",
- "cleanup": {
- "_option": 0,
- "type": "primitive"
- }
- },
- "response": {
- "mutations": {
- "_retval": "array:dommutation"
- }
- }
- },
- {
- "name": "isInDOMTree",
- "request": {
- "type": "isInDOMTree",
- "node": {
- "_arg": 0,
- "type": "domnode"
- }
- },
- "response": {
- "attached": {
- "_retval": "boolean"
- }
- }
- },
- {
- "name": "getNodeActorFromObjectActor",
- "request": {
- "type": "getNodeActorFromObjectActor",
- "objectActorID": {
- "_arg": 0,
- "type": "string"
- }
- },
- "response": {
- "nodeFront": {
- "_retval": "nullable:disconnectedNode"
- }
- }
- }
- ],
- "events": {
- "new-mutations": {
- "type": "newMutations"
- },
- "picker-node-picked": {
- "type": "pickerNodePicked",
- "node": {
- "_arg": 0,
- "type": "disconnectedNode"
- }
- },
- "picker-node-hovered": {
- "type": "pickerNodeHovered",
- "node": {
- "_arg": 0,
- "type": "disconnectedNode"
- }
- },
- "highlighter-ready": {
- "type": "highlighter-ready"
- },
- "highlighter-hide": {
- "type": "highlighter-hide"
- }
- }
- },
- "inspector": {
- "category": "actor",
- "typeName": "inspector",
- "methods": [
- {
- "name": "getWalker",
- "request": {
- "type": "getWalker"
- },
- "response": {
- "walker": {
- "_retval": "domwalker"
- }
- }
- },
- {
- "name": "getPageStyle",
- "request": {
- "type": "getPageStyle"
- },
- "response": {
- "pageStyle": {
- "_retval": "pagestyle"
- }
- }
- },
- {
- "name": "getHighlighter",
- "request": {
- "type": "getHighlighter",
- "autohide": {
- "_arg": 0,
- "type": "boolean"
- }
- },
- "response": {
- "highligter": {
- "_retval": "highlighter"
- }
- }
- },
- {
- "name": "getImageDataFromURL",
- "request": {
- "type": "getImageDataFromURL",
- "url": {
- "_arg": 0,
- "type": "primitive"
- },
- "maxDim": {
- "_arg": 1,
- "type": "nullable:number"
- }
- },
- "response": {
- "_retval": "imageData"
- }
- }
- ],
- "events": {}
- },
- "call-stack-item": {
- "category": "dict",
- "typeName": "call-stack-item",
- "specializations": {
- "name": "string",
- "file": "string",
- "line": "number"
- }
- },
- "call-details": {
- "category": "dict",
- "typeName": "call-details",
- "specializations": {
- "type": "number",
- "name": "string",
- "stack": "array:call-stack-item"
- }
- },
- "function-call": {
- "category": "actor",
- "typeName": "function-call",
- "methods": [
- {
- "name": "getDetails",
- "request": {
- "type": "getDetails"
- },
- "response": {
- "info": {
- "_retval": "call-details"
- }
- }
- }
- ],
- "events": {}
- },
- "call-watcher": {
- "category": "actor",
- "typeName": "call-watcher",
- "methods": [
- {
- "name": "setup",
- "oneway": true,
- "request": {
- "type": "setup",
- "tracedGlobals": {
- "_option": 0,
- "type": "nullable:array:string"
- },
- "tracedFunctions": {
- "_option": 0,
- "type": "nullable:array:string"
- },
- "startRecording": {
- "_option": 0,
- "type": "boolean"
- },
- "performReload": {
- "_option": 0,
- "type": "boolean"
- }
- },
- "response": {}
- },
- {
- "name": "finalize",
- "oneway": true,
- "request": {
- "type": "finalize"
- },
- "response": {}
- },
- {
- "name": "isRecording",
- "request": {
- "type": "isRecording"
- },
- "response": {
- "_retval": "boolean"
- }
- },
- {
- "name": "resumeRecording",
- "request": {
- "type": "resumeRecording"
- },
- "response": {}
- },
- {
- "name": "pauseRecording",
- "request": {
- "type": "pauseRecording"
- },
- "response": {
- "calls": {
- "_retval": "array:function-call"
- }
- }
- },
- {
- "name": "eraseRecording",
- "request": {
- "type": "eraseRecording"
- },
- "response": {}
- }
- ],
- "events": {}
- },
- "snapshot-image": {
- "category": "dict",
- "typeName": "snapshot-image",
- "specializations": {
- "index": "number",
- "width": "number",
- "height": "number",
- "flipped": "boolean",
- "pixels": "uint32-array"
- }
- },
- "snapshot-overview": {
- "category": "dict",
- "typeName": "snapshot-overview",
- "specializations": {
- "calls": "array:function-call",
- "thumbnails": "array:snapshot-image",
- "screenshot": "snapshot-image"
- }
- },
- "frame-snapshot": {
- "category": "actor",
- "typeName": "frame-snapshot",
- "methods": [
- {
- "name": "getOverview",
- "request": {
- "type": "getOverview"
- },
- "response": {
- "overview": {
- "_retval": "snapshot-overview"
- }
- }
- },
- {
- "name": "generateScreenshotFor",
- "request": {
- "type": "generateScreenshotFor",
- "call": {
- "_arg": 0,
- "type": "function-call"
- }
- },
- "response": {
- "screenshot": {
- "_retval": "snapshot-image"
- }
- }
- }
- ],
- "events": {}
- },
- "canvas": {
- "category": "actor",
- "typeName": "canvas",
- "methods": [
- {
- "name": "setup",
- "oneway": true,
- "request": {
- "type": "setup",
- "reload": {
- "_option": 0,
- "type": "boolean"
- }
- },
- "response": {}
- },
- {
- "name": "finalize",
- "oneway": true,
- "request": {
- "type": "finalize"
- },
- "response": {}
- },
- {
- "name": "isInitialized",
- "request": {
- "type": "isInitialized"
- },
- "response": {
- "initialized": {
- "_retval": "boolean"
- }
- }
- },
- {
- "name": "recordAnimationFrame",
- "request": {
- "type": "recordAnimationFrame"
- },
- "response": {
- "snapshot": {
- "_retval": "frame-snapshot"
- }
- }
- }
- ],
- "events": {}
- },
- "gl-shader": {
- "category": "actor",
- "typeName": "gl-shader",
- "methods": [
- {
- "name": "getText",
- "request": {
- "type": "getText"
- },
- "response": {
- "text": {
- "_retval": "string"
- }
- }
- },
- {
- "name": "compile",
- "request": {
- "type": "compile",
- "text": {
- "_arg": 0,
- "type": "string"
- }
- },
- "response": {
- "error": {
- "_retval": "nullable:json"
- }
- }
- }
- ],
- "events": {}
- },
- "gl-program": {
- "category": "actor",
- "typeName": "gl-program",
- "methods": [
- {
- "name": "getVertexShader",
- "request": {
- "type": "getVertexShader"
- },
- "response": {
- "shader": {
- "_retval": "gl-shader"
- }
- }
- },
- {
- "name": "getFragmentShader",
- "request": {
- "type": "getFragmentShader"
- },
- "response": {
- "shader": {
- "_retval": "gl-shader"
- }
- }
- },
- {
- "name": "highlight",
- "oneway": true,
- "request": {
- "type": "highlight",
- "tint": {
- "_arg": 0,
- "type": "array:number"
- }
- },
- "response": {}
- },
- {
- "name": "unhighlight",
- "oneway": true,
- "request": {
- "type": "unhighlight"
- },
- "response": {}
- },
- {
- "name": "blackbox",
- "oneway": true,
- "request": {
- "type": "blackbox"
- },
- "response": {}
- },
- {
- "name": "unblackbox",
- "oneway": true,
- "request": {
- "type": "unblackbox"
- },
- "response": {}
- }
- ],
- "events": {}
- },
- "webgl": {
- "category": "actor",
- "typeName": "webgl",
- "methods": [
- {
- "name": "setup",
- "oneway": true,
- "request": {
- "type": "setup",
- "reload": {
- "_option": 0,
- "type": "boolean"
- }
- },
- "response": {}
- },
- {
- "name": "finalize",
- "oneway": true,
- "request": {
- "type": "finalize"
- },
- "response": {}
- },
- {
- "name": "getPrograms",
- "request": {
- "type": "getPrograms"
- },
- "response": {
- "programs": {
- "_retval": "array:gl-program"
- }
- }
- }
- ],
- "events": {
- "program-linked": {
- "type": "programLinked",
- "program": {
- "_arg": 0,
- "type": "gl-program"
- }
- }
- }
- },
- "audionode": {
- "category": "actor",
- "typeName": "audionode",
- "methods": [
- {
- "name": "getType",
- "request": {
- "type": "getType"
- },
- "response": {
- "type": {
- "_retval": "string"
- }
- }
- },
- {
- "name": "isSource",
- "request": {
- "type": "isSource"
- },
- "response": {
- "source": {
- "_retval": "boolean"
- }
- }
- },
- {
- "name": "setParam",
- "request": {
- "type": "setParam",
- "param": {
- "_arg": 0,
- "type": "string"
- },
- "value": {
- "_arg": 1,
- "type": "nullable:primitive"
- }
- },
- "response": {
- "error": {
- "_retval": "nullable:json"
- }
- }
- },
- {
- "name": "getParam",
- "request": {
- "type": "getParam",
- "param": {
- "_arg": 0,
- "type": "string"
- }
- },
- "response": {
- "text": {
- "_retval": "nullable:primitive"
- }
- }
- },
- {
- "name": "getParamFlags",
- "request": {
- "type": "getParamFlags",
- "param": {
- "_arg": 0,
- "type": "string"
- }
- },
- "response": {
- "flags": {
- "_retval": "nullable:primitive"
- }
- }
- },
- {
- "name": "getParams",
- "request": {
- "type": "getParams"
- },
- "response": {
- "params": {
- "_retval": "json"
- }
- }
- }
- ],
- "events": {}
- },
- "webaudio": {
- "category": "actor",
- "typeName": "webaudio",
- "methods": [
- {
- "name": "setup",
- "oneway": true,
- "request": {
- "type": "setup",
- "reload": {
- "_option": 0,
- "type": "boolean"
- }
- },
- "response": {}
- },
- {
- "name": "finalize",
- "oneway": true,
- "request": {
- "type": "finalize"
- },
- "response": {}
- }
- ],
- "events": {
- "start-context": {
- "type": "startContext"
- },
- "connect-node": {
- "type": "connectNode",
- "source": {
- "_option": 0,
- "type": "audionode"
- },
- "dest": {
- "_option": 0,
- "type": "audionode"
- }
- },
- "disconnect-node": {
- "type": "disconnectNode",
- "source": {
- "_arg": 0,
- "type": "audionode"
- }
- },
- "connect-param": {
- "type": "connectParam",
- "source": {
- "_arg": 0,
- "type": "audionode"
- },
- "param": {
- "_arg": 1,
- "type": "string"
- }
- },
- "change-param": {
- "type": "changeParam",
- "source": {
- "_option": 0,
- "type": "audionode"
- },
- "param": {
- "_option": 0,
- "type": "string"
- },
- "value": {
- "_option": 0,
- "type": "string"
- }
- },
- "create-node": {
- "type": "createNode",
- "source": {
- "_arg": 0,
- "type": "audionode"
- }
- }
- }
- },
- "old-stylesheet": {
- "category": "actor",
- "typeName": "old-stylesheet",
- "methods": [
- {
- "name": "toggleDisabled",
- "request": {
- "type": "toggleDisabled"
- },
- "response": {
- "disabled": {
- "_retval": "boolean"
- }
- }
- },
- {
- "name": "fetchSource",
- "request": {
- "type": "fetchSource"
- },
- "response": {}
- },
- {
- "name": "update",
- "request": {
- "type": "update",
- "text": {
- "_arg": 0,
- "type": "string"
- },
- "transition": {
- "_arg": 1,
- "type": "boolean"
- }
- },
- "response": {}
- }
- ],
- "events": {
- "property-change": {
- "type": "propertyChange",
- "property": {
- "_arg": 0,
- "type": "string"
- },
- "value": {
- "_arg": 1,
- "type": "json"
- }
- },
- "source-load": {
- "type": "sourceLoad",
- "source": {
- "_arg": 0,
- "type": "string"
- }
- },
- "style-applied": {
- "type": "styleApplied"
- }
- }
- },
- "styleeditor": {
- "category": "actor",
- "typeName": "styleeditor",
- "methods": [
- {
- "name": "newDocument",
- "request": {
- "type": "newDocument"
- },
- "response": {}
- },
- {
- "name": "newStyleSheet",
- "request": {
- "type": "newStyleSheet",
- "text": {
- "_arg": 0,
- "type": "string"
- }
- },
- "response": {
- "styleSheet": {
- "_retval": "old-stylesheet"
- }
- }
- }
- ],
- "events": {
- "document-load": {
- "type": "documentLoad",
- "styleSheets": {
- "_arg": 0,
- "type": "array:old-stylesheet"
- }
- }
- }
- },
- "cookieobject": {
- "category": "dict",
- "typeName": "cookieobject",
- "specializations": {
- "name": "string",
- "value": "longstring",
- "path": "nullable:string",
- "host": "string",
- "isDomain": "boolean",
- "isSecure": "boolean",
- "isHttpOnly": "boolean",
- "creationTime": "number",
- "lastAccessed": "number",
- "expires": "number"
- }
- },
- "cookiestoreobject": {
- "category": "dict",
- "typeName": "cookiestoreobject",
- "specializations": {
- "total": "number",
- "offset": "number",
- "data": "array:nullable:cookieobject"
- }
- },
- "storageobject": {
- "category": "dict",
- "typeName": "storageobject",
- "specializations": {
- "name": "string",
- "value": "longstring"
- }
- },
- "storagestoreobject": {
- "category": "dict",
- "typeName": "storagestoreobject",
- "specializations": {
- "total": "number",
- "offset": "number",
- "data": "array:nullable:storageobject"
- }
- },
- "idbobject": {
- "category": "dict",
- "typeName": "idbobject",
- "specializations": {
- "name": "nullable:string",
- "db": "nullable:string",
- "objectStore": "nullable:string",
- "origin": "nullable:string",
- "version": "nullable:number",
- "objectStores": "nullable:number",
- "keyPath": "nullable:string",
- "autoIncrement": "nullable:boolean",
- "indexes": "nullable:string",
- "value": "nullable:longstring"
- }
- },
- "idbstoreobject": {
- "category": "dict",
- "typeName": "idbstoreobject",
- "specializations": {
- "total": "number",
- "offset": "number",
- "data": "array:nullable:idbobject"
- }
- },
- "storeUpdateObject": {
- "category": "dict",
- "typeName": "storeUpdateObject",
- "specializations": {
- "changed": "nullable:json",
- "deleted": "nullable:json",
- "added": "nullable:json"
- }
- },
- "cookies": {
- "category": "actor",
- "typeName": "cookies",
- "methods": [
- {
- "name": "getStoreObjects",
- "request": {
- "type": "getStoreObjects",
- "host": {
- "_arg": 0,
- "type": "primitive"
- },
- "names": {
- "_arg": 1,
- "type": "nullable:array:string"
- },
- "options": {
- "_arg": 2,
- "type": "nullable:json"
- }
- },
- "response": {
- "_retval": "cookiestoreobject"
- }
- }
- ],
- "events": {}
- },
- "localStorage": {
- "category": "actor",
- "typeName": "localStorage",
- "methods": [
- {
- "name": "getStoreObjects",
- "request": {
- "type": "getStoreObjects",
- "host": {
- "_arg": 0,
- "type": "primitive"
- },
- "names": {
- "_arg": 1,
- "type": "nullable:array:string"
- },
- "options": {
- "_arg": 2,
- "type": "nullable:json"
- }
- },
- "response": {
- "_retval": "storagestoreobject"
- }
- }
- ],
- "events": {}
- },
- "sessionStorage": {
- "category": "actor",
- "typeName": "sessionStorage",
- "methods": [
- {
- "name": "getStoreObjects",
- "request": {
- "type": "getStoreObjects",
- "host": {
- "_arg": 0,
- "type": "primitive"
- },
- "names": {
- "_arg": 1,
- "type": "nullable:array:string"
- },
- "options": {
- "_arg": 2,
- "type": "nullable:json"
- }
- },
- "response": {
- "_retval": "storagestoreobject"
- }
- }
- ],
- "events": {}
- },
- "indexedDB": {
- "category": "actor",
- "typeName": "indexedDB",
- "methods": [
- {
- "name": "getStoreObjects",
- "request": {
- "type": "getStoreObjects",
- "host": {
- "_arg": 0,
- "type": "primitive"
- },
- "names": {
- "_arg": 1,
- "type": "nullable:array:string"
- },
- "options": {
- "_arg": 2,
- "type": "nullable:json"
- }
- },
- "response": {
- "_retval": "idbstoreobject"
- }
- }
- ],
- "events": {}
- },
- "storelist": {
- "category": "dict",
- "typeName": "storelist",
- "specializations": {
- "cookies": "cookies",
- "localStorage": "localStorage",
- "sessionStorage": "sessionStorage",
- "indexedDB": "indexedDB"
- }
- },
- "storage": {
- "category": "actor",
- "typeName": "storage",
- "methods": [
- {
- "name": "listStores",
- "request": {
- "type": "listStores"
- },
- "response": {
- "_retval": "storelist"
- }
- }
- ],
- "events": {
- "stores-update": {
- "type": "storesUpdate",
- "data": {
- "_arg": 0,
- "type": "storeUpdateObject"
- }
- },
- "stores-cleared": {
- "type": "storesCleared",
- "data": {
- "_arg": 0,
- "type": "json"
- }
- },
- "stores-reloaded": {
- "type": "storesRelaoded",
- "data": {
- "_arg": 0,
- "type": "json"
- }
- }
- }
- },
- "gcli": {
- "category": "actor",
- "typeName": "gcli",
- "methods": [
- {
- "name": "specs",
- "request": {
- "type": "specs"
- },
- "response": {
- "_retval": "json"
- }
- },
- {
- "name": "execute",
- "request": {
- "type": "execute",
- "typed": {
- "_arg": 0,
- "type": "string"
- }
- },
- "response": {
- "_retval": "json"
- }
- },
- {
- "name": "state",
- "request": {
- "type": "state",
- "typed": {
- "_arg": 0,
- "type": "string"
- },
- "start": {
- "_arg": 1,
- "type": "number"
- },
- "rank": {
- "_arg": 2,
- "type": "number"
- }
- },
- "response": {
- "_retval": "json"
- }
- },
- {
- "name": "typeparse",
- "request": {
- "type": "typeparse",
- "typed": {
- "_arg": 0,
- "type": "string"
- },
- "param": {
- "_arg": 1,
- "type": "string"
- }
- },
- "response": {
- "_retval": "json"
- }
- },
- {
- "name": "typeincrement",
- "request": {
- "type": "typeincrement",
- "typed": {
- "_arg": 0,
- "type": "string"
- },
- "param": {
- "_arg": 1,
- "type": "string"
- }
- },
- "response": {
- "_retval": "string"
- }
- },
- {
- "name": "typedecrement",
- "request": {
- "type": "typedecrement",
- "typed": {
- "_arg": 0,
- "type": "string"
- },
- "param": {
- "_arg": 1,
- "type": "string"
- }
- },
- "response": {
- "_retval": "string"
- }
- },
- {
- "name": "selectioninfo",
- "request": {
- "type": "selectioninfo",
- "typed": {
- "_arg": 0,
- "type": "string"
- },
- "param": {
- "_arg": 1,
- "type": "string"
- },
- "action": {
- "_arg": 1,
- "type": "string"
- }
- },
- "response": {
- "_retval": "json"
- }
- }
- ],
- "events": {}
- },
- "memory": {
- "category": "actor",
- "typeName": "memory",
- "methods": [
- {
- "name": "measure",
- "request": {
- "type": "measure"
- },
- "response": {
- "_retval": "json"
- }
- }
- ],
- "events": {}
- },
- "eventLoopLag": {
- "category": "actor",
- "typeName": "eventLoopLag",
- "methods": [
- {
- "name": "start",
- "request": {
- "type": "start"
- },
- "response": {
- "success": {
- "_retval": "number"
- }
- }
- },
- {
- "name": "stop",
- "request": {
- "type": "stop"
- },
- "response": {}
- }
- ],
- "events": {
- "event-loop-lag": {
- "type": "event-loop-lag",
- "time": {
- "_arg": 0,
- "type": "number"
- }
- }
- }
- },
- "preference": {
- "category": "actor",
- "typeName": "preference",
- "methods": [
- {
- "name": "getBoolPref",
- "request": {
- "type": "getBoolPref",
- "value": {
- "_arg": 0,
- "type": "primitive"
- }
- },
- "response": {
- "value": {
- "_retval": "boolean"
- }
- }
- },
- {
- "name": "getCharPref",
- "request": {
- "type": "getCharPref",
- "value": {
- "_arg": 0,
- "type": "primitive"
- }
- },
- "response": {
- "value": {
- "_retval": "string"
- }
- }
- },
- {
- "name": "getIntPref",
- "request": {
- "type": "getIntPref",
- "value": {
- "_arg": 0,
- "type": "primitive"
- }
- },
- "response": {
- "value": {
- "_retval": "number"
- }
- }
- },
- {
- "name": "getAllPrefs",
- "request": {
- "type": "getAllPrefs"
- },
- "response": {
- "value": {
- "_retval": "json"
- }
- }
- },
- {
- "name": "setBoolPref",
- "request": {
- "type": "setBoolPref",
- "name": {
- "_arg": 0,
- "type": "primitive"
- },
- "value": {
- "_arg": 1,
- "type": "primitive"
- }
- },
- "response": {}
- },
- {
- "name": "setCharPref",
- "request": {
- "type": "setCharPref",
- "name": {
- "_arg": 0,
- "type": "primitive"
- },
- "value": {
- "_arg": 1,
- "type": "primitive"
- }
- },
- "response": {}
- },
- {
- "name": "setIntPref",
- "request": {
- "type": "setIntPref",
- "name": {
- "_arg": 0,
- "type": "primitive"
- },
- "value": {
- "_arg": 1,
- "type": "primitive"
- }
- },
- "response": {}
- },
- {
- "name": "clearUserPref",
- "request": {
- "type": "clearUserPref",
- "name": {
- "_arg": 0,
- "type": "primitive"
- }
- },
- "response": {}
- }
- ],
- "events": {}
- },
- "device": {
- "category": "actor",
- "typeName": "device",
- "methods": [
- {
- "name": "getDescription",
- "request": {
- "type": "getDescription"
- },
- "response": {
- "value": {
- "_retval": "json"
- }
- }
- },
- {
- "name": "getWallpaper",
- "request": {
- "type": "getWallpaper"
- },
- "response": {
- "value": {
- "_retval": "longstring"
- }
- }
- },
- {
- "name": "screenshotToDataURL",
- "request": {
- "type": "screenshotToDataURL"
- },
- "response": {
- "value": {
- "_retval": "longstring"
- }
- }
- },
- {
- "name": "getRawPermissionsTable",
- "request": {
- "type": "getRawPermissionsTable"
- },
- "response": {
- "value": {
- "_retval": "json"
- }
- }
- }
- ],
- "events": {}
- }
- },
- "from": "root"
-}
-
-},{}],25:[function(_dereq_,module,exports){
-"use strict";
-
-var Class = _dereq_("./class").Class;
-var util = _dereq_("./util");
-var keys = util.keys;
-var values = util.values;
-var pairs = util.pairs;
-var query = util.query;
-var findPath = util.findPath;
-var EventTarget = _dereq_("./event").EventTarget;
-
-var TypeSystem = Class({
- constructor: function(client) {
- var types = Object.create(null);
- var specification = Object.create(null);
-
- this.specification = specification;
- this.types = types;
-
- var typeFor = function typeFor(typeName) {
- typeName = typeName || "primitive";
- if (!types[typeName]) {
- defineType(typeName);
- }
-
- return types[typeName];
- };
- this.typeFor = typeFor;
-
- var defineType = function(descriptor) {
- var type = void(0);
- if (typeof(descriptor) === "string") {
- if (descriptor.indexOf(":") > 0)
- type = makeCompoundType(descriptor);
- else if (descriptor.indexOf("#") > 0)
- type = new ActorDetail(descriptor);
- else if (specification[descriptor])
- type = makeCategoryType(specification[descriptor]);
- } else {
- type = makeCategoryType(descriptor);
- }
-
- if (type)
- types[type.name] = type;
- else
- throw TypeError("Invalid type: " + descriptor);
- };
- this.defineType = defineType;
-
-
- var makeCompoundType = function(name) {
- var index = name.indexOf(":");
- var baseType = name.slice(0, index);
- var subType = name.slice(index + 1);
-
- return baseType === "array" ? new ArrayOf(subType) :
- baseType === "nullable" ? new Maybe(subType) :
- null;
- };
-
- var makeCategoryType = function(descriptor) {
- var category = descriptor.category;
- return category === "dict" ? new Dictionary(descriptor) :
- category === "actor" ? new Actor(descriptor) :
- null;
- };
-
- var read = function(input, context, typeName) {
- return typeFor(typeName).read(input, context);
- }
- this.read = read;
-
- var write = function(input, context, typeName) {
- return typeFor(typeName).write(input);
- };
- this.write = write;
-
-
- var Type = Class({
- constructor: function() {
- },
- get name() {
- return this.category ? this.category + ":" + this.type :
- this.type;
- },
- read: function(input, context) {
- throw new TypeError("`Type` subclass must implement `read`");
- },
- write: function(input, context) {
- throw new TypeError("`Type` subclass must implement `write`");
- }
- });
-
- var Primitve = Class({
- extends: Type,
- constuctor: function(type) {
- this.type = type;
- },
- read: function(input, context) {
- return input;
- },
- write: function(input, context) {
- return input;
- }
- });
-
- var Maybe = Class({
- extends: Type,
- category: "nullable",
- constructor: function(type) {
- this.type = type;
- },
- read: function(input, context) {
- return input === null ? null :
- input === void(0) ? void(0) :
- read(input, context, this.type);
- },
- write: function(input, context) {
- return input === null ? null :
- input === void(0) ? void(0) :
- write(input, context, this.type);
- }
- });
-
- var ArrayOf = Class({
- extends: Type,
- category: "array",
- constructor: function(type) {
- this.type = type;
- },
- read: function(input, context) {
- var type = this.type;
- return input.map(function($) { return read($, context, type) });
- },
- write: function(input, context) {
- var type = this.type;
- return input.map(function($) { return write($, context, type) });
- }
- });
-
- var makeField = function makeField(name, type) {
- return {
- enumerable: true,
- configurable: true,
- get: function() {
- Object.defineProperty(this, name, {
- configurable: false,
- value: read(this.state[name], this.context, type)
- });
- return this[name];
- }
- }
- };
-
- var makeFields = function(descriptor) {
- return pairs(descriptor).reduce(function(fields, pair) {
- var name = pair[0], type = pair[1];
- fields[name] = makeField(name, type);
- return fields;
- }, {});
- }
-
- var DictionaryType = Class({});
-
- var Dictionary = Class({
- extends: Type,
- category: "dict",
- get name() { return this.type; },
- constructor: function(descriptor) {
- this.type = descriptor.typeName;
- this.types = descriptor.specializations;
-
- var proto = Object.defineProperties({
- extends: DictionaryType,
- constructor: function(state, context) {
- Object.defineProperties(this, {
- state: {
- enumerable: false,
- writable: true,
- configurable: true,
- value: state
- },
- context: {
- enumerable: false,
- writable: false,
- configurable: true,
- value: context
- }
- });
- }
- }, makeFields(this.types));
-
- this.class = new Class(proto);
- },
- read: function(input, context) {
- return new this.class(input, context);
- },
- write: function(input, context) {
- var output = {};
- for (var key in input) {
- output[key] = write(value, context, types[key]);
- }
- return output;
- }
- });
-
- var makeMethods = function(descriptors) {
- return descriptors.reduce(function(methods, descriptor) {
- methods[descriptor.name] = {
- enumerable: true,
- configurable: true,
- writable: false,
- value: makeMethod(descriptor)
- };
- return methods;
- }, {});
- };
-
- var makeEvents = function(descriptors) {
- return pairs(descriptors).reduce(function(events, pair) {
- var name = pair[0], descriptor = pair[1];
- var event = new Event(name, descriptor);
- events[event.eventType] = event;
- return events;
- }, Object.create(null));
- };
-
- var Actor = Class({
- extends: Type,
- category: "actor",
- get name() { return this.type; },
- constructor: function(descriptor) {
- this.type = descriptor.typeName;
-
- var events = makeEvents(descriptor.events || {});
- var fields = makeFields(descriptor.fields || {});
- var methods = makeMethods(descriptor.methods || []);
-
-
- var proto = {
- extends: Front,
- constructor: function() {
- Front.apply(this, arguments);
- },
- events: events
- };
- Object.defineProperties(proto, fields);
- Object.defineProperties(proto, methods);
-
- this.class = Class(proto);
- },
- read: function(input, context, detail) {
- var state = typeof(input) === "string" ? { actor: input } : input;
-
- var actor = client.get(state.actor) || new this.class(state, context);
- actor.form(state, detail, context);
-
- return actor;
- },
- write: function(input, context, detail) {
- return input.id;
- }
- });
- exports.Actor = Actor;
-
-
- var ActorDetail = Class({
- extends: Actor,
- constructor: function(name) {
- var parts = name.split("#")
- this.actorType = parts[0]
- this.detail = parts[1];
- },
- read: function(input, context) {
- return typeFor(this.actorType).read(input, context, this.detail);
- },
- write: function(input, context) {
- return typeFor(this.actorType).write(input, context, this.detail);
- }
- });
- exports.ActorDetail = ActorDetail;
-
- var Method = Class({
- extends: Type,
- constructor: function(descriptor) {
- this.type = descriptor.name;
- this.path = findPath(descriptor.response, "_retval");
- this.responseType = this.path && query(descriptor.response, this.path)._retval;
- this.requestType = descriptor.request.type;
-
- var params = [];
- for (var key in descriptor.request) {
- if (key !== "type") {
- var param = descriptor.request[key];
- var index = "_arg" in param ? param._arg : param._option;
- var isParam = param._option === index;
- var isArgument = param._arg === index;
- params[index] = {
- type: param.type,
- key: key,
- index: index,
- isParam: isParam,
- isArgument: isArgument
- };
- }
- }
- this.params = params;
- },
- read: function(input, context) {
- return read(query(input, this.path), context, this.responseType);
- },
- write: function(input, context) {
- return this.params.reduce(function(result, param) {
- result[param.key] = write(input[param.index], context, param.type);
- return result;
- }, {type: this.type});
- }
- });
- exports.Method = Method;
-
- var profiler = function(method, id) {
- return function() {
- var start = new Date();
- return method.apply(this, arguments).then(function(result) {
- var end = new Date();
- client.telemetry.add(id, +end - start);
- return result;
- });
- };
- };
-
- var destructor = function(method) {
- return function() {
- return method.apply(this, arguments).then(function(result) {
- client.release(this);
- return result;
- });
- };
- };
-
- function makeMethod(descriptor) {
- var type = new Method(descriptor);
- var method = descriptor.oneway ? makeUnidirecationalMethod(descriptor, type) :
- makeBidirectionalMethod(descriptor, type);
-
- if (descriptor.telemetry)
- method = profiler(method);
- if (descriptor.release)
- method = destructor(method);
-
- return method;
- }
-
- var makeUnidirecationalMethod = function(descriptor, type) {
- return function() {
- var packet = type.write(arguments, this);
- packet.to = this.id;
- client.send(packet);
- return Promise.resolve(void(0));
- };
- };
-
- var makeBidirectionalMethod = function(descriptor, type) {
- return function() {
- var context = this.context;
- var packet = type.write(arguments, context);
- var context = this.context;
- packet.to = this.id;
- return client.request(packet).then(function(packet) {
- return type.read(packet, context);
- });
- };
- };
-
- var Event = Class({
- constructor: function(name, descriptor) {
- this.name = descriptor.type || name;
- this.eventType = descriptor.type || name;
- this.types = Object.create(null);
-
- var types = this.types;
- for (var key in descriptor) {
- if (key === "type") {
- types[key] = "string";
- } else {
- types[key] = descriptor[key].type;
- }
- }
- },
- read: function(input, context) {
- var output = {};
- var types = this.types;
- for (var key in input) {
- output[key] = read(input[key], context, types[key]);
- }
- return output;
- },
- write: function(input, context) {
- var output = {};
- var types = this.types;
- for (var key in this.types) {
- output[key] = write(input[key], context, types[key]);
- }
- return output;
- }
- });
-
- var Front = Class({
- extends: EventTarget,
- EventTarget: EventTarget,
- constructor: function(state) {
- this.EventTarget();
- Object.defineProperties(this, {
- state: {
- enumerable: false,
- writable: true,
- configurable: true,
- value: state
- }
- });
-
- client.register(this);
- },
- get id() {
- return this.state.actor;
- },
- get context() {
- return this;
- },
- form: function(state, detail, context) {
- if (this.state !== state) {
- if (detail) {
- this.state[detail] = state[detail];
- } else {
- pairs(state).forEach(function(pair) {
- var key = pair[0], value = pair[1];
- this.state[key] = value;
- }, this);
- }
- }
-
- if (context) {
- client.supervise(context, this);
- }
- },
- requestTypes: function() {
- return client.request({
- to: this.id,
- type: "requestTypes"
- }).then(function(packet) {
- return packet.requestTypes;
- });
- }
- });
- types.primitive = new Primitve("primitive");
- types.string = new Primitve("string");
- types.number = new Primitve("number");
- types.boolean = new Primitve("boolean");
- types.json = new Primitve("json");
- types.array = new Primitve("array");
- },
- registerTypes: function(descriptor) {
- var specification = this.specification;
- values(descriptor.types).forEach(function(descriptor) {
- specification[descriptor.typeName] = descriptor;
- });
- }
-});
-exports.TypeSystem = TypeSystem;
-
-},{"./class":3,"./event":5,"./util":26}],26:[function(_dereq_,module,exports){
-"use strict";
-
-var keys = Object.keys;
-exports.keys = keys;
-
-// Returns array of values for the given object.
-var values = function(object) {
- return keys(object).map(function(key) {
- return object[key]
- });
-};
-exports.values = values;
-
-// Returns [key, value] pairs for the given object.
-var pairs = function(object) {
- return keys(object).map(function(key) {
- return [key, object[key]]
- });
-};
-exports.pairs = pairs;
-
-
-// Queries an object for the field nested with in it.
-var query = function(object, path) {
- return path.reduce(function(object, entry) {
- return object && object[entry]
- }, object);
-};
-exports.query = query;
-
-var isObject = function(x) {
- return x && typeof(x) === "object"
-}
-
-var findPath = function(object, key) {
- var path = void(0);
- if (object && typeof(object) === "object") {
- var names = keys(object);
- if (names.indexOf(key) >= 0) {
- path = [];
- } else {
- var index = 0;
- var count = names.length;
- while (index < count && !path){
- var head = names[index];
- var tail = findPath(object[head], key);
- path = tail ? [head].concat(tail) : tail;
- index = index + 1
- }
- }
- }
- return path;
-};
-exports.findPath = findPath;
-
-},{}]},{},[1])
-//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZ2VuZXJhdGVkLmpzIiwic291cmNlcyI6WyIvVXNlcnMvZ296YWxhL1Byb2plY3RzL3ZvbGNhbi9ub2RlX21vZHVsZXMvYnJvd3NlcmlmeS9ub2RlX21vZHVsZXMvYnJvd3Nlci1wYWNrL19wcmVsdWRlLmpzIiwiL1VzZXJzL2dvemFsYS9Qcm9qZWN0cy92b2xjYW4vYnJvd3Nlci9pbmRleC5qcyIsIi9Vc2Vycy9nb3phbGEvUHJvamVjdHMvdm9sY2FuL2Jyb3dzZXIvcHJvbWlzZS5qcyIsIi9Vc2Vycy9nb3phbGEvUHJvamVjdHMvdm9sY2FuL2NsYXNzLmpzIiwiL1VzZXJzL2dvemFsYS9Qcm9qZWN0cy92b2xjYW4vY2xpZW50LmpzIiwiL1VzZXJzL2dvemFsYS9Qcm9qZWN0cy92b2xjYW4vZXZlbnQuanMiLCIvVXNlcnMvZ296YWxhL1Byb2plY3RzL3ZvbGNhbi9ub2RlX21vZHVsZXMvYnJvd3NlcmlmeS9ub2RlX21vZHVsZXMvZXZlbn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mdW5jdGlvbihyZXNvbHZlLCByZWplY3QpIHtcbiAgICAgIGNsaWVudC5wb3J0ID0gcG9ydDtcbiAgICAgIHBvcnQub25tZXNzYWdlID0gY2xpZW50LnJlY2VpdmUuYmluZChjbGllbnQpO1xuICAgICAgY2xpZW50Lm9uUmVhZHkgPSByZXNvbHZlO1xuICAgICAgY2xpZW50Lm9uRmFpbCA9IHJlamVjdDtcblxuICAgICAgcG9ydC5zdGFydCgpO1xuICAgIH0pO1xuICB9LFxuICBzZW5kOiBmdW5jdGlvbihwYWNrZXQpIHtcbiAgICB0aGlzLnBvcnQucG9zdE1lc3NhZ2UocGFja2V0KTtcbiAgfSxcbiAgcmVxdWVzdDogZnVuY3Rpb24ocGFja2V0KSB7XG4gICAgdmFyIGNsaWVudCA9IHRoaXM7XG4gICAgcmV0dXJuIG5ldyBQcm9taXNlKGZ1bmN0aW9uKHJlc29sdmUsIHJlamVjdCkge1xuICAgICAgY2xpZW50LnJlcXVlc3RzLnB1c2gocGFja2V0LnRvLCB7IHJlc29sdmU6IHJlc29sdmUsIHJlamVjdDogcmVqZWN0IH0pO1xuICAgICAgY2xpZW50LnNlbmQocGFja2V0KTtcbiAgICB9KTtcbiAgfSxcblxuICByZWNlaXZlOiBmdW5jdGlvbihldmVudCkge1xuICAgIHZhciBwYWNrZXQgPSBldmVudC5kYXRhO1xuICAgIGlmICghdGhpcy5yb290KSB7XG4gICAgICBpZiAocGFja2V0LmZyb20gIT09IFwicm9vdFwiKVxuICAgICAgICB0aHJvdyBFcnJvcihcIkluaXRpYWwgcGFja2V0IG11c3QgYmUgZnJvbSByb290XCIpO1xuICAgICAgaWYgKCEoXCJhcHBsaWNhdGlvblR5cGVcIiBpbiBwYWNrZXQpKVxuICAgICAgICB0aHJvdyBFcnJvcihcIkluaXRpYWwgcGFja2V0IG11c3QgY29udGFpbiBhcHBsaWNhdGlvblR5cGUgZmllbGRcIik7XG5cbiAgICAgIHRoaXMucm9vdCA9IHRoaXMudHlwZVN5c3R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FwiY29uc29sZVwiLFxuICAgICAgICBcInRyYWNlQWN0b3JcIjogXCJ0cmFjZVwiXG4gICAgICB9LFxuICAgICAgXCJtZXRob2RzXCI6IFtcbiAgICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJhdHRhY2hcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge30sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7IFwiX3JldHZhbFwiOiBcImpzb25cIiB9XG4gICAgICAgICB9XG4gICAgICBdLFxuICAgICAgXCJldmVudHNcIjoge1xuICAgICAgICBcInRhYk5hdmlnYXRlZFwiOiB7XG4gICAgICAgICAgIFwidHlwZU5hbWVcIjogXCJ0YWJOYXZpZ2F0ZWRcIlxuICAgICAgICB9XG4gICAgICB9XG4gICAgfSxcbiAgICBcImNvbnNvbGVcIjoge1xuICAgICAgXCJjYXRlZ29yeVwiOiBcImFjdG9yXCIsXG4gICAgICBcInR5cGVOYW1lXCI6IFwiY29uc29sZVwiLFxuICAgICAgXCJtZXRob2RzXCI6IFtcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImV2YWx1YXRlSlNcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0ZXh0XCI6IHtcbiAgICAgICAgICAgICAgXCJfb3B0aW9uXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcInN0cmluZ1wiXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgXCJ1cmxcIjoge1xuICAgICAgICAgICAgICBcIl9vcHRpb25cIjogMSxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwic3RyaW5nXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcImJpbmRPYmplY3RBY3RvclwiOiB7XG4gICAgICAgICAgICAgIFwiX29wdGlvblwiOiAyLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJudWxsYWJsZTpzdHJpbmdcIlxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFwiZnJhbWVBY3RvclwiOiB7XG4gICAgICAgICAgICAgIFwiX29wdGlvblwiOiAyLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJudWxsYWJsZTpzdHJpbmdcIlxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFwic2VsZWN0ZWROb2RlQWN0b3JcIjoge1xuICAgICAgICAgICAgICBcIl9vcHRpb25cIjogMixcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwibnVsbGFibGU6c3RyaW5nXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJfcmV0dmFsXCI6IFwiZXZhbHVhdGVqc3Jlc3BvbnNlXCJcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIF0sXG4gICAgICBcImV2ZW50c1wiOiB7fVxuICAgIH0sXG4gICAgXCJldmFsdWF0ZWpzcmVzcG9uc2VcIjoge1xuICAgICAgXCJjYXRlZ29yeVwiOiBcImRpY3RcIixcbiAgICAgIFwidHlwZU5hbWVcIjogXCJldmFsdWF0ZWpzcmVzcG9uc2VcIixcbiAgICAgIFwic3BlY2lhbGl6YXRpb25zXCI6IHtcbiAgICAgICAgXCJyZXN1bHRcIjogXCJvYmplY3RcIixcbiAgICAgICAgXCJleGNlcHRpb25cIjogXCJvYmplY3RcIixcbiAgICAgICAgXCJleGNlcHRpb25NZXNzYWdlXCI6IFwic3RyaW5nXCIsXG4gICAgICAgIFwiaW5wdXRcIjogXCJzdHJpbmdcIlxuICAgICAgfVxuICAgIH0sXG4gICAgXCJvYmplY3RcIjoge1xuICAgICAgXCJjYXRlZ29yeVwiOiBcImFjdG9yXCIsXG4gICAgICBcInR5cGVOYW1lXCI6IFwib2JqZWN0XCIsXG4gICAgICBcIm1ldGhvZHNcIjogW1xuICAgICAgICAge1xuICAgICAgICAgICBcIm5hbWVcIjogXCJwcm9wZXJ0eVwiLFxuICAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgICBcIm5hbWVcIjoge1xuICAgICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICAgIFwidHlwZVwiOiBcInN0cmluZ1wiXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgfSxcbiAgICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICAgIFwiZGVzY3JpcHRvclwiOiB7XG4gICAgICAgICAgICAgICAgXCJfcmV0dmFsXCI6IFwianNvblwiXG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgfVxuICAgICAgICAgfVxuICAgICAgXVxuICAgIH1cbiAgfVxufVxuIiwibW9kdWxlLmV4cG9ydHM9e1xuICBcInR5cGVzXCI6IHtcbiAgICBcImxvbmdzdHJhY3RvclwiOiB7XG4gICAgICBcImNhdGVnb3J5XCI6IFwiYWN0b3JcIixcbiAgICAgIFwidHlwZU5hbWVcIjogXCJsb25nc3RyYWN0b3JcIixcbiAgICAgIFwibWV0aG9kc1wiOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJzdWJzdHJpbmdcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwic3Vic3RyaW5nXCIsXG4gICAgICAgICAgICBcInN0YXJ0XCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcInByaW1pdGl2ZVwiXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgXCJlbmRcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMSxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwicHJpbWl0aXZlXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJzdWJzdHJpbmdcIjoge1xuICAgICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJwcmltaXRpdmVcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcInJlbGVhc2VcIixcbiAgICAgICAgICBcInJlbGVhc2VcIjogdHJ1ZSxcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwicmVsZWFzZVwiXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHt9XG4gICAgICAgIH1cbiAgICAgIF0sXG4gICAgICBcImV2ZW50c1wiOiB7fVxuICAgIH0sXG4gICAgXCJzdHlsZXNoZWV0XCI6IHtcbiAgICAgIFwiY2F0ZWdvcnlcIjogXCJhY3RvclwiLFxuICAgICAgXCJ0eXBlTmFtZVwiOiBcInN0eWxlc2hlZXRcIixcbiAgICAgIFwibWV0aG9kc1wiOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJ0b2dnbGVEaXNhYmxlZFwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJ0b2dnbGVEaXNhYmxlZFwiXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHtcbiAgICAgICAgICAgIFwiZGlzYWJsZWRcIjoge1xuICAgICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJib29sZWFuXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJnZXRUZXh0XCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImdldFRleHRcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcInRleHRcIjoge1xuICAgICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJsb25nc3RyaW5nXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJnZXRPcmlnaW5hbFNvdXJjZXNcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZ2V0T3JpZ2luYWxTb3VyY2VzXCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJvcmlnaW5hbFNvdXJjZXNcIjoge1xuICAgICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJudWxsYWJsZTphcnJheTpvcmlnaW5hbHNvdXJjZVwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwiZ2V0T3JpZ2luYWxMb2NhdGlvblwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJnZXRPcmlnaW5hbExvY2F0aW9uXCIsXG4gICAgICAgICAgICBcImxpbmVcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwibnVtYmVyXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcImNvbHVtblwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAxLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJudW1iZXJcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJvcmlnaW5hbGxvY2F0aW9ucmVzcG9uc2VcIlxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcInVwZGF0ZVwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJ1cGRhdGVcIixcbiAgICAgICAgICAgIFwidGV4dFwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJzdHJpbmdcIlxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFwidHJhbnNpdGlvblwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAxLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJib29sZWFuXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge31cbiAgICAgICAgfVxuICAgICAgXSxcbiAgICAgIFwiZXZlbnRzXCI6IHtcbiAgICAgICAgXCJwcm9wZXJ0eS1jaGFuZ2VcIjoge1xuICAgICAgICAgIFwidHlwZVwiOiBcInByb3BlcnR5Q2hhbmdlXCIsXG4gICAgICAgICAgXCJwcm9wZXJ0eVwiOiB7XG4gICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgIFwidHlwZVwiOiBcInN0cmluZ1wiXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInZhbHVlXCI6IHtcbiAgICAgICAgICAgIFwiX2FyZ1wiOiAxLFxuICAgICAgICAgICAgXCJ0eXBlXCI6IFwianNvblwiXG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBcInN0eWxlLWFwcGxpZWRcIjoge1xuICAgICAgICAgIFwidHlwZVwiOiBcInN0eWxlQXBwbGllZFwiXG4gICAgICAgIH1cbiAgICAgIH1cbiAgICB9LFxuICAgIFwib3JpZ2luYWxzb3VyY2VcIjoge1xuICAgICAgXCJjYXRlZ29yeVwiOiBcImFjdG9yXCIsXG4gICAgICBcInR5cGVOYW1lXCI6IFwib3JpZ2luYWxzb3VyY2VcIixcbiAgICAgIFwibWV0aG9kc1wiOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJnZXRUZXh0XCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImdldFRleHRcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcInRleHRcIjoge1xuICAgICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJsb25nc3RyaW5nXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIF0sXG4gICAgICBcImV2ZW50c1wiOiB7fVxuICAgIH0sXG4gICAgXCJzdHlsZXNoZWV0c1wiOiB7XG4gICAgICBcImNhdGVnb3J5XCI6IFwiYWN0b3JcIixcbiAgICAgIFwidHlwZU5hbWVcIjogXCJzdHlsZXNoZWV0c1wiLFxuICAgICAgXCJtZXRob2RzXCI6IFtcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImdldFN0eWxlU2hlZXRzXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImdldFN0eWxlU2hlZXRzXCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJzdHlsZVNoZWV0c1wiOiB7XG4gICAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcImFycmF5OnN0eWxlc2hlZXRcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImFkZFN0eWxlU2hlZXRcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiYWRkU3R5bGVTaGVldFwiLFxuICAgICAgICAgICAgXCJ0ZXh0XCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcInN0cmluZ1wiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHtcbiAgICAgICAgICAgIFwic3R5bGVTaGVldFwiOiB7XG4gICAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcInN0eWxlc2hlZXRcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgXSxcbiAgICAgIFwiZXZlbnRzXCI6IHt9XG4gICAgfSxcbiAgICBcIm9yaWdpbmFsbG9jYXRpb25yZXNwb25zZVwiOiB7XG4gICAgICBcImNhdGVnb3J5XCI6IFwiZGljdFwiLFxuICAgICAgXCJ0eXBlTmFtZVwiOiBcIm9yaWdpbmFsbG9jYXRpb25yZXNwb25zZVwiLFxuICAgICAgXCJzcGVjaWFsaXphdGlvbnNcIjoge1xuICAgICAgICBcInNvdXJjZVwiOiBcInN0cmluZ1wiLFxuICAgICAgICBcImxpbmVcIjogXCJudW1iZXJcIixcbiAgICAgICAgXCJjb2x1bW5cIjogXCJudW1iZXJcIlxuICAgICAgfVxuICAgIH0sXG4gICAgXCJkb21ub2RlXCI6IHtcbiAgICAgIFwiY2F0ZWdvcnlcIjogXCJhY3RvclwiLFxuICAgICAgXCJ0eXBlTmFtZVwiOiBcImRvbW5vZGVcIixcbiAgICAgIFwibWV0aG9kc1wiOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJnZXROb2RlVmFsdWVcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZ2V0Tm9kZVZhbHVlXCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJ2YWx1ZVwiOiB7XG4gICAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcImxvbmdzdHJpbmdcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcInNldE5vZGVWYWx1ZVwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJzZXROb2RlVmFsdWVcIixcbiAgICAgICAgICAgIFwidmFsdWVcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwicHJpbWl0aXZlXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge31cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImdldEltYWdlRGF0YVwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJnZXRJbWFnZURhdGFcIixcbiAgICAgICAgICAgIFwibWF4RGltXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcIm51bGxhYmxlOm51bWJlclwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHtcbiAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcImltYWdlRGF0YVwiXG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwibW9kaWZ5QXR0cmlidXRlc1wiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJtb2RpZnlBdHRyaWJ1dGVzXCIsXG4gICAgICAgICAgICBcIm1vZGlmaWNhdGlvbnNcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwiYXJyYXk6an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AgICAgIFwic2hlZXRzXCI6IFwiYXJyYXk6c3R5bGVzaGVldFwiLFxuICAgICAgICBcIm1hdGNoZWRcIjogXCJhcnJheTptYXRjaGVkc2VsZWN0b3JcIlxuICAgICAgfVxuICAgIH0sXG4gICAgXCJhcHBsaWVkU3R5bGVzUmV0dXJuXCI6IHtcbiAgICAgIFwiY2F0ZWdvcnlcIjogXCJkaWN0XCIsXG4gICAgICBcInR5cGVOYW1lXCI6IFwiYXBwbGllZFN0eWxlc1JldHVyblwiLFxuICAgICAgXCJzcGVjaWFsaXphdGlvbnNcIjoge1xuICAgICAgICBcImVudHJpZXNcIjogXCJhcnJheTphcHBsaWVkc3R5bGVcIixcbiAgICAgICAgXCJydWxlc1wiOiBcImFycmF5OmRvbXN0eWxlcnVsZVwiLFxuICAgICAgICBcInNoZWV0c1wiOiBcImFycmF5OnN0eWxlc2hlZXRcIlxuICAgICAgfVxuICAgIH0sXG4gICAgXCJwYWdlc3R5bGVcIjoge1xuICAgICAgXCJjYXRlZ29yeVwiOiBcImFjdG9yXCIsXG4gICAgICBcInR5cGVOYW1lXCI6IFwicGFnZXN0eWxlXCIsXG4gICAgICBcIm1ldGhvZHNcIjogW1xuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwiZ2V0Q29tcHV0ZWRcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZ2V0Q29tcHV0ZWRcIixcbiAgICAgICAgICAgIFwibm9kZVwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJkb21ub2RlXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcIm1hcmtNYXRjaGVkXCI6IHtcbiAgICAgICAgICAgICAgXCJfb3B0aW9uXCI6IDEsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcImJvb2xlYW5cIlxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFwib25seU1hdGNoZWRcIjoge1xuICAgICAgICAgICAgICBcIl9vcHRpb25cIjogMSxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwiYm9vbGVhblwiXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgXCJmaWx0ZXJcIjoge1xuICAgICAgICAgICAgICBcIl9vcHRpb25cIjogMSxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwic3RyaW5nXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJjb21wdXRlZFwiOiB7XG4gICAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcImpzb25cIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImdldE1hdGNoZWRTZWxlY3RvcnNcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZ2V0TWF0Y2hlZFNlbGVjdG9yc1wiLFxuICAgICAgICAgICAgXCJub2RlXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcImRvbW5vZGVcIlxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFwicHJvcGVydHlcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMSxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwic3RyaW5nXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcImZpbHRlclwiOiB7XG4gICAgICAgICAgICAgIFwiX29wdGlvblwiOiAyLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJzdHJpbmdcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJtYXRjaGVkc2VsZWN0b3JyZXNwb25zZVwiXG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwiZ2V0QXBwbGllZFwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJnZXRBcHBsaWVkXCIsXG4gICAgICAgICAgICBcIm5vZGVcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZG9tbm9kZVwiXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgXCJpbmhlcml0ZWRcIjoge1xuICAgICAgICAgICAgICBcIl9vcHRpb25cIjogMSxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwiYm9vbGVhblwiXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgXCJtYXRjaGVkU2VsZWN0b3JzXCI6IHtcbiAgICAgICAgICAgICAgXCJfb3B0aW9uXCI6IDEsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcImJvb2xlYW5cIlxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFwiZmlsdGVyXCI6IHtcbiAgICAgICAgICAgICAgXCJfb3B0aW9uXCI6IDEsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcInN0cmluZ1wiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHtcbiAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcImFwcGxpZWRTdHlsZXNSZXR1cm5cIlxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImdldExheW91dFwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJnZXRMYXlvdXRcIixcbiAgICAgICAgICAgIFwibm9kZVwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJkb21ub2RlXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcImF1dG9NYXJnaW5zXCI6IHtcbiAgICAgICAgICAgICAgXCJfb3B0aW9uXCI6IDEsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcImJvb2xlYW5cIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJqc29uXCJcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIF0sXG4gICAgICBcImV2ZW50c1wiOiB7fVxuICAgIH0sXG4gICAgXCJkb21zdHlsZXJ1bGVcIjoge1xuICAgICAgXCJjYXRlZ29yeVwiOiBcImFjdG9yXCIsXG4gICAgICBcInR5cGVOYW1lXCI6IFwiZG9tc3R5bGVydWxlXCIsXG4gICAgICBcIm1ldGhvZHNcIjogW1xuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwibW9kaWZ5UHJvcGVydGllc1wiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJtb2RpZnlQcm9wZXJ0aWVzXCIsXG4gICAgICAgICAgICBcIm1vZGlmaWNhdGlvbnNcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwiYXJyYXk6anNvblwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHtcbiAgICAgICAgICAgIFwicnVsZVwiOiB7XG4gICAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcImRvbXN0eWxlcnVsZVwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICBdLFxuICAgICAgXCJldmVudHNcIjoge31cbiAgICB9LFxuICAgIFwiaGlnaGxpZ2h0ZXJcIjoge1xuICAgICAgXCJjYXRlZ29yeVwiOiBcImFjdG9yXCIsXG4gICAgICBcInR5cGVOYW1lXCI6IFwiaGlnaGxpZ2h0ZXJcIixcbiAgICAgIFwibWV0aG9kc1wiOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJzaG93Qm94TW9kZWxcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwic2hvd0JveE1vZGVsXCIsXG4gICAgICAgICAgICBcIm5vZGVcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZG9tbm9kZVwiXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgXCJyZWdpb25cIjoge1xuICAgICAgICAgICAgICBcIl9vcHRpb25cIjogMSxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwicHJpbWl0aXZlXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge31cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImhpZGVCb3hNb2RlbFwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJoaWRlQm94TW9kZWxcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7fVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwicGlja1wiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJwaWNrXCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge31cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImNh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4gICAgXCJkb21tdXRhdGlvblwiOiB7XG4gICAgICBcImNhdGVnb3J5XCI6IFwiZGljdFwiLFxuICAgICAgXCJ0eXBlTmFtZVwiOiBcImRvbW11dGF0aW9uXCIsXG4gICAgICBcInNwZWNpYWxpemF0aW9uc1wiOiB7fVxuICAgIH0sXG4gICAgXCJkb21ub2RlbGlzdFwiOiB7XG4gICAgICBcImNhdGVnb3J5XCI6IFwiYWN0b3JcIixcbiAgICAgIFwidHlwZU5hbWVcIjogXCJkb21ub2RlbGlzdFwiLFxuICAgICAgXCJtZXRob2RzXCI6IFtcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcIml0ZW1cIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiaXRlbVwiLFxuICAgICAgICAgICAgXCJpdGVtXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcInByaW1pdGl2ZVwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHtcbiAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcImRpc2Nvbm5lY3RlZE5vZGVcIlxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcIml0ZW1zXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcIml0ZW1zXCIsXG4gICAgICAgICAgICBcInN0YXJ0XCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcIm51bGxhYmxlOm51bWJlclwiXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgXCJlbmRcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMSxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwibnVsbGFibGU6bnVtYmVyXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJfcmV0dmFsXCI6IFwiZGlzY29ubmVjdGVkTm9kZUFycmF5XCJcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJyZWxlYXNlXCIsXG4gICAgICAgICAgXCJyZWxlYXNlXCI6IHRydWUsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcInJlbGVhc2VcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7fVxuICAgICAgICB9XG4gICAgICBdLFxuICAgICAgXCJldmVudHNcIjoge31cbiAgICB9LFxuICAgIFwiZG9tdHJhdmVyc2FsYXJyYXlcIjoge1xuICAgICAgXCJjYXRlZ29yeVwiOiBcImRpY3RcIixcbiAgICAgIFwidHlwZU5hbWVcIjogXCJkb210cmF2ZXJzYWxhcnJheVwiLFxuICAgICAgXCJzcGVjaWFsaXphdGlvbnNcIjoge1xuICAgICAgICBcIm5vZGVzXCI6IFwiYXJyYXk6ZG9tbm9kZVwiXG4gICAgICB9XG4gICAgfSxcbiAgICBcImRvbXdhbGtlclwiOiB7XG4gICAgICBcImNhdGVnb3J5XCI6IFwiYWN0b3JcIixcbiAgICAgIFwidHlwZU5hbWVcIjogXCJkb213YWxrZXJcIixcbiAgICAgIFwibWV0aG9kc1wiOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJyZWxlYXNlXCIsXG4gICAgICAgICAgXCJyZWxlYXNlXCI6IHRydWUsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcInJlbGVhc2VcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7fVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwicGlja1wiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJwaWNrXCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJfcmV0dmFsXCI6IFwiZGlzY29ubmVjdGVkTm9kZVwiXG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwiY2FuY2VsUGlja1wiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJjYW5jZWxQaWNrXCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge31cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImhpZ2hsaWdodFwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJoaWdobGlnaHRcIixcbiAgICAgICAgICAgIFwibm9kZVwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJudWxsYWJsZTpkb21ub2RlXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge31cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImRvY3VtZW50XCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImRvY3VtZW50XCIsXG4gICAgICAgICAgICBcIm5vZGVcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwibnVsbGFibGU6ZG9tbm9kZVwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHtcbiAgICAgICAgICAgIFwibm9kZVwiOiB7XG4gICAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcImRvbW5vZGVcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImRvY3VtZW50RWxlbWVudFwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJkb2N1bWVudEVsZW1lbnRcIixcbiAgICAgICAgICAgIFwibm9kZVwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJudWxsYWJsZTpkb21ub2RlXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJub2RlXCI6IHtcbiAgICAgICAgICAgICAgXCJfcmV0dmFsXCI6IFwiZG9tbm9kZVwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwicGFyZW50c1wiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJwYXJlbnRzXCIsXG4gICAgICAgICAgICBcIm5vZGVcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZG9tbm9kZVwiXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgXCJzYW1lRG9jdW1lbnRcIjoge1xuICAgICAgICAgICAgICBcIl9vcHRpb25cIjogMSxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwicHJpbWl0aXZlXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJub2Rlc1wiOiB7XG4gICAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcImFycmF5OmRvbW5vZGVcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcInJldGFpbk5vZGVcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwicmV0YWluTm9kZVwiLFxuICAgICAgICAgICAgXCJub2RlXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcImRvbW5vZGVcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7fVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwidW5yZXRhaW5Ob2RlXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcInVucmV0YWluTm9kZVwiLFxuICAgICAgICAgICAgXCJub2RlXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcImRvbW5vZGVcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7fVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwicmVsZWFzZU5vZGVcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwicmVsZWFzZU5vZGVcIixcbiAgICAgICAgICAgIFwibm9kZVwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJkb21ub2RlXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcImZvcmNlXCI6IHtcbiAgICAgICAgICAgICAgXCJfb3B0aW9uXCI6IDEsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcInByaW1pdGl2ZVwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHt9XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJjaGlsZHJlblwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJjaGlsZHJlblwiLFxuICAgICAgICAgICAgXCJub2RlXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcImRvbW5vZGVcIlxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFwibWF4Tm9kZXNcIjoge1xuICAgICAgICAgICAgICBcIl9vcHRpb25cIjogMSxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwicHJpbWl0aXZlXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcImNlbnRlclwiOiB7XG4gICAgICAgICAgICAgIFwiX29wdGlvblwiOiAxLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJkb21ub2RlXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcInN0YXJ0XCI6IHtcbiAgICAgICAgICAgICAgXCJfb3B0aW9uXCI6IDEsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcImRvbW5vZGVcIlxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFwid2hhdFRvU2hvd1wiOiB7XG4gICAgICAgICAgICAgIFwiX29wdGlvblwiOiAxLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJwcmltaXRpdmVcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJkb210cmF2ZXJzYWxhcnJheVwiXG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwic2libGluZ3NcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwic2libGluZ3NcIixcbiAgICAgICAgICAgIFwibm9kZVwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJkb21ub2RlXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcIm1heE5vZGVzXCI6IHtcbiAgICAgICAgICAgICAgXCJfb3B0aW9uXCI6IDEsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcInByaW1pdGl2ZVwiXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgXCJjZW50ZXJcIjoge1xuICAgICAgICAgICAgICBcIl9vcHRpb25cIjogMSxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZG9tbm9kZVwiXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgXCJzdGFydFwiOiB7XG4gICAgICAgICAgICAgIFwiX29wdGlvblwiOiAxLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJkb21ub2RlXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcIndoYXRUb1Nob3dcIjoge1xuICAgICAgICAgICAgICBcIl9vcHRpb25cIjogMSxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwicHJpbWl0aXZlXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJfcmV0dmFsXCI6IFwiZG9tdHJhdmVyc2FsYXJyYXlcIlxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcIm5leHRTaWJsaW5nXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcIm5leHRTaWJsaW5nXCIsXG4gICAgICAgICAgICBcIm5vZGVcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZG9tbm9kZVwiXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgXCJ3aGF0VG9TaG93XCI6IHtcbiAgICAgICAgICAgICAgXCJfb3B0aW9uXCI6IDEsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcInByaW1pdGl2ZVwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHtcbiAgICAgICAgICAgIFwibm9kZVwiOiB7XG4gICAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcIm51bGxhYmxlOmRvbW5vZGVcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcInByZXZpb3VzU2libGluZ1wiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJwcmV2aW91c1NpYmxpbmdcIixcbiAgICAgICAgICAgIFwibm9kZVwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJkb21ub2RlXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcIndoYXRUb1Nob3dcIjoge1xuICAgICAgICAgICAgICBcIl9vcHRpb25cIjogMSxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwicHJpbWl0aXZlXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJub2RlXCI6IHtcbiAgICAgICAgICAgICAgXCJfcmV0dmFsXCI6IFwibnVsbGFibGU6ZG9tbm9kZVwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwicXVlcnlTZWxlY3RvclwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJxdWVyeVNlbGVjdG9yXCIsXG4gICAgICAgICAgICBcIm5vZGVcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZG9tbm9kZVwiXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgXCJzZWxlY3RvclwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAxLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJwcmltaXRpdmVcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJkaXNjb25uZWN0ZWROb2RlXCJcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJxdWVyeVNlbGVjdG9yQWxsXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcInF1ZXJ5U2VsZWN0b3JBbGxcIixcbiAgICAgICAgICAgIFwibm9kZVwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJkb21ub2RlXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcInNlbGVjdG9yXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDEsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcInByaW1pdGl2ZVwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHtcbiAgICAgICAgICAgIFwibGlzdFwiOiB7XG4gICAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcImRvbW5vZGVsaXN0XCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJnZXRTdWdnZXN0aW9uc0ZvclF1ZXJ5XCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImdldFN1Z2dlc3Rpb25zRm9yUXVlcnlcIixcbiAgICAgICAgICAgIFwicXVlcnlcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwicHJpbWl0aXZlXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcImNvbXBsZXRpbmdcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMSxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwicHJpbWl0aXZlXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcInNlbGVjdG9yU3RhdGVcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMixcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwicHJpbWl0aXZlXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJsaXN0XCI6IHtcbiAgICAgICAgICAgICAgXCJfcmV0dmFsXCI6IFwiYXJyYXk6YXJyYXk6c3RyaW5nXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJhZGRQc2V1ZG9DbGFzc0xvY2tcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiYWRkUHNldWRvQ2xhc3NMb2NrXCIsXG4gICAgICAgICAgICBcIm5vZGVcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZG9tbm9kZVwiXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgXCJwc2V1ZG9DbGFzc1wiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAxLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJwcmltaXRpdmVcIlxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFwicGFyZW50c1wiOiB7XG4gICAgICAgICAgICAgIFwiX29wdGlvblwiOiAyLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJwcmltaXRpdmVcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7fVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwiaGlkZU5vZGVcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiaGlkZU5vZGVcIixcbiAgICAgICAgICAgIFwibm9kZVwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJkb21ub2RlXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge31cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcInVuaGlkZU5vZGVcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwidW5oaWRlTm9kZVwiLFxuICAgICAgICAgICAgXCJub2RlXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcImRvbW5vZGVcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7fVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwicmVtb3ZlUHNldWRvQ2xhc3NMb2NrXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcInJlbW92ZVBzZXVkb0NsYXNzTG9ja1wiLFxuICAgICAgICAgICAgXCJub2RlXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcImRvbW5vZGVcIlxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFwicHNldWRvQ2xhc3NcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMSxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwicHJpbWl0aXZlXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcInBhcmVudHNcIjoge1xuICAgICAgICAgICAgICBcIl9vcHRpb25cIjogMixcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwicHJpbWl0aXZlXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge31cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImNsZWFyUHNldWRvQ2xhc3NMb2Nrc1wiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJjbGVhclBzZXVkb0NsYXNzTG9ja3NcIixcbiAgICAgICAgICAgIFwibm9kZVwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJudWxsYWJsZTpkb21ub2RlXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge31cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImlubmVySFRNTFwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJpbm5lckhUTUxcIixcbiAgICAgICAgICAgIFwibm9kZVwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJkb21ub2RlXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJ2YWx1ZVwiOiB7XG4gICAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcImxvbmdzdHJpbmdcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcIm91dGVySFRNTFwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJvdXRlckhUTUxcIixcbiAgICAgICAgICAgIFwibm9kZVwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJkb21ub2RlXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJ2YWx1ZVwiOiB7XG4gICAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcImxvbmdzdHJpbmdcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcInNldE91dGVySFRNTFwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJzZXRPdXRlckhUTUxcIixcbiAgICAgICAgICAgIFwibm9kZVwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJkb21ub2RlXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcInZhbHVlXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDEsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcInByaW1pdGl2ZVwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHt9XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJyZW1vdmVOb2RlXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcInJlbW92ZU5vZGVcIixcbiAgICAgICAgICAgIFwibm9kZVwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJkb21ub2RlXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJuZXh0U2libGluZ1wiOiB7XG4gICAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcIm51bGxhYmxlOmRvbW5vZGVcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImluc2VydEJlZm9yZVwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJpbnNlcnRCZWZvcmVcIixcbiAgICAgICAgICAgIFwibm9kZVwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJkb21ub2RlXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcInBhcmVudFwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAxLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJkb21ub2RlXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcInNpYmxpbmdcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMixcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwibnVsbGFibGU6ZG9tbm9kZVwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHt9XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJnZXRNdXRhdGlvbnNcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZ2V0TXV0YXRpb25zXCIsXG4gICAgICAgICAgICBcImNsZWFudXBcIjoge1xuICAgICAgICAgICAgICBcIl9vcHRpb25cIjogMCxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwicHJpbWl0aXZlXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJtdXRhdGlvbnNcIjoge1xuICAgICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJhcnJheTpkb21tdXRhdGlvblwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwiaXNJbkRPTVRyZWVcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiaXNJbkRPTVRyZWVcIixcbiAgICAgICAgICAgIFwibm9kZVwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJkb21ub2RlXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJhdHRhY2hlZFwiOiB7XG4gICAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcImJvb2xlYW5cIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImdldE5vZGVBY3RvckZyb21PYmplY3RBY3RvclwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJnZXROb2RlQWN0b3JGcm9tT2JqZWN0QWN0b3JcIixcbiAgICAgICAgICAgIFwib2JqZWN0QWN0b3JJRFwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJzdHJpbmdcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcIm5vZGVGcm9udFwiOiB7XG4gICAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcIm51bGxhYmxlOmRpc2Nvbm5lY3RlZE5vZGVcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgXSxcbiAgICAgIFwiZXZlbnRzXCI6IHtcbiAgICAgICAgXCJuZXctbXV0YXRpb25zXCI6IHtcbiAgICAgICAgICBcInR5cGVcIjogXCJuZXdNdXRhdGlvbnNcIlxuICAgICAgICB9LFxuICAgICAgICBcInBpY2tlci1ub2RlLXBpY2tlZFwiOiB7XG4gICAgICAgICAgXCJ0eXBlXCI6IFwicGlja2VyTm9kZVBpY2tlZFwiLFxuICAgICAgICAgIFwibm9kZVwiOiB7XG4gICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImRpc2Nvbm5lY3RlZE5vZGVcIlxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgXCJwaWNrZXItbm9kZS1ob3ZlcmVkXCI6IHtcbiAgICAgICAgICBcInR5cGVcIjogXCJwaWNrZXJOb2RlSG92ZXJlZFwiLFxuICAgICAgICAgIFwibm9kZVwiOiB7XG4gICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImRpc2Nvbm5lY3RlZE5vZGVcIlxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgXCJoaWdobGlnaHRlci1yZWFkeVwiOiB7XG4gICAgICAgICAgXCJ0eXBlXCI6IFwiaGlnaGxpZ2h0ZXItcmVhZHlcIlxuICAgICAgICB9LFxuICAgICAgICBcImhpZ2hsaWdodGVyLWhpZGVcIjoge1xuICAgICAgICAgIFwidHlwZVwiOiBcImhpZ2hsaWdodGVyLWhpZGVcIlxuICAgICAgICB9XG4gICAgICB9XG4gICAgfSxcbiAgICBcImluc3BlY3RvclwiOiB7XG4gICAgICBcImNhdGVnb3J5XCI6IFwiYWN0b3JcIixcbiAgICAgIFwidHlwZU5hbWVcIjogXCJpbnNwZWN0b3JcIixcbiAgICAgIFwibWV0aG9kc1wiOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJnZXRXYWxrZXJcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZ2V0V2Fsa2VyXCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJ3YWxrZXJcIjoge1xuICAgICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJkb213YWxrZXJcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImdldFBhZ2VTdHlsZVwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJnZXRQYWdlU3R5bGVcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcInBhZ2VTdHlsZVwiOiB7XG4gICAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcInBhZ2VzdHlsZVwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwiZ2V0SGlnaGxpZ2h0ZXJcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZ2V0SGlnaGxpZ2h0ZXJcIixcbiAgICAgICAgICAgIFwiYXV0b2hpZGVcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwiYm9vbGVhblwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHtcbiAgICAgICAgICAgIFwiaGlnaGxpZ3RlclwiOiB7XG4gICAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcImhpZ2hsaWdodGVyXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJnZXRJbWFnZURhdGFGcm9tVVJMXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImdldEltYWdlRGF0YUZyb21VUkxcIixcbiAgICAgICAgICAgIFwidXJsXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcInByaW1pdGl2ZVwiXG4gICAgICAgICAgICB9LFxuICAgICAgICA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AgICBcIm1ldGhvZHNcIjogW1xuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwiZ2V0RGV0YWlsc1wiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJnZXREZXRhaWxzXCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJpbmZvXCI6IHtcbiAgICAgICAgICAgICAgXCJfcmV0dmFsXCI6IFwiY2FsbC1kZXRhaWxzXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIF0sXG4gICAgICBcImV2ZW50c1wiOiB7fVxuICAgIH0sXG4gICAgXCJjYWxsLXdhdGNoZXJcIjoge1xuICAgICAgXCJjYXRlZ29yeVwiOiBcImFjdG9yXCIsXG4gICAgICBcInR5cGVOYW1lXCI6IFwiY2FsbC13YXRjaGVyXCIsXG4gICAgICBcIm1ldGhvZHNcIjogW1xuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwic2V0dXBcIixcbiAgICAgICAgICBcIm9uZXdheVwiOiB0cnVlLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJzZXR1cFwiLFxuICAgICAgICAgICAgXCJ0cmFjZWRHbG9iYWxzXCI6IHtcbiAgICAgICAgICAgICAgXCJfb3B0aW9uXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcIm51bGxhYmxlOmFycmF5OnN0cmluZ1wiXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgXCJ0cmFjZWRGdW5jdGlvbnNcIjoge1xuICAgICAgICAgICAgICBcIl9vcHRpb25cIjogMCxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwibnVsbGFibGU6YXJyYXk6c3RyaW5nXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcInN0YXJ0UmVjb3JkaW5nXCI6IHtcbiAgICAgICAgICAgICAgXCJfb3B0aW9uXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcImJvb2xlYW5cIlxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFwicGVyZm9ybVJlbG9hZFwiOiB7XG4gICAgICAgICAgICAgIFwiX29wdGlvblwiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJib29sZWFuXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge31cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImZpbmFsaXplXCIsXG4gICAgICAgICAgXCJvbmV3YXlcIjogdHJ1ZSxcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZmluYWxpemVcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7fVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwiaXNSZWNvcmRpbmdcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiaXNSZWNvcmRpbmdcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJib29sZWFuXCJcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJyZXN1bWVSZWNvcmRpbmdcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwicmVzdW1lUmVjb3JkaW5nXCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge31cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcInBhdXNlUmVjb3JkaW5nXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcInBhdXNlUmVjb3JkaW5nXCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJjYWxsc1wiOiB7XG4gICAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcImFycmF5OmZ1bmN0aW9uLWNhbGxcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImVyYXNlUmVjb3JkaW5nXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImVyYXNlUmVjb3JkaW5nXCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge31cbiAgICAgICAgfVxuICAgICAgXSxcbiAgICAgIFwiZXZlbnRzXCI6IHt9XG4gICAgfSxcbiAgICBcInNuYXBzaG90LWltYWdlXCI6IHtcbiAgICAgIFwiY2F0ZWdvcnlcIjogXCJkaWN0XCIsXG4gICAgICBcInR5cGVOYW1lXCI6IFwic25hcHNob3QtaW1hZ2VcIixcbiAgICAgIFwic3BlY2lhbGl6YXRpb25zXCI6IHtcbiAgICAgICAgXCJpbmRleFwiOiBcIm51bWJlclwiLFxuICAgICAgICBcIndpZHRoXCI6IFwibnVtYmVyXCIsXG4gICAgICAgIFwiaGVpZ2h0XCI6IFwibnVtYmVyXCIsXG4gICAgICAgIFwiZmxpcHBlZFwiOiBcImJvb2xlYW5cIixcbiAgICAgICAgXCJwaXhlbHNcIjogXCJ1aW50MzItYXJyYXlcIlxuICAgICAgfVxuICAgIH0sXG4gICAgXCJzbmFwc2hvdC1vdmVydmlld1wiOiB7XG4gICAgICBcImNhdGVnb3J5XCI6IFwiZGljdFwiLFxuICAgICAgXCJ0eXBlTmFtZVwiOiBcInNuYXBzaG90LW92ZXJ2aWV3XCIsXG4gICAgICBcInNwZWNpYWxpemF0aW9uc1wiOiB7XG4gICAgICAgIFwiY2FsbHNcIjogXCJhcnJheTpmdW5jdGlvbi1jYWxsXCIsXG4gICAgICAgIFwidGh1bWJuYWlsc1wiOiBcImFycmF5OnNuYXBzaG90LWltYWdlXCIsXG4gICAgICAgIFwic2NyZWVuc2hvdFwiOiBcInNuYXBzaG90LWltYWdlXCJcbiAgICAgIH1cbiAgICB9LFxuICAgIFwiZnJhbWUtc25hcHNob3RcIjoge1xuICAgICAgXCJjYXRlZ29yeVwiOiBcImFjdG9yXCIsXG4gICAgICBcInR5cGVOYW1lXCI6IFwiZnJhbWUtc25hcHNob3RcIixcbiAgICAgIFwibWV0aG9kc1wiOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJnZXRPdmVydmlld1wiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJnZXRPdmVydmlld1wiXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHtcbiAgICAgICAgICAgIFwib3ZlcnZpZXdcIjoge1xuICAgICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJzbmFwc2hvdC1vdmVydmlld1wiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwiZ2VuZXJhdGVTY3JlZW5zaG90Rm9yXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImdlbmVyYXRlU2NyZWVuc2hvdEZvclwiLFxuICAgICAgICAgICAgXCJjYWxsXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcImZ1bmN0aW9uLWNhbGxcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcInNjcmVlbnNob3RcIjoge1xuICAgICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJzbmFwc2hvdC1pbWFnZVwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICBdLFxuICAgICAgXCJldmVudHNcIjoge31cbiAgICB9LFxuICAgIFwiY2FudmFzXCI6IHtcbiAgICAgIFwiY2F0ZWdvcnlcIjogXCJhY3RvclwiLFxuICAgICAgXCJ0eXBlTmFtZVwiOiBcImNhbnZhc1wiLFxuICAgICAgXCJtZXRob2RzXCI6IFtcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcInNldHVwXCIsXG4gICAgICAgICAgXCJvbmV3YXlcIjogdHJ1ZSxcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwic2V0dXBcIixcbiAgICAgICAgICAgIFwicmVsb2FkXCI6IHtcbiAgICAgICAgICAgICAgXCJfb3B0aW9uXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcImJvb2xlYW5cIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7fVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwiZmluYWxpemVcIixcbiAgICAgICAgICBcIm9uZXdheVwiOiB0cnVlLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJmaW5hbGl6ZVwiXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHt9XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJpc0luaXRpYWxpemVkXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImlzSW5pdGlhbGl6ZWRcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcImluaXRpYWxpemVkXCI6IHtcbiAgICAgICAgICAgICAgXCJfcmV0dmFsXCI6IFwiYm9vbGVhblwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwicmVjb3JkQW5pbWF0aW9uRnJhbWVcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwicmVjb3JkQW5pbWF0aW9uRnJhbWVcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcInNuYXBzaG90XCI6IHtcbiAgICAgICAgICAgICAgXCJfcmV0dmFsXCI6IFwiZnJhbWUtc25hcHNob3RcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgXSxcbiAgICAgIFwiZXZlbnRzXCI6IHt9XG4gICAgfSxcbiAgICBcImdsLXNoYWRlclwiOiB7XG4gICAgICBcImNhdGVnb3J5XCI6IFwiYWN0b3JcIixcbiAgICAgIFwidHlwZU5hbWVcIjogXCJnbC1zaGFkZXJcIixcbiAgICAgIFwibWV0aG9kc1wiOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJnZXRUZXh0XCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImdldFRleHRcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcInRleHRcIjoge1xuICAgICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJzdHJpbmdcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImNvbXBpbGVcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiY29tcGlsZVwiLFxuICAgICAgICAgICAgXCJ0ZXh0XCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcInN0cmluZ1wiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHtcbiAgICAgICAgICAgIFwiZXJyb3JcIjoge1xuICAgICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJudWxsYWJsZTpqc29uXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIF0sXG4gICAgICBcImV2ZW50c1wiOiB7fVxuICAgIH0sXG4gICAgXCJnbC1wcm9ncmFtXCI6IHtcbiAgICAgIFwiY2F0ZWdvcnlcIjogXCJhY3RvclwiLFxuICAgICAgXCJ0eXBlTmFtZVwiOiBcImdsLXByb2dyYW1cIixcbiAgICAgIFwibWV0aG9kc1wiOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJnZXRWZXJ0ZXhTaGFkZXJcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZ2V0VmVydGV4U2hhZGVyXCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJzaGFkZXJcIjoge1xuICAgICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJnbC1zaGFkZXJcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImdldEZyYWdtZW50U2hhZGVyXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImdldEZyYWdtZW50U2hhZGVyXCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJzaGFkZXJcIjoge1xuICAgICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJnbC1zaGFkZXJcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImhpZ2hsaWdodFwiLFxuICAgICAgICAgIFwib25ld2F5XCI6IHRydWUsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImhpZ2hsaWdodFwiLFxuICAgICAgICAgICAgXCJ0aW50XCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcImFycmF5Om51bWJlclwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHt9XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJ1bmhpZ2hsaWdodFwiLFxuICAgICAgICAgIFwib25ld2F5XCI6IHRydWUsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcInVuaGlnaGxpZ2h0XCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge31cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImJsYWNrYm94XCIsXG4gICAgICAgICAgXCJvbmV3YXlcIjogdHJ1ZSxcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiYmxhY2tib3hcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7fVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwidW5ibGFja2JveFwiLFxuICAgICAgICAgIFwib25ld2F5XCI6IHRydWUsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcInVuYmxhY2tib3hcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7fVxuICAgICAgICB9XG4gICAgICBdLFxuICAgICAgXCJldmVudHNcIjoge31cbiAgICB9LFxuICAgIFwid2ViZ2xcIjoge1xuICAgICAgXCJjYXRlZ29yeVwiOiBcImFjdG9yXCIsXG4gICAgICBcInR5cGVOYW1lXCI6IFwid2ViZ2xcIixcbiAgICAgIFwibWV0aG9kc1wiOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJzZXR1cFwiLFxuICAgICAgICAgIFwib25ld2F5XCI6IHRydWUsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcInNldHVwXCIsXG4gICAgICAgICAgICBcInJlbG9hZFwiOiB7XG4gICAgICAgICAgICAgIFwiX29wdGlvblwiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJib29sZWFuXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge31cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImZpbmFsaXplXCIsXG4gICAgICAgICAgXCJvbmV3YXlcIjogdHJ1ZSxcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZmluYWxpemVcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7fVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwiZ2V0UHJvZ3JhbXNcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZ2V0UHJvZ3JhbXNcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcInByb2dyYW1zXCI6IHtcbiAgICAgICAgICAgICAgXCJfcmV0dmFsXCI6IFwiYXJyYXk6Z2wtcHJvZ3JhbVwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICBdLFxuICAgICAgXCJldmVudHNcIjoge1xuICAgICAgICBcInByb2dyYW0tbGlua2VkXCI6IHtcbiAgICAgICAgICBcInR5cGVcIjogXCJwcm9ncmFtTGlua2VkXCIsXG4gICAgICAgICAgXCJwcm9ncmFtXCI6IHtcbiAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZ2wtcHJvZ3JhbVwiXG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG4gICAgfSxcbiAgICBcImF1ZGlvbm9kZVwiOiB7XG4gICAgICBcImNhdGVnb3J5XCI6IFwiYWN0b3JcIixcbiAgICAgIFwidHlwZU5hbWVcIjogXCJhdWRpb25vZGVcIixcbiAgICAgIFwibWV0aG9kc1wiOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJnZXRUeXBlXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImdldFR5cGVcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjoge1xuICAgICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJzdHJpbmdcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImlzU291cmNlXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImlzU291cmNlXCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJzb3VyY2VcIjoge1xuICAgICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJib29sZWFuXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJzZXRQYXJhbVwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJzZXRQYXJhbVwiLFxuICAgICAgICAgICAgXCJwYXJhbVwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJzdHJpbmdcIlxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFwidmFsdWVcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMSxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwibnVsbGFibGU6cHJpbWl0aXZlXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJlcnJvclwiOiB7XG4gICAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcIm51bGxhYmxlOmpzb25cIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImdldFBhcmFtXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImdldFBhcmFtXCIsXG4gICAgICAgICAgICBcInBhcmFtXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcInN0cmluZ1wiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHtcbiAgICAgICAgICAgIFwidGV4dFwiOiB7XG4gICAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcIm51bGxhYmxlOnByaW1pdGl2ZVwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwiZ2V0UGFyYW1GbGFnc1wiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJnZXRQYXJhbUZsYWdzXCIsXG4gICAgICAgICAgICBcInBhcmFtXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcInN0cmluZ1wiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHtcbiAgICAgICAgICAgIFwiZmxhZ3NcIjoge1xuICAgICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJudWxsYWJsZTpwcmltaXRpdmVcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImdldFBhcmFtc1wiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJnZXRQYXJhbXNcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcInBhcmFtc1wiOiB7XG4gICAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcImpzb25cIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgXSxcbiAgICAgIFwiZXZlbnRzXCI6IHt9XG4gICAgfSxcbiAgICBcIndlYmF1ZGlvXCI6IHtcbiAgICAgIFwiY2F0ZWdvcnlcIjogXCJhY3RvclwiLFxuICAgICAgXCJ0eXBlTmFtZVwiOiBcIndlYmF1ZGlvXCIsXG4gICAgICBcIm1ldGhvZHNcIjogW1xuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwic2V0dXBcIixcbiAgICAgICAgICBcIm9uZXdheVwiOiB0cnVlLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJzZXR1cFwiLFxuICAgICAgICAgICAgXCJyZWxvYWRcIjoge1xuICAgICAgICAgICAgICBcIl9vcHRpb25cIjogMCxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwiYm9vbGVhblwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHt9XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJmaW5hbGl6ZVwiLFxuICAgICAgICAgIFwib25ld2F5XCI6IHRydWUsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImZpbmFsaXplXCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge31cbiAgICAgICAgfVxuICAgICAgXSxcbiAgICAgIFwiZXZlbnRzXCI6IHtcbiAgICAgICAgXCJzdGFydC1jb250ZXh0XCI6IHtcbiAgICAgICAgICBcInR5cGVcIjogXCJzdGFydENvbnRleHRcIlxuICAgICAgICB9LFxuICAgICAgICBcImNvbm5lY3Qtbm9kZVwiOiB7XG4gICAgICAgICAgXCJ0eXBlXCI6IFwiY29ubmVjdE5vZGVcIixcbiAgICAgICAgICBcInNvdXJjZVwiOiB7XG4gICAgICAgICAgICBcIl9vcHRpb25cIjogMCxcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImF1ZGlvbm9kZVwiXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcImRlc3RcIjoge1xuICAgICAgICAgICAgXCJfb3B0aW9uXCI6IDAsXG4gICAgICAgICAgICBcInR5cGVcIjogXCJhdWRpb25vZGVcIlxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgXCJkaXNjb25uZWN0LW5vZGVcIjoge1xuICAgICAgICAgIFwidHlwZVwiOiBcImRpc2Nvbm5lY3ROb2RlXCIsXG4gICAgICAgICAgXCJzb3VyY2VcIjoge1xuICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICBcInR5cGVcIjogXCJhdWRpb25vZGVcIlxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgXCJjb25uZWN0LXBhcmFtXCI6IHtcbiAgICAgICAgICBcInR5cGVcIjogXCJjb25uZWN0UGFyYW1cIixcbiAgICAgICAgICBcInNvdXJjZVwiOiB7XG4gICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImF1ZGlvbm9kZVwiXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInBhcmFtXCI6IHtcbiAgICAgICAgICAgIFwiX2FyZ1wiOiAxLFxuICAgICAgICAgICAgXCJ0eXBlXCI6IFwic3RyaW5nXCJcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIFwiY2hhbmdlLXBhcmFtXCI6IHtcbiAgICAgICAgICBcInR5cGVcIjogXCJjaGFuZ2VQYXJhbVwiLFxuICAgICAgICAgIFwic291cmNlXCI6IHtcbiAgICAgICAgICAgIFwiX29wdGlvblwiOiAwLFxuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiYXVkaW9ub2RlXCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicGFyYW1cIjoge1xuICAgICAgICAgICAgXCJfb3B0aW9uXCI6IDAsXG4gICAgICAgICAgICBcInR5cGVcIjogXCJzdHJpbmdcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJ2YWx1ZVwiOiB7XG4gICAgICAgICAgICBcIl9vcHRpb25cIjogMCxcbiAgICAgICAgICAgIFwidHlwZVwiOiBcInN0cmluZ1wiXG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBcImNyZWF0ZS1ub2RlXCI6IHtcbiAgICAgICAgICBcInR5cGVcIjogXCJjcmVhdGVOb2RlXCIsXG4gICAgICAgICAgXCJzb3VyY2VcIjoge1xuICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICBcInR5cGVcIjogXCJhdWRpb25vZGVcIlxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuICAgIH0sXG4gICAgXCJvbGQtc3R5bGVzaGVldFwiOiB7XG4gICAgICBcImNhdGVnb3J5XCI6IFwiYWN0b3JcIixcbiAgICAgIFwidHlwZU5hbWVcIjogXCJvbGQtc3R5bGVzaGVldFwiLFxuICAgICAgXCJtZXRob2RzXCI6IFtcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcInRvZ2dsZURpc2FibGVkXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcInRvZ2dsZURpc2FibGVkXCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJkaXNhYmxlZFwiOiB7XG4gICAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcImJvb2xlYW5cIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImZldGNoU291cmNlXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImZldGNoU291cmNlXCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge31cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcInVwZGF0ZVwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJ1cGRhdGVcIixcbiAgICAgICAgICAgIFwidGV4dFwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJzdHJpbmdcIlxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFwidHJhbnNpdGlvblwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAxLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJib29sZWFuXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge31cbiAgICAgICAgfVxuICAgICAgXSxcbiAgICAgIFwiZXZlbnRzXCI6IHtcbiAgICAgICAgXCJwcm9wZXJ0eS1jaGFuZ2VcIjoge1xuICAgICAgICAgIFwidHlwZVwiOiBcInByb3BlcnR5Q2hhbmdlXCIsXG4gICAgICAgICAgXCJwcm9wZXJ0eVwiOiB7XG4gICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgIFwidHlwZVwiOiBcInN0cmluZ1wiXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInZhbHVlXCI6IHtcbiAgICAgICAgICAgIFwiX2FyZ1wiOiAxLFxuICAgICAgICAgICAgXCJ0eXBlXCI6IFwianNvblwiXG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICBcInNvdXJjZS1sb2FkXCI6IHtcbiAgICAgICAgICBcInR5cGVcIjogXCJzb3VyY2VMb2FkXCIsXG4gICAgICAgICAgXCJzb3VyY2VcIjoge1xuICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICBcInR5cGVcIjogXCJzdHJpbmdcIlxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgXCJzdHlsZS1hcHBsaWVkXCI6IHtcbiAgICAgICAgICBcInR5cGVcIjogXCJzdHlsZUFwcGxpZWRcIlxuICAgICAgICB9XG4gICAgICB9XG4gICAgfSxcbiAgICBcInN0eWxlZWRpdG9yXCI6IHtcbiAgICAgIFwiY2F0ZWdvcnlcIjogXCJhY3RvclwiLFxuICAgICAgXCJ0eXBlTmFtZVwiOiBcInN0eWxlZWRpdG9yXCIsXG4gICAgICBcIm1ldGhvZHNcIjogW1xuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwibmV3RG9jdW1lbnRcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwibmV3RG9jdW1lbnRcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7fVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwibmV3U3R5bGVTaGVldFwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJuZXdTdHlsZVNoZWV0XCIsXG4gICAgICAgICAgICBcInRleHRcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwic3RyaW5nXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJzdHlsZVNoZWV0XCI6IHtcbiAgICAgICAgICAgICAgXCJfcmV0dmFsXCI6IFwib2xkLXN0eWxlc2hlZXRcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgXSxcbiAgICAgIFwiZXZlbnRzXCI6IHtcbiAgICAgICAgXCJkb2N1bWVudC1sb2FkXCI6IHtcbiAgICAgICAgICBcInR5cGVcIjogXCJkb2N1bWVudExvYWRcIixcbiAgICAgICAgICBcInN0eWxlU2hlZXRzXCI6IHtcbiAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiYXJyYXk6b2xkLXN0eWxlc2hlZXRcIlxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfVxuICAgIH0sXG4gICAgXCJjb29raWVvYmplY3RcIjoge1xuICAgICAgXCJjYXRlZ29yeVwiOiBcImRpY3RcIixcbiAgICAgIFwidHlwZU5hbWVcIjogXCJjb29raWVvYmplY3RcIixcbiAgICAgIFwic3BlY2lhbGl6YXRpb25zXCI6IHtcbiAgICAgICAgXCJuYW1lXCI6IFwic3RyaW5nXCIsXG4gICAgICAgIFwidmFsdWVcIjogXCJsb25nc3RyaW5nXCIsXG4gICAgICAgIFwicGF0aFwiOiBcIm51bGxhYmxlOnN0cmluZ1wiLFxuICAgICAgICBcImhvc3RcIjogXCJzdHJpbmdcIixcbiAgICAgICAgXCJpc0RvbWFpblwiOiBcImJvb2xlYW5cIixcbiAgICAgICAgXCJpc1NlY3VyZVwiOiBcImJvb2xlYW5cIixcbiAgICAgICAgXCJpc0h0dHBPbmx5XCI6IFwiYm9vbGVhblwiLFxuICAgICAgICBcImNyZWF0aW9uVGltZVwiOiBcIm51bWJlclwiLFxuICAgICAgICBcImxhc3RBY2Nlc3NlZFwiOiBcIm51bWJlclwiLFxuICAgICAgICBcImV4cGlyZXNcIjogXCJudW1iZXJcIlxuICAgICAgfVxuICAgIH0sXG4gICAgXCJjb29raWVzdG9yZW9iamVjdFwiOiB7XG4gICAgICBcImNhdGVnb3J5XCI6IFwiZGljdFwiLFxuICAgICAgXCJ0eXBlTmFtZVwiOiBcImNvb2tpZXN0b3Jlb2JqZWN0XCIsXG4gICAgICBcInNwZWNpYWxpemF0aW9uc1wiOiB7XG4gICAgICAgIFwidG90YWxcIjogXCJudW1iZXJcIixcbiAgICAgICAgXCJvZmZzZXRcIjogXCJudW1iZXJcIixcbiAg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ZWdvcnlcIjogXCJhY3RvclwiLFxuICAgICAgXCJ0eXBlTmFtZVwiOiBcImNvb2tpZXNcIixcbiAgICAgIFwibWV0aG9kc1wiOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJnZXRTdG9yZU9iamVjdHNcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZ2V0U3RvcmVPYmplY3RzXCIsXG4gICAgICAgICAgICBcImhvc3RcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwicHJpbWl0aXZlXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcIm5hbWVzXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDEsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcIm51bGxhYmxlOmFycmF5OnN0cmluZ1wiXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgXCJvcHRpb25zXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDIsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcIm51bGxhYmxlOmpzb25cIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJjb29raWVzdG9yZW9iamVjdFwiXG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICBdLFxuICAgICAgXCJldmVudHNcIjoge31cbiAgICB9LFxuICAgIFwibG9jYWxTdG9yYWdlXCI6IHtcbiAgICAgIFwiY2F0ZWdvcnlcIjogXCJhY3RvclwiLFxuICAgICAgXCJ0eXBlTmFtZVwiOiBcImxvY2FsU3RvcmFnZVwiLFxuICAgICAgXCJtZXRob2RzXCI6IFtcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImdldFN0b3JlT2JqZWN0c1wiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJnZXRTdG9yZU9iamVjdHNcIixcbiAgICAgICAgICAgIFwiaG9zdFwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJwcmltaXRpdmVcIlxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFwibmFtZXNcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMSxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwibnVsbGFibGU6YXJyYXk6c3RyaW5nXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcIm9wdGlvbnNcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMixcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwibnVsbGFibGU6anNvblwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHtcbiAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcInN0b3JhZ2VzdG9yZW9iamVjdFwiXG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICBdLFxuICAgICAgXCJldmVudHNcIjoge31cbiAgICB9LFxuICAgIFwic2Vzc2lvblN0b3JhZ2VcIjoge1xuICAgICAgXCJjYXRlZ29yeVwiOiBcImFjdG9yXCIsXG4gICAgICBcInR5cGVOYW1lXCI6IFwic2Vzc2lvblN0b3JhZ2VcIixcbiAgICAgIFwibWV0aG9kc1wiOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJnZXRTdG9yZU9iamVjdHNcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZ2V0U3RvcmVPYmplY3RzXCIsXG4gICAgICAgICAgICBcImhvc3RcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwicHJpbWl0aXZlXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcIm5hbWVzXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDEsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcIm51bGxhYmxlOmFycmF5OnN0cmluZ1wiXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgXCJvcHRpb25zXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDIsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcIm51bGxhYmxlOmpzb25cIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJzdG9yYWdlc3RvcmVvYmplY3RcIlxuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgXSxcbiAgICAgIFwiZXZlbnRzXCI6IHt9XG4gICAgfSxcbiAgICBcImluZGV4ZWREQlwiOiB7XG4gICAgICBcImNhdGVnb3J5XCI6IFwiYWN0b3JcIixcbiAgICAgIFwidHlwZU5hbWVcIjogXCJpbmRleGVkREJcIixcbiAgICAgIFwibWV0aG9kc1wiOiBbXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJnZXRTdG9yZU9iamVjdHNcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZ2V0U3RvcmVPYmplY3RzXCIsXG4gICAgICAgICAgICBcImhvc3RcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwicHJpbWl0aXZlXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcIm5hbWVzXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDEsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcIm51bGxhYmxlOmFycmF5OnN0cmluZ1wiXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgXCJvcHRpb25zXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDIsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcIm51bGxhYmxlOmpzb25cIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJpZGJzdG9yZW9iamVjdFwiXG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICBdLFxuICAgICAgXCJldmVudHNcIjoge31cbiAgICB9LFxuICAgIFwic3RvcmVsaXN0XCI6IHtcbiAgICAgIFwiY2F0ZWdvcnlcIjogXCJkaWN0XCIsXG4gICAgICBcInR5cGVOYW1lXCI6IFwic3RvcmVsaXN0XCIsXG4gICAgICBcInNwZWNpYWxpemF0aW9uc1wiOiB7XG4gICAgICAgIFwiY29va2llc1wiOiBcImNvb2tpZXNcIixcbiAgICAgICAgXCJsb2NhbFN0b3JhZ2VcIjogXCJsb2NhbFN0b3JhZ2VcIixcbiAgICAgICAgXCJzZXNzaW9uU3RvcmFnZVwiOiBcInNlc3Npb25TdG9yYWdlXCIsXG4gICAgICAgIFwiaW5kZXhlZERCXCI6IFwiaW5kZXhlZERCXCJcbiAgICAgIH1cbiAgICB9LFxuICAgIFwic3RvcmFnZVwiOiB7XG4gICAgICBcImNhdGVnb3J5XCI6IFwiYWN0b3JcIixcbiAgICAgIFwidHlwZU5hbWVcIjogXCJzdG9yYWdlXCIsXG4gICAgICBcIm1ldGhvZHNcIjogW1xuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwibGlzdFN0b3Jlc1wiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJsaXN0U3RvcmVzXCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJfcmV0dmFsXCI6IFwic3RvcmVsaXN0XCJcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIF0sXG4gICAgICBcImV2ZW50c1wiOiB7XG4gICAgICAgIFwic3RvcmVzLXVwZGF0ZVwiOiB7XG4gICAgICAgICAgXCJ0eXBlXCI6IFwic3RvcmVzVXBkYXRlXCIsXG4gICAgICAgICAgXCJkYXRhXCI6IHtcbiAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgXCJ0eXBlXCI6IFwic3RvcmVVcGRhdGVPYmplY3RcIlxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgXCJzdG9yZXMtY2xlYXJlZFwiOiB7XG4gICAgICAgICAgXCJ0eXBlXCI6IFwic3RvcmVzQ2xlYXJlZFwiLFxuICAgICAgICAgIFwiZGF0YVwiOiB7XG4gICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImpzb25cIlxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAgXCJzdG9yZXMtcmVsb2FkZWRcIjoge1xuICAgICAgICAgIFwidHlwZVwiOiBcInN0b3Jlc1JlbGFvZGVkXCIsXG4gICAgICAgICAgXCJkYXRhXCI6IHtcbiAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgXCJ0eXBlXCI6IFwianNvblwiXG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG4gICAgfSxcbiAgICBcImdjbGlcIjoge1xuICAgICAgXCJjYXRlZ29yeVwiOiBcImFjdG9yXCIsXG4gICAgICBcInR5cGVOYW1lXCI6IFwiZ2NsaVwiLFxuICAgICAgXCJtZXRob2RzXCI6IFtcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcInNwZWNzXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcInNwZWNzXCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJfcmV0dmFsXCI6IFwianNvblwiXG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwiZXhlY3V0ZVwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJleGVjdXRlXCIsXG4gICAgICAgICAgICBcInR5cGVkXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcInN0cmluZ1wiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHtcbiAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcImpzb25cIlxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcInN0YXRlXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcInN0YXRlXCIsXG4gICAgICAgICAgICBcInR5cGVkXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcInN0cmluZ1wiXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgXCJzdGFydFwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAxLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJudW1iZXJcIlxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFwicmFua1wiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAyLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJudW1iZXJcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJqc29uXCJcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJ0eXBlcGFyc2VcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwidHlwZXBhcnNlXCIsXG4gICAgICAgICAgICBcInR5cGVkXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcInN0cmluZ1wiXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgXCJwYXJhbVwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAxLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJzdHJpbmdcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJqc29uXCJcbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJ0eXBlaW5jcmVtZW50XCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcInR5cGVpbmNyZW1lbnRcIixcbiAgICAgICAgICAgIFwidHlwZWRcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwic3RyaW5nXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcInBhcmFtXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDEsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcInN0cmluZ1wiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHtcbiAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcInN0cmluZ1wiXG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwidHlwZWRlY3JlbWVudFwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJ0eXBlZGVjcmVtZW50XCIsXG4gICAgICAgICAgICBcInR5cGVkXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcInN0cmluZ1wiXG4gICAgICAgICAgICB9LFxuICAgICAgICAgICAgXCJwYXJhbVwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAxLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJzdHJpbmdcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJzdHJpbmdcIlxuICAgICAgICAgIH1cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcInNlbGVjdGlvbmluZm9cIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwic2VsZWN0aW9uaW5mb1wiLFxuICAgICAgICAgICAgXCJ0eXBlZFwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJzdHJpbmdcIlxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFwicGFyYW1cIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMSxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwic3RyaW5nXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcImFjdGlvblwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAxLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJzdHJpbmdcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJqc29uXCJcbiAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICAgIF0sXG4gICAgICBcImV2ZW50c1wiOiB7fVxuICAgIH0sXG4gICAgXCJtZW1vcnlcIjoge1xuICAgICAgXCJjYXRlZ29yeVwiOiBcImFjdG9yXCIsXG4gICAgICBcInR5cGVOYW1lXCI6IFwibWVtb3J5XCIsXG4gICAgICBcIm1ldGhvZHNcIjogW1xuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwibWVhc3VyZVwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJtZWFzdXJlXCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJfcmV0dmFsXCI6IFwianNvblwiXG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICBdLFxuICAgICAgXCJldmVudHNcIjoge31cbiAgICB9LFxuICAgIFwiZXZlbnRMb29wTGFnXCI6IHtcbiAgICAgIFwiY2F0ZWdvcnlcIjogXCJhY3RvclwiLFxuICAgICAgXCJ0eXBlTmFtZVwiOiBcImV2ZW50TG9vcExhZ1wiLFxuICAgICAgXCJtZXRob2RzXCI6IFtcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcInN0YXJ0XCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcInN0YXJ0XCJcbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJzdWNjZXNzXCI6IHtcbiAgICAgICAgICAgICAgXCJfcmV0dmFsXCI6IFwibnVtYmVyXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJzdG9wXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcInN0b3BcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7fVxuICAgICAgICB9XG4gICAgICBdLFxuICAgICAgXCJldmVudHNcIjoge1xuICAgICAgICBcImV2ZW50LWxvb3AtbGFnXCI6IHtcbiAgICAgICAgICBcInR5cGVcIjogXCJldmVudC1sb29wLWxhZ1wiLFxuICAgICAgICAgIFwidGltZVwiOiB7XG4gICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgIFwidHlwZVwiOiBcIm51bWJlclwiXG4gICAgICAgICAgfVxuICAgICAgICB9XG4gICAgICB9XG4gICAgfSxcbiAgICBcInByZWZlcmVuY2VcIjoge1xuICAgICAgXCJjYXRlZ29yeVwiOiBcImFjdG9yXCIsXG4gICAgICBcInR5cGVOYW1lXCI6IFwicHJlZmVyZW5jZVwiLFxuICAgICAgXCJtZXRob2RzXCI6IFtcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImdldEJvb2xQcmVmXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImdldEJvb2xQcmVmXCIsXG4gICAgICAgICAgICBcInZhbHVlXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcInByaW1pdGl2ZVwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHtcbiAgICAgICAgICAgIFwidmFsdWVcIjoge1xuICAgICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJib29sZWFuXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJnZXRDaGFyUHJlZlwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICAgICAgICBcInR5cGVcIjogXCJnZXRDaGFyUHJlZlwiLFxuICAgICAgICAgICAgXCJ2YWx1ZVwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJwcmltaXRpdmVcIlxuICAgICAgICAgICAgfVxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcInZhbHVlXCI6IHtcbiAgICAgICAgICAgICAgXCJfcmV0dmFsXCI6IFwic3RyaW5nXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJnZXRJbnRQcmVmXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImdldEludFByZWZcIixcbiAgICAgICAgICAgIFwidmFsdWVcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwicHJpbWl0aXZlXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge1xuICAgICAgICAgICAgXCJ2YWx1ZVwiOiB7XG4gICAgICAgICAgICAgIFwiX3JldHZhbFwiOiBcIm51bWJlclwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwiZ2V0QWxsUHJlZnNcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZ2V0QWxsUHJlZnNcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcInZhbHVlXCI6IHtcbiAgICAgICAgICAgICAgXCJfcmV0dmFsXCI6IFwianNvblwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwic2V0Qm9vbFByZWZcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwic2V0Qm9vbFByZWZcIixcbiAgICAgICAgICAgIFwibmFtZVwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJwcmltaXRpdmVcIlxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFwidmFsdWVcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMSxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwicHJpbWl0aXZlXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge31cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcInNldENoYXJQcmVmXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcInNldENoYXJQcmVmXCIsXG4gICAgICAgICAgICBcIm5hbWVcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMCxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwicHJpbWl0aXZlXCJcbiAgICAgICAgICAgIH0sXG4gICAgICAgICAgICBcInZhbHVlXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDEsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcInByaW1pdGl2ZVwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHt9XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJzZXRJbnRQcmVmXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcInNldEludFByZWZcIixcbiAgICAgICAgICAgIFwibmFtZVwiOiB7XG4gICAgICAgICAgICAgIFwiX2FyZ1wiOiAwLFxuICAgICAgICAgICAgICBcInR5cGVcIjogXCJwcmltaXRpdmVcIlxuICAgICAgICAgICAgfSxcbiAgICAgICAgICAgIFwidmFsdWVcIjoge1xuICAgICAgICAgICAgICBcIl9hcmdcIjogMSxcbiAgICAgICAgICAgICAgXCJ0eXBlXCI6IFwicHJpbWl0aXZlXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9LFxuICAgICAgICAgIFwicmVzcG9uc2VcIjoge31cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIFwibmFtZVwiOiBcImNsZWFyVXNlclByZWZcIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiY2xlYXJVc2VyUHJlZlwiLFxuICAgICAgICAgICAgXCJuYW1lXCI6IHtcbiAgICAgICAgICAgICAgXCJfYXJnXCI6IDAsXG4gICAgICAgICAgICAgIFwidHlwZVwiOiBcInByaW1pdGl2ZVwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHt9XG4gICAgICAgIH1cbiAgICAgIF0sXG4gICAgICBcImV2ZW50c1wiOiB7fVxuICAgIH0sXG4gICAgXCJkZXZpY2VcIjoge1xuICAgICAgXCJjYXRlZ29yeVwiOiBcImFjdG9yXCIsXG4gICAgICBcInR5cGVOYW1lXCI6IFwiZGV2aWNlXCIsXG4gICAgICBcIm1ldGhvZHNcIjogW1xuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwiZ2V0RGVzY3JpcHRpb25cIixcbiAgICAgICAgICBcInJlcXVlc3RcIjoge1xuICAgICAgICAgICAgXCJ0eXBlXCI6IFwiZ2V0RGVzY3JpcHRpb25cIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcInZhbHVlXCI6IHtcbiAgICAgICAgICAgICAgXCJfcmV0dmFsXCI6IFwianNvblwiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwiZ2V0V2FsbHBhcGVyXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcImdldFdhbGxwYXBlclwiXG4gICAgICAgICAgfSxcbiAgICAgICAgICBcInJlc3BvbnNlXCI6IHtcbiAgICAgICAgICAgIFwidmFsdWVcIjoge1xuICAgICAgICAgICAgICBcIl9yZXR2YWxcIjogXCJsb25nc3RyaW5nXCJcbiAgICAgICAgICAgIH1cbiAgICAgICAgICB9XG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBcIm5hbWVcIjogXCJzY3JlZW5zaG90VG9EYXRhVVJMXCIsXG4gICAgICAgICAgXCJyZXF1ZXN0XCI6IHtcbiAgICAgICAgICAgIFwidHlwZVwiOiBcInNjcmVlbnNob3RUb0RhdGFVUkxcIlxuICAgICAgICAgIH0sXG4gICAgICAgICAgXCJyZXNwb25zZVwiOiB7XG4gICAgICAgICAgICBcInZhbHVlXCI6IHtcbiAgICAgICAgICAgICAgXCJfcmV0dmFsXCI6IFwibG9uZ3N0cmluZ1wiXG4gICAgICAgICAgICB9XG4gICAgICAgICAgfVxuICAgICAgICB9LFxuICAgICAgICB7XG4gICAgICAgICAgXCJuYW1lXCI6IFwiZ2V0UmF3UGVybWlzc2lvbnNUYWJsZVwiLFxuICAgICAgICAgIFwicmVxdWVzdFwiOiB7XG4gICAgICA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1bmN0aW9uKGRlc2NyaXB0b3IpIHtcbiAgICAgICAgdGhpcy50eXBlID0gZGVzY3JpcHRvci50eXBlTmFtZTtcbiAgICAgICAgdGhpcy50eXBlcyA9IGRlc2NyaXB0b3Iuc3BlY2lhbGl6YXRpb25zO1xuXG4gICAgICAgIHZhciBwcm90byA9IE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKHtcbiAgICAgICAgICBleHRlbmRzOiBEaWN0aW9uYXJ5VHlwZSxcbiAgICAgICAgICBjb25zdHJ1Y3RvcjogZnVuY3Rpb24oc3RhdGUsIGNvbnRleHQpIHtcbiAgICAgICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKHRoaXMsIHtcbiAgICAgICAgICAgICAgc3RhdGU6IHtcbiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSxcbiAgICAgICAgICAgICAgICB3cml0YWJsZTogdHJ1ZSxcbiAgICAgICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUsXG4gICAgICAgICAgICAgICAgdmFsdWU6IHN0YXRlXG4gICAgICAgICAgICAgIH0sXG4gICAgICAgICAgICAgIGNvbnRleHQ6IHtcbiAgICAgICAgICAgICAgICBlbnVtZXJhYmxlOiBmYWxzZSxcbiAgICAgICAgICAgICAgICB3cml0YWJsZTogZmFsc2UsXG4gICAgICAgICAgICAgICAgY29uZmlndXJhYmxlOiB0cnVlLFxuICAgICAgICAgICAgICAgIHZhbHVlOiBjb250ZXh0XG4gICAgICAgICAgICAgIH1cbiAgICAgICAgICAgIH0pO1xuICAgICAgICAgIH1cbiAgICAgICAgfSwgbWFrZUZpZWxkcyh0aGlzLnR5cGVzKSk7XG5cbiAgICAgICAgdGhpcy5jbGFzcyA9IG5ldyBDbGFzcyhwcm90byk7XG4gICAgICB9LFxuICAgICAgcmVhZDogZnVuY3Rpb24oaW5wdXQsIGNvbnRleHQpIHtcbiAgICAgICAgcmV0dXJuIG5ldyB0aGlzLmNsYXNzKGlucHV0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AgICB9IGVsc2Uge1xuICAgICAgICAgICAgdHlwZXNba2V5XSA9IGRlc2NyaXB0b3Jba2V5XS50eXBlO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgICAgfSxcbiAgICAgIHJlYWQ6IGZ1bmN0aW9uKGlucHV0LCBjb250ZXh0KSB7XG4gICAgICAgIHZhciBvdXRwdXQgPSB7fTtcbiAgICAgICAgdmFyIHR5cGVzID0gdGhpcy50eXBlcztcbiAgICAgICAgZm9yICh2YXIga2V5IGluIGlucHV0KSB7XG4gICAgICAgICAgb3V0cHV0W2tleV0gPSByZWFkKGlucHV0W2tleV0sIGNvbnRleHQsIHR5cGVzW2tleV0pO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBvdXRwdXQ7XG4gICAgICB9LFxuICAgICAgd3JpdGU6IGZ1bmN0aW9uKGlucHV0LCBjb250ZXh0KSB7XG4gICAgICAgIHZhciBvdXRwdXQgPSB7fTtcbiAgICAgICAgdmFyIHR5cGVzID0gdGhpcy50eXBlcztcbiAgICAgICAgZm9yICh2YXIga2V5IGluIHRoaXMudHlwZXMpIHtcbiAgICAgICAgICBvdXRwdXRba2V5XSA9IHdyaXRlKGlucHV0W2tleV0sIGNvbnRleHQsIHR5cGVzW2tleV0pO1xuICAgICAgICB9XG4gICAgICAgIHJldHVybiBvdXRwdXQ7XG4gICAgICB9XG4gICAgfSk7XG5cbiAgICB2YXIgRnJvbnQgPSBDbGFzcyh7XG4gICAgICBleHRlbmRzOiBFdmVudFRhcmdldCxcbiAgICAgIEV2ZW50VGFyZ2V0OiBFdmVudFRhcmdldCxcbiAgICAgIGNvbnN0cnVjdG9yOiBmdW5jdGlvbihzdGF0ZSkge1xuICAgICAgICB0aGlzLkV2ZW50VGFyZ2V0KCk7XG4gICAgICAgIE9iamVjdC5kZWZpbmVQcm9wZXJ0aWVzKHRoaXMsICB7XG4gICAgICAgICAgc3RhdGU6IHtcbiAgICAgICAgICAgIGVudW1lcmFibGU6IGZhbHNlLFxuICAgICAgICAgICAgd3JpdGFibGU6IHRydWUsXG4gICAgICAgICAgICBjb25maWd1cmFibGU6IHRydWUsXG4gICAgICAgICAgICB2YWx1ZTogc3RhdGVcbiAgICAgICAgICB9XG4gICAgICAgIH0pO1xuXG4gICAgICAgIGNsaWVudC5yZWdpc3Rlcih0aGlzKTtcbiAgICAgIH0sXG4gICAgICBnZXQgaWQoKSB7XG4gICAgICAgIHJldHVybiB0aGlzLnN0YXRlLmFjdG9yO1xuICAgICAgfSxcbiAgICAgIGdldCBjb250ZXh0KCkge1xuICAgICAgICByZXR1cm4gdGhpcztcbiAgICAgIH0sXG4gICAgICBmb3JtOiBmdW5jdGlvbihzdGF0ZSwgZGV0YWlsLCBjb250ZXh0KSB7XG4gICAgICAgIGlmICh0aGlzLnN0YXRlICE9PSBzdGF0ZSkge1xuICAgICAgICAgIGlmIChkZXRhaWwpIHtcbiAgICAgICAgICAgIHRoaXMuc3RhdGVbZGV0YWlsXSA9IHN0YXRlW2RldGFpbF07XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHBhaXJzKHN0YXRlKS5mb3JFYWNoKGZ1bmN0aW9uKHBhaXIpIHtcbiAgICAgICAgICAgICAgdmFyIGtleSA9IHBhaXJbMF0sIHZhbHVlID0gcGFpclsxXTtcbiAgICAgICAgICAgICAgdGhpcy5zdGF0ZVtrZXldID0gdmFsdWU7XG4gICAgICAgICAgICB9LCB0aGlzKTtcbiAgICAgICAgICB9XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoY29udGV4dCkge1xuICAgICAgICAgIGNsaWVudC5zdXBlcnZpc2UoY29udGV4dCwgdGhpcyk7XG4gICAgICAgIH1cbiAgICAgIH0sXG4gICAgICByZXF1ZXN0VHlwZXM6IGZ1bmN0aW9uKCkge1xuICAgICAgICByZXR1cm4gY2xpZW50LnJlcXVlc3Qoe1xuICAgICAgICAgIHRvOiB0aGlzLmlkLFxuICAgICAgICAgIHR5cGU6IFwicmVxdWVzdFR5cGVzX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