@camstack/addon-pipeline-orchestrator 1.2.3 → 1.2.4

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.
@@ -405,7 +405,7 @@ __d(function(g,r,i,_a,m,_e,_d){'use strict';m.exports=function(e,n,o,t,a,f,s,d){
405
405
  __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 t}});var t={}},324,[]);
406
406
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.installOnUIRuntime=function(t){const o=globalThis?.expo?.installOnUIRuntime;if(!o)throw Error("Native method to install Expo Modules on the worklets UI runtime wasn't found in `expo-modules-core`.");o(t)}},325,[]);
407
407
  __d(function(g,r,i,a,m,e,d){"use strict";var t,n,o;Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"AppOwnership",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"ExecutionEnvironment",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"UserInterfaceIdiom",{enumerable:!0,get:function(){return o}}),(function(t){t.Expo="expo"})(t||(t={})),(function(t){t.Bare="bare",t.Standalone="standalone",t.StoreClient="storeClient"})(n||(n={})),(function(t){t.Handset="handset",t.Tablet="tablet",t.Desktop="desktop",t.TV="tv",t.Unsupported="unsupported"})(o||(o={}))},326,[]);
408
- __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 s}});var t=r(d[0]);const n=(Date.now()+'-'+Math.floor(1e9*Math.random())).toString();function o(){if('undefined'!=typeof navigator&&'string'==typeof navigator.userAgent){const t=navigator.userAgent.toLowerCase();if(t.includes('edge'))return'Edge';if(t.includes('edg'))return'Chromium Edge';if(t.includes('opr')&&'opr'in window&&window.opr)return'Opera';if(t.includes('chrome')&&'chrome'in window&&window.chrome)return'Chrome';if(t.includes('trident'))return'IE';if(t.includes('firefox'))return'Firefox';if(t.includes('safari'))return'Safari'}}var s={get appOwnership(){return null},get executionEnvironment(){return t.ExecutionEnvironment.Bare},get sessionId(){return n},get isHeadless(){return'undefined'==typeof navigator||/\bHeadlessChrome\//.test(navigator.userAgent)},get expoVersion(){return this.manifest.sdkVersion||null},get linkingUri(){return'undefined'!=typeof location?location.origin:''},get expoRuntimeVersion(){return this.expoVersion},get deviceName(){return o()},get systemFonts(){return[]},get statusBarHeight(){return 0},get deviceYearClass(){return null},get manifest(){return"{\"name\":\"CamStack\",\"slug\":\"camstack\",\"version\":\"1.0.174\",\"sdkVersion\":\"57.0.0\",\"platforms\":[\"ios\",\"android\",\"web\"],\"runtimeVersion\":\"1.0.171\",\"orientation\":\"default\",\"icon\":\"./assets/images/icon.png\",\"scheme\":\"camstack\",\"userInterfaceStyle\":\"automatic\",\"web\":{\"output\":\"single\",\"favicon\":\"./assets/images/favicon.png\",\"shortName\":\"CamStack\",\"backgroundColor\":\"#e67e22\",\"name\":\"CamStack\"},\"experiments\":{\"typedRoutes\":true,\"reactCompiler\":true,\"baseUrl\":\"/viewer/camstack\"},\"extra\":{\"router\":{\"root\":\"app\"},\"eas\":{\"projectId\":\"8fb06894-6375-41ff-959f-1a22a03dbd73\"}},\"updates\":{\"url\":\"https://u.expo.dev/8fb06894-6375-41ff-959f-1a22a03dbd73\"},\"owner\":\"zentik-notifier\"}"},get manifest2(){return null},get experienceUrl(){return'undefined'!=typeof location?location.origin:''},get debugMode(){return!1},getWebViewUserAgentAsync:async()=>'undefined'!=typeof navigator?navigator.userAgent:null}},327,[326]);
408
+ __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 s}});var t=r(d[0]);const n=(Date.now()+'-'+Math.floor(1e9*Math.random())).toString();function o(){if('undefined'!=typeof navigator&&'string'==typeof navigator.userAgent){const t=navigator.userAgent.toLowerCase();if(t.includes('edge'))return'Edge';if(t.includes('edg'))return'Chromium Edge';if(t.includes('opr')&&'opr'in window&&window.opr)return'Opera';if(t.includes('chrome')&&'chrome'in window&&window.chrome)return'Chrome';if(t.includes('trident'))return'IE';if(t.includes('firefox'))return'Firefox';if(t.includes('safari'))return'Safari'}}var s={get appOwnership(){return null},get executionEnvironment(){return t.ExecutionEnvironment.Bare},get sessionId(){return n},get isHeadless(){return'undefined'==typeof navigator||/\bHeadlessChrome\//.test(navigator.userAgent)},get expoVersion(){return this.manifest.sdkVersion||null},get linkingUri(){return'undefined'!=typeof location?location.origin:''},get expoRuntimeVersion(){return this.expoVersion},get deviceName(){return o()},get systemFonts(){return[]},get statusBarHeight(){return 0},get deviceYearClass(){return null},get manifest(){return"{\"name\":\"CamStack\",\"slug\":\"camstack\",\"version\":\"1.0.176\",\"sdkVersion\":\"57.0.0\",\"platforms\":[\"ios\",\"android\",\"web\"],\"runtimeVersion\":\"1.0.171\",\"orientation\":\"default\",\"icon\":\"./assets/images/icon.png\",\"scheme\":\"camstack\",\"userInterfaceStyle\":\"automatic\",\"web\":{\"output\":\"single\",\"favicon\":\"./assets/images/favicon.png\",\"shortName\":\"CamStack\",\"backgroundColor\":\"#e67e22\",\"name\":\"CamStack\"},\"experiments\":{\"typedRoutes\":true,\"reactCompiler\":true,\"baseUrl\":\"/viewer/camstack\"},\"extra\":{\"router\":{\"root\":\"app\"},\"eas\":{\"projectId\":\"8fb06894-6375-41ff-959f-1a22a03dbd73\"}},\"updates\":{\"url\":\"https://u.expo.dev/8fb06894-6375-41ff-959f-1a22a03dbd73\"},\"owner\":\"zentik-notifier\"}"},get manifest2(){return null},get experienceUrl(){return'undefined'!=typeof location?location.origin:''},get debugMode(){return!1},getWebViewUserAgentAsync:async()=>'undefined'!=typeof navigator?navigator.userAgent:null}},327,[326]);
409
409
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.SITEMAP_ROUTE_NAME=e.NOT_FOUND_ROUTE_NAME=e.INTERNAL_SLOT_NAME=void 0,e.INTERNAL_SLOT_NAME='__root',e.NOT_FOUND_ROUTE_NAME='+not-found',e.SITEMAP_ROUTE_NAME='_sitemap'},328,[]);
410
410
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.useCurrentRouteInfo=function(){const n=(0,u.useStateForPath)();return(0,t.useMemo)(()=>n?(0,o.getCachedRouteInfo)(n):void 0,[n])};const t=r(d[0]),o=r(d[1]),u=r(d[2])},329,[17,330,338]);
411
411
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.routeInfoSubscribe=e.routeInfoSubscribers=void 0,e.getCachedRouteInfo=function(s){let u=o.get(s);if(!u){u=(0,t.getRouteInfoFromState)(s);const f=JSON.stringify(u),c=n.get(f);c?u=c:n.set(f,u),o.set(s,u)}return u},e.setCachedRouteInfo=function(t,s){o.set(t,s),n.set(JSON.stringify(s),s)};const t=r(d[0]),o=new WeakMap,n=new Map;e.routeInfoSubscribers=new Set;e.routeInfoSubscribe=t=>(e.routeInfoSubscribers.add(t),()=>{e.routeInfoSubscribers.delete(t)})},330,[331]);
@@ -15580,7 +15580,7 @@ __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e
15580
15580
  __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}),_e.SegmentBlock=function(e){const l=(0,n.c)(12),{label:u,options:p,value:C,onChange:S}=e,{colors:_}=(0,s.useTheme)();let v,b,j,x;l[0]!==_.foreground?(v=[h.segmentLabel,{color:_.foreground}],l[0]=_.foreground,l[1]=v):v=l[1];l[2]!==u||l[3]!==v?(b=(0,f.jsx)(t.default,{style:v,children:u}),l[2]=u,l[3]=v,l[4]=b):b=l[4];l[5]!==S||l[6]!==p||l[7]!==C?(j=(0,f.jsx)(c.SegmentedControl,{options:p,value:C,onChange:S}),l[5]=S,l[6]=p,l[7]=C,l[8]=j):j=l[8];l[9]!==b||l[10]!==j?(x=(0,f.jsxs)(o.default,{style:h.segmentBlock,children:[b,j]}),l[9]=b,l[10]=j,l[11]=x):x=l[11];return x};var n=r(d[0]);r(d[1]);var o=e(r(d[2])),t=e(r(d[3])),l=e(r(d[4])),s=r(d[5]),u=r(d[6]),c=r(d[7]),f=r(d[8]);const h=l.default.create({segmentBlock:{paddingHorizontal:u.SPACING.xl,paddingVertical:u.SPACING.lg,gap:u.SPACING.md},segmentLabel:{fontSize:15,fontWeight:'500'}})},3175,[15,17,20,112,33,2587,2589,3176,10]);
15581
15581
  __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}),_e.SegmentedControl=function(e){const f=(0,o.c)(19),{options:b,value:p,onChange:y}=e,{colors:C}=(0,l.useTheme)();let S,h,v;f[0]!==C.background||f[1]!==C.border?(S={flexDirection:"row",backgroundColor:C.background,borderColor:C.border,borderWidth:1,borderRadius:s.RADIUS.lg,padding:s.SPACING.xs,gap:s.SPACING.xs},f[0]=C.background,f[1]=C.border,f[2]=S):S=f[2];if(f[3]!==C.foregroundMuted||f[4]!==C.primary||f[5]!==C.primaryForeground||f[6]!==y||f[7]!==b||f[8]!==p){let e;f[10]!==C.foregroundMuted||f[11]!==C.primary||f[12]!==C.primaryForeground||f[13]!==y||f[14]!==p?(e=e=>{const o=e.value===p;return(0,c.jsx)(n.default,{accessibilityRole:"button",accessibilityState:{selected:o},onPress:()=>y(e.value),style:{flex:1,alignItems:"center",paddingVertical:s.SPACING.md,borderRadius:s.RADIUS.md,backgroundColor:o?C.primary:"transparent"},children:(0,c.jsx)(t.default,{style:{color:o?C.primaryForeground:C.foregroundMuted,fontSize:14,fontWeight:o?"700":"500"},children:e.label})},e.value)},f[10]=C.foregroundMuted,f[11]=C.primary,f[12]=C.primaryForeground,f[13]=y,f[14]=p,f[15]=e):e=f[15],h=b.map(e),f[3]=C.foregroundMuted,f[4]=C.primary,f[5]=C.primaryForeground,f[6]=y,f[7]=b,f[8]=p,f[9]=h}else h=f[9];f[16]!==S||f[17]!==h?(v=(0,c.jsx)(u.default,{style:S,children:h}),f[16]=S,f[17]=h,f[18]=v):v=f[18];return v};var o=r(d[0]);r(d[1]);var n=e(r(d[2])),t=e(r(d[3])),u=e(r(d[4])),l=r(d[5]),s=r(d[6]),c=r(d[7])},3176,[15,17,252,112,20,2587,2589,10]);
15582
15582
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useSettings=function(){const D=(0,t.c)(14),H=(0,s.useSettingsStore)(A),_=(0,s.useSettingsStore)(y),E=(0,s.useSettingsStore)(v),C=(0,s.useSettingsStore)(p),G=(0,s.useSettingsStore)(h),b=(0,s.useSettingsStore)(l),j=(0,s.useSettingsStore)(f),M=(0,s.useSettingsStore)(c),O=(0,s.useSettingsStore)(S),P=(0,s.useSettingsStore)(o),k=(0,s.useSettingsStore)(u);let q,w,x;D[0]!==E?(q=()=>{E()},w=[E],D[0]=E,D[1]=q,D[2]=w):(q=D[1],w=D[2]);(0,n.useEffect)(q,w),D[3]!==_||D[4]!==k||D[5]!==b||D[6]!==M||D[7]!==O||D[8]!==C||D[9]!==P||D[10]!==j||D[11]!==G||D[12]!==H?(x={settings:H,hydrated:_,setGridDefault:C,setStreamDefault:G,setAdvanced:b,setHighlightAppearance:j,setCluster:M,setEvents:O,setHaptics:P,resetSettings:k},D[3]=_,D[4]=k,D[5]=b,D[6]=M,D[7]=O,D[8]=C,D[9]=P,D[10]=j,D[11]=G,D[12]=H,D[13]=x):x=D[13];return x};var t=r(d[0]),n=r(d[1]),s=r(d[2]);function u(t){return t.resetSettings}function o(t){return t.setHaptics}function S(t){return t.setEvents}function c(t){return t.setCluster}function f(t){return t.setHighlightAppearance}function l(t){return t.setAdvanced}function h(t){return t.setStreamDefault}function p(t){return t.setGridDefault}function v(t){return t.hydrate}function y(t){return t.hydrated}function A(t){return t.settings}},3177,[15,17,3140]);
15583
- __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}),_e.reelRowHeight=R,Object.defineProperty(_e,"TrackReel",{enumerable:!0,get:function(){return P}});var t=r(d[0]),n=r(d[1]),o=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),i=r(d[5]),c=r(d[6]),u=r(d[7]),h=r(d[8]),f=r(d[9]),k=r(d[10]),x=r(d[11]),S=r(d[12]),y=r(d[13]),j=r(d[14]),v=r(d[15]);const w={perCameraLimit:40,maxAgeMs:864e5},I=14;function R(e){return e+6+I+2*h.SPACING.sm}const P=(0,n.memo)(function(e){const s=(0,t.c)(53),{deviceId:I,cardWidth:P,onSeek:p}=e,N=void 0===P?80:P,{colors:b}=(0,u.useTheme)(),{t:T}=(0,c.useTranslation)(),[D,G]=(0,n.useState)(null);let M;s[0]!==I?(M=void 0!==I?[I]:void 0,s[0]=I,s[1]=M):M=s[1];const F=(0,j.useEventKindResolver)(M);let H,z,E;s[2]!==I?(H=void 0!==I?[I]:[],s[2]=I,s[3]=H):H=s[3],s[4]===Symbol.for("react.memo_cache_sentinel")?(z=[],s[4]=z):z=s[4],s[5]!==H?(E={cameraIds:H,classes:z,label:""},s[5]=H,s[6]=E):E=s[6];const L=E,[V,B]=(0,n.useState)(C);let O;s[7]===Symbol.for("react.memo_cache_sentinel")?(O=()=>B(Date.now()),s[7]=O):O=s[7];const U=O;(0,y.useReelAutoRefresh)(I,U);const{tracks:K,loading:W,fetchNextPage:q,hasNextPage:J,isFetchingNextPage:Q}=(0,S.useTracksFeed)(L,V,w);let X;s[8]!==q||s[9]!==J||s[10]!==Q?(X=()=>{J&&!Q&&q()},s[8]=q,s[9]=J,s[10]=Q,s[11]=X):X=s[11];const Y=X;let Z;s[12]!==N||s[13]!==F?(Z=e=>{const{item:t}=e;return(0,v.jsx)(o.default,{style:{width:N,marginRight:h.SPACING.sm},children:(0,v.jsx)(k.TrackCard,{track:t,variant:"reel",width:N,resolver:F,onPress:G})})},s[12]=N,s[13]=F,s[14]=Z):Z=s[14];const $=Z;let ee;s[15]!==p||s[16]!==D?(ee=e=>{D&&p&&p(D,e),G(null)},s[15]=p,s[16]=D,s[17]=ee):ee=s[17];const te=ee;if(W&&0===K.length){let e,t,n,l;return s[18]!==N?(e=R(N),s[18]=N,s[19]=e):e=s[19],s[20]!==e?(t=[A.skeletonRow,{height:e}],s[20]=e,s[21]=t):t=s[21],s[22]!==N?(n=Array.from({length:6},(e,t)=>(0,v.jsxs)(o.default,{style:{width:N},children:[(0,v.jsx)(o.default,{style:A.skeletonHero,children:(0,v.jsx)(f.SkeletonBox,{})}),(0,v.jsx)(o.default,{style:A.skeletonFooter,children:(0,v.jsx)(o.default,{style:A.skeletonTimeLine,children:(0,v.jsx)(f.SkeletonBox,{})})})]},t)),s[22]=N,s[23]=n):n=s[23],s[24]!==t||s[25]!==n?(l=(0,v.jsx)(o.default,{style:t,children:n}),s[24]=t,s[25]=n,s[26]=l):l=s[26],l}if(0===K.length){let e,t,n,i,c,u;return s[27]!==N?(e=R(N),s[27]=N,s[28]=e):e=s[28],s[29]!==e?(t=[A.state,{height:e}],s[29]=e,s[30]=t):t=s[30],s[31]!==b.foregroundMuted?(n={color:b.foregroundMuted},s[31]=b.foregroundMuted,s[32]=n):n=s[32],s[33]!==T?(i=T("v2.tracks.empty","No tracks"),s[33]=T,s[34]=i):i=s[34],s[35]!==n||s[36]!==i?(c=(0,v.jsx)(l.default,{style:n,children:i}),s[35]=n,s[36]=i,s[37]=c):c=s[37],s[38]!==t||s[39]!==c?(u=(0,v.jsx)(o.default,{style:t,children:c}),s[38]=t,s[39]=c,s[40]=u):u=s[40],u}const ne=3*N;let oe;s[41]!==Y||s[42]!==$||s[43]!==ne||s[44]!==K?(oe=(0,v.jsx)(i.FlashList,{horizontal:!0,data:K,keyExtractor:_,renderItem:$,showsHorizontalScrollIndicator:!1,contentContainerStyle:A.list,onEndReached:Y,onEndReachedThreshold:.5,drawDistance:ne}),s[41]=Y,s[42]=$,s[43]=ne,s[44]=K,s[45]=oe):oe=s[45];const re=p?te:void 0;let le,se,ae;return s[46]===Symbol.for("react.memo_cache_sentinel")?(le=()=>G(null),s[46]=le):le=s[46],s[47]!==D||s[48]!==re?(se=(0,v.jsx)(x.TrackDetailModal,{track:D,onSeek:re,onClose:le}),s[47]=D,s[48]=re,s[49]=se):se=s[49],s[50]!==oe||s[51]!==se?(ae=(0,v.jsxs)(v.Fragment,{children:[oe,se]}),s[50]=oe,s[51]=se,s[52]=ae):ae=s[52],ae}),A=s.default.create({state:{alignItems:'center',justifyContent:'center'},list:{paddingHorizontal:h.SPACING.md,paddingVertical:h.SPACING.sm},skeletonRow:{flexDirection:'row',paddingHorizontal:h.SPACING.md,paddingVertical:h.SPACING.sm,gap:h.SPACING.sm,overflow:'hidden'},skeletonHero:{width:'100%',aspectRatio:1,borderRadius:h.RADIUS.md,overflow:'hidden'},skeletonFooter:{paddingVertical:3,alignItems:'center'},skeletonTimeLine:{width:'55%',height:10,marginVertical:2,borderRadius:h.RADIUS.sm,overflow:'hidden'}});function C(){return Date.now()}function _(e){return e.trackId}},3178,[15,17,20,112,33,3179,786,2587,2589,3151,3230,3237,3383,3384,3167,10]);
15583
+ __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}),_e.reelRowHeight=R,Object.defineProperty(_e,"TrackReel",{enumerable:!0,get:function(){return P}});var t=r(d[0]),n=r(d[1]),o=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),i=r(d[5]),c=r(d[6]),u=r(d[7]),h=r(d[8]),f=r(d[9]),k=r(d[10]),x=r(d[11]),S=r(d[12]),y=r(d[13]),j=r(d[14]),v=r(d[15]);const w={perCameraLimit:40,maxAgeMs:864e5},I=14;function R(e){return e+6+I+2*h.SPACING.sm}const P=(0,n.memo)(function(e){const s=(0,t.c)(53),{deviceId:I,cardWidth:P,onSeek:p}=e,N=void 0===P?80:P,{colors:b}=(0,u.useTheme)(),{t:T}=(0,c.useTranslation)(),[D,G]=(0,n.useState)(null);let M;s[0]!==I?(M=void 0!==I?[I]:void 0,s[0]=I,s[1]=M):M=s[1];const F=(0,j.useEventKindResolver)(M);let H,z,E;s[2]!==I?(H=void 0!==I?[I]:[],s[2]=I,s[3]=H):H=s[3],s[4]===Symbol.for("react.memo_cache_sentinel")?(z=[],s[4]=z):z=s[4],s[5]!==H?(E={cameraIds:H,classes:z,label:""},s[5]=H,s[6]=E):E=s[6];const L=E,[V,B]=(0,n.useState)(C);let O;s[7]===Symbol.for("react.memo_cache_sentinel")?(O=()=>B(Date.now()),s[7]=O):O=s[7];const U=O;(0,y.useReelAutoRefresh)(I,U);const{tracks:K,loading:W,fetchNextPage:q,hasNextPage:J,isFetchingNextPage:Q}=(0,S.useTracksFeed)(L,V,w);let X;s[8]!==q||s[9]!==J||s[10]!==Q?(X=()=>{J&&!Q&&q()},s[8]=q,s[9]=J,s[10]=Q,s[11]=X):X=s[11];const Y=X;let Z;s[12]!==N||s[13]!==F?(Z=e=>{const{item:t}=e;return(0,v.jsx)(o.default,{style:{width:N,marginRight:h.SPACING.sm},children:(0,v.jsx)(k.TrackCard,{track:t,variant:"reel",width:N,resolver:F,onPress:G})})},s[12]=N,s[13]=F,s[14]=Z):Z=s[14];const $=Z;let ee;s[15]!==p||s[16]!==D?(ee=e=>{D&&p&&p(D,e),G(null)},s[15]=p,s[16]=D,s[17]=ee):ee=s[17];const te=ee;if(W&&0===K.length){let e,t,n,l;return s[18]!==N?(e=R(N),s[18]=N,s[19]=e):e=s[19],s[20]!==e?(t=[A.skeletonRow,{height:e}],s[20]=e,s[21]=t):t=s[21],s[22]!==N?(n=Array.from({length:6},(e,t)=>(0,v.jsxs)(o.default,{style:{width:N},children:[(0,v.jsx)(o.default,{style:A.skeletonHero,children:(0,v.jsx)(f.SkeletonBox,{})}),(0,v.jsx)(o.default,{style:A.skeletonFooter,children:(0,v.jsx)(o.default,{style:A.skeletonTimeLine,children:(0,v.jsx)(f.SkeletonBox,{})})})]},t)),s[22]=N,s[23]=n):n=s[23],s[24]!==t||s[25]!==n?(l=(0,v.jsx)(o.default,{style:t,children:n}),s[24]=t,s[25]=n,s[26]=l):l=s[26],l}if(0===K.length){let e,t,n,i,c,u;return s[27]!==N?(e=R(N),s[27]=N,s[28]=e):e=s[28],s[29]!==e?(t=[A.state,{height:e}],s[29]=e,s[30]=t):t=s[30],s[31]!==b.foregroundMuted?(n={color:b.foregroundMuted},s[31]=b.foregroundMuted,s[32]=n):n=s[32],s[33]!==T?(i=T("v2.tracks.empty","No tracks"),s[33]=T,s[34]=i):i=s[34],s[35]!==n||s[36]!==i?(c=(0,v.jsx)(l.default,{style:n,children:i}),s[35]=n,s[36]=i,s[37]=c):c=s[37],s[38]!==t||s[39]!==c?(u=(0,v.jsx)(o.default,{style:t,children:c}),s[38]=t,s[39]=c,s[40]=u):u=s[40],u}const ne=3*N;let oe;s[41]!==Y||s[42]!==$||s[43]!==ne||s[44]!==K?(oe=(0,v.jsx)(i.FlashList,{horizontal:!0,data:K,keyExtractor:_,renderItem:$,showsHorizontalScrollIndicator:!1,contentContainerStyle:A.list,onEndReached:Y,onEndReachedThreshold:.5,drawDistance:ne}),s[41]=Y,s[42]=$,s[43]=ne,s[44]=K,s[45]=oe):oe=s[45];const re=p?te:void 0;let le,se,ae;return s[46]===Symbol.for("react.memo_cache_sentinel")?(le=()=>G(null),s[46]=le):le=s[46],s[47]!==D||s[48]!==re?(se=(0,v.jsx)(x.TrackDetailModal,{track:D,onSeek:re,onClose:le}),s[47]=D,s[48]=re,s[49]=se):se=s[49],s[50]!==oe||s[51]!==se?(ae=(0,v.jsxs)(v.Fragment,{children:[oe,se]}),s[50]=oe,s[51]=se,s[52]=ae):ae=s[52],ae}),A=s.default.create({state:{alignItems:'center',justifyContent:'center'},list:{paddingHorizontal:h.SPACING.md,paddingVertical:h.SPACING.sm},skeletonRow:{flexDirection:'row',paddingHorizontal:h.SPACING.md,paddingVertical:h.SPACING.sm,gap:h.SPACING.sm,overflow:'hidden'},skeletonHero:{width:'100%',aspectRatio:1,borderRadius:h.RADIUS.md,overflow:'hidden'},skeletonFooter:{paddingVertical:3,alignItems:'center'},skeletonTimeLine:{width:'55%',height:10,marginVertical:2,borderRadius:h.RADIUS.sm,overflow:'hidden'}});function C(){return Date.now()}function _(e){return e.trackId}},3178,[15,17,20,112,33,3179,786,2587,2589,3151,3230,3238,3383,3384,3167,10]);
15584
15584
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"FlashList",{enumerable:!0,get:function(){return u.FlashList}}),Object.defineProperty(_e,"RenderTargetOptions",{enumerable:!0,get:function(){return o.RenderTargetOptions}}),Object.defineProperty(_e,"AnimatedFlashList",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(_e,"useBenchmark",{enumerable:!0,get:function(){return s.useBenchmark}}),Object.defineProperty(_e,"useDataMultiplier",{enumerable:!0,get:function(){return f.useDataMultiplier}}),Object.defineProperty(_e,"useFlatListBenchmark",{enumerable:!0,get:function(){return b.useFlatListBenchmark}}),Object.defineProperty(_e,"useLayoutState",{enumerable:!0,get:function(){return p.useLayoutState}}),Object.defineProperty(_e,"useRecyclingState",{enumerable:!0,get:function(){return y.useRecyclingState}}),Object.defineProperty(_e,"useMappingHelper",{enumerable:!0,get:function(){return O.useMappingHelper}}),Object.defineProperty(_e,"JSFPSMonitor",{enumerable:!0,get:function(){return P.JSFPSMonitor}}),Object.defineProperty(_e,"autoScroll",{enumerable:!0,get:function(){return j.autoScroll}}),Object.defineProperty(_e,"Cancellable",{enumerable:!0,get:function(){return j.Cancellable}}),Object.defineProperty(_e,"useFlashListContext",{enumerable:!0,get:function(){return h.useFlashListContext}}),Object.defineProperty(_e,"LayoutCommitObserver",{enumerable:!0,get:function(){return L.LayoutCommitObserver}});var e,t=r(d[0]),n=r(d[1]),u=r(d[2]),o=r(d[3]),c=r(d[4]),l=(e=c)&&e.__esModule?e:{default:e},s=r(d[5]),f=r(d[6]),b=r(d[7]),p=r(d[8]),y=r(d[9]),O=r(d[10]),P=r(d[11]),j=r(d[12]),h=r(d[13]),L=r(d[14]);if(!(0,t.isNewArch)())throw new Error(n.ErrorMessages.flashListV2OnlySupportsNewArchitecture)},3179,[3180,3181,3182,3219,3220,3221,3225,3226,3187,3227,3228,3223,3222,3186,3229]);
15585
15585
  __d(function(g,r,i,a,m,e,d){"use strict";let o;Object.defineProperty(e,'__esModule',{value:!0}),e.isNewArch=function(){if(void 0!==o)return o;try{const n=Boolean(null==g?void 0:g.nativeFabricUIManager),t=Boolean(null==g?void 0:g.__turboModuleProxy);o=n||t||!0}catch(n){o=!0}return o},r(d[0])},3180,[136]);
15586
15586
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ErrorMessages",{enumerable:!0,get:function(){return n}});const n={multipleViewabilityThresholdTypesNotSupported:"You can set exactly one of itemVisiblePercentThreshold or viewAreaCoveragePercentThreshold. Specifying both is not supported.",flashListV2OnlySupportsNewArchitecture:"FlashList v2 is only supported on new architecture",layoutManagerNotInitializedLayoutInfo:"LayoutManager is not initialized, layout info is unavailable",layoutManagerNotInitializedChildContainer:"LayoutManager is not initialized, child container layout is unavailable",layoutManagerNotInitializedWindowSize:"LayoutManager is not initialized, window size is unavailable",horizontalPropCannotBeToggled:"Horizontal prop cannot be toggled, you can use a key on FlashList to recreate it.",layoutManagerNotInitializedVisibleIndices:"LayoutManager is not initialized, visible indices are not unavailable",masonryAndHorizontalIncompatible:"Masonry and horizontal props are incompatible",numColumnsAndHorizontalIncompatible:"numColumns and horizontal props are incompatible",indexOutOfBounds:"index out of bounds, not enough layouts",fpsMonitorAlreadyRunning:"This FPS Monitor has already been run, please create a new instance",dataEmptyCannotRunBenchmark:"Data is empty, cannot run benchmark",stickyHeadersNotSupportedForHorizontal:"Sticky headers are not supported when list is horizontal"}},3181,[]);
@@ -15632,58 +15632,57 @@ __d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{
15632
15632
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useRecyclingState=function(u,c,o){const s=(0,t.useRef)(),[f,l]=(0,n.useLayoutState)(0);(0,t.useMemo)(()=>{const t="function"==typeof u?u():u;s.current=t,null==o||o()},c);const y=(0,t.useCallback)((t,n)=>{const u="function"==typeof t?t(s.current):t;u!==s.current&&(s.current=u,l(t=>t+1,n))},[l]);return[s.current,y]};var t=r(d[0]),n=r(d[1])},3227,[17,3187]);
15633
15633
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"useMappingHelper",{enumerable:!0,get:function(){return u}});var t=r(d[0]),n=r(d[1]);const u=()=>{const u=(0,n.useRecyclerViewContext)();return{getMappingKey:(0,t.useCallback)((t,n)=>u?n:t,[u])}}},3228,[17,3186]);
15634
15634
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"LayoutCommitObserver",{enumerable:!0,get:function(){return o}});var e,t=r(d[0]),l=(e=t)&&e.__esModule?e:{default:e},n=r(d[1]),u=r(d[2]);const o=l.default.memo(e=>{const{children:o,onCommitLayoutEffect:c}=e,s=(0,n.useRecyclerViewContext)(),[f,v]=(0,u.useLayoutState)(0),y=(0,t.useRef)(new Set).current;(0,t.useLayoutEffect)(()=>{y.size>0||null==c||c()});const P=(0,t.useMemo)(()=>({layout:()=>{v(e=>e+1)},getRef:()=>{var e;return null!==(e=null==s?void 0:s.getRef())&&void 0!==e?e:null},getParentRef:()=>{var e;return null!==(e=null==s?void 0:s.getParentRef())&&void 0!==e?e:null},getParentScrollViewRef:()=>{var e;return null!==(e=null==s?void 0:s.getParentScrollViewRef())&&void 0!==e?e:null},getScrollViewRef:()=>{var e;return null!==(e=null==s?void 0:s.getScrollViewRef())&&void 0!==e?e:null},markChildLayoutAsPending:e=>{null==s||s.markChildLayoutAsPending(e),y.add(e)},unmarkChildLayoutAsPending:e=>{null==s||s.unmarkChildLayoutAsPending(e),y.has(e)&&(y.delete(e),P.layout())}}),[s,y,v]);return l.default.createElement(n.RecyclerViewContextProvider,{value:P},o)});o.displayName="LayoutCommitObserver"},3229,[17,3186,3187]);
15635
- __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,"TrackCard",{enumerable:!0,get:function(){return S}});var t=r(d[0]),o=r(d[1]),a=e(r(d[2])),n=e(r(d[3])),l=e(r(d[4])),s=e(r(d[5])),c=r(d[6]),u=r(d[7]),f=r(d[8]),p=r(d[9]),b=r(d[10]),h=r(d[11]),y=r(d[12]),x=r(d[13]);function v(e){return new Date(e).toLocaleTimeString(void 0,{hour:'2-digit',minute:'2-digit'})}const S=(0,o.memo)(function(e){const o=(0,t.c)(58),{track:s,variant:p,width:S,selected:j,resolver:C,onPress:I}=e,L=void 0===p?"tile":p,w=void 0!==j&&j,{colors:z}=(0,u.useTheme)(),{settings:O}=(0,f.useSettings)(),A="reel"===L,D=A?O.events.reelShowLabels:O.events.tileShowLabels,E=A?O.events.reelShowImportance:O.events.tileShowImportance,F=!A&&O.events.tileShowCameraName,T=!A&&"icon"===O.events.tileLabelStyle,k=A&&"icon"===O.events.reelLabelStyle,P=(0,b.colorForEventType)(s.className),R=E&&"number"==typeof s.importance;let W;o[0]!==C||o[1]!==s.className?(W=C?C.resolveLabel(s.className):s.className,o[0]=C,o[1]=s.className,o[2]=W):W=o[2];const G=W,H=s.label??G;let _;o[3]!==z.primary||o[4]!==w?(_=w?{borderColor:z.primary,borderWidth:2}:{borderColor:"transparent",borderWidth:2},o[3]=z.primary,o[4]=w,o[5]=_):_=o[5];const M=_;let V;o[6]!==I||o[7]!==s?(V=()=>I(s),o[6]=I,o[7]=s,o[8]=V):V=o[8];const $=s.cameraName;let K;o[9]!==s.lastSeen?(K=v(s.lastSeen),o[9]=s.lastSeen,o[10]=K):K=o[10];const U=`${$} \xb7 ${H} \xb7 ${K}`;let B,q,J,Q,X,Y,Z,ee,te;return o[11]!==z.surface?(B={backgroundColor:z.surface},o[11]=z.surface,o[12]=B):B=o[12],o[13]!==L||o[14]!==S?(q="reel"===L&&S?{width:S}:N.tileFlex,o[13]=L,o[14]=S,o[15]=q):q=o[15],o[16]!==M||o[17]!==q||o[18]!==B?(J=[N.card,M,B,q],o[16]=M,o[17]=q,o[18]=B,o[19]=J):J=o[19],o[20]!==s.bestEventId||o[21]!==s.className?(Q=(0,x.jsx)(y.TrackCropImage,{eventId:s.bestEventId,className:s.className}),o[20]=s.bestEventId,o[21]=s.className,o[22]=Q):Q=o[22],o[23]!==P||o[24]!==G||o[25]!==H||o[26]!==T||o[27]!==k||o[28]!==C||o[29]!==D||o[30]!==s.audioLabels||o[31]!==s.className||o[32]!==s.label||o[33]!==L?(X=D?(0,x.jsx)(a.default,{style:N.captionWrap,pointerEvents:"none",children:"reel"===L?k?(()=>{const e=C?C.resolveIcon(s.className):(0,h.resolveEventKindIcon)(s.className.toLowerCase());return(0,x.jsx)(a.default,{style:[N.caption,N.iconCaption,{backgroundColor:P+"E6"}],children:(0,x.jsx)(e,{size:13,color:"#fff"})})})():(0,x.jsx)(a.default,{style:[N.caption,{backgroundColor:P+"E6"}],children:(0,x.jsx)(n.default,{numberOfLines:1,style:N.captionText,children:H})}):(0,x.jsxs)(a.default,{style:N.labelChips,children:[T?(()=>{const e=C?C.resolveIcon(s.className):(0,h.resolveEventKindIcon)(s.className.toLowerCase());return(0,x.jsx)(a.default,{style:[N.caption,N.iconCaption,{backgroundColor:P+"E6"}],children:(0,x.jsx)(e,{size:13,color:"#fff"})})})():(0,x.jsx)(a.default,{style:[N.caption,{backgroundColor:P+"E6"}],children:(0,x.jsx)(n.default,{numberOfLines:1,style:N.captionText,children:G})}),void 0!==s.label&&s.label!==s.className?(0,x.jsx)(a.default,{style:[N.caption,{backgroundColor:"#000000B3"}],children:(0,x.jsx)(n.default,{numberOfLines:1,style:N.captionText,children:s.label})}):null,s.audioLabels.filter(e=>e!==s.className&&e!==s.label).map(e=>{if(T){const t=C?C.resolveAudioIcon(e):(0,h.resolveEventKindIcon)((0,h.audioKindId)(e));return(0,x.jsx)(a.default,{style:[N.caption,N.iconCaption,{backgroundColor:b.AUDIO_COLOR+"E6"}],children:(0,x.jsx)(t,{size:13,color:"#fff"})},`audio-${e}`)}const t=C?C.resolveAudioLabel(e):e;return(0,x.jsx)(a.default,{style:[N.caption,{backgroundColor:b.AUDIO_COLOR+"E6"}],children:(0,x.jsx)(n.default,{numberOfLines:1,style:N.captionText,children:t})},`audio-${e}`)})]})}):null,o[23]=P,o[24]=G,o[25]=H,o[26]=T,o[27]=k,o[28]=C,o[29]=D,o[30]=s.audioLabels,o[31]=s.className,o[32]=s.label,o[33]=L,o[34]=X):X=o[34],o[35]!==z.primary||o[36]!==z.primaryForeground||o[37]!==R||o[38]!==s.importance?(Y=R?(0,x.jsxs)(a.default,{style:[N.importance,{backgroundColor:z.primary}],children:[(0,x.jsx)(c.Star,{size:9,color:z.primaryForeground,fill:z.primaryForeground}),(0,x.jsx)(n.default,{style:[N.importanceText,{color:z.primaryForeground}],children:Math.round(100*(s.importance??0))})]}):null,o[35]=z.primary,o[36]=z.primaryForeground,o[37]=R,o[38]=s.importance,o[39]=Y):Y=o[39],o[40]!==Q||o[41]!==X||o[42]!==Y?(Z=(0,x.jsxs)(a.default,{style:N.hero,children:[Q,X,Y]}),o[40]=Q,o[41]=X,o[42]=Y,o[43]=Z):Z=o[43],o[44]!==z.foreground||o[45]!==z.foregroundMuted||o[46]!==F||o[47]!==s.cameraName||o[48]!==s.lastSeen||o[49]!==s.producingDeviceName||o[50]!==L?(ee="reel"===L?(0,x.jsxs)(a.default,{style:N.bodyReel,children:[void 0!==s.producingDeviceName?(0,x.jsx)(n.default,{numberOfLines:1,style:[N.producing,{color:z.foreground}],children:s.producingDeviceName}):null,(0,x.jsx)(n.default,{style:[N.time,{color:z.foregroundMuted}],children:v(s.lastSeen)})]}):(0,x.jsxs)(a.default,{style:N.body,children:[void 0!==s.producingDeviceName?(0,x.jsx)(n.default,{numberOfLines:2,adjustsFontSizeToFit:!0,minimumFontScale:.8,style:[N.camera,{color:z.foreground}],children:s.producingDeviceName}):F?(0,x.jsx)(n.default,{numberOfLines:2,adjustsFontSizeToFit:!0,minimumFontScale:.8,style:[N.camera,{color:z.foreground}],children:s.cameraName}):null,(0,x.jsx)(n.default,{style:[N.time,{color:z.foregroundMuted}],children:v(s.lastSeen)})]}),o[44]=z.foreground,o[45]=z.foregroundMuted,o[46]=F,o[47]=s.cameraName,o[48]=s.lastSeen,o[49]=s.producingDeviceName,o[50]=L,o[51]=ee):ee=o[51],o[52]!==J||o[53]!==Z||o[54]!==ee||o[55]!==V||o[56]!==U?(te=(0,x.jsxs)(l.default,{onPress:V,accessibilityRole:"button",accessibilityLabel:U,style:J,children:[Z,ee]}),o[52]=J,o[53]=Z,o[54]=ee,o[55]=V,o[56]=U,o[57]=te):te=o[57],te}),N=s.default.create({card:{borderRadius:p.RADIUS.md,overflow:'hidden'},tileFlex:{flex:1},hero:{width:'100%',aspectRatio:1,backgroundColor:'rgba(0,0,0,0.3)'},captionWrap:{position:'absolute',left:p.SPACING.sm,right:p.SPACING.sm,bottom:p.SPACING.sm},labelChips:{flexDirection:'row',flexWrap:'wrap',gap:3},caption:{paddingHorizontal:6,paddingVertical:2,borderRadius:p.RADIUS.sm,alignSelf:'flex-start'},iconCaption:{flexDirection:'row',alignItems:'center',justifyContent:'center',paddingHorizontal:4},captionText:{color:'#fff',fontSize:11,fontWeight:'700'},importance:{position:'absolute',top:p.SPACING.sm,right:p.SPACING.sm,flexDirection:'row',alignItems:'center',gap:2,paddingHorizontal:5,paddingVertical:1,borderRadius:8},importanceText:{fontSize:10,fontWeight:'700',fontVariant:['tabular-nums']},body:{paddingHorizontal:p.SPACING.sm,paddingVertical:p.SPACING.sm,gap:1},bodyReel:{paddingHorizontal:p.SPACING.sm,paddingVertical:3,alignItems:'center'},producing:{fontSize:11,lineHeight:14,fontWeight:'600',maxWidth:'100%'},camera:{fontSize:13,lineHeight:16,height:32,fontWeight:'600'},time:{fontSize:11,lineHeight:14,fontVariant:['tabular-nums']}})},3230,[15,17,20,112,252,33,813,2587,3177,2589,3231,3170,3233,10]);
15635
+ __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,"TrackCard",{enumerable:!0,get:function(){return S}});var o=r(d[0]),t=r(d[1]),a=e(r(d[2])),n=e(r(d[3])),l=e(r(d[4])),s=e(r(d[5])),c=r(d[6]),u=r(d[7]),f=r(d[8]),p=r(d[9]),b=r(d[10]),h=r(d[11]),y=r(d[12]),v=r(d[13]),x=r(d[14]);function N(e){return new Date(e).toLocaleTimeString(void 0,{hour:'2-digit',minute:'2-digit'})}const S=(0,t.memo)(function(e){const t=(0,o.c)(63),{track:s,variant:p,width:S,selected:C,resolver:I,onPress:L}=e,D=void 0===p?"tile":p,w=void 0!==C&&C,{colors:z}=(0,u.useTheme)(),{settings:O}=(0,f.useSettings)(),T="reel"===D,k=T?O.events.reelShowLabels:O.events.tileShowLabels,A=T?O.events.reelShowImportance:O.events.tileShowImportance,E=!T&&O.events.tileShowCameraName,F=!T&&"icon"===O.events.tileLabelStyle,P=T&&"icon"===O.events.reelLabelStyle,R=(0,b.colorForEventType)(s.className),W=A&&"number"==typeof s.importance;let G;t[0]!==I||t[1]!==s.className?(G=I?I.resolveLabel(s.className):s.className,t[0]=I,t[1]=s.className,t[2]=G):G=t[2];const H=G;let _;t[3]!==H||t[4]!==s?(_=(0,v.trackTitle)(s,H),t[3]=H,t[4]=s,t[5]=_):_=t[5];const M=_,V=void 0!==s.producingDeviceName&&k&&!(T?P:F),$=void 0!==s.producingDeviceName&&!V;let K;t[6]!==z.primary||t[7]!==w?(K=w?{borderColor:z.primary,borderWidth:2}:{borderColor:"transparent",borderWidth:2},t[6]=z.primary,t[7]=w,t[8]=K):K=t[8];const U=K;let B;t[9]!==L||t[10]!==s?(B=()=>L(s),t[9]=L,t[10]=s,t[11]=B):B=t[11];const q=s.cameraName;let J;t[12]!==s.lastSeen?(J=N(s.lastSeen),t[12]=s.lastSeen,t[13]=J):J=t[13];const Q=`${q} \xb7 ${M} \xb7 ${J}`;let X,Y,Z,ee,oe,te,re,ae,ne;return t[14]!==z.surface?(X={backgroundColor:z.surface},t[14]=z.surface,t[15]=X):X=t[15],t[16]!==D||t[17]!==S?(Y="reel"===D&&S?{width:S}:j.tileFlex,t[16]=D,t[17]=S,t[18]=Y):Y=t[18],t[19]!==U||t[20]!==X||t[21]!==Y?(Z=[j.card,U,X,Y],t[19]=U,t[20]=X,t[21]=Y,t[22]=Z):Z=t[22],t[23]!==s.bestEventId||t[24]!==s.className?(ee=(0,x.jsx)(y.TrackCropImage,{eventId:s.bestEventId,className:s.className}),t[23]=s.bestEventId,t[24]=s.className,t[25]=ee):ee=t[25],t[26]!==R||t[27]!==H||t[28]!==M||t[29]!==F||t[30]!==P||t[31]!==I||t[32]!==k||t[33]!==s.audioLabels||t[34]!==s.className||t[35]!==s.label||t[36]!==s.producingDeviceName||t[37]!==D?(oe=k?(0,x.jsx)(a.default,{style:j.captionWrap,pointerEvents:"none",children:"reel"===D?P?(()=>{const e=I?I.resolveIcon(s.className):(0,h.resolveEventKindIcon)(s.className.toLowerCase());return(0,x.jsx)(a.default,{style:[j.caption,j.iconCaption,{backgroundColor:R+"E6"}],children:(0,x.jsx)(e,{size:13,color:"#fff"})})})():(0,x.jsx)(a.default,{style:[j.caption,{backgroundColor:R+"E6"}],children:(0,x.jsx)(n.default,{numberOfLines:1,style:j.captionText,children:M})}):(0,x.jsxs)(a.default,{style:j.labelChips,children:[F?(()=>{const e=I?I.resolveIcon(s.className):(0,h.resolveEventKindIcon)(s.className.toLowerCase());return(0,x.jsx)(a.default,{style:[j.caption,j.iconCaption,{backgroundColor:R+"E6"}],children:(0,x.jsx)(e,{size:13,color:"#fff"})})})():(0,x.jsx)(a.default,{style:[j.caption,{backgroundColor:R+"E6"}],children:(0,x.jsx)(n.default,{numberOfLines:1,style:j.captionText,children:s.producingDeviceName??H})}),void 0!==s.label&&s.label!==s.className?(0,x.jsx)(a.default,{style:[j.caption,{backgroundColor:"#000000B3"}],children:(0,x.jsx)(n.default,{numberOfLines:1,style:j.captionText,children:s.label})}):null,s.audioLabels.filter(e=>e!==s.className&&e!==s.label).map(e=>{if(F){const o=I?I.resolveAudioIcon(e):(0,h.resolveEventKindIcon)((0,h.audioKindId)(e));return(0,x.jsx)(a.default,{style:[j.caption,j.iconCaption,{backgroundColor:b.AUDIO_COLOR+"E6"}],children:(0,x.jsx)(o,{size:13,color:"#fff"})},`audio-${e}`)}const o=I?I.resolveAudioLabel(e):e;return(0,x.jsx)(a.default,{style:[j.caption,{backgroundColor:b.AUDIO_COLOR+"E6"}],children:(0,x.jsx)(n.default,{numberOfLines:1,style:j.captionText,children:o})},`audio-${e}`)})]})}):null,t[26]=R,t[27]=H,t[28]=M,t[29]=F,t[30]=P,t[31]=I,t[32]=k,t[33]=s.audioLabels,t[34]=s.className,t[35]=s.label,t[36]=s.producingDeviceName,t[37]=D,t[38]=oe):oe=t[38],t[39]!==z.primary||t[40]!==z.primaryForeground||t[41]!==W||t[42]!==s.importance?(te=W?(0,x.jsxs)(a.default,{style:[j.importance,{backgroundColor:z.primary}],children:[(0,x.jsx)(c.Star,{size:9,color:z.primaryForeground,fill:z.primaryForeground}),(0,x.jsx)(n.default,{style:[j.importanceText,{color:z.primaryForeground}],children:Math.round(100*(s.importance??0))})]}):null,t[39]=z.primary,t[40]=z.primaryForeground,t[41]=W,t[42]=s.importance,t[43]=te):te=t[43],t[44]!==ee||t[45]!==oe||t[46]!==te?(re=(0,x.jsxs)(a.default,{style:j.hero,children:[ee,oe,te]}),t[44]=ee,t[45]=oe,t[46]=te,t[47]=re):re=t[47],t[48]!==z.foreground||t[49]!==z.foregroundMuted||t[50]!==E||t[51]!==$||t[52]!==s.cameraName||t[53]!==s.lastSeen||t[54]!==s.producingDeviceName||t[55]!==D?(ae="reel"===D?(0,x.jsxs)(a.default,{style:j.bodyReel,children:[$?(0,x.jsx)(n.default,{numberOfLines:1,style:[j.producing,{color:z.foreground}],children:s.producingDeviceName}):null,(0,x.jsx)(n.default,{style:[j.time,{color:z.foregroundMuted}],children:N(s.lastSeen)})]}):(0,x.jsxs)(a.default,{style:j.body,children:[$?(0,x.jsx)(n.default,{numberOfLines:2,adjustsFontSizeToFit:!0,minimumFontScale:.8,style:[j.camera,{color:z.foreground}],children:s.producingDeviceName}):E&&void 0===s.producingDeviceName?(0,x.jsx)(n.default,{numberOfLines:2,adjustsFontSizeToFit:!0,minimumFontScale:.8,style:[j.camera,{color:z.foreground}],children:s.cameraName}):null,(0,x.jsx)(n.default,{style:[j.time,{color:z.foregroundMuted}],children:N(s.lastSeen)})]}),t[48]=z.foreground,t[49]=z.foregroundMuted,t[50]=E,t[51]=$,t[52]=s.cameraName,t[53]=s.lastSeen,t[54]=s.producingDeviceName,t[55]=D,t[56]=ae):ae=t[56],t[57]!==Z||t[58]!==re||t[59]!==ae||t[60]!==B||t[61]!==Q?(ne=(0,x.jsxs)(l.default,{onPress:B,accessibilityRole:"button",accessibilityLabel:Q,style:Z,children:[re,ae]}),t[57]=Z,t[58]=re,t[59]=ae,t[60]=B,t[61]=Q,t[62]=ne):ne=t[62],ne}),j=s.default.create({card:{borderRadius:p.RADIUS.md,overflow:'hidden'},tileFlex:{flex:1},hero:{width:'100%',aspectRatio:1,backgroundColor:'rgba(0,0,0,0.3)'},captionWrap:{position:'absolute',left:p.SPACING.sm,right:p.SPACING.sm,bottom:p.SPACING.sm},labelChips:{flexDirection:'row',flexWrap:'wrap',gap:3},caption:{paddingHorizontal:6,paddingVertical:2,borderRadius:p.RADIUS.sm,alignSelf:'flex-start'},iconCaption:{flexDirection:'row',alignItems:'center',justifyContent:'center',paddingHorizontal:4},captionText:{color:'#fff',fontSize:11,fontWeight:'700'},importance:{position:'absolute',top:p.SPACING.sm,right:p.SPACING.sm,flexDirection:'row',alignItems:'center',gap:2,paddingHorizontal:5,paddingVertical:1,borderRadius:8},importanceText:{fontSize:10,fontWeight:'700',fontVariant:['tabular-nums']},body:{paddingHorizontal:p.SPACING.sm,paddingVertical:p.SPACING.sm,gap:1},bodyReel:{paddingHorizontal:p.SPACING.sm,paddingVertical:3,alignItems:'center'},producing:{fontSize:11,lineHeight:14,fontWeight:'600',maxWidth:'100%'},camera:{fontSize:13,lineHeight:16,height:32,fontWeight:'600'},time:{fontSize:11,lineHeight:14,fontVariant:['tabular-nums']}})},3230,[15,17,20,112,252,33,813,2587,3177,2589,3231,3170,3233,3237,10]);
15636
15636
  __d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"MOTION_COLOR",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"AUDIO_COLOR",{enumerable:!0,get:function(){return s}}),_e.colorForEventType=i,_e.filterEvents=function(t,e,n){return n?t:t.filter(t=>e.has('audio'===t.type.toLowerCase()?'audio':'motion'))},_e.filterDetectionsByClass=l,_e.filterDetectionsByKind=function(t,n,o=f,s){return l((0,e.isFilterAll)(n)||n.has('motion')?t:t.filter(t=>(t.audioLabels?.length??0)>0),o,s)},_e.mergeAudioIntoHeatmapBins=function(t,e,o){if(0===e.length||0===t.length)return t;const s=n/t.length,i=new Array(t.length).fill(0);let c=!1;for(const n of e){if(n.intensity<=0||n.endMs<=n.startMs)continue;const e=Math.floor((n.startMs-o)/s),f=Math.floor((n.endMs-1-o)/s);for(let o=Math.max(0,e);o<=Math.min(t.length-1,f);o++)n.intensity>i[o]&&(i[o]=n.intensity,c=!0)}return c?t.map((t,e)=>i[e]>t.audio?Object.assign({},t,{audio:i[e]}):t):t},_e.eventsToHeatmapHighlights=function(t,e){const n=new Date(e);n.setHours(0,0,0,0);const o=n.getTime(),s=[];for(const e of t){const t=(e.timestamp-o)/864e5;t<0||t>1||s.push({id:e.id,fraction:t,color:i(e.type)})}return s},_e.objectEventsToHeatmapHighlights=function(e,o){const s=[];for(const i of e){const e=(i.timestamp-o)/n;e<0||e>1||s.push({id:i.id,fraction:e,color:(0,t.getClassColor)(i.className)})}return s},_e.objectEventsToHeatmapBins=function(t,o){const s=new Array(e.HEATMAP_BINS).fill(0);for(const i of t){const t=(i.timestamp-o)/n;t<0||t>=1||s[Math.min(e.HEATMAP_BINS-1,Math.floor(t*e.HEATMAP_BINS))]++}let i=0;for(const t of s)t>i&&(i=t);return s.map(t=>({motion:i>0?t/i:0,audio:0,recorded:!1}))},_e.eventsToListHighlights=function(t,e,n){const o=36e5*n;if(o<=0)return[];const s=[];for(const n of t){const t=(e-n.timestamp)/o;t<0||t>1||s.push({id:n.id,fraction:t,color:i(n.type)})}return s};var t=r(d[0]),e=r(d[1]);const n=864e5,o='#f59e0b',s='#06b6d4';function i(e){const n=e.toLowerCase();return'motion'===n?o:'audio'===n?s:(0,t.getClassColor)(e)}function c(t){const e=[];return'string'==typeof t.className&&t.className.length>0&&e.push(t.className),t.classes&&e.push(...t.classes),e}const f=new Set;function l(t,e,n){if(0===e.size)return t;const o=t=>n?.get(t)??t;return t.filter(t=>c(t).some(t=>e.has(o(t))))}},3231,[3232,3142]);
15637
15637
  __d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.getClassColor=function(b){const f=b.toLowerCase(),n=c[b]??c[f];if(n)return n;let i=0;for(let c=0;c<b.length;c++)i=31*i+(b.codePointAt(c)??0)>>>0;return t[i%t.length]??o};const c={person:'#22c55e',vehicle:'#3b82f6',animal:'#f97316',motion:'#f59e0b',audio:'#06b6d4',face:'#a855f7',plate:'#ec4899',car:'#f59e0b',truck:'#d97706',bus:'#b45309',motorcycle:'#eab308',bicycle:'#ca8a04',airplane:'#60a5fa',boat:'#2563eb',train:'#1d4ed8',bird:'#14b8a6',dog:'#84cc16',cat:'#f97316',horse:'#a16207',sheep:'#a3a3a3',cow:'#78716c',elephant:'#6b7280',bear:'#7c2d12',zebra:'#404040',giraffe:'#d4a373'},t=['#ef4444','#8b5cf6','#06b6d4','#f97316','#10b981','#6366f1','#e11d48','#0891b2','#7c3aed','#059669'],o='#f59e42'},3232,[]);
15638
15638
  __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,"TrackCropImage",{enumerable:!0,get:function(){return _}});var t=r(d[0]),o=r(d[1]),n=e(r(d[2])),l=e(r(d[3])),c=r(d[4]),s=r(d[5]),u=r(d[6]),f=r(d[7]),y=r(d[8]),v=r(d[9]),b=r(d[10]);const _=(0,o.memo)(function(e){const o=(0,t.c)(27),{eventId:_,className:j,mediaUrl:x,contentFit:F,iconSize:S,thumbSize:k}=e,p=void 0===F?"cover":F,z=void 0===S?34:S,C=void 0===k?192:k,{token:E}=(0,s.useServer)();let I;o[0]!==C?(I={variant:"thumb",size:C,directDefaultKind:!0},o[0]=C,o[1]=I):I=o[1];const{uri:B,isData:M,failed:P,onError:A}=(0,u.useEventMedia)(_,x,"crop",I),D=(0,y.colorForEventType)(j);let K;o[2]!==j?(K=(0,v.iconForClass)(j),o[2]=j,o[3]=K):K=o[3];const O=K;let T;o[4]!==M||o[5]!==E||o[6]!==B?(T=E&&B&&!M?{Authorization:`Bearer ${E}`}:void 0,o[4]=M,o[5]=E,o[6]=B,o[7]=T):T=o[7];const N=T;if(P){const e=D+"1A";let t,c,s;return o[8]!==e?(t=[l.default.absoluteFill,h.center,{backgroundColor:e}],o[8]=e,o[9]=t):t=o[9],o[10]!==O||o[11]!==D||o[12]!==z?(c=(0,b.jsx)(O,{size:z,color:D}),o[10]=O,o[11]=D,o[12]=z,o[13]=c):c=o[13],o[14]!==t||o[15]!==c?(s=(0,b.jsx)(n.default,{style:t,children:c}),o[14]=t,o[15]=c,o[16]=s):s=o[16],s}if(null===B){let e;return o[17]===Symbol.for("react.memo_cache_sentinel")?(e=(0,b.jsx)(f.SkeletonBox,{}),o[17]=e):e=o[17],e}let U,$,q;return o[18]===Symbol.for("react.memo_cache_sentinel")?(U=(0,b.jsx)(f.SkeletonBox,{}),o[18]=U):U=o[18],o[19]!==N||o[20]!==B?($=N?{uri:B,headers:N}:{uri:B},o[19]=N,o[20]=B,o[21]=$):$=o[21],o[22]!==p||o[23]!==_||o[24]!==A||o[25]!==$?(q=(0,b.jsxs)(n.default,{style:l.default.absoluteFill,children:[U,(0,b.jsx)(c.Image,{source:$,recyclingKey:_,style:l.default.absoluteFill,contentFit:p,cachePolicy:"memory-disk",transition:100,onError:A})]}),o[22]=p,o[23]=_,o[24]=A,o[25]=$,o[26]=q):q=o[26],q}),h=l.default.create({center:{alignItems:'center',justifyContent:'center'}})},3233,[15,17,20,33,3053,3144,3234,3151,3231,3236,10]);
15639
- __d(function(g,r,i,a,_m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.resolveEventMediaUri=c,e.useEventMedia=function(o,f,m,b){const y=(0,t.c)(20),{controller:h,state:U}=(0,l.useConnection)(),[p,k]=(0,n.useState)(null),[D,E]=(0,n.useState)(!1),M=(0,n.useRef)(!1),S="thumb"===b?.variant,R=S||"full"===b?.variant,_=R&&void 0!==m&&m.length>0,j=_&&!0!==b?.directDefaultKind,z="connected"===U?h.getSystem()?.serverUrl??null:null,A=R&&null!==z&&o.length>0?(0,s.buildEventMediaUrl)(z,o,Object.assign({},S?{variant:"thumb"}:{},S&&void 0!==b?.size?{size:b.size}:{},j?{kind:m}:{})):null;let F;y[0]!==h||y[1]!==_||y[2]!==o||y[3]!==m?(F=async()=>{if(!M.current){M.current=!0;try{const t=h.getSystem();if(!t)return void E(!0);const n=v(await(0,u.capQuery)(t.trpcClient,"pipelineAnalytics","getEventMedia",{eventId:o}),m,_);n?k(`data:image/jpeg;base64,${n}`):E(!0)}catch{E(!0)}}},y[0]=h,y[1]=_,y[2]=o,y[3]=m,y[4]=F):F=y[4];const C=F;let O,w,I;y[5]!==D||y[6]!==p||y[7]!==C||y[8]!==f||y[9]!==m||y[10]!==R?(O=()=>{R||!m&&f||null!==p||D||C()},w=[R,f,m,p,D,C],y[5]=D,y[6]=p,y[7]=C,y[8]=f,y[9]=m,y[10]=R,y[11]=O,y[12]=w):(O=y[11],w=y[12]);(0,n.useEffect)(O,w),y[13]!==C?(I=()=>{C()},y[13]=C,y[14]=I):I=y[14];const K=I,P=c({fallbackUri:p,thumbUrl:A,mediaUrl:f,failed:D});let Q;y[15]!==K||y[16]!==P.failed||y[17]!==P.isData||y[18]!==P.uri?(Q={uri:P.uri,isData:P.isData,failed:P.failed,onError:K},y[15]=K,y[16]=P.failed,y[17]=P.isData,y[18]=P.uri,y[19]=Q):Q=y[19];return Q};var t=r(d[0]),n=r(d[1]),l=r(d[2]),u=r(d[3]),s=r(d[4]);function c(t){const n=t.failed?null:t.thumbUrl,l=t.fallbackUri??n??t.mediaUrl??null;return{uri:l,isData:null!==l&&l.startsWith('data:'),failed:t.failed&&null===l}}function o(t){if(!(0,u.isRecord)(t))return null;const n=t.base64;return'string'!=typeof n||0===n.length?null:n}const f=['crop','thumbnail','keyFrame','keyFrameSmall','fullFrame'];function v(t,n,l=!1){if(!Array.isArray(t)||0===t.length)return null;if(n){const l=o(t.find(t=>(0,u.isRecord)(t)&&t.kind===n));if(null!==l)return l}if(l){for(const n of f){const l=o(t.find(t=>(0,u.isRecord)(t)&&t.kind===n));if(null!==l)return l}return null}return o(t[0])}},3234,[15,17,2594,3162,3235]);
15639
+ __d(function(g,r,i,a,_m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.resolveEventMediaUri=c,Object.defineProperty(e,"CLEAN_FALLBACK_KINDS",{enumerable:!0,get:function(){return f}}),e.extractBase64=m,e.useEventMedia=function(o,f,b,v){const y=(0,t.c)(20),{controller:h,state:p}=(0,l.useConnection)(),[U,k]=(0,n.useState)(null),[D,E]=(0,n.useState)(!1),S=(0,n.useRef)(!1),A="thumb"===v?.variant,_=A||"full"===v?.variant,M=_&&void 0!==b&&b.length>0,j=M&&!0!==v?.directDefaultKind,C="connected"===p?h.getSystem()?.serverUrl??null:null,F=_&&null!==C&&o.length>0?(0,s.buildEventMediaUrl)(C,o,Object.assign({},A?{variant:"thumb"}:{},A&&void 0!==v?.size?{size:v.size}:{},j?{kind:b}:{})):null;let R;y[0]!==h||y[1]!==M||y[2]!==o||y[3]!==b?(R=async()=>{if(!S.current){S.current=!0;try{const t=h.getSystem();if(!t)return void E(!0);const n=m(await(0,u.capQuery)(t.trpcClient,"pipelineAnalytics","getEventMedia",{eventId:o}),b,M);n?k(`data:image/jpeg;base64,${n}`):E(!0)}catch{E(!0)}}},y[0]=h,y[1]=M,y[2]=o,y[3]=b,y[4]=R):R=y[4];const z=R;let K,L,O;y[5]!==D||y[6]!==U||y[7]!==z||y[8]!==f||y[9]!==b||y[10]!==_?(K=()=>{_||!b&&f||null!==U||D||z()},L=[_,f,b,U,D,z],y[5]=D,y[6]=U,y[7]=z,y[8]=f,y[9]=b,y[10]=_,y[11]=K,y[12]=L):(K=y[11],L=y[12]);(0,n.useEffect)(K,L),y[13]!==z?(O=()=>{z()},y[13]=z,y[14]=O):O=y[14];const B=O,I=c({fallbackUri:U,thumbUrl:F,mediaUrl:f,failed:D});let N;y[15]!==B||y[16]!==I.failed||y[17]!==I.isData||y[18]!==I.uri?(N={uri:I.uri,isData:I.isData,failed:I.failed,onError:B},y[15]=B,y[16]=I.failed,y[17]=I.isData,y[18]=I.uri,y[19]=N):N=y[19];return N};var t=r(d[0]),n=r(d[1]),l=r(d[2]),u=r(d[3]),s=r(d[4]);function c(t){const n=t.failed?null:t.thumbUrl,l=t.fallbackUri??n??t.mediaUrl??null;return{uri:l,isData:null!==l&&l.startsWith('data:'),failed:t.failed&&null===l}}function o(t){if(!(0,u.isRecord)(t))return null;const n=t.base64;return'string'!=typeof n||0===n.length?null:n}const f=['thumbnailSmall','thumbnail','keyFrameSmall','crop','keyFrame','fullFrame'];function m(t,n,l=!1){if(!Array.isArray(t)||0===t.length)return null;if(n){const l=o(t.find(t=>(0,u.isRecord)(t)&&t.kind===n));if(null!==l)return l}if(l){for(const n of f){const l=o(t.find(t=>(0,u.isRecord)(t)&&t.kind===n));if(null!==l)return l}return null}return o(t[0])}},3234,[15,17,2594,3162,3235]);
15640
15640
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"EVENT_MEDIA_PATH",{enumerable:!0,get:function(){return n}}),e.buildEventMediaUrl=function(u,o,c){const s=($=u,$.replace(/\/+$/,'')),h=c?t(c):'';var $;return`${s}${n}/${o}${h}`},e.withThumbVariant=function(n,t){const u=n.includes('?')?'&':'?',o=void 0!==t?`&size=${Math.round(t)}`:'';return`${n}${u}variant=thumb${o}`};const n='/addon/pipeline-analytics/event-media';function t(n){const t=[];return'thumb'===n.variant&&(t.push('variant=thumb'),void 0!==n.size&&t.push(`size=${Math.round(n.size)}`)),void 0!==n.kind&&n.kind.length>0&&t.push(`kind=${encodeURIComponent(n.kind)}`),t.length>0?`?${t.join('&')}`:''}},3235,[]);
15641
15641
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.iconForClass=function(o){const t=o.toLowerCase();return'person'===t||'face'===t?c.User:['car','truck','bus','vehicle','motorcycle','bicycle'].includes(t)?c.Car:'dog'===t||'cat'===t||'animal'===t?c.Dog:'bird'===t?c.Bird:c.HelpCircle};var c=r(d[0])},3236,[813]);
15642
- __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,"TrackDetailModal",{enumerable:!0,get:function(){return k}});var t=r(d[0]),n=r(d[1]),o=e(r(d[2])),l=e(r(d[3])),u=e(r(d[4])),c=r(d[5]),s=r(d[6]),f=r(d[7]),p=r(d[8]);const k=(0,n.memo)(function(e){const n=(0,t.c)(14),{track:u,onSeek:k,onClose:_}=e,{colors:j}=(0,s.useTheme)(),T=(0,c.useSafeAreaInsets)(),x=null!==u,y=j.background+"F2";let C,h,v,M;return n[0]!==T.top||n[1]!==y?(C=[b.backdrop,{backgroundColor:y,paddingTop:T.top}],n[0]=T.top,n[1]=y,n[2]=C):C=n[2],n[3]!==_||n[4]!==k||n[5]!==u?(h=null!==u?(0,p.jsx)(f.TrackDetailView,{track:u,onSeek:k,onClose:_}):null,n[3]=_,n[4]=k,n[5]=u,n[6]=h):h=n[6],n[7]!==C||n[8]!==h?(v=(0,p.jsx)(l.default,{style:C,children:h}),n[7]=C,n[8]=h,n[9]=v):v=n[9],n[10]!==_||n[11]!==x||n[12]!==v?(M=(0,p.jsx)(o.default,{visible:x,animationType:"slide",transparent:!0,onRequestClose:_,children:v}),n[10]=_,n[11]=x,n[12]=v,n[13]=M):M=n[13],M}),b=u.default.create({backdrop:{flex:1}})},3237,[15,17,245,20,33,466,2587,3238,10]);
15643
- __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,"TrackDetailView",{enumerable:!0,get:function(){return T}});var t=r(d[0]),o=r(d[1]),n=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),c=e(r(d[5])),u=e(r(d[6])),f=r(d[7]),g=r(d[8]),h=r(d[9]),b=r(d[10]),y=r(d[11]),S=r(d[12]),x=r(d[13]),p=r(d[14]),I=r(d[15]),j=r(d[16]),k=r(d[17]),v=r(d[18]),C=r(d[19]),w=r(d[20]),A=r(d[21]),F=r(d[22]),N=r(d[23]),P=r(d[24]);const R=1.7777777777777777;function z(e){return new Date(e).toLocaleTimeString(void 0,{hour:'2-digit',minute:'2-digit',second:'2-digit'})}const L=(0,o.memo)(function(e){const c=(0,t.c)(30),{file:g,selected:S,onPress:x}=e,{colors:p}=(0,y.useTheme)(),{t:I}=(0,b.useTranslation)(),[j,k]=(0,o.useState)(!1);let v,C;c[0]===Symbol.for("react.memo_cache_sentinel")?(v=()=>k(!1),c[0]=v):v=c[0],c[1]!==g.base64?(C=[g.base64],c[1]=g.base64,c[2]=C):C=c[2],(0,o.useEffect)(v,C);const w=S?p.primary:p.border,A=S?2:u.default.hairlineWidth;let F;c[3]!==w||c[4]!==A?(F={borderColor:w,borderWidth:A},c[3]=w,c[4]=A,c[5]=F):F=c[5];const R=F;let z,L,T,B;c[6]!==p.surface?(z={backgroundColor:p.surface},c[6]=p.surface,c[7]=z):z=c[7],c[8]!==R||c[9]!==z?(L=[D.tile,R,z],c[8]=R,c[9]=z,c[10]=L):L=c[10],c[11]!==p.foregroundSubtle||c[12]!==j||c[13]!==g.base64?(T=j?(0,P.jsx)(n.default,{style:[u.default.absoluteFill,D.center],pointerEvents:"none",children:(0,P.jsx)(h.ImageOff,{size:18,color:p.foregroundSubtle})}):(0,P.jsx)(f.Image,{source:{uri:`data:image/jpeg;base64,${g.base64}`},style:u.default.absoluteFill,contentFit:"cover",cachePolicy:"memory",onError:()=>k(!0)}),c[11]=p.foregroundSubtle,c[12]=j,c[13]=g.base64,c[14]=T):T=c[14],c[15]!==L||c[16]!==T?(B=(0,P.jsx)(n.default,{style:L,children:T}),c[15]=L,c[16]=T,c[17]=B):B=c[17];const E=S?p.foreground:p.foregroundMuted;let G,M,_,V;return c[18]!==E?(G=[D.tileLabel,{color:E}],c[18]=E,c[19]=G):G=c[19],c[20]!==g.kind||c[21]!==I?(M=(0,N.mediaKindLabel)(g.kind,I),c[20]=g.kind,c[21]=I,c[22]=M):M=c[22],c[23]!==G||c[24]!==M?(_=(0,P.jsx)(l.default,{numberOfLines:1,style:G,children:M}),c[23]=G,c[24]=M,c[25]=_):_=c[25],c[26]!==x||c[27]!==_||c[28]!==B?(V=(0,P.jsxs)(s.default,{onPress:x,hitSlop:4,style:D.tileWrap,children:[B,_]}),c[26]=x,c[27]=_,c[28]=B,c[29]=V):V=c[29],V}),T=(0,o.memo)(function(e){const T=(0,t.c)(170),{track:G,onSeek:M,onClose:_,bottomInset:V}=e,{colors:W}=(0,y.useTheme)(),{t:U}=(0,b.useTranslation)(),K=(0,g.useSafeAreaInsets)();let O;T[0]!==G.className?(O=(0,x.colorForEventType)(G.className),T[0]=G.className,T[1]=O):O=T[1];const $=O;let H;T[2]!==G.deviceId?(H=[G.deviceId],T[2]=G.deviceId,T[3]=H):H=T[3];const Z=(0,F.useEventKindResolver)(H);let X;T[4]!==Z||T[5]!==G.className||T[6]!==G.label?(X=G.label??Z.resolveLabel(G.className),T[4]=Z,T[5]=G.className,T[6]=G.label,T[7]=X):X=T[7];const q=X,[J,Q]=(0,o.useState)(!1),[Y,ee]=(0,o.useState)(0),[te,re]=(0,o.useState)(!1),[oe,ne]=(0,o.useState)(!1),[le,se]=(0,o.useState)(null),[ae,ie]=(0,o.useState)(void 0),de=(0,C.useTrackDetailMedia)(G.deviceId,G.bestEventId,G.trackId),ce=de.gallery;let ue,fe;T[8]!==G.label?(ue=void 0!==G.label?{label:G.label}:{},T[8]=G.label,T[9]=ue):ue=T[9],T[10]!==ue||T[11]!==G.bestEventId||T[12]!==G.className||T[13]!==G.firstSeen?(fe=Object.assign({id:G.bestEventId,timestamp:G.firstSeen,className:G.className},ue),T[10]=ue,T[11]=G.bestEventId,T[12]=G.className,T[13]=G.firstSeen,T[14]=fe):fe=T[14];const me=fe,{data:ge}=(0,A.useTrackFace)(G.deviceId,G.trackId,!0),he=void 0===ge?null:ge;let be;T[15]!==he?(be=(0,N.shouldRenderFaceSection)(he),T[15]=he,T[16]=be):be=T[16];const ye=be;let Se,xe,pe;T[17]===Symbol.for("react.memo_cache_sentinel")?(Se=()=>{se(null)},T[17]=Se):Se=T[17],T[18]!==G.trackId?(xe=[G.trackId],T[18]=G.trackId,T[19]=xe):xe=T[19],(0,o.useEffect)(Se,xe),T[20]!==ce?(pe=(0,N.cleanFrameKey)(ce),T[20]=ce,T[21]=pe):pe=T[21];const Ie=pe,je=le??Ie??ce[0]?.key??null;let ke,ve,Ce;T[22]===Symbol.for("react.memo_cache_sentinel")?(ke=()=>{ie(void 0)},T[22]=ke):ke=T[22],T[23]!==je?(ve=[je],T[23]=je,T[24]=ve):ve=T[24],(0,o.useEffect)(ke,ve),T[25]!==je||T[26]!==ce?(Ce=ce.find(e=>e.key===je)??null,T[25]=je,T[26]=ce,T[27]=Ce):Ce=T[27];const we=Ce,Ae=null!==we&&we.key===Ie;let Fe;T[28]!==Ae||T[29]!==we?(Fe=null!==we&&N.FRAME_KINDS.has(we.kind)&&Ae,T[28]=Ae,T[29]=we,T[30]=Fe):Fe=T[30];const Ne=Fe,Pe=J&&Ne&&!de.hasServerBoxed,{detection:Re}=(0,w.useTrackBestDetection)(G.deviceId,G.trackId,G.bestEventId,G.firstSeen,G.lastSeen,Pe||oe);let ze;T[31]!==Re?(ze=Re?[Re]:[],T[31]=Re,T[32]=ze):ze=T[32];const Le=ze;let Te;T[33]===Symbol.for("react.memo_cache_sentinel")?(Te=e=>{e>0&&ee(e)},T[33]=Te):Te=T[33];const Be=Te;let De;T[34]!==Y?(De=Y>0?Math.round(Y/R):0,T[34]=Y,T[35]=De):De=T[35];const Ee=De,Ge=(V??K.bottom)+S.SPACING.md,Me=J&&Ne&&de.hasServerBoxed&&null!==de.fullFrameBoxedUri,Ve=null===we?null:Me?de.fullFrameBoxedUri:`data:image/jpeg;base64,${we.base64}`;let We,Ue,Ke,Oe,$e,He,Ze,Xe,qe,Je,Qe,Ye,et,tt,rt,ot,nt,lt,st,at,it,dt,ct,ut,ft,mt,gt,ht,bt,yt,St;T[36]!==$?(We=(0,P.jsx)(n.default,{style:[D.classDot,{backgroundColor:$}]}),T[36]=$,T[37]=We):We=T[37],T[38]!==W.foreground?(Ue=[D.title,{color:W.foreground}],T[38]=W.foreground,T[39]=Ue):Ue=T[39],T[40]!==q||T[41]!==Ue?(Ke=(0,P.jsx)(l.default,{numberOfLines:1,style:Ue,children:q}),T[40]=q,T[41]=Ue,T[42]=Ke):Ke=T[42],T[43]!==W.primary||T[44]!==W.primaryForeground||T[45]!==G.importance?(Oe="number"==typeof G.importance?(0,P.jsxs)(n.default,{style:[D.importance,{backgroundColor:W.primary}],children:[(0,P.jsx)(h.Star,{size:9,color:W.primaryForeground,fill:W.primaryForeground}),(0,P.jsx)(l.default,{style:[D.importanceText,{color:W.primaryForeground}],children:Math.round(100*G.importance)})]}):null,T[43]=W.primary,T[44]=W.primaryForeground,T[45]=G.importance,T[46]=Oe):Oe=T[46],T[47]!==We||T[48]!==Ke||T[49]!==Oe?($e=(0,P.jsxs)(n.default,{style:D.titleRow,children:[We,Ke,Oe]}),T[47]=We,T[48]=Ke,T[49]=Oe,T[50]=$e):$e=T[50],T[51]!==W.foregroundMuted?(He=[D.subtitle,{color:W.foregroundMuted}],T[51]=W.foregroundMuted,T[52]=He):He=T[52],T[53]!==G?(Ze=(0,N.trackLocationLabel)(G).length>0?`${(0,N.trackLocationLabel)(G)} \xb7 `:"",T[53]=G,T[54]=Ze):Ze=T[54],T[55]!==G.firstSeen?(Xe=z(G.firstSeen),T[55]=G.firstSeen,T[56]=Xe):Xe=T[56],T[57]!==G.firstSeen||T[58]!==G.lastSeen?(qe=G.lastSeen>G.firstSeen?` \u2013 ${z(G.lastSeen)}`:"",T[57]=G.firstSeen,T[58]=G.lastSeen,T[59]=qe):qe=T[59],T[60]!==He||T[61]!==Ze||T[62]!==Xe||T[63]!==qe?(Je=(0,P.jsxs)(l.default,{style:He,children:[Ze,Xe,qe]}),T[60]=He,T[61]=Ze,T[62]=Xe,T[63]=qe,T[64]=Je):Je=T[64],T[65]!==$e||T[66]!==Je?(Qe=(0,P.jsxs)(n.default,{style:D.headerText,children:[$e,Je]}),T[65]=$e,T[66]=Je,T[67]=Qe):Qe=T[67],T[68]===Symbol.for("react.memo_cache_sentinel")?(Ye=()=>ne(!0),T[68]=Ye):Ye=T[68],T[69]!==U?(et=U("v2.tracks.metadata"),T[69]=U,T[70]=et):et=T[70],T[71]!==W.surface?(tt=[D.iconBtn,{backgroundColor:W.surface}],T[71]=W.surface,T[72]=tt):tt=T[72],T[73]!==W.foreground?(rt=(0,P.jsx)(h.Info,{size:18,color:W.foreground}),T[73]=W.foreground,T[74]=rt):rt=T[74],T[75]!==et||T[76]!==tt||T[77]!==rt?(ot=(0,P.jsx)(s.default,{onPress:Ye,hitSlop:10,accessibilityRole:"button",accessibilityLabel:et,style:tt,children:rt}),T[75]=et,T[76]=tt,T[77]=rt,T[78]=ot):ot=T[78],T[79]!==W.foreground||T[80]!==W.surface||T[81]!==_?(nt=_?(0,P.jsx)(s.default,{onPress:_,hitSlop:10,style:[D.iconBtn,{backgroundColor:W.surface}],children:(0,P.jsx)(h.X,{size:20,color:W.foreground})}):null,T[79]=W.foreground,T[80]=W.surface,T[81]=_,T[82]=nt):nt=T[82],T[83]!==Qe||T[84]!==ot||T[85]!==nt?(lt=(0,P.jsxs)(n.default,{style:D.header,children:[Qe,ot,nt]}),T[83]=Qe,T[84]=ot,T[85]=nt,T[86]=lt):lt=T[86],T[87]!==W.foregroundSubtle?(st=[D.sectionLabel,{color:W.foregroundSubtle}],T[87]=W.foregroundSubtle,T[88]=st):st=T[88],T[89]!==U?(at=U("v2.tracks.bestShot","Best shot"),T[89]=U,T[90]=at):at=T[90],T[91]!==st||T[92]!==at?(it=(0,P.jsx)(l.default,{style:st,children:at}),T[91]=st,T[92]=at,T[93]=it):it=T[93],T[94]===Symbol.for("react.memo_cache_sentinel")?(dt=[D.hero,{backgroundColor:"#000"}],ct=e=>Be(e.nativeEvent.layout.width),T[94]=dt,T[95]=ct):(dt=T[94],ct=T[95]),T[96]!==Y||T[97]!==Ee||T[98]!==me||T[99]!==G.bestEventId?(ut=Y>0&&Ee>0?(0,P.jsx)(I.ZoomableImage,{width:Y,height:Ee,resetKey:`hero:${G.bestEventId}`,contentAspect:R,children:(0,P.jsx)(j.EventThumb,{event:me,width:Y,height:Ee})}):null,T[96]=Y,T[97]=Ee,T[98]=me,T[99]=G.bestEventId,T[100]=ut):ut=T[100],T[101]!==ut?(ft=(0,P.jsx)(n.default,{style:dt,onLayout:ct,children:ut}),T[101]=ut,T[102]=ft):ft=T[102],T[103]!==Ne||T[104]!==Le||T[105]!==W.border||T[106]!==W.foreground||T[107]!==W.foregroundMuted||T[108]!==W.foregroundSubtle||T[109]!==W.primary||T[110]!==W.primaryForeground||T[111]!==Y||T[112]!==je||T[113]!==Ee||T[114]!==ce||T[115]!==ae||T[116]!==Ve||T[117]!==de.hasServerBoxed||T[118]!==J||T[119]!==U?(mt=ce.length>0?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsxs)(n.default,{style:D.frameHeader,children:[(0,P.jsx)(l.default,{style:[D.sectionLabel,{color:W.foregroundSubtle}],children:U("v2.tracks.media","Media")}),Ne?(0,P.jsxs)(s.default,{onPress:()=>Q(E),accessibilityRole:"checkbox",accessibilityState:{checked:J},hitSlop:8,style:D.checkboxRow,children:[(0,P.jsx)(n.default,{style:[D.checkbox,{borderColor:J?W.primary:W.border,backgroundColor:J?W.primary:"transparent"}],children:J?(0,P.jsx)(h.Check,{size:12,color:W.primaryForeground}):null}),(0,P.jsx)(l.default,{style:[D.checkboxLabel,{color:W.foreground}],children:U("v2.tracks.showBoundingBox","Show bounding box")})]}):null]}),(0,P.jsx)(n.default,{style:[D.frame,{height:Ee,backgroundColor:"#000"}],children:null!==Ve&&Ee>0?(0,P.jsxs)(I.ZoomableImage,{width:Y,height:Ee,resetKey:`media:${je??"none"}`,contentAspect:ae,children:[(0,P.jsx)(f.Image,{source:{uri:Ve},style:u.default.absoluteFill,contentFit:"contain",cachePolicy:"memory-disk",onLoad:e=>{const{width:t,height:o}=e.source;t>0&&o>0&&ie(t/o)}}),J&&Ne&&!de.hasServerBoxed?(0,P.jsx)(p.BoundingBoxOverlay,{detections:Le,width:Y,height:Ee}):null]}):(0,P.jsx)(n.default,{style:[u.default.absoluteFill,D.center],children:(0,P.jsx)(h.ImageOff,{size:40,color:W.foregroundSubtle})})}),ce.length>1?(0,P.jsxs)(l.default,{style:[D.counter,{color:W.foregroundMuted}],children:[Math.max(0,ce.findIndex(e=>e.key===je))+1,"/",ce.length]}):null,(0,P.jsx)(c.default,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:D.strip,children:ce.map(e=>(0,P.jsx)(L,{file:e,selected:e.key===je,onPress:()=>se(e.key)},e.key))})]}):null,T[103]=Ne,T[104]=Le,T[105]=W.border,T[106]=W.foreground,T[107]=W.foregroundMuted,T[108]=W.foregroundSubtle,T[109]=W.primary,T[110]=W.primaryForeground,T[111]=Y,T[112]=je,T[113]=Ee,T[114]=ce,T[115]=ae,T[116]=Ve,T[117]=de.hasServerBoxed,T[118]=J,T[119]=U,T[120]=mt):mt=T[120],T[121]!==W.backgroundElevated||T[122]!==W.foreground||T[123]!==W.foregroundMuted||T[124]!==W.foregroundSubtle||T[125]!==W.primary||T[126]!==W.primaryForeground||T[127]!==W.surface||T[128]!==he||T[129]!==ye||T[130]!==U?(gt=ye&&null!==he?(0,P.jsxs)(P.Fragment,{children:[(0,P.jsx)(l.default,{style:[D.sectionLabel,{color:W.foregroundSubtle}],children:U("v2.tracks.person")}),(0,P.jsxs)(n.default,{style:[D.personCard,{backgroundColor:W.surface}],children:[he.base64?(0,P.jsx)(f.Image,{source:{uri:`data:image/jpeg;base64,${he.base64}`},style:[D.personFace,{backgroundColor:W.backgroundElevated}],contentFit:"cover"}):(0,P.jsx)(n.default,{style:[D.personFace,D.personFaceEmpty,{backgroundColor:W.backgroundElevated}],children:(0,P.jsx)(h.UserRound,{size:20,color:W.foregroundMuted})}),(0,P.jsx)(l.default,{numberOfLines:1,style:[D.personName,{color:he.identityName?W.foreground:W.foregroundMuted}],children:he.identityName??U("v2.tracks.notAssigned")}),(0,P.jsxs)(s.default,{onPress:()=>re(!0),accessibilityRole:"button",accessibilityLabel:U("v2.tracks.assignFaceTitle"),style:[D.assignBtn,{backgroundColor:W.primary}],children:[(0,P.jsx)(h.UserRoundPlus,{size:14,color:W.primaryForeground}),(0,P.jsx)(l.default,{style:[D.assignBtnText,{color:W.primaryForeground}],children:he.assigned?U("v2.tracks.changePerson"):U("v2.tracks.assignPerson")})]})]})]}):null,T[121]=W.backgroundElevated,T[122]=W.foreground,T[123]=W.foregroundMuted,T[124]=W.foregroundSubtle,T[125]=W.primary,T[126]=W.primaryForeground,T[127]=W.surface,T[128]=he,T[129]=ye,T[130]=U,T[131]=gt):gt=T[131],T[132]!==W||T[133]!==U||T[134]!==G.zonesVisited?(ht=G.zonesVisited.length>0?(0,P.jsx)(B,{label:U("v2.tracks.zones","Zones"),value:G.zonesVisited.join(", "),colors:W}):null,T[132]=W,T[133]=U,T[134]=G.zonesVisited,T[135]=ht):ht=T[135],T[136]!==W||T[137]!==U||T[138]!==G.audioLabels?(bt=G.audioLabels.length>0?(0,P.jsx)(B,{label:U("v2.tracks.audio","Audio"),value:G.audioLabels.join(", "),colors:W}):null,T[136]=W,T[137]=U,T[138]=G.audioLabels,T[139]=bt):bt=T[139],T[140]!==ht||T[141]!==bt?(yt=(0,P.jsxs)(n.default,{style:D.meta,children:[ht,bt]}),T[140]=ht,T[141]=bt,T[142]=yt):yt=T[142],T[143]!==it||T[144]!==ft||T[145]!==mt||T[146]!==gt||T[147]!==yt?(St=(0,P.jsxs)(c.default,{contentContainerStyle:D.scroll,showsVerticalScrollIndicator:!1,children:[it,ft,mt,gt,yt]}),T[143]=it,T[144]=ft,T[145]=mt,T[146]=gt,T[147]=yt,T[148]=St):St=T[148];const xt=te?he:null;let pt,It;T[149]===Symbol.for("react.memo_cache_sentinel")?(pt=()=>re(!1),T[149]=pt):pt=T[149],T[150]!==xt?(It=(0,P.jsx)(k.FaceAssignSheet,{face:xt,onClose:pt}),T[150]=xt,T[151]=It):It=T[151];const jt=oe?G:null,kt=Re?.confidence;let vt,Ct,wt,At;return T[152]===Symbol.for("react.memo_cache_sentinel")?(vt=()=>ne(!1),T[152]=vt):vt=T[152],T[153]!==de.mediaKeys||T[154]!==jt||T[155]!==kt?(Ct=(0,P.jsx)(v.TrackMetadataSheet,{track:jt,confidence:kt,mediaKeys:de.mediaKeys,onClose:vt}),T[153]=de.mediaKeys,T[154]=jt,T[155]=kt,T[156]=Ct):Ct=T[156],T[157]!==W.primary||T[158]!==W.primaryForeground||T[159]!==Ge||T[160]!==M||T[161]!==U||T[162]!==G.firstSeen?(wt=M?(0,P.jsxs)(s.default,{onPress:()=>M(G.firstSeen),style:[D.seekBtn,{backgroundColor:W.primary,marginBottom:Ge}],children:[(0,P.jsx)(h.Crosshair,{size:18,color:W.primaryForeground}),(0,P.jsx)(l.default,{style:[D.seekText,{color:W.primaryForeground}],children:U("v2.theater.detailSeek","Go to this moment")})]}):null,T[157]=W.primary,T[158]=W.primaryForeground,T[159]=Ge,T[160]=M,T[161]=U,T[162]=G.firstSeen,T[163]=wt):wt=T[163],T[164]!==lt||T[165]!==St||T[166]!==It||T[167]!==Ct||T[168]!==wt?(At=(0,P.jsxs)(n.default,{style:D.root,children:[lt,St,It,Ct,wt]}),T[164]=lt,T[165]=St,T[166]=It,T[167]=Ct,T[168]=wt,T[169]=At):At=T[169],At}),B=(0,o.memo)(function(e){const o=(0,t.c)(13),{label:s,value:c,colors:u}=e;let f,g,h,b,y;return o[0]!==u.foregroundMuted?(f=[D.metaLabel,{color:u.foregroundMuted}],o[0]=u.foregroundMuted,o[1]=f):f=o[1],o[2]!==s||o[3]!==f?(g=(0,P.jsx)(l.default,{style:f,children:s}),o[2]=s,o[3]=f,o[4]=g):g=o[4],o[5]!==u.foreground?(h=[D.metaValue,{color:u.foreground}],o[5]=u.foreground,o[6]=h):h=o[6],o[7]!==h||o[8]!==c?(b=(0,P.jsx)(l.default,{style:h,children:c}),o[7]=h,o[8]=c,o[9]=b):b=o[9],o[10]!==g||o[11]!==b?(y=(0,P.jsxs)(n.default,{style:D.metaRow,children:[g,b]}),o[10]=g,o[11]=b,o[12]=y):y=o[12],y}),D=u.default.create({root:{flex:1,paddingHorizontal:S.SPACING.md},header:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',gap:S.SPACING.sm,paddingVertical:S.SPACING.sm},headerText:{flex:1},titleRow:{flexDirection:'row',alignItems:'center',gap:S.SPACING.sm},classDot:{width:8,height:8,borderRadius:4},title:{fontSize:16,fontWeight:'700',flexShrink:1},importance:{flexDirection:'row',alignItems:'center',gap:2,paddingHorizontal:5,paddingVertical:1,borderRadius:8},importanceText:{fontSize:10,fontWeight:'700',fontVariant:['tabular-nums']},subtitle:{fontSize:12,marginTop:2},iconBtn:{width:36,height:36,borderRadius:S.RADIUS.md,alignItems:'center',justifyContent:'center'},scroll:{paddingBottom:S.SPACING.md},sectionLabel:{fontSize:11,fontWeight:'700',textTransform:'uppercase',letterSpacing:.4,marginTop:S.SPACING.sm,marginBottom:S.SPACING.xs},hero:{width:'100%',aspectRatio:R,borderRadius:S.RADIUS.md,overflow:'hidden'},frameHeader:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'},checkboxRow:{flexDirection:'row',alignItems:'center',gap:S.SPACING.sm,paddingVertical:S.SPACING.xs},checkbox:{width:18,height:18,borderRadius:4,borderWidth:2,alignItems:'center',justifyContent:'center'},checkboxLabel:{fontSize:13,fontWeight:'600'},frame:{width:'100%',borderRadius:S.RADIUS.md,overflow:'hidden'},center:{alignItems:'center',justifyContent:'center'},counter:{fontSize:11,fontVariant:['tabular-nums'],textAlign:'center',marginTop:S.SPACING.xs},strip:{gap:S.SPACING.sm,paddingVertical:S.SPACING.sm,paddingRight:S.SPACING.md},tileWrap:{width:64,alignItems:'center',gap:2},tile:{width:64,height:64,borderRadius:S.RADIUS.sm,overflow:'hidden'},tileLabel:{fontSize:10,maxWidth:72,textAlign:'center'},personCard:{flexDirection:'row',alignItems:'center',gap:S.SPACING.md,padding:S.SPACING.sm,borderRadius:S.RADIUS.md},personFace:{width:44,height:44,borderRadius:S.RADIUS.md},personFaceEmpty:{alignItems:'center',justifyContent:'center'},personName:{flex:1,fontSize:14,fontWeight:'600'},assignBtn:{flexDirection:'row',alignItems:'center',gap:4,paddingHorizontal:S.SPACING.md,paddingVertical:S.SPACING.sm,borderRadius:S.RADIUS.md},assignBtnText:{fontSize:12,fontWeight:'700'},meta:{marginTop:S.SPACING.md,gap:S.SPACING.xs},metaRow:{flexDirection:'row',gap:S.SPACING.sm},metaLabel:{fontSize:12,width:92},metaValue:{fontSize:12,flex:1,fontWeight:'500'},seekBtn:{flexDirection:'row',alignItems:'center',justifyContent:'center',gap:S.SPACING.xs,paddingVertical:S.SPACING.sm+2,borderRadius:S.RADIUS.md},seekText:{fontSize:15,fontWeight:'700'}});function E(e){return!e}},3238,[15,17,20,112,252,147,33,3053,466,813,786,2587,2589,3231,3239,3241,3373,3374,3376,3380,3382,3375,3167,3381,10]);
15644
- __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,"BoundingBoxOverlay",{enumerable:!0,get:function(){return c}});var t=_r(_d[0]),n=_r(_d[1]),r=e(_r(_d[2])),o=e(_r(_d[3])),l=e(_r(_d[4])),d=_r(_d[5]),f=_r(_d[6]),u=_r(_d[7]),s=_r(_d[8]);const c=(0,n.memo)(function(e){const n=(0,t.c)(13),{detections:f,width:c,height:p}=e;let y,x,_,S,W,j;if(n[0]!==f||n[1]!==p||n[2]!==c){W=Symbol.for("react.early_return_sentinel");e:{const e=f.find(b);if(!e?.frameWidth||!e?.frameHeight||c<=0||p<=0){W=null;break e}const t=(0,u.containRect)(e.frameWidth,e.frameHeight,c,p);y=r.default,x="none",_=l.default.absoluteFill,S=f.map(e=>{if(!e.bbox||!e.frameWidth||!e.frameHeight)return null;const n=(0,u.bboxToScreen)(e.bbox,e.frameWidth,e.frameHeight,t);if(n.width<=0||n.height<=0)return null;const l=(0,d.colorForEventType)(e.className),f="number"==typeof e.confidence?` ${Math.round(100*e.confidence)}%`:"",c=`${e.label??e.className}${f}`;return(0,s.jsx)(r.default,{style:[h.box,{left:n.left,top:n.top,width:n.width,height:n.height,borderColor:l}],children:(0,s.jsx)(r.default,{style:[h.tag,{backgroundColor:l}],children:(0,s.jsx)(o.default,{style:h.tagText,numberOfLines:1,adjustsFontSizeToFit:!0,minimumFontScale:.7,children:c})})},e.id)})}n[0]=f,n[1]=p,n[2]=c,n[3]=y,n[4]=x,n[5]=_,n[6]=S,n[7]=W}else y=n[3],x=n[4],_=n[5],S=n[6],W=n[7];return W!==Symbol.for("react.early_return_sentinel")?W:(n[8]!==y||n[9]!==x||n[10]!==_||n[11]!==S?(j=(0,s.jsx)(y,{pointerEvents:x,style:_,children:S}),n[8]=y,n[9]=x,n[10]=_,n[11]=S,n[12]=j):j=n[12],j)}),h=l.default.create({box:{position:'absolute',borderWidth:2,borderRadius:f.RADIUS.sm},tag:{position:'absolute',top:-16,left:-2,maxWidth:160,paddingHorizontal:5,paddingVertical:1,borderRadius:f.RADIUS.sm},tagText:{color:'#fff',fontSize:10,fontWeight:'700'}});function b(e){return e.bbox&&"number"==typeof e.frameWidth&&"number"==typeof e.frameHeight}},3239,[15,17,20,112,33,3231,2589,3240,10]);
15645
- __d(function(g,r,i,_a,m,e,_d){"use strict";function t(t){return t.frameId??String(t.timestamp)}function n(n){const o=new Map;for(const s of n){const n=t(s),a=o.get(n);a?a.push(s):o.set(n,[s])}return[...o.keys()].sort((t,n)=>o.get(n)[0].timestamp-o.get(t)[0].timestamp).map(t=>{const n=o.get(t)??[],s=n.find(t=>Boolean(t.mediaUrl)),a=s??n[0];return{key:t,frameId:n[0]?.frameId,timestamp:n[0]?.timestamp??0,imageDetectionId:a?.id,imageMediaUrl:s?.mediaUrl,detections:n}})}function o(t){return'object'==typeof t&&null!==t&&!Array.isArray(t)}function s(t){if(!o(t))return;const{x:n,y:s,w:a,h:f}=t;return'number'==typeof n&&'number'==typeof s&&'number'==typeof a&&'number'==typeof f?{x:n,y:s,w:a,h:f}:void 0}Object.defineProperty(e,'__esModule',{value:!0}),e.frameKey=t,e.groupEventsByFrame=n,e.groupByTrack=function(n){const o=new Map;for(const t of n){if(void 0===t.trackId)continue;const n=o.get(t.trackId);n?n.push(t):o.set(t.trackId,[t])}const s=[];for(const[n,a]of o){let o=a[0];for(const t of a){const n=t.confidence??0,s=o.confidence??0;(n>s||n===s&&Boolean(t.mediaUrl)&&!o.mediaUrl)&&(o=t)}const f=a.find(t=>void 0!==t.label)?.label,c=new Set(a.map(t));let d=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY;for(const t of a)t.timestamp<d&&(d=t.timestamp),t.timestamp>u&&(u=t.timestamp);s.push(Object.assign({trackId:n,className:o.className},void 0!==f?{label:f}:{},{representative:o,frameCount:c.size,startMs:d,endMs:u}))}return s.sort((t,n)=>n.endMs-t.endMs)},e.scenesForTrack=function(o,s){const a=new Set(o.filter(t=>t.trackId===s).map(t));return n(o).filter(t=>a.has(t.key))},e.toDetailDetection=function(t){if(!o(t))return null;if('string'!=typeof t.id||0===t.id.length)return null;if('number'!=typeof t.timestamp)return null;if('string'!=typeof t.className||0===t.className.length)return null;const n=Array.isArray(t.zones)?t.zones.filter(t=>'string'==typeof t):[];return{id:t.id,timestamp:t.timestamp,className:t.className,label:'string'==typeof t.label?t.label:void 0,confidence:'number'==typeof t.confidence?t.confidence:void 0,zones:n,state:'string'==typeof t.state?t.state:void 0,trackId:'string'==typeof t.trackId?t.trackId:void 0,frameId:'string'==typeof t.frameId?t.frameId:void 0,mediaUrl:'string'==typeof t.mediaUrl?t.mediaUrl:void 0,bbox:s(t.bbox),frameWidth:'number'==typeof t.frameWidth?t.frameWidth:void 0,frameHeight:'number'==typeof t.frameHeight?t.frameHeight:void 0}},e.containRect=function(t,n,o,s){if(t<=0||n<=0||o<=0||s<=0)return{left:0,top:0,width:Math.max(0,o),height:Math.max(0,s)};const a=Math.min(o/t,s/n),f=t*a,c=n*a;return{left:(o-f)/2,top:(s-c)/2,width:f,height:c}},e.bboxToScreen=function(t,n,o,s){if(n<=0||o<=0)return{left:s.left,top:s.top,width:0,height:0};const a=s.width/n,f=s.height/o;return{left:s.left+t.x*a,top:s.top+t.y*f,width:t.w*a,height:t.h*f}},e.summarizeCluster=function(t){const n=[];let o=0,s=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;for(const f of t)for(const t of f.detections)o+=1,n.includes(t.className)||n.push(t.className),t.timestamp<s&&(s=t.timestamp),t.timestamp>a&&(a=t.timestamp);return 0===o?{classes:[],detectionCount:0,startMs:0,endMs:0}:{classes:n,detectionCount:o,startMs:s,endMs:a}}},3240,[]);
15646
- __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,"ZoomableImage",{enumerable:!0,get:function(){return f}});var t=r(d[0]);r(d[1]);var l=e(r(d[2])),s=e(r(d[3])),u=r(d[4]),n=r(d[5]),v=e(n),c=r(d[6]),o=r(d[7]);const _={code:"function ZoomableImageTsx1(){const{savedScale,scale,savedTx,tx,savedTy,ty}=this.__closure;savedScale.value=scale.value;savedTx.value=tx.value;savedTy.value=ty.value;}"},h={code:"function ZoomableImageTsx2(e_0){const{w,h,pinchStart,clampZoom,scale,MIN_ZOOM,tx,ty,aspect,savedTx,savedTy}=this.__closure;const vw=w.value;const vh=h.value;if(vw<=0||vh<=0)return;const s0=pinchStart.value;const s1=clampZoom(s0*e_0.scale);scale.value=s1;if(s1<=MIN_ZOOM){tx.value=0;ty.value=0;return;}const dx=e_0.focalX-vw/2;const dy=e_0.focalY-vh/2;const k=s1/s0;const cw=aspect.value>0?Math.min(vw,vh*aspect.value):vw;const ch=aspect.value>0?Math.min(vh,vw/aspect.value):vh;const limX=Math.max(0,(s1*cw-vw)/2);const limY=Math.max(0,(s1*ch-vh)/2);tx.value=Math.max(-limX,Math.min(limX,dx-k*(dx-savedTx.value)));ty.value=Math.max(-limY,Math.min(limY,dy-k*(dy-savedTy.value)));}"},x={code:"function ZoomableImageTsx3(){const{pinchStart,savedScale}=this.__closure;pinchStart.value=savedScale.value;}"},M={code:"function ZoomableImageTsx4(){const{savedTx,tx,savedTy,ty}=this.__closure;savedTx.value=tx.value;savedTy.value=ty.value;}"},y={code:"function ZoomableImageTsx5(e_1){const{scale,MIN_ZOOM,w,h,aspect,tx,savedTx,ty,savedTy}=this.__closure;if(scale.value<=MIN_ZOOM)return;const s=scale.value;const vw_0=w.value;const vh_0=h.value;const cw_0=aspect.value>0?Math.min(vw_0,vh_0*aspect.value):vw_0;const ch_0=aspect.value>0?Math.min(vh_0,vw_0/aspect.value):vh_0;const limX_0=Math.max(0,(s*cw_0-vw_0)/2);const limY_0=Math.max(0,(s*ch_0-vh_0)/2);tx.value=Math.max(-limX_0,Math.min(limX_0,savedTx.value+e_1.translationX));ty.value=Math.max(-limY_0,Math.min(limY_0,savedTy.value+e_1.translationY));}"},T={code:"function ZoomableImageTsx6(){const{scale,MIN_ZOOM,withTiming,tx,ty,savedScale,savedTx,savedTy}=this.__closure;if(scale.value>MIN_ZOOM){scale.value=withTiming(1);tx.value=withTiming(0);ty.value=withTiming(0);savedScale.value=1;savedTx.value=0;savedTy.value=0;}else{scale.value=withTiming(2);savedScale.value=2;}}"},w={code:"function ZoomableImageTsx7(){const{tx,ty,scale}=this.__closure;return{transform:[{translateX:tx.value},{translateY:ty.value},{scale:scale.value}]};}"},f=(0,t.memo)(function({width:e,height:l,resetKey:f,contentAspect:O,children:S}){const Z=(0,n.useSharedValue)(1),k=(0,n.useSharedValue)(1),I=(0,n.useSharedValue)(0),N=(0,n.useSharedValue)(0),b=(0,n.useSharedValue)(0),Y=(0,n.useSharedValue)(0),X=(0,n.useSharedValue)(1),D=(0,n.useSharedValue)(0),E=(0,n.useSharedValue)(0),V=(0,n.useSharedValue)(0),H=(0,t.useRef)(null);(0,t.useEffect)(()=>{V.value='number'==typeof O&&O>0?O:0},[O,V]),(0,t.useEffect)(()=>{Z.value=1,k.value=1,I.value=0,N.value=0,b.value=0,Y.value=0},[f,Z,k,I,N,b,Y]);const P=(0,t.useCallback)(e=>{D.value=e.nativeEvent.layout.width,E.value=e.nativeEvent.layout.height},[D,E]),j=(0,t.useMemo)(()=>u.Gesture.Pinch().onStart((function({_worklet_13594186911682_init_data:e,pinchStart:t,savedScale:l}){const s=function(){t.value=l.value};return s.__closure={pinchStart:t,savedScale:l},s.__workletHash=0xc5d24ae8fc2,s.__initData=e,s})({_worklet_13594186911682_init_data:x,pinchStart:X,savedScale:k})).onUpdate((function({_worklet_4736593387419_init_data:e,w:t,h:l,pinchStart:s,clampZoom:u,scale:n,MIN_ZOOM:v,tx:c,ty:o,aspect:_,savedTx:h,savedTy:x}){const M=function(e){const M=t.value,y=l.value;if(M<=0||y<=0)return;const T=s.value,w=u(T*e.scale);if(n.value=w,w<=v)return c.value=0,void(o.value=0);const f=e.focalX-M/2,p=e.focalY-y/2,O=w/T,S=_.value>0?Math.min(M,y*_.value):M,Z=_.value>0?Math.min(y,M/_.value):y,k=Math.max(0,(w*S-M)/2),I=Math.max(0,(w*Z-y)/2);c.value=Math.max(-k,Math.min(k,f-O*(f-h.value))),o.value=Math.max(-I,Math.min(I,p-O*(p-x.value)))};return M.__closure={w:t,h:l,pinchStart:s,clampZoom:u,scale:n,MIN_ZOOM:v,tx:c,ty:o,aspect:_,savedTx:h,savedTy:x},M.__workletHash=4736593387419,M.__initData=e,M})({_worklet_4736593387419_init_data:h,w:D,h:E,pinchStart:X,clampZoom:c.clampZoom,scale:Z,MIN_ZOOM:c.MIN_ZOOM,tx:I,ty:N,aspect:V,savedTx:b,savedTy:Y})).onEnd((function({_worklet_5046326524640_init_data:e,savedScale:t,scale:l,savedTx:s,tx:u,savedTy:n,ty:v}){const c=function(){t.value=l.value,s.value=u.value,n.value=v.value};return c.__closure={savedScale:t,scale:l,savedTx:s,tx:u,savedTy:n,ty:v},c.__workletHash=5046326524640,c.__initData=e,c})({_worklet_5046326524640_init_data:_,savedScale:k,scale:Z,savedTx:b,tx:I,savedTy:Y,ty:N})),[X,k,D,E,V,Z,I,N,b,Y]),G=(0,t.useMemo)(()=>u.Gesture.Pan().maxPointers(1).minDistance(2).onUpdate((function({_worklet_6761678895641_init_data:e,scale:t,MIN_ZOOM:l,w:s,h:u,aspect:n,tx:v,savedTx:c,ty:o,savedTy:_}){const h=function(e){if(t.value<=l)return;const h=t.value,x=s.value,M=u.value,y=n.value>0?Math.min(x,M*n.value):x,T=n.value>0?Math.min(M,x/n.value):M,w=Math.max(0,(h*y-x)/2),f=Math.max(0,(h*T-M)/2);v.value=Math.max(-w,Math.min(w,c.value+e.translationX)),o.value=Math.max(-f,Math.min(f,_.value+e.translationY))};return h.__closure={scale:t,MIN_ZOOM:l,w:s,h:u,aspect:n,tx:v,savedTx:c,ty:o,savedTy:_},h.__workletHash=6761678895641,h.__initData=e,h})({_worklet_6761678895641_init_data:y,scale:Z,MIN_ZOOM:c.MIN_ZOOM,w:D,h:E,aspect:V,tx:I,savedTx:b,ty:N,savedTy:Y})).onEnd((function({_worklet_10215814461155_init_data:e,savedTx:t,tx:l,savedTy:s,ty:u}){const n=function(){t.value=l.value,s.value=u.value};return n.__closure={savedTx:t,tx:l,savedTy:s,ty:u},n.__workletHash=0x94a8dfdf6e3,n.__initData=e,n})({_worklet_10215814461155_init_data:M,savedTx:b,tx:I,savedTy:Y,ty:N})),[Z,D,E,V,I,N,b,Y]),C=(0,t.useMemo)(()=>u.Gesture.Tap().numberOfTaps(2).maxDuration(300).onEnd((function({_worklet_358022219460_init_data:e,scale:t,MIN_ZOOM:l,withTiming:s,tx:u,ty:n,savedScale:v,savedTx:c,savedTy:o}){const _=function(){t.value>l?(t.value=s(1),u.value=s(0),n.value=s(0),v.value=1,c.value=0,o.value=0):(t.value=s(2),v.value=2)};return _.__closure={scale:t,MIN_ZOOM:l,withTiming:s,tx:u,ty:n,savedScale:v,savedTx:c,savedTy:o},_.__workletHash=358022219460,_.__initData=e,_})({_worklet_358022219460_init_data:T,scale:Z,MIN_ZOOM:c.MIN_ZOOM,withTiming:n.withTiming,tx:I,ty:N,savedScale:k,savedTx:b,savedTy:Y})),[Z,I,N,k,b,Y]),L=(0,t.useMemo)(()=>u.Gesture.Simultaneous(j,G,C),[j,G,C]);(0,t.useEffect)(()=>{const e=H.current;if(null===e||'function'!=typeof e.addEventListener)return;const t=e=>{e.preventDefault();const t=(0,c.zoomBy)(Z.value,e.deltaY<0?1.12:.8928571428571428);Z.value=t,k.value=t;const l=(0,c.containBox)(D.value,E.value,V.value);I.value=(0,c.clampPanContent)(I.value,D.value,l.width,t),N.value=(0,c.clampPanContent)(N.value,E.value,l.height,t),b.value=I.value,Y.value=N.value};return e.addEventListener('wheel',t,{passive:!1}),()=>e.removeEventListener('wheel',t)},[Z,k,I,N,b,Y,D,E,V]);const A=(0,n.useAnimatedStyle)((function({_worklet_12060236268779_init_data:e,tx:t,ty:l,scale:s}){const u=()=>({transform:[{translateX:t.value},{translateY:l.value},{scale:s.value}]});return u.__closure={tx:t,ty:l,scale:s},u.__workletHash=0xaf7fe1944eb,u.__initData=e,u})({_worklet_12060236268779_init_data:w,tx:I,ty:N,scale:Z}));return(0,o.jsx)(s.default,{ref:H,onLayout:P,style:[p.container,{width:e,height:l}],children:(0,o.jsx)(u.GestureDetector,{gesture:L,children:(0,o.jsx)(v.default.View,{style:[{width:e,height:l},A],children:S})})})}),p=l.default.create({container:{overflow:'hidden',backgroundColor:'#000'}})},3241,[17,136,33,20,3242,2714,3372,10]);
15647
- __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,"Directions",{enumerable:!0,get:function(){return n.Directions}}),Object.defineProperty(_e,"State",{enumerable:!0,get:function(){return u.State}}),Object.defineProperty(_e,"PointerType",{enumerable:!0,get:function(){return o.PointerType}}),Object.defineProperty(_e,"gestureHandlerRootHOC",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(_e,"GestureHandlerRootView",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(_e,"MouseButton",{enumerable:!0,get:function(){return l.MouseButton}}),Object.defineProperty(_e,"TapGestureHandler",{enumerable:!0,get:function(){return f.TapGestureHandler}}),Object.defineProperty(_e,"ForceTouchGestureHandler",{enumerable:!0,get:function(){return p.ForceTouchGestureHandler}}),Object.defineProperty(_e,"LongPressGestureHandler",{enumerable:!0,get:function(){return P.LongPressGestureHandler}}),Object.defineProperty(_e,"PanGestureHandler",{enumerable:!0,get:function(){return y.PanGestureHandler}}),Object.defineProperty(_e,"PinchGestureHandler",{enumerable:!0,get:function(){return s.PinchGestureHandler}}),Object.defineProperty(_e,"RotationGestureHandler",{enumerable:!0,get:function(){return O.RotationGestureHandler}}),Object.defineProperty(_e,"FlingGestureHandler",{enumerable:!0,get:function(){return j.FlingGestureHandler}}),Object.defineProperty(_e,"createNativeWrapper",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(_e,"GestureDetector",{enumerable:!0,get:function(){return h.GestureDetector}}),Object.defineProperty(_e,"Gesture",{enumerable:!0,get:function(){return G.GestureObjects}}),Object.defineProperty(_e,"NativeViewGestureHandler",{enumerable:!0,get:function(){return T.NativeViewGestureHandler}}),Object.defineProperty(_e,"RawButton",{enumerable:!0,get:function(){return B.RawButton}}),Object.defineProperty(_e,"BaseButton",{enumerable:!0,get:function(){return B.BaseButton}}),Object.defineProperty(_e,"RectButton",{enumerable:!0,get:function(){return B.RectButton}}),Object.defineProperty(_e,"BorderlessButton",{enumerable:!0,get:function(){return B.BorderlessButton}}),Object.defineProperty(_e,"PureNativeButton",{enumerable:!0,get:function(){return B.PureNativeButton}}),Object.defineProperty(_e,"TouchableHighlight",{enumerable:!0,get:function(){return w.TouchableHighlight}}),Object.defineProperty(_e,"TouchableNativeFeedback",{enumerable:!0,get:function(){return w.TouchableNativeFeedback}}),Object.defineProperty(_e,"TouchableOpacity",{enumerable:!0,get:function(){return w.TouchableOpacity}}),Object.defineProperty(_e,"TouchableWithoutFeedback",{enumerable:!0,get:function(){return w.TouchableWithoutFeedback}}),Object.defineProperty(_e,"ScrollView",{enumerable:!0,get:function(){return v.ScrollView}}),Object.defineProperty(_e,"Switch",{enumerable:!0,get:function(){return v.Switch}}),Object.defineProperty(_e,"TextInput",{enumerable:!0,get:function(){return v.TextInput}}),Object.defineProperty(_e,"DrawerLayoutAndroid",{enumerable:!0,get:function(){return v.DrawerLayoutAndroid}}),Object.defineProperty(_e,"FlatList",{enumerable:!0,get:function(){return v.FlatList}}),Object.defineProperty(_e,"RefreshControl",{enumerable:!0,get:function(){return v.RefreshControl}}),Object.defineProperty(_e,"Text",{enumerable:!0,get:function(){return F.Text}}),Object.defineProperty(_e,"HoverEffect",{enumerable:!0,get:function(){return R.HoverEffect}}),Object.defineProperty(_e,"Swipeable",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(_e,"Pressable",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(_e,"DrawerLayout",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(_e,"enableExperimentalWebImplementation",{enumerable:!0,get:function(){return S.enableExperimentalWebImplementation}}),Object.defineProperty(_e,"enableLegacyWebImplementation",{enumerable:!0,get:function(){return S.enableLegacyWebImplementation}});var t=r(d[0]),n=r(d[1]),u=r(d[2]),o=r(d[3]),c=e(r(d[4])),b=e(r(d[5])),l=r(d[6]),f=r(d[7]),p=r(d[8]),P=r(d[9]),y=r(d[10]),s=r(d[11]),O=r(d[12]),j=r(d[13]),H=e(r(d[14])),h=r(d[15]),G=r(d[16]),T=r(d[17]),B=r(d[18]),w=r(d[19]),v=r(d[20]),F=r(d[21]),R=r(d[22]),L=e(r(d[23])),D=e(r(d[24])),N=e(r(d[25])),S=r(d[26]);(0,t.initialize)()},3242,[3243,3273,3245,3259,3303,3307,3265,3309,3317,3319,3320,3321,3322,3323,3324,3326,3342,3325,3353,3355,3361,3362,3332,3363,3364,3371,3252]);
15648
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.initialize=function(){(0,t.startListening)()},_e.maybeInitializeFabric=function(){(0,u.isFabric)()&&!s&&(l.default.install(),s=!0)};var e,t=r(d[0]),n=r(d[1]),l=(e=n)&&e.__esModule?e:{default:e},u=r(d[2]);let s=!1},3243,[3244,3251,3248]);
15649
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.onGestureHandlerEvent=C,_e.startListening=function(){f(),u=t.default.addListener('onGestureHandlerEvent',C),T=t.default.addListener('onGestureHandlerStateChange',C)},_e.stopListening=f;var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e},l=r(d[1]),s=r(d[2]),o=r(d[3]),h=r(d[4]);let u=null,T=null;const E=new Map,c=[];function S(e){return null!=e.oldState}function v(e){return null!=e.eventType}function C(e){const n=(0,o.findHandler)(e.handlerTag);if(n)if(S(e))e.oldState===l.State.UNDETERMINED&&e.state===l.State.BEGAN?n.handlers.onBegin?.(e):e.oldState!==l.State.BEGAN&&e.oldState!==l.State.UNDETERMINED||e.state!==l.State.ACTIVE?e.oldState!==e.state&&e.state===l.State.END?(e.oldState===l.State.ACTIVE&&n.handlers.onEnd?.(e,!0),n.handlers.onFinalize?.(e,!0),c[n.handlers.handlerTag]=void 0):e.state!==l.State.FAILED&&e.state!==l.State.CANCELLED||e.oldState===e.state||(e.oldState===l.State.ACTIVE&&n.handlers.onEnd?.(e,!1),n.handlers.onFinalize?.(e,!1),E.delete(e.handlerTag),c[n.handlers.handlerTag]=void 0):(n.handlers.onStart?.(e),c[n.handlers.handlerTag]=e);else if(v(e)){E.has(e.handlerTag)||E.set(e.handlerTag,h.GestureStateManager.create(e.handlerTag));const t=E.get(e.handlerTag);switch(e.eventType){case s.TouchEventType.TOUCHES_DOWN:n.handlers?.onTouchesDown?.(e,t);break;case s.TouchEventType.TOUCHES_MOVE:n.handlers?.onTouchesMove?.(e,t);break;case s.TouchEventType.TOUCHES_UP:n.handlers?.onTouchesUp?.(e,t);break;case s.TouchEventType.TOUCHES_CANCELLED:n.handlers?.onTouchesCancelled?.(e,t)}}else n.handlers.onUpdate?.(e),n.handlers.onChange&&n.handlers.changeEventCalculator&&(n.handlers.onChange?.(n.handlers.changeEventCalculator?.(e,c[n.handlers.handlerTag])),c[n.handlers.handlerTag]=e);else{const n=(0,o.findOldGestureHandler)(e.handlerTag);if(n){const t={nativeEvent:e};return void(S(e)?n.onGestureStateChange(t):n.onGestureEvent(t))}}}function f(){u&&(u.remove(),u=null),T&&(T.remove(),T=null)}},3244,[274,3245,3246,3247,3249]);
15650
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"State",{enumerable:!0,get:function(){return t}});const t={UNDETERMINED:0,FAILED:1,BEGAN:2,CANCELLED:3,ACTIVE:4,END:5}},3245,[]);
15651
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"TouchEventType",{enumerable:!0,get:function(){return t}});const t={UNDETERMINED:0,TOUCHES_DOWN:1,TOUCHES_MOVE:2,TOUCHES_UP:3,TOUCHES_CANCELLED:4}},3246,[]);
15652
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"handlerIDToTag",{enumerable:!0,get:function(){return t}}),e.registerHandler=function(t,l,o){u.set(t,l),(0,n.isTestEnv)()&&o&&s.set(o,t)},e.registerOldGestureHandler=function(n,t){l.set(n,t)},e.unregisterOldGestureHandler=function(n){l.delete(n)},e.unregisterHandler=function(t,l){u.delete(t),(0,n.isTestEnv)()&&l&&s.delete(l)},e.findHandler=o,e.findOldGestureHandler=function(n){return l.get(n)},e.findHandlerByTestID=function(n){const t=s.get(n);if(void 0!==t)return o(t)??null;return null};var n=r(d[0]);const t={},u=new Map,l=new Map,s=new Map;function o(n){return u.get(n)}},3247,[3248]);
15653
- __d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.toArray=function(e){if(!Array.isArray(e))return[e];return e},_e.withPrevAndCurrent=function(e,t){const n=[null],u=[...e],o=[];return u.forEach((e,u)=>{const i=n[u],c=t(i,e);n.push(c),o.push(c)}),o},_e.hasProperty=u,_e.isTestEnv=function(){return u(g,'process')&&!1},_e.tagMessage=function(e){return`[react-native-gesture-handler] ${e}`},_e.isFabric=function(){return!!g?.nativeFabricUIManager},_e.isReact19=function(){return n.default.version.startsWith('19.')},_e.isRemoteDebuggingEnabled=function(){const e=g;return!(e.nativeCallSyncHook&&!e.__REMOTEDEV__||e.RN$Bridgeless)},_e.deepEqual=function e(t,n){if(t===n)return!0;if('object'!=typeof t||'object'!=typeof n||null===t||null===n)return!1;const u=Object.keys(t),o=Object.keys(n);if(u.length!==o.length)return!1;for(const i of u)if(!o.includes(i)||!e(t[i],n[i]))return!1;return!0},Object.defineProperty(_e,"INT32_MAX",{enumerable:!0,get:function(){return o}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const o=2147483647},3248,[17]);
15654
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"GestureStateManager",{enumerable:!0,get:function(){return l}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};const l={create:e=>({handlerTag:e,begin:()=>{n.default.getHandler(e).begin()},activate:()=>{n.default.getHandler(e).activate(!0)},fail:()=>{n.default.getHandler(e).fail()},end:()=>{n.default.getHandler(e).end()}})}},3249,[3250]);
15655
- __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 t}});class t{static gestures={};static getHandler(t){if(t in this.gestures)return this.gestures[t];throw new Error(`No handler for tag ${t}`)}static createGestureHandler(t,s){if(t in this.gestures)throw new Error(`Handler with tag ${t} already exists. Please ensure that no Gesture instance is used across multiple GestureDetectors.`);this.gestures[t]=s,this.gestures[t].handlerTag=t}static dropGestureHandler(t){t in this.gestures&&(this.gestures[t].onDestroy(),delete this.gestures[t])}static get nodes(){return Object.assign({},this.gestures)}}},3250,[]);
15656
- __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 f}});var t=e(r(_d[0])),n=r(_d[1]),d=r(_d[2]),l=e(r(_d[3])),o=e(r(_d[4])),s=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var d=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,d.get?d:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[5])),u=r(_d[6]);let c=!1;var f={handleSetJSResponder(e,t){console.warn('handleSetJSResponder: ',e,t)},handleClearJSResponder(){console.warn('handleClearJSResponder: ')},createGestureHandler(e,t,c){if((0,n.isNewWebImplementationEnabled)()){if(!(e in d.Gestures))throw new Error(`react-native-gesture-handler: ${e} is not supported on web.`);const n=d.Gestures[e];o.default.createGestureHandler(t,new n(new u.GestureHandlerWebDelegate)),l.default.instance.configureInteractions(o.default.getHandler(t),c)}else{if(!(e in d.HammerGestures))throw new Error(`react-native-gesture-handler: ${e} is not supported on web.`);const n=d.HammerGestures[e];s.createGestureHandler(t,new n)}this.updateGestureHandler(t,c)},attachGestureHandler(e,d,l,u){if(!(d instanceof Element||d instanceof t.default.Component)){c=!0;const t=((0,n.isNewWebImplementationEnabled)()?o.default.getHandler(e):s.getHandler(e)).constructor.name;throw new Error(`${t} with tag ${e} received child that is not valid HTML element.`)}(0,n.isNewWebImplementationEnabled)()?o.default.getHandler(e).init(d,u):s.getHandler(e).setView(d,u)},updateGestureHandler(e,t){(0,n.isNewWebImplementationEnabled)()?(o.default.getHandler(e).updateGestureConfig(t),l.default.instance.configureInteractions(o.default.getHandler(e),t)):s.getHandler(e).updateGestureConfig(t)},getGestureHandlerNode:e=>(0,n.isNewWebImplementationEnabled)()?o.default.getHandler(e):s.getHandler(e),dropGestureHandler(e){c||((0,n.isNewWebImplementationEnabled)()?o.default.dropGestureHandler(e):s.dropGestureHandler(e))},flushOperations(){}}},3251,[17,3252,3253,3264,3250,3284,3297]);
15657
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.enableExperimentalWebImplementation=function(t=!0){console.warn((0,n.tagMessage)('New web implementation is enabled by default. This function will be removed in Gesture Handler 3.'))},e.enableLegacyWebImplementation=function(o=!0){if(console.warn((0,n.tagMessage)('Legacy web implementation is deprecated. This function will be removed in Gesture Handler 3.')),t===!o)return;if(l)return void console.error('Some parts of this application have already started using the new gesture handler implementation. No changes will be applied. You can try enabling legacy implementation earlier.');t=!o},e.isNewWebImplementationEnabled=function(){return l=!0,t},r(d[0]);var n=r(d[1]);let t=!0,l=!1},3252,[136,3248]);
15658
- __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,"Gestures",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"HammerGestures",{enumerable:!0,get:function(){return M}});var t=e(r(d[0])),u=e(r(d[1])),n=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),f=e(r(d[5])),G=e(r(d[6])),H=e(r(d[7])),o=e(r(d[8])),c=e(r(d[9])),P=e(r(d[10])),_=e(r(d[11])),b=e(r(d[12])),p=e(r(d[13])),v=e(r(d[14])),j=e(r(d[15]));const y={NativeViewGestureHandler:G.default,PanGestureHandler:t.default,TapGestureHandler:u.default,LongPressGestureHandler:n.default,PinchGestureHandler:l.default,RotationGestureHandler:s.default,FlingGestureHandler:f.default,ManualGestureHandler:H.default,HoverGestureHandler:o.default},M={NativeViewGestureHandler:c.default,PanGestureHandler:P.default,TapGestureHandler:_.default,LongPressGestureHandler:b.default,PinchGestureHandler:p.default,RotationGestureHandler:v.default,FlingGestureHandler:j.default}},3253,[3254,3266,3267,3268,3270,3272,3276,3277,3278,3279,3288,3290,3291,3292,3294,3295]);
15659
- __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return E}});var s=e(r(d[0])),n=r(d[1]),o=r(d[2]),h=r(d[3]),f=e(r(d[4]));const c=o.DEFAULT_TOUCH_SLOP*o.DEFAULT_TOUCH_SLOP;class E extends f.default{customActivationProperties=['activeOffsetXStart','activeOffsetXEnd','failOffsetXStart','failOffsetXEnd','activeOffsetYStart','activeOffsetYEnd','failOffsetYStart','failOffsetYEnd','minVelocityX','minVelocityY','minVelocity'];velocityX=0;velocityY=0;minDistSq=c;activeOffsetXStart=-Number.MAX_SAFE_INTEGER;activeOffsetXEnd=Number.MIN_SAFE_INTEGER;failOffsetXStart=Number.MIN_SAFE_INTEGER;failOffsetXEnd=Number.MAX_SAFE_INTEGER;activeOffsetYStart=Number.MAX_SAFE_INTEGER;activeOffsetYEnd=Number.MIN_SAFE_INTEGER;failOffsetYStart=Number.MIN_SAFE_INTEGER;failOffsetYEnd=Number.MAX_SAFE_INTEGER;minVelocityX=Number.MAX_SAFE_INTEGER;minVelocityY=Number.MAX_SAFE_INTEGER;minVelocitySq=Number.MAX_SAFE_INTEGER;minPointers=1;maxPointers=10;startX=0;startY=0;offsetX=0;offsetY=0;lastX=0;lastY=0;activateAfterLongPress=0;activationTimeout=0;enableTrackpadTwoFingerGesture=!1;endWheelTimeout=0;wheelDevice=h.WheelDevice.UNDETERMINED;updateGestureConfig(e){let{enabled:n=!0}=e,o=(0,s.default)(e,t);this.resetConfig(),super.updateGestureConfig(Object.assign({enabled:n},o)),this.checkCustomActivationCriteria(this.customActivationProperties),void 0!==this.config.minDist?this.minDistSq=this.config.minDist*this.config.minDist:this.hasCustomActivationCriteria&&(this.minDistSq=Number.MAX_SAFE_INTEGER),void 0!==this.config.minPointers&&(this.minPointers=this.config.minPointers),void 0!==this.config.maxPointers&&(this.maxPointers=this.config.maxPointers),void 0!==this.config.minVelocity&&(this.minVelocityX=this.config.minVelocity,this.minVelocityY=this.config.minVelocity),void 0!==this.config.minVelocityX&&(this.minVelocityX=this.config.minVelocityX),void 0!==this.config.minVelocityY&&(this.minVelocityY=this.config.minVelocityY),void 0!==this.config.activateAfterLongPress&&(this.activateAfterLongPress=this.config.activateAfterLongPress),void 0!==this.config.activeOffsetXStart&&(this.activeOffsetXStart=this.config.activeOffsetXStart,void 0===this.config.activeOffsetXEnd&&(this.activeOffsetXEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.activeOffsetXEnd&&(this.activeOffsetXEnd=this.config.activeOffsetXEnd,void 0===this.config.activeOffsetXStart&&(this.activeOffsetXStart=Number.MIN_SAFE_INTEGER)),void 0!==this.config.failOffsetXStart&&(this.failOffsetXStart=this.config.failOffsetXStart,void 0===this.config.failOffsetXEnd&&(this.failOffsetXEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.failOffsetXEnd&&(this.failOffsetXEnd=this.config.failOffsetXEnd,void 0===this.config.failOffsetXStart&&(this.failOffsetXStart=Number.MIN_SAFE_INTEGER)),void 0!==this.config.activeOffsetYStart&&(this.activeOffsetYStart=this.config.activeOffsetYStart,void 0===this.config.activeOffsetYEnd&&(this.activeOffsetYEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.activeOffsetYEnd&&(this.activeOffsetYEnd=this.config.activeOffsetYEnd,void 0===this.config.activeOffsetYStart&&(this.activeOffsetYStart=Number.MIN_SAFE_INTEGER)),void 0!==this.config.failOffsetYStart&&(this.failOffsetYStart=this.config.failOffsetYStart,void 0===this.config.failOffsetYEnd&&(this.failOffsetYEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.failOffsetYEnd&&(this.failOffsetYEnd=this.config.failOffsetYEnd,void 0===this.config.failOffsetYStart&&(this.failOffsetYStart=Number.MIN_SAFE_INTEGER)),void 0!==this.config.enableTrackpadTwoFingerGesture&&(this.enableTrackpadTwoFingerGesture=this.config.enableTrackpadTwoFingerGesture)}resetConfig(){super.resetConfig(),this.activeOffsetXStart=-Number.MAX_SAFE_INTEGER,this.activeOffsetXEnd=Number.MIN_SAFE_INTEGER,this.failOffsetXStart=Number.MIN_SAFE_INTEGER,this.failOffsetXEnd=Number.MAX_SAFE_INTEGER,this.activeOffsetYStart=Number.MAX_SAFE_INTEGER,this.activeOffsetYEnd=Number.MIN_SAFE_INTEGER,this.failOffsetYStart=Number.MIN_SAFE_INTEGER,this.failOffsetYEnd=Number.MAX_SAFE_INTEGER,this.minVelocityX=Number.MAX_SAFE_INTEGER,this.minVelocityY=Number.MAX_SAFE_INTEGER,this.minVelocitySq=Number.MAX_SAFE_INTEGER,this.minDistSq=c,this.minPointers=1,this.maxPointers=10,this.activateAfterLongPress=0}transformNativeEvent(){const t=this.getTranslationX(),e=this.getTranslationY();return Object.assign({},super.transformNativeEvent(),{translationX:isNaN(t)?0:t,translationY:isNaN(e)?0:e,velocityX:this.velocityX,velocityY:this.velocityY,stylusData:this.stylusData})}getTranslationX(){return this.lastX-this.startX+this.offsetX}getTranslationY(){return this.lastY-this.startY+this.offsetY}clearActivationTimeout(){clearTimeout(this.activationTimeout)}updateLastCoords(){const{x:t,y:e}=this.tracker.getAbsoluteCoordsAverage();this.lastX=t,this.lastY=e}updateVelocity(t){const e=this.tracker.getVelocity(t);this.velocityX=e?.x??0,this.velocityY=e?.y??0}onPointerDown(t){this.isButtonInConfig(t.button)&&(this.tracker.addToTracker(t),this.stylusData=t.stylusData,super.onPointerDown(t),this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.tryBegin(t),this.checkBegan(),this.tryToSendTouchEvent(t))}onPointerAdd(t){this.tracker.addToTracker(t),super.onPointerAdd(t),this.tryBegin(t),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY,this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.tracker.trackedPointersCount>this.maxPointers?this.state===n.State.ACTIVE?this.cancel():this.fail():this.checkBegan()}onPointerUp(t){if(this.stylusData=t.stylusData,super.onPointerUp(t),this.state===n.State.ACTIVE){const t=this.tracker.getAbsoluteCoordsAverage();this.lastX=t.x,this.lastY=t.y}this.tracker.removeFromTracker(t.pointerId),0===this.tracker.trackedPointersCount&&this.clearActivationTimeout(),this.state===n.State.ACTIVE?this.end():(this.resetProgress(),this.fail())}onPointerRemove(t){super.onPointerRemove(t),this.tracker.removeFromTracker(t.pointerId),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY,this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.state===n.State.ACTIVE&&this.tracker.trackedPointersCount<this.minPointers||this.checkBegan()}onPointerMove(t){this.tracker.track(t),this.stylusData=t.stylusData,this.updateLastCoords(),this.updateVelocity(t.pointerId),this.checkBegan(),super.onPointerMove(t)}onPointerOutOfBounds(t){this.shouldCancelWhenOutside||(this.tracker.track(t),this.stylusData=t.stylusData,this.updateLastCoords(),this.updateVelocity(t.pointerId),this.checkBegan(),this.state===n.State.ACTIVE&&super.onPointerOutOfBounds(t))}scheduleWheelEnd(t){clearTimeout(this.endWheelTimeout),this.endWheelTimeout=setTimeout(()=>{this.state===n.State.ACTIVE&&(this.end(),this.tracker.removeFromTracker(t.pointerId),this.state=n.State.UNDETERMINED),this.wheelDevice=h.WheelDevice.UNDETERMINED},30)}onWheel(t){if(this.wheelDevice!==h.WheelDevice.MOUSE&&this.enableTrackpadTwoFingerGesture){if(this.state===n.State.UNDETERMINED){if(this.wheelDevice=t.wheelDeltaY%120!=0?h.WheelDevice.TOUCHPAD:h.WheelDevice.MOUSE,this.wheelDevice===h.WheelDevice.MOUSE)return void this.scheduleWheelEnd(t);this.tracker.addToTracker(t),this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.begin(),this.activate()}this.tracker.track(t),this.updateLastCoords(),this.updateVelocity(t.pointerId),this.tryToSendMoveEvent(!1,t),this.scheduleWheelEnd(t)}}shouldActivate(){const t=this.getTranslationX();if(this.activeOffsetXStart!==Number.MAX_SAFE_INTEGER&&t<this.activeOffsetXStart)return!0;if(this.activeOffsetXEnd!==Number.MIN_SAFE_INTEGER&&t>this.activeOffsetXEnd)return!0;const e=this.getTranslationY();if(this.activeOffsetYStart!==Number.MAX_SAFE_INTEGER&&e<this.activeOffsetYStart)return!0;if(this.activeOffsetYEnd!==Number.MIN_SAFE_INTEGER&&e>this.activeOffsetYEnd)return!0;const s=t*t+e*e;if(this.minDistSq!==Number.MAX_SAFE_INTEGER&&s>=this.minDistSq)return!0;const n=this.velocityX;if(this.minVelocityX!==Number.MAX_SAFE_INTEGER&&(this.minVelocityX<0&&n<=this.minVelocityX||this.minVelocityX>=0&&this.minVelocityX<=n))return!0;const o=this.velocityY;if(this.minVelocityY!==Number.MAX_SAFE_INTEGER&&(this.minVelocityY<0&&o<=this.minVelocityY||this.minVelocityY>=0&&this.minVelocityY<=o))return!0;const h=n*n+o*o;return this.minVelocitySq!==Number.MAX_SAFE_INTEGER&&h>=this.minVelocitySq}shouldFail(){const t=this.getTranslationX(),e=this.getTranslationY(),s=t*t+e*e;return this.activateAfterLongPress>0&&s>c?(this.clearActivationTimeout(),!0):this.failOffsetXStart!==Number.MIN_SAFE_INTEGER&&t<this.failOffsetXStart||(this.failOffsetXEnd!==Number.MAX_SAFE_INTEGER&&t>this.failOffsetXEnd||(this.failOffsetYStart!==Number.MIN_SAFE_INTEGER&&e<this.failOffsetYStart||this.failOffsetYEnd!==Number.MAX_SAFE_INTEGER&&e>this.failOffsetYEnd))}tryBegin(t){this.state===n.State.UNDETERMINED&&this.tracker.trackedPointersCount>=this.minPointers?(this.resetProgress(),this.offsetX=0,this.offsetY=0,this.velocityX=0,this.velocityY=0,this.begin(),this.activateAfterLongPress>0&&(this.activationTimeout=setTimeout(()=>{this.activate()},this.activateAfterLongPress))):this.updateVelocity(t.pointerId)}checkBegan(){this.state===n.State.BEGAN&&(this.shouldFail()?this.fail():this.shouldActivate()&&this.activate())}activate(t=!1){this.state!==n.State.ACTIVE&&this.resetProgress(),super.activate(t)}onCancel(){this.clearActivationTimeout()}onReset(){this.clearActivationTimeout()}resetProgress(){this.state!==n.State.ACTIVE&&(this.startX=this.lastX,this.startY=this.lastY)}}},3254,[120,3245,3255,3256,3257]);
15660
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_TOUCH_SLOP",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"MINIMAL_RECOGNIZABLE_MAGNITUDE",{enumerable:!0,get:function(){return n}});const t=15,n=.1},3255,[]);
15661
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"EventTypes",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"TouchEventType",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"WheelDevice",{enumerable:!0,get:function(){return t}});let E=(function(E){return E[E.DOWN=0]="DOWN",E[E.ADDITIONAL_POINTER_DOWN=1]="ADDITIONAL_POINTER_DOWN",E[E.UP=2]="UP",E[E.ADDITIONAL_POINTER_UP=3]="ADDITIONAL_POINTER_UP",E[E.MOVE=4]="MOVE",E[E.ENTER=5]="ENTER",E[E.LEAVE=6]="LEAVE",E[E.CANCEL=7]="CANCEL",E})({}),n=(function(E){return E[E.UNDETERMINED=0]="UNDETERMINED",E[E.DOWN=1]="DOWN",E[E.MOVE=2]="MOVE",E[E.UP=3]="UP",E[E.CANCELLED=4]="CANCELLED",E})({}),t=(function(E){return E[E.UNDETERMINED=0]="UNDETERMINED",E[E.MOUSE=1]="MOUSE",E[E.TOUCHPAD=2]="TOUCHPAD",E})({})},3256,[]);
15662
- __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return v}});var o=e(r(d[0])),s=r(d[1]),n=r(d[2]),h=e(r(d[3])),l=e(r(d[4])),c=e(r(d[5])),u=r(d[6]),p=r(d[7]);class v{lastSentState=null;_state=s.State.UNDETERMINED;_shouldCancelWhenOutside=!1;hasCustomActivationCriteria=!1;_enabled=!1;_config={enabled:!1};_tracker=new c.default;_activationIndex=0;_awaiting=!1;_active=!1;_shouldResetProgress=!1;_pointerType=p.PointerType.MOUSE;constructor(t){this._delegate=t}init(t,e){this.propsRef=e,this.viewRef=t,this.state=s.State.UNDETERMINED,this.delegate.init(t,this)}attachEventManager(t){t.setOnPointerDown(this.onPointerDown.bind(this)),t.setOnPointerAdd(this.onPointerAdd.bind(this)),t.setOnPointerUp(this.onPointerUp.bind(this)),t.setOnPointerRemove(this.onPointerRemove.bind(this)),t.setOnPointerMove(this.onPointerMove.bind(this)),t.setOnPointerEnter(this.onPointerEnter.bind(this)),t.setOnPointerLeave(this.onPointerLeave.bind(this)),t.setOnPointerCancel(this.onPointerCancel.bind(this)),t.setOnPointerOutOfBounds(this.onPointerOutOfBounds.bind(this)),t.setOnPointerMoveOver(this.onPointerMoveOver.bind(this)),t.setOnPointerMoveOut(this.onPointerMoveOut.bind(this)),t.setOnWheel(this.onWheel.bind(this)),t.registerListeners()}onCancel(){}onReset(){}resetProgress(){}reset(){this.tracker.resetTracker(),this.onReset(),this.resetProgress(),this.delegate.reset(),this.state=s.State.UNDETERMINED}moveToState(t,e){if(this.state===t)return;const o=this.state;this.state=t,this.tracker.trackedPointersCount>0&&this.config.needsPointerData&&this.isFinished()&&this.cancelTouches(),h.default.instance.onHandlerStateChange(this,t,o,e),this.onStateChange(t,o),!this.enabled&&this.isFinished()&&(this.state=s.State.UNDETERMINED)}onStateChange(t,e){}begin(){this.checkHitSlop()&&this.state===s.State.UNDETERMINED&&this.moveToState(s.State.BEGAN)}fail(t){this.state!==s.State.ACTIVE&&this.state!==s.State.BEGAN||(this.delegate.onFail(),this.moveToState(s.State.FAILED,t)),this.resetProgress()}cancel(t){this.state!==s.State.ACTIVE&&this.state!==s.State.UNDETERMINED&&this.state!==s.State.BEGAN||(this.onCancel(),this.delegate.onCancel(),this.moveToState(s.State.CANCELLED,t))}activate(t=!1){!0===this.config.manualActivation&&!t||this.state!==s.State.UNDETERMINED&&this.state!==s.State.BEGAN||(this.delegate.onActivate(),this.moveToState(s.State.ACTIVE))}end(){this.state!==s.State.BEGAN&&this.state!==s.State.ACTIVE||(this.delegate.onEnd(),this.moveToState(s.State.END)),this.resetProgress()}getShouldResetProgress(){return this.shouldResetProgress}setShouldResetProgress(t){this.shouldResetProgress=t}shouldWaitForHandlerFailure(t){return t!==this&&l.default.instance.shouldWaitForHandlerFailure(this,t)}shouldRequireToWaitForFailure(t){return t!==this&&l.default.instance.shouldRequireHandlerToWaitForFailure(this,t)}shouldRecognizeSimultaneously(t){return t===this||l.default.instance.shouldRecognizeSimultaneously(this,t)}shouldBeCancelledByOther(t){return t!==this&&l.default.instance.shouldHandlerBeCancelledBy(this,t)}onPointerDown(t){h.default.instance.recordHandlerIfNotPresent(this),this.pointerType=t.pointerType,this.pointerType===p.PointerType.TOUCH&&h.default.instance.cancelMouseAndPenGestures(this)}onPointerAdd(t){this.tryToSendTouchEvent(t)}onPointerUp(t){this.tryToSendTouchEvent(t)}onPointerRemove(t){this.tryToSendTouchEvent(t)}onPointerMove(t){this.tryToSendMoveEvent(!1,t)}onPointerLeave(t){if(this.shouldCancelWhenOutside)switch(this.state){case s.State.ACTIVE:this.cancel();break;case s.State.BEGAN:this.fail()}else this.tryToSendTouchEvent(t)}onPointerEnter(t){this.tryToSendTouchEvent(t)}onPointerCancel(t){this.tryToSendTouchEvent(t),this.cancel(),this.reset()}onPointerOutOfBounds(t){this.tryToSendMoveEvent(!0,t)}onPointerMoveOver(t){}onPointerMoveOut(t){}onWheel(t){}tryToSendMoveEvent(t,e){t&&this.shouldCancelWhenOutside||!this.enabled||(this.active&&this.sendEvent(this.state,this.state),this.tryToSendTouchEvent(e))}tryToSendTouchEvent(t){this.config.needsPointerData&&this.sendTouchEvent(t)}sendTouchEvent(t){if(!this.enabled)return;const{onGestureHandlerEvent:e}=this.propsRef.current,o=this.transformTouchEvent(t);o&&f(e,o)}sendEvent=(t,e)=>{const{onGestureHandlerEvent:o,onGestureHandlerStateChange:n}=this.propsRef.current,h=this.transformEventData(t,e);this.lastSentState!==t&&(this.lastSentState=t,f(n,h)),this.state===s.State.ACTIVE&&(h.nativeEvent.oldState=void 0,f(o,h))};transformEventData(t,e){return{nativeEvent:Object.assign({numberOfPointers:this.tracker.trackedPointersCount,state:t,pointerInside:this.delegate.isPointerInBounds(this.tracker.getAbsoluteCoordsAverage())},this.transformNativeEvent(),{handlerTag:this.handlerTag,target:this.viewRef,oldState:t!==e?e:void 0,pointerType:this.pointerType}),timeStamp:Date.now()}}transformTouchEvent(t){const e=this.delegate.measureView(),o=[],s=[],h=this.tracker.trackedPointers;if(0===h.size||!h.has(t.pointerId))return;h.forEach((t,s)=>{const n=this.tracker.getMappedTouchEventId(s);o.push({id:n,x:t.abosoluteCoords.x-e.pageX,y:t.abosoluteCoords.y-e.pageY,absoluteX:t.abosoluteCoords.x,absoluteY:t.abosoluteCoords.y})}),t.eventType!==n.EventTypes.CANCEL?s.push({id:this.tracker.getMappedTouchEventId(t.pointerId),x:t.x-e.pageX,y:t.y-e.pageY,absoluteX:t.x,absoluteY:t.y}):h.forEach((t,o)=>{const n=this.tracker.getMappedTouchEventId(o);s.push({id:n,x:t.abosoluteCoords.x-e.pageX,y:t.abosoluteCoords.y-e.pageY,absoluteX:t.abosoluteCoords.x,absoluteY:t.abosoluteCoords.y})});let l=n.TouchEventType.UNDETERMINED;switch(t.eventType){case n.EventTypes.DOWN:case n.EventTypes.ADDITIONAL_POINTER_DOWN:l=n.TouchEventType.DOWN;break;case n.EventTypes.UP:case n.EventTypes.ADDITIONAL_POINTER_UP:l=n.TouchEventType.UP;break;case n.EventTypes.MOVE:l=n.TouchEventType.MOVE;break;case n.EventTypes.CANCEL:l=n.TouchEventType.CANCELLED}let c=o.length;return t.eventType!==n.EventTypes.UP&&t.eventType!==n.EventTypes.ADDITIONAL_POINTER_UP||--c,{nativeEvent:{handlerTag:this.handlerTag,state:this.state,eventType:l,changedTouches:s,allTouches:o,numberOfTouches:c,pointerType:this.pointerType},timeStamp:Date.now()}}cancelTouches(){const t=this.delegate.measureView(),e=[],o=[],s=this.tracker.trackedPointers;if(0===s.size)return;s.forEach((s,n)=>{const h=this.tracker.getMappedTouchEventId(n);e.push({id:h,x:s.abosoluteCoords.x-t.pageX,y:s.abosoluteCoords.y-t.pageY,absoluteX:s.abosoluteCoords.x,absoluteY:s.abosoluteCoords.y}),o.push({id:h,x:s.abosoluteCoords.x-t.pageX,y:s.abosoluteCoords.y-t.pageY,absoluteX:s.abosoluteCoords.x,absoluteY:s.abosoluteCoords.y})});const h={nativeEvent:{handlerTag:this.handlerTag,state:this.state,eventType:n.TouchEventType.CANCELLED,changedTouches:o,allTouches:e,numberOfTouches:e.length,pointerType:this.pointerType},timeStamp:Date.now()},{onGestureHandlerEvent:l}=this.propsRef.current;f(l,h)}transformNativeEvent(){const t=this.tracker.getAbsoluteCoordsAverage(),e=this.tracker.getRelativeCoordsAverage();return{x:e.x,y:e.y,absoluteX:t.x,absoluteY:t.y}}updateGestureConfig(e){let{enabled:n=!0}=e,l=(0,o.default)(e,t);if(this._config=Object.assign({enabled:n},l),this.enabled!==n&&this.delegate.onEnabledChange(n),this.enabled=n,void 0!==this.config.shouldCancelWhenOutside&&(this.shouldCancelWhenOutside=this.config.shouldCancelWhenOutside),this.validateHitSlops(),!this.enabled)switch(this.state){case s.State.ACTIVE:this.fail(!0);break;case s.State.UNDETERMINED:h.default.instance.removeHandlerFromOrchestrator(this);break;default:this.cancel(!0)}}checkCustomActivationCriteria(t){for(const e in this.config)t.indexOf(e)>=0&&(this.hasCustomActivationCriteria=!0)}validateHitSlops(){if(this.config.hitSlop){if(void 0!==this.config.hitSlop.left&&void 0!==this.config.hitSlop.right&&void 0!==this.config.hitSlop.width)throw new Error('HitSlop Error: Cannot define left, right and width at the same time');if(void 0!==this.config.hitSlop.width&&void 0===this.config.hitSlop.left&&void 0===this.config.hitSlop.right)throw new Error('HitSlop Error: When width is defined, either left or right has to be defined');if(void 0!==this.config.hitSlop.height&&void 0!==this.config.hitSlop.top&&void 0!==this.config.hitSlop.bottom)throw new Error('HitSlop Error: Cannot define top, bottom and height at the same time');if(void 0!==this.config.hitSlop.height&&void 0===this.config.hitSlop.top&&void 0===this.config.hitSlop.bottom)throw new Error('HitSlop Error: When height is defined, either top or bottom has to be defined')}}checkHitSlop(){if(!this.config.hitSlop)return!0;const{width:t,height:e}=this.delegate.measureView();let o=0,s=0,n=t,h=e;void 0!==this.config.hitSlop.horizontal&&(o-=this.config.hitSlop.horizontal,n+=this.config.hitSlop.horizontal),void 0!==this.config.hitSlop.vertical&&(s-=this.config.hitSlop.vertical,h+=this.config.hitSlop.vertical),void 0!==this.config.hitSlop.left&&(o=-this.config.hitSlop.left),void 0!==this.config.hitSlop.right&&(n=t+this.config.hitSlop.right),void 0!==this.config.hitSlop.top&&(s=-this.config.hitSlop.top),void 0!==this.config.hitSlop.bottom&&(h=e+this.config.hitSlop.bottom),void 0!==this.config.hitSlop.width&&(void 0!==this.config.hitSlop.left?n=o+this.config.hitSlop.width:void 0!==this.config.hitSlop.right&&(o=n-this.config.hitSlop.width)),void 0!==this.config.hitSlop.height&&(void 0!==this.config.hitSlop.top?h=s+this.config.hitSlop.height:void 0!==this.config.hitSlop.bottom&&(s=h-this.config.hitSlop.height));const l=this.delegate.measureView(),c=this.tracker.getLastAbsoluteCoords();if(!c)return!1;const u=c.x-l.pageX,p=c.y-l.pageY;return u>=o&&u<=n&&p>=s&&p<=h}isButtonInConfig(t){return!t||!this.config.mouseButton&&t===u.MouseButton.LEFT||this.config.mouseButton&&t&this.config.mouseButton}resetConfig(){}onDestroy(){h.default.instance.removeHandlerFromOrchestrator(this),this.delegate.destroy(this.config)}get handlerTag(){return this._handlerTag}set handlerTag(t){this._handlerTag=t}get config(){return this._config}get delegate(){return this._delegate}get tracker(){return this._tracker}get state(){return this._state}set state(t){this._state=t}get shouldCancelWhenOutside(){return this._shouldCancelWhenOutside}set shouldCancelWhenOutside(t){this._shouldCancelWhenOutside=t}get enabled(){return this._enabled}set enabled(t){this._enabled=t}get pointerType(){return this._pointerType}set pointerType(t){this._pointerType=t}get active(){return this._active}set active(t){this._active=t}get awaiting(){return this._awaiting}set awaiting(t){this._awaiting=t}get activationIndex(){return this._activationIndex}set activationIndex(t){this._activationIndex=t}get shouldResetProgress(){return this._shouldResetProgress}set shouldResetProgress(t){this._shouldResetProgress=t}getTrackedPointersID(){return this.tracker.trackedPointersIDs}isFinished(){return this.state===s.State.END||this.state===s.State.FAILED||this.state===s.State.CANCELLED}}function f(t,e){if(!t)return;if('function'==typeof t)return void t(e);if('__getHandler'in t&&'function'==typeof t.__getHandler){return void f(t.__getHandler(),e)}if(!('__nodeConfig'in t))return;const{argMapping:o}=t.__nodeConfig;if(Array.isArray(o))for(const[s,[n,h]]of o.entries()){if(!(n in e.nativeEvent))continue;const o=e.nativeEvent[n];h?.setValue?h.setValue(o):t.__nodeConfig.argMapping[s]=[n,o]}}},3257,[120,3245,3256,3258,3264,3260,3265,3259]);
15663
- __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 l}});var e,t=r(d[0]),n=r(d[1]),i=r(d[2]),s=(e=i)&&e.__esModule?e:{default:e};class l{gestureHandlers=[];awaitingHandlers=[];awaitingHandlersTags=new Set;handlingChangeSemaphore=0;activationIndex=0;constructor(){}scheduleFinishedHandlersCleanup(){0===this.handlingChangeSemaphore&&this.cleanupFinishedHandlers()}cleanHandler(e){e.reset(),e.active=!1,e.awaiting=!1,e.activationIndex=Number.MAX_VALUE}removeHandlerFromOrchestrator(e){const t=this.gestureHandlers.indexOf(e),n=this.awaitingHandlers.indexOf(e);t>=0&&this.gestureHandlers.splice(t,1),n>=0&&(this.awaitingHandlers.splice(n,1),this.awaitingHandlersTags.delete(e.handlerTag))}cleanupFinishedHandlers(){const e=new Set;for(let t=this.gestureHandlers.length-1;t>=0;--t){const n=this.gestureHandlers[t];this.isFinished(n.state)&&!n.awaiting&&(this.cleanHandler(n),e.add(n))}this.gestureHandlers=this.gestureHandlers.filter(t=>!e.has(t))}hasOtherHandlerToWaitFor(e){return this.gestureHandlers.some(t=>!this.isFinished(t.state)&&this.shouldHandlerWaitForOther(e,t))}shouldBeCancelledByFinishedHandler(e){return this.gestureHandlers.some(t=>this.shouldHandlerWaitForOther(e,t)&&t.state===n.State.END)}tryActivate(e){if(this.shouldBeCancelledByFinishedHandler(e))return void e.cancel();if(this.hasOtherHandlerToWaitFor(e))return void this.addAwaitingHandler(e);const t=e.state;t!==n.State.CANCELLED&&t!==n.State.FAILED&&(this.shouldActivate(e)?this.makeActive(e):t!==n.State.ACTIVE?t===n.State.BEGAN&&e.cancel():e.fail())}shouldActivate(e){return!this.gestureHandlers.some(t=>this.shouldHandlerBeCancelledBy(e,t))}cleanupAwaitingHandlers(e){const t=t=>!t.awaiting&&this.shouldHandlerWaitForOther(t,e);for(const e of this.awaitingHandlers)t(e)&&(this.cleanHandler(e),this.awaitingHandlersTags.delete(e.handlerTag));this.awaitingHandlers=this.awaitingHandlers.filter(e=>this.awaitingHandlersTags.has(e.handlerTag))}onHandlerStateChange(e,t,i,s){if(e.enabled||s){if(this.handlingChangeSemaphore+=1,this.isFinished(t))for(const i of this.awaitingHandlers)this.shouldHandlerWaitForOther(i,e)&&this.awaitingHandlersTags.has(i.handlerTag)&&(t===n.State.END?(i.cancel(),i.state===n.State.END&&i.sendEvent(n.State.CANCELLED,n.State.BEGAN),i.awaiting=!1):this.tryActivate(i));t===n.State.ACTIVE?this.tryActivate(e):i===n.State.ACTIVE||i===n.State.END?e.active?e.sendEvent(t,i):i!==n.State.ACTIVE||t!==n.State.CANCELLED&&t!==n.State.FAILED||e.sendEvent(t,n.State.BEGAN):i===n.State.UNDETERMINED&&t===n.State.CANCELLED||e.sendEvent(t,i),this.handlingChangeSemaphore-=1,this.scheduleFinishedHandlersCleanup(),this.awaitingHandlers.includes(e)||this.cleanupAwaitingHandlers(e)}}makeActive(e){const t=e.state;e.active=!0,e.shouldResetProgress=!0,e.activationIndex=this.activationIndex++;for(let t=this.gestureHandlers.length-1;t>=0;--t)this.shouldHandlerBeCancelledBy(this.gestureHandlers[t],e)&&this.gestureHandlers[t].cancel();for(const t of this.awaitingHandlers)this.shouldHandlerBeCancelledBy(t,e)&&(t.awaiting=!1);e.sendEvent(n.State.ACTIVE,n.State.BEGAN),t!==n.State.ACTIVE&&(e.sendEvent(n.State.END,n.State.ACTIVE),t!==n.State.END&&e.sendEvent(n.State.UNDETERMINED,n.State.END)),e.awaiting&&(e.awaiting=!1,this.awaitingHandlers=this.awaitingHandlers.filter(t=>t!==e))}addAwaitingHandler(e){this.awaitingHandlers.includes(e)||(this.awaitingHandlers.push(e),this.awaitingHandlersTags.add(e.handlerTag),e.awaiting=!0,e.activationIndex=this.activationIndex++)}recordHandlerIfNotPresent(e){this.gestureHandlers.includes(e)||(this.gestureHandlers.push(e),e.active=!1,e.awaiting=!1,e.activationIndex=Number.MAX_SAFE_INTEGER)}shouldHandlerWaitForOther(e,t){return e!==t&&(e.shouldWaitForHandlerFailure(t)||t.shouldRequireToWaitForFailure(e))}canRunSimultaneously(e,t){return e===t||e.shouldRecognizeSimultaneously(t)||t.shouldRecognizeSimultaneously(e)}shouldHandlerBeCancelledBy(e,t){if(this.canRunSimultaneously(e,t))return!1;if(e.awaiting||e.state===n.State.ACTIVE)return e.shouldBeCancelledByOther(t);const i=e.getTrackedPointersID(),l=t.getTrackedPointersID();return!(!s.default.shareCommonPointers(i,l)&&e.delegate.view!==t.delegate.view)||this.checkOverlap(e,t)}checkOverlap(e,t){return e.getTrackedPointersID().some(n=>{const i=e.tracker.getLastAbsoluteCoords(n);return i&&e.delegate.isPointerInBounds(i)&&t.delegate.isPointerInBounds(i)})}isFinished(e){return e===n.State.END||e===n.State.FAILED||e===n.State.CANCELLED}cancelMouseAndPenGestures(e){this.gestureHandlers.forEach(n=>{n.pointerType!==t.PointerType.MOUSE&&n.pointerType!==t.PointerType.STYLUS||(n!==e?n.cancel():n.tracker.resetTracker())})}static get instance(){return l._instance||(l._instance=new l),l._instance}}},3258,[3259,3245,3260]);
15664
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PointerType",{enumerable:!0,get:function(){return t}});let t=(function(t){return t[t.TOUCH=0]="TOUCH",t[t.STYLUS=1]="STYLUS",t[t.MOUSE=2]="MOUSE",t[t.KEY=3]="KEY",t[t.OTHER=4]="OTHER",t})({})},3259,[]);
15665
- __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 o}});var e,t=r(d[0]),s=(e=t)&&e.__esModule?e:{default:e};class o{velocityTracker=new s.default;_trackedPointers=new Map;touchEventsIds=new Map;cachedAbsoluteAverages={x:0,y:0};cachedRelativeAverages={x:0,y:0};constructor(){this.lastMovedPointerId=NaN;for(let e=0;e<20;++e)this.touchEventsIds.set(e,NaN)}addToTracker(e){if(this.trackedPointers.has(e.pointerId))return;this.lastMovedPointerId=e.pointerId;const t={abosoluteCoords:{x:e.x,y:e.y},relativeCoords:{x:e.offsetX,y:e.offsetY},timestamp:e.time,velocityX:0,velocityY:0};this.trackedPointers.set(e.pointerId,t),this.mapTouchEventId(e.pointerId),this.cachedAbsoluteAverages=this.getAbsoluteCoordsAverage(),this.cachedRelativeAverages=this.getRelativeCoordsAverage()}removeFromTracker(e){this.trackedPointers.delete(e),this.removeMappedTouchId(e)}track(e){const t=this.trackedPointers.get(e.pointerId);if(!t)return;this.lastMovedPointerId=e.pointerId,this.velocityTracker.add(e);const[s,o]=this.velocityTracker.velocity;t.velocityX=s,t.velocityY=o,t.abosoluteCoords={x:e.x,y:e.y},t.relativeCoords={x:e.offsetX,y:e.offsetY},this.trackedPointers.set(e.pointerId,t),this.cachedAbsoluteAverages=this.getAbsoluteCoordsAverage(),this.cachedRelativeAverages=this.getRelativeCoordsAverage()}mapTouchEventId(e){for(const[t,s]of this.touchEventsIds)if(isNaN(s)){this.touchEventsIds.set(t,e);break}}removeMappedTouchId(e){const t=this.getMappedTouchEventId(e);isNaN(t)||this.touchEventsIds.set(t,NaN)}getMappedTouchEventId(e){for(const[t,s]of this.touchEventsIds.entries())if(s===e)return t;return NaN}getVelocity(e){const t=this.trackedPointers.get(e);return t?{x:t.velocityX,y:t.velocityY}:null}getLastAbsoluteCoords(e){return this.trackedPointers.get(e??this.lastMovedPointerId)?.abosoluteCoords}getLastRelativeCoords(e){return this.trackedPointers.get(e??this.lastMovedPointerId)?.relativeCoords}getAbsoluteCoordsAverage(){const e=this.getAbsoluteCoordsSum(),t=e.x/this.trackedPointers.size,s=e.y/this.trackedPointers.size;return{x:isNaN(t)?this.cachedAbsoluteAverages.x:t,y:isNaN(s)?this.cachedAbsoluteAverages.y:s}}getRelativeCoordsAverage(){const e=this.getRelativeCoordsSum(),t=e.x/this.trackedPointers.size,s=e.y/this.trackedPointers.size;return{x:isNaN(t)?this.cachedRelativeAverages.x:t,y:isNaN(s)?this.cachedRelativeAverages.y:s}}getAbsoluteCoordsSum(e){const t={x:0,y:0};return this.trackedPointers.forEach((s,o)=>{o!==e&&(t.x+=s.abosoluteCoords.x,t.y+=s.abosoluteCoords.y)}),t}getRelativeCoordsSum(e){const t={x:0,y:0};return this.trackedPointers.forEach((s,o)=>{o!==e&&(t.x+=s.relativeCoords.x,t.y+=s.relativeCoords.y)}),t}resetTracker(){this.velocityTracker.reset(),this.trackedPointers.clear(),this.lastMovedPointerId=NaN;for(let e=0;e<20;++e)this.touchEventsIds.set(e,NaN)}static shareCommonPointers(e,t){return e.some(e=>t.includes(e))}get trackedPointersCount(){return this.trackedPointers.size}get trackedPointersIDs(){const e=[];return this.trackedPointers.forEach((t,s)=>{e.push(s)}),e}get trackedPointers(){return this._trackedPointers}}},3260,[3261]);
15666
- __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 l}});var t=e(r(d[0])),s=e(r(d[1]));class l{assumePointerMoveStoppedMilliseconds=40;historySize=20;horizonMilliseconds=300;minSampleSize=3;constructor(){this.samples=new t.default(this.historySize)}add(e){this.samples.push(e)}getVelocityEstimate(){const e=[],t=[],l=[],n=[];let o=0,u=this.samples.size-1;const c=this.samples.get(u);if(!c)return null;let h=c;for(;o<this.samples.size;){const s=this.samples.get(u),f=c.time-s.time,p=Math.abs(s.time-h.time);if(h=s,f>this.horizonMilliseconds||p>this.assumePointerMoveStoppedMilliseconds)break;e.push(s.x),t.push(s.y),l.push(1),n.push(-f),o++,u--}if(o>=this.minSampleSize){const o=new s.default(n,e,l).solve(2);if(null!==o){const e=new s.default(n,t,l).solve(2);if(null!==e){return[1e3*o.coefficients[1],1e3*e.coefficients[1]]}}}return null}get velocity(){const e=this.getVelocityEstimate();return null!==e?e:[0,0]}reset(){this.samples.clear()}}},3261,[3262,3263]);
15667
- __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 t}});class t{constructor(t){this.capacity=t,this.buffer=new Array(t),this.index=0,this._size=0}push(t){this.buffer[this.index]=t,this.index=(this.index+1)%this.capacity,this._size=Math.min(this.size+1,this.capacity)}get(t){if(this._size===this.capacity){let s=(this.index+t)%this.capacity;return s<0&&(s+=this.capacity),this.buffer[s]}return this.buffer[t]}clear(){this.buffer=new Array(this.capacity),this.index=0,this._size=0}get size(){return this._size}}},3262,[]);
15668
- __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 o}});class t{constructor(t){this.offset=0,this.length=t,this.elements=new Array(t)}static fromVOL(s,n,o){const r=new t(0);return r.offset=n,r.length=o,r.elements=s,r}get(t){return this.elements[this.offset+t]}set(t,s){this.elements[this.offset+t]=s}dot(t){let s=0;for(let n=0;n<this.length;n++)s+=this.get(n)*t.get(n);return s}norm(){return Math.sqrt(this.dot(this))}}class s{constructor(t,s){this.columns=s,this.elements=new Array(t*s)}get(t,s){return this.elements[t*this.columns+s]}set(t,s,n){this.elements[t*this.columns+s]=n}getRow(s){return t.fromVOL(this.elements,s*this.columns,this.columns)}}class n{constructor(t){this.coefficients=new Array(t+1)}}class o{constructor(t,s,n){this.x=t,this.y=s,this.w=n}solve(o){if(o>this.x.length)return null;const r=new n(o),i=this.x.length,l=o+1,c=new s(l,i);for(let t=0;t<i;t++){c.set(0,t,this.w[t]);for(let s=1;s<l;s++)c.set(s,t,c.get(s-1,t)*this.x[t])}const f=new s(l,i),h=new s(l,i);for(let t=0;t<l;t+=1){for(let s=0;s<i;s+=1)f.set(t,s,c.get(t,s));for(let s=0;s<t;s+=1){const n=f.getRow(t).dot(f.getRow(s));for(let o=0;o<i;o+=1)f.set(t,o,f.get(t,o)-n*f.get(s,o))}const s=f.getRow(t).norm();if(s<1e-10)return null;const n=1/s;for(let s=0;s<i;s+=1)f.set(t,s,f.get(t,s)*n);for(let s=0;s<l;s+=1)h.set(t,s,s<t?0:f.getRow(t).dot(c.getRow(s)))}const u=new t(i);for(let t=0;t<i;t+=1)u.set(t,this.y[t]*this.w[t]);for(let t=l-1;t>=0;t-=1){r.coefficients[t]=f.getRow(t).dot(u);for(let s=l-1;s>t;s-=1)r.coefficients[t]-=h.get(t,s)*r.coefficients[s];r.coefficients[t]/=h.get(t,t)}return r}}},3263,[]);
15669
- __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 t}});class t{waitForRelations=new Map;simultaneousRelations=new Map;blocksHandlersRelations=new Map;constructor(){}configureInteractions(t,n){if(this.dropRelationsForHandlerWithTag(t.handlerTag),n.waitFor){const s=[];n.waitFor.forEach(t=>{'number'==typeof t?s.push(t):s.push(t.handlerTag)}),this.waitForRelations.set(t.handlerTag,s)}if(n.simultaneousHandlers){const s=[];n.simultaneousHandlers.forEach(t=>{'number'==typeof t?s.push(t):s.push(t.handlerTag)}),this.simultaneousRelations.set(t.handlerTag,s)}if(n.blocksHandlers){const s=[];n.blocksHandlers.forEach(t=>{'number'==typeof t?s.push(t):s.push(t.handlerTag)}),this.blocksHandlersRelations.set(t.handlerTag,s)}}shouldWaitForHandlerFailure(t,n){const s=this.waitForRelations.get(t.handlerTag);return void 0!==s?.find(t=>t===n.handlerTag)}shouldRecognizeSimultaneously(t,n){const s=this.simultaneousRelations.get(t.handlerTag);return void 0!==s?.find(t=>t===n.handlerTag)}shouldRequireHandlerToWaitForFailure(t,n){const s=this.blocksHandlersRelations.get(t.handlerTag);return void 0!==s?.find(t=>t===n.handlerTag)}shouldHandlerBeCancelledBy(t,n){const s='NativeViewGestureHandler'===n.constructor.name,l=n.active,o=!0===n.isButton?.();return s&&l&&!o}dropRelationsForHandlerWithTag(t){this.waitForRelations.delete(t),this.simultaneousRelations.delete(t),this.blocksHandlersRelations.delete(t)}reset(){this.waitForRelations.clear(),this.simultaneousRelations.clear(),this.blocksHandlersRelations.clear()}static get instance(){return this._instance||(this._instance=new t),this._instance}}},3264,[]);
15670
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"baseGestureHandlerProps",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"baseGestureHandlerWithDetectorProps",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"MouseButton",{enumerable:!0,get:function(){return u}});const n=['id','enabled','shouldCancelWhenOutside','hitSlop','cancelsTouchesInView','userSelect','activeCursor','mouseButton','enableContextMenu','touchAction'],t=[...n,'waitFor','simultaneousHandlers','blocksHandlers','onBegan','onFailed','onCancelled','onActivated','onEnded','onGestureEvent','onHandlerStateChange'],o=[...n,'needsPointerData','manualActivation'];let u=(function(n){return n[n.LEFT=1]="LEFT",n[n.RIGHT=2]="RIGHT",n[n.MIDDLE=4]="MIDDLE",n[n.BUTTON_4=8]="BUTTON_4",n[n.BUTTON_5=16]="BUTTON_5",n[n.ALL=31]="ALL",n})({})},3265,[]);
15671
- __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function s(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e=s(r(d[0])),o=r(d[1]),n=r(d[2]),h=s(r(d[3]));class u extends h.default{maxDeltaX=Number.MIN_SAFE_INTEGER;maxDeltaY=Number.MIN_SAFE_INTEGER;maxDistSq=Number.MIN_SAFE_INTEGER;maxDurationMs=500;maxDelayMs=500;numberOfTaps=1;minNumberOfPointers=1;currentMaxNumberOfPointers=1;startX=0;startY=0;offsetX=0;offsetY=0;lastX=0;lastY=0;tapsSoFar=0;updateGestureConfig(s){let{enabled:o=!0}=s,n=(0,e.default)(s,t);super.updateGestureConfig(Object.assign({enabled:o},n)),void 0!==this.config.numberOfTaps&&(this.numberOfTaps=this.config.numberOfTaps),void 0!==this.config.maxDurationMs&&(this.maxDurationMs=this.config.maxDurationMs),void 0!==this.config.maxDelayMs&&(this.maxDelayMs=this.config.maxDelayMs),void 0!==this.config.maxDeltaX&&(this.maxDeltaX=this.config.maxDeltaX),void 0!==this.config.maxDeltaY&&(this.maxDeltaY=this.config.maxDeltaY),void 0!==this.config.maxDist&&(this.maxDistSq=this.config.maxDist*this.config.maxDist),void 0!==this.config.minPointers&&(this.minNumberOfPointers=this.config.minPointers)}resetConfig(){super.resetConfig(),this.maxDeltaX=Number.MIN_SAFE_INTEGER,this.maxDeltaY=Number.MIN_SAFE_INTEGER,this.maxDistSq=Number.MIN_SAFE_INTEGER,this.maxDurationMs=500,this.maxDelayMs=500,this.numberOfTaps=1,this.minNumberOfPointers=1}clearTimeouts(){clearTimeout(this.waitTimeout),clearTimeout(this.delayTimeout)}startTap(){this.clearTimeouts(),this.waitTimeout=setTimeout(()=>this.fail(),this.maxDurationMs)}endTap(){this.clearTimeouts(),++this.tapsSoFar===this.numberOfTaps&&this.currentMaxNumberOfPointers>=this.minNumberOfPointers?this.activate():this.delayTimeout=setTimeout(()=>this.fail(),this.maxDelayMs)}updateLastCoords(){const{x:t,y:s}=this.tracker.getAbsoluteCoordsAverage();this.lastX=t,this.lastY=s}onPointerDown(t){this.isButtonInConfig(t.button)&&(this.tracker.addToTracker(t),super.onPointerDown(t),this.trySettingPosition(t),this.startX=t.x,this.startY=t.y,this.lastX=t.x,this.lastY=t.y,this.updateState(t),this.tryToSendTouchEvent(t))}onPointerAdd(t){super.onPointerAdd(t),this.tracker.addToTracker(t),this.trySettingPosition(t),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY,this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.updateState(t)}onPointerUp(t){super.onPointerUp(t),this.updateLastCoords(),this.tracker.removeFromTracker(t.pointerId),this.updateState(t)}onPointerRemove(t){super.onPointerRemove(t),this.tracker.removeFromTracker(t.pointerId),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY=this.startY,this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.updateState(t)}onPointerMove(t){this.trySettingPosition(t),this.tracker.track(t),this.updateLastCoords(),this.updateState(t),super.onPointerMove(t)}onPointerOutOfBounds(t){this.trySettingPosition(t),this.tracker.track(t),this.updateLastCoords(),this.updateState(t),super.onPointerOutOfBounds(t)}updateState(t){if(this.currentMaxNumberOfPointers<this.tracker.trackedPointersCount&&(this.currentMaxNumberOfPointers=this.tracker.trackedPointersCount),this.shouldFail())this.fail();else switch(this.state){case o.State.UNDETERMINED:t.eventType===n.EventTypes.DOWN&&this.begin(),this.startTap();break;case o.State.BEGAN:t.eventType===n.EventTypes.UP&&this.endTap(),t.eventType===n.EventTypes.DOWN&&this.startTap()}}trySettingPosition(t){this.state===o.State.UNDETERMINED&&(this.offsetX=0,this.offsetY=0,this.startX=t.x,this.startY=t.y)}shouldFail(){const t=this.lastX-this.startX+this.offsetX;if(this.maxDeltaX!==Number.MIN_SAFE_INTEGER&&Math.abs(t)>this.maxDeltaX)return!0;const s=this.lastY-this.startY+this.offsetY;if(this.maxDeltaY!==Number.MIN_SAFE_INTEGER&&Math.abs(s)>this.maxDeltaY)return!0;const e=s*s+t*t;return this.maxDistSq!==Number.MIN_SAFE_INTEGER&&e>this.maxDistSq}activate(){super.activate(),this.end()}onCancel(){this.resetProgress(),this.clearTimeouts()}resetProgress(){this.clearTimeouts(),this.tapsSoFar=0,this.currentMaxNumberOfPointers=0}}},3266,[120,3245,3256,3257]);
15672
- __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var s=e(r(d[0])),n=r(d[1]),o=e(r(d[2]));class h extends o.default{minDurationMs=500;defaultMaxDistSq=100;maxDistSq=this.defaultMaxDistSq;numberOfPointers=1;startX=0;startY=0;startTime=0;previousTime=0;init(t,e){void 0===this.config.enableContextMenu&&(this.config.enableContextMenu=!1),super.init(t,e)}transformNativeEvent(){return Object.assign({},super.transformNativeEvent(),{duration:Date.now()-this.startTime})}updateGestureConfig(e){let{enabled:n=!0}=e,o=(0,s.default)(e,t);super.updateGestureConfig(Object.assign({enabled:n},o)),void 0!==this.config.minDurationMs&&(this.minDurationMs=this.config.minDurationMs),void 0!==this.config.maxDist&&(this.maxDistSq=this.config.maxDist*this.config.maxDist),void 0!==this.config.numberOfPointers&&(this.numberOfPointers=this.config.numberOfPointers)}resetConfig(){super.resetConfig(),this.minDurationMs=500,this.maxDistSq=this.defaultMaxDistSq}onStateChange(t,e){clearTimeout(this.activationTimeout)}onPointerDown(t){this.isButtonInConfig(t.button)&&(this.tracker.addToTracker(t),super.onPointerDown(t),this.startX=t.x,this.startY=t.y,this.tryBegin(),this.tryActivate(),this.tryToSendTouchEvent(t))}onPointerAdd(t){if(super.onPointerAdd(t),this.tracker.addToTracker(t),this.tracker.trackedPointersCount>this.numberOfPointers)return void this.fail();const e=this.tracker.getAbsoluteCoordsAverage();this.startX=e.x,this.startY=e.y,this.tryActivate()}onPointerMove(t){super.onPointerMove(t),this.tracker.track(t),this.checkDistanceFail()}onPointerOutOfBounds(t){super.onPointerOutOfBounds(t),this.tracker.track(t),this.checkDistanceFail()}onPointerUp(t){super.onPointerUp(t),this.tracker.removeFromTracker(t.pointerId),this.state===n.State.ACTIVE?this.end():this.fail()}onPointerRemove(t){super.onPointerRemove(t),this.tracker.removeFromTracker(t.pointerId),this.tracker.trackedPointersCount<this.numberOfPointers&&this.state!==n.State.ACTIVE&&this.fail()}tryBegin(){this.state===n.State.UNDETERMINED&&(this.previousTime=Date.now(),this.startTime=this.previousTime,this.begin())}tryActivate(){this.tracker.trackedPointersCount===this.numberOfPointers&&(this.minDurationMs>0?this.activationTimeout=setTimeout(()=>{this.activate()},this.minDurationMs):0===this.minDurationMs&&this.activate())}checkDistanceFail(){const t=this.tracker.getAbsoluteCoordsAverage(),e=t.x-this.startX,s=t.y-this.startY;e*e+s*s<=this.maxDistSq||(this.state===n.State.ACTIVE?this.cancel():this.fail())}}},3267,[120,3245,3257]);
15673
- __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e=r(d[0]),s=r(d[1]),o=t(r(d[2])),n=t(r(d[3]));class c extends o.default{scale=1;velocity=0;startingSpan=0;spanSlop=s.DEFAULT_TOUCH_SLOP;scaleDetectorListener={onScaleBegin:t=>(this.startingSpan=t.currentSpan,!0),onScale:t=>{const s=this.scale;this.scale*=t.calculateScaleFactor(this.tracker.trackedPointersCount);const o=t.timeDelta;return o>0&&(this.velocity=(this.scale-s)/o),Math.abs(this.startingSpan-t.currentSpan)>=this.spanSlop&&this.state===e.State.BEGAN&&this.activate(),!0},onScaleEnd:t=>{}};scaleGestureDetector=new n.default(this.scaleDetectorListener);init(t,e){super.init(t,e),this.shouldCancelWhenOutside=!1}transformNativeEvent(){return{focalX:this.scaleGestureDetector.focusX,focalY:this.scaleGestureDetector.focusY,velocity:this.velocity,scale:this.scale}}onPointerDown(t){this.tracker.addToTracker(t),super.onPointerDown(t),this.tryToSendTouchEvent(t)}onPointerAdd(t){this.tracker.addToTracker(t),super.onPointerAdd(t),this.tryBegin(),this.scaleGestureDetector.onTouchEvent(t,this.tracker)}onPointerUp(t){super.onPointerUp(t),this.tracker.removeFromTracker(t.pointerId),this.state===e.State.ACTIVE?(this.scaleGestureDetector.onTouchEvent(t,this.tracker),this.end()):this.fail()}onPointerRemove(t){super.onPointerRemove(t),this.scaleGestureDetector.onTouchEvent(t,this.tracker),this.tracker.removeFromTracker(t.pointerId),this.state===e.State.ACTIVE&&this.tracker.trackedPointersCount<2&&this.end()}onPointerMove(t){this.tracker.trackedPointersCount<2||(this.tracker.track(t),this.scaleGestureDetector.onTouchEvent(t,this.tracker),super.onPointerMove(t))}onPointerOutOfBounds(t){this.tracker.trackedPointersCount<2||(this.tracker.track(t),this.scaleGestureDetector.onTouchEvent(t,this.tracker),super.onPointerOutOfBounds(t))}tryBegin(){this.state===e.State.UNDETERMINED&&(this.resetProgress(),this.begin())}activate(t){this.state!==e.State.ACTIVE&&this.resetProgress(),super.activate(t)}onReset(){this.resetProgress()}resetProgress(){this.state!==e.State.ACTIVE&&(this.velocity=0,this.scale=1)}}},3268,[3245,3255,3257,3269]);
15674
- __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 n}});var t=r(d[0]),s=r(d[1]);class n{inProgress=!1;constructor(s){this.onScaleBegin=s.onScaleBegin,this.onScale=s.onScale,this.onScaleEnd=s.onScaleEnd,this.spanSlop=2*t.DEFAULT_TOUCH_SLOP,this.minSpan=0}onTouchEvent(t,n){this.currentTime=t.time;const o=t.eventType,h=n.trackedPointersCount,c=o===s.EventTypes.UP||o===s.EventTypes.ADDITIONAL_POINTER_UP||o===s.EventTypes.CANCEL;if((o===s.EventTypes.DOWN||c)&&(this.inProgress&&(this.onScaleEnd(this),this.inProgress=!1,this.initialSpan=0),c))return!0;const p=o===s.EventTypes.DOWN||o===s.EventTypes.ADDITIONAL_POINTER_UP||o===s.EventTypes.ADDITIONAL_POINTER_DOWN,u=o===s.EventTypes.ADDITIONAL_POINTER_UP,S=u?t.pointerId:void 0,l=u?h-1:h,T=n.getAbsoluteCoordsSum(),v=T.x/l,E=T.y/l;let P=0,_=0;n.trackedPointers.forEach((t,s)=>{s!==S&&(P+=Math.abs(t.abosoluteCoords.x-v),_+=Math.abs(t.abosoluteCoords.y-E))});const O=2*(P/l),y=2*(_/l),f=Math.hypot(O,y),D=this.inProgress;return this._focusX=v,this._focusY=E,this.inProgress&&(f<this.minSpan||p)&&(this.onScaleEnd(this),this.inProgress=!1,this.initialSpan=f),p&&(this.initialSpan=this.prevSpan=this._currentSpan=f),!this.inProgress&&f>=this.minSpan&&(D||Math.abs(f-this.initialSpan)>this.spanSlop)&&(this.prevSpan=this._currentSpan=f,this.prevTime=this.currentTime,this.inProgress=this.onScaleBegin(this)),o!==s.EventTypes.MOVE||(this._currentSpan=f,this.inProgress&&!this.onScale(this)||(this.prevSpan=this.currentSpan,this.prevTime=this.currentTime),!0)}calculateScaleFactor(t){return t<2?1:this.prevSpan>0?this.currentSpan/this.prevSpan:1}get currentSpan(){return this._currentSpan}get focusX(){return this._focusX}get focusY(){return this._focusY}get timeDelta(){return this.currentTime-this.prevTime}}},3269,[3255,3256]);
15675
- __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var e=r(d[0]),o=t(r(d[1])),n=t(r(d[2]));const s=Math.PI/36;class h extends o.default{rotation=0;velocity=0;cachedAnchorX=0;cachedAnchorY=0;rotationGestureListener={onRotationBegin:t=>!0,onRotation:t=>{const o=this.rotation;this.rotation+=t.rotation;const n=t.timeDelta;return n>0&&(this.velocity=(this.rotation-o)/n),Math.abs(this.rotation)>=s&&this.state===e.State.BEGAN&&this.activate(),!0},onRotationEnd:t=>{this.state===e.State.ACTIVE?this.end():this.fail()}};rotationGestureDetector=new n.default(this.rotationGestureListener);init(t,e){super.init(t,e),this.shouldCancelWhenOutside=!1}transformNativeEvent(){return{rotation:this.rotation?this.rotation:0,anchorX:this.getAnchorX(),anchorY:this.getAnchorY(),velocity:this.velocity?this.velocity:0}}getAnchorX(){const t=this.rotationGestureDetector.anchorX;return t||this.cachedAnchorX}getAnchorY(){const t=this.rotationGestureDetector.anchorY;return t||this.cachedAnchorY}onPointerDown(t){this.tracker.addToTracker(t),super.onPointerDown(t),this.tryToSendTouchEvent(t)}onPointerAdd(t){this.tracker.addToTracker(t),super.onPointerAdd(t),this.tryBegin(),this.rotationGestureDetector.onTouchEvent(t,this.tracker)}onPointerMove(t){this.tracker.trackedPointersCount<2||(this.getAnchorX()&&(this.cachedAnchorX=this.getAnchorX()),this.getAnchorY()&&(this.cachedAnchorY=this.getAnchorY()),this.tracker.track(t),this.rotationGestureDetector.onTouchEvent(t,this.tracker),super.onPointerMove(t))}onPointerOutOfBounds(t){this.tracker.trackedPointersCount<2||(this.getAnchorX()&&(this.cachedAnchorX=this.getAnchorX()),this.getAnchorY()&&(this.cachedAnchorY=this.getAnchorY()),this.tracker.track(t),this.rotationGestureDetector.onTouchEvent(t,this.tracker),super.onPointerOutOfBounds(t))}onPointerUp(t){super.onPointerUp(t),this.tracker.removeFromTracker(t.pointerId),this.rotationGestureDetector.onTouchEvent(t,this.tracker)}onPointerRemove(t){super.onPointerRemove(t),this.rotationGestureDetector.onTouchEvent(t,this.tracker),this.tracker.removeFromTracker(t.pointerId)}tryBegin(){this.state===e.State.UNDETERMINED&&this.begin()}onReset(){this.state!==e.State.ACTIVE&&(this.rotation=0,this.velocity=0,this.rotationGestureDetector.reset())}}},3270,[3245,3257,3271]);
15676
- __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 s}});var t=r(d[0]);class s{currentTime=0;previousTime=0;previousAngle=0;_rotation=0;_anchorX=0;_anchorY=0;isInProgress=!1;keyPointers=[NaN,NaN];constructor(t){this.onRotationBegin=t.onRotationBegin,this.onRotation=t.onRotation,this.onRotationEnd=t.onRotationEnd}updateCurrent(t,s){this.previousTime=this.currentTime,this.currentTime=t.time;const[n,o]=this.keyPointers,h=s.getLastAbsoluteCoords(n),u=s.getLastAbsoluteCoords(o);if(!h||!u)return;const P=u.x-h.x,c=u.y-h.y;this._anchorX=(h.x+u.x)/2,this._anchorY=(h.y+u.y)/2;const y=-Math.atan2(c,P);this._rotation=Number.isNaN(this.previousAngle)?0:this.previousAngle-y,this.previousAngle=y,this.rotation>Math.PI?this._rotation-=Math.PI:this.rotation<-Math.PI&&(this._rotation+=Math.PI),this.rotation>Math.PI/2?this._rotation-=Math.PI:this.rotation<-Math.PI/2&&(this._rotation+=Math.PI)}finish(){this.isInProgress&&(this.isInProgress=!1,this.keyPointers=[NaN,NaN]),this.onRotationEnd(this)}setKeyPointers(t){if(this.keyPointers[0]&&this.keyPointers[1])return;const s=t.trackedPointers.keys();this.keyPointers[0]=s.next().value,this.keyPointers[1]=s.next().value}onTouchEvent(s,n){switch(s.eventType){case t.EventTypes.DOWN:this.isInProgress=!1;break;case t.EventTypes.ADDITIONAL_POINTER_DOWN:if(this.isInProgress)break;this.isInProgress=!0,this.previousTime=s.time,this.previousAngle=NaN,this.setKeyPointers(n),this.updateCurrent(s,n),this.onRotationBegin(this);break;case t.EventTypes.MOVE:if(!this.isInProgress)break;this.updateCurrent(s,n),this.onRotation(this);break;case t.EventTypes.ADDITIONAL_POINTER_UP:if(!this.isInProgress)break;this.keyPointers.indexOf(s.pointerId)>=0&&this.finish();break;case t.EventTypes.UP:this.finish()}return!0}reset(){this.keyPointers=[NaN,NaN],this.isInProgress=!1}get anchorX(){return this._anchorX}get anchorY(){return this._anchorY}get rotation(){return this._rotation}get timeDelta(){return this.currentTime+this.previousTime}}},3271,[3256]);
15677
- __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return p}});var n=e(r(d[0])),o=r(d[1]),s=r(d[2]),u=e(r(d[3])),c=e(r(d[4])),h=r(d[5]);const l=s.Directions.RIGHT,f=(0,h.coneToDeviation)(30),P=(0,h.coneToDeviation)(60);class p extends u.default{numberOfPointersRequired=1;direction=l;maxDurationMs=800;minVelocity=700;maxNumberOfPointersSimultaneously=0;keyPointer=NaN;updateGestureConfig(e){let{enabled:o=!0}=e,s=(0,n.default)(e,t);super.updateGestureConfig(Object.assign({enabled:o},s)),this.config.direction&&(this.direction=this.config.direction),this.config.numberOfPointers&&(this.numberOfPointersRequired=this.config.numberOfPointers)}startFling(){this.begin(),this.maxNumberOfPointersSimultaneously=1,this.delayTimeout=setTimeout(()=>this.fail(),this.maxDurationMs)}tryEndFling(){const t=c.default.fromVelocity(this.tracker,this.keyPointer);if(!t)return!1;const e=(e,n)=>(e&this.direction)===e&&t.isSimilar(c.default.fromDirection(e),n),n=Object.values(s.Directions),o=Object.values(s.DiagonalDirections),u=n.map(t=>e(t,f)),h=o.map(t=>e(t,P)),l=u.some(Boolean)||h.some(Boolean),p=t.magnitude>this.minVelocity;return!(this.maxNumberOfPointersSimultaneously!==this.numberOfPointersRequired||!l||!p)&&(clearTimeout(this.delayTimeout),this.activate(),!0)}endFling(){this.tryEndFling()||this.fail()}onPointerDown(t){this.isButtonInConfig(t.button)&&(this.tracker.addToTracker(t),this.keyPointer=t.pointerId,super.onPointerDown(t),this.newPointerAction(),this.tryToSendTouchEvent(t))}onPointerAdd(t){this.tracker.addToTracker(t),super.onPointerAdd(t),this.newPointerAction()}newPointerAction(){this.state===o.State.UNDETERMINED&&this.startFling(),this.state===o.State.BEGAN&&(this.tryEndFling(),this.tracker.trackedPointersCount>this.maxNumberOfPointersSimultaneously&&(this.maxNumberOfPointersSimultaneously=this.tracker.trackedPointersCount))}pointerMoveAction(t){this.tracker.track(t),this.state===o.State.BEGAN&&this.tryEndFling()}onPointerMove(t){this.pointerMoveAction(t),super.onPointerMove(t)}onPointerOutOfBounds(t){this.pointerMoveAction(t),super.onPointerOutOfBounds(t)}onPointerUp(t){super.onPointerUp(t),this.onUp(t),this.keyPointer=NaN}onPointerRemove(t){super.onPointerRemove(t),this.onUp(t)}onUp(t){this.state===o.State.BEGAN&&this.endFling(),this.tracker.removeFromTracker(t.pointerId)}activate(t){super.activate(t),this.end()}resetConfig(){super.resetConfig(),this.numberOfPointersRequired=1,this.direction=l}}},3272,[120,3245,3273,3257,3274,3275]);
15678
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"Directions",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"DiagonalDirections",{enumerable:!0,get:function(){return n}});const t={RIGHT:1,LEFT:2,UP:4,DOWN:8},n={UP_RIGHT:5,DOWN_RIGHT:9,UP_LEFT:6,DOWN_LEFT:10}},3273,[]);
15679
- __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 s}});var t=r(d[0]),n=r(d[1]);class s{constructor(t,s){this.x=t,this.y=s,this._magnitude=Math.hypot(this.x,this.y);const o=this._magnitude>n.MINIMAL_RECOGNIZABLE_MAGNITUDE;this.unitX=o?this.x/this._magnitude:0,this.unitY=o?this.y/this._magnitude:0}static fromDirection(t){return o.get(t)??new s(0,0)}static fromVelocity(t,n){const o=t.getVelocity(n);return o?new s(o.x,o.y):null}get magnitude(){return this._magnitude}computeSimilarity(t){return this.unitX*t.unitX+this.unitY*t.unitY}isSimilar(t,n){return this.computeSimilarity(t)>n}}const o=new Map([[t.Directions.LEFT,new s(-1,0)],[t.Directions.RIGHT,new s(1,0)],[t.Directions.UP,new s(0,-1)],[t.Directions.DOWN,new s(0,1)],[t.DiagonalDirections.UP_RIGHT,new s(1,-1)],[t.DiagonalDirections.DOWN_RIGHT,new s(1,1)],[t.DiagonalDirections.UP_LEFT,new s(-1,-1)],[t.DiagonalDirections.DOWN_LEFT,new s(-1,1)]])},3274,[3273,3255]);
15680
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.isPointerInBounds=function(t,{x:n,y:o}){const l=t.getBoundingClientRect();return n>=l.left&&n<=l.right&&o>=l.top&&o<=l.bottom},Object.defineProperty(e,"PointerTypeMapping",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"degToRad",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"coneToDeviation",{enumerable:!0,get:function(){return l}}),e.calculateViewScale=function(t){const n=getComputedStyle(t),o={scaleX:1,scaleY:1};if(void 0!==n.scale&&'none'!==n.scale){const t=n.scale.split(' ');t[0]&&(o.scaleX=parseFloat(t[0])),o.scaleY=t[1]?parseFloat(t[1]):parseFloat(t[0])}const l=new RegExp(/matrix\((.+)\)/).exec(n.transform)?.[1];if(l){const t=l.split(', ');o.scaleX*=parseFloat(t[0]),o.scaleY*=parseFloat(t[3])}return o},e.tryExtractStylusData=function(o){if(n.get(o.pointerType)!==t.PointerType.STYLUS)return;const l=o.azimuthAngle,M=o.altitudeAngle;if(0===o.tiltX&&0===o.tiltY){if(void 0===l||void 0===M)return{tiltX:0,tiltY:0,azimuthAngle:Math.PI/2,altitudeAngle:Math.PI/2,pressure:o.pressure};const{tiltX:t,tiltY:n}=h(M,l);return{tiltX:t,tiltY:n,azimuthAngle:l,altitudeAngle:M,pressure:o.pressure}}const{altitudeAngle:u,azimuthAngle:c}=s(o.tiltX,o.tiltY);return{tiltX:o.tiltX,tiltY:o.tiltY,azimuthAngle:c,altitudeAngle:u,pressure:o.pressure}},Object.defineProperty(e,"RNSVGElements",{enumerable:!0,get:function(){return M}}),e.isRNSVGElement=function(t){const n=Object.getPrototypeOf(t).constructor.name;return M.has(n)&&Object.hasOwn(t,'elementRef')},e.isRNSVGNode=function(t){if(t.props.ref?.rngh)return!1;return'WebShape'===Object.getPrototypeOf(t?.type)?.name||M.has(t?.type?.displayName)};var t=r(d[0]);const n=new Map([['mouse',t.PointerType.MOUSE],['touch',t.PointerType.TOUCH],['pen',t.PointerType.STYLUS],['none',t.PointerType.OTHER]]),o=t=>t*Math.PI/180,l=t=>Math.cos(o(t/2));function s(t,n){const o=t*Math.PI/180,l=n*Math.PI/180;let s=0;if(0===t)n>0?s=Math.PI/2:n<0&&(s=3*Math.PI/2);else if(0===n)t<0&&(s=Math.PI);else if(90===Math.abs(t)||90===Math.abs(n))s=0;else{const t=Math.tan(o),n=Math.tan(l);s=Math.atan2(n,t),s<0&&(s+=2*Math.PI)}let h=0;return h=90===Math.abs(t)||90===Math.abs(n)?0:0===t?Math.PI/2-Math.abs(l):0===n?Math.PI/2-Math.abs(o):Math.atan(1/Math.sqrt(Math.pow(Math.tan(o),2)+Math.pow(Math.tan(l),2))),{altitudeAngle:h,azimuthAngle:s}}function h(t,n){const o=180/Math.PI;let l=0,s=0;if(0===t&&(0!==n&&n!==2*Math.PI||(l=Math.PI/2),n===Math.PI/2&&(s=Math.PI/2),n===Math.PI&&(l=-Math.PI/2),n===3*Math.PI/2&&(s=-Math.PI/2),n>0&&n<Math.PI/2&&(l=Math.PI/2,s=Math.PI/2),n>Math.PI/2&&n<Math.PI&&(l=-Math.PI/2,s=Math.PI/2),n>Math.PI&&n<3*Math.PI/2&&(l=-Math.PI/2,s=-Math.PI/2),n>3*Math.PI/2&&n<2*Math.PI&&(l=Math.PI/2,s=-Math.PI/2)),0!==t){const o=Math.tan(t);l=Math.atan(Math.cos(n)/o),s=Math.atan(Math.sin(n)/o)}return{tiltX:Math.round(l*o),tiltY:Math.round(s*o)}}const M=new Set(['Circle','ClipPath','Ellipse','ForeignObject','G','Image','Line','Marker','Mask','Path','Pattern','Polygon','Polyline','Rect','Svg','Symbol','TSpan','Text','TextPath','Use'])},3275,[3259]);
15681
- __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var s=e(r(d[0]));r(d[1]);var n=r(d[2]),o=r(d[3]),u=e(r(d[4]));class h extends u.default{shouldActivateOnStart=!1;disallowInterruption=!1;startX=0;startY=0;minDistSq=o.DEFAULT_TOUCH_SLOP*o.DEFAULT_TOUCH_SLOP;init(t,e){super.init(t,e),this.shouldCancelWhenOutside=!0;const s=this.delegate.view;this.restoreViewStyles(s),this.buttonRole='button'===s.getAttribute('role')}updateGestureConfig(e){let{enabled:n=!0}=e,o=(0,s.default)(e,t);super.updateGestureConfig(Object.assign({enabled:n},o)),void 0!==this.config.shouldActivateOnStart&&(this.shouldActivateOnStart=this.config.shouldActivateOnStart),void 0!==this.config.disallowInterruption&&(this.disallowInterruption=this.config.disallowInterruption);const u=this.delegate.view;this.restoreViewStyles(u)}restoreViewStyles(t){t&&(t.style.touchAction='auto',t.style.WebkitTouchCallout='auto')}onPointerDown(t){this.tracker.addToTracker(t),super.onPointerDown(t),this.newPointerAction(),this.tryToSendTouchEvent(t)}onPointerAdd(t){this.tracker.addToTracker(t),super.onPointerAdd(t),this.newPointerAction()}newPointerAction(){const t=this.tracker.getAbsoluteCoordsAverage();if(this.startX=t.x,this.startY=t.y,this.state!==n.State.UNDETERMINED)return;this.begin();const e=this.delegate.view.hasAttribute('rnghtext');(this.buttonRole||e)&&this.activate()}onPointerMove(t){this.tracker.track(t);const e=this.tracker.getAbsoluteCoordsAverage(),s=this.startX-e.x,o=this.startY-e.y;s*s+o*o>=this.minDistSq&&(this.buttonRole&&this.state===n.State.ACTIVE?this.cancel():this.buttonRole||this.state!==n.State.BEGAN||this.activate())}onPointerLeave(){this.state!==n.State.BEGAN&&this.state!==n.State.ACTIVE||this.cancel()}onPointerUp(t){super.onPointerUp(t),this.onUp(t)}onPointerRemove(t){super.onPointerRemove(t),this.onUp(t)}onUp(t){this.tracker.removeFromTracker(t.pointerId),0===this.tracker.trackedPointersCount&&(this.state===n.State.ACTIVE?this.end():this.fail())}shouldRecognizeSimultaneously(t){if(super.shouldRecognizeSimultaneously(t))return!0;if(t instanceof h&&t.state===n.State.ACTIVE&&t.disallowsInterruption())return!1;const e=!this.disallowInterruption;return(this.state!==n.State.ACTIVE||t.state!==n.State.ACTIVE||!e)&&(this.state===n.State.ACTIVE&&e&&t.handlerTag>0)}shouldBeCancelledByOther(t){return!this.disallowInterruption}disallowsInterruption(){return this.disallowInterruption}isButton(){return this.buttonRole}}},3276,[120,136,3245,3255,3257]);
15682
- __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 n}});var e,o=r(d[0]),t=(e=o)&&e.__esModule?e:{default:e};class n extends t.default{onPointerDown(e){this.tracker.addToTracker(e),super.onPointerDown(e),this.begin(),this.tryToSendTouchEvent(e)}onPointerAdd(e){this.tracker.addToTracker(e),super.onPointerAdd(e)}onPointerMove(e){this.tracker.track(e),super.onPointerMove(e)}onPointerOutOfBounds(e){this.tracker.track(e),super.onPointerOutOfBounds(e)}onPointerUp(e){super.onPointerUp(e),this.tracker.removeFromTracker(e.pointerId)}onPointerRemove(e){super.onPointerRemove(e),this.tracker.removeFromTracker(e.pointerId)}}},3277,[3257]);
15683
- __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var e=r(d[0]),s=t(r(d[1])),n=t(r(d[2]));class o extends n.default{transformNativeEvent(){return Object.assign({},super.transformNativeEvent(),{stylusData:this.stylusData})}onPointerMoveOver(t){s.default.instance.recordHandlerIfNotPresent(this),this.tracker.addToTracker(t),this.stylusData=t.stylusData,super.onPointerMoveOver(t),this.state===e.State.UNDETERMINED&&(this.begin(),this.activate())}onPointerMoveOut(t){this.tracker.removeFromTracker(t.pointerId),this.stylusData=t.stylusData,super.onPointerMoveOut(t),this.end()}onPointerMove(t){this.tracker.track(t),this.stylusData=t.stylusData,super.onPointerMove(t)}onPointerCancel(t){super.onPointerCancel(t),this.reset()}}},3278,[3245,3258,3257]);
15684
- __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 c}});var t=e(r(_d[0])),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),u=e(r(_d[2])),o=r(_d[3]);class s extends u.default{get isNative(){return!0}onRawEvent(e){if(super.onRawEvent(e),!e.isFinal&&(0,o.TEST_MIN_IF_NOT_NAN)((0,o.VEC_LEN_SQ)({x:e.deltaX,y:e.deltaY}),10)&&this.config.disallowInterruption){const u=Object.values(n.getNodes()).filter(e=>{const{handlerTag:n,view:u,isGestureRunning:o}=e;return n!==this.handlerTag&&o&&e instanceof t.default&&u&&this.view.contains(u)});for(const t of u)t.forceInvalidate(e)}}}var c=s},3279,[3280,3284,3287,3286]);
15685
- __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]),s=(e=t)&&e.__esModule?e:{default:e},n=r(d[1]);class l extends s.default{get isDiscrete(){return!0}get shouldEnableGestureOnSetup(){return!0}shouldFailUnderCustomCriteria({x:e,y:t,deltaX:s,deltaY:l},{maxDeltaX:u,maxDeltaY:o,maxDistSq:c,shouldCancelWhenOutside:_}){return!(!_||this.isPointInView({x:e,y:t}))||((0,n.TEST_MAX_IF_NOT_NAN)(Math.abs(s),u)||(0,n.TEST_MAX_IF_NOT_NAN)(Math.abs(l),o)||(0,n.TEST_MAX_IF_NOT_NAN)(Math.abs(l*l+s*s),c))}transformNativeEvent({center:{x:e,y:t}}){const s=this.view.getBoundingClientRect();return{absoluteX:e,absoluteY:t,x:e-s.left,y:t-s.top}}isGestureEnabledForEvent({minPointers:e,maxPointers:t,maxDeltaX:s,maxDeltaY:n,maxDistSq:l,shouldCancelWhenOutside:u},o,{maxPointers:c,center:_,deltaX:h,deltaY:x}){const b=c>=e&&c<=t;return this.shouldFailUnderCustomCriteria(Object.assign({},_,{deltaX:h,deltaY:x}),{maxDeltaX:s,maxDeltaY:n,maxDistSq:l,shouldCancelWhenOutside:u})||!b&&this.isGestureRunning?{failed:!0}:{success:b}}}var u=l},3280,[3281,3286]);
15686
- __d(function(g,r,i,a,m,_e,_d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return E}});var s=e(r(_d[0])),n=e(r(_d[1])),o=e(r(_d[2])),u=r(_d[3]),h=r(_d[4]),l=(function(t){if(t&&t.__esModule)return t;var e={};return t&&Object.keys(t).forEach(function(s){var n=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,n.get?n:{enumerable:!0,get:function(){return t[s]}})}),e.default=t,e})(r(_d[5])),d=r(_d[6]);let f=0;function c(t,e){if(t)if('function'==typeof t)t(e);else if('__getHandler'in t&&'function'==typeof t.__getHandler){c(t.__getHandler(),e)}else if('__nodeConfig'in t){const{argMapping:s}=t.__nodeConfig;if(Array.isArray(s))for(const[n,[o,u]]of s.entries())if(o in e.nativeEvent){const s=e.nativeEvent[o];u&&u.setValue?u.setValue(s):t.__nodeConfig.argMapping[n]=[o,s]}}}function v(t){return null==t?[]:Array.isArray(t)?t:[t]}var E=class{isGestureRunning=!1;view=null;hasGestureFailed=!1;hammer=null;initialRotation=null;config={};previousState=u.State.UNDETERMINED;pendingGestures={};oldState=u.State.UNDETERMINED;lastSentState=null;get id(){return`${this.name}${this.gestureInstance}`}get isNative(){return!1}get isDiscrete(){return!1}get shouldEnableGestureOnSetup(){throw new Error('Must override GestureHandler.shouldEnableGestureOnSetup')}constructor(){this.gestureInstance=f++,this.hasCustomActivationCriteria=!1}getConfig(){return this.config}onWaitingEnded(t){}removePendingGesture(t){delete this.pendingGestures[t]}addPendingGesture(t){this.pendingGestures[t.id]=t}isGestureEnabledForEvent(t,e,s){return{success:!0}}get NativeGestureClass(){throw new Error('Must override GestureHandler.NativeGestureClass')}updateHasCustomActivationCriteria(t){return!0}clearSelfAsPending=()=>{if(Array.isArray(this.config.waitFor))for(const t of this.config.waitFor)t.removePendingGesture(this.id)};updateGestureConfig(e){let{enabled:n=!0}=e,o=(0,s.default)(e,t);if(this.clearSelfAsPending(),this.config=this.ensureConfig(Object.assign({enabled:n},o)),this.hasCustomActivationCriteria=this.updateHasCustomActivationCriteria(this.config),Array.isArray(this.config.waitFor))for(const t of this.config.waitFor)t.addPendingGesture(this);return this.hammer&&this.sync(),this.config}destroy=()=>{this.clearSelfAsPending(),this.hammer&&(this.hammer.stop(!1),this.hammer.destroy()),this.hammer=null};isPointInView=({x:t,y:e})=>{const s=this.view.getBoundingClientRect();return t>=s.left&&t<=s.right&&e>=s.top&&e<=s.bottom};getState(t){return 0==t?0:h.EventMap[t]}transformEventData(t){const{eventType:e,maxPointers:s}=t,n=t.changedPointers[0],o=this.isPointInView({x:n.clientX,y:n.clientY}),u=this.getState(e);return u!==this.previousState&&(this.oldState=this.previousState,this.previousState=u),{nativeEvent:Object.assign({numberOfPointers:s,state:u,pointerInside:o},this.transformNativeEvent(t),{handlerTag:this.handlerTag,target:this.ref,oldState:u!==this.previousState||4!=u?this.oldState:void 0}),timeStamp:Date.now()}}transformNativeEvent(t){return{}}sendEvent=t=>{const{onGestureHandlerEvent:e,onGestureHandlerStateChange:s}=this.propsRef.current,n=this.transformEventData(t);c(e,n),this.lastSentState!==n.nativeEvent.state&&(this.lastSentState=n.nativeEvent.state,c(s,n))};cancelPendingGestures(t){for(const e of Object.values(this.pendingGestures))e&&e.isGestureRunning&&(e.hasGestureFailed=!0,e.cancelEvent(t))}notifyPendingGestures(){for(const t of Object.values(this.pendingGestures))t&&t.onWaitingEnded(this)}onGestureEnded(t){this.isGestureRunning=!1,this.cancelPendingGestures(t)}forceInvalidate(t){this.isGestureRunning&&(this.hasGestureFailed=!0,this.cancelEvent(t))}cancelEvent(t){this.notifyPendingGestures(),this.sendEvent(Object.assign({},t,{eventType:n.default.INPUT_CANCEL,isFinal:!0})),this.onGestureEnded(t)}onRawEvent({isFirst:t}){t&&(this.hasGestureFailed=!1)}shouldUseTouchEvents(t){return t.simultaneousHandlers?.some(t=>t.isNative)??!1}setView(t,e){if(null==t)return this.destroy(),void(this.view=null);const s='ontouchstart'in window;this.propsRef=e,this.ref=t,this.view=(0,o.default)(t),this.hammer=s&&this.shouldUseTouchEvents(this.config)?new n.default.Manager(this.view,{inputClass:n.default.TouchInput}):new n.default.Manager(this.view),this.oldState=u.State.UNDETERMINED,this.previousState=u.State.UNDETERMINED,this.lastSentState=null;const{NativeGestureClass:h}=this,l=new h(this.getHammerConfig());this.hammer.add(l),this.hammer.on('hammer.input',t=>{if(!this.config.enabled)return this.hasGestureFailed=!1,void(this.isGestureRunning=!1);this.onRawEvent(t),null===this.initialRotation&&0!==t.rotation&&(this.initialRotation=t.rotation),t.isFinal&&setTimeout(()=>{this.initialRotation=null,this.hasGestureFailed=!1})}),this.setupEvents(),this.sync()}setupEvents(){this.isDiscrete||(this.hammer.on(`${this.name}start`,t=>this.onStart(t)),this.hammer.on(`${this.name}end ${this.name}cancel`,t=>{this.onGestureEnded(t)})),this.hammer.on(this.name,t=>this.onGestureActivated(t))}onStart({deltaX:t,deltaY:e,rotation:s}){this.oldState=u.State.UNDETERMINED,this.previousState=u.State.UNDETERMINED,this.lastSentState=null,this.isGestureRunning=!0,this.__initialX=t,this.__initialY=e,this.initialRotation=s}onGestureActivated(t){this.sendEvent(t)}onSuccess(){}_getPendingGestures(){if(Array.isArray(this.config.waitFor)&&this.config.waitFor.length){return this.config.waitFor.filter(({hasGestureFailed:t})=>!1===t)}return[]}getHammerConfig(){return{pointers:this.config.minPointers===this.config.maxPointers?this.config.minPointers:0}}sync=()=>{const t=this.hammer.get(this.name);if(!t)return;const e=this.getHammerConfig();t.set(Object.assign({},e,{enable:(t,e)=>{if(!this.config.enabled)return this.isGestureRunning=!1,this.hasGestureFailed=!1,!1;if(!e||!t.options||void 0===e.maxPointers)return this.shouldEnableGestureOnSetup;if(this.hasGestureFailed)return!1;if(!this.isDiscrete){if(this.isGestureRunning)return!0;if(this._stillWaiting=this._getPendingGestures(),this._stillWaiting.length){for(const t of this._stillWaiting)if(!t.isDiscrete&&t.isGestureRunning)return this.hasGestureFailed=!0,this.isGestureRunning=!1,!1;return!1}}if(!this.hasCustomActivationCriteria)return!0;const s=null==this.initialRotation?0:e.rotation-this.initialRotation,{success:n,failed:o}=this.isGestureEnabledForEvent(this.getConfig(),t,Object.assign({},e,{deltaRotation:s}));return o&&(this.simulateCancelEvent(e),this.hasGestureFailed=!0),n}}))};simulateCancelEvent(t){}ensureConfig(t){const e=Object.assign({},t);if('minDist'in t&&(e.minDist=t.minDist,e.minDistSq=e.minDist*e.minDist),'minVelocity'in t&&(e.minVelocity=t.minVelocity,e.minVelocitySq=e.minVelocity*e.minVelocity),'maxDist'in t&&(e.maxDist=t.maxDist,e.maxDistSq=t.maxDist*t.maxDist),e.waitFor='waitFor'in t?v(t.waitFor).map(({handlerTag:t})=>l.getHandler(t)).filter(t=>t):null,'simultaneousHandlers'in t){const s=this.shouldUseTouchEvents(this.config);e.simultaneousHandlers=v(t.simultaneousHandlers).map(t=>'number'==typeof t?l.getHandler(t):l.getHandler(t.handlerTag)).filter(t=>t),s!==this.shouldUseTouchEvents(e)&&(0,d.ghQueueMicrotask)(()=>{this.destroy(),this.setView(this.ref,this.propsRef)})}else e.simultaneousHandlers=null;return['minPointers','maxPointers','minDist','maxDist','maxDistSq','minVelocitySq','minDistSq','minVelocity','failOffsetXStart','failOffsetYStart','failOffsetXEnd','failOffsetYEnd','activeOffsetXStart','activeOffsetXEnd','activeOffsetYStart','activeOffsetYEnd'].forEach(t=>{void 0===e[t]&&(e[t]=Number.NaN)}),e}}},3281,[120,3282,122,3245,3283,3284,3285]);
15642
+ __d(function(g,_r,_i,_a,m,e,d){"use strict";function t(t){return'object'==typeof t&&null!==t&&!Array.isArray(t)}function n(t){return Array.isArray(t)?t.filter(t=>'string'==typeof t&&t.length>0):[]}function a(n){if(!Array.isArray(n))return[];const a=[];for(const r of n)t(r)&&'string'==typeof r.label&&r.label.length>0&&(a.includes(r.label)||a.push(r.label));return a}function r(t,n){return t.find(t=>t.kind===n)}function i(t){return t?`data:image/jpeg;base64,${t.base64}`:null}Object.defineProperty(e,'__esModule',{value:!0}),e.toTrackSummary=function(r,i){if(!t(r))return null;if('string'!=typeof r.trackId||0===r.trackId.length)return null;if('number'!=typeof r.deviceId)return null;if('string'!=typeof r.className||0===r.className.length)return null;if('number'!=typeof r.firstSeen||'number'!=typeof r.lastSeen)return null;const l='string'==typeof r.bestEventId&&r.bestEventId.length>0?r.bestEventId:r.trackId;return Object.assign({trackId:r.trackId,deviceId:r.deviceId,cameraName:i,className:r.className,label:'string'==typeof r.label&&r.label.length>0?r.label:void 0,importance:'number'==typeof r.importance?r.importance:void 0,importanceReason:'string'==typeof r.importanceReason?r.importanceReason:void 0,firstSeen:r.firstSeen,lastSeen:r.lastSeen,state:'string'==typeof r.state?r.state:'idle',active:!0===r.active,zonesVisited:n(r.zonesVisited),audioLabels:a(r.audioLabels),bestEventId:l},'string'==typeof r.producingDeviceName&&r.producingDeviceName.length>0?{producingDeviceName:r.producingDeviceName}:{})},e.trackLabels=function(t){const n=[t.className];void 0===t.label||n.includes(t.label)||n.push(t.label);for(const a of t.audioLabels)n.includes(a)||n.push(a);return n},e.trackLocationLabel=function(t){return t.producingDeviceName??t.cameraName},e.trackTitle=function(t,n){return t.producingDeviceName??t.label??n},e.passesImportanceFilter=function(t,n){return n<=0||(t??0)>=n},e.hasAnyImportance=function(t){return t.some(t=>'number'==typeof t.importance)},e.sortTracks=function(t,n){const a=[...t];return'time'===n?a.sort((t,n)=>n.lastSeen-t.lastSeen):a.sort((t,n)=>{const a=t.importance??Number.NEGATIVE_INFINITY,r=n.importance??Number.NEGATIVE_INFINITY;return a!==r?r-a:n.lastSeen-t.lastSeen})},e.parseMediaFiles=function(n){if(!Array.isArray(n))return[];const a=[];for(const r of n){if(!t(r))continue;const n='string'==typeof r.key&&r.key.length>0?r.key:null,i='string'==typeof r.kind&&r.kind.length>0?r.kind:null,l='string'==typeof r.base64&&r.base64.length>0?r.base64:null,s='number'==typeof r.timestamp?r.timestamp:0;null!==n&&null!==i&&null!==l&&a.push({key:n,kind:i,base64:l,timestamp:s})}return a},e.pickMediaByKind=r,e.mediaDataUri=i,e.resolveTrackDetailImages=function(t,n){const a=r(n,'thumbnail')??r(t,'crop'),l=r(t,'fullFrameBoxed'),s=r(n,'keyFrame')??r(n,'keyFrameSmall')??r(t,'fullFrame')??r(n,'firstFrame')??r(n,'lastFrame');return{cropUri:i(a),fullFrameUri:i(s),fullFrameBoxedUri:i(l),hasServerBoxed:void 0!==l}},e.buildTrackGallery=function(t,n){const a=new Map;for(const r of[...t,...n])a.has(r.key)||a.set(r.key,r);const r=t=>{const n=l.indexOf(t);return-1===n?l.length:n};return[...a.values()].sort((t,n)=>{const a=r(t.kind),i=r(n.kind);return a!==i?a-i:t.timestamp!==n.timestamp?t.timestamp-n.timestamp:t.key<n.key?-1:t.key>n.key?1:0})},e.cleanFrameKey=function(t){const n=r(t,'keyFrame')??r(t,'keyFrameSmall')??r(t,'fullFrame')??r(t,'firstFrame')??r(t,'lastFrame');return n?.key??null},Object.defineProperty(e,"FRAME_KINDS",{enumerable:!0,get:function(){return s}}),e.mediaKindLabel=function(t,n){const a=o[t];return void 0===a?t:n(a)},e.shouldRenderFaceSection=function(t){return null!=t},e.toScoredResult=function(n){if(!t(n))return null;if('string'!=typeof n.id||0===n.id.length)return null;if('number'!=typeof n.deviceId)return null;if('string'!=typeof n.className||0===n.className.length)return null;if('number'!=typeof n.timestamp)return null;if('number'!=typeof n.score)return null;const a='string'==typeof n.mediaKey&&n.mediaKey.length>0?n.mediaKey:null,r='string'==typeof n.trackId&&n.trackId.length>0?n.trackId:null,i=a??r??n.id;return Object.assign({id:n.id,deviceId:n.deviceId,timestamp:n.timestamp,className:n.className,label:'string'==typeof n.label&&n.label.length>0?n.label:void 0,score:n.score,thumbId:i},null!==r?{trackId:r}:{})},e.scoredToTrackSummary=function(t,n){return{trackId:t.trackId??t.id,deviceId:t.deviceId,cameraName:n,className:t.className,label:t.label,firstSeen:t.timestamp,lastSeen:t.timestamp,state:'idle',active:!1,zonesVisited:[],audioLabels:[],bestEventId:t.thumbId}};const l=['crop','thumbnail','thumbnailSmall','faceCrop','plateCrop','fullFrame','fullFrameBoxed','keyFrame','keyFrameSmall','firstFrame','lastFrame','snapshot'];const s=new Set(['fullFrame','fullFrameBoxed','keyFrame','keyFrameSmall']);const o={crop:'v2.mediaKind.crop',thumbnail:'v2.mediaKind.thumbnail',thumbnailSmall:'v2.mediaKind.thumbnail',faceCrop:'v2.mediaKind.faceCrop',plateCrop:'v2.mediaKind.plateCrop',fullFrame:'v2.mediaKind.fullFrame',fullFrameBoxed:'v2.mediaKind.fullFrameBoxed',keyFrame:'v2.mediaKind.keyFrame',keyFrameSmall:'v2.mediaKind.keyFrame',firstFrame:'v2.mediaKind.firstFrame',lastFrame:'v2.mediaKind.lastFrame',snapshot:'v2.mediaKind.snapshot'}},3237,[]);
15643
+ __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,"TrackDetailModal",{enumerable:!0,get:function(){return k}});var t=r(d[0]),n=r(d[1]),o=e(r(d[2])),l=e(r(d[3])),u=e(r(d[4])),c=r(d[5]),s=r(d[6]),f=r(d[7]),p=r(d[8]);const k=(0,n.memo)(function(e){const n=(0,t.c)(14),{track:u,onSeek:k,onClose:_}=e,{colors:j}=(0,s.useTheme)(),T=(0,c.useSafeAreaInsets)(),x=null!==u,y=j.background+"F2";let C,h,v,M;return n[0]!==T.top||n[1]!==y?(C=[b.backdrop,{backgroundColor:y,paddingTop:T.top}],n[0]=T.top,n[1]=y,n[2]=C):C=n[2],n[3]!==_||n[4]!==k||n[5]!==u?(h=null!==u?(0,p.jsx)(f.TrackDetailView,{track:u,onSeek:k,onClose:_}):null,n[3]=_,n[4]=k,n[5]=u,n[6]=h):h=n[6],n[7]!==C||n[8]!==h?(v=(0,p.jsx)(l.default,{style:C,children:h}),n[7]=C,n[8]=h,n[9]=v):v=n[9],n[10]!==_||n[11]!==x||n[12]!==v?(M=(0,p.jsx)(o.default,{visible:x,animationType:"slide",transparent:!0,onRequestClose:_,children:v}),n[10]=_,n[11]=x,n[12]=v,n[13]=M):M=n[13],M}),b=u.default.create({backdrop:{flex:1}})},3238,[15,17,245,20,33,466,2587,3239,10]);
15644
+ __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,"TrackDetailView",{enumerable:!0,get:function(){return T}});var t=r(d[0]),o=r(d[1]),n=e(r(d[2])),s=e(r(d[3])),l=e(r(d[4])),c=e(r(d[5])),u=e(r(d[6])),f=r(d[7]),g=r(d[8]),h=r(d[9]),b=r(d[10]),y=r(d[11]),S=r(d[12]),p=r(d[13]),x=r(d[14]),I=r(d[15]),j=r(d[16]),k=r(d[17]),v=r(d[18]),C=r(d[19]),A=r(d[20]),P=r(d[21]),w=r(d[22]),F=r(d[23]);const N=1.7777777777777777;function R(e){return new Date(e).toLocaleTimeString(void 0,{hour:'2-digit',minute:'2-digit',second:'2-digit'})}const z=(0,o.memo)(function(e){const c=(0,t.c)(30),{file:g,selected:S,onPress:p}=e,{colors:x}=(0,y.useTheme)(),{t:I}=(0,b.useTranslation)(),[j,k]=(0,o.useState)(!1);let v,C;c[0]===Symbol.for("react.memo_cache_sentinel")?(v=()=>k(!1),c[0]=v):v=c[0],c[1]!==g.base64?(C=[g.base64],c[1]=g.base64,c[2]=C):C=c[2],(0,o.useEffect)(v,C);const A=S?x.primary:x.border,P=S?2:u.default.hairlineWidth;let N;c[3]!==A||c[4]!==P?(N={borderColor:A,borderWidth:P},c[3]=A,c[4]=P,c[5]=N):N=c[5];const R=N;let z,T,L,E;c[6]!==x.surface?(z={backgroundColor:x.surface},c[6]=x.surface,c[7]=z):z=c[7],c[8]!==R||c[9]!==z?(T=[D.tile,R,z],c[8]=R,c[9]=z,c[10]=T):T=c[10],c[11]!==x.foregroundSubtle||c[12]!==j||c[13]!==g.base64?(L=j?(0,F.jsx)(n.default,{style:[u.default.absoluteFill,D.center],pointerEvents:"none",children:(0,F.jsx)(h.ImageOff,{size:18,color:x.foregroundSubtle})}):(0,F.jsx)(f.Image,{source:{uri:`data:image/jpeg;base64,${g.base64}`},style:u.default.absoluteFill,contentFit:"cover",cachePolicy:"memory",onError:()=>k(!0)}),c[11]=x.foregroundSubtle,c[12]=j,c[13]=g.base64,c[14]=L):L=c[14],c[15]!==T||c[16]!==L?(E=(0,F.jsx)(n.default,{style:T,children:L}),c[15]=T,c[16]=L,c[17]=E):E=c[17];const G=S?x.foreground:x.foregroundMuted;let M,_,V,B;return c[18]!==G?(M=[D.tileLabel,{color:G}],c[18]=G,c[19]=M):M=c[19],c[20]!==g.kind||c[21]!==I?(_=(0,w.mediaKindLabel)(g.kind,I),c[20]=g.kind,c[21]=I,c[22]=_):_=c[22],c[23]!==M||c[24]!==_?(V=(0,F.jsx)(s.default,{numberOfLines:1,style:M,children:_}),c[23]=M,c[24]=_,c[25]=V):V=c[25],c[26]!==p||c[27]!==V||c[28]!==E?(B=(0,F.jsxs)(l.default,{onPress:p,hitSlop:4,style:D.tileWrap,children:[E,V]}),c[26]=p,c[27]=V,c[28]=E,c[29]=B):B=c[29],B}),T=(0,o.memo)(function(e){const T=(0,t.c)(156),{track:E,onSeek:G,onClose:M,bottomInset:_}=e,{colors:V}=(0,y.useTheme)(),{t:B}=(0,b.useTranslation)(),W=(0,g.useSafeAreaInsets)();let K;T[0]!==E.className?(K=(0,p.colorForEventType)(E.className),T[0]=E.className,T[1]=K):K=T[1];const U=K;let O;T[2]!==E.deviceId?(O=[E.deviceId],T[2]=E.deviceId,T[3]=O):O=T[3];const $=(0,P.useEventKindResolver)(O);let H;T[4]!==$||T[5]!==E?(H=(0,w.trackTitle)(E,$.resolveLabel(E.className)),T[4]=$,T[5]=E,T[6]=H):H=T[6];const Z=H;let X;T[7]!==E?(X=void 0!==E.producingDeviceName?"":(0,w.trackLocationLabel)(E),T[7]=E,T[8]=X):X=T[8];const q=X,[J,Q]=(0,o.useState)(0),[Y,ee]=(0,o.useState)(!1),[te,re]=(0,o.useState)(!1),[oe,ne]=(0,o.useState)(null),[se,le]=(0,o.useState)(void 0),ae=(0,v.useTrackDetailMedia)(E.deviceId,E.bestEventId,E.trackId),ie=ae.gallery;let de,ce;T[9]!==E.label?(de=void 0!==E.label?{label:E.label}:{},T[9]=E.label,T[10]=de):de=T[10],T[11]!==de||T[12]!==E.bestEventId||T[13]!==E.className||T[14]!==E.firstSeen?(ce=Object.assign({id:E.bestEventId,timestamp:E.firstSeen,className:E.className},de),T[11]=de,T[12]=E.bestEventId,T[13]=E.className,T[14]=E.firstSeen,T[15]=ce):ce=T[15];const ue=ce,{data:fe}=(0,A.useTrackFace)(E.deviceId,E.trackId,!0),me=void 0===fe?null:fe;let ge;T[16]!==me?(ge=(0,w.shouldRenderFaceSection)(me),T[16]=me,T[17]=ge):ge=T[17];const he=ge;let be,ye,Se;T[18]===Symbol.for("react.memo_cache_sentinel")?(be=()=>{ne(null)},T[18]=be):be=T[18],T[19]!==E.trackId?(ye=[E.trackId],T[19]=E.trackId,T[20]=ye):ye=T[20],(0,o.useEffect)(be,ye),T[21]!==ie?(Se=(0,w.cleanFrameKey)(ie),T[21]=ie,T[22]=Se):Se=T[22];const pe=oe??Se??ie[0]?.key??null;let xe,Ie,je;T[23]===Symbol.for("react.memo_cache_sentinel")?(xe=()=>{le(void 0)},T[23]=xe):xe=T[23],T[24]!==pe?(Ie=[pe],T[24]=pe,T[25]=Ie):Ie=T[25],(0,o.useEffect)(xe,Ie),T[26]!==pe||T[27]!==ie?(je=ie.find(e=>e.key===pe)??null,T[26]=pe,T[27]=ie,T[28]=je):je=T[28];const ke=je,{detection:ve}=(0,C.useTrackBestDetection)(E.deviceId,E.trackId,E.bestEventId,E.firstSeen,E.lastSeen,te);let Ce;T[29]===Symbol.for("react.memo_cache_sentinel")?(Ce=e=>{e>0&&Q(e)},T[29]=Ce):Ce=T[29];const Ae=Ce;let Pe;T[30]!==J?(Pe=J>0?Math.round(J/N):0,T[30]=J,T[31]=Pe):Pe=T[31];const we=Pe,Fe=(_??W.bottom)+S.SPACING.md,Ne=null===ke?null:`data:image/jpeg;base64,${ke.base64}`;let Re,ze,Te,Le,De,Ee;T[32]!==U?(Re=(0,F.jsx)(n.default,{style:[D.classDot,{backgroundColor:U}]}),T[32]=U,T[33]=Re):Re=T[33],T[34]!==V.foreground?(ze=[D.title,{color:V.foreground}],T[34]=V.foreground,T[35]=ze):ze=T[35],T[36]!==Z||T[37]!==ze?(Te=(0,F.jsx)(s.default,{numberOfLines:1,style:ze,children:Z}),T[36]=Z,T[37]=ze,T[38]=Te):Te=T[38],T[39]!==V.primary||T[40]!==V.primaryForeground||T[41]!==E.importance?(Le="number"==typeof E.importance?(0,F.jsxs)(n.default,{style:[D.importance,{backgroundColor:V.primary}],children:[(0,F.jsx)(h.Star,{size:9,color:V.primaryForeground,fill:V.primaryForeground}),(0,F.jsx)(s.default,{style:[D.importanceText,{color:V.primaryForeground}],children:Math.round(100*E.importance)})]}):null,T[39]=V.primary,T[40]=V.primaryForeground,T[41]=E.importance,T[42]=Le):Le=T[42],T[43]!==Re||T[44]!==Te||T[45]!==Le?(De=(0,F.jsxs)(n.default,{style:D.titleRow,children:[Re,Te,Le]}),T[43]=Re,T[44]=Te,T[45]=Le,T[46]=De):De=T[46],T[47]!==V.foregroundMuted?(Ee=[D.subtitle,{color:V.foregroundMuted}],T[47]=V.foregroundMuted,T[48]=Ee):Ee=T[48];const Ge=q.length>0?`${q} \xb7 `:"";let Me,Ve,Be,We,Ke,Ue,Oe,$e,He,Ze,Xe,qe,Je,Qe,Ye,et,tt,rt,ot,nt,st,lt,at,it;T[49]!==E.firstSeen?(Me=R(E.firstSeen),T[49]=E.firstSeen,T[50]=Me):Me=T[50],T[51]!==E.firstSeen||T[52]!==E.lastSeen?(Ve=E.lastSeen>E.firstSeen?` \u2013 ${R(E.lastSeen)}`:"",T[51]=E.firstSeen,T[52]=E.lastSeen,T[53]=Ve):Ve=T[53],T[54]!==Ee||T[55]!==Ge||T[56]!==Me||T[57]!==Ve?(Be=(0,F.jsxs)(s.default,{style:Ee,children:[Ge,Me,Ve]}),T[54]=Ee,T[55]=Ge,T[56]=Me,T[57]=Ve,T[58]=Be):Be=T[58],T[59]!==De||T[60]!==Be?(We=(0,F.jsxs)(n.default,{style:D.headerText,children:[De,Be]}),T[59]=De,T[60]=Be,T[61]=We):We=T[61],T[62]===Symbol.for("react.memo_cache_sentinel")?(Ke=()=>re(!0),T[62]=Ke):Ke=T[62],T[63]!==B?(Ue=B("v2.tracks.metadata"),T[63]=B,T[64]=Ue):Ue=T[64],T[65]!==V.surface?(Oe=[D.iconBtn,{backgroundColor:V.surface}],T[65]=V.surface,T[66]=Oe):Oe=T[66],T[67]!==V.foreground?($e=(0,F.jsx)(h.Info,{size:18,color:V.foreground}),T[67]=V.foreground,T[68]=$e):$e=T[68],T[69]!==Ue||T[70]!==Oe||T[71]!==$e?(He=(0,F.jsx)(l.default,{onPress:Ke,hitSlop:10,accessibilityRole:"button",accessibilityLabel:Ue,style:Oe,children:$e}),T[69]=Ue,T[70]=Oe,T[71]=$e,T[72]=He):He=T[72],T[73]!==V.foreground||T[74]!==V.surface||T[75]!==M?(Ze=M?(0,F.jsx)(l.default,{onPress:M,hitSlop:10,style:[D.iconBtn,{backgroundColor:V.surface}],children:(0,F.jsx)(h.X,{size:20,color:V.foreground})}):null,T[73]=V.foreground,T[74]=V.surface,T[75]=M,T[76]=Ze):Ze=T[76],T[77]!==We||T[78]!==He||T[79]!==Ze?(Xe=(0,F.jsxs)(n.default,{style:D.header,children:[We,He,Ze]}),T[77]=We,T[78]=He,T[79]=Ze,T[80]=Xe):Xe=T[80],T[81]!==V.foregroundSubtle?(qe=[D.sectionLabel,{color:V.foregroundSubtle}],T[81]=V.foregroundSubtle,T[82]=qe):qe=T[82],T[83]!==B?(Je=B("v2.tracks.bestShot","Best shot"),T[83]=B,T[84]=Je):Je=T[84],T[85]!==qe||T[86]!==Je?(Qe=(0,F.jsx)(s.default,{style:qe,children:Je}),T[85]=qe,T[86]=Je,T[87]=Qe):Qe=T[87],T[88]===Symbol.for("react.memo_cache_sentinel")?(Ye=[D.hero,{backgroundColor:"#000"}],et=e=>Ae(e.nativeEvent.layout.width),T[88]=Ye,T[89]=et):(Ye=T[88],et=T[89]),T[90]!==J||T[91]!==we||T[92]!==ue||T[93]!==E.bestEventId?(tt=J>0&&we>0?(0,F.jsx)(x.ZoomableImage,{width:J,height:we,resetKey:`hero:${E.bestEventId}`,children:(0,F.jsx)(I.EventThumb,{event:ue,width:J,height:we,contentFit:"contain"})}):null,T[90]=J,T[91]=we,T[92]=ue,T[93]=E.bestEventId,T[94]=tt):tt=T[94],T[95]!==tt?(rt=(0,F.jsx)(n.default,{style:Ye,onLayout:et,children:tt}),T[95]=tt,T[96]=rt):rt=T[96],T[97]!==V.foregroundMuted||T[98]!==V.foregroundSubtle||T[99]!==J||T[100]!==pe||T[101]!==we||T[102]!==ie||T[103]!==se||T[104]!==Ne||T[105]!==B?(ot=ie.length>0?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(s.default,{style:[D.sectionLabel,{color:V.foregroundSubtle}],children:B("v2.tracks.media","Media")}),(0,F.jsx)(n.default,{style:[D.frame,{height:we,backgroundColor:"#000"}],children:null!==Ne&&we>0?(0,F.jsx)(x.ZoomableImage,{width:J,height:we,resetKey:`media:${pe??"none"}`,contentAspect:se,children:(0,F.jsx)(f.Image,{source:{uri:Ne},style:u.default.absoluteFill,contentFit:"contain",cachePolicy:"memory-disk",allowDownscaling:!0,recyclingKey:pe??void 0,onLoad:e=>{const{width:t,height:o}=e.source;t>0&&o>0&&le(t/o)}})}):(0,F.jsx)(n.default,{style:[u.default.absoluteFill,D.center],children:(0,F.jsx)(h.ImageOff,{size:40,color:V.foregroundSubtle})})}),ie.length>1?(0,F.jsxs)(s.default,{style:[D.counter,{color:V.foregroundMuted}],children:[Math.max(0,ie.findIndex(e=>e.key===pe))+1,"/",ie.length]}):null,(0,F.jsx)(c.default,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:D.strip,children:ie.map(e=>(0,F.jsx)(z,{file:e,selected:e.key===pe,onPress:()=>ne(e.key)},e.key))})]}):null,T[97]=V.foregroundMuted,T[98]=V.foregroundSubtle,T[99]=J,T[100]=pe,T[101]=we,T[102]=ie,T[103]=se,T[104]=Ne,T[105]=B,T[106]=ot):ot=T[106],T[107]!==V.backgroundElevated||T[108]!==V.foreground||T[109]!==V.foregroundMuted||T[110]!==V.foregroundSubtle||T[111]!==V.primary||T[112]!==V.primaryForeground||T[113]!==V.surface||T[114]!==me||T[115]!==he||T[116]!==B?(nt=he&&null!==me?(0,F.jsxs)(F.Fragment,{children:[(0,F.jsx)(s.default,{style:[D.sectionLabel,{color:V.foregroundSubtle}],children:B("v2.tracks.person")}),(0,F.jsxs)(n.default,{style:[D.personCard,{backgroundColor:V.surface}],children:[me.base64?(0,F.jsx)(f.Image,{source:{uri:`data:image/jpeg;base64,${me.base64}`},style:[D.personFace,{backgroundColor:V.backgroundElevated}],contentFit:"cover"}):(0,F.jsx)(n.default,{style:[D.personFace,D.personFaceEmpty,{backgroundColor:V.backgroundElevated}],children:(0,F.jsx)(h.UserRound,{size:20,color:V.foregroundMuted})}),(0,F.jsx)(s.default,{numberOfLines:1,style:[D.personName,{color:me.identityName?V.foreground:V.foregroundMuted}],children:me.identityName??B("v2.tracks.notAssigned")}),(0,F.jsxs)(l.default,{onPress:()=>ee(!0),accessibilityRole:"button",accessibilityLabel:B("v2.tracks.assignFaceTitle"),style:[D.assignBtn,{backgroundColor:V.primary}],children:[(0,F.jsx)(h.UserRoundPlus,{size:14,color:V.primaryForeground}),(0,F.jsx)(s.default,{style:[D.assignBtnText,{color:V.primaryForeground}],children:me.assigned?B("v2.tracks.changePerson"):B("v2.tracks.assignPerson")})]})]})]}):null,T[107]=V.backgroundElevated,T[108]=V.foreground,T[109]=V.foregroundMuted,T[110]=V.foregroundSubtle,T[111]=V.primary,T[112]=V.primaryForeground,T[113]=V.surface,T[114]=me,T[115]=he,T[116]=B,T[117]=nt):nt=T[117],T[118]!==V||T[119]!==B||T[120]!==E.zonesVisited?(st=E.zonesVisited.length>0?(0,F.jsx)(L,{label:B("v2.tracks.zones","Zones"),value:E.zonesVisited.join(", "),colors:V}):null,T[118]=V,T[119]=B,T[120]=E.zonesVisited,T[121]=st):st=T[121],T[122]!==V||T[123]!==B||T[124]!==E.audioLabels?(lt=E.audioLabels.length>0?(0,F.jsx)(L,{label:B("v2.tracks.audio","Audio"),value:E.audioLabels.join(", "),colors:V}):null,T[122]=V,T[123]=B,T[124]=E.audioLabels,T[125]=lt):lt=T[125],T[126]!==st||T[127]!==lt?(at=(0,F.jsxs)(n.default,{style:D.meta,children:[st,lt]}),T[126]=st,T[127]=lt,T[128]=at):at=T[128],T[129]!==Qe||T[130]!==rt||T[131]!==ot||T[132]!==nt||T[133]!==at?(it=(0,F.jsxs)(c.default,{contentContainerStyle:D.scroll,showsVerticalScrollIndicator:!1,children:[Qe,rt,ot,nt,at]}),T[129]=Qe,T[130]=rt,T[131]=ot,T[132]=nt,T[133]=at,T[134]=it):it=T[134];const dt=Y?me:null;let ct,ut;T[135]===Symbol.for("react.memo_cache_sentinel")?(ct=()=>ee(!1),T[135]=ct):ct=T[135],T[136]!==dt?(ut=(0,F.jsx)(j.FaceAssignSheet,{face:dt,onClose:ct}),T[136]=dt,T[137]=ut):ut=T[137];const ft=te?E:null,mt=ve?.confidence;let gt,ht,bt,yt;return T[138]===Symbol.for("react.memo_cache_sentinel")?(gt=()=>re(!1),T[138]=gt):gt=T[138],T[139]!==ae.mediaKeys||T[140]!==ft||T[141]!==mt?(ht=(0,F.jsx)(k.TrackMetadataSheet,{track:ft,confidence:mt,mediaKeys:ae.mediaKeys,onClose:gt}),T[139]=ae.mediaKeys,T[140]=ft,T[141]=mt,T[142]=ht):ht=T[142],T[143]!==V.primary||T[144]!==V.primaryForeground||T[145]!==Fe||T[146]!==G||T[147]!==B||T[148]!==E.firstSeen?(bt=G?(0,F.jsxs)(l.default,{onPress:()=>G(E.firstSeen),style:[D.seekBtn,{backgroundColor:V.primary,marginBottom:Fe}],children:[(0,F.jsx)(h.Crosshair,{size:18,color:V.primaryForeground}),(0,F.jsx)(s.default,{style:[D.seekText,{color:V.primaryForeground}],children:B("v2.theater.detailSeek","Go to this moment")})]}):null,T[143]=V.primary,T[144]=V.primaryForeground,T[145]=Fe,T[146]=G,T[147]=B,T[148]=E.firstSeen,T[149]=bt):bt=T[149],T[150]!==Xe||T[151]!==it||T[152]!==ut||T[153]!==ht||T[154]!==bt?(yt=(0,F.jsxs)(n.default,{style:D.root,children:[Xe,it,ut,ht,bt]}),T[150]=Xe,T[151]=it,T[152]=ut,T[153]=ht,T[154]=bt,T[155]=yt):yt=T[155],yt}),L=(0,o.memo)(function(e){const o=(0,t.c)(13),{label:l,value:c,colors:u}=e;let f,g,h,b,y;return o[0]!==u.foregroundMuted?(f=[D.metaLabel,{color:u.foregroundMuted}],o[0]=u.foregroundMuted,o[1]=f):f=o[1],o[2]!==l||o[3]!==f?(g=(0,F.jsx)(s.default,{style:f,children:l}),o[2]=l,o[3]=f,o[4]=g):g=o[4],o[5]!==u.foreground?(h=[D.metaValue,{color:u.foreground}],o[5]=u.foreground,o[6]=h):h=o[6],o[7]!==h||o[8]!==c?(b=(0,F.jsx)(s.default,{style:h,children:c}),o[7]=h,o[8]=c,o[9]=b):b=o[9],o[10]!==g||o[11]!==b?(y=(0,F.jsxs)(n.default,{style:D.metaRow,children:[g,b]}),o[10]=g,o[11]=b,o[12]=y):y=o[12],y}),D=u.default.create({root:{flex:1,paddingHorizontal:S.SPACING.md},header:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',gap:S.SPACING.sm,paddingVertical:S.SPACING.sm},headerText:{flex:1},titleRow:{flexDirection:'row',alignItems:'center',gap:S.SPACING.sm},classDot:{width:8,height:8,borderRadius:4},title:{fontSize:16,fontWeight:'700',flexShrink:1},importance:{flexDirection:'row',alignItems:'center',gap:2,paddingHorizontal:5,paddingVertical:1,borderRadius:8},importanceText:{fontSize:10,fontWeight:'700',fontVariant:['tabular-nums']},subtitle:{fontSize:12,marginTop:2},iconBtn:{width:36,height:36,borderRadius:S.RADIUS.md,alignItems:'center',justifyContent:'center'},scroll:{paddingBottom:S.SPACING.md},sectionLabel:{fontSize:11,fontWeight:'700',textTransform:'uppercase',letterSpacing:.4,marginTop:S.SPACING.sm,marginBottom:S.SPACING.xs},hero:{width:'100%',aspectRatio:N,borderRadius:S.RADIUS.md,overflow:'hidden'},frame:{width:'100%',borderRadius:S.RADIUS.md,overflow:'hidden'},center:{alignItems:'center',justifyContent:'center'},counter:{fontSize:11,fontVariant:['tabular-nums'],textAlign:'center',marginTop:S.SPACING.xs},strip:{gap:S.SPACING.sm,paddingVertical:S.SPACING.sm,paddingRight:S.SPACING.md},tileWrap:{width:64,alignItems:'center',gap:2},tile:{width:64,height:64,borderRadius:S.RADIUS.sm,overflow:'hidden'},tileLabel:{fontSize:10,maxWidth:72,textAlign:'center'},personCard:{flexDirection:'row',alignItems:'center',gap:S.SPACING.md,padding:S.SPACING.sm,borderRadius:S.RADIUS.md},personFace:{width:44,height:44,borderRadius:S.RADIUS.md},personFaceEmpty:{alignItems:'center',justifyContent:'center'},personName:{flex:1,fontSize:14,fontWeight:'600'},assignBtn:{flexDirection:'row',alignItems:'center',gap:4,paddingHorizontal:S.SPACING.md,paddingVertical:S.SPACING.sm,borderRadius:S.RADIUS.md},assignBtnText:{fontSize:12,fontWeight:'700'},meta:{marginTop:S.SPACING.md,gap:S.SPACING.xs},metaRow:{flexDirection:'row',gap:S.SPACING.sm},metaLabel:{fontSize:12,width:92},metaValue:{fontSize:12,flex:1,fontWeight:'500'},seekBtn:{flexDirection:'row',alignItems:'center',justifyContent:'center',gap:S.SPACING.xs,paddingVertical:S.SPACING.sm+2,borderRadius:S.RADIUS.md},seekText:{fontSize:15,fontWeight:'700'}})},3239,[15,17,20,112,252,147,33,3053,466,813,786,2587,2589,3231,3240,3373,3374,3376,3380,3381,3375,3167,3237,10]);
15645
+ __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,"ZoomableImage",{enumerable:!0,get:function(){return O}});var t=r(d[0]);r(d[1]);var l=e(r(d[2])),s=e(r(d[3])),n=r(d[4]),u=r(d[5]),v=r(d[6]),c=e(v),o=r(d[7]),_=r(d[8]),h=r(d[9]);const x={code:"function ZoomableImageTsx1(){const{savedScale,scale,savedTx,tx,savedTy,ty}=this.__closure;savedScale.value=scale.value;savedTx.value=tx.value;savedTy.value=ty.value;}"},f={code:"function ZoomableImageTsx2(e_0){const{w,h,pinchStart,clampZoom,scale,MIN_ZOOM,tx,ty,aspect,savedTx,savedTy}=this.__closure;const vw=w.value;const vh=h.value;if(vw<=0||vh<=0)return;if(!Number.isFinite(e_0.focalX)||!Number.isFinite(e_0.focalY)||!Number.isFinite(e_0.scale))return;const s0=pinchStart.value;const s1=clampZoom(s0*e_0.scale);scale.value=s1;if(s1<=MIN_ZOOM){tx.value=0;ty.value=0;return;}const dx=e_0.focalX-vw/2;const dy=e_0.focalY-vh/2;const k=s1/s0;const cw=aspect.value>0?Math.min(vw,vh*aspect.value):vw;const ch=aspect.value>0?Math.min(vh,vw/aspect.value):vh;const limX=Math.max(0,(s1*cw-vw)/2);const limY=Math.max(0,(s1*ch-vh)/2);tx.value=Math.max(-limX,Math.min(limX,dx-k*(dx-savedTx.value)));ty.value=Math.max(-limY,Math.min(limY,dy-k*(dy-savedTy.value)));}"},y={code:"function ZoomableImageTsx3(){const{pinchStart,savedScale}=this.__closure;pinchStart.value=savedScale.value;}"},M={code:"function ZoomableImageTsx4(){const{savedTx,tx,savedTy,ty}=this.__closure;savedTx.value=tx.value;savedTy.value=ty.value;}"},T={code:"function ZoomableImageTsx5(e_1){const{scale,MIN_ZOOM,w,h,aspect,tx,savedTx,ty,savedTy}=this.__closure;if(scale.value<=MIN_ZOOM)return;if(!Number.isFinite(e_1.translationX)||!Number.isFinite(e_1.translationY))return;const s=scale.value;const vw_0=w.value;const vh_0=h.value;const cw_0=aspect.value>0?Math.min(vw_0,vh_0*aspect.value):vw_0;const ch_0=aspect.value>0?Math.min(vh_0,vw_0/aspect.value):vh_0;const limX_0=Math.max(0,(s*cw_0-vw_0)/2);const limY_0=Math.max(0,(s*ch_0-vh_0)/2);tx.value=Math.max(-limX_0,Math.min(limX_0,savedTx.value+e_1.translationX));ty.value=Math.max(-limY_0,Math.min(limY_0,savedTy.value+e_1.translationY));}"},w={code:"function ZoomableImageTsx6(){const{scale,MIN_ZOOM,withTiming,tx,ty,savedScale,savedTx,savedTy}=this.__closure;if(scale.value>MIN_ZOOM){scale.value=withTiming(1);tx.value=withTiming(0);ty.value=withTiming(0);savedScale.value=1;savedTx.value=0;savedTy.value=0;}else{scale.value=withTiming(2);savedScale.value=2;}}"},p={code:"function ZoomableImageTsx7(){const{tx,ty,scale}=this.__closure;return{transform:[{translateX:tx.value},{translateY:ty.value},{scale:scale.value}]};}"},O=(0,t.memo)(function({width:e,height:l,resetKey:O,contentAspect:Z,children:b}){const k=(0,v.useSharedValue)(1),I=(0,v.useSharedValue)(1),N=(0,v.useSharedValue)(0),Y=(0,v.useSharedValue)(0),X=(0,v.useSharedValue)(0),E=(0,v.useSharedValue)(0),D=(0,v.useSharedValue)(1),V=(0,v.useSharedValue)(0),F=(0,v.useSharedValue)(0),j=(0,v.useSharedValue)(0),H=(0,t.useRef)(null);(0,t.useEffect)(()=>{j.value='number'==typeof Z&&Z>0?Z:0},[Z,j]),(0,t.useEffect)(()=>{k.value=1,I.value=1,N.value=0,Y.value=0,X.value=0,E.value=0},[O,k,I,N,Y,X,E]);const P=(0,t.useCallback)(e=>{V.value=e.nativeEvent.layout.width,F.value=e.nativeEvent.layout.height},[V,F]),C=(0,t.useMemo)(()=>n.Gesture.Pinch().onStart((function({_worklet_13594186911682_init_data:e,pinchStart:t,savedScale:l}){const s=function(){t.value=l.value};return s.__closure={pinchStart:t,savedScale:l},s.__workletHash=0xc5d24ae8fc2,s.__initData=e,s})({_worklet_13594186911682_init_data:y,pinchStart:D,savedScale:I})).onUpdate((function({_worklet_6430336451063_init_data:e,w:t,h:l,pinchStart:s,clampZoom:n,scale:u,MIN_ZOOM:v,tx:c,ty:o,aspect:_,savedTx:h,savedTy:x}){const f=function(e){const f=t.value,y=l.value;if(f<=0||y<=0)return;if(!Number.isFinite(e.focalX)||!Number.isFinite(e.focalY)||!Number.isFinite(e.scale))return;const M=s.value,T=n(M*e.scale);if(u.value=T,T<=v)return c.value=0,void(o.value=0);const w=e.focalX-f/2,p=e.focalY-y/2,O=T/M,S=_.value>0?Math.min(f,y*_.value):f,Z=_.value>0?Math.min(y,f/_.value):y,b=Math.max(0,(T*S-f)/2),k=Math.max(0,(T*Z-y)/2);c.value=Math.max(-b,Math.min(b,w-O*(w-h.value))),o.value=Math.max(-k,Math.min(k,p-O*(p-x.value)))};return f.__closure={w:t,h:l,pinchStart:s,clampZoom:n,scale:u,MIN_ZOOM:v,tx:c,ty:o,aspect:_,savedTx:h,savedTy:x},f.__workletHash=6430336451063,f.__initData=e,f})({_worklet_6430336451063_init_data:f,w:V,h:F,pinchStart:D,clampZoom:_.clampZoom,scale:k,MIN_ZOOM:_.MIN_ZOOM,tx:N,ty:Y,aspect:j,savedTx:X,savedTy:E})).onEnd((function({_worklet_5046326524640_init_data:e,savedScale:t,scale:l,savedTx:s,tx:n,savedTy:u,ty:v}){const c=function(){t.value=l.value,s.value=n.value,u.value=v.value};return c.__closure={savedScale:t,scale:l,savedTx:s,tx:n,savedTy:u,ty:v},c.__workletHash=5046326524640,c.__initData=e,c})({_worklet_5046326524640_init_data:x,savedScale:I,scale:k,savedTx:X,tx:N,savedTy:E,ty:Y})),[D,I,V,F,j,k,N,Y,X,E]),G=(0,t.useMemo)(()=>n.Gesture.Pan().maxPointers(1).minDistance(2).onUpdate((function({_worklet_15203611771623_init_data:e,scale:t,MIN_ZOOM:l,w:s,h:n,aspect:u,tx:v,savedTx:c,ty:o,savedTy:_}){const h=function(e){if(t.value<=l)return;if(!Number.isFinite(e.translationX)||!Number.isFinite(e.translationY))return;const h=t.value,x=s.value,f=n.value,y=u.value>0?Math.min(x,f*u.value):x,M=u.value>0?Math.min(f,x/u.value):f,T=Math.max(0,(h*y-x)/2),w=Math.max(0,(h*M-f)/2);v.value=Math.max(-T,Math.min(T,c.value+e.translationX)),o.value=Math.max(-w,Math.min(w,_.value+e.translationY))};return h.__closure={scale:t,MIN_ZOOM:l,w:s,h:n,aspect:u,tx:v,savedTx:c,ty:o,savedTy:_},h.__workletHash=0xdd3dde102e7,h.__initData=e,h})({_worklet_15203611771623_init_data:T,scale:k,MIN_ZOOM:_.MIN_ZOOM,w:V,h:F,aspect:j,tx:N,savedTx:X,ty:Y,savedTy:E})).onEnd((function({_worklet_10215814461155_init_data:e,savedTx:t,tx:l,savedTy:s,ty:n}){const u=function(){t.value=l.value,s.value=n.value};return u.__closure={savedTx:t,tx:l,savedTy:s,ty:n},u.__workletHash=0x94a8dfdf6e3,u.__initData=e,u})({_worklet_10215814461155_init_data:M,savedTx:X,tx:N,savedTy:E,ty:Y})),[k,V,F,j,N,Y,X,E]),L=(0,t.useMemo)(()=>n.Gesture.Tap().numberOfTaps(2).maxDuration(300).onEnd((function({_worklet_358022219460_init_data:e,scale:t,MIN_ZOOM:l,withTiming:s,tx:n,ty:u,savedScale:v,savedTx:c,savedTy:o}){const _=function(){t.value>l?(t.value=s(1),n.value=s(0),u.value=s(0),v.value=1,c.value=0,o.value=0):(t.value=s(2),v.value=2)};return _.__closure={scale:t,MIN_ZOOM:l,withTiming:s,tx:n,ty:u,savedScale:v,savedTx:c,savedTy:o},_.__workletHash=358022219460,_.__initData=e,_})({_worklet_358022219460_init_data:w,scale:k,MIN_ZOOM:_.MIN_ZOOM,withTiming:v.withTiming,tx:N,ty:Y,savedScale:I,savedTx:X,savedTy:E})),[k,N,Y,I,X,E]),B=(0,t.useMemo)(()=>n.Gesture.Simultaneous(C,G,L),[C,G,L]);(0,t.useEffect)(()=>{const e=H.current;if(null===e||'function'!=typeof e.addEventListener)return;const t=e=>{e.preventDefault();const t=(0,_.zoomBy)(k.value,e.deltaY<0?1.12:.8928571428571428);k.value=t,I.value=t;const l=(0,_.containBox)(V.value,F.value,j.value);N.value=(0,_.clampPanContent)(N.value,V.value,l.width,t),Y.value=(0,_.clampPanContent)(Y.value,F.value,l.height,t),X.value=N.value,E.value=Y.value};return e.addEventListener('wheel',t,{passive:!1}),()=>e.removeEventListener('wheel',t)},[k,I,N,Y,X,E,V,F,j]);const z=(0,v.useAnimatedStyle)((function({_worklet_12060236268779_init_data:e,tx:t,ty:l,scale:s}){const n=()=>({transform:[{translateX:t.value},{translateY:l.value},{scale:s.value}]});return n.__closure={tx:t,ty:l,scale:s},n.__workletHash=0xaf7fe1944eb,n.__initData=e,n})({_worklet_12060236268779_init_data:p,tx:N,ty:Y,scale:k})),A=(0,h.jsx)(s.default,{style:[S.fallback,{width:e,height:l}],children:(0,h.jsx)(u.ImageOff,{size:40,color:"#6b7280"})});return(0,h.jsx)(s.default,{ref:H,onLayout:P,style:[S.container,{width:e,height:l}],children:(0,h.jsx)(n.GestureDetector,{gesture:B,children:(0,h.jsx)(c.default.View,{style:[{width:e,height:l},z],children:(0,h.jsx)(o.RenderErrorBoundary,{resetKey:O,fallback:A,children:b})})})})}),S=l.default.create({container:{overflow:'hidden',backgroundColor:'#000'},fallback:{alignItems:'center',justifyContent:'center',backgroundColor:'#000'}})},3240,[17,136,33,20,3241,813,2714,3371,3372,10]);
15646
+ __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,"Directions",{enumerable:!0,get:function(){return n.Directions}}),Object.defineProperty(_e,"State",{enumerable:!0,get:function(){return u.State}}),Object.defineProperty(_e,"PointerType",{enumerable:!0,get:function(){return o.PointerType}}),Object.defineProperty(_e,"gestureHandlerRootHOC",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(_e,"GestureHandlerRootView",{enumerable:!0,get:function(){return b.default}}),Object.defineProperty(_e,"MouseButton",{enumerable:!0,get:function(){return l.MouseButton}}),Object.defineProperty(_e,"TapGestureHandler",{enumerable:!0,get:function(){return f.TapGestureHandler}}),Object.defineProperty(_e,"ForceTouchGestureHandler",{enumerable:!0,get:function(){return p.ForceTouchGestureHandler}}),Object.defineProperty(_e,"LongPressGestureHandler",{enumerable:!0,get:function(){return P.LongPressGestureHandler}}),Object.defineProperty(_e,"PanGestureHandler",{enumerable:!0,get:function(){return y.PanGestureHandler}}),Object.defineProperty(_e,"PinchGestureHandler",{enumerable:!0,get:function(){return s.PinchGestureHandler}}),Object.defineProperty(_e,"RotationGestureHandler",{enumerable:!0,get:function(){return O.RotationGestureHandler}}),Object.defineProperty(_e,"FlingGestureHandler",{enumerable:!0,get:function(){return j.FlingGestureHandler}}),Object.defineProperty(_e,"createNativeWrapper",{enumerable:!0,get:function(){return H.default}}),Object.defineProperty(_e,"GestureDetector",{enumerable:!0,get:function(){return h.GestureDetector}}),Object.defineProperty(_e,"Gesture",{enumerable:!0,get:function(){return G.GestureObjects}}),Object.defineProperty(_e,"NativeViewGestureHandler",{enumerable:!0,get:function(){return T.NativeViewGestureHandler}}),Object.defineProperty(_e,"RawButton",{enumerable:!0,get:function(){return B.RawButton}}),Object.defineProperty(_e,"BaseButton",{enumerable:!0,get:function(){return B.BaseButton}}),Object.defineProperty(_e,"RectButton",{enumerable:!0,get:function(){return B.RectButton}}),Object.defineProperty(_e,"BorderlessButton",{enumerable:!0,get:function(){return B.BorderlessButton}}),Object.defineProperty(_e,"PureNativeButton",{enumerable:!0,get:function(){return B.PureNativeButton}}),Object.defineProperty(_e,"TouchableHighlight",{enumerable:!0,get:function(){return w.TouchableHighlight}}),Object.defineProperty(_e,"TouchableNativeFeedback",{enumerable:!0,get:function(){return w.TouchableNativeFeedback}}),Object.defineProperty(_e,"TouchableOpacity",{enumerable:!0,get:function(){return w.TouchableOpacity}}),Object.defineProperty(_e,"TouchableWithoutFeedback",{enumerable:!0,get:function(){return w.TouchableWithoutFeedback}}),Object.defineProperty(_e,"ScrollView",{enumerable:!0,get:function(){return v.ScrollView}}),Object.defineProperty(_e,"Switch",{enumerable:!0,get:function(){return v.Switch}}),Object.defineProperty(_e,"TextInput",{enumerable:!0,get:function(){return v.TextInput}}),Object.defineProperty(_e,"DrawerLayoutAndroid",{enumerable:!0,get:function(){return v.DrawerLayoutAndroid}}),Object.defineProperty(_e,"FlatList",{enumerable:!0,get:function(){return v.FlatList}}),Object.defineProperty(_e,"RefreshControl",{enumerable:!0,get:function(){return v.RefreshControl}}),Object.defineProperty(_e,"Text",{enumerable:!0,get:function(){return F.Text}}),Object.defineProperty(_e,"HoverEffect",{enumerable:!0,get:function(){return R.HoverEffect}}),Object.defineProperty(_e,"Swipeable",{enumerable:!0,get:function(){return L.default}}),Object.defineProperty(_e,"Pressable",{enumerable:!0,get:function(){return D.default}}),Object.defineProperty(_e,"DrawerLayout",{enumerable:!0,get:function(){return N.default}}),Object.defineProperty(_e,"enableExperimentalWebImplementation",{enumerable:!0,get:function(){return S.enableExperimentalWebImplementation}}),Object.defineProperty(_e,"enableLegacyWebImplementation",{enumerable:!0,get:function(){return S.enableLegacyWebImplementation}});var t=r(d[0]),n=r(d[1]),u=r(d[2]),o=r(d[3]),c=e(r(d[4])),b=e(r(d[5])),l=r(d[6]),f=r(d[7]),p=r(d[8]),P=r(d[9]),y=r(d[10]),s=r(d[11]),O=r(d[12]),j=r(d[13]),H=e(r(d[14])),h=r(d[15]),G=r(d[16]),T=r(d[17]),B=r(d[18]),w=r(d[19]),v=r(d[20]),F=r(d[21]),R=r(d[22]),L=e(r(d[23])),D=e(r(d[24])),N=e(r(d[25])),S=r(d[26]);(0,t.initialize)()},3241,[3242,3272,3244,3258,3302,3306,3264,3308,3316,3318,3319,3320,3321,3322,3323,3325,3341,3324,3352,3354,3360,3361,3331,3362,3363,3370,3251]);
15647
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.initialize=function(){(0,t.startListening)()},_e.maybeInitializeFabric=function(){(0,u.isFabric)()&&!s&&(l.default.install(),s=!0)};var e,t=r(d[0]),n=r(d[1]),l=(e=n)&&e.__esModule?e:{default:e},u=r(d[2]);let s=!1},3242,[3243,3250,3247]);
15648
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.onGestureHandlerEvent=C,_e.startListening=function(){f(),u=t.default.addListener('onGestureHandlerEvent',C),T=t.default.addListener('onGestureHandlerStateChange',C)},_e.stopListening=f;var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e},l=r(d[1]),s=r(d[2]),o=r(d[3]),h=r(d[4]);let u=null,T=null;const E=new Map,c=[];function S(e){return null!=e.oldState}function v(e){return null!=e.eventType}function C(e){const n=(0,o.findHandler)(e.handlerTag);if(n)if(S(e))e.oldState===l.State.UNDETERMINED&&e.state===l.State.BEGAN?n.handlers.onBegin?.(e):e.oldState!==l.State.BEGAN&&e.oldState!==l.State.UNDETERMINED||e.state!==l.State.ACTIVE?e.oldState!==e.state&&e.state===l.State.END?(e.oldState===l.State.ACTIVE&&n.handlers.onEnd?.(e,!0),n.handlers.onFinalize?.(e,!0),c[n.handlers.handlerTag]=void 0):e.state!==l.State.FAILED&&e.state!==l.State.CANCELLED||e.oldState===e.state||(e.oldState===l.State.ACTIVE&&n.handlers.onEnd?.(e,!1),n.handlers.onFinalize?.(e,!1),E.delete(e.handlerTag),c[n.handlers.handlerTag]=void 0):(n.handlers.onStart?.(e),c[n.handlers.handlerTag]=e);else if(v(e)){E.has(e.handlerTag)||E.set(e.handlerTag,h.GestureStateManager.create(e.handlerTag));const t=E.get(e.handlerTag);switch(e.eventType){case s.TouchEventType.TOUCHES_DOWN:n.handlers?.onTouchesDown?.(e,t);break;case s.TouchEventType.TOUCHES_MOVE:n.handlers?.onTouchesMove?.(e,t);break;case s.TouchEventType.TOUCHES_UP:n.handlers?.onTouchesUp?.(e,t);break;case s.TouchEventType.TOUCHES_CANCELLED:n.handlers?.onTouchesCancelled?.(e,t)}}else n.handlers.onUpdate?.(e),n.handlers.onChange&&n.handlers.changeEventCalculator&&(n.handlers.onChange?.(n.handlers.changeEventCalculator?.(e,c[n.handlers.handlerTag])),c[n.handlers.handlerTag]=e);else{const n=(0,o.findOldGestureHandler)(e.handlerTag);if(n){const t={nativeEvent:e};return void(S(e)?n.onGestureStateChange(t):n.onGestureEvent(t))}}}function f(){u&&(u.remove(),u=null),T&&(T.remove(),T=null)}},3243,[274,3244,3245,3246,3248]);
15649
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"State",{enumerable:!0,get:function(){return t}});const t={UNDETERMINED:0,FAILED:1,BEGAN:2,CANCELLED:3,ACTIVE:4,END:5}},3244,[]);
15650
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"TouchEventType",{enumerable:!0,get:function(){return t}});const t={UNDETERMINED:0,TOUCHES_DOWN:1,TOUCHES_MOVE:2,TOUCHES_UP:3,TOUCHES_CANCELLED:4}},3245,[]);
15651
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"handlerIDToTag",{enumerable:!0,get:function(){return t}}),e.registerHandler=function(t,l,o){u.set(t,l),(0,n.isTestEnv)()&&o&&s.set(o,t)},e.registerOldGestureHandler=function(n,t){l.set(n,t)},e.unregisterOldGestureHandler=function(n){l.delete(n)},e.unregisterHandler=function(t,l){u.delete(t),(0,n.isTestEnv)()&&l&&s.delete(l)},e.findHandler=o,e.findOldGestureHandler=function(n){return l.get(n)},e.findHandlerByTestID=function(n){const t=s.get(n);if(void 0!==t)return o(t)??null;return null};var n=r(d[0]);const t={},u=new Map,l=new Map,s=new Map;function o(n){return u.get(n)}},3246,[3247]);
15652
+ __d(function(g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.toArray=function(e){if(!Array.isArray(e))return[e];return e},_e.withPrevAndCurrent=function(e,t){const n=[null],u=[...e],o=[];return u.forEach((e,u)=>{const i=n[u],c=t(i,e);n.push(c),o.push(c)}),o},_e.hasProperty=u,_e.isTestEnv=function(){return u(g,'process')&&!1},_e.tagMessage=function(e){return`[react-native-gesture-handler] ${e}`},_e.isFabric=function(){return!!g?.nativeFabricUIManager},_e.isReact19=function(){return n.default.version.startsWith('19.')},_e.isRemoteDebuggingEnabled=function(){const e=g;return!(e.nativeCallSyncHook&&!e.__REMOTEDEV__||e.RN$Bridgeless)},_e.deepEqual=function e(t,n){if(t===n)return!0;if('object'!=typeof t||'object'!=typeof n||null===t||null===n)return!1;const u=Object.keys(t),o=Object.keys(n);if(u.length!==o.length)return!1;for(const i of u)if(!o.includes(i)||!e(t[i],n[i]))return!1;return!0},Object.defineProperty(_e,"INT32_MAX",{enumerable:!0,get:function(){return o}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};function u(e,t){return Object.prototype.hasOwnProperty.call(e,t)}const o=2147483647},3247,[17]);
15653
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"GestureStateManager",{enumerable:!0,get:function(){return l}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};const l={create:e=>({handlerTag:e,begin:()=>{n.default.getHandler(e).begin()},activate:()=>{n.default.getHandler(e).activate(!0)},fail:()=>{n.default.getHandler(e).fail()},end:()=>{n.default.getHandler(e).end()}})}},3248,[3249]);
15654
+ __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 t}});class t{static gestures={};static getHandler(t){if(t in this.gestures)return this.gestures[t];throw new Error(`No handler for tag ${t}`)}static createGestureHandler(t,s){if(t in this.gestures)throw new Error(`Handler with tag ${t} already exists. Please ensure that no Gesture instance is used across multiple GestureDetectors.`);this.gestures[t]=s,this.gestures[t].handlerTag=t}static dropGestureHandler(t){t in this.gestures&&(this.gestures[t].onDestroy(),delete this.gestures[t])}static get nodes(){return Object.assign({},this.gestures)}}},3249,[]);
15655
+ __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 f}});var t=e(r(_d[0])),n=r(_d[1]),d=r(_d[2]),l=e(r(_d[3])),o=e(r(_d[4])),s=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var d=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,d.get?d:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[5])),u=r(_d[6]);let c=!1;var f={handleSetJSResponder(e,t){console.warn('handleSetJSResponder: ',e,t)},handleClearJSResponder(){console.warn('handleClearJSResponder: ')},createGestureHandler(e,t,c){if((0,n.isNewWebImplementationEnabled)()){if(!(e in d.Gestures))throw new Error(`react-native-gesture-handler: ${e} is not supported on web.`);const n=d.Gestures[e];o.default.createGestureHandler(t,new n(new u.GestureHandlerWebDelegate)),l.default.instance.configureInteractions(o.default.getHandler(t),c)}else{if(!(e in d.HammerGestures))throw new Error(`react-native-gesture-handler: ${e} is not supported on web.`);const n=d.HammerGestures[e];s.createGestureHandler(t,new n)}this.updateGestureHandler(t,c)},attachGestureHandler(e,d,l,u){if(!(d instanceof Element||d instanceof t.default.Component)){c=!0;const t=((0,n.isNewWebImplementationEnabled)()?o.default.getHandler(e):s.getHandler(e)).constructor.name;throw new Error(`${t} with tag ${e} received child that is not valid HTML element.`)}(0,n.isNewWebImplementationEnabled)()?o.default.getHandler(e).init(d,u):s.getHandler(e).setView(d,u)},updateGestureHandler(e,t){(0,n.isNewWebImplementationEnabled)()?(o.default.getHandler(e).updateGestureConfig(t),l.default.instance.configureInteractions(o.default.getHandler(e),t)):s.getHandler(e).updateGestureConfig(t)},getGestureHandlerNode:e=>(0,n.isNewWebImplementationEnabled)()?o.default.getHandler(e):s.getHandler(e),dropGestureHandler(e){c||((0,n.isNewWebImplementationEnabled)()?o.default.dropGestureHandler(e):s.dropGestureHandler(e))},flushOperations(){}}},3250,[17,3251,3252,3263,3249,3283,3296]);
15656
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.enableExperimentalWebImplementation=function(t=!0){console.warn((0,n.tagMessage)('New web implementation is enabled by default. This function will be removed in Gesture Handler 3.'))},e.enableLegacyWebImplementation=function(o=!0){if(console.warn((0,n.tagMessage)('Legacy web implementation is deprecated. This function will be removed in Gesture Handler 3.')),t===!o)return;if(l)return void console.error('Some parts of this application have already started using the new gesture handler implementation. No changes will be applied. You can try enabling legacy implementation earlier.');t=!o},e.isNewWebImplementationEnabled=function(){return l=!0,t},r(d[0]);var n=r(d[1]);let t=!0,l=!1},3251,[136,3247]);
15657
+ __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,"Gestures",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"HammerGestures",{enumerable:!0,get:function(){return M}});var t=e(r(d[0])),u=e(r(d[1])),n=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),f=e(r(d[5])),G=e(r(d[6])),H=e(r(d[7])),o=e(r(d[8])),c=e(r(d[9])),P=e(r(d[10])),_=e(r(d[11])),b=e(r(d[12])),p=e(r(d[13])),v=e(r(d[14])),j=e(r(d[15]));const y={NativeViewGestureHandler:G.default,PanGestureHandler:t.default,TapGestureHandler:u.default,LongPressGestureHandler:n.default,PinchGestureHandler:l.default,RotationGestureHandler:s.default,FlingGestureHandler:f.default,ManualGestureHandler:H.default,HoverGestureHandler:o.default},M={NativeViewGestureHandler:c.default,PanGestureHandler:P.default,TapGestureHandler:_.default,LongPressGestureHandler:b.default,PinchGestureHandler:p.default,RotationGestureHandler:v.default,FlingGestureHandler:j.default}},3252,[3253,3265,3266,3267,3269,3271,3275,3276,3277,3278,3287,3289,3290,3291,3293,3294]);
15658
+ __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return E}});var s=e(r(d[0])),n=r(d[1]),o=r(d[2]),h=r(d[3]),f=e(r(d[4]));const c=o.DEFAULT_TOUCH_SLOP*o.DEFAULT_TOUCH_SLOP;class E extends f.default{customActivationProperties=['activeOffsetXStart','activeOffsetXEnd','failOffsetXStart','failOffsetXEnd','activeOffsetYStart','activeOffsetYEnd','failOffsetYStart','failOffsetYEnd','minVelocityX','minVelocityY','minVelocity'];velocityX=0;velocityY=0;minDistSq=c;activeOffsetXStart=-Number.MAX_SAFE_INTEGER;activeOffsetXEnd=Number.MIN_SAFE_INTEGER;failOffsetXStart=Number.MIN_SAFE_INTEGER;failOffsetXEnd=Number.MAX_SAFE_INTEGER;activeOffsetYStart=Number.MAX_SAFE_INTEGER;activeOffsetYEnd=Number.MIN_SAFE_INTEGER;failOffsetYStart=Number.MIN_SAFE_INTEGER;failOffsetYEnd=Number.MAX_SAFE_INTEGER;minVelocityX=Number.MAX_SAFE_INTEGER;minVelocityY=Number.MAX_SAFE_INTEGER;minVelocitySq=Number.MAX_SAFE_INTEGER;minPointers=1;maxPointers=10;startX=0;startY=0;offsetX=0;offsetY=0;lastX=0;lastY=0;activateAfterLongPress=0;activationTimeout=0;enableTrackpadTwoFingerGesture=!1;endWheelTimeout=0;wheelDevice=h.WheelDevice.UNDETERMINED;updateGestureConfig(e){let{enabled:n=!0}=e,o=(0,s.default)(e,t);this.resetConfig(),super.updateGestureConfig(Object.assign({enabled:n},o)),this.checkCustomActivationCriteria(this.customActivationProperties),void 0!==this.config.minDist?this.minDistSq=this.config.minDist*this.config.minDist:this.hasCustomActivationCriteria&&(this.minDistSq=Number.MAX_SAFE_INTEGER),void 0!==this.config.minPointers&&(this.minPointers=this.config.minPointers),void 0!==this.config.maxPointers&&(this.maxPointers=this.config.maxPointers),void 0!==this.config.minVelocity&&(this.minVelocityX=this.config.minVelocity,this.minVelocityY=this.config.minVelocity),void 0!==this.config.minVelocityX&&(this.minVelocityX=this.config.minVelocityX),void 0!==this.config.minVelocityY&&(this.minVelocityY=this.config.minVelocityY),void 0!==this.config.activateAfterLongPress&&(this.activateAfterLongPress=this.config.activateAfterLongPress),void 0!==this.config.activeOffsetXStart&&(this.activeOffsetXStart=this.config.activeOffsetXStart,void 0===this.config.activeOffsetXEnd&&(this.activeOffsetXEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.activeOffsetXEnd&&(this.activeOffsetXEnd=this.config.activeOffsetXEnd,void 0===this.config.activeOffsetXStart&&(this.activeOffsetXStart=Number.MIN_SAFE_INTEGER)),void 0!==this.config.failOffsetXStart&&(this.failOffsetXStart=this.config.failOffsetXStart,void 0===this.config.failOffsetXEnd&&(this.failOffsetXEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.failOffsetXEnd&&(this.failOffsetXEnd=this.config.failOffsetXEnd,void 0===this.config.failOffsetXStart&&(this.failOffsetXStart=Number.MIN_SAFE_INTEGER)),void 0!==this.config.activeOffsetYStart&&(this.activeOffsetYStart=this.config.activeOffsetYStart,void 0===this.config.activeOffsetYEnd&&(this.activeOffsetYEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.activeOffsetYEnd&&(this.activeOffsetYEnd=this.config.activeOffsetYEnd,void 0===this.config.activeOffsetYStart&&(this.activeOffsetYStart=Number.MIN_SAFE_INTEGER)),void 0!==this.config.failOffsetYStart&&(this.failOffsetYStart=this.config.failOffsetYStart,void 0===this.config.failOffsetYEnd&&(this.failOffsetYEnd=Number.MAX_SAFE_INTEGER)),void 0!==this.config.failOffsetYEnd&&(this.failOffsetYEnd=this.config.failOffsetYEnd,void 0===this.config.failOffsetYStart&&(this.failOffsetYStart=Number.MIN_SAFE_INTEGER)),void 0!==this.config.enableTrackpadTwoFingerGesture&&(this.enableTrackpadTwoFingerGesture=this.config.enableTrackpadTwoFingerGesture)}resetConfig(){super.resetConfig(),this.activeOffsetXStart=-Number.MAX_SAFE_INTEGER,this.activeOffsetXEnd=Number.MIN_SAFE_INTEGER,this.failOffsetXStart=Number.MIN_SAFE_INTEGER,this.failOffsetXEnd=Number.MAX_SAFE_INTEGER,this.activeOffsetYStart=Number.MAX_SAFE_INTEGER,this.activeOffsetYEnd=Number.MIN_SAFE_INTEGER,this.failOffsetYStart=Number.MIN_SAFE_INTEGER,this.failOffsetYEnd=Number.MAX_SAFE_INTEGER,this.minVelocityX=Number.MAX_SAFE_INTEGER,this.minVelocityY=Number.MAX_SAFE_INTEGER,this.minVelocitySq=Number.MAX_SAFE_INTEGER,this.minDistSq=c,this.minPointers=1,this.maxPointers=10,this.activateAfterLongPress=0}transformNativeEvent(){const t=this.getTranslationX(),e=this.getTranslationY();return Object.assign({},super.transformNativeEvent(),{translationX:isNaN(t)?0:t,translationY:isNaN(e)?0:e,velocityX:this.velocityX,velocityY:this.velocityY,stylusData:this.stylusData})}getTranslationX(){return this.lastX-this.startX+this.offsetX}getTranslationY(){return this.lastY-this.startY+this.offsetY}clearActivationTimeout(){clearTimeout(this.activationTimeout)}updateLastCoords(){const{x:t,y:e}=this.tracker.getAbsoluteCoordsAverage();this.lastX=t,this.lastY=e}updateVelocity(t){const e=this.tracker.getVelocity(t);this.velocityX=e?.x??0,this.velocityY=e?.y??0}onPointerDown(t){this.isButtonInConfig(t.button)&&(this.tracker.addToTracker(t),this.stylusData=t.stylusData,super.onPointerDown(t),this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.tryBegin(t),this.checkBegan(),this.tryToSendTouchEvent(t))}onPointerAdd(t){this.tracker.addToTracker(t),super.onPointerAdd(t),this.tryBegin(t),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY,this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.tracker.trackedPointersCount>this.maxPointers?this.state===n.State.ACTIVE?this.cancel():this.fail():this.checkBegan()}onPointerUp(t){if(this.stylusData=t.stylusData,super.onPointerUp(t),this.state===n.State.ACTIVE){const t=this.tracker.getAbsoluteCoordsAverage();this.lastX=t.x,this.lastY=t.y}this.tracker.removeFromTracker(t.pointerId),0===this.tracker.trackedPointersCount&&this.clearActivationTimeout(),this.state===n.State.ACTIVE?this.end():(this.resetProgress(),this.fail())}onPointerRemove(t){super.onPointerRemove(t),this.tracker.removeFromTracker(t.pointerId),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY,this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.state===n.State.ACTIVE&&this.tracker.trackedPointersCount<this.minPointers||this.checkBegan()}onPointerMove(t){this.tracker.track(t),this.stylusData=t.stylusData,this.updateLastCoords(),this.updateVelocity(t.pointerId),this.checkBegan(),super.onPointerMove(t)}onPointerOutOfBounds(t){this.shouldCancelWhenOutside||(this.tracker.track(t),this.stylusData=t.stylusData,this.updateLastCoords(),this.updateVelocity(t.pointerId),this.checkBegan(),this.state===n.State.ACTIVE&&super.onPointerOutOfBounds(t))}scheduleWheelEnd(t){clearTimeout(this.endWheelTimeout),this.endWheelTimeout=setTimeout(()=>{this.state===n.State.ACTIVE&&(this.end(),this.tracker.removeFromTracker(t.pointerId),this.state=n.State.UNDETERMINED),this.wheelDevice=h.WheelDevice.UNDETERMINED},30)}onWheel(t){if(this.wheelDevice!==h.WheelDevice.MOUSE&&this.enableTrackpadTwoFingerGesture){if(this.state===n.State.UNDETERMINED){if(this.wheelDevice=t.wheelDeltaY%120!=0?h.WheelDevice.TOUCHPAD:h.WheelDevice.MOUSE,this.wheelDevice===h.WheelDevice.MOUSE)return void this.scheduleWheelEnd(t);this.tracker.addToTracker(t),this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.begin(),this.activate()}this.tracker.track(t),this.updateLastCoords(),this.updateVelocity(t.pointerId),this.tryToSendMoveEvent(!1,t),this.scheduleWheelEnd(t)}}shouldActivate(){const t=this.getTranslationX();if(this.activeOffsetXStart!==Number.MAX_SAFE_INTEGER&&t<this.activeOffsetXStart)return!0;if(this.activeOffsetXEnd!==Number.MIN_SAFE_INTEGER&&t>this.activeOffsetXEnd)return!0;const e=this.getTranslationY();if(this.activeOffsetYStart!==Number.MAX_SAFE_INTEGER&&e<this.activeOffsetYStart)return!0;if(this.activeOffsetYEnd!==Number.MIN_SAFE_INTEGER&&e>this.activeOffsetYEnd)return!0;const s=t*t+e*e;if(this.minDistSq!==Number.MAX_SAFE_INTEGER&&s>=this.minDistSq)return!0;const n=this.velocityX;if(this.minVelocityX!==Number.MAX_SAFE_INTEGER&&(this.minVelocityX<0&&n<=this.minVelocityX||this.minVelocityX>=0&&this.minVelocityX<=n))return!0;const o=this.velocityY;if(this.minVelocityY!==Number.MAX_SAFE_INTEGER&&(this.minVelocityY<0&&o<=this.minVelocityY||this.minVelocityY>=0&&this.minVelocityY<=o))return!0;const h=n*n+o*o;return this.minVelocitySq!==Number.MAX_SAFE_INTEGER&&h>=this.minVelocitySq}shouldFail(){const t=this.getTranslationX(),e=this.getTranslationY(),s=t*t+e*e;return this.activateAfterLongPress>0&&s>c?(this.clearActivationTimeout(),!0):this.failOffsetXStart!==Number.MIN_SAFE_INTEGER&&t<this.failOffsetXStart||(this.failOffsetXEnd!==Number.MAX_SAFE_INTEGER&&t>this.failOffsetXEnd||(this.failOffsetYStart!==Number.MIN_SAFE_INTEGER&&e<this.failOffsetYStart||this.failOffsetYEnd!==Number.MAX_SAFE_INTEGER&&e>this.failOffsetYEnd))}tryBegin(t){this.state===n.State.UNDETERMINED&&this.tracker.trackedPointersCount>=this.minPointers?(this.resetProgress(),this.offsetX=0,this.offsetY=0,this.velocityX=0,this.velocityY=0,this.begin(),this.activateAfterLongPress>0&&(this.activationTimeout=setTimeout(()=>{this.activate()},this.activateAfterLongPress))):this.updateVelocity(t.pointerId)}checkBegan(){this.state===n.State.BEGAN&&(this.shouldFail()?this.fail():this.shouldActivate()&&this.activate())}activate(t=!1){this.state!==n.State.ACTIVE&&this.resetProgress(),super.activate(t)}onCancel(){this.clearActivationTimeout()}onReset(){this.clearActivationTimeout()}resetProgress(){this.state!==n.State.ACTIVE&&(this.startX=this.lastX,this.startY=this.lastY)}}},3253,[120,3244,3254,3255,3256]);
15659
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DEFAULT_TOUCH_SLOP",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"MINIMAL_RECOGNIZABLE_MAGNITUDE",{enumerable:!0,get:function(){return n}});const t=15,n=.1},3254,[]);
15660
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"EventTypes",{enumerable:!0,get:function(){return E}}),Object.defineProperty(e,"TouchEventType",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"WheelDevice",{enumerable:!0,get:function(){return t}});let E=(function(E){return E[E.DOWN=0]="DOWN",E[E.ADDITIONAL_POINTER_DOWN=1]="ADDITIONAL_POINTER_DOWN",E[E.UP=2]="UP",E[E.ADDITIONAL_POINTER_UP=3]="ADDITIONAL_POINTER_UP",E[E.MOVE=4]="MOVE",E[E.ENTER=5]="ENTER",E[E.LEAVE=6]="LEAVE",E[E.CANCEL=7]="CANCEL",E})({}),n=(function(E){return E[E.UNDETERMINED=0]="UNDETERMINED",E[E.DOWN=1]="DOWN",E[E.MOVE=2]="MOVE",E[E.UP=3]="UP",E[E.CANCELLED=4]="CANCELLED",E})({}),t=(function(E){return E[E.UNDETERMINED=0]="UNDETERMINED",E[E.MOUSE=1]="MOUSE",E[E.TOUCHPAD=2]="TOUCHPAD",E})({})},3255,[]);
15661
+ __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return v}});var o=e(r(d[0])),s=r(d[1]),n=r(d[2]),h=e(r(d[3])),l=e(r(d[4])),c=e(r(d[5])),u=r(d[6]),p=r(d[7]);class v{lastSentState=null;_state=s.State.UNDETERMINED;_shouldCancelWhenOutside=!1;hasCustomActivationCriteria=!1;_enabled=!1;_config={enabled:!1};_tracker=new c.default;_activationIndex=0;_awaiting=!1;_active=!1;_shouldResetProgress=!1;_pointerType=p.PointerType.MOUSE;constructor(t){this._delegate=t}init(t,e){this.propsRef=e,this.viewRef=t,this.state=s.State.UNDETERMINED,this.delegate.init(t,this)}attachEventManager(t){t.setOnPointerDown(this.onPointerDown.bind(this)),t.setOnPointerAdd(this.onPointerAdd.bind(this)),t.setOnPointerUp(this.onPointerUp.bind(this)),t.setOnPointerRemove(this.onPointerRemove.bind(this)),t.setOnPointerMove(this.onPointerMove.bind(this)),t.setOnPointerEnter(this.onPointerEnter.bind(this)),t.setOnPointerLeave(this.onPointerLeave.bind(this)),t.setOnPointerCancel(this.onPointerCancel.bind(this)),t.setOnPointerOutOfBounds(this.onPointerOutOfBounds.bind(this)),t.setOnPointerMoveOver(this.onPointerMoveOver.bind(this)),t.setOnPointerMoveOut(this.onPointerMoveOut.bind(this)),t.setOnWheel(this.onWheel.bind(this)),t.registerListeners()}onCancel(){}onReset(){}resetProgress(){}reset(){this.tracker.resetTracker(),this.onReset(),this.resetProgress(),this.delegate.reset(),this.state=s.State.UNDETERMINED}moveToState(t,e){if(this.state===t)return;const o=this.state;this.state=t,this.tracker.trackedPointersCount>0&&this.config.needsPointerData&&this.isFinished()&&this.cancelTouches(),h.default.instance.onHandlerStateChange(this,t,o,e),this.onStateChange(t,o),!this.enabled&&this.isFinished()&&(this.state=s.State.UNDETERMINED)}onStateChange(t,e){}begin(){this.checkHitSlop()&&this.state===s.State.UNDETERMINED&&this.moveToState(s.State.BEGAN)}fail(t){this.state!==s.State.ACTIVE&&this.state!==s.State.BEGAN||(this.delegate.onFail(),this.moveToState(s.State.FAILED,t)),this.resetProgress()}cancel(t){this.state!==s.State.ACTIVE&&this.state!==s.State.UNDETERMINED&&this.state!==s.State.BEGAN||(this.onCancel(),this.delegate.onCancel(),this.moveToState(s.State.CANCELLED,t))}activate(t=!1){!0===this.config.manualActivation&&!t||this.state!==s.State.UNDETERMINED&&this.state!==s.State.BEGAN||(this.delegate.onActivate(),this.moveToState(s.State.ACTIVE))}end(){this.state!==s.State.BEGAN&&this.state!==s.State.ACTIVE||(this.delegate.onEnd(),this.moveToState(s.State.END)),this.resetProgress()}getShouldResetProgress(){return this.shouldResetProgress}setShouldResetProgress(t){this.shouldResetProgress=t}shouldWaitForHandlerFailure(t){return t!==this&&l.default.instance.shouldWaitForHandlerFailure(this,t)}shouldRequireToWaitForFailure(t){return t!==this&&l.default.instance.shouldRequireHandlerToWaitForFailure(this,t)}shouldRecognizeSimultaneously(t){return t===this||l.default.instance.shouldRecognizeSimultaneously(this,t)}shouldBeCancelledByOther(t){return t!==this&&l.default.instance.shouldHandlerBeCancelledBy(this,t)}onPointerDown(t){h.default.instance.recordHandlerIfNotPresent(this),this.pointerType=t.pointerType,this.pointerType===p.PointerType.TOUCH&&h.default.instance.cancelMouseAndPenGestures(this)}onPointerAdd(t){this.tryToSendTouchEvent(t)}onPointerUp(t){this.tryToSendTouchEvent(t)}onPointerRemove(t){this.tryToSendTouchEvent(t)}onPointerMove(t){this.tryToSendMoveEvent(!1,t)}onPointerLeave(t){if(this.shouldCancelWhenOutside)switch(this.state){case s.State.ACTIVE:this.cancel();break;case s.State.BEGAN:this.fail()}else this.tryToSendTouchEvent(t)}onPointerEnter(t){this.tryToSendTouchEvent(t)}onPointerCancel(t){this.tryToSendTouchEvent(t),this.cancel(),this.reset()}onPointerOutOfBounds(t){this.tryToSendMoveEvent(!0,t)}onPointerMoveOver(t){}onPointerMoveOut(t){}onWheel(t){}tryToSendMoveEvent(t,e){t&&this.shouldCancelWhenOutside||!this.enabled||(this.active&&this.sendEvent(this.state,this.state),this.tryToSendTouchEvent(e))}tryToSendTouchEvent(t){this.config.needsPointerData&&this.sendTouchEvent(t)}sendTouchEvent(t){if(!this.enabled)return;const{onGestureHandlerEvent:e}=this.propsRef.current,o=this.transformTouchEvent(t);o&&f(e,o)}sendEvent=(t,e)=>{const{onGestureHandlerEvent:o,onGestureHandlerStateChange:n}=this.propsRef.current,h=this.transformEventData(t,e);this.lastSentState!==t&&(this.lastSentState=t,f(n,h)),this.state===s.State.ACTIVE&&(h.nativeEvent.oldState=void 0,f(o,h))};transformEventData(t,e){return{nativeEvent:Object.assign({numberOfPointers:this.tracker.trackedPointersCount,state:t,pointerInside:this.delegate.isPointerInBounds(this.tracker.getAbsoluteCoordsAverage())},this.transformNativeEvent(),{handlerTag:this.handlerTag,target:this.viewRef,oldState:t!==e?e:void 0,pointerType:this.pointerType}),timeStamp:Date.now()}}transformTouchEvent(t){const e=this.delegate.measureView(),o=[],s=[],h=this.tracker.trackedPointers;if(0===h.size||!h.has(t.pointerId))return;h.forEach((t,s)=>{const n=this.tracker.getMappedTouchEventId(s);o.push({id:n,x:t.abosoluteCoords.x-e.pageX,y:t.abosoluteCoords.y-e.pageY,absoluteX:t.abosoluteCoords.x,absoluteY:t.abosoluteCoords.y})}),t.eventType!==n.EventTypes.CANCEL?s.push({id:this.tracker.getMappedTouchEventId(t.pointerId),x:t.x-e.pageX,y:t.y-e.pageY,absoluteX:t.x,absoluteY:t.y}):h.forEach((t,o)=>{const n=this.tracker.getMappedTouchEventId(o);s.push({id:n,x:t.abosoluteCoords.x-e.pageX,y:t.abosoluteCoords.y-e.pageY,absoluteX:t.abosoluteCoords.x,absoluteY:t.abosoluteCoords.y})});let l=n.TouchEventType.UNDETERMINED;switch(t.eventType){case n.EventTypes.DOWN:case n.EventTypes.ADDITIONAL_POINTER_DOWN:l=n.TouchEventType.DOWN;break;case n.EventTypes.UP:case n.EventTypes.ADDITIONAL_POINTER_UP:l=n.TouchEventType.UP;break;case n.EventTypes.MOVE:l=n.TouchEventType.MOVE;break;case n.EventTypes.CANCEL:l=n.TouchEventType.CANCELLED}let c=o.length;return t.eventType!==n.EventTypes.UP&&t.eventType!==n.EventTypes.ADDITIONAL_POINTER_UP||--c,{nativeEvent:{handlerTag:this.handlerTag,state:this.state,eventType:l,changedTouches:s,allTouches:o,numberOfTouches:c,pointerType:this.pointerType},timeStamp:Date.now()}}cancelTouches(){const t=this.delegate.measureView(),e=[],o=[],s=this.tracker.trackedPointers;if(0===s.size)return;s.forEach((s,n)=>{const h=this.tracker.getMappedTouchEventId(n);e.push({id:h,x:s.abosoluteCoords.x-t.pageX,y:s.abosoluteCoords.y-t.pageY,absoluteX:s.abosoluteCoords.x,absoluteY:s.abosoluteCoords.y}),o.push({id:h,x:s.abosoluteCoords.x-t.pageX,y:s.abosoluteCoords.y-t.pageY,absoluteX:s.abosoluteCoords.x,absoluteY:s.abosoluteCoords.y})});const h={nativeEvent:{handlerTag:this.handlerTag,state:this.state,eventType:n.TouchEventType.CANCELLED,changedTouches:o,allTouches:e,numberOfTouches:e.length,pointerType:this.pointerType},timeStamp:Date.now()},{onGestureHandlerEvent:l}=this.propsRef.current;f(l,h)}transformNativeEvent(){const t=this.tracker.getAbsoluteCoordsAverage(),e=this.tracker.getRelativeCoordsAverage();return{x:e.x,y:e.y,absoluteX:t.x,absoluteY:t.y}}updateGestureConfig(e){let{enabled:n=!0}=e,l=(0,o.default)(e,t);if(this._config=Object.assign({enabled:n},l),this.enabled!==n&&this.delegate.onEnabledChange(n),this.enabled=n,void 0!==this.config.shouldCancelWhenOutside&&(this.shouldCancelWhenOutside=this.config.shouldCancelWhenOutside),this.validateHitSlops(),!this.enabled)switch(this.state){case s.State.ACTIVE:this.fail(!0);break;case s.State.UNDETERMINED:h.default.instance.removeHandlerFromOrchestrator(this);break;default:this.cancel(!0)}}checkCustomActivationCriteria(t){for(const e in this.config)t.indexOf(e)>=0&&(this.hasCustomActivationCriteria=!0)}validateHitSlops(){if(this.config.hitSlop){if(void 0!==this.config.hitSlop.left&&void 0!==this.config.hitSlop.right&&void 0!==this.config.hitSlop.width)throw new Error('HitSlop Error: Cannot define left, right and width at the same time');if(void 0!==this.config.hitSlop.width&&void 0===this.config.hitSlop.left&&void 0===this.config.hitSlop.right)throw new Error('HitSlop Error: When width is defined, either left or right has to be defined');if(void 0!==this.config.hitSlop.height&&void 0!==this.config.hitSlop.top&&void 0!==this.config.hitSlop.bottom)throw new Error('HitSlop Error: Cannot define top, bottom and height at the same time');if(void 0!==this.config.hitSlop.height&&void 0===this.config.hitSlop.top&&void 0===this.config.hitSlop.bottom)throw new Error('HitSlop Error: When height is defined, either top or bottom has to be defined')}}checkHitSlop(){if(!this.config.hitSlop)return!0;const{width:t,height:e}=this.delegate.measureView();let o=0,s=0,n=t,h=e;void 0!==this.config.hitSlop.horizontal&&(o-=this.config.hitSlop.horizontal,n+=this.config.hitSlop.horizontal),void 0!==this.config.hitSlop.vertical&&(s-=this.config.hitSlop.vertical,h+=this.config.hitSlop.vertical),void 0!==this.config.hitSlop.left&&(o=-this.config.hitSlop.left),void 0!==this.config.hitSlop.right&&(n=t+this.config.hitSlop.right),void 0!==this.config.hitSlop.top&&(s=-this.config.hitSlop.top),void 0!==this.config.hitSlop.bottom&&(h=e+this.config.hitSlop.bottom),void 0!==this.config.hitSlop.width&&(void 0!==this.config.hitSlop.left?n=o+this.config.hitSlop.width:void 0!==this.config.hitSlop.right&&(o=n-this.config.hitSlop.width)),void 0!==this.config.hitSlop.height&&(void 0!==this.config.hitSlop.top?h=s+this.config.hitSlop.height:void 0!==this.config.hitSlop.bottom&&(s=h-this.config.hitSlop.height));const l=this.delegate.measureView(),c=this.tracker.getLastAbsoluteCoords();if(!c)return!1;const u=c.x-l.pageX,p=c.y-l.pageY;return u>=o&&u<=n&&p>=s&&p<=h}isButtonInConfig(t){return!t||!this.config.mouseButton&&t===u.MouseButton.LEFT||this.config.mouseButton&&t&this.config.mouseButton}resetConfig(){}onDestroy(){h.default.instance.removeHandlerFromOrchestrator(this),this.delegate.destroy(this.config)}get handlerTag(){return this._handlerTag}set handlerTag(t){this._handlerTag=t}get config(){return this._config}get delegate(){return this._delegate}get tracker(){return this._tracker}get state(){return this._state}set state(t){this._state=t}get shouldCancelWhenOutside(){return this._shouldCancelWhenOutside}set shouldCancelWhenOutside(t){this._shouldCancelWhenOutside=t}get enabled(){return this._enabled}set enabled(t){this._enabled=t}get pointerType(){return this._pointerType}set pointerType(t){this._pointerType=t}get active(){return this._active}set active(t){this._active=t}get awaiting(){return this._awaiting}set awaiting(t){this._awaiting=t}get activationIndex(){return this._activationIndex}set activationIndex(t){this._activationIndex=t}get shouldResetProgress(){return this._shouldResetProgress}set shouldResetProgress(t){this._shouldResetProgress=t}getTrackedPointersID(){return this.tracker.trackedPointersIDs}isFinished(){return this.state===s.State.END||this.state===s.State.FAILED||this.state===s.State.CANCELLED}}function f(t,e){if(!t)return;if('function'==typeof t)return void t(e);if('__getHandler'in t&&'function'==typeof t.__getHandler){return void f(t.__getHandler(),e)}if(!('__nodeConfig'in t))return;const{argMapping:o}=t.__nodeConfig;if(Array.isArray(o))for(const[s,[n,h]]of o.entries()){if(!(n in e.nativeEvent))continue;const o=e.nativeEvent[n];h?.setValue?h.setValue(o):t.__nodeConfig.argMapping[s]=[n,o]}}},3256,[120,3244,3255,3257,3263,3259,3264,3258]);
15662
+ __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 l}});var e,t=r(d[0]),n=r(d[1]),i=r(d[2]),s=(e=i)&&e.__esModule?e:{default:e};class l{gestureHandlers=[];awaitingHandlers=[];awaitingHandlersTags=new Set;handlingChangeSemaphore=0;activationIndex=0;constructor(){}scheduleFinishedHandlersCleanup(){0===this.handlingChangeSemaphore&&this.cleanupFinishedHandlers()}cleanHandler(e){e.reset(),e.active=!1,e.awaiting=!1,e.activationIndex=Number.MAX_VALUE}removeHandlerFromOrchestrator(e){const t=this.gestureHandlers.indexOf(e),n=this.awaitingHandlers.indexOf(e);t>=0&&this.gestureHandlers.splice(t,1),n>=0&&(this.awaitingHandlers.splice(n,1),this.awaitingHandlersTags.delete(e.handlerTag))}cleanupFinishedHandlers(){const e=new Set;for(let t=this.gestureHandlers.length-1;t>=0;--t){const n=this.gestureHandlers[t];this.isFinished(n.state)&&!n.awaiting&&(this.cleanHandler(n),e.add(n))}this.gestureHandlers=this.gestureHandlers.filter(t=>!e.has(t))}hasOtherHandlerToWaitFor(e){return this.gestureHandlers.some(t=>!this.isFinished(t.state)&&this.shouldHandlerWaitForOther(e,t))}shouldBeCancelledByFinishedHandler(e){return this.gestureHandlers.some(t=>this.shouldHandlerWaitForOther(e,t)&&t.state===n.State.END)}tryActivate(e){if(this.shouldBeCancelledByFinishedHandler(e))return void e.cancel();if(this.hasOtherHandlerToWaitFor(e))return void this.addAwaitingHandler(e);const t=e.state;t!==n.State.CANCELLED&&t!==n.State.FAILED&&(this.shouldActivate(e)?this.makeActive(e):t!==n.State.ACTIVE?t===n.State.BEGAN&&e.cancel():e.fail())}shouldActivate(e){return!this.gestureHandlers.some(t=>this.shouldHandlerBeCancelledBy(e,t))}cleanupAwaitingHandlers(e){const t=t=>!t.awaiting&&this.shouldHandlerWaitForOther(t,e);for(const e of this.awaitingHandlers)t(e)&&(this.cleanHandler(e),this.awaitingHandlersTags.delete(e.handlerTag));this.awaitingHandlers=this.awaitingHandlers.filter(e=>this.awaitingHandlersTags.has(e.handlerTag))}onHandlerStateChange(e,t,i,s){if(e.enabled||s){if(this.handlingChangeSemaphore+=1,this.isFinished(t))for(const i of this.awaitingHandlers)this.shouldHandlerWaitForOther(i,e)&&this.awaitingHandlersTags.has(i.handlerTag)&&(t===n.State.END?(i.cancel(),i.state===n.State.END&&i.sendEvent(n.State.CANCELLED,n.State.BEGAN),i.awaiting=!1):this.tryActivate(i));t===n.State.ACTIVE?this.tryActivate(e):i===n.State.ACTIVE||i===n.State.END?e.active?e.sendEvent(t,i):i!==n.State.ACTIVE||t!==n.State.CANCELLED&&t!==n.State.FAILED||e.sendEvent(t,n.State.BEGAN):i===n.State.UNDETERMINED&&t===n.State.CANCELLED||e.sendEvent(t,i),this.handlingChangeSemaphore-=1,this.scheduleFinishedHandlersCleanup(),this.awaitingHandlers.includes(e)||this.cleanupAwaitingHandlers(e)}}makeActive(e){const t=e.state;e.active=!0,e.shouldResetProgress=!0,e.activationIndex=this.activationIndex++;for(let t=this.gestureHandlers.length-1;t>=0;--t)this.shouldHandlerBeCancelledBy(this.gestureHandlers[t],e)&&this.gestureHandlers[t].cancel();for(const t of this.awaitingHandlers)this.shouldHandlerBeCancelledBy(t,e)&&(t.awaiting=!1);e.sendEvent(n.State.ACTIVE,n.State.BEGAN),t!==n.State.ACTIVE&&(e.sendEvent(n.State.END,n.State.ACTIVE),t!==n.State.END&&e.sendEvent(n.State.UNDETERMINED,n.State.END)),e.awaiting&&(e.awaiting=!1,this.awaitingHandlers=this.awaitingHandlers.filter(t=>t!==e))}addAwaitingHandler(e){this.awaitingHandlers.includes(e)||(this.awaitingHandlers.push(e),this.awaitingHandlersTags.add(e.handlerTag),e.awaiting=!0,e.activationIndex=this.activationIndex++)}recordHandlerIfNotPresent(e){this.gestureHandlers.includes(e)||(this.gestureHandlers.push(e),e.active=!1,e.awaiting=!1,e.activationIndex=Number.MAX_SAFE_INTEGER)}shouldHandlerWaitForOther(e,t){return e!==t&&(e.shouldWaitForHandlerFailure(t)||t.shouldRequireToWaitForFailure(e))}canRunSimultaneously(e,t){return e===t||e.shouldRecognizeSimultaneously(t)||t.shouldRecognizeSimultaneously(e)}shouldHandlerBeCancelledBy(e,t){if(this.canRunSimultaneously(e,t))return!1;if(e.awaiting||e.state===n.State.ACTIVE)return e.shouldBeCancelledByOther(t);const i=e.getTrackedPointersID(),l=t.getTrackedPointersID();return!(!s.default.shareCommonPointers(i,l)&&e.delegate.view!==t.delegate.view)||this.checkOverlap(e,t)}checkOverlap(e,t){return e.getTrackedPointersID().some(n=>{const i=e.tracker.getLastAbsoluteCoords(n);return i&&e.delegate.isPointerInBounds(i)&&t.delegate.isPointerInBounds(i)})}isFinished(e){return e===n.State.END||e===n.State.FAILED||e===n.State.CANCELLED}cancelMouseAndPenGestures(e){this.gestureHandlers.forEach(n=>{n.pointerType!==t.PointerType.MOUSE&&n.pointerType!==t.PointerType.STYLUS||(n!==e?n.cancel():n.tracker.resetTracker())})}static get instance(){return l._instance||(l._instance=new l),l._instance}}},3257,[3258,3244,3259]);
15663
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PointerType",{enumerable:!0,get:function(){return t}});let t=(function(t){return t[t.TOUCH=0]="TOUCH",t[t.STYLUS=1]="STYLUS",t[t.MOUSE=2]="MOUSE",t[t.KEY=3]="KEY",t[t.OTHER=4]="OTHER",t})({})},3258,[]);
15664
+ __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 o}});var e,t=r(d[0]),s=(e=t)&&e.__esModule?e:{default:e};class o{velocityTracker=new s.default;_trackedPointers=new Map;touchEventsIds=new Map;cachedAbsoluteAverages={x:0,y:0};cachedRelativeAverages={x:0,y:0};constructor(){this.lastMovedPointerId=NaN;for(let e=0;e<20;++e)this.touchEventsIds.set(e,NaN)}addToTracker(e){if(this.trackedPointers.has(e.pointerId))return;this.lastMovedPointerId=e.pointerId;const t={abosoluteCoords:{x:e.x,y:e.y},relativeCoords:{x:e.offsetX,y:e.offsetY},timestamp:e.time,velocityX:0,velocityY:0};this.trackedPointers.set(e.pointerId,t),this.mapTouchEventId(e.pointerId),this.cachedAbsoluteAverages=this.getAbsoluteCoordsAverage(),this.cachedRelativeAverages=this.getRelativeCoordsAverage()}removeFromTracker(e){this.trackedPointers.delete(e),this.removeMappedTouchId(e)}track(e){const t=this.trackedPointers.get(e.pointerId);if(!t)return;this.lastMovedPointerId=e.pointerId,this.velocityTracker.add(e);const[s,o]=this.velocityTracker.velocity;t.velocityX=s,t.velocityY=o,t.abosoluteCoords={x:e.x,y:e.y},t.relativeCoords={x:e.offsetX,y:e.offsetY},this.trackedPointers.set(e.pointerId,t),this.cachedAbsoluteAverages=this.getAbsoluteCoordsAverage(),this.cachedRelativeAverages=this.getRelativeCoordsAverage()}mapTouchEventId(e){for(const[t,s]of this.touchEventsIds)if(isNaN(s)){this.touchEventsIds.set(t,e);break}}removeMappedTouchId(e){const t=this.getMappedTouchEventId(e);isNaN(t)||this.touchEventsIds.set(t,NaN)}getMappedTouchEventId(e){for(const[t,s]of this.touchEventsIds.entries())if(s===e)return t;return NaN}getVelocity(e){const t=this.trackedPointers.get(e);return t?{x:t.velocityX,y:t.velocityY}:null}getLastAbsoluteCoords(e){return this.trackedPointers.get(e??this.lastMovedPointerId)?.abosoluteCoords}getLastRelativeCoords(e){return this.trackedPointers.get(e??this.lastMovedPointerId)?.relativeCoords}getAbsoluteCoordsAverage(){const e=this.getAbsoluteCoordsSum(),t=e.x/this.trackedPointers.size,s=e.y/this.trackedPointers.size;return{x:isNaN(t)?this.cachedAbsoluteAverages.x:t,y:isNaN(s)?this.cachedAbsoluteAverages.y:s}}getRelativeCoordsAverage(){const e=this.getRelativeCoordsSum(),t=e.x/this.trackedPointers.size,s=e.y/this.trackedPointers.size;return{x:isNaN(t)?this.cachedRelativeAverages.x:t,y:isNaN(s)?this.cachedRelativeAverages.y:s}}getAbsoluteCoordsSum(e){const t={x:0,y:0};return this.trackedPointers.forEach((s,o)=>{o!==e&&(t.x+=s.abosoluteCoords.x,t.y+=s.abosoluteCoords.y)}),t}getRelativeCoordsSum(e){const t={x:0,y:0};return this.trackedPointers.forEach((s,o)=>{o!==e&&(t.x+=s.relativeCoords.x,t.y+=s.relativeCoords.y)}),t}resetTracker(){this.velocityTracker.reset(),this.trackedPointers.clear(),this.lastMovedPointerId=NaN;for(let e=0;e<20;++e)this.touchEventsIds.set(e,NaN)}static shareCommonPointers(e,t){return e.some(e=>t.includes(e))}get trackedPointersCount(){return this.trackedPointers.size}get trackedPointersIDs(){const e=[];return this.trackedPointers.forEach((t,s)=>{e.push(s)}),e}get trackedPointers(){return this._trackedPointers}}},3259,[3260]);
15665
+ __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 l}});var t=e(r(d[0])),s=e(r(d[1]));class l{assumePointerMoveStoppedMilliseconds=40;historySize=20;horizonMilliseconds=300;minSampleSize=3;constructor(){this.samples=new t.default(this.historySize)}add(e){this.samples.push(e)}getVelocityEstimate(){const e=[],t=[],l=[],n=[];let o=0,u=this.samples.size-1;const c=this.samples.get(u);if(!c)return null;let h=c;for(;o<this.samples.size;){const s=this.samples.get(u),f=c.time-s.time,p=Math.abs(s.time-h.time);if(h=s,f>this.horizonMilliseconds||p>this.assumePointerMoveStoppedMilliseconds)break;e.push(s.x),t.push(s.y),l.push(1),n.push(-f),o++,u--}if(o>=this.minSampleSize){const o=new s.default(n,e,l).solve(2);if(null!==o){const e=new s.default(n,t,l).solve(2);if(null!==e){return[1e3*o.coefficients[1],1e3*e.coefficients[1]]}}}return null}get velocity(){const e=this.getVelocityEstimate();return null!==e?e:[0,0]}reset(){this.samples.clear()}}},3260,[3261,3262]);
15666
+ __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 t}});class t{constructor(t){this.capacity=t,this.buffer=new Array(t),this.index=0,this._size=0}push(t){this.buffer[this.index]=t,this.index=(this.index+1)%this.capacity,this._size=Math.min(this.size+1,this.capacity)}get(t){if(this._size===this.capacity){let s=(this.index+t)%this.capacity;return s<0&&(s+=this.capacity),this.buffer[s]}return this.buffer[t]}clear(){this.buffer=new Array(this.capacity),this.index=0,this._size=0}get size(){return this._size}}},3261,[]);
15667
+ __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 o}});class t{constructor(t){this.offset=0,this.length=t,this.elements=new Array(t)}static fromVOL(s,n,o){const r=new t(0);return r.offset=n,r.length=o,r.elements=s,r}get(t){return this.elements[this.offset+t]}set(t,s){this.elements[this.offset+t]=s}dot(t){let s=0;for(let n=0;n<this.length;n++)s+=this.get(n)*t.get(n);return s}norm(){return Math.sqrt(this.dot(this))}}class s{constructor(t,s){this.columns=s,this.elements=new Array(t*s)}get(t,s){return this.elements[t*this.columns+s]}set(t,s,n){this.elements[t*this.columns+s]=n}getRow(s){return t.fromVOL(this.elements,s*this.columns,this.columns)}}class n{constructor(t){this.coefficients=new Array(t+1)}}class o{constructor(t,s,n){this.x=t,this.y=s,this.w=n}solve(o){if(o>this.x.length)return null;const r=new n(o),i=this.x.length,l=o+1,c=new s(l,i);for(let t=0;t<i;t++){c.set(0,t,this.w[t]);for(let s=1;s<l;s++)c.set(s,t,c.get(s-1,t)*this.x[t])}const f=new s(l,i),h=new s(l,i);for(let t=0;t<l;t+=1){for(let s=0;s<i;s+=1)f.set(t,s,c.get(t,s));for(let s=0;s<t;s+=1){const n=f.getRow(t).dot(f.getRow(s));for(let o=0;o<i;o+=1)f.set(t,o,f.get(t,o)-n*f.get(s,o))}const s=f.getRow(t).norm();if(s<1e-10)return null;const n=1/s;for(let s=0;s<i;s+=1)f.set(t,s,f.get(t,s)*n);for(let s=0;s<l;s+=1)h.set(t,s,s<t?0:f.getRow(t).dot(c.getRow(s)))}const u=new t(i);for(let t=0;t<i;t+=1)u.set(t,this.y[t]*this.w[t]);for(let t=l-1;t>=0;t-=1){r.coefficients[t]=f.getRow(t).dot(u);for(let s=l-1;s>t;s-=1)r.coefficients[t]-=h.get(t,s)*r.coefficients[s];r.coefficients[t]/=h.get(t,t)}return r}}},3262,[]);
15668
+ __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 t}});class t{waitForRelations=new Map;simultaneousRelations=new Map;blocksHandlersRelations=new Map;constructor(){}configureInteractions(t,n){if(this.dropRelationsForHandlerWithTag(t.handlerTag),n.waitFor){const s=[];n.waitFor.forEach(t=>{'number'==typeof t?s.push(t):s.push(t.handlerTag)}),this.waitForRelations.set(t.handlerTag,s)}if(n.simultaneousHandlers){const s=[];n.simultaneousHandlers.forEach(t=>{'number'==typeof t?s.push(t):s.push(t.handlerTag)}),this.simultaneousRelations.set(t.handlerTag,s)}if(n.blocksHandlers){const s=[];n.blocksHandlers.forEach(t=>{'number'==typeof t?s.push(t):s.push(t.handlerTag)}),this.blocksHandlersRelations.set(t.handlerTag,s)}}shouldWaitForHandlerFailure(t,n){const s=this.waitForRelations.get(t.handlerTag);return void 0!==s?.find(t=>t===n.handlerTag)}shouldRecognizeSimultaneously(t,n){const s=this.simultaneousRelations.get(t.handlerTag);return void 0!==s?.find(t=>t===n.handlerTag)}shouldRequireHandlerToWaitForFailure(t,n){const s=this.blocksHandlersRelations.get(t.handlerTag);return void 0!==s?.find(t=>t===n.handlerTag)}shouldHandlerBeCancelledBy(t,n){const s='NativeViewGestureHandler'===n.constructor.name,l=n.active,o=!0===n.isButton?.();return s&&l&&!o}dropRelationsForHandlerWithTag(t){this.waitForRelations.delete(t),this.simultaneousRelations.delete(t),this.blocksHandlersRelations.delete(t)}reset(){this.waitForRelations.clear(),this.simultaneousRelations.clear(),this.blocksHandlersRelations.clear()}static get instance(){return this._instance||(this._instance=new t),this._instance}}},3263,[]);
15669
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"baseGestureHandlerProps",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"baseGestureHandlerWithDetectorProps",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"MouseButton",{enumerable:!0,get:function(){return u}});const n=['id','enabled','shouldCancelWhenOutside','hitSlop','cancelsTouchesInView','userSelect','activeCursor','mouseButton','enableContextMenu','touchAction'],t=[...n,'waitFor','simultaneousHandlers','blocksHandlers','onBegan','onFailed','onCancelled','onActivated','onEnded','onGestureEvent','onHandlerStateChange'],o=[...n,'needsPointerData','manualActivation'];let u=(function(n){return n[n.LEFT=1]="LEFT",n[n.RIGHT=2]="RIGHT",n[n.MIDDLE=4]="MIDDLE",n[n.BUTTON_4=8]="BUTTON_4",n[n.BUTTON_5=16]="BUTTON_5",n[n.ALL=31]="ALL",n})({})},3264,[]);
15670
+ __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function s(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return u}});var e=s(r(d[0])),o=r(d[1]),n=r(d[2]),h=s(r(d[3]));class u extends h.default{maxDeltaX=Number.MIN_SAFE_INTEGER;maxDeltaY=Number.MIN_SAFE_INTEGER;maxDistSq=Number.MIN_SAFE_INTEGER;maxDurationMs=500;maxDelayMs=500;numberOfTaps=1;minNumberOfPointers=1;currentMaxNumberOfPointers=1;startX=0;startY=0;offsetX=0;offsetY=0;lastX=0;lastY=0;tapsSoFar=0;updateGestureConfig(s){let{enabled:o=!0}=s,n=(0,e.default)(s,t);super.updateGestureConfig(Object.assign({enabled:o},n)),void 0!==this.config.numberOfTaps&&(this.numberOfTaps=this.config.numberOfTaps),void 0!==this.config.maxDurationMs&&(this.maxDurationMs=this.config.maxDurationMs),void 0!==this.config.maxDelayMs&&(this.maxDelayMs=this.config.maxDelayMs),void 0!==this.config.maxDeltaX&&(this.maxDeltaX=this.config.maxDeltaX),void 0!==this.config.maxDeltaY&&(this.maxDeltaY=this.config.maxDeltaY),void 0!==this.config.maxDist&&(this.maxDistSq=this.config.maxDist*this.config.maxDist),void 0!==this.config.minPointers&&(this.minNumberOfPointers=this.config.minPointers)}resetConfig(){super.resetConfig(),this.maxDeltaX=Number.MIN_SAFE_INTEGER,this.maxDeltaY=Number.MIN_SAFE_INTEGER,this.maxDistSq=Number.MIN_SAFE_INTEGER,this.maxDurationMs=500,this.maxDelayMs=500,this.numberOfTaps=1,this.minNumberOfPointers=1}clearTimeouts(){clearTimeout(this.waitTimeout),clearTimeout(this.delayTimeout)}startTap(){this.clearTimeouts(),this.waitTimeout=setTimeout(()=>this.fail(),this.maxDurationMs)}endTap(){this.clearTimeouts(),++this.tapsSoFar===this.numberOfTaps&&this.currentMaxNumberOfPointers>=this.minNumberOfPointers?this.activate():this.delayTimeout=setTimeout(()=>this.fail(),this.maxDelayMs)}updateLastCoords(){const{x:t,y:s}=this.tracker.getAbsoluteCoordsAverage();this.lastX=t,this.lastY=s}onPointerDown(t){this.isButtonInConfig(t.button)&&(this.tracker.addToTracker(t),super.onPointerDown(t),this.trySettingPosition(t),this.startX=t.x,this.startY=t.y,this.lastX=t.x,this.lastY=t.y,this.updateState(t),this.tryToSendTouchEvent(t))}onPointerAdd(t){super.onPointerAdd(t),this.tracker.addToTracker(t),this.trySettingPosition(t),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY-this.startY,this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.updateState(t)}onPointerUp(t){super.onPointerUp(t),this.updateLastCoords(),this.tracker.removeFromTracker(t.pointerId),this.updateState(t)}onPointerRemove(t){super.onPointerRemove(t),this.tracker.removeFromTracker(t.pointerId),this.offsetX+=this.lastX-this.startX,this.offsetY+=this.lastY=this.startY,this.updateLastCoords(),this.startX=this.lastX,this.startY=this.lastY,this.updateState(t)}onPointerMove(t){this.trySettingPosition(t),this.tracker.track(t),this.updateLastCoords(),this.updateState(t),super.onPointerMove(t)}onPointerOutOfBounds(t){this.trySettingPosition(t),this.tracker.track(t),this.updateLastCoords(),this.updateState(t),super.onPointerOutOfBounds(t)}updateState(t){if(this.currentMaxNumberOfPointers<this.tracker.trackedPointersCount&&(this.currentMaxNumberOfPointers=this.tracker.trackedPointersCount),this.shouldFail())this.fail();else switch(this.state){case o.State.UNDETERMINED:t.eventType===n.EventTypes.DOWN&&this.begin(),this.startTap();break;case o.State.BEGAN:t.eventType===n.EventTypes.UP&&this.endTap(),t.eventType===n.EventTypes.DOWN&&this.startTap()}}trySettingPosition(t){this.state===o.State.UNDETERMINED&&(this.offsetX=0,this.offsetY=0,this.startX=t.x,this.startY=t.y)}shouldFail(){const t=this.lastX-this.startX+this.offsetX;if(this.maxDeltaX!==Number.MIN_SAFE_INTEGER&&Math.abs(t)>this.maxDeltaX)return!0;const s=this.lastY-this.startY+this.offsetY;if(this.maxDeltaY!==Number.MIN_SAFE_INTEGER&&Math.abs(s)>this.maxDeltaY)return!0;const e=s*s+t*t;return this.maxDistSq!==Number.MIN_SAFE_INTEGER&&e>this.maxDistSq}activate(){super.activate(),this.end()}onCancel(){this.resetProgress(),this.clearTimeouts()}resetProgress(){this.clearTimeouts(),this.tapsSoFar=0,this.currentMaxNumberOfPointers=0}}},3265,[120,3244,3255,3256]);
15671
+ __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var s=e(r(d[0])),n=r(d[1]),o=e(r(d[2]));class h extends o.default{minDurationMs=500;defaultMaxDistSq=100;maxDistSq=this.defaultMaxDistSq;numberOfPointers=1;startX=0;startY=0;startTime=0;previousTime=0;init(t,e){void 0===this.config.enableContextMenu&&(this.config.enableContextMenu=!1),super.init(t,e)}transformNativeEvent(){return Object.assign({},super.transformNativeEvent(),{duration:Date.now()-this.startTime})}updateGestureConfig(e){let{enabled:n=!0}=e,o=(0,s.default)(e,t);super.updateGestureConfig(Object.assign({enabled:n},o)),void 0!==this.config.minDurationMs&&(this.minDurationMs=this.config.minDurationMs),void 0!==this.config.maxDist&&(this.maxDistSq=this.config.maxDist*this.config.maxDist),void 0!==this.config.numberOfPointers&&(this.numberOfPointers=this.config.numberOfPointers)}resetConfig(){super.resetConfig(),this.minDurationMs=500,this.maxDistSq=this.defaultMaxDistSq}onStateChange(t,e){clearTimeout(this.activationTimeout)}onPointerDown(t){this.isButtonInConfig(t.button)&&(this.tracker.addToTracker(t),super.onPointerDown(t),this.startX=t.x,this.startY=t.y,this.tryBegin(),this.tryActivate(),this.tryToSendTouchEvent(t))}onPointerAdd(t){if(super.onPointerAdd(t),this.tracker.addToTracker(t),this.tracker.trackedPointersCount>this.numberOfPointers)return void this.fail();const e=this.tracker.getAbsoluteCoordsAverage();this.startX=e.x,this.startY=e.y,this.tryActivate()}onPointerMove(t){super.onPointerMove(t),this.tracker.track(t),this.checkDistanceFail()}onPointerOutOfBounds(t){super.onPointerOutOfBounds(t),this.tracker.track(t),this.checkDistanceFail()}onPointerUp(t){super.onPointerUp(t),this.tracker.removeFromTracker(t.pointerId),this.state===n.State.ACTIVE?this.end():this.fail()}onPointerRemove(t){super.onPointerRemove(t),this.tracker.removeFromTracker(t.pointerId),this.tracker.trackedPointersCount<this.numberOfPointers&&this.state!==n.State.ACTIVE&&this.fail()}tryBegin(){this.state===n.State.UNDETERMINED&&(this.previousTime=Date.now(),this.startTime=this.previousTime,this.begin())}tryActivate(){this.tracker.trackedPointersCount===this.numberOfPointers&&(this.minDurationMs>0?this.activationTimeout=setTimeout(()=>{this.activate()},this.minDurationMs):0===this.minDurationMs&&this.activate())}checkDistanceFail(){const t=this.tracker.getAbsoluteCoordsAverage(),e=t.x-this.startX,s=t.y-this.startY;e*e+s*s<=this.maxDistSq||(this.state===n.State.ACTIVE?this.cancel():this.fail())}}},3266,[120,3244,3256]);
15672
+ __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e=r(d[0]),s=r(d[1]),o=t(r(d[2])),n=t(r(d[3]));class c extends o.default{scale=1;velocity=0;startingSpan=0;spanSlop=s.DEFAULT_TOUCH_SLOP;scaleDetectorListener={onScaleBegin:t=>(this.startingSpan=t.currentSpan,!0),onScale:t=>{const s=this.scale;this.scale*=t.calculateScaleFactor(this.tracker.trackedPointersCount);const o=t.timeDelta;return o>0&&(this.velocity=(this.scale-s)/o),Math.abs(this.startingSpan-t.currentSpan)>=this.spanSlop&&this.state===e.State.BEGAN&&this.activate(),!0},onScaleEnd:t=>{}};scaleGestureDetector=new n.default(this.scaleDetectorListener);init(t,e){super.init(t,e),this.shouldCancelWhenOutside=!1}transformNativeEvent(){return{focalX:this.scaleGestureDetector.focusX,focalY:this.scaleGestureDetector.focusY,velocity:this.velocity,scale:this.scale}}onPointerDown(t){this.tracker.addToTracker(t),super.onPointerDown(t),this.tryToSendTouchEvent(t)}onPointerAdd(t){this.tracker.addToTracker(t),super.onPointerAdd(t),this.tryBegin(),this.scaleGestureDetector.onTouchEvent(t,this.tracker)}onPointerUp(t){super.onPointerUp(t),this.tracker.removeFromTracker(t.pointerId),this.state===e.State.ACTIVE?(this.scaleGestureDetector.onTouchEvent(t,this.tracker),this.end()):this.fail()}onPointerRemove(t){super.onPointerRemove(t),this.scaleGestureDetector.onTouchEvent(t,this.tracker),this.tracker.removeFromTracker(t.pointerId),this.state===e.State.ACTIVE&&this.tracker.trackedPointersCount<2&&this.end()}onPointerMove(t){this.tracker.trackedPointersCount<2||(this.tracker.track(t),this.scaleGestureDetector.onTouchEvent(t,this.tracker),super.onPointerMove(t))}onPointerOutOfBounds(t){this.tracker.trackedPointersCount<2||(this.tracker.track(t),this.scaleGestureDetector.onTouchEvent(t,this.tracker),super.onPointerOutOfBounds(t))}tryBegin(){this.state===e.State.UNDETERMINED&&(this.resetProgress(),this.begin())}activate(t){this.state!==e.State.ACTIVE&&this.resetProgress(),super.activate(t)}onReset(){this.resetProgress()}resetProgress(){this.state!==e.State.ACTIVE&&(this.velocity=0,this.scale=1)}}},3267,[3244,3254,3256,3268]);
15673
+ __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 n}});var t=r(d[0]),s=r(d[1]);class n{inProgress=!1;constructor(s){this.onScaleBegin=s.onScaleBegin,this.onScale=s.onScale,this.onScaleEnd=s.onScaleEnd,this.spanSlop=2*t.DEFAULT_TOUCH_SLOP,this.minSpan=0}onTouchEvent(t,n){this.currentTime=t.time;const o=t.eventType,h=n.trackedPointersCount,c=o===s.EventTypes.UP||o===s.EventTypes.ADDITIONAL_POINTER_UP||o===s.EventTypes.CANCEL;if((o===s.EventTypes.DOWN||c)&&(this.inProgress&&(this.onScaleEnd(this),this.inProgress=!1,this.initialSpan=0),c))return!0;const p=o===s.EventTypes.DOWN||o===s.EventTypes.ADDITIONAL_POINTER_UP||o===s.EventTypes.ADDITIONAL_POINTER_DOWN,u=o===s.EventTypes.ADDITIONAL_POINTER_UP,S=u?t.pointerId:void 0,l=u?h-1:h,T=n.getAbsoluteCoordsSum(),v=T.x/l,E=T.y/l;let P=0,_=0;n.trackedPointers.forEach((t,s)=>{s!==S&&(P+=Math.abs(t.abosoluteCoords.x-v),_+=Math.abs(t.abosoluteCoords.y-E))});const O=2*(P/l),y=2*(_/l),f=Math.hypot(O,y),D=this.inProgress;return this._focusX=v,this._focusY=E,this.inProgress&&(f<this.minSpan||p)&&(this.onScaleEnd(this),this.inProgress=!1,this.initialSpan=f),p&&(this.initialSpan=this.prevSpan=this._currentSpan=f),!this.inProgress&&f>=this.minSpan&&(D||Math.abs(f-this.initialSpan)>this.spanSlop)&&(this.prevSpan=this._currentSpan=f,this.prevTime=this.currentTime,this.inProgress=this.onScaleBegin(this)),o!==s.EventTypes.MOVE||(this._currentSpan=f,this.inProgress&&!this.onScale(this)||(this.prevSpan=this.currentSpan,this.prevTime=this.currentTime),!0)}calculateScaleFactor(t){return t<2?1:this.prevSpan>0?this.currentSpan/this.prevSpan:1}get currentSpan(){return this._currentSpan}get focusX(){return this._focusX}get focusY(){return this._focusY}get timeDelta(){return this.currentTime-this.prevTime}}},3268,[3254,3255]);
15674
+ __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var e=r(d[0]),o=t(r(d[1])),n=t(r(d[2]));const s=Math.PI/36;class h extends o.default{rotation=0;velocity=0;cachedAnchorX=0;cachedAnchorY=0;rotationGestureListener={onRotationBegin:t=>!0,onRotation:t=>{const o=this.rotation;this.rotation+=t.rotation;const n=t.timeDelta;return n>0&&(this.velocity=(this.rotation-o)/n),Math.abs(this.rotation)>=s&&this.state===e.State.BEGAN&&this.activate(),!0},onRotationEnd:t=>{this.state===e.State.ACTIVE?this.end():this.fail()}};rotationGestureDetector=new n.default(this.rotationGestureListener);init(t,e){super.init(t,e),this.shouldCancelWhenOutside=!1}transformNativeEvent(){return{rotation:this.rotation?this.rotation:0,anchorX:this.getAnchorX(),anchorY:this.getAnchorY(),velocity:this.velocity?this.velocity:0}}getAnchorX(){const t=this.rotationGestureDetector.anchorX;return t||this.cachedAnchorX}getAnchorY(){const t=this.rotationGestureDetector.anchorY;return t||this.cachedAnchorY}onPointerDown(t){this.tracker.addToTracker(t),super.onPointerDown(t),this.tryToSendTouchEvent(t)}onPointerAdd(t){this.tracker.addToTracker(t),super.onPointerAdd(t),this.tryBegin(),this.rotationGestureDetector.onTouchEvent(t,this.tracker)}onPointerMove(t){this.tracker.trackedPointersCount<2||(this.getAnchorX()&&(this.cachedAnchorX=this.getAnchorX()),this.getAnchorY()&&(this.cachedAnchorY=this.getAnchorY()),this.tracker.track(t),this.rotationGestureDetector.onTouchEvent(t,this.tracker),super.onPointerMove(t))}onPointerOutOfBounds(t){this.tracker.trackedPointersCount<2||(this.getAnchorX()&&(this.cachedAnchorX=this.getAnchorX()),this.getAnchorY()&&(this.cachedAnchorY=this.getAnchorY()),this.tracker.track(t),this.rotationGestureDetector.onTouchEvent(t,this.tracker),super.onPointerOutOfBounds(t))}onPointerUp(t){super.onPointerUp(t),this.tracker.removeFromTracker(t.pointerId),this.rotationGestureDetector.onTouchEvent(t,this.tracker)}onPointerRemove(t){super.onPointerRemove(t),this.rotationGestureDetector.onTouchEvent(t,this.tracker),this.tracker.removeFromTracker(t.pointerId)}tryBegin(){this.state===e.State.UNDETERMINED&&this.begin()}onReset(){this.state!==e.State.ACTIVE&&(this.rotation=0,this.velocity=0,this.rotationGestureDetector.reset())}}},3269,[3244,3256,3270]);
15675
+ __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 s}});var t=r(d[0]);class s{currentTime=0;previousTime=0;previousAngle=0;_rotation=0;_anchorX=0;_anchorY=0;isInProgress=!1;keyPointers=[NaN,NaN];constructor(t){this.onRotationBegin=t.onRotationBegin,this.onRotation=t.onRotation,this.onRotationEnd=t.onRotationEnd}updateCurrent(t,s){this.previousTime=this.currentTime,this.currentTime=t.time;const[n,o]=this.keyPointers,h=s.getLastAbsoluteCoords(n),u=s.getLastAbsoluteCoords(o);if(!h||!u)return;const P=u.x-h.x,c=u.y-h.y;this._anchorX=(h.x+u.x)/2,this._anchorY=(h.y+u.y)/2;const y=-Math.atan2(c,P);this._rotation=Number.isNaN(this.previousAngle)?0:this.previousAngle-y,this.previousAngle=y,this.rotation>Math.PI?this._rotation-=Math.PI:this.rotation<-Math.PI&&(this._rotation+=Math.PI),this.rotation>Math.PI/2?this._rotation-=Math.PI:this.rotation<-Math.PI/2&&(this._rotation+=Math.PI)}finish(){this.isInProgress&&(this.isInProgress=!1,this.keyPointers=[NaN,NaN]),this.onRotationEnd(this)}setKeyPointers(t){if(this.keyPointers[0]&&this.keyPointers[1])return;const s=t.trackedPointers.keys();this.keyPointers[0]=s.next().value,this.keyPointers[1]=s.next().value}onTouchEvent(s,n){switch(s.eventType){case t.EventTypes.DOWN:this.isInProgress=!1;break;case t.EventTypes.ADDITIONAL_POINTER_DOWN:if(this.isInProgress)break;this.isInProgress=!0,this.previousTime=s.time,this.previousAngle=NaN,this.setKeyPointers(n),this.updateCurrent(s,n),this.onRotationBegin(this);break;case t.EventTypes.MOVE:if(!this.isInProgress)break;this.updateCurrent(s,n),this.onRotation(this);break;case t.EventTypes.ADDITIONAL_POINTER_UP:if(!this.isInProgress)break;this.keyPointers.indexOf(s.pointerId)>=0&&this.finish();break;case t.EventTypes.UP:this.finish()}return!0}reset(){this.keyPointers=[NaN,NaN],this.isInProgress=!1}get anchorX(){return this._anchorX}get anchorY(){return this._anchorY}get rotation(){return this._rotation}get timeDelta(){return this.currentTime+this.previousTime}}},3270,[3255]);
15676
+ __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return p}});var n=e(r(d[0])),o=r(d[1]),s=r(d[2]),u=e(r(d[3])),c=e(r(d[4])),h=r(d[5]);const l=s.Directions.RIGHT,f=(0,h.coneToDeviation)(30),P=(0,h.coneToDeviation)(60);class p extends u.default{numberOfPointersRequired=1;direction=l;maxDurationMs=800;minVelocity=700;maxNumberOfPointersSimultaneously=0;keyPointer=NaN;updateGestureConfig(e){let{enabled:o=!0}=e,s=(0,n.default)(e,t);super.updateGestureConfig(Object.assign({enabled:o},s)),this.config.direction&&(this.direction=this.config.direction),this.config.numberOfPointers&&(this.numberOfPointersRequired=this.config.numberOfPointers)}startFling(){this.begin(),this.maxNumberOfPointersSimultaneously=1,this.delayTimeout=setTimeout(()=>this.fail(),this.maxDurationMs)}tryEndFling(){const t=c.default.fromVelocity(this.tracker,this.keyPointer);if(!t)return!1;const e=(e,n)=>(e&this.direction)===e&&t.isSimilar(c.default.fromDirection(e),n),n=Object.values(s.Directions),o=Object.values(s.DiagonalDirections),u=n.map(t=>e(t,f)),h=o.map(t=>e(t,P)),l=u.some(Boolean)||h.some(Boolean),p=t.magnitude>this.minVelocity;return!(this.maxNumberOfPointersSimultaneously!==this.numberOfPointersRequired||!l||!p)&&(clearTimeout(this.delayTimeout),this.activate(),!0)}endFling(){this.tryEndFling()||this.fail()}onPointerDown(t){this.isButtonInConfig(t.button)&&(this.tracker.addToTracker(t),this.keyPointer=t.pointerId,super.onPointerDown(t),this.newPointerAction(),this.tryToSendTouchEvent(t))}onPointerAdd(t){this.tracker.addToTracker(t),super.onPointerAdd(t),this.newPointerAction()}newPointerAction(){this.state===o.State.UNDETERMINED&&this.startFling(),this.state===o.State.BEGAN&&(this.tryEndFling(),this.tracker.trackedPointersCount>this.maxNumberOfPointersSimultaneously&&(this.maxNumberOfPointersSimultaneously=this.tracker.trackedPointersCount))}pointerMoveAction(t){this.tracker.track(t),this.state===o.State.BEGAN&&this.tryEndFling()}onPointerMove(t){this.pointerMoveAction(t),super.onPointerMove(t)}onPointerOutOfBounds(t){this.pointerMoveAction(t),super.onPointerOutOfBounds(t)}onPointerUp(t){super.onPointerUp(t),this.onUp(t),this.keyPointer=NaN}onPointerRemove(t){super.onPointerRemove(t),this.onUp(t)}onUp(t){this.state===o.State.BEGAN&&this.endFling(),this.tracker.removeFromTracker(t.pointerId)}activate(t){super.activate(t),this.end()}resetConfig(){super.resetConfig(),this.numberOfPointersRequired=1,this.direction=l}}},3271,[120,3244,3272,3256,3273,3274]);
15677
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"Directions",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"DiagonalDirections",{enumerable:!0,get:function(){return n}});const t={RIGHT:1,LEFT:2,UP:4,DOWN:8},n={UP_RIGHT:5,DOWN_RIGHT:9,UP_LEFT:6,DOWN_LEFT:10}},3272,[]);
15678
+ __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 s}});var t=r(d[0]),n=r(d[1]);class s{constructor(t,s){this.x=t,this.y=s,this._magnitude=Math.hypot(this.x,this.y);const o=this._magnitude>n.MINIMAL_RECOGNIZABLE_MAGNITUDE;this.unitX=o?this.x/this._magnitude:0,this.unitY=o?this.y/this._magnitude:0}static fromDirection(t){return o.get(t)??new s(0,0)}static fromVelocity(t,n){const o=t.getVelocity(n);return o?new s(o.x,o.y):null}get magnitude(){return this._magnitude}computeSimilarity(t){return this.unitX*t.unitX+this.unitY*t.unitY}isSimilar(t,n){return this.computeSimilarity(t)>n}}const o=new Map([[t.Directions.LEFT,new s(-1,0)],[t.Directions.RIGHT,new s(1,0)],[t.Directions.UP,new s(0,-1)],[t.Directions.DOWN,new s(0,1)],[t.DiagonalDirections.UP_RIGHT,new s(1,-1)],[t.DiagonalDirections.DOWN_RIGHT,new s(1,1)],[t.DiagonalDirections.UP_LEFT,new s(-1,-1)],[t.DiagonalDirections.DOWN_LEFT,new s(-1,1)]])},3273,[3272,3254]);
15679
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.isPointerInBounds=function(t,{x:n,y:o}){const l=t.getBoundingClientRect();return n>=l.left&&n<=l.right&&o>=l.top&&o<=l.bottom},Object.defineProperty(e,"PointerTypeMapping",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"degToRad",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"coneToDeviation",{enumerable:!0,get:function(){return l}}),e.calculateViewScale=function(t){const n=getComputedStyle(t),o={scaleX:1,scaleY:1};if(void 0!==n.scale&&'none'!==n.scale){const t=n.scale.split(' ');t[0]&&(o.scaleX=parseFloat(t[0])),o.scaleY=t[1]?parseFloat(t[1]):parseFloat(t[0])}const l=new RegExp(/matrix\((.+)\)/).exec(n.transform)?.[1];if(l){const t=l.split(', ');o.scaleX*=parseFloat(t[0]),o.scaleY*=parseFloat(t[3])}return o},e.tryExtractStylusData=function(o){if(n.get(o.pointerType)!==t.PointerType.STYLUS)return;const l=o.azimuthAngle,M=o.altitudeAngle;if(0===o.tiltX&&0===o.tiltY){if(void 0===l||void 0===M)return{tiltX:0,tiltY:0,azimuthAngle:Math.PI/2,altitudeAngle:Math.PI/2,pressure:o.pressure};const{tiltX:t,tiltY:n}=h(M,l);return{tiltX:t,tiltY:n,azimuthAngle:l,altitudeAngle:M,pressure:o.pressure}}const{altitudeAngle:u,azimuthAngle:c}=s(o.tiltX,o.tiltY);return{tiltX:o.tiltX,tiltY:o.tiltY,azimuthAngle:c,altitudeAngle:u,pressure:o.pressure}},Object.defineProperty(e,"RNSVGElements",{enumerable:!0,get:function(){return M}}),e.isRNSVGElement=function(t){const n=Object.getPrototypeOf(t).constructor.name;return M.has(n)&&Object.hasOwn(t,'elementRef')},e.isRNSVGNode=function(t){if(t.props.ref?.rngh)return!1;return'WebShape'===Object.getPrototypeOf(t?.type)?.name||M.has(t?.type?.displayName)};var t=r(d[0]);const n=new Map([['mouse',t.PointerType.MOUSE],['touch',t.PointerType.TOUCH],['pen',t.PointerType.STYLUS],['none',t.PointerType.OTHER]]),o=t=>t*Math.PI/180,l=t=>Math.cos(o(t/2));function s(t,n){const o=t*Math.PI/180,l=n*Math.PI/180;let s=0;if(0===t)n>0?s=Math.PI/2:n<0&&(s=3*Math.PI/2);else if(0===n)t<0&&(s=Math.PI);else if(90===Math.abs(t)||90===Math.abs(n))s=0;else{const t=Math.tan(o),n=Math.tan(l);s=Math.atan2(n,t),s<0&&(s+=2*Math.PI)}let h=0;return h=90===Math.abs(t)||90===Math.abs(n)?0:0===t?Math.PI/2-Math.abs(l):0===n?Math.PI/2-Math.abs(o):Math.atan(1/Math.sqrt(Math.pow(Math.tan(o),2)+Math.pow(Math.tan(l),2))),{altitudeAngle:h,azimuthAngle:s}}function h(t,n){const o=180/Math.PI;let l=0,s=0;if(0===t&&(0!==n&&n!==2*Math.PI||(l=Math.PI/2),n===Math.PI/2&&(s=Math.PI/2),n===Math.PI&&(l=-Math.PI/2),n===3*Math.PI/2&&(s=-Math.PI/2),n>0&&n<Math.PI/2&&(l=Math.PI/2,s=Math.PI/2),n>Math.PI/2&&n<Math.PI&&(l=-Math.PI/2,s=Math.PI/2),n>Math.PI&&n<3*Math.PI/2&&(l=-Math.PI/2,s=-Math.PI/2),n>3*Math.PI/2&&n<2*Math.PI&&(l=Math.PI/2,s=-Math.PI/2)),0!==t){const o=Math.tan(t);l=Math.atan(Math.cos(n)/o),s=Math.atan(Math.sin(n)/o)}return{tiltX:Math.round(l*o),tiltY:Math.round(s*o)}}const M=new Set(['Circle','ClipPath','Ellipse','ForeignObject','G','Image','Line','Marker','Mask','Path','Pattern','Polygon','Polyline','Rect','Svg','Symbol','TSpan','Text','TextPath','Use'])},3274,[3258]);
15680
+ __d(function(g,r,i,a,m,_e,d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var s=e(r(d[0]));r(d[1]);var n=r(d[2]),o=r(d[3]),u=e(r(d[4]));class h extends u.default{shouldActivateOnStart=!1;disallowInterruption=!1;startX=0;startY=0;minDistSq=o.DEFAULT_TOUCH_SLOP*o.DEFAULT_TOUCH_SLOP;init(t,e){super.init(t,e),this.shouldCancelWhenOutside=!0;const s=this.delegate.view;this.restoreViewStyles(s),this.buttonRole='button'===s.getAttribute('role')}updateGestureConfig(e){let{enabled:n=!0}=e,o=(0,s.default)(e,t);super.updateGestureConfig(Object.assign({enabled:n},o)),void 0!==this.config.shouldActivateOnStart&&(this.shouldActivateOnStart=this.config.shouldActivateOnStart),void 0!==this.config.disallowInterruption&&(this.disallowInterruption=this.config.disallowInterruption);const u=this.delegate.view;this.restoreViewStyles(u)}restoreViewStyles(t){t&&(t.style.touchAction='auto',t.style.WebkitTouchCallout='auto')}onPointerDown(t){this.tracker.addToTracker(t),super.onPointerDown(t),this.newPointerAction(),this.tryToSendTouchEvent(t)}onPointerAdd(t){this.tracker.addToTracker(t),super.onPointerAdd(t),this.newPointerAction()}newPointerAction(){const t=this.tracker.getAbsoluteCoordsAverage();if(this.startX=t.x,this.startY=t.y,this.state!==n.State.UNDETERMINED)return;this.begin();const e=this.delegate.view.hasAttribute('rnghtext');(this.buttonRole||e)&&this.activate()}onPointerMove(t){this.tracker.track(t);const e=this.tracker.getAbsoluteCoordsAverage(),s=this.startX-e.x,o=this.startY-e.y;s*s+o*o>=this.minDistSq&&(this.buttonRole&&this.state===n.State.ACTIVE?this.cancel():this.buttonRole||this.state!==n.State.BEGAN||this.activate())}onPointerLeave(){this.state!==n.State.BEGAN&&this.state!==n.State.ACTIVE||this.cancel()}onPointerUp(t){super.onPointerUp(t),this.onUp(t)}onPointerRemove(t){super.onPointerRemove(t),this.onUp(t)}onUp(t){this.tracker.removeFromTracker(t.pointerId),0===this.tracker.trackedPointersCount&&(this.state===n.State.ACTIVE?this.end():this.fail())}shouldRecognizeSimultaneously(t){if(super.shouldRecognizeSimultaneously(t))return!0;if(t instanceof h&&t.state===n.State.ACTIVE&&t.disallowsInterruption())return!1;const e=!this.disallowInterruption;return(this.state!==n.State.ACTIVE||t.state!==n.State.ACTIVE||!e)&&(this.state===n.State.ACTIVE&&e&&t.handlerTag>0)}shouldBeCancelledByOther(t){return!this.disallowInterruption}disallowsInterruption(){return this.disallowInterruption}isButton(){return this.buttonRole}}},3275,[120,136,3244,3254,3256]);
15681
+ __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 n}});var e,o=r(d[0]),t=(e=o)&&e.__esModule?e:{default:e};class n extends t.default{onPointerDown(e){this.tracker.addToTracker(e),super.onPointerDown(e),this.begin(),this.tryToSendTouchEvent(e)}onPointerAdd(e){this.tracker.addToTracker(e),super.onPointerAdd(e)}onPointerMove(e){this.tracker.track(e),super.onPointerMove(e)}onPointerOutOfBounds(e){this.tracker.track(e),super.onPointerOutOfBounds(e)}onPointerUp(e){super.onPointerUp(e),this.tracker.removeFromTracker(e.pointerId)}onPointerRemove(e){super.onPointerRemove(e),this.tracker.removeFromTracker(e.pointerId)}}},3276,[3256]);
15682
+ __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var e=r(d[0]),s=t(r(d[1])),n=t(r(d[2]));class o extends n.default{transformNativeEvent(){return Object.assign({},super.transformNativeEvent(),{stylusData:this.stylusData})}onPointerMoveOver(t){s.default.instance.recordHandlerIfNotPresent(this),this.tracker.addToTracker(t),this.stylusData=t.stylusData,super.onPointerMoveOver(t),this.state===e.State.UNDETERMINED&&(this.begin(),this.activate())}onPointerMoveOut(t){this.tracker.removeFromTracker(t.pointerId),this.stylusData=t.stylusData,super.onPointerMoveOut(t),this.end()}onPointerMove(t){this.tracker.track(t),this.stylusData=t.stylusData,super.onPointerMove(t)}onPointerCancel(t){super.onPointerCancel(t),this.reset()}}},3277,[3244,3257,3256]);
15683
+ __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 c}});var t=e(r(_d[0])),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[1])),u=e(r(_d[2])),o=r(_d[3]);class s extends u.default{get isNative(){return!0}onRawEvent(e){if(super.onRawEvent(e),!e.isFinal&&(0,o.TEST_MIN_IF_NOT_NAN)((0,o.VEC_LEN_SQ)({x:e.deltaX,y:e.deltaY}),10)&&this.config.disallowInterruption){const u=Object.values(n.getNodes()).filter(e=>{const{handlerTag:n,view:u,isGestureRunning:o}=e;return n!==this.handlerTag&&o&&e instanceof t.default&&u&&this.view.contains(u)});for(const t of u)t.forceInvalidate(e)}}}var c=s},3278,[3279,3283,3286,3285]);
15684
+ __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]),s=(e=t)&&e.__esModule?e:{default:e},n=r(d[1]);class l extends s.default{get isDiscrete(){return!0}get shouldEnableGestureOnSetup(){return!0}shouldFailUnderCustomCriteria({x:e,y:t,deltaX:s,deltaY:l},{maxDeltaX:u,maxDeltaY:o,maxDistSq:c,shouldCancelWhenOutside:_}){return!(!_||this.isPointInView({x:e,y:t}))||((0,n.TEST_MAX_IF_NOT_NAN)(Math.abs(s),u)||(0,n.TEST_MAX_IF_NOT_NAN)(Math.abs(l),o)||(0,n.TEST_MAX_IF_NOT_NAN)(Math.abs(l*l+s*s),c))}transformNativeEvent({center:{x:e,y:t}}){const s=this.view.getBoundingClientRect();return{absoluteX:e,absoluteY:t,x:e-s.left,y:t-s.top}}isGestureEnabledForEvent({minPointers:e,maxPointers:t,maxDeltaX:s,maxDeltaY:n,maxDistSq:l,shouldCancelWhenOutside:u},o,{maxPointers:c,center:_,deltaX:h,deltaY:x}){const b=c>=e&&c<=t;return this.shouldFailUnderCustomCriteria(Object.assign({},_,{deltaX:h,deltaY:x}),{maxDeltaX:s,maxDeltaY:n,maxDistSq:l,shouldCancelWhenOutside:u})||!b&&this.isGestureRunning?{failed:!0}:{success:b}}}var u=l},3279,[3280,3285]);
15685
+ __d(function(g,r,i,a,m,_e,_d){"use strict";const t=["enabled"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return E}});var s=e(r(_d[0])),n=e(r(_d[1])),o=e(r(_d[2])),u=r(_d[3]),h=r(_d[4]),l=(function(t){if(t&&t.__esModule)return t;var e={};return t&&Object.keys(t).forEach(function(s){var n=Object.getOwnPropertyDescriptor(t,s);Object.defineProperty(e,s,n.get?n:{enumerable:!0,get:function(){return t[s]}})}),e.default=t,e})(r(_d[5])),d=r(_d[6]);let f=0;function c(t,e){if(t)if('function'==typeof t)t(e);else if('__getHandler'in t&&'function'==typeof t.__getHandler){c(t.__getHandler(),e)}else if('__nodeConfig'in t){const{argMapping:s}=t.__nodeConfig;if(Array.isArray(s))for(const[n,[o,u]]of s.entries())if(o in e.nativeEvent){const s=e.nativeEvent[o];u&&u.setValue?u.setValue(s):t.__nodeConfig.argMapping[n]=[o,s]}}}function v(t){return null==t?[]:Array.isArray(t)?t:[t]}var E=class{isGestureRunning=!1;view=null;hasGestureFailed=!1;hammer=null;initialRotation=null;config={};previousState=u.State.UNDETERMINED;pendingGestures={};oldState=u.State.UNDETERMINED;lastSentState=null;get id(){return`${this.name}${this.gestureInstance}`}get isNative(){return!1}get isDiscrete(){return!1}get shouldEnableGestureOnSetup(){throw new Error('Must override GestureHandler.shouldEnableGestureOnSetup')}constructor(){this.gestureInstance=f++,this.hasCustomActivationCriteria=!1}getConfig(){return this.config}onWaitingEnded(t){}removePendingGesture(t){delete this.pendingGestures[t]}addPendingGesture(t){this.pendingGestures[t.id]=t}isGestureEnabledForEvent(t,e,s){return{success:!0}}get NativeGestureClass(){throw new Error('Must override GestureHandler.NativeGestureClass')}updateHasCustomActivationCriteria(t){return!0}clearSelfAsPending=()=>{if(Array.isArray(this.config.waitFor))for(const t of this.config.waitFor)t.removePendingGesture(this.id)};updateGestureConfig(e){let{enabled:n=!0}=e,o=(0,s.default)(e,t);if(this.clearSelfAsPending(),this.config=this.ensureConfig(Object.assign({enabled:n},o)),this.hasCustomActivationCriteria=this.updateHasCustomActivationCriteria(this.config),Array.isArray(this.config.waitFor))for(const t of this.config.waitFor)t.addPendingGesture(this);return this.hammer&&this.sync(),this.config}destroy=()=>{this.clearSelfAsPending(),this.hammer&&(this.hammer.stop(!1),this.hammer.destroy()),this.hammer=null};isPointInView=({x:t,y:e})=>{const s=this.view.getBoundingClientRect();return t>=s.left&&t<=s.right&&e>=s.top&&e<=s.bottom};getState(t){return 0==t?0:h.EventMap[t]}transformEventData(t){const{eventType:e,maxPointers:s}=t,n=t.changedPointers[0],o=this.isPointInView({x:n.clientX,y:n.clientY}),u=this.getState(e);return u!==this.previousState&&(this.oldState=this.previousState,this.previousState=u),{nativeEvent:Object.assign({numberOfPointers:s,state:u,pointerInside:o},this.transformNativeEvent(t),{handlerTag:this.handlerTag,target:this.ref,oldState:u!==this.previousState||4!=u?this.oldState:void 0}),timeStamp:Date.now()}}transformNativeEvent(t){return{}}sendEvent=t=>{const{onGestureHandlerEvent:e,onGestureHandlerStateChange:s}=this.propsRef.current,n=this.transformEventData(t);c(e,n),this.lastSentState!==n.nativeEvent.state&&(this.lastSentState=n.nativeEvent.state,c(s,n))};cancelPendingGestures(t){for(const e of Object.values(this.pendingGestures))e&&e.isGestureRunning&&(e.hasGestureFailed=!0,e.cancelEvent(t))}notifyPendingGestures(){for(const t of Object.values(this.pendingGestures))t&&t.onWaitingEnded(this)}onGestureEnded(t){this.isGestureRunning=!1,this.cancelPendingGestures(t)}forceInvalidate(t){this.isGestureRunning&&(this.hasGestureFailed=!0,this.cancelEvent(t))}cancelEvent(t){this.notifyPendingGestures(),this.sendEvent(Object.assign({},t,{eventType:n.default.INPUT_CANCEL,isFinal:!0})),this.onGestureEnded(t)}onRawEvent({isFirst:t}){t&&(this.hasGestureFailed=!1)}shouldUseTouchEvents(t){return t.simultaneousHandlers?.some(t=>t.isNative)??!1}setView(t,e){if(null==t)return this.destroy(),void(this.view=null);const s='ontouchstart'in window;this.propsRef=e,this.ref=t,this.view=(0,o.default)(t),this.hammer=s&&this.shouldUseTouchEvents(this.config)?new n.default.Manager(this.view,{inputClass:n.default.TouchInput}):new n.default.Manager(this.view),this.oldState=u.State.UNDETERMINED,this.previousState=u.State.UNDETERMINED,this.lastSentState=null;const{NativeGestureClass:h}=this,l=new h(this.getHammerConfig());this.hammer.add(l),this.hammer.on('hammer.input',t=>{if(!this.config.enabled)return this.hasGestureFailed=!1,void(this.isGestureRunning=!1);this.onRawEvent(t),null===this.initialRotation&&0!==t.rotation&&(this.initialRotation=t.rotation),t.isFinal&&setTimeout(()=>{this.initialRotation=null,this.hasGestureFailed=!1})}),this.setupEvents(),this.sync()}setupEvents(){this.isDiscrete||(this.hammer.on(`${this.name}start`,t=>this.onStart(t)),this.hammer.on(`${this.name}end ${this.name}cancel`,t=>{this.onGestureEnded(t)})),this.hammer.on(this.name,t=>this.onGestureActivated(t))}onStart({deltaX:t,deltaY:e,rotation:s}){this.oldState=u.State.UNDETERMINED,this.previousState=u.State.UNDETERMINED,this.lastSentState=null,this.isGestureRunning=!0,this.__initialX=t,this.__initialY=e,this.initialRotation=s}onGestureActivated(t){this.sendEvent(t)}onSuccess(){}_getPendingGestures(){if(Array.isArray(this.config.waitFor)&&this.config.waitFor.length){return this.config.waitFor.filter(({hasGestureFailed:t})=>!1===t)}return[]}getHammerConfig(){return{pointers:this.config.minPointers===this.config.maxPointers?this.config.minPointers:0}}sync=()=>{const t=this.hammer.get(this.name);if(!t)return;const e=this.getHammerConfig();t.set(Object.assign({},e,{enable:(t,e)=>{if(!this.config.enabled)return this.isGestureRunning=!1,this.hasGestureFailed=!1,!1;if(!e||!t.options||void 0===e.maxPointers)return this.shouldEnableGestureOnSetup;if(this.hasGestureFailed)return!1;if(!this.isDiscrete){if(this.isGestureRunning)return!0;if(this._stillWaiting=this._getPendingGestures(),this._stillWaiting.length){for(const t of this._stillWaiting)if(!t.isDiscrete&&t.isGestureRunning)return this.hasGestureFailed=!0,this.isGestureRunning=!1,!1;return!1}}if(!this.hasCustomActivationCriteria)return!0;const s=null==this.initialRotation?0:e.rotation-this.initialRotation,{success:n,failed:o}=this.isGestureEnabledForEvent(this.getConfig(),t,Object.assign({},e,{deltaRotation:s}));return o&&(this.simulateCancelEvent(e),this.hasGestureFailed=!0),n}}))};simulateCancelEvent(t){}ensureConfig(t){const e=Object.assign({},t);if('minDist'in t&&(e.minDist=t.minDist,e.minDistSq=e.minDist*e.minDist),'minVelocity'in t&&(e.minVelocity=t.minVelocity,e.minVelocitySq=e.minVelocity*e.minVelocity),'maxDist'in t&&(e.maxDist=t.maxDist,e.maxDistSq=t.maxDist*t.maxDist),e.waitFor='waitFor'in t?v(t.waitFor).map(({handlerTag:t})=>l.getHandler(t)).filter(t=>t):null,'simultaneousHandlers'in t){const s=this.shouldUseTouchEvents(this.config);e.simultaneousHandlers=v(t.simultaneousHandlers).map(t=>'number'==typeof t?l.getHandler(t):l.getHandler(t.handlerTag)).filter(t=>t),s!==this.shouldUseTouchEvents(e)&&(0,d.ghQueueMicrotask)(()=>{this.destroy(),this.setView(this.ref,this.propsRef)})}else e.simultaneousHandlers=null;return['minPointers','maxPointers','minDist','maxDist','maxDistSq','minVelocitySq','minDistSq','minVelocity','failOffsetXStart','failOffsetYStart','failOffsetXEnd','failOffsetYEnd','activeOffsetXStart','activeOffsetXEnd','activeOffsetYStart','activeOffsetYEnd'].forEach(t=>{void 0===e[t]&&(e[t]=Number.NaN)}),e}}},3280,[120,3281,122,3244,3282,3283,3284]);
15687
15686
  __d(function(g,r,_i,_a,m,_e,d){"use strict";
15688
15687
  /*! Hammer.JS - v2.0.17-rc - 2019-12-16
15689
15688
  * http://naver.github.io/egjs
@@ -15691,30 +15690,30 @@ __d(function(g,r,_i,_a,m,_e,d){"use strict";
15691
15690
  * Forked By Naver egjs
15692
15691
  * Copyright (c) hammerjs
15693
15692
  * Licensed under the MIT license */
15694
- function t(){return t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},t.apply(this,arguments)}function e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var i;Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return le}}),Object.defineProperty(_e,"INPUT_START",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"INPUT_MOVE",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"INPUT_END",{enumerable:!0,get:function(){return R}}),Object.defineProperty(_e,"INPUT_CANCEL",{enumerable:!0,get:function(){return x}}),Object.defineProperty(_e,"STATE_POSSIBLE",{enumerable:!0,get:function(){return Nt}}),Object.defineProperty(_e,"STATE_BEGAN",{enumerable:!0,get:function(){return wt}}),Object.defineProperty(_e,"STATE_CHANGED",{enumerable:!0,get:function(){return Rt}}),Object.defineProperty(_e,"STATE_ENDED",{enumerable:!0,get:function(){return xt}}),Object.defineProperty(_e,"STATE_RECOGNIZED",{enumerable:!0,get:function(){return Mt}}),Object.defineProperty(_e,"STATE_CANCELLED",{enumerable:!0,get:function(){return zt}}),Object.defineProperty(_e,"STATE_FAILED",{enumerable:!0,get:function(){return Lt}}),Object.defineProperty(_e,"DIRECTION_NONE",{enumerable:!0,get:function(){return M}}),Object.defineProperty(_e,"DIRECTION_LEFT",{enumerable:!0,get:function(){return z}}),Object.defineProperty(_e,"DIRECTION_RIGHT",{enumerable:!0,get:function(){return L}}),Object.defineProperty(_e,"DIRECTION_UP",{enumerable:!0,get:function(){return F}}),Object.defineProperty(_e,"DIRECTION_DOWN",{enumerable:!0,get:function(){return X}}),Object.defineProperty(_e,"DIRECTION_HORIZONTAL",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(_e,"DIRECTION_VERTICAL",{enumerable:!0,get:function(){return W}}),Object.defineProperty(_e,"DIRECTION_ALL",{enumerable:!0,get:function(){return q}}),Object.defineProperty(_e,"Manager",{enumerable:!0,get:function(){return te}}),Object.defineProperty(_e,"Input",{enumerable:!0,get:function(){return pt}}),Object.defineProperty(_e,"TouchAction",{enumerable:!0,get:function(){return B}}),Object.defineProperty(_e,"TouchInput",{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(_e,"MouseInput",{enumerable:!0,get:function(){return At}}),Object.defineProperty(_e,"PointerEventInput",{enumerable:!0,get:function(){return yt}}),Object.defineProperty(_e,"TouchMouseInput",{enumerable:!0,get:function(){return Dt}}),Object.defineProperty(_e,"SingleTouchInput",{enumerable:!0,get:function(){return ne}}),Object.defineProperty(_e,"Recognizer",{enumerable:!0,get:function(){return Wt}}),Object.defineProperty(_e,"AttrRecognizer",{enumerable:!0,get:function(){return Ht}}),Object.defineProperty(_e,"Tap",{enumerable:!0,get:function(){return qt}}),Object.defineProperty(_e,"Pan",{enumerable:!0,get:function(){return kt}}),Object.defineProperty(_e,"Swipe",{enumerable:!0,get:function(){return Vt}}),Object.defineProperty(_e,"Pinch",{enumerable:!0,get:function(){return Gt}}),Object.defineProperty(_e,"Rotate",{enumerable:!0,get:function(){return Zt}}),Object.defineProperty(_e,"Press",{enumerable:!0,get:function(){return Bt}}),Object.defineProperty(_e,"on",{enumerable:!0,get:function(){return ct}}),Object.defineProperty(_e,"off",{enumerable:!0,get:function(){return ht}}),Object.defineProperty(_e,"each",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"merge",{enumerable:!0,get:function(){return se}}),Object.defineProperty(_e,"extend",{enumerable:!0,get:function(){return oe}}),Object.defineProperty(_e,"assign",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"inherit",{enumerable:!0,get:function(){return ue}}),Object.defineProperty(_e,"bindFn",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(_e,"prefixed",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"toArray",{enumerable:!0,get:function(){return Tt}}),Object.defineProperty(_e,"inArray",{enumerable:!0,get:function(){return ft}}),Object.defineProperty(_e,"uniqueArray",{enumerable:!0,get:function(){return bt}}),Object.defineProperty(_e,"splitStr",{enumerable:!0,get:function(){return at}}),Object.defineProperty(_e,"boolOrFn",{enumerable:!0,get:function(){return V}}),Object.defineProperty(_e,"hasParent",{enumerable:!0,get:function(){return $}}),Object.defineProperty(_e,"addEventListeners",{enumerable:!0,get:function(){return ct}}),Object.defineProperty(_e,"removeEventListeners",{enumerable:!0,get:function(){return ht}}),Object.defineProperty(_e,"defaults",{enumerable:!0,get:function(){return he}}),i='function'!=typeof Object.assign?function(t){if(null==t)throw new TypeError('Cannot convert undefined or null to object');for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var o in i)i.hasOwnProperty(o)&&(e[o]=i[o])}return e}:Object.assign;var o,s=i,u=['','webkit','Moz','MS','ms','o'],a="undefined"==typeof document?{style:{}}:document.createElement('div'),c='function',h=Math.round,l=Math.abs,p=Date.now;function f(t,e){for(var n,i,o=e[0].toUpperCase()+e.slice(1),s=0;s<u.length;){if((i=(n=u[s])?n+o:e)in t)return i;s++}}o="undefined"==typeof window?{}:window;var v=f(a.style,'touchAction'),y=void 0!==v;var T='compute',b='auto',E='manipulation',P='none',O='pan-x',I='pan-y',A=(function(){if(!y)return!1;var t={},e=o.CSS&&o.CSS.supports;return['auto','manipulation','pan-y','pan-x','pan-x pan-y','none'].forEach(function(n){return t[n]=!e||o.CSS.supports('touch-action',n)}),t})(),j='ontouchstart'in o,_=void 0!==f(o,'PointerEvent'),C=j&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),D='touch',S='mouse',N=1,w=2,R=4,x=8,M=1,z=2,L=4,F=8,X=16,Y=6,W=24,q=30,H=['x','y'],U=['clientX','clientY'];function k(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function V(t,e){return typeof t===c?t.apply(e&&e[0]||void 0,e):t}function G(t,e){return t.indexOf(e)>-1}function Z(t){if(G(t,P))return P;var e=G(t,O),n=G(t,I);return e&&n?P:e||n?e?O:I:G(t,E)?E:b}var B=(function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===T&&(t=this.compute()),y&&this.manager.element.style&&A[t]&&(this.manager.element.style[v]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return k(this.manager.recognizers,function(e){V(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),Z(t.join(' '))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,o=G(i,P)&&!A[P],s=G(i,I)&&!A[I],u=G(i,O)&&!A[O];if(o){var a=1===t.pointers.length,c=t.distance<2,h=t.deltaTime<250;if(a&&c&&h)return}if(!u||!s)return o||s&&n&Y||u&&n&W?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t})();function $(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function J(t){var e=t.length;if(1===e)return{x:h(t[0].clientX),y:h(t[0].clientY)};for(var n=0,i=0,o=0;o<e;)n+=t[o].clientX,i+=t[o].clientY,o++;return{x:h(n/e),y:h(i/e)}}function K(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:h(t.pointers[n].clientX),clientY:h(t.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:e,center:J(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Q(t,e,n){n||(n=H);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return Math.sqrt(i*i+o*o)}function tt(t,e,n){n||(n=H);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return 180*Math.atan2(o,i)/Math.PI}function et(t,e){return t===e?M:l(t)>=l(e)?t<0?z:L:e<0?F:X}function nt(t,e){var n=e.center,i=t.offsetDelta||{},o=t.prevDelta||{},s=t.prevInput||{};e.eventType!==N&&s.eventType!==R||(o=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=o.x+(n.x-i.x),e.deltaY=o.y+(n.y-i.y)}function rt(t,e,n){return{x:e/t||0,y:n/t||0}}function it(t,e){return tt(e[1],e[0],U)+tt(t[1],t[0],U)}function ot(t,e){var n,i,o,s,u=t.lastInterval||e,a=e.timeStamp-u.timeStamp;if(e.eventType!==x&&(a>25||void 0===u.velocity)){var c=e.deltaX-u.deltaX,h=e.deltaY-u.deltaY,p=rt(a,c,h);i=p.x,o=p.y,n=l(p.x)>l(p.y)?p.x:p.y,s=et(c,h),t.lastInterval=e}else n=u.velocity,i=u.velocityX,o=u.velocityY,s=u.direction;e.velocity=n,e.velocityX=i,e.velocityY=o,e.direction=s}function st(t,e){var n=t.session,i=e.pointers,o=i.length;n.firstInput||(n.firstInput=K(e)),o>1&&!n.firstMultiple?n.firstMultiple=K(e):1===o&&(n.firstMultiple=!1);var s=n.firstInput,u=n.firstMultiple,a=u?u.center:s.center,c=e.center=J(i);e.timeStamp=p(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=tt(a,c),e.distance=Q(a,c),nt(n,e),e.offsetDirection=et(e.deltaX,e.deltaY);var h,f,v=rt(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=v.x,e.overallVelocityY=v.y,e.overallVelocity=l(v.x)>l(v.y)?v.x:v.y,e.scale=u?(h=u.pointers,Q((f=i)[0],f[1],U)/Q(h[0],h[1],U)):1,e.rotation=u?it(u.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,ot(n,e);var y,T=t.element,b=e.srcEvent;$(y=b.composedPath?b.composedPath()[0]:b.path?b.path[0]:b.target,T)&&(T=y),e.target=T}function ut(t,e,n){var i=n.pointers.length,o=n.changedPointers.length,s=e&N&&i-o===0,u=12&e&&i-o===0;n.isFirst=!!s,n.isFinal=!!u,s&&(t.session={}),n.eventType=e,st(t,n),t.emit('hammer.input',n),t.recognize(n),t.session.prevInput=n}function at(t){return t.trim().split(/\s+/g)}function ct(t,e,n){k(at(e),function(e){t.addEventListener(e,n,!1)})}function ht(t,e,n){k(at(e),function(e){t.removeEventListener(e,n,!1)})}function lt(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var pt=(function(){function t(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){V(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&ct(this.element,this.evEl,this.domHandler),this.evTarget&&ct(this.target,this.evTarget,this.domHandler),this.evWin&&ct(lt(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&ht(this.element,this.evEl,this.domHandler),this.evTarget&&ht(this.target,this.evTarget,this.domHandler),this.evWin&&ht(lt(this.element),this.evWin,this.domHandler)},t})();function ft(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}var dt={pointerdown:N,pointermove:w,pointerup:R,pointercancel:x,pointerout:x},vt={2:D,3:'pen',4:S,5:'kinect'},mt='pointerdown',gt='pointermove pointerup pointercancel';o.MSPointerEvent&&!o.PointerEvent&&(mt='MSPointerDown',gt='MSPointerMove MSPointerUp MSPointerCancel');var yt=(function(t){function n(){var e,i=n.prototype;return i.evEl=mt,i.evWin=gt,(e=t.apply(this,arguments)||this).store=e.manager.session.pointerEvents=[],e}return e(n,t),n.prototype.handler=function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace('ms',''),o=dt[i],s=vt[t.pointerType]||t.pointerType,u=s===D,a=ft(e,t.pointerId,'pointerId');o&N&&(0===t.button||u)?a<0&&(e.push(t),a=e.length-1):12&o&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),n&&e.splice(a,1))},n})(pt);function Tt(t){return Array.prototype.slice.call(t,0)}function bt(t,e,n){for(var i=[],o=[],s=0;s<t.length;){var u=e?t[s][e]:t[s];ft(o,u)<0&&i.push(t[s]),o[s]=u,s++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}var Et={touchstart:N,touchmove:w,touchend:R,touchcancel:x},Pt=(function(t){function n(){var e;return n.prototype.evTarget="touchstart touchmove touchend touchcancel",(e=t.apply(this,arguments)||this).targetIds={},e}return e(n,t),n.prototype.handler=function(t){var e=Et[t.type],n=Ot.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:D,srcEvent:t})},n})(pt);function Ot(t,e){var n,i,o=Tt(t.touches),s=this.targetIds;if(3&e&&1===o.length)return s[o[0].identifier]=!0,[o,o];var u=Tt(t.changedTouches),a=[],c=this.target;if(i=o.filter(function(t){return $(t.target,c)}),e===N)for(n=0;n<i.length;)s[i[n].identifier]=!0,n++;for(n=0;n<u.length;)s[u[n].identifier]&&a.push(u[n]),12&e&&delete s[u[n].identifier],n++;return a.length?[bt(i.concat(a),'identifier',!0),a]:void 0}var It={mousedown:N,mousemove:w,mouseup:R},At=(function(t){function n(){var e,i=n.prototype;return i.evEl="mousedown",i.evWin="mousemove mouseup",(e=t.apply(this,arguments)||this).pressed=!1,e}return e(n,t),n.prototype.handler=function(t){var e=It[t.type];e&N&&0===t.button&&(this.pressed=!0),e&w&&1!==t.which&&(e=R),this.pressed&&(e&R&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:S,srcEvent:t}))},n})(pt);function jt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY},i=this.lastTouches;this.lastTouches.push(n);setTimeout(function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)},2500)}}function _t(t,e){t&N?(this.primaryTouch=e.changedPointers[0].identifier,jt.call(this,e)):12&t&&jt.call(this,e)}function Ct(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var o=this.lastTouches[i],s=Math.abs(e-o.x),u=Math.abs(n-o.y);if(s<=25&&u<=25)return!0}return!1}var Dt=(function(){return(function(t){function i(e,i){var o;return(o=t.call(this,e,i)||this).handler=function(t,e,i){var s=i.pointerType===D,u=i.pointerType===S;if(!(u&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(s)_t.call(n(n(o)),e,i);else if(u&&Ct.call(n(n(o)),i))return;o.callback(t,e,i)}},o.touch=new Pt(o.manager,o.handler),o.mouse=new At(o.manager,o.handler),o.primaryTouch=null,o.lastTouches=[],o}return e(i,t),i.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},i})(pt)})();function St(t,e,n){return!!Array.isArray(t)&&(k(t,n[e],n),!0)}var Nt=1,wt=2,Rt=4,xt=8,Mt=xt,zt=16,Lt=32,Ft=1;function Xt(t,e){var n=e.manager;return n?n.get(t):t}function Yt(t){return t&zt?'cancel':t&xt?'end':t&Rt?'move':t&wt?'start':''}var Wt=(function(){function e(e){void 0===e&&(e={}),this.options=t({enable:!0},e),this.id=Ft++,this.manager=null,this.state=Nt,this.simultaneous={},this.requireFail=[]}var n=e.prototype;return n.set=function(t){return s(this.options,t),this.manager&&this.manager.touchAction.update(),this},n.recognizeWith=function(t){if(St(t,'recognizeWith',this))return this;var e=this.simultaneous;return e[(t=Xt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},n.dropRecognizeWith=function(t){return St(t,'dropRecognizeWith',this)||(t=Xt(t,this),delete this.simultaneous[t.id]),this},n.requireFailure=function(t){if(St(t,'requireFailure',this))return this;var e=this.requireFail;return-1===ft(e,t=Xt(t,this))&&(e.push(t),t.requireFailure(this)),this},n.dropRequireFailure=function(t){if(St(t,'dropRequireFailure',this))return this;t=Xt(t,this);var e=ft(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},n.hasRequireFailures=function(){return this.requireFail.length>0},n.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},n.emit=function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<xt&&i(e.options.event+Yt(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=xt&&i(e.options.event+Yt(n))},n.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Lt},n.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},n.recognize=function(t){var e=s({},t);if(!V(this.options.enable,[this,e]))return this.reset(),void(this.state=Lt);56&this.state&&(this.state=Nt),this.state=this.process(e),30&this.state&&this.tryEmit(e)},n.process=function(t){},n.getTouchAction=function(){},n.reset=function(){},e})(),qt=(function(n){function i(e){var i;return void 0===e&&(e={}),(i=n.call(this,t({event:'tap',pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,i.pCenter=!1,i._timer=null,i._input=null,i.count=0,i}e(i,n);var o=i.prototype;return o.getTouchAction=function(){return[E]},o.process=function(t){var e=this,n=this.options,i=t.pointers.length===n.pointers,o=t.distance<n.threshold,s=t.deltaTime<n.time;if(this.reset(),t.eventType&N&&0===this.count)return this.failTimeout();if(o&&s&&i){if(t.eventType!==R)return this.failTimeout();var u=!this.pTime||t.timeStamp-this.pTime<n.interval,a=!this.pCenter||Q(this.pCenter,t.center)<n.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&u?this.count+=1:this.count=1,this._input=t,0===this.count%n.taps)return this.hasRequireFailures()?(this._timer=setTimeout(function(){e.state=Mt,e.tryEmit()},n.interval),wt):Mt}return Lt},o.failTimeout=function(){var t=this;return this._timer=setTimeout(function(){t.state=Lt},this.options.interval),Lt},o.reset=function(){clearTimeout(this._timer)},o.emit=function(){this.state===Mt&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},i})(Wt),Ht=(function(n){function i(e){return void 0===e&&(e={}),n.call(this,t({pointers:1},e))||this}e(i,n);var o=i.prototype;return o.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},o.process=function(t){var e=this.state,n=t.eventType,i=6&e,o=this.attrTest(t);return i&&(n&x||!o)?e|zt:i||o?n&R?e|xt:e&wt?e|Rt:wt:Lt},i})(Wt);function Ut(t){return t===X?'down':t===F?'up':t===z?'left':t===L?'right':''}var kt=(function(n){function i(e){var i;return void 0===e&&(e={}),(i=n.call(this,t({event:'pan',threshold:10,pointers:1,direction:q},e))||this).pX=null,i.pY=null,i}e(i,n);var o=i.prototype;return o.getTouchAction=function(){var t=this.options.direction,e=[];return t&Y&&e.push(I),t&W&&e.push(O),e},o.directionTest=function(t){var e=this.options,n=!0,i=t.distance,o=t.direction,s=t.deltaX,u=t.deltaY;return o&e.direction||(e.direction&Y?(o=0===s?M:s<0?z:L,n=s!==this.pX,i=Math.abs(t.deltaX)):(o=0===u?M:u<0?F:X,n=u!==this.pY,i=Math.abs(t.deltaY))),t.direction=o,n&&i>e.threshold&&o&e.direction},o.attrTest=function(t){return Ht.prototype.attrTest.call(this,t)&&(this.state&wt||!(this.state&wt)&&this.directionTest(t))},o.emit=function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Ut(t.direction);e&&(t.additionalEvent=this.options.event+e),n.prototype.emit.call(this,t)},i})(Ht),Vt=(function(n){function i(e){return void 0===e&&(e={}),n.call(this,t({event:'swipe',threshold:10,velocity:.3,direction:30,pointers:1},e))||this}e(i,n);var o=i.prototype;return o.getTouchAction=function(){return kt.prototype.getTouchAction.call(this)},o.attrTest=function(t){var e,i=this.options.direction;return 30&i?e=t.overallVelocity:i&Y?e=t.overallVelocityX:i&W&&(e=t.overallVelocityY),n.prototype.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers===this.options.pointers&&l(e)>this.options.velocity&&t.eventType&R},o.emit=function(t){var e=Ut(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},i})(Ht),Gt=(function(n){function i(e){return void 0===e&&(e={}),n.call(this,t({event:'pinch',threshold:0,pointers:2},e))||this}e(i,n);var o=i.prototype;return o.getTouchAction=function(){return[P]},o.attrTest=function(t){return n.prototype.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&wt)},o.emit=function(t){if(1!==t.scale){var e=t.scale<1?'in':'out';t.additionalEvent=this.options.event+e}n.prototype.emit.call(this,t)},i})(Ht),Zt=(function(n){function i(e){return void 0===e&&(e={}),n.call(this,t({event:'rotate',threshold:0,pointers:2},e))||this}e(i,n);var o=i.prototype;return o.getTouchAction=function(){return[P]},o.attrTest=function(t){return n.prototype.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&wt)},i})(Ht),Bt=(function(n){function i(e){var i;return void 0===e&&(e={}),(i=n.call(this,t({event:'press',pointers:1,time:251,threshold:9},e))||this)._timer=null,i._input=null,i}e(i,n);var o=i.prototype;return o.getTouchAction=function(){return[b]},o.process=function(t){var e=this,n=this.options,i=t.pointers.length===n.pointers,o=t.distance<n.threshold,s=t.deltaTime>n.time;if(this._input=t,!o||!i||12&t.eventType&&!s)this.reset();else if(t.eventType&N)this.reset(),this._timer=setTimeout(function(){e.state=Mt,e.tryEmit()},n.time);else if(t.eventType&R)return Mt;return Lt},o.reset=function(){clearTimeout(this._timer)},o.emit=function(t){this.state===Mt&&(t&&t.eventType&R?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))},i})(Wt),$t={domEvents:!1,touchAction:T,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Jt=[[Zt,{enable:!1}],[Gt,{enable:!1},['rotate']],[Vt,{direction:Y}],[kt,{direction:Y},['swipe']],[qt],[qt,{event:'doubletap',taps:2},['tap']],[Bt]];function Kt(t,e){var n,i=t.element;i.style&&(k(t.options.cssProps,function(o,s){n=f(i.style,s),e?(t.oldCssProps[n]=i.style[n],i.style[n]=o):i.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}function Qt(t,e){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var te=(function(){function t(t,e){var n,i=this;this.options=s({},$t,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(_?yt:C?Pt:j?Dt:At))(n,ut),this.touchAction=new B(this,this.options.touchAction),Kt(this,!0),k(this.options.recognizers,function(t){var e=i.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}var e=t.prototype;return e.set=function(t){return s(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,o=e.curRecognizer;(!o||o&&o.state&Mt)&&(e.curRecognizer=null,o=null);for(var s=0;s<i.length;)n=i[s],2===e.stopped||o&&n!==o&&!n.canRecognizeWith(o)?n.reset():n.recognize(t),!o&&14&n.state&&(e.curRecognizer=n,o=n),s++}},e.get=function(t){if(t instanceof Wt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event===t)return e[n];return null},e.add=function(t){if(St(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(St(t,"remove",this))return this;var e=this.get(t);if(t){var n=this.recognizers,i=ft(n,e);-1!==i&&(n.splice(i,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var n=this.handlers;return k(at(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this},e.off=function(t,e){if(void 0===t)return this;var n=this.handlers;return k(at(t),function(t){e?n[t]&&n[t].splice(ft(n[t],e),1):delete n[t]}),this},e.emit=function(t,e){this.options.domEvents&&Qt(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},e.destroy=function(){this.element&&Kt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t})(),ee={touchstart:N,touchmove:w,touchend:R,touchcancel:x},ne=(function(t){function n(){var e,i=n.prototype;return i.evTarget="touchstart",i.evWin="touchstart touchmove touchend touchcancel",(e=t.apply(this,arguments)||this).started=!1,e}return e(n,t),n.prototype.handler=function(t){var e=ee[t.type];if(e===N&&(this.started=!0),this.started){var n=re.call(this,t,e);12&e&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:D,srcEvent:t})}},n})(pt);function re(t,e){var n=Tt(t.touches),i=Tt(t.changedTouches);return 12&e&&(n=bt(n.concat(i),'identifier',!0)),[n,i]}function ie(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error('get-stack-trace'),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,'').replace(/^\s+at\s+/gm,'').replace(/^Object.<anonymous>\s*\(/gm,'{anonymous}()@'):'Unknown Stack Trace',o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,i,n),t.apply(this,arguments)}}var oe=ie(function(t,e,n){for(var i=Object.keys(e),o=0;o<i.length;)(!n||n&&void 0===t[i[o]])&&(t[i[o]]=e[i[o]]),o++;return t},'extend','Use `assign`.'),se=ie(function(t,e){return oe(t,e,!0)},'merge','Use `assign`.');function ue(t,e,n){var i,o=e.prototype;(i=t.prototype=Object.create(o)).constructor=t,i._super=o,n&&s(i,n)}function ae(t,e){return function(){return t.apply(e,arguments)}}var ce=(function(){var e=function(e,n){return void 0===n&&(n={}),new te(e,t({recognizers:Jt.concat()},n))};return e.VERSION="2.0.17-rc",e.DIRECTION_ALL=q,e.DIRECTION_DOWN=X,e.DIRECTION_LEFT=z,e.DIRECTION_RIGHT=L,e.DIRECTION_UP=F,e.DIRECTION_HORIZONTAL=Y,e.DIRECTION_VERTICAL=W,e.DIRECTION_NONE=M,e.DIRECTION_DOWN=X,e.INPUT_START=N,e.INPUT_MOVE=w,e.INPUT_END=R,e.INPUT_CANCEL=x,e.STATE_POSSIBLE=Nt,e.STATE_BEGAN=wt,e.STATE_CHANGED=Rt,e.STATE_ENDED=xt,e.STATE_RECOGNIZED=Mt,e.STATE_CANCELLED=zt,e.STATE_FAILED=Lt,e.Manager=te,e.Input=pt,e.TouchAction=B,e.TouchInput=Pt,e.MouseInput=At,e.PointerEventInput=yt,e.TouchMouseInput=Dt,e.SingleTouchInput=ne,e.Recognizer=Wt,e.AttrRecognizer=Ht,e.Tap=qt,e.Pan=kt,e.Swipe=Vt,e.Pinch=Gt,e.Rotate=Zt,e.Press=Bt,e.on=ct,e.off=ht,e.each=k,e.merge=se,e.extend=oe,e.bindFn=ae,e.assign=s,e.inherit=ue,e.bindFn=ae,e.prefixed=f,e.toArray=Tt,e.inArray=ft,e.uniqueArray=bt,e.splitStr=at,e.boolOrFn=V,e.hasParent=$,e.addEventListeners=ct,e.removeEventListeners=ht,e.defaults=s({},$t,{preset:Jt}),e})(),he=ce.defaults,le=ce},3282,[]);
15695
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"CONTENT_TOUCHES_DELAY",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"CONTENT_TOUCHES_QUICK_TAP_END_DELAY",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"MULTI_FINGER_PAN_MAX_PINCH_THRESHOLD",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"MULTI_FINGER_PAN_MAX_ROTATION_THRESHOLD",{enumerable:!0,get:function(){return E}}),Object.defineProperty(_e,"DEG_RAD",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"EventMap",{enumerable:!0,get:function(){return _}}),Object.defineProperty(_e,"Direction",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"DirectionMap",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"HammerInputNames",{enumerable:!0,get:function(){return D}}),Object.defineProperty(_e,"HammerDirectionNames",{enumerable:!0,get:function(){return R}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},u=r(d[1]);const T=240,I=50,N=.1,E=7,O=Math.PI/180,_={[n.default.INPUT_START]:u.State.BEGAN,[n.default.INPUT_MOVE]:u.State.ACTIVE,[n.default.INPUT_END]:u.State.END,[n.default.INPUT_CANCEL]:u.State.FAILED},f={RIGHT:1,LEFT:2,UP:4,DOWN:8},l={[n.default.DIRECTION_RIGHT]:f.RIGHT,[n.default.DIRECTION_LEFT]:f.LEFT,[n.default.DIRECTION_UP]:f.UP,[n.default.DIRECTION_DOWN]:f.DOWN},D={[n.default.INPUT_START]:'START',[n.default.INPUT_MOVE]:'MOVE',[n.default.INPUT_END]:'END',[n.default.INPUT_CANCEL]:'CANCEL'},R={[n.default.DIRECTION_HORIZONTAL]:'HORIZONTAL',[n.default.DIRECTION_UP]:'UP',[n.default.DIRECTION_DOWN]:'DOWN',[n.default.DIRECTION_VERTICAL]:'VERTICAL',[n.default.DIRECTION_NONE]:'NONE',[n.default.DIRECTION_ALL]:'ALL',[n.default.DIRECTION_RIGHT]:'RIGHT',[n.default.DIRECTION_LEFT]:'LEFT'}},3283,[3282,3245]);
15696
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"gestures",{enumerable:!0,get:function(){return t}}),e.getHandler=n,e.createGestureHandler=function(n,o){if(n in t)throw new Error(`Handler with tag ${n} already exists`);t[n]=o,t[n].handlerTag=n},e.dropGestureHandler=function(o){if(!(o in t))return;n(o).destroy(),delete t[o]},e.getNodes=function(){return Object.assign({},t)};const t={};function n(n){if(n in t)return t[n];throw new Error(`No handler for tag ${n}`)}},3284,[]);
15697
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ghQueueMicrotask",{enumerable:!0,get:function(){return t}});const t='function'==typeof setImmediate?setImmediate.bind(null):'function'==typeof requestAnimationFrame?requestAnimationFrame.bind(null):queueMicrotask.bind(null)},3285,[]);
15698
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isnan",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"isValidNumber",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"TEST_MIN_IF_NOT_NAN",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"VEC_LEN_SQ",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"TEST_MAX_IF_NOT_NAN",{enumerable:!0,get:function(){return o}}),e.fireAfterInterval=function(t,n){if(!n)return t(),null;return setTimeout(()=>t(),n)};const t=t=>Number.isNaN(t),n=t=>'number'==typeof t&&!Number.isNaN(t),u=(n,u)=>!t(u)&&(u<0&&n<=u||u>=0&&n>=u),f=({x:t=0,y:n=0}={})=>t*t+n*n,o=(n,u)=>!t(u)&&(u<0&&n<u||u>=0&&n>u)},3286,[]);
15699
- __d(function(g,r,i,a,m,_e,d){"use strict";const e=["shouldActivateOnStart","disallowInterruption","shouldCancelWhenOutside","minDurationMs","maxDist","minPointers","maxPointers"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return v}});var n=t(r(d[0])),s=t(r(d[1])),u=r(d[2]),l=r(d[3]),o=t(r(d[4])),h=r(d[5]);class c extends o.default{initialEvent=null;get name(){return'press'}get minDurationMs(){return(0,h.isnan)(this.config.minDurationMs)?5:this.config.minDurationMs}get maxDist(){return(0,h.isnan)(this.config.maxDist)?9:this.config.maxDist}get NativeGestureClass(){return s.default.Press}shouldDelayTouches=!0;simulateCancelEvent(e){this.hasGestureFailed=!0,this.cancelEvent(e)}updateHasCustomActivationCriteria({shouldCancelWhenOutside:e,maxDistSq:t}){return e||!(0,h.isValidNumber)(t)}getState(e){return{[s.default.INPUT_START]:u.State.BEGAN,[s.default.INPUT_MOVE]:u.State.ACTIVE,[s.default.INPUT_END]:u.State.END,[s.default.INPUT_CANCEL]:u.State.CANCELLED}[e]}getConfig(){return this.hasCustomActivationCriteria?this.config:{shouldCancelWhenOutside:!0,maxDistSq:10}}getHammerConfig(){return Object.assign({},super.getHammerConfig(),{time:this.minDurationMs})}onGestureActivated(e){this.onGestureStart(e)}shouldDelayTouchForEvent({pointerType:e}){return this.shouldDelayTouches&&'touch'===e}onGestureStart(e){this.isGestureRunning=!0,clearTimeout(this.visualFeedbackTimer),this.initialEvent=e,this.visualFeedbackTimer=(0,h.fireAfterInterval)(()=>{this.sendGestureStartedEvent(this.initialEvent),this.initialEvent=null},this.shouldDelayTouchForEvent(e)&&l.CONTENT_TOUCHES_DELAY)}sendGestureStartedEvent(e){clearTimeout(this.visualFeedbackTimer),this.visualFeedbackTimer=null,this.sendEvent(Object.assign({},e,{eventType:s.default.INPUT_MOVE,isFirst:!0}))}forceInvalidate(e){super.forceInvalidate(e),clearTimeout(this.visualFeedbackTimer),this.visualFeedbackTimer=null,this.initialEvent=null}onRawEvent(e){if(super.onRawEvent(e),this.isGestureRunning)if(e.isFinal){let t;this.visualFeedbackTimer&&(t=l.CONTENT_TOUCHES_QUICK_TAP_END_DELAY,this.sendGestureStartedEvent(this.initialEvent),this.initialEvent=null),(0,h.fireAfterInterval)(()=>{this.sendEvent(Object.assign({},e,{eventType:s.default.INPUT_END,isFinal:!0})),this.onGestureEnded()},t)}else this.sendEvent(Object.assign({},e,{eventType:s.default.INPUT_MOVE,isFinal:!1}))}updateGestureConfig(t){let{shouldActivateOnStart:s=!1,disallowInterruption:u=!1,shouldCancelWhenOutside:l=!0,minDurationMs:o=Number.NaN,maxDist:h=Number.NaN,minPointers:c=1,maxPointers:v=1}=t,E=(0,n.default)(t,e);return super.updateGestureConfig(Object.assign({shouldActivateOnStart:s,disallowInterruption:u,shouldCancelWhenOutside:l,minDurationMs:o,maxDist:h,minPointers:c,maxPointers:v},E))}}var v=c},3287,[120,3282,3245,3283,3280,3286]);
15700
- __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e=t(r(d[0])),n=r(d[1]),s=t(r(d[2])),f=r(d[3]),l=r(d[4]);class u extends s.default{get name(){return'pan'}get NativeGestureClass(){return e.default.Pan}getHammerConfig(){return Object.assign({},super.getHammerConfig(),{direction:this.getDirection()})}getState(t){const e=super.getState(t);return this.previousState===l.State.UNDETERMINED&&e===l.State.ACTIVE?l.State.BEGAN:e}getDirection(){const t=this.getConfig(),{activeOffsetXStart:n,activeOffsetXEnd:s,activeOffsetYStart:l,activeOffsetYEnd:u,minDist:c}=t;let o=[],N=[];if(!(0,f.isnan)(c))return e.default.DIRECTION_ALL;(0,f.isnan)(n)||N.push(e.default.DIRECTION_LEFT),(0,f.isnan)(s)||N.push(e.default.DIRECTION_RIGHT),2===N.length&&(N=[e.default.DIRECTION_HORIZONTAL]),o=o.concat(N);let O=[];return(0,f.isnan)(l)||O.push(e.default.DIRECTION_UP),(0,f.isnan)(u)||O.push(e.default.DIRECTION_DOWN),2===O.length&&(O=[e.default.DIRECTION_VERTICAL]),o=o.concat(O),o.length?o[0]===e.default.DIRECTION_HORIZONTAL&&o[1]===e.default.DIRECTION_VERTICAL||N.length&&O.length?e.default.DIRECTION_ALL:o[0]:e.default.DIRECTION_NONE}getConfig(){return this.hasCustomActivationCriteria?this.config:{minDistSq:10}}shouldFailUnderCustomCriteria({deltaX:t,deltaY:e},n){return!(0,f.isnan)(n.failOffsetXStart)&&t<n.failOffsetXStart||!(0,f.isnan)(n.failOffsetXEnd)&&t>n.failOffsetXEnd||!(0,f.isnan)(n.failOffsetYStart)&&e<n.failOffsetYStart||!(0,f.isnan)(n.failOffsetYEnd)&&e>n.failOffsetYEnd}shouldActivateUnderCustomCriteria({deltaX:t,deltaY:e,velocity:n},s){return!(0,f.isnan)(s.activeOffsetXStart)&&t<s.activeOffsetXStart||!(0,f.isnan)(s.activeOffsetXEnd)&&t>s.activeOffsetXEnd||!(0,f.isnan)(s.activeOffsetYStart)&&e<s.activeOffsetYStart||!(0,f.isnan)(s.activeOffsetYEnd)&&e>s.activeOffsetYEnd||(0,f.TEST_MIN_IF_NOT_NAN)((0,f.VEC_LEN_SQ)({x:t,y:e}),s.minDistSq)||(0,f.TEST_MIN_IF_NOT_NAN)(n.x,s.minVelocityX)||(0,f.TEST_MIN_IF_NOT_NAN)(n.y,s.minVelocityY)||(0,f.TEST_MIN_IF_NOT_NAN)((0,f.VEC_LEN_SQ)(n),s.minVelocitySq)}shouldMultiFingerPanFail({pointerLength:t,scale:e,deltaRotation:s}){if(t<=1)return!1;const f=Math.abs(e-1),l=Math.abs(s);return f>n.MULTI_FINGER_PAN_MAX_PINCH_THRESHOLD||l>n.MULTI_FINGER_PAN_MAX_ROTATION_THRESHOLD}updateHasCustomActivationCriteria(t){return(0,f.isValidNumber)(t.minDistSq)||(0,f.isValidNumber)(t.minVelocityX)||(0,f.isValidNumber)(t.minVelocityY)||(0,f.isValidNumber)(t.minVelocitySq)||(0,f.isValidNumber)(t.activeOffsetXStart)||(0,f.isValidNumber)(t.activeOffsetXEnd)||(0,f.isValidNumber)(t.activeOffsetYStart)||(0,f.isValidNumber)(t.activeOffsetYEnd)}isGestureEnabledForEvent(t,e,n){if(this.shouldFailUnderCustomCriteria(n,t))return{failed:!0};const s={x:n.velocityX,y:n.velocityY};return this.hasCustomActivationCriteria&&this.shouldActivateUnderCustomCriteria({deltaX:n.deltaX,deltaY:n.deltaY,velocity:s},t)?this.shouldMultiFingerPanFail({pointerLength:n.maxPointers,scale:n.scale,deltaRotation:n.deltaRotation})?{failed:!0}:{success:!0}:{success:!1}}}var c=u},3288,[3282,3283,3289,3286,3245]);
15701
- __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 u}});var t=e(r(d[0])),n=e(r(d[1]));class l extends t.default{get shouldEnableGestureOnSetup(){return!0}transformNativeEvent({deltaX:e,deltaY:t,velocityX:l,velocityY:u,center:{x:o,y:s}}){const c=this.view.getBoundingClientRect(),f=n.default.get();return{translationX:e-(this.__initialX||0),translationY:t-(this.__initialY||0),absoluteX:o,absoluteY:s,velocityX:l*f,velocityY:u*f,x:o-c.left,y:s-c.top}}}var u=l},3289,[3281,195]);
15702
- __d(function(g,r,i,a,m,_e,d){"use strict";const e=["shouldCancelWhenOutside","maxDeltaX","maxDeltaY","numberOfTaps","minDurationMs","maxDelayMs","maxDurationMs","maxDist","minPointers","maxPointers"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var s=t(r(d[0])),n=t(r(d[1])),u=t(r(d[2])),l=r(d[3]);class o extends u.default{_shouldFireEndEvent=null;get name(){return'tap'}get NativeGestureClass(){return n.default.Tap}get maxDelayMs(){return(0,l.isnan)(this.config.maxDelayMs)?300:this.config.maxDelayMs}simulateCancelEvent(e){this.isGestureRunning&&this.cancelEvent(e)}onGestureActivated(e){this.isGestureRunning&&this.onSuccessfulTap(e)}onSuccessfulTap=e=>{this._getPendingGestures().length?this._shouldFireEndEvent=e:(e.eventType===n.default.INPUT_END&&this.sendEvent(Object.assign({},e,{eventType:n.default.INPUT_MOVE})),this.sendEvent(Object.assign({},e,{isFinal:!0})),this.onGestureEnded(e))};onRawEvent(e){if(super.onRawEvent(e),!this.hasGestureFailed&&!this.isGestureRunning&&!e.isFinal){const t=this.hammer.get(this.name);t.options.enable(t,e)&&(clearTimeout(this._multiTapTimer),this.onStart(e),this.sendEvent(e))}if(e.isFinal&&e.maxPointers>1&&setTimeout(()=>{this.isGestureRunning&&this.cancelEvent(e)}),!this.hasGestureFailed)if(e.isFinal)e.maxPointers>1&&setTimeout(()=>{this.isGestureRunning&&this.cancelEvent(e)}),clearTimeout(this._timer),this._timer=setTimeout(()=>{this.hasGestureFailed=!0,this.cancelEvent(e)},this.maxDelayMs);else if(!this.hasGestureFailed&&!this.isGestureRunning){const t=this.hammer.get(this.name);t.options.enable(t,e)&&(clearTimeout(this._multiTapTimer),this.onStart(e),this.sendEvent(e))}}getHammerConfig(){return Object.assign({},super.getHammerConfig(),{event:this.name,taps:(0,l.isnan)(this.config.numberOfTaps)?1:this.config.numberOfTaps,interval:this.maxDelayMs,time:(0,l.isnan)(this.config.maxDurationMs)||null==this.config.maxDurationMs?250:this.config.maxDurationMs})}updateGestureConfig(t){let{shouldCancelWhenOutside:n=!0,maxDeltaX:u=Number.NaN,maxDeltaY:l=Number.NaN,numberOfTaps:o=1,minDurationMs:h=525,maxDelayMs:c=Number.NaN,maxDurationMs:f=Number.NaN,maxDist:x=2,minPointers:E=1,maxPointers:D=1}=t,p=(0,s.default)(t,e);return super.updateGestureConfig(Object.assign({shouldCancelWhenOutside:n,numberOfTaps:o,maxDeltaX:u,maxDeltaY:l,minDurationMs:h,maxDelayMs:c,maxDist:x,minPointers:E,maxPointers:D},p))}onGestureEnded(...e){clearTimeout(this._timer),super.onGestureEnded(...e)}onWaitingEnded(e){this._shouldFireEndEvent&&(this.onSuccessfulTap(this._shouldFireEndEvent),this._shouldFireEndEvent=null)}}var h=o},3290,[120,3282,3280,3286]);
15703
- __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var e=t(r(d[0])),n=r(d[1]),s=t(r(d[2])),u=r(d[3]);class o extends s.default{get minDurationMs(){return(0,u.isnan)(this.config.minDurationMs)?251:this.config.minDurationMs}get maxDist(){return(0,u.isnan)(this.config.maxDist)?9:this.config.maxDist}updateHasCustomActivationCriteria({maxDistSq:t}){return!(0,u.isValidNumber)(t)}getConfig(){return this.hasCustomActivationCriteria?this.config:{shouldCancelWhenOutside:!0,maxDistSq:10}}getHammerConfig(){return Object.assign({},super.getHammerConfig(),{time:this.minDurationMs})}getState(t){return{[e.default.INPUT_START]:n.State.ACTIVE,[e.default.INPUT_MOVE]:n.State.ACTIVE,[e.default.INPUT_END]:n.State.END,[e.default.INPUT_CANCEL]:n.State.FAILED}[t]}}var f=o},3291,[3282,3245,3287,3286]);
15704
- __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 c}});var t=e(r(d[0])),n=e(r(d[1]));class u extends n.default{get name(){return'pinch'}get NativeGestureClass(){return t.default.Pinch}transformNativeEvent({scale:e,velocity:t,center:n}){return{focalX:n.x,focalY:n.y,velocity:t,scale:e}}}var c=u},3292,[3282,3293]);
15705
- __d(function(g,r,i,a,m,_e,d){"use strict";const e=["minPointers","maxPointers"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var n=t(r(d[0])),s=t(r(d[1]));class u extends s.default{get shouldEnableGestureOnSetup(){return!1}updateGestureConfig(t){let{minPointers:s=2,maxPointers:u=2}=t,o=(0,n.default)(t,e);return super.updateGestureConfig(Object.assign({minPointers:s,maxPointers:u},o))}isGestureEnabledForEvent({minPointers:e,maxPointers:t},n,{maxPointers:s}){if(s>t)return{failed:!0};return{success:s>=e}}}var o=u},3293,[120,3281]);
15706
- __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 l}});var t=e(r(d[0])),n=r(d[1]),o=e(r(d[2]));class u extends o.default{get name(){return'rotate'}get NativeGestureClass(){return t.default.Rotate}transformNativeEvent({rotation:e,velocity:t,center:o}){return{rotation:(e-(this.initialRotation??0))*n.DEG_RAD,anchorX:o.x,anchorY:o.y,velocity:t}}}var l=u},3294,[3282,3283,3293]);
15707
- __d(function(g,r,i,a,m,_e,d){"use strict";const e=["numberOfPointers","direction"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var n=t(r(d[0])),s=t(r(d[1])),u=r(d[2]),o=r(d[3]),c=t(r(d[4])),f=r(d[5]);class l extends c.default{get name(){return'swipe'}get NativeGestureClass(){return s.default.Swipe}onGestureActivated(e){this.sendEvent(Object.assign({},e,{eventType:s.default.INPUT_MOVE,isFinal:!1,isFirst:!0})),this.isGestureRunning=!1,this.hasGestureFailed=!1,this.sendEvent(Object.assign({},e,{eventType:s.default.INPUT_END,isFinal:!0}))}onRawEvent(e){if(super.onRawEvent(e),!this.hasGestureFailed)if(e.isFinal)setTimeout(()=>{this.isGestureRunning&&this.cancelEvent(e)});else if(!this.hasGestureFailed&&!this.isGestureRunning){const t=this.hammer.get(this.name);t.options.enable(t,e)&&(this.onStart(e),this.sendEvent(e))}}getHammerConfig(){return{pointers:this.config.numberOfPointers,direction:this.getDirection()}}getTargetDirections(e){const t=[];return e&u.Direction.RIGHT&&t.push(s.default.DIRECTION_RIGHT),e&u.Direction.LEFT&&t.push(s.default.DIRECTION_LEFT),e&u.Direction.UP&&t.push(s.default.DIRECTION_UP),e&u.Direction.DOWN&&t.push(s.default.DIRECTION_DOWN),t}getDirection(){const{direction:e}=this.getConfig();let t=[];return e&u.Direction.RIGHT&&t.push(s.default.DIRECTION_HORIZONTAL),e&u.Direction.LEFT&&t.push(s.default.DIRECTION_HORIZONTAL),e&u.Direction.UP&&t.push(s.default.DIRECTION_VERTICAL),e&u.Direction.DOWN&&t.push(s.default.DIRECTION_VERTICAL),t=[...new Set(t)],0===t.length?s.default.DIRECTION_NONE:1===t.length?t[0]:s.default.DIRECTION_ALL}isGestureEnabledForEvent({numberOfPointers:e},t,{maxPointers:n}){const s=n===e;return!s&&this.isGestureRunning?{failed:!0}:{success:s}}updateGestureConfig(t){let{numberOfPointers:s=1,direction:u}=t,c=(0,n.default)(t,e);if((0,f.isnan)(u)||'number'!=typeof u)throw new o.GesturePropError('direction',u,'number');return super.updateGestureConfig(Object.assign({numberOfPointers:s,direction:u},c))}}var h=l},3295,[120,3282,3283,3296,3289,3286]);
15708
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GesturePropError",{enumerable:!0,get:function(){return t}});class t extends Error{constructor(t,n,o){super(`Invalid property \`${t}: ${n}\` expected \`${o}\``)}}},3296,[]);
15709
- __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,"GestureHandlerWebDelegate",{enumerable:!0,get:function(){return c}});var t=e(r(d[0])),s=e(r(d[1])),n=r(d[2]),o=r(d[3]),u=r(d[4]),h=e(r(d[5])),l=e(r(d[6]));class c{isInitialized=!1;eventManagers=[];defaultViewStyles={userSelect:'',touchAction:''};init(e,n){if(!e)throw new Error(`Cannot find HTML Element for handler ${n.handlerTag}`);this.isInitialized=!0,this.gestureHandler=n,this.view=(0,t.default)(e),this.defaultViewStyles={userSelect:this.view.style.userSelect,touchAction:this.view.style.touchAction};const o=n.config;this.setUserSelect(o.enabled),this.setTouchAction(o.enabled),this.setContextMenu(o.enabled),this.eventManagers.push(new s.default(this.view)),this.eventManagers.push(new h.default(this.view)),this.eventManagers.push(new l.default(this.view)),this.eventManagers.forEach(e=>this.gestureHandler.attachEventManager(e))}isPointerInBounds({x:e,y:t}){return(0,o.isPointerInBounds)(this.view,{x:e,y:t})}measureView(){const e=this.view.getBoundingClientRect();return{pageX:e.left,pageY:e.top,width:e.width,height:e.height}}reset(){this.eventManagers.forEach(e=>e.resetManager())}tryResetCursor(){const e=this.gestureHandler.config;e.activeCursor&&'auto'!==e.activeCursor&&this.gestureHandler.state===n.State.ACTIVE&&(this.view.style.cursor='auto')}shouldDisableContextMenu(e){return void 0===e.enableContextMenu&&this.gestureHandler.isButtonInConfig(u.MouseButton.RIGHT)||!1===e.enableContextMenu}addContextMenuListeners(e){this.shouldDisableContextMenu(e)?this.view.addEventListener('contextmenu',this.disableContextMenu):e.enableContextMenu&&this.view.addEventListener('contextmenu',this.enableContextMenu)}removeContextMenuListeners(e){this.shouldDisableContextMenu(e)?this.view.removeEventListener('contextmenu',this.disableContextMenu):e.enableContextMenu&&this.view.removeEventListener('contextmenu',this.enableContextMenu)}disableContextMenu(e){e.preventDefault()}enableContextMenu(e){e.stopPropagation()}setUserSelect(e){const{userSelect:t}=this.gestureHandler.config;this.view.style.userSelect=e?t??'none':this.defaultViewStyles.userSelect,this.view.style.webkitUserSelect=e?t??'none':this.defaultViewStyles.userSelect}setTouchAction(e){const{touchAction:t}=this.gestureHandler.config;this.view.style.touchAction=e?t??'none':this.defaultViewStyles.touchAction,this.view.style.WebkitTouchCallout=e?t??'none':this.defaultViewStyles.touchAction}setContextMenu(e){const t=this.gestureHandler.config;e?this.addContextMenuListeners(t):this.removeContextMenuListeners(t)}onEnabledChange(e){this.isInitialized&&(this.setUserSelect(e),this.setTouchAction(e),this.setContextMenu(e),e?this.eventManagers.forEach(e=>{e.registerListeners()}):this.eventManagers.forEach(e=>{e.unregisterListeners()}))}onBegin(){}onActivate(){const e=this.gestureHandler.config;this.view.style.cursor&&'auto'!==this.view.style.cursor||!e.activeCursor||(this.view.style.cursor=e.activeCursor)}onEnd(){this.tryResetCursor()}onCancel(){this.tryResetCursor()}onFail(){this.tryResetCursor()}destroy(e){this.removeContextMenuListeners(e),this.eventManagers.forEach(e=>{e.unregisterListeners()})}get view(){return this._view}set view(e){this._view=e}}},3297,[3298,3299,3245,3275,3265,3301,3302]);
15710
- __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 l}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},f=r(d[1]);function l(e){if(e instanceof n.default)return e._listRef._scrollRef.firstChild;if(void 0!==e?.viewTag)return l(e.viewTag);if(e instanceof Element)return'contents'===e.style.display?l(e.firstChild):e;if((0,f.isRNSVGElement)(e))return e.elementRef.current;let t=e?.current;for(;t&&'contents'===t.style.display;)t=t.firstChild;return t}},3298,[138,3275]);
15711
- __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 h}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},s=r(d[1]),o=r(d[2]),p=r(d[3]),l=r(d[4]);const v=new Set(['SELECT','INPUT']);class h extends n.default{trackedPointers=new Set;mouseButtonsMapper=new Map;constructor(e){super(e),this.mouseButtonsMapper.set(0,s.MouseButton.LEFT),this.mouseButtonsMapper.set(1,s.MouseButton.MIDDLE),this.mouseButtonsMapper.set(2,s.MouseButton.RIGHT),this.mouseButtonsMapper.set(3,s.MouseButton.BUTTON_4),this.mouseButtonsMapper.set(4,s.MouseButton.BUTTON_5),this.lastPosition={x:-1/0,y:-1/0}}pointerDownCallback=e=>{if(!(0,p.isPointerInBounds)(this.view,{x:e.clientX,y:e.clientY}))return;const t=this.mapEvent(e,o.EventTypes.DOWN),n=e.target;v.has(n.tagName)||n.setPointerCapture(t.pointerId),this.markAsInBounds(t.pointerId),this.trackedPointers.add(t.pointerId),++this.activePointersCounter>1?(t.eventType=o.EventTypes.ADDITIONAL_POINTER_DOWN,this.onPointerAdd(t)):this.onPointerDown(t)};pointerUpCallback=e=>{if(0===this.activePointersCounter)return;const t=this.mapEvent(e,o.EventTypes.UP),n=e.target;v.has(n.tagName)||n.releasePointerCapture(t.pointerId),this.markAsOutOfBounds(t.pointerId),this.trackedPointers.delete(t.pointerId),--this.activePointersCounter>0?(t.eventType=o.EventTypes.ADDITIONAL_POINTER_UP,this.onPointerRemove(t)):this.onPointerUp(t)};pointerMoveCallback=e=>{const t=this.mapEvent(e,o.EventTypes.MOVE),n=e.target;n?.hasPointerCapture(e.pointerId)||v.has(n.tagName)||n.setPointerCapture(e.pointerId);const s=(0,p.isPointerInBounds)(this.view,{x:t.x,y:t.y}),l=this.pointersInBounds.indexOf(t.pointerId);s?l<0?(t.eventType=o.EventTypes.ENTER,this.onPointerEnter(t),this.markAsInBounds(t.pointerId)):this.onPointerMove(t):l>=0?(t.eventType=o.EventTypes.LEAVE,this.onPointerLeave(t),this.markAsOutOfBounds(t.pointerId)):this.onPointerOutOfBounds(t),this.lastPosition.x=e.x,this.lastPosition.y=e.y};pointerCancelCallback=e=>{const t=this.mapEvent(e,o.EventTypes.CANCEL);this.onPointerCancel(t),this.markAsOutOfBounds(t.pointerId),this.activePointersCounter=0,this.trackedPointers.clear()};pointerEnterCallback=e=>{const t=this.mapEvent(e,o.EventTypes.ENTER);this.onPointerMoveOver(t)};pointerLeaveCallback=e=>{const t=this.mapEvent(e,o.EventTypes.LEAVE);this.onPointerMoveOut(t)};lostPointerCaptureCallback=e=>{const t=this.mapEvent(e,o.EventTypes.CANCEL);this.trackedPointers.has(t.pointerId)&&(this.onPointerCancel(t),this.activePointersCounter=0,this.trackedPointers.clear())};registerListeners(){this.view.addEventListener('pointerdown',this.pointerDownCallback),this.view.addEventListener('pointerup',this.pointerUpCallback),this.view.addEventListener('pointermove',this.pointerMoveCallback),this.view.addEventListener('pointercancel',this.pointerCancelCallback),this.view.addEventListener('pointerenter',this.pointerEnterCallback),this.view.addEventListener('pointerleave',this.pointerLeaveCallback),this.view.addEventListener('lostpointercapture',this.lostPointerCaptureCallback)}unregisterListeners(){this.view.removeEventListener('pointerdown',this.pointerDownCallback),this.view.removeEventListener('pointerup',this.pointerUpCallback),this.view.removeEventListener('pointermove',this.pointerMoveCallback),this.view.removeEventListener('pointercancel',this.pointerCancelCallback),this.view.removeEventListener('pointerenter',this.pointerEnterCallback),this.view.removeEventListener('pointerleave',this.pointerLeaveCallback),this.view.removeEventListener('lostpointercapture',this.lostPointerCaptureCallback)}mapEvent(e,t){const n=this.view.getBoundingClientRect(),{scaleX:s,scaleY:o}=(0,p.calculateViewScale)(this.view);return{x:e.clientX,y:e.clientY,offsetX:(e.clientX-n.left)/s,offsetY:(e.clientY-n.top)/o,pointerId:e.pointerId,eventType:t,pointerType:p.PointerTypeMapping.get(e.pointerType)??l.PointerType.OTHER,button:this.mouseButtonsMapper.get(e.button),time:e.timeStamp,stylusData:(0,p.tryExtractStylusData)(e)}}resetManager(){super.resetManager(),this.trackedPointers.clear()}}},3299,[3300,3265,3256,3275,3259]);
15712
- __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 n}});class n{pointersInBounds=[];constructor(n){this.view=n,this.activePointersCounter=0}onPointerDown(n){}onPointerAdd(n){}onPointerUp(n){}onPointerRemove(n){}onPointerMove(n){}onPointerLeave(n){}onPointerEnter(n){}onPointerCancel(n){}onPointerOutOfBounds(n){}onPointerMoveOver(n){}onPointerMoveOut(n){}onWheel(n){}setOnPointerDown(n){this.onPointerDown=n}setOnPointerAdd(n){this.onPointerAdd=n}setOnPointerUp(n){this.onPointerUp=n}setOnPointerRemove(n){this.onPointerRemove=n}setOnPointerMove(n){this.onPointerMove=n}setOnPointerLeave(n){this.onPointerLeave=n}setOnPointerEnter(n){this.onPointerEnter=n}setOnPointerCancel(n){this.onPointerCancel=n}setOnPointerOutOfBounds(n){this.onPointerOutOfBounds=n}setOnPointerMoveOver(n){this.onPointerMoveOver=n}setOnPointerMoveOut(n){this.onPointerMoveOut=n}setOnWheel(n){this.onWheel=n}markAsInBounds(n){this.pointersInBounds.indexOf(n)>=0||this.pointersInBounds.push(n)}markAsOutOfBounds(n){const t=this.pointersInBounds.indexOf(n);t<0||this.pointersInBounds.splice(t,1)}resetManager(){this.activePointersCounter=0,this.pointersInBounds=[]}}},3300,[]);
15713
- __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 o}});var e,t=r(d[0]),s=r(d[1]),n=(e=s)&&e.__esModule?e:{default:e},c=r(d[2]);class o extends n.default{static activationKeys=['Enter',' '];static cancelationKeys=['Tab'];isPressed=!1;static registeredStaticListeners=!1;static instances=new Set;static keyUpStaticCallback=e=>{-1!==this.activationKeys.indexOf(e.key)&&this.instances.forEach(t=>{t.onKeyUp(e)})};keyDownCallback=e=>{-1!==o.cancelationKeys.indexOf(e.key)&&this.isPressed?this.dispatchEvent(e,t.EventTypes.CANCEL):-1!==o.activationKeys.indexOf(e.key)&&this.dispatchEvent(e,t.EventTypes.DOWN)};onKeyUp=e=>{-1!==o.activationKeys.indexOf(e.key)&&this.isPressed&&this.dispatchEvent(e,t.EventTypes.UP)};dispatchEvent(e,s){if(!(e.target instanceof HTMLElement))return;const n=this.mapEvent(e,s);switch(s){case t.EventTypes.UP:this.isPressed=!1,this.onPointerUp(n);break;case t.EventTypes.DOWN:this.isPressed=!0,this.onPointerDown(n);break;case t.EventTypes.CANCEL:this.isPressed=!1,this.onPointerCancel(n)}}registerListeners(){this.view.addEventListener('keydown',this.keyDownCallback),o.instances.add(this),o.registeredStaticListeners||(o.registeredStaticListeners=!0,document.addEventListener('keyup',o.keyUpStaticCallback,{capture:!0}))}unregisterListeners(){this.view.removeEventListener('keydown',this.keyDownCallback),o.instances.delete(this),0===o.instances.size&&(document.removeEventListener('keyup',o.keyUpStaticCallback,{capture:!0}),o.registeredStaticListeners=!1)}mapEvent(e,t){const s=e.target.getBoundingClientRect(),n={x:s?.x+s?.width/2,y:s?.y+s?.height/2},o={x:s?.width/2,y:s?.height/2};return{x:n.x,y:n.y,offsetX:o.x,offsetY:o.y,pointerId:0,eventType:t,pointerType:c.PointerType.KEY,time:e.timeStamp}}}},3301,[3256,3300,3259]);
15714
- __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 h}});var e,t=r(d[0]),l=(e=t)&&e.__esModule?e:{default:e},s=r(d[1]),n=r(d[2]);class h extends l.default{wheelDelta={x:0,y:0};resetDelta=e=>{this.wheelDelta={x:0,y:0}};wheelCallback=e=>{this.wheelDelta.x+=e.deltaX,this.wheelDelta.y+=e.deltaY;const t=this.mapEvent(e);this.onWheel(t)};registerListeners(){this.view.addEventListener('pointermove',this.resetDelta),this.view.addEventListener('wheel',this.wheelCallback)}unregisterListeners(){this.view.removeEventListener('pointermove',this.resetDelta),this.view.removeEventListener('wheel',this.wheelCallback)}mapEvent(e){return{x:e.clientX+this.wheelDelta.x,y:e.clientY+this.wheelDelta.y,offsetX:e.offsetX-e.deltaX,offsetY:e.offsetY-e.deltaY,pointerId:-1,eventType:s.EventTypes.MOVE,pointerType:n.PointerType.OTHER,time:e.timeStamp,wheelDeltaY:e.wheelDeltaY}}resetManager(){super.resetManager()}}},3302,[3300,3256,3259]);
15715
- __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 c}}),r(d[0]);var t=e(r(d[1])),n=e(r(d[2])),u=e(r(d[3])),l=r(d[4]);function c(e,t){function c(n){return(0,l.jsx)(u.default,{style:[o.container,t],children:(0,l.jsx)(e,Object.assign({},n))})}return c.displayName=`gestureHandlerRootHOC(${e.displayName||e.name})`,(0,n.default)(c,e),c}const o=t.default.create({container:{flex:1}})},3303,[17,33,3304,3307,10]);
15716
- __d(function(g,r,_i,a,m,_e,d){'use strict';var e=r(d[0]),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},p={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},y={};function n(o){return e.isMemo(o)?p:y[o.$$typeof]||t}y[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},y[e.Memo]=p;var s=Object.defineProperty,c=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,l=Object.getPrototypeOf,u=Object.prototype;m.exports=function e(t,p,y){if('string'!=typeof p){if(u){var O=l(p);O&&O!==u&&e(t,O,y)}var P=c(p);i&&(P=P.concat(i(p)));for(var v=n(t),b=n(p),j=0;j<P.length;++j){var T=P[j];if(!(o[T]||y&&y[T]||b&&b[T]||v&&v[T])){var $=f(p,T);try{s(t,T,$)}catch(e){}}}}return t}},3304,[3305]);
15717
- __d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},3305,[3306]);
15693
+ function t(){return t=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},t.apply(this,arguments)}function e(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,t.__proto__=e}function n(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var i;Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return le}}),Object.defineProperty(_e,"INPUT_START",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"INPUT_MOVE",{enumerable:!0,get:function(){return w}}),Object.defineProperty(_e,"INPUT_END",{enumerable:!0,get:function(){return R}}),Object.defineProperty(_e,"INPUT_CANCEL",{enumerable:!0,get:function(){return x}}),Object.defineProperty(_e,"STATE_POSSIBLE",{enumerable:!0,get:function(){return Nt}}),Object.defineProperty(_e,"STATE_BEGAN",{enumerable:!0,get:function(){return wt}}),Object.defineProperty(_e,"STATE_CHANGED",{enumerable:!0,get:function(){return Rt}}),Object.defineProperty(_e,"STATE_ENDED",{enumerable:!0,get:function(){return xt}}),Object.defineProperty(_e,"STATE_RECOGNIZED",{enumerable:!0,get:function(){return Mt}}),Object.defineProperty(_e,"STATE_CANCELLED",{enumerable:!0,get:function(){return zt}}),Object.defineProperty(_e,"STATE_FAILED",{enumerable:!0,get:function(){return Lt}}),Object.defineProperty(_e,"DIRECTION_NONE",{enumerable:!0,get:function(){return M}}),Object.defineProperty(_e,"DIRECTION_LEFT",{enumerable:!0,get:function(){return z}}),Object.defineProperty(_e,"DIRECTION_RIGHT",{enumerable:!0,get:function(){return L}}),Object.defineProperty(_e,"DIRECTION_UP",{enumerable:!0,get:function(){return F}}),Object.defineProperty(_e,"DIRECTION_DOWN",{enumerable:!0,get:function(){return X}}),Object.defineProperty(_e,"DIRECTION_HORIZONTAL",{enumerable:!0,get:function(){return Y}}),Object.defineProperty(_e,"DIRECTION_VERTICAL",{enumerable:!0,get:function(){return W}}),Object.defineProperty(_e,"DIRECTION_ALL",{enumerable:!0,get:function(){return q}}),Object.defineProperty(_e,"Manager",{enumerable:!0,get:function(){return te}}),Object.defineProperty(_e,"Input",{enumerable:!0,get:function(){return pt}}),Object.defineProperty(_e,"TouchAction",{enumerable:!0,get:function(){return B}}),Object.defineProperty(_e,"TouchInput",{enumerable:!0,get:function(){return Pt}}),Object.defineProperty(_e,"MouseInput",{enumerable:!0,get:function(){return At}}),Object.defineProperty(_e,"PointerEventInput",{enumerable:!0,get:function(){return yt}}),Object.defineProperty(_e,"TouchMouseInput",{enumerable:!0,get:function(){return Dt}}),Object.defineProperty(_e,"SingleTouchInput",{enumerable:!0,get:function(){return ne}}),Object.defineProperty(_e,"Recognizer",{enumerable:!0,get:function(){return Wt}}),Object.defineProperty(_e,"AttrRecognizer",{enumerable:!0,get:function(){return Ht}}),Object.defineProperty(_e,"Tap",{enumerable:!0,get:function(){return qt}}),Object.defineProperty(_e,"Pan",{enumerable:!0,get:function(){return kt}}),Object.defineProperty(_e,"Swipe",{enumerable:!0,get:function(){return Vt}}),Object.defineProperty(_e,"Pinch",{enumerable:!0,get:function(){return Gt}}),Object.defineProperty(_e,"Rotate",{enumerable:!0,get:function(){return Zt}}),Object.defineProperty(_e,"Press",{enumerable:!0,get:function(){return Bt}}),Object.defineProperty(_e,"on",{enumerable:!0,get:function(){return ct}}),Object.defineProperty(_e,"off",{enumerable:!0,get:function(){return ht}}),Object.defineProperty(_e,"each",{enumerable:!0,get:function(){return k}}),Object.defineProperty(_e,"merge",{enumerable:!0,get:function(){return se}}),Object.defineProperty(_e,"extend",{enumerable:!0,get:function(){return oe}}),Object.defineProperty(_e,"assign",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"inherit",{enumerable:!0,get:function(){return ue}}),Object.defineProperty(_e,"bindFn",{enumerable:!0,get:function(){return ae}}),Object.defineProperty(_e,"prefixed",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"toArray",{enumerable:!0,get:function(){return Tt}}),Object.defineProperty(_e,"inArray",{enumerable:!0,get:function(){return ft}}),Object.defineProperty(_e,"uniqueArray",{enumerable:!0,get:function(){return bt}}),Object.defineProperty(_e,"splitStr",{enumerable:!0,get:function(){return at}}),Object.defineProperty(_e,"boolOrFn",{enumerable:!0,get:function(){return V}}),Object.defineProperty(_e,"hasParent",{enumerable:!0,get:function(){return $}}),Object.defineProperty(_e,"addEventListeners",{enumerable:!0,get:function(){return ct}}),Object.defineProperty(_e,"removeEventListeners",{enumerable:!0,get:function(){return ht}}),Object.defineProperty(_e,"defaults",{enumerable:!0,get:function(){return he}}),i='function'!=typeof Object.assign?function(t){if(null==t)throw new TypeError('Cannot convert undefined or null to object');for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(null!=i)for(var o in i)i.hasOwnProperty(o)&&(e[o]=i[o])}return e}:Object.assign;var o,s=i,u=['','webkit','Moz','MS','ms','o'],a="undefined"==typeof document?{style:{}}:document.createElement('div'),c='function',h=Math.round,l=Math.abs,p=Date.now;function f(t,e){for(var n,i,o=e[0].toUpperCase()+e.slice(1),s=0;s<u.length;){if((i=(n=u[s])?n+o:e)in t)return i;s++}}o="undefined"==typeof window?{}:window;var v=f(a.style,'touchAction'),y=void 0!==v;var T='compute',b='auto',E='manipulation',P='none',O='pan-x',I='pan-y',A=(function(){if(!y)return!1;var t={},e=o.CSS&&o.CSS.supports;return['auto','manipulation','pan-y','pan-x','pan-x pan-y','none'].forEach(function(n){return t[n]=!e||o.CSS.supports('touch-action',n)}),t})(),j='ontouchstart'in o,_=void 0!==f(o,'PointerEvent'),C=j&&/mobile|tablet|ip(ad|hone|od)|android/i.test(navigator.userAgent),D='touch',S='mouse',N=1,w=2,R=4,x=8,M=1,z=2,L=4,F=8,X=16,Y=6,W=24,q=30,H=['x','y'],U=['clientX','clientY'];function k(t,e,n){var i;if(t)if(t.forEach)t.forEach(e,n);else if(void 0!==t.length)for(i=0;i<t.length;)e.call(n,t[i],i,t),i++;else for(i in t)t.hasOwnProperty(i)&&e.call(n,t[i],i,t)}function V(t,e){return typeof t===c?t.apply(e&&e[0]||void 0,e):t}function G(t,e){return t.indexOf(e)>-1}function Z(t){if(G(t,P))return P;var e=G(t,O),n=G(t,I);return e&&n?P:e||n?e?O:I:G(t,E)?E:b}var B=(function(){function t(t,e){this.manager=t,this.set(e)}var e=t.prototype;return e.set=function(t){t===T&&(t=this.compute()),y&&this.manager.element.style&&A[t]&&(this.manager.element.style[v]=t),this.actions=t.toLowerCase().trim()},e.update=function(){this.set(this.manager.options.touchAction)},e.compute=function(){var t=[];return k(this.manager.recognizers,function(e){V(e.options.enable,[e])&&(t=t.concat(e.getTouchAction()))}),Z(t.join(' '))},e.preventDefaults=function(t){var e=t.srcEvent,n=t.offsetDirection;if(this.manager.session.prevented)e.preventDefault();else{var i=this.actions,o=G(i,P)&&!A[P],s=G(i,I)&&!A[I],u=G(i,O)&&!A[O];if(o){var a=1===t.pointers.length,c=t.distance<2,h=t.deltaTime<250;if(a&&c&&h)return}if(!u||!s)return o||s&&n&Y||u&&n&W?this.preventSrc(e):void 0}},e.preventSrc=function(t){this.manager.session.prevented=!0,t.preventDefault()},t})();function $(t,e){for(;t;){if(t===e)return!0;t=t.parentNode}return!1}function J(t){var e=t.length;if(1===e)return{x:h(t[0].clientX),y:h(t[0].clientY)};for(var n=0,i=0,o=0;o<e;)n+=t[o].clientX,i+=t[o].clientY,o++;return{x:h(n/e),y:h(i/e)}}function K(t){for(var e=[],n=0;n<t.pointers.length;)e[n]={clientX:h(t.pointers[n].clientX),clientY:h(t.pointers[n].clientY)},n++;return{timeStamp:p(),pointers:e,center:J(e),deltaX:t.deltaX,deltaY:t.deltaY}}function Q(t,e,n){n||(n=H);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return Math.sqrt(i*i+o*o)}function tt(t,e,n){n||(n=H);var i=e[n[0]]-t[n[0]],o=e[n[1]]-t[n[1]];return 180*Math.atan2(o,i)/Math.PI}function et(t,e){return t===e?M:l(t)>=l(e)?t<0?z:L:e<0?F:X}function nt(t,e){var n=e.center,i=t.offsetDelta||{},o=t.prevDelta||{},s=t.prevInput||{};e.eventType!==N&&s.eventType!==R||(o=t.prevDelta={x:s.deltaX||0,y:s.deltaY||0},i=t.offsetDelta={x:n.x,y:n.y}),e.deltaX=o.x+(n.x-i.x),e.deltaY=o.y+(n.y-i.y)}function rt(t,e,n){return{x:e/t||0,y:n/t||0}}function it(t,e){return tt(e[1],e[0],U)+tt(t[1],t[0],U)}function ot(t,e){var n,i,o,s,u=t.lastInterval||e,a=e.timeStamp-u.timeStamp;if(e.eventType!==x&&(a>25||void 0===u.velocity)){var c=e.deltaX-u.deltaX,h=e.deltaY-u.deltaY,p=rt(a,c,h);i=p.x,o=p.y,n=l(p.x)>l(p.y)?p.x:p.y,s=et(c,h),t.lastInterval=e}else n=u.velocity,i=u.velocityX,o=u.velocityY,s=u.direction;e.velocity=n,e.velocityX=i,e.velocityY=o,e.direction=s}function st(t,e){var n=t.session,i=e.pointers,o=i.length;n.firstInput||(n.firstInput=K(e)),o>1&&!n.firstMultiple?n.firstMultiple=K(e):1===o&&(n.firstMultiple=!1);var s=n.firstInput,u=n.firstMultiple,a=u?u.center:s.center,c=e.center=J(i);e.timeStamp=p(),e.deltaTime=e.timeStamp-s.timeStamp,e.angle=tt(a,c),e.distance=Q(a,c),nt(n,e),e.offsetDirection=et(e.deltaX,e.deltaY);var h,f,v=rt(e.deltaTime,e.deltaX,e.deltaY);e.overallVelocityX=v.x,e.overallVelocityY=v.y,e.overallVelocity=l(v.x)>l(v.y)?v.x:v.y,e.scale=u?(h=u.pointers,Q((f=i)[0],f[1],U)/Q(h[0],h[1],U)):1,e.rotation=u?it(u.pointers,i):0,e.maxPointers=n.prevInput?e.pointers.length>n.prevInput.maxPointers?e.pointers.length:n.prevInput.maxPointers:e.pointers.length,ot(n,e);var y,T=t.element,b=e.srcEvent;$(y=b.composedPath?b.composedPath()[0]:b.path?b.path[0]:b.target,T)&&(T=y),e.target=T}function ut(t,e,n){var i=n.pointers.length,o=n.changedPointers.length,s=e&N&&i-o===0,u=12&e&&i-o===0;n.isFirst=!!s,n.isFinal=!!u,s&&(t.session={}),n.eventType=e,st(t,n),t.emit('hammer.input',n),t.recognize(n),t.session.prevInput=n}function at(t){return t.trim().split(/\s+/g)}function ct(t,e,n){k(at(e),function(e){t.addEventListener(e,n,!1)})}function ht(t,e,n){k(at(e),function(e){t.removeEventListener(e,n,!1)})}function lt(t){var e=t.ownerDocument||t;return e.defaultView||e.parentWindow||window}var pt=(function(){function t(t,e){var n=this;this.manager=t,this.callback=e,this.element=t.element,this.target=t.options.inputTarget,this.domHandler=function(e){V(t.options.enable,[t])&&n.handler(e)},this.init()}var e=t.prototype;return e.handler=function(){},e.init=function(){this.evEl&&ct(this.element,this.evEl,this.domHandler),this.evTarget&&ct(this.target,this.evTarget,this.domHandler),this.evWin&&ct(lt(this.element),this.evWin,this.domHandler)},e.destroy=function(){this.evEl&&ht(this.element,this.evEl,this.domHandler),this.evTarget&&ht(this.target,this.evTarget,this.domHandler),this.evWin&&ht(lt(this.element),this.evWin,this.domHandler)},t})();function ft(t,e,n){if(t.indexOf&&!n)return t.indexOf(e);for(var i=0;i<t.length;){if(n&&t[i][n]==e||!n&&t[i]===e)return i;i++}return-1}var dt={pointerdown:N,pointermove:w,pointerup:R,pointercancel:x,pointerout:x},vt={2:D,3:'pen',4:S,5:'kinect'},mt='pointerdown',gt='pointermove pointerup pointercancel';o.MSPointerEvent&&!o.PointerEvent&&(mt='MSPointerDown',gt='MSPointerMove MSPointerUp MSPointerCancel');var yt=(function(t){function n(){var e,i=n.prototype;return i.evEl=mt,i.evWin=gt,(e=t.apply(this,arguments)||this).store=e.manager.session.pointerEvents=[],e}return e(n,t),n.prototype.handler=function(t){var e=this.store,n=!1,i=t.type.toLowerCase().replace('ms',''),o=dt[i],s=vt[t.pointerType]||t.pointerType,u=s===D,a=ft(e,t.pointerId,'pointerId');o&N&&(0===t.button||u)?a<0&&(e.push(t),a=e.length-1):12&o&&(n=!0),a<0||(e[a]=t,this.callback(this.manager,o,{pointers:e,changedPointers:[t],pointerType:s,srcEvent:t}),n&&e.splice(a,1))},n})(pt);function Tt(t){return Array.prototype.slice.call(t,0)}function bt(t,e,n){for(var i=[],o=[],s=0;s<t.length;){var u=e?t[s][e]:t[s];ft(o,u)<0&&i.push(t[s]),o[s]=u,s++}return n&&(i=e?i.sort(function(t,n){return t[e]>n[e]}):i.sort()),i}var Et={touchstart:N,touchmove:w,touchend:R,touchcancel:x},Pt=(function(t){function n(){var e;return n.prototype.evTarget="touchstart touchmove touchend touchcancel",(e=t.apply(this,arguments)||this).targetIds={},e}return e(n,t),n.prototype.handler=function(t){var e=Et[t.type],n=Ot.call(this,t,e);n&&this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:D,srcEvent:t})},n})(pt);function Ot(t,e){var n,i,o=Tt(t.touches),s=this.targetIds;if(3&e&&1===o.length)return s[o[0].identifier]=!0,[o,o];var u=Tt(t.changedTouches),a=[],c=this.target;if(i=o.filter(function(t){return $(t.target,c)}),e===N)for(n=0;n<i.length;)s[i[n].identifier]=!0,n++;for(n=0;n<u.length;)s[u[n].identifier]&&a.push(u[n]),12&e&&delete s[u[n].identifier],n++;return a.length?[bt(i.concat(a),'identifier',!0),a]:void 0}var It={mousedown:N,mousemove:w,mouseup:R},At=(function(t){function n(){var e,i=n.prototype;return i.evEl="mousedown",i.evWin="mousemove mouseup",(e=t.apply(this,arguments)||this).pressed=!1,e}return e(n,t),n.prototype.handler=function(t){var e=It[t.type];e&N&&0===t.button&&(this.pressed=!0),e&w&&1!==t.which&&(e=R),this.pressed&&(e&R&&(this.pressed=!1),this.callback(this.manager,e,{pointers:[t],changedPointers:[t],pointerType:S,srcEvent:t}))},n})(pt);function jt(t){var e=t.changedPointers[0];if(e.identifier===this.primaryTouch){var n={x:e.clientX,y:e.clientY},i=this.lastTouches;this.lastTouches.push(n);setTimeout(function(){var t=i.indexOf(n);t>-1&&i.splice(t,1)},2500)}}function _t(t,e){t&N?(this.primaryTouch=e.changedPointers[0].identifier,jt.call(this,e)):12&t&&jt.call(this,e)}function Ct(t){for(var e=t.srcEvent.clientX,n=t.srcEvent.clientY,i=0;i<this.lastTouches.length;i++){var o=this.lastTouches[i],s=Math.abs(e-o.x),u=Math.abs(n-o.y);if(s<=25&&u<=25)return!0}return!1}var Dt=(function(){return(function(t){function i(e,i){var o;return(o=t.call(this,e,i)||this).handler=function(t,e,i){var s=i.pointerType===D,u=i.pointerType===S;if(!(u&&i.sourceCapabilities&&i.sourceCapabilities.firesTouchEvents)){if(s)_t.call(n(n(o)),e,i);else if(u&&Ct.call(n(n(o)),i))return;o.callback(t,e,i)}},o.touch=new Pt(o.manager,o.handler),o.mouse=new At(o.manager,o.handler),o.primaryTouch=null,o.lastTouches=[],o}return e(i,t),i.prototype.destroy=function(){this.touch.destroy(),this.mouse.destroy()},i})(pt)})();function St(t,e,n){return!!Array.isArray(t)&&(k(t,n[e],n),!0)}var Nt=1,wt=2,Rt=4,xt=8,Mt=xt,zt=16,Lt=32,Ft=1;function Xt(t,e){var n=e.manager;return n?n.get(t):t}function Yt(t){return t&zt?'cancel':t&xt?'end':t&Rt?'move':t&wt?'start':''}var Wt=(function(){function e(e){void 0===e&&(e={}),this.options=t({enable:!0},e),this.id=Ft++,this.manager=null,this.state=Nt,this.simultaneous={},this.requireFail=[]}var n=e.prototype;return n.set=function(t){return s(this.options,t),this.manager&&this.manager.touchAction.update(),this},n.recognizeWith=function(t){if(St(t,'recognizeWith',this))return this;var e=this.simultaneous;return e[(t=Xt(t,this)).id]||(e[t.id]=t,t.recognizeWith(this)),this},n.dropRecognizeWith=function(t){return St(t,'dropRecognizeWith',this)||(t=Xt(t,this),delete this.simultaneous[t.id]),this},n.requireFailure=function(t){if(St(t,'requireFailure',this))return this;var e=this.requireFail;return-1===ft(e,t=Xt(t,this))&&(e.push(t),t.requireFailure(this)),this},n.dropRequireFailure=function(t){if(St(t,'dropRequireFailure',this))return this;t=Xt(t,this);var e=ft(this.requireFail,t);return e>-1&&this.requireFail.splice(e,1),this},n.hasRequireFailures=function(){return this.requireFail.length>0},n.canRecognizeWith=function(t){return!!this.simultaneous[t.id]},n.emit=function(t){var e=this,n=this.state;function i(n){e.manager.emit(n,t)}n<xt&&i(e.options.event+Yt(n)),i(e.options.event),t.additionalEvent&&i(t.additionalEvent),n>=xt&&i(e.options.event+Yt(n))},n.tryEmit=function(t){if(this.canEmit())return this.emit(t);this.state=Lt},n.canEmit=function(){for(var t=0;t<this.requireFail.length;){if(!(33&this.requireFail[t].state))return!1;t++}return!0},n.recognize=function(t){var e=s({},t);if(!V(this.options.enable,[this,e]))return this.reset(),void(this.state=Lt);56&this.state&&(this.state=Nt),this.state=this.process(e),30&this.state&&this.tryEmit(e)},n.process=function(t){},n.getTouchAction=function(){},n.reset=function(){},e})(),qt=(function(n){function i(e){var i;return void 0===e&&(e={}),(i=n.call(this,t({event:'tap',pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},e))||this).pTime=!1,i.pCenter=!1,i._timer=null,i._input=null,i.count=0,i}e(i,n);var o=i.prototype;return o.getTouchAction=function(){return[E]},o.process=function(t){var e=this,n=this.options,i=t.pointers.length===n.pointers,o=t.distance<n.threshold,s=t.deltaTime<n.time;if(this.reset(),t.eventType&N&&0===this.count)return this.failTimeout();if(o&&s&&i){if(t.eventType!==R)return this.failTimeout();var u=!this.pTime||t.timeStamp-this.pTime<n.interval,a=!this.pCenter||Q(this.pCenter,t.center)<n.posThreshold;if(this.pTime=t.timeStamp,this.pCenter=t.center,a&&u?this.count+=1:this.count=1,this._input=t,0===this.count%n.taps)return this.hasRequireFailures()?(this._timer=setTimeout(function(){e.state=Mt,e.tryEmit()},n.interval),wt):Mt}return Lt},o.failTimeout=function(){var t=this;return this._timer=setTimeout(function(){t.state=Lt},this.options.interval),Lt},o.reset=function(){clearTimeout(this._timer)},o.emit=function(){this.state===Mt&&(this._input.tapCount=this.count,this.manager.emit(this.options.event,this._input))},i})(Wt),Ht=(function(n){function i(e){return void 0===e&&(e={}),n.call(this,t({pointers:1},e))||this}e(i,n);var o=i.prototype;return o.attrTest=function(t){var e=this.options.pointers;return 0===e||t.pointers.length===e},o.process=function(t){var e=this.state,n=t.eventType,i=6&e,o=this.attrTest(t);return i&&(n&x||!o)?e|zt:i||o?n&R?e|xt:e&wt?e|Rt:wt:Lt},i})(Wt);function Ut(t){return t===X?'down':t===F?'up':t===z?'left':t===L?'right':''}var kt=(function(n){function i(e){var i;return void 0===e&&(e={}),(i=n.call(this,t({event:'pan',threshold:10,pointers:1,direction:q},e))||this).pX=null,i.pY=null,i}e(i,n);var o=i.prototype;return o.getTouchAction=function(){var t=this.options.direction,e=[];return t&Y&&e.push(I),t&W&&e.push(O),e},o.directionTest=function(t){var e=this.options,n=!0,i=t.distance,o=t.direction,s=t.deltaX,u=t.deltaY;return o&e.direction||(e.direction&Y?(o=0===s?M:s<0?z:L,n=s!==this.pX,i=Math.abs(t.deltaX)):(o=0===u?M:u<0?F:X,n=u!==this.pY,i=Math.abs(t.deltaY))),t.direction=o,n&&i>e.threshold&&o&e.direction},o.attrTest=function(t){return Ht.prototype.attrTest.call(this,t)&&(this.state&wt||!(this.state&wt)&&this.directionTest(t))},o.emit=function(t){this.pX=t.deltaX,this.pY=t.deltaY;var e=Ut(t.direction);e&&(t.additionalEvent=this.options.event+e),n.prototype.emit.call(this,t)},i})(Ht),Vt=(function(n){function i(e){return void 0===e&&(e={}),n.call(this,t({event:'swipe',threshold:10,velocity:.3,direction:30,pointers:1},e))||this}e(i,n);var o=i.prototype;return o.getTouchAction=function(){return kt.prototype.getTouchAction.call(this)},o.attrTest=function(t){var e,i=this.options.direction;return 30&i?e=t.overallVelocity:i&Y?e=t.overallVelocityX:i&W&&(e=t.overallVelocityY),n.prototype.attrTest.call(this,t)&&i&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers===this.options.pointers&&l(e)>this.options.velocity&&t.eventType&R},o.emit=function(t){var e=Ut(t.offsetDirection);e&&this.manager.emit(this.options.event+e,t),this.manager.emit(this.options.event,t)},i})(Ht),Gt=(function(n){function i(e){return void 0===e&&(e={}),n.call(this,t({event:'pinch',threshold:0,pointers:2},e))||this}e(i,n);var o=i.prototype;return o.getTouchAction=function(){return[P]},o.attrTest=function(t){return n.prototype.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&wt)},o.emit=function(t){if(1!==t.scale){var e=t.scale<1?'in':'out';t.additionalEvent=this.options.event+e}n.prototype.emit.call(this,t)},i})(Ht),Zt=(function(n){function i(e){return void 0===e&&(e={}),n.call(this,t({event:'rotate',threshold:0,pointers:2},e))||this}e(i,n);var o=i.prototype;return o.getTouchAction=function(){return[P]},o.attrTest=function(t){return n.prototype.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&wt)},i})(Ht),Bt=(function(n){function i(e){var i;return void 0===e&&(e={}),(i=n.call(this,t({event:'press',pointers:1,time:251,threshold:9},e))||this)._timer=null,i._input=null,i}e(i,n);var o=i.prototype;return o.getTouchAction=function(){return[b]},o.process=function(t){var e=this,n=this.options,i=t.pointers.length===n.pointers,o=t.distance<n.threshold,s=t.deltaTime>n.time;if(this._input=t,!o||!i||12&t.eventType&&!s)this.reset();else if(t.eventType&N)this.reset(),this._timer=setTimeout(function(){e.state=Mt,e.tryEmit()},n.time);else if(t.eventType&R)return Mt;return Lt},o.reset=function(){clearTimeout(this._timer)},o.emit=function(t){this.state===Mt&&(t&&t.eventType&R?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=p(),this.manager.emit(this.options.event,this._input)))},i})(Wt),$t={domEvents:!1,touchAction:T,enable:!0,inputTarget:null,inputClass:null,cssProps:{userSelect:"none",touchSelect:"none",touchCallout:"none",contentZooming:"none",userDrag:"none",tapHighlightColor:"rgba(0,0,0,0)"}},Jt=[[Zt,{enable:!1}],[Gt,{enable:!1},['rotate']],[Vt,{direction:Y}],[kt,{direction:Y},['swipe']],[qt],[qt,{event:'doubletap',taps:2},['tap']],[Bt]];function Kt(t,e){var n,i=t.element;i.style&&(k(t.options.cssProps,function(o,s){n=f(i.style,s),e?(t.oldCssProps[n]=i.style[n],i.style[n]=o):i.style[n]=t.oldCssProps[n]||""}),e||(t.oldCssProps={}))}function Qt(t,e){var n=document.createEvent("Event");n.initEvent(t,!0,!0),n.gesture=e,e.target.dispatchEvent(n)}var te=(function(){function t(t,e){var n,i=this;this.options=s({},$t,e||{}),this.options.inputTarget=this.options.inputTarget||t,this.handlers={},this.session={},this.recognizers=[],this.oldCssProps={},this.element=t,this.input=new((n=this).options.inputClass||(_?yt:C?Pt:j?Dt:At))(n,ut),this.touchAction=new B(this,this.options.touchAction),Kt(this,!0),k(this.options.recognizers,function(t){var e=i.add(new t[0](t[1]));t[2]&&e.recognizeWith(t[2]),t[3]&&e.requireFailure(t[3])},this)}var e=t.prototype;return e.set=function(t){return s(this.options,t),t.touchAction&&this.touchAction.update(),t.inputTarget&&(this.input.destroy(),this.input.target=t.inputTarget,this.input.init()),this},e.stop=function(t){this.session.stopped=t?2:1},e.recognize=function(t){var e=this.session;if(!e.stopped){var n;this.touchAction.preventDefaults(t);var i=this.recognizers,o=e.curRecognizer;(!o||o&&o.state&Mt)&&(e.curRecognizer=null,o=null);for(var s=0;s<i.length;)n=i[s],2===e.stopped||o&&n!==o&&!n.canRecognizeWith(o)?n.reset():n.recognize(t),!o&&14&n.state&&(e.curRecognizer=n,o=n),s++}},e.get=function(t){if(t instanceof Wt)return t;for(var e=this.recognizers,n=0;n<e.length;n++)if(e[n].options.event===t)return e[n];return null},e.add=function(t){if(St(t,"add",this))return this;var e=this.get(t.options.event);return e&&this.remove(e),this.recognizers.push(t),t.manager=this,this.touchAction.update(),t},e.remove=function(t){if(St(t,"remove",this))return this;var e=this.get(t);if(t){var n=this.recognizers,i=ft(n,e);-1!==i&&(n.splice(i,1),this.touchAction.update())}return this},e.on=function(t,e){if(void 0===t||void 0===e)return this;var n=this.handlers;return k(at(t),function(t){n[t]=n[t]||[],n[t].push(e)}),this},e.off=function(t,e){if(void 0===t)return this;var n=this.handlers;return k(at(t),function(t){e?n[t]&&n[t].splice(ft(n[t],e),1):delete n[t]}),this},e.emit=function(t,e){this.options.domEvents&&Qt(t,e);var n=this.handlers[t]&&this.handlers[t].slice();if(n&&n.length){e.type=t,e.preventDefault=function(){e.srcEvent.preventDefault()};for(var i=0;i<n.length;)n[i](e),i++}},e.destroy=function(){this.element&&Kt(this,!1),this.handlers={},this.session={},this.input.destroy(),this.element=null},t})(),ee={touchstart:N,touchmove:w,touchend:R,touchcancel:x},ne=(function(t){function n(){var e,i=n.prototype;return i.evTarget="touchstart",i.evWin="touchstart touchmove touchend touchcancel",(e=t.apply(this,arguments)||this).started=!1,e}return e(n,t),n.prototype.handler=function(t){var e=ee[t.type];if(e===N&&(this.started=!0),this.started){var n=re.call(this,t,e);12&e&&n[0].length-n[1].length===0&&(this.started=!1),this.callback(this.manager,e,{pointers:n[0],changedPointers:n[1],pointerType:D,srcEvent:t})}},n})(pt);function re(t,e){var n=Tt(t.touches),i=Tt(t.changedTouches);return 12&e&&(n=bt(n.concat(i),'identifier',!0)),[n,i]}function ie(t,e,n){var i="DEPRECATED METHOD: "+e+"\n"+n+" AT \n";return function(){var e=new Error('get-stack-trace'),n=e&&e.stack?e.stack.replace(/^[^\(]+?[\n$]/gm,'').replace(/^\s+at\s+/gm,'').replace(/^Object.<anonymous>\s*\(/gm,'{anonymous}()@'):'Unknown Stack Trace',o=window.console&&(window.console.warn||window.console.log);return o&&o.call(window.console,i,n),t.apply(this,arguments)}}var oe=ie(function(t,e,n){for(var i=Object.keys(e),o=0;o<i.length;)(!n||n&&void 0===t[i[o]])&&(t[i[o]]=e[i[o]]),o++;return t},'extend','Use `assign`.'),se=ie(function(t,e){return oe(t,e,!0)},'merge','Use `assign`.');function ue(t,e,n){var i,o=e.prototype;(i=t.prototype=Object.create(o)).constructor=t,i._super=o,n&&s(i,n)}function ae(t,e){return function(){return t.apply(e,arguments)}}var ce=(function(){var e=function(e,n){return void 0===n&&(n={}),new te(e,t({recognizers:Jt.concat()},n))};return e.VERSION="2.0.17-rc",e.DIRECTION_ALL=q,e.DIRECTION_DOWN=X,e.DIRECTION_LEFT=z,e.DIRECTION_RIGHT=L,e.DIRECTION_UP=F,e.DIRECTION_HORIZONTAL=Y,e.DIRECTION_VERTICAL=W,e.DIRECTION_NONE=M,e.DIRECTION_DOWN=X,e.INPUT_START=N,e.INPUT_MOVE=w,e.INPUT_END=R,e.INPUT_CANCEL=x,e.STATE_POSSIBLE=Nt,e.STATE_BEGAN=wt,e.STATE_CHANGED=Rt,e.STATE_ENDED=xt,e.STATE_RECOGNIZED=Mt,e.STATE_CANCELLED=zt,e.STATE_FAILED=Lt,e.Manager=te,e.Input=pt,e.TouchAction=B,e.TouchInput=Pt,e.MouseInput=At,e.PointerEventInput=yt,e.TouchMouseInput=Dt,e.SingleTouchInput=ne,e.Recognizer=Wt,e.AttrRecognizer=Ht,e.Tap=qt,e.Pan=kt,e.Swipe=Vt,e.Pinch=Gt,e.Rotate=Zt,e.Press=Bt,e.on=ct,e.off=ht,e.each=k,e.merge=se,e.extend=oe,e.bindFn=ae,e.assign=s,e.inherit=ue,e.bindFn=ae,e.prefixed=f,e.toArray=Tt,e.inArray=ft,e.uniqueArray=bt,e.splitStr=at,e.boolOrFn=V,e.hasParent=$,e.addEventListeners=ct,e.removeEventListeners=ht,e.defaults=s({},$t,{preset:Jt}),e})(),he=ce.defaults,le=ce},3281,[]);
15694
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"CONTENT_TOUCHES_DELAY",{enumerable:!0,get:function(){return T}}),Object.defineProperty(_e,"CONTENT_TOUCHES_QUICK_TAP_END_DELAY",{enumerable:!0,get:function(){return I}}),Object.defineProperty(_e,"MULTI_FINGER_PAN_MAX_PINCH_THRESHOLD",{enumerable:!0,get:function(){return N}}),Object.defineProperty(_e,"MULTI_FINGER_PAN_MAX_ROTATION_THRESHOLD",{enumerable:!0,get:function(){return E}}),Object.defineProperty(_e,"DEG_RAD",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"EventMap",{enumerable:!0,get:function(){return _}}),Object.defineProperty(_e,"Direction",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"DirectionMap",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"HammerInputNames",{enumerable:!0,get:function(){return D}}),Object.defineProperty(_e,"HammerDirectionNames",{enumerable:!0,get:function(){return R}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},u=r(d[1]);const T=240,I=50,N=.1,E=7,O=Math.PI/180,_={[n.default.INPUT_START]:u.State.BEGAN,[n.default.INPUT_MOVE]:u.State.ACTIVE,[n.default.INPUT_END]:u.State.END,[n.default.INPUT_CANCEL]:u.State.FAILED},f={RIGHT:1,LEFT:2,UP:4,DOWN:8},l={[n.default.DIRECTION_RIGHT]:f.RIGHT,[n.default.DIRECTION_LEFT]:f.LEFT,[n.default.DIRECTION_UP]:f.UP,[n.default.DIRECTION_DOWN]:f.DOWN},D={[n.default.INPUT_START]:'START',[n.default.INPUT_MOVE]:'MOVE',[n.default.INPUT_END]:'END',[n.default.INPUT_CANCEL]:'CANCEL'},R={[n.default.DIRECTION_HORIZONTAL]:'HORIZONTAL',[n.default.DIRECTION_UP]:'UP',[n.default.DIRECTION_DOWN]:'DOWN',[n.default.DIRECTION_VERTICAL]:'VERTICAL',[n.default.DIRECTION_NONE]:'NONE',[n.default.DIRECTION_ALL]:'ALL',[n.default.DIRECTION_RIGHT]:'RIGHT',[n.default.DIRECTION_LEFT]:'LEFT'}},3282,[3281,3244]);
15695
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"gestures",{enumerable:!0,get:function(){return t}}),e.getHandler=n,e.createGestureHandler=function(n,o){if(n in t)throw new Error(`Handler with tag ${n} already exists`);t[n]=o,t[n].handlerTag=n},e.dropGestureHandler=function(o){if(!(o in t))return;n(o).destroy(),delete t[o]},e.getNodes=function(){return Object.assign({},t)};const t={};function n(n){if(n in t)return t[n];throw new Error(`No handler for tag ${n}`)}},3283,[]);
15696
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ghQueueMicrotask",{enumerable:!0,get:function(){return t}});const t='function'==typeof setImmediate?setImmediate.bind(null):'function'==typeof requestAnimationFrame?requestAnimationFrame.bind(null):queueMicrotask.bind(null)},3284,[]);
15697
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"isnan",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"isValidNumber",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"TEST_MIN_IF_NOT_NAN",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"VEC_LEN_SQ",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"TEST_MAX_IF_NOT_NAN",{enumerable:!0,get:function(){return o}}),e.fireAfterInterval=function(t,n){if(!n)return t(),null;return setTimeout(()=>t(),n)};const t=t=>Number.isNaN(t),n=t=>'number'==typeof t&&!Number.isNaN(t),u=(n,u)=>!t(u)&&(u<0&&n<=u||u>=0&&n>=u),f=({x:t=0,y:n=0}={})=>t*t+n*n,o=(n,u)=>!t(u)&&(u<0&&n<u||u>=0&&n>u)},3285,[]);
15698
+ __d(function(g,r,i,a,m,_e,d){"use strict";const e=["shouldActivateOnStart","disallowInterruption","shouldCancelWhenOutside","minDurationMs","maxDist","minPointers","maxPointers"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return v}});var n=t(r(d[0])),s=t(r(d[1])),u=r(d[2]),l=r(d[3]),o=t(r(d[4])),h=r(d[5]);class c extends o.default{initialEvent=null;get name(){return'press'}get minDurationMs(){return(0,h.isnan)(this.config.minDurationMs)?5:this.config.minDurationMs}get maxDist(){return(0,h.isnan)(this.config.maxDist)?9:this.config.maxDist}get NativeGestureClass(){return s.default.Press}shouldDelayTouches=!0;simulateCancelEvent(e){this.hasGestureFailed=!0,this.cancelEvent(e)}updateHasCustomActivationCriteria({shouldCancelWhenOutside:e,maxDistSq:t}){return e||!(0,h.isValidNumber)(t)}getState(e){return{[s.default.INPUT_START]:u.State.BEGAN,[s.default.INPUT_MOVE]:u.State.ACTIVE,[s.default.INPUT_END]:u.State.END,[s.default.INPUT_CANCEL]:u.State.CANCELLED}[e]}getConfig(){return this.hasCustomActivationCriteria?this.config:{shouldCancelWhenOutside:!0,maxDistSq:10}}getHammerConfig(){return Object.assign({},super.getHammerConfig(),{time:this.minDurationMs})}onGestureActivated(e){this.onGestureStart(e)}shouldDelayTouchForEvent({pointerType:e}){return this.shouldDelayTouches&&'touch'===e}onGestureStart(e){this.isGestureRunning=!0,clearTimeout(this.visualFeedbackTimer),this.initialEvent=e,this.visualFeedbackTimer=(0,h.fireAfterInterval)(()=>{this.sendGestureStartedEvent(this.initialEvent),this.initialEvent=null},this.shouldDelayTouchForEvent(e)&&l.CONTENT_TOUCHES_DELAY)}sendGestureStartedEvent(e){clearTimeout(this.visualFeedbackTimer),this.visualFeedbackTimer=null,this.sendEvent(Object.assign({},e,{eventType:s.default.INPUT_MOVE,isFirst:!0}))}forceInvalidate(e){super.forceInvalidate(e),clearTimeout(this.visualFeedbackTimer),this.visualFeedbackTimer=null,this.initialEvent=null}onRawEvent(e){if(super.onRawEvent(e),this.isGestureRunning)if(e.isFinal){let t;this.visualFeedbackTimer&&(t=l.CONTENT_TOUCHES_QUICK_TAP_END_DELAY,this.sendGestureStartedEvent(this.initialEvent),this.initialEvent=null),(0,h.fireAfterInterval)(()=>{this.sendEvent(Object.assign({},e,{eventType:s.default.INPUT_END,isFinal:!0})),this.onGestureEnded()},t)}else this.sendEvent(Object.assign({},e,{eventType:s.default.INPUT_MOVE,isFinal:!1}))}updateGestureConfig(t){let{shouldActivateOnStart:s=!1,disallowInterruption:u=!1,shouldCancelWhenOutside:l=!0,minDurationMs:o=Number.NaN,maxDist:h=Number.NaN,minPointers:c=1,maxPointers:v=1}=t,E=(0,n.default)(t,e);return super.updateGestureConfig(Object.assign({shouldActivateOnStart:s,disallowInterruption:u,shouldCancelWhenOutside:l,minDurationMs:o,maxDist:h,minPointers:c,maxPointers:v},E))}}var v=c},3286,[120,3281,3244,3282,3279,3285]);
15699
+ __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e=t(r(d[0])),n=r(d[1]),s=t(r(d[2])),f=r(d[3]),l=r(d[4]);class u extends s.default{get name(){return'pan'}get NativeGestureClass(){return e.default.Pan}getHammerConfig(){return Object.assign({},super.getHammerConfig(),{direction:this.getDirection()})}getState(t){const e=super.getState(t);return this.previousState===l.State.UNDETERMINED&&e===l.State.ACTIVE?l.State.BEGAN:e}getDirection(){const t=this.getConfig(),{activeOffsetXStart:n,activeOffsetXEnd:s,activeOffsetYStart:l,activeOffsetYEnd:u,minDist:c}=t;let o=[],N=[];if(!(0,f.isnan)(c))return e.default.DIRECTION_ALL;(0,f.isnan)(n)||N.push(e.default.DIRECTION_LEFT),(0,f.isnan)(s)||N.push(e.default.DIRECTION_RIGHT),2===N.length&&(N=[e.default.DIRECTION_HORIZONTAL]),o=o.concat(N);let O=[];return(0,f.isnan)(l)||O.push(e.default.DIRECTION_UP),(0,f.isnan)(u)||O.push(e.default.DIRECTION_DOWN),2===O.length&&(O=[e.default.DIRECTION_VERTICAL]),o=o.concat(O),o.length?o[0]===e.default.DIRECTION_HORIZONTAL&&o[1]===e.default.DIRECTION_VERTICAL||N.length&&O.length?e.default.DIRECTION_ALL:o[0]:e.default.DIRECTION_NONE}getConfig(){return this.hasCustomActivationCriteria?this.config:{minDistSq:10}}shouldFailUnderCustomCriteria({deltaX:t,deltaY:e},n){return!(0,f.isnan)(n.failOffsetXStart)&&t<n.failOffsetXStart||!(0,f.isnan)(n.failOffsetXEnd)&&t>n.failOffsetXEnd||!(0,f.isnan)(n.failOffsetYStart)&&e<n.failOffsetYStart||!(0,f.isnan)(n.failOffsetYEnd)&&e>n.failOffsetYEnd}shouldActivateUnderCustomCriteria({deltaX:t,deltaY:e,velocity:n},s){return!(0,f.isnan)(s.activeOffsetXStart)&&t<s.activeOffsetXStart||!(0,f.isnan)(s.activeOffsetXEnd)&&t>s.activeOffsetXEnd||!(0,f.isnan)(s.activeOffsetYStart)&&e<s.activeOffsetYStart||!(0,f.isnan)(s.activeOffsetYEnd)&&e>s.activeOffsetYEnd||(0,f.TEST_MIN_IF_NOT_NAN)((0,f.VEC_LEN_SQ)({x:t,y:e}),s.minDistSq)||(0,f.TEST_MIN_IF_NOT_NAN)(n.x,s.minVelocityX)||(0,f.TEST_MIN_IF_NOT_NAN)(n.y,s.minVelocityY)||(0,f.TEST_MIN_IF_NOT_NAN)((0,f.VEC_LEN_SQ)(n),s.minVelocitySq)}shouldMultiFingerPanFail({pointerLength:t,scale:e,deltaRotation:s}){if(t<=1)return!1;const f=Math.abs(e-1),l=Math.abs(s);return f>n.MULTI_FINGER_PAN_MAX_PINCH_THRESHOLD||l>n.MULTI_FINGER_PAN_MAX_ROTATION_THRESHOLD}updateHasCustomActivationCriteria(t){return(0,f.isValidNumber)(t.minDistSq)||(0,f.isValidNumber)(t.minVelocityX)||(0,f.isValidNumber)(t.minVelocityY)||(0,f.isValidNumber)(t.minVelocitySq)||(0,f.isValidNumber)(t.activeOffsetXStart)||(0,f.isValidNumber)(t.activeOffsetXEnd)||(0,f.isValidNumber)(t.activeOffsetYStart)||(0,f.isValidNumber)(t.activeOffsetYEnd)}isGestureEnabledForEvent(t,e,n){if(this.shouldFailUnderCustomCriteria(n,t))return{failed:!0};const s={x:n.velocityX,y:n.velocityY};return this.hasCustomActivationCriteria&&this.shouldActivateUnderCustomCriteria({deltaX:n.deltaX,deltaY:n.deltaY,velocity:s},t)?this.shouldMultiFingerPanFail({pointerLength:n.maxPointers,scale:n.scale,deltaRotation:n.deltaRotation})?{failed:!0}:{success:!0}:{success:!1}}}var c=u},3287,[3281,3282,3288,3285,3244]);
15700
+ __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 u}});var t=e(r(d[0])),n=e(r(d[1]));class l extends t.default{get shouldEnableGestureOnSetup(){return!0}transformNativeEvent({deltaX:e,deltaY:t,velocityX:l,velocityY:u,center:{x:o,y:s}}){const c=this.view.getBoundingClientRect(),f=n.default.get();return{translationX:e-(this.__initialX||0),translationY:t-(this.__initialY||0),absoluteX:o,absoluteY:s,velocityX:l*f,velocityY:u*f,x:o-c.left,y:s-c.top}}}var u=l},3288,[3280,195]);
15701
+ __d(function(g,r,i,a,m,_e,d){"use strict";const e=["shouldCancelWhenOutside","maxDeltaX","maxDeltaY","numberOfTaps","minDurationMs","maxDelayMs","maxDurationMs","maxDist","minPointers","maxPointers"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var s=t(r(d[0])),n=t(r(d[1])),u=t(r(d[2])),l=r(d[3]);class o extends u.default{_shouldFireEndEvent=null;get name(){return'tap'}get NativeGestureClass(){return n.default.Tap}get maxDelayMs(){return(0,l.isnan)(this.config.maxDelayMs)?300:this.config.maxDelayMs}simulateCancelEvent(e){this.isGestureRunning&&this.cancelEvent(e)}onGestureActivated(e){this.isGestureRunning&&this.onSuccessfulTap(e)}onSuccessfulTap=e=>{this._getPendingGestures().length?this._shouldFireEndEvent=e:(e.eventType===n.default.INPUT_END&&this.sendEvent(Object.assign({},e,{eventType:n.default.INPUT_MOVE})),this.sendEvent(Object.assign({},e,{isFinal:!0})),this.onGestureEnded(e))};onRawEvent(e){if(super.onRawEvent(e),!this.hasGestureFailed&&!this.isGestureRunning&&!e.isFinal){const t=this.hammer.get(this.name);t.options.enable(t,e)&&(clearTimeout(this._multiTapTimer),this.onStart(e),this.sendEvent(e))}if(e.isFinal&&e.maxPointers>1&&setTimeout(()=>{this.isGestureRunning&&this.cancelEvent(e)}),!this.hasGestureFailed)if(e.isFinal)e.maxPointers>1&&setTimeout(()=>{this.isGestureRunning&&this.cancelEvent(e)}),clearTimeout(this._timer),this._timer=setTimeout(()=>{this.hasGestureFailed=!0,this.cancelEvent(e)},this.maxDelayMs);else if(!this.hasGestureFailed&&!this.isGestureRunning){const t=this.hammer.get(this.name);t.options.enable(t,e)&&(clearTimeout(this._multiTapTimer),this.onStart(e),this.sendEvent(e))}}getHammerConfig(){return Object.assign({},super.getHammerConfig(),{event:this.name,taps:(0,l.isnan)(this.config.numberOfTaps)?1:this.config.numberOfTaps,interval:this.maxDelayMs,time:(0,l.isnan)(this.config.maxDurationMs)||null==this.config.maxDurationMs?250:this.config.maxDurationMs})}updateGestureConfig(t){let{shouldCancelWhenOutside:n=!0,maxDeltaX:u=Number.NaN,maxDeltaY:l=Number.NaN,numberOfTaps:o=1,minDurationMs:h=525,maxDelayMs:c=Number.NaN,maxDurationMs:f=Number.NaN,maxDist:x=2,minPointers:E=1,maxPointers:D=1}=t,p=(0,s.default)(t,e);return super.updateGestureConfig(Object.assign({shouldCancelWhenOutside:n,numberOfTaps:o,maxDeltaX:u,maxDeltaY:l,minDurationMs:h,maxDelayMs:c,maxDist:x,minPointers:E,maxPointers:D},p))}onGestureEnded(...e){clearTimeout(this._timer),super.onGestureEnded(...e)}onWaitingEnded(e){this._shouldFireEndEvent&&(this.onSuccessfulTap(this._shouldFireEndEvent),this._shouldFireEndEvent=null)}}var h=o},3289,[120,3281,3279,3285]);
15702
+ __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var e=t(r(d[0])),n=r(d[1]),s=t(r(d[2])),u=r(d[3]);class o extends s.default{get minDurationMs(){return(0,u.isnan)(this.config.minDurationMs)?251:this.config.minDurationMs}get maxDist(){return(0,u.isnan)(this.config.maxDist)?9:this.config.maxDist}updateHasCustomActivationCriteria({maxDistSq:t}){return!(0,u.isValidNumber)(t)}getConfig(){return this.hasCustomActivationCriteria?this.config:{shouldCancelWhenOutside:!0,maxDistSq:10}}getHammerConfig(){return Object.assign({},super.getHammerConfig(),{time:this.minDurationMs})}getState(t){return{[e.default.INPUT_START]:n.State.ACTIVE,[e.default.INPUT_MOVE]:n.State.ACTIVE,[e.default.INPUT_END]:n.State.END,[e.default.INPUT_CANCEL]:n.State.FAILED}[t]}}var f=o},3290,[3281,3244,3286,3285]);
15703
+ __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 c}});var t=e(r(d[0])),n=e(r(d[1]));class u extends n.default{get name(){return'pinch'}get NativeGestureClass(){return t.default.Pinch}transformNativeEvent({scale:e,velocity:t,center:n}){return{focalX:n.x,focalY:n.y,velocity:t,scale:e}}}var c=u},3291,[3281,3292]);
15704
+ __d(function(g,r,i,a,m,_e,d){"use strict";const e=["minPointers","maxPointers"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var n=t(r(d[0])),s=t(r(d[1]));class u extends s.default{get shouldEnableGestureOnSetup(){return!1}updateGestureConfig(t){let{minPointers:s=2,maxPointers:u=2}=t,o=(0,n.default)(t,e);return super.updateGestureConfig(Object.assign({minPointers:s,maxPointers:u},o))}isGestureEnabledForEvent({minPointers:e,maxPointers:t},n,{maxPointers:s}){if(s>t)return{failed:!0};return{success:s>=e}}}var o=u},3292,[120,3280]);
15705
+ __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 l}});var t=e(r(d[0])),n=r(d[1]),o=e(r(d[2]));class u extends o.default{get name(){return'rotate'}get NativeGestureClass(){return t.default.Rotate}transformNativeEvent({rotation:e,velocity:t,center:o}){return{rotation:(e-(this.initialRotation??0))*n.DEG_RAD,anchorX:o.x,anchorY:o.y,velocity:t}}}var l=u},3293,[3281,3282,3292]);
15706
+ __d(function(g,r,i,a,m,_e,d){"use strict";const e=["numberOfPointers","direction"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return h}});var n=t(r(d[0])),s=t(r(d[1])),u=r(d[2]),o=r(d[3]),c=t(r(d[4])),f=r(d[5]);class l extends c.default{get name(){return'swipe'}get NativeGestureClass(){return s.default.Swipe}onGestureActivated(e){this.sendEvent(Object.assign({},e,{eventType:s.default.INPUT_MOVE,isFinal:!1,isFirst:!0})),this.isGestureRunning=!1,this.hasGestureFailed=!1,this.sendEvent(Object.assign({},e,{eventType:s.default.INPUT_END,isFinal:!0}))}onRawEvent(e){if(super.onRawEvent(e),!this.hasGestureFailed)if(e.isFinal)setTimeout(()=>{this.isGestureRunning&&this.cancelEvent(e)});else if(!this.hasGestureFailed&&!this.isGestureRunning){const t=this.hammer.get(this.name);t.options.enable(t,e)&&(this.onStart(e),this.sendEvent(e))}}getHammerConfig(){return{pointers:this.config.numberOfPointers,direction:this.getDirection()}}getTargetDirections(e){const t=[];return e&u.Direction.RIGHT&&t.push(s.default.DIRECTION_RIGHT),e&u.Direction.LEFT&&t.push(s.default.DIRECTION_LEFT),e&u.Direction.UP&&t.push(s.default.DIRECTION_UP),e&u.Direction.DOWN&&t.push(s.default.DIRECTION_DOWN),t}getDirection(){const{direction:e}=this.getConfig();let t=[];return e&u.Direction.RIGHT&&t.push(s.default.DIRECTION_HORIZONTAL),e&u.Direction.LEFT&&t.push(s.default.DIRECTION_HORIZONTAL),e&u.Direction.UP&&t.push(s.default.DIRECTION_VERTICAL),e&u.Direction.DOWN&&t.push(s.default.DIRECTION_VERTICAL),t=[...new Set(t)],0===t.length?s.default.DIRECTION_NONE:1===t.length?t[0]:s.default.DIRECTION_ALL}isGestureEnabledForEvent({numberOfPointers:e},t,{maxPointers:n}){const s=n===e;return!s&&this.isGestureRunning?{failed:!0}:{success:s}}updateGestureConfig(t){let{numberOfPointers:s=1,direction:u}=t,c=(0,n.default)(t,e);if((0,f.isnan)(u)||'number'!=typeof u)throw new o.GesturePropError('direction',u,'number');return super.updateGestureConfig(Object.assign({numberOfPointers:s,direction:u},c))}}var h=l},3294,[120,3281,3282,3295,3288,3285]);
15707
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GesturePropError",{enumerable:!0,get:function(){return t}});class t extends Error{constructor(t,n,o){super(`Invalid property \`${t}: ${n}\` expected \`${o}\``)}}},3295,[]);
15708
+ __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,"GestureHandlerWebDelegate",{enumerable:!0,get:function(){return c}});var t=e(r(d[0])),s=e(r(d[1])),n=r(d[2]),o=r(d[3]),u=r(d[4]),h=e(r(d[5])),l=e(r(d[6]));class c{isInitialized=!1;eventManagers=[];defaultViewStyles={userSelect:'',touchAction:''};init(e,n){if(!e)throw new Error(`Cannot find HTML Element for handler ${n.handlerTag}`);this.isInitialized=!0,this.gestureHandler=n,this.view=(0,t.default)(e),this.defaultViewStyles={userSelect:this.view.style.userSelect,touchAction:this.view.style.touchAction};const o=n.config;this.setUserSelect(o.enabled),this.setTouchAction(o.enabled),this.setContextMenu(o.enabled),this.eventManagers.push(new s.default(this.view)),this.eventManagers.push(new h.default(this.view)),this.eventManagers.push(new l.default(this.view)),this.eventManagers.forEach(e=>this.gestureHandler.attachEventManager(e))}isPointerInBounds({x:e,y:t}){return(0,o.isPointerInBounds)(this.view,{x:e,y:t})}measureView(){const e=this.view.getBoundingClientRect();return{pageX:e.left,pageY:e.top,width:e.width,height:e.height}}reset(){this.eventManagers.forEach(e=>e.resetManager())}tryResetCursor(){const e=this.gestureHandler.config;e.activeCursor&&'auto'!==e.activeCursor&&this.gestureHandler.state===n.State.ACTIVE&&(this.view.style.cursor='auto')}shouldDisableContextMenu(e){return void 0===e.enableContextMenu&&this.gestureHandler.isButtonInConfig(u.MouseButton.RIGHT)||!1===e.enableContextMenu}addContextMenuListeners(e){this.shouldDisableContextMenu(e)?this.view.addEventListener('contextmenu',this.disableContextMenu):e.enableContextMenu&&this.view.addEventListener('contextmenu',this.enableContextMenu)}removeContextMenuListeners(e){this.shouldDisableContextMenu(e)?this.view.removeEventListener('contextmenu',this.disableContextMenu):e.enableContextMenu&&this.view.removeEventListener('contextmenu',this.enableContextMenu)}disableContextMenu(e){e.preventDefault()}enableContextMenu(e){e.stopPropagation()}setUserSelect(e){const{userSelect:t}=this.gestureHandler.config;this.view.style.userSelect=e?t??'none':this.defaultViewStyles.userSelect,this.view.style.webkitUserSelect=e?t??'none':this.defaultViewStyles.userSelect}setTouchAction(e){const{touchAction:t}=this.gestureHandler.config;this.view.style.touchAction=e?t??'none':this.defaultViewStyles.touchAction,this.view.style.WebkitTouchCallout=e?t??'none':this.defaultViewStyles.touchAction}setContextMenu(e){const t=this.gestureHandler.config;e?this.addContextMenuListeners(t):this.removeContextMenuListeners(t)}onEnabledChange(e){this.isInitialized&&(this.setUserSelect(e),this.setTouchAction(e),this.setContextMenu(e),e?this.eventManagers.forEach(e=>{e.registerListeners()}):this.eventManagers.forEach(e=>{e.unregisterListeners()}))}onBegin(){}onActivate(){const e=this.gestureHandler.config;this.view.style.cursor&&'auto'!==this.view.style.cursor||!e.activeCursor||(this.view.style.cursor=e.activeCursor)}onEnd(){this.tryResetCursor()}onCancel(){this.tryResetCursor()}onFail(){this.tryResetCursor()}destroy(e){this.removeContextMenuListeners(e),this.eventManagers.forEach(e=>{e.unregisterListeners()})}get view(){return this._view}set view(e){this._view=e}}},3296,[3297,3298,3244,3274,3264,3300,3301]);
15709
+ __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 l}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},f=r(d[1]);function l(e){if(e instanceof n.default)return e._listRef._scrollRef.firstChild;if(void 0!==e?.viewTag)return l(e.viewTag);if(e instanceof Element)return'contents'===e.style.display?l(e.firstChild):e;if((0,f.isRNSVGElement)(e))return e.elementRef.current;let t=e?.current;for(;t&&'contents'===t.style.display;)t=t.firstChild;return t}},3297,[138,3274]);
15710
+ __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 h}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},s=r(d[1]),o=r(d[2]),p=r(d[3]),l=r(d[4]);const v=new Set(['SELECT','INPUT']);class h extends n.default{trackedPointers=new Set;mouseButtonsMapper=new Map;constructor(e){super(e),this.mouseButtonsMapper.set(0,s.MouseButton.LEFT),this.mouseButtonsMapper.set(1,s.MouseButton.MIDDLE),this.mouseButtonsMapper.set(2,s.MouseButton.RIGHT),this.mouseButtonsMapper.set(3,s.MouseButton.BUTTON_4),this.mouseButtonsMapper.set(4,s.MouseButton.BUTTON_5),this.lastPosition={x:-1/0,y:-1/0}}pointerDownCallback=e=>{if(!(0,p.isPointerInBounds)(this.view,{x:e.clientX,y:e.clientY}))return;const t=this.mapEvent(e,o.EventTypes.DOWN),n=e.target;v.has(n.tagName)||n.setPointerCapture(t.pointerId),this.markAsInBounds(t.pointerId),this.trackedPointers.add(t.pointerId),++this.activePointersCounter>1?(t.eventType=o.EventTypes.ADDITIONAL_POINTER_DOWN,this.onPointerAdd(t)):this.onPointerDown(t)};pointerUpCallback=e=>{if(0===this.activePointersCounter)return;const t=this.mapEvent(e,o.EventTypes.UP),n=e.target;v.has(n.tagName)||n.releasePointerCapture(t.pointerId),this.markAsOutOfBounds(t.pointerId),this.trackedPointers.delete(t.pointerId),--this.activePointersCounter>0?(t.eventType=o.EventTypes.ADDITIONAL_POINTER_UP,this.onPointerRemove(t)):this.onPointerUp(t)};pointerMoveCallback=e=>{const t=this.mapEvent(e,o.EventTypes.MOVE),n=e.target;n?.hasPointerCapture(e.pointerId)||v.has(n.tagName)||n.setPointerCapture(e.pointerId);const s=(0,p.isPointerInBounds)(this.view,{x:t.x,y:t.y}),l=this.pointersInBounds.indexOf(t.pointerId);s?l<0?(t.eventType=o.EventTypes.ENTER,this.onPointerEnter(t),this.markAsInBounds(t.pointerId)):this.onPointerMove(t):l>=0?(t.eventType=o.EventTypes.LEAVE,this.onPointerLeave(t),this.markAsOutOfBounds(t.pointerId)):this.onPointerOutOfBounds(t),this.lastPosition.x=e.x,this.lastPosition.y=e.y};pointerCancelCallback=e=>{const t=this.mapEvent(e,o.EventTypes.CANCEL);this.onPointerCancel(t),this.markAsOutOfBounds(t.pointerId),this.activePointersCounter=0,this.trackedPointers.clear()};pointerEnterCallback=e=>{const t=this.mapEvent(e,o.EventTypes.ENTER);this.onPointerMoveOver(t)};pointerLeaveCallback=e=>{const t=this.mapEvent(e,o.EventTypes.LEAVE);this.onPointerMoveOut(t)};lostPointerCaptureCallback=e=>{const t=this.mapEvent(e,o.EventTypes.CANCEL);this.trackedPointers.has(t.pointerId)&&(this.onPointerCancel(t),this.activePointersCounter=0,this.trackedPointers.clear())};registerListeners(){this.view.addEventListener('pointerdown',this.pointerDownCallback),this.view.addEventListener('pointerup',this.pointerUpCallback),this.view.addEventListener('pointermove',this.pointerMoveCallback),this.view.addEventListener('pointercancel',this.pointerCancelCallback),this.view.addEventListener('pointerenter',this.pointerEnterCallback),this.view.addEventListener('pointerleave',this.pointerLeaveCallback),this.view.addEventListener('lostpointercapture',this.lostPointerCaptureCallback)}unregisterListeners(){this.view.removeEventListener('pointerdown',this.pointerDownCallback),this.view.removeEventListener('pointerup',this.pointerUpCallback),this.view.removeEventListener('pointermove',this.pointerMoveCallback),this.view.removeEventListener('pointercancel',this.pointerCancelCallback),this.view.removeEventListener('pointerenter',this.pointerEnterCallback),this.view.removeEventListener('pointerleave',this.pointerLeaveCallback),this.view.removeEventListener('lostpointercapture',this.lostPointerCaptureCallback)}mapEvent(e,t){const n=this.view.getBoundingClientRect(),{scaleX:s,scaleY:o}=(0,p.calculateViewScale)(this.view);return{x:e.clientX,y:e.clientY,offsetX:(e.clientX-n.left)/s,offsetY:(e.clientY-n.top)/o,pointerId:e.pointerId,eventType:t,pointerType:p.PointerTypeMapping.get(e.pointerType)??l.PointerType.OTHER,button:this.mouseButtonsMapper.get(e.button),time:e.timeStamp,stylusData:(0,p.tryExtractStylusData)(e)}}resetManager(){super.resetManager(),this.trackedPointers.clear()}}},3298,[3299,3264,3255,3274,3258]);
15711
+ __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 n}});class n{pointersInBounds=[];constructor(n){this.view=n,this.activePointersCounter=0}onPointerDown(n){}onPointerAdd(n){}onPointerUp(n){}onPointerRemove(n){}onPointerMove(n){}onPointerLeave(n){}onPointerEnter(n){}onPointerCancel(n){}onPointerOutOfBounds(n){}onPointerMoveOver(n){}onPointerMoveOut(n){}onWheel(n){}setOnPointerDown(n){this.onPointerDown=n}setOnPointerAdd(n){this.onPointerAdd=n}setOnPointerUp(n){this.onPointerUp=n}setOnPointerRemove(n){this.onPointerRemove=n}setOnPointerMove(n){this.onPointerMove=n}setOnPointerLeave(n){this.onPointerLeave=n}setOnPointerEnter(n){this.onPointerEnter=n}setOnPointerCancel(n){this.onPointerCancel=n}setOnPointerOutOfBounds(n){this.onPointerOutOfBounds=n}setOnPointerMoveOver(n){this.onPointerMoveOver=n}setOnPointerMoveOut(n){this.onPointerMoveOut=n}setOnWheel(n){this.onWheel=n}markAsInBounds(n){this.pointersInBounds.indexOf(n)>=0||this.pointersInBounds.push(n)}markAsOutOfBounds(n){const t=this.pointersInBounds.indexOf(n);t<0||this.pointersInBounds.splice(t,1)}resetManager(){this.activePointersCounter=0,this.pointersInBounds=[]}}},3299,[]);
15712
+ __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 o}});var e,t=r(d[0]),s=r(d[1]),n=(e=s)&&e.__esModule?e:{default:e},c=r(d[2]);class o extends n.default{static activationKeys=['Enter',' '];static cancelationKeys=['Tab'];isPressed=!1;static registeredStaticListeners=!1;static instances=new Set;static keyUpStaticCallback=e=>{-1!==this.activationKeys.indexOf(e.key)&&this.instances.forEach(t=>{t.onKeyUp(e)})};keyDownCallback=e=>{-1!==o.cancelationKeys.indexOf(e.key)&&this.isPressed?this.dispatchEvent(e,t.EventTypes.CANCEL):-1!==o.activationKeys.indexOf(e.key)&&this.dispatchEvent(e,t.EventTypes.DOWN)};onKeyUp=e=>{-1!==o.activationKeys.indexOf(e.key)&&this.isPressed&&this.dispatchEvent(e,t.EventTypes.UP)};dispatchEvent(e,s){if(!(e.target instanceof HTMLElement))return;const n=this.mapEvent(e,s);switch(s){case t.EventTypes.UP:this.isPressed=!1,this.onPointerUp(n);break;case t.EventTypes.DOWN:this.isPressed=!0,this.onPointerDown(n);break;case t.EventTypes.CANCEL:this.isPressed=!1,this.onPointerCancel(n)}}registerListeners(){this.view.addEventListener('keydown',this.keyDownCallback),o.instances.add(this),o.registeredStaticListeners||(o.registeredStaticListeners=!0,document.addEventListener('keyup',o.keyUpStaticCallback,{capture:!0}))}unregisterListeners(){this.view.removeEventListener('keydown',this.keyDownCallback),o.instances.delete(this),0===o.instances.size&&(document.removeEventListener('keyup',o.keyUpStaticCallback,{capture:!0}),o.registeredStaticListeners=!1)}mapEvent(e,t){const s=e.target.getBoundingClientRect(),n={x:s?.x+s?.width/2,y:s?.y+s?.height/2},o={x:s?.width/2,y:s?.height/2};return{x:n.x,y:n.y,offsetX:o.x,offsetY:o.y,pointerId:0,eventType:t,pointerType:c.PointerType.KEY,time:e.timeStamp}}}},3300,[3255,3299,3258]);
15713
+ __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 h}});var e,t=r(d[0]),l=(e=t)&&e.__esModule?e:{default:e},s=r(d[1]),n=r(d[2]);class h extends l.default{wheelDelta={x:0,y:0};resetDelta=e=>{this.wheelDelta={x:0,y:0}};wheelCallback=e=>{this.wheelDelta.x+=e.deltaX,this.wheelDelta.y+=e.deltaY;const t=this.mapEvent(e);this.onWheel(t)};registerListeners(){this.view.addEventListener('pointermove',this.resetDelta),this.view.addEventListener('wheel',this.wheelCallback)}unregisterListeners(){this.view.removeEventListener('pointermove',this.resetDelta),this.view.removeEventListener('wheel',this.wheelCallback)}mapEvent(e){return{x:e.clientX+this.wheelDelta.x,y:e.clientY+this.wheelDelta.y,offsetX:e.offsetX-e.deltaX,offsetY:e.offsetY-e.deltaY,pointerId:-1,eventType:s.EventTypes.MOVE,pointerType:n.PointerType.OTHER,time:e.timeStamp,wheelDeltaY:e.wheelDeltaY}}resetManager(){super.resetManager()}}},3301,[3299,3255,3258]);
15714
+ __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 c}}),r(d[0]);var t=e(r(d[1])),n=e(r(d[2])),u=e(r(d[3])),l=r(d[4]);function c(e,t){function c(n){return(0,l.jsx)(u.default,{style:[o.container,t],children:(0,l.jsx)(e,Object.assign({},n))})}return c.displayName=`gestureHandlerRootHOC(${e.displayName||e.name})`,(0,n.default)(c,e),c}const o=t.default.create({container:{flex:1}})},3302,[17,33,3303,3306,10]);
15715
+ __d(function(g,r,_i,a,m,_e,d){'use strict';var e=r(d[0]),t={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},o={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},p={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},y={};function n(o){return e.isMemo(o)?p:y[o.$$typeof]||t}y[e.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},y[e.Memo]=p;var s=Object.defineProperty,c=Object.getOwnPropertyNames,i=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,l=Object.getPrototypeOf,u=Object.prototype;m.exports=function e(t,p,y){if('string'!=typeof p){if(u){var O=l(p);O&&O!==u&&e(t,O,y)}var P=c(p);i&&(P=P.concat(i(p)));for(var v=n(t),b=n(p),j=0;j<P.length;++j){var T=P[j];if(!(o[T]||y&&y[T]||b&&b[T]||v&&v[T])){var $=f(p,T);try{s(t,T,$)}catch(e){}}}}return t}},3303,[3304]);
15716
+ __d(function(g,r,i,a,m,e,d){'use strict';m.exports=r(d[0])},3304,[3305]);
15718
15717
  __d(function(_g,_r,i,_a,_m,_e,_d){
15719
15718
  /** @license React v16.13.1
15720
15719
  * react-is.production.min.js
@@ -15724,100 +15723,101 @@ __d(function(_g,_r,i,_a,_m,_e,_d){
15724
15723
  * This source code is licensed under the MIT license found in the
15725
15724
  * LICENSE file in the root directory of this source tree.
15726
15725
  */
15727
- 'use strict';var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,a=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,d=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function M(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case u:case a:case r:case c:case n:case l:return e;default:switch(e=e&&e.$$typeof){case s:case y:case b:case p:case f:return e;default:return m}}case o:return m}}}function _(e){return M(e)===a}_e.AsyncMode=u,_e.ConcurrentMode=a,_e.ContextConsumer=s,_e.ContextProvider=f,_e.Element=t,_e.ForwardRef=y,_e.Fragment=r,_e.Lazy=b,_e.Memo=p,_e.Portal=o,_e.Profiler=c,_e.StrictMode=n,_e.Suspense=l,_e.isAsyncMode=function(e){return _(e)||M(e)===u},_e.isConcurrentMode=_,_e.isContextConsumer=function(e){return M(e)===s},_e.isContextProvider=function(e){return M(e)===f},_e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},_e.isForwardRef=function(e){return M(e)===y},_e.isFragment=function(e){return M(e)===r},_e.isLazy=function(e){return M(e)===b},_e.isMemo=function(e){return M(e)===p},_e.isPortal=function(e){return M(e)===o},_e.isProfiler=function(e){return M(e)===c},_e.isStrictMode=function(e){return M(e)===n},_e.isSuspense=function(e){return M(e)===l},_e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===a||e===c||e===n||e===l||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===y||e.$$typeof===$||e.$$typeof===d||e.$$typeof===C||e.$$typeof===S)},_e.typeOf=M},3306,[]);
15728
- __d(function(g,r,i,a,m,_e,d){"use strict";const e=["style"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var n=t(r(d[0]));r(d[1]);var u=t(r(d[2])),l=t(r(d[3])),c=t(r(d[4])),f=r(d[5]);function o(t){let{style:l}=t,o=(0,n.default)(t,e);return(0,f.jsx)(c.default.Provider,{value:!0,children:(0,f.jsx)(u.default,Object.assign({style:l??s.container},o))})}const s=l.default.create({container:{flex:1}})},3307,[120,17,20,33,3308,10]);
15729
- __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.createContext(!1)},3308,[17]);
15730
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"tapGestureHandlerProps",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"tapHandlerName",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"TapGestureHandler",{enumerable:!0,get:function(){return o}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},u=r(d[1]);const l=['maxDurationMs','maxDelayMs','numberOfTaps','maxDeltaX','maxDeltaY','maxDist','minPointers'],s='TapGestureHandler',o=(0,n.default)({name:s,allowedProps:[...u.baseGestureHandlerProps,...l],config:{shouldCancelWhenOutside:!0}})},3309,[3310,3265]);
15731
- __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 R}});var t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(_r(_d[0]));_r(_d[1]);var n=e(_r(_d[2]));_r(_d[3]);var r=_r(_d[4]),s=e(_r(_d[5])),o=_r(_d[6]),d=_r(_d[7]),l=_r(_d[8]),h=_r(_d[9]),u=e(_r(_d[10])),p=_r(_d[11]),c=_r(_d[12]);_r(_d[13]);var f=e(_r(_d[14])),v=_r(_d[15]),E=_r(_d[16]);_r(_d[17]);const w=n.default;r.customDirectEventTypes.topGestureHandlerEvent={registrationName:'onGestureHandlerEvent'};const H=Object.assign({onGestureHandlerEvent:{registrationName:'onGestureHandlerEvent'},onGestureHandlerStateChange:{registrationName:'onGestureHandlerStateChange'}},(0,p.isFabric)()&&!1);w.genericDirectEventTypes=Object.assign({},w.genericDirectEventTypes,H);const T=w.getViewManagerConfig?.('getConstants');T&&(T.genericDirectEventTypes=Object.assign({},T.genericDirectEventTypes,H));const{setJSResponder:y=()=>{},clearJSResponder:G=()=>{}}=w;w.setJSResponder=(e,t)=>{s.default.handleSetJSResponder(e,t),y(e,t)},w.clearJSResponder=()=>{s.default.handleClearJSResponder(),G()};let C=!0;function N(e){const t=e=>Array.isArray(e)?e.some(e=>e&&null===e.current):e&&null===e.current;return t(e.simultaneousHandlers)||t(e.waitFor)}const S={[o.State.UNDETERMINED]:void 0,[o.State.BEGAN]:'onBegan',[o.State.FAILED]:'onFailed',[o.State.CANCELLED]:'onCancelled',[o.State.ACTIVE]:'onActivated',[o.State.END]:'onEnded'},D=1;function R({name:e,allowedProps:n=[],config:r={},transformProps:o,customNativeProps:w=[]}){class H extends t.Component{static displayName=e;static contextType=f.default;handlerTag=-1;constructor(e){if(super(e),this.config={},this.propsRef=t.createRef(),this.isMountedRef=t.createRef(),this.state={allowTouches:C},e.id){if(void 0!==d.handlerIDToTag[e.id])throw new Error(`Handler with ID "${e.id}" already registered`);d.handlerIDToTag[e.id]=this.handlerTag}}componentDidMount(){const e=this.props;if(this.isMountedRef.current=!0,N(e)&&(0,v.ghQueueMicrotask)(()=>{this.update(D)}),this.createGestureHandler((0,h.filterConfig)(o?o(this.props):this.props,[...n,...w],r)),!this.viewNode)throw new Error(`[Gesture Handler] Failed to obtain view for ${H.displayName}. Note that old API doesn't support functional components.`);this.attachGestureHandler((0,u.default)(this.viewNode))}componentDidUpdate(){const e=(0,u.default)(this.viewNode);this.viewTag!==e&&this.attachGestureHandler(e),this.update(D)}componentWillUnmount(){this.inspectorToggleListener?.remove(),this.isMountedRef.current=!1,s.default.dropGestureHandler(this.handlerTag),(0,h.scheduleFlushOperations)();const e=this.props.id;e&&delete d.handlerIDToTag[e],E.MountRegistry.gestureHandlerWillUnmount(this)}onGestureHandlerEvent=e=>{e.nativeEvent.handlerTag===this.handlerTag?'function'==typeof this.props.onGestureEvent&&this.props.onGestureEvent?.(e):this.props.onGestureHandlerEvent?.(e)};onGestureHandlerStateChange=e=>{if(e.nativeEvent.handlerTag===this.handlerTag){'function'==typeof this.props.onHandlerStateChange&&this.props.onHandlerStateChange?.(e);const t=e.nativeEvent.state,n=S[t],r=n&&this.props[n];r&&'function'==typeof r&&r(e)}else this.props.onGestureHandlerStateChange?.(e)};refHandler=e=>{this.viewNode=e;const n=t.Children.only(this.props.children),r=(0,p.isReact19)()?n.props?.ref:n?.ref;r&&('function'==typeof r?r(e):r.current=e)};createGestureHandler=t=>{this.handlerTag=(0,l.getNextHandlerTag)(),this.config=t,s.default.createGestureHandler(e,this.handlerTag,t)};attachGestureHandler=e=>{this.viewTag=e,s.default.attachGestureHandler(this.handlerTag,e,c.ActionType.JS_FUNCTION_OLD_API,this.propsRef),(0,h.scheduleFlushOperations)(),(0,v.ghQueueMicrotask)(()=>{E.MountRegistry.gestureHandlerWillMount(this)})};updateGestureHandler=e=>{this.config=e,s.default.updateGestureHandler(this.handlerTag,e),(0,h.scheduleFlushOperations)()};update(e){if(!this.isMountedRef.current)return;if(N(this.props)&&e>0)(0,v.ghQueueMicrotask)(()=>{this.update(e-1)});else{const e=(0,h.filterConfig)(o?o(this.props):this.props,[...n,...w],r);(0,p.deepEqual)(this.config,e)||this.updateGestureHandler(e)}}setNativeProps(e){const t=Object.assign({},this.props,e),s=(0,h.filterConfig)(o?o(t):t,[...n,...w],r);this.updateGestureHandler(s)}render(){let n=this.onGestureHandlerEvent;const{onGestureEvent:r,onGestureHandlerEvent:s}=this.props;if(r&&'function'!=typeof r){if(s)throw new Error('Nesting touch handlers with native animated driver is not supported yet');n=r}else if(s&&'function'!=typeof s)throw new Error('Nesting touch handlers with native animated driver is not supported yet');let o=this.onGestureHandlerStateChange;const{onHandlerStateChange:d,onGestureHandlerStateChange:l}=this.props;if(d&&'function'!=typeof d){if(l)throw new Error('Nesting touch handlers with native animated driver is not supported yet');o=d}else if(l&&'function'!=typeof l)throw new Error('Nesting touch handlers with native animated driver is not supported yet');const h={onGestureHandlerEvent:this.state.allowTouches?n:void 0,onGestureHandlerStateChange:this.state.allowTouches?o:void 0};this.propsRef.current=h;let u=null;try{u=t.Children.only(this.props.children)}catch(t){throw new Error((0,p.tagMessage)(`${e} got more than one view as a child. If you want the gesture to work on multiple views, wrap them with a common parent and attach the gesture to that view.`))}let c=u.props.children;return t.cloneElement(u,Object.assign({ref:this.refHandler,collapsable:!1},(0,p.isTestEnv)()?{handlerType:e,handlerTag:this.handlerTag,enabled:this.props.enabled}:{},{testID:this.props.testID??u.props.testID},h),c)}}return H}},3310,[17,136,95,274,3311,3251,3245,3247,3312,3313,3298,3248,3314,3315,3308,3285,3316,10]);
15732
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"customDirectEventTypes",{enumerable:!0,get:function(){return t}});const t={}},3311,[]);
15733
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.getNextHandlerTag=function(){return t++};let t=1},3312,[]);
15734
- __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.filterConfig=function(t,e,n={}){const o=Object.assign({},n);for(const n of e){let e=t[n];u(e,n)&&('simultaneousHandlers'===n||'waitFor'===n?e=s(t[n]):'hitSlop'===n&&'object'!=typeof e&&(e={top:e,left:e,bottom:e,right:e}),o[n]=e)}return o},_e.transformIntoHandlerTags=s,_e.findNodeHandle=function(t){return t},_e.scheduleFlushOperations=function(){f||(f=!0,(0,o.ghQueueMicrotask)(()=>{n.default.flushOperations(),f=!1}))},r(d[0]);t(r(d[1])),r(d[2]);var e=r(d[3]),n=t(r(d[4])),o=r(d[5]);function u(t,e){return void 0!==t&&(t!==Object(t)||!('__isNative'in t))&&'onHandlerStateChange'!==e&&'onGestureEvent'!==e}function s(t){return(t=(0,e.toArray)(t)).map(({current:t})=>t).filter(t=>t)}let f=!1},3313,[136,122,3247,3248,3251,3285]);
15735
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ActionType",{enumerable:!0,get:function(){return _}});const _={REANIMATED_WORKLET:1,NATIVE_ANIMATED_EVENT:2,JS_FUNCTION_OLD_API:3,JS_FUNCTION_NEW_API:4}},3314,[]);
15736
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.PressabilityDebugView=function(){return null}},3315,[]);
15737
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MountRegistry",{enumerable:!0,get:function(){return t}});class t{static mountListeners=new Set;static unmountListeners=new Set;static addMountListener(t){return this.mountListeners.add(t),()=>{this.mountListeners.delete(t)}}static addUnmountListener(t){return this.unmountListeners.add(t),()=>{this.unmountListeners.delete(t)}}static gestureHandlerWillMount(t){this.mountListeners.forEach(n=>n(t))}static gestureHandlerWillUnmount(t){this.unmountListeners.forEach(n=>n(t))}static gestureWillMount(t){this.mountListeners.forEach(n=>n(t))}static gestureWillUnmount(t){this.unmountListeners.forEach(n=>n(t))}}},3316,[]);
15738
- __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,"forceTouchGestureHandlerProps",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"forceTouchHandlerName",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"ForceTouchGestureHandler",{enumerable:!0,get:function(){return b}});var o=e(r(d[0])),t=r(d[1]),n=e(r(d[2])),c=e(r(d[3])),u=r(d[4]);const l=['minForce','maxForce','feedbackOnActivation'];class s extends o.default.Component{static forceTouchAvailable=!1;componentDidMount(){console.warn((0,t.tagMessage)('ForceTouchGestureHandler is not available on this platform. Please use ForceTouchGestureHandler.forceTouchAvailable to conditionally render other components that would provide a fallback behavior specific to your usecase'))}render(){return this.props.children}}const f='ForceTouchGestureHandler',b=n.default?.forceTouchAvailable?(0,c.default)({name:f,allowedProps:[...u.baseGestureHandlerProps,...l],config:{}}):s;b.forceTouchAvailable=n.default?.forceTouchAvailable||!1},3317,[17,3248,3318,3310,3265]);
15739
- __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 t}});var t={get forceTouchAvailable(){return!1}}},3318,[]);
15740
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"longPressGestureHandlerProps",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"longPressHandlerName",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"LongPressGestureHandler",{enumerable:!0,get:function(){return l}});var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e},s=r(d[1]);const u=['minDurationMs','maxDist','numberOfPointers'],o='LongPressGestureHandler',l=(0,t.default)({name:o,allowedProps:[...s.baseGestureHandlerProps,...u],config:{shouldCancelWhenOutside:!0}})},3319,[3310,3265]);
15741
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"panGestureHandlerProps",{enumerable:!0,get:function(){return n}}),Object.defineProperty(_e,"panGestureHandlerCustomNativeProps",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"panHandlerName",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"PanGestureHandler",{enumerable:!0,get:function(){return c}}),_e.managePanProps=v;var e,t=r(d[0]),f=(e=t)&&e.__esModule?e:{default:e},s=r(d[1]);const n=['activeOffsetY','activeOffsetX','failOffsetY','failOffsetX','minDist','minVelocity','minVelocityX','minVelocityY','minPointers','maxPointers','avgTouches','enableTrackpadTwoFingerGesture','activateAfterLongPress'],O=['activeOffsetYStart','activeOffsetYEnd','activeOffsetXStart','activeOffsetXEnd','failOffsetYStart','failOffsetYEnd','failOffsetXStart','failOffsetXEnd'],l='PanGestureHandler',c=(0,f.default)({name:l,allowedProps:[...s.baseGestureHandlerProps,...n],config:{},transformProps:v,customNativeProps:O});function o(e){const t=Object.assign({},e);return void 0!==e.activeOffsetX&&(delete t.activeOffsetX,Array.isArray(e.activeOffsetX)?(t.activeOffsetXStart=e.activeOffsetX[0],t.activeOffsetXEnd=e.activeOffsetX[1]):e.activeOffsetX<0?t.activeOffsetXStart=e.activeOffsetX:t.activeOffsetXEnd=e.activeOffsetX),void 0!==e.activeOffsetY&&(delete t.activeOffsetY,Array.isArray(e.activeOffsetY)?(t.activeOffsetYStart=e.activeOffsetY[0],t.activeOffsetYEnd=e.activeOffsetY[1]):e.activeOffsetY<0?t.activeOffsetYStart=e.activeOffsetY:t.activeOffsetYEnd=e.activeOffsetY),void 0!==e.failOffsetX&&(delete t.failOffsetX,Array.isArray(e.failOffsetX)?(t.failOffsetXStart=e.failOffsetX[0],t.failOffsetXEnd=e.failOffsetX[1]):e.failOffsetX<0?t.failOffsetXStart=e.failOffsetX:t.failOffsetXEnd=e.failOffsetX),void 0!==e.failOffsetY&&(delete t.failOffsetY,Array.isArray(e.failOffsetY)?(t.failOffsetYStart=e.failOffsetY[0],t.failOffsetYEnd=e.failOffsetY[1]):e.failOffsetY<0?t.failOffsetYStart=e.failOffsetY:t.failOffsetYEnd=e.failOffsetY),t}function v(e){return o(e)}},3320,[3310,3265]);
15742
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"pinchHandlerName",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"PinchGestureHandler",{enumerable:!0,get:function(){return o}});var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e},u=r(d[1]);const l='PinchGestureHandler',o=(0,t.default)({name:l,allowedProps:u.baseGestureHandlerProps,config:{}})},3321,[3310,3265]);
15743
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"rotationHandlerName",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"RotationGestureHandler",{enumerable:!0,get:function(){return l}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},o=r(d[1]);const u='RotationGestureHandler',l=(0,n.default)({name:u,allowedProps:o.baseGestureHandlerProps,config:{}})},3322,[3310,3265]);
15744
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"flingGestureHandlerProps",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"flingHandlerName",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"FlingGestureHandler",{enumerable:!0,get:function(){return f}});var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e},u=r(d[1]);const l=['numberOfPointers','direction'],o='FlingGestureHandler',f=(0,t.default)({name:o,allowedProps:[...u.baseGestureHandlerProps,...l],config:{}})},3323,[3310,3265]);
15745
- __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 l}});var e=r(_d[0]),t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(e),n=r(_d[1]),s=r(_d[2]);const u=[...n.nativeViewProps,'onGestureHandlerEvent','onGestureHandlerStateChange'];function l(l,o={}){const c=t.forwardRef((t,c)=>{const{gestureHandlerProps:d,childProps:p}=Object.keys(t).reduce((e,n)=>(u.includes(n)?e.gestureHandlerProps[n]=t[n]:e.childProps[n]=t[n],e),{gestureHandlerProps:Object.assign({},o),childProps:{enabled:t.enabled,hitSlop:t.hitSlop,testID:t.testID}}),f=(0,e.useRef)(null),b=(0,e.useRef)(null);return(0,e.useImperativeHandle)(c,()=>{const e=b.current;return f.current&&e?(f.current.handlerTag=e.handlerTag,f.current):null},[f,b]),(0,s.jsx)(n.NativeViewGestureHandler,Object.assign({},d,{ref:b,children:(0,s.jsx)(l,Object.assign({},p,{ref:f}))}))});return c.displayName=l?.displayName||l?.render?.name||'string'==typeof l&&l||'ComponentWrapper',c}},3324,[17,3325,10]);
15746
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"nativeViewGestureHandlerProps",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"nativeViewProps",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"nativeViewHandlerName",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"NativeViewGestureHandler",{enumerable:!0,get:function(){return c}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},u=r(d[1]);const o=['shouldActivateOnStart','disallowInterruption'],l=[...u.baseGestureHandlerProps,...o],s='NativeViewGestureHandler',c=(0,n.default)({name:s,allowedProps:l,config:{}})},3325,[3310,3265]);
15747
- __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,"GestureDetector",{enumerable:!0,get:function(){return w}});var t=r(d[0]),n=e(t);r(d[1]);var s=e(r(d[2]));r(d[3]);var u=e(r(d[4])),o=r(d[5]),c=r(d[6]),f=r(d[7]),l=r(d[8]),R=r(d[9]),v=r(d[10]),h=r(d[11]),p=r(d[12]),E=r(d[13]),g=r(d[14]),b=r(d[15]);function H(e,t){const n=['userSelect','enableContextMenu','touchAction'];for(const s of n){const n=e[s];if(void 0!==n)for(const e of t.toGestureArray()){e.config[s]=n}}}const w=e=>{(0,t.useContext)(u.default);if(!e.gesture)throw new Error('GestureDetector must have a gesture prop provided.');const w=e.gesture;H(e,w);const G=(0,t.useMemo)(()=>w.toGestureArray(),[w]),M=G.some(e=>e.shouldUseReanimated),A=(0,R.useWebEventHandlers)(),_=(0,t.useRef)({firstRender:!0,viewRef:null,previousViewTag:-1,forceRebuildReanimatedEvent:!1}).current,y=n.default.useRef({attachedGestures:[],animatedEventHandler:null,animatedHandlers:null,shouldUseReanimated:M,isMounted:!1}).current,j=(0,h.useDetectorUpdater)(_,y,G,w,A),x=(0,p.useViewRefHandler)(_,j),T=_.firstRender||_.forceRebuildReanimatedEvent||(0,f.needsToReattach)(y,G);return _.forceRebuildReanimatedEvent=!1,(0,o.useAnimatedGesture)(y,T),(0,g.useIsomorphicLayoutEffect)(()=>{const e=(0,s.default)(_.viewRef);return y.isMounted=!0,(0,c.attachHandlers)({preparedGesture:y,gestureConfig:w,gesturesToAttach:G,webEventHandlersRef:A,viewTag:e}),()=>{y.isMounted=!1,(0,l.dropHandlers)(y)}},[]),(0,t.useEffect)(()=>{_.firstRender?_.firstRender=!1:j()},[e]),(0,E.useMountReactions)(j,y),M?(0,b.jsx)(v.AnimatedWrap,{ref:x,onGestureHandlerEvent:y.animatedEventHandler,children:e.children}):(0,b.jsx)(v.Wrap,{ref:x,children:e.children})}},3326,[17,136,3298,3248,3308,3327,3330,3333,3334,3331,3335,3336,3338,3340,3341,10]);
15748
- __d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useAnimatedGesture=function(o,E){if(!n.Reanimated)return;const A=n.Reanimated.useSharedValue(null),v=n.Reanimated.useSharedValue([]),L=(function({_worklet_1288419065602_init_data:t,sharedHandlersCallbacks:n,isStateChangeEvent:s,State:u,runWorklet:l,CALLBACK_TYPE:o,lastUpdateEvent:E,isTouchEvent:c,stateControllers:_,GestureStateManager:T,TouchEventType:C,touchEventTypeToCallbackType:i}){const A=function(t){const A=n.value;if(A)for(let n=0;n<A.length;n++){const v=A[n];t.handlerTag===v.handlerTag&&(s(t)?t.oldState===u.UNDETERMINED&&t.state===u.BEGAN?l(o.BEGAN,v,t):t.oldState!==u.BEGAN&&t.oldState!==u.UNDETERMINED||t.state!==u.ACTIVE?t.oldState!==t.state&&t.state===u.END?(t.oldState===u.ACTIVE&&l(o.END,v,t,!0),l(o.FINALIZE,v,t,!0)):t.state!==u.FAILED&&t.state!==u.CANCELLED||t.state===t.oldState||(t.oldState===u.ACTIVE&&l(o.END,v,t,!1),l(o.FINALIZE,v,t,!1)):(l(o.START,v,t),E.value[v.handlerTag]=void 0):c(t)?(_[n]&&_[n].handlerTag===t.handlerTag||(_[n]=T.create(t.handlerTag)),t.eventType!==C.UNDETERMINED&&l(i(t.eventType),v,t,_[n])):(l(o.UPDATE,v,t),v.onChange&&v.changeEventCalculator&&(l(o.CHANGE,v,v.changeEventCalculator?.(t,E.value[v.handlerTag])),E.value[v.handlerTag]=t)))}};return A.__closure={sharedHandlersCallbacks:n,isStateChangeEvent:s,State:u,runWorklet:l,CALLBACK_TYPE:o,lastUpdateEvent:E,isTouchEvent:c,stateControllers:_,GestureStateManager:T,TouchEventType:C,touchEventTypeToCallbackType:i},A.__workletHash=1288419065602,A.__initData=t,A})({_worklet_1288419065602_init_data:i,sharedHandlersCallbacks:A,isStateChangeEvent:T,State:u.State,runWorklet:_,CALLBACK_TYPE:t.CALLBACK_TYPE,lastUpdateEvent:v,isTouchEvent:C,stateControllers:[],GestureStateManager:s.GestureStateManager,TouchEventType:l.TouchEventType,touchEventTypeToCallbackType:c}),h=n.Reanimated.useEvent(L,['onGestureHandlerStateChange','onGestureHandlerEvent'],E);o.animatedEventHandler=h,o.animatedHandlers=A};var t=r(d[0]),n=r(d[1]),s=r(d[2]),u=r(d[3]),l=r(d[4]),o=r(d[5]);const E=(function({_worklet_4317557963300_init_data:t,CALLBACK_TYPE:n}){const s=function(t,s){switch(t){case n.BEGAN:return s.onBegin;case n.START:return s.onStart;case n.UPDATE:return s.onUpdate;case n.CHANGE:return s.onChange;case n.END:return s.onEnd;case n.FINALIZE:return s.onFinalize;case n.TOUCHES_DOWN:return s.onTouchesDown;case n.TOUCHES_MOVE:return s.onTouchesMove;case n.TOUCHES_UP:return s.onTouchesUp;case n.TOUCHES_CANCELLED:return s.onTouchesCancelled}};return s.__closure={CALLBACK_TYPE:n},s.__workletHash=4317557963300,s.__initData=t,s})({_worklet_4317557963300_init_data:{code:"function getHandler_reactNativeGestureHandler_useAnimatedGestureJs1(type,gesture){const{CALLBACK_TYPE}=this.__closure;switch(type){case CALLBACK_TYPE.BEGAN:return gesture.onBegin;case CALLBACK_TYPE.START:return gesture.onStart;case CALLBACK_TYPE.UPDATE:return gesture.onUpdate;case CALLBACK_TYPE.CHANGE:return gesture.onChange;case CALLBACK_TYPE.END:return gesture.onEnd;case CALLBACK_TYPE.FINALIZE:return gesture.onFinalize;case CALLBACK_TYPE.TOUCHES_DOWN:return gesture.onTouchesDown;case CALLBACK_TYPE.TOUCHES_MOVE:return gesture.onTouchesMove;case CALLBACK_TYPE.TOUCHES_UP:return gesture.onTouchesUp;case CALLBACK_TYPE.TOUCHES_CANCELLED:return gesture.onTouchesCancelled;}}"},CALLBACK_TYPE:t.CALLBACK_TYPE}),c=(function({_worklet_2039840524711_init_data:t,TouchEventType:n,CALLBACK_TYPE:s}){const u=function(t){switch(t){case n.TOUCHES_DOWN:return s.TOUCHES_DOWN;case n.TOUCHES_MOVE:return s.TOUCHES_MOVE;case n.TOUCHES_UP:return s.TOUCHES_UP;case n.TOUCHES_CANCELLED:return s.TOUCHES_CANCELLED}return s.UNDEFINED};return u.__closure={TouchEventType:n,CALLBACK_TYPE:s},u.__workletHash=2039840524711,u.__initData=t,u})({_worklet_2039840524711_init_data:{code:"function touchEventTypeToCallbackType_reactNativeGestureHandler_useAnimatedGestureJs2(eventType){const{TouchEventType,CALLBACK_TYPE}=this.__closure;switch(eventType){case TouchEventType.TOUCHES_DOWN:return CALLBACK_TYPE.TOUCHES_DOWN;case TouchEventType.TOUCHES_MOVE:return CALLBACK_TYPE.TOUCHES_MOVE;case TouchEventType.TOUCHES_UP:return CALLBACK_TYPE.TOUCHES_UP;case TouchEventType.TOUCHES_CANCELLED:return CALLBACK_TYPE.TOUCHES_CANCELLED;}return CALLBACK_TYPE.UNDEFINED;}"},TouchEventType:l.TouchEventType,CALLBACK_TYPE:t.CALLBACK_TYPE}),_=(function({_worklet_5108402624264_init_data:t,getHandler:n,tagMessage:s}){const u=function(t,u,l,...o){const E=n(t,u);u.isWorklet[t]?E?.(l,...o):E&&console.warn(s('Animated gesture callback must be a worklet'))};return u.__closure={getHandler:n,tagMessage:s},u.__workletHash=5108402624264,u.__initData=t,u})({_worklet_5108402624264_init_data:{code:"function runWorklet_reactNativeGestureHandler_useAnimatedGestureJs3(type,gesture,event,...args){const{getHandler,tagMessage}=this.__closure;const handler=getHandler(type,gesture);if(gesture.isWorklet[type]){handler===null||handler===void 0||handler(event,...args);}else if(handler){console.warn(tagMessage('Animated gesture callback must be a worklet'));}}"},getHandler:E,tagMessage:o.tagMessage}),T=(function({_worklet_7889847699524_init_data:t}){const n=function(t){return null!=t.oldState};return n.__closure={},n.__workletHash=7889847699524,n.__initData=t,n})({_worklet_7889847699524_init_data:{code:"function isStateChangeEvent_reactNativeGestureHandler_useAnimatedGestureJs4(event){return event.oldState!=null;}"}}),C=(function({_worklet_13087507825621_init_data:t}){const n=function(t){return null!=t.eventType};return n.__closure={},n.__workletHash=0xbe72c4143d5,n.__initData=t,n})({_worklet_13087507825621_init_data:{code:"function isTouchEvent_reactNativeGestureHandler_useAnimatedGestureJs5(event){return event.eventType!=null;}"}}),i={code:"function reactNativeGestureHandler_useAnimatedGestureJs6(event){const{sharedHandlersCallbacks,isStateChangeEvent,State,runWorklet,CALLBACK_TYPE,lastUpdateEvent,isTouchEvent,stateControllers,GestureStateManager,TouchEventType,touchEventTypeToCallbackType}=this.__closure;const currentCallback=sharedHandlersCallbacks.value;if(!currentCallback){return;}for(let i=0;i<currentCallback.length;i++){const gesture=currentCallback[i];if(event.handlerTag!==gesture.handlerTag){continue;}if(isStateChangeEvent(event)){if(event.oldState===State.UNDETERMINED&&event.state===State.BEGAN){runWorklet(CALLBACK_TYPE.BEGAN,gesture,event);}else if((event.oldState===State.BEGAN||event.oldState===State.UNDETERMINED)&&event.state===State.ACTIVE){runWorklet(CALLBACK_TYPE.START,gesture,event);lastUpdateEvent.value[gesture.handlerTag]=undefined;}else if(event.oldState!==event.state&&event.state===State.END){if(event.oldState===State.ACTIVE){runWorklet(CALLBACK_TYPE.END,gesture,event,true);}runWorklet(CALLBACK_TYPE.FINALIZE,gesture,event,true);}else if((event.state===State.FAILED||event.state===State.CANCELLED)&&event.state!==event.oldState){if(event.oldState===State.ACTIVE){runWorklet(CALLBACK_TYPE.END,gesture,event,false);}runWorklet(CALLBACK_TYPE.FINALIZE,gesture,event,false);}}else if(isTouchEvent(event)){if(!stateControllers[i]||stateControllers[i].handlerTag!==event.handlerTag){stateControllers[i]=GestureStateManager.create(event.handlerTag);}if(event.eventType!==TouchEventType.UNDETERMINED){runWorklet(touchEventTypeToCallbackType(event.eventType),gesture,event,stateControllers[i]);}}else{runWorklet(CALLBACK_TYPE.UPDATE,gesture,event);if(gesture.onChange&&gesture.changeEventCalculator){var _gesture$changeEventC;runWorklet(CALLBACK_TYPE.CHANGE,gesture,(_gesture$changeEventC=gesture.changeEventCalculator)===null||_gesture$changeEventC===void 0?void 0:_gesture$changeEventC.call(gesture,event,lastUpdateEvent.value[gesture.handlerTag]));lastUpdateEvent.value[gesture.handlerTag]=event;}}}}"}},3327,[3328,3329,3249,3245,3246,3248]);
15749
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"CALLBACK_TYPE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"Gesture",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"BaseGesture",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"ContinousBaseGesture",{enumerable:!0,get:function(){return u}});var t=r(d[0]),s=r(d[1]);const n={UNDEFINED:0,BEGAN:1,START:2,UPDATE:3,CHANGE:4,END:5,FINALIZE:6,TOUCHES_DOWN:7,TOUCHES_MOVE:8,TOUCHES_UP:9,TOUCHES_CANCELLED:10};class h{}let o=0;class l extends h{gestureId=-1;handlerTag=-1;handlerName='';config={};handlers={gestureId:-1,handlerTag:-1,isWorklet:[]};constructor(){super(),this.gestureId=o++,this.handlers.gestureId=this.gestureId}addDependency(t,s){const n=this.config[t];this.config[t]=n?Array().concat(n,s):[s]}withRef(t){return this.config.ref=t,this}isWorklet(t){return void 0!==t.__workletHash}onBegin(t){return this.handlers.onBegin=t,this.handlers.isWorklet[n.BEGAN]=this.isWorklet(t),this}onStart(t){return this.handlers.onStart=t,this.handlers.isWorklet[n.START]=this.isWorklet(t),this}onEnd(t){return this.handlers.onEnd=t,this.handlers.isWorklet[n.END]=this.isWorklet(t),this}onFinalize(t){return this.handlers.onFinalize=t,this.handlers.isWorklet[n.FINALIZE]=this.isWorklet(t),this}onTouchesDown(t){return this.config.needsPointerData=!0,this.handlers.onTouchesDown=t,this.handlers.isWorklet[n.TOUCHES_DOWN]=this.isWorklet(t),this}onTouchesMove(t){return this.config.needsPointerData=!0,this.handlers.onTouchesMove=t,this.handlers.isWorklet[n.TOUCHES_MOVE]=this.isWorklet(t),this}onTouchesUp(t){return this.config.needsPointerData=!0,this.handlers.onTouchesUp=t,this.handlers.isWorklet[n.TOUCHES_UP]=this.isWorklet(t),this}onTouchesCancelled(t){return this.config.needsPointerData=!0,this.handlers.onTouchesCancelled=t,this.handlers.isWorklet[n.TOUCHES_CANCELLED]=this.isWorklet(t),this}enabled(t){return this.config.enabled=t,this}shouldCancelWhenOutside(t){return this.config.shouldCancelWhenOutside=t,this}hitSlop(t){return this.config.hitSlop=t,this}activeCursor(t){return this.config.activeCursor=t,this}mouseButton(t){return this.config.mouseButton=t,this}runOnJS(t){return this.config.runOnJS=t,this}simultaneousWithExternalGesture(...t){for(const s of t)s&&this.addDependency('simultaneousWith',s);return this}requireExternalGestureToFail(...t){for(const s of t)s&&this.addDependency('requireToFail',s);return this}blocksExternalGesture(...t){for(const s of t)s&&this.addDependency('blocksHandlers',s);return this}withTestId(t){return this.config.testId=t,this}cancelsTouchesInView(t){return this.config.cancelsTouchesInView=t,this}initialize(){this.handlerTag=(0,t.getNextHandlerTag)(),this.handlers=Object.assign({},this.handlers,{handlerTag:this.handlerTag}),this.config.ref&&(this.config.ref.current=this)}toGestureArray(){return[this]}prepare(){}get shouldUseReanimated(){return!0!==this.config.runOnJS&&!this.handlers.isWorklet.includes(!1)&&!(0,s.isRemoteDebuggingEnabled)()}}class u extends l{onUpdate(t){return this.handlers.onUpdate=t,this.handlers.isWorklet[n.UPDATE]=this.isWorklet(t),this}onChange(t){return this.handlers.onChange=t,this.handlers.isWorklet[n.CHANGE]=this.isWorklet(t),this}manualActivation(t){return this.config.manualActivation=t,this}}},3328,[3312,3248]);
15750
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Reanimated",{enumerable:!0,get:function(){return t}});var e=r(d[0]);let t;try{t=r(d[1],"react-native-reanimated")}catch(e){t=void 0}t?.useSharedValue||(t=void 0);const s={code:"function reactNativeGestureHandler_reanimatedWrapperJs1(){const{tagMessage}=this.__closure;console.warn(tagMessage('Please use newer version of react-native-reanimated in order to control state of the gestures.'));}"};void 0===t||t.setGestureState||(t.setGestureState=(function({_worklet_7298969188432_init_data:e,tagMessage:t}){const s=function(){console.warn(t('Please use newer version of react-native-reanimated in order to control state of the gestures.'))};return s.__closure={tagMessage:t},s.__workletHash=7298969188432,s.__initData=e,s})({_worklet_7298969188432_init_data:s,tagMessage:e.tagMessage}))},3329,[3248,2714]);
15751
- __d(function(_g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.attachHandlers=function({preparedGesture:e,gestureConfig:n,gesturesToAttach:g,viewTag:h,webEventHandlersRef:_}){n.initialize(),(0,u.ghQueueMicrotask)(()=>{e.isMounted&&n.prepare()});for(const e of g)(0,c.checkGestureCallbacksForWorklets)(e),s.default.createGestureHandler(e.handlerName,e.handlerTag,(0,o.filterConfig)(e.config,c.ALLOWED_PROPS)),(0,t.registerHandler)(e.handlerTag,e,e.config.testId);(0,u.ghQueueMicrotask)(()=>{if(e.isMounted){for(const e of g)s.default.updateGestureHandler(e.handlerTag,(0,o.filterConfig)(e.config,c.ALLOWED_PROPS,(0,c.extractGestureRelations)(e)));(0,o.scheduleFlushOperations)()}});for(const e of g){e.shouldUseReanimated?l.ActionType.REANIMATED_WORKLET:l.ActionType.JS_FUNCTION_NEW_API;s.default.attachGestureHandler(e.handlerTag,h,l.ActionType.JS_FUNCTION_OLD_API,_),f.MountRegistry.gestureWillMount(e)}if(e.attachedGestures=g,e.animatedHandlers){const t=e=>e.shouldUseReanimated;e.animatedHandlers.value=g.filter(t).map(e=>e.handlers)}};var e,t=r(d[0]),n=r(d[1]),s=(e=n)&&e.__esModule?e:{default:e},o=r(d[2]),l=r(d[3]);r(d[4]);var u=r(d[5]),c=r(d[6]),f=r(d[7])},3330,[3247,3251,3313,3314,136,3285,3331,3316]);
15752
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"ALLOWED_PROPS",{enumerable:!0,get:function(){return G}}),_e.extractGestureRelations=function(e){return e.config.requireToFail=P(e.config.requireToFail),e.config.simultaneousWith=P(e.config.simultaneousWith),e.config.blocksHandlers=P(e.config.blocksHandlers),{waitFor:e.config.requireToFail,simultaneousHandlers:e.config.simultaneousWith,blocksHandlers:e.config.blocksHandlers}},_e.checkGestureCallbacksForWorklets=function(e){return},_e.useForceRender=function(){const[n,t]=(0,e.useState)(!1);return(0,e.useCallback)(()=>{t(!n)},[n,t])},_e.useWebEventHandlers=function(){return(0,e.useRef)({onGestureHandlerEvent:e=>{(0,p.onGestureHandlerEvent)(e.nativeEvent)},onGestureHandlerStateChange:(0,H.isNewWebImplementationEnabled)()?e=>{(0,p.onGestureHandlerEvent)(e.nativeEvent)}:void 0})};var e=r(d[0]),n=(r(d[1]),r(d[2])),t=r(d[3]),o=r(d[4]),s=r(d[5]),u=r(d[6]),l=r(d[7]),c=r(d[8]),f=r(d[9]),_=r(d[10]),H=r(d[11]),p=(r(d[12]),r(d[13]));const G=[..._.baseGestureHandlerWithDetectorProps,...l.tapGestureHandlerProps,...u.panGestureHandlerProps,...u.panGestureHandlerCustomNativeProps,...s.longPressGestureHandlerProps,...o.forceTouchGestureHandlerProps,...t.flingGestureHandlerProps,...c.hoverGestureHandlerProps,...f.nativeViewGestureHandlerProps],b=(function({_worklet_15931153665387_init_data:e}){const n=function(){};return n.__closure={},n.__workletHash=0xe7d42c14d6b,n.__initData=e,n})({_worklet_15931153665387_init_data:{code:"function emptyWorklet_reactNativeGestureHandler_utilsJs1(){}"}});b.__workletHash;function v(e){return'number'==typeof e?e:e instanceof n.BaseGesture?e.handlerTag:e.current?.handlerTag??-1}function P(e){return Array.from(new Set(e?.map(v)?.filter(e=>e>0)??[]))}},3331,[17,3248,3328,3323,3317,3319,3320,3309,3332,3325,3265,3252,3329,3244]);
15753
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"HoverEffect",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"hoverGestureHandlerProps",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"HoverGesture",{enumerable:!0,get:function(){return u}});var n=r(d[0]);let t=(function(n){return n[n.NONE=0]="NONE",n[n.LIFT=1]="LIFT",n[n.HIGHLIGHT=2]="HIGHLIGHT",n})({});const c=['hoverEffect'],o=(function({_worklet_15895574323364_init_data:n}){const t=function(n,t){let c;return c=void 0===t?{changeX:n.x,changeY:n.y}:{changeX:n.x-t.x,changeY:n.y-t.y},Object.assign({},n,c)};return t.__closure={},t.__workletHash=0xe74fa0fa0a4,t.__initData=n,t})({_worklet_15895574323364_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_hoverGestureJs1(current,previous){let changePayload;if(previous===undefined){changePayload={changeX:current.x,changeY:current.y};}else{changePayload={changeX:current.x-previous.x,changeY:current.y-previous.y};}return{...current,...changePayload};}"}});class u extends n.ContinousBaseGesture{config={};constructor(){super(),this.handlerName='HoverGestureHandler'}effect(n){return this.config.hoverEffect=n,this}onChange(n){return this.handlers.changeEventCalculator=o,super.onChange(n)}}},3332,[3328]);
15754
- __d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.needsToReattach=function(t,n){if(n.length!==t.attachedGestures.length)return!0;for(let s=0;s<n.length;s++)if(n[s].handlerName!==t.attachedGestures[s].handlerName||n[s].shouldUseReanimated!==t.attachedGestures[s].shouldUseReanimated)return!0;return!1}},3333,[]);
15755
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.dropHandlers=function(e){for(const n of e.attachedGestures)s.default.dropGestureHandler(n.handlerTag),(0,t.unregisterHandler)(n.handlerTag,n.config.testId),l.MountRegistry.gestureWillUnmount(n);(0,u.scheduleFlushOperations)()};var e,t=r(d[0]),n=r(d[1]),s=(e=n)&&e.__esModule?e:{default:e},u=r(d[2]),l=r(d[3])},3334,[3247,3251,3313,3316]);
15756
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Wrap",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"AnimatedWrap",{enumerable:!0,get:function(){return s}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},o=r(d[1]),u=r(d[2]),c=r(d[3]);const l=(0,t.forwardRef)(({children:e},t)=>{try{const o=n.default.Children.only(e);if((0,u.isRNSVGNode)(o)){return n.default.cloneElement(o,{ref:t},o.props.children)}return(0,c.jsx)("div",{ref:t,style:{display:'contents'},children:o})}catch(e){throw new Error((0,o.tagMessage)("GestureDetector got more than one view as a child. If you want the gesture to work on multiple views, wrap them with a common parent and attach the gesture to that view."))}}),s=l},3335,[17,3248,3275,10]);
15757
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useDetectorUpdater=function(e,c,p,v,R){const _=(0,f.useForceRender)();return(0,t.useCallback)(t=>{const f=(0,l.default)(e.viewRef),w=f!==e.previousViewTag;w||(0,n.needsToReattach)(c,p)?((0,o.dropHandlers)(c),(0,s.attachHandlers)({preparedGesture:c,gestureConfig:v,gesturesToAttach:p,webEventHandlersRef:R,viewTag:f}),w&&(e.previousViewTag=f,e.forceRebuildReanimatedEvent=!0,_())):t||(0,u.updateHandlers)(c,v,p)},[_,v,p,c,e,R])};var e,t=r(d[0]),s=r(d[1]),u=r(d[2]),n=r(d[3]),o=r(d[4]),c=r(d[5]),l=(e=c)&&e.__esModule?e:{default:e},f=r(d[6])},3336,[17,3330,3337,3333,3334,3298,3331]);
15758
- __d(function(_g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.updateHandlers=function(e,n,o){n.prepare();for(let t=0;t<o.length;t++){const n=e.attachedGestures[t];(0,h.checkGestureCallbacksForWorklets)(n),o[t].handlerTag!==n.handlerTag&&(o[t].handlerTag=n.handlerTag,o[t].handlers.handlerTag=n.handlerTag)}const i=e.attachedGestures;(0,u.ghQueueMicrotask)(()=>{if(!e.isMounted)return;if(i!==e.attachedGestures)return;let n=i.length!==o.length;for(let e=0;e<o.length;e++){const u=i[e];u.handlers.gestureId!==o[e].handlers.gestureId&&(o[e].shouldUseReanimated||u.shouldUseReanimated)&&(n=!0),u.config=o[e].config,u.handlers=o[e].handlers,s.default.updateGestureHandler(u.handlerTag,(0,l.filterConfig)(u.config,h.ALLOWED_PROPS,(0,h.extractGestureRelations)(u))),(0,t.registerHandler)(u.handlerTag,u,u.config.testId)}if(e.animatedHandlers&&n){const t=i.filter(e=>e.shouldUseReanimated).map(e=>e.handlers);e.animatedHandlers.value=t}(0,l.scheduleFlushOperations)()})};var e,t=r(d[0]),n=r(d[1]),s=(e=n)&&e.__esModule?e:{default:e},l=r(d[2]),u=r(d[3]),h=r(d[4])},3337,[3247,3251,3313,3285,3331]);
15759
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useViewRefHandler=function(e,l){return(0,u.useCallback)(u=>{null!==u&&(e.viewRef=u,-1===e.previousViewTag&&(e.previousViewTag=(0,t.default)(e.viewRef)),e.firstRender||l(!0))},[e,l])},r(d[0]),r(d[1]);var e,u=r(d[2]),l=r(d[3]),t=(e=l)&&e.__esModule?e:{default:e}},3338,[3248,3339,17,3298]);
15760
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.getShadowNodeFromRef=function(t){return null}},3339,[]);
15761
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useMountReactions=function(n,u){(0,o.useEffect)(()=>t.MountRegistry.addMountListener(t=>{for(const o of u.attachedGestures){const u=o.config.blocksHandlers,f=o.config.requireToFail,c=o.config.simultaneousWith;if(s(u,t)||s(f,t)||s(c,t))return void n()}}),[n,u])};var n=r(d[0]),t=r(d[1]),o=r(d[2]);function s(t,o){if(void 0===t)return!1;for(const s of(0,n.transformIntoHandlerTags)(t))if(s===o.handlerTag)return!0;return!1}},3340,[3313,3316,17]);
15762
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useIsomorphicLayoutEffect",{enumerable:!0,get:function(){return f}});var e,t=r(d[0]),o=(e=t)&&e.__esModule?e:{default:e};const n=!('undefined'==typeof window||void 0===window.document||void 0===window.document.createElement),u='undefined'!=typeof navigator&&'ReactNative'===navigator.product,f=n||u?o.default.useLayoutEffect:o.default.useEffect},3341,[17]);
15763
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GestureObjects",{enumerable:!0,get:function(){return p}});var n=r(d[0]),t=r(d[1]),u=r(d[2]),s=r(d[3]),o=r(d[4]),c=r(d[5]),G=r(d[6]),w=r(d[7]),l=r(d[8]),v=r(d[9]),P=r(d[10]);const p={Tap:()=>new w.TapGesture,Pan:()=>new o.PanGesture,Pinch:()=>new c.PinchGesture,Rotation:()=>new G.RotationGesture,Fling:()=>new n.FlingGesture,LongPress:()=>new s.LongPressGesture,ForceTouch:()=>new t.ForceTouchGesture,Native:()=>new l.NativeGesture,Manual:()=>new v.ManualGesture,Hover:()=>new P.HoverGesture,Race:(...n)=>new u.ComposedGesture(...n),Simultaneous:(...n)=>new u.SimultaneousGesture(...n),Exclusive:(...n)=>new u.ExclusiveGesture(...n)}},3342,[3343,3344,3345,3346,3347,3348,3349,3350,3351,3352,3332]);
15764
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FlingGesture",{enumerable:!0,get:function(){return n}});var t=r(d[0]);class n extends t.BaseGesture{config={};constructor(){super(),this.handlerName='FlingGestureHandler'}numberOfPointers(t){return this.config.numberOfPointers=t,this}direction(t){return this.config.direction=t,this}}},3343,[3328]);
15765
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ForceTouchGesture",{enumerable:!0,get:function(){return c}});var n=r(d[0]);const t=(function({_worklet_6555184671956_init_data:n}){const t=function(n,t){let c;return c=void 0===t?{forceChange:n.force}:{forceChange:n.force-t.force},Object.assign({},n,c)};return t.__closure={},t.__workletHash=6555184671956,t.__initData=n,t})({_worklet_6555184671956_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_forceTouchGestureJs1(current,previous){let changePayload;if(previous===undefined){changePayload={forceChange:current.force};}else{changePayload={forceChange:current.force-previous.force};}return{...current,...changePayload};}"}});class c extends n.ContinousBaseGesture{config={};constructor(){super(),this.handlerName='ForceTouchGestureHandler'}minForce(n){return this.config.minForce=n,this}maxForce(n){return this.config.maxForce=n,this}feedbackOnActivation(n){return this.config.feedbackOnActivation=n,this}onChange(n){return this.handlers.changeEventCalculator=t,super.onChange(n)}}},3344,[3328]);
15766
- __d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ComposedGesture",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"SimultaneousGesture",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"ExclusiveGesture",{enumerable:!0,get:function(){return n}});var s=r(d[0]);function t(s,t){return void 0===s?[...t]:[...s,...t]}class u extends s.Gesture{gestures=[];simultaneousGestures=[];requireGesturesToFail=[];constructor(...s){super(),this.gestures=s}prepareSingleGesture(i,n,o){if(i instanceof s.BaseGesture){const s=Object.assign({},i.config);s.simultaneousWith=t(s.simultaneousWith,n),s.requireToFail=t(s.requireToFail,o),i.config=s}else i instanceof u&&(i.simultaneousGestures=n,i.requireGesturesToFail=o,i.prepare())}prepare(){for(const s of this.gestures)this.prepareSingleGesture(s,this.simultaneousGestures,this.requireGesturesToFail)}initialize(){for(const s of this.gestures)s.initialize()}toGestureArray(){return this.gestures.flatMap(s=>s.toGestureArray())}}class i extends u{prepare(){const s=this.gestures.map(s=>this.gestures.filter(t=>t!==s).flatMap(s=>s.toGestureArray()));for(let t=0;t<this.gestures.length;t++)this.prepareSingleGesture(this.gestures[t],s[t],this.requireGesturesToFail)}}class n extends u{prepare(){const s=this.gestures.map(s=>s.toGestureArray());let t=[];for(let u=0;u<this.gestures.length;u++)this.prepareSingleGesture(this.gestures[u],this.simultaneousGestures,this.requireGesturesToFail.concat(t)),t=t.concat(s[u])}}},3345,[3328]);
15767
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LongPressGesture",{enumerable:!0,get:function(){return n}});var t=r(d[0]);class n extends t.BaseGesture{config={};constructor(){super(),this.handlerName='LongPressGestureHandler',this.shouldCancelWhenOutside(!0)}minDuration(t){return this.config.minDurationMs=t,this}maxDistance(t){return this.config.maxDist=t,this}numberOfPointers(t){return this.config.numberOfPointers=t,this}}},3346,[3328]);
15768
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PanGesture",{enumerable:!0,get:function(){return s}});var t=r(d[0]);const n=(function({_worklet_6591024890621_init_data:t}){const n=function(t,n){let s;return s=void 0===n?{changeX:t.translationX,changeY:t.translationY}:{changeX:t.translationX-n.translationX,changeY:t.translationY-n.translationY},Object.assign({},t,s)};return n.__closure={},n.__workletHash=6591024890621,n.__initData=t,n})({_worklet_6591024890621_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_panGestureJs1(current,previous){let changePayload;if(previous===undefined){changePayload={changeX:current.translationX,changeY:current.translationY};}else{changePayload={changeX:current.translationX-previous.translationX,changeY:current.translationY-previous.translationY};}return{...current,...changePayload};}"}});class s extends t.ContinousBaseGesture{config={};constructor(){super(),this.handlerName='PanGestureHandler'}activeOffsetY(t){return Array.isArray(t)?(this.config.activeOffsetYStart=t[0],this.config.activeOffsetYEnd=t[1]):t<0?this.config.activeOffsetYStart=t:this.config.activeOffsetYEnd=t,this}activeOffsetX(t){return Array.isArray(t)?(this.config.activeOffsetXStart=t[0],this.config.activeOffsetXEnd=t[1]):t<0?this.config.activeOffsetXStart=t:this.config.activeOffsetXEnd=t,this}failOffsetY(t){return Array.isArray(t)?(this.config.failOffsetYStart=t[0],this.config.failOffsetYEnd=t[1]):t<0?this.config.failOffsetYStart=t:this.config.failOffsetYEnd=t,this}failOffsetX(t){return Array.isArray(t)?(this.config.failOffsetXStart=t[0],this.config.failOffsetXEnd=t[1]):t<0?this.config.failOffsetXStart=t:this.config.failOffsetXEnd=t,this}minPointers(t){return this.config.minPointers=t,this}maxPointers(t){return this.config.maxPointers=t,this}minDistance(t){return this.config.minDist=t,this}minVelocity(t){return this.config.minVelocity=t,this}minVelocityX(t){return this.config.minVelocityX=t,this}minVelocityY(t){return this.config.minVelocityY=t,this}averageTouches(t){return this.config.avgTouches=t,this}enableTrackpadTwoFingerGesture(t){return this.config.enableTrackpadTwoFingerGesture=t,this}activateAfterLongPress(t){return this.config.activateAfterLongPress=t,this}onChange(t){return this.handlers.changeEventCalculator=n,super.onChange(t)}}},3347,[3328]);
15769
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PinchGesture",{enumerable:!0,get:function(){return c}});var n=r(d[0]);const t=(function({_worklet_168466708215_init_data:n}){const t=function(n,t){let c;return c=void 0===t?{scaleChange:n.scale}:{scaleChange:n.scale/t.scale},Object.assign({},n,c)};return t.__closure={},t.__workletHash=168466708215,t.__initData=n,t})({_worklet_168466708215_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_pinchGestureJs1(current,previous){let changePayload;if(previous===undefined){changePayload={scaleChange:current.scale};}else{changePayload={scaleChange:current.scale/previous.scale};}return{...current,...changePayload};}"}});class c extends n.ContinousBaseGesture{constructor(){super(),this.handlerName='PinchGestureHandler'}onChange(n){return this.handlers.changeEventCalculator=t,super.onChange(n)}}},3348,[3328]);
15770
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"RotationGesture",{enumerable:!0,get:function(){return o}});var t=r(d[0]);const n=(function({_worklet_3631609729009_init_data:t}){const n=function(t,n){let o;return o=void 0===n?{rotationChange:t.rotation}:{rotationChange:t.rotation-n.rotation},Object.assign({},t,o)};return n.__closure={},n.__workletHash=3631609729009,n.__initData=t,n})({_worklet_3631609729009_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_rotationGestureJs1(current,previous){let changePayload;if(previous===undefined){changePayload={rotationChange:current.rotation};}else{changePayload={rotationChange:current.rotation-previous.rotation};}return{...current,...changePayload};}"}});class o extends t.ContinousBaseGesture{constructor(){super(),this.handlerName='RotationGestureHandler'}onChange(t){return this.handlers.changeEventCalculator=n,super.onChange(t)}}},3349,[3328]);
15771
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"TapGesture",{enumerable:!0,get:function(){return n}});var t=r(d[0]);class n extends t.BaseGesture{config={};constructor(){super(),this.handlerName='TapGestureHandler',this.shouldCancelWhenOutside(!0)}minPointers(t){return this.config.minPointers=t,this}numberOfTaps(t){return this.config.numberOfTaps=t,this}maxDistance(t){return this.config.maxDist=t,this}maxDuration(t){return this.config.maxDurationMs=t,this}maxDelay(t){return this.config.maxDelayMs=t,this}maxDeltaX(t){return this.config.maxDeltaX=t,this}maxDeltaY(t){return this.config.maxDeltaY=t,this}}},3350,[3328]);
15772
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"NativeGesture",{enumerable:!0,get:function(){return n}});var t=r(d[0]);class n extends t.BaseGesture{config={};constructor(){super(),this.handlerName='NativeViewGestureHandler'}shouldActivateOnStart(t){return this.config.shouldActivateOnStart=t,this}disallowInterruption(t){return this.config.disallowInterruption=t,this}}},3351,[3328]);
15773
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ManualGesture",{enumerable:!0,get:function(){return u}});var t=r(d[0]);const n=(function({_worklet_8341633256781_init_data:t}){const n=function(t,n){return t};return n.__closure={},n.__workletHash=8341633256781,n.__initData=t,n})({_worklet_8341633256781_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_manualGestureJs1(current,_previous){return current;}"}});class u extends t.ContinousBaseGesture{constructor(){super(),this.handlerName='ManualGestureHandler'}onChange(t){return this.handlers.changeEventCalculator=n,super.onChange(t)}}},3352,[3328]);
15774
- __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["rippleColor","style"],t=["children","style"],s=["children","style","innerRef"];function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"PureNativeButton",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(_e,"RawButton",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"BaseButton",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"RectButton",{enumerable:!0,get:function(){return E}}),Object.defineProperty(_e,"BorderlessButton",{enumerable:!0,get:function(){return T}});var o=n(r(_d[0])),l=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(s){var n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:function(){return e[s]}})}),t.default=e,t})(r(_d[1])),c=n(r(_d[2]));r(_d[3]);var u=n(r(_d[4])),d=n(r(_d[5])),p=n(r(_d[6])),h=n(r(_d[7])),f=r(_d[8]),v=r(_d[9]),b=r(_d[10]);const y=(0,p.default)(h.default,{shouldCancelWhenOutside:!1,shouldActivateOnStart:!1});let C=null;class P extends l.Component{static defaultProps={delayLongPress:600};constructor(e){super(e),this.lastActive=!1,this.longPressDetected=!1}handleEvent=({nativeEvent:e})=>{const{state:t,oldState:s,pointerInside:n}=e,o=n&&t===f.State.ACTIVE;o!==this.lastActive&&this.props.onActiveStateChange&&this.props.onActiveStateChange(o),!this.longPressDetected&&s===f.State.ACTIVE&&t!==f.State.CANCELLED&&this.lastActive&&this.props.onPress&&this.props.onPress(n),!this.lastActive&&t===f.State.ACTIVE&&n?(this.longPressDetected=!1,this.props.onLongPress&&(this.longPressTimeout=setTimeout(this.onLongPress,this.props.delayLongPress))):(t!==f.State.ACTIVE||n||void 0===this.longPressTimeout)&&(void 0===this.longPressTimeout||t!==f.State.END&&t!==f.State.CANCELLED&&t!==f.State.FAILED)||(clearTimeout(this.longPressTimeout),this.longPressTimeout=void 0),this.lastActive=o};onLongPress=()=>{this.longPressDetected=!0,this.props.onLongPress?.()};onHandlerStateChange=e=>{this.props.onHandlerStateChange?.(e),this.handleEvent(e)};onGestureEvent=e=>{this.props.onGestureEvent?.(e),this.handleEvent(e)};render(){const t=this.props,{rippleColor:s,style:n}=t,l=(0,o.default)(t,e);null===C&&(C=(0,v.isFabric)());const c=C?s:(0,u.default)(s??void 0);return(0,b.jsx)(y,Object.assign({ref:this.props.innerRef,rippleColor:c,style:[n,!1]},l,{onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.onHandlerStateChange}))}}const R=c.default.createAnimatedComponent(P),j=l.forwardRef((e,t)=>(0,b.jsx)(P,Object.assign({innerRef:t},e))),A=l.forwardRef((e,t)=>(0,b.jsx)(R,Object.assign({innerRef:t},e))),S=d.default.create({underlay:{position:'absolute',left:0,right:0,bottom:0,top:0}});class O extends l.Component{static defaultProps={activeOpacity:.105,underlayColor:'black'};constructor(e){super(e),this.opacity=new c.default.Value(0)}onActiveStateChange=e=>{this.opacity.setValue(e?this.props.activeOpacity:0),this.props.onActiveStateChange?.(e)};render(){const e=this.props,{children:s,style:n}=e,l=(0,o.default)(e,t),u=d.default.flatten(n)??{};return(0,b.jsxs)(j,Object.assign({},l,{ref:this.props.innerRef,style:u,onActiveStateChange:this.onActiveStateChange,children:[(0,b.jsx)(c.default.View,{style:[S.underlay,{opacity:this.opacity,backgroundColor:this.props.underlayColor,borderRadius:u.borderRadius,borderTopLeftRadius:u.borderTopLeftRadius,borderTopRightRadius:u.borderTopRightRadius,borderBottomLeftRadius:u.borderBottomLeftRadius,borderBottomRightRadius:u.borderBottomRightRadius}]}),s]}))}}const E=l.forwardRef((e,t)=>(0,b.jsx)(O,Object.assign({innerRef:t},e)));class L extends l.Component{static defaultProps={activeOpacity:.3,borderless:!0};constructor(e){super(e),this.opacity=new c.default.Value(1)}onActiveStateChange=e=>{this.opacity.setValue(e?this.props.activeOpacity:1),this.props.onActiveStateChange?.(e)};render(){const e=this.props,{children:t,style:n,innerRef:l}=e,c=(0,o.default)(e,s);return(0,b.jsx)(A,Object.assign({},c,{innerRef:l,onActiveStateChange:this.onActiveStateChange,style:[n,!1],children:t}))}}const T=l.forwardRef((e,t)=>(0,b.jsx)(L,Object.assign({innerRef:t},e)))},3353,[120,17,134,136,40,33,3324,3354,3245,3248,10]);
15775
- __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 o}});var e,t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),n=r(_d[1]),u=(e=n)&&e.__esModule?e:{default:e},f=r(_d[2]),o=t.forwardRef((e,t)=>(0,f.jsx)(u.default,Object.assign({ref:t,accessibilityRole:"button"},e)))},3354,[17,20,10]);
15776
- __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,"TouchableNativeFeedback",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(_e,"TouchableWithoutFeedback",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(_e,"TouchableOpacity",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(_e,"TouchableHighlight",{enumerable:!0,get:function(){return c.default}});var t=e(r(d[0])),u=e(r(d[1])),n=e(r(d[2])),c=e(r(d[3]))},3355,[3356,3357,3359,3360]);
15777
- __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]);var u=((e=t)&&e.__esModule?e:{default:e}).default},3356,[268]);
15778
- __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["delayLongPress","extraButtonProps"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var n=t(r(_d[0])),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])),u=t(r(_d[2])),s=r(_d[3]);var f=o.forwardRef((t,o)=>{let{delayLongPress:f=600,extraButtonProps:l={rippleColor:'transparent',exclusive:!0}}=t,c=(0,n.default)(t,e);return(0,s.jsx)(u.default,Object.assign({ref:o,delayLongPress:f,extraButtonProps:l},c))})},3357,[120,17,3358,10]);
15779
- __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}}),Object.defineProperty(_e,"TOUCHABLE_STATE",{enumerable:!0,get:function(){return l}});var t,s=r(d[0]),e=r(d[1]),o=(t=e)&&t.__esModule?t:{default:t};r(d[2]);var n=r(d[3]),p=r(d[4]),h=r(d[5]);const l={UNDETERMINED:0,BEGAN:1,MOVED_OUTSIDE:2};class u extends s.Component{static defaultProps={delayLongPress:600,extraButtonProps:{rippleColor:'transparent',exclusive:!0}};longPressDetected=!1;pointerInside=!0;STATE=l.UNDETERMINED;handlePressIn(){if(this.props.delayPressIn?this.pressInTimeout=setTimeout(()=>{this.moveToState(l.BEGAN),this.pressInTimeout=void 0},this.props.delayPressIn):this.moveToState(l.BEGAN),this.props.onLongPress){const t=(this.props.delayPressIn||0)+(this.props.delayLongPress||0);this.longPressTimeout=setTimeout(this.onLongPressDetected,t)}}handleMoveOutside(){this.props.delayPressOut?this.pressOutTimeout=this.pressOutTimeout||setTimeout(()=>{this.moveToState(l.MOVED_OUTSIDE),this.pressOutTimeout=void 0},this.props.delayPressOut):this.moveToState(l.MOVED_OUTSIDE)}handleGoToUndetermined(){clearTimeout(this.pressOutTimeout),this.props.delayPressOut?this.pressOutTimeout=setTimeout(()=>{this.STATE===l.UNDETERMINED&&this.moveToState(l.BEGAN),this.moveToState(l.UNDETERMINED),this.pressOutTimeout=void 0},this.props.delayPressOut):(this.STATE===l.UNDETERMINED&&this.moveToState(l.BEGAN),this.moveToState(l.UNDETERMINED))}componentDidMount(){this.reset()}reset(){this.longPressDetected=!1,this.pointerInside=!0,clearTimeout(this.pressInTimeout),clearTimeout(this.pressOutTimeout),clearTimeout(this.longPressTimeout),this.pressOutTimeout=void 0,this.longPressTimeout=void 0,this.pressInTimeout=void 0}moveToState(t){t!==this.STATE&&(t===l.BEGAN?this.props.onPressIn?.():t===l.MOVED_OUTSIDE?this.props.onPressOut?.():t===l.UNDETERMINED&&(this.reset(),this.STATE===l.BEGAN&&this.props.onPressOut?.()),this.props.onStateChange?.(this.STATE,t),this.STATE=t)}onGestureEvent=({nativeEvent:{pointerInside:t}})=>{this.pointerInside!==t&&(t?this.onMoveIn():this.onMoveOut()),this.pointerInside=t};onHandlerStateChange=({nativeEvent:t})=>{const{state:s}=t;if(s===n.State.CANCELLED||s===n.State.FAILED)this.moveToState(l.UNDETERMINED);else if(s===n.State.ACTIVE&&this.STATE===l.UNDETERMINED)this.handlePressIn();else if(s===n.State.END){const t=!this.longPressDetected&&this.STATE!==l.MOVED_OUTSIDE&&void 0===this.pressOutTimeout;this.handleGoToUndetermined(),t&&this.props.onPress?.()}};onLongPressDetected=()=>{this.longPressDetected=!0,this.props.onLongPress?.()};componentWillUnmount(){this.reset()}onMoveIn(){this.STATE===l.MOVED_OUTSIDE&&this.moveToState(l.BEGAN)}onMoveOut(){clearTimeout(this.longPressTimeout),this.longPressTimeout=void 0,this.STATE===l.BEGAN&&this.handleMoveOutside()}render(){const t=('number'==typeof this.props.hitSlop?{top:this.props.hitSlop,left:this.props.hitSlop,bottom:this.props.hitSlop,right:this.props.hitSlop}:this.props.hitSlop)??void 0,s={accessible:!1!==this.props.accessible,accessibilityLabel:this.props.accessibilityLabel,accessibilityHint:this.props.accessibilityHint,accessibilityRole:this.props.accessibilityRole,accessibilityState:this.props.accessibilityState,accessibilityActions:this.props.accessibilityActions,onAccessibilityAction:this.props.onAccessibilityAction,nativeID:this.props.nativeID,onLayout:this.props.onLayout};return(0,h.jsx)(p.BaseButton,Object.assign({style:this.props.containerStyle,onHandlerStateChange:this.props.disabled?void 0:this.onHandlerStateChange,onGestureEvent:this.onGestureEvent,hitSlop:t,userSelect:this.props.userSelect,shouldActivateOnStart:this.props.shouldActivateOnStart,disallowInterruption:this.props.disallowInterruption,testID:this.props.testID,touchSoundDisabled:this.props.touchSoundDisabled??!1,enabled:!this.props.disabled},this.props.extraButtonProps,{children:(0,h.jsx)(o.default.View,Object.assign({},s,{style:this.props.style,children:this.props.children}))}))}}},3358,[17,134,136,3245,3353,10]);
15780
- __d(function(g,r,i,a,m,_e,d){"use strict";const t=["style"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return y}});var s=e(r(d[0])),l=e(r(d[1])),n=e(r(d[2])),u=e(r(d[3])),o=e(r(d[4])),c=r(d[5]),p=e(c),h=r(d[6]),f=r(d[7]);class y extends h.Component{static defaultProps=Object.assign({},p.default.defaultProps,{activeOpacity:.2});getChildStyleOpacityWithDefault=()=>{const t=u.default.flatten(this.props.style)||{};return null==t.opacity?1:t.opacity.valueOf()};opacity=new l.default.Value(this.getChildStyleOpacityWithDefault());setOpacityTo=(t,e)=>{l.default.timing(this.opacity,{toValue:t,duration:e,easing:n.default.inOut(n.default.quad),useNativeDriver:this.props.useNativeAnimations??!0}).start()};onStateChange=(t,e)=>{e===c.TOUCHABLE_STATE.BEGAN?this.setOpacityTo(this.props.activeOpacity,0):e!==c.TOUCHABLE_STATE.UNDETERMINED&&e!==c.TOUCHABLE_STATE.MOVED_OUTSIDE||this.setOpacityTo(this.getChildStyleOpacityWithDefault(),150)};render(){const e=this.props,{style:l={}}=e,n=(0,s.default)(e,t);return(0,f.jsx)(p.default,Object.assign({},n,{style:[l,{opacity:this.opacity}],onStateChange:this.onStateChange,children:this.props.children?this.props.children:(0,f.jsx)(o.default,{})}))}}},3359,[120,134,219,33,20,3358,17,10]);
15781
- __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["style"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var s=t(r(_d[0])),n=r(_d[1]),l=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(s){var n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:function(){return e[s]}})}),t.default=e,t})(n),o=r(_d[2]),d=t(o),h=t(r(_d[3])),u=t(r(_d[4])),p=r(_d[5]);class c extends n.Component{static defaultProps=Object.assign({},d.default.defaultProps,{activeOpacity:.85,delayPressOut:100,underlayColor:'black'});constructor(e){super(e),this.state={extraChildStyle:null,extraUnderlayStyle:null}}showUnderlay=()=>{this.hasPressHandler()&&(this.setState({extraChildStyle:{opacity:this.props.activeOpacity},extraUnderlayStyle:{backgroundColor:this.props.underlayColor}}),this.props.onShowUnderlay?.())};hasPressHandler=()=>this.props.onPress||this.props.onPressIn||this.props.onPressOut||this.props.onLongPress;hideUnderlay=()=>{this.setState({extraChildStyle:null,extraUnderlayStyle:null}),this.props.onHideUnderlay?.()};renderChildren(){if(!this.props.children)return(0,p.jsx)(u.default,{});const e=l.Children.only(this.props.children);return l.cloneElement(e,{style:h.default.compose(e.props.style,this.state.extraChildStyle)})}onStateChange=(e,t)=>{t===o.TOUCHABLE_STATE.BEGAN?this.showUnderlay():t!==o.TOUCHABLE_STATE.UNDETERMINED&&t!==o.TOUCHABLE_STATE.MOVED_OUTSIDE||this.hideUnderlay()};render(){const t=this.props,{style:n={}}=t,l=(0,s.default)(t,e),{extraUnderlayStyle:o}=this.state;return(0,p.jsx)(d.default,Object.assign({},l,{style:[n,o],onStateChange:this.onStateChange,children:this.renderChildren()}))}}},3360,[120,17,3358,33,20,10]);
15782
- __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,"ScrollView",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"Switch",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"TextInput",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"DrawerLayoutAndroid",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"RefreshControl",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"FlatList",{enumerable:!0,get:function(){return y}});var t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),n=e(r(_d[1])),u=e(r(_d[2])),o=e(r(_d[3])),f=e(r(_d[4])),l=e(r(_d[5])),d=e(r(_d[6])),c=r(_d[7]);const s=(0,d.default)(f.default,{disallowInterruption:!1}),b=(0,d.default)(u.default,{shouldCancelWhenOutside:!1,shouldActivateOnStart:!0,disallowInterruption:!0}),p=(0,d.default)(o.default),j=()=>(console.warn('DrawerLayoutAndroid is not supported on web!'),(0,c.jsx)(l.default,{})),O=(0,d.default)(l.default),y=t.forwardRef((e,t)=>(0,c.jsx)(n.default,Object.assign({ref:t},e,{renderScrollComponent:e=>(0,c.jsx)(s,Object.assign({},e))})))},3361,[17,138,260,262,147,20,3324,10]);
15783
- __d(function(g,r,i,a,m,_e,d){"use strict";const e=["onPress","onLongPress","ref"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Text",{enumerable:!0,get:function(){return l}});var n=t(r(d[0])),s=r(d[1]);r(d[2]);var u=t(r(d[3])),o=r(d[4]),c=r(d[5]),f=r(d[6]);const l=t=>{const{onPress:l,onLongPress:j,ref:P}=t,b=(0,n.default)(t,e),O=(0,s.useRef)(null),_=(0,s.useMemo)(()=>o.GestureObjects.Native().runOnJS(!0),[]),x=(0,s.useMemo)(()=>{const e=e=>{O.current=e,P&&('function'==typeof P?P(e):P.current=e)};return e.rngh=!0,e},[P]);return(0,s.useEffect)(()=>{O.current?.setAttribute('rnghtext','true')},[]),l||j?(0,f.jsx)(c.GestureDetector,{gesture:_,children:(0,f.jsx)(u.default,Object.assign({onPress:l,onLongPress:j,ref:x},b))}):(0,f.jsx)(u.default,Object.assign({ref:x},b))}},3362,[120,17,136,112,3342,3326,10]);
15784
- __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e=r(d[0]),s=t(r(d[1])),n=t(r(d[2])),o=t(r(d[3])),h=t(r(d[4])),l=r(d[5]),p=r(d[6]),f=r(d[7]),u=r(d[8]);class c extends e.Component{static defaultProps={friction:1,overshootFriction:1,useNativeAnimations:!0};constructor(t){super(t);const e=new s.default.Value(0);this.state={dragX:e,rowTranslation:new s.default.Value(0),rowState:0,leftWidth:void 0,rightOffset:void 0,rowWidth:void 0},this.updateAnimatedEvent(t,this.state),this.onGestureEvent=s.default.event([{nativeEvent:{translationX:e}}],{useNativeDriver:t.useNativeAnimations})}shouldComponentUpdate(t,e){return this.props.friction===t.friction&&this.props.overshootLeft===t.overshootLeft&&this.props.overshootRight===t.overshootRight&&this.props.overshootFriction===t.overshootFriction&&this.state.leftWidth===e.leftWidth&&this.state.rightOffset===e.rightOffset&&this.state.rowWidth===e.rowWidth||this.updateAnimatedEvent(t,e),!0}updateAnimatedEvent=(t,e)=>{const{friction:n,overshootFriction:o}=t,{dragX:h,rowTranslation:l,leftWidth:p=0,rowWidth:f=0}=e,{rightOffset:u=f}=e,c=Math.max(0,f-u),{overshootLeft:w=p>0,overshootRight:v=c>0}=t,S=s.default.add(l,h.interpolate({inputRange:[0,n],outputRange:[0,1]})).interpolate({inputRange:[-c-1,-c,p,p+1],outputRange:[-c-(v?1/o:0),-c,p,p+(w?1/o:0)]});this.transX=S,this.showLeftAction=p>0?S.interpolate({inputRange:[-1,0,p],outputRange:[0,0,1]}):new s.default.Value(0),this.leftActionTranslate=this.showLeftAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:'clamp'}),this.showRightAction=c>0?S.interpolate({inputRange:[-c,0,1],outputRange:[1,0,0]}):new s.default.Value(0),this.rightActionTranslate=this.showRightAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:'clamp'})};onTapHandlerStateChange=({nativeEvent:t})=>{t.oldState===f.State.ACTIVE&&this.close()};onHandlerStateChange=t=>{if(t.nativeEvent.oldState===f.State.ACTIVE&&this.handleRelease(t),t.nativeEvent.state===f.State.ACTIVE){const{velocityX:e,translationX:s}=t.nativeEvent,{rowState:n}=this.state,{friction:o}=this.props,h=-1===n?'right':1===n||(s+.05*e)/o>0?'left':'right';0===n?this.props.onSwipeableOpenStartDrag?.(h):this.props.onSwipeableCloseStartDrag?.(h)}};handleRelease=t=>{const{velocityX:e,translationX:s}=t.nativeEvent,{leftWidth:n=0,rowWidth:o=0,rowState:h}=this.state,{rightOffset:l=o}=this.state,p=o-l,{friction:f,leftThreshold:u=n/2,rightThreshold:c=p/2}=this.props,w=this.currentOffset()+s/f,v=(s+.05*e)/f;let S=0;0===h?v>u?S=n:v<-c&&(S=-p):1===h?v>-u&&(S=n):v<c&&(S=-p),this.animateRow(w,S,e/f)};animateRow=(t,e,n)=>{const{dragX:o,rowTranslation:h}=this.state;if(o.setValue(0),h.setValue(t),this.setState({rowState:Math.sign(e)}),s.default.spring(h,Object.assign({restSpeedThreshold:1.7,restDisplacementThreshold:.4,velocity:n,bounciness:0,toValue:e,useNativeDriver:this.props.useNativeAnimations},this.props.animationOptions)).start(({finished:s})=>{if(s)if(e>0)this.props.onSwipeableLeftOpen?.(),this.props.onSwipeableOpen?.('left',this);else if(e<0)this.props.onSwipeableRightOpen?.(),this.props.onSwipeableOpen?.('right',this);else{const e=t>0?'left':'right';this.props.onSwipeableClose?.(e,this)}}),e>0)this.props.onSwipeableLeftWillOpen?.(),this.props.onSwipeableWillOpen?.('left');else if(e<0)this.props.onSwipeableRightWillOpen?.(),this.props.onSwipeableWillOpen?.('right');else{const e=t>0?'left':'right';this.props.onSwipeableWillClose?.(e)}};onRowLayout=({nativeEvent:t})=>{this.setState({rowWidth:t.layout.width})};currentOffset=()=>{const{leftWidth:t=0,rowWidth:e=0,rowState:s}=this.state,{rightOffset:n=e}=this.state;return 1===s?t:-1===s?-(e-n):0};close=()=>{this.animateRow(this.currentOffset(),0)};openLeft=()=>{const{leftWidth:t=0}=this.state;this.animateRow(this.currentOffset(),t)};openRight=()=>{const{rowWidth:t=0}=this.state,{rightOffset:e=t}=this.state,s=t-e;this.animateRow(this.currentOffset(),-s)};reset=()=>{const{dragX:t,rowTranslation:e}=this.state;t.setValue(0),e.setValue(0),this.setState({rowState:0})};render(){const{rowState:t}=this.state,{children:e,renderLeftActions:n,renderRightActions:h,dragOffsetFromLeftEdge:f=10,dragOffsetFromRightEdge:c=10}=this.props,v=n&&(0,u.jsxs)(s.default.View,{style:[w.leftActions,{transform:[{translateX:this.leftActionTranslate}]}],children:[n(this.showLeftAction,this.transX,this),(0,u.jsx)(o.default,{onLayout:({nativeEvent:t})=>this.setState({leftWidth:t.layout.x})})]}),S=h&&(0,u.jsxs)(s.default.View,{style:[w.rightActions,{transform:[{translateX:this.rightActionTranslate}]}],children:[h(this.showRightAction,this.transX,this),(0,u.jsx)(o.default,{onLayout:({nativeEvent:t})=>this.setState({rightOffset:t.layout.x})})]});return(0,u.jsx)(l.PanGestureHandler,Object.assign({activeOffsetX:[-c,f],touchAction:"pan-y"},this.props,{onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.onHandlerStateChange,children:(0,u.jsxs)(s.default.View,{onLayout:this.onRowLayout,style:[w.container,this.props.containerStyle],children:[v,S,(0,u.jsx)(p.TapGestureHandler,{enabled:0!==t,touchAction:"pan-y",onHandlerStateChange:this.onTapHandlerStateChange,children:(0,u.jsx)(s.default.View,{pointerEvents:0===t?'auto':'box-only',style:[{transform:[{translateX:this.transX}]},this.props.childrenContainerStyle],children:e})})]})}))}}const w=n.default.create({container:{overflow:'hidden'},leftActions:Object.assign({},n.default.absoluteFill,{flexDirection:h.default.isRTL?'row-reverse':'row'}),rightActions:Object.assign({},n.default.absoluteFill,{flexDirection:h.default.isRTL?'row':'row-reverse'})})},3363,[17,134,33,20,229,3320,3309,3245,10]);
15785
- __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.default}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},3364,[3365]);
15786
- __d(function(g,r,i,a,m,_e,d){"use strict";const e=["testOnly_pressed","hitSlop","pressRetentionOffset","delayHoverIn","delayHoverOut","delayLongPress","unstable_pressDelay","onHoverIn","onHoverOut","onPress","onPressIn","onPressOut","onLongPress","onLayout","style","children","android_disableSound","android_ripple","disabled","accessible","simultaneousWithExternalGesture","requireExternalGestureToFail","blocksExternalGesture"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return R}});var n=t(r(d[0])),s=r(d[1]),o=r(d[2]),u=r(d[3]),l=t(r(d[4])),c=t(r(d[5])),_=t(r(d[6])),v=r(d[7]);r(d[8]);var h=r(d[9]),E=r(d[10]),f=r(d[11]),T=r(d[12]),P=r(d[13]),b=r(d[14]);const M=(0,h.isTestEnv)();let O=null;const H={code:"function reactNativeGestureHandler_PressableJs1(event){const{hoverInTimeout,delayHoverOut,hoverOutTimeout,onHoverOut,gestureToPressableEvent}=this.__closure;var _onHoverOut2;if(hoverInTimeout.current){clearTimeout(hoverInTimeout.current);}if(delayHoverOut){hoverOutTimeout.current=setTimeout(function(){var _onHoverOut;return(_onHoverOut=onHoverOut)===null||_onHoverOut===void 0?void 0:_onHoverOut(gestureToPressableEvent(event));},delayHoverOut);return;}(_onHoverOut2=onHoverOut)===null||_onHoverOut2===void 0||_onHoverOut2(gestureToPressableEvent(event));}"},S={code:"function reactNativeGestureHandler_PressableJs2(event){const{hoverOutTimeout,delayHoverIn,hoverInTimeout,onHoverIn,gestureToPressableEvent}=this.__closure;var _onHoverIn2;if(hoverOutTimeout.current){clearTimeout(hoverOutTimeout.current);}if(delayHoverIn){hoverInTimeout.current=setTimeout(function(){var _onHoverIn;return(_onHoverIn=onHoverIn)===null||_onHoverIn===void 0?void 0:_onHoverIn(gestureToPressableEvent(event));},delayHoverIn);return;}(_onHoverIn2=onHoverIn)===null||_onHoverIn2===void 0||_onHoverIn2(gestureToPressableEvent(event));}"},I={code:"function reactNativeGestureHandler_PressableJs3(_event,success){const{Platform,stateMachine,StateMachineEvent,handleFinalize}=this.__closure;if(Platform.OS==='web'){if(success){stateMachine.handleEvent(StateMachineEvent.FINALIZE);}else{stateMachine.handleEvent(StateMachineEvent.CANCEL);}handleFinalize();}}"},k={code:"function reactNativeGestureHandler_PressableJs4(event){const{gestureTouchToPressableEvent,stateMachine,handlePressOut}=this.__closure;const pressableEvent=gestureTouchToPressableEvent(event);stateMachine.reset();handlePressOut(pressableEvent,false);}"},y={code:"function reactNativeGestureHandler_PressableJs5(){const{Platform,isScreenReaderEnabled,stateMachine,handleFinalize}=this.__closure;if(Platform.OS==='android'&&!isScreenReaderEnabled){stateMachine.reset();handleFinalize();}}"},p={code:"function reactNativeGestureHandler_PressableJs6(event){const{gestureTouchToPressableEvent,stateMachine,StateMachineEvent}=this.__closure;const pressableEvent=gestureTouchToPressableEvent(event);stateMachine.handleEvent(StateMachineEvent.LONG_PRESS_TOUCHES_DOWN,pressableEvent);}"},w={code:"function reactNativeGestureHandler_PressableJs7(_event,success){const{Platform,stateMachine,StateMachineEvent,handleFinalize}=this.__closure;if(Platform.OS!=='web'){if(success){stateMachine.handleEvent(StateMachineEvent.FINALIZE);}else{stateMachine.handleEvent(StateMachineEvent.CANCEL);}if(Platform.OS!=='ios'){handleFinalize();}}}"},G={code:"function reactNativeGestureHandler_PressableJs8(){const{Platform,stateMachine,StateMachineEvent}=this.__closure;if(Platform.OS!=='android'){stateMachine.handleEvent(StateMachineEvent.NATIVE_START);}}"},N={code:"function reactNativeGestureHandler_PressableJs9(){const{stateMachine,StateMachineEvent}=this.__closure;stateMachine.handleEvent(StateMachineEvent.NATIVE_BEGIN);}"},F={code:"function reactNativeGestureHandler_PressableJs10(event){const{Platform,gestureTouchToPressableEvent,stateMachine,handlePressOut}=this.__closure;if(Platform.OS!=='macos'&&Platform.OS!=='web'){const pressableEvent=gestureTouchToPressableEvent(event);stateMachine.reset();handlePressOut(pressableEvent,false);}}"};var R=t=>{const{testOnly_pressed:R,hitSlop:C,pressRetentionOffset:D,delayHoverIn:z,delayHoverOut:L,delayLongPress:A,unstable_pressDelay:x,onHoverIn:J,onHoverOut:j,onPress:V,onPressIn:W,onPressOut:B,onLongPress:q,onLayout:U,style:Z,children:X,android_disableSound:K,android_ripple:Q,disabled:Y,accessible:$,simultaneousWithExternalGesture:ee,requireExternalGestureToFail:te,blocksExternalGesture:ne}=t,ae=(0,n.default)(t,e),re={simultaneousWithExternalGesture:ee,requireExternalGestureToFail:te,blocksExternalGesture:ne},[se,oe]=(0,s.useState)(R??!1),ie=(0,s.useRef)(null),ue=(0,s.useRef)(null),le=(0,s.useRef)(!0),ce=(0,s.useRef)(!1),ve=(0,s.useRef)({width:0,height:0}),he=(0,s.useMemo)(()=>'number'==typeof C?(0,v.numberAsInset)(C):C??{},[C]),de=(0,s.useMemo)(()=>'number'==typeof D?(0,v.numberAsInset)(D):D??{},[D]),Ee=(0,v.addInsets)(he,de),fe=(0,s.useCallback)(()=>{ie.current&&(clearTimeout(ie.current),ie.current=null,le.current=!0)},[]),Te=(0,s.useCallback)(()=>{ue.current&&(clearTimeout(ue.current),ue.current=null)},[]),Pe=(0,s.useCallback)(e=>{q&&(fe(),ie.current=setTimeout(()=>{le.current=!1,q(e)},A??500))},[q,fe,A]),be=(0,s.useCallback)(e=>{W?.(e),Pe(e),oe(!0),ue.current&&(clearTimeout(ue.current),ue.current=null)},[W,Pe]),Me=(0,s.useCallback)(()=>{ce.current=!1,fe(),Te(),oe(!1)},[Te,fe]),me=(0,s.useCallback)(e=>{(0,v.isTouchWithinInset)(ve.current,he,e.nativeEvent.changedTouches.at(-1))&&(ce.current=!0,x?ue.current=setTimeout(()=>{be(e)},x):be(e))},[be,he,x]),Oe=(0,s.useCallback)((e,t=!0)=>{ce.current&&(ce.current=!1,ue.current&&be(e),B?.(e),le.current&&t&&V?.(e),Me())},[Me,be,V,B]),He=(0,s.useMemo)(()=>new T.PressableStateMachine,[]),Se=(0,P.useIsScreenReaderEnabled)();(0,s.useEffect)(()=>{const e=(0,f.getStatesConfig)(me,Oe,Se);He.setStates(e)},[me,Oe,He,Se]);const Ie=(0,s.useRef)(null),ge=(0,s.useRef)(null),ke=(0,s.useMemo)(()=>o.GestureObjects.Hover().manualActivation(!0).cancelsTouchesInView(!1).onBegin((function({_worklet_6909381456988_init_data:e,hoverOutTimeout:t,delayHoverIn:n,hoverInTimeout:s,onHoverIn:o,gestureToPressableEvent:u}){const l=function(e){t.current&&clearTimeout(t.current),n?s.current=setTimeout(()=>o?.(u(e)),n):o?.(u(e))};return l.__closure={hoverOutTimeout:t,delayHoverIn:n,hoverInTimeout:s,onHoverIn:o,gestureToPressableEvent:u},l.__workletHash=6909381456988,l.__initData=e,l})({_worklet_6909381456988_init_data:S,hoverOutTimeout:ge,delayHoverIn:z,hoverInTimeout:Ie,onHoverIn:J,gestureToPressableEvent:v.gestureToPressableEvent})).onFinalize((function({_worklet_4785699502742_init_data:e,hoverInTimeout:t,delayHoverOut:n,hoverOutTimeout:s,onHoverOut:o,gestureToPressableEvent:u}){const l=function(e){t.current&&clearTimeout(t.current),n?s.current=setTimeout(()=>o?.(u(e)),n):o?.(u(e))};return l.__closure={hoverInTimeout:t,delayHoverOut:n,hoverOutTimeout:s,onHoverOut:o,gestureToPressableEvent:u},l.__workletHash=4785699502742,l.__initData=e,l})({_worklet_4785699502742_init_data:H,hoverInTimeout:Ie,delayHoverOut:L,hoverOutTimeout:ge,onHoverOut:j,gestureToPressableEvent:v.gestureToPressableEvent})),[z,L,J,j]),ye=(0,s.useMemo)(()=>o.GestureObjects.LongPress().minDuration(0).maxDistance(h.INT32_MAX).cancelsTouchesInView(!1).onTouchesDown((function({_worklet_937333984765_init_data:e,gestureTouchToPressableEvent:t,stateMachine:n,StateMachineEvent:s}){const o=function(e){const o=t(e);n.handleEvent(s.LONG_PRESS_TOUCHES_DOWN,o)};return o.__closure={gestureTouchToPressableEvent:t,stateMachine:n,StateMachineEvent:s},o.__workletHash=937333984765,o.__initData=e,o})({_worklet_937333984765_init_data:p,gestureTouchToPressableEvent:v.gestureTouchToPressableEvent,stateMachine:He,StateMachineEvent:f.StateMachineEvent})).onTouchesUp((function({_worklet_5558085794677_init_data:e,Platform:t,isScreenReaderEnabled:n,stateMachine:s,handleFinalize:o}){const u=function(){};return u.__closure={Platform:t,isScreenReaderEnabled:n,stateMachine:s,handleFinalize:o},u.__workletHash=5558085794677,u.__initData=e,u})({_worklet_5558085794677_init_data:y,Platform:l.default,isScreenReaderEnabled:Se,stateMachine:He,handleFinalize:Me})).onTouchesCancelled((function({_worklet_14743782876118_init_data:e,gestureTouchToPressableEvent:t,stateMachine:n,handlePressOut:s}){const o=function(e){const o=t(e);n.reset(),s(o,!1)};return o.__closure={gestureTouchToPressableEvent:t,stateMachine:n,handlePressOut:s},o.__workletHash=0xd68cdf0e3d6,o.__initData=e,o})({_worklet_14743782876118_init_data:k,gestureTouchToPressableEvent:v.gestureTouchToPressableEvent,stateMachine:He,handlePressOut:Oe})).onFinalize((function({_worklet_6239736927046_init_data:e,Platform:t,stateMachine:n,StateMachineEvent:s,handleFinalize:o}){const u=function(e,t){t?n.handleEvent(s.FINALIZE):n.handleEvent(s.CANCEL),o()};return u.__closure={Platform:t,stateMachine:n,StateMachineEvent:s,handleFinalize:o},u.__workletHash=6239736927046,u.__initData=e,u})({_worklet_6239736927046_init_data:I,Platform:l.default,stateMachine:He,StateMachineEvent:f.StateMachineEvent,handleFinalize:Me})),[He,Me,Oe,Se]),pe=(0,s.useMemo)(()=>o.GestureObjects.Native().onTouchesCancelled((function({_worklet_5326040157275_init_data:e,Platform:t,gestureTouchToPressableEvent:n,stateMachine:s,handlePressOut:o}){const u=function(e){};return u.__closure={Platform:t,gestureTouchToPressableEvent:n,stateMachine:s,handlePressOut:o},u.__workletHash=5326040157275,u.__initData=e,u})({_worklet_5326040157275_init_data:F,Platform:l.default,gestureTouchToPressableEvent:v.gestureTouchToPressableEvent,stateMachine:He,handlePressOut:Oe})).onBegin((function({_worklet_14189070085146_init_data:e,stateMachine:t,StateMachineEvent:n}){const s=function(){t.handleEvent(n.NATIVE_BEGIN)};return s.__closure={stateMachine:t,StateMachineEvent:n},s.__workletHash=0xce7a67b6c1a,s.__initData=e,s})({_worklet_14189070085146_init_data:N,stateMachine:He,StateMachineEvent:f.StateMachineEvent})).onStart((function({_worklet_7492686327600_init_data:e,Platform:t,stateMachine:n,StateMachineEvent:s}){const o=function(){n.handleEvent(s.NATIVE_START)};return o.__closure={Platform:t,stateMachine:n,StateMachineEvent:s},o.__workletHash=7492686327600,o.__initData=e,o})({_worklet_7492686327600_init_data:G,Platform:l.default,stateMachine:He,StateMachineEvent:f.StateMachineEvent})).onFinalize((function({_worklet_10634809083311_init_data:e,Platform:t,stateMachine:n,StateMachineEvent:s,handleFinalize:o}){const u=function(e,t){};return u.__closure={Platform:t,stateMachine:n,StateMachineEvent:s,handleFinalize:o},u.__workletHash=0x9ac1c0485af,u.__initData=e,u})({_worklet_10634809083311_init_data:w,Platform:l.default,stateMachine:He,StateMachineEvent:f.StateMachineEvent,handleFinalize:Me})),[He,Oe,Me]),we=!0!==Y,Ge=[pe,ye,ke];for(const e of Ge)e.enabled(we),e.runOnJS(!0),e.hitSlop(Ee),Object.entries(re).forEach(([t,n])=>{(0,E.applyRelationProp)(e,t,n)});const Ne=o.GestureObjects.Simultaneous(...Ge),Fe='function'==typeof Z?Z({pressed:se}):Z,Re='function'==typeof X?X({pressed:se}):X,Ce=(0,s.useMemo)(()=>{null===O&&(O=(0,h.isFabric)());const e=Q?void 0:'transparent',t=Q?.color??e;return O?t:(0,c.default)(t)},[Q]),De=(0,s.useCallback)(e=>{U?.(e),ve.current=e.nativeEvent.layout},[U]);return(0,b.jsx)(u.GestureDetector,{gesture:Ne,children:(0,b.jsxs)(_.default,Object.assign({},ae,{onLayout:De,accessible:!1!==$,hitSlop:Ee,enabled:we,touchSoundDisabled:K??void 0,rippleColor:Ce,rippleRadius:Q?.radius??void 0,style:[{cursor:'pointer'},Fe],testOnly_onPress:M?V:void 0,testOnly_onPressIn:M?W:void 0,testOnly_onPressOut:M?B:void 0,testOnly_onLongPress:M?q:void 0,children:[Re,null]}))})}},3365,[120,17,3342,3326,136,40,3354,3366,3315,3248,3367,3368,3369,3370,10]);
15787
- __d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"numberAsInset",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"addInsets",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isTouchWithinInset",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"gestureToPressableEvent",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"gestureTouchToPressableEvent",{enumerable:!0,get:function(){return l}});const t=t=>({left:t,right:t,top:t,bottom:t}),o=(t,o)=>({left:(t.left??0)+(o.left??0),right:(t.right??0)+(o.right??0),top:(t.top??0)+(o.top??0),bottom:(t.bottom??0)+(o.bottom??0)}),n=(t,o,n)=>({identifier:t.id,locationX:t.x,locationY:t.y,pageX:t.absoluteX,pageY:t.absoluteY,target:n,timestamp:o,touches:[],changedTouches:[]}),a=(t,o,n)=>({identifier:t.handlerTag,locationX:t.x,locationY:t.y,pageX:t.absoluteX,pageY:t.absoluteY,target:n,timestamp:o,touches:[],changedTouches:[]}),c=(t,o,n)=>(n?.locationX??0)<(o.right??0)+t.width&&(n?.locationY??0)<(o.bottom??0)+t.height&&(n?.locationX??0)>-(o.left??0)&&(n?.locationY??0)>-(o.top??0),u=t=>{const o=Date.now(),n=a(t,o,0);return{nativeEvent:{touches:[n],changedTouches:[n],identifier:n.identifier,locationX:t.x,locationY:t.y,pageX:t.absoluteX,pageY:t.absoluteY,target:0,timestamp:o,force:void 0}}},l=t=>{const o=Date.now();return{nativeEvent:{touches:t.allTouches.map(t=>n(t,o,0)),changedTouches:t.changedTouches.map(t=>n(t,o,0)),identifier:t.handlerTag,locationX:t.allTouches.at(0)?.x??-1,locationY:t.allTouches.at(0)?.y??-1,pageX:t.allTouches.at(0)?.absoluteX??-1,pageY:t.allTouches.at(0)?.absoluteY??-1,target:0,timestamp:o,force:void 0}}}},3366,[]);
15788
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.applyRelationProp=function(t,n,o){if(!o)return;Array.isArray(o)?t[n](...o):t[n](o)}},3367,[]);
15789
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"StateMachineEvent",{enumerable:!0,get:function(){return n}}),e.getStatesConfig=function(n,N,c){return t(n,N)},r(d[0]);let n=(function(n){return n.NATIVE_BEGIN="nativeBegin",n.NATIVE_START="nativeStart",n.FINALIZE="finalize",n.LONG_PRESS_TOUCHES_DOWN="longPressTouchesDown",n.CANCEL="cancel",n})({});function t(t,N){return[{eventName:n.NATIVE_BEGIN},{eventName:n.NATIVE_START},{eventName:n.LONG_PRESS_TOUCHES_DOWN,callback:t},{eventName:n.FINALIZE,callback:N}]}},3368,[136]);
15790
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PressableStateMachine",{enumerable:!0,get:function(){return t}});class t{constructor(){this.states=null,this.currentStepIndex=0,this.eventPayload=null}setStates(t){this.states=t}reset(){this.currentStepIndex=0,this.eventPayload=null}handleEvent(t,s){if(!this.states)return;const n=this.states[this.currentStepIndex];this.eventPayload=s||this.eventPayload,n.eventName===t?(this.eventPayload&&n.callback&&n.callback(this.eventPayload),this.currentStepIndex++,this.currentStepIndex===this.states.length&&this.reset()):this.currentStepIndex>0&&(this.reset(),this.handleEvent(t,s))}}},3369,[]);
15791
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useIsScreenReaderEnabled=function(){const[e,n]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{(async()=>{try{const e=await s.default.isScreenReaderEnabled();n(e)}catch(e){console.warn('Could not read accessibility info: defaulting to false')}})();const e=s.default.addEventListener('screenReaderChanged',e=>{n(e)});return()=>{e.remove()}},[]),e};var e,t=r(d[0]),n=r(d[1]),s=(e=n)&&e.__esModule?e:{default:e}},3370,[17,132]);
15792
- __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 V}});var t=r(_d[0]),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(t),s=e(r(_d[1])),o=e(r(_d[2])),d=e(r(_d[3])),l=e(r(_d[4])),h=e(r(_d[5])),u=e(r(_d[6])),p=e(r(_d[7])),c=r(_d[8]),w=r(_d[9]),f=r(_d[10]),v=r(_d[11]);const S='Idle',y='Dragging',b='Settling';class V extends t.Component{static defaultProps={drawerWidth:200,drawerPosition:'left',useNativeAnimations:!0,drawerType:'front',edgeWidth:20,minSwipeDistance:3,overlayColor:'rgba(0, 0, 0, 0.7)',drawerLockMode:'unlocked',enableTrackpadTwoFingerGesture:!1};constructor(e){super(e);const t=new o.default.Value(0),n=new o.default.Value(0),s=new o.default.Value(0);this.state={dragX:t,touchX:n,drawerTranslation:s,containerWidth:0,drawerState:S,drawerOpened:!1},this.updateAnimatedEvent(e,this.state)}shouldComponentUpdate(e,t){return this.props.drawerPosition===e.drawerPosition&&this.props.drawerWidth===e.drawerWidth&&this.props.drawerType===e.drawerType&&this.state.containerWidth===t.containerWidth||this.updateAnimatedEvent(e,t),!0}accessibilityIsModalView=n.createRef();pointerEventsView=n.createRef();panGestureHandler=n.createRef();drawerShown=!1;static positions={Left:'left',Right:'right'};updateAnimatedEvent=(e,t)=>{const{drawerPosition:n,drawerWidth:s,drawerType:d}=e,{dragX:l,touchX:h,drawerTranslation:u,containerWidth:p}=t;let c=l,w=h;'left'!==n?(c=o.default.multiply(new o.default.Value(-1),l),w=o.default.add(new o.default.Value(p),o.default.multiply(new o.default.Value(-1),h)),h.setValue(p)):h.setValue(0);let f=c;if('front'===d){const e=o.default.add(w,o.default.multiply(new o.default.Value(-1),c)).interpolate({inputRange:[s-1,s,s+1],outputRange:[0,0,1]});f=o.default.add(c,e)}this.openValue=o.default.add(f,u).interpolate({inputRange:[0,s],outputRange:[0,1],extrapolate:'clamp'});const v={useNativeDriver:e.useNativeAnimations};this.props.onDrawerSlide&&(v.listener=e=>{const t=Math.floor(Math.abs(e.nativeEvent.translationX))/this.state.containerWidth;this.props.onDrawerSlide?.(t)}),this.onGestureEvent=o.default.event([{nativeEvent:{translationX:l,x:h}}],v)};handleContainerLayout=({nativeEvent:e})=>{this.setState({containerWidth:e.layout.width})};emitStateChanged=(e,t)=>{this.props.onDrawerStateChanged?.(e,t)};openingHandlerStateChange=({nativeEvent:e})=>{e.oldState===f.State.ACTIVE?this.handleRelease({nativeEvent:e}):e.state===f.State.ACTIVE&&(this.emitStateChanged(y,!1),this.setState({drawerState:y}),'on-drag'===this.props.keyboardDismissMode&&h.default.dismiss(),this.props.hideStatusBar&&u.default.setHidden(!0,this.props.statusBarAnimation||'slide'))};onTapHandlerStateChange=({nativeEvent:e})=>{this.drawerShown&&e.oldState===f.State.ACTIVE&&'locked-open'!==this.props.drawerLockMode&&this.closeDrawer()};handleRelease=({nativeEvent:e})=>{const{drawerWidth:t,drawerPosition:n,drawerType:s}=this.props,{containerWidth:o}=this.state;let{translationX:d,velocityX:l,x:h}=e;'left'!==n&&(d=-d,h=o-h,l=-l);const u=h-d;let p=0;'front'===s&&(p=u>t?u-t:0);const c=d+p+(this.drawerShown?t:0);c+.05*l>t/2?this.animateDrawer(c,t,l):this.animateDrawer(c,0,l)};updateShowing=e=>{this.drawerShown=e,this.accessibilityIsModalView.current?.setNativeProps({accessibilityViewIsModal:e}),this.pointerEventsView.current?.setNativeProps({pointerEvents:e?'auto':'none'});const{drawerPosition:t,minSwipeDistance:n,edgeWidth:s}=this.props,o='left'===t,d=(o?1:-1)*(this.drawerShown?-1:1),l=o?{left:0,width:e?void 0:s}:{right:0,width:e?void 0:s};this.panGestureHandler.current?.setNativeProps({hitSlop:l,activeOffsetX:d*n})};animateDrawer=(e,t,n,s)=>{if(this.state.dragX.setValue(0),this.state.touchX.setValue('left'===this.props.drawerPosition?0:this.state.containerWidth),null!=e){let s=e;this.props.useNativeAnimations&&(e<t&&n>0?s=Math.min(e+n/60,t):e>t&&n<0&&(s=Math.max(e+n/60,t))),this.state.drawerTranslation.setValue(s)}const d=0!==t;this.updateShowing(d),this.emitStateChanged(b,d),this.setState({drawerState:b}),this.props.hideStatusBar&&u.default.setHidden(d,this.props.statusBarAnimation||'slide'),o.default.spring(this.state.drawerTranslation,{velocity:n,bounciness:0,toValue:t,useNativeDriver:this.props.useNativeAnimations,speed:s??void 0}).start(({finished:e})=>{e&&(this.emitStateChanged(S,d),this.setState({drawerOpened:d}),this.state.drawerState!==y&&this.setState({drawerState:S}),d?this.props.onDrawerOpen?.():this.props.onDrawerClose?.())})};openDrawer=(e={})=>{this.animateDrawer(void 0,this.props.drawerWidth,e.velocity?e.velocity:0,e.speed),this.forceUpdate()};closeDrawer=(e={})=>{this.animateDrawer(void 0,0,e.velocity?e.velocity:0,e.speed),this.forceUpdate()};renderOverlay=()=>{let e;(0,s.default)(this.openValue,'should be set'),e=this.state.drawerState!==S?this.openValue:this.state.drawerOpened?1:0;const t={opacity:e,backgroundColor:this.props.overlayColor};return(0,v.jsx)(w.TapGestureHandler,{onHandlerStateChange:this.onTapHandlerStateChange,children:(0,v.jsx)(o.default.View,{pointerEvents:this.drawerShown?'auto':'none',ref:this.pointerEventsView,style:[C.overlay,t]})})};renderDrawer=()=>{const{drawerBackgroundColor:e,drawerWidth:t,drawerPosition:n,drawerType:d,drawerContainerStyle:h,contentContainerStyle:u}=this.props,c='left'===n,w='back'!==d,f='front'!==d,y=p.default.isRTL?c:!c,b={backgroundColor:e,width:t},V=this.openValue;let D;if((0,s.default)(V,'should be set'),f){D={transform:[{translateX:V.interpolate({inputRange:[0,1],outputRange:c?[0,t]:[0,-t],extrapolate:'clamp'})}]}}let x=0;if(w){const e=c?-t:t;x=this.state.drawerState!==S?V.interpolate({inputRange:[0,1],outputRange:[e,0],extrapolate:'clamp'}):this.state.drawerOpened?0:e}const E={transform:[{translateX:x}],flexDirection:y?'row-reverse':'row'};return(0,v.jsxs)(o.default.View,{style:C.main,onLayout:this.handleContainerLayout,children:[(0,v.jsxs)(o.default.View,{style:['front'===d?C.containerOnBack:C.containerInFront,D,u],importantForAccessibility:this.drawerShown?'no-hide-descendants':'yes',children:['function'==typeof this.props.children?this.props.children(this.openValue):this.props.children,this.renderOverlay()]}),(0,v.jsx)(o.default.View,{pointerEvents:"box-none",ref:this.accessibilityIsModalView,accessibilityViewIsModal:this.drawerShown,style:[C.drawerContainer,E,h],children:(0,v.jsx)(l.default,{style:b,children:this.props.renderNavigationView(this.openValue)})})]})};setPanGestureRef=e=>{this.panGestureHandler.current=e,this.props.onGestureRef?.(e)};render(){const{drawerPosition:e,drawerLockMode:t,edgeWidth:n,minSwipeDistance:s}=this.props,o='left'===e,d=(o?1:-1)*(this.drawerShown?-1:1),l=o?{left:0,width:this.drawerShown?void 0:n}:{right:0,width:this.drawerShown?void 0:n};return(0,v.jsx)(c.PanGestureHandler,{userSelect:this.props.userSelect,activeCursor:this.props.activeCursor,mouseButton:this.props.mouseButton,enableContextMenu:this.props.enableContextMenu,ref:this.setPanGestureRef,hitSlop:l,activeOffsetX:d*s,failOffsetY:[-15,15],onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.openingHandlerStateChange,enableTrackpadTwoFingerGesture:this.props.enableTrackpadTwoFingerGesture,enabled:'locked-closed'!==t&&'locked-open'!==t,children:this.renderDrawer()})}}const C=d.default.create({drawerContainer:Object.assign({},d.default.absoluteFill,{zIndex:1001,flexDirection:'row'}),containerInFront:Object.assign({},d.default.absoluteFill,{zIndex:1002}),containerOnBack:Object.assign({},d.default.absoluteFill),main:{flex:1,zIndex:0,overflow:'hidden'},overlay:Object.assign({},d.default.absoluteFill,{zIndex:1e3})})},3371,[17,323,134,33,20,230,259,229,3320,3309,3245,10]);
15726
+ 'use strict';var e="function"==typeof Symbol&&Symbol.for,t=e?Symbol.for("react.element"):60103,o=e?Symbol.for("react.portal"):60106,r=e?Symbol.for("react.fragment"):60107,n=e?Symbol.for("react.strict_mode"):60108,c=e?Symbol.for("react.profiler"):60114,f=e?Symbol.for("react.provider"):60109,s=e?Symbol.for("react.context"):60110,u=e?Symbol.for("react.async_mode"):60111,a=e?Symbol.for("react.concurrent_mode"):60111,y=e?Symbol.for("react.forward_ref"):60112,l=e?Symbol.for("react.suspense"):60113,m=e?Symbol.for("react.suspense_list"):60120,p=e?Symbol.for("react.memo"):60115,b=e?Symbol.for("react.lazy"):60116,S=e?Symbol.for("react.block"):60121,$=e?Symbol.for("react.fundamental"):60117,d=e?Symbol.for("react.responder"):60118,C=e?Symbol.for("react.scope"):60119;function M(e){if("object"==typeof e&&null!==e){var m=e.$$typeof;switch(m){case t:switch(e=e.type){case u:case a:case r:case c:case n:case l:return e;default:switch(e=e&&e.$$typeof){case s:case y:case b:case p:case f:return e;default:return m}}case o:return m}}}function _(e){return M(e)===a}_e.AsyncMode=u,_e.ConcurrentMode=a,_e.ContextConsumer=s,_e.ContextProvider=f,_e.Element=t,_e.ForwardRef=y,_e.Fragment=r,_e.Lazy=b,_e.Memo=p,_e.Portal=o,_e.Profiler=c,_e.StrictMode=n,_e.Suspense=l,_e.isAsyncMode=function(e){return _(e)||M(e)===u},_e.isConcurrentMode=_,_e.isContextConsumer=function(e){return M(e)===s},_e.isContextProvider=function(e){return M(e)===f},_e.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===t},_e.isForwardRef=function(e){return M(e)===y},_e.isFragment=function(e){return M(e)===r},_e.isLazy=function(e){return M(e)===b},_e.isMemo=function(e){return M(e)===p},_e.isPortal=function(e){return M(e)===o},_e.isProfiler=function(e){return M(e)===c},_e.isStrictMode=function(e){return M(e)===n},_e.isSuspense=function(e){return M(e)===l},_e.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===r||e===a||e===c||e===n||e===l||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===b||e.$$typeof===p||e.$$typeof===f||e.$$typeof===s||e.$$typeof===y||e.$$typeof===$||e.$$typeof===d||e.$$typeof===C||e.$$typeof===S)},_e.typeOf=M},3305,[]);
15727
+ __d(function(g,r,i,a,m,_e,d){"use strict";const e=["style"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return o}});var n=t(r(d[0]));r(d[1]);var u=t(r(d[2])),l=t(r(d[3])),c=t(r(d[4])),f=r(d[5]);function o(t){let{style:l}=t,o=(0,n.default)(t,e);return(0,f.jsx)(c.default.Provider,{value:!0,children:(0,f.jsx)(u.default,Object.assign({style:l??s.container},o))})}const s=l.default.create({container:{flex:1}})},3306,[120,17,20,33,3307,10]);
15728
+ __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.createContext(!1)},3307,[17]);
15729
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"tapGestureHandlerProps",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"tapHandlerName",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"TapGestureHandler",{enumerable:!0,get:function(){return o}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},u=r(d[1]);const l=['maxDurationMs','maxDelayMs','numberOfTaps','maxDeltaX','maxDeltaY','maxDist','minPointers'],s='TapGestureHandler',o=(0,n.default)({name:s,allowedProps:[...u.baseGestureHandlerProps,...l],config:{shouldCancelWhenOutside:!0}})},3308,[3309,3264]);
15730
+ __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 R}});var t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(_r(_d[0]));_r(_d[1]);var n=e(_r(_d[2]));_r(_d[3]);var r=_r(_d[4]),s=e(_r(_d[5])),o=_r(_d[6]),d=_r(_d[7]),l=_r(_d[8]),h=_r(_d[9]),u=e(_r(_d[10])),p=_r(_d[11]),c=_r(_d[12]);_r(_d[13]);var f=e(_r(_d[14])),v=_r(_d[15]),E=_r(_d[16]);_r(_d[17]);const w=n.default;r.customDirectEventTypes.topGestureHandlerEvent={registrationName:'onGestureHandlerEvent'};const H=Object.assign({onGestureHandlerEvent:{registrationName:'onGestureHandlerEvent'},onGestureHandlerStateChange:{registrationName:'onGestureHandlerStateChange'}},(0,p.isFabric)()&&!1);w.genericDirectEventTypes=Object.assign({},w.genericDirectEventTypes,H);const T=w.getViewManagerConfig?.('getConstants');T&&(T.genericDirectEventTypes=Object.assign({},T.genericDirectEventTypes,H));const{setJSResponder:y=()=>{},clearJSResponder:G=()=>{}}=w;w.setJSResponder=(e,t)=>{s.default.handleSetJSResponder(e,t),y(e,t)},w.clearJSResponder=()=>{s.default.handleClearJSResponder(),G()};let C=!0;function N(e){const t=e=>Array.isArray(e)?e.some(e=>e&&null===e.current):e&&null===e.current;return t(e.simultaneousHandlers)||t(e.waitFor)}const S={[o.State.UNDETERMINED]:void 0,[o.State.BEGAN]:'onBegan',[o.State.FAILED]:'onFailed',[o.State.CANCELLED]:'onCancelled',[o.State.ACTIVE]:'onActivated',[o.State.END]:'onEnded'},D=1;function R({name:e,allowedProps:n=[],config:r={},transformProps:o,customNativeProps:w=[]}){class H extends t.Component{static displayName=e;static contextType=f.default;handlerTag=-1;constructor(e){if(super(e),this.config={},this.propsRef=t.createRef(),this.isMountedRef=t.createRef(),this.state={allowTouches:C},e.id){if(void 0!==d.handlerIDToTag[e.id])throw new Error(`Handler with ID "${e.id}" already registered`);d.handlerIDToTag[e.id]=this.handlerTag}}componentDidMount(){const e=this.props;if(this.isMountedRef.current=!0,N(e)&&(0,v.ghQueueMicrotask)(()=>{this.update(D)}),this.createGestureHandler((0,h.filterConfig)(o?o(this.props):this.props,[...n,...w],r)),!this.viewNode)throw new Error(`[Gesture Handler] Failed to obtain view for ${H.displayName}. Note that old API doesn't support functional components.`);this.attachGestureHandler((0,u.default)(this.viewNode))}componentDidUpdate(){const e=(0,u.default)(this.viewNode);this.viewTag!==e&&this.attachGestureHandler(e),this.update(D)}componentWillUnmount(){this.inspectorToggleListener?.remove(),this.isMountedRef.current=!1,s.default.dropGestureHandler(this.handlerTag),(0,h.scheduleFlushOperations)();const e=this.props.id;e&&delete d.handlerIDToTag[e],E.MountRegistry.gestureHandlerWillUnmount(this)}onGestureHandlerEvent=e=>{e.nativeEvent.handlerTag===this.handlerTag?'function'==typeof this.props.onGestureEvent&&this.props.onGestureEvent?.(e):this.props.onGestureHandlerEvent?.(e)};onGestureHandlerStateChange=e=>{if(e.nativeEvent.handlerTag===this.handlerTag){'function'==typeof this.props.onHandlerStateChange&&this.props.onHandlerStateChange?.(e);const t=e.nativeEvent.state,n=S[t],r=n&&this.props[n];r&&'function'==typeof r&&r(e)}else this.props.onGestureHandlerStateChange?.(e)};refHandler=e=>{this.viewNode=e;const n=t.Children.only(this.props.children),r=(0,p.isReact19)()?n.props?.ref:n?.ref;r&&('function'==typeof r?r(e):r.current=e)};createGestureHandler=t=>{this.handlerTag=(0,l.getNextHandlerTag)(),this.config=t,s.default.createGestureHandler(e,this.handlerTag,t)};attachGestureHandler=e=>{this.viewTag=e,s.default.attachGestureHandler(this.handlerTag,e,c.ActionType.JS_FUNCTION_OLD_API,this.propsRef),(0,h.scheduleFlushOperations)(),(0,v.ghQueueMicrotask)(()=>{E.MountRegistry.gestureHandlerWillMount(this)})};updateGestureHandler=e=>{this.config=e,s.default.updateGestureHandler(this.handlerTag,e),(0,h.scheduleFlushOperations)()};update(e){if(!this.isMountedRef.current)return;if(N(this.props)&&e>0)(0,v.ghQueueMicrotask)(()=>{this.update(e-1)});else{const e=(0,h.filterConfig)(o?o(this.props):this.props,[...n,...w],r);(0,p.deepEqual)(this.config,e)||this.updateGestureHandler(e)}}setNativeProps(e){const t=Object.assign({},this.props,e),s=(0,h.filterConfig)(o?o(t):t,[...n,...w],r);this.updateGestureHandler(s)}render(){let n=this.onGestureHandlerEvent;const{onGestureEvent:r,onGestureHandlerEvent:s}=this.props;if(r&&'function'!=typeof r){if(s)throw new Error('Nesting touch handlers with native animated driver is not supported yet');n=r}else if(s&&'function'!=typeof s)throw new Error('Nesting touch handlers with native animated driver is not supported yet');let o=this.onGestureHandlerStateChange;const{onHandlerStateChange:d,onGestureHandlerStateChange:l}=this.props;if(d&&'function'!=typeof d){if(l)throw new Error('Nesting touch handlers with native animated driver is not supported yet');o=d}else if(l&&'function'!=typeof l)throw new Error('Nesting touch handlers with native animated driver is not supported yet');const h={onGestureHandlerEvent:this.state.allowTouches?n:void 0,onGestureHandlerStateChange:this.state.allowTouches?o:void 0};this.propsRef.current=h;let u=null;try{u=t.Children.only(this.props.children)}catch(t){throw new Error((0,p.tagMessage)(`${e} got more than one view as a child. If you want the gesture to work on multiple views, wrap them with a common parent and attach the gesture to that view.`))}let c=u.props.children;return t.cloneElement(u,Object.assign({ref:this.refHandler,collapsable:!1},(0,p.isTestEnv)()?{handlerType:e,handlerTag:this.handlerTag,enabled:this.props.enabled}:{},{testID:this.props.testID??u.props.testID},h),c)}}return H}},3309,[17,136,95,274,3310,3250,3244,3246,3311,3312,3297,3247,3313,3314,3307,3284,3315,10]);
15731
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"customDirectEventTypes",{enumerable:!0,get:function(){return t}});const t={}},3310,[]);
15732
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.getNextHandlerTag=function(){return t++};let t=1},3311,[]);
15733
+ __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),_e.filterConfig=function(t,e,n={}){const o=Object.assign({},n);for(const n of e){let e=t[n];u(e,n)&&('simultaneousHandlers'===n||'waitFor'===n?e=s(t[n]):'hitSlop'===n&&'object'!=typeof e&&(e={top:e,left:e,bottom:e,right:e}),o[n]=e)}return o},_e.transformIntoHandlerTags=s,_e.findNodeHandle=function(t){return t},_e.scheduleFlushOperations=function(){f||(f=!0,(0,o.ghQueueMicrotask)(()=>{n.default.flushOperations(),f=!1}))},r(d[0]);t(r(d[1])),r(d[2]);var e=r(d[3]),n=t(r(d[4])),o=r(d[5]);function u(t,e){return void 0!==t&&(t!==Object(t)||!('__isNative'in t))&&'onHandlerStateChange'!==e&&'onGestureEvent'!==e}function s(t){return(t=(0,e.toArray)(t)).map(({current:t})=>t).filter(t=>t)}let f=!1},3312,[136,122,3246,3247,3250,3284]);
15734
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ActionType",{enumerable:!0,get:function(){return _}});const _={REANIMATED_WORKLET:1,NATIVE_ANIMATED_EVENT:2,JS_FUNCTION_OLD_API:3,JS_FUNCTION_NEW_API:4}},3313,[]);
15735
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.PressabilityDebugView=function(){return null}},3314,[]);
15736
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MountRegistry",{enumerable:!0,get:function(){return t}});class t{static mountListeners=new Set;static unmountListeners=new Set;static addMountListener(t){return this.mountListeners.add(t),()=>{this.mountListeners.delete(t)}}static addUnmountListener(t){return this.unmountListeners.add(t),()=>{this.unmountListeners.delete(t)}}static gestureHandlerWillMount(t){this.mountListeners.forEach(n=>n(t))}static gestureHandlerWillUnmount(t){this.unmountListeners.forEach(n=>n(t))}static gestureWillMount(t){this.mountListeners.forEach(n=>n(t))}static gestureWillUnmount(t){this.unmountListeners.forEach(n=>n(t))}}},3315,[]);
15737
+ __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,"forceTouchGestureHandlerProps",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"forceTouchHandlerName",{enumerable:!0,get:function(){return f}}),Object.defineProperty(_e,"ForceTouchGestureHandler",{enumerable:!0,get:function(){return b}});var o=e(r(d[0])),t=r(d[1]),n=e(r(d[2])),c=e(r(d[3])),u=r(d[4]);const l=['minForce','maxForce','feedbackOnActivation'];class s extends o.default.Component{static forceTouchAvailable=!1;componentDidMount(){console.warn((0,t.tagMessage)('ForceTouchGestureHandler is not available on this platform. Please use ForceTouchGestureHandler.forceTouchAvailable to conditionally render other components that would provide a fallback behavior specific to your usecase'))}render(){return this.props.children}}const f='ForceTouchGestureHandler',b=n.default?.forceTouchAvailable?(0,c.default)({name:f,allowedProps:[...u.baseGestureHandlerProps,...l],config:{}}):s;b.forceTouchAvailable=n.default?.forceTouchAvailable||!1},3316,[17,3247,3317,3309,3264]);
15738
+ __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 t}});var t={get forceTouchAvailable(){return!1}}},3317,[]);
15739
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"longPressGestureHandlerProps",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"longPressHandlerName",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"LongPressGestureHandler",{enumerable:!0,get:function(){return l}});var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e},s=r(d[1]);const u=['minDurationMs','maxDist','numberOfPointers'],o='LongPressGestureHandler',l=(0,t.default)({name:o,allowedProps:[...s.baseGestureHandlerProps,...u],config:{shouldCancelWhenOutside:!0}})},3318,[3309,3264]);
15740
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"panGestureHandlerProps",{enumerable:!0,get:function(){return n}}),Object.defineProperty(_e,"panGestureHandlerCustomNativeProps",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"panHandlerName",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"PanGestureHandler",{enumerable:!0,get:function(){return c}}),_e.managePanProps=v;var e,t=r(d[0]),f=(e=t)&&e.__esModule?e:{default:e},s=r(d[1]);const n=['activeOffsetY','activeOffsetX','failOffsetY','failOffsetX','minDist','minVelocity','minVelocityX','minVelocityY','minPointers','maxPointers','avgTouches','enableTrackpadTwoFingerGesture','activateAfterLongPress'],O=['activeOffsetYStart','activeOffsetYEnd','activeOffsetXStart','activeOffsetXEnd','failOffsetYStart','failOffsetYEnd','failOffsetXStart','failOffsetXEnd'],l='PanGestureHandler',c=(0,f.default)({name:l,allowedProps:[...s.baseGestureHandlerProps,...n],config:{},transformProps:v,customNativeProps:O});function o(e){const t=Object.assign({},e);return void 0!==e.activeOffsetX&&(delete t.activeOffsetX,Array.isArray(e.activeOffsetX)?(t.activeOffsetXStart=e.activeOffsetX[0],t.activeOffsetXEnd=e.activeOffsetX[1]):e.activeOffsetX<0?t.activeOffsetXStart=e.activeOffsetX:t.activeOffsetXEnd=e.activeOffsetX),void 0!==e.activeOffsetY&&(delete t.activeOffsetY,Array.isArray(e.activeOffsetY)?(t.activeOffsetYStart=e.activeOffsetY[0],t.activeOffsetYEnd=e.activeOffsetY[1]):e.activeOffsetY<0?t.activeOffsetYStart=e.activeOffsetY:t.activeOffsetYEnd=e.activeOffsetY),void 0!==e.failOffsetX&&(delete t.failOffsetX,Array.isArray(e.failOffsetX)?(t.failOffsetXStart=e.failOffsetX[0],t.failOffsetXEnd=e.failOffsetX[1]):e.failOffsetX<0?t.failOffsetXStart=e.failOffsetX:t.failOffsetXEnd=e.failOffsetX),void 0!==e.failOffsetY&&(delete t.failOffsetY,Array.isArray(e.failOffsetY)?(t.failOffsetYStart=e.failOffsetY[0],t.failOffsetYEnd=e.failOffsetY[1]):e.failOffsetY<0?t.failOffsetYStart=e.failOffsetY:t.failOffsetYEnd=e.failOffsetY),t}function v(e){return o(e)}},3319,[3309,3264]);
15741
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"pinchHandlerName",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"PinchGestureHandler",{enumerable:!0,get:function(){return o}});var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e},u=r(d[1]);const l='PinchGestureHandler',o=(0,t.default)({name:l,allowedProps:u.baseGestureHandlerProps,config:{}})},3320,[3309,3264]);
15742
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"rotationHandlerName",{enumerable:!0,get:function(){return u}}),Object.defineProperty(_e,"RotationGestureHandler",{enumerable:!0,get:function(){return l}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},o=r(d[1]);const u='RotationGestureHandler',l=(0,n.default)({name:u,allowedProps:o.baseGestureHandlerProps,config:{}})},3321,[3309,3264]);
15743
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"flingGestureHandlerProps",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"flingHandlerName",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"FlingGestureHandler",{enumerable:!0,get:function(){return f}});var e,n=r(d[0]),t=(e=n)&&e.__esModule?e:{default:e},u=r(d[1]);const l=['numberOfPointers','direction'],o='FlingGestureHandler',f=(0,t.default)({name:o,allowedProps:[...u.baseGestureHandlerProps,...l],config:{}})},3322,[3309,3264]);
15744
+ __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 l}});var e=r(_d[0]),t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(e),n=r(_d[1]),s=r(_d[2]);const u=[...n.nativeViewProps,'onGestureHandlerEvent','onGestureHandlerStateChange'];function l(l,o={}){const c=t.forwardRef((t,c)=>{const{gestureHandlerProps:d,childProps:p}=Object.keys(t).reduce((e,n)=>(u.includes(n)?e.gestureHandlerProps[n]=t[n]:e.childProps[n]=t[n],e),{gestureHandlerProps:Object.assign({},o),childProps:{enabled:t.enabled,hitSlop:t.hitSlop,testID:t.testID}}),f=(0,e.useRef)(null),b=(0,e.useRef)(null);return(0,e.useImperativeHandle)(c,()=>{const e=b.current;return f.current&&e?(f.current.handlerTag=e.handlerTag,f.current):null},[f,b]),(0,s.jsx)(n.NativeViewGestureHandler,Object.assign({},d,{ref:b,children:(0,s.jsx)(l,Object.assign({},p,{ref:f}))}))});return c.displayName=l?.displayName||l?.render?.name||'string'==typeof l&&l||'ComponentWrapper',c}},3323,[17,3324,10]);
15745
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"nativeViewGestureHandlerProps",{enumerable:!0,get:function(){return o}}),Object.defineProperty(_e,"nativeViewProps",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"nativeViewHandlerName",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"NativeViewGestureHandler",{enumerable:!0,get:function(){return c}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},u=r(d[1]);const o=['shouldActivateOnStart','disallowInterruption'],l=[...u.baseGestureHandlerProps,...o],s='NativeViewGestureHandler',c=(0,n.default)({name:s,allowedProps:l,config:{}})},3324,[3309,3264]);
15746
+ __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,"GestureDetector",{enumerable:!0,get:function(){return w}});var t=r(d[0]),n=e(t);r(d[1]);var s=e(r(d[2]));r(d[3]);var u=e(r(d[4])),o=r(d[5]),c=r(d[6]),f=r(d[7]),l=r(d[8]),R=r(d[9]),v=r(d[10]),h=r(d[11]),p=r(d[12]),E=r(d[13]),g=r(d[14]),b=r(d[15]);function H(e,t){const n=['userSelect','enableContextMenu','touchAction'];for(const s of n){const n=e[s];if(void 0!==n)for(const e of t.toGestureArray()){e.config[s]=n}}}const w=e=>{(0,t.useContext)(u.default);if(!e.gesture)throw new Error('GestureDetector must have a gesture prop provided.');const w=e.gesture;H(e,w);const G=(0,t.useMemo)(()=>w.toGestureArray(),[w]),M=G.some(e=>e.shouldUseReanimated),A=(0,R.useWebEventHandlers)(),_=(0,t.useRef)({firstRender:!0,viewRef:null,previousViewTag:-1,forceRebuildReanimatedEvent:!1}).current,y=n.default.useRef({attachedGestures:[],animatedEventHandler:null,animatedHandlers:null,shouldUseReanimated:M,isMounted:!1}).current,j=(0,h.useDetectorUpdater)(_,y,G,w,A),x=(0,p.useViewRefHandler)(_,j),T=_.firstRender||_.forceRebuildReanimatedEvent||(0,f.needsToReattach)(y,G);return _.forceRebuildReanimatedEvent=!1,(0,o.useAnimatedGesture)(y,T),(0,g.useIsomorphicLayoutEffect)(()=>{const e=(0,s.default)(_.viewRef);return y.isMounted=!0,(0,c.attachHandlers)({preparedGesture:y,gestureConfig:w,gesturesToAttach:G,webEventHandlersRef:A,viewTag:e}),()=>{y.isMounted=!1,(0,l.dropHandlers)(y)}},[]),(0,t.useEffect)(()=>{_.firstRender?_.firstRender=!1:j()},[e]),(0,E.useMountReactions)(j,y),M?(0,b.jsx)(v.AnimatedWrap,{ref:x,onGestureHandlerEvent:y.animatedEventHandler,children:e.children}):(0,b.jsx)(v.Wrap,{ref:x,children:e.children})}},3325,[17,136,3297,3247,3307,3326,3329,3332,3333,3330,3334,3335,3337,3339,3340,10]);
15747
+ __d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useAnimatedGesture=function(o,E){if(!n.Reanimated)return;const A=n.Reanimated.useSharedValue(null),v=n.Reanimated.useSharedValue([]),L=(function({_worklet_1288419065602_init_data:t,sharedHandlersCallbacks:n,isStateChangeEvent:s,State:u,runWorklet:l,CALLBACK_TYPE:o,lastUpdateEvent:E,isTouchEvent:c,stateControllers:_,GestureStateManager:T,TouchEventType:C,touchEventTypeToCallbackType:i}){const A=function(t){const A=n.value;if(A)for(let n=0;n<A.length;n++){const v=A[n];t.handlerTag===v.handlerTag&&(s(t)?t.oldState===u.UNDETERMINED&&t.state===u.BEGAN?l(o.BEGAN,v,t):t.oldState!==u.BEGAN&&t.oldState!==u.UNDETERMINED||t.state!==u.ACTIVE?t.oldState!==t.state&&t.state===u.END?(t.oldState===u.ACTIVE&&l(o.END,v,t,!0),l(o.FINALIZE,v,t,!0)):t.state!==u.FAILED&&t.state!==u.CANCELLED||t.state===t.oldState||(t.oldState===u.ACTIVE&&l(o.END,v,t,!1),l(o.FINALIZE,v,t,!1)):(l(o.START,v,t),E.value[v.handlerTag]=void 0):c(t)?(_[n]&&_[n].handlerTag===t.handlerTag||(_[n]=T.create(t.handlerTag)),t.eventType!==C.UNDETERMINED&&l(i(t.eventType),v,t,_[n])):(l(o.UPDATE,v,t),v.onChange&&v.changeEventCalculator&&(l(o.CHANGE,v,v.changeEventCalculator?.(t,E.value[v.handlerTag])),E.value[v.handlerTag]=t)))}};return A.__closure={sharedHandlersCallbacks:n,isStateChangeEvent:s,State:u,runWorklet:l,CALLBACK_TYPE:o,lastUpdateEvent:E,isTouchEvent:c,stateControllers:_,GestureStateManager:T,TouchEventType:C,touchEventTypeToCallbackType:i},A.__workletHash=1288419065602,A.__initData=t,A})({_worklet_1288419065602_init_data:i,sharedHandlersCallbacks:A,isStateChangeEvent:T,State:u.State,runWorklet:_,CALLBACK_TYPE:t.CALLBACK_TYPE,lastUpdateEvent:v,isTouchEvent:C,stateControllers:[],GestureStateManager:s.GestureStateManager,TouchEventType:l.TouchEventType,touchEventTypeToCallbackType:c}),h=n.Reanimated.useEvent(L,['onGestureHandlerStateChange','onGestureHandlerEvent'],E);o.animatedEventHandler=h,o.animatedHandlers=A};var t=r(d[0]),n=r(d[1]),s=r(d[2]),u=r(d[3]),l=r(d[4]),o=r(d[5]);const E=(function({_worklet_4317557963300_init_data:t,CALLBACK_TYPE:n}){const s=function(t,s){switch(t){case n.BEGAN:return s.onBegin;case n.START:return s.onStart;case n.UPDATE:return s.onUpdate;case n.CHANGE:return s.onChange;case n.END:return s.onEnd;case n.FINALIZE:return s.onFinalize;case n.TOUCHES_DOWN:return s.onTouchesDown;case n.TOUCHES_MOVE:return s.onTouchesMove;case n.TOUCHES_UP:return s.onTouchesUp;case n.TOUCHES_CANCELLED:return s.onTouchesCancelled}};return s.__closure={CALLBACK_TYPE:n},s.__workletHash=4317557963300,s.__initData=t,s})({_worklet_4317557963300_init_data:{code:"function getHandler_reactNativeGestureHandler_useAnimatedGestureJs1(type,gesture){const{CALLBACK_TYPE}=this.__closure;switch(type){case CALLBACK_TYPE.BEGAN:return gesture.onBegin;case CALLBACK_TYPE.START:return gesture.onStart;case CALLBACK_TYPE.UPDATE:return gesture.onUpdate;case CALLBACK_TYPE.CHANGE:return gesture.onChange;case CALLBACK_TYPE.END:return gesture.onEnd;case CALLBACK_TYPE.FINALIZE:return gesture.onFinalize;case CALLBACK_TYPE.TOUCHES_DOWN:return gesture.onTouchesDown;case CALLBACK_TYPE.TOUCHES_MOVE:return gesture.onTouchesMove;case CALLBACK_TYPE.TOUCHES_UP:return gesture.onTouchesUp;case CALLBACK_TYPE.TOUCHES_CANCELLED:return gesture.onTouchesCancelled;}}"},CALLBACK_TYPE:t.CALLBACK_TYPE}),c=(function({_worklet_2039840524711_init_data:t,TouchEventType:n,CALLBACK_TYPE:s}){const u=function(t){switch(t){case n.TOUCHES_DOWN:return s.TOUCHES_DOWN;case n.TOUCHES_MOVE:return s.TOUCHES_MOVE;case n.TOUCHES_UP:return s.TOUCHES_UP;case n.TOUCHES_CANCELLED:return s.TOUCHES_CANCELLED}return s.UNDEFINED};return u.__closure={TouchEventType:n,CALLBACK_TYPE:s},u.__workletHash=2039840524711,u.__initData=t,u})({_worklet_2039840524711_init_data:{code:"function touchEventTypeToCallbackType_reactNativeGestureHandler_useAnimatedGestureJs2(eventType){const{TouchEventType,CALLBACK_TYPE}=this.__closure;switch(eventType){case TouchEventType.TOUCHES_DOWN:return CALLBACK_TYPE.TOUCHES_DOWN;case TouchEventType.TOUCHES_MOVE:return CALLBACK_TYPE.TOUCHES_MOVE;case TouchEventType.TOUCHES_UP:return CALLBACK_TYPE.TOUCHES_UP;case TouchEventType.TOUCHES_CANCELLED:return CALLBACK_TYPE.TOUCHES_CANCELLED;}return CALLBACK_TYPE.UNDEFINED;}"},TouchEventType:l.TouchEventType,CALLBACK_TYPE:t.CALLBACK_TYPE}),_=(function({_worklet_5108402624264_init_data:t,getHandler:n,tagMessage:s}){const u=function(t,u,l,...o){const E=n(t,u);u.isWorklet[t]?E?.(l,...o):E&&console.warn(s('Animated gesture callback must be a worklet'))};return u.__closure={getHandler:n,tagMessage:s},u.__workletHash=5108402624264,u.__initData=t,u})({_worklet_5108402624264_init_data:{code:"function runWorklet_reactNativeGestureHandler_useAnimatedGestureJs3(type,gesture,event,...args){const{getHandler,tagMessage}=this.__closure;const handler=getHandler(type,gesture);if(gesture.isWorklet[type]){handler===null||handler===void 0||handler(event,...args);}else if(handler){console.warn(tagMessage('Animated gesture callback must be a worklet'));}}"},getHandler:E,tagMessage:o.tagMessage}),T=(function({_worklet_7889847699524_init_data:t}){const n=function(t){return null!=t.oldState};return n.__closure={},n.__workletHash=7889847699524,n.__initData=t,n})({_worklet_7889847699524_init_data:{code:"function isStateChangeEvent_reactNativeGestureHandler_useAnimatedGestureJs4(event){return event.oldState!=null;}"}}),C=(function({_worklet_13087507825621_init_data:t}){const n=function(t){return null!=t.eventType};return n.__closure={},n.__workletHash=0xbe72c4143d5,n.__initData=t,n})({_worklet_13087507825621_init_data:{code:"function isTouchEvent_reactNativeGestureHandler_useAnimatedGestureJs5(event){return event.eventType!=null;}"}}),i={code:"function reactNativeGestureHandler_useAnimatedGestureJs6(event){const{sharedHandlersCallbacks,isStateChangeEvent,State,runWorklet,CALLBACK_TYPE,lastUpdateEvent,isTouchEvent,stateControllers,GestureStateManager,TouchEventType,touchEventTypeToCallbackType}=this.__closure;const currentCallback=sharedHandlersCallbacks.value;if(!currentCallback){return;}for(let i=0;i<currentCallback.length;i++){const gesture=currentCallback[i];if(event.handlerTag!==gesture.handlerTag){continue;}if(isStateChangeEvent(event)){if(event.oldState===State.UNDETERMINED&&event.state===State.BEGAN){runWorklet(CALLBACK_TYPE.BEGAN,gesture,event);}else if((event.oldState===State.BEGAN||event.oldState===State.UNDETERMINED)&&event.state===State.ACTIVE){runWorklet(CALLBACK_TYPE.START,gesture,event);lastUpdateEvent.value[gesture.handlerTag]=undefined;}else if(event.oldState!==event.state&&event.state===State.END){if(event.oldState===State.ACTIVE){runWorklet(CALLBACK_TYPE.END,gesture,event,true);}runWorklet(CALLBACK_TYPE.FINALIZE,gesture,event,true);}else if((event.state===State.FAILED||event.state===State.CANCELLED)&&event.state!==event.oldState){if(event.oldState===State.ACTIVE){runWorklet(CALLBACK_TYPE.END,gesture,event,false);}runWorklet(CALLBACK_TYPE.FINALIZE,gesture,event,false);}}else if(isTouchEvent(event)){if(!stateControllers[i]||stateControllers[i].handlerTag!==event.handlerTag){stateControllers[i]=GestureStateManager.create(event.handlerTag);}if(event.eventType!==TouchEventType.UNDETERMINED){runWorklet(touchEventTypeToCallbackType(event.eventType),gesture,event,stateControllers[i]);}}else{runWorklet(CALLBACK_TYPE.UPDATE,gesture,event);if(gesture.onChange&&gesture.changeEventCalculator){var _gesture$changeEventC;runWorklet(CALLBACK_TYPE.CHANGE,gesture,(_gesture$changeEventC=gesture.changeEventCalculator)===null||_gesture$changeEventC===void 0?void 0:_gesture$changeEventC.call(gesture,event,lastUpdateEvent.value[gesture.handlerTag]));lastUpdateEvent.value[gesture.handlerTag]=event;}}}}"}},3326,[3327,3328,3248,3244,3245,3247]);
15748
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"CALLBACK_TYPE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"Gesture",{enumerable:!0,get:function(){return h}}),Object.defineProperty(e,"BaseGesture",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"ContinousBaseGesture",{enumerable:!0,get:function(){return u}});var t=r(d[0]),s=r(d[1]);const n={UNDEFINED:0,BEGAN:1,START:2,UPDATE:3,CHANGE:4,END:5,FINALIZE:6,TOUCHES_DOWN:7,TOUCHES_MOVE:8,TOUCHES_UP:9,TOUCHES_CANCELLED:10};class h{}let o=0;class l extends h{gestureId=-1;handlerTag=-1;handlerName='';config={};handlers={gestureId:-1,handlerTag:-1,isWorklet:[]};constructor(){super(),this.gestureId=o++,this.handlers.gestureId=this.gestureId}addDependency(t,s){const n=this.config[t];this.config[t]=n?Array().concat(n,s):[s]}withRef(t){return this.config.ref=t,this}isWorklet(t){return void 0!==t.__workletHash}onBegin(t){return this.handlers.onBegin=t,this.handlers.isWorklet[n.BEGAN]=this.isWorklet(t),this}onStart(t){return this.handlers.onStart=t,this.handlers.isWorklet[n.START]=this.isWorklet(t),this}onEnd(t){return this.handlers.onEnd=t,this.handlers.isWorklet[n.END]=this.isWorklet(t),this}onFinalize(t){return this.handlers.onFinalize=t,this.handlers.isWorklet[n.FINALIZE]=this.isWorklet(t),this}onTouchesDown(t){return this.config.needsPointerData=!0,this.handlers.onTouchesDown=t,this.handlers.isWorklet[n.TOUCHES_DOWN]=this.isWorklet(t),this}onTouchesMove(t){return this.config.needsPointerData=!0,this.handlers.onTouchesMove=t,this.handlers.isWorklet[n.TOUCHES_MOVE]=this.isWorklet(t),this}onTouchesUp(t){return this.config.needsPointerData=!0,this.handlers.onTouchesUp=t,this.handlers.isWorklet[n.TOUCHES_UP]=this.isWorklet(t),this}onTouchesCancelled(t){return this.config.needsPointerData=!0,this.handlers.onTouchesCancelled=t,this.handlers.isWorklet[n.TOUCHES_CANCELLED]=this.isWorklet(t),this}enabled(t){return this.config.enabled=t,this}shouldCancelWhenOutside(t){return this.config.shouldCancelWhenOutside=t,this}hitSlop(t){return this.config.hitSlop=t,this}activeCursor(t){return this.config.activeCursor=t,this}mouseButton(t){return this.config.mouseButton=t,this}runOnJS(t){return this.config.runOnJS=t,this}simultaneousWithExternalGesture(...t){for(const s of t)s&&this.addDependency('simultaneousWith',s);return this}requireExternalGestureToFail(...t){for(const s of t)s&&this.addDependency('requireToFail',s);return this}blocksExternalGesture(...t){for(const s of t)s&&this.addDependency('blocksHandlers',s);return this}withTestId(t){return this.config.testId=t,this}cancelsTouchesInView(t){return this.config.cancelsTouchesInView=t,this}initialize(){this.handlerTag=(0,t.getNextHandlerTag)(),this.handlers=Object.assign({},this.handlers,{handlerTag:this.handlerTag}),this.config.ref&&(this.config.ref.current=this)}toGestureArray(){return[this]}prepare(){}get shouldUseReanimated(){return!0!==this.config.runOnJS&&!this.handlers.isWorklet.includes(!1)&&!(0,s.isRemoteDebuggingEnabled)()}}class u extends l{onUpdate(t){return this.handlers.onUpdate=t,this.handlers.isWorklet[n.UPDATE]=this.isWorklet(t),this}onChange(t){return this.handlers.onChange=t,this.handlers.isWorklet[n.CHANGE]=this.isWorklet(t),this}manualActivation(t){return this.config.manualActivation=t,this}}},3327,[3311,3247]);
15749
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Reanimated",{enumerable:!0,get:function(){return t}});var e=r(d[0]);let t;try{t=r(d[1],"react-native-reanimated")}catch(e){t=void 0}t?.useSharedValue||(t=void 0);const s={code:"function reactNativeGestureHandler_reanimatedWrapperJs1(){const{tagMessage}=this.__closure;console.warn(tagMessage('Please use newer version of react-native-reanimated in order to control state of the gestures.'));}"};void 0===t||t.setGestureState||(t.setGestureState=(function({_worklet_7298969188432_init_data:e,tagMessage:t}){const s=function(){console.warn(t('Please use newer version of react-native-reanimated in order to control state of the gestures.'))};return s.__closure={tagMessage:t},s.__workletHash=7298969188432,s.__initData=e,s})({_worklet_7298969188432_init_data:s,tagMessage:e.tagMessage}))},3328,[3247,2714]);
15750
+ __d(function(_g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.attachHandlers=function({preparedGesture:e,gestureConfig:n,gesturesToAttach:g,viewTag:h,webEventHandlersRef:_}){n.initialize(),(0,u.ghQueueMicrotask)(()=>{e.isMounted&&n.prepare()});for(const e of g)(0,c.checkGestureCallbacksForWorklets)(e),s.default.createGestureHandler(e.handlerName,e.handlerTag,(0,o.filterConfig)(e.config,c.ALLOWED_PROPS)),(0,t.registerHandler)(e.handlerTag,e,e.config.testId);(0,u.ghQueueMicrotask)(()=>{if(e.isMounted){for(const e of g)s.default.updateGestureHandler(e.handlerTag,(0,o.filterConfig)(e.config,c.ALLOWED_PROPS,(0,c.extractGestureRelations)(e)));(0,o.scheduleFlushOperations)()}});for(const e of g){e.shouldUseReanimated?l.ActionType.REANIMATED_WORKLET:l.ActionType.JS_FUNCTION_NEW_API;s.default.attachGestureHandler(e.handlerTag,h,l.ActionType.JS_FUNCTION_OLD_API,_),f.MountRegistry.gestureWillMount(e)}if(e.attachedGestures=g,e.animatedHandlers){const t=e=>e.shouldUseReanimated;e.animatedHandlers.value=g.filter(t).map(e=>e.handlers)}};var e,t=r(d[0]),n=r(d[1]),s=(e=n)&&e.__esModule?e:{default:e},o=r(d[2]),l=r(d[3]);r(d[4]);var u=r(d[5]),c=r(d[6]),f=r(d[7])},3329,[3246,3250,3312,3313,136,3284,3330,3315]);
15751
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"ALLOWED_PROPS",{enumerable:!0,get:function(){return G}}),_e.extractGestureRelations=function(e){return e.config.requireToFail=P(e.config.requireToFail),e.config.simultaneousWith=P(e.config.simultaneousWith),e.config.blocksHandlers=P(e.config.blocksHandlers),{waitFor:e.config.requireToFail,simultaneousHandlers:e.config.simultaneousWith,blocksHandlers:e.config.blocksHandlers}},_e.checkGestureCallbacksForWorklets=function(e){return},_e.useForceRender=function(){const[n,t]=(0,e.useState)(!1);return(0,e.useCallback)(()=>{t(!n)},[n,t])},_e.useWebEventHandlers=function(){return(0,e.useRef)({onGestureHandlerEvent:e=>{(0,p.onGestureHandlerEvent)(e.nativeEvent)},onGestureHandlerStateChange:(0,H.isNewWebImplementationEnabled)()?e=>{(0,p.onGestureHandlerEvent)(e.nativeEvent)}:void 0})};var e=r(d[0]),n=(r(d[1]),r(d[2])),t=r(d[3]),o=r(d[4]),s=r(d[5]),u=r(d[6]),l=r(d[7]),c=r(d[8]),f=r(d[9]),_=r(d[10]),H=r(d[11]),p=(r(d[12]),r(d[13]));const G=[..._.baseGestureHandlerWithDetectorProps,...l.tapGestureHandlerProps,...u.panGestureHandlerProps,...u.panGestureHandlerCustomNativeProps,...s.longPressGestureHandlerProps,...o.forceTouchGestureHandlerProps,...t.flingGestureHandlerProps,...c.hoverGestureHandlerProps,...f.nativeViewGestureHandlerProps],b=(function({_worklet_15931153665387_init_data:e}){const n=function(){};return n.__closure={},n.__workletHash=0xe7d42c14d6b,n.__initData=e,n})({_worklet_15931153665387_init_data:{code:"function emptyWorklet_reactNativeGestureHandler_utilsJs1(){}"}});b.__workletHash;function v(e){return'number'==typeof e?e:e instanceof n.BaseGesture?e.handlerTag:e.current?.handlerTag??-1}function P(e){return Array.from(new Set(e?.map(v)?.filter(e=>e>0)??[]))}},3330,[17,3247,3327,3322,3316,3318,3319,3308,3331,3324,3264,3251,3328,3243]);
15752
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"HoverEffect",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"hoverGestureHandlerProps",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"HoverGesture",{enumerable:!0,get:function(){return u}});var n=r(d[0]);let t=(function(n){return n[n.NONE=0]="NONE",n[n.LIFT=1]="LIFT",n[n.HIGHLIGHT=2]="HIGHLIGHT",n})({});const c=['hoverEffect'],o=(function({_worklet_15895574323364_init_data:n}){const t=function(n,t){let c;return c=void 0===t?{changeX:n.x,changeY:n.y}:{changeX:n.x-t.x,changeY:n.y-t.y},Object.assign({},n,c)};return t.__closure={},t.__workletHash=0xe74fa0fa0a4,t.__initData=n,t})({_worklet_15895574323364_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_hoverGestureJs1(current,previous){let changePayload;if(previous===undefined){changePayload={changeX:current.x,changeY:current.y};}else{changePayload={changeX:current.x-previous.x,changeY:current.y-previous.y};}return{...current,...changePayload};}"}});class u extends n.ContinousBaseGesture{config={};constructor(){super(),this.handlerName='HoverGestureHandler'}effect(n){return this.config.hoverEffect=n,this}onChange(n){return this.handlers.changeEventCalculator=o,super.onChange(n)}}},3331,[3327]);
15753
+ __d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.needsToReattach=function(t,n){if(n.length!==t.attachedGestures.length)return!0;for(let s=0;s<n.length;s++)if(n[s].handlerName!==t.attachedGestures[s].handlerName||n[s].shouldUseReanimated!==t.attachedGestures[s].shouldUseReanimated)return!0;return!1}},3332,[]);
15754
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.dropHandlers=function(e){for(const n of e.attachedGestures)s.default.dropGestureHandler(n.handlerTag),(0,t.unregisterHandler)(n.handlerTag,n.config.testId),l.MountRegistry.gestureWillUnmount(n);(0,u.scheduleFlushOperations)()};var e,t=r(d[0]),n=r(d[1]),s=(e=n)&&e.__esModule?e:{default:e},u=r(d[2]),l=r(d[3])},3333,[3246,3250,3312,3315]);
15755
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Wrap",{enumerable:!0,get:function(){return l}}),Object.defineProperty(_e,"AnimatedWrap",{enumerable:!0,get:function(){return s}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},o=r(d[1]),u=r(d[2]),c=r(d[3]);const l=(0,t.forwardRef)(({children:e},t)=>{try{const o=n.default.Children.only(e);if((0,u.isRNSVGNode)(o)){return n.default.cloneElement(o,{ref:t},o.props.children)}return(0,c.jsx)("div",{ref:t,style:{display:'contents'},children:o})}catch(e){throw new Error((0,o.tagMessage)("GestureDetector got more than one view as a child. If you want the gesture to work on multiple views, wrap them with a common parent and attach the gesture to that view."))}}),s=l},3334,[17,3247,3274,10]);
15756
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useDetectorUpdater=function(e,c,p,v,R){const _=(0,f.useForceRender)();return(0,t.useCallback)(t=>{const f=(0,l.default)(e.viewRef),w=f!==e.previousViewTag;w||(0,n.needsToReattach)(c,p)?((0,o.dropHandlers)(c),(0,s.attachHandlers)({preparedGesture:c,gestureConfig:v,gesturesToAttach:p,webEventHandlersRef:R,viewTag:f}),w&&(e.previousViewTag=f,e.forceRebuildReanimatedEvent=!0,_())):t||(0,u.updateHandlers)(c,v,p)},[_,v,p,c,e,R])};var e,t=r(d[0]),s=r(d[1]),u=r(d[2]),n=r(d[3]),o=r(d[4]),c=r(d[5]),l=(e=c)&&e.__esModule?e:{default:e},f=r(d[6])},3335,[17,3329,3336,3332,3333,3297,3330]);
15757
+ __d(function(_g,r,_i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.updateHandlers=function(e,n,o){n.prepare();for(let t=0;t<o.length;t++){const n=e.attachedGestures[t];(0,h.checkGestureCallbacksForWorklets)(n),o[t].handlerTag!==n.handlerTag&&(o[t].handlerTag=n.handlerTag,o[t].handlers.handlerTag=n.handlerTag)}const i=e.attachedGestures;(0,u.ghQueueMicrotask)(()=>{if(!e.isMounted)return;if(i!==e.attachedGestures)return;let n=i.length!==o.length;for(let e=0;e<o.length;e++){const u=i[e];u.handlers.gestureId!==o[e].handlers.gestureId&&(o[e].shouldUseReanimated||u.shouldUseReanimated)&&(n=!0),u.config=o[e].config,u.handlers=o[e].handlers,s.default.updateGestureHandler(u.handlerTag,(0,l.filterConfig)(u.config,h.ALLOWED_PROPS,(0,h.extractGestureRelations)(u))),(0,t.registerHandler)(u.handlerTag,u,u.config.testId)}if(e.animatedHandlers&&n){const t=i.filter(e=>e.shouldUseReanimated).map(e=>e.handlers);e.animatedHandlers.value=t}(0,l.scheduleFlushOperations)()})};var e,t=r(d[0]),n=r(d[1]),s=(e=n)&&e.__esModule?e:{default:e},l=r(d[2]),u=r(d[3]),h=r(d[4])},3336,[3246,3250,3312,3284,3330]);
15758
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useViewRefHandler=function(e,l){return(0,u.useCallback)(u=>{null!==u&&(e.viewRef=u,-1===e.previousViewTag&&(e.previousViewTag=(0,t.default)(e.viewRef)),e.firstRender||l(!0))},[e,l])},r(d[0]),r(d[1]);var e,u=r(d[2]),l=r(d[3]),t=(e=l)&&e.__esModule?e:{default:e}},3337,[3247,3338,17,3297]);
15759
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.getShadowNodeFromRef=function(t){return null}},3338,[]);
15760
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useMountReactions=function(n,u){(0,o.useEffect)(()=>t.MountRegistry.addMountListener(t=>{for(const o of u.attachedGestures){const u=o.config.blocksHandlers,f=o.config.requireToFail,c=o.config.simultaneousWith;if(s(u,t)||s(f,t)||s(c,t))return void n()}}),[n,u])};var n=r(d[0]),t=r(d[1]),o=r(d[2]);function s(t,o){if(void 0===t)return!1;for(const s of(0,n.transformIntoHandlerTags)(t))if(s===o.handlerTag)return!0;return!1}},3339,[3312,3315,17]);
15761
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"useIsomorphicLayoutEffect",{enumerable:!0,get:function(){return f}});var e,t=r(d[0]),o=(e=t)&&e.__esModule?e:{default:e};const n=!('undefined'==typeof window||void 0===window.document||void 0===window.document.createElement),u='undefined'!=typeof navigator&&'ReactNative'===navigator.product,f=n||u?o.default.useLayoutEffect:o.default.useEffect},3340,[17]);
15762
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"GestureObjects",{enumerable:!0,get:function(){return p}});var n=r(d[0]),t=r(d[1]),u=r(d[2]),s=r(d[3]),o=r(d[4]),c=r(d[5]),G=r(d[6]),w=r(d[7]),l=r(d[8]),v=r(d[9]),P=r(d[10]);const p={Tap:()=>new w.TapGesture,Pan:()=>new o.PanGesture,Pinch:()=>new c.PinchGesture,Rotation:()=>new G.RotationGesture,Fling:()=>new n.FlingGesture,LongPress:()=>new s.LongPressGesture,ForceTouch:()=>new t.ForceTouchGesture,Native:()=>new l.NativeGesture,Manual:()=>new v.ManualGesture,Hover:()=>new P.HoverGesture,Race:(...n)=>new u.ComposedGesture(...n),Simultaneous:(...n)=>new u.SimultaneousGesture(...n),Exclusive:(...n)=>new u.ExclusiveGesture(...n)}},3341,[3342,3343,3344,3345,3346,3347,3348,3349,3350,3351,3331]);
15763
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"FlingGesture",{enumerable:!0,get:function(){return n}});var t=r(d[0]);class n extends t.BaseGesture{config={};constructor(){super(),this.handlerName='FlingGestureHandler'}numberOfPointers(t){return this.config.numberOfPointers=t,this}direction(t){return this.config.direction=t,this}}},3342,[3327]);
15764
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ForceTouchGesture",{enumerable:!0,get:function(){return c}});var n=r(d[0]);const t=(function({_worklet_6555184671956_init_data:n}){const t=function(n,t){let c;return c=void 0===t?{forceChange:n.force}:{forceChange:n.force-t.force},Object.assign({},n,c)};return t.__closure={},t.__workletHash=6555184671956,t.__initData=n,t})({_worklet_6555184671956_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_forceTouchGestureJs1(current,previous){let changePayload;if(previous===undefined){changePayload={forceChange:current.force};}else{changePayload={forceChange:current.force-previous.force};}return{...current,...changePayload};}"}});class c extends n.ContinousBaseGesture{config={};constructor(){super(),this.handlerName='ForceTouchGestureHandler'}minForce(n){return this.config.minForce=n,this}maxForce(n){return this.config.maxForce=n,this}feedbackOnActivation(n){return this.config.feedbackOnActivation=n,this}onChange(n){return this.handlers.changeEventCalculator=t,super.onChange(n)}}},3343,[3327]);
15765
+ __d(function(g,r,_i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ComposedGesture",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"SimultaneousGesture",{enumerable:!0,get:function(){return i}}),Object.defineProperty(e,"ExclusiveGesture",{enumerable:!0,get:function(){return n}});var s=r(d[0]);function t(s,t){return void 0===s?[...t]:[...s,...t]}class u extends s.Gesture{gestures=[];simultaneousGestures=[];requireGesturesToFail=[];constructor(...s){super(),this.gestures=s}prepareSingleGesture(i,n,o){if(i instanceof s.BaseGesture){const s=Object.assign({},i.config);s.simultaneousWith=t(s.simultaneousWith,n),s.requireToFail=t(s.requireToFail,o),i.config=s}else i instanceof u&&(i.simultaneousGestures=n,i.requireGesturesToFail=o,i.prepare())}prepare(){for(const s of this.gestures)this.prepareSingleGesture(s,this.simultaneousGestures,this.requireGesturesToFail)}initialize(){for(const s of this.gestures)s.initialize()}toGestureArray(){return this.gestures.flatMap(s=>s.toGestureArray())}}class i extends u{prepare(){const s=this.gestures.map(s=>this.gestures.filter(t=>t!==s).flatMap(s=>s.toGestureArray()));for(let t=0;t<this.gestures.length;t++)this.prepareSingleGesture(this.gestures[t],s[t],this.requireGesturesToFail)}}class n extends u{prepare(){const s=this.gestures.map(s=>s.toGestureArray());let t=[];for(let u=0;u<this.gestures.length;u++)this.prepareSingleGesture(this.gestures[u],this.simultaneousGestures,this.requireGesturesToFail.concat(t)),t=t.concat(s[u])}}},3344,[3327]);
15766
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"LongPressGesture",{enumerable:!0,get:function(){return n}});var t=r(d[0]);class n extends t.BaseGesture{config={};constructor(){super(),this.handlerName='LongPressGestureHandler',this.shouldCancelWhenOutside(!0)}minDuration(t){return this.config.minDurationMs=t,this}maxDistance(t){return this.config.maxDist=t,this}numberOfPointers(t){return this.config.numberOfPointers=t,this}}},3345,[3327]);
15767
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PanGesture",{enumerable:!0,get:function(){return s}});var t=r(d[0]);const n=(function({_worklet_6591024890621_init_data:t}){const n=function(t,n){let s;return s=void 0===n?{changeX:t.translationX,changeY:t.translationY}:{changeX:t.translationX-n.translationX,changeY:t.translationY-n.translationY},Object.assign({},t,s)};return n.__closure={},n.__workletHash=6591024890621,n.__initData=t,n})({_worklet_6591024890621_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_panGestureJs1(current,previous){let changePayload;if(previous===undefined){changePayload={changeX:current.translationX,changeY:current.translationY};}else{changePayload={changeX:current.translationX-previous.translationX,changeY:current.translationY-previous.translationY};}return{...current,...changePayload};}"}});class s extends t.ContinousBaseGesture{config={};constructor(){super(),this.handlerName='PanGestureHandler'}activeOffsetY(t){return Array.isArray(t)?(this.config.activeOffsetYStart=t[0],this.config.activeOffsetYEnd=t[1]):t<0?this.config.activeOffsetYStart=t:this.config.activeOffsetYEnd=t,this}activeOffsetX(t){return Array.isArray(t)?(this.config.activeOffsetXStart=t[0],this.config.activeOffsetXEnd=t[1]):t<0?this.config.activeOffsetXStart=t:this.config.activeOffsetXEnd=t,this}failOffsetY(t){return Array.isArray(t)?(this.config.failOffsetYStart=t[0],this.config.failOffsetYEnd=t[1]):t<0?this.config.failOffsetYStart=t:this.config.failOffsetYEnd=t,this}failOffsetX(t){return Array.isArray(t)?(this.config.failOffsetXStart=t[0],this.config.failOffsetXEnd=t[1]):t<0?this.config.failOffsetXStart=t:this.config.failOffsetXEnd=t,this}minPointers(t){return this.config.minPointers=t,this}maxPointers(t){return this.config.maxPointers=t,this}minDistance(t){return this.config.minDist=t,this}minVelocity(t){return this.config.minVelocity=t,this}minVelocityX(t){return this.config.minVelocityX=t,this}minVelocityY(t){return this.config.minVelocityY=t,this}averageTouches(t){return this.config.avgTouches=t,this}enableTrackpadTwoFingerGesture(t){return this.config.enableTrackpadTwoFingerGesture=t,this}activateAfterLongPress(t){return this.config.activateAfterLongPress=t,this}onChange(t){return this.handlers.changeEventCalculator=n,super.onChange(t)}}},3346,[3327]);
15768
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PinchGesture",{enumerable:!0,get:function(){return c}});var n=r(d[0]);const t=(function({_worklet_168466708215_init_data:n}){const t=function(n,t){let c;return c=void 0===t?{scaleChange:n.scale}:{scaleChange:n.scale/t.scale},Object.assign({},n,c)};return t.__closure={},t.__workletHash=168466708215,t.__initData=n,t})({_worklet_168466708215_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_pinchGestureJs1(current,previous){let changePayload;if(previous===undefined){changePayload={scaleChange:current.scale};}else{changePayload={scaleChange:current.scale/previous.scale};}return{...current,...changePayload};}"}});class c extends n.ContinousBaseGesture{constructor(){super(),this.handlerName='PinchGestureHandler'}onChange(n){return this.handlers.changeEventCalculator=t,super.onChange(n)}}},3347,[3327]);
15769
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"RotationGesture",{enumerable:!0,get:function(){return o}});var t=r(d[0]);const n=(function({_worklet_3631609729009_init_data:t}){const n=function(t,n){let o;return o=void 0===n?{rotationChange:t.rotation}:{rotationChange:t.rotation-n.rotation},Object.assign({},t,o)};return n.__closure={},n.__workletHash=3631609729009,n.__initData=t,n})({_worklet_3631609729009_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_rotationGestureJs1(current,previous){let changePayload;if(previous===undefined){changePayload={rotationChange:current.rotation};}else{changePayload={rotationChange:current.rotation-previous.rotation};}return{...current,...changePayload};}"}});class o extends t.ContinousBaseGesture{constructor(){super(),this.handlerName='RotationGestureHandler'}onChange(t){return this.handlers.changeEventCalculator=n,super.onChange(t)}}},3348,[3327]);
15770
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"TapGesture",{enumerable:!0,get:function(){return n}});var t=r(d[0]);class n extends t.BaseGesture{config={};constructor(){super(),this.handlerName='TapGestureHandler',this.shouldCancelWhenOutside(!0)}minPointers(t){return this.config.minPointers=t,this}numberOfTaps(t){return this.config.numberOfTaps=t,this}maxDistance(t){return this.config.maxDist=t,this}maxDuration(t){return this.config.maxDurationMs=t,this}maxDelay(t){return this.config.maxDelayMs=t,this}maxDeltaX(t){return this.config.maxDeltaX=t,this}maxDeltaY(t){return this.config.maxDeltaY=t,this}}},3349,[3327]);
15771
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"NativeGesture",{enumerable:!0,get:function(){return n}});var t=r(d[0]);class n extends t.BaseGesture{config={};constructor(){super(),this.handlerName='NativeViewGestureHandler'}shouldActivateOnStart(t){return this.config.shouldActivateOnStart=t,this}disallowInterruption(t){return this.config.disallowInterruption=t,this}}},3350,[3327]);
15772
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"ManualGesture",{enumerable:!0,get:function(){return u}});var t=r(d[0]);const n=(function({_worklet_8341633256781_init_data:t}){const n=function(t,n){return t};return n.__closure={},n.__workletHash=8341633256781,n.__initData=t,n})({_worklet_8341633256781_init_data:{code:"function changeEventCalculator_reactNativeGestureHandler_manualGestureJs1(current,_previous){return current;}"}});class u extends t.ContinousBaseGesture{constructor(){super(),this.handlerName='ManualGestureHandler'}onChange(t){return this.handlers.changeEventCalculator=n,super.onChange(t)}}},3351,[3327]);
15773
+ __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["rippleColor","style"],t=["children","style"],s=["children","style","innerRef"];function n(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"PureNativeButton",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(_e,"RawButton",{enumerable:!0,get:function(){return y}}),Object.defineProperty(_e,"BaseButton",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"RectButton",{enumerable:!0,get:function(){return E}}),Object.defineProperty(_e,"BorderlessButton",{enumerable:!0,get:function(){return T}});var o=n(r(_d[0])),l=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(s){var n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:function(){return e[s]}})}),t.default=e,t})(r(_d[1])),c=n(r(_d[2]));r(_d[3]);var u=n(r(_d[4])),d=n(r(_d[5])),p=n(r(_d[6])),h=n(r(_d[7])),f=r(_d[8]),v=r(_d[9]),b=r(_d[10]);const y=(0,p.default)(h.default,{shouldCancelWhenOutside:!1,shouldActivateOnStart:!1});let C=null;class P extends l.Component{static defaultProps={delayLongPress:600};constructor(e){super(e),this.lastActive=!1,this.longPressDetected=!1}handleEvent=({nativeEvent:e})=>{const{state:t,oldState:s,pointerInside:n}=e,o=n&&t===f.State.ACTIVE;o!==this.lastActive&&this.props.onActiveStateChange&&this.props.onActiveStateChange(o),!this.longPressDetected&&s===f.State.ACTIVE&&t!==f.State.CANCELLED&&this.lastActive&&this.props.onPress&&this.props.onPress(n),!this.lastActive&&t===f.State.ACTIVE&&n?(this.longPressDetected=!1,this.props.onLongPress&&(this.longPressTimeout=setTimeout(this.onLongPress,this.props.delayLongPress))):(t!==f.State.ACTIVE||n||void 0===this.longPressTimeout)&&(void 0===this.longPressTimeout||t!==f.State.END&&t!==f.State.CANCELLED&&t!==f.State.FAILED)||(clearTimeout(this.longPressTimeout),this.longPressTimeout=void 0),this.lastActive=o};onLongPress=()=>{this.longPressDetected=!0,this.props.onLongPress?.()};onHandlerStateChange=e=>{this.props.onHandlerStateChange?.(e),this.handleEvent(e)};onGestureEvent=e=>{this.props.onGestureEvent?.(e),this.handleEvent(e)};render(){const t=this.props,{rippleColor:s,style:n}=t,l=(0,o.default)(t,e);null===C&&(C=(0,v.isFabric)());const c=C?s:(0,u.default)(s??void 0);return(0,b.jsx)(y,Object.assign({ref:this.props.innerRef,rippleColor:c,style:[n,!1]},l,{onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.onHandlerStateChange}))}}const R=c.default.createAnimatedComponent(P),j=l.forwardRef((e,t)=>(0,b.jsx)(P,Object.assign({innerRef:t},e))),A=l.forwardRef((e,t)=>(0,b.jsx)(R,Object.assign({innerRef:t},e))),S=d.default.create({underlay:{position:'absolute',left:0,right:0,bottom:0,top:0}});class O extends l.Component{static defaultProps={activeOpacity:.105,underlayColor:'black'};constructor(e){super(e),this.opacity=new c.default.Value(0)}onActiveStateChange=e=>{this.opacity.setValue(e?this.props.activeOpacity:0),this.props.onActiveStateChange?.(e)};render(){const e=this.props,{children:s,style:n}=e,l=(0,o.default)(e,t),u=d.default.flatten(n)??{};return(0,b.jsxs)(j,Object.assign({},l,{ref:this.props.innerRef,style:u,onActiveStateChange:this.onActiveStateChange,children:[(0,b.jsx)(c.default.View,{style:[S.underlay,{opacity:this.opacity,backgroundColor:this.props.underlayColor,borderRadius:u.borderRadius,borderTopLeftRadius:u.borderTopLeftRadius,borderTopRightRadius:u.borderTopRightRadius,borderBottomLeftRadius:u.borderBottomLeftRadius,borderBottomRightRadius:u.borderBottomRightRadius}]}),s]}))}}const E=l.forwardRef((e,t)=>(0,b.jsx)(O,Object.assign({innerRef:t},e)));class L extends l.Component{static defaultProps={activeOpacity:.3,borderless:!0};constructor(e){super(e),this.opacity=new c.default.Value(1)}onActiveStateChange=e=>{this.opacity.setValue(e?this.props.activeOpacity:1),this.props.onActiveStateChange?.(e)};render(){const e=this.props,{children:t,style:n,innerRef:l}=e,c=(0,o.default)(e,s);return(0,b.jsx)(A,Object.assign({},c,{innerRef:l,onActiveStateChange:this.onActiveStateChange,style:[n,!1],children:t}))}}const T=l.forwardRef((e,t)=>(0,b.jsx)(L,Object.assign({innerRef:t},e)))},3352,[120,17,134,136,40,33,3323,3353,3244,3247,10]);
15774
+ __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 o}});var e,t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),n=r(_d[1]),u=(e=n)&&e.__esModule?e:{default:e},f=r(_d[2]),o=t.forwardRef((e,t)=>(0,f.jsx)(u.default,Object.assign({ref:t,accessibilityRole:"button"},e)))},3353,[17,20,10]);
15775
+ __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,"TouchableNativeFeedback",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(_e,"TouchableWithoutFeedback",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(_e,"TouchableOpacity",{enumerable:!0,get:function(){return n.default}}),Object.defineProperty(_e,"TouchableHighlight",{enumerable:!0,get:function(){return c.default}});var t=e(r(d[0])),u=e(r(d[1])),n=e(r(d[2])),c=e(r(d[3]))},3354,[3355,3356,3358,3359]);
15776
+ __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]);var u=((e=t)&&e.__esModule?e:{default:e}).default},3355,[268]);
15777
+ __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["delayLongPress","extraButtonProps"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return f}});var n=t(r(_d[0])),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])),u=t(r(_d[2])),s=r(_d[3]);var f=o.forwardRef((t,o)=>{let{delayLongPress:f=600,extraButtonProps:l={rippleColor:'transparent',exclusive:!0}}=t,c=(0,n.default)(t,e);return(0,s.jsx)(u.default,Object.assign({ref:o,delayLongPress:f,extraButtonProps:l},c))})},3356,[120,17,3357,10]);
15778
+ __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}}),Object.defineProperty(_e,"TOUCHABLE_STATE",{enumerable:!0,get:function(){return l}});var t,s=r(d[0]),e=r(d[1]),o=(t=e)&&t.__esModule?t:{default:t};r(d[2]);var n=r(d[3]),p=r(d[4]),h=r(d[5]);const l={UNDETERMINED:0,BEGAN:1,MOVED_OUTSIDE:2};class u extends s.Component{static defaultProps={delayLongPress:600,extraButtonProps:{rippleColor:'transparent',exclusive:!0}};longPressDetected=!1;pointerInside=!0;STATE=l.UNDETERMINED;handlePressIn(){if(this.props.delayPressIn?this.pressInTimeout=setTimeout(()=>{this.moveToState(l.BEGAN),this.pressInTimeout=void 0},this.props.delayPressIn):this.moveToState(l.BEGAN),this.props.onLongPress){const t=(this.props.delayPressIn||0)+(this.props.delayLongPress||0);this.longPressTimeout=setTimeout(this.onLongPressDetected,t)}}handleMoveOutside(){this.props.delayPressOut?this.pressOutTimeout=this.pressOutTimeout||setTimeout(()=>{this.moveToState(l.MOVED_OUTSIDE),this.pressOutTimeout=void 0},this.props.delayPressOut):this.moveToState(l.MOVED_OUTSIDE)}handleGoToUndetermined(){clearTimeout(this.pressOutTimeout),this.props.delayPressOut?this.pressOutTimeout=setTimeout(()=>{this.STATE===l.UNDETERMINED&&this.moveToState(l.BEGAN),this.moveToState(l.UNDETERMINED),this.pressOutTimeout=void 0},this.props.delayPressOut):(this.STATE===l.UNDETERMINED&&this.moveToState(l.BEGAN),this.moveToState(l.UNDETERMINED))}componentDidMount(){this.reset()}reset(){this.longPressDetected=!1,this.pointerInside=!0,clearTimeout(this.pressInTimeout),clearTimeout(this.pressOutTimeout),clearTimeout(this.longPressTimeout),this.pressOutTimeout=void 0,this.longPressTimeout=void 0,this.pressInTimeout=void 0}moveToState(t){t!==this.STATE&&(t===l.BEGAN?this.props.onPressIn?.():t===l.MOVED_OUTSIDE?this.props.onPressOut?.():t===l.UNDETERMINED&&(this.reset(),this.STATE===l.BEGAN&&this.props.onPressOut?.()),this.props.onStateChange?.(this.STATE,t),this.STATE=t)}onGestureEvent=({nativeEvent:{pointerInside:t}})=>{this.pointerInside!==t&&(t?this.onMoveIn():this.onMoveOut()),this.pointerInside=t};onHandlerStateChange=({nativeEvent:t})=>{const{state:s}=t;if(s===n.State.CANCELLED||s===n.State.FAILED)this.moveToState(l.UNDETERMINED);else if(s===n.State.ACTIVE&&this.STATE===l.UNDETERMINED)this.handlePressIn();else if(s===n.State.END){const t=!this.longPressDetected&&this.STATE!==l.MOVED_OUTSIDE&&void 0===this.pressOutTimeout;this.handleGoToUndetermined(),t&&this.props.onPress?.()}};onLongPressDetected=()=>{this.longPressDetected=!0,this.props.onLongPress?.()};componentWillUnmount(){this.reset()}onMoveIn(){this.STATE===l.MOVED_OUTSIDE&&this.moveToState(l.BEGAN)}onMoveOut(){clearTimeout(this.longPressTimeout),this.longPressTimeout=void 0,this.STATE===l.BEGAN&&this.handleMoveOutside()}render(){const t=('number'==typeof this.props.hitSlop?{top:this.props.hitSlop,left:this.props.hitSlop,bottom:this.props.hitSlop,right:this.props.hitSlop}:this.props.hitSlop)??void 0,s={accessible:!1!==this.props.accessible,accessibilityLabel:this.props.accessibilityLabel,accessibilityHint:this.props.accessibilityHint,accessibilityRole:this.props.accessibilityRole,accessibilityState:this.props.accessibilityState,accessibilityActions:this.props.accessibilityActions,onAccessibilityAction:this.props.onAccessibilityAction,nativeID:this.props.nativeID,onLayout:this.props.onLayout};return(0,h.jsx)(p.BaseButton,Object.assign({style:this.props.containerStyle,onHandlerStateChange:this.props.disabled?void 0:this.onHandlerStateChange,onGestureEvent:this.onGestureEvent,hitSlop:t,userSelect:this.props.userSelect,shouldActivateOnStart:this.props.shouldActivateOnStart,disallowInterruption:this.props.disallowInterruption,testID:this.props.testID,touchSoundDisabled:this.props.touchSoundDisabled??!1,enabled:!this.props.disabled},this.props.extraButtonProps,{children:(0,h.jsx)(o.default.View,Object.assign({},s,{style:this.props.style,children:this.props.children}))}))}}},3357,[17,134,136,3244,3352,10]);
15779
+ __d(function(g,r,i,a,m,_e,d){"use strict";const t=["style"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return y}});var s=e(r(d[0])),l=e(r(d[1])),n=e(r(d[2])),u=e(r(d[3])),o=e(r(d[4])),c=r(d[5]),p=e(c),h=r(d[6]),f=r(d[7]);class y extends h.Component{static defaultProps=Object.assign({},p.default.defaultProps,{activeOpacity:.2});getChildStyleOpacityWithDefault=()=>{const t=u.default.flatten(this.props.style)||{};return null==t.opacity?1:t.opacity.valueOf()};opacity=new l.default.Value(this.getChildStyleOpacityWithDefault());setOpacityTo=(t,e)=>{l.default.timing(this.opacity,{toValue:t,duration:e,easing:n.default.inOut(n.default.quad),useNativeDriver:this.props.useNativeAnimations??!0}).start()};onStateChange=(t,e)=>{e===c.TOUCHABLE_STATE.BEGAN?this.setOpacityTo(this.props.activeOpacity,0):e!==c.TOUCHABLE_STATE.UNDETERMINED&&e!==c.TOUCHABLE_STATE.MOVED_OUTSIDE||this.setOpacityTo(this.getChildStyleOpacityWithDefault(),150)};render(){const e=this.props,{style:l={}}=e,n=(0,s.default)(e,t);return(0,f.jsx)(p.default,Object.assign({},n,{style:[l,{opacity:this.opacity}],onStateChange:this.onStateChange,children:this.props.children?this.props.children:(0,f.jsx)(o.default,{})}))}}},3358,[120,134,219,33,20,3357,17,10]);
15780
+ __d(function(g,r,i,a,m,_e,_d){"use strict";const e=["style"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var s=t(r(_d[0])),n=r(_d[1]),l=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(s){var n=Object.getOwnPropertyDescriptor(e,s);Object.defineProperty(t,s,n.get?n:{enumerable:!0,get:function(){return e[s]}})}),t.default=e,t})(n),o=r(_d[2]),d=t(o),h=t(r(_d[3])),u=t(r(_d[4])),p=r(_d[5]);class c extends n.Component{static defaultProps=Object.assign({},d.default.defaultProps,{activeOpacity:.85,delayPressOut:100,underlayColor:'black'});constructor(e){super(e),this.state={extraChildStyle:null,extraUnderlayStyle:null}}showUnderlay=()=>{this.hasPressHandler()&&(this.setState({extraChildStyle:{opacity:this.props.activeOpacity},extraUnderlayStyle:{backgroundColor:this.props.underlayColor}}),this.props.onShowUnderlay?.())};hasPressHandler=()=>this.props.onPress||this.props.onPressIn||this.props.onPressOut||this.props.onLongPress;hideUnderlay=()=>{this.setState({extraChildStyle:null,extraUnderlayStyle:null}),this.props.onHideUnderlay?.()};renderChildren(){if(!this.props.children)return(0,p.jsx)(u.default,{});const e=l.Children.only(this.props.children);return l.cloneElement(e,{style:h.default.compose(e.props.style,this.state.extraChildStyle)})}onStateChange=(e,t)=>{t===o.TOUCHABLE_STATE.BEGAN?this.showUnderlay():t!==o.TOUCHABLE_STATE.UNDETERMINED&&t!==o.TOUCHABLE_STATE.MOVED_OUTSIDE||this.hideUnderlay()};render(){const t=this.props,{style:n={}}=t,l=(0,s.default)(t,e),{extraUnderlayStyle:o}=this.state;return(0,p.jsx)(d.default,Object.assign({},l,{style:[n,o],onStateChange:this.onStateChange,children:this.renderChildren()}))}}},3359,[120,17,3357,33,20,10]);
15781
+ __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,"ScrollView",{enumerable:!0,get:function(){return s}}),Object.defineProperty(_e,"Switch",{enumerable:!0,get:function(){return b}}),Object.defineProperty(_e,"TextInput",{enumerable:!0,get:function(){return p}}),Object.defineProperty(_e,"DrawerLayoutAndroid",{enumerable:!0,get:function(){return j}}),Object.defineProperty(_e,"RefreshControl",{enumerable:!0,get:function(){return O}}),Object.defineProperty(_e,"FlatList",{enumerable:!0,get:function(){return y}});var t=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[0])),n=e(r(_d[1])),u=e(r(_d[2])),o=e(r(_d[3])),f=e(r(_d[4])),l=e(r(_d[5])),d=e(r(_d[6])),c=r(_d[7]);const s=(0,d.default)(f.default,{disallowInterruption:!1}),b=(0,d.default)(u.default,{shouldCancelWhenOutside:!1,shouldActivateOnStart:!0,disallowInterruption:!0}),p=(0,d.default)(o.default),j=()=>(console.warn('DrawerLayoutAndroid is not supported on web!'),(0,c.jsx)(l.default,{})),O=(0,d.default)(l.default),y=t.forwardRef((e,t)=>(0,c.jsx)(n.default,Object.assign({ref:t},e,{renderScrollComponent:e=>(0,c.jsx)(s,Object.assign({},e))})))},3360,[17,138,260,262,147,20,3323,10]);
15782
+ __d(function(g,r,i,a,m,_e,d){"use strict";const e=["onPress","onLongPress","ref"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Text",{enumerable:!0,get:function(){return l}});var n=t(r(d[0])),s=r(d[1]);r(d[2]);var u=t(r(d[3])),o=r(d[4]),c=r(d[5]),f=r(d[6]);const l=t=>{const{onPress:l,onLongPress:j,ref:P}=t,b=(0,n.default)(t,e),O=(0,s.useRef)(null),_=(0,s.useMemo)(()=>o.GestureObjects.Native().runOnJS(!0),[]),x=(0,s.useMemo)(()=>{const e=e=>{O.current=e,P&&('function'==typeof P?P(e):P.current=e)};return e.rngh=!0,e},[P]);return(0,s.useEffect)(()=>{O.current?.setAttribute('rnghtext','true')},[]),l||j?(0,f.jsx)(c.GestureDetector,{gesture:_,children:(0,f.jsx)(u.default,Object.assign({onPress:l,onLongPress:j,ref:x},b))}):(0,f.jsx)(u.default,Object.assign({ref:x},b))}},3361,[120,17,136,112,3341,3325,10]);
15783
+ __d(function(g,r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return c}});var e=r(d[0]),s=t(r(d[1])),n=t(r(d[2])),o=t(r(d[3])),h=t(r(d[4])),l=r(d[5]),p=r(d[6]),f=r(d[7]),u=r(d[8]);class c extends e.Component{static defaultProps={friction:1,overshootFriction:1,useNativeAnimations:!0};constructor(t){super(t);const e=new s.default.Value(0);this.state={dragX:e,rowTranslation:new s.default.Value(0),rowState:0,leftWidth:void 0,rightOffset:void 0,rowWidth:void 0},this.updateAnimatedEvent(t,this.state),this.onGestureEvent=s.default.event([{nativeEvent:{translationX:e}}],{useNativeDriver:t.useNativeAnimations})}shouldComponentUpdate(t,e){return this.props.friction===t.friction&&this.props.overshootLeft===t.overshootLeft&&this.props.overshootRight===t.overshootRight&&this.props.overshootFriction===t.overshootFriction&&this.state.leftWidth===e.leftWidth&&this.state.rightOffset===e.rightOffset&&this.state.rowWidth===e.rowWidth||this.updateAnimatedEvent(t,e),!0}updateAnimatedEvent=(t,e)=>{const{friction:n,overshootFriction:o}=t,{dragX:h,rowTranslation:l,leftWidth:p=0,rowWidth:f=0}=e,{rightOffset:u=f}=e,c=Math.max(0,f-u),{overshootLeft:w=p>0,overshootRight:v=c>0}=t,S=s.default.add(l,h.interpolate({inputRange:[0,n],outputRange:[0,1]})).interpolate({inputRange:[-c-1,-c,p,p+1],outputRange:[-c-(v?1/o:0),-c,p,p+(w?1/o:0)]});this.transX=S,this.showLeftAction=p>0?S.interpolate({inputRange:[-1,0,p],outputRange:[0,0,1]}):new s.default.Value(0),this.leftActionTranslate=this.showLeftAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:'clamp'}),this.showRightAction=c>0?S.interpolate({inputRange:[-c,0,1],outputRange:[1,0,0]}):new s.default.Value(0),this.rightActionTranslate=this.showRightAction.interpolate({inputRange:[0,Number.MIN_VALUE],outputRange:[-1e4,0],extrapolate:'clamp'})};onTapHandlerStateChange=({nativeEvent:t})=>{t.oldState===f.State.ACTIVE&&this.close()};onHandlerStateChange=t=>{if(t.nativeEvent.oldState===f.State.ACTIVE&&this.handleRelease(t),t.nativeEvent.state===f.State.ACTIVE){const{velocityX:e,translationX:s}=t.nativeEvent,{rowState:n}=this.state,{friction:o}=this.props,h=-1===n?'right':1===n||(s+.05*e)/o>0?'left':'right';0===n?this.props.onSwipeableOpenStartDrag?.(h):this.props.onSwipeableCloseStartDrag?.(h)}};handleRelease=t=>{const{velocityX:e,translationX:s}=t.nativeEvent,{leftWidth:n=0,rowWidth:o=0,rowState:h}=this.state,{rightOffset:l=o}=this.state,p=o-l,{friction:f,leftThreshold:u=n/2,rightThreshold:c=p/2}=this.props,w=this.currentOffset()+s/f,v=(s+.05*e)/f;let S=0;0===h?v>u?S=n:v<-c&&(S=-p):1===h?v>-u&&(S=n):v<c&&(S=-p),this.animateRow(w,S,e/f)};animateRow=(t,e,n)=>{const{dragX:o,rowTranslation:h}=this.state;if(o.setValue(0),h.setValue(t),this.setState({rowState:Math.sign(e)}),s.default.spring(h,Object.assign({restSpeedThreshold:1.7,restDisplacementThreshold:.4,velocity:n,bounciness:0,toValue:e,useNativeDriver:this.props.useNativeAnimations},this.props.animationOptions)).start(({finished:s})=>{if(s)if(e>0)this.props.onSwipeableLeftOpen?.(),this.props.onSwipeableOpen?.('left',this);else if(e<0)this.props.onSwipeableRightOpen?.(),this.props.onSwipeableOpen?.('right',this);else{const e=t>0?'left':'right';this.props.onSwipeableClose?.(e,this)}}),e>0)this.props.onSwipeableLeftWillOpen?.(),this.props.onSwipeableWillOpen?.('left');else if(e<0)this.props.onSwipeableRightWillOpen?.(),this.props.onSwipeableWillOpen?.('right');else{const e=t>0?'left':'right';this.props.onSwipeableWillClose?.(e)}};onRowLayout=({nativeEvent:t})=>{this.setState({rowWidth:t.layout.width})};currentOffset=()=>{const{leftWidth:t=0,rowWidth:e=0,rowState:s}=this.state,{rightOffset:n=e}=this.state;return 1===s?t:-1===s?-(e-n):0};close=()=>{this.animateRow(this.currentOffset(),0)};openLeft=()=>{const{leftWidth:t=0}=this.state;this.animateRow(this.currentOffset(),t)};openRight=()=>{const{rowWidth:t=0}=this.state,{rightOffset:e=t}=this.state,s=t-e;this.animateRow(this.currentOffset(),-s)};reset=()=>{const{dragX:t,rowTranslation:e}=this.state;t.setValue(0),e.setValue(0),this.setState({rowState:0})};render(){const{rowState:t}=this.state,{children:e,renderLeftActions:n,renderRightActions:h,dragOffsetFromLeftEdge:f=10,dragOffsetFromRightEdge:c=10}=this.props,v=n&&(0,u.jsxs)(s.default.View,{style:[w.leftActions,{transform:[{translateX:this.leftActionTranslate}]}],children:[n(this.showLeftAction,this.transX,this),(0,u.jsx)(o.default,{onLayout:({nativeEvent:t})=>this.setState({leftWidth:t.layout.x})})]}),S=h&&(0,u.jsxs)(s.default.View,{style:[w.rightActions,{transform:[{translateX:this.rightActionTranslate}]}],children:[h(this.showRightAction,this.transX,this),(0,u.jsx)(o.default,{onLayout:({nativeEvent:t})=>this.setState({rightOffset:t.layout.x})})]});return(0,u.jsx)(l.PanGestureHandler,Object.assign({activeOffsetX:[-c,f],touchAction:"pan-y"},this.props,{onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.onHandlerStateChange,children:(0,u.jsxs)(s.default.View,{onLayout:this.onRowLayout,style:[w.container,this.props.containerStyle],children:[v,S,(0,u.jsx)(p.TapGestureHandler,{enabled:0!==t,touchAction:"pan-y",onHandlerStateChange:this.onTapHandlerStateChange,children:(0,u.jsx)(s.default.View,{pointerEvents:0===t?'auto':'box-only',style:[{transform:[{translateX:this.transX}]},this.props.childrenContainerStyle],children:e})})]})}))}}const w=n.default.create({container:{overflow:'hidden'},leftActions:Object.assign({},n.default.absoluteFill,{flexDirection:h.default.isRTL?'row-reverse':'row'}),rightActions:Object.assign({},n.default.absoluteFill,{flexDirection:h.default.isRTL?'row':'row-reverse'})})},3362,[17,134,33,20,229,3319,3308,3244,10]);
15784
+ __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.default}});var e,t=r(d[0]),u=(e=t)&&e.__esModule?e:{default:e}},3363,[3364]);
15785
+ __d(function(g,r,i,a,m,_e,d){"use strict";const e=["testOnly_pressed","hitSlop","pressRetentionOffset","delayHoverIn","delayHoverOut","delayLongPress","unstable_pressDelay","onHoverIn","onHoverOut","onPress","onPressIn","onPressOut","onLongPress","onLayout","style","children","android_disableSound","android_ripple","disabled","accessible","simultaneousWithExternalGesture","requireExternalGestureToFail","blocksExternalGesture"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return R}});var n=t(r(d[0])),s=r(d[1]),o=r(d[2]),u=r(d[3]),l=t(r(d[4])),c=t(r(d[5])),_=t(r(d[6])),v=r(d[7]);r(d[8]);var h=r(d[9]),E=r(d[10]),f=r(d[11]),T=r(d[12]),P=r(d[13]),b=r(d[14]);const M=(0,h.isTestEnv)();let O=null;const H={code:"function reactNativeGestureHandler_PressableJs1(event){const{hoverInTimeout,delayHoverOut,hoverOutTimeout,onHoverOut,gestureToPressableEvent}=this.__closure;var _onHoverOut2;if(hoverInTimeout.current){clearTimeout(hoverInTimeout.current);}if(delayHoverOut){hoverOutTimeout.current=setTimeout(function(){var _onHoverOut;return(_onHoverOut=onHoverOut)===null||_onHoverOut===void 0?void 0:_onHoverOut(gestureToPressableEvent(event));},delayHoverOut);return;}(_onHoverOut2=onHoverOut)===null||_onHoverOut2===void 0||_onHoverOut2(gestureToPressableEvent(event));}"},S={code:"function reactNativeGestureHandler_PressableJs2(event){const{hoverOutTimeout,delayHoverIn,hoverInTimeout,onHoverIn,gestureToPressableEvent}=this.__closure;var _onHoverIn2;if(hoverOutTimeout.current){clearTimeout(hoverOutTimeout.current);}if(delayHoverIn){hoverInTimeout.current=setTimeout(function(){var _onHoverIn;return(_onHoverIn=onHoverIn)===null||_onHoverIn===void 0?void 0:_onHoverIn(gestureToPressableEvent(event));},delayHoverIn);return;}(_onHoverIn2=onHoverIn)===null||_onHoverIn2===void 0||_onHoverIn2(gestureToPressableEvent(event));}"},I={code:"function reactNativeGestureHandler_PressableJs3(_event,success){const{Platform,stateMachine,StateMachineEvent,handleFinalize}=this.__closure;if(Platform.OS==='web'){if(success){stateMachine.handleEvent(StateMachineEvent.FINALIZE);}else{stateMachine.handleEvent(StateMachineEvent.CANCEL);}handleFinalize();}}"},k={code:"function reactNativeGestureHandler_PressableJs4(event){const{gestureTouchToPressableEvent,stateMachine,handlePressOut}=this.__closure;const pressableEvent=gestureTouchToPressableEvent(event);stateMachine.reset();handlePressOut(pressableEvent,false);}"},y={code:"function reactNativeGestureHandler_PressableJs5(){const{Platform,isScreenReaderEnabled,stateMachine,handleFinalize}=this.__closure;if(Platform.OS==='android'&&!isScreenReaderEnabled){stateMachine.reset();handleFinalize();}}"},p={code:"function reactNativeGestureHandler_PressableJs6(event){const{gestureTouchToPressableEvent,stateMachine,StateMachineEvent}=this.__closure;const pressableEvent=gestureTouchToPressableEvent(event);stateMachine.handleEvent(StateMachineEvent.LONG_PRESS_TOUCHES_DOWN,pressableEvent);}"},w={code:"function reactNativeGestureHandler_PressableJs7(_event,success){const{Platform,stateMachine,StateMachineEvent,handleFinalize}=this.__closure;if(Platform.OS!=='web'){if(success){stateMachine.handleEvent(StateMachineEvent.FINALIZE);}else{stateMachine.handleEvent(StateMachineEvent.CANCEL);}if(Platform.OS!=='ios'){handleFinalize();}}}"},G={code:"function reactNativeGestureHandler_PressableJs8(){const{Platform,stateMachine,StateMachineEvent}=this.__closure;if(Platform.OS!=='android'){stateMachine.handleEvent(StateMachineEvent.NATIVE_START);}}"},N={code:"function reactNativeGestureHandler_PressableJs9(){const{stateMachine,StateMachineEvent}=this.__closure;stateMachine.handleEvent(StateMachineEvent.NATIVE_BEGIN);}"},F={code:"function reactNativeGestureHandler_PressableJs10(event){const{Platform,gestureTouchToPressableEvent,stateMachine,handlePressOut}=this.__closure;if(Platform.OS!=='macos'&&Platform.OS!=='web'){const pressableEvent=gestureTouchToPressableEvent(event);stateMachine.reset();handlePressOut(pressableEvent,false);}}"};var R=t=>{const{testOnly_pressed:R,hitSlop:C,pressRetentionOffset:D,delayHoverIn:z,delayHoverOut:L,delayLongPress:A,unstable_pressDelay:x,onHoverIn:J,onHoverOut:j,onPress:V,onPressIn:W,onPressOut:B,onLongPress:q,onLayout:U,style:Z,children:X,android_disableSound:K,android_ripple:Q,disabled:Y,accessible:$,simultaneousWithExternalGesture:ee,requireExternalGestureToFail:te,blocksExternalGesture:ne}=t,ae=(0,n.default)(t,e),re={simultaneousWithExternalGesture:ee,requireExternalGestureToFail:te,blocksExternalGesture:ne},[se,oe]=(0,s.useState)(R??!1),ie=(0,s.useRef)(null),ue=(0,s.useRef)(null),le=(0,s.useRef)(!0),ce=(0,s.useRef)(!1),ve=(0,s.useRef)({width:0,height:0}),he=(0,s.useMemo)(()=>'number'==typeof C?(0,v.numberAsInset)(C):C??{},[C]),de=(0,s.useMemo)(()=>'number'==typeof D?(0,v.numberAsInset)(D):D??{},[D]),Ee=(0,v.addInsets)(he,de),fe=(0,s.useCallback)(()=>{ie.current&&(clearTimeout(ie.current),ie.current=null,le.current=!0)},[]),Te=(0,s.useCallback)(()=>{ue.current&&(clearTimeout(ue.current),ue.current=null)},[]),Pe=(0,s.useCallback)(e=>{q&&(fe(),ie.current=setTimeout(()=>{le.current=!1,q(e)},A??500))},[q,fe,A]),be=(0,s.useCallback)(e=>{W?.(e),Pe(e),oe(!0),ue.current&&(clearTimeout(ue.current),ue.current=null)},[W,Pe]),Me=(0,s.useCallback)(()=>{ce.current=!1,fe(),Te(),oe(!1)},[Te,fe]),me=(0,s.useCallback)(e=>{(0,v.isTouchWithinInset)(ve.current,he,e.nativeEvent.changedTouches.at(-1))&&(ce.current=!0,x?ue.current=setTimeout(()=>{be(e)},x):be(e))},[be,he,x]),Oe=(0,s.useCallback)((e,t=!0)=>{ce.current&&(ce.current=!1,ue.current&&be(e),B?.(e),le.current&&t&&V?.(e),Me())},[Me,be,V,B]),He=(0,s.useMemo)(()=>new T.PressableStateMachine,[]),Se=(0,P.useIsScreenReaderEnabled)();(0,s.useEffect)(()=>{const e=(0,f.getStatesConfig)(me,Oe,Se);He.setStates(e)},[me,Oe,He,Se]);const Ie=(0,s.useRef)(null),ge=(0,s.useRef)(null),ke=(0,s.useMemo)(()=>o.GestureObjects.Hover().manualActivation(!0).cancelsTouchesInView(!1).onBegin((function({_worklet_6909381456988_init_data:e,hoverOutTimeout:t,delayHoverIn:n,hoverInTimeout:s,onHoverIn:o,gestureToPressableEvent:u}){const l=function(e){t.current&&clearTimeout(t.current),n?s.current=setTimeout(()=>o?.(u(e)),n):o?.(u(e))};return l.__closure={hoverOutTimeout:t,delayHoverIn:n,hoverInTimeout:s,onHoverIn:o,gestureToPressableEvent:u},l.__workletHash=6909381456988,l.__initData=e,l})({_worklet_6909381456988_init_data:S,hoverOutTimeout:ge,delayHoverIn:z,hoverInTimeout:Ie,onHoverIn:J,gestureToPressableEvent:v.gestureToPressableEvent})).onFinalize((function({_worklet_4785699502742_init_data:e,hoverInTimeout:t,delayHoverOut:n,hoverOutTimeout:s,onHoverOut:o,gestureToPressableEvent:u}){const l=function(e){t.current&&clearTimeout(t.current),n?s.current=setTimeout(()=>o?.(u(e)),n):o?.(u(e))};return l.__closure={hoverInTimeout:t,delayHoverOut:n,hoverOutTimeout:s,onHoverOut:o,gestureToPressableEvent:u},l.__workletHash=4785699502742,l.__initData=e,l})({_worklet_4785699502742_init_data:H,hoverInTimeout:Ie,delayHoverOut:L,hoverOutTimeout:ge,onHoverOut:j,gestureToPressableEvent:v.gestureToPressableEvent})),[z,L,J,j]),ye=(0,s.useMemo)(()=>o.GestureObjects.LongPress().minDuration(0).maxDistance(h.INT32_MAX).cancelsTouchesInView(!1).onTouchesDown((function({_worklet_937333984765_init_data:e,gestureTouchToPressableEvent:t,stateMachine:n,StateMachineEvent:s}){const o=function(e){const o=t(e);n.handleEvent(s.LONG_PRESS_TOUCHES_DOWN,o)};return o.__closure={gestureTouchToPressableEvent:t,stateMachine:n,StateMachineEvent:s},o.__workletHash=937333984765,o.__initData=e,o})({_worklet_937333984765_init_data:p,gestureTouchToPressableEvent:v.gestureTouchToPressableEvent,stateMachine:He,StateMachineEvent:f.StateMachineEvent})).onTouchesUp((function({_worklet_5558085794677_init_data:e,Platform:t,isScreenReaderEnabled:n,stateMachine:s,handleFinalize:o}){const u=function(){};return u.__closure={Platform:t,isScreenReaderEnabled:n,stateMachine:s,handleFinalize:o},u.__workletHash=5558085794677,u.__initData=e,u})({_worklet_5558085794677_init_data:y,Platform:l.default,isScreenReaderEnabled:Se,stateMachine:He,handleFinalize:Me})).onTouchesCancelled((function({_worklet_14743782876118_init_data:e,gestureTouchToPressableEvent:t,stateMachine:n,handlePressOut:s}){const o=function(e){const o=t(e);n.reset(),s(o,!1)};return o.__closure={gestureTouchToPressableEvent:t,stateMachine:n,handlePressOut:s},o.__workletHash=0xd68cdf0e3d6,o.__initData=e,o})({_worklet_14743782876118_init_data:k,gestureTouchToPressableEvent:v.gestureTouchToPressableEvent,stateMachine:He,handlePressOut:Oe})).onFinalize((function({_worklet_6239736927046_init_data:e,Platform:t,stateMachine:n,StateMachineEvent:s,handleFinalize:o}){const u=function(e,t){t?n.handleEvent(s.FINALIZE):n.handleEvent(s.CANCEL),o()};return u.__closure={Platform:t,stateMachine:n,StateMachineEvent:s,handleFinalize:o},u.__workletHash=6239736927046,u.__initData=e,u})({_worklet_6239736927046_init_data:I,Platform:l.default,stateMachine:He,StateMachineEvent:f.StateMachineEvent,handleFinalize:Me})),[He,Me,Oe,Se]),pe=(0,s.useMemo)(()=>o.GestureObjects.Native().onTouchesCancelled((function({_worklet_5326040157275_init_data:e,Platform:t,gestureTouchToPressableEvent:n,stateMachine:s,handlePressOut:o}){const u=function(e){};return u.__closure={Platform:t,gestureTouchToPressableEvent:n,stateMachine:s,handlePressOut:o},u.__workletHash=5326040157275,u.__initData=e,u})({_worklet_5326040157275_init_data:F,Platform:l.default,gestureTouchToPressableEvent:v.gestureTouchToPressableEvent,stateMachine:He,handlePressOut:Oe})).onBegin((function({_worklet_14189070085146_init_data:e,stateMachine:t,StateMachineEvent:n}){const s=function(){t.handleEvent(n.NATIVE_BEGIN)};return s.__closure={stateMachine:t,StateMachineEvent:n},s.__workletHash=0xce7a67b6c1a,s.__initData=e,s})({_worklet_14189070085146_init_data:N,stateMachine:He,StateMachineEvent:f.StateMachineEvent})).onStart((function({_worklet_7492686327600_init_data:e,Platform:t,stateMachine:n,StateMachineEvent:s}){const o=function(){n.handleEvent(s.NATIVE_START)};return o.__closure={Platform:t,stateMachine:n,StateMachineEvent:s},o.__workletHash=7492686327600,o.__initData=e,o})({_worklet_7492686327600_init_data:G,Platform:l.default,stateMachine:He,StateMachineEvent:f.StateMachineEvent})).onFinalize((function({_worklet_10634809083311_init_data:e,Platform:t,stateMachine:n,StateMachineEvent:s,handleFinalize:o}){const u=function(e,t){};return u.__closure={Platform:t,stateMachine:n,StateMachineEvent:s,handleFinalize:o},u.__workletHash=0x9ac1c0485af,u.__initData=e,u})({_worklet_10634809083311_init_data:w,Platform:l.default,stateMachine:He,StateMachineEvent:f.StateMachineEvent,handleFinalize:Me})),[He,Oe,Me]),we=!0!==Y,Ge=[pe,ye,ke];for(const e of Ge)e.enabled(we),e.runOnJS(!0),e.hitSlop(Ee),Object.entries(re).forEach(([t,n])=>{(0,E.applyRelationProp)(e,t,n)});const Ne=o.GestureObjects.Simultaneous(...Ge),Fe='function'==typeof Z?Z({pressed:se}):Z,Re='function'==typeof X?X({pressed:se}):X,Ce=(0,s.useMemo)(()=>{null===O&&(O=(0,h.isFabric)());const e=Q?void 0:'transparent',t=Q?.color??e;return O?t:(0,c.default)(t)},[Q]),De=(0,s.useCallback)(e=>{U?.(e),ve.current=e.nativeEvent.layout},[U]);return(0,b.jsx)(u.GestureDetector,{gesture:Ne,children:(0,b.jsxs)(_.default,Object.assign({},ae,{onLayout:De,accessible:!1!==$,hitSlop:Ee,enabled:we,touchSoundDisabled:K??void 0,rippleColor:Ce,rippleRadius:Q?.radius??void 0,style:[{cursor:'pointer'},Fe],testOnly_onPress:M?V:void 0,testOnly_onPressIn:M?W:void 0,testOnly_onPressOut:M?B:void 0,testOnly_onLongPress:M?q:void 0,children:[Re,null]}))})}},3364,[120,17,3341,3325,136,40,3353,3365,3314,3247,3366,3367,3368,3369,10]);
15786
+ __d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"numberAsInset",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"addInsets",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"isTouchWithinInset",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"gestureToPressableEvent",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"gestureTouchToPressableEvent",{enumerable:!0,get:function(){return l}});const t=t=>({left:t,right:t,top:t,bottom:t}),o=(t,o)=>({left:(t.left??0)+(o.left??0),right:(t.right??0)+(o.right??0),top:(t.top??0)+(o.top??0),bottom:(t.bottom??0)+(o.bottom??0)}),n=(t,o,n)=>({identifier:t.id,locationX:t.x,locationY:t.y,pageX:t.absoluteX,pageY:t.absoluteY,target:n,timestamp:o,touches:[],changedTouches:[]}),a=(t,o,n)=>({identifier:t.handlerTag,locationX:t.x,locationY:t.y,pageX:t.absoluteX,pageY:t.absoluteY,target:n,timestamp:o,touches:[],changedTouches:[]}),c=(t,o,n)=>(n?.locationX??0)<(o.right??0)+t.width&&(n?.locationY??0)<(o.bottom??0)+t.height&&(n?.locationX??0)>-(o.left??0)&&(n?.locationY??0)>-(o.top??0),u=t=>{const o=Date.now(),n=a(t,o,0);return{nativeEvent:{touches:[n],changedTouches:[n],identifier:n.identifier,locationX:t.x,locationY:t.y,pageX:t.absoluteX,pageY:t.absoluteY,target:0,timestamp:o,force:void 0}}},l=t=>{const o=Date.now();return{nativeEvent:{touches:t.allTouches.map(t=>n(t,o,0)),changedTouches:t.changedTouches.map(t=>n(t,o,0)),identifier:t.handlerTag,locationX:t.allTouches.at(0)?.x??-1,locationY:t.allTouches.at(0)?.y??-1,pageX:t.allTouches.at(0)?.absoluteX??-1,pageY:t.allTouches.at(0)?.absoluteY??-1,target:0,timestamp:o,force:void 0}}}},3365,[]);
15787
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.applyRelationProp=function(t,n,o){if(!o)return;Array.isArray(o)?t[n](...o):t[n](o)}},3366,[]);
15788
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"StateMachineEvent",{enumerable:!0,get:function(){return n}}),e.getStatesConfig=function(n,N,c){return t(n,N)},r(d[0]);let n=(function(n){return n.NATIVE_BEGIN="nativeBegin",n.NATIVE_START="nativeStart",n.FINALIZE="finalize",n.LONG_PRESS_TOUCHES_DOWN="longPressTouchesDown",n.CANCEL="cancel",n})({});function t(t,N){return[{eventName:n.NATIVE_BEGIN},{eventName:n.NATIVE_START},{eventName:n.LONG_PRESS_TOUCHES_DOWN,callback:t},{eventName:n.FINALIZE,callback:N}]}},3367,[136]);
15789
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"PressableStateMachine",{enumerable:!0,get:function(){return t}});class t{constructor(){this.states=null,this.currentStepIndex=0,this.eventPayload=null}setStates(t){this.states=t}reset(){this.currentStepIndex=0,this.eventPayload=null}handleEvent(t,s){if(!this.states)return;const n=this.states[this.currentStepIndex];this.eventPayload=s||this.eventPayload,n.eventName===t?(this.eventPayload&&n.callback&&n.callback(this.eventPayload),this.currentStepIndex++,this.currentStepIndex===this.states.length&&this.reset()):this.currentStepIndex>0&&(this.reset(),this.handleEvent(t,s))}}},3368,[]);
15790
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useIsScreenReaderEnabled=function(){const[e,n]=(0,t.useState)(!1);return(0,t.useEffect)(()=>{(async()=>{try{const e=await s.default.isScreenReaderEnabled();n(e)}catch(e){console.warn('Could not read accessibility info: defaulting to false')}})();const e=s.default.addEventListener('screenReaderChanged',e=>{n(e)});return()=>{e.remove()}},[]),e};var e,t=r(d[0]),n=r(d[1]),s=(e=n)&&e.__esModule?e:{default:e}},3369,[17,132]);
15791
+ __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 V}});var t=r(_d[0]),n=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var s=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,s.get?s:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(t),s=e(r(_d[1])),o=e(r(_d[2])),d=e(r(_d[3])),l=e(r(_d[4])),h=e(r(_d[5])),u=e(r(_d[6])),p=e(r(_d[7])),c=r(_d[8]),w=r(_d[9]),f=r(_d[10]),v=r(_d[11]);const S='Idle',y='Dragging',b='Settling';class V extends t.Component{static defaultProps={drawerWidth:200,drawerPosition:'left',useNativeAnimations:!0,drawerType:'front',edgeWidth:20,minSwipeDistance:3,overlayColor:'rgba(0, 0, 0, 0.7)',drawerLockMode:'unlocked',enableTrackpadTwoFingerGesture:!1};constructor(e){super(e);const t=new o.default.Value(0),n=new o.default.Value(0),s=new o.default.Value(0);this.state={dragX:t,touchX:n,drawerTranslation:s,containerWidth:0,drawerState:S,drawerOpened:!1},this.updateAnimatedEvent(e,this.state)}shouldComponentUpdate(e,t){return this.props.drawerPosition===e.drawerPosition&&this.props.drawerWidth===e.drawerWidth&&this.props.drawerType===e.drawerType&&this.state.containerWidth===t.containerWidth||this.updateAnimatedEvent(e,t),!0}accessibilityIsModalView=n.createRef();pointerEventsView=n.createRef();panGestureHandler=n.createRef();drawerShown=!1;static positions={Left:'left',Right:'right'};updateAnimatedEvent=(e,t)=>{const{drawerPosition:n,drawerWidth:s,drawerType:d}=e,{dragX:l,touchX:h,drawerTranslation:u,containerWidth:p}=t;let c=l,w=h;'left'!==n?(c=o.default.multiply(new o.default.Value(-1),l),w=o.default.add(new o.default.Value(p),o.default.multiply(new o.default.Value(-1),h)),h.setValue(p)):h.setValue(0);let f=c;if('front'===d){const e=o.default.add(w,o.default.multiply(new o.default.Value(-1),c)).interpolate({inputRange:[s-1,s,s+1],outputRange:[0,0,1]});f=o.default.add(c,e)}this.openValue=o.default.add(f,u).interpolate({inputRange:[0,s],outputRange:[0,1],extrapolate:'clamp'});const v={useNativeDriver:e.useNativeAnimations};this.props.onDrawerSlide&&(v.listener=e=>{const t=Math.floor(Math.abs(e.nativeEvent.translationX))/this.state.containerWidth;this.props.onDrawerSlide?.(t)}),this.onGestureEvent=o.default.event([{nativeEvent:{translationX:l,x:h}}],v)};handleContainerLayout=({nativeEvent:e})=>{this.setState({containerWidth:e.layout.width})};emitStateChanged=(e,t)=>{this.props.onDrawerStateChanged?.(e,t)};openingHandlerStateChange=({nativeEvent:e})=>{e.oldState===f.State.ACTIVE?this.handleRelease({nativeEvent:e}):e.state===f.State.ACTIVE&&(this.emitStateChanged(y,!1),this.setState({drawerState:y}),'on-drag'===this.props.keyboardDismissMode&&h.default.dismiss(),this.props.hideStatusBar&&u.default.setHidden(!0,this.props.statusBarAnimation||'slide'))};onTapHandlerStateChange=({nativeEvent:e})=>{this.drawerShown&&e.oldState===f.State.ACTIVE&&'locked-open'!==this.props.drawerLockMode&&this.closeDrawer()};handleRelease=({nativeEvent:e})=>{const{drawerWidth:t,drawerPosition:n,drawerType:s}=this.props,{containerWidth:o}=this.state;let{translationX:d,velocityX:l,x:h}=e;'left'!==n&&(d=-d,h=o-h,l=-l);const u=h-d;let p=0;'front'===s&&(p=u>t?u-t:0);const c=d+p+(this.drawerShown?t:0);c+.05*l>t/2?this.animateDrawer(c,t,l):this.animateDrawer(c,0,l)};updateShowing=e=>{this.drawerShown=e,this.accessibilityIsModalView.current?.setNativeProps({accessibilityViewIsModal:e}),this.pointerEventsView.current?.setNativeProps({pointerEvents:e?'auto':'none'});const{drawerPosition:t,minSwipeDistance:n,edgeWidth:s}=this.props,o='left'===t,d=(o?1:-1)*(this.drawerShown?-1:1),l=o?{left:0,width:e?void 0:s}:{right:0,width:e?void 0:s};this.panGestureHandler.current?.setNativeProps({hitSlop:l,activeOffsetX:d*n})};animateDrawer=(e,t,n,s)=>{if(this.state.dragX.setValue(0),this.state.touchX.setValue('left'===this.props.drawerPosition?0:this.state.containerWidth),null!=e){let s=e;this.props.useNativeAnimations&&(e<t&&n>0?s=Math.min(e+n/60,t):e>t&&n<0&&(s=Math.max(e+n/60,t))),this.state.drawerTranslation.setValue(s)}const d=0!==t;this.updateShowing(d),this.emitStateChanged(b,d),this.setState({drawerState:b}),this.props.hideStatusBar&&u.default.setHidden(d,this.props.statusBarAnimation||'slide'),o.default.spring(this.state.drawerTranslation,{velocity:n,bounciness:0,toValue:t,useNativeDriver:this.props.useNativeAnimations,speed:s??void 0}).start(({finished:e})=>{e&&(this.emitStateChanged(S,d),this.setState({drawerOpened:d}),this.state.drawerState!==y&&this.setState({drawerState:S}),d?this.props.onDrawerOpen?.():this.props.onDrawerClose?.())})};openDrawer=(e={})=>{this.animateDrawer(void 0,this.props.drawerWidth,e.velocity?e.velocity:0,e.speed),this.forceUpdate()};closeDrawer=(e={})=>{this.animateDrawer(void 0,0,e.velocity?e.velocity:0,e.speed),this.forceUpdate()};renderOverlay=()=>{let e;(0,s.default)(this.openValue,'should be set'),e=this.state.drawerState!==S?this.openValue:this.state.drawerOpened?1:0;const t={opacity:e,backgroundColor:this.props.overlayColor};return(0,v.jsx)(w.TapGestureHandler,{onHandlerStateChange:this.onTapHandlerStateChange,children:(0,v.jsx)(o.default.View,{pointerEvents:this.drawerShown?'auto':'none',ref:this.pointerEventsView,style:[C.overlay,t]})})};renderDrawer=()=>{const{drawerBackgroundColor:e,drawerWidth:t,drawerPosition:n,drawerType:d,drawerContainerStyle:h,contentContainerStyle:u}=this.props,c='left'===n,w='back'!==d,f='front'!==d,y=p.default.isRTL?c:!c,b={backgroundColor:e,width:t},V=this.openValue;let D;if((0,s.default)(V,'should be set'),f){D={transform:[{translateX:V.interpolate({inputRange:[0,1],outputRange:c?[0,t]:[0,-t],extrapolate:'clamp'})}]}}let x=0;if(w){const e=c?-t:t;x=this.state.drawerState!==S?V.interpolate({inputRange:[0,1],outputRange:[e,0],extrapolate:'clamp'}):this.state.drawerOpened?0:e}const E={transform:[{translateX:x}],flexDirection:y?'row-reverse':'row'};return(0,v.jsxs)(o.default.View,{style:C.main,onLayout:this.handleContainerLayout,children:[(0,v.jsxs)(o.default.View,{style:['front'===d?C.containerOnBack:C.containerInFront,D,u],importantForAccessibility:this.drawerShown?'no-hide-descendants':'yes',children:['function'==typeof this.props.children?this.props.children(this.openValue):this.props.children,this.renderOverlay()]}),(0,v.jsx)(o.default.View,{pointerEvents:"box-none",ref:this.accessibilityIsModalView,accessibilityViewIsModal:this.drawerShown,style:[C.drawerContainer,E,h],children:(0,v.jsx)(l.default,{style:b,children:this.props.renderNavigationView(this.openValue)})})]})};setPanGestureRef=e=>{this.panGestureHandler.current=e,this.props.onGestureRef?.(e)};render(){const{drawerPosition:e,drawerLockMode:t,edgeWidth:n,minSwipeDistance:s}=this.props,o='left'===e,d=(o?1:-1)*(this.drawerShown?-1:1),l=o?{left:0,width:this.drawerShown?void 0:n}:{right:0,width:this.drawerShown?void 0:n};return(0,v.jsx)(c.PanGestureHandler,{userSelect:this.props.userSelect,activeCursor:this.props.activeCursor,mouseButton:this.props.mouseButton,enableContextMenu:this.props.enableContextMenu,ref:this.setPanGestureRef,hitSlop:l,activeOffsetX:d*s,failOffsetY:[-15,15],onGestureEvent:this.onGestureEvent,onHandlerStateChange:this.openingHandlerStateChange,enableTrackpadTwoFingerGesture:this.props.enableTrackpadTwoFingerGesture,enabled:'locked-closed'!==t&&'locked-open'!==t,children:this.renderDrawer()})}}const C=d.default.create({drawerContainer:Object.assign({},d.default.absoluteFill,{zIndex:1001,flexDirection:'row'}),containerInFront:Object.assign({},d.default.absoluteFill,{zIndex:1002}),containerOnBack:Object.assign({},d.default.absoluteFill),main:{flex:1,zIndex:0,overflow:'hidden'},overlay:Object.assign({},d.default.absoluteFill,{zIndex:1e3})})},3370,[17,323,134,33,20,230,259,229,3319,3308,3244,10]);
15792
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.reconcileBoundaryState=o,Object.defineProperty(_e,"RenderErrorBoundary",{enumerable:!0,get:function(){return n}});var e,t=r(d[0]),s=(e=t)&&e.__esModule?e:{default:e};function o(e,t){return t===e.lastResetKey?null:{hasError:!1,lastResetKey:t}}class n extends s.default.Component{constructor(e){super(e),this.state={hasError:!1,lastResetKey:e.resetKey}}static getDerivedStateFromError(){return{hasError:!0}}static getDerivedStateFromProps(e,t){return o(t,e.resetKey)}componentDidCatch(e){this.props.onError?.(e)}render(){return this.state.hasError?this.props.fallback:this.props.children}}},3371,[17]);
15793
15793
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"MIN_ZOOM",{enumerable:!0,get:function(){return t}}),Object.defineProperty(e,"MAX_ZOOM",{enumerable:!0,get:function(){return n}}),e.clampZoom=u,e.panLimit=o,e.clampPan=function(t,n,u){const c=o(n,u);return Number.isFinite(t)?Math.max(-c,Math.min(c,t)):0},e.containBox=function(t,n,u){const o=Number.isFinite(t)&&t>0?t:0,c=Number.isFinite(n)&&n>0?n:0;if(!Number.isFinite(u)||u<=0)return{width:o,height:c};const s=Math.min(o,c*u),h=Math.min(c,o/u);return{width:s,height:h}},e.panExtent=c,e.clampPanContent=function(t,n,u,o){if(!Number.isFinite(t))return 0;const s=c(n,u,o);return Math.max(-s,Math.min(s,t))},e.zoomBy=function(t,n){return u(t*n)};const t=1,n=4;function u(u){return Number.isFinite(u)?Math.max(t,Math.min(n,u)):t}function o(t,n){return!Number.isFinite(t)||t<=0?0:Math.max(0,t*(u(n)-1)/2)}function c(t,n,o){return Number.isFinite(t)&&Number.isFinite(n)&&Number.isFinite(o)?Math.max(0,(u(o)*n-t)/2):0}},3372,[]);
15794
- __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,"EventThumb",{enumerable:!0,get:function(){return y}});var t=r(d[0]),n=r(d[1]),o=e(r(d[2])),c=e(r(d[3])),l=r(d[4]),s=r(d[5]),u=r(d[6]),f=r(d[7]),h=r(d[8]),v=r(d[9]);function b(e){const t=e.toLowerCase();return'person'===t||'face'===t?s.User:'car'===t||'truck'===t||'bus'===t||'vehicle'===t||'motorcycle'===t||'bicycle'===t?s.Car:'dog'===t||'cat'===t||'animal'===t?s.Dog:'bird'===t?s.Bird:s.HelpCircle}const y=(0,n.memo)(function(e){const n=(0,t.c)(33),{event:s,width:y,height:_}=e,{token:j}=(0,u.useServer)();let p;n[0]===Symbol.for("react.memo_cache_sentinel")?(p={variant:"full",directDefaultKind:!0},n[0]=p):p=n[0];const{uri:k,isData:E,failed:w,onError:x}=(0,f.useEventMedia)(s.id,void 0,"crop",p),M=(0,h.colorForEventType)(s.className);let N;n[1]!==s.className?(N=b(s.className),n[1]=s.className,n[2]=N):N=n[2];const D=N;let F;n[3]!==_||n[4]!==y?(F={width:y,height:_},n[3]=_,n[4]=y,n[5]=F):F=n[5];const P=F;let z;n[6]!==E||n[7]!==j||n[8]!==k?(z=j&&k&&!E?{Authorization:`Bearer ${j}`}:void 0,n[6]=E,n[7]=j,n[8]=k,n[9]=z):z=n[9];const A=z;if(w||null===k){const e=.45*Math.min(y,_),t=M+"1A";let c,l,s,u;return n[10]!==t?(c={backgroundColor:t},n[10]=t,n[11]=c):c=n[11],n[12]!==P||n[13]!==c?(l=[C.container,P,C.iconContainer,c],n[12]=P,n[13]=c,n[14]=l):l=n[14],n[15]!==D||n[16]!==M||n[17]!==e?(s=(0,v.jsx)(D,{size:e,color:M}),n[15]=D,n[16]=M,n[17]=e,n[18]=s):s=n[18],n[19]!==l||n[20]!==s?(u=(0,v.jsx)(o.default,{style:l,children:s}),n[19]=l,n[20]=s,n[21]=u):u=n[21],u}let B,I,O,S;return n[22]!==P?(B=[C.container,P],n[22]=P,n[23]=B):B=n[23],n[24]!==A||n[25]!==k?(I=A?{uri:k,headers:A}:{uri:k},n[24]=A,n[25]=k,n[26]=I):I=n[26],n[27]!==x||n[28]!==I?(O=(0,v.jsx)(l.Image,{source:I,style:c.default.absoluteFill,contentFit:"cover",cachePolicy:"memory-disk",onError:x}),n[27]=x,n[28]=I,n[29]=O):O=n[29],n[30]!==B||n[31]!==O?(S=(0,v.jsx)(o.default,{style:B,children:O}),n[30]=B,n[31]=O,n[32]=S):S=n[32],S}),C=c.default.create({container:{overflow:'hidden',backgroundColor:'rgba(0,0,0,0.3)'},iconContainer:{alignItems:'center',justifyContent:'center'}})},3373,[15,17,20,33,3053,813,3144,3234,3231,10]);
15794
+ __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,"EventThumb",{enumerable:!0,get:function(){return y}});var t=r(d[0]),n=r(d[1]),o=e(r(d[2])),c=e(r(d[3])),l=r(d[4]),s=r(d[5]),u=r(d[6]),f=r(d[7]),h=r(d[8]),v=r(d[9]);function b(e){const t=e.toLowerCase();return'person'===t||'face'===t?s.User:'car'===t||'truck'===t||'bus'===t||'vehicle'===t||'motorcycle'===t||'bicycle'===t?s.Car:'dog'===t||'cat'===t||'animal'===t?s.Dog:'bird'===t?s.Bird:s.HelpCircle}const y=(0,n.memo)(function(e){const n=(0,t.c)(34),{event:s,width:y,height:_,contentFit:j}=e,p=void 0===j?"cover":j,{token:k}=(0,u.useServer)();let E;n[0]===Symbol.for("react.memo_cache_sentinel")?(E={variant:"full",directDefaultKind:!0},n[0]=E):E=n[0];const{uri:w,isData:x,failed:F,onError:M}=(0,f.useEventMedia)(s.id,void 0,"crop",E),N=(0,h.colorForEventType)(s.className);let D;n[1]!==s.className?(D=b(s.className),n[1]=s.className,n[2]=D):D=n[2];const P=D;let z;n[3]!==_||n[4]!==y?(z={width:y,height:_},n[3]=_,n[4]=y,n[5]=z):z=n[5];const A=z;let B;n[6]!==x||n[7]!==k||n[8]!==w?(B=k&&w&&!x?{Authorization:`Bearer ${k}`}:void 0,n[6]=x,n[7]=k,n[8]=w,n[9]=B):B=n[9];const I=B;if(F||null===w){const e=.45*Math.min(y,_),t=N+"1A";let c,l,s,u;return n[10]!==t?(c={backgroundColor:t},n[10]=t,n[11]=c):c=n[11],n[12]!==A||n[13]!==c?(l=[C.container,A,C.iconContainer,c],n[12]=A,n[13]=c,n[14]=l):l=n[14],n[15]!==P||n[16]!==N||n[17]!==e?(s=(0,v.jsx)(P,{size:e,color:N}),n[15]=P,n[16]=N,n[17]=e,n[18]=s):s=n[18],n[19]!==l||n[20]!==s?(u=(0,v.jsx)(o.default,{style:l,children:s}),n[19]=l,n[20]=s,n[21]=u):u=n[21],u}let O,S,T,H;return n[22]!==A?(O=[C.container,A],n[22]=A,n[23]=O):O=n[23],n[24]!==I||n[25]!==w?(S=I?{uri:w,headers:I}:{uri:w},n[24]=I,n[25]=w,n[26]=S):S=n[26],n[27]!==p||n[28]!==M||n[29]!==S?(T=(0,v.jsx)(l.Image,{source:S,style:c.default.absoluteFill,contentFit:p,cachePolicy:"memory-disk",onError:M}),n[27]=p,n[28]=M,n[29]=S,n[30]=T):T=n[30],n[31]!==O||n[32]!==T?(H=(0,v.jsx)(o.default,{style:O,children:T}),n[31]=O,n[32]=T,n[33]=H):H=n[33],H}),C=c.default.create({container:{overflow:'hidden',backgroundColor:'rgba(0,0,0,0.3)'},iconContainer:{alignItems:'center',justifyContent:'center'}})},3373,[15,17,20,33,3053,813,3144,3234,3231,10]);
15795
15795
  __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,"FaceAssignSheet",{enumerable:!0,get:function(){return j}});var t=r(d[0]),o=r(d[1]),n=e(r(d[2])),s=e(r(d[3])),l=e(r(d[4])),c=e(r(d[5])),u=e(r(d[6])),f=e(r(d[7])),y=e(r(d[8])),p=e(r(d[9])),b=e(r(d[10])),x=r(d[11]),h=r(d[12]),v=r(d[13]),I=r(d[14]),S=r(d[15]),C=r(d[16]),A=r(d[17]),P=r(d[18]);const j=(0,o.memo)(function(e){const b=(0,t.c)(156),{face:j,onClose:N}=e,{colors:B}=(0,S.useTheme)(),{t:G}=(0,h.useTranslation)(),w=(0,x.useSafeAreaInsets)(),T=null!==j,{data:z,isLoading:F}=(0,A.useIdentities)(T);let D;b[0]!==z?(D=void 0===z?[]:z,b[0]=z,b[1]=D):D=b[1];const U=D,M=(0,A.useAssignFace)(),L=(0,A.useUnassignFace)(),W=(0,A.useUnassignAllForIdentity)(),H=(0,A.useCreateIdentity)(),[V,_]=(0,o.useState)(""),[E,O]=(0,o.useState)(null),X=M.isPending||L.isPending||W.isPending||H.isPending;let $;b[2]!==N?($=()=>{_(""),O(null),N()},b[2]=N,b[3]=$):$=b[3];const q=$;let J;b[4]!==M||b[5]!==X||b[6]!==q||b[7]!==j||b[8]!==G?(J=async e=>{if(j&&!X){O(null);try{await M.mutateAsync({faceId:j.faceId,identityId:e}),q()}catch{O(G("v2.tracks.assignFailed"))}}},b[4]=M,b[5]=X,b[6]=q,b[7]=j,b[8]=G,b[9]=J):J=b[9];const K=J;let Q;b[10]!==X||b[11]!==q||b[12]!==j||b[13]!==G||b[14]!==L?(Q=async()=>{if(j&&!X){O(null);try{await L.mutateAsync({faceId:j.faceId}),q()}catch{O(G("v2.tracks.disassociateFailed"))}}},b[10]=X,b[11]=q,b[12]=j,b[13]=G,b[14]=L,b[15]=Q):Q=b[15];const Y=Q;let Z;b[16]!==X||b[17]!==Y||b[18]!==j||b[19]!==G?(Z=()=>{j&&!X&&n.default.alert(G("v2.tracks.removePersonConfirmTitle"),G("v2.tracks.removePersonConfirmBody"),[{text:G("v2.settings.cancel"),style:"cancel"},{text:G("v2.tracks.removePerson"),style:"destructive",onPress:()=>{Y()}}])},b[16]=X,b[17]=Y,b[18]=j,b[19]=G,b[20]=Z):Z=b[20];const ee=Z;let te;b[21]!==X||b[22]!==q||b[23]!==j||b[24]!==G||b[25]!==W?(te=async()=>{const e=j?.identityId;if(j&&void 0!==e&&!X){O(null);try{await W.mutateAsync({identityId:e}),q()}catch{O(G("v2.tracks.disassociateAllFailed"))}}},b[21]=X,b[22]=q,b[23]=j,b[24]=G,b[25]=W,b[26]=te):te=b[26];const re=te;let oe;b[27]!==X||b[28]!==re||b[29]!==j||b[30]!==G?(oe=()=>{const e=j?.identityId;j&&void 0!==e&&!X&&n.default.alert(G("v2.tracks.removePersonAllConfirmTitle"),G("v2.tracks.removePersonAllConfirmBody"),[{text:G("v2.settings.cancel"),style:"cancel"},{text:G("v2.tracks.removePersonAll"),style:"destructive",onPress:()=>{re()}}])},b[27]=X,b[28]=re,b[29]=j,b[30]=G,b[31]=oe):oe=b[31];const ne=oe;let se;b[32]!==M||b[33]!==X||b[34]!==q||b[35]!==H||b[36]!==j||b[37]!==V||b[38]!==G?(se=async()=>{const e=V.trim();if(j&&!X&&0!==e.length){O(null);try{const t=await H.mutateAsync({name:e});await M.mutateAsync({faceId:j.faceId,identityId:t.id}),q()}catch{O(G("v2.tracks.assignFailed"))}}},b[32]=M,b[33]=X,b[34]=q,b[35]=H,b[36]=j,b[37]=V,b[38]=G,b[39]=se):se=b[39];const ae=se;let ie,le,de,ce,ue,ge,fe,me,ye,pe,be,xe;b[40]!==q?(ie=(0,P.jsx)(f.default,{style:R.scrim,onPress:q,accessibilityRole:"button"}),b[40]=q,b[41]=ie):ie=b[41],b[42]!==B.backgroundElevated?(le=[R.sheet,{backgroundColor:B.backgroundElevated}],b[42]=B.backgroundElevated,b[43]=le):le=b[43],b[44]!==B.foreground?(de=[R.title,{color:B.foreground}],b[44]=B.foreground,b[45]=de):de=b[45],b[46]!==G?(ce=G("v2.tracks.assignFaceTitle"),b[46]=G,b[47]=ce):ce=b[47],b[48]!==de||b[49]!==ce?(ue=(0,P.jsx)(c.default,{style:de,children:ce}),b[48]=de,b[49]=ce,b[50]=ue):ue=b[50],b[51]!==B.surface?(ge=[R.iconBtn,{backgroundColor:B.surface}],b[51]=B.surface,b[52]=ge):ge=b[52],b[53]!==B.foreground?(fe=(0,P.jsx)(v.X,{size:18,color:B.foreground}),b[53]=B.foreground,b[54]=fe):fe=b[54],b[55]!==q||b[56]!==ge||b[57]!==fe?(me=(0,P.jsx)(f.default,{onPress:q,hitSlop:10,style:ge,children:fe}),b[55]=q,b[56]=ge,b[57]=fe,b[58]=me):me=b[58],b[59]!==ue||b[60]!==me?(ye=(0,P.jsxs)(l.default,{style:R.header,children:[ue,me]}),b[59]=ue,b[60]=me,b[61]=ye):ye=b[61],b[62]!==X||b[63]!==B.danger||b[64]!==B.foregroundMuted||b[65]!==B.surface||b[66]!==ee||b[67]!==j||b[68]!==G?(pe=j?.base64?(0,P.jsxs)(l.default,{style:R.faceRow,children:[(0,P.jsx)(I.Image,{source:{uri:`data:image/jpeg;base64,${j.base64}`},style:[R.faceCrop,{backgroundColor:B.surface}],contentFit:"cover"}),(0,P.jsx)(c.default,{style:[R.faceHint,{color:B.foregroundMuted}],children:j.identityName??G("v2.tracks.notAssigned")}),j.assigned?(0,P.jsxs)(f.default,{onPress:ee,disabled:X,accessibilityRole:"button",accessibilityLabel:G("v2.tracks.removePerson"),style:[R.removeBtn,{backgroundColor:B.danger+"22",opacity:X?.5:1}],children:[(0,P.jsx)(v.UserRoundX,{size:16,color:B.danger}),(0,P.jsx)(c.default,{style:[R.removeBtnText,{color:B.danger}],children:G("v2.tracks.removePerson")})]}):null]}):null,b[62]=X,b[63]=B.danger,b[64]=B.foregroundMuted,b[65]=B.surface,b[66]=ee,b[67]=j,b[68]=G,b[69]=pe):pe=b[69],b[70]!==X||b[71]!==B.danger||b[72]!==ne||b[73]!==j||b[74]!==G?(be=j?.assigned&&void 0!==j.identityId?(0,P.jsxs)(f.default,{onPress:ne,disabled:X,accessibilityRole:"button",accessibilityLabel:G("v2.tracks.removePersonAll"),style:[R.removeAllBtn,{borderColor:B.danger,opacity:X?.5:1}],children:[(0,P.jsx)(v.Users,{size:16,color:B.danger}),(0,P.jsx)(c.default,{style:[R.removeAllBtnText,{color:B.danger}],children:G("v2.tracks.removePersonAll")})]}):null,b[70]=X,b[71]=B.danger,b[72]=ne,b[73]=j,b[74]=G,b[75]=be):be=b[75],b[76]!==G?(xe=G("v2.tracks.newPersonPlaceholder"),b[76]=G,b[77]=xe):xe=b[77];const he=!X;let ve,Ie,Se,Ce;b[78]!==B.foreground||b[79]!==B.surface?(ve=[R.input,{backgroundColor:B.surface,color:B.foreground}],b[78]=B.foreground,b[79]=B.surface,b[80]=ve):ve=b[80],b[81]!==B.foregroundSubtle||b[82]!==V||b[83]!==xe||b[84]!==he||b[85]!==ve?(Ie=(0,P.jsx)(u.default,{value:V,onChangeText:_,placeholder:xe,placeholderTextColor:B.foregroundSubtle,editable:he,style:ve}),b[81]=B.foregroundSubtle,b[82]=V,b[83]=xe,b[84]=he,b[85]=ve,b[86]=Ie):Ie=b[86],b[87]!==ae?(Se=()=>{ae()},b[87]=ae,b[88]=Se):Se=b[88],b[89]!==X||b[90]!==V?(Ce=X||0===V.trim().length,b[89]=X,b[90]=V,b[91]=Ce):Ce=b[91];const Ae=X||0===V.trim().length?.5:1;let Pe,je,ke,Re,Ne,Be,Ge,we,Te,ze,Fe,De;b[92]!==B.primary||b[93]!==Ae?(Pe=[R.createBtn,{backgroundColor:B.primary,opacity:Ae}],b[92]=B.primary,b[93]=Ae,b[94]=Pe):Pe=b[94],b[95]!==G?(je=G("v2.tracks.createAndAssign"),b[95]=G,b[96]=je):je=b[96],b[97]!==B.primaryForeground?(ke=(0,P.jsx)(v.UserRoundPlus,{size:16,color:B.primaryForeground}),b[97]=B.primaryForeground,b[98]=ke):ke=b[98],b[99]!==B.primaryForeground?(Re=[R.createBtnText,{color:B.primaryForeground}],b[99]=B.primaryForeground,b[100]=Re):Re=b[100],b[101]!==G?(Ne=G("v2.tracks.createAndAssign"),b[101]=G,b[102]=Ne):Ne=b[102],b[103]!==Re||b[104]!==Ne?(Be=(0,P.jsx)(c.default,{style:Re,children:Ne}),b[103]=Re,b[104]=Ne,b[105]=Be):Be=b[105],b[106]!==Se||b[107]!==Ce||b[108]!==Pe||b[109]!==je||b[110]!==ke||b[111]!==Be?(Ge=(0,P.jsxs)(f.default,{onPress:Se,disabled:Ce,style:Pe,accessibilityRole:"button",accessibilityLabel:je,children:[ke,Be]}),b[106]=Se,b[107]=Ce,b[108]=Pe,b[109]=je,b[110]=ke,b[111]=Be,b[112]=Ge):Ge=b[112],b[113]!==Ie||b[114]!==Ge?(we=(0,P.jsxs)(l.default,{style:R.createRow,children:[Ie,Ge]}),b[113]=Ie,b[114]=Ge,b[115]=we):we=b[115],b[116]!==B.danger||b[117]!==E?(Te=null!==E?(0,P.jsx)(c.default,{style:[R.error,{color:B.danger}],children:E}):null,b[116]=B.danger,b[117]=E,b[118]=Te):Te=b[118],b[119]!==B.foregroundSubtle?(ze=[R.sectionLabel,{color:B.foregroundSubtle}],b[119]=B.foregroundSubtle,b[120]=ze):ze=b[120],b[121]!==G?(Fe=G("v2.tracks.existingPersons"),b[121]=G,b[122]=Fe):Fe=b[122],b[123]!==ze||b[124]!==Fe?(De=(0,P.jsx)(c.default,{style:ze,children:Fe}),b[123]=ze,b[124]=Fe,b[125]=De):De=b[125];const Ue=w.bottom+C.SPACING.md;let Me,Le,We,He,Ve,Ee;return b[126]!==Ue?(Me={paddingBottom:Ue},b[126]=Ue,b[127]=Me):Me=b[127],b[128]!==K||b[129]!==X||b[130]!==B.foregroundMuted||b[131]!==B.primary||b[132]!==j?.identityId||b[133]!==F||b[134]!==U||b[135]!==G?(Le=F?(0,P.jsx)(p.default,{color:B.primary,style:R.loader}):0===U.length?(0,P.jsx)(c.default,{style:[R.empty,{color:B.foregroundMuted}],children:G("v2.tracks.noPersons")}):U.map(e=>(0,P.jsx)(k,{person:e,current:j?.identityId===e.id,disabled:X,onPress:()=>{K(e.id)}},e.id)),b[128]=K,b[129]=X,b[130]=B.foregroundMuted,b[131]=B.primary,b[132]=j?.identityId,b[133]=F,b[134]=U,b[135]=G,b[136]=Le):Le=b[136],b[137]!==Me||b[138]!==Le?(We=(0,P.jsx)(y.default,{style:R.list,contentContainerStyle:Me,children:Le}),b[137]=Me,b[138]=Le,b[139]=We):We=b[139],b[140]!==le||b[141]!==ye||b[142]!==pe||b[143]!==be||b[144]!==we||b[145]!==Te||b[146]!==De||b[147]!==We?(He=(0,P.jsxs)(l.default,{style:le,children:[ye,pe,be,we,Te,De,We]}),b[140]=le,b[141]=ye,b[142]=pe,b[143]=be,b[144]=we,b[145]=Te,b[146]=De,b[147]=We,b[148]=He):He=b[148],b[149]!==ie||b[150]!==He?(Ve=(0,P.jsxs)(l.default,{style:R.backdrop,children:[ie,He]}),b[149]=ie,b[150]=He,b[151]=Ve):Ve=b[151],b[152]!==q||b[153]!==Ve||b[154]!==T?(Ee=(0,P.jsx)(s.default,{visible:T,animationType:"slide",transparent:!0,onRequestClose:q,children:Ve}),b[152]=q,b[153]=Ve,b[154]=T,b[155]=Ee):Ee=b[155],Ee}),k=(0,o.memo)(function(e){const o=(0,t.c)(30),{person:n,current:s,disabled:u,onPress:y}=e,{colors:p}=(0,S.useTheme)(),b=u||s,x=s?p.primary+"22":"transparent";let h,C,A,j,k,N,B,G,w;return o[0]!==x?(h=[R.personRow,{backgroundColor:x}],o[0]=x,o[1]=h):h=o[1],o[2]!==p.foregroundMuted||o[3]!==p.surface||o[4]!==n.coverBase64?(C=n.coverBase64?(0,P.jsx)(I.Image,{source:{uri:`data:image/jpeg;base64,${n.coverBase64}`},style:[R.avatar,{backgroundColor:p.surface}],contentFit:"cover"}):(0,P.jsx)(l.default,{style:[R.avatar,R.avatarEmpty,{backgroundColor:p.surface}],children:(0,P.jsx)(v.UserRound,{size:18,color:p.foregroundMuted})}),o[2]=p.foregroundMuted,o[3]=p.surface,o[4]=n.coverBase64,o[5]=C):C=o[5],o[6]!==p.foreground?(A=[R.personName,{color:p.foreground}],o[6]=p.foreground,o[7]=A):A=o[7],o[8]!==n.name||o[9]!==A?(j=(0,P.jsx)(c.default,{numberOfLines:1,style:A,children:n.name}),o[8]=n.name,o[9]=A,o[10]=j):j=o[10],o[11]!==p.foregroundSubtle?(k=[R.personCount,{color:p.foregroundSubtle}],o[11]=p.foregroundSubtle,o[12]=k):k=o[12],o[13]!==n.sampleCount||o[14]!==k?(N=(0,P.jsx)(c.default,{style:k,children:n.sampleCount}),o[13]=n.sampleCount,o[14]=k,o[15]=N):N=o[15],o[16]!==j||o[17]!==N?(B=(0,P.jsxs)(l.default,{style:R.personText,children:[j,N]}),o[16]=j,o[17]=N,o[18]=B):B=o[18],o[19]!==p.primary||o[20]!==s?(G=s?(0,P.jsx)(v.Check,{size:18,color:p.primary}):null,o[19]=p.primary,o[20]=s,o[21]=G):G=o[21],o[22]!==y||o[23]!==n.name||o[24]!==b||o[25]!==G||o[26]!==h||o[27]!==C||o[28]!==B?(w=(0,P.jsxs)(f.default,{onPress:y,disabled:b,accessibilityRole:"button",accessibilityLabel:n.name,style:h,children:[C,B,G]}),o[22]=y,o[23]=n.name,o[24]=b,o[25]=G,o[26]=h,o[27]=C,o[28]=B,o[29]=w):w=o[29],w}),R=b.default.create({backdrop:{flex:1,justifyContent:'flex-end'},scrim:{position:'absolute',top:0,left:0,right:0,bottom:0,backgroundColor:'rgba(0,0,0,0.5)'},sheet:{maxHeight:'80%',borderTopLeftRadius:C.RADIUS.xl,borderTopRightRadius:C.RADIUS.xl,paddingHorizontal:C.SPACING.md,paddingTop:C.SPACING.md},header:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingBottom:C.SPACING.sm},title:{fontSize:18,fontWeight:'700'},iconBtn:{width:32,height:32,borderRadius:C.RADIUS.md,alignItems:'center',justifyContent:'center'},faceRow:{flexDirection:'row',alignItems:'center',gap:C.SPACING.md,paddingBottom:C.SPACING.sm},faceCrop:{width:56,height:56,borderRadius:C.RADIUS.md},faceHint:{flex:1,fontSize:13,fontWeight:'500'},removeBtn:{flexDirection:'row',alignItems:'center',gap:4,paddingHorizontal:C.SPACING.md,paddingVertical:C.SPACING.sm,borderRadius:C.RADIUS.md},removeBtnText:{fontSize:13,fontWeight:'700'},removeAllBtn:{flexDirection:'row',alignItems:'center',justifyContent:'center',gap:C.SPACING.xs,paddingVertical:C.SPACING.sm,borderRadius:C.RADIUS.md,borderWidth:1,marginBottom:C.SPACING.sm},removeAllBtnText:{fontSize:13,fontWeight:'700'},createRow:{flexDirection:'row',gap:C.SPACING.sm,alignItems:'center'},input:{flex:1,borderRadius:C.RADIUS.md,paddingHorizontal:C.SPACING.sm,paddingVertical:C.SPACING.sm,fontSize:14},createBtn:{flexDirection:'row',alignItems:'center',gap:4,paddingHorizontal:C.SPACING.md,paddingVertical:C.SPACING.sm+2,borderRadius:C.RADIUS.md},createBtnText:{fontSize:13,fontWeight:'700'},error:{fontSize:12,fontWeight:'600',marginTop:C.SPACING.xs},sectionLabel:{fontSize:11,fontWeight:'700',textTransform:'uppercase',letterSpacing:.4,marginTop:C.SPACING.md,marginBottom:C.SPACING.xs},list:{flexGrow:0},loader:{marginVertical:C.SPACING.lg},empty:{fontSize:13,paddingVertical:C.SPACING.md},personRow:{flexDirection:'row',alignItems:'center',gap:C.SPACING.md,paddingVertical:C.SPACING.sm,paddingHorizontal:C.SPACING.sm,borderRadius:C.RADIUS.md},avatar:{width:40,height:40,borderRadius:20},avatarEmpty:{alignItems:'center',justifyContent:'center'},personText:{flex:1},personName:{fontSize:15,fontWeight:'600'},personCount:{fontSize:11}})},3374,[15,17,133,245,20,112,262,252,147,240,33,466,786,813,3053,2587,2589,3375,10]);
15796
15796
  __d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.toFaceInfo=c,e.toIdentity=o,e.sortIdentities=u,e.collectFaceIdsForIdentity=l,e.toMassUnassignResult=y,e.useTrackFace=function(o,u,l){const y=(0,t.c)(11),{controller:I,state:v}=(0,a.useConnection)();let p;y[0]!==o||y[1]!==u?(p=["v2",f,o,u],y[0]=o,y[1]=u,y[2]=p):p=y[2];const w=l&&"connected"===v;let C,h;y[3]!==I||y[4]!==o||y[5]!==u?(C=async()=>{const t=I.getSystem();if(!t)return null;return c(await(0,s.capQuery)(t.trpcClient,"faceGallery","getFaceByTrack",{deviceId:o,trackId:u}))},y[3]=I,y[4]=o,y[5]=u,y[6]=C):C=y[6];y[7]!==p||y[8]!==w||y[9]!==C?(h={queryKey:p,enabled:w,staleTime:3e4,queryFn:C},y[7]=p,y[8]=w,y[9]=C,y[10]=h):h=y[10];return(0,n.useQuery)(h)},e.useIdentities=function(c){const l=(0,t.c)(6),{controller:y,state:f}=(0,a.useConnection)();let v;l[0]===Symbol.for("react.memo_cache_sentinel")?(v=["v2",I],l[0]=v):v=l[0];const p=c&&"connected"===f;let w,C;l[1]!==y?(w=async()=>{const t=y.getSystem();if(!t)return[];const n=await(0,s.capQuery)(t.trpcClient,"faceGallery","listIdentities");if(!Array.isArray(n))return[];const a=[];for(const t of n){const n=o(t);null!==n&&a.push(n)}return u(a)},l[1]=y,l[2]=w):w=l[2];l[3]!==p||l[4]!==w?(C={queryKey:v,enabled:p,staleTime:3e4,queryFn:w},l[3]=p,l[4]=w,l[5]=C):C=l[5];return(0,n.useQuery)(C)},e.useAssignFace=function(){const s=(0,t.c)(7),{controller:c}=(0,a.useConnection)(),o=(0,n.useQueryClient)();let u,l,y;s[0]!==c?(u=async t=>{const{faceId:n,identityId:a}=t,s=c.getSystem();if(!s)throw new Error("not connected");await p(s.trpcClient,"faceGallery","assignFace",{faceId:n,identityId:a})},s[0]=c,s[1]=u):u=s[1];s[2]!==o?(l=async()=>{await o.invalidateQueries({queryKey:["v2",f]}),await o.invalidateQueries({queryKey:["v2",I]}),await o.invalidateQueries({queryKey:["v2",v]})},s[2]=o,s[3]=l):l=s[3];s[4]!==u||s[5]!==l?(y={mutationFn:u,onSuccess:l},s[4]=u,s[5]=l,s[6]=y):y=s[6];return(0,n.useMutation)(y)},e.useUnassignFace=function(){const s=(0,t.c)(7),{controller:c}=(0,a.useConnection)(),o=(0,n.useQueryClient)();let u,l,y;s[0]!==c?(u=async t=>{const{faceId:n}=t,a=c.getSystem();if(!a)throw new Error("not connected");await p(a.trpcClient,"faceGallery","unassignFace",{faceId:n})},s[0]=c,s[1]=u):u=s[1];s[2]!==o?(l=async()=>{await o.invalidateQueries({queryKey:["v2",f]}),await o.invalidateQueries({queryKey:["v2",I]}),await o.invalidateQueries({queryKey:["v2",v]})},s[2]=o,s[3]=l):l=s[3];s[4]!==u||s[5]!==l?(y={mutationFn:u,onSuccess:l},s[4]=u,s[5]=l,s[6]=y):y=s[6];return(0,n.useMutation)(y)},e.useUnassignAllForIdentity=function(){const c=(0,t.c)(7),{controller:o}=(0,a.useConnection)(),u=(0,n.useQueryClient)();let w,C,h;c[0]!==o?(w=async t=>{const{identityId:n}=t,a=o.getSystem();if(!a)throw new Error("not connected");const c=a.trpcClient,u=l(await(0,s.capQuery)(c,"faceGallery","listRecentFaces",{filter:"all"}),n);if(0===u.length)return{unassigned:0,failed:[]};return y(await p(a.trpcClient,"faceGallery","unassignFaces",{faceIds:u}))},c[0]=o,c[1]=w):w=c[1];c[2]!==u?(C=async()=>{await u.invalidateQueries({queryKey:["v2",f]}),await u.invalidateQueries({queryKey:["v2",I]}),await u.invalidateQueries({queryKey:["v2",v]})},c[2]=u,c[3]=C):C=c[3];c[4]!==w||c[5]!==C?(h={mutationFn:w,onSuccess:C},c[4]=w,c[5]=C,c[6]=h):h=c[6];return(0,n.useMutation)(h)},e.useCreateIdentity=function(){const s=(0,t.c)(7),{controller:c}=(0,a.useConnection)(),u=(0,n.useQueryClient)();let l,y,f;s[0]!==c?(l=async t=>{const{name:n}=t,a=c.getSystem();if(!a)throw new Error("not connected");const s=o(await p(a.trpcClient,"faceGallery","createIdentity",{name:n}));if(null===s)throw new Error("createIdentity failed");return s},s[0]=c,s[1]=l):l=s[1];s[2]!==u?(y=async()=>{await u.invalidateQueries({queryKey:["v2",I]})},s[2]=u,s[3]=y):y=s[3];s[4]!==l||s[5]!==y?(f={mutationFn:l,onSuccess:y},s[4]=l,s[5]=y,s[6]=f):f=s[6];return(0,n.useMutation)(f)};var t=r(d[0]),n=r(d[1]),a=r(d[2]),s=r(d[3]);function c(t){return(0,s.isRecord)(t)?'string'!=typeof t.faceId||0===t.faceId.length||'number'!=typeof t.deviceId||'string'!=typeof t.trackId||0===t.trackId.length?null:{faceId:t.faceId,deviceId:t.deviceId,trackId:t.trackId,timestamp:'number'==typeof t.timestamp?t.timestamp:0,assigned:!0===t.assigned,identityId:'string'==typeof t.recognizedIdentityId&&t.recognizedIdentityId.length>0?t.recognizedIdentityId:void 0,identityName:'string'==typeof t.identityName&&t.identityName.length>0?t.identityName:void 0,base64:'string'==typeof t.base64&&t.base64.length>0?t.base64:void 0}:null}function o(t){return(0,s.isRecord)(t)?'string'!=typeof t.id||0===t.id.length||'string'!=typeof t.name||0===t.name.length?null:{id:t.id,name:t.name,sampleCount:'number'==typeof t.sampleCount?t.sampleCount:0,coverBase64:'string'==typeof t.coverBase64&&t.coverBase64.length>0?t.coverBase64:void 0}:null}function u(t){return[...t].sort((t,n)=>t.name.toLowerCase().localeCompare(n.name.toLowerCase()))}function l(t,n){if(!Array.isArray(t)||0===n.length)return[];const a=[];for(const s of t){const t=c(s);null!==t&&t.identityId===n&&a.push(t.faceId)}return a}function y(t){if(!(0,s.isRecord)(t))return{unassigned:0,failed:[]};return{unassigned:'number'==typeof t.unassigned?t.unassigned:0,failed:Array.isArray(t.failed)?t.failed.filter(t=>'string'==typeof t):[]}}const f='track-face',I='face-identities',v='tracks-feed';async function p(t,n,a,c){const o=t[n],u=(0,s.isRecord)(o)||'function'==typeof o?o[a]:void 0,l=null!=u?u.mutate:void 0;if('function'!=typeof l)throw new Error(`${n}.${a} unavailable`);return await l(c)}},3375,[15,3081,2594,3162]);
15797
15797
  __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,"TrackMetadataSheet",{enumerable:!0,get:function(){return j}});var t=r(d[0]),o=r(d[1]),l=e(r(d[2])),n=e(r(d[3])),s=e(r(d[4])),c=e(r(d[5])),u=e(r(d[6])),f=e(r(d[7])),b=r(d[8]),m=r(d[9]),y=r(d[10]),p=r(d[11]),k=r(d[12]),v=r(d[13]),h=r(d[14]);function S(e){return`${new Date(e).toLocaleString()} (${e})`}function x(e,t,o){return[{key:'trackId',label:o('v2.tracks.meta.trackId'),value:e.trackId},{key:'bestEventId',label:o('v2.tracks.meta.eventId'),value:e.bestEventId},{key:'deviceId',label:o('v2.tracks.meta.deviceId'),value:String(e.deviceId)},{key:'camera',label:o('v2.tracks.meta.camera'),value:e.cameraName},{key:'className',label:o('v2.tracks.meta.className'),value:e.className},...void 0!==e.label?[{key:'label',label:o('v2.tracks.meta.label'),value:e.label}]:[],{key:'firstSeen',label:o('v2.tracks.meta.firstSeen'),value:S(e.firstSeen),copyValue:String(e.firstSeen)},{key:'lastSeen',label:o('v2.tracks.meta.lastSeen'),value:S(e.lastSeen),copyValue:String(e.lastSeen)},{key:'state',label:o('v2.tracks.meta.state'),value:e.state},...'number'==typeof e.importance?[{key:'importance',label:o('v2.tracks.meta.importance'),value:`${Math.round(100*e.importance)}%`,copyValue:String(e.importance)}]:[],...void 0!==e.importanceReason?[{key:'reason',label:o('v2.tracks.reason'),value:e.importanceReason}]:[],...'number'==typeof t?[{key:'confidence',label:o('v2.tracks.meta.confidence'),value:`${Math.round(100*t)}%`,copyValue:String(t)}]:[],...e.zonesVisited.length>0?[{key:'zones',label:o('v2.tracks.zones'),value:e.zonesVisited.join(', ')}]:[],...e.audioLabels.length>0?[{key:'audio',label:o('v2.tracks.audio'),value:e.audioLabels.join(', ')}]:[]]}const j=(0,o.memo)(function(e){const o=(0,t.c)(47),{track:f,confidence:v,mediaKeys:S,onClose:j}=e,{colors:I}=(0,p.useTheme)(),{t:R}=(0,m.useTranslation)(),A=(0,b.useSafeAreaInsets)(),P=null!==f;let V,z,N,M,B,L,G,D,E;o[0]!==j?(V=(0,h.jsx)(c.default,{style:C.scrim,onPress:j,accessibilityRole:"button"}),o[0]=j,o[1]=V):V=o[1],o[2]!==I.backgroundElevated?(z=[C.sheet,{backgroundColor:I.backgroundElevated}],o[2]=I.backgroundElevated,o[3]=z):z=o[3],o[4]!==I.foreground?(N=[C.title,{color:I.foreground}],o[4]=I.foreground,o[5]=N):N=o[5],o[6]!==R?(M=R("v2.tracks.metadata"),o[6]=R,o[7]=M):M=o[7],o[8]!==N||o[9]!==M?(B=(0,h.jsx)(s.default,{style:N,children:M}),o[8]=N,o[9]=M,o[10]=B):B=o[10],o[11]!==I.surface?(L=[C.iconBtn,{backgroundColor:I.surface}],o[11]=I.surface,o[12]=L):L=o[12],o[13]!==I.foreground?(G=(0,h.jsx)(y.X,{size:18,color:I.foreground}),o[13]=I.foreground,o[14]=G):G=o[14],o[15]!==j||o[16]!==L||o[17]!==G?(D=(0,h.jsx)(c.default,{onPress:j,hitSlop:10,style:L,children:G}),o[15]=j,o[16]=L,o[17]=G,o[18]=D):D=o[18],o[19]!==B||o[20]!==D?(E=(0,h.jsxs)(n.default,{style:C.header,children:[B,D]}),o[19]=B,o[20]=D,o[21]=E):E=o[21];const _=A.bottom+k.SPACING.md;let W,U,$,H,K,O,q;return o[22]!==_?(W={paddingBottom:_},o[22]=_,o[23]=W):W=o[23],o[24]!==v||o[25]!==R||o[26]!==f?(U=null!==f?x(f,v,R).map(T):null,o[24]=v,o[25]=R,o[26]=f,o[27]=U):U=o[27],o[28]!==I.foregroundSubtle||o[29]!==S||o[30]!==R?($=S.length>0?(0,h.jsxs)(h.Fragment,{children:[(0,h.jsx)(s.default,{style:[C.sectionLabel,{color:I.foregroundSubtle}],children:R("v2.tracks.meta.mediaKeys")}),S.map(w)]}):null,o[28]=I.foregroundSubtle,o[29]=S,o[30]=R,o[31]=$):$=o[31],o[32]!==W||o[33]!==U||o[34]!==$?(H=(0,h.jsxs)(u.default,{contentContainerStyle:W,children:[U,$]}),o[32]=W,o[33]=U,o[34]=$,o[35]=H):H=o[35],o[36]!==E||o[37]!==H||o[38]!==z?(K=(0,h.jsxs)(n.default,{style:z,children:[E,H]}),o[36]=E,o[37]=H,o[38]=z,o[39]=K):K=o[39],o[40]!==K||o[41]!==V?(O=(0,h.jsxs)(n.default,{style:C.backdrop,children:[V,K]}),o[40]=K,o[41]=V,o[42]=O):O=o[42],o[43]!==j||o[44]!==P||o[45]!==O?(q=(0,h.jsx)(l.default,{visible:P,animationType:"slide",transparent:!0,onRequestClose:j,children:O}),o[43]=j,o[44]=P,o[45]=O,o[46]=q):q=o[46],q}),I=(0,o.memo)(function(e){const l=(0,t.c)(40),{label:u,value:f,copyValue:b}=e,{colors:k}=(0,p.useTheme)(),{t:S}=(0,m.useTranslation)(),[x,j]=(0,o.useState)(!1);let I,T,w;l[0]!==x?(I=()=>{if(!x)return;const e=setTimeout(()=>j(!1),1500);return()=>clearTimeout(e)},T=[x],l[0]=x,l[1]=I,l[2]=T):(I=l[1],T=l[2]),(0,o.useEffect)(I,T),l[3]!==b?(w=async()=>{await(0,v.copyText)(b)&&j(!0)},l[3]=b,l[4]=w):w=l[4];const R=w;let A,P,V,z,N,M,B,L,G,D,E,_;return l[5]!==k.borderSubtle?(A=[C.row,{borderBottomColor:k.borderSubtle}],l[5]=k.borderSubtle,l[6]=A):A=l[6],l[7]!==k.foregroundMuted?(P=[C.rowLabel,{color:k.foregroundMuted}],l[7]=k.foregroundMuted,l[8]=P):P=l[8],l[9]!==u||l[10]!==P?(V=(0,h.jsx)(s.default,{style:P,children:u}),l[9]=u,l[10]=P,l[11]=V):V=l[11],l[12]!==k.foreground?(z=[C.rowValue,{color:k.foreground}],l[12]=k.foreground,l[13]=z):z=l[13],l[14]!==z||l[15]!==f?(N=(0,h.jsx)(s.default,{selectable:!0,style:z,children:f}),l[14]=z,l[15]=f,l[16]=N):N=l[16],l[17]!==V||l[18]!==N?(M=(0,h.jsxs)(n.default,{style:C.rowText,children:[V,N]}),l[17]=V,l[18]=N,l[19]=M):M=l[19],l[20]!==R?(B=()=>{R()},l[20]=R,l[21]=B):B=l[21],l[22]!==x||l[23]!==S?(L=S(x?"v2.tracks.copied":"v2.tracks.copy"),l[22]=x,l[23]=S,l[24]=L):L=l[24],l[25]!==k.surface?(G=[C.copyBtn,{backgroundColor:k.surface}],l[25]=k.surface,l[26]=G):G=l[26],l[27]!==k.foregroundMuted||l[28]!==k.success||l[29]!==x?(D=x?(0,h.jsx)(y.Check,{size:14,color:k.success}):(0,h.jsx)(y.Copy,{size:14,color:k.foregroundMuted}),l[27]=k.foregroundMuted,l[28]=k.success,l[29]=x,l[30]=D):D=l[30],l[31]!==B||l[32]!==L||l[33]!==G||l[34]!==D?(E=(0,h.jsx)(c.default,{onPress:B,hitSlop:8,accessibilityRole:"button",accessibilityLabel:L,style:G,children:D}),l[31]=B,l[32]=L,l[33]=G,l[34]=D,l[35]=E):E=l[35],l[36]!==E||l[37]!==A||l[38]!==M?(_=(0,h.jsxs)(n.default,{style:A,children:[M,E]}),l[36]=E,l[37]=A,l[38]=M,l[39]=_):_=l[39],_}),C=f.default.create({backdrop:{flex:1,justifyContent:'flex-end'},scrim:{position:'absolute',top:0,left:0,right:0,bottom:0,backgroundColor:'rgba(0,0,0,0.5)'},sheet:{maxHeight:'80%',borderTopLeftRadius:k.RADIUS.xl,borderTopRightRadius:k.RADIUS.xl,paddingHorizontal:k.SPACING.md,paddingTop:k.SPACING.md},header:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingBottom:k.SPACING.sm},title:{fontSize:18,fontWeight:'700'},iconBtn:{width:32,height:32,borderRadius:k.RADIUS.md,alignItems:'center',justifyContent:'center'},sectionLabel:{fontSize:11,fontWeight:'700',textTransform:'uppercase',letterSpacing:.4,marginTop:k.SPACING.md,marginBottom:k.SPACING.xs},row:{flexDirection:'row',alignItems:'center',gap:k.SPACING.sm,paddingVertical:k.SPACING.sm,borderBottomWidth:f.default.hairlineWidth},rowText:{flex:1},rowLabel:{fontSize:11,fontWeight:'600',textTransform:'uppercase',letterSpacing:.3},rowValue:{fontSize:13,marginTop:1},copyBtn:{width:30,height:30,borderRadius:k.RADIUS.md,alignItems:'center',justifyContent:'center'}});function T(e){return(0,h.jsx)(I,{label:e.label,value:e.value,copyValue:e.copyValue??e.value},e.key)}function w(e){return(0,h.jsx)(I,{label:e.kind,value:e.key,copyValue:e.key},e.key)}},3376,[15,17,245,20,112,252,147,33,466,786,813,2587,2589,3377,10]);
15798
15798
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.copyText=async function(t){if(null==t)return!1;const n='string'==typeof t?t:String(t);try{{const t='undefined'!=typeof navigator?navigator.clipboard:void 0;return!!t?.writeText&&(await t.writeText(n),!0)}}catch{return!1}},r(d[0])},3377,{"0":136,"1":3599,"2":3378,"paths":{"3599":"/viewer/camstack/_expo/static/js/web/Clipboard-2b3a3b41457cedb4c92b5b20a05806d2.js"}});
15799
15799
  __d(function(g,r,i,a,m,e,d){m.exports=r(d[0])},3378,[3379]);
15800
15800
  __d(function(g,r,i,a,m,e,d){function n(n,t){const o=globalThis[`${__METRO_GLOBAL_PREFIX__??''}__loadBundleAsync`];if(null!=o){const s=String(n);if(null!=t){const n=t[s];if(null!=n)return o(n)}}}function t(t,o,s){const u=()=>r.importAll(t,s);try{return u()}catch(s){const c=n(t,o);if(null!=c)return c.then(u);throw s}const c=n(t,o);return null!=c?c.then(u):u()}function o(n,o,s){const u=t(n,o,s);return u instanceof Promise?{_result:u,then:(n,t)=>u.then(n,t)}:{_result:u,then:(n,t)=>Promise.resolve(u).then(n,t)}}o.unstable_importMaybeSync=function(n,o){return t(n,o)},o.prefetch=function(t,o,s){n(t,o)?.then(()=>{},()=>{})},o.unstable_resolve=function(n,t){if(!t)throw new Error('Bundle splitting is required for Web Worker imports');const o=t[n];if(!o)throw new Error('Worker import is missing from split bundle paths: '+o);return o},o.unstable_createWorker=function(n,t){if('undefined'==typeof crossOriginIsolated||!crossOriginIsolated)return new Worker(n,t);try{const s=(o=n,`\n const ASYNC_WORKER_BASE = ${JSON.stringify(o)};\n const IMPORT_SCRIPTS = importScripts;\n const FETCH = fetch;\n const fromBaseURL = (input) => new URL(input, ASYNC_WORKER_BASE).href;\n self.fetch = function(input, init) {\n return FETCH(typeof input === 'string' ? fromBaseURL(input) : input, init);\n };\n self.importScripts = function(...urls) {\n return IMPORT_SCRIPTS.apply(self, urls.map(fromBaseURL));\n };\n importScripts(ASYNC_WORKER_BASE);\n `);return n=URL.createObjectURL(new Blob([s],{type:'text/javascript'})),new Worker(n,t)}finally{URL.revokeObjectURL(n)}var o},m.exports=o},3379,[]);
15801
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useTrackDetailMedia=function(u,k,y){const v=(0,t.c)(26),{controller:f,state:p}=(0,l.useConnection)(),b=k??"none",M=y??"none";let _;v[0]!==u||v[1]!==b||v[2]!==M?(_=["v2","analytics","track-detail-media",u,b,M],v[0]=u,v[1]=b,v[2]=M,v[3]=_):_=v[3];const F="connected"===p&&null!==k;let T,h;v[4]!==k||v[5]!==f||v[6]!==y?(T=async()=>{const t=f.getSystem();if(!t||null===k)return{event:[],track:[]};const n=t.trpcClient,[l,o]=await Promise.all([(0,c.capQuery)(n,"pipelineAnalytics","getEventMedia",{eventId:k}),null!==y?(0,c.capQuery)(n,"pipelineAnalytics","getTrackMedia",{trackId:y}):Promise.resolve(null)]);return{event:(0,s.parseMediaFiles)(l),track:(0,s.parseMediaFiles)(o)}},v[4]=k,v[5]=f,v[6]=y,v[7]=T):T=v[7];v[8]!==_||v[9]!==F||v[10]!==T?(h={queryKey:_,enabled:F,staleTime:6e4,queryFn:T},v[8]=_,v[9]=F,v[10]=T,v[11]=h):h=v[11];const S=(0,n.useQuery)(h);let I;e:{if(!S.data){I=o;break e}let t;v[12]!==S.data.event||v[13]!==S.data.track?(t=(0,s.resolveTrackDetailImages)(S.data.event,S.data.track),v[12]=S.data.event,v[13]=S.data.track,v[14]=t):t=v[14],I=t}const L=I;let P;e:{if(!S.data){let t;v[15]===Symbol.for("react.memo_cache_sentinel")?(t=[],v[15]=t):t=v[15],P=t;break e}let t;if(v[16]!==S.data.event||v[17]!==S.data.track){const n=new Set;t=[];for(const l of[...S.data.event,...S.data.track])n.has(l.key)||(n.add(l.key),t.push({key:l.key,kind:l.kind}));v[16]=S.data.event,v[17]=S.data.track,v[18]=t}else t=v[18];P=t}const Q=P;let U;v[19]!==S.data?(U=S.data?(0,s.buildTrackGallery)(S.data.event,S.data.track):[],v[19]=S.data,v[20]=U):U=v[20];const j=U;let q;v[21]!==j||v[22]!==L||v[23]!==Q||v[24]!==S.isLoading?(q=Object.assign({},L,{loading:S.isLoading,mediaKeys:Q,gallery:j}),v[21]=j,v[22]=L,v[23]=Q,v[24]=S.isLoading,v[25]=q):q=v[25];return q};var t=r(d[0]);r(d[1]);var n=r(d[2]),l=r(d[3]),c=r(d[4]),s=r(d[5]);const o={cropUri:null,fullFrameUri:null,fullFrameBoxedUri:null,hasServerBoxed:!1}},3380,[15,17,3081,2594,3162,3381]);
15802
- __d(function(g,_r,_i,_a,m,e,d){"use strict";function t(t){return'object'==typeof t&&null!==t&&!Array.isArray(t)}function n(t){return Array.isArray(t)?t.filter(t=>'string'==typeof t&&t.length>0):[]}function r(n){if(!Array.isArray(n))return[];const r=[];for(const a of n)t(a)&&'string'==typeof a.label&&a.label.length>0&&(r.includes(a.label)||r.push(a.label));return r}function a(t,n){return t.find(t=>t.kind===n)}function i(t){return t?`data:image/jpeg;base64,${t.base64}`:null}Object.defineProperty(e,'__esModule',{value:!0}),e.toTrackSummary=function(a,i){if(!t(a))return null;if('string'!=typeof a.trackId||0===a.trackId.length)return null;if('number'!=typeof a.deviceId)return null;if('string'!=typeof a.className||0===a.className.length)return null;if('number'!=typeof a.firstSeen||'number'!=typeof a.lastSeen)return null;const l='string'==typeof a.bestEventId&&a.bestEventId.length>0?a.bestEventId:a.trackId;return Object.assign({trackId:a.trackId,deviceId:a.deviceId,cameraName:i,className:a.className,label:'string'==typeof a.label&&a.label.length>0?a.label:void 0,importance:'number'==typeof a.importance?a.importance:void 0,importanceReason:'string'==typeof a.importanceReason?a.importanceReason:void 0,firstSeen:a.firstSeen,lastSeen:a.lastSeen,state:'string'==typeof a.state?a.state:'idle',active:!0===a.active,zonesVisited:n(a.zonesVisited),audioLabels:r(a.audioLabels),bestEventId:l},'string'==typeof a.producingDeviceName&&a.producingDeviceName.length>0?{producingDeviceName:a.producingDeviceName}:{})},e.trackLabels=function(t){const n=[t.className];void 0===t.label||n.includes(t.label)||n.push(t.label);for(const r of t.audioLabels)n.includes(r)||n.push(r);return n},e.trackLocationLabel=function(t){return t.producingDeviceName??t.cameraName},e.passesImportanceFilter=function(t,n){return n<=0||(t??0)>=n},e.hasAnyImportance=function(t){return t.some(t=>'number'==typeof t.importance)},e.sortTracks=function(t,n){const r=[...t];return'time'===n?r.sort((t,n)=>n.lastSeen-t.lastSeen):r.sort((t,n)=>{const r=t.importance??Number.NEGATIVE_INFINITY,a=n.importance??Number.NEGATIVE_INFINITY;return r!==a?a-r:n.lastSeen-t.lastSeen})},e.parseMediaFiles=function(n){if(!Array.isArray(n))return[];const r=[];for(const a of n){if(!t(a))continue;const n='string'==typeof a.key&&a.key.length>0?a.key:null,i='string'==typeof a.kind&&a.kind.length>0?a.kind:null,l='string'==typeof a.base64&&a.base64.length>0?a.base64:null,s='number'==typeof a.timestamp?a.timestamp:0;null!==n&&null!==i&&null!==l&&r.push({key:n,kind:i,base64:l,timestamp:s})}return r},e.pickMediaByKind=a,e.mediaDataUri=i,e.resolveTrackDetailImages=function(t,n){const r=a(n,'thumbnail')??a(t,'crop'),l=a(t,'fullFrameBoxed'),s=a(n,'keyFrame')??a(n,'keyFrameSmall')??a(t,'fullFrame')??a(n,'firstFrame')??a(n,'lastFrame');return{cropUri:i(r),fullFrameUri:i(s),fullFrameBoxedUri:i(l),hasServerBoxed:void 0!==l}},e.buildTrackGallery=function(t,n){const r=new Map;for(const a of[...t,...n])r.has(a.key)||r.set(a.key,a);const a=t=>{const n=l.indexOf(t);return-1===n?l.length:n};return[...r.values()].sort((t,n)=>{const r=a(t.kind),i=a(n.kind);return r!==i?r-i:t.timestamp!==n.timestamp?t.timestamp-n.timestamp:t.key<n.key?-1:t.key>n.key?1:0})},e.cleanFrameKey=function(t){const n=a(t,'keyFrame')??a(t,'keyFrameSmall')??a(t,'fullFrame')??a(t,'firstFrame')??a(t,'lastFrame');return n?.key??null},Object.defineProperty(e,"FRAME_KINDS",{enumerable:!0,get:function(){return s}}),e.mediaKindLabel=function(t,n){const r=o[t];return void 0===r?t:n(r)},e.shouldRenderFaceSection=function(t){return null!=t},e.toScoredResult=function(n){if(!t(n))return null;if('string'!=typeof n.id||0===n.id.length)return null;if('number'!=typeof n.deviceId)return null;if('string'!=typeof n.className||0===n.className.length)return null;if('number'!=typeof n.timestamp)return null;if('number'!=typeof n.score)return null;const r='string'==typeof n.mediaKey&&n.mediaKey.length>0?n.mediaKey:null,a='string'==typeof n.trackId&&n.trackId.length>0?n.trackId:null,i=r??a??n.id;return Object.assign({id:n.id,deviceId:n.deviceId,timestamp:n.timestamp,className:n.className,label:'string'==typeof n.label&&n.label.length>0?n.label:void 0,score:n.score,thumbId:i},null!==a?{trackId:a}:{})},e.scoredToTrackSummary=function(t,n){return{trackId:t.trackId??t.id,deviceId:t.deviceId,cameraName:n,className:t.className,label:t.label,firstSeen:t.timestamp,lastSeen:t.timestamp,state:'idle',active:!1,zonesVisited:[],audioLabels:[],bestEventId:t.thumbId}};const l=['crop','thumbnail','faceCrop','plateCrop','fullFrame','fullFrameBoxed','keyFrame','keyFrameSmall','firstFrame','lastFrame','snapshot'];const s=new Set(['fullFrame','fullFrameBoxed','keyFrame','keyFrameSmall']);const o={crop:'v2.mediaKind.crop',thumbnail:'v2.mediaKind.thumbnail',faceCrop:'v2.mediaKind.faceCrop',plateCrop:'v2.mediaKind.plateCrop',fullFrame:'v2.mediaKind.fullFrame',fullFrameBoxed:'v2.mediaKind.fullFrameBoxed',keyFrame:'v2.mediaKind.keyFrame',keyFrameSmall:'v2.mediaKind.keyFrame',firstFrame:'v2.mediaKind.firstFrame',lastFrame:'v2.mediaKind.lastFrame',snapshot:'v2.mediaKind.snapshot'}},3381,[]);
15803
- __d(function(g,r,i,a,m,e,_d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useTrackBestDetection=function(u,d,f,y,v,b){const p=(0,n.c)(17),{controller:_,state:j}=(0,l.useConnection)(),k=d??"none";let A;p[0]!==u||p[1]!==k?(A=["v2","analytics","track-best-detection",u,k],p[0]=u,p[1]=k,p[2]=A):A=p[2];const D=b&&"connected"===j&&null!==d;let L,q;p[3]!==f||p[4]!==_||p[5]!==u||p[6]!==y||p[7]!==v||p[8]!==d?(L=async()=>{const n=_.getSystem();if(!n||null===d)return null;const t=await(0,c.capQuery)(n.trpcClient,"pipelineAnalytics","getObjectEvents",{deviceId:u,since:y-s,until:v+s,limit:500,projection:"full"});if(!Array.isArray(t))return null;let l=null;for(const n of t){const t=(0,o.toDetailDetection)(n);if(null!==t&&t.trackId===d&&void 0!==t.bbox){if(null!==f&&t.id===f)return t;(null===l||(t.confidence??0)>(l.confidence??0))&&(l=t)}}return l},p[3]=f,p[4]=_,p[5]=u,p[6]=y,p[7]=v,p[8]=d,p[9]=L):L=p[9];p[10]!==A||p[11]!==D||p[12]!==L?(q={queryKey:A,enabled:D,staleTime:6e4,queryFn:L},p[10]=A,p[11]=D,p[12]=L,p[13]=q):q=p[13];const C=(0,t.useQuery)(q),I=C.data??null;let O;p[14]!==C.isLoading||p[15]!==I?(O={detection:I,loading:C.isLoading},p[14]=C.isLoading,p[15]=I,p[16]=O):O=p[16];return O};var n=r(_d[0]);r(_d[1]);var t=r(_d[2]),l=r(_d[3]),c=r(_d[4]),o=r(_d[5]);const s=2e3},3382,[15,17,3081,2594,3162,3240]);
15804
- __d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"WINDOW_MS",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"FLOOR_MS",{enumerable:!0,get:function(){return h}}),e.trackWindow=P,e.nextWindowStart=y,e.useTracksFeed=function(f,S,I){const L=(0,t.c)(50),{controller:v,state:C}=(0,s.useConnection)(),{data:F}=(0,c.useCameras)(),O=I?.perCameraLimit??p,_=I?.maxAgeMs??h;let D,T;L[0]!==F?(D=F??[],L[0]=F,L[1]=D):D=L[1];L[2]!==D?(T=D.map(x),L[2]=D,L[3]=T):T=L[3];const j=T;let A;L[4]!==j?(A=j.map(k).join(","),L[4]=j,L[5]=A):A=L[5];const W=A,[q]=(0,a.useState)(b),Q=S??q;let $;L[6]!==Q||L[7]!==W||L[8]!==_||L[9]!==O?($=["v2","tracks-feed",W,Q,O,_],L[6]=Q,L[7]=W,L[8]=_,L[9]=O,L[10]=$):$=L[10];const K="connected"===C&&j.length>0;let R,z,B;L[11]!==Q||L[12]!==j||L[13]!==v||L[14]!==_||L[15]!==O?(R=async t=>{const{pageParam:a}=t,{untilMs:n,sinceMs:s}=P(a,Q,_),c=v.getSystem();if(!c)return{tracks:[],untilMs:n,sinceMs:s};const f=c.trpcClient,h=Date.now(),p=(await Promise.all(j.map(async t=>{const a=await(0,l.capQuery)(f,"pipelineAnalytics","listTracks",{deviceId:t.id,since:s,until:n,limit:O}).catch(a=>(o.log.warn("tracks-feed","listTracks failed",{cameraId:t.id,error:String(a)}),null));if(!Array.isArray(a))return[];const c=[];for(const n of a){const a=(0,u.toTrackSummary)(n,t.name);null!==a&&c.push(a)}return c}))).flat().sort(w);return o.log.debug("tracks-feed","page loaded",{ms:Date.now()-h,cameras:j.length,rows:p.length,limit:O}),{tracks:p,untilMs:n,sinceMs:s}},L[11]=Q,L[12]=j,L[13]=v,L[14]=_,L[15]=O,L[16]=R):R=L[16];L[17]!==Q||L[18]!==_?(z=t=>y(t.sinceMs,Q,_),L[17]=Q,L[18]=_,L[19]=z):z=L[19];L[20]!==Q||L[21]!==$||L[22]!==K||L[23]!==R||L[24]!==z?(B={queryKey:$,enabled:K,staleTime:3e4,placeholderData:N,initialPageParam:Q,queryFn:R,getNextPageParam:z},L[20]=Q,L[21]=$,L[22]=K,L[23]=R,L[24]=z,L[25]=B):B=L[25];const E=(0,n.useInfiniteQuery)(B);let G,H;L[26]!==E.data?.pages?(G=E.data?.pages??[],L[26]=E.data?.pages,L[27]=G):G=L[27];L[28]!==G?(H=G.flatMap(M),L[28]=G,L[29]=H):H=L[29];const J=H;let U;if(L[30]!==J){const t=new Set;for(const a of J)t.add(a.className);U=[...t].sort(),L[30]=J,L[31]=U}else U=L[31];const V=U;let X;if(L[32]!==J||L[33]!==f.cameraIds||L[34]!==f.classes||L[35]!==f.label){const t=f.cameraIds.length>0?new Set(f.cameraIds):null,a=f.classes.length>0?new Set(f.classes):null,n=f.label.trim().toLowerCase();X=J.filter(s=>{if(t&&!t.has(s.deviceId))return!1;if(a&&!a.has(s.className))return!1;if(n.length>0){if(!`${s.label??""} ${s.className}`.toLowerCase().includes(n))return!1}return!0}),L[32]=J,L[33]=f.cameraIds,L[34]=f.classes,L[35]=f.label,L[36]=X}else X=L[36];const Y=X;let Z;L[37]!==E?(Z=()=>{E.fetchNextPage()},L[37]=E,L[38]=Z):Z=L[38];const ee=E.hasNextPage??!1;let te,ae;L[39]!==E?(te=()=>{E.refetch()},L[39]=E,L[40]=te):te=L[40];L[41]!==J.length||L[42]!==V||L[43]!==E.isFetchingNextPage||L[44]!==E.isLoading||L[45]!==Z||L[46]!==ee||L[47]!==te||L[48]!==Y?(ae={tracks:Y,loading:E.isLoading,fetchNextPage:Z,hasNextPage:ee,isFetchingNextPage:E.isFetchingNextPage,refetch:te,totalLoaded:J.length,availableClasses:V},L[41]=J.length,L[42]=V,L[43]=E.isFetchingNextPage,L[44]=E.isLoading,L[45]=Z,L[46]=ee,L[47]=te,L[48]=Y,L[49]=ae):ae=L[49];return ae};var t=r(d[0]),a=r(d[1]),n=r(d[2]),s=r(d[3]),c=r(d[4]),l=r(d[5]),o=r(d[6]),u=r(d[7]);const f=432e5,h=7776e6,p=60;function P(t,a,n){const s=a-n;return{untilMs:t,sinceMs:Math.max(s,t-f)}}function y(t,a,n){return t>a-n?t:void 0}function M(t){return t.tracks}function w(t,a){return a.lastSeen-t.lastSeen}function N(t){return t}function b(){return Date.now()}function k(t){return t.id}function x(t){return{id:t.id,name:t.name}}},3383,[15,17,3081,2594,3080,3162,2705,3381]);
15801
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useTrackDetailMedia=function(u,k,y){const v=(0,t.c)(26),{controller:f,state:p}=(0,l.useConnection)(),b=k??"none",M=y??"none";let _;v[0]!==u||v[1]!==b||v[2]!==M?(_=["v2","analytics","track-detail-media",u,b,M],v[0]=u,v[1]=b,v[2]=M,v[3]=_):_=v[3];const F="connected"===p&&null!==k;let T,h;v[4]!==k||v[5]!==f||v[6]!==y?(T=async()=>{const t=f.getSystem();if(!t||null===k)return{event:[],track:[]};const n=t.trpcClient,[l,o]=await Promise.all([(0,c.capQuery)(n,"pipelineAnalytics","getEventMedia",{eventId:k}),null!==y?(0,c.capQuery)(n,"pipelineAnalytics","getTrackMedia",{trackId:y}):Promise.resolve(null)]);return{event:(0,s.parseMediaFiles)(l),track:(0,s.parseMediaFiles)(o)}},v[4]=k,v[5]=f,v[6]=y,v[7]=T):T=v[7];v[8]!==_||v[9]!==F||v[10]!==T?(h={queryKey:_,enabled:F,staleTime:6e4,queryFn:T},v[8]=_,v[9]=F,v[10]=T,v[11]=h):h=v[11];const S=(0,n.useQuery)(h);let I;e:{if(!S.data){I=o;break e}let t;v[12]!==S.data.event||v[13]!==S.data.track?(t=(0,s.resolveTrackDetailImages)(S.data.event,S.data.track),v[12]=S.data.event,v[13]=S.data.track,v[14]=t):t=v[14],I=t}const L=I;let P;e:{if(!S.data){let t;v[15]===Symbol.for("react.memo_cache_sentinel")?(t=[],v[15]=t):t=v[15],P=t;break e}let t;if(v[16]!==S.data.event||v[17]!==S.data.track){const n=new Set;t=[];for(const l of[...S.data.event,...S.data.track])n.has(l.key)||(n.add(l.key),t.push({key:l.key,kind:l.kind}));v[16]=S.data.event,v[17]=S.data.track,v[18]=t}else t=v[18];P=t}const Q=P;let U;v[19]!==S.data?(U=S.data?(0,s.buildTrackGallery)(S.data.event,S.data.track):[],v[19]=S.data,v[20]=U):U=v[20];const j=U;let q;v[21]!==j||v[22]!==L||v[23]!==Q||v[24]!==S.isLoading?(q=Object.assign({},L,{loading:S.isLoading,mediaKeys:Q,gallery:j}),v[21]=j,v[22]=L,v[23]=Q,v[24]=S.isLoading,v[25]=q):q=v[25];return q};var t=r(d[0]);r(d[1]);var n=r(d[2]),l=r(d[3]),c=r(d[4]),s=r(d[5]);const o={cropUri:null,fullFrameUri:null,fullFrameBoxedUri:null,hasServerBoxed:!1}},3380,[15,17,3081,2594,3162,3237]);
15802
+ __d(function(g,r,i,a,m,e,_d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useTrackBestDetection=function(u,d,f,y,v,b){const p=(0,n.c)(17),{controller:_,state:j}=(0,l.useConnection)(),k=d??"none";let A;p[0]!==u||p[1]!==k?(A=["v2","analytics","track-best-detection",u,k],p[0]=u,p[1]=k,p[2]=A):A=p[2];const D=b&&"connected"===j&&null!==d;let L,q;p[3]!==f||p[4]!==_||p[5]!==u||p[6]!==y||p[7]!==v||p[8]!==d?(L=async()=>{const n=_.getSystem();if(!n||null===d)return null;const t=await(0,c.capQuery)(n.trpcClient,"pipelineAnalytics","getObjectEvents",{deviceId:u,since:y-s,until:v+s,limit:500,projection:"full"});if(!Array.isArray(t))return null;let l=null;for(const n of t){const t=(0,o.toDetailDetection)(n);if(null!==t&&t.trackId===d&&void 0!==t.bbox){if(null!==f&&t.id===f)return t;(null===l||(t.confidence??0)>(l.confidence??0))&&(l=t)}}return l},p[3]=f,p[4]=_,p[5]=u,p[6]=y,p[7]=v,p[8]=d,p[9]=L):L=p[9];p[10]!==A||p[11]!==D||p[12]!==L?(q={queryKey:A,enabled:D,staleTime:6e4,queryFn:L},p[10]=A,p[11]=D,p[12]=L,p[13]=q):q=p[13];const C=(0,t.useQuery)(q),I=C.data??null;let O;p[14]!==C.isLoading||p[15]!==I?(O={detection:I,loading:C.isLoading},p[14]=C.isLoading,p[15]=I,p[16]=O):O=p[16];return O};var n=r(_d[0]);r(_d[1]);var t=r(_d[2]),l=r(_d[3]),c=r(_d[4]),o=r(_d[5]);const s=2e3},3381,[15,17,3081,2594,3162,3382]);
15803
+ __d(function(g,r,i,_a,m,e,_d){"use strict";function t(t){return t.frameId??String(t.timestamp)}function n(n){const o=new Map;for(const s of n){const n=t(s),a=o.get(n);a?a.push(s):o.set(n,[s])}return[...o.keys()].sort((t,n)=>o.get(n)[0].timestamp-o.get(t)[0].timestamp).map(t=>{const n=o.get(t)??[],s=n.find(t=>Boolean(t.mediaUrl)),a=s??n[0];return{key:t,frameId:n[0]?.frameId,timestamp:n[0]?.timestamp??0,imageDetectionId:a?.id,imageMediaUrl:s?.mediaUrl,detections:n}})}function o(t){return'object'==typeof t&&null!==t&&!Array.isArray(t)}function s(t){if(!o(t))return;const{x:n,y:s,w:a,h:f}=t;return'number'==typeof n&&'number'==typeof s&&'number'==typeof a&&'number'==typeof f?{x:n,y:s,w:a,h:f}:void 0}Object.defineProperty(e,'__esModule',{value:!0}),e.frameKey=t,e.groupEventsByFrame=n,e.groupByTrack=function(n){const o=new Map;for(const t of n){if(void 0===t.trackId)continue;const n=o.get(t.trackId);n?n.push(t):o.set(t.trackId,[t])}const s=[];for(const[n,a]of o){let o=a[0];for(const t of a){const n=t.confidence??0,s=o.confidence??0;(n>s||n===s&&Boolean(t.mediaUrl)&&!o.mediaUrl)&&(o=t)}const f=a.find(t=>void 0!==t.label)?.label,c=new Set(a.map(t));let d=Number.POSITIVE_INFINITY,u=Number.NEGATIVE_INFINITY;for(const t of a)t.timestamp<d&&(d=t.timestamp),t.timestamp>u&&(u=t.timestamp);s.push(Object.assign({trackId:n,className:o.className},void 0!==f?{label:f}:{},{representative:o,frameCount:c.size,startMs:d,endMs:u}))}return s.sort((t,n)=>n.endMs-t.endMs)},e.scenesForTrack=function(o,s){const a=new Set(o.filter(t=>t.trackId===s).map(t));return n(o).filter(t=>a.has(t.key))},e.toDetailDetection=function(t){if(!o(t))return null;if('string'!=typeof t.id||0===t.id.length)return null;if('number'!=typeof t.timestamp)return null;if('string'!=typeof t.className||0===t.className.length)return null;const n=Array.isArray(t.zones)?t.zones.filter(t=>'string'==typeof t):[];return{id:t.id,timestamp:t.timestamp,className:t.className,label:'string'==typeof t.label?t.label:void 0,confidence:'number'==typeof t.confidence?t.confidence:void 0,zones:n,state:'string'==typeof t.state?t.state:void 0,trackId:'string'==typeof t.trackId?t.trackId:void 0,frameId:'string'==typeof t.frameId?t.frameId:void 0,mediaUrl:'string'==typeof t.mediaUrl?t.mediaUrl:void 0,bbox:s(t.bbox),frameWidth:'number'==typeof t.frameWidth?t.frameWidth:void 0,frameHeight:'number'==typeof t.frameHeight?t.frameHeight:void 0}},e.containRect=function(t,n,o,s){if(t<=0||n<=0||o<=0||s<=0)return{left:0,top:0,width:Math.max(0,o),height:Math.max(0,s)};const a=Math.min(o/t,s/n),f=t*a,c=n*a;return{left:(o-f)/2,top:(s-c)/2,width:f,height:c}},e.bboxToScreen=function(t,n,o,s){if(n<=0||o<=0)return{left:s.left,top:s.top,width:0,height:0};const a=s.width/n,f=s.height/o;return{left:s.left+t.x*a,top:s.top+t.y*f,width:t.w*a,height:t.h*f}},e.summarizeCluster=function(t){const n=[];let o=0,s=Number.POSITIVE_INFINITY,a=Number.NEGATIVE_INFINITY;for(const f of t)for(const t of f.detections)o+=1,n.includes(t.className)||n.push(t.className),t.timestamp<s&&(s=t.timestamp),t.timestamp>a&&(a=t.timestamp);return 0===o?{classes:[],detectionCount:0,startMs:0,endMs:0}:{classes:n,detectionCount:o,startMs:s,endMs:a}}},3382,[]);
15804
+ __d(function(g,r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"WINDOW_MS",{enumerable:!0,get:function(){return f}}),Object.defineProperty(e,"FLOOR_MS",{enumerable:!0,get:function(){return h}}),e.trackWindow=P,e.nextWindowStart=y,e.useTracksFeed=function(f,S,I){const L=(0,t.c)(50),{controller:v,state:C}=(0,s.useConnection)(),{data:F}=(0,c.useCameras)(),O=I?.perCameraLimit??p,_=I?.maxAgeMs??h;let D,T;L[0]!==F?(D=F??[],L[0]=F,L[1]=D):D=L[1];L[2]!==D?(T=D.map(x),L[2]=D,L[3]=T):T=L[3];const j=T;let A;L[4]!==j?(A=j.map(k).join(","),L[4]=j,L[5]=A):A=L[5];const W=A,[q]=(0,a.useState)(b),Q=S??q;let $;L[6]!==Q||L[7]!==W||L[8]!==_||L[9]!==O?($=["v2","tracks-feed",W,Q,O,_],L[6]=Q,L[7]=W,L[8]=_,L[9]=O,L[10]=$):$=L[10];const K="connected"===C&&j.length>0;let R,z,B;L[11]!==Q||L[12]!==j||L[13]!==v||L[14]!==_||L[15]!==O?(R=async t=>{const{pageParam:a}=t,{untilMs:n,sinceMs:s}=P(a,Q,_),c=v.getSystem();if(!c)return{tracks:[],untilMs:n,sinceMs:s};const f=c.trpcClient,h=Date.now(),p=(await Promise.all(j.map(async t=>{const a=await(0,l.capQuery)(f,"pipelineAnalytics","listTracks",{deviceId:t.id,since:s,until:n,limit:O}).catch(a=>(o.log.warn("tracks-feed","listTracks failed",{cameraId:t.id,error:String(a)}),null));if(!Array.isArray(a))return[];const c=[];for(const n of a){const a=(0,u.toTrackSummary)(n,t.name);null!==a&&c.push(a)}return c}))).flat().sort(w);return o.log.debug("tracks-feed","page loaded",{ms:Date.now()-h,cameras:j.length,rows:p.length,limit:O}),{tracks:p,untilMs:n,sinceMs:s}},L[11]=Q,L[12]=j,L[13]=v,L[14]=_,L[15]=O,L[16]=R):R=L[16];L[17]!==Q||L[18]!==_?(z=t=>y(t.sinceMs,Q,_),L[17]=Q,L[18]=_,L[19]=z):z=L[19];L[20]!==Q||L[21]!==$||L[22]!==K||L[23]!==R||L[24]!==z?(B={queryKey:$,enabled:K,staleTime:3e4,placeholderData:N,initialPageParam:Q,queryFn:R,getNextPageParam:z},L[20]=Q,L[21]=$,L[22]=K,L[23]=R,L[24]=z,L[25]=B):B=L[25];const E=(0,n.useInfiniteQuery)(B);let G,H;L[26]!==E.data?.pages?(G=E.data?.pages??[],L[26]=E.data?.pages,L[27]=G):G=L[27];L[28]!==G?(H=G.flatMap(M),L[28]=G,L[29]=H):H=L[29];const J=H;let U;if(L[30]!==J){const t=new Set;for(const a of J)t.add(a.className);U=[...t].sort(),L[30]=J,L[31]=U}else U=L[31];const V=U;let X;if(L[32]!==J||L[33]!==f.cameraIds||L[34]!==f.classes||L[35]!==f.label){const t=f.cameraIds.length>0?new Set(f.cameraIds):null,a=f.classes.length>0?new Set(f.classes):null,n=f.label.trim().toLowerCase();X=J.filter(s=>{if(t&&!t.has(s.deviceId))return!1;if(a&&!a.has(s.className))return!1;if(n.length>0){if(!`${s.label??""} ${s.className}`.toLowerCase().includes(n))return!1}return!0}),L[32]=J,L[33]=f.cameraIds,L[34]=f.classes,L[35]=f.label,L[36]=X}else X=L[36];const Y=X;let Z;L[37]!==E?(Z=()=>{E.fetchNextPage()},L[37]=E,L[38]=Z):Z=L[38];const ee=E.hasNextPage??!1;let te,ae;L[39]!==E?(te=()=>{E.refetch()},L[39]=E,L[40]=te):te=L[40];L[41]!==J.length||L[42]!==V||L[43]!==E.isFetchingNextPage||L[44]!==E.isLoading||L[45]!==Z||L[46]!==ee||L[47]!==te||L[48]!==Y?(ae={tracks:Y,loading:E.isLoading,fetchNextPage:Z,hasNextPage:ee,isFetchingNextPage:E.isFetchingNextPage,refetch:te,totalLoaded:J.length,availableClasses:V},L[41]=J.length,L[42]=V,L[43]=E.isFetchingNextPage,L[44]=E.isLoading,L[45]=Z,L[46]=ee,L[47]=te,L[48]=Y,L[49]=ae):ae=L[49];return ae};var t=r(d[0]),a=r(d[1]),n=r(d[2]),s=r(d[3]),c=r(d[4]),l=r(d[5]),o=r(d[6]),u=r(d[7]);const f=432e5,h=7776e6,p=60;function P(t,a,n){const s=a-n;return{untilMs:t,sinceMs:Math.max(s,t-f)}}function y(t,a,n){return t>a-n?t:void 0}function M(t){return t.tracks}function w(t,a){return a.lastSeen-t.lastSeen}function N(t){return t}function b(){return Date.now()}function k(t){return t.id}function x(t){return{id:t.id,name:t.name}}},3383,[15,17,3081,2594,3080,3162,2705,3237]);
15805
15805
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"REEL_EVENT_THROTTLE_MS",{enumerable:!0,get:function(){return o}}),_e.useReelAutoRefresh=function(e,n){const{controller:f,state:E}=(0,u.useConnection)(),l=(0,t.useRef)(n);l.current=n;const v=(0,t.useRef)(0),b=(0,t.useRef)(void 0),R=(0,t.useRef)(c.default.currentState),T=(0,t.useCallback)(()=>{b.current&&(clearTimeout(b.current),b.current=void 0)},[]),_=(0,t.useCallback)(()=>{v.current=Date.now(),T(),l.current()},[T]);(0,t.useEffect)(()=>{const e=c.default.addEventListener('change',e=>{const t=R.current;R.current=e,'active'===e&&'active'!==t&&_()});return()=>e.remove()},[_]),(0,t.useEffect)(()=>{if('connected'!==E)return;const t=f.getSystem();if(!t)return;const n=t=>void 0===e||t===e,c=e=>{if(!e||'active'!==R.current)return;const t=Date.now()-v.current;t>=o?_():b.current||(b.current=setTimeout(()=>{b.current=void 0,'active'===R.current&&(v.current=Date.now(),l.current())},o-t))},u=t.subscribeEvent(s.FRAME_TRACKED_CATEGORY,e=>{const t=(0,s.parseFrameTrackedEvent)(e);t&&0!==t.boxes.length&&c(n(t.deviceId))}),C=t.subscribeEvent(s.DETECTION_CATEGORY,e=>{const t=(0,s.parseDetectionEvent)(e);t&&0!==t.boxes.length&&c(n(Number(t.sourceId)))});return()=>{u(),C(),T()}},[f,E,e,_,T])};var e,t=r(d[0]),n=r(d[1]),c=(e=n)&&e.__esModule?e:{default:e},u=r(d[2]),s=r(d[3]);const o=2e4},3384,[17,226,2594,3385]);
15806
15806
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"DETECTION_CATEGORY",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"FRAME_TRACKED_CATEGORY",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"DETECTION_FADE_MS",{enumerable:!0,get:function(){return l}}),e.parseDetectionEvent=p,e.parseFrameTrackedEvent=x,e.shouldSuppressRaw=v,e.useDetections=function(f,b){const h=(0,t.c)(6),{controller:y,state:E}=(0,o.useConnection)(),[A,T]=(0,n.useState)(c),O=(0,n.useRef)(void 0);let w,C;h[0]!==E||h[1]!==y||h[2]!==f||h[3]!==b?(w=()=>{if(!b||"connected"!==E)return void T(c);const t=y.getSystem();if(!t)return;const n=()=>{O.current&&clearTimeout(O.current),O.current=void 0},o={current:0},h=t.subscribeEvent(u,t=>{const u=p(t);u&&Number(u.sourceId)===f&&(v(o.current,Date.now())||(T({boxes:u.boxes,frameWidth:u.width,frameHeight:u.height}),n(),O.current=setTimeout(()=>T(c),l)))}),A=t.subscribeEvent(s,t=>{const u=x(t);u&&u.deviceId===f&&0!==u.boxes.length&&(o.current=Date.now(),T({boxes:u.boxes,frameWidth:u.width,frameHeight:u.height}),n(),O.current=setTimeout(()=>T(c),l))});return()=>{h(),A(),n(),T(c)}},C=[y,E,f,b],h[0]=E,h[1]=y,h[2]=f,h[3]=b,h[4]=w,h[5]=C):(w=h[4],C=h[5]);return(0,n.useEffect)(w,C),A};var t=r(d[0]),n=r(d[1]),o=r(d[2]);const u='detection.result',s='pipeline-analytics.frame-tracked',l=2500,c={boxes:[],frameWidth:0,frameHeight:0};function f(t){return'object'==typeof t&&null!==t}function b(t){return'number'==typeof t&&Number.isFinite(t)?t:null}function h(t,n,o){if(!f(t))return null;const u=b(t.x),s=b(t.y),l=b(t.width),c=b(t.height);if(null!==u&&null!==s&&null!==l&&null!==c&&n>0&&o>0)return{x1:u/n,y1:s/o,x2:(u+l)/n,y2:(s+c)/o};const h=b(t.x1),y=b(t.y1),p=b(t.x2),x=b(t.y2);return null!==h&&null!==y&&null!==p&&null!==x?{x1:h,y1:y,x2:p,y2:x}:null}function y(t){return'string'==typeof t.macroClass&&t.macroClass?t.macroClass:'string'==typeof t.class&&t.class?t.class:'string'==typeof t.label&&t.label?t.label:'object'}function p(t){if(!f(t))return null;const n=t.source;if(!f(n))return null;const o=n.id;if('string'!=typeof o&&'number'!=typeof o)return null;const u=t.data;if(!f(u))return null;const s=u.frame;if(!f(s))return null;const l=b(s.width)??0,c=b(s.height)??0,p=s.detections;if(!Array.isArray(p))return null;const x=[];for(const t of p){if(!f(t))continue;const n=b(t.score);if(null===n)continue;const o=h(t.bbox??t.boundingBox??t.region,l,c);o&&x.push(Object.assign({label:y(t),score:n},o))}return{sourceId:o,boxes:x,width:l,height:c}}function x(t){if(!f(t))return null;const n=t.data;if(!f(n))return null;const o=b(n.deviceId),u=b(n.frameWidth)??0,s=b(n.frameHeight)??0,l=n.detections;if(null===o||!Array.isArray(l))return null;const c=[];for(const t of l){if(!f(t))continue;const n=b(t.score);if(null===n)continue;const o=h(t.bbox,u,s);if(!o)continue;const l=(Array.isArray(t.labels)?t.labels:[]).find(t=>f(t)&&'string'==typeof t.label),p='string'==typeof l?.label&&l.label.length>0?l.label:void 0;c.push(Object.assign({label:y(t),score:n},o,void 0!==p?{name:p}:{},'detail'===t.kind?{detail:!0}:{}))}return{deviceId:o,boxes:c,width:u,height:s}}function v(t,n){return n-t<l}},3385,[15,17,2594]);
15807
15807
  __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 o}});var t=r(d[0]),n=r(d[1]),c=r(d[2]);function o(){const o=(0,t.c)(1);let u;return o[0]===Symbol.for("react.memo_cache_sentinel")?(u=(0,c.jsx)(n.EventsScreen,{}),o[0]=u):u=o[0],u}},3386,[15,3387,10]);
15808
- __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}),_e.EventsScreen=function(){const e=(0,t.c)(151),{t:c}=(0,d.useTranslation)(),{colors:f}=(0,u.useTheme)(),q=(0,i.useRouter)(),J=(0,b.useEventsLayout)(),K=(0,h.useEventsFilterStore)($),Q=(0,h.useEventsFilterStore)(B),X=(0,h.useEventsFilterStore)(z),Y=(0,h.useEventsFilterStore)(V),{settings:Z,setEvents:ee}=(0,S.useSettings)(),te=Z.events.gridDensity;let se,ne;e[0]!==K?(se=()=>{K()},ne=[K],e[0]=K,e[1]=se,e[2]=ne):(se=e[1],ne=e[2]);(0,s.useEffect)(se,ne);const[ae]=(0,s.useState)(H),[le,oe]=(0,s.useState)(0),re=ae-le*A;let ce;e[3]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>oe(O),e[3]=ce):ce=e[3];const de=ce;let ie;e[4]===Symbol.for("react.memo_cache_sentinel")?(ie=()=>oe(W),e[4]=ie):ie=e[4];const ue=ie,[me,fe]=(0,s.useState)(null),[he,ge]=(0,s.useState)(!1),[Se,xe]=(0,s.useState)(!1),[ye,be]=(0,s.useState)(""),ve=(0,v.useDebouncedValue)(ye,G),{data:Ce}=(0,y.useCameras)();let ke,Ie;e[5]!==Ce?(ke=Ce??[],e[5]=Ce,e[6]=ke):ke=e[6];e[7]!==ke?(Ie=ke.map(L),e[7]=ke,e[8]=Ie):Ie=e[8];const je=Ie;let pe;if(e[9]!==je){pe=new Map;for(const e of je)pe.set(e.id,e.name);e[9]=je,e[10]=pe}else pe=e[10];const Me=pe;let De;e[11]!==Me?(De=e=>Me.get(e)??`#${e}`,e[11]=Me,e[12]=De):De=e[12];const we=De,Ee=1===Q.cameraIds.length?Q.cameraIds[0]:void 0;let Pe;e[13]!==Ee?(Pe=void 0!==Ee?{deviceId:Ee}:{},e[13]=Ee,e[14]=Pe):Pe=e[14];const Re=(0,k.useSemanticSearch)(ve,Pe);let Ne;e[15]!==Q.cameraIds||e[16]!==Q.classes||e[17]!==Q.label?(Ne={cameraIds:Q.cameraIds,classes:Q.classes,label:Q.label},e[15]=Q.cameraIds,e[16]=Q.classes,e[17]=Q.label,e[18]=Ne):Ne=e[18];const Te=Ne,{tracks:Fe,loading:Ae,fetchNextPage:Ge,hasNextPage:Le,isFetchingNextPage:We,totalLoaded:Oe,availableClasses:He}=(0,C.useTracksFeed)(Te,re);let Ve;e[19]!==Fe?(Ve=(0,I.hasAnyImportance)(Fe),e[19]=Fe,e[20]=Ve):Ve=e[20];const ze=Ve,Be=Z.clusters.minImportance;let $e;e[21]!==Be||e[22]!==Fe?($e=Be>0?Fe.filter(e=>(0,I.passesImportanceFilter)(e.importance,Be)):Fe,e[21]=Be,e[22]=Fe,e[23]=$e):$e=e[23];const Ue=$e;let qe;e[24]!==Ue||e[25]!==Q.sortMode?(qe=(0,I.sortTracks)(Ue,Q.sortMode),e[24]=Ue,e[25]=Q.sortMode,e[26]=qe):qe=e[26];const Je=qe;let Ke;e[27]!==Ge||e[28]!==Le||e[29]!==We?(Ke=()=>{Le&&!We&&Ge()},e[27]=Ge,e[28]=Le,e[29]=We,e[30]=Ke):Ke=e[30];const Qe=Ke,[Xe,Ye]=(0,s.useState)(0),Ze=Math.min(Xe,J.maxContentWidth);let et;e[31]!==te||e[32]!==Ze?(et=(0,x.densityColumns)(Ze,te),e[31]=te,e[32]=Ze,e[33]=et):et=e[33];const tt=et;let st;e[34]!==q||e[35]!==me?(st=e=>{me&&q.push(`/camera/${me.deviceId}?at=${Math.round(e)}`),fe(null)},e[34]=q,e[35]=me,e[36]=st):st=e[36];const nt=st;let at;e[37]!==re||e[38]!==le||e[39]!==c?(at=0===le?c("v2.events.today","Today"):new Date(re).toLocaleDateString(),e[37]=re,e[38]=le,e[39]=c,e[40]=at):at=e[40];const lt=at,ot=(Q.cameraIds.length>0?1:0)+(Q.classes.length>0?1:0)+(Q.label.trim().length>0?1:0);let rt,ct,dt,it,ut;e[41]!==Q.sortMode||e[42]!==X?(rt=()=>X("importance"===Q.sortMode?"time":"importance"),e[41]=Q.sortMode,e[42]=X,e[43]=rt):rt=e[43];e[44]===Symbol.for("react.memo_cache_sentinel")?(ct=()=>ge(!0),dt=()=>xe(!0),e[44]=ct,e[45]=dt):(ct=e[44],dt=e[45]);e[46]!==ee?(it=e=>ee("gridDensity",e),e[46]=ee,e[47]=it):it=e[47];e[48]!==ot||e[49]!==lt||e[50]!==le||e[51]!==te||e[52]!==Q.cameraIds.length||e[53]!==Q.classes.length||e[54]!==Q.sortMode||e[55]!==ze||e[56]!==rt||e[57]!==it?(ut=(0,F.jsx)(M.EventsFilterBar,{dateLabel:lt,dayOffset:le,onPrevDay:de,onNextDay:ue,selectedCameras:Q.cameraIds.length,selectedClasses:Q.classes.length,showSort:ze,sortMode:Q.sortMode,onToggleSort:rt,activeCount:ot,onOpenSheet:ct,onOpenDisplay:dt,density:te,onSetDensity:it}),e[48]=ot,e[49]=lt,e[50]=le,e[51]=te,e[52]=Q.cameraIds.length,e[53]=Q.classes.length,e[54]=Q.sortMode,e[55]=ze,e[56]=rt,e[57]=it,e[58]=ut):ut=e[58];const mt=ut;let ft,ht;e[59]===Symbol.for("react.memo_cache_sentinel")?(ft=()=>xe(!1),e[59]=ft):ft=e[59];e[60]!==Se?(ht=(0,F.jsx)(D.EventsDisplaySheet,{visible:Se,onClose:ft}),e[60]=Se,e[61]=ht):ht=e[61];const gt=ht;let St;e[62]!==ye?(St=(0,F.jsx)(E.SemanticSearchBar,{value:ye,onChange:be}),e[62]=ye,e[63]=St):St=e[63];const xt=St;let yt;e[64]!==tt||e[65]!==Je||e[66]!==Le||e[67]!==We||e[68]!==Ae||e[69]!==Qe||e[70]!==me?.trackId||e[71]!==Oe?(yt=Ae&&0===Je.length?(0,F.jsx)(n.default,{style:U.skeletonGrid,children:Array.from({length:3*Math.max(1,tt)},(e,t)=>(0,F.jsx)(n.default,{style:[U.skeletonCell,{width:100/Math.max(1,tt)+"%"}],children:(0,F.jsx)(n.default,{style:U.skeletonTile,children:(0,F.jsx)(p.SkeletonBox,{})})},t))}):0===Je.length?(0,F.jsx)(j.EventsEmpty,{filteredOut:Oe>0,canLoadMore:Le,busy:We,onLoadMore:Qe}):(0,F.jsx)(R.TracksGallery,{tracks:Je,columns:tt,onSelect:fe,onEndReached:Qe,isFetchingNextPage:We,selectedTrackId:me?.trackId??null}),e[64]=tt,e[65]=Je,e[66]=Le,e[67]=We,e[68]=Ae,e[69]=Qe,e[70]=me?.trackId,e[71]=Oe,e[72]=yt):yt=e[72];const bt=yt;let vt;e[73]!==we||e[74]!==tt||e[75]!==bt||e[76]!==Re.enabled||e[77]!==Re.loading||e[78]!==Re.results?(vt=Re.enabled?(0,F.jsx)(P.SemanticSearchResults,{results:Re.results,loading:Re.loading,columns:tt,cameraName:we}):bt,e[73]=we,e[74]=tt,e[75]=bt,e[76]=Re.enabled,e[77]=Re.loading,e[78]=Re.results,e[79]=vt):vt=e[79];const Ct=vt;let kt,It,jt,pt;e[80]===Symbol.for("react.memo_cache_sentinel")?(kt=e=>{const t=Math.round(e.nativeEvent.layout.width);Ye(e=>e===t?e:t)},e[80]=kt):kt=e[80];e[81]!==J.maxContentWidth?(It=[U.centered,{maxWidth:J.maxContentWidth}],e[81]=J.maxContentWidth,e[82]=It):It=e[82];e[83]!==Ct||e[84]!==mt||e[85]!==xt||e[86]!==It?(jt=(0,F.jsxs)(n.default,{style:It,children:[mt,xt,Ct]}),e[83]=Ct,e[84]=mt,e[85]=xt,e[86]=It,e[87]=jt):jt=e[87];e[88]!==gt||e[89]!==jt?(pt=(0,F.jsxs)(n.default,{style:U.galleryColumn,onLayout:kt,children:[jt,gt]}),e[88]=gt,e[89]=jt,e[90]=pt):pt=e[90];const Mt=pt;if("split"===J.mode){let t,s,d,i,u,h,S,x,y,b,v,C,k;return e[91]!==f.background?(t={flex:1,backgroundColor:f.background},e[91]=f.background,e[92]=t):t=e[92],e[93]===Symbol.for("react.memo_cache_sentinel")?(s=(0,F.jsx)(m.ScreenHeader,{}),e[93]=s):s=e[93],e[94]!==f.border?(d=[U.rail,{borderColor:f.border}],e[94]=f.border,e[95]=d):d=e[95],e[96]!==He||e[97]!==je||e[98]!==lt||e[99]!==le||e[100]!==ze?(i=(0,F.jsx)(w.EventsFilterPanel,{cameras:je,availableClasses:He,showSort:ze,dateLabel:lt,dayOffset:le,onPrevDay:de,onNextDay:ue}),e[96]=He,e[97]=je,e[98]=lt,e[99]=le,e[100]=ze,e[101]=i):i=e[101],e[102]!==f.surface?(u=[U.railReset,{backgroundColor:f.surface}],e[102]=f.surface,e[103]=u):u=e[103],e[104]!==f.foregroundMuted?(h=[U.railResetText,{color:f.foregroundMuted}],e[104]=f.foregroundMuted,e[105]=h):h=e[105],e[106]!==c?(S=c("common.reset","Reset"),e[106]=c,e[107]=S):S=e[107],e[108]!==h||e[109]!==S?(x=(0,F.jsx)(o.default,{style:h,children:S}),e[108]=h,e[109]=S,e[110]=x):x=e[110],e[111]!==Y||e[112]!==u||e[113]!==x?(y=(0,F.jsx)(l.default,{onPress:Y,style:u,children:x}),e[111]=Y,e[112]=u,e[113]=x,e[114]=y):y=e[114],e[115]!==d||e[116]!==i||e[117]!==y?(b=(0,F.jsxs)(n.default,{style:d,children:[i,y]}),e[115]=d,e[116]=i,e[117]=y,e[118]=b):b=e[118],e[119]!==f.foregroundSubtle||e[120]!==nt||e[121]!==me||e[122]!==c?(v=(0,F.jsx)(n.default,{style:U.detailColumn,children:me?(0,F.jsx)(T.TrackDetailView,{track:me,onSeek:nt,onClose:()=>fe(null),bottomInset:0}):(0,F.jsx)(n.default,{style:U.center,children:(0,F.jsx)(o.default,{style:{color:f.foregroundSubtle,fontSize:13},children:c("v2.events.selectHint","Select an event")})})}),e[119]=f.foregroundSubtle,e[120]=nt,e[121]=me,e[122]=c,e[123]=v):v=e[123],e[124]!==Mt||e[125]!==b||e[126]!==v?(C=(0,F.jsxs)(n.default,{style:U.splitRow,children:[b,Mt,v]}),e[124]=Mt,e[125]=b,e[126]=v,e[127]=C):C=e[127],e[128]!==t||e[129]!==C?(k=(0,F.jsxs)(n.default,{style:t,children:[s,C]}),e[128]=t,e[129]=C,e[130]=k):k=e[130],k}let _t,Dt,wt,Et,Pt,Rt,Nt;e[131]!==f.background?(_t={flex:1,backgroundColor:f.background},e[131]=f.background,e[132]=_t):_t=e[132];e[133]===Symbol.for("react.memo_cache_sentinel")?(Dt=(0,F.jsx)(m.ScreenHeader,{}),e[133]=Dt):Dt=e[133];e[134]===Symbol.for("react.memo_cache_sentinel")?(wt=()=>fe(null),e[134]=wt):wt=e[134];e[135]!==nt||e[136]!==me?(Et=(0,F.jsx)(N.TrackDetailModal,{track:me,onSeek:nt,onClose:wt}),e[135]=nt,e[136]=me,e[137]=Et):Et=e[137];e[138]===Symbol.for("react.memo_cache_sentinel")?(Pt=()=>ge(!1),e[138]=Pt):Pt=e[138];e[139]!==He||e[140]!==je||e[141]!==lt||e[142]!==le||e[143]!==he||e[144]!==ze?(Rt=(0,F.jsx)(_.EventsFilterSheet,{visible:he,onClose:Pt,cameras:je,availableClasses:He,showSort:ze,dateLabel:lt,dayOffset:le,onPrevDay:de,onNextDay:ue}),e[139]=He,e[140]=je,e[141]=lt,e[142]=le,e[143]=he,e[144]=ze,e[145]=Rt):Rt=e[145];e[146]!==Mt||e[147]!==_t||e[148]!==Et||e[149]!==Rt?(Nt=(0,F.jsxs)(n.default,{style:_t,children:[Dt,Mt,Et,Rt]}),e[146]=Mt,e[147]=_t,e[148]=Et,e[149]=Rt,e[150]=Nt):Nt=e[150];return Nt};var t=r(_d[0]),s=r(_d[1]),n=e(r(_d[2])),l=e(r(_d[3])),o=e(r(_d[4])),c=e(r(_d[5])),d=r(_d[6]),i=r(_d[7]),u=r(_d[8]),m=r(_d[9]),f=r(_d[10]),h=r(_d[11]),S=r(_d[12]),x=r(_d[13]),y=r(_d[14]),b=r(_d[15]),v=r(_d[16]),C=r(_d[17]),k=r(_d[18]),I=r(_d[19]),j=r(_d[20]),p=r(_d[21]),M=r(_d[22]),_=r(_d[23]),D=r(_d[24]),w=r(_d[25]),E=r(_d[26]),P=r(_d[27]),R=r(_d[28]),N=r(_d[29]),T=r(_d[30]),F=r(_d[31]);const A=864e5,G=350;function L(e){return{id:e.id,name:e.name}}function W(e){return Math.max(0,e-1)}function O(e){return e+1}function H(){return Date.now()}function V(e){return e.reset}function z(e){return e.setSortMode}function B(e){return e.filter}function $(e){return e.hydrate}const U=c.default.create({center:{flex:1,alignItems:'center',justifyContent:'center'},splitRow:{flex:1,flexDirection:'row'},rail:{width:300,borderRightWidth:c.default.hairlineWidth,paddingHorizontal:f.SPACING.md},railReset:{alignItems:'center',paddingVertical:f.SPACING.md,borderRadius:f.RADIUS.md,marginVertical:f.SPACING.sm},railResetText:{fontSize:14,fontWeight:'600'},galleryColumn:{flex:1,alignItems:'center'},skeletonGrid:{flexDirection:'row',flexWrap:'wrap',padding:f.SPACING.md/2},skeletonCell:{padding:f.SPACING.md/2},skeletonTile:{aspectRatio:1,borderRadius:f.RADIUS.md,overflow:'hidden'},centered:{flex:1,width:'100%'},detailColumn:{width:420,padding:f.SPACING.md}})},3387,[15,17,20,252,112,33,786,743,2587,3050,2589,3388,3177,3140,3080,3389,3391,3383,3392,3381,3393,3151,3394,3395,3397,3396,3398,3399,3400,3237,3238,10]);
15808
+ __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}),_e.EventsScreen=function(){const e=(0,t.c)(151),{t:c}=(0,d.useTranslation)(),{colors:f}=(0,u.useTheme)(),q=(0,i.useRouter)(),J=(0,b.useEventsLayout)(),K=(0,h.useEventsFilterStore)($),Q=(0,h.useEventsFilterStore)(B),X=(0,h.useEventsFilterStore)(z),Y=(0,h.useEventsFilterStore)(V),{settings:Z,setEvents:ee}=(0,S.useSettings)(),te=Z.events.gridDensity;let se,ne;e[0]!==K?(se=()=>{K()},ne=[K],e[0]=K,e[1]=se,e[2]=ne):(se=e[1],ne=e[2]);(0,s.useEffect)(se,ne);const[ae]=(0,s.useState)(H),[le,oe]=(0,s.useState)(0),re=ae-le*A;let ce;e[3]===Symbol.for("react.memo_cache_sentinel")?(ce=()=>oe(O),e[3]=ce):ce=e[3];const de=ce;let ie;e[4]===Symbol.for("react.memo_cache_sentinel")?(ie=()=>oe(W),e[4]=ie):ie=e[4];const ue=ie,[me,fe]=(0,s.useState)(null),[he,ge]=(0,s.useState)(!1),[Se,xe]=(0,s.useState)(!1),[ye,be]=(0,s.useState)(""),ve=(0,v.useDebouncedValue)(ye,G),{data:Ce}=(0,y.useCameras)();let ke,Ie;e[5]!==Ce?(ke=Ce??[],e[5]=Ce,e[6]=ke):ke=e[6];e[7]!==ke?(Ie=ke.map(L),e[7]=ke,e[8]=Ie):Ie=e[8];const je=Ie;let pe;if(e[9]!==je){pe=new Map;for(const e of je)pe.set(e.id,e.name);e[9]=je,e[10]=pe}else pe=e[10];const Me=pe;let De;e[11]!==Me?(De=e=>Me.get(e)??`#${e}`,e[11]=Me,e[12]=De):De=e[12];const we=De,Ee=1===Q.cameraIds.length?Q.cameraIds[0]:void 0;let Pe;e[13]!==Ee?(Pe=void 0!==Ee?{deviceId:Ee}:{},e[13]=Ee,e[14]=Pe):Pe=e[14];const Re=(0,k.useSemanticSearch)(ve,Pe);let Ne;e[15]!==Q.cameraIds||e[16]!==Q.classes||e[17]!==Q.label?(Ne={cameraIds:Q.cameraIds,classes:Q.classes,label:Q.label},e[15]=Q.cameraIds,e[16]=Q.classes,e[17]=Q.label,e[18]=Ne):Ne=e[18];const Te=Ne,{tracks:Fe,loading:Ae,fetchNextPage:Ge,hasNextPage:Le,isFetchingNextPage:We,totalLoaded:Oe,availableClasses:He}=(0,C.useTracksFeed)(Te,re);let Ve;e[19]!==Fe?(Ve=(0,I.hasAnyImportance)(Fe),e[19]=Fe,e[20]=Ve):Ve=e[20];const ze=Ve,Be=Z.clusters.minImportance;let $e;e[21]!==Be||e[22]!==Fe?($e=Be>0?Fe.filter(e=>(0,I.passesImportanceFilter)(e.importance,Be)):Fe,e[21]=Be,e[22]=Fe,e[23]=$e):$e=e[23];const Ue=$e;let qe;e[24]!==Ue||e[25]!==Q.sortMode?(qe=(0,I.sortTracks)(Ue,Q.sortMode),e[24]=Ue,e[25]=Q.sortMode,e[26]=qe):qe=e[26];const Je=qe;let Ke;e[27]!==Ge||e[28]!==Le||e[29]!==We?(Ke=()=>{Le&&!We&&Ge()},e[27]=Ge,e[28]=Le,e[29]=We,e[30]=Ke):Ke=e[30];const Qe=Ke,[Xe,Ye]=(0,s.useState)(0),Ze=Math.min(Xe,J.maxContentWidth);let et;e[31]!==te||e[32]!==Ze?(et=(0,x.densityColumns)(Ze,te),e[31]=te,e[32]=Ze,e[33]=et):et=e[33];const tt=et;let st;e[34]!==q||e[35]!==me?(st=e=>{me&&q.push(`/camera/${me.deviceId}?at=${Math.round(e)}`),fe(null)},e[34]=q,e[35]=me,e[36]=st):st=e[36];const nt=st;let at;e[37]!==re||e[38]!==le||e[39]!==c?(at=0===le?c("v2.events.today","Today"):new Date(re).toLocaleDateString(),e[37]=re,e[38]=le,e[39]=c,e[40]=at):at=e[40];const lt=at,ot=(Q.cameraIds.length>0?1:0)+(Q.classes.length>0?1:0)+(Q.label.trim().length>0?1:0);let rt,ct,dt,it,ut;e[41]!==Q.sortMode||e[42]!==X?(rt=()=>X("importance"===Q.sortMode?"time":"importance"),e[41]=Q.sortMode,e[42]=X,e[43]=rt):rt=e[43];e[44]===Symbol.for("react.memo_cache_sentinel")?(ct=()=>ge(!0),dt=()=>xe(!0),e[44]=ct,e[45]=dt):(ct=e[44],dt=e[45]);e[46]!==ee?(it=e=>ee("gridDensity",e),e[46]=ee,e[47]=it):it=e[47];e[48]!==ot||e[49]!==lt||e[50]!==le||e[51]!==te||e[52]!==Q.cameraIds.length||e[53]!==Q.classes.length||e[54]!==Q.sortMode||e[55]!==ze||e[56]!==rt||e[57]!==it?(ut=(0,F.jsx)(M.EventsFilterBar,{dateLabel:lt,dayOffset:le,onPrevDay:de,onNextDay:ue,selectedCameras:Q.cameraIds.length,selectedClasses:Q.classes.length,showSort:ze,sortMode:Q.sortMode,onToggleSort:rt,activeCount:ot,onOpenSheet:ct,onOpenDisplay:dt,density:te,onSetDensity:it}),e[48]=ot,e[49]=lt,e[50]=le,e[51]=te,e[52]=Q.cameraIds.length,e[53]=Q.classes.length,e[54]=Q.sortMode,e[55]=ze,e[56]=rt,e[57]=it,e[58]=ut):ut=e[58];const mt=ut;let ft,ht;e[59]===Symbol.for("react.memo_cache_sentinel")?(ft=()=>xe(!1),e[59]=ft):ft=e[59];e[60]!==Se?(ht=(0,F.jsx)(D.EventsDisplaySheet,{visible:Se,onClose:ft}),e[60]=Se,e[61]=ht):ht=e[61];const gt=ht;let St;e[62]!==ye?(St=(0,F.jsx)(E.SemanticSearchBar,{value:ye,onChange:be}),e[62]=ye,e[63]=St):St=e[63];const xt=St;let yt;e[64]!==tt||e[65]!==Je||e[66]!==Le||e[67]!==We||e[68]!==Ae||e[69]!==Qe||e[70]!==me?.trackId||e[71]!==Oe?(yt=Ae&&0===Je.length?(0,F.jsx)(n.default,{style:U.skeletonGrid,children:Array.from({length:3*Math.max(1,tt)},(e,t)=>(0,F.jsx)(n.default,{style:[U.skeletonCell,{width:100/Math.max(1,tt)+"%"}],children:(0,F.jsx)(n.default,{style:U.skeletonTile,children:(0,F.jsx)(p.SkeletonBox,{})})},t))}):0===Je.length?(0,F.jsx)(j.EventsEmpty,{filteredOut:Oe>0,canLoadMore:Le,busy:We,onLoadMore:Qe}):(0,F.jsx)(R.TracksGallery,{tracks:Je,columns:tt,onSelect:fe,onEndReached:Qe,isFetchingNextPage:We,selectedTrackId:me?.trackId??null}),e[64]=tt,e[65]=Je,e[66]=Le,e[67]=We,e[68]=Ae,e[69]=Qe,e[70]=me?.trackId,e[71]=Oe,e[72]=yt):yt=e[72];const bt=yt;let vt;e[73]!==we||e[74]!==tt||e[75]!==bt||e[76]!==Re.enabled||e[77]!==Re.loading||e[78]!==Re.results?(vt=Re.enabled?(0,F.jsx)(P.SemanticSearchResults,{results:Re.results,loading:Re.loading,columns:tt,cameraName:we}):bt,e[73]=we,e[74]=tt,e[75]=bt,e[76]=Re.enabled,e[77]=Re.loading,e[78]=Re.results,e[79]=vt):vt=e[79];const Ct=vt;let kt,It,jt,pt;e[80]===Symbol.for("react.memo_cache_sentinel")?(kt=e=>{const t=Math.round(e.nativeEvent.layout.width);Ye(e=>e===t?e:t)},e[80]=kt):kt=e[80];e[81]!==J.maxContentWidth?(It=[U.centered,{maxWidth:J.maxContentWidth}],e[81]=J.maxContentWidth,e[82]=It):It=e[82];e[83]!==Ct||e[84]!==mt||e[85]!==xt||e[86]!==It?(jt=(0,F.jsxs)(n.default,{style:It,children:[mt,xt,Ct]}),e[83]=Ct,e[84]=mt,e[85]=xt,e[86]=It,e[87]=jt):jt=e[87];e[88]!==gt||e[89]!==jt?(pt=(0,F.jsxs)(n.default,{style:U.galleryColumn,onLayout:kt,children:[jt,gt]}),e[88]=gt,e[89]=jt,e[90]=pt):pt=e[90];const Mt=pt;if("split"===J.mode){let t,s,d,i,u,h,S,x,y,b,v,C,k;return e[91]!==f.background?(t={flex:1,backgroundColor:f.background},e[91]=f.background,e[92]=t):t=e[92],e[93]===Symbol.for("react.memo_cache_sentinel")?(s=(0,F.jsx)(m.ScreenHeader,{}),e[93]=s):s=e[93],e[94]!==f.border?(d=[U.rail,{borderColor:f.border}],e[94]=f.border,e[95]=d):d=e[95],e[96]!==He||e[97]!==je||e[98]!==lt||e[99]!==le||e[100]!==ze?(i=(0,F.jsx)(w.EventsFilterPanel,{cameras:je,availableClasses:He,showSort:ze,dateLabel:lt,dayOffset:le,onPrevDay:de,onNextDay:ue}),e[96]=He,e[97]=je,e[98]=lt,e[99]=le,e[100]=ze,e[101]=i):i=e[101],e[102]!==f.surface?(u=[U.railReset,{backgroundColor:f.surface}],e[102]=f.surface,e[103]=u):u=e[103],e[104]!==f.foregroundMuted?(h=[U.railResetText,{color:f.foregroundMuted}],e[104]=f.foregroundMuted,e[105]=h):h=e[105],e[106]!==c?(S=c("common.reset","Reset"),e[106]=c,e[107]=S):S=e[107],e[108]!==h||e[109]!==S?(x=(0,F.jsx)(o.default,{style:h,children:S}),e[108]=h,e[109]=S,e[110]=x):x=e[110],e[111]!==Y||e[112]!==u||e[113]!==x?(y=(0,F.jsx)(l.default,{onPress:Y,style:u,children:x}),e[111]=Y,e[112]=u,e[113]=x,e[114]=y):y=e[114],e[115]!==d||e[116]!==i||e[117]!==y?(b=(0,F.jsxs)(n.default,{style:d,children:[i,y]}),e[115]=d,e[116]=i,e[117]=y,e[118]=b):b=e[118],e[119]!==f.foregroundSubtle||e[120]!==nt||e[121]!==me||e[122]!==c?(v=(0,F.jsx)(n.default,{style:U.detailColumn,children:me?(0,F.jsx)(T.TrackDetailView,{track:me,onSeek:nt,onClose:()=>fe(null),bottomInset:0}):(0,F.jsx)(n.default,{style:U.center,children:(0,F.jsx)(o.default,{style:{color:f.foregroundSubtle,fontSize:13},children:c("v2.events.selectHint","Select an event")})})}),e[119]=f.foregroundSubtle,e[120]=nt,e[121]=me,e[122]=c,e[123]=v):v=e[123],e[124]!==Mt||e[125]!==b||e[126]!==v?(C=(0,F.jsxs)(n.default,{style:U.splitRow,children:[b,Mt,v]}),e[124]=Mt,e[125]=b,e[126]=v,e[127]=C):C=e[127],e[128]!==t||e[129]!==C?(k=(0,F.jsxs)(n.default,{style:t,children:[s,C]}),e[128]=t,e[129]=C,e[130]=k):k=e[130],k}let _t,Dt,wt,Et,Pt,Rt,Nt;e[131]!==f.background?(_t={flex:1,backgroundColor:f.background},e[131]=f.background,e[132]=_t):_t=e[132];e[133]===Symbol.for("react.memo_cache_sentinel")?(Dt=(0,F.jsx)(m.ScreenHeader,{}),e[133]=Dt):Dt=e[133];e[134]===Symbol.for("react.memo_cache_sentinel")?(wt=()=>fe(null),e[134]=wt):wt=e[134];e[135]!==nt||e[136]!==me?(Et=(0,F.jsx)(N.TrackDetailModal,{track:me,onSeek:nt,onClose:wt}),e[135]=nt,e[136]=me,e[137]=Et):Et=e[137];e[138]===Symbol.for("react.memo_cache_sentinel")?(Pt=()=>ge(!1),e[138]=Pt):Pt=e[138];e[139]!==He||e[140]!==je||e[141]!==lt||e[142]!==le||e[143]!==he||e[144]!==ze?(Rt=(0,F.jsx)(_.EventsFilterSheet,{visible:he,onClose:Pt,cameras:je,availableClasses:He,showSort:ze,dateLabel:lt,dayOffset:le,onPrevDay:de,onNextDay:ue}),e[139]=He,e[140]=je,e[141]=lt,e[142]=le,e[143]=he,e[144]=ze,e[145]=Rt):Rt=e[145];e[146]!==Mt||e[147]!==_t||e[148]!==Et||e[149]!==Rt?(Nt=(0,F.jsxs)(n.default,{style:_t,children:[Dt,Mt,Et,Rt]}),e[146]=Mt,e[147]=_t,e[148]=Et,e[149]=Rt,e[150]=Nt):Nt=e[150];return Nt};var t=r(_d[0]),s=r(_d[1]),n=e(r(_d[2])),l=e(r(_d[3])),o=e(r(_d[4])),c=e(r(_d[5])),d=r(_d[6]),i=r(_d[7]),u=r(_d[8]),m=r(_d[9]),f=r(_d[10]),h=r(_d[11]),S=r(_d[12]),x=r(_d[13]),y=r(_d[14]),b=r(_d[15]),v=r(_d[16]),C=r(_d[17]),k=r(_d[18]),I=r(_d[19]),j=r(_d[20]),p=r(_d[21]),M=r(_d[22]),_=r(_d[23]),D=r(_d[24]),w=r(_d[25]),E=r(_d[26]),P=r(_d[27]),R=r(_d[28]),N=r(_d[29]),T=r(_d[30]),F=r(_d[31]);const A=864e5,G=350;function L(e){return{id:e.id,name:e.name}}function W(e){return Math.max(0,e-1)}function O(e){return e+1}function H(){return Date.now()}function V(e){return e.reset}function z(e){return e.setSortMode}function B(e){return e.filter}function $(e){return e.hydrate}const U=c.default.create({center:{flex:1,alignItems:'center',justifyContent:'center'},splitRow:{flex:1,flexDirection:'row'},rail:{width:300,borderRightWidth:c.default.hairlineWidth,paddingHorizontal:f.SPACING.md},railReset:{alignItems:'center',paddingVertical:f.SPACING.md,borderRadius:f.RADIUS.md,marginVertical:f.SPACING.sm},railResetText:{fontSize:14,fontWeight:'600'},galleryColumn:{flex:1,alignItems:'center'},skeletonGrid:{flexDirection:'row',flexWrap:'wrap',padding:f.SPACING.md/2},skeletonCell:{padding:f.SPACING.md/2},skeletonTile:{aspectRatio:1,borderRadius:f.RADIUS.md,overflow:'hidden'},centered:{flex:1,width:'100%'},detailColumn:{width:420,padding:f.SPACING.md}})},3387,[15,17,20,252,112,33,786,743,2587,3050,2589,3388,3177,3140,3080,3389,3391,3383,3392,3237,3393,3151,3394,3395,3397,3396,3398,3399,3400,3238,3239,10]);
15809
15809
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"DEFAULTS",{enumerable:!0,get:function(){return n}}),_e.parseFilter=u,Object.defineProperty(_e,"useEventsFilterStore",{enumerable:!0,get:function(){return p}});var e,t=r(d[0]),s=r(d[1]),l=(e=s)&&e.__esModule?e:{default:e};const n=Object.freeze({cameraIds:[],classes:[],label:'',sortMode:'time'}),c='camstack.v2.events-filter';function o(e){return Array.isArray(e)?e.filter(e=>'number'==typeof e):[]}function f(e){return Array.isArray(e)?e.filter(e=>'string'==typeof e):[]}function u(e){if('object'!=typeof(t=e)||null===t||Array.isArray(t))return n;var t;const s='importance'===e.sortMode?'importance':n.sortMode;return{cameraIds:o(e.cameraIds),classes:f(e.classes),label:'string'==typeof e.label?e.label:n.label,sortMode:s}}function y(e,t){return e.includes(t)?e.filter(e=>e!==t):[...e,t]}function b(e){l.default.setItem(c,JSON.stringify(e)).catch(()=>{})}const p=(0,t.create)((e,t)=>({filter:n,hydrated:!1,hydrate:async()=>{if(!t().hydrated)try{const t=await l.default.getItem(c);e({filter:t?u(JSON.parse(t)):n,hydrated:!0})}catch{e({filter:n,hydrated:!0})}},toggleCamera:s=>{const l=Object.assign({},t().filter,{cameraIds:y(t().filter.cameraIds,s)});e({filter:l}),b(l)},toggleClass:s=>{const l=Object.assign({},t().filter,{classes:(n=t().filter.classes,c=s,n.includes(c)?n.filter(e=>e!==c):[...n,c])});var n,c;e({filter:l}),b(l)},setClasses:s=>{const l=Object.assign({},t().filter,{classes:[...new Set(s)]});e({filter:l}),b(l)},setLabel:s=>{const l=Object.assign({},t().filter,{label:s});e({filter:l}),b(l)},setSortMode:s=>{const l=Object.assign({},t().filter,{sortMode:s});e({filter:l}),b(l)},reset:()=>{e({filter:n}),b(n)}}))},3388,[2706,3133]);
15810
15810
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"resolveEventsLayout",{enumerable:!0,get:function(){return u.resolveEventsLayout}}),Object.defineProperty(e,"EVENTS_MAX_CONTENT_WIDTH",{enumerable:!0,get:function(){return u.EVENTS_MAX_CONTENT_WIDTH}}),e.useEventsLayout=function(){const o=(0,t.c)(3),s=(0,n.useGridColumns)(),c=(0,n.useWideDetailLayout)();let l;o[0]!==s||o[1]!==c?(l=(0,u.resolveEventsLayout)({columns:s,wide:c}),o[0]=s,o[1]=c,o[2]=l):l=o[2];return l};var t=r(d[0]),n=r(d[1]),u=r(d[2])},3389,[15,2590,3390]);
15811
15811
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"EVENTS_MAX_CONTENT_WIDTH",{enumerable:!0,get:function(){return t}}),e.resolveEventsLayout=function({columns:o,wide:u}){if(o<=1)return{mode:'phone',columns:1,showDetailPane:!1,maxContentWidth:t};if(u)return{mode:'split',columns:Math.max(n,o-1),showDetailPane:!0,maxContentWidth:t};return{mode:'grid',columns:o,showDetailPane:!1,maxContentWidth:t}};const t=1600,n=2},3390,[]);
15812
15812
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useDebouncedValue=function(c,n){const o=(0,t.c)(4),[s,f]=(0,u.useState)(c);let l,_;o[0]!==n||o[1]!==c?(l=()=>{const t=setTimeout(()=>f(c),n);return()=>clearTimeout(t)},_=[c,n],o[0]=n,o[1]=c,o[2]=l,o[3]=_):(l=o[2],_=o[3]);return(0,u.useEffect)(l,_),s};var t=r(d[0]),u=r(d[1])},3391,[15,17]);
15813
- __d(function(g,_r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useSemanticSearch=function(u,v){const y=(0,t.c)(31);let S;y[0]!==v?(S=void 0===v?{}:v,y[0]=v,y[1]=S):S=y[1];const f=S,{controller:F,state:p}=(0,c.useConnection)();let I;y[2]!==u?(I=u.trim(),y[2]=u,y[3]=I):I=y[3];const h=I,b=h.length>0,_=f.deviceId??"all",A=f.classFilter??"any",j=f.since??0,q=f.until??0,C=f.limit??r,O=f.minScore??o;let Q;y[4]!==_||y[5]!==A||y[6]!==j||y[7]!==q||y[8]!==C||y[9]!==O||y[10]!==h?(Q=["v2","analytics","semantic-search",h,_,A,j,q,C,O],y[4]=_,y[5]=A,y[6]=j,y[7]=q,y[8]=C,y[9]=O,y[10]=h,y[11]=Q):Q=y[11];const w=Q,x=b&&"connected"===p;let E,K;y[12]!==F||y[13]!==f.classFilter||y[14]!==f.deviceId||y[15]!==f.limit||y[16]!==f.minScore||y[17]!==f.since||y[18]!==f.until||y[19]!==h?(E=async()=>{const t=F.getSystem();if(!t)return[];const n={text:h,limit:f.limit??r,minScore:f.minScore??o};void 0!==f.deviceId&&(n.deviceId=f.deviceId),void 0!==f.since&&(n.since=f.since),void 0!==f.until&&(n.until=f.until),void 0!==f.classFilter&&(n.classFilter=f.classFilter);const c=await(0,s.capQuery)(t.trpcClient,"pipelineAnalytics","searchObjectEvents",n);if(!Array.isArray(c))return[];const u=[];for(const t of c){const n=(0,l.toScoredResult)(t);null!==n&&u.push(n)}return u},y[12]=F,y[13]=f.classFilter,y[14]=f.deviceId,y[15]=f.limit,y[16]=f.minScore,y[17]=f.since,y[18]=f.until,y[19]=h,y[20]=E):E=y[20];y[21]!==w||y[22]!==x||y[23]!==E?(K={queryKey:w,enabled:x,staleTime:3e4,queryFn:E},y[21]=w,y[22]=x,y[23]=E,y[24]=K):K=y[24];const L=(0,n.useQuery)(K);let M;y[25]!==L.data?(M=L.data??[],y[25]=L.data,y[26]=M):M=y[26];const P=b&&L.isLoading;let R;y[27]!==b||y[28]!==M||y[29]!==P?(R={results:M,loading:P,enabled:b},y[27]=b,y[28]=M,y[29]=P,y[30]=R):R=y[30];return R};var t=_r(d[0]);_r(d[1]);var n=_r(d[2]),c=_r(d[3]),s=_r(d[4]),l=_r(d[5]);const r=50,o=.2},3392,[15,17,3081,2594,3162,3381]);
15813
+ __d(function(g,_r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useSemanticSearch=function(u,v){const y=(0,t.c)(31);let S;y[0]!==v?(S=void 0===v?{}:v,y[0]=v,y[1]=S):S=y[1];const f=S,{controller:F,state:p}=(0,c.useConnection)();let I;y[2]!==u?(I=u.trim(),y[2]=u,y[3]=I):I=y[3];const h=I,b=h.length>0,_=f.deviceId??"all",A=f.classFilter??"any",j=f.since??0,q=f.until??0,C=f.limit??r,O=f.minScore??o;let Q;y[4]!==_||y[5]!==A||y[6]!==j||y[7]!==q||y[8]!==C||y[9]!==O||y[10]!==h?(Q=["v2","analytics","semantic-search",h,_,A,j,q,C,O],y[4]=_,y[5]=A,y[6]=j,y[7]=q,y[8]=C,y[9]=O,y[10]=h,y[11]=Q):Q=y[11];const w=Q,x=b&&"connected"===p;let E,K;y[12]!==F||y[13]!==f.classFilter||y[14]!==f.deviceId||y[15]!==f.limit||y[16]!==f.minScore||y[17]!==f.since||y[18]!==f.until||y[19]!==h?(E=async()=>{const t=F.getSystem();if(!t)return[];const n={text:h,limit:f.limit??r,minScore:f.minScore??o};void 0!==f.deviceId&&(n.deviceId=f.deviceId),void 0!==f.since&&(n.since=f.since),void 0!==f.until&&(n.until=f.until),void 0!==f.classFilter&&(n.classFilter=f.classFilter);const c=await(0,s.capQuery)(t.trpcClient,"pipelineAnalytics","searchObjectEvents",n);if(!Array.isArray(c))return[];const u=[];for(const t of c){const n=(0,l.toScoredResult)(t);null!==n&&u.push(n)}return u},y[12]=F,y[13]=f.classFilter,y[14]=f.deviceId,y[15]=f.limit,y[16]=f.minScore,y[17]=f.since,y[18]=f.until,y[19]=h,y[20]=E):E=y[20];y[21]!==w||y[22]!==x||y[23]!==E?(K={queryKey:w,enabled:x,staleTime:3e4,queryFn:E},y[21]=w,y[22]=x,y[23]=E,y[24]=K):K=y[24];const L=(0,n.useQuery)(K);let M;y[25]!==L.data?(M=L.data??[],y[25]=L.data,y[26]=M):M=y[26];const P=b&&L.isLoading;let R;y[27]!==b||y[28]!==M||y[29]!==P?(R={results:M,loading:P,enabled:b},y[27]=b,y[28]=M,y[29]=P,y[30]=R):R=y[30];return R};var t=_r(d[0]);_r(d[1]);var n=_r(d[2]),c=_r(d[3]),s=_r(d[4]),l=_r(d[5]);const r=50,o=.2},3392,[15,17,3081,2594,3162,3237]);
15814
15814
  __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}),_e.EventsEmpty=function(e){const u=(0,t.c)(19),{filteredOut:y,canLoadMore:x,busy:b,onLoadMore:h}=e,{t:j}=(0,c.useTranslation)(),{colors:M}=(0,f.useTheme)();let S;u[0]!==y||u[1]!==j?(S=y?j("v2.events.filteredEmpty","No matches in the loaded range"):j("v2.events.empty","No events"),u[0]=y,u[1]=j,u[2]=S):S=u[2];const A=S;let C,I,N,P;u[3]!==M.foregroundMuted?(C=[v.message,{color:M.foregroundMuted}],u[3]=M.foregroundMuted,u[4]=C):C=u[4];u[5]!==A||u[6]!==C?(I=(0,p.jsx)(n.default,{style:C,children:A}),u[5]=A,u[6]=C,u[7]=I):I=u[7];u[8]!==b||u[9]!==x||u[10]!==M.foreground||u[11]!==M.primary||u[12]!==M.surface||u[13]!==h||u[14]!==j?(N=x?(0,p.jsx)(l.default,{onPress:h,disabled:b,style:[v.button,{backgroundColor:M.surface,opacity:b?.5:1}],children:b?(0,p.jsx)(s.default,{color:M.primary,size:"small"}):(0,p.jsx)(n.default,{style:[v.buttonText,{color:M.foreground}],children:j("v2.events.loadOlder","Load older")})}):null,u[8]=b,u[9]=x,u[10]=M.foreground,u[11]=M.primary,u[12]=M.surface,u[13]=h,u[14]=j,u[15]=N):N=u[15];u[16]!==I||u[17]!==N?(P=(0,p.jsxs)(o.default,{style:v.center,children:[I,N]}),u[16]=I,u[17]=N,u[18]=P):P=u[18];return P};var t=r(d[0]);r(d[1]);var o=e(r(d[2])),n=e(r(d[3])),l=e(r(d[4])),s=e(r(d[5])),u=e(r(d[6])),c=r(d[7]),f=r(d[8]),y=r(d[9]),p=r(d[10]);const v=u.default.create({center:{flex:1,alignItems:'center',justifyContent:'center',gap:y.SPACING.md,padding:y.SPACING['2xl']},message:{fontSize:15,textAlign:'center'},button:{paddingHorizontal:y.SPACING.xl,paddingVertical:y.SPACING.md,borderRadius:y.RADIUS.md},buttonText:{fontSize:14,fontWeight:'600'}})},3393,[15,17,20,112,252,240,33,786,2587,2589,10]);
15815
15815
  __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,"EventsFilterBar",{enumerable:!0,get:function(){return v}});var o=r(d[0]),n=r(d[1]),t=e(r(d[2])),s=e(r(d[3])),l=e(r(d[4])),u=e(r(d[5])),c=e(r(d[6])),f=r(d[7]),p=r(d[8]),y=r(d[9]),h=r(d[10]),x=r(d[11]),b=r(d[12]);const j=Object.freeze({compact:'S',medium:'M',large:'L'}),v=(0,n.memo)(function(e){const n=(0,o.c)(137),{dateLabel:c,dayOffset:h,onPrevDay:v,onNextDay:S,selectedCameras:I,selectedClasses:M,showSort:z,sortMode:P,onToggleSort:T,activeCount:w,onOpenSheet:D,onOpenDisplay:F,density:N,onSetDensity:R}=e,{colors:k}=(0,y.useTheme)(),{t:A}=(0,f.useTranslation)();let G;n[0]!==A?(G=e=>e>0?String(e):A("v2.events.all","All"),n[0]=A,n[1]=G):G=n[1];const O=G;let H,L,_,B,W;n[2]!==k.surface?(H=[C.navBtn,{backgroundColor:k.surface}],n[2]=k.surface,n[3]=H):H=n[3],n[4]!==k.foreground?(L=(0,b.jsx)(p.ChevronLeft,{size:18,color:k.foreground}),n[4]=k.foreground,n[5]=L):L=n[5],n[6]!==v||n[7]!==H||n[8]!==L?(_=(0,b.jsx)(l.default,{onPress:v,hitSlop:8,style:H,children:L}),n[6]=v,n[7]=H,n[8]=L,n[9]=_):_=n[9],n[10]!==k.foreground?(B=[C.dateText,{color:k.foreground}],n[10]=k.foreground,n[11]=B):B=n[11],n[12]!==c||n[13]!==B?(W=(0,b.jsx)(s.default,{numberOfLines:1,style:B,children:c}),n[12]=c,n[13]=B,n[14]=W):W=n[14];const E=0===h,V=0===h?.4:1;let $,U,q,J,K,Q,X,Y,Z,ee,re,oe,ne,te,se,de,ie,ae,le,ue,ce,fe,ge,pe,ye,he,me,xe,be,je,ve,Ce,Se,Ie,Me,ze,Pe;return n[15]!==k.surface||n[16]!==V?($=[C.navBtn,{backgroundColor:k.surface,opacity:V}],n[15]=k.surface,n[16]=V,n[17]=$):$=n[17],n[18]!==k.foreground?(U=(0,b.jsx)(p.ChevronRight,{size:18,color:k.foreground}),n[18]=k.foreground,n[19]=U):U=n[19],n[20]!==S||n[21]!==U||n[22]!==E||n[23]!==$?(q=(0,b.jsx)(l.default,{onPress:S,hitSlop:8,disabled:E,style:$,children:U}),n[20]=S,n[21]=U,n[22]=E,n[23]=$,n[24]=q):q=n[24],n[25]!==q||n[26]!==_||n[27]!==W?(J=(0,b.jsxs)(t.default,{style:C.dayNav,children:[_,W,q]}),n[25]=q,n[26]=_,n[27]=W,n[28]=J):J=n[28],n[29]!==k.surface?(K=[C.chip,C.iconChip,{backgroundColor:k.surface}],n[29]=k.surface,n[30]=K):K=n[30],n[31]!==k.foreground?(Q=(0,b.jsx)(p.SlidersHorizontal,{size:14,color:k.foreground}),n[31]=k.foreground,n[32]=Q):Q=n[32],n[33]!==k.foreground?(X=[C.chipText,{color:k.foreground}],n[33]=k.foreground,n[34]=X):X=n[34],n[35]!==A?(Y=A("v2.events.filters","Filters"),n[35]=A,n[36]=Y):Y=n[36],n[37]!==X||n[38]!==Y?(Z=(0,b.jsx)(s.default,{style:X,children:Y}),n[37]=X,n[38]=Y,n[39]=Z):Z=n[39],n[40]!==w||n[41]!==k.primary||n[42]!==k.primaryForeground?(ee=w>0?(0,b.jsx)(t.default,{style:[C.badge,{backgroundColor:k.primary}],children:(0,b.jsx)(s.default,{style:[C.badgeText,{color:k.primaryForeground}],children:w})}):null,n[40]=w,n[41]=k.primary,n[42]=k.primaryForeground,n[43]=ee):ee=n[43],n[44]!==D||n[45]!==K||n[46]!==Q||n[47]!==Z||n[48]!==ee?(re=(0,b.jsxs)(l.default,{onPress:D,style:K,children:[Q,Z,ee]}),n[44]=D,n[45]=K,n[46]=Q,n[47]=Z,n[48]=ee,n[49]=re):re=n[49],n[50]!==k.surface?(oe=[C.chip,{backgroundColor:k.surface}],n[50]=k.surface,n[51]=oe):oe=n[51],n[52]!==k.foregroundMuted?(ne=[C.chipText,{color:k.foregroundMuted}],n[52]=k.foregroundMuted,n[53]=ne):ne=n[53],n[54]!==A?(te=A("v2.events.cameras","Cameras"),n[54]=A,n[55]=te):te=n[55],n[56]!==O||n[57]!==I?(se=O(I),n[56]=O,n[57]=I,n[58]=se):se=n[58],n[59]!==ne||n[60]!==te||n[61]!==se?(de=(0,b.jsxs)(s.default,{style:ne,children:[te," \xb7 ",se]}),n[59]=ne,n[60]=te,n[61]=se,n[62]=de):de=n[62],n[63]!==D||n[64]!==oe||n[65]!==de?(ie=(0,b.jsx)(l.default,{onPress:D,style:oe,children:de}),n[63]=D,n[64]=oe,n[65]=de,n[66]=ie):ie=n[66],n[67]!==k.surface?(ae=[C.chip,{backgroundColor:k.surface}],n[67]=k.surface,n[68]=ae):ae=n[68],n[69]!==k.foregroundMuted?(le=[C.chipText,{color:k.foregroundMuted}],n[69]=k.foregroundMuted,n[70]=le):le=n[70],n[71]!==A?(ue=A("v2.events.classes","Classes"),n[71]=A,n[72]=ue):ue=n[72],n[73]!==O||n[74]!==M?(ce=O(M),n[73]=O,n[74]=M,n[75]=ce):ce=n[75],n[76]!==le||n[77]!==ue||n[78]!==ce?(fe=(0,b.jsxs)(s.default,{style:le,children:[ue," \xb7 ",ce]}),n[76]=le,n[77]=ue,n[78]=ce,n[79]=fe):fe=n[79],n[80]!==D||n[81]!==ae||n[82]!==fe?(ge=(0,b.jsx)(l.default,{onPress:D,style:ae,children:fe}),n[80]=D,n[81]=ae,n[82]=fe,n[83]=ge):ge=n[83],n[84]!==k.foregroundMuted||n[85]!==k.primary||n[86]!==k.primaryForeground||n[87]!==k.surface||n[88]!==T||n[89]!==z||n[90]!==P||n[91]!==A?(pe=z?(0,b.jsxs)(l.default,{onPress:T,style:[C.chip,C.iconChip,{backgroundColor:"importance"===P?k.primary:k.surface}],children:[(0,b.jsx)(p.ArrowDownWideNarrow,{size:14,color:"importance"===P?k.primaryForeground:k.foregroundMuted}),(0,b.jsx)(s.default,{style:[C.chipText,{color:"importance"===P?k.primaryForeground:k.foregroundMuted}],children:"importance"===P?A("v2.events.sortImportance","Importance"):A("v2.events.sortTime","Newest")})]}):null,n[84]=k.foregroundMuted,n[85]=k.primary,n[86]=k.primaryForeground,n[87]=k.surface,n[88]=T,n[89]=z,n[90]=P,n[91]=A,n[92]=pe):pe=n[92],n[93]!==k.surface?(ye=[C.chip,C.iconChip,{backgroundColor:k.surface}],n[93]=k.surface,n[94]=ye):ye=n[94],n[95]!==k.foreground?(he=(0,b.jsx)(p.Eye,{size:14,color:k.foreground}),n[95]=k.foreground,n[96]=he):he=n[96],n[97]!==k.foreground?(me=[C.chipText,{color:k.foreground}],n[97]=k.foreground,n[98]=me):me=n[98],n[99]!==A?(xe=A("v2.events.displayOptions"),n[99]=A,n[100]=xe):xe=n[100],n[101]!==me||n[102]!==xe?(be=(0,b.jsx)(s.default,{style:me,children:xe}),n[101]=me,n[102]=xe,n[103]=be):be=n[103],n[104]!==F||n[105]!==ye||n[106]!==he||n[107]!==be?(je=(0,b.jsxs)(l.default,{onPress:F,style:ye,children:[he,be]}),n[104]=F,n[105]=ye,n[106]=he,n[107]=be,n[108]=je):je=n[108],n[109]!==k.surface?(ve=[C.densityGroup,{backgroundColor:k.surface}],n[109]=k.surface,n[110]=ve):ve=n[110],n[111]!==A?(Ce=A("v2.events.density"),n[111]=A,n[112]=Ce):Ce=n[112],n[113]!==k.foregroundMuted?(Se=(0,b.jsx)(p.Grid3x3,{size:13,color:k.foregroundMuted,style:C.densityIcon}),n[113]=k.foregroundMuted,n[114]=Se):Se=n[114],n[115]!==k.foregroundMuted||n[116]!==k.primary||n[117]!==k.primaryForeground||n[118]!==N||n[119]!==R||n[120]!==A?(Ie=x.GRID_DENSITIES.map(e=>{const o=e===N;return(0,b.jsx)(l.default,{onPress:()=>R(e),accessibilityRole:"button",accessibilityLabel:`${A("v2.events.density")} ${j[e]}`,style:[C.densityBtn,{backgroundColor:o?k.primary:"transparent"}],children:(0,b.jsx)(s.default,{style:[C.chipText,{color:o?k.primaryForeground:k.foregroundMuted}],children:j[e]})},e)}),n[115]=k.foregroundMuted,n[116]=k.primary,n[117]=k.primaryForeground,n[118]=N,n[119]=R,n[120]=A,n[121]=Ie):Ie=n[121],n[122]!==ve||n[123]!==Ce||n[124]!==Se||n[125]!==Ie?(Me=(0,b.jsxs)(t.default,{style:ve,accessibilityLabel:Ce,children:[Se,Ie]}),n[122]=ve,n[123]=Ce,n[124]=Se,n[125]=Ie,n[126]=Me):Me=n[126],n[127]!==re||n[128]!==ie||n[129]!==ge||n[130]!==pe||n[131]!==je||n[132]!==Me?(ze=(0,b.jsxs)(u.default,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:C.chips,children:[re,ie,ge,pe,je,Me]}),n[127]=re,n[128]=ie,n[129]=ge,n[130]=pe,n[131]=je,n[132]=Me,n[133]=ze):ze=n[133],n[134]!==J||n[135]!==ze?(Pe=(0,b.jsxs)(t.default,{style:C.wrap,children:[J,ze]}),n[134]=J,n[135]=ze,n[136]=Pe):Pe=n[136],Pe}),C=c.default.create({wrap:{flexDirection:'row',alignItems:'center',gap:h.SPACING.sm,paddingHorizontal:h.SPACING.md,paddingTop:h.SPACING.xs},dayNav:{flexDirection:'row',alignItems:'center',gap:h.SPACING.xs},navBtn:{width:30,height:30,borderRadius:h.RADIUS.md,alignItems:'center',justifyContent:'center'},dateText:{fontSize:13,fontWeight:'600',minWidth:72,textAlign:'center',fontVariant:['tabular-nums']},chips:{gap:h.SPACING.xs,alignItems:'center',paddingRight:h.SPACING.md},chip:{paddingHorizontal:12,paddingVertical:6,borderRadius:999},iconChip:{flexDirection:'row',alignItems:'center',gap:4},chipText:{fontSize:12,fontWeight:'600'},badge:{minWidth:16,height:16,borderRadius:8,paddingHorizontal:4,alignItems:'center',justifyContent:'center'},badgeText:{fontSize:10,fontWeight:'700'},densityGroup:{flexDirection:'row',alignItems:'center',borderRadius:999,paddingHorizontal:4,paddingVertical:2,gap:2},densityIcon:{marginLeft:4,marginRight:2},densityBtn:{paddingHorizontal:8,paddingVertical:4,borderRadius:999}})},3394,[15,17,20,112,252,147,33,786,813,2587,2589,3140,10]);
15816
15816
  __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,"EventsFilterSheet",{enumerable:!0,get:function(){return S}});var t=r(d[0]),o=r(d[1]),n=e(r(d[2])),s=e(r(d[3])),l=e(r(d[4])),u=e(r(d[5])),f=e(r(d[6])),c=r(d[7]),y=r(d[8]),b=r(d[9]),h=r(d[10]),p=r(d[11]),x=r(d[12]),j=r(d[13]),C=r(d[14]);const S=(0,o.memo)(function(e){const o=(0,t.c)(74),{visible:f,onClose:S,cameras:I,availableClasses:A,showSort:D,dateLabel:R,dayOffset:k,onPrevDay:B,onNextDay:T}=e,{colors:N}=(0,h.useTheme)(),{t:F}=(0,y.useTranslation)(),G=(0,c.useSafeAreaInsets)(),w=(0,x.useEventsFilterStore)(P);let E,_,M,z,O,U,L,H,W,q;o[0]!==S?(E=(0,C.jsx)(u.default,{style:v.scrim,onPress:S}),o[0]=S,o[1]=E):E=o[1],o[2]!==N.backgroundElevated?(_=[v.sheet,{backgroundColor:N.backgroundElevated}],o[2]=N.backgroundElevated,o[3]=_):_=o[3],o[4]!==N.foreground?(M=[v.title,{color:N.foreground}],o[4]=N.foreground,o[5]=M):M=o[5],o[6]!==F?(z=F("v2.events.filters","Filters"),o[6]=F,o[7]=z):z=o[7],o[8]!==M||o[9]!==z?(O=(0,C.jsx)(l.default,{style:M,children:z}),o[8]=M,o[9]=z,o[10]=O):O=o[10],o[11]!==N.surface?(U=[v.iconBtn,{backgroundColor:N.surface}],o[11]=N.surface,o[12]=U):U=o[12],o[13]!==N.foreground?(L=(0,C.jsx)(b.X,{size:18,color:N.foreground}),o[13]=N.foreground,o[14]=L):L=o[14],o[15]!==S||o[16]!==U||o[17]!==L?(H=(0,C.jsx)(u.default,{onPress:S,hitSlop:10,style:U,children:L}),o[15]=S,o[16]=U,o[17]=L,o[18]=H):H=o[18],o[19]!==O||o[20]!==H?(W=(0,C.jsxs)(s.default,{style:v.header,children:[O,H]}),o[19]=O,o[20]=H,o[21]=W):W=o[21],o[22]!==A||o[23]!==I||o[24]!==R||o[25]!==k||o[26]!==T||o[27]!==B||o[28]!==D?(q=(0,C.jsx)(j.EventsFilterPanel,{cameras:I,availableClasses:A,showSort:D,dateLabel:R,dayOffset:k,onPrevDay:B,onNextDay:T}),o[22]=A,o[23]=I,o[24]=R,o[25]=k,o[26]=T,o[27]=B,o[28]=D,o[29]=q):q=o[29];const V=G.bottom+p.SPACING.md;let X,J,K,Q,Y,Z,$,ee,te,re,oe,ne,se,ae,de;return o[30]!==V?(X=[v.footer,{paddingBottom:V}],o[30]=V,o[31]=X):X=o[31],o[32]!==N.surface?(J=[v.footerBtn,{backgroundColor:N.surface}],o[32]=N.surface,o[33]=J):J=o[33],o[34]!==N.foregroundMuted?(K=[v.footerBtnText,{color:N.foregroundMuted}],o[34]=N.foregroundMuted,o[35]=K):K=o[35],o[36]!==F?(Q=F("common.reset","Reset"),o[36]=F,o[37]=Q):Q=o[37],o[38]!==K||o[39]!==Q?(Y=(0,C.jsx)(l.default,{style:K,children:Q}),o[38]=K,o[39]=Q,o[40]=Y):Y=o[40],o[41]!==w||o[42]!==J||o[43]!==Y?(Z=(0,C.jsx)(u.default,{onPress:w,style:J,children:Y}),o[41]=w,o[42]=J,o[43]=Y,o[44]=Z):Z=o[44],o[45]!==N.primary?($=[v.footerBtn,{backgroundColor:N.primary}],o[45]=N.primary,o[46]=$):$=o[46],o[47]!==N.primaryForeground?(ee=[v.footerBtnText,{color:N.primaryForeground}],o[47]=N.primaryForeground,o[48]=ee):ee=o[48],o[49]!==F?(te=F("v2.events.done","Done"),o[49]=F,o[50]=te):te=o[50],o[51]!==ee||o[52]!==te?(re=(0,C.jsx)(l.default,{style:ee,children:te}),o[51]=ee,o[52]=te,o[53]=re):re=o[53],o[54]!==S||o[55]!==$||o[56]!==re?(oe=(0,C.jsx)(u.default,{onPress:S,style:$,children:re}),o[54]=S,o[55]=$,o[56]=re,o[57]=oe):oe=o[57],o[58]!==X||o[59]!==Z||o[60]!==oe?(ne=(0,C.jsxs)(s.default,{style:X,children:[Z,oe]}),o[58]=X,o[59]=Z,o[60]=oe,o[61]=ne):ne=o[61],o[62]!==q||o[63]!==_||o[64]!==ne||o[65]!==W?(se=(0,C.jsxs)(s.default,{style:_,children:[W,q,ne]}),o[62]=q,o[63]=_,o[64]=ne,o[65]=W,o[66]=se):se=o[66],o[67]!==E||o[68]!==se?(ae=(0,C.jsxs)(s.default,{style:v.backdrop,children:[E,se]}),o[67]=E,o[68]=se,o[69]=ae):ae=o[69],o[70]!==S||o[71]!==ae||o[72]!==f?(de=(0,C.jsx)(n.default,{visible:f,animationType:"slide",transparent:!0,onRequestClose:S,children:ae}),o[70]=S,o[71]=ae,o[72]=f,o[73]=de):de=o[73],de}),v=f.default.create({backdrop:{flex:1,justifyContent:'flex-end'},scrim:{position:'absolute',top:0,left:0,right:0,bottom:0,backgroundColor:'rgba(0,0,0,0.5)'},sheet:{maxHeight:'85%',borderTopLeftRadius:p.RADIUS.xl,borderTopRightRadius:p.RADIUS.xl,paddingHorizontal:p.SPACING.md,paddingTop:p.SPACING.md},header:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingBottom:p.SPACING.sm},title:{fontSize:18,fontWeight:'700'},iconBtn:{width:32,height:32,borderRadius:p.RADIUS.md,alignItems:'center',justifyContent:'center'},footer:{flexDirection:'row',gap:p.SPACING.sm,paddingTop:p.SPACING.sm},footerBtn:{flex:1,alignItems:'center',paddingVertical:p.SPACING.md,borderRadius:p.RADIUS.md},footerBtnText:{fontSize:15,fontWeight:'700'}});function P(e){return e.reset}},3395,[15,17,245,20,112,252,33,466,786,813,2587,2589,3388,3396,10]);
15817
15817
  __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,"EventsFilterPanel",{enumerable:!0,get:function(){return v}});var o=r(_d[0]),t=r(_d[1]),n=e(r(_d[2])),s=e(r(_d[3])),l=e(r(_d[4])),d=e(r(_d[5])),c=e(r(_d[6])),u=e(r(_d[7])),i=r(_d[8]),f=r(_d[9]),h=r(_d[10]),b=r(_d[11]),S=r(_d[12]),x=r(_d[13]),p=r(_d[14]),y=r(_d[15]),C=r(_d[16]);const v=(0,t.memo)(function(e){const u=(0,o.c)(107),{cameras:p,availableClasses:y,showSort:v,dateLabel:I,dayOffset:G,onPrevDay:D,onNextDay:M,contentBottomInset:E}=e,F=void 0===E?0:E,{colors:_}=(0,h.useTheme)(),{t:B}=(0,i.useTranslation)(),H=(0,S.useEventsFilterStore)(k),K=(0,S.useEventsFilterStore)(T),V=(0,S.useEventsFilterStore)(L),W=(0,S.useEventsFilterStore)(N),O=(0,S.useEventsFilterStore)(R),U=(0,S.useEventsFilterStore)(A),[q,Q]=(0,t.useState)("");let $;if(u[0]!==q||u[1]!==p){const e=q.trim().toLowerCase();$=e?p.filter(o=>o.name.toLowerCase().includes(e)):p,u[0]=q,u[1]=p,u[2]=$}else $=u[2];const J=$;let X;u[3]!==p||u[4]!==H.cameraIds?(X=H.cameraIds.length>0?H.cameraIds:p.map(z),u[3]=p,u[4]=H.cameraIds,u[5]=X):X=u[5];const Y=X,Z=(0,x.useEventKinds)(Y),ee=F+b.SPACING.md;let re,oe,te,ne,se,le,ae,de,ce;u[6]!==ee?(re=[P.body,{paddingBottom:ee}],u[6]=ee,u[7]=re):re=u[7],u[8]!==_.foregroundSubtle?(oe=[P.sectionLabel,{color:_.foregroundSubtle}],u[8]=_.foregroundSubtle,u[9]=oe):oe=u[9],u[10]!==B?(te=B("v2.events.day","Day"),u[10]=B,u[11]=te):te=u[11],u[12]!==oe||u[13]!==te?(ne=(0,C.jsx)(s.default,{style:oe,children:te}),u[12]=oe,u[13]=te,u[14]=ne):ne=u[14],u[15]!==_.surface?(se=[P.navBtn,{backgroundColor:_.surface}],u[15]=_.surface,u[16]=se):se=u[16],u[17]!==_.foreground?(le=(0,C.jsx)(f.ChevronLeft,{size:18,color:_.foreground}),u[17]=_.foreground,u[18]=le):le=u[18],u[19]!==D||u[20]!==le||u[21]!==se?(ae=(0,C.jsx)(d.default,{onPress:D,style:se,children:le}),u[19]=D,u[20]=le,u[21]=se,u[22]=ae):ae=u[22],u[23]!==_.foreground?(de=[P.dateText,{color:_.foreground}],u[23]=_.foreground,u[24]=de):de=u[24],u[25]!==I||u[26]!==de?(ce=(0,C.jsx)(s.default,{style:de,children:I}),u[25]=I,u[26]=de,u[27]=ce):ce=u[27];const ue=0===G,ie=0===G?.4:1;let fe,ge,me,he,be,Se,xe;u[28]!==_.surface||u[29]!==ie?(fe=[P.navBtn,{backgroundColor:_.surface,opacity:ie}],u[28]=_.surface,u[29]=ie,u[30]=fe):fe=u[30],u[31]!==_.foreground?(ge=(0,C.jsx)(f.ChevronRight,{size:18,color:_.foreground}),u[31]=_.foreground,u[32]=ge):ge=u[32],u[33]!==M||u[34]!==ue||u[35]!==fe||u[36]!==ge?(me=(0,C.jsx)(d.default,{onPress:M,disabled:ue,style:fe,children:ge}),u[33]=M,u[34]=ue,u[35]=fe,u[36]=ge,u[37]=me):me=u[37],u[38]!==ae||u[39]!==ce||u[40]!==me?(he=(0,C.jsxs)(n.default,{style:P.dayNav,children:[ae,ce,me]}),u[38]=ae,u[39]=ce,u[40]=me,u[41]=he):he=u[41],u[42]!==_.foregroundSubtle?(be=[P.sectionLabel,{color:_.foregroundSubtle}],u[42]=_.foregroundSubtle,u[43]=be):be=u[43],u[44]!==B?(Se=B("v2.events.search","Search"),u[44]=B,u[45]=Se):Se=u[45],u[46]!==be||u[47]!==Se?(xe=(0,C.jsx)(s.default,{style:be,children:Se}),u[46]=be,u[47]=Se,u[48]=xe):xe=u[48];const pe=H.label;let ye,Ce,ve,je,Ie,we,Pe,ke,Te,Le,Ne,Re,Ae;if(u[49]!==B?(ye=B("v2.events.searchLabel","Search label\u2026"),u[49]=B,u[50]=ye):ye=u[50],u[51]!==_.foreground||u[52]!==_.surface?(Ce=[P.search,{backgroundColor:_.surface,color:_.foreground}],u[51]=_.foreground,u[52]=_.surface,u[53]=Ce):Ce=u[53],u[54]!==_.foregroundSubtle||u[55]!==H.label||u[56]!==O||u[57]!==ye||u[58]!==Ce?(ve=(0,C.jsx)(l.default,{value:pe,onChangeText:O,placeholder:ye,placeholderTextColor:_.foregroundSubtle,style:Ce}),u[54]=_.foregroundSubtle,u[55]=H.label,u[56]=O,u[57]=ye,u[58]=Ce,u[59]=ve):ve=u[59],u[60]!==_.foregroundMuted||u[61]!==_.foregroundSubtle||u[62]!==_.primary||u[63]!==_.primaryForeground||u[64]!==_.surface||u[65]!==H.sortMode||u[66]!==U||u[67]!==v||u[68]!==B?(je=v?(0,C.jsxs)(C.Fragment,{children:[(0,C.jsx)(s.default,{style:[P.sectionLabel,{color:_.foregroundSubtle}],children:B("v2.events.sort","Sort")}),(0,C.jsx)(n.default,{style:P.chipRow,children:["time","importance"].map(e=>{const o=H.sortMode===e;return(0,C.jsx)(d.default,{onPress:()=>U(e),style:[P.chip,{backgroundColor:o?_.primary:_.surface}],children:(0,C.jsx)(s.default,{style:[P.chipText,{color:o?_.primaryForeground:_.foregroundMuted}],children:"time"===e?B("v2.events.sortTime","Newest"):B("v2.events.sortImportance","Importance")})},e)})})]}):null,u[60]=_.foregroundMuted,u[61]=_.foregroundSubtle,u[62]=_.primary,u[63]=_.primaryForeground,u[64]=_.surface,u[65]=H.sortMode,u[66]=U,u[67]=v,u[68]=B,u[69]=je):je=u[69],u[70]!==B?(Ie=B("v2.events.cameras","Cameras"),u[70]=B,u[71]=Ie):Ie=u[71],u[72]!==B?(we=B("v2.events.searchCameras","Search cameras\u2026"),u[72]=B,u[73]=we):we=u[73],u[74]!==H.cameraIds||u[75]!==J){let e;u[77]!==H.cameraIds?(e=e=>({key:String(e.id),label:e.name,selected:H.cameraIds.includes(e.id)}),u[77]=H.cameraIds,u[78]=e):e=u[78],Pe=J.map(e),u[74]=H.cameraIds,u[75]=J,u[76]=Pe}else Pe=u[76];return u[79]!==K?(ke=e=>K(Number(e)),u[79]=K,u[80]=ke):ke=u[80],u[81]!==B?(Te=B("v2.events.allCamerasHint","None = all"),u[81]=B,u[82]=Te):Te=u[82],u[83]!==q||u[84]!==Ie||u[85]!==we||u[86]!==Pe||u[87]!==ke||u[88]!==Te?(Le=(0,C.jsx)(w,{title:Ie,query:q,onQuery:Q,placeholder:we,items:Pe,onToggle:ke,emptyLabel:Te}),u[83]=q,u[84]=Ie,u[85]=we,u[86]=Pe,u[87]=ke,u[88]=Te,u[89]=Le):Le=u[89],u[90]!==Z.data?(Ne=Z.data??[],u[90]=Z.data,u[91]=Ne):Ne=u[91],u[92]!==y||u[93]!==H.classes||u[94]!==W||u[95]!==Ne||u[96]!==V?(Re=(0,C.jsx)(j,{descriptors:Ne,fallbackClasses:y,selected:H.classes,onToggleClass:V,onSetClasses:W}),u[92]=y,u[93]=H.classes,u[94]=W,u[95]=Ne,u[96]=V,u[97]=Re):Re=u[97],u[98]!==he||u[99]!==xe||u[100]!==ve||u[101]!==je||u[102]!==Le||u[103]!==Re||u[104]!==re||u[105]!==ne?(Ae=(0,C.jsxs)(c.default,{contentContainerStyle:re,showsVerticalScrollIndicator:!1,keyboardShouldPersistTaps:"handled",children:[ne,he,xe,ve,je,Le,Re]}),u[98]=he,u[99]=xe,u[100]=ve,u[101]=je,u[102]=Le,u[103]=Re,u[104]=re,u[105]=ne,u[106]=Ae):Ae=u[106],Ae}),j=(0,t.memo)(function(e){const c=(0,o.c)(52),{descriptors:u,fallbackClasses:b,selected:S,onToggleClass:x,onSetClasses:v}=e,{colors:j}=(0,h.useTheme)(),{t:w}=(0,i.useTranslation)(),[k,T]=(0,t.useState)("");let L;c[0]===Symbol.for("react.memo_cache_sentinel")?(L=new Set,c[0]=L):L=c[0];const[N,R]=(0,t.useState)(L);let A;c[1]!==S?(A=new Set(S),c[1]=S,c[2]=A):A=c[2];const z=A;let G;c[3]!==u?(G=(0,p.buildEventKindTree)(u),c[3]=u,c[4]=G):G=c[4];const D=G,M=0===D.length;let E;if(c[5]!==j.foreground||c[6]!==j.foregroundSubtle||c[7]!==j.surface||c[8]!==u||c[9]!==N||c[10]!==b||c[11]!==v||c[12]!==x||c[13]!==k||c[14]!==z||c[15]!==w||c[16]!==D||c[17]!==M){const e=k.trim().toLowerCase(),o=o=>0===e.length||(0,y.eventKindLabel)(o,w).toLowerCase().includes(e);let t;c[19]!==u||c[20]!==v||c[21]!==z?(t=e=>{const o=(0,p.expandMacroSelection)(e.macro.kind,u),t=new Set(z);if(z.has(e.macro.kind))for(const e of o)t.delete(e);else for(const e of o)t.add(e);v([...t])},c[19]=u,c[20]=v,c[21]=z,c[22]=t):t=c[22];const i=t;let h;c[23]===Symbol.for("react.memo_cache_sentinel")?(h=e=>{R(o=>{const t=new Set(o);return t.has(e)?t.delete(e):t.add(e),t})},c[23]=h):h=c[23];const S=h,L=z.size;let A,G,F,_,B,H,K,V,W,O;c[24]!==j.foregroundSubtle?(A=[P.sectionLabel,{color:j.foregroundSubtle}],c[24]=j.foregroundSubtle,c[25]=A):A=c[25],c[26]!==w?(G=w("v2.events.eventKinds","Event types"),c[26]=w,c[27]=G):G=c[27],c[28]!==A||c[29]!==G?(F=(0,C.jsx)(s.default,{style:A,children:G}),c[28]=A,c[29]=G,c[30]=F):F=c[30],c[31]!==j.foregroundSubtle?(_=[P.sectionCount,{color:j.foregroundSubtle}],c[31]=j.foregroundSubtle,c[32]=_):_=c[32],c[33]!==L||c[34]!==w?(B=L>0?`${L}`:w("v2.events.allClassesHint","None = all"),c[33]=L,c[34]=w,c[35]=B):B=c[35],c[36]!==_||c[37]!==B?(H=(0,C.jsx)(s.default,{style:_,children:B}),c[36]=_,c[37]=B,c[38]=H):H=c[38],c[39]!==H||c[40]!==F?(K=(0,C.jsxs)(n.default,{style:P.sectionHead,children:[F,H]}),c[39]=H,c[40]=F,c[41]=K):K=c[41],c[42]!==w?(V=w("v2.events.searchClasses","Search classes\u2026"),c[42]=w,c[43]=V):V=c[43],c[44]!==j.foreground||c[45]!==j.surface?(W=[P.search,{backgroundColor:j.surface,color:j.foreground}],c[44]=j.foreground,c[45]=j.surface,c[46]=W):W=c[46],c[47]!==j.foregroundSubtle||c[48]!==k||c[49]!==V||c[50]!==W?(O=(0,C.jsx)(l.default,{value:k,onChangeText:T,placeholder:V,placeholderTextColor:j.foregroundSubtle,style:W}),c[47]=j.foregroundSubtle,c[48]=k,c[49]=V,c[50]=W,c[51]=O):O=c[51],E=(0,C.jsxs)(n.default,{style:P.section,children:[K,O,M?(0,C.jsx)(n.default,{style:P.list,children:b.filter(o=>0===e.length||o.toLowerCase().includes(e)).map(e=>(0,C.jsx)(I,{label:e,selected:z.has(e),onPress:()=>x(e)},e))}):(0,C.jsx)(n.default,{style:P.list,children:D.map(t=>{const s=o(t.macro),l=t.subs.filter(o);if(!s&&0===l.length)return null;const c=N.has(t.macro.kind)||e.length>0,u=(0,y.resolveEventKindIcon)(t.macro.iconId),h=t.subs.length>0;return(0,C.jsxs)(n.default,{children:[(0,C.jsxs)(n.default,{style:P.macroRow,children:[h?(0,C.jsx)(d.default,{onPress:()=>S(t.macro.kind),hitSlop:8,style:P.expandBtn,children:c?(0,C.jsx)(f.ChevronDown,{size:16,color:j.foregroundSubtle}):(0,C.jsx)(f.ChevronRight,{size:16,color:j.foregroundSubtle})}):(0,C.jsx)(n.default,{style:P.expandBtn}),(0,C.jsx)(I,{label:(0,y.eventKindLabel)(t.macro,w),icon:u,iconColor:t.macro.color,selected:z.has(t.macro.kind),onPress:()=>i(t),style:P.macroCheck})]}),c?l.map(e=>{const o=(0,y.resolveEventKindIcon)(e.iconId);return(0,C.jsx)(n.default,{style:P.subRow,children:(0,C.jsx)(I,{label:(0,y.eventKindLabel)(e,w),icon:o,iconColor:e.color,selected:z.has(e.kind),onPress:()=>x(e.kind)})},e.kind)}):null]},t.macro.kind)})})]}),c[5]=j.foreground,c[6]=j.foregroundSubtle,c[7]=j.surface,c[8]=u,c[9]=N,c[10]=b,c[11]=v,c[12]=x,c[13]=k,c[14]=z,c[15]=w,c[16]=D,c[17]=M,c[18]=E}else E=c[18];return E});function I(e){const t=(0,o.c)(28),{label:l,selected:c,onPress:u,icon:i,iconColor:b,style:S}=e,{colors:x}=(0,h.useTheme)(),p=c?x.primary+"22":"transparent";let y,v,j,I,w;t[0]!==p?(y={backgroundColor:p},t[0]=p,t[1]=y):y=t[1],t[2]!==S||t[3]!==y?(v=[P.optionRow,y,S],t[2]=S,t[3]=y,t[4]=v):v=t[4],t[5]!==i||t[6]!==x.foregroundMuted||t[7]!==b?(j=i?(0,C.jsx)(i,{size:16,color:b??x.foregroundMuted}):null,t[5]=i,t[6]=x.foregroundMuted,t[7]=b,t[8]=j):j=t[8],t[9]!==x.foreground?(I=[P.optionLabel,{color:x.foreground}],t[9]=x.foreground,t[10]=I):I=t[10],t[11]!==l||t[12]!==I?(w=(0,C.jsx)(s.default,{numberOfLines:1,style:I,children:l}),t[11]=l,t[12]=I,t[13]=w):w=t[13];const k=c?x.primary:x.border;let T,L,N,R;return t[14]!==k?(T=[P.checkbox,{borderColor:k}],t[14]=k,t[15]=T):T=t[15],t[16]!==x.primary||t[17]!==c?(L=c?(0,C.jsx)(f.Check,{size:14,color:x.primary}):null,t[16]=x.primary,t[17]=c,t[18]=L):L=t[18],t[19]!==T||t[20]!==L?(N=(0,C.jsx)(n.default,{style:T,children:L}),t[19]=T,t[20]=L,t[21]=N):N=t[21],t[22]!==u||t[23]!==N||t[24]!==v||t[25]!==j||t[26]!==w?(R=(0,C.jsxs)(d.default,{onPress:u,style:v,children:[j,w,N]}),t[22]=u,t[23]=N,t[24]=v,t[25]=j,t[26]=w,t[27]=R):R=t[27],R}const w=(0,t.memo)(function(e){const t=(0,o.c)(35),{title:d,query:c,onQuery:u,placeholder:i,items:f,onToggle:b,emptyLabel:S}=e,{colors:x}=(0,h.useTheme)();let p;t[0]!==f?(p=f.filter(G),t[0]=f,t[1]=p):p=t[1];const y=p.length;let v,j,w;t[2]!==x.foregroundSubtle?(v=[P.sectionLabel,{color:x.foregroundSubtle}],t[2]=x.foregroundSubtle,t[3]=v):v=t[3],t[4]!==v||t[5]!==d?(j=(0,C.jsx)(s.default,{style:v,children:d}),t[4]=v,t[5]=d,t[6]=j):j=t[6],t[7]!==x.foregroundSubtle?(w=[P.sectionCount,{color:x.foregroundSubtle}],t[7]=x.foregroundSubtle,t[8]=w):w=t[8];const k=y>0?`${y}`:S;let T,L,N,R,A,z,D;if(t[9]!==w||t[10]!==k?(T=(0,C.jsx)(s.default,{style:w,children:k}),t[9]=w,t[10]=k,t[11]=T):T=t[11],t[12]!==j||t[13]!==T?(L=(0,C.jsxs)(n.default,{style:P.sectionHead,children:[j,T]}),t[12]=j,t[13]=T,t[14]=L):L=t[14],t[15]!==x.foreground||t[16]!==x.surface?(N=[P.search,{backgroundColor:x.surface,color:x.foreground}],t[15]=x.foreground,t[16]=x.surface,t[17]=N):N=t[17],t[18]!==x.foregroundSubtle||t[19]!==u||t[20]!==i||t[21]!==c||t[22]!==N?(R=(0,C.jsx)(l.default,{value:c,onChangeText:u,placeholder:i,placeholderTextColor:x.foregroundSubtle,style:N}),t[18]=x.foregroundSubtle,t[19]=u,t[20]=i,t[21]=c,t[22]=N,t[23]=R):R=t[23],t[24]!==f||t[25]!==b){let e;t[27]!==b?(e=e=>(0,C.jsx)(I,{label:e.label,selected:e.selected,onPress:()=>b(e.key)},e.key),t[27]=b,t[28]=e):e=t[28],A=f.map(e),t[24]=f,t[25]=b,t[26]=A}else A=t[26];return t[29]!==A?(z=(0,C.jsx)(n.default,{style:P.list,children:A}),t[29]=A,t[30]=z):z=t[30],t[31]!==z||t[32]!==L||t[33]!==R?(D=(0,C.jsxs)(n.default,{style:P.section,children:[L,R,z]}),t[31]=z,t[32]=L,t[33]=R,t[34]=D):D=t[34],D}),P=u.default.create({body:{gap:b.SPACING.sm},sectionLabel:{fontSize:11,textTransform:'uppercase',marginTop:b.SPACING.sm},dayNav:{flexDirection:'row',alignItems:'center',gap:b.SPACING.md},navBtn:{width:34,height:34,borderRadius:b.RADIUS.md,alignItems:'center',justifyContent:'center'},dateText:{fontSize:14,fontWeight:'600',minWidth:110,textAlign:'center',fontVariant:['tabular-nums']},chipRow:{flexDirection:'row',flexWrap:'wrap',gap:b.SPACING.xs},chip:{paddingHorizontal:12,paddingVertical:6,borderRadius:999},chipText:{fontSize:12,fontWeight:'600'},checkbox:{width:22,height:22,borderRadius:b.RADIUS.sm,borderWidth:2,alignItems:'center',justifyContent:'center'},section:{gap:b.SPACING.xs},sectionHead:{flexDirection:'row',alignItems:'center',justifyContent:'space-between'},sectionCount:{fontSize:11,marginTop:b.SPACING.sm},search:{borderRadius:b.RADIUS.md,paddingHorizontal:b.SPACING.sm,paddingVertical:b.SPACING.sm,fontSize:14},list:{gap:1},optionRow:{flexDirection:'row',alignItems:'center',gap:b.SPACING.sm,justifyContent:'space-between',paddingHorizontal:b.SPACING.sm,paddingVertical:b.SPACING.sm+2,borderRadius:b.RADIUS.md},optionLabel:{fontSize:14,flexShrink:1,marginRight:b.SPACING.sm,flex:1},macroRow:{flexDirection:'row',alignItems:'center'},expandBtn:{width:24,height:24,alignItems:'center',justifyContent:'center'},macroCheck:{flex:1},subRow:{paddingLeft:b.SPACING['2xl']}});function k(e){return e.filter}function T(e){return e.toggleCamera}function L(e){return e.toggleClass}function N(e){return e.setClasses}function R(e){return e.setLabel}function A(e){return e.setSortMode}function z(e){return e.id}function G(e){return e.selected}},3396,[15,17,20,112,262,252,147,33,786,813,2587,2589,3388,3168,3169,3170,10]);
15818
15818
  __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,"EventsDisplaySheet",{enumerable:!0,get:function(){return L}});var t=r(d[0]),o=r(d[1]),n=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),c=e(r(d[5])),u=e(r(d[6])),f=e(r(d[7])),h=r(d[8]),S=r(d[9]),p=r(d[10]),b=r(d[11]),v=r(d[12]),y=r(d[13]),x=r(d[14]),C=r(d[15]),w=r(d[16]),I=r(d[17]),j=r(d[18]);const L=(0,o.memo)(function(e){const o=(0,t.c)(104),{visible:f,onClose:L}=e,{colors:A}=(0,b.useTheme)(),{t:N}=(0,S.useTranslation)(),P=(0,h.useSafeAreaInsets)(),{settings:R,setEvents:k}=(0,w.useSettings)();let B;o[0]!==N?(B=I.TILE_LABEL_STYLES.map(e=>({value:e,label:N("v2.settings.tileLabelStyle"+("icon"===e?"Icon":"Text"))})),o[0]=N,o[1]=B):B=o[1];const G=B;let D,E,_,H,V,z,U,F,M,O,W,q,X,Y,J,K,Q,Z,$,ee,te,oe,ne,le,se,re;o[2]!==L?(D=(0,j.jsx)(c.default,{style:T.scrim,onPress:L}),o[2]=L,o[3]=D):D=o[3],o[4]!==A.backgroundElevated?(E=[T.sheet,{backgroundColor:A.backgroundElevated}],o[4]=A.backgroundElevated,o[5]=E):E=o[5],o[6]!==A.foreground?(_=[T.title,{color:A.foreground}],o[6]=A.foreground,o[7]=_):_=o[7],o[8]!==N?(H=N("v2.events.displayTitle"),o[8]=N,o[9]=H):H=o[9],o[10]!==_||o[11]!==H?(V=(0,j.jsx)(s.default,{style:_,children:H}),o[10]=_,o[11]=H,o[12]=V):V=o[12],o[13]!==A.surface?(z=[T.iconBtn,{backgroundColor:A.surface}],o[13]=A.surface,o[14]=z):z=o[14],o[15]!==A.foreground?(U=(0,j.jsx)(p.X,{size:18,color:A.foreground}),o[15]=A.foreground,o[16]=U):U=o[16],o[17]!==L||o[18]!==z||o[19]!==U?(F=(0,j.jsx)(c.default,{onPress:L,hitSlop:10,style:z,children:U}),o[17]=L,o[18]=z,o[19]=U,o[20]=F):F=o[20],o[21]!==V||o[22]!==F?(M=(0,j.jsxs)(l.default,{style:T.header,children:[V,F]}),o[21]=V,o[22]=F,o[23]=M):M=o[23],o[24]!==N?(O=N("v2.settings.eventsPage"),o[24]=N,o[25]=O):O=o[25],o[26]!==N?(W=N("v2.settings.tileShowLabels"),o[26]=N,o[27]=W):W=o[27],o[28]!==N?(q=N("v2.settings.tileShowLabelsHint"),o[28]=N,o[29]=q):q=o[29],o[30]!==k?(X=e=>k("tileShowLabels",e),o[30]=k,o[31]=X):X=o[31],o[32]!==R.events.tileShowLabels||o[33]!==W||o[34]!==q||o[35]!==X?(Y=(0,j.jsx)(x.ToggleRow,{label:W,description:q,value:R.events.tileShowLabels,onValueChange:X}),o[32]=R.events.tileShowLabels,o[33]=W,o[34]=q,o[35]=X,o[36]=Y):Y=o[36],o[37]!==N?(J=N("v2.settings.tileShowImportance"),o[37]=N,o[38]=J):J=o[38],o[39]!==N?(K=N("v2.settings.tileShowImportanceHint"),o[39]=N,o[40]=K):K=o[40],o[41]!==k?(Q=e=>k("tileShowImportance",e),o[41]=k,o[42]=Q):Q=o[42],o[43]!==R.events.tileShowImportance||o[44]!==J||o[45]!==K||o[46]!==Q?(Z=(0,j.jsx)(x.ToggleRow,{label:J,description:K,value:R.events.tileShowImportance,onValueChange:Q}),o[43]=R.events.tileShowImportance,o[44]=J,o[45]=K,o[46]=Q,o[47]=Z):Z=o[47],o[48]!==N?($=N("v2.settings.tileShowCameraName"),o[48]=N,o[49]=$):$=o[49],o[50]!==N?(ee=N("v2.settings.tileShowCameraNameHint"),o[50]=N,o[51]=ee):ee=o[51],o[52]!==k?(te=e=>k("tileShowCameraName",e),o[52]=k,o[53]=te):te=o[53],o[54]!==R.events.tileShowCameraName||o[55]!==$||o[56]!==ee||o[57]!==te?(oe=(0,j.jsx)(x.ToggleRow,{label:$,description:ee,value:R.events.tileShowCameraName,onValueChange:te}),o[54]=R.events.tileShowCameraName,o[55]=$,o[56]=ee,o[57]=te,o[58]=oe):oe=o[58],o[59]!==N?(ne=N("v2.settings.tileLabelStyle"),o[59]=N,o[60]=ne):ne=o[60],o[61]!==k?(le=e=>k("tileLabelStyle",e),o[61]=k,o[62]=le):le=o[62],o[63]!==G||o[64]!==R.events.tileLabelStyle||o[65]!==ne||o[66]!==le?(se=(0,j.jsx)(C.SegmentBlock,{label:ne,options:G,value:R.events.tileLabelStyle,onChange:le}),o[63]=G,o[64]=R.events.tileLabelStyle,o[65]=ne,o[66]=le,o[67]=se):se=o[67],o[68]!==O||o[69]!==Y||o[70]!==Z||o[71]!==oe||o[72]!==se?(re=(0,j.jsx)(u.default,{contentContainerStyle:T.scroll,children:(0,j.jsxs)(y.Section,{title:O,children:[Y,Z,oe,se]})}),o[68]=O,o[69]=Y,o[70]=Z,o[71]=oe,o[72]=se,o[73]=re):re=o[73];const ae=P.bottom+v.SPACING.md;let ie,de,ce,ue,ge,me,fe,he,Se,pe;return o[74]!==ae?(ie=[T.footer,{paddingBottom:ae}],o[74]=ae,o[75]=ie):ie=o[75],o[76]!==A.primary?(de=[T.footerBtn,{backgroundColor:A.primary}],o[76]=A.primary,o[77]=de):de=o[77],o[78]!==A.primaryForeground?(ce=[T.footerBtnText,{color:A.primaryForeground}],o[78]=A.primaryForeground,o[79]=ce):ce=o[79],o[80]!==N?(ue=N("v2.events.done","Done"),o[80]=N,o[81]=ue):ue=o[81],o[82]!==ce||o[83]!==ue?(ge=(0,j.jsx)(s.default,{style:ce,children:ue}),o[82]=ce,o[83]=ue,o[84]=ge):ge=o[84],o[85]!==L||o[86]!==de||o[87]!==ge?(me=(0,j.jsx)(c.default,{onPress:L,style:de,children:ge}),o[85]=L,o[86]=de,o[87]=ge,o[88]=me):me=o[88],o[89]!==ie||o[90]!==me?(fe=(0,j.jsx)(l.default,{style:ie,children:me}),o[89]=ie,o[90]=me,o[91]=fe):fe=o[91],o[92]!==M||o[93]!==re||o[94]!==E||o[95]!==fe?(he=(0,j.jsxs)(l.default,{style:E,children:[M,re,fe]}),o[92]=M,o[93]=re,o[94]=E,o[95]=fe,o[96]=he):he=o[96],o[97]!==D||o[98]!==he?(Se=(0,j.jsxs)(l.default,{style:T.backdrop,children:[D,he]}),o[97]=D,o[98]=he,o[99]=Se):Se=o[99],o[100]!==L||o[101]!==Se||o[102]!==f?(pe=(0,j.jsx)(n.default,{visible:f,animationType:"slide",transparent:!0,onRequestClose:L,children:Se}),o[100]=L,o[101]=Se,o[102]=f,o[103]=pe):pe=o[103],pe}),T=f.default.create({backdrop:{flex:1,justifyContent:'flex-end'},scrim:{position:'absolute',top:0,left:0,right:0,bottom:0,backgroundColor:'rgba(0,0,0,0.5)'},sheet:{maxHeight:'85%',borderTopLeftRadius:v.RADIUS.xl,borderTopRightRadius:v.RADIUS.xl,paddingHorizontal:v.SPACING.md,paddingTop:v.SPACING.md},header:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingBottom:v.SPACING.sm},title:{fontSize:18,fontWeight:'700'},iconBtn:{width:32,height:32,borderRadius:v.RADIUS.md,alignItems:'center',justifyContent:'center'},scroll:{gap:v.SPACING.xl,paddingVertical:v.SPACING.sm},footer:{flexDirection:'row',gap:v.SPACING.sm,paddingTop:v.SPACING.sm},footerBtn:{flex:1,alignItems:'center',paddingVertical:v.SPACING.md,borderRadius:v.RADIUS.md},footerBtnText:{fontSize:15,fontWeight:'700'}})},3397,[15,17,245,20,112,252,147,33,466,786,813,2587,2589,3173,3174,3175,3177,3140,10]);
15819
15819
  __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,"SemanticSearchBar",{enumerable:!0,get:function(){return p}});var o=r(d[0]),t=r(d[1]),n=e(r(d[2])),u=e(r(d[3])),l=e(r(d[4])),c=e(r(d[5])),s=r(d[6]),f=r(d[7]),h=r(d[8]),b=r(d[9]),S=r(d[10]);const p=(0,t.memo)(function(e){const t=(0,o.c)(24),{value:c,onChange:b}=e,{colors:p}=(0,h.useTheme)(),{t:x}=(0,f.useTranslation)();let P,M,j,y,I,v,z;return t[0]!==p.border||t[1]!==p.surface?(P=[C.bar,{backgroundColor:p.surface,borderColor:p.border}],t[0]=p.border,t[1]=p.surface,t[2]=P):P=t[2],t[3]!==p.foregroundMuted?(M=(0,S.jsx)(s.Search,{size:16,color:p.foregroundMuted}),t[3]=p.foregroundMuted,t[4]=M):M=t[4],t[5]!==x?(j=x("v2.tracks.searchPlaceholder","Search events (e.g. \"person in red\")"),t[5]=x,t[6]=j):j=t[6],t[7]!==p.foreground?(y=[C.input,{color:p.foreground}],t[7]=p.foreground,t[8]=y):y=t[8],t[9]!==p.foregroundSubtle||t[10]!==b||t[11]!==j||t[12]!==y||t[13]!==c?(I=(0,S.jsx)(u.default,{value:c,onChangeText:b,placeholder:j,placeholderTextColor:p.foregroundSubtle,style:y,returnKeyType:"search",autoCapitalize:"none",autoCorrect:!1}),t[9]=p.foregroundSubtle,t[10]=b,t[11]=j,t[12]=y,t[13]=c,t[14]=I):I=t[14],t[15]!==p.foregroundMuted||t[16]!==b||t[17]!==c.length?(v=c.length>0?(0,S.jsx)(l.default,{onPress:()=>b(""),hitSlop:8,accessibilityRole:"button",children:(0,S.jsx)(s.X,{size:16,color:p.foregroundMuted})}):null,t[15]=p.foregroundMuted,t[16]=b,t[17]=c.length,t[18]=v):v=t[18],t[19]!==P||t[20]!==M||t[21]!==I||t[22]!==v?(z=(0,S.jsxs)(n.default,{style:P,children:[M,I,v]}),t[19]=P,t[20]=M,t[21]=I,t[22]=v,t[23]=z):z=t[23],z}),C=c.default.create({bar:{flexDirection:'row',alignItems:'center',gap:b.SPACING.sm,paddingHorizontal:b.SPACING.md,paddingVertical:b.SPACING.sm,borderRadius:b.RADIUS.md,borderWidth:1,marginHorizontal:b.SPACING.md,marginBottom:b.SPACING.sm},input:{flex:1,fontSize:15,paddingVertical:2}})},3398,[15,17,20,262,252,33,813,786,2587,2589,10]);
15820
- __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,"SemanticSearchResults",{enumerable:!0,get:function(){return C}});var t=_r(d[0]),r=_r(d[1]),o=e(_r(d[2])),n=e(_r(d[3])),s=e(_r(d[4])),l=e(_r(d[5])),c=e(_r(d[6])),i=_r(d[7]),u=_r(d[8]),f=_r(d[9]),h=_r(d[10]),p=_r(d[11]),y=_r(d[12]),x=_r(d[13]),b=_r(d[14]),j=_r(d[15]),N=_r(d[16]);const I=h.SPACING.md,S=(0,r.memo)(function(e){const r=(0,t.c)(45),{result:l,cameraName:c,resolver:i,onPress:u}=e,{colors:h}=(0,f.useTheme)(),x=(0,p.colorForEventType)(l.className);let b;r[0]!==i||r[1]!==l.className||r[2]!==l.label?(b=l.label??i.resolveLabel(l.className),r[0]=i,r[1]=l.className,r[2]=l.label,r[3]=b):b=r[3];const j=b;let I,S,C,P,M,T,k,A;r[4]!==u||r[5]!==l?(I=()=>u(l),r[4]=u,r[5]=l,r[6]=I):I=r[6],r[7]!==h.surface?(S=[v.card,{backgroundColor:h.surface}],r[7]=h.surface,r[8]=S):S=r[8],r[9]!==l.className||r[10]!==l.thumbId?(C=(0,N.jsx)(y.TrackCropImage,{eventId:l.thumbId,className:l.className}),r[9]=l.className,r[10]=l.thumbId,r[11]=C):C=r[11],r[12]!==h.primary?(P=[v.score,{backgroundColor:h.primary}],r[12]=h.primary,r[13]=P):P=r[13],r[14]!==h.primaryForeground?(M=[v.scoreText,{color:h.primaryForeground}],r[14]=h.primaryForeground,r[15]=M):M=r[15],r[16]!==l.score?(T=Math.round(100*l.score),r[16]=l.score,r[17]=T):T=r[17],r[18]!==M||r[19]!==T?(k=(0,N.jsxs)(n.default,{style:M,children:[T,"%"]}),r[18]=M,r[19]=T,r[20]=k):k=r[20],r[21]!==P||r[22]!==k?(A=(0,N.jsx)(o.default,{style:P,children:k}),r[21]=P,r[22]=k,r[23]=A):A=r[23];const G=x+"E6";let R,_,z,F,E,V,W;return r[24]!==G?(R=[v.caption,{backgroundColor:G}],r[24]=G,r[25]=R):R=r[25],r[26]!==j?(_=(0,N.jsx)(n.default,{numberOfLines:1,style:v.captionText,children:j}),r[26]=j,r[27]=_):_=r[27],r[28]!==R||r[29]!==_?(z=(0,N.jsx)(o.default,{style:v.captionWrap,pointerEvents:"none",children:(0,N.jsx)(o.default,{style:R,children:_})}),r[28]=R,r[29]=_,r[30]=z):z=r[30],r[31]!==z||r[32]!==C||r[33]!==A?(F=(0,N.jsxs)(o.default,{style:v.hero,children:[C,A,z]}),r[31]=z,r[32]=C,r[33]=A,r[34]=F):F=r[34],r[35]!==h.foregroundMuted?(E=[v.camera,{color:h.foregroundMuted}],r[35]=h.foregroundMuted,r[36]=E):E=r[36],r[37]!==c||r[38]!==E?(V=(0,N.jsx)(n.default,{numberOfLines:1,style:E,children:c}),r[37]=c,r[38]=E,r[39]=V):V=r[39],r[40]!==F||r[41]!==V||r[42]!==I||r[43]!==S?(W=(0,N.jsxs)(s.default,{onPress:I,style:S,children:[F,V]}),r[40]=F,r[41]=V,r[42]=I,r[43]=S,r[44]=W):W=r[44],W}),C=(0,r.memo)(function(e){const s=(0,t.c)(27),{results:c,loading:h,columns:p,cameraName:y}=e,{colors:I}=(0,f.useTheme)(),{t:C}=(0,u.useTranslation)(),[M,T]=(0,r.useState)(null),k=(0,b.useEventKindResolver)();let A;s[0]!==y?(A=e=>T((0,j.scoredToTrackSummary)(e,y(e.deviceId))),s[0]=y,s[1]=A):A=s[1];const G=A;let R;s[2]!==y||s[3]!==G||s[4]!==k?(R=e=>{const{item:t}=e;return(0,N.jsx)(o.default,{style:v.cell,children:(0,N.jsx)(S,{result:t,cameraName:y(t.deviceId),resolver:k,onPress:G})})},s[2]=y,s[3]=G,s[4]=k,s[5]=R):R=s[5];const _=R,z=P;if(h&&0===c.length){let e;return s[6]!==I.primary?(e=(0,N.jsx)(o.default,{style:v.state,children:(0,N.jsx)(l.default,{color:I.primary})}),s[6]=I.primary,s[7]=e):e=s[7],e}if(0===c.length){let e,t,r;return s[8]!==I.foregroundMuted?(e={color:I.foregroundMuted},s[8]=I.foregroundMuted,s[9]=e):e=s[9],s[10]!==C?(t=C("v2.tracks.noMatches","No matching events"),s[10]=C,s[11]=t):t=s[11],s[12]!==e||s[13]!==t?(r=(0,N.jsx)(o.default,{style:v.state,children:(0,N.jsx)(n.default,{style:e,children:t})}),s[12]=e,s[13]=t,s[14]=r):r=s[14],r}const F=`scols-${p}`,E=c,V=Math.max(1,p),W=p>1;let L,O,D,H;return s[15]!==_||s[16]!==F||s[17]!==E||s[18]!==V||s[19]!==W?(L=(0,N.jsx)(i.FlashList,{data:E,keyExtractor:z,renderItem:_,numColumns:V,masonry:W,contentContainerStyle:v.content},F),s[15]=_,s[16]=F,s[17]=E,s[18]=V,s[19]=W,s[20]=L):L=s[20],s[21]===Symbol.for("react.memo_cache_sentinel")?(O=()=>T(null),s[21]=O):O=s[21],s[22]!==M?(D=(0,N.jsx)(x.TrackDetailModal,{track:M,onClose:O}),s[22]=M,s[23]=D):D=s[23],s[24]!==L||s[25]!==D?(H=(0,N.jsxs)(N.Fragment,{children:[L,D]}),s[24]=L,s[25]=D,s[26]=H):H=s[26],H}),v=c.default.create({state:{flex:1,alignItems:'center',justifyContent:'center',paddingVertical:h.SPACING['2xl']},content:{padding:I/2},cell:{flex:1,padding:I/2},card:{borderRadius:h.RADIUS.md,overflow:'hidden'},hero:{width:'100%',aspectRatio:1,backgroundColor:'rgba(0,0,0,0.3)'},score:{position:'absolute',top:h.SPACING.sm,right:h.SPACING.sm,paddingHorizontal:6,paddingVertical:1,borderRadius:8},scoreText:{fontSize:10,fontWeight:'700',fontVariant:['tabular-nums']},captionWrap:{position:'absolute',left:h.SPACING.sm,bottom:h.SPACING.sm,maxWidth:'80%'},caption:{paddingHorizontal:6,paddingVertical:2,borderRadius:h.RADIUS.sm},captionText:{color:'#fff',fontSize:11,fontWeight:'700'},camera:{fontSize:11,paddingHorizontal:h.SPACING.sm,paddingVertical:h.SPACING.xs}});function P(e,t){return`${e.id}:${t}`}},3399,[15,17,20,112,252,240,33,3179,786,2587,2589,3231,3233,3237,3167,3381,10]);
15820
+ __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,"SemanticSearchResults",{enumerable:!0,get:function(){return C}});var t=_r(d[0]),r=_r(d[1]),o=e(_r(d[2])),n=e(_r(d[3])),s=e(_r(d[4])),l=e(_r(d[5])),c=e(_r(d[6])),i=_r(d[7]),u=_r(d[8]),f=_r(d[9]),h=_r(d[10]),p=_r(d[11]),y=_r(d[12]),x=_r(d[13]),b=_r(d[14]),j=_r(d[15]),N=_r(d[16]);const I=h.SPACING.md,S=(0,r.memo)(function(e){const r=(0,t.c)(45),{result:l,cameraName:c,resolver:i,onPress:u}=e,{colors:h}=(0,f.useTheme)(),x=(0,p.colorForEventType)(l.className);let b;r[0]!==i||r[1]!==l.className||r[2]!==l.label?(b=l.label??i.resolveLabel(l.className),r[0]=i,r[1]=l.className,r[2]=l.label,r[3]=b):b=r[3];const j=b;let I,S,C,P,M,T,k,A;r[4]!==u||r[5]!==l?(I=()=>u(l),r[4]=u,r[5]=l,r[6]=I):I=r[6],r[7]!==h.surface?(S=[v.card,{backgroundColor:h.surface}],r[7]=h.surface,r[8]=S):S=r[8],r[9]!==l.className||r[10]!==l.thumbId?(C=(0,N.jsx)(y.TrackCropImage,{eventId:l.thumbId,className:l.className}),r[9]=l.className,r[10]=l.thumbId,r[11]=C):C=r[11],r[12]!==h.primary?(P=[v.score,{backgroundColor:h.primary}],r[12]=h.primary,r[13]=P):P=r[13],r[14]!==h.primaryForeground?(M=[v.scoreText,{color:h.primaryForeground}],r[14]=h.primaryForeground,r[15]=M):M=r[15],r[16]!==l.score?(T=Math.round(100*l.score),r[16]=l.score,r[17]=T):T=r[17],r[18]!==M||r[19]!==T?(k=(0,N.jsxs)(n.default,{style:M,children:[T,"%"]}),r[18]=M,r[19]=T,r[20]=k):k=r[20],r[21]!==P||r[22]!==k?(A=(0,N.jsx)(o.default,{style:P,children:k}),r[21]=P,r[22]=k,r[23]=A):A=r[23];const G=x+"E6";let R,_,z,F,E,V,W;return r[24]!==G?(R=[v.caption,{backgroundColor:G}],r[24]=G,r[25]=R):R=r[25],r[26]!==j?(_=(0,N.jsx)(n.default,{numberOfLines:1,style:v.captionText,children:j}),r[26]=j,r[27]=_):_=r[27],r[28]!==R||r[29]!==_?(z=(0,N.jsx)(o.default,{style:v.captionWrap,pointerEvents:"none",children:(0,N.jsx)(o.default,{style:R,children:_})}),r[28]=R,r[29]=_,r[30]=z):z=r[30],r[31]!==z||r[32]!==C||r[33]!==A?(F=(0,N.jsxs)(o.default,{style:v.hero,children:[C,A,z]}),r[31]=z,r[32]=C,r[33]=A,r[34]=F):F=r[34],r[35]!==h.foregroundMuted?(E=[v.camera,{color:h.foregroundMuted}],r[35]=h.foregroundMuted,r[36]=E):E=r[36],r[37]!==c||r[38]!==E?(V=(0,N.jsx)(n.default,{numberOfLines:1,style:E,children:c}),r[37]=c,r[38]=E,r[39]=V):V=r[39],r[40]!==F||r[41]!==V||r[42]!==I||r[43]!==S?(W=(0,N.jsxs)(s.default,{onPress:I,style:S,children:[F,V]}),r[40]=F,r[41]=V,r[42]=I,r[43]=S,r[44]=W):W=r[44],W}),C=(0,r.memo)(function(e){const s=(0,t.c)(27),{results:c,loading:h,columns:p,cameraName:y}=e,{colors:I}=(0,f.useTheme)(),{t:C}=(0,u.useTranslation)(),[M,T]=(0,r.useState)(null),k=(0,b.useEventKindResolver)();let A;s[0]!==y?(A=e=>T((0,j.scoredToTrackSummary)(e,y(e.deviceId))),s[0]=y,s[1]=A):A=s[1];const G=A;let R;s[2]!==y||s[3]!==G||s[4]!==k?(R=e=>{const{item:t}=e;return(0,N.jsx)(o.default,{style:v.cell,children:(0,N.jsx)(S,{result:t,cameraName:y(t.deviceId),resolver:k,onPress:G})})},s[2]=y,s[3]=G,s[4]=k,s[5]=R):R=s[5];const _=R,z=P;if(h&&0===c.length){let e;return s[6]!==I.primary?(e=(0,N.jsx)(o.default,{style:v.state,children:(0,N.jsx)(l.default,{color:I.primary})}),s[6]=I.primary,s[7]=e):e=s[7],e}if(0===c.length){let e,t,r;return s[8]!==I.foregroundMuted?(e={color:I.foregroundMuted},s[8]=I.foregroundMuted,s[9]=e):e=s[9],s[10]!==C?(t=C("v2.tracks.noMatches","No matching events"),s[10]=C,s[11]=t):t=s[11],s[12]!==e||s[13]!==t?(r=(0,N.jsx)(o.default,{style:v.state,children:(0,N.jsx)(n.default,{style:e,children:t})}),s[12]=e,s[13]=t,s[14]=r):r=s[14],r}const F=`scols-${p}`,E=c,V=Math.max(1,p),W=p>1;let L,O,D,H;return s[15]!==_||s[16]!==F||s[17]!==E||s[18]!==V||s[19]!==W?(L=(0,N.jsx)(i.FlashList,{data:E,keyExtractor:z,renderItem:_,numColumns:V,masonry:W,contentContainerStyle:v.content},F),s[15]=_,s[16]=F,s[17]=E,s[18]=V,s[19]=W,s[20]=L):L=s[20],s[21]===Symbol.for("react.memo_cache_sentinel")?(O=()=>T(null),s[21]=O):O=s[21],s[22]!==M?(D=(0,N.jsx)(x.TrackDetailModal,{track:M,onClose:O}),s[22]=M,s[23]=D):D=s[23],s[24]!==L||s[25]!==D?(H=(0,N.jsxs)(N.Fragment,{children:[L,D]}),s[24]=L,s[25]=D,s[26]=H):H=s[26],H}),v=c.default.create({state:{flex:1,alignItems:'center',justifyContent:'center',paddingVertical:h.SPACING['2xl']},content:{padding:I/2},cell:{flex:1,padding:I/2},card:{borderRadius:h.RADIUS.md,overflow:'hidden'},hero:{width:'100%',aspectRatio:1,backgroundColor:'rgba(0,0,0,0.3)'},score:{position:'absolute',top:h.SPACING.sm,right:h.SPACING.sm,paddingHorizontal:6,paddingVertical:1,borderRadius:8},scoreText:{fontSize:10,fontWeight:'700',fontVariant:['tabular-nums']},captionWrap:{position:'absolute',left:h.SPACING.sm,bottom:h.SPACING.sm,maxWidth:'80%'},caption:{paddingHorizontal:6,paddingVertical:2,borderRadius:h.RADIUS.sm},captionText:{color:'#fff',fontSize:11,fontWeight:'700'},camera:{fontSize:11,paddingHorizontal:h.SPACING.sm,paddingVertical:h.SPACING.xs}});function P(e,t){return`${e.id}:${t}`}},3399,[15,17,20,112,252,240,33,3179,786,2587,2589,3231,3233,3238,3167,3237,10]);
15821
15821
  __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,"TracksGallery",{enumerable:!0,get:function(){return y}});var t=r(d[0]),n=r(d[1]),o=e(r(d[2])),l=e(r(d[3])),c=r(d[4]),s=r(d[5]),i=r(d[6]),u=r(d[7]),f=r(d[8]),h=r(d[9]);const x=s.SPACING.md,y=(0,n.memo)(function(e){const n=(0,t.c)(16),{tracks:l,columns:s,onSelect:u,onEndReached:x,isFetchingNextPage:y,selectedTrackId:R,header:p}=e,C=(0,f.useEventKindResolver)();let T;n[0]!==u||n[1]!==C||n[2]!==R?(T=e=>{const{item:t}=e;return(0,h.jsx)(o.default,{style:j.cell,children:(0,h.jsx)(i.TrackCard,{track:t,variant:"tile",selected:R===t.trackId,resolver:C,onPress:u})})},n[0]=u,n[1]=C,n[2]=R,n[3]=T):T=n[3];const _=T;let E;n[4]!==s||n[5]!==y?(E=y?(0,h.jsx)(o.default,{style:j.footerRow,children:Array.from({length:Math.max(1,s)},k)}):null,n[4]=s,n[5]=y,n[6]=E):E=n[6];const I=E,P=`tcols-${s}`,b=l,w=Math.max(1,s),M=s>1,S=p??void 0;let F;return n[7]!==I||n[8]!==x||n[9]!==_||n[10]!==P||n[11]!==b||n[12]!==w||n[13]!==M||n[14]!==S?(F=(0,h.jsx)(c.FlashList,{data:b,keyExtractor:v,renderItem:_,numColumns:w,masonry:M,onEndReached:x,onEndReachedThreshold:.6,ListHeaderComponent:S,ListFooterComponent:I,contentContainerStyle:j.content},P),n[7]=I,n[8]=x,n[9]=_,n[10]=P,n[11]=b,n[12]=w,n[13]=M,n[14]=S,n[15]=F):F=n[15],F}),j=l.default.create({content:{padding:x/2},cell:{flex:1,padding:x/2},footerRow:{flexDirection:'row'},footerTile:{aspectRatio:1,borderRadius:6,overflow:'hidden'}});function k(e,t){return(0,h.jsx)(o.default,{style:j.cell,children:(0,h.jsx)(o.default,{style:j.footerTile,children:(0,h.jsx)(u.SkeletonBox,{})})},t)}function v(e){return e.trackId}},3400,[15,17,20,33,3179,2589,3230,3151,3167,10]);
15822
15822
  __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 o}});var t=r(d[0]),n=r(d[1]),c=r(d[2]);function o(){const o=(0,t.c)(1);let u;return o[0]===Symbol.for("react.memo_cache_sentinel")?(u=(0,c.jsx)(n.GridsScreen,{}),o[0]=u):u=o[0],u}},3401,[15,3402,10]);
15823
15823
  __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}),_e.GridsScreen=function(){const e=(0,o.c)(72),{t:c}=(0,b.useTranslation)(),{colors:g}=(0,p.useTheme)(),v=(0,h.useRouter)(),k=(0,f.useSafeAreaInsets)(),{server:W}=(0,j.useServer)(),E=W?.serverUrl??null,F=(0,S.useGridStore)(T),O=(0,S.useGridStore)(D),B=(0,S.useGridStore)(H),V=(0,S.useGridStore)(z),{data:q}=(0,I.useCameras)();let $;e[0]!==q?($=void 0===q?[]:q,e[0]=q,e[1]=$):$=e[1];const J=$;let K;e[2]!==J?(K=new Map(J.map(w)),e[2]=J,e[3]=K):K=e[3];const Q=K,X=Math.min(R,(0,P.useGridColumns)()),[Y,Z]=(0,t.useState)(null),[ee,re]=(0,t.useState)(null),[oe,te]=(0,t.useState)(null);let de,ne,le;e[4]!==O?(de=()=>{O()},ne=[O],e[4]=O,e[5]=de,e[6]=ne):(de=e[5],ne=e[6]);(0,t.useEffect)(de,ne),e[7]!==v?(le=e=>{te(e)},e[7]=v,e[8]=le):le=e[8];const se=le;let ie;e[9]!==B||e[10]!==se||e[11]!==c?(ie=()=>{const e=B("",c("v2.grids.defaultName"));se(e)},e[9]=B,e[10]=se,e[11]=c,e[12]=ie):ie=e[12];const ae=ie;let ue;e[13]!==V||e[14]!==Y?(ue=()=>{Y&&V(Y.id),Z(null)},e[13]=V,e[14]=Y,e[15]=ue):ue=e[15];const ce=ue;let fe;e[16]!==E?(fe=e=>{E&&re(e)},e[16]=E,e[17]=fe):fe=e[17];const ge=fe;let me;if(e[18]!==X||e[19]!==F){if(me=F.map(M),X>1){const e=me.length%X;if(e>0)for(let o=0;o<X-e;o++)me.push({kind:"pad",id:`pad-${o}`})}e[18]=X,e[19]=F,e[20]=me}else me=e[20];const be=me;let he,ye,pe,xe,Se,Ce,je,Ie,ve,Pe,Ae,Ge;e[21]!==g.background||e[22]!==k.top?(he={flex:1,backgroundColor:g.background,paddingTop:k.top},e[21]=g.background,e[22]=k.top,e[23]=he):he=e[23];e[24]!==Q||e[25]!==be||e[26]!==g.foregroundMuted||e[27]!==g.foregroundSubtle||e[28]!==g.primary||e[29]!==g.primaryForeground||e[30]!==g.surfaceHover||e[31]!==X||e[32]!==F.length||e[33]!==ae||e[34]!==k.bottom||e[35]!==se||e[36]!==v||e[37]!==E||e[38]!==ge||e[39]!==c?(ye=0===F.length?(0,G.jsxs)(n.default,{style:U.empty,children:[(0,G.jsx)(y.LayoutGrid,{size:40,color:g.foregroundSubtle}),(0,G.jsx)(l.default,{style:{color:g.foregroundMuted,fontSize:15},children:c("v2.grids.empty")}),(0,G.jsx)(l.default,{style:{color:g.foregroundSubtle,fontSize:12,textAlign:"center"},children:c("v2.grids.emptyHint")}),(0,G.jsxs)(i.default,{onPress:ae,accessibilityRole:"button",accessibilityLabel:c("v2.grids.createA11y"),style:e=>{const{pressed:o}=e;return{flexDirection:"row",alignItems:"center",gap:x.SPACING.sm,marginTop:x.SPACING.md,paddingVertical:x.SPACING.md,paddingHorizontal:x.SPACING.xl,borderRadius:x.RADIUS.md,backgroundColor:o?g.surfaceHover:g.primary}},children:[(0,G.jsx)(y.Plus,{size:18,color:g.primaryForeground}),(0,G.jsx)(l.default,{style:{color:g.primaryForeground,fontSize:15,fontWeight:"600"},children:c("v2.common.create")})]})]}):(0,G.jsx)(s.default,{data:be,numColumns:X,keyExtractor:N,columnWrapperStyle:X>1?{gap:x.SPACING.md}:void 0,contentContainerStyle:{padding:x.SPACING.md,paddingBottom:k.bottom+88,gap:x.SPACING.md},renderItem:e=>{const{item:o}=e;return"pad"===o.kind?(0,G.jsx)(n.default,{style:{flex:1}}):(0,G.jsx)(_,{grid:o.grid,camerasById:Q,onPress:()=>v.push(`/grid/${o.grid.id}`),onShare:()=>ge(o.grid),onEdit:()=>se(o.grid.id),onDelete:()=>Z(o.grid),canShare:null!==E})}},X),e[24]=Q,e[25]=be,e[26]=g.foregroundMuted,e[27]=g.foregroundSubtle,e[28]=g.primary,e[29]=g.primaryForeground,e[30]=g.surfaceHover,e[31]=X,e[32]=F.length,e[33]=ae,e[34]=k.bottom,e[35]=se,e[36]=v,e[37]=E,e[38]=ge,e[39]=c,e[40]=ye):ye=e[40];e[41]!==c?(pe=c("v2.grids.createA11y"),e[41]=c,e[42]=pe):pe=e[42];e[43]!==g.primary||e[44]!==g.surfaceHover||e[45]!==k.bottom?(xe=e=>{const{pressed:o}=e;return[U.fab,{bottom:k.bottom+x.SPACING.lg,backgroundColor:o?g.surfaceHover:g.primary,shadowColor:"#000"}]},e[43]=g.primary,e[44]=g.surfaceHover,e[45]=k.bottom,e[46]=xe):xe=e[46];e[47]!==g.primaryForeground?(Se=(0,G.jsx)(y.Plus,{size:26,color:g.primaryForeground}),e[47]=g.primaryForeground,e[48]=Se):Se=e[48];e[49]!==ae||e[50]!==pe||e[51]!==xe||e[52]!==Se?(Ce=(0,G.jsx)(i.default,{onPress:ae,accessibilityRole:"button",accessibilityLabel:pe,style:xe,hitSlop:8,children:Se}),e[49]=ae,e[50]=pe,e[51]=xe,e[52]=Se,e[53]=Ce):Ce=e[53];e[54]===Symbol.for("react.memo_cache_sentinel")?(je=()=>Z(null),e[54]=je):je=e[54];e[55]!==ce||e[56]!==Y?(Ie=(0,G.jsx)(L,{grid:Y,onCancel:je,onConfirm:ce}),e[55]=ce,e[56]=Y,e[57]=Ie):Ie=e[57];e[58]===Symbol.for("react.memo_cache_sentinel")?(ve=()=>re(null),e[58]=ve):ve=e[58];e[59]!==ee?(Pe=(0,G.jsx)(C.GridShareDialog,{grid:ee,onClose:ve}),e[59]=ee,e[60]=Pe):Pe=e[60];e[61]!==oe||e[62]!==g.background||e[63]!==g.border?(Ae=oe?(0,G.jsx)(u.default,{visible:!0,transparent:!0,animationType:"fade",onRequestClose:()=>te(null),children:(0,G.jsx)(n.default,{style:U.builderBackdrop,children:(0,G.jsx)(n.default,{style:[U.builderCard,{backgroundColor:g.background,borderColor:g.border}],children:(0,G.jsx)(A.GridBuilderScreen,{gridId:oe,onClose:()=>te(null)})})})}):null,e[61]=oe,e[62]=g.background,e[63]=g.border,e[64]=Ae):Ae=e[64];e[65]!==ye||e[66]!==Ce||e[67]!==Ie||e[68]!==Pe||e[69]!==Ae||e[70]!==he?(Ge=(0,G.jsxs)(n.default,{style:he,children:[ye,Ce,Ie,Pe,Ae]}),e[65]=ye,e[66]=Ce,e[67]=Ie,e[68]=Pe,e[69]=Ae,e[70]=he,e[71]=Ge):Ge=e[71];return Ge};var o=r(d[0]),t=r(d[1]),n=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),i=e(r(d[5])),u=e(r(d[6])),c=e(r(d[7]));r(d[8]);var f=r(d[9]),g=r(d[10]),b=r(d[11]),h=r(d[12]),y=r(d[13]),p=r(d[14]),x=r(d[15]),S=r(d[16]),C=r(d[17]),j=r(d[18]),I=r(d[19]),v=r(d[20]),P=r(d[21]),A=r(d[22]),G=r(d[23]);const k=4,R=3;function N(e){return"grid"===e.kind?e.grid.id:e.id}function M(e){return{kind:"grid",grid:e}}function w(e){return[e.id,e]}function z(e){return e.deleteGrid}function H(e){return e.createGrid}function D(e){return e.hydrate}function T(e){return e.grids}function _(e){const t=(0,o.c)(84),{grid:s,camerasById:u,onPress:c,onShare:f,onEdit:g,onDelete:h,canShare:x}=e,{t:C}=(0,b.useTranslation)(),{colors:j}=(0,p.useTheme)();let I;if(t[0]!==u||t[1]!==s.cameraIds){I=[];for(const e of s.cameraIds){const o=u.get(e);o&&I.push(o)}t[0]=u,t[1]=s.cameraIds,t[2]=I}else I=t[2];const v=I,P=s.cameraIds.length;let A;t[3]!==P||t[4]!==C?(A=0===P?C("v2.grids.countNone"):1===P?C("v2.grids.countOne"):C("v2.grids.countOther",{count:P}),t[3]=P,t[4]=C,t[5]=A):A=t[5];const R=A;let N;if(t[6]!==s.options||t[7]!==C){const e=(0,S.resolveGridOptions)(s.options).layout;N="auto"===e?C("v2.grids.layoutAuto"):C("v2.grids.layoutColumns",{count:e}),t[6]=s.options,t[7]=C,t[8]=N}else N=t[8];const M=N,w=s.audioOnIds?.length??0;let z;t[9]!==v?(z=v.slice(0,k),t[9]=v,t[10]=z):z=t[10];const H=z,D=v.length-H.length;let T,_,E,L,F,O,B,V,q,$,J,K,Q,X,Y,Z,ee,re,oe,te,de,ne;return t[11]!==j.border||t[12]!==j.surface||t[13]!==j.surfaceHover?(T=e=>{const{pressed:o}=e;return[U.card,{flex:1,backgroundColor:o?j.surfaceHover:j.surface,borderColor:j.border}]},t[11]=j.border,t[12]=j.surface,t[13]=j.surfaceHover,t[14]=T):T=t[14],t[15]!==j.border||t[16]!==j.foreground||t[17]!==j.foregroundSubtle||t[18]!==D||t[19]!==H?(_=(0,G.jsx)(n.default,{style:U.strip,children:0===H.length?(0,G.jsx)(n.default,{style:[U.thumb,U.stripEmpty,{borderColor:j.border}],children:(0,G.jsx)(y.LayoutGrid,{size:22,color:j.foregroundSubtle})}):(0,G.jsxs)(G.Fragment,{children:[H.map(W),D>0?(0,G.jsx)(n.default,{style:[U.thumb,U.overflowTile,{borderColor:j.border}],children:(0,G.jsxs)(l.default,{style:{color:j.foreground,fontSize:15,fontWeight:"700"},children:["+",D]})}):null]})}),t[15]=j.border,t[16]=j.foreground,t[17]=j.foregroundSubtle,t[18]=D,t[19]=H,t[20]=_):_=t[20],t[21]!==j.foreground?(E={flex:1,color:j.foreground,fontSize:16,fontWeight:"600"},t[21]=j.foreground,t[22]=E):E=t[22],t[23]!==s.name||t[24]!==E?(L=(0,G.jsx)(l.default,{style:E,numberOfLines:1,children:s.name}),t[23]=s.name,t[24]=E,t[25]=L):L=t[25],t[26]!==x||t[27]!==j.foreground||t[28]!==f||t[29]!==C?(F=x?(0,G.jsx)(i.default,{onPress:f,hitSlop:8,accessibilityRole:"button",accessibilityLabel:C("v2.grids.shareA11y"),children:(0,G.jsx)(y.Share2,{size:18,color:j.foreground})}):null,t[26]=x,t[27]=j.foreground,t[28]=f,t[29]=C,t[30]=F):F=t[30],t[31]!==C?(O=C("v2.grids.editA11y"),t[31]=C,t[32]=O):O=t[32],t[33]!==j.foreground?(B=(0,G.jsx)(y.Pencil,{size:18,color:j.foreground}),t[33]=j.foreground,t[34]=B):B=t[34],t[35]!==g||t[36]!==B||t[37]!==O?(V=(0,G.jsx)(i.default,{onPress:g,hitSlop:8,accessibilityRole:"button",accessibilityLabel:O,children:B}),t[35]=g,t[36]=B,t[37]=O,t[38]=V):V=t[38],t[39]!==C?(q=C("v2.grids.deleteA11y"),t[39]=C,t[40]=q):q=t[40],t[41]!==j.danger?($=(0,G.jsx)(y.Trash2,{size:18,color:j.danger}),t[41]=j.danger,t[42]=$):$=t[42],t[43]!==h||t[44]!==q||t[45]!==$?(J=(0,G.jsx)(i.default,{onPress:h,hitSlop:8,accessibilityRole:"button",accessibilityLabel:q,children:$}),t[43]=h,t[44]=q,t[45]=$,t[46]=J):J=t[46],t[47]!==V||t[48]!==J||t[49]!==L||t[50]!==F?(K=(0,G.jsxs)(n.default,{style:U.cardHeaderRow,children:[L,F,V,J]}),t[47]=V,t[48]=J,t[49]=L,t[50]=F,t[51]=K):K=t[51],t[52]!==j.foregroundMuted?(Q={color:j.foregroundMuted,fontSize:12},t[52]=j.foregroundMuted,t[53]=Q):Q=t[53],t[54]!==R||t[55]!==Q?(X=(0,G.jsx)(l.default,{style:Q,children:R}),t[54]=R,t[55]=Q,t[56]=X):X=t[56],t[57]!==j.border?(Y=[U.chip,{borderColor:j.border}],t[57]=j.border,t[58]=Y):Y=t[58],t[59]!==j.foregroundMuted?(Z=(0,G.jsx)(y.LayoutGrid,{size:12,color:j.foregroundMuted}),t[59]=j.foregroundMuted,t[60]=Z):Z=t[60],t[61]!==j.foregroundMuted?(ee={color:j.foregroundMuted,fontSize:11},t[61]=j.foregroundMuted,t[62]=ee):ee=t[62],t[63]!==M||t[64]!==ee?(re=(0,G.jsx)(l.default,{style:ee,children:M}),t[63]=M,t[64]=ee,t[65]=re):re=t[65],t[66]!==Y||t[67]!==Z||t[68]!==re?(oe=(0,G.jsxs)(n.default,{style:Y,children:[Z,re]}),t[66]=Y,t[67]=Z,t[68]=re,t[69]=oe):oe=t[69],t[70]!==w||t[71]!==j.border||t[72]!==j.foregroundMuted?(te=w>0?(0,G.jsxs)(n.default,{style:[U.chip,{borderColor:j.border}],children:[(0,G.jsx)(y.Volume2,{size:12,color:j.foregroundMuted}),(0,G.jsx)(l.default,{style:{color:j.foregroundMuted,fontSize:11},children:w})]}):null,t[70]=w,t[71]=j.border,t[72]=j.foregroundMuted,t[73]=te):te=t[73],t[74]!==X||t[75]!==oe||t[76]!==te?(de=(0,G.jsxs)(n.default,{style:U.metaRow,children:[X,oe,te]}),t[74]=X,t[75]=oe,t[76]=te,t[77]=de):de=t[77],t[78]!==c||t[79]!==K||t[80]!==de||t[81]!==T||t[82]!==_?(ne=(0,G.jsxs)(i.default,{onPress:c,accessibilityRole:"button",style:T,children:[_,K,de]}),t[78]=c,t[79]=K,t[80]=de,t[81]=T,t[82]=_,t[83]=ne):ne=t[83],ne}function W(e){return(0,G.jsx)(E,{camera:e},e.id)}function E(e){const t=(0,o.c)(10),{camera:l}=e,{colors:s}=(0,p.useTheme)(),{uri:i,headers:u,onLoad:c,onError:f}=(0,v.useSnapshot)(l.id,l.online);let b,h,y;return t[0]!==s.border?(b=[U.thumb,{borderColor:s.border,backgroundColor:"#000"}],t[0]=s.border,t[1]=b):b=t[1],t[2]!==u||t[3]!==f||t[4]!==c||t[5]!==i?(h=i?(0,G.jsx)(g.Image,{source:u?{uri:i,headers:u}:{uri:i},style:U.thumbImg,contentFit:"cover",cachePolicy:"memory-disk",transition:120,onLoad:c,onError:f}):(0,G.jsx)(n.default,{style:[U.thumbImg,{backgroundColor:"#111"}]}),t[2]=u,t[3]=f,t[4]=c,t[5]=i,t[6]=h):h=t[6],t[7]!==b||t[8]!==h?(y=(0,G.jsx)(n.default,{style:b,children:h}),t[7]=b,t[8]=h,t[9]=y):y=t[9],y}function L(e){const t=(0,o.c)(59),{grid:s,onCancel:c,onConfirm:f}=e,{t:g}=(0,b.useTranslation)(),{colors:h}=(0,p.useTheme)(),y=null!==s;let S,C,j,I,v;t[0]!==h.backgroundElevated||t[1]!==h.border?(S=[U.modalCard,{backgroundColor:h.backgroundElevated,borderColor:h.border}],t[0]=h.backgroundElevated,t[1]=h.border,t[2]=S):S=t[2],t[3]!==h.foreground?(C={color:h.foreground,fontSize:17,fontWeight:"700"},t[3]=h.foreground,t[4]=C):C=t[4],t[5]!==g?(j=g("v2.grids.deleteTitle"),t[5]=g,t[6]=j):j=t[6],t[7]!==C||t[8]!==j?(I=(0,G.jsx)(l.default,{style:C,children:j}),t[7]=C,t[8]=j,t[9]=I):I=t[9],t[10]!==h.foregroundMuted?(v={color:h.foregroundMuted,fontSize:14},t[10]=h.foregroundMuted,t[11]=v):v=t[11];const P=s?.name??"";let A,k,R,N,M,w,z,H,D,T,_,W,E,L,O,B,V;return t[12]!==g||t[13]!==P?(A=g("v2.grids.deleteConfirm",{name:P}),t[12]=g,t[13]=P,t[14]=A):A=t[14],t[15]!==v||t[16]!==A?(k=(0,G.jsx)(l.default,{style:v,children:A}),t[15]=v,t[16]=A,t[17]=k):k=t[17],t[18]===Symbol.for("react.memo_cache_sentinel")?(R={flexDirection:"row",justifyContent:"flex-end",gap:x.SPACING.md},t[18]=R):R=t[18],t[19]!==h.surfaceHover?(N=e=>{const{pressed:o}=e;return{paddingVertical:x.SPACING.md,paddingHorizontal:x.SPACING.xl,borderRadius:x.RADIUS.md,backgroundColor:o?h.surfaceHover:"transparent"}},t[19]=h.surfaceHover,t[20]=N):N=t[20],t[21]!==h.foregroundMuted?(M={color:h.foregroundMuted,fontSize:15},t[21]=h.foregroundMuted,t[22]=M):M=t[22],t[23]!==g?(w=g("common.cancel"),t[23]=g,t[24]=w):w=t[24],t[25]!==M||t[26]!==w?(z=(0,G.jsx)(l.default,{style:M,children:w}),t[25]=M,t[26]=w,t[27]=z):z=t[27],t[28]!==c||t[29]!==N||t[30]!==z?(H=(0,G.jsx)(i.default,{onPress:c,style:N,children:z}),t[28]=c,t[29]=N,t[30]=z,t[31]=H):H=t[31],t[32]!==h.danger||t[33]!==h.surfaceHover?(D=e=>{const{pressed:o}=e;return{paddingVertical:x.SPACING.md,paddingHorizontal:x.SPACING.xl,borderRadius:x.RADIUS.md,backgroundColor:o?h.surfaceHover:h.danger}},t[32]=h.danger,t[33]=h.surfaceHover,t[34]=D):D=t[34],t[35]===Symbol.for("react.memo_cache_sentinel")?(T={color:"#fff",fontSize:15,fontWeight:"600"},t[35]=T):T=t[35],t[36]!==g?(_=g("common.delete"),t[36]=g,t[37]=_):_=t[37],t[38]!==_?(W=(0,G.jsx)(l.default,{style:T,children:_}),t[38]=_,t[39]=W):W=t[39],t[40]!==f||t[41]!==D||t[42]!==W?(E=(0,G.jsx)(i.default,{onPress:f,style:D,children:W}),t[40]=f,t[41]=D,t[42]=W,t[43]=E):E=t[43],t[44]!==H||t[45]!==E?(L=(0,G.jsxs)(n.default,{style:R,children:[H,E]}),t[44]=H,t[45]=E,t[46]=L):L=t[46],t[47]!==S||t[48]!==L||t[49]!==I||t[50]!==k?(O=(0,G.jsxs)(i.default,{style:S,onPress:F,children:[I,k,L]}),t[47]=S,t[48]=L,t[49]=I,t[50]=k,t[51]=O):O=t[51],t[52]!==c||t[53]!==O?(B=(0,G.jsx)(i.default,{style:U.backdrop,onPress:c,children:O}),t[52]=c,t[53]=O,t[54]=B):B=t[54],t[55]!==c||t[56]!==y||t[57]!==B?(V=(0,G.jsx)(u.default,{visible:y,transparent:!0,animationType:"fade",onRequestClose:c,children:B}),t[55]=c,t[56]=y,t[57]=B,t[58]=V):V=t[58],V}function F(){}const U=c.default.create({empty:{flex:1,alignItems:'center',justifyContent:'center',padding:x.SPACING['2xl'],gap:x.SPACING.md},fab:{position:'absolute',right:x.SPACING.lg,width:56,height:56,borderRadius:28,alignItems:'center',justifyContent:'center',shadowOpacity:.35,shadowRadius:8,shadowOffset:{width:0,height:3},elevation:6},card:{borderWidth:1,borderRadius:x.RADIUS.md,padding:x.SPACING.md,gap:x.SPACING.md},strip:{flexDirection:'row',gap:x.SPACING.xs,height:72},thumb:{flex:1,height:'100%',borderRadius:x.RADIUS.sm,borderWidth:1,overflow:'hidden',alignItems:'center',justifyContent:'center'},thumbImg:{width:'100%',height:'100%'},stripEmpty:{backgroundColor:'#0000'},overflowTile:{backgroundColor:'#0006',flex:0,width:56},cardHeaderRow:{flexDirection:'row',alignItems:'center',gap:x.SPACING.lg},metaRow:{flexDirection:'row',alignItems:'center',gap:x.SPACING.sm},chip:{flexDirection:'row',alignItems:'center',gap:4,paddingHorizontal:x.SPACING.sm,paddingVertical:2,borderRadius:x.RADIUS.sm,borderWidth:1},backdrop:{flex:1,backgroundColor:'#0009',alignItems:'center',justifyContent:'center',padding:x.SPACING['2xl']},modalCard:{width:'100%',maxWidth:380,borderWidth:1,borderRadius:x.RADIUS.xl,padding:x.SPACING.xl,gap:x.SPACING.lg},builderBackdrop:{flex:1,backgroundColor:'#0009',alignItems:'center',justifyContent:'center',padding:x.SPACING.xl},builderCard:{width:'100%',maxWidth:960,height:'88%',borderWidth:1,borderRadius:x.RADIUS.xl,overflow:'hidden'}})},3402,[15,17,20,112,138,252,245,33,136,466,3053,786,743,813,2587,2589,3139,3403,3144,3080,3143,2590,3411,10]);
@@ -15846,7 +15846,7 @@ __d(function(g,r,i,a,m,e,d){"use strict";var A,I;Object.defineProperty(e,'__esMo
15846
15846
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.clearAppCache=async function(e){try{e.clear()}catch(e){console.error('[clear-cache] react-query clear failed',e)}try{await l.Image.clearMemoryCache(),await l.Image.clearDiskCache()}catch(e){console.error('[clear-cache] image cache clear failed',e)}try{const e=(await t.default.getAllKeys()).filter(e=>o.some(c=>e.startsWith(c)));e.length>0&&await t.default.multiRemove(e)}catch(e){console.error('[clear-cache] AsyncStorage cache clear failed',e)}};var e,c=r(d[0]),t=(e=c)&&e.__esModule?e:{default:e},l=r(d[1]);const o=['@camstack/v2/cache/','@camstack/v2/snapshot/']},3425,[3133,3053]);
15847
15847
  __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 l}});var n=r(d[0]);r(d[1]);var t=r(d[2]),o=r(d[3]),c=r(d[4]),s=r(d[5]);function l(){const l=(0,n.c)(13),{server:u,token:f,initialCandidates:v,onEndpointsDiscovered:h,clearToken:_,persistToken:k}=(0,o.useServer)(),p=u?.serverUrl;let b;l[0]!==v||l[1]!==h||l[2]!==p||l[3]!==f?(b=p?{serverUrl:p,token:f??void 0,candidates:v.length>0?[...v]:[p],onEndpointsDiscovered:h}:null,l[0]=v,l[1]=h,l[2]=p,l[3]=f,l[4]=b):b=l[4];const j=b;if(!u||!f||!j){let n;return l[5]===Symbol.for("react.memo_cache_sentinel")?(n=(0,s.jsx)(t.Redirect,{href:"/"}),l[5]=n):n=l[5],n}let S,y,x;return l[6]!==_?(S=()=>{_()},l[6]=_,l[7]=S):S=l[7],l[8]===Symbol.for("react.memo_cache_sentinel")?(y=(0,s.jsx)(t.Stack,{screenOptions:{headerShown:!1}}),l[8]=y):y=l[8],l[9]!==j||l[10]!==k||l[11]!==S?(x=(0,s.jsx)(c.ConnectionProvider,{config:j,onUnauthorized:S,onTokenRefreshed:k,children:y}),l[9]=j,l[10]=k,l[11]=S,l[12]=x):x=l[12],x}},3426,[15,17,743,3144,2594,10]);
15848
15848
  __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 l}});var t=r(d[0]),n=r(d[1]),u=r(d[2]),c=r(d[3]);function l(){const l=(0,t.c)(5),{id:o,at:s}=(0,n.useLocalSearchParams)(),b=Number(o),f=void 0!==s?Number(s):Number.NaN;if(!Number.isFinite(b))return null;let N,v;return l[0]!==f?(N=Number.isFinite(f)&&f>0?f:void 0,l[0]=f,l[1]=N):N=l[1],l[2]!==b||l[3]!==N?(v=(0,c.jsx)(u.CameraDetailScreen,{deviceId:b,initialSeekMs:N},b),l[2]=b,l[3]=N,l[4]=v):v=l[4],v}},3427,[15,743,3428,10]);
15849
- __d(function(g,r,i,a,_m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}function t(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t.default=e,t}Object.defineProperty(_e,'__esModule',{value:!0}),_e.CameraDetailScreen=function({deviceId:e,initialSeekMs:t}){const{t:o}=(0,h.useTranslation)(),T=(0,_.useRouter)(),{colors:X,mode:We}=(0,O.useTheme)(),Be=(0,m.useSafeAreaInsets)(),{width:Ae,height:Pe}=(0,d.default)(),{controller:Le}=(0,ae.useConnection)(),{name:Re,features:Me,online:ze,disabled:Fe}=ke(e),{settings:Ge,hydrated:Je}=(0,oe.useSettings)(),Ve=Me.includes(ee.FEATURE.ptz),Ke=Me.includes(ee.FEATURE.twoWayAudio),qe=Me.includes(ee.FEATURE.doorbell),Ye=(0,ge.useCameraPrefsStore)(t=>t.prefs.byId[e]?.quality),Ne=(0,ge.useCameraPrefsStore)(e=>e.setCameraQuality),[Ze,$e]=(0,n.useState)(Ye??'auto'),Qe=(0,n.useRef)(!1);(0,n.useEffect)(()=>{Ye&&!Qe.current&&(Qe.current=!0,$e(Ye))},[Ye]);const Ue=(0,n.useMemo)(()=>(0,fe.qualityToTarget)(Ze),[Ze]),Xe=(0,n.useCallback)(t=>{$e(t),Ne(e,t)},[e,Ne]),[et,tt]=(0,n.useState)(null),at=(0,n.useCallback)(e=>tt(t=>t===e?null:e),[]),ot=(0,n.useCallback)(()=>tt(null),[]),nt='quality'===et,it=(0,n.useCallback)(()=>at('quality'),[at]),lt=ot,st=(0,ne.useMotionHighlight)(e,!0);(0,ce.useEventHaptics)([e],!0);const rt=(0,ge.useCameraPrefsStore)(t=>t.prefs.byId[e]?.highlight),ut=(0,n.useMemo)(()=>(0,me.withHighlightDefaults)(rt),[rt]),ct=(0,ge.useCameraPrefsStore)(e=>e.setCameraHighlight),dt=(0,ge.useCameraPrefsStore)(e=>e.hydrate);(0,n.useEffect)(()=>{dt()},[dt]);const ht=(0,ue.useDetections)(e,ut.detection&&!0),gt=ut.detection&&ht.boxes.some(e=>0===ut.detectionClasses.length||ut.detectionClasses.includes(e.label)),_t=(0,he.useHeld)(gt,1e3*ut.detectionHoldSec),mt=(0,de.useAudioActive)(e,ut.audio,ut.audioDb),ft=(0,he.useHeld)('off'!==ut.audio&&mt,1e3*ut.audioHoldSec),pt=_t?'detection':ft?'audio':ut.motion&&st?'motion':null,vt=(0,n.useMemo)(()=>Object.assign({enabled:!0},ut,{appearance:Ge.highlight,motionHoldSec:Ge.grid.motionHoldSec}),[ut,Ge.highlight,Ge.grid.motionHoldSec]),[St,Ct]=(0,n.useState)(!1),bt=(0,n.useCallback)(()=>Ct(e=>!e),[]),[xt,kt]=(0,n.useState)(1),[Et,Ot]=(0,n.useState)(!1),Tt=(0,n.useRef)(null),[Ht,yt]=(0,n.useState)(0),wt=(0,n.useMemo)(()=>({scrubStart:()=>Tt.current?.scrubStart(),scrubTo:e=>Tt.current?.scrubTo(e),scrubCommit:e=>Tt.current?.scrubCommit(e),seek:e=>Tt.current?.seek(e),goLive:()=>{Tt.current?.goLive(),yt(e=>e+1),Ot(!1),kt(1)}}),[]),jt=(0,k.usePlaybackMachine)(wt),Dt='live'!==jt.state.mode,It=(0,n.useCallback)(()=>{Ot(e=>(Tt.current?.setRate(e?xt:0),!e))},[xt]),Wt=(0,n.useCallback)(e=>{kt(e),Et||Tt.current?.setRate(e)},[Et]),Bt=(0,n.useCallback)(e=>{Et||(Tt.current?.setRate(0),Ot(!0)),Tt.current?.stepFrame(e)},[Et]),At=(0,n.useRef)(t??null),Pt=(0,n.useCallback)(e=>{jt.reportEmbedState(e);const t=At.current;null!==t&&(At.current=null,jt.seek(t,'cluster'))},[jt]),[Lt,Rt]=(0,n.useState)(!0),Mt=(0,n.useRef)(!1);(0,n.useEffect)(()=>{Je&&!Mt.current&&(Mt.current=!0,Rt(!Ge.stream.audioOnOpen))},[Je,Ge.stream.audioOnOpen]);const zt='ptz'===et,Ft='devices'===et,Gt='export'===et,Jt='switcher'===et,Vt='menu'===et,[Kt,qt]=(0,n.useState)(!1),[Yt,Nt]=(0,n.useState)(()=>Date.now()),[Zt,$t]=(0,n.useState)(!1),[Qt,Ut]=(0,n.useState)(!1),[Xt,ea]=(0,n.useState)(!1),[ta,aa]=(0,n.useState)(!1),[oa,na]=(0,n.useState)(!1),[ia,la]=(0,n.useState)(!1),[sa,ra]=(0,n.useState)(!1),[ua,ca]=(0,n.useState)(!0),[da,ha]=(0,n.useState)(null),[ga,_a]=(0,n.useState)(!1),[ma,fa]=(0,n.useState)(e);ma!==e&&(fa(e),ha(null),_a(!1));const pa=(0,n.useCallback)(()=>_a(!0),[]),va=(0,n.useCallback)(()=>ha(null),[]),Sa=(0,n.useCallback)(e=>{ha(e),_a(!1)},[]),Ca=(0,n.useCallback)(()=>_a(!1),[]),ba=(0,n.useCallback)(()=>Rt(e=>!e),[]),xa=(0,n.useCallback)(()=>at('ptz'),[at]),ka=(0,n.useCallback)(()=>at('devices'),[at]),Ea=(0,n.useCallback)(()=>at('switcher'),[at]),Oa=(0,n.useCallback)(t=>{ot(),t!==e&&T.replace(`/camera/${t}`)},[T,e,ot]),Ta=(0,n.useCallback)(e=>{ot(),T.push(`/grid/adhoc?devices=${(0,N.serializeAdhocDeviceIds)(e)}`)},[T,ot]),Ha=(0,n.useCallback)(()=>$t(e=>!e),[]),ya=(0,n.useCallback)(()=>at('menu'),[at]),wa=ot,ja=(0,n.useCallback)(()=>aa(e=>!e),[]),Da=(0,n.useCallback)(()=>na(e=>!e),[]),Ia=(0,n.useCallback)(()=>at('export'),[at]),Wa=ot,Ba=(0,n.useCallback)(()=>{ot(),Nt((0,k.selectActiveEpoch)(jt.state)??Date.now()),qt(!0)},[jt.state,ot]),Aa=(0,n.useCallback)(()=>qt(!1),[]),Pa=(0,n.useCallback)(()=>{qt(!1),T.push('/exports')},[T]),La=(0,n.useCallback)(()=>ca(e=>!e),[]),Ra=(0,n.useCallback)(()=>ca(!1),[]),Ma=(0,n.useCallback)(()=>Tt.current?.startPip(),[]),za=(0,n.useCallback)(()=>Tt.current?.getStats()??Promise.resolve(null),[]),{talking:Fa,error:Ga,toggle:Ja}=(0,w.useIntercom)(e);(0,n.useEffect)(()=>{Ga&&u.default.alert(o('v2.cameraDetail.talk'),o('v2.cameraDetail.talkFailed'))},[Ga,o]);const Va=(0,$.useWideDetailLayout)(),Ka=Ae>Pe,qa=ia||Ka&&!Va,[Ya,Na]=(0,n.useState)(null),Za=(0,n.useCallback)(e=>{Na(e.nativeEvent.layout.width)},[]),$a=(0,n.useMemo)(()=>(0,U.computeWideDetailSizes)({containerWidth:Ya??Ae,viewportHeight:Pe}),[Ya,Ae,Pe]),Qa=(0,n.useMemo)(()=>9*Ae/16,[Ae]),Ua=(0,n.useMemo)(()=>Pe*ve,[Pe]),Xa=(0,y.useStreamZoom)(),eo=Xa.resetZoom;(0,n.useEffect)(()=>{eo()},[qa,eo]);const to=(0,n.useCallback)(()=>T.back(),[T]),ao=(0,n.useMemo)(()=>{const e=p.Gesture.Tap().numberOfTaps(1).onEnd((function({_worklet_6602635544675_init_data:e,runOnJS:t,onToggleControls:o}){const n=function(){t(o)()};return n.__closure={runOnJS:t,onToggleControls:o},n.__workletHash=6602635544675,n.__initData=e,n})({_worklet_6602635544675_init_data:Ee,runOnJS:v.runOnJS,onToggleControls:La})),t=p.Gesture.Tap().numberOfTaps(2).onEnd((function({_worklet_2914560570860_init_data:e,runOnJS:t,zoom:o}){const n=function(){t(o.resetZoom)()};return n.__closure={runOnJS:t,zoom:o},n.__workletHash=2914560570860,n.__initData=e,n})({_worklet_2914560570860_init_data:Oe,runOnJS:v.runOnJS,zoom:Xa})),o=p.Gesture.Exclusive(t,e),n=p.Gesture.Pan().minPointers(2).onEnd((function({_worklet_928138019551_init_data:e,BACK_SWIPE_DISTANCE:t,BACK_SWIPE_VELOCITY:o,runOnJS:n,onSwipeBack:l}){const s=function(e){e.translationY>t&&e.velocityY>o&&n(l)()};return s.__closure={BACK_SWIPE_DISTANCE:t,BACK_SWIPE_VELOCITY:o,runOnJS:n,onSwipeBack:l},s.__workletHash=928138019551,s.__initData=e,s})({_worklet_928138019551_init_data:Te,BACK_SWIPE_DISTANCE:Ce,BACK_SWIPE_VELOCITY:be,runOnJS:v.runOnJS,onSwipeBack:to}));return p.Gesture.Simultaneous(Xa.composeWith(n),o)},[Xa,La,to]),oo=Ge.stream.pinchExpandsHeight,no=(0,v.useDerivedValue)((function({_worklet_4062045311480_init_data:e,pinchExpandsHeight:t,defaultHeight:o,interpolate:n,zoom:l,HEIGHT_GROW_SCALE:s,maxHeight:u,Extrapolation:c}){const d=function(){return t?n(l.scale.value,[1,s],[o,u],c.CLAMP):o};return d.__closure={pinchExpandsHeight:t,defaultHeight:o,interpolate:n,zoom:l,HEIGHT_GROW_SCALE:s,maxHeight:u,Extrapolation:c},d.__workletHash=4062045311480,d.__initData=e,d})({_worklet_4062045311480_init_data:He,pinchExpandsHeight:oo,defaultHeight:Qa,interpolate:v.interpolate,zoom:Xa,HEIGHT_GROW_SCALE:Se,maxHeight:Ua,Extrapolation:v.Extrapolation}),[Qa,Ua,oo]),io=(0,v.useAnimatedStyle)((function({_worklet_8575313032359_init_data:e,liveBoxHeight:t}){const o=()=>({height:t.value});return o.__closure={liveBoxHeight:t},o.__workletHash=8575313032359,o.__initData=e,o})({_worklet_8575313032359_init_data:ye,liveBoxHeight:no})),lo=(0,v.useAnimatedStyle)((function({_worklet_15146728279256_init_data:e,liveBoxHeight:t,winWidth:o}){const n=function(){const e=t.value,n=Math.max(o,16*e/9);return{position:'absolute',top:0,left:(o-n)/2,width:n,height:e}};return n.__closure={liveBoxHeight:t,winWidth:o},n.__workletHash=0xdc69f5bccd8,n.__initData=e,n})({_worklet_15146728279256_init_data:we,liveBoxHeight:no,winWidth:Ae}),[Ae]),so=(0,v.useDerivedValue)((function({_worklet_12291157125883_init_data:e,isWideDetail:t,insets:o,TOOLBAR_HEIGHT:n,liveBoxHeight:l}){const s=()=>t?o.top+n:o.top+l.value+n;return s.__closure={isWideDetail:t,insets:o,TOOLBAR_HEIGHT:n,liveBoxHeight:l},s.__workletHash=0xb2dc20deafb,s.__initData=e,s})({_worklet_12291157125883_init_data:je,isWideDetail:Va,insets:Be,TOOLBAR_HEIGHT:xe,liveBoxHeight:no}),[Be.top,Va]),{ref:ro,isFullscreen:uo,toggle:co}=(0,x.useWebFullscreen)(),ho=(0,n.useCallback)(()=>{co()},[co]);(0,n.useEffect)(()=>{la(uo)},[uo]),(0,n.useEffect)(()=>{},[ia]);const go=(0,n.useCallback)(async()=>{const t=Le.getSystem();if(t){ra(!0);try{const n=await t.trpcClient.snapshot.getSnapshot.query({deviceId:e,force:!0});if(!n?.base64)return void u.default.alert(o('v2.cameraDetail.snapshot'),o('v2.cameraDetail.snapshotFailed'));const l=n.contentType.includes('png')?'png':'jpg',s=`${C.cacheDirectory}snapshot-${e}-${Date.now()}.${l}`;await C.writeAsStringAsync(s,n.base64,{encoding:C.EncodingType.Base64}),await b.isAvailableAsync()&&await b.shareAsync(s,{mimeType:n.contentType})}catch{u.default.alert(o('v2.cameraDetail.snapshot'),o('v2.cameraDetail.snapshotFailed'))}finally{ra(!1)}}},[Le,e,o]),_o=(0,n.useCallback)(()=>{ot(),go()},[go,ot]),mo=(0,k.selectPlaybackStatus)(jt.state),fo=mo.isLive&&!St,po=((0,n.useMemo)(()=>fo?vt:Object.assign({},vt,{enabled:!1,motion:!1,detection:!1,audio:'off'}),[vt,fo]),(0,n.useCallback)(()=>{const e=(0,E.jogTarget)(jt.state.playhead,-1);null!=e&&jt.seek(e,'timeline')},[jt])),vo=(0,n.useCallback)(()=>{const e=(0,E.jogTarget)(jt.state.playhead,1);null!=e&&jt.seek(e,'timeline')},[jt]),So=(0,pe.jsx)(S.default.View,{style:qa?Ie.videoWrapFull:Va?[Ie.videoWrap,{width:$a.streamWidth,height:$a.streamHeight}]:oo?[Ie.videoWrap,io]:[Ie.videoWrap,{height:Qa}],children:(0,pe.jsxs)(l.default,{style:Ie.videoContent,children:[(0,pe.jsxs)(S.default.View,{style:qa||Va?[c.default.absoluteFill,Xa.videoStyle]:[lo,Xa.videoStyle],children:[St&&!Dt?(0,pe.jsx)(De,{deviceId:e}):(0,pe.jsx)(H.LiveView,{ref:Tt,deviceId:e,muted:Lt,target:Ue,showStats:ta&&!1,highlight:void 0,onPlaybackState:Pt,onPosition:jt.reportPosition},Ht),Zt&&fo?(0,pe.jsx)(V.MotionBoxesOverlay,{deviceId:e,enabled:Zt}):null,oa&&fo?(0,pe.jsx)(K.AudioLevelMeter,{deviceId:e,enabled:oa}):null]}),(0,pe.jsx)(p.GestureDetector,{gesture:ao,children:(0,pe.jsx)(S.default.View,{style:c.default.absoluteFill,onLayout:Xa.onLayout})}),null===da||ga?null:(0,pe.jsx)(Y.ZoneActiveOverlay,{zone:da}),'seeking'===jt.state.mode?(0,pe.jsx)(W.ScrubPlayerPreview,{deviceId:e,atMs:(0,k.selectActiveEpoch)(jt.state)}):null,'gap'===jt.state.mode?(0,pe.jsxs)(l.default,{pointerEvents:"none",style:[c.default.absoluteFill,Ie.noRecOverlay],children:[(0,pe.jsx)(te.VideoOff,{size:28,color:"#9aa0a6"}),(0,pe.jsx)(s.default,{style:Ie.noRecTitle,children:o('v2.theater.noRecording')}),(0,pe.jsx)(s.default,{style:Ie.noRecHint,children:o('v2.theater.noRecordingHint')})]}):null,pt&&fo?(0,pe.jsx)(l.default,{pointerEvents:"none",style:[c.default.absoluteFill,{borderWidth:Ge.highlight.thickness,borderColor:'motion'===pt?Ge.highlight.motionColor:'audio'===pt?Ge.highlight.audioColor:Ge.highlight.detectionColor}]}):null,ua?(0,pe.jsxs)(l.default,{style:Ie.nameTag,pointerEvents:"none",children:[(0,pe.jsx)(le.CameraStatusDot,{deviceId:e,online:ze,disabled:Fe,size:9}),(0,pe.jsx)(s.default,{style:Ie.nameText,numberOfLines:1,children:Re})]}):null,st&&fo?(0,pe.jsx)(ie.MotionBadge,{}):null,(0,pe.jsx)(re.DoorbellBadge,{deviceId:e,enabled:qe}),(0,pe.jsx)(se.OccupancyBadge,{deviceId:e,enabled:mo.isLive&&!St}),ua&&!mo.isLive?(0,pe.jsx)(l.default,{style:Ie.jogRow,children:(0,pe.jsx)(D.RecordedTransportBar,{rate:xt,paused:Et,onJogBack:po,onJogForward:vo,onStepFrame:Bt,onSelectRate:Wt})}):null,ta?(0,pe.jsx)(J.StreamStatsOverlay,{getStats:za}):null,(0,pe.jsx)(j.StreamOverlayControls,{visible:ua,onRequestHide:Ra,paused:Dt?Et:St,onTogglePause:Dt?It:bt,muted:Lt,onToggleMute:ba,hasTwoWayAudio:Ke,talking:Fa,onToggleTalk:Ja,onStartPip:Ma,fullscreen:ia,onToggleFullscreen:ho}),ga?(0,pe.jsx)(q.ZoneDrawOverlay,{zone:da,onConfirm:Sa,onCancel:Ca}):null]})}),Co=Va?'right':void 0,bo=Va?$a.railWidth:void 0,xo=(0,pe.jsx)(Z.TheaterTimeline,{deviceId:e,hideBack:Va,name:Re,onBack:()=>T.back(),hasPtz:Ve,ptzOpen:zt,onTogglePtz:xa,devicesOpen:Ft,onToggleDevices:ka,menuOpen:Vt,onToggleMenu:ya,exportMenuOpen:Gt,onToggleExportMenu:Ia,snapshotBusy:sa,quality:Ze,qualityOpen:nt,onToggleQuality:it,mode:jt.state.mode,activeEpoch:(0,k.selectActiveEpoch)(jt.state),onSeek:jt.seek,onScrubBegin:jt.beginScrub,onScrubMove:jt.moveScrub,onScrubCommit:jt.commitScrub,onGoLive:jt.goLive,zoneRect:da,onRequestZoneDraw:pa,onClearZone:va,onPickCamera:Ea});return(0,pe.jsxs)(l.default,{ref:ro,onLayout:Za,style:{flex:1,backgroundColor:X.background,paddingTop:qa?0:Be.top},children:[(0,pe.jsx)(f.StatusBar,{hidden:qa,style:qa||'dark'===We?'light':'dark'}),qa?So:Va?(0,pe.jsx)(Q.WideDetailLayout,{railWidth:$a.railWidth,stream:So,timeline:xo}):(0,pe.jsxs)(pe.Fragment,{children:[So,xo]}),zt?(0,pe.jsx)(A.FloatingPanel,{title:o('v2.ptz.title'),onClose:xa,closeLabel:o('v2.cameraDetail.close'),topOffset:so,align:Co,maxWidth:bo,children:(0,pe.jsx)(B.PtzControls,{deviceId:e,hasFeature:Ve})}):null,Ft?(0,pe.jsx)(A.FloatingPanel,{title:o('v2.cameraDetail.devices'),onClose:ka,closeLabel:o('v2.cameraDetail.close'),topOffset:so,align:Co,maxWidth:bo,children:(0,pe.jsx)(P.DevicesPanel,{deviceId:e})}):null,Jt?(0,pe.jsx)(A.FloatingPanel,{title:o('v2.cameraSwitcher.title'),onClose:Ea,closeLabel:o('v2.cameraDetail.close'),topOffset:so,align:Co,maxWidth:bo,children:(0,pe.jsx)(L.CameraSwitcherPanel,{currentId:e,onSwitch:Oa,onOpenGrid:Ta})}):null,Vt?(0,pe.jsx)(R.CameraMenuPanel,{boundingBoxesOn:Zt,onToggleBoundingBoxes:Ha,statsOn:ta,onToggleStats:ja,audioMeterOn:oa,onToggleAudioMeter:Da,highlight:ut,onSetHighlight:t=>ct(e,Object.assign({},ut,t)),onOpenStorage:()=>{ot(),Ut(!0)},onOpenEvents:()=>{ot(),ea(!0)},onClose:wa,topOffset:so,align:Co,maxWidth:bo}):null,nt?(0,pe.jsx)(I.QualityPicker,{value:Ze,onChange:Xe,onClose:lt,topOffset:so,align:Co,maxWidth:bo}):null,Gt?(0,pe.jsx)(z.ExportActionsPanel,{onSnapshot:_o,snapshotBusy:sa,onOpenExport:Ba,onClose:Wa,topOffset:so,align:Co,maxWidth:bo}):null,(0,pe.jsx)(M.ExportModal,{visible:Kt,deviceId:e,anchorEpoch:Yt,onClose:Aa,onCreated:Pa}),(0,pe.jsx)(F.StorageManagementModal,{visible:Qt,deviceId:e,cameraName:Re,onClose:()=>Ut(!1)}),(0,pe.jsx)(G.EventsManagementModal,{visible:Xt,deviceId:e,cameraName:Re,onClose:()=>ea(!1)})]})};var o=r(_d[0]),n=r(_d[1]),l=e(r(_d[2])),s=e(r(_d[3])),u=e(r(_d[4])),c=e(r(_d[5])),d=e(r(_d[6]));r(_d[7]);var h=r(_d[8]),_=r(_d[9]),m=r(_d[10]),f=r(_d[11]),p=r(_d[12]),v=r(_d[13]),S=e(v),C=(t(r(_d[14])),t(r(_d[15]))),b=t(r(_d[16])),x=r(_d[17]),k=r(_d[18]),E=r(_d[19]),O=r(_d[20]),T=r(_d[21]),H=r(_d[22]),y=r(_d[23]),w=r(_d[24]),j=r(_d[25]),D=r(_d[26]),I=r(_d[27]),W=r(_d[28]),B=r(_d[29]),A=r(_d[30]),P=r(_d[31]),L=r(_d[32]),R=r(_d[33]),M=r(_d[34]),z=r(_d[35]),F=r(_d[36]),G=r(_d[37]),J=r(_d[38]),V=r(_d[39]),K=r(_d[40]),q=r(_d[41]),Y=r(_d[42]),N=r(_d[43]),Z=r(_d[44]),$=r(_d[45]),Q=r(_d[46]),U=r(_d[47]),X=r(_d[48]),ee=r(_d[49]),te=r(_d[50]),ae=r(_d[51]),oe=r(_d[52]),ne=r(_d[53]),ie=r(_d[54]),le=r(_d[55]),se=r(_d[56]),re=r(_d[57]),ue=r(_d[58]),ce=r(_d[59]),de=r(_d[60]),he=r(_d[61]),ge=r(_d[62]),me=r(_d[63]),fe=r(_d[64]),pe=r(_d[65]);const ve=.5,Se=2.5,Ce=80,be=400,xe=47;function ke(e){const t=(0,o.c)(18),{t:n}=(0,h.useTranslation)(),{data:l}=(0,ee.useCameras)();let s;t[0]!==l?(s=void 0===l?[]:l,t[0]=l,t[1]=s):s=t[1];const u=s;let c;if(t[2]!==u||t[3]!==e){let o;t[5]!==e?(o=t=>t.id===e,t[5]=e,t[6]=o):o=t[6],c=u.find(o),t[2]=u,t[3]=e,t[4]=c}else c=t[4];const d=c;let _,m;t[7]!==d?.name||t[8]!==e||t[9]!==n?(_=d?.name??n("v2.cameraDetail.fallbackName",{id:e}),t[7]=d?.name,t[8]=e,t[9]=n,t[10]=_):_=t[10],t[11]!==d?.features?(m=d?.features??[],t[11]=d?.features,t[12]=m):m=t[12];const f=d?.online??!1,p=d?.disabled??!1;let v;return t[13]!==_||t[14]!==m||t[15]!==f||t[16]!==p?(v={name:_,features:m,online:f,disabled:p},t[13]=_,t[14]=m,t[15]=f,t[16]=p,t[17]=v):v=t[17],v}const Ee={code:"function CameraDetailScreenTsx1(){const{runOnJS,onToggleControls}=this.__closure;runOnJS(onToggleControls)();}"},Oe={code:"function CameraDetailScreenTsx2(){const{runOnJS,zoom}=this.__closure;runOnJS(zoom.resetZoom)();}"},Te={code:"function CameraDetailScreenTsx3(e_0){const{BACK_SWIPE_DISTANCE,BACK_SWIPE_VELOCITY,runOnJS,onSwipeBack}=this.__closure;if(e_0.translationY>BACK_SWIPE_DISTANCE&&e_0.velocityY>BACK_SWIPE_VELOCITY){runOnJS(onSwipeBack)();}}"},He={code:"function CameraDetailScreenTsx4(){const{pinchExpandsHeight,defaultHeight,interpolate,zoom,HEIGHT_GROW_SCALE,maxHeight,Extrapolation}=this.__closure;if(!pinchExpandsHeight)return defaultHeight;return interpolate(zoom.scale.value,[1,HEIGHT_GROW_SCALE],[defaultHeight,maxHeight],Extrapolation.CLAMP);}"},ye={code:"function CameraDetailScreenTsx5(){const{liveBoxHeight}=this.__closure;return{height:liveBoxHeight.value};}"},we={code:"function CameraDetailScreenTsx6(){const{liveBoxHeight,winWidth}=this.__closure;const h=liveBoxHeight.value;const coverWidth=Math.max(winWidth,h*16/9);return{position:'absolute',top:0,left:(winWidth-coverWidth)/2,width:coverWidth,height:h};}"},je={code:"function CameraDetailScreenTsx7(){const{isWideDetail,insets,TOOLBAR_HEIGHT,liveBoxHeight}=this.__closure;return isWideDetail?insets.top+TOOLBAR_HEIGHT:insets.top+liveBoxHeight.value+TOOLBAR_HEIGHT;}"};function De(e){const t=(0,o.c)(7),{deviceId:n}=e,{uri:s,headers:u,onLoad:d,onError:h}=(0,X.useSnapshot)(n,!0);let _,m;return t[0]!==u||t[1]!==h||t[2]!==d||t[3]!==s?(_=s?(0,pe.jsx)(T.Image,{source:u?{uri:s,headers:u}:{uri:s},style:c.default.absoluteFill,contentFit:"cover",cachePolicy:"memory-disk",onLoad:d,onError:h}):null,t[0]=u,t[1]=h,t[2]=d,t[3]=s,t[4]=_):_=t[4],t[5]!==_?(m=(0,pe.jsx)(l.default,{style:Ie.poster,children:_}),t[5]=_,t[6]=m):m=t[6],m}const Ie=c.default.create({videoWrap:{position:'relative',width:'100%',overflow:'hidden',backgroundColor:'#000'},videoWrapFull:Object.assign({},c.default.absoluteFill,{zIndex:50,backgroundColor:'#000'}),videoContent:{flex:1,overflow:'hidden'},noRecOverlay:{alignItems:'center',justifyContent:'center',gap:6,backgroundColor:'rgba(0,0,0,0.55)'},noRecTitle:{color:'#e8eaed',fontSize:15,fontWeight:'600'},noRecHint:{color:'#9aa0a6',fontSize:12},poster:{flex:1,backgroundColor:'#000'},nameTag:{position:'absolute',top:8,left:8,maxWidth:'70%',flexDirection:'row',alignItems:'center',gap:6,paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:'#00000080'},nameText:{color:'#fafaf9',fontSize:13,fontWeight:'600'},jogRow:{position:'absolute',bottom:56,alignSelf:'center'}})},3428,[15,17,20,112,133,33,277,136,786,743,466,3429,3242,2714,3431,3434,3439,3443,3444,3445,2587,3053,3446,3454,3455,3456,3457,3459,3462,3466,3460,3468,3485,3486,3487,3491,3492,3494,3495,3496,3497,3500,3502,3503,3504,2590,3525,3526,3143,3080,813,2594,3177,3156,3527,3158,3164,3528,3385,3530,3498,3532,3132,3139,3533,10]);
15849
+ __d(function(g,r,i,a,_m,_e,_d){"use strict";function e(e){return e&&e.__esModule?e:{default:e}}function t(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(o){var n=Object.getOwnPropertyDescriptor(e,o);Object.defineProperty(t,o,n.get?n:{enumerable:!0,get:function(){return e[o]}})}),t.default=e,t}Object.defineProperty(_e,'__esModule',{value:!0}),_e.CameraDetailScreen=function({deviceId:e,initialSeekMs:t}){const{t:o}=(0,h.useTranslation)(),T=(0,_.useRouter)(),{colors:X,mode:We}=(0,O.useTheme)(),Be=(0,m.useSafeAreaInsets)(),{width:Ae,height:Pe}=(0,d.default)(),{controller:Le}=(0,ae.useConnection)(),{name:Re,features:Me,online:ze,disabled:Fe}=ke(e),{settings:Ge,hydrated:Je}=(0,oe.useSettings)(),Ve=Me.includes(ee.FEATURE.ptz),Ke=Me.includes(ee.FEATURE.twoWayAudio),qe=Me.includes(ee.FEATURE.doorbell),Ye=(0,ge.useCameraPrefsStore)(t=>t.prefs.byId[e]?.quality),Ne=(0,ge.useCameraPrefsStore)(e=>e.setCameraQuality),[Ze,$e]=(0,n.useState)(Ye??'auto'),Qe=(0,n.useRef)(!1);(0,n.useEffect)(()=>{Ye&&!Qe.current&&(Qe.current=!0,$e(Ye))},[Ye]);const Ue=(0,n.useMemo)(()=>(0,fe.qualityToTarget)(Ze),[Ze]),Xe=(0,n.useCallback)(t=>{$e(t),Ne(e,t)},[e,Ne]),[et,tt]=(0,n.useState)(null),at=(0,n.useCallback)(e=>tt(t=>t===e?null:e),[]),ot=(0,n.useCallback)(()=>tt(null),[]),nt='quality'===et,it=(0,n.useCallback)(()=>at('quality'),[at]),lt=ot,st=(0,ne.useMotionHighlight)(e,!0);(0,ce.useEventHaptics)([e],!0);const rt=(0,ge.useCameraPrefsStore)(t=>t.prefs.byId[e]?.highlight),ut=(0,n.useMemo)(()=>(0,me.withHighlightDefaults)(rt),[rt]),ct=(0,ge.useCameraPrefsStore)(e=>e.setCameraHighlight),dt=(0,ge.useCameraPrefsStore)(e=>e.hydrate);(0,n.useEffect)(()=>{dt()},[dt]);const ht=(0,ue.useDetections)(e,ut.detection&&!0),gt=ut.detection&&ht.boxes.some(e=>0===ut.detectionClasses.length||ut.detectionClasses.includes(e.label)),_t=(0,he.useHeld)(gt,1e3*ut.detectionHoldSec),mt=(0,de.useAudioActive)(e,ut.audio,ut.audioDb),ft=(0,he.useHeld)('off'!==ut.audio&&mt,1e3*ut.audioHoldSec),pt=_t?'detection':ft?'audio':ut.motion&&st?'motion':null,vt=(0,n.useMemo)(()=>Object.assign({enabled:!0},ut,{appearance:Ge.highlight,motionHoldSec:Ge.grid.motionHoldSec}),[ut,Ge.highlight,Ge.grid.motionHoldSec]),[St,Ct]=(0,n.useState)(!1),bt=(0,n.useCallback)(()=>Ct(e=>!e),[]),[xt,kt]=(0,n.useState)(1),[Et,Ot]=(0,n.useState)(!1),Tt=(0,n.useRef)(null),[Ht,yt]=(0,n.useState)(0),wt=(0,n.useMemo)(()=>({scrubStart:()=>Tt.current?.scrubStart(),scrubTo:e=>Tt.current?.scrubTo(e),scrubCommit:e=>Tt.current?.scrubCommit(e),seek:e=>Tt.current?.seek(e),goLive:()=>{Tt.current?.goLive(),yt(e=>e+1),Ot(!1),kt(1)}}),[]),jt=(0,k.usePlaybackMachine)(wt),Dt='live'!==jt.state.mode,It=(0,n.useCallback)(()=>{Ot(e=>(Tt.current?.setRate(e?xt:0),!e))},[xt]),Wt=(0,n.useCallback)(e=>{kt(e),Et||Tt.current?.setRate(e)},[Et]),Bt=(0,n.useCallback)(e=>{Et||(Tt.current?.setRate(0),Ot(!0)),Tt.current?.stepFrame(e)},[Et]),At=(0,n.useRef)(t??null),Pt=(0,n.useCallback)(e=>{jt.reportEmbedState(e);const t=At.current;null!==t&&(At.current=null,jt.seek(t,'cluster'))},[jt]),[Lt,Rt]=(0,n.useState)(!0),Mt=(0,n.useRef)(!1);(0,n.useEffect)(()=>{Je&&!Mt.current&&(Mt.current=!0,Rt(!Ge.stream.audioOnOpen))},[Je,Ge.stream.audioOnOpen]);const zt='ptz'===et,Ft='devices'===et,Gt='export'===et,Jt='switcher'===et,Vt='menu'===et,[Kt,qt]=(0,n.useState)(!1),[Yt,Nt]=(0,n.useState)(()=>Date.now()),[Zt,$t]=(0,n.useState)(!1),[Qt,Ut]=(0,n.useState)(!1),[Xt,ea]=(0,n.useState)(!1),[ta,aa]=(0,n.useState)(!1),[oa,na]=(0,n.useState)(!1),[ia,la]=(0,n.useState)(!1),[sa,ra]=(0,n.useState)(!1),[ua,ca]=(0,n.useState)(!0),[da,ha]=(0,n.useState)(null),[ga,_a]=(0,n.useState)(!1),[ma,fa]=(0,n.useState)(e);ma!==e&&(fa(e),ha(null),_a(!1));const pa=(0,n.useCallback)(()=>_a(!0),[]),va=(0,n.useCallback)(()=>ha(null),[]),Sa=(0,n.useCallback)(e=>{ha(e),_a(!1)},[]),Ca=(0,n.useCallback)(()=>_a(!1),[]),ba=(0,n.useCallback)(()=>Rt(e=>!e),[]),xa=(0,n.useCallback)(()=>at('ptz'),[at]),ka=(0,n.useCallback)(()=>at('devices'),[at]),Ea=(0,n.useCallback)(()=>at('switcher'),[at]),Oa=(0,n.useCallback)(t=>{ot(),t!==e&&T.replace(`/camera/${t}`)},[T,e,ot]),Ta=(0,n.useCallback)(e=>{ot(),T.push(`/grid/adhoc?devices=${(0,N.serializeAdhocDeviceIds)(e)}`)},[T,ot]),Ha=(0,n.useCallback)(()=>$t(e=>!e),[]),ya=(0,n.useCallback)(()=>at('menu'),[at]),wa=ot,ja=(0,n.useCallback)(()=>aa(e=>!e),[]),Da=(0,n.useCallback)(()=>na(e=>!e),[]),Ia=(0,n.useCallback)(()=>at('export'),[at]),Wa=ot,Ba=(0,n.useCallback)(()=>{ot(),Nt((0,k.selectActiveEpoch)(jt.state)??Date.now()),qt(!0)},[jt.state,ot]),Aa=(0,n.useCallback)(()=>qt(!1),[]),Pa=(0,n.useCallback)(()=>{qt(!1),T.push('/exports')},[T]),La=(0,n.useCallback)(()=>ca(e=>!e),[]),Ra=(0,n.useCallback)(()=>ca(!1),[]),Ma=(0,n.useCallback)(()=>Tt.current?.startPip(),[]),za=(0,n.useCallback)(()=>Tt.current?.getStats()??Promise.resolve(null),[]),{talking:Fa,error:Ga,toggle:Ja}=(0,w.useIntercom)(e);(0,n.useEffect)(()=>{Ga&&u.default.alert(o('v2.cameraDetail.talk'),o('v2.cameraDetail.talkFailed'))},[Ga,o]);const Va=(0,$.useWideDetailLayout)(),Ka=Ae>Pe,qa=ia||Ka&&!Va,[Ya,Na]=(0,n.useState)(null),Za=(0,n.useCallback)(e=>{Na(e.nativeEvent.layout.width)},[]),$a=(0,n.useMemo)(()=>(0,U.computeWideDetailSizes)({containerWidth:Ya??Ae,viewportHeight:Pe}),[Ya,Ae,Pe]),Qa=(0,n.useMemo)(()=>9*Ae/16,[Ae]),Ua=(0,n.useMemo)(()=>Pe*ve,[Pe]),Xa=(0,y.useStreamZoom)(),eo=Xa.resetZoom;(0,n.useEffect)(()=>{eo()},[qa,eo]);const to=(0,n.useCallback)(()=>T.back(),[T]),ao=(0,n.useMemo)(()=>{const e=p.Gesture.Tap().numberOfTaps(1).onEnd((function({_worklet_6602635544675_init_data:e,runOnJS:t,onToggleControls:o}){const n=function(){t(o)()};return n.__closure={runOnJS:t,onToggleControls:o},n.__workletHash=6602635544675,n.__initData=e,n})({_worklet_6602635544675_init_data:Ee,runOnJS:v.runOnJS,onToggleControls:La})),t=p.Gesture.Tap().numberOfTaps(2).onEnd((function({_worklet_2914560570860_init_data:e,runOnJS:t,zoom:o}){const n=function(){t(o.resetZoom)()};return n.__closure={runOnJS:t,zoom:o},n.__workletHash=2914560570860,n.__initData=e,n})({_worklet_2914560570860_init_data:Oe,runOnJS:v.runOnJS,zoom:Xa})),o=p.Gesture.Exclusive(t,e),n=p.Gesture.Pan().minPointers(2).onEnd((function({_worklet_928138019551_init_data:e,BACK_SWIPE_DISTANCE:t,BACK_SWIPE_VELOCITY:o,runOnJS:n,onSwipeBack:l}){const s=function(e){e.translationY>t&&e.velocityY>o&&n(l)()};return s.__closure={BACK_SWIPE_DISTANCE:t,BACK_SWIPE_VELOCITY:o,runOnJS:n,onSwipeBack:l},s.__workletHash=928138019551,s.__initData=e,s})({_worklet_928138019551_init_data:Te,BACK_SWIPE_DISTANCE:Ce,BACK_SWIPE_VELOCITY:be,runOnJS:v.runOnJS,onSwipeBack:to}));return p.Gesture.Simultaneous(Xa.composeWith(n),o)},[Xa,La,to]),oo=Ge.stream.pinchExpandsHeight,no=(0,v.useDerivedValue)((function({_worklet_4062045311480_init_data:e,pinchExpandsHeight:t,defaultHeight:o,interpolate:n,zoom:l,HEIGHT_GROW_SCALE:s,maxHeight:u,Extrapolation:c}){const d=function(){return t?n(l.scale.value,[1,s],[o,u],c.CLAMP):o};return d.__closure={pinchExpandsHeight:t,defaultHeight:o,interpolate:n,zoom:l,HEIGHT_GROW_SCALE:s,maxHeight:u,Extrapolation:c},d.__workletHash=4062045311480,d.__initData=e,d})({_worklet_4062045311480_init_data:He,pinchExpandsHeight:oo,defaultHeight:Qa,interpolate:v.interpolate,zoom:Xa,HEIGHT_GROW_SCALE:Se,maxHeight:Ua,Extrapolation:v.Extrapolation}),[Qa,Ua,oo]),io=(0,v.useAnimatedStyle)((function({_worklet_8575313032359_init_data:e,liveBoxHeight:t}){const o=()=>({height:t.value});return o.__closure={liveBoxHeight:t},o.__workletHash=8575313032359,o.__initData=e,o})({_worklet_8575313032359_init_data:ye,liveBoxHeight:no})),lo=(0,v.useAnimatedStyle)((function({_worklet_15146728279256_init_data:e,liveBoxHeight:t,winWidth:o}){const n=function(){const e=t.value,n=Math.max(o,16*e/9);return{position:'absolute',top:0,left:(o-n)/2,width:n,height:e}};return n.__closure={liveBoxHeight:t,winWidth:o},n.__workletHash=0xdc69f5bccd8,n.__initData=e,n})({_worklet_15146728279256_init_data:we,liveBoxHeight:no,winWidth:Ae}),[Ae]),so=(0,v.useDerivedValue)((function({_worklet_12291157125883_init_data:e,isWideDetail:t,insets:o,TOOLBAR_HEIGHT:n,liveBoxHeight:l}){const s=()=>t?o.top+n:o.top+l.value+n;return s.__closure={isWideDetail:t,insets:o,TOOLBAR_HEIGHT:n,liveBoxHeight:l},s.__workletHash=0xb2dc20deafb,s.__initData=e,s})({_worklet_12291157125883_init_data:je,isWideDetail:Va,insets:Be,TOOLBAR_HEIGHT:xe,liveBoxHeight:no}),[Be.top,Va]),{ref:ro,isFullscreen:uo,toggle:co}=(0,x.useWebFullscreen)(),ho=(0,n.useCallback)(()=>{co()},[co]);(0,n.useEffect)(()=>{la(uo)},[uo]),(0,n.useEffect)(()=>{},[ia]);const go=(0,n.useCallback)(async()=>{const t=Le.getSystem();if(t){ra(!0);try{const n=await t.trpcClient.snapshot.getSnapshot.query({deviceId:e,force:!0});if(!n?.base64)return void u.default.alert(o('v2.cameraDetail.snapshot'),o('v2.cameraDetail.snapshotFailed'));const l=n.contentType.includes('png')?'png':'jpg',s=`${C.cacheDirectory}snapshot-${e}-${Date.now()}.${l}`;await C.writeAsStringAsync(s,n.base64,{encoding:C.EncodingType.Base64}),await b.isAvailableAsync()&&await b.shareAsync(s,{mimeType:n.contentType})}catch{u.default.alert(o('v2.cameraDetail.snapshot'),o('v2.cameraDetail.snapshotFailed'))}finally{ra(!1)}}},[Le,e,o]),_o=(0,n.useCallback)(()=>{ot(),go()},[go,ot]),mo=(0,k.selectPlaybackStatus)(jt.state),fo=mo.isLive&&!St,po=((0,n.useMemo)(()=>fo?vt:Object.assign({},vt,{enabled:!1,motion:!1,detection:!1,audio:'off'}),[vt,fo]),(0,n.useCallback)(()=>{const e=(0,E.jogTarget)(jt.state.playhead,-1);null!=e&&jt.seek(e,'timeline')},[jt])),vo=(0,n.useCallback)(()=>{const e=(0,E.jogTarget)(jt.state.playhead,1);null!=e&&jt.seek(e,'timeline')},[jt]),So=(0,pe.jsx)(S.default.View,{style:qa?Ie.videoWrapFull:Va?[Ie.videoWrap,{width:$a.streamWidth,height:$a.streamHeight}]:oo?[Ie.videoWrap,io]:[Ie.videoWrap,{height:Qa}],children:(0,pe.jsxs)(l.default,{style:Ie.videoContent,children:[(0,pe.jsxs)(S.default.View,{style:qa||Va?[c.default.absoluteFill,Xa.videoStyle]:[lo,Xa.videoStyle],children:[St&&!Dt?(0,pe.jsx)(De,{deviceId:e}):(0,pe.jsx)(H.LiveView,{ref:Tt,deviceId:e,muted:Lt,target:Ue,showStats:ta&&!1,highlight:void 0,onPlaybackState:Pt,onPosition:jt.reportPosition},Ht),Zt&&fo?(0,pe.jsx)(V.MotionBoxesOverlay,{deviceId:e,enabled:Zt}):null,oa&&fo?(0,pe.jsx)(K.AudioLevelMeter,{deviceId:e,enabled:oa}):null]}),(0,pe.jsx)(p.GestureDetector,{gesture:ao,children:(0,pe.jsx)(S.default.View,{style:c.default.absoluteFill,onLayout:Xa.onLayout})}),null===da||ga?null:(0,pe.jsx)(Y.ZoneActiveOverlay,{zone:da}),'seeking'===jt.state.mode?(0,pe.jsx)(W.ScrubPlayerPreview,{deviceId:e,atMs:(0,k.selectActiveEpoch)(jt.state)}):null,'gap'===jt.state.mode?(0,pe.jsxs)(l.default,{pointerEvents:"none",style:[c.default.absoluteFill,Ie.noRecOverlay],children:[(0,pe.jsx)(te.VideoOff,{size:28,color:"#9aa0a6"}),(0,pe.jsx)(s.default,{style:Ie.noRecTitle,children:o('v2.theater.noRecording')}),(0,pe.jsx)(s.default,{style:Ie.noRecHint,children:o('v2.theater.noRecordingHint')})]}):null,pt&&fo?(0,pe.jsx)(l.default,{pointerEvents:"none",style:[c.default.absoluteFill,{borderWidth:Ge.highlight.thickness,borderColor:'motion'===pt?Ge.highlight.motionColor:'audio'===pt?Ge.highlight.audioColor:Ge.highlight.detectionColor}]}):null,ua?(0,pe.jsxs)(l.default,{style:Ie.nameTag,pointerEvents:"none",children:[(0,pe.jsx)(le.CameraStatusDot,{deviceId:e,online:ze,disabled:Fe,size:9}),(0,pe.jsx)(s.default,{style:Ie.nameText,numberOfLines:1,children:Re})]}):null,st&&fo?(0,pe.jsx)(ie.MotionBadge,{}):null,(0,pe.jsx)(re.DoorbellBadge,{deviceId:e,enabled:qe}),(0,pe.jsx)(se.OccupancyBadge,{deviceId:e,enabled:mo.isLive&&!St}),ua&&!mo.isLive?(0,pe.jsx)(l.default,{style:Ie.jogRow,children:(0,pe.jsx)(D.RecordedTransportBar,{rate:xt,paused:Et,onJogBack:po,onJogForward:vo,onStepFrame:Bt,onSelectRate:Wt})}):null,ta?(0,pe.jsx)(J.StreamStatsOverlay,{getStats:za}):null,(0,pe.jsx)(j.StreamOverlayControls,{visible:ua,onRequestHide:Ra,paused:Dt?Et:St,onTogglePause:Dt?It:bt,muted:Lt,onToggleMute:ba,hasTwoWayAudio:Ke,talking:Fa,onToggleTalk:Ja,onStartPip:Ma,fullscreen:ia,onToggleFullscreen:ho}),ga?(0,pe.jsx)(q.ZoneDrawOverlay,{zone:da,onConfirm:Sa,onCancel:Ca}):null]})}),Co=Va?'right':void 0,bo=Va?$a.railWidth:void 0,xo=(0,pe.jsx)(Z.TheaterTimeline,{deviceId:e,hideBack:Va,name:Re,onBack:()=>T.back(),hasPtz:Ve,ptzOpen:zt,onTogglePtz:xa,devicesOpen:Ft,onToggleDevices:ka,menuOpen:Vt,onToggleMenu:ya,exportMenuOpen:Gt,onToggleExportMenu:Ia,snapshotBusy:sa,quality:Ze,qualityOpen:nt,onToggleQuality:it,mode:jt.state.mode,activeEpoch:(0,k.selectActiveEpoch)(jt.state),onSeek:jt.seek,onScrubBegin:jt.beginScrub,onScrubMove:jt.moveScrub,onScrubCommit:jt.commitScrub,onGoLive:jt.goLive,zoneRect:da,onRequestZoneDraw:pa,onClearZone:va,onPickCamera:Ea});return(0,pe.jsxs)(l.default,{ref:ro,onLayout:Za,style:{flex:1,backgroundColor:X.background,paddingTop:qa?0:Be.top},children:[(0,pe.jsx)(f.StatusBar,{hidden:qa,style:qa||'dark'===We?'light':'dark'}),qa?So:Va?(0,pe.jsx)(Q.WideDetailLayout,{railWidth:$a.railWidth,stream:So,timeline:xo}):(0,pe.jsxs)(pe.Fragment,{children:[So,xo]}),zt?(0,pe.jsx)(A.FloatingPanel,{title:o('v2.ptz.title'),onClose:xa,closeLabel:o('v2.cameraDetail.close'),topOffset:so,align:Co,maxWidth:bo,children:(0,pe.jsx)(B.PtzControls,{deviceId:e,hasFeature:Ve})}):null,Ft?(0,pe.jsx)(A.FloatingPanel,{title:o('v2.cameraDetail.devices'),onClose:ka,closeLabel:o('v2.cameraDetail.close'),topOffset:so,align:Co,maxWidth:bo,children:(0,pe.jsx)(P.DevicesPanel,{deviceId:e})}):null,Jt?(0,pe.jsx)(A.FloatingPanel,{title:o('v2.cameraSwitcher.title'),onClose:Ea,closeLabel:o('v2.cameraDetail.close'),topOffset:so,align:Co,maxWidth:bo,children:(0,pe.jsx)(L.CameraSwitcherPanel,{currentId:e,onSwitch:Oa,onOpenGrid:Ta})}):null,Vt?(0,pe.jsx)(R.CameraMenuPanel,{boundingBoxesOn:Zt,onToggleBoundingBoxes:Ha,statsOn:ta,onToggleStats:ja,audioMeterOn:oa,onToggleAudioMeter:Da,highlight:ut,onSetHighlight:t=>ct(e,Object.assign({},ut,t)),onOpenStorage:()=>{ot(),Ut(!0)},onOpenEvents:()=>{ot(),ea(!0)},onClose:wa,topOffset:so,align:Co,maxWidth:bo}):null,nt?(0,pe.jsx)(I.QualityPicker,{value:Ze,onChange:Xe,onClose:lt,topOffset:so,align:Co,maxWidth:bo}):null,Gt?(0,pe.jsx)(z.ExportActionsPanel,{onSnapshot:_o,snapshotBusy:sa,onOpenExport:Ba,onClose:Wa,topOffset:so,align:Co,maxWidth:bo}):null,(0,pe.jsx)(M.ExportModal,{visible:Kt,deviceId:e,anchorEpoch:Yt,onClose:Aa,onCreated:Pa}),(0,pe.jsx)(F.StorageManagementModal,{visible:Qt,deviceId:e,cameraName:Re,onClose:()=>Ut(!1)}),(0,pe.jsx)(G.EventsManagementModal,{visible:Xt,deviceId:e,cameraName:Re,onClose:()=>ea(!1)})]})};var o=r(_d[0]),n=r(_d[1]),l=e(r(_d[2])),s=e(r(_d[3])),u=e(r(_d[4])),c=e(r(_d[5])),d=e(r(_d[6]));r(_d[7]);var h=r(_d[8]),_=r(_d[9]),m=r(_d[10]),f=r(_d[11]),p=r(_d[12]),v=r(_d[13]),S=e(v),C=(t(r(_d[14])),t(r(_d[15]))),b=t(r(_d[16])),x=r(_d[17]),k=r(_d[18]),E=r(_d[19]),O=r(_d[20]),T=r(_d[21]),H=r(_d[22]),y=r(_d[23]),w=r(_d[24]),j=r(_d[25]),D=r(_d[26]),I=r(_d[27]),W=r(_d[28]),B=r(_d[29]),A=r(_d[30]),P=r(_d[31]),L=r(_d[32]),R=r(_d[33]),M=r(_d[34]),z=r(_d[35]),F=r(_d[36]),G=r(_d[37]),J=r(_d[38]),V=r(_d[39]),K=r(_d[40]),q=r(_d[41]),Y=r(_d[42]),N=r(_d[43]),Z=r(_d[44]),$=r(_d[45]),Q=r(_d[46]),U=r(_d[47]),X=r(_d[48]),ee=r(_d[49]),te=r(_d[50]),ae=r(_d[51]),oe=r(_d[52]),ne=r(_d[53]),ie=r(_d[54]),le=r(_d[55]),se=r(_d[56]),re=r(_d[57]),ue=r(_d[58]),ce=r(_d[59]),de=r(_d[60]),he=r(_d[61]),ge=r(_d[62]),me=r(_d[63]),fe=r(_d[64]),pe=r(_d[65]);const ve=.5,Se=2.5,Ce=80,be=400,xe=47;function ke(e){const t=(0,o.c)(18),{t:n}=(0,h.useTranslation)(),{data:l}=(0,ee.useCameras)();let s;t[0]!==l?(s=void 0===l?[]:l,t[0]=l,t[1]=s):s=t[1];const u=s;let c;if(t[2]!==u||t[3]!==e){let o;t[5]!==e?(o=t=>t.id===e,t[5]=e,t[6]=o):o=t[6],c=u.find(o),t[2]=u,t[3]=e,t[4]=c}else c=t[4];const d=c;let _,m;t[7]!==d?.name||t[8]!==e||t[9]!==n?(_=d?.name??n("v2.cameraDetail.fallbackName",{id:e}),t[7]=d?.name,t[8]=e,t[9]=n,t[10]=_):_=t[10],t[11]!==d?.features?(m=d?.features??[],t[11]=d?.features,t[12]=m):m=t[12];const f=d?.online??!1,p=d?.disabled??!1;let v;return t[13]!==_||t[14]!==m||t[15]!==f||t[16]!==p?(v={name:_,features:m,online:f,disabled:p},t[13]=_,t[14]=m,t[15]=f,t[16]=p,t[17]=v):v=t[17],v}const Ee={code:"function CameraDetailScreenTsx1(){const{runOnJS,onToggleControls}=this.__closure;runOnJS(onToggleControls)();}"},Oe={code:"function CameraDetailScreenTsx2(){const{runOnJS,zoom}=this.__closure;runOnJS(zoom.resetZoom)();}"},Te={code:"function CameraDetailScreenTsx3(e_0){const{BACK_SWIPE_DISTANCE,BACK_SWIPE_VELOCITY,runOnJS,onSwipeBack}=this.__closure;if(e_0.translationY>BACK_SWIPE_DISTANCE&&e_0.velocityY>BACK_SWIPE_VELOCITY){runOnJS(onSwipeBack)();}}"},He={code:"function CameraDetailScreenTsx4(){const{pinchExpandsHeight,defaultHeight,interpolate,zoom,HEIGHT_GROW_SCALE,maxHeight,Extrapolation}=this.__closure;if(!pinchExpandsHeight)return defaultHeight;return interpolate(zoom.scale.value,[1,HEIGHT_GROW_SCALE],[defaultHeight,maxHeight],Extrapolation.CLAMP);}"},ye={code:"function CameraDetailScreenTsx5(){const{liveBoxHeight}=this.__closure;return{height:liveBoxHeight.value};}"},we={code:"function CameraDetailScreenTsx6(){const{liveBoxHeight,winWidth}=this.__closure;const h=liveBoxHeight.value;const coverWidth=Math.max(winWidth,h*16/9);return{position:'absolute',top:0,left:(winWidth-coverWidth)/2,width:coverWidth,height:h};}"},je={code:"function CameraDetailScreenTsx7(){const{isWideDetail,insets,TOOLBAR_HEIGHT,liveBoxHeight}=this.__closure;return isWideDetail?insets.top+TOOLBAR_HEIGHT:insets.top+liveBoxHeight.value+TOOLBAR_HEIGHT;}"};function De(e){const t=(0,o.c)(7),{deviceId:n}=e,{uri:s,headers:u,onLoad:d,onError:h}=(0,X.useSnapshot)(n,!0);let _,m;return t[0]!==u||t[1]!==h||t[2]!==d||t[3]!==s?(_=s?(0,pe.jsx)(T.Image,{source:u?{uri:s,headers:u}:{uri:s},style:c.default.absoluteFill,contentFit:"cover",cachePolicy:"memory-disk",onLoad:d,onError:h}):null,t[0]=u,t[1]=h,t[2]=d,t[3]=s,t[4]=_):_=t[4],t[5]!==_?(m=(0,pe.jsx)(l.default,{style:Ie.poster,children:_}),t[5]=_,t[6]=m):m=t[6],m}const Ie=c.default.create({videoWrap:{position:'relative',width:'100%',overflow:'hidden',backgroundColor:'#000'},videoWrapFull:Object.assign({},c.default.absoluteFill,{zIndex:50,backgroundColor:'#000'}),videoContent:{flex:1,overflow:'hidden'},noRecOverlay:{alignItems:'center',justifyContent:'center',gap:6,backgroundColor:'rgba(0,0,0,0.55)'},noRecTitle:{color:'#e8eaed',fontSize:15,fontWeight:'600'},noRecHint:{color:'#9aa0a6',fontSize:12},poster:{flex:1,backgroundColor:'#000'},nameTag:{position:'absolute',top:8,left:8,maxWidth:'70%',flexDirection:'row',alignItems:'center',gap:6,paddingHorizontal:8,paddingVertical:4,borderRadius:6,backgroundColor:'#00000080'},nameText:{color:'#fafaf9',fontSize:13,fontWeight:'600'},jogRow:{position:'absolute',bottom:56,alignSelf:'center'}})},3428,[15,17,20,112,133,33,277,136,786,743,466,3429,3241,2714,3431,3434,3439,3443,3444,3445,2587,3053,3446,3454,3455,3456,3457,3459,3462,3466,3460,3468,3485,3486,3487,3491,3492,3494,3495,3496,3497,3500,3502,3503,3504,2590,3525,3526,3143,3080,813,2594,3177,3156,3527,3158,3164,3528,3385,3530,3498,3532,3132,3139,3533,10]);
15850
15850
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"StatusBar",{enumerable:!0,get:function(){return t.StatusBar}}),Object.defineProperty(e,"setStatusBarStyle",{enumerable:!0,get:function(){return t.setStatusBarStyle}}),Object.defineProperty(e,"setStatusBarHidden",{enumerable:!0,get:function(){return t.setStatusBarHidden}});var t=r(d[0])},3429,[3430]);
15851
15851
  __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}),_e.StatusBar=s,Object.defineProperty(_e,"setStatusBarStyle",{enumerable:!0,get:function(){return c}}),Object.defineProperty(_e,"setStatusBarHidden",{enumerable:!0,get:function(){return f}});var t=e(r(d[0])),n=e(r(d[1])),u=e(r(d[2])),l=e(r(d[3])),o=r(d[4]);function s({style:e,hideTransitionAnimation:n,animated:s,hidden:c}){const f=(0,l.default)(),y=t.default.useMemo(()=>h(e,f),[e,f]);return(0,o.jsx)(u.default,{animated:s,hidden:c,barStyle:y,showHideTransition:'none'===n?void 0:n})}s.setStyle=(e,t)=>u.default.setBarStyle(h(e),t);const c=s.setStyle;s.setHidden=(e,t)=>u.default.setHidden(e,t);const f=s.setHidden;function h(e="auto",t=n.default?.getColorScheme()??'light'){t||(t='light');let u=e;return'auto'===e?u='light'===t?'dark':'light':'inverted'===e&&(u='light'===t?'light':'dark'),'light'===u?'light-content':'dark-content'}},3430,[17,222,259,275,10]);
15852
15852
  __d(function(g,r,_i,a,m,_e,d){"use strict";function n(n){return n&&n.__esModule?n:{default:n}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"Orientation",{enumerable:!0,get:function(){return i.Orientation}}),Object.defineProperty(_e,"OrientationLock",{enumerable:!0,get:function(){return i.OrientationLock}}),Object.defineProperty(_e,"WebOrientationLock",{enumerable:!0,get:function(){return i.WebOrientationLock}}),Object.defineProperty(_e,"WebOrientation",{enumerable:!0,get:function(){return i.WebOrientation}}),Object.defineProperty(_e,"SizeClassIOS",{enumerable:!0,get:function(){return i.SizeClassIOS}}),_e.lockAsync=async function(n){if(!t.default.lockAsync)throw new e.UnavailabilityError('ScreenOrientation','lockAsync');if(!Object.values(i.OrientationLock).includes(n))throw new TypeError(`Invalid Orientation Lock: ${n}`);if(n===i.OrientationLock.OTHER)return;await t.default.lockAsync(n),c=n},_e.lockPlatformAsync=async function(n){if(!t.default.lockPlatformAsync)throw new e.UnavailabilityError('ScreenOrientation','lockPlatformAsync');const{screenOrientationConstantAndroid:o,screenOrientationArrayIOS:s,screenOrientationLockWeb:l}=n;let u;if(l){if(!Object.values(i.WebOrientationLock).includes(l))throw new TypeError(`Invalid Web Orientation Lock: ${l}`);u=l}if(!u)throw new TypeError('lockPlatformAsync cannot be called with undefined option properties');await t.default.lockPlatformAsync(u),c=i.OrientationLock.OTHER},_e.unlockAsync=async function(){if(!t.default.lockAsync)throw new e.UnavailabilityError('ScreenOrientation','lockAsync');await t.default.lockAsync(i.OrientationLock.DEFAULT)},_e.getOrientationAsync=s,_e.getOrientationLockAsync=l,_e.getPlatformOrientationLockAsync=async function(){return{screenOrientationLockWeb:await t.default.getPlatformOrientationLockAsync()}},_e.supportsOrientationLockAsync=async function(n){if(!t.default.supportsOrientationLockAsync)throw new e.UnavailabilityError('ScreenOrientation','supportsOrientationLockAsync');if(!Object.values(i.OrientationLock).includes(n))throw new TypeError(`Invalid Orientation Lock: ${n}`);return await t.default.supportsOrientationLockAsync(n)},_e.addOrientationChangeListener=function(n){if('function'!=typeof n)throw new TypeError(`addOrientationChangeListener cannot be called with ${n}`);const e=u(n);return o.push(e),e},_e.removeOrientationChangeListeners=function(){let n=o.length;for(;n--;){const e=o[n];e?.remove(),o.pop()}},_e.removeOrientationChangeListener=function(n){if(!n||!n.remove)throw new TypeError("Must pass in a valid subscription");n.remove(),o=o.filter(e=>e!==n)};var e=r(d[0]),t=(n(r(d[1])),n(r(d[2]))),i=r(d[3]);let o=[],c=i.OrientationLock.UNKNOWN;async function s(){if(!t.default.getOrientationAsync)throw new e.UnavailabilityError('ScreenOrientation','getOrientationAsync');return await t.default.getOrientationAsync()}async function l(){return t.default.getOrientationLockAsync?await t.default.getOrientationLockAsync():c}function u(n){return t.default.addListener('expoDidUpdateDimensions',async e=>{n(e)})}},3431,[289,148,3432,3433]);
@@ -15872,7 +15872,7 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{v
15872
15872
  __d(function(g,r,i,a,_m,_e,_d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.handleBridgeMessage=o,_e.useEmbedIframe=function(s){const{serverUrl:t,mode:u}=s,c=(0,e.useRef)(null),d=t?new URL(t).origin:null,l=t?(0,n.buildGridEmbedUrl)(t,u):null,f=(0,e.useRef)(s.buildConfig);f.current=s.buildConfig;const m=(0,e.useRef)(s.onHostMessage);m.current=s.onHostMessage;const b=(0,e.useCallback)(e=>{c.current?.contentWindow?.postMessage(e,d??'*')},[d]);(0,e.useEffect)(()=>{const e=e=>{e.source===c.current?.contentWindow&&(d&&e.origin!==d||o(e.data,{postToEmbed:b,onHostMessage:e=>m.current(e),buildConfig:()=>f.current()}))};return window.addEventListener('message',e),()=>window.removeEventListener('message',e)},[d,b]);const p=(0,e.useCallback)(e=>{b({type:'embed-command',command:e})},[b]),C=(0,e.useCallback)(()=>{c.current&&l&&(c.current.src=l)},[l]);return{iframeRef:c,src:l,postCommand:p,reload:C}};var e=r(_d[0]),n=r(_d[1]);function o(e,n){if('object'!=typeof e||null===e)return;'embed-ready'!==e.type?n.onHostMessage(e):n.postToEmbed({type:'embed-config',config:n.buildConfig()})}},3451,[17,3452]);
15873
15873
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.buildGridEmbedUrl=function(t,n,o){let s=`${t.replace(/\/+$/,'')}${c}?mode=${n}`;o?.devices&&o.devices.length>0&&(s+=`&devices=${o.devices.join(',')}`);o?.cacheBust&&(s+=`&_cb=${encodeURIComponent(o.cacheBust)}`);return s};const c='/addon/stream-broker/embed/'},3452,[]);
15874
15874
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.playbackCommandToScript=function(c){return`try{${(()=>{switch(c.kind){case'playRecorded':return`window.__camstackEmbed.playRecorded(${c.deviceId},${c.epochMs},${JSON.stringify(c.profile)})`;case'seek':return`window.__camstackEmbed.seek(${c.epochMs})`;case'scrubStart':return"window.__camstackEmbed.scrubStart()";case'scrubTo':return`window.__camstackEmbed.scrubTo(${c.epochMs})`;case'scrubEnd':return`window.__camstackEmbed.scrubEnd(${c.epochMs})`;case'scrubCommit':return`window.__camstackEmbed.scrubCommit(${c.epochMs})`;case'setRate':return`window.__camstackEmbed.setRate(${c.rate})`;case'stepFrame':return`window.__camstackEmbed.stepFrame(${c.dir})`;case'goLive':return"window.__camstackEmbed.goLive()"}})()}}catch(e){}; true;`},e.playbackCommandToMessage=function(c){switch(c.kind){case'playRecorded':return{kind:'playRecorded',deviceId:c.deviceId,epochMs:c.epochMs,profile:c.profile};case'seek':return{kind:'seek',value:c.epochMs};case'scrubStart':return{kind:'scrubStart'};case'scrubTo':return{kind:'scrubTo',value:c.epochMs};case'scrubEnd':return{kind:'scrubEnd',value:c.epochMs};case'scrubCommit':return{kind:'scrubCommit',value:c.epochMs};case'setRate':return{kind:'setRate',value:c.rate};case'stepFrame':return{kind:'stepFrame',dir:c.dir};case'goLive':return{kind:'goLive'}}}},3453,[]);
15875
- __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useStreamZoom=function(){const S=(0,l.useSharedValue)(0),x=(0,l.useSharedValue)(0),T=(0,l.useSharedValue)(1),M=(0,l.useSharedValue)(1),f=(0,l.useSharedValue)(0),w=(0,l.useSharedValue)(0),A=(0,l.useSharedValue)(0),k=(0,l.useSharedValue)(0),L=(0,l.useSharedValue)(1),E=(0,e.useCallback)(e=>{S.value=e.nativeEvent.layout.width,x.value=e.nativeEvent.layout.height},[S,x]),C=(0,e.useMemo)(()=>t.Gesture.Pinch().onStart((function({_worklet_4354627337672_init_data:e,pinchStartScale:t,savedScale:l}){const s=function(){t.value=l.value};return s.__closure={pinchStartScale:t,savedScale:l},s.__workletHash=4354627337672,s.__initData=e,s})({_worklet_4354627337672_init_data:_,pinchStartScale:L,savedScale:M})).onUpdate((function({_worklet_8635015198446_init_data:e,layoutWidth:t,layoutHeight:l,MIN_LAYOUT:s,pinchStartScale:u,MIN_SCALE:n,MAX_SCALE:o,scale:c,tx:_,ty:v,savedTx:h,savedTy:y}){const S=function(e){const S=t.value,x=l.value;if(S<s||x<s)return;const T=u.value,M=Math.max(n,Math.min(o,T*e.scale));if(c.value=M,M<=n)_.value=0,v.value=0;else{const t=e.focalX-S/2,l=e.focalY-x/2,s=M/T,u=t-s*(t-h.value),n=l-s*(l-y.value),o=S*(M-1)/2,c=x*(M-1)/2;_.value=Math.max(-o,Math.min(o,u)),v.value=Math.max(-c,Math.min(c,n))}};return S.__closure={layoutWidth:t,layoutHeight:l,MIN_LAYOUT:s,pinchStartScale:u,MIN_SCALE:n,MAX_SCALE:o,scale:c,tx:_,ty:v,savedTx:h,savedTy:y},S.__workletHash=8635015198446,S.__initData=e,S})({_worklet_8635015198446_init_data:c,layoutWidth:S,layoutHeight:x,MIN_LAYOUT:n,pinchStartScale:L,MIN_SCALE:s,MAX_SCALE:u,scale:T,tx:f,ty:w,savedTx:A,savedTy:k})).onEnd((function({_worklet_12142156306058_init_data:e,savedScale:t,scale:l,savedTx:s,tx:u,savedTy:n,ty:o}){const c=function(){t.value=l.value,s.value=u.value,n.value=o.value};return c.__closure={savedScale:t,scale:l,savedTx:s,tx:u,savedTy:n,ty:o},c.__workletHash=0xb0b10e9d68a,c.__initData=e,c})({_worklet_12142156306058_init_data:o,savedScale:M,scale:T,savedTx:A,tx:f,savedTy:k,ty:w})),[L,M,S,x,T,f,w,A,k]),p=(0,e.useMemo)(()=>t.Gesture.Pan().maxPointers(1).minDistance(4).onUpdate((function({_worklet_13257920290229_init_data:e,scale:t,MIN_SCALE:l,layoutWidth:s,layoutHeight:u,tx:n,savedTx:o,ty:c,savedTy:_}){const v=function(e){if(t.value<=l)return;const v=s.value,h=u.value,y=t.value,S=v*(y-1)/2,x=h*(y-1)/2;n.value=Math.max(-S,Math.min(S,o.value+e.translationX)),c.value=Math.max(-x,Math.min(x,_.value+e.translationY))};return v.__closure={scale:t,MIN_SCALE:l,layoutWidth:s,layoutHeight:u,tx:n,savedTx:o,ty:c,savedTy:_},v.__workletHash=0xc0ed9a11db5,v.__initData=e,v})({_worklet_13257920290229_init_data:h,scale:T,MIN_SCALE:s,layoutWidth:S,layoutHeight:x,tx:f,savedTx:A,ty:w,savedTy:k})).onEnd((function({_worklet_1622766134377_init_data:e,savedTx:t,tx:l,savedTy:s,ty:u}){const n=function(){t.value=l.value,s.value=u.value};return n.__closure={savedTx:t,tx:l,savedTy:s,ty:u},n.__workletHash=1622766134377,n.__initData=e,n})({_worklet_1622766134377_init_data:v,savedTx:A,tx:f,savedTy:k,ty:w})),[T,S,x,f,w,A,k]),Y=(0,l.useAnimatedStyle)((function({_worklet_8154600780768_init_data:e,tx:t,ty:l,scale:s}){const u=()=>({transform:[{translateX:t.value},{translateY:l.value},{scale:s.value}]});return u.__closure={tx:t,ty:l,scale:s},u.__workletHash=8154600780768,u.__initData=e,u})({_worklet_8154600780768_init_data:y,tx:f,ty:w,scale:T})),I=(0,e.useCallback)(()=>{T.value=(0,l.withTiming)(1),M.value=1,f.value=(0,l.withTiming)(0),w.value=(0,l.withTiming)(0),A.value=0,k.value=0},[T,M,f,w,A,k]),N=(0,e.useCallback)((...e)=>t.Gesture.Simultaneous(C,p,...e),[C,p]);return{scale:T,videoStyle:Y,onLayout:E,resetZoom:I,composeWith:N}};var e=r(d[0]),t=r(d[1]),l=r(d[2]);const s=1,u=4,n=10,o={code:"function useStreamZoomTs1(){const{savedScale,scale,savedTx,tx,savedTy,ty}=this.__closure;savedScale.value=scale.value;savedTx.value=tx.value;savedTy.value=ty.value;}"},c={code:"function useStreamZoomTs2(e_0){const{layoutWidth,layoutHeight,MIN_LAYOUT,pinchStartScale,MIN_SCALE,MAX_SCALE,scale,tx,ty,savedTx,savedTy}=this.__closure;const w=layoutWidth.value;const h=layoutHeight.value;if(w<MIN_LAYOUT||h<MIN_LAYOUT)return;const s0=pinchStartScale.value;const s1=Math.max(MIN_SCALE,Math.min(MAX_SCALE,s0*e_0.scale));scale.value=s1;if(s1<=MIN_SCALE){tx.value=0;ty.value=0;}else{const dx=e_0.focalX-w/2;const dy=e_0.focalY-h/2;const k=s1/s0;const ptx=dx-k*(dx-savedTx.value);const pty=dy-k*(dy-savedTy.value);const limX=w*(s1-1)/2;const limY=h*(s1-1)/2;tx.value=Math.max(-limX,Math.min(limX,ptx));ty.value=Math.max(-limY,Math.min(limY,pty));}}"},_={code:"function useStreamZoomTs3(){const{pinchStartScale,savedScale}=this.__closure;pinchStartScale.value=savedScale.value;}"},v={code:"function useStreamZoomTs4(){const{savedTx,tx,savedTy,ty}=this.__closure;savedTx.value=tx.value;savedTy.value=ty.value;}"},h={code:"function useStreamZoomTs5(e_1){const{scale,MIN_SCALE,layoutWidth,layoutHeight,tx,savedTx,ty,savedTy}=this.__closure;if(scale.value<=MIN_SCALE)return;const w_0=layoutWidth.value;const h_0=layoutHeight.value;const s=scale.value;const limX_0=w_0*(s-1)/2;const limY_0=h_0*(s-1)/2;tx.value=Math.max(-limX_0,Math.min(limX_0,savedTx.value+e_1.translationX));ty.value=Math.max(-limY_0,Math.min(limY_0,savedTy.value+e_1.translationY));}"},y={code:"function useStreamZoomTs6(){const{tx,ty,scale}=this.__closure;return{transform:[{translateX:tx.value},{translateY:ty.value},{scale:scale.value}]};}"}},3454,[17,3242,2714]);
15875
+ __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.useStreamZoom=function(){const S=(0,l.useSharedValue)(0),x=(0,l.useSharedValue)(0),T=(0,l.useSharedValue)(1),M=(0,l.useSharedValue)(1),f=(0,l.useSharedValue)(0),w=(0,l.useSharedValue)(0),A=(0,l.useSharedValue)(0),k=(0,l.useSharedValue)(0),L=(0,l.useSharedValue)(1),E=(0,e.useCallback)(e=>{S.value=e.nativeEvent.layout.width,x.value=e.nativeEvent.layout.height},[S,x]),C=(0,e.useMemo)(()=>t.Gesture.Pinch().onStart((function({_worklet_4354627337672_init_data:e,pinchStartScale:t,savedScale:l}){const s=function(){t.value=l.value};return s.__closure={pinchStartScale:t,savedScale:l},s.__workletHash=4354627337672,s.__initData=e,s})({_worklet_4354627337672_init_data:_,pinchStartScale:L,savedScale:M})).onUpdate((function({_worklet_8635015198446_init_data:e,layoutWidth:t,layoutHeight:l,MIN_LAYOUT:s,pinchStartScale:u,MIN_SCALE:n,MAX_SCALE:o,scale:c,tx:_,ty:v,savedTx:h,savedTy:y}){const S=function(e){const S=t.value,x=l.value;if(S<s||x<s)return;const T=u.value,M=Math.max(n,Math.min(o,T*e.scale));if(c.value=M,M<=n)_.value=0,v.value=0;else{const t=e.focalX-S/2,l=e.focalY-x/2,s=M/T,u=t-s*(t-h.value),n=l-s*(l-y.value),o=S*(M-1)/2,c=x*(M-1)/2;_.value=Math.max(-o,Math.min(o,u)),v.value=Math.max(-c,Math.min(c,n))}};return S.__closure={layoutWidth:t,layoutHeight:l,MIN_LAYOUT:s,pinchStartScale:u,MIN_SCALE:n,MAX_SCALE:o,scale:c,tx:_,ty:v,savedTx:h,savedTy:y},S.__workletHash=8635015198446,S.__initData=e,S})({_worklet_8635015198446_init_data:c,layoutWidth:S,layoutHeight:x,MIN_LAYOUT:n,pinchStartScale:L,MIN_SCALE:s,MAX_SCALE:u,scale:T,tx:f,ty:w,savedTx:A,savedTy:k})).onEnd((function({_worklet_12142156306058_init_data:e,savedScale:t,scale:l,savedTx:s,tx:u,savedTy:n,ty:o}){const c=function(){t.value=l.value,s.value=u.value,n.value=o.value};return c.__closure={savedScale:t,scale:l,savedTx:s,tx:u,savedTy:n,ty:o},c.__workletHash=0xb0b10e9d68a,c.__initData=e,c})({_worklet_12142156306058_init_data:o,savedScale:M,scale:T,savedTx:A,tx:f,savedTy:k,ty:w})),[L,M,S,x,T,f,w,A,k]),p=(0,e.useMemo)(()=>t.Gesture.Pan().maxPointers(1).minDistance(4).onUpdate((function({_worklet_13257920290229_init_data:e,scale:t,MIN_SCALE:l,layoutWidth:s,layoutHeight:u,tx:n,savedTx:o,ty:c,savedTy:_}){const v=function(e){if(t.value<=l)return;const v=s.value,h=u.value,y=t.value,S=v*(y-1)/2,x=h*(y-1)/2;n.value=Math.max(-S,Math.min(S,o.value+e.translationX)),c.value=Math.max(-x,Math.min(x,_.value+e.translationY))};return v.__closure={scale:t,MIN_SCALE:l,layoutWidth:s,layoutHeight:u,tx:n,savedTx:o,ty:c,savedTy:_},v.__workletHash=0xc0ed9a11db5,v.__initData=e,v})({_worklet_13257920290229_init_data:h,scale:T,MIN_SCALE:s,layoutWidth:S,layoutHeight:x,tx:f,savedTx:A,ty:w,savedTy:k})).onEnd((function({_worklet_1622766134377_init_data:e,savedTx:t,tx:l,savedTy:s,ty:u}){const n=function(){t.value=l.value,s.value=u.value};return n.__closure={savedTx:t,tx:l,savedTy:s,ty:u},n.__workletHash=1622766134377,n.__initData=e,n})({_worklet_1622766134377_init_data:v,savedTx:A,tx:f,savedTy:k,ty:w})),[T,S,x,f,w,A,k]),Y=(0,l.useAnimatedStyle)((function({_worklet_8154600780768_init_data:e,tx:t,ty:l,scale:s}){const u=()=>({transform:[{translateX:t.value},{translateY:l.value},{scale:s.value}]});return u.__closure={tx:t,ty:l,scale:s},u.__workletHash=8154600780768,u.__initData=e,u})({_worklet_8154600780768_init_data:y,tx:f,ty:w,scale:T})),I=(0,e.useCallback)(()=>{T.value=(0,l.withTiming)(1),M.value=1,f.value=(0,l.withTiming)(0),w.value=(0,l.withTiming)(0),A.value=0,k.value=0},[T,M,f,w,A,k]),N=(0,e.useCallback)((...e)=>t.Gesture.Simultaneous(C,p,...e),[C,p]);return{scale:T,videoStyle:Y,onLayout:E,resetZoom:I,composeWith:N}};var e=r(d[0]),t=r(d[1]),l=r(d[2]);const s=1,u=4,n=10,o={code:"function useStreamZoomTs1(){const{savedScale,scale,savedTx,tx,savedTy,ty}=this.__closure;savedScale.value=scale.value;savedTx.value=tx.value;savedTy.value=ty.value;}"},c={code:"function useStreamZoomTs2(e_0){const{layoutWidth,layoutHeight,MIN_LAYOUT,pinchStartScale,MIN_SCALE,MAX_SCALE,scale,tx,ty,savedTx,savedTy}=this.__closure;const w=layoutWidth.value;const h=layoutHeight.value;if(w<MIN_LAYOUT||h<MIN_LAYOUT)return;const s0=pinchStartScale.value;const s1=Math.max(MIN_SCALE,Math.min(MAX_SCALE,s0*e_0.scale));scale.value=s1;if(s1<=MIN_SCALE){tx.value=0;ty.value=0;}else{const dx=e_0.focalX-w/2;const dy=e_0.focalY-h/2;const k=s1/s0;const ptx=dx-k*(dx-savedTx.value);const pty=dy-k*(dy-savedTy.value);const limX=w*(s1-1)/2;const limY=h*(s1-1)/2;tx.value=Math.max(-limX,Math.min(limX,ptx));ty.value=Math.max(-limY,Math.min(limY,pty));}}"},_={code:"function useStreamZoomTs3(){const{pinchStartScale,savedScale}=this.__closure;pinchStartScale.value=savedScale.value;}"},v={code:"function useStreamZoomTs4(){const{savedTx,tx,savedTy,ty}=this.__closure;savedTx.value=tx.value;savedTy.value=ty.value;}"},h={code:"function useStreamZoomTs5(e_1){const{scale,MIN_SCALE,layoutWidth,layoutHeight,tx,savedTx,ty,savedTy}=this.__closure;if(scale.value<=MIN_SCALE)return;const w_0=layoutWidth.value;const h_0=layoutHeight.value;const s=scale.value;const limX_0=w_0*(s-1)/2;const limY_0=h_0*(s-1)/2;tx.value=Math.max(-limX_0,Math.min(limX_0,savedTx.value+e_1.translationX));ty.value=Math.max(-limY_0,Math.min(limY_0,savedTy.value+e_1.translationY));}"},y={code:"function useStreamZoomTs6(){const{tx,ty,scale}=this.__closure;return{transform:[{translateX:tx.value},{translateY:ty.value},{scale:scale.value}]};}"}},3454,[17,3241,2714]);
15876
15876
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useIntercom=function(s){const o=(0,t.c)(10),[u,l]=(0,n.useState)("idle");let f,b,M;o[0]!==s?(f=()=>{const t=(0,c.getEmbedChannel)(s);if(t)return l(t.getMicState()),t.subscribeMicState(l)},b=[s],o[0]=s,o[1]=f,o[2]=b):(f=o[1],b=o[2]);(0,n.useEffect)(f,b),o[3]!==s?(M=()=>{const t=(0,c.getEmbedChannel)(s);if(!t)return;const n=t.getMicState();"starting"!==n&&t.postCommand({kind:"setMic",value:"talking"!==n})},o[3]=s,o[4]=M):M=o[4];const k=M,S="talking"===u,_="starting"===u,v="error"===u?"intercom error":null;let C;o[5]!==S||o[6]!==_||o[7]!==v||o[8]!==k?(C={talking:S,busy:_,error:v,toggle:k},o[5]=S,o[6]=_,o[7]=v,o[8]=k,o[9]=C):C=o[9];return C};var t=r(d[0]),n=r(d[1]),c=r(d[2])},3455,[15,17,3450]);
15877
15877
  __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}),_e.StreamOverlayControls=function(e){const s=(0,t.c)(58),{visible:l,onRequestHide:d,paused:p,onTogglePause:h,muted:x,onToggleMute:j,hasTwoWayAudio:T,talking:S,onToggleTalk:B,onStartPip:C,fullscreen:M,onToggleFullscreen:R}=e,{t:_}=(0,b.useTranslation)(),k=(0,n.useRef)(null);let I,z,A;s[0]!==d||s[1]!==p||s[2]!==l?(I=()=>(k.current&&clearTimeout(k.current),l&&!p&&(k.current=setTimeout(d,v)),()=>{k.current&&clearTimeout(k.current)}),z=[l,p,d],s[0]=d,s[1]=p,s[2]=l,s[3]=I,s[4]=z):(I=s[3],z=s[4]);(0,n.useEffect)(I,z),s[5]!==d||s[6]!==p?(A=e=>()=>{e(),k.current&&clearTimeout(k.current),p||(k.current=setTimeout(d,v))},s[5]=d,s[6]=p,s[7]=A):A=s[7];const E=A;if(!l)return null;const w=p?u.Play:u.Pause;let F,G,N;s[8]!==p||s[9]!==_?(F=_(p?"v2.streamBar.play":"v2.streamBar.pause"),s[8]=p,s[9]=_,s[10]=F):F=s[10];s[11]!==h||s[12]!==E?(G=E(h),s[11]=h,s[12]=E,s[13]=G):G=s[13];s[14]!==w||s[15]!==F||s[16]!==G?(N=(0,f.jsx)(o.default,{style:P.center,pointerEvents:"box-none",children:(0,f.jsx)(y,{icon:w,label:F,big:!0,onPress:G})}),s[14]=w,s[15]=F,s[16]=G,s[17]=N):N=s[17];const O=x?u.VolumeX:u.Volume2;let V;s[18]!==x||s[19]!==_?(V=_(x?"v2.streamBar.unmute":"v2.streamBar.mute"),s[18]=x,s[19]=_,s[20]=V):V=s[20];const W=!x;let q,D,H,L;s[21]!==j||s[22]!==E?(q=E(j),s[21]=j,s[22]=E,s[23]=q):q=s[23];s[24]!==W||s[25]!==q||s[26]!==O||s[27]!==V?(D=(0,f.jsx)(y,{icon:O,label:V,active:W,onPress:q}),s[24]=W,s[25]=q,s[26]=O,s[27]=V,s[28]=D):D=s[28];s[29]!==T||s[30]!==B||s[31]!==E||s[32]!==_||s[33]!==S?(H=T?(0,f.jsx)(y,{icon:S?u.Mic:u.MicOff,label:_(S?"v2.streamBar.talkStop":"v2.streamBar.talkStart"),active:S,onPress:E(B)}):null,s[29]=T,s[30]=B,s[31]=E,s[32]=_,s[33]=S,s[34]=H):H=s[34];s[35]!==C||s[36]!==E||s[37]!==_?(L=null,s[35]=C,s[36]=E,s[37]=_,s[38]=L):L=s[38];const X=M?u.Minimize2:u.Maximize2;let J,K,Q,U,Y;s[39]!==M||s[40]!==_?(J=_(M?"v2.streamBar.exitFullscreen":"v2.streamBar.fullscreen"),s[39]=M,s[40]=_,s[41]=J):J=s[41];s[42]!==R||s[43]!==E?(K=E(R),s[42]=R,s[43]=E,s[44]=K):K=s[44];s[45]!==M||s[46]!==X||s[47]!==J||s[48]!==K?(Q=(0,f.jsx)(y,{icon:X,label:J,active:M,onPress:K}),s[45]=M,s[46]=X,s[47]=J,s[48]=K,s[49]=Q):Q=s[49];s[50]!==D||s[51]!==H||s[52]!==L||s[53]!==Q?(U=(0,f.jsxs)(o.default,{style:P.bottomRight,pointerEvents:"box-none",children:[D,H,L,Q]}),s[50]=D,s[51]=H,s[52]=L,s[53]=Q,s[54]=U):U=s[54];s[55]!==U||s[56]!==N?(Y=(0,f.jsxs)(o.default,{style:c.default.absoluteFill,pointerEvents:"box-none",children:[N,U]}),s[55]=U,s[56]=N,s[57]=Y):Y=s[57];return Y};var t=r(_d[0]),n=r(_d[1]),o=e(r(_d[2])),s=e(r(_d[3])),l=e(r(_d[4]));r(_d[5]);var c=e(r(_d[6])),u=r(_d[7]),b=r(_d[8]),d=r(_d[9]),f=r(_d[10]);const v=3500,p='rgba(0,0,0,0.55)',h='rgba(59,130,246,0.85)',x='#fafaf9';function y(e){const n=(0,t.c)(17),{icon:o,label:c,onPress:u,big:b,active:d,badge:v}=e,y=void 0!==b&&b,j=void 0!==d&&d,T=y?52:40;let S,B;n[0]!==j?(S={selected:j},n[0]=j,n[1]=S):S=n[1],n[2]!==j||n[3]!==T?(B=e=>{const{pressed:t}=e;return[P.btn,{width:T,height:T,borderRadius:T/2,backgroundColor:j?h:p,opacity:t?.7:1}]},n[2]=j,n[3]=T,n[4]=B):B=n[4];const C=y?22:18;let M,R,_;return n[5]!==o||n[6]!==C?(M=(0,f.jsx)(o,{size:C,color:x}),n[5]=o,n[6]=C,n[7]=M):M=n[7],n[8]!==v?(R=v?(0,f.jsx)(s.default,{style:P.badge,children:v}):null,n[8]=v,n[9]=R):R=n[9],n[10]!==c||n[11]!==u||n[12]!==S||n[13]!==B||n[14]!==M||n[15]!==R?(_=(0,f.jsxs)(l.default,{onPress:u,accessibilityRole:"button",accessibilityLabel:c,accessibilityState:S,hitSlop:6,style:B,children:[M,R]}),n[10]=c,n[11]=u,n[12]=S,n[13]=B,n[14]=M,n[15]=R,n[16]=_):_=n[16],_}const P=c.default.create({center:{position:'absolute',top:0,left:0,right:0,bottom:0,alignItems:'center',justifyContent:'center'},bottomRight:{position:'absolute',right:d.SPACING.md,bottom:d.SPACING.md,flexDirection:'row',gap:d.SPACING.md},btn:{alignItems:'center',justifyContent:'center'},badge:{position:'absolute',right:2,bottom:2,color:x,fontSize:9,fontWeight:'700'}})},3456,[15,17,20,112,252,136,33,813,786,2589,10]);
15878
15878
  __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}),_e.RecordedTransportBar=function(e){const c=(0,t.c)(51),{rate:p,paused:h,onJogBack:x,onJogForward:S,onStepFrame:R,onSelectRate:_}=e,{t:v}=(0,u.useTranslation)(),[B,T]=(0,l.useState)(!1),I=1!==p;let k;c[0]!==h?(k=(0,f.shouldShowStepControls)(h),c[0]=h,c[1]=k):k=c[1];const A=k;let L,P,C,z,w,H;c[2]===Symbol.for("react.memo_cache_sentinel")?(L=(0,b.jsx)(o.default,{style:j.jogText,children:"\u221210s"}),c[2]=L):L=c[2];c[3]!==x?(P=(0,b.jsx)(s.default,{onPress:x,style:j.jogButton,accessibilityRole:"button",accessibilityLabel:"-10s",children:L}),c[3]=x,c[4]=P):P=c[4];c[5]!==R||c[6]!==A||c[7]!==v?(C=A?(0,b.jsx)(s.default,{onPress:()=>R(-1),style:j.jogButton,accessibilityRole:"button",accessibilityLabel:v("v2.playback.prevFrame"),children:(0,b.jsx)(o.default,{style:j.jogText,children:"\u2039|"})}):null,c[5]=R,c[6]=A,c[7]=v,c[8]=C):C=c[8];c[9]!==C?(z=(0,b.jsx)(n.default,{style:j.stepSlot,children:C}),c[9]=C,c[10]=z):z=c[10];c[11]!==I||c[12]!==B||c[13]!==_||c[14]!==p||c[15]!==v?(w=B?(0,b.jsxs)(n.default,{style:j.menu,accessibilityRole:"menu",children:[f.PLAYBACK_RATE_OPTIONS.map(e=>{const t=e===p;return(0,b.jsx)(s.default,{onPress:()=>{_(e),T(!1)},style:[j.menuItem,t?j.menuItemActive:null],accessibilityRole:"menuitem",accessibilityState:{selected:t},accessibilityLabel:(0,f.formatRateLabel)(e),children:(0,b.jsx)(o.default,{style:j.menuItemText,children:(0,f.formatRateLabel)(e)})},e)}),(0,b.jsx)(o.default,{style:j.menuHint,children:v(I?"v2.playback.audioMuted":"v2.playback.audioOn")})]}):null,c[11]=I,c[12]=B,c[13]=_,c[14]=p,c[15]=v,c[16]=w):w=c[16];c[17]===Symbol.for("react.memo_cache_sentinel")?(H=()=>T(y),c[17]=H):H=c[17];const V=1!==p?j.jogButtonActive:null;let W,F,O,M;c[18]!==V?(W=[j.jogButton,V],c[18]=V,c[19]=W):W=c[19];c[20]!==B?(F={expanded:B},c[20]=B,c[21]=F):F=c[21];c[22]!==v?(O=v("v2.playback.speed"),c[22]=v,c[23]=O):O=c[23];c[24]!==p?(M=(0,f.formatRateLabel)(p),c[24]=p,c[25]=M):M=c[25];const J=`${M} \u25be`;let D,E,K,N,Y,$,q,G;c[26]!==J?(D=(0,b.jsx)(o.default,{style:j.jogText,children:J}),c[26]=J,c[27]=D):D=c[27];c[28]!==F||c[29]!==O||c[30]!==D||c[31]!==W?(E=(0,b.jsx)(s.default,{onPress:H,style:W,accessibilityRole:"button",accessibilityState:F,accessibilityLabel:O,children:D}),c[28]=F,c[29]=O,c[30]=D,c[31]=W,c[32]=E):E=c[32];c[33]!==E||c[34]!==w?(K=(0,b.jsxs)(n.default,{style:j.speedAnchor,children:[w,E]}),c[33]=E,c[34]=w,c[35]=K):K=c[35];c[36]!==R||c[37]!==A||c[38]!==v?(N=A?(0,b.jsx)(s.default,{onPress:()=>R(1),style:j.jogButton,accessibilityRole:"button",accessibilityLabel:v("v2.playback.nextFrame"),children:(0,b.jsx)(o.default,{style:j.jogText,children:"|\u203a"})}):null,c[36]=R,c[37]=A,c[38]=v,c[39]=N):N=c[39];c[40]!==N?(Y=(0,b.jsx)(n.default,{style:j.stepSlot,children:N}),c[40]=N,c[41]=Y):Y=c[41];c[42]===Symbol.for("react.memo_cache_sentinel")?($=(0,b.jsx)(o.default,{style:j.jogText,children:"+10s"}),c[42]=$):$=c[42];c[43]!==S?(q=(0,b.jsx)(s.default,{onPress:S,style:j.jogButton,accessibilityRole:"button",accessibilityLabel:"+10s",children:$}),c[43]=S,c[44]=q):q=c[44];c[45]!==K||c[46]!==Y||c[47]!==q||c[48]!==P||c[49]!==z?(G=(0,b.jsxs)(n.default,{style:j.row,children:[P,z,K,Y,q]}),c[45]=K,c[46]=Y,c[47]=q,c[48]=P,c[49]=z,c[50]=G):G=c[50];return G};var t=r(d[0]),l=r(d[1]),n=e(r(d[2])),o=e(r(d[3])),s=e(r(d[4])),c=e(r(d[5])),u=r(d[6]),f=r(d[7]),b=r(d[8]);function y(e){return!e}const j=c.default.create({row:{flexDirection:'row',alignItems:'center',gap:10},jogButton:{paddingHorizontal:12,paddingVertical:6,borderRadius:14,backgroundColor:'#00000099'},jogButtonActive:{backgroundColor:'rgba(59,130,246,0.85)'},jogText:{color:'#ffffff',fontSize:12,fontWeight:'700',fontVariant:['tabular-nums']},stepSlot:{minWidth:44,alignItems:'center',justifyContent:'center'},speedAnchor:{position:'relative',alignItems:'center'},menu:{position:'absolute',bottom:'100%',marginBottom:8,alignSelf:'center',minWidth:96,paddingVertical:4,borderRadius:12,backgroundColor:'#000000cc'},menuItem:{paddingHorizontal:14,paddingVertical:8,alignItems:'center'},menuItemActive:{backgroundColor:'rgba(59,130,246,0.85)'},menuItemText:{color:'#ffffff',fontSize:13,fontWeight:'700',fontVariant:['tabular-nums']},menuHint:{color:'#d4d4d8',fontSize:10,fontWeight:'600',textAlign:'center',paddingHorizontal:10,paddingTop:4,paddingBottom:2}})},3457,[15,17,20,112,252,33,786,3458,10]);
@@ -15922,7 +15922,7 @@ __d(function(g,r,i,a,m,_e,d){"use strict";function e(e){return e&&e.__esModule?e
15922
15922
  __d(function(g,r,i,_a,m,_e,d){"use strict";function n(n,t){return n.x<t.x+t.w&&t.x<n.x+n.w&&n.y<t.y+t.h&&t.y<n.y+n.h}function t(n,t){return t.w<=0||t.h<=0?null:{x:n.x/t.w,y:n.y/t.h,w:n.w/t.w,h:n.h/t.h}}function e(n){let t=0,e=0;for(const o of n)for(const n of o)n.x+n.w>t&&(t=n.x+n.w),n.y+n.h>e&&(e=n.y+n.h);return t>0&&e>0?{w:t,h:e}:null}function o(n){return'object'==typeof n&&null!==n&&!Array.isArray(n)}function u(n){if(!o(n))return null;const{x:t,y:e,w:u,h:f}=n;return'number'!=typeof t||'number'!=typeof e||'number'!=typeof u||'number'!=typeof f?null:u>0&&f>0?{x:t,y:e,w:u,h:f}:null}function f(e,o,u){if(void 0===e||0===e.length)return!0;for(const f of e){const e=t(f,o);if(null!==e&&n(e,u))return!0}return!1}Object.defineProperty(_e,'__esModule',{value:!0}),_e.rectsIntersect=n,_e.normalizeRect=t,_e.estimateFrameSize=e,_e.parsePositionBoxes=function(n){if(!o(n)||!Array.isArray(n.positions))return[];const t=[];for(const e of n.positions){if(!o(e))continue;const n=u(e.bbox);null!==n&&t.push(n)}return t},_e.trackMatchesZone=f,_e.filterEventsByZone=function(n,t){if(null===t)return n;const o=e(n.map(n=>n.positionBoxes??[]));return null===o?n:n.filter(n=>f(n.positionBoxes,o,t))},Object.defineProperty(_e,"MIN_ZONE_FRACTION",{enumerable:!0,get:function(){return s}}),_e.dragToRect=function(n,t,e,o,u,f){if(u<=0||f<=0)return null;const s=n=>Math.min(1,Math.max(0,n)),c=s(Math.min(n,e)/u),l=s(Math.min(t,o)/f),a=s(Math.max(n,e)/u),h=s(Math.max(t,o)/f);return{x:c,y:l,w:a-c,h:h-l}},_e.isZoneUsable=function(n){return n.w>=s&&n.h>=s};const s=.02},3501,[]);
15923
15923
  __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,"ZoneActiveOverlay",{enumerable:!0,get:function(){return u}});var t=r(d[0]),o=r(d[1]),n=e(r(d[2])),h=e(r(d[3])),l=r(d[4]),c=r(d[5]);const u=(0,o.memo)(function(e){const u=(0,t.c)(9),{zone:f}=e,{colors:w}=(0,l.useTheme)();let b;u[0]===Symbol.for("react.memo_cache_sentinel")?(b={width:0,height:0},u[0]=b):b=u[0];const[y,_]=(0,o.useState)(b);let v;u[1]===Symbol.for("react.memo_cache_sentinel")?(v=e=>{const{width:t,height:o}=e.nativeEvent.layout;_({width:t,height:o})},u[1]=v):v=u[1];const p=v;let j,x;return u[2]!==y.height||u[3]!==y.width||u[4]!==w||u[5]!==f?(j=y.width>0&&y.height>0?(0,c.jsx)(n.default,{style:[s.zoneRect,{borderColor:w.warning,backgroundColor:`${w.warning}14`,left:f.x*y.width,top:f.y*y.height,width:f.w*y.width,height:f.h*y.height}]}):null,u[2]=y.height,u[3]=y.width,u[4]=w,u[5]=f,u[6]=j):j=u[6],u[7]!==j?(x=(0,c.jsx)(n.default,{style:h.default.absoluteFill,onLayout:p,pointerEvents:"none",children:j}),u[7]=j,u[8]=x):x=u[8],x}),s=h.default.create({zoneRect:{position:'absolute',borderWidth:1.5,borderRadius:2}})},3502,[15,17,20,33,2587,10]);
15924
15924
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.serializeAdhocDeviceIds=function(t){return t.filter(t=>Number.isInteger(t)&&t>0).join(',')},e.parseAdhocDeviceIds=function(t){if(void 0===t)return[];const n='string'==typeof t?t:t.join(','),o=new Set,s=[];for(const t of n.split(',')){const n=Number(t.trim());Number.isInteger(n)&&n>0&&!o.has(n)&&(o.add(n),s.push(n))}return s}},3503,[]);
15925
- __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,"TheaterTimeline",{enumerable:!0,get:function(){return Y}});var t=r(_d[0]),o=e(r(_d[1])),n=e(r(_d[2])),s=e(r(_d[3])),l=e(r(_d[4])),c=r(_d[5]),u=r(_d[6]),d=r(_d[7]),f=r(_d[8]),h=r(_d[9]),p=r(_d[10]),v=r(_d[11]),b=r(_d[12]),M=r(_d[13]),C=r(_d[14]),T=r(_d[15]),S=r(_d[16]),x=r(_d[17]),y=r(_d[18]),I=r(_d[19]),P=r(_d[20]),k=r(_d[21]),L=r(_d[22]),D=r(_d[23]),E=r(_d[24]),w=r(_d[25]),A=r(_d[26]),R=r(_d[27]),O=r(_d[28]),j=r(_d[29]),z=r(_d[30]),B=r(_d[31]),F=r(_d[32]),W=r(_d[33]),_=r(_d[34]),K=r(_d[35]),Z=r(_d[36]),H=r(_d[37]),N=r(_d[38]),G=r(_d[39]);const q=864e5,V=h.SPACING.lg+36+h.SPACING.md,U='#ffffff',Y=(0,t.memo)(function(e){const{t:s}=(0,c.useTranslation)(),{colors:Y}=(0,f.useTheme)(),X=(0,u.useSafeAreaInsets)(),[$,J]=(0,t.useState)(()=>Date.now());(0,t.useEffect)(()=>{const e=setInterval(()=>J(Date.now()),1e3);return()=>clearInterval(e)},[]);const ee=(0,B.useSettings)().settings.clusters,[te,oe]=(0,t.useState)(T.DEFAULT_ZOOM_INDEX),ne=te<T.ZOOM_LEVELS.length-1,re=te>0,ie=(0,t.useCallback)(()=>oe(e=>(0,T.clampZoomIndex)(e+1)),[]),ae=(0,t.useCallback)(()=>oe(e=>(0,T.clampZoomIndex)(e-1)),[]),[se,le]=(0,t.useState)(0),[ce,ue]=(0,t.useState)(0),[de,me]=(0,t.useState)(0),ge=(0,t.useCallback)(e=>{const{height:t,width:o}=e.nativeEvent.layout;t>0&&ue(t),o>0&&me(o)},[]),fe=(0,t.useMemo)(()=>(0,y.indicatorOffsetPx)(ce,ee.indicatorPositionPct),[ce,ee.indicatorPositionPct]),he=(0,t.useRef)(fe),pe=(0,t.useRef)(ce);(0,t.useEffect)(()=>{he.current=fe,pe.current=ce},[fe,ce]);const ve=(0,F.useCameraPrefsStore)(t=>t.prefs.byId[e.deviceId]?.timelineKinds),be=(0,F.useCameraPrefsStore)(t=>t.prefs.byId[e.deviceId]?.timelineClasses),Me=(0,F.useCameraPrefsStore)(e=>e.setCameraTimelineKinds),Ce=(0,F.useCameraPrefsStore)(e=>e.setCameraTimelineClasses),Te=(0,F.useCameraPrefsStore)(e=>e.toggleCameraTimelineKind),Se=(0,F.useCameraPrefsStore)(e=>e.toggleCameraTimelineClass),xe=(0,F.useCameraPrefsStore)(e=>e.hydrate);(0,t.useEffect)(()=>{xe()},[xe]);const ye=(0,t.useMemo)(()=>new Set(ve??T.ALL_BAR_KINDS),[ve]),Ie=(0,t.useMemo)(()=>new Set(be??[]),[be]),[Pe,ke]=(0,t.useState)(!1),Le=!(0,T.isFilterAll)(ye)||Ie.size>0,De=(0,w.useEventKinds)([e.deviceId]),Ee=(0,t.useMemo)(()=>(0,A.classToMacroMap)(De.data??[]),[De.data]),we=(0,F.useCameraPrefsStore)(t=>t.prefs.byId[e.deviceId]?.highlight),Ae=(0,t.useMemo)(()=>(0,R.withHighlightDefaults)(we).clusterLabel,[we]),Re=(0,t.useCallback)(()=>ke(e=>!e),[]),Oe=(0,t.useCallback)(()=>{Me(e.deviceId,[...T.ALL_BAR_KINDS]),Ce(e.deviceId,[])},[Me,Ce,e.deviceId]),je=(0,t.useCallback)(t=>Te(e.deviceId,t),[Te,e.deviceId]),ze=(0,t.useCallback)(t=>Se(e.deviceId,t),[Se,e.deviceId]),Be=e.zoneRect,Fe=$,We='live'===e.mode,Ke=e.activeEpoch??$,Ze=(0,t.useMemo)(()=>{const e=new Date(Ke);return e.setHours(0,0,0,0),e.getTime()},[Ke]),He=(0,t.useMemo)(()=>({from:Ze,to:Ze+q}),[Ze]),[Ne,Ge]=(0,t.useState)(1),qe=Ze-(Ne-1)*q,Ve=(0,t.useRef)(1);(0,t.useEffect)(()=>{Ve.current=Ne},[Ne]);const Ue=(0,t.useRef)(qe);(0,t.useEffect)(()=>{Ue.current=qe},[qe]);const Ye=(0,t.useRef)(0);(0,t.useEffect)(()=>{Ge(1)},[Ze]);const Qe=(0,t.useMemo)(()=>{const e=new Date($);return e.setHours(0,0,0,0),e.getTime()},[$]),[Xe,$e]=(0,t.useState)(!1),[Je,et]=(0,t.useState)(Ze),{fromMs:tt,toMs:ot}=(0,t.useMemo)(()=>(0,j.monthBoundsForMs)(Je),[Je]),{data:nt}=(0,P.useDaysWithRecordings)(e.deviceId,tt,ot,Xe),rt=e.onSeek,it=(0,t.useCallback)(()=>{rt((0,z.dayAtSameTime)(Ke,Ze-q,$),'timeline')},[rt,Ke,Ze,$]),at=(0,t.useCallback)(()=>{Ze>=Qe||rt((0,z.dayAtSameTime)(Ke,Ze+q,$),'timeline')},[rt,Ke,Ze,Qe,$]),st=(0,t.useCallback)(()=>{et(Ze),$e(!0)},[Ze]),lt=(0,t.useCallback)(e=>{$e(!1),rt((0,z.dayAtSameTime)(Ke,e,$),'timeline')},[rt,Ke,$]),ct=(0,t.useCallback)(e=>{et(t=>{const o=new Date(t);return new Date(o.getFullYear(),o.getMonth()+e,1,0,0,0,0).getTime()})},[]),{data:ut=[]}=(0,W.useDeviceTracks)(e.deviceId,qe,He.to),dt=(0,t.useMemo)(()=>{const e=ee.minImportance;return e<=0?ut:ut.filter(t=>(0,_.passesImportanceFilter)(t.importance,e))},[ut,ee.minImportance]),mt=(0,t.useMemo)(()=>{const e=new Set;for(const t of dt)t.className.length>0&&e.add(t.className);return[...(0,A.collapseToMacro)([...e],Ee)].sort()},[dt,Ee]),gt=(0,T.isFilterAll)(ye),ft=(0,t.useMemo)(()=>(0,E.filterEventsByZone)(dt,Be),[dt,Be]),ht=(0,t.useMemo)(()=>(0,D.filterDetectionsByKind)(ft,ye,Ie,Ee),[ft,ye,Ie,Ee]),pt=(0,K.useTimelineActivity)(e.deviceId,qe,He.to),vt=(0,t.useMemo)(()=>de>0?Math.round(de*ee.cardWidthFraction):0,[de,ee.cardWidthFraction]),bt=(0,t.useMemo)(()=>vt>0?Math.round(.5625*vt):0,[vt]),{sizePx:Mt,gapPx:Ct}=(0,t.useMemo)(()=>{const e=Math.max(8,bt);return{sizePx:e,gapPx:ee.gapPercent/100*e}},[bt,ee.gapPercent]),Tt=(0,t.useMemo)(()=>(0,Z.clusterByZoom)(ht,{topMs:Fe,zoomIndex:te,sizePx:Mt,gapPx:Ct}),[ht,Fe,te,Mt,Ct]),St=Tt.filter(e=>e.topPx>=se-80-e.heightPx&&e.topPx<=se+ce+80).length;(0,t.useEffect)(()=>{const t=e=>new Date(e).toLocaleTimeString(),o=dt.map(e=>e.timestamp);L.log.info('theater:clusters','render state',{deviceId:e.deviceId,objectEvents:dt.length,objectEventRange:o.length>0?{first:t(Math.min(...o)),last:t(Math.max(...o))}:null,clusters:Tt.length,clusterSpans:Tt.slice(0,8).map(e=>({s:t(e.startMs),e:t(e.endMs),n:e.events.length,topPx:Math.round(e.topPx)})),visibleClusters:St,activity:{recording:pt.recording.length,motion:pt.motion.length,audio:pt.audio.length},geometry:{cardWidth:vt,viewportHeight:ce,listWrapWidth:de,scrollOffsetY:se,sizePx:Mt,gapPx:Ct,zoomIndex:te},dayWindow:He})},[e.deviceId,dt,Tt,St,pt.recording.length,pt.motion.length,pt.audio.length,vt,ce,de,se,Mt,Ct,te,He]);const{data:xt=[]}=(0,P.useRecordingAvailability)(e.deviceId,He.from,He.to,!0);(0,t.useEffect)(()=>{L.log.info('timeline','coverage',{deviceId:e.deviceId,count:xt.length})},[e.deviceId,xt.length]);const yt=(0,t.useMemo)(()=>{const t=e.activeEpoch;return null===t?(0,T.heatmapCursorFraction)($):(0,x.epochToDayFraction)(t,He.from,He.to)},[e.activeEpoch,He,$]),It=(0,t.useRef)(null),[Pt,kt]=(0,t.useState)(null),Lt=(0,t.useRef)(0),Dt=(0,t.useRef)(!1),Et=(0,t.useRef)(null),wt=(0,t.useRef)(null),At=(0,t.useRef)(We);At.current=We;const Rt=(0,t.useRef)(!1),Ot=(0,t.useRef)(0),jt=(0,t.useRef)(null),zt=(0,t.useCallback)(()=>{Rt.current=!1,jt.current&&(clearTimeout(jt.current),jt.current=null)},[]),Bt=(0,t.useCallback)((e,t)=>{Rt.current=!0,Ot.current=e,jt.current&&clearTimeout(jt.current),jt.current=setTimeout(()=>{Rt.current=!1,jt.current=null},500),It.current?.scrollToOffset({offset:e,animated:t})},[]),Ft=(0,t.useCallback)(t=>{const o=t.nativeEvent.contentOffset.y;le(o);const n=he.current,s=pe.current,l=(0,S.epochToOffset)(Ue.current,Fe,te);if(o>=n+Math.max(s,l)-s-s)if(Ve.current<30)Ge(e=>Math.min(30,e+1));else{const t=Date.now();t-Ye.current>=5e3&&(Ye.current=t,L.log.info('theater','back-scroll capped at MAX_LOOKBACK_DAYS',{deviceId:e.deviceId,days:30}))}if(Rt.current)return void(Math.abs(o-Ot.current)<=2&&zt());const c=Math.round((0,S.offsetToEpoch)(o,Fe,te)),u=Fe-c;if((0,I.atLiveEdge)(u,15e3))return Et.current&&(clearTimeout(Et.current),Et.current=null),wt.current=null,Dt.current=!1,void(At.current||(L.log.debug('theater:live-edge','go-live (scrolled into live edge)',{behindLiveMs:u,epoch:c,topMs:Fe}),e.onGoLive()));Dt.current||(Dt.current=!0,Et.current&&(clearTimeout(Et.current),Et.current=null),e.onScrubBegin('timeline'));const d=Date.now();d-Lt.current<100||(Lt.current=d,wt.current=c,e.onScrubMove(c,'timeline'),Et.current&&clearTimeout(Et.current),Et.current=setTimeout(()=>{Et.current=null;const t=wt.current;null!=t&&(e.onScrubCommit(t,'timeline'),Dt.current=!1)},220))},[Fe,te,e,zt]),Wt=(0,t.useCallback)(()=>{Bt(0,!0),e.onGoLive()},[e,Bt]);(0,t.useEffect)(()=>{if('playback'!==e.mode)return;const t=e.activeEpoch;if(null===t)return;const o=(0,S.epochToOffset)(t,Fe,te);Bt(o,!1)},[e.mode,e.activeEpoch,Fe,te,Bt]);const _t=(0,t.useCallback)(t=>{L.log.info('theater:clusters','tap',{epoch:t.representative.timestamp,topPx:Math.round(t.topPx)}),e.onSeek(t.representative.timestamp,'cluster')},[e]),Kt=(0,t.useCallback)(e=>{kt(e)},[]),Zt=(0,t.useCallback)(t=>{e.onSeek(t,'cluster'),kt(null)},[e]),Ht=(0,t.useCallback)(e=>(0,x.dayFractionToEpoch)(e,He.from,He.to),[He.from,He.to]),Nt=(0,t.useCallback)(e=>{const t=Ht(e);L.log.debug('timeline','heatmap seek',{fraction:e,snapped:t}),rt(t,'heatmap')},[Ht,rt]),Gt=e.onScrubBegin,qt=e.onScrubMove,Vt=e.onScrubCommit,Ut=(0,t.useCallback)(()=>Gt('heatmap'),[Gt]),Yt=(0,t.useCallback)(e=>{const t=Ht(e);L.log.debug('timeline','heatmap scrub',{fraction:e,snapped:t}),qt(t,'heatmap')},[Ht,qt]),Qt=(0,t.useCallback)(e=>{const t=Ht(e);L.log.debug('timeline','heatmap scrubEnd',{fraction:e,snapped:t}),Vt(t,'heatmap')},[Ht,Vt]),Xt=gt||ye.has('motion'),$t=gt||ye.has('audio'),Jt=(0,t.useMemo)(()=>Xt?ht:[],[Xt,ht]),eo=(0,t.useMemo)(()=>{const e=(0,D.objectEventsToHeatmapBins)(Jt,Ze);return $t?(0,D.mergeAudioIntoHeatmapBins)(e,pt.audio,Ze):e},[Jt,Ze,$t,pt.audio]),to=(0,t.useMemo)(()=>(0,D.objectEventsToHeatmapHighlights)(Jt,Ze),[Jt,Ze]),oo=(0,t.useMemo)(()=>e.activeEpoch??$,[e.activeEpoch,$]),no=(0,t.useMemo)(()=>new Date(oo).toLocaleTimeString(void 0,{hour:'2-digit',minute:'2-digit',second:'2-digit'}),[oo]);return(0,G.jsxs)(o.default,{style:[Q.container,{backgroundColor:Y.background}],children:[(0,G.jsx)(p.TimelineToolbarInline,{onBack:e.onBack,hideBack:e.hideBack,dateLabel:(0,z.dateLabel)(Ze,$,s),onPrevDay:it,onOpenDatePicker:st,onNextDay:at,nextDayDisabled:Ze>=Qe,hasPtz:e.hasPtz,ptzOpen:e.ptzOpen,onTogglePtz:e.onTogglePtz,devicesOpen:e.devicesOpen,onToggleDevices:e.onToggleDevices,menuOpen:e.menuOpen,onToggleMenu:e.onToggleMenu,qualityOpen:e.qualityOpen,onToggleQuality:e.onToggleQuality,qualityLabel:s((0,v.qualityLabelKey)(e.quality)),exportMenuOpen:e.exportMenuOpen,onToggleExportMenu:e.onToggleExportMenu,snapshotBusy:e.snapshotBusy,exportMenuLabel:s('v2.exportActions.title')}),(0,G.jsx)(b.HeatmapBar,{bins:eo,cursorFraction:yt,eventMarkers:to,coverage:xt,dayStartMs:He.from,dayEndMs:He.to,onSeekFraction:Nt,onScrubStart:Ut,onScrubFraction:Yt,onScrubEnd:Qt}),We?(0,G.jsxs)(o.default,{style:[Q.livePill,{backgroundColor:`${Y.live}26`}],children:[(0,G.jsx)(o.default,{style:[Q.liveDot,{backgroundColor:Y.live}]}),(0,G.jsx)(n.default,{style:[Q.liveText,{color:Y.live}],children:s('v2.theater.live')})]}):(0,G.jsxs)(l.default,{style:[Q.goLivePill,{backgroundColor:Y.danger}],onPress:Wt,accessibilityRole:"button",accessibilityLabel:s('v2.theater.goToLive'),children:[(0,G.jsx)(d.ArrowUp,{size:13,color:U}),(0,G.jsx)(n.default,{style:[Q.goLiveText,{color:U}],children:s('v2.theater.goToLive')})]}),(0,G.jsxs)(o.default,{style:Q.listWrap,onLayout:ge,children:[(0,G.jsx)(N.TimelineScroller,{ref:It,topMs:Fe,zoomIndex:te,dayWindow:{from:qe,to:He.to},clusters:Tt,activity:pt,showMotionLane:Xt,showAudioLane:$t,cardWidth:vt,viewportHeight:ce,indicatorOffsetPx:fe,isLive:We,onScroll:Ft,onClusterPress:_t,onClusterOpenDetail:Kt,clusterLabel:Ae,eventKinds:De.data}),ce>0?(0,G.jsxs)(o.default,{style:[Q.indicator,{top:fe}],pointerEvents:"none",children:[(0,G.jsx)(o.default,{style:[Q.indicatorLine,{backgroundColor:We?Y.live:Y.danger}]}),(0,G.jsx)(o.default,{style:[Q.indicatorPill,{backgroundColor:We?Y.live:Y.danger}],children:(0,G.jsx)(n.default,{style:[Q.indicatorLabel,h.TABULAR,{color:U}],children:We?s('v2.theater.live'):no})})]}):null,Pe?(0,G.jsx)(C.TimelineFilterPanel,{filter:ye,onToggleKind:je,classes:mt,classFilter:Ie,onToggleClass:ze,onReset:Oe,eventKinds:De.data,bottomInset:X.bottom+V}):null,(0,G.jsx)(M.TimelineFabControls,{onZoomIn:ie,onZoomOut:ae,onFilter:Re,onZoneFilter:null!==Be?e.onClearZone:e.onRequestZoneDraw,onPickCamera:e.onPickCamera,canZoomIn:ne,canZoomOut:re,filterActive:Le,filterOpen:Pe,zoneActive:null!==Be,bottomInset:X.bottom})]}),(0,G.jsx)(O.DatePickerModal,{visible:Xe,monthAnchorMs:Je,selectedDayMs:Ze,daysSet:nt??new Set,nowMs:$,onChangeMonth:ct,onPick:lt,onClose:()=>$e(!1)}),(0,G.jsx)(H.ClusterDetailModal,{deviceId:e.deviceId,cluster:Pt,onSeek:Zt,onClose:()=>kt(null),seekAvailable:null===Pt||'absent'!==(0,k.recordingKnownAt)(xt,He.from,He.to,Pt.representative.timestamp)})]})}),Q=s.default.create({container:{flex:1},livePill:{flexDirection:'row',alignItems:'center',justifyContent:'center',gap:5,paddingVertical:5},liveDot:{width:6,height:6,borderRadius:3},liveText:{fontSize:11,fontWeight:'700'},goLivePill:{flexDirection:'row',alignItems:'center',justifyContent:'center',gap:5,paddingVertical:5},goLiveText:{fontSize:11,fontWeight:'700'},listWrap:{flex:1,position:'relative'},indicator:{position:'absolute',left:0,right:0,flexDirection:'row',alignItems:'center',paddingLeft:h.SPACING.md},indicatorLine:{position:'absolute',left:0,right:0,height:1.5},indicatorPill:{paddingHorizontal:h.SPACING.sm,paddingVertical:1,borderRadius:4},indicatorLabel:{fontSize:10,fontWeight:'700',letterSpacing:.3},drawerHandle:{position:'absolute',left:0,top:'50%',marginTop:-16,width:16,height:32,borderTopRightRadius:8,borderBottomRightRadius:8,borderWidth:1,borderLeftWidth:0,alignItems:'center',justifyContent:'center'},scrollIndicatorTrack:{position:'absolute',right:2,top:h.SPACING.lg,bottom:h.SPACING.lg,width:3,alignItems:'center'},scrollIndicatorThumb:{width:3,height:48,borderRadius:2,opacity:.7}})},3504,[17,20,112,33,252,786,466,813,2587,2589,3505,3461,3506,3508,3509,3142,3510,3507,3511,3512,3159,3160,2705,3231,3501,3168,3169,3139,3513,3514,3515,3177,3132,3516,3381,3517,3519,3520,3522,10]);
15925
+ __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,"TheaterTimeline",{enumerable:!0,get:function(){return Y}});var t=r(_d[0]),o=e(r(_d[1])),n=e(r(_d[2])),s=e(r(_d[3])),l=e(r(_d[4])),c=r(_d[5]),u=r(_d[6]),d=r(_d[7]),f=r(_d[8]),h=r(_d[9]),p=r(_d[10]),v=r(_d[11]),b=r(_d[12]),M=r(_d[13]),C=r(_d[14]),T=r(_d[15]),S=r(_d[16]),x=r(_d[17]),y=r(_d[18]),I=r(_d[19]),P=r(_d[20]),k=r(_d[21]),L=r(_d[22]),D=r(_d[23]),E=r(_d[24]),w=r(_d[25]),A=r(_d[26]),R=r(_d[27]),O=r(_d[28]),j=r(_d[29]),z=r(_d[30]),B=r(_d[31]),F=r(_d[32]),W=r(_d[33]),_=r(_d[34]),K=r(_d[35]),Z=r(_d[36]),H=r(_d[37]),N=r(_d[38]),G=r(_d[39]);const q=864e5,V=h.SPACING.lg+36+h.SPACING.md,U='#ffffff',Y=(0,t.memo)(function(e){const{t:s}=(0,c.useTranslation)(),{colors:Y}=(0,f.useTheme)(),X=(0,u.useSafeAreaInsets)(),[$,J]=(0,t.useState)(()=>Date.now());(0,t.useEffect)(()=>{const e=setInterval(()=>J(Date.now()),1e3);return()=>clearInterval(e)},[]);const ee=(0,B.useSettings)().settings.clusters,[te,oe]=(0,t.useState)(T.DEFAULT_ZOOM_INDEX),ne=te<T.ZOOM_LEVELS.length-1,re=te>0,ie=(0,t.useCallback)(()=>oe(e=>(0,T.clampZoomIndex)(e+1)),[]),ae=(0,t.useCallback)(()=>oe(e=>(0,T.clampZoomIndex)(e-1)),[]),[se,le]=(0,t.useState)(0),[ce,ue]=(0,t.useState)(0),[de,me]=(0,t.useState)(0),ge=(0,t.useCallback)(e=>{const{height:t,width:o}=e.nativeEvent.layout;t>0&&ue(t),o>0&&me(o)},[]),fe=(0,t.useMemo)(()=>(0,y.indicatorOffsetPx)(ce,ee.indicatorPositionPct),[ce,ee.indicatorPositionPct]),he=(0,t.useRef)(fe),pe=(0,t.useRef)(ce);(0,t.useEffect)(()=>{he.current=fe,pe.current=ce},[fe,ce]);const ve=(0,F.useCameraPrefsStore)(t=>t.prefs.byId[e.deviceId]?.timelineKinds),be=(0,F.useCameraPrefsStore)(t=>t.prefs.byId[e.deviceId]?.timelineClasses),Me=(0,F.useCameraPrefsStore)(e=>e.setCameraTimelineKinds),Ce=(0,F.useCameraPrefsStore)(e=>e.setCameraTimelineClasses),Te=(0,F.useCameraPrefsStore)(e=>e.toggleCameraTimelineKind),Se=(0,F.useCameraPrefsStore)(e=>e.toggleCameraTimelineClass),xe=(0,F.useCameraPrefsStore)(e=>e.hydrate);(0,t.useEffect)(()=>{xe()},[xe]);const ye=(0,t.useMemo)(()=>new Set(ve??T.ALL_BAR_KINDS),[ve]),Ie=(0,t.useMemo)(()=>new Set(be??[]),[be]),[Pe,ke]=(0,t.useState)(!1),Le=!(0,T.isFilterAll)(ye)||Ie.size>0,De=(0,w.useEventKinds)([e.deviceId]),Ee=(0,t.useMemo)(()=>(0,A.classToMacroMap)(De.data??[]),[De.data]),we=(0,F.useCameraPrefsStore)(t=>t.prefs.byId[e.deviceId]?.highlight),Ae=(0,t.useMemo)(()=>(0,R.withHighlightDefaults)(we).clusterLabel,[we]),Re=(0,t.useCallback)(()=>ke(e=>!e),[]),Oe=(0,t.useCallback)(()=>{Me(e.deviceId,[...T.ALL_BAR_KINDS]),Ce(e.deviceId,[])},[Me,Ce,e.deviceId]),je=(0,t.useCallback)(t=>Te(e.deviceId,t),[Te,e.deviceId]),ze=(0,t.useCallback)(t=>Se(e.deviceId,t),[Se,e.deviceId]),Be=e.zoneRect,Fe=$,We='live'===e.mode,Ke=e.activeEpoch??$,Ze=(0,t.useMemo)(()=>{const e=new Date(Ke);return e.setHours(0,0,0,0),e.getTime()},[Ke]),He=(0,t.useMemo)(()=>({from:Ze,to:Ze+q}),[Ze]),[Ne,Ge]=(0,t.useState)(1),qe=Ze-(Ne-1)*q,Ve=(0,t.useRef)(1);(0,t.useEffect)(()=>{Ve.current=Ne},[Ne]);const Ue=(0,t.useRef)(qe);(0,t.useEffect)(()=>{Ue.current=qe},[qe]);const Ye=(0,t.useRef)(0);(0,t.useEffect)(()=>{Ge(1)},[Ze]);const Qe=(0,t.useMemo)(()=>{const e=new Date($);return e.setHours(0,0,0,0),e.getTime()},[$]),[Xe,$e]=(0,t.useState)(!1),[Je,et]=(0,t.useState)(Ze),{fromMs:tt,toMs:ot}=(0,t.useMemo)(()=>(0,j.monthBoundsForMs)(Je),[Je]),{data:nt}=(0,P.useDaysWithRecordings)(e.deviceId,tt,ot,Xe),rt=e.onSeek,it=(0,t.useCallback)(()=>{rt((0,z.dayAtSameTime)(Ke,Ze-q,$),'timeline')},[rt,Ke,Ze,$]),at=(0,t.useCallback)(()=>{Ze>=Qe||rt((0,z.dayAtSameTime)(Ke,Ze+q,$),'timeline')},[rt,Ke,Ze,Qe,$]),st=(0,t.useCallback)(()=>{et(Ze),$e(!0)},[Ze]),lt=(0,t.useCallback)(e=>{$e(!1),rt((0,z.dayAtSameTime)(Ke,e,$),'timeline')},[rt,Ke,$]),ct=(0,t.useCallback)(e=>{et(t=>{const o=new Date(t);return new Date(o.getFullYear(),o.getMonth()+e,1,0,0,0,0).getTime()})},[]),{data:ut=[]}=(0,W.useDeviceTracks)(e.deviceId,qe,He.to),dt=(0,t.useMemo)(()=>{const e=ee.minImportance;return e<=0?ut:ut.filter(t=>(0,_.passesImportanceFilter)(t.importance,e))},[ut,ee.minImportance]),mt=(0,t.useMemo)(()=>{const e=new Set;for(const t of dt)t.className.length>0&&e.add(t.className);return[...(0,A.collapseToMacro)([...e],Ee)].sort()},[dt,Ee]),gt=(0,T.isFilterAll)(ye),ft=(0,t.useMemo)(()=>(0,E.filterEventsByZone)(dt,Be),[dt,Be]),ht=(0,t.useMemo)(()=>(0,D.filterDetectionsByKind)(ft,ye,Ie,Ee),[ft,ye,Ie,Ee]),pt=(0,K.useTimelineActivity)(e.deviceId,qe,He.to),vt=(0,t.useMemo)(()=>de>0?Math.round(de*ee.cardWidthFraction):0,[de,ee.cardWidthFraction]),bt=(0,t.useMemo)(()=>vt>0?Math.round(.5625*vt):0,[vt]),{sizePx:Mt,gapPx:Ct}=(0,t.useMemo)(()=>{const e=Math.max(8,bt);return{sizePx:e,gapPx:ee.gapPercent/100*e}},[bt,ee.gapPercent]),Tt=(0,t.useMemo)(()=>(0,Z.clusterByZoom)(ht,{topMs:Fe,zoomIndex:te,sizePx:Mt,gapPx:Ct}),[ht,Fe,te,Mt,Ct]),St=Tt.filter(e=>e.topPx>=se-80-e.heightPx&&e.topPx<=se+ce+80).length;(0,t.useEffect)(()=>{const t=e=>new Date(e).toLocaleTimeString(),o=dt.map(e=>e.timestamp);L.log.info('theater:clusters','render state',{deviceId:e.deviceId,objectEvents:dt.length,objectEventRange:o.length>0?{first:t(Math.min(...o)),last:t(Math.max(...o))}:null,clusters:Tt.length,clusterSpans:Tt.slice(0,8).map(e=>({s:t(e.startMs),e:t(e.endMs),n:e.events.length,topPx:Math.round(e.topPx)})),visibleClusters:St,activity:{recording:pt.recording.length,motion:pt.motion.length,audio:pt.audio.length},geometry:{cardWidth:vt,viewportHeight:ce,listWrapWidth:de,scrollOffsetY:se,sizePx:Mt,gapPx:Ct,zoomIndex:te},dayWindow:He})},[e.deviceId,dt,Tt,St,pt.recording.length,pt.motion.length,pt.audio.length,vt,ce,de,se,Mt,Ct,te,He]);const{data:xt=[]}=(0,P.useRecordingAvailability)(e.deviceId,He.from,He.to,!0);(0,t.useEffect)(()=>{L.log.info('timeline','coverage',{deviceId:e.deviceId,count:xt.length})},[e.deviceId,xt.length]);const yt=(0,t.useMemo)(()=>{const t=e.activeEpoch;return null===t?(0,T.heatmapCursorFraction)($):(0,x.epochToDayFraction)(t,He.from,He.to)},[e.activeEpoch,He,$]),It=(0,t.useRef)(null),[Pt,kt]=(0,t.useState)(null),Lt=(0,t.useRef)(0),Dt=(0,t.useRef)(!1),Et=(0,t.useRef)(null),wt=(0,t.useRef)(null),At=(0,t.useRef)(We);At.current=We;const Rt=(0,t.useRef)(!1),Ot=(0,t.useRef)(0),jt=(0,t.useRef)(null),zt=(0,t.useCallback)(()=>{Rt.current=!1,jt.current&&(clearTimeout(jt.current),jt.current=null)},[]),Bt=(0,t.useCallback)((e,t)=>{Rt.current=!0,Ot.current=e,jt.current&&clearTimeout(jt.current),jt.current=setTimeout(()=>{Rt.current=!1,jt.current=null},500),It.current?.scrollToOffset({offset:e,animated:t})},[]),Ft=(0,t.useCallback)(t=>{const o=t.nativeEvent.contentOffset.y;le(o);const n=he.current,s=pe.current,l=(0,S.epochToOffset)(Ue.current,Fe,te);if(o>=n+Math.max(s,l)-s-s)if(Ve.current<30)Ge(e=>Math.min(30,e+1));else{const t=Date.now();t-Ye.current>=5e3&&(Ye.current=t,L.log.info('theater','back-scroll capped at MAX_LOOKBACK_DAYS',{deviceId:e.deviceId,days:30}))}if(Rt.current)return void(Math.abs(o-Ot.current)<=2&&zt());const c=Math.round((0,S.offsetToEpoch)(o,Fe,te)),u=Fe-c;if((0,I.atLiveEdge)(u,15e3))return Et.current&&(clearTimeout(Et.current),Et.current=null),wt.current=null,Dt.current=!1,void(At.current||(L.log.debug('theater:live-edge','go-live (scrolled into live edge)',{behindLiveMs:u,epoch:c,topMs:Fe}),e.onGoLive()));Dt.current||(Dt.current=!0,Et.current&&(clearTimeout(Et.current),Et.current=null),e.onScrubBegin('timeline'));const d=Date.now();d-Lt.current<100||(Lt.current=d,wt.current=c,e.onScrubMove(c,'timeline'),Et.current&&clearTimeout(Et.current),Et.current=setTimeout(()=>{Et.current=null;const t=wt.current;null!=t&&(e.onScrubCommit(t,'timeline'),Dt.current=!1)},220))},[Fe,te,e,zt]),Wt=(0,t.useCallback)(()=>{Bt(0,!0),e.onGoLive()},[e,Bt]);(0,t.useEffect)(()=>{if('playback'!==e.mode)return;const t=e.activeEpoch;if(null===t)return;const o=(0,S.epochToOffset)(t,Fe,te);Bt(o,!1)},[e.mode,e.activeEpoch,Fe,te,Bt]);const _t=(0,t.useCallback)(t=>{L.log.info('theater:clusters','tap',{epoch:t.representative.timestamp,topPx:Math.round(t.topPx)}),e.onSeek(t.representative.timestamp,'cluster')},[e]),Kt=(0,t.useCallback)(e=>{kt(e)},[]),Zt=(0,t.useCallback)(t=>{e.onSeek(t,'cluster'),kt(null)},[e]),Ht=(0,t.useCallback)(e=>(0,x.dayFractionToEpoch)(e,He.from,He.to),[He.from,He.to]),Nt=(0,t.useCallback)(e=>{const t=Ht(e);L.log.debug('timeline','heatmap seek',{fraction:e,snapped:t}),rt(t,'heatmap')},[Ht,rt]),Gt=e.onScrubBegin,qt=e.onScrubMove,Vt=e.onScrubCommit,Ut=(0,t.useCallback)(()=>Gt('heatmap'),[Gt]),Yt=(0,t.useCallback)(e=>{const t=Ht(e);L.log.debug('timeline','heatmap scrub',{fraction:e,snapped:t}),qt(t,'heatmap')},[Ht,qt]),Qt=(0,t.useCallback)(e=>{const t=Ht(e);L.log.debug('timeline','heatmap scrubEnd',{fraction:e,snapped:t}),Vt(t,'heatmap')},[Ht,Vt]),Xt=gt||ye.has('motion'),$t=gt||ye.has('audio'),Jt=(0,t.useMemo)(()=>Xt?ht:[],[Xt,ht]),eo=(0,t.useMemo)(()=>{const e=(0,D.objectEventsToHeatmapBins)(Jt,Ze);return $t?(0,D.mergeAudioIntoHeatmapBins)(e,pt.audio,Ze):e},[Jt,Ze,$t,pt.audio]),to=(0,t.useMemo)(()=>(0,D.objectEventsToHeatmapHighlights)(Jt,Ze),[Jt,Ze]),oo=(0,t.useMemo)(()=>e.activeEpoch??$,[e.activeEpoch,$]),no=(0,t.useMemo)(()=>new Date(oo).toLocaleTimeString(void 0,{hour:'2-digit',minute:'2-digit',second:'2-digit'}),[oo]);return(0,G.jsxs)(o.default,{style:[Q.container,{backgroundColor:Y.background}],children:[(0,G.jsx)(p.TimelineToolbarInline,{onBack:e.onBack,hideBack:e.hideBack,dateLabel:(0,z.dateLabel)(Ze,$,s),onPrevDay:it,onOpenDatePicker:st,onNextDay:at,nextDayDisabled:Ze>=Qe,hasPtz:e.hasPtz,ptzOpen:e.ptzOpen,onTogglePtz:e.onTogglePtz,devicesOpen:e.devicesOpen,onToggleDevices:e.onToggleDevices,menuOpen:e.menuOpen,onToggleMenu:e.onToggleMenu,qualityOpen:e.qualityOpen,onToggleQuality:e.onToggleQuality,qualityLabel:s((0,v.qualityLabelKey)(e.quality)),exportMenuOpen:e.exportMenuOpen,onToggleExportMenu:e.onToggleExportMenu,snapshotBusy:e.snapshotBusy,exportMenuLabel:s('v2.exportActions.title')}),(0,G.jsx)(b.HeatmapBar,{bins:eo,cursorFraction:yt,eventMarkers:to,coverage:xt,dayStartMs:He.from,dayEndMs:He.to,onSeekFraction:Nt,onScrubStart:Ut,onScrubFraction:Yt,onScrubEnd:Qt}),We?(0,G.jsxs)(o.default,{style:[Q.livePill,{backgroundColor:`${Y.live}26`}],children:[(0,G.jsx)(o.default,{style:[Q.liveDot,{backgroundColor:Y.live}]}),(0,G.jsx)(n.default,{style:[Q.liveText,{color:Y.live}],children:s('v2.theater.live')})]}):(0,G.jsxs)(l.default,{style:[Q.goLivePill,{backgroundColor:Y.danger}],onPress:Wt,accessibilityRole:"button",accessibilityLabel:s('v2.theater.goToLive'),children:[(0,G.jsx)(d.ArrowUp,{size:13,color:U}),(0,G.jsx)(n.default,{style:[Q.goLiveText,{color:U}],children:s('v2.theater.goToLive')})]}),(0,G.jsxs)(o.default,{style:Q.listWrap,onLayout:ge,children:[(0,G.jsx)(N.TimelineScroller,{ref:It,topMs:Fe,zoomIndex:te,dayWindow:{from:qe,to:He.to},clusters:Tt,activity:pt,showMotionLane:Xt,showAudioLane:$t,cardWidth:vt,viewportHeight:ce,indicatorOffsetPx:fe,isLive:We,onScroll:Ft,onClusterPress:_t,onClusterOpenDetail:Kt,clusterLabel:Ae,eventKinds:De.data}),ce>0?(0,G.jsxs)(o.default,{style:[Q.indicator,{top:fe}],pointerEvents:"none",children:[(0,G.jsx)(o.default,{style:[Q.indicatorLine,{backgroundColor:We?Y.live:Y.danger}]}),(0,G.jsx)(o.default,{style:[Q.indicatorPill,{backgroundColor:We?Y.live:Y.danger}],children:(0,G.jsx)(n.default,{style:[Q.indicatorLabel,h.TABULAR,{color:U}],children:We?s('v2.theater.live'):no})})]}):null,Pe?(0,G.jsx)(C.TimelineFilterPanel,{filter:ye,onToggleKind:je,classes:mt,classFilter:Ie,onToggleClass:ze,onReset:Oe,eventKinds:De.data,bottomInset:X.bottom+V}):null,(0,G.jsx)(M.TimelineFabControls,{onZoomIn:ie,onZoomOut:ae,onFilter:Re,onZoneFilter:null!==Be?e.onClearZone:e.onRequestZoneDraw,onPickCamera:e.onPickCamera,canZoomIn:ne,canZoomOut:re,filterActive:Le,filterOpen:Pe,zoneActive:null!==Be,bottomInset:X.bottom})]}),(0,G.jsx)(O.DatePickerModal,{visible:Xe,monthAnchorMs:Je,selectedDayMs:Ze,daysSet:nt??new Set,nowMs:$,onChangeMonth:ct,onPick:lt,onClose:()=>$e(!1)}),(0,G.jsx)(H.ClusterDetailModal,{deviceId:e.deviceId,cluster:Pt,onSeek:Zt,onClose:()=>kt(null),seekAvailable:null===Pt||'absent'!==(0,k.recordingKnownAt)(xt,He.from,He.to,Pt.representative.timestamp)})]})}),Q=s.default.create({container:{flex:1},livePill:{flexDirection:'row',alignItems:'center',justifyContent:'center',gap:5,paddingVertical:5},liveDot:{width:6,height:6,borderRadius:3},liveText:{fontSize:11,fontWeight:'700'},goLivePill:{flexDirection:'row',alignItems:'center',justifyContent:'center',gap:5,paddingVertical:5},goLiveText:{fontSize:11,fontWeight:'700'},listWrap:{flex:1,position:'relative'},indicator:{position:'absolute',left:0,right:0,flexDirection:'row',alignItems:'center',paddingLeft:h.SPACING.md},indicatorLine:{position:'absolute',left:0,right:0,height:1.5},indicatorPill:{paddingHorizontal:h.SPACING.sm,paddingVertical:1,borderRadius:4},indicatorLabel:{fontSize:10,fontWeight:'700',letterSpacing:.3},drawerHandle:{position:'absolute',left:0,top:'50%',marginTop:-16,width:16,height:32,borderTopRightRadius:8,borderBottomRightRadius:8,borderWidth:1,borderLeftWidth:0,alignItems:'center',justifyContent:'center'},scrollIndicatorTrack:{position:'absolute',right:2,top:h.SPACING.lg,bottom:h.SPACING.lg,width:3,alignItems:'center'},scrollIndicatorThumb:{width:3,height:48,borderRadius:2,opacity:.7}})},3504,[17,20,112,33,252,786,466,813,2587,2589,3505,3461,3506,3508,3509,3142,3510,3507,3511,3512,3159,3160,2705,3231,3501,3168,3169,3139,3513,3514,3515,3177,3132,3516,3237,3517,3519,3520,3522,10]);
15926
15926
  __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,"TimelineToolbarInline",{enumerable:!0,get:function(){return b}});var o=r(d[0]),n=r(d[1]),t=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),u=e(r(d[5])),c=e(r(d[6])),p=r(d[7]),f=r(d[8]),y=r(d[9]),x=r(d[10]),h=r(d[11]);const b=(0,n.memo)(function(e){const n=(0,o.c)(109),{t:u}=(0,p.useTranslation)(),{colors:x}=(0,y.useTheme)();let b;n[0]!==x.primary?(b=e=>[P.iconBtn,{backgroundColor:e?x.primary:"transparent"}],n[0]=x.primary,n[1]=b):b=n[1];const O=b;let j;n[2]!==x.foregroundMuted||n[3]!==x.primaryForeground?(j=e=>e?x.primaryForeground:x.foregroundMuted,n[2]=x.foregroundMuted,n[3]=x.primaryForeground,n[4]=j):j=n[4];const z=j;let S,D,M,T,v,C,k,I,B,L,A;n[5]!==x.background||n[6]!==x.border?(S=[P.container,{backgroundColor:x.background,borderBottomColor:x.border}],n[5]=x.background,n[6]=x.border,n[7]=S):S=n[7],n[8]!==x.foreground||n[9]!==e.hideBack||n[10]!==e.onBack||n[11]!==u?(D=e.hideBack?null:(0,h.jsx)(s.default,{style:P.backBtn,onPress:e.onBack,hitSlop:6,accessibilityLabel:u("v2.common.back"),children:(0,h.jsx)(f.ArrowLeft,{size:18,color:x.foreground})}),n[8]=x.foreground,n[9]=e.hideBack,n[10]=e.onBack,n[11]=u,n[12]=D):D=n[12],n[13]!==x.foregroundMuted?(M=(0,h.jsx)(f.ChevronLeft,{size:16,color:x.foregroundMuted}),n[13]=x.foregroundMuted,n[14]=M):M=n[14],n[15]!==e.onPrevDay||n[16]!==M?(T=(0,h.jsx)(s.default,{style:P.dateArrow,onPress:e.onPrevDay,hitSlop:6,children:M}),n[15]=e.onPrevDay,n[16]=M,n[17]=T):T=n[17],n[18]!==x.surface?(v=[P.datePill,{backgroundColor:x.surface}],n[18]=x.surface,n[19]=v):v=n[19],n[20]!==x.foregroundSubtle?(C=(0,h.jsx)(f.Calendar,{size:12,color:x.foregroundSubtle}),n[20]=x.foregroundSubtle,n[21]=C):C=n[21],n[22]!==x.foreground?(k=[P.dateText,{color:x.foreground}],n[22]=x.foreground,n[23]=k):k=n[23],n[24]!==e.dateLabel||n[25]!==k?(I=(0,h.jsx)(l.default,{style:k,children:e.dateLabel}),n[24]=e.dateLabel,n[25]=k,n[26]=I):I=n[26],n[27]!==x.foregroundSubtle?(B=(0,h.jsx)(f.ChevronDown,{size:10,color:x.foregroundSubtle}),n[27]=x.foregroundSubtle,n[28]=B):B=n[28],n[29]!==B||n[30]!==v||n[31]!==C||n[32]!==I?(L=(0,h.jsxs)(t.default,{style:v,children:[C,I,B]}),n[29]=B,n[30]=v,n[31]=C,n[32]=I,n[33]=L):L=n[33],n[34]!==e.onOpenDatePicker||n[35]!==L?(A=(0,h.jsx)(s.default,{onPress:e.onOpenDatePicker,children:L}),n[34]=e.onOpenDatePicker,n[35]=L,n[36]=A):A=n[36];const q=e.nextDayDisabled?x.foregroundSubtle:x.foregroundMuted;let w,N,G,_,R,E;n[37]!==q?(w=(0,h.jsx)(f.ChevronRight,{size:16,color:q}),n[37]=q,n[38]=w):w=n[38],n[39]!==e.nextDayDisabled||n[40]!==e.onNextDay||n[41]!==w?(N=(0,h.jsx)(s.default,{style:P.dateArrow,onPress:e.onNextDay,disabled:e.nextDayDisabled,hitSlop:6,children:w}),n[39]=e.nextDayDisabled,n[40]=e.onNextDay,n[41]=w,n[42]=N):N=n[42],n[43]===Symbol.for("react.memo_cache_sentinel")?(G=(0,h.jsx)(t.default,{style:P.spacer}),n[43]=G):G=n[43],n[44]!==O||n[45]!==z||n[46]!==e.exportMenuLabel||n[47]!==e.exportMenuOpen||n[48]!==e.onToggleExportMenu||n[49]!==e.snapshotBusy?(_=e.onToggleExportMenu?(0,h.jsx)(s.default,{style:O(e.exportMenuOpen),onPress:e.onToggleExportMenu,hitSlop:6,accessibilityLabel:e.exportMenuLabel,children:e.snapshotBusy?(0,h.jsx)(c.default,{size:"small",color:z(e.exportMenuOpen)}):(0,h.jsx)(f.Camera,{size:14,color:z(e.exportMenuOpen)})}):null,n[44]=O,n[45]=z,n[46]=e.exportMenuLabel,n[47]=e.exportMenuOpen,n[48]=e.onToggleExportMenu,n[49]=e.snapshotBusy,n[50]=_):_=n[50],n[51]!==O||n[52]!==z||n[53]!==e.hasPtz||n[54]!==e.onTogglePtz||n[55]!==e.ptzOpen?(R=e.hasPtz&&e.onTogglePtz?(0,h.jsx)(s.default,{style:O(e.ptzOpen),onPress:e.onTogglePtz,hitSlop:6,children:(0,h.jsx)(f.Move,{size:14,color:z(e.ptzOpen)})}):null,n[51]=O,n[52]=z,n[53]=e.hasPtz,n[54]=e.onTogglePtz,n[55]=e.ptzOpen,n[56]=R):R=n[56],n[57]!==O||n[58]!==e.devicesOpen?(E=O(e.devicesOpen),n[57]=O,n[58]=e.devicesOpen,n[59]=E):E=n[59];const W=e.onToggleDevices;let F,H,Q,U;n[60]!==z||n[61]!==e.devicesOpen?(F=z(e.devicesOpen),n[60]=z,n[61]=e.devicesOpen,n[62]=F):F=n[62],n[63]!==F?(H=(0,h.jsx)(f.LayoutGrid,{size:14,color:F}),n[63]=F,n[64]=H):H=n[64],n[65]!==e.onToggleDevices||n[66]!==E||n[67]!==H?(Q=(0,h.jsx)(s.default,{style:E,onPress:W,hitSlop:6,children:H}),n[65]=e.onToggleDevices,n[66]=E,n[67]=H,n[68]=Q):Q=n[68],n[69]!==O||n[70]!==e.menuOpen?(U=O(e.menuOpen),n[69]=O,n[70]=e.menuOpen,n[71]=U):U=n[71];const V=e.onToggleMenu;let J,K,X,Y;n[72]!==z||n[73]!==e.menuOpen?(J=z(e.menuOpen),n[72]=z,n[73]=e.menuOpen,n[74]=J):J=n[74],n[75]!==J?(K=(0,h.jsx)(f.List,{size:14,color:J}),n[75]=J,n[76]=K):K=n[76],n[77]!==e.onToggleMenu||n[78]!==U||n[79]!==K?(X=(0,h.jsx)(s.default,{style:U,onPress:V,hitSlop:6,children:K}),n[77]=e.onToggleMenu,n[78]=U,n[79]=K,n[80]=X):X=n[80],n[81]!==O||n[82]!==e.qualityOpen?(Y=O(e.qualityOpen),n[81]=O,n[82]=e.qualityOpen,n[83]=Y):Y=n[83];const Z=e.onToggleQuality;let $,ee,oe,ne,te,re;return n[84]!==z||n[85]!==e.qualityOpen?($=z(e.qualityOpen),n[84]=z,n[85]=e.qualityOpen,n[86]=$):$=n[86],n[87]!==$?(ee=[P.qualityText,{color:$}],n[87]=$,n[88]=ee):ee=n[88],n[89]!==e.qualityLabel||n[90]!==ee?(oe=(0,h.jsx)(l.default,{style:ee,children:e.qualityLabel}),n[89]=e.qualityLabel,n[90]=ee,n[91]=oe):oe=n[91],n[92]!==e.onToggleQuality||n[93]!==Y||n[94]!==oe?(ne=(0,h.jsx)(s.default,{style:Y,onPress:Z,hitSlop:6,children:oe}),n[92]=e.onToggleQuality,n[93]=Y,n[94]=oe,n[95]=ne):ne=n[95],n[96]!==A||n[97]!==N||n[98]!==_||n[99]!==R||n[100]!==Q||n[101]!==X||n[102]!==D||n[103]!==ne||n[104]!==T?(te=(0,h.jsxs)(t.default,{style:P.row,children:[D,T,A,N,G,_,R,Q,X,ne]}),n[96]=A,n[97]=N,n[98]=_,n[99]=R,n[100]=Q,n[101]=X,n[102]=D,n[103]=ne,n[104]=T,n[105]=te):te=n[105],n[106]!==S||n[107]!==te?(re=(0,h.jsx)(t.default,{style:S,children:te}),n[106]=S,n[107]=te,n[108]=re):re=n[108],re}),P=u.default.create({container:{borderBottomWidth:1,zIndex:20},row:{flexDirection:'row',alignItems:'center',gap:x.SPACING.xs,paddingHorizontal:x.SPACING.md,paddingVertical:x.SPACING.sm+2},backBtn:{width:30,height:30,borderRadius:15,alignItems:'center',justifyContent:'center'},dateArrow:{width:28,height:28,borderRadius:14,alignItems:'center',justifyContent:'center'},datePill:{flexDirection:'row',alignItems:'center',gap:x.SPACING.sm,paddingHorizontal:x.SPACING.md,paddingVertical:x.SPACING.xs+2,borderRadius:x.RADIUS.lg},dateText:{fontSize:12,fontWeight:'600'},spacer:{flex:1},iconBtn:{minWidth:30,height:30,paddingHorizontal:x.SPACING.sm,borderRadius:x.RADIUS.lg,alignItems:'center',justifyContent:'center'},qualityText:{fontSize:10,fontWeight:'700'}})},3505,[15,17,20,112,252,33,240,786,813,2587,2589,10]);
15927
15927
  __d(function(g,_r,_i,_a,_m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"HeatmapBar",{enumerable:!0,get:function(){return p}});var e=_r(d[0]),n=_r(d[1]),o=t(_r(d[2])),r=t(_r(d[3])),a=_r(d[4]),i=_r(d[5]),c=_r(d[6]),s=_r(d[7]),l=_r(d[8]);function u(t,e,n){const o=n-e;if(o<=0)return[];const r=[];for(const a of t){const t=Math.max(a.startMs,e),i=Math.min(a.endMs,n);i<=t||r.push({leftPct:(t-e)/o*100,widthPct:(i-t)/o*100})}return r}function f(t){const e=t.length;if(0===e)return[];const n=[];let o=-1;for(let r=0;r<e;r++){const a=t[r].recorded;a&&o<0&&(o=r);if((!a||r===e-1)&&o>=0){const t=a?r:r-1;n.push({leftPct:o/e*100,widthPct:(t-o+1)/e*100}),o=-1}}return n}const p=(0,n.memo)(function(t){const r=(0,e.c)(45),{bins:c,cursorFraction:p,eventMarkers:v,coverage:y,dayStartMs:M,dayEndMs:x,onSeekFraction:R,onScrubStart:S,onScrubFraction:_,onScrubEnd:E}=t,{colors:k}=(0,a.useTheme)(),j=(0,n.useRef)(0),C=(0,n.useRef)(0),O=(0,n.useRef)(!1),w=!(!R&&!_);let P;t:{if(y&&void 0!==M&&void 0!==x){let t;r[0]!==y||r[1]!==x||r[2]!==M?(t=u(y,M,x),r[0]=y,r[1]=x,r[2]=M,r[3]=t):t=r[3],P=t;break t}let t;r[4]!==c?(t=f(c),r[4]=c,r[5]=t):t=r[5],P=t}const F=P;let H;r[6]===Symbol.for("react.memo_cache_sentinel")?(H=t=>{j.current=t.nativeEvent.layout.width},r[6]=H):H=r[6];const L=H;let X;r[7]===Symbol.for("react.memo_cache_sentinel")?(X=t=>(0,i.pointerFraction)(t.nativeEvent.locationX,j.current),r[7]=X):X=r[7];const $=X;let B;r[8]!==w?(B=t=>{C.current=t.nativeEvent.locationX,O.current=!1,s.log.debug("heatmap","grant",{interactive:w,x:t.nativeEvent.locationX})},r[8]=w,r[9]=B):B=r[9];const I=B;let z;r[10]!==_||r[11]!==S?(z=t=>{if(!O.current&&Math.abs(t.nativeEvent.locationX-C.current)>8&&(O.current=!0,S?.()),!O.current)return;const e=$(t);null!==e&&_?.(e)},r[10]=_,r[11]=S,r[12]=z):z=r[12];const D=z;let T;r[13]!==E||r[14]!==R?(T=t=>{const e=$(t);s.log.debug("heatmap","release",{moved:O.current,fraction:e}),null!==e&&(O.current?E?.(e):R?.(e))},r[13]=E,r[14]=R,r[15]=T):T=r[15];const W=T;let A,G,N,U,q,J;if(r[16]!==w?(A=()=>w,G=()=>w,r[16]=w,r[17]=A,r[18]=G):(A=r[17],G=r[18]),r[19]!==k.border||r[20]!==k.surface?(N=[b.bar,{backgroundColor:k.surface,borderBottomColor:k.border}],r[19]=k.border,r[20]=k.surface,r[21]=N):N=r[21],r[22]!==k.danger||r[23]!==F){let t;r[25]!==k.danger?(t=(t,e)=>(0,l.jsx)(o.default,{pointerEvents:"none",style:[b.recording,{left:`${t.leftPct}%`,width:`${t.widthPct}%`,backgroundColor:k.danger}]},`rec-${e}`),r[25]=k.danger,r[26]=t):t=r[26],U=F.map(t),r[22]=k.danger,r[23]=F,r[24]=U}else U=r[24];r[27]!==c?(q=c.map(m),r[27]=c,r[28]=q):q=r[28],r[29]!==v?(J=v?.map(h),r[29]=v,r[30]=J):J=r[30];const K=100*p+"%";let Q,V;return r[31]!==k.primary||r[32]!==K?(Q=(0,l.jsx)(o.default,{pointerEvents:"none",style:[b.cursor,{left:K,backgroundColor:k.primary}]}),r[31]=k.primary,r[32]=K,r[33]=Q):Q=r[33],r[34]!==I||r[35]!==D||r[36]!==W||r[37]!==U||r[38]!==q||r[39]!==J||r[40]!==Q||r[41]!==A||r[42]!==G||r[43]!==N?(V=(0,l.jsxs)(o.default,{onLayout:L,onStartShouldSetResponder:A,onMoveShouldSetResponder:G,onResponderGrant:I,onResponderMove:D,onResponderRelease:W,style:N,children:[U,q,J,Q]}),r[34]=I,r[35]=D,r[36]=W,r[37]=U,r[38]=q,r[39]=J,r[40]=Q,r[41]=A,r[42]=G,r[43]=N,r[44]=V):V=r[44],V}),b=r.default.create({bar:{flexDirection:'row',height:28,borderBottomWidth:1,alignItems:'flex-end',paddingHorizontal:2},bin:{flex:1,height:'100%',justifyContent:'flex-end',paddingHorizontal:.5},recording:{position:'absolute',top:0,bottom:0,minWidth:2,opacity:.15},fill:{borderRadius:1,minHeight:2},cursor:{position:'absolute',top:0,bottom:0,width:2,opacity:.85},eventMarker:{position:'absolute',top:1,bottom:1,width:2,marginLeft:-1,borderRadius:1,opacity:.95}});function m(t,e){const n=t.audio>0,r=n?t.audio:t.motion,a=t.motion>0||n,i=n?c.AUDIO_COLOR:c.MOTION_COLOR;return(0,l.jsx)(o.default,{pointerEvents:"none",style:b.bin,children:(0,l.jsx)(o.default,{style:[b.fill,{height:`${a?Math.max(15,100*r):0}%`,backgroundColor:a?i:"transparent",opacity:a?.5+.5*r:0}]})},e)}function h(t){return(0,l.jsx)(o.default,{pointerEvents:"none",style:[b.eventMarker,{left:100*t.fraction+"%",backgroundColor:t.color}]},t.id)}},3506,[15,17,20,33,2587,3507,3231,2705,10]);
15928
15928
  __d(function(g,r,i,a,m,e,d){"use strict";function n(n){return Math.max(0,Math.min(1,n))}Object.defineProperty(e,'__esModule',{value:!0}),e.dayFractionToEpoch=function(t,o,u){const c=u-o;return Math.round(o+n(t)*c)},e.epochToDayFraction=function(t,o,u){const c=u-o;return c<=0?0:n((t-o)/c)},e.pointerFraction=function(t,o){return!Number.isFinite(t)||!Number.isFinite(o)||o<=0?null:n(t/o)}},3507,[]);
@@ -15934,12 +15934,12 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{v
15934
15934
  __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,"DatePickerModal",{enumerable:!0,get:function(){return p}});var t=r(d[0]),o=e(r(d[1])),n=e(r(d[2])),l=e(r(d[3])),i=e(r(d[4])),s=e(r(d[5])),c=r(d[6]),u=r(d[7]),h=r(d[8]),f=r(d[9]),y=r(d[10]),b=r(d[11]);const p=(0,t.memo)(function(e){const{t:s}=(0,c.useTranslation)(),{colors:f}=(0,h.useTheme)(),p=new Date(e.monthAnchorMs),j=(0,t.useMemo)(()=>(0,y.buildMonthGrid)(p.getFullYear(),p.getMonth(),e.nowMs),[p.getFullYear(),p.getMonth(),e.nowMs]),w=p.toLocaleDateString(void 0,{month:'long',year:'numeric'}),C=new Date(e.nowMs);return C.setHours(0,0,0,0),(0,b.jsx)(o.default,{visible:e.visible,transparent:!0,animationType:"fade",onRequestClose:e.onClose,children:(0,b.jsx)(i.default,{style:x.backdrop,onPress:e.onClose,children:(0,b.jsxs)(i.default,{style:[x.card,{backgroundColor:f.background,borderColor:f.border}],children:[(0,b.jsxs)(n.default,{style:x.header,children:[(0,b.jsx)(i.default,{style:x.navBtn,onPress:()=>e.onChangeMonth(-1),hitSlop:8,children:(0,b.jsx)(u.ChevronLeft,{size:18,color:f.foregroundMuted})}),(0,b.jsx)(l.default,{style:[x.title,{color:f.foreground}],children:w}),(0,b.jsx)(i.default,{style:x.navBtn,onPress:()=>e.onChangeMonth(1),hitSlop:8,children:(0,b.jsx)(u.ChevronRight,{size:18,color:f.foregroundMuted})})]}),(0,b.jsx)(n.default,{style:x.weekRow,children:['L','M','M','G','V','S','D'].map((e,t)=>(0,b.jsx)(l.default,{style:[x.weekday,{color:f.foregroundSubtle}],children:e},t))}),(0,b.jsx)(n.default,{style:x.grid,children:j.map(t=>{const o=e.daysSet.has(t.epoch),s=t.epoch===e.selectedDayMs,c=t.epoch===C.getTime();return(0,b.jsxs)(i.default,{style:[x.cell,s&&{backgroundColor:f.primary},!s&&c&&{borderColor:f.primary,borderWidth:1}],disabled:t.isFuture,onPress:()=>e.onPick(t.epoch),children:[(0,b.jsx)(l.default,{style:[x.cellText,{color:t.isFuture?f.foregroundSubtle:s?f.primaryForeground:t.inMonth?f.foreground:f.foregroundMuted}],children:new Date(t.epoch).getDate()}),o&&!s?(0,b.jsx)(n.default,{style:[x.dot,{backgroundColor:f.primary}]}):null]},t.epoch)})}),(0,b.jsx)(l.default,{style:[x.hint,{color:f.foregroundSubtle}],children:s('v2.theater.selectDate')})]})})})}),x=s.default.create({backdrop:{flex:1,backgroundColor:'rgba(0,0,0,0.5)',alignItems:'center',justifyContent:'center'},card:{width:280+2*f.SPACING.md,borderRadius:f.RADIUS.lg,borderWidth:1,padding:f.SPACING.md},header:{flexDirection:'row',alignItems:'center',justifyContent:'space-between',marginBottom:f.SPACING.sm},navBtn:{width:32,height:32,alignItems:'center',justifyContent:'center'},title:{fontSize:15,fontWeight:'700',textTransform:'capitalize'},weekRow:{flexDirection:'row'},weekday:{width:40,textAlign:'center',fontSize:11,fontWeight:'600'},grid:{flexDirection:'row',flexWrap:'wrap'},cell:{width:40,height:40,alignItems:'center',justifyContent:'center',borderRadius:f.RADIUS.md},cellText:{fontSize:13,fontWeight:'600'},dot:{width:4,height:4,borderRadius:2,marginTop:2},hint:{fontSize:11,textAlign:'center',marginTop:f.SPACING.sm}})},3513,[17,245,20,112,252,33,786,813,2587,2589,3514,10]);
15935
15935
  __d(function(g,r,_i,a,m,e,_d){"use strict";function t(t,n){return{fromMs:new Date(t,n,1,0,0,0,0).getTime(),toMs:new Date(t,n+1,1,0,0,0,0).getTime()}}Object.defineProperty(e,'__esModule',{value:!0}),e.monthBounds=t,e.monthBoundsForMs=function(n){const o=new Date(n);return t(o.getFullYear(),o.getMonth())},e.buildMonthGrid=function(t,n,o){const u=(new Date(t,n,1,0,0,0,0).getDay()+6)%7,s=new Date(o);s.setHours(0,0,0,0);const i=[];for(let o=0;o<42;o++){const c=new Date(t,n,1-u+o,0,0,0,0);i.push({epoch:c.getTime(),inMonth:c.getMonth()===n,isFuture:c.getTime()>s.getTime()})}return i}},3514,[]);
15936
15936
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.dayAtSameTime=function(t,n,o){const s=new Date(t),c=new Date(n);c.setHours(s.getHours(),s.getMinutes(),s.getSeconds(),s.getMilliseconds());const u=c.getTime();return u>o?o:u},e.dateLabel=function(n,o,s){const c=new Date(n);c.setHours(0,0,0,0);const u=new Date(o);u.setHours(0,0,0,0);const y=Math.round((u.getTime()-c.getTime())/t);return 0===y?s('v2.theater.today'):1===y?s('v2.theater.yesterday'):new Date(n).toLocaleDateString(void 0,{weekday:'short',day:'numeric',month:'short'})};const t=864e5},3515,[]);
15937
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.trackToTimelineEvent=p,e.timelineEventToTrackSummary=function(t,n,s=""){return Object.assign({trackId:t.trackId??t.id,deviceId:n,cameraName:s,className:t.className},void 0!==t.label?{label:t.label}:{},void 0!==t.importance?{importance:t.importance}:{},{firstSeen:t.timestamp,lastSeen:t.endTimestamp??t.timestamp,state:'idle',active:!1,zonesVisited:[],audioLabels:void 0!==t.audioLabels?[...t.audioLabels]:[],bestEventId:t.id})},e.useDeviceTracks=function(b,y,f){const k=(0,t.c)(13),{controller:T,state:I}=(0,s.useConnection)();let S;k[0]!==b||k[1]!==y||k[2]!==f?(S=["v2","analytics","device-tracks",b,y,f],k[0]=b,k[1]=y,k[2]=f,k[3]=S):S=k[3];const L="connected"===I;let h,N;k[4]!==T||k[5]!==b||k[6]!==y||k[7]!==f?(h=async()=>{const t=T.getSystem();if(!t)return[];const n=await(0,o.capQuery)(t.trpcClient,"pipelineAnalytics","listTracks",{deviceId:b,since:y,until:f,limit:v});if(!Array.isArray(n))return[];const s=[];for(const t of n){const n=(0,l.toTrackSummary)(t,"");null!==n&&s.push(p(n,(0,u.parsePositionBoxes)(t)))}return c.log.info("device-tracks","listTracks",{deviceId:b,count:s.length}),s},k[4]=T,k[5]=b,k[6]=y,k[7]=f,k[8]=h):h=k[8];k[9]!==S||k[10]!==L||k[11]!==h?(N={queryKey:S,enabled:L,staleTime:3e4,refetchInterval:3e4,queryFn:h},k[9]=S,k[10]=L,k[11]=h,k[12]=N):N=k[12];return(0,n.useQuery)(N)};var t=r(d[0]),n=r(d[1]),s=r(d[2]),c=r(d[3]),o=r(d[4]),l=r(d[5]),u=r(d[6]);const v=500;function p(t,n){return Object.assign({id:t.bestEventId,timestamp:t.firstSeen,endTimestamp:t.lastSeen,className:t.className,label:t.label,importance:t.importance,trackId:t.trackId},t.audioLabels.length>0?{audioLabels:t.audioLabels}:{},void 0!==n&&n.length>0?{positionBoxes:n}:{})}},3516,[15,3081,2594,2705,3162,3381,3501]);
15937
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.trackToTimelineEvent=p,e.timelineEventToTrackSummary=function(t,n,s=""){return Object.assign({trackId:t.trackId??t.id,deviceId:n,cameraName:s,className:t.className},void 0!==t.label?{label:t.label}:{},void 0!==t.importance?{importance:t.importance}:{},{firstSeen:t.timestamp,lastSeen:t.endTimestamp??t.timestamp,state:'idle',active:!1,zonesVisited:[],audioLabels:void 0!==t.audioLabels?[...t.audioLabels]:[],bestEventId:t.id})},e.useDeviceTracks=function(b,y,f){const k=(0,t.c)(13),{controller:T,state:I}=(0,s.useConnection)();let S;k[0]!==b||k[1]!==y||k[2]!==f?(S=["v2","analytics","device-tracks",b,y,f],k[0]=b,k[1]=y,k[2]=f,k[3]=S):S=k[3];const L="connected"===I;let h,N;k[4]!==T||k[5]!==b||k[6]!==y||k[7]!==f?(h=async()=>{const t=T.getSystem();if(!t)return[];const n=await(0,o.capQuery)(t.trpcClient,"pipelineAnalytics","listTracks",{deviceId:b,since:y,until:f,limit:v});if(!Array.isArray(n))return[];const s=[];for(const t of n){const n=(0,l.toTrackSummary)(t,"");null!==n&&s.push(p(n,(0,u.parsePositionBoxes)(t)))}return c.log.info("device-tracks","listTracks",{deviceId:b,count:s.length}),s},k[4]=T,k[5]=b,k[6]=y,k[7]=f,k[8]=h):h=k[8];k[9]!==S||k[10]!==L||k[11]!==h?(N={queryKey:S,enabled:L,staleTime:3e4,refetchInterval:3e4,queryFn:h},k[9]=S,k[10]=L,k[11]=h,k[12]=N):N=k[12];return(0,n.useQuery)(N)};var t=r(d[0]),n=r(d[1]),s=r(d[2]),c=r(d[3]),o=r(d[4]),l=r(d[5]),u=r(d[6]);const v=500;function p(t,n){return Object.assign({id:t.bestEventId,timestamp:t.firstSeen,endTimestamp:t.lastSeen,className:t.className,label:t.label,importance:t.importance,trackId:t.trackId},t.audioLabels.length>0?{audioLabels:t.audioLabels}:{},void 0!==n&&n.length>0?{positionBoxes:n}:{})}},3516,[15,3081,2594,2705,3162,3237,3501]);
15938
15938
  __d(function(g,_r,i,_a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useTimelineActivity=function(f,M,p){const b=(0,t.c)(13),{controller:v,state:h}=(0,s.useConnection)();let A;b[0]!==f||b[1]!==M||b[2]!==p?(A=["v2","analytics","activity",f,M,p],b[0]=f,b[1]=M,b[2]=p,b[3]=A):A=b[3];const k="connected"===h;let R,E;b[4]!==v||b[5]!==f||b[6]!==M||b[7]!==p?(R=async()=>{const t=v.getSystem();if(!t)return r.log.warn("timeline-activity","no system (not connected)"),a;const n=t.trpcClient,s=(0,c.pickBucketMs)(M,p),b=Math.round(Math.abs(p-M)/s),[h,A,k]=await Promise.all([(0,o.capQuery)(n,"pipelineAnalytics","getEventDensity",{deviceId:f,since:M,until:p,bucketMs:s}),(0,o.capQuery)(n,"pipelineAnalytics","getAudioEvents",{deviceId:f,since:M,until:p,limit:1e3}),(0,o.capQuery)(n,"recording","getAvailability",{deviceId:f,fromMs:M,toMs:p})]),R=y(h),E=l(A),I=u(k),Q=(0,c.densityToMotionBuckets)(R,s),S=(0,c.audioEventsToBuckets)(E,M,s,b);return r.log.info("timeline-activity","fetched",{deviceId:f,densityRows:R.length,audioEvents:E.length,recordingRanges:I.length,bucketCount:b}),{recording:I,motion:Q,audio:S}},b[4]=v,b[5]=f,b[6]=M,b[7]=p,b[8]=R):R=b[8];b[9]!==A||b[10]!==k||b[11]!==R?(E={queryKey:A,enabled:k,staleTime:3e4,queryFn:R},b[9]=A,b[10]=k,b[11]=R,b[12]=E):E=b[12];return(0,n.useQuery)(E).data??a};var t=_r(d[0]),n=_r(d[1]),s=_r(d[2]),r=_r(d[3]),o=_r(d[4]),c=_r(d[5]);const a={recording:[],motion:[],audio:[]};function u(t){if(!(0,o.isRecord)(t)||!Array.isArray(t.ranges))return[];const n=[];for(const s of t.ranges)(0,o.isRecord)(s)&&'number'==typeof s.startMs&&'number'==typeof s.endMs&&s.endMs>s.startMs&&n.push({startMs:s.startMs,endMs:s.endMs});n.sort((t,n)=>t.startMs-n.startMs);const s=[];for(const t of n){const n=s[s.length-1];void 0!==n&&t.startMs<=n.endMs?t.endMs>n.endMs&&(s[s.length-1]={startMs:n.startMs,endMs:t.endMs}):s.push({startMs:t.startMs,endMs:t.endMs})}return s}function y(t){if(!Array.isArray(t))return[];const n=[];for(const s of t)(0,o.isRecord)(s)&&'number'==typeof s.bucketStart&&'number'==typeof s.motion&&n.push({bucketStart:s.bucketStart,motion:s.motion});return n}function l(t){if(!Array.isArray(t))return[];const n=[];for(const s of t)(0,o.isRecord)(s)&&'number'==typeof s.timestamp&&'number'==typeof s.dbfs&&n.push({timestamp:s.timestamp,dbfs:s.dbfs});return n}},3517,[15,3081,2594,2705,3162,3518]);
15939
15939
  __d(function(g,_r,_i,a,_m,e,d){"use strict";function t(t,n=-60,o=0){const s=(t-n)/(o-n);return Math.min(1,Math.max(0,s))}Object.defineProperty(e,'__esModule',{value:!0}),e.dbfsToUnit=t,e.densityToMotionBuckets=function(t,n){if(0===t.length)return[];const o=t.reduce((t,n)=>Math.max(t,n.motion),0);return t.map(t=>({startMs:t.bucketStart,endMs:t.bucketStart+n,intensity:o>0?Math.min(1,Math.max(0,t.motion/o)):0}))},e.audioEventsToBuckets=function(n,o,s,i){const r=Array.from({length:i},()=>{});for(const t of n){const n=Math.floor((t.timestamp-o)/s);if(n<0||n>=i)continue;const c=r[n];r[n]=void 0===c?t.dbfs:Math.max(c,t.dbfs)}return r.map((n,i)=>({startMs:o+i*s,endMs:o+(i+1)*s,intensity:void 0!==n?t(n):0}))},e.pickBucketMs=function(t,s,i=240){const r=Math.abs(s-t),c=Math.round(r/i);return Math.min(o,Math.max(n,c))};const n=5e3,o=36e5},3518,[]);
15940
15940
  __d(function(_g,r,i,_a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.dedupeFragmentItems=p,_e.pickRepresentative=h,_e.clusterByZoom=function(t,{topMs:n,zoomIndex:s,sizePx:o,gapPx:a},c){if(0===t.length)return[];const l=[...t].sort((e,t)=>t.timestamp-e.timestamp),u=[];let f=[],b=0;function M(){if(0===f.length)return;const e=h(f,c),t=[...new Set(f.map(e=>e.className))],n=[...new Set(f.map(e=>e.label).filter(e=>'string'==typeof e&&e.length>0))],s=f.map(e=>e.timestamp);u.push({id:e.id,events:f,carouselEvents:p(f),representative:e,classes:t,labels:n,startMs:Math.min(...s),endMs:Math.max(...s),topPx:b,heightPx:o}),f=[]}for(const t of l){const c=(0,e.epochToOffset)(t.timestamp,n,s);0===f.length?(b=c,f.push(t)):(c<b+o+a||(M(),b=c),f.push(t))}return M(),u};var e=r(d[0]);const t=['label','person','vehicle','animal'],n={vehicle:['car','truck','bus','motorcycle'],animal:['dog','cat','bird']};function s(e){return'label'===e?[]:void 0!==n[e]?n[e]:[e]}function o(e,t){if('label'===t)return'string'==typeof e.label&&e.label.length>0;return s(t).includes(e.className)}const a=45e3,c=2e3;function l(e){return{start:e.timestamp,end:e.endTimestamp??e.timestamp}}function u(e,t){const{start:n}=l(t);return n>=e-c&&n<=e+a}function f(e,t){const n=e.importance??0,s=t.importance??0;return s>n?t:n>s?e:l(t).end>=l(e).end?t:e}function p(e){if(e.length<=1)return[...e];const t=new Map,n=[...e].sort((e,t)=>e.timestamp-t.timestamp);for(const e of n){const n=t.get(e.className)??[];let s;for(const t of n)u(t.endMs,e)&&(void 0===s||t.endMs>s.endMs)&&(s=t);void 0!==s?(s.best=f(s.best,e),s.endMs=Math.max(s.endMs,l(e).end)):n.push({best:e,endMs:l(e).end}),t.set(e.className,n)}const s=new Set;for(const e of t.values())for(const t of e)s.add(t.best);return e.filter(e=>s.has(e))}function h(e,n=t){for(const t of n){const n=e.find(e=>o(e,t));if(void 0!==n)return n}return e.reduce((e,t)=>t.timestamp>e.timestamp?t:e,e[0])}},3519,[3510]);
15941
15941
  __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,"ClusterDetailModal",{enumerable:!0,get:function(){return b}});var t=r(d[0]),o=r(d[1]),l=e(r(d[2])),n=e(r(d[3])),s=e(r(d[4])),u=r(d[5]),c=r(d[6]),f=r(d[7]),p=r(d[8]);const b=(0,o.memo)(function(e){const o=(0,t.c)(16),{deviceId:s,cluster:b,onSeek:v,onClose:C,seekAvailable:_}=e,{colors:j}=(0,c.useTheme)(),y=(0,u.useSafeAreaInsets)(),x=null!==b,h=j.background+"F2";let A,I,M,S;return o[0]!==y.top||o[1]!==h?(A=[k.backdrop,{backgroundColor:h,paddingTop:y.top}],o[0]=y.top,o[1]=h,o[2]=A):A=o[2],o[3]!==b||o[4]!==s||o[5]!==C||o[6]!==v||o[7]!==_?(I=(0,p.jsx)(f.ClusterDetailBody,{deviceId:s,cluster:b,onSeek:v,onClose:C,seekAvailable:_}),o[3]=b,o[4]=s,o[5]=C,o[6]=v,o[7]=_,o[8]=I):I=o[8],o[9]!==A||o[10]!==I?(M=(0,p.jsx)(n.default,{style:A,children:I}),o[9]=A,o[10]=I,o[11]=M):M=o[11],o[12]!==C||o[13]!==x||o[14]!==M?(S=(0,p.jsx)(l.default,{visible:x,animationType:"slide",transparent:!0,onRequestClose:C,children:M}),o[12]=C,o[13]=x,o[14]=M,o[15]=S):S=o[15],S}),k=s.default.create({backdrop:{flex:1}})},3520,[15,17,245,20,33,466,2587,3521,10]);
15942
- __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,"ClusterDetailBody",{enumerable:!0,get:function(){return C}});var t=r(d[0]),l=r(d[1]),n=e(r(d[2])),o=e(r(d[3])),s=e(r(d[4])),c=e(r(d[5])),u=e(r(d[6])),f=r(d[7]),h=r(d[8]),p=r(d[9]),x=r(d[10]),y=r(d[11]),k=r(d[12]),I=r(d[13]),b=r(d[14]);function j(e){return e.trackId??e.id}const C=(0,l.memo)(function(e){const u=(0,t.c)(32),{deviceId:x,cluster:C,onSeek:v,onClose:w,bottomInset:A,seekAvailable:P}=e,R=void 0===P||P,{colors:_}=(0,p.useTheme)(),{t:N}=(0,h.useTranslation)();let T;e:{if(null===C){let e;u[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],u[0]=e):e=u[0],T=e;break e}const e=C.carouselEvents.length>0?C.carouselEvents:C.events;let t;u[1]!==e?(t=[...e],u[1]=e,u[2]=t):t=u[2],T=t}const E=T,[G,z]=(0,l.useState)(null);let B,D,M;u[3]!==E?(B=()=>{z(e=>null!==e&&E.some(t=>j(t)===e)?e:void 0!==E[0]?j(E[0]):null)},D=[E],u[3]=E,u[4]=B,u[5]=D):(B=u[4],D=u[5]),(0,l.useEffect)(B,D),u[6]!==G||u[7]!==E?(M=E.find(e=>j(e)===G)??E[0]??null,u[6]=G,u[7]=E,u[8]=M):M=u[8];const F=M;let L;u[9]!==x||u[10]!==F?(L=null!==F?(0,I.timelineEventToTrackSummary)(F,x):null,u[9]=x,u[10]=F,u[11]=L):L=u[11];const O=L;let H,U,V,W,X;return u[12]!==_||u[13]!==F||u[14]!==E?(H=E.length>1?(0,b.jsx)(c.default,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:S.trackRow,style:S.trackRowFlex,children:E.map(e=>{const t=j(e),l=t===(null!==F?j(F):null);return(0,b.jsxs)(s.default,{onPress:()=>z(t),style:S.trackChip,children:[(0,b.jsx)(n.default,{style:[S.chipImage,{borderColor:l?_.primary:"transparent",borderWidth:l?2:0}],children:(0,b.jsx)(y.EventThumb,{event:e,width:56,height:56})}),(0,b.jsx)(o.default,{numberOfLines:1,style:[S.trackChipLabel,{color:l?_.foreground:_.foregroundMuted}],children:(c=e,c.label??c.className)})]},t);var c})}):(0,b.jsx)(n.default,{style:S.trackRowFlex}),u[12]=_,u[13]=F,u[14]=E,u[15]=H):H=u[15],u[16]!==_||u[17]!==w?(U=w?(0,b.jsx)(s.default,{onPress:w,hitSlop:10,style:[S.iconBtn,{backgroundColor:_.surface}],children:(0,b.jsx)(f.X,{size:20,color:_.foreground})}):null,u[16]=_,u[17]=w,u[18]=U):U=u[18],u[19]!==H||u[20]!==U?(V=(0,b.jsxs)(n.default,{style:S.pickerBar,children:[H,U]}),u[19]=H,u[20]=U,u[21]=V):V=u[21],u[22]!==A||u[23]!==_||u[24]!==v||u[25]!==R||u[26]!==O||u[27]!==N?(W=null!==O?(0,b.jsx)(k.TrackDetailView,{track:O,onSeek:R?v:void 0,bottomInset:A}):(0,b.jsx)(n.default,{style:S.empty,children:(0,b.jsx)(o.default,{style:{color:_.foregroundMuted},children:N("v2.theater.detailEmpty")})}),u[22]=A,u[23]=_,u[24]=v,u[25]=R,u[26]=O,u[27]=N,u[28]=W):W=u[28],u[29]!==W||u[30]!==V?(X=(0,b.jsxs)(n.default,{style:S.root,children:[V,W]}),u[29]=W,u[30]=V,u[31]=X):X=u[31],X}),S=u.default.create({root:{flex:1},pickerBar:{flexDirection:'row',alignItems:'center',gap:x.SPACING.sm,paddingHorizontal:x.SPACING.md,paddingTop:x.SPACING.sm},trackRowFlex:{flex:1},trackRow:{gap:x.SPACING.sm,paddingVertical:x.SPACING.xs,paddingRight:x.SPACING.md,alignItems:'center'},trackChip:{width:56,alignItems:'center',gap:2},chipImage:{width:56,height:56,borderRadius:x.RADIUS.md,overflow:'hidden'},trackChipLabel:{fontSize:10,maxWidth:64,textAlign:'center'},iconBtn:{width:36,height:36,borderRadius:x.RADIUS.md,alignItems:'center',justifyContent:'center'},empty:{flex:1,alignItems:'center',justifyContent:'center'}})},3521,[15,17,20,112,252,147,33,813,786,2587,2589,3373,3238,3516,10]);
15942
+ __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,"ClusterDetailBody",{enumerable:!0,get:function(){return C}});var t=r(d[0]),l=r(d[1]),n=e(r(d[2])),o=e(r(d[3])),s=e(r(d[4])),c=e(r(d[5])),u=e(r(d[6])),f=r(d[7]),h=r(d[8]),p=r(d[9]),x=r(d[10]),y=r(d[11]),k=r(d[12]),I=r(d[13]),b=r(d[14]);function j(e){return e.trackId??e.id}const C=(0,l.memo)(function(e){const u=(0,t.c)(32),{deviceId:x,cluster:C,onSeek:v,onClose:w,bottomInset:A,seekAvailable:P}=e,R=void 0===P||P,{colors:_}=(0,p.useTheme)(),{t:N}=(0,h.useTranslation)();let T;e:{if(null===C){let e;u[0]===Symbol.for("react.memo_cache_sentinel")?(e=[],u[0]=e):e=u[0],T=e;break e}const e=C.carouselEvents.length>0?C.carouselEvents:C.events;let t;u[1]!==e?(t=[...e],u[1]=e,u[2]=t):t=u[2],T=t}const E=T,[G,z]=(0,l.useState)(null);let B,D,M;u[3]!==E?(B=()=>{z(e=>null!==e&&E.some(t=>j(t)===e)?e:void 0!==E[0]?j(E[0]):null)},D=[E],u[3]=E,u[4]=B,u[5]=D):(B=u[4],D=u[5]),(0,l.useEffect)(B,D),u[6]!==G||u[7]!==E?(M=E.find(e=>j(e)===G)??E[0]??null,u[6]=G,u[7]=E,u[8]=M):M=u[8];const F=M;let L;u[9]!==x||u[10]!==F?(L=null!==F?(0,I.timelineEventToTrackSummary)(F,x):null,u[9]=x,u[10]=F,u[11]=L):L=u[11];const O=L;let H,U,V,W,X;return u[12]!==_||u[13]!==F||u[14]!==E?(H=E.length>1?(0,b.jsx)(c.default,{horizontal:!0,showsHorizontalScrollIndicator:!1,contentContainerStyle:S.trackRow,style:S.trackRowFlex,children:E.map(e=>{const t=j(e),l=t===(null!==F?j(F):null);return(0,b.jsxs)(s.default,{onPress:()=>z(t),style:S.trackChip,children:[(0,b.jsx)(n.default,{style:[S.chipImage,{borderColor:l?_.primary:"transparent",borderWidth:l?2:0}],children:(0,b.jsx)(y.EventThumb,{event:e,width:56,height:56})}),(0,b.jsx)(o.default,{numberOfLines:1,style:[S.trackChipLabel,{color:l?_.foreground:_.foregroundMuted}],children:(c=e,c.label??c.className)})]},t);var c})}):(0,b.jsx)(n.default,{style:S.trackRowFlex}),u[12]=_,u[13]=F,u[14]=E,u[15]=H):H=u[15],u[16]!==_||u[17]!==w?(U=w?(0,b.jsx)(s.default,{onPress:w,hitSlop:10,style:[S.iconBtn,{backgroundColor:_.surface}],children:(0,b.jsx)(f.X,{size:20,color:_.foreground})}):null,u[16]=_,u[17]=w,u[18]=U):U=u[18],u[19]!==H||u[20]!==U?(V=(0,b.jsxs)(n.default,{style:S.pickerBar,children:[H,U]}),u[19]=H,u[20]=U,u[21]=V):V=u[21],u[22]!==A||u[23]!==_||u[24]!==v||u[25]!==R||u[26]!==O||u[27]!==N?(W=null!==O?(0,b.jsx)(k.TrackDetailView,{track:O,onSeek:R?v:void 0,bottomInset:A}):(0,b.jsx)(n.default,{style:S.empty,children:(0,b.jsx)(o.default,{style:{color:_.foregroundMuted},children:N("v2.theater.detailEmpty")})}),u[22]=A,u[23]=_,u[24]=v,u[25]=R,u[26]=O,u[27]=N,u[28]=W):W=u[28],u[29]!==W||u[30]!==V?(X=(0,b.jsxs)(n.default,{style:S.root,children:[V,W]}),u[29]=W,u[30]=V,u[31]=X):X=u[31],X}),S=u.default.create({root:{flex:1},pickerBar:{flexDirection:'row',alignItems:'center',gap:x.SPACING.sm,paddingHorizontal:x.SPACING.md,paddingTop:x.SPACING.sm},trackRowFlex:{flex:1},trackRow:{gap:x.SPACING.sm,paddingVertical:x.SPACING.xs,paddingRight:x.SPACING.md,alignItems:'center'},trackChip:{width:56,alignItems:'center',gap:2},chipImage:{width:56,height:56,borderRadius:x.RADIUS.md,overflow:'hidden'},trackChipLabel:{fontSize:10,maxWidth:64,textAlign:'center'},iconBtn:{width:36,height:36,borderRadius:x.RADIUS.md,alignItems:'center',justifyContent:'center'},empty:{flex:1,alignItems:'center',justifyContent:'center'}})},3521,[15,17,20,112,252,147,33,813,786,2587,2589,3373,3239,3516,10]);
15943
15943
  __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,"TimelineScroller",{enumerable:!0,get:function(){return L}});var t=r(d[0]),o=r(d[1]),l=e(r(d[2])),n=e(r(d[3])),s=e(r(d[4])),c=e(r(d[5])),u=r(d[6]),f=r(d[7]),h=r(d[8]),p=r(d[9]),v=r(d[10]),x=r(d[11]),y=r(d[12]),b=r(d[13]);const S=36e5,C=h.SPACING.sm+3+h.SPACING.xs;function w(e,t,o,l){const{rowMinutes:n}=p.ZOOM_LEVELS[(0,p.clampZoomIndex)(l)],s=6e4*n,c=[];let u=Math.ceil((e+o)/s)*s;for(;u>=t;)c.push(u),u-=s;return c}const L=(0,o.memo)((0,o.forwardRef)(function(e,c){const p=(0,t.c)(72),{topMs:L,zoomIndex:P,dayWindow:E,clusters:j,activity:A,showMotionLane:k,showAudioLane:M,cardWidth:_,viewportHeight:G,indicatorOffsetPx:N,isLive:O,onScroll:D,onClusterPress:T,onClusterOpenDetail:R,clusterLabel:V,eventKinds:W}=e,{colors:z}=(0,f.useTheme)(),{t:H}=(0,u.useTranslation)(),F=(0,o.useRef)(null),[K,Z]=(0,o.useState)(0);let U,Y,q;p[0]===Symbol.for("react.memo_cache_sentinel")?(U=()=>({scrollToOffset:e=>{const{offset:t,animated:o}=e;return F.current?.scrollTo({y:t,animated:o??!1})}}),Y=[],p[0]=U,p[1]=Y):(U=p[0],Y=p[1]),(0,o.useImperativeHandle)(c,U,Y),p[2]!==E.from||p[3]!==L||p[4]!==P?(q=(0,v.epochToOffset)(E.from,L,P),p[2]=E.from,p[3]=L,p[4]=P,p[5]=q):q=p[5];const B=Math.max(G,q),J=N+B,Q=(0,v.pxPerHour)(P),X=Q>0?N/Q*S:0;let $;p[6]!==N||p[7]!==Q||p[8]!==L?($=e=>(L-e)/S*Q+N,p[6]=N,p[7]=Q,p[8]=L,p[9]=$):$=p[9];const ee=$;let te,oe,ie,le,ne,re,se,ae,de,ce,ue,fe,he,pe;if(p[10]!==_||p[11]!==z||p[12]!==J||p[13]!==ee||p[14]!==E.from||p[15]!==X||p[16]!==D||p[17]!==K||p[18]!==L||p[19]!==P){const e=w(L,E.from,X,P),t=h.SPACING.md+38+h.SPACING.sm,o=K-C-18-t;let c;oe=K>0?Math.max(t,t+(o-_)/2):h.SPACING.lg,te=l.default,re=F,se=!1,ae=D,p[30]===Symbol.for("react.memo_cache_sentinel")?(de=e=>Z(e.nativeEvent.layout.width),p[30]=de):de=p[30],ce=16,ie=I.scrollView,p[31]!==J?(le={height:J,position:"relative"},p[31]=J,p[32]=le):le=p[32],p[33]!==z||p[34]!==J||p[35]!==ee?(c=e=>{const t=ee(e);return t<0||t>J?null:(0,b.jsxs)(n.default,{pointerEvents:"none",style:[I.tickRow,{top:t}],children:[(0,b.jsx)(s.default,{style:[I.tickLabel,{color:z.foregroundSubtle}],children:(o=e,new Date(o).toLocaleTimeString(void 0,{hour:'2-digit',minute:'2-digit'}))}),(0,b.jsx)(n.default,{style:[I.tickLine,{backgroundColor:z.borderSubtle}]})]},e);var o},p[33]=z,p[34]=J,p[35]=ee,p[36]=c):c=p[36],ne=e.map(c),p[10]=_,p[11]=z,p[12]=J,p[13]=ee,p[14]=E.from,p[15]=X,p[16]=D,p[17]=K,p[18]=L,p[19]=P,p[20]=te,p[21]=oe,p[22]=ie,p[23]=le,p[24]=ne,p[25]=re,p[26]=se,p[27]=ae,p[28]=de,p[29]=ce}else te=p[20],oe=p[21],ie=p[22],le=p[23],ne=p[24],re=p[25],se=p[26],ae=p[27],de=p[28],ce=p[29];return p[37]!==z||p[38]!==N||p[39]!==O||p[40]!==H?(ue=O?null:(0,b.jsxs)(n.default,{pointerEvents:"none",style:[I.liveEdge,{top:N}],children:[(0,b.jsx)(n.default,{style:[I.liveEdgeLine,{backgroundColor:z.live}]}),(0,b.jsxs)(n.default,{style:[I.liveEdgeCap,{backgroundColor:z.live}],children:[(0,b.jsx)(n.default,{style:[I.liveEdgeDot,{backgroundColor:z.primaryForeground}]}),(0,b.jsx)(s.default,{style:[I.liveEdgeLabel,{color:z.primaryForeground}],children:H("v2.theater.live")})]})]}),p[37]=z,p[38]=N,p[39]=O,p[40]=H,p[41]=ue):ue=p[41],p[42]!==oe||p[43]!==_||p[44]!==V||p[45]!==j||p[46]!==W||p[47]!==N||p[48]!==R||p[49]!==T?(fe=_>0&&j.map(e=>(0,b.jsx)(n.default,{style:[I.clusterWrapper,{top:e.topPx+N,left:oe,height:e.heightPx,width:_}],children:(0,b.jsx)(x.ClusterCard,{cluster:e,width:_,onPress:()=>{T(e)},onOpenDetail:R?()=>{R(e)}:void 0,clusterLabel:V,eventKinds:W})},e.id)),p[42]=oe,p[43]=_,p[44]=V,p[45]=j,p[46]=W,p[47]=N,p[48]=R,p[49]=T,p[50]=fe):fe=p[50],p[51]!==A||p[52]!==B||p[53]!==N||p[54]!==M||p[55]!==k||p[56]!==L||p[57]!==P?(he=B>0&&(0,b.jsx)(n.default,{pointerEvents:"none",style:[I.activityColumn,{top:N,height:B}],children:(0,b.jsx)(y.ActivityLanes,{model:A,topMs:L,zoomIndex:P,height:B,scrollOffsetY:0,width:18,showMotion:k,showAudio:M})}),p[51]=A,p[52]=B,p[53]=N,p[54]=M,p[55]=k,p[56]=L,p[57]=P,p[58]=he):he=p[58],p[59]!==te||p[60]!==ie||p[61]!==le||p[62]!==ne||p[63]!==ue||p[64]!==fe||p[65]!==he||p[66]!==re||p[67]!==se||p[68]!==ae||p[69]!==de||p[70]!==ce?(pe=(0,b.jsxs)(te,{ref:re,showsVerticalScrollIndicator:se,onScroll:ae,onLayout:de,scrollEventThrottle:ce,style:ie,contentContainerStyle:le,children:[ne,ue,fe,he]}),p[59]=te,p[60]=ie,p[61]=le,p[62]=ne,p[63]=ue,p[64]=fe,p[65]=he,p[66]=re,p[67]=se,p[68]=ae,p[69]=de,p[70]=ce,p[71]=pe):pe=p[71],pe})),I=c.default.create({scrollView:{flex:1},tickRow:{position:'absolute',left:0,right:0,flexDirection:'row',alignItems:'center',paddingLeft:h.SPACING.md,gap:h.SPACING.sm},tickLabel:{fontSize:9,fontVariant:['tabular-nums'],width:38,flexShrink:0},liveEdge:{position:'absolute',left:0,right:0,height:0,justifyContent:'center'},liveEdgeLine:{position:'absolute',left:0,right:0,height:1,opacity:.5},liveEdgeCap:{position:'absolute',right:h.SPACING.sm,top:-8,flexDirection:'row',alignItems:'center',gap:4,paddingHorizontal:6,paddingVertical:1.5,borderRadius:h.RADIUS.sm},liveEdgeDot:{width:5,height:5,borderRadius:2.5},liveEdgeLabel:{fontSize:9,fontWeight:'800',letterSpacing:.6},tickLine:{flex:1,height:c.default.hairlineWidth,opacity:.5},clusterWrapper:{position:'absolute',overflow:'hidden'},activityColumn:{position:'absolute',top:0,right:h.SPACING.sm+3+h.SPACING.xs}})},3522,[15,17,147,20,112,33,786,2587,2589,3142,3510,3523,3524,10]);
15944
15944
  __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,"ClusterCard",{enumerable:!0,get:function(){return y}});var t=r(_d[0]),o=r(_d[1]),n=e(r(_d[2])),l=e(r(_d[3])),s=e(r(_d[4])),i=e(r(_d[5])),d=e(r(_d[6])),c=r(_d[7]),u=r(_d[8]),h=r(_d[9]),f=r(_d[10]),p=r(_d[11]),m=r(_d[12]),b=r(_d[13]),v=r(_d[14]),x=r(_d[15]);function C(e){return e.carouselEvents.length>0?e.carouselEvents:e.events.length>0?e.events:[e.representative]}const y=(0,o.memo)(function(e){const y=(0,t.c)(136),{cluster:j,width:I,selected:w,onPress:A,onOpenDetail:R,clusterLabel:k,eventKinds:P}=e,L=void 0!==w&&w,O=void 0===k?"icon":k,{colors:T}=(0,h.useTheme)(),{t:_}=(0,u.useTranslation)();let N;if(y[0]!==P){N=new Map;for(const e of P??[])N.set(e.kind,e);y[0]=P,y[1]=N}else N=y[1];const B=N,{settings:D}=(0,f.useSettings)(),z=D.clusters.showClass,E=D.clusters.showImportance;let G;y[2]!==j.representative.className?(G=(0,m.colorForEventType)(j.representative.className),y[2]=j.representative.className,y[3]=G):G=y[3];const M=G;let U;y[4]!==j?(U=C(j),y[4]=j,y[5]=U):U=y[5];const W=U,$=W.length>1,F=j.events.length>0,[K,V]=(0,o.useState)(0),H=W[K]?.timestamp??j.representative.timestamp;let q;y[6]!==H?(q=new Date(H).toLocaleTimeString(void 0,{hour:'2-digit',minute:'2-digit'}),y[6]=H,y[7]=q):q=y[7];const J=q,Q=W[K]?.importance??j.representative.importance,[X,Y]=(0,o.useState)(I),Z=(0,o.useRef)(null);let ee;y[8]===Symbol.for("react.memo_cache_sentinel")?(ee=e=>{const t=e.nativeEvent.layout.width;t>0&&Y(t)},y[8]=ee):ee=y[8];const te=ee;let oe;y[9]!==X||y[10]!==W.length?(oe=e=>{const t=Math.max(0,Math.min(e,W.length-1));Z.current?.scrollTo({x:t*X,animated:!0}),V(t)},y[9]=X,y[10]=W.length,y[11]=oe):oe=y[11];const ne=oe;let re;y[12]!==X||y[13]!==W.length?(re=e=>{if(X<=0)return;const t=e.nativeEvent.contentOffset.x,o=Math.max(0,Math.min(Math.round(t/X),W.length-1));V(o)},y[12]=X,y[13]=W.length,y[14]=re):re=y[14];const le=re,se=j.heightPx,ie=L?3:2;let ae,de,ce,ue,he,ge,fe,pe,me,be,ve,xe,Ce,ye,Se,je,Ie,we,Ae,Re,ke,Pe,Le,Oe,Te,Ne;if(y[15]!==M||y[16]!==K||y[17]!==ie||y[18]!==se||y[19]!==X||y[20]!==j||y[21]!==O||y[22]!==T||y[23]!==W||y[24]!==ne||y[25]!==$||y[26]!==B||y[27]!==le||y[28]!==A||y[29]!==z||y[30]!==_||y[31]!==I){const e=j.classes.slice(0,3),t=j.classes.length-e.length;let o,u;if(y[47]!==j.events){o=new Set;for(const e of j.events)for(const t of e.audioLabels??[])o.add(t);y[47]=j.events,y[48]=o}else o=y[48];y[49]!==o?(u=[...o],y[49]=o,y[50]=u):u=y[50];const h=u,f=h.slice(0,2);ue=h.length-f.length,ce=s.default,y[51]!==M||y[52]!==ie||y[53]!==se||y[54]!==T.surface||y[55]!==I?(be=[S.container,{width:I,height:se,borderLeftWidth:ie,borderLeftColor:M,backgroundColor:T.surface,borderRadius:p.RADIUS.md}],y[51]=M,y[52]=ie,y[53]=se,y[54]=T.surface,y[55]=I,y[56]=be):be=y[56],ve=A,xe=te,y[57]!==K||y[58]!==se||y[59]!==X||y[60]!==j||y[61]!==W||y[62]!==$||y[63]!==le?(Ce=$&&X>0?(0,x.jsx)(d.default,{ref:Z,horizontal:!0,nestedScrollEnabled:!0,snapToInterval:X,decelerationRate:"fast",showsHorizontalScrollIndicator:!1,onScroll:le,scrollEventThrottle:16,style:i.default.absoluteFill,contentContainerStyle:{height:se},children:W.map((e,t)=>Math.abs(t-K)<=1?(0,x.jsx)(b.EventThumb,{event:e,width:X,height:se},`${e.id}_${t}`):(0,x.jsx)(n.default,{style:{width:X,height:se,backgroundColor:(0,m.colorForEventType)(e.className)+"1A"}},`${e.id}_${t}`))}):(0,x.jsx)(n.default,{style:i.default.absoluteFill,children:(0,x.jsx)(b.EventThumb,{event:j.representative,width:X,height:se})}),y[57]=K,y[58]=se,y[59]=X,y[60]=j,y[61]=W,y[62]=$,y[63]=le,y[64]=Ce):Ce=y[64],y[65]!==K||y[66]!==T.background||y[67]!==T.foreground||y[68]!==ne||y[69]!==$?(ye=$&&K>0&&(0,x.jsx)(s.default,{style:[S.navBtn,S.navBtnLeft,{backgroundColor:T.background+"B0"}],onPress:()=>ne(K-1),hitSlop:6,children:(0,x.jsx)(c.ChevronLeft,{size:14,color:T.foreground})}),y[65]=K,y[66]=T.background,y[67]=T.foreground,y[68]=ne,y[69]=$,y[70]=ye):ye=y[70],y[71]!==K||y[72]!==T.background||y[73]!==T.foreground||y[74]!==W||y[75]!==ne||y[76]!==$?(Se=$&&K<W.length-1&&(0,x.jsx)(s.default,{style:[S.navBtn,S.navBtnRight,{backgroundColor:T.background+"B0"}],onPress:()=>ne(K+1),hitSlop:6,children:(0,x.jsx)(c.ChevronRight,{size:14,color:T.foreground})}),y[71]=K,y[72]=T.background,y[73]=T.foreground,y[74]=W,y[75]=ne,y[76]=$,y[77]=Se):Se=y[77],de=n.default;const C=T.background+"B0";y[78]!==C?(me=[S.bottomOverlay,{backgroundColor:C}],y[78]=C,y[79]=me):me=y[79],ae=n.default,he=S.pillsRow,ge=z?e.map((e,t)=>{const o=B.get(e),s=o?.color??(0,m.colorForEventType)(e),i="icon"===O&&void 0!==o?(0,v.resolveEventKindIcon)(o.iconId):null;return(0,x.jsx)(n.default,{style:[S.pill,{backgroundColor:s+"2A",borderColor:s+"66"}],children:i?(0,x.jsx)(i,{size:10,color:s}):(0,x.jsx)(l.default,{style:[S.pillText,{color:s}],children:o?(0,v.eventKindLabel)(o,_):e})},`${e}_${t}`)}):null,y[80]!==M||y[81]!==t||y[82]!==z?(fe=z&&t>0&&(0,x.jsxs)(l.default,{style:[S.extraBadge,{color:M}],children:["+",t]}),y[80]=M,y[81]=t,y[82]=z,y[83]=fe):fe=y[83],pe=z?f.map((e,t)=>{const o=`audio-${e.toLowerCase()}`,s=B.get(o),i="icon"===O?(0,v.resolveEventKindIcon)(o):null;return(0,x.jsx)(n.default,{style:[S.pill,{backgroundColor:m.AUDIO_COLOR+"2A",borderColor:m.AUDIO_COLOR+"66"}],children:i?(0,x.jsx)(i,{size:10,color:m.AUDIO_COLOR}):(0,x.jsx)(l.default,{style:[S.pillText,{color:m.AUDIO_COLOR}],children:s?(0,v.eventKindLabel)(s,_):e})},`audio_${e}_${t}`)}):null,y[15]=M,y[16]=K,y[17]=ie,y[18]=se,y[19]=X,y[20]=j,y[21]=O,y[22]=T,y[23]=W,y[24]=ne,y[25]=$,y[26]=B,y[27]=le,y[28]=A,y[29]=z,y[30]=_,y[31]=I,y[32]=ae,y[33]=de,y[34]=ce,y[35]=ue,y[36]=he,y[37]=ge,y[38]=fe,y[39]=pe,y[40]=me,y[41]=be,y[42]=ve,y[43]=xe,y[44]=Ce,y[45]=ye,y[46]=Se}else ae=y[32],de=y[33],ce=y[34],ue=y[35],he=y[36],ge=y[37],fe=y[38],pe=y[39],me=y[40],be=y[41],ve=y[42],xe=y[43],Ce=y[44],ye=y[45],Se=y[46];return y[84]!==ue||y[85]!==z?(je=z&&ue>0&&(0,x.jsxs)(l.default,{style:[S.extraBadge,{color:m.AUDIO_COLOR}],children:["+",ue]}),y[84]=ue,y[85]=z,y[86]=je):je=y[86],y[87]!==ae||y[88]!==he||y[89]!==ge||y[90]!==fe||y[91]!==pe||y[92]!==je?(Ie=(0,x.jsxs)(ae,{style:he,children:[ge,fe,pe,je]}),y[87]=ae,y[88]=he,y[89]=ge,y[90]=fe,y[91]=pe,y[92]=je,y[93]=Ie):Ie=y[93],y[94]!==Q||y[95]!==T.primary||y[96]!==T.primaryForeground||y[97]!==E?(we=E&&"number"==typeof Q?(0,x.jsx)(n.default,{style:[S.importancePill,{backgroundColor:T.primary}],children:(0,x.jsx)(l.default,{style:[S.importanceText,{color:T.primaryForeground}],children:Math.round(100*Q)})}):null,y[94]=Q,y[95]=T.primary,y[96]=T.primaryForeground,y[97]=E,y[98]=we):we=y[98],y[99]!==M||y[100]!==K||y[101]!==W||y[102]!==$?(Ae=$&&(0,x.jsxs)(l.default,{style:[S.pageCounter,{color:M}],children:[K+1,"/",W.length]}),y[99]=M,y[100]=K,y[101]=W,y[102]=$,y[103]=Ae):Ae=y[103],y[104]!==T.foregroundMuted?(Re=[S.timeLabel,p.TABULAR,{color:T.foregroundMuted}],y[104]=T.foregroundMuted,y[105]=Re):Re=y[105],y[106]!==Re||y[107]!==J?(ke=(0,x.jsx)(l.default,{style:Re,children:J}),y[106]=Re,y[107]=J,y[108]=ke):ke=y[108],y[109]!==we||y[110]!==Ae||y[111]!==ke?(Pe=(0,x.jsxs)(n.default,{style:S.rightRow,children:[we,Ae,ke]}),y[109]=we,y[110]=Ae,y[111]=ke,y[112]=Pe):Pe=y[112],y[113]!==de||y[114]!==me||y[115]!==Ie||y[116]!==Pe?(Le=(0,x.jsxs)(de,{style:me,children:[Ie,Pe]}),y[113]=de,y[114]=me,y[115]=Ie,y[116]=Pe,y[117]=Le):Le=y[117],y[118]!==T.background||y[119]!==T.foreground||y[120]!==R?(Oe=R?(0,x.jsx)(s.default,{style:[S.lensBtn,{backgroundColor:T.background+"CC"}],onPress:R,hitSlop:8,children:(0,x.jsx)(c.Search,{size:12,color:T.foreground})}):null,y[118]=T.background,y[119]=T.foreground,y[120]=R,y[121]=Oe):Oe=y[121],y[122]!==M||y[123]!==F?(Te=F&&(0,x.jsx)(n.default,{style:[S.eventsDot,{backgroundColor:M}]}),y[122]=M,y[123]=F,y[124]=Te):Te=y[124],y[125]!==ce||y[126]!==be||y[127]!==ve||y[128]!==xe||y[129]!==Ce||y[130]!==ye||y[131]!==Se||y[132]!==Le||y[133]!==Oe||y[134]!==Te?(Ne=(0,x.jsxs)(ce,{style:be,onPress:ve,onLayout:xe,children:[Ce,ye,Se,Le,Oe,Te]}),y[125]=ce,y[126]=be,y[127]=ve,y[128]=xe,y[129]=Ce,y[130]=ye,y[131]=Se,y[132]=Le,y[133]=Oe,y[134]=Te,y[135]=Ne):Ne=y[135],Ne}),S=i.default.create({container:{overflow:'hidden',borderLeftWidth:2},bottomOverlay:{position:'absolute',bottom:0,left:0,right:0,flexDirection:'row',alignItems:'center',justifyContent:'space-between',paddingHorizontal:p.SPACING.sm,paddingVertical:p.SPACING.xs+1},pillsRow:{flexDirection:'row',alignItems:'center',gap:p.SPACING.xs,flexShrink:1,flexWrap:'nowrap'},pill:{paddingHorizontal:p.SPACING.xs+1,paddingVertical:1,borderRadius:p.RADIUS.sm,borderWidth:1},pillText:{fontSize:8,fontWeight:'600'},extraBadge:{fontSize:8,fontWeight:'700'},rightRow:{flexDirection:'row',alignItems:'center',gap:p.SPACING.xs,flexShrink:0},importancePill:{paddingHorizontal:5,paddingVertical:1,borderRadius:8},importanceText:{fontSize:8,fontWeight:'700',fontVariant:['tabular-nums']},pageCounter:{fontSize:9,fontWeight:'600',fontVariant:['tabular-nums']},timeLabel:{fontSize:9,flexShrink:0},carouselToggle:{position:'absolute',top:p.SPACING.sm,left:p.SPACING.sm,width:18,height:18,borderRadius:p.RADIUS.sm,borderWidth:1,alignItems:'center',justifyContent:'center'},eventsDot:{position:'absolute',top:p.SPACING.sm,right:p.SPACING.sm,width:6,height:6,borderRadius:3},lensBtn:{position:'absolute',top:p.SPACING.sm,left:p.SPACING.sm,width:20,height:20,borderRadius:p.RADIUS.sm,alignItems:'center',justifyContent:'center'},navBtn:{position:'absolute',top:'50%',marginTop:-11,width:22,height:22,borderRadius:11,alignItems:'center',justifyContent:'center'},navBtnLeft:{left:p.SPACING.xs},navBtnRight:{right:p.SPACING.xs}})},3523,[15,17,20,112,252,33,147,813,786,2587,3177,2589,3231,3373,3170,10]);
15945
15945
  __d(function(g,_r,i,a,m,_e,d){"use strict";function t(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"ActivityLanes",{enumerable:!0,get:function(){return w}});var e=_r(d[0]),o=_r(d[1]),n=t(_r(d[2])),s=t(_r(d[3])),l=_r(d[4]),r=_r(d[5]),c=_r(d[6]);const h=r.BAND.recording,u=r.BAND.motion,f=r.BAND.audioGradient[1];function p(t,e,o,n,s,r){const c=(0,l.epochToOffset)(e,o,n)-s,h=(0,l.epochToOffset)(t,o,n)-s,u=Math.max(0,c),f=Math.min(r,h)-u;return f<=0?null:{top:u,height:f}}function x(t){const o=(0,e.c)(16),{ranges:s,topMs:l,zoomIndex:r,scrollOffsetY:u,height:f,width:x}=t;let M,y,w;if(o[0]!==x?(M=[j.lane,{width:x}],o[0]=x,o[1]=M):M=o[1],o[2]!==s||o[3]!==u||o[4]!==l||o[5]!==f||o[6]!==r){let t;o[8]!==u||o[9]!==l||o[10]!==f||o[11]!==r?(t=t=>{const e=p(t.startMs,t.endMs,l,r,u,f);return null===e?null:(0,c.jsx)(n.default,{style:[j.segment,{top:e.top,height:e.height,backgroundColor:h,opacity:.32}]},`rec_${t.startMs}_${t.endMs}`)},o[8]=u,o[9]=l,o[10]=f,o[11]=r,o[12]=t):t=o[12],y=s.map(t),o[2]=s,o[3]=u,o[4]=l,o[5]=f,o[6]=r,o[7]=y}else y=o[7];return o[13]!==M||o[14]!==y?(w=(0,c.jsx)(n.default,{style:M,children:y}),o[13]=M,o[14]=y,o[15]=w):w=o[15],w}function M(t){const o=(0,e.c)(16),{buckets:s,topMs:l,zoomIndex:r,scrollOffsetY:h,height:f,width:x}=t;let M,y,w;if(o[0]!==x?(M=[j.lane,{width:x}],o[0]=x,o[1]=M):M=o[1],o[2]!==s||o[3]!==h||o[4]!==l||o[5]!==f||o[6]!==r){let t;o[8]!==h||o[9]!==l||o[10]!==f||o[11]!==r?(t=t=>{if(t.intensity<=0)return null;const e=p(t.startMs,t.endMs,l,r,h,f);return null===e?null:(0,c.jsx)(n.default,{style:[j.segment,{top:e.top,height:e.height,backgroundColor:u,opacity:Math.max(.1,t.intensity)}]},`mot_${t.startMs}`)},o[8]=h,o[9]=l,o[10]=f,o[11]=r,o[12]=t):t=o[12],y=s.map(t),o[2]=s,o[3]=h,o[4]=l,o[5]=f,o[6]=r,o[7]=y}else y=o[7];return o[13]!==M||o[14]!==y?(w=(0,c.jsx)(n.default,{style:M,children:y}),o[13]=M,o[14]=y,o[15]=w):w=o[15],w}function y(t){const o=(0,e.c)(16),{buckets:s,topMs:l,zoomIndex:r,scrollOffsetY:h,height:u,width:x}=t;let M,y,w;if(o[0]!==x?(M=[j.lane,{width:x}],o[0]=x,o[1]=M):M=o[1],o[2]!==s||o[3]!==h||o[4]!==l||o[5]!==u||o[6]!==r){let t;o[8]!==h||o[9]!==l||o[10]!==u||o[11]!==r?(t=t=>{if(t.intensity<=0)return null;const e=p(t.startMs,t.endMs,l,r,h,u);return null===e?null:(0,c.jsx)(n.default,{style:[j.segment,{top:e.top,height:e.height,backgroundColor:f,opacity:Math.max(.1,t.intensity)}]},`aud_${t.startMs}`)},o[8]=h,o[9]=l,o[10]=u,o[11]=r,o[12]=t):t=o[12],y=s.map(t),o[2]=s,o[3]=h,o[4]=l,o[5]=u,o[6]=r,o[7]=y}else y=o[7];return o[13]!==M||o[14]!==y?(w=(0,c.jsx)(n.default,{style:M,children:y}),o[13]=M,o[14]=y,o[15]=w):w=o[15],w}const w=(0,o.memo)(function(t){const o=(0,e.c)(33),{model:s,topMs:l,zoomIndex:r,height:h,scrollOffsetY:u,width:f,showMotion:p,showAudio:w}=t,_=void 0===p||p,b=void 0===w||w,O=Math.max(1,(f-4)/3);let v,k,z,I,Y,A,D;return o[0]!==h||o[1]!==f?(v=[j.container,{width:f,height:h}],o[0]=h,o[1]=f,o[2]=v):v=o[2],o[3]!==h||o[4]!==O||o[5]!==s.recording||o[6]!==u||o[7]!==l||o[8]!==r?(k=(0,c.jsx)(x,{ranges:s.recording,topMs:l,zoomIndex:r,scrollOffsetY:u,height:h,width:O}),o[3]=h,o[4]=O,o[5]=s.recording,o[6]=u,o[7]=l,o[8]=r,o[9]=k):k=o[9],o[10]===Symbol.for("react.memo_cache_sentinel")?(z=(0,c.jsx)(n.default,{style:{width:2}}),o[10]=z):z=o[10],o[11]!==h||o[12]!==O||o[13]!==s.motion||o[14]!==u||o[15]!==_||o[16]!==l||o[17]!==r?(I=_?(0,c.jsx)(M,{buckets:s.motion,topMs:l,zoomIndex:r,scrollOffsetY:u,height:h,width:O}):(0,c.jsx)(n.default,{style:{width:O}}),o[11]=h,o[12]=O,o[13]=s.motion,o[14]=u,o[15]=_,o[16]=l,o[17]=r,o[18]=I):I=o[18],o[19]===Symbol.for("react.memo_cache_sentinel")?(Y=(0,c.jsx)(n.default,{style:{width:2}}),o[19]=Y):Y=o[19],o[20]!==h||o[21]!==O||o[22]!==s.audio||o[23]!==u||o[24]!==b||o[25]!==l||o[26]!==r?(A=b?(0,c.jsx)(y,{buckets:s.audio,topMs:l,zoomIndex:r,scrollOffsetY:u,height:h,width:O}):(0,c.jsx)(n.default,{style:{width:O}}),o[20]=h,o[21]=O,o[22]=s.audio,o[23]=u,o[24]=b,o[25]=l,o[26]=r,o[27]=A):A=o[27],o[28]!==v||o[29]!==k||o[30]!==I||o[31]!==A?(D=(0,c.jsxs)(n.default,{pointerEvents:"none",style:v,children:[k,z,I,Y,A]}),o[28]=v,o[29]=k,o[30]=I,o[31]=A,o[32]=D):D=o[32],D}),j=s.default.create({container:{flexDirection:'row',overflow:'hidden'},lane:{position:'relative',overflow:'hidden'},segment:{position:'absolute',left:0,right:0}})},3524,[15,17,20,33,3510,2589,10]);
@@ -15972,12 +15972,12 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{v
15972
15972
  __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 o}});var t=r(d[0]),n=r(d[1]),c=r(d[2]);function o(){const o=(0,t.c)(1);let u;return o[0]===Symbol.for("react.memo_cache_sentinel")?(u=(0,c.jsx)(n.CamerasManageScreen,{}),o[0]=u):u=o[0],u}},3551,[15,3552,10]);
15973
15973
  __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}),_e.CamerasManageScreen=function(){const e=(0,o.c)(34),{t:s}=(0,S.useTranslation)(),{colors:u}=(0,C.useTheme)(),c=(0,h.useRouter)(),{data:f,isLoading:p}=(0,v.useAllCameras)();let y;e[0]!==f?(y=void 0===f?[]:f,e[0]=f,e[1]=y):y=e[1];const j=y,{setLocalName:H,setHidden:R,setOrder:T}=(0,A.useCameraPrefs)(),[D,E]=(0,n.useState)(j);let z,L,w;e[2]!==j?(z=()=>{E(j)},L=[j],e[2]=j,e[3]=z,e[4]=L):(z=e[3],L=e[4]);(0,n.useEffect)(z,L),e[5]!==T?(w=e=>{const{data:o}=e;E(o),T(o.map(k))},e[5]=T,e[6]=w):w=e[6];const _=w;let O;e[7]!==u||e[8]!==R||e[9]!==H?(O=e=>{const{item:o,drag:n,isActive:t}=e;return(0,I.jsx)(G,{camera:o,drag:n,isActive:t,colors:u,onRename:e=>H(o.id,e),onToggleHidden:e=>R(o.id,e)})},e[7]=u,e[8]=R,e[9]=H,e[10]=O):O=e[10];const V=O;let B,W,F,K,U,q;e[11]!==u.background?(B={flex:1,backgroundColor:u.background},e[11]=u.background,e[12]=B):B=e[12];e[13]!==s?(W=s("v2.cameras.manage"),e[13]=s,e[14]=W):W=e[14];e[15]!==c?(F=()=>c.back(),e[15]=c,e[16]=F):F=e[16];e[17]!==W||e[18]!==F?(K=(0,I.jsx)(N.ScreenHeader,{title:W,onBack:F,bordered:!0}),e[17]=W,e[18]=F,e[19]=K):K=e[19];e[20]!==j||e[21]!==u.foregroundMuted||e[22]!==u.foregroundSubtle||e[23]!==u.primary||e[24]!==D||e[25]!==_||e[26]!==p||e[27]!==V||e[28]!==s?(U=p?(0,I.jsx)(t.default,{style:M.centered,children:(0,I.jsx)(b.default,{color:u.primary})}):0===j.length?(0,I.jsx)(t.default,{style:M.centered,children:(0,I.jsx)(l.default,{style:{color:u.foregroundMuted,fontSize:15},children:s("v2.cameras.empty")})}):(0,I.jsx)(x.default,{data:D,keyExtractor:P,onDragEnd:_,renderItem:V,contentContainerStyle:M.content,activationDistance:12,ListHeaderComponent:(0,I.jsx)(l.default,{style:[M.hint,{color:u.foregroundSubtle}],children:s("v2.cameras.manageHint")})}),e[20]=j,e[21]=u.foregroundMuted,e[22]=u.foregroundSubtle,e[23]=u.primary,e[24]=D,e[25]=_,e[26]=p,e[27]=V,e[28]=s,e[29]=U):U=e[29];e[30]!==U||e[31]!==B||e[32]!==K?(q=(0,I.jsxs)(t.default,{style:B,children:[K,U]}),e[30]=U,e[31]=B,e[32]=K,e[33]=q):q=e[33];return q};var o=r(d[0]),n=r(d[1]),t=e(r(d[2])),l=e(r(d[3])),s=e(r(d[4])),u=e(r(d[5])),c=e(r(d[6])),f=e(r(d[7])),b=e(r(d[8]));r(d[9]);var S=r(d[10]),h=r(d[11]),p=r(d[12]),x=e(p),y=r(d[13]),C=r(d[14]),j=r(d[15]),N=r(d[16]),v=r(d[17]),A=r(d[18]),I=r(d[19]);function P(e){return String(e.id)}function k(e){return e.id}function G(e){const f=(0,o.c)(59),{camera:b,drag:h,isActive:x,colors:C,onRename:j,onToggleHidden:N}=e,{t:v}=(0,S.useTranslation)(),[A,P]=(0,n.useState)(b.name);let k,G,H;f[0]!==b.name?(k=()=>{P(b.name)},G=[b.name],f[0]=b.name,f[1]=k,f[2]=G):(k=f[1],G=f[2]),(0,n.useEffect)(k,G),f[3]!==b.name||f[4]!==A||f[5]!==j?(H=()=>{A!==b.name&&j(A)},f[3]=b.name,f[4]=A,f[5]=j,f[6]=H):H=f[6];const R=H,T=b.name!==b.originalName,D=x?C.surfaceHover:C.surface,E=b.hidden?.55:1;let z,L,w,_;f[7]!==C.border||f[8]!==D||f[9]!==E?(z=[M.row,{backgroundColor:D,borderColor:C.border,opacity:E}],f[7]=C.border,f[8]=D,f[9]=E,f[10]=z):z=f[10],f[11]!==v?(L=v("v2.cameras.reorderHandle"),f[11]=v,f[12]=L):L=f[12],f[13]!==C.foregroundMuted?(w=(0,I.jsx)(y.GripVertical,{size:20,color:C.foregroundMuted}),f[13]=C.foregroundMuted,f[14]=w):w=f[14],f[15]!==h||f[16]!==L||f[17]!==w?(_=(0,I.jsx)(c.default,{accessibilityRole:"button",accessibilityLabel:L,onLongPress:h,delayLongPress:150,style:M.handle,children:w}),f[15]=h,f[16]=L,f[17]=w,f[18]=_):_=f[18];const O=b.online?C.success:C.foregroundDisabled;let V,B,W,F,K,U,q;f[19]!==O?(V=(0,I.jsx)(t.default,{style:[M.statusDot,{backgroundColor:O}]}),f[19]=O,f[20]=V):V=f[20],f[21]!==C.foreground?(B=[M.input,{color:C.foreground}],f[21]=C.foreground,f[22]=B):B=f[22],f[23]!==b.originalName||f[24]!==C.foregroundSubtle||f[25]!==R||f[26]!==A||f[27]!==B?(W=(0,I.jsx)(s.default,{value:A,onChangeText:P,onBlur:R,onSubmitEditing:R,returnKeyType:"done",placeholder:b.originalName,placeholderTextColor:C.foregroundSubtle,selectTextOnFocus:!0,style:B}),f[23]=b.originalName,f[24]=C.foregroundSubtle,f[25]=R,f[26]=A,f[27]=B,f[28]=W):W=f[28],f[29]!==V||f[30]!==W?(F=(0,I.jsxs)(t.default,{style:M.nameRow,children:[V,W]}),f[29]=V,f[30]=W,f[31]=F):F=f[31],f[32]!==b.originalName||f[33]!==C.foregroundSubtle||f[34]!==T?(K=T?(0,I.jsx)(l.default,{style:[M.original,{color:C.foregroundSubtle}],numberOfLines:1,children:b.originalName}):null,f[32]=b.originalName,f[33]=C.foregroundSubtle,f[34]=T,f[35]=K):K=f[35],f[36]!==F||f[37]!==K?(U=(0,I.jsxs)(t.default,{style:M.body,children:[F,K]}),f[36]=F,f[37]=K,f[38]=U):U=f[38],f[39]!==b.hidden||f[40]!==C.foregroundMuted?(q=b.hidden?(0,I.jsx)(y.EyeOff,{size:16,color:C.foregroundMuted}):null,f[39]=b.hidden,f[40]=C.foregroundMuted,f[41]=q):q=f[41];const J=!b.hidden;let Q,X,Y,Z;return f[42]!==N?(Q=e=>N(!e),f[42]=N,f[43]=Q):Q=f[43],f[44]!==C.border||f[45]!==C.primary?(X={false:C.border,true:C.primary},f[44]=C.border,f[45]=C.primary,f[46]=X):X=f[46],f[47]!==C.backgroundElevated||f[48]!==C.border||f[49]!==J||f[50]!==Q||f[51]!==X?(Y=(0,I.jsx)(u.default,{value:J,onValueChange:Q,trackColor:X,thumbColor:C.backgroundElevated,ios_backgroundColor:C.border}),f[47]=C.backgroundElevated,f[48]=C.border,f[49]=J,f[50]=Q,f[51]=X,f[52]=Y):Y=f[52],f[53]!==U||f[54]!==q||f[55]!==Y||f[56]!==z||f[57]!==_?(Z=(0,I.jsx)(p.ScaleDecorator,{children:(0,I.jsxs)(t.default,{style:z,children:[_,U,q,Y]})}),f[53]=U,f[54]=q,f[55]=Y,f[56]=z,f[57]=_,f[58]=Z):Z=f[58],Z}const M=f.default.create({centered:{flex:1,alignItems:'center',justifyContent:'center',padding:j.SPACING['2xl']},content:{padding:j.SPACING.md,gap:j.SPACING.md},hint:{fontSize:13,lineHeight:18,paddingHorizontal:j.SPACING.sm,paddingTop:j.SPACING.sm,paddingBottom:j.SPACING.md},row:{flexDirection:'row',alignItems:'center',gap:j.SPACING.lg,borderWidth:1,borderRadius:j.RADIUS.md,paddingVertical:j.SPACING.md,paddingHorizontal:j.SPACING.lg},handle:{paddingVertical:j.SPACING.sm,paddingRight:j.SPACING.xs},body:{flex:1,gap:2},nameRow:{flexDirection:'row',alignItems:'center',gap:j.SPACING.md},statusDot:{width:8,height:8,borderRadius:4},input:{flex:1,fontSize:16,fontWeight:'600',paddingVertical:0},original:{fontSize:12,marginLeft:8+j.SPACING.md}})},3552,[15,17,20,112,262,260,252,33,240,136,786,743,3553,813,2587,2589,3050,3080,3131,10]);
15974
15974
  __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 l}});var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},o=r(d[1]);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[2]);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]}})});var u=r(d[3]);Object.keys(u).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return u[e]}})});var f=r(d[4]);Object.keys(f).forEach(function(e){'default'===e||Object.prototype.hasOwnProperty.call(_e,e)||Object.defineProperty(_e,e,{enumerable:!0,get:function(){return f[e]}})});var l=n.default},3553,[3554,3569,3571,3574,3575]);
15975
- __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 H}});var t=r(_d[0]),n=e(t),l=e(r(_d[1])),i=r(_d[2]),o=r(_d[3]),u=e(o),s=e(r(_d[4])),c=r(_d[5]),d=e(r(_d[6])),v=e(r(_d[7])),_=e(r(_d[8])),f=r(_d[9]),h=e(f),S=r(_d[10]),b=e(S),D=e(r(_d[11])),p=r(_d[12]),A=r(_d[13]),O=e(r(_d[14])),x=r(_d[15]);function I(){return I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},I.apply(this,arguments)}const w=u.default.createAnimatedComponent(i.FlatList),J={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs1(){const{isTouchActiveNative}=this.__closure;return isTouchActiveNative.value;}"},C={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs2(cur,prev){const{touchTranslate,activeIndexAnim,disabled,runOnJS,onRelease,onDragEnd,spacerIndexAnim}=this.__closure;if(cur!==prev&&!cur){const hasMoved=!!touchTranslate.value;if(!hasMoved&&activeIndexAnim.value>=0&&!disabled.value){runOnJS(onRelease)(activeIndexAnim.value);runOnJS(onDragEnd)({from:activeIndexAnim.value,to:spacerIndexAnim.value});}}}"},E={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs3(){const{spacerIndexAnim}=this.__closure;return spacerIndexAnim.value;}"},k={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs4(cur,prev){const{runOnJS,onPlaceholderIndexChange}=this.__closure;if(prev!==null&&cur!==prev&&cur>=0&&prev>=0){runOnJS(onPlaceholderIndexChange)(cur);}}"},T={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs5(){const{runOnJS,onContainerTouchEnd}=this.__closure;runOnJS(onContainerTouchEnd)();}"},R={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs6(){const{runOnJS,onContainerTouchStart}=this.__closure;runOnJS(onContainerTouchStart)();}"},y={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs7(evt){const{gestureDisabled,isTouchActiveNative,horizontalAnim,touchTranslate,autoScrollDistance,panGestureState,activeIndexAnim,disabled,runOnJS,onRelease,placeholderOffset,activeCellOffset,withSpring,animationConfigRef,onDragEnd,spacerIndexAnim}=this.__closure;if(gestureDisabled.value)return;isTouchActiveNative.value=false;const translation=horizontalAnim.value?evt.translationX:evt.translationY;touchTranslate.value=translation+autoScrollDistance.value;panGestureState.value=evt.state;if(activeIndexAnim.value===-1||disabled.value)return;disabled.value=true;runOnJS(onRelease)(activeIndexAnim.value);const springTo=placeholderOffset.value-activeCellOffset.value;touchTranslate.value=withSpring(springTo,animationConfigRef.value,function(){runOnJS(onDragEnd)({from:activeIndexAnim.value,to:spacerIndexAnim.value});disabled.value=false;});}"},z={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs8(evt){const{gestureDisabled,panGestureState,horizontalAnim,touchTranslate}=this.__closure;if(gestureDisabled.value)return;panGestureState.value=evt.state;const translation=horizontalAnim.value?evt.translationX:evt.translationY;touchTranslate.value=translation;}"},F={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs9(evt){const{gestureDisabled,disabled,panGestureState}=this.__closure;gestureDisabled.value=disabled.value;if(gestureDisabled.value)return;panGestureState.value=evt.state;}"},L={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs10(){const{runOnJS,onDragEnd,activeIndexAnim,spacerIndexAnim,disabled}=this.__closure;runOnJS(onDragEnd)({from:activeIndexAnim.value,to:spacerIndexAnim.value});disabled.value=false;}"},N={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs11(evt){const{scrollOffset,horizontalAnim,runOnJS,onScroll}=this.__closure;scrollOffset.value=horizontalAnim.value?evt.contentOffset.x:evt.contentOffset.y;runOnJS(onScroll)(scrollOffset.value);}"};function P(e,t){return n.default.createElement(_.default,e,n.default.createElement(h.default,null,n.default.createElement(b.default,{flatListRef:t},n.default.createElement(G,e))))}const G=(0,x.typedMemo)(function(e){const{cellDataRef:_,containerRef:h,flatlistRef:b,keyToIndexRef:x,propsRef:P,animationConfigRef:G}=(0,S.useRefs)(),{activeCellOffset:H,activeCellSize:M,activeIndexAnim:V,containerSize:j,scrollOffset:Y,scrollViewSize:U,spacerIndexAnim:X,horizontalAnim:K,placeholderOffset:B,touchTranslate:q,autoScrollDistance:Q,panGestureState:W,isTouchActiveNative:Z,viewableIndexMin:$,viewableIndexMax:ee,disabled:te}=(0,f.useAnimatedValues)(),ae=(0,A.useStableCallback)(()=>{V.value=-1,X.value=-1,q.value=0,M.value=-1,H.value=-1,oe(null)}),{dragHitSlop:ne=c.DEFAULT_PROPS.dragHitSlop,scrollEnabled:le=c.DEFAULT_PROPS.scrollEnabled,activationDistance:re=c.DEFAULT_PROPS.activationDistance}=e;let[ie,oe]=(0,t.useState)(null);const[ue,se]=(0,t.useState)(!P.current.enableLayoutAnimationExperimental),ce=(0,A.useStableCallback)((t,n)=>{if(!e.keyExtractor)throw new Error("You must provide a keyExtractor to DraggableFlatList");return e.keyExtractor(t,n)}),de=(0,t.useRef)(e.data),ve=de.current.map(ce).join("")!==e.data.map(ce).join("");de.current=e.data,ve&&(ie=null,l.default.runAfterInteractions(()=>{ae()})),(0,t.useEffect)(()=>{P.current.enableLayoutAnimationExperimental&&(ie?se(!0):setTimeout(()=>{se(!1)},100))},[ie]),(0,t.useLayoutEffect)(()=>{e.data.forEach((e,t)=>{const n=ce(e,t);x.current.set(n,t)})},[e.data,ce,x]);const fe=(0,A.useStableCallback)(e=>{if(te.value)return;const t=x.current.get(e),n=_.current.get(e);n&&(H.value=n.measurements.offset,M.value=n.measurements.size);const{onDragBegin:l}=P.current;void 0!==t&&(X.value=t,V.value=t,oe(e),null==l||l(t))}),he=(0,t.useMemo)(()=>({activeKey:ie,extraData:e.extraData}),[ie,e.extraData]),me=(0,t.useCallback)(t=>{let{item:l,index:i}=t;const o=ce(l,i);return i!==x.current.get(o)&&x.current.set(o,i),n.default.createElement(v.default,{item:l,itemKey:o,renderItem:e.renderItem,drag:fe,extraData:e.extraData})},[e.renderItem,e.extraData,fe,ce]),ge=(0,A.useStableCallback)(t=>{var n;null===(n=e.onRelease)||void 0===n||n.call(e,t)}),Se=(0,A.useStableCallback)(t=>{let{from:n,to:l}=t;const{onDragEnd:i,data:o}=e,u=[...o];n!==l&&(u.splice(n,1),u.splice(l,0,o[n])),null==i||i({from:n,to:l,data:u}),oe(null)}),be=(0,A.useStableCallback)(t=>{var n;null===(n=e.onPlaceholderIndexChange)||void 0===n||n.call(e,t)});(0,o.useAnimatedReaction)((function({_worklet_12667785060637_init_data:e,isTouchActiveNative:t}){const n=function(){return t.value};return n.__closure={isTouchActiveNative:t},n.__workletHash=0xb8572d4211d,n.__initData=e,n})({_worklet_12667785060637_init_data:J,isTouchActiveNative:Z}),(function({_worklet_3017769988260_init_data:e,touchTranslate:t,activeIndexAnim:n,disabled:l,runOnJS:i,onRelease:o,onDragEnd:u,spacerIndexAnim:s}){const c=function(e,c){if(e!==c&&!e){!!!t.value&&n.value>=0&&!l.value&&(i(o)(n.value),i(u)({from:n.value,to:s.value}))}};return c.__closure={touchTranslate:t,activeIndexAnim:n,disabled:l,runOnJS:i,onRelease:o,onDragEnd:u,spacerIndexAnim:s},c.__workletHash=3017769988260,c.__initData=e,c})({_worklet_3017769988260_init_data:C,touchTranslate:q,activeIndexAnim:V,disabled:te,runOnJS:o.runOnJS,onRelease:ge,onDragEnd:Se,spacerIndexAnim:X}),[Z,Se,ge]),(0,o.useAnimatedReaction)((function({_worklet_6176791664127_init_data:e,spacerIndexAnim:t}){const n=function(){return t.value};return n.__closure={spacerIndexAnim:t},n.__workletHash=6176791664127,n.__initData=e,n})({_worklet_6176791664127_init_data:E,spacerIndexAnim:X}),(function({_worklet_2590604232580_init_data:e,runOnJS:t,onPlaceholderIndexChange:n}){const l=function(e,l){null!==l&&e!==l&&e>=0&&l>=0&&t(n)(e)};return l.__closure={runOnJS:t,onPlaceholderIndexChange:n},l.__workletHash=2590604232580,l.__initData=e,l})({_worklet_2590604232580_init_data:k,runOnJS:o.runOnJS,onPlaceholderIndexChange:be}),[X]);const De=(0,o.useSharedValue)(!1),pe=i.Gesture.Pan().onBegin((function({_worklet_7787583163440_init_data:e,gestureDisabled:t,disabled:n,panGestureState:l}){const i=function(e){t.value=n.value,t.value||(l.value=e.state)};return i.__closure={gestureDisabled:t,disabled:n,panGestureState:l},i.__workletHash=7787583163440,i.__initData=e,i})({_worklet_7787583163440_init_data:F,gestureDisabled:De,disabled:te,panGestureState:W})).onUpdate((function({_worklet_11677334153389_init_data:e,gestureDisabled:t,panGestureState:n,horizontalAnim:l,touchTranslate:i}){const o=function(e){if(t.value)return;n.value=e.state;const o=l.value?e.translationX:e.translationY;i.value=o};return o.__closure={gestureDisabled:t,panGestureState:n,horizontalAnim:l,touchTranslate:i},o.__workletHash=0xa9ed75aa8ad,o.__initData=e,o})({_worklet_11677334153389_init_data:z,gestureDisabled:De,panGestureState:W,horizontalAnim:K,touchTranslate:q})).onEnd((function({_worklet_13600115403067_init_data:e,gestureDisabled:t,isTouchActiveNative:n,horizontalAnim:l,touchTranslate:i,autoScrollDistance:o,panGestureState:u,activeIndexAnim:s,disabled:c,runOnJS:d,onRelease:v,placeholderOffset:_,activeCellOffset:f,withSpring:h,animationConfigRef:S,onDragEnd:b,spacerIndexAnim:D}){const p=function(e){if(t.value)return;n.value=!1;const p=l.value?e.translationX:e.translationY;if(i.value=p+o.value,u.value=e.state,-1===s.value||c.value)return;c.value=!0,d(v)(s.value);const A=_.value-f.value;i.value=h(A,S.value,(function({_worklet_9458151985595_init_data:e,runOnJS:t,onDragEnd:n,activeIndexAnim:l,spacerIndexAnim:i,disabled:o}){const u=function(){t(n)({from:l.value,to:i.value}),o.value=!1};return u.__closure={runOnJS:t,onDragEnd:n,activeIndexAnim:l,spacerIndexAnim:i,disabled:o},u.__workletHash=9458151985595,u.__initData=e,u})({_worklet_9458151985595_init_data:L,runOnJS:d,onDragEnd:b,activeIndexAnim:s,spacerIndexAnim:D,disabled:c}))};return p.__closure={gestureDisabled:t,isTouchActiveNative:n,horizontalAnim:l,touchTranslate:i,autoScrollDistance:o,panGestureState:u,activeIndexAnim:s,disabled:c,runOnJS:d,onRelease:v,placeholderOffset:_,activeCellOffset:f,withSpring:h,animationConfigRef:S,onDragEnd:b,spacerIndexAnim:D},p.__workletHash=0xc5e860c293b,p.__initData=e,p})({_worklet_13600115403067_init_data:y,gestureDisabled:De,isTouchActiveNative:Z,horizontalAnim:K,touchTranslate:q,autoScrollDistance:Q,panGestureState:W,activeIndexAnim:V,disabled:te,runOnJS:o.runOnJS,onRelease:ge,placeholderOffset:B,activeCellOffset:H,withSpring:o.withSpring,animationConfigRef:G,onDragEnd:Se,spacerIndexAnim:X})).onTouchesDown((function({_worklet_2544844199545_init_data:e,runOnJS:t,onContainerTouchStart:n}){const l=function(){t(n)()};return l.__closure={runOnJS:t,onContainerTouchStart:n},l.__workletHash=2544844199545,l.__initData=e,l})({_worklet_2544844199545_init_data:R,runOnJS:o.runOnJS,onContainerTouchStart:()=>(te.value||(Z.value=!0),!1)})).onTouchesUp((function({_worklet_8529291078106_init_data:e,runOnJS:t,onContainerTouchEnd:n}){const l=function(){t(n)()};return l.__closure={runOnJS:t,onContainerTouchEnd:n},l.__workletHash=8529291078106,l.__initData=e,l})({_worklet_8529291078106_init_data:T,runOnJS:o.runOnJS,onContainerTouchEnd:()=>{Z.value=!1}}));if(ne&&pe.hitSlop(ne),re){const t=[-re,re];e.horizontal?pe.activeOffsetX(t):pe.activeOffsetY(t)}const Ae=(0,A.useStableCallback)(t=>{var n;null===(n=e.onScrollOffsetChange)||void 0===n||n.call(e,t)}),Oe=(0,o.useAnimatedScrollHandler)({onScroll:(function({_worklet_11729156081231_init_data:e,scrollOffset:t,horizontalAnim:n,runOnJS:l,onScroll:i}){const o=function(e){t.value=n.value?e.contentOffset.x:e.contentOffset.y,l(i)(t.value)};return o.__closure={scrollOffset:t,horizontalAnim:n,runOnJS:l,onScroll:i},o.__workletHash=0xaaae82e864f,o.__initData=e,o})({_worklet_11729156081231_init_data:N,scrollOffset:Y,horizontalAnim:K,runOnJS:o.runOnJS,onScroll:Ae})},[K]);(0,p.useAutoScroll)();const xe=(0,A.useStableCallback)(t=>{var n;const l=t.viewableItems.filter(e=>e.isViewable).map(e=>e.index).filter(e=>"number"==typeof e),i=Math.min(...l),o=Math.max(...l);$.value=i,ee.value=o,null===(n=e.onViewableItemsChanged)||void 0===n||n.call(e,t)});return n.default.createElement(D.default,{activeKey:ie,keyExtractor:ce,horizontal:!!e.horizontal,layoutAnimationDisabled:ue},n.default.createElement(i.GestureDetector,{gesture:pe},n.default.createElement(u.default.View,{style:e.containerStyle,ref:h,onLayout:t=>{var n;let{nativeEvent:{layout:l}}=t;const{width:i,height:o}=l;j.value=e.horizontal?i:o,null===(n=e.onContainerLayout)||void 0===n||n.call(e,{layout:l,containerRef:h})}},e.renderPlaceholder&&n.default.createElement(d.default,{renderPlaceholder:e.renderPlaceholder}),n.default.createElement(w,I({},e,{data:e.data,onViewableItemsChanged:xe,CellRendererComponent:s.default,ref:b,onContentSizeChange:(t,n)=>{var l;U.value=e.horizontal?t:n,null===(l=e.onContentSizeChange)||void 0===l||l.call(e,t,n)},scrollEnabled:!ie&&le,renderItem:me,extraData:he,keyExtractor:ce,onScroll:Oe,scrollEventThrottle:16,simultaneousHandlers:e.simultaneousHandlers,removeClippedSubviews:!1})),!!e.onScrollOffsetChange&&n.default.createElement(O.default,{onScrollOffsetChange:e.onScrollOffsetChange,scrollOffset:Y}))))});var H=n.default.forwardRef(P)},3554,[17,155,3242,2714,3555,3557,3565,3566,3560,3559,3561,3556,3567,3564,3568,3562]);
15975
+ __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 H}});var t=r(_d[0]),n=e(t),l=e(r(_d[1])),i=r(_d[2]),o=r(_d[3]),u=e(o),s=e(r(_d[4])),c=r(_d[5]),d=e(r(_d[6])),v=e(r(_d[7])),_=e(r(_d[8])),f=r(_d[9]),h=e(f),S=r(_d[10]),b=e(S),D=e(r(_d[11])),p=r(_d[12]),A=r(_d[13]),O=e(r(_d[14])),x=r(_d[15]);function I(){return I=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var l in n)Object.prototype.hasOwnProperty.call(n,l)&&(e[l]=n[l])}return e},I.apply(this,arguments)}const w=u.default.createAnimatedComponent(i.FlatList),J={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs1(){const{isTouchActiveNative}=this.__closure;return isTouchActiveNative.value;}"},C={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs2(cur,prev){const{touchTranslate,activeIndexAnim,disabled,runOnJS,onRelease,onDragEnd,spacerIndexAnim}=this.__closure;if(cur!==prev&&!cur){const hasMoved=!!touchTranslate.value;if(!hasMoved&&activeIndexAnim.value>=0&&!disabled.value){runOnJS(onRelease)(activeIndexAnim.value);runOnJS(onDragEnd)({from:activeIndexAnim.value,to:spacerIndexAnim.value});}}}"},E={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs3(){const{spacerIndexAnim}=this.__closure;return spacerIndexAnim.value;}"},k={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs4(cur,prev){const{runOnJS,onPlaceholderIndexChange}=this.__closure;if(prev!==null&&cur!==prev&&cur>=0&&prev>=0){runOnJS(onPlaceholderIndexChange)(cur);}}"},T={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs5(){const{runOnJS,onContainerTouchEnd}=this.__closure;runOnJS(onContainerTouchEnd)();}"},R={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs6(){const{runOnJS,onContainerTouchStart}=this.__closure;runOnJS(onContainerTouchStart)();}"},y={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs7(evt){const{gestureDisabled,isTouchActiveNative,horizontalAnim,touchTranslate,autoScrollDistance,panGestureState,activeIndexAnim,disabled,runOnJS,onRelease,placeholderOffset,activeCellOffset,withSpring,animationConfigRef,onDragEnd,spacerIndexAnim}=this.__closure;if(gestureDisabled.value)return;isTouchActiveNative.value=false;const translation=horizontalAnim.value?evt.translationX:evt.translationY;touchTranslate.value=translation+autoScrollDistance.value;panGestureState.value=evt.state;if(activeIndexAnim.value===-1||disabled.value)return;disabled.value=true;runOnJS(onRelease)(activeIndexAnim.value);const springTo=placeholderOffset.value-activeCellOffset.value;touchTranslate.value=withSpring(springTo,animationConfigRef.value,function(){runOnJS(onDragEnd)({from:activeIndexAnim.value,to:spacerIndexAnim.value});disabled.value=false;});}"},z={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs8(evt){const{gestureDisabled,panGestureState,horizontalAnim,touchTranslate}=this.__closure;if(gestureDisabled.value)return;panGestureState.value=evt.state;const translation=horizontalAnim.value?evt.translationX:evt.translationY;touchTranslate.value=translation;}"},F={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs9(evt){const{gestureDisabled,disabled,panGestureState}=this.__closure;gestureDisabled.value=disabled.value;if(gestureDisabled.value)return;panGestureState.value=evt.state;}"},L={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs10(){const{runOnJS,onDragEnd,activeIndexAnim,spacerIndexAnim,disabled}=this.__closure;runOnJS(onDragEnd)({from:activeIndexAnim.value,to:spacerIndexAnim.value});disabled.value=false;}"},N={code:"function reactNativeDraggableFlatlist_DraggableFlatListJs11(evt){const{scrollOffset,horizontalAnim,runOnJS,onScroll}=this.__closure;scrollOffset.value=horizontalAnim.value?evt.contentOffset.x:evt.contentOffset.y;runOnJS(onScroll)(scrollOffset.value);}"};function P(e,t){return n.default.createElement(_.default,e,n.default.createElement(h.default,null,n.default.createElement(b.default,{flatListRef:t},n.default.createElement(G,e))))}const G=(0,x.typedMemo)(function(e){const{cellDataRef:_,containerRef:h,flatlistRef:b,keyToIndexRef:x,propsRef:P,animationConfigRef:G}=(0,S.useRefs)(),{activeCellOffset:H,activeCellSize:M,activeIndexAnim:V,containerSize:j,scrollOffset:Y,scrollViewSize:U,spacerIndexAnim:X,horizontalAnim:K,placeholderOffset:B,touchTranslate:q,autoScrollDistance:Q,panGestureState:W,isTouchActiveNative:Z,viewableIndexMin:$,viewableIndexMax:ee,disabled:te}=(0,f.useAnimatedValues)(),ae=(0,A.useStableCallback)(()=>{V.value=-1,X.value=-1,q.value=0,M.value=-1,H.value=-1,oe(null)}),{dragHitSlop:ne=c.DEFAULT_PROPS.dragHitSlop,scrollEnabled:le=c.DEFAULT_PROPS.scrollEnabled,activationDistance:re=c.DEFAULT_PROPS.activationDistance}=e;let[ie,oe]=(0,t.useState)(null);const[ue,se]=(0,t.useState)(!P.current.enableLayoutAnimationExperimental),ce=(0,A.useStableCallback)((t,n)=>{if(!e.keyExtractor)throw new Error("You must provide a keyExtractor to DraggableFlatList");return e.keyExtractor(t,n)}),de=(0,t.useRef)(e.data),ve=de.current.map(ce).join("")!==e.data.map(ce).join("");de.current=e.data,ve&&(ie=null,l.default.runAfterInteractions(()=>{ae()})),(0,t.useEffect)(()=>{P.current.enableLayoutAnimationExperimental&&(ie?se(!0):setTimeout(()=>{se(!1)},100))},[ie]),(0,t.useLayoutEffect)(()=>{e.data.forEach((e,t)=>{const n=ce(e,t);x.current.set(n,t)})},[e.data,ce,x]);const fe=(0,A.useStableCallback)(e=>{if(te.value)return;const t=x.current.get(e),n=_.current.get(e);n&&(H.value=n.measurements.offset,M.value=n.measurements.size);const{onDragBegin:l}=P.current;void 0!==t&&(X.value=t,V.value=t,oe(e),null==l||l(t))}),he=(0,t.useMemo)(()=>({activeKey:ie,extraData:e.extraData}),[ie,e.extraData]),me=(0,t.useCallback)(t=>{let{item:l,index:i}=t;const o=ce(l,i);return i!==x.current.get(o)&&x.current.set(o,i),n.default.createElement(v.default,{item:l,itemKey:o,renderItem:e.renderItem,drag:fe,extraData:e.extraData})},[e.renderItem,e.extraData,fe,ce]),ge=(0,A.useStableCallback)(t=>{var n;null===(n=e.onRelease)||void 0===n||n.call(e,t)}),Se=(0,A.useStableCallback)(t=>{let{from:n,to:l}=t;const{onDragEnd:i,data:o}=e,u=[...o];n!==l&&(u.splice(n,1),u.splice(l,0,o[n])),null==i||i({from:n,to:l,data:u}),oe(null)}),be=(0,A.useStableCallback)(t=>{var n;null===(n=e.onPlaceholderIndexChange)||void 0===n||n.call(e,t)});(0,o.useAnimatedReaction)((function({_worklet_12667785060637_init_data:e,isTouchActiveNative:t}){const n=function(){return t.value};return n.__closure={isTouchActiveNative:t},n.__workletHash=0xb8572d4211d,n.__initData=e,n})({_worklet_12667785060637_init_data:J,isTouchActiveNative:Z}),(function({_worklet_3017769988260_init_data:e,touchTranslate:t,activeIndexAnim:n,disabled:l,runOnJS:i,onRelease:o,onDragEnd:u,spacerIndexAnim:s}){const c=function(e,c){if(e!==c&&!e){!!!t.value&&n.value>=0&&!l.value&&(i(o)(n.value),i(u)({from:n.value,to:s.value}))}};return c.__closure={touchTranslate:t,activeIndexAnim:n,disabled:l,runOnJS:i,onRelease:o,onDragEnd:u,spacerIndexAnim:s},c.__workletHash=3017769988260,c.__initData=e,c})({_worklet_3017769988260_init_data:C,touchTranslate:q,activeIndexAnim:V,disabled:te,runOnJS:o.runOnJS,onRelease:ge,onDragEnd:Se,spacerIndexAnim:X}),[Z,Se,ge]),(0,o.useAnimatedReaction)((function({_worklet_6176791664127_init_data:e,spacerIndexAnim:t}){const n=function(){return t.value};return n.__closure={spacerIndexAnim:t},n.__workletHash=6176791664127,n.__initData=e,n})({_worklet_6176791664127_init_data:E,spacerIndexAnim:X}),(function({_worklet_2590604232580_init_data:e,runOnJS:t,onPlaceholderIndexChange:n}){const l=function(e,l){null!==l&&e!==l&&e>=0&&l>=0&&t(n)(e)};return l.__closure={runOnJS:t,onPlaceholderIndexChange:n},l.__workletHash=2590604232580,l.__initData=e,l})({_worklet_2590604232580_init_data:k,runOnJS:o.runOnJS,onPlaceholderIndexChange:be}),[X]);const De=(0,o.useSharedValue)(!1),pe=i.Gesture.Pan().onBegin((function({_worklet_7787583163440_init_data:e,gestureDisabled:t,disabled:n,panGestureState:l}){const i=function(e){t.value=n.value,t.value||(l.value=e.state)};return i.__closure={gestureDisabled:t,disabled:n,panGestureState:l},i.__workletHash=7787583163440,i.__initData=e,i})({_worklet_7787583163440_init_data:F,gestureDisabled:De,disabled:te,panGestureState:W})).onUpdate((function({_worklet_11677334153389_init_data:e,gestureDisabled:t,panGestureState:n,horizontalAnim:l,touchTranslate:i}){const o=function(e){if(t.value)return;n.value=e.state;const o=l.value?e.translationX:e.translationY;i.value=o};return o.__closure={gestureDisabled:t,panGestureState:n,horizontalAnim:l,touchTranslate:i},o.__workletHash=0xa9ed75aa8ad,o.__initData=e,o})({_worklet_11677334153389_init_data:z,gestureDisabled:De,panGestureState:W,horizontalAnim:K,touchTranslate:q})).onEnd((function({_worklet_13600115403067_init_data:e,gestureDisabled:t,isTouchActiveNative:n,horizontalAnim:l,touchTranslate:i,autoScrollDistance:o,panGestureState:u,activeIndexAnim:s,disabled:c,runOnJS:d,onRelease:v,placeholderOffset:_,activeCellOffset:f,withSpring:h,animationConfigRef:S,onDragEnd:b,spacerIndexAnim:D}){const p=function(e){if(t.value)return;n.value=!1;const p=l.value?e.translationX:e.translationY;if(i.value=p+o.value,u.value=e.state,-1===s.value||c.value)return;c.value=!0,d(v)(s.value);const A=_.value-f.value;i.value=h(A,S.value,(function({_worklet_9458151985595_init_data:e,runOnJS:t,onDragEnd:n,activeIndexAnim:l,spacerIndexAnim:i,disabled:o}){const u=function(){t(n)({from:l.value,to:i.value}),o.value=!1};return u.__closure={runOnJS:t,onDragEnd:n,activeIndexAnim:l,spacerIndexAnim:i,disabled:o},u.__workletHash=9458151985595,u.__initData=e,u})({_worklet_9458151985595_init_data:L,runOnJS:d,onDragEnd:b,activeIndexAnim:s,spacerIndexAnim:D,disabled:c}))};return p.__closure={gestureDisabled:t,isTouchActiveNative:n,horizontalAnim:l,touchTranslate:i,autoScrollDistance:o,panGestureState:u,activeIndexAnim:s,disabled:c,runOnJS:d,onRelease:v,placeholderOffset:_,activeCellOffset:f,withSpring:h,animationConfigRef:S,onDragEnd:b,spacerIndexAnim:D},p.__workletHash=0xc5e860c293b,p.__initData=e,p})({_worklet_13600115403067_init_data:y,gestureDisabled:De,isTouchActiveNative:Z,horizontalAnim:K,touchTranslate:q,autoScrollDistance:Q,panGestureState:W,activeIndexAnim:V,disabled:te,runOnJS:o.runOnJS,onRelease:ge,placeholderOffset:B,activeCellOffset:H,withSpring:o.withSpring,animationConfigRef:G,onDragEnd:Se,spacerIndexAnim:X})).onTouchesDown((function({_worklet_2544844199545_init_data:e,runOnJS:t,onContainerTouchStart:n}){const l=function(){t(n)()};return l.__closure={runOnJS:t,onContainerTouchStart:n},l.__workletHash=2544844199545,l.__initData=e,l})({_worklet_2544844199545_init_data:R,runOnJS:o.runOnJS,onContainerTouchStart:()=>(te.value||(Z.value=!0),!1)})).onTouchesUp((function({_worklet_8529291078106_init_data:e,runOnJS:t,onContainerTouchEnd:n}){const l=function(){t(n)()};return l.__closure={runOnJS:t,onContainerTouchEnd:n},l.__workletHash=8529291078106,l.__initData=e,l})({_worklet_8529291078106_init_data:T,runOnJS:o.runOnJS,onContainerTouchEnd:()=>{Z.value=!1}}));if(ne&&pe.hitSlop(ne),re){const t=[-re,re];e.horizontal?pe.activeOffsetX(t):pe.activeOffsetY(t)}const Ae=(0,A.useStableCallback)(t=>{var n;null===(n=e.onScrollOffsetChange)||void 0===n||n.call(e,t)}),Oe=(0,o.useAnimatedScrollHandler)({onScroll:(function({_worklet_11729156081231_init_data:e,scrollOffset:t,horizontalAnim:n,runOnJS:l,onScroll:i}){const o=function(e){t.value=n.value?e.contentOffset.x:e.contentOffset.y,l(i)(t.value)};return o.__closure={scrollOffset:t,horizontalAnim:n,runOnJS:l,onScroll:i},o.__workletHash=0xaaae82e864f,o.__initData=e,o})({_worklet_11729156081231_init_data:N,scrollOffset:Y,horizontalAnim:K,runOnJS:o.runOnJS,onScroll:Ae})},[K]);(0,p.useAutoScroll)();const xe=(0,A.useStableCallback)(t=>{var n;const l=t.viewableItems.filter(e=>e.isViewable).map(e=>e.index).filter(e=>"number"==typeof e),i=Math.min(...l),o=Math.max(...l);$.value=i,ee.value=o,null===(n=e.onViewableItemsChanged)||void 0===n||n.call(e,t)});return n.default.createElement(D.default,{activeKey:ie,keyExtractor:ce,horizontal:!!e.horizontal,layoutAnimationDisabled:ue},n.default.createElement(i.GestureDetector,{gesture:pe},n.default.createElement(u.default.View,{style:e.containerStyle,ref:h,onLayout:t=>{var n;let{nativeEvent:{layout:l}}=t;const{width:i,height:o}=l;j.value=e.horizontal?i:o,null===(n=e.onContainerLayout)||void 0===n||n.call(e,{layout:l,containerRef:h})}},e.renderPlaceholder&&n.default.createElement(d.default,{renderPlaceholder:e.renderPlaceholder}),n.default.createElement(w,I({},e,{data:e.data,onViewableItemsChanged:xe,CellRendererComponent:s.default,ref:b,onContentSizeChange:(t,n)=>{var l;U.value=e.horizontal?t:n,null===(l=e.onContentSizeChange)||void 0===l||l.call(e,t,n)},scrollEnabled:!ie&&le,renderItem:me,extraData:he,keyExtractor:ce,onScroll:Oe,scrollEventThrottle:16,simultaneousHandlers:e.simultaneousHandlers,removeClippedSubviews:!1})),!!e.onScrollOffsetChange&&n.default.createElement(O.default,{onScrollOffsetChange:e.onScrollOffsetChange,scrollOffset:Y}))))});var H=n.default.forwardRef(P)},3554,[17,155,3241,2714,3555,3557,3565,3566,3560,3559,3561,3556,3567,3564,3568,3562]);
15976
15976
  __d(function(g,r,_i,a,m,_e,d){"use strict";const t=["item","index","onLayout","children"];function e(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return R}});var n=e(r(d[0])),o=r(d[1]),i=e(o),l=e(r(d[2])),s=r(d[3]),u=e(s),c=r(d[4]),f=r(d[5]),_=r(d[6]),h=r(d[7]),y=r(d[8]),C=r(d[9]),b=e(r(d[10])),v=r(d[11]);function L(){return L=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},L.apply(this,arguments)}const A={code:"function reactNativeDraggableFlatlist_CellRendererComponentJs1(){const{translate,isWeb,heldTanslate,activeKey,horizontalAnim}=this.__closure;if(translate.value&&!isWeb){heldTanslate.value=translate.value;}const t=activeKey?translate.value:heldTanslate.value;return{transform:[horizontalAnim.value?{translateX:t}:{translateY:t}]};}"},D={code:"function reactNativeDraggableFlatlist_CellRendererComponentJs2(t,_layoutDisabled){const{stashConfig,getStashedConfig}=this.__closure;if(!t)return;const config=global.LayoutAnimationRepository.configs[t];if(config)stashConfig(t,config);const stashedConfig=getStashedConfig(t);if(_layoutDisabled){global.LayoutAnimationRepository.removeConfig(t);}else if(stashedConfig){global.LayoutAnimationRepository.registerConfig(t,stashedConfig);}}"};var R=(0,h.typedMemo)(function(e){const{item:h,index:R,onLayout:F,children:k}=e,w=(0,n.default)(e,t),N=(0,o.useRef)(null),{cellDataRef:x,propsRef:z,containerRef:E}=(0,y.useRefs)(),{horizontalAnim:O,scrollOffset:W}=(0,C.useAnimatedValues)(),{activeKey:T,keyExtractor:K,horizontal:H,layoutAnimationDisabled:J}=(0,c.useDraggableFlatListContext)(),V=K(h,R),j=(0,s.useSharedValue)(-1),I=(0,s.useSharedValue)(-1),M=(0,s.useSharedValue)(0),P=(0,_.useCellTranslate)({cellOffset:j,cellSize:I,cellIndex:R}),U=T===V,X=(0,s.useAnimatedStyle)((function({_worklet_9493151677458_init_data:t,translate:e,isWeb:n,heldTanslate:o,activeKey:i,horizontalAnim:l}){const s=function(){e.value&&!n&&(o.value=e.value);const t=i?e.value:o.value;return{transform:[l.value?{translateX:t}:{translateY:t}]}};return s.__closure={translate:e,isWeb:n,heldTanslate:o,activeKey:i,horizontalAnim:l},s.__workletHash=9493151677458,s.__initData=t,s})({_worklet_9493151677458_init_data:A,translate:P,isWeb:f.isWeb,heldTanslate:M,activeKey:T,horizontalAnim:O}),[P,T]),Y=(0,v.useStableCallback)(()=>{const t=(t,e,n,o)=>{f.isWeb&&H&&(t+=W.value);const i=H?t:e,l=H?n:o;x.current.set(V,{measurements:{size:l,offset:i}}),I.value=l,j.value=i},e=()=>{var t;null!==(t=z.current)&&void 0!==t&&t.debug&&console.log(`## on measure fail, index: ${R}`)},n=E.current,o=N.current,i=n;o&&i&&o.measureLayout(i,t,e)}),q=(0,v.useStableCallback)(t=>{M.value=0,Y(),F&&t&&F(t)});(0,o.useEffect)(()=>{f.isWeb&&requestAnimationFrame(()=>{q()})},[R,q]);const $=(0,o.useMemo)(()=>({elevation:U?1:0,zIndex:U?999:0,flexDirection:H?"row":"column"}),[U,H]),{itemEnteringAnimation:B,itemExitingAnimation:G,itemLayoutAnimation:Q}=z.current;return(0,o.useEffect)(()=>{if(!z.current.enableLayoutAnimationExperimental)return;const t=(0,l.default)(N.current);(0,s.runOnUI)((function({_worklet_10702969925975_init_data:t,stashConfig:e,getStashedConfig:n}){const o=function(t,o){if(!t)return;const i=g.LayoutAnimationRepository.configs[t];i&&e(t,i);const l=n(t);o?g.LayoutAnimationRepository.removeConfig(t):l&&g.LayoutAnimationRepository.registerConfig(t,l)};return o.__closure={stashConfig:e,getStashedConfig:n},o.__workletHash=0x9bbfab87157,o.__initData=t,o})({_worklet_10702969925975_init_data:D,stashConfig:S,getStashedConfig:p}))(t,J)},[J]),i.default.createElement(u.default.View,L({},w,{ref:N,onLayout:q,entering:B,exiting:G,layout:z.current.enableLayoutAnimationExperimental?Q:void 0,style:[e.style,$,X],pointerEvents:T?"none":"auto"}),i.default.createElement(b.default,{isActive:U},k))});(0,s.runOnUI)((function({_worklet_4071045011151_init_data:t}){const e=function(){g.RNDFLLayoutAnimationConfigStash={}};return e.__closure={},e.__workletHash=4071045011151,e.__initData=t,e})({_worklet_4071045011151_init_data:{code:"function reactNativeDraggableFlatlist_CellRendererComponentJs3(){global.RNDFLLayoutAnimationConfigStash={};}"}}))();const S=(function({_worklet_17335747121283_init_data:t}){const e=function(t,e){g.RNDFLLayoutAnimationConfigStash||(g.RNDFLLayoutAnimationConfigStash={}),g.RNDFLLayoutAnimationConfigStash[t]=e};return e.__closure={},e.__workletHash=0xfc44b0c9083,e.__initData=t,e})({_worklet_17335747121283_init_data:{code:"function stashConfig_reactNativeDraggableFlatlist_CellRendererComponentJs4(tag,config){if(!global.RNDFLLayoutAnimationConfigStash)global.RNDFLLayoutAnimationConfigStash={};global.RNDFLLayoutAnimationConfigStash[tag]=config;}"}}),p=(function({_worklet_1208922414792_init_data:t}){const e=function(t){return g.RNDFLLayoutAnimationConfigStash?g.RNDFLLayoutAnimationConfigStash[t]:null};return e.__closure={},e.__workletHash=1208922414792,e.__initData=t,e})({_worklet_1208922414792_init_data:{code:"function getStashedConfig_reactNativeDraggableFlatlist_CellRendererComponentJs5(tag){if(!global.RNDFLLayoutAnimationConfigStash)return null;return global.RNDFLLayoutAnimationConfigStash[tag];}"}})},3555,[120,17,122,2714,3556,3557,3558,3562,3561,3559,3563,3564]);
15977
15977
  __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 l}}),_e.useDraggableFlatListContext=function(){const e=(0,t.useContext)(o);if(!e)throw new Error("useDraggableFlatListContext must be called within DraggableFlatListProvider");return e};var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e};const o=n.default.createContext(void 0);function l(e){let{activeKey:l,keyExtractor:u,horizontal:c,layoutAnimationDisabled:s,children:f}=e;const b=(0,t.useMemo)(()=>({activeKey:l,keyExtractor:u,horizontal:c,layoutAnimationDisabled:s}),[l,u,c,s]);return n.default.createElement(o.Provider,{value:b},f)}},3556,[17]);
15978
15978
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),Object.defineProperty(e,"SCROLL_POSITION_TOLERANCE",{enumerable:!0,get:function(){return n}}),Object.defineProperty(e,"DEFAULT_ANIMATION_CONFIG",{enumerable:!0,get:function(){return o}}),Object.defineProperty(e,"DEFAULT_PROPS",{enumerable:!0,get:function(){return u}}),Object.defineProperty(e,"isIOS",{enumerable:!0,get:function(){return l}}),Object.defineProperty(e,"isAndroid",{enumerable:!0,get:function(){return s}}),Object.defineProperty(e,"isWeb",{enumerable:!0,get:function(){return c}}),Object.defineProperty(e,"isReanimatedV2",{enumerable:!0,get:function(){return f}}),r(d[0]);var t=r(d[1]);const n=2,o={damping:20,mass:.2,stiffness:100,overshootClamping:!1,restSpeedThreshold:.2,restDisplacementThreshold:.2},u={autoscrollThreshold:30,autoscrollSpeed:100,animationConfig:o,scrollEnabled:!0,dragHitSlop:0,activationDistance:0,dragItemOverflow:!1},l=!1,s=!1,c=!0,f=!!t.useSharedValue;if(!f)throw new Error("Your version of react-native-reanimated is too old for react-native-draggable-flatlist!")},3557,[136,2714]);
15979
15979
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useCellTranslate=function(c){let{cellIndex:f,cellSize:u,cellOffset:o}=c;const{activeIndexAnim:x,activeCellSize:A,hoverOffset:I,spacerIndexAnim:h,placeholderOffset:S,hoverAnim:O,viewableIndexMin:z,viewableIndexMax:w}=(0,t.useAnimatedValues)(),{activeKey:p}=(0,n.useDraggableFlatListContext)(),{animationConfigRef:_}=(0,v.useRefs)(),C=(0,l.useDerivedValue)((function({_worklet_14653729795643_init_data:l,cellIndex:t,activeIndexAnim:n,viewableIndexMin:v,viewableIndexMax:s,activeKey:c,hoverOffset:f,activeCellSize:u,cellOffset:o,cellSize:x,spacerIndexAnim:A,placeholderOffset:I,hoverAnim:h,withSpring:S,animationConfigRef:O}){const z=function(){const l=t===n.value,z=!l&&(t<v.value||t>s.value);if(!c||n.value<0||z)return 0;const w=t<n.value,p=t>n.value,_=f.value+u.value,C=o.value+x.value/2,b=o.value+x.value;let P=-1;if(p?_>=o.value&&_<C?P=t-1:_>=C&&_<b&&(P=t):w&&(f.value<b&&f.value>=C?P=t+1:f.value>=o.value&&f.value<C&&(P=t)),-1!==P&&P!==A.value&&(A.value=P),A.value===t){const l=p?x.value+(o.value-u.value):o.value;I.value=l}if(l)return h.value;const M=(p?t<=A.value:t>=A.value)?u.value*(p?-1:1):0;return S(M,O.value)};return z.__closure={cellIndex:t,activeIndexAnim:n,viewableIndexMin:v,viewableIndexMax:s,activeKey:c,hoverOffset:f,activeCellSize:u,cellOffset:o,cellSize:x,spacerIndexAnim:A,placeholderOffset:I,hoverAnim:h,withSpring:S,animationConfigRef:O},z.__workletHash=0xd53d65bee3b,z.__initData=l,z})({_worklet_14653729795643_init_data:s,cellIndex:f,activeIndexAnim:x,viewableIndexMin:z,viewableIndexMax:w,activeKey:p,hoverOffset:I,activeCellSize:A,cellOffset:o,cellSize:u,spacerIndexAnim:h,placeholderOffset:S,hoverAnim:O,withSpring:l.withSpring,animationConfigRef:_}),[p,f]);return C};var l=r(d[0]),t=r(d[1]),n=r(d[2]),v=r(d[3]);const s={code:"function reactNativeDraggableFlatlist_useCellTranslateJs1(){const{cellIndex,activeIndexAnim,viewableIndexMin,viewableIndexMax,activeKey,hoverOffset,activeCellSize,cellOffset,cellSize,spacerIndexAnim,placeholderOffset,hoverAnim,withSpring,animationConfigRef}=this.__closure;const isActiveCell=cellIndex===activeIndexAnim.value;const isOutsideViewableRange=!isActiveCell&&(cellIndex<viewableIndexMin.value||cellIndex>viewableIndexMax.value);if(!activeKey||activeIndexAnim.value<0||isOutsideViewableRange){return 0;}const isBeforeActive=cellIndex<activeIndexAnim.value;const isAfterActive=cellIndex>activeIndexAnim.value;const hoverPlusActiveSize=hoverOffset.value+activeCellSize.value;const offsetPlusHalfSize=cellOffset.value+cellSize.value/2;const offsetPlusSize=cellOffset.value+cellSize.value;let result=-1;if(isAfterActive){if(hoverPlusActiveSize>=cellOffset.value&&hoverPlusActiveSize<offsetPlusHalfSize){result=cellIndex-1;}else if(hoverPlusActiveSize>=offsetPlusHalfSize&&hoverPlusActiveSize<offsetPlusSize){result=cellIndex;}}else if(isBeforeActive){if(hoverOffset.value<offsetPlusSize&&hoverOffset.value>=offsetPlusHalfSize){result=cellIndex+1;}else if(hoverOffset.value>=cellOffset.value&&hoverOffset.value<offsetPlusHalfSize){result=cellIndex;}}if(result!==-1&&result!==spacerIndexAnim.value){spacerIndexAnim.value=result;}if(spacerIndexAnim.value===cellIndex){const newPlaceholderOffset=isAfterActive?cellSize.value+(cellOffset.value-activeCellSize.value):cellOffset.value;placeholderOffset.value=newPlaceholderOffset;}if(isActiveCell){return hoverAnim.value;}const shouldTranslate=isAfterActive?cellIndex<=spacerIndexAnim.value:cellIndex>=spacerIndexAnim.value;const translationAmt=shouldTranslate?activeCellSize.value*(isAfterActive?-1:1):0;return withSpring(translationAmt,animationConfigRef.value);}"}},3558,[2714,3559,3556,3561]);
15980
- __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 s}}),_e.useAnimatedValues=function(){const e=(0,t.useContext)(u);if(!e)throw new Error("useAnimatedValues must be called from within AnimatedValueProvider!");return e};var e,t=r(d[0]),l=(e=t)&&e.__esModule?e:{default:e},n=r(d[1]),o=r(d[2]),c=r(d[3]);const u=l.default.createContext(void 0);function s(e){let{children:t}=e;const n=O();return l.default.createElement(u.Provider,{value:n},t)}const v={code:"function reactNativeDraggableFlatlist_animatedValueContextJs1(){const{activeIndexAnim}=this.__closure;return activeIndexAnim.value;}"},f={code:"function reactNativeDraggableFlatlist_animatedValueContextJs2(cur,prev){const{scrollInit,scrollOffset,outerScrollInit,outerScrollOffset}=this.__closure;if(cur!==prev&&cur>=0){scrollInit.value=scrollOffset.value;outerScrollInit.value=outerScrollOffset.value;}}"},_={code:"function reactNativeDraggableFlatlist_animatedValueContextJs3(){const{isTouchActiveNative,activeIndexAnim}=this.__closure;return isTouchActiveNative.value&&activeIndexAnim.value>=0;}"},h={code:"function reactNativeDraggableFlatlist_animatedValueContextJs4(){const{isDraggingCell,scrollOffset,scrollInit,outerScrollOffset,outerScrollInit}=this.__closure;if(!isDraggingCell.value)return 0;const innerScrollDiff=scrollOffset.value-scrollInit.value;const outerScrollDiff=outerScrollOffset.value-outerScrollInit.value;const scrollDiff=innerScrollDiff+outerScrollDiff;return scrollDiff;}"},S={code:"function reactNativeDraggableFlatlist_animatedValueContextJs5(){const{isTouchActiveNative,autoScrollDistance,touchTranslate}=this.__closure;const extraTranslate=isTouchActiveNative.value?autoScrollDistance.value:0;return touchTranslate.value+extraTranslate;}"},D={code:"function reactNativeDraggableFlatlist_animatedValueContextJs6(){const{containerSize,activeCellSize,scrollOffset,touchPositionDiff,activeCellOffset,scrollViewSize,isTouchActiveNative}=this.__closure;const containerMinusActiveCell=containerSize.value-activeCellSize.value+scrollOffset.value;const offsetRelativeToScrollTop=touchPositionDiff.value+activeCellOffset.value;const constrained=Math.min(containerMinusActiveCell,Math.max(scrollOffset.value,offsetRelativeToScrollTop));const maxTranslateNegative=-activeCellOffset.value;const maxTranslatePositive=scrollViewSize.value-(activeCellOffset.value+activeCellSize.value);const constrainedBase=isTouchActiveNative.value?constrained-activeCellOffset.value:touchPositionDiff.value;return Math.min(Math.max(constrainedBase,maxTranslateNegative),maxTranslatePositive);}"},A={code:"function reactNativeDraggableFlatlist_animatedValueContextJs7(){const{activeIndexAnim,dragItemOverflow,touchPositionDiff,touchPositionDiffConstrained}=this.__closure;if(activeIndexAnim.value<0)return 0;return dragItemOverflow?touchPositionDiff.value:touchPositionDiffConstrained.value;}"},I={code:"function reactNativeDraggableFlatlist_animatedValueContextJs8(){const{hoverAnim,activeCellOffset}=this.__closure;return hoverAnim.value+activeCellOffset.value;}"},x={code:"function reactNativeDraggableFlatlist_animatedValueContextJs9(){const{activeIndexAnim,spacerIndexAnim}=this.__closure;const isHovering=activeIndexAnim.value>=0;if(!isHovering&&spacerIndexAnim.value>=0){spacerIndexAnim.value=-1;}}"};function O(){const e=(0,c.useProps)(),l=(0,n.useSharedValue)(0),u=(0,n.useSharedValue)(0),s=(0,n.useSharedValue)(0),O=(0,n.useSharedValue)(o.State.UNDETERMINED),C=(0,n.useSharedValue)(0),V=(0,n.useSharedValue)(!1),w=(0,n.useSharedValue)(0),T=(0,n.useSharedValue)(!1),N=(0,n.useSharedValue)(!!e.horizontal),k=(0,n.useSharedValue)(-1),P=(0,n.useSharedValue)(-1),z=(0,n.useSharedValue)(0),b=(0,n.useSharedValue)(0),p=(0,n.useSharedValue)(0),M=(0,n.useSharedValue)(0),H=(0,n.useSharedValue)(0),F=(0,n.useSharedValue)(0),J=e.outerScrollOffset||l,E=(0,n.useSharedValue)(0);(0,n.useAnimatedReaction)((function({_worklet_9770780663126_init_data:e,activeIndexAnim:t}){const l=function(){return t.value};return l.__closure={activeIndexAnim:t},l.__workletHash=9770780663126,l.__initData=e,l})({_worklet_9770780663126_init_data:v,activeIndexAnim:k}),(function({_worklet_2669524968831_init_data:e,scrollInit:t,scrollOffset:l,outerScrollInit:n,outerScrollOffset:o}){const c=function(e,c){e!==c&&e>=0&&(t.value=l.value,n.value=o.value)};return c.__closure={scrollInit:t,scrollOffset:l,outerScrollInit:n,outerScrollOffset:o},c.__workletHash=2669524968831,c.__initData=e,c})({_worklet_2669524968831_init_data:f,scrollInit:M,scrollOffset:p,outerScrollInit:E,outerScrollOffset:J}),[J]);const R=(0,n.useSharedValue)(0),j=(0,n.useDerivedValue)((function({_worklet_13229976984046_init_data:e,isTouchActiveNative:t,activeIndexAnim:l}){const n=function(){return t.value&&l.value>=0};return n.__closure={isTouchActiveNative:t,activeIndexAnim:l},n.__workletHash=0xc08581419ee,n.__initData=e,n})({_worklet_13229976984046_init_data:_,isTouchActiveNative:V,activeIndexAnim:k}),[]),y=(0,n.useDerivedValue)((function({_worklet_163796717909_init_data:e,isDraggingCell:t,scrollOffset:l,scrollInit:n,outerScrollOffset:o,outerScrollInit:c}){const u=function(){if(!t.value)return 0;return l.value-n.value+(o.value-c.value)};return u.__closure={isDraggingCell:t,scrollOffset:l,scrollInit:n,outerScrollOffset:o,outerScrollInit:c},u.__workletHash=163796717909,u.__initData=e,u})({_worklet_163796717909_init_data:h,isDraggingCell:j,scrollOffset:p,scrollInit:M,outerScrollOffset:J,outerScrollInit:E}),[]),B=(0,n.useDerivedValue)((function({_worklet_14268807456143_init_data:e,isTouchActiveNative:t,autoScrollDistance:l,touchTranslate:n}){const o=function(){const e=t.value?l.value:0;return n.value+e};return o.__closure={isTouchActiveNative:t,autoScrollDistance:l,touchTranslate:n},o.__workletHash=0xcfa3733258f,o.__initData=e,o})({_worklet_14268807456143_init_data:S,isTouchActiveNative:V,autoScrollDistance:y,touchTranslate:C}),[]),G=(0,n.useDerivedValue)((function({_worklet_2161134542663_init_data:e,containerSize:t,activeCellSize:l,scrollOffset:n,touchPositionDiff:o,activeCellOffset:c,scrollViewSize:u,isTouchActiveNative:s}){const v=function(){const e=t.value-l.value+n.value,v=o.value+c.value,f=Math.min(e,Math.max(n.value,v)),_=-c.value,h=u.value-(c.value+l.value),S=s.value?f-c.value:o.value;return Math.min(Math.max(S,_),h)};return v.__closure={containerSize:t,activeCellSize:l,scrollOffset:n,touchPositionDiff:o,activeCellOffset:c,scrollViewSize:u,isTouchActiveNative:s},v.__workletHash=2161134542663,v.__initData=e,v})({_worklet_2161134542663_init_data:D,containerSize:u,activeCellSize:z,scrollOffset:p,touchPositionDiff:B,activeCellOffset:b,scrollViewSize:s,isTouchActiveNative:V}),[]),U=e.dragItemOverflow,q=(0,n.useDerivedValue)((function({_worklet_5411143051866_init_data:e,activeIndexAnim:t,dragItemOverflow:l,touchPositionDiff:n,touchPositionDiffConstrained:o}){const c=function(){return t.value<0?0:l?n.value:o.value};return c.__closure={activeIndexAnim:t,dragItemOverflow:l,touchPositionDiff:n,touchPositionDiffConstrained:o},c.__workletHash=5411143051866,c.__initData=e,c})({_worklet_5411143051866_init_data:A,activeIndexAnim:k,dragItemOverflow:U,touchPositionDiff:B,touchPositionDiffConstrained:G}),[]),K=(0,n.useDerivedValue)((function({_worklet_7836450724061_init_data:e,hoverAnim:t,activeCellOffset:l}){const n=function(){return t.value+l.value};return n.__closure={hoverAnim:t,activeCellOffset:l},n.__workletHash=7836450724061,n.__initData=e,n})({_worklet_7836450724061_init_data:I,hoverAnim:q,activeCellOffset:b}),[q,b]);(0,n.useDerivedValue)((function({_worklet_12000071238288_init_data:e,activeIndexAnim:t,spacerIndexAnim:l}){const n=function(){!(t.value>=0)&&l.value>=0&&(l.value=-1)};return n.__closure={activeIndexAnim:t,spacerIndexAnim:l},n.__workletHash=0xae9fbfbc290,n.__initData=e,n})({_worklet_12000071238288_init_data:x,activeIndexAnim:k,spacerIndexAnim:P}),[]);const L=(0,t.useCallback)(()=>{b.value=0,w.value=0},[]),Q=(0,t.useMemo)(()=>({activeCellOffset:b,activeCellSize:z,activeIndexAnim:k,containerSize:u,disabled:T,horizontalAnim:N,hoverAnim:q,hoverOffset:K,isDraggingCell:j,isTouchActiveNative:V,panGestureState:O,placeholderOffset:R,resetTouchedCell:L,scrollOffset:p,scrollViewSize:s,spacerIndexAnim:P,touchPositionDiff:B,touchTranslate:C,autoScrollDistance:y,viewableIndexMin:H,viewableIndexMax:F}),[b,z,k,u,T,N,q,K,j,V,O,R,L,p,s,P,B,C,y,H,F]);return(0,t.useEffect)(()=>{var t;null===(t=e.onAnimValInit)||void 0===t||t.call(e,Q)},[Q]),Q}},3559,[17,2714,3242,3560]);
15980
+ __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 s}}),_e.useAnimatedValues=function(){const e=(0,t.useContext)(u);if(!e)throw new Error("useAnimatedValues must be called from within AnimatedValueProvider!");return e};var e,t=r(d[0]),l=(e=t)&&e.__esModule?e:{default:e},n=r(d[1]),o=r(d[2]),c=r(d[3]);const u=l.default.createContext(void 0);function s(e){let{children:t}=e;const n=O();return l.default.createElement(u.Provider,{value:n},t)}const v={code:"function reactNativeDraggableFlatlist_animatedValueContextJs1(){const{activeIndexAnim}=this.__closure;return activeIndexAnim.value;}"},f={code:"function reactNativeDraggableFlatlist_animatedValueContextJs2(cur,prev){const{scrollInit,scrollOffset,outerScrollInit,outerScrollOffset}=this.__closure;if(cur!==prev&&cur>=0){scrollInit.value=scrollOffset.value;outerScrollInit.value=outerScrollOffset.value;}}"},_={code:"function reactNativeDraggableFlatlist_animatedValueContextJs3(){const{isTouchActiveNative,activeIndexAnim}=this.__closure;return isTouchActiveNative.value&&activeIndexAnim.value>=0;}"},h={code:"function reactNativeDraggableFlatlist_animatedValueContextJs4(){const{isDraggingCell,scrollOffset,scrollInit,outerScrollOffset,outerScrollInit}=this.__closure;if(!isDraggingCell.value)return 0;const innerScrollDiff=scrollOffset.value-scrollInit.value;const outerScrollDiff=outerScrollOffset.value-outerScrollInit.value;const scrollDiff=innerScrollDiff+outerScrollDiff;return scrollDiff;}"},S={code:"function reactNativeDraggableFlatlist_animatedValueContextJs5(){const{isTouchActiveNative,autoScrollDistance,touchTranslate}=this.__closure;const extraTranslate=isTouchActiveNative.value?autoScrollDistance.value:0;return touchTranslate.value+extraTranslate;}"},D={code:"function reactNativeDraggableFlatlist_animatedValueContextJs6(){const{containerSize,activeCellSize,scrollOffset,touchPositionDiff,activeCellOffset,scrollViewSize,isTouchActiveNative}=this.__closure;const containerMinusActiveCell=containerSize.value-activeCellSize.value+scrollOffset.value;const offsetRelativeToScrollTop=touchPositionDiff.value+activeCellOffset.value;const constrained=Math.min(containerMinusActiveCell,Math.max(scrollOffset.value,offsetRelativeToScrollTop));const maxTranslateNegative=-activeCellOffset.value;const maxTranslatePositive=scrollViewSize.value-(activeCellOffset.value+activeCellSize.value);const constrainedBase=isTouchActiveNative.value?constrained-activeCellOffset.value:touchPositionDiff.value;return Math.min(Math.max(constrainedBase,maxTranslateNegative),maxTranslatePositive);}"},A={code:"function reactNativeDraggableFlatlist_animatedValueContextJs7(){const{activeIndexAnim,dragItemOverflow,touchPositionDiff,touchPositionDiffConstrained}=this.__closure;if(activeIndexAnim.value<0)return 0;return dragItemOverflow?touchPositionDiff.value:touchPositionDiffConstrained.value;}"},I={code:"function reactNativeDraggableFlatlist_animatedValueContextJs8(){const{hoverAnim,activeCellOffset}=this.__closure;return hoverAnim.value+activeCellOffset.value;}"},x={code:"function reactNativeDraggableFlatlist_animatedValueContextJs9(){const{activeIndexAnim,spacerIndexAnim}=this.__closure;const isHovering=activeIndexAnim.value>=0;if(!isHovering&&spacerIndexAnim.value>=0){spacerIndexAnim.value=-1;}}"};function O(){const e=(0,c.useProps)(),l=(0,n.useSharedValue)(0),u=(0,n.useSharedValue)(0),s=(0,n.useSharedValue)(0),O=(0,n.useSharedValue)(o.State.UNDETERMINED),C=(0,n.useSharedValue)(0),V=(0,n.useSharedValue)(!1),w=(0,n.useSharedValue)(0),T=(0,n.useSharedValue)(!1),N=(0,n.useSharedValue)(!!e.horizontal),k=(0,n.useSharedValue)(-1),P=(0,n.useSharedValue)(-1),z=(0,n.useSharedValue)(0),b=(0,n.useSharedValue)(0),p=(0,n.useSharedValue)(0),M=(0,n.useSharedValue)(0),H=(0,n.useSharedValue)(0),F=(0,n.useSharedValue)(0),J=e.outerScrollOffset||l,E=(0,n.useSharedValue)(0);(0,n.useAnimatedReaction)((function({_worklet_9770780663126_init_data:e,activeIndexAnim:t}){const l=function(){return t.value};return l.__closure={activeIndexAnim:t},l.__workletHash=9770780663126,l.__initData=e,l})({_worklet_9770780663126_init_data:v,activeIndexAnim:k}),(function({_worklet_2669524968831_init_data:e,scrollInit:t,scrollOffset:l,outerScrollInit:n,outerScrollOffset:o}){const c=function(e,c){e!==c&&e>=0&&(t.value=l.value,n.value=o.value)};return c.__closure={scrollInit:t,scrollOffset:l,outerScrollInit:n,outerScrollOffset:o},c.__workletHash=2669524968831,c.__initData=e,c})({_worklet_2669524968831_init_data:f,scrollInit:M,scrollOffset:p,outerScrollInit:E,outerScrollOffset:J}),[J]);const R=(0,n.useSharedValue)(0),j=(0,n.useDerivedValue)((function({_worklet_13229976984046_init_data:e,isTouchActiveNative:t,activeIndexAnim:l}){const n=function(){return t.value&&l.value>=0};return n.__closure={isTouchActiveNative:t,activeIndexAnim:l},n.__workletHash=0xc08581419ee,n.__initData=e,n})({_worklet_13229976984046_init_data:_,isTouchActiveNative:V,activeIndexAnim:k}),[]),y=(0,n.useDerivedValue)((function({_worklet_163796717909_init_data:e,isDraggingCell:t,scrollOffset:l,scrollInit:n,outerScrollOffset:o,outerScrollInit:c}){const u=function(){if(!t.value)return 0;return l.value-n.value+(o.value-c.value)};return u.__closure={isDraggingCell:t,scrollOffset:l,scrollInit:n,outerScrollOffset:o,outerScrollInit:c},u.__workletHash=163796717909,u.__initData=e,u})({_worklet_163796717909_init_data:h,isDraggingCell:j,scrollOffset:p,scrollInit:M,outerScrollOffset:J,outerScrollInit:E}),[]),B=(0,n.useDerivedValue)((function({_worklet_14268807456143_init_data:e,isTouchActiveNative:t,autoScrollDistance:l,touchTranslate:n}){const o=function(){const e=t.value?l.value:0;return n.value+e};return o.__closure={isTouchActiveNative:t,autoScrollDistance:l,touchTranslate:n},o.__workletHash=0xcfa3733258f,o.__initData=e,o})({_worklet_14268807456143_init_data:S,isTouchActiveNative:V,autoScrollDistance:y,touchTranslate:C}),[]),G=(0,n.useDerivedValue)((function({_worklet_2161134542663_init_data:e,containerSize:t,activeCellSize:l,scrollOffset:n,touchPositionDiff:o,activeCellOffset:c,scrollViewSize:u,isTouchActiveNative:s}){const v=function(){const e=t.value-l.value+n.value,v=o.value+c.value,f=Math.min(e,Math.max(n.value,v)),_=-c.value,h=u.value-(c.value+l.value),S=s.value?f-c.value:o.value;return Math.min(Math.max(S,_),h)};return v.__closure={containerSize:t,activeCellSize:l,scrollOffset:n,touchPositionDiff:o,activeCellOffset:c,scrollViewSize:u,isTouchActiveNative:s},v.__workletHash=2161134542663,v.__initData=e,v})({_worklet_2161134542663_init_data:D,containerSize:u,activeCellSize:z,scrollOffset:p,touchPositionDiff:B,activeCellOffset:b,scrollViewSize:s,isTouchActiveNative:V}),[]),U=e.dragItemOverflow,q=(0,n.useDerivedValue)((function({_worklet_5411143051866_init_data:e,activeIndexAnim:t,dragItemOverflow:l,touchPositionDiff:n,touchPositionDiffConstrained:o}){const c=function(){return t.value<0?0:l?n.value:o.value};return c.__closure={activeIndexAnim:t,dragItemOverflow:l,touchPositionDiff:n,touchPositionDiffConstrained:o},c.__workletHash=5411143051866,c.__initData=e,c})({_worklet_5411143051866_init_data:A,activeIndexAnim:k,dragItemOverflow:U,touchPositionDiff:B,touchPositionDiffConstrained:G}),[]),K=(0,n.useDerivedValue)((function({_worklet_7836450724061_init_data:e,hoverAnim:t,activeCellOffset:l}){const n=function(){return t.value+l.value};return n.__closure={hoverAnim:t,activeCellOffset:l},n.__workletHash=7836450724061,n.__initData=e,n})({_worklet_7836450724061_init_data:I,hoverAnim:q,activeCellOffset:b}),[q,b]);(0,n.useDerivedValue)((function({_worklet_12000071238288_init_data:e,activeIndexAnim:t,spacerIndexAnim:l}){const n=function(){!(t.value>=0)&&l.value>=0&&(l.value=-1)};return n.__closure={activeIndexAnim:t,spacerIndexAnim:l},n.__workletHash=0xae9fbfbc290,n.__initData=e,n})({_worklet_12000071238288_init_data:x,activeIndexAnim:k,spacerIndexAnim:P}),[]);const L=(0,t.useCallback)(()=>{b.value=0,w.value=0},[]),Q=(0,t.useMemo)(()=>({activeCellOffset:b,activeCellSize:z,activeIndexAnim:k,containerSize:u,disabled:T,horizontalAnim:N,hoverAnim:q,hoverOffset:K,isDraggingCell:j,isTouchActiveNative:V,panGestureState:O,placeholderOffset:R,resetTouchedCell:L,scrollOffset:p,scrollViewSize:s,spacerIndexAnim:P,touchPositionDiff:B,touchTranslate:C,autoScrollDistance:y,viewableIndexMin:H,viewableIndexMax:F}),[b,z,k,u,T,N,q,K,j,V,O,R,L,p,s,P,B,C,y,H,F]);return(0,t.useEffect)(()=>{var t;null===(t=e.onAnimValInit)||void 0===t||t.call(e,Q)},[Q]),Q}},3559,[17,2714,3241,3560]);
15981
15981
  __d(function(g,r,i,a,m,_e,d){"use strict";const e=["children"];function t(e){return e&&e.__esModule?e:{default:e}}Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"default",{enumerable:!0,get:function(){return l}}),_e.useProps=function(){const e=(0,u.useContext)(c);if(!e)throw new Error("useProps must be called from within PropsProvider!");return e};var n=t(r(d[0])),u=r(d[1]),o=t(u);const c=o.default.createContext(void 0);function l(t){let{children:u}=t,l=(0,n.default)(t,e);return o.default.createElement(c.Provider,{value:l},u)}},3560,[120,17]);
15982
15982
  __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 l}}),_e.useRefs=function(){const e=(0,t.useContext)(s);if(!e)throw new Error("useRefs must be called from within a RefContext.Provider!");return e};var e,t=r(d[0]),n=(e=t)&&e.__esModule?e:{default:e},f=r(d[1]),u=r(d[2]),o=r(d[3]);const s=n.default.createContext(void 0);function l(e){let{children:t,flatListRef:f}=e;const u=c({flatListRef:f});return n.default.createElement(s.Provider,{value:u},t)}function c(e){let{flatListRef:n}=e;const s=(0,o.useProps)(),{animationConfig:l=u.DEFAULT_PROPS.animationConfig}=s,c=(0,t.useRef)(s);c.current=s;const R=(0,t.useMemo)(()=>Object.assign({},u.DEFAULT_PROPS.animationConfig,l),[l]),P=(0,f.useSharedValue)(R);(0,t.useEffect)(()=>{P.value=R},[R]);const _=(0,t.useRef)(new Map),p=(0,t.useRef)(new Map),v=(0,t.useRef)(null),C=(0,t.useRef)(null),w=n||C,M=(0,t.useRef)(null);return(0,t.useMemo)(()=>({animationConfigRef:P,cellDataRef:_,containerRef:v,flatlistRef:w,keyToIndexRef:p,propsRef:c,scrollViewRef:M}),[])}},3561,[17,2714,3557,3560]);
15983
15983
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),Object.defineProperty(_e,"typedMemo",{enumerable:!0,get:function(){return u}});var e,t=r(d[0]);const u=((e=t)&&e.__esModule?e:{default:e}).default.memo},3562,[17]);
@@ -15992,13 +15992,13 @@ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{v
15992
15992
  __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,"NestableDraggableFlatList",{enumerable:!0,get:function(){return _}});var t=r(d[0]),l=e(t),n=e(r(d[1])),s=e(r(d[2])),o=r(d[3]),i=e(r(d[4])),u=r(d[5]),c=r(d[6]),f=r(d[7]);function v(){return v=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},v.apply(this,arguments)}const b={code:"function reactNativeDraggableFlatlist_NestableDraggableFlatListJs1(){const{listHoverOffset,listVerticalOffset}=this.__closure;return listHoverOffset.value+listVerticalOffset.value;}"};function O(e,O){const _=(0,t.useRef)(!1);_.current||(s.default.ignoreLogs(["VirtualizedLists should never be nested inside plain ScrollViews with the same orientation because it can break windowing"]),console.reportErrorsAsExceptions=!1,_.current=!0);const{scrollableRef:S,outerScrollOffset:h,setOuterScrollEnabled:V}=(0,u.useSafeNestableScrollContainerContext)(),D=(0,o.useSharedValue)(0),[p,w]=(0,t.useState)({}),k=(0,o.useSharedValue)(0),[y,C]=(0,t.useState)(k),E=(0,o.useDerivedValue)((function({_worklet_13500071611033_init_data:e,listHoverOffset:t,listVerticalOffset:l}){const n=function(){return t.value+l.value};return n.__closure={listHoverOffset:t,listVerticalOffset:l},n.__workletHash=0xc473af90a99,n.__initData=e,n})({_worklet_13500071611033_init_data:b,listHoverOffset:y,listVerticalOffset:D}),[y]);(0,c.useNestedAutoScroll)(Object.assign({},p,{hoverOffset:E}));const j=(0,f.useStableCallback)(async e=>{let{containerRef:t}=e;const l=(0,n.default)(S.current);t.current.measureLayout(l,(e,t)=>{D.value=t},()=>{console.log("## nested draggable list measure fail")})}),H=(0,f.useStableCallback)(t=>{var l;V(!1),null===(l=e.onDragBegin)||void 0===l||l.call(e,t)}),L=(0,f.useStableCallback)(t=>{var l;V(!0),null===(l=e.onDragEnd)||void 0===l||l.call(e,t)}),N=(0,f.useStableCallback)(t=>{var l;C(t.hoverOffset),w(Object.assign({},t,{hoverOffset:E})),null===(l=e.onAnimValInit)||void 0===l||l.call(e,t)});return l.default.createElement(i.default,v({ref:O,onContainerLayout:j,activationDistance:e.activationDistance||20,scrollEnabled:!1},e,{outerScrollOffset:h,onDragBegin:H,onDragEnd:L,onAnimValInit:N}))}const _=l.default.forwardRef(O)},3571,[17,122,273,2714,3554,3572,3573,3564]);
15993
15993
  __d(function(g,r,i,a,m,_e,d){"use strict";Object.defineProperty(_e,'__esModule',{value:!0}),_e.NestableScrollContainerProvider=function(e){let{children:t,forwardedRef:o}=e;const s=u({forwardedRef:o});return l.default.createElement(n.Provider,{value:s},t)},_e.useNestableScrollContainerContext=s,_e.useSafeNestableScrollContainerContext=function(){const e=s();if(!e)throw new Error("useSafeNestableScrollContainerContext must be called within a NestableScrollContainerContext.Provider");return e};var e,t=r(d[0]),l=(e=t)&&e.__esModule?e:{default:e},o=r(d[1]);const n=l.default.createContext(void 0);function u(e){let{forwardedRef:l}=e;const[n,u]=(0,t.useState)(!0),s=(0,o.useSharedValue)(0),c=(0,t.useRef)(null),f=l||c,S=(0,o.useSharedValue)(0),C=(0,o.useSharedValue)(0);return(0,t.useMemo)(()=>({outerScrollEnabled:n,setOuterScrollEnabled:u,outerScrollOffset:S,scrollViewSize:s,scrollableRef:f,containerSize:C}),[n])}function s(){return(0,t.useContext)(n)}},3572,[17,2714]);
15994
15994
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.useNestedAutoScroll=function(h){const{outerScrollOffset:E,containerSize:N,scrollableRef:C,scrollViewSize:L}=(0,o.useSafeNestableScrollContainerContext)(),A=(0,t.useSharedValue)(0),{hoverOffset:D=A,activeCellSize:I=A,autoscrollSpeed:w=100,autoscrollThreshold:R=30,isDraggingCell:p=A,isTouchActiveNative:k=A}=h,b=(0,t.useDerivedValue)((function({_worklet_1881896633941_init_data:t,hoverOffset:o,outerScrollOffset:l}){const s=function(){return o.value-l.value};return s.__closure={hoverOffset:o,outerScrollOffset:l},s.__workletHash=1881896633941,s.__initData=t,s})({_worklet_1881896633941_init_data:s,hoverOffset:D,outerScrollOffset:E}),[]),z=(0,t.useDerivedValue)((function({_worklet_4729636409762_init_data:t,outerScrollOffset:o,SCROLL_POSITION_TOLERANCE:l}){const s=function(){return o.value-l<=0};return s.__closure={outerScrollOffset:o,SCROLL_POSITION_TOLERANCE:l},s.__workletHash=4729636409762,s.__initData=t,s})({_worklet_4729636409762_init_data:c,outerScrollOffset:E,SCROLL_POSITION_TOLERANCE:l.SCROLL_POSITION_TOLERANCE}),[]),P=(0,t.useDerivedValue)((function({_worklet_6931217787228_init_data:t,outerScrollOffset:o,containerSize:l,SCROLL_POSITION_TOLERANCE:s,scrollViewSize:c}){const u=function(){return o.value+l.value+s>=c.value};return u.__closure={outerScrollOffset:o,containerSize:l,SCROLL_POSITION_TOLERANCE:s,scrollViewSize:c},u.__workletHash=6931217787228,u.__initData=t,u})({_worklet_6931217787228_init_data:u,outerScrollOffset:E,containerSize:N,SCROLL_POSITION_TOLERANCE:l.SCROLL_POSITION_TOLERANCE,scrollViewSize:L}),[]),B=(0,t.useDerivedValue)((function({_worklet_14157162290883_init_data:t,hoverScreenOffset:o}){const l=function(){return Math.max(0,o.value)};return l.__closure={hoverScreenOffset:o},l.__workletHash=0xce038a11ec3,l.__initData=t,l})({_worklet_14157162290883_init_data:n,hoverScreenOffset:b}),[b]),J=(0,t.useDerivedValue)((function({_worklet_6156973048070_init_data:t,containerSize:o,hoverScreenOffset:l,activeCellSize:s}){const c=function(){const t=o.value-(l.value+s.value);return Math.max(0,t)};return c.__closure={containerSize:o,hoverScreenOffset:l,activeCellSize:s},c.__workletHash=6156973048070,c.__initData=t,c})({_worklet_6156973048070_init_data:_,containerSize:N,hoverScreenOffset:b,activeCellSize:I}),[b,I,N]),V=(0,t.useDerivedValue)((function({_worklet_11726045427259_init_data:t,distToTopEdge:o,autoscrollThreshold:l}){const s=function(){return o.value<=l};return s.__closure={distToTopEdge:o,autoscrollThreshold:l},s.__workletHash=0xaaa2ec5b63b,s.__initData=t,s})({_worklet_11726045427259_init_data:f,distToTopEdge:B,autoscrollThreshold:R}),[]),x=(0,t.useDerivedValue)((function({_worklet_7914873790874_init_data:t,distToBottomEdge:o,autoscrollThreshold:l}){const s=function(){return o.value<=l};return s.__closure={distToBottomEdge:o,autoscrollThreshold:l},s.__workletHash=7914873790874,s.__initData=t,s})({_worklet_7914873790874_init_data:S,distToBottomEdge:J,autoscrollThreshold:R})),F=(0,t.useSharedValue)(0);return(0,t.useAnimatedReaction)((function({_worklet_14021221439128_init_data:t,isDraggingCell:o}){const l=function(){return o.value};return l.__closure={isDraggingCell:o},l.__workletHash=0xcc091ec5698,l.__initData=t,l})({_worklet_14021221439128_init_data:O,isDraggingCell:p}),(function({_worklet_17362022355714_init_data:t,scrollTarget:o,outerScrollOffset:l}){const s=function(t,s){t&&!s&&(o.value=l.value)};return s.__closure={scrollTarget:o,outerScrollOffset:l},s.__workletHash=0xfca692cd302,s.__initData=t,s})({_worklet_17362022355714_init_data:v,scrollTarget:F,outerScrollOffset:E}),[I]),(0,t.useDerivedValue)((function({_worklet_15221845355323_init_data:t,isAtTopEdge:o,isAtBottomEdge:l,isScrolledUp:s,isScrolledDown:c,scrollTarget:u,outerScrollOffset:n,SCROLL_POSITION_TOLERANCE:_,isDraggingCell:f,isTouchActiveNative:S,distToTopEdge:O,distToBottomEdge:v,autoscrollThreshold:T,autoscrollSpeed:h,runOnJS:E,scrollToInternal:N}){const C=function(){const t=o.value||l.value,C=o.value&&s.value,L=l.value&&c.value,A=C||L,D=Math.abs(u.value-n.value)>_,I=t&&!A&&f.value&&S.value&&!D,w=(1-(o.value?O.value:v.value)/T)*h,R=o.value?Math.max(0,n.value-w):n.value+w;I&&(u.value=R,E(N)(R))};return C.__closure={isAtTopEdge:o,isAtBottomEdge:l,isScrolledUp:s,isScrolledDown:c,scrollTarget:u,outerScrollOffset:n,SCROLL_POSITION_TOLERANCE:_,isDraggingCell:f,isTouchActiveNative:S,distToTopEdge:O,distToBottomEdge:v,autoscrollThreshold:T,autoscrollSpeed:h,runOnJS:E,scrollToInternal:N},C.__workletHash=0xdd81caf6b3b,C.__initData=t,C})({_worklet_15221845355323_init_data:T,isAtTopEdge:V,isAtBottomEdge:x,isScrolledUp:z,isScrolledDown:P,scrollTarget:F,outerScrollOffset:E,SCROLL_POSITION_TOLERANCE:l.SCROLL_POSITION_TOLERANCE,isDraggingCell:p,isTouchActiveNative:k,distToTopEdge:B,distToBottomEdge:J,autoscrollThreshold:R,autoscrollSpeed:w,runOnJS:t.runOnJS,scrollToInternal:function(t){var o;null===(o=C.current)||void 0===o||o.scrollTo({y:t,animated:!0})}}),[w,R,p]),null};var t=r(d[0]),o=r(d[1]),l=r(d[2]);const s={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs1(){const{hoverOffset,outerScrollOffset}=this.__closure;return hoverOffset.value-outerScrollOffset.value;}"},c={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs2(){const{outerScrollOffset,SCROLL_POSITION_TOLERANCE}=this.__closure;return outerScrollOffset.value-SCROLL_POSITION_TOLERANCE<=0;}"},u={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs3(){const{outerScrollOffset,containerSize,SCROLL_POSITION_TOLERANCE,scrollViewSize}=this.__closure;return outerScrollOffset.value+containerSize.value+SCROLL_POSITION_TOLERANCE>=scrollViewSize.value;}"},n={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs4(){const{hoverScreenOffset}=this.__closure;return Math.max(0,hoverScreenOffset.value);}"},_={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs5(){const{containerSize,hoverScreenOffset,activeCellSize}=this.__closure;const dist=containerSize.value-(hoverScreenOffset.value+activeCellSize.value);return Math.max(0,dist);}"},f={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs6(){const{distToTopEdge,autoscrollThreshold}=this.__closure;return distToTopEdge.value<=autoscrollThreshold;}"},S={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs7(){const{distToBottomEdge,autoscrollThreshold}=this.__closure;return distToBottomEdge.value<=autoscrollThreshold;}"},O={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs8(){const{isDraggingCell}=this.__closure;return isDraggingCell.value;}"},v={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs9(cur,prev){const{scrollTarget,outerScrollOffset}=this.__closure;if(cur&&!prev){scrollTarget.value=outerScrollOffset.value;}}"},T={code:"function reactNativeDraggableFlatlist_useNestedAutoScrollJs10(){const{isAtTopEdge,isAtBottomEdge,isScrolledUp,isScrolledDown,scrollTarget,outerScrollOffset,SCROLL_POSITION_TOLERANCE,isDraggingCell,isTouchActiveNative,distToTopEdge,distToBottomEdge,autoscrollThreshold,autoscrollSpeed,runOnJS,scrollToInternal}=this.__closure;const isAtEdge=isAtTopEdge.value||isAtBottomEdge.value;const topDisabled=isAtTopEdge.value&&isScrolledUp.value;const bottomDisabled=isAtBottomEdge.value&&isScrolledDown.value;const isEdgeDisabled=topDisabled||bottomDisabled;const scrollTargetDiff=Math.abs(scrollTarget.value-outerScrollOffset.value);const scrollInProgress=scrollTargetDiff>SCROLL_POSITION_TOLERANCE;const shouldScroll=isAtEdge&&!isEdgeDisabled&&isDraggingCell.value&&isTouchActiveNative.value&&!scrollInProgress;const distFromEdge=isAtTopEdge.value?distToTopEdge.value:distToBottomEdge.value;const speedPct=1-distFromEdge/autoscrollThreshold;const offset=speedPct*autoscrollSpeed;const targetOffset=isAtTopEdge.value?Math.max(0,outerScrollOffset.value-offset):outerScrollOffset.value+offset;if(shouldScroll){scrollTarget.value=targetOffset;runOnJS(scrollToInternal)(targetOffset);}}"}},3573,[2714,3572,3557]);
15995
- __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,"NestableScrollContainer",{enumerable:!0,get:function(){return S}});var t=e(r(d[0])),l=r(d[1]),n=r(d[2]),o=e(n),c=r(d[3]),f=r(d[4]);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},u.apply(this,arguments)}const i=o.default.createAnimatedComponent(l.ScrollView),s={code:"function reactNativeDraggableFlatlist_NestableScrollContainerJs1(_ref){const{outerScrollOffset}=this.__closure;let{contentOffset:contentOffset}=_ref;outerScrollOffset.value=contentOffset.y;}"};function _(e){const{outerScrollOffset:l,containerSize:o,scrollViewSize:_,scrollableRef:S,outerScrollEnabled:b}=(0,c.useSafeNestableScrollContainerContext)(),v=(0,n.useAnimatedScrollHandler)({onScroll:(function({_worklet_8746208410386_init_data:e,outerScrollOffset:t}){const l=function(e){let{contentOffset:l}=e;t.value=l.y};return l.__closure={outerScrollOffset:t},l.__workletHash=8746208410386,l.__initData=e,l})({_worklet_8746208410386_init_data:s,outerScrollOffset:l})}),O=(0,f.useStableCallback)(e=>{const{nativeEvent:{layout:t}}=e;o.value=t.height}),C=(0,f.useStableCallback)((t,l)=>{var n;_.value=l,null===(n=e.onContentSizeChange)||void 0===n||n.call(e,t,l)});return t.default.createElement(i,u({},e,{onLayout:O,onContentSizeChange:C,scrollEnabled:b,ref:S,scrollEventThrottle:1,onScroll:v}))}const S=t.default.forwardRef((e,l)=>t.default.createElement(c.NestableScrollContainerProvider,{forwardedRef:l||void 0},t.default.createElement(_,e)))},3574,[17,3242,2714,3572,3564]);
15995
+ __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,"NestableScrollContainer",{enumerable:!0,get:function(){return S}});var t=e(r(d[0])),l=r(d[1]),n=r(d[2]),o=e(n),c=r(d[3]),f=r(d[4]);function u(){return u=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var l=arguments[t];for(var n in l)Object.prototype.hasOwnProperty.call(l,n)&&(e[n]=l[n])}return e},u.apply(this,arguments)}const i=o.default.createAnimatedComponent(l.ScrollView),s={code:"function reactNativeDraggableFlatlist_NestableScrollContainerJs1(_ref){const{outerScrollOffset}=this.__closure;let{contentOffset:contentOffset}=_ref;outerScrollOffset.value=contentOffset.y;}"};function _(e){const{outerScrollOffset:l,containerSize:o,scrollViewSize:_,scrollableRef:S,outerScrollEnabled:b}=(0,c.useSafeNestableScrollContainerContext)(),v=(0,n.useAnimatedScrollHandler)({onScroll:(function({_worklet_8746208410386_init_data:e,outerScrollOffset:t}){const l=function(e){let{contentOffset:l}=e;t.value=l.y};return l.__closure={outerScrollOffset:t},l.__workletHash=8746208410386,l.__initData=e,l})({_worklet_8746208410386_init_data:s,outerScrollOffset:l})}),O=(0,f.useStableCallback)(e=>{const{nativeEvent:{layout:t}}=e;o.value=t.height}),C=(0,f.useStableCallback)((t,l)=>{var n;_.value=l,null===(n=e.onContentSizeChange)||void 0===n||n.call(e,t,l)});return t.default.createElement(i,u({},e,{onLayout:O,onContentSizeChange:C,scrollEnabled:b,ref:S,scrollEventThrottle:1,onScroll:v}))}const S=t.default.forwardRef((e,l)=>t.default.createElement(c.NestableScrollContainerProvider,{forwardedRef:l||void 0},t.default.createElement(_,e)))},3574,[17,3241,2714,3572,3564]);
15996
15996
  __d(function(g,r,i,a,m,e,d){},3575,[]);
15997
15997
  __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 s}});var t=r(d[0]);r(d[1]);var n=r(d[2]),o=r(d[3]),c=r(d[4]);function s(){const s=(0,t.c)(1);let u;return s[0]===Symbol.for("react.memo_cache_sentinel")?(u=(0,c.jsx)(o.RootProviders,{children:(0,c.jsx)(n.Stack,{screenOptions:{headerShown:!1}})}),s[0]=u):u=s[0],u}},3576,[15,3577,743,3580,10]);
15998
15998
  __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 t=e(r(_d[0])),n=r(_d[1]),u=(function(e){if(e&&e.__esModule)return e;var t={};return e&&Object.keys(e).forEach(function(n){var u=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,u.get?u:{enumerable:!0,get:function(){return e[n]}})}),t.default=e,t})(r(_d[2])),l=e(r(_d[3])),c=e(r(_d[4])),o=e(r(_d[5]));const f={en:{translation:c.default},it:{translation:o.default}},d=u.getLocales()[0]?.languageCode?.slice(0,2)??"en",s=Object.keys(f).includes(d)?d:"en";t.default.use(n.initReactI18next).init({resources:f,lng:s,fallbackLng:"en",interpolation:{escapeValue:!1}}),l.default.getItem("v2.language").then(e=>{"it"!==e&&"en"!==e||t.default.changeLanguage(e)});var b=t.default},3577,[789,786,3422,3133,3578,3579]);
15999
- __d(function(e,t,a,o,i,n,r){i.exports={devices:{editDevice:"Edit device",originalName:"Original name",customName:"Custom name",customNamePlaceholder:"Leave empty to use original",icon:"Icon",typeLight:"Light",typeSwitch:"Switch",typeCover:"Cover",typeLock:"Lock",typeAlarm:"Alarm",typeButton:"Button",typeSelect:"Select",typeSiren:"Siren",typeSensor:"Sensor",typeEntry:"Entry",typeMediaPlayer:"Media Player",typeScript:"Script",run:"Run",sourceHA:"Home Assistant",sourceScrypted:"Scrypted",off:"Off",on:"On",mute:"Mute",unmute:"Unmute",stop:"Stop",locked:"Locked",unlocked:"Unlocked",open:"Open",closed:"Closed",disarmed:"Disarmed",disarm:"Disarm"},common:{error:"Error",save:"Save",cancel:"Cancel",loading:"Loading...",comingSoon:"Coming soon",back:"Back",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen",reset:"Reset",selectAll:"Select all",deselectAll:"Deselect all",delete:"Delete",retry:"Retry"},grids:{newGrid:"New grid",deleteConfirm:"Delete this grid?",noGrids:"No grids yet. Create one to arrange cameras in a mosaic view.",createGrid:"Create grid",cameras:"cameras",notFound:"Grid not found.",noCameras:"No cameras in this grid. Edit the grid to add some.",edit:"Edit",addCamera:"Add camera",presets:"Presets",auto:"Auto",manual:"Manual",gridName:"Grid name",view:"View",addCameraHint:"Add at least one camera from the button above.",allCamerasAdded:"All cameras already in grid",cameraUnavailable:"Camera unavailable",camerasInGrid:"Cameras in grid",addAll:"Add all",addCameras:"Add Cameras",backToGrid:"Back to Grid",timelineNotSupported:"Timeline not supported"},nav:{cameras:"Cameras",grids:"Grids",events:"Events",videoclips:"Videoclips",list:"List",settings:"Settings"},cameras:{addCamera:"Add camera",pipActive:"PiP active",reorderEnable:"Reorder",reorderDisable:"Unlock",live:"Live",noCameras:"No cameras configured",noIntegrations:"No integrations configured. Add a system to get started.",createSystem:"Create system",importFrom:"Import cameras from",importSuccess:"Import complete",importCount:"{{count}} cameras imported",selectCamerasToImport:"Select cameras to import",selectAll:"Select all",deselectAll:"Deselect all",importSelected:"Import {{count}} selected",noCamerasFound:"No cameras found",play:"\u25b6 Play",paused:"Paused",noDataForDate:"No data for this date",recordingNotAvailable:"Recording not available",noEventsReel:"No recent events",settings:"Settings",highlightMotion:"Motion Highlight",highlightOnMotion:"Highlight on motion",highlightAudio:"Audio Highlight",audioMode:"Mode",audioModeOff:"Off",audioModeSensor:"Sensor",audioModeLevel:"Level",audioPreset:"Audio Preset",audioPresetCustom:"Custom",audioPresetCrying:"Crying / baby",audioPresetAlarm:"Alarm / siren",audioPresetDog:"Dog barking",audioPresetDoorbell:"Doorbell / knock",audioPresetGlass:"Glass break",audioWindow:"Window (s)",audioThreshold:"Threshold (dB)",audioHitPercentage:"Hit (%)",audioHoldSeconds:"Hold (s)",highlightDetection:"Object Detection Highlight",highlightOnDetection:"Highlight on detection",detectionClasses:"Classes",holdSeconds:"Hold (s)",rtspNotSupportedWeb:"RTSP streams are not supported on web. Use the mobile app.",liveDetections:"Live detections",filterTimeline:"Filter timeline",filterClasses:"Filter classes...",filterBySeverity:"Filter by severity",severityAlert:"Alert",severityDetection:"Detection",statusPosition:"Status Indicators Position",today:"Today",yesterday:"Yesterday",timeline:"Timeline",timelineEventsClusterEvents:"Events",selectDate:"Select a date",videoclipsNotSupported:"Videoclips not supported for this camera",noVideoclipsForDate:"No videoclips for this date",endOfList:"End of list",backToLive:"Back to live",goLive:"Go live",loadingClip:"Loading clip...",clusterDetailShowBbox:"Show bounding box on image",clusterDetailOpenVideoclip:"Open videoclip",clusterDetailLoadingEvents:"Loading events...",devices:"Devices",noAssociatedDevices:"No devices linked. Configure in Settings > Cameras.",timelineData:"Timeline data",timelineDataHint:"What to show on the timeline.",timelineDataVideoclips:"Videoclips",timelineDataAdvancedNotifier:"Advanced Notifier",timelineDataEvents:"Events",timelineEvents:"Timeline events",timelineEventsHint:"Which event types to show on the timeline, by severity.",timelinePresetAll:"All",timelinePresetImportant:"Important",timelinePresetCritical:"Critical",timelinePresetCustom:"Custom",statusBlock:"Status Block",sensorsBlock:"Sensors Block",position:"Position",indicators:"Indicators",downloadSnapshot:"Download Snapshot",exportDownloadClip:"Download Clip",exportRecordingWebOnly:"Recording export (web only)",exportSnapshot:"Export Snapshot",intercomError:"Intercom error",multiCam:"Multi-Camera",ptzNotSupported:"PTZ not supported",ptzSelectPreset:"Select PTZ Preset",snapshotFailed:"Snapshot failed"},events:{loading:"Loading events...",filterByLabel:"Filter by label",filterByLabelPlaceholder:"e.g. person, doorbell",filterByCamera:"Filter by camera",date:"Date",detectionTypes:"Detection types",source:"Source",cameras:"Cameras",groupingRange:"Grouping",groupingPresetMinutes:"{{m}} min",groupingCustom:"Custom",groupingCustomMinutes:"Minutes",groupingCustomApply:"Apply",today:"Today",noCamerasFromConfig:"Cameras loaded from EventsApp config",all:"All",typesCount:"{{count}} types",camerasCount:"{{count}} cameras",cols:"cols",sourceAuto:"Auto",sourceNVR:"NVR",sourceFrigate:"Frigate",sourceVideoClips:"VideoClips API",sourceRawDetection:"Raw",sourceAdvancedNotifier:"Advanced Notifier",detectionPerson:"Person",detectionVehicle:"Vehicle",detectionAnimal:"Animal",detectionAudio:"Audio",detectionFace:"Face",detectionPlate:"Plate",detectionPackage:"Package",detectionDoorbell:"Doorbell",detectionSensor:"Sensor",detectionMotion:"Motion",detectionRules:"Rules",noScryptedIntegration:"Add a Scrypted integration in Settings to view events.",frigateNoEvents:"Events are only available for Scrypted. Select a Scrypted instance in Settings.",noSource:"Add a Scrypted or Frigate integration in Settings, then select it as the Events/Videoclips source.",loadError:"Error loading events",noEvents:"No events for this date. Try changing the date or filters.",clearCacheTitle:"Clear cache",clearCacheMessage:"Clear all cached events and videoclips data? This will force a fresh fetch on next load.",clearCacheConfirm:"Clear",columnsPerRow:"Columns per row",onlyWithClips:"Only with clips",relatedClip:"Related Clip"},videoclips:{loading:"Loading videoclips...",noCamerasFromConfig:"Cameras loaded from config",noScryptedIntegration:"Add a Scrypted integration in Settings to view videoclips.",noFrigateIntegration:"Select a Frigate integration in Settings to view videoclips.",noSource:"Add a Scrypted or Frigate integration in Settings, then select it as the Events/Videoclips source.",loadError:"Error loading videoclips",noVideoclips:"No videoclips for this date. Try changing the date or filters.",openVideoclip:"Open videoclip",clearCacheTitle:"Clear cache",clearCacheMessage:"Clear all cached events and videoclips data? This will force a fresh fetch on next load.",clearCacheConfirm:"Clear"},settings:{integrations:"Integrations",camstackProxy:"CamStack Proxy",scrypted:"Scrypted",frigate:"Frigate",rtsp:"RTSP",homeAssistant:"Home Assistant",name:"Name",baseUrl:"Base URL",urlLocal:"Local URL",urlPublic:"Public URL",username:"Username",password:"Password",token:"Token (optional)",frigateTokenHint:"Token (optional): JWT from browser",tokenRequired:"Token",testConnection:"Test connection",testLocal:"Test Local",testPublic:"Test Public",testMqtt:"Test MQTT",connectionOk:"Connection successful",connectionError:"Connection failed",scryptedCredentialsPromptTitle:"Scrypted login",scryptedCredentialsPromptSubtitle:"Enter your Scrypted username and password to connect.",scryptedCredentialsPromptSkip:"Skip for now",usernamePlaceholder:"admin",save:"Save",tabStream:"Stream & playback",tabGeneral:"General",data:"Data",clearCacheEventsClips:"Clear events & videoclips cache",eventsClipsSourceHint:"Source for Events and Videoclips tabs.",hubReelTitle:"Hub & Reel",reelIntegrationsHint:"Choose which integrations to use for the reel.",reelScryptedSourceHint:"When using Scrypted: event source for reel.",eventsClipsAuto:"Auto",eventsClipsNoInstance:"Add a Scrypted or Frigate integration first.",exportBackup:"Export backup",exportError:"Export failed",importBackup:"Import backup",importConfirm:"This will replace all cameras, integrations and settings with the backup data. Continue?",importSuccess:"Backup restored successfully",importError:"Import failed",uiPrototypes:"UI Prototypes",uiPrototypesHint:"Explore experimental timeline designs",versions:"Versions",appVersion:"App",nativeVersion:"Native",updateNow:"Update now",updateError:"Update failed",updateAvailableTitle:"Update Available",updateAvailableMessage:"A new version of CamStack has been downloaded and is ready to install. The app will restart to apply the update.",updateInstall:"Install & Restart",updateLater:"Later",tabIntegrations:"Integrations",tabCameras:"Camera settings",theme:"Theme",themeSystem:"System",themeLight:"Light",themeDark:"Dark",language:"Language",languageSystem:"System",languageEn:"English",languageIt:"Italiano",timelineMode:"Timeline Mode",timelineModeClassic:"Classic",timelineModeTheater:"Theater",timeline:"Timeline",timelineVisible:"Show detection timeline",timelineVisibleDescription:"Display the detection timeline panel in the camera view.",clusterSize:"Cluster card size",snapshotInterval:"Snapshot refresh interval",clusterSizeXS:"XS",clusterSizeS:"S",clusterSizeM:"M",clusterSizeL:"L",clusterSizeXL:"XL",highlightAppearance:"Highlight appearance",highlightAppearanceHint:"Color and border thickness for motion, audio, and detection highlights on camera streams.",highlightMotion:"Motion",highlightAudio:"Audio",highlightDetection:"Detection",highlightColor:"Color",highlightThickness:"Thickness",selectSection:"Select section",addSystem:"Add system",selectPlatform:"Select platform",deleteInstance:"Delete instance",deleteInstanceConfirm:"Are you sure you want to delete this instance?",delete:"Delete",mqttEvents:"MQTT - Real-time events",mqttBrokerUrl:"MQTT broker URL",mqttUsername:"MQTT username",mqttPassword:"MQTT password",mqttTopicPrefix:"Topic prefix (default: frigate)",mqttOptional:"Optional",scryptedAddressAlreadyUsed:"This Scrypted address is already configured. Only one instance per address is allowed.",scryptedAdvancedNotifierRequired:"The Advanced Notifier plugin is required for the connection.",scryptedCorsTitle:"CORS configuration required (Web)",scryptedCorsBody:"In Scrypted, open the Cloud plugin settings and add your domain ({{domain}}) to the CORS Allowed Origins list. Without this, the browser will block requests to your Scrypted server.",scryptedUrlHint:"Local URL is tried first (e.g. on LAN), then public URL. At least one required.",gridLayout:"Grid layout",gridLayoutHint:"Display options for the cameras grid.",gridColumns:"Grid columns",gridColumnsHint:"Number of cameras per row. Auto = 1 on mobile, 4 on tablet.",gridShowName:"Show camera name",gridShowState:"Show state (battery, recording, sleeping)",reorderCameras:"Reorder cameras",reorderCamerasHint:"Drag to reorder cameras",reorderDone:"Done",manageCameras:"Manage cameras",manageCamerasHint:"Remove cameras from the app.",downloadSnapshot:"Download snapshot",snapshotFailed:"Could not fetch snapshot",exportSnapshot:"Snapshot",exportDownloadClip:"Download clip",exportStartRecording:"Start recording",exportStopRecording:"Stop recording",exportRecordingWebOnly:"Recording available on web",intercomError:"Intercom unavailable. Check camera credentials in Scrypted.",deleteCamera:"Remove camera",deleteCameraConfirm:"Remove {{name}} from the app?",streamPlayback:"Stream & playback",playOnOpen:"Start stream when opening camera",playOnOpenHint:"Automatically load the live stream when you open a camera.",audioOnOpen:"Unmute audio when opening",audioOnOpenHint:"Play audio when opening a camera (if supported).",streamWatchdog:"Stream watchdog",streamWatchdogHint:"Restart stream when no data received (helps with stalled connections).",cameraPlayer:"Camera player",webViewCameraDetail:"Use WebView player",webViewCameraDetailHint:"Use WebView for Scrypted cameras (faster first frame, more stable). PiP, fullscreen and intercom work. Default: native player.",streamQuality:"Stream quality",streamQualitySingle:"Single camera quality",streamQualityGrid:"Grid quality",qualityAuto:"Auto",qualityHigh:"High",qualityMedium:"Mid",qualityLow:"Sub",auto:"Auto",associatedDevices:"Associated devices",associatedDevicesHint:"Add actuators (lights, switches, covers, etc.) to control from the camera view.",linkedDevices:"Linked",reorderHint:"Use arrows to reorder",addDevice:"Add device",noEligibleDevices:"No Scrypted or Home Assistant configured. Add an integration first.",configureDevices:"Configure devices",cameraSettingsHint:"Choose a camera to configure its specific options.",noCamerasConfigured:"No cameras configured.",searchDevices:"Search devices...",source:"Source",type:"Type",all:"All",noMatchingDevices:"No devices match the filters.",frigateStream:"Frigate Stream",frigateStreamSourceHint:"Stream source: WebRTC (default), RTSP, or MJPEG.",frigateStreamMapping:"Stream mapping (go2rtc names from config)",frigateStreamMappingHint:"Select from available go2rtc streams. Order: Main, Sub, Low.",frigateSelectStream:"Select stream",frigateAddStream:"Add stream",frigateInfo:"Camera info",frigateShowConfig:"Show config",frigateShowGo2rtc:"Show go2rtc",frigateMissingConfig:"Missing baseUrl or cameraName in camera config.",tabLogs:"Logs",logsCount:"{{count}} entries",logsDownload:"Download",logsClear:"Clear",logsEmpty:"No logs yet. Console output will appear here.",logsExportError:"Export failed",logsExportTitle:"Export logs",logsClearConfirmTitle:"Clear logs",logsClearConfirmMessage:"Remove all log entries?",hubAppearanceTitle:"Appearance",hubAppearanceDesc:"Theme, language, timeline and highlights",hubCamerasTitle:"Cameras",hubCamerasDesc:"Grid layout, stream quality and camera management",hubIntegrationsTitle:"Integrations",hubIntegrationsDesc:"Manage Scrypted, Frigate and other systems",hubAdvancedTitle:"Advanced",hubAdvancedDesc:"Data backup and cache management",hubLogsTitle:"Logs",hubLogsDesc:"View and export application logs",hubCacheTitle:"Cache",frigateAutoSnap:"Auto Snapshot",frigateSegmentNav:"Segment Navigation",frigateShowGo:"Show Go2RTC",frigateTimeline:"Timeline",reelCameras:"Reel Cameras",reelCamerasHint:"Select which cameras appear in the events reel",reelDeselectAll:"Deselect All",reelDetectionClasses:"Detection Classes",reelDetectionClassesHint:"Filter events by detection class",reelIncludeRuleArtifacts:"Include Rule Artifacts",reelIncludeRuleArtifactsHint:"Show rule-based events in the reel",reelRuleArtifacts:"Rule Artifacts",reelSelectAll:"Select All",reelBadgeContent:"Badge content",reelBadgePosition:"Badge position",reelBadgeSize:"Badge size",reelBadgeBoth:"Time + Class",reelBadgeTime:"Time only",reelBadgeClass:"Class only",reelBadgeNone:"Hidden",reelBadgeSmall:"Small",reelBadgeMedium:"Medium",reelBadgeLarge:"Large"},reel:{filterMotion:"Motion",filterOnlyRules:"Only rules",filterOnlySensors:"Only sensors",goToMostRecent:"Go to most recent"},v2:{common:{connecting:"Connecting\u2026",online:"Online",offline:"Offline",loadError:"Loading error",create:"Create"},cameras:{empty:"No cameras",statusOnline:" \xb7 online",statusOffline:" \xb7 offline",sleeping:"Sleeping",unavailable:"Unavailable",motion:"Motion",doorbell:"Doorbell",doorbellRinging:"Ringing",doorbellLastRing:"Ring {{time}} ago",snapshotLoading:"Loading\u2026",manage:"Manage cameras",manageHint:"Drag to reorder. Rename inline. Toggle to show or hide a camera from the list.",reorderHandle:"Drag to reorder",appearance:"Appearance",editList:"Edit list",listOptions:"Camera list options"},cameraDetail:{fallbackName:"Camera #{{id}}",mute:"Mute",unmute:"Unmute",snapshot:"Snapshot",snapshotFailed:"Could not capture a snapshot.",ptz:"PTZ controls",talk:"Talk",fullscreen:"Fullscreen",talkFailed:"Could not start talk-back. Check microphone access.",pip:"Picture in Picture",exitFullscreen:"Exit fullscreen",devices:"Devices",devicesEmpty:"No connected devices.",linkedModeAuto:"Link: Auto (same location)",linkedModeManual:"Link: Manual",motionBoxes:"Motion boxes",close:"Close",deviceOnline:"Online",deviceOffline:"Offline"},grids:{createA11y:"Create grid",empty:"No grids",emptyHint:"Tap + to create your first grid",countNone:"No cameras",countOne:"1 camera",countOther:"{{count}} cameras",defaultName:"New grid",deleteTitle:"Delete grid",deleteConfirm:"Delete \"{{name}}\"? This cannot be undone.",export:"Export",exportAllA11y:"Export all grids",shareA11y:"Share grid",editA11y:"Edit grid",deleteA11y:"Delete grid",linkCopied:"Grid link copied to clipboard",layoutAuto:"Auto",layoutColumns:"{{count}} cols"},gridView:{editA11y:"Edit grid",fallbackTitle:"Grid",notFound:"Grid not found",emptyGrid:"This grid is empty",addCameras:"Add cameras",reorderTitle:"Reorder cameras",reorderA11y:"Reorder cameras",reorderDoneA11y:"Done reordering",allHidden:"All cameras are hidden. Use reorder mode to show some.",dragA11y:"Drag to reorder",hideA11y:"Hide from grid",showA11y:"Show in grid",removeA11y:"Remove from grid",adhocTitle:"Quick grid"},gridBuilder:{title:"Edit grid",nameLabel:"Name",namePlaceholder:"Grid name",camerasSelected:"Cameras ({{count}} selected)",optionsTitle:"Options",showName:"Show camera name",export:"Export grid",orderSection:"In the grid",orderHint:"Drag to reorder",emptyOrder:"No cameras yet \u2014 add some below.",addSection:"Add cameras",removeA11y:"Remove from grid",addA11y:"Add to grid",highlightTitle:"Highlight",highlightMotion:"On motion",highlightAudio:"On audio",highlightAudioOff:"Off",highlightAudioSensor:"Presence",highlightAudioLevel:"Level",highlightThreshold:"Threshold",highlightHold:"Hold",highlightDetection:"On detection",clusterLabel:"Cluster label",clusterLabelIcon:"Icon",clusterLabelText:"Text"},gridBar:{back:"Back",pauseAll:"Pause all",playAll:"Play all",audio:"Audio",quality:"Stream quality",layout:"Layout",highlightMenu:"Highlight & overlays",activeOnly:"Active only",share:"Share grid",edit:"Edit grid",hide:"Hide controls",show:"Show controls",muteAll:"Mute all",unmuteAll:"Unmute all"},gridMenu:{highlightMaster:"Highlight borders"},gridShare:{title:"Share \"{{name}}\"",quality:"Stream quality",layout:"Layout",showNames:"Show camera names",activeOnly:"Active cameras only",boxes:"Bounding boxes",highlightEnable:"Highlight",audioSummary:"Audio starts on for {{count}} camera(s)",ttlTitle:"Link expires",ttl_1d:"1 day",ttl_7d:"7 days",ttl_30d:"30 days",ttl_never:"Forever",tokenNotice:"The link includes a view-only access token limited to these cameras. Anyone with the link can watch until it expires or is revoked.",copyLink:"Copy link",creating:"Creating link\u2026",copiedExpires:"Link copied \u2014 expires {{date}}",copiedNever:"Link copied \u2014 never expires",error:"Could not create the share link. Check the connection and try again.",optionAuto:"Auto",optionHigh:"High",optionMedium:"Mid",optionLow:"Low"},gridControls:{play:"Play",pause:"Pause",mute:"Mute",unmute:"Unmute",quality:"Quality",layout:"Layout",layoutAuto:"Auto"},events:{comingSoon:"Events \u2014 coming soon",searchLabel:"Search label\u2026",empty:"No events",today:"Today",filteredEmpty:"No matches in the loaded range",loadOlder:"Load older",selectPrompt:"Select an event to see its detail",filters:"Filters",all:"All",day:"Day",sort:"Sort",sortTime:"Newest",sortImportance:"Importance",cameras:"Cameras",classes:"Classes",search:"Search",searchCameras:"Search cameras\u2026",searchClasses:"Search classes\u2026",allCamerasHint:"None = all",allClassesHint:"None = all",done:"Done",density:"Density",selectHint:"Select an event",eventKinds:"Event types",displayOptions:"Display",displayTitle:"Display options"},settings:{themeSystem:"System",themeDark:"Dark",themeLight:"Light",server:"Server",hubActive:"Active hub",changeServer:"Change server",signOut:"Sign out",network:"Network",networkNone:"No routes probed yet",endpointUnlikely:"Unlikely usable",reprobe:"Re-probe routes",reprobing:"Probing\u2026",appearance:"Appearance",theme:"Theme",info:"Info",app:"App",version:"Version",noServer:"No server",footerNote:"CamStack Viewer connects to a single camstack hub. Cameras, grids and events are managed by the server.",language:"Language",langSystem:"System",gridDefaults:"Grid defaults",showName:"Show camera name",showNameHint:"Overlay the camera name on each tile",showState:"Show status badge",showStateHint:"Show online / recording state on each tile",columns:"Columns",cameraOrder:"Camera order",orderName:"By name",orderCustom:"Custom",motionHold:"Motion highlight linger",motionHoldHint:"Keep a tile's motion highlight lit this long after motion stops.",motionHoldOff:"Off",streamQuality:"Stream quality",streamDefaults:"Stream defaults",playOnOpen:"Play on open",playOnOpenHint:"Start the live stream when a camera opens",audioOnOpen:"Audio on open",audioOnOpenHint:"Unmute audio when a camera opens",snapshotInterval:"Snapshot refresh",highlightAppearance:"Highlight appearance",highlightMotionColor:"Motion color",highlightAudioColor:"Audio color",highlightDetectionColor:"Detection color",highlightThickness:"Border thickness",qualityAuto:"Auto",qualityHigh:"High",qualityMid:"Medium",qualityLow:"Low",secondsValue:"{{count}}s",advanced:"Advanced",clearCache:"Clear cache",clearCacheHint:"Free up snapshots and cached data (keeps your server and settings)",clearCacheConfirmTitle:"Clear cache?",clearCacheConfirmBody:"This removes cached images and query data. Your server, sign-in and settings are kept.",clearCacheDone:"Cache cleared",exportSettings:"Export settings",exportSettingsHint:"Copy your settings as JSON",exportSettingsDone:"Settings copied as JSON",viewLogs:"View logs",viewLogsHint:"Recent in-app log messages",logsEmpty:"No logs recorded yet",keepLogs:"Keep logs",keepLogsHint:"Record a rolling buffer of in-app log messages",debugMode:"Debug mode",debugModeHint:"Verbose logs across live, playback and scrub \u2014 sent to the server",logsClear:"Clear",resetSettings:"Reset settings",resetSettingsHint:"Restore all defaults",resetConfirmTitle:"Reset settings?",resetConfirmBody:"This restores all settings to their defaults.",cancel:"Cancel",confirm:"Confirm",timeline:"Timeline & highlights",reel:"Event reel",reelThumbSize:"Reel thumbnail size",reelThumbSizeHint:"Size of the tiles in the Recent events reel.",reelSizeSmall:"Small",reelSizeMedium:"Medium",reelSizeLarge:"Large",reelShowLabels:"Show labels",reelShowLabelsHint:"Show the class/identity label on reel items.",reelLabelStyle:"Class display",reelLabelStyleHint:"Show the detection class as an icon or as text on reel items.",reelShowImportance:"Show importance",reelShowImportanceHint:"Show the importance badge on reel items.",events:"Events",eventsPage:"Events page",minImportance:"Minimum importance",minImportanceHint:"Hide events scored below this across the events page and the camera timeline.",minImportanceOff:"Off",tileShowLabels:"Show labels",tileShowLabelsHint:"Show the class / identity / audio labels on event cards.",tileShowImportance:"Show importance",tileShowImportanceHint:"Show the importance badge on event cards (when scored).",tileShowCameraName:"Show camera name",tileShowCameraNameHint:"Show the camera name in the event card footer.",tileLabelStyle:"Class display",tileLabelStyleHint:"Show the detection class as an icon or as text.",tileLabelStyleIcon:"Icon",tileLabelStyleText:"Text",comingSoon:"Coming soon",cameras:"Cameras",manageCameras:"Manage cameras",manageCamerasHint:"Rename, hide, reorder",pinchExpandsHeight:"Pinch enlarges the view",pinchExpandsHeightHint:"Pinching to zoom also grows the video taller (crops the side edges on 16:9 cameras).","timeline.gapPercent":"Cluster gap (%)","timeline.sizePercent":"Cluster size (%)","timeline.indicatorPositionPct":"Indicator position (%)","timeline.showImportance":"Show importance on items","timeline.showClass":"Show detection class on items","timeline.cardWidthPct":"Card width (%)",haptics:"Event haptics",hapticsEnabled:"Vibrate on events",hapticsEnabledHint:"Small vibration pulses for key events on the camera you're watching. Native only (iOS/Android).",hapticsMotion:"Motion",hapticsDetection:"Detection",hapticsPerson:"Person / recognized"},login:{loginFailed:"Login failed",verifyFailed:"Verification failed",serverUrl:"Server URL",username:"Username",password:"Password",showPassword:"Show password",hidePassword:"Hide password",signIn:"Sign in",signingIn:"Signing in\u2026",twoFactor:"Two-factor authentication",totpHint:"Enter the 6-digit code from your authenticator app to sign in as ",verificationCode:"Verification code",verifyAndSignIn:"Verify and sign in",verifying:"Verifying\u2026",back:"Back",or:"or",signInWithCamStack:"Sign in with CamStack",hubSignInHint:"Opens your hub\u2019s login page and links this app without typing your password here.",handoffFailed:"Sign-in with CamStack failed \u2014 try again or use username and password",invalidServerUrl:"Enter a valid server URL (https://\u2026) first"},live:{webUnsupported:"Live view is not available on the web version yet.",connecting:"Connecting to live stream\u2026",error:"Unable to load the live stream.",retry:"Retry",noConnection:"No connection to the server",failed:"Connection failed"},ptz:{title:"PTZ",notAvailable:"PTZ controls are not available for this camera.",zoom:"Zoom",home:"Home position",presets:"Presets",noPresets:"No presets saved."},timeline:{activityTitle:"Activity",last24h:"Last 24h",loading:"Loading activity\u2026",noActivity:"No activity in the last 24 hours.",legendRecording:"Recorded",legendMotion:"Motion",legendAudio:"Audio"},theater:{back:"Back",today:"Today",yesterday:"Yesterday",selectDate:"Pick a date",live:"LIVE",now:"NOW",auto:"Auto",quality:"Stream quality",filterAll:"All",filter_motion:"Motion",filter_audio:"Audio",goToLive:"Go to live",noRecording:"No recording",noRecordingHint:"No footage at this time",detailCount:"{{frames}} frames \xb7 {{count}} detections",detailTracks:"{{tracks}} tracks \xb7 {{count}} detections",detailEmpty:"No detail images for this moment",detailSeek:"Go to this moment",zoneHint:"Drag a rectangle over the video to filter events by zone",zoneConfirm:"Confirm",zoneCancel:"Cancel"},mediaKind:{crop:"Object crop",thumbnail:"Best shot",faceCrop:"Face",plateCrop:"Plate",fullFrame:"Frame",fullFrameBoxed:"Boxed",keyFrame:"Key frame",firstFrame:"First",lastFrame:"Last",snapshot:"Snapshot"},tracks:{crop:"Crop",fullFrame:"Full frame",showBoundingBox:"Show bounding box",zones:"Zones",audio:"Audio",reason:"Why notable",empty:"No tracks",recent:"Recent",searchPlaceholder:"Search events (e.g. \"person in red\")",noMatches:"No matching events",person:"Person",assignPerson:"Assign to person",changePerson:"Change",notAssigned:"Not assigned",assignFaceTitle:"Assign face",newPersonPlaceholder:"New person name\u2026",createAndAssign:"Create & assign",assignFailed:"Couldn't assign the face",removePerson:"Remove person",removePersonConfirmTitle:"Remove person?",removePersonConfirmBody:"This unlinks the person from this face. The face returns to the unassigned buffer and can be reassigned later.",disassociateFailed:"Couldn't remove the person",removePersonAll:"Remove from all events",removePersonAllConfirmTitle:"Remove from all events?",removePersonAllConfirmBody:"This unlinks this person from EVERY event. All faces currently recognized as this person return to the unassigned buffer and can be reassigned later. The person is kept.",disassociateAllFailed:"Couldn't remove the person from all events",existingPersons:"People",noPersons:"No people yet",metadata:"Metadata",copy:"Copy",copied:"Copied","meta.trackId":"Track ID","meta.eventId":"Best event ID","meta.deviceId":"Device ID","meta.camera":"Camera","meta.className":"Class","meta.label":"Label","meta.firstSeen":"First seen","meta.lastSeen":"Last seen","meta.state":"State","meta.importance":"Importance","meta.confidence":"Confidence","meta.mediaKeys":"Media keys"},accessories:{on:"On",off:"Off",dimUp:"Brighter",dimDown:"Dimmer",lock:"Lock",unlock:"Unlock",open:"Open",close:"Close",stop:"Stop",arm:"Arm",disarm:"Disarm",onMotion:"On motion",warmer:"Warmer",cooler:"Cooler",speedUp:"Faster",speedDown:"Slower",oscillate:"Oscillate",press:"Press",play:"Play",pause:"Pause",previous:"Previous",next:"Next",start:"Start",dock:"Dock",locate:"Locate",feed:"Feed",feeding:"Feeding\u2026",install:"Install",installing:"Installing\u2026",upToDate:"Up to date",increase:"Increase",decrease:"Decrease",select:"Select",climateModes:{off:"Off",heat:"Heat",cool:"Cool",auto:"Auto",heat_cool:"Heat/Cool",fan_only:"Fan",dry:"Dry"}},cameraMenu:{title:"View options",boundingBoxes:"Bounding boxes",streamStats:"Stream stats",audioLevel:"Audio level",densityTitle:"Timeline density",density_compact:"Compact",density_medium:"Medium",density_wide:"Wide",densityCustom:"Custom",indicatorPosition:"Indicator position",showImportance:"Show importance",showClass:"Show detection class",managementTitle:"Management"},stats:{title:"Stream stats",resolution:"Resolution",fps:"FPS",bitrate:"Bitrate",packetLoss:"Packet loss",jitter:"Jitter",codec:"Codec",frames:"Frames (dropped/total)",waiting:"Measuring\u2026",playbackHint:"Full WebRTC stats need the native player."},exportActions:{title:"Capture",recordingExport:"Recording export"},exports:{title:"Exports",empty:"No exports yet.",settingsHint:"Download recorded clips",range:"Range",rangeStart:"Start",rangeEnd:"End",profile:"Profile",noFootage:"No footage in this range.",speed:"Speed",timelapse:"Timelapse",cadence:"Frame every",audio:"Audio",includeAudio:"Include audio",audioUnavailable:"Audio is only available at 0.5\u20132\xd7 speed.",retention:"Keep for",life24h:"24 hours",life7d:"7 days",life30d:"30 days",deleteAfterDownload:"Delete after download",deleteAfterDownloadHint:"Remove the file once downloaded.",creating:"Creating\u2026",createAction:"Export",createFailed:"Could not create the export.",withAudio:"with audio",variantRegular:"1\xd7",variantAccelerated:"Accelerated {{speed}}\xd7",variantSlow:"Slow {{speed}}\xd7",variantTimelapse:"Timelapse",expired:"Expired",expiresInDays:"Expires in {{count}}d",expiresInHours:"Expires in {{count}}h",expiresInMinutes:"Expires in {{count}}m",downloadAction:"Download",downloadUnavailable:"Download not available.",downloadFailed:"Download failed.",cancelAction:"Cancel",cancelConfirmTitle:"Cancel export?",cancelConfirmBody:"This stops rendering and discards the partial file.",deleteAction:"Delete",deleteConfirmTitle:"Delete export?",deleteConfirmBody:"This removes the file. The history entry is kept.",dismiss:"Dismiss",state:{queued:"Queued",rendering:"Rendering",ready:"Ready",failed:"Failed",expired:"Expired",deleted:"Deleted"}},streamBar:{play:"Play",pause:"Pause",mute:"Mute",unmute:"Unmute",talkStart:"Start talking",talkStop:"Stop talking",quality:"Stream quality",menu:"View options",snapshot:"Snapshot",pip:"Picture in picture",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen"},playback:{prevFrame:"Previous frame",nextFrame:"Next frame",speed:"Playback speed",audioMuted:"Audio off at \u2260 1\xd7",audioOn:"Audio on"},cameraSwitcher:{title:"Switch camera",empty:"No cameras available",openGrid:"Open grid ({{n}})",selectA11y:"Select {{name}}"},storage:{title:"Storage",usageTitle:"Usage",nodeTotal:"Node total",defaultLocation:"Default location",locationFree:"{{free}} free",retentionTitle:"Retention",pruneAction:"Apply retention now",pruneConfirmTitle:"Apply retention?",pruneConfirmBody:"Delete footage on {{name}} that exceeds its retention policy.",pruneResult:"Reclaimed {{bytes}} ({{buckets}} segments).",deleteTitle:"Delete footage",deleteAction:"Delete",deleteConfirmTitle:"Delete footage?",deleteConfirmBody:"Permanently delete {{range}} of footage on {{name}}. This cannot be undone.",deleteResult:"Reclaimed {{bytes}} ({{buckets}} segments).",cancel:"Cancel",window24h:"Last 24h",window7d:"Last 7 days",window30d:"Last 30 days",windowAll:"Everything"},eventsMgmt:{title:"Events",footprintTitle:"Footprint",rowsBytes:"{{rows}} events \xb7 {{bytes}}",clusterTotal:"Cluster total",pruneTitle:"Prune older than",pruneHint:"Applies to all cameras.",pruneAction:"Prune",pruneConfirmTitle:"Prune old events?",pruneConfirmBody:"Delete events older than {{range}} across ALL cameras. This cannot be undone.",pruneResult:"Deleted {{count}} events.",deleteTitle:"Delete camera events",deleteAction:"Delete all events for this camera",deleteConfirmTitle:"Delete all events?",deleteConfirmBody:"Permanently delete every event for {{name}}. This cannot be undone.",deleteResult:"Deleted {{count}} events.",cancel:"Cancel",older24h:"24 hours",older7d:"7 days",older30d:"30 days"}},prototype:{today:"Today",yesterday:"Yesterday",now:"NOW",endOfDay:"END OF DAY",loading:"Loading...",timeline:"Timeline",events:"Events",playClip:"Play clip",goToNow:"NOW",noEvents:"No events"},eventKind:{motion:"Motion",audio:"Audio",person:"Person",vehicle:"Vehicle",animal:"Animal",package:"Package",sensor:"Sensor",control:"Control",car:"Car",truck:"Truck",bus:"Bus",motorcycle:"Motorcycle",bicycle:"Bicycle",airplane:"Airplane",boat:"Boat",train:"Train",bird:"Bird",cat:"Cat",dog:"Dog",horse:"Horse",sheep:"Sheep",cow:"Cow",elephant:"Elephant",bear:"Bear",zebra:"Zebra",giraffe:"Giraffe",contact:"Contact","motion-sensor":"Motion sensor",smoke:"Smoke",flood:"Water leak",gas:"Gas","carbon-monoxide":"Carbon monoxide",vibration:"Vibration",tamper:"Tamper",presence:"Presence","enum-sensor":"Sensor state","device-event":"Device event",lock:"Lock",switch:"Switch",siren:"Siren",button:"Button",doorbell:"Doorbell","package-delivered":"Package delivered","package-picked-up":"Package picked up","audio-speech":"Speech","audio-music":"Music","audio-dog":"Dog","audio-doorbell":"Doorbell","audio-siren":"Siren","audio-alarm":"Alarm"}}},3578,[]);
16000
- __d(function(e,i,a,t,o,n,r){o.exports={devices:{editDevice:"Modifica dispositivo",originalName:"Nome originale",customName:"Nome personalizzato",customNamePlaceholder:"Lascia vuoto per usare l'originale",icon:"Icona",typeLight:"Luce",typeSwitch:"Interruttore",typeCover:"Tapparella",typeLock:"Serratura",typeAlarm:"Allarme",typeButton:"Pulsante",typeSelect:"Selezione",typeSiren:"Sirena",typeSensor:"Sensore",typeEntry:"Ingresso",typeMediaPlayer:"Media Player",typeScript:"Script",run:"Esegui",sourceHA:"Home Assistant",sourceScrypted:"Scrypted",off:"Off",on:"On",mute:"Muto",unmute:"Audio",stop:"Stop",locked:"Chiusa",unlocked:"Aperta",open:"Aperta",closed:"Chiusa",disarmed:"Disinserito",disarm:"Disinserisci"},common:{error:"Errore",save:"Salva",cancel:"Annulla",loading:"Caricamento...",comingSoon:"In arrivo",back:"Indietro",fullscreen:"Schermo intero",exitFullscreen:"Esci da schermo intero",reset:"Reimposta",selectAll:"Seleziona tutte",deselectAll:"Deseleziona tutte",delete:"Elimina",retry:"Riprova"},grids:{newGrid:"Nuova griglia",deleteConfirm:"Eliminare questa griglia?",noGrids:"Nessuna griglia. Creane una per disporre le telecamere in vista mosaico.",createGrid:"Crea griglia",cameras:"telecamere",notFound:"Griglia non trovata.",noCameras:"Nessuna telecamera in questa griglia. Modifica per aggiungerne.",edit:"Modifica",addCamera:"Aggiungi telecamera",presets:"Preset",auto:"Auto",manual:"Manuale",gridName:"Nome griglia",view:"Visualizza",addCameraHint:"Aggiungi almeno una telecamera dal pulsante sopra.",allCamerasAdded:"Tutte le telecamere sono gi\xe0 in griglia",cameraUnavailable:"Telecamera non disponibile",camerasInGrid:"Telecamere nella griglia",addAll:"Aggiungi tutte",addCameras:"Aggiungi Telecamere",backToGrid:"Torna alla Griglia",timelineNotSupported:"Timeline non supportata"},nav:{cameras:"Telecamere",grids:"Griglie",events:"Eventi",videoclips:"Videoclip",list:"Lista",settings:"Impostazioni"},cameras:{addCamera:"Aggiungi telecamera",pipActive:"PiP attivo",reorderEnable:"Riordina",reorderDisable:"Sblocca",live:"Live",noCameras:"Nessuna telecamera configurata",noIntegrations:"Nessuna integrazione configurata. Aggiungi un sistema per iniziare.",createSystem:"Crea sistema",importFrom:"Importa telecamere da",importSuccess:"Importazione completata",importCount:"{{count}} telecamere importate",selectCamerasToImport:"Seleziona telecamere da importare",selectAll:"Seleziona tutte",deselectAll:"Deseleziona tutte",importSelected:"Importa {{count}} selezionate",noCamerasFound:"Nessuna telecamera trovata",play:"\u25b6 Riproduci",paused:"In pausa",noDataForDate:"Nessun dato per questa data",recordingNotAvailable:"Registrazione non disponibile",noEventsReel:"Nessun evento recente",settings:"Impostazioni",highlightMotion:"Evidenza movimento",highlightOnMotion:"Evidenzia al movimento",highlightAudio:"Evidenza audio",audioMode:"Modalit\xe0",audioModeOff:"Off",audioModeSensor:"Sensore",audioModeLevel:"Livello",audioPreset:"Preset audio",audioPresetCustom:"Personalizzato",audioPresetCrying:"Pianto / neonato",audioPresetAlarm:"Allarme / sirena",audioPresetDog:"Abbaio cane",audioPresetDoorbell:"Campanello / bussata",audioPresetGlass:"Rottura vetro",audioWindow:"Finestra (s)",audioThreshold:"Soglia (dB)",audioHitPercentage:"Percentuale (%)",audioHoldSeconds:"Mantenimento (s)",highlightDetection:"Evidenza rilevamento oggetti",highlightOnDetection:"Evidenzia al rilevamento",detectionClasses:"Classi",holdSeconds:"Mantenimento (s)",rtspNotSupportedWeb:"Gli stream RTSP non sono supportati sul web. Usa l'app mobile.",liveDetections:"Detections live",filterTimeline:"Filtra timeline",filterClasses:"Filtra classi...",filterBySeverity:"Filtra per severit\xe0",severityAlert:"Allarme",severityDetection:"Rilevamento",statusPosition:"Posizione indicatori di stato",today:"Oggi",yesterday:"Ieri",timeline:"Timeline",timelineEventsClusterEvents:"Eventi",selectDate:"Seleziona una data",videoclipsNotSupported:"Videoclip non supportati per questa telecamera",noVideoclipsForDate:"Nessun videoclip per questa data",endOfList:"Fine elenco",backToLive:"Torna al live",goLive:"Vai al live",loadingClip:"Caricamento clip...",clusterDetailShowBbox:"Mostra bounding box sull'immagine",clusterDetailOpenVideoclip:"Apri videoclip",clusterDetailLoadingEvents:"Caricamento eventi...",devices:"Dispositivi",noAssociatedDevices:"Nessun dispositivo collegato. Configura in Impostazioni > Telecamere.",timelineData:"Dati timeline",timelineDataHint:"Cosa mostrare sulla timeline.",timelineDataVideoclips:"Videoclip",timelineDataAdvancedNotifier:"Advanced Notifier",timelineDataEvents:"Eventi",timelineEvents:"Eventi timeline",timelineEventsHint:"Quali tipi di eventi mostrare sulla timeline, in base alla severit\xe0.",timelinePresetAll:"Tutti",timelinePresetImportant:"Importanti",timelinePresetCritical:"Critici",timelinePresetCustom:"Personalizzato",statusBlock:"Blocco stato",sensorsBlock:"Blocco sensori",position:"Posizione",indicators:"Indicatori",downloadSnapshot:"Scarica Istantanea",exportDownloadClip:"Scarica Clip",exportRecordingWebOnly:"Esporta registrazione (solo web)",exportSnapshot:"Esporta Istantanea",intercomError:"Errore interfono",multiCam:"Multi-Camera",ptzNotSupported:"PTZ non supportato",ptzSelectPreset:"Seleziona Preset PTZ",snapshotFailed:"Istantanea fallita"},events:{loading:"Caricamento eventi...",filterByLabel:"Filtra per etichetta",filterByLabelPlaceholder:"es. person, doorbell",filterByCamera:"Filtra per telecamera",date:"Data",detectionTypes:"Tipi di rilevamento",source:"Sorgente",cameras:"Telecamere",groupingRange:"Raggruppamento",groupingPresetMinutes:"{{m}} min",groupingCustom:"Personalizzato",groupingCustomMinutes:"Minuti",groupingCustomApply:"Applica",today:"Oggi",noCamerasFromConfig:"Telecamere caricate dalla config EventsApp",all:"Tutti",typesCount:"{{count}} tipi",camerasCount:"{{count}} telecamere",cols:"col",sourceAuto:"Auto",sourceNVR:"NVR",sourceFrigate:"Frigate",sourceVideoClips:"API VideoClips",sourceRawDetection:"Raw",sourceAdvancedNotifier:"Advanced Notifier",detectionPerson:"Persona",detectionVehicle:"Veicolo",detectionAnimal:"Animale",detectionAudio:"Audio",detectionFace:"Volto",detectionPlate:"Targa",detectionPackage:"Pacco",detectionDoorbell:"Campanello",detectionSensor:"Sensore",detectionMotion:"Motion",detectionRules:"Regole",noScryptedIntegration:"Aggiungi un'integrazione Scrypted in Impostazioni per vedere gli eventi.",frigateNoEvents:"Gli eventi sono disponibili solo per Scrypted. Seleziona un'istanza Scrypted in Impostazioni.",noSource:"Aggiungi un'integrazione Scrypted o Frigate in Impostazioni, poi selezionala come sorgente per Eventi e Videoclip.",loadError:"Errore nel caricamento degli eventi",noEvents:"Nessun evento per questa data. Prova a cambiare data o filtri.",clearCacheTitle:"Svuota cache",clearCacheMessage:"Svuotare tutti i dati in cache di eventi e videoclip? Verr\xe0 effettuato un nuovo caricamento al prossimo accesso.",clearCacheConfirm:"Svuota",columnsPerRow:"Colonne per riga",onlyWithClips:"Solo con clip",relatedClip:"Clip Correlata"},videoclips:{loading:"Caricamento videoclip...",noCamerasFromConfig:"Telecamere caricate dalla config",noScryptedIntegration:"Aggiungi un'integrazione Scrypted in Impostazioni per vedere i videoclip.",noFrigateIntegration:"Seleziona un'integrazione Frigate in Impostazioni per vedere i videoclip.",noSource:"Aggiungi un'integrazione Scrypted o Frigate in Impostazioni, poi selezionala come sorgente per Eventi e Videoclip.",loadError:"Errore nel caricamento dei videoclip",noVideoclips:"Nessun videoclip per questa data. Prova a cambiare data o filtri.",openVideoclip:"Apri videoclip",clearCacheTitle:"Svuota cache",clearCacheMessage:"Svuotare tutti i dati in cache di eventi e videoclip? Verr\xe0 effettuato un nuovo caricamento al prossimo accesso.",clearCacheConfirm:"Svuota"},settings:{integrations:"Integrazioni",camstackProxy:"CamStack Proxy",scrypted:"Scrypted",frigate:"Frigate",rtsp:"RTSP",homeAssistant:"Home Assistant",name:"Nome",baseUrl:"URL base",urlLocal:"URL locale",urlPublic:"URL pubblico",username:"Username",password:"Password",token:"Token (opzionale)",frigateTokenHint:"Token (opzionale): JWT dal browser",tokenRequired:"Token",testConnection:"Test connessione",testLocal:"Test Local",testPublic:"Test Public",testMqtt:"Test MQTT",connectionOk:"Connessione riuscita",connectionError:"Connessione fallita",scryptedCredentialsPromptTitle:"Accesso Scrypted",scryptedCredentialsPromptSubtitle:"Inserisci username e password Scrypted per connettere.",scryptedCredentialsPromptSkip:"Salta per ora",usernamePlaceholder:"admin",save:"Salva",tabStream:"Stream e riproduzione",tabGeneral:"Generale",data:"Dati",clearCacheEventsClips:"Svuota cache eventi e videoclip",eventsClipsSourceHint:"Sorgente per le schede Eventi e Videoclip.",hubReelTitle:"Hub & Reel",reelIntegrationsHint:"Scegli quali integrazioni usare per il reel.",reelScryptedSourceHint:"Con Scrypted: sorgente eventi per il reel.",eventsClipsAuto:"Auto",eventsClipsNoInstance:"Aggiungi prima un'integrazione Scrypted o Frigate.",exportBackup:"Esporta backup",exportError:"Esportazione fallita",importBackup:"Importa backup",importConfirm:"Questo sostituir\xe0 tutte le telecamere, integrazioni e impostazioni con i dati del backup. Continuare?",importSuccess:"Backup ripristinato con successo",importError:"Importazione fallita",uiPrototypes:"Prototipi UI",uiPrototypesHint:"Esplora design sperimentali della timeline",versions:"Versioni",appVersion:"App",nativeVersion:"Nativa",updateNow:"Aggiorna ora",updateError:"Aggiornamento fallito",updateAvailableTitle:"Aggiornamento disponibile",updateAvailableMessage:"Una nuova versione di CamStack \xe8 stata scaricata ed \xe8 pronta per l'installazione. L'app verr\xe0 riavviata per applicare l'aggiornamento.",updateInstall:"Installa e riavvia",updateLater:"Pi\xf9 tardi",tabIntegrations:"Integrazioni",tabCameras:"Telecamere",theme:"Tema",themeSystem:"Sistema",themeLight:"Chiaro",themeDark:"Scuro",language:"Lingua",languageSystem:"Sistema",languageEn:"English",languageIt:"Italiano",timelineMode:"Modalit\xe0 timeline",timelineModeClassic:"Classica",timelineModeTheater:"Theater",timeline:"Timeline",timelineVisible:"Mostra timeline rilevamenti",timelineVisibleDescription:"Visualizza il pannello della timeline nella vista telecamera.",clusterSize:"Dimensione cluster",snapshotInterval:"Intervallo aggiornamento snapshot",clusterSizeXS:"Molto piccola",clusterSizeS:"Piccola",clusterSizeM:"Normale",clusterSizeL:"Grande",clusterSizeXL:"Molto grande",highlightAppearance:"Aspetto evidenze",highlightAppearanceHint:"Colore e spessore del bordo per evidenze movimento, audio e rilevamento sugli stream delle telecamere.",highlightMotion:"Movimento",highlightAudio:"Audio",highlightDetection:"Rilevamento",highlightColor:"Colore",highlightThickness:"Spessore",selectSection:"Seleziona sezione",addSystem:"Aggiungi sistema",selectPlatform:"Seleziona piattaforma",deleteInstance:"Elimina istanza",deleteInstanceConfirm:"Vuoi eliminare questa istanza?",delete:"Elimina",mqttEvents:"MQTT - Eventi in tempo reale",mqttBrokerUrl:"URL broker MQTT",mqttUsername:"Username MQTT",mqttPassword:"Password MQTT",mqttTopicPrefix:"Prefisso topic (default: frigate)",mqttOptional:"Opzionale",scryptedAddressAlreadyUsed:"Questo indirizzo Scrypted \xe8 gi\xe0 configurato. \xc8 consentita una sola istanza per indirizzo.",scryptedAdvancedNotifierRequired:"Il plugin Advanced Notifier \xe8 richiesto per la connessione.",scryptedCorsTitle:"Configurazione CORS richiesta (Web)",scryptedCorsBody:"In Scrypted, apri le impostazioni del plugin Cloud e aggiungi il tuo dominio ({{domain}}) alla lista CORS Allowed Origins. Senza questa configurazione, il browser bloccher\xe0 le richieste verso il server Scrypted.",scryptedUrlHint:"L'URL locale viene provato per primo (es. in LAN), poi quello pubblico. Ne serve almeno uno.",gridLayout:"Layout griglia",gridLayoutHint:"Opzioni di visualizzazione per la griglia telecamere.",gridColumns:"Colonne griglia",gridColumnsHint:"Numero di telecamere per riga. Auto = 1 su mobile, 4 su tablet.",gridShowName:"Mostra nome telecamera",gridShowState:"Mostra stato (batteria, registrazione, sleep)",reorderCameras:"Riordina telecamere",reorderCamerasHint:"Trascina per riordinare le telecamere",reorderDone:"Fatto",manageCameras:"Gestisci telecamere",manageCamerasHint:"Rimuovi telecamere dall'app.",downloadSnapshot:"Scarica snapshot",snapshotFailed:"Impossibile recuperare lo snapshot",exportSnapshot:"Snapshot",exportDownloadClip:"Scarica clip",exportStartRecording:"Avvia registrazione",exportStopRecording:"Ferma registrazione",exportRecordingWebOnly:"Registrazione disponibile su web",intercomError:"Intercom non disponibile. Verifica le credenziali della telecamera su Scrypted.",deleteCamera:"Rimuovi telecamera",deleteCameraConfirm:"Rimuovere {{name}} dall'app?",streamPlayback:"Stream e riproduzione",playOnOpen:"Avvia stream all'apertura telecamera",playOnOpenHint:"Carica automaticamente lo stream live quando apri una telecamera.",audioOnOpen:"Audio attivo all'apertura",audioOnOpenHint:"Riproduci audio quando apri una telecamera (se supportato).",streamWatchdog:"Stream watchdog",streamWatchdogHint:"Riavvia lo stream quando non arrivano dati (aiuta con connessioni bloccate).",cameraPlayer:"Player telecamera",webViewCameraDetail:"Usa player WebView",webViewCameraDetailHint:"Usa WebView per le telecamere Scrypted (primo frame pi\xf9 veloce, pi\xf9 stabile). PiP, fullscreen e intercom funzionano. Default: player nativo.",streamQuality:"Qualit\xe0 stream",streamQualitySingle:"Qualit\xe0 singola telecamera",streamQualityGrid:"Qualit\xe0 griglia",qualityAuto:"Auto",qualityHigh:"High",qualityMedium:"Mid",qualityLow:"Sub",auto:"Auto",associatedDevices:"Dispositivi associati",associatedDevicesHint:"Aggiungi attuatori (luci, interruttori, tapparelle, ecc.) per controllarli dalla vista telecamera.",linkedDevices:"Collegati",reorderHint:"Usa le frecce per riordinare",addDevice:"Aggiungi dispositivo",noEligibleDevices:"Nessun Scrypted o Home Assistant configurato. Aggiungi prima un'integrazione.",configureDevices:"Configura dispositivi",cameraSettingsHint:"Scegli una telecamera per configurarne le opzioni.",noCamerasConfigured:"Nessuna telecamera configurata.",searchDevices:"Cerca dispositivi...",source:"Sorgente",type:"Tipo",all:"Tutti",noMatchingDevices:"Nessun dispositivo corrisponde ai filtri.",frigateStream:"Stream Frigate",frigateStreamSourceHint:"Sorgente stream: WebRTC (default), RTSP o MJPEG.",frigateStreamMapping:"Mappatura stream (nomi go2rtc da config)",frigateStreamMappingHint:"Seleziona dagli stream go2rtc disponibili. Ordine: High, Mid, Sub.",frigateSelectStream:"Seleziona stream",frigateAddStream:"Aggiungi stream",frigateInfo:"Info telecamera",frigateShowConfig:"Mostra config",frigateShowGo2rtc:"Mostra go2rtc",frigateMissingConfig:"Mancano baseUrl o cameraName nella config della telecamera.",tabLogs:"Log",logsCount:"{{count}} voci",logsDownload:"Scarica",logsClear:"Svuota",logsEmpty:"Nessun log. L'output della console apparir\xe0 qui.",logsExportError:"Esportazione fallita",logsExportTitle:"Esporta log",logsClearConfirmTitle:"Svuota log",logsClearConfirmMessage:"Rimuovere tutte le voci di log?",hubAppearanceTitle:"Aspetto",hubAppearanceDesc:"Tema, lingua, timeline e evidenze",hubCamerasTitle:"Telecamere",hubCamerasDesc:"Layout griglia, qualit\xe0 stream e gestione telecamere",hubIntegrationsTitle:"Integrazioni",hubIntegrationsDesc:"Gestisci Scrypted, Frigate e altri sistemi",hubAdvancedTitle:"Avanzato",hubAdvancedDesc:"Backup dati e gestione cache",hubLogsTitle:"Log",hubLogsDesc:"Visualizza ed esporta i log dell'applicazione",hubCacheTitle:"Cache",frigateAutoSnap:"Istantanea Automatica",frigateSegmentNav:"Navigazione Segmenti",frigateShowGo:"Mostra Go2RTC",frigateTimeline:"Timeline",reelCameras:"Telecamere Reel",reelCamerasHint:"Seleziona quali telecamere appaiono nel reel eventi",reelDeselectAll:"Deseleziona Tutto",reelDetectionClasses:"Classi di Rilevamento",reelDetectionClassesHint:"Filtra gli eventi per classe di rilevamento",reelIncludeRuleArtifacts:"Includi Artefatti Regole",reelIncludeRuleArtifactsHint:"Mostra gli eventi basati su regole nel reel",reelRuleArtifacts:"Artefatti Regole",reelSelectAll:"Seleziona Tutto",reelBadgeContent:"Contenuto badge",reelBadgePosition:"Posizione badge",reelBadgeSize:"Dimensione badge",reelBadgeBoth:"Ora + Classe",reelBadgeTime:"Solo ora",reelBadgeClass:"Solo classe",reelBadgeNone:"Nascosto",reelBadgeSmall:"Piccolo",reelBadgeMedium:"Medio",reelBadgeLarge:"Grande"},reel:{filterMotion:"Motion",filterOnlyRules:"Solo rule",filterOnlySensors:"Solo sensori",goToMostRecent:"Vai al pi\xf9 recente"},v2:{common:{connecting:"Connessione\u2026",online:"Online",offline:"Offline",loadError:"Errore di caricamento",create:"Crea"},cameras:{empty:"Nessuna telecamera",statusOnline:" \xb7 online",statusOffline:" \xb7 offline",sleeping:"In standby",unavailable:"Non disponibile",motion:"Movimento",doorbell:"Campanello",doorbellRinging:"Sta suonando",doorbellLastRing:"Suonato {{time}} fa",snapshotLoading:"Caricamento\u2026",manage:"Gestisci telecamere",manageHint:"Trascina per riordinare. Rinomina al volo. Usa lo switch per mostrare o nascondere una telecamera dall\u2019elenco.",reorderHandle:"Trascina per riordinare",appearance:"Aspetto",editList:"Modifica elenco",listOptions:"Opzioni elenco telecamere"},cameraDetail:{fallbackName:"Camera #{{id}}",mute:"Disattiva audio",unmute:"Attiva audio",snapshot:"Istantanea",snapshotFailed:"Impossibile acquisire l'istantanea.",ptz:"Controlli PTZ",talk:"Parla",fullscreen:"Schermo intero",talkFailed:"Impossibile avviare la comunicazione. Verifica l'accesso al microfono.",pip:"Picture in Picture",exitFullscreen:"Esci da schermo intero",devices:"Dispositivi",devicesEmpty:"Nessun dispositivo collegato.",linkedModeAuto:"Collegamento: Auto (posizione)",linkedModeManual:"Collegamento: Manuale",motionBoxes:"Riquadri movimento",close:"Chiudi",deviceOnline:"Online",deviceOffline:"Offline"},grids:{createA11y:"Crea griglia",empty:"Nessuna griglia",emptyHint:"Tocca + per creare la tua prima griglia",countNone:"Nessuna telecamera",countOne:"1 telecamera",countOther:"{{count}} telecamere",defaultName:"Nuova griglia",deleteTitle:"Elimina griglia",deleteConfirm:"Eliminare \"{{name}}\"? L'operazione non \xe8 reversibile.",export:"Esporta",exportAllA11y:"Esporta tutte le griglie",shareA11y:"Condividi griglia",editA11y:"Modifica griglia",deleteA11y:"Elimina griglia",linkCopied:"Link della griglia copiato negli appunti",layoutAuto:"Auto",layoutColumns:"{{count}} col"},gridView:{editA11y:"Modifica griglia",fallbackTitle:"Griglia",notFound:"Griglia non trovata",emptyGrid:"Questa griglia \xe8 vuota",addCameras:"Aggiungi telecamere",reorderTitle:"Riordina telecamere",reorderA11y:"Riordina telecamere",reorderDoneA11y:"Fine riordino",allHidden:"Tutte le telecamere sono nascoste. Usa la modalit\xe0 riordino per mostrarne alcune.",dragA11y:"Trascina per riordinare",hideA11y:"Nascondi dalla griglia",showA11y:"Mostra nella griglia",removeA11y:"Rimuovi dalla griglia",adhocTitle:"Griglia rapida"},gridBuilder:{title:"Modifica griglia",nameLabel:"Nome",namePlaceholder:"Nome griglia",camerasSelected:"Telecamere ({{count}} selezionate)",optionsTitle:"Opzioni",showName:"Mostra nome telecamera",export:"Esporta griglia",orderSection:"Nella griglia",orderHint:"Trascina per riordinare",emptyOrder:"Nessuna telecamera \u2014 aggiungine qui sotto.",addSection:"Aggiungi telecamere",removeA11y:"Rimuovi dalla griglia",addA11y:"Aggiungi alla griglia",highlightTitle:"Evidenziazione",highlightMotion:"Su movimento",highlightAudio:"Su audio",highlightAudioOff:"Off",highlightAudioSensor:"Presenza",highlightAudioLevel:"Livello",highlightThreshold:"Soglia",highlightHold:"Mantieni",highlightDetection:"Su rilevamento",clusterLabel:"Etichetta cluster",clusterLabelIcon:"Icona",clusterLabelText:"Testo"},gridBar:{back:"Indietro",pauseAll:"Metti tutto in pausa",playAll:"Riproduci tutto",audio:"Audio",quality:"Qualit\xe0 stream",layout:"Layout",highlightMenu:"Evidenziazione e overlay",activeOnly:"Solo attive",share:"Condividi griglia",edit:"Modifica griglia",hide:"Nascondi controlli",show:"Mostra controlli",muteAll:"Silenzia tutte",unmuteAll:"Riattiva audio"},gridMenu:{highlightMaster:"Bordi di evidenziazione"},gridShare:{title:"Condividi \"{{name}}\"",quality:"Qualit\xe0 stream",layout:"Layout",showNames:"Mostra nomi delle camere",activeOnly:"Solo camere attive",boxes:"Bounding box",highlightEnable:"Evidenziazione",audioSummary:"Audio attivo all\u2019apertura per {{count}} camera/e",ttlTitle:"Scadenza del link",ttl_1d:"1 giorno",ttl_7d:"7 giorni",ttl_30d:"30 giorni",ttl_never:"Per sempre",tokenNotice:"Il link include un token di sola visualizzazione limitato a queste camere. Chiunque abbia il link pu\xf2 guardare finch\xe9 non scade o viene revocato.",copyLink:"Copia link",creating:"Creazione link\u2026",copiedExpires:"Link copiato \u2014 scade il {{date}}",copiedNever:"Link copiato \u2014 non scade mai",error:"Impossibile creare il link di condivisione. Controlla la connessione e riprova.",optionAuto:"Auto",optionHigh:"Alta",optionMedium:"Media",optionLow:"Bassa"},gridControls:{play:"Riproduci",pause:"Pausa",mute:"Muto",unmute:"Riattiva audio",quality:"Qualit\xe0",layout:"Layout",layoutAuto:"Auto"},events:{comingSoon:"Eventi \u2014 in arrivo",searchLabel:"Cerca etichetta\u2026",empty:"Nessun evento",today:"Oggi",filteredEmpty:"Nessuna corrispondenza nell'intervallo caricato",loadOlder:"Carica meno recenti",selectPrompt:"Seleziona un evento per vederne i dettagli",filters:"Filtri",all:"Tutte",day:"Giorno",sort:"Ordina",sortTime:"Recenti",sortImportance:"Importanza",cameras:"Telecamere",classes:"Classi",search:"Cerca",searchCameras:"Cerca telecamere\u2026",searchClasses:"Cerca classi\u2026",allCamerasHint:"Nessuna = tutte",allClassesHint:"Nessuna = tutte",done:"Fatto",density:"Densit\xe0",selectHint:"Seleziona un evento",eventKinds:"Tipi di evento",displayOptions:"Aspetto",displayTitle:"Opzioni di visualizzazione"},settings:{themeSystem:"Sistema",themeDark:"Scuro",themeLight:"Chiaro",server:"Server",hubActive:"Hub attivo",changeServer:"Cambia server",signOut:"Esci",network:"Rete",networkNone:"Nessuna rotta ancora rilevata",endpointUnlikely:"Probabilmente non utilizzabile",reprobe:"Ri-rileva rotte",reprobing:"Rilevamento\u2026",appearance:"Aspetto",theme:"Tema",info:"Info",app:"App",version:"Versione",noServer:"Nessun server",footerNote:"CamStack Viewer si connette a un singolo hub camstack. Telecamere, griglie ed eventi sono gestiti dal server.",language:"Lingua",langSystem:"Sistema",gridDefaults:"Impostazioni griglia",showName:"Mostra nome telecamera",showNameHint:"Sovrapponi il nome della telecamera su ogni riquadro",showState:"Mostra stato",showStateHint:"Mostra lo stato online / registrazione su ogni riquadro",columns:"Colonne",cameraOrder:"Ordine telecamere",orderName:"Per nome",orderCustom:"Personalizzato",motionHold:"Persistenza evidenziazione movimento",motionHoldHint:"Mantieni accesa l'evidenziazione del movimento su una tile per questo tempo dopo che il movimento si ferma.",motionHoldOff:"Off",streamQuality:"Qualit\xe0 stream",streamDefaults:"Impostazioni stream",playOnOpen:"Riproduci all'apertura",playOnOpenHint:"Avvia lo stream live quando apri una telecamera",audioOnOpen:"Audio all'apertura",audioOnOpenHint:"Attiva l'audio quando apri una telecamera",snapshotInterval:"Aggiornamento snapshot",highlightAppearance:"Aspetto evidenziazione",highlightMotionColor:"Colore movimento",highlightAudioColor:"Colore audio",highlightDetectionColor:"Colore rilevamento",highlightThickness:"Spessore bordo",qualityAuto:"Auto",qualityHigh:"Alta",qualityMid:"Media",qualityLow:"Bassa",secondsValue:"{{count}}s",advanced:"Avanzate",clearCache:"Svuota cache",clearCacheHint:"Libera snapshot e dati in cache (mantiene server e impostazioni)",clearCacheConfirmTitle:"Svuotare la cache?",clearCacheConfirmBody:"Rimuove immagini e dati in cache. Server, accesso e impostazioni vengono mantenuti.",clearCacheDone:"Cache svuotata",exportSettings:"Esporta impostazioni",exportSettingsHint:"Copia le impostazioni in formato JSON",exportSettingsDone:"Impostazioni copiate in JSON",viewLogs:"Visualizza log",viewLogsHint:"Messaggi di log recenti dell'app",logsEmpty:"Nessun log registrato",keepLogs:"Mantieni log",keepLogsHint:"Registra un buffer dei messaggi di log dell'app",debugMode:"Modalit\xe0 debug",debugModeHint:"Log verbosi su live, playback e scrub \u2014 inviati al server",logsClear:"Pulisci",resetSettings:"Ripristina impostazioni",resetSettingsHint:"Ripristina tutti i valori predefiniti",resetConfirmTitle:"Ripristinare le impostazioni?",resetConfirmBody:"Ripristina tutte le impostazioni ai valori predefiniti.",cancel:"Annulla",confirm:"Conferma",timeline:"Timeline ed evidenziazioni",reel:"Sequenza eventi",reelThumbSize:"Dimensione miniature",reelThumbSizeHint:"Dimensione delle miniature nella sequenza eventi recenti.",reelSizeSmall:"Piccola",reelSizeMedium:"Media",reelSizeLarge:"Grande",reelShowLabels:"Mostra etichette",reelShowLabelsHint:"Mostra l'etichetta classe/identit\xe0 sugli elementi della sequenza.",reelLabelStyle:"Visualizzazione classe",reelLabelStyleHint:"Mostra la classe di rilevamento come icona o come testo negli elementi della sequenza.",reelShowImportance:"Mostra importanza",reelShowImportanceHint:"Mostra il badge di importanza sugli elementi della sequenza.",events:"Eventi",eventsPage:"Pagina eventi",minImportance:"Importanza minima",minImportanceHint:"Nascondi gli eventi con punteggio inferiore, nella pagina eventi e nella timeline della telecamera.",minImportanceOff:"Off",tileShowLabels:"Mostra etichette",tileShowLabelsHint:"Mostra le etichette classe / identit\xe0 / audio sulle schede evento.",tileShowImportance:"Mostra importanza",tileShowImportanceHint:"Mostra il badge di importanza sulle schede evento (se valutato).",tileShowCameraName:"Mostra nome telecamera",tileShowCameraNameHint:"Mostra il nome della telecamera nel pi\xe8 di pagina della scheda evento.",tileLabelStyle:"Visualizzazione classe",tileLabelStyleHint:"Mostra la classe di rilevamento come icona o come testo.",tileLabelStyleIcon:"Icona",tileLabelStyleText:"Testo",comingSoon:"Prossimamente",cameras:"Telecamere",manageCameras:"Gestisci telecamere",manageCamerasHint:"Rinomina, nascondi, riordina",pinchExpandsHeight:"Il pizzico ingrandisce la vista",pinchExpandsHeightHint:"Pizzicando per lo zoom il video cresce in altezza (ritaglia i bordi laterali sulle camere 16:9).","timeline.gapPercent":"Gap cluster (%)","timeline.sizePercent":"Dimensione cluster (%)","timeline.indicatorPositionPct":"Posizione indicatore (%)","timeline.showImportance":"Mostra importanza sugli elementi","timeline.showClass":"Mostra classe di rilevamento sugli elementi","timeline.cardWidthPct":"Larghezza card (%)",haptics:"Vibrazione eventi",hapticsEnabled:"Vibra sugli eventi",hapticsEnabledHint:"Brevi vibrazioni per gli eventi chiave sulla telecamera che stai guardando. Solo su dispositivo (iOS/Android).",hapticsMotion:"Movimento",hapticsDetection:"Rilevamento",hapticsPerson:"Persona / riconosciuta"},login:{loginFailed:"Accesso fallito",verifyFailed:"Verifica fallita",serverUrl:"Server URL",username:"Username",password:"Password",showPassword:"Mostra password",hidePassword:"Nascondi password",signIn:"Accedi",signingIn:"Accesso\u2026",twoFactor:"Autenticazione a due fattori",totpHint:"Inserisci il codice a 6 cifre dall'app di autenticazione per accedere come ",verificationCode:"Codice di verifica",verifyAndSignIn:"Verifica e accedi",verifying:"Verifica\u2026",back:"Indietro",or:"oppure",signInWithCamStack:"Accedi con CamStack",hubSignInHint:"Apre la pagina di accesso del tuo hub e collega questa app senza digitare qui la password.",handoffFailed:"Accesso con CamStack non riuscito \u2014 riprova oppure usa nome utente e password",invalidServerUrl:"Inserisci prima un URL server valido (https://\u2026)"},live:{webUnsupported:"La vista live non \xe8 ancora disponibile nella versione web.",connecting:"Connessione allo stream live\u2026",error:"Impossibile caricare lo stream live.",retry:"Riprova",noConnection:"Nessuna connessione al server",failed:"Connessione fallita"},ptz:{title:"PTZ",notAvailable:"I controlli PTZ non sono disponibili per questa telecamera.",zoom:"Zoom",home:"Posizione iniziale",presets:"Preset",noPresets:"Nessun preset salvato."},timeline:{activityTitle:"Attivit\xe0",last24h:"Ultime 24h",loading:"Caricamento attivit\xe0\u2026",noActivity:"Nessuna attivit\xe0 nelle ultime 24 ore.",legendRecording:"Registrato",legendMotion:"Movimento",legendAudio:"Audio"},theater:{back:"Indietro",today:"Oggi",yesterday:"Ieri",selectDate:"Seleziona una data",live:"LIVE",now:"ORA",auto:"Auto",quality:"Qualit\xe0 stream",filterAll:"Tutti",filter_motion:"Movimento",filter_audio:"Audio",goToLive:"Vai al live",noRecording:"Nessuna registrazione",noRecordingHint:"Nessun filmato per questo momento",detailCount:"{{frames}} frame \xb7 {{count}} rilevamenti",detailTracks:"{{tracks}} tracce \xb7 {{count}} rilevamenti",detailEmpty:"Nessuna immagine di dettaglio per questo istante",detailSeek:"Vai a questo momento",zoneHint:"Trascina un rettangolo sul video per filtrare gli eventi per zona",zoneConfirm:"Conferma",zoneCancel:"Annulla"},mediaKind:{crop:"Ritaglio oggetto",thumbnail:"Best shot",faceCrop:"Volto",plateCrop:"Targa",fullFrame:"Frame",fullFrameBoxed:"Riquadrato",keyFrame:"Frame chiave",firstFrame:"Primo",lastFrame:"Ultimo",snapshot:"Istantanea"},tracks:{crop:"Ritaglio",fullFrame:"Frame completo",showBoundingBox:"Mostra bounding box",zones:"Zone",audio:"Audio",reason:"Perch\xe9 rilevante",empty:"Nessuna traccia",recent:"Recenti",searchPlaceholder:"Cerca eventi (es. \"persona in rosso\")",noMatches:"Nessun evento corrispondente",person:"Persona",assignPerson:"Associa a persona",changePerson:"Cambia",notAssigned:"Non associata",assignFaceTitle:"Associa volto",newPersonPlaceholder:"Nome nuova persona\u2026",createAndAssign:"Crea e associa",assignFailed:"Associazione del volto non riuscita",removePerson:"Rimuovi persona",removePersonConfirmTitle:"Rimuovere la persona?",removePersonConfirmBody:"Questo scollega la persona da questo volto. Il volto torna tra quelli non associati e potr\xe0 essere riassociato in seguito.",disassociateFailed:"Rimozione della persona non riuscita",removePersonAll:"Rimuovi da tutti gli eventi",removePersonAllConfirmTitle:"Rimuovere da tutti gli eventi?",removePersonAllConfirmBody:"Questo scollega la persona da OGNI evento. Tutti i volti attualmente riconosciuti come questa persona tornano tra quelli non associati e potranno essere riassociati in seguito. La persona viene mantenuta.",disassociateAllFailed:"Rimozione della persona da tutti gli eventi non riuscita",existingPersons:"Persone",noPersons:"Ancora nessuna persona",metadata:"Metadati",copy:"Copia",copied:"Copiato","meta.trackId":"ID traccia","meta.eventId":"ID evento migliore","meta.deviceId":"ID dispositivo","meta.camera":"Telecamera","meta.className":"Classe","meta.label":"Etichetta","meta.firstSeen":"Prima apparizione","meta.lastSeen":"Ultima apparizione","meta.state":"Stato","meta.importance":"Importanza","meta.confidence":"Confidenza","meta.mediaKeys":"Chiavi media"},accessories:{on:"Acceso",off:"Spento",dimUp:"Pi\xf9 luminoso",dimDown:"Meno luminoso",lock:"Blocca",unlock:"Sblocca",open:"Apri",close:"Chiudi",stop:"Ferma",arm:"Attiva",disarm:"Disattiva",onMotion:"Su movimento",warmer:"Pi\xf9 caldo",cooler:"Pi\xf9 freddo",speedUp:"Pi\xf9 veloce",speedDown:"Pi\xf9 lento",oscillate:"Oscillazione",press:"Premi",play:"Riproduci",pause:"Pausa",previous:"Precedente",next:"Successivo",start:"Avvia",dock:"Rientra",locate:"Localizza",feed:"Eroga",feeding:"Erogazione\u2026",install:"Installa",installing:"Installazione\u2026",upToDate:"Aggiornato",increase:"Aumenta",decrease:"Diminuisci",select:"Seleziona",climateModes:{off:"Spento",heat:"Riscaldamento",cool:"Raffreddamento",auto:"Auto",heat_cool:"Caldo/Freddo",fan_only:"Ventola",dry:"Deumidificazione"}},cameraMenu:{title:"Opzioni vista",boundingBoxes:"Bounding box",streamStats:"Statistiche stream",audioLevel:"Livello audio",densityTitle:"Densit\xe0 timeline",density_compact:"Compatta",density_medium:"Media",density_wide:"Ampia",densityCustom:"Personalizzata",indicatorPosition:"Posizione indicatore",showImportance:"Mostra importanza",showClass:"Mostra classe rilevata",managementTitle:"Gestione"},stats:{title:"Statistiche stream",resolution:"Risoluzione",fps:"FPS",bitrate:"Bitrate",packetLoss:"Pacchetti persi",jitter:"Jitter",codec:"Codec",frames:"Frame (persi/totali)",waiting:"Misurazione\u2026",playbackHint:"Le statistiche WebRTC complete richiedono il player nativo."},exportActions:{title:"Cattura",recordingExport:"Esporta registrazione"},exports:{title:"Esportazioni",empty:"Nessuna esportazione.",settingsHint:"Scarica clip registrate",range:"Intervallo",rangeStart:"Inizio",rangeEnd:"Fine",profile:"Profilo",noFootage:"Nessuna registrazione in questo intervallo.",speed:"Velocit\xe0",timelapse:"Timelapse",cadence:"Un fotogramma ogni",audio:"Audio",includeAudio:"Includi audio",audioUnavailable:"L'audio \xe8 disponibile solo a velocit\xe0 0,5\u20132\xd7.",retention:"Conserva per",life24h:"24 ore",life7d:"7 giorni",life30d:"30 giorni",deleteAfterDownload:"Elimina dopo il download",deleteAfterDownloadHint:"Rimuovi il file una volta scaricato.",creating:"Creazione\u2026",createAction:"Esporta",createFailed:"Impossibile creare l'esportazione.",withAudio:"con audio",variantRegular:"1\xd7",variantAccelerated:"Accelerato {{speed}}\xd7",variantSlow:"Rallentato {{speed}}\xd7",variantTimelapse:"Timelapse",expired:"Scaduto",expiresInDays:"Scade tra {{count}}g",expiresInHours:"Scade tra {{count}}h",expiresInMinutes:"Scade tra {{count}}m",downloadAction:"Scarica",downloadUnavailable:"Download non disponibile.",downloadFailed:"Download non riuscito.",cancelAction:"Annulla",cancelConfirmTitle:"Annullare l'esportazione?",cancelConfirmBody:"Interrompe il rendering ed elimina il file parziale.",deleteAction:"Elimina",deleteConfirmTitle:"Eliminare l'esportazione?",deleteConfirmBody:"Rimuove il file. La voce nella cronologia viene mantenuta.",dismiss:"Chiudi",state:{queued:"In coda",rendering:"Rendering",ready:"Pronto",failed:"Non riuscito",expired:"Scaduto",deleted:"Eliminato"}},streamBar:{play:"Riproduci",pause:"Pausa",mute:"Silenzia",unmute:"Riattiva audio",talkStart:"Inizia a parlare",talkStop:"Smetti di parlare",quality:"Qualit\xe0 stream",menu:"Opzioni vista",snapshot:"Istantanea",pip:"Picture in picture",fullscreen:"Schermo intero",exitFullscreen:"Esci da schermo intero"},playback:{prevFrame:"Frame precedente",nextFrame:"Frame successivo",speed:"Velocit\xe0 riproduzione",audioMuted:"Audio off a \u2260 1\xd7",audioOn:"Audio attivo"},cameraSwitcher:{title:"Cambia videocamera",empty:"Nessuna videocamera disponibile",openGrid:"Apri griglia ({{n}})",selectA11y:"Seleziona {{name}}"},storage:{title:"Archiviazione",usageTitle:"Utilizzo",nodeTotal:"Totale nodo",defaultLocation:"Posizione predefinita",locationFree:"{{free}} liberi",retentionTitle:"Conservazione",pruneAction:"Applica conservazione ora",pruneConfirmTitle:"Applicare la conservazione?",pruneConfirmBody:"Elimina le registrazioni su {{name}} che superano la policy di conservazione.",pruneResult:"Recuperati {{bytes}} ({{buckets}} segmenti).",deleteTitle:"Elimina registrazioni",deleteAction:"Elimina",deleteConfirmTitle:"Eliminare le registrazioni?",deleteConfirmBody:"Elimina definitivamente {{range}} di registrazioni su {{name}}. Operazione irreversibile.",deleteResult:"Recuperati {{bytes}} ({{buckets}} segmenti).",cancel:"Annulla",window24h:"Ultime 24h",window7d:"Ultimi 7 giorni",window30d:"Ultimi 30 giorni",windowAll:"Tutto"},eventsMgmt:{title:"Eventi",footprintTitle:"Ingombro",rowsBytes:"{{rows}} eventi \xb7 {{bytes}}",clusterTotal:"Totale cluster",pruneTitle:"Elimina pi\xf9 vecchi di",pruneHint:"Si applica a tutte le telecamere.",pruneAction:"Elimina",pruneConfirmTitle:"Eliminare gli eventi vecchi?",pruneConfirmBody:"Elimina gli eventi pi\xf9 vecchi di {{range}} su TUTTE le telecamere. Operazione irreversibile.",pruneResult:"Eliminati {{count}} eventi.",deleteTitle:"Elimina eventi telecamera",deleteAction:"Elimina tutti gli eventi di questa telecamera",deleteConfirmTitle:"Eliminare tutti gli eventi?",deleteConfirmBody:"Elimina definitivamente ogni evento di {{name}}. Operazione irreversibile.",deleteResult:"Eliminati {{count}} eventi.",cancel:"Annulla",older24h:"24 ore",older7d:"7 giorni",older30d:"30 giorni"}},prototype:{today:"Oggi",yesterday:"Ieri",now:"ORA",endOfDay:"FINE GIORNATA",loading:"Caricamento...",timeline:"Timeline",events:"Eventi",playClip:"Riproduci clip",goToNow:"ORA",noEvents:"Nessun evento"},eventKind:{motion:"Movimento",audio:"Audio",person:"Persona",vehicle:"Veicolo",animal:"Animale",package:"Pacco",sensor:"Sensore",control:"Controllo",car:"Auto",truck:"Camion",bus:"Autobus",motorcycle:"Motocicletta",bicycle:"Bicicletta",airplane:"Aereo",boat:"Barca",train:"Treno",bird:"Uccello",cat:"Gatto",dog:"Cane",horse:"Cavallo",sheep:"Pecora",cow:"Mucca",elephant:"Elefante",bear:"Orso",zebra:"Zebra",giraffe:"Giraffa",contact:"Contatto","motion-sensor":"Sensore movimento",smoke:"Fumo",flood:"Allagamento",gas:"Gas","carbon-monoxide":"Monossido di carbonio",vibration:"Vibrazione",tamper:"Manomissione",presence:"Presenza","enum-sensor":"Stato sensore","device-event":"Evento dispositivo",lock:"Serratura",switch:"Interruttore",siren:"Sirena",button:"Pulsante",doorbell:"Campanello","package-delivered":"Pacco consegnato","package-picked-up":"Pacco ritirato","audio-speech":"Voce","audio-music":"Musica","audio-dog":"Cane","audio-doorbell":"Campanello","audio-siren":"Sirena","audio-alarm":"Allarme"}}},3579,[]);
16001
- __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.RootProviders=function(v){const _=(0,t.c)(4),{children:f}=v;let y,P,S;_[0]===Symbol.for("react.memo_cache_sentinel")?(y={flex:1},_[0]=y):y=_[0];_[1]===Symbol.for("react.memo_cache_sentinel")?(P=(0,j.jsx)(s.ThemedStatusBar,{}),_[1]=P):P=_[1];_[2]!==f?(S=(0,j.jsx)(n.GestureHandlerRootView,{style:y,children:(0,j.jsx)(c.SafeAreaProvider,{initialMetrics:c.initialWindowMetrics,children:(0,j.jsx)(o.QueryClientProvider,{client:x,children:(0,j.jsxs)(l.ThemeProvider,{children:[P,(0,j.jsx)(h.ServerProvider,{children:(0,j.jsx)(u.LoggerBridge,{children:f})})]})})})}),_[2]=f,_[3]=S):S=_[3];return S};var t=r(d[0]);r(d[1]);var n=r(d[2]),c=r(d[3]),o=r(d[4]),l=r(d[5]),s=r(d[6]),h=r(d[7]),u=r(d[8]),v=r(d[9]),j=r(d[10]);const x=(0,v.createQueryClient)()},3580,[15,17,3242,466,3081,2587,3581,3144,3582,3149,10]);
15999
+ __d(function(e,t,a,o,i,n,r){i.exports={devices:{editDevice:"Edit device",originalName:"Original name",customName:"Custom name",customNamePlaceholder:"Leave empty to use original",icon:"Icon",typeLight:"Light",typeSwitch:"Switch",typeCover:"Cover",typeLock:"Lock",typeAlarm:"Alarm",typeButton:"Button",typeSelect:"Select",typeSiren:"Siren",typeSensor:"Sensor",typeEntry:"Entry",typeMediaPlayer:"Media Player",typeScript:"Script",run:"Run",sourceHA:"Home Assistant",sourceScrypted:"Scrypted",off:"Off",on:"On",mute:"Mute",unmute:"Unmute",stop:"Stop",locked:"Locked",unlocked:"Unlocked",open:"Open",closed:"Closed",disarmed:"Disarmed",disarm:"Disarm"},common:{error:"Error",save:"Save",cancel:"Cancel",loading:"Loading...",comingSoon:"Coming soon",back:"Back",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen",reset:"Reset",selectAll:"Select all",deselectAll:"Deselect all",delete:"Delete",retry:"Retry"},grids:{newGrid:"New grid",deleteConfirm:"Delete this grid?",noGrids:"No grids yet. Create one to arrange cameras in a mosaic view.",createGrid:"Create grid",cameras:"cameras",notFound:"Grid not found.",noCameras:"No cameras in this grid. Edit the grid to add some.",edit:"Edit",addCamera:"Add camera",presets:"Presets",auto:"Auto",manual:"Manual",gridName:"Grid name",view:"View",addCameraHint:"Add at least one camera from the button above.",allCamerasAdded:"All cameras already in grid",cameraUnavailable:"Camera unavailable",camerasInGrid:"Cameras in grid",addAll:"Add all",addCameras:"Add Cameras",backToGrid:"Back to Grid",timelineNotSupported:"Timeline not supported"},nav:{cameras:"Cameras",grids:"Grids",events:"Events",videoclips:"Videoclips",list:"List",settings:"Settings"},cameras:{addCamera:"Add camera",pipActive:"PiP active",reorderEnable:"Reorder",reorderDisable:"Unlock",live:"Live",noCameras:"No cameras configured",noIntegrations:"No integrations configured. Add a system to get started.",createSystem:"Create system",importFrom:"Import cameras from",importSuccess:"Import complete",importCount:"{{count}} cameras imported",selectCamerasToImport:"Select cameras to import",selectAll:"Select all",deselectAll:"Deselect all",importSelected:"Import {{count}} selected",noCamerasFound:"No cameras found",play:"\u25b6 Play",paused:"Paused",noDataForDate:"No data for this date",recordingNotAvailable:"Recording not available",noEventsReel:"No recent events",settings:"Settings",highlightMotion:"Motion Highlight",highlightOnMotion:"Highlight on motion",highlightAudio:"Audio Highlight",audioMode:"Mode",audioModeOff:"Off",audioModeSensor:"Sensor",audioModeLevel:"Level",audioPreset:"Audio Preset",audioPresetCustom:"Custom",audioPresetCrying:"Crying / baby",audioPresetAlarm:"Alarm / siren",audioPresetDog:"Dog barking",audioPresetDoorbell:"Doorbell / knock",audioPresetGlass:"Glass break",audioWindow:"Window (s)",audioThreshold:"Threshold (dB)",audioHitPercentage:"Hit (%)",audioHoldSeconds:"Hold (s)",highlightDetection:"Object Detection Highlight",highlightOnDetection:"Highlight on detection",detectionClasses:"Classes",holdSeconds:"Hold (s)",rtspNotSupportedWeb:"RTSP streams are not supported on web. Use the mobile app.",liveDetections:"Live detections",filterTimeline:"Filter timeline",filterClasses:"Filter classes...",filterBySeverity:"Filter by severity",severityAlert:"Alert",severityDetection:"Detection",statusPosition:"Status Indicators Position",today:"Today",yesterday:"Yesterday",timeline:"Timeline",timelineEventsClusterEvents:"Events",selectDate:"Select a date",videoclipsNotSupported:"Videoclips not supported for this camera",noVideoclipsForDate:"No videoclips for this date",endOfList:"End of list",backToLive:"Back to live",goLive:"Go live",loadingClip:"Loading clip...",clusterDetailShowBbox:"Show bounding box on image",clusterDetailOpenVideoclip:"Open videoclip",clusterDetailLoadingEvents:"Loading events...",devices:"Devices",noAssociatedDevices:"No devices linked. Configure in Settings > Cameras.",timelineData:"Timeline data",timelineDataHint:"What to show on the timeline.",timelineDataVideoclips:"Videoclips",timelineDataAdvancedNotifier:"Advanced Notifier",timelineDataEvents:"Events",timelineEvents:"Timeline events",timelineEventsHint:"Which event types to show on the timeline, by severity.",timelinePresetAll:"All",timelinePresetImportant:"Important",timelinePresetCritical:"Critical",timelinePresetCustom:"Custom",statusBlock:"Status Block",sensorsBlock:"Sensors Block",position:"Position",indicators:"Indicators",downloadSnapshot:"Download Snapshot",exportDownloadClip:"Download Clip",exportRecordingWebOnly:"Recording export (web only)",exportSnapshot:"Export Snapshot",intercomError:"Intercom error",multiCam:"Multi-Camera",ptzNotSupported:"PTZ not supported",ptzSelectPreset:"Select PTZ Preset",snapshotFailed:"Snapshot failed"},events:{loading:"Loading events...",filterByLabel:"Filter by label",filterByLabelPlaceholder:"e.g. person, doorbell",filterByCamera:"Filter by camera",date:"Date",detectionTypes:"Detection types",source:"Source",cameras:"Cameras",groupingRange:"Grouping",groupingPresetMinutes:"{{m}} min",groupingCustom:"Custom",groupingCustomMinutes:"Minutes",groupingCustomApply:"Apply",today:"Today",noCamerasFromConfig:"Cameras loaded from EventsApp config",all:"All",typesCount:"{{count}} types",camerasCount:"{{count}} cameras",cols:"cols",sourceAuto:"Auto",sourceNVR:"NVR",sourceFrigate:"Frigate",sourceVideoClips:"VideoClips API",sourceRawDetection:"Raw",sourceAdvancedNotifier:"Advanced Notifier",detectionPerson:"Person",detectionVehicle:"Vehicle",detectionAnimal:"Animal",detectionAudio:"Audio",detectionFace:"Face",detectionPlate:"Plate",detectionPackage:"Package",detectionDoorbell:"Doorbell",detectionSensor:"Sensor",detectionMotion:"Motion",detectionRules:"Rules",noScryptedIntegration:"Add a Scrypted integration in Settings to view events.",frigateNoEvents:"Events are only available for Scrypted. Select a Scrypted instance in Settings.",noSource:"Add a Scrypted or Frigate integration in Settings, then select it as the Events/Videoclips source.",loadError:"Error loading events",noEvents:"No events for this date. Try changing the date or filters.",clearCacheTitle:"Clear cache",clearCacheMessage:"Clear all cached events and videoclips data? This will force a fresh fetch on next load.",clearCacheConfirm:"Clear",columnsPerRow:"Columns per row",onlyWithClips:"Only with clips",relatedClip:"Related Clip"},videoclips:{loading:"Loading videoclips...",noCamerasFromConfig:"Cameras loaded from config",noScryptedIntegration:"Add a Scrypted integration in Settings to view videoclips.",noFrigateIntegration:"Select a Frigate integration in Settings to view videoclips.",noSource:"Add a Scrypted or Frigate integration in Settings, then select it as the Events/Videoclips source.",loadError:"Error loading videoclips",noVideoclips:"No videoclips for this date. Try changing the date or filters.",openVideoclip:"Open videoclip",clearCacheTitle:"Clear cache",clearCacheMessage:"Clear all cached events and videoclips data? This will force a fresh fetch on next load.",clearCacheConfirm:"Clear"},settings:{integrations:"Integrations",camstackProxy:"CamStack Proxy",scrypted:"Scrypted",frigate:"Frigate",rtsp:"RTSP",homeAssistant:"Home Assistant",name:"Name",baseUrl:"Base URL",urlLocal:"Local URL",urlPublic:"Public URL",username:"Username",password:"Password",token:"Token (optional)",frigateTokenHint:"Token (optional): JWT from browser",tokenRequired:"Token",testConnection:"Test connection",testLocal:"Test Local",testPublic:"Test Public",testMqtt:"Test MQTT",connectionOk:"Connection successful",connectionError:"Connection failed",scryptedCredentialsPromptTitle:"Scrypted login",scryptedCredentialsPromptSubtitle:"Enter your Scrypted username and password to connect.",scryptedCredentialsPromptSkip:"Skip for now",usernamePlaceholder:"admin",save:"Save",tabStream:"Stream & playback",tabGeneral:"General",data:"Data",clearCacheEventsClips:"Clear events & videoclips cache",eventsClipsSourceHint:"Source for Events and Videoclips tabs.",hubReelTitle:"Hub & Reel",reelIntegrationsHint:"Choose which integrations to use for the reel.",reelScryptedSourceHint:"When using Scrypted: event source for reel.",eventsClipsAuto:"Auto",eventsClipsNoInstance:"Add a Scrypted or Frigate integration first.",exportBackup:"Export backup",exportError:"Export failed",importBackup:"Import backup",importConfirm:"This will replace all cameras, integrations and settings with the backup data. Continue?",importSuccess:"Backup restored successfully",importError:"Import failed",uiPrototypes:"UI Prototypes",uiPrototypesHint:"Explore experimental timeline designs",versions:"Versions",appVersion:"App",nativeVersion:"Native",updateNow:"Update now",updateError:"Update failed",updateAvailableTitle:"Update Available",updateAvailableMessage:"A new version of CamStack has been downloaded and is ready to install. The app will restart to apply the update.",updateInstall:"Install & Restart",updateLater:"Later",tabIntegrations:"Integrations",tabCameras:"Camera settings",theme:"Theme",themeSystem:"System",themeLight:"Light",themeDark:"Dark",language:"Language",languageSystem:"System",languageEn:"English",languageIt:"Italiano",timelineMode:"Timeline Mode",timelineModeClassic:"Classic",timelineModeTheater:"Theater",timeline:"Timeline",timelineVisible:"Show detection timeline",timelineVisibleDescription:"Display the detection timeline panel in the camera view.",clusterSize:"Cluster card size",snapshotInterval:"Snapshot refresh interval",clusterSizeXS:"XS",clusterSizeS:"S",clusterSizeM:"M",clusterSizeL:"L",clusterSizeXL:"XL",highlightAppearance:"Highlight appearance",highlightAppearanceHint:"Color and border thickness for motion, audio, and detection highlights on camera streams.",highlightMotion:"Motion",highlightAudio:"Audio",highlightDetection:"Detection",highlightColor:"Color",highlightThickness:"Thickness",selectSection:"Select section",addSystem:"Add system",selectPlatform:"Select platform",deleteInstance:"Delete instance",deleteInstanceConfirm:"Are you sure you want to delete this instance?",delete:"Delete",mqttEvents:"MQTT - Real-time events",mqttBrokerUrl:"MQTT broker URL",mqttUsername:"MQTT username",mqttPassword:"MQTT password",mqttTopicPrefix:"Topic prefix (default: frigate)",mqttOptional:"Optional",scryptedAddressAlreadyUsed:"This Scrypted address is already configured. Only one instance per address is allowed.",scryptedAdvancedNotifierRequired:"The Advanced Notifier plugin is required for the connection.",scryptedCorsTitle:"CORS configuration required (Web)",scryptedCorsBody:"In Scrypted, open the Cloud plugin settings and add your domain ({{domain}}) to the CORS Allowed Origins list. Without this, the browser will block requests to your Scrypted server.",scryptedUrlHint:"Local URL is tried first (e.g. on LAN), then public URL. At least one required.",gridLayout:"Grid layout",gridLayoutHint:"Display options for the cameras grid.",gridColumns:"Grid columns",gridColumnsHint:"Number of cameras per row. Auto = 1 on mobile, 4 on tablet.",gridShowName:"Show camera name",gridShowState:"Show state (battery, recording, sleeping)",reorderCameras:"Reorder cameras",reorderCamerasHint:"Drag to reorder cameras",reorderDone:"Done",manageCameras:"Manage cameras",manageCamerasHint:"Remove cameras from the app.",downloadSnapshot:"Download snapshot",snapshotFailed:"Could not fetch snapshot",exportSnapshot:"Snapshot",exportDownloadClip:"Download clip",exportStartRecording:"Start recording",exportStopRecording:"Stop recording",exportRecordingWebOnly:"Recording available on web",intercomError:"Intercom unavailable. Check camera credentials in Scrypted.",deleteCamera:"Remove camera",deleteCameraConfirm:"Remove {{name}} from the app?",streamPlayback:"Stream & playback",playOnOpen:"Start stream when opening camera",playOnOpenHint:"Automatically load the live stream when you open a camera.",audioOnOpen:"Unmute audio when opening",audioOnOpenHint:"Play audio when opening a camera (if supported).",streamWatchdog:"Stream watchdog",streamWatchdogHint:"Restart stream when no data received (helps with stalled connections).",cameraPlayer:"Camera player",webViewCameraDetail:"Use WebView player",webViewCameraDetailHint:"Use WebView for Scrypted cameras (faster first frame, more stable). PiP, fullscreen and intercom work. Default: native player.",streamQuality:"Stream quality",streamQualitySingle:"Single camera quality",streamQualityGrid:"Grid quality",qualityAuto:"Auto",qualityHigh:"High",qualityMedium:"Mid",qualityLow:"Sub",auto:"Auto",associatedDevices:"Associated devices",associatedDevicesHint:"Add actuators (lights, switches, covers, etc.) to control from the camera view.",linkedDevices:"Linked",reorderHint:"Use arrows to reorder",addDevice:"Add device",noEligibleDevices:"No Scrypted or Home Assistant configured. Add an integration first.",configureDevices:"Configure devices",cameraSettingsHint:"Choose a camera to configure its specific options.",noCamerasConfigured:"No cameras configured.",searchDevices:"Search devices...",source:"Source",type:"Type",all:"All",noMatchingDevices:"No devices match the filters.",frigateStream:"Frigate Stream",frigateStreamSourceHint:"Stream source: WebRTC (default), RTSP, or MJPEG.",frigateStreamMapping:"Stream mapping (go2rtc names from config)",frigateStreamMappingHint:"Select from available go2rtc streams. Order: Main, Sub, Low.",frigateSelectStream:"Select stream",frigateAddStream:"Add stream",frigateInfo:"Camera info",frigateShowConfig:"Show config",frigateShowGo2rtc:"Show go2rtc",frigateMissingConfig:"Missing baseUrl or cameraName in camera config.",tabLogs:"Logs",logsCount:"{{count}} entries",logsDownload:"Download",logsClear:"Clear",logsEmpty:"No logs yet. Console output will appear here.",logsExportError:"Export failed",logsExportTitle:"Export logs",logsClearConfirmTitle:"Clear logs",logsClearConfirmMessage:"Remove all log entries?",hubAppearanceTitle:"Appearance",hubAppearanceDesc:"Theme, language, timeline and highlights",hubCamerasTitle:"Cameras",hubCamerasDesc:"Grid layout, stream quality and camera management",hubIntegrationsTitle:"Integrations",hubIntegrationsDesc:"Manage Scrypted, Frigate and other systems",hubAdvancedTitle:"Advanced",hubAdvancedDesc:"Data backup and cache management",hubLogsTitle:"Logs",hubLogsDesc:"View and export application logs",hubCacheTitle:"Cache",frigateAutoSnap:"Auto Snapshot",frigateSegmentNav:"Segment Navigation",frigateShowGo:"Show Go2RTC",frigateTimeline:"Timeline",reelCameras:"Reel Cameras",reelCamerasHint:"Select which cameras appear in the events reel",reelDeselectAll:"Deselect All",reelDetectionClasses:"Detection Classes",reelDetectionClassesHint:"Filter events by detection class",reelIncludeRuleArtifacts:"Include Rule Artifacts",reelIncludeRuleArtifactsHint:"Show rule-based events in the reel",reelRuleArtifacts:"Rule Artifacts",reelSelectAll:"Select All",reelBadgeContent:"Badge content",reelBadgePosition:"Badge position",reelBadgeSize:"Badge size",reelBadgeBoth:"Time + Class",reelBadgeTime:"Time only",reelBadgeClass:"Class only",reelBadgeNone:"Hidden",reelBadgeSmall:"Small",reelBadgeMedium:"Medium",reelBadgeLarge:"Large"},reel:{filterMotion:"Motion",filterOnlyRules:"Only rules",filterOnlySensors:"Only sensors",goToMostRecent:"Go to most recent"},v2:{common:{connecting:"Connecting\u2026",online:"Online",offline:"Offline",loadError:"Loading error",create:"Create"},cameras:{empty:"No cameras",statusOnline:" \xb7 online",statusOffline:" \xb7 offline",sleeping:"Sleeping",unavailable:"Unavailable",motion:"Motion",doorbell:"Doorbell",doorbellRinging:"Ringing",doorbellLastRing:"Ring {{time}} ago",snapshotLoading:"Loading\u2026",manage:"Manage cameras",manageHint:"Drag to reorder. Rename inline. Toggle to show or hide a camera from the list.",reorderHandle:"Drag to reorder",appearance:"Appearance",editList:"Edit list",listOptions:"Camera list options"},cameraDetail:{fallbackName:"Camera #{{id}}",mute:"Mute",unmute:"Unmute",snapshot:"Snapshot",snapshotFailed:"Could not capture a snapshot.",ptz:"PTZ controls",talk:"Talk",fullscreen:"Fullscreen",talkFailed:"Could not start talk-back. Check microphone access.",pip:"Picture in Picture",exitFullscreen:"Exit fullscreen",devices:"Devices",devicesEmpty:"No connected devices.",linkedModeAuto:"Link: Auto (same location)",linkedModeManual:"Link: Manual",motionBoxes:"Motion boxes",close:"Close",deviceOnline:"Online",deviceOffline:"Offline"},grids:{createA11y:"Create grid",empty:"No grids",emptyHint:"Tap + to create your first grid",countNone:"No cameras",countOne:"1 camera",countOther:"{{count}} cameras",defaultName:"New grid",deleteTitle:"Delete grid",deleteConfirm:"Delete \"{{name}}\"? This cannot be undone.",export:"Export",exportAllA11y:"Export all grids",shareA11y:"Share grid",editA11y:"Edit grid",deleteA11y:"Delete grid",linkCopied:"Grid link copied to clipboard",layoutAuto:"Auto",layoutColumns:"{{count}} cols"},gridView:{editA11y:"Edit grid",fallbackTitle:"Grid",notFound:"Grid not found",emptyGrid:"This grid is empty",addCameras:"Add cameras",reorderTitle:"Reorder cameras",reorderA11y:"Reorder cameras",reorderDoneA11y:"Done reordering",allHidden:"All cameras are hidden. Use reorder mode to show some.",dragA11y:"Drag to reorder",hideA11y:"Hide from grid",showA11y:"Show in grid",removeA11y:"Remove from grid",adhocTitle:"Quick grid"},gridBuilder:{title:"Edit grid",nameLabel:"Name",namePlaceholder:"Grid name",camerasSelected:"Cameras ({{count}} selected)",optionsTitle:"Options",showName:"Show camera name",export:"Export grid",orderSection:"In the grid",orderHint:"Drag to reorder",emptyOrder:"No cameras yet \u2014 add some below.",addSection:"Add cameras",removeA11y:"Remove from grid",addA11y:"Add to grid",highlightTitle:"Highlight",highlightMotion:"On motion",highlightAudio:"On audio",highlightAudioOff:"Off",highlightAudioSensor:"Presence",highlightAudioLevel:"Level",highlightThreshold:"Threshold",highlightHold:"Hold",highlightDetection:"On detection",clusterLabel:"Cluster label",clusterLabelIcon:"Icon",clusterLabelText:"Text"},gridBar:{back:"Back",pauseAll:"Pause all",playAll:"Play all",audio:"Audio",quality:"Stream quality",layout:"Layout",highlightMenu:"Highlight & overlays",activeOnly:"Active only",share:"Share grid",edit:"Edit grid",hide:"Hide controls",show:"Show controls",muteAll:"Mute all",unmuteAll:"Unmute all"},gridMenu:{highlightMaster:"Highlight borders"},gridShare:{title:"Share \"{{name}}\"",quality:"Stream quality",layout:"Layout",showNames:"Show camera names",activeOnly:"Active cameras only",boxes:"Bounding boxes",highlightEnable:"Highlight",audioSummary:"Audio starts on for {{count}} camera(s)",ttlTitle:"Link expires",ttl_1d:"1 day",ttl_7d:"7 days",ttl_30d:"30 days",ttl_never:"Forever",tokenNotice:"The link includes a view-only access token limited to these cameras. Anyone with the link can watch until it expires or is revoked.",copyLink:"Copy link",creating:"Creating link\u2026",copiedExpires:"Link copied \u2014 expires {{date}}",copiedNever:"Link copied \u2014 never expires",error:"Could not create the share link. Check the connection and try again.",optionAuto:"Auto",optionHigh:"High",optionMedium:"Mid",optionLow:"Low"},gridControls:{play:"Play",pause:"Pause",mute:"Mute",unmute:"Unmute",quality:"Quality",layout:"Layout",layoutAuto:"Auto"},events:{comingSoon:"Events \u2014 coming soon",searchLabel:"Search label\u2026",empty:"No events",today:"Today",filteredEmpty:"No matches in the loaded range",loadOlder:"Load older",selectPrompt:"Select an event to see its detail",filters:"Filters",all:"All",day:"Day",sort:"Sort",sortTime:"Newest",sortImportance:"Importance",cameras:"Cameras",classes:"Classes",search:"Search",searchCameras:"Search cameras\u2026",searchClasses:"Search classes\u2026",allCamerasHint:"None = all",allClassesHint:"None = all",done:"Done",density:"Density",selectHint:"Select an event",eventKinds:"Event types",displayOptions:"Display",displayTitle:"Display options"},settings:{themeSystem:"System",themeDark:"Dark",themeLight:"Light",server:"Server",hubActive:"Active hub",changeServer:"Change server",signOut:"Sign out",network:"Network",networkNone:"No routes probed yet",endpointUnlikely:"Unlikely usable",reprobe:"Re-probe routes",reprobing:"Probing\u2026",appearance:"Appearance",theme:"Theme",info:"Info",app:"App",version:"Version",noServer:"No server",footerNote:"CamStack Viewer connects to a single camstack hub. Cameras, grids and events are managed by the server.",language:"Language",langSystem:"System",gridDefaults:"Grid defaults",showName:"Show camera name",showNameHint:"Overlay the camera name on each tile",showState:"Show status badge",showStateHint:"Show online / recording state on each tile",columns:"Columns",cameraOrder:"Camera order",orderName:"By name",orderCustom:"Custom",motionHold:"Motion highlight linger",motionHoldHint:"Keep a tile's motion highlight lit this long after motion stops.",motionHoldOff:"Off",streamQuality:"Stream quality",streamDefaults:"Stream defaults",playOnOpen:"Play on open",playOnOpenHint:"Start the live stream when a camera opens",audioOnOpen:"Audio on open",audioOnOpenHint:"Unmute audio when a camera opens",snapshotInterval:"Snapshot refresh",highlightAppearance:"Highlight appearance",highlightMotionColor:"Motion color",highlightAudioColor:"Audio color",highlightDetectionColor:"Detection color",highlightThickness:"Border thickness",qualityAuto:"Auto",qualityHigh:"High",qualityMid:"Medium",qualityLow:"Low",secondsValue:"{{count}}s",advanced:"Advanced",clearCache:"Clear cache",clearCacheHint:"Free up snapshots and cached data (keeps your server and settings)",clearCacheConfirmTitle:"Clear cache?",clearCacheConfirmBody:"This removes cached images and query data. Your server, sign-in and settings are kept.",clearCacheDone:"Cache cleared",exportSettings:"Export settings",exportSettingsHint:"Copy your settings as JSON",exportSettingsDone:"Settings copied as JSON",viewLogs:"View logs",viewLogsHint:"Recent in-app log messages",logsEmpty:"No logs recorded yet",keepLogs:"Keep logs",keepLogsHint:"Record a rolling buffer of in-app log messages",debugMode:"Debug mode",debugModeHint:"Verbose logs across live, playback and scrub \u2014 sent to the server",logsClear:"Clear",resetSettings:"Reset settings",resetSettingsHint:"Restore all defaults",resetConfirmTitle:"Reset settings?",resetConfirmBody:"This restores all settings to their defaults.",cancel:"Cancel",confirm:"Confirm",timeline:"Timeline & highlights",reel:"Event reel",reelThumbSize:"Reel thumbnail size",reelThumbSizeHint:"Size of the tiles in the Recent events reel.",reelSizeSmall:"Small",reelSizeMedium:"Medium",reelSizeLarge:"Large",reelShowLabels:"Show labels",reelShowLabelsHint:"Show the class/identity label on reel items.",reelLabelStyle:"Class display",reelLabelStyleHint:"Show the detection class as an icon or as text on reel items.",reelShowImportance:"Show importance",reelShowImportanceHint:"Show the importance badge on reel items.",events:"Events",eventsPage:"Events page",minImportance:"Minimum importance",minImportanceHint:"Hide events scored below this across the events page and the camera timeline.",minImportanceOff:"Off",tileShowLabels:"Show labels",tileShowLabelsHint:"Show the class / identity / audio labels on event cards.",tileShowImportance:"Show importance",tileShowImportanceHint:"Show the importance badge on event cards (when scored).",tileShowCameraName:"Show camera name",tileShowCameraNameHint:"Show the camera name in the event card footer.",tileLabelStyle:"Class display",tileLabelStyleHint:"Show the detection class as an icon or as text.",tileLabelStyleIcon:"Icon",tileLabelStyleText:"Text",comingSoon:"Coming soon",cameras:"Cameras",manageCameras:"Manage cameras",manageCamerasHint:"Rename, hide, reorder",pinchExpandsHeight:"Pinch enlarges the view",pinchExpandsHeightHint:"Pinching to zoom also grows the video taller (crops the side edges on 16:9 cameras).","timeline.gapPercent":"Cluster gap (%)","timeline.sizePercent":"Cluster size (%)","timeline.indicatorPositionPct":"Indicator position (%)","timeline.showImportance":"Show importance on items","timeline.showClass":"Show detection class on items","timeline.cardWidthPct":"Card width (%)",haptics:"Event haptics",hapticsEnabled:"Vibrate on events",hapticsEnabledHint:"Small vibration pulses for key events on the camera you're watching. Native only (iOS/Android).",hapticsMotion:"Motion",hapticsDetection:"Detection",hapticsPerson:"Person / recognized"},login:{loginFailed:"Login failed",verifyFailed:"Verification failed",serverUrl:"Server URL",username:"Username",password:"Password",showPassword:"Show password",hidePassword:"Hide password",signIn:"Sign in",signingIn:"Signing in\u2026",twoFactor:"Two-factor authentication",totpHint:"Enter the 6-digit code from your authenticator app to sign in as ",verificationCode:"Verification code",verifyAndSignIn:"Verify and sign in",verifying:"Verifying\u2026",back:"Back",or:"or",signInWithCamStack:"Sign in with CamStack",hubSignInHint:"Opens your hub\u2019s login page and links this app without typing your password here.",handoffFailed:"Sign-in with CamStack failed \u2014 try again or use username and password",invalidServerUrl:"Enter a valid server URL (https://\u2026) first"},live:{webUnsupported:"Live view is not available on the web version yet.",connecting:"Connecting to live stream\u2026",error:"Unable to load the live stream.",retry:"Retry",noConnection:"No connection to the server",failed:"Connection failed"},ptz:{title:"PTZ",notAvailable:"PTZ controls are not available for this camera.",zoom:"Zoom",home:"Home position",presets:"Presets",noPresets:"No presets saved."},timeline:{activityTitle:"Activity",last24h:"Last 24h",loading:"Loading activity\u2026",noActivity:"No activity in the last 24 hours.",legendRecording:"Recorded",legendMotion:"Motion",legendAudio:"Audio"},theater:{back:"Back",today:"Today",yesterday:"Yesterday",selectDate:"Pick a date",live:"LIVE",now:"NOW",auto:"Auto",quality:"Stream quality",filterAll:"All",filter_motion:"Motion",filter_audio:"Audio",goToLive:"Go to live",noRecording:"No recording",noRecordingHint:"No footage at this time",detailCount:"{{frames}} frames \xb7 {{count}} detections",detailTracks:"{{tracks}} tracks \xb7 {{count}} detections",detailEmpty:"No detail images for this moment",detailSeek:"Go to this moment",zoneHint:"Drag a rectangle over the video to filter events by zone",zoneConfirm:"Confirm",zoneCancel:"Cancel"},mediaKind:{crop:"Object crop",thumbnail:"Best shot",faceCrop:"Face",plateCrop:"Plate",fullFrame:"Frame",fullFrameBoxed:"Boxed",keyFrame:"Key frame",firstFrame:"First",lastFrame:"Last",snapshot:"Snapshot"},tracks:{crop:"Crop",fullFrame:"Full frame",zones:"Zones",audio:"Audio",reason:"Why notable",empty:"No tracks",recent:"Recent",searchPlaceholder:"Search events (e.g. \"person in red\")",noMatches:"No matching events",person:"Person",assignPerson:"Assign to person",changePerson:"Change",notAssigned:"Not assigned",assignFaceTitle:"Assign face",newPersonPlaceholder:"New person name\u2026",createAndAssign:"Create & assign",assignFailed:"Couldn't assign the face",removePerson:"Remove person",removePersonConfirmTitle:"Remove person?",removePersonConfirmBody:"This unlinks the person from this face. The face returns to the unassigned buffer and can be reassigned later.",disassociateFailed:"Couldn't remove the person",removePersonAll:"Remove from all events",removePersonAllConfirmTitle:"Remove from all events?",removePersonAllConfirmBody:"This unlinks this person from EVERY event. All faces currently recognized as this person return to the unassigned buffer and can be reassigned later. The person is kept.",disassociateAllFailed:"Couldn't remove the person from all events",existingPersons:"People",noPersons:"No people yet",metadata:"Metadata",copy:"Copy",copied:"Copied","meta.trackId":"Track ID","meta.eventId":"Best event ID","meta.deviceId":"Device ID","meta.camera":"Camera","meta.className":"Class","meta.label":"Label","meta.firstSeen":"First seen","meta.lastSeen":"Last seen","meta.state":"State","meta.importance":"Importance","meta.confidence":"Confidence","meta.mediaKeys":"Media keys"},accessories:{on:"On",off:"Off",dimUp:"Brighter",dimDown:"Dimmer",lock:"Lock",unlock:"Unlock",open:"Open",close:"Close",stop:"Stop",arm:"Arm",disarm:"Disarm",onMotion:"On motion",warmer:"Warmer",cooler:"Cooler",speedUp:"Faster",speedDown:"Slower",oscillate:"Oscillate",press:"Press",play:"Play",pause:"Pause",previous:"Previous",next:"Next",start:"Start",dock:"Dock",locate:"Locate",feed:"Feed",feeding:"Feeding\u2026",install:"Install",installing:"Installing\u2026",upToDate:"Up to date",increase:"Increase",decrease:"Decrease",select:"Select",climateModes:{off:"Off",heat:"Heat",cool:"Cool",auto:"Auto",heat_cool:"Heat/Cool",fan_only:"Fan",dry:"Dry"}},cameraMenu:{title:"View options",boundingBoxes:"Bounding boxes",streamStats:"Stream stats",audioLevel:"Audio level",densityTitle:"Timeline density",density_compact:"Compact",density_medium:"Medium",density_wide:"Wide",densityCustom:"Custom",indicatorPosition:"Indicator position",showImportance:"Show importance",showClass:"Show detection class",managementTitle:"Management"},stats:{title:"Stream stats",resolution:"Resolution",fps:"FPS",bitrate:"Bitrate",packetLoss:"Packet loss",jitter:"Jitter",codec:"Codec",frames:"Frames (dropped/total)",waiting:"Measuring\u2026",playbackHint:"Full WebRTC stats need the native player."},exportActions:{title:"Capture",recordingExport:"Recording export"},exports:{title:"Exports",empty:"No exports yet.",settingsHint:"Download recorded clips",range:"Range",rangeStart:"Start",rangeEnd:"End",profile:"Profile",noFootage:"No footage in this range.",speed:"Speed",timelapse:"Timelapse",cadence:"Frame every",audio:"Audio",includeAudio:"Include audio",audioUnavailable:"Audio is only available at 0.5\u20132\xd7 speed.",retention:"Keep for",life24h:"24 hours",life7d:"7 days",life30d:"30 days",deleteAfterDownload:"Delete after download",deleteAfterDownloadHint:"Remove the file once downloaded.",creating:"Creating\u2026",createAction:"Export",createFailed:"Could not create the export.",withAudio:"with audio",variantRegular:"1\xd7",variantAccelerated:"Accelerated {{speed}}\xd7",variantSlow:"Slow {{speed}}\xd7",variantTimelapse:"Timelapse",expired:"Expired",expiresInDays:"Expires in {{count}}d",expiresInHours:"Expires in {{count}}h",expiresInMinutes:"Expires in {{count}}m",downloadAction:"Download",downloadUnavailable:"Download not available.",downloadFailed:"Download failed.",cancelAction:"Cancel",cancelConfirmTitle:"Cancel export?",cancelConfirmBody:"This stops rendering and discards the partial file.",deleteAction:"Delete",deleteConfirmTitle:"Delete export?",deleteConfirmBody:"This removes the file. The history entry is kept.",dismiss:"Dismiss",state:{queued:"Queued",rendering:"Rendering",ready:"Ready",failed:"Failed",expired:"Expired",deleted:"Deleted"}},streamBar:{play:"Play",pause:"Pause",mute:"Mute",unmute:"Unmute",talkStart:"Start talking",talkStop:"Stop talking",quality:"Stream quality",menu:"View options",snapshot:"Snapshot",pip:"Picture in picture",fullscreen:"Fullscreen",exitFullscreen:"Exit fullscreen"},playback:{prevFrame:"Previous frame",nextFrame:"Next frame",speed:"Playback speed",audioMuted:"Audio off at \u2260 1\xd7",audioOn:"Audio on"},cameraSwitcher:{title:"Switch camera",empty:"No cameras available",openGrid:"Open grid ({{n}})",selectA11y:"Select {{name}}"},storage:{title:"Storage",usageTitle:"Usage",nodeTotal:"Node total",defaultLocation:"Default location",locationFree:"{{free}} free",retentionTitle:"Retention",pruneAction:"Apply retention now",pruneConfirmTitle:"Apply retention?",pruneConfirmBody:"Delete footage on {{name}} that exceeds its retention policy.",pruneResult:"Reclaimed {{bytes}} ({{buckets}} segments).",deleteTitle:"Delete footage",deleteAction:"Delete",deleteConfirmTitle:"Delete footage?",deleteConfirmBody:"Permanently delete {{range}} of footage on {{name}}. This cannot be undone.",deleteResult:"Reclaimed {{bytes}} ({{buckets}} segments).",cancel:"Cancel",window24h:"Last 24h",window7d:"Last 7 days",window30d:"Last 30 days",windowAll:"Everything"},eventsMgmt:{title:"Events",footprintTitle:"Footprint",rowsBytes:"{{rows}} events \xb7 {{bytes}}",clusterTotal:"Cluster total",pruneTitle:"Prune older than",pruneHint:"Applies to all cameras.",pruneAction:"Prune",pruneConfirmTitle:"Prune old events?",pruneConfirmBody:"Delete events older than {{range}} across ALL cameras. This cannot be undone.",pruneResult:"Deleted {{count}} events.",deleteTitle:"Delete camera events",deleteAction:"Delete all events for this camera",deleteConfirmTitle:"Delete all events?",deleteConfirmBody:"Permanently delete every event for {{name}}. This cannot be undone.",deleteResult:"Deleted {{count}} events.",cancel:"Cancel",older24h:"24 hours",older7d:"7 days",older30d:"30 days"}},prototype:{today:"Today",yesterday:"Yesterday",now:"NOW",endOfDay:"END OF DAY",loading:"Loading...",timeline:"Timeline",events:"Events",playClip:"Play clip",goToNow:"NOW",noEvents:"No events"},eventKind:{motion:"Motion",audio:"Audio",person:"Person",vehicle:"Vehicle",animal:"Animal",package:"Package",sensor:"Sensor",control:"Control",car:"Car",truck:"Truck",bus:"Bus",motorcycle:"Motorcycle",bicycle:"Bicycle",airplane:"Airplane",boat:"Boat",train:"Train",bird:"Bird",cat:"Cat",dog:"Dog",horse:"Horse",sheep:"Sheep",cow:"Cow",elephant:"Elephant",bear:"Bear",zebra:"Zebra",giraffe:"Giraffe",contact:"Contact","motion-sensor":"Motion sensor",smoke:"Smoke",flood:"Water leak",gas:"Gas","carbon-monoxide":"Carbon monoxide",vibration:"Vibration",tamper:"Tamper",presence:"Presence","enum-sensor":"Sensor state","device-event":"Device event",lock:"Lock",switch:"Switch",siren:"Siren",button:"Button",doorbell:"Doorbell","package-delivered":"Package delivered","package-picked-up":"Package picked up","audio-speech":"Speech","audio-music":"Music","audio-dog":"Dog","audio-doorbell":"Doorbell","audio-siren":"Siren","audio-alarm":"Alarm"}}},3578,[]);
16000
+ __d(function(e,i,a,t,o,n,r){o.exports={devices:{editDevice:"Modifica dispositivo",originalName:"Nome originale",customName:"Nome personalizzato",customNamePlaceholder:"Lascia vuoto per usare l'originale",icon:"Icona",typeLight:"Luce",typeSwitch:"Interruttore",typeCover:"Tapparella",typeLock:"Serratura",typeAlarm:"Allarme",typeButton:"Pulsante",typeSelect:"Selezione",typeSiren:"Sirena",typeSensor:"Sensore",typeEntry:"Ingresso",typeMediaPlayer:"Media Player",typeScript:"Script",run:"Esegui",sourceHA:"Home Assistant",sourceScrypted:"Scrypted",off:"Off",on:"On",mute:"Muto",unmute:"Audio",stop:"Stop",locked:"Chiusa",unlocked:"Aperta",open:"Aperta",closed:"Chiusa",disarmed:"Disinserito",disarm:"Disinserisci"},common:{error:"Errore",save:"Salva",cancel:"Annulla",loading:"Caricamento...",comingSoon:"In arrivo",back:"Indietro",fullscreen:"Schermo intero",exitFullscreen:"Esci da schermo intero",reset:"Reimposta",selectAll:"Seleziona tutte",deselectAll:"Deseleziona tutte",delete:"Elimina",retry:"Riprova"},grids:{newGrid:"Nuova griglia",deleteConfirm:"Eliminare questa griglia?",noGrids:"Nessuna griglia. Creane una per disporre le telecamere in vista mosaico.",createGrid:"Crea griglia",cameras:"telecamere",notFound:"Griglia non trovata.",noCameras:"Nessuna telecamera in questa griglia. Modifica per aggiungerne.",edit:"Modifica",addCamera:"Aggiungi telecamera",presets:"Preset",auto:"Auto",manual:"Manuale",gridName:"Nome griglia",view:"Visualizza",addCameraHint:"Aggiungi almeno una telecamera dal pulsante sopra.",allCamerasAdded:"Tutte le telecamere sono gi\xe0 in griglia",cameraUnavailable:"Telecamera non disponibile",camerasInGrid:"Telecamere nella griglia",addAll:"Aggiungi tutte",addCameras:"Aggiungi Telecamere",backToGrid:"Torna alla Griglia",timelineNotSupported:"Timeline non supportata"},nav:{cameras:"Telecamere",grids:"Griglie",events:"Eventi",videoclips:"Videoclip",list:"Lista",settings:"Impostazioni"},cameras:{addCamera:"Aggiungi telecamera",pipActive:"PiP attivo",reorderEnable:"Riordina",reorderDisable:"Sblocca",live:"Live",noCameras:"Nessuna telecamera configurata",noIntegrations:"Nessuna integrazione configurata. Aggiungi un sistema per iniziare.",createSystem:"Crea sistema",importFrom:"Importa telecamere da",importSuccess:"Importazione completata",importCount:"{{count}} telecamere importate",selectCamerasToImport:"Seleziona telecamere da importare",selectAll:"Seleziona tutte",deselectAll:"Deseleziona tutte",importSelected:"Importa {{count}} selezionate",noCamerasFound:"Nessuna telecamera trovata",play:"\u25b6 Riproduci",paused:"In pausa",noDataForDate:"Nessun dato per questa data",recordingNotAvailable:"Registrazione non disponibile",noEventsReel:"Nessun evento recente",settings:"Impostazioni",highlightMotion:"Evidenza movimento",highlightOnMotion:"Evidenzia al movimento",highlightAudio:"Evidenza audio",audioMode:"Modalit\xe0",audioModeOff:"Off",audioModeSensor:"Sensore",audioModeLevel:"Livello",audioPreset:"Preset audio",audioPresetCustom:"Personalizzato",audioPresetCrying:"Pianto / neonato",audioPresetAlarm:"Allarme / sirena",audioPresetDog:"Abbaio cane",audioPresetDoorbell:"Campanello / bussata",audioPresetGlass:"Rottura vetro",audioWindow:"Finestra (s)",audioThreshold:"Soglia (dB)",audioHitPercentage:"Percentuale (%)",audioHoldSeconds:"Mantenimento (s)",highlightDetection:"Evidenza rilevamento oggetti",highlightOnDetection:"Evidenzia al rilevamento",detectionClasses:"Classi",holdSeconds:"Mantenimento (s)",rtspNotSupportedWeb:"Gli stream RTSP non sono supportati sul web. Usa l'app mobile.",liveDetections:"Detections live",filterTimeline:"Filtra timeline",filterClasses:"Filtra classi...",filterBySeverity:"Filtra per severit\xe0",severityAlert:"Allarme",severityDetection:"Rilevamento",statusPosition:"Posizione indicatori di stato",today:"Oggi",yesterday:"Ieri",timeline:"Timeline",timelineEventsClusterEvents:"Eventi",selectDate:"Seleziona una data",videoclipsNotSupported:"Videoclip non supportati per questa telecamera",noVideoclipsForDate:"Nessun videoclip per questa data",endOfList:"Fine elenco",backToLive:"Torna al live",goLive:"Vai al live",loadingClip:"Caricamento clip...",clusterDetailShowBbox:"Mostra bounding box sull'immagine",clusterDetailOpenVideoclip:"Apri videoclip",clusterDetailLoadingEvents:"Caricamento eventi...",devices:"Dispositivi",noAssociatedDevices:"Nessun dispositivo collegato. Configura in Impostazioni > Telecamere.",timelineData:"Dati timeline",timelineDataHint:"Cosa mostrare sulla timeline.",timelineDataVideoclips:"Videoclip",timelineDataAdvancedNotifier:"Advanced Notifier",timelineDataEvents:"Eventi",timelineEvents:"Eventi timeline",timelineEventsHint:"Quali tipi di eventi mostrare sulla timeline, in base alla severit\xe0.",timelinePresetAll:"Tutti",timelinePresetImportant:"Importanti",timelinePresetCritical:"Critici",timelinePresetCustom:"Personalizzato",statusBlock:"Blocco stato",sensorsBlock:"Blocco sensori",position:"Posizione",indicators:"Indicatori",downloadSnapshot:"Scarica Istantanea",exportDownloadClip:"Scarica Clip",exportRecordingWebOnly:"Esporta registrazione (solo web)",exportSnapshot:"Esporta Istantanea",intercomError:"Errore interfono",multiCam:"Multi-Camera",ptzNotSupported:"PTZ non supportato",ptzSelectPreset:"Seleziona Preset PTZ",snapshotFailed:"Istantanea fallita"},events:{loading:"Caricamento eventi...",filterByLabel:"Filtra per etichetta",filterByLabelPlaceholder:"es. person, doorbell",filterByCamera:"Filtra per telecamera",date:"Data",detectionTypes:"Tipi di rilevamento",source:"Sorgente",cameras:"Telecamere",groupingRange:"Raggruppamento",groupingPresetMinutes:"{{m}} min",groupingCustom:"Personalizzato",groupingCustomMinutes:"Minuti",groupingCustomApply:"Applica",today:"Oggi",noCamerasFromConfig:"Telecamere caricate dalla config EventsApp",all:"Tutti",typesCount:"{{count}} tipi",camerasCount:"{{count}} telecamere",cols:"col",sourceAuto:"Auto",sourceNVR:"NVR",sourceFrigate:"Frigate",sourceVideoClips:"API VideoClips",sourceRawDetection:"Raw",sourceAdvancedNotifier:"Advanced Notifier",detectionPerson:"Persona",detectionVehicle:"Veicolo",detectionAnimal:"Animale",detectionAudio:"Audio",detectionFace:"Volto",detectionPlate:"Targa",detectionPackage:"Pacco",detectionDoorbell:"Campanello",detectionSensor:"Sensore",detectionMotion:"Motion",detectionRules:"Regole",noScryptedIntegration:"Aggiungi un'integrazione Scrypted in Impostazioni per vedere gli eventi.",frigateNoEvents:"Gli eventi sono disponibili solo per Scrypted. Seleziona un'istanza Scrypted in Impostazioni.",noSource:"Aggiungi un'integrazione Scrypted o Frigate in Impostazioni, poi selezionala come sorgente per Eventi e Videoclip.",loadError:"Errore nel caricamento degli eventi",noEvents:"Nessun evento per questa data. Prova a cambiare data o filtri.",clearCacheTitle:"Svuota cache",clearCacheMessage:"Svuotare tutti i dati in cache di eventi e videoclip? Verr\xe0 effettuato un nuovo caricamento al prossimo accesso.",clearCacheConfirm:"Svuota",columnsPerRow:"Colonne per riga",onlyWithClips:"Solo con clip",relatedClip:"Clip Correlata"},videoclips:{loading:"Caricamento videoclip...",noCamerasFromConfig:"Telecamere caricate dalla config",noScryptedIntegration:"Aggiungi un'integrazione Scrypted in Impostazioni per vedere i videoclip.",noFrigateIntegration:"Seleziona un'integrazione Frigate in Impostazioni per vedere i videoclip.",noSource:"Aggiungi un'integrazione Scrypted o Frigate in Impostazioni, poi selezionala come sorgente per Eventi e Videoclip.",loadError:"Errore nel caricamento dei videoclip",noVideoclips:"Nessun videoclip per questa data. Prova a cambiare data o filtri.",openVideoclip:"Apri videoclip",clearCacheTitle:"Svuota cache",clearCacheMessage:"Svuotare tutti i dati in cache di eventi e videoclip? Verr\xe0 effettuato un nuovo caricamento al prossimo accesso.",clearCacheConfirm:"Svuota"},settings:{integrations:"Integrazioni",camstackProxy:"CamStack Proxy",scrypted:"Scrypted",frigate:"Frigate",rtsp:"RTSP",homeAssistant:"Home Assistant",name:"Nome",baseUrl:"URL base",urlLocal:"URL locale",urlPublic:"URL pubblico",username:"Username",password:"Password",token:"Token (opzionale)",frigateTokenHint:"Token (opzionale): JWT dal browser",tokenRequired:"Token",testConnection:"Test connessione",testLocal:"Test Local",testPublic:"Test Public",testMqtt:"Test MQTT",connectionOk:"Connessione riuscita",connectionError:"Connessione fallita",scryptedCredentialsPromptTitle:"Accesso Scrypted",scryptedCredentialsPromptSubtitle:"Inserisci username e password Scrypted per connettere.",scryptedCredentialsPromptSkip:"Salta per ora",usernamePlaceholder:"admin",save:"Salva",tabStream:"Stream e riproduzione",tabGeneral:"Generale",data:"Dati",clearCacheEventsClips:"Svuota cache eventi e videoclip",eventsClipsSourceHint:"Sorgente per le schede Eventi e Videoclip.",hubReelTitle:"Hub & Reel",reelIntegrationsHint:"Scegli quali integrazioni usare per il reel.",reelScryptedSourceHint:"Con Scrypted: sorgente eventi per il reel.",eventsClipsAuto:"Auto",eventsClipsNoInstance:"Aggiungi prima un'integrazione Scrypted o Frigate.",exportBackup:"Esporta backup",exportError:"Esportazione fallita",importBackup:"Importa backup",importConfirm:"Questo sostituir\xe0 tutte le telecamere, integrazioni e impostazioni con i dati del backup. Continuare?",importSuccess:"Backup ripristinato con successo",importError:"Importazione fallita",uiPrototypes:"Prototipi UI",uiPrototypesHint:"Esplora design sperimentali della timeline",versions:"Versioni",appVersion:"App",nativeVersion:"Nativa",updateNow:"Aggiorna ora",updateError:"Aggiornamento fallito",updateAvailableTitle:"Aggiornamento disponibile",updateAvailableMessage:"Una nuova versione di CamStack \xe8 stata scaricata ed \xe8 pronta per l'installazione. L'app verr\xe0 riavviata per applicare l'aggiornamento.",updateInstall:"Installa e riavvia",updateLater:"Pi\xf9 tardi",tabIntegrations:"Integrazioni",tabCameras:"Telecamere",theme:"Tema",themeSystem:"Sistema",themeLight:"Chiaro",themeDark:"Scuro",language:"Lingua",languageSystem:"Sistema",languageEn:"English",languageIt:"Italiano",timelineMode:"Modalit\xe0 timeline",timelineModeClassic:"Classica",timelineModeTheater:"Theater",timeline:"Timeline",timelineVisible:"Mostra timeline rilevamenti",timelineVisibleDescription:"Visualizza il pannello della timeline nella vista telecamera.",clusterSize:"Dimensione cluster",snapshotInterval:"Intervallo aggiornamento snapshot",clusterSizeXS:"Molto piccola",clusterSizeS:"Piccola",clusterSizeM:"Normale",clusterSizeL:"Grande",clusterSizeXL:"Molto grande",highlightAppearance:"Aspetto evidenze",highlightAppearanceHint:"Colore e spessore del bordo per evidenze movimento, audio e rilevamento sugli stream delle telecamere.",highlightMotion:"Movimento",highlightAudio:"Audio",highlightDetection:"Rilevamento",highlightColor:"Colore",highlightThickness:"Spessore",selectSection:"Seleziona sezione",addSystem:"Aggiungi sistema",selectPlatform:"Seleziona piattaforma",deleteInstance:"Elimina istanza",deleteInstanceConfirm:"Vuoi eliminare questa istanza?",delete:"Elimina",mqttEvents:"MQTT - Eventi in tempo reale",mqttBrokerUrl:"URL broker MQTT",mqttUsername:"Username MQTT",mqttPassword:"Password MQTT",mqttTopicPrefix:"Prefisso topic (default: frigate)",mqttOptional:"Opzionale",scryptedAddressAlreadyUsed:"Questo indirizzo Scrypted \xe8 gi\xe0 configurato. \xc8 consentita una sola istanza per indirizzo.",scryptedAdvancedNotifierRequired:"Il plugin Advanced Notifier \xe8 richiesto per la connessione.",scryptedCorsTitle:"Configurazione CORS richiesta (Web)",scryptedCorsBody:"In Scrypted, apri le impostazioni del plugin Cloud e aggiungi il tuo dominio ({{domain}}) alla lista CORS Allowed Origins. Senza questa configurazione, il browser bloccher\xe0 le richieste verso il server Scrypted.",scryptedUrlHint:"L'URL locale viene provato per primo (es. in LAN), poi quello pubblico. Ne serve almeno uno.",gridLayout:"Layout griglia",gridLayoutHint:"Opzioni di visualizzazione per la griglia telecamere.",gridColumns:"Colonne griglia",gridColumnsHint:"Numero di telecamere per riga. Auto = 1 su mobile, 4 su tablet.",gridShowName:"Mostra nome telecamera",gridShowState:"Mostra stato (batteria, registrazione, sleep)",reorderCameras:"Riordina telecamere",reorderCamerasHint:"Trascina per riordinare le telecamere",reorderDone:"Fatto",manageCameras:"Gestisci telecamere",manageCamerasHint:"Rimuovi telecamere dall'app.",downloadSnapshot:"Scarica snapshot",snapshotFailed:"Impossibile recuperare lo snapshot",exportSnapshot:"Snapshot",exportDownloadClip:"Scarica clip",exportStartRecording:"Avvia registrazione",exportStopRecording:"Ferma registrazione",exportRecordingWebOnly:"Registrazione disponibile su web",intercomError:"Intercom non disponibile. Verifica le credenziali della telecamera su Scrypted.",deleteCamera:"Rimuovi telecamera",deleteCameraConfirm:"Rimuovere {{name}} dall'app?",streamPlayback:"Stream e riproduzione",playOnOpen:"Avvia stream all'apertura telecamera",playOnOpenHint:"Carica automaticamente lo stream live quando apri una telecamera.",audioOnOpen:"Audio attivo all'apertura",audioOnOpenHint:"Riproduci audio quando apri una telecamera (se supportato).",streamWatchdog:"Stream watchdog",streamWatchdogHint:"Riavvia lo stream quando non arrivano dati (aiuta con connessioni bloccate).",cameraPlayer:"Player telecamera",webViewCameraDetail:"Usa player WebView",webViewCameraDetailHint:"Usa WebView per le telecamere Scrypted (primo frame pi\xf9 veloce, pi\xf9 stabile). PiP, fullscreen e intercom funzionano. Default: player nativo.",streamQuality:"Qualit\xe0 stream",streamQualitySingle:"Qualit\xe0 singola telecamera",streamQualityGrid:"Qualit\xe0 griglia",qualityAuto:"Auto",qualityHigh:"High",qualityMedium:"Mid",qualityLow:"Sub",auto:"Auto",associatedDevices:"Dispositivi associati",associatedDevicesHint:"Aggiungi attuatori (luci, interruttori, tapparelle, ecc.) per controllarli dalla vista telecamera.",linkedDevices:"Collegati",reorderHint:"Usa le frecce per riordinare",addDevice:"Aggiungi dispositivo",noEligibleDevices:"Nessun Scrypted o Home Assistant configurato. Aggiungi prima un'integrazione.",configureDevices:"Configura dispositivi",cameraSettingsHint:"Scegli una telecamera per configurarne le opzioni.",noCamerasConfigured:"Nessuna telecamera configurata.",searchDevices:"Cerca dispositivi...",source:"Sorgente",type:"Tipo",all:"Tutti",noMatchingDevices:"Nessun dispositivo corrisponde ai filtri.",frigateStream:"Stream Frigate",frigateStreamSourceHint:"Sorgente stream: WebRTC (default), RTSP o MJPEG.",frigateStreamMapping:"Mappatura stream (nomi go2rtc da config)",frigateStreamMappingHint:"Seleziona dagli stream go2rtc disponibili. Ordine: High, Mid, Sub.",frigateSelectStream:"Seleziona stream",frigateAddStream:"Aggiungi stream",frigateInfo:"Info telecamera",frigateShowConfig:"Mostra config",frigateShowGo2rtc:"Mostra go2rtc",frigateMissingConfig:"Mancano baseUrl o cameraName nella config della telecamera.",tabLogs:"Log",logsCount:"{{count}} voci",logsDownload:"Scarica",logsClear:"Svuota",logsEmpty:"Nessun log. L'output della console apparir\xe0 qui.",logsExportError:"Esportazione fallita",logsExportTitle:"Esporta log",logsClearConfirmTitle:"Svuota log",logsClearConfirmMessage:"Rimuovere tutte le voci di log?",hubAppearanceTitle:"Aspetto",hubAppearanceDesc:"Tema, lingua, timeline e evidenze",hubCamerasTitle:"Telecamere",hubCamerasDesc:"Layout griglia, qualit\xe0 stream e gestione telecamere",hubIntegrationsTitle:"Integrazioni",hubIntegrationsDesc:"Gestisci Scrypted, Frigate e altri sistemi",hubAdvancedTitle:"Avanzato",hubAdvancedDesc:"Backup dati e gestione cache",hubLogsTitle:"Log",hubLogsDesc:"Visualizza ed esporta i log dell'applicazione",hubCacheTitle:"Cache",frigateAutoSnap:"Istantanea Automatica",frigateSegmentNav:"Navigazione Segmenti",frigateShowGo:"Mostra Go2RTC",frigateTimeline:"Timeline",reelCameras:"Telecamere Reel",reelCamerasHint:"Seleziona quali telecamere appaiono nel reel eventi",reelDeselectAll:"Deseleziona Tutto",reelDetectionClasses:"Classi di Rilevamento",reelDetectionClassesHint:"Filtra gli eventi per classe di rilevamento",reelIncludeRuleArtifacts:"Includi Artefatti Regole",reelIncludeRuleArtifactsHint:"Mostra gli eventi basati su regole nel reel",reelRuleArtifacts:"Artefatti Regole",reelSelectAll:"Seleziona Tutto",reelBadgeContent:"Contenuto badge",reelBadgePosition:"Posizione badge",reelBadgeSize:"Dimensione badge",reelBadgeBoth:"Ora + Classe",reelBadgeTime:"Solo ora",reelBadgeClass:"Solo classe",reelBadgeNone:"Nascosto",reelBadgeSmall:"Piccolo",reelBadgeMedium:"Medio",reelBadgeLarge:"Grande"},reel:{filterMotion:"Motion",filterOnlyRules:"Solo rule",filterOnlySensors:"Solo sensori",goToMostRecent:"Vai al pi\xf9 recente"},v2:{common:{connecting:"Connessione\u2026",online:"Online",offline:"Offline",loadError:"Errore di caricamento",create:"Crea"},cameras:{empty:"Nessuna telecamera",statusOnline:" \xb7 online",statusOffline:" \xb7 offline",sleeping:"In standby",unavailable:"Non disponibile",motion:"Movimento",doorbell:"Campanello",doorbellRinging:"Sta suonando",doorbellLastRing:"Suonato {{time}} fa",snapshotLoading:"Caricamento\u2026",manage:"Gestisci telecamere",manageHint:"Trascina per riordinare. Rinomina al volo. Usa lo switch per mostrare o nascondere una telecamera dall\u2019elenco.",reorderHandle:"Trascina per riordinare",appearance:"Aspetto",editList:"Modifica elenco",listOptions:"Opzioni elenco telecamere"},cameraDetail:{fallbackName:"Camera #{{id}}",mute:"Disattiva audio",unmute:"Attiva audio",snapshot:"Istantanea",snapshotFailed:"Impossibile acquisire l'istantanea.",ptz:"Controlli PTZ",talk:"Parla",fullscreen:"Schermo intero",talkFailed:"Impossibile avviare la comunicazione. Verifica l'accesso al microfono.",pip:"Picture in Picture",exitFullscreen:"Esci da schermo intero",devices:"Dispositivi",devicesEmpty:"Nessun dispositivo collegato.",linkedModeAuto:"Collegamento: Auto (posizione)",linkedModeManual:"Collegamento: Manuale",motionBoxes:"Riquadri movimento",close:"Chiudi",deviceOnline:"Online",deviceOffline:"Offline"},grids:{createA11y:"Crea griglia",empty:"Nessuna griglia",emptyHint:"Tocca + per creare la tua prima griglia",countNone:"Nessuna telecamera",countOne:"1 telecamera",countOther:"{{count}} telecamere",defaultName:"Nuova griglia",deleteTitle:"Elimina griglia",deleteConfirm:"Eliminare \"{{name}}\"? L'operazione non \xe8 reversibile.",export:"Esporta",exportAllA11y:"Esporta tutte le griglie",shareA11y:"Condividi griglia",editA11y:"Modifica griglia",deleteA11y:"Elimina griglia",linkCopied:"Link della griglia copiato negli appunti",layoutAuto:"Auto",layoutColumns:"{{count}} col"},gridView:{editA11y:"Modifica griglia",fallbackTitle:"Griglia",notFound:"Griglia non trovata",emptyGrid:"Questa griglia \xe8 vuota",addCameras:"Aggiungi telecamere",reorderTitle:"Riordina telecamere",reorderA11y:"Riordina telecamere",reorderDoneA11y:"Fine riordino",allHidden:"Tutte le telecamere sono nascoste. Usa la modalit\xe0 riordino per mostrarne alcune.",dragA11y:"Trascina per riordinare",hideA11y:"Nascondi dalla griglia",showA11y:"Mostra nella griglia",removeA11y:"Rimuovi dalla griglia",adhocTitle:"Griglia rapida"},gridBuilder:{title:"Modifica griglia",nameLabel:"Nome",namePlaceholder:"Nome griglia",camerasSelected:"Telecamere ({{count}} selezionate)",optionsTitle:"Opzioni",showName:"Mostra nome telecamera",export:"Esporta griglia",orderSection:"Nella griglia",orderHint:"Trascina per riordinare",emptyOrder:"Nessuna telecamera \u2014 aggiungine qui sotto.",addSection:"Aggiungi telecamere",removeA11y:"Rimuovi dalla griglia",addA11y:"Aggiungi alla griglia",highlightTitle:"Evidenziazione",highlightMotion:"Su movimento",highlightAudio:"Su audio",highlightAudioOff:"Off",highlightAudioSensor:"Presenza",highlightAudioLevel:"Livello",highlightThreshold:"Soglia",highlightHold:"Mantieni",highlightDetection:"Su rilevamento",clusterLabel:"Etichetta cluster",clusterLabelIcon:"Icona",clusterLabelText:"Testo"},gridBar:{back:"Indietro",pauseAll:"Metti tutto in pausa",playAll:"Riproduci tutto",audio:"Audio",quality:"Qualit\xe0 stream",layout:"Layout",highlightMenu:"Evidenziazione e overlay",activeOnly:"Solo attive",share:"Condividi griglia",edit:"Modifica griglia",hide:"Nascondi controlli",show:"Mostra controlli",muteAll:"Silenzia tutte",unmuteAll:"Riattiva audio"},gridMenu:{highlightMaster:"Bordi di evidenziazione"},gridShare:{title:"Condividi \"{{name}}\"",quality:"Qualit\xe0 stream",layout:"Layout",showNames:"Mostra nomi delle camere",activeOnly:"Solo camere attive",boxes:"Bounding box",highlightEnable:"Evidenziazione",audioSummary:"Audio attivo all\u2019apertura per {{count}} camera/e",ttlTitle:"Scadenza del link",ttl_1d:"1 giorno",ttl_7d:"7 giorni",ttl_30d:"30 giorni",ttl_never:"Per sempre",tokenNotice:"Il link include un token di sola visualizzazione limitato a queste camere. Chiunque abbia il link pu\xf2 guardare finch\xe9 non scade o viene revocato.",copyLink:"Copia link",creating:"Creazione link\u2026",copiedExpires:"Link copiato \u2014 scade il {{date}}",copiedNever:"Link copiato \u2014 non scade mai",error:"Impossibile creare il link di condivisione. Controlla la connessione e riprova.",optionAuto:"Auto",optionHigh:"Alta",optionMedium:"Media",optionLow:"Bassa"},gridControls:{play:"Riproduci",pause:"Pausa",mute:"Muto",unmute:"Riattiva audio",quality:"Qualit\xe0",layout:"Layout",layoutAuto:"Auto"},events:{comingSoon:"Eventi \u2014 in arrivo",searchLabel:"Cerca etichetta\u2026",empty:"Nessun evento",today:"Oggi",filteredEmpty:"Nessuna corrispondenza nell'intervallo caricato",loadOlder:"Carica meno recenti",selectPrompt:"Seleziona un evento per vederne i dettagli",filters:"Filtri",all:"Tutte",day:"Giorno",sort:"Ordina",sortTime:"Recenti",sortImportance:"Importanza",cameras:"Telecamere",classes:"Classi",search:"Cerca",searchCameras:"Cerca telecamere\u2026",searchClasses:"Cerca classi\u2026",allCamerasHint:"Nessuna = tutte",allClassesHint:"Nessuna = tutte",done:"Fatto",density:"Densit\xe0",selectHint:"Seleziona un evento",eventKinds:"Tipi di evento",displayOptions:"Aspetto",displayTitle:"Opzioni di visualizzazione"},settings:{themeSystem:"Sistema",themeDark:"Scuro",themeLight:"Chiaro",server:"Server",hubActive:"Hub attivo",changeServer:"Cambia server",signOut:"Esci",network:"Rete",networkNone:"Nessuna rotta ancora rilevata",endpointUnlikely:"Probabilmente non utilizzabile",reprobe:"Ri-rileva rotte",reprobing:"Rilevamento\u2026",appearance:"Aspetto",theme:"Tema",info:"Info",app:"App",version:"Versione",noServer:"Nessun server",footerNote:"CamStack Viewer si connette a un singolo hub camstack. Telecamere, griglie ed eventi sono gestiti dal server.",language:"Lingua",langSystem:"Sistema",gridDefaults:"Impostazioni griglia",showName:"Mostra nome telecamera",showNameHint:"Sovrapponi il nome della telecamera su ogni riquadro",showState:"Mostra stato",showStateHint:"Mostra lo stato online / registrazione su ogni riquadro",columns:"Colonne",cameraOrder:"Ordine telecamere",orderName:"Per nome",orderCustom:"Personalizzato",motionHold:"Persistenza evidenziazione movimento",motionHoldHint:"Mantieni accesa l'evidenziazione del movimento su una tile per questo tempo dopo che il movimento si ferma.",motionHoldOff:"Off",streamQuality:"Qualit\xe0 stream",streamDefaults:"Impostazioni stream",playOnOpen:"Riproduci all'apertura",playOnOpenHint:"Avvia lo stream live quando apri una telecamera",audioOnOpen:"Audio all'apertura",audioOnOpenHint:"Attiva l'audio quando apri una telecamera",snapshotInterval:"Aggiornamento snapshot",highlightAppearance:"Aspetto evidenziazione",highlightMotionColor:"Colore movimento",highlightAudioColor:"Colore audio",highlightDetectionColor:"Colore rilevamento",highlightThickness:"Spessore bordo",qualityAuto:"Auto",qualityHigh:"Alta",qualityMid:"Media",qualityLow:"Bassa",secondsValue:"{{count}}s",advanced:"Avanzate",clearCache:"Svuota cache",clearCacheHint:"Libera snapshot e dati in cache (mantiene server e impostazioni)",clearCacheConfirmTitle:"Svuotare la cache?",clearCacheConfirmBody:"Rimuove immagini e dati in cache. Server, accesso e impostazioni vengono mantenuti.",clearCacheDone:"Cache svuotata",exportSettings:"Esporta impostazioni",exportSettingsHint:"Copia le impostazioni in formato JSON",exportSettingsDone:"Impostazioni copiate in JSON",viewLogs:"Visualizza log",viewLogsHint:"Messaggi di log recenti dell'app",logsEmpty:"Nessun log registrato",keepLogs:"Mantieni log",keepLogsHint:"Registra un buffer dei messaggi di log dell'app",debugMode:"Modalit\xe0 debug",debugModeHint:"Log verbosi su live, playback e scrub \u2014 inviati al server",logsClear:"Pulisci",resetSettings:"Ripristina impostazioni",resetSettingsHint:"Ripristina tutti i valori predefiniti",resetConfirmTitle:"Ripristinare le impostazioni?",resetConfirmBody:"Ripristina tutte le impostazioni ai valori predefiniti.",cancel:"Annulla",confirm:"Conferma",timeline:"Timeline ed evidenziazioni",reel:"Sequenza eventi",reelThumbSize:"Dimensione miniature",reelThumbSizeHint:"Dimensione delle miniature nella sequenza eventi recenti.",reelSizeSmall:"Piccola",reelSizeMedium:"Media",reelSizeLarge:"Grande",reelShowLabels:"Mostra etichette",reelShowLabelsHint:"Mostra l'etichetta classe/identit\xe0 sugli elementi della sequenza.",reelLabelStyle:"Visualizzazione classe",reelLabelStyleHint:"Mostra la classe di rilevamento come icona o come testo negli elementi della sequenza.",reelShowImportance:"Mostra importanza",reelShowImportanceHint:"Mostra il badge di importanza sugli elementi della sequenza.",events:"Eventi",eventsPage:"Pagina eventi",minImportance:"Importanza minima",minImportanceHint:"Nascondi gli eventi con punteggio inferiore, nella pagina eventi e nella timeline della telecamera.",minImportanceOff:"Off",tileShowLabels:"Mostra etichette",tileShowLabelsHint:"Mostra le etichette classe / identit\xe0 / audio sulle schede evento.",tileShowImportance:"Mostra importanza",tileShowImportanceHint:"Mostra il badge di importanza sulle schede evento (se valutato).",tileShowCameraName:"Mostra nome telecamera",tileShowCameraNameHint:"Mostra il nome della telecamera nel pi\xe8 di pagina della scheda evento.",tileLabelStyle:"Visualizzazione classe",tileLabelStyleHint:"Mostra la classe di rilevamento come icona o come testo.",tileLabelStyleIcon:"Icona",tileLabelStyleText:"Testo",comingSoon:"Prossimamente",cameras:"Telecamere",manageCameras:"Gestisci telecamere",manageCamerasHint:"Rinomina, nascondi, riordina",pinchExpandsHeight:"Il pizzico ingrandisce la vista",pinchExpandsHeightHint:"Pizzicando per lo zoom il video cresce in altezza (ritaglia i bordi laterali sulle camere 16:9).","timeline.gapPercent":"Gap cluster (%)","timeline.sizePercent":"Dimensione cluster (%)","timeline.indicatorPositionPct":"Posizione indicatore (%)","timeline.showImportance":"Mostra importanza sugli elementi","timeline.showClass":"Mostra classe di rilevamento sugli elementi","timeline.cardWidthPct":"Larghezza card (%)",haptics:"Vibrazione eventi",hapticsEnabled:"Vibra sugli eventi",hapticsEnabledHint:"Brevi vibrazioni per gli eventi chiave sulla telecamera che stai guardando. Solo su dispositivo (iOS/Android).",hapticsMotion:"Movimento",hapticsDetection:"Rilevamento",hapticsPerson:"Persona / riconosciuta"},login:{loginFailed:"Accesso fallito",verifyFailed:"Verifica fallita",serverUrl:"Server URL",username:"Username",password:"Password",showPassword:"Mostra password",hidePassword:"Nascondi password",signIn:"Accedi",signingIn:"Accesso\u2026",twoFactor:"Autenticazione a due fattori",totpHint:"Inserisci il codice a 6 cifre dall'app di autenticazione per accedere come ",verificationCode:"Codice di verifica",verifyAndSignIn:"Verifica e accedi",verifying:"Verifica\u2026",back:"Indietro",or:"oppure",signInWithCamStack:"Accedi con CamStack",hubSignInHint:"Apre la pagina di accesso del tuo hub e collega questa app senza digitare qui la password.",handoffFailed:"Accesso con CamStack non riuscito \u2014 riprova oppure usa nome utente e password",invalidServerUrl:"Inserisci prima un URL server valido (https://\u2026)"},live:{webUnsupported:"La vista live non \xe8 ancora disponibile nella versione web.",connecting:"Connessione allo stream live\u2026",error:"Impossibile caricare lo stream live.",retry:"Riprova",noConnection:"Nessuna connessione al server",failed:"Connessione fallita"},ptz:{title:"PTZ",notAvailable:"I controlli PTZ non sono disponibili per questa telecamera.",zoom:"Zoom",home:"Posizione iniziale",presets:"Preset",noPresets:"Nessun preset salvato."},timeline:{activityTitle:"Attivit\xe0",last24h:"Ultime 24h",loading:"Caricamento attivit\xe0\u2026",noActivity:"Nessuna attivit\xe0 nelle ultime 24 ore.",legendRecording:"Registrato",legendMotion:"Movimento",legendAudio:"Audio"},theater:{back:"Indietro",today:"Oggi",yesterday:"Ieri",selectDate:"Seleziona una data",live:"LIVE",now:"ORA",auto:"Auto",quality:"Qualit\xe0 stream",filterAll:"Tutti",filter_motion:"Movimento",filter_audio:"Audio",goToLive:"Vai al live",noRecording:"Nessuna registrazione",noRecordingHint:"Nessun filmato per questo momento",detailCount:"{{frames}} frame \xb7 {{count}} rilevamenti",detailTracks:"{{tracks}} tracce \xb7 {{count}} rilevamenti",detailEmpty:"Nessuna immagine di dettaglio per questo istante",detailSeek:"Vai a questo momento",zoneHint:"Trascina un rettangolo sul video per filtrare gli eventi per zona",zoneConfirm:"Conferma",zoneCancel:"Annulla"},mediaKind:{crop:"Ritaglio oggetto",thumbnail:"Best shot",faceCrop:"Volto",plateCrop:"Targa",fullFrame:"Frame",fullFrameBoxed:"Riquadrato",keyFrame:"Frame chiave",firstFrame:"Primo",lastFrame:"Ultimo",snapshot:"Istantanea"},tracks:{crop:"Ritaglio",fullFrame:"Frame completo",zones:"Zone",audio:"Audio",reason:"Perch\xe9 rilevante",empty:"Nessuna traccia",recent:"Recenti",searchPlaceholder:"Cerca eventi (es. \"persona in rosso\")",noMatches:"Nessun evento corrispondente",person:"Persona",assignPerson:"Associa a persona",changePerson:"Cambia",notAssigned:"Non associata",assignFaceTitle:"Associa volto",newPersonPlaceholder:"Nome nuova persona\u2026",createAndAssign:"Crea e associa",assignFailed:"Associazione del volto non riuscita",removePerson:"Rimuovi persona",removePersonConfirmTitle:"Rimuovere la persona?",removePersonConfirmBody:"Questo scollega la persona da questo volto. Il volto torna tra quelli non associati e potr\xe0 essere riassociato in seguito.",disassociateFailed:"Rimozione della persona non riuscita",removePersonAll:"Rimuovi da tutti gli eventi",removePersonAllConfirmTitle:"Rimuovere da tutti gli eventi?",removePersonAllConfirmBody:"Questo scollega la persona da OGNI evento. Tutti i volti attualmente riconosciuti come questa persona tornano tra quelli non associati e potranno essere riassociati in seguito. La persona viene mantenuta.",disassociateAllFailed:"Rimozione della persona da tutti gli eventi non riuscita",existingPersons:"Persone",noPersons:"Ancora nessuna persona",metadata:"Metadati",copy:"Copia",copied:"Copiato","meta.trackId":"ID traccia","meta.eventId":"ID evento migliore","meta.deviceId":"ID dispositivo","meta.camera":"Telecamera","meta.className":"Classe","meta.label":"Etichetta","meta.firstSeen":"Prima apparizione","meta.lastSeen":"Ultima apparizione","meta.state":"Stato","meta.importance":"Importanza","meta.confidence":"Confidenza","meta.mediaKeys":"Chiavi media"},accessories:{on:"Acceso",off:"Spento",dimUp:"Pi\xf9 luminoso",dimDown:"Meno luminoso",lock:"Blocca",unlock:"Sblocca",open:"Apri",close:"Chiudi",stop:"Ferma",arm:"Attiva",disarm:"Disattiva",onMotion:"Su movimento",warmer:"Pi\xf9 caldo",cooler:"Pi\xf9 freddo",speedUp:"Pi\xf9 veloce",speedDown:"Pi\xf9 lento",oscillate:"Oscillazione",press:"Premi",play:"Riproduci",pause:"Pausa",previous:"Precedente",next:"Successivo",start:"Avvia",dock:"Rientra",locate:"Localizza",feed:"Eroga",feeding:"Erogazione\u2026",install:"Installa",installing:"Installazione\u2026",upToDate:"Aggiornato",increase:"Aumenta",decrease:"Diminuisci",select:"Seleziona",climateModes:{off:"Spento",heat:"Riscaldamento",cool:"Raffreddamento",auto:"Auto",heat_cool:"Caldo/Freddo",fan_only:"Ventola",dry:"Deumidificazione"}},cameraMenu:{title:"Opzioni vista",boundingBoxes:"Bounding box",streamStats:"Statistiche stream",audioLevel:"Livello audio",densityTitle:"Densit\xe0 timeline",density_compact:"Compatta",density_medium:"Media",density_wide:"Ampia",densityCustom:"Personalizzata",indicatorPosition:"Posizione indicatore",showImportance:"Mostra importanza",showClass:"Mostra classe rilevata",managementTitle:"Gestione"},stats:{title:"Statistiche stream",resolution:"Risoluzione",fps:"FPS",bitrate:"Bitrate",packetLoss:"Pacchetti persi",jitter:"Jitter",codec:"Codec",frames:"Frame (persi/totali)",waiting:"Misurazione\u2026",playbackHint:"Le statistiche WebRTC complete richiedono il player nativo."},exportActions:{title:"Cattura",recordingExport:"Esporta registrazione"},exports:{title:"Esportazioni",empty:"Nessuna esportazione.",settingsHint:"Scarica clip registrate",range:"Intervallo",rangeStart:"Inizio",rangeEnd:"Fine",profile:"Profilo",noFootage:"Nessuna registrazione in questo intervallo.",speed:"Velocit\xe0",timelapse:"Timelapse",cadence:"Un fotogramma ogni",audio:"Audio",includeAudio:"Includi audio",audioUnavailable:"L'audio \xe8 disponibile solo a velocit\xe0 0,5\u20132\xd7.",retention:"Conserva per",life24h:"24 ore",life7d:"7 giorni",life30d:"30 giorni",deleteAfterDownload:"Elimina dopo il download",deleteAfterDownloadHint:"Rimuovi il file una volta scaricato.",creating:"Creazione\u2026",createAction:"Esporta",createFailed:"Impossibile creare l'esportazione.",withAudio:"con audio",variantRegular:"1\xd7",variantAccelerated:"Accelerato {{speed}}\xd7",variantSlow:"Rallentato {{speed}}\xd7",variantTimelapse:"Timelapse",expired:"Scaduto",expiresInDays:"Scade tra {{count}}g",expiresInHours:"Scade tra {{count}}h",expiresInMinutes:"Scade tra {{count}}m",downloadAction:"Scarica",downloadUnavailable:"Download non disponibile.",downloadFailed:"Download non riuscito.",cancelAction:"Annulla",cancelConfirmTitle:"Annullare l'esportazione?",cancelConfirmBody:"Interrompe il rendering ed elimina il file parziale.",deleteAction:"Elimina",deleteConfirmTitle:"Eliminare l'esportazione?",deleteConfirmBody:"Rimuove il file. La voce nella cronologia viene mantenuta.",dismiss:"Chiudi",state:{queued:"In coda",rendering:"Rendering",ready:"Pronto",failed:"Non riuscito",expired:"Scaduto",deleted:"Eliminato"}},streamBar:{play:"Riproduci",pause:"Pausa",mute:"Silenzia",unmute:"Riattiva audio",talkStart:"Inizia a parlare",talkStop:"Smetti di parlare",quality:"Qualit\xe0 stream",menu:"Opzioni vista",snapshot:"Istantanea",pip:"Picture in picture",fullscreen:"Schermo intero",exitFullscreen:"Esci da schermo intero"},playback:{prevFrame:"Frame precedente",nextFrame:"Frame successivo",speed:"Velocit\xe0 riproduzione",audioMuted:"Audio off a \u2260 1\xd7",audioOn:"Audio attivo"},cameraSwitcher:{title:"Cambia videocamera",empty:"Nessuna videocamera disponibile",openGrid:"Apri griglia ({{n}})",selectA11y:"Seleziona {{name}}"},storage:{title:"Archiviazione",usageTitle:"Utilizzo",nodeTotal:"Totale nodo",defaultLocation:"Posizione predefinita",locationFree:"{{free}} liberi",retentionTitle:"Conservazione",pruneAction:"Applica conservazione ora",pruneConfirmTitle:"Applicare la conservazione?",pruneConfirmBody:"Elimina le registrazioni su {{name}} che superano la policy di conservazione.",pruneResult:"Recuperati {{bytes}} ({{buckets}} segmenti).",deleteTitle:"Elimina registrazioni",deleteAction:"Elimina",deleteConfirmTitle:"Eliminare le registrazioni?",deleteConfirmBody:"Elimina definitivamente {{range}} di registrazioni su {{name}}. Operazione irreversibile.",deleteResult:"Recuperati {{bytes}} ({{buckets}} segmenti).",cancel:"Annulla",window24h:"Ultime 24h",window7d:"Ultimi 7 giorni",window30d:"Ultimi 30 giorni",windowAll:"Tutto"},eventsMgmt:{title:"Eventi",footprintTitle:"Ingombro",rowsBytes:"{{rows}} eventi \xb7 {{bytes}}",clusterTotal:"Totale cluster",pruneTitle:"Elimina pi\xf9 vecchi di",pruneHint:"Si applica a tutte le telecamere.",pruneAction:"Elimina",pruneConfirmTitle:"Eliminare gli eventi vecchi?",pruneConfirmBody:"Elimina gli eventi pi\xf9 vecchi di {{range}} su TUTTE le telecamere. Operazione irreversibile.",pruneResult:"Eliminati {{count}} eventi.",deleteTitle:"Elimina eventi telecamera",deleteAction:"Elimina tutti gli eventi di questa telecamera",deleteConfirmTitle:"Eliminare tutti gli eventi?",deleteConfirmBody:"Elimina definitivamente ogni evento di {{name}}. Operazione irreversibile.",deleteResult:"Eliminati {{count}} eventi.",cancel:"Annulla",older24h:"24 ore",older7d:"7 giorni",older30d:"30 giorni"}},prototype:{today:"Oggi",yesterday:"Ieri",now:"ORA",endOfDay:"FINE GIORNATA",loading:"Caricamento...",timeline:"Timeline",events:"Eventi",playClip:"Riproduci clip",goToNow:"ORA",noEvents:"Nessun evento"},eventKind:{motion:"Movimento",audio:"Audio",person:"Persona",vehicle:"Veicolo",animal:"Animale",package:"Pacco",sensor:"Sensore",control:"Controllo",car:"Auto",truck:"Camion",bus:"Autobus",motorcycle:"Motocicletta",bicycle:"Bicicletta",airplane:"Aereo",boat:"Barca",train:"Treno",bird:"Uccello",cat:"Gatto",dog:"Cane",horse:"Cavallo",sheep:"Pecora",cow:"Mucca",elephant:"Elefante",bear:"Orso",zebra:"Zebra",giraffe:"Giraffa",contact:"Contatto","motion-sensor":"Sensore movimento",smoke:"Fumo",flood:"Allagamento",gas:"Gas","carbon-monoxide":"Monossido di carbonio",vibration:"Vibrazione",tamper:"Manomissione",presence:"Presenza","enum-sensor":"Stato sensore","device-event":"Evento dispositivo",lock:"Serratura",switch:"Interruttore",siren:"Sirena",button:"Pulsante",doorbell:"Campanello","package-delivered":"Pacco consegnato","package-picked-up":"Pacco ritirato","audio-speech":"Voce","audio-music":"Musica","audio-dog":"Cane","audio-doorbell":"Campanello","audio-siren":"Sirena","audio-alarm":"Allarme"}}},3579,[]);
16001
+ __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.RootProviders=function(v){const _=(0,t.c)(4),{children:f}=v;let y,P,S;_[0]===Symbol.for("react.memo_cache_sentinel")?(y={flex:1},_[0]=y):y=_[0];_[1]===Symbol.for("react.memo_cache_sentinel")?(P=(0,j.jsx)(s.ThemedStatusBar,{}),_[1]=P):P=_[1];_[2]!==f?(S=(0,j.jsx)(n.GestureHandlerRootView,{style:y,children:(0,j.jsx)(c.SafeAreaProvider,{initialMetrics:c.initialWindowMetrics,children:(0,j.jsx)(o.QueryClientProvider,{client:x,children:(0,j.jsxs)(l.ThemeProvider,{children:[P,(0,j.jsx)(h.ServerProvider,{children:(0,j.jsx)(u.LoggerBridge,{children:f})})]})})})}),_[2]=f,_[3]=S):S=_[3];return S};var t=r(d[0]);r(d[1]);var n=r(d[2]),c=r(d[3]),o=r(d[4]),l=r(d[5]),s=r(d[6]),h=r(d[7]),u=r(d[8]),v=r(d[9]),j=r(d[10]);const x=(0,v.createQueryClient)()},3580,[15,17,3241,466,3081,2587,3581,3144,3582,3149,10]);
16002
16002
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.ThemedStatusBar=function(){const c=(0,t.c)(2),{mode:o}=(0,u.useTheme)(),l="dark"===o?"light":"dark";let _;c[0]!==l?(_=(0,n.jsx)(s.StatusBar,{style:l}),c[0]=l,c[1]=_):_=c[1];return _};var t=r(d[0]);r(d[1]);var s=r(d[2]),u=r(d[3]),n=r(d[4])},3581,[15,17,3429,2587,10]);
16003
16003
  __d(function(g,r,i,a,m,e,d){"use strict";Object.defineProperty(e,'__esModule',{value:!0}),e.LoggerBridge=function(f){const p=(0,n.c)(9),{children:v}=f,{server:b,token:h}=(0,t.useServer)(),S=(0,s.useSettingsStore)(l);let L,_;p[0]!==S?(L=()=>{(0,u.setLogVerbose)(S),u.log.info("app","debug mode "+(S?"ON (verbose)":"off"))},_=[S],p[0]=S,p[1]=L,p[2]=_):(L=p[1],_=p[2]);(0,o.useEffect)(L,_);const U=b?.serverUrl??null;let j,k,E;p[3]!==U||p[4]!==h?(j=()=>{U&&h?((0,u.configureLogShipping)({serverUrl:U,token:h}),u.log.info("app","log shipping configured",{serverUrl:U})):(0,u.configureLogShipping)(null)},k=[U,h],p[3]=U,p[4]=h,p[5]=j,p[6]=k):(j=p[5],k=p[6]);(0,o.useEffect)(j,k),p[7]!==v?(E=(0,c.jsx)(c.Fragment,{children:v}),p[7]=v,p[8]=E):E=p[8];return E};var n=r(d[0]),o=r(d[1]),t=r(d[2]),s=r(d[3]),u=r(d[4]),c=r(d[5]);function l(n){return n.settings.advanced.debugMode}},3582,[15,17,3144,3140,2705,10]);
16004
16004
  __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 _}});var n=r(d[0]),t=e(r(d[1])),o=e(r(d[2])),c=r(d[3]),u=r(d[4]),l=r(d[5]),s=r(d[6]),f=r(d[7]),b=r(d[8]);function _(){const e=(0,n.c)(10),{loading:_,server:y,token:j}=(0,u.useServer)(),{colors:S}=(0,l.useTheme)();if(_){let n,c,u;return e[0]!==S.background?(n={flex:1,backgroundColor:S.background,alignItems:"center",justifyContent:"center"},e[0]=S.background,e[1]=n):n=e[1],e[2]!==S.primary?(c=(0,b.jsx)(t.default,{color:S.primary}),e[2]=S.primary,e[3]=c):c=e[3],e[4]!==n||e[5]!==c?(u=(0,b.jsx)(o.default,{style:n,children:c}),e[4]=n,e[5]=c,e[6]=u):u=e[6],u}if(!y||!j){if((0,f.canReuseHubSession)(!1)){let n;return e[7]===Symbol.for("react.memo_cache_sentinel")?(n=(0,b.jsx)(f.HubSessionBootstrap,{fallback:(0,b.jsx)(s.LoginScreen,{})}),e[7]=n):n=e[7],n}let n;return e[8]===Symbol.for("react.memo_cache_sentinel")?(n=(0,b.jsx)(s.LoginScreen,{}),e[8]=n):n=e[8],n}let x;return e[9]===Symbol.for("react.memo_cache_sentinel")?(x=(0,b.jsx)(c.Redirect,{href:"/cameras"}),e[9]=x):x=e[9],x}},3583,[15,240,20,743,3144,2587,3584,3591,10]);