PageSourceSearch

https://ravit.jp/_expo/static/js/web/camera-01e0f65be423d6125c677131fc1bc764.js

js ravit.jp collected 2026-09-24 10:57:32 UTC 34,343 bytes, 16 lines download raw bytes

1var _sentryDebugIds,_sentryDebugIdIdentifier;void 0===_sentryDebugIds&&(_sentryDebugIds={});try{var stack=(new Error).stack;stack&&(_sentryDebugIds[stack]="70c5b5b8-f18a-4095-95be-2777e4c37174",_sentryDebugIdIdentifier="sentry-dbid-70c5b5b8-f18a-4095-95be-2777e4c37174")}catch(e){}
2var SENTRY_RELEASE;SENTRY_RELEASE={name: "Ravit", version: "4.3.0"};
3__d(function(g,r,i,_a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return W}});var t=r(d[0]),a=r(d[1]),n=r(d[2]),o=r(d[3]),s=r(d[4]),u=r(d[5]),c=r(d[6]),l=r(d[7]),h=r(d[8]),f=r(d[9]),p=r(d[10]),b=r(d[11]),y=r(d[12]),x=r(d[13]),C=e(x),w=e(r(d[14])),v=(e(r(d[15])),e(r(d[16])),e(r(d[17]))),j=e(r(d[18]));r(d[19]);var k=e(r(d[20])),B=e(r(d[21])),S=e(r(d[22])),I=e(r(d[23])),P=r(d[24]),R=r(d[25]);const T="number"==typeof s.AppConfig.imagePickerOptions?.quality?s.AppConfig.imagePickerOptions.quality:.8,O=.75,M=1.3333333333333333,A=50,E=100,H=(e,t)=>{const a=s.AppConfig.imagePickerOptions?.maxWidth,n=s.AppConfig.imagePickerOptions?.maxHeight,o=Math.abs(t)%180==90,u=o?e.height:e.width,c=o?e.width:e.height;if(!u||!c||!a&&!n)return null;let l=1;return a&&u>a&&(l=Math.min(l,a/u)),n&&c>n&&(l=Math.min(l,n/c)),l>=1?null:{width:Math.round(u*l),height:Math.round(c*l)}},L=e=>{};function W(){const e=(0,l.useGuardedRouter)(),s=(0,y.useNavigation)(),{safeGoBack:B}=(0,h.useSafeBackNavigation)(),{show:W}=(0,u.useDialogError)(),{appHeight:F,appWidth:_,windowHeight:z,windowWidth:N}=(0,c.useAppDimensions)(),V=(0,P.useSafeAreaInsets)(),q=(0,y.useLocalSearchParams)(),G="true"===q.fromVerification,U="verification"===q.returnScreen,$=G&&U,[J,K,Q]=(0,p.useCameraPermissions)(),X=(0,x.useRef)(null),Y=(0,x.useRef)(!1),Z=((0,x.useRef)(!0),(0,x.useRef)(!1),(0,x.useRef)(!1)),[ee,te]=(0,x.useState)(!1),[ae,ie]=(0,x.useState)(!1),[ne,re]=(0,x.useState)([]),[oe,se]=(0,x.useState)(),[ue,ce]=(0,x.useState)(()=>L(G)),[de,le]=(0,x.useState)(()=>({width:_,height:Math.max(F-V.top-V.bottom-A-E,1)})),he=N>z,fe=he?M:O,ge=C.default.useMemo(()=>{const e=Math.max(de.width,1),t=Math.max(de.height,1)*fe,a=Math.min(e,t);return{width:a,height:a/fe}},[de.height,de.width,fe]),me=C.default.useMemo(()=>[D.cameraCautionText,{width:he?.9*ge.width:ge.height,transform:[{rotate:he?"0deg":"90deg"}]}],[ge.height,ge.width,he]),pe=(0,x.useCallback)(e=>{const{width:t,height:a}=e.nativeEvent.layout;le(e=>Math.abs(e.width-t)<1&&Math.abs(e.height-a)<1?e:{width:t,height:a})},[]),be=(0,x.useCallback)(()=>{te(!0)},[G,ue]),ye=(0,x.useCallback)(e=>{const t="nativeEvent"in e?e.nativeEvent.lenses:e.lenses;re(t)},[]),xe=(0,x.useCallback)(()=>{se(e=>{if(ne.length<=1)return e;const t=e?ne.indexOf(e):-1,a=t>=0?(t+1)%ne.length:0;return ne[a]})},[ne]),Ce=(0,x.useCallback)(()=>{Z.current||ae||(Z.current=!0,s.dispatch(f.StackActions.popTo("verification",{capturedImageHeight:void 0,capturedImageRotation:void 0,capturedImageUri:void 0,capturedImageWidth:void 0,normalizeCapturedImage:void 0,resetStep:void 0,standardCameraRequestId:String(Date.now())},{merge:!0})))},[ae,s]),we=!ee||ae,ve=ae,je=(0,x.useCallback)(()=>{e.dismissTo({pathname:"/(private)/verification",params:{resetStep:"1",capturedImageUri:void 0}})},[e]),ke=(0,x.useCallback)(()=>{G&&U?je():B()},[je,G,U,B]),Be=(0,x.useCallback)(()=>{ke(),v.default.runAfterInteractions(()=>{j.default.openSettings()})},[ke]),Se=(0,x.useCallback)(()=>{W("\u8a2d\u5b9a\u30a2\u30d7\u30ea\u3092\u8d77\u52d5\u3057\u3066\u30ab\u30e1\u30e9\u306e\u5229\u7528\u3092\u6709\u52b9\u306b\u3057\u3066\u304f\u3060\u3055\u3044\u3002",{title:"\u30ab\u30e1\u30e9\u3092\u8d77\u52d5\u3067\u304d\u307e\u305b\u3093",positiveButtonText:"\u8a2d\u5b9a\u30a2\u30d7\u30ea\u3092\u958b\u304f",onPositivePress:Be,onOutsidePress:ke,delay:0})},[ke,Be,W]),Ie=(0,x.useCallback)(e=>{te(!1),W("\u30ab\u30e1\u30e9\u3092\u8d77\u52d5\u3067\u304d\u307e\u305b\u3093\u3067\u3057\u305f\u3002\u7aef\u672b\u3092\u518d\u8d77\u52d5\u3057\u3066\u3082\u3046\u4e00\u5ea6\u304a\u8a66\u3057\u304f\u3060\u3055\u3044\u3002",{title:"\u30ab\u30e1\u30e9\u3092\u8d77\u52d5\u3067\u304d\u307e\u305b\u3093",positiveButtonText:"\u9589\u3058\u308b",onPositivePress:ke,onOutsidePress:ke,delay:0})},[ke,W]);if((0,x.useEffect)(()=>{},[ke]),(0,x.useEffect)(()=>{},[Q]),(0,x.useEffect)(()=>
3{if(!J)return;if(J.granted)return;(async()=>{if(!Y.current&&J.canAskAgain){Y.current=!0;return void((await K()).granted||Se())}Se()})()},[J,K,Se]),(0,x.useEffect)(()=>{oe||0===ne.length||se(ne[0])},[ne,oe]),!J)return(0,R.jsx)(I.default,{style:D.container});if(!J.granted)return(0,R.jsx)(I.default,{style:D.container});const Pe=e=>{const t={3:180,6:-90,8:90},a=e=>{if("number"==typeof e)return t[e]??0;if("string"==typeof e){const a=parseInt(e,10);if(!Number.isNaN(a)&&t[a])return t[a];const n=e.toLowerCase();if(n.includes("90"))return n.includes("cw")?-90:90;if(n.includes("180"))return 180}return 0},n=[e.exif?.Orientation,e.exif?.orientation,e.exif?.["{TIFF}"]?.Orientation,e.exif?.["{Exif}"]?.Orientation];for(const e of n){const t=a(e);if(0!==t)return t}return e.width<e.height?-90:0};return(0,R.jsxs)(R.Fragment,{children:[(0,R.jsx)(y.Stack.Screen,{options:{headerShown:!0,headerTransparent:!0,header:({navigation:e,route:o,options:s,back:u})=>(0,R.jsx)(a.Header,{transparent:!0,headerLeft:()=>null,headerRight:()=>(0,R.jsx)(n.Image,{style:D.headerRightButton,source:t.Images._005_buttonCloseWhite,onPress:ke})})}}),(0,R.jsx)(I.default,{style:D.container,children:(0,R.jsxs)(o.AppViewport,{style:[D.cameraContent,{paddingTop:V.top+A}],children:[(0,R.jsx)(I.default,{style:D.cameraStage,onLayout:pe,children:(0,R.jsxs)(I.default,{style:[D.cameraViewport,ge],children:[(0,R.jsx)(p.CameraView,{ref:X,style:D.camera,facing:"back",mode:"picture",flash:"off",selectedLens:oe,pictureSize:ue,onCameraReady:be,onMountError:Ie,onAvailableLensesChanged:ye}),(0,R.jsx)(I.default,{style:[D.cameraCautionTrack,he?D.cameraCautionTrackLandscape:D.cameraCautionTrackPortrait],pointerEvents:"none",children:(0,R.jsxs)(S.default,{style:me,children:["\u767d\u8272\u306e\u67a0\u7dda\u3092\u76ee\u5b89\u306b\u30d4\u30f3\u30c8\u3092\u3042\u308f\u305b\u3066\u64ae\u5f71\u3057\u3066\u304f\u3060\u3055\u3044","\n","\u30d4\u30f3\u30c8\u304c\u3042\u308f\u306a\u3044\u5834\u5408\u306f\u300c\u6a19\u6e96\u30ab\u30e1\u30e9\u300d\u3092\u3054\u5229\u7528\u304f\u3060\u3055\u3044"]})}),(0,R.jsx)(I.default,{style:D.guideOverlay,children:(0,R.jsx)(I.default,{style:[D.guideFrame,{aspectRatio:he?1.5625:.64}]})})]})}),(0,R.jsxs)(I.default,{style:[D.bottomButtonContainer,{paddingBottom:Math.max(V.bottom,12)}],children:[$?(0,R.jsx)(k.default,{accessibilityRole:"button",accessibilityLabel:"\u6a19\u6e96\u30ab\u30e1\u30e9",style:[D.sideButton,ve&&D.standardCameraButtonDisabled],disabled:ve,onPress:Ce,children:(0,R.jsx)(S.default,{style:[D.sideButtonText,!he&&D.sideButtonTextRotated],children:"\u6a19\u6e96\u30ab\u30e1\u30e9"})}):(0,R.jsx)(I.default,{style:D.sideButton}),(0,R.jsx)(k.default,{style:[D.captureButton,we&&D.captureButtonDisabled],disabled:we,onPress:async()=>{if(X.current&&ee&&!ae&&(ie(!0),X.current))try{const t=await X.current.takePictureAsync({exif:!0,quality:T});let a=t?.uri,n={};if(!a)return void ie(!1);if(G){const e=Pe(t);{const n=H(t,e),o=b.ImageManipulator.manipulate(a);0!==e&&o.rotate(e),n&&o.resize(n);const s=await o.renderAsync();a=(await s.saveAsync({compress:T,format:b.SaveFormat.JPEG})).uri}}q.returnScreen?e.dismissTo({pathname:`/(private)/${q.returnScreen}`,params:Object.assign({capturedImageUri:a,resetStep:void 0},n)}):B()}catch(e){ie(!1),w.default.alert("\u30a8\u30e9\u30fc",`\u5199\u771f\u306e\u64ae\u5f71\u306b\u5931\u6557\u3057\u307e\u3057\u305f\n${e instanceof Error?e.message:String(e)}`)}},children:(0,R.jsx)(I.default,{style:D.captureButtonInner})}),ne.length>1?(0,R.jsx)(k.default,{accessibilityRole:"button",accessibilityLabel:"\u30ec\u30f3\u30ba\u5207\u66ff",style:D.sideButton,onPress:xe,children:(0,R.jsx)(S.default,{style:[D.sideButtonText,!he&&D.sideButtonTextRotated],children:"\u30ec\u30f3\u30ba\u5207\u66ff"})}):(0,R.jsx)(I.default,{style:D.sideButton})]})]})})]})}const D=B.default.create({container:{flex:1,backgroundColor:"black"},cameraContent:{backgroundColor:"black"},headerRightButton:{width:35,height:35,marginRight:12},cameraStage:{flex:1,minHeight:0,width:"100%",justifyContent:"center",alignItems:"center"},cameraViewport:{backgroundColor:"black",overflow:"hidden"},camera:Object.assign({},B.default.absoluteFillObject),bottomButtonContainer:{minHeight:E,flexDirection:"row",justifyContent:"center",alignItems:"center",paddingHorizontal:12},captureButton:{width:70,height:70,borderRadius:35,backgroundColor:"rgba(255, 255, 255, 0.3)",justifyContent:"center",alignItems:"center"},captureButtonDisabled:{opacity:.5},captureButtonInner:{width:54,height:54,borderRadius:27,backgroundColor:"white"},sideButton:{flex:1,minWidth:0,minHeight:80,justifyContent:"center",alignItems:"center"},standardCameraButtonDisabled:{opacity:.5},sideButtonText:{color:"white",fontSize:14,fontWeight:"700",textAlign:"center"},sideButtonTextRotated:{transform:[{rotate:"90deg"}]},cameraCautionTrack:{position:"absolute",justifyContent:"center",alignItems:"center"},cameraCautionTrackPortrait:{top:0,right:0,bottom:0,width:"11%"},cameraCautionTrackLandscape:{top:8,left:0,right:0},cameraCautionText:{fontSize:14,fontWeight:"bold",color:"white",lineHeight:20,textAlign:"center"},guideOverlay:Object.assign({},B.default.absoluteFillObject,{justifyContent:"center",alignItems:"center",pointerEvents:"none"}),guideFrame:{width:"78%",borderWidth:2,borderColor:"white",borderRadius:20,backgroundColor:"transparent"}})},709,[764,765,767,849,800,834,772,762,786,16,836,850,785,12,243,337,338,266,343,121,365,143,130,250,391,6]);
4__d(function(g,r,i,a,m,_e,d){"use strict";
4function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"CameraView",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(_e,"useCameraPermissions",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"useMicrophonePermissions",{enumerable:!0,get:function(){return p}}),_e.scanFromURLAsync=b,Object.defineProperty(_e,"Camera",{enumerable:!0,get:function(){return h}});var n=r(d[0]),t=e(r(d[1])),s=e(r(d[2])),o=r(d[3]);Object.keys(o).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return o[e]}})});var c=r(d[4]);async function u(){return t.default.getCameraPermissionsAsync()}async function f(){return t.default.requestCameraPermissionsAsync()}Object.keys(c).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return c[e]}})});const y=(0,n.createPermissionHook)({getMethod:u,requestMethod:f});async function l(){return t.default.getMicrophonePermissionsAsync()}async function P(){return t.default.requestMicrophonePermissionsAsync()}const p=(0,n.createPermissionHook)({getMethod:l,requestMethod:P});async function b(e,n=['qr']){return t.default.scanFromURLAsync(e,n)}const h={getCameraPermissionsAsync:u,requestCameraPermissionsAsync:f,getMicrophonePermissionsAsync:l,requestMicrophonePermissionsAsync:P,scanFromURLAsync:b}},836,[408,837,840,838,848]);
5__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return v}});var e=r(d[0]),t=r(d[1]),s=r(d[2]);function n(e){if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)return navigator.mediaDevices.getUserMedia(e);const t=navigator.getUserMedia||navigator.webkitGetUserMedia||navigator.mozGetUserMedia||function(){const e=new Error('Permission unimplemented');throw e.code=0,e.name='NotAllowedError',e};return new Promise((s,n)=>{t.call(navigator,e,s,n)})}function o({message:e}){return'Permission dismissed'===e?{status:t.PermissionStatus.UNDETERMINED,expires:'never',canAskAgain:!0,granted:!1}:{status:t.PermissionStatus.DENIED,expires:'never',canAskAgain:!0,granted:!1}}async function c(){try{const e=await n({video:!0});return e.getTracks().forEach(t=>{t.stop(),e.removeTrack(t)}),{status:t.PermissionStatus.GRANTED,expires:'never',canAskAgain:!0,granted:!0}}catch(e){return o(e.message)}}async function u(s){if(!navigator?.permissions?.query)throw new e.UnavailabilityError('expo-camera','navigator.permissions API is not available');try{const{state:e}=await navigator.permissions.query({name:s});switch(e){case'prompt':return{status:t.PermissionStatus.UNDETERMINED,expires:'never',canAskAgain:!0,granted:!1};case'granted':return{status:t.PermissionStatus.GRANTED,expires:'never',canAskAgain:!0,granted:!0};case'denied':return{status:t.PermissionStatus.DENIED,expires:'never',canAskAgain:!0,granted:!1}}}catch(e){if(e instanceof TypeError)return{status:t.PermissionStatus.UNDETERMINED,expires:'never',canAskAgain:!0,granted:!1};throw e}}var v={get Type(){return{back:'back',front:'front'}},get FlashMode(){return{on:'on',off:'off',auto:'auto',torch:'torch'}},get AutoFocus(){return{on:'on',off:'off',auto:'auto',singleShot:'singleShot'}},get WhiteBalance(){return{auto:'auto',continuous:'continuous',manual:'manual'}},get VideoQuality(){return{}},get VideoStabilization(){return{}},isAvailableAsync:async()=>(0,s.canGetUserMedia)(),takePicture:async(e,t)=>await t.takePicture(e),async pausePreview(e){await e.pausePreview()},resumePreview:async e=>await e.resumePreview(),async getAvailableCameraTypesAsync(){if(!(0,s.canGetUserMedia)()||!navigator.mediaDevices.enumerateDevices)return[];const e=await navigator.mediaDevices.enumerateDevices();return(await Promise.all([await(0,s.isFrontCameraAvailableAsync)(e)&&'front',await(0,s.isBackCameraAvailableAsync)()&&'back'])).filter(Boolean)},getAvailablePictureSizes:async(e,t)=>await t.getAvailablePictureSizes(e),getPermissionsAsync:async()=>u('camera'),requestPermissionsAsync:async()=>c(),getCameraPermissionsAsync:async()=>u('camera'),requestCameraPermissionsAsync:async()=>c(),getMicrophonePermissionsAsync:async()=>u('microphone'),async requestMicrophonePermissionsAsync(){try{return await n({audio:!0}),{status:t.PermissionStatus.GRANTED,expires:'never',canAskAgain:!0,granted:!0}}catch(e){return o(e.message)}}}},837,[408,838,839]);
6__d(function(g,r,i,a,m,e,d){"use strict";
6Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PermissionStatus",{enumerable:!0,get:function(){return t.PermissionStatus}});var t=r(d[0])},838,[408]);
7__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"userMediaRequested",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"mountedInstances",{enumerable:!0,get:function(){return o}}),e.requestUserMediaAsync=async function(t,n=!0){if(v())return await c(n,t.audio,t.video);const[o,u]=await s(t);return await c(n,o,u)},e.getAnyUserMediaAsync=u,e.getUserMediaAsync=l,e.canGetUserMedia=v,e.isFrontCameraAvailableAsync=async function(t){return await f(['front','user','facetime'],'user',t)},e.isBackCameraAvailableAsync=async function(t){return await f(['back','rear'],'environment',t)};var t=r(d[0]);const n=!1,o=[];async function s(t){const n=t=>({optional:[{sourceId:t}]}),o=t=>{const{deviceId:n}=t;return'string'==typeof n?n:Array.isArray(n)?n[0]??null:'object'==typeof n&&n.ideal?n.ideal:null},s=await new Promise(t=>MediaStreamTrack.getSources(n=>t(n)));let c=null,u=null;
7s.forEach(t=>{'audio'===t.kind?c=t.id:'video'===t.kind&&(u=t.id)});const l=o(t.audioConstraints);l&&(c=l);const v=o(t.videoConstraints);return v&&(u=v),[n(c),n(u)]}async function c(t,n,o){const s={video:void 0===o||o};return t||(s.audio=void 0===n||n),await u(s)}async function u(t,n=!1){try{return await l(Object.assign({},t,{video:n||t.video}))}catch(o){if(!n&&'object'==typeof o&&'ConstraintNotSatisfiedError'===o?.name)return await u(t,!0);throw o}}async function l(t){if(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia)return navigator.mediaDevices.getUserMedia(t);const n=navigator.mozGetUserMedia||navigator.webkitGetUserMedia||navigator.msGetUserMedia;return new Promise((o,s)=>n.call(navigator,t,o,s))}function v(){return t.Platform.isDOMAvailable&&!!(navigator.mediaDevices&&navigator.mediaDevices.getUserMedia||navigator.mozGetUserMedia||navigator.webkitGetUserMedia||navigator.msGetUserMedia)}async function f(t,n,o){if(!o){if(!navigator.mediaDevices.enumerateDevices)return null;o=await navigator.mediaDevices.enumerateDevices()}const s=o.filter(t=>'videoinput'===t.kind),[c]=s.filter(n=>t.some(t=>n.label.toLowerCase().includes(t))),[u]=s.filter(t=>{if(!('getCapabilities'in t))return null;const o=t.getCapabilities();return o.facingMode?o.facingMode.find(t=>n):null});return u?.deviceId||c?.deviceId||null}},839,[408]);
8__d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return b}});var n=r(d[0]),t=r(d[1]),s=e(r(d[2])),o=e(r(d[3])),c=r(d[4]),l=r(d[5]);const u={};let v=!1,h=1;function f(e){if(!e||'object'!=typeof e)return{};if(void 0===e.quality&&(e.quality=1),e.mirror,e.onPictureSaved){const n=h++;u[n]=e.onPictureSaved,e.id=n,e.fastMode=!0}return e}function p(e={}){return e&&'object'==typeof e?(e.mirror,e):{}}function y({nativeEvent:e}){const{id:n,data:t}=e,s=u[n];s&&(s(t),delete u[n])}class b extends t.Component{static isModernBarcodeScannerAvailable=o.default.isModernBarcodeScannerAvailable;static async isAvailableAsync(){if(!o.default.isAvailableAsync)throw new n.UnavailabilityError('expo-camera','isAvailableAsync');return o.default.isAvailableAsync()}static async getAvailableVideoCodecsAsync(){if(!o.default.getAvailableVideoCodecsAsync)throw new n.UnavailabilityError('Camera','getAvailableVideoCodecsAsync');return o.default.getAvailableVideoCodecsAsync()}async getAvailablePictureSizesAsync(){return await(this._cameraRef.current?.getAvailablePictureSizes())??[]}async getAvailableLensesAsync(){return await(this._cameraRef.current?.getAvailableLenses())??[]}getSupportedFeatures(){return{isModernBarcodeScannerAvailable:o.default.isModernBarcodeScannerAvailable,toggleRecordingAsyncAvailable:o.default.toggleRecordingAsyncAvailable}}async resumePreview(){return this._cameraRef.current?.resumePreview()}async pausePreview(){return this._cameraRef.current?.pausePreview()}static ConversionTables=c.ConversionTables;static defaultProps={zoom:0,facing:'back',enableTorch:!1,mode:'picture',flash:'off'};_cameraRef=(0,t.createRef)();_lastEvents={};_lastEventsTimes={};async takePictureAsync(e){const n=f(e);return this._cameraRef.current?.takePicture(n)}static async launchScanner(e){e||(e={barcodeTypes:[]})}static async dismissScanner(){}static onModernBarcodeScanned(e){return o.default.addListener('onModernBarcodeScanned',e)}async recordAsync(e){const n=p(e);return this._cameraRef.current?.record(n)}async toggleRecordingAsync(){return this._cameraRef.current?.toggleRecording()}stopRecording(){this._cameraRef.current?.stopRecording()}_onCameraReady=()=>{this.props.onCameraReady&&this.props.onCameraReady()};_onAvailableLensesChanged=({nativeEvent:e})=>{this.props.onAvailableLensesChanged&&this.props.onAvailableLensesChanged(e)};_onMountError=({nativeEvent:e})=>{this.props.onMountError&&this.props.onMountError(e)};_onResponsiveOrientationChanged=({nativeEvent:e})=>{this.props.onResponsiveOrientationChanged&&this.props.onResponsiveOrientationChanged(e)};_onObjectDetected=e=>({nativeEvent:n})=>{const{type:t}=n;this._lastEvents[t]&&this._lastEventsTimes[t]&&JSON.stringify(n)===this._lastEvents[t]&&(new Date).getTime()-this._lastEventsTimes[t].getTime()<500||e&&(e(n),this._lastEventsTimes[t]=new Date,this._lastEvents[t]=JSON.stringify(n))};_setReference=e=>{e&&(this._cameraHandle=e)};render(){const e=(0,c.ensureNativeProps)(this.props),n=this.props.onBarcodeScanned?this._onObjectDetected(this.props.onBarcodeScanned):void 0;return e.children&&!v&&(v=!0),(0,l.jsx)(s.default,Object.assign({},e,{ref:this._cameraRef,onCameraReady:this._onCameraReady,onMountError:this._onMountError,onBarcodeScanned:n,onAvailableLensesChanged:this._onAvailableLensesChanged,onPictureSaved:y,onResponsiveOrientationChanged:this._onResponsiveOrientationChanged}))}}},840,[408,12,841,837,847,6]);
9__d(function(g,r,i,a,m,_e,d){"use strict";const e=["facing","poster","ref"];
9function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return b}});var t=n(r(d[0])),o=r(d[1]),c=r(d[2]),s=n(r(d[3])),u=n(r(d[4])),l=n(r(d[5])),y=n(r(d[6])),v=r(d[7]),p=r(d[8]),f=r(d[9]),S=r(d[10]),E=r(d[11]);var b=n=>{let{facing:l,poster:b,ref:_}=n,M=(0,t.default)(n,e);const h=(0,c.useRef)(null),A=(0,f.useWebCameraStream)(h,l,M,{onCameraReady(){M.onCameraReady&&M.onCameraReady()},onMountError:M.onMountError}),T=(0,c.useMemo)(()=>Boolean(M.barcodeScannerSettings?.barcodeTypes?.includes('qr')&&!!M.onBarcodeScanned),[M.barcodeScannerSettings?.barcodeTypes,M.onBarcodeScanned]);(0,S.useWebQRScanner)(h,{interval:300,isEnabled:T,captureOptions:{scale:1,isImageMirror:'front'===A.type},onScanned(e){M.onBarcodeScanned&&M.onBarcodeScanned(e)}}),(0,c.useImperativeHandle)(_,()=>({getAvailablePictureSizes:async()=>p.PictureSizes,async takePicture(e){if(!h.current||h.current?.readyState!==h.current?.HAVE_ENOUGH_DATA)throw new o.CodedError('ERR_CAMERA_NOT_READY','HTMLVideoElement does not have enough camera data to construct an image yet.');const n=A.mediaTrackSettings;if(!n)throw new o.CodedError('ERR_CAMERA_NOT_READY','MediaStream is not ready yet.');return(0,v.capture)(h.current,n,Object.assign({},e,{onPictureSaved(n){e.onPictureSaved&&e.onPictureSaved(n),M.onPictureSaved&&M.onPictureSaved({nativeEvent:{data:n,id:-1}})}}))},async resumePreview(){h.current&&h.current.play()},async pausePreview(){h.current&&h.current.pause()},async stopRecording(){},record:async()=>({uri:''}),async toggleRecording(){},async launchModernScanner(){},getAvailableLenses:async()=>[]}),[A.mediaTrackSettings,M.onPictureSaved]);const C=(0,c.useMemo)(()=>{const e=A.type===y.default.Type.front;return[s.default.absoluteFill,P.video,{pointerEvents:M.pointerEvents,transform:e?[{scaleX:-1}]:void 0}]},[M.pointerEvents,A.type]);return(0,E.jsxs)(u.default,{style:[P.videoWrapper,M.style],children:[(0,E.jsx)(R,{autoPlay:!0,playsInline:!0,muted:!0,poster:b,ref:h,style:C}),M.children]})};const R=e=>(0,l.default)('video',Object.assign({},e)),P=s.default.create({videoWrapper:{flex:1,alignItems:'stretch',pointerEvents:'box-none'},video:{width:'100%',height:'100%',objectFit:'cover'}})},841,[15,408,12,143,250,137,837,842,844,845,846,6]);
10__d(function(g,r,i,_a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.getImageSize=s,_e.toDataURL=u,_e.hasValidConstraints=d,_e.captureImageData=function(e,t={}){if(!e||e.readyState!==e.HAVE_ENOUGH_DATA)return null;const n=p(e,t),o=n.getContext('2d',{alpha:!1});if(!o||!n.width||!n.height)return null;return o.getImageData(0,0,n.width,n.height)},_e.captureImageContext=p,_e.captureImage=l,_e.getIdealConstraints=v,_e.getPreferredStreamDevice=async function(e,t,n){try{return await w(e,t,n)}catch(o){if(o instanceof OverconstrainedError&&'facingMode'===o.constraint){const o='back'===e?'front':'back';return await w(o,t,n)}throw o}},_e.getStreamDevice=w,_e.isWebKit=y,_e.compareStreams=function(e,t){if(!e||!t)return!1;const n=e.getTracks()[0].getSettings(),o=t.getTracks()[0].getSettings();return n.deviceId===o.deviceId},_e.capture=function(e,t,n){const o=l(e,n),a={uri:o,base64:o,width:0,height:0,format:n.imageType??'jpg'};if(t){const{width:e=0,height:n=0}=t;a.width=e,a.height=n,a.exif=t}n.onPictureSaved&&n.onPictureSaved(a);return a},_e.syncTrackCapabilities=async function(e,t,n={}){t?.getVideoTracks&&await Promise.all(t.getVideoTracks().map(t=>b(e,t,n)))},_e.stopMediaStream=function(e){if(!e)return;e.getAudioTracks&&e.getAudioTracks().forEach(e=>e.stop());e.getVideoTracks&&e.getVideoTracks().forEach(e=>e.stop());t=e,'function'==typeof t.stop&&e.stop();var t},_e.setVideoSource=function(e,t){const n=window.URL.createObjectURL??window.webkitURL.createObjectURL;void 0!==e.srcObject?e.srcObject=t:void 0!==e.mozSrcObject?e.mozSrcObject=t:t&&n&&(e.src=n(t));if(!t){const t=window.URL.revokeObjectURL??window.webkitURL.revokeObjectURL,n=e.src??e.srcObject??e.mozSrcObject;t&&'string'==typeof n&&t(n)}},_e.isCapabilityAvailable=function(e,t){const n=e.srcObject;if(n instanceof MediaStream){const e=n.getVideoTracks()[0];return!!e.getCapabilities?.()?.[t]}return!1};
10var e,t=r(_d[0]),n=(e=t)&&e.__esModule?e:{default:e},o=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),a=r(_d[2]),c=r(_d[3]);function s(e,t,n){const o=e*n;return{width:o,height:t/(e/o)}}function u(e,t,o){const c=['png','jpg'];(0,n.default)(c.includes(t),`expo-camera: ${t} is not a valid ImageType. Expected a string from: ${c.join(', ')}`);const s=a.ImageTypeFormat[t];return'jpg'===t?((0,n.default)(o<=1&&o>=0,`expo-camera: ${o} is not a valid image quality. Expected a number from 0...1`),e.toDataURL(s,o)):e.toDataURL(s)}function d(e,t,n){return void 0!==e&&void 0!==t&&void 0!==n}function f(e){const t={scale:1,imageType:'png',isImageMirror:!1};for(const n in e){const o=n;o in e&&void 0!==e[o]&&o in t&&(t[o]=e[o])}return t}const h=.92;function p(e,{scale:t=1,isImageMirror:n=!1}){const{videoWidth:o,videoHeight:a}=e,{width:c,height:u}=s(o,a,t),d=document.createElement('canvas');d.width=c,d.height=u;const f=d.getContext('2d',{alpha:!1});if(!f)throw new Error('Context is not defined');return n&&f.setTransform(-1,0,0,1,d.width,0),f.drawImage(e,0,0,c,u),d}function l(e,t){const n=f(t),o=p(e,n),{imageType:a,quality:c=h}=n;return u(o,a,c)}function v(e,t,n){const o={audio:!1,video:{}};if(d(e,t,n))return a.MinimumConstraints;const c=navigator.mediaDevices&&navigator.mediaDevices.getSupportedConstraints?navigator.mediaDevices.getSupportedConstraints():null;if(!(c&&c.facingMode&&c.width&&c.height))return a.MinimumConstraints;if(e&&['front','back'].includes(e)){const t=a.CameraTypeToFacingMode[e];if(y()){const e='user'===t?'exact':'ideal';o.video.facingMode={[e]:t}}else o.video.facingMode={ideal:a.CameraTypeToFacingMode[e]}}var s;return(s=o.video)&&'boolean'!=typeof s.video&&(o.video.width=t,o.video.height=n),o}async function w(e,t,n){const o=v(e,t,n);return await(0,c.requestUserMediaAsync)(o)}function y(){return/WebKit/.test(navigator.userAgent)&&!/Edg/.test(navigator.userAgent)}async function b(e,t,n={}){if('function'!=typeof t.getCapabilities)return;const a=t.getCapabilities(),c={},s=['exposureCompensation','colorTemperature','iso','brightness','contrast','saturation','sharpness','focusDistance','zoom'];for(const e of s)a[e]&&(c[e]=M(a[e],n[e]));function u(t,o,c){return S({constraintKey:t,settingsKey:o,convertedSetting:c(n[o]),capabilities:a,settings:n,cameraType:e})}a.focusMode&&void 0!==n.autoFocus&&(c.focusMode=u('focusMode','autoFocus',o.convertAutoFocusJSONToNative)),a.torch&&void 0!==n.flashMode&&(c.torch=u('torch','flashMode',o.convertFlashModeJSONToNative)),a.whiteBalanceMode&&void 0!==n.whiteBalance&&(c.whiteBalanceMode=u('whiteBalanceMode','whiteBalance',o.convertWhiteBalanceJSONToNative));try{await t.applyConstraints({advanced:[c]})}catch(e){}}function M(e,t){if(!t)return;const n=T(t,[e.min,e.max]);return Math.min(e.max,Math.max(e.min,n))}function T(e,t,n=[0,1]){return(e-n[0])*(t[1]-t[0])/(n[1]-n[0])+t[0]}function S(e){const{constraintKey:t,settingsKey:n,convertedSetting:o,capabilities:a,settings:c,cameraType:s}=e;c[n];if(!Array.isArray(a[t])||!o||a[t].includes(o))return o}},842,[442,843,844,839]);
11__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.convertFlashModeJSONToNative=function(t){if('torch'===t)return!0;return!1},e.convertWhiteBalanceJSONToNative=function(t){switch(t){case'on':case'auto':return'continuous';case'off':return'none';case'singleShot':return'single-shot';default:return}},e.convertAutoFocusJSONToNative=function(t){switch(t){case'on':case'auto':return'continuous';case'off':return'manual';case'singleShot':return'single-shot';default:return}}},843,[]);
12__d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"VIDEO_ASPECT_RATIOS",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"PictureSizes",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"ImageTypeFormat",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"MinimumConstraints",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"CameraTypeToFacingMode",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"FacingModeToCameraType",{enumerable:!0,get:function(){return b}});const n={'3840x2160':1.7777777777777777,'1920x1080':1.7777777777777777,'1280x720':1.7777777777777777,'640x480':1.3333333333333333,'352x288':1.2222222222222223},t=Object.keys(n),o={jpg:'image/jpeg',png:'image/png'},u={audio:!1,video:!0},c={front:'user',back:'environment'},b={user:'front',environment:'back'}},844,[]);
13__d(function(g,r,i,a,m,_e,_d){"use strict";
13function e(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var c=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,c.get?c:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t}Object.defineProperty(_e,'__esModule',{value:!0}),_e.useWebCameraStream=function(e,u,f,{onCameraReady:l,onMountError:d}){const p=t.useRef(!1),h=t.useRef([]),b=t.useRef({autoFocus:'continuous',flashMode:'off',whiteBalance:'continuous',zoom:1}),[y,M]=t.useState(null),C=t.useMemo(()=>y?y.getTracks()[0].getSettings():null,[y]),E=t.useMemo(()=>{if(!C)return null;const{facingMode:e="user"}=C;return c.FacingModeToCameraType[e]},[C]),S=t.useCallback(async()=>{try{return await n.getPreferredStreamDevice(u)}catch(e){return d&&d({nativeEvent:e}),null}},[u,d]),k=t.useCallback(async()=>{const e=await S();return n.compareStreams(e,y)||(h.current.some(t=>t.id===e?.id)||h.current.push(e),M(e),l&&l()),!1},[S,M,l,y,h.current]);return t.useEffect(()=>{p.current||(p.current=!0,k().then(e=>{p.current=e}).catch(()=>{p.current=!1}))},[u]),t.useEffect(()=>{const e={};for(const t of o)if(t in f){const n=f[t];n!==b.current[t]&&(e[t]=n)}const t=!!Object.keys(e).length,c=Object.assign({},b.current,e);t&&n.syncTrackCapabilities(u,y,e),b.current=c},[f.autoFocus,f.flashMode,f.exposureCompensation,f.colorTemperature,f.iso,f.brightness,f.contrast,f.saturation,f.sharpness,f.focusDistance,f.whiteBalance,f.zoom]),t.useEffect(()=>{e.current&&n.setVideoSource(e.current,y)},[e.current,y]),t.useEffect(()=>()=>{for(const e of h.current)n.stopMediaStream(e);e.current&&n.setVideoSource(e.current,y)},[]),s(e.current,()=>{n.syncTrackCapabilities(u,y,b.current)}),{type:E,mediaTrackSettings:C}};var t=e(r(_d[0])),n=e(r(_d[1])),c=r(_d[2]);const o=['autoFocus','flashMode','exposureCompensation','colorTemperature','iso','brightness','contrast','saturation','sharpness','focusDistance','whiteBalance','zoom'];function s(e,n){t.useEffect(()=>{e&&e.addEventListener('loadedmetadata',()=>{requestAnimationFrame(()=>{n()})})},[e])}},845,[12,842,844]);
14__d(function(g,r,i,a,m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useWebQRScanner=function(o,{isEnabled:s,captureOptions:c,interval:u,onScanned:f,onError:l}){const d=e.useRef(!1),p=e.useRef(void 0);async function h(){if(d.current&&f)try{const e=(0,t.captureImageData)(o.current,c);if(e){const t=await n(e);t?.data&&f({nativeEvent:t})}}catch(e){l&&l({nativeEvent:e})}finally{if(0===u)return void v();const e=!u||u<0?16:u;p.current=setTimeout(()=>{h()},e)}else v()}function v(){d.current=!1,clearTimeout(p.current)}e.useEffect(()=>(s&&(d.current=!0,h()),()=>{s&&v()}),[s])};var e=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),t=r(_d[1]);const n=((e,t)=>{if('undefined'==typeof window)return async()=>{throw new Error('Cannot use createWorkerAsyncFunction in a non-browser environment')};const n=[`self.func = ${e.toString()};`,'self.onmessage = (e) => {','  const result = self.func(e.data);','  self.postMessage(result);','};'];t.length>0&&n.unshift(`importScripts(${t.map(e=>`'${e}'`).join(', ')});`);const o=new Blob(n,{type:'text/javascript'}),s=new Worker(URL.createObjectURL(o)),c=[];return s.onmessage=e=>c.shift()?.resolve(e.data),e=>new Promise((t,n)=>{c.push({resolve:t,reject:n}),s.postMessage(e)})})(({data:e,width:t,height:n})=>{const o=self.jsQR(e,t,n,{inversionAttempts:'attemptBoth'});let s;try{s=JSON.parse(o)}catch{s=o}if(s?.data){const e={type:'qr',data:s.data,cornerPoints:[],bounds:{origin:{x:0,y:0},size:{width:0,height:0}}};return s.location&&(e.cornerPoints=[s.location.topLeftCorner,s.location.bottomLeftCorner,s.location.topRightCorner,s.location.bottomRightCorner]),e}return s},['https://cdn.jsdelivr.net/npm/[email protected]/dist/jsQR.min.js'])},846,[12,842]);
15__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"ConversionTables",{enumerable:!0,get:function(){return n}}),_e.convertNativeProps=u,_e.ensureNativeProps=function(e){const t=u(e);return t.barcodeScannerEnabled=!!e?.onBarcodeScanned,t.flashMode=e?.flash??'off',t.mute=e?.mute??!1,t.autoFocus=e?.autofocus??'off',t},r(d[0]);
15var e,t=r(d[1]),o=(e=t)&&e.__esModule?e:{default:e};const n={type:o.default.Type,flash:o.default.FlashMode};function u(e){if(!e||'object'!=typeof e)return{};const t={};for(const[o,u]of Object.entries(e)){const e=o;'string'==typeof u&&n[e]?t[o]=n[e][u]:t[o]=u}return t}},847,[408,837]);
16__d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]),u=((e=t)&&e.__esModule?e:{default:e}).default.Picture},848,[837]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.