highmark-cli 0.0.135 → 0.0.139
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/action/publish.js +2 -0
- package/bin/constants.js +3 -1
- package/bin/handler/liveReload.js +18 -0
- package/bin/operation/copyCheckmark.js +32 -0
- package/bin/operation/copyClient.js +5 -5
- package/bin/operation/markdownStylesCSS.js +2 -2
- package/bin/operation/server.js +7 -10
- package/bin/router/static.js +17 -0
- package/checkmark.svg +12 -0
- package/client.js +6342 -773
- package/css/loading.css +32 -32
- package/lib/client.js +22 -9
- package/lib/constants.js +55 -23
- package/lib/createMethods.js +64 -0
- package/lib/customEventTypes.js +48 -4
- package/lib/eventTypes.js +5 -1
- package/lib/localStorage.js +56 -0
- package/lib/mixins/fullsrean.js +63 -0
- package/lib/mixins/touch.js +414 -70
- package/lib/position/relative.js +97 -0
- package/lib/position.js +8 -36
- package/lib/selectors.js +26 -0
- package/lib/state.js +133 -0
- package/lib/styles.js +78 -0
- package/lib/utilities/element.js +6 -3
- package/lib/utilities/fullScreen.js +16 -0
- package/lib/utilities/orientation.js +39 -0
- package/lib/utilities/positions.js +143 -0
- package/lib/view/button/closeMenu.js +121 -0
- package/lib/view/button/fullScreen.js +121 -0
- package/lib/view/button/zoomMenuIn.js +121 -0
- package/lib/view/button/zoomMenuOut.js +121 -0
- package/lib/view/button.js +160 -0
- package/lib/view/checkbox.js +193 -0
- package/lib/view/div/buttons.js +215 -0
- package/lib/view/div/checkbox/invertColours.js +151 -0
- package/lib/view/div/checkbox/restoreNativeGestures.js +147 -0
- package/lib/view/div/checkbox.js +220 -0
- package/lib/view/div/checkboxes.js +211 -0
- package/lib/view/div/leaf.js +16 -20
- package/lib/view/div/menu.js +332 -0
- package/lib/view/div/overlay.js +650 -0
- package/lib/view/div/preloader.js +204 -0
- package/lib/view/element.js +164 -0
- package/lib/view/span.js +182 -0
- package/lib/view/svg/closeMenu.js +138 -0
- package/lib/view/svg/fullScreen.js +138 -0
- package/lib/view/svg/zoomMenuIn.js +146 -0
- package/lib/view/svg/zoomMenuOut.js +141 -0
- package/lib/view/svg.js +184 -0
- package/lib/view.js +48 -221
- package/package.json +7 -6
- package/src/client.js +30 -10
- package/src/constants.js +16 -8
- package/src/createMethods.js +66 -0
- package/src/customEventTypes.js +12 -1
- package/src/eventTypes.js +1 -0
- package/src/localStorage.js +48 -0
- package/src/mixins/fullsrean.js +75 -0
- package/src/mixins/touch.js +614 -77
- package/src/position/relative.js +63 -0
- package/src/position.js +10 -48
- package/src/selectors.js +5 -0
- package/src/state.js +130 -0
- package/src/styles.js +18 -0
- package/src/utilities/element.js +7 -2
- package/src/utilities/fullScreen.js +8 -0
- package/src/utilities/orientation.js +34 -0
- package/src/utilities/positions.js +127 -0
- package/src/view/button/closeMenu.js +16 -0
- package/src/view/button/fullScreen.js +16 -0
- package/src/view/button/zoomMenuIn.js +16 -0
- package/src/view/button/zoomMenuOut.js +16 -0
- package/src/view/button.js +38 -0
- package/src/view/checkbox.js +68 -0
- package/src/view/div/buttons.js +39 -0
- package/src/view/div/checkbox/invertColours.js +33 -0
- package/src/view/div/checkbox/restoreNativeGestures.js +29 -0
- package/src/view/div/checkbox.js +45 -0
- package/src/view/div/checkboxes.js +36 -0
- package/src/view/div/leaf.js +20 -28
- package/src/view/div/menu.js +119 -0
- package/src/view/div/overlay.js +578 -0
- package/src/view/div/preloader.js +25 -0
- package/src/view/element.js +16 -0
- package/src/view/span.js +22 -0
- package/src/view/svg/closeMenu.js +19 -0
- package/src/view/svg/fullScreen.js +19 -0
- package/src/view/svg/zoomMenuIn.js +20 -0
- package/src/view/svg/zoomMenuOut.js +19 -0
- package/src/view/svg.js +24 -0
- package/src/view.js +31 -254
- package/template/default.html +10 -4
- package/lib/mixins/event.js +0 -46
- package/lib/velocity.js +0 -82
- package/src/mixins/event.js +0 -56
- package/src/velocity.js +0 -45
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
function _export(target, all) {
|
|
6
|
+
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
+
enumerable: true,
|
|
8
|
+
get: all[name]
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
_export(exports, {
|
|
12
|
+
filterPositions: function() {
|
|
13
|
+
return filterPositions;
|
|
14
|
+
},
|
|
15
|
+
matchPositions: function() {
|
|
16
|
+
return matchPositions;
|
|
17
|
+
},
|
|
18
|
+
positionsFromMouseEvent: function() {
|
|
19
|
+
return positionsFromMouseEvent;
|
|
20
|
+
},
|
|
21
|
+
positionsFromTouchEvent: function() {
|
|
22
|
+
return positionsFromTouchEvent;
|
|
23
|
+
},
|
|
24
|
+
sortPositions: function() {
|
|
25
|
+
return sortPositions;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
var _necessary = require("necessary");
|
|
29
|
+
var _position = /*#__PURE__*/ _interop_require_default(require("../position"));
|
|
30
|
+
function _array_like_to_array(arr, len) {
|
|
31
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
32
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
33
|
+
return arr2;
|
|
34
|
+
}
|
|
35
|
+
function _array_without_holes(arr) {
|
|
36
|
+
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
37
|
+
}
|
|
38
|
+
function _interop_require_default(obj) {
|
|
39
|
+
return obj && obj.__esModule ? obj : {
|
|
40
|
+
default: obj
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function _iterable_to_array(iter) {
|
|
44
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
45
|
+
}
|
|
46
|
+
function _non_iterable_spread() {
|
|
47
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
48
|
+
}
|
|
49
|
+
function _to_consumable_array(arr) {
|
|
50
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
51
|
+
}
|
|
52
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
53
|
+
if (!o) return;
|
|
54
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
55
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
56
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
57
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
58
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
59
|
+
}
|
|
60
|
+
var clear = _necessary.arrayUtilities.clear, filter = _necessary.arrayUtilities.filter;
|
|
61
|
+
function sortPositions(positionsA, positionsB) {
|
|
62
|
+
var positionAMap = positionsA.reduce(function(positionAMap, positionA) {
|
|
63
|
+
var identifier = positionA.getIdentifier();
|
|
64
|
+
positionAMap[identifier] = positionA;
|
|
65
|
+
return positionAMap;
|
|
66
|
+
}, {});
|
|
67
|
+
clear(positionsA);
|
|
68
|
+
positionsB.forEach(function(positionB) {
|
|
69
|
+
var identifier = positionB.getIdentifier(), positionA = positionAMap[identifier];
|
|
70
|
+
positionsA.push(positionA);
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
function matchPositions(positionsA, positionsB) {
|
|
74
|
+
var positionsMatch = false;
|
|
75
|
+
var positionsALength = positionsA.length, positionsBLength = positionsB.length;
|
|
76
|
+
if (positionsALength === positionsBLength) {
|
|
77
|
+
var identifiersA = identifiersFromPositions(positionsA), identifiersB = identifiersFromPositions(positionsB);
|
|
78
|
+
identifiersA.sort();
|
|
79
|
+
identifiersB.sort();
|
|
80
|
+
var identifiersMatch = identifiersA.every(function(identifierA, index) {
|
|
81
|
+
var identifierB = identifiersB[index];
|
|
82
|
+
if (identifierA === identifierB) {
|
|
83
|
+
return true;
|
|
84
|
+
}
|
|
85
|
+
});
|
|
86
|
+
positionsMatch = identifiersMatch; ///
|
|
87
|
+
}
|
|
88
|
+
return positionsMatch;
|
|
89
|
+
}
|
|
90
|
+
function filterPositions(positionsA, positionsB) {
|
|
91
|
+
filter(positionsA, function(positionA) {
|
|
92
|
+
var matches = positionsB.some(function(positionB) {
|
|
93
|
+
var matches = positionA.match(positionB);
|
|
94
|
+
if (matches) {
|
|
95
|
+
return true;
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
if (!matches) {
|
|
99
|
+
return true;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
function positionsFromMouseEvent(mouseEvent) {
|
|
104
|
+
var position = _position.default.fromMouseEvent(mouseEvent), positions = [
|
|
105
|
+
position
|
|
106
|
+
];
|
|
107
|
+
return positions;
|
|
108
|
+
}
|
|
109
|
+
function positionsFromTouchEvent(touchEvent) {
|
|
110
|
+
var changed = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : true;
|
|
111
|
+
var touchesNodeList;
|
|
112
|
+
if (changed) {
|
|
113
|
+
var ref;
|
|
114
|
+
ref = touchEvent, touchesNodeList = ref.changedTouches, ref;
|
|
115
|
+
} else {
|
|
116
|
+
var ref1;
|
|
117
|
+
ref1 = touchEvent, touchesNodeList = ref1.touches, ref1;
|
|
118
|
+
}
|
|
119
|
+
var touches = _to_consumable_array(touchesNodeList), positions = touches.map(function(touch) {
|
|
120
|
+
var position = _position.default.fromTouch(touch);
|
|
121
|
+
return position;
|
|
122
|
+
});
|
|
123
|
+
compressPositions(positions);
|
|
124
|
+
return positions;
|
|
125
|
+
}
|
|
126
|
+
function compressPositions(positions) {
|
|
127
|
+
var positionMap = positions.reduce(function(positionMap, position) {
|
|
128
|
+
var identifier = position.getIdentifier();
|
|
129
|
+
positionMap[identifier] = position;
|
|
130
|
+
return positionMap;
|
|
131
|
+
}, {});
|
|
132
|
+
positions = Object.values(positionMap);
|
|
133
|
+
return positions;
|
|
134
|
+
}
|
|
135
|
+
function identifiersFromPositions(positions) {
|
|
136
|
+
var identifiers = positions.map(function(position) {
|
|
137
|
+
var identifier = position.getIdentifier();
|
|
138
|
+
return identifier;
|
|
139
|
+
});
|
|
140
|
+
return identifiers;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uL3NyYy91dGlsaXRpZXMvcG9zaXRpb25zLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgeyBhcnJheVV0aWxpdGllcyB9IGZyb20gXCJuZWNlc3NhcnlcIjtcblxuaW1wb3J0IFBvc2l0aW9uIGZyb20gXCIuLi9wb3NpdGlvblwiO1xuXG5jb25zdCB7IGNsZWFyLCBmaWx0ZXIgfSA9IGFycmF5VXRpbGl0aWVzO1xuXG5leHBvcnQgZnVuY3Rpb24gc29ydFBvc2l0aW9ucyhwb3NpdGlvbnNBLCBwb3NpdGlvbnNCKSB7XG4gIGNvbnN0IHBvc2l0aW9uQU1hcCA9IHBvc2l0aW9uc0EucmVkdWNlKChwb3NpdGlvbkFNYXAsIHBvc2l0aW9uQSkgPT4ge1xuICAgIGNvbnN0IGlkZW50aWZpZXIgPSBwb3NpdGlvbkEuZ2V0SWRlbnRpZmllcigpO1xuXG4gICAgcG9zaXRpb25BTWFwW2lkZW50aWZpZXJdID0gcG9zaXRpb25BO1xuXG4gICAgcmV0dXJuIHBvc2l0aW9uQU1hcDtcbiAgfSwge30pO1xuXG4gIGNsZWFyKHBvc2l0aW9uc0EpO1xuXG4gIHBvc2l0aW9uc0IuZm9yRWFjaCgocG9zaXRpb25CKSA9PiB7XG4gICAgY29uc3QgaWRlbnRpZmllciA9IHBvc2l0aW9uQi5nZXRJZGVudGlmaWVyKCksXG4gICAgICAgICAgcG9zaXRpb25BID0gcG9zaXRpb25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TUyxrQkFBa0JULFNBQVM7SUFDbEMsSUFBTVUsY0FBY1YsVUFBVTNCLE1BQU0sQ0FBQyxTQUFDcUMsYUFBYWI7UUFDakQsSUFBTXRCLGFBQWFzQixTQUFTckIsYUFBYTtRQUV6Q2tDLFdBQVcsQ0FBQ25DLFdBQVcsR0FBR3NCO1FBRTFCLE9BQU9hO0lBQ1QsR0FBRyxDQUFDO0lBRUpWLFlBQVlXLE9BQU9DLE1BQU0sQ0FBQ0Y7SUFFMUIsT0FBT1Y7QUFDVDtBQUVBLFNBQVNmLHlCQUF5QmUsU0FBUztJQUN6QyxJQUFNYSxjQUFjYixVQUFVTSxHQUFHLENBQUMsU0FBQ1Q7UUFDakMsSUFBTXRCLGFBQWFzQixTQUFTckIsYUFBYTtRQUV6QyxPQUFPRDtJQUNUO0lBRUEsT0FBT3NDO0FBQ1QifQ==
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return CloseMenuButton;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _button = /*#__PURE__*/ _interop_require_default(require("../button"));
|
|
12
|
+
var _closeMenu = /*#__PURE__*/ _interop_require_default(require("../svg/closeMenu"));
|
|
13
|
+
function _assert_this_initialized(self) {
|
|
14
|
+
if (self === void 0) {
|
|
15
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16
|
+
}
|
|
17
|
+
return self;
|
|
18
|
+
}
|
|
19
|
+
function _class_call_check(instance, Constructor) {
|
|
20
|
+
if (!(instance instanceof Constructor)) {
|
|
21
|
+
throw new TypeError("Cannot call a class as a function");
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function _define_property(obj, key, value) {
|
|
25
|
+
if (key in obj) {
|
|
26
|
+
Object.defineProperty(obj, key, {
|
|
27
|
+
value: value,
|
|
28
|
+
enumerable: true,
|
|
29
|
+
configurable: true,
|
|
30
|
+
writable: true
|
|
31
|
+
});
|
|
32
|
+
} else {
|
|
33
|
+
obj[key] = value;
|
|
34
|
+
}
|
|
35
|
+
return obj;
|
|
36
|
+
}
|
|
37
|
+
function _get_prototype_of(o) {
|
|
38
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
39
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
40
|
+
};
|
|
41
|
+
return _get_prototype_of(o);
|
|
42
|
+
}
|
|
43
|
+
function _inherits(subClass, superClass) {
|
|
44
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
45
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
46
|
+
}
|
|
47
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
48
|
+
constructor: {
|
|
49
|
+
value: subClass,
|
|
50
|
+
writable: true,
|
|
51
|
+
configurable: true
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
55
|
+
}
|
|
56
|
+
function _interop_require_default(obj) {
|
|
57
|
+
return obj && obj.__esModule ? obj : {
|
|
58
|
+
default: obj
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function _possible_constructor_return(self, call) {
|
|
62
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
63
|
+
return call;
|
|
64
|
+
}
|
|
65
|
+
return _assert_this_initialized(self);
|
|
66
|
+
}
|
|
67
|
+
function _set_prototype_of(o, p) {
|
|
68
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
69
|
+
o.__proto__ = p;
|
|
70
|
+
return o;
|
|
71
|
+
};
|
|
72
|
+
return _set_prototype_of(o, p);
|
|
73
|
+
}
|
|
74
|
+
function _type_of(obj) {
|
|
75
|
+
"@swc/helpers - typeof";
|
|
76
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
77
|
+
}
|
|
78
|
+
function _is_native_reflect_construct() {
|
|
79
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
80
|
+
if (Reflect.construct.sham) return false;
|
|
81
|
+
if (typeof Proxy === "function") return true;
|
|
82
|
+
try {
|
|
83
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
84
|
+
return true;
|
|
85
|
+
} catch (e) {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
function _create_super(Derived) {
|
|
90
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
91
|
+
return function _createSuperInternal() {
|
|
92
|
+
var Super = _get_prototype_of(Derived), result;
|
|
93
|
+
if (hasNativeReflectConstruct) {
|
|
94
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
95
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
96
|
+
} else {
|
|
97
|
+
result = Super.apply(this, arguments);
|
|
98
|
+
}
|
|
99
|
+
return _possible_constructor_return(this, result);
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
var CloseMenuButton = /*#__PURE__*/ function(Button) {
|
|
103
|
+
_inherits(CloseMenuButton, Button);
|
|
104
|
+
var _super = _create_super(CloseMenuButton);
|
|
105
|
+
function CloseMenuButton() {
|
|
106
|
+
_class_call_check(this, CloseMenuButton);
|
|
107
|
+
var _this;
|
|
108
|
+
_this = _super.apply(this, arguments);
|
|
109
|
+
_define_property(_assert_this_initialized(_this), "clickHandler", function(event, element) {
|
|
110
|
+
controller.closeMenu();
|
|
111
|
+
});
|
|
112
|
+
return _this;
|
|
113
|
+
}
|
|
114
|
+
return CloseMenuButton;
|
|
115
|
+
}(_button.default);
|
|
116
|
+
_define_property(CloseMenuButton, "SVG", _closeMenu.default);
|
|
117
|
+
_define_property(CloseMenuButton, "defaultProperties", {
|
|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bmdzIjoiQUFBQTs7Ozs7OztlQUtxQkE7Ozs2REFIRjtnRUFDTTs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBRVYsSUFBQSxBQUFNQSxnQ0FBRCxBQUFMO2NBQU1BOytCQUFBQTthQUFBQTtnQ0FBQUE7OztRQUNuQkMsa0RBQUFBLGdCQUFlLFNBQUNDLE9BQU9DO1lBQ3JCQyxXQUFXQyxTQUFTO1FBQ3RCOzs7V0FIbUJMO0VBQXdCTSxlQUFNO0FBS2pELGlCQUxtQk4saUJBS1pPLE9BQU1DLGtCQUFZO0FBRXpCLGlCQVBtQlIsaUJBT1pTLHFCQUFvQjtJQUN6QkMsV0FBVztBQUNiIn0=
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return FullScreenButton;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _button = /*#__PURE__*/ _interop_require_default(require("../button"));
|
|
12
|
+
var _fullScreen = /*#__PURE__*/ _interop_require_default(require("../svg/fullScreen"));
|
|
13
|
+
function _assert_this_initialized(self) {
|
|
14
|
+
if (self === void 0) {
|
|
15
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16
|
+
}
|
|
17
|
+
return self;
|
|
18
|
+
}
|
|
19
|
+
function _class_call_check(instance, Constructor) {
|
|
20
|
+
if (!(instance instanceof Constructor)) {
|
|
21
|
+
throw new TypeError("Cannot call a class as a function");
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function _define_property(obj, key, value) {
|
|
25
|
+
if (key in obj) {
|
|
26
|
+
Object.defineProperty(obj, key, {
|
|
27
|
+
value: value,
|
|
28
|
+
enumerable: true,
|
|
29
|
+
configurable: true,
|
|
30
|
+
writable: true
|
|
31
|
+
});
|
|
32
|
+
} else {
|
|
33
|
+
obj[key] = value;
|
|
34
|
+
}
|
|
35
|
+
return obj;
|
|
36
|
+
}
|
|
37
|
+
function _get_prototype_of(o) {
|
|
38
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
39
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
40
|
+
};
|
|
41
|
+
return _get_prototype_of(o);
|
|
42
|
+
}
|
|
43
|
+
function _inherits(subClass, superClass) {
|
|
44
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
45
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
46
|
+
}
|
|
47
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
48
|
+
constructor: {
|
|
49
|
+
value: subClass,
|
|
50
|
+
writable: true,
|
|
51
|
+
configurable: true
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
55
|
+
}
|
|
56
|
+
function _interop_require_default(obj) {
|
|
57
|
+
return obj && obj.__esModule ? obj : {
|
|
58
|
+
default: obj
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function _possible_constructor_return(self, call) {
|
|
62
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
63
|
+
return call;
|
|
64
|
+
}
|
|
65
|
+
return _assert_this_initialized(self);
|
|
66
|
+
}
|
|
67
|
+
function _set_prototype_of(o, p) {
|
|
68
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
69
|
+
o.__proto__ = p;
|
|
70
|
+
return o;
|
|
71
|
+
};
|
|
72
|
+
return _set_prototype_of(o, p);
|
|
73
|
+
}
|
|
74
|
+
function _type_of(obj) {
|
|
75
|
+
"@swc/helpers - typeof";
|
|
76
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
77
|
+
}
|
|
78
|
+
function _is_native_reflect_construct() {
|
|
79
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
80
|
+
if (Reflect.construct.sham) return false;
|
|
81
|
+
if (typeof Proxy === "function") return true;
|
|
82
|
+
try {
|
|
83
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
84
|
+
return true;
|
|
85
|
+
} catch (e) {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
function _create_super(Derived) {
|
|
90
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
91
|
+
return function _createSuperInternal() {
|
|
92
|
+
var Super = _get_prototype_of(Derived), result;
|
|
93
|
+
if (hasNativeReflectConstruct) {
|
|
94
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
95
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
96
|
+
} else {
|
|
97
|
+
result = Super.apply(this, arguments);
|
|
98
|
+
}
|
|
99
|
+
return _possible_constructor_return(this, result);
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
var FullScreenButton = /*#__PURE__*/ function(Button) {
|
|
103
|
+
_inherits(FullScreenButton, Button);
|
|
104
|
+
var _super = _create_super(FullScreenButton);
|
|
105
|
+
function FullScreenButton() {
|
|
106
|
+
_class_call_check(this, FullScreenButton);
|
|
107
|
+
var _this;
|
|
108
|
+
_this = _super.apply(this, arguments);
|
|
109
|
+
_define_property(_assert_this_initialized(_this), "clickHandler", function(event, element) {
|
|
110
|
+
controller.enterFullScreen();
|
|
111
|
+
});
|
|
112
|
+
return _this;
|
|
113
|
+
}
|
|
114
|
+
return FullScreenButton;
|
|
115
|
+
}(_button.default);
|
|
116
|
+
_define_property(FullScreenButton, "SVG", _fullScreen.default);
|
|
117
|
+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ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7IiwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7O2VBS3FCQTs7OzZEQUhGO2lFQUNPOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFFWCxJQUFBLEFBQU1BLGlDQUFELEFBQUw7Y0FBTUE7K0JBQUFBO2FBQUFBO2dDQUFBQTs7O1FBQ25CQyxrREFBQUEsZ0JBQWUsU0FBQ0MsT0FBT0M7WUFDckJDLFdBQVdDLGVBQWU7UUFDNUI7OztXQUhtQkw7RUFBeUJNLGVBQU07QUFLbEQsaUJBTG1CTixrQkFLWk8sT0FBTUMsbUJBQWE7QUFFMUIsaUJBUG1CUixrQkFPWlMscUJBQW9CO0lBQ3pCQyxXQUFXO0FBQ2IifQ==
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return ZoomMenuInButton;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _button = /*#__PURE__*/ _interop_require_default(require("../button"));
|
|
12
|
+
var _zoomMenuIn = /*#__PURE__*/ _interop_require_default(require("../svg/zoomMenuIn"));
|
|
13
|
+
function _assert_this_initialized(self) {
|
|
14
|
+
if (self === void 0) {
|
|
15
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16
|
+
}
|
|
17
|
+
return self;
|
|
18
|
+
}
|
|
19
|
+
function _class_call_check(instance, Constructor) {
|
|
20
|
+
if (!(instance instanceof Constructor)) {
|
|
21
|
+
throw new TypeError("Cannot call a class as a function");
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function _define_property(obj, key, value) {
|
|
25
|
+
if (key in obj) {
|
|
26
|
+
Object.defineProperty(obj, key, {
|
|
27
|
+
value: value,
|
|
28
|
+
enumerable: true,
|
|
29
|
+
configurable: true,
|
|
30
|
+
writable: true
|
|
31
|
+
});
|
|
32
|
+
} else {
|
|
33
|
+
obj[key] = value;
|
|
34
|
+
}
|
|
35
|
+
return obj;
|
|
36
|
+
}
|
|
37
|
+
function _get_prototype_of(o) {
|
|
38
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
39
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
40
|
+
};
|
|
41
|
+
return _get_prototype_of(o);
|
|
42
|
+
}
|
|
43
|
+
function _inherits(subClass, superClass) {
|
|
44
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
45
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
46
|
+
}
|
|
47
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
48
|
+
constructor: {
|
|
49
|
+
value: subClass,
|
|
50
|
+
writable: true,
|
|
51
|
+
configurable: true
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
55
|
+
}
|
|
56
|
+
function _interop_require_default(obj) {
|
|
57
|
+
return obj && obj.__esModule ? obj : {
|
|
58
|
+
default: obj
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function _possible_constructor_return(self, call) {
|
|
62
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
63
|
+
return call;
|
|
64
|
+
}
|
|
65
|
+
return _assert_this_initialized(self);
|
|
66
|
+
}
|
|
67
|
+
function _set_prototype_of(o, p) {
|
|
68
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
69
|
+
o.__proto__ = p;
|
|
70
|
+
return o;
|
|
71
|
+
};
|
|
72
|
+
return _set_prototype_of(o, p);
|
|
73
|
+
}
|
|
74
|
+
function _type_of(obj) {
|
|
75
|
+
"@swc/helpers - typeof";
|
|
76
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
77
|
+
}
|
|
78
|
+
function _is_native_reflect_construct() {
|
|
79
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
80
|
+
if (Reflect.construct.sham) return false;
|
|
81
|
+
if (typeof Proxy === "function") return true;
|
|
82
|
+
try {
|
|
83
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
84
|
+
return true;
|
|
85
|
+
} catch (e) {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
function _create_super(Derived) {
|
|
90
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
91
|
+
return function _createSuperInternal() {
|
|
92
|
+
var Super = _get_prototype_of(Derived), result;
|
|
93
|
+
if (hasNativeReflectConstruct) {
|
|
94
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
95
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
96
|
+
} else {
|
|
97
|
+
result = Super.apply(this, arguments);
|
|
98
|
+
}
|
|
99
|
+
return _possible_constructor_return(this, result);
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
var ZoomMenuInButton = /*#__PURE__*/ function(Button) {
|
|
103
|
+
_inherits(ZoomMenuInButton, Button);
|
|
104
|
+
var _super = _create_super(ZoomMenuInButton);
|
|
105
|
+
function ZoomMenuInButton() {
|
|
106
|
+
_class_call_check(this, ZoomMenuInButton);
|
|
107
|
+
var _this;
|
|
108
|
+
_this = _super.apply(this, arguments);
|
|
109
|
+
_define_property(_assert_this_initialized(_this), "clickHandler", function(event, element) {
|
|
110
|
+
controller.zoomMenuIn();
|
|
111
|
+
});
|
|
112
|
+
return _this;
|
|
113
|
+
}
|
|
114
|
+
return ZoomMenuInButton;
|
|
115
|
+
}(_button.default);
|
|
116
|
+
_define_property(ZoomMenuInButton, "SVG", _zoomMenuIn.default);
|
|
117
|
+
_define_property(ZoomMenuInButton, "defaultProperties", {
|
|
118
|
+
className: "zoom-menu-in"
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy92aWV3L2J1dHRvbi96b29tTWVudUluLmpzIl0sInNvdXJjZXNDb250ZW50IjpbIlwidXNlIHN0cmljdFwiO1xuXG5pbXBvcnQgQnV0dG9uIGZyb20gXCIuLi9idXR0b25cIjtcbmltcG9ydCBab29tTWVudUluU1ZHIGZyb20gXCIuLi9zdmcvem9vbU1lbnVJblwiO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBab29tTWVudUluQnV0dG9uIGV4dGVuZHMgQnV0dG9uIHtcbiAgY2xpY2tIYW5kbGVyID0gKGV2ZW50LCBlbGVtZW50KSA9PiB7XG4gICAgY29udHJvbGxlci56b29tTWVudUluKCk7XG4gIH1cblxuICBzdGF0aWMgU1ZHID0gWm9vbU1lbnVJblNWRztcblxuICBzdGF0aWMgZGVmYXVsdFByb3BlcnRpZXMgPSB7XG4gICAgY2xhc3NOYW1lOiBcInpvb20tbWVudS1pblwiXG4gIH07XG59XG4iXSwibmFtZXMiOlsiWm9vbU1lbnVJbkJ1dHRvbiIsImNsaWNrSGFuZGxlciIsImV2ZW50IiwiZWxlbWVudCIsImNvbnRyb2xsZXIiLCJ6b29tTWVudUluIiwiQnV0dG9uIiwiU1ZHIiwiWm9vbU1lbnVJblNWRyIsImRlZmF1bHRQcm9wZXJ0aWVzIiwiY2xhc3NOYW1lIl0sInJhbmdlTWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7IiwibWFwcGluZ3MiOiJBQUFBOzs7Ozs7O2VBS3FCQTs7OzZEQUhGO2lFQUNPOzs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7Ozs7QUFFWCxJQUFBLEFBQU1BLGlDQUFELEFBQUw7Y0FBTUE7K0JBQUFBO2FBQUFBO2dDQUFBQTs7O1FBQ25CQyxrREFBQUEsZ0JBQWUsU0FBQ0MsT0FBT0M7WUFDckJDLFdBQVdDLFVBQVU7UUFDdkI7OztXQUhtQkw7RUFBeUJNLGVBQU07QUFLbEQsaUJBTG1CTixrQkFLWk8sT0FBTUMsbUJBQWE7QUFFMUIsaUJBUG1CUixrQkFPWlMscUJBQW9CO0lBQ3pCQyxXQUFXO0FBQ2IifQ==
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3
|
+
value: true
|
|
4
|
+
});
|
|
5
|
+
Object.defineProperty(exports, "default", {
|
|
6
|
+
enumerable: true,
|
|
7
|
+
get: function() {
|
|
8
|
+
return ZoomMenuOutButton;
|
|
9
|
+
}
|
|
10
|
+
});
|
|
11
|
+
var _button = /*#__PURE__*/ _interop_require_default(require("../button"));
|
|
12
|
+
var _zoomMenuOut = /*#__PURE__*/ _interop_require_default(require("../svg/zoomMenuOut"));
|
|
13
|
+
function _assert_this_initialized(self) {
|
|
14
|
+
if (self === void 0) {
|
|
15
|
+
throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
|
|
16
|
+
}
|
|
17
|
+
return self;
|
|
18
|
+
}
|
|
19
|
+
function _class_call_check(instance, Constructor) {
|
|
20
|
+
if (!(instance instanceof Constructor)) {
|
|
21
|
+
throw new TypeError("Cannot call a class as a function");
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function _define_property(obj, key, value) {
|
|
25
|
+
if (key in obj) {
|
|
26
|
+
Object.defineProperty(obj, key, {
|
|
27
|
+
value: value,
|
|
28
|
+
enumerable: true,
|
|
29
|
+
configurable: true,
|
|
30
|
+
writable: true
|
|
31
|
+
});
|
|
32
|
+
} else {
|
|
33
|
+
obj[key] = value;
|
|
34
|
+
}
|
|
35
|
+
return obj;
|
|
36
|
+
}
|
|
37
|
+
function _get_prototype_of(o) {
|
|
38
|
+
_get_prototype_of = Object.setPrototypeOf ? Object.getPrototypeOf : function getPrototypeOf(o) {
|
|
39
|
+
return o.__proto__ || Object.getPrototypeOf(o);
|
|
40
|
+
};
|
|
41
|
+
return _get_prototype_of(o);
|
|
42
|
+
}
|
|
43
|
+
function _inherits(subClass, superClass) {
|
|
44
|
+
if (typeof superClass !== "function" && superClass !== null) {
|
|
45
|
+
throw new TypeError("Super expression must either be null or a function");
|
|
46
|
+
}
|
|
47
|
+
subClass.prototype = Object.create(superClass && superClass.prototype, {
|
|
48
|
+
constructor: {
|
|
49
|
+
value: subClass,
|
|
50
|
+
writable: true,
|
|
51
|
+
configurable: true
|
|
52
|
+
}
|
|
53
|
+
});
|
|
54
|
+
if (superClass) _set_prototype_of(subClass, superClass);
|
|
55
|
+
}
|
|
56
|
+
function _interop_require_default(obj) {
|
|
57
|
+
return obj && obj.__esModule ? obj : {
|
|
58
|
+
default: obj
|
|
59
|
+
};
|
|
60
|
+
}
|
|
61
|
+
function _possible_constructor_return(self, call) {
|
|
62
|
+
if (call && (_type_of(call) === "object" || typeof call === "function")) {
|
|
63
|
+
return call;
|
|
64
|
+
}
|
|
65
|
+
return _assert_this_initialized(self);
|
|
66
|
+
}
|
|
67
|
+
function _set_prototype_of(o, p) {
|
|
68
|
+
_set_prototype_of = Object.setPrototypeOf || function setPrototypeOf(o, p) {
|
|
69
|
+
o.__proto__ = p;
|
|
70
|
+
return o;
|
|
71
|
+
};
|
|
72
|
+
return _set_prototype_of(o, p);
|
|
73
|
+
}
|
|
74
|
+
function _type_of(obj) {
|
|
75
|
+
"@swc/helpers - typeof";
|
|
76
|
+
return obj && typeof Symbol !== "undefined" && obj.constructor === Symbol ? "symbol" : typeof obj;
|
|
77
|
+
}
|
|
78
|
+
function _is_native_reflect_construct() {
|
|
79
|
+
if (typeof Reflect === "undefined" || !Reflect.construct) return false;
|
|
80
|
+
if (Reflect.construct.sham) return false;
|
|
81
|
+
if (typeof Proxy === "function") return true;
|
|
82
|
+
try {
|
|
83
|
+
Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
84
|
+
return true;
|
|
85
|
+
} catch (e) {
|
|
86
|
+
return false;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
function _create_super(Derived) {
|
|
90
|
+
var hasNativeReflectConstruct = _is_native_reflect_construct();
|
|
91
|
+
return function _createSuperInternal() {
|
|
92
|
+
var Super = _get_prototype_of(Derived), result;
|
|
93
|
+
if (hasNativeReflectConstruct) {
|
|
94
|
+
var NewTarget = _get_prototype_of(this).constructor;
|
|
95
|
+
result = Reflect.construct(Super, arguments, NewTarget);
|
|
96
|
+
} else {
|
|
97
|
+
result = Super.apply(this, arguments);
|
|
98
|
+
}
|
|
99
|
+
return _possible_constructor_return(this, result);
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
var ZoomMenuOutButton = /*#__PURE__*/ function(Button) {
|
|
103
|
+
_inherits(ZoomMenuOutButton, Button);
|
|
104
|
+
var _super = _create_super(ZoomMenuOutButton);
|
|
105
|
+
function ZoomMenuOutButton() {
|
|
106
|
+
_class_call_check(this, ZoomMenuOutButton);
|
|
107
|
+
var _this;
|
|
108
|
+
_this = _super.apply(this, arguments);
|
|
109
|
+
_define_property(_assert_this_initialized(_this), "clickHandler", function(event, element) {
|
|
110
|
+
controller.zoomMenuOut();
|
|
111
|
+
});
|
|
112
|
+
return _this;
|
|
113
|
+
}
|
|
114
|
+
return ZoomMenuOutButton;
|
|
115
|
+
}(_button.default);
|
|
116
|
+
_define_property(ZoomMenuOutButton, "SVG", _zoomMenuOut.default);
|
|
117
|
+
_define_property(ZoomMenuOutButton, "defaultProperties", {
|
|
118
|
+
className: "zoom-menu-out"
|
|
119
|
+
});
|
|
120
|
+
|
|
121
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3NyYy92aWV3L2J1dHRvbi96b29tTWVudU91dC5qcyJdLCJzb3VyY2VzQ29udGVudCI6WyJcInVzZSBzdHJpY3RcIjtcblxuaW1wb3J0IEJ1dHRvbiBmcm9tIFwiLi4vYnV0dG9uXCI7XG5pbXBvcnQgWm9vbU1lbnVPdXRTVkcgZnJvbSBcIi4uL3N2Zy96b29tTWVudU91dFwiO1xuXG5leHBvcnQgZGVmYXVsdCBjbGFzcyBab29tTWVudU91dEJ1dHRvbiBleHRlbmRzIEJ1dHRvbiB7XG4gIGNsaWNrSGFuZGxlciA9IChldmVudCwgZWxlbWVudCkgPT4ge1xuICAgIGNvbnRyb2xsZXIuem9vbU1lbnVPdXQoKTtcbiAgfVxuXG4gIHN0YXRpYyBTVkcgPSBab29tTWVudU91dFNWRztcblxuICBzdGF0aWMgZGVmYXVsdFByb3BlcnRpZXMgPSB7XG4gICAgY2xhc3NOYW1lOiBcInpvb20tbWVudS1vdXRcIlxuICB9O1xufVxuIl0sIm5hbWVzIjpbIlpvb21NZW51T3V0QnV0dG9uIiwiY2xpY2tIYW5kbGVyIiwiZXZlbnQiLCJlbGVtZW50IiwiY29udHJvbGxlciIsInpvb21NZW51T3V0IiwiQnV0dG9uIiwiU1ZHIiwiWm9vbU1lbnVPdXRTVkciLCJkZWZhdWx0UHJvcGVydGllcyIsImNsYXNzTmFtZSJdLCJyYW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