mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
10 lines
33 KiB
Diff
10 lines
33 KiB
Diff
|
diff --git a/snow.prod.js b/snow.prod.js
|
||
|
index 2887e42dced838685e5b8f76d2c2f953fb808200..7fdac0cb49b5653371cecc4e2655999ad183047b 100644
|
||
|
--- a/snow.prod.js
|
||
|
+++ b/snow.prod.js
|
||
|
@@ -1 +1 @@
|
||
|
-(function(){"use strict";(()=>{var e={586:(e,t,n)=>{const r=n(228),{getFramesArray:o,getFrameTag:i}=n(648),{getOnload:c,setOnload:a,removeAttribute:s,addEventListener:u}=n(14);function l(e){if(!i(e))return;u(e,"load",(function(){r(e)}));const t=c(e);t&&(a(e,null),s(e,"onload"),a(e,t))}e.exports=function(e){for(let t=0;t<e.length;t++){const n=e[t],r=o(n,!0);for(let e=0;e<r.length;e++)l(r[e])}}},750:e=>{e.exports=function(e){e&&e.contentWindow}},832:(e,t,n)=>{const{Object:r,Function:o}=n(14),{isTagFramable:i}=n(648),{error:c,ERR_EXTENDING_FRAMABLES_BLOCKED:a}=n(312);e.exports=function(e){const t=r.getOwnPropertyDescriptor(e.CustomElementRegistry.prototype,"define");t.configurable=t.writable=!0;const n=t.value;var s;t.value=(s=n,function(e,t,n){let r=n;if(n){const t=n.extends;i(t+"")&&c(a,e,n)&&(r=void 0)}return o.prototype.call.call(s,this,e,t,r)}),r.defineProperty(e.CustomElementRegistry.prototype,"define",t)}},228:(e,t,n)=>{const r=n(851),o=n(750),{shadows:i,toArray:c,getFramesArray:a,getContentWindowOfFrame:s,getOwnerWindowOfNode:u}=n(648),{Object:l,getFrameElement:p}=n(14);function f(e,t){let n=-1;for(;e[++n];){if(r(e[n],e,l))continue;if(p(e[n])===t)return e[n];const o=f(e[n],t);if(o)return o}for(let n=0;n<i.length;n++){const r=i[n];if(u(r)!==e)continue;const o=a(r,!1);for(let e=0;e<o.length;e++){const n=o[e],r=s(n);if(n===t)return r;const i=f(r,t);if(i)return i}}return null}e.exports=function(e){e=c(e);for(let t=0;t<e.length;t++){const n=e[t];if("object"!=typeof n)continue;o(n);const r=f(top,n);r&&top.SNOW_WINDOW(r)}}},328:(e,t,n)=>{const{getFramesArray:r}=n(648),{Array:o,stringToLowerCase:i,split:c,getAttribute:a,setAttribute:s,getTemplateContent:u,getChildElementCount:l,createElement:p,getInnerHTML:f,setInnerHTML:m,remove:g,DocumentFragment:d}=n(14),{warn:y,WARN_DECLARATIVE_SHADOWS:w}=n(312),E=d.prototype.querySelectorAll;function O(e,t){let n="top."+(e?"SNOW_FRAME":"SNOW_WINDOW")+"(this);";return t&&(n="<script>"+n+"document.currentScript.remove();<\/script>"),n}function h(e){let t=a(e,"onload");return!!t&&(t=O(!0,!1)+t,s(e,"onload",t),!0)}function v(e){let t=a(e,"src")||"";const[n,r]=c(t,":");return"javascript"===i(n)&&(t="javascript:"+O(!1,!1)+r,s(e,"src",t),!0)}function D(e){let t=a(e,"srcdoc");if(t){t=O(!1,!0)+t;const n=new o(t);return _(n,!0),s(e,"srcdoc",n[0]),!0}return!1}function _(e,t){for(let i=0;i<e.length;i++){const c=p(document,"template");m(c,e[i]);const a=u(c);if(!l(a))continue;let s=!1;if(t){const e=p(document,"script");e.textContent=O(!1,!1),a.insertBefore(e,a.firstChild),s=!0}const d=E.call(a,"template[shadowroot]");for(let t=0;t<d.length;t++)n=d[t],o=e[i],y(w,n,o),g(n),s=!0;const _=r(a,!1);for(let e=0;e<_.length;e++){const t=_[e];s=h(t)||s,s=v(t)||s,s=D(t)||s}s&&(e[i]=f(c))}var n,o}e.exports={handleHTML:_}},352:(e,t,n)=>{const r=n(228),o=n(832),i=n(583),c=n(459),a=n(58),{hookShadowDOM:s}=n(373),{Object:u,addEventListener:l,getFrameElement:p}=n(14),{isMarked:f,mark:m}=n(111),{error:g,ERR_PROVIDED_CB_IS_NOT_A_FUNCTION:d,ERR_MARK_NEW_WINDOW_FAILED:y}=n(312);function w(e,t){const n=u.create(null);n.value=t,u.defineProperty(top,e,n)}function E(e){try{const t=!f(e);return t&&m(e),t}catch(t){g(y,e,t)}return E(e)}function O(e){E(e)&&(function(e){!function(e){const t=p(e);l(t,"load",(function(){r(t)}))}(e),o(e),i(e),c(e,"load"),a(e),s(e)}(e),h(e))}let h;e.exports=function(e,t){if(!h){if("function"!=typeof e&&g(d,e))return;w("SNOW_WINDOW",(function(e){O(e)})),w("SNOW_FRAME",(function(e){r(e)})),h=e}O(t||top)}},58:(e,t,n)=>{const{protectShadows:r}=n(373),o=n(586),{getFramesArray:i,shadows:c}=n(648),{getParentElement:a,slice:s,Object:u,Function:l}=n(14),{handleHTML:p}=n(328),f=n(228),m={DocumentFragment:["replaceChildren","append","prepend"],Document:["replaceChildren","append","prepend","write","writeln"],Node:["appendChild","insertBefore","replaceChild"],Element:["innerHTML","outerHTML","insertAdjacentHTML","replaceWith","insertAdjacentElement","append","before","prepend","after","replaceChildren"],ShadowRoot:["innerHTML"],HTMLIFrameElement:["srcdoc"]};function g(e,t){function n(e){o(e),o(c),p(e,t)}functi
|
||
|
\ No newline at end of file
|
||
|
+(function(){"use strict";(()=>{var e={586:(e,t,n)=>{const r=n(228),{getFramesArray:o,getFrameTag:i}=n(648),{getOnload:c,setOnload:a,removeAttribute:s,addEventListener:u}=n(14);function l(e){if(!i(e))return;u(e,"load",(function(){r(e)}));const t=c(e);t&&(a(e,null),s(e,"onload"),a(e,t))}e.exports=function(e){for(let t=0;t<e.length;t++){const n=e[t],r=o(n,!0);for(let e=0;e<r.length;e++)l(r[e])}}},750:e=>{e.exports=function(e){e&&e.contentWindow}},832:(e,t,n)=>{const{Object:r,Function:o}=n(14),{isTagFramable:i}=n(648),{error:c,ERR_EXTENDING_FRAMABLES_BLOCKED:a}=n(312);e.exports=function(e){const t=r.getOwnPropertyDescriptor(e.CustomElementRegistry.prototype,"define");t.configurable=t.writable=!0;const n=t.value;var s;t.value=(s=n,function(e,t,n){let r=n;if(n){const t=n.extends;i(t+"")&&c(a,e,n)&&(r=void 0)}return o.prototype.call.call(s,this,e,t,r)}),r.defineProperty(e.CustomElementRegistry.prototype,"define",t)}},228:(e,t,n)=>{const r=n(851),o=n(750),{shadows:i,toArray:c,getFramesArray:a,getContentWindowOfFrame:s,getOwnerWindowOfNode:u}=n(648),{Object:l,getFrameElement:p}=n(14);function f(e,t){let n=-1;for(;e[++n];){if(r(e[n],e,l))continue;if(p(e[n])===t)return e[n];const o=f(e[n],t);if(o)return o}for(let n=0;n<i.length;n++){const r=i[n];if(u(r)!==e)continue;const o=a(r,!1);for(let e=0;e<o.length;e++){const n=o[e],r=s(n);if(n===t)return r;const i=f(r,t);if(i)return i}}return null}e.exports=function(e){e=c(e);for(let t=0;t<e.length;t++){const n=e[t];if("object"!=typeof n)continue;o(n);const r=f(top,n);r&&top.SNOW_WINDOW(r)}}},328:(e,t,n)=>{const{getFramesArray:r}=n(648),{Array:o,stringToLowerCase:i,split:c,getAttribute:a,setAttribute:s,getTemplateContent:u,getChildElementCount:l,createElement:p,getInnerHTML:f,setInnerHTML:m,remove:g,DocumentFragment:d}=n(14),{warn:y,WARN_DECLARATIVE_SHADOWS:w}=n(312),E=d.prototype.querySelectorAll;function O(e,t){let n="top."+(e?"SNOW_FRAME":"SNOW_WINDOW")+"(this);";return t&&(n="<script>"+n+"document.currentScript.remove();<\/script>"),n}function h(e){let t=a(e,"onload");return!!t&&(t=O(!0,!1)+t,s(e,"onload",t),!0)}function v(e){let t=a(e,"src")||"";const[n,r]=c(t,":");return"javascript"===i(n)&&(t="javascript:"+O(!1,!1)+r,s(e,"src",t),!0)}function D(e){let t=a(e,"srcdoc");if(t){t=O(!1,!0)+t;const n=new o(t);return _(n,!0),s(e,"srcdoc",n[0]),!0}return!1}function _(e,t){for(let i=0;i<e.length;i++){const c=p(document,"template");m(c,e[i]);const a=u(c);if(!l(a))continue;let s=!1;if(t){const e=p(document,"script");e.textContent=O(!1,!1),a.insertBefore(e,a.firstChild),s=!0}const d=E.call(a,"template[shadowroot]");for(let t=0;t<d.length;t++)n=d[t],o=e[i],y(w,n,o),g(n),s=!0;const _=r(a,!1);for(let e=0;e<_.length;e++){const t=_[e];s=h(t)||s,s=v(t)||s,s=D(t)||s}s&&(e[i]=f(c))}var n,o}e.exports={handleHTML:_}},352:(e,t,n)=>{const r=n(228),o=n(832),i=n(583),c=n(459),a=n(58),{hookShadowDOM:s}=n(373),{Object:u,addEventListener:l,getFrameElement:p}=n(14),{isMarked:f,mark:m}=n(111),{error:g,ERR_PROVIDED_CB_IS_NOT_A_FUNCTION:d,ERR_MARK_NEW_WINDOW_FAILED:y}=n(312);function w(e,t){const n=u.create(null);n.value=t,u.defineProperty(top,e,n)}function E(e){try{const t=!f(e);return t&&m(e),t}catch(t){g(y,e,t)}return E(e)}function O(e){E(e)&&(function(e){!function(e){const t=p(e);l(t,"load",(function(){r(t)}))}(e),o(e),i(e),c(e,"load"),a(e),s(e)}(e),h(e))}let h;e.exports=function(e,t){if(!h){if("function"!=typeof e&&g(d,e))return;w("SNOW_WINDOW",(function(e){O(e)})),w("SNOW_FRAME",(function(e){r(e)})),h=e}O(t||top)}},58:(e,t,n)=>{const{protectShadows:r}=n(373),o=n(586),{getFramesArray:i,shadows:c}=n(648),{getParentElement:a,slice:s,Object:u,Function:l}=n(14),{handleHTML:p}=n(328),f=n(228),m={DocumentFragment:["append","prepend"],Document:["append","prepend","write","writeln"],Node:["appendChild","insertBefore","replaceChild"],Element:["innerHTML","outerHTML","insertAdjacentHTML","replaceWith","insertAdjacentElement","append","before","prepend","after"],ShadowRoot:["innerHTML"],HTMLIFrameElement:["srcdoc"]};function g(e,t){function n(e){o(e),o(c),p(e,t)}function u(e,t){const n=i(t,!1);f(n),f(e),r(!0)}return funct
|
||
|
\ No newline at end of file
|