From 2b9b1cb667600bd92efa5958f7c0339f3929b72c Mon Sep 17 00:00:00 2001 From: ProgrammerIn-wonderland <3838shah@gmail.com> Date: Wed, 20 Dec 2023 17:34:23 -0500 Subject: [PATCH] update aboutproxy --- aboutproxy | 2 +- public/lib/html-to-image.min.js | 384 ++++++++++++++++---------------- 2 files changed, 190 insertions(+), 196 deletions(-) diff --git a/aboutproxy b/aboutproxy index 105bf85f..807c6196 160000 --- a/aboutproxy +++ b/aboutproxy @@ -1 +1 @@ -Subproject commit 105bf85f5c370fa0e203a7d45d3e1189488be97f +Subproject commit 807c61969da132e7bbb6f71e33b37379e5249821 diff --git a/public/lib/html-to-image.min.js b/public/lib/html-to-image.min.js index be9b0eec..d378cb42 100644 --- a/public/lib/html-to-image.min.js +++ b/public/lib/html-to-image.min.js @@ -2,13 +2,13 @@ "object" == typeof exports && "undefined" != typeof module ? e(exports) : "function" == typeof define && define.amd - ? define(["exports"], e) - : e( - ((t = - "undefined" != typeof globalThis - ? globalThis - : t || self).htmlToImage = {}), - ); + ? define(["exports"], e) + : e( + ((t = + "undefined" != typeof globalThis + ? globalThis + : t || self).htmlToImage = {}), + ); })(this, function (t) { "use strict"; function d(t, c, u, a) { @@ -75,9 +75,9 @@ 2 & e[0] ? c.return : e[0] - ? c.throw || - ((u = c.return) && u.call(c), 0) - : c.next) && + ? c.throw || + ((u = c.return) && u.call(c), 0) + : c.next) && !(u = u.call(c, e[1])).done) ) return u; @@ -459,170 +459,164 @@ })(e), ] : h(e, HTMLVideoElement) - ? [ - 2, - (function (r, i) { - return d( - this, - void 0, - void 0, - function () { - var e, - n; - return v( - this, - function ( - t, - ) { - switch ( - t.label - ) { - case 0: - return r.currentSrc - ? ((n = - document.createElement( - "canvas", - )), - (e = - n.getContext( - "2d", - )), - (n.width = - r.clientWidth), - (n.height = - r.clientHeight), - null != - e && - e.drawImage( - r, - 0, - 0, - n.width, - n.height, - ), - [ - 2, - p( - n.toDataURL(), - ), - ]) - : ((e = - r.poster), - (n = - w( - e, - )), - [ - 4, - E( - e, - n, - i, - ), - ]); - case 1: - return [ - 2, - p( - t.sent(), - ), - ]; - } - }, - ); - }, - ); - })(e, n), - ] - : h( - e, - HTMLIFrameElement, - ) - ? [ - 2, - (function (e) { - var n; - return d( - this, - void 0, - void 0, - function () { - return v( - this, - function ( - t, + ? [ + 2, + (function (r, i) { + return d( + this, + void 0, + void 0, + function () { + var e, + n; + return v( + this, + function ( + t, + ) { + switch ( + t.label ) { - switch ( - t.label - ) { - case 0: - return ( - t.trys.push( - [ - 0, - 3, - , - 4, - ], - ), - null != - (n = - null == - e - ? void 0 - : e.contentDocument) && - n.body - ? [ - 4, - C( - e - .contentDocument - .body, - {}, - !0, - ), - ] - : [ - 3, - 2, - ] - ); - case 1: - return [ - 2, - t.sent(), - ]; - case 2: - return [ - 3, - 4, - ]; - case 3: - return ( + case 0: + return r.currentSrc + ? ((n = + document.createElement( + "canvas", + )), + (e = + n.getContext( + "2d", + )), + (n.width = + r.clientWidth), + (n.height = + r.clientHeight), + null != + e && + e.drawImage( + r, + 0, + 0, + n.width, + n.height, + ), + [ + 2, + p( + n.toDataURL(), + ), + ]) + : ((e = + r.poster), + (n = + w( + e, + )), + [ + 4, + E( + e, + n, + i, + ), + ]); + case 1: + return [ + 2, + p( t.sent(), + ), + ]; + } + }, + ); + }, + ); + })(e, n), + ] + : h(e, HTMLIFrameElement) + ? [ + 2, + (function (e) { + var n; + return d( + this, + void 0, + void 0, + function () { + return v( + this, + function ( + t, + ) { + switch ( + t.label + ) { + case 0: + return ( + t.trys.push( [ + 0, 3, + , 4, - ] - ); - case 4: - return [ - 2, - e.cloneNode( - !1, - ), - ]; - } - }, - ); - }, - ); - })(e), - ] - : [ - 2, - e.cloneNode(!1), - ]; + ], + ), + null != + (n = + null == + e + ? void 0 + : e.contentDocument) && + n.body + ? [ + 4, + C( + e + .contentDocument + .body, + {}, + !0, + ), + ] + : [ + 3, + 2, + ] + ); + case 1: + return [ + 2, + t.sent(), + ]; + case 2: + return [ + 3, + 4, + ]; + case 3: + return ( + t.sent(), + [ + 3, + 4, + ] + ); + case 4: + return [ + 2, + e.cloneNode( + !1, + ), + ]; + } + }, + ); + }, + ); + })(e), + ] + : [2, e.cloneNode(!1)]; }); }, ); @@ -653,28 +647,28 @@ n.assignedNodes(), ) : h( - n, - HTMLIFrameElement, - ) && - null != - (o = - n.contentDocument) && - o.body - ? l( - n - .contentDocument - .body - .childNodes, - ) - : l( - (null != - (o = - n.shadowRoot) - ? o - : n - ) - .childNodes, - )) + n, + HTMLIFrameElement, + ) && + null != + (o = + n.contentDocument) && + o.body + ? l( + n + .contentDocument + .body + .childNodes, + ) + : l( + (null != + (o = + n.shadowRoot) + ? o + : n + ) + .childNodes, + )) .length || h( n, @@ -1805,10 +1799,10 @@ : ((e.width *= g / e.height), (e.height = g)) : e.width > g - ? ((e.height *= g / e.width), - (e.width = g)) - : ((e.width *= g / e.height), - (e.height = g)))), + ? ((e.height *= g / e.width), + (e.width = g)) + : ((e.width *= g / e.height), + (e.height = g)))), (o.style.width = "".concat(a)), (o.style.height = "".concat(s)), h.backgroundColor &&