H5
This commit is contained in:
32
node_modules/html2canvas/dist/lib/dom/replaced-elements/canvas-element-container.js
generated
vendored
Normal file
32
node_modules/html2canvas/dist/lib/dom/replaced-elements/canvas-element-container.js
generated
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
if (typeof b !== "function" && b !== null)
|
||||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.CanvasElementContainer = void 0;
|
||||
var element_container_1 = require("../element-container");
|
||||
var CanvasElementContainer = /** @class */ (function (_super) {
|
||||
__extends(CanvasElementContainer, _super);
|
||||
function CanvasElementContainer(context, canvas) {
|
||||
var _this = _super.call(this, context, canvas) || this;
|
||||
_this.canvas = canvas;
|
||||
_this.intrinsicWidth = canvas.width;
|
||||
_this.intrinsicHeight = canvas.height;
|
||||
return _this;
|
||||
}
|
||||
return CanvasElementContainer;
|
||||
}(element_container_1.ElementContainer));
|
||||
exports.CanvasElementContainer = CanvasElementContainer;
|
||||
//# sourceMappingURL=canvas-element-container.js.map
|
||||
1
node_modules/html2canvas/dist/lib/dom/replaced-elements/canvas-element-container.js.map
generated
vendored
Normal file
1
node_modules/html2canvas/dist/lib/dom/replaced-elements/canvas-element-container.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"canvas-element-container.js","sourceRoot":"","sources":["../../../../src/dom/replaced-elements/canvas-element-container.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,0DAAsD;AAGtD;IAA4C,0CAAgB;IAKxD,gCAAY,OAAgB,EAAE,MAAyB;QAAvD,YACI,kBAAM,OAAO,EAAE,MAAM,CAAC,SAIzB;QAHG,KAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,KAAI,CAAC,cAAc,GAAG,MAAM,CAAC,KAAK,CAAC;QACnC,KAAI,CAAC,eAAe,GAAG,MAAM,CAAC,MAAM,CAAC;;IACzC,CAAC;IACL,6BAAC;AAAD,CAAC,AAXD,CAA4C,oCAAgB,GAW3D;AAXY,wDAAsB"}
|
||||
55
node_modules/html2canvas/dist/lib/dom/replaced-elements/iframe-element-container.js
generated
vendored
Normal file
55
node_modules/html2canvas/dist/lib/dom/replaced-elements/iframe-element-container.js
generated
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
if (typeof b !== "function" && b !== null)
|
||||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.IFrameElementContainer = void 0;
|
||||
var element_container_1 = require("../element-container");
|
||||
var node_parser_1 = require("../node-parser");
|
||||
var color_1 = require("../../css/types/color");
|
||||
var IFrameElementContainer = /** @class */ (function (_super) {
|
||||
__extends(IFrameElementContainer, _super);
|
||||
function IFrameElementContainer(context, iframe) {
|
||||
var _this = _super.call(this, context, iframe) || this;
|
||||
_this.src = iframe.src;
|
||||
_this.width = parseInt(iframe.width, 10) || 0;
|
||||
_this.height = parseInt(iframe.height, 10) || 0;
|
||||
_this.backgroundColor = _this.styles.backgroundColor;
|
||||
try {
|
||||
if (iframe.contentWindow &&
|
||||
iframe.contentWindow.document &&
|
||||
iframe.contentWindow.document.documentElement) {
|
||||
_this.tree = node_parser_1.parseTree(context, iframe.contentWindow.document.documentElement);
|
||||
// http://www.w3.org/TR/css3-background/#special-backgrounds
|
||||
var documentBackgroundColor = iframe.contentWindow.document.documentElement
|
||||
? color_1.parseColor(context, getComputedStyle(iframe.contentWindow.document.documentElement).backgroundColor)
|
||||
: color_1.COLORS.TRANSPARENT;
|
||||
var bodyBackgroundColor = iframe.contentWindow.document.body
|
||||
? color_1.parseColor(context, getComputedStyle(iframe.contentWindow.document.body).backgroundColor)
|
||||
: color_1.COLORS.TRANSPARENT;
|
||||
_this.backgroundColor = color_1.isTransparent(documentBackgroundColor)
|
||||
? color_1.isTransparent(bodyBackgroundColor)
|
||||
? _this.styles.backgroundColor
|
||||
: bodyBackgroundColor
|
||||
: documentBackgroundColor;
|
||||
}
|
||||
}
|
||||
catch (e) { }
|
||||
return _this;
|
||||
}
|
||||
return IFrameElementContainer;
|
||||
}(element_container_1.ElementContainer));
|
||||
exports.IFrameElementContainer = IFrameElementContainer;
|
||||
//# sourceMappingURL=iframe-element-container.js.map
|
||||
1
node_modules/html2canvas/dist/lib/dom/replaced-elements/iframe-element-container.js.map
generated
vendored
Normal file
1
node_modules/html2canvas/dist/lib/dom/replaced-elements/iframe-element-container.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"iframe-element-container.js","sourceRoot":"","sources":["../../../../src/dom/replaced-elements/iframe-element-container.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,0DAAsD;AACtD,8CAAyC;AACzC,+CAA+E;AAG/E;IAA4C,0CAAgB;IA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a,CAAC,mBAAmB,CAAC;wBAChC,CAAC,CAAC,KAAI,CAAC,MAAM,CAAC,eAAe;wBAC7B,CAAC,CAAC,mBAAmB;oBACzB,CAAC,CAAC,uBAAuB,CAAC;aACjC;SACJ;QAAC,OAAO,CAAC,EAAE,GAAE;;IAClB,CAAC;IACL,6BAAC;AAAD,CAAC,AA3CD,CAA4C,oCAAgB,GA2C3D;AA3CY,wDAAsB"}
|
||||
33
node_modules/html2canvas/dist/lib/dom/replaced-elements/image-element-container.js
generated
vendored
Normal file
33
node_modules/html2canvas/dist/lib/dom/replaced-elements/image-element-container.js
generated
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
if (typeof b !== "function" && b !== null)
|
||||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.ImageElementContainer = void 0;
|
||||
var element_container_1 = require("../element-container");
|
||||
var ImageElementContainer = /** @class */ (function (_super) {
|
||||
__extends(ImageElementContainer, _super);
|
||||
function ImageElementContainer(context, img) {
|
||||
var _this = _super.call(this, context, img) || this;
|
||||
_this.src = img.currentSrc || img.src;
|
||||
_this.intrinsicWidth = img.naturalWidth;
|
||||
_this.intrinsicHeight = img.naturalHeight;
|
||||
_this.context.cache.addImage(_this.src);
|
||||
return _this;
|
||||
}
|
||||
return ImageElementContainer;
|
||||
}(element_container_1.ElementContainer));
|
||||
exports.ImageElementContainer = ImageElementContainer;
|
||||
//# sourceMappingURL=image-element-container.js.map
|
||||
1
node_modules/html2canvas/dist/lib/dom/replaced-elements/image-element-container.js.map
generated
vendored
Normal file
1
node_modules/html2canvas/dist/lib/dom/replaced-elements/image-element-container.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"image-element-container.js","sourceRoot":"","sources":["../../../../src/dom/replaced-elements/image-element-container.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,0DAAsD;AAGtD;IAA2C,yCAAgB;IAKvD,+BAAY,OAAgB,EAAE,GAAqB;QAAnD,YACI,kBAAM,OAAO,EAAE,GAAG,CAAC,SAKtB;QAJG,KAAI,CAAC,GAAG,GAAG,GAAG,CAAC,UAAU,IAAI,GAAG,CAAC,GAAG,CAAC;QACrC,KAAI,CAAC,cAAc,GAAG,GAAG,CAAC,YAAY,CAAC;QACvC,KAAI,CAAC,eAAe,GAAG,GAAG,CAAC,aAAa,CAAC;QACzC,KAAI,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAI,CAAC,GAAG,CAAC,CAAC;;IAC1C,CAAC;IACL,4BAAC;AAAD,CAAC,AAZD,CAA2C,oCAAgB,GAY1D;AAZY,sDAAqB"}
|
||||
3
node_modules/html2canvas/dist/lib/dom/replaced-elements/index.js
generated
vendored
Normal file
3
node_modules/html2canvas/dist/lib/dom/replaced-elements/index.js
generated
vendored
Normal file
@@ -0,0 +1,3 @@
|
||||
"use strict";
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
//# sourceMappingURL=index.js.map
|
||||
1
node_modules/html2canvas/dist/lib/dom/replaced-elements/index.js.map
generated
vendored
Normal file
1
node_modules/html2canvas/dist/lib/dom/replaced-elements/index.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/dom/replaced-elements/index.ts"],"names":[],"mappings":""}
|
||||
102
node_modules/html2canvas/dist/lib/dom/replaced-elements/input-element-container.js
generated
vendored
Normal file
102
node_modules/html2canvas/dist/lib/dom/replaced-elements/input-element-container.js
generated
vendored
Normal file
@@ -0,0 +1,102 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
if (typeof b !== "function" && b !== null)
|
||||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.InputElementContainer = exports.INPUT_COLOR = exports.PASSWORD = exports.RADIO = exports.CHECKBOX = void 0;
|
||||
var element_container_1 = require("../element-container");
|
||||
var bounds_1 = require("../../css/layout/bounds");
|
||||
var CHECKBOX_BORDER_RADIUS = [
|
||||
{
|
||||
type: 15 /* DIMENSION_TOKEN */,
|
||||
flags: 0,
|
||||
unit: 'px',
|
||||
number: 3
|
||||
}
|
||||
];
|
||||
var RADIO_BORDER_RADIUS = [
|
||||
{
|
||||
type: 16 /* PERCENTAGE_TOKEN */,
|
||||
flags: 0,
|
||||
number: 50
|
||||
}
|
||||
];
|
||||
var reformatInputBounds = function (bounds) {
|
||||
if (bounds.width > bounds.height) {
|
||||
return new bounds_1.Bounds(bounds.left + (bounds.width - bounds.height) / 2, bounds.top, bounds.height, bounds.height);
|
||||
}
|
||||
else if (bounds.width < bounds.height) {
|
||||
return new bounds_1.Bounds(bounds.left, bounds.top + (bounds.height - bounds.width) / 2, bounds.width, bounds.width);
|
||||
}
|
||||
return bounds;
|
||||
};
|
||||
var getInputValue = function (node) {
|
||||
var value = node.type === exports.PASSWORD ? new Array(node.value.length + 1).join('\u2022') : node.value;
|
||||
return value.length === 0 ? node.placeholder || '' : value;
|
||||
};
|
||||
exports.CHECKBOX = 'checkbox';
|
||||
exports.RADIO = 'radio';
|
||||
exports.PASSWORD = 'password';
|
||||
exports.INPUT_COLOR = 0x2a2a2aff;
|
||||
var InputElementContainer = /** @class */ (function (_super) {
|
||||
__extends(InputElementContainer, _super);
|
||||
function InputElementContainer(context, input) {
|
||||
var _this = _super.call(this, context, input) || this;
|
||||
_this.type = input.type.toLowerCase();
|
||||
_this.checked = input.checked;
|
||||
_this.value = getInputValue(input);
|
||||
if (_this.type === exports.CHECKBOX || _this.type === exports.RADIO) {
|
||||
_this.styles.backgroundColor = 0xdededeff;
|
||||
_this.styles.borderTopColor =
|
||||
_this.styles.borderRightColor =
|
||||
_this.styles.borderBottomColor =
|
||||
_this.styles.borderLeftColor =
|
||||
0xa5a5a5ff;
|
||||
_this.styles.borderTopWidth =
|
||||
_this.styles.borderRightWidth =
|
||||
_this.styles.borderBottomWidth =
|
||||
_this.styles.borderLeftWidth =
|
||||
1;
|
||||
_this.styles.borderTopStyle =
|
||||
_this.styles.borderRightStyle =
|
||||
_this.styles.borderBottomStyle =
|
||||
_this.styles.borderLeftStyle =
|
||||
1 /* SOLID */;
|
||||
_this.styles.backgroundClip = [0 /* BORDER_BOX */];
|
||||
_this.styles.backgroundOrigin = [0 /* BORDER_BOX */];
|
||||
_this.bounds = reformatInputBounds(_this.bounds);
|
||||
}
|
||||
switch (_this.type) {
|
||||
case exports.CHECKBOX:
|
||||
_this.styles.borderTopRightRadius =
|
||||
_this.styles.borderTopLeftRadius =
|
||||
_this.styles.borderBottomRightRadius =
|
||||
_this.styles.borderBottomLeftRadius =
|
||||
CHECKBOX_BORDER_RADIUS;
|
||||
break;
|
||||
case exports.RADIO:
|
||||
_this.styles.borderTopRightRadius =
|
||||
_this.styles.borderTopLeftRadius =
|
||||
_this.styles.borderBottomRightRadius =
|
||||
_this.styles.borderBottomLeftRadius =
|
||||
RADIO_BORDER_RADIUS;
|
||||
break;
|
||||
}
|
||||
return _this;
|
||||
}
|
||||
return InputElementContainer;
|
||||
}(element_container_1.ElementContainer));
|
||||
exports.InputElementContainer = InputElementContainer;
|
||||
//# sourceMappingURL=input-element-container.js.map
|
||||
1
node_modules/html2canvas/dist/lib/dom/replaced-elements/input-element-container.js.map
generated
vendored
Normal file
1
node_modules/html2canvas/dist/lib/dom/replaced-elements/input-element-container.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"input-element-container.js","sourceRoot":"","sources":["../../../../src/dom/replaced-elements/input-element-container.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,0DAAsD;AAMtD,kDAA+C;AAG/C,IAAM,sBAAsB,GAA0B;IAClD;QACI,IAAI,0BAA2B;QAC/B,KAAK,EAAE,CAAC;QACR,IAAI,EAAE,IAAI;QACV,MAAM,EAAE,CAAC;KACZ;CACJ,CAAC;AAEF,IAAM,mBAAmB,GAA0B;IAC/C;QACI,IAAI,2BAA4B;QAChC,KAAK,EAAE,CAAC;QACR,MAAM,EAAE,EAAE;KACb;CACJ,CAAC;AAEF,IAAM,mBAAmB,GAAG,UAAC,MAAc;IACvC,IAAI,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE;QAC9B,OAAO,IAAI,eAAM,CAAC,MAAM,CAAC,IAAI,GAAG,CAAC,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,CAAC,EAAE,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;KACjH;SAAM,IAAI,MAAM,CAAC,KAAK,GAAG,MAAM,CAAC,MAAM,EAAE;QACrC,OAAO,IAAI,eAAM,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,GA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om/replaced-elements/pseudo-elements.js
generated
vendored
Normal file
1
node_modules/html2canvas/dist/lib/dom/replaced-elements/pseudo-elements.js
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
//# sourceMappingURL=pseudo-elements.js.map
|
||||
1
node_modules/html2canvas/dist/lib/dom/replaced-elements/pseudo-elements.js.map
generated
vendored
Normal file
1
node_modules/html2canvas/dist/lib/dom/replaced-elements/pseudo-elements.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"pseudo-elements.js","sourceRoot":"","sources":["../../../../src/dom/replaced-elements/pseudo-elements.ts"],"names":[],"mappings":""}
|
||||
38
node_modules/html2canvas/dist/lib/dom/replaced-elements/svg-element-container.js
generated
vendored
Normal file
38
node_modules/html2canvas/dist/lib/dom/replaced-elements/svg-element-container.js
generated
vendored
Normal file
@@ -0,0 +1,38 @@
|
||||
"use strict";
|
||||
var __extends = (this && this.__extends) || (function () {
|
||||
var extendStatics = function (d, b) {
|
||||
extendStatics = Object.setPrototypeOf ||
|
||||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
||||
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
||||
return extendStatics(d, b);
|
||||
};
|
||||
return function (d, b) {
|
||||
if (typeof b !== "function" && b !== null)
|
||||
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
||||
extendStatics(d, b);
|
||||
function __() { this.constructor = d; }
|
||||
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
||||
};
|
||||
})();
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.SVGElementContainer = void 0;
|
||||
var element_container_1 = require("../element-container");
|
||||
var bounds_1 = require("../../css/layout/bounds");
|
||||
var SVGElementContainer = /** @class */ (function (_super) {
|
||||
__extends(SVGElementContainer, _super);
|
||||
function SVGElementContainer(context, img) {
|
||||
var _this = _super.call(this, context, img) || this;
|
||||
var s = new XMLSerializer();
|
||||
var bounds = bounds_1.parseBounds(context, img);
|
||||
img.setAttribute('width', bounds.width + "px");
|
||||
img.setAttribute('height', bounds.height + "px");
|
||||
_this.svg = "data:image/svg+xml," + encodeURIComponent(s.serializeToString(img));
|
||||
_this.intrinsicWidth = img.width.baseVal.value;
|
||||
_this.intrinsicHeight = img.height.baseVal.value;
|
||||
_this.context.cache.addImage(_this.svg);
|
||||
return _this;
|
||||
}
|
||||
return SVGElementContainer;
|
||||
}(element_container_1.ElementContainer));
|
||||
exports.SVGElementContainer = SVGElementContainer;
|
||||
//# sourceMappingURL=svg-element-container.js.map
|
||||
1
node_modules/html2canvas/dist/lib/dom/replaced-elements/svg-element-container.js.map
generated
vendored
Normal file
1
node_modules/html2canvas/dist/lib/dom/replaced-elements/svg-element-container.js.map
generated
vendored
Normal file
@@ -0,0 +1 @@
|
||||
{"version":3,"file":"svg-element-container.js","sourceRoot":"","sources":["../../../../src/dom/replaced-elements/svg-element-container.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAAA,0DAAsD;AACtD,kDAAoD;AAGpD;IAAyC,uCAAgB;IAKrD,6BAAY,OAAgB,EAAE,GAAkB;QAAhD,YACI,kBAAM,OAAO,EAAE,GAAG,CAAC,SAWtB;QAVG,IAAM,CAAC,GAAG,IAAI,aAAa,EAAE,CAAC;QAC9B,IAAM,MAAM,GAAG,oBAAW,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QACzC,GAAG,CAAC,YAAY,CAAC,OAAO,EAAK,MAAM,CAAC,KAAK,OAAI,CAAC,CAAC;QAC/C,GAAG,CAAC,YAAY,CAAC,QAAQ,EAAK,MAAM,CAAC,MAAM,OAAI,CAAC,CAAC;QAEjD,KAAI,CAAC,GAAG,GAAG,wBAAsB,kBAAkB,CAAC,CAAC,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAG,CAAC;QAChF,KAAI,CAAC,cAAc,GAAG,GAAG,CAAC,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC;QAC9C,KAAI,CAAC,eAAe,GAAG,GAAG,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC;QAEhD,KAAI,CAAC,OAAO,CAAC,KAAK,CAAC,QAAQ,CAAC,KAAI,CAAC,GAAG,CAAC,CAAC;;IAC1C,CAAC;IACL,0BAAC;AAAD,CAAC,AAlBD,CAAyC,oCAAgB,GAkBxD;AAlBY,kDAAmB"}
|
||||
Reference in New Issue
Block a user