New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

rax-image

Package Overview
Dependencies
Maintainers
1
Versions
121
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rax-image - npm Package Compare versions

Comparing version 2.3.2 to 2.3.3-beta.0

2

dist/index-es6.js

@@ -1,1 +0,1 @@

!function(r){var e={};function t(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return r[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}t.m=r,t.c=e,t.d=function(r,e,o){t.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:o})},t.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,e){if(1&e&&(r=t(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)t.d(o,n,function(e){return r[e]}.bind(null,n));return o},t.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(e,"a",e),e},t.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},t.p="/",t(t.s=7)}([function(r,e){r.exports=require("rax")},function(r,e,t){"use strict";e.a={}},function(r,e){r.exports=require("universal-env")},function(r,e,t){"use strict";var o=t(0),n=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(r);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(r,o[n])&&(t[o[n]]=r[o[n]])}return t};const u=Object(o.forwardRef)(((r,e)=>{var{source:t,fallbackSource:u,onLoad:c,onError:l,style:s,resizeMode:f,loading:d}=r,b=a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]);t=t||n.a,u=u||n.a;const p=b,[y,O]=Object(o.useState)({});p.onError=Object(o.useCallback)((r=>{void 0===y.uri&&O({uri:t.uri}),l&&l(r)}),[t.uri,l,y]),p.onLoad=Object(o.useCallback)((r=>{r&&r.success||r&&r.currentTarget&&r.currentTarget.naturalWidth>1&&r.currentTarget.naturalHeight>1?c&&c(r):(void 0===y.uri&&O({uri:t.uri}),l&&l(r))}),[c,l]),void 0!==y.uri&&(y.uri!==t.uri?y.uri=void 0:null!=u.uri&&(t=u));const{width:g,height:v,uri:j}=t;return p.src=j,p.style=Object.assign({width:g,height:v},s),d&&(p.loading=d),(f=f||p.style.resizeMode)&&(p.style.objectFit=f),Object(o.createElement)("img",i({},p,{ref:e}))}));e.a=u},function(r,e){},function(r,e,t){"use strict";var o=t(0),n=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(r);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(r,o[n])&&(t[o[n]]=r[o[n]])}return t};const u=Object(o.forwardRef)(((r,e)=>{var{source:t,fallbackSource:u,onLoad:c,onError:l,style:s,resizeMode:f,loading:d}=r,b=a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]);t=t||n.a,u=u||n.a;const p=b,[y,O]=Object(o.useState)({});p.onError=Object(o.useCallback)((r=>{void 0===y.uri&&O({uri:t.uri}),l&&l(r)}),[t.uri,l,y]),p.onLoad=Object(o.useCallback)((r=>{c&&c(r)}),[c,l]),void 0!==y.uri&&(y.uri!==t.uri?y.uri=void 0:null!=u.uri&&(t=u));const{width:g,height:v,uri:j}=t;return p.src=j,p.style=Object.assign({width:g,height:v},s),d&&(p["lazy-load"]="lazy"===d),(f=f||p.style.resizeMode)&&(p.style.objectFit=f),Object(o.createElement)("img",i({},p,{ref:e}))}));e.a=u},function(r,e,t){"use strict";var o=t(0),n=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(r);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(r,o[n])&&(t[o[n]]=r[o[n]])}return t};const u=Object(o.forwardRef)(((r,e)=>{var{source:t,fallbackSource:u,onLoad:c,onError:l,style:s,resizeMode:f,loading:d}=r,b=a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]);t=t||n.a,u=u||n.a;const p=b,[y,O]=Object(o.useState)({});p.onError=Object(o.useCallback)((r=>{void 0===y.uri&&O({uri:t.uri}),l&&l(r)}),[t.uri,l,y]),p.onLoad=Object(o.useCallback)((r=>{r&&r.success||r&&r.currentTarget&&r.currentTarget.naturalWidth>1&&r.currentTarget.naturalHeight>1?c&&c(r):(void 0===y.uri&&O({uri:t.uri}),l&&l(r))}),[c,l]),void 0!==y.uri&&(y.uri!==t.uri?y.uri=void 0:null!=u.uri&&(t=u));const{width:g,height:v,uri:j}=t;return p.src=j,p.style=Object.assign({width:g,height:v},s),(f=f||p.style.resizeMode)&&(p.resize=f,p.style.resizeMode=f),Object(o.createElement)("image",i({quality:"original"},p,{ref:e}))}));e.a=u},function(r,e,t){r.exports=t(8)},function(r,e,t){"use strict";t.r(e);var o=t(2),n=t(3),i=t(5),a=t(6),u=t(4);for(var c in u)["default"].indexOf(c)<0&&function(r){t.d(e,r,(function(){return u[r]}))}(c);let l=null;l=o.isWeb?n.a:o.isMiniApp||o.isWeChatMiniProgram||o.isByteDanceMicroApp||o.isBaiduSmartProgram||o.isKuaiShouMiniProgram?i.a:o.isWeex?a.a:n.a,e.default=l}]);
!function(r){var e={};function t(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return r[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}t.m=r,t.c=e,t.d=function(r,e,o){t.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:o})},t.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,e){if(1&e&&(r=t(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)t.d(o,n,function(e){return r[e]}.bind(null,n));return o},t.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(e,"a",e),e},t.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},t.p="/",t(t.s=7)}([function(r,e){r.exports=require("rax")},function(r,e,t){"use strict";e.a={}},function(r,e){r.exports=require("universal-env")},function(r,e,t){"use strict";var o=t(0),n=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(r);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(r,o[n])&&(t[o[n]]=r[o[n]])}return t};function u(r,e){if(window.JSTracker2){const t={uri:r};if(e.path){const r=e.path.map((r=>({nodeName:r.nodeName,id:r.id,className:r.className})));t.path=r}window.JSTracker2.push({msg:JSON.stringify(t),type:"custom",sampling:1})}}const c=Object(o.forwardRef)(((r,e)=>{var{source:t,fallbackSource:c,onLoad:l,onError:s,style:f,resizeMode:d,loading:p}=r,b=a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]);t=t||n.a,c=c||n.a;const y=b,[O,g]=Object(o.useState)({});y.onError=Object(o.useCallback)((r=>{u(t.uri,r),void 0===O.uri&&g({uri:t.uri}),s&&s(r)}),[t.uri,s,O]),y.onLoad=Object(o.useCallback)((r=>{r&&r.success||r&&r.currentTarget&&r.currentTarget.naturalWidth>1&&r.currentTarget.naturalHeight>1?l&&l(r):(u(t.uri,r),void 0===O.uri&&g({uri:t.uri}),s&&s(r))}),[l,s]),void 0!==O.uri&&(O.uri!==t.uri?O.uri=void 0:null!=c.uri&&(t=c));const{width:v,height:j,uri:h}=t;return y.src=h,y.style=Object.assign({width:v,height:j},f),p&&(y.loading=p),(d=d||y.style.resizeMode)&&(y.style.objectFit=d),Object(o.createElement)("img",i({},y,{ref:e}))}));e.a=c},function(r,e){},function(r,e,t){"use strict";var o=t(0),n=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(r);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(r,o[n])&&(t[o[n]]=r[o[n]])}return t};const u=Object(o.forwardRef)(((r,e)=>{var{source:t,fallbackSource:u,onLoad:c,onError:l,style:s,resizeMode:f,loading:d}=r,p=a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]);t=t||n.a,u=u||n.a;const b=p,[y,O]=Object(o.useState)({});b.onError=Object(o.useCallback)((r=>{void 0===y.uri&&O({uri:t.uri}),l&&l(r)}),[t.uri,l,y]),b.onLoad=Object(o.useCallback)((r=>{c&&c(r)}),[c,l]),void 0!==y.uri&&(y.uri!==t.uri?y.uri=void 0:null!=u.uri&&(t=u));const{width:g,height:v,uri:j}=t;return b.src=j,b.style=Object.assign({width:g,height:v},s),d&&(b["lazy-load"]="lazy"===d),(f=f||b.style.resizeMode)&&(b.style.objectFit=f),Object(o.createElement)("img",i({},b,{ref:e}))}));e.a=u},function(r,e,t){"use strict";var o=t(0),n=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(r);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(r,o[n])&&(t[o[n]]=r[o[n]])}return t};const u=Object(o.forwardRef)(((r,e)=>{var{source:t,fallbackSource:u,onLoad:c,onError:l,style:s,resizeMode:f,loading:d}=r,p=a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]);t=t||n.a,u=u||n.a;const b=p,[y,O]=Object(o.useState)({});b.onError=Object(o.useCallback)((r=>{void 0===y.uri&&O({uri:t.uri}),l&&l(r)}),[t.uri,l,y]),b.onLoad=Object(o.useCallback)((r=>{r&&r.success||r&&r.currentTarget&&r.currentTarget.naturalWidth>1&&r.currentTarget.naturalHeight>1?c&&c(r):(void 0===y.uri&&O({uri:t.uri}),l&&l(r))}),[c,l]),void 0!==y.uri&&(y.uri!==t.uri?y.uri=void 0:null!=u.uri&&(t=u));const{width:g,height:v,uri:j}=t;return b.src=j,b.style=Object.assign({width:g,height:v},s),(f=f||b.style.resizeMode)&&(b.resize=f,b.style.resizeMode=f),Object(o.createElement)("image",i({quality:"original"},b,{ref:e}))}));e.a=u},function(r,e,t){r.exports=t(8)},function(r,e,t){"use strict";t.r(e);var o=t(2),n=t(3),i=t(5),a=t(6),u=t(4);for(var c in u)["default"].indexOf(c)<0&&function(r){t.d(e,r,(function(){return u[r]}))}(c);let l=null;l=o.isWeb?n.a:o.isMiniApp||o.isWeChatMiniProgram||o.isByteDanceMicroApp||o.isBaiduSmartProgram||o.isKuaiShouMiniProgram?i.a:o.isWeex?a.a:n.a,e.default=l}]);

@@ -1,1 +0,1 @@

!function(r){var e={};function t(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return r[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=r,t.c=e,t.d=function(r,e,n){t.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:n})},t.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,e){if(1&e&&(r=t(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var o in r)t.d(n,o,function(e){return r[e]}.bind(null,o));return n},t.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(e,"a",e),e},t.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},t.p="/",t(t.s=7)}([function(r,e){r.exports=require("rax")},function(r,e,t){"use strict";e.a={}},function(r,e){r.exports=require("universal-env")},function(r,e,t){"use strict";var n=t(0),o=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t},u=Object(n.forwardRef)((function(r,e){var t=r.source,u=r.fallbackSource,c=r.onLoad,l=r.onError,s=r.style,f=r.resizeMode,d=r.loading,b=a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]);t=t||o.a,u=u||o.a;var p=b,y=Object(n.useState)({}),O=y[0],v=y[1];p.onError=Object(n.useCallback)((function(r){void 0===O.uri&&v({uri:t.uri}),l&&l(r)}),[t.uri,l,O]),p.onLoad=Object(n.useCallback)((function(r){r&&r.success||r&&r.currentTarget&&r.currentTarget.naturalWidth>1&&r.currentTarget.naturalHeight>1?c&&c(r):(void 0===O.uri&&v({uri:t.uri}),l&&l(r))}),[c,l]),void 0!==O.uri&&(O.uri!==t.uri?O.uri=void 0:null!=u.uri&&(t=u));var g=t,j=g.width,h=g.height,m=g.uri;return p.src=m,p.style=Object.assign({width:j,height:h},s),d&&(p.loading=d),(f=f||p.style.resizeMode)&&(p.style.objectFit=f),Object(n.createElement)("img",i({},p,{ref:e}))}));e.a=u},function(r,e){},function(r,e,t){"use strict";var n=t(0),o=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t},u=Object(n.forwardRef)((function(r,e){var t=r.source,u=r.fallbackSource,c=r.onLoad,l=r.onError,s=r.style,f=r.resizeMode,d=r.loading,b=a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]);t=t||o.a,u=u||o.a;var p=b,y=Object(n.useState)({}),O=y[0],v=y[1];p.onError=Object(n.useCallback)((function(r){void 0===O.uri&&v({uri:t.uri}),l&&l(r)}),[t.uri,l,O]),p.onLoad=Object(n.useCallback)((function(r){c&&c(r)}),[c,l]),void 0!==O.uri&&(O.uri!==t.uri?O.uri=void 0:null!=u.uri&&(t=u));var g=t,j=g.width,h=g.height,m=g.uri;return p.src=m,p.style=Object.assign({width:j,height:h},s),d&&(p["lazy-load"]="lazy"===d),(f=f||p.style.resizeMode)&&(p.style.objectFit=f),Object(n.createElement)("img",i({},p,{ref:e}))}));e.a=u},function(r,e,t){"use strict";var n=t(0),o=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t},u=Object(n.forwardRef)((function(r,e){var t=r.source,u=r.fallbackSource,c=r.onLoad,l=r.onError,s=r.style,f=r.resizeMode,d=(r.loading,a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]));t=t||o.a,u=u||o.a;var b=d,p=Object(n.useState)({}),y=p[0],O=p[1];b.onError=Object(n.useCallback)((function(r){void 0===y.uri&&O({uri:t.uri}),l&&l(r)}),[t.uri,l,y]),b.onLoad=Object(n.useCallback)((function(r){r&&r.success||r&&r.currentTarget&&r.currentTarget.naturalWidth>1&&r.currentTarget.naturalHeight>1?c&&c(r):(void 0===y.uri&&O({uri:t.uri}),l&&l(r))}),[c,l]),void 0!==y.uri&&(y.uri!==t.uri?y.uri=void 0:null!=u.uri&&(t=u));var v=t,g=v.width,j=v.height,h=v.uri;return b.src=h,b.style=Object.assign({width:g,height:j},s),(f=f||b.style.resizeMode)&&(b.resize=f,b.style.resizeMode=f),Object(n.createElement)("image",i({quality:"original"},b,{ref:e}))}));e.a=u},function(r,e,t){r.exports=t(8)},function(r,e,t){"use strict";t.r(e);var n=t(2),o=t(3),i=t(5),a=t(6),u=t(4);for(var c in u)["default"].indexOf(c)<0&&function(r){t.d(e,r,(function(){return u[r]}))}(c);var l=null;l=n.isWeb?o.a:n.isMiniApp||n.isWeChatMiniProgram||n.isByteDanceMicroApp||n.isBaiduSmartProgram||n.isKuaiShouMiniProgram?i.a:n.isWeex?a.a:o.a,e.default=l}]);
!function(r){var e={};function t(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return r[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=r,t.c=e,t.d=function(r,e,n){t.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:n})},t.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,e){if(1&e&&(r=t(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var o in r)t.d(n,o,function(e){return r[e]}.bind(null,o));return n},t.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(e,"a",e),e},t.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},t.p="/",t(t.s=7)}([function(r,e){r.exports=require("rax")},function(r,e,t){"use strict";e.a={}},function(r,e){r.exports=require("universal-env")},function(r,e,t){"use strict";var n=t(0),o=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t};function u(r,e){if(window.JSTracker2){var t={uri:r};if(e.path){var n=e.path.map((function(r){return{nodeName:r.nodeName,id:r.id,className:r.className}}));t.path=n}window.JSTracker2.push({msg:JSON.stringify(t),type:"custom",sampling:1})}}var c=Object(n.forwardRef)((function(r,e){var t=r.source,c=r.fallbackSource,l=r.onLoad,s=r.onError,f=r.style,d=r.resizeMode,p=r.loading,b=a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]);t=t||o.a,c=c||o.a;var y=b,O=Object(n.useState)({}),v=O[0],g=O[1];y.onError=Object(n.useCallback)((function(r){u(t.uri,r),void 0===v.uri&&g({uri:t.uri}),s&&s(r)}),[t.uri,s,v]),y.onLoad=Object(n.useCallback)((function(r){r&&r.success||r&&r.currentTarget&&r.currentTarget.naturalWidth>1&&r.currentTarget.naturalHeight>1?l&&l(r):(u(t.uri,r),void 0===v.uri&&g({uri:t.uri}),s&&s(r))}),[l,s]),void 0!==v.uri&&(v.uri!==t.uri?v.uri=void 0:null!=c.uri&&(t=c));var j=t,h=j.width,m=j.height,w=j.uri;return y.src=w,y.style=Object.assign({width:h,height:m},f),p&&(y.loading=p),(d=d||y.style.resizeMode)&&(y.style.objectFit=d),Object(n.createElement)("img",i({},y,{ref:e}))}));e.a=c},function(r,e){},function(r,e,t){"use strict";var n=t(0),o=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t},u=Object(n.forwardRef)((function(r,e){var t=r.source,u=r.fallbackSource,c=r.onLoad,l=r.onError,s=r.style,f=r.resizeMode,d=r.loading,p=a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]);t=t||o.a,u=u||o.a;var b=p,y=Object(n.useState)({}),O=y[0],v=y[1];b.onError=Object(n.useCallback)((function(r){void 0===O.uri&&v({uri:t.uri}),l&&l(r)}),[t.uri,l,O]),b.onLoad=Object(n.useCallback)((function(r){c&&c(r)}),[c,l]),void 0!==O.uri&&(O.uri!==t.uri?O.uri=void 0:null!=u.uri&&(t=u));var g=t,j=g.width,h=g.height,m=g.uri;return b.src=m,b.style=Object.assign({width:j,height:h},s),d&&(b["lazy-load"]="lazy"===d),(f=f||b.style.resizeMode)&&(b.style.objectFit=f),Object(n.createElement)("img",i({},b,{ref:e}))}));e.a=u},function(r,e,t){"use strict";var n=t(0),o=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t},u=Object(n.forwardRef)((function(r,e){var t=r.source,u=r.fallbackSource,c=r.onLoad,l=r.onError,s=r.style,f=r.resizeMode,d=(r.loading,a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]));t=t||o.a,u=u||o.a;var p=d,b=Object(n.useState)({}),y=b[0],O=b[1];p.onError=Object(n.useCallback)((function(r){void 0===y.uri&&O({uri:t.uri}),l&&l(r)}),[t.uri,l,y]),p.onLoad=Object(n.useCallback)((function(r){r&&r.success||r&&r.currentTarget&&r.currentTarget.naturalWidth>1&&r.currentTarget.naturalHeight>1?c&&c(r):(void 0===y.uri&&O({uri:t.uri}),l&&l(r))}),[c,l]),void 0!==y.uri&&(y.uri!==t.uri?y.uri=void 0:null!=u.uri&&(t=u));var v=t,g=v.width,j=v.height,h=v.uri;return p.src=h,p.style=Object.assign({width:g,height:j},s),(f=f||p.style.resizeMode)&&(p.resize=f,p.style.resizeMode=f),Object(n.createElement)("image",i({quality:"original"},p,{ref:e}))}));e.a=u},function(r,e,t){r.exports=t(8)},function(r,e,t){"use strict";t.r(e);var n=t(2),o=t(3),i=t(5),a=t(6),u=t(4);for(var c in u)["default"].indexOf(c)<0&&function(r){t.d(e,r,(function(){return u[r]}))}(c);var l=null;l=n.isWeb?o.a:n.isMiniApp||n.isWeChatMiniProgram||n.isByteDanceMicroApp||n.isBaiduSmartProgram||n.isKuaiShouMiniProgram?i.a:n.isWeex?a.a:o.a,e.default=l}]);

@@ -1,1 +0,1 @@

!function(r){var e={};function t(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return r[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=r,t.c=e,t.d=function(r,e,n){t.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:n})},t.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,e){if(1&e&&(r=t(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var o in r)t.d(n,o,function(e){return r[e]}.bind(null,o));return n},t.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(e,"a",e),e},t.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},t.p="/",t(t.s=7)}([function(r,e){r.exports=require("rax")},function(r,e,t){"use strict";e.a={}},function(r,e){r.exports=require("universal-env")},function(r,e,t){"use strict";var n=t(0),o=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t},u=Object(n.forwardRef)((function(r,e){var t=r.source,u=r.fallbackSource,c=r.onLoad,l=r.onError,s=r.style,f=r.resizeMode,d=r.loading,b=a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]);t=t||o.a,u=u||o.a;var p=b,y=Object(n.useState)({}),O=y[0],v=y[1];p.onError=Object(n.useCallback)((function(r){void 0===O.uri&&v({uri:t.uri}),l&&l(r)}),[t.uri,l,O]),p.onLoad=Object(n.useCallback)((function(r){r&&r.success||r&&r.currentTarget&&r.currentTarget.naturalWidth>1&&r.currentTarget.naturalHeight>1?c&&c(r):(void 0===O.uri&&v({uri:t.uri}),l&&l(r))}),[c,l]),void 0!==O.uri&&(O.uri!==t.uri?O.uri=void 0:null!=u.uri&&(t=u));var g=t,j=g.width,h=g.height,m=g.uri;return p.src=m,p.style=Object.assign({width:j,height:h},s),d&&(p.loading=d),(f=f||p.style.resizeMode)&&(p.style.objectFit=f),Object(n.createElement)("img",i({},p,{ref:e}))}));e.a=u},function(r,e){},function(r,e,t){"use strict";var n=t(0),o=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t},u=Object(n.forwardRef)((function(r,e){var t=r.source,u=r.fallbackSource,c=r.onLoad,l=r.onError,s=r.style,f=r.resizeMode,d=r.loading,b=a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]);t=t||o.a,u=u||o.a;var p=b,y=Object(n.useState)({}),O=y[0],v=y[1];p.onError=Object(n.useCallback)((function(r){void 0===O.uri&&v({uri:t.uri}),l&&l(r)}),[t.uri,l,O]),p.onLoad=Object(n.useCallback)((function(r){c&&c(r)}),[c,l]),void 0!==O.uri&&(O.uri!==t.uri?O.uri=void 0:null!=u.uri&&(t=u));var g=t,j=g.width,h=g.height,m=g.uri;return p.src=m,p.style=Object.assign({width:j,height:h},s),d&&(p["lazy-load"]="lazy"===d),(f=f||p.style.resizeMode)&&(p.style.objectFit=f),Object(n.createElement)("img",i({},p,{ref:e}))}));e.a=u},function(r,e,t){"use strict";var n=t(0),o=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t},u=Object(n.forwardRef)((function(r,e){var t=r.source,u=r.fallbackSource,c=r.onLoad,l=r.onError,s=r.style,f=r.resizeMode,d=(r.loading,a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]));t=t||o.a,u=u||o.a;var b=d,p=Object(n.useState)({}),y=p[0],O=p[1];b.onError=Object(n.useCallback)((function(r){void 0===y.uri&&O({uri:t.uri}),l&&l(r)}),[t.uri,l,y]),b.onLoad=Object(n.useCallback)((function(r){r&&r.success||r&&r.currentTarget&&r.currentTarget.naturalWidth>1&&r.currentTarget.naturalHeight>1?c&&c(r):(void 0===y.uri&&O({uri:t.uri}),l&&l(r))}),[c,l]),void 0!==y.uri&&(y.uri!==t.uri?y.uri=void 0:null!=u.uri&&(t=u));var v=t,g=v.width,j=v.height,h=v.uri;return b.src=h,b.style=Object.assign({width:g,height:j},s),(f=f||b.style.resizeMode)&&(b.resize=f,b.style.resizeMode=f),Object(n.createElement)("image",i({quality:"original"},b,{ref:e}))}));e.a=u},function(r,e,t){r.exports=t(8)},function(r,e,t){"use strict";t.r(e);var n=t(2),o=t(3),i=t(5),a=t(6),u=t(4);for(var c in u)["default"].indexOf(c)<0&&function(r){t.d(e,r,(function(){return u[r]}))}(c);var l=null;l=n.isWeb?o.a:n.isMiniApp||n.isWeChatMiniProgram||n.isByteDanceMicroApp||n.isBaiduSmartProgram||n.isKuaiShouMiniProgram?i.a:n.isWeex?a.a:o.a,e.default=l}]);
!function(r){var e={};function t(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return r[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}t.m=r,t.c=e,t.d=function(r,e,n){t.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:n})},t.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,e){if(1&e&&(r=t(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var o in r)t.d(n,o,function(e){return r[e]}.bind(null,o));return n},t.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(e,"a",e),e},t.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},t.p="/",t(t.s=7)}([function(r,e){r.exports=require("rax")},function(r,e,t){"use strict";e.a={}},function(r,e){r.exports=require("universal-env")},function(r,e,t){"use strict";var n=t(0),o=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t};function u(r,e){if(window.JSTracker2){var t={uri:r};if(e.path){var n=e.path.map((function(r){return{nodeName:r.nodeName,id:r.id,className:r.className}}));t.path=n}window.JSTracker2.push({msg:JSON.stringify(t),type:"custom",sampling:1})}}var c=Object(n.forwardRef)((function(r,e){var t=r.source,c=r.fallbackSource,l=r.onLoad,s=r.onError,f=r.style,d=r.resizeMode,p=r.loading,b=a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]);t=t||o.a,c=c||o.a;var y=b,O=Object(n.useState)({}),v=O[0],g=O[1];y.onError=Object(n.useCallback)((function(r){u(t.uri,r),void 0===v.uri&&g({uri:t.uri}),s&&s(r)}),[t.uri,s,v]),y.onLoad=Object(n.useCallback)((function(r){r&&r.success||r&&r.currentTarget&&r.currentTarget.naturalWidth>1&&r.currentTarget.naturalHeight>1?l&&l(r):(u(t.uri,r),void 0===v.uri&&g({uri:t.uri}),s&&s(r))}),[l,s]),void 0!==v.uri&&(v.uri!==t.uri?v.uri=void 0:null!=c.uri&&(t=c));var j=t,h=j.width,m=j.height,w=j.uri;return y.src=w,y.style=Object.assign({width:h,height:m},f),p&&(y.loading=p),(d=d||y.style.resizeMode)&&(y.style.objectFit=d),Object(n.createElement)("img",i({},y,{ref:e}))}));e.a=c},function(r,e){},function(r,e,t){"use strict";var n=t(0),o=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t},u=Object(n.forwardRef)((function(r,e){var t=r.source,u=r.fallbackSource,c=r.onLoad,l=r.onError,s=r.style,f=r.resizeMode,d=r.loading,p=a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]);t=t||o.a,u=u||o.a;var b=p,y=Object(n.useState)({}),O=y[0],v=y[1];b.onError=Object(n.useCallback)((function(r){void 0===O.uri&&v({uri:t.uri}),l&&l(r)}),[t.uri,l,O]),b.onLoad=Object(n.useCallback)((function(r){c&&c(r)}),[c,l]),void 0!==O.uri&&(O.uri!==t.uri?O.uri=void 0:null!=u.uri&&(t=u));var g=t,j=g.width,h=g.height,m=g.uri;return b.src=m,b.style=Object.assign({width:j,height:h},s),d&&(b["lazy-load"]="lazy"===d),(f=f||b.style.resizeMode)&&(b.style.objectFit=f),Object(n.createElement)("img",i({},b,{ref:e}))}));e.a=u},function(r,e,t){"use strict";var n=t(0),o=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t},u=Object(n.forwardRef)((function(r,e){var t=r.source,u=r.fallbackSource,c=r.onLoad,l=r.onError,s=r.style,f=r.resizeMode,d=(r.loading,a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]));t=t||o.a,u=u||o.a;var p=d,b=Object(n.useState)({}),y=b[0],O=b[1];p.onError=Object(n.useCallback)((function(r){void 0===y.uri&&O({uri:t.uri}),l&&l(r)}),[t.uri,l,y]),p.onLoad=Object(n.useCallback)((function(r){r&&r.success||r&&r.currentTarget&&r.currentTarget.naturalWidth>1&&r.currentTarget.naturalHeight>1?c&&c(r):(void 0===y.uri&&O({uri:t.uri}),l&&l(r))}),[c,l]),void 0!==y.uri&&(y.uri!==t.uri?y.uri=void 0:null!=u.uri&&(t=u));var v=t,g=v.width,j=v.height,h=v.uri;return p.src=h,p.style=Object.assign({width:g,height:j},s),(f=f||p.style.resizeMode)&&(p.resize=f,p.style.resizeMode=f),Object(n.createElement)("image",i({quality:"original"},p,{ref:e}))}));e.a=u},function(r,e,t){r.exports=t(8)},function(r,e,t){"use strict";t.r(e);var n=t(2),o=t(3),i=t(5),a=t(6),u=t(4);for(var c in u)["default"].indexOf(c)<0&&function(r){t.d(e,r,(function(){return u[r]}))}(c);var l=null;l=n.isWeb?o.a:n.isMiniApp||n.isWeChatMiniProgram||n.isByteDanceMicroApp||n.isBaiduSmartProgram||n.isKuaiShouMiniProgram?i.a:n.isWeex?a.a:o.a,e.default=l}]);

@@ -1,1 +0,1 @@

!function(r,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.raxImage=e():r.raxImage=e()}(window,(function(){return function(r){var e={};function t(o){if(e[o])return e[o].exports;var n=e[o]={i:o,l:!1,exports:{}};return r[o].call(n.exports,n,n.exports,t),n.l=!0,n.exports}return t.m=r,t.c=e,t.d=function(r,e,o){t.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:o})},t.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,e){if(1&e&&(r=t(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var o=Object.create(null);if(t.r(o),Object.defineProperty(o,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var n in r)t.d(o,n,function(e){return r[e]}.bind(null,n));return o},t.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(e,"a",e),e},t.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},t.p="/",t(t.s=7)}([function(r,e){r.exports=require("rax")},function(r,e,t){"use strict";e.a={}},function(r,e){r.exports=require("universal-env")},function(r,e,t){"use strict";var o=t(0),n=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(r);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(r,o[n])&&(t[o[n]]=r[o[n]])}return t},u=Object(o.forwardRef)((function(r,e){var t=r.source,u=r.fallbackSource,c=r.onLoad,l=r.onError,s=r.style,f=r.resizeMode,d=r.loading,b=a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]);t=t||n.a,u=u||n.a;var p=b,y=Object(o.useState)({}),O=y[0],v=y[1];p.onError=Object(o.useCallback)((function(r){void 0===O.uri&&v({uri:t.uri}),l&&l(r)}),[t.uri,l,O]),p.onLoad=Object(o.useCallback)((function(r){r&&r.success||r&&r.currentTarget&&r.currentTarget.naturalWidth>1&&r.currentTarget.naturalHeight>1?c&&c(r):(void 0===O.uri&&v({uri:t.uri}),l&&l(r))}),[c,l]),void 0!==O.uri&&(O.uri!==t.uri?O.uri=void 0:null!=u.uri&&(t=u));var g=t,j=g.width,h=g.height,m=g.uri;return p.src=m,p.style=Object.assign({width:j,height:h},s),d&&(p.loading=d),(f=f||p.style.resizeMode)&&(p.style.objectFit=f),Object(o.createElement)("img",i({},p,{ref:e}))}));e.a=u},function(r,e){},function(r,e,t){"use strict";var o=t(0),n=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(r);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(r,o[n])&&(t[o[n]]=r[o[n]])}return t},u=Object(o.forwardRef)((function(r,e){var t=r.source,u=r.fallbackSource,c=r.onLoad,l=r.onError,s=r.style,f=r.resizeMode,d=r.loading,b=a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]);t=t||n.a,u=u||n.a;var p=b,y=Object(o.useState)({}),O=y[0],v=y[1];p.onError=Object(o.useCallback)((function(r){void 0===O.uri&&v({uri:t.uri}),l&&l(r)}),[t.uri,l,O]),p.onLoad=Object(o.useCallback)((function(r){c&&c(r)}),[c,l]),void 0!==O.uri&&(O.uri!==t.uri?O.uri=void 0:null!=u.uri&&(t=u));var g=t,j=g.width,h=g.height,m=g.uri;return p.src=m,p.style=Object.assign({width:j,height:h},s),d&&(p["lazy-load"]="lazy"===d),(f=f||p.style.resizeMode)&&(p.style.objectFit=f),Object(o.createElement)("img",i({},p,{ref:e}))}));e.a=u},function(r,e,t){"use strict";var o=t(0),n=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&e.indexOf(o)<0&&(t[o]=r[o]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var n=0;for(o=Object.getOwnPropertySymbols(r);n<o.length;n++)e.indexOf(o[n])<0&&Object.prototype.propertyIsEnumerable.call(r,o[n])&&(t[o[n]]=r[o[n]])}return t},u=Object(o.forwardRef)((function(r,e){var t=r.source,u=r.fallbackSource,c=r.onLoad,l=r.onError,s=r.style,f=r.resizeMode,d=(r.loading,a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]));t=t||n.a,u=u||n.a;var b=d,p=Object(o.useState)({}),y=p[0],O=p[1];b.onError=Object(o.useCallback)((function(r){void 0===y.uri&&O({uri:t.uri}),l&&l(r)}),[t.uri,l,y]),b.onLoad=Object(o.useCallback)((function(r){r&&r.success||r&&r.currentTarget&&r.currentTarget.naturalWidth>1&&r.currentTarget.naturalHeight>1?c&&c(r):(void 0===y.uri&&O({uri:t.uri}),l&&l(r))}),[c,l]),void 0!==y.uri&&(y.uri!==t.uri?y.uri=void 0:null!=u.uri&&(t=u));var v=t,g=v.width,j=v.height,h=v.uri;return b.src=h,b.style=Object.assign({width:g,height:j},s),(f=f||b.style.resizeMode)&&(b.resize=f,b.style.resizeMode=f),Object(o.createElement)("image",i({quality:"original"},b,{ref:e}))}));e.a=u},function(r,e,t){r.exports=t(8)},function(r,e,t){"use strict";t.r(e);var o=t(2),n=t(3),i=t(5),a=t(6),u=t(4);for(var c in u)["default"].indexOf(c)<0&&function(r){t.d(e,r,(function(){return u[r]}))}(c);var l=null;l=o.isWeb?n.a:o.isMiniApp||o.isWeChatMiniProgram||o.isByteDanceMicroApp||o.isBaiduSmartProgram||o.isKuaiShouMiniProgram?i.a:o.isWeex?a.a:n.a,e.default=l}])}));
!function(r,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.raxImage=e():r.raxImage=e()}(window,(function(){return function(r){var e={};function t(n){if(e[n])return e[n].exports;var o=e[n]={i:n,l:!1,exports:{}};return r[n].call(o.exports,o,o.exports,t),o.l=!0,o.exports}return t.m=r,t.c=e,t.d=function(r,e,n){t.o(r,e)||Object.defineProperty(r,e,{enumerable:!0,get:n})},t.r=function(r){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},t.t=function(r,e){if(1&e&&(r=t(r)),8&e)return r;if(4&e&&"object"==typeof r&&r&&r.__esModule)return r;var n=Object.create(null);if(t.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:r}),2&e&&"string"!=typeof r)for(var o in r)t.d(n,o,function(e){return r[e]}.bind(null,o));return n},t.n=function(r){var e=r&&r.__esModule?function(){return r.default}:function(){return r};return t.d(e,"a",e),e},t.o=function(r,e){return Object.prototype.hasOwnProperty.call(r,e)},t.p="/",t(t.s=7)}([function(r,e){r.exports=require("rax")},function(r,e,t){"use strict";e.a={}},function(r,e){r.exports=require("universal-env")},function(r,e,t){"use strict";var n=t(0),o=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t};function u(r,e){if(window.JSTracker2){var t={uri:r};if(e.path){var n=e.path.map((function(r){return{nodeName:r.nodeName,id:r.id,className:r.className}}));t.path=n}window.JSTracker2.push({msg:JSON.stringify(t),type:"custom",sampling:1})}}var c=Object(n.forwardRef)((function(r,e){var t=r.source,c=r.fallbackSource,l=r.onLoad,s=r.onError,f=r.style,d=r.resizeMode,p=r.loading,b=a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]);t=t||o.a,c=c||o.a;var y=b,O=Object(n.useState)({}),v=O[0],g=O[1];y.onError=Object(n.useCallback)((function(r){u(t.uri,r),void 0===v.uri&&g({uri:t.uri}),s&&s(r)}),[t.uri,s,v]),y.onLoad=Object(n.useCallback)((function(r){r&&r.success||r&&r.currentTarget&&r.currentTarget.naturalWidth>1&&r.currentTarget.naturalHeight>1?l&&l(r):(u(t.uri,r),void 0===v.uri&&g({uri:t.uri}),s&&s(r))}),[l,s]),void 0!==v.uri&&(v.uri!==t.uri?v.uri=void 0:null!=c.uri&&(t=c));var j=t,h=j.width,m=j.height,w=j.uri;return y.src=w,y.style=Object.assign({width:h,height:m},f),p&&(y.loading=p),(d=d||y.style.resizeMode)&&(y.style.objectFit=d),Object(n.createElement)("img",i({},y,{ref:e}))}));e.a=c},function(r,e){},function(r,e,t){"use strict";var n=t(0),o=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t},u=Object(n.forwardRef)((function(r,e){var t=r.source,u=r.fallbackSource,c=r.onLoad,l=r.onError,s=r.style,f=r.resizeMode,d=r.loading,p=a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]);t=t||o.a,u=u||o.a;var b=p,y=Object(n.useState)({}),O=y[0],v=y[1];b.onError=Object(n.useCallback)((function(r){void 0===O.uri&&v({uri:t.uri}),l&&l(r)}),[t.uri,l,O]),b.onLoad=Object(n.useCallback)((function(r){c&&c(r)}),[c,l]),void 0!==O.uri&&(O.uri!==t.uri?O.uri=void 0:null!=u.uri&&(t=u));var g=t,j=g.width,h=g.height,m=g.uri;return b.src=m,b.style=Object.assign({width:j,height:h},s),d&&(b["lazy-load"]="lazy"===d),(f=f||b.style.resizeMode)&&(b.style.objectFit=f),Object(n.createElement)("img",i({},b,{ref:e}))}));e.a=u},function(r,e,t){"use strict";var n=t(0),o=t(1);function i(){return(i=Object.assign||function(r){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(r[n]=t[n])}return r}).apply(this,arguments)}var a=function(r,e){var t={};for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&e.indexOf(n)<0&&(t[n]=r[n]);if(null!=r&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(r);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(r,n[o])&&(t[n[o]]=r[n[o]])}return t},u=Object(n.forwardRef)((function(r,e){var t=r.source,u=r.fallbackSource,c=r.onLoad,l=r.onError,s=r.style,f=r.resizeMode,d=(r.loading,a(r,["source","fallbackSource","onLoad","onError","style","resizeMode","loading"]));t=t||o.a,u=u||o.a;var p=d,b=Object(n.useState)({}),y=b[0],O=b[1];p.onError=Object(n.useCallback)((function(r){void 0===y.uri&&O({uri:t.uri}),l&&l(r)}),[t.uri,l,y]),p.onLoad=Object(n.useCallback)((function(r){r&&r.success||r&&r.currentTarget&&r.currentTarget.naturalWidth>1&&r.currentTarget.naturalHeight>1?c&&c(r):(void 0===y.uri&&O({uri:t.uri}),l&&l(r))}),[c,l]),void 0!==y.uri&&(y.uri!==t.uri?y.uri=void 0:null!=u.uri&&(t=u));var v=t,g=v.width,j=v.height,h=v.uri;return p.src=h,p.style=Object.assign({width:g,height:j},s),(f=f||p.style.resizeMode)&&(p.resize=f,p.style.resizeMode=f),Object(n.createElement)("image",i({quality:"original"},p,{ref:e}))}));e.a=u},function(r,e,t){r.exports=t(8)},function(r,e,t){"use strict";t.r(e);var n=t(2),o=t(3),i=t(5),a=t(6),u=t(4);for(var c in u)["default"].indexOf(c)<0&&function(r){t.d(e,r,(function(){return u[r]}))}(c);var l=null;l=n.isWeb?o.a:n.isMiniApp||n.isWeChatMiniProgram||n.isByteDanceMicroApp||n.isBaiduSmartProgram||n.isKuaiShouMiniProgram?i.a:n.isWeex?a.a:o.a,e.default=l}])}));

@@ -9,2 +9,30 @@ var _excluded = ["source", "fallbackSource", "onLoad", "onError", "style", "resizeMode", "loading"];

import EMPTY_SOURCE from '../utils/emptySource';
function reportError(uri, e) {
// @ts-ignore
if (window.JSTracker2) {
var msg = {
uri: uri
};
if (e.path) {
var path = e.path.map(function (p) {
return {
nodeName: p.nodeName,
id: p.id,
className: p.className
};
});
msg.path = path;
} // @ts-ignore
window.JSTracker2.push({
msg: JSON.stringify(msg),
type: 'custom',
sampling: 1
});
}
}
var Image = forwardRef(function (_ref, ref) {

@@ -29,2 +57,4 @@ var source = _ref.source,

nativeProps.onError = useCallback(function (e) {
reportError(source.uri, e);
if (errorState.uri === undefined) {

@@ -47,2 +77,4 @@ setErrorState({

} else {
reportError(source.uri, e);
if (errorState.uri === undefined) {

@@ -49,0 +81,0 @@ setErrorState({

@@ -18,2 +18,29 @@ "use strict";

function reportError(uri, e) {
// @ts-ignore
if (window.JSTracker2) {
var msg = {
uri: uri
};
if (e.path) {
var path = e.path.map(function (p) {
return {
nodeName: p.nodeName,
id: p.id,
className: p.className
};
});
msg.path = path;
} // @ts-ignore
window.JSTracker2.push({
msg: JSON.stringify(msg),
type: 'custom',
sampling: 1
});
}
}
var Image = (0, _rax.forwardRef)(function (_ref, ref) {

@@ -38,2 +65,4 @@ var source = _ref.source,

nativeProps.onError = (0, _rax.useCallback)(function (e) {
reportError(source.uri, e);
if (errorState.uri === undefined) {

@@ -56,2 +85,4 @@ setErrorState({

} else {
reportError(source.uri, e);
if (errorState.uri === undefined) {

@@ -58,0 +89,0 @@ setErrorState({

{
"name": "rax-image",
"version": "2.3.2",
"version": "2.3.3-beta.0",
"description": "Image component for Rax.",

@@ -14,4 +14,4 @@ "license": "BSD-3-Clause",

],
"exports":{
".":{
"exports": {
".": {
"web": "./es/web/index.js",

@@ -18,0 +18,0 @@ "weex": "./es/weex/index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc