@crafing/react-image-crop 0.1.1 → 0.1.3

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.
Files changed (3) hide show
  1. package/README.md +1 -14
  2. package/package.json +2 -2
  3. package/ricrp.js +1 -1
package/README.md CHANGED
@@ -54,19 +54,6 @@ Your React app
54
54
 
55
55
  ## 2. Install
56
56
 
57
- Packages ship from **`dist/`** (minified). Until npm publish, install from the **admin-hosted** build:
58
-
59
- ```bash
60
- # From a running / deployed admin (see /packages/index.json for exact filenames)
61
- npm install https://<admin-host>/packages/crafing-react-image-crop-0.1.0.tgz
62
-
63
- # Or from a crafing repo checkout (after: cd admin && npm run build:packages)
64
- npm install ./admin/public/packages/react-image-crop
65
- # Source for this package lives at repo-root packages/react-image-crop
66
- ```
67
-
68
- When published to npm later:
69
-
70
57
  ```bash
71
58
  npm install @crafing/react-image-crop
72
59
  ```
@@ -211,7 +198,7 @@ export default function App() {
211
198
 
212
199
  ### How to try it
213
200
 
214
- 1. Install from admin public packages: `npm install ./admin/public/packages/react-image-crop` (or the `.tgz` URL from `/packages/index.json`)
201
+ 1. Install from npm: `npm install @crafing/react-image-crop`
215
202
  2. Paste the code into your React app.
216
203
  3. You should see an image inside a 600×600 box.
217
204
  4. Drag to pan, Ctrl+scroll to zoom, use the buttons.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crafing/react-image-crop",
3
- "version": "0.1.1",
3
+ "version": "0.1.3",
4
4
  "description": "React state wrapper for lego-image cropper (no UI — host apps render the canvas)",
5
5
  "type": "module",
6
6
  "main": "./ricrp.js",
@@ -21,7 +21,7 @@
21
21
  ],
22
22
  "sideEffects": false,
23
23
  "dependencies": {
24
- "lego-image": "^2.0.2"
24
+ "lego-image": "^2.0.3"
25
25
  },
26
26
  "peerDependencies": {
27
27
  "react": ">=18"
package/ricrp.js CHANGED
@@ -1,3 +1,3 @@
1
1
  import { useCallback, useEffect, useRef, useState } from "react";
2
2
  import initLego from "lego-image";
3
- (function(_0x2fc0aa,_0x56dcc2){const _0x28b241=_0x422f,_0x2b64f6=_0x2fc0aa();while(!![]){try{const _0x24c154=-parseInt(_0x28b241(0x225))/0x1*(-parseInt(_0x28b241(0x1e8))/0x2)+-parseInt(_0x28b241(0x22b))/0x3*(parseInt(_0x28b241(0x21f))/0x4)+-parseInt(_0x28b241(0x1fa))/0x5+-parseInt(_0x28b241(0x234))/0x6*(parseInt(_0x28b241(0x236))/0x7)+parseInt(_0x28b241(0x237))/0x8+-parseInt(_0x28b241(0x1ee))/0x9+parseInt(_0x28b241(0x1fe))/0xa*(parseInt(_0x28b241(0x20e))/0xb);if(_0x24c154===_0x56dcc2)break;else _0x2b64f6['push'](_0x2b64f6['shift']());}catch(_0x2aae31){_0x2b64f6['push'](_0x2b64f6['shift']());}}}(_0x6c4d,0x479ca));function _0x6c4d(){const _0x29659c=['yu9ACxG','CeHuB1a','EM9VBuLU','zNHQywC','EM9VBu91Da','oti4me5fBhbnwa','CM90yxrL','r1nwALK','AwHryKy','D1jiq1u','sLLtCvq','mZC4mZC5yvHfCfLw','D2LKDgG','wu5czxC','BLnorMu','vfvyC0C','Bwf4','ndCXBvjZyM9Q','D3fTzuq','C2v0tgvNBW','A3ztq0C','DKHfy1C','CMvZzxrjBwfNzq','sxj5rue','C2v0rNjHBwvtAxPL','z2v0u291CMnLtwLTzvr5Cgu','mJy1otHhu3fbCeK','swTXwg0','mJmXzgHrtKPf','nJG3nJaWDKLYqwnR','CM90yxrLqNK','tevSswm','EM9VBvrVu2nHBgu','uLLWwfm','tKX4Cwm','mKjMzKHMAG','z2v0q2fUDMfZrgf0yvvYBa','BgvMDa','vgjIDLa','z2v0sw1Hz2vtAxPL','qKTRDfK','mtu5oty4n3HduKHZsa','Dg9W','z1bkweK','z2v0rxHWB3j0twLTzvr5Cgu','terOB1q','thPcsKy','zgvZDhjVEq','DLPdD1i','A1DRuK0','DKLtCMq','z2v0wM9VBuXPBwL0CW','qw1jExq','mta3mJGWnw5wt0Dltq','C29zzK4','Cvv2D2W','Eg9AqMK','nJb2yuHLy0O','u2zWC0C','AgvPz2H0','quvdDNq','sw1Hz2uGy3jVChbLCIbPCYbUB3qGCMvHzhKG4Ocuig1VDw50igeGpgnHBNzHCYbYzwy9E2nHBNzHC1jLzN0GlZ4GzMLYC3q','ChGSia','zgvNkq','rwTOvMq','sgzMuLu','ChGPihjVDgf0zsG','ue5kDxG','AeHPELG','zevszNa','CM90yxrLtgvMDa','CM90yxrLvg8','v2Xjq04','mtm0mty4mwrcweP4Ca','z2v0rNjHBwvtAxPL','BwvZC2fNzq','CM90yxrLuMLNAhq','t0rTqvG','u0v5qxO','uLfpBe0','rwXpAfm','DhjHBNnSyxrLka','u3HuEuy','C2nHBgu','y3vYCMvUDa'];_0x6c4d=function(){return _0x29659c;};return _0x6c4d();}function useImageCrop({onChange:_0x192ac3}={}){const _0x37e94f=_0x422f,_0x70b5eb={'IryEA':function(_0x285a89,_0x1409f2){return _0x285a89(_0x1409f2);},'ElOhS':function(_0x30fe8f,_0x30de70){return _0x30fe8f(_0x30de70);},'fxjag':function(_0xd21608,_0x3cb069){return _0xd21608(_0x3cb069);},'PNJux':function(_0x29c384,_0x453507){return _0x29c384(_0x453507);},'kvSCG':function(_0x32a288,_0x3e0f57){return _0x32a288(_0x3e0f57);},'JYSqT':function(_0x1290e4,_0x28a1c6){return _0x1290e4 instanceof _0x28a1c6;},'soYfN':_0x37e94f(0x202),'wRHCU':function(_0x520efe,_0x33c838){return _0x520efe(_0x33c838);},'SEyAz':function(_0x4b43a7,_0x42c35){return _0x4b43a7(_0x42c35);},'ihQbF':function(_0x34eb4b,_0x5c525a){return _0x34eb4b instanceof _0x5c525a;},'vHEcW':function(_0x111dee,_0x5955e3){return _0x111dee(_0x5955e3);},'AECvt':function(_0x3aa0e7,_0x5ddadd){return _0x3aa0e7(_0x5ddadd);},'GSVjY':function(_0x164529,_0x308493){return _0x164529(_0x308493);},'SfpsG':function(_0x2c5884,_0x12665a){return _0x2c5884(_0x12665a);},'YNBew':function(_0x57a21c,_0xb82dd1){return _0x57a21c(_0xb82dd1);},'EkhVd':function(_0x51c3b0,_0x3d1d84){return _0x51c3b0(_0x3d1d84);},'vZCwR':function(_0x15d98f,_0x59488b){return _0x15d98f(_0x59488b);},'hHizX':function(_0x2cdad9,_0x215f19){return _0x2cdad9(_0x215f19);},'pHToP':function(_0x24d70e,_0x49214f){return _0x24d70e(_0x49214f);},'ODmAX':function(_0xf86782,_0x1e51ea){return _0xf86782(_0x1e51ea);},'AmIyt':function(_0x16c7f2,_0x21001c){return _0x16c7f2(_0x21001c);},'RYpXS':function(_0x10361a,_0x3d8353,_0x224246){return _0x10361a(_0x3d8353,_0x224246);},'SxTyF':function(_0x58ecd8,_0xfc651,_0x87e057){return _0x58ecd8(_0xfc651,_0x87e057);},'vISrd':function(_0x44da78,_0x2c199,_0x3e51c0){return _0x44da78(_0x2c199,_0x3e51c0);},'dERfp':function(_0x5677a8,_0x2dc475,_0x77c93){return _0x5677a8(_0x2dc475,_0x77c93);}},_0x386ea1=_0x70b5eb[_0x37e94f(0x201)](useRef,null),_0x52899b=useRef(null),_0x1cf07a=useRef(_0x192ac3);_0x1cf07a[_0x37e94f(0x219)]=_0x192ac3;const [_0x18dd7e,_0x2b58fb]=_0x70b5eb[_0x37e94f(0x209)](useState,![]),[_0x5e075d,_0xf51b52]=_0x70b5eb[_0x37e94f(0x21b)](useState,null),[_0x1bc103,_0x47b085]=useState(null),[_0x3fe14d,_0x410999]=_0x70b5eb[_0x37e94f(0x212)](useState,null),[_0x2dc140,_0x246728]=_0x70b5eb[_0x37e94f(0x1f9)](useState,![]);_0x70b5eb[_0x37e94f(0x1e6)](useEffect,()=>{const _0x2c9c5f=_0x37e94f,_0x451816={'IkqXm':function(_0x49bbe3,_0x4ac06e){return _0x49bbe3(_0x4ac06e);},'HffRU':function(_0x45d4c5,_0x3c8872){const _0x5145a3=_0x422f;return _0x70b5eb[_0x5145a3(0x231)](_0x45d4c5,_0x3c8872);},'LzBJF':function(_0x3f0163,_0x49a8d6){const _0x8f8682=_0x422f;return _0x70b5eb[_0x8f8682(0x215)](_0x3f0163,_0x49a8d6);}},_0x4ea3df=_0x386ea1[_0x2c9c5f(0x219)];if(!_0x4ea3df)return void 0x0;let _0x1be0c0=![];try{const _0x2186f8=_0x70b5eb[_0x2c9c5f(0x21d)](initLego,{'canvas':_0x4ea3df,'onChange':_0x579145=>{const _0x3f0ca2=_0x2c9c5f;if(_0x1be0c0)return;_0x451816[_0x3f0ca2(0x235)](_0xf51b52,_0x579145),_0x1cf07a[_0x3f0ca2(0x219)]?.(_0x579145);}});_0x52899b[_0x2c9c5f(0x219)]=_0x2186f8,_0x70b5eb[_0x2c9c5f(0x208)](_0x2b58fb,!![]),_0x70b5eb[_0x2c9c5f(0x22e)](_0x410999,null);}catch(_0x31ff4e){_0x70b5eb[_0x2c9c5f(0x231)](_0x410999,_0x70b5eb[_0x2c9c5f(0x224)](_0x31ff4e,Error)?_0x31ff4e[_0x2c9c5f(0x210)]:String(_0x31ff4e)),_0x2b58fb(![]),_0x52899b[_0x2c9c5f(0x219)]=null;}return()=>{const _0x1dff57=_0x2c9c5f;_0x1be0c0=!![];try{_0x52899b[_0x1dff57(0x219)]?.[_0x1dff57(0x1f4)]?.();}catch{}_0x52899b[_0x1dff57(0x219)]=null,_0x451816[_0x1dff57(0x206)](_0x2b58fb,![]),_0x451816[_0x1dff57(0x1f3)](_0x246728,![]);};},[]);const _0x3ef5ec=useCallback(_0x36715f=>{const _0xee5c73=_0x37e94f,_0x10d4f2=_0x52899b[_0xee5c73(0x219)];if(!_0x10d4f2)throw new Error(_0x70b5eb[_0xee5c73(0x1fb)]);return _0x70b5eb[_0xee5c73(0x21d)](_0x36715f,_0x10d4f2);},[]),_0xd9aa2c=_0x70b5eb[_0x37e94f(0x1e6)](useCallback,async _0x3efa32=>{const _0x24b458=_0x37e94f;_0x70b5eb[_0x24b458(0x208)](_0x410999,null);try{await _0x70b5eb[_0x24b458(0x223)](_0x3ef5ec,_0x42d1db=>_0x42d1db[_0x24b458(0x22d)](_0x3efa32));const _0x4f31da=_0x70b5eb[_0x24b458(0x213)](_0x3ef5ec,_0x3f5bb7=>_0x3f5bb7[_0x24b458(0x20f)]?.()??null);if(_0x4f31da)_0x70b5eb[_0x24b458(0x215)](_0x47b085,_0x4f31da);_0x70b5eb[_0x24b458(0x215)](_0x246728,!![]);}catch(_0x12147b){_0x70b5eb[_0x24b458(0x215)](_0x410999,_0x70b5eb[_0x24b458(0x222)](_0x12147b,Error)?_0x12147b[_0x24b458(0x210)]:_0x70b5eb[_0x24b458(0x22f)](String,_0x12147b)),_0x70b5eb[_0x24b458(0x213)](_0x246728,![]);throw _0x12147b;}},[_0x3ef5ec]),_0x34ecff=_0x70b5eb[_0x37e94f(0x1e6)](useCallback,()=>{const _0xdf4cc3=_0x37e94f;_0x70b5eb[_0xdf4cc3(0x201)](_0x3ef5ec,_0x4ac6a8=>_0x4ac6a8[_0xdf4cc3(0x230)]());},[_0x3ef5ec]),_0x80acb8=_0x70b5eb[_0x37e94f(0x1e6)](useCallback,()=>{const _0x318d88=_0x37e94f;_0x70b5eb[_0x318d88(0x22f)](_0x3ef5ec,_0x7b30ee=>_0x7b30ee[_0x318d88(0x21c)]());},[_0x3ef5ec]),_0x5296ee=useCallback(()=>{const _0x4df030=_0x37e94f;_0x70b5eb[_0x4df030(0x221)](_0x3ef5ec,_0x1746d5=>_0x1746d5[_0x4df030(0x21e)]());},[_0x3ef5ec]),_0x4ddc2b=useCallback(_0x45f88d=>{const _0x4afc2c=_0x37e94f;_0x70b5eb[_0x4afc2c(0x1ff)](_0x3ef5ec,_0x14e9d6=>_0x14e9d6[_0x4afc2c(0x1e5)](_0x45f88d));},[_0x3ef5ec]),_0x16c7be=_0x70b5eb[_0x37e94f(0x1e6)](useCallback,()=>{const _0x389ad1=_0x37e94f;return _0x70b5eb[_0x389ad1(0x213)](_0x3ef5ec,_0x43fb6b=>_0x43fb6b[_0x389ad1(0x1f8)]());},[_0x3ef5ec]),_0xa4e567=_0x70b5eb[_0x37e94f(0x1e6)](useCallback,_0x567dc2=>{const _0x524f16=_0x37e94f;_0x3ef5ec(_0x1bc359=>_0x1bc359[_0x524f16(0x20c)](_0x567dc2));},[_0x3ef5ec]),_0x22c952=_0x70b5eb[_0x37e94f(0x1e6)](useCallback,_0x28239b=>{const _0x31a756=_0x37e94f;_0x70b5eb[_0x31a756(0x22f)](_0x3ef5ec,_0x296787=>_0x296787[_0x31a756(0x238)](_0x28239b));},[_0x3ef5ec]),_0x4b03b7=_0x70b5eb[_0x37e94f(0x217)](useCallback,()=>{const _0x309eff=_0x37e94f;_0x70b5eb[_0x309eff(0x227)](_0x3ef5ec,_0x72f7a6=>_0x72f7a6[_0x309eff(0x211)]());},[_0x3ef5ec]),_0x46a016=_0x70b5eb[_0x37e94f(0x1e6)](useCallback,()=>{const _0x30bb14=_0x37e94f;_0x3ef5ec(_0x2eca6e=>_0x2eca6e[_0x30bb14(0x20b)]());},[_0x3ef5ec]),_0x577bdf=_0x70b5eb[_0x37e94f(0x217)](useCallback,async(_0x387d53,_0x38aaeb)=>{const _0x53e42f=_0x37e94f;await _0x3ef5ec(_0x162a0f=>_0x162a0f[_0x53e42f(0x232)](_0x387d53,_0x38aaeb)),_0x70b5eb[_0x53e42f(0x22e)](_0x47b085,{'width':_0x387d53,'height':_0x38aaeb});},[_0x3ef5ec]),_0x59e069=_0x70b5eb[_0x37e94f(0x1f7)](useCallback,()=>{const _0x54cb1d=_0x37e94f;return _0x70b5eb[_0x54cb1d(0x201)](_0x3ef5ec,_0x12b729=>_0x12b729[_0x54cb1d(0x20f)]());},[_0x3ef5ec]),_0x3c90b5=useCallback(()=>{const _0x3441fc=_0x37e94f;return _0x70b5eb[_0x3441fc(0x205)](_0x3ef5ec,_0x66f543=>_0x66f543[_0x3441fc(0x1ec)]?.()??null);},[_0x3ef5ec]),_0x47f467=_0x70b5eb[_0x37e94f(0x217)](useCallback,(_0x263a4e,_0x26fcc7)=>{const _0x36687b=_0x37e94f;return _0x3ef5ec(_0x3ccbff=>_0x3ccbff[_0x36687b(0x1e9)](_0x263a4e,_0x26fcc7));},[_0x3ef5ec]),_0xfc5fa9=_0x70b5eb[_0x37e94f(0x20a)](useCallback,()=>{const _0x1031aa=_0x37e94f;return _0x70b5eb[_0x1031aa(0x1f5)](_0x3ef5ec,_0xe68e65=>_0xe68e65[_0x1031aa(0x233)]());},[_0x3ef5ec]),_0x453cab=useCallback(()=>{const _0x580e89=_0x37e94f;return _0x3ef5ec(_0x185a88=>_0x185a88[_0x580e89(0x1f1)]());},[_0x3ef5ec]),_0x554cbc={'canvasRef':_0x386ea1};return{'canvasRef':_0x386ea1,'ready':_0x18dd7e,'loaded':_0x2dc140,'error':_0x3fe14d,'transform':_0x5e075d,'frameSize':_0x1bc103,'setLego':_0xd9aa2c,'resetImage':_0x34ecff,'zoomIn':_0x80acb8,'zoomOut':_0x5296ee,'zoomToScale':_0x4ddc2b,'getZoomLimits':_0x16c7be,'rotateTo':_0xa4e567,'rotateBy':_0x22c952,'rotateRight':_0x4b03b7,'rotateLeft':_0x46a016,'setFrameSize':_0x577bdf,'getFrameSize':_0x59e069,'getImageSize':_0x3c90b5,'getCanvasDataUrl':_0x47f467,'getSourceMimeType':_0xfc5fa9,'getExportMimeType':_0x453cab,'controllerProps':_0x554cbc};}function transformToPixels(_0x16bfa8,_0x2379d3,_0x33df6c){const _0x495168=_0x422f,_0x14659f={'WlICN':function(_0x486ec4,_0x403b2e){return _0x486ec4(_0x403b2e);},'wqmeD':function(_0x1b64fc,_0x3a023a){return _0x1b64fc(_0x3a023a);},'kWkRM':function(_0x44ed2e,_0x4fa806){return _0x44ed2e*_0x4fa806;},'TbbvP':function(_0x4401cd,_0x332187){return _0x4401cd(_0x332187);},'aOZqx':function(_0x31de74,_0x5660d1){return _0x31de74(_0x5660d1);},'BKktY':function(_0x5a2969,_0x5d21b4){return _0x5a2969(_0x5d21b4);},'nSNFe':function(_0x43bf12,_0x3b09ff){return _0x43bf12*_0x3b09ff;},'LElIc':function(_0x265721,_0x3379b1){return _0x265721(_0x3379b1);},'NLxqc':function(_0x3f0cad,_0x4089df){return _0x3f0cad(_0x4089df);}},_0x1655f5=_0x14659f[_0x495168(0x20d)](Number,_0x2379d3)||0x0,_0x3d3dc3=_0x14659f[_0x495168(0x22c)](Number,_0x33df6c)||0x0;return{'left':_0x14659f[_0x495168(0x1f6)](_0x14659f[_0x495168(0x1eb)](Number,_0x16bfa8?.['x'])||0x0,_0x1655f5),'top':_0x14659f[_0x495168(0x1f6)](_0x14659f[_0x495168(0x21a)](Number,_0x16bfa8?.['y'])||0x0,_0x3d3dc3),'width':_0x14659f[_0x495168(0x1f6)](_0x14659f[_0x495168(0x1ed)](Number,_0x16bfa8?.[_0x495168(0x226)])||0x0,_0x1655f5),'height':_0x14659f[_0x495168(0x228)](Number(_0x16bfa8?.[_0x495168(0x200)])||0x0,_0x3d3dc3),'rotate':_0x14659f[_0x495168(0x239)](Number,_0x16bfa8?.[_0x495168(0x220)])||0x0,'scale':Math[_0x495168(0x22a)](0x0,_0x14659f[_0x495168(0x1e7)](Number,_0x16bfa8?.[_0x495168(0x218)])||0x0)};}function _0x422f(_0x3a4e09,_0x97d3e1){_0x3a4e09=_0x3a4e09-0x1e5;const _0x6c4dbd=_0x6c4d();let _0x422f07=_0x6c4dbd[_0x3a4e09];if(_0x422f['KsIYFL']===undefined){var _0x41de2e=function(_0x17fb56){const _0x1c167b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2e1bde='',_0x421be2='';for(let _0x4dc9b0=0x0,_0x4ff242,_0x2d665e,_0x18b213=0x0;_0x2d665e=_0x17fb56['charAt'](_0x18b213++);~_0x2d665e&&(_0x4ff242=_0x4dc9b0%0x4?_0x4ff242*0x40+_0x2d665e:_0x2d665e,_0x4dc9b0++%0x4)?_0x2e1bde+=String['fromCharCode'](0xff&_0x4ff242>>(-0x2*_0x4dc9b0&0x6)):0x0){_0x2d665e=_0x1c167b['indexOf'](_0x2d665e);}for(let _0x38bf88=0x0,_0x7d3a3b=_0x2e1bde['length'];_0x38bf88<_0x7d3a3b;_0x38bf88++){_0x421be2+='%'+('00'+_0x2e1bde['charCodeAt'](_0x38bf88)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x421be2);};_0x422f['jaRRXZ']=_0x41de2e,_0x422f['HpHoxO']={},_0x422f['KsIYFL']=!![];}const _0x3b479b=_0x6c4dbd[0x0];_0x422f['OYpBtD']!==_0x3b479b&&(_0x422f['HpHoxO']={},_0x422f['OYpBtD']=_0x3b479b);const _0x4b4498=_0x422f['HpHoxO'][_0x3a4e09];return _0x4b4498===undefined?(_0x422f07=_0x422f['jaRRXZ'](_0x422f07),_0x422f['HpHoxO'][_0x3a4e09]=_0x422f07):_0x422f07=_0x4b4498,_0x422f07;}function pixelsToTransform(_0x1e78fe,_0xf3be93,_0x3a60e5){const _0x2ddb33=_0x422f,_0x1490a8={'gPJXI':function(_0x570421,_0x22ddbc){return _0x570421(_0x22ddbc);},'RQOlM':function(_0x3fe878,_0x598de8){return _0x3fe878/_0x598de8;},'qUvwl':function(_0x3d24de,_0x5c76c0){return _0x3d24de(_0x5c76c0);},'TUXsG':function(_0x5a2bb3,_0xe6f820){return _0x5a2bb3(_0xe6f820);},'xoZBi':function(_0xc9c6a5,_0x57a216){return _0xc9c6a5(_0x57a216);},'LDhoT':function(_0x5cfa7d,_0x1c20f7){return _0x5cfa7d(_0x1c20f7);}},_0xca1a3e=Number(_0xf3be93)||0x1,_0x3fed5c=_0x1490a8[_0x2ddb33(0x1f0)](Number,_0x3a60e5)||0x1;return{'x':_0x1490a8[_0x2ddb33(0x214)](Number(_0x1e78fe?.[_0x2ddb33(0x1ea)])||0x0,_0xca1a3e),'y':_0x1490a8[_0x2ddb33(0x214)](_0x1490a8[_0x2ddb33(0x1fc)](Number,_0x1e78fe?.[_0x2ddb33(0x1ef)])||0x0,_0x3fed5c),'width':(_0x1490a8[_0x2ddb33(0x229)](Number,_0x1e78fe?.[_0x2ddb33(0x226)])||0x0)/_0xca1a3e,'height':_0x1490a8[_0x2ddb33(0x214)](Number(_0x1e78fe?.[_0x2ddb33(0x200)])||0x0,_0x3fed5c),'rotate':_0x1490a8[_0x2ddb33(0x1fd)](Number,_0x1e78fe?.[_0x2ddb33(0x220)])||0x0,'scale':Math[_0x2ddb33(0x22a)](0x0,_0x1490a8[_0x2ddb33(0x1f2)](Number,_0x1e78fe?.[_0x2ddb33(0x218)])||0x0)};}function pixelsToCssTransform(_0x261e61){const _0x58a630=_0x422f,_0x134dbc=Number(_0x261e61?.[_0x58a630(0x1ea)])||0x0,_0x2b3905=Number(_0x261e61?.[_0x58a630(0x1ef)])||0x0,_0x2c3f9b=Number(_0x261e61?.[_0x58a630(0x220)])||0x0;return _0x58a630(0x216)+_0x134dbc+_0x58a630(0x203)+_0x2b3905+_0x58a630(0x207)+_0x2c3f9b+_0x58a630(0x204);}export{pixelsToCssTransform,pixelsToTransform,transformToPixels,useImageCrop};
3
+ (function(_0x51b9f2,_0x429d16){const _0x3838f9=_0xf44e,_0x28ebac=_0x51b9f2();while(!![]){try{const _0xd47e0f=parseInt(_0x3838f9(0x20e))/0x1*(-parseInt(_0x3838f9(0x1bc))/0x2)+-parseInt(_0x3838f9(0x1d1))/0x3*(parseInt(_0x3838f9(0x1cb))/0x4)+-parseInt(_0x3838f9(0x1d6))/0x5+-parseInt(_0x3838f9(0x1bf))/0x6*(-parseInt(_0x3838f9(0x1da))/0x7)+-parseInt(_0x3838f9(0x1dc))/0x8*(parseInt(_0x3838f9(0x202))/0x9)+-parseInt(_0x3838f9(0x1e9))/0xa+parseInt(_0x3838f9(0x1ed))/0xb;if(_0xd47e0f===_0x429d16)break;else _0x28ebac['push'](_0x28ebac['shift']());}catch(_0x15cf94){_0x28ebac['push'](_0x28ebac['shift']());}}}(_0x55bd,0xa63f5));function useImageCrop({onChange:_0x3ba8bb}={}){const _0x4ac12c=_0xf44e,_0x4d1150={'rVlvT':function(_0x3bdde3,_0x5953b1){return _0x3bdde3(_0x5953b1);},'OyUlw':function(_0x2c70dc,_0x2318ab){return _0x2c70dc(_0x2318ab);},'PLccO':function(_0x3ee717,_0xbac927){return _0x3ee717(_0xbac927);},'bamZX':function(_0x8f515c,_0x149780){return _0x8f515c(_0x149780);},'VzfAT':function(_0x560ee4,_0x34ca8c){return _0x560ee4 instanceof _0x34ca8c;},'lYqoi':function(_0x29dd8a,_0xb046ac){return _0x29dd8a(_0xb046ac);},'ydeGP':function(_0x3b9c76,_0x2e7aac){return _0x3b9c76 instanceof _0x2e7aac;},'mkVBJ':function(_0x126852,_0x21c96a){return _0x126852(_0x21c96a);},'Mvxja':function(_0x164073,_0x4aab01){return _0x164073(_0x4aab01);},'eiYMG':function(_0x256f41,_0x120c2c){return _0x256f41(_0x120c2c);},'BLsnK':function(_0x219b95,_0x10375d){return _0x219b95(_0x10375d);},'FrtKt':function(_0x4c79e9,_0x3f3767){return _0x4c79e9(_0x3f3767);},'mmJPF':function(_0xfdc708,_0x39264e){return _0xfdc708(_0x39264e);},'ScoyL':function(_0x4e3814,_0x53812d){return _0x4e3814(_0x53812d);},'PWdtj':function(_0x18dede,_0xebbd41){return _0x18dede(_0xebbd41);},'gOlvO':function(_0x429608,_0x2a21a9,_0x815851){return _0x429608(_0x2a21a9,_0x815851);},'uNTnB':function(_0x30d6da,_0x2b0678,_0x44d14f){return _0x30d6da(_0x2b0678,_0x44d14f);},'AqSFs':function(_0x44a099,_0x16cc9d,_0x589615){return _0x44a099(_0x16cc9d,_0x589615);},'ynodV':function(_0x30cad0,_0x13b0be,_0x270f33){return _0x30cad0(_0x13b0be,_0x270f33);},'NkyJx':function(_0x2d8041,_0x2d9146,_0x40f693){return _0x2d8041(_0x2d9146,_0x40f693);},'UIFPz':function(_0x4a7cd5,_0x58f410,_0x37f7cc){return _0x4a7cd5(_0x58f410,_0x37f7cc);},'jJFuF':function(_0x33b96a,_0x39c750,_0x4133ee){return _0x33b96a(_0x39c750,_0x4133ee);},'owdnM':function(_0xeef135,_0x431804,_0x58a641){return _0xeef135(_0x431804,_0x58a641);},'PxQjR':function(_0x1d6def,_0x218ffe,_0x53cc7c){return _0x1d6def(_0x218ffe,_0x53cc7c);},'hAfhK':function(_0x27543c,_0x175627,_0x3b327a){return _0x27543c(_0x175627,_0x3b327a);}},_0x51369f=_0x4d1150[_0x4ac12c(0x1d8)](useRef,null),_0xe7d30c=_0x4d1150[_0x4ac12c(0x1f3)](useRef,null),_0x58027c=_0x4d1150[_0x4ac12c(0x20a)](useRef,_0x3ba8bb);_0x58027c[_0x4ac12c(0x209)]=_0x3ba8bb;const [_0x14724,_0x536955]=_0x4d1150[_0x4ac12c(0x1cd)](useState,![]),[_0x5b0c5b,_0x491981]=_0x4d1150[_0x4ac12c(0x1df)](useState,null),[_0x53d50f,_0x3f2992]=_0x4d1150[_0x4ac12c(0x1e1)](useState,null),[_0x278698,_0xc2528]=_0x4d1150[_0x4ac12c(0x1f3)](useState,null),[_0xc6d76e,_0x2b30d9]=_0x4d1150[_0x4ac12c(0x1f3)](useState,![]);_0x4d1150[_0x4ac12c(0x208)](useEffect,()=>{const _0x36041b=_0x4ac12c,_0x1e2655=_0x51369f[_0x36041b(0x209)];if(!_0x1e2655)return void 0x0;let _0x1c29c8=![];try{const _0x45bd8e=_0x4d1150[_0x36041b(0x1e4)](initLego,{'canvas':_0x1e2655,'onChange':_0x4976ab=>{const _0x16b9d9=_0x36041b;if(_0x1c29c8)return;_0x4d1150[_0x16b9d9(0x1fa)](_0x491981,_0x4976ab),_0x58027c[_0x16b9d9(0x209)]?.(_0x4976ab);}});_0xe7d30c[_0x36041b(0x209)]=_0x45bd8e,_0x4d1150[_0x36041b(0x1e4)](_0x536955,!![]),_0xc2528(null);}catch(_0x54d030){_0x4d1150[_0x36041b(0x1c1)](_0xc2528,_0x4d1150[_0x36041b(0x1c7)](_0x54d030,Error)?_0x54d030[_0x36041b(0x1c0)]:String(_0x54d030)),_0x4d1150[_0x36041b(0x1e4)](_0x536955,![]),_0xe7d30c[_0x36041b(0x209)]=null;}return()=>{const _0x436c0e=_0x36041b,_0x543d27=_0x436c0e(0x1f0)[_0x436c0e(0x1ce)]('|');let _0x1a2a2a=0x0;while(!![]){switch(_0x543d27[_0x1a2a2a++]){case'0':_0x536955(![]);continue;case'1':_0x4d1150[_0x436c0e(0x1fb)](_0x2b30d9,![]);continue;case'2':_0xe7d30c[_0x436c0e(0x209)]=null;continue;case'3':try{_0xe7d30c[_0x436c0e(0x209)]?.[_0x436c0e(0x1de)]?.();}catch{}continue;case'4':_0x1c29c8=!![];continue;}break;}};},[]);const _0x33dcdd=useCallback(_0x2b7065=>{const _0x267260=_0x4ac12c,_0x460f5b=_0xe7d30c[_0x267260(0x209)];if(!_0x460f5b)throw new Error(_0x267260(0x1f1));return _0x4d1150[_0x267260(0x1fa)](_0x2b7065,_0x460f5b);},[]),_0x5d0834=_0x4d1150[_0x4ac12c(0x1c5)](useCallback,async _0x5ed74b=>{const _0x2d6fb8=_0x4ac12c;_0x4d1150[_0x2d6fb8(0x1c3)](_0xc2528,null);try{await _0x4d1150[_0x2d6fb8(0x1e4)](_0x33dcdd,_0x41b73b=>_0x41b73b[_0x2d6fb8(0x1cf)](_0x5ed74b));const _0x236b96=_0x4d1150[_0x2d6fb8(0x1fa)](_0x33dcdd,_0xfb522c=>_0xfb522c[_0x2d6fb8(0x1c2)]?.()??null);if(_0x236b96)_0x4d1150[_0x2d6fb8(0x1fa)](_0x3f2992,_0x236b96);_0x4d1150[_0x2d6fb8(0x1c1)](_0x2b30d9,!![]);}catch(_0x4b10ed){_0x4d1150[_0x2d6fb8(0x1fb)](_0xc2528,_0x4d1150[_0x2d6fb8(0x1e6)](_0x4b10ed,Error)?_0x4b10ed[_0x2d6fb8(0x1c0)]:_0x4d1150[_0x2d6fb8(0x1c3)](String,_0x4b10ed)),_0x2b30d9(![]);throw _0x4b10ed;}},[_0x33dcdd]),_0x19b7a8=_0x4d1150[_0x4ac12c(0x1db)](useCallback,()=>{const _0x21455a=_0x4ac12c;_0x33dcdd(_0x1a3709=>_0x1a3709[_0x21455a(0x1be)]());},[_0x33dcdd]),_0x5c5fc1=_0x4d1150[_0x4ac12c(0x1d0)](useCallback,()=>{const _0x20a98d=_0x4ac12c;_0x33dcdd(_0x18ff2c=>_0x18ff2c[_0x20a98d(0x1f9)]());},[_0x33dcdd]),_0x1f635f=useCallback(()=>{const _0x1239a1=_0x4ac12c;_0x4d1150[_0x1239a1(0x1f3)](_0x33dcdd,_0x2848b9=>_0x2848b9[_0x1239a1(0x206)]());},[_0x33dcdd]),_0x3dd694=_0x4d1150[_0x4ac12c(0x20c)](useCallback,_0x53ef01=>{const _0xf26784=_0x4ac12c;_0x4d1150[_0xf26784(0x1cd)](_0x33dcdd,_0x297ac1=>_0x297ac1[_0xf26784(0x1e3)](_0x53ef01));},[_0x33dcdd]),_0x5fb6fa=_0x4d1150[_0x4ac12c(0x1bb)](useCallback,()=>{const _0x517cff=_0x4ac12c;return _0x4d1150[_0x517cff(0x1f3)](_0x33dcdd,_0x253773=>_0x253773[_0x517cff(0x205)]());},[_0x33dcdd]),_0x4a6f17=_0x4d1150[_0x4ac12c(0x1d0)](useCallback,_0x427ddd=>{const _0x1c9617=_0x4ac12c;_0x33dcdd(_0x3336d0=>_0x3336d0[_0x1c9617(0x200)](_0x427ddd));},[_0x33dcdd]),_0x2049f0=_0x4d1150[_0x4ac12c(0x208)](useCallback,_0x566e56=>{const _0x55a717=_0x4ac12c;_0x4d1150[_0x55a717(0x1fb)](_0x33dcdd,_0xf28805=>_0xf28805[_0x55a717(0x1ca)](_0x566e56));},[_0x33dcdd]),_0x4823ca=_0x4d1150[_0x4ac12c(0x1c5)](useCallback,()=>{const _0x4a4ed0=_0x4ac12c;_0x4d1150[_0x4a4ed0(0x1f4)](_0x33dcdd,_0x553689=>_0x553689[_0x4a4ed0(0x1ff)]());},[_0x33dcdd]),_0x24f4de=_0x4d1150[_0x4ac12c(0x1e8)](useCallback,()=>{const _0x279dbf=_0x4ac12c;_0x33dcdd(_0x46e662=>_0x46e662[_0x279dbf(0x1eb)]());},[_0x33dcdd]),_0x41aee9=_0x4d1150[_0x4ac12c(0x1d3)](useCallback,async(_0x4f09be,_0x35ee89)=>{const _0x36ef06=_0x4ac12c;await _0x4d1150[_0x36ef06(0x20a)](_0x33dcdd,_0x1b1a4d=>_0x1b1a4d[_0x36ef06(0x1ee)](_0x4f09be,_0x35ee89)),_0x4d1150[_0x36ef06(0x1c3)](_0x3f2992,{'width':_0x4f09be,'height':_0x35ee89});},[_0x33dcdd]),_0x19716a=_0x4d1150[_0x4ac12c(0x1d0)](useCallback,()=>{const _0x467c09=_0x4ac12c;return _0x33dcdd(_0x3aeb44=>_0x3aeb44[_0x467c09(0x1c2)]());},[_0x33dcdd]),_0x17c18b=_0x4d1150[_0x4ac12c(0x1d0)](useCallback,()=>{const _0x3586cb=_0x4ac12c;return _0x4d1150[_0x3586cb(0x1d8)](_0x33dcdd,_0x2577b7=>_0x2577b7[_0x3586cb(0x1d2)]?.()??null);},[_0x33dcdd]),_0x2e5fcd=_0x4d1150[_0x4ac12c(0x1ef)](useCallback,(_0x4cd564,_0x2fe553)=>{const _0x49e9a8=_0x4ac12c;return _0x4d1150[_0x49e9a8(0x1e0)](_0x33dcdd,_0x129cb8=>_0x129cb8[_0x49e9a8(0x1fe)](_0x4cd564,_0x2fe553));},[_0x33dcdd]),_0x2357bc=_0x4d1150[_0x4ac12c(0x1fd)](useCallback,()=>{const _0x35a707=_0x4ac12c;return _0x4d1150[_0x35a707(0x1c1)](_0x33dcdd,_0x543aed=>_0x543aed[_0x35a707(0x1ec)]());},[_0x33dcdd]),_0x564575=_0x4d1150[_0x4ac12c(0x208)](useCallback,()=>{const _0x561b36=_0x4ac12c;return _0x33dcdd(_0x1ea74b=>_0x1ea74b[_0x561b36(0x1e5)]());},[_0x33dcdd]),_0x114399={'canvasRef':_0x51369f};return{'canvasRef':_0x51369f,'ready':_0x14724,'loaded':_0xc6d76e,'error':_0x278698,'transform':_0x5b0c5b,'frameSize':_0x53d50f,'setLego':_0x5d0834,'resetImage':_0x19b7a8,'zoomIn':_0x5c5fc1,'zoomOut':_0x1f635f,'zoomToScale':_0x3dd694,'getZoomLimits':_0x5fb6fa,'rotateTo':_0x4a6f17,'rotateBy':_0x2049f0,'rotateRight':_0x4823ca,'rotateLeft':_0x24f4de,'setFrameSize':_0x41aee9,'getFrameSize':_0x19716a,'getImageSize':_0x17c18b,'getCanvasDataUrl':_0x2e5fcd,'getSourceMimeType':_0x2357bc,'getExportMimeType':_0x564575,'controllerProps':_0x114399};}function transformToPixels(_0xf4153,_0x26fc5d,_0x572f91){const _0xb578e2=_0xf44e,_0xaba540={'CpItX':function(_0x2e03f9,_0x1cbea6){return _0x2e03f9(_0x1cbea6);},'bswZv':function(_0x5a2568,_0x10bd75){return _0x5a2568(_0x10bd75);},'bXeOk':function(_0x544ef5,_0xb09d5a){return _0x544ef5*_0xb09d5a;},'MOKUM':function(_0x1066b9,_0x2597da){return _0x1066b9(_0x2597da);},'BUVou':function(_0x3612c1,_0x371220){return _0x3612c1(_0x371220);},'HVFtD':function(_0x1ccbc9,_0x597614){return _0x1ccbc9*_0x597614;},'qZlTO':function(_0x23eaad,_0x52dff0){return _0x23eaad(_0x52dff0);}},_0x5624aa=_0xaba540[_0xb578e2(0x1f8)](Number,_0x26fc5d)||0x0,_0x1ab04f=_0xaba540[_0xb578e2(0x1fc)](Number,_0x572f91)||0x0;return{'left':_0xaba540[_0xb578e2(0x1d9)](_0xaba540[_0xb578e2(0x1dd)](Number,_0xf4153?.['x'])||0x0,_0x5624aa),'top':(_0xaba540[_0xb578e2(0x1d4)](Number,_0xf4153?.['y'])||0x0)*_0x1ab04f,'width':(Number(_0xf4153?.[_0xb578e2(0x1c9)])||0x0)*_0x5624aa,'height':_0xaba540[_0xb578e2(0x20b)](_0xaba540[_0xb578e2(0x1d4)](Number,_0xf4153?.[_0xb578e2(0x1c6)])||0x0,_0x1ab04f),'rotate':_0xaba540[_0xb578e2(0x204)](Number,_0xf4153?.[_0xb578e2(0x1f6)])||0x0,'scale':Math[_0xb578e2(0x1f5)](0x0,_0xaba540[_0xb578e2(0x204)](Number,_0xf4153?.[_0xb578e2(0x1ea)])||0x0)};}function _0x55bd(){const _0x2d93f5=['q2D0y0i','ndqYnty0me5dAwXcwa','r2zcCgK','rNj0s3q','yLHLt2S','mZeWmurgqMLrrW','qxftrNm','nJu0odHPrLzvEwG','tu9lvu0','zgvZDhjVEq','u2nVEuW','Bw1kuey','ufDKDgO','ChGSia','EM9VBvrVu2nHBgu','ueXJy08','z2v0rxHWB3j0twLTzvr5Cgu','EwrLr1a','zKrozvG','AKPgDuy','otu2nZGWmeDMwM96vG','C2nHBgu','CM90yxrLtgvMDa','z2v0u291CMnLtwLTzvr5Cgu','ntGXnZmXnZbrwhrnDLe','C2v0rNjHBwvtAxPL','uhHrALi','nhWZFdj8mhWX','sw1Hz2uGy3jVChbLCIbPCYbUB3qGCMvHzhKG4Ocuig1VDw50igeGpgnHBNzHCYbYzwy9E2nHBNzHC1jLzN0GlZ4GzMLYC3q','zgvNkq','BwTwqKO','zwLztuC','Bwf4','CM90yxrL','teHbt1q','q3bjDfG','EM9VBuLU','CLzSDLq','t3LvBhC','yNn3wNy','AefMAeS','z2v0q2fUDMfZrgf0yvvYBa','CM90yxrLuMLNAhq','CM90yxrLvg8','ChGPihjVDgf0zsG','nde0AeHiwLrd','Dg9W','CvPSve8','z2v0wM9VBuXPBwL0CW','EM9VBu91Da','vuPlt3m','z09SDK8','y3vYCMvUDa','qKXZBKS','sfzgDeq','tMT5sNG','ww9QAMu','mvHjBhzcqq','vuLguhO','mJy5mtq0nLrRwMH6Ea','BgvMDa','CMvZzxrjBwfNzq','odm0sxjmEKPP','BwvZC2fNzq','yMfTwLG','z2v0rNjHBwvtAxPL','BfLXB2K','wMTwsKu','Du5uBKi','AgvPz2H0','vNPMqvq','wgnovMq','D2LKDgG','CM90yxrLqNK','neX6yvbyva','DhjHBNnSyxrLka','txz4AMe','C3bSAxq','C2v0tgvNBW','Ew5Vzfy','mZmXndCZm0DRre1dvq','z2v0sw1Hz2vtAxPL','B3DKBK0','qLvwB3u'];_0x55bd=function(){return _0x2d93f5;};return _0x55bd();}function pixelsToTransform(_0x3f48e7,_0x32a496,_0x119c0f){const _0x3bc46d=_0xf44e,_0x5baf45={'fDNeX':function(_0x17d398,_0x52d478){return _0x17d398(_0x52d478);},'Yojje':function(_0x3de018,_0x51a466){return _0x3de018/_0x51a466;},'GfBpi':function(_0x507bf2,_0x5a1baa){return _0x507bf2/_0x5a1baa;},'UJKOs':function(_0x1ce312,_0x35a0d3){return _0x1ce312/_0x35a0d3;},'XcNVd':function(_0x3460d4,_0x4c0309){return _0x3460d4(_0x4c0309);},'LHAOT':function(_0x3e8816,_0x5bc49d){return _0x3e8816(_0x5bc49d);}},_0x5d2597=Number(_0x32a496)||0x1,_0x4c712e=_0x5baf45[_0x3bc46d(0x1e7)](Number,_0x119c0f)||0x1;return{'x':_0x5baf45[_0x3bc46d(0x20d)](_0x5baf45[_0x3bc46d(0x1e7)](Number,_0x3f48e7?.[_0x3bc46d(0x1bd)])||0x0,_0x5d2597),'y':_0x5baf45[_0x3bc46d(0x1d7)](_0x5baf45[_0x3bc46d(0x1e7)](Number,_0x3f48e7?.[_0x3bc46d(0x203)])||0x0,_0x4c712e),'width':(_0x5baf45[_0x3bc46d(0x1e7)](Number,_0x3f48e7?.[_0x3bc46d(0x1c9)])||0x0)/_0x5d2597,'height':_0x5baf45[_0x3bc46d(0x207)](_0x5baf45[_0x3bc46d(0x1c8)](Number,_0x3f48e7?.[_0x3bc46d(0x1c6)])||0x0,_0x4c712e),'rotate':Number(_0x3f48e7?.[_0x3bc46d(0x1f6)])||0x0,'scale':Math[_0x3bc46d(0x1f5)](0x0,_0x5baf45[_0x3bc46d(0x1f7)](Number,_0x3f48e7?.[_0x3bc46d(0x1ea)])||0x0)};}function _0xf44e(_0x37ec93,_0x2722b1){_0x37ec93=_0x37ec93-0x1bb;const _0x55bd05=_0x55bd();let _0xf44ea=_0x55bd05[_0x37ec93];if(_0xf44e['gZGVjt']===undefined){var _0x54d2f7=function(_0x119af0){const _0x245fd5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x354e28='',_0x4b8d71='';for(let _0x591631=0x0,_0x44bb7d,_0x139611,_0x2d0cd9=0x0;_0x139611=_0x119af0['charAt'](_0x2d0cd9++);~_0x139611&&(_0x44bb7d=_0x591631%0x4?_0x44bb7d*0x40+_0x139611:_0x139611,_0x591631++%0x4)?_0x354e28+=String['fromCharCode'](0xff&_0x44bb7d>>(-0x2*_0x591631&0x6)):0x0){_0x139611=_0x245fd5['indexOf'](_0x139611);}for(let _0xae16f4=0x0,_0x3af14b=_0x354e28['length'];_0xae16f4<_0x3af14b;_0xae16f4++){_0x4b8d71+='%'+('00'+_0x354e28['charCodeAt'](_0xae16f4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4b8d71);};_0xf44e['hhwvnq']=_0x54d2f7,_0xf44e['UWRPKj']={},_0xf44e['gZGVjt']=!![];}const _0x4a33a2=_0x55bd05[0x0];_0xf44e['raXLYW']!==_0x4a33a2&&(_0xf44e['UWRPKj']={},_0xf44e['raXLYW']=_0x4a33a2);const _0x209034=_0xf44e['UWRPKj'][_0x37ec93];return _0x209034===undefined?(_0xf44ea=_0xf44e['hhwvnq'](_0xf44ea),_0xf44e['UWRPKj'][_0x37ec93]=_0xf44ea):_0xf44ea=_0x209034,_0xf44ea;}function pixelsToCssTransform(_0x145472){const _0xc67f53=_0xf44e,_0x14f57f={'CgtcB':function(_0x3e80d7,_0x2cfd43){return _0x3e80d7(_0x2cfd43);},'ZkVJE':function(_0x10770d,_0x560d5f){return _0x10770d(_0x560d5f);}},_0x5cb4ad=_0x14f57f[_0xc67f53(0x1d5)](Number,_0x145472?.[_0xc67f53(0x1bd)])||0x0,_0x5b045d=_0x14f57f[_0xc67f53(0x1c4)](Number,_0x145472?.[_0xc67f53(0x203)])||0x0,_0x265d95=_0x14f57f[_0xc67f53(0x1c4)](Number,_0x145472?.[_0xc67f53(0x1f6)])||0x0;return _0xc67f53(0x1cc)+_0x5cb4ad+_0xc67f53(0x1e2)+_0x5b045d+_0xc67f53(0x201)+_0x265d95+_0xc67f53(0x1f2);}export{pixelsToCssTransform,pixelsToTransform,transformToPixels,useImageCrop};